@aws-sdk/client-kendra 3.321.1 → 3.326.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 (77) hide show
  1. package/dist-cjs/models/models_0.js +10 -5
  2. package/dist-cjs/models/models_1.js +4 -1
  3. package/dist-cjs/protocols/Aws_json1_1.js +56 -2
  4. package/dist-es/models/models_0.js +8 -3
  5. package/dist-es/models/models_1.js +3 -0
  6. package/dist-es/protocols/Aws_json1_1.js +56 -2
  7. package/dist-types/commands/AssociateEntitiesToExperienceCommand.d.ts +11 -0
  8. package/dist-types/commands/AssociatePersonasToEntitiesCommand.d.ts +11 -0
  9. package/dist-types/commands/BatchDeleteDocumentCommand.d.ts +12 -0
  10. package/dist-types/commands/BatchDeleteFeaturedResultsSetCommand.d.ts +12 -0
  11. package/dist-types/commands/BatchGetDocumentStatusCommand.d.ts +20 -0
  12. package/dist-types/commands/BatchPutDocumentCommand.d.ts +12 -0
  13. package/dist-types/commands/ClearQuerySuggestionsCommand.d.ts +4 -0
  14. package/dist-types/commands/CreateAccessControlConfigurationCommand.d.ts +6 -0
  15. package/dist-types/commands/CreateDataSourceCommand.d.ts +6 -0
  16. package/dist-types/commands/CreateExperienceCommand.d.ts +6 -0
  17. package/dist-types/commands/CreateFaqCommand.d.ts +6 -0
  18. package/dist-types/commands/CreateFeaturedResultsSetCommand.d.ts +21 -0
  19. package/dist-types/commands/CreateIndexCommand.d.ts +6 -0
  20. package/dist-types/commands/CreateQuerySuggestionsBlockListCommand.d.ts +7 -1
  21. package/dist-types/commands/CreateThesaurusCommand.d.ts +6 -0
  22. package/dist-types/commands/DeleteAccessControlConfigurationCommand.d.ts +4 -0
  23. package/dist-types/commands/DeleteDataSourceCommand.d.ts +4 -0
  24. package/dist-types/commands/DeleteExperienceCommand.d.ts +4 -0
  25. package/dist-types/commands/DeleteFaqCommand.d.ts +4 -0
  26. package/dist-types/commands/DeleteIndexCommand.d.ts +4 -0
  27. package/dist-types/commands/DeletePrincipalMappingCommand.d.ts +4 -0
  28. package/dist-types/commands/DeleteQuerySuggestionsBlockListCommand.d.ts +4 -0
  29. package/dist-types/commands/DeleteThesaurusCommand.d.ts +4 -0
  30. package/dist-types/commands/DescribeAccessControlConfigurationCommand.d.ts +28 -0
  31. package/dist-types/commands/DescribeDataSourceCommand.d.ts +570 -0
  32. package/dist-types/commands/DescribeExperienceCommand.d.ts +34 -0
  33. package/dist-types/commands/DescribeFaqCommand.d.ts +20 -0
  34. package/dist-types/commands/DescribeFeaturedResultsSetCommand.d.ts +26 -0
  35. package/dist-types/commands/DescribeIndexCommand.d.ts +72 -0
  36. package/dist-types/commands/DescribePrincipalMappingCommand.d.ts +17 -0
  37. package/dist-types/commands/DescribeQuerySuggestionsBlockListCommand.d.ts +20 -0
  38. package/dist-types/commands/DescribeQuerySuggestionsConfigCommand.d.ts +14 -0
  39. package/dist-types/commands/DescribeThesaurusCommand.d.ts +21 -0
  40. package/dist-types/commands/DisassociateEntitiesFromExperienceCommand.d.ts +11 -0
  41. package/dist-types/commands/DisassociatePersonasFromEntitiesCommand.d.ts +11 -0
  42. package/dist-types/commands/GetQuerySuggestionsCommand.d.ts +129 -1
  43. package/dist-types/commands/GetSnapshotsCommand.d.ts +18 -0
  44. package/dist-types/commands/ListAccessControlConfigurationsCommand.d.ts +11 -0
  45. package/dist-types/commands/ListDataSourceSyncJobsCommand.d.ts +24 -0
  46. package/dist-types/commands/ListDataSourcesCommand.d.ts +17 -0
  47. package/dist-types/commands/ListEntityPersonasCommand.d.ts +14 -0
  48. package/dist-types/commands/ListExperienceEntitiesCommand.d.ts +19 -0
  49. package/dist-types/commands/ListExperiencesCommand.d.ts +20 -0
  50. package/dist-types/commands/ListFaqsCommand.d.ts +17 -0
  51. package/dist-types/commands/ListFeaturedResultsSetsCommand.d.ts +15 -0
  52. package/dist-types/commands/ListGroupsOlderThanOrderingIdCommand.d.ts +12 -0
  53. package/dist-types/commands/ListIndicesCommand.d.ts +16 -0
  54. package/dist-types/commands/ListQuerySuggestionsBlockListsCommand.d.ts +16 -0
  55. package/dist-types/commands/ListTagsForResourceCommand.d.ts +11 -0
  56. package/dist-types/commands/ListThesauriCommand.d.ts +15 -0
  57. package/dist-types/commands/PutPrincipalMappingCommand.d.ts +4 -0
  58. package/dist-types/commands/QueryCommand.d.ts +200 -0
  59. package/dist-types/commands/StartDataSourceSyncJobCommand.d.ts +6 -0
  60. package/dist-types/commands/StopDataSourceSyncJobCommand.d.ts +4 -0
  61. package/dist-types/commands/SubmitFeedbackCommand.d.ts +4 -0
  62. package/dist-types/commands/TagResourceCommand.d.ts +4 -0
  63. package/dist-types/commands/UntagResourceCommand.d.ts +4 -0
  64. package/dist-types/commands/UpdateAccessControlConfigurationCommand.d.ts +4 -0
  65. package/dist-types/commands/UpdateDataSourceCommand.d.ts +4 -0
  66. package/dist-types/commands/UpdateExperienceCommand.d.ts +4 -0
  67. package/dist-types/commands/UpdateFeaturedResultsSetCommand.d.ts +21 -0
  68. package/dist-types/commands/UpdateIndexCommand.d.ts +4 -0
  69. package/dist-types/commands/UpdateQuerySuggestionsBlockListCommand.d.ts +4 -0
  70. package/dist-types/commands/UpdateQuerySuggestionsConfigCommand.d.ts +14 -1
  71. package/dist-types/commands/UpdateThesaurusCommand.d.ts +4 -0
  72. package/dist-types/models/models_0.d.ts +173 -210
  73. package/dist-types/models/models_1.d.ts +213 -2
  74. package/dist-types/ts3.4/commands/GetQuerySuggestionsCommand.d.ts +2 -4
  75. package/dist-types/ts3.4/models/models_0.d.ts +40 -46
  76. package/dist-types/ts3.4/models/models_1.d.ts +53 -3
  77. package/package.json +16 -16
