@aws-sdk/client-ivs-realtime 3.490.0 → 3.495.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 (48) hide show
  1. package/dist-cjs/IVSRealTime.js +1 -65
  2. package/dist-cjs/IVSRealTimeClient.js +1 -43
  3. package/dist-cjs/commands/CreateEncoderConfigurationCommand.js +1 -28
  4. package/dist-cjs/commands/CreateParticipantTokenCommand.js +1 -29
  5. package/dist-cjs/commands/CreateStageCommand.js +1 -29
  6. package/dist-cjs/commands/CreateStorageConfigurationCommand.js +1 -28
  7. package/dist-cjs/commands/DeleteEncoderConfigurationCommand.js +1 -28
  8. package/dist-cjs/commands/DeleteStageCommand.js +1 -28
  9. package/dist-cjs/commands/DeleteStorageConfigurationCommand.js +1 -28
  10. package/dist-cjs/commands/DisconnectParticipantCommand.js +1 -28
  11. package/dist-cjs/commands/GetCompositionCommand.js +1 -28
  12. package/dist-cjs/commands/GetEncoderConfigurationCommand.js +1 -28
  13. package/dist-cjs/commands/GetParticipantCommand.js +1 -28
  14. package/dist-cjs/commands/GetStageCommand.js +1 -28
  15. package/dist-cjs/commands/GetStageSessionCommand.js +1 -28
  16. package/dist-cjs/commands/GetStorageConfigurationCommand.js +1 -28
  17. package/dist-cjs/commands/ListCompositionsCommand.js +1 -28
  18. package/dist-cjs/commands/ListEncoderConfigurationsCommand.js +1 -28
  19. package/dist-cjs/commands/ListParticipantEventsCommand.js +1 -28
  20. package/dist-cjs/commands/ListParticipantsCommand.js +1 -28
  21. package/dist-cjs/commands/ListStageSessionsCommand.js +1 -28
  22. package/dist-cjs/commands/ListStagesCommand.js +1 -28
  23. package/dist-cjs/commands/ListStorageConfigurationsCommand.js +1 -28
  24. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  25. package/dist-cjs/commands/StartCompositionCommand.js +1 -28
  26. package/dist-cjs/commands/StopCompositionCommand.js +1 -28
  27. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  28. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  29. package/dist-cjs/commands/UpdateStageCommand.js +1 -28
  30. package/dist-cjs/commands/index.js +1 -30
  31. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  32. package/dist-cjs/extensionConfiguration.js +1 -2
  33. package/dist-cjs/index.js +2859 -11
  34. package/dist-cjs/models/IVSRealTimeServiceException.js +1 -12
  35. package/dist-cjs/models/index.js +1 -4
  36. package/dist-cjs/models/models_0.js +1 -162
  37. package/dist-cjs/pagination/Interfaces.js +1 -2
  38. package/dist-cjs/pagination/ListCompositionsPaginator.js +1 -7
  39. package/dist-cjs/pagination/ListEncoderConfigurationsPaginator.js +1 -7
  40. package/dist-cjs/pagination/ListParticipantEventsPaginator.js +1 -7
  41. package/dist-cjs/pagination/ListParticipantsPaginator.js +1 -7
  42. package/dist-cjs/pagination/ListStageSessionsPaginator.js +1 -7
  43. package/dist-cjs/pagination/ListStagesPaginator.js +1 -7
  44. package/dist-cjs/pagination/ListStorageConfigurationsPaginator.js +1 -7
  45. package/dist-cjs/pagination/index.js +1 -11
  46. package/dist-cjs/protocols/Aws_restJson1.js +1 -1932
  47. package/dist-cjs/runtimeExtensions.js +1 -22
  48. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,2860 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IVSRealTimeServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./IVSRealTimeClient"), exports);
