@aws-sdk/client-kendra 3.430.0 → 3.431.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.
@@ -1460,9 +1460,9 @@ export interface Document {
1460
1460
  /**
1461
1461
  * @public
1462
1462
  * <p>The file type of the document in the <code>Blob</code> field.</p>
1463
- * <p>If you want to index snippets or subsets of HTML documents instead of the entirety
1464
- * of the HTML documents, you must add the <code>HTML</code> start and closing tags
1465
- * (<code><HTML>content</HTML></code>) around the content.</p>
1463
+ * <p>If you want to index snippets or subsets of HTML documents instead of the entirety of
1464
+ * the HTML documents, you must add the <code>HTML</code> start and closing tags
1465
+ * (<code><HTML>content</HTML></code>) around the content.</p>
1466
1466
  */
1467
1467
  ContentType?: ContentType;
1468
1468
  /**
@@ -1543,8 +1543,7 @@ export interface BatchPutDocumentResponse {
1543
1543
  * validation check. Each document contains an error message that indicates why the
1544
1544
  * document couldn't be added to the index.</p>
1545
1545
  * <p>If there was an error adding a document to an index the error is reported in your
1546
- * Amazon Web Services CloudWatch log. For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/cloudwatch-logs.html">Monitoring
1547
- * Amazon Kendra with Amazon CloudWatch logs</a>.</p>
1546
+ * Amazon Web Services CloudWatch log. For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/cloudwatch-logs.html">Monitoring Amazon Kendra with Amazon CloudWatch logs</a>.</p>
1548
1547
  */
1549
1548
  FailedDocuments?: BatchPutDocumentResponseFailedDocument[];
1550
1549
  }
