@aws-sdk/client-lex-runtime-v2 3.39.0 → 3.43.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 +41 -0
- package/dist-cjs/endpoints.js +74 -5
- package/dist-cjs/models/models_0.js +8 -2
- package/dist-cjs/protocols/Aws_restJson1.js +3 -0
- package/dist-cjs/runtimeConfig.browser.js +6 -3
- package/dist-cjs/runtimeConfig.js +5 -3
- package/dist-es/endpoints.js +74 -5
- package/dist-es/models/models_0.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +3 -1
- package/dist-es/runtimeConfig.browser.js +3 -2
- package/dist-es/runtimeConfig.js +3 -3
- package/dist-types/LexRuntimeV2Client.d.ts +8 -0
- package/dist-types/commands/DeleteSessionCommand.d.ts +1 -1
- package/dist-types/commands/GetSessionCommand.d.ts +1 -1
- package/dist-types/commands/PutSessionCommand.d.ts +1 -1
- package/dist-types/commands/RecognizeTextCommand.d.ts +1 -1
- package/dist-types/commands/RecognizeUtteranceCommand.d.ts +1 -1
- package/dist-types/commands/StartConversationCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +22 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/LexRuntimeV2Client.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +7 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +28 -28
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,47 @@
|
|
|
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.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 11/28/2021 ([#3072](https://github.com/aws/aws-sdk-js-v3/issues/3072)) ([2ad1622](https://github.com/aws/aws-sdk-js-v3/commit/2ad1622ba8586b926fe508055211803bb29e3976))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-lex-runtime-v2
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* **clients:** update clients as of 2021/11/11 ([#3015](https://github.com/aws/aws-sdk-js-v3/issues/3015)) ([3d82c4e](https://github.com/aws/aws-sdk-js-v3/commit/3d82c4e3c4d174533f46ce35495cf5cffabdb35a))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Features
|
|
40
|
+
|
|
41
|
+
* **clients:** populate variants in endpoints hashes ([#2974](https://github.com/aws/aws-sdk-js-v3/issues/2974)) ([0dd68ef](https://github.com/aws/aws-sdk-js-v3/commit/0dd68ef8b04ea0e96e43b05a9a10221e433fdf86))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
6
47
|
# [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
|
|
7
48
|
|
|
8
49
|
**Note:** Version bump only for package @aws-sdk/client-lex-runtime-v2
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -29,27 +29,96 @@ const partitionHash = {
|
|
|
29
29
|
"us-west-2",
|
|
30
30
|
],
|
|
31
31
|
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
|
|
32
|
-
|
|
32
|
+
variants: [
|
|
33
|
+
{
|
|
34
|
+
hostname: "runtime-v2-lex.{region}.amazonaws.com",
|
|
35
|
+
tags: [],
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
hostname: "runtime-v2-lex-fips.{region}.amazonaws.com",
|
|
39
|
+
tags: ["fips"],
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
hostname: "runtime-v2-lex-fips.{region}.api.aws",
|
|
43
|
+
tags: ["dualstack", "fips"],
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
hostname: "runtime-v2-lex.{region}.api.aws",
|
|
47
|
+
tags: ["dualstack"],
|
|
48
|
+
},
|
|
49
|
+
],
|
|
33
50
|
},
|
|
34
51
|
"aws-cn": {
|
|
35
52
|
regions: ["cn-north-1", "cn-northwest-1"],
|
|
36
53
|
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
|
37
|
-
|
|
54
|
+
variants: [
|
|
55
|
+
{
|
|
56
|
+
hostname: "runtime-v2-lex.{region}.amazonaws.com.cn",
|
|
57
|
+
tags: [],
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
hostname: "runtime-v2-lex-fips.{region}.amazonaws.com.cn",
|
|
61
|
+
tags: ["fips"],
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
hostname: "runtime-v2-lex-fips.{region}.api.amazonwebservices.com.cn",
|
|
65
|
+
tags: ["dualstack", "fips"],
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
hostname: "runtime-v2-lex.{region}.api.amazonwebservices.com.cn",
|
|
69
|
+
tags: ["dualstack"],
|
|
70
|
+
},
|
|
71
|
+
],
|
|
38
72
|
},
|
|
39
73
|
"aws-iso": {
|
|
40
74
|
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
41
75
|
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
|
42
|
-
|
|
76
|
+
variants: [
|
|
77
|
+
{
|
|
78
|
+
hostname: "runtime-v2-lex.{region}.c2s.ic.gov",
|
|
79
|
+
tags: [],
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
hostname: "runtime-v2-lex-fips.{region}.c2s.ic.gov",
|
|
83
|
+
tags: ["fips"],
|
|
84
|
+
},
|
|
85
|
+
],
|
|
43
86
|
},
|
|
44
87
|
"aws-iso-b": {
|
|
45
88
|
regions: ["us-isob-east-1"],
|
|
46
89
|
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
|
47
|
-
|
|
90
|
+
variants: [
|
|
91
|
+
{
|
|
92
|
+
hostname: "runtime-v2-lex.{region}.sc2s.sgov.gov",
|
|
93
|
+
tags: [],
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
hostname: "runtime-v2-lex-fips.{region}.sc2s.sgov.gov",
|
|
97
|
+
tags: ["fips"],
|
|
98
|
+
},
|
|
99
|
+
],
|
|
48
100
|
},
|
|
49
101
|
"aws-us-gov": {
|
|
50
102
|
regions: ["us-gov-east-1", "us-gov-west-1"],
|
|
51
103
|
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
52
|
-
|
|
104
|
+
variants: [
|
|
105
|
+
{
|
|
106
|
+
hostname: "runtime-v2-lex.{region}.amazonaws.com",
|
|
107
|
+
tags: [],
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
hostname: "runtime-v2-lex-fips.{region}.amazonaws.com",
|
|
111
|
+
tags: ["fips"],
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
hostname: "runtime-v2-lex-fips.{region}.api.aws",
|
|
115
|
+
tags: ["dualstack", "fips"],
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
hostname: "runtime-v2-lex.{region}.api.aws",
|
|
119
|
+
tags: ["dualstack"],
|
|
120
|
+
},
|
|
121
|
+
],
|
|
53
122
|
},
|
|
54
123
|
};
|
|
55
124
|
const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.StartConversationResponse = exports.StartConversationResponseEventStream = exports.RecognizeTextResponse = exports.IntentResultEvent = exports.GetSessionResponse = exports.StartConversationRequest = exports.StartConversationRequestEventStream = void 0;
|
|
3
|
+
exports.PutSessionRequest = exports.ConfigurationEvent = exports.SessionState = exports.Interpretation = exports.Intent = exports.Slot = exports.TranscriptEvent = exports.TextResponseEvent = exports.PlaybackInterruptionEvent = exports.PlaybackInterruptionReason = exports.InputMode = exports.HeartbeatEvent = exports.TextInputEvent = exports.PlaybackCompletionEvent = exports.DTMFInputEvent = exports.DisconnectionEvent = exports.ConversationMode = exports.RecognizeUtteranceResponse = exports.RecognizeUtteranceRequest = exports.PutSessionResponse = exports.DependencyFailedException = exports.BadGatewayException = exports.DialogAction = exports.DialogActionType = exports.StyleType = exports.Message = exports.ImageResponseCard = exports.Button = exports.MessageContentType = exports.SentimentResponse = exports.SentimentScore = exports.SentimentType = exports.ConfidenceScore = exports.IntentState = exports.Value = exports.Shape = exports.ConfirmationState = exports.GetSessionRequest = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.DeleteSessionResponse = exports.DeleteSessionRequest = exports.ConflictException = exports.AudioResponseEvent = exports.AudioInputEvent = exports.ActiveContext = exports.ActiveContextTimeToLive = exports.AccessDeniedException = void 0;
|
|
4
|
+
exports.StartConversationResponse = exports.StartConversationResponseEventStream = exports.RecognizeTextResponse = exports.IntentResultEvent = exports.GetSessionResponse = exports.StartConversationRequest = exports.StartConversationRequestEventStream = exports.RecognizeTextRequest = void 0;
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
var AccessDeniedException;
|
|
7
7
|
(function (AccessDeniedException) {
|
|
@@ -159,6 +159,12 @@ var Message;
|
|
|
159
159
|
...(obj.content && { content: smithy_client_1.SENSITIVE_STRING }),
|
|
160
160
|
});
|
|
161
161
|
})(Message = exports.Message || (exports.Message = {}));
|
|
162
|
+
var StyleType;
|
|
163
|
+
(function (StyleType) {
|
|
164
|
+
StyleType["DEFAULT"] = "Default";
|
|
165
|
+
StyleType["SPELL_BY_LETTER"] = "SpellByLetter";
|
|
166
|
+
StyleType["SPELL_BY_WORD"] = "SpellByWord";
|
|
167
|
+
})(StyleType = exports.StyleType || (exports.StyleType = {}));
|
|
162
168
|
var DialogActionType;
|
|
163
169
|
(function (DialogActionType) {
|
|
164
170
|
DialogActionType["CLOSE"] = "Close";
|
|
@@ -1497,6 +1497,8 @@ const serializeAws_restJson1ConfigurationEvent = (input, context) => {
|
|
|
1497
1497
|
};
|
|
1498
1498
|
const serializeAws_restJson1DialogAction = (input, context) => {
|
|
1499
1499
|
return {
|
|
1500
|
+
...(input.slotElicitationStyle !== undefined &&
|
|
1501
|
+
input.slotElicitationStyle !== null && { slotElicitationStyle: input.slotElicitationStyle }),
|
|
1500
1502
|
...(input.slotToElicit !== undefined && input.slotToElicit !== null && { slotToElicit: input.slotToElicit }),
|
|
1501
1503
|
...(input.type !== undefined && input.type !== null && { type: input.type }),
|
|
1502
1504
|
};
|
|
@@ -1754,6 +1756,7 @@ const deserializeAws_restJson1DependencyFailedException = (output, context) => {
|
|
|
1754
1756
|
};
|
|
1755
1757
|
const deserializeAws_restJson1DialogAction = (output, context) => {
|
|
1756
1758
|
return {
|
|
1759
|
+
slotElicitationStyle: smithy_client_1.expectString(output.slotElicitationStyle),
|
|
1757
1760
|
slotToElicit: smithy_client_1.expectString(output.slotToElicit),
|
|
1758
1761
|
type: smithy_client_1.expectString(output.type),
|
|
1759
1762
|
};
|
|
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
6
|
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
7
8
|
const eventstream_serde_browser_1 = require("@aws-sdk/eventstream-serde-browser");
|
|
8
9
|
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
9
10
|
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
@@ -14,7 +15,7 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
|
14
15
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
16
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
17
|
const getRuntimeConfig = (config) => {
|
|
17
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
18
19
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
19
20
|
return {
|
|
20
21
|
...clientSharedValues,
|
|
@@ -33,8 +34,10 @@ const getRuntimeConfig = (config) => {
|
|
|
33
34
|
retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
|
|
34
35
|
sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : sha256_browser_1.Sha256,
|
|
35
36
|
streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : fetch_http_handler_1.streamCollector,
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
useDualstackEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _p !== void 0 ? _p : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
38
|
+
useFipsEndpoint: (_q = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _q !== void 0 ? _q : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
39
|
+
utf8Decoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _r !== void 0 ? _r : util_utf8_browser_1.fromUtf8,
|
|
40
|
+
utf8Encoder: (_s = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _s !== void 0 ? _s : util_utf8_browser_1.toUtf8,
|
|
38
41
|
};
|
|
39
42
|
};
|
|
40
43
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -19,7 +19,7 @@ const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
|
19
19
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
20
20
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
21
21
|
const getRuntimeConfig = (config) => {
|
|
22
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
23
23
|
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
|
|
24
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
25
25
|
return {
|
|
@@ -39,8 +39,10 @@ const getRuntimeConfig = (config) => {
|
|
|
39
39
|
retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
|
|
40
40
|
sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : hash_node_1.Hash.bind(null, "sha256"),
|
|
41
41
|
streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : node_http_handler_1.streamCollector,
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
useDualstackEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _p !== void 0 ? _p : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
43
|
+
useFipsEndpoint: (_q = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _q !== void 0 ? _q : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
44
|
+
utf8Decoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _r !== void 0 ? _r : util_utf8_node_1.fromUtf8,
|
|
45
|
+
utf8Encoder: (_s = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _s !== void 0 ? _s : util_utf8_node_1.toUtf8,
|
|
44
46
|
};
|
|
45
47
|
};
|
|
46
48
|
exports.getRuntimeConfig = getRuntimeConfig;
|
package/dist-es/endpoints.js
CHANGED
|
@@ -27,27 +27,96 @@ var partitionHash = {
|
|
|
27
27
|
"us-west-2",
|
|
28
28
|
],
|
|
29
29
|
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
|
|
30
|
-
|
|
30
|
+
variants: [
|
|
31
|
+
{
|
|
32
|
+
hostname: "runtime-v2-lex.{region}.amazonaws.com",
|
|
33
|
+
tags: [],
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
hostname: "runtime-v2-lex-fips.{region}.amazonaws.com",
|
|
37
|
+
tags: ["fips"],
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
hostname: "runtime-v2-lex-fips.{region}.api.aws",
|
|
41
|
+
tags: ["dualstack", "fips"],
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
hostname: "runtime-v2-lex.{region}.api.aws",
|
|
45
|
+
tags: ["dualstack"],
|
|
46
|
+
},
|
|
47
|
+
],
|
|
31
48
|
},
|
|
32
49
|
"aws-cn": {
|
|
33
50
|
regions: ["cn-north-1", "cn-northwest-1"],
|
|
34
51
|
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
|
35
|
-
|
|
52
|
+
variants: [
|
|
53
|
+
{
|
|
54
|
+
hostname: "runtime-v2-lex.{region}.amazonaws.com.cn",
|
|
55
|
+
tags: [],
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
hostname: "runtime-v2-lex-fips.{region}.amazonaws.com.cn",
|
|
59
|
+
tags: ["fips"],
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
hostname: "runtime-v2-lex-fips.{region}.api.amazonwebservices.com.cn",
|
|
63
|
+
tags: ["dualstack", "fips"],
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
hostname: "runtime-v2-lex.{region}.api.amazonwebservices.com.cn",
|
|
67
|
+
tags: ["dualstack"],
|
|
68
|
+
},
|
|
69
|
+
],
|
|
36
70
|
},
|
|
37
71
|
"aws-iso": {
|
|
38
72
|
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
39
73
|
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
|
40
|
-
|
|
74
|
+
variants: [
|
|
75
|
+
{
|
|
76
|
+
hostname: "runtime-v2-lex.{region}.c2s.ic.gov",
|
|
77
|
+
tags: [],
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
hostname: "runtime-v2-lex-fips.{region}.c2s.ic.gov",
|
|
81
|
+
tags: ["fips"],
|
|
82
|
+
},
|
|
83
|
+
],
|
|
41
84
|
},
|
|
42
85
|
"aws-iso-b": {
|
|
43
86
|
regions: ["us-isob-east-1"],
|
|
44
87
|
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
|
45
|
-
|
|
88
|
+
variants: [
|
|
89
|
+
{
|
|
90
|
+
hostname: "runtime-v2-lex.{region}.sc2s.sgov.gov",
|
|
91
|
+
tags: [],
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
hostname: "runtime-v2-lex-fips.{region}.sc2s.sgov.gov",
|
|
95
|
+
tags: ["fips"],
|
|
96
|
+
},
|
|
97
|
+
],
|
|
46
98
|
},
|
|
47
99
|
"aws-us-gov": {
|
|
48
100
|
regions: ["us-gov-east-1", "us-gov-west-1"],
|
|
49
101
|
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
50
|
-
|
|
102
|
+
variants: [
|
|
103
|
+
{
|
|
104
|
+
hostname: "runtime-v2-lex.{region}.amazonaws.com",
|
|
105
|
+
tags: [],
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
hostname: "runtime-v2-lex-fips.{region}.amazonaws.com",
|
|
109
|
+
tags: ["fips"],
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
hostname: "runtime-v2-lex-fips.{region}.api.aws",
|
|
113
|
+
tags: ["dualstack", "fips"],
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
hostname: "runtime-v2-lex.{region}.api.aws",
|
|
117
|
+
tags: ["dualstack"],
|
|
118
|
+
},
|
|
119
|
+
],
|
|
51
120
|
},
|
|
52
121
|
};
|
|
53
122
|
export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -114,6 +114,12 @@ export var Message;
|
|
|
114
114
|
(function (Message) {
|
|
115
115
|
Message.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.content && { content: SENSITIVE_STRING }))); };
|
|
116
116
|
})(Message || (Message = {}));
|
|
117
|
+
export var StyleType;
|
|
118
|
+
(function (StyleType) {
|
|
119
|
+
StyleType["DEFAULT"] = "Default";
|
|
120
|
+
StyleType["SPELL_BY_LETTER"] = "SpellByLetter";
|
|
121
|
+
StyleType["SPELL_BY_WORD"] = "SpellByWord";
|
|
122
|
+
})(StyleType || (StyleType = {}));
|
|
117
123
|
export var DialogActionType;
|
|
118
124
|
(function (DialogActionType) {
|
|
119
125
|
DialogActionType["CLOSE"] = "Close";
|
|
@@ -1690,7 +1690,8 @@ var serializeAws_restJson1ConfigurationEvent = function (input, context) {
|
|
|
1690
1690
|
}));
|
|
1691
1691
|
};
|
|
1692
1692
|
var serializeAws_restJson1DialogAction = function (input, context) {
|
|
1693
|
-
return __assign(__assign(
|
|
1693
|
+
return __assign(__assign(__assign({}, (input.slotElicitationStyle !== undefined &&
|
|
1694
|
+
input.slotElicitationStyle !== null && { slotElicitationStyle: input.slotElicitationStyle })), (input.slotToElicit !== undefined && input.slotToElicit !== null && { slotToElicit: input.slotToElicit })), (input.type !== undefined && input.type !== null && { type: input.type }));
|
|
1694
1695
|
};
|
|
1695
1696
|
var serializeAws_restJson1DisconnectionEvent = function (input, context) {
|
|
1696
1697
|
return __assign(__assign({}, (input.clientTimestampMillis !== undefined &&
|
|
@@ -1900,6 +1901,7 @@ var deserializeAws_restJson1DependencyFailedException = function (output, contex
|
|
|
1900
1901
|
};
|
|
1901
1902
|
var deserializeAws_restJson1DialogAction = function (output, context) {
|
|
1902
1903
|
return {
|
|
1904
|
+
slotElicitationStyle: __expectString(output.slotElicitationStyle),
|
|
1903
1905
|
slotToElicit: __expectString(output.slotToElicit),
|
|
1904
1906
|
type: __expectString(output.type),
|
|
1905
1907
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
4
5
|
import { eventStreamSerdeProvider } from "@aws-sdk/eventstream-serde-browser";
|
|
5
6
|
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
7
|
import { invalidFunction, invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
@@ -11,7 +12,7 @@ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
|
11
12
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
12
13
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
14
|
export var getRuntimeConfig = function (config) {
|
|
14
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
15
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
15
16
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), eventStreamPayloadHandlerProvider: (_f = config === null || config === void 0 ? void 0 : config.eventStreamPayloadHandlerProvider) !== null && _f !== void 0 ? _f : (function () { return ({ handle: invalidFunction("event stream request is not supported in browser.") }); }), eventStreamSerdeProvider: (_g = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _g !== void 0 ? _g : eventStreamSerdeProvider, maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : DEFAULT_MAX_ATTEMPTS, region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : invalidProvider("Region is missing"), requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new FetchHttpHandler(), retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : Sha256, streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : streamCollector,
|
|
17
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), eventStreamPayloadHandlerProvider: (_f = config === null || config === void 0 ? void 0 : config.eventStreamPayloadHandlerProvider) !== null && _f !== void 0 ? _f : (function () { return ({ handle: invalidFunction("event stream request is not supported in browser.") }); }), eventStreamSerdeProvider: (_g = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _g !== void 0 ? _g : eventStreamSerdeProvider, maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : DEFAULT_MAX_ATTEMPTS, region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : invalidProvider("Region is missing"), requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new FetchHttpHandler(), retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : Sha256, streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : streamCollector, useDualstackEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _p !== void 0 ? _p : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_q = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _q !== void 0 ? _q : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _r !== void 0 ? _r : fromUtf8, utf8Encoder: (_s = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _s !== void 0 ? _s : toUtf8 });
|
|
17
18
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
|
-
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
|
|
4
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
6
|
import { eventStreamPayloadHandlerProvider } from "@aws-sdk/eventstream-handler-node";
|
|
7
7
|
import { eventStreamSerdeProvider } from "@aws-sdk/eventstream-serde-node";
|
|
@@ -16,8 +16,8 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
|
16
16
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
17
17
|
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
18
18
|
export var getRuntimeConfig = function (config) {
|
|
19
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
19
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
20
20
|
emitWarningIfUnsupportedVersion(process.version);
|
|
21
21
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
22
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), eventStreamPayloadHandlerProvider: (_f = config === null || config === void 0 ? void 0 : config.eventStreamPayloadHandlerProvider) !== null && _f !== void 0 ? _f : eventStreamPayloadHandlerProvider, eventStreamSerdeProvider: (_g = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _g !== void 0 ? _g : eventStreamSerdeProvider, maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new NodeHttp2Handler(), retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : Hash.bind(null, "sha256"), streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : streamCollector,
|
|
22
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), eventStreamPayloadHandlerProvider: (_f = config === null || config === void 0 ? void 0 : config.eventStreamPayloadHandlerProvider) !== null && _f !== void 0 ? _f : eventStreamPayloadHandlerProvider, eventStreamSerdeProvider: (_g = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _g !== void 0 ? _g : eventStreamSerdeProvider, maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new NodeHttp2Handler(), retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : Hash.bind(null, "sha256"), streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : streamCollector, useDualstackEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _p !== void 0 ? _p : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_q = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _q !== void 0 ? _q : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _r !== void 0 ? _r : fromUtf8, utf8Encoder: (_s = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _s !== void 0 ? _s : toUtf8 });
|
|
23
23
|
};
|
|
@@ -84,6 +84,14 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
84
84
|
* Optional logger for logging debug/info/warn/error.
|
|
85
85
|
*/
|
|
86
86
|
logger?: __Logger;
|
|
87
|
+
/**
|
|
88
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
89
|
+
*/
|
|
90
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
91
|
+
/**
|
|
92
|
+
* Enables FIPS compatible endpoints.
|
|
93
|
+
*/
|
|
94
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
87
95
|
/**
|
|
88
96
|
* Unique service identifier.
|
|
89
97
|
* @internal
|
|
@@ -33,7 +33,7 @@ export interface DeleteSessionCommandOutput extends DeleteSessionResponse, __Met
|
|
|
33
33
|
*
|
|
34
34
|
* @see {@link DeleteSessionCommandInput} for command's `input` shape.
|
|
35
35
|
* @see {@link DeleteSessionCommandOutput} for command's `response` shape.
|
|
36
|
-
* @see {@link LexRuntimeV2ClientResolvedConfig | config} for
|
|
36
|
+
* @see {@link LexRuntimeV2ClientResolvedConfig | config} for LexRuntimeV2Client's `config` shape.
|
|
37
37
|
*
|
|
38
38
|
*/
|
|
39
39
|
export declare class DeleteSessionCommand extends $Command<DeleteSessionCommandInput, DeleteSessionCommandOutput, LexRuntimeV2ClientResolvedConfig> {
|
|
@@ -28,7 +28,7 @@ export interface GetSessionCommandOutput extends GetSessionResponse, __MetadataB
|
|
|
28
28
|
*
|
|
29
29
|
* @see {@link GetSessionCommandInput} for command's `input` shape.
|
|
30
30
|
* @see {@link GetSessionCommandOutput} for command's `response` shape.
|
|
31
|
-
* @see {@link LexRuntimeV2ClientResolvedConfig | config} for
|
|
31
|
+
* @see {@link LexRuntimeV2ClientResolvedConfig | config} for LexRuntimeV2Client's `config` shape.
|
|
32
32
|
*
|
|
33
33
|
*/
|
|
34
34
|
export declare class GetSessionCommand extends $Command<GetSessionCommandInput, GetSessionCommandOutput, LexRuntimeV2ClientResolvedConfig> {
|
|
@@ -22,7 +22,7 @@ export interface PutSessionCommandOutput extends PutSessionResponse, __MetadataB
|
|
|
22
22
|
*
|
|
23
23
|
* @see {@link PutSessionCommandInput} for command's `input` shape.
|
|
24
24
|
* @see {@link PutSessionCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link LexRuntimeV2ClientResolvedConfig | config} for
|
|
25
|
+
* @see {@link LexRuntimeV2ClientResolvedConfig | config} for LexRuntimeV2Client's `config` shape.
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export declare class PutSessionCommand extends $Command<PutSessionCommandInput, PutSessionCommandOutput, LexRuntimeV2ClientResolvedConfig> {
|
|
@@ -50,7 +50,7 @@ export interface RecognizeTextCommandOutput extends RecognizeTextResponse, __Met
|
|
|
50
50
|
*
|
|
51
51
|
* @see {@link RecognizeTextCommandInput} for command's `input` shape.
|
|
52
52
|
* @see {@link RecognizeTextCommandOutput} for command's `response` shape.
|
|
53
|
-
* @see {@link LexRuntimeV2ClientResolvedConfig | config} for
|
|
53
|
+
* @see {@link LexRuntimeV2ClientResolvedConfig | config} for LexRuntimeV2Client's `config` shape.
|
|
54
54
|
*
|
|
55
55
|
*/
|
|
56
56
|
export declare class RecognizeTextCommand extends $Command<RecognizeTextCommandInput, RecognizeTextCommandOutput, LexRuntimeV2ClientResolvedConfig> {
|
|
@@ -92,7 +92,7 @@ export interface RecognizeUtteranceCommandOutput extends RecognizeUtteranceRespo
|
|
|
92
92
|
*
|
|
93
93
|
* @see {@link RecognizeUtteranceCommandInput} for command's `input` shape.
|
|
94
94
|
* @see {@link RecognizeUtteranceCommandOutput} for command's `response` shape.
|
|
95
|
-
* @see {@link LexRuntimeV2ClientResolvedConfig | config} for
|
|
95
|
+
* @see {@link LexRuntimeV2ClientResolvedConfig | config} for LexRuntimeV2Client's `config` shape.
|
|
96
96
|
*
|
|
97
97
|
*/
|
|
98
98
|
export declare class RecognizeUtteranceCommand extends $Command<RecognizeUtteranceCommandInput, RecognizeUtteranceCommandOutput, LexRuntimeV2ClientResolvedConfig> {
|
|
@@ -79,7 +79,7 @@ export interface StartConversationCommandOutput extends StartConversationRespons
|
|
|
79
79
|
*
|
|
80
80
|
* @see {@link StartConversationCommandInput} for command's `input` shape.
|
|
81
81
|
* @see {@link StartConversationCommandOutput} for command's `response` shape.
|
|
82
|
-
* @see {@link LexRuntimeV2ClientResolvedConfig | config} for
|
|
82
|
+
* @see {@link LexRuntimeV2ClientResolvedConfig | config} for LexRuntimeV2Client's `config` shape.
|
|
83
83
|
*
|
|
84
84
|
*/
|
|
85
85
|
export declare class StartConversationCommand extends $Command<StartConversationCommandInput, StartConversationCommandOutput, LexRuntimeV2ClientResolvedConfig> {
|
|
@@ -503,6 +503,11 @@ export declare namespace Message {
|
|
|
503
503
|
*/
|
|
504
504
|
const filterSensitiveLog: (obj: Message) => any;
|
|
505
505
|
}
|
|
506
|
+
export declare enum StyleType {
|
|
507
|
+
DEFAULT = "Default",
|
|
508
|
+
SPELL_BY_LETTER = "SpellByLetter",
|
|
509
|
+
SPELL_BY_WORD = "SpellByWord"
|
|
510
|
+
}
|
|
506
511
|
export declare enum DialogActionType {
|
|
507
512
|
CLOSE = "Close",
|
|
508
513
|
CONFIRM_INTENT = "ConfirmIntent",
|
|
@@ -548,6 +553,23 @@ export interface DialogAction {
|
|
|
548
553
|
* <p>The name of the slot that should be elicited from the user.</p>
|
|
549
554
|
*/
|
|
550
555
|
slotToElicit?: string;
|
|
556
|
+
/**
|
|
557
|
+
* <p>Configures the slot to use spell-by-letter or spell-by-word style.
|
|
558
|
+
* When you use a style on a slot, users can spell out their input to make
|
|
559
|
+
* it clear to your bot.</p>
|
|
560
|
+
* <ul>
|
|
561
|
+
* <li>
|
|
562
|
+
* <p>Spell by letter - "b" "o" "b"</p>
|
|
563
|
+
* </li>
|
|
564
|
+
* <li>
|
|
565
|
+
* <p>Spell by word - "b as in boy" "o as in oscar" "b as in
|
|
566
|
+
* boy"</p>
|
|
567
|
+
* </li>
|
|
568
|
+
* </ul>
|
|
569
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/lexv2/latest/dg/using-spelling.html">
|
|
570
|
+
* Using spelling to enter slot values </a>.</p>
|
|
571
|
+
*/
|
|
572
|
+
slotElicitationStyle?: StyleType | string;
|
|
551
573
|
}
|
|
552
574
|
export declare namespace DialogAction {
|
|
553
575
|
/**
|
|
@@ -18,6 +18,8 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
|
18
18
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
19
19
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
20
20
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
21
|
+
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
22
|
+
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
21
23
|
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
22
24
|
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
23
25
|
apiVersion: string;
|
|
@@ -18,6 +18,8 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
|
18
18
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
19
19
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
20
20
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
21
|
+
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
22
|
+
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
21
23
|
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
22
24
|
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
23
25
|
apiVersion: string;
|
|
@@ -19,6 +19,8 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
|
19
19
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
20
20
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
21
21
|
logger: import("@aws-sdk/types").Logger;
|
|
22
|
+
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
23
|
+
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
22
24
|
serviceId: string;
|
|
23
25
|
region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
|
|
24
26
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
@@ -46,6 +46,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
46
46
|
|
|
47
47
|
logger?: __Logger;
|
|
48
48
|
|
|
49
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
50
|
+
|
|
51
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
52
|
+
|
|
49
53
|
serviceId?: string;
|
|
50
54
|
|
|
51
55
|
region?: string | __Provider<string>;
|
|
@@ -273,6 +273,11 @@ export declare namespace Message {
|
|
|
273
273
|
|
|
274
274
|
const filterSensitiveLog: (obj: Message) => any;
|
|
275
275
|
}
|
|
276
|
+
export declare enum StyleType {
|
|
277
|
+
DEFAULT = "Default",
|
|
278
|
+
SPELL_BY_LETTER = "SpellByLetter",
|
|
279
|
+
SPELL_BY_WORD = "SpellByWord"
|
|
280
|
+
}
|
|
276
281
|
export declare enum DialogActionType {
|
|
277
282
|
CLOSE = "Close",
|
|
278
283
|
CONFIRM_INTENT = "ConfirmIntent",
|
|
@@ -287,6 +292,8 @@ export interface DialogAction {
|
|
|
287
292
|
type: DialogActionType | string | undefined;
|
|
288
293
|
|
|
289
294
|
slotToElicit?: string;
|
|
295
|
+
|
|
296
|
+
slotElicitationStyle?: StyleType | string;
|
|
290
297
|
}
|
|
291
298
|
export declare namespace DialogAction {
|
|
292
299
|
|
|
@@ -16,6 +16,8 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
|
16
16
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
17
17
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
18
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
19
|
+
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
20
|
+
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
19
21
|
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
20
22
|
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
21
23
|
apiVersion: string;
|
|
@@ -16,6 +16,8 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
|
16
16
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
17
17
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
18
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
19
|
+
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
20
|
+
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
19
21
|
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
20
22
|
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
21
23
|
apiVersion: string;
|
|
@@ -17,6 +17,8 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
|
17
17
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
18
18
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
19
19
|
logger: import("@aws-sdk/types").Logger;
|
|
20
|
+
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
21
|
+
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
20
22
|
serviceId: string;
|
|
21
23
|
region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
|
|
22
24
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-lex-runtime-v2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Lex Runtime V2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.43.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.json",
|
|
@@ -21,37 +21,37 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/eventstream-handler-node": "3.
|
|
28
|
-
"@aws-sdk/eventstream-serde-browser": "3.
|
|
29
|
-
"@aws-sdk/eventstream-serde-config-resolver": "3.
|
|
30
|
-
"@aws-sdk/eventstream-serde-node": "3.
|
|
31
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
32
|
-
"@aws-sdk/hash-node": "3.
|
|
33
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
34
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
35
|
-
"@aws-sdk/middleware-eventstream": "3.
|
|
36
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
37
|
-
"@aws-sdk/middleware-logger": "3.
|
|
38
|
-
"@aws-sdk/middleware-retry": "3.
|
|
39
|
-
"@aws-sdk/middleware-serde": "3.
|
|
40
|
-
"@aws-sdk/middleware-signing": "3.
|
|
41
|
-
"@aws-sdk/middleware-stack": "3.
|
|
42
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
43
|
-
"@aws-sdk/node-config-provider": "3.
|
|
44
|
-
"@aws-sdk/node-http-handler": "3.
|
|
45
|
-
"@aws-sdk/protocol-http": "3.
|
|
46
|
-
"@aws-sdk/smithy-client": "3.
|
|
47
|
-
"@aws-sdk/types": "3.
|
|
48
|
-
"@aws-sdk/url-parser": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.43.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.40.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.41.0",
|
|
27
|
+
"@aws-sdk/eventstream-handler-node": "3.40.0",
|
|
28
|
+
"@aws-sdk/eventstream-serde-browser": "3.40.0",
|
|
29
|
+
"@aws-sdk/eventstream-serde-config-resolver": "3.40.0",
|
|
30
|
+
"@aws-sdk/eventstream-serde-node": "3.40.0",
|
|
31
|
+
"@aws-sdk/fetch-http-handler": "3.40.0",
|
|
32
|
+
"@aws-sdk/hash-node": "3.40.0",
|
|
33
|
+
"@aws-sdk/invalid-dependency": "3.40.0",
|
|
34
|
+
"@aws-sdk/middleware-content-length": "3.40.0",
|
|
35
|
+
"@aws-sdk/middleware-eventstream": "3.40.0",
|
|
36
|
+
"@aws-sdk/middleware-host-header": "3.40.0",
|
|
37
|
+
"@aws-sdk/middleware-logger": "3.40.0",
|
|
38
|
+
"@aws-sdk/middleware-retry": "3.40.0",
|
|
39
|
+
"@aws-sdk/middleware-serde": "3.40.0",
|
|
40
|
+
"@aws-sdk/middleware-signing": "3.40.0",
|
|
41
|
+
"@aws-sdk/middleware-stack": "3.40.0",
|
|
42
|
+
"@aws-sdk/middleware-user-agent": "3.40.0",
|
|
43
|
+
"@aws-sdk/node-config-provider": "3.40.0",
|
|
44
|
+
"@aws-sdk/node-http-handler": "3.40.0",
|
|
45
|
+
"@aws-sdk/protocol-http": "3.40.0",
|
|
46
|
+
"@aws-sdk/smithy-client": "3.41.0",
|
|
47
|
+
"@aws-sdk/types": "3.40.0",
|
|
48
|
+
"@aws-sdk/url-parser": "3.40.0",
|
|
49
49
|
"@aws-sdk/util-base64-browser": "3.37.0",
|
|
50
50
|
"@aws-sdk/util-base64-node": "3.37.0",
|
|
51
51
|
"@aws-sdk/util-body-length-browser": "3.37.0",
|
|
52
52
|
"@aws-sdk/util-body-length-node": "3.37.0",
|
|
53
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
53
|
+
"@aws-sdk/util-user-agent-browser": "3.40.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-node": "3.40.0",
|
|
55
55
|
"@aws-sdk/util-utf8-browser": "3.37.0",
|
|
56
56
|
"@aws-sdk/util-utf8-node": "3.37.0",
|
|
57
57
|
"tslib": "^2.3.0"
|