@aws-sdk/client-lex-runtime-v2 3.183.0 → 3.185.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 +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/LexRuntimeV2.js +33 -26
- package/dist-es/LexRuntimeV2Client.js +30 -24
- package/dist-es/commands/DeleteSessionCommand.js +28 -21
- package/dist-es/commands/GetSessionCommand.js +28 -21
- package/dist-es/commands/PutSessionCommand.js +28 -21
- package/dist-es/commands/RecognizeTextCommand.js +28 -21
- package/dist-es/commands/RecognizeUtteranceCommand.js +28 -21
- package/dist-es/commands/StartConversationCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/LexRuntimeV2ServiceException.js +10 -5
- package/dist-es/models/models_0.js +141 -237
- package/dist-es/protocols/Aws_restJson1.js +1301 -1063
- package/dist-es/runtimeConfig.browser.js +12 -29
- package/dist-es/runtimeConfig.js +19 -33
- package/dist-es/runtimeConfig.native.js +5 -10
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-lex-runtime-v2
|
|
@@ -1440,10 +1440,10 @@ const deserializeAws_restJson1Values = (output, context) => {
|
|
|
1440
1440
|
return retVal;
|
|
1441
1441
|
};
|
|
1442
1442
|
const deserializeMetadata = (output) => {
|
|
1443
|
-
var _a;
|
|
1443
|
+
var _a, _b;
|
|
1444
1444
|
return ({
|
|
1445
1445
|
httpStatusCode: output.statusCode,
|
|
1446
|
-
requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
|
|
1446
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
1447
1447
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1448
1448
|
cfId: output.headers["x-amz-cf-id"],
|
|
1449
1449
|
});
|
package/dist-es/LexRuntimeV2.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { DeleteSessionCommand, } from "./commands/DeleteSessionCommand";
|
|
2
3
|
import { GetSessionCommand } from "./commands/GetSessionCommand";
|
|
3
4
|
import { PutSessionCommand } from "./commands/PutSessionCommand";
|
|
@@ -5,89 +6,95 @@ import { RecognizeTextCommand, } from "./commands/RecognizeTextCommand";
|
|
|
5
6
|
import { RecognizeUtteranceCommand, } from "./commands/RecognizeUtteranceCommand";
|
|
6
7
|
import { StartConversationCommand, } from "./commands/StartConversationCommand";
|
|
7
8
|
import { LexRuntimeV2Client } from "./LexRuntimeV2Client";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
var LexRuntimeV2 = (function (_super) {
|
|
10
|
+
__extends(LexRuntimeV2, _super);
|
|
11
|
+
function LexRuntimeV2() {
|
|
12
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
13
|
+
}
|
|
14
|
+
LexRuntimeV2.prototype.deleteSession = function (args, optionsOrCb, cb) {
|
|
15
|
+
var command = new DeleteSessionCommand(args);
|
|
11
16
|
if (typeof optionsOrCb === "function") {
|
|
12
17
|
this.send(command, optionsOrCb);
|
|
13
18
|
}
|
|
14
19
|
else if (typeof cb === "function") {
|
|
15
20
|
if (typeof optionsOrCb !== "object")
|
|
16
|
-
throw new Error(
|
|
21
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
17
22
|
this.send(command, optionsOrCb || {}, cb);
|
|
18
23
|
}
|
|
19
24
|
else {
|
|
20
25
|
return this.send(command, optionsOrCb);
|
|
21
26
|
}
|
|
22
|
-
}
|
|
23
|
-
getSession(args, optionsOrCb, cb) {
|
|
24
|
-
|
|
27
|
+
};
|
|
28
|
+
LexRuntimeV2.prototype.getSession = function (args, optionsOrCb, cb) {
|
|
29
|
+
var command = new GetSessionCommand(args);
|
|
25
30
|
if (typeof optionsOrCb === "function") {
|
|
26
31
|
this.send(command, optionsOrCb);
|
|
27
32
|
}
|
|
28
33
|
else if (typeof cb === "function") {
|
|
29
34
|
if (typeof optionsOrCb !== "object")
|
|
30
|
-
throw new Error(
|
|
35
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
31
36
|
this.send(command, optionsOrCb || {}, cb);
|
|
32
37
|
}
|
|
33
38
|
else {
|
|
34
39
|
return this.send(command, optionsOrCb);
|
|
35
40
|
}
|
|
36
|
-
}
|
|
37
|
-
putSession(args, optionsOrCb, cb) {
|
|
38
|
-
|
|
41
|
+
};
|
|
42
|
+
LexRuntimeV2.prototype.putSession = function (args, optionsOrCb, cb) {
|
|
43
|
+
var command = new PutSessionCommand(args);
|
|
39
44
|
if (typeof optionsOrCb === "function") {
|
|
40
45
|
this.send(command, optionsOrCb);
|
|
41
46
|
}
|
|
42
47
|
else if (typeof cb === "function") {
|
|
43
48
|
if (typeof optionsOrCb !== "object")
|
|
44
|
-
throw new Error(
|
|
49
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
45
50
|
this.send(command, optionsOrCb || {}, cb);
|
|
46
51
|
}
|
|
47
52
|
else {
|
|
48
53
|
return this.send(command, optionsOrCb);
|
|
49
54
|
}
|
|
50
|
-
}
|
|
51
|
-
recognizeText(args, optionsOrCb, cb) {
|
|
52
|
-
|
|
55
|
+
};
|
|
56
|
+
LexRuntimeV2.prototype.recognizeText = function (args, optionsOrCb, cb) {
|
|
57
|
+
var command = new RecognizeTextCommand(args);
|
|
53
58
|
if (typeof optionsOrCb === "function") {
|
|
54
59
|
this.send(command, optionsOrCb);
|
|
55
60
|
}
|
|
56
61
|
else if (typeof cb === "function") {
|
|
57
62
|
if (typeof optionsOrCb !== "object")
|
|
58
|
-
throw new Error(
|
|
63
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
59
64
|
this.send(command, optionsOrCb || {}, cb);
|
|
60
65
|
}
|
|
61
66
|
else {
|
|
62
67
|
return this.send(command, optionsOrCb);
|
|
63
68
|
}
|
|
64
|
-
}
|
|
65
|
-
recognizeUtterance(args, optionsOrCb, cb) {
|
|
66
|
-
|
|
69
|
+
};
|
|
70
|
+
LexRuntimeV2.prototype.recognizeUtterance = function (args, optionsOrCb, cb) {
|
|
71
|
+
var command = new RecognizeUtteranceCommand(args);
|
|
67
72
|
if (typeof optionsOrCb === "function") {
|
|
68
73
|
this.send(command, optionsOrCb);
|
|
69
74
|
}
|
|
70
75
|
else if (typeof cb === "function") {
|
|
71
76
|
if (typeof optionsOrCb !== "object")
|
|
72
|
-
throw new Error(
|
|
77
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
73
78
|
this.send(command, optionsOrCb || {}, cb);
|
|
74
79
|
}
|
|
75
80
|
else {
|
|
76
81
|
return this.send(command, optionsOrCb);
|
|
77
82
|
}
|
|
78
|
-
}
|
|
79
|
-
startConversation(args, optionsOrCb, cb) {
|
|
80
|
-
|
|
83
|
+
};
|
|
84
|
+
LexRuntimeV2.prototype.startConversation = function (args, optionsOrCb, cb) {
|
|
85
|
+
var command = new StartConversationCommand(args);
|
|
81
86
|
if (typeof optionsOrCb === "function") {
|
|
82
87
|
this.send(command, optionsOrCb);
|
|
83
88
|
}
|
|
84
89
|
else if (typeof cb === "function") {
|
|
85
90
|
if (typeof optionsOrCb !== "object")
|
|
86
|
-
throw new Error(
|
|
91
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
87
92
|
this.send(command, optionsOrCb || {}, cb);
|
|
88
93
|
}
|
|
89
94
|
else {
|
|
90
95
|
return this.send(command, optionsOrCb);
|
|
91
96
|
}
|
|
92
|
-
}
|
|
93
|
-
|
|
97
|
+
};
|
|
98
|
+
return LexRuntimeV2;
|
|
99
|
+
}(LexRuntimeV2Client));
|
|
100
|
+
export { LexRuntimeV2 };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
2
3
|
import { resolveEventStreamSerdeConfig, } from "@aws-sdk/eventstream-serde-config-resolver";
|
|
3
4
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
@@ -10,28 +11,33 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
10
11
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
11
12
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
12
13
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
14
|
+
var LexRuntimeV2Client = (function (_super) {
|
|
15
|
+
__extends(LexRuntimeV2Client, _super);
|
|
16
|
+
function LexRuntimeV2Client(configuration) {
|
|
17
|
+
var _this = this;
|
|
18
|
+
var _config_0 = __getRuntimeConfig(configuration);
|
|
19
|
+
var _config_1 = resolveRegionConfig(_config_0);
|
|
20
|
+
var _config_2 = resolveEndpointsConfig(_config_1);
|
|
21
|
+
var _config_3 = resolveRetryConfig(_config_2);
|
|
22
|
+
var _config_4 = resolveHostHeaderConfig(_config_3);
|
|
23
|
+
var _config_5 = resolveAwsAuthConfig(_config_4);
|
|
24
|
+
var _config_6 = resolveEventStreamConfig(_config_5);
|
|
25
|
+
var _config_7 = resolveUserAgentConfig(_config_6);
|
|
26
|
+
var _config_8 = resolveEventStreamSerdeConfig(_config_7);
|
|
27
|
+
_this = _super.call(this, _config_8) || this;
|
|
28
|
+
_this.config = _config_8;
|
|
29
|
+
_this.middlewareStack.use(getRetryPlugin(_this.config));
|
|
30
|
+
_this.middlewareStack.use(getContentLengthPlugin(_this.config));
|
|
31
|
+
_this.middlewareStack.use(getHostHeaderPlugin(_this.config));
|
|
32
|
+
_this.middlewareStack.use(getLoggerPlugin(_this.config));
|
|
33
|
+
_this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
|
|
34
|
+
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
35
|
+
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
36
|
+
return _this;
|
|
33
37
|
}
|
|
34
|
-
destroy() {
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
+
LexRuntimeV2Client.prototype.destroy = function () {
|
|
39
|
+
_super.prototype.destroy.call(this);
|
|
40
|
+
};
|
|
41
|
+
return LexRuntimeV2Client;
|
|
42
|
+
}(__Client));
|
|
43
|
+
export { LexRuntimeV2Client };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { DeleteSessionRequestFilterSensitiveLog, DeleteSessionResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1DeleteSessionCommand, serializeAws_restJson1DeleteSessionCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var DeleteSessionCommand = (function (_super) {
|
|
7
|
+
__extends(DeleteSessionCommand, _super);
|
|
8
|
+
function DeleteSessionCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
DeleteSessionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "LexRuntimeV2Client";
|
|
18
|
+
var commandName = "DeleteSessionCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: DeleteSessionRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: DeleteSessionResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DeleteSessionCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1DeleteSessionCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
DeleteSessionCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1DeleteSessionCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return DeleteSessionCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DeleteSessionCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { GetSessionRequestFilterSensitiveLog, GetSessionResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1GetSessionCommand, serializeAws_restJson1GetSessionCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var GetSessionCommand = (function (_super) {
|
|
7
|
+
__extends(GetSessionCommand, _super);
|
|
8
|
+
function GetSessionCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
GetSessionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "LexRuntimeV2Client";
|
|
18
|
+
var commandName = "GetSessionCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: GetSessionRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: GetSessionResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetSessionCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1GetSessionCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
GetSessionCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1GetSessionCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return GetSessionCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetSessionCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { PutSessionRequestFilterSensitiveLog, PutSessionResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1PutSessionCommand, serializeAws_restJson1PutSessionCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var PutSessionCommand = (function (_super) {
|
|
7
|
+
__extends(PutSessionCommand, _super);
|
|
8
|
+
function PutSessionCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
PutSessionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "LexRuntimeV2Client";
|
|
18
|
+
var commandName = "PutSessionCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: PutSessionRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: PutSessionResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
PutSessionCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1PutSessionCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
PutSessionCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1PutSessionCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return PutSessionCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { PutSessionCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { RecognizeTextRequestFilterSensitiveLog, RecognizeTextResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1RecognizeTextCommand, serializeAws_restJson1RecognizeTextCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var RecognizeTextCommand = (function (_super) {
|
|
7
|
+
__extends(RecognizeTextCommand, _super);
|
|
8
|
+
function RecognizeTextCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
RecognizeTextCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "LexRuntimeV2Client";
|
|
18
|
+
var commandName = "RecognizeTextCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: RecognizeTextRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: RecognizeTextResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
RecognizeTextCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1RecognizeTextCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
RecognizeTextCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1RecognizeTextCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return RecognizeTextCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { RecognizeTextCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { RecognizeUtteranceRequestFilterSensitiveLog, RecognizeUtteranceResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1RecognizeUtteranceCommand, serializeAws_restJson1RecognizeUtteranceCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var RecognizeUtteranceCommand = (function (_super) {
|
|
7
|
+
__extends(RecognizeUtteranceCommand, _super);
|
|
8
|
+
function RecognizeUtteranceCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
RecognizeUtteranceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "LexRuntimeV2Client";
|
|
18
|
+
var commandName = "RecognizeUtteranceCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: RecognizeUtteranceRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: RecognizeUtteranceResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
RecognizeUtteranceCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1RecognizeUtteranceCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
RecognizeUtteranceCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1RecognizeUtteranceCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return RecognizeUtteranceCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { RecognizeUtteranceCommand };
|
|
@@ -1,34 +1,41 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getEventStreamPlugin } from "@aws-sdk/middleware-eventstream";
|
|
2
3
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
5
|
import { StartConversationRequestFilterSensitiveLog, StartConversationResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
6
|
import { deserializeAws_restJson1StartConversationCommand, serializeAws_restJson1StartConversationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
var StartConversationCommand = (function (_super) {
|
|
8
|
+
__extends(StartConversationCommand, _super);
|
|
9
|
+
function StartConversationCommand(input) {
|
|
10
|
+
var _this = _super.call(this) || this;
|
|
11
|
+
_this.input = input;
|
|
12
|
+
return _this;
|
|
10
13
|
}
|
|
11
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
StartConversationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
12
15
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
13
16
|
this.middlewareStack.use(getEventStreamPlugin(configuration));
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
logger,
|
|
20
|
-
clientName,
|
|
21
|
-
commandName,
|
|
17
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
18
|
+
var logger = configuration.logger;
|
|
19
|
+
var clientName = "LexRuntimeV2Client";
|
|
20
|
+
var commandName = "StartConversationCommand";
|
|
21
|
+
var handlerExecutionContext = {
|
|
22
|
+
logger: logger,
|
|
23
|
+
clientName: clientName,
|
|
24
|
+
commandName: commandName,
|
|
22
25
|
inputFilterSensitiveLog: StartConversationRequestFilterSensitiveLog,
|
|
23
26
|
outputFilterSensitiveLog: StartConversationResponseFilterSensitiveLog,
|
|
24
27
|
};
|
|
25
|
-
|
|
26
|
-
return stack.resolve((request)
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
var requestHandler = configuration.requestHandler;
|
|
29
|
+
return stack.resolve(function (request) {
|
|
30
|
+
return requestHandler.handle(request.request, options || {});
|
|
31
|
+
}, handlerExecutionContext);
|
|
32
|
+
};
|
|
33
|
+
StartConversationCommand.prototype.serialize = function (input, context) {
|
|
29
34
|
return serializeAws_restJson1StartConversationCommand(input, context);
|
|
30
|
-
}
|
|
31
|
-
deserialize(output, context) {
|
|
35
|
+
};
|
|
36
|
+
StartConversationCommand.prototype.deserialize = function (output, context) {
|
|
32
37
|
return deserializeAws_restJson1StartConversationCommand(output, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
38
|
+
};
|
|
39
|
+
return StartConversationCommand;
|
|
40
|
+
}($Command));
|
|
41
|
+
export { StartConversationCommand };
|
package/dist-es/endpoints.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
2
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
2
|
-
|
|
3
|
-
|
|
3
|
+
var regionHash = {};
|
|
4
|
+
var partitionHash = {
|
|
4
5
|
aws: {
|
|
5
6
|
regions: [
|
|
6
7
|
"af-south-1",
|
|
@@ -120,9 +121,8 @@ const partitionHash = {
|
|
|
120
121
|
],
|
|
121
122
|
},
|
|
122
123
|
};
|
|
123
|
-
export
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
});
|
|
124
|
+
export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
125
|
+
return __generator(this, function (_a) {
|
|
126
|
+
return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "lex", regionHash: regionHash, partitionHash: partitionHash }))];
|
|
127
|
+
});
|
|
128
|
+
}); };
|