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