@aws-sdk/client-ivschat 3.928.0 → 3.930.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist-cjs/index.js +631 -895
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/IvschatClient.js +2 -0
  4. package/dist-es/commands/CreateChatTokenCommand.js +3 -10
  5. package/dist-es/commands/CreateLoggingConfigurationCommand.js +3 -9
  6. package/dist-es/commands/CreateRoomCommand.js +3 -9
  7. package/dist-es/commands/DeleteLoggingConfigurationCommand.js +3 -9
  8. package/dist-es/commands/DeleteMessageCommand.js +3 -9
  9. package/dist-es/commands/DeleteRoomCommand.js +3 -9
  10. package/dist-es/commands/DisconnectUserCommand.js +3 -10
  11. package/dist-es/commands/GetLoggingConfigurationCommand.js +3 -9
  12. package/dist-es/commands/GetRoomCommand.js +3 -9
  13. package/dist-es/commands/ListLoggingConfigurationsCommand.js +3 -9
  14. package/dist-es/commands/ListRoomsCommand.js +3 -9
  15. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  16. package/dist-es/commands/SendEventCommand.js +3 -9
  17. package/dist-es/commands/TagResourceCommand.js +3 -9
  18. package/dist-es/commands/UntagResourceCommand.js +3 -9
  19. package/dist-es/commands/UpdateLoggingConfigurationCommand.js +3 -9
  20. package/dist-es/commands/UpdateRoomCommand.js +3 -9
  21. package/dist-es/models/models_0.js +0 -26
  22. package/dist-es/runtimeConfig.shared.js +2 -0
  23. package/dist-es/schemas/schemas_0.js +577 -0
  24. package/dist-types/IvschatClient.d.ts +10 -1
  25. package/dist-types/models/models_0.d.ts +4 -13
  26. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  27. package/dist-types/runtimeConfig.d.ts +1 -0
  28. package/dist-types/runtimeConfig.native.d.ts +1 -0
  29. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  30. package/dist-types/schemas/schemas_0.d.ts +79 -0
  31. package/dist-types/ts3.4/IvschatClient.d.ts +4 -0
  32. package/dist-types/ts3.4/models/models_0.d.ts +0 -10
  33. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  34. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  35. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  36. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  37. package/dist-types/ts3.4/schemas/schemas_0.d.ts +86 -0
  38. package/package.json +33 -33
  39. package/dist-es/protocols/Aws_restJson1.js +0 -726
  40. package/dist-types/protocols/Aws_restJson1.d.ts +0 -155
  41. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -209
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
18
 
20
19
  const resolveClientEndpointParameters = (options) => {
21
20
  return Object.assign(options, {
@@ -91,6 +90,7 @@ class IvschatClient extends smithyClient.Client {
91
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
94
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -110,14 +110,14 @@ class IvschatClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- class IvschatServiceException extends smithyClient.ServiceException {
113
+ let IvschatServiceException$1 = class IvschatServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, IvschatServiceException.prototype);
117
117
  }
118
- }
118
+ };
119
119
 
120
- class AccessDeniedException extends IvschatServiceException {
120
+ let AccessDeniedException$1 = class AccessDeniedException extends IvschatServiceException$1 {
121
121
  name = "AccessDeniedException";
122
122
  $fault = "client";
123
123
  constructor(opts) {
@@ -128,13 +128,13 @@ class AccessDeniedException extends IvschatServiceException {
128
128
  });
129
129
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
130
130
  }
131
- }
131
+ };
132
132
  const ChatTokenCapability = {
133
133
  DELETE_MESSAGE: "DELETE_MESSAGE",
134
134
  DISCONNECT_USER: "DISCONNECT_USER",
135
135
  SEND_MESSAGE: "SEND_MESSAGE",
136
136
  };
137
- class PendingVerification extends IvschatServiceException {
137
+ let PendingVerification$1 = class PendingVerification extends IvschatServiceException$1 {
138
138
  name = "PendingVerification";
139
139
  $fault = "client";
140
140
  constructor(opts) {
@@ -145,11 +145,11 @@ class PendingVerification extends IvschatServiceException {
145
145
  });
146
146
  Object.setPrototypeOf(this, PendingVerification.prototype);
147
147
  }
148
- }
148
+ };
149
149
  const ResourceType = {
150
150
  ROOM: "ROOM",
151
151
  };
152
- class ResourceNotFoundException extends IvschatServiceException {
152
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends IvschatServiceException$1 {
153
153
  name = "ResourceNotFoundException";
154
154
  $fault = "client";
155
155
  resourceId;
@@ -164,13 +164,13 @@ class ResourceNotFoundException extends IvschatServiceException {
164
164
  this.resourceId = opts.resourceId;
165
165
  this.resourceType = opts.resourceType;
166
166
  }
167
- }
167
+ };
168
168
  const ValidationExceptionReason = {
169
169
  FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
170
170
  OTHER: "OTHER",
171
171
  UNKNOWN_OPERATION: "UNKNOWN_OPERATION",
172
172
  };
173
- class ValidationException extends IvschatServiceException {
173
+ let ValidationException$1 = class ValidationException extends IvschatServiceException$1 {
174
174
  name = "ValidationException";
175
175
  $fault = "client";
176
176
  reason;
@@ -185,8 +185,8 @@ class ValidationException extends IvschatServiceException {
185
185
  this.reason = opts.reason;
186
186
  this.fieldList = opts.fieldList;
187
187
  }
188
- }
189
- class ConflictException extends IvschatServiceException {
188
+ };
189
+ let ConflictException$1 = class ConflictException extends IvschatServiceException$1 {
190
190
  name = "ConflictException";
191
191
  $fault = "client";
192
192
  resourceId;
@@ -201,23 +201,11 @@ class ConflictException extends IvschatServiceException {
201
201
  this.resourceId = opts.resourceId;
202
202
  this.resourceType = opts.resourceType;
203
203
  }
204
- }
205
- exports.DestinationConfiguration = void 0;
206
- (function (DestinationConfiguration) {
207
- DestinationConfiguration.visit = (value, visitor) => {
208
- if (value.s3 !== undefined)
209
- return visitor.s3(value.s3);
210
- if (value.cloudWatchLogs !== undefined)
211
- return visitor.cloudWatchLogs(value.cloudWatchLogs);
212
- if (value.firehose !== undefined)
213
- return visitor.firehose(value.firehose);
214
- return visitor._(value.$unknown[0], value.$unknown[1]);
215
- };
216
- })(exports.DestinationConfiguration || (exports.DestinationConfiguration = {}));
204
+ };
217
205
  const CreateLoggingConfigurationState = {
218
206
  ACTIVE: "ACTIVE",
219
207
  };
220
- class ServiceQuotaExceededException extends IvschatServiceException {
208
+ let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extends IvschatServiceException$1 {
221
209
  name = "ServiceQuotaExceededException";
222
210
  $fault = "client";
223
211
  resourceId;
@@ -234,12 +222,12 @@ class ServiceQuotaExceededException extends IvschatServiceException {
234
222
  this.resourceType = opts.resourceType;
235
223
  this.limit = opts.limit;
236
224
  }
237
- }
225
+ };
238
226
  const FallbackResult = {
239
227
  ALLOW: "ALLOW",
240
228
  DENY: "DENY",
241
229
  };
242
- class ThrottlingException extends IvschatServiceException {
230
+ let ThrottlingException$1 = class ThrottlingException extends IvschatServiceException$1 {
243
231
  name = "ThrottlingException";
244
232
  $fault = "client";
245
233
  resourceId;
@@ -256,7 +244,7 @@ class ThrottlingException extends IvschatServiceException {
256
244
  this.resourceType = opts.resourceType;
257
245
  this.limit = opts.limit;
258
246
  }
259
- }
247
+ };
260
248
  const LoggingConfigurationState = {
261
249
  ACTIVE: "ACTIVE",
262
250
  CREATE_FAILED: "CREATE_FAILED",
@@ -266,7 +254,7 @@ const LoggingConfigurationState = {
266
254
  UPDATE_FAILED: "UPDATE_FAILED",
267
255
  UPDATING: "UPDATING",
268
256
  };
269
- class InternalServerException extends IvschatServiceException {
257
+ let InternalServerException$1 = class InternalServerException extends IvschatServiceException$1 {
270
258
  name = "InternalServerException";
271
259
  $fault = "server";
272
260
  constructor(opts) {
@@ -277,759 +265,590 @@ class InternalServerException extends IvschatServiceException {
277
265
  });
278
266
  Object.setPrototypeOf(this, InternalServerException.prototype);
279
267
  }
280
- }
268
+ };
281
269
  const UpdateLoggingConfigurationState = {
282
270
  ACTIVE: "ACTIVE",
283
271
  };
284
- const CreateChatTokenRequestFilterSensitiveLog = (obj) => ({
285
- ...obj,
286
- ...(obj.userId && { userId: smithyClient.SENSITIVE_STRING }),
287
- ...(obj.attributes && { attributes: smithyClient.SENSITIVE_STRING }),
288
- });
289
- const CreateChatTokenResponseFilterSensitiveLog = (obj) => ({
290
- ...obj,
291
- ...(obj.token && { token: smithyClient.SENSITIVE_STRING }),
292
- });
293
- const DisconnectUserRequestFilterSensitiveLog = (obj) => ({
294
- ...obj,
295
- ...(obj.userId && { userId: smithyClient.SENSITIVE_STRING }),
296
- });
297
272
 
