@aws-sdk/client-lex-runtime-service 3.100.0 → 3.105.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
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.105.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.104.0...v3.105.0) (2022-06-06)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** support recursion detection in Lambda ([#3654](https://github.com/aws/aws-sdk-js-v3/issues/3654)) ([ecfe46e](https://github.com/aws/aws-sdk-js-v3/commit/ecfe46ea1fd8b6e3812b75b3dc6c03554fb4b3fa))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.100.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.99.0...v3.100.0) (2022-05-26)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-lex-runtime-service
|
|
@@ -5,6 +5,7 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
|
5
5
|
const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
|
|
6
6
|
const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
|
|
7
7
|
const middleware_logger_1 = require("@aws-sdk/middleware-logger");
|
|
8
|
+
const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
|
|
8
9
|
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
9
10
|
const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
10
11
|
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
@@ -25,6 +26,7 @@ class LexRuntimeServiceClient extends smithy_client_1.Client {
|
|
|
25
26
|
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
|
26
27
|
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
|
27
28
|
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
|
29
|
+
this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
|
|
28
30
|
this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
|
|
29
31
|
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
30
32
|
}
|
|
@@ -3,6 +3,7 @@ import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-re
|
|
|
3
3
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
5
5
|
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
6
|
+
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
6
7
|
import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
7
8
|
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
8
9
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
@@ -25,6 +26,7 @@ var LexRuntimeServiceClient = (function (_super) {
|
|
|
25
26
|
_this.middlewareStack.use(getContentLengthPlugin(_this.config));
|
|
26
27
|
_this.middlewareStack.use(getHostHeaderPlugin(_this.config));
|
|
27
28
|
_this.middlewareStack.use(getLoggerPlugin(_this.config));
|
|
29
|
+
_this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
|
|
28
30
|
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
29
31
|
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
30
32
|
return _this;
|
|
@@ -48,9 +48,7 @@ export interface ActiveContext {
|
|
|
48
48
|
* <p>State variables for the current context. You can use these values as
|
|
49
49
|
* default values for slots in subsequent events.</p>
|
|
50
50
|
*/
|
|
51
|
-
parameters:
|
|
52
|
-
[key: string]: string;
|
|
53
|
-
} | undefined;
|
|
51
|
+
parameters: Record<string, string> | undefined;
|
|
54
52
|
}
|
|
55
53
|
export declare namespace ActiveContext {
|
|
56
54
|
/**
|
|
@@ -258,9 +256,7 @@ export interface DialogAction {
|
|
|
258
256
|
/**
|
|
259
257
|
* <p>Map of the slots that have been gathered and their values. </p>
|
|
260
258
|
*/
|
|
261
|
-
slots?:
|
|
262
|
-
[key: string]: string;
|
|
263
|
-
};
|
|
259
|
+
slots?: Record<string, string>;
|
|
264
260
|
/**
|
|
265
261
|
* <p>The name of the slot that should be elicited from the user.</p>
|
|
266
262
|
*/
|
|
@@ -352,9 +348,7 @@ export interface IntentSummary {
|
|
|
352
348
|
/**
|
|
353
349
|
* <p>Map of the slots that have been gathered and their values. </p>
|
|
354
350
|
*/
|
|
355
|
-
slots?:
|
|
356
|
-
[key: string]: string;
|
|
357
|
-
};
|
|
351
|
+
slots?: Record<string, string>;
|
|
358
352
|
/**
|
|
359
353
|
* <p>The status of the intent after the user responds to the confirmation
|
|
360
354
|
* prompt. If the user confirms the intent, Amazon Lex sets this field to
|
|
@@ -460,9 +454,7 @@ export interface GetSessionResponse {
|
|
|
460
454
|
* information. It contains application information passed between Amazon Lex and
|
|
461
455
|
* a client application.</p>
|
|
462
456
|
*/
|
|
463
|
-
sessionAttributes?:
|
|
464
|
-
[key: string]: string;
|
|
465
|
-
};
|
|
457
|
+
sessionAttributes?: Record<string, string>;
|
|
466
458
|
/**
|
|
467
459
|
* <p>A unique identifier for the session.</p>
|
|
468
460
|
*/
|
|
@@ -1055,9 +1047,7 @@ export interface PostTextRequest {
|
|
|
1055
1047
|
* application.</p>
|
|
1056
1048
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/lex/latest/dg/context-mgmt.html#context-mgmt-session-attribs">Setting Session Attributes</a>.</p>
|
|
1057
1049
|
*/
|
|
1058
|
-
sessionAttributes?:
|
|
1059
|
-
[key: string]: string;
|
|
1060
|
-
};
|
|
1050
|
+
sessionAttributes?: Record<string, string>;
|
|
1061
1051
|
/**
|
|
1062
1052
|
* <p>Request-specific information passed between Amazon Lex and a client
|
|
1063
1053
|
* application.</p>
|
|
@@ -1066,9 +1056,7 @@ export interface PostTextRequest {
|
|
|
1066
1056
|
* <code>x-amz-lex:</code>.</p>
|
|
1067
1057
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/lex/latest/dg/context-mgmt.html#context-mgmt-request-attribs">Setting Request Attributes</a>.</p>
|
|
1068
1058
|
*/
|
|
1069
|
-
requestAttributes?:
|
|
1070
|
-
[key: string]: string;
|
|
1071
|
-
};
|
|
1059
|
+
requestAttributes?: Record<string, string>;
|
|
1072
1060
|
/**
|
|
1073
1061
|
* <p>The text that the user entered (Amazon Lex interprets this text).</p>
|
|
1074
1062
|
*/
|
|
@@ -1126,9 +1114,7 @@ export interface PredictedIntent {
|
|
|
1126
1114
|
/**
|
|
1127
1115
|
* <p>The slot and slot values associated with the predicted intent.</p>
|
|
1128
1116
|
*/
|
|
1129
|
-
slots?:
|
|
1130
|
-
[key: string]: string;
|
|
1131
|
-
};
|
|
1117
|
+
slots?: Record<string, string>;
|
|
1132
1118
|
}
|
|
1133
1119
|
export declare namespace PredictedIntent {
|
|
1134
1120
|
/**
|
|
@@ -1279,16 +1265,12 @@ export interface PostTextResponse {
|
|
|
1279
1265
|
* specify a <code>valueSelectionStrategy</code>, the default is
|
|
1280
1266
|
* <code>ORIGINAL_VALUE</code>.</p>
|
|
1281
1267
|
*/
|
|
1282
|
-
slots?:
|
|
1283
|
-
[key: string]: string;
|
|
1284
|
-
};
|
|
1268
|
+
slots?: Record<string, string>;
|
|
1285
1269
|
/**
|
|
1286
1270
|
* <p>A map of key-value pairs representing the session-specific context
|
|
1287
1271
|
* information.</p>
|
|
1288
1272
|
*/
|
|
1289
|
-
sessionAttributes?:
|
|
1290
|
-
[key: string]: string;
|
|
1291
|
-
};
|
|
1273
|
+
sessionAttributes?: Record<string, string>;
|
|
1292
1274
|
/**
|
|
1293
1275
|
* <p>The message to convey to the user. The message can come from the bot's
|
|
1294
1276
|
* configuration or from a Lambda function.</p>
|
|
@@ -1457,9 +1439,7 @@ export interface PutSessionRequest {
|
|
|
1457
1439
|
* information. It contains application information passed between Amazon Lex and
|
|
1458
1440
|
* a client application.</p>
|
|
1459
1441
|
*/
|
|
1460
|
-
sessionAttributes?:
|
|
1461
|
-
[key: string]: string;
|
|
1462
|
-
};
|
|
1442
|
+
sessionAttributes?: Record<string, string>;
|
|
1463
1443
|
/**
|
|
1464
1444
|
* <p>Sets the next action that the bot should take to fulfill the
|
|
1465
1445
|
* conversation.</p>
|
|
@@ -20,9 +20,7 @@ export interface ActiveContext {
|
|
|
20
20
|
|
|
21
21
|
timeToLive: ActiveContextTimeToLive | undefined;
|
|
22
22
|
|
|
23
|
-
parameters:
|
|
24
|
-
[key: string]: string;
|
|
25
|
-
} | undefined;
|
|
23
|
+
parameters: Record<string, string> | undefined;
|
|
26
24
|
}
|
|
27
25
|
export declare namespace ActiveContext {
|
|
28
26
|
|
|
@@ -129,9 +127,7 @@ export interface DialogAction {
|
|
|
129
127
|
|
|
130
128
|
intentName?: string;
|
|
131
129
|
|
|
132
|
-
slots?:
|
|
133
|
-
[key: string]: string;
|
|
134
|
-
};
|
|
130
|
+
slots?: Record<string, string>;
|
|
135
131
|
|
|
136
132
|
slotToElicit?: string;
|
|
137
133
|
|
|
@@ -157,9 +153,7 @@ export interface IntentSummary {
|
|
|
157
153
|
|
|
158
154
|
checkpointLabel?: string;
|
|
159
155
|
|
|
160
|
-
slots?:
|
|
161
|
-
[key: string]: string;
|
|
162
|
-
};
|
|
156
|
+
slots?: Record<string, string>;
|
|
163
157
|
|
|
164
158
|
confirmationStatus?: ConfirmationStatus | string;
|
|
165
159
|
|
|
@@ -177,9 +171,7 @@ export interface GetSessionResponse {
|
|
|
177
171
|
|
|
178
172
|
recentIntentSummaryView?: IntentSummary[];
|
|
179
173
|
|
|
180
|
-
sessionAttributes?:
|
|
181
|
-
[key: string]: string;
|
|
182
|
-
};
|
|
174
|
+
sessionAttributes?: Record<string, string>;
|
|
183
175
|
|
|
184
176
|
sessionId?: string;
|
|
185
177
|
|
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.105.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,15 +20,16 @@
|
|
|
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.
|
|
23
|
+
"@aws-sdk/client-sts": "3.105.0",
|
|
24
24
|
"@aws-sdk/config-resolver": "3.80.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.105.0",
|
|
26
26
|
"@aws-sdk/fetch-http-handler": "3.78.0",
|
|
27
27
|
"@aws-sdk/hash-node": "3.78.0",
|
|
28
28
|
"@aws-sdk/invalid-dependency": "3.78.0",
|
|
29
29
|
"@aws-sdk/middleware-content-length": "3.78.0",
|
|
30
30
|
"@aws-sdk/middleware-host-header": "3.78.0",
|
|
31
31
|
"@aws-sdk/middleware-logger": "3.78.0",
|
|
32
|
+
"@aws-sdk/middleware-recursion-detection": "3.105.0",
|
|
32
33
|
"@aws-sdk/middleware-retry": "3.80.0",
|
|
33
34
|
"@aws-sdk/middleware-serde": "3.78.0",
|
|
34
35
|
"@aws-sdk/middleware-signing": "3.78.0",
|