@@ -1,6 +1,143 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
2
  import { KendraServiceException as __BaseException } from "./KendraServiceException";
3
- import { CapacityUnitsConfiguration, CustomDocumentEnrichmentConfiguration, DataSourceConfiguration, DataSourceVpcConfiguration, DocumentAttribute, DocumentAttributeValue, DocumentAttributeValueType, DocumentMetadataConfiguration, DocumentRelevanceConfiguration, ExperienceConfiguration, FeaturedDocument, FeaturedResultsItem, FeaturedResultsSet, FeaturedResultsSetStatus, HierarchicalPrincipal, Mode, Principal, QueryResultItem, QueryResultType, S3Path, SortingConfiguration, SpellCorrectedQuery, SpellCorrectionConfiguration, Tag, UserContext, UserContextPolicy, UserGroupResolutionConfiguration, UserTokenConfiguration, Warning } from "./models_0";
3
+ import { AdditionalResultAttribute, AttributeSuggestionsUpdateConfig, CapacityUnitsConfiguration, CustomDocumentEnrichmentConfiguration, DataSourceConfiguration, DataSourceVpcConfiguration, DocumentAttribute, DocumentAttributeValue, DocumentAttributeValueType, DocumentMetadataConfiguration, DocumentRelevanceConfiguration, ExperienceConfiguration, FeaturedDocument, FeaturedResultsItem, FeaturedResultsSet, FeaturedResultsSetStatus, HierarchicalPrincipal, Mode, Principal, QueryResultFormat, QueryResultType, S3Path, ScoreAttributes, SortingConfiguration, SpellCorrectionConfiguration, SuggestionType, TableExcerpt, Tag, TextWithHighlights, UserContext, UserContextPolicy, UserGroupResolutionConfiguration, UserTokenConfiguration } from "./models_0";
4
+ /**
5
+ * @public
6
+ * <p>A single query result.</p>
7
+ * <p>A query result contains information about a document returned by the query. This
8
+ * includes the original location of the document, a list of attributes assigned to the
9
+ * document, and relevant text from the document that satisfies the query.</p>
10
+ */
11
+ export interface QueryResultItem {
12
+ /**
13
+ * <p>The identifier for the query result.</p>
14
+ */
15
+ Id?: string;
16
+ /**
17
+ * <p>The type of document within the response. For example, a response could include a
18
+ * question-answer that's relevant to the query.</p>
19
+ */
20
+ Type?: QueryResultType | string;
21
+ /**
22
+ * <p>If the <code>Type</code> of document within the response is <code>ANSWER</code>, then it
23
+ * is either a <code>TABLE</code> answer or <code>TEXT</code> answer. If it's a table answer,
24
+ * a table excerpt is returned in <code>TableExcerpt</code>. If it's a text answer, a text
25
+ * excerpt is returned in <code>DocumentExcerpt</code>.</p>
26
+ */
27
+ Format?: QueryResultFormat | string;
28
+ /**
29
+ * <p>One or more additional attributes associated with the query result.</p>
30
+ */
31
+ AdditionalAttributes?: AdditionalResultAttribute[];
32
+ /**
33
+ * <p>The identifier for the document.</p>
34
+ */
35
+ DocumentId?: string;
36
+ /**
37
+ * <p>The title of the document. Contains the text of the title and information for
38
+ * highlighting the relevant terms in the title.</p>
39
+ */
40
+ DocumentTitle?: TextWithHighlights;
41
+ /**
42
+ * <p>An extract of the text in the document. Contains information about highlighting the
43
+ * relevant terms in the excerpt.</p>
44
+ */
45
+ DocumentExcerpt?: TextWithHighlights;
46
+ /**
47
+ * <p>The URI of the original location of the document.</p>
48
+ */
49
+ DocumentURI?: string;
50
+ /**
51
+ * <p>An array of document attributes assigned to a document in the search results. For
52
+ * example, the document author (<code>_author</code>) or the source URI
53
+ * (<code>_source_uri</code>) of the document.</p>
54
+ */
55
+ DocumentAttributes?: DocumentAttribute[];
56
+ /**
57
+ * <p>Indicates the confidence that Amazon Kendra has that a result matches the query
58
+ * that you provided. 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>. You
60
+ * can use the score to determine if a response meets the confidence needed for your
61
+ * application.</p>
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 matches
64
+ * the query.</p>
65
+ */
66
+ ScoreAttributes?: ScoreAttributes;
67
+ /**
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>
71
+ */
72
+ FeedbackToken?: string;
73
+ /**
74
+ * <p>An excerpt from a table within a document.</p>
75
+ */
76
+ TableExcerpt?: TableExcerpt;
77
+ }
78
+ /**
79
+ * @public
80
+ * <p>A corrected misspelled word in a query.</p>
81
+ */
82
+ export interface Correction {
83
+ /**
84
+ * <p>The zero-based location in the response string or text where
85
+ * the corrected word starts.</p>
86
+ */
87
+ BeginOffset?: number;
88
+ /**
89
+ * <p>The zero-based location in the response string or text where
90
+ * the corrected word ends.</p>
91
+ */
92
+ EndOffset?: number;
93
+ /**
94
+ * <p>The string or text of a misspelled word in a query.</p>
95
+ */
96
+ Term?: string;
97
+ /**
98
+ * <p>The string or text of a corrected misspelled word in a query.</p>
99
+ */
100
+ CorrectedTerm?: string;
101
+ }
102
+ /**
103
+ * @public
104
+ * <p>A query with suggested spell corrections. </p>
105
+ */
106
+ export interface SpellCorrectedQuery {
107
+ /**
108
+ * <p>The query with the suggested spell corrections.</p>
109
+ */
110
+ SuggestedQueryText?: string;
111
+ /**
112
+ * <p>The corrected misspelled word or words in a query.</p>
113
+ */
114
+ Corrections?: Correction[];
115
+ }
116
+ /**
117
+ * @public
118
+ * @enum
119
+ */
120
+ export declare const WarningCode: {
121
+ readonly QUERY_LANGUAGE_INVALID_SYNTAX: "QUERY_LANGUAGE_INVALID_SYNTAX";
122
+ };
123
+ /**
124
+ * @public
125
+ */
126
+ export type WarningCode = (typeof WarningCode)[keyof typeof WarningCode];
127
+ /**
128
+ * @public
129
+ * <p>The warning code and message that explains a problem with a query.</p>
130
+ */
131
+ export interface Warning {
132
+ /**
133
+ * <p>The message that explains the problem with the query.</p>
134
+ */
135
+ Message?: string;
136
+ /**
137
+ * <p>The code used to show the type of warning for the query.</p>
138
+ */
139
+ Code?: WarningCode | string;
140
+ }
4
141
  /**
5
142
  * @public
6
143
  * <p>The resource you want to use is currently in use. Please check you have provided the
@@ -292,7 +429,7 @@ export interface UpdateFeaturedResultsSetRequest {
292
429
  */
