@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
package/dist-cjs/Users.js
CHANGED
|
@@ -8,8 +8,11 @@ const CreateBotApiKeyCommand_1 = require("./commands/CreateBotApiKeyCommand");
|
|
|
8
8
|
const CreateBotCommand_1 = require("./commands/CreateBotCommand");
|
|
9
9
|
const DeleteBotApiKeyCommand_1 = require("./commands/DeleteBotApiKeyCommand");
|
|
10
10
|
const DeleteBotCommand_1 = require("./commands/DeleteBotCommand");
|
|
11
|
+
const GetBotCallbackCommand_1 = require("./commands/GetBotCallbackCommand");
|
|
12
|
+
const GetBotCommand_1 = require("./commands/GetBotCommand");
|
|
11
13
|
const ListBotApiKeysCommand_1 = require("./commands/ListBotApiKeysCommand");
|
|
12
14
|
const ListBotsCommand_1 = require("./commands/ListBotsCommand");
|
|
15
|
+
const UpdateBotCallbackCommand_1 = require("./commands/UpdateBotCallbackCommand");
|
|
13
16
|
const UpdateBotCommand_1 = require("./commands/UpdateBotCommand");
|
|
14
17
|
const VerifyBotSecretKeyCommand_1 = require("./commands/VerifyBotSecretKeyCommand");
|
|
15
18
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
@@ -20,9 +23,12 @@ const commands = {
|
|
|
20
23
|
CreateBotApiKeyCommand: CreateBotApiKeyCommand_1.CreateBotApiKeyCommand,
|
|
21
24
|
DeleteBotCommand: DeleteBotCommand_1.DeleteBotCommand,
|
|
22
25
|
DeleteBotApiKeyCommand: DeleteBotApiKeyCommand_1.DeleteBotApiKeyCommand,
|
|
26
|
+
GetBotCommand: GetBotCommand_1.GetBotCommand,
|
|
27
|
+
GetBotCallbackCommand: GetBotCallbackCommand_1.GetBotCallbackCommand,
|
|
23
28
|
ListBotApiKeysCommand: ListBotApiKeysCommand_1.ListBotApiKeysCommand,
|
|
24
29
|
ListBotsCommand: ListBotsCommand_1.ListBotsCommand,
|
|
25
30
|
UpdateBotCommand: UpdateBotCommand_1.UpdateBotCommand,
|
|
31
|
+
UpdateBotCallbackCommand: UpdateBotCallbackCommand_1.UpdateBotCallbackCommand,
|
|
26
32
|
VerifyBotSecretKeyCommand: VerifyBotSecretKeyCommand_1.VerifyBotSecretKeyCommand,
|
|
27
33
|
};
|
|
28
34
|
class Users extends UsersClient_1.UsersClient {
|
package/dist-cjs/UsersClient.js
CHANGED
|
@@ -3,14 +3,32 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UsersClient = exports.__Client = void 0;
|
|
4
4
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
5
5
|
const runtimeExtensions_1 = require("./runtimeExtensions");
|
|
6
|
+
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
6
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
8
|
Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
|
|
9
|
+
const smithy_utils_1 = require("@wildix/smithy-utils");
|
|
8
10
|
class UsersClient extends smithy_client_1.Client {
|
|
9
11
|
constructor(...[configuration]) {
|
|
10
12
|
let _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
|
|
11
|
-
let _config_1 = (0,
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
let _config_1 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_0);
|
|
14
|
+
let _config_2 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_1, configuration?.extensions || []);
|
|
15
|
+
const hostname = ['stable', 'stage'].includes(configuration.env || '') ? `api-${configuration.env}.x-bees.com` : 'api.x-bees.com';
|
|
16
|
+
const endpoint = () => {
|
|
17
|
+
return {
|
|
18
|
+
hostname,
|
|
19
|
+
protocol: "https",
|
|
20
|
+
port: '443',
|
|
21
|
+
path: ''
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
const config = {
|
|
25
|
+
..._config_2,
|
|
26
|
+
endpoint,
|
|
27
|
+
};
|
|
28
|
+
super(config);
|
|
29
|
+
this.config = config;
|
|
30
|
+
this.middlewareStack.add(smithy_utils_1.authorizationMiddleware.bind(this, configuration.token), { step: "build" });
|
|
31
|
+
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
14
32
|
}
|
|
15
33
|
destroy() {
|
|
16
34
|
super.destroy();
|
|
@@ -5,37 +5,17 @@ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const handlerExecutionContext = {
|
|
21
|
-
logger,
|
|
22
|
-
clientName,
|
|
23
|
-
commandName,
|
|
24
|
-
inputFilterSensitiveLog: (_) => _,
|
|
25
|
-
outputFilterSensitiveLog: (_) => _,
|
|
26
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
27
|
-
service: "Users",
|
|
28
|
-
operation: "BatchGetUsersPbxLinkData",
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
const { requestHandler } = configuration;
|
|
32
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
33
|
-
}
|
|
34
|
-
serialize(input, context) {
|
|
35
|
-
return (0, Aws_restJson1_1.se_BatchGetUsersPbxLinkDataCommand)(input, context);
|
|
36
|
-
}
|
|
37
|
-
deserialize(output, context) {
|
|
38
|
-
return (0, Aws_restJson1_1.de_BatchGetUsersPbxLinkDataCommand)(output, context);
|
|
39
|
-
}
|
|
8
|
+
class BatchGetUsersPbxLinkDataCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Users", "BatchGetUsersPbxLinkData", {})
|
|
15
|
+
.n("UsersClient", "BatchGetUsersPbxLinkDataCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_BatchGetUsersPbxLinkDataCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_BatchGetUsersPbxLinkDataCommand)
|
|
19
|
+
.build() {
|
|
40
20
|
}
|
|
41
21
|
exports.BatchGetUsersPbxLinkDataCommand = BatchGetUsersPbxLinkDataCommand;
|
|
@@ -5,37 +5,17 @@ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const handlerExecutionContext = {
|
|
21
|
-
logger,
|
|
22
|
-
clientName,
|
|
23
|
-
commandName,
|
|
24
|
-
inputFilterSensitiveLog: (_) => _,
|
|
25
|
-
outputFilterSensitiveLog: (_) => _,
|
|
26
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
27
|
-
service: "Users",
|
|
28
|
-
operation: "BatchGetUsersStreamLinkData",
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
const { requestHandler } = configuration;
|
|
32
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
33
|
-
}
|
|
34
|
-
serialize(input, context) {
|
|
35
|
-
return (0, Aws_restJson1_1.se_BatchGetUsersStreamLinkDataCommand)(input, context);
|
|
36
|
-
}
|
|
37
|
-
deserialize(output, context) {
|
|
38
|
-
return (0, Aws_restJson1_1.de_BatchGetUsersStreamLinkDataCommand)(output, context);
|
|
39
|
-
}
|
|
8
|
+
class BatchGetUsersStreamLinkDataCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Users", "BatchGetUsersStreamLinkData", {})
|
|
15
|
+
.n("UsersClient", "BatchGetUsersStreamLinkDataCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_BatchGetUsersStreamLinkDataCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_BatchGetUsersStreamLinkDataCommand)
|
|
19
|
+
.build() {
|
|
40
20
|
}
|
|
41
21
|
exports.BatchGetUsersStreamLinkDataCommand = BatchGetUsersStreamLinkDataCommand;
|
|
@@ -5,37 +5,17 @@ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const handlerExecutionContext = {
|
|
21
|
-
logger,
|
|
22
|
-
clientName,
|
|
23
|
-
commandName,
|
|
24
|
-
inputFilterSensitiveLog: (_) => _,
|
|
25
|
-
outputFilterSensitiveLog: (_) => _,
|
|
26
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
27
|
-
service: "Users",
|
|
28
|
-
operation: "CreateBotApiKey",
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
const { requestHandler } = configuration;
|
|
32
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
33
|
-
}
|
|
34
|
-
serialize(input, context) {
|
|
35
|
-
return (0, Aws_restJson1_1.se_CreateBotApiKeyCommand)(input, context);
|
|
36
|
-
}
|
|
37
|
-
deserialize(output, context) {
|
|
38
|
-
return (0, Aws_restJson1_1.de_CreateBotApiKeyCommand)(output, context);
|
|
39
|
-
}
|
|
8
|
+
class CreateBotApiKeyCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Users", "CreateBotApiKey", {})
|
|
15
|
+
.n("UsersClient", "CreateBotApiKeyCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_CreateBotApiKeyCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_CreateBotApiKeyCommand)
|
|
19
|
+
.build() {
|
|
40
20
|
}
|
|
41
21
|
exports.CreateBotApiKeyCommand = CreateBotApiKeyCommand;
|
|
@@ -5,37 +5,17 @@ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const handlerExecutionContext = {
|
|
21
|
-
logger,
|
|
22
|
-
clientName,
|
|
23
|
-
commandName,
|
|
24
|
-
inputFilterSensitiveLog: (_) => _,
|
|
25
|
-
outputFilterSensitiveLog: (_) => _,
|
|
26
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
27
|
-
service: "Users",
|
|
28
|
-
operation: "CreateBot",
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
const { requestHandler } = configuration;
|
|
32
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
33
|
-
}
|
|
34
|
-
serialize(input, context) {
|
|
35
|
-
return (0, Aws_restJson1_1.se_CreateBotCommand)(input, context);
|
|
36
|
-
}
|
|
37
|
-
deserialize(output, context) {
|
|
38
|
-
return (0, Aws_restJson1_1.de_CreateBotCommand)(output, context);
|
|
39
|
-
}
|
|
8
|
+
class CreateBotCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Users", "CreateBot", {})
|
|
15
|
+
.n("UsersClient", "CreateBotCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_CreateBotCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_CreateBotCommand)
|
|
19
|
+
.build() {
|
|
40
20
|
}
|
|
41
21
|
exports.CreateBotCommand = CreateBotCommand;
|
|
@@ -5,37 +5,17 @@ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const handlerExecutionContext = {
|
|
21
|
-
logger,
|
|
22
|
-
clientName,
|
|
23
|
-
commandName,
|
|
24
|
-
inputFilterSensitiveLog: (_) => _,
|
|
25
|
-
outputFilterSensitiveLog: (_) => _,
|
|
26
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
27
|
-
service: "Users",
|
|
28
|
-
operation: "DeleteBotApiKey",
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
const { requestHandler } = configuration;
|
|
32
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
33
|
-
}
|
|
34
|
-
serialize(input, context) {
|
|
35
|
-
return (0, Aws_restJson1_1.se_DeleteBotApiKeyCommand)(input, context);
|
|
36
|
-
}
|
|
37
|
-
deserialize(output, context) {
|
|
38
|
-
return (0, Aws_restJson1_1.de_DeleteBotApiKeyCommand)(output, context);
|
|
39
|
-
}
|
|
8
|
+
class DeleteBotApiKeyCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Users", "DeleteBotApiKey", {})
|
|
15
|
+
.n("UsersClient", "DeleteBotApiKeyCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_DeleteBotApiKeyCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_DeleteBotApiKeyCommand)
|
|
19
|
+
.build() {
|
|
40
20
|
}
|
|
41
21
|
exports.DeleteBotApiKeyCommand = DeleteBotApiKeyCommand;
|
|
@@ -5,37 +5,17 @@ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const handlerExecutionContext = {
|
|
21
|
-
logger,
|
|
22
|
-
clientName,
|
|
23
|
-
commandName,
|
|
24
|
-
inputFilterSensitiveLog: (_) => _,
|
|
25
|
-
outputFilterSensitiveLog: (_) => _,
|
|
26
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
27
|
-
service: "Users",
|
|
28
|
-
operation: "DeleteBot",
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
const { requestHandler } = configuration;
|
|
32
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
33
|
-
}
|
|
34
|
-
serialize(input, context) {
|
|
35
|
-
return (0, Aws_restJson1_1.se_DeleteBotCommand)(input, context);
|
|
36
|
-
}
|
|
37
|
-
deserialize(output, context) {
|
|
38
|
-
return (0, Aws_restJson1_1.de_DeleteBotCommand)(output, context);
|
|
39
|
-
}
|
|
8
|
+
class DeleteBotCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Users", "DeleteBot", {})
|
|
15
|
+
.n("UsersClient", "DeleteBotCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_DeleteBotCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_DeleteBotCommand)
|
|
19
|
+
.build() {
|
|
40
20
|
}
|
|
41
21
|
exports.DeleteBotCommand = DeleteBotCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetBotCallbackCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class GetBotCallbackCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Users", "GetBotCallback", {})
|
|
15
|
+
.n("UsersClient", "GetBotCallbackCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_GetBotCallbackCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_GetBotCallbackCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.GetBotCallbackCommand = GetBotCallbackCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetBotCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class GetBotCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Users", "GetBot", {})
|
|
15
|
+
.n("UsersClient", "GetBotCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_GetBotCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_GetBotCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.GetBotCommand = GetBotCommand;
|
|
@@ -5,37 +5,17 @@ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const handlerExecutionContext = {
|
|
21
|
-
logger,
|
|
22
|
-
clientName,
|
|
23
|
-
commandName,
|
|
24
|
-
inputFilterSensitiveLog: (_) => _,
|
|
25
|
-
outputFilterSensitiveLog: (_) => _,
|
|
26
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
27
|
-
service: "Users",
|
|
28
|
-
operation: "ListBotApiKeys",
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
const { requestHandler } = configuration;
|
|
32
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
33
|
-
}
|
|
34
|
-
serialize(input, context) {
|
|
35
|
-
return (0, Aws_restJson1_1.se_ListBotApiKeysCommand)(input, context);
|
|
36
|
-
}
|
|
37
|
-
deserialize(output, context) {
|
|
38
|
-
return (0, Aws_restJson1_1.de_ListBotApiKeysCommand)(output, context);
|
|
39
|
-
}
|
|
8
|
+
class ListBotApiKeysCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Users", "ListBotApiKeys", {})
|
|
15
|
+
.n("UsersClient", "ListBotApiKeysCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_ListBotApiKeysCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_ListBotApiKeysCommand)
|
|
19
|
+
.build() {
|
|
40
20
|
}
|
|
41
21
|
exports.ListBotApiKeysCommand = ListBotApiKeysCommand;
|
|
@@ -5,37 +5,17 @@ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const handlerExecutionContext = {
|
|
21
|
-
logger,
|
|
22
|
-
clientName,
|
|
23
|
-
commandName,
|
|
24
|
-
inputFilterSensitiveLog: (_) => _,
|
|
25
|
-
outputFilterSensitiveLog: (_) => _,
|
|
26
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
27
|
-
service: "Users",
|
|
28
|
-
operation: "ListBots",
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
const { requestHandler } = configuration;
|
|
32
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
33
|
-
}
|
|
34
|
-
serialize(input, context) {
|
|
35
|
-
return (0, Aws_restJson1_1.se_ListBotsCommand)(input, context);
|
|
36
|
-
}
|
|
37
|
-
deserialize(output, context) {
|
|
38
|
-
return (0, Aws_restJson1_1.de_ListBotsCommand)(output, context);
|
|
39
|
-
}
|
|
8
|
+
class ListBotsCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Users", "ListBots", {})
|
|
15
|
+
.n("UsersClient", "ListBotsCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_ListBotsCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_ListBotsCommand)
|
|
19
|
+
.build() {
|
|
40
20
|
}
|
|
41
21
|
exports.ListBotsCommand = ListBotsCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateBotCallbackCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class UpdateBotCallbackCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Users", "UpdateBotCallback", {})
|
|
15
|
+
.n("UsersClient", "UpdateBotCallbackCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_UpdateBotCallbackCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_UpdateBotCallbackCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.UpdateBotCallbackCommand = UpdateBotCallbackCommand;
|
|
@@ -5,37 +5,17 @@ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const handlerExecutionContext = {
|
|
21
|
-
logger,
|
|
22
|
-
clientName,
|
|
23
|
-
commandName,
|
|
24
|
-
inputFilterSensitiveLog: (_) => _,
|
|
25
|
-
outputFilterSensitiveLog: (_) => _,
|
|
26
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
27
|
-
service: "Users",
|
|
28
|
-
operation: "UpdateBot",
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
const { requestHandler } = configuration;
|
|
32
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
33
|
-
}
|
|
34
|
-
serialize(input, context) {
|
|
35
|
-
return (0, Aws_restJson1_1.se_UpdateBotCommand)(input, context);
|
|
36
|
-
}
|
|
37
|
-
deserialize(output, context) {
|
|
38
|
-
return (0, Aws_restJson1_1.de_UpdateBotCommand)(output, context);
|
|
39
|
-
}
|
|
8
|
+
class UpdateBotCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Users", "UpdateBot", {})
|
|
15
|
+
.n("UsersClient", "UpdateBotCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_UpdateBotCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_UpdateBotCommand)
|
|
19
|
+
.build() {
|
|
40
20
|
}
|
|
41
21
|
exports.UpdateBotCommand = UpdateBotCommand;
|
|
@@ -5,37 +5,17 @@ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const handlerExecutionContext = {
|
|
21
|
-
logger,
|
|
22
|
-
clientName,
|
|
23
|
-
commandName,
|
|
24
|
-
inputFilterSensitiveLog: (_) => _,
|
|
25
|
-
outputFilterSensitiveLog: (_) => _,
|
|
26
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
27
|
-
service: "Users",
|
|
28
|
-
operation: "VerifyBotSecretKey",
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
const { requestHandler } = configuration;
|
|
32
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
33
|
-
}
|
|
34
|
-
serialize(input, context) {
|
|
35
|
-
return (0, Aws_restJson1_1.se_VerifyBotSecretKeyCommand)(input, context);
|
|
36
|
-
}
|
|
37
|
-
deserialize(output, context) {
|
|
38
|
-
return (0, Aws_restJson1_1.de_VerifyBotSecretKeyCommand)(output, context);
|
|
39
|
-
}
|
|
8
|
+
class VerifyBotSecretKeyCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Users", "VerifyBotSecretKey", {})
|
|
15
|
+
.n("UsersClient", "VerifyBotSecretKeyCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_VerifyBotSecretKeyCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_VerifyBotSecretKeyCommand)
|
|
19
|
+
.build() {
|
|
40
20
|
}
|
|
41
21
|
exports.VerifyBotSecretKeyCommand = VerifyBotSecretKeyCommand;
|