298
- const se_CreateChatTokenCommand = async (input, context) => {
299
- const b = core.requestBuilder(input, context);
300
- const headers = {
301
- "content-type": "application/json",
302
- };
303
- b.bp("/CreateChatToken");
304
- let body;
305
- body = JSON.stringify(smithyClient.take(input, {
306
- attributes: (_) => smithyClient._json(_),
307
- capabilities: (_) => smithyClient._json(_),
308
- roomIdentifier: [],
309
- sessionDurationInMinutes: [],
310
- userId: [],
311
- }));
312
- b.m("POST").h(headers).b(body);
313
- return b.build();
314
- };
315
- const se_CreateLoggingConfigurationCommand = async (input, context) => {
316
- const b = core.requestBuilder(input, context);
317
- const headers = {
318
- "content-type": "application/json",
319
- };
320
- b.bp("/CreateLoggingConfiguration");
321
- let body;
322
- body = JSON.stringify(smithyClient.take(input, {
323
- destinationConfiguration: (_) => smithyClient._json(_),
324
- name: [],
325
- tags: (_) => smithyClient._json(_),
326
- }));
327
- b.m("POST").h(headers).b(body);
328
- return b.build();
329
- };
330
- const se_CreateRoomCommand = async (input, context) => {
331
- const b = core.requestBuilder(input, context);
332
- const headers = {
333
- "content-type": "application/json",
334
- };
335
- b.bp("/CreateRoom");
336
- let body;
337
- body = JSON.stringify(smithyClient.take(input, {
338
- loggingConfigurationIdentifiers: (_) => smithyClient._json(_),
339
- maximumMessageLength: [],
340
- maximumMessageRatePerSecond: [],
341
- messageReviewHandler: (_) => smithyClient._json(_),
342
- name: [],
343
- tags: (_) => smithyClient._json(_),
344
- }));
345
- b.m("POST").h(headers).b(body);
346
- return b.build();
347
- };
348
- const se_DeleteLoggingConfigurationCommand = async (input, context) => {
349
- const b = core.requestBuilder(input, context);
350
- const headers = {
351
- "content-type": "application/json",
352
- };
353
- b.bp("/DeleteLoggingConfiguration");
354
- let body;
355
- body = JSON.stringify(smithyClient.take(input, {
356
- identifier: [],
357
- }));
358
- b.m("POST").h(headers).b(body);
359
- return b.build();
360
- };
361
- const se_DeleteMessageCommand = async (input, context) => {
362
- const b = core.requestBuilder(input, context);
363
- const headers = {
364
- "content-type": "application/json",
365
- };
366
- b.bp("/DeleteMessage");
367
- let body;
368
- body = JSON.stringify(smithyClient.take(input, {
369
- id: [],
370
- reason: [],
371
- roomIdentifier: [],
372
- }));
373
- b.m("POST").h(headers).b(body);
374
- return b.build();
375
- };
376
- const se_DeleteRoomCommand = async (input, context) => {
377
- const b = core.requestBuilder(input, context);
378
- const headers = {
379
- "content-type": "application/json",
380
- };
381
- b.bp("/DeleteRoom");
382
- let body;
383
- body = JSON.stringify(smithyClient.take(input, {
384
- identifier: [],
385
- }));
386
- b.m("POST").h(headers).b(body);
387
- return b.build();
388
- };
389
- const se_DisconnectUserCommand = async (input, context) => {
390
- const b = core.requestBuilder(input, context);
391
- const headers = {
392
- "content-type": "application/json",
393
- };
394
- b.bp("/DisconnectUser");
395
- let body;
396
- body = JSON.stringify(smithyClient.take(input, {
397
- reason: [],
398
- roomIdentifier: [],
399
- userId: [],
400
- }));
401
- b.m("POST").h(headers).b(body);
402
- return b.build();
403
- };
404
- const se_GetLoggingConfigurationCommand = async (input, context) => {
405
- const b = core.requestBuilder(input, context);
406
- const headers = {
407
- "content-type": "application/json",
408
- };
409
- b.bp("/GetLoggingConfiguration");
410
- let body;
411
- body = JSON.stringify(smithyClient.take(input, {
412
- identifier: [],
413
- }));
414
- b.m("POST").h(headers).b(body);
415
- return b.build();
416
- };
417
- const se_GetRoomCommand = async (input, context) => {
418
- const b = core.requestBuilder(input, context);
419
- const headers = {
420
- "content-type": "application/json",
421
- };
422
- b.bp("/GetRoom");
423
- let body;
424
- body = JSON.stringify(smithyClient.take(input, {
425
- identifier: [],
426
- }));
427
- b.m("POST").h(headers).b(body);
428
- return b.build();
429
- };
430
- const se_ListLoggingConfigurationsCommand = async (input, context) => {
431
- const b = core.requestBuilder(input, context);
432
- const headers = {
433
- "content-type": "application/json",
434
- };
435
- b.bp("/ListLoggingConfigurations");
436
- let body;
437
- body = JSON.stringify(smithyClient.take(input, {
438
- maxResults: [],
439
- nextToken: [],
440
- }));
441
- b.m("POST").h(headers).b(body);
442
- return b.build();
443
- };
444
- const se_ListRoomsCommand = async (input, context) => {
445
- const b = core.requestBuilder(input, context);
446
- const headers = {
447
- "content-type": "application/json",
448
- };
449
- b.bp("/ListRooms");
450
- let body;
451
- body = JSON.stringify(smithyClient.take(input, {
452
- loggingConfigurationIdentifier: [],
453
- maxResults: [],
454
- messageReviewHandlerUri: [],
455
- name: [],
456
- nextToken: [],
457
- }));
458
- b.m("POST").h(headers).b(body);
459
- return b.build();
460
- };
461
- const se_ListTagsForResourceCommand = async (input, context) => {
462
- const b = core.requestBuilder(input, context);
463
- const headers = {};
464
- b.bp("/tags/{resourceArn}");
465
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
466
- let body;
467
- b.m("GET").h(headers).b(body);
468
- return b.build();
469
- };
470
- const se_SendEventCommand = async (input, context) => {
471
- const b = core.requestBuilder(input, context);
472
- const headers = {
473
- "content-type": "application/json",
474
- };
475
- b.bp("/SendEvent");
476
- let body;
477
- body = JSON.stringify(smithyClient.take(input, {
478
- attributes: (_) => smithyClient._json(_),
479
- eventName: [],
480
- roomIdentifier: [],
481
- }));
482
- b.m("POST").h(headers).b(body);
483
- return b.build();
484
- };
485
- const se_TagResourceCommand = async (input, context) => {
486
- const b = core.requestBuilder(input, context);
487
- const headers = {
488
- "content-type": "application/json",
489
- };
490
- b.bp("/tags/{resourceArn}");
491
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
492
- let body;
493
- body = JSON.stringify(smithyClient.take(input, {
494
- tags: (_) => smithyClient._json(_),
495
- }));
496
- b.m("POST").h(headers).b(body);
497
- return b.build();
498
- };
499
- const se_UntagResourceCommand = async (input, context) => {
500
- const b = core.requestBuilder(input, context);
501
- const headers = {};
502
- b.bp("/tags/{resourceArn}");
503
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
504
- const query = smithyClient.map({
505
- [_tK]: [smithyClient.expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
506
- });
507
- let body;
508
- b.m("DELETE").h(headers).q(query).b(body);
509
- return b.build();
510
- };
511
- const se_UpdateLoggingConfigurationCommand = async (input, context) => {
512
- const b = core.requestBuilder(input, context);
513
- const headers = {
514
- "content-type": "application/json",
515
- };
516
- b.bp("/UpdateLoggingConfiguration");
517
- let body;
518
- body = JSON.stringify(smithyClient.take(input, {
519
- destinationConfiguration: (_) => smithyClient._json(_),
520
- identifier: [],
521
- name: [],
522
- }));
523
- b.m("POST").h(headers).b(body);
524
- return b.build();
525
- };
526
- const se_UpdateRoomCommand = async (input, context) => {
527
- const b = core.requestBuilder(input, context);
528
- const headers = {
529
- "content-type": "application/json",
530
- };
531
- b.bp("/UpdateRoom");
532
- let body;
533
- body = JSON.stringify(smithyClient.take(input, {
534
- identifier: [],
535
- loggingConfigurationIdentifiers: (_) => smithyClient._json(_),
536
- maximumMessageLength: [],
537
- maximumMessageRatePerSecond: [],
538
- messageReviewHandler: (_) => smithyClient._json(_),
539
- name: [],
540
- }));
541
- b.m("POST").h(headers).b(body);
542
- return b.build();
543
- };
544
- const de_CreateChatTokenCommand = async (output, context) => {
545
- if (output.statusCode !== 200 && output.statusCode >= 300) {
546
- return de_CommandError(output, context);
547
- }
548
- const contents = smithyClient.map({
549
- $metadata: deserializeMetadata(output),
550
- });
551
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
552
- const doc = smithyClient.take(data, {
553
- sessionExpirationTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
554
- token: smithyClient.expectString,
555
- tokenExpirationTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
556
- });
557
- Object.assign(contents, doc);
558
- return contents;
559
- };
560
- const de_CreateLoggingConfigurationCommand = async (output, context) => {
561
- if (output.statusCode !== 200 && output.statusCode >= 300) {
562
- return de_CommandError(output, context);
563
- }
564
- const contents = smithyClient.map({
565
- $metadata: deserializeMetadata(output),
566
- });
567
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
568
- const doc = smithyClient.take(data, {
569
- arn: smithyClient.expectString,
570
- createTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
571
- destinationConfiguration: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
572
- id: smithyClient.expectString,
573
- name: smithyClient.expectString,
574
- state: smithyClient.expectString,
575
- tags: smithyClient._json,
576
- updateTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
577
- });
578
- Object.assign(contents, doc);
579
- return contents;
580
- };
581
- const de_CreateRoomCommand = async (output, context) => {
582
- if (output.statusCode !== 200 && output.statusCode >= 300) {
583
- return de_CommandError(output, context);
584
- }
585
- const contents = smithyClient.map({
586
- $metadata: deserializeMetadata(output),
587
- });
588
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
589
- const doc = smithyClient.take(data, {
590
- arn: smithyClient.expectString,
591
- createTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
592
- id: smithyClient.expectString,
593
- loggingConfigurationIdentifiers: smithyClient._json,
594
- maximumMessageLength: smithyClient.expectInt32,
595
- maximumMessageRatePerSecond: smithyClient.expectInt32,
596
- messageReviewHandler: smithyClient._json,
597
- name: smithyClient.expectString,
598
- tags: smithyClient._json,
599
- updateTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
600
- });
601
- Object.assign(contents, doc);
602
- return contents;
603
- };
604
- const de_DeleteLoggingConfigurationCommand = async (output, context) => {
605
- if (output.statusCode !== 204 && output.statusCode >= 300) {
606
- return de_CommandError(output, context);
607
- }
608
- const contents = smithyClient.map({
609
- $metadata: deserializeMetadata(output),
610
- });
611
- await smithyClient.collectBody(output.body, context);
612
- return contents;
613
- };
614
- const de_DeleteMessageCommand = async (output, context) => {
615
- if (output.statusCode !== 200 && output.statusCode >= 300) {
616
- return de_CommandError(output, context);
617
- }
618
- const contents = smithyClient.map({
619
- $metadata: deserializeMetadata(output),
620
- });
621
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
622
- const doc = smithyClient.take(data, {
623
- id: smithyClient.expectString,
624
- });
625
- Object.assign(contents, doc);
626
- return contents;
627
- };
628
- const de_DeleteRoomCommand = async (output, context) => {
629
- if (output.statusCode !== 204 && output.statusCode >= 300) {
630
- return de_CommandError(output, context);
631
- }
632
- const contents = smithyClient.map({
633
- $metadata: deserializeMetadata(output),
634
- });
635
- await smithyClient.collectBody(output.body, context);
636
- return contents;
637
- };
638
- const de_DisconnectUserCommand = async (output, context) => {
639
- if (output.statusCode !== 200 && output.statusCode >= 300) {
640
- return de_CommandError(output, context);
641
- }
642
- const contents = smithyClient.map({
643
- $metadata: deserializeMetadata(output),
644
- });
645
- await smithyClient.collectBody(output.body, context);
646
- return contents;
647
- };
648
- const de_GetLoggingConfigurationCommand = async (output, context) => {
649
- if (output.statusCode !== 200 && output.statusCode >= 300) {
650
- return de_CommandError(output, context);
651
- }
652
- const contents = smithyClient.map({
653
- $metadata: deserializeMetadata(output),
654
- });
655
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
656
- const doc = smithyClient.take(data, {
657
- arn: smithyClient.expectString,
658
- createTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
659
- destinationConfiguration: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
660
- id: smithyClient.expectString,
661
- name: smithyClient.expectString,
662
- state: smithyClient.expectString,
663
- tags: smithyClient._json,
664
- updateTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
665
- });
666
- Object.assign(contents, doc);
667
- return contents;
668
- };
669
- const de_GetRoomCommand = async (output, context) => {
670
- if (output.statusCode !== 200 && output.statusCode >= 300) {
671
- return de_CommandError(output, context);
672
- }
673
- const contents = smithyClient.map({
674
- $metadata: deserializeMetadata(output),
675
- });
676
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
677
- const doc = smithyClient.take(data, {
678
- arn: smithyClient.expectString,
679
- createTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
680
- id: smithyClient.expectString,
681
- loggingConfigurationIdentifiers: smithyClient._json,
682
- maximumMessageLength: smithyClient.expectInt32,
683
- maximumMessageRatePerSecond: smithyClient.expectInt32,
684
- messageReviewHandler: smithyClient._json,
685
- name: smithyClient.expectString,
686
- tags: smithyClient._json,
687
- updateTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
688
- });
689
- Object.assign(contents, doc);
690
- return contents;
691
- };
692
- const de_ListLoggingConfigurationsCommand = async (output, context) => {
693
- if (output.statusCode !== 200 && output.statusCode >= 300) {
694
- return de_CommandError(output, context);
695
- }
696
- const contents = smithyClient.map({
697
- $metadata: deserializeMetadata(output),
698
- });
699
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
700
- const doc = smithyClient.take(data, {
701
- loggingConfigurations: (_) => de_LoggingConfigurationList(_),
702
- nextToken: smithyClient.expectString,
703
- });
704
- Object.assign(contents, doc);
705
- return contents;
706
- };
707
- const de_ListRoomsCommand = async (output, context) => {
708
- if (output.statusCode !== 200 && output.statusCode >= 300) {
709
- return de_CommandError(output, context);
710
- }
711
- const contents = smithyClient.map({
712
- $metadata: deserializeMetadata(output),
713
- });
714
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
715
- const doc = smithyClient.take(data, {
716
- nextToken: smithyClient.expectString,
717
- rooms: (_) => de_RoomList(_),
718
- });
719
- Object.assign(contents, doc);
720
- return contents;
721
- };
722
- const de_ListTagsForResourceCommand = async (output, context) => {
723
- if (output.statusCode !== 200 && output.statusCode >= 300) {
724
- return de_CommandError(output, context);
725
- }
726
- const contents = smithyClient.map({
727
- $metadata: deserializeMetadata(output),
728
- });
729
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
730
- const doc = smithyClient.take(data, {
731
- tags: smithyClient._json,
732
- });
733
- Object.assign(contents, doc);
734
- return contents;
735
- };
736
- const de_SendEventCommand = async (output, context) => {
737
- if (output.statusCode !== 200 && output.statusCode >= 300) {
738
- return de_CommandError(output, context);
739
- }
740
- const contents = smithyClient.map({
741
- $metadata: deserializeMetadata(output),
742
- });
743
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
744
- const doc = smithyClient.take(data, {
745
- id: smithyClient.expectString,
746
- });
747
- Object.assign(contents, doc);
748
- return contents;
749
- };
750
- const de_TagResourceCommand = async (output, context) => {
751
- if (output.statusCode !== 200 && output.statusCode >= 300) {
752
- return de_CommandError(output, context);
753
- }
754
- const contents = smithyClient.map({
755
- $metadata: deserializeMetadata(output),
756
- });
757
- await smithyClient.collectBody(output.body, context);
758
- return contents;
759
- };
760
- const de_UntagResourceCommand = async (output, context) => {
761
- if (output.statusCode !== 200 && output.statusCode >= 300) {
762
- return de_CommandError(output, context);
763
- }
764
- const contents = smithyClient.map({
765
- $metadata: deserializeMetadata(output),
766
- });
767
- await smithyClient.collectBody(output.body, context);
768
- return contents;
769
- };
770
- const de_UpdateLoggingConfigurationCommand = async (output, context) => {
771
- if (output.statusCode !== 200 && output.statusCode >= 300) {
772
- return de_CommandError(output, context);
773
- }
774
- const contents = smithyClient.map({
775
- $metadata: deserializeMetadata(output),
776
- });
777
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
778
- const doc = smithyClient.take(data, {
779
- arn: smithyClient.expectString,
780
- createTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
781
- destinationConfiguration: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
782
- id: smithyClient.expectString,
783
- name: smithyClient.expectString,
784
- state: smithyClient.expectString,
785
- tags: smithyClient._json,
786
- updateTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
787
- });
788
- Object.assign(contents, doc);
789
- return contents;
790
- };
791
- const de_UpdateRoomCommand = async (output, context) => {
792
- if (output.statusCode !== 200 && output.statusCode >= 300) {
793
- return de_CommandError(output, context);
794
- }
795
- const contents = smithyClient.map({
796
- $metadata: deserializeMetadata(output),
797
- });
798
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
799
- const doc = smithyClient.take(data, {
800
- arn: smithyClient.expectString,
801
- createTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
802
- id: smithyClient.expectString,
803
- loggingConfigurationIdentifiers: smithyClient._json,
804
- maximumMessageLength: smithyClient.expectInt32,
805
- maximumMessageRatePerSecond: smithyClient.expectInt32,
806
- messageReviewHandler: smithyClient._json,
807
- name: smithyClient.expectString,
808
- tags: smithyClient._json,
809
- updateTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
810
- });
811
- Object.assign(contents, doc);
812
- return contents;
813
- };
814
- const de_CommandError = async (output, context) => {
815
- const parsedOutput = {
816
- ...output,
817
- body: await core$1.parseJsonErrorBody(output.body, context),
818
- };
819
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
820
- switch (errorCode) {
821
- case "AccessDeniedException":
822
- case "com.amazonaws.ivschat#AccessDeniedException":
823
- throw await de_AccessDeniedExceptionRes(parsedOutput);
824
- case "PendingVerification":
825
- case "com.amazonaws.ivschat#PendingVerification":
826
- throw await de_PendingVerificationRes(parsedOutput);
827
- case "ResourceNotFoundException":
828
- case "com.amazonaws.ivschat#ResourceNotFoundException":
829
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
830
- case "ValidationException":
831
- case "com.amazonaws.ivschat#ValidationException":
832
- throw await de_ValidationExceptionRes(parsedOutput);
833
- case "ConflictException":
834
- case "com.amazonaws.ivschat#ConflictException":
835
- throw await de_ConflictExceptionRes(parsedOutput);
836
- case "ServiceQuotaExceededException":
837
- case "com.amazonaws.ivschat#ServiceQuotaExceededException":
838
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
839
- case "ThrottlingException":
840
- case "com.amazonaws.ivschat#ThrottlingException":
841
- throw await de_ThrottlingExceptionRes(parsedOutput);
842
- case "InternalServerException":
843
- case "com.amazonaws.ivschat#InternalServerException":
844
- throw await de_InternalServerExceptionRes(parsedOutput);
845
- default:
846
- const parsedBody = parsedOutput.body;
847
- return throwDefaultError({
848
- output,
849
- parsedBody,
850
- errorCode,
851
- });
852
- }
853
- };
854
- const throwDefaultError = smithyClient.withBaseException(IvschatServiceException);
855
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
856
- const contents = smithyClient.map({});
857
- const data = parsedOutput.body;
858
- const doc = smithyClient.take(data, {
859
- message: smithyClient.expectString,
860
- });
861
- Object.assign(contents, doc);
862
- const exception = new AccessDeniedException({
863
- $metadata: deserializeMetadata(parsedOutput),
864
- ...contents,
865
- });
866
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
867
- };
868
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
869
- const contents = smithyClient.map({});
870
- const data = parsedOutput.body;
871
- const doc = smithyClient.take(data, {
872
- message: smithyClient.expectString,
873
- resourceId: smithyClient.expectString,
874
- resourceType: smithyClient.expectString,
875
- });
876
- Object.assign(contents, doc);
877
- const exception = new ConflictException({
878
- $metadata: deserializeMetadata(parsedOutput),
879
- ...contents,
880
- });
881
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
882
- };
883
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
884
- const contents = smithyClient.map({});
885
- const data = parsedOutput.body;
886
- const doc = smithyClient.take(data, {
887
- message: smithyClient.expectString,
888
- });
889
- Object.assign(contents, doc);
890
- const exception = new InternalServerException({
891
- $metadata: deserializeMetadata(parsedOutput),
892
- ...contents,
893
- });
894
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
895
- };
896
- const de_PendingVerificationRes = async (parsedOutput, context) => {
897
- const contents = smithyClient.map({});
898
- const data = parsedOutput.body;
899
- const doc = smithyClient.take(data, {
900
- message: smithyClient.expectString,
901
- });
902
- Object.assign(contents, doc);
903
- const exception = new PendingVerification({
904
- $metadata: deserializeMetadata(parsedOutput),
905
- ...contents,
906
- });
907
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
908
- };
909
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
910
- const contents = smithyClient.map({});
911
- const data = parsedOutput.body;
912
- const doc = smithyClient.take(data, {
913
- message: smithyClient.expectString,
914
- resourceId: smithyClient.expectString,
915
- resourceType: smithyClient.expectString,
916
- });
917
- Object.assign(contents, doc);
918
- const exception = new ResourceNotFoundException({
919
- $metadata: deserializeMetadata(parsedOutput),
920
- ...contents,
921
- });
922
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
923
- };
924
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
925
- const contents = smithyClient.map({});
926
- const data = parsedOutput.body;
927
- const doc = smithyClient.take(data, {
928
- limit: smithyClient.expectInt32,
929
- message: smithyClient.expectString,
930
- resourceId: smithyClient.expectString,
931
- resourceType: smithyClient.expectString,
932
- });
933
- Object.assign(contents, doc);
934
- const exception = new ServiceQuotaExceededException({
935
- $metadata: deserializeMetadata(parsedOutput),
936
- ...contents,
937
- });
938
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
939
- };
940
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
941
- const contents = smithyClient.map({});
942
- const data = parsedOutput.body;
943
- const doc = smithyClient.take(data, {
944
- limit: smithyClient.expectInt32,
945
- message: smithyClient.expectString,
946
- resourceId: smithyClient.expectString,
947
- resourceType: smithyClient.expectString,
948
- });
949
- Object.assign(contents, doc);
950
- const exception = new ThrottlingException({
951
- $metadata: deserializeMetadata(parsedOutput),
952
- ...contents,
953
- });
954
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
955
- };
956
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
957
- const contents = smithyClient.map({});
958
- const data = parsedOutput.body;
959
- const doc = smithyClient.take(data, {
960
- fieldList: smithyClient._json,
961
- message: smithyClient.expectString,
962
- reason: smithyClient.expectString,
963
- });
964
- Object.assign(contents, doc);
965
- const exception = new ValidationException({
966
- $metadata: deserializeMetadata(parsedOutput),
967
- ...contents,
968
- });
969
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
970
- };
971
- const de_LoggingConfigurationList = (output, context) => {
972
- const retVal = (output || [])
973
- .filter((e) => e != null)
974
- .map((entry) => {
975
- return de_LoggingConfigurationSummary(entry);
976
- });
977
- return retVal;
978
- };
979
- const de_LoggingConfigurationSummary = (output, context) => {
980
- return smithyClient.take(output, {
981
- arn: smithyClient.expectString,
982
- createTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
983
- destinationConfiguration: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
984
- id: smithyClient.expectString,
985
- name: smithyClient.expectString,
986
- state: smithyClient.expectString,
987
- tags: smithyClient._json,
988
- updateTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
989
- });
990
- };
991
- const de_RoomList = (output, context) => {
992
- const retVal = (output || [])
993
- .filter((e) => e != null)
994
- .map((entry) => {
995
- return de_RoomSummary(entry);
996
- });
997
- return retVal;
998
- };
999
- const de_RoomSummary = (output, context) => {
1000
- return smithyClient.take(output, {
1001
- arn: smithyClient.expectString,
1002
- createTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1003
- id: smithyClient.expectString,
1004
- loggingConfigurationIdentifiers: smithyClient._json,
1005
- messageReviewHandler: smithyClient._json,
1006
- name: smithyClient.expectString,
1007
- tags: smithyClient._json,
1008
- updateTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1009
- });
1010
- };
1011
- const deserializeMetadata = (output) => ({
1012
- httpStatusCode: output.statusCode,
1013
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1014
- extendedRequestId: output.headers["x-amz-id-2"],
1015
- cfId: output.headers["x-amz-cf-id"],
1016
- });
273
+ const _ADE = "AccessDeniedException";
274
+ const _CCT = "CreateChatToken";
275
+ const _CCTR = "CreateChatTokenRequest";
276
+ const _CCTRr = "CreateChatTokenResponse";
277
+ const _CE = "ConflictException";
278
+ const _CLC = "CreateLoggingConfiguration";
279
+ const _CLCR = "CreateLoggingConfigurationRequest";
280
+ const _CLCRr = "CreateLoggingConfigurationResponse";
281
+ const _CR = "CreateRoom";
282
+ const _CRR = "CreateRoomRequest";
283
+ const _CRRr = "CreateRoomResponse";
284
+ const _CT = "ChatToken";
285
+ const _CTA = "ChatTokenAttributes";
286
+ const _CWLDC = "CloudWatchLogsDestinationConfiguration";
287
+ const _DC = "DestinationConfiguration";
288
+ const _DLC = "DeleteLoggingConfiguration";
289
+ const _DLCR = "DeleteLoggingConfigurationRequest";
290
+ const _DM = "DeleteMessage";
291
+ const _DMR = "DeleteMessageRequest";
292
+ const _DMRe = "DeleteMessageResponse";
293
+ const _DR = "DeleteRoom";
294
+ const _DRR = "DeleteRoomRequest";
295
+ const _DU = "DisconnectUser";
296
+ const _DUR = "DisconnectUserRequest";
297
+ const _DURi = "DisconnectUserResponse";
298
+ const _FDC = "FirehoseDestinationConfiguration";
299
+ const _GLC = "GetLoggingConfiguration";
300
+ const _GLCR = "GetLoggingConfigurationRequest";
301
+ const _GLCRe = "GetLoggingConfigurationResponse";
302
+ const _GR = "GetRoom";
303
+ const _GRR = "GetRoomRequest";
304
+ const _GRRe = "GetRoomResponse";
305
+ const _ISE = "InternalServerException";
306
+ const _LCL = "LoggingConfigurationList";
307
+ const _LCS = "LoggingConfigurationSummary";
308
+ const _LLC = "ListLoggingConfigurations";
309
+ const _LLCR = "ListLoggingConfigurationsRequest";
310
+ const _LLCRi = "ListLoggingConfigurationsResponse";
311
+ const _LR = "ListRooms";
312
+ const _LRR = "ListRoomsRequest";
313
+ const _LRRi = "ListRoomsResponse";
314
+ const _LTFR = "ListTagsForResource";
315
+ const _LTFRR = "ListTagsForResourceRequest";
316
+ const _LTFRRi = "ListTagsForResourceResponse";
317
+ const _MRH = "MessageReviewHandler";
318
+ const _PV = "PendingVerification";
319
+ const _RL = "RoomList";
320
+ const _RNFE = "ResourceNotFoundException";
321
+ const _RS = "RoomSummary";
322
+ const _SDC = "S3DestinationConfiguration";
323
+ const _SE = "SendEvent";
324
+ const _SER = "SendEventRequest";
325
+ const _SERe = "SendEventResponse";
326
+ const _SQEE = "ServiceQuotaExceededException";
327
+ const _TE = "ThrottlingException";
328
+ const _TR = "TagResource";
329
+ const _TRR = "TagResourceRequest";
330
+ const _TRRa = "TagResourceResponse";
331
+ const _UID = "UserID";
332
+ const _ULC = "UpdateLoggingConfiguration";
333
+ const _ULCR = "UpdateLoggingConfigurationRequest";
334
+ const _ULCRp = "UpdateLoggingConfigurationResponse";
335
+ const _UR = "UntagResource";
336
+ const _URR = "UntagResourceRequest";
337
+ const _URRn = "UntagResourceResponse";
338
+ const _URRp = "UpdateRoomRequest";
339
+ const _URRpd = "UpdateRoomResponse";
340
+ const _URp = "UpdateRoom";
341
+ const _VE = "ValidationException";
342
+ const _VEF = "ValidationExceptionField";
343
+ const _VEFL = "ValidationExceptionFieldList";
344
+ const _a = "attributes";
345
+ const _ar = "arn";
346
+ const _bN = "bucketName";
347
+ const _c = "client";
348
+ const _cT = "createTime";
349
+ const _cWL = "cloudWatchLogs";
350
+ const _ca = "capabilities";
351
+ const _dC = "destinationConfiguration";
352
+ const _dSN = "deliveryStreamName";
353
+ const _e = "error";
354
+ const _eN = "eventName";
355
+ const _f = "firehose";
356
+ const _fL = "fieldList";
357
+ const _fR = "fallbackResult";
358
+ const _h = "http";
359
+ const _hE = "httpError";
360
+ const _hQ = "httpQuery";
361
+ const _i = "id";
362
+ const _id = "identifier";
363
+ const _l = "limit";
364
+ const _lC = "loggingConfigurations";
365
+ const _lCI = "loggingConfigurationIdentifiers";
366
+ const _lCIo = "loggingConfigurationIdentifier";
367
+ const _lGN = "logGroupName";
368
+ const _m = "message";
369
+ const _mML = "maximumMessageLength";
370
+ const _mMRPS = "maximumMessageRatePerSecond";
371
+ const _mR = "maxResults";
372
+ const _mRH = "messageReviewHandler";
373
+ const _mRHU = "messageReviewHandlerUri";
374
+ const _n = "name";
375
+ const _nT = "nextToken";
376
+ const _r = "reason";
377
+ const _rA = "resourceArn";
378
+ const _rI = "resourceId";
379
+ const _rIo = "roomIdentifier";
380
+ const _rT = "resourceType";
381
+ const _ro = "rooms";
382
+ const _s = "state";
383
+ const _sDIM = "sessionDurationInMinutes";
384
+ const _sET = "sessionExpirationTime";
385
+ const _s_ = "s3";
386
+ const _se = "server";
387
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.ivschat";
388
+ const _t = "token";
389
+ const _tET = "tokenExpirationTime";
1017
390
  const _tK = "tagKeys";
