@aws-sdk/client-lex-runtime-v2 3.451.0 → 3.458.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/README.md +6 -6
- package/dist-cjs/models/models_0.js +5 -1
- package/dist-cjs/protocols/Aws_restJson1.js +1 -0
- package/dist-es/models/models_0.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +1 -0
- package/dist-types/commands/GetSessionCommand.d.ts +1 -0
- package/dist-types/commands/RecognizeTextCommand.d.ts +1 -0
- package/dist-types/commands/StartConversationCommand.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +77 -42
- package/dist-types/ts3.4/models/models_0.d.ts +7 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -208,7 +208,7 @@ see LICENSE for more information.
|
|
|
208
208
|
DeleteSession
|
|
209
209
|
</summary>
|
|
210
210
|
|
|
211
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
|
|
211
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lex-runtime-v2/command/DeleteSessionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-runtime-v2/Interface/DeleteSessionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-runtime-v2/Interface/DeleteSessionCommandOutput/)
|
|
212
212
|
|
|
213
213
|
</details>
|
|
214
214
|
<details>
|
|
@@ -216,7 +216,7 @@ DeleteSession
|
|
|
216
216
|
GetSession
|
|
217
217
|
</summary>
|
|
218
218
|
|
|
219
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
|
|
219
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lex-runtime-v2/command/GetSessionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-runtime-v2/Interface/GetSessionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-runtime-v2/Interface/GetSessionCommandOutput/)
|
|
220
220
|
|
|
221
221
|
</details>
|
|
222
222
|
<details>
|
|
@@ -224,7 +224,7 @@ GetSession
|
|
|
224
224
|
PutSession
|
|
225
225
|
</summary>
|
|
226
226
|
|
|
227
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
|
|
227
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lex-runtime-v2/command/PutSessionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-runtime-v2/Interface/PutSessionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-runtime-v2/Interface/PutSessionCommandOutput/)
|
|
228
228
|
|
|
229
229
|
</details>
|
|
230
230
|
<details>
|
|
@@ -232,7 +232,7 @@ PutSession
|
|
|
232
232
|
RecognizeText
|
|
233
233
|
</summary>
|
|
234
234
|
|
|
235
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
|
|
235
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lex-runtime-v2/command/RecognizeTextCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-runtime-v2/Interface/RecognizeTextCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-runtime-v2/Interface/RecognizeTextCommandOutput/)
|
|
236
236
|
|
|
237
237
|
</details>
|
|
238
238
|
<details>
|
|
@@ -240,7 +240,7 @@ RecognizeText
|
|
|
240
240
|
RecognizeUtterance
|
|
241
241
|
</summary>
|
|
242
242
|
|
|
243
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
|
|
243
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lex-runtime-v2/command/RecognizeUtteranceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-runtime-v2/Interface/RecognizeUtteranceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-runtime-v2/Interface/RecognizeUtteranceCommandOutput/)
|
|
244
244
|
|
|
245
245
|
</details>
|
|
246
246
|
<details>
|
|
@@ -248,6 +248,6 @@ RecognizeUtterance
|
|
|
248
248
|
StartConversation
|
|
249
249
|
</summary>
|
|
250
250
|
|
|
251
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
|
|
251
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lex-runtime-v2/command/StartConversationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-runtime-v2/Interface/StartConversationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-runtime-v2/Interface/StartConversationCommandOutput/)
|
|
252
252
|
|
|
253
253
|
</details>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StartConversationResponseFilterSensitiveLog = exports.StartConversationResponseEventStreamFilterSensitiveLog = exports.RecognizeTextResponseFilterSensitiveLog = exports.IntentResultEventFilterSensitiveLog = exports.GetSessionResponseFilterSensitiveLog = exports.StartConversationRequestFilterSensitiveLog = exports.StartConversationRequestEventStreamFilterSensitiveLog = exports.RecognizeTextRequestFilterSensitiveLog = exports.PutSessionRequestFilterSensitiveLog = exports.ConfigurationEventFilterSensitiveLog = exports.SessionStateFilterSensitiveLog = exports.TextResponseEventFilterSensitiveLog = exports.TextInputEventFilterSensitiveLog = exports.DTMFInputEventFilterSensitiveLog = exports.RecognizeUtteranceResponseFilterSensitiveLog = exports.RecognizeUtteranceRequestFilterSensitiveLog = exports.PutSessionResponseFilterSensitiveLog = exports.MessageFilterSensitiveLog = exports.ActiveContextFilterSensitiveLog = exports.StartConversationResponseEventStream = exports.StartConversationRequestEventStream = exports.PlaybackInterruptionReason = exports.InputMode = exports.ConversationMode = exports.DependencyFailedException = exports.BadGatewayException = exports.DialogActionType = exports.StyleType = exports.MessageContentType = exports.SentimentType = exports.IntentState = exports.Shape = exports.ConfirmationState = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
3
|
+
exports.StartConversationResponseFilterSensitiveLog = exports.StartConversationResponseEventStreamFilterSensitiveLog = exports.RecognizeTextResponseFilterSensitiveLog = exports.IntentResultEventFilterSensitiveLog = exports.GetSessionResponseFilterSensitiveLog = exports.StartConversationRequestFilterSensitiveLog = exports.StartConversationRequestEventStreamFilterSensitiveLog = exports.RecognizeTextRequestFilterSensitiveLog = exports.PutSessionRequestFilterSensitiveLog = exports.ConfigurationEventFilterSensitiveLog = exports.SessionStateFilterSensitiveLog = exports.TextResponseEventFilterSensitiveLog = exports.TextInputEventFilterSensitiveLog = exports.DTMFInputEventFilterSensitiveLog = exports.RecognizeUtteranceResponseFilterSensitiveLog = exports.RecognizeUtteranceRequestFilterSensitiveLog = exports.PutSessionResponseFilterSensitiveLog = exports.MessageFilterSensitiveLog = exports.ActiveContextFilterSensitiveLog = exports.StartConversationResponseEventStream = exports.StartConversationRequestEventStream = exports.PlaybackInterruptionReason = exports.InputMode = exports.ConversationMode = exports.DependencyFailedException = exports.BadGatewayException = exports.DialogActionType = exports.StyleType = exports.MessageContentType = exports.SentimentType = exports.InterpretationSource = exports.IntentState = exports.Shape = exports.ConfirmationState = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
4
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
5
|
const LexRuntimeV2ServiceException_1 = require("./LexRuntimeV2ServiceException");
|
|
6
6
|
class AccessDeniedException extends LexRuntimeV2ServiceException_1.LexRuntimeV2ServiceException {
|
|
@@ -99,6 +99,10 @@ exports.IntentState = {
|
|
|
99
99
|
READY_FOR_FULFILLMENT: "ReadyForFulfillment",
|
|
100
100
|
WAITING: "Waiting",
|
|
101
101
|
};
|
|
102
|
+
exports.InterpretationSource = {
|
|
103
|
+
BEDROCK: "Bedrock",
|
|
104
|
+
LEX: "Lex",
|
|
105
|
+
};
|
|
102
106
|
exports.SentimentType = {
|
|
103
107
|
MIXED: "MIXED",
|
|
104
108
|
NEGATIVE: "NEGATIVE",
|
|
@@ -983,6 +983,7 @@ const de_IntentResultEvent = (output, context) => {
|
|
|
983
983
|
const de_Interpretation = (output, context) => {
|
|
984
984
|
return (0, smithy_client_1.take)(output, {
|
|
985
985
|
intent: (_) => de_Intent(_, context),
|
|
986
|
+
interpretationSource: smithy_client_1.expectString,
|
|
986
987
|
nluConfidence: (_) => de_ConfidenceScore(_, context),
|
|
987
988
|
sentimentResponse: (_) => de_SentimentResponse(_, context),
|
|
988
989
|
});
|
|
@@ -90,6 +90,10 @@ export const IntentState = {
|
|
|
90
90
|
READY_FOR_FULFILLMENT: "ReadyForFulfillment",
|
|
91
91
|
WAITING: "Waiting",
|
|
92
92
|
};
|
|
93
|
+
export const InterpretationSource = {
|
|
94
|
+
BEDROCK: "Bedrock",
|
|
95
|
+
LEX: "Lex",
|
|
96
|
+
};
|
|
93
97
|
export const SentimentType = {
|
|
94
98
|
MIXED: "MIXED",
|
|
95
99
|
NEGATIVE: "NEGATIVE",
|
|
@@ -968,6 +968,7 @@ const de_IntentResultEvent = (output, context) => {
|
|
|
968
968
|
const de_Interpretation = (output, context) => {
|
|
969
969
|
return take(output, {
|
|
970
970
|
intent: (_) => de_Intent(_, context),
|
|
971
|
+
interpretationSource: __expectString,
|
|
971
972
|
nluConfidence: (_) => de_ConfidenceScore(_, context),
|
|
972
973
|
sentimentResponse: (_) => de_SentimentResponse(_, context),
|
|
973
974
|
});
|
|
@@ -115,6 +115,7 @@ export interface GetSessionCommandOutput extends GetSessionResponse, __MetadataB
|
|
|
115
115
|
* // state: "Failed" || "Fulfilled" || "InProgress" || "ReadyForFulfillment" || "Waiting" || "FulfillmentInProgress",
|
|
116
116
|
* // confirmationState: "Confirmed" || "Denied" || "None",
|
|
117
117
|
* // },
|
|
118
|
+
* // interpretationSource: "Bedrock" || "Lex",
|
|
118
119
|
* // },
|
|
119
120
|
* // ],
|
|
120
121
|
* // sessionState: { // SessionState
|
|
@@ -288,6 +288,7 @@ export interface RecognizeTextCommandOutput extends RecognizeTextResponse, __Met
|
|
|
288
288
|
* // state: "Failed" || "Fulfilled" || "InProgress" || "ReadyForFulfillment" || "Waiting" || "FulfillmentInProgress",
|
|
289
289
|
* // confirmationState: "Confirmed" || "Denied" || "None",
|
|
290
290
|
* // },
|
|
291
|
+
* // interpretationSource: "Bedrock" || "Lex",
|
|
291
292
|
* // },
|
|
292
293
|
* // ],
|
|
293
294
|
* // requestAttributes: {
|
|
@@ -302,6 +302,7 @@ export interface StartConversationCommandOutput extends StartConversationRespons
|
|
|
302
302
|
* // state: "Failed" || "Fulfilled" || "InProgress" || "ReadyForFulfillment" || "Waiting" || "FulfillmentInProgress",
|
|
303
303
|
* // confirmationState: "Confirmed" || "Denied" || "None",
|
|
304
304
|
* // },
|
|
305
|
+
* // interpretationSource: "Bedrock" || "Lex",
|
|
305
306
|
* // },
|
|
306
307
|
* // ],
|
|
307
308
|
* // sessionState: { // SessionState
|
|
@@ -297,27 +297,22 @@ export declare const Shape: {
|
|
|
297
297
|
export type Shape = (typeof Shape)[keyof typeof Shape];
|
|
298
298
|
/**
|
|
299
299
|
* @public
|
|
300
|
-
* <p>
|
|
300
|
+
* <p>Information about the value provided for a slot and Amazon Lex V2's interpretation.</p>
|
|
301
301
|
*/
|
|
302
302
|
export interface Value {
|
|
303
303
|
/**
|
|
304
304
|
* @public
|
|
305
|
-
* <p>The
|
|
306
|
-
* slot.</p>
|
|
305
|
+
* <p>The part of the user's response to the slot elicitation that Amazon Lex V2 determines is relevant to the slot value.</p>
|
|
307
306
|
*/
|
|
308
307
|
originalValue?: string;
|
|
309
308
|
/**
|
|
310
309
|
* @public
|
|
311
|
-
* <p>The value that Amazon Lex V2 determines for the slot. The actual value
|
|
312
|
-
* depends on the setting of the value selection strategy for the bot. You
|
|
313
|
-
* can choose to use the value entered by the user, or you can have Amazon Lex V2
|
|
314
|
-
* choose the first value in the <code>resolvedValues</code> list.</p>
|
|
310
|
+
* <p>The value that Amazon Lex V2 determines for the slot, given the user input. The actual value depends on the setting of the value selection strategy for the bot. You can choose to use the value entered by the user, or you can have Amazon Lex V2 choose the first value in the <code>resolvedValues</code> list.</p>
|
|
315
311
|
*/
|
|
316
312
|
interpretedValue: string | undefined;
|
|
317
313
|
/**
|
|
318
314
|
* @public
|
|
319
|
-
* <p>A list of
|
|
320
|
-
* slot.</p>
|
|
315
|
+
* <p>A list of values that Amazon Lex V2 determines are possible resolutions for the user input. The first value matches the <code>interpretedValue</code>.</p>
|
|
321
316
|
*/
|
|
322
317
|
resolvedValues?: string[];
|
|
323
318
|
}
|
|
@@ -337,6 +332,18 @@ export declare const IntentState: {
|
|
|
337
332
|
* @public
|
|
338
333
|
*/
|
|
339
334
|
export type IntentState = (typeof IntentState)[keyof typeof IntentState];
|
|
335
|
+
/**
|
|
336
|
+
* @public
|
|
337
|
+
* @enum
|
|
338
|
+
*/
|
|
339
|
+
export declare const InterpretationSource: {
|
|
340
|
+
readonly BEDROCK: "Bedrock";
|
|
341
|
+
readonly LEX: "Lex";
|
|
342
|
+
};
|
|
343
|
+
/**
|
|
344
|
+
* @public
|
|
345
|
+
*/
|
|
346
|
+
export type InterpretationSource = (typeof InterpretationSource)[keyof typeof InterpretationSource];
|
|
340
347
|
/**
|
|
341
348
|
* @public
|
|
342
349
|
* <p>Provides a score that indicates the confidence that Amazon Lex V2 has that
|
|
@@ -452,36 +459,36 @@ export interface Button {
|
|
|
452
459
|
/**
|
|
453
460
|
* @public
|
|
454
461
|
* <p>A card that is shown to the user by a messaging platform. You define
|
|
455
|
-
*
|
|
462
|
+
* the contents of the card, the card is displayed by the platform. </p>
|
|
456
463
|
* <p>When you use a response card, the response from the user is
|
|
457
|
-
*
|
|
464
|
+
* constrained to the text associated with a button on the card.</p>
|
|
458
465
|
*/
|
|
459
466
|
export interface ImageResponseCard {
|
|
460
467
|
/**
|
|
461
468
|
* @public
|
|
462
469
|
* <p>The title to display on the response card. The format of the title
|
|
463
|
-
*
|
|
470
|
+
* is determined by the platform displaying the response card.</p>
|
|
464
471
|
*/
|
|
465
472
|
title: string | undefined;
|
|
466
473
|
/**
|
|
467
474
|
* @public
|
|
468
475
|
* <p>The subtitle to display on the response card. The format of the
|
|
469
|
-
*
|
|
470
|
-
*
|
|
476
|
+
* subtitle is determined by the platform displaying the response
|
|
477
|
+
* card.</p>
|
|
471
478
|
*/
|
|
472
479
|
subtitle?: string;
|
|
473
480
|
/**
|
|
474
481
|
* @public
|
|
475
482
|
* <p>The URL of an image to display on the response card. The image URL
|
|
476
|
-
*
|
|
477
|
-
*
|
|
483
|
+
* must be publicly available so that the platform displaying the response
|
|
484
|
+
* card has access to the image.</p>
|
|
478
485
|
*/
|
|
479
486
|
imageUrl?: string;
|
|
480
487
|
/**
|
|
481
488
|
* @public
|
|
482
489
|
* <p>A list of buttons that should be displayed on the response card. The
|
|
483
|
-
*
|
|
484
|
-
*
|
|
490
|
+
* arrangement of the buttons is determined by the platform that displays
|
|
491
|
+
* the button.</p>
|
|
485
492
|
*/
|
|
486
493
|
buttons?: Button[];
|
|
487
494
|
}
|
|
@@ -503,9 +510,9 @@ export interface Message {
|
|
|
503
510
|
/**
|
|
504
511
|
* @public
|
|
505
512
|
* <p>A card that is shown to the user by a messaging platform. You define
|
|
506
|
-
*
|
|
513
|
+
* the contents of the card, the card is displayed by the platform. </p>
|
|
507
514
|
* <p>When you use a response card, the response from the user is
|
|
508
|
-
*
|
|
515
|
+
* constrained to the text associated with a button on the card.</p>
|
|
509
516
|
*/
|
|
510
517
|
imageResponseCard?: ImageResponseCard;
|
|
511
518
|
}
|
|
@@ -594,17 +601,17 @@ export interface PutSessionResponse {
|
|
|
594
601
|
messages?: string;
|
|
595
602
|
/**
|
|
596
603
|
* @public
|
|
597
|
-
* <p>
|
|
598
|
-
* bot
|
|
599
|
-
*
|
|
600
|
-
* next action may be.</p>
|
|
604
|
+
* <p>A base-64-encoded gzipped field that represents the current state of
|
|
605
|
+
* the dialog between the user and the bot. Use this to determine the progress
|
|
606
|
+
* of the conversation and what the next action may be.</p>
|
|
601
607
|
*/
|
|
602
608
|
sessionState?: string;
|
|
603
609
|
/**
|
|
604
610
|
* @public
|
|
605
|
-
* <p>
|
|
606
|
-
* and Amazon Lex V2. These are the same as the
|
|
607
|
-
* parameter in the call to the
|
|
611
|
+
* <p>A base-64-encoded gzipped field that provides request-specific information
|
|
612
|
+
* passed between the client application and Amazon Lex V2. These are the same as the
|
|
613
|
+
* <code>requestAttribute</code> parameter in the call to the
|
|
614
|
+
* <code>PutSession</code> operation.</p>
|
|
608
615
|
*/
|
|
609
616
|
requestAttributes?: string;
|
|
610
617
|
/**
|
|
@@ -779,8 +786,7 @@ export interface RecognizeUtteranceRequest {
|
|
|
779
786
|
export interface RecognizeUtteranceResponse {
|
|
780
787
|
/**
|
|
781
788
|
* @public
|
|
782
|
-
* <p>Indicates whether the input mode to the operation was text or
|
|
783
|
-
* speech.
|
|
789
|
+
* <p>Indicates whether the input mode to the operation was text, speech, or from a touch-tone keypad.
|
|
784
790
|
* </p>
|
|
785
791
|
*/
|
|
786
792
|
inputMode?: string;
|
|
@@ -1115,33 +1121,33 @@ export interface DialogAction {
|
|
|
1115
1121
|
/**
|
|
1116
1122
|
* @public
|
|
1117
1123
|
* <p>The next action that the bot should take in its interaction with the
|
|
1118
|
-
* user. The
|
|
1124
|
+
* user. The following values are possible:</p>
|
|
1119
1125
|
* <ul>
|
|
1120
1126
|
* <li>
|
|
1121
1127
|
* <p>
|
|
1122
|
-
* <code>Close</code>
|
|
1128
|
+
* <code>Close</code> – Indicates that there will not be a
|
|
1123
1129
|
* response from the user. For example, the statement "Your order
|
|
1124
1130
|
* has been placed" does not require a response.</p>
|
|
1125
1131
|
* </li>
|
|
1126
1132
|
* <li>
|
|
1127
1133
|
* <p>
|
|
1128
|
-
* <code>ConfirmIntent</code>
|
|
1134
|
+
* <code>ConfirmIntent</code> – The next action is asking the
|
|
1129
1135
|
* user if the intent is complete and ready to be fulfilled. This is
|
|
1130
1136
|
* a yes/no question such as "Place the order?"</p>
|
|
1131
1137
|
* </li>
|
|
1132
1138
|
* <li>
|
|
1133
1139
|
* <p>
|
|
1134
|
-
* <code>Delegate</code>
|
|
1140
|
+
* <code>Delegate</code> – The next action is determined by
|
|
1135
1141
|
* Amazon Lex V2.</p>
|
|
1136
1142
|
* </li>
|
|
1137
1143
|
* <li>
|
|
1138
1144
|
* <p>
|
|
1139
|
-
* <code>ElicitIntent</code>
|
|
1145
|
+
* <code>ElicitIntent</code> – The next action is to elicit an
|
|
1140
1146
|
* intent from the user.</p>
|
|
1141
1147
|
* </li>
|
|
1142
1148
|
* <li>
|
|
1143
1149
|
* <p>
|
|
1144
|
-
* <code>ElicitSlot</code>
|
|
1150
|
+
* <code>ElicitSlot</code> – The next action is to elicit a slot
|
|
1145
1151
|
* value from the user.</p>
|
|
1146
1152
|
* </li>
|
|
1147
1153
|
* </ul>
|
|
@@ -1166,7 +1172,7 @@ export interface DialogAction {
|
|
|
1166
1172
|
* boy"</p>
|
|
1167
1173
|
* </li>
|
|
1168
1174
|
* </ul>
|
|
1169
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/lexv2/latest/dg/
|
|
1175
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/lexv2/latest/dg/spelling-styles.html">
|
|
1170
1176
|
* Using spelling to enter slot values </a>.</p>
|
|
1171
1177
|
*/
|
|
1172
1178
|
slotElicitationStyle?: StyleType;
|
|
@@ -1274,19 +1280,44 @@ export interface Intent {
|
|
|
1274
1280
|
slots?: Record<string, Slot>;
|
|
1275
1281
|
/**
|
|
1276
1282
|
* @public
|
|
1277
|
-
* <p>
|
|
1283
|
+
* <p>Indicates the fulfillment state for the intent. The meanings of each value are as follows:</p>
|
|
1284
|
+
* <ul>
|
|
1285
|
+
* <li>
|
|
1286
|
+
* <p>
|
|
1287
|
+
* <code>Failed</code> – The bot failed to fulfill the intent.</p>
|
|
1288
|
+
* </li>
|
|
1289
|
+
* <li>
|
|
1290
|
+
* <p>
|
|
1291
|
+
* <code>Fulfilled</code> – The bot has completed fulfillment of the intent.</p>
|
|
1292
|
+
* </li>
|
|
1293
|
+
* <li>
|
|
1294
|
+
* <p>
|
|
1295
|
+
* <code>FulfillmentInProgress</code> – The bot is in the middle of fulfilling the intent.</p>
|
|
1296
|
+
* </li>
|
|
1297
|
+
* <li>
|
|
1298
|
+
* <p>
|
|
1299
|
+
* <code>InProgress</code> – The bot is in the middle of eliciting the slot values that are necessary to fulfill the intent.</p>
|
|
1300
|
+
* </li>
|
|
1301
|
+
* <li>
|
|
1302
|
+
* <p>
|
|
1303
|
+
* <code>ReadyForFulfillment</code> – The bot has elicited all the slot values for the intent and is ready to fulfill the intent.</p>
|
|
1304
|
+
* </li>
|
|
1305
|
+
* <li>
|
|
1306
|
+
* <p>
|
|
1307
|
+
* <code>Waiting</code> – The bot is waiting for a response from the user (limited to streaming conversations).</p>
|
|
1308
|
+
* </li>
|
|
1309
|
+
* </ul>
|
|
1278
1310
|
*/
|
|
1279
1311
|
state?: IntentState;
|
|
1280
1312
|
/**
|
|
1281
1313
|
* @public
|
|
1282
|
-
* <p>
|
|
1283
|
-
* been confirmed.</p>
|
|
1314
|
+
* <p>Indicates whether the intent has been <code>Confirmed</code>, <code>Denied</code>, or <code>None</code> if the confirmation stage has not yet been reached.</p>
|
|
1284
1315
|
*/
|
|
1285
1316
|
confirmationState?: ConfirmationState;
|
|
1286
1317
|
}
|
|
1287
1318
|
/**
|
|
1288
1319
|
* @public
|
|
1289
|
-
* <p>An intent that Amazon Lex V2 determined might satisfy the user's utterance.
|
|
1320
|
+
* <p>An object containing information about an intent that Amazon Lex V2 determined might satisfy the user's utterance.
|
|
1290
1321
|
* The intents are ordered by the confidence score. </p>
|
|
1291
1322
|
*/
|
|
1292
1323
|
export interface Interpretation {
|
|
@@ -1314,6 +1345,11 @@ export interface Interpretation {
|
|
|
1314
1345
|
* intents are ordered by the confidence score.</p>
|
|
1315
1346
|
*/
|
|
1316
1347
|
intent?: Intent;
|
|
1348
|
+
/**
|
|
1349
|
+
* @public
|
|
1350
|
+
* <p>Specifies the service that interpreted the input.</p>
|
|
1351
|
+
*/
|
|
1352
|
+
interpretationSource?: InterpretationSource;
|
|
1317
1353
|
}
|
|
1318
1354
|
/**
|
|
1319
1355
|
* @public
|
|
@@ -1784,8 +1820,7 @@ export interface GetSessionResponse {
|
|
|
1784
1820
|
export interface IntentResultEvent {
|
|
1785
1821
|
/**
|
|
1786
1822
|
* @public
|
|
1787
|
-
* <p>Indicates whether the input to the operation was text or
|
|
1788
|
-
* speech.</p>
|
|
1823
|
+
* <p>Indicates whether the input to the operation was text, speech, or from a touch-tone keypad.</p>
|
|
1789
1824
|
*/
|
|
1790
1825
|
inputMode?: InputMode;
|
|
1791
1826
|
/**
|
|
@@ -106,6 +106,12 @@ export declare const IntentState: {
|
|
|
106
106
|
readonly WAITING: "Waiting";
|
|
107
107
|
};
|
|
108
108
|
export type IntentState = (typeof IntentState)[keyof typeof IntentState];
|
|
109
|
+
export declare const InterpretationSource: {
|
|
110
|
+
readonly BEDROCK: "Bedrock";
|
|
111
|
+
readonly LEX: "Lex";
|
|
112
|
+
};
|
|
113
|
+
export type InterpretationSource =
|
|
114
|
+
(typeof InterpretationSource)[keyof typeof InterpretationSource];
|
|
109
115
|
export interface ConfidenceScore {
|
|
110
116
|
score?: number;
|
|
111
117
|
}
|
|
@@ -303,6 +309,7 @@ export interface Interpretation {
|
|
|
303
309
|
nluConfidence?: ConfidenceScore;
|
|
304
310
|
sentimentResponse?: SentimentResponse;
|
|
305
311
|
intent?: Intent;
|
|
312
|
+
interpretationSource?: InterpretationSource;
|
|
306
313
|
}
|
|
307
314
|
export interface SessionState {
|
|
308
315
|
dialogAction?: DialogAction;
|
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.458.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",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.458.0",
|
|
25
25
|
"@aws-sdk/core": "3.451.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.458.0",
|
|
27
27
|
"@aws-sdk/eventstream-handler-node": "3.451.0",
|
|
28
28
|
"@aws-sdk/middleware-eventstream": "3.451.0",
|
|
29
29
|
"@aws-sdk/middleware-host-header": "3.451.0",
|