@aws-sdk/client-lex-models-v2 3.1005.0 → 3.1007.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.
Files changed (46) hide show
  1. package/README.md +35 -0
  2. package/dist-cjs/index.js +96 -0
  3. package/dist-cjs/schemas/schemas_0.js +138 -23
  4. package/dist-es/LexModelsV2.js +14 -0
  5. package/dist-es/commands/DeleteBotAnalyzerRecommendationCommand.js +16 -0
  6. package/dist-es/commands/DescribeBotAnalyzerRecommendationCommand.js +16 -0
  7. package/dist-es/commands/ListBotAnalyzerHistoryCommand.js +16 -0
  8. package/dist-es/commands/StartBotAnalyzerCommand.js +16 -0
  9. package/dist-es/commands/StopBotAnalyzerCommand.js +16 -0
  10. package/dist-es/commands/index.js +5 -0
  11. package/dist-es/models/enums.js +15 -0
  12. package/dist-es/pagination/DescribeBotAnalyzerRecommendationPaginator.js +4 -0
  13. package/dist-es/pagination/ListBotAnalyzerHistoryPaginator.js +4 -0
  14. package/dist-es/pagination/index.js +2 -0
  15. package/dist-es/schemas/schemas_0.js +127 -12
  16. package/dist-types/LexModelsV2.d.ts +49 -0
  17. package/dist-types/LexModelsV2Client.d.ts +7 -2
  18. package/dist-types/commands/DeleteBotAnalyzerRecommendationCommand.d.ts +90 -0
  19. package/dist-types/commands/DescribeBotAnalyzerRecommendationCommand.d.ts +111 -0
  20. package/dist-types/commands/ListBotAnalyzerHistoryCommand.d.ts +105 -0
  21. package/dist-types/commands/StartBotAnalyzerCommand.d.ts +104 -0
  22. package/dist-types/commands/StopBotAnalyzerCommand.d.ts +95 -0
  23. package/dist-types/commands/index.d.ts +5 -0
  24. package/dist-types/models/enums.d.ts +39 -0
  25. package/dist-types/models/models_0.d.ts +160 -164
  26. package/dist-types/models/models_1.d.ts +336 -2
  27. package/dist-types/pagination/DescribeBotAnalyzerRecommendationPaginator.d.ts +7 -0
  28. package/dist-types/pagination/ListBotAnalyzerHistoryPaginator.d.ts +7 -0
  29. package/dist-types/pagination/index.d.ts +2 -0
  30. package/dist-types/schemas/schemas_0.d.ts +18 -0
  31. package/dist-types/ts3.4/LexModelsV2.d.ts +105 -0
  32. package/dist-types/ts3.4/LexModelsV2Client.d.ts +30 -0
  33. package/dist-types/ts3.4/commands/DeleteBotAnalyzerRecommendationCommand.d.ts +51 -0
  34. package/dist-types/ts3.4/commands/DescribeBotAnalyzerRecommendationCommand.d.ts +51 -0
  35. package/dist-types/ts3.4/commands/ListBotAnalyzerHistoryCommand.d.ts +51 -0
  36. package/dist-types/ts3.4/commands/StartBotAnalyzerCommand.d.ts +50 -0
  37. package/dist-types/ts3.4/commands/StopBotAnalyzerCommand.d.ts +50 -0
  38. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  39. package/dist-types/ts3.4/models/enums.d.ts +19 -0
  40. package/dist-types/ts3.4/models/models_0.d.ts +38 -47
  41. package/dist-types/ts3.4/models/models_1.d.ts +89 -5
  42. package/dist-types/ts3.4/pagination/DescribeBotAnalyzerRecommendationPaginator.d.ts +11 -0
  43. package/dist-types/ts3.4/pagination/ListBotAnalyzerHistoryPaginator.d.ts +11 -0
  44. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  45. package/dist-types/ts3.4/schemas/schemas_0.d.ts +18 -0
  46. package/package.json +2 -2