391
+ const _ta = "tags";
392
+ const _u = "uri";
393
+ const _uI = "userId";
394
+ const _uT = "updateTime";
395
+ const n0 = "com.amazonaws.ivschat";
396
+ var ChatToken = [0, n0, _CT, 8, 0];
397
+ var UserID = [0, n0, _UID, 8, 0];
398
+ var AccessDeniedException = [
399
+ -3,
400
+ n0,
401
+ _ADE,
402
+ {
403
+ [_e]: _c,
404
+ [_hE]: 403,
405
+ },
406
+ [_m],
407
+ [0],
408
+ ];
409
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
410
+ var CloudWatchLogsDestinationConfiguration = [3, n0, _CWLDC, 0, [_lGN], [0]];
411
+ var ConflictException = [
412
+ -3,
413
+ n0,
414
+ _CE,
415
+ {
416
+ [_e]: _c,
417
+ [_hE]: 409,
418
+ },
419
+ [_m, _rI, _rT],
420
+ [0, 0, 0],
421
+ ];
422
+ schema.TypeRegistry.for(n0).registerError(ConflictException, ConflictException$1);
423
+ var CreateChatTokenRequest = [
424
+ 3,
425
+ n0,
426
+ _CCTR,
427
+ 0,
428
+ [_rIo, _uI, _ca, _sDIM, _a],
429
+ [0, [() => UserID, 0], 64 | 0, 1, [() => ChatTokenAttributes, 0]],
430
+ ];
431
+ var CreateChatTokenResponse = [
432
+ 3,
433
+ n0,
434
+ _CCTRr,
435
+ 0,
436
+ [_t, _tET, _sET],
437
+ [[() => ChatToken, 0], 5, 5],
438
+ ];
439
+ var CreateLoggingConfigurationRequest = [
440
+ 3,
441
+ n0,
442
+ _CLCR,
443
+ 0,
444
+ [_n, _dC, _ta],
445
+ [0, () => DestinationConfiguration, 128 | 0],
446
+ ];
447
+ var CreateLoggingConfigurationResponse = [
448
+ 3,
449
+ n0,
450
+ _CLCRr,
451
+ 0,
452
+ [_ar, _i, _cT, _uT, _n, _dC, _s, _ta],
453
+ [0, 0, 5, 5, 0, () => DestinationConfiguration, 0, 128 | 0],
454
+ ];
455
+ var CreateRoomRequest = [
456
+ 3,
457
+ n0,
458
+ _CRR,
459
+ 0,
460
+ [_n, _mMRPS, _mML, _mRH, _ta, _lCI],
461
+ [0, 1, 1, () => MessageReviewHandler, 128 | 0, 64 | 0],
462
+ ];
463
+ var CreateRoomResponse = [
464
+ 3,
465
+ n0,
466
+ _CRRr,
467
+ 0,
468
+ [_ar, _i, _n, _cT, _uT, _mMRPS, _mML, _mRH, _ta, _lCI],
469
+ [0, 0, 0, 5, 5, 1, 1, () => MessageReviewHandler, 128 | 0, 64 | 0],
470
+ ];
471
+ var DeleteLoggingConfigurationRequest = [3, n0, _DLCR, 0, [_id], [0]];
472
+ var DeleteMessageRequest = [3, n0, _DMR, 0, [_rIo, _i, _r], [0, 0, 0]];
473
+ var DeleteMessageResponse = [3, n0, _DMRe, 0, [_i], [0]];
474
+ var DeleteRoomRequest = [3, n0, _DRR, 0, [_id], [0]];
475
+ var DisconnectUserRequest = [3, n0, _DUR, 0, [_rIo, _uI, _r], [0, [() => UserID, 0], 0]];
476
+ var DisconnectUserResponse = [3, n0, _DURi, 0, [], []];
477
+ var FirehoseDestinationConfiguration = [3, n0, _FDC, 0, [_dSN], [0]];
478
+ var GetLoggingConfigurationRequest = [3, n0, _GLCR, 0, [_id], [0]];
479
+ var GetLoggingConfigurationResponse = [
480
+ 3,
481
+ n0,
482
+ _GLCRe,
483
+ 0,
484
+ [_ar, _i, _cT, _uT, _n, _dC, _s, _ta],
485
+ [0, 0, 5, 5, 0, () => DestinationConfiguration, 0, 128 | 0],
486
+ ];
487
+ var GetRoomRequest = [3, n0, _GRR, 0, [_id], [0]];
488
+ var GetRoomResponse = [
489
+ 3,
490
+ n0,
491
+ _GRRe,
492
+ 0,
493
+ [_ar, _i, _n, _cT, _uT, _mMRPS, _mML, _mRH, _ta, _lCI],
494
+ [0, 0, 0, 5, 5, 1, 1, () => MessageReviewHandler, 128 | 0, 64 | 0],
495
+ ];
496
+ var InternalServerException = [
497
+ -3,
498
+ n0,
499
+ _ISE,
500
+ {
501
+ [_e]: _se,
502
+ [_hE]: 500,
503
+ },
504
+ [_m],
505
+ [0],
506
+ ];
507
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
508
+ var ListLoggingConfigurationsRequest = [3, n0, _LLCR, 0, [_nT, _mR], [0, 1]];
509
+ var ListLoggingConfigurationsResponse = [
510
+ 3,
511
+ n0,
512
+ _LLCRi,
513
+ 0,
514
+ [_lC, _nT],
515
+ [() => LoggingConfigurationList, 0],
516
+ ];
517
+ var ListRoomsRequest = [3, n0, _LRR, 0, [_n, _nT, _mR, _mRHU, _lCIo], [0, 0, 1, 0, 0]];
518
+ var ListRoomsResponse = [3, n0, _LRRi, 0, [_ro, _nT], [() => RoomList, 0]];
519
+ var ListTagsForResourceRequest = [3, n0, _LTFRR, 0, [_rA], [[0, 1]]];
520
+ var ListTagsForResourceResponse = [3, n0, _LTFRRi, 0, [_ta], [128 | 0]];
521
+ var LoggingConfigurationSummary = [
522
+ 3,
523
+ n0,
524
+ _LCS,
525
+ 0,
526
+ [_ar, _i, _cT, _uT, _n, _dC, _s, _ta],
527
+ [0, 0, 5, 5, 0, () => DestinationConfiguration, 0, 128 | 0],
528
+ ];
529
+ var MessageReviewHandler = [3, n0, _MRH, 0, [_u, _fR], [0, 0]];
530
+ var PendingVerification = [
531
+ -3,
532
+ n0,
533
+ _PV,
534
+ {
535
+ [_e]: _c,
536
+ [_hE]: 403,
537
+ },
538
+ [_m],
539
+ [0],
540
+ ];
541
+ schema.TypeRegistry.for(n0).registerError(PendingVerification, PendingVerification$1);
542
+ var ResourceNotFoundException = [
543
+ -3,
544
+ n0,
545
+ _RNFE,
546
+ {
547
+ [_e]: _c,
548
+ [_hE]: 404,
549
+ },
550
+ [_m, _rI, _rT],
551
+ [0, 0, 0],
552
+ ];
553
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
554
+ var RoomSummary = [
555
+ 3,
556
+ n0,
557
+ _RS,
558
+ 0,
559
+ [_ar, _i, _n, _mRH, _cT, _uT, _ta, _lCI],
560
+ [0, 0, 0, () => MessageReviewHandler, 5, 5, 128 | 0, 64 | 0],
561
+ ];
562
+ var S3DestinationConfiguration = [3, n0, _SDC, 0, [_bN], [0]];
563
+ var SendEventRequest = [3, n0, _SER, 0, [_rIo, _eN, _a], [0, 0, 128 | 0]];
564
+ var SendEventResponse = [3, n0, _SERe, 0, [_i], [0]];
565
+ var ServiceQuotaExceededException = [
566
+ -3,
567
+ n0,
568
+ _SQEE,
569
+ {
570
+ [_e]: _c,
571
+ [_hE]: 402,
572
+ },
573
+ [_m, _rI, _rT, _l],
574
+ [0, 0, 0, 1],
575
+ ];
576
+ schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
577
+ var TagResourceRequest = [3, n0, _TRR, 0, [_rA, _ta], [[0, 1], 128 | 0]];
578
+ var TagResourceResponse = [3, n0, _TRRa, 0, [], []];
579
+ var ThrottlingException = [
580
+ -3,
581
+ n0,
582
+ _TE,
583
+ {
584
+ [_e]: _c,
585
+ [_hE]: 429,
586
+ },
587
+ [_m, _rI, _rT, _l],
588
+ [0, 0, 0, 1],
589
+ ];
590
+ schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
591
+ var UntagResourceRequest = [
592
+ 3,
593
+ n0,
594
+ _URR,
595
+ 0,
596
+ [_rA, _tK],
597
+ [
598
+ [0, 1],
599
+ [
600
+ 64 | 0,
601
+ {
602
+ [_hQ]: _tK,
603
+ },
604
+ ],
605
+ ],
606
+ ];
607
+ var UntagResourceResponse = [3, n0, _URRn, 0, [], []];
608
+ var UpdateLoggingConfigurationRequest = [
609
+ 3,
610
+ n0,
611
+ _ULCR,
612
+ 0,
613
+ [_id, _n, _dC],
614
+ [0, 0, () => DestinationConfiguration],
615
+ ];
616
+ var UpdateLoggingConfigurationResponse = [
617
+ 3,
618
+ n0,
619
+ _ULCRp,
620
+ 0,
621
+ [_ar, _i, _cT, _uT, _n, _dC, _s, _ta],
622
+ [0, 0, 5, 5, 0, () => DestinationConfiguration, 0, 128 | 0],
623
+ ];
624
+ var UpdateRoomRequest = [
625
+ 3,
626
+ n0,
627
+ _URRp,
628
+ 0,
629
+ [_id, _n, _mMRPS, _mML, _mRH, _lCI],
630
+ [0, 0, 1, 1, () => MessageReviewHandler, 64 | 0],
631
+ ];
632
+ var UpdateRoomResponse = [
633
+ 3,
634
+ n0,
635
+ _URRpd,
636
+ 0,
637
+ [_ar, _i, _n, _cT, _uT, _mMRPS, _mML, _mRH, _ta, _lCI],
638
+ [0, 0, 0, 5, 5, 1, 1, () => MessageReviewHandler, 128 | 0, 64 | 0],
639
+ ];
640
+ var ValidationException = [
641
+ -3,
642
+ n0,
643
+ _VE,
644
+ {
645
+ [_e]: _c,
646
+ [_hE]: 400,
647
+ },
648
+ [_m, _r, _fL],
649
+ [0, 0, () => ValidationExceptionFieldList],
650
+ ];
651
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
652
+ var ValidationExceptionField = [3, n0, _VEF, 0, [_n, _m], [0, 0]];
653
+ var __Unit = "unit";
654
+ var IvschatServiceException = [-3, _sm, "IvschatServiceException", 0, [], []];
655
+ schema.TypeRegistry.for(_sm).registerError(IvschatServiceException, IvschatServiceException$1);
656
+ var LoggingConfigurationList = [1, n0, _LCL, 0, () => LoggingConfigurationSummary];
657
+ var RoomList = [1, n0, _RL, 0, () => RoomSummary];
658
+ var ValidationExceptionFieldList = [1, n0, _VEFL, 0, () => ValidationExceptionField];
659
+ var ChatTokenAttributes = [2, n0, _CTA, 8, 0, 0];
660
+ var DestinationConfiguration = [
661
+ 3,
662
+ n0,
663
+ _DC,
664
+ 0,
665
+ [_s_, _cWL, _f],
666
+ [
667
+ () => S3DestinationConfiguration,
668
+ () => CloudWatchLogsDestinationConfiguration,
669
+ () => FirehoseDestinationConfiguration,
670
+ ],
671
+ ];
672
+ var CreateChatToken = [
673
+ 9,
674
+ n0,
675
+ _CCT,
676
+ {
677
+ [_h]: ["POST", "/CreateChatToken", 200],
678
+ },
679
+ () => CreateChatTokenRequest,
680
+ () => CreateChatTokenResponse,
681
+ ];
682
+ var CreateLoggingConfiguration = [
683
+ 9,
684
+ n0,
685
+ _CLC,
686
+ {
687
+ [_h]: ["POST", "/CreateLoggingConfiguration", 200],
688
+ },
689
+ () => CreateLoggingConfigurationRequest,
690
+ () => CreateLoggingConfigurationResponse,
691
+ ];
692
+ var CreateRoom = [
693
+ 9,
694
+ n0,
695
+ _CR,
696
+ {
697
+ [_h]: ["POST", "/CreateRoom", 200],
698
+ },
699
+ () => CreateRoomRequest,
700
+ () => CreateRoomResponse,
701
+ ];
702
+ var DeleteLoggingConfiguration = [
703
+ 9,
704
+ n0,
705
+ _DLC,
706
+ {
707
+ [_h]: ["POST", "/DeleteLoggingConfiguration", 204],
708
+ },
709
+ () => DeleteLoggingConfigurationRequest,
710
+ () => __Unit,
711
+ ];
712
+ var DeleteMessage = [
713
+ 9,
714
+ n0,
715
+ _DM,
716
+ {
717
+ [_h]: ["POST", "/DeleteMessage", 200],
718
+ },
719
+ () => DeleteMessageRequest,
720
+ () => DeleteMessageResponse,
721
+ ];
722
+ var DeleteRoom = [
723
+ 9,
724
+ n0,
725
+ _DR,
726
+ {
727
+ [_h]: ["POST", "/DeleteRoom", 204],
728
+ },
729
+ () => DeleteRoomRequest,
730
+ () => __Unit,
731
+ ];
732
+ var DisconnectUser = [
733
+ 9,
734
+ n0,
735
+ _DU,
736
+ {
737
+ [_h]: ["POST", "/DisconnectUser", 200],
738
+ },
739
+ () => DisconnectUserRequest,
740
+ () => DisconnectUserResponse,
741
+ ];
742
+ var GetLoggingConfiguration = [
743
+ 9,
744
+ n0,
745
+ _GLC,
746
+ {
747
+ [_h]: ["POST", "/GetLoggingConfiguration", 200],
748
+ },
749
+ () => GetLoggingConfigurationRequest,
750
+ () => GetLoggingConfigurationResponse,
751
+ ];
752
+ var GetRoom = [
753
+ 9,
754
+ n0,
755
+ _GR,
756
+ {
757
+ [_h]: ["POST", "/GetRoom", 200],
758
+ },
759
+ () => GetRoomRequest,
760
+ () => GetRoomResponse,
761
+ ];
762
+ var ListLoggingConfigurations = [
763
+ 9,
764
+ n0,
765
+ _LLC,
766
+ {
767
+ [_h]: ["POST", "/ListLoggingConfigurations", 200],
768
+ },
769
+ () => ListLoggingConfigurationsRequest,
770
+ () => ListLoggingConfigurationsResponse,
771
+ ];
772
+ var ListRooms = [
773
+ 9,
774
+ n0,
775
+ _LR,
776
+ {
777
+ [_h]: ["POST", "/ListRooms", 200],
778
+ },
779
+ () => ListRoomsRequest,
780
+ () => ListRoomsResponse,
781
+ ];
782
+ var ListTagsForResource = [
783
+ 9,
784
+ n0,
785
+ _LTFR,
786
+ {
787
+ [_h]: ["GET", "/tags/{resourceArn}", 200],
788
+ },
789
+ () => ListTagsForResourceRequest,
790
+ () => ListTagsForResourceResponse,
791
+ ];
792
+ var SendEvent = [
793
+ 9,
794
+ n0,
795
+ _SE,
796
+ {
797
+ [_h]: ["POST", "/SendEvent", 200],
798
+ },
799
+ () => SendEventRequest,
800
+ () => SendEventResponse,
801
+ ];
802
+ var TagResource = [
803
+ 9,
804
+ n0,
805
+ _TR,
806
+ {
807
+ [_h]: ["POST", "/tags/{resourceArn}", 200],
808
+ },
809
+ () => TagResourceRequest,
810
+ () => TagResourceResponse,
811
+ ];
812
+ var UntagResource = [
813
+ 9,
814
+ n0,
815
+ _UR,
816
+ {
817
+ [_h]: ["DELETE", "/tags/{resourceArn}", 200],
818
+ },
819
+ () => UntagResourceRequest,
820
+ () => UntagResourceResponse,
821
+ ];
822
+ var UpdateLoggingConfiguration = [
823
+ 9,
824
+ n0,
825
+ _ULC,
826
+ {
827
+ [_h]: ["POST", "/UpdateLoggingConfiguration", 200],
828
+ },
829
+ () => UpdateLoggingConfigurationRequest,
830
+ () => UpdateLoggingConfigurationResponse,
831
+ ];
832
+ var UpdateRoom = [
833
+ 9,
834
+ n0,
835
+ _URp,
836
+ {
837
+ [_h]: ["POST", "/UpdateRoom", 200],
838
+ },
839
+ () => UpdateRoomRequest,
840
+ () => UpdateRoomResponse,
841
+ ];
1018
842
 
