@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.
- package/dist-cjs/Users.js +6 -0
- package/dist-cjs/UsersClient.js +7 -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 +7 -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 +18 -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 +3 -4
- package/dist-types/runtimeConfig.d.ts +3 -4
- package/dist-types/runtimeConfig.native.d.ts +3 -4
- package/package.json +32 -31
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
|
+
import { GetBotCallbackInput, GetBotCallbackOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link GetBotCallbackCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface GetBotCallbackCommandInput extends GetBotCallbackInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link GetBotCallbackCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface GetBotCallbackCommandOutput extends GetBotCallbackOutput, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
declare const GetBotCallbackCommand_base: {
|
|
24
|
+
new (input: GetBotCallbackCommandInput): import("@smithy/smithy-client").CommandImpl<GetBotCallbackCommandInput, GetBotCallbackCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: GetBotCallbackCommandInput): import("@smithy/smithy-client").CommandImpl<GetBotCallbackCommandInput, GetBotCallbackCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { UsersClient, GetBotCallbackCommand } from "@wildix/xbees-users-client"; // ES Modules import
|
|
35
|
+
* // const { UsersClient, GetBotCallbackCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
36
|
+
* const client = new UsersClient(config);
|
|
37
|
+
* const input = { // GetBotCallbackInput
|
|
38
|
+
* company: "STRING_VALUE",
|
|
39
|
+
* id: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new GetBotCallbackCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // GetBotCallbackOutput
|
|
44
|
+
* // callback: { // BotCallback
|
|
45
|
+
* // endpoint: { // BotEndpoint Union: only one key present
|
|
46
|
+
* // dialogflowCx: { // BotDialogflowCxEndpoint
|
|
47
|
+
* // projectId: "STRING_VALUE", // required
|
|
48
|
+
* // agentId: "STRING_VALUE", // required
|
|
49
|
+
* // location: "STRING_VALUE", // required
|
|
50
|
+
* // privateKeyId: "STRING_VALUE", // required
|
|
51
|
+
* // privateKey: "STRING_VALUE", // required
|
|
52
|
+
* // clientEmail: "STRING_VALUE",
|
|
53
|
+
* // clientId: "STRING_VALUE",
|
|
54
|
+
* // },
|
|
55
|
+
* // openAiAssistant: { // BotOpenAiAssistantEndpoint
|
|
56
|
+
* // key: "STRING_VALUE", // required
|
|
57
|
+
* // assistantId: "STRING_VALUE", // required
|
|
58
|
+
* // },
|
|
59
|
+
* // webhook: { // BotWebhookEndpoint
|
|
60
|
+
* // url: "STRING_VALUE", // required
|
|
61
|
+
* // secret: "STRING_VALUE", // required
|
|
62
|
+
* // },
|
|
63
|
+
* // sqs: { // BotSqsEndpoint
|
|
64
|
+
* // url: "STRING_VALUE", // required
|
|
65
|
+
* // key: "STRING_VALUE", // required
|
|
66
|
+
* // secret: "STRING_VALUE", // required
|
|
67
|
+
* // },
|
|
68
|
+
* // },
|
|
69
|
+
* // },
|
|
70
|
+
* // };
|
|
71
|
+
*
|
|
72
|
+
* ```
|
|
73
|
+
*
|
|
74
|
+
* @param GetBotCallbackCommandInput - {@link GetBotCallbackCommandInput}
|
|
75
|
+
* @returns {@link GetBotCallbackCommandOutput}
|
|
76
|
+
* @see {@link GetBotCallbackCommandInput} for command's `input` shape.
|
|
77
|
+
* @see {@link GetBotCallbackCommandOutput} for command's `response` shape.
|
|
78
|
+
* @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link BotNotFoundException} (client fault)
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ValidationException} (client fault)
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link UsersServiceException}
|
|
87
|
+
* <p>Base exception class for all service exceptions from Users service.</p>
|
|
88
|
+
*
|
|
89
|
+
*/
|
|
90
|
+
export declare class GetBotCallbackCommand extends GetBotCallbackCommand_base {
|
|
91
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
|
+
import { GetBotInput, GetBotOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link GetBotCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface GetBotCommandInput extends GetBotInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link GetBotCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface GetBotCommandOutput extends GetBotOutput, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
declare const GetBotCommand_base: {
|
|
24
|
+
new (input: GetBotCommandInput): import("@smithy/smithy-client").CommandImpl<GetBotCommandInput, GetBotCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: GetBotCommandInput): import("@smithy/smithy-client").CommandImpl<GetBotCommandInput, GetBotCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { UsersClient, GetBotCommand } from "@wildix/xbees-users-client"; // ES Modules import
|
|
35
|
+
* // const { UsersClient, GetBotCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
36
|
+
* const client = new UsersClient(config);
|
|
37
|
+
* const input = { // GetBotInput
|
|
38
|
+
* company: "STRING_VALUE",
|
|
39
|
+
* id: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new GetBotCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // GetBotOutput
|
|
44
|
+
* // bot: { // Bot
|
|
45
|
+
* // id: "STRING_VALUE", // required
|
|
46
|
+
* // name: "STRING_VALUE", // required
|
|
47
|
+
* // picture: "STRING_VALUE",
|
|
48
|
+
* // searchable: true || false,
|
|
49
|
+
* // createdAt: "STRING_VALUE", // required
|
|
50
|
+
* // updated: "STRING_VALUE",
|
|
51
|
+
* // },
|
|
52
|
+
* // };
|
|
53
|
+
*
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* @param GetBotCommandInput - {@link GetBotCommandInput}
|
|
57
|
+
* @returns {@link GetBotCommandOutput}
|
|
58
|
+
* @see {@link GetBotCommandInput} for command's `input` shape.
|
|
59
|
+
* @see {@link GetBotCommandOutput} for command's `response` shape.
|
|
60
|
+
* @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link BotNotFoundException} (client fault)
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ValidationException} (client fault)
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link UsersServiceException}
|
|
69
|
+
* <p>Base exception class for all service exceptions from Users service.</p>
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
export declare class GetBotCommand extends GetBotCommand_base {
|
|
73
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
2
|
import { ListBotApiKeysInput, ListBotApiKeysOutput } from "../models/models_0";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -20,6 +20,11 @@ export interface ListBotApiKeysCommandInput extends ListBotApiKeysInput {
|
|
|
20
20
|
*/
|
|
21
21
|
export interface ListBotApiKeysCommandOutput extends ListBotApiKeysOutput, __MetadataBearer {
|
|
22
22
|
}
|
|
23
|
+
declare const ListBotApiKeysCommand_base: {
|
|
24
|
+
new (input: ListBotApiKeysCommandInput): import("@smithy/smithy-client").CommandImpl<ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: ListBotApiKeysCommandInput): import("@smithy/smithy-client").CommandImpl<ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
|
+
};
|
|
23
28
|
/**
|
|
24
29
|
* @public
|
|
25
30
|
*
|
|
@@ -61,22 +66,5 @@ export interface ListBotApiKeysCommandOutput extends ListBotApiKeysOutput, __Met
|
|
|
61
66
|
* <p>Base exception class for all service exceptions from Users service.</p>
|
|
62
67
|
*
|
|
63
68
|
*/
|
|
64
|
-
export declare class ListBotApiKeysCommand extends
|
|
65
|
-
readonly input: ListBotApiKeysCommandInput;
|
|
66
|
-
/**
|
|
67
|
-
* @public
|
|
68
|
-
*/
|
|
69
|
-
constructor(input: ListBotApiKeysCommandInput);
|
|
70
|
-
/**
|
|
71
|
-
* @internal
|
|
72
|
-
*/
|
|
73
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: UsersClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput>;
|
|
74
|
-
/**
|
|
75
|
-
* @internal
|
|
76
|
-
*/
|
|
77
|
-
private serialize;
|
|
78
|
-
/**
|
|
79
|
-
* @internal
|
|
80
|
-
*/
|
|
81
|
-
private deserialize;
|
|
69
|
+
export declare class ListBotApiKeysCommand extends ListBotApiKeysCommand_base {
|
|
82
70
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
2
|
import { ListBotsInput, ListBotsOutput } from "../models/models_0";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -20,6 +20,11 @@ export interface ListBotsCommandInput extends ListBotsInput {
|
|
|
20
20
|
*/
|
|
21
21
|
export interface ListBotsCommandOutput extends ListBotsOutput, __MetadataBearer {
|
|
22
22
|
}
|
|
23
|
+
declare const ListBotsCommand_base: {
|
|
24
|
+
new (input: ListBotsCommandInput): import("@smithy/smithy-client").CommandImpl<ListBotsCommandInput, ListBotsCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (...[input]: [] | [ListBotsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListBotsCommandInput, ListBotsCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
|
+
};
|
|
23
28
|
/**
|
|
24
29
|
* @public
|
|
25
30
|
*
|
|
@@ -39,32 +44,8 @@ export interface ListBotsCommandOutput extends ListBotsOutput, __MetadataBearer
|
|
|
39
44
|
* // { // Bot
|
|
40
45
|
* // id: "STRING_VALUE", // required
|
|
41
46
|
* // name: "STRING_VALUE", // required
|
|
42
|
-
* //
|
|
43
|
-
* //
|
|
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
|
-
* // },
|
|
47
|
+
* // picture: "STRING_VALUE",
|
|
48
|
+
* // searchable: true || false,
|
|
68
49
|
* // createdAt: "STRING_VALUE", // required
|
|
69
50
|
* // updated: "STRING_VALUE",
|
|
70
51
|
* // },
|
|
@@ -87,22 +68,5 @@ export interface ListBotsCommandOutput extends ListBotsOutput, __MetadataBearer
|
|
|
87
68
|
* <p>Base exception class for all service exceptions from Users service.</p>
|
|
88
69
|
*
|
|
89
70
|
*/
|
|
90
|
-
export declare class ListBotsCommand extends
|
|
91
|
-
readonly input: ListBotsCommandInput;
|
|
92
|
-
/**
|
|
93
|
-
* @public
|
|
94
|
-
*/
|
|
95
|
-
constructor(input: ListBotsCommandInput);
|
|
96
|
-
/**
|
|
97
|
-
* @internal
|
|
98
|
-
*/
|
|
99
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: UsersClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListBotsCommandInput, ListBotsCommandOutput>;
|
|
100
|
-
/**
|
|
101
|
-
* @internal
|
|
102
|
-
*/
|
|
103
|
-
private serialize;
|
|
104
|
-
/**
|
|
105
|
-
* @internal
|
|
106
|
-
*/
|
|
107
|
-
private deserialize;
|
|
71
|
+
export declare class ListBotsCommand extends ListBotsCommand_base {
|
|
108
72
|
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
|
+
import { UpdateBotCallbackInput, UpdateBotCallbackOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link UpdateBotCallbackCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface UpdateBotCallbackCommandInput extends UpdateBotCallbackInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link UpdateBotCallbackCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateBotCallbackCommandOutput extends UpdateBotCallbackOutput, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
declare const UpdateBotCallbackCommand_base: {
|
|
24
|
+
new (input: UpdateBotCallbackCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: UpdateBotCallbackCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { UsersClient, UpdateBotCallbackCommand } from "@wildix/xbees-users-client"; // ES Modules import
|
|
35
|
+
* // const { UsersClient, UpdateBotCallbackCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
36
|
+
* const client = new UsersClient(config);
|
|
37
|
+
* const input = { // UpdateBotCallbackInput
|
|
38
|
+
* company: "STRING_VALUE",
|
|
39
|
+
* id: "STRING_VALUE", // required
|
|
40
|
+
* callback: { // BotCallback
|
|
41
|
+
* endpoint: { // BotEndpoint Union: only one key present
|
|
42
|
+
* dialogflowCx: { // BotDialogflowCxEndpoint
|
|
43
|
+
* projectId: "STRING_VALUE", // required
|
|
44
|
+
* agentId: "STRING_VALUE", // required
|
|
45
|
+
* location: "STRING_VALUE", // required
|
|
46
|
+
* privateKeyId: "STRING_VALUE", // required
|
|
47
|
+
* privateKey: "STRING_VALUE", // required
|
|
48
|
+
* clientEmail: "STRING_VALUE",
|
|
49
|
+
* clientId: "STRING_VALUE",
|
|
50
|
+
* },
|
|
51
|
+
* openAiAssistant: { // BotOpenAiAssistantEndpoint
|
|
52
|
+
* key: "STRING_VALUE", // required
|
|
53
|
+
* assistantId: "STRING_VALUE", // required
|
|
54
|
+
* },
|
|
55
|
+
* webhook: { // BotWebhookEndpoint
|
|
56
|
+
* url: "STRING_VALUE", // required
|
|
57
|
+
* secret: "STRING_VALUE", // required
|
|
58
|
+
* },
|
|
59
|
+
* sqs: { // BotSqsEndpoint
|
|
60
|
+
* url: "STRING_VALUE", // required
|
|
61
|
+
* key: "STRING_VALUE", // required
|
|
62
|
+
* secret: "STRING_VALUE", // required
|
|
63
|
+
* },
|
|
64
|
+
* },
|
|
65
|
+
* },
|
|
66
|
+
* };
|
|
67
|
+
* const command = new UpdateBotCallbackCommand(input);
|
|
68
|
+
* const response = await client.send(command);
|
|
69
|
+
* // { // UpdateBotCallbackOutput
|
|
70
|
+
* // callback: { // BotCallback
|
|
71
|
+
* // endpoint: { // BotEndpoint Union: only one key present
|
|
72
|
+
* // dialogflowCx: { // BotDialogflowCxEndpoint
|
|
73
|
+
* // projectId: "STRING_VALUE", // required
|
|
74
|
+
* // agentId: "STRING_VALUE", // required
|
|
75
|
+
* // location: "STRING_VALUE", // required
|
|
76
|
+
* // privateKeyId: "STRING_VALUE", // required
|
|
77
|
+
* // privateKey: "STRING_VALUE", // required
|
|
78
|
+
* // clientEmail: "STRING_VALUE",
|
|
79
|
+
* // clientId: "STRING_VALUE",
|
|
80
|
+
* // },
|
|
81
|
+
* // openAiAssistant: { // BotOpenAiAssistantEndpoint
|
|
82
|
+
* // key: "STRING_VALUE", // required
|
|
83
|
+
* // assistantId: "STRING_VALUE", // required
|
|
84
|
+
* // },
|
|
85
|
+
* // webhook: { // BotWebhookEndpoint
|
|
86
|
+
* // url: "STRING_VALUE", // required
|
|
87
|
+
* // secret: "STRING_VALUE", // required
|
|
88
|
+
* // },
|
|
89
|
+
* // sqs: { // BotSqsEndpoint
|
|
90
|
+
* // url: "STRING_VALUE", // required
|
|
91
|
+
* // key: "STRING_VALUE", // required
|
|
92
|
+
* // secret: "STRING_VALUE", // required
|
|
93
|
+
* // },
|
|
94
|
+
* // },
|
|
95
|
+
* // },
|
|
96
|
+
* // };
|
|
97
|
+
*
|
|
98
|
+
* ```
|
|
99
|
+
*
|
|
100
|
+
* @param UpdateBotCallbackCommandInput - {@link UpdateBotCallbackCommandInput}
|
|
101
|
+
* @returns {@link UpdateBotCallbackCommandOutput}
|
|
102
|
+
* @see {@link UpdateBotCallbackCommandInput} for command's `input` shape.
|
|
103
|
+
* @see {@link UpdateBotCallbackCommandOutput} for command's `response` shape.
|
|
104
|
+
* @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
107
|
+
*
|
|
108
|
+
* @throws {@link ValidationException} (client fault)
|
|
109
|
+
*
|
|
110
|
+
* @throws {@link UsersServiceException}
|
|
111
|
+
* <p>Base exception class for all service exceptions from Users service.</p>
|
|
112
|
+
*
|
|
113
|
+
*/
|
|
114
|
+
export declare class UpdateBotCallbackCommand extends UpdateBotCallbackCommand_base {
|
|
115
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
2
|
import { UpdateBotInput, UpdateBotOutput } from "../models/models_0";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -20,6 +20,11 @@ export interface UpdateBotCommandInput extends UpdateBotInput {
|
|
|
20
20
|
*/
|
|
21
21
|
export interface UpdateBotCommandOutput extends UpdateBotOutput, __MetadataBearer {
|
|
22
22
|
}
|
|
23
|
+
declare const UpdateBotCommand_base: {
|
|
24
|
+
new (input: UpdateBotCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateBotCommandInput, UpdateBotCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: UpdateBotCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateBotCommandInput, UpdateBotCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
|
+
};
|
|
23
28
|
/**
|
|
24
29
|
* @public
|
|
25
30
|
*
|
|
@@ -31,33 +36,10 @@ export interface UpdateBotCommandOutput extends UpdateBotOutput, __MetadataBeare
|
|
|
31
36
|
* const client = new UsersClient(config);
|
|
32
37
|
* const input = { // UpdateBotInput
|
|
33
38
|
* company: "STRING_VALUE",
|
|
34
|
-
*
|
|
39
|
+
* id: "STRING_VALUE", // required
|
|
35
40
|
* name: "STRING_VALUE", // required
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* mention: true || false,
|
|
39
|
-
* },
|
|
40
|
-
* callback: { // BotCallbackSettings Union: only one key present
|
|
41
|
-
* webhook: { // BotCallbackWebhook
|
|
42
|
-
* url: "STRING_VALUE", // required
|
|
43
|
-
* secret: "STRING_VALUE", // required
|
|
44
|
-
* triggers: { // BotCallbackTriggers
|
|
45
|
-
* channel: true || false,
|
|
46
|
-
* company: true || false,
|
|
47
|
-
* mention: true || false,
|
|
48
|
-
* },
|
|
49
|
-
* },
|
|
50
|
-
* sqs: { // BotCallbackSqs
|
|
51
|
-
* url: "STRING_VALUE", // required
|
|
52
|
-
* key: "STRING_VALUE", // required
|
|
53
|
-
* secret: "STRING_VALUE", // required
|
|
54
|
-
* triggers: {
|
|
55
|
-
* channel: true || false,
|
|
56
|
-
* company: true || false,
|
|
57
|
-
* mention: true || false,
|
|
58
|
-
* },
|
|
59
|
-
* },
|
|
60
|
-
* },
|
|
41
|
+
* picture: "STRING_VALUE",
|
|
42
|
+
* searchable: true || false,
|
|
61
43
|
* };
|
|
62
44
|
* const command = new UpdateBotCommand(input);
|
|
63
45
|
* const response = await client.send(command);
|
|
@@ -65,32 +47,8 @@ export interface UpdateBotCommandOutput extends UpdateBotOutput, __MetadataBeare
|
|
|
65
47
|
* // bot: { // Bot
|
|
66
48
|
* // id: "STRING_VALUE", // required
|
|
67
49
|
* // name: "STRING_VALUE", // required
|
|
68
|
-
* //
|
|
69
|
-
* //
|
|
70
|
-
* // search: true || false,
|
|
71
|
-
* // mention: true || false,
|
|
72
|
-
* // },
|
|
73
|
-
* // callback: { // BotCallbackSettings Union: only one key present
|
|
74
|
-
* // webhook: { // BotCallbackWebhook
|
|
75
|
-
* // url: "STRING_VALUE", // required
|
|
76
|
-
* // secret: "STRING_VALUE", // required
|
|
77
|
-
* // triggers: { // BotCallbackTriggers
|
|
78
|
-
* // channel: true || false,
|
|
79
|
-
* // company: true || false,
|
|
80
|
-
* // mention: true || false,
|
|
81
|
-
* // },
|
|
82
|
-
* // },
|
|
83
|
-
* // sqs: { // BotCallbackSqs
|
|
84
|
-
* // url: "STRING_VALUE", // required
|
|
85
|
-
* // key: "STRING_VALUE", // required
|
|
86
|
-
* // secret: "STRING_VALUE", // required
|
|
87
|
-
* // triggers: {
|
|
88
|
-
* // channel: true || false,
|
|
89
|
-
* // company: true || false,
|
|
90
|
-
* // mention: true || false,
|
|
91
|
-
* // },
|
|
92
|
-
* // },
|
|
93
|
-
* // },
|
|
50
|
+
* // picture: "STRING_VALUE",
|
|
51
|
+
* // searchable: true || false,
|
|
94
52
|
* // createdAt: "STRING_VALUE", // required
|
|
95
53
|
* // updated: "STRING_VALUE",
|
|
96
54
|
* // },
|
|
@@ -112,22 +70,5 @@ export interface UpdateBotCommandOutput extends UpdateBotOutput, __MetadataBeare
|
|
|
112
70
|
* <p>Base exception class for all service exceptions from Users service.</p>
|
|
113
71
|
*
|
|
114
72
|
*/
|
|
115
|
-
export declare class UpdateBotCommand extends
|
|
116
|
-
readonly input: UpdateBotCommandInput;
|
|
117
|
-
/**
|
|
118
|
-
* @public
|
|
119
|
-
*/
|
|
120
|
-
constructor(input: UpdateBotCommandInput);
|
|
121
|
-
/**
|
|
122
|
-
* @internal
|
|
123
|
-
*/
|
|
124
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: UsersClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateBotCommandInput, UpdateBotCommandOutput>;
|
|
125
|
-
/**
|
|
126
|
-
* @internal
|
|
127
|
-
*/
|
|
128
|
-
private serialize;
|
|
129
|
-
/**
|
|
130
|
-
* @internal
|
|
131
|
-
*/
|
|
132
|
-
private deserialize;
|
|
73
|
+
export declare class UpdateBotCommand extends UpdateBotCommand_base {
|
|
133
74
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
2
|
import { VerifyBotSecretKeyInput, VerifyBotSecretKeyOutput } from "../models/models_0";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -20,6 +20,11 @@ export interface VerifyBotSecretKeyCommandInput extends VerifyBotSecretKeyInput
|
|
|
20
20
|
*/
|
|
21
21
|
export interface VerifyBotSecretKeyCommandOutput extends VerifyBotSecretKeyOutput, __MetadataBearer {
|
|
22
22
|
}
|
|
23
|
+
declare const VerifyBotSecretKeyCommand_base: {
|
|
24
|
+
new (input: VerifyBotSecretKeyCommandInput): import("@smithy/smithy-client").CommandImpl<VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: VerifyBotSecretKeyCommandInput): import("@smithy/smithy-client").CommandImpl<VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
|
+
};
|
|
23
28
|
/**
|
|
24
29
|
* @public
|
|
25
30
|
*
|
|
@@ -58,22 +63,5 @@ export interface VerifyBotSecretKeyCommandOutput extends VerifyBotSecretKeyOutpu
|
|
|
58
63
|
* <p>Base exception class for all service exceptions from Users service.</p>
|
|
59
64
|
*
|
|
60
65
|
*/
|
|
61
|
-
export declare class VerifyBotSecretKeyCommand extends
|
|
62
|
-
readonly input: VerifyBotSecretKeyCommandInput;
|
|
63
|
-
/**
|
|
64
|
-
* @public
|
|
65
|
-
*/
|
|
66
|
-
constructor(input: VerifyBotSecretKeyCommandInput);
|
|
67
|
-
/**
|
|
68
|
-
* @internal
|
|
69
|
-
*/
|
|
70
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: UsersClientResolvedConfig, options?: __HttpHandlerOptions): Handler<VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput>;
|
|
71
|
-
/**
|
|
72
|
-
* @internal
|
|
73
|
-
*/
|
|
74
|
-
private serialize;
|
|
75
|
-
/**
|
|
76
|
-
* @internal
|
|
77
|
-
*/
|
|
78
|
-
private deserialize;
|
|
66
|
+
export declare class VerifyBotSecretKeyCommand extends VerifyBotSecretKeyCommand_base {
|
|
79
67
|
}
|
|
@@ -4,7 +4,10 @@ export * from "./CreateBotCommand";
|
|
|
4
4
|
export * from "./CreateBotApiKeyCommand";
|
|
5
5
|
export * from "./DeleteBotCommand";
|
|
6
6
|
export * from "./DeleteBotApiKeyCommand";
|
|
7
|
+
export * from "./GetBotCommand";
|
|
8
|
+
export * from "./GetBotCallbackCommand";
|
|
7
9
|
export * from "./ListBotApiKeysCommand";
|
|
8
10
|
export * from "./ListBotsCommand";
|
|
9
11
|
export * from "./UpdateBotCommand";
|
|
12
|
+
export * from "./UpdateBotCallbackCommand";
|
|
10
13
|
export * from "./VerifyBotSecretKeyCommand";
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from "./UsersClient";
|
|
2
2
|
export * from "./Users";
|
|
3
|
+
export { RuntimeExtension } from "./runtimeExtensions";
|
|
4
|
+
export { UsersExtensionConfiguration } from "./extensionConfiguration";
|
|
3
5
|
export * from "./commands";
|
|
4
6
|
export * from "./models";
|
|
5
7
|
export { UsersServiceException } from "./models/UsersServiceException";
|