@@ -56,6 +56,17 @@ export declare const SortOrder: {
56
56
  * @public
57
57
  */
58
58
  export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
59
+ /**
60
+ * @public
61
+ * @enum
62
+ */
63
+ export declare const AnalysisScope: {
64
+ readonly BotLocale: "BotLocale";
65
+ };
66
+ /**
67
+ * @public
68
+ */
69
+ export type AnalysisScope = (typeof AnalysisScope)[keyof typeof AnalysisScope];
59
70
  /**
60
71
  * @public
61
72
  * @enum
@@ -460,6 +471,34 @@ export declare const BotAliasStatus: {
460
471
  * @public
461
472
  */
462
473
  export type BotAliasStatus = (typeof BotAliasStatus)[keyof typeof BotAliasStatus];
474
+ /**
475
+ * @public
476
+ * @enum
477
+ */
478
+ export declare const BotAnalyzerStatus: {
479
+ readonly Available: "Available";
480
+ readonly Failed: "Failed";
481
+ readonly Processing: "Processing";
482
+ readonly Stopped: "Stopped";
483
+ readonly Stopping: "Stopping";
484
+ };
485
+ /**
486
+ * @public
487
+ */
488
+ export type BotAnalyzerStatus = (typeof BotAnalyzerStatus)[keyof typeof BotAnalyzerStatus];
489
+ /**
490
+ * @public
491
+ * @enum
492
+ */
493
+ export declare const Priority: {
494
+ readonly High: "High";
495
+ readonly Low: "Low";
496
+ readonly Medium: "Medium";
497
+ };
498
+ /**
499
+ * @public
500
+ */
501
+ export type Priority = (typeof Priority)[keyof typeof Priority];
463
502
  /**
464
503
  * @public
465
504
  * @enum
@@ -1,4 +1,4 @@
1
- import { AggregatedUtterancesFilterName, AggregatedUtterancesFilterOperator, AggregatedUtterancesSortAttribute, AnalyticsBinByName, AnalyticsCommonFilterName, AnalyticsFilterOperator, AnalyticsIntentField, AnalyticsIntentFilterName, AnalyticsIntentMetricName, AnalyticsIntentStageField, AnalyticsIntentStageFilterName, AnalyticsIntentStageMetricName, AnalyticsInterval, AnalyticsMetricStatistic, AnalyticsNodeType, AnalyticsSessionField, AnalyticsSessionFilterName, AnalyticsSessionMetricName, AnalyticsSortOrder, AnalyticsUtteranceAttributeName, AnalyticsUtteranceField, AnalyticsUtteranceFilterName, AnalyticsUtteranceMetricName, AssistedNluMode, AssociatedTranscriptFilterName, AudioRecognitionStrategy, BedrockTraceStatus, BotAliasReplicationStatus, BotAliasStatus, BotFilterName, BotFilterOperator, BotLocaleFilterName, BotLocaleFilterOperator, BotLocaleSortAttribute, BotLocaleStatus, BotRecommendationStatus, BotReplicaStatus, BotSortAttribute, BotStatus, BotType, BotVersionReplicaSortAttribute, BotVersionReplicationStatus, BotVersionSortAttribute, BuiltInIntentSortAttribute, BuiltInSlotTypeSortAttribute, ConversationLogsInputModeFilter, CustomVocabularyStatus, DialogActionType, Effect, ErrorCode, ExportFilterName, ExportFilterOperator, ExportSortAttribute, ExportStatus, GenerationSortByAttribute, GenerationStatus, ImportExportFileFormat, ImportFilterName, ImportFilterOperator, ImportResourceType, ImportSortAttribute, ImportStatus, IntentFilterName, IntentFilterOperator, MergeStrategy, MessageSelectionStrategy, ObfuscationSettingType, PromptAttempt, SlotResolutionStrategy, SlotValueResolutionStrategy, SortOrder, SpeechDetectionSensitivity, SpeechModelPreference, TestExecutionApiMode, TestExecutionModality, TestExecutionStatus, TestResultMatchStatus, TestSetDiscrepancyReportStatus, TestSetGenerationStatus, TestSetModality, TestSetStatus, TranscriptFormat, VoiceEngine } from "./enums";
1
+ import { AggregatedUtterancesFilterName, AggregatedUtterancesFilterOperator, AggregatedUtterancesSortAttribute, AnalyticsBinByName, AnalyticsCommonFilterName, AnalyticsFilterOperator, AnalyticsIntentField, AnalyticsIntentFilterName, AnalyticsIntentMetricName, AnalyticsIntentStageField, AnalyticsIntentStageFilterName, AnalyticsIntentStageMetricName, AnalyticsInterval, AnalyticsMetricStatistic, AnalyticsNodeType, AnalyticsSessionField, AnalyticsSessionFilterName, AnalyticsSessionMetricName, AnalyticsSortOrder, AnalyticsUtteranceAttributeName, AnalyticsUtteranceField, AnalyticsUtteranceFilterName, AnalyticsUtteranceMetricName, AssistedNluMode, AssociatedTranscriptFilterName, AudioRecognitionStrategy, BedrockTraceStatus, BotAliasReplicationStatus, BotAliasStatus, BotAnalyzerStatus, BotFilterName, BotFilterOperator, BotLocaleFilterName, BotLocaleFilterOperator, BotLocaleSortAttribute, BotLocaleStatus, BotRecommendationStatus, BotReplicaStatus, BotSortAttribute, BotStatus, BotType, BotVersionReplicaSortAttribute, BotVersionReplicationStatus, BotVersionSortAttribute, BuiltInIntentSortAttribute, BuiltInSlotTypeSortAttribute, ConversationLogsInputModeFilter, CustomVocabularyStatus, DialogActionType, Effect, ErrorCode, ExportFilterName, ExportFilterOperator, ExportSortAttribute, ExportStatus, GenerationSortByAttribute, GenerationStatus, ImportExportFileFormat, ImportFilterName, ImportFilterOperator, ImportSortAttribute, ImportStatus, MergeStrategy, MessageSelectionStrategy, ObfuscationSettingType, Priority, PromptAttempt, SlotResolutionStrategy, SlotValueResolutionStrategy, SortOrder, SpeechDetectionSensitivity, SpeechModelPreference, TestExecutionApiMode, TestExecutionModality, TestExecutionStatus, TestResultMatchStatus, TestSetDiscrepancyReportStatus, TestSetGenerationStatus, TestSetModality, TestSetStatus, TranscriptFormat, VoiceEngine } from "./enums";
2
2
  /**
3
3
  * <p>The active context used in the test execution.</p>
4
4
  * @public
@@ -2435,6 +2435,78 @@ export interface BotAliasTestExecutionTarget {
2435
2435
  */
2436
2436
  localeId: string | undefined;
2437
2437
  }