1019
843
  class CreateChatTokenCommand extends smithyClient.Command
1020
844
  .classBuilder()
1021
845
  .ep(commonParams)
1022
846
  .m(function (Command, cs, config, o) {
1023
- return [
1024
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1025
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1026
- ];
847
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1027
848
  })
1028
849
  .s("AmazonInteractiveVideoServiceChat", "CreateChatToken", {})
1029
850
  .n("IvschatClient", "CreateChatTokenCommand")
1030
- .f(CreateChatTokenRequestFilterSensitiveLog, CreateChatTokenResponseFilterSensitiveLog)
1031
- .ser(se_CreateChatTokenCommand)
1032
- .de(de_CreateChatTokenCommand)
851
+ .sc(CreateChatToken)
1033
852
  .build() {
1034
853
  }
1035
854
 
@@ -1037,16 +856,11 @@ class CreateLoggingConfigurationCommand extends smithyClient.Command
1037
856
  .classBuilder()
1038
857
  .ep(commonParams)
1039
858
  .m(function (Command, cs, config, o) {
1040
- return [
1041
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1042
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1043
- ];
859
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1044
860
  })
1045
861
  .s("AmazonInteractiveVideoServiceChat", "CreateLoggingConfiguration", {})
1046
862
  .n("IvschatClient", "CreateLoggingConfigurationCommand")
