@wildix/xbees-conversations-client 1.0.35 → 1.0.37

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 (114) hide show
  1. package/dist-cjs/ConversationsClient.js +7 -3
  2. package/dist-cjs/commands/AddChannelMemberCommand.js +12 -32
  3. package/dist-cjs/commands/AddChannelMembersCommand.js +12 -32
  4. package/dist-cjs/commands/CreateGroupChannelCommand.js +12 -32
  5. package/dist-cjs/commands/DeleteChannelCommand.js +12 -32
  6. package/dist-cjs/commands/DeleteChannelMemberCommand.js +12 -32
  7. package/dist-cjs/commands/DeleteMessageCommand.js +12 -32
  8. package/dist-cjs/commands/DeleteMessageReactionCommand.js +12 -32
  9. package/dist-cjs/commands/GetChannelCommand.js +12 -32
  10. package/dist-cjs/commands/GetChannelMemberCommand.js +12 -32
  11. package/dist-cjs/commands/GetDirectChannelIdCommand.js +12 -32
  12. package/dist-cjs/commands/GetMessageCommand.js +12 -32
  13. package/dist-cjs/commands/GetOrCreateDirectChannelCommand.js +12 -32
  14. package/dist-cjs/commands/HideChannelCommand.js +12 -32
  15. package/dist-cjs/commands/InviteCommand.js +12 -32
  16. package/dist-cjs/commands/JoinChannelCommand.js +12 -32
  17. package/dist-cjs/commands/LeaveChannelCommand.js +12 -32
  18. package/dist-cjs/commands/ListChannelMembersCommand.js +12 -32
  19. package/dist-cjs/commands/ListChannelsCommand.js +12 -32
  20. package/dist-cjs/commands/ListMessageReactionsCommand.js +12 -32
  21. package/dist-cjs/commands/ListMessagesCommand.js +12 -32
  22. package/dist-cjs/commands/MarkReadCommand.js +12 -32
  23. package/dist-cjs/commands/PartialUpdateChannelCommand.js +12 -32
  24. package/dist-cjs/commands/PartialUpdateMessageCommand.js +12 -32
  25. package/dist-cjs/commands/ScheduleExternalFlagAdjustmentJobCommand.js +12 -32
  26. package/dist-cjs/commands/SendGiphyCommand.js +12 -32
  27. package/dist-cjs/commands/SendMessageCommand.js +12 -32
  28. package/dist-cjs/commands/SendMessageReactionCommand.js +12 -32
  29. package/dist-cjs/commands/SendTypingStartCommand.js +12 -32
  30. package/dist-cjs/commands/SendTypingStopCommand.js +12 -32
  31. package/dist-cjs/commands/ShowChannelCommand.js +12 -32
  32. package/dist-cjs/commands/UpdateChannelCommand.js +12 -32
  33. package/dist-cjs/commands/UpdateMessageCommand.js +12 -32
  34. package/dist-cjs/protocols/Aws_restJson1.js +346 -1270
  35. package/dist-cjs/runtimeConfig.browser.js +5 -1
  36. package/dist-cjs/runtimeConfig.js +5 -1
  37. package/dist-cjs/runtimeConfig.shared.js +13 -11
  38. package/dist-es/ConversationsClient.js +7 -3
  39. package/dist-es/commands/AddChannelMemberCommand.js +12 -32
  40. package/dist-es/commands/AddChannelMembersCommand.js +12 -32
  41. package/dist-es/commands/CreateGroupChannelCommand.js +12 -32
  42. package/dist-es/commands/DeleteChannelCommand.js +12 -32
  43. package/dist-es/commands/DeleteChannelMemberCommand.js +12 -32
  44. package/dist-es/commands/DeleteMessageCommand.js +12 -32
  45. package/dist-es/commands/DeleteMessageReactionCommand.js +12 -32
  46. package/dist-es/commands/GetChannelCommand.js +12 -32
  47. package/dist-es/commands/GetChannelMemberCommand.js +12 -32
  48. package/dist-es/commands/GetDirectChannelIdCommand.js +12 -32
  49. package/dist-es/commands/GetMessageCommand.js +12 -32
  50. package/dist-es/commands/GetOrCreateDirectChannelCommand.js +12 -32
  51. package/dist-es/commands/HideChannelCommand.js +12 -32
  52. package/dist-es/commands/InviteCommand.js +12 -32
  53. package/dist-es/commands/JoinChannelCommand.js +12 -32
  54. package/dist-es/commands/LeaveChannelCommand.js +12 -32
  55. package/dist-es/commands/ListChannelMembersCommand.js +12 -32
  56. package/dist-es/commands/ListChannelsCommand.js +12 -32
  57. package/dist-es/commands/ListMessageReactionsCommand.js +12 -32
  58. package/dist-es/commands/ListMessagesCommand.js +12 -32
  59. package/dist-es/commands/MarkReadCommand.js +12 -32
  60. package/dist-es/commands/PartialUpdateChannelCommand.js +12 -32
  61. package/dist-es/commands/PartialUpdateMessageCommand.js +12 -32
  62. package/dist-es/commands/ScheduleExternalFlagAdjustmentJobCommand.js +12 -32
  63. package/dist-es/commands/SendGiphyCommand.js +12 -32
  64. package/dist-es/commands/SendMessageCommand.js +12 -32
  65. package/dist-es/commands/SendMessageReactionCommand.js +12 -32
  66. package/dist-es/commands/SendTypingStartCommand.js +12 -32
  67. package/dist-es/commands/SendTypingStopCommand.js +12 -32
  68. package/dist-es/commands/ShowChannelCommand.js +12 -32
  69. package/dist-es/commands/UpdateChannelCommand.js +12 -32
  70. package/dist-es/commands/UpdateMessageCommand.js +12 -32
  71. package/dist-es/protocols/Aws_restJson1.js +347 -1271
  72. package/dist-es/runtimeConfig.browser.js +4 -1
  73. package/dist-es/runtimeConfig.js +4 -1
  74. package/dist-es/runtimeConfig.shared.js +13 -11
  75. package/dist-types/Conversations.d.ts +4 -0
  76. package/dist-types/ConversationsClient.d.ts +13 -7
  77. package/dist-types/commands/AddChannelMemberCommand.d.ts +8 -19
  78. package/dist-types/commands/AddChannelMembersCommand.d.ts +8 -19
  79. package/dist-types/commands/CreateGroupChannelCommand.d.ts +7 -19
  80. package/dist-types/commands/DeleteChannelCommand.d.ts +7 -19
  81. package/dist-types/commands/DeleteChannelMemberCommand.d.ts +8 -19
  82. package/dist-types/commands/DeleteMessageCommand.d.ts +7 -19
  83. package/dist-types/commands/DeleteMessageReactionCommand.d.ts +7 -19
  84. package/dist-types/commands/GetChannelCommand.d.ts +7 -19
  85. package/dist-types/commands/GetChannelMemberCommand.d.ts +7 -19
  86. package/dist-types/commands/GetDirectChannelIdCommand.d.ts +9 -21
  87. package/dist-types/commands/GetMessageCommand.d.ts +7 -19
  88. package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +7 -19
  89. package/dist-types/commands/HideChannelCommand.d.ts +8 -84
  90. package/dist-types/commands/InviteCommand.d.ts +7 -19
  91. package/dist-types/commands/JoinChannelCommand.d.ts +7 -19
  92. package/dist-types/commands/LeaveChannelCommand.d.ts +7 -19
  93. package/dist-types/commands/ListChannelMembersCommand.d.ts +7 -19
  94. package/dist-types/commands/ListChannelsCommand.d.ts +7 -19
  95. package/dist-types/commands/ListMessageReactionsCommand.d.ts +7 -19
  96. package/dist-types/commands/ListMessagesCommand.d.ts +8 -20
  97. package/dist-types/commands/MarkReadCommand.d.ts +7 -19
  98. package/dist-types/commands/PartialUpdateChannelCommand.d.ts +8 -19
  99. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +7 -19
  100. package/dist-types/commands/ScheduleExternalFlagAdjustmentJobCommand.d.ts +8 -20
  101. package/dist-types/commands/SendGiphyCommand.d.ts +7 -19
  102. package/dist-types/commands/SendMessageCommand.d.ts +7 -19
  103. package/dist-types/commands/SendMessageReactionCommand.d.ts +7 -19
  104. package/dist-types/commands/SendTypingStartCommand.d.ts +7 -19
  105. package/dist-types/commands/SendTypingStopCommand.d.ts +7 -19
  106. package/dist-types/commands/ShowChannelCommand.d.ts +8 -84
  107. package/dist-types/commands/UpdateChannelCommand.d.ts +8 -19
  108. package/dist-types/commands/UpdateMessageCommand.d.ts +7 -19
  109. package/dist-types/index.d.ts +2 -0
  110. package/dist-types/models/models_0.d.ts +69 -46
  111. package/dist-types/runtimeConfig.browser.d.ts +3 -4
  112. package/dist-types/runtimeConfig.d.ts +3 -4
  113. package/dist-types/runtimeConfig.native.d.ts +3 -4
  114. package/package.json +30 -28
