@wildix/xbees-users-client 1.0.7 → 1.0.8

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 (65) hide show
  1. package/dist-cjs/Users.js +6 -0
  2. package/dist-cjs/UsersClient.js +7 -3
  3. package/dist-cjs/commands/BatchGetUsersPbxLinkDataCommand.js +12 -32
  4. package/dist-cjs/commands/BatchGetUsersStreamLinkDataCommand.js +12 -32
  5. package/dist-cjs/commands/CreateBotApiKeyCommand.js +12 -32
  6. package/dist-cjs/commands/CreateBotCommand.js +12 -32
  7. package/dist-cjs/commands/DeleteBotApiKeyCommand.js +12 -32
  8. package/dist-cjs/commands/DeleteBotCommand.js +12 -32
  9. package/dist-cjs/commands/GetBotCallbackCommand.js +21 -0
  10. package/dist-cjs/commands/GetBotCommand.js +21 -0
  11. package/dist-cjs/commands/ListBotApiKeysCommand.js +12 -32
  12. package/dist-cjs/commands/ListBotsCommand.js +12 -32
  13. package/dist-cjs/commands/UpdateBotCallbackCommand.js +21 -0
  14. package/dist-cjs/commands/UpdateBotCommand.js +12 -32
  15. package/dist-cjs/commands/VerifyBotSecretKeyCommand.js +12 -32
  16. package/dist-cjs/commands/index.js +3 -0
  17. package/dist-cjs/models/models_0.js +25 -21
  18. package/dist-cjs/protocols/Aws_restJson1.js +200 -352
  19. package/dist-cjs/runtimeConfig.browser.js +5 -1
  20. package/dist-cjs/runtimeConfig.js +5 -1
  21. package/dist-cjs/runtimeConfig.shared.js +13 -11
  22. package/dist-es/Users.js +6 -0
  23. package/dist-es/UsersClient.js +7 -3
  24. package/dist-es/commands/BatchGetUsersPbxLinkDataCommand.js +12 -32
  25. package/dist-es/commands/BatchGetUsersStreamLinkDataCommand.js +12 -32
  26. package/dist-es/commands/CreateBotApiKeyCommand.js +12 -32
  27. package/dist-es/commands/CreateBotCommand.js +12 -32
  28. package/dist-es/commands/DeleteBotApiKeyCommand.js +12 -32
  29. package/dist-es/commands/DeleteBotCommand.js +12 -32
  30. package/dist-es/commands/GetBotCallbackCommand.js +17 -0
  31. package/dist-es/commands/GetBotCommand.js +17 -0
  32. package/dist-es/commands/ListBotApiKeysCommand.js +12 -32
  33. package/dist-es/commands/ListBotsCommand.js +12 -32
  34. package/dist-es/commands/UpdateBotCallbackCommand.js +17 -0
  35. package/dist-es/commands/UpdateBotCommand.js +12 -32
  36. package/dist-es/commands/VerifyBotSecretKeyCommand.js +12 -32
  37. package/dist-es/commands/index.js +3 -0
  38. package/dist-es/models/models_0.js +22 -18
  39. package/dist-es/protocols/Aws_restJson1.js +192 -350
  40. package/dist-es/runtimeConfig.browser.js +4 -1
  41. package/dist-es/runtimeConfig.js +4 -1
  42. package/dist-es/runtimeConfig.shared.js +13 -11
  43. package/dist-types/Users.d.ts +22 -0
  44. package/dist-types/UsersClient.d.ts +18 -9
  45. package/dist-types/commands/BatchGetUsersPbxLinkDataCommand.d.ts +7 -19
  46. package/dist-types/commands/BatchGetUsersStreamLinkDataCommand.d.ts +7 -19
  47. package/dist-types/commands/CreateBotApiKeyCommand.d.ts +11 -45
  48. package/dist-types/commands/CreateBotCommand.d.ts +32 -66
  49. package/dist-types/commands/DeleteBotApiKeyCommand.d.ts +7 -19
  50. package/dist-types/commands/DeleteBotCommand.d.ts +7 -19
  51. package/dist-types/commands/GetBotCallbackCommand.d.ts +91 -0
  52. package/dist-types/commands/GetBotCommand.d.ts +73 -0
  53. package/dist-types/commands/ListBotApiKeysCommand.d.ts +7 -19
  54. package/dist-types/commands/ListBotsCommand.d.ts +9 -45
  55. package/dist-types/commands/UpdateBotCallbackCommand.d.ts +115 -0
  56. package/dist-types/commands/UpdateBotCommand.d.ts +12 -71
  57. package/dist-types/commands/VerifyBotSecretKeyCommand.d.ts +7 -19
  58. package/dist-types/commands/index.d.ts +3 -0
  59. package/dist-types/index.d.ts +2 -0
  60. package/dist-types/models/models_0.d.ts +155 -62
  61. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  62. package/dist-types/runtimeConfig.browser.d.ts +3 -4
  63. package/dist-types/runtimeConfig.d.ts +3 -4
  64. package/dist-types/runtimeConfig.native.d.ts +3 -4
  65. package/package.json +32 -31
