@aws-sdk/client-lex-runtime-service 3.54.1 → 3.58.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 +24 -0
- package/dist-cjs/LexRuntimeServiceClient.js +13 -13
- package/dist-cjs/commands/DeleteSessionCommand.js +3 -3
- package/dist-cjs/commands/GetSessionCommand.js +3 -3
- package/dist-cjs/commands/PostContentCommand.js +3 -3
- package/dist-cjs/commands/PostTextCommand.js +3 -3
- package/dist-cjs/commands/PutSessionCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +86 -86
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/LexRuntimeService.js +5 -5
- package/dist-es/protocols/Aws_restJson1.js +5 -5
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/package.json +34 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
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.58.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.57.0...v3.58.0) (2022-03-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-lex-runtime-service
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.56.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.55.0...v3.56.0) (2022-03-24)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-lex-runtime-service
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @aws-sdk/client-lex-runtime-service
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
6
30
|
## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
|
|
7
31
|
|
|
8
32
|
**Note:** Version bump only for package @aws-sdk/client-lex-runtime-service
|
|
@@ -12,21 +12,21 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
12
12
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
13
13
|
class LexRuntimeServiceClient extends smithy_client_1.Client {
|
|
14
14
|
constructor(configuration) {
|
|
15
|
-
const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
|
|
16
|
-
const _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
|
|
17
|
-
const _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
|
|
18
|
-
const _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
|
|
19
|
-
const _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
|
|
20
|
-
const _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4);
|
|
21
|
-
const _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5);
|
|
15
|
+
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
|
|
16
|
+
const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0);
|
|
17
|
+
const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1);
|
|
18
|
+
const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
|
|
19
|
+
const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3);
|
|
20
|
+
const _config_5 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_4);
|
|
21
|
+
const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5);
|
|
22
22
|
super(_config_6);
|
|
23
23
|
this.config = _config_6;
|
|
24
|
-
this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config));
|
|
25
|
-
this.middlewareStack.use(middleware_content_length_1.getContentLengthPlugin(this.config));
|
|
26
|
-
this.middlewareStack.use(middleware_host_header_1.getHostHeaderPlugin(this.config));
|
|
27
|
-
this.middlewareStack.use(middleware_logger_1.getLoggerPlugin(this.config));
|
|
28
|
-
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
|
|
29
|
-
this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
|
|
24
|
+
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
|
25
|
+
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
|
26
|
+
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
|
27
|
+
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
|
28
|
+
this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
|
|
29
|
+
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
30
30
|
}
|
|
31
31
|
destroy() {
|
|
32
32
|
super.destroy();
|
|
@@ -11,7 +11,7 @@ class DeleteSessionCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "LexRuntimeServiceClient";
|
|
@@ -27,10 +27,10 @@ class DeleteSessionCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1DeleteSessionCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1DeleteSessionCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1DeleteSessionCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1DeleteSessionCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.DeleteSessionCommand = DeleteSessionCommand;
|
|
@@ -11,7 +11,7 @@ class GetSessionCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "LexRuntimeServiceClient";
|
|
@@ -27,10 +27,10 @@ class GetSessionCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1GetSessionCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1GetSessionCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1GetSessionCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1GetSessionCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.GetSessionCommand = GetSessionCommand;
|
|
@@ -11,7 +11,7 @@ class PostContentCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "LexRuntimeServiceClient";
|
|
@@ -27,10 +27,10 @@ class PostContentCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1PostContentCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1PostContentCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1PostContentCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1PostContentCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.PostContentCommand = PostContentCommand;
|
|
@@ -11,7 +11,7 @@ class PostTextCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "LexRuntimeServiceClient";
|
|
@@ -27,10 +27,10 @@ class PostTextCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1PostTextCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1PostTextCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1PostTextCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1PostTextCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.PostTextCommand = PostTextCommand;
|
|
@@ -11,7 +11,7 @@ class PutSessionCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "LexRuntimeServiceClient";
|
|
@@ -27,10 +27,10 @@ class PutSessionCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1PutSessionCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1PutSessionCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1PutSessionCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1PutSessionCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.PutSessionCommand = PutSessionCommand;
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -149,7 +149,7 @@ const partitionHash = {
|
|
|
149
149
|
],
|
|
150
150
|
},
|
|
151
151
|
};
|
|
152
|
-
const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
|
|
152
|
+
const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
|
|
153
153
|
...options,
|
|
154
154
|
signingService: "lex",
|
|
155
155
|
regionHash,
|
|
@@ -15,7 +15,7 @@ const serializeAws_restJson1DeleteSessionCommand = async (input, context) => {
|
|
|
15
15
|
if (labelValue.length <= 0) {
|
|
16
16
|
throw new Error("Empty value provided for input HTTP label: botName.");
|
|
17
17
|
}
|
|
18
|
-
resolvedPath = resolvedPath.replace("{botName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
18
|
+
resolvedPath = resolvedPath.replace("{botName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
19
19
|
}
|
|
20
20
|
else {
|
|
21
21
|
throw new Error("No value provided for input HTTP label: botName.");
|
|
@@ -25,7 +25,7 @@ const serializeAws_restJson1DeleteSessionCommand = async (input, context) => {
|
|
|
25
25
|
if (labelValue.length <= 0) {
|
|
26
26
|
throw new Error("Empty value provided for input HTTP label: botAlias.");
|
|
27
27
|
}
|
|
28
|
-
resolvedPath = resolvedPath.replace("{botAlias}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
28
|
+
resolvedPath = resolvedPath.replace("{botAlias}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
29
29
|
}
|
|
30
30
|
else {
|
|
31
31
|
throw new Error("No value provided for input HTTP label: botAlias.");
|
|
@@ -35,7 +35,7 @@ const serializeAws_restJson1DeleteSessionCommand = async (input, context) => {
|
|
|
35
35
|
if (labelValue.length <= 0) {
|
|
36
36
|
throw new Error("Empty value provided for input HTTP label: userId.");
|
|
37
37
|
}
|
|
38
|
-
resolvedPath = resolvedPath.replace("{userId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
38
|
+
resolvedPath = resolvedPath.replace("{userId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
39
39
|
}
|
|
40
40
|
else {
|
|
41
41
|
throw new Error("No value provided for input HTTP label: userId.");
|
|
@@ -62,7 +62,7 @@ const serializeAws_restJson1GetSessionCommand = async (input, context) => {
|
|
|
62
62
|
if (labelValue.length <= 0) {
|
|
63
63
|
throw new Error("Empty value provided for input HTTP label: botName.");
|
|
64
64
|
}
|
|
65
|
-
resolvedPath = resolvedPath.replace("{botName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
65
|
+
resolvedPath = resolvedPath.replace("{botName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
66
66
|
}
|
|
67
67
|
else {
|
|
68
68
|
throw new Error("No value provided for input HTTP label: botName.");
|
|
@@ -72,7 +72,7 @@ const serializeAws_restJson1GetSessionCommand = async (input, context) => {
|
|
|
72
72
|
if (labelValue.length <= 0) {
|
|
73
73
|
throw new Error("Empty value provided for input HTTP label: botAlias.");
|
|
74
74
|
}
|
|
75
|
-
resolvedPath = resolvedPath.replace("{botAlias}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
75
|
+
resolvedPath = resolvedPath.replace("{botAlias}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
76
76
|
}
|
|
77
77
|
else {
|
|
78
78
|
throw new Error("No value provided for input HTTP label: botAlias.");
|
|
@@ -82,7 +82,7 @@ const serializeAws_restJson1GetSessionCommand = async (input, context) => {
|
|
|
82
82
|
if (labelValue.length <= 0) {
|
|
83
83
|
throw new Error("Empty value provided for input HTTP label: userId.");
|
|
84
84
|
}
|
|
85
|
-
resolvedPath = resolvedPath.replace("{userId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
85
|
+
resolvedPath = resolvedPath.replace("{userId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
86
86
|
}
|
|
87
87
|
else {
|
|
88
88
|
throw new Error("No value provided for input HTTP label: userId.");
|
|
@@ -127,7 +127,7 @@ const serializeAws_restJson1PostContentCommand = async (input, context) => {
|
|
|
127
127
|
if (labelValue.length <= 0) {
|
|
128
128
|
throw new Error("Empty value provided for input HTTP label: botName.");
|
|
129
129
|
}
|
|
130
|
-
resolvedPath = resolvedPath.replace("{botName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
130
|
+
resolvedPath = resolvedPath.replace("{botName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
131
131
|
}
|
|
132
132
|
else {
|
|
133
133
|
throw new Error("No value provided for input HTTP label: botName.");
|
|
@@ -137,7 +137,7 @@ const serializeAws_restJson1PostContentCommand = async (input, context) => {
|
|
|
137
137
|
if (labelValue.length <= 0) {
|
|
138
138
|
throw new Error("Empty value provided for input HTTP label: botAlias.");
|
|
139
139
|
}
|
|
140
|
-
resolvedPath = resolvedPath.replace("{botAlias}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
140
|
+
resolvedPath = resolvedPath.replace("{botAlias}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
141
141
|
}
|
|
142
142
|
else {
|
|
143
143
|
throw new Error("No value provided for input HTTP label: botAlias.");
|
|
@@ -147,7 +147,7 @@ const serializeAws_restJson1PostContentCommand = async (input, context) => {
|
|
|
147
147
|
if (labelValue.length <= 0) {
|
|
148
148
|
throw new Error("Empty value provided for input HTTP label: userId.");
|
|
149
149
|
}
|
|
150
|
-
resolvedPath = resolvedPath.replace("{userId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
150
|
+
resolvedPath = resolvedPath.replace("{userId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
151
151
|
}
|
|
152
152
|
else {
|
|
153
153
|
throw new Error("No value provided for input HTTP label: userId.");
|
|
@@ -179,7 +179,7 @@ const serializeAws_restJson1PostTextCommand = async (input, context) => {
|
|
|
179
179
|
if (labelValue.length <= 0) {
|
|
180
180
|
throw new Error("Empty value provided for input HTTP label: botName.");
|
|
181
181
|
}
|
|
182
|
-
resolvedPath = resolvedPath.replace("{botName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
182
|
+
resolvedPath = resolvedPath.replace("{botName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
183
183
|
}
|
|
184
184
|
else {
|
|
185
185
|
throw new Error("No value provided for input HTTP label: botName.");
|
|
@@ -189,7 +189,7 @@ const serializeAws_restJson1PostTextCommand = async (input, context) => {
|
|
|
189
189
|
if (labelValue.length <= 0) {
|
|
190
190
|
throw new Error("Empty value provided for input HTTP label: botAlias.");
|
|
191
191
|
}
|
|
192
|
-
resolvedPath = resolvedPath.replace("{botAlias}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
192
|
+
resolvedPath = resolvedPath.replace("{botAlias}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
193
193
|
}
|
|
194
194
|
else {
|
|
195
195
|
throw new Error("No value provided for input HTTP label: botAlias.");
|
|
@@ -199,7 +199,7 @@ const serializeAws_restJson1PostTextCommand = async (input, context) => {
|
|
|
199
199
|
if (labelValue.length <= 0) {
|
|
200
200
|
throw new Error("Empty value provided for input HTTP label: userId.");
|
|
201
201
|
}
|
|
202
|
-
resolvedPath = resolvedPath.replace("{userId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
202
|
+
resolvedPath = resolvedPath.replace("{userId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
203
203
|
}
|
|
204
204
|
else {
|
|
205
205
|
throw new Error("No value provided for input HTTP label: userId.");
|
|
@@ -244,7 +244,7 @@ const serializeAws_restJson1PutSessionCommand = async (input, context) => {
|
|
|
244
244
|
if (labelValue.length <= 0) {
|
|
245
245
|
throw new Error("Empty value provided for input HTTP label: botName.");
|
|
246
246
|
}
|
|
247
|
-
resolvedPath = resolvedPath.replace("{botName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
247
|
+
resolvedPath = resolvedPath.replace("{botName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
248
248
|
}
|
|
249
249
|
else {
|
|
250
250
|
throw new Error("No value provided for input HTTP label: botName.");
|
|
@@ -254,7 +254,7 @@ const serializeAws_restJson1PutSessionCommand = async (input, context) => {
|
|
|
254
254
|
if (labelValue.length <= 0) {
|
|
255
255
|
throw new Error("Empty value provided for input HTTP label: botAlias.");
|
|
256
256
|
}
|
|
257
|
-
resolvedPath = resolvedPath.replace("{botAlias}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
257
|
+
resolvedPath = resolvedPath.replace("{botAlias}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
258
258
|
}
|
|
259
259
|
else {
|
|
260
260
|
throw new Error("No value provided for input HTTP label: botAlias.");
|
|
@@ -264,7 +264,7 @@ const serializeAws_restJson1PutSessionCommand = async (input, context) => {
|
|
|
264
264
|
if (labelValue.length <= 0) {
|
|
265
265
|
throw new Error("Empty value provided for input HTTP label: userId.");
|
|
266
266
|
}
|
|
267
|
-
resolvedPath = resolvedPath.replace("{userId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
267
|
+
resolvedPath = resolvedPath.replace("{userId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
268
268
|
}
|
|
269
269
|
else {
|
|
270
270
|
throw new Error("No value provided for input HTTP label: userId.");
|
|
@@ -308,18 +308,18 @@ const deserializeAws_restJson1DeleteSessionCommand = async (output, context) =>
|
|
|
308
308
|
sessionId: undefined,
|
|
309
309
|
userId: undefined,
|
|
310
310
|
};
|
|
311
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
311
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
312
312
|
if (data.botAlias !== undefined && data.botAlias !== null) {
|
|
313
|
-
contents.botAlias = smithy_client_1.expectString(data.botAlias);
|
|
313
|
+
contents.botAlias = (0, smithy_client_1.expectString)(data.botAlias);
|
|
314
314
|
}
|
|
315
315
|
if (data.botName !== undefined && data.botName !== null) {
|
|
316
|
-
contents.botName = smithy_client_1.expectString(data.botName);
|
|
316
|
+
contents.botName = (0, smithy_client_1.expectString)(data.botName);
|
|
317
317
|
}
|
|
318
318
|
if (data.sessionId !== undefined && data.sessionId !== null) {
|
|
319
|
-
contents.sessionId = smithy_client_1.expectString(data.sessionId);
|
|
319
|
+
contents.sessionId = (0, smithy_client_1.expectString)(data.sessionId);
|
|
320
320
|
}
|
|
321
321
|
if (data.userId !== undefined && data.userId !== null) {
|
|
322
|
-
contents.userId = smithy_client_1.expectString(data.userId);
|
|
322
|
+
contents.userId = (0, smithy_client_1.expectString)(data.userId);
|
|
323
323
|
}
|
|
324
324
|
return Promise.resolve(contents);
|
|
325
325
|
};
|
|
@@ -355,7 +355,7 @@ const deserializeAws_restJson1DeleteSessionCommandError = async (output, context
|
|
|
355
355
|
$fault: "client",
|
|
356
356
|
$metadata: deserializeMetadata(output),
|
|
357
357
|
});
|
|
358
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
358
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
359
359
|
}
|
|
360
360
|
};
|
|
361
361
|
const deserializeAws_restJson1GetSessionCommand = async (output, context) => {
|
|
@@ -370,7 +370,7 @@ const deserializeAws_restJson1GetSessionCommand = async (output, context) => {
|
|
|
370
370
|
sessionAttributes: undefined,
|
|
371
371
|
sessionId: undefined,
|
|
372
372
|
};
|
|
373
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
373
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
374
374
|
if (data.activeContexts !== undefined && data.activeContexts !== null) {
|
|
375
375
|
contents.activeContexts = deserializeAws_restJson1ActiveContextsList(data.activeContexts, context);
|
|
376
376
|
}
|
|
@@ -384,7 +384,7 @@ const deserializeAws_restJson1GetSessionCommand = async (output, context) => {
|
|
|
384
384
|
contents.sessionAttributes = deserializeAws_restJson1StringMap(data.sessionAttributes, context);
|
|
385
385
|
}
|
|
386
386
|
if (data.sessionId !== undefined && data.sessionId !== null) {
|
|
387
|
-
contents.sessionId = smithy_client_1.expectString(data.sessionId);
|
|
387
|
+
contents.sessionId = (0, smithy_client_1.expectString)(data.sessionId);
|
|
388
388
|
}
|
|
389
389
|
return Promise.resolve(contents);
|
|
390
390
|
};
|
|
@@ -417,7 +417,7 @@ const deserializeAws_restJson1GetSessionCommandError = async (output, context) =
|
|
|
417
417
|
$fault: "client",
|
|
418
418
|
$metadata: deserializeMetadata(output),
|
|
419
419
|
});
|
|
420
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
420
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
421
421
|
}
|
|
422
422
|
};
|
|
423
423
|
const deserializeAws_restJson1PostContentCommand = async (output, context) => {
|
|
@@ -550,7 +550,7 @@ const deserializeAws_restJson1PostContentCommandError = async (output, context)
|
|
|
550
550
|
$fault: "client",
|
|
551
551
|
$metadata: deserializeMetadata(output),
|
|
552
552
|
});
|
|
553
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
553
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
554
554
|
}
|
|
555
555
|
};
|
|
556
556
|
const deserializeAws_restJson1PostTextCommand = async (output, context) => {
|
|
@@ -574,7 +574,7 @@ const deserializeAws_restJson1PostTextCommand = async (output, context) => {
|
|
|
574
574
|
slotToElicit: undefined,
|
|
575
575
|
slots: undefined,
|
|
576
576
|
};
|
|
577
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
577
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
578
578
|
if (data.activeContexts !== undefined && data.activeContexts !== null) {
|
|
579
579
|
contents.activeContexts = deserializeAws_restJson1ActiveContextsList(data.activeContexts, context);
|
|
580
580
|
}
|
|
@@ -582,19 +582,19 @@ const deserializeAws_restJson1PostTextCommand = async (output, context) => {
|
|
|
582
582
|
contents.alternativeIntents = deserializeAws_restJson1IntentList(data.alternativeIntents, context);
|
|
583
583
|
}
|
|
584
584
|
if (data.botVersion !== undefined && data.botVersion !== null) {
|
|
585
|
-
contents.botVersion = smithy_client_1.expectString(data.botVersion);
|
|
585
|
+
contents.botVersion = (0, smithy_client_1.expectString)(data.botVersion);
|
|
586
586
|
}
|
|
587
587
|
if (data.dialogState !== undefined && data.dialogState !== null) {
|
|
588
|
-
contents.dialogState = smithy_client_1.expectString(data.dialogState);
|
|
588
|
+
contents.dialogState = (0, smithy_client_1.expectString)(data.dialogState);
|
|
589
589
|
}
|
|
590
590
|
if (data.intentName !== undefined && data.intentName !== null) {
|
|
591
|
-
contents.intentName = smithy_client_1.expectString(data.intentName);
|
|
591
|
+
contents.intentName = (0, smithy_client_1.expectString)(data.intentName);
|
|
592
592
|
}
|
|
593
593
|
if (data.message !== undefined && data.message !== null) {
|
|
594
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
594
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
595
595
|
}
|
|
596
596
|
if (data.messageFormat !== undefined && data.messageFormat !== null) {
|
|
597
|
-
contents.messageFormat = smithy_client_1.expectString(data.messageFormat);
|
|
597
|
+
contents.messageFormat = (0, smithy_client_1.expectString)(data.messageFormat);
|
|
598
598
|
}
|
|
599
599
|
if (data.nluIntentConfidence !== undefined && data.nluIntentConfidence !== null) {
|
|
600
600
|
contents.nluIntentConfidence = deserializeAws_restJson1IntentConfidence(data.nluIntentConfidence, context);
|
|
@@ -609,10 +609,10 @@ const deserializeAws_restJson1PostTextCommand = async (output, context) => {
|
|
|
609
609
|
contents.sessionAttributes = deserializeAws_restJson1StringMap(data.sessionAttributes, context);
|
|
610
610
|
}
|
|
611
611
|
if (data.sessionId !== undefined && data.sessionId !== null) {
|
|
612
|
-
contents.sessionId = smithy_client_1.expectString(data.sessionId);
|
|
612
|
+
contents.sessionId = (0, smithy_client_1.expectString)(data.sessionId);
|
|
613
613
|
}
|
|
614
614
|
if (data.slotToElicit !== undefined && data.slotToElicit !== null) {
|
|
615
|
-
contents.slotToElicit = smithy_client_1.expectString(data.slotToElicit);
|
|
615
|
+
contents.slotToElicit = (0, smithy_client_1.expectString)(data.slotToElicit);
|
|
616
616
|
}
|
|
617
617
|
if (data.slots !== undefined && data.slots !== null) {
|
|
618
618
|
contents.slots = deserializeAws_restJson1StringMap(data.slots, context);
|
|
@@ -660,7 +660,7 @@ const deserializeAws_restJson1PostTextCommandError = async (output, context) =>
|
|
|
660
660
|
$fault: "client",
|
|
661
661
|
$metadata: deserializeMetadata(output),
|
|
662
662
|
});
|
|
663
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
663
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
664
664
|
}
|
|
665
665
|
};
|
|
666
666
|
const deserializeAws_restJson1PutSessionCommand = async (output, context) => {
|
|
@@ -760,68 +760,68 @@ const deserializeAws_restJson1PutSessionCommandError = async (output, context) =
|
|
|
760
760
|
$fault: "client",
|
|
761
761
|
$metadata: deserializeMetadata(output),
|
|
762
762
|
});
|
|
763
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
763
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
764
764
|
}
|
|
765
765
|
};
|
|
766
766
|
const deserializeAws_restJson1BadGatewayExceptionResponse = async (parsedOutput, context) => {
|
|
767
767
|
const contents = {};
|
|
768
768
|
const data = parsedOutput.body;
|
|
769
769
|
if (data.Message !== undefined && data.Message !== null) {
|
|
770
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
770
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
771
771
|
}
|
|
772
772
|
const exception = new models_0_1.BadGatewayException({
|
|
773
773
|
$metadata: deserializeMetadata(parsedOutput),
|
|
774
774
|
...contents,
|
|
775
775
|
});
|
|
776
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
776
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
777
777
|
};
|
|
778
778
|
const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
|
|
779
779
|
const contents = {};
|
|
780
780
|
const data = parsedOutput.body;
|
|
781
781
|
if (data.message !== undefined && data.message !== null) {
|
|
782
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
782
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
783
783
|
}
|
|
784
784
|
const exception = new models_0_1.BadRequestException({
|
|
785
785
|
$metadata: deserializeMetadata(parsedOutput),
|
|
786
786
|
...contents,
|
|
787
787
|
});
|
|
788
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
788
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
789
789
|
};
|
|
790
790
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
791
791
|
const contents = {};
|
|
792
792
|
const data = parsedOutput.body;
|
|
793
793
|
if (data.message !== undefined && data.message !== null) {
|
|
794
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
794
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
795
795
|
}
|
|
796
796
|
const exception = new models_0_1.ConflictException({
|
|
797
797
|
$metadata: deserializeMetadata(parsedOutput),
|
|
798
798
|
...contents,
|
|
799
799
|
});
|
|
800
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
800
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
801
801
|
};
|
|
802
802
|
const deserializeAws_restJson1DependencyFailedExceptionResponse = async (parsedOutput, context) => {
|
|
803
803
|
const contents = {};
|
|
804
804
|
const data = parsedOutput.body;
|
|
805
805
|
if (data.Message !== undefined && data.Message !== null) {
|
|
806
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
806
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
807
807
|
}
|
|
808
808
|
const exception = new models_0_1.DependencyFailedException({
|
|
809
809
|
$metadata: deserializeMetadata(parsedOutput),
|
|
810
810
|
...contents,
|
|
811
811
|
});
|
|
812
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
812
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
813
813
|
};
|
|
814
814
|
const deserializeAws_restJson1InternalFailureExceptionResponse = async (parsedOutput, context) => {
|
|
815
815
|
const contents = {};
|
|
816
816
|
const data = parsedOutput.body;
|
|
817
817
|
if (data.message !== undefined && data.message !== null) {
|
|
818
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
818
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
819
819
|
}
|
|
820
820
|
const exception = new models_0_1.InternalFailureException({
|
|
821
821
|
$metadata: deserializeMetadata(parsedOutput),
|
|
822
822
|
...contents,
|
|
823
823
|
});
|
|
824
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
824
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
825
825
|
};
|
|
826
826
|
const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
827
827
|
const contents = {};
|
|
@@ -830,73 +830,73 @@ const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutp
|
|
|
830
830
|
}
|
|
831
831
|
const data = parsedOutput.body;
|
|
832
832
|
if (data.message !== undefined && data.message !== null) {
|
|
833
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
833
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
834
834
|
}
|
|
835
835
|
const exception = new models_0_1.LimitExceededException({
|
|
836
836
|
$metadata: deserializeMetadata(parsedOutput),
|
|
837
837
|
...contents,
|
|
838
838
|
});
|
|
839
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
839
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
840
840
|
};
|
|
841
841
|
const deserializeAws_restJson1LoopDetectedExceptionResponse = async (parsedOutput, context) => {
|
|
842
842
|
const contents = {};
|
|
843
843
|
const data = parsedOutput.body;
|
|
844
844
|
if (data.Message !== undefined && data.Message !== null) {
|
|
845
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
845
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
846
846
|
}
|
|
847
847
|
const exception = new models_0_1.LoopDetectedException({
|
|
848
848
|
$metadata: deserializeMetadata(parsedOutput),
|
|
849
849
|
...contents,
|
|
850
850
|
});
|
|
851
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
851
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
852
852
|
};
|
|
853
853
|
const deserializeAws_restJson1NotAcceptableExceptionResponse = async (parsedOutput, context) => {
|
|
854
854
|
const contents = {};
|
|
855
855
|
const data = parsedOutput.body;
|
|
856
856
|
if (data.message !== undefined && data.message !== null) {
|
|
857
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
857
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
858
858
|
}
|
|
859
859
|
const exception = new models_0_1.NotAcceptableException({
|
|
860
860
|
$metadata: deserializeMetadata(parsedOutput),
|
|
861
861
|
...contents,
|
|
862
862
|
});
|
|
863
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
863
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
864
864
|
};
|
|
865
865
|
const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
866
866
|
const contents = {};
|
|
867
867
|
const data = parsedOutput.body;
|
|
868
868
|
if (data.message !== undefined && data.message !== null) {
|
|
869
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
869
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
870
870
|
}
|
|
871
871
|
const exception = new models_0_1.NotFoundException({
|
|
872
872
|
$metadata: deserializeMetadata(parsedOutput),
|
|
873
873
|
...contents,
|
|
874
874
|
});
|
|
875
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
875
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
876
876
|
};
|
|
877
877
|
const deserializeAws_restJson1RequestTimeoutExceptionResponse = async (parsedOutput, context) => {
|
|
878
878
|
const contents = {};
|
|
879
879
|
const data = parsedOutput.body;
|
|
880
880
|
if (data.message !== undefined && data.message !== null) {
|
|
881
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
881
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
882
882
|
}
|
|
883
883
|
const exception = new models_0_1.RequestTimeoutException({
|
|
884
884
|
$metadata: deserializeMetadata(parsedOutput),
|
|
885
885
|
...contents,
|
|
886
886
|
});
|
|
887
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
887
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
888
888
|
};
|
|
889
889
|
const deserializeAws_restJson1UnsupportedMediaTypeExceptionResponse = async (parsedOutput, context) => {
|
|
890
890
|
const contents = {};
|
|
891
891
|
const data = parsedOutput.body;
|
|
892
892
|
if (data.message !== undefined && data.message !== null) {
|
|
893
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
893
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
894
894
|
}
|
|
895
895
|
const exception = new models_0_1.UnsupportedMediaTypeException({
|
|
896
896
|
$metadata: deserializeMetadata(parsedOutput),
|
|
897
897
|
...contents,
|
|
898
898
|
});
|
|
899
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
899
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
900
900
|
};
|
|
901
901
|
const serializeAws_restJson1ActiveContext = (input, context) => {
|
|
902
902
|
return {
|
|
@@ -991,7 +991,7 @@ const serializeAws_restJson1StringMap = (input, context) => {
|
|
|
991
991
|
};
|
|
992
992
|
const deserializeAws_restJson1ActiveContext = (output, context) => {
|
|
993
993
|
return {
|
|
994
|
-
name: smithy_client_1.expectString(output.name),
|
|
994
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
995
995
|
parameters: output.parameters !== undefined && output.parameters !== null
|
|
996
996
|
? deserializeAws_restJson1ActiveContextParametersMap(output.parameters, context)
|
|
997
997
|
: undefined,
|
|
@@ -1007,7 +1007,7 @@ const deserializeAws_restJson1ActiveContextParametersMap = (output, context) =>
|
|
|
1007
1007
|
}
|
|
1008
1008
|
return {
|
|
1009
1009
|
...acc,
|
|
1010
|
-
[key]: smithy_client_1.expectString(value),
|
|
1010
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
1011
1011
|
};
|
|
1012
1012
|
}, {});
|
|
1013
1013
|
};
|
|
@@ -1024,38 +1024,38 @@ const deserializeAws_restJson1ActiveContextsList = (output, context) => {
|
|
|
1024
1024
|
};
|
|
1025
1025
|
const deserializeAws_restJson1ActiveContextTimeToLive = (output, context) => {
|
|
1026
1026
|
return {
|
|
1027
|
-
timeToLiveInSeconds: smithy_client_1.expectInt32(output.timeToLiveInSeconds),
|
|
1028
|
-
turnsToLive: smithy_client_1.expectInt32(output.turnsToLive),
|
|
1027
|
+
timeToLiveInSeconds: (0, smithy_client_1.expectInt32)(output.timeToLiveInSeconds),
|
|
1028
|
+
turnsToLive: (0, smithy_client_1.expectInt32)(output.turnsToLive),
|
|
1029
1029
|
};
|
|
1030
1030
|
};
|
|
1031
1031
|
const deserializeAws_restJson1Button = (output, context) => {
|
|
1032
1032
|
return {
|
|
1033
|
-
text: smithy_client_1.expectString(output.text),
|
|
1034
|
-
value: smithy_client_1.expectString(output.value),
|
|
1033
|
+
text: (0, smithy_client_1.expectString)(output.text),
|
|
1034
|
+
value: (0, smithy_client_1.expectString)(output.value),
|
|
1035
1035
|
};
|
|
1036
1036
|
};
|
|
1037
1037
|
const deserializeAws_restJson1DialogAction = (output, context) => {
|
|
1038
1038
|
return {
|
|
1039
|
-
fulfillmentState: smithy_client_1.expectString(output.fulfillmentState),
|
|
1040
|
-
intentName: smithy_client_1.expectString(output.intentName),
|
|
1041
|
-
message: smithy_client_1.expectString(output.message),
|
|
1042
|
-
messageFormat: smithy_client_1.expectString(output.messageFormat),
|
|
1043
|
-
slotToElicit: smithy_client_1.expectString(output.slotToElicit),
|
|
1039
|
+
fulfillmentState: (0, smithy_client_1.expectString)(output.fulfillmentState),
|
|
1040
|
+
intentName: (0, smithy_client_1.expectString)(output.intentName),
|
|
1041
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
1042
|
+
messageFormat: (0, smithy_client_1.expectString)(output.messageFormat),
|
|
1043
|
+
slotToElicit: (0, smithy_client_1.expectString)(output.slotToElicit),
|
|
1044
1044
|
slots: output.slots !== undefined && output.slots !== null
|
|
1045
1045
|
? deserializeAws_restJson1StringMap(output.slots, context)
|
|
1046
1046
|
: undefined,
|
|
1047
|
-
type: smithy_client_1.expectString(output.type),
|
|
1047
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
1048
1048
|
};
|
|
1049
1049
|
};
|
|
1050
1050
|
const deserializeAws_restJson1GenericAttachment = (output, context) => {
|
|
1051
1051
|
return {
|
|
1052
|
-
attachmentLinkUrl: smithy_client_1.expectString(output.attachmentLinkUrl),
|
|
1052
|
+
attachmentLinkUrl: (0, smithy_client_1.expectString)(output.attachmentLinkUrl),
|
|
1053
1053
|
buttons: output.buttons !== undefined && output.buttons !== null
|
|
1054
1054
|
? deserializeAws_restJson1listOfButtons(output.buttons, context)
|
|
1055
1055
|
: undefined,
|
|
1056
|
-
imageUrl: smithy_client_1.expectString(output.imageUrl),
|
|
1057
|
-
subTitle: smithy_client_1.expectString(output.subTitle),
|
|
1058
|
-
title: smithy_client_1.expectString(output.title),
|
|
1056
|
+
imageUrl: (0, smithy_client_1.expectString)(output.imageUrl),
|
|
1057
|
+
subTitle: (0, smithy_client_1.expectString)(output.subTitle),
|
|
1058
|
+
title: (0, smithy_client_1.expectString)(output.title),
|
|
1059
1059
|
};
|
|
1060
1060
|
};
|
|
1061
1061
|
const deserializeAws_restJson1genericAttachmentList = (output, context) => {
|
|
@@ -1071,7 +1071,7 @@ const deserializeAws_restJson1genericAttachmentList = (output, context) => {
|
|
|
1071
1071
|
};
|
|
1072
1072
|
const deserializeAws_restJson1IntentConfidence = (output, context) => {
|
|
1073
1073
|
return {
|
|
1074
|
-
score: smithy_client_1.limitedParseDouble(output.score),
|
|
1074
|
+
score: (0, smithy_client_1.limitedParseDouble)(output.score),
|
|
1075
1075
|
};
|
|
1076
1076
|
};
|
|
1077
1077
|
const deserializeAws_restJson1IntentList = (output, context) => {
|
|
@@ -1087,12 +1087,12 @@ const deserializeAws_restJson1IntentList = (output, context) => {
|
|
|
1087
1087
|
};
|
|
1088
1088
|
const deserializeAws_restJson1IntentSummary = (output, context) => {
|
|
1089
1089
|
return {
|
|
1090
|
-
checkpointLabel: smithy_client_1.expectString(output.checkpointLabel),
|
|
1091
|
-
confirmationStatus: smithy_client_1.expectString(output.confirmationStatus),
|
|
1092
|
-
dialogActionType: smithy_client_1.expectString(output.dialogActionType),
|
|
1093
|
-
fulfillmentState: smithy_client_1.expectString(output.fulfillmentState),
|
|
1094
|
-
intentName: smithy_client_1.expectString(output.intentName),
|
|
1095
|
-
slotToElicit: smithy_client_1.expectString(output.slotToElicit),
|
|
1090
|
+
checkpointLabel: (0, smithy_client_1.expectString)(output.checkpointLabel),
|
|
1091
|
+
confirmationStatus: (0, smithy_client_1.expectString)(output.confirmationStatus),
|
|
1092
|
+
dialogActionType: (0, smithy_client_1.expectString)(output.dialogActionType),
|
|
1093
|
+
fulfillmentState: (0, smithy_client_1.expectString)(output.fulfillmentState),
|
|
1094
|
+
intentName: (0, smithy_client_1.expectString)(output.intentName),
|
|
1095
|
+
slotToElicit: (0, smithy_client_1.expectString)(output.slotToElicit),
|
|
1096
1096
|
slots: output.slots !== undefined && output.slots !== null
|
|
1097
1097
|
? deserializeAws_restJson1StringMap(output.slots, context)
|
|
1098
1098
|
: undefined,
|
|
@@ -1122,7 +1122,7 @@ const deserializeAws_restJson1listOfButtons = (output, context) => {
|
|
|
1122
1122
|
};
|
|
1123
1123
|
const deserializeAws_restJson1PredictedIntent = (output, context) => {
|
|
1124
1124
|
return {
|
|
1125
|
-
intentName: smithy_client_1.expectString(output.intentName),
|
|
1125
|
+
intentName: (0, smithy_client_1.expectString)(output.intentName),
|
|
1126
1126
|
nluIntentConfidence: output.nluIntentConfidence !== undefined && output.nluIntentConfidence !== null
|
|
1127
1127
|
? deserializeAws_restJson1IntentConfidence(output.nluIntentConfidence, context)
|
|
1128
1128
|
: undefined,
|
|
@@ -1133,17 +1133,17 @@ const deserializeAws_restJson1PredictedIntent = (output, context) => {
|
|
|
1133
1133
|
};
|
|
1134
1134
|
const deserializeAws_restJson1ResponseCard = (output, context) => {
|
|
1135
1135
|
return {
|
|
1136
|
-
contentType: smithy_client_1.expectString(output.contentType),
|
|
1136
|
+
contentType: (0, smithy_client_1.expectString)(output.contentType),
|
|
1137
1137
|
genericAttachments: output.genericAttachments !== undefined && output.genericAttachments !== null
|
|
1138
1138
|
? deserializeAws_restJson1genericAttachmentList(output.genericAttachments, context)
|
|
1139
1139
|
: undefined,
|
|
1140
|
-
version: smithy_client_1.expectString(output.version),
|
|
1140
|
+
version: (0, smithy_client_1.expectString)(output.version),
|
|
1141
1141
|
};
|
|
1142
1142
|
};
|
|
1143
1143
|
const deserializeAws_restJson1SentimentResponse = (output, context) => {
|
|
1144
1144
|
return {
|
|
1145
|
-
sentimentLabel: smithy_client_1.expectString(output.sentimentLabel),
|
|
1146
|
-
sentimentScore: smithy_client_1.expectString(output.sentimentScore),
|
|
1145
|
+
sentimentLabel: (0, smithy_client_1.expectString)(output.sentimentLabel),
|
|
1146
|
+
sentimentScore: (0, smithy_client_1.expectString)(output.sentimentScore),
|
|
1147
1147
|
};
|
|
1148
1148
|
};
|
|
1149
1149
|
const deserializeAws_restJson1StringMap = (output, context) => {
|
|
@@ -1153,7 +1153,7 @@ const deserializeAws_restJson1StringMap = (output, context) => {
|
|
|
1153
1153
|
}
|
|
1154
1154
|
return {
|
|
1155
1155
|
...acc,
|
|
1156
|
-
[key]: smithy_client_1.expectString(value),
|
|
1156
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
1157
1157
|
};
|
|
1158
1158
|
}, {});
|
|
1159
1159
|
};
|
|
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
17
17
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
-
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
20
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
21
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
22
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
23
23
|
return {
|
|
24
24
|
...clientSharedValues,
|
|
25
25
|
...config,
|
|
@@ -29,9 +29,9 @@ const getRuntimeConfig = (config) => {
|
|
|
29
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
30
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
31
31
|
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
32
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
34
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
35
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
36
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
@@ -19,9 +19,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
19
19
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
20
|
const getRuntimeConfig = (config) => {
|
|
21
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
-
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
22
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
23
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
24
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
25
25
|
return {
|
|
26
26
|
...clientSharedValues,
|
|
27
27
|
...config,
|
|
@@ -30,19 +30,19 @@ const getRuntimeConfig = (config) => {
|
|
|
30
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
31
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
32
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
33
|
-
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
|
|
34
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
-
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
33
|
+
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
34
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
+
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
37
37
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
|
|
39
39
|
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
40
|
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
41
|
}),
|
|
42
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
43
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
44
|
-
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
-
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
44
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
46
46
|
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
47
47
|
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
48
48
|
};
|
|
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
7
|
var _a;
|
|
8
|
-
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
|
|
8
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
9
|
return {
|
|
10
10
|
...browserDefaults,
|
|
11
11
|
...config,
|
|
@@ -17,7 +17,7 @@ var LexRuntimeService = (function (_super) {
|
|
|
17
17
|
}
|
|
18
18
|
else if (typeof cb === "function") {
|
|
19
19
|
if (typeof optionsOrCb !== "object")
|
|
20
|
-
throw new Error("Expect http options but get "
|
|
20
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
21
21
|
this.send(command, optionsOrCb || {}, cb);
|
|
22
22
|
}
|
|
23
23
|
else {
|
|
@@ -31,7 +31,7 @@ var LexRuntimeService = (function (_super) {
|
|
|
31
31
|
}
|
|
32
32
|
else if (typeof cb === "function") {
|
|
33
33
|
if (typeof optionsOrCb !== "object")
|
|
34
|
-
throw new Error("Expect http options but get "
|
|
34
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
35
35
|
this.send(command, optionsOrCb || {}, cb);
|
|
36
36
|
}
|
|
37
37
|
else {
|
|
@@ -45,7 +45,7 @@ var LexRuntimeService = (function (_super) {
|
|
|
45
45
|
}
|
|
46
46
|
else if (typeof cb === "function") {
|
|
47
47
|
if (typeof optionsOrCb !== "object")
|
|
48
|
-
throw new Error("Expect http options but get "
|
|
48
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
49
49
|
this.send(command, optionsOrCb || {}, cb);
|
|
50
50
|
}
|
|
51
51
|
else {
|
|
@@ -59,7 +59,7 @@ var LexRuntimeService = (function (_super) {
|
|
|
59
59
|
}
|
|
60
60
|
else if (typeof cb === "function") {
|
|
61
61
|
if (typeof optionsOrCb !== "object")
|
|
62
|
-
throw new Error("Expect http options but get "
|
|
62
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
63
63
|
this.send(command, optionsOrCb || {}, cb);
|
|
64
64
|
}
|
|
65
65
|
else {
|
|
@@ -73,7 +73,7 @@ var LexRuntimeService = (function (_super) {
|
|
|
73
73
|
}
|
|
74
74
|
else if (typeof cb === "function") {
|
|
75
75
|
if (typeof optionsOrCb !== "object")
|
|
76
|
-
throw new Error("Expect http options but get "
|
|
76
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
77
77
|
this.send(command, optionsOrCb || {}, cb);
|
|
78
78
|
}
|
|
79
79
|
else {
|
|
@@ -11,7 +11,7 @@ export var serializeAws_restJson1DeleteSessionCommand = function (input, context
|
|
|
11
11
|
case 1:
|
|
12
12
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
13
13
|
headers = {};
|
|
14
|
-
resolvedPath = ""
|
|
14
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
15
15
|
"/bot/{botName}/alias/{botAlias}/user/{userId}/session";
|
|
16
16
|
if (input.botName !== undefined) {
|
|
17
17
|
labelValue = input.botName;
|
|
@@ -63,7 +63,7 @@ export var serializeAws_restJson1GetSessionCommand = function (input, context) {
|
|
|
63
63
|
case 1:
|
|
64
64
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
65
65
|
headers = {};
|
|
66
|
-
resolvedPath = ""
|
|
66
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
67
67
|
"/bot/{botName}/alias/{botAlias}/user/{userId}/session";
|
|
68
68
|
if (input.botName !== undefined) {
|
|
69
69
|
labelValue = input.botName;
|
|
@@ -123,7 +123,7 @@ export var serializeAws_restJson1PostContentCommand = function (input, context)
|
|
|
123
123
|
})), (isSerializableHeaderValue(input.contentType) && { "content-type": input.contentType })), (isSerializableHeaderValue(input.accept) && { accept: input.accept })), (isSerializableHeaderValue(input.activeContexts) && {
|
|
124
124
|
"x-amz-lex-active-contexts": context.base64Encoder(Buffer.from(__LazyJsonString.fromObject(input.activeContexts))),
|
|
125
125
|
}));
|
|
126
|
-
resolvedPath = ""
|
|
126
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
127
127
|
"/bot/{botName}/alias/{botAlias}/user/{userId}/content";
|
|
128
128
|
if (input.botName !== undefined) {
|
|
129
129
|
labelValue = input.botName;
|
|
@@ -180,7 +180,7 @@ export var serializeAws_restJson1PostTextCommand = function (input, context) { r
|
|
|
180
180
|
headers = {
|
|
181
181
|
"content-type": "application/json",
|
|
182
182
|
};
|
|
183
|
-
resolvedPath = ""
|
|
183
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
184
184
|
"/bot/{botName}/alias/{botAlias}/user/{userId}/text";
|
|
185
185
|
if (input.botName !== undefined) {
|
|
186
186
|
labelValue = input.botName;
|
|
@@ -242,7 +242,7 @@ export var serializeAws_restJson1PutSessionCommand = function (input, context) {
|
|
|
242
242
|
case 1:
|
|
243
243
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
244
244
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.accept) && { accept: input.accept }));
|
|
245
|
-
resolvedPath = ""
|
|
245
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
246
246
|
"/bot/{botName}/alias/{botAlias}/user/{userId}/session";
|
|
247
247
|
if (input.botName !== undefined) {
|
|
248
248
|
labelValue = input.botName;
|
|
@@ -21,11 +21,11 @@ export declare const getRuntimeConfig: (config: LexRuntimeServiceClientConfig) =
|
|
|
21
21
|
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
22
22
|
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
23
23
|
serviceId: string;
|
|
24
|
-
region: string | import("@aws-sdk/types").Provider<
|
|
24
|
+
region: string | import("@aws-sdk/types").Provider<any>;
|
|
25
25
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
26
26
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
27
27
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
28
|
-
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode
|
|
28
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
|
|
29
29
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
30
30
|
tls?: boolean | undefined;
|
|
31
31
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
@@ -19,11 +19,11 @@ export declare const getRuntimeConfig: (config: LexRuntimeServiceClientConfig) =
|
|
|
19
19
|
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
20
20
|
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
21
21
|
serviceId: string;
|
|
22
|
-
region: string | import("@aws-sdk/types").Provider<
|
|
22
|
+
region: string | import("@aws-sdk/types").Provider<any>;
|
|
23
23
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
24
24
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
25
25
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
26
|
-
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode
|
|
26
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
|
|
27
27
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
28
28
|
tls?: boolean | undefined;
|
|
29
29
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-lex-runtime-service",
|
|
3
3
|
"description": "AWS SDK for JavaScript Lex Runtime Service Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.58.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,40 +20,40 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/config-resolver": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
27
|
-
"@aws-sdk/hash-node": "3.
|
|
28
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
29
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
-
"@aws-sdk/middleware-retry": "3.
|
|
33
|
-
"@aws-sdk/middleware-serde": "3.
|
|
34
|
-
"@aws-sdk/middleware-signing": "3.
|
|
35
|
-
"@aws-sdk/middleware-stack": "3.
|
|
36
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
37
|
-
"@aws-sdk/node-config-provider": "3.
|
|
38
|
-
"@aws-sdk/node-http-handler": "3.
|
|
39
|
-
"@aws-sdk/protocol-http": "3.
|
|
40
|
-
"@aws-sdk/smithy-client": "3.
|
|
41
|
-
"@aws-sdk/types": "3.
|
|
42
|
-
"@aws-sdk/url-parser": "3.
|
|
43
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
44
|
-
"@aws-sdk/util-base64-node": "3.
|
|
45
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
46
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
50
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
51
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
52
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
53
|
-
"tslib": "^2.3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.58.0",
|
|
24
|
+
"@aws-sdk/config-resolver": "3.58.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.58.0",
|
|
26
|
+
"@aws-sdk/fetch-http-handler": "3.58.0",
|
|
27
|
+
"@aws-sdk/hash-node": "3.55.0",
|
|
28
|
+
"@aws-sdk/invalid-dependency": "3.55.0",
|
|
29
|
+
"@aws-sdk/middleware-content-length": "3.58.0",
|
|
30
|
+
"@aws-sdk/middleware-host-header": "3.58.0",
|
|
31
|
+
"@aws-sdk/middleware-logger": "3.55.0",
|
|
32
|
+
"@aws-sdk/middleware-retry": "3.58.0",
|
|
33
|
+
"@aws-sdk/middleware-serde": "3.55.0",
|
|
34
|
+
"@aws-sdk/middleware-signing": "3.58.0",
|
|
35
|
+
"@aws-sdk/middleware-stack": "3.55.0",
|
|
36
|
+
"@aws-sdk/middleware-user-agent": "3.58.0",
|
|
37
|
+
"@aws-sdk/node-config-provider": "3.58.0",
|
|
38
|
+
"@aws-sdk/node-http-handler": "3.58.0",
|
|
39
|
+
"@aws-sdk/protocol-http": "3.58.0",
|
|
40
|
+
"@aws-sdk/smithy-client": "3.55.0",
|
|
41
|
+
"@aws-sdk/types": "3.55.0",
|
|
42
|
+
"@aws-sdk/url-parser": "3.55.0",
|
|
43
|
+
"@aws-sdk/util-base64-browser": "3.58.0",
|
|
44
|
+
"@aws-sdk/util-base64-node": "3.55.0",
|
|
45
|
+
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
46
|
+
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-browser": "3.55.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-node": "3.58.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-browser": "3.58.0",
|
|
50
|
+
"@aws-sdk/util-user-agent-node": "3.58.0",
|
|
51
|
+
"@aws-sdk/util-utf8-browser": "3.55.0",
|
|
52
|
+
"@aws-sdk/util-utf8-node": "3.55.0",
|
|
53
|
+
"tslib": "^2.3.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
56
|
+
"@aws-sdk/service-client-documentation-generator": "3.58.0",
|
|
57
57
|
"@tsconfig/recommended": "1.0.1",
|
|
58
58
|
"@types/chai": "^4.2.11",
|
|
59
59
|
"@types/mocha": "^8.0.4",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"downlevel-dts": "0.7.0",
|
|
63
63
|
"rimraf": "3.0.2",
|
|
64
64
|
"typedoc": "0.19.2",
|
|
65
|
-
"typescript": "~4.
|
|
65
|
+
"typescript": "~4.6.2"
|
|
66
66
|
},
|
|
67
67
|
"engines": {
|
|
68
68
|
"node": ">=12.0.0"
|