1047
- .f(void 0, void 0)
1048
- .ser(se_CreateLoggingConfigurationCommand)
1049
- .de(de_CreateLoggingConfigurationCommand)
863
+ .sc(CreateLoggingConfiguration)
1050
864
  .build() {
1051
865
  }
1052
866
 
@@ -1054,16 +868,11 @@ class CreateRoomCommand extends smithyClient.Command
1054
868
  .classBuilder()
1055
869
  .ep(commonParams)
1056
870
  .m(function (Command, cs, config, o) {
1057
- return [
1058
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1059
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1060
- ];
871
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1061
872
  })
1062
873
  .s("AmazonInteractiveVideoServiceChat", "CreateRoom", {})
1063
874
  .n("IvschatClient", "CreateRoomCommand")
1064
- .f(void 0, void 0)
1065
- .ser(se_CreateRoomCommand)
1066
- .de(de_CreateRoomCommand)
875
+ .sc(CreateRoom)
1067
876
  .build() {
1068
877
  }
1069
878
 
@@ -1071,16 +880,11 @@ class DeleteLoggingConfigurationCommand extends smithyClient.Command
1071
880
  .classBuilder()
1072
881
  .ep(commonParams)
1073
882
  .m(function (Command, cs, config, o) {
1074
- return [
1075
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1076
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1077
- ];
883
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1078
884
  })