293
430
  IndexId: string | undefined;
294
431
  /**
295
- * <p>The identifier of the index used for featuring results.</p>
432
+ * <p>The identifier of the set of featured results that you want to update.</p>
296
433
  */
297
434
  FeaturedResultsSetId: string | undefined;
298
435
  /**
@@ -478,6 +615,11 @@ export interface UpdateQuerySuggestionsConfigRequest {
478
615
  * <p>How you tune this setting depends on your specific needs.</p>
479
616
  */
480
617
  MinimumQueryCount?: number;
618
+ /**
619
+ * <p>Configuration information for the document fields/attributes that you want to base
620
+ * query suggestions on.</p>
621
+ */
622
+ AttributeSuggestionsConfig?: AttributeSuggestionsUpdateConfig;
481
623
  }
482
624
  /**
483
625
  * @public
@@ -715,6 +857,75 @@ export interface QueryResult {
715
857
  */
716
858
  FeaturedResultsItems?: FeaturedResultsItem[];
717
859
  }
860
+ /**
861
+ * @public
862
+ * <p>Provides the configuration information for the document fields/attributes that you want
863
+ * to base query suggestions on.</p>
864
+ */
865
+ export interface AttributeSuggestionsGetConfig {
866
+ /**
867
+ * <p>The list of document field/attribute keys or field names to use for query suggestions.
868
+ * If the content within any of the fields match what your user starts typing as their query,
869
+ * then the field content is returned as a query suggestion.</p>
870
+ */
871
+ SuggestionAttributes?: string[];
872
+ /**
873
+ * <p>The list of additional document field/attribute keys or field names to include in the
874
+ * response. You can use additional fields to provide extra information in the response.
875
+ * Additional fields are not used to based suggestions on.</p>
876
+ */
877
+ AdditionalResponseAttributes?: string[];
878
+ /**
879
+ * <p>Filters the search results based on document fields/attributes.</p>
880
+ */
881
+ AttributeFilter?: AttributeFilter;
882
+ /**
883
+ * <p>Applies user context filtering so that only users who are given access to certain
884
+ * documents see these document in their search results.</p>
885
+ */
886
+ UserContext?: UserContext;
887
+ }
888
+ /**
889
+ * @public
890
+ */
891
+ export interface GetQuerySuggestionsRequest {
892
+ /**
893
+ * <p>The identifier of the index you want to get query suggestions from.</p>
894
+ */
895
+ IndexId: string | undefined;
896
+ /**
897
+ * <p>The text of a user's query to generate query suggestions.</p>
898
+ * <p>A query is suggested if the query prefix matches
899
+ * what a user starts to type as their query.</p>
900
+ * <p>Amazon Kendra does not show any suggestions if a user
901
+ * types fewer than two characters or more than 60 characters.
902
+ * A query must also have at least one search result and contain
903
+ * at least one word of more than four characters.</p>
904
+ */
905
+ QueryText: string | undefined;
906
+ /**
907
+ * <p>The maximum number of query suggestions you want to show
908
+ * to your users.</p>
909
+ */
910
+ MaxSuggestionsCount?: number;
911
+ /**
912
+ * <p>The suggestions type to base query suggestions on. The suggestion
913
+ * types are query history or document fields/attributes. You can set
914
+ * one type or the other.</p>
915
+ * <p>If you set query history as your suggestions type, Amazon Kendra
916
+ * suggests queries relevant to your users based on popular queries in
917
+ * the query history.</p>
918
+ * <p>If you set document fields/attributes as your suggestions type,
919
+ * Amazon Kendra suggests queries relevant to your users based on the
920
+ * contents of document fields.</p>
921
+ */
922
+ SuggestionTypes?: (SuggestionType | string)[];
923
+ /**
924
+ * <p>Configuration information for the document fields/attributes that you
925
+ * want to base query suggestions on.</p>
926
+ */
927
+ AttributeSuggestionsConfig?: AttributeSuggestionsGetConfig;
928
+ }
718
929
  /**
719
930
  * @public
720
931
  */
