@aws-sdk/client-chime-sdk-messaging 3.180.0 → 3.183.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 (71) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +53 -47
  3. package/dist-es/ChimeSDKMessaging.js +190 -197
  4. package/dist-es/ChimeSDKMessagingClient.js +22 -28
  5. package/dist-es/commands/AssociateChannelFlowCommand.js +22 -29
  6. package/dist-es/commands/BatchCreateChannelMembershipCommand.js +21 -28
  7. package/dist-es/commands/ChannelFlowCallbackCommand.js +21 -28
  8. package/dist-es/commands/CreateChannelBanCommand.js +21 -28
  9. package/dist-es/commands/CreateChannelCommand.js +21 -28
  10. package/dist-es/commands/CreateChannelFlowCommand.js +21 -28
  11. package/dist-es/commands/CreateChannelMembershipCommand.js +21 -28
  12. package/dist-es/commands/CreateChannelModeratorCommand.js +21 -28
  13. package/dist-es/commands/DeleteChannelBanCommand.js +22 -29
  14. package/dist-es/commands/DeleteChannelCommand.js +22 -29
  15. package/dist-es/commands/DeleteChannelFlowCommand.js +22 -29
  16. package/dist-es/commands/DeleteChannelMembershipCommand.js +22 -29
  17. package/dist-es/commands/DeleteChannelMessageCommand.js +22 -29
  18. package/dist-es/commands/DeleteChannelModeratorCommand.js +22 -29
  19. package/dist-es/commands/DescribeChannelBanCommand.js +21 -28
  20. package/dist-es/commands/DescribeChannelCommand.js +21 -28
  21. package/dist-es/commands/DescribeChannelFlowCommand.js +21 -28
  22. package/dist-es/commands/DescribeChannelMembershipCommand.js +21 -28
  23. package/dist-es/commands/DescribeChannelMembershipForAppInstanceUserCommand.js +21 -28
  24. package/dist-es/commands/DescribeChannelModeratedByAppInstanceUserCommand.js +21 -28
  25. package/dist-es/commands/DescribeChannelModeratorCommand.js +21 -28
  26. package/dist-es/commands/DisassociateChannelFlowCommand.js +22 -29
  27. package/dist-es/commands/GetChannelMembershipPreferencesCommand.js +21 -28
  28. package/dist-es/commands/GetChannelMessageCommand.js +21 -28
  29. package/dist-es/commands/GetChannelMessageStatusCommand.js +21 -28
  30. package/dist-es/commands/GetMessagingSessionEndpointCommand.js +21 -28
  31. package/dist-es/commands/ListChannelBansCommand.js +21 -28
  32. package/dist-es/commands/ListChannelFlowsCommand.js +21 -28
  33. package/dist-es/commands/ListChannelMembershipsCommand.js +21 -28
  34. package/dist-es/commands/ListChannelMembershipsForAppInstanceUserCommand.js +21 -28
  35. package/dist-es/commands/ListChannelMessagesCommand.js +21 -28
  36. package/dist-es/commands/ListChannelModeratorsCommand.js +21 -28
  37. package/dist-es/commands/ListChannelsAssociatedWithChannelFlowCommand.js +21 -28
  38. package/dist-es/commands/ListChannelsCommand.js +21 -28
  39. package/dist-es/commands/ListChannelsModeratedByAppInstanceUserCommand.js +21 -28
  40. package/dist-es/commands/ListSubChannelsCommand.js +21 -28
  41. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  42. package/dist-es/commands/PutChannelMembershipPreferencesCommand.js +21 -28
  43. package/dist-es/commands/RedactChannelMessageCommand.js +21 -28
  44. package/dist-es/commands/SearchChannelsCommand.js +21 -28
  45. package/dist-es/commands/SendChannelMessageCommand.js +21 -28
  46. package/dist-es/commands/TagResourceCommand.js +22 -29
  47. package/dist-es/commands/UntagResourceCommand.js +22 -29
  48. package/dist-es/commands/UpdateChannelCommand.js +21 -28
  49. package/dist-es/commands/UpdateChannelFlowCommand.js +21 -28
  50. package/dist-es/commands/UpdateChannelMessageCommand.js +21 -28
  51. package/dist-es/commands/UpdateChannelReadMarkerCommand.js +21 -28
  52. package/dist-es/endpoints.js +8 -8
  53. package/dist-es/models/ChimeSDKMessagingServiceException.js +5 -10
  54. package/dist-es/models/models_0.js +627 -282
  55. package/dist-es/pagination/ListChannelBansPaginator.js +25 -68
  56. package/dist-es/pagination/ListChannelFlowsPaginator.js +25 -68
  57. package/dist-es/pagination/ListChannelMembershipsForAppInstanceUserPaginator.js +25 -68
  58. package/dist-es/pagination/ListChannelMembershipsPaginator.js +25 -68
  59. package/dist-es/pagination/ListChannelMessagesPaginator.js +25 -68
  60. package/dist-es/pagination/ListChannelModeratorsPaginator.js +25 -68
  61. package/dist-es/pagination/ListChannelsAssociatedWithChannelFlowPaginator.js +25 -68
  62. package/dist-es/pagination/ListChannelsModeratedByAppInstanceUserPaginator.js +25 -68
  63. package/dist-es/pagination/ListChannelsPaginator.js +25 -68
  64. package/dist-es/pagination/ListSubChannelsPaginator.js +25 -68
  65. package/dist-es/pagination/SearchChannelsPaginator.js +25 -68
  66. package/dist-es/protocols/Aws_restJson1.js +3792 -5299
  67. package/dist-es/runtimeConfig.browser.js +26 -12
  68. package/dist-es/runtimeConfig.js +30 -12
  69. package/dist-es/runtimeConfig.native.js +8 -5
  70. package/dist-es/runtimeConfig.shared.js +8 -11
  71. package/package.json +33 -33
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var ChimeSDKMessagingClient = (function (_super) {
13
- __extends(ChimeSDKMessagingClient, _super);
14
- function ChimeSDKMessagingClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class ChimeSDKMessagingClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- ChimeSDKMessagingClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return ChimeSDKMessagingClient;
38
- }(__Client));
39
- export { ChimeSDKMessagingClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
33
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { AssociateChannelFlowRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1AssociateChannelFlowCommand, serializeAws_restJson1AssociateChannelFlowCommand, } from "../protocols/Aws_restJson1";
6
- var AssociateChannelFlowCommand = (function (_super) {
7
- __extends(AssociateChannelFlowCommand, _super);
8
- function AssociateChannelFlowCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class AssociateChannelFlowCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- AssociateChannelFlowCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ChimeSDKMessagingClient";
18
- var commandName = "AssociateChannelFlowCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ChimeSDKMessagingClient";
15
+ const commandName = "AssociateChannelFlowCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: AssociateChannelFlowRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- AssociateChannelFlowCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1AssociateChannelFlowCommand(input, context);
33
- };
34
- AssociateChannelFlowCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1AssociateChannelFlowCommand(output, context);
36
- };
37
- return AssociateChannelFlowCommand;
38
- }($Command));
39
- export { AssociateChannelFlowCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { BatchCreateChannelMembershipRequestFilterSensitiveLog, BatchCreateChannelMembershipResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1BatchCreateChannelMembershipCommand, serializeAws_restJson1BatchCreateChannelMembershipCommand, } from "../protocols/Aws_restJson1";
6
- var BatchCreateChannelMembershipCommand = (function (_super) {
7
- __extends(BatchCreateChannelMembershipCommand, _super);
8
- function BatchCreateChannelMembershipCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class BatchCreateChannelMembershipCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- BatchCreateChannelMembershipCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ChimeSDKMessagingClient";
18
- var commandName = "BatchCreateChannelMembershipCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ChimeSDKMessagingClient";
15
+ const commandName = "BatchCreateChannelMembershipCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: BatchCreateChannelMembershipRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: BatchCreateChannelMembershipResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- BatchCreateChannelMembershipCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1BatchCreateChannelMembershipCommand(input, context);
33
- };
34
- BatchCreateChannelMembershipCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1BatchCreateChannelMembershipCommand(output, context);
36
- };
37
- return BatchCreateChannelMembershipCommand;
38
- }($Command));
39
- export { BatchCreateChannelMembershipCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ChannelFlowCallbackRequestFilterSensitiveLog, ChannelFlowCallbackResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ChannelFlowCallbackCommand, serializeAws_restJson1ChannelFlowCallbackCommand, } from "../protocols/Aws_restJson1";
6
- var ChannelFlowCallbackCommand = (function (_super) {
7
- __extends(ChannelFlowCallbackCommand, _super);
8
- function ChannelFlowCallbackCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ChannelFlowCallbackCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ChannelFlowCallbackCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ChimeSDKMessagingClient";
18
- var commandName = "ChannelFlowCallbackCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ChimeSDKMessagingClient";
15
+ const commandName = "ChannelFlowCallbackCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ChannelFlowCallbackRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ChannelFlowCallbackResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ChannelFlowCallbackCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ChannelFlowCallbackCommand(input, context);
33
- };
34
- ChannelFlowCallbackCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ChannelFlowCallbackCommand(output, context);
36
- };
37
- return ChannelFlowCallbackCommand;
38
- }($Command));
39
- export { ChannelFlowCallbackCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateChannelBanRequestFilterSensitiveLog, CreateChannelBanResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateChannelBanCommand, serializeAws_restJson1CreateChannelBanCommand, } from "../protocols/Aws_restJson1";
6
- var CreateChannelBanCommand = (function (_super) {
7
- __extends(CreateChannelBanCommand, _super);
8
- function CreateChannelBanCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateChannelBanCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateChannelBanCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ChimeSDKMessagingClient";
18
- var commandName = "CreateChannelBanCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ChimeSDKMessagingClient";
15
+ const commandName = "CreateChannelBanCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateChannelBanRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateChannelBanResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateChannelBanCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateChannelBanCommand(input, context);
33
- };
34
- CreateChannelBanCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateChannelBanCommand(output, context);
36
- };
37
- return CreateChannelBanCommand;
38
- }($Command));
39
- export { CreateChannelBanCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateChannelRequestFilterSensitiveLog, CreateChannelResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateChannelCommand, serializeAws_restJson1CreateChannelCommand, } from "../protocols/Aws_restJson1";
6
- var CreateChannelCommand = (function (_super) {
7
- __extends(CreateChannelCommand, _super);
8
- function CreateChannelCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateChannelCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ChimeSDKMessagingClient";
18
- var commandName = "CreateChannelCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ChimeSDKMessagingClient";
15
+ const commandName = "CreateChannelCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateChannelRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateChannelResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateChannelCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateChannelCommand(input, context);
33
- };
34
- CreateChannelCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateChannelCommand(output, context);
36
- };
37
- return CreateChannelCommand;
38
- }($Command));
39
- export { CreateChannelCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateChannelFlowRequestFilterSensitiveLog, CreateChannelFlowResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateChannelFlowCommand, serializeAws_restJson1CreateChannelFlowCommand, } from "../protocols/Aws_restJson1";
6
- var CreateChannelFlowCommand = (function (_super) {
7
- __extends(CreateChannelFlowCommand, _super);
8
- function CreateChannelFlowCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateChannelFlowCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateChannelFlowCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ChimeSDKMessagingClient";
18
- var commandName = "CreateChannelFlowCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ChimeSDKMessagingClient";
15
+ const commandName = "CreateChannelFlowCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateChannelFlowRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateChannelFlowResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateChannelFlowCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateChannelFlowCommand(input, context);
33
- };
34
- CreateChannelFlowCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateChannelFlowCommand(output, context);
36
- };
37
- return CreateChannelFlowCommand;
38
- }($Command));
39
- export { CreateChannelFlowCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateChannelMembershipRequestFilterSensitiveLog, CreateChannelMembershipResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateChannelMembershipCommand, serializeAws_restJson1CreateChannelMembershipCommand, } from "../protocols/Aws_restJson1";
6
- var CreateChannelMembershipCommand = (function (_super) {
7
- __extends(CreateChannelMembershipCommand, _super);
8
- function CreateChannelMembershipCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateChannelMembershipCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateChannelMembershipCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ChimeSDKMessagingClient";
18
- var commandName = "CreateChannelMembershipCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ChimeSDKMessagingClient";
15
+ const commandName = "CreateChannelMembershipCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateChannelMembershipRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateChannelMembershipResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateChannelMembershipCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateChannelMembershipCommand(input, context);
33
- };
34
- CreateChannelMembershipCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateChannelMembershipCommand(output, context);
36
- };
37
- return CreateChannelMembershipCommand;
38
- }($Command));
39
- export { CreateChannelMembershipCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateChannelModeratorRequestFilterSensitiveLog, CreateChannelModeratorResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateChannelModeratorCommand, serializeAws_restJson1CreateChannelModeratorCommand, } from "../protocols/Aws_restJson1";
6
- var CreateChannelModeratorCommand = (function (_super) {
7
- __extends(CreateChannelModeratorCommand, _super);
8
- function CreateChannelModeratorCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateChannelModeratorCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateChannelModeratorCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ChimeSDKMessagingClient";
18
- var commandName = "CreateChannelModeratorCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ChimeSDKMessagingClient";
15
+ const commandName = "CreateChannelModeratorCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateChannelModeratorRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateChannelModeratorResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateChannelModeratorCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateChannelModeratorCommand(input, context);
33
- };
34
- CreateChannelModeratorCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateChannelModeratorCommand(output, context);
36
- };
37
- return CreateChannelModeratorCommand;
38
- }($Command));
39
- export { CreateChannelModeratorCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteChannelBanRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteChannelBanCommand, serializeAws_restJson1DeleteChannelBanCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteChannelBanCommand = (function (_super) {
7
- __extends(DeleteChannelBanCommand, _super);
8
- function DeleteChannelBanCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteChannelBanCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteChannelBanCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ChimeSDKMessagingClient";
18
- var commandName = "DeleteChannelBanCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ChimeSDKMessagingClient";
15
+ const commandName = "DeleteChannelBanCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteChannelBanRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteChannelBanCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteChannelBanCommand(input, context);
33
- };
34
- DeleteChannelBanCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteChannelBanCommand(output, context);
36
- };
37
- return DeleteChannelBanCommand;
38
- }($Command));
39
- export { DeleteChannelBanCommand };
31
+ }
32
+ }