@aws-sdk/client-ivschat 3.489.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 (33) hide show
  1. package/dist-cjs/Ivschat.js +1 -45
  2. package/dist-cjs/IvschatClient.js +1 -43
  3. package/dist-cjs/commands/CreateChatTokenCommand.js +1 -29
  4. package/dist-cjs/commands/CreateLoggingConfigurationCommand.js +1 -28
  5. package/dist-cjs/commands/CreateRoomCommand.js +1 -28
  6. package/dist-cjs/commands/DeleteLoggingConfigurationCommand.js +1 -28
  7. package/dist-cjs/commands/DeleteMessageCommand.js +1 -28
  8. package/dist-cjs/commands/DeleteRoomCommand.js +1 -28
  9. package/dist-cjs/commands/DisconnectUserCommand.js +1 -29
  10. package/dist-cjs/commands/GetLoggingConfigurationCommand.js +1 -28
  11. package/dist-cjs/commands/GetRoomCommand.js +1 -28
  12. package/dist-cjs/commands/ListLoggingConfigurationsCommand.js +1 -28
  13. package/dist-cjs/commands/ListRoomsCommand.js +1 -28
  14. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  15. package/dist-cjs/commands/SendEventCommand.js +1 -28
  16. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  17. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  18. package/dist-cjs/commands/UpdateLoggingConfigurationCommand.js +1 -28
  19. package/dist-cjs/commands/UpdateRoomCommand.js +1 -28
  20. package/dist-cjs/commands/index.js +1 -20
  21. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  22. package/dist-cjs/extensionConfiguration.js +1 -2
  23. package/dist-cjs/index.js +1985 -11
  24. package/dist-cjs/models/IvschatServiceException.js +1 -12
  25. package/dist-cjs/models/index.js +1 -4
  26. package/dist-cjs/models/models_0.js +1 -181
  27. package/dist-cjs/pagination/Interfaces.js +1 -2
  28. package/dist-cjs/pagination/ListLoggingConfigurationsPaginator.js +1 -7
  29. package/dist-cjs/pagination/ListRoomsPaginator.js +1 -7
  30. package/dist-cjs/pagination/index.js +1 -6
  31. package/dist-cjs/protocols/Aws_restJson1.js +1 -1250
  32. package/dist-cjs/runtimeExtensions.js +1 -22
  33. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,1986 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IvschatServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./IvschatClient"), exports);
