@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
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
4
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
+ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
5
8
  const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
6
9
  const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
7
10
  const util_retry_1 = require("@smithy/util-retry");
@@ -18,8 +21,9 @@ const getRuntimeConfig = (config) => {
18
21
  runtime: "browser",
19
22
  defaultsMode,
20
23
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
24
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: package_json_1.default.name, clientVersion: package_json_1.default.version }),
21
25
  maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
22
- requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
26
+ requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
23
27
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
24
28
  sha256: config?.sha256 ?? sha256_browser_1.Sha256,
25
29
  streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
+ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
4
7
  const hash_node_1 = require("@smithy/hash-node");
5
8
  const middleware_retry_1 = require("@smithy/middleware-retry");
6
9
  const node_config_provider_1 = require("@smithy/node-config-provider");
@@ -22,8 +25,9 @@ const getRuntimeConfig = (config) => {
22
25
  runtime: "node",
23
26
  defaultsMode,
24
27
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
28
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: package_json_1.default.name, clientVersion: package_json_1.default.version }),
25
29
  maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
26
- requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
30
+ requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
27
31
  retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, }),
28
32
  sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
29
33
  streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
@@ -5,15 +5,17 @@ const smithy_client_1 = require("@smithy/smithy-client");
5
5
  const url_parser_1 = require("@smithy/url-parser");
6
6
  const util_base64_1 = require("@smithy/util-base64");
7
7
  const util_utf8_1 = require("@smithy/util-utf8");
8
- const getRuntimeConfig = (config) => ({
9
- apiVersion: "v2",
10
- base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
11
- base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
12
- disableHostPrefix: config?.disableHostPrefix ?? false,
13
- extensions: config?.extensions ?? [],
14
- logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
15
- urlParser: config?.urlParser ?? url_parser_1.parseUrl,
16
- utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
17
- utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
18
- });
8
+ const getRuntimeConfig = (config) => {
9
+ return {
10
+ apiVersion: "v2",
11
+ base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
12
+ base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
13
+ disableHostPrefix: config?.disableHostPrefix ?? false,
14
+ extensions: config?.extensions ?? [],
15
+ logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
16
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
17
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
18
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
19
+ };
20
+ };
19
21
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,27 +1,31 @@
1
1
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
2
2
  import { resolveRuntimeExtensions, } from "./runtimeExtensions";
3
+ import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
3
4
  import { Client as __Client, } from "@smithy/smithy-client";
4
5
  import { authorizationMiddleware } from '@wildix/smithy-utils';
5
6
  export { __Client };