@@ -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: "2018-05-10",
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: "2018-05-10",
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;
package/dist-es/Users.js CHANGED
@@ -5,8 +5,11 @@ import { CreateBotApiKeyCommand, } from "./commands/CreateBotApiKeyCommand";
5
5
  import { CreateBotCommand, } from "./commands/CreateBotCommand";
6
6
  import { DeleteBotApiKeyCommand, } from "./commands/DeleteBotApiKeyCommand";
7
7
  import { DeleteBotCommand, } from "./commands/DeleteBotCommand";
8
+ import { GetBotCallbackCommand, } from "./commands/GetBotCallbackCommand";
9
+ import { GetBotCommand, } from "./commands/GetBotCommand";
8
10
  import { ListBotApiKeysCommand, } from "./commands/ListBotApiKeysCommand";
9
11
  import { ListBotsCommand, } from "./commands/ListBotsCommand";
12
+ import { UpdateBotCallbackCommand, } from "./commands/UpdateBotCallbackCommand";
10
13
  import { UpdateBotCommand, } from "./commands/UpdateBotCommand";
11
14
  import { VerifyBotSecretKeyCommand, } from "./commands/VerifyBotSecretKeyCommand";
12
15
  import { createAggregatedClient } from "@smithy/smithy-client";
@@ -17,9 +20,12 @@ const commands = {
17
20
  CreateBotApiKeyCommand,
18
21
  DeleteBotCommand,
19
22
  DeleteBotApiKeyCommand,
23
+ GetBotCommand,
24
+ GetBotCallbackCommand,
20
25
  ListBotApiKeysCommand,
21
26
  ListBotsCommand,
22
27
  UpdateBotCommand,
28
+ UpdateBotCallbackCommand,
23
29
  VerifyBotSecretKeyCommand,
24
30
  };
