@aws-sdk/client-kendra 3.357.0 → 3.359.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/README.md +8 -0
- package/dist-cjs/Kendra.js +2 -0
- package/dist-cjs/commands/RetrieveCommand.js +46 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +96 -2
- package/dist-es/Kendra.js +2 -0
- package/dist-es/commands/RetrieveCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +92 -0
- package/dist-types/Kendra.d.ts +7 -0
- package/dist-types/KendraClient.d.ts +3 -2
- package/dist-types/commands/QueryCommand.d.ts +15 -12
- package/dist-types/commands/RetrieveCommand.d.ts +263 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +30 -29
- package/dist-types/models/models_1.d.ts +145 -46
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/Kendra.d.ts +17 -0
- package/dist-types/ts3.4/KendraClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/RetrieveCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_1.d.ts +22 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
- package/package.json +6 -6
|
@@ -26,7 +26,7 @@ export interface QueryResultItem {
|
|
|
26
26
|
*/
|
|
27
27
|
Format?: QueryResultFormat | string;
|
|
28
28
|
/**
|
|
29
|
-
* <p>One or more additional attributes associated with the query result.</p>
|
|
29
|
+
* <p>One or more additional fields/attributes associated with the query result.</p>
|
|
30
30
|
*/
|
|
31
31
|
AdditionalAttributes?: AdditionalResultAttribute[];
|
|
32
32
|
/**
|
|
@@ -48,26 +48,25 @@ export interface QueryResultItem {
|
|
|
48
48
|
*/
|
|
49
49
|
DocumentURI?: string;
|
|
50
50
|
/**
|
|
51
|
-
* <p>An array of document attributes assigned to a document in the search results.
|
|
52
|
-
* example, the document author (<code>_author</code>) or the source URI
|
|
53
|
-
*
|
|
51
|
+
* <p>An array of document fields/attributes assigned to a document in the search results.
|
|
52
|
+
* For example, the document author (<code>_author</code>) or the source URI
|
|
53
|
+
* (<code>_source_uri</code>) of the document.</p>
|
|
54
54
|
*/
|
|
55
55
|
DocumentAttributes?: DocumentAttribute[];
|
|
56
56
|
/**
|
|
57
|
-
* <p>Indicates the confidence
|
|
58
|
-
*
|
|
59
|
-
* <code>VERY_HIGH</code>, <code>HIGH</code>, <code>MEDIUM</code> and <code>LOW</code>.
|
|
60
|
-
* can use the score to determine if a response meets the confidence needed for your
|
|
57
|
+
* <p>Indicates the confidence level of Amazon Kendra providing a relevant result for
|
|
58
|
+
* the query. Each result is placed into a bin that indicates the confidence,
|
|
59
|
+
* <code>VERY_HIGH</code>, <code>HIGH</code>, <code>MEDIUM</code> and <code>LOW</code>.
|
|
60
|
+
* You can use the score to determine if a response meets the confidence needed for your
|
|
61
61
|
* application.</p>
|
|
62
62
|
* <p>The field is only set to <code>LOW</code> when the <code>Type</code> field is set to
|
|
63
|
-
* <code>DOCUMENT</code> and Amazon Kendra is not confident that the result
|
|
64
|
-
* the query.</p>
|
|
63
|
+
* <code>DOCUMENT</code> and Amazon Kendra is not confident that the result is
|
|
64
|
+
* relevant to the query.</p>
|
|
65
65
|
*/
|
|
66
66
|
ScoreAttributes?: ScoreAttributes;
|
|
67
67
|
/**
|
|
68
68
|
* <p>A token that identifies a particular result from a particular query. Use this token to
|
|
69
|
-
* provide click-through feedback for the result. For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/submitting-feedback.html">Submitting feedback
|
|
70
|
-
* </a>.</p>
|
|
69
|
+
* provide click-through feedback for the result. For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/submitting-feedback.html">Submitting feedback</a>.</p>
|
|
71
70
|
*/
|
|
72
71
|
FeedbackToken?: string;
|
|
73
72
|
/**
|
|
@@ -138,6 +137,52 @@ export interface Warning {
|
|
|
138
137
|
*/
|
|
139
138
|
Code?: WarningCode | string;
|
|
140
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* @public
|
|
142
|
+
* <p>A single retrieved relevant passage result.</p>
|
|
143
|
+
*/
|
|
144
|
+
export interface RetrieveResultItem {
|
|
145
|
+
/**
|
|
146
|
+
* <p>The identifier of the relevant passage result.</p>
|
|
147
|
+
*/
|
|
148
|
+
Id?: string;
|
|
149
|
+
/**
|
|
150
|
+
* <p>The identifier of the document.</p>
|
|
151
|
+
*/
|
|
152
|
+
DocumentId?: string;
|
|
153
|
+
/**
|
|
154
|
+
* <p>The title of the document.</p>
|
|
155
|
+
*/
|
|
156
|
+
DocumentTitle?: string;
|
|
157
|
+
/**
|
|
158
|
+
* <p>The contents of the relevant passage.</p>
|
|
159
|
+
*/
|
|
160
|
+
Content?: string;
|
|
161
|
+
/**
|
|
162
|
+
* <p>The URI of the original location of the document.</p>
|
|
163
|
+
*/
|
|
164
|
+
DocumentURI?: string;
|
|
165
|
+
/**
|
|
166
|
+
* <p>An array of document fields/attributes assigned to a document in the
|
|
167
|
+
* search results. For example, the document author (<code>_author</code>)
|
|
168
|
+
* or the source URI (<code>_source_uri</code>) of the document.</p>
|
|
169
|
+
*/
|
|
170
|
+
DocumentAttributes?: DocumentAttribute[];
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* @public
|
|
174
|
+
*/
|
|
175
|
+
export interface RetrieveResult {
|
|
176
|
+
/**
|
|
177
|
+
* <p>The identifier of query used for the search. You also use <code>QueryId</code> to
|
|
178
|
+
* identify the search when using the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_SubmitFeedback.html">Submitfeedback</a> API.</p>
|
|
179
|
+
*/
|
|
180
|
+
QueryId?: string;
|
|
181
|
+
/**
|
|
182
|
+
* <p>The results of the retrieved relevant passages for the search.</p>
|
|
183
|
+
*/
|
|
184
|
+
ResultItems?: RetrieveResultItem[];
|
|
185
|
+
}
|
|
141
186
|
/**
|
|
142
187
|
* @public
|
|
143
188
|
* <p>The resource you want to use is currently in use. Please check you have provided the
|
|
@@ -819,8 +864,8 @@ export interface AttributeFilter {
|
|
|
819
864
|
*/
|
|
820
865
|
export interface QueryResult {
|
|
821
866
|
/**
|
|
822
|
-
* <p>The identifier for the search. You use <code>QueryId</code> to identify the
|
|
823
|
-
* search when using the
|
|
867
|
+
* <p>The identifier for the search. You also use <code>QueryId</code> to identify the
|
|
868
|
+
* search when using the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_SubmitFeedback.html">SubmitFeedback</a> API.</p>
|
|
824
869
|
*/
|
|
825
870
|
QueryId?: string;
|
|
826
871
|
/**
|
|
@@ -829,13 +874,13 @@ export interface QueryResult {
|
|
|
829
874
|
ResultItems?: QueryResultItem[];
|
|
830
875
|
/**
|
|
831
876
|
* <p>Contains the facet results. A <code>FacetResult</code> contains the counts for each
|
|
832
|
-
* attribute key that was specified in the <code>Facets</code> input parameter.</p>
|
|
877
|
+
* field/attribute key that was specified in the <code>Facets</code> input parameter.</p>
|
|
833
878
|
*/
|
|
834
879
|
FacetResults?: FacetResult[];
|
|
835
880
|
/**
|
|
836
|
-
* <p>The total number of items found by the search
|
|
837
|
-
* items. For example, if the search found 192 items, you can only retrieve the first
|
|
838
|
-
* the items.</p>
|
|
881
|
+
* <p>The total number of items found by the search. However, you can only retrieve up to
|
|
882
|
+
* 100 items. For example, if the search found 192 items, you can only retrieve the first
|
|
883
|
+
* 100 of the items.</p>
|
|
839
884
|
*/
|
|
840
885
|
TotalNumberOfResults?: number;
|
|
841
886
|
/**
|
|
@@ -885,6 +930,64 @@ export interface AttributeSuggestionsGetConfig {
|
|
|
885
930
|
*/
|
|
886
931
|
UserContext?: UserContext;
|
|
887
932
|
}
|
|
933
|
+
/**
|
|
934
|
+
* @public
|
|
935
|
+
*/
|
|
936
|
+
export interface RetrieveRequest {
|
|
937
|
+
/**
|
|
938
|
+
* <p>The identifier of the index to retrieve relevant passages for the
|
|
939
|
+
* search.</p>
|
|
940
|
+
*/
|
|
941
|
+
IndexId: string | undefined;
|
|
942
|
+
/**
|
|
943
|
+
* <p>The input query text to retrieve relevant passages for the search.
|
|
944
|
+
* Amazon Kendra truncates queries at 30 token words, which excludes
|
|
945
|
+
* punctuation and stop words. Truncation still applies if you use Boolean
|
|
946
|
+
* or more advanced, complex queries.</p>
|
|
947
|
+
*/
|
|
948
|
+
QueryText: string | undefined;
|
|
949
|
+
/**
|
|
950
|
+
* <p>Filters search results by document fields/attributes. You can only provide
|
|
951
|
+
* one attribute filter; however, the <code>AndAllFilters</code>, <code>NotFilter</code>,
|
|
952
|
+
* and <code>OrAllFilters</code> parameters contain a list of other filters.</p>
|
|
953
|
+
* <p>The <code>AttributeFilter</code> parameter means you can create a set of
|
|
954
|
+
* filtering rules that a document must satisfy to be included in the query results.</p>
|
|
955
|
+
*/
|
|
956
|
+
AttributeFilter?: AttributeFilter;
|
|
957
|
+
/**
|
|
958
|
+
* <p>A list of document fields/attributes to include in the response. You can limit
|
|
959
|
+
* the response to include certain document fields. By default, all document
|
|
960
|
+
* fields are included in the response.</p>
|
|
961
|
+
*/
|
|
962
|
+
RequestedDocumentAttributes?: string[];
|
|
963
|
+
/**
|
|
964
|
+
* <p>Overrides relevance tuning configurations of fields/attributes set at the index
|
|
965
|
+
* level.</p>
|
|
966
|
+
* <p>If you use this API to override the relevance tuning configured at the index level,
|
|
967
|
+
* but there is no relevance tuning configured at the index level, then
|
|
968
|
+
* Amazon Kendra does not apply any relevance tuning.</p>
|
|
969
|
+
* <p>If there is relevance tuning configured for fields at the index level, and you use
|
|
970
|
+
* this API to override only some of these fields, then for the fields you did not
|
|
971
|
+
* override, the importance is set to 1.</p>
|
|
972
|
+
*/
|
|
973
|
+
DocumentRelevanceOverrideConfigurations?: DocumentRelevanceConfiguration[];
|
|
974
|
+
/**
|
|
975
|
+
* <p>Retrieved relevant passages are returned in pages the size of the
|
|
976
|
+
* <code>PageSize</code> parameter. By default, Amazon Kendra returns the first page
|
|
977
|
+
* of results. Use this parameter to get result pages after the first one.</p>
|
|
978
|
+
*/
|
|
979
|
+
PageNumber?: number;
|
|
980
|
+
/**
|
|
981
|
+
* <p>Sets the number of retrieved relevant passages that are returned in each page of
|
|
982
|
+
* results. The default page size is 10. The maximum number of results returned is 100.
|
|
983
|
+
* If you ask for more than 100 results, only 100 are returned.</p>
|
|
984
|
+
*/
|
|
985
|
+
PageSize?: number;
|
|
986
|
+
/**
|
|
987
|
+
* <p>The user context token or user and group information.</p>
|
|
988
|
+
*/
|
|
989
|
+
UserContext?: UserContext;
|
|
990
|
+
}
|
|
888
991
|
/**
|
|
889
992
|
* @public
|
|
890
993
|
*/
|
|
@@ -931,8 +1034,7 @@ export interface GetQuerySuggestionsRequest {
|
|
|
931
1034
|
*/
|
|
932
1035
|
export interface QueryRequest {
|
|
933
1036
|
/**
|
|
934
|
-
* <p>The identifier of the index
|
|
935
|
-
* from the <code>CreateIndex</code> API.</p>
|
|
1037
|
+
* <p>The identifier of the index for the search.</p>
|
|
936
1038
|
*/
|
|
937
1039
|
IndexId: string | undefined;
|
|
938
1040
|
/**
|
|
@@ -942,46 +1044,43 @@ export interface QueryRequest {
|
|
|
942
1044
|
*/
|
|
943
1045
|
QueryText?: string;
|
|
944
1046
|
/**
|
|
945
|
-
* <p>
|
|
946
|
-
* attribute filter; however, the <code>AndAllFilters</code>, <code>NotFilter</code>,
|
|
947
|
-
*
|
|
948
|
-
* <p>The <code>AttributeFilter</code> parameter
|
|
949
|
-
* rules that a document must satisfy to be included in the query results.</p>
|
|
1047
|
+
* <p>Filters search results by document fields/attributes. You can only provide
|
|
1048
|
+
* one attribute filter; however, the <code>AndAllFilters</code>, <code>NotFilter</code>,
|
|
1049
|
+
* and <code>OrAllFilters</code> parameters contain a list of other filters.</p>
|
|
1050
|
+
* <p>The <code>AttributeFilter</code> parameter means you can create a set of
|
|
1051
|
+
* filtering rules that a document must satisfy to be included in the query results.</p>
|
|
950
1052
|
*/
|
|
951
1053
|
AttributeFilter?: AttributeFilter;
|
|
952
1054
|
/**
|
|
953
|
-
* <p>An array of documents attributes. Amazon Kendra returns a
|
|
954
|
-
* key specified. This helps your users narrow their search.</p>
|
|
1055
|
+
* <p>An array of documents fields/attributes for faceted search. Amazon Kendra returns a
|
|
1056
|
+
* count for each field key specified. This helps your users narrow their search.</p>
|
|
955
1057
|
*/
|
|
956
1058
|
Facets?: Facet[];
|
|
957
1059
|
/**
|
|
958
|
-
* <p>An array of document attributes to include in the response. You can limit the
|
|
959
|
-
* to include certain document
|
|
960
|
-
* the response.</p>
|
|
1060
|
+
* <p>An array of document fields/attributes to include in the response. You can limit the
|
|
1061
|
+
* response to include certain document fields. By default, all document attributes are
|
|
1062
|
+
* included in the response.</p>
|
|
961
1063
|
*/
|
|
962
1064
|
RequestedDocumentAttributes?: string[];
|
|
963
1065
|
/**
|
|
964
|
-
* <p>Sets the type of query. Only results for the specified
|
|
1066
|
+
* <p>Sets the type of query result or response. Only results for the specified type are
|
|
1067
|
+
* returned.</p>
|
|
965
1068
|
*/
|
|
966
1069
|
QueryResultTypeFilter?: QueryResultType | string;
|
|
967
1070
|
/**
|
|
968
|
-
* <p>Overrides relevance tuning configurations of fields
|
|
969
|
-
*
|
|
970
|
-
*
|
|
971
|
-
*
|
|
972
|
-
*
|
|
973
|
-
*
|
|
974
|
-
* to
|
|
975
|
-
* tuning that is configured at the index level.</p>
|
|
976
|
-
* <p>If there is relevance tuning configured for fields at the index level, but you use this
|
|
977
|
-
* API to override only some of these fields, then for the fields you did not override, the
|
|
978
|
-
* importance is set to 1.</p>
|
|
1071
|
+
* <p>Overrides relevance tuning configurations of fields/attributes set at the index level.</p>
|
|
1072
|
+
* <p>If you use this API to override the relevance tuning configured at the index level, but there
|
|
1073
|
+
* is no relevance tuning configured at the index level, then Amazon Kendra does not apply any
|
|
1074
|
+
* relevance tuning.</p>
|
|
1075
|
+
* <p>If there is relevance tuning configured for fields at the index level, and you use this API to
|
|
1076
|
+
* override only some of these fields, then for the fields you did not override, the importance is
|
|
1077
|
+
* set to 1.</p>
|
|
979
1078
|
*/
|
|
980
1079
|
DocumentRelevanceOverrideConfigurations?: DocumentRelevanceConfiguration[];
|
|
981
1080
|
/**
|
|
982
|
-
* <p>Query results are returned in pages the size of the <code>PageSize</code> parameter.
|
|
983
|
-
* default, Amazon Kendra returns the first page of results. Use this parameter to
|
|
984
|
-
* result pages after the first one.</p>
|
|
1081
|
+
* <p>Query results are returned in pages the size of the <code>PageSize</code> parameter.
|
|
1082
|
+
* By default, Amazon Kendra returns the first page of results. Use this parameter to
|
|
1083
|
+
* get result pages after the first one.</p>
|
|
985
1084
|
*/
|
|
986
1085
|
PageNumber?: number;
|
|
987
1086
|
/**
|
|
@@ -996,7 +1095,7 @@ export interface QueryRequest {
|
|
|
996
1095
|
* results should be sorted in ascending or descending order. In the case of ties in sorting
|
|
997
1096
|
* the results, the results are sorted by relevance.</p>
|
|
998
1097
|
* <p>If you don't provide sorting configuration, the results are sorted by the relevance that
|
|
999
|
-
*
|
|
1098
|
+
* Amazon Kendra determines for the result.</p>
|
|
1000
1099
|
*/
|
|
1001
1100
|
SortingConfiguration?: SortingConfiguration;
|
|
1002
1101
|
/**
|
|
@@ -52,6 +52,7 @@ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } fro
|
|
|
52
52
|
import { ListThesauriCommandInput, ListThesauriCommandOutput } from "../commands/ListThesauriCommand";
|
|
53
53
|
import { PutPrincipalMappingCommandInput, PutPrincipalMappingCommandOutput } from "../commands/PutPrincipalMappingCommand";
|
|
54
54
|
import { QueryCommandInput, QueryCommandOutput } from "../commands/QueryCommand";
|
|
55
|
+
import { RetrieveCommandInput, RetrieveCommandOutput } from "../commands/RetrieveCommand";
|
|
55
56
|
import { StartDataSourceSyncJobCommandInput, StartDataSourceSyncJobCommandOutput } from "../commands/StartDataSourceSyncJobCommand";
|
|
56
57
|
import { StopDataSourceSyncJobCommandInput, StopDataSourceSyncJobCommandOutput } from "../commands/StopDataSourceSyncJobCommand";
|
|
57
58
|
import { SubmitFeedbackCommandInput, SubmitFeedbackCommandOutput } from "../commands/SubmitFeedbackCommand";
|
|
@@ -273,6 +274,10 @@ export declare const se_PutPrincipalMappingCommand: (input: PutPrincipalMappingC
|
|
|
273
274
|
* serializeAws_json1_1QueryCommand
|
|
274
275
|
*/
|
|
275
276
|
export declare const se_QueryCommand: (input: QueryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
277
|
+
/**
|
|
278
|
+
* serializeAws_json1_1RetrieveCommand
|
|
279
|
+
*/
|
|
280
|
+
export declare const se_RetrieveCommand: (input: RetrieveCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
276
281
|
/**
|
|
277
282
|
* serializeAws_json1_1StartDataSourceSyncJobCommand
|
|
278
283
|
*/
|
|
@@ -533,6 +538,10 @@ export declare const de_PutPrincipalMappingCommand: (output: __HttpResponse, con
|
|
|
533
538
|
* deserializeAws_json1_1QueryCommand
|
|
534
539
|
*/
|
|
535
540
|
export declare const de_QueryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<QueryCommandOutput>;
|
|
541
|
+
/**
|
|
542
|
+
* deserializeAws_json1_1RetrieveCommand
|
|
543
|
+
*/
|
|
544
|
+
export declare const de_RetrieveCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RetrieveCommandOutput>;
|
|
536
545
|
/**
|
|
537
546
|
* deserializeAws_json1_1StartDataSourceSyncJobCommand
|
|
538
547
|
*/
|
|
@@ -204,6 +204,10 @@ import {
|
|
|
204
204
|
PutPrincipalMappingCommandOutput,
|
|
205
205
|
} from "./commands/PutPrincipalMappingCommand";
|
|
206
206
|
import { QueryCommandInput, QueryCommandOutput } from "./commands/QueryCommand";
|
|
207
|
+
import {
|
|
208
|
+
RetrieveCommandInput,
|
|
209
|
+
RetrieveCommandOutput,
|
|
210
|
+
} from "./commands/RetrieveCommand";
|
|
207
211
|
import {
|
|
208
212
|
StartDataSourceSyncJobCommandInput,
|
|
209
213
|
StartDataSourceSyncJobCommandOutput,
|
|
@@ -952,6 +956,19 @@ export interface Kendra {
|
|
|
952
956
|
options: __HttpHandlerOptions,
|
|
953
957
|
cb: (err: any, data?: QueryCommandOutput) => void
|
|
954
958
|
): void;
|
|
959
|
+
retrieve(
|
|
960
|
+
args: RetrieveCommandInput,
|
|
961
|
+
options?: __HttpHandlerOptions
|
|
962
|
+
): Promise<RetrieveCommandOutput>;
|
|
963
|
+
retrieve(
|
|
964
|
+
args: RetrieveCommandInput,
|
|
965
|
+
cb: (err: any, data?: RetrieveCommandOutput) => void
|
|
966
|
+
): void;
|
|
967
|
+
retrieve(
|
|
968
|
+
args: RetrieveCommandInput,
|
|
969
|
+
options: __HttpHandlerOptions,
|
|
970
|
+
cb: (err: any, data?: RetrieveCommandOutput) => void
|
|
971
|
+
): void;
|
|
955
972
|
startDataSourceSyncJob(
|
|
956
973
|
args: StartDataSourceSyncJobCommandInput,
|
|
957
974
|
options?: __HttpHandlerOptions
|
|
@@ -251,6 +251,10 @@ import {
|
|
|
251
251
|
PutPrincipalMappingCommandOutput,
|
|
252
252
|
} from "./commands/PutPrincipalMappingCommand";
|
|
253
253
|
import { QueryCommandInput, QueryCommandOutput } from "./commands/QueryCommand";
|
|
254
|
+
import {
|
|
255
|
+
RetrieveCommandInput,
|
|
256
|
+
RetrieveCommandOutput,
|
|
257
|
+
} from "./commands/RetrieveCommand";
|
|
254
258
|
import {
|
|
255
259
|
StartDataSourceSyncJobCommandInput,
|
|
256
260
|
StartDataSourceSyncJobCommandOutput,
|
|
@@ -362,6 +366,7 @@ export type ServiceInputTypes =
|
|
|
362
366
|
| ListThesauriCommandInput
|
|
363
367
|
| PutPrincipalMappingCommandInput
|
|
364
368
|
| QueryCommandInput
|
|
369
|
+
| RetrieveCommandInput
|
|
365
370
|
| StartDataSourceSyncJobCommandInput
|
|
366
371
|
| StopDataSourceSyncJobCommandInput
|
|
367
372
|
| SubmitFeedbackCommandInput
|
|
@@ -428,6 +433,7 @@ export type ServiceOutputTypes =
|
|
|
428
433
|
| ListThesauriCommandOutput
|
|
429
434
|
| PutPrincipalMappingCommandOutput
|
|
430
435
|
| QueryCommandOutput
|
|
436
|
+
| RetrieveCommandOutput
|
|
431
437
|
| StartDataSourceSyncJobCommandOutput
|
|
432
438
|
| StopDataSourceSyncJobCommandOutput
|
|
433
439
|
| SubmitFeedbackCommandOutput
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@aws-sdk/types";
|
|
9
|
+
import {
|
|
10
|
+
KendraClientResolvedConfig,
|
|
11
|
+
ServiceInputTypes,
|
|
12
|
+
ServiceOutputTypes,
|
|
13
|
+
} from "../KendraClient";
|
|
14
|
+
import { RetrieveRequest, RetrieveResult } from "../models/models_1";
|
|
15
|
+
export { __MetadataBearer, $Command };
|
|
16
|
+
export interface RetrieveCommandInput extends RetrieveRequest {}
|
|
17
|
+
export interface RetrieveCommandOutput
|
|
18
|
+
extends RetrieveResult,
|
|
19
|
+
__MetadataBearer {}
|
|
20
|
+
export declare class RetrieveCommand extends $Command<
|
|
21
|
+
RetrieveCommandInput,
|
|
22
|
+
RetrieveCommandOutput,
|
|
23
|
+
KendraClientResolvedConfig
|
|
24
|
+
> {
|
|
25
|
+
readonly input: RetrieveCommandInput;
|
|
26
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
27
|
+
constructor(input: RetrieveCommandInput);
|
|
28
|
+
resolveMiddleware(
|
|
29
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
30
|
+
configuration: KendraClientResolvedConfig,
|
|
31
|
+
options?: __HttpHandlerOptions
|
|
32
|
+
): Handler<RetrieveCommandInput, RetrieveCommandOutput>;
|
|
33
|
+
private serialize;
|
|
34
|
+
private deserialize;
|
|
35
|
+
}
|
|
@@ -50,6 +50,7 @@ export * from "./ListTagsForResourceCommand";
|
|
|
50
50
|
export * from "./ListThesauriCommand";
|
|
51
51
|
export * from "./PutPrincipalMappingCommand";
|
|
52
52
|
export * from "./QueryCommand";
|
|
53
|
+
export * from "./RetrieveCommand";
|
|
53
54
|
export * from "./StartDataSourceSyncJobCommand";
|
|
54
55
|
export * from "./StopDataSourceSyncJobCommand";
|
|
55
56
|
export * from "./SubmitFeedbackCommand";
|
|
@@ -67,6 +67,18 @@ export interface Warning {
|
|
|
67
67
|
Message?: string;
|
|
68
68
|
Code?: WarningCode | string;
|
|
69
69
|
}
|
|
70
|
+
export interface RetrieveResultItem {
|
|
71
|
+
Id?: string;
|
|
72
|
+
DocumentId?: string;
|
|
73
|
+
DocumentTitle?: string;
|
|
74
|
+
Content?: string;
|
|
75
|
+
DocumentURI?: string;
|
|
76
|
+
DocumentAttributes?: DocumentAttribute[];
|
|
77
|
+
}
|
|
78
|
+
export interface RetrieveResult {
|
|
79
|
+
QueryId?: string;
|
|
80
|
+
ResultItems?: RetrieveResultItem[];
|
|
81
|
+
}
|
|
70
82
|
export declare class ResourceInUseException extends __BaseException {
|
|
71
83
|
readonly name: "ResourceInUseException";
|
|
72
84
|
readonly $fault: "client";
|
|
@@ -234,6 +246,16 @@ export interface AttributeSuggestionsGetConfig {
|
|
|
234
246
|
AttributeFilter?: AttributeFilter;
|
|
235
247
|
UserContext?: UserContext;
|
|
236
248
|
}
|
|
249
|
+
export interface RetrieveRequest {
|
|
250
|
+
IndexId: string | undefined;
|
|
251
|
+
QueryText: string | undefined;
|
|
252
|
+
AttributeFilter?: AttributeFilter;
|
|
253
|
+
RequestedDocumentAttributes?: string[];
|
|
254
|
+
DocumentRelevanceOverrideConfigurations?: DocumentRelevanceConfiguration[];
|
|
255
|
+
PageNumber?: number;
|
|
256
|
+
PageSize?: number;
|
|
257
|
+
UserContext?: UserContext;
|
|
258
|
+
}
|
|
237
259
|
export interface GetQuerySuggestionsRequest {
|
|
238
260
|
IndexId: string | undefined;
|
|
239
261
|
QueryText: string | undefined;
|
|
@@ -211,6 +211,10 @@ import {
|
|
|
211
211
|
QueryCommandInput,
|
|
212
212
|
QueryCommandOutput,
|
|
213
213
|
} from "../commands/QueryCommand";
|
|
214
|
+
import {
|
|
215
|
+
RetrieveCommandInput,
|
|
216
|
+
RetrieveCommandOutput,
|
|
217
|
+
} from "../commands/RetrieveCommand";
|
|
214
218
|
import {
|
|
215
219
|
StartDataSourceSyncJobCommandInput,
|
|
216
220
|
StartDataSourceSyncJobCommandOutput,
|
|
@@ -471,6 +475,10 @@ export declare const se_QueryCommand: (
|
|
|
471
475
|
input: QueryCommandInput,
|
|
472
476
|
context: __SerdeContext
|
|
473
477
|
) => Promise<__HttpRequest>;
|
|
478
|
+
export declare const se_RetrieveCommand: (
|
|
479
|
+
input: RetrieveCommandInput,
|
|
480
|
+
context: __SerdeContext
|
|
481
|
+
) => Promise<__HttpRequest>;
|
|
474
482
|
export declare const se_StartDataSourceSyncJobCommand: (
|
|
475
483
|
input: StartDataSourceSyncJobCommandInput,
|
|
476
484
|
context: __SerdeContext
|
|
@@ -731,6 +739,10 @@ export declare const de_QueryCommand: (
|
|
|
731
739
|
output: __HttpResponse,
|
|
732
740
|
context: __SerdeContext
|
|
733
741
|
) => Promise<QueryCommandOutput>;
|
|
742
|
+
export declare const de_RetrieveCommand: (
|
|
743
|
+
output: __HttpResponse,
|
|
744
|
+
context: __SerdeContext
|
|
745
|
+
) => Promise<RetrieveCommandOutput>;
|
|
734
746
|
export declare const de_StartDataSourceSyncJobCommand: (
|
|
735
747
|
output: __HttpResponse,
|
|
736
748
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-kendra",
|
|
3
3
|
"description": "AWS SDK for JavaScript Kendra Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.359.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.359.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.357.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.358.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.357.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.357.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.357.0",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"@aws-sdk/middleware-user-agent": "3.357.0",
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.357.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.357.0",
|
|
42
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
+
"@aws-sdk/smithy-client": "3.358.0",
|
|
43
43
|
"@aws-sdk/types": "3.357.0",
|
|
44
44
|
"@aws-sdk/url-parser": "3.357.0",
|
|
45
45
|
"@aws-sdk/util-base64": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.358.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.358.0",
|
|
50
50
|
"@aws-sdk/util-endpoints": "3.357.0",
|
|
51
51
|
"@aws-sdk/util-retry": "3.357.0",
|
|
52
52
|
"@aws-sdk/util-user-agent-browser": "3.357.0",
|