@aws-sdk/client-lex-model-building-service 3.774.0 → 3.777.0
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/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-cjs/index.js +17 -18
- package/dist-es/LexModelBuildingServiceClient.js +2 -1
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-es/endpoint/EndpointParameters.js +2 -3
- package/dist-es/runtimeExtensions.js +2 -14
- package/dist-types/commands/CreateBotVersionCommand.d.ts +1 -0
- package/dist-types/commands/CreateIntentVersionCommand.d.ts +1 -0
- package/dist-types/commands/CreateSlotTypeVersionCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBotAliasCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBotChannelAssociationCommand.d.ts +2 -1
- package/dist-types/commands/DeleteBotCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBotVersionCommand.d.ts +1 -0
- package/dist-types/commands/DeleteIntentCommand.d.ts +1 -0
- package/dist-types/commands/DeleteIntentVersionCommand.d.ts +1 -0
- package/dist-types/commands/DeleteSlotTypeCommand.d.ts +1 -0
- package/dist-types/commands/DeleteSlotTypeVersionCommand.d.ts +1 -0
- package/dist-types/commands/DeleteUtterancesCommand.d.ts +1 -0
- package/dist-types/commands/GetBotAliasCommand.d.ts +1 -0
- package/dist-types/commands/GetBotAliasesCommand.d.ts +1 -0
- package/dist-types/commands/GetBotChannelAssociationCommand.d.ts +1 -0
- package/dist-types/commands/GetBotChannelAssociationsCommand.d.ts +1 -0
- package/dist-types/commands/GetBotCommand.d.ts +31 -31
- package/dist-types/commands/GetBotVersionsCommand.d.ts +1 -0
- package/dist-types/commands/GetBotsCommand.d.ts +12 -12
- package/dist-types/commands/GetBuiltinIntentCommand.d.ts +1 -0
- package/dist-types/commands/GetBuiltinIntentsCommand.d.ts +1 -0
- package/dist-types/commands/GetBuiltinSlotTypesCommand.d.ts +1 -0
- package/dist-types/commands/GetExportCommand.d.ts +1 -0
- package/dist-types/commands/GetImportCommand.d.ts +1 -0
- package/dist-types/commands/GetIntentCommand.d.ts +78 -78
- package/dist-types/commands/GetIntentVersionsCommand.d.ts +1 -0
- package/dist-types/commands/GetIntentsCommand.d.ts +11 -11
- package/dist-types/commands/GetMigrationCommand.d.ts +1 -0
- package/dist-types/commands/GetMigrationsCommand.d.ts +1 -0
- package/dist-types/commands/GetSlotTypeCommand.d.ts +14 -14
- package/dist-types/commands/GetSlotTypeVersionsCommand.d.ts +1 -0
- package/dist-types/commands/GetSlotTypesCommand.d.ts +21 -21
- package/dist-types/commands/GetUtterancesViewCommand.d.ts +1 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -0
- package/dist-types/commands/PutBotAliasCommand.d.ts +1 -0
- package/dist-types/commands/PutBotCommand.d.ts +51 -51
- package/dist-types/commands/PutIntentCommand.d.ts +144 -144
- package/dist-types/commands/PutSlotTypeCommand.d.ts +18 -18
- package/dist-types/commands/StartImportCommand.d.ts +1 -0
- package/dist-types/commands/StartMigrationCommand.d.ts +1 -0
- package/dist-types/commands/TagResourceCommand.d.ts +1 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -0
- package/package.json +33 -33
|
@@ -40,8 +40,6 @@ const defaultLexModelBuildingServiceHttpAuthSchemeProvider = (authParameters) =>
|
|
|
40
40
|
exports.defaultLexModelBuildingServiceHttpAuthSchemeProvider = defaultLexModelBuildingServiceHttpAuthSchemeProvider;
|
|
41
41
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
42
42
|
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
|
43
|
-
return {
|
|
44
|
-
...config_0,
|
|
45
|
-
};
|
|
43
|
+
return Object.assign(config_0, {});
|
|
46
44
|
};
|
|
47
45
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/index.js
CHANGED
|
@@ -131,12 +131,11 @@ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
|
131
131
|
|
|
132
132
|
// src/endpoint/EndpointParameters.ts
|
|
133
133
|
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
134
|
-
return {
|
|
135
|
-
...options,
|
|
134
|
+
return Object.assign(options, {
|
|
136
135
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
137
136
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
138
137
|
defaultSigningName: "lex"
|
|
139
|
-
};
|
|
138
|
+
});
|
|
140
139
|
}, "resolveClientEndpointParameters");
|
|
141
140
|
var commonParams = {
|
|
142
141
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -193,22 +192,21 @@ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
|
193
192
|
}, "resolveHttpAuthRuntimeConfig");
|
|
194
193
|
|
|
195
194
|
// src/runtimeExtensions.ts
|
|
196
|
-
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
197
195
|
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
198
|
-
const extensionConfiguration =
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
196
|
+
const extensionConfiguration = Object.assign(
|
|
197
|
+
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
198
|
+
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
199
|
+
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
200
|
+
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
201
|
+
);
|
|
204
202
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
205
|
-
return
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
203
|
+
return Object.assign(
|
|
204
|
+
runtimeConfig,
|
|
205
|
+
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
206
|
+
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
207
|
+
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
208
|
+
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
209
|
+
);
|
|
212
210
|
}, "resolveRuntimeExtensions");
|
|
213
211
|
|
|
214
212
|
// src/LexModelBuildingServiceClient.ts
|
|
@@ -222,6 +220,8 @@ var LexModelBuildingServiceClient = class extends import_smithy_client.Client {
|
|
|
222
220
|
config;
|
|
223
221
|
constructor(...[configuration]) {
|
|
224
222
|
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
223
|
+
super(_config_0);
|
|
224
|
+
this.initConfig = _config_0;
|
|
225
225
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
226
226
|
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
227
227
|
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
@@ -230,7 +230,6 @@ var LexModelBuildingServiceClient = class extends import_smithy_client.Client {
|
|
|
230
230
|
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
231
231
|
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
232
232
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
233
|
-
super(_config_8);
|
|
234
233
|
this.config = _config_8;
|
|
235
234
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
236
235
|
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
@@ -17,6 +17,8 @@ export class LexModelBuildingServiceClient extends __Client {
|
|
|
17
17
|
config;
|
|
18
18
|
constructor(...[configuration]) {
|
|
19
19
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
20
|
+
super(_config_0);
|
|
21
|
+
this.initConfig = _config_0;
|
|
20
22
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
21
23
|
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
22
24
|
const _config_3 = resolveRetryConfig(_config_2);
|
|
@@ -25,7 +27,6 @@ export class LexModelBuildingServiceClient extends __Client {
|
|
|
25
27
|
const _config_6 = resolveEndpointConfig(_config_5);
|
|
26
28
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
27
29
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
28
|
-
super(_config_8);
|
|
29
30
|
this.config = _config_8;
|
|
30
31
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
31
32
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
@@ -35,7 +35,5 @@ export const defaultLexModelBuildingServiceHttpAuthSchemeProvider = (authParamet
|
|
|
35
35
|
};
|
|
36
36
|
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
37
37
|
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
38
|
-
return {
|
|
39
|
-
...config_0,
|
|
40
|
-
};
|
|
38
|
+
return Object.assign(config_0, {});
|
|
41
39
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export const resolveClientEndpointParameters = (options) => {
|
|
2
|
-
return {
|
|
3
|
-
...options,
|
|
2
|
+
return Object.assign(options, {
|
|
4
3
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
5
4
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
6
5
|
defaultSigningName: "lex",
|
|
7
|
-
};
|
|
6
|
+
});
|
|
8
7
|
};
|
|
9
8
|
export const commonParams = {
|
|
10
9
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -2,20 +2,8 @@ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfigurat
|
|
|
2
2
|
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
3
|
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
4
|
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
-
const asPartial = (t) => t;
|
|
6
5
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
7
|
-
const extensionConfiguration =
|
|
8
|
-
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
|
9
|
-
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
10
|
-
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
11
|
-
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
|
|
12
|
-
};
|
|
6
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
13
7
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
14
|
-
return
|
|
15
|
-
...runtimeConfig,
|
|
16
|
-
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
17
|
-
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
18
|
-
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
19
|
-
...resolveHttpAuthRuntimeConfig(extensionConfiguration),
|
|
20
|
-
};
|
|
8
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
21
9
|
};
|
|
@@ -131,6 +131,7 @@ declare const CreateBotVersionCommand_base: {
|
|
|
131
131
|
* @throws {@link LexModelBuildingServiceServiceException}
|
|
132
132
|
* <p>Base exception class for all service exceptions from LexModelBuildingService service.</p>
|
|
133
133
|
*
|
|
134
|
+
*
|
|
134
135
|
* @public
|
|
135
136
|
*/
|
|
136
137
|
export declare class CreateBotVersionCommand extends CreateBotVersionCommand_base {
|
|
@@ -194,6 +194,7 @@ declare const CreateIntentVersionCommand_base: {
|
|
|
194
194
|
* @throws {@link LexModelBuildingServiceServiceException}
|
|
195
195
|
* <p>Base exception class for all service exceptions from LexModelBuildingService service.</p>
|
|
196
196
|
*
|
|
197
|
+
*
|
|
197
198
|
* @public
|
|
198
199
|
*/
|
|
199
200
|
export declare class CreateIntentVersionCommand extends CreateIntentVersionCommand_base {
|
|
@@ -114,6 +114,7 @@ declare const CreateSlotTypeVersionCommand_base: {
|
|
|
114
114
|
* @throws {@link LexModelBuildingServiceServiceException}
|
|
115
115
|
* <p>Base exception class for all service exceptions from LexModelBuildingService service.</p>
|
|
116
116
|
*
|
|
117
|
+
*
|
|
117
118
|
* @public
|
|
118
119
|
*/
|
|
119
120
|
export declare class CreateSlotTypeVersionCommand extends CreateSlotTypeVersionCommand_base {
|
|
@@ -98,6 +98,7 @@ declare const DeleteBotAliasCommand_base: {
|
|
|
98
98
|
* @throws {@link LexModelBuildingServiceServiceException}
|
|
99
99
|
* <p>Base exception class for all service exceptions from LexModelBuildingService service.</p>
|
|
100
100
|
*
|
|
101
|
+
*
|
|
101
102
|
* @public
|
|
102
103
|
*/
|
|
103
104
|
export declare class DeleteBotAliasCommand extends DeleteBotAliasCommand_base {
|
|
@@ -24,7 +24,7 @@ export interface DeleteBotChannelAssociationCommandOutput extends __MetadataBear
|
|
|
24
24
|
declare const DeleteBotChannelAssociationCommand_base: {
|
|
25
25
|
new (input: DeleteBotChannelAssociationCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteBotChannelAssociationCommandInput, DeleteBotChannelAssociationCommandOutput, LexModelBuildingServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
26
|
new (__0_0: DeleteBotChannelAssociationCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteBotChannelAssociationCommandInput, DeleteBotChannelAssociationCommandOutput, LexModelBuildingServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* <p>Deletes the association between an Amazon Lex bot and a messaging
|
|
@@ -76,6 +76,7 @@ declare const DeleteBotChannelAssociationCommand_base: {
|
|
|
76
76
|
* @throws {@link LexModelBuildingServiceServiceException}
|
|
77
77
|
* <p>Base exception class for all service exceptions from LexModelBuildingService service.</p>
|
|
78
78
|
*
|
|
79
|
+
*
|
|
79
80
|
* @public
|
|
80
81
|
*/
|
|
81
82
|
export declare class DeleteBotChannelAssociationCommand extends DeleteBotChannelAssociationCommand_base {
|
|
@@ -104,6 +104,7 @@ declare const DeleteBotCommand_base: {
|
|
|
104
104
|
* @throws {@link LexModelBuildingServiceServiceException}
|
|
105
105
|
* <p>Base exception class for all service exceptions from LexModelBuildingService service.</p>
|
|
106
106
|
*
|
|
107
|
+
*
|
|
107
108
|
* @public
|
|
108
109
|
*/
|
|
109
110
|
export declare class DeleteBotCommand extends DeleteBotCommand_base {
|
|
@@ -93,6 +93,7 @@ declare const DeleteBotVersionCommand_base: {
|
|
|
93
93
|
* @throws {@link LexModelBuildingServiceServiceException}
|
|
94
94
|
* <p>Base exception class for all service exceptions from LexModelBuildingService service.</p>
|
|
95
95
|
*
|
|
96
|
+
*
|
|
96
97
|
* @public
|
|
97
98
|
*/
|
|
98
99
|
export declare class DeleteBotVersionCommand extends DeleteBotVersionCommand_base {
|
|
@@ -105,6 +105,7 @@ declare const DeleteIntentCommand_base: {
|
|
|
105
105
|
* @throws {@link LexModelBuildingServiceServiceException}
|
|
106
106
|
* <p>Base exception class for all service exceptions from LexModelBuildingService service.</p>
|
|
107
107
|
*
|
|
108
|
+
*
|
|
108
109
|
* @public
|
|
109
110
|
*/
|
|
110
111
|
export declare class DeleteIntentCommand extends DeleteIntentCommand_base {
|
|
@@ -93,6 +93,7 @@ declare const DeleteIntentVersionCommand_base: {
|
|
|
93
93
|
* @throws {@link LexModelBuildingServiceServiceException}
|
|
94
94
|
* <p>Base exception class for all service exceptions from LexModelBuildingService service.</p>
|
|
95
95
|
*
|
|
96
|
+
*
|
|
96
97
|
* @public
|
|
97
98
|
*/
|
|
98
99
|
export declare class DeleteIntentVersionCommand extends DeleteIntentVersionCommand_base {
|
|
@@ -105,6 +105,7 @@ declare const DeleteSlotTypeCommand_base: {
|
|
|
105
105
|
* @throws {@link LexModelBuildingServiceServiceException}
|
|
106
106
|
* <p>Base exception class for all service exceptions from LexModelBuildingService service.</p>
|
|
107
107
|
*
|
|
108
|
+
*
|
|
108
109
|
* @public
|
|
109
110
|
*/
|
|
110
111
|
export declare class DeleteSlotTypeCommand extends DeleteSlotTypeCommand_base {
|
|
@@ -93,6 +93,7 @@ declare const DeleteSlotTypeVersionCommand_base: {
|
|
|
93
93
|
* @throws {@link LexModelBuildingServiceServiceException}
|
|
94
94
|
* <p>Base exception class for all service exceptions from LexModelBuildingService service.</p>
|
|
95
95
|
*
|
|
96
|
+
*
|
|
96
97
|
* @public
|
|
97
98
|
*/
|
|
98
99
|
export declare class DeleteSlotTypeVersionCommand extends DeleteSlotTypeVersionCommand_base {
|
|
@@ -79,6 +79,7 @@ declare const DeleteUtterancesCommand_base: {
|
|
|
79
79
|
* @throws {@link LexModelBuildingServiceServiceException}
|
|
80
80
|
* <p>Base exception class for all service exceptions from LexModelBuildingService service.</p>
|
|
81
81
|
*
|
|
82
|
+
*
|
|
82
83
|
* @public
|
|
83
84
|
*/
|
|
84
85
|
export declare class DeleteUtterancesCommand extends DeleteUtterancesCommand_base {
|
|
@@ -91,6 +91,7 @@ declare const GetBotAliasCommand_base: {
|
|
|
91
91
|
* @throws {@link LexModelBuildingServiceServiceException}
|
|
92
92
|
* <p>Base exception class for all service exceptions from LexModelBuildingService service.</p>
|
|
93
93
|
*
|
|
94
|
+
*
|
|
94
95
|
* @public
|
|
95
96
|
*/
|
|
96
97
|
export declare class GetBotAliasCommand extends GetBotAliasCommand_base {
|
|
@@ -93,6 +93,7 @@ declare const GetBotAliasesCommand_base: {
|
|
|
93
93
|
* @throws {@link LexModelBuildingServiceServiceException}
|
|
94
94
|
* <p>Base exception class for all service exceptions from LexModelBuildingService service.</p>
|
|
95
95
|
*
|
|
96
|
+
*
|
|
96
97
|
* @public
|
|
97
98
|
*/
|
|
98
99
|
export declare class GetBotAliasesCommand extends GetBotAliasesCommand_base {
|
|
@@ -84,6 +84,7 @@ declare const GetBotChannelAssociationCommand_base: {
|
|
|
84
84
|
* @throws {@link LexModelBuildingServiceServiceException}
|
|
85
85
|
* <p>Base exception class for all service exceptions from LexModelBuildingService service.</p>
|
|
86
86
|
*
|
|
87
|
+
*
|
|
87
88
|
* @public
|
|
88
89
|
*/
|
|
89
90
|
export declare class GetBotChannelAssociationCommand extends GetBotChannelAssociationCommand_base {
|
|
@@ -88,6 +88,7 @@ declare const GetBotChannelAssociationsCommand_base: {
|
|
|
88
88
|
* @throws {@link LexModelBuildingServiceServiceException}
|
|
89
89
|
* <p>Base exception class for all service exceptions from LexModelBuildingService service.</p>
|
|
90
90
|
*
|
|
91
|
+
*
|
|
91
92
|
* @public
|
|
92
93
|
*/
|
|
93
94
|
export declare class GetBotChannelAssociationsCommand extends GetBotChannelAssociationsCommand_base {
|
|
@@ -114,64 +114,64 @@ declare const GetBotCommand_base: {
|
|
|
114
114
|
* @throws {@link LexModelBuildingServiceServiceException}
|
|
115
115
|
* <p>Base exception class for all service exceptions from LexModelBuildingService service.</p>
|
|
116
116
|
*
|
|
117
|
-
*
|
|
117
|
+
*
|
|
118
118
|
* @example To get information about a bot
|
|
119
119
|
* ```javascript
|
|
120
120
|
* // This example shows how to get configuration information for a bot.
|
|
121
121
|
* const input = {
|
|
122
|
-
*
|
|
123
|
-
*
|
|
122
|
+
* name: "DocOrderPizza",
|
|
123
|
+
* versionOrAlias: "$LATEST"
|
|
124
124
|
* };
|
|
125
125
|
* const command = new GetBotCommand(input);
|
|
126
126
|
* const response = await client.send(command);
|
|
127
|
-
* /* response
|
|
127
|
+
* /* response is
|
|
128
128
|
* {
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
* "abortStatement": {
|
|
132
|
-
* "messages": [
|
|
129
|
+
* abortStatement: {
|
|
130
|
+
* messages: [
|
|
133
131
|
* {
|
|
134
|
-
*
|
|
135
|
-
*
|
|
132
|
+
* content: "I don't understand. Can you try again?",
|
|
133
|
+
* contentType: "PlainText"
|
|
136
134
|
* },
|
|
137
135
|
* {
|
|
138
|
-
*
|
|
139
|
-
*
|
|
136
|
+
* content: "I'm sorry, I don't understand.",
|
|
137
|
+
* contentType: "PlainText"
|
|
140
138
|
* }
|
|
141
139
|
* ]
|
|
142
140
|
* },
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
*
|
|
141
|
+
* checksum: "20172ee3-fa06-49b2-bbc5-667c090303e9",
|
|
142
|
+
* childDirected: true,
|
|
143
|
+
* clarificationPrompt: {
|
|
144
|
+
* maxAttempts: 1,
|
|
145
|
+
* messages: [
|
|
148
146
|
* {
|
|
149
|
-
*
|
|
150
|
-
*
|
|
147
|
+
* content: "I'm sorry, I didn't hear that. Can you repeate what you just said?",
|
|
148
|
+
* contentType: "PlainText"
|
|
151
149
|
* },
|
|
152
150
|
* {
|
|
153
|
-
*
|
|
154
|
-
*
|
|
151
|
+
* content: "Can you say that again?",
|
|
152
|
+
* contentType: "PlainText"
|
|
155
153
|
* }
|
|
156
154
|
* ]
|
|
157
155
|
* },
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
*
|
|
156
|
+
* createdDate: 1.494360160133E9,
|
|
157
|
+
* description: "Orders a pizza from a local pizzeria.",
|
|
158
|
+
* idleSessionTTLInSeconds: 300,
|
|
159
|
+
* intents: [
|
|
162
160
|
* {
|
|
163
|
-
*
|
|
164
|
-
*
|
|
161
|
+
* intentName: "DocOrderPizza",
|
|
162
|
+
* intentVersion: "$LATEST"
|
|
165
163
|
* }
|
|
166
164
|
* ],
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
*
|
|
165
|
+
* lastUpdatedDate: 1.494360160133E9,
|
|
166
|
+
* locale: "en-US",
|
|
167
|
+
* name: "DocOrderPizzaBot",
|
|
168
|
+
* status: "NOT_BUILT",
|
|
169
|
+
* version: "$LATEST"
|
|
170
170
|
* }
|
|
171
171
|
* *\/
|
|
172
|
-
* // example id: to-get-information-about-a-bot-1494431724188
|
|
173
172
|
* ```
|
|
174
173
|
*
|
|
174
|
+
* @public
|
|
175
175
|
*/
|
|
176
176
|
export declare class GetBotCommand extends GetBotCommand_base {
|
|
177
177
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -91,6 +91,7 @@ declare const GetBotVersionsCommand_base: {
|
|
|
91
91
|
* @throws {@link LexModelBuildingServiceServiceException}
|
|
92
92
|
* <p>Base exception class for all service exceptions from LexModelBuildingService service.</p>
|
|
93
93
|
*
|
|
94
|
+
*
|
|
94
95
|
* @public
|
|
95
96
|
*/
|
|
96
97
|
export declare class GetBotVersionsCommand extends GetBotVersionsCommand_base {
|
|
@@ -95,33 +95,33 @@ declare const GetBotsCommand_base: {
|
|
|
95
95
|
* @throws {@link LexModelBuildingServiceServiceException}
|
|
96
96
|
* <p>Base exception class for all service exceptions from LexModelBuildingService service.</p>
|
|
97
97
|
*
|
|
98
|
-
*
|
|
98
|
+
*
|
|
99
99
|
* @example To get a list of bots
|
|
100
100
|
* ```javascript
|
|
101
101
|
* // This example shows how to get a list of all of the bots in your account.
|
|
102
102
|
* const input = {
|
|
103
|
-
*
|
|
104
|
-
*
|
|
103
|
+
* maxResults: 5,
|
|
104
|
+
* nextToken: ""
|
|
105
105
|
* };
|
|
106
106
|
* const command = new GetBotsCommand(input);
|
|
107
107
|
* const response = await client.send(command);
|
|
108
|
-
* /* response
|
|
108
|
+
* /* response is
|
|
109
109
|
* {
|
|
110
|
-
*
|
|
110
|
+
* bots: [
|
|
111
111
|
* {
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
* "
|
|
117
|
-
*
|
|
112
|
+
* createdDate: 1.494360160133E9,
|
|
113
|
+
* description: "Orders a pizza from a local pizzeria.",
|
|
114
|
+
* lastUpdatedDate: 1.494360160133E9,
|
|
115
|
+
* name: "DocOrderPizzaBot",
|
|
116
|
+
* status: "NOT_BUILT",
|
|
117
|
+
* version: "$LATEST"
|
|
118
118
|
* }
|
|
119
119
|
* ]
|
|
120
120
|
* }
|
|
121
121
|
* *\/
|
|
122
|
-
* // example id: to-get-a-list-of-bots-1494432220036
|
|
123
122
|
* ```
|
|
124
123
|
*
|
|
124
|
+
* @public
|
|
125
125
|
*/
|
|
126
126
|
export declare class GetBotsCommand extends GetBotsCommand_base {
|
|
127
127
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -79,6 +79,7 @@ declare const GetBuiltinIntentCommand_base: {
|
|
|
79
79
|
* @throws {@link LexModelBuildingServiceServiceException}
|
|
80
80
|
* <p>Base exception class for all service exceptions from LexModelBuildingService service.</p>
|
|
81
81
|
*
|
|
82
|
+
*
|
|
82
83
|
* @public
|
|
83
84
|
*/
|
|
84
85
|
export declare class GetBuiltinIntentCommand extends GetBuiltinIntentCommand_base {
|
|
@@ -79,6 +79,7 @@ declare const GetBuiltinIntentsCommand_base: {
|
|
|
79
79
|
* @throws {@link LexModelBuildingServiceServiceException}
|
|
80
80
|
* <p>Base exception class for all service exceptions from LexModelBuildingService service.</p>
|
|
81
81
|
*
|
|
82
|
+
*
|
|
82
83
|
* @public
|
|
83
84
|
*/
|
|
84
85
|
export declare class GetBuiltinIntentsCommand extends GetBuiltinIntentsCommand_base {
|
|
@@ -81,6 +81,7 @@ declare const GetBuiltinSlotTypesCommand_base: {
|
|
|
81
81
|
* @throws {@link LexModelBuildingServiceServiceException}
|
|
82
82
|
* <p>Base exception class for all service exceptions from LexModelBuildingService service.</p>
|
|
83
83
|
*
|
|
84
|
+
*
|
|
84
85
|
* @public
|
|
85
86
|
*/
|
|
86
87
|
export declare class GetBuiltinSlotTypesCommand extends GetBuiltinSlotTypesCommand_base {
|
|
@@ -79,6 +79,7 @@ declare const GetExportCommand_base: {
|
|
|
79
79
|
* @throws {@link LexModelBuildingServiceServiceException}
|
|
80
80
|
* <p>Base exception class for all service exceptions from LexModelBuildingService service.</p>
|
|
81
81
|
*
|
|
82
|
+
*
|
|
82
83
|
* @public
|
|
83
84
|
*/
|
|
84
85
|
export declare class GetExportCommand extends GetExportCommand_base {
|
|
@@ -78,6 +78,7 @@ declare const GetImportCommand_base: {
|
|
|
78
78
|
* @throws {@link LexModelBuildingServiceServiceException}
|
|
79
79
|
* <p>Base exception class for all service exceptions from LexModelBuildingService service.</p>
|
|
80
80
|
*
|
|
81
|
+
*
|
|
81
82
|
* @public
|
|
82
83
|
*/
|
|
83
84
|
export declare class GetImportCommand extends GetImportCommand_base {
|