@aws-sdk/client-chime-sdk-messaging 3.186.0 → 3.188.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 (70) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/ChimeSDKMessaging.js +190 -197
  3. package/dist-es/ChimeSDKMessagingClient.js +22 -28
  4. package/dist-es/commands/AssociateChannelFlowCommand.js +22 -29
  5. package/dist-es/commands/BatchCreateChannelMembershipCommand.js +21 -28
  6. package/dist-es/commands/ChannelFlowCallbackCommand.js +21 -28
  7. package/dist-es/commands/CreateChannelBanCommand.js +21 -28
  8. package/dist-es/commands/CreateChannelCommand.js +21 -28
  9. package/dist-es/commands/CreateChannelFlowCommand.js +21 -28
  10. package/dist-es/commands/CreateChannelMembershipCommand.js +21 -28
  11. package/dist-es/commands/CreateChannelModeratorCommand.js +21 -28
  12. package/dist-es/commands/DeleteChannelBanCommand.js +22 -29
  13. package/dist-es/commands/DeleteChannelCommand.js +22 -29
  14. package/dist-es/commands/DeleteChannelFlowCommand.js +22 -29
  15. package/dist-es/commands/DeleteChannelMembershipCommand.js +22 -29
  16. package/dist-es/commands/DeleteChannelMessageCommand.js +22 -29
  17. package/dist-es/commands/DeleteChannelModeratorCommand.js +22 -29
  18. package/dist-es/commands/DescribeChannelBanCommand.js +21 -28
  19. package/dist-es/commands/DescribeChannelCommand.js +21 -28
  20. package/dist-es/commands/DescribeChannelFlowCommand.js +21 -28
  21. package/dist-es/commands/DescribeChannelMembershipCommand.js +21 -28
  22. package/dist-es/commands/DescribeChannelMembershipForAppInstanceUserCommand.js +21 -28
  23. package/dist-es/commands/DescribeChannelModeratedByAppInstanceUserCommand.js +21 -28
  24. package/dist-es/commands/DescribeChannelModeratorCommand.js +21 -28
  25. package/dist-es/commands/DisassociateChannelFlowCommand.js +22 -29
  26. package/dist-es/commands/GetChannelMembershipPreferencesCommand.js +21 -28
  27. package/dist-es/commands/GetChannelMessageCommand.js +21 -28
  28. package/dist-es/commands/GetChannelMessageStatusCommand.js +21 -28
  29. package/dist-es/commands/GetMessagingSessionEndpointCommand.js +21 -28
  30. package/dist-es/commands/ListChannelBansCommand.js +21 -28
  31. package/dist-es/commands/ListChannelFlowsCommand.js +21 -28
  32. package/dist-es/commands/ListChannelMembershipsCommand.js +21 -28
  33. package/dist-es/commands/ListChannelMembershipsForAppInstanceUserCommand.js +21 -28
  34. package/dist-es/commands/ListChannelMessagesCommand.js +21 -28
  35. package/dist-es/commands/ListChannelModeratorsCommand.js +21 -28
  36. package/dist-es/commands/ListChannelsAssociatedWithChannelFlowCommand.js +21 -28
  37. package/dist-es/commands/ListChannelsCommand.js +21 -28
  38. package/dist-es/commands/ListChannelsModeratedByAppInstanceUserCommand.js +21 -28
  39. package/dist-es/commands/ListSubChannelsCommand.js +21 -28
  40. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  41. package/dist-es/commands/PutChannelMembershipPreferencesCommand.js +21 -28
  42. package/dist-es/commands/RedactChannelMessageCommand.js +21 -28
  43. package/dist-es/commands/SearchChannelsCommand.js +21 -28
  44. package/dist-es/commands/SendChannelMessageCommand.js +21 -28
  45. package/dist-es/commands/TagResourceCommand.js +22 -29
  46. package/dist-es/commands/UntagResourceCommand.js +22 -29
  47. package/dist-es/commands/UpdateChannelCommand.js +21 -28
  48. package/dist-es/commands/UpdateChannelFlowCommand.js +21 -28
  49. package/dist-es/commands/UpdateChannelMessageCommand.js +21 -28
  50. package/dist-es/commands/UpdateChannelReadMarkerCommand.js +21 -28
  51. package/dist-es/endpoints.js +8 -8
  52. package/dist-es/models/ChimeSDKMessagingServiceException.js +5 -10
  53. package/dist-es/models/models_0.js +627 -282
  54. package/dist-es/pagination/ListChannelBansPaginator.js +25 -68
  55. package/dist-es/pagination/ListChannelFlowsPaginator.js +25 -68
  56. package/dist-es/pagination/ListChannelMembershipsForAppInstanceUserPaginator.js +25 -68
  57. package/dist-es/pagination/ListChannelMembershipsPaginator.js +25 -68
  58. package/dist-es/pagination/ListChannelMessagesPaginator.js +25 -68
  59. package/dist-es/pagination/ListChannelModeratorsPaginator.js +25 -68
  60. package/dist-es/pagination/ListChannelsAssociatedWithChannelFlowPaginator.js +25 -68
  61. package/dist-es/pagination/ListChannelsModeratedByAppInstanceUserPaginator.js +25 -68
  62. package/dist-es/pagination/ListChannelsPaginator.js +25 -68
  63. package/dist-es/pagination/ListSubChannelsPaginator.js +25 -68
  64. package/dist-es/pagination/SearchChannelsPaginator.js +25 -68
  65. package/dist-es/protocols/Aws_restJson1.js +3792 -5312
  66. package/dist-es/runtimeConfig.browser.js +26 -12
  67. package/dist-es/runtimeConfig.js +30 -12
  68. package/dist-es/runtimeConfig.native.js +8 -5
  69. package/dist-es/runtimeConfig.shared.js +8 -11
  70. package/package.json +33 -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 { SearchChannelsRequestFilterSensitiveLog, SearchChannelsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1SearchChannelsCommand, serializeAws_restJson1SearchChannelsCommand, } from "../protocols/Aws_restJson1";