2438
+ /**
2439
+ * <p>Contains summary information about a historical bot analysis execution.</p>
2440
+ * @public
2441
+ */
2442
+ export interface BotAnalyzerHistorySummary {
2443
+ /**
2444
+ * <p>The status of the historical analysis execution.</p>
2445
+ * <p>Valid Values: <code>Processing | Available | Failed | Stopping | Stopped</code>
2446
+ * </p>
2447
+ * @public
2448
+ */
2449
+ botAnalyzerStatus: BotAnalyzerStatus | undefined;
2450
+ /**
2451
+ * <p>The date and time when the analysis was initiated.</p>
2452
+ * @public
2453
+ */
2454
+ creationDateTime?: Date | undefined;
2455
+ /**
2456
+ * <p>The unique identifier for the analysis request.</p>
2457
+ * @public
2458
+ */
2459
+ botAnalyzerRequestId: string | undefined;
2460
+ }
2461
+ /**
2462
+ * <p>Specifies the location of an identified issue within the bot configuration.</p>
2463
+ * @public
2464
+ */
2465
+ export interface IssueLocation {
2466
+ /**
2467
+ * <p>The locale identifier where the issue was found.</p>
2468
+ * @public
2469
+ */
2470
+ botLocale?: string | undefined;
2471
+ /**
2472
+ * <p>The intent identifier where the issue was found, if applicable.</p>
2473
+ * @public
2474
+ */
2475
+ intentId?: string | undefined;
2476
+ /**
2477
+ * <p>The slot identifier where the issue was found, if applicable.</p>
2478
+ * @public
2479
+ */
2480
+ slotId?: string | undefined;
2481
+ }
2482
+ /**
2483
+ * <p>Contains a recommendation for bot optimization identified by the Bot Analyzer.</p>
2484
+ * @public
2485
+ */
2486
+ export interface BotAnalyzerRecommendation {
2487
+ /**
2488
+ * <p>The location information for the identified issue within the bot configuration.</p>
2489
+ * @public
2490
+ */
2491
+ issueLocation: IssueLocation | undefined;
2492
+ /**
2493
+ * <p>The priority level of the recommendation.</p>
2494
+ * <p>Valid Values: <code>High | Medium | Low</code>
2495
+ * </p>
2496
+ * @public
2497
+ */
2498
+ priority: Priority | undefined;
2499
+ /**
2500
+ * <p>A detailed description of the identified configuration issue.</p>
2501
+ * @public
2502
+ */
2503
+ issueDescription: string | undefined;
2504
+ /**
2505
+ * <p>The recommended solution to address the identified issue.</p>
2506
+ * @public
2507
+ */
2508
+ proposedFix: string | undefined;
2509
+ }
2438
2510
  /**
2439
2511
  * <p>Provides the identity of a the bot that was exported.</p>
2440
2512
  * @public
@@ -5928,6 +6000,26 @@ export interface DeleteBotAliasResponse {
5928
6000
  */
