@wildix/xbees-users-client 1.0.1 → 1.0.2
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 +16 -0
- package/dist-cjs/commands/CreateBotApiKeyCommand.js +41 -0
- package/dist-cjs/commands/CreateBotCommand.js +41 -0
- package/dist-cjs/commands/DeleteBotApiKeyCommand.js +41 -0
- package/dist-cjs/commands/DeleteBotCommand.js +41 -0
- package/dist-cjs/commands/ListBotApiKeysCommand.js +41 -0
- package/dist-cjs/commands/ListBotsCommand.js +41 -0
- package/dist-cjs/commands/UpdateBotCommand.js +41 -0
- package/dist-cjs/commands/VerifyBotSecretKeyCommand.js +41 -0
- package/dist-cjs/commands/index.js +8 -0
- package/dist-cjs/models/models_0.js +63 -1
- package/dist-cjs/protocols/Aws_restJson1.js +523 -1
- package/dist-es/Users.js +16 -0
- package/dist-es/commands/CreateBotApiKeyCommand.js +37 -0
- package/dist-es/commands/CreateBotCommand.js +37 -0
- package/dist-es/commands/DeleteBotApiKeyCommand.js +37 -0
- package/dist-es/commands/DeleteBotCommand.js +37 -0
- package/dist-es/commands/ListBotApiKeysCommand.js +37 -0
- package/dist-es/commands/ListBotsCommand.js +37 -0
- package/dist-es/commands/UpdateBotCommand.js +37 -0
- package/dist-es/commands/VerifyBotSecretKeyCommand.js +37 -0
- package/dist-es/commands/index.js +8 -0
- package/dist-es/models/models_0.js +58 -0
- package/dist-es/protocols/Aws_restJson1.js +508 -2
- package/dist-types/Users.d.ts +56 -0
- package/dist-types/UsersClient.d.ts +10 -2
- package/dist-types/commands/BatchGetUsersPbxLinkDataCommand.d.ts +2 -0
- package/dist-types/commands/BatchGetUsersStreamLinkDataCommand.d.ts +2 -0
- package/dist-types/commands/CreateBotApiKeyCommand.d.ts +111 -0
- package/dist-types/commands/CreateBotCommand.d.ts +130 -0
- package/dist-types/commands/DeleteBotApiKeyCommand.d.ts +78 -0
- package/dist-types/commands/DeleteBotCommand.d.ts +75 -0
- package/dist-types/commands/ListBotApiKeysCommand.d.ts +81 -0
- package/dist-types/commands/ListBotsCommand.d.ts +105 -0
- package/dist-types/commands/UpdateBotCommand.d.ts +131 -0
- package/dist-types/commands/VerifyBotSecretKeyCommand.d.ts +79 -0
- package/dist-types/commands/index.d.ts +8 -0
- package/dist-types/models/models_0.d.ts +239 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +72 -0
- package/dist-types/runtimeConfig.browser.d.ts +3 -3
- package/dist-types/runtimeConfig.d.ts +3 -3
- package/dist-types/runtimeConfig.native.d.ts +3 -3
- package/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/package.json +2 -2
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
|
+
import { CreateBotApiKeyInput, CreateBotApiKeyOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link CreateBotApiKeyCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface CreateBotApiKeyCommandInput extends CreateBotApiKeyInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link CreateBotApiKeyCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateBotApiKeyCommandOutput extends CreateBotApiKeyOutput, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
+
* ```javascript
|
|
29
|
+
* import { UsersClient, CreateBotApiKeyCommand } from "@wildix/xbees-users-client"; // ES Modules import
|
|
30
|
+
* // const { UsersClient, CreateBotApiKeyCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
31
|
+
* const client = new UsersClient(config);
|
|
32
|
+
* const input = { // CreateBotApiKeyInput
|
|
33
|
+
* botId: "STRING_VALUE", // required
|
|
34
|
+
* name: "STRING_VALUE",
|
|
35
|
+
* };
|
|
36
|
+
* const command = new CreateBotApiKeyCommand(input);
|
|
37
|
+
* const response = await client.send(command);
|
|
38
|
+
* // { // CreateBotApiKeyOutput
|
|
39
|
+
* // bot: { // Bot
|
|
40
|
+
* // id: "STRING_VALUE", // required
|
|
41
|
+
* // name: "STRING_VALUE", // required
|
|
42
|
+
* // secret: "STRING_VALUE", // required
|
|
43
|
+
* // visibility: { // BotVisibilitySettings
|
|
44
|
+
* // search: true || false,
|
|
45
|
+
* // mention: true || false,
|
|
46
|
+
* // },
|
|
47
|
+
* // callback: { // BotCallbackSettings Union: only one key present
|
|
48
|
+
* // webhook: { // BotCallbackWebhook
|
|
49
|
+
* // url: "STRING_VALUE", // required
|
|
50
|
+
* // secret: "STRING_VALUE", // required
|
|
51
|
+
* // triggers: { // BotCallbackTriggers
|
|
52
|
+
* // channel: true || false,
|
|
53
|
+
* // company: true || false,
|
|
54
|
+
* // mention: true || false,
|
|
55
|
+
* // },
|
|
56
|
+
* // },
|
|
57
|
+
* // sqs: { // BotCallbackSqs
|
|
58
|
+
* // url: "STRING_VALUE", // required
|
|
59
|
+
* // key: "STRING_VALUE", // required
|
|
60
|
+
* // secret: "STRING_VALUE", // required
|
|
61
|
+
* // triggers: {
|
|
62
|
+
* // channel: true || false,
|
|
63
|
+
* // company: true || false,
|
|
64
|
+
* // mention: true || false,
|
|
65
|
+
* // },
|
|
66
|
+
* // },
|
|
67
|
+
* // },
|
|
68
|
+
* // createdAt: "STRING_VALUE",
|
|
69
|
+
* // },
|
|
70
|
+
* // key: { // BotApiKey
|
|
71
|
+
* // secret: "STRING_VALUE", // required
|
|
72
|
+
* // name: "STRING_VALUE",
|
|
73
|
+
* // createdAt: "STRING_VALUE",
|
|
74
|
+
* // },
|
|
75
|
+
* // };
|
|
76
|
+
*
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
79
|
+
* @param CreateBotApiKeyCommandInput - {@link CreateBotApiKeyCommandInput}
|
|
80
|
+
* @returns {@link CreateBotApiKeyCommandOutput}
|
|
81
|
+
* @see {@link CreateBotApiKeyCommandInput} for command's `input` shape.
|
|
82
|
+
* @see {@link CreateBotApiKeyCommandOutput} for command's `response` shape.
|
|
83
|
+
* @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link ValidationException} (client fault)
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link UsersServiceException}
|
|
90
|
+
* <p>Base exception class for all service exceptions from Users service.</p>
|
|
91
|
+
*
|
|
92
|
+
*/
|
|
93
|
+
export declare class CreateBotApiKeyCommand extends $Command<CreateBotApiKeyCommandInput, CreateBotApiKeyCommandOutput, UsersClientResolvedConfig> {
|
|
94
|
+
readonly input: CreateBotApiKeyCommandInput;
|
|
95
|
+
/**
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
constructor(input: CreateBotApiKeyCommandInput);
|
|
99
|
+
/**
|
|
100
|
+
* @internal
|
|
101
|
+
*/
|
|
102
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: UsersClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateBotApiKeyCommandInput, CreateBotApiKeyCommandOutput>;
|
|
103
|
+
/**
|
|
104
|
+
* @internal
|
|
105
|
+
*/
|
|
106
|
+
private serialize;
|
|
107
|
+
/**
|
|
108
|
+
* @internal
|
|
109
|
+
*/
|
|
110
|
+
private deserialize;
|
|
111
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
|
+
import { CreateBotInput, CreateBotOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link CreateBotCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface CreateBotCommandInput extends CreateBotInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link CreateBotCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateBotCommandOutput extends CreateBotOutput, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
+
* ```javascript
|
|
29
|
+
* import { UsersClient, CreateBotCommand } from "@wildix/xbees-users-client"; // ES Modules import
|
|
30
|
+
* // const { UsersClient, CreateBotCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
31
|
+
* const client = new UsersClient(config);
|
|
32
|
+
* const input = { // CreateBotInput
|
|
33
|
+
* name: "STRING_VALUE", // required
|
|
34
|
+
* visibility: { // BotVisibilitySettings
|
|
35
|
+
* search: true || false,
|
|
36
|
+
* mention: true || false,
|
|
37
|
+
* },
|
|
38
|
+
* callback: { // BotCallbackSettings Union: only one key present
|
|
39
|
+
* webhook: { // BotCallbackWebhook
|
|
40
|
+
* url: "STRING_VALUE", // required
|
|
41
|
+
* secret: "STRING_VALUE", // required
|
|
42
|
+
* triggers: { // BotCallbackTriggers
|
|
43
|
+
* channel: true || false,
|
|
44
|
+
* company: true || false,
|
|
45
|
+
* mention: true || false,
|
|
46
|
+
* },
|
|
47
|
+
* },
|
|
48
|
+
* sqs: { // BotCallbackSqs
|
|
49
|
+
* url: "STRING_VALUE", // required
|
|
50
|
+
* key: "STRING_VALUE", // required
|
|
51
|
+
* secret: "STRING_VALUE", // required
|
|
52
|
+
* triggers: {
|
|
53
|
+
* channel: true || false,
|
|
54
|
+
* company: true || false,
|
|
55
|
+
* mention: true || false,
|
|
56
|
+
* },
|
|
57
|
+
* },
|
|
58
|
+
* },
|
|
59
|
+
* };
|
|
60
|
+
* const command = new CreateBotCommand(input);
|
|
61
|
+
* const response = await client.send(command);
|
|
62
|
+
* // { // CreateBotOutput
|
|
63
|
+
* // bot: { // Bot
|
|
64
|
+
* // id: "STRING_VALUE", // required
|
|
65
|
+
* // name: "STRING_VALUE", // required
|
|
66
|
+
* // secret: "STRING_VALUE", // required
|
|
67
|
+
* // visibility: { // BotVisibilitySettings
|
|
68
|
+
* // search: true || false,
|
|
69
|
+
* // mention: true || false,
|
|
70
|
+
* // },
|
|
71
|
+
* // callback: { // BotCallbackSettings Union: only one key present
|
|
72
|
+
* // webhook: { // BotCallbackWebhook
|
|
73
|
+
* // url: "STRING_VALUE", // required
|
|
74
|
+
* // secret: "STRING_VALUE", // required
|
|
75
|
+
* // triggers: { // BotCallbackTriggers
|
|
76
|
+
* // channel: true || false,
|
|
77
|
+
* // company: true || false,
|
|
78
|
+
* // mention: true || false,
|
|
79
|
+
* // },
|
|
80
|
+
* // },
|
|
81
|
+
* // sqs: { // BotCallbackSqs
|
|
82
|
+
* // url: "STRING_VALUE", // required
|
|
83
|
+
* // key: "STRING_VALUE", // required
|
|
84
|
+
* // secret: "STRING_VALUE", // required
|
|
85
|
+
* // triggers: {
|
|
86
|
+
* // channel: true || false,
|
|
87
|
+
* // company: true || false,
|
|
88
|
+
* // mention: true || false,
|
|
89
|
+
* // },
|
|
90
|
+
* // },
|
|
91
|
+
* // },
|
|
92
|
+
* // createdAt: "STRING_VALUE",
|
|
93
|
+
* // },
|
|
94
|
+
* // };
|
|
95
|
+
*
|
|
96
|
+
* ```
|
|
97
|
+
*
|
|
98
|
+
* @param CreateBotCommandInput - {@link CreateBotCommandInput}
|
|
99
|
+
* @returns {@link CreateBotCommandOutput}
|
|
100
|
+
* @see {@link CreateBotCommandInput} for command's `input` shape.
|
|
101
|
+
* @see {@link CreateBotCommandOutput} for command's `response` shape.
|
|
102
|
+
* @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
|
|
103
|
+
*
|
|
104
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link ValidationException} (client fault)
|
|
107
|
+
*
|
|
108
|
+
* @throws {@link UsersServiceException}
|
|
109
|
+
* <p>Base exception class for all service exceptions from Users service.</p>
|
|
110
|
+
*
|
|
111
|
+
*/
|
|
112
|
+
export declare class CreateBotCommand extends $Command<CreateBotCommandInput, CreateBotCommandOutput, UsersClientResolvedConfig> {
|
|
113
|
+
readonly input: CreateBotCommandInput;
|
|
114
|
+
/**
|
|
115
|
+
* @public
|
|
116
|
+
*/
|
|
117
|
+
constructor(input: CreateBotCommandInput);
|
|
118
|
+
/**
|
|
119
|
+
* @internal
|
|
120
|
+
*/
|
|
121
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: UsersClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateBotCommandInput, CreateBotCommandOutput>;
|
|
122
|
+
/**
|
|
123
|
+
* @internal
|
|
124
|
+
*/
|
|
125
|
+
private serialize;
|
|
126
|
+
/**
|
|
127
|
+
* @internal
|
|
128
|
+
*/
|
|
129
|
+
private deserialize;
|
|
130
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
|
+
import { DeleteBotApiKeyInput, DeleteBotApiKeyOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link DeleteBotApiKeyCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface DeleteBotApiKeyCommandInput extends DeleteBotApiKeyInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link DeleteBotApiKeyCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface DeleteBotApiKeyCommandOutput extends DeleteBotApiKeyOutput, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
+
* ```javascript
|
|
29
|
+
* import { UsersClient, DeleteBotApiKeyCommand } from "@wildix/xbees-users-client"; // ES Modules import
|
|
30
|
+
* // const { UsersClient, DeleteBotApiKeyCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
31
|
+
* const client = new UsersClient(config);
|
|
32
|
+
* const input = { // DeleteBotApiKeyInput
|
|
33
|
+
* botId: "STRING_VALUE", // required
|
|
34
|
+
* apiKeySecret: "STRING_VALUE", // required
|
|
35
|
+
* };
|
|
36
|
+
* const command = new DeleteBotApiKeyCommand(input);
|
|
37
|
+
* const response = await client.send(command);
|
|
38
|
+
* // {};
|
|
39
|
+
*
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* @param DeleteBotApiKeyCommandInput - {@link DeleteBotApiKeyCommandInput}
|
|
43
|
+
* @returns {@link DeleteBotApiKeyCommandOutput}
|
|
44
|
+
* @see {@link DeleteBotApiKeyCommandInput} for command's `input` shape.
|
|
45
|
+
* @see {@link DeleteBotApiKeyCommandOutput} for command's `response` shape.
|
|
46
|
+
* @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
|
|
47
|
+
*
|
|
48
|
+
* @throws {@link BotNotFoundException} (client fault)
|
|
49
|
+
*
|
|
50
|
+
* @throws {@link BotApiKeyNotFoundException} (client fault)
|
|
51
|
+
*
|
|
52
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link ValidationException} (client fault)
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link UsersServiceException}
|
|
57
|
+
* <p>Base exception class for all service exceptions from Users service.</p>
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
export declare class DeleteBotApiKeyCommand extends $Command<DeleteBotApiKeyCommandInput, DeleteBotApiKeyCommandOutput, UsersClientResolvedConfig> {
|
|
61
|
+
readonly input: DeleteBotApiKeyCommandInput;
|
|
62
|
+
/**
|
|
63
|
+
* @public
|
|
64
|
+
*/
|
|
65
|
+
constructor(input: DeleteBotApiKeyCommandInput);
|
|
66
|
+
/**
|
|
67
|
+
* @internal
|
|
68
|
+
*/
|
|
69
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: UsersClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteBotApiKeyCommandInput, DeleteBotApiKeyCommandOutput>;
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
*/
|
|
73
|
+
private serialize;
|
|
74
|
+
/**
|
|
75
|
+
* @internal
|
|
76
|
+
*/
|
|
77
|
+
private deserialize;
|
|
78
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
|
+
import { DeleteBotInput, DeleteBotOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link DeleteBotCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface DeleteBotCommandInput extends DeleteBotInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link DeleteBotCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface DeleteBotCommandOutput extends DeleteBotOutput, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
+
* ```javascript
|
|
29
|
+
* import { UsersClient, DeleteBotCommand } from "@wildix/xbees-users-client"; // ES Modules import
|
|
30
|
+
* // const { UsersClient, DeleteBotCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
31
|
+
* const client = new UsersClient(config);
|
|
32
|
+
* const input = { // DeleteBotInput
|
|
33
|
+
* botId: "STRING_VALUE", // required
|
|
34
|
+
* };
|
|
35
|
+
* const command = new DeleteBotCommand(input);
|
|
36
|
+
* const response = await client.send(command);
|
|
37
|
+
* // {};
|
|
38
|
+
*
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* @param DeleteBotCommandInput - {@link DeleteBotCommandInput}
|
|
42
|
+
* @returns {@link DeleteBotCommandOutput}
|
|
43
|
+
* @see {@link DeleteBotCommandInput} for command's `input` shape.
|
|
44
|
+
* @see {@link DeleteBotCommandOutput} for command's `response` shape.
|
|
45
|
+
* @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
|
|
46
|
+
*
|
|
47
|
+
* @throws {@link BotNotFoundException} (client fault)
|
|
48
|
+
*
|
|
49
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
50
|
+
*
|
|
51
|
+
* @throws {@link ValidationException} (client fault)
|
|
52
|
+
*
|
|
53
|
+
* @throws {@link UsersServiceException}
|
|
54
|
+
* <p>Base exception class for all service exceptions from Users service.</p>
|
|
55
|
+
*
|
|
56
|
+
*/
|
|
57
|
+
export declare class DeleteBotCommand extends $Command<DeleteBotCommandInput, DeleteBotCommandOutput, UsersClientResolvedConfig> {
|
|
58
|
+
readonly input: DeleteBotCommandInput;
|
|
59
|
+
/**
|
|
60
|
+
* @public
|
|
61
|
+
*/
|
|
62
|
+
constructor(input: DeleteBotCommandInput);
|
|
63
|
+
/**
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
66
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: UsersClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteBotCommandInput, DeleteBotCommandOutput>;
|
|
67
|
+
/**
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
private serialize;
|
|
71
|
+
/**
|
|
72
|
+
* @internal
|
|
73
|
+
*/
|
|
74
|
+
private deserialize;
|
|
75
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
|
+
import { ListBotApiKeysInput, ListBotApiKeysOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link ListBotApiKeysCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface ListBotApiKeysCommandInput extends ListBotApiKeysInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link ListBotApiKeysCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface ListBotApiKeysCommandOutput extends ListBotApiKeysOutput, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
+
* ```javascript
|
|
29
|
+
* import { UsersClient, ListBotApiKeysCommand } from "@wildix/xbees-users-client"; // ES Modules import
|
|
30
|
+
* // const { UsersClient, ListBotApiKeysCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
31
|
+
* const client = new UsersClient(config);
|
|
32
|
+
* const input = { // ListBotApiKeysInput
|
|
33
|
+
* botId: "STRING_VALUE", // required
|
|
34
|
+
* };
|
|
35
|
+
* const command = new ListBotApiKeysCommand(input);
|
|
36
|
+
* const response = await client.send(command);
|
|
37
|
+
* // { // ListBotApiKeysOutput
|
|
38
|
+
* // keys: [ // BotApiKeysList
|
|
39
|
+
* // { // BotApiKey
|
|
40
|
+
* // secret: "STRING_VALUE", // required
|
|
41
|
+
* // name: "STRING_VALUE",
|
|
42
|
+
* // createdAt: "STRING_VALUE",
|
|
43
|
+
* // },
|
|
44
|
+
* // ],
|
|
45
|
+
* // };
|
|
46
|
+
*
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @param ListBotApiKeysCommandInput - {@link ListBotApiKeysCommandInput}
|
|
50
|
+
* @returns {@link ListBotApiKeysCommandOutput}
|
|
51
|
+
* @see {@link ListBotApiKeysCommandInput} for command's `input` shape.
|
|
52
|
+
* @see {@link ListBotApiKeysCommandOutput} for command's `response` shape.
|
|
53
|
+
* @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link ValidationException} (client fault)
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link UsersServiceException}
|
|
60
|
+
* <p>Base exception class for all service exceptions from Users service.</p>
|
|
61
|
+
*
|
|
62
|
+
*/
|
|
63
|
+
export declare class ListBotApiKeysCommand extends $Command<ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput, UsersClientResolvedConfig> {
|
|
64
|
+
readonly input: ListBotApiKeysCommandInput;
|
|
65
|
+
/**
|
|
66
|
+
* @public
|
|
67
|
+
*/
|
|
68
|
+
constructor(input: ListBotApiKeysCommandInput);
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
72
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: UsersClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput>;
|
|
73
|
+
/**
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
private serialize;
|
|
77
|
+
/**
|
|
78
|
+
* @internal
|
|
79
|
+
*/
|
|
80
|
+
private deserialize;
|
|
81
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
|
+
import { ListBotsInput, ListBotsOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link ListBotsCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface ListBotsCommandInput extends ListBotsInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link ListBotsCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface ListBotsCommandOutput extends ListBotsOutput, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
+
* ```javascript
|
|
29
|
+
* import { UsersClient, ListBotsCommand } from "@wildix/xbees-users-client"; // ES Modules import
|
|
30
|
+
* // const { UsersClient, ListBotsCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
31
|
+
* const client = new UsersClient(config);
|
|
32
|
+
* const input = {};
|
|
33
|
+
* const command = new ListBotsCommand(input);
|
|
34
|
+
* const response = await client.send(command);
|
|
35
|
+
* // { // ListBotsOutput
|
|
36
|
+
* // bots: [ // BotList
|
|
37
|
+
* // { // Bot
|
|
38
|
+
* // id: "STRING_VALUE", // required
|
|
39
|
+
* // name: "STRING_VALUE", // required
|
|
40
|
+
* // secret: "STRING_VALUE", // required
|
|
41
|
+
* // visibility: { // BotVisibilitySettings
|
|
42
|
+
* // search: true || false,
|
|
43
|
+
* // mention: true || false,
|
|
44
|
+
* // },
|
|
45
|
+
* // callback: { // BotCallbackSettings Union: only one key present
|
|
46
|
+
* // webhook: { // BotCallbackWebhook
|
|
47
|
+
* // url: "STRING_VALUE", // required
|
|
48
|
+
* // secret: "STRING_VALUE", // required
|
|
49
|
+
* // triggers: { // BotCallbackTriggers
|
|
50
|
+
* // channel: true || false,
|
|
51
|
+
* // company: true || false,
|
|
52
|
+
* // mention: true || false,
|
|
53
|
+
* // },
|
|
54
|
+
* // },
|
|
55
|
+
* // sqs: { // BotCallbackSqs
|
|
56
|
+
* // url: "STRING_VALUE", // required
|
|
57
|
+
* // key: "STRING_VALUE", // required
|
|
58
|
+
* // secret: "STRING_VALUE", // required
|
|
59
|
+
* // triggers: {
|
|
60
|
+
* // channel: true || false,
|
|
61
|
+
* // company: true || false,
|
|
62
|
+
* // mention: true || false,
|
|
63
|
+
* // },
|
|
64
|
+
* // },
|
|
65
|
+
* // },
|
|
66
|
+
* // createdAt: "STRING_VALUE",
|
|
67
|
+
* // },
|
|
68
|
+
* // ],
|
|
69
|
+
* // };
|
|
70
|
+
*
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
* @param ListBotsCommandInput - {@link ListBotsCommandInput}
|
|
74
|
+
* @returns {@link ListBotsCommandOutput}
|
|
75
|
+
* @see {@link ListBotsCommandInput} for command's `input` shape.
|
|
76
|
+
* @see {@link ListBotsCommandOutput} for command's `response` shape.
|
|
77
|
+
* @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ValidationException} (client fault)
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link UsersServiceException}
|
|
84
|
+
* <p>Base exception class for all service exceptions from Users service.</p>
|
|
85
|
+
*
|
|
86
|
+
*/
|
|
87
|
+
export declare class ListBotsCommand extends $Command<ListBotsCommandInput, ListBotsCommandOutput, UsersClientResolvedConfig> {
|
|
88
|
+
readonly input: ListBotsCommandInput;
|
|
89
|
+
/**
|
|
90
|
+
* @public
|
|
91
|
+
*/
|
|
92
|
+
constructor(input: ListBotsCommandInput);
|
|
93
|
+
/**
|
|
94
|
+
* @internal
|
|
95
|
+
*/
|
|
96
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: UsersClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListBotsCommandInput, ListBotsCommandOutput>;
|
|
97
|
+
/**
|
|
98
|
+
* @internal
|
|
99
|
+
*/
|
|
100
|
+
private serialize;
|
|
101
|
+
/**
|
|
102
|
+
* @internal
|
|
103
|
+
*/
|
|
104
|
+
private deserialize;
|
|
105
|
+
}
|