6
- tslib_1.__exportStar(require("./Ivschat"), 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 IvschatServiceException_1 = require("./models/IvschatServiceException");
12
- Object.defineProperty(exports, "IvschatServiceException", { enumerable: true, get: function () { return IvschatServiceException_1.IvschatServiceException; } });
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
+ ChatTokenCapability: () => ChatTokenCapability,
26
+ ConflictException: () => ConflictException,
27
+ CreateChatTokenCommand: () => CreateChatTokenCommand,
28
+ CreateChatTokenRequestFilterSensitiveLog: () => CreateChatTokenRequestFilterSensitiveLog,
29
+ CreateChatTokenResponseFilterSensitiveLog: () => CreateChatTokenResponseFilterSensitiveLog,
30
+ CreateLoggingConfigurationCommand: () => CreateLoggingConfigurationCommand,
31
+ CreateLoggingConfigurationState: () => CreateLoggingConfigurationState,
32
+ CreateRoomCommand: () => CreateRoomCommand,
33
+ DeleteLoggingConfigurationCommand: () => DeleteLoggingConfigurationCommand,
34
+ DeleteMessageCommand: () => DeleteMessageCommand,
35
+ DeleteRoomCommand: () => DeleteRoomCommand,
36
+ DestinationConfiguration: () => DestinationConfiguration,
37
+ DisconnectUserCommand: () => DisconnectUserCommand,
38
+ DisconnectUserRequestFilterSensitiveLog: () => DisconnectUserRequestFilterSensitiveLog,
39
+ FallbackResult: () => FallbackResult,
40
+ GetLoggingConfigurationCommand: () => GetLoggingConfigurationCommand,
41
+ GetRoomCommand: () => GetRoomCommand,
42
+ InternalServerException: () => InternalServerException,
43
+ Ivschat: () => Ivschat,
44
+ IvschatClient: () => IvschatClient,
45
+ IvschatServiceException: () => IvschatServiceException,
46
+ ListLoggingConfigurationsCommand: () => ListLoggingConfigurationsCommand,
47
+ ListRoomsCommand: () => ListRoomsCommand,
48
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
49
+ LoggingConfigurationState: () => LoggingConfigurationState,
50
+ PendingVerification: () => PendingVerification,
51
+ ResourceNotFoundException: () => ResourceNotFoundException,
52
+ ResourceType: () => ResourceType,
53
+ SendEventCommand: () => SendEventCommand,
54
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
55
+ TagResourceCommand: () => TagResourceCommand,
56
+ ThrottlingException: () => ThrottlingException,
57
+ UntagResourceCommand: () => UntagResourceCommand,
58
+ UpdateLoggingConfigurationCommand: () => UpdateLoggingConfigurationCommand,
59
+ UpdateLoggingConfigurationState: () => UpdateLoggingConfigurationState,
60
+ UpdateRoomCommand: () => UpdateRoomCommand,
61
+ ValidationException: () => ValidationException,
62
+ ValidationExceptionReason: () => ValidationExceptionReason,
63
+ __Client: () => import_smithy_client.Client,
64
+ paginateListLoggingConfigurations: () => paginateListLoggingConfigurations,
65
+ paginateListRooms: () => paginateListRooms
66
+ });
67
+ module.exports = __toCommonJS(src_exports);
68
+
69
+ // src/IvschatClient.ts
70
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
71
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
72
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
73
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
74
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
75
+ var import_config_resolver = require("@smithy/config-resolver");
76
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
77
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
78
+ var import_middleware_retry = require("@smithy/middleware-retry");
79
+
80
+
81
+ // src/endpoint/EndpointParameters.ts
82
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
83
+ return {
84
+ ...options,
85
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
86
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
87
+ defaultSigningName: "ivschat"
88
+ };
89
+ }, "resolveClientEndpointParameters");
90
+ var commonParams = {
91
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
92
+ Endpoint: { type: "builtInParams", name: "endpoint" },
93
+ Region: { type: "builtInParams", name: "region" },
94
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
95
+ };
96
+
97
+ // src/IvschatClient.ts
98
+ var import_runtimeConfig = require("././runtimeConfig");
99
+
100
+ // src/runtimeExtensions.ts
101
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
102
+ var import_protocol_http = require("@smithy/protocol-http");
103
+ var import_smithy_client = require("@smithy/smithy-client");
104
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
105
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
106
+ const extensionConfiguration = {
107
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
108
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
109
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
110
+ };
111
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
112
+ return {
113
+ ...runtimeConfig,
114
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
115
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
116
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
117
+ };
118
+ }, "resolveRuntimeExtensions");
119
+
120
+ // src/IvschatClient.ts
121
+ var _IvschatClient = class _IvschatClient extends import_smithy_client.Client {
122
+ constructor(...[configuration]) {
123
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
124
+ const _config_1 = resolveClientEndpointParameters(_config_0);
125
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
126
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
127
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
128
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
129
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
130
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
131
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
132
+ super(_config_8);
133
+ this.config = _config_8;
134
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
135
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
136
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
137
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
138
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
139
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
140
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
141
+ }
142
+ /**
143
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
144
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
145
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
146
+ */
147
+ destroy() {
148
+ super.destroy();
149
+ }
150
+ };
151
+ __name(_IvschatClient, "IvschatClient");
152
+ var IvschatClient = _IvschatClient;
153
+
154
+ // src/Ivschat.ts
155
+
156
+
157
+ // src/commands/CreateChatTokenCommand.ts
158
+
159
+ var import_middleware_serde = require("@smithy/middleware-serde");
160
+
161
+ var import_types = require("@smithy/types");
162
+
163
+ // src/models/models_0.ts
164
+
165
+
166
+ // src/models/IvschatServiceException.ts
167
+
168
+ var _IvschatServiceException = class _IvschatServiceException extends import_smithy_client.ServiceException {
169
+ /**
170
+ * @internal
171
+ */
172
+ constructor(options) {
173
+ super(options);
174
+ Object.setPrototypeOf(this, _IvschatServiceException.prototype);
175
+ }
176
+ };
177
+ __name(_IvschatServiceException, "IvschatServiceException");
178
+ var IvschatServiceException = _IvschatServiceException;
179
+
180
+ // src/models/models_0.ts
181
+ var _AccessDeniedException = class _AccessDeniedException extends IvschatServiceException {
182
+ /**
183
+ * @internal
184
+ */
185
+ constructor(opts) {
186
+ super({
187
+ name: "AccessDeniedException",
188
+ $fault: "client",
189
+ ...opts
190
+ });
191
+ this.name = "AccessDeniedException";
192
+ this.$fault = "client";
193
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
194
+ }
195
+ };
196
+ __name(_AccessDeniedException, "AccessDeniedException");
197
+ var AccessDeniedException = _AccessDeniedException;
198
+ var ChatTokenCapability = {
199
+ DELETE_MESSAGE: "DELETE_MESSAGE",
200
+ DISCONNECT_USER: "DISCONNECT_USER",
201
+ SEND_MESSAGE: "SEND_MESSAGE"
202
+ };
203
+ var _PendingVerification = class _PendingVerification extends IvschatServiceException {
204
+ /**
205
+ * @internal
206
+ */
207
+ constructor(opts) {
208
+ super({
209
+ name: "PendingVerification",
210
+ $fault: "client",
211
+ ...opts
212
+ });
213
+ this.name = "PendingVerification";
214
+ this.$fault = "client";
215
+ Object.setPrototypeOf(this, _PendingVerification.prototype);
216
+ }
217
+ };
218
+ __name(_PendingVerification, "PendingVerification");
219
+ var PendingVerification = _PendingVerification;
220
+ var ResourceType = {
221
+ ROOM: "ROOM"
222
+ };
223
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends IvschatServiceException {
224
+ /**
225
+ * @internal
226
+ */
227
+ constructor(opts) {
228
+ super({
229
+ name: "ResourceNotFoundException",
230
+ $fault: "client",
231
+ ...opts
232
+ });
233
+ this.name = "ResourceNotFoundException";
234
+ this.$fault = "client";
235
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
236
+ this.resourceId = opts.resourceId;
237
+ this.resourceType = opts.resourceType;
238
+ }
239
+ };
240
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
241
+ var ResourceNotFoundException = _ResourceNotFoundException;
242
+ var ValidationExceptionReason = {
243
+ FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
244
+ OTHER: "OTHER",
245
+ UNKNOWN_OPERATION: "UNKNOWN_OPERATION"
246
+ };
247
+ var _ValidationException = class _ValidationException extends IvschatServiceException {
248
+ /**
249
+ * @internal
250
+ */
251
+ constructor(opts) {
252
+ super({
253
+ name: "ValidationException",
254
+ $fault: "client",
255
+ ...opts
256
+ });
257
+ this.name = "ValidationException";
258
+ this.$fault = "client";
259
+ Object.setPrototypeOf(this, _ValidationException.prototype);
260
+ this.reason = opts.reason;
261
+ this.fieldList = opts.fieldList;
262
+ }
263
+ };
264
+ __name(_ValidationException, "ValidationException");
265
+ var ValidationException = _ValidationException;
266
+ var _ConflictException = class _ConflictException extends IvschatServiceException {
267
+ /**
268
+ * @internal
269
+ */
270
+ constructor(opts) {
271
+ super({
272
+ name: "ConflictException",
273
+ $fault: "client",
274
+ ...opts
275
+ });
276
+ this.name = "ConflictException";
277
+ this.$fault = "client";
278
+ Object.setPrototypeOf(this, _ConflictException.prototype);
279
+ this.resourceId = opts.resourceId;
280
+ this.resourceType = opts.resourceType;
281
+ }
282
+ };
283
+ __name(_ConflictException, "ConflictException");
284
+ var ConflictException = _ConflictException;
285
+ var DestinationConfiguration;
286
+ ((DestinationConfiguration3) => {
287
+ DestinationConfiguration3.visit = /* @__PURE__ */ __name((value, visitor) => {
288
+ if (value.s3 !== void 0)
289
+ return visitor.s3(value.s3);
290
+ if (value.cloudWatchLogs !== void 0)
291
+ return visitor.cloudWatchLogs(value.cloudWatchLogs);
292
+ if (value.firehose !== void 0)
293
+ return visitor.firehose(value.firehose);
294
+ return visitor._(value.$unknown[0], value.$unknown[1]);
295
+ }, "visit");
296
+ })(DestinationConfiguration || (DestinationConfiguration = {}));
297
+ var CreateLoggingConfigurationState = {
298
+ ACTIVE: "ACTIVE"
299
+ };
300
+ var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends IvschatServiceException {
301
+ /**
302
+ * @internal
303
+ */
304
+ constructor(opts) {
305
+ super({
306
+ name: "ServiceQuotaExceededException",
307
+ $fault: "client",
308
+ ...opts
309
+ });
310
+ this.name = "ServiceQuotaExceededException";
311
+ this.$fault = "client";
312
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
313
+ this.resourceId = opts.resourceId;
314
+ this.resourceType = opts.resourceType;
315
+ this.limit = opts.limit;
316
+ }
317
+ };
318
+ __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
319
+ var ServiceQuotaExceededException = _ServiceQuotaExceededException;
320
+ var FallbackResult = {
321
+ ALLOW: "ALLOW",
322
+ DENY: "DENY"
323
+ };
324
+ var _ThrottlingException = class _ThrottlingException extends IvschatServiceException {
325
+ /**
326
+ * @internal
327
+ */
328
+ constructor(opts) {
329
+ super({
330
+ name: "ThrottlingException",
331
+ $fault: "client",
332
+ ...opts
333
+ });
334
+ this.name = "ThrottlingException";
335
+ this.$fault = "client";
336
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
337
+ this.resourceId = opts.resourceId;
338
+ this.resourceType = opts.resourceType;
339
+ this.limit = opts.limit;
340
+ }
341
+ };
342
+ __name(_ThrottlingException, "ThrottlingException");
343
+ var ThrottlingException = _ThrottlingException;
344
+ var LoggingConfigurationState = {
345
+ ACTIVE: "ACTIVE",
346
+ CREATE_FAILED: "CREATE_FAILED",
347
+ CREATING: "CREATING",
348
+ DELETE_FAILED: "DELETE_FAILED",
349
+ DELETING: "DELETING",
350
+ UPDATE_FAILED: "UPDATE_FAILED",
351
+ UPDATING: "UPDATING"
352
+ };
353
+ var _InternalServerException = class _InternalServerException extends IvschatServiceException {
354
+ /**
355
+ * @internal
356
+ */
357
+ constructor(opts) {
358
+ super({
359
+ name: "InternalServerException",
360
+ $fault: "server",
361
+ ...opts
362
+ });
363
+ this.name = "InternalServerException";
364
+ this.$fault = "server";
365
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
366
+ }
367
+ };
368
+ __name(_InternalServerException, "InternalServerException");
369
+ var InternalServerException = _InternalServerException;
370
+ var UpdateLoggingConfigurationState = {
371
+ ACTIVE: "ACTIVE"
372
+ };
373
+ var CreateChatTokenRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
374
+ ...obj,
375
+ ...obj.userId && { userId: import_smithy_client.SENSITIVE_STRING },
376
+ ...obj.attributes && { attributes: import_smithy_client.SENSITIVE_STRING }
377
+ }), "CreateChatTokenRequestFilterSensitiveLog");
378
+ var CreateChatTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
379
+ ...obj,
380
+ ...obj.token && { token: import_smithy_client.SENSITIVE_STRING }
381
+ }), "CreateChatTokenResponseFilterSensitiveLog");
382
+ var DisconnectUserRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
383
+ ...obj,
384
+ ...obj.userId && { userId: import_smithy_client.SENSITIVE_STRING }
385
+ }), "DisconnectUserRequestFilterSensitiveLog");
386
+
387
+ // src/protocols/Aws_restJson1.ts
388
+ var import_core = require("@aws-sdk/core");
389
+ var import_core2 = require("@smithy/core");
390
+
391
+ var se_CreateChatTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
392
+ const b = (0, import_core2.requestBuilder)(input, context);
393
+ const headers = {
394
+ "content-type": "application/json"
395
+ };
396
+ b.bp("/CreateChatToken");
397
+ let body;
398
+ body = JSON.stringify(
399
+ (0, import_smithy_client.take)(input, {
400
+ attributes: (_) => (0, import_smithy_client._json)(_),
401
+ capabilities: (_) => (0, import_smithy_client._json)(_),
402
+ roomIdentifier: [],
403
+ sessionDurationInMinutes: [],
404
+ userId: []
405
+ })
406
+ );
407
+ b.m("POST").h(headers).b(body);
408
+ return b.build();
409
+ }, "se_CreateChatTokenCommand");
410
+ var se_CreateLoggingConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
411
+ const b = (0, import_core2.requestBuilder)(input, context);
412
+ const headers = {
413
+ "content-type": "application/json"
414
+ };
415
+ b.bp("/CreateLoggingConfiguration");
416
+ let body;
417
+ body = JSON.stringify(
418
+ (0, import_smithy_client.take)(input, {
419
+ destinationConfiguration: (_) => (0, import_smithy_client._json)(_),
420
+ name: [],
421
+ tags: (_) => (0, import_smithy_client._json)(_)
422
+ })
423
+ );
424
+ b.m("POST").h(headers).b(body);
425
+ return b.build();
426
+ }, "se_CreateLoggingConfigurationCommand");
427
+ var se_CreateRoomCommand = /* @__PURE__ */ __name(async (input, context) => {
428
+ const b = (0, import_core2.requestBuilder)(input, context);
429
+ const headers = {
430
+ "content-type": "application/json"
431
+ };
432
+ b.bp("/CreateRoom");
433
+ let body;
434
+ body = JSON.stringify(
435
+ (0, import_smithy_client.take)(input, {
436
+ loggingConfigurationIdentifiers: (_) => (0, import_smithy_client._json)(_),
437
+ maximumMessageLength: [],
438
+ maximumMessageRatePerSecond: [],
439
+ messageReviewHandler: (_) => (0, import_smithy_client._json)(_),
440
+ name: [],
441
+ tags: (_) => (0, import_smithy_client._json)(_)
442
+ })
443
+ );
444
+ b.m("POST").h(headers).b(body);
445
+ return b.build();
446
+ }, "se_CreateRoomCommand");
447
+ var se_DeleteLoggingConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
448
+ const b = (0, import_core2.requestBuilder)(input, context);
449
+ const headers = {
450
+ "content-type": "application/json"
451
+ };
452
+ b.bp("/DeleteLoggingConfiguration");
453
+ let body;
454
+ body = JSON.stringify(
455
+ (0, import_smithy_client.take)(input, {
456
+ identifier: []
457
+ })
458
+ );
459
+ b.m("POST").h(headers).b(body);
460
+ return b.build();
461
+ }, "se_DeleteLoggingConfigurationCommand");
462
+ var se_DeleteMessageCommand = /* @__PURE__ */ __name(async (input, context) => {
463
+ const b = (0, import_core2.requestBuilder)(input, context);
464
+ const headers = {
465
+ "content-type": "application/json"
466
+ };
467
+ b.bp("/DeleteMessage");
468
+ let body;
469
+ body = JSON.stringify(
470
+ (0, import_smithy_client.take)(input, {
471
+ id: [],
472
+ reason: [],
473
+ roomIdentifier: []
474
+ })
475
+ );
476
+ b.m("POST").h(headers).b(body);
477
+ return b.build();
478
+ }, "se_DeleteMessageCommand");
479
+ var se_DeleteRoomCommand = /* @__PURE__ */ __name(async (input, context) => {
480
+ const b = (0, import_core2.requestBuilder)(input, context);
481
+ const headers = {
482
+ "content-type": "application/json"
483
+ };
484
+ b.bp("/DeleteRoom");
485
+ let body;
486
+ body = JSON.stringify(
487
+ (0, import_smithy_client.take)(input, {
488
+ identifier: []
489
+ })
490
+ );
491
+ b.m("POST").h(headers).b(body);
492
+ return b.build();
493
+ }, "se_DeleteRoomCommand");
494
+ var se_DisconnectUserCommand = /* @__PURE__ */ __name(async (input, context) => {
495
+ const b = (0, import_core2.requestBuilder)(input, context);
496
+ const headers = {
497
+ "content-type": "application/json"
498
+ };
499
+ b.bp("/DisconnectUser");
500
+ let body;
501
+ body = JSON.stringify(
502
+ (0, import_smithy_client.take)(input, {
503
+ reason: [],
504
+ roomIdentifier: [],
505
+ userId: []
506
+ })
507
+ );
508
+ b.m("POST").h(headers).b(body);
509
+ return b.build();
510
+ }, "se_DisconnectUserCommand");
511
+ var se_GetLoggingConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
512
+ const b = (0, import_core2.requestBuilder)(input, context);
513
+ const headers = {
514
+ "content-type": "application/json"
515
+ };
516
+ b.bp("/GetLoggingConfiguration");
517
+ let body;
518
+ body = JSON.stringify(
519
+ (0, import_smithy_client.take)(input, {
520
+ identifier: []
521
+ })
522
+ );
523
+ b.m("POST").h(headers).b(body);
524
+ return b.build();
525
+ }, "se_GetLoggingConfigurationCommand");
526
+ var se_GetRoomCommand = /* @__PURE__ */ __name(async (input, context) => {
527
+ const b = (0, import_core2.requestBuilder)(input, context);
528
+ const headers = {
529
+ "content-type": "application/json"
530
+ };
531
+ b.bp("/GetRoom");
532
+ let body;
533
+ body = JSON.stringify(
534
+ (0, import_smithy_client.take)(input, {
535
+ identifier: []
536
+ })
537
+ );
538
+ b.m("POST").h(headers).b(body);
539
+ return b.build();
540
+ }, "se_GetRoomCommand");
541
+ var se_ListLoggingConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => {
542
+ const b = (0, import_core2.requestBuilder)(input, context);
543
+ const headers = {
544
+ "content-type": "application/json"
545
+ };
546
+ b.bp("/ListLoggingConfigurations");
547
+ let body;
548
+ body = JSON.stringify(
549
+ (0, import_smithy_client.take)(input, {
550
+ maxResults: [],
551
+ nextToken: []
552
+ })
553
+ );
554
+ b.m("POST").h(headers).b(body);
555
+ return b.build();
556
+ }, "se_ListLoggingConfigurationsCommand");
557
+ var se_ListRoomsCommand = /* @__PURE__ */ __name(async (input, context) => {
558
+ const b = (0, import_core2.requestBuilder)(input, context);
559
+ const headers = {
560
+ "content-type": "application/json"
561
+ };
562
+ b.bp("/ListRooms");
563
+ let body;
564
+ body = JSON.stringify(
565
+ (0, import_smithy_client.take)(input, {
566
+ loggingConfigurationIdentifier: [],
567
+ maxResults: [],
568
+ messageReviewHandlerUri: [],
569
+ name: [],
570
+ nextToken: []
571
+ })
572
+ );
573
+ b.m("POST").h(headers).b(body);
574
+ return b.build();
575
+ }, "se_ListRoomsCommand");
576
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
577
+ const b = (0, import_core2.requestBuilder)(input, context);
578
+ const headers = {};
579
+ b.bp("/tags/{resourceArn}");
580
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
581
+ let body;
582
+ b.m("GET").h(headers).b(body);
583
+ return b.build();
584
+ }, "se_ListTagsForResourceCommand");
585
+ var se_SendEventCommand = /* @__PURE__ */ __name(async (input, context) => {
586
+ const b = (0, import_core2.requestBuilder)(input, context);
587
+ const headers = {
588
+ "content-type": "application/json"
589
+ };
590
+ b.bp("/SendEvent");
591
+ let body;
592
+ body = JSON.stringify(
593
+ (0, import_smithy_client.take)(input, {
594
+ attributes: (_) => (0, import_smithy_client._json)(_),
595
+ eventName: [],
596
+ roomIdentifier: []
597
+ })
598
+ );
599
+ b.m("POST").h(headers).b(body);
600
+ return b.build();
601
+ }, "se_SendEventCommand");
602
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
603
+ const b = (0, import_core2.requestBuilder)(input, context);
604
+ const headers = {
605
+ "content-type": "application/json"
606
+ };
607
+ b.bp("/tags/{resourceArn}");
608
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
609
+ let body;
610
+ body = JSON.stringify(
611
+ (0, import_smithy_client.take)(input, {
612
+ tags: (_) => (0, import_smithy_client._json)(_)
613
+ })
614
+ );
615
+ b.m("POST").h(headers).b(body);
616
+ return b.build();
617
+ }, "se_TagResourceCommand");
618
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
619
+ const b = (0, import_core2.requestBuilder)(input, context);
620
+ const headers = {};
621
+ b.bp("/tags/{resourceArn}");
622
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
623
+ const query = (0, import_smithy_client.map)({
624
+ [_tK]: [
625
+ (0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
626
+ () => (input[_tK] || []).map((_entry) => _entry)
627
+ ]
628
+ });
629
+ let body;
630
+ b.m("DELETE").h(headers).q(query).b(body);
631
+ return b.build();
632
+ }, "se_UntagResourceCommand");
633
+ var se_UpdateLoggingConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
634
+ const b = (0, import_core2.requestBuilder)(input, context);
635
+ const headers = {
636
+ "content-type": "application/json"
637
+ };
638
+ b.bp("/UpdateLoggingConfiguration");
639
+ let body;
640
+ body = JSON.stringify(
641
+ (0, import_smithy_client.take)(input, {
642
+ destinationConfiguration: (_) => (0, import_smithy_client._json)(_),
643
+ identifier: [],
644
+ name: []
645
+ })
646
+ );
647
+ b.m("POST").h(headers).b(body);
648
+ return b.build();
649
+ }, "se_UpdateLoggingConfigurationCommand");
650
+ var se_UpdateRoomCommand = /* @__PURE__ */ __name(async (input, context) => {
651
+ const b = (0, import_core2.requestBuilder)(input, context);
652
+ const headers = {
653
+ "content-type": "application/json"
654
+ };
655
+ b.bp("/UpdateRoom");
656
+ let body;
657
+ body = JSON.stringify(
658
+ (0, import_smithy_client.take)(input, {
659
+ identifier: [],
660
+ loggingConfigurationIdentifiers: (_) => (0, import_smithy_client._json)(_),
661
+ maximumMessageLength: [],
662
+ maximumMessageRatePerSecond: [],
663
+ messageReviewHandler: (_) => (0, import_smithy_client._json)(_),
664
+ name: []
665
+ })
666
+ );
667
+ b.m("POST").h(headers).b(body);
668
+ return b.build();
669
+ }, "se_UpdateRoomCommand");
670
+ var de_CreateChatTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
671
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
672
+ return de_CreateChatTokenCommandError(output, context);
673
+ }
674
+ const contents = (0, import_smithy_client.map)({
675
+ $metadata: deserializeMetadata(output)
676
+ });
677
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
678
+ const doc = (0, import_smithy_client.take)(data, {
679
+ sessionExpirationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
680
+ token: import_smithy_client.expectString,
681
+ tokenExpirationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
682
+ });
683
+ Object.assign(contents, doc);
684
+ return contents;
685
+ }, "de_CreateChatTokenCommand");
686
+ var de_CreateChatTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
687
+ const parsedOutput = {
688
+ ...output,
689
+ body: await parseErrorBody(output.body, context)
690
+ };
691
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
692
+ switch (errorCode) {
693
+ case "AccessDeniedException":
694
+ case "com.amazonaws.ivschat#AccessDeniedException":
695
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
696
+ case "PendingVerification":
697
+ case "com.amazonaws.ivschat#PendingVerification":
698
+ throw await de_PendingVerificationRes(parsedOutput, context);
699
+ case "ResourceNotFoundException":
700
+ case "com.amazonaws.ivschat#ResourceNotFoundException":
701
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
702
+ case "ValidationException":
703
+ case "com.amazonaws.ivschat#ValidationException":
704
+ throw await de_ValidationExceptionRes(parsedOutput, context);
705
+ default:
706
+ const parsedBody = parsedOutput.body;
707
+ return throwDefaultError({
708
+ output,
709
+ parsedBody,
710
+ errorCode
711
+ });
712
+ }
713
+ }, "de_CreateChatTokenCommandError");
714
+ var de_CreateLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
715
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
716
+ return de_CreateLoggingConfigurationCommandError(output, context);
717
+ }
718
+ const contents = (0, import_smithy_client.map)({
719
+ $metadata: deserializeMetadata(output)
720
+ });
721
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
722
+ const doc = (0, import_smithy_client.take)(data, {
723
+ arn: import_smithy_client.expectString,
724
+ createTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
725
+ destinationConfiguration: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
726
+ id: import_smithy_client.expectString,
727
+ name: import_smithy_client.expectString,
728
+ state: import_smithy_client.expectString,
729
+ tags: import_smithy_client._json,
730
+ updateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
731
+ });
732
+ Object.assign(contents, doc);
733
+ return contents;
734
+ }, "de_CreateLoggingConfigurationCommand");
735
+ var de_CreateLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
736
+ const parsedOutput = {
737
+ ...output,
738
+ body: await parseErrorBody(output.body, context)
739
+ };
740
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
741
+ switch (errorCode) {
742
+ case "AccessDeniedException":
743
+ case "com.amazonaws.ivschat#AccessDeniedException":
744
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
745
+ case "ConflictException":
746
+ case "com.amazonaws.ivschat#ConflictException":
747
+ throw await de_ConflictExceptionRes(parsedOutput, context);
748
+ case "PendingVerification":
749
+ case "com.amazonaws.ivschat#PendingVerification":
750
+ throw await de_PendingVerificationRes(parsedOutput, context);
751
+ case "ResourceNotFoundException":
752
+ case "com.amazonaws.ivschat#ResourceNotFoundException":
753
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
754
+ case "ServiceQuotaExceededException":
755
+ case "com.amazonaws.ivschat#ServiceQuotaExceededException":
756
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
757
+ case "ValidationException":
758
+ case "com.amazonaws.ivschat#ValidationException":
759
+ throw await de_ValidationExceptionRes(parsedOutput, context);
760
+ default:
761
+ const parsedBody = parsedOutput.body;
762
+ return throwDefaultError({
763
+ output,
764
+ parsedBody,
765
+ errorCode
766
+ });
767
+ }
768
+ }, "de_CreateLoggingConfigurationCommandError");
769
+ var de_CreateRoomCommand = /* @__PURE__ */ __name(async (output, context) => {
770
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
771
+ return de_CreateRoomCommandError(output, context);
772
+ }
773
+ const contents = (0, import_smithy_client.map)({
774
+ $metadata: deserializeMetadata(output)
775
+ });
776
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
777
+ const doc = (0, import_smithy_client.take)(data, {
778
+ arn: import_smithy_client.expectString,
779
+ createTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
780
+ id: import_smithy_client.expectString,
781
+ loggingConfigurationIdentifiers: import_smithy_client._json,
782
+ maximumMessageLength: import_smithy_client.expectInt32,
783
+ maximumMessageRatePerSecond: import_smithy_client.expectInt32,
784
+ messageReviewHandler: import_smithy_client._json,
785
+ name: import_smithy_client.expectString,
786
+ tags: import_smithy_client._json,
787
+ updateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
788
+ });
789
+ Object.assign(contents, doc);
790
+ return contents;
791
+ }, "de_CreateRoomCommand");
792
+ var de_CreateRoomCommandError = /* @__PURE__ */ __name(async (output, context) => {
793
+ const parsedOutput = {
794
+ ...output,
795
+ body: await parseErrorBody(output.body, context)
796
+ };
797
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
798
+ switch (errorCode) {
799
+ case "AccessDeniedException":
800
+ case "com.amazonaws.ivschat#AccessDeniedException":
801
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
802
+ case "ConflictException":
803
+ case "com.amazonaws.ivschat#ConflictException":
804
+ throw await de_ConflictExceptionRes(parsedOutput, context);
805
+ case "PendingVerification":
806
+ case "com.amazonaws.ivschat#PendingVerification":
807
+ throw await de_PendingVerificationRes(parsedOutput, context);
808
+ case "ResourceNotFoundException":
809
+ case "com.amazonaws.ivschat#ResourceNotFoundException":
810
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
811
+ case "ServiceQuotaExceededException":
812
+ case "com.amazonaws.ivschat#ServiceQuotaExceededException":
813
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
814
+ case "ValidationException":
815
+ case "com.amazonaws.ivschat#ValidationException":
816
+ throw await de_ValidationExceptionRes(parsedOutput, context);
817
+ default:
818
+ const parsedBody = parsedOutput.body;
819
+ return throwDefaultError({
820
+ output,
821
+ parsedBody,
822
+ errorCode
823
+ });
824
+ }
825
+ }, "de_CreateRoomCommandError");
826
+ var de_DeleteLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
827
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
828
+ return de_DeleteLoggingConfigurationCommandError(output, context);
829
+ }
830
+ const contents = (0, import_smithy_client.map)({
831
+ $metadata: deserializeMetadata(output)
832
+ });
833
+ await (0, import_smithy_client.collectBody)(output.body, context);
834
+ return contents;
835
+ }, "de_DeleteLoggingConfigurationCommand");
836
+ var de_DeleteLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
837
+ const parsedOutput = {
838
+ ...output,
839
+ body: await parseErrorBody(output.body, context)
840
+ };
841
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
842
+ switch (errorCode) {
843
+ case "AccessDeniedException":
844
+ case "com.amazonaws.ivschat#AccessDeniedException":
845
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
846
+ case "ConflictException":
847
+ case "com.amazonaws.ivschat#ConflictException":
848
+ throw await de_ConflictExceptionRes(parsedOutput, context);
849
+ case "PendingVerification":
850
+ case "com.amazonaws.ivschat#PendingVerification":
851
+ throw await de_PendingVerificationRes(parsedOutput, context);
852
+ case "ResourceNotFoundException":
853
+ case "com.amazonaws.ivschat#ResourceNotFoundException":
854
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
855
+ case "ValidationException":
856
+ case "com.amazonaws.ivschat#ValidationException":
857
+ throw await de_ValidationExceptionRes(parsedOutput, context);
858
+ default:
859
+ const parsedBody = parsedOutput.body;
860
+ return throwDefaultError({
861
+ output,
862
+ parsedBody,
863
+ errorCode
864
+ });
865
+ }
866
+ }, "de_DeleteLoggingConfigurationCommandError");
867
+ var de_DeleteMessageCommand = /* @__PURE__ */ __name(async (output, context) => {
868
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
869
+ return de_DeleteMessageCommandError(output, context);
870
+ }
871
+ const contents = (0, import_smithy_client.map)({
872
+ $metadata: deserializeMetadata(output)
873
+ });
874
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
875
+ const doc = (0, import_smithy_client.take)(data, {
876
+ id: import_smithy_client.expectString
877
+ });
878
+ Object.assign(contents, doc);
879
+ return contents;
880
+ }, "de_DeleteMessageCommand");
881
+ var de_DeleteMessageCommandError = /* @__PURE__ */ __name(async (output, context) => {
882
+ const parsedOutput = {
883
+ ...output,
884
+ body: await parseErrorBody(output.body, context)
885
+ };
886
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
887
+ switch (errorCode) {
888
+ case "AccessDeniedException":
889
+ case "com.amazonaws.ivschat#AccessDeniedException":
890
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
891
+ case "PendingVerification":
892
+ case "com.amazonaws.ivschat#PendingVerification":
893
+ throw await de_PendingVerificationRes(parsedOutput, context);
894
+ case "ResourceNotFoundException":
895
+ case "com.amazonaws.ivschat#ResourceNotFoundException":
896
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
897
+ case "ThrottlingException":
898
+ case "com.amazonaws.ivschat#ThrottlingException":
899
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
900
+ case "ValidationException":
901
+ case "com.amazonaws.ivschat#ValidationException":
902
+ throw await de_ValidationExceptionRes(parsedOutput, context);
903
+ default:
904
+ const parsedBody = parsedOutput.body;
905
+ return throwDefaultError({
906
+ output,
907
+ parsedBody,
908
+ errorCode
909
+ });
910
+ }
911
+ }, "de_DeleteMessageCommandError");
912
+ var de_DeleteRoomCommand = /* @__PURE__ */ __name(async (output, context) => {
913
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
914
+ return de_DeleteRoomCommandError(output, context);
915
+ }
916
+ const contents = (0, import_smithy_client.map)({
917
+ $metadata: deserializeMetadata(output)
918
+ });
919
+ await (0, import_smithy_client.collectBody)(output.body, context);
920
+ return contents;
921
+ }, "de_DeleteRoomCommand");
922
+ var de_DeleteRoomCommandError = /* @__PURE__ */ __name(async (output, context) => {
923
+ const parsedOutput = {
924
+ ...output,
925
+ body: await parseErrorBody(output.body, context)
926
+ };
927
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
928
+ switch (errorCode) {
929
+ case "AccessDeniedException":
930
+ case "com.amazonaws.ivschat#AccessDeniedException":
931
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
932
+ case "PendingVerification":
933
+ case "com.amazonaws.ivschat#PendingVerification":
934
+ throw await de_PendingVerificationRes(parsedOutput, context);
935
+ case "ResourceNotFoundException":
936
+ case "com.amazonaws.ivschat#ResourceNotFoundException":
937
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
938
+ case "ValidationException":
939
+ case "com.amazonaws.ivschat#ValidationException":
940
+ throw await de_ValidationExceptionRes(parsedOutput, context);
941
+ default:
942
+ const parsedBody = parsedOutput.body;
943
+ return throwDefaultError({
944
+ output,
945
+ parsedBody,
946
+ errorCode
947
+ });
948
+ }
949
+ }, "de_DeleteRoomCommandError");
950
+ var de_DisconnectUserCommand = /* @__PURE__ */ __name(async (output, context) => {
951
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
952
+ return de_DisconnectUserCommandError(output, context);
953
+ }
954
+ const contents = (0, import_smithy_client.map)({
955
+ $metadata: deserializeMetadata(output)
956
+ });
957
+ await (0, import_smithy_client.collectBody)(output.body, context);
958
+ return contents;
959
+ }, "de_DisconnectUserCommand");
960
+ var de_DisconnectUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
961
+ const parsedOutput = {
962
+ ...output,
963
+ body: await parseErrorBody(output.body, context)
964
+ };
965
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
966
+ switch (errorCode) {
967
+ case "AccessDeniedException":
968
+ case "com.amazonaws.ivschat#AccessDeniedException":
969
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
970
+ case "PendingVerification":
971
+ case "com.amazonaws.ivschat#PendingVerification":
972
+ throw await de_PendingVerificationRes(parsedOutput, context);
973
+ case "ResourceNotFoundException":
974
+ case "com.amazonaws.ivschat#ResourceNotFoundException":
975
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
976
+ case "ThrottlingException":
977
+ case "com.amazonaws.ivschat#ThrottlingException":
978
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
979
+ case "ValidationException":
980
+ case "com.amazonaws.ivschat#ValidationException":
981
+ throw await de_ValidationExceptionRes(parsedOutput, context);
982
+ default:
983
+ const parsedBody = parsedOutput.body;
984
+ return throwDefaultError({
985
+ output,
986
+ parsedBody,
987
+ errorCode
988
+ });
989
+ }
990
+ }, "de_DisconnectUserCommandError");
991
+ var de_GetLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
992
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
993
+ return de_GetLoggingConfigurationCommandError(output, context);
994
+ }
995
+ const contents = (0, import_smithy_client.map)({
996
+ $metadata: deserializeMetadata(output)
997
+ });
998
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
999
+ const doc = (0, import_smithy_client.take)(data, {
1000
+ arn: import_smithy_client.expectString,
1001
+ createTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1002
+ destinationConfiguration: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
1003
+ id: import_smithy_client.expectString,
1004
+ name: import_smithy_client.expectString,
1005
+ state: import_smithy_client.expectString,
1006
+ tags: import_smithy_client._json,
1007
+ updateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
1008
+ });
1009
+ Object.assign(contents, doc);
1010
+ return contents;
1011
+ }, "de_GetLoggingConfigurationCommand");
1012
+ var de_GetLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1013
+ const parsedOutput = {
1014
+ ...output,
1015
+ body: await parseErrorBody(output.body, context)
1016
+ };
1017
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1018
+ switch (errorCode) {
1019
+ case "AccessDeniedException":
1020
+ case "com.amazonaws.ivschat#AccessDeniedException":
1021
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1022
+ case "ResourceNotFoundException":
1023
+ case "com.amazonaws.ivschat#ResourceNotFoundException":
1024
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1025
+ case "ValidationException":
1026
+ case "com.amazonaws.ivschat#ValidationException":
1027
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1028
+ default:
1029
+ const parsedBody = parsedOutput.body;
1030
+ return throwDefaultError({
1031
+ output,
1032
+ parsedBody,
1033
+ errorCode
1034
+ });
1035
+ }
1036
+ }, "de_GetLoggingConfigurationCommandError");
1037
+ var de_GetRoomCommand = /* @__PURE__ */ __name(async (output, context) => {
1038
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1039
+ return de_GetRoomCommandError(output, context);
1040
+ }
1041
+ const contents = (0, import_smithy_client.map)({
1042
+ $metadata: deserializeMetadata(output)
1043
+ });
1044
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1045
+ const doc = (0, import_smithy_client.take)(data, {
1046
+ arn: import_smithy_client.expectString,
1047
+ createTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1048
+ id: import_smithy_client.expectString,
1049
+ loggingConfigurationIdentifiers: import_smithy_client._json,
1050
+ maximumMessageLength: import_smithy_client.expectInt32,
1051
+ maximumMessageRatePerSecond: import_smithy_client.expectInt32,
1052
+ messageReviewHandler: import_smithy_client._json,
1053
+ name: import_smithy_client.expectString,
1054
+ tags: import_smithy_client._json,
1055
+ updateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
1056
+ });
1057
+ Object.assign(contents, doc);
1058
+ return contents;
1059
+ }, "de_GetRoomCommand");
1060
+ var de_GetRoomCommandError = /* @__PURE__ */ __name(async (output, context) => {
1061
+ const parsedOutput = {
1062
+ ...output,
1063
+ body: await parseErrorBody(output.body, context)
1064
+ };
1065
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1066
+ switch (errorCode) {
1067
+ case "AccessDeniedException":
1068
+ case "com.amazonaws.ivschat#AccessDeniedException":
1069
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1070
+ case "ResourceNotFoundException":
1071
+ case "com.amazonaws.ivschat#ResourceNotFoundException":
1072
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1073
+ case "ValidationException":
1074
+ case "com.amazonaws.ivschat#ValidationException":
1075
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1076
+ default:
1077
+ const parsedBody = parsedOutput.body;
1078
+ return throwDefaultError({
1079
+ output,
1080
+ parsedBody,
1081
+ errorCode
1082
+ });
1083
+ }
1084
+ }, "de_GetRoomCommandError");
1085
+ var de_ListLoggingConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1086
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1087
+ return de_ListLoggingConfigurationsCommandError(output, context);
1088
+ }
1089
+ const contents = (0, import_smithy_client.map)({
1090
+ $metadata: deserializeMetadata(output)
1091
+ });
1092
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1093
+ const doc = (0, import_smithy_client.take)(data, {
1094
+ loggingConfigurations: (_) => de_LoggingConfigurationList(_, context),
1095
+ nextToken: import_smithy_client.expectString
1096
+ });
1097
+ Object.assign(contents, doc);
1098
+ return contents;
1099
+ }, "de_ListLoggingConfigurationsCommand");
1100
+ var de_ListLoggingConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1101
+ const parsedOutput = {
1102
+ ...output,
1103
+ body: await parseErrorBody(output.body, context)
1104
+ };
1105
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1106
+ switch (errorCode) {
1107
+ case "AccessDeniedException":
1108
+ case "com.amazonaws.ivschat#AccessDeniedException":
1109
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1110
+ case "ValidationException":
1111
+ case "com.amazonaws.ivschat#ValidationException":
1112
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1113
+ default:
1114
+ const parsedBody = parsedOutput.body;
1115
+ return throwDefaultError({
1116
+ output,
1117
+ parsedBody,
1118
+ errorCode
1119
+ });
1120
+ }
1121
+ }, "de_ListLoggingConfigurationsCommandError");
1122
+ var de_ListRoomsCommand = /* @__PURE__ */ __name(async (output, context) => {
1123
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1124
+ return de_ListRoomsCommandError(output, context);
1125
+ }
1126
+ const contents = (0, import_smithy_client.map)({
1127
+ $metadata: deserializeMetadata(output)
1128
+ });
1129
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1130
+ const doc = (0, import_smithy_client.take)(data, {
1131
+ nextToken: import_smithy_client.expectString,
1132
+ rooms: (_) => de_RoomList(_, context)
1133
+ });
1134
+ Object.assign(contents, doc);
1135
+ return contents;
1136
+ }, "de_ListRoomsCommand");
1137
+ var de_ListRoomsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1138
+ const parsedOutput = {
1139
+ ...output,
1140
+ body: await parseErrorBody(output.body, context)
1141
+ };
1142
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1143
+ switch (errorCode) {
1144
+ case "AccessDeniedException":
1145
+ case "com.amazonaws.ivschat#AccessDeniedException":
1146
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1147
+ case "ResourceNotFoundException":
1148
+ case "com.amazonaws.ivschat#ResourceNotFoundException":
1149
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1150
+ case "ValidationException":
1151
+ case "com.amazonaws.ivschat#ValidationException":
1152
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1153
+ default:
1154
+ const parsedBody = parsedOutput.body;
1155
+ return throwDefaultError({
1156
+ output,
1157
+ parsedBody,
1158
+ errorCode
1159
+ });
1160
+ }
1161
+ }, "de_ListRoomsCommandError");
1162
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1163
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1164
+ return de_ListTagsForResourceCommandError(output, context);
1165
+ }
1166
+ const contents = (0, import_smithy_client.map)({
1167
+ $metadata: deserializeMetadata(output)
1168
+ });
1169
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1170
+ const doc = (0, import_smithy_client.take)(data, {
1171
+ tags: import_smithy_client._json
1172
+ });
1173
+ Object.assign(contents, doc);
1174
+ return contents;
1175
+ }, "de_ListTagsForResourceCommand");
1176
+ var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1177
+ const parsedOutput = {
1178
+ ...output,
1179
+ body: await parseErrorBody(output.body, context)
1180
+ };
1181
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1182
+ switch (errorCode) {
1183
+ case "InternalServerException":
1184
+ case "com.amazonaws.ivschat#InternalServerException":
1185
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1186
+ case "ResourceNotFoundException":
1187
+ case "com.amazonaws.ivschat#ResourceNotFoundException":
1188
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1189
+ case "ValidationException":
1190
+ case "com.amazonaws.ivschat#ValidationException":
1191
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1192
+ default:
1193
+ const parsedBody = parsedOutput.body;
1194
+ return throwDefaultError({
1195
+ output,
1196
+ parsedBody,
1197
+ errorCode
1198
+ });
1199
+ }
1200
+ }, "de_ListTagsForResourceCommandError");
1201
+ var de_SendEventCommand = /* @__PURE__ */ __name(async (output, context) => {
1202
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1203
+ return de_SendEventCommandError(output, context);
1204
+ }
1205
+ const contents = (0, import_smithy_client.map)({
1206
+ $metadata: deserializeMetadata(output)
1207
+ });
1208
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1209
+ const doc = (0, import_smithy_client.take)(data, {
1210
+ id: import_smithy_client.expectString
1211
+ });
1212
+ Object.assign(contents, doc);
1213
+ return contents;
1214
+ }, "de_SendEventCommand");
1215
+ var de_SendEventCommandError = /* @__PURE__ */ __name(async (output, context) => {
1216
+ const parsedOutput = {
1217
+ ...output,
1218
+ body: await parseErrorBody(output.body, context)
1219
+ };
1220
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1221
+ switch (errorCode) {
1222
+ case "AccessDeniedException":
1223
+ case "com.amazonaws.ivschat#AccessDeniedException":
1224
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1225
+ case "PendingVerification":
1226
+ case "com.amazonaws.ivschat#PendingVerification":
1227
+ throw await de_PendingVerificationRes(parsedOutput, context);
1228
+ case "ResourceNotFoundException":
1229
+ case "com.amazonaws.ivschat#ResourceNotFoundException":
1230
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1231
+ case "ThrottlingException":
1232
+ case "com.amazonaws.ivschat#ThrottlingException":
1233
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1234
+ case "ValidationException":
1235
+ case "com.amazonaws.ivschat#ValidationException":
1236
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1237
+ default:
1238
+ const parsedBody = parsedOutput.body;
1239
+ return throwDefaultError({
1240
+ output,
1241
+ parsedBody,
1242
+ errorCode
1243
+ });
1244
+ }
1245
+ }, "de_SendEventCommandError");
1246
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1247
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1248
+ return de_TagResourceCommandError(output, context);
1249
+ }
1250
+ const contents = (0, import_smithy_client.map)({
1251
+ $metadata: deserializeMetadata(output)
1252
+ });
1253
+ await (0, import_smithy_client.collectBody)(output.body, context);
1254
+ return contents;
1255
+ }, "de_TagResourceCommand");
1256
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1257
+ const parsedOutput = {
1258
+ ...output,
1259
+ body: await parseErrorBody(output.body, context)
1260
+ };
1261
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1262
+ switch (errorCode) {
1263
+ case "InternalServerException":
1264
+ case "com.amazonaws.ivschat#InternalServerException":
1265
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1266
+ case "ResourceNotFoundException":
1267
+ case "com.amazonaws.ivschat#ResourceNotFoundException":
1268
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1269
+ case "ValidationException":
1270
+ case "com.amazonaws.ivschat#ValidationException":
1271
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1272
+ default:
1273
+ const parsedBody = parsedOutput.body;
1274
+ return throwDefaultError({
1275
+ output,
1276
+ parsedBody,
1277
+ errorCode
1278
+ });
1279
+ }
1280
+ }, "de_TagResourceCommandError");
1281
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1282
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1283
+ return de_UntagResourceCommandError(output, context);
1284
+ }
1285
+ const contents = (0, import_smithy_client.map)({
1286
+ $metadata: deserializeMetadata(output)
1287
+ });
1288
+ await (0, import_smithy_client.collectBody)(output.body, context);
1289
+ return contents;
1290
+ }, "de_UntagResourceCommand");
1291
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1292
+ const parsedOutput = {
1293
+ ...output,
1294
+ body: await parseErrorBody(output.body, context)
1295
+ };
1296
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1297
+ switch (errorCode) {
1298
+ case "InternalServerException":
1299
+ case "com.amazonaws.ivschat#InternalServerException":
1300
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1301
+ case "ResourceNotFoundException":
1302
+ case "com.amazonaws.ivschat#ResourceNotFoundException":
1303
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1304
+ case "ValidationException":
1305
+ case "com.amazonaws.ivschat#ValidationException":
1306
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1307
+ default:
1308
+ const parsedBody = parsedOutput.body;
1309
+ return throwDefaultError({
1310
+ output,
1311
+ parsedBody,
1312
+ errorCode
1313
+ });
1314
+ }
1315
+ }, "de_UntagResourceCommandError");
1316
+ var de_UpdateLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1317
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1318
+ return de_UpdateLoggingConfigurationCommandError(output, context);
1319
+ }
1320
+ const contents = (0, import_smithy_client.map)({
1321
+ $metadata: deserializeMetadata(output)
1322
+ });
1323
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1324
+ const doc = (0, import_smithy_client.take)(data, {
1325
+ arn: import_smithy_client.expectString,
1326
+ createTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1327
+ destinationConfiguration: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
1328
+ id: import_smithy_client.expectString,
1329
+ name: import_smithy_client.expectString,
1330
+ state: import_smithy_client.expectString,
1331
+ tags: import_smithy_client._json,
1332
+ updateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
1333
+ });
1334
+ Object.assign(contents, doc);
1335
+ return contents;
1336
+ }, "de_UpdateLoggingConfigurationCommand");
1337
+ var de_UpdateLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1338
+ const parsedOutput = {
1339
+ ...output,
1340
+ body: await parseErrorBody(output.body, context)
1341
+ };
1342
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1343
+ switch (errorCode) {
1344
+ case "AccessDeniedException":
1345
+ case "com.amazonaws.ivschat#AccessDeniedException":
1346
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1347
+ case "ConflictException":
1348
+ case "com.amazonaws.ivschat#ConflictException":
1349
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1350
+ case "PendingVerification":
1351
+ case "com.amazonaws.ivschat#PendingVerification":
1352
+ throw await de_PendingVerificationRes(parsedOutput, context);
1353
+ case "ResourceNotFoundException":
1354
+ case "com.amazonaws.ivschat#ResourceNotFoundException":
1355
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1356
+ case "ValidationException":
1357
+ case "com.amazonaws.ivschat#ValidationException":
1358
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1359
+ default:
1360
+ const parsedBody = parsedOutput.body;
1361
+ return throwDefaultError({
1362
+ output,
1363
+ parsedBody,
1364
+ errorCode
1365
+ });
1366
+ }
1367
+ }, "de_UpdateLoggingConfigurationCommandError");
1368
+ var de_UpdateRoomCommand = /* @__PURE__ */ __name(async (output, context) => {
1369
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1370
+ return de_UpdateRoomCommandError(output, context);
1371
+ }
1372
+ const contents = (0, import_smithy_client.map)({
1373
+ $metadata: deserializeMetadata(output)
1374
+ });
1375
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1376
+ const doc = (0, import_smithy_client.take)(data, {
1377
+ arn: import_smithy_client.expectString,
1378
+ createTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1379
+ id: import_smithy_client.expectString,
1380
+ loggingConfigurationIdentifiers: import_smithy_client._json,
1381
+ maximumMessageLength: import_smithy_client.expectInt32,
1382
+ maximumMessageRatePerSecond: import_smithy_client.expectInt32,
1383
+ messageReviewHandler: import_smithy_client._json,
1384
+ name: import_smithy_client.expectString,
1385
+ tags: import_smithy_client._json,
1386
+ updateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
1387
+ });
1388
+ Object.assign(contents, doc);
1389
+ return contents;
1390
+ }, "de_UpdateRoomCommand");
1391
+ var de_UpdateRoomCommandError = /* @__PURE__ */ __name(async (output, context) => {
1392
+ const parsedOutput = {
1393
+ ...output,
1394
+ body: await parseErrorBody(output.body, context)
1395
+ };
1396
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1397
+ switch (errorCode) {
1398
+ case "AccessDeniedException":
1399
+ case "com.amazonaws.ivschat#AccessDeniedException":
1400
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1401
+ case "PendingVerification":
1402
+ case "com.amazonaws.ivschat#PendingVerification":
1403
+ throw await de_PendingVerificationRes(parsedOutput, context);
1404
+ case "ResourceNotFoundException":
1405
+ case "com.amazonaws.ivschat#ResourceNotFoundException":
1406
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1407
+ case "ValidationException":
1408
+ case "com.amazonaws.ivschat#ValidationException":
1409
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1410
+ default:
1411
+ const parsedBody = parsedOutput.body;
1412
+ return throwDefaultError({
1413
+ output,
1414
+ parsedBody,
1415
+ errorCode
1416
+ });
1417
+ }
1418
+ }, "de_UpdateRoomCommandError");
1419
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(IvschatServiceException);
1420
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1421
+ const contents = (0, import_smithy_client.map)({});
1422
+ const data = parsedOutput.body;
1423
+ const doc = (0, import_smithy_client.take)(data, {
1424
+ message: import_smithy_client.expectString
1425
+ });
1426
+ Object.assign(contents, doc);
1427
+ const exception = new AccessDeniedException({
1428
+ $metadata: deserializeMetadata(parsedOutput),
1429
+ ...contents
1430
+ });
1431
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1432
+ }, "de_AccessDeniedExceptionRes");
1433
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1434
+ const contents = (0, import_smithy_client.map)({});
1435
+ const data = parsedOutput.body;
1436
+ const doc = (0, import_smithy_client.take)(data, {
1437
+ message: import_smithy_client.expectString,
1438
+ resourceId: import_smithy_client.expectString,
1439
+ resourceType: import_smithy_client.expectString
1440
+ });
1441
+ Object.assign(contents, doc);
1442
+ const exception = new ConflictException({
1443
+ $metadata: deserializeMetadata(parsedOutput),
1444
+ ...contents
1445
+ });
1446
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1447
+ }, "de_ConflictExceptionRes");
1448
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1449
+ const contents = (0, import_smithy_client.map)({});
1450
+ const data = parsedOutput.body;
1451
+ const doc = (0, import_smithy_client.take)(data, {
1452
+ message: import_smithy_client.expectString
1453
+ });
1454
+ Object.assign(contents, doc);
1455
+ const exception = new InternalServerException({
1456
+ $metadata: deserializeMetadata(parsedOutput),
1457
+ ...contents
1458
+ });
1459
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1460
+ }, "de_InternalServerExceptionRes");
1461
+ var de_PendingVerificationRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1462
+ const contents = (0, import_smithy_client.map)({});
1463
+ const data = parsedOutput.body;
1464
+ const doc = (0, import_smithy_client.take)(data, {
1465
+ message: import_smithy_client.expectString
1466
+ });
1467
+ Object.assign(contents, doc);
1468
+ const exception = new PendingVerification({
1469
+ $metadata: deserializeMetadata(parsedOutput),
1470
+ ...contents
1471
+ });
1472
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1473
+ }, "de_PendingVerificationRes");
1474
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1475
+ const contents = (0, import_smithy_client.map)({});
1476
+ const data = parsedOutput.body;
1477
+ const doc = (0, import_smithy_client.take)(data, {
1478
+ message: import_smithy_client.expectString,
1479
+ resourceId: import_smithy_client.expectString,
1480
+ resourceType: import_smithy_client.expectString
1481
+ });
1482
+ Object.assign(contents, doc);
1483
+ const exception = new ResourceNotFoundException({
1484
+ $metadata: deserializeMetadata(parsedOutput),
1485
+ ...contents
1486
+ });
1487
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1488
+ }, "de_ResourceNotFoundExceptionRes");
1489
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1490
+ const contents = (0, import_smithy_client.map)({});
1491
+ const data = parsedOutput.body;
1492
+ const doc = (0, import_smithy_client.take)(data, {
1493
+ limit: import_smithy_client.expectInt32,
1494
+ message: import_smithy_client.expectString,
1495
+ resourceId: import_smithy_client.expectString,
1496
+ resourceType: import_smithy_client.expectString
1497
+ });
1498
+ Object.assign(contents, doc);
1499
+ const exception = new ServiceQuotaExceededException({
1500
+ $metadata: deserializeMetadata(parsedOutput),
1501
+ ...contents
1502
+ });
1503
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1504
+ }, "de_ServiceQuotaExceededExceptionRes");
1505
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1506
+ const contents = (0, import_smithy_client.map)({});
1507
+ const data = parsedOutput.body;
1508
+ const doc = (0, import_smithy_client.take)(data, {
1509
+ limit: import_smithy_client.expectInt32,
1510
+ message: import_smithy_client.expectString,
1511
+ resourceId: import_smithy_client.expectString,
1512
+ resourceType: import_smithy_client.expectString
1513
+ });
1514
+ Object.assign(contents, doc);
1515
+ const exception = new ThrottlingException({
1516
+ $metadata: deserializeMetadata(parsedOutput),
1517
+ ...contents
1518
+ });
1519
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1520
+ }, "de_ThrottlingExceptionRes");
1521
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1522
+ const contents = (0, import_smithy_client.map)({});
1523
+ const data = parsedOutput.body;
1524
+ const doc = (0, import_smithy_client.take)(data, {
1525
+ fieldList: import_smithy_client._json,
1526
+ message: import_smithy_client.expectString,
1527
+ reason: import_smithy_client.expectString
1528
+ });
1529
+ Object.assign(contents, doc);
1530
+ const exception = new ValidationException({
1531
+ $metadata: deserializeMetadata(parsedOutput),
1532
+ ...contents
1533
+ });
1534
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1535
+ }, "de_ValidationExceptionRes");
1536
+ var de_LoggingConfigurationList = /* @__PURE__ */ __name((output, context) => {
1537
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1538
+ return de_LoggingConfigurationSummary(entry, context);
1539
+ });
1540
+ return retVal;
1541
+ }, "de_LoggingConfigurationList");
1542
+ var de_LoggingConfigurationSummary = /* @__PURE__ */ __name((output, context) => {
1543
+ return (0, import_smithy_client.take)(output, {
1544
+ arn: import_smithy_client.expectString,
1545
+ createTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1546
+ destinationConfiguration: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
1547
+ id: import_smithy_client.expectString,
1548
+ name: import_smithy_client.expectString,
1549
+ state: import_smithy_client.expectString,
1550
+ tags: import_smithy_client._json,
1551
+ updateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
1552
+ });
1553
+ }, "de_LoggingConfigurationSummary");
1554
+ var de_RoomList = /* @__PURE__ */ __name((output, context) => {
1555
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1556
+ return de_RoomSummary(entry, context);
1557
+ });
1558
+ return retVal;
1559
+ }, "de_RoomList");
1560
+ var de_RoomSummary = /* @__PURE__ */ __name((output, context) => {
1561
+ return (0, import_smithy_client.take)(output, {
1562
+ arn: import_smithy_client.expectString,
1563
+ createTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1564
+ id: import_smithy_client.expectString,
1565
+ loggingConfigurationIdentifiers: import_smithy_client._json,
1566
+ messageReviewHandler: import_smithy_client._json,
1567
+ name: import_smithy_client.expectString,
1568
+ tags: import_smithy_client._json,
1569
+ updateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
1570
+ });
1571
+ }, "de_RoomSummary");
1572
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1573
+ httpStatusCode: output.statusCode,
1574
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1575
+ extendedRequestId: output.headers["x-amz-id-2"],
1576
+ cfId: output.headers["x-amz-cf-id"]
1577
+ }), "deserializeMetadata");
1578
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
1579
+ var _tK = "tagKeys";
1580
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1581
+ if (encoded.length) {
1582
+ return JSON.parse(encoded);
1583
+ }
1584
+ return {};
1585
+ }), "parseBody");
1586
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
1587
+ const value = await parseBody(errorBody, context);
1588
+ value.message = value.message ?? value.Message;
1589
+ return value;
1590
+ }, "parseErrorBody");
1591
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
1592
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
1593
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
1594
+ let cleanValue = rawValue;
1595
+ if (typeof cleanValue === "number") {
1596
+ cleanValue = cleanValue.toString();
1597
+ }
1598
+ if (cleanValue.indexOf(",") >= 0) {
1599
+ cleanValue = cleanValue.split(",")[0];
1600
+ }
1601
+ if (cleanValue.indexOf(":") >= 0) {
1602
+ cleanValue = cleanValue.split(":")[0];
1603
+ }
1604
+ if (cleanValue.indexOf("#") >= 0) {
1605
+ cleanValue = cleanValue.split("#")[1];
1606
+ }
1607
+ return cleanValue;
1608
+ }, "sanitizeErrorCode");
1609
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
1610
+ if (headerKey !== void 0) {
1611
+ return sanitizeErrorCode(output.headers[headerKey]);
1612
+ }
1613
+ if (data.code !== void 0) {
1614
+ return sanitizeErrorCode(data.code);
1615
+ }
1616
+ if (data["__type"] !== void 0) {
1617
+ return sanitizeErrorCode(data["__type"]);
1618
+ }
1619
+ }, "loadRestJsonErrorCode");
1620
+
1621
+ // src/commands/CreateChatTokenCommand.ts
1622
+ var _CreateChatTokenCommand = class _CreateChatTokenCommand extends import_smithy_client.Command.classBuilder().ep({
1623
+ ...commonParams
1624
+ }).m(function(Command, cs, config, o) {
1625
+ return [
1626
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1627
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1628
+ ];
1629
+ }).s("AmazonInteractiveVideoServiceChat", "CreateChatToken", {}).n("IvschatClient", "CreateChatTokenCommand").f(CreateChatTokenRequestFilterSensitiveLog, CreateChatTokenResponseFilterSensitiveLog).ser(se_CreateChatTokenCommand).de(de_CreateChatTokenCommand).build() {
1630
+ };
1631
+ __name(_CreateChatTokenCommand, "CreateChatTokenCommand");
1632
+ var CreateChatTokenCommand = _CreateChatTokenCommand;
1633
+
1634
+ // src/commands/CreateLoggingConfigurationCommand.ts
1635
+
1636
+
1637
+
1638
+
1639
+ var _CreateLoggingConfigurationCommand = class _CreateLoggingConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
1640
+ ...commonParams
1641
+ }).m(function(Command, cs, config, o) {
1642
+ return [
1643
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1644
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1645
+ ];
1646
+ }).s("AmazonInteractiveVideoServiceChat", "CreateLoggingConfiguration", {}).n("IvschatClient", "CreateLoggingConfigurationCommand").f(void 0, void 0).ser(se_CreateLoggingConfigurationCommand).de(de_CreateLoggingConfigurationCommand).build() {
1647
+ };
1648
+ __name(_CreateLoggingConfigurationCommand, "CreateLoggingConfigurationCommand");
1649
+ var CreateLoggingConfigurationCommand = _CreateLoggingConfigurationCommand;
1650
+
1651
+ // src/commands/CreateRoomCommand.ts
1652
+
1653
+
1654
+
1655
+
1656
+ var _CreateRoomCommand = class _CreateRoomCommand extends import_smithy_client.Command.classBuilder().ep({
1657
+ ...commonParams
1658
+ }).m(function(Command, cs, config, o) {
1659
+ return [
1660
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1661
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1662
+ ];
1663
+ }).s("AmazonInteractiveVideoServiceChat", "CreateRoom", {}).n("IvschatClient", "CreateRoomCommand").f(void 0, void 0).ser(se_CreateRoomCommand).de(de_CreateRoomCommand).build() {
1664
+ };
1665
+ __name(_CreateRoomCommand, "CreateRoomCommand");
1666
+ var CreateRoomCommand = _CreateRoomCommand;
1667
+
1668
+ // src/commands/DeleteLoggingConfigurationCommand.ts
1669
+
1670
+
1671
+
1672
+
1673
+ var _DeleteLoggingConfigurationCommand = class _DeleteLoggingConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
1674
+ ...commonParams
1675
+ }).m(function(Command, cs, config, o) {
1676
+ return [
1677
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1678
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1679
+ ];
1680
+ }).s("AmazonInteractiveVideoServiceChat", "DeleteLoggingConfiguration", {}).n("IvschatClient", "DeleteLoggingConfigurationCommand").f(void 0, void 0).ser(se_DeleteLoggingConfigurationCommand).de(de_DeleteLoggingConfigurationCommand).build() {
1681
+ };
1682
+ __name(_DeleteLoggingConfigurationCommand, "DeleteLoggingConfigurationCommand");
1683
+ var DeleteLoggingConfigurationCommand = _DeleteLoggingConfigurationCommand;
1684
+
1685
+ // src/commands/DeleteMessageCommand.ts
1686
+
1687
+
1688
+
1689
+
1690
+ var _DeleteMessageCommand = class _DeleteMessageCommand extends import_smithy_client.Command.classBuilder().ep({
1691
+ ...commonParams
1692
+ }).m(function(Command, cs, config, o) {
1693
+ return [
1694
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1695
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1696
+ ];
1697
+ }).s("AmazonInteractiveVideoServiceChat", "DeleteMessage", {}).n("IvschatClient", "DeleteMessageCommand").f(void 0, void 0).ser(se_DeleteMessageCommand).de(de_DeleteMessageCommand).build() {
1698
+ };
1699
+ __name(_DeleteMessageCommand, "DeleteMessageCommand");
1700
+ var DeleteMessageCommand = _DeleteMessageCommand;
1701
+
1702
+ // src/commands/DeleteRoomCommand.ts
1703
+
1704
+
1705
+
1706
+
1707
+ var _DeleteRoomCommand = class _DeleteRoomCommand extends import_smithy_client.Command.classBuilder().ep({
1708
+ ...commonParams
1709
+ }).m(function(Command, cs, config, o) {
1710
+ return [
1711
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1712
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1713
+ ];
1714
+ }).s("AmazonInteractiveVideoServiceChat", "DeleteRoom", {}).n("IvschatClient", "DeleteRoomCommand").f(void 0, void 0).ser(se_DeleteRoomCommand).de(de_DeleteRoomCommand).build() {
1715
+ };
1716
+ __name(_DeleteRoomCommand, "DeleteRoomCommand");
1717
+ var DeleteRoomCommand = _DeleteRoomCommand;
1718
+
1719
+ // src/commands/DisconnectUserCommand.ts
1720
+
1721
+
1722
+
1723
+
1724
+ var _DisconnectUserCommand = class _DisconnectUserCommand extends import_smithy_client.Command.classBuilder().ep({
1725
+ ...commonParams
1726
+ }).m(function(Command, cs, config, o) {
1727
+ return [
1728
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1729
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1730
+ ];
1731
+ }).s("AmazonInteractiveVideoServiceChat", "DisconnectUser", {}).n("IvschatClient", "DisconnectUserCommand").f(DisconnectUserRequestFilterSensitiveLog, void 0).ser(se_DisconnectUserCommand).de(de_DisconnectUserCommand).build() {
1732
+ };
1733
+ __name(_DisconnectUserCommand, "DisconnectUserCommand");
1734
+ var DisconnectUserCommand = _DisconnectUserCommand;
1735
+
1736
+ // src/commands/GetLoggingConfigurationCommand.ts
1737
+
1738
+
1739
+
1740
+
1741
+ var _GetLoggingConfigurationCommand = class _GetLoggingConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
1742
+ ...commonParams
1743
+ }).m(function(Command, cs, config, o) {
1744
+ return [
1745
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1746
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1747
+ ];
1748
+ }).s("AmazonInteractiveVideoServiceChat", "GetLoggingConfiguration", {}).n("IvschatClient", "GetLoggingConfigurationCommand").f(void 0, void 0).ser(se_GetLoggingConfigurationCommand).de(de_GetLoggingConfigurationCommand).build() {
1749
+ };
1750
+ __name(_GetLoggingConfigurationCommand, "GetLoggingConfigurationCommand");
1751
+ var GetLoggingConfigurationCommand = _GetLoggingConfigurationCommand;
1752
+
1753
+ // src/commands/GetRoomCommand.ts
1754
+
1755
+
1756
+
1757
+
1758
+ var _GetRoomCommand = class _GetRoomCommand extends import_smithy_client.Command.classBuilder().ep({
1759
+ ...commonParams
1760
+ }).m(function(Command, cs, config, o) {
1761
+ return [
1762
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1763
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1764
+ ];
1765
+ }).s("AmazonInteractiveVideoServiceChat", "GetRoom", {}).n("IvschatClient", "GetRoomCommand").f(void 0, void 0).ser(se_GetRoomCommand).de(de_GetRoomCommand).build() {
1766
+ };
1767
+ __name(_GetRoomCommand, "GetRoomCommand");
1768
+ var GetRoomCommand = _GetRoomCommand;
1769
+
1770
+ // src/commands/ListLoggingConfigurationsCommand.ts
1771
+
1772
+
1773
+
1774
+
1775
+ var _ListLoggingConfigurationsCommand = class _ListLoggingConfigurationsCommand extends import_smithy_client.Command.classBuilder().ep({
1776
+ ...commonParams
1777
+ }).m(function(Command, cs, config, o) {
1778
+ return [
1779
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1780
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1781
+ ];
1782
+ }).s("AmazonInteractiveVideoServiceChat", "ListLoggingConfigurations", {}).n("IvschatClient", "ListLoggingConfigurationsCommand").f(void 0, void 0).ser(se_ListLoggingConfigurationsCommand).de(de_ListLoggingConfigurationsCommand).build() {
1783
+ };
1784
+ __name(_ListLoggingConfigurationsCommand, "ListLoggingConfigurationsCommand");
1785
+ var ListLoggingConfigurationsCommand = _ListLoggingConfigurationsCommand;
1786
+
1787
+ // src/commands/ListRoomsCommand.ts
1788
+
1789
+
1790
+
1791
+
1792
+ var _ListRoomsCommand = class _ListRoomsCommand extends import_smithy_client.Command.classBuilder().ep({
1793
+ ...commonParams
1794
+ }).m(function(Command, cs, config, o) {
1795
+ return [
1796
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1797
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1798
+ ];
1799
+ }).s("AmazonInteractiveVideoServiceChat", "ListRooms", {}).n("IvschatClient", "ListRoomsCommand").f(void 0, void 0).ser(se_ListRoomsCommand).de(de_ListRoomsCommand).build() {
1800
+ };
1801
+ __name(_ListRoomsCommand, "ListRoomsCommand");
1802
+ var ListRoomsCommand = _ListRoomsCommand;
1803
+
1804
+ // src/commands/ListTagsForResourceCommand.ts
1805
+
1806
+
1807
+
1808
+
1809
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1810
+ ...commonParams
1811
+ }).m(function(Command, cs, config, o) {
1812
+ return [
1813
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1814
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1815
+ ];
1816
+ }).s("AmazonInteractiveVideoServiceChat", "ListTagsForResource", {}).n("IvschatClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1817
+ };
1818
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
1819
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
1820
+
1821
+ // src/commands/SendEventCommand.ts
1822
+
1823
+
1824
+
1825
+
1826
+ var _SendEventCommand = class _SendEventCommand extends import_smithy_client.Command.classBuilder().ep({
1827
+ ...commonParams
1828
+ }).m(function(Command, cs, config, o) {
1829
+ return [
1830
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1831
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1832
+ ];
1833
+ }).s("AmazonInteractiveVideoServiceChat", "SendEvent", {}).n("IvschatClient", "SendEventCommand").f(void 0, void 0).ser(se_SendEventCommand).de(de_SendEventCommand).build() {
1834
+ };
1835
+ __name(_SendEventCommand, "SendEventCommand");
1836
+ var SendEventCommand = _SendEventCommand;
1837
+
1838
+ // src/commands/TagResourceCommand.ts
1839
+
1840
+
1841
+
1842
+
1843
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1844
+ ...commonParams
1845
+ }).m(function(Command, cs, config, o) {
1846
+ return [
1847
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1848
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1849
+ ];
1850
+ }).s("AmazonInteractiveVideoServiceChat", "TagResource", {}).n("IvschatClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1851
+ };
1852
+ __name(_TagResourceCommand, "TagResourceCommand");
1853
+ var TagResourceCommand = _TagResourceCommand;
1854
+
1855
+ // src/commands/UntagResourceCommand.ts
1856
+
1857
+
1858
+
1859
+
1860
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1861
+ ...commonParams
1862
+ }).m(function(Command, cs, config, o) {
1863
+ return [
1864
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1865
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1866
+ ];
1867
+ }).s("AmazonInteractiveVideoServiceChat", "UntagResource", {}).n("IvschatClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1868
+ };
1869
+ __name(_UntagResourceCommand, "UntagResourceCommand");
1870
+ var UntagResourceCommand = _UntagResourceCommand;
1871
+
1872
+ // src/commands/UpdateLoggingConfigurationCommand.ts
1873
+
1874
+
1875
+
1876
+
1877
+ var _UpdateLoggingConfigurationCommand = class _UpdateLoggingConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
1878
+ ...commonParams
1879
+ }).m(function(Command, cs, config, o) {
1880
+ return [
1881
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1882
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1883
+ ];
1884
+ }).s("AmazonInteractiveVideoServiceChat", "UpdateLoggingConfiguration", {}).n("IvschatClient", "UpdateLoggingConfigurationCommand").f(void 0, void 0).ser(se_UpdateLoggingConfigurationCommand).de(de_UpdateLoggingConfigurationCommand).build() {
1885
+ };
1886
+ __name(_UpdateLoggingConfigurationCommand, "UpdateLoggingConfigurationCommand");
1887
+ var UpdateLoggingConfigurationCommand = _UpdateLoggingConfigurationCommand;
1888
+
1889
+ // src/commands/UpdateRoomCommand.ts
1890
+
1891
+
1892
+
1893
+
1894
+ var _UpdateRoomCommand = class _UpdateRoomCommand extends import_smithy_client.Command.classBuilder().ep({
1895
+ ...commonParams
1896
+ }).m(function(Command, cs, config, o) {
1897
+ return [
1898
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1899
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1900
+ ];
1901
+ }).s("AmazonInteractiveVideoServiceChat", "UpdateRoom", {}).n("IvschatClient", "UpdateRoomCommand").f(void 0, void 0).ser(se_UpdateRoomCommand).de(de_UpdateRoomCommand).build() {
1902
+ };
1903
+ __name(_UpdateRoomCommand, "UpdateRoomCommand");
1904
+ var UpdateRoomCommand = _UpdateRoomCommand;
1905
+
1906
+ // src/Ivschat.ts
1907
+ var commands = {
1908
+ CreateChatTokenCommand,
1909
+ CreateLoggingConfigurationCommand,
1910
+ CreateRoomCommand,
1911
+ DeleteLoggingConfigurationCommand,
1912
+ DeleteMessageCommand,
1913
+ DeleteRoomCommand,
1914
+ DisconnectUserCommand,
1915
+ GetLoggingConfigurationCommand,
1916
+ GetRoomCommand,
1917
+ ListLoggingConfigurationsCommand,
1918
+ ListRoomsCommand,
1919
+ ListTagsForResourceCommand,
1920
+ SendEventCommand,
1921
+ TagResourceCommand,
1922
+ UntagResourceCommand,
1923
+ UpdateLoggingConfigurationCommand,
1924
+ UpdateRoomCommand
1925
+ };
1926
+ var _Ivschat = class _Ivschat extends IvschatClient {
1927
+ };
1928
+ __name(_Ivschat, "Ivschat");
1929
+ var Ivschat = _Ivschat;
1930
+ (0, import_smithy_client.createAggregatedClient)(commands, Ivschat);
1931
+
1932
+ // src/pagination/ListLoggingConfigurationsPaginator.ts
1933
+ var import_core3 = require("@smithy/core");
1934
+ var paginateListLoggingConfigurations = (0, import_core3.createPaginator)(IvschatClient, ListLoggingConfigurationsCommand, "nextToken", "nextToken", "maxResults");
1935
+
1936
+ // src/pagination/ListRoomsPaginator.ts
1937
+ var import_core4 = require("@smithy/core");
1938
+ var paginateListRooms = (0, import_core4.createPaginator)(IvschatClient, ListRoomsCommand, "nextToken", "nextToken", "maxResults");
1939
+
1940
+ // src/index.ts
1941
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
1942
+ // Annotate the CommonJS export names for ESM import in node:
1943
+ 0 && (module.exports = {
1944
+ AccessDeniedException,
1945
+ ChatTokenCapability,
1946
+ ConflictException,
1947
+ CreateChatTokenCommand,
1948
+ CreateChatTokenRequestFilterSensitiveLog,
1949
+ CreateChatTokenResponseFilterSensitiveLog,
1950
+ CreateLoggingConfigurationCommand,
1951
+ CreateLoggingConfigurationState,
1952
+ CreateRoomCommand,
1953
+ DeleteLoggingConfigurationCommand,
1954
+ DeleteMessageCommand,
1955
+ DeleteRoomCommand,
1956
+ DestinationConfiguration,
1957
+ DisconnectUserCommand,
1958
+ DisconnectUserRequestFilterSensitiveLog,
1959
+ FallbackResult,
1960
+ GetLoggingConfigurationCommand,
1961
+ GetRoomCommand,
1962
+ InternalServerException,
1963
+ Ivschat,
1964
+ IvschatClient,
1965
+ IvschatServiceException,
1966
+ ListLoggingConfigurationsCommand,
1967
+ ListRoomsCommand,
1968
+ ListTagsForResourceCommand,
1969
+ LoggingConfigurationState,
1970
+ PendingVerification,
1971
+ ResourceNotFoundException,
1972
+ ResourceType,
1973
+ SendEventCommand,
1974
+ ServiceQuotaExceededException,
1975
+ TagResourceCommand,
1976
+ ThrottlingException,
1977
+ UntagResourceCommand,
1978
+ UpdateLoggingConfigurationCommand,
1979
+ UpdateLoggingConfigurationState,
1980
+ UpdateRoomCommand,
1981
+ ValidationException,
1982
+ ValidationExceptionReason,
1983
+ __Client,
1984
+ paginateListLoggingConfigurations,
1985
+ paginateListRooms
1986
+ });