@@ -3,28 +3,32 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ConversationsClient = exports.__Client = void 0;
4
4
  const runtimeConfig_1 = require("./runtimeConfig");
5
5
  const runtimeExtensions_1 = require("./runtimeExtensions");
6
+ const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
6
7
  const smithy_client_1 = require("@smithy/smithy-client");
7
8
  Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
8
9
  const smithy_utils_1 = require("@wildix/smithy-utils");
9
10
  class ConversationsClient extends smithy_client_1.Client {
10
11
  constructor(...[configuration]) {
11
12
  let _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
12
- let _config_1 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_0, configuration?.extensions || []);
13
+ let _config_1 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_0);
14
+ let _config_2 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_1, configuration?.extensions || []);
15
+ const hostname = ['stable', 'stage'].includes(configuration.env || '') ? `api-${configuration.env}.x-bees.com` : 'api.x-bees.com';
13
16
  const endpoint = () => {
14
17
  return {
15
- hostname: configuration.env === 'prod' ? 'api.x-bees.com' : configuration.env === 'stable' ? 'api-stable.x-bees.com' : 'api-stage.x-bees.com',
18
+ hostname,
16
19
  protocol: "https",
17
20
  port: '443',
18
21
  path: ''
19
22
  };
20
23
  };
21
24
  const config = {
22
- ..._config_1,
25
+ ..._config_2,
23
26
  endpoint,
24
27
  };