1079
885
  .s("AmazonInteractiveVideoServiceChat", "DeleteLoggingConfiguration", {})
1080
886
  .n("IvschatClient", "DeleteLoggingConfigurationCommand")
1081
- .f(void 0, void 0)
1082
- .ser(se_DeleteLoggingConfigurationCommand)
1083
- .de(de_DeleteLoggingConfigurationCommand)
887
+ .sc(DeleteLoggingConfiguration)
1084
888
  .build() {
1085
889
  }
1086
890
 
@@ -1088,16 +892,11 @@ class DeleteMessageCommand extends smithyClient.Command
1088
892
  .classBuilder()
1089
893
  .ep(commonParams)
1090
894
  .m(function (Command, cs, config, o) {
1091
- return [
1092
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1093
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1094
- ];
895
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1095
896
  })
1096
897
  .s("AmazonInteractiveVideoServiceChat", "DeleteMessage", {})
1097
898
  .n("IvschatClient", "DeleteMessageCommand")
1098
- .f(void 0, void 0)
1099
- .ser(se_DeleteMessageCommand)
1100
- .de(de_DeleteMessageCommand)
899
+ .sc(DeleteMessage)
1101
900
  .build() {
1102
901
  }
1103
902
 
@@ -1105,16 +904,11 @@ class DeleteRoomCommand extends smithyClient.Command
1105
904
  .classBuilder()