6
- var SearchChannelsCommand = (function (_super) {
7
- __extends(SearchChannelsCommand, _super);
8
- function SearchChannelsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class SearchChannelsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- SearchChannelsCommand.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 = "SearchChannelsCommand";
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 = "SearchChannelsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: SearchChannelsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: SearchChannelsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- SearchChannelsCommand.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_restJson1SearchChannelsCommand(input, context);
33
- };
34
- SearchChannelsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1SearchChannelsCommand(output, context);
36
- };
37
- return SearchChannelsCommand;
38
- }($Command));
39
- export { SearchChannelsCommand };
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 { SendChannelMessageRequestFilterSensitiveLog, SendChannelMessageResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1SendChannelMessageCommand, serializeAws_restJson1SendChannelMessageCommand, } from "../protocols/Aws_restJson1";
6
- var SendChannelMessageCommand = (function (_super) {
7
- __extends(SendChannelMessageCommand, _super);
8
- function SendChannelMessageCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class SendChannelMessageCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- SendChannelMessageCommand.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 = "SendChannelMessageCommand";
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 = "SendChannelMessageCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: SendChannelMessageRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: SendChannelMessageResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- SendChannelMessageCommand.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_restJson1SendChannelMessageCommand(input, context);
33
- };
34
- SendChannelMessageCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1SendChannelMessageCommand(output, context);
36
- };
37
- return SendChannelMessageCommand;
38
- }($Command));
39
- export { SendChannelMessageCommand };
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 { TagResourceRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1TagResourceCommand, serializeAws_restJson1TagResourceCommand, } from "../protocols/Aws_restJson1";
6
- var TagResourceCommand = (function (_super) {
7
- __extends(TagResourceCommand, _super);
8
- function TagResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class TagResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- TagResourceCommand.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 = "TagResourceCommand";
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 = "TagResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: TagResourceRequestFilterSensitiveLog,
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
- TagResourceCommand.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_restJson1TagResourceCommand(input, context);
33
- };
34
- TagResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1TagResourceCommand(output, context);
36
- };
37
- return TagResourceCommand;
38
- }($Command));
39
- export { TagResourceCommand };
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 { UntagResourceRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1UntagResourceCommand, serializeAws_restJson1UntagResourceCommand, } from "../protocols/Aws_restJson1";
6
- var UntagResourceCommand = (function (_super) {
7
- __extends(UntagResourceCommand, _super);
8
- function UntagResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UntagResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UntagResourceCommand.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 = "UntagResourceCommand";
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 = "UntagResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UntagResourceRequestFilterSensitiveLog,
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
- UntagResourceCommand.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_restJson1UntagResourceCommand(input, context);
33
- };
34
- UntagResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1UntagResourceCommand(output, context);
36
- };
37
- return UntagResourceCommand;
38
- }($Command));
39
- export { UntagResourceCommand };
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 { UpdateChannelRequestFilterSensitiveLog, UpdateChannelResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1UpdateChannelCommand, serializeAws_restJson1UpdateChannelCommand, } from "../protocols/Aws_restJson1";
6
- var UpdateChannelCommand = (function (_super) {
7
- __extends(UpdateChannelCommand, _super);
8
- function UpdateChannelCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateChannelCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateChannelCommand.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 = "UpdateChannelCommand";
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 = "UpdateChannelCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateChannelRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateChannelResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateChannelCommand.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_restJson1UpdateChannelCommand(input, context);
33
- };
34
- UpdateChannelCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1UpdateChannelCommand(output, context);
36
- };
37
- return UpdateChannelCommand;
38
- }($Command));
39
- export { UpdateChannelCommand };
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 { UpdateChannelFlowRequestFilterSensitiveLog, UpdateChannelFlowResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1UpdateChannelFlowCommand, serializeAws_restJson1UpdateChannelFlowCommand, } from "../protocols/Aws_restJson1";
6
- var UpdateChannelFlowCommand = (function (_super) {
7
- __extends(UpdateChannelFlowCommand, _super);
8
- function UpdateChannelFlowCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateChannelFlowCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateChannelFlowCommand.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 = "UpdateChannelFlowCommand";
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 = "UpdateChannelFlowCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateChannelFlowRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateChannelFlowResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateChannelFlowCommand.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_restJson1UpdateChannelFlowCommand(input, context);
33
- };
34
- UpdateChannelFlowCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1UpdateChannelFlowCommand(output, context);
36
- };
37
- return UpdateChannelFlowCommand;
38
- }($Command));
39
- export { UpdateChannelFlowCommand };
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 { UpdateChannelMessageRequestFilterSensitiveLog, UpdateChannelMessageResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1UpdateChannelMessageCommand, serializeAws_restJson1UpdateChannelMessageCommand, } from "../protocols/Aws_restJson1";
6
- var UpdateChannelMessageCommand = (function (_super) {
7
- __extends(UpdateChannelMessageCommand, _super);
8
- function UpdateChannelMessageCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateChannelMessageCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateChannelMessageCommand.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 = "UpdateChannelMessageCommand";
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 = "UpdateChannelMessageCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateChannelMessageRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateChannelMessageResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateChannelMessageCommand.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_restJson1UpdateChannelMessageCommand(input, context);
33
- };
34
- UpdateChannelMessageCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1UpdateChannelMessageCommand(output, context);
36
- };
37
- return UpdateChannelMessageCommand;
38
- }($Command));
39
- export { UpdateChannelMessageCommand };
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 { UpdateChannelReadMarkerRequestFilterSensitiveLog, UpdateChannelReadMarkerResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1UpdateChannelReadMarkerCommand, serializeAws_restJson1UpdateChannelReadMarkerCommand, } from "../protocols/Aws_restJson1";
6
- var UpdateChannelReadMarkerCommand = (function (_super) {
7
- __extends(UpdateChannelReadMarkerCommand, _super);
8
- function UpdateChannelReadMarkerCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateChannelReadMarkerCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateChannelReadMarkerCommand.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 = "UpdateChannelReadMarkerCommand";
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 = "UpdateChannelReadMarkerCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateChannelReadMarkerRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateChannelReadMarkerResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateChannelReadMarkerCommand.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_restJson1UpdateChannelReadMarkerCommand(input, context);
33
- };
34
- UpdateChannelReadMarkerCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1UpdateChannelReadMarkerCommand(output, context);
36
- };
37
- return UpdateChannelReadMarkerCommand;
38
- }($Command));
39
- export { UpdateChannelReadMarkerCommand };
31
+ }
32
+ }
@@ -1,6 +1,5 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {
2
+ const regionHash = {
4
3
  "us-east-1": {
5
4
  variants: [
6
5
  {
@@ -10,7 +9,7 @@ var regionHash = {
10
9
  ],
11
10
  },
12
11
  };
13
- var partitionHash = {
12
+ const partitionHash = {
14
13
  aws: {
15
14
  regions: [
16
15
  "af-south-1",
@@ -131,8 +130,9 @@ var partitionHash = {
131
130
  ],
132
131
  },
133
132
  };
134
- export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
135
- return __generator(this, function (_a) {
136
- return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "chime", regionHash: regionHash, partitionHash: partitionHash }))];
137
- });
138
- }); };
133
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
134
+ ...options,
135
+ signingService: "chime",
136
+ regionHash,
137
+ partitionHash,
138
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
- var ChimeSDKMessagingServiceException = (function (_super) {
4
- __extends(ChimeSDKMessagingServiceException, _super);
5
- function ChimeSDKMessagingServiceException(options) {
6
- var _this = _super.call(this, options) || this;
7
- Object.setPrototypeOf(_this, ChimeSDKMessagingServiceException.prototype);
8
- return _this;
2
+ export class ChimeSDKMessagingServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, ChimeSDKMessagingServiceException.prototype);
9
6
  }
10
- return ChimeSDKMessagingServiceException;
11
- }(__ServiceException));
12
- export { ChimeSDKMessagingServiceException };
7
+ }