@aws-sdk/client-lex-runtime-v2 3.34.0 → 3.37.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/CHANGELOG.md +47 -0
- package/{dist/cjs → dist-cjs}/LexRuntimeV2.js +1 -5
- package/{dist/cjs → dist-cjs}/LexRuntimeV2Client.js +10 -19
- package/dist-cjs/commands/DeleteSessionCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/GetSessionCommand.js +2 -35
- package/{dist/cjs → dist-cjs}/commands/PutSessionCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/RecognizeTextCommand.js +2 -31
- package/dist-cjs/commands/RecognizeUtteranceCommand.js +36 -0
- package/dist-cjs/commands/StartConversationCommand.js +38 -0
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +2 -145
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +1 -7
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/LexRuntimeV2.js +1 -2
- package/{dist/es → dist-es}/LexRuntimeV2Client.js +1 -2
- package/{dist/es → dist-es}/commands/DeleteSessionCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetSessionCommand.js +2 -3
- package/{dist/es → dist-es}/commands/PutSessionCommand.js +2 -3
- package/{dist/es → dist-es}/commands/RecognizeTextCommand.js +2 -3
- package/{dist/es → dist-es}/commands/RecognizeUtteranceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/StartConversationCommand.js +2 -3
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +2 -1
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
- package/{dist/types/ts3.4 → dist-types}/LexRuntimeV2.d.ts +223 -139
- package/{dist/types → dist-types}/LexRuntimeV2Client.d.ts +7 -7
- package/{dist/types → dist-types}/commands/DeleteSessionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetSessionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutSessionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/RecognizeTextCommand.d.ts +28 -2
- package/{dist/types → dist-types}/commands/RecognizeUtteranceCommand.d.ts +28 -2
- package/{dist/types → dist-types}/commands/StartConversationCommand.d.ts +34 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +15 -9
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/dist-types/ts3.4/LexRuntimeV2.d.ts +35 -0
- package/{dist/types → dist-types}/ts3.4/LexRuntimeV2Client.d.ts +33 -103
- package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutSessionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/RecognizeTextCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/RecognizeUtteranceCommand.d.ts +24 -0
- package/dist-types/ts3.4/commands/StartConversationCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +348 -0
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +50 -47
- package/LexRuntimeV2.ts +0 -299
- package/LexRuntimeV2Client.ts +0 -282
- package/commands/DeleteSessionCommand.ts +0 -107
- package/commands/GetSessionCommand.ts +0 -102
- package/commands/PutSessionCommand.ts +0 -96
- package/commands/RecognizeTextCommand.ts +0 -98
- package/commands/RecognizeUtteranceCommand.ts +0 -139
- package/commands/StartConversationCommand.ts +0 -130
- package/dist/cjs/LexRuntimeV2.js.map +0 -1
- package/dist/cjs/LexRuntimeV2Client.js.map +0 -1
- package/dist/cjs/commands/DeleteSessionCommand.js +0 -74
- package/dist/cjs/commands/DeleteSessionCommand.js.map +0 -1
- package/dist/cjs/commands/GetSessionCommand.js.map +0 -1
- package/dist/cjs/commands/PutSessionCommand.js.map +0 -1
- package/dist/cjs/commands/RecognizeTextCommand.js.map +0 -1
- package/dist/cjs/commands/RecognizeUtteranceCommand.js +0 -97
- package/dist/cjs/commands/RecognizeUtteranceCommand.js.map +0 -1
- package/dist/cjs/commands/StartConversationCommand.js +0 -90
- package/dist/cjs/commands/StartConversationCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -96
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/LexRuntimeV2.js.map +0 -1
- package/dist/es/LexRuntimeV2Client.js.map +0 -1
- package/dist/es/commands/DeleteSessionCommand.js.map +0 -1
- package/dist/es/commands/GetSessionCommand.js.map +0 -1
- package/dist/es/commands/PutSessionCommand.js.map +0 -1
- package/dist/es/commands/RecognizeTextCommand.js.map +0 -1
- package/dist/es/commands/RecognizeUtteranceCommand.js.map +0 -1
- package/dist/es/commands/StartConversationCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -10
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -96
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/types/LexRuntimeV2.d.ts +0 -139
- package/dist/types/ts3.4/commands/DeleteSessionCommand.d.ts +0 -48
- package/dist/types/ts3.4/commands/GetSessionCommand.d.ts +0 -43
- package/dist/types/ts3.4/commands/PutSessionCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/RecognizeTextCommand.d.ts +0 -39
- package/dist/types/ts3.4/commands/RecognizeUtteranceCommand.d.ts +0 -82
- package/dist/types/ts3.4/commands/StartConversationCommand.d.ts +0 -62
- package/dist/types/ts3.4/models/models_0.d.ts +0 -2035
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -2458
- package/protocols/Aws_restJson1.ts +0 -2458
- package/runtimeConfig.browser.ts +0 -45
- package/runtimeConfig.native.ts +0 -20
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -49
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -31
- package/tsconfig.types.json +0 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,53 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 10/15/2021 ([#2902](https://github.com/aws/aws-sdk-js-v3/issues/2902)) ([2730b54](https://github.com/aws/aws-sdk-js-v3/commit/2730b5424377944a5a2ad5e1ad7d3ca4135dae1c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
* publish files in dist-* only ([#2873](https://github.com/aws/aws-sdk-js-v3/issues/2873)) ([53b4243](https://github.com/aws/aws-sdk-js-v3/commit/53b4243b066f25ff2412d5f0dea1036054b2df32))
|
|
34
|
+
* **codegen:** ts-ignore packageInfo imports in codegen ([#2875](https://github.com/aws/aws-sdk-js-v3/issues/2875)) ([99d9267](https://github.com/aws/aws-sdk-js-v3/commit/99d926762193e83a354edec6e9de2b0543449704))
|
|
35
|
+
* **tsconfig:** remove sourceMap ([#2867](https://github.com/aws/aws-sdk-js-v3/issues/2867)) ([d25f526](https://github.com/aws/aws-sdk-js-v3/commit/d25f526627a02a2ca28675fecce66c76b6c97966))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
# [3.35.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.34.0...v3.35.0) (2021-10-04)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Features
|
|
45
|
+
|
|
46
|
+
* **clients:** eslint --fix using esprint ([#2849](https://github.com/aws/aws-sdk-js-v3/issues/2849)) ([94d0a2d](https://github.com/aws/aws-sdk-js-v3/commit/94d0a2d8a0579ee0a742337937ad05735cfbc1ba))
|
|
47
|
+
* **clients:** move source files to 'src' folder ([#2845](https://github.com/aws/aws-sdk-js-v3/issues/2845)) ([e0025cd](https://github.com/aws/aws-sdk-js-v3/commit/e0025cddbba244a41ddf1fd1adb761142e15c22d))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
6
53
|
# [3.34.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.33.0...v3.34.0) (2021-09-24)
|
|
7
54
|
|
|
8
55
|
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LexRuntimeV2 = void 0;
|
|
4
|
-
const LexRuntimeV2Client_1 = require("./LexRuntimeV2Client");
|
|
5
4
|
const DeleteSessionCommand_1 = require("./commands/DeleteSessionCommand");
|
|
6
5
|
const GetSessionCommand_1 = require("./commands/GetSessionCommand");
|
|
7
6
|
const PutSessionCommand_1 = require("./commands/PutSessionCommand");
|
|
8
7
|
const RecognizeTextCommand_1 = require("./commands/RecognizeTextCommand");
|
|
9
8
|
const RecognizeUtteranceCommand_1 = require("./commands/RecognizeUtteranceCommand");
|
|
10
9
|
const StartConversationCommand_1 = require("./commands/StartConversationCommand");
|
|
11
|
-
|
|
12
|
-
* <p></p>
|
|
13
|
-
*/
|
|
10
|
+
const LexRuntimeV2Client_1 = require("./LexRuntimeV2Client");
|
|
14
11
|
class LexRuntimeV2 extends LexRuntimeV2Client_1.LexRuntimeV2Client {
|
|
15
12
|
deleteSession(args, optionsOrCb, cb) {
|
|
16
13
|
const command = new DeleteSessionCommand_1.DeleteSessionCommand(args);
|
|
@@ -98,4 +95,3 @@ class LexRuntimeV2 extends LexRuntimeV2Client_1.LexRuntimeV2Client {
|
|
|
98
95
|
}
|
|
99
96
|
}
|
|
100
97
|
exports.LexRuntimeV2 = LexRuntimeV2;
|
|
101
|
-
//# sourceMappingURL=LexRuntimeV2.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LexRuntimeV2Client = void 0;
|
|
4
|
-
const runtimeConfig_1 = require("./runtimeConfig");
|
|
5
4
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
6
5
|
const eventstream_serde_config_resolver_1 = require("@aws-sdk/eventstream-serde-config-resolver");
|
|
7
6
|
const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
|
|
@@ -12,20 +11,18 @@ const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
|
12
11
|
const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
13
12
|
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
14
13
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
15
|
-
|
|
16
|
-
* <p></p>
|
|
17
|
-
*/
|
|
14
|
+
const runtimeConfig_1 = require("./runtimeConfig");
|
|
18
15
|
class LexRuntimeV2Client extends smithy_client_1.Client {
|
|
19
16
|
constructor(configuration) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
17
|
+
const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
|
|
18
|
+
const _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
|
|
19
|
+
const _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
|
|
20
|
+
const _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
|
|
21
|
+
const _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
|
|
22
|
+
const _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4);
|
|
23
|
+
const _config_6 = middleware_eventstream_1.resolveEventStreamConfig(_config_5);
|
|
24
|
+
const _config_7 = middleware_user_agent_1.resolveUserAgentConfig(_config_6);
|
|
25
|
+
const _config_8 = eventstream_serde_config_resolver_1.resolveEventStreamSerdeConfig(_config_7);
|
|
29
26
|
super(_config_8);
|
|
30
27
|
this.config = _config_8;
|
|
31
28
|
this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config));
|
|
@@ -35,14 +32,8 @@ class LexRuntimeV2Client extends smithy_client_1.Client {
|
|
|
35
32
|
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
|
|
36
33
|
this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
|
|
37
34
|
}
|
|
38
|
-
/**
|
|
39
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
40
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
41
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
42
|
-
*/
|
|
43
35
|
destroy() {
|
|
44
36
|
super.destroy();
|
|
45
37
|
}
|
|
46
38
|
}
|
|
47
39
|
exports.LexRuntimeV2Client = LexRuntimeV2Client;
|
|
48
|
-
//# sourceMappingURL=LexRuntimeV2Client.js.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteSessionCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class DeleteSessionCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "LexRuntimeV2Client";
|
|
18
|
+
const commandName = "DeleteSessionCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DeleteSessionRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.DeleteSessionResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1DeleteSessionCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1DeleteSessionCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DeleteSessionCommand = DeleteSessionCommand;
|
|
@@ -1,47 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetSessionCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* user.</p>
|
|
11
|
-
* <p>For example, you can use this operation to retrieve session
|
|
12
|
-
* information for a user that has left a long-running session in
|
|
13
|
-
* use.</p>
|
|
14
|
-
* <p>If the bot, alias, or session identifier doesn't exist, Amazon Lex V2
|
|
15
|
-
* returns a <code>BadRequestException</code>. If the locale doesn't exist
|
|
16
|
-
* or is not enabled for the alias, you receive a
|
|
17
|
-
* <code>BadRequestException</code>.</p>
|
|
18
|
-
* @example
|
|
19
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
20
|
-
* ```javascript
|
|
21
|
-
* import { LexRuntimeV2Client, GetSessionCommand } from "@aws-sdk/client-lex-runtime-v2"; // ES Modules import
|
|
22
|
-
* // const { LexRuntimeV2Client, GetSessionCommand } = require("@aws-sdk/client-lex-runtime-v2"); // CommonJS import
|
|
23
|
-
* const client = new LexRuntimeV2Client(config);
|
|
24
|
-
* const command = new GetSessionCommand(input);
|
|
25
|
-
* const response = await client.send(command);
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* @see {@link GetSessionCommandInput} for command's `input` shape.
|
|
29
|
-
* @see {@link GetSessionCommandOutput} for command's `response` shape.
|
|
30
|
-
* @see {@link LexRuntimeV2ClientResolvedConfig | config} for command's `input` shape.
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
33
8
|
class GetSessionCommand extends smithy_client_1.Command {
|
|
34
|
-
// Start section: command_properties
|
|
35
|
-
// End section: command_properties
|
|
36
9
|
constructor(input) {
|
|
37
|
-
// Start section: command_constructor
|
|
38
10
|
super();
|
|
39
11
|
this.input = input;
|
|
40
|
-
// End section: command_constructor
|
|
41
12
|
}
|
|
42
|
-
/**
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
45
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
46
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
47
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -66,4 +34,3 @@ class GetSessionCommand extends smithy_client_1.Command {
|
|
|
66
34
|
}
|
|
67
35
|
}
|
|
68
36
|
exports.GetSessionCommand = GetSessionCommand;
|
|
69
|
-
//# sourceMappingURL=GetSessionCommand.js.map
|
|
@@ -1,41 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PutSessionCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* bot. Use this operation to enable your application to set the state of
|
|
11
|
-
* the bot.</p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { LexRuntimeV2Client, PutSessionCommand } from "@aws-sdk/client-lex-runtime-v2"; // ES Modules import
|
|
16
|
-
* // const { LexRuntimeV2Client, PutSessionCommand } = require("@aws-sdk/client-lex-runtime-v2"); // CommonJS import
|
|
17
|
-
* const client = new LexRuntimeV2Client(config);
|
|
18
|
-
* const command = new PutSessionCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link PutSessionCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link PutSessionCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link LexRuntimeV2ClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
27
8
|
class PutSessionCommand extends smithy_client_1.Command {
|
|
28
|
-
// Start section: command_properties
|
|
29
|
-
// End section: command_properties
|
|
30
9
|
constructor(input) {
|
|
31
|
-
// Start section: command_constructor
|
|
32
10
|
super();
|
|
33
11
|
this.input = input;
|
|
34
|
-
// End section: command_constructor
|
|
35
12
|
}
|
|
36
|
-
/**
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
40
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
41
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -60,4 +34,3 @@ class PutSessionCommand extends smithy_client_1.Command {
|
|
|
60
34
|
}
|
|
61
35
|
}
|
|
62
36
|
exports.PutSessionCommand = PutSessionCommand;
|
|
63
|
-
//# sourceMappingURL=PutSessionCommand.js.map
|
|
@@ -1,43 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RecognizeTextCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* requests to Amazon Lex V2 at runtime. Amazon Lex V2 then interprets the user input
|
|
11
|
-
* using the machine learning model that it build for the bot.</p>
|
|
12
|
-
* <p>In response, Amazon Lex V2 returns the next message to convey to the user
|
|
13
|
-
* and an optional response card to display.</p>
|
|
14
|
-
* @example
|
|
15
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
16
|
-
* ```javascript
|
|
17
|
-
* import { LexRuntimeV2Client, RecognizeTextCommand } from "@aws-sdk/client-lex-runtime-v2"; // ES Modules import
|
|
18
|
-
* // const { LexRuntimeV2Client, RecognizeTextCommand } = require("@aws-sdk/client-lex-runtime-v2"); // CommonJS import
|
|
19
|
-
* const client = new LexRuntimeV2Client(config);
|
|
20
|
-
* const command = new RecognizeTextCommand(input);
|
|
21
|
-
* const response = await client.send(command);
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @see {@link RecognizeTextCommandInput} for command's `input` shape.
|
|
25
|
-
* @see {@link RecognizeTextCommandOutput} for command's `response` shape.
|
|
26
|
-
* @see {@link LexRuntimeV2ClientResolvedConfig | config} for command's `input` shape.
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
29
8
|
class RecognizeTextCommand extends smithy_client_1.Command {
|
|
30
|
-
// Start section: command_properties
|
|
31
|
-
// End section: command_properties
|
|
32
9
|
constructor(input) {
|
|
33
|
-
// Start section: command_constructor
|
|
34
10
|
super();
|
|
35
11
|
this.input = input;
|
|
36
|
-
// End section: command_constructor
|
|
37
12
|
}
|
|
38
|
-
/**
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
42
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
43
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -62,4 +34,3 @@ class RecognizeTextCommand extends smithy_client_1.Command {
|
|
|
62
34
|
}
|
|
63
35
|
}
|
|
64
36
|
exports.RecognizeTextCommand = RecognizeTextCommand;
|
|
65
|
-
//# sourceMappingURL=RecognizeTextCommand.js.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RecognizeUtteranceCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class RecognizeUtteranceCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "LexRuntimeV2Client";
|
|
18
|
+
const commandName = "RecognizeUtteranceCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.RecognizeUtteranceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.RecognizeUtteranceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1RecognizeUtteranceCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1RecognizeUtteranceCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.RecognizeUtteranceCommand = RecognizeUtteranceCommand;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StartConversationCommand = void 0;
|
|
4
|
+
const middleware_eventstream_1 = require("@aws-sdk/middleware-eventstream");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class StartConversationCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
15
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
16
|
+
this.middlewareStack.use(middleware_eventstream_1.getEventStreamPlugin(configuration));
|
|
17
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
18
|
+
const { logger } = configuration;
|
|
19
|
+
const clientName = "LexRuntimeV2Client";
|
|
20
|
+
const commandName = "StartConversationCommand";
|
|
21
|
+
const handlerExecutionContext = {
|
|
22
|
+
logger,
|
|
23
|
+
clientName,
|
|
24
|
+
commandName,
|
|
25
|
+
inputFilterSensitiveLog: models_0_1.StartConversationRequest.filterSensitiveLog,
|
|
26
|
+
outputFilterSensitiveLog: models_0_1.StartConversationResponse.filterSensitiveLog,
|
|
27
|
+
};
|
|
28
|
+
const { requestHandler } = configuration;
|
|
29
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
30
|
+
}
|
|
31
|
+
serialize(input, context) {
|
|
32
|
+
return Aws_restJson1_1.serializeAws_restJson1StartConversationCommand(input, context);
|
|
33
|
+
}
|
|
34
|
+
deserialize(output, context) {
|
|
35
|
+
return Aws_restJson1_1.deserializeAws_restJson1StartConversationCommand(output, context);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.StartConversationCommand = StartConversationCommand;
|
|
@@ -35,7 +35,7 @@ const partitionHash = {
|
|
|
35
35
|
hostname: "runtime-v2-lex.{region}.amazonaws.com.cn",
|
|
36
36
|
},
|
|
37
37
|
"aws-iso": {
|
|
38
|
-
regions: ["us-iso-east-1"],
|
|
38
|
+
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
39
39
|
hostname: "runtime-v2-lex.{region}.c2s.ic.gov",
|
|
40
40
|
},
|
|
41
41
|
"aws-iso-b": {
|
|
@@ -54,4 +54,3 @@ const defaultRegionInfoProvider = async (region, options) => config_resolver_1.g
|
|
|
54
54
|
partitionHash,
|
|
55
55
|
});
|
|
56
56
|
exports.defaultRegionInfoProvider = defaultRegionInfoProvider;
|
|
57
|
-
//# sourceMappingURL=endpoints.js.map
|
|
@@ -10,4 +10,3 @@ tslib_1.__exportStar(require("./commands/RecognizeTextCommand"), exports);
|
|
|
10
10
|
tslib_1.__exportStar(require("./commands/RecognizeUtteranceCommand"), exports);
|
|
11
11
|
tslib_1.__exportStar(require("./commands/StartConversationCommand"), exports);
|
|
12
12
|
tslib_1.__exportStar(require("./models/index"), exports);
|
|
13
|
-
//# sourceMappingURL=index.js.map
|