1106
905
  .ep(commonParams)
1107
906
  .m(function (Command, cs, config, o) {
1108
- return [
1109
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1110
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1111
- ];
907
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1112
908
  })
1113
909
  .s("AmazonInteractiveVideoServiceChat", "DeleteRoom", {})
1114
910
  .n("IvschatClient", "DeleteRoomCommand")
1115
- .f(void 0, void 0)
1116
- .ser(se_DeleteRoomCommand)
1117
- .de(de_DeleteRoomCommand)
911
+ .sc(DeleteRoom)
1118
912
  .build() {
1119
913
  }
1120
914
 
@@ -1122,16 +916,11 @@ class DisconnectUserCommand extends smithyClient.Command
1122
916
  .classBuilder()
1123
917
  .ep(commonParams)
1124
918
  .m(function (Command, cs, config, o) {
1125
- return [
1126
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1127
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1128
- ];
919
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1129
920
  })
1130
921
  .s("AmazonInteractiveVideoServiceChat", "DisconnectUser", {})
1131
922
  .n("IvschatClient", "DisconnectUserCommand")
1132
- .f(DisconnectUserRequestFilterSensitiveLog, void 0)
1133
- .ser(se_DisconnectUserCommand)
1134
- .de(de_DisconnectUserCommand)
923
+ .sc(DisconnectUser)
1135
924
  .build() {
1136
925
  }
1137
926
 
@@ -1139,16 +928,11 @@ class GetLoggingConfigurationCommand extends smithyClient.Command
1139
928
  .classBuilder()
1140
929
  .ep(commonParams)
1141
930
  .m(function (Command, cs, config, o) {
1142
- return [
1143
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1144
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1145
- ];
931
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1146
932
  })
1147
933
  .s("AmazonInteractiveVideoServiceChat", "GetLoggingConfiguration", {})
1148
934
  .n("IvschatClient", "GetLoggingConfigurationCommand")
1149
- .f(void 0, void 0)
1150
- .ser(se_GetLoggingConfigurationCommand)
1151
- .de(de_GetLoggingConfigurationCommand)
935
+ .sc(GetLoggingConfiguration)
1152
936
  .build() {
1153
937
  }
1154
938
 
@@ -1156,16 +940,11 @@ class GetRoomCommand extends smithyClient.Command
1156
940
  .classBuilder()
1157
941
  .ep(commonParams)
1158
942
  .m(function (Command, cs, config, o) {
1159
- return [
1160
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1161
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1162
- ];
943
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1163
944
  })
1164
945
  .s("AmazonInteractiveVideoServiceChat", "GetRoom", {})
1165
946
  .n("IvschatClient", "GetRoomCommand")
1166
- .f(void 0, void 0)
1167
- .ser(se_GetRoomCommand)
1168
- .de(de_GetRoomCommand)
947
+ .sc(GetRoom)
1169
948
  .build() {
1170
949
  }
1171
950
 
@@ -1173,16 +952,11 @@ class ListLoggingConfigurationsCommand extends smithyClient.Command
1173
952
  .classBuilder()
1174
953
  .ep(commonParams)
1175
954
  .m(function (Command, cs, config, o) {
1176
- return [
1177
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1178
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1179
- ];
955
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1180
956
  })
1181
957
  .s("AmazonInteractiveVideoServiceChat", "ListLoggingConfigurations", {})
1182
958
  .n("IvschatClient", "ListLoggingConfigurationsCommand")