25
31
  export class Users extends UsersClient {
@@ -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 UsersClient 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_BatchGetUsersPbxLinkDataCommand, se_BatchGetUsersPbxLinkDataCommand, } 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 BatchGetUsersPbxLinkDataCommand 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 = "UsersClient";
16
- const commandName = "BatchGetUsersPbxLinkDataCommand";
17
- const handlerExecutionContext = {
18
- logger,
19
- clientName,
20
- commandName,
21
- inputFilterSensitiveLog: (_) => _,
22
- outputFilterSensitiveLog: (_) => _,
23
- [SMITHY_CONTEXT_KEY]: {
24
- service: "Users",
25
- operation: "BatchGetUsersPbxLinkData",
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_BatchGetUsersPbxLinkDataCommand(input, context);
33
- }
34
- deserialize(output, context) {
35
- return de_BatchGetUsersPbxLinkDataCommand(output, context);
36
- }
5
+ export class BatchGetUsersPbxLinkDataCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "BatchGetUsersPbxLinkData", {})
12
+ .n("UsersClient", "BatchGetUsersPbxLinkDataCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_BatchGetUsersPbxLinkDataCommand)
15
+ .de(de_BatchGetUsersPbxLinkDataCommand)
16
+ .build() {
37
17
  }
@@ -1,37 +1,17 @@
1
1
  import { de_BatchGetUsersStreamLinkDataCommand, se_BatchGetUsersStreamLinkDataCommand, } 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 BatchGetUsersStreamLinkDataCommand 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 = "UsersClient";
16
- const commandName = "BatchGetUsersStreamLinkDataCommand";
17
- const handlerExecutionContext = {
18
- logger,
19
- clientName,
20
- commandName,
21
- inputFilterSensitiveLog: (_) => _,
22
- outputFilterSensitiveLog: (_) => _,
23
- [SMITHY_CONTEXT_KEY]: {
24
- service: "Users",
25
- operation: "BatchGetUsersStreamLinkData",
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_BatchGetUsersStreamLinkDataCommand(input, context);
33
- }
34
- deserialize(output, context) {
35
- return de_BatchGetUsersStreamLinkDataCommand(output, context);
36
- }
5
+ export class BatchGetUsersStreamLinkDataCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "BatchGetUsersStreamLinkData", {})
12
+ .n("UsersClient", "BatchGetUsersStreamLinkDataCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_BatchGetUsersStreamLinkDataCommand)
15
+ .de(de_BatchGetUsersStreamLinkDataCommand)
16
+ .build() {
37
17
  }
@@ -1,37 +1,17 @@
1
1
  import { de_CreateBotApiKeyCommand, se_CreateBotApiKeyCommand, } 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 CreateBotApiKeyCommand 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 = "UsersClient";
16
- const commandName = "CreateBotApiKeyCommand";
17
- const handlerExecutionContext = {
18
- logger,
19
- clientName,
20
- commandName,
21
- inputFilterSensitiveLog: (_) => _,
22
- outputFilterSensitiveLog: (_) => _,
23
- [SMITHY_CONTEXT_KEY]: {
24
- service: "Users",
25
- operation: "CreateBotApiKey",
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_CreateBotApiKeyCommand(input, context);
33
- }
34
- deserialize(output, context) {
35
- return de_CreateBotApiKeyCommand(output, context);
36
- }
5
+ export class CreateBotApiKeyCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "CreateBotApiKey", {})
12
+ .n("UsersClient", "CreateBotApiKeyCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_CreateBotApiKeyCommand)
15
+ .de(de_CreateBotApiKeyCommand)
16
+ .build() {
37
17
  }
@@ -1,37 +1,17 @@
1
1
  import { de_CreateBotCommand, se_CreateBotCommand, } 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 CreateBotCommand 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 = "UsersClient";
16
- const commandName = "CreateBotCommand";
17
- const handlerExecutionContext = {
18
- logger,
19
- clientName,
20
- commandName,
21
- inputFilterSensitiveLog: (_) => _,
22
- outputFilterSensitiveLog: (_) => _,
23
- [SMITHY_CONTEXT_KEY]: {
24
- service: "Users",
25
- operation: "CreateBot",
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_CreateBotCommand(input, context);
33
- }
34
- deserialize(output, context) {
35
- return de_CreateBotCommand(output, context);
36
- }
5
+ export class CreateBotCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "CreateBot", {})
12
+ .n("UsersClient", "CreateBotCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_CreateBotCommand)
15
+ .de(de_CreateBotCommand)
16
+ .build() {
37
17
  }
@@ -1,37 +1,17 @@
1
1
  import { de_DeleteBotApiKeyCommand, se_DeleteBotApiKeyCommand, } 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 DeleteBotApiKeyCommand 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 = "UsersClient";
16
- const commandName = "DeleteBotApiKeyCommand";
17
- const handlerExecutionContext = {
18
- logger,
19
- clientName,
20
- commandName,
21
- inputFilterSensitiveLog: (_) => _,
22
- outputFilterSensitiveLog: (_) => _,
23
- [SMITHY_CONTEXT_KEY]: {
24
- service: "Users",
25
- operation: "DeleteBotApiKey",
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_DeleteBotApiKeyCommand(input, context);
33
- }
34
- deserialize(output, context) {
35
- return de_DeleteBotApiKeyCommand(output, context);
36
- }
5
+ export class DeleteBotApiKeyCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "DeleteBotApiKey", {})
12
+ .n("UsersClient", "DeleteBotApiKeyCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_DeleteBotApiKeyCommand)
15
+ .de(de_DeleteBotApiKeyCommand)
16
+ .build() {
37
17
  }
@@ -1,37 +1,17 @@
1
1
  import { de_DeleteBotCommand, se_DeleteBotCommand, } 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 DeleteBotCommand 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 = "UsersClient";
16
- const commandName = "DeleteBotCommand";
17
- const handlerExecutionContext = {
18
- logger,
19
- clientName,
20
- commandName,
21
- inputFilterSensitiveLog: (_) => _,
22
- outputFilterSensitiveLog: (_) => _,
23
- [SMITHY_CONTEXT_KEY]: {
24
- service: "Users",
25
- operation: "DeleteBot",
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_DeleteBotCommand(input, context);
33
- }
34
- deserialize(output, context) {
35
- return de_DeleteBotCommand(output, context);
36
- }
5
+ export class DeleteBotCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "DeleteBot", {})
12
+ .n("UsersClient", "DeleteBotCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_DeleteBotCommand)
15
+ .de(de_DeleteBotCommand)
16
+ .build() {
37
17
  }
@@ -0,0 +1,17 @@
1
+ import { de_GetBotCallbackCommand, se_GetBotCallbackCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class GetBotCallbackCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "GetBotCallback", {})
12
+ .n("UsersClient", "GetBotCallbackCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetBotCallbackCommand)
15
+ .de(de_GetBotCallbackCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetBotCommand, se_GetBotCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class GetBotCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "GetBot", {})
12
+ .n("UsersClient", "GetBotCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetBotCommand)
15
+ .de(de_GetBotCommand)
16
+ .build() {
17
+ }
@@ -1,37 +1,17 @@
1
1
  import { de_ListBotApiKeysCommand, se_ListBotApiKeysCommand, } 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 ListBotApiKeysCommand 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 = "UsersClient";
16
- const commandName = "ListBotApiKeysCommand";
17
- const handlerExecutionContext = {
18
- logger,
19
- clientName,
20
- commandName,
21
- inputFilterSensitiveLog: (_) => _,
22
- outputFilterSensitiveLog: (_) => _,
23
- [SMITHY_CONTEXT_KEY]: {
24
- service: "Users",
25
- operation: "ListBotApiKeys",
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_ListBotApiKeysCommand(input, context);
33
- }
34
- deserialize(output, context) {
35
- return de_ListBotApiKeysCommand(output, context);
36
- }
5
+ export class ListBotApiKeysCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "ListBotApiKeys", {})
12
+ .n("UsersClient", "ListBotApiKeysCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_ListBotApiKeysCommand)
15
+ .de(de_ListBotApiKeysCommand)
16
+ .build() {
37
17
  }
@@ -1,37 +1,17 @@
1
1
  import { de_ListBotsCommand, se_ListBotsCommand, } 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 ListBotsCommand 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 = "UsersClient";
16
- const commandName = "ListBotsCommand";
17
- const handlerExecutionContext = {
18
- logger,
19
- clientName,
20
- commandName,
21
- inputFilterSensitiveLog: (_) => _,
22
- outputFilterSensitiveLog: (_) => _,
23
- [SMITHY_CONTEXT_KEY]: {
24
- service: "Users",
25
- operation: "ListBots",
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_ListBotsCommand(input, context);
33
- }
34
- deserialize(output, context) {
35
- return de_ListBotsCommand(output, context);
36
- }
5
+ export class ListBotsCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "ListBots", {})
12
+ .n("UsersClient", "ListBotsCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_ListBotsCommand)
15
+ .de(de_ListBotsCommand)
16
+ .build() {
37
17
  }
@@ -0,0 +1,17 @@
1
+ import { de_UpdateBotCallbackCommand, se_UpdateBotCallbackCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class UpdateBotCallbackCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "UpdateBotCallback", {})
12
+ .n("UsersClient", "UpdateBotCallbackCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_UpdateBotCallbackCommand)
15
+ .de(de_UpdateBotCallbackCommand)
16
+ .build() {
17
+ }
@@ -1,37 +1,17 @@
1
1
  import { de_UpdateBotCommand, se_UpdateBotCommand, } 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 UpdateBotCommand 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 = "UsersClient";
16
- const commandName = "UpdateBotCommand";
17
- const handlerExecutionContext = {
18
- logger,
19
- clientName,
20
- commandName,
21
- inputFilterSensitiveLog: (_) => _,
22
- outputFilterSensitiveLog: (_) => _,
23
- [SMITHY_CONTEXT_KEY]: {
24
- service: "Users",
25
- operation: "UpdateBot",
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_UpdateBotCommand(input, context);
33
- }
34
- deserialize(output, context) {
35
- return de_UpdateBotCommand(output, context);
36
- }
5
+ export class UpdateBotCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "UpdateBot", {})
12
+ .n("UsersClient", "UpdateBotCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_UpdateBotCommand)
15
+ .de(de_UpdateBotCommand)
16
+ .build() {
37
17
  }