5929
6001
  botAliasStatus?: BotAliasStatus | undefined;
5930
6002
  }
6003
+ /**
6004
+ * @public
6005
+ */
6006
+ export interface DeleteBotAnalyzerRecommendationRequest {
6007
+ /**
6008
+ * <p>The unique identifier of the bot.</p>
6009
+ * @public
6010
+ */
6011
+ botId: string | undefined;
6012
+ /**
6013
+ * <p>The unique identifier of the analysis request whose recommendations should be deleted.</p>
6014
+ * @public
6015
+ */
6016
+ botAnalyzerRequestId: string | undefined;
6017
+ }
6018
+ /**
6019
+ * @public
6020
+ */
6021
+ export interface DeleteBotAnalyzerRecommendationResponse {
6022
+ }
5931
6023
  /**
5932
6024
  * @public
5933
6025
  */
@@ -6575,6 +6667,73 @@ export interface DescribeBotAliasResponse {
6575
6667
  */
6576
6668
  parentBotNetworks?: ParentBotNetwork[] | undefined;
6577
6669
  }
6670
+ /**
6671
+ * @public
6672
+ */
6673
+ export interface DescribeBotAnalyzerRecommendationRequest {
6674
+ /**
6675
+ * <p>The unique identifier of the bot.</p>
6676
+ * @public
6677
+ */
6678
+ botId: string | undefined;
6679
+ /**
6680
+ * <p>The unique identifier of the analysis request.</p>
6681
+ * @public
6682
+ */
6683
+ botAnalyzerRequestId: string | undefined;
6684
+ /**
6685
+ * <p>If the response from a previous request was truncated, the <code>nextToken</code> value is used to retrieve the next page of recommendations.</p>
6686
+ * @public
6687
+ */
6688
+ nextToken?: string | undefined;
6689
+ /**
6690
+ * <p>The maximum number of recommendations to return in the response. The default is 5.</p>
6691
+ * @public
6692
+ */
6693
+ maxResults?: number | undefined;
6694
+ }
6695
+ /**
6696
+ * @public
6697
+ */
6698
+ export interface DescribeBotAnalyzerRecommendationResponse {
6699
+ /**
6700
+ * <p>The unique identifier of the bot.</p>
6701
+ * @public
6702
+ */
6703
+ botId?: string | undefined;
6704
+ /**
6705
+ * <p>The version of the bot that was analyzed.</p>
6706
+ * @public
6707
+ */
6708
+ botVersion?: string | undefined;
6709
+ /**
6710
+ * <p>The locale identifier of the bot locale that was analyzed.</p>
6711
+ * @public
6712
+ */
6713
+ localeId?: string | undefined;
6714
+ /**
6715
+ * <p>The current status of the analysis.</p>
6716
+ * <p>Valid Values: <code>Processing | Available | Failed | Stopping | Stopped</code>
6717
+ * </p>
6718
+ * @public
6719
+ */
6720
+ botAnalyzerStatus?: BotAnalyzerStatus | undefined;
6721
+ /**
6722
+ * <p>The date and time when the analysis was initiated.</p>
6723
+ * @public
6724
+ */
6725
+ creationDateTime?: Date | undefined;
6726
+ /**
6727
+ * <p>A list of recommendations for optimizing your bot configuration. Each recommendation includes the issue location, priority, description, and proposed fix.</p>
6728
+ * @public
6729
+ */
6730
+ botAnalyzerRecommendationList?: BotAnalyzerRecommendation[] | undefined;
6731
+ /**
6732
+ * <p>If the response is truncated, this token can be used in a subsequent request to retrieve the next page of recommendations.</p>
6733
+ * @public
6734
+ */
6735
+ nextToken?: string | undefined;
6736
+ }
6578
6737
  /**
6579
6738
  * @public
6580
6739
  */