1183
- .f(void 0, void 0)
1184
- .ser(se_ListLoggingConfigurationsCommand)
1185
- .de(de_ListLoggingConfigurationsCommand)
959
+ .sc(ListLoggingConfigurations)
1186
960
  .build() {
1187
961
  }
1188
962
 
@@ -1190,16 +964,11 @@ class ListRoomsCommand extends smithyClient.Command
1190
964
  .classBuilder()
1191
965
  .ep(commonParams)
1192
966
  .m(function (Command, cs, config, o) {
1193
- return [
1194
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1195
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1196
- ];
967
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1197
968
  })
1198
969
  .s("AmazonInteractiveVideoServiceChat", "ListRooms", {})
1199
970
  .n("IvschatClient", "ListRoomsCommand")
1200
- .f(void 0, void 0)
1201
- .ser(se_ListRoomsCommand)
1202
- .de(de_ListRoomsCommand)
971
+ .sc(ListRooms)
1203
972
  .build() {
1204
973
  }
1205
974
 
@@ -1207,16 +976,11 @@ class ListTagsForResourceCommand extends smithyClient.Command
1207
976
  .classBuilder()
1208
977
  .ep(commonParams)
1209
978
  .m(function (Command, cs, config, o) {
1210
- return [
1211
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1212
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1213
- ];
979
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1214
980
  })
1215
981
  .s("AmazonInteractiveVideoServiceChat", "ListTagsForResource", {})
1216
982
  .n("IvschatClient", "ListTagsForResourceCommand")
1217
- .f(void 0, void 0)
1218
- .ser(se_ListTagsForResourceCommand)
1219
- .de(de_ListTagsForResourceCommand)
983
+ .sc(ListTagsForResource)
1220
984
  .build() {
1221
985
  }
1222
986
 
@@ -1224,16 +988,11 @@ class SendEventCommand extends smithyClient.Command
1224
988
  .classBuilder()
1225
989
  .ep(commonParams)
1226
990
  .m(function (Command, cs, config, o) {
1227
- return [
1228
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1229
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1230
- ];
991
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1231
992
  })
1232
993
  .s("AmazonInteractiveVideoServiceChat", "SendEvent", {})
1233
994
  .n("IvschatClient", "SendEventCommand")
1234
- .f(void 0, void 0)
1235
- .ser(se_SendEventCommand)
1236
- .de(de_SendEventCommand)
995
+ .sc(SendEvent)
1237
996
  .build() {
1238
997
  }
1239
998
 
@@ -1241,16 +1000,11 @@ class TagResourceCommand extends smithyClient.Command
1241
1000
  .classBuilder()
1242
1001
  .ep(commonParams)
1243
1002
  .m(function (Command, cs, config, o) {
1244
- return [
1245
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1246
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1247
- ];
1003
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1248
1004
  })
1249
1005
  .s("AmazonInteractiveVideoServiceChat", "TagResource", {})
1250
1006
  .n("IvschatClient", "TagResourceCommand")
1251
- .f(void 0, void 0)
1252
- .ser(se_TagResourceCommand)
1253
- .de(de_TagResourceCommand)
1007
+ .sc(TagResource)
1254
1008
  .build() {
1255
1009
  }
1256
1010
 
@@ -1258,16 +1012,11 @@ class UntagResourceCommand extends smithyClient.Command
1258
1012
  .classBuilder()
1259
1013
  .ep(commonParams)
1260
1014
  .m(function (Command, cs, config, o) {
1261
- return [
1262
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1263
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1264
- ];
1015
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1265
1016
  })
1266
1017
  .s("AmazonInteractiveVideoServiceChat", "UntagResource", {})
1267
1018
  .n("IvschatClient", "UntagResourceCommand")
1268
- .f(void 0, void 0)
1269
- .ser(se_UntagResourceCommand)
1270
- .de(de_UntagResourceCommand)
1019
+ .sc(UntagResource)
1271
1020
  .build() {
1272
1021
  }
1273
1022
 
@@ -1275,16 +1024,11 @@ class UpdateLoggingConfigurationCommand extends smithyClient.Command
1275
1024
  .classBuilder()
1276
1025
  .ep(commonParams)
1277
1026
  .m(function (Command, cs, config, o) {
1278
- return [
1279
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1280
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1281
- ];
1027
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1282
1028
  })
1283
1029
  .s("AmazonInteractiveVideoServiceChat", "UpdateLoggingConfiguration", {})
1284
1030
  .n("IvschatClient", "UpdateLoggingConfigurationCommand")
1285
- .f(void 0, void 0)
1286
- .ser(se_UpdateLoggingConfigurationCommand)
1287
- .de(de_UpdateLoggingConfigurationCommand)
1031
+ .sc(UpdateLoggingConfiguration)
1288
1032
  .build() {
1289
1033
  }
1290
1034
 
@@ -1292,16 +1036,11 @@ class UpdateRoomCommand extends smithyClient.Command
1292
1036
  .classBuilder()
1293
1037
  .ep(commonParams)
1294
1038
  .m(function (Command, cs, config, o) {
1295
- return [
1296
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1297
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1298
- ];
1039
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1299
1040
  })
1300
1041
  .s("AmazonInteractiveVideoServiceChat", "UpdateRoom", {})
1301
1042
  .n("IvschatClient", "UpdateRoomCommand")
1302
- .f(void 0, void 0)
1303
- .ser(se_UpdateRoomCommand)
1304
- .de(de_UpdateRoomCommand)
1043
+ .sc(UpdateRoom)
1305
1044
  .build() {
1306
1045
  }
1307
1046
 
@@ -1340,12 +1079,10 @@ Object.defineProperty(exports, "__Client", {
1340
1079
  enumerable: true,
1341
1080
  get: function () { return smithyClient.Client; }
1342
1081
  });
1343
- exports.AccessDeniedException = AccessDeniedException;
1082
+ exports.AccessDeniedException = AccessDeniedException$1;
1344
1083
  exports.ChatTokenCapability = ChatTokenCapability;
1345
- exports.ConflictException = ConflictException;
1084
+ exports.ConflictException = ConflictException$1;
1346
1085
  exports.CreateChatTokenCommand = CreateChatTokenCommand;
1347
- exports.CreateChatTokenRequestFilterSensitiveLog = CreateChatTokenRequestFilterSensitiveLog;
1348
- exports.CreateChatTokenResponseFilterSensitiveLog = CreateChatTokenResponseFilterSensitiveLog;
1349
1086
  exports.CreateLoggingConfigurationCommand = CreateLoggingConfigurationCommand;
1350
1087
  exports.CreateLoggingConfigurationState = CreateLoggingConfigurationState;
1351
1088
  exports.CreateRoomCommand = CreateRoomCommand;
@@ -1353,30 +1090,29 @@ exports.DeleteLoggingConfigurationCommand = DeleteLoggingConfigurationCommand;
1353
1090
  exports.DeleteMessageCommand = DeleteMessageCommand;
1354
1091
  exports.DeleteRoomCommand = DeleteRoomCommand;
1355
1092
  exports.DisconnectUserCommand = DisconnectUserCommand;
1356
- exports.DisconnectUserRequestFilterSensitiveLog = DisconnectUserRequestFilterSensitiveLog;
1357
1093
  exports.FallbackResult = FallbackResult;
1358
1094
  exports.GetLoggingConfigurationCommand = GetLoggingConfigurationCommand;
1359
1095
  exports.GetRoomCommand = GetRoomCommand;
1360
- exports.InternalServerException = InternalServerException;
1096
+ exports.InternalServerException = InternalServerException$1;
1361
1097
  exports.Ivschat = Ivschat;
1362
1098
  exports.IvschatClient = IvschatClient;
1363
- exports.IvschatServiceException = IvschatServiceException;
1099
+ exports.IvschatServiceException = IvschatServiceException$1;
1364
1100
  exports.ListLoggingConfigurationsCommand = ListLoggingConfigurationsCommand;
1365
1101
  exports.ListRoomsCommand = ListRoomsCommand;
1366
1102
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1367
1103
  exports.LoggingConfigurationState = LoggingConfigurationState;
1368
- exports.PendingVerification = PendingVerification;
1369
- exports.ResourceNotFoundException = ResourceNotFoundException;
1104
+ exports.PendingVerification = PendingVerification$1;
1105
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
1370
1106
  exports.ResourceType = ResourceType;
1371
1107
  exports.SendEventCommand = SendEventCommand;
1372
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1108
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
1373
1109
  exports.TagResourceCommand = TagResourceCommand;
1374
- exports.ThrottlingException = ThrottlingException;
1110
+ exports.ThrottlingException = ThrottlingException$1;
1375
1111
  exports.UntagResourceCommand = UntagResourceCommand;
1376
1112
  exports.UpdateLoggingConfigurationCommand = UpdateLoggingConfigurationCommand;
1377
1113
  exports.UpdateLoggingConfigurationState = UpdateLoggingConfigurationState;
1378
1114
  exports.UpdateRoomCommand = UpdateRoomCommand;
1379
- exports.ValidationException = ValidationException;
1115
+ exports.ValidationException = ValidationException$1;
1380
1116
  exports.ValidationExceptionReason = ValidationExceptionReason;
1381
1117
  exports.paginateListLoggingConfigurations = paginateListLoggingConfigurations;
1382
1118
  exports.paginateListRooms = paginateListRooms;