@aws-sdk/client-lex-models-v2 3.932.0 → 3.933.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 CHANGED
@@ -277,6 +277,10 @@ const AnalyticsUtteranceMetricName = {
277
277
  const AnalyticsUtteranceSortByName = {
278
278
  UtteranceTimestamp: "UtteranceTimestamp",
279
279
  };
280
+ const AssistedNluMode = {
281
+ Fallback: "Fallback",
282
+ Primary: "Primary",
283
+ };
280
284
  const AssociatedTranscriptFilterName = {
281
285
  IntentId: "IntentId",
282
286
  SlotTypeId: "SlotTypeId",
@@ -1429,6 +1433,7 @@ const _aLRDT = "aggregationLastRefreshedDateTime";
1429
1433
  const _aLS = "audioLogSettings";
1430
1434
  const _aM = "apiMode";
1431
1435
  const _aMV = "allowMultipleValues";
1436
+ const _aNM = "assistedNluMode";
1432
1437
  const _aO = "actualOutput";
1433
1438
  const _aP = "agentPrompt";
1434
1439
  const _aR = "attributeResults";
@@ -4002,7 +4007,7 @@ var MessageGroup = [
4002
4007
  ];
4003
4008
  var MultipleValuesSetting = [3, n0, _MVS, 0, [_aMV], [2]];
4004
4009
  var NewCustomVocabularyItem = [3, n0, _NCVI, 0, [_ph, _w, _dA], [0, 1, 0]];
4005
- var NluImprovementSpecification = [3, n0, _NIS, 0, [_e], [2]];
4010
+ var NluImprovementSpecification = [3, n0, _NIS, 0, [_e, _aNM], [2, 0]];
4006
4011
  var ObfuscationSetting = [3, n0, _OS, 0, [_oST], [0]];
4007
4012
  var OpensearchConfiguration = [
4008
4013
  3,
@@ -8167,6 +8172,7 @@ exports.AnalyticsUtteranceField = AnalyticsUtteranceField;
8167
8172
  exports.AnalyticsUtteranceFilterName = AnalyticsUtteranceFilterName;
8168
8173
  exports.AnalyticsUtteranceMetricName = AnalyticsUtteranceMetricName;
8169
8174
  exports.AnalyticsUtteranceSortByName = AnalyticsUtteranceSortByName;
8175
+ exports.AssistedNluMode = AssistedNluMode;
8170
8176
  exports.AssociatedTranscriptFilterName = AssociatedTranscriptFilterName;
8171
8177
  exports.AudioRecognitionStrategy = AudioRecognitionStrategy;
8172
8178
  exports.BatchCreateCustomVocabularyItemCommand = BatchCreateCustomVocabularyItemCommand;
@@ -158,6 +158,10 @@ export const AnalyticsUtteranceMetricName = {
158
158
  export const AnalyticsUtteranceSortByName = {
159
159
  UtteranceTimestamp: "UtteranceTimestamp",
160
160
  };
161
+ export const AssistedNluMode = {
162
+ Fallback: "Fallback",
163
+ Primary: "Primary",
164
+ };
161
165
  export const AssociatedTranscriptFilterName = {
162
166
  IntentId: "IntentId",
163
167
  SlotTypeId: "SlotTypeId",
@@ -701,6 +701,7 @@ const _aLRDT = "aggregationLastRefreshedDateTime";
701
701
  const _aLS = "audioLogSettings";
702
702
  const _aM = "apiMode";
703
703
  const _aMV = "allowMultipleValues";
704
+ const _aNM = "assistedNluMode";
704
705
  const _aO = "actualOutput";
705
706
  const _aP = "agentPrompt";
706
707
  const _aR = "attributeResults";
@@ -3277,7 +3278,7 @@ export var MessageGroup = [
3277
3278
  ];
3278
3279
  export var MultipleValuesSetting = [3, n0, _MVS, 0, [_aMV], [2]];
3279
3280
  export var NewCustomVocabularyItem = [3, n0, _NCVI, 0, [_ph, _w, _dA], [0, 1, 0]];
3280
- export var NluImprovementSpecification = [3, n0, _NIS, 0, [_e], [2]];
3281
+ export var NluImprovementSpecification = [3, n0, _NIS, 0, [_e, _aNM], [2, 0]];
3281
3282
  export var ObfuscationSetting = [3, n0, _OS, 0, [_oST], [0]];
3282
3283
  export var OpensearchConfiguration = [
3283
3284
  3,
@@ -65,6 +65,7 @@ declare const CreateBotLocaleCommand_base: {
65
65
  * },
66
66
  * nluImprovement: { // NluImprovementSpecification
67
67
  * enabled: true || false, // required
68
+ * assistedNluMode: "Primary" || "Fallback",
68
69
  * },
69
70
  * },
70
71
  * buildtimeSettings: { // BuildtimeSettings
@@ -126,6 +127,7 @@ declare const CreateBotLocaleCommand_base: {
126
127
  * // },
127
128
  * // nluImprovement: { // NluImprovementSpecification
128
129
  * // enabled: true || false, // required
130
+ * // assistedNluMode: "Primary" || "Fallback",
129
131
  * // },
130
132
  * // },
131
133
  * // buildtimeSettings: { // BuildtimeSettings
@@ -1,7 +1,8 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client";
4
- import { DescribeBotRequest, DescribeBotResponse } from "../models/models_0";
4
+ import { DescribeBotRequest } from "../models/models_0";
5
+ import { DescribeBotResponse } from "../models/models_1";
5
6
  /**
6
7
  * @public
7
8
  */
@@ -88,6 +88,7 @@ declare const DescribeBotLocaleCommand_base: {
88
88
  * // },
89
89
  * // nluImprovement: { // NluImprovementSpecification
90
90
  * // enabled: true || false, // required
91
+ * // assistedNluMode: "Primary" || "Fallback",
91
92
  * // },
92
93
  * // },
93
94
  * // buildtimeSettings: { // BuildtimeSettings
@@ -62,6 +62,7 @@ declare const UpdateBotLocaleCommand_base: {
62
62
  * },
63
63
  * nluImprovement: { // NluImprovementSpecification
64
64
  * enabled: true || false, // required
65
+ * assistedNluMode: "Primary" || "Fallback",
65
66
  * },
66
67
  * },
67
68
  * buildtimeSettings: { // BuildtimeSettings
@@ -130,6 +131,7 @@ declare const UpdateBotLocaleCommand_base: {
130
131
  * // },
131
132
  * // nluImprovement: { // NluImprovementSpecification
132
133
  * // enabled: true || false, // required
134
+ * // assistedNluMode: "Primary" || "Fallback",
133
135
  * // },
134
136
  * // },
135
137
  * // buildtimeSettings: { // BuildtimeSettings
@@ -2123,6 +2123,18 @@ export declare const AnalyticsUtteranceSortByName: {
2123
2123
  * @public
2124
2124
  */
2125
2125
  export type AnalyticsUtteranceSortByName = (typeof AnalyticsUtteranceSortByName)[keyof typeof AnalyticsUtteranceSortByName];
2126
+ /**
2127
+ * @public
2128
+ * @enum
2129
+ */
2130
+ export declare const AssistedNluMode: {
2131
+ readonly Fallback: "Fallback";
2132
+ readonly Primary: "Primary";
2133
+ };
2134
+ /**
2135
+ * @public
2136
+ */
2137
+ export type AssistedNluMode = (typeof AssistedNluMode)[keyof typeof AssistedNluMode];
2126
2138
  /**
2127
2139
  * <p>The object containing information that associates the recommended
2128
2140
  * intent/slot type with a conversation.</p>
@@ -4926,15 +4938,20 @@ export interface CreateBotAliasResponse {
4926
4938
  tags?: Record<string, string> | undefined;
4927
4939
  }
4928
4940
  /**
4929
- * <p>Specifies whether the assisted nlu feature is turned on or off.</p>
4941
+ * <p>Configures the Assisted Natural Language Understanding (NLU) feature for your bot. This specification determines whether enhanced intent recognition and utterance understanding capabilities are active.</p>
4930
4942
  * @public
4931
4943
  */
4932
4944
  export interface NluImprovementSpecification {
4933
4945
  /**
4934
- * <p>Specifies whether the assisted nlu feature is enabled.</p>
4946
+ * <p>Determines whether the Assisted NLU feature is enabled for the bot. When set to <code>true</code>, Amazon Lex uses advanced models to improve intent recognition and slot resolution, with the default being <code>false</code>.</p>
4935
4947
  * @public
4936
4948
  */
4937
4949
  enabled: boolean | undefined;
4950
+ /**
4951
+ * <p>Specifies the mode for Assisted NLU operation. Use <code>Primary</code> to make Assisted NLU the primary intent recognition method, or <code>Fallback</code> to use it only when standard NLU confidence is low.</p>
4952
+ * @public
4953
+ */
4954
+ assistedNluMode?: AssistedNluMode | undefined;
4938
4955
  }
4939
4956
  /**
4940
4957
  * <p>Contains specifications for the assisted slot resolution feature.</p>
@@ -4963,7 +4980,7 @@ export interface RuntimeSettings {
4963
4980
  */
4964
4981
  slotResolutionImprovement?: SlotResolutionImprovementSpecification | undefined;
4965
4982
  /**
4966
- * <p>An object containing specifications for the assisted nlu feature.</p>
4983
+ * <p>An object containing specifications for the Assisted NLU feature within the bot's runtime settings. These settings determine how the bot processes and interprets user utterances during conversations.</p>
4967
4984
  * @public
4968
4985
  */
4969
4986
  nluImprovement?: NluImprovementSpecification | undefined;
@@ -7230,80 +7247,3 @@ export interface DescribeBotRequest {
7230
7247
  */
7231
7248
  botId: string | undefined;
7232
7249
  }
7233
- /**
7234
- * @public
7235
- */
7236
- export interface DescribeBotResponse {
7237
- /**
7238
- * <p>The unique identifier of the bot.</p>
7239
- * @public
7240
- */
7241
- botId?: string | undefined;
7242
- /**
7243
- * <p>The name of the bot.</p>
7244
- * @public
7245
- */
7246
- botName?: string | undefined;
7247
- /**
7248
- * <p>The description of the bot. </p>
7249
- * @public
7250
- */
7251
- description?: string | undefined;
7252
- /**
7253
- * <p>The Amazon Resource Name (ARN) of an IAM role that has permission to
7254
- * access the bot.</p>
7255
- * @public
7256
- */
7257
- roleArn?: string | undefined;
7258
- /**
7259
- * <p>Settings for managing data privacy of the bot and its conversations
7260
- * with users.</p>
7261
- * @public
7262
- */
7263
- dataPrivacy?: DataPrivacy | undefined;
7264
- /**
7265
- * <p>The maximum time in seconds that Amazon Lex retains the data gathered in
7266
- * a conversation.</p>
7267
- * @public
7268
- */
7269
- idleSessionTTLInSeconds?: number | undefined;
7270
- /**
7271
- * <p>The current status of the bot. When the status is
7272
- * <code>Available</code> the bot is ready to be used in conversations
7273
- * with users.</p>
7274
- * @public
7275
- */
7276
- botStatus?: BotStatus | undefined;
7277
- /**
7278
- * <p>A timestamp of the date and time that the bot was created.</p>
7279
- * @public
7280
- */
7281
- creationDateTime?: Date | undefined;
7282
- /**
7283
- * <p>A timestamp of the date and time that the bot was last
7284
- * updated.</p>
7285
- * @public
7286
- */
7287
- lastUpdatedDateTime?: Date | undefined;
7288
- /**
7289
- * <p>The type of the bot that was described.</p>
7290
- * @public
7291
- */
7292
- botType?: BotType | undefined;
7293
- /**
7294
- * <p>The list of bots in the network that was described.</p>
7295
- * @public
7296
- */
7297
- botMembers?: BotMember[] | undefined;
7298
- /**
7299
- * <p>If the <code>botStatus</code> is <code>Failed</code>, this contains
7300
- * a list of reasons that the bot couldn't be built.</p>
7301
- * @public
7302
- */
7303
- failureReasons?: string[] | undefined;
7304
- /**
7305
- * <p>Contains the configuration for error logging that specifies where and how bot errors are recorded, including destinations like CloudWatch Logs.</p>
7306
- * @public
7307
- */
7308
- errorLogSettings?: ErrorLogSettings | undefined;
7309
- }
@@ -1,4 +1,81 @@
1
1
  import { ActiveContext, AgentTurnResult, AgentTurnSpecification, AggregatedUtterancesFilter, AggregatedUtterancesSortBy, AggregatedUtterancesSummary, AnalyticsBinBySpecification, AnalyticsIntentFilter, AnalyticsIntentGroupBySpecification, AnalyticsIntentMetric, AnalyticsIntentNodeSummary, AnalyticsIntentResult, AnalyticsIntentStageFilter, AnalyticsIntentStageGroupBySpecification, AnalyticsIntentStageMetric, AnalyticsIntentStageResult, AnalyticsModality, AnalyticsPathFilter, AnalyticsSessionFilter, AnalyticsSessionGroupBySpecification, AnalyticsSessionMetric, AnalyticsSessionResult, AnalyticsSessionSortByName, AnalyticsSortOrder, AnalyticsUtteranceAttribute, AnalyticsUtteranceFilter, AnalyticsUtteranceGroupBySpecification, AnalyticsUtteranceMetric, AnalyticsUtteranceResult, AnalyticsUtteranceSortByName, AssociatedTranscript, AssociatedTranscriptFilter, BotAliasHistoryEvent, BotAliasLocaleSettings, BotAliasReplicaSummary, BotAliasStatus, BotAliasSummary, BotAliasTestExecutionTarget, BotFilter, BotImportSpecification, BotLocaleFilter, BotLocaleHistoryEvent, BotLocaleImportSpecification, BotLocaleSortBy, BotLocaleStatus, BotLocaleSummary, BotMember, BotRecommendationResults, BotRecommendationStatus, BotRecommendationSummary, BotReplicaStatus, BotReplicaSummary, BotSortBy, BotStatus, BotSummary, BotType, BotVersionReplicaSortBy, BotVersionReplicaSummary, BotVersionSortBy, BotVersionSummary, BuiltInIntentSortBy, BuiltInIntentSummary, BuiltInSlotTypeSortBy, BuiltInSlotTypeSummary, CompositeSlotTypeSetting, Condition, ConversationEndState, ConversationLevelResultDetail, ConversationLevelTestResults, ConversationLevelTestResultsFilterBy, ConversationLogsDataSource, ConversationLogSettings, CustomVocabularyImportSpecification, CustomVocabularyItem, CustomVocabularyStatus, DataPrivacy, DateRangeFilter, DialogAction, DialogCodeHookSettings, ElicitationCodeHookInvocationSetting, ErrorLogSettings, ExecutionErrorDetails, ExportResourceSpecification, ExportStatus, ExternalSourceSetting, FulfillmentUpdatesSpecification, GenerativeAISettings, ImageResponseCard, ImportExportFileFormat, ImportStatus, InputContext, KendraConfiguration, MultipleValuesSetting, ObfuscationSetting, OutputContext, PromptSpecification, QInConnectIntentConfiguration, QnAIntentConfiguration, ResponseSpecification, SampleUtterance, SentimentAnalysisSettings, SlotConstraint, SlotDefaultValueSpecification, SlotResolutionSetting, SlotShape, SlotTypeValue, SlotValue, SlotValueSelectionSetting, SortOrder, SubSlotSetting, TestResultMatchStatus, TestSetDiscrepancyReportResourceTarget, VoiceSettings, WaitAndContinueSpecification } from "./models_0";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface DescribeBotResponse {
6
+ /**
7
+ * <p>The unique identifier of the bot.</p>
8
+ * @public
9
+ */
10
+ botId?: string | undefined;
11
+ /**
12
+ * <p>The name of the bot.</p>
13
+ * @public
14
+ */
15
+ botName?: string | undefined;
16
+ /**
17
+ * <p>The description of the bot. </p>
18
+ * @public
19
+ */
20
+ description?: string | undefined;
21
+ /**
22
+ * <p>The Amazon Resource Name (ARN) of an IAM role that has permission to
23
+ * access the bot.</p>
24
+ * @public
25
+ */
26
+ roleArn?: string | undefined;
27
+ /**
28
+ * <p>Settings for managing data privacy of the bot and its conversations
29
+ * with users.</p>
30
+ * @public
31
+ */
32
+ dataPrivacy?: DataPrivacy | undefined;
33
+ /**
34
+ * <p>The maximum time in seconds that Amazon Lex retains the data gathered in
35
+ * a conversation.</p>
36
+ * @public
37
+ */
38
+ idleSessionTTLInSeconds?: number | undefined;
39
+ /**
40
+ * <p>The current status of the bot. When the status is
41
+ * <code>Available</code> the bot is ready to be used in conversations
42
+ * with users.</p>
43
+ * @public
44
+ */
45
+ botStatus?: BotStatus | undefined;
46
+ /**
47
+ * <p>A timestamp of the date and time that the bot was created.</p>
48
+ * @public
49
+ */
50
+ creationDateTime?: Date | undefined;
51
+ /**
52
+ * <p>A timestamp of the date and time that the bot was last
53
+ * updated.</p>
54
+ * @public
55
+ */
56
+ lastUpdatedDateTime?: Date | undefined;
57
+ /**
58
+ * <p>The type of the bot that was described.</p>
59
+ * @public
60
+ */
61
+ botType?: BotType | undefined;
62
+ /**
63
+ * <p>The list of bots in the network that was described.</p>
64
+ * @public
65
+ */
66
+ botMembers?: BotMember[] | undefined;
67
+ /**
68
+ * <p>If the <code>botStatus</code> is <code>Failed</code>, this contains
69
+ * a list of reasons that the bot couldn't be built.</p>
70
+ * @public
71
+ */
72
+ failureReasons?: string[] | undefined;
73
+ /**
74
+ * <p>Contains the configuration for error logging that specifies where and how bot errors are recorded, including destinations like CloudWatch Logs.</p>
75
+ * @public
76
+ */
77
+ errorLogSettings?: ErrorLogSettings | undefined;
78
+ }
2
79
  /**
3
80
  * @public
4
81
  */
@@ -5,7 +5,8 @@ import {
5
5
  ServiceInputTypes,
6
6
  ServiceOutputTypes,
7
7
  } from "../LexModelsV2Client";
8
- import { DescribeBotRequest, DescribeBotResponse } from "../models/models_0";
8
+ import { DescribeBotRequest } from "../models/models_0";
9
+ import { DescribeBotResponse } from "../models/models_1";
9
10
  export { __MetadataBearer };
10
11
  export { $Command };
11
12
  export interface DescribeBotCommandInput extends DescribeBotRequest {}
@@ -391,6 +391,12 @@ export declare const AnalyticsUtteranceSortByName: {
391
391
  };
392
392
  export type AnalyticsUtteranceSortByName =
393
393
  (typeof AnalyticsUtteranceSortByName)[keyof typeof AnalyticsUtteranceSortByName];
394
+ export declare const AssistedNluMode: {
395
+ readonly Fallback: "Fallback";
396
+ readonly Primary: "Primary";
397
+ };
398
+ export type AssistedNluMode =
399
+ (typeof AssistedNluMode)[keyof typeof AssistedNluMode];
394
400
  export interface AssociatedTranscript {
395
401
  transcript?: string | undefined;
396
402
  }
@@ -1117,6 +1123,7 @@ export interface CreateBotAliasResponse {
1117
1123
  }
1118
1124
  export interface NluImprovementSpecification {
1119
1125
  enabled: boolean | undefined;
1126
+ assistedNluMode?: AssistedNluMode | undefined;
1120
1127
  }
1121
1128
  export interface SlotResolutionImprovementSpecification {
1122
1129
  enabled: boolean | undefined;
@@ -1649,18 +1656,3 @@ export interface DeleteUtterancesResponse {}
1649
1656
  export interface DescribeBotRequest {
1650
1657
  botId: string | undefined;
1651
1658
  }
1652
- export interface DescribeBotResponse {
1653
- botId?: string | undefined;
1654
- botName?: string | undefined;
1655
- description?: string | undefined;
1656
- roleArn?: string | undefined;
1657
- dataPrivacy?: DataPrivacy | undefined;
1658
- idleSessionTTLInSeconds?: number | undefined;
1659
- botStatus?: BotStatus | undefined;
1660
- creationDateTime?: Date | undefined;
1661
- lastUpdatedDateTime?: Date | undefined;
1662
- botType?: BotType | undefined;
1663
- botMembers?: BotMember[] | undefined;
1664
- failureReasons?: string[] | undefined;
1665
- errorLogSettings?: ErrorLogSettings | undefined;
1666
- }
@@ -114,6 +114,21 @@ import {
114
114
  VoiceSettings,
115
115
  WaitAndContinueSpecification,
116
116
  } from "./models_0";
117
+ export interface DescribeBotResponse {
118
+ botId?: string | undefined;
119
+ botName?: string | undefined;
120
+ description?: string | undefined;
121
+ roleArn?: string | undefined;
122
+ dataPrivacy?: DataPrivacy | undefined;
123
+ idleSessionTTLInSeconds?: number | undefined;
124
+ botStatus?: BotStatus | undefined;
125
+ creationDateTime?: Date | undefined;
126
+ lastUpdatedDateTime?: Date | undefined;
127
+ botType?: BotType | undefined;
128
+ botMembers?: BotMember[] | undefined;
129
+ failureReasons?: string[] | undefined;
130
+ errorLogSettings?: ErrorLogSettings | undefined;
131
+ }
117
132
  export interface DescribeBotAliasRequest {
118
133
  botAliasId: string | undefined;
119
134
  botId: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-lex-models-v2",
3
3
  "description": "AWS SDK for JavaScript Lex Models V2 Client for Node.js, Browser and React Native",
4
- "version": "3.932.0",
4
+ "version": "3.933.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-lex-models-v2",
@@ -21,10 +21,10 @@
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
23
  "@aws-sdk/core": "3.932.0",
24
- "@aws-sdk/credential-provider-node": "3.932.0",
24
+ "@aws-sdk/credential-provider-node": "3.933.0",
25
25
  "@aws-sdk/middleware-host-header": "3.930.0",
26
26
  "@aws-sdk/middleware-logger": "3.930.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.930.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.933.0",
28
28
  "@aws-sdk/middleware-user-agent": "3.932.0",
29
29
  "@aws-sdk/region-config-resolver": "3.930.0",
30
30
  "@aws-sdk/types": "3.930.0",