6
7
  export class ConversationsClient extends __Client {
7
8
  constructor(...[configuration]) {
8
9
  let _config_0 = __getRuntimeConfig(configuration || {});
9
- let _config_1 = resolveRuntimeExtensions(_config_0, configuration?.extensions || []);
10
+ let _config_1 = resolveUserAgentConfig(_config_0);
11
+ let _config_2 = resolveRuntimeExtensions(_config_1, configuration?.extensions || []);
12
+ const hostname = ['stable', 'stage'].includes(configuration.env || '') ? `api-${configuration.env}.x-bees.com` : 'api.x-bees.com';
10
13
  const endpoint = () => {
11
14
  return {
12
- hostname: configuration.env === 'prod' ? 'api.x-bees.com' : configuration.env === 'stable' ? 'api-stable.x-bees.com' : 'api-stage.x-bees.com',
15
+ hostname,
13
16
  protocol: "https",
14
17
  port: '443',
15
18
  path: ''
16
19
  };
17
20
  };
18
21
  const config = {
19
- ..._config_1,
22
+ ..._config_2,
20
23
  endpoint,
21
24
  };
22
25
  super(config);
23
26
  this.config = config;
24
27
  this.middlewareStack.add(authorizationMiddleware.bind(this, configuration.token), { step: "build" });
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
25
29
  }
26
30
  destroy() {
27
31
  super.destroy();
@@ -1,37 +1,17 @@
1
1
  import { de_AddChannelMemberCommand, se_AddChannelMemberCommand, } from "../protocols/Aws_restJson1";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
4
  export { $Command };
6
- export class AddChannelMemberCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
- resolveMiddleware(clientStack, configuration, options) {
12
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
- const stack = clientStack.concat(this.middlewareStack);
14
- const { logger } = configuration;
15
- const clientName = "ConversationsClient";
16
- const commandName = "AddChannelMemberCommand";
17
- const handlerExecutionContext = {
18
- logger,
19
- clientName,
20
- commandName,
21
- inputFilterSensitiveLog: (_) => _,
22
- outputFilterSensitiveLog: (_) => _,
23
- [SMITHY_CONTEXT_KEY]: {
24
- service: "Conversations",
25
- operation: "AddChannelMember",
26
- },
27
- };
28
- const { requestHandler } = configuration;
29
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
- }
31
- serialize(input, context) {
32
- return se_AddChannelMemberCommand(input, context);
33
- }
34
- deserialize(output, context) {
35
- return de_AddChannelMemberCommand(output, context);
36
- }
5
+ export class AddChannelMemberCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Conversations", "AddChannelMember", {})
12
+ .n("ConversationsClient", "AddChannelMemberCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_AddChannelMemberCommand)
15
+ .de(de_AddChannelMemberCommand)
16
+ .build() {
37
17
  }
@@ -1,37 +1,17 @@
1
1
  import { de_AddChannelMembersCommand, se_AddChannelMembersCommand, } from "../protocols/Aws_restJson1";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
4
  export { $Command };
6
- export class AddChannelMembersCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
- resolveMiddleware(clientStack, configuration, options) {
12
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
- const stack = clientStack.concat(this.middlewareStack);
14
- const { logger } = configuration;
15
- const clientName = "ConversationsClient";
16
- const commandName = "AddChannelMembersCommand";
17
- const handlerExecutionContext = {
18
- logger,
19
- clientName,
20
- commandName,
21
- inputFilterSensitiveLog: (_) => _,
22
- outputFilterSensitiveLog: (_) => _,
23
- [SMITHY_CONTEXT_KEY]: {
24
- service: "Conversations",
25
- operation: "AddChannelMembers",
26
- },
27
- };
28
- const { requestHandler } = configuration;
29
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
- }
31
- serialize(input, context) {
32
- return se_AddChannelMembersCommand(input, context);
33
- }
34
- deserialize(output, context) {
35
- return de_AddChannelMembersCommand(output, context);
36
- }
5
+ export class AddChannelMembersCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Conversations", "AddChannelMembers", {})
12
+ .n("ConversationsClient", "AddChannelMembersCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_AddChannelMembersCommand)
15
+ .de(de_AddChannelMembersCommand)
16
+ .build() {
37
17
  }
@@ -1,37 +1,17 @@
1
1
  import { de_CreateGroupChannelCommand, se_CreateGroupChannelCommand, } from "../protocols/Aws_restJson1";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
4
  export { $Command };
6
- export class CreateGroupChannelCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
- resolveMiddleware(clientStack, configuration, options) {
12
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
- const stack = clientStack.concat(this.middlewareStack);
14
- const { logger } = configuration;
15
- const clientName = "ConversationsClient";
16
- const commandName = "CreateGroupChannelCommand";
17
- const handlerExecutionContext = {
18
- logger,
19
- clientName,
20
- commandName,
21
- inputFilterSensitiveLog: (_) => _,
22
- outputFilterSensitiveLog: (_) => _,
23
- [SMITHY_CONTEXT_KEY]: {
24
- service: "Conversations",
25
- operation: "CreateGroupChannel",
26
- },
27
- };
28
- const { requestHandler } = configuration;
29
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
- }
31
- serialize(input, context) {
32
- return se_CreateGroupChannelCommand(input, context);
33
- }
34
- deserialize(output, context) {
35
- return de_CreateGroupChannelCommand(output, context);
36
- }
5
+ export class CreateGroupChannelCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Conversations", "CreateGroupChannel", {})
12
+ .n("ConversationsClient", "CreateGroupChannelCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_CreateGroupChannelCommand)
15
+ .de(de_CreateGroupChannelCommand)
16
+ .build() {
37
17
  }
@@ -1,37 +1,17 @@
1
1
  import { de_DeleteChannelCommand, se_DeleteChannelCommand, } from "../protocols/Aws_restJson1";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
4
  export { $Command };
6
- export class DeleteChannelCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
- resolveMiddleware(clientStack, configuration, options) {
12
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
- const stack = clientStack.concat(this.middlewareStack);
14
- const { logger } = configuration;
15
- const clientName = "ConversationsClient";
16
- const commandName = "DeleteChannelCommand";
17
- const handlerExecutionContext = {
18
- logger,
19
- clientName,
20
- commandName,
21
- inputFilterSensitiveLog: (_) => _,
22
- outputFilterSensitiveLog: (_) => _,
23
- [SMITHY_CONTEXT_KEY]: {
24
- service: "Conversations",
25
- operation: "DeleteChannel",
26
- },
27
- };
28
- const { requestHandler } = configuration;
29
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
- }
31
- serialize(input, context) {
32
- return se_DeleteChannelCommand(input, context);
33
- }
34
- deserialize(output, context) {
35
- return de_DeleteChannelCommand(output, context);
36
- }
5
+ export class DeleteChannelCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Conversations", "DeleteChannel", {})
12
+ .n("ConversationsClient", "DeleteChannelCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_DeleteChannelCommand)
15
+ .de(de_DeleteChannelCommand)
16
+ .build() {
37
17
  }
@@ -1,37 +1,17 @@
1
1
  import { de_DeleteChannelMemberCommand, se_DeleteChannelMemberCommand, } from "../protocols/Aws_restJson1";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
4
  export { $Command };
6
- export class DeleteChannelMemberCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
- resolveMiddleware(clientStack, configuration, options) {
12
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
- const stack = clientStack.concat(this.middlewareStack);
14
- const { logger } = configuration;
15
- const clientName = "ConversationsClient";
16
- const commandName = "DeleteChannelMemberCommand";
17
- const handlerExecutionContext = {
18
- logger,
19
- clientName,
20
- commandName,
21
- inputFilterSensitiveLog: (_) => _,
22
- outputFilterSensitiveLog: (_) => _,
23
- [SMITHY_CONTEXT_KEY]: {
24
- service: "Conversations",
25
- operation: "DeleteChannelMember",
26
- },
27
- };
28
- const { requestHandler } = configuration;
29
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
- }
31
- serialize(input, context) {
32
- return se_DeleteChannelMemberCommand(input, context);
33
- }
34
- deserialize(output, context) {
35
- return de_DeleteChannelMemberCommand(output, context);
36
- }
5
+ export class DeleteChannelMemberCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Conversations", "DeleteChannelMember", {})
12
+ .n("ConversationsClient", "DeleteChannelMemberCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_DeleteChannelMemberCommand)
15
+ .de(de_DeleteChannelMemberCommand)
16
+ .build() {
37
17
  }
@@ -1,37 +1,17 @@
1
1
  import { de_DeleteMessageCommand, se_DeleteMessageCommand, } from "../protocols/Aws_restJson1";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
4
  export { $Command };
6
- export class DeleteMessageCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
- resolveMiddleware(clientStack, configuration, options) {
12
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
- const stack = clientStack.concat(this.middlewareStack);
14
- const { logger } = configuration;
15
- const clientName = "ConversationsClient";
16
- const commandName = "DeleteMessageCommand";
17
- const handlerExecutionContext = {
18
- logger,
19
- clientName,
20
- commandName,
21
- inputFilterSensitiveLog: (_) => _,
22
- outputFilterSensitiveLog: (_) => _,
23
- [SMITHY_CONTEXT_KEY]: {
24
- service: "Conversations",
25
- operation: "DeleteMessage",
26
- },
27
- };
28
- const { requestHandler } = configuration;
29
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
- }
31
- serialize(input, context) {
32
- return se_DeleteMessageCommand(input, context);
33
- }
34
- deserialize(output, context) {
35
- return de_DeleteMessageCommand(output, context);
36
- }
5
+ export class DeleteMessageCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Conversations", "DeleteMessage", {})
12
+ .n("ConversationsClient", "DeleteMessageCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_DeleteMessageCommand)
15
+ .de(de_DeleteMessageCommand)
16
+ .build() {
37
17
  }
@@ -1,37 +1,17 @@
1
1
  import { de_DeleteMessageReactionCommand, se_DeleteMessageReactionCommand, } from "../protocols/Aws_restJson1";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
4
  export { $Command };
6
- export class DeleteMessageReactionCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
- resolveMiddleware(clientStack, configuration, options) {
12
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
- const stack = clientStack.concat(this.middlewareStack);
14
- const { logger } = configuration;
15
- const clientName = "ConversationsClient";
16
- const commandName = "DeleteMessageReactionCommand";
17
- const handlerExecutionContext = {
18
- logger,
19
- clientName,
20
- commandName,
21
- inputFilterSensitiveLog: (_) => _,
22
- outputFilterSensitiveLog: (_) => _,
23
- [SMITHY_CONTEXT_KEY]: {
24
- service: "Conversations",
25
- operation: "DeleteMessageReaction",
26
- },
27
- };
28
- const { requestHandler } = configuration;
29
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
- }
31
- serialize(input, context) {
32
- return se_DeleteMessageReactionCommand(input, context);
33
- }
34
- deserialize(output, context) {
35
- return de_DeleteMessageReactionCommand(output, context);
36
- }
5
+ export class DeleteMessageReactionCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Conversations", "DeleteMessageReaction", {})
12
+ .n("ConversationsClient", "DeleteMessageReactionCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_DeleteMessageReactionCommand)
15
+ .de(de_DeleteMessageReactionCommand)
16
+ .build() {
37
17
  }
@@ -1,37 +1,17 @@
1
1
  import { de_GetChannelCommand, se_GetChannelCommand, } from "../protocols/Aws_restJson1";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
4
  export { $Command };
6
- export class GetChannelCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
- resolveMiddleware(clientStack, configuration, options) {
12
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
- const stack = clientStack.concat(this.middlewareStack);
14
- const { logger } = configuration;
15
- const clientName = "ConversationsClient";
16
- const commandName = "GetChannelCommand";
17
- const handlerExecutionContext = {
18
- logger,
19
- clientName,
20
- commandName,
21
- inputFilterSensitiveLog: (_) => _,
22
- outputFilterSensitiveLog: (_) => _,
23
- [SMITHY_CONTEXT_KEY]: {
24
- service: "Conversations",
25
- operation: "GetChannel",
26
- },
27
- };
28
- const { requestHandler } = configuration;
29
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
- }
31
- serialize(input, context) {
32
- return se_GetChannelCommand(input, context);
33
- }
34
- deserialize(output, context) {
35
- return de_GetChannelCommand(output, context);
36
- }
5
+ export class GetChannelCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Conversations", "GetChannel", {})
12
+ .n("ConversationsClient", "GetChannelCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetChannelCommand)
15
+ .de(de_GetChannelCommand)
16
+ .build() {
37
17
  }
@@ -1,37 +1,17 @@
1
1
  import { de_GetChannelMemberCommand, se_GetChannelMemberCommand, } from "../protocols/Aws_restJson1";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
4
  export { $Command };
6
- export class GetChannelMemberCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
- resolveMiddleware(clientStack, configuration, options) {
12
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
- const stack = clientStack.concat(this.middlewareStack);
14
- const { logger } = configuration;
15
- const clientName = "ConversationsClient";
16
- const commandName = "GetChannelMemberCommand";
17
- const handlerExecutionContext = {
18
- logger,
19
- clientName,
20
- commandName,
21
- inputFilterSensitiveLog: (_) => _,
22
- outputFilterSensitiveLog: (_) => _,
23
- [SMITHY_CONTEXT_KEY]: {
24
- service: "Conversations",
25
- operation: "GetChannelMember",
26
- },
27
- };
28
- const { requestHandler } = configuration;
29
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
- }
31
- serialize(input, context) {
32
- return se_GetChannelMemberCommand(input, context);
33
- }
34
- deserialize(output, context) {
35
- return de_GetChannelMemberCommand(output, context);
36
- }
5
+ export class GetChannelMemberCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Conversations", "GetChannelMember", {})
12
+ .n("ConversationsClient", "GetChannelMemberCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetChannelMemberCommand)
15
+ .de(de_GetChannelMemberCommand)
16
+ .build() {
37
17
  }
@@ -1,37 +1,17 @@
1
1
  import { de_GetDirectChannelIdCommand, se_GetDirectChannelIdCommand, } from "../protocols/Aws_restJson1";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
4
  export { $Command };
6
- export class GetDirectChannelIdCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
- resolveMiddleware(clientStack, configuration, options) {
12
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
- const stack = clientStack.concat(this.middlewareStack);
14
- const { logger } = configuration;
15
- const clientName = "ConversationsClient";
16
- const commandName = "GetDirectChannelIdCommand";
17
- const handlerExecutionContext = {
18
- logger,
19
- clientName,
20
- commandName,
21
- inputFilterSensitiveLog: (_) => _,
22
- outputFilterSensitiveLog: (_) => _,
23
- [SMITHY_CONTEXT_KEY]: {
24
- service: "Conversations",
25
- operation: "GetDirectChannelId",
26
- },
27
- };
28
- const { requestHandler } = configuration;
29
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
- }
31
- serialize(input, context) {
32
- return se_GetDirectChannelIdCommand(input, context);
33
- }
34
- deserialize(output, context) {
35
- return de_GetDirectChannelIdCommand(output, context);
36
- }
5
+ export class GetDirectChannelIdCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Conversations", "GetDirectChannelId", {})
12
+ .n("ConversationsClient", "GetDirectChannelIdCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetDirectChannelIdCommand)
15
+ .de(de_GetDirectChannelIdCommand)
16
+ .build() {
37
17
  }