@aws-sdk/client-kendra 3.321.1 → 3.325.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/dist-cjs/models/models_0.js +10 -5
- package/dist-cjs/models/models_1.js +4 -1
- package/dist-cjs/protocols/Aws_json1_1.js +56 -2
- package/dist-es/models/models_0.js +8 -3
- package/dist-es/models/models_1.js +3 -0
- package/dist-es/protocols/Aws_json1_1.js +56 -2
- package/dist-types/commands/CreateQuerySuggestionsBlockListCommand.d.ts +1 -1
- package/dist-types/commands/GetQuerySuggestionsCommand.d.ts +107 -1
- package/dist-types/commands/UpdateQuerySuggestionsConfigCommand.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +173 -210
- package/dist-types/models/models_1.d.ts +213 -2
- package/dist-types/ts3.4/commands/GetQuerySuggestionsCommand.d.ts +2 -4
- package/dist-types/ts3.4/models/models_0.d.ts +40 -46
- package/dist-types/ts3.4/models/models_1.d.ts +53 -3
- package/package.json +16 -16
|
@@ -11,10 +11,8 @@ import {
|
|
|
11
11
|
ServiceInputTypes,
|
|
12
12
|
ServiceOutputTypes,
|
|
13
13
|
} from "../KendraClient";
|
|
14
|
-
import {
|
|
15
|
-
|
|
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
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
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
|
-
|
|
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.
|
|
4
|
+
"version": "3.325.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.
|
|
24
|
+
"@aws-sdk/client-sts": "3.325.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.325.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.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
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.
|
|
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.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
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",
|