@wildix/xbees-users-client 1.0.6 → 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.
- package/dist-cjs/Users.js +6 -0
- package/dist-cjs/UsersClient.js +21 -3
- package/dist-cjs/commands/BatchGetUsersPbxLinkDataCommand.js +12 -32
- package/dist-cjs/commands/BatchGetUsersStreamLinkDataCommand.js +12 -32
- package/dist-cjs/commands/CreateBotApiKeyCommand.js +12 -32
- package/dist-cjs/commands/CreateBotCommand.js +12 -32
- package/dist-cjs/commands/DeleteBotApiKeyCommand.js +12 -32
- package/dist-cjs/commands/DeleteBotCommand.js +12 -32
- package/dist-cjs/commands/GetBotCallbackCommand.js +21 -0
- package/dist-cjs/commands/GetBotCommand.js +21 -0
- package/dist-cjs/commands/ListBotApiKeysCommand.js +12 -32
- package/dist-cjs/commands/ListBotsCommand.js +12 -32
- package/dist-cjs/commands/UpdateBotCallbackCommand.js +21 -0
- package/dist-cjs/commands/UpdateBotCommand.js +12 -32
- package/dist-cjs/commands/VerifyBotSecretKeyCommand.js +12 -32
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +25 -21
- package/dist-cjs/protocols/Aws_restJson1.js +200 -352
- package/dist-cjs/runtimeConfig.browser.js +5 -1
- package/dist-cjs/runtimeConfig.js +5 -1
- package/dist-cjs/runtimeConfig.shared.js +13 -11
- package/dist-es/Users.js +6 -0
- package/dist-es/UsersClient.js +21 -3
- package/dist-es/commands/BatchGetUsersPbxLinkDataCommand.js +12 -32
- package/dist-es/commands/BatchGetUsersStreamLinkDataCommand.js +12 -32
- package/dist-es/commands/CreateBotApiKeyCommand.js +12 -32
- package/dist-es/commands/CreateBotCommand.js +12 -32
- package/dist-es/commands/DeleteBotApiKeyCommand.js +12 -32
- package/dist-es/commands/DeleteBotCommand.js +12 -32
- package/dist-es/commands/GetBotCallbackCommand.js +17 -0
- package/dist-es/commands/GetBotCommand.js +17 -0
- package/dist-es/commands/ListBotApiKeysCommand.js +12 -32
- package/dist-es/commands/ListBotsCommand.js +12 -32
- package/dist-es/commands/UpdateBotCallbackCommand.js +17 -0
- package/dist-es/commands/UpdateBotCommand.js +12 -32
- package/dist-es/commands/VerifyBotSecretKeyCommand.js +12 -32
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +22 -18
- package/dist-es/protocols/Aws_restJson1.js +192 -350
- package/dist-es/runtimeConfig.browser.js +4 -1
- package/dist-es/runtimeConfig.js +4 -1
- package/dist-es/runtimeConfig.shared.js +13 -11
- package/dist-types/Users.d.ts +22 -0
- package/dist-types/UsersClient.d.ts +21 -9
- package/dist-types/commands/BatchGetUsersPbxLinkDataCommand.d.ts +7 -19
- package/dist-types/commands/BatchGetUsersStreamLinkDataCommand.d.ts +7 -19
- package/dist-types/commands/CreateBotApiKeyCommand.d.ts +11 -45
- package/dist-types/commands/CreateBotCommand.d.ts +32 -66
- package/dist-types/commands/DeleteBotApiKeyCommand.d.ts +7 -19
- package/dist-types/commands/DeleteBotCommand.d.ts +7 -19
- package/dist-types/commands/GetBotCallbackCommand.d.ts +91 -0
- package/dist-types/commands/GetBotCommand.d.ts +73 -0
- package/dist-types/commands/ListBotApiKeysCommand.d.ts +7 -19
- package/dist-types/commands/ListBotsCommand.d.ts +9 -45
- package/dist-types/commands/UpdateBotCallbackCommand.d.ts +115 -0
- package/dist-types/commands/UpdateBotCommand.d.ts +12 -71
- package/dist-types/commands/VerifyBotSecretKeyCommand.d.ts +7 -19
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +155 -62
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/dist-types/runtimeConfig.browser.d.ts +5 -4
- package/dist-types/runtimeConfig.d.ts +5 -4
- package/dist-types/runtimeConfig.native.d.ts +5 -4
- package/package.json +32 -30
|
@@ -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 ??
|
|
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 ??
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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 {
|
package/dist-es/UsersClient.js
CHANGED
|
@@ -1,13 +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";
|
|
5
|
+
import { authorizationMiddleware } from '@wildix/smithy-utils';
|
|
4
6
|
export { __Client };
|
|
5
7
|
export class UsersClient extends __Client {
|
|
6
8
|
constructor(...[configuration]) {
|
|
7
9
|
let _config_0 = __getRuntimeConfig(configuration || {});
|
|
8
|
-
let _config_1 =
|
|
9
|
-
|
|
10
|
-
|
|
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';
|
|
13
|
+
const endpoint = () => {
|
|
14
|
+
return {
|
|
15
|
+
hostname,
|
|
16
|
+
protocol: "https",
|
|
17
|
+
port: '443',
|
|
18
|
+
path: ''
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
const config = {
|
|
22
|
+
..._config_2,
|
|
23
|
+
endpoint,
|
|
24
|
+
};
|
|
25
|
+
super(config);
|
|
26
|
+
this.config = config;
|
|
27
|
+
this.middlewareStack.add(authorizationMiddleware.bind(this, configuration.token), { step: "build" });
|
|
28
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
11
29
|
}
|
|
12
30
|
destroy() {
|
|
13
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
|
-
|
|
8
|
-
|
|
9
|
-
this.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
this.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
this.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
this.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
this.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
this.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
this.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
this.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
this.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
}
|