@@ -8269,166 +8428,3 @@ export interface ImportSortBy {
8269
8428
  */
8270
8429
  order: SortOrder | undefined;
8271
8430
  }
8272
- /**
8273
- * <p>Provides summary information about an import in an import
8274
- * list.</p>
8275
- * @public
8276
- */
8277
- export interface ImportSummary {
8278
- /**
8279
- * <p>The unique identifier that Amazon Lex assigned to the import.</p>
8280
- * @public
8281
- */
8282
- importId?: string | undefined;
8283
- /**
8284
- * <p>The unique identifier that Amazon Lex assigned to the imported
8285
- * resource.</p>
8286
- * @public
8287
- */
8288
- importedResourceId?: string | undefined;
8289
- /**
8290
- * <p>The name that you gave the imported resource.</p>
8291
- * @public
8292
- */
8293
- importedResourceName?: string | undefined;
8294
- /**
8295
- * <p>The status of the resource. When the status is
8296
- * <code>Completed</code> the resource is ready to build.</p>
8297
- * @public
8298
- */
8299
- importStatus?: ImportStatus | undefined;
8300
- /**
8301
- * <p>The strategy used to merge existing bot or bot locale definitions
8302
- * with the imported definition.</p>
8303
- * @public
8304
- */
8305
- mergeStrategy?: MergeStrategy | undefined;
8306
- /**
8307
- * <p>The date and time that the import was created.</p>
8308
- * @public
8309
- */
8310
- creationDateTime?: Date | undefined;
8311
- /**
8312
- * <p>The date and time that the import was last updated.</p>
8313
- * @public
8314
- */
8315
- lastUpdatedDateTime?: Date | undefined;
8316
- /**
8317
- * <p>The type of resource that was imported.</p>
8318
- * @public
8319
- */
8320
- importedResourceType?: ImportResourceType | undefined;
8321
- }
8322
- /**
8323
- * <p>Provides the phrase that Amazon Lex should look for in the user's input
8324
- * to the bot.</p>
8325
- * @public
8326
- */
8327
- export interface RuntimeHintValue {
8328
- /**
8329
- * <p>The phrase that Amazon Lex should look for in the user's input to the
8330
- * bot.</p>
8331
- * @public
8332
- */
8333
- phrase: string | undefined;
8334
- }
8335
- /**
8336
- * <p>The number of items in the intent classification test.</p>
8337
- * @public
8338
- */
8339
- export interface IntentClassificationTestResultItemCounts {
8340
- /**
8341
- * <p>The total number of results in the intent classification test.</p>
8342
- * @public
8343
- */
8344
- totalResultCount: number | undefined;
8345
- /**
8346
- * <p>The number of matched, mismatched, and execution error results for speech transcription for the intent.</p>
8347
- * @public
8348
- */
8349
- speechTranscriptionResultCounts?: Partial<Record<TestResultMatchStatus, number>> | undefined;
8350
- /**
8351
- * <p>The number of matched and mismatched results for intent recognition for the intent.</p>
8352
- * @public
8353
- */
8354
- intentMatchResultCounts: Partial<Record<TestResultMatchStatus, number>> | undefined;
8355
- }
8356
- /**
8357
- * <p>Information for an intent that is classified by the test workbench.</p>
8358
- * @public
8359
- */
8360
- export interface IntentClassificationTestResultItem {
8361
- /**
8362
- * <p>The name of the intent.</p>
8363
- * @public
8364
- */
8365
- intentName: string | undefined;
8366
- /**
8367
- * <p>Indicates whether the conversation involves multiple turns or not.</p>
8368
- * @public
8369
- */
8370
- multiTurnConversation: boolean | undefined;
8371
- /**
8372
- * <p>The result of the intent classification test.</p>
8373
- * @public
8374
- */
8375
- resultCounts: IntentClassificationTestResultItemCounts | undefined;
8376
- }
8377
- /**
8378
- * <p>Information for the results of the intent classification test. </p>
8379
- * @public
8380
- */
8381
- export interface IntentClassificationTestResults {
8382
- /**
8383
- * <p>A list of the results for the intent classification test.</p>
8384
- * @public
8385
- */
8386
- items: IntentClassificationTestResultItem[] | undefined;
8387
- }
8388
- /**
8389
- * <p>Filters the response from the <code>ListIntents</code>
8390
- * operation.</p>
8391
- * @public
8392
- */
8393
- export interface IntentFilter {
8394
- /**
8395
- * <p>The name of the field to use for the filter.</p>
8396
- * @public
8397
- */
8398
- name: IntentFilterName | undefined;
8399
- /**
8400
- * <p>The value to use for the filter.</p>
8401
- * @public
8402
- */
8403
- values: string[] | undefined;
8404
- /**
8405
- * <p>The operator to use for the filter. Specify <code>EQ</code> when the
8406
- * <code>ListIntents</code> operation should return only aliases that
8407
- * equal the specified value. Specify <code>CO</code> when the
8408
- * <code>ListIntents</code> operation should return aliases that
8409
- * contain the specified value.</p>
8410
- * @public
8411
- */
8412
- operator: IntentFilterOperator | undefined;
8413
- }
8414
- /**
8415
- * <p>Information about the counts for a slot resolution in the results of a test execution.</p>
8416
- * @public
8417
- */
8418
- export interface SlotResolutionTestResultItemCounts {
8419
- /**
8420
- * <p>The total number of results.</p>
8421
- * @public
8422
- */
8423
- totalResultCount: number | undefined;
8424
- /**
8425
- * <p>The number of matched, mismatched and execution error results for speech transcription for the slot.</p>
8426
- * @public
8427
- */
8428
- speechTranscriptionResultCounts?: Partial<Record<TestResultMatchStatus, number>> | undefined;
8429
- /**
8430
- * <p>The number of matched and mismatched results for slot resolution for the slot.</p>
8431
- * @public
8432
- */
8433
- slotMatchResultCounts: Partial<Record<TestResultMatchStatus, number>> | undefined;
8434
- }