@@ -4651,7 +4650,7 @@ export interface CreateExperienceRequest {
4651
4650
  * @public
4652
4651
  * <p>The Amazon Resource Name (ARN) of an IAM role with permission to access
4653
4652
  * <code>Query</code> API, <code>GetQuerySuggestions</code> API, and other required APIs.
4654
- * The role also must include permission to access IAM Identity Center (successor to Single Sign-On) that stores your
4653
+ * The role also must include permission to access IAM Identity Center that stores your
4655
4654
  * user and group information. For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/iam-roles.html">IAM access roles for Amazon Kendra</a>.</p>
4656
4655
  */
4657
4656
  RoleArn?: string;
@@ -5052,7 +5051,7 @@ export type UserGroupResolutionMode = (typeof UserGroupResolutionMode)[keyof typ
5052
5051
  /**
5053
5052
  * @public
5054
5053
  * <p>Provides the configuration information to get users and groups from
5055
- * an IAM Identity Center (successor to Single Sign-On) identity source. This is useful for user context filtering, where
5054
+ * an IAM Identity Center identity source. This is useful for user context filtering, where
5056
5055
  * search results are filtered based on the user or their group access to documents. You can
5057
5056
  * also use the <a href="https://docs.aws.amazon.com/kendra/latest/dg/API_PutPrincipalMapping.html">PutPrincipalMapping</a> API to
5058
5057
  * map users to their groups so that you only need to provide the user ID when you issue the
@@ -5069,7 +5068,7 @@ export interface UserGroupResolutionConfiguration {
5069
5068
  /**
5070
5069
  * @public
5071
5070
  * <p>The identity store provider (mode) you want to use to get users and groups.
5072
- * IAM Identity Center (successor to Single Sign-On) is currently the only available mode. Your users and groups
5071
+ * IAM Identity Center is currently the only available mode. Your users and groups
5073
5072
  * must exist in an IAM Identity Center identity source in order to use this mode.</p>
5074
5073
  */
5075
5074
  UserGroupResolutionMode: UserGroupResolutionMode | undefined;
@@ -5237,7 +5236,7 @@ export interface CreateIndexRequest {
5237
5236
  UserContextPolicy?: UserContextPolicy;
5238
5237
  /**
5239
5238
  * @public
5240
- * <p>Gets users and groups from IAM Identity Center (successor to Single Sign-On)
5239
+ * <p>Gets users and groups from IAM Identity Center
5241
5240
  * identity source. To configure this, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/API_UserGroupResolutionConfiguration.html">UserGroupResolutionConfiguration</a>.</p>
5242
5241
  */
5243
5242
  UserGroupResolutionConfiguration?: UserGroupResolutionConfiguration;
@@ -6397,7 +6396,7 @@ export interface DescribeIndexResponse {
6397
6396
  /**
6398
6397
  * @public
6399
6398
  * <p>Whether you have enabled the configuration for fetching access levels of groups and
6400
- * users from an IAM Identity Center (successor to Single Sign-On) identity source.</p>
6399
+ * users from an IAM Identity Center identity source.</p>
6401
6400
  */
6402
6401
  UserGroupResolutionConfiguration?: UserGroupResolutionConfiguration;
6403
6402
  }
@@ -8365,35 +8364,38 @@ export interface PutPrincipalMappingRequest {
8365
8364
  }
8366
8365
  /**
8367
8366
  * @public
8368
- * <p>Overrides the document relevance properties of a custom index field.</p>
8367
+ * <p>Specifies the configuration information needed to customize how collapsed search
8368
+ * result groups expand.</p>
8369
8369
  */
8370
- export interface DocumentRelevanceConfiguration {
8370
+ export interface ExpandConfiguration {
8371
8371
  /**
8372
8372
  * @public
8373
- * <p>The name of the index field.</p>
8373
+ * <p>The number of collapsed search result groups to expand. If you set this value to 10,
8374
+ * for example, only the first 10 out of 100 result groups will have expand functionality.
8375
+ * </p>
8374
8376
  */
8375
- Name: string | undefined;
8377
+ MaxResultItemsToExpand?: number;
8376
8378
  /**
8377
8379
  * @public
8378
- * <p>Provides information for tuning the relevance of a field in a search. When a query
8379
- * includes terms that match the field, the results are given a boost in the response based on
8380
- * these tuning parameters.</p>
8380
+ * <p>The number of expanded results to show per collapsed primary document. For instance,
8381
+ * if you set this value to 3, then at most 3 results per collapsed group will be
8382
+ * displayed.</p>
8381
8383
  */
8382
- Relevance: Relevance | undefined;
8384
+ MaxExpandedResultsPerItem?: number;
8383
8385
  }
8384
8386
  /**
8385
8387
  * @public
8386
8388
  * @enum
8387
8389
  */
8388
- export declare const QueryResultType: {
8389
- readonly ANSWER: "ANSWER";
8390
- readonly DOCUMENT: "DOCUMENT";
8391
- readonly QUESTION_ANSWER: "QUESTION_ANSWER";
8390
+ export declare const MissingAttributeKeyStrategy: {
8391
+ readonly COLLAPSE: "COLLAPSE";
8392
+ readonly EXPAND: "EXPAND";
8393
+ readonly IGNORE: "IGNORE";
8392
8394
  };
8393
8395
  /**
8394
8396
  * @public
8395
8397
  */
8396
- export type QueryResultType = (typeof QueryResultType)[keyof typeof QueryResultType];
8398
+ export type MissingAttributeKeyStrategy = (typeof MissingAttributeKeyStrategy)[keyof typeof MissingAttributeKeyStrategy];
8397
8399
  /**
8398
8400
  * @public
8399
8401
  * @enum
@@ -8463,6 +8465,90 @@ export interface SortingConfiguration {
8463
8465
  */
8464
8466
  SortOrder: SortOrder | undefined;
8465
8467
  }
8468
+ /**
8469
+ * @public
8470
+ * <p>Specifies how to group results by document attribute value, and how to display them
8471
+ * collapsed/expanded under a designated primary document for each group.</p>
8472
+ */
8473
+ export interface CollapseConfiguration {
8474
+ /**
8475
+ * @public
8476
+ * <p>The document attribute used to group search results. You can use any attribute that
8477
+ * has the <code>Sortable</code> flag set to true. You can also sort by any of the
8478
+ * following built-in attributes:"_category","_created_at", "_last_updated_at", "_version",
8479
+ * "_view_count".</p>
8480
+ */
8481
+ DocumentAttributeKey: string | undefined;
8482
+ /**
8483
+ * @public
8484
+ * <p>A prioritized list of document attributes/fields that determine the primary document
8485
+ * among those in a collapsed group.</p>
8486
+ */
8487
+ SortingConfigurations?: SortingConfiguration[];
8488
+ /**
8489
+ * @public
8490
+ * <p>Specifies the behavior for documents without a value for the collapse
8491
+ * attribute.</p>
8492
+ * <p>Amazon Kendra offers three customization options:</p>
8493
+ * <ul>
8494
+ * <li>
8495
+ * <p>Choose to <code>COLLAPSE</code> all documents with null or missing values in
8496
+ * one group. This is the default configuration.</p>
8497
+ * </li>
8498
+ * <li>
8499
+ * <p>Choose to <code>IGNORE</code> documents with null or missing values. Ignored
8500
+ * documents will not appear in query results.</p>
8501
+ * </li>
8502
+ * <li>
8503
+ * <p>Choose to <code>EXPAND</code> each document with a null or missing value into
8504
+ * a group of its own.</p>
8505
+ * </li>
8506
+ * </ul>
8507
+ */
8508
+ MissingAttributeKeyStrategy?: MissingAttributeKeyStrategy;
8509
+ /**
8510
+ * @public
8511
+ * <p>Specifies whether to expand the collapsed results.</p>
8512
+ */
8513
+ Expand?: boolean;
8514
+ /**
8515
+ * @public
8516
+ * <p>Provides configuration information to customize expansion options for a collapsed
8517
+ * group.</p>
8518
+ */
8519
+ ExpandConfiguration?: ExpandConfiguration;
8520
+ }
8521
+ /**
8522
+ * @public
8523
+ * <p>Overrides the document relevance properties of a custom index field.</p>
8524
+ */
8525
+ export interface DocumentRelevanceConfiguration {
8526
+ /**
8527
+ * @public
8528
+ * <p>The name of the index field.</p>
8529
+ */
8530
+ Name: string | undefined;
8531
+ /**
8532
+ * @public
8533
+ * <p>Provides information for tuning the relevance of a field in a search. When a query
8534
+ * includes terms that match the field, the results are given a boost in the response based on
8535
+ * these tuning parameters.</p>
8536
+ */
8537
+ Relevance: Relevance | undefined;
8538
+ }
8539
+ /**
8540
+ * @public
8541
+ * @enum
8542
+ */
8543
+ export declare const QueryResultType: {
8544
+ readonly ANSWER: "ANSWER";
8545
+ readonly DOCUMENT: "DOCUMENT";
8546
+ readonly QUESTION_ANSWER: "QUESTION_ANSWER";
8547
+ };
8548
+ /**
8549
+ * @public
8550
+ */
8551
+ export type QueryResultType = (typeof QueryResultType)[keyof typeof QueryResultType];
8466
8552
  /**
8467
8553
  * @public
8468
8554
  * <p>Provides the configuration information for suggested query spell corrections.</p>
@@ -8543,106 +8629,74 @@ export interface FeaturedResultsItem {
8543
8629
  }
8544
8630
  /**
8545
8631
  * @public
8546
- * @enum
8547
- */
8548
- export declare const QueryResultFormat: {
8549
- readonly TABLE: "TABLE";
8550
- readonly TEXT: "TEXT";
8551
- };
8552
- /**
8553
- * @public
8554
- */
8555
- export type QueryResultFormat = (typeof QueryResultFormat)[keyof typeof QueryResultFormat];
8556
- /**
8557
- * @public
8558
- * @enum
8559
- */
8560
- export declare const ScoreConfidence: {
8561
- readonly HIGH: "HIGH";
8562
- readonly LOW: "LOW";
8563
- readonly MEDIUM: "MEDIUM";
8564
- readonly NOT_AVAILABLE: "NOT_AVAILABLE";
8565
- readonly VERY_HIGH: "VERY_HIGH";
8566
- };
8567
- /**
8568
- * @public
8569
- */
8570
- export type ScoreConfidence = (typeof ScoreConfidence)[keyof typeof ScoreConfidence];
8571
- /**
8572
- * @public
8573
- * <p>Provides a relative ranking that indicates how confident Amazon Kendra is that the
8574
- * response is relevant to the query.</p>
8632
+ * <p> A single expanded result in a collapsed group of search results.</p>
8633
+ * <p>An expanded result item contains information about an expanded result document within
8634
+ * a collapsed group of search results. This includes the original location of the
8635
+ * document, a list of attributes assigned to the document, and relevant text from the
8636
+ * document that satisfies the query. </p>
8575
8637
  */
8576
- export interface ScoreAttributes {
8638
+ export interface ExpandedResultItem {
8577
8639
  /**
8578
8640
  * @public
8579
- * <p>A relative ranking for how relevant the response is to the query.</p>
8641
+ * <p>The identifier for the expanded result.</p>
8580
8642
  */
8581
- ScoreConfidence?: ScoreConfidence;
8582
- }
8583
- /**
8584
- * @public
8585
- * <p>Provides information about a table cell in a table excerpt.</p>
8586
- */
8587
- export interface TableCell {
8643
+ Id?: string;
8588
8644
  /**
8589
8645
  * @public
8590
- * <p>The actual value or content within a table cell. A table cell could contain a date
8591
- * value of a year, or a string value of text, for example.</p>
8646
+ * <p>The idenitifier of the document.</p>
8592
8647
  */
8593
- Value?: string;
8648
+ DocumentId?: string;
8594
8649
  /**
8595
8650
  * @public
8596
- * <p>
8597
- * <code>TRUE</code> if the response of the table cell is the top answer. This is the
8598
- * cell value or content with the highest confidence score or is the most relevant to the
8599
- * query.</p>
8651
+ * <p>Provides text and information about where to highlight the text.</p>
8600
8652
  */
8601
- TopAnswer?: boolean;
8653
+ DocumentTitle?: TextWithHighlights;
8602
8654
  /**
8603
8655
  * @public
8604
- * <p>
8605
- * <code>TRUE</code> means that the table cell has a high enough confidence and is
8606
- * relevant to the query, so the value or content should be highlighted.</p>
8656
+ * <p>Provides text and information about where to highlight the text.</p>
8607
8657
  */
8608
- Highlighted?: boolean;
8658
+ DocumentExcerpt?: TextWithHighlights;
8609
8659
  /**
8610
8660
  * @public
8611
- * <p>
8612
- * <code>TRUE</code> means that the table cell should be treated as a header.</p>
8661
+ * <p>The URI of the original location of the document.</p>
8613
8662
  */
8614
- Header?: boolean;
8615
- }
8616
- /**
8617
- * @public
8618
- * <p>Information about a row in a table excerpt.</p>
8619
- */
8620
- export interface TableRow {
8663
+ DocumentURI?: string;
8621
8664
  /**
8622
8665
  * @public
8623
- * <p>A list of table cells in a row.</p>
8666
+ * <p>An array of document attributes assigned to a document in the search results. For
8667
+ * example, the document author ("_author") or the source URI ("_source_uri") of the
8668
+ * document.</p>
8624
8669
  */
8625
- Cells?: TableCell[];
8670
+ DocumentAttributes?: DocumentAttribute[];
8626
8671
  }
8627
8672
  /**
8628
8673
  * @public
8629
- * <p>An excerpt from a table within a document. The table excerpt displays up to five
8630
- * columns and three rows, depending on how many table cells are relevant to the query and
8631
- * how many columns are available in the original table. The top most relevant cell is
8632
- * displayed in the table excerpt, along with the next most relevant cells.</p>
8674
+ * <p>Provides details about a collapsed group of search results.</p>
8633
8675
  */
8634
- export interface TableExcerpt {
8676
+ export interface CollapsedResultDetail {
8635
8677
  /**
8636
8678
  * @public
8637
- * <p>A list of rows in the table excerpt.</p>
8679
+ * <p>The value of the document attribute that results are collapsed on.</p>
8638
8680
  */
8639
- Rows?: TableRow[];
8681
+ DocumentAttribute: DocumentAttribute | undefined;
8640
8682
  /**
8641
8683
  * @public
8642
- * <p>A count of the number of rows in the original table within the document.</p>
8684
+ * <p>A list of results in the collapsed group.</p>
8643
8685
  */
8644
- TotalNumberOfRows?: number;
8686
+ ExpandedResults?: ExpandedResultItem[];
8645
8687
  }
8688
+ /**
8689
+ * @public
8690
+ * @enum
8691
+ */
8692
+ export declare const QueryResultFormat: {
8693
+ readonly TABLE: "TABLE";
8694
+ readonly TEXT: "TEXT";
8695
+ };
8696
+ /**
8697
+ * @public
8698
+ */
8699
+ export type QueryResultFormat = (typeof QueryResultFormat)[keyof typeof QueryResultFormat];
8646
8700
  /**
8647
8701
  * @internal
8648
8702
  */