@aws-sdk/client-lex-models-v2 3.1154.0 → 3.1155.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/dist-cjs/index.js +4 -3
- package/dist-es/models/enums.js +1 -0
- package/dist-es/schemas/schemas_0.js +2 -2
- package/dist-types/LexModelsV2Client.d.ts +2 -1
- package/dist-types/commands/CreateBotLocaleCommand.d.ts +2 -2
- package/dist-types/commands/CreateSlotCommand.d.ts +4 -4
- package/dist-types/commands/DescribeBotLocaleCommand.d.ts +1 -1
- package/dist-types/commands/DescribeSlotCommand.d.ts +2 -2
- package/dist-types/commands/UpdateBotLocaleCommand.d.ts +2 -2
- package/dist-types/commands/UpdateSlotCommand.d.ts +4 -4
- package/dist-types/models/enums.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +8 -6
- package/dist-types/models/models_1.d.ts +6 -3
- package/dist-types/ts3.4/models/enums.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +2 -2
- package/dist-types/ts3.4/models/models_1.d.ts +1 -1
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -69,7 +69,7 @@ const commonParams = {
|
|
|
69
69
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
70
70
|
};
|
|
71
71
|
|
|
72
|
-
var version = "3.
|
|
72
|
+
var version = "3.1154.0";
|
|
73
73
|
var packageInfo = {
|
|
74
74
|
version: version};
|
|
75
75
|
|
|
@@ -2783,7 +2783,7 @@ var IntentClosingSetting$ = [3, n0, _ICS,
|
|
|
2783
2783
|
var IntentConfirmationSetting$ = [3, n0, _ICSn,
|
|
2784
2784
|
0,
|
|
2785
2785
|
[_pS, _dR, _ac, _cRo, _cNS, _cC, _dNS, _dCe, _fRa, _fNS, _fC, _cH, _eCH],
|
|
2786
|
-
[() => PromptSpecification$, () => ResponseSpecification$, 2, () => ResponseSpecification$, () => DialogState$, () => ConditionalSpecification$, () => DialogState$, () => ConditionalSpecification$, () => ResponseSpecification$, () => DialogState$, () => ConditionalSpecification$, () => DialogCodeHookInvocationSetting$, () => ElicitationCodeHookInvocationSetting$]
|
|
2786
|
+
[() => PromptSpecification$, () => ResponseSpecification$, 2, () => ResponseSpecification$, () => DialogState$, () => ConditionalSpecification$, () => DialogState$, () => ConditionalSpecification$, () => ResponseSpecification$, () => DialogState$, () => ConditionalSpecification$, () => DialogCodeHookInvocationSetting$, () => ElicitationCodeHookInvocationSetting$]
|
|
2787
2787
|
];
|
|
2788
2788
|
var IntentDisambiguationSettings$ = [3, n0, _IDS,
|
|
2789
2789
|
0,
|
|
@@ -3928,7 +3928,7 @@ var VoiceSettings$ = [3, n0, _VS,
|
|
|
3928
3928
|
var WaitAndContinueSpecification$ = [3, n0, _WACS,
|
|
3929
3929
|
0,
|
|
3930
3930
|
[_wR, _cRon, _sWR, _ac],
|
|
3931
|
-
[() => ResponseSpecification$, () => ResponseSpecification$, () => StillWaitingResponseSpecification$, 2]
|
|
3931
|
+
[() => ResponseSpecification$, () => ResponseSpecification$, () => StillWaitingResponseSpecification$, 2]
|
|
3932
3932
|
];
|
|
3933
3933
|
var __Unit = "unit";
|
|
3934
3934
|
var ActiveContextList = [1, n0, _ACL,
|
|
@@ -5882,6 +5882,7 @@ const AnalyticsUtteranceSortByName = {
|
|
|
5882
5882
|
UtteranceTimestamp: "UtteranceTimestamp",
|
|
5883
5883
|
};
|
|
5884
5884
|
const AssistedNluMode = {
|
|
5885
|
+
DialogManager: "DialogManager",
|
|
5885
5886
|
Fallback: "Fallback",
|
|
5886
5887
|
Primary: "Primary",
|
|
5887
5888
|
};
|
package/dist-es/models/enums.js
CHANGED
|
@@ -2551,7 +2551,7 @@ export var IntentClosingSetting$ = [3, n0, _ICS,
|
|
|
2551
2551
|
export var IntentConfirmationSetting$ = [3, n0, _ICSn,
|
|
2552
2552
|
0,
|
|
2553
2553
|
[_pS, _dR, _ac, _cRo, _cNS, _cC, _dNS, _dCe, _fRa, _fNS, _fC, _cH, _eCH],
|
|
2554
|
-
[() => PromptSpecification$, () => ResponseSpecification$, 2, () => ResponseSpecification$, () => DialogState$, () => ConditionalSpecification$, () => DialogState$, () => ConditionalSpecification$, () => ResponseSpecification$, () => DialogState$, () => ConditionalSpecification$, () => DialogCodeHookInvocationSetting$, () => ElicitationCodeHookInvocationSetting$]
|
|
2554
|
+
[() => PromptSpecification$, () => ResponseSpecification$, 2, () => ResponseSpecification$, () => DialogState$, () => ConditionalSpecification$, () => DialogState$, () => ConditionalSpecification$, () => ResponseSpecification$, () => DialogState$, () => ConditionalSpecification$, () => DialogCodeHookInvocationSetting$, () => ElicitationCodeHookInvocationSetting$]
|
|
2555
2555
|
];
|
|
2556
2556
|
export var IntentDisambiguationSettings$ = [3, n0, _IDS,
|
|
2557
2557
|
0,
|
|
@@ -3696,7 +3696,7 @@ export var VoiceSettings$ = [3, n0, _VS,
|
|
|
3696
3696
|
export var WaitAndContinueSpecification$ = [3, n0, _WACS,
|
|
3697
3697
|
0,
|
|
3698
3698
|
[_wR, _cRon, _sWR, _ac],
|
|
3699
|
-
[() => ResponseSpecification$, () => ResponseSpecification$, () => StillWaitingResponseSpecification$, 2]
|
|
3699
|
+
[() => ResponseSpecification$, () => ResponseSpecification$, () => StillWaitingResponseSpecification$, 2]
|
|
3700
3700
|
];
|
|
3701
3701
|
var __Unit = "unit";
|
|
3702
3702
|
var ActiveContextList = [1, n0, _ACL,
|
|
@@ -235,7 +235,8 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
235
235
|
maxAttempts?: number | __Provider<number>;
|
|
236
236
|
/**
|
|
237
237
|
* Specifies which retry algorithm to use.
|
|
238
|
-
*
|
|
238
|
+
* Accepted values are "standard" and "adaptive".
|
|
239
|
+
* @see https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html
|
|
239
240
|
*
|
|
240
241
|
*/
|
|
241
242
|
retryMode?: string | __Provider<string>;
|
|
@@ -84,7 +84,7 @@ declare const CreateBotLocaleCommand_base: {
|
|
|
84
84
|
* },
|
|
85
85
|
* nluImprovement: { // NluImprovementSpecification
|
|
86
86
|
* enabled: true || false, // required
|
|
87
|
-
* assistedNluMode: "Primary" || "Fallback",
|
|
87
|
+
* assistedNluMode: "Primary" || "Fallback" || "DialogManager",
|
|
88
88
|
* intentDisambiguationSettings: { // IntentDisambiguationSettings
|
|
89
89
|
* enabled: true || false, // required
|
|
90
90
|
* maxDisambiguationIntents: Number("int"),
|
|
@@ -177,7 +177,7 @@ declare const CreateBotLocaleCommand_base: {
|
|
|
177
177
|
* // },
|
|
178
178
|
* // nluImprovement: { // NluImprovementSpecification
|
|
179
179
|
* // enabled: true || false, // required
|
|
180
|
-
* // assistedNluMode: "Primary" || "Fallback",
|
|
180
|
+
* // assistedNluMode: "Primary" || "Fallback" || "DialogManager",
|
|
181
181
|
* // intentDisambiguationSettings: { // IntentDisambiguationSettings
|
|
182
182
|
* // enabled: true || false, // required
|
|
183
183
|
* // maxDisambiguationIntents: Number("int"),
|
|
@@ -425,8 +425,8 @@ declare const CreateSlotCommand_base: {
|
|
|
425
425
|
* },
|
|
426
426
|
* ],
|
|
427
427
|
* waitAndContinueSpecification: {
|
|
428
|
-
* waitingResponse: "<ResponseSpecification>",
|
|
429
|
-
* continueResponse: "<ResponseSpecification>",
|
|
428
|
+
* waitingResponse: "<ResponseSpecification>",
|
|
429
|
+
* continueResponse: "<ResponseSpecification>",
|
|
430
430
|
* stillWaitingResponse: {
|
|
431
431
|
* messageGroups: "<MessageGroupsList>", // required
|
|
432
432
|
* frequencyInSeconds: Number("int"), // required
|
|
@@ -832,8 +832,8 @@ declare const CreateSlotCommand_base: {
|
|
|
832
832
|
* // },
|
|
833
833
|
* // ],
|
|
834
834
|
* // waitAndContinueSpecification: {
|
|
835
|
-
* // waitingResponse: "<ResponseSpecification>",
|
|
836
|
-
* // continueResponse: "<ResponseSpecification>",
|
|
835
|
+
* // waitingResponse: "<ResponseSpecification>",
|
|
836
|
+
* // continueResponse: "<ResponseSpecification>",
|
|
837
837
|
* // stillWaitingResponse: {
|
|
838
838
|
* // messageGroups: "<MessageGroupsList>", // required
|
|
839
839
|
* // frequencyInSeconds: Number("int"), // required
|
|
@@ -107,7 +107,7 @@ declare const DescribeBotLocaleCommand_base: {
|
|
|
107
107
|
* // },
|
|
108
108
|
* // nluImprovement: { // NluImprovementSpecification
|
|
109
109
|
* // enabled: true || false, // required
|
|
110
|
-
* // assistedNluMode: "Primary" || "Fallback",
|
|
110
|
+
* // assistedNluMode: "Primary" || "Fallback" || "DialogManager",
|
|
111
111
|
* // intentDisambiguationSettings: { // IntentDisambiguationSettings
|
|
112
112
|
* // enabled: true || false, // required
|
|
113
113
|
* // maxDisambiguationIntents: Number("int"),
|
|
@@ -434,8 +434,8 @@ declare const DescribeSlotCommand_base: {
|
|
|
434
434
|
* // },
|
|
435
435
|
* // ],
|
|
436
436
|
* // waitAndContinueSpecification: {
|
|
437
|
-
* // waitingResponse: "<ResponseSpecification>",
|
|
438
|
-
* // continueResponse: "<ResponseSpecification>",
|
|
437
|
+
* // waitingResponse: "<ResponseSpecification>",
|
|
438
|
+
* // continueResponse: "<ResponseSpecification>",
|
|
439
439
|
* // stillWaitingResponse: {
|
|
440
440
|
* // messageGroups: "<MessageGroupsList>", // required
|
|
441
441
|
* // frequencyInSeconds: Number("int"), // required
|
|
@@ -81,7 +81,7 @@ declare const UpdateBotLocaleCommand_base: {
|
|
|
81
81
|
* },
|
|
82
82
|
* nluImprovement: { // NluImprovementSpecification
|
|
83
83
|
* enabled: true || false, // required
|
|
84
|
-
* assistedNluMode: "Primary" || "Fallback",
|
|
84
|
+
* assistedNluMode: "Primary" || "Fallback" || "DialogManager",
|
|
85
85
|
* intentDisambiguationSettings: { // IntentDisambiguationSettings
|
|
86
86
|
* enabled: true || false, // required
|
|
87
87
|
* maxDisambiguationIntents: Number("int"),
|
|
@@ -181,7 +181,7 @@ declare const UpdateBotLocaleCommand_base: {
|
|
|
181
181
|
* // },
|
|
182
182
|
* // nluImprovement: { // NluImprovementSpecification
|
|
183
183
|
* // enabled: true || false, // required
|
|
184
|
-
* // assistedNluMode: "Primary" || "Fallback",
|
|
184
|
+
* // assistedNluMode: "Primary" || "Fallback" || "DialogManager",
|
|
185
185
|
* // intentDisambiguationSettings: { // IntentDisambiguationSettings
|
|
186
186
|
* // enabled: true || false, // required
|
|
187
187
|
* // maxDisambiguationIntents: Number("int"),
|
|
@@ -422,8 +422,8 @@ declare const UpdateSlotCommand_base: {
|
|
|
422
422
|
* },
|
|
423
423
|
* ],
|
|
424
424
|
* waitAndContinueSpecification: {
|
|
425
|
-
* waitingResponse: "<ResponseSpecification>",
|
|
426
|
-
* continueResponse: "<ResponseSpecification>",
|
|
425
|
+
* waitingResponse: "<ResponseSpecification>",
|
|
426
|
+
* continueResponse: "<ResponseSpecification>",
|
|
427
427
|
* stillWaitingResponse: {
|
|
428
428
|
* messageGroups: "<MessageGroupsList>", // required
|
|
429
429
|
* frequencyInSeconds: Number("int"), // required
|
|
@@ -830,8 +830,8 @@ declare const UpdateSlotCommand_base: {
|
|
|
830
830
|
* // },
|
|
831
831
|
* // ],
|
|
832
832
|
* // waitAndContinueSpecification: {
|
|
833
|
-
* // waitingResponse: "<ResponseSpecification>",
|
|
834
|
-
* // continueResponse: "<ResponseSpecification>",
|
|
833
|
+
* // waitingResponse: "<ResponseSpecification>",
|
|
834
|
+
* // continueResponse: "<ResponseSpecification>",
|
|
835
835
|
* // stillWaitingResponse: {
|
|
836
836
|
* // messageGroups: "<MessageGroupsList>", // required
|
|
837
837
|
* // frequencyInSeconds: Number("int"), // required
|
|
@@ -397,6 +397,7 @@ export type AnalyticsUtteranceSortByName = (typeof AnalyticsUtteranceSortByName)
|
|
|
397
397
|
* @enum
|
|
398
398
|
*/
|
|
399
399
|
export declare const AssistedNluMode: {
|
|
400
|
+
readonly DialogManager: "DialogManager";
|
|
400
401
|
readonly Fallback: "Fallback";
|
|
401
402
|
readonly Primary: "Primary";
|
|
402
403
|
};
|
|
@@ -4355,7 +4355,7 @@ export interface NluImprovementSpecification {
|
|
|
4355
4355
|
*/
|
|
4356
4356
|
enabled: boolean | undefined;
|
|
4357
4357
|
/**
|
|
4358
|
-
* <p>Specifies the mode for Assisted NLU operation. Use <code>Primary</code> to make Assisted NLU the primary intent recognition method,
|
|
4358
|
+
* <p>Specifies the mode for Assisted NLU operation. Use <code>Primary</code> to make Assisted NLU the primary intent recognition method, <code>Fallback</code> to use it only when standard NLU confidence is low, or <code>DialogManager</code> to use a large language model to manage the conversation, including intent recognition, slot elicitation, and confirmation.</p>
|
|
4359
4359
|
* @public
|
|
4360
4360
|
*/
|
|
4361
4361
|
assistedNluMode?: AssistedNluMode | undefined;
|
|
@@ -5473,16 +5473,18 @@ export interface StillWaitingResponseSpecification {
|
|
|
5473
5473
|
export interface WaitAndContinueSpecification {
|
|
5474
5474
|
/**
|
|
5475
5475
|
* <p>The response that Amazon Lex sends to indicate that the bot is waiting
|
|
5476
|
-
* for the conversation to continue
|
|
5476
|
+
* for the conversation to continue. Required unless the bot locale's
|
|
5477
|
+
* <code>assistedNluMode</code> is <code>DialogManager</code>.</p>
|
|
5477
5478
|
* @public
|
|
5478
5479
|
*/
|
|
5479
|
-
waitingResponse
|
|
5480
|
+
waitingResponse?: ResponseSpecification | undefined;
|
|
5480
5481
|
/**
|
|
5481
5482
|
* <p>The response that Amazon Lex sends to indicate that the bot is ready to
|
|
5482
|
-
* continue the conversation
|
|
5483
|
+
* continue the conversation. Required unless the bot locale's
|
|
5484
|
+
* <code>assistedNluMode</code> is <code>DialogManager</code>.</p>
|
|
5483
5485
|
* @public
|
|
5484
5486
|
*/
|
|
5485
|
-
continueResponse
|
|
5487
|
+
continueResponse?: ResponseSpecification | undefined;
|
|
5486
5488
|
/**
|
|
5487
5489
|
* <p>A response that Amazon Lex sends periodically to the user to indicate
|
|
5488
5490
|
* that the bot is still waiting for input from the user.</p>
|
|
@@ -5575,7 +5577,7 @@ export interface SubSlotSetting {
|
|
|
5575
5577
|
*/
|
|
5576
5578
|
export interface SlotResolutionSetting {
|
|
5577
5579
|
/**
|
|
5578
|
-
* <p>Specifies whether assisted slot resolution is turned on for the slot or not. If the value is <code>EnhancedFallback</code>, assisted slot resolution is activated when Amazon Lex defaults to the <code>AMAZON.FallbackIntent</code>. If the value is <code>Default</code>, assisted slot resolution is turned off.</p>
|
|
5580
|
+
* <p>Specifies whether assisted slot resolution is turned on for the slot or not. If the value is <code>EnhancedFallback</code>, assisted slot resolution is activated when Amazon Lex V2 defaults to the <code>AMAZON.FallbackIntent</code>. If the value is <code>Default</code>, assisted slot resolution is turned off.</p>
|
|
5579
5581
|
* @public
|
|
5580
5582
|
*/
|
|
5581
5583
|
slotResolutionStrategy: SlotResolutionStrategy | undefined;
|
|
@@ -5900,9 +5900,12 @@ export interface IntentConfirmationSetting {
|
|
|
5900
5900
|
* order is correct before placing it. For other intents, such as intents
|
|
5901
5901
|
* that simply respond to user questions, you might not need to ask the
|
|
5902
5902
|
* user for confirmation before providing the information. </p>
|
|
5903
|
+
* <p>Required unless the bot locale's <code>assistedNluMode</code> is
|
|
5904
|
+
* <code>DialogManager</code>, in which case Amazon Lex generates the
|
|
5905
|
+
* confirmation prompt.</p>
|
|
5903
5906
|
* @public
|
|
5904
5907
|
*/
|
|
5905
|
-
promptSpecification
|
|
5908
|
+
promptSpecification?: PromptSpecification | undefined;
|
|
5906
5909
|
/**
|
|
5907
5910
|
* <p>When the user answers "no" to the question defined in
|
|
5908
5911
|
* <code>promptSpecification</code>, Amazon Lex responds with this response
|
|
@@ -6525,7 +6528,7 @@ export interface CreateIntentRequest {
|
|
|
6525
6528
|
initialResponseSetting?: InitialResponseSetting | undefined;
|
|
6526
6529
|
/**
|
|
6527
6530
|
* <p>Specifies the configuration of the built-in <code>Amazon.QnAIntent</code>. The <code>AMAZON.QnAIntent</code> intent is called when
|
|
6528
|
-
* Amazon Lex can't determine another intent to invoke. If you specify this field, you can't specify the <code>kendraConfiguration</code> field.</p>
|
|
6531
|
+
* Amazon Lex V2 can't determine another intent to invoke. If you specify this field, you can't specify the <code>kendraConfiguration</code> field.</p>
|
|
6529
6532
|
* @public
|
|
6530
6533
|
*/
|
|
6531
6534
|
qnAIntentConfiguration?: QnAIntentConfiguration | undefined;
|
|
@@ -6875,7 +6878,7 @@ export interface UpdateIntentRequest {
|
|
|
6875
6878
|
initialResponseSetting?: InitialResponseSetting | undefined;
|
|
6876
6879
|
/**
|
|
6877
6880
|
* <p>Specifies the configuration of the built-in <code>Amazon.QnAIntent</code>. The <code>AMAZON.QnAIntent</code> intent is called when
|
|
6878
|
-
* Amazon Lex can't determine another intent to invoke. If you specify this field, you can't specify the <code>kendraConfiguration</code> field.</p>
|
|
6881
|
+
* Amazon Lex V2 can't determine another intent to invoke. If you specify this field, you can't specify the <code>kendraConfiguration</code> field.</p>
|
|
6879
6882
|
* @public
|
|
6880
6883
|
*/
|
|
6881
6884
|
qnAIntentConfiguration?: QnAIntentConfiguration | undefined;
|
|
@@ -211,6 +211,7 @@ export declare const AnalyticsUtteranceSortByName: {
|
|
|
211
211
|
export type AnalyticsUtteranceSortByName =
|
|
212
212
|
(typeof AnalyticsUtteranceSortByName)[keyof typeof AnalyticsUtteranceSortByName];
|
|
213
213
|
export declare const AssistedNluMode: {
|
|
214
|
+
readonly DialogManager: "DialogManager";
|
|
214
215
|
readonly Fallback: "Fallback";
|
|
215
216
|
readonly Primary: "Primary";
|
|
216
217
|
};
|
|
@@ -1020,8 +1020,8 @@ export interface StillWaitingResponseSpecification {
|
|
|
1020
1020
|
allowInterrupt?: boolean | undefined;
|
|
1021
1021
|
}
|
|
1022
1022
|
export interface WaitAndContinueSpecification {
|
|
1023
|
-
waitingResponse
|
|
1024
|
-
continueResponse
|
|
1023
|
+
waitingResponse?: ResponseSpecification | undefined;
|
|
1024
|
+
continueResponse?: ResponseSpecification | undefined;
|
|
1025
1025
|
stillWaitingResponse?: StillWaitingResponseSpecification | undefined;
|
|
1026
1026
|
active?: boolean | undefined;
|
|
1027
1027
|
}
|
|
@@ -1284,7 +1284,7 @@ export interface SlotValueElicitationSetting {
|
|
|
1284
1284
|
slotResolutionSetting?: SlotResolutionSetting | undefined;
|
|
1285
1285
|
}
|
|
1286
1286
|
export interface IntentConfirmationSetting {
|
|
1287
|
-
promptSpecification
|
|
1287
|
+
promptSpecification?: PromptSpecification | undefined;
|
|
1288
1288
|
declinationResponse?: ResponseSpecification | undefined;
|
|
1289
1289
|
active?: boolean | undefined;
|
|
1290
1290
|
confirmationResponse?: ResponseSpecification | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-lex-models-v2",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1155.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Lex Models V2 Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-lex-models-v2",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@aws-sdk/core": "^3.978.
|
|
50
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
51
|
-
"@aws-sdk/types": "^3.
|
|
52
|
-
"@smithy/core": "^3.36.
|
|
49
|
+
"@aws-sdk/core": "^3.978.5",
|
|
50
|
+
"@aws-sdk/credential-provider-node": "^3.972.88",
|
|
51
|
+
"@aws-sdk/types": "^3.975.0",
|
|
52
|
+
"@smithy/core": "^3.36.1",
|
|
53
53
|
"@smithy/fetch-http-handler": "^5.8.0",
|
|
54
54
|
"@smithy/node-http-handler": "^4.12.1",
|
|
55
55
|
"@smithy/types": "^4.19.0",
|