@@ -11,10 +11,8 @@ import {
11
11
  ServiceInputTypes,
12
12
  ServiceOutputTypes,
13
13
  } from "../KendraClient";
14
- import {
15
- GetQuerySuggestionsRequest,
16
- GetQuerySuggestionsResponse,
17
- } from "../models/models_0";
14
+ import { GetQuerySuggestionsResponse } from "../models/models_0";
15
+ import { GetQuerySuggestionsRequest } from "../models/models_1";
18
16
  export interface GetQuerySuggestionsCommandInput
19
17
  extends GetQuerySuggestionsRequest {}
20
18
  export interface GetQuerySuggestionsCommandOutput
@@ -169,6 +169,34 @@ export interface DocumentAttribute {
169
169
  Key: string | undefined;
170
170
  Value: DocumentAttributeValue | undefined;
171
171
  }
172
+ export declare const AttributeSuggestionsMode: {
173
+ readonly ACTIVE: "ACTIVE";
174
+ readonly INACTIVE: "INACTIVE";
175
+ };
176
+ export type AttributeSuggestionsMode =
177
+ (typeof AttributeSuggestionsMode)[keyof typeof AttributeSuggestionsMode];
178
+ export interface SuggestableConfig {
179
+ AttributeName?: string;
180
+ Suggestable?: boolean;
181
+ }
182
+ export interface AttributeSuggestionsDescribeConfig {
183
+ SuggestableConfigList?: SuggestableConfig[];
184
+ AttributeSuggestionsMode?: AttributeSuggestionsMode | string;
185
+ }
186
+ export interface DataSourceGroup {
187
+ GroupId: string | undefined;
188
+ DataSourceId: string | undefined;
189
+ }
190
+ export interface UserContext {
191
+ Token?: string;
192
+ UserId?: string;
193
+ Groups?: string[];
194
+ DataSourceGroups?: DataSourceGroup[];
195
+ }
196
+ export interface AttributeSuggestionsUpdateConfig {
197
+ SuggestableConfigList?: SuggestableConfig[];
198
+ AttributeSuggestionsMode?: AttributeSuggestionsMode | string;
199
+ }
172
200
  export interface BasicAuthenticationConfiguration {
173
201
  Host: string | undefined;
174
202
  Port: number | undefined;
@@ -1440,6 +1468,7 @@ export interface DescribeQuerySuggestionsConfigResponse {
1440
1468
  LastSuggestionsBuildTime?: Date;
1441
1469
  LastClearTime?: Date;
1442
1470
  TotalSuggestionsCount?: number;
1471
+ AttributeSuggestionsConfig?: AttributeSuggestionsDescribeConfig;
1443
1472
  }
1444
1473
  export interface DescribeThesaurusRequest {
1445
1474
  Id: string | undefined;
@@ -1486,10 +1515,16 @@ export interface DisassociatePersonasFromEntitiesRequest {
1486
1515
  export interface DisassociatePersonasFromEntitiesResponse {
1487
1516
  FailedEntityList?: FailedEntity[];
1488
1517
  }
1489
- export interface GetQuerySuggestionsRequest {
1490
- IndexId: string | undefined;
1491
- QueryText: string | undefined;
1492
- MaxSuggestionsCount?: number;
1518
+ export declare const SuggestionType: {
1519
+ readonly DOCUMENT_ATTRIBUTES: "DOCUMENT_ATTRIBUTES";
1520
+ readonly QUERY: "QUERY";
1521
+ };
1522
+ export type SuggestionType =
1523
+ (typeof SuggestionType)[keyof typeof SuggestionType];
1524
+ export interface SourceDocument {
1525
+ DocumentId?: string;
1526
+ SuggestionAttributes?: string[];
1527
+ AdditionalAttributes?: DocumentAttribute[];
1493
1528
  }
1494
1529
  export interface SuggestionHighlight {
1495
1530
  BeginOffset?: number;
@@ -1505,6 +1540,7 @@ export interface SuggestionValue {
1505
1540
  export interface Suggestion {
1506
1541
  Id?: string;
1507
1542
  Value?: SuggestionValue;
1543
+ SourceDocuments?: SourceDocument[];
1508
1544
  }
1509
1545
  export interface GetQuerySuggestionsResponse {
1510
1546
  QuerySuggestionsId?: string;
@@ -1828,16 +1864,6 @@ export interface SortingConfiguration {
1828
1864
  export interface SpellCorrectionConfiguration {
1829
1865
  IncludeQuerySpellCheckSuggestions: boolean | undefined;
1830
1866
  }
1831
- export interface DataSourceGroup {
1832
- GroupId: string | undefined;
1833
- DataSourceId: string | undefined;
1834
- }
1835
- export interface UserContext {
1836
- Token?: string;
1837
- UserId?: string;
1838
- Groups?: string[];
1839
- DataSourceGroups?: DataSourceGroup[];
1840
- }
1841
1867
  export interface FeaturedResultsItem {
1842
1868
  Id?: string;
1843
1869
  Type?: QueryResultType | string;
@@ -1880,38 +1906,6 @@ export interface TableExcerpt {
1880
1906
  Rows?: TableRow[];
1881
1907
  TotalNumberOfRows?: number;
1882
1908
  }
1883
- export interface QueryResultItem {
1884
- Id?: string;
1885
- Type?: QueryResultType | string;
1886
- Format?: QueryResultFormat | string;
1887
- AdditionalAttributes?: AdditionalResultAttribute[];
1888
- DocumentId?: string;
1889
- DocumentTitle?: TextWithHighlights;
1890
- DocumentExcerpt?: TextWithHighlights;
1891
- DocumentURI?: string;
1892
- DocumentAttributes?: DocumentAttribute[];
1893
- ScoreAttributes?: ScoreAttributes;
1894
- FeedbackToken?: string;
1895
- TableExcerpt?: TableExcerpt;
1896
- }
1897
- export interface Correction {
1898
- BeginOffset?: number;
1899
- EndOffset?: number;
1900
- Term?: string;
1901
- CorrectedTerm?: string;
1902
- }
1903
- export interface SpellCorrectedQuery {
1904
- SuggestedQueryText?: string;
1905
- Corrections?: Correction[];
1906
- }
1907
- export declare const WarningCode: {
1908
- readonly QUERY_LANGUAGE_INVALID_SYNTAX: "QUERY_LANGUAGE_INVALID_SYNTAX";
1909
- };
1910
- export type WarningCode = (typeof WarningCode)[keyof typeof WarningCode];
1911
- export interface Warning {
1912
- Message?: string;
1913
- Code?: WarningCode | string;
1914
- }
1915
1909
  export declare const ServerSideEncryptionConfigurationFilterSensitiveLog: (
1916
1910
  obj: ServerSideEncryptionConfiguration
1917
1911
  ) => any;
@@ -1,6 +1,8 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
2
  import { KendraServiceException as __BaseException } from "./KendraServiceException";
3
3
  import {
4
+ AdditionalResultAttribute,
5
+ AttributeSuggestionsUpdateConfig,
4
6
  CapacityUnitsConfiguration,
5
7
  CustomDocumentEnrichmentConfiguration,
6
8
  DataSourceConfiguration,
@@ -18,19 +20,53 @@ import {
18
20
  HierarchicalPrincipal,
19
21
  Mode,
20
22
  Principal,
21
- QueryResultItem,
23
+ QueryResultFormat,
22
24
  QueryResultType,
23
25
  S3Path,
26
+ ScoreAttributes,
24
27
  SortingConfiguration,
25
- SpellCorrectedQuery,
26
28
  SpellCorrectionConfiguration,
29
+ SuggestionType,
30
+ TableExcerpt,
27
31
  Tag,
32
+ TextWithHighlights,
28
33
  UserContext,
29
34
  UserContextPolicy,
30
35
  UserGroupResolutionConfiguration,
31
36
  UserTokenConfiguration,
32
- Warning,
33
37
  } from "./models_0";
38
+ export interface QueryResultItem {
39
+ Id?: string;
40
+ Type?: QueryResultType | string;
41
+ Format?: QueryResultFormat | string;
42
+ AdditionalAttributes?: AdditionalResultAttribute[];
43
+ DocumentId?: string;
44
+ DocumentTitle?: TextWithHighlights;
45
+ DocumentExcerpt?: TextWithHighlights;
46
+ DocumentURI?: string;
47
+ DocumentAttributes?: DocumentAttribute[];
48
+ ScoreAttributes?: ScoreAttributes;
49
+ FeedbackToken?: string;
50
+ TableExcerpt?: TableExcerpt;
51
+ }
52
+ export interface Correction {
53
+ BeginOffset?: number;
54
+ EndOffset?: number;
55
+ Term?: string;
56
+ CorrectedTerm?: string;
57
+ }
58
+ export interface SpellCorrectedQuery {
59
+ SuggestedQueryText?: string;
60
+ Corrections?: Correction[];
61
+ }
62
+ export declare const WarningCode: {
63
+ readonly QUERY_LANGUAGE_INVALID_SYNTAX: "QUERY_LANGUAGE_INVALID_SYNTAX";
64
+ };
65
+ export type WarningCode = (typeof WarningCode)[keyof typeof WarningCode];
66
+ export interface Warning {
67
+ Message?: string;
68
+ Code?: WarningCode | string;
69
+ }
34
70
  export declare class ResourceInUseException extends __BaseException {
35
71
  readonly name: "ResourceInUseException";
36
72
  readonly $fault: "client";
@@ -146,6 +182,7 @@ export interface UpdateQuerySuggestionsConfigRequest {
146
182
  IncludeQueriesWithoutUserInformation?: boolean;
147
183
  MinimumNumberOfQueryingUsers?: number;
148
184
  MinimumQueryCount?: number;
185
+ AttributeSuggestionsConfig?: AttributeSuggestionsUpdateConfig;
149
186
  }
150
187
  export interface UpdateThesaurusRequest {
151
188
  Id: string | undefined;
@@ -191,6 +228,19 @@ export interface QueryResult {
191
228
  SpellCorrectedQueries?: SpellCorrectedQuery[];
192
229
  FeaturedResultsItems?: FeaturedResultsItem[];
193
230
  }
231
+ export interface AttributeSuggestionsGetConfig {
232
+ SuggestionAttributes?: string[];
233
+ AdditionalResponseAttributes?: string[];
234
+ AttributeFilter?: AttributeFilter;
235
+ UserContext?: UserContext;
236
+ }
237
+ export interface GetQuerySuggestionsRequest {
238
+ IndexId: string | undefined;
239
+ QueryText: string | undefined;
240
+ MaxSuggestionsCount?: number;
241
+ SuggestionTypes?: (SuggestionType | string)[];
242
+ AttributeSuggestionsConfig?: AttributeSuggestionsGetConfig;
243
+ }
194
244
  export interface QueryRequest {
195
245
  IndexId: string | undefined;
196
246
  QueryText?: string;
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.321.1",
4
+ "version": "3.326.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,33 +21,33 @@
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.321.1",
24
+ "@aws-sdk/client-sts": "3.326.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.321.1",
26
+ "@aws-sdk/credential-provider-node": "3.326.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
30
- "@aws-sdk/middleware-content-length": "3.310.0",
31
- "@aws-sdk/middleware-endpoint": "3.310.0",
32
- "@aws-sdk/middleware-host-header": "3.310.0",
33
- "@aws-sdk/middleware-logger": "3.310.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.310.0",
35
- "@aws-sdk/middleware-retry": "3.310.0",
36
- "@aws-sdk/middleware-serde": "3.310.0",
37
- "@aws-sdk/middleware-signing": "3.310.0",
38
- "@aws-sdk/middleware-stack": "3.310.0",
39
- "@aws-sdk/middleware-user-agent": "3.319.0",
30
+ "@aws-sdk/middleware-content-length": "3.325.0",
31
+ "@aws-sdk/middleware-endpoint": "3.325.0",
32
+ "@aws-sdk/middleware-host-header": "3.325.0",
33
+ "@aws-sdk/middleware-logger": "3.325.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.325.0",
35
+ "@aws-sdk/middleware-retry": "3.325.0",
36
+ "@aws-sdk/middleware-serde": "3.325.0",
37
+ "@aws-sdk/middleware-signing": "3.325.0",
38
+ "@aws-sdk/middleware-stack": "3.325.0",
39
+ "@aws-sdk/middleware-user-agent": "3.325.0",
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.321.1",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.316.0",
43
+ "@aws-sdk/smithy-client": "3.325.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.316.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.325.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.325.0",
51
51
  "@aws-sdk/util-endpoints": "3.319.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",