@aws-sdk/client-kendra 3.131.0 → 3.141.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/CHANGELOG.md +33 -0
- package/README.md +1 -1
- package/dist-cjs/commands/AssociateEntitiesToExperienceCommand.js +2 -2
- package/dist-cjs/commands/AssociatePersonasToEntitiesCommand.js +2 -2
- package/dist-cjs/commands/BatchDeleteDocumentCommand.js +2 -2
- package/dist-cjs/commands/BatchGetDocumentStatusCommand.js +2 -2
- package/dist-cjs/commands/BatchPutDocumentCommand.js +2 -2
- package/dist-cjs/commands/ClearQuerySuggestionsCommand.js +1 -1
- package/dist-cjs/commands/CreateAccessControlConfigurationCommand.js +2 -2
- package/dist-cjs/commands/CreateDataSourceCommand.js +2 -2
- package/dist-cjs/commands/CreateExperienceCommand.js +2 -2
- package/dist-cjs/commands/CreateFaqCommand.js +2 -2
- package/dist-cjs/commands/CreateIndexCommand.js +2 -2
- package/dist-cjs/commands/CreateQuerySuggestionsBlockListCommand.js +2 -2
- package/dist-cjs/commands/CreateThesaurusCommand.js +2 -2
- package/dist-cjs/commands/DeleteAccessControlConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DeleteDataSourceCommand.js +1 -1
- package/dist-cjs/commands/DeleteExperienceCommand.js +2 -2
- package/dist-cjs/commands/DeleteFaqCommand.js +1 -1
- package/dist-cjs/commands/DeleteIndexCommand.js +1 -1
- package/dist-cjs/commands/DeletePrincipalMappingCommand.js +1 -1
- package/dist-cjs/commands/DeleteQuerySuggestionsBlockListCommand.js +1 -1
- package/dist-cjs/commands/DeleteThesaurusCommand.js +1 -1
- package/dist-cjs/commands/DescribeAccessControlConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DescribeDataSourceCommand.js +2 -2
- package/dist-cjs/commands/DescribeExperienceCommand.js +2 -2
- package/dist-cjs/commands/DescribeFaqCommand.js +2 -2
- package/dist-cjs/commands/DescribeIndexCommand.js +2 -2
- package/dist-cjs/commands/DescribePrincipalMappingCommand.js +2 -2
- package/dist-cjs/commands/DescribeQuerySuggestionsBlockListCommand.js +2 -2
- package/dist-cjs/commands/DescribeQuerySuggestionsConfigCommand.js +2 -2
- package/dist-cjs/commands/DescribeThesaurusCommand.js +2 -2
- package/dist-cjs/commands/DisassociateEntitiesFromExperienceCommand.js +2 -2
- package/dist-cjs/commands/DisassociatePersonasFromEntitiesCommand.js +2 -2
- package/dist-cjs/commands/GetQuerySuggestionsCommand.js +2 -2
- package/dist-cjs/commands/GetSnapshotsCommand.js +2 -2
- package/dist-cjs/commands/ListAccessControlConfigurationsCommand.js +2 -2
- package/dist-cjs/commands/ListDataSourceSyncJobsCommand.js +2 -2
- package/dist-cjs/commands/ListDataSourcesCommand.js +2 -2
- package/dist-cjs/commands/ListEntityPersonasCommand.js +2 -2
- package/dist-cjs/commands/ListExperienceEntitiesCommand.js +2 -2
- package/dist-cjs/commands/ListExperiencesCommand.js +2 -2
- package/dist-cjs/commands/ListFaqsCommand.js +2 -2
- package/dist-cjs/commands/ListGroupsOlderThanOrderingIdCommand.js +2 -2
- package/dist-cjs/commands/ListIndicesCommand.js +2 -2
- package/dist-cjs/commands/ListQuerySuggestionsBlockListsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListThesauriCommand.js +2 -2
- package/dist-cjs/commands/PutPrincipalMappingCommand.js +1 -1
- package/dist-cjs/commands/QueryCommand.js +2 -3
- package/dist-cjs/commands/StartDataSourceSyncJobCommand.js +2 -2
- package/dist-cjs/commands/StopDataSourceSyncJobCommand.js +1 -1
- package/dist-cjs/commands/SubmitFeedbackCommand.js +1 -1
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateAccessControlConfigurationCommand.js +2 -2
- package/dist-cjs/commands/UpdateDataSourceCommand.js +1 -1
- package/dist-cjs/commands/UpdateExperienceCommand.js +1 -1
- package/dist-cjs/commands/UpdateIndexCommand.js +1 -1
- package/dist-cjs/commands/UpdateQuerySuggestionsBlockListCommand.js +1 -1
- package/dist-cjs/commands/UpdateQuerySuggestionsConfigCommand.js +1 -1
- package/dist-cjs/commands/UpdateThesaurusCommand.js +1 -1
- package/dist-cjs/models/models_0.js +959 -1426
- package/dist-cjs/models/models_1.js +9 -7
- package/dist-cjs/protocols/Aws_json1_1.js +2 -0
- package/dist-es/commands/AssociateEntitiesToExperienceCommand.js +3 -3
- package/dist-es/commands/AssociatePersonasToEntitiesCommand.js +3 -3
- package/dist-es/commands/BatchDeleteDocumentCommand.js +3 -3
- package/dist-es/commands/BatchGetDocumentStatusCommand.js +3 -3
- package/dist-es/commands/BatchPutDocumentCommand.js +3 -3
- package/dist-es/commands/ClearQuerySuggestionsCommand.js +2 -2
- package/dist-es/commands/CreateAccessControlConfigurationCommand.js +3 -3
- package/dist-es/commands/CreateDataSourceCommand.js +3 -3
- package/dist-es/commands/CreateExperienceCommand.js +3 -3
- package/dist-es/commands/CreateFaqCommand.js +3 -3
- package/dist-es/commands/CreateIndexCommand.js +3 -3
- package/dist-es/commands/CreateQuerySuggestionsBlockListCommand.js +3 -3
- package/dist-es/commands/CreateThesaurusCommand.js +3 -3
- package/dist-es/commands/DeleteAccessControlConfigurationCommand.js +3 -3
- package/dist-es/commands/DeleteDataSourceCommand.js +2 -2
- package/dist-es/commands/DeleteExperienceCommand.js +3 -3
- package/dist-es/commands/DeleteFaqCommand.js +2 -2
- package/dist-es/commands/DeleteIndexCommand.js +2 -2
- package/dist-es/commands/DeletePrincipalMappingCommand.js +2 -2
- package/dist-es/commands/DeleteQuerySuggestionsBlockListCommand.js +2 -2
- package/dist-es/commands/DeleteThesaurusCommand.js +2 -2
- package/dist-es/commands/DescribeAccessControlConfigurationCommand.js +3 -3
- package/dist-es/commands/DescribeDataSourceCommand.js +3 -3
- package/dist-es/commands/DescribeExperienceCommand.js +3 -3
- package/dist-es/commands/DescribeFaqCommand.js +3 -3
- package/dist-es/commands/DescribeIndexCommand.js +3 -3
- package/dist-es/commands/DescribePrincipalMappingCommand.js +3 -3
- package/dist-es/commands/DescribeQuerySuggestionsBlockListCommand.js +3 -3
- package/dist-es/commands/DescribeQuerySuggestionsConfigCommand.js +3 -3
- package/dist-es/commands/DescribeThesaurusCommand.js +3 -3
- package/dist-es/commands/DisassociateEntitiesFromExperienceCommand.js +3 -3
- package/dist-es/commands/DisassociatePersonasFromEntitiesCommand.js +3 -3
- package/dist-es/commands/GetQuerySuggestionsCommand.js +3 -3
- package/dist-es/commands/GetSnapshotsCommand.js +3 -3
- package/dist-es/commands/ListAccessControlConfigurationsCommand.js +3 -3
- package/dist-es/commands/ListDataSourceSyncJobsCommand.js +3 -3
- package/dist-es/commands/ListDataSourcesCommand.js +3 -3
- package/dist-es/commands/ListEntityPersonasCommand.js +3 -3
- package/dist-es/commands/ListExperienceEntitiesCommand.js +3 -3
- package/dist-es/commands/ListExperiencesCommand.js +3 -3
- package/dist-es/commands/ListFaqsCommand.js +3 -3
- package/dist-es/commands/ListGroupsOlderThanOrderingIdCommand.js +3 -3
- package/dist-es/commands/ListIndicesCommand.js +3 -3
- package/dist-es/commands/ListQuerySuggestionsBlockListsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListThesauriCommand.js +3 -3
- package/dist-es/commands/PutPrincipalMappingCommand.js +2 -2
- package/dist-es/commands/QueryCommand.js +3 -4
- package/dist-es/commands/StartDataSourceSyncJobCommand.js +3 -3
- package/dist-es/commands/StopDataSourceSyncJobCommand.js +2 -2
- package/dist-es/commands/SubmitFeedbackCommand.js +2 -2
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateAccessControlConfigurationCommand.js +3 -3
- package/dist-es/commands/UpdateDataSourceCommand.js +2 -2
- package/dist-es/commands/UpdateExperienceCommand.js +2 -2
- package/dist-es/commands/UpdateIndexCommand.js +2 -2
- package/dist-es/commands/UpdateQuerySuggestionsBlockListCommand.js +2 -2
- package/dist-es/commands/UpdateQuerySuggestionsConfigCommand.js +2 -2
- package/dist-es/commands/UpdateThesaurusCommand.js +2 -2
- package/dist-es/models/models_0.js +244 -942
- package/dist-es/models/models_1.js +2 -4
- package/dist-es/protocols/Aws_json1_1.js +2 -1
- package/dist-types/Kendra.d.ts +14 -16
- package/dist-types/commands/CreateAccessControlConfigurationCommand.d.ts +10 -12
- package/dist-types/commands/QueryCommand.d.ts +1 -2
- package/dist-types/commands/UpdateAccessControlConfigurationCommand.d.ts +4 -4
- package/dist-types/models/models_0.d.ts +958 -1449
- package/dist-types/models/models_1.d.ts +44 -7
- package/dist-types/ts3.4/commands/QueryCommand.d.ts +1 -2
- package/dist-types/ts3.4/models/models_0.d.ts +470 -948
- package/dist-types/ts3.4/models/models_1.d.ts +19 -5
- package/package.json +6 -6
|
@@ -1,4 +1,39 @@
|
|
|
1
|
-
import { AttributeFilter, DocumentRelevanceConfiguration, Facet, QueryResultType, SortingConfiguration, SpellCorrectionConfiguration, UserContext } from "./models_0";
|
|
1
|
+
import { AttributeFilter, DocumentRelevanceConfiguration, Facet, FacetResult, QueryResultItem, QueryResultType, SortingConfiguration, SpellCorrectedQuery, SpellCorrectionConfiguration, UserContext, Warning } from "./models_0";
|
|
2
|
+
export interface QueryResult {
|
|
3
|
+
/**
|
|
4
|
+
* <p>The unique identifier for the search. You use <code>QueryId</code>
|
|
5
|
+
* to identify the search when using the feedback API.</p>
|
|
6
|
+
*/
|
|
7
|
+
QueryId?: string;
|
|
8
|
+
/**
|
|
9
|
+
* <p>The results of the search.</p>
|
|
10
|
+
*/
|
|
11
|
+
ResultItems?: QueryResultItem[];
|
|
12
|
+
/**
|
|
13
|
+
* <p>Contains the facet results. A <code>FacetResult</code> contains the
|
|
14
|
+
* counts for each attribute key that was specified in the
|
|
15
|
+
* <code>Facets</code> input parameter.</p>
|
|
16
|
+
*/
|
|
17
|
+
FacetResults?: FacetResult[];
|
|
18
|
+
/**
|
|
19
|
+
* <p>The total number of items found by the search; however, you can only
|
|
20
|
+
* retrieve up to 100 items. For example, if the search found 192 items,
|
|
21
|
+
* you can only retrieve the first 100 of the items.</p>
|
|
22
|
+
*/
|
|
23
|
+
TotalNumberOfResults?: number;
|
|
24
|
+
/**
|
|
25
|
+
* <p>A list of warning codes and their messages on problems with your query.</p>
|
|
26
|
+
* <p>Amazon Kendra currently only supports one type of warning, which is a warning
|
|
27
|
+
* on invalid syntax used in the query. For examples of invalid query syntax,
|
|
28
|
+
* see <a href="https://docs.aws.amazon.com/kendra/latest/dg/searching-example.html#searching-index-query-syntax">Searching
|
|
29
|
+
* with advanced query syntax</a>.</p>
|
|
30
|
+
*/
|
|
31
|
+
Warnings?: Warning[];
|
|
32
|
+
/**
|
|
33
|
+
* <p>A list of information related to suggested spell corrections for a query.</p>
|
|
34
|
+
*/
|
|
35
|
+
SpellCorrectedQueries?: SpellCorrectedQuery[];
|
|
36
|
+
}
|
|
2
37
|
export interface QueryRequest {
|
|
3
38
|
/**
|
|
4
39
|
* <p>The unique identifier of the index to search. The identifier is
|
|
@@ -87,9 +122,11 @@ export interface QueryRequest {
|
|
|
87
122
|
*/
|
|
88
123
|
SpellCorrectionConfiguration?: SpellCorrectionConfiguration;
|
|
89
124
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
125
|
+
/**
|
|
126
|
+
* @internal
|
|
127
|
+
*/
|
|
128
|
+
export declare const QueryResultFilterSensitiveLog: (obj: QueryResult) => any;
|
|
129
|
+
/**
|
|
130
|
+
* @internal
|
|
131
|
+
*/
|
|
132
|
+
export declare const QueryRequestFilterSensitiveLog: (obj: QueryRequest) => any;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
3
|
import { KendraClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KendraClient";
|
|
4
|
-
import { QueryResult } from "../models/
|
|
5
|
-
import { QueryRequest } from "../models/models_1";
|
|
4
|
+
import { QueryRequest, QueryResult } from "../models/models_1";
|
|
6
5
|
export interface QueryCommandInput extends QueryRequest {
|
|
7
6
|
}
|
|
8
7
|
export interface QueryCommandOutput extends QueryResult, __MetadataBearer {
|