6
- tslib_1.__exportStar(require("./IVSRealTime"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- require("@aws-sdk/util-endpoints");
11
- var IVSRealTimeServiceException_1 = require("./models/IVSRealTimeServiceException");
12
- Object.defineProperty(exports, "IVSRealTimeServiceException", { enumerable: true, get: function () { return IVSRealTimeServiceException_1.IVSRealTimeServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
25
+ CompositionState: () => CompositionState,
26
+ ConflictException: () => ConflictException,
27
+ CreateEncoderConfigurationCommand: () => CreateEncoderConfigurationCommand,
28
+ CreateParticipantTokenCommand: () => CreateParticipantTokenCommand,
29
+ CreateParticipantTokenResponseFilterSensitiveLog: () => CreateParticipantTokenResponseFilterSensitiveLog,
30
+ CreateStageCommand: () => CreateStageCommand,
31
+ CreateStageResponseFilterSensitiveLog: () => CreateStageResponseFilterSensitiveLog,
32
+ CreateStorageConfigurationCommand: () => CreateStorageConfigurationCommand,
33
+ DeleteEncoderConfigurationCommand: () => DeleteEncoderConfigurationCommand,
34
+ DeleteStageCommand: () => DeleteStageCommand,
35
+ DeleteStorageConfigurationCommand: () => DeleteStorageConfigurationCommand,
36
+ DestinationState: () => DestinationState,
37
+ DisconnectParticipantCommand: () => DisconnectParticipantCommand,
38
+ EventErrorCode: () => EventErrorCode,
39
+ EventName: () => EventName,
40
+ GetCompositionCommand: () => GetCompositionCommand,
41
+ GetEncoderConfigurationCommand: () => GetEncoderConfigurationCommand,
42
+ GetParticipantCommand: () => GetParticipantCommand,
43
+ GetStageCommand: () => GetStageCommand,
44
+ GetStageSessionCommand: () => GetStageSessionCommand,
45
+ GetStorageConfigurationCommand: () => GetStorageConfigurationCommand,
46
+ IVSRealTime: () => IVSRealTime,
47
+ IVSRealTimeClient: () => IVSRealTimeClient,
48
+ IVSRealTimeServiceException: () => IVSRealTimeServiceException,
49
+ InternalServerException: () => InternalServerException,
50
+ ListCompositionsCommand: () => ListCompositionsCommand,
51
+ ListEncoderConfigurationsCommand: () => ListEncoderConfigurationsCommand,
52
+ ListParticipantEventsCommand: () => ListParticipantEventsCommand,
53
+ ListParticipantsCommand: () => ListParticipantsCommand,
54
+ ListStageSessionsCommand: () => ListStageSessionsCommand,
55
+ ListStagesCommand: () => ListStagesCommand,
56
+ ListStorageConfigurationsCommand: () => ListStorageConfigurationsCommand,
57
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
58
+ ParticipantState: () => ParticipantState,
59
+ ParticipantTokenCapability: () => ParticipantTokenCapability,
60
+ ParticipantTokenFilterSensitiveLog: () => ParticipantTokenFilterSensitiveLog,
61
+ PendingVerification: () => PendingVerification,
62
+ RecordingConfigurationFormat: () => RecordingConfigurationFormat,
63
+ ResourceNotFoundException: () => ResourceNotFoundException,
64
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
65
+ StartCompositionCommand: () => StartCompositionCommand,
66
+ StopCompositionCommand: () => StopCompositionCommand,
67
+ TagResourceCommand: () => TagResourceCommand,
68
+ UntagResourceCommand: () => UntagResourceCommand,
69
+ UpdateStageCommand: () => UpdateStageCommand,
70
+ ValidationException: () => ValidationException,
71
+ __Client: () => import_smithy_client.Client,
72
+ paginateListCompositions: () => paginateListCompositions,
73
+ paginateListEncoderConfigurations: () => paginateListEncoderConfigurations,
74
+ paginateListParticipantEvents: () => paginateListParticipantEvents,
75
+ paginateListParticipants: () => paginateListParticipants,
76
+ paginateListStageSessions: () => paginateListStageSessions,
77
+ paginateListStages: () => paginateListStages,
78
+ paginateListStorageConfigurations: () => paginateListStorageConfigurations
79
+ });
80
+ module.exports = __toCommonJS(src_exports);
81
+
82
+ // src/IVSRealTimeClient.ts
83
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
84
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
85
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
86
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
87
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
88
+ var import_config_resolver = require("@smithy/config-resolver");
89
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
90
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
91
+ var import_middleware_retry = require("@smithy/middleware-retry");
92
+
93
+
94
+ // src/endpoint/EndpointParameters.ts
95
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
96
+ return {
97
+ ...options,
98
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
99
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
100
+ defaultSigningName: "ivs"
101
+ };
102
+ }, "resolveClientEndpointParameters");
103
+ var commonParams = {
104
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
105
+ Endpoint: { type: "builtInParams", name: "endpoint" },
106
+ Region: { type: "builtInParams", name: "region" },
107
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
108
+ };
109
+
110
+ // src/IVSRealTimeClient.ts
111
+ var import_runtimeConfig = require("././runtimeConfig");
112
+
113
+ // src/runtimeExtensions.ts
114
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
115
+ var import_protocol_http = require("@smithy/protocol-http");
116
+ var import_smithy_client = require("@smithy/smithy-client");
117
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
118
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
119
+ const extensionConfiguration = {
120
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
121
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
122
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
123
+ };
124
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
125
+ return {
126
+ ...runtimeConfig,
127
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
128
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
129
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
130
+ };
131
+ }, "resolveRuntimeExtensions");
132
+
133
+ // src/IVSRealTimeClient.ts
134
+ var _IVSRealTimeClient = class _IVSRealTimeClient extends import_smithy_client.Client {
135
+ constructor(...[configuration]) {
136
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
137
+ const _config_1 = resolveClientEndpointParameters(_config_0);
138
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
139
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
140
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
141
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
142
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
143
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
144
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
145
+ super(_config_8);
146
+ this.config = _config_8;
147
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
148
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
149
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
150
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
151
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
152
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
153
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
154
+ }
155
+ /**
156
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
157
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
158
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
159
+ */
160
+ destroy() {
161
+ super.destroy();
162
+ }
163
+ };
164
+ __name(_IVSRealTimeClient, "IVSRealTimeClient");
165
+ var IVSRealTimeClient = _IVSRealTimeClient;
166
+
167
+ // src/IVSRealTime.ts
168
+
169
+
170
+ // src/commands/CreateEncoderConfigurationCommand.ts
171
+
172
+ var import_middleware_serde = require("@smithy/middleware-serde");
173
+
174
+ var import_types = require("@smithy/types");
175
+
176
+ // src/protocols/Aws_restJson1.ts
177
+ var import_core = require("@smithy/core");
178
+
179
+ var import_uuid = require("uuid");
180
+
181
+ // src/models/IVSRealTimeServiceException.ts
182
+
183
+ var _IVSRealTimeServiceException = class _IVSRealTimeServiceException extends import_smithy_client.ServiceException {
184
+ /**
185
+ * @internal
186
+ */
187
+ constructor(options) {
188
+ super(options);
189
+ Object.setPrototypeOf(this, _IVSRealTimeServiceException.prototype);
190
+ }
191
+ };
192
+ __name(_IVSRealTimeServiceException, "IVSRealTimeServiceException");
193
+ var IVSRealTimeServiceException = _IVSRealTimeServiceException;
194
+
195
+ // src/models/models_0.ts
196
+
197
+ var _AccessDeniedException = class _AccessDeniedException extends IVSRealTimeServiceException {
198
+ /**
199
+ * @internal
200
+ */
201
+ constructor(opts) {
202
+ super({
203
+ name: "AccessDeniedException",
204
+ $fault: "client",
205
+ ...opts
206
+ });
207
+ this.name = "AccessDeniedException";
208
+ this.$fault = "client";
209
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
210
+ this.exceptionMessage = opts.exceptionMessage;
211
+ }
212
+ };
213
+ __name(_AccessDeniedException, "AccessDeniedException");
214
+ var AccessDeniedException = _AccessDeniedException;
215
+ var _ConflictException = class _ConflictException extends IVSRealTimeServiceException {
216
+ /**
217
+ * @internal
218
+ */
219
+ constructor(opts) {
220
+ super({
221
+ name: "ConflictException",
222
+ $fault: "client",
223
+ ...opts
224
+ });
225
+ this.name = "ConflictException";
226
+ this.$fault = "client";
227
+ Object.setPrototypeOf(this, _ConflictException.prototype);
228
+ this.exceptionMessage = opts.exceptionMessage;
229
+ }
230
+ };
231
+ __name(_ConflictException, "ConflictException");
232
+ var ConflictException = _ConflictException;
233
+ var _InternalServerException = class _InternalServerException extends IVSRealTimeServiceException {
234
+ /**
235
+ * @internal
236
+ */
237
+ constructor(opts) {
238
+ super({
239
+ name: "InternalServerException",
240
+ $fault: "server",
241
+ ...opts
242
+ });
243
+ this.name = "InternalServerException";
244
+ this.$fault = "server";
245
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
246
+ this.exceptionMessage = opts.exceptionMessage;
247
+ }
248
+ };
249
+ __name(_InternalServerException, "InternalServerException");
250
+ var InternalServerException = _InternalServerException;
251
+ var _PendingVerification = class _PendingVerification extends IVSRealTimeServiceException {
252
+ /**
253
+ * @internal
254
+ */
255
+ constructor(opts) {
256
+ super({
257
+ name: "PendingVerification",
258
+ $fault: "client",
259
+ ...opts
260
+ });
261
+ this.name = "PendingVerification";
262
+ this.$fault = "client";
263
+ Object.setPrototypeOf(this, _PendingVerification.prototype);
264
+ this.exceptionMessage = opts.exceptionMessage;
265
+ }
266
+ };
267
+ __name(_PendingVerification, "PendingVerification");
268
+ var PendingVerification = _PendingVerification;
269
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends IVSRealTimeServiceException {
270
+ /**
271
+ * @internal
272
+ */
273
+ constructor(opts) {
274
+ super({
275
+ name: "ResourceNotFoundException",
276
+ $fault: "client",
277
+ ...opts
278
+ });
279
+ this.name = "ResourceNotFoundException";
280
+ this.$fault = "client";
281
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
282
+ this.exceptionMessage = opts.exceptionMessage;
283
+ }
284
+ };
285
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
286
+ var ResourceNotFoundException = _ResourceNotFoundException;
287
+ var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends IVSRealTimeServiceException {
288
+ /**
289
+ * @internal
290
+ */
291
+ constructor(opts) {
292
+ super({
293
+ name: "ServiceQuotaExceededException",
294
+ $fault: "client",
295
+ ...opts
296
+ });
297
+ this.name = "ServiceQuotaExceededException";
298
+ this.$fault = "client";
299
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
300
+ this.exceptionMessage = opts.exceptionMessage;
301
+ }
302
+ };
303
+ __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
304
+ var ServiceQuotaExceededException = _ServiceQuotaExceededException;
305
+ var _ValidationException = class _ValidationException extends IVSRealTimeServiceException {
306
+ /**
307
+ * @internal
308
+ */
309
+ constructor(opts) {
310
+ super({
311
+ name: "ValidationException",
312
+ $fault: "client",
313
+ ...opts
314
+ });
315
+ this.name = "ValidationException";
316
+ this.$fault = "client";
317
+ Object.setPrototypeOf(this, _ValidationException.prototype);
318
+ this.exceptionMessage = opts.exceptionMessage;
319
+ }
320
+ };
321
+ __name(_ValidationException, "ValidationException");
322
+ var ValidationException = _ValidationException;
323
+ var ParticipantTokenCapability = {
324
+ PUBLISH: "PUBLISH",
325
+ SUBSCRIBE: "SUBSCRIBE"
326
+ };
327
+ var RecordingConfigurationFormat = {
328
+ HLS: "HLS"
329
+ };
330
+ var DestinationState = {
331
+ ACTIVE: "ACTIVE",
332
+ FAILED: "FAILED",
333
+ RECONNECTING: "RECONNECTING",
334
+ STARTING: "STARTING",
335
+ STOPPED: "STOPPED",
336
+ STOPPING: "STOPPING"
337
+ };
338
+ var CompositionState = {
339
+ ACTIVE: "ACTIVE",
340
+ FAILED: "FAILED",
341
+ STARTING: "STARTING",
342
+ STOPPED: "STOPPED",
343
+ STOPPING: "STOPPING"
344
+ };
345
+ var ParticipantState = {
346
+ CONNECTED: "CONNECTED",
347
+ DISCONNECTED: "DISCONNECTED"
348
+ };
349
+ var EventErrorCode = {
350
+ INSUFFICIENT_CAPABILITIES: "INSUFFICIENT_CAPABILITIES",
351
+ PUBLISHER_NOT_FOUND: "PUBLISHER_NOT_FOUND",
352
+ QUOTA_EXCEEDED: "QUOTA_EXCEEDED"
353
+ };
354
+ var EventName = {
355
+ JOINED: "JOINED",
356
+ JOIN_ERROR: "JOIN_ERROR",
357
+ LEFT: "LEFT",
358
+ PUBLISH_ERROR: "PUBLISH_ERROR",
359
+ PUBLISH_STARTED: "PUBLISH_STARTED",
360
+ PUBLISH_STOPPED: "PUBLISH_STOPPED",
361
+ SUBSCRIBE_ERROR: "SUBSCRIBE_ERROR",
362
+ SUBSCRIBE_STARTED: "SUBSCRIBE_STARTED",
363
+ SUBSCRIBE_STOPPED: "SUBSCRIBE_STOPPED"
364
+ };
365
+ var ParticipantTokenFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
366
+ ...obj,
367
+ ...obj.token && { token: import_smithy_client.SENSITIVE_STRING }
368
+ }), "ParticipantTokenFilterSensitiveLog");
369
+ var CreateParticipantTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
370
+ ...obj,
371
+ ...obj.participantToken && { participantToken: ParticipantTokenFilterSensitiveLog(obj.participantToken) }
372
+ }), "CreateParticipantTokenResponseFilterSensitiveLog");
373
+ var CreateStageResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
374
+ ...obj,
375
+ ...obj.participantTokens && {
376
+ participantTokens: obj.participantTokens.map((item) => ParticipantTokenFilterSensitiveLog(item))
377
+ }
378
+ }), "CreateStageResponseFilterSensitiveLog");
379
+
380
+ // src/protocols/Aws_restJson1.ts
381
+ var se_CreateEncoderConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
382
+ const b = (0, import_core.requestBuilder)(input, context);
383
+ const headers = {
384
+ "content-type": "application/json"
385
+ };
386
+ b.bp("/CreateEncoderConfiguration");
387
+ let body;
388
+ body = JSON.stringify(
389
+ (0, import_smithy_client.take)(input, {
390
+ name: [],
391
+ tags: (_) => (0, import_smithy_client._json)(_),
392
+ video: (_) => se_Video(_, context)
393
+ })
394
+ );
395
+ b.m("POST").h(headers).b(body);
396
+ return b.build();
397
+ }, "se_CreateEncoderConfigurationCommand");
398
+ var se_CreateParticipantTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
399
+ const b = (0, import_core.requestBuilder)(input, context);
400
+ const headers = {
401
+ "content-type": "application/json"
402
+ };
403
+ b.bp("/CreateParticipantToken");
404
+ let body;
405
+ body = JSON.stringify(
406
+ (0, import_smithy_client.take)(input, {
407
+ attributes: (_) => (0, import_smithy_client._json)(_),
408
+ capabilities: (_) => (0, import_smithy_client._json)(_),
409
+ duration: [],
410
+ stageArn: [],
411
+ userId: []
412
+ })
413
+ );
414
+ b.m("POST").h(headers).b(body);
415
+ return b.build();
416
+ }, "se_CreateParticipantTokenCommand");
417
+ var se_CreateStageCommand = /* @__PURE__ */ __name(async (input, context) => {
418
+ const b = (0, import_core.requestBuilder)(input, context);
419
+ const headers = {
420
+ "content-type": "application/json"
421
+ };
422
+ b.bp("/CreateStage");
423
+ let body;
424
+ body = JSON.stringify(
425
+ (0, import_smithy_client.take)(input, {
426
+ name: [],
427
+ participantTokenConfigurations: (_) => (0, import_smithy_client._json)(_),
428
+ tags: (_) => (0, import_smithy_client._json)(_)
429
+ })
430
+ );
431
+ b.m("POST").h(headers).b(body);
432
+ return b.build();
433
+ }, "se_CreateStageCommand");
434
+ var se_CreateStorageConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
435
+ const b = (0, import_core.requestBuilder)(input, context);
436
+ const headers = {
437
+ "content-type": "application/json"
438
+ };
439
+ b.bp("/CreateStorageConfiguration");
440
+ let body;
441
+ body = JSON.stringify(
442
+ (0, import_smithy_client.take)(input, {
443
+ name: [],
444
+ s3: (_) => (0, import_smithy_client._json)(_),
445
+ tags: (_) => (0, import_smithy_client._json)(_)
446
+ })
447
+ );
448
+ b.m("POST").h(headers).b(body);
449
+ return b.build();
450
+ }, "se_CreateStorageConfigurationCommand");
451
+ var se_DeleteEncoderConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
452
+ const b = (0, import_core.requestBuilder)(input, context);
453
+ const headers = {
454
+ "content-type": "application/json"
455
+ };
456
+ b.bp("/DeleteEncoderConfiguration");
457
+ let body;
458
+ body = JSON.stringify(
459
+ (0, import_smithy_client.take)(input, {
460
+ arn: []
461
+ })
462
+ );
463
+ b.m("POST").h(headers).b(body);
464
+ return b.build();
465
+ }, "se_DeleteEncoderConfigurationCommand");
466
+ var se_DeleteStageCommand = /* @__PURE__ */ __name(async (input, context) => {
467
+ const b = (0, import_core.requestBuilder)(input, context);
468
+ const headers = {
469
+ "content-type": "application/json"
470
+ };
471
+ b.bp("/DeleteStage");
472
+ let body;
473
+ body = JSON.stringify(
474
+ (0, import_smithy_client.take)(input, {
475
+ arn: []
476
+ })
477
+ );
478
+ b.m("POST").h(headers).b(body);
479
+ return b.build();
480
+ }, "se_DeleteStageCommand");
481
+ var se_DeleteStorageConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
482
+ const b = (0, import_core.requestBuilder)(input, context);
483
+ const headers = {
484
+ "content-type": "application/json"
485
+ };
486
+ b.bp("/DeleteStorageConfiguration");
487
+ let body;
488
+ body = JSON.stringify(
489
+ (0, import_smithy_client.take)(input, {
490
+ arn: []
491
+ })
492
+ );
493
+ b.m("POST").h(headers).b(body);
494
+ return b.build();
495
+ }, "se_DeleteStorageConfigurationCommand");
496
+ var se_DisconnectParticipantCommand = /* @__PURE__ */ __name(async (input, context) => {
497
+ const b = (0, import_core.requestBuilder)(input, context);
498
+ const headers = {
499
+ "content-type": "application/json"
500
+ };
501
+ b.bp("/DisconnectParticipant");
502
+ let body;
503
+ body = JSON.stringify(
504
+ (0, import_smithy_client.take)(input, {
505
+ participantId: [],
506
+ reason: [],
507
+ stageArn: []
508
+ })
509
+ );
510
+ b.m("POST").h(headers).b(body);
511
+ return b.build();
512
+ }, "se_DisconnectParticipantCommand");
513
+ var se_GetCompositionCommand = /* @__PURE__ */ __name(async (input, context) => {
514
+ const b = (0, import_core.requestBuilder)(input, context);
515
+ const headers = {
516
+ "content-type": "application/json"
517
+ };
518
+ b.bp("/GetComposition");
519
+ let body;
520
+ body = JSON.stringify(
521
+ (0, import_smithy_client.take)(input, {
522
+ arn: []
523
+ })
524
+ );
525
+ b.m("POST").h(headers).b(body);
526
+ return b.build();
527
+ }, "se_GetCompositionCommand");
528
+ var se_GetEncoderConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
529
+ const b = (0, import_core.requestBuilder)(input, context);
530
+ const headers = {
531
+ "content-type": "application/json"
532
+ };
533
+ b.bp("/GetEncoderConfiguration");
534
+ let body;
535
+ body = JSON.stringify(
536
+ (0, import_smithy_client.take)(input, {
537
+ arn: []
538
+ })
539
+ );
540
+ b.m("POST").h(headers).b(body);
541
+ return b.build();
542
+ }, "se_GetEncoderConfigurationCommand");
543
+ var se_GetParticipantCommand = /* @__PURE__ */ __name(async (input, context) => {
544
+ const b = (0, import_core.requestBuilder)(input, context);
545
+ const headers = {
546
+ "content-type": "application/json"
547
+ };
548
+ b.bp("/GetParticipant");
549
+ let body;
550
+ body = JSON.stringify(
551
+ (0, import_smithy_client.take)(input, {
552
+ participantId: [],
553
+ sessionId: [],
554
+ stageArn: []
555
+ })
556
+ );
557
+ b.m("POST").h(headers).b(body);
558
+ return b.build();
559
+ }, "se_GetParticipantCommand");
560
+ var se_GetStageCommand = /* @__PURE__ */ __name(async (input, context) => {
561
+ const b = (0, import_core.requestBuilder)(input, context);
562
+ const headers = {
563
+ "content-type": "application/json"
564
+ };
565
+ b.bp("/GetStage");
566
+ let body;
567
+ body = JSON.stringify(
568
+ (0, import_smithy_client.take)(input, {
569
+ arn: []
570
+ })
571
+ );
572
+ b.m("POST").h(headers).b(body);
573
+ return b.build();
574
+ }, "se_GetStageCommand");
575
+ var se_GetStageSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
576
+ const b = (0, import_core.requestBuilder)(input, context);
577
+ const headers = {
578
+ "content-type": "application/json"
579
+ };
580
+ b.bp("/GetStageSession");
581
+ let body;
582
+ body = JSON.stringify(
583
+ (0, import_smithy_client.take)(input, {
584
+ sessionId: [],
585
+ stageArn: []
586
+ })
587
+ );
588
+ b.m("POST").h(headers).b(body);
589
+ return b.build();
590
+ }, "se_GetStageSessionCommand");
591
+ var se_GetStorageConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
592
+ const b = (0, import_core.requestBuilder)(input, context);
593
+ const headers = {
594
+ "content-type": "application/json"
595
+ };
596
+ b.bp("/GetStorageConfiguration");
597
+ let body;
598
+ body = JSON.stringify(
599
+ (0, import_smithy_client.take)(input, {
600
+ arn: []
601
+ })
602
+ );
603
+ b.m("POST").h(headers).b(body);
604
+ return b.build();
605
+ }, "se_GetStorageConfigurationCommand");
606
+ var se_ListCompositionsCommand = /* @__PURE__ */ __name(async (input, context) => {
607
+ const b = (0, import_core.requestBuilder)(input, context);
608
+ const headers = {
609
+ "content-type": "application/json"
610
+ };
611
+ b.bp("/ListCompositions");
612
+ let body;
613
+ body = JSON.stringify(
614
+ (0, import_smithy_client.take)(input, {
615
+ filterByEncoderConfigurationArn: [],
616
+ filterByStageArn: [],
617
+ maxResults: [],
618
+ nextToken: []
619
+ })
620
+ );
621
+ b.m("POST").h(headers).b(body);
622
+ return b.build();
623
+ }, "se_ListCompositionsCommand");
624
+ var se_ListEncoderConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => {
625
+ const b = (0, import_core.requestBuilder)(input, context);
626
+ const headers = {
627
+ "content-type": "application/json"
628
+ };
629
+ b.bp("/ListEncoderConfigurations");
630
+ let body;
631
+ body = JSON.stringify(
632
+ (0, import_smithy_client.take)(input, {
633
+ maxResults: [],
634
+ nextToken: []
635
+ })
636
+ );
637
+ b.m("POST").h(headers).b(body);
638
+ return b.build();
639
+ }, "se_ListEncoderConfigurationsCommand");
640
+ var se_ListParticipantEventsCommand = /* @__PURE__ */ __name(async (input, context) => {
641
+ const b = (0, import_core.requestBuilder)(input, context);
642
+ const headers = {
643
+ "content-type": "application/json"
644
+ };
645
+ b.bp("/ListParticipantEvents");
646
+ let body;
647
+ body = JSON.stringify(
648
+ (0, import_smithy_client.take)(input, {
649
+ maxResults: [],
650
+ nextToken: [],
651
+ participantId: [],
652
+ sessionId: [],
653
+ stageArn: []
654
+ })
655
+ );
656
+ b.m("POST").h(headers).b(body);
657
+ return b.build();
658
+ }, "se_ListParticipantEventsCommand");
659
+ var se_ListParticipantsCommand = /* @__PURE__ */ __name(async (input, context) => {
660
+ const b = (0, import_core.requestBuilder)(input, context);
661
+ const headers = {
662
+ "content-type": "application/json"
663
+ };
664
+ b.bp("/ListParticipants");
665
+ let body;
666
+ body = JSON.stringify(
667
+ (0, import_smithy_client.take)(input, {
668
+ filterByPublished: [],
669
+ filterByState: [],
670
+ filterByUserId: [],
671
+ maxResults: [],
672
+ nextToken: [],
673
+ sessionId: [],
674
+ stageArn: []
675
+ })
676
+ );
677
+ b.m("POST").h(headers).b(body);
678
+ return b.build();
679
+ }, "se_ListParticipantsCommand");
680
+ var se_ListStagesCommand = /* @__PURE__ */ __name(async (input, context) => {
681
+ const b = (0, import_core.requestBuilder)(input, context);
682
+ const headers = {
683
+ "content-type": "application/json"
684
+ };
685
+ b.bp("/ListStages");
686
+ let body;
687
+ body = JSON.stringify(
688
+ (0, import_smithy_client.take)(input, {
689
+ maxResults: [],
690
+ nextToken: []
691
+ })
692
+ );
693
+ b.m("POST").h(headers).b(body);
694
+ return b.build();
695
+ }, "se_ListStagesCommand");
696
+ var se_ListStageSessionsCommand = /* @__PURE__ */ __name(async (input, context) => {
697
+ const b = (0, import_core.requestBuilder)(input, context);
698
+ const headers = {
699
+ "content-type": "application/json"
700
+ };
701
+ b.bp("/ListStageSessions");
702
+ let body;
703
+ body = JSON.stringify(
704
+ (0, import_smithy_client.take)(input, {
705
+ maxResults: [],
706
+ nextToken: [],
707
+ stageArn: []
708
+ })
709
+ );
710
+ b.m("POST").h(headers).b(body);
711
+ return b.build();
712
+ }, "se_ListStageSessionsCommand");
713
+ var se_ListStorageConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => {
714
+ const b = (0, import_core.requestBuilder)(input, context);
715
+ const headers = {
716
+ "content-type": "application/json"
717
+ };
718
+ b.bp("/ListStorageConfigurations");
719
+ let body;
720
+ body = JSON.stringify(
721
+ (0, import_smithy_client.take)(input, {
722
+ maxResults: [],
723
+ nextToken: []
724
+ })
725
+ );
726
+ b.m("POST").h(headers).b(body);
727
+ return b.build();
728
+ }, "se_ListStorageConfigurationsCommand");
729
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
730
+ const b = (0, import_core.requestBuilder)(input, context);
731
+ const headers = {};
732
+ b.bp("/tags/{resourceArn}");
733
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
734
+ let body;
735
+ b.m("GET").h(headers).b(body);
736
+ return b.build();
737
+ }, "se_ListTagsForResourceCommand");
738
+ var se_StartCompositionCommand = /* @__PURE__ */ __name(async (input, context) => {
739
+ const b = (0, import_core.requestBuilder)(input, context);
740
+ const headers = {
741
+ "content-type": "application/json"
742
+ };
743
+ b.bp("/StartComposition");
744
+ let body;
745
+ body = JSON.stringify(
746
+ (0, import_smithy_client.take)(input, {
747
+ destinations: (_) => (0, import_smithy_client._json)(_),
748
+ idempotencyToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
749
+ layout: (_) => (0, import_smithy_client._json)(_),
750
+ stageArn: [],
751
+ tags: (_) => (0, import_smithy_client._json)(_)
752
+ })
753
+ );
754
+ b.m("POST").h(headers).b(body);
755
+ return b.build();
756
+ }, "se_StartCompositionCommand");
757
+ var se_StopCompositionCommand = /* @__PURE__ */ __name(async (input, context) => {
758
+ const b = (0, import_core.requestBuilder)(input, context);
759
+ const headers = {
760
+ "content-type": "application/json"
761
+ };
762
+ b.bp("/StopComposition");
763
+ let body;
764
+ body = JSON.stringify(
765
+ (0, import_smithy_client.take)(input, {
766
+ arn: []
767
+ })
768
+ );
769
+ b.m("POST").h(headers).b(body);
770
+ return b.build();
771
+ }, "se_StopCompositionCommand");
772
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
773
+ const b = (0, import_core.requestBuilder)(input, context);
774
+ const headers = {
775
+ "content-type": "application/json"
776
+ };
777
+ b.bp("/tags/{resourceArn}");
778
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
779
+ let body;
780
+ body = JSON.stringify(
781
+ (0, import_smithy_client.take)(input, {
782
+ tags: (_) => (0, import_smithy_client._json)(_)
783
+ })
784
+ );
785
+ b.m("POST").h(headers).b(body);
786
+ return b.build();
787
+ }, "se_TagResourceCommand");
788
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
789
+ const b = (0, import_core.requestBuilder)(input, context);
790
+ const headers = {};
791
+ b.bp("/tags/{resourceArn}");
792
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
793
+ const query = (0, import_smithy_client.map)({
794
+ [_tK]: [
795
+ (0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
796
+ () => (input[_tK] || []).map((_entry) => _entry)
797
+ ]
798
+ });
799
+ let body;
800
+ b.m("DELETE").h(headers).q(query).b(body);
801
+ return b.build();
802
+ }, "se_UntagResourceCommand");
803
+ var se_UpdateStageCommand = /* @__PURE__ */ __name(async (input, context) => {
804
+ const b = (0, import_core.requestBuilder)(input, context);
805
+ const headers = {
806
+ "content-type": "application/json"
807
+ };
808
+ b.bp("/UpdateStage");
809
+ let body;
810
+ body = JSON.stringify(
811
+ (0, import_smithy_client.take)(input, {
812
+ arn: [],
813
+ name: []
814
+ })
815
+ );
816
+ b.m("POST").h(headers).b(body);
817
+ return b.build();
818
+ }, "se_UpdateStageCommand");
819
+ var de_CreateEncoderConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
820
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
821
+ return de_CreateEncoderConfigurationCommandError(output, context);
822
+ }
823
+ const contents = (0, import_smithy_client.map)({
824
+ $metadata: deserializeMetadata(output)
825
+ });
826
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
827
+ const doc = (0, import_smithy_client.take)(data, {
828
+ encoderConfiguration: (_) => de_EncoderConfiguration(_, context)
829
+ });
830
+ Object.assign(contents, doc);
831
+ return contents;
832
+ }, "de_CreateEncoderConfigurationCommand");
833
+ var de_CreateEncoderConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
834
+ const parsedOutput = {
835
+ ...output,
836
+ body: await parseErrorBody(output.body, context)
837
+ };
838
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
839
+ switch (errorCode) {
840
+ case "AccessDeniedException":
841
+ case "com.amazonaws.ivsrealtime#AccessDeniedException":
842
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
843
+ case "ConflictException":
844
+ case "com.amazonaws.ivsrealtime#ConflictException":
845
+ throw await de_ConflictExceptionRes(parsedOutput, context);
846
+ case "InternalServerException":
847
+ case "com.amazonaws.ivsrealtime#InternalServerException":
848
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
849
+ case "PendingVerification":
850
+ case "com.amazonaws.ivsrealtime#PendingVerification":
851
+ throw await de_PendingVerificationRes(parsedOutput, context);
852
+ case "ResourceNotFoundException":
853
+ case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
854
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
855
+ case "ServiceQuotaExceededException":
856
+ case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
857
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
858
+ case "ValidationException":
859
+ case "com.amazonaws.ivsrealtime#ValidationException":
860
+ throw await de_ValidationExceptionRes(parsedOutput, context);
861
+ default:
862
+ const parsedBody = parsedOutput.body;
863
+ return throwDefaultError({
864
+ output,
865
+ parsedBody,
866
+ errorCode
867
+ });
868
+ }
869
+ }, "de_CreateEncoderConfigurationCommandError");
870
+ var de_CreateParticipantTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
871
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
872
+ return de_CreateParticipantTokenCommandError(output, context);
873
+ }
874
+ const contents = (0, import_smithy_client.map)({
875
+ $metadata: deserializeMetadata(output)
876
+ });
877
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
878
+ const doc = (0, import_smithy_client.take)(data, {
879
+ participantToken: (_) => de_ParticipantToken(_, context)
880
+ });
881
+ Object.assign(contents, doc);
882
+ return contents;
883
+ }, "de_CreateParticipantTokenCommand");
884
+ var de_CreateParticipantTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
885
+ const parsedOutput = {
886
+ ...output,
887
+ body: await parseErrorBody(output.body, context)
888
+ };
889
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
890
+ switch (errorCode) {
891
+ case "AccessDeniedException":
892
+ case "com.amazonaws.ivsrealtime#AccessDeniedException":
893
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
894
+ case "PendingVerification":
895
+ case "com.amazonaws.ivsrealtime#PendingVerification":
896
+ throw await de_PendingVerificationRes(parsedOutput, context);
897
+ case "ResourceNotFoundException":
898
+ case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
899
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
900
+ case "ServiceQuotaExceededException":
901
+ case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
902
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
903
+ case "ValidationException":
904
+ case "com.amazonaws.ivsrealtime#ValidationException":
905
+ throw await de_ValidationExceptionRes(parsedOutput, context);
906
+ default:
907
+ const parsedBody = parsedOutput.body;
908
+ return throwDefaultError({
909
+ output,
910
+ parsedBody,
911
+ errorCode
912
+ });
913
+ }
914
+ }, "de_CreateParticipantTokenCommandError");
915
+ var de_CreateStageCommand = /* @__PURE__ */ __name(async (output, context) => {
916
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
917
+ return de_CreateStageCommandError(output, context);
918
+ }
919
+ const contents = (0, import_smithy_client.map)({
920
+ $metadata: deserializeMetadata(output)
921
+ });
922
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
923
+ const doc = (0, import_smithy_client.take)(data, {
924
+ participantTokens: (_) => de_ParticipantTokenList(_, context),
925
+ stage: import_smithy_client._json
926
+ });
927
+ Object.assign(contents, doc);
928
+ return contents;
929
+ }, "de_CreateStageCommand");
930
+ var de_CreateStageCommandError = /* @__PURE__ */ __name(async (output, context) => {
931
+ const parsedOutput = {
932
+ ...output,
933
+ body: await parseErrorBody(output.body, context)
934
+ };
935
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
936
+ switch (errorCode) {
937
+ case "AccessDeniedException":
938
+ case "com.amazonaws.ivsrealtime#AccessDeniedException":
939
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
940
+ case "PendingVerification":
941
+ case "com.amazonaws.ivsrealtime#PendingVerification":
942
+ throw await de_PendingVerificationRes(parsedOutput, context);
943
+ case "ServiceQuotaExceededException":
944
+ case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
945
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
946
+ case "ValidationException":
947
+ case "com.amazonaws.ivsrealtime#ValidationException":
948
+ throw await de_ValidationExceptionRes(parsedOutput, context);
949
+ default:
950
+ const parsedBody = parsedOutput.body;
951
+ return throwDefaultError({
952
+ output,
953
+ parsedBody,
954
+ errorCode
955
+ });
956
+ }
957
+ }, "de_CreateStageCommandError");
958
+ var de_CreateStorageConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
959
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
960
+ return de_CreateStorageConfigurationCommandError(output, context);
961
+ }
962
+ const contents = (0, import_smithy_client.map)({
963
+ $metadata: deserializeMetadata(output)
964
+ });
965
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
966
+ const doc = (0, import_smithy_client.take)(data, {
967
+ storageConfiguration: import_smithy_client._json
968
+ });
969
+ Object.assign(contents, doc);
970
+ return contents;
971
+ }, "de_CreateStorageConfigurationCommand");
972
+ var de_CreateStorageConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
973
+ const parsedOutput = {
974
+ ...output,
975
+ body: await parseErrorBody(output.body, context)
976
+ };
977
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
978
+ switch (errorCode) {
979
+ case "AccessDeniedException":
980
+ case "com.amazonaws.ivsrealtime#AccessDeniedException":
981
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
982
+ case "ConflictException":
983
+ case "com.amazonaws.ivsrealtime#ConflictException":
984
+ throw await de_ConflictExceptionRes(parsedOutput, context);
985
+ case "InternalServerException":
986
+ case "com.amazonaws.ivsrealtime#InternalServerException":
987
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
988
+ case "PendingVerification":
989
+ case "com.amazonaws.ivsrealtime#PendingVerification":
990
+ throw await de_PendingVerificationRes(parsedOutput, context);
991
+ case "ResourceNotFoundException":
992
+ case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
993
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
994
+ case "ServiceQuotaExceededException":
995
+ case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
996
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
997
+ case "ValidationException":
998
+ case "com.amazonaws.ivsrealtime#ValidationException":
999
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1000
+ default:
1001
+ const parsedBody = parsedOutput.body;
1002
+ return throwDefaultError({
1003
+ output,
1004
+ parsedBody,
1005
+ errorCode
1006
+ });
1007
+ }
1008
+ }, "de_CreateStorageConfigurationCommandError");
1009
+ var de_DeleteEncoderConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1010
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1011
+ return de_DeleteEncoderConfigurationCommandError(output, context);
1012
+ }
1013
+ const contents = (0, import_smithy_client.map)({
1014
+ $metadata: deserializeMetadata(output)
1015
+ });
1016
+ await (0, import_smithy_client.collectBody)(output.body, context);
1017
+ return contents;
1018
+ }, "de_DeleteEncoderConfigurationCommand");
1019
+ var de_DeleteEncoderConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1020
+ const parsedOutput = {
1021
+ ...output,
1022
+ body: await parseErrorBody(output.body, context)
1023
+ };
1024
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1025
+ switch (errorCode) {
1026
+ case "AccessDeniedException":
1027
+ case "com.amazonaws.ivsrealtime#AccessDeniedException":
1028
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1029
+ case "ConflictException":
1030
+ case "com.amazonaws.ivsrealtime#ConflictException":
1031
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1032
+ case "InternalServerException":
1033
+ case "com.amazonaws.ivsrealtime#InternalServerException":
1034
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1035
+ case "ResourceNotFoundException":
1036
+ case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1037
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1038
+ case "ServiceQuotaExceededException":
1039
+ case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
1040
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1041
+ case "ValidationException":
1042
+ case "com.amazonaws.ivsrealtime#ValidationException":
1043
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1044
+ default:
1045
+ const parsedBody = parsedOutput.body;
1046
+ return throwDefaultError({
1047
+ output,
1048
+ parsedBody,
1049
+ errorCode
1050
+ });
1051
+ }
1052
+ }, "de_DeleteEncoderConfigurationCommandError");
1053
+ var de_DeleteStageCommand = /* @__PURE__ */ __name(async (output, context) => {
1054
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1055
+ return de_DeleteStageCommandError(output, context);
1056
+ }
1057
+ const contents = (0, import_smithy_client.map)({
1058
+ $metadata: deserializeMetadata(output)
1059
+ });
1060
+ await (0, import_smithy_client.collectBody)(output.body, context);
1061
+ return contents;
1062
+ }, "de_DeleteStageCommand");
1063
+ var de_DeleteStageCommandError = /* @__PURE__ */ __name(async (output, context) => {
1064
+ const parsedOutput = {
1065
+ ...output,
1066
+ body: await parseErrorBody(output.body, context)
1067
+ };
1068
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1069
+ switch (errorCode) {
1070
+ case "AccessDeniedException":
1071
+ case "com.amazonaws.ivsrealtime#AccessDeniedException":
1072
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1073
+ case "ConflictException":
1074
+ case "com.amazonaws.ivsrealtime#ConflictException":
1075
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1076
+ case "PendingVerification":
1077
+ case "com.amazonaws.ivsrealtime#PendingVerification":
1078
+ throw await de_PendingVerificationRes(parsedOutput, context);
1079
+ case "ResourceNotFoundException":
1080
+ case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1081
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1082
+ case "ValidationException":
1083
+ case "com.amazonaws.ivsrealtime#ValidationException":
1084
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1085
+ default:
1086
+ const parsedBody = parsedOutput.body;
1087
+ return throwDefaultError({
1088
+ output,
1089
+ parsedBody,
1090
+ errorCode
1091
+ });
1092
+ }
1093
+ }, "de_DeleteStageCommandError");
1094
+ var de_DeleteStorageConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1095
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1096
+ return de_DeleteStorageConfigurationCommandError(output, context);
1097
+ }
1098
+ const contents = (0, import_smithy_client.map)({
1099
+ $metadata: deserializeMetadata(output)
1100
+ });
1101
+ await (0, import_smithy_client.collectBody)(output.body, context);
1102
+ return contents;
1103
+ }, "de_DeleteStorageConfigurationCommand");
1104
+ var de_DeleteStorageConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1105
+ const parsedOutput = {
1106
+ ...output,
1107
+ body: await parseErrorBody(output.body, context)
1108
+ };
1109
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1110
+ switch (errorCode) {
1111
+ case "AccessDeniedException":
1112
+ case "com.amazonaws.ivsrealtime#AccessDeniedException":
1113
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1114
+ case "ConflictException":
1115
+ case "com.amazonaws.ivsrealtime#ConflictException":
1116
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1117
+ case "InternalServerException":
1118
+ case "com.amazonaws.ivsrealtime#InternalServerException":
1119
+ throw await de_InternalServerExceptionRes(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
+ }, "de_DeleteStorageConfigurationCommandError");
1138
+ var de_DisconnectParticipantCommand = /* @__PURE__ */ __name(async (output, context) => {
1139
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1140
+ return de_DisconnectParticipantCommandError(output, context);
1141
+ }
1142
+ const contents = (0, import_smithy_client.map)({
1143
+ $metadata: deserializeMetadata(output)
1144
+ });
1145
+ await (0, import_smithy_client.collectBody)(output.body, context);
1146
+ return contents;
1147
+ }, "de_DisconnectParticipantCommand");
1148
+ var de_DisconnectParticipantCommandError = /* @__PURE__ */ __name(async (output, context) => {
1149
+ const parsedOutput = {
1150
+ ...output,
1151
+ body: await parseErrorBody(output.body, context)
1152
+ };
1153
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1154
+ switch (errorCode) {
1155
+ case "AccessDeniedException":
1156
+ case "com.amazonaws.ivsrealtime#AccessDeniedException":
1157
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1158
+ case "PendingVerification":
1159
+ case "com.amazonaws.ivsrealtime#PendingVerification":
1160
+ throw await de_PendingVerificationRes(parsedOutput, context);
1161
+ case "ResourceNotFoundException":
1162
+ case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1163
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1164
+ case "ValidationException":
1165
+ case "com.amazonaws.ivsrealtime#ValidationException":
1166
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1167
+ default:
1168
+ const parsedBody = parsedOutput.body;
1169
+ return throwDefaultError({
1170
+ output,
1171
+ parsedBody,
1172
+ errorCode
1173
+ });
1174
+ }
1175
+ }, "de_DisconnectParticipantCommandError");
1176
+ var de_GetCompositionCommand = /* @__PURE__ */ __name(async (output, context) => {
1177
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1178
+ return de_GetCompositionCommandError(output, context);
1179
+ }
1180
+ const contents = (0, import_smithy_client.map)({
1181
+ $metadata: deserializeMetadata(output)
1182
+ });
1183
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1184
+ const doc = (0, import_smithy_client.take)(data, {
1185
+ composition: (_) => de_Composition(_, context)
1186
+ });
1187
+ Object.assign(contents, doc);
1188
+ return contents;
1189
+ }, "de_GetCompositionCommand");
1190
+ var de_GetCompositionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1191
+ const parsedOutput = {
1192
+ ...output,
1193
+ body: await parseErrorBody(output.body, context)
1194
+ };
1195
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1196
+ switch (errorCode) {
1197
+ case "AccessDeniedException":
1198
+ case "com.amazonaws.ivsrealtime#AccessDeniedException":
1199
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1200
+ case "ConflictException":
1201
+ case "com.amazonaws.ivsrealtime#ConflictException":
1202
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1203
+ case "InternalServerException":
1204
+ case "com.amazonaws.ivsrealtime#InternalServerException":
1205
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1206
+ case "ResourceNotFoundException":
1207
+ case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1208
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1209
+ case "ServiceQuotaExceededException":
1210
+ case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
1211
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1212
+ case "ValidationException":
1213
+ case "com.amazonaws.ivsrealtime#ValidationException":
1214
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1215
+ default:
1216
+ const parsedBody = parsedOutput.body;
1217
+ return throwDefaultError({
1218
+ output,
1219
+ parsedBody,
1220
+ errorCode
1221
+ });
1222
+ }
1223
+ }, "de_GetCompositionCommandError");
1224
+ var de_GetEncoderConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1225
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1226
+ return de_GetEncoderConfigurationCommandError(output, context);
1227
+ }
1228
+ const contents = (0, import_smithy_client.map)({
1229
+ $metadata: deserializeMetadata(output)
1230
+ });
1231
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1232
+ const doc = (0, import_smithy_client.take)(data, {
1233
+ encoderConfiguration: (_) => de_EncoderConfiguration(_, context)
1234
+ });
1235
+ Object.assign(contents, doc);
1236
+ return contents;
1237
+ }, "de_GetEncoderConfigurationCommand");
1238
+ var de_GetEncoderConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1239
+ const parsedOutput = {
1240
+ ...output,
1241
+ body: await parseErrorBody(output.body, context)
1242
+ };
1243
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1244
+ switch (errorCode) {
1245
+ case "AccessDeniedException":
1246
+ case "com.amazonaws.ivsrealtime#AccessDeniedException":
1247
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1248
+ case "ConflictException":
1249
+ case "com.amazonaws.ivsrealtime#ConflictException":
1250
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1251
+ case "InternalServerException":
1252
+ case "com.amazonaws.ivsrealtime#InternalServerException":
1253
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1254
+ case "ResourceNotFoundException":
1255
+ case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1256
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1257
+ case "ServiceQuotaExceededException":
1258
+ case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
1259
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1260
+ case "ValidationException":
1261
+ case "com.amazonaws.ivsrealtime#ValidationException":
1262
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1263
+ default:
1264
+ const parsedBody = parsedOutput.body;
1265
+ return throwDefaultError({
1266
+ output,
1267
+ parsedBody,
1268
+ errorCode
1269
+ });
1270
+ }
1271
+ }, "de_GetEncoderConfigurationCommandError");
1272
+ var de_GetParticipantCommand = /* @__PURE__ */ __name(async (output, context) => {
1273
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1274
+ return de_GetParticipantCommandError(output, context);
1275
+ }
1276
+ const contents = (0, import_smithy_client.map)({
1277
+ $metadata: deserializeMetadata(output)
1278
+ });
1279
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1280
+ const doc = (0, import_smithy_client.take)(data, {
1281
+ participant: (_) => de_Participant(_, context)
1282
+ });
1283
+ Object.assign(contents, doc);
1284
+ return contents;
1285
+ }, "de_GetParticipantCommand");
1286
+ var de_GetParticipantCommandError = /* @__PURE__ */ __name(async (output, context) => {
1287
+ const parsedOutput = {
1288
+ ...output,
1289
+ body: await parseErrorBody(output.body, context)
1290
+ };
1291
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1292
+ switch (errorCode) {
1293
+ case "AccessDeniedException":
1294
+ case "com.amazonaws.ivsrealtime#AccessDeniedException":
1295
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1296
+ case "ResourceNotFoundException":
1297
+ case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1298
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1299
+ case "ValidationException":
1300
+ case "com.amazonaws.ivsrealtime#ValidationException":
1301
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1302
+ default:
1303
+ const parsedBody = parsedOutput.body;
1304
+ return throwDefaultError({
1305
+ output,
1306
+ parsedBody,
1307
+ errorCode
1308
+ });
1309
+ }
1310
+ }, "de_GetParticipantCommandError");
1311
+ var de_GetStageCommand = /* @__PURE__ */ __name(async (output, context) => {
1312
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1313
+ return de_GetStageCommandError(output, context);
1314
+ }
1315
+ const contents = (0, import_smithy_client.map)({
1316
+ $metadata: deserializeMetadata(output)
1317
+ });
1318
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1319
+ const doc = (0, import_smithy_client.take)(data, {
1320
+ stage: import_smithy_client._json
1321
+ });
1322
+ Object.assign(contents, doc);
1323
+ return contents;
1324
+ }, "de_GetStageCommand");
1325
+ var de_GetStageCommandError = /* @__PURE__ */ __name(async (output, context) => {
1326
+ const parsedOutput = {
1327
+ ...output,
1328
+ body: await parseErrorBody(output.body, context)
1329
+ };
1330
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1331
+ switch (errorCode) {
1332
+ case "AccessDeniedException":
1333
+ case "com.amazonaws.ivsrealtime#AccessDeniedException":
1334
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1335
+ case "ResourceNotFoundException":
1336
+ case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1337
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1338
+ case "ValidationException":
1339
+ case "com.amazonaws.ivsrealtime#ValidationException":
1340
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1341
+ default:
1342
+ const parsedBody = parsedOutput.body;
1343
+ return throwDefaultError({
1344
+ output,
1345
+ parsedBody,
1346
+ errorCode
1347
+ });
1348
+ }
1349
+ }, "de_GetStageCommandError");
1350
+ var de_GetStageSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
1351
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1352
+ return de_GetStageSessionCommandError(output, context);
1353
+ }
1354
+ const contents = (0, import_smithy_client.map)({
1355
+ $metadata: deserializeMetadata(output)
1356
+ });
1357
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1358
+ const doc = (0, import_smithy_client.take)(data, {
1359
+ stageSession: (_) => de_StageSession(_, context)
1360
+ });
1361
+ Object.assign(contents, doc);
1362
+ return contents;
1363
+ }, "de_GetStageSessionCommand");
1364
+ var de_GetStageSessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1365
+ const parsedOutput = {
1366
+ ...output,
1367
+ body: await parseErrorBody(output.body, context)
1368
+ };
1369
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1370
+ switch (errorCode) {
1371
+ case "AccessDeniedException":
1372
+ case "com.amazonaws.ivsrealtime#AccessDeniedException":
1373
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1374
+ case "ResourceNotFoundException":
1375
+ case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1376
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1377
+ case "ValidationException":
1378
+ case "com.amazonaws.ivsrealtime#ValidationException":
1379
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1380
+ default:
1381
+ const parsedBody = parsedOutput.body;
1382
+ return throwDefaultError({
1383
+ output,
1384
+ parsedBody,
1385
+ errorCode
1386
+ });
1387
+ }
1388
+ }, "de_GetStageSessionCommandError");
1389
+ var de_GetStorageConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1390
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1391
+ return de_GetStorageConfigurationCommandError(output, context);
1392
+ }
1393
+ const contents = (0, import_smithy_client.map)({
1394
+ $metadata: deserializeMetadata(output)
1395
+ });
1396
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1397
+ const doc = (0, import_smithy_client.take)(data, {
1398
+ storageConfiguration: import_smithy_client._json
1399
+ });
1400
+ Object.assign(contents, doc);
1401
+ return contents;
1402
+ }, "de_GetStorageConfigurationCommand");
1403
+ var de_GetStorageConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1404
+ const parsedOutput = {
1405
+ ...output,
1406
+ body: await parseErrorBody(output.body, context)
1407
+ };
1408
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1409
+ switch (errorCode) {
1410
+ case "AccessDeniedException":
1411
+ case "com.amazonaws.ivsrealtime#AccessDeniedException":
1412
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1413
+ case "ConflictException":
1414
+ case "com.amazonaws.ivsrealtime#ConflictException":
1415
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1416
+ case "InternalServerException":
1417
+ case "com.amazonaws.ivsrealtime#InternalServerException":
1418
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1419
+ case "ResourceNotFoundException":
1420
+ case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1421
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1422
+ case "ServiceQuotaExceededException":
1423
+ case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
1424
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1425
+ case "ValidationException":
1426
+ case "com.amazonaws.ivsrealtime#ValidationException":
1427
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1428
+ default:
1429
+ const parsedBody = parsedOutput.body;
1430
+ return throwDefaultError({
1431
+ output,
1432
+ parsedBody,
1433
+ errorCode
1434
+ });
1435
+ }
1436
+ }, "de_GetStorageConfigurationCommandError");
1437
+ var de_ListCompositionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1438
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1439
+ return de_ListCompositionsCommandError(output, context);
1440
+ }
1441
+ const contents = (0, import_smithy_client.map)({
1442
+ $metadata: deserializeMetadata(output)
1443
+ });
1444
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1445
+ const doc = (0, import_smithy_client.take)(data, {
1446
+ compositions: (_) => de_CompositionSummaryList(_, context),
1447
+ nextToken: import_smithy_client.expectString
1448
+ });
1449
+ Object.assign(contents, doc);
1450
+ return contents;
1451
+ }, "de_ListCompositionsCommand");
1452
+ var de_ListCompositionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1453
+ const parsedOutput = {
1454
+ ...output,
1455
+ body: await parseErrorBody(output.body, context)
1456
+ };
1457
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1458
+ switch (errorCode) {
1459
+ case "AccessDeniedException":
1460
+ case "com.amazonaws.ivsrealtime#AccessDeniedException":
1461
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1462
+ case "ConflictException":
1463
+ case "com.amazonaws.ivsrealtime#ConflictException":
1464
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1465
+ case "InternalServerException":
1466
+ case "com.amazonaws.ivsrealtime#InternalServerException":
1467
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1468
+ case "ServiceQuotaExceededException":
1469
+ case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
1470
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1471
+ case "ValidationException":
1472
+ case "com.amazonaws.ivsrealtime#ValidationException":
1473
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1474
+ default:
1475
+ const parsedBody = parsedOutput.body;
1476
+ return throwDefaultError({
1477
+ output,
1478
+ parsedBody,
1479
+ errorCode
1480
+ });
1481
+ }
1482
+ }, "de_ListCompositionsCommandError");
1483
+ var de_ListEncoderConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1484
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1485
+ return de_ListEncoderConfigurationsCommandError(output, context);
1486
+ }
1487
+ const contents = (0, import_smithy_client.map)({
1488
+ $metadata: deserializeMetadata(output)
1489
+ });
1490
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1491
+ const doc = (0, import_smithy_client.take)(data, {
1492
+ encoderConfigurations: import_smithy_client._json,
1493
+ nextToken: import_smithy_client.expectString
1494
+ });
1495
+ Object.assign(contents, doc);
1496
+ return contents;
1497
+ }, "de_ListEncoderConfigurationsCommand");
1498
+ var de_ListEncoderConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1499
+ const parsedOutput = {
1500
+ ...output,
1501
+ body: await parseErrorBody(output.body, context)
1502
+ };
1503
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1504
+ switch (errorCode) {
1505
+ case "AccessDeniedException":
1506
+ case "com.amazonaws.ivsrealtime#AccessDeniedException":
1507
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1508
+ case "ConflictException":
1509
+ case "com.amazonaws.ivsrealtime#ConflictException":
1510
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1511
+ case "InternalServerException":
1512
+ case "com.amazonaws.ivsrealtime#InternalServerException":
1513
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1514
+ case "ServiceQuotaExceededException":
1515
+ case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
1516
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1517
+ case "ValidationException":
1518
+ case "com.amazonaws.ivsrealtime#ValidationException":
1519
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1520
+ default:
1521
+ const parsedBody = parsedOutput.body;
1522
+ return throwDefaultError({
1523
+ output,
1524
+ parsedBody,
1525
+ errorCode
1526
+ });
1527
+ }
1528
+ }, "de_ListEncoderConfigurationsCommandError");
1529
+ var de_ListParticipantEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
1530
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1531
+ return de_ListParticipantEventsCommandError(output, context);
1532
+ }
1533
+ const contents = (0, import_smithy_client.map)({
1534
+ $metadata: deserializeMetadata(output)
1535
+ });
1536
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1537
+ const doc = (0, import_smithy_client.take)(data, {
1538
+ events: (_) => de_EventList(_, context),
1539
+ nextToken: import_smithy_client.expectString
1540
+ });
1541
+ Object.assign(contents, doc);
1542
+ return contents;
1543
+ }, "de_ListParticipantEventsCommand");
1544
+ var de_ListParticipantEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1545
+ const parsedOutput = {
1546
+ ...output,
1547
+ body: await parseErrorBody(output.body, context)
1548
+ };
1549
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1550
+ switch (errorCode) {
1551
+ case "AccessDeniedException":
1552
+ case "com.amazonaws.ivsrealtime#AccessDeniedException":
1553
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1554
+ case "ValidationException":
1555
+ case "com.amazonaws.ivsrealtime#ValidationException":
1556
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1557
+ default:
1558
+ const parsedBody = parsedOutput.body;
1559
+ return throwDefaultError({
1560
+ output,
1561
+ parsedBody,
1562
+ errorCode
1563
+ });
1564
+ }
1565
+ }, "de_ListParticipantEventsCommandError");
1566
+ var de_ListParticipantsCommand = /* @__PURE__ */ __name(async (output, context) => {
1567
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1568
+ return de_ListParticipantsCommandError(output, context);
1569
+ }
1570
+ const contents = (0, import_smithy_client.map)({
1571
+ $metadata: deserializeMetadata(output)
1572
+ });
1573
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1574
+ const doc = (0, import_smithy_client.take)(data, {
1575
+ nextToken: import_smithy_client.expectString,
1576
+ participants: (_) => de_ParticipantList(_, context)
1577
+ });
1578
+ Object.assign(contents, doc);
1579
+ return contents;
1580
+ }, "de_ListParticipantsCommand");
1581
+ var de_ListParticipantsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1582
+ const parsedOutput = {
1583
+ ...output,
1584
+ body: await parseErrorBody(output.body, context)
1585
+ };
1586
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1587
+ switch (errorCode) {
1588
+ case "AccessDeniedException":
1589
+ case "com.amazonaws.ivsrealtime#AccessDeniedException":
1590
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1591
+ case "ValidationException":
1592
+ case "com.amazonaws.ivsrealtime#ValidationException":
1593
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1594
+ default:
1595
+ const parsedBody = parsedOutput.body;
1596
+ return throwDefaultError({
1597
+ output,
1598
+ parsedBody,
1599
+ errorCode
1600
+ });
1601
+ }
1602
+ }, "de_ListParticipantsCommandError");
1603
+ var de_ListStagesCommand = /* @__PURE__ */ __name(async (output, context) => {
1604
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1605
+ return de_ListStagesCommandError(output, context);
1606
+ }
1607
+ const contents = (0, import_smithy_client.map)({
1608
+ $metadata: deserializeMetadata(output)
1609
+ });
1610
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1611
+ const doc = (0, import_smithy_client.take)(data, {
1612
+ nextToken: import_smithy_client.expectString,
1613
+ stages: import_smithy_client._json
1614
+ });
1615
+ Object.assign(contents, doc);
1616
+ return contents;
1617
+ }, "de_ListStagesCommand");
1618
+ var de_ListStagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1619
+ const parsedOutput = {
1620
+ ...output,
1621
+ body: await parseErrorBody(output.body, context)
1622
+ };
1623
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1624
+ switch (errorCode) {
1625
+ case "AccessDeniedException":
1626
+ case "com.amazonaws.ivsrealtime#AccessDeniedException":
1627
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1628
+ case "ConflictException":
1629
+ case "com.amazonaws.ivsrealtime#ConflictException":
1630
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1631
+ case "ValidationException":
1632
+ case "com.amazonaws.ivsrealtime#ValidationException":
1633
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1634
+ default:
1635
+ const parsedBody = parsedOutput.body;
1636
+ return throwDefaultError({
1637
+ output,
1638
+ parsedBody,
1639
+ errorCode
1640
+ });
1641
+ }
1642
+ }, "de_ListStagesCommandError");
1643
+ var de_ListStageSessionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1644
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1645
+ return de_ListStageSessionsCommandError(output, context);
1646
+ }
1647
+ const contents = (0, import_smithy_client.map)({
1648
+ $metadata: deserializeMetadata(output)
1649
+ });
1650
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1651
+ const doc = (0, import_smithy_client.take)(data, {
1652
+ nextToken: import_smithy_client.expectString,
1653
+ stageSessions: (_) => de_StageSessionList(_, context)
1654
+ });
1655
+ Object.assign(contents, doc);
1656
+ return contents;
1657
+ }, "de_ListStageSessionsCommand");
1658
+ var de_ListStageSessionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1659
+ const parsedOutput = {
1660
+ ...output,
1661
+ body: await parseErrorBody(output.body, context)
1662
+ };
1663
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1664
+ switch (errorCode) {
1665
+ case "AccessDeniedException":
1666
+ case "com.amazonaws.ivsrealtime#AccessDeniedException":
1667
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1668
+ case "ValidationException":
1669
+ case "com.amazonaws.ivsrealtime#ValidationException":
1670
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1671
+ default:
1672
+ const parsedBody = parsedOutput.body;
1673
+ return throwDefaultError({
1674
+ output,
1675
+ parsedBody,
1676
+ errorCode
1677
+ });
1678
+ }
1679
+ }, "de_ListStageSessionsCommandError");
1680
+ var de_ListStorageConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1681
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1682
+ return de_ListStorageConfigurationsCommandError(output, context);
1683
+ }
1684
+ const contents = (0, import_smithy_client.map)({
1685
+ $metadata: deserializeMetadata(output)
1686
+ });
1687
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1688
+ const doc = (0, import_smithy_client.take)(data, {
1689
+ nextToken: import_smithy_client.expectString,
1690
+ storageConfigurations: import_smithy_client._json
1691
+ });
1692
+ Object.assign(contents, doc);
1693
+ return contents;
1694
+ }, "de_ListStorageConfigurationsCommand");
1695
+ var de_ListStorageConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1696
+ const parsedOutput = {
1697
+ ...output,
1698
+ body: await parseErrorBody(output.body, context)
1699
+ };
1700
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1701
+ switch (errorCode) {
1702
+ case "AccessDeniedException":
1703
+ case "com.amazonaws.ivsrealtime#AccessDeniedException":
1704
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1705
+ case "ConflictException":
1706
+ case "com.amazonaws.ivsrealtime#ConflictException":
1707
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1708
+ case "InternalServerException":
1709
+ case "com.amazonaws.ivsrealtime#InternalServerException":
1710
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1711
+ case "ServiceQuotaExceededException":
1712
+ case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
1713
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1714
+ case "ValidationException":
1715
+ case "com.amazonaws.ivsrealtime#ValidationException":
1716
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1717
+ default:
1718
+ const parsedBody = parsedOutput.body;
1719
+ return throwDefaultError({
1720
+ output,
1721
+ parsedBody,
1722
+ errorCode
1723
+ });
1724
+ }
1725
+ }, "de_ListStorageConfigurationsCommandError");
1726
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1727
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1728
+ return de_ListTagsForResourceCommandError(output, context);
1729
+ }
1730
+ const contents = (0, import_smithy_client.map)({
1731
+ $metadata: deserializeMetadata(output)
1732
+ });
1733
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1734
+ const doc = (0, import_smithy_client.take)(data, {
1735
+ tags: import_smithy_client._json
1736
+ });
1737
+ Object.assign(contents, doc);
1738
+ return contents;
1739
+ }, "de_ListTagsForResourceCommand");
1740
+ var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1741
+ const parsedOutput = {
1742
+ ...output,
1743
+ body: await parseErrorBody(output.body, context)
1744
+ };
1745
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1746
+ switch (errorCode) {
1747
+ case "InternalServerException":
1748
+ case "com.amazonaws.ivsrealtime#InternalServerException":
1749
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1750
+ case "ResourceNotFoundException":
1751
+ case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1752
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1753
+ case "ValidationException":
1754
+ case "com.amazonaws.ivsrealtime#ValidationException":
1755
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1756
+ default:
1757
+ const parsedBody = parsedOutput.body;
1758
+ return throwDefaultError({
1759
+ output,
1760
+ parsedBody,
1761
+ errorCode
1762
+ });
1763
+ }
1764
+ }, "de_ListTagsForResourceCommandError");
1765
+ var de_StartCompositionCommand = /* @__PURE__ */ __name(async (output, context) => {
1766
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1767
+ return de_StartCompositionCommandError(output, context);
1768
+ }
1769
+ const contents = (0, import_smithy_client.map)({
1770
+ $metadata: deserializeMetadata(output)
1771
+ });
1772
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1773
+ const doc = (0, import_smithy_client.take)(data, {
1774
+ composition: (_) => de_Composition(_, context)
1775
+ });
1776
+ Object.assign(contents, doc);
1777
+ return contents;
1778
+ }, "de_StartCompositionCommand");
1779
+ var de_StartCompositionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1780
+ const parsedOutput = {
1781
+ ...output,
1782
+ body: await parseErrorBody(output.body, context)
1783
+ };
1784
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1785
+ switch (errorCode) {
1786
+ case "AccessDeniedException":
1787
+ case "com.amazonaws.ivsrealtime#AccessDeniedException":
1788
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1789
+ case "ConflictException":
1790
+ case "com.amazonaws.ivsrealtime#ConflictException":
1791
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1792
+ case "InternalServerException":
1793
+ case "com.amazonaws.ivsrealtime#InternalServerException":
1794
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1795
+ case "PendingVerification":
1796
+ case "com.amazonaws.ivsrealtime#PendingVerification":
1797
+ throw await de_PendingVerificationRes(parsedOutput, context);
1798
+ case "ResourceNotFoundException":
1799
+ case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1800
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1801
+ case "ServiceQuotaExceededException":
1802
+ case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
1803
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1804
+ case "ValidationException":
1805
+ case "com.amazonaws.ivsrealtime#ValidationException":
1806
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1807
+ default:
1808
+ const parsedBody = parsedOutput.body;
1809
+ return throwDefaultError({
1810
+ output,
1811
+ parsedBody,
1812
+ errorCode
1813
+ });
1814
+ }
1815
+ }, "de_StartCompositionCommandError");
1816
+ var de_StopCompositionCommand = /* @__PURE__ */ __name(async (output, context) => {
1817
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1818
+ return de_StopCompositionCommandError(output, context);
1819
+ }
1820
+ const contents = (0, import_smithy_client.map)({
1821
+ $metadata: deserializeMetadata(output)
1822
+ });
1823
+ await (0, import_smithy_client.collectBody)(output.body, context);
1824
+ return contents;
1825
+ }, "de_StopCompositionCommand");
1826
+ var de_StopCompositionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1827
+ const parsedOutput = {
1828
+ ...output,
1829
+ body: await parseErrorBody(output.body, context)
1830
+ };
1831
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1832
+ switch (errorCode) {
1833
+ case "AccessDeniedException":
1834
+ case "com.amazonaws.ivsrealtime#AccessDeniedException":
1835
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1836
+ case "ConflictException":
1837
+ case "com.amazonaws.ivsrealtime#ConflictException":
1838
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1839
+ case "InternalServerException":
1840
+ case "com.amazonaws.ivsrealtime#InternalServerException":
1841
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1842
+ case "ResourceNotFoundException":
1843
+ case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1844
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1845
+ case "ServiceQuotaExceededException":
1846
+ case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
1847
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1848
+ case "ValidationException":
1849
+ case "com.amazonaws.ivsrealtime#ValidationException":
1850
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1851
+ default:
1852
+ const parsedBody = parsedOutput.body;
1853
+ return throwDefaultError({
1854
+ output,
1855
+ parsedBody,
1856
+ errorCode
1857
+ });
1858
+ }
1859
+ }, "de_StopCompositionCommandError");
1860
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1861
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1862
+ return de_TagResourceCommandError(output, context);
1863
+ }
1864
+ const contents = (0, import_smithy_client.map)({
1865
+ $metadata: deserializeMetadata(output)
1866
+ });
1867
+ await (0, import_smithy_client.collectBody)(output.body, context);
1868
+ return contents;
1869
+ }, "de_TagResourceCommand");
1870
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1871
+ const parsedOutput = {
1872
+ ...output,
1873
+ body: await parseErrorBody(output.body, context)
1874
+ };
1875
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1876
+ switch (errorCode) {
1877
+ case "InternalServerException":
1878
+ case "com.amazonaws.ivsrealtime#InternalServerException":
1879
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1880
+ case "ResourceNotFoundException":
1881
+ case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1882
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1883
+ case "ValidationException":
1884
+ case "com.amazonaws.ivsrealtime#ValidationException":
1885
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1886
+ default:
1887
+ const parsedBody = parsedOutput.body;
1888
+ return throwDefaultError({
1889
+ output,
1890
+ parsedBody,
1891
+ errorCode
1892
+ });
1893
+ }
1894
+ }, "de_TagResourceCommandError");
1895
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1896
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1897
+ return de_UntagResourceCommandError(output, context);
1898
+ }
1899
+ const contents = (0, import_smithy_client.map)({
1900
+ $metadata: deserializeMetadata(output)
1901
+ });
1902
+ await (0, import_smithy_client.collectBody)(output.body, context);
1903
+ return contents;
1904
+ }, "de_UntagResourceCommand");
1905
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1906
+ const parsedOutput = {
1907
+ ...output,
1908
+ body: await parseErrorBody(output.body, context)
1909
+ };
1910
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1911
+ switch (errorCode) {
1912
+ case "InternalServerException":
1913
+ case "com.amazonaws.ivsrealtime#InternalServerException":
1914
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1915
+ case "ResourceNotFoundException":
1916
+ case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1917
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1918
+ case "ValidationException":
1919
+ case "com.amazonaws.ivsrealtime#ValidationException":
1920
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1921
+ default:
1922
+ const parsedBody = parsedOutput.body;
1923
+ return throwDefaultError({
1924
+ output,
1925
+ parsedBody,
1926
+ errorCode
1927
+ });
1928
+ }
1929
+ }, "de_UntagResourceCommandError");
1930
+ var de_UpdateStageCommand = /* @__PURE__ */ __name(async (output, context) => {
1931
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1932
+ return de_UpdateStageCommandError(output, context);
1933
+ }
1934
+ const contents = (0, import_smithy_client.map)({
1935
+ $metadata: deserializeMetadata(output)
1936
+ });
1937
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1938
+ const doc = (0, import_smithy_client.take)(data, {
1939
+ stage: import_smithy_client._json
1940
+ });
1941
+ Object.assign(contents, doc);
1942
+ return contents;
1943
+ }, "de_UpdateStageCommand");
1944
+ var de_UpdateStageCommandError = /* @__PURE__ */ __name(async (output, context) => {
1945
+ const parsedOutput = {
1946
+ ...output,
1947
+ body: await parseErrorBody(output.body, context)
1948
+ };
1949
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1950
+ switch (errorCode) {
1951
+ case "AccessDeniedException":
1952
+ case "com.amazonaws.ivsrealtime#AccessDeniedException":
1953
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1954
+ case "PendingVerification":
1955
+ case "com.amazonaws.ivsrealtime#PendingVerification":
1956
+ throw await de_PendingVerificationRes(parsedOutput, context);
1957
+ case "ResourceNotFoundException":
1958
+ case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1959
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1960
+ case "ServiceQuotaExceededException":
1961
+ case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
1962
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1963
+ case "ValidationException":
1964
+ case "com.amazonaws.ivsrealtime#ValidationException":
1965
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1966
+ default:
1967
+ const parsedBody = parsedOutput.body;
1968
+ return throwDefaultError({
1969
+ output,
1970
+ parsedBody,
1971
+ errorCode
1972
+ });
1973
+ }
1974
+ }, "de_UpdateStageCommandError");
1975
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(IVSRealTimeServiceException);
1976
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1977
+ const contents = (0, import_smithy_client.map)({});
1978
+ const data = parsedOutput.body;
1979
+ const doc = (0, import_smithy_client.take)(data, {
1980
+ exceptionMessage: import_smithy_client.expectString
1981
+ });
1982
+ Object.assign(contents, doc);
1983
+ const exception = new AccessDeniedException({
1984
+ $metadata: deserializeMetadata(parsedOutput),
1985
+ ...contents
1986
+ });
1987
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1988
+ }, "de_AccessDeniedExceptionRes");
1989
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1990
+ const contents = (0, import_smithy_client.map)({});
1991
+ const data = parsedOutput.body;
1992
+ const doc = (0, import_smithy_client.take)(data, {
1993
+ exceptionMessage: import_smithy_client.expectString
1994
+ });
1995
+ Object.assign(contents, doc);
1996
+ const exception = new ConflictException({
1997
+ $metadata: deserializeMetadata(parsedOutput),
1998
+ ...contents
1999
+ });
2000
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2001
+ }, "de_ConflictExceptionRes");
2002
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2003
+ const contents = (0, import_smithy_client.map)({});
2004
+ const data = parsedOutput.body;
2005
+ const doc = (0, import_smithy_client.take)(data, {
2006
+ exceptionMessage: import_smithy_client.expectString
2007
+ });
2008
+ Object.assign(contents, doc);
2009
+ const exception = new InternalServerException({
2010
+ $metadata: deserializeMetadata(parsedOutput),
2011
+ ...contents
2012
+ });
2013
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2014
+ }, "de_InternalServerExceptionRes");
2015
+ var de_PendingVerificationRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2016
+ const contents = (0, import_smithy_client.map)({});
2017
+ const data = parsedOutput.body;
2018
+ const doc = (0, import_smithy_client.take)(data, {
2019
+ exceptionMessage: import_smithy_client.expectString
2020
+ });
2021
+ Object.assign(contents, doc);
2022
+ const exception = new PendingVerification({
2023
+ $metadata: deserializeMetadata(parsedOutput),
2024
+ ...contents
2025
+ });
2026
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2027
+ }, "de_PendingVerificationRes");
2028
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2029
+ const contents = (0, import_smithy_client.map)({});
2030
+ const data = parsedOutput.body;
2031
+ const doc = (0, import_smithy_client.take)(data, {
2032
+ exceptionMessage: import_smithy_client.expectString
2033
+ });
2034
+ Object.assign(contents, doc);
2035
+ const exception = new ResourceNotFoundException({
2036
+ $metadata: deserializeMetadata(parsedOutput),
2037
+ ...contents
2038
+ });
2039
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2040
+ }, "de_ResourceNotFoundExceptionRes");
2041
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2042
+ const contents = (0, import_smithy_client.map)({});
2043
+ const data = parsedOutput.body;
2044
+ const doc = (0, import_smithy_client.take)(data, {
2045
+ exceptionMessage: import_smithy_client.expectString
2046
+ });
2047
+ Object.assign(contents, doc);
2048
+ const exception = new ServiceQuotaExceededException({
2049
+ $metadata: deserializeMetadata(parsedOutput),
2050
+ ...contents
2051
+ });
2052
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2053
+ }, "de_ServiceQuotaExceededExceptionRes");
2054
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2055
+ const contents = (0, import_smithy_client.map)({});
2056
+ const data = parsedOutput.body;
2057
+ const doc = (0, import_smithy_client.take)(data, {
2058
+ exceptionMessage: import_smithy_client.expectString
2059
+ });
2060
+ Object.assign(contents, doc);
2061
+ const exception = new ValidationException({
2062
+ $metadata: deserializeMetadata(parsedOutput),
2063
+ ...contents
2064
+ });
2065
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2066
+ }, "de_ValidationExceptionRes");
2067
+ var se_Video = /* @__PURE__ */ __name((input, context) => {
2068
+ return (0, import_smithy_client.take)(input, {
2069
+ bitrate: [],
2070
+ framerate: import_smithy_client.serializeFloat,
2071
+ height: [],
2072
+ width: []
2073
+ });
2074
+ }, "se_Video");
2075
+ var de_Composition = /* @__PURE__ */ __name((output, context) => {
2076
+ return (0, import_smithy_client.take)(output, {
2077
+ arn: import_smithy_client.expectString,
2078
+ destinations: (_) => de_DestinationList(_, context),
2079
+ endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2080
+ layout: import_smithy_client._json,
2081
+ stageArn: import_smithy_client.expectString,
2082
+ startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2083
+ state: import_smithy_client.expectString,
2084
+ tags: import_smithy_client._json
2085
+ });
2086
+ }, "de_Composition");
2087
+ var de_CompositionSummary = /* @__PURE__ */ __name((output, context) => {
2088
+ return (0, import_smithy_client.take)(output, {
2089
+ arn: import_smithy_client.expectString,
2090
+ destinations: (_) => de_DestinationSummaryList(_, context),
2091
+ endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2092
+ stageArn: import_smithy_client.expectString,
2093
+ startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2094
+ state: import_smithy_client.expectString,
2095
+ tags: import_smithy_client._json
2096
+ });
2097
+ }, "de_CompositionSummary");
2098
+ var de_CompositionSummaryList = /* @__PURE__ */ __name((output, context) => {
2099
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2100
+ return de_CompositionSummary(entry, context);
2101
+ });
2102
+ return retVal;
2103
+ }, "de_CompositionSummaryList");
2104
+ var de_Destination = /* @__PURE__ */ __name((output, context) => {
2105
+ return (0, import_smithy_client.take)(output, {
2106
+ configuration: import_smithy_client._json,
2107
+ detail: import_smithy_client._json,
2108
+ endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2109
+ id: import_smithy_client.expectString,
2110
+ startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2111
+ state: import_smithy_client.expectString
2112
+ });
2113
+ }, "de_Destination");
2114
+ var de_DestinationList = /* @__PURE__ */ __name((output, context) => {
2115
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2116
+ return de_Destination(entry, context);
2117
+ });
2118
+ return retVal;
2119
+ }, "de_DestinationList");
2120
+ var de_DestinationSummary = /* @__PURE__ */ __name((output, context) => {
2121
+ return (0, import_smithy_client.take)(output, {
2122
+ endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2123
+ id: import_smithy_client.expectString,
2124
+ startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2125
+ state: import_smithy_client.expectString
2126
+ });
2127
+ }, "de_DestinationSummary");
2128
+ var de_DestinationSummaryList = /* @__PURE__ */ __name((output, context) => {
2129
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2130
+ return de_DestinationSummary(entry, context);
2131
+ });
2132
+ return retVal;
2133
+ }, "de_DestinationSummaryList");
2134
+ var de_EncoderConfiguration = /* @__PURE__ */ __name((output, context) => {
2135
+ return (0, import_smithy_client.take)(output, {
2136
+ arn: import_smithy_client.expectString,
2137
+ name: import_smithy_client.expectString,
2138
+ tags: import_smithy_client._json,
2139
+ video: (_) => de_Video(_, context)
2140
+ });
2141
+ }, "de_EncoderConfiguration");
2142
+ var de_Event = /* @__PURE__ */ __name((output, context) => {
2143
+ return (0, import_smithy_client.take)(output, {
2144
+ errorCode: import_smithy_client.expectString,
2145
+ eventTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2146
+ name: import_smithy_client.expectString,
2147
+ participantId: import_smithy_client.expectString,
2148
+ remoteParticipantId: import_smithy_client.expectString
2149
+ });
2150
+ }, "de_Event");
2151
+ var de_EventList = /* @__PURE__ */ __name((output, context) => {
2152
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2153
+ return de_Event(entry, context);
2154
+ });
2155
+ return retVal;
2156
+ }, "de_EventList");
2157
+ var de_Participant = /* @__PURE__ */ __name((output, context) => {
2158
+ return (0, import_smithy_client.take)(output, {
2159
+ attributes: import_smithy_client._json,
2160
+ browserName: import_smithy_client.expectString,
2161
+ browserVersion: import_smithy_client.expectString,
2162
+ firstJoinTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2163
+ ispName: import_smithy_client.expectString,
2164
+ osName: import_smithy_client.expectString,
2165
+ osVersion: import_smithy_client.expectString,
2166
+ participantId: import_smithy_client.expectString,
2167
+ published: import_smithy_client.expectBoolean,
2168
+ sdkVersion: import_smithy_client.expectString,
2169
+ state: import_smithy_client.expectString,
2170
+ userId: import_smithy_client.expectString
2171
+ });
2172
+ }, "de_Participant");
2173
+ var de_ParticipantList = /* @__PURE__ */ __name((output, context) => {
2174
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2175
+ return de_ParticipantSummary(entry, context);
2176
+ });
2177
+ return retVal;
2178
+ }, "de_ParticipantList");
2179
+ var de_ParticipantSummary = /* @__PURE__ */ __name((output, context) => {
2180
+ return (0, import_smithy_client.take)(output, {
2181
+ firstJoinTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2182
+ participantId: import_smithy_client.expectString,
2183
+ published: import_smithy_client.expectBoolean,
2184
+ state: import_smithy_client.expectString,
2185
+ userId: import_smithy_client.expectString
2186
+ });
2187
+ }, "de_ParticipantSummary");
2188
+ var de_ParticipantToken = /* @__PURE__ */ __name((output, context) => {
2189
+ return (0, import_smithy_client.take)(output, {
2190
+ attributes: import_smithy_client._json,
2191
+ capabilities: import_smithy_client._json,
2192
+ duration: import_smithy_client.expectInt32,
2193
+ expirationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2194
+ participantId: import_smithy_client.expectString,
2195
+ token: import_smithy_client.expectString,
2196
+ userId: import_smithy_client.expectString
2197
+ });
2198
+ }, "de_ParticipantToken");
2199
+ var de_ParticipantTokenList = /* @__PURE__ */ __name((output, context) => {
2200
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2201
+ return de_ParticipantToken(entry, context);
2202
+ });
2203
+ return retVal;
2204
+ }, "de_ParticipantTokenList");
2205
+ var de_StageSession = /* @__PURE__ */ __name((output, context) => {
2206
+ return (0, import_smithy_client.take)(output, {
2207
+ endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2208
+ sessionId: import_smithy_client.expectString,
2209
+ startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
2210
+ });
2211
+ }, "de_StageSession");
2212
+ var de_StageSessionList = /* @__PURE__ */ __name((output, context) => {
2213
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2214
+ return de_StageSessionSummary(entry, context);
2215
+ });
2216
+ return retVal;
2217
+ }, "de_StageSessionList");
2218
+ var de_StageSessionSummary = /* @__PURE__ */ __name((output, context) => {
2219
+ return (0, import_smithy_client.take)(output, {
2220
+ endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2221
+ sessionId: import_smithy_client.expectString,
2222
+ startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
2223
+ });
2224
+ }, "de_StageSessionSummary");
2225
+ var de_Video = /* @__PURE__ */ __name((output, context) => {
2226
+ return (0, import_smithy_client.take)(output, {
2227
+ bitrate: import_smithy_client.expectInt32,
2228
+ framerate: import_smithy_client.limitedParseFloat32,
2229
+ height: import_smithy_client.expectInt32,
2230
+ width: import_smithy_client.expectInt32
2231
+ });
2232
+ }, "de_Video");
2233
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2234
+ httpStatusCode: output.statusCode,
2235
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2236
+ extendedRequestId: output.headers["x-amz-id-2"],
2237
+ cfId: output.headers["x-amz-cf-id"]
2238
+ }), "deserializeMetadata");
2239
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
2240
+ var _tK = "tagKeys";
2241
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2242
+ if (encoded.length) {
2243
+ return JSON.parse(encoded);
2244
+ }
2245
+ return {};
2246
+ }), "parseBody");
2247
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
2248
+ const value = await parseBody(errorBody, context);
2249
+ value.message = value.message ?? value.Message;
2250
+ return value;
2251
+ }, "parseErrorBody");
2252
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
2253
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
2254
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
2255
+ let cleanValue = rawValue;
2256
+ if (typeof cleanValue === "number") {
2257
+ cleanValue = cleanValue.toString();
2258
+ }
2259
+ if (cleanValue.indexOf(",") >= 0) {
2260
+ cleanValue = cleanValue.split(",")[0];
2261
+ }
2262
+ if (cleanValue.indexOf(":") >= 0) {
2263
+ cleanValue = cleanValue.split(":")[0];
2264
+ }
2265
+ if (cleanValue.indexOf("#") >= 0) {
2266
+ cleanValue = cleanValue.split("#")[1];
2267
+ }
2268
+ return cleanValue;
2269
+ }, "sanitizeErrorCode");
2270
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
2271
+ if (headerKey !== void 0) {
2272
+ return sanitizeErrorCode(output.headers[headerKey]);
2273
+ }
2274
+ if (data.code !== void 0) {
2275
+ return sanitizeErrorCode(data.code);
2276
+ }
2277
+ if (data["__type"] !== void 0) {
2278
+ return sanitizeErrorCode(data["__type"]);
2279
+ }
2280
+ }, "loadRestJsonErrorCode");
2281
+
2282
+ // src/commands/CreateEncoderConfigurationCommand.ts
2283
+ var _CreateEncoderConfigurationCommand = class _CreateEncoderConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
2284
+ ...commonParams
2285
+ }).m(function(Command, cs, config, o) {
2286
+ return [
2287
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2288
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2289
+ ];
2290
+ }).s("AmazonInteractiveVideoServiceRealTime", "CreateEncoderConfiguration", {}).n("IVSRealTimeClient", "CreateEncoderConfigurationCommand").f(void 0, void 0).ser(se_CreateEncoderConfigurationCommand).de(de_CreateEncoderConfigurationCommand).build() {
2291
+ };
2292
+ __name(_CreateEncoderConfigurationCommand, "CreateEncoderConfigurationCommand");
2293
+ var CreateEncoderConfigurationCommand = _CreateEncoderConfigurationCommand;
2294
+
2295
+ // src/commands/CreateParticipantTokenCommand.ts
2296
+
2297
+
2298
+
2299
+
2300
+ var _CreateParticipantTokenCommand = class _CreateParticipantTokenCommand extends import_smithy_client.Command.classBuilder().ep({
2301
+ ...commonParams
2302
+ }).m(function(Command, cs, config, o) {
2303
+ return [
2304
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2305
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2306
+ ];
2307
+ }).s("AmazonInteractiveVideoServiceRealTime", "CreateParticipantToken", {}).n("IVSRealTimeClient", "CreateParticipantTokenCommand").f(void 0, CreateParticipantTokenResponseFilterSensitiveLog).ser(se_CreateParticipantTokenCommand).de(de_CreateParticipantTokenCommand).build() {
2308
+ };
2309
+ __name(_CreateParticipantTokenCommand, "CreateParticipantTokenCommand");
2310
+ var CreateParticipantTokenCommand = _CreateParticipantTokenCommand;
2311
+
2312
+ // src/commands/CreateStageCommand.ts
2313
+
2314
+
2315
+
2316
+
2317
+ var _CreateStageCommand = class _CreateStageCommand extends import_smithy_client.Command.classBuilder().ep({
2318
+ ...commonParams
2319
+ }).m(function(Command, cs, config, o) {
2320
+ return [
2321
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2322
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2323
+ ];
2324
+ }).s("AmazonInteractiveVideoServiceRealTime", "CreateStage", {}).n("IVSRealTimeClient", "CreateStageCommand").f(void 0, CreateStageResponseFilterSensitiveLog).ser(se_CreateStageCommand).de(de_CreateStageCommand).build() {
2325
+ };
2326
+ __name(_CreateStageCommand, "CreateStageCommand");
2327
+ var CreateStageCommand = _CreateStageCommand;
2328
+
2329
+ // src/commands/CreateStorageConfigurationCommand.ts
2330
+
2331
+
2332
+
2333
+
2334
+ var _CreateStorageConfigurationCommand = class _CreateStorageConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
2335
+ ...commonParams
2336
+ }).m(function(Command, cs, config, o) {
2337
+ return [
2338
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2339
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2340
+ ];
2341
+ }).s("AmazonInteractiveVideoServiceRealTime", "CreateStorageConfiguration", {}).n("IVSRealTimeClient", "CreateStorageConfigurationCommand").f(void 0, void 0).ser(se_CreateStorageConfigurationCommand).de(de_CreateStorageConfigurationCommand).build() {
2342
+ };
2343
+ __name(_CreateStorageConfigurationCommand, "CreateStorageConfigurationCommand");
2344
+ var CreateStorageConfigurationCommand = _CreateStorageConfigurationCommand;
2345
+
2346
+ // src/commands/DeleteEncoderConfigurationCommand.ts
2347
+
2348
+
2349
+
2350
+
2351
+ var _DeleteEncoderConfigurationCommand = class _DeleteEncoderConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
2352
+ ...commonParams
2353
+ }).m(function(Command, cs, config, o) {
2354
+ return [
2355
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2356
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2357
+ ];
2358
+ }).s("AmazonInteractiveVideoServiceRealTime", "DeleteEncoderConfiguration", {}).n("IVSRealTimeClient", "DeleteEncoderConfigurationCommand").f(void 0, void 0).ser(se_DeleteEncoderConfigurationCommand).de(de_DeleteEncoderConfigurationCommand).build() {
2359
+ };
2360
+ __name(_DeleteEncoderConfigurationCommand, "DeleteEncoderConfigurationCommand");
2361
+ var DeleteEncoderConfigurationCommand = _DeleteEncoderConfigurationCommand;
2362
+
2363
+ // src/commands/DeleteStageCommand.ts
2364
+
2365
+
2366
+
2367
+
2368
+ var _DeleteStageCommand = class _DeleteStageCommand extends import_smithy_client.Command.classBuilder().ep({
2369
+ ...commonParams
2370
+ }).m(function(Command, cs, config, o) {
2371
+ return [
2372
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2373
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2374
+ ];
2375
+ }).s("AmazonInteractiveVideoServiceRealTime", "DeleteStage", {}).n("IVSRealTimeClient", "DeleteStageCommand").f(void 0, void 0).ser(se_DeleteStageCommand).de(de_DeleteStageCommand).build() {
2376
+ };
2377
+ __name(_DeleteStageCommand, "DeleteStageCommand");
2378
+ var DeleteStageCommand = _DeleteStageCommand;
2379
+
2380
+ // src/commands/DeleteStorageConfigurationCommand.ts
2381
+
2382
+
2383
+
2384
+
2385
+ var _DeleteStorageConfigurationCommand = class _DeleteStorageConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
2386
+ ...commonParams
2387
+ }).m(function(Command, cs, config, o) {
2388
+ return [
2389
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2390
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2391
+ ];
2392
+ }).s("AmazonInteractiveVideoServiceRealTime", "DeleteStorageConfiguration", {}).n("IVSRealTimeClient", "DeleteStorageConfigurationCommand").f(void 0, void 0).ser(se_DeleteStorageConfigurationCommand).de(de_DeleteStorageConfigurationCommand).build() {
2393
+ };
2394
+ __name(_DeleteStorageConfigurationCommand, "DeleteStorageConfigurationCommand");
2395
+ var DeleteStorageConfigurationCommand = _DeleteStorageConfigurationCommand;
2396
+
2397
+ // src/commands/DisconnectParticipantCommand.ts
2398
+
2399
+
2400
+
2401
+
2402
+ var _DisconnectParticipantCommand = class _DisconnectParticipantCommand extends import_smithy_client.Command.classBuilder().ep({
2403
+ ...commonParams
2404
+ }).m(function(Command, cs, config, o) {
2405
+ return [
2406
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2407
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2408
+ ];
2409
+ }).s("AmazonInteractiveVideoServiceRealTime", "DisconnectParticipant", {}).n("IVSRealTimeClient", "DisconnectParticipantCommand").f(void 0, void 0).ser(se_DisconnectParticipantCommand).de(de_DisconnectParticipantCommand).build() {
2410
+ };
2411
+ __name(_DisconnectParticipantCommand, "DisconnectParticipantCommand");
2412
+ var DisconnectParticipantCommand = _DisconnectParticipantCommand;
2413
+
2414
+ // src/commands/GetCompositionCommand.ts
2415
+
2416
+
2417
+
2418
+
2419
+ var _GetCompositionCommand = class _GetCompositionCommand extends import_smithy_client.Command.classBuilder().ep({
2420
+ ...commonParams
2421
+ }).m(function(Command, cs, config, o) {
2422
+ return [
2423
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2424
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2425
+ ];
2426
+ }).s("AmazonInteractiveVideoServiceRealTime", "GetComposition", {}).n("IVSRealTimeClient", "GetCompositionCommand").f(void 0, void 0).ser(se_GetCompositionCommand).de(de_GetCompositionCommand).build() {
2427
+ };
2428
+ __name(_GetCompositionCommand, "GetCompositionCommand");
2429
+ var GetCompositionCommand = _GetCompositionCommand;
2430
+
2431
+ // src/commands/GetEncoderConfigurationCommand.ts
2432
+
2433
+
2434
+
2435
+
2436
+ var _GetEncoderConfigurationCommand = class _GetEncoderConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
2437
+ ...commonParams
2438
+ }).m(function(Command, cs, config, o) {
2439
+ return [
2440
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2441
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2442
+ ];
2443
+ }).s("AmazonInteractiveVideoServiceRealTime", "GetEncoderConfiguration", {}).n("IVSRealTimeClient", "GetEncoderConfigurationCommand").f(void 0, void 0).ser(se_GetEncoderConfigurationCommand).de(de_GetEncoderConfigurationCommand).build() {
2444
+ };
2445
+ __name(_GetEncoderConfigurationCommand, "GetEncoderConfigurationCommand");
2446
+ var GetEncoderConfigurationCommand = _GetEncoderConfigurationCommand;
2447
+
2448
+ // src/commands/GetParticipantCommand.ts
2449
+
2450
+
2451
+
2452
+
2453
+ var _GetParticipantCommand = class _GetParticipantCommand extends import_smithy_client.Command.classBuilder().ep({
2454
+ ...commonParams
2455
+ }).m(function(Command, cs, config, o) {
2456
+ return [
2457
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2458
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2459
+ ];
2460
+ }).s("AmazonInteractiveVideoServiceRealTime", "GetParticipant", {}).n("IVSRealTimeClient", "GetParticipantCommand").f(void 0, void 0).ser(se_GetParticipantCommand).de(de_GetParticipantCommand).build() {
2461
+ };
2462
+ __name(_GetParticipantCommand, "GetParticipantCommand");
2463
+ var GetParticipantCommand = _GetParticipantCommand;
2464
+
2465
+ // src/commands/GetStageCommand.ts
2466
+
2467
+
2468
+
2469
+
2470
+ var _GetStageCommand = class _GetStageCommand extends import_smithy_client.Command.classBuilder().ep({
2471
+ ...commonParams
2472
+ }).m(function(Command, cs, config, o) {
2473
+ return [
2474
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2475
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2476
+ ];
2477
+ }).s("AmazonInteractiveVideoServiceRealTime", "GetStage", {}).n("IVSRealTimeClient", "GetStageCommand").f(void 0, void 0).ser(se_GetStageCommand).de(de_GetStageCommand).build() {
2478
+ };
2479
+ __name(_GetStageCommand, "GetStageCommand");
2480
+ var GetStageCommand = _GetStageCommand;
2481
+
2482
+ // src/commands/GetStageSessionCommand.ts
2483
+
2484
+
2485
+
2486
+
2487
+ var _GetStageSessionCommand = class _GetStageSessionCommand extends import_smithy_client.Command.classBuilder().ep({
2488
+ ...commonParams
2489
+ }).m(function(Command, cs, config, o) {
2490
+ return [
2491
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2492
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2493
+ ];
2494
+ }).s("AmazonInteractiveVideoServiceRealTime", "GetStageSession", {}).n("IVSRealTimeClient", "GetStageSessionCommand").f(void 0, void 0).ser(se_GetStageSessionCommand).de(de_GetStageSessionCommand).build() {
2495
+ };
2496
+ __name(_GetStageSessionCommand, "GetStageSessionCommand");
2497
+ var GetStageSessionCommand = _GetStageSessionCommand;
2498
+
2499
+ // src/commands/GetStorageConfigurationCommand.ts
2500
+
2501
+
2502
+
2503
+
2504
+ var _GetStorageConfigurationCommand = class _GetStorageConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
2505
+ ...commonParams
2506
+ }).m(function(Command, cs, config, o) {
2507
+ return [
2508
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2509
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2510
+ ];
2511
+ }).s("AmazonInteractiveVideoServiceRealTime", "GetStorageConfiguration", {}).n("IVSRealTimeClient", "GetStorageConfigurationCommand").f(void 0, void 0).ser(se_GetStorageConfigurationCommand).de(de_GetStorageConfigurationCommand).build() {
2512
+ };
2513
+ __name(_GetStorageConfigurationCommand, "GetStorageConfigurationCommand");
2514
+ var GetStorageConfigurationCommand = _GetStorageConfigurationCommand;
2515
+
2516
+ // src/commands/ListCompositionsCommand.ts
2517
+
2518
+
2519
+
2520
+
2521
+ var _ListCompositionsCommand = class _ListCompositionsCommand extends import_smithy_client.Command.classBuilder().ep({
2522
+ ...commonParams
2523
+ }).m(function(Command, cs, config, o) {
2524
+ return [
2525
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2526
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2527
+ ];
2528
+ }).s("AmazonInteractiveVideoServiceRealTime", "ListCompositions", {}).n("IVSRealTimeClient", "ListCompositionsCommand").f(void 0, void 0).ser(se_ListCompositionsCommand).de(de_ListCompositionsCommand).build() {
2529
+ };
2530
+ __name(_ListCompositionsCommand, "ListCompositionsCommand");
2531
+ var ListCompositionsCommand = _ListCompositionsCommand;
2532
+
2533
+ // src/commands/ListEncoderConfigurationsCommand.ts
2534
+
2535
+
2536
+
2537
+
2538
+ var _ListEncoderConfigurationsCommand = class _ListEncoderConfigurationsCommand extends import_smithy_client.Command.classBuilder().ep({
2539
+ ...commonParams
2540
+ }).m(function(Command, cs, config, o) {
2541
+ return [
2542
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2543
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2544
+ ];
2545
+ }).s("AmazonInteractiveVideoServiceRealTime", "ListEncoderConfigurations", {}).n("IVSRealTimeClient", "ListEncoderConfigurationsCommand").f(void 0, void 0).ser(se_ListEncoderConfigurationsCommand).de(de_ListEncoderConfigurationsCommand).build() {
2546
+ };
2547
+ __name(_ListEncoderConfigurationsCommand, "ListEncoderConfigurationsCommand");
2548
+ var ListEncoderConfigurationsCommand = _ListEncoderConfigurationsCommand;
2549
+
2550
+ // src/commands/ListParticipantEventsCommand.ts
2551
+
2552
+
2553
+
2554
+
2555
+ var _ListParticipantEventsCommand = class _ListParticipantEventsCommand extends import_smithy_client.Command.classBuilder().ep({
2556
+ ...commonParams
2557
+ }).m(function(Command, cs, config, o) {
2558
+ return [
2559
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2560
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2561
+ ];
2562
+ }).s("AmazonInteractiveVideoServiceRealTime", "ListParticipantEvents", {}).n("IVSRealTimeClient", "ListParticipantEventsCommand").f(void 0, void 0).ser(se_ListParticipantEventsCommand).de(de_ListParticipantEventsCommand).build() {
2563
+ };
2564
+ __name(_ListParticipantEventsCommand, "ListParticipantEventsCommand");
2565
+ var ListParticipantEventsCommand = _ListParticipantEventsCommand;
2566
+
2567
+ // src/commands/ListParticipantsCommand.ts
2568
+
2569
+
2570
+
2571
+
2572
+ var _ListParticipantsCommand = class _ListParticipantsCommand extends import_smithy_client.Command.classBuilder().ep({
2573
+ ...commonParams
2574
+ }).m(function(Command, cs, config, o) {
2575
+ return [
2576
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2577
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2578
+ ];
2579
+ }).s("AmazonInteractiveVideoServiceRealTime", "ListParticipants", {}).n("IVSRealTimeClient", "ListParticipantsCommand").f(void 0, void 0).ser(se_ListParticipantsCommand).de(de_ListParticipantsCommand).build() {
2580
+ };
2581
+ __name(_ListParticipantsCommand, "ListParticipantsCommand");
2582
+ var ListParticipantsCommand = _ListParticipantsCommand;
2583
+
2584
+ // src/commands/ListStagesCommand.ts
2585
+
2586
+
2587
+
2588
+
2589
+ var _ListStagesCommand = class _ListStagesCommand extends import_smithy_client.Command.classBuilder().ep({
2590
+ ...commonParams
2591
+ }).m(function(Command, cs, config, o) {
2592
+ return [
2593
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2594
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2595
+ ];
2596
+ }).s("AmazonInteractiveVideoServiceRealTime", "ListStages", {}).n("IVSRealTimeClient", "ListStagesCommand").f(void 0, void 0).ser(se_ListStagesCommand).de(de_ListStagesCommand).build() {
2597
+ };
2598
+ __name(_ListStagesCommand, "ListStagesCommand");
2599
+ var ListStagesCommand = _ListStagesCommand;
2600
+
2601
+ // src/commands/ListStageSessionsCommand.ts
2602
+
2603
+
2604
+
2605
+
2606
+ var _ListStageSessionsCommand = class _ListStageSessionsCommand extends import_smithy_client.Command.classBuilder().ep({
2607
+ ...commonParams
2608
+ }).m(function(Command, cs, config, o) {
2609
+ return [
2610
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2611
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2612
+ ];
2613
+ }).s("AmazonInteractiveVideoServiceRealTime", "ListStageSessions", {}).n("IVSRealTimeClient", "ListStageSessionsCommand").f(void 0, void 0).ser(se_ListStageSessionsCommand).de(de_ListStageSessionsCommand).build() {
2614
+ };
2615
+ __name(_ListStageSessionsCommand, "ListStageSessionsCommand");
2616
+ var ListStageSessionsCommand = _ListStageSessionsCommand;
2617
+
2618
+ // src/commands/ListStorageConfigurationsCommand.ts
2619
+
2620
+
2621
+
2622
+
2623
+ var _ListStorageConfigurationsCommand = class _ListStorageConfigurationsCommand extends import_smithy_client.Command.classBuilder().ep({
2624
+ ...commonParams
2625
+ }).m(function(Command, cs, config, o) {
2626
+ return [
2627
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2628
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2629
+ ];
2630
+ }).s("AmazonInteractiveVideoServiceRealTime", "ListStorageConfigurations", {}).n("IVSRealTimeClient", "ListStorageConfigurationsCommand").f(void 0, void 0).ser(se_ListStorageConfigurationsCommand).de(de_ListStorageConfigurationsCommand).build() {
2631
+ };
2632
+ __name(_ListStorageConfigurationsCommand, "ListStorageConfigurationsCommand");
2633
+ var ListStorageConfigurationsCommand = _ListStorageConfigurationsCommand;
2634
+
2635
+ // src/commands/ListTagsForResourceCommand.ts
2636
+
2637
+
2638
+
2639
+
2640
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2641
+ ...commonParams
2642
+ }).m(function(Command, cs, config, o) {
2643
+ return [
2644
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2645
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2646
+ ];
2647
+ }).s("AmazonInteractiveVideoServiceRealTime", "ListTagsForResource", {}).n("IVSRealTimeClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
2648
+ };
2649
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
2650
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
2651
+
2652
+ // src/commands/StartCompositionCommand.ts
2653
+
2654
+
2655
+
2656
+
2657
+ var _StartCompositionCommand = class _StartCompositionCommand extends import_smithy_client.Command.classBuilder().ep({
2658
+ ...commonParams
2659
+ }).m(function(Command, cs, config, o) {
2660
+ return [
2661
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2662
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2663
+ ];
2664
+ }).s("AmazonInteractiveVideoServiceRealTime", "StartComposition", {}).n("IVSRealTimeClient", "StartCompositionCommand").f(void 0, void 0).ser(se_StartCompositionCommand).de(de_StartCompositionCommand).build() {
2665
+ };
2666
+ __name(_StartCompositionCommand, "StartCompositionCommand");
2667
+ var StartCompositionCommand = _StartCompositionCommand;
2668
+
2669
+ // src/commands/StopCompositionCommand.ts
2670
+
2671
+
2672
+
2673
+
2674
+ var _StopCompositionCommand = class _StopCompositionCommand extends import_smithy_client.Command.classBuilder().ep({
2675
+ ...commonParams
2676
+ }).m(function(Command, cs, config, o) {
2677
+ return [
2678
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2679
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2680
+ ];
2681
+ }).s("AmazonInteractiveVideoServiceRealTime", "StopComposition", {}).n("IVSRealTimeClient", "StopCompositionCommand").f(void 0, void 0).ser(se_StopCompositionCommand).de(de_StopCompositionCommand).build() {
2682
+ };
2683
+ __name(_StopCompositionCommand, "StopCompositionCommand");
2684
+ var StopCompositionCommand = _StopCompositionCommand;
2685
+
2686
+ // src/commands/TagResourceCommand.ts
2687
+
2688
+
2689
+
2690
+
2691
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2692
+ ...commonParams
2693
+ }).m(function(Command, cs, config, o) {
2694
+ return [
2695
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2696
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2697
+ ];
2698
+ }).s("AmazonInteractiveVideoServiceRealTime", "TagResource", {}).n("IVSRealTimeClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
2699
+ };
2700
+ __name(_TagResourceCommand, "TagResourceCommand");
2701
+ var TagResourceCommand = _TagResourceCommand;
2702
+
2703
+ // src/commands/UntagResourceCommand.ts
2704
+
2705
+
2706
+
2707
+
2708
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2709
+ ...commonParams
2710
+ }).m(function(Command, cs, config, o) {
2711
+ return [
2712
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2713
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2714
+ ];
2715
+ }).s("AmazonInteractiveVideoServiceRealTime", "UntagResource", {}).n("IVSRealTimeClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
2716
+ };
2717
+ __name(_UntagResourceCommand, "UntagResourceCommand");
2718
+ var UntagResourceCommand = _UntagResourceCommand;
2719
+
2720
+ // src/commands/UpdateStageCommand.ts
2721
+
2722
+
2723
+
2724
+
2725
+ var _UpdateStageCommand = class _UpdateStageCommand extends import_smithy_client.Command.classBuilder().ep({
2726
+ ...commonParams
2727
+ }).m(function(Command, cs, config, o) {
2728
+ return [
2729
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2730
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2731
+ ];
2732
+ }).s("AmazonInteractiveVideoServiceRealTime", "UpdateStage", {}).n("IVSRealTimeClient", "UpdateStageCommand").f(void 0, void 0).ser(se_UpdateStageCommand).de(de_UpdateStageCommand).build() {
2733
+ };
2734
+ __name(_UpdateStageCommand, "UpdateStageCommand");
2735
+ var UpdateStageCommand = _UpdateStageCommand;
2736
+
2737
+ // src/IVSRealTime.ts
2738
+ var commands = {
2739
+ CreateEncoderConfigurationCommand,
2740
+ CreateParticipantTokenCommand,
2741
+ CreateStageCommand,
2742
+ CreateStorageConfigurationCommand,
2743
+ DeleteEncoderConfigurationCommand,
2744
+ DeleteStageCommand,
2745
+ DeleteStorageConfigurationCommand,
2746
+ DisconnectParticipantCommand,
2747
+ GetCompositionCommand,
2748
+ GetEncoderConfigurationCommand,
2749
+ GetParticipantCommand,
2750
+ GetStageCommand,
2751
+ GetStageSessionCommand,
2752
+ GetStorageConfigurationCommand,
2753
+ ListCompositionsCommand,
2754
+ ListEncoderConfigurationsCommand,
2755
+ ListParticipantEventsCommand,
2756
+ ListParticipantsCommand,
2757
+ ListStagesCommand,
2758
+ ListStageSessionsCommand,
2759
+ ListStorageConfigurationsCommand,
2760
+ ListTagsForResourceCommand,
2761
+ StartCompositionCommand,
2762
+ StopCompositionCommand,
2763
+ TagResourceCommand,
2764
+ UntagResourceCommand,
2765
+ UpdateStageCommand
2766
+ };
2767
+ var _IVSRealTime = class _IVSRealTime extends IVSRealTimeClient {
2768
+ };
2769
+ __name(_IVSRealTime, "IVSRealTime");
2770
+ var IVSRealTime = _IVSRealTime;
2771
+ (0, import_smithy_client.createAggregatedClient)(commands, IVSRealTime);
2772
+
2773
+ // src/pagination/ListCompositionsPaginator.ts
2774
+
2775
+ var paginateListCompositions = (0, import_core.createPaginator)(IVSRealTimeClient, ListCompositionsCommand, "nextToken", "nextToken", "maxResults");
2776
+
2777
+ // src/pagination/ListEncoderConfigurationsPaginator.ts
2778
+
2779
+ var paginateListEncoderConfigurations = (0, import_core.createPaginator)(IVSRealTimeClient, ListEncoderConfigurationsCommand, "nextToken", "nextToken", "maxResults");
2780
+
2781
+ // src/pagination/ListParticipantEventsPaginator.ts
2782
+
2783
+ var paginateListParticipantEvents = (0, import_core.createPaginator)(IVSRealTimeClient, ListParticipantEventsCommand, "nextToken", "nextToken", "maxResults");
2784
+
2785
+ // src/pagination/ListParticipantsPaginator.ts
2786
+
2787
+ var paginateListParticipants = (0, import_core.createPaginator)(IVSRealTimeClient, ListParticipantsCommand, "nextToken", "nextToken", "maxResults");
2788
+
2789
+ // src/pagination/ListStageSessionsPaginator.ts
2790
+
2791
+ var paginateListStageSessions = (0, import_core.createPaginator)(IVSRealTimeClient, ListStageSessionsCommand, "nextToken", "nextToken", "maxResults");
2792
+
2793
+ // src/pagination/ListStagesPaginator.ts
2794
+
2795
+ var paginateListStages = (0, import_core.createPaginator)(IVSRealTimeClient, ListStagesCommand, "nextToken", "nextToken", "maxResults");
2796
+
2797
+ // src/pagination/ListStorageConfigurationsPaginator.ts
2798
+
2799
+ var paginateListStorageConfigurations = (0, import_core.createPaginator)(IVSRealTimeClient, ListStorageConfigurationsCommand, "nextToken", "nextToken", "maxResults");
2800
+
2801
+ // src/index.ts
2802
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2803
+ // Annotate the CommonJS export names for ESM import in node:
2804
+ 0 && (module.exports = {
2805
+ AccessDeniedException,
2806
+ CompositionState,
2807
+ ConflictException,
2808
+ CreateEncoderConfigurationCommand,
2809
+ CreateParticipantTokenCommand,
2810
+ CreateParticipantTokenResponseFilterSensitiveLog,
2811
+ CreateStageCommand,
2812
+ CreateStageResponseFilterSensitiveLog,
2813
+ CreateStorageConfigurationCommand,
2814
+ DeleteEncoderConfigurationCommand,
2815
+ DeleteStageCommand,
2816
+ DeleteStorageConfigurationCommand,
2817
+ DestinationState,
2818
+ DisconnectParticipantCommand,
2819
+ EventErrorCode,
2820
+ EventName,
2821
+ GetCompositionCommand,
2822
+ GetEncoderConfigurationCommand,
2823
+ GetParticipantCommand,
2824
+ GetStageCommand,
2825
+ GetStageSessionCommand,
2826
+ GetStorageConfigurationCommand,
2827
+ IVSRealTime,
2828
+ IVSRealTimeClient,
2829
+ IVSRealTimeServiceException,
2830
+ InternalServerException,
2831
+ ListCompositionsCommand,
2832
+ ListEncoderConfigurationsCommand,
2833
+ ListParticipantEventsCommand,
2834
+ ListParticipantsCommand,
2835
+ ListStageSessionsCommand,
2836
+ ListStagesCommand,
2837
+ ListStorageConfigurationsCommand,
2838
+ ListTagsForResourceCommand,
2839
+ ParticipantState,
2840
+ ParticipantTokenCapability,
2841
+ ParticipantTokenFilterSensitiveLog,
2842
+ PendingVerification,
2843
+ RecordingConfigurationFormat,
2844
+ ResourceNotFoundException,
2845
+ ServiceQuotaExceededException,
2846
+ StartCompositionCommand,
2847
+ StopCompositionCommand,
2848
+ TagResourceCommand,
2849
+ UntagResourceCommand,
2850
+ UpdateStageCommand,
2851
+ ValidationException,
2852
+ __Client,
2853
+ paginateListCompositions,
2854
+ paginateListEncoderConfigurations,
2855
+ paginateListParticipantEvents,
2856
+ paginateListParticipants,
2857
+ paginateListStageSessions,
2858
+ paginateListStages,
2859
+ paginateListStorageConfigurations
2860
+ });