25
28
  super(config);
26
29
  this.config = config;
27
30
  this.middlewareStack.add(smithy_utils_1.authorizationMiddleware.bind(this, configuration.token), { step: "build" });
31
+ this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
28
32
  }
29
33
  destroy() {
30
34
  super.destroy();
@@ -5,37 +5,17 @@ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
9
- class AddChannelMemberCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
- resolveMiddleware(clientStack, configuration, options) {
15
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
16
- const stack = clientStack.concat(this.middlewareStack);
17
- const { logger } = configuration;
18
- const clientName = "ConversationsClient";
19
- const commandName = "AddChannelMemberCommand";
20
- const handlerExecutionContext = {
21
- logger,
22
- clientName,
23
- commandName,
24
- inputFilterSensitiveLog: (_) => _,
25
- outputFilterSensitiveLog: (_) => _,
26
- [types_1.SMITHY_CONTEXT_KEY]: {
27
- service: "Conversations",
28
- operation: "AddChannelMember",
29
- },
30
- };
31
- const { requestHandler } = configuration;
32
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
33
- }
34
- serialize(input, context) {
35
- return (0, Aws_restJson1_1.se_AddChannelMemberCommand)(input, context);
36
- }
37
- deserialize(output, context) {
38
- return (0, Aws_restJson1_1.de_AddChannelMemberCommand)(output, context);
39
- }
8
+ class AddChannelMemberCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Conversations", "AddChannelMember", {})
15
+ .n("ConversationsClient", "AddChannelMemberCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_AddChannelMemberCommand)
18
+ .de(Aws_restJson1_1.de_AddChannelMemberCommand)
19
+ .build() {
40
20
  }
41
21
  exports.AddChannelMemberCommand = AddChannelMemberCommand;
@@ -5,37 +5,17 @@ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
9
- class AddChannelMembersCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
- resolveMiddleware(clientStack, configuration, options) {
15
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
16
- const stack = clientStack.concat(this.middlewareStack);
17
- const { logger } = configuration;
18
- const clientName = "ConversationsClient";
19
- const commandName = "AddChannelMembersCommand";
20
- const handlerExecutionContext = {
21
- logger,
22
- clientName,
23
- commandName,
24
- inputFilterSensitiveLog: (_) => _,
25
- outputFilterSensitiveLog: (_) => _,
26
- [types_1.SMITHY_CONTEXT_KEY]: {
27
- service: "Conversations",
28
- operation: "AddChannelMembers",
29
- },
30
- };
31
- const { requestHandler } = configuration;
32
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
33
- }
34
- serialize(input, context) {
35
- return (0, Aws_restJson1_1.se_AddChannelMembersCommand)(input, context);
36
- }
37
- deserialize(output, context) {
38
- return (0, Aws_restJson1_1.de_AddChannelMembersCommand)(output, context);
39
- }
8
+ class AddChannelMembersCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Conversations", "AddChannelMembers", {})
15
+ .n("ConversationsClient", "AddChannelMembersCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_AddChannelMembersCommand)
18
+ .de(Aws_restJson1_1.de_AddChannelMembersCommand)
19
+ .build() {
40
20
  }
41
21
  exports.AddChannelMembersCommand = AddChannelMembersCommand;
@@ -5,37 +5,17 @@ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
9
- class CreateGroupChannelCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
- resolveMiddleware(clientStack, configuration, options) {
15
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
16
- const stack = clientStack.concat(this.middlewareStack);
17
- const { logger } = configuration;
18
- const clientName = "ConversationsClient";
19
- const commandName = "CreateGroupChannelCommand";
20
- const handlerExecutionContext = {
21
- logger,
22
- clientName,
23
- commandName,
24
- inputFilterSensitiveLog: (_) => _,
25
- outputFilterSensitiveLog: (_) => _,
26
- [types_1.SMITHY_CONTEXT_KEY]: {
27
- service: "Conversations",
28
- operation: "CreateGroupChannel",
29
- },
30
- };
31
- const { requestHandler } = configuration;
32
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
33
- }
34
- serialize(input, context) {
35
- return (0, Aws_restJson1_1.se_CreateGroupChannelCommand)(input, context);
36
- }
37
- deserialize(output, context) {
38
- return (0, Aws_restJson1_1.de_CreateGroupChannelCommand)(output, context);
39
- }
8
+ class CreateGroupChannelCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Conversations", "CreateGroupChannel", {})
15
+ .n("ConversationsClient", "CreateGroupChannelCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_CreateGroupChannelCommand)
18
+ .de(Aws_restJson1_1.de_CreateGroupChannelCommand)
19
+ .build() {
40
20
  }
41
21
  exports.CreateGroupChannelCommand = CreateGroupChannelCommand;
@@ -5,37 +5,17 @@ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
9
- class DeleteChannelCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
- resolveMiddleware(clientStack, configuration, options) {
15
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
16
- const stack = clientStack.concat(this.middlewareStack);
17
- const { logger } = configuration;
18
- const clientName = "ConversationsClient";
19
- const commandName = "DeleteChannelCommand";
20
- const handlerExecutionContext = {
21
- logger,
22
- clientName,
23
- commandName,
24
- inputFilterSensitiveLog: (_) => _,
25
- outputFilterSensitiveLog: (_) => _,
26
- [types_1.SMITHY_CONTEXT_KEY]: {
27
- service: "Conversations",
28
- operation: "DeleteChannel",
29
- },
30
- };
31
- const { requestHandler } = configuration;
32
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
33
- }
34
- serialize(input, context) {
35
- return (0, Aws_restJson1_1.se_DeleteChannelCommand)(input, context);
36
- }
37
- deserialize(output, context) {
38
- return (0, Aws_restJson1_1.de_DeleteChannelCommand)(output, context);
39
- }
8
+ class DeleteChannelCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Conversations", "DeleteChannel", {})
15
+ .n("ConversationsClient", "DeleteChannelCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_DeleteChannelCommand)
18
+ .de(Aws_restJson1_1.de_DeleteChannelCommand)
19
+ .build() {
40
20
  }
41
21
  exports.DeleteChannelCommand = DeleteChannelCommand;
@@ -5,37 +5,17 @@ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
9
- class DeleteChannelMemberCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
- resolveMiddleware(clientStack, configuration, options) {
15
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
16
- const stack = clientStack.concat(this.middlewareStack);
17
- const { logger } = configuration;
18
- const clientName = "ConversationsClient";
19
- const commandName = "DeleteChannelMemberCommand";
20
- const handlerExecutionContext = {
21
- logger,
22
- clientName,
23
- commandName,
24
- inputFilterSensitiveLog: (_) => _,
25
- outputFilterSensitiveLog: (_) => _,
26
- [types_1.SMITHY_CONTEXT_KEY]: {
27
- service: "Conversations",
28
- operation: "DeleteChannelMember",
29
- },
30
- };
31
- const { requestHandler } = configuration;
32
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
33
- }
34
- serialize(input, context) {
35
- return (0, Aws_restJson1_1.se_DeleteChannelMemberCommand)(input, context);
36
- }
37
- deserialize(output, context) {
38
- return (0, Aws_restJson1_1.de_DeleteChannelMemberCommand)(output, context);
39
- }
8
+ class DeleteChannelMemberCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Conversations", "DeleteChannelMember", {})
15
+ .n("ConversationsClient", "DeleteChannelMemberCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_DeleteChannelMemberCommand)
18
+ .de(Aws_restJson1_1.de_DeleteChannelMemberCommand)
19
+ .build() {
40
20
  }
41
21
  exports.DeleteChannelMemberCommand = DeleteChannelMemberCommand;
@@ -5,37 +5,17 @@ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
9
- class DeleteMessageCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
- resolveMiddleware(clientStack, configuration, options) {
15
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
16
- const stack = clientStack.concat(this.middlewareStack);
17
- const { logger } = configuration;
18
- const clientName = "ConversationsClient";
19
- const commandName = "DeleteMessageCommand";
20
- const handlerExecutionContext = {
21
- logger,
22
- clientName,
23
- commandName,
24
- inputFilterSensitiveLog: (_) => _,
25
- outputFilterSensitiveLog: (_) => _,
26
- [types_1.SMITHY_CONTEXT_KEY]: {
27
- service: "Conversations",
28
- operation: "DeleteMessage",
29
- },
30
- };
31
- const { requestHandler } = configuration;
32
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
33
- }
34
- serialize(input, context) {
35
- return (0, Aws_restJson1_1.se_DeleteMessageCommand)(input, context);
36
- }
37
- deserialize(output, context) {
38
- return (0, Aws_restJson1_1.de_DeleteMessageCommand)(output, context);
39
- }
8
+ class DeleteMessageCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Conversations", "DeleteMessage", {})
15
+ .n("ConversationsClient", "DeleteMessageCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_DeleteMessageCommand)
18
+ .de(Aws_restJson1_1.de_DeleteMessageCommand)
19
+ .build() {
40
20
  }
41
21
  exports.DeleteMessageCommand = DeleteMessageCommand;
@@ -5,37 +5,17 @@ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
9
- class DeleteMessageReactionCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
- resolveMiddleware(clientStack, configuration, options) {
15
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
16
- const stack = clientStack.concat(this.middlewareStack);
17
- const { logger } = configuration;
18
- const clientName = "ConversationsClient";
19
- const commandName = "DeleteMessageReactionCommand";
20
- const handlerExecutionContext = {
21
- logger,
22
- clientName,
23
- commandName,
24
- inputFilterSensitiveLog: (_) => _,
25
- outputFilterSensitiveLog: (_) => _,
26
- [types_1.SMITHY_CONTEXT_KEY]: {
27
- service: "Conversations",
28
- operation: "DeleteMessageReaction",
29
- },
30
- };
31
- const { requestHandler } = configuration;
32
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
33
- }
34
- serialize(input, context) {
35
- return (0, Aws_restJson1_1.se_DeleteMessageReactionCommand)(input, context);
36
- }
37
- deserialize(output, context) {
38
- return (0, Aws_restJson1_1.de_DeleteMessageReactionCommand)(output, context);
39
- }
8
+ class DeleteMessageReactionCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Conversations", "DeleteMessageReaction", {})
15
+ .n("ConversationsClient", "DeleteMessageReactionCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_DeleteMessageReactionCommand)
18
+ .de(Aws_restJson1_1.de_DeleteMessageReactionCommand)
19
+ .build() {
40
20
  }
41
21
  exports.DeleteMessageReactionCommand = DeleteMessageReactionCommand;
@@ -5,37 +5,17 @@ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
9
- class GetChannelCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
- resolveMiddleware(clientStack, configuration, options) {
15
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
16
- const stack = clientStack.concat(this.middlewareStack);
17
- const { logger } = configuration;
18
- const clientName = "ConversationsClient";
19
- const commandName = "GetChannelCommand";
20
- const handlerExecutionContext = {
21
- logger,
22
- clientName,
23
- commandName,
24
- inputFilterSensitiveLog: (_) => _,
25
- outputFilterSensitiveLog: (_) => _,
26
- [types_1.SMITHY_CONTEXT_KEY]: {
27
- service: "Conversations",
28
- operation: "GetChannel",
29
- },
30
- };
31
- const { requestHandler } = configuration;
32
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
33
- }
34
- serialize(input, context) {
35
- return (0, Aws_restJson1_1.se_GetChannelCommand)(input, context);
36
- }
37
- deserialize(output, context) {
38
- return (0, Aws_restJson1_1.de_GetChannelCommand)(output, context);
39
- }
8
+ class GetChannelCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Conversations", "GetChannel", {})
15
+ .n("ConversationsClient", "GetChannelCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetChannelCommand)
18
+ .de(Aws_restJson1_1.de_GetChannelCommand)
19
+ .build() {
40
20
  }
41
21
  exports.GetChannelCommand = GetChannelCommand;
@@ -5,37 +5,17 @@ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
9
- class GetChannelMemberCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
- resolveMiddleware(clientStack, configuration, options) {
15
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
16
- const stack = clientStack.concat(this.middlewareStack);
17
- const { logger } = configuration;
18
- const clientName = "ConversationsClient";
19
- const commandName = "GetChannelMemberCommand";
20
- const handlerExecutionContext = {
21
- logger,
22
- clientName,
23
- commandName,
24
- inputFilterSensitiveLog: (_) => _,
25
- outputFilterSensitiveLog: (_) => _,
26
- [types_1.SMITHY_CONTEXT_KEY]: {
27
- service: "Conversations",
28
- operation: "GetChannelMember",
29
- },
30
- };
31
- const { requestHandler } = configuration;
32
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
33
- }
34
- serialize(input, context) {
35
- return (0, Aws_restJson1_1.se_GetChannelMemberCommand)(input, context);
36
- }
37
- deserialize(output, context) {
38
- return (0, Aws_restJson1_1.de_GetChannelMemberCommand)(output, context);
39
- }
8
+ class GetChannelMemberCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Conversations", "GetChannelMember", {})
15
+ .n("ConversationsClient", "GetChannelMemberCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetChannelMemberCommand)
18
+ .de(Aws_restJson1_1.de_GetChannelMemberCommand)
19
+ .build() {
40
20
  }
41
21
  exports.GetChannelMemberCommand = GetChannelMemberCommand;
@@ -5,37 +5,17 @@ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
9
- class GetDirectChannelIdCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
- resolveMiddleware(clientStack, configuration, options) {
15
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
16
- const stack = clientStack.concat(this.middlewareStack);
17
- const { logger } = configuration;
18
- const clientName = "ConversationsClient";
19
- const commandName = "GetDirectChannelIdCommand";
20
- const handlerExecutionContext = {
21
- logger,
22
- clientName,
23
- commandName,
24
- inputFilterSensitiveLog: (_) => _,
25
- outputFilterSensitiveLog: (_) => _,
26
- [types_1.SMITHY_CONTEXT_KEY]: {
27
- service: "Conversations",
28
- operation: "GetDirectChannelId",
29
- },
30
- };
31
- const { requestHandler } = configuration;
32
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
33
- }
34
- serialize(input, context) {
35
- return (0, Aws_restJson1_1.se_GetDirectChannelIdCommand)(input, context);
36
- }
37
- deserialize(output, context) {
38
- return (0, Aws_restJson1_1.de_GetDirectChannelIdCommand)(output, context);
39
- }
8
+ class GetDirectChannelIdCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Conversations", "GetDirectChannelId", {})
15
+ .n("ConversationsClient", "GetDirectChannelIdCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetDirectChannelIdCommand)
18
+ .de(Aws_restJson1_1.de_GetDirectChannelIdCommand)
19
+ .build() {
40
20
  }
41
21
  exports.GetDirectChannelIdCommand = GetDirectChannelIdCommand;
@@ -5,37 +5,17 @@ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
9
- class GetMessageCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
- resolveMiddleware(clientStack, configuration, options) {
15
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
16
- const stack = clientStack.concat(this.middlewareStack);
17
- const { logger } = configuration;
18
- const clientName = "ConversationsClient";
19
- const commandName = "GetMessageCommand";
20
- const handlerExecutionContext = {
21
- logger,
22
- clientName,
23
- commandName,
24
- inputFilterSensitiveLog: (_) => _,
25
- outputFilterSensitiveLog: (_) => _,
26
- [types_1.SMITHY_CONTEXT_KEY]: {
27
- service: "Conversations",
28
- operation: "GetMessage",
29
- },
30
- };
31
- const { requestHandler } = configuration;
32
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
33
- }
34
- serialize(input, context) {
35
- return (0, Aws_restJson1_1.se_GetMessageCommand)(input, context);
36
- }
37
- deserialize(output, context) {
38
- return (0, Aws_restJson1_1.de_GetMessageCommand)(output, context);
39
- }
8
+ class GetMessageCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Conversations", "GetMessage", {})
15
+ .n("ConversationsClient", "GetMessageCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetMessageCommand)
18
+ .de(Aws_restJson1_1.de_GetMessageCommand)
19
+ .build() {
40
20
  }
41
21
  exports.GetMessageCommand = GetMessageCommand;