@aws-sdk/client-kendra 3.47.2 → 3.48.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 +11 -0
- package/dist-cjs/models/models_0.js +12 -2
- package/dist-cjs/pagination/GetSnapshotsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +19 -0
- package/dist-es/models/models_0.js +8 -0
- package/dist-es/pagination/GetSnapshotsPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +19 -0
- package/dist-types/Kendra.d.ts +1 -0
- package/dist-types/commands/CreateFaqCommand.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +42 -5
- package/dist-types/pagination/GetSnapshotsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +17 -1
- package/dist-types/ts3.4/pagination/GetSnapshotsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.48.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.2...v3.48.0) (2022-01-22)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 2022/01/21 ([#3228](https://github.com/aws/aws-sdk-js-v3/issues/3228)) ([fa713ef](https://github.com/aws/aws-sdk-js-v3/commit/fa713efca6b2f424c27535d000359f08830960b1))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [3.47.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-kendra
|
|
@@ -4,8 +4,8 @@ exports.ConfluenceAttachmentFieldName = exports.ClearQuerySuggestionsRequest = e
|
|
|
4
4
|
exports.WorkDocsConfiguration = exports.WebCrawlerConfiguration = exports.Urls = exports.SiteMapsConfiguration = exports.SeedUrlConfiguration = exports.WebCrawlerMode = exports.ProxyConfiguration = exports.SharePointConfiguration = exports.SharePointVersion = exports.ServiceNowConfiguration = exports.ServiceNowBuildVersionType = exports.ServiceNowServiceCatalogConfiguration = exports.ServiceNowKnowledgeArticleConfiguration = exports.ServiceNowAuthenticationType = exports.SalesforceConfiguration = exports.SalesforceStandardObjectConfiguration = exports.SalesforceStandardObjectName = exports.SalesforceStandardObjectAttachmentConfiguration = exports.SalesforceKnowledgeArticleConfiguration = exports.SalesforceStandardKnowledgeArticleTypeConfiguration = exports.SalesforceKnowledgeArticleState = exports.SalesforceCustomKnowledgeArticleTypeConfiguration = exports.SalesforceChatterFeedConfiguration = exports.SalesforceChatterFeedIncludeFilterType = exports.S3DataSourceConfiguration = exports.DocumentsMetadataConfiguration = exports.OneDriveConfiguration = exports.OneDriveUsers = exports.GoogleDriveConfiguration = exports.DatabaseConfiguration = exports.SqlConfiguration = exports.QueryIdentifiersEnclosingOption = exports.DatabaseEngineType = exports.ConnectionConfiguration = exports.ColumnConfiguration = exports.DataSourceToIndexFieldMapping = exports.ConfluenceConfiguration = exports.DataSourceVpcConfiguration = exports.ConfluenceVersion = exports.ConfluenceSpaceConfiguration = exports.ConfluenceSpaceToIndexFieldMapping = exports.ConfluenceSpaceFieldName = exports.ConfluencePageConfiguration = exports.ConfluencePageToIndexFieldMapping = exports.ConfluencePageFieldName = exports.ConfluenceBlogConfiguration = exports.ConfluenceBlogToIndexFieldMapping = exports.ConfluenceBlogFieldName = exports.ConfluenceAttachmentConfiguration = exports.ConfluenceAttachmentToIndexFieldMapping = void 0;
|
|
5
5
|
exports.Order = exports.CapacityUnitsConfiguration = exports.DescribeIndexRequest = exports.DescribeFaqResponse = exports.FaqStatus = exports.DescribeFaqRequest = exports.DescribeExperienceResponse = exports.ExperienceStatus = exports.ExperienceEndpoint = exports.EndpointType = exports.DescribeExperienceRequest = exports.DescribeDataSourceResponse = exports.DataSourceStatus = exports.DescribeDataSourceRequest = exports.DeleteThesaurusRequest = exports.DeleteQuerySuggestionsBlockListRequest = exports.DeletePrincipalMappingRequest = exports.DeleteIndexRequest = exports.DeleteFaqRequest = exports.DeleteExperienceResponse = exports.DeleteExperienceRequest = exports.DeleteDataSourceRequest = exports.CreateThesaurusResponse = exports.CreateThesaurusRequest = exports.CreateQuerySuggestionsBlockListResponse = exports.CreateQuerySuggestionsBlockListRequest = exports.CreateIndexResponse = exports.CreateIndexRequest = exports.UserTokenConfiguration = exports.JwtTokenTypeConfiguration = exports.KeyLocation = exports.JsonTokenTypeConfiguration = exports.UserGroupResolutionConfiguration = exports.UserGroupResolutionMode = exports.UserContextPolicy = exports.ServerSideEncryptionConfiguration = exports.IndexEdition = exports.CreateFaqResponse = exports.CreateFaqRequest = exports.FaqFileFormat = exports.CreateExperienceResponse = exports.CreateExperienceRequest = exports.ExperienceConfiguration = exports.UserIdentityConfiguration = exports.ContentSourceConfiguration = exports.CreateDataSourceResponse = exports.CreateDataSourceRequest = exports.DataSourceType = exports.Tag = exports.DataSourceConfiguration = void 0;
|
|
6
6
|
exports.ListExperienceEntitiesRequest = exports.ListEntityPersonasResponse = exports.PersonasSummary = exports.ListEntityPersonasRequest = exports.ListDataSourceSyncJobsResponse = exports.DataSourceSyncJob = exports.DataSourceSyncJobMetrics = exports.ListDataSourceSyncJobsRequest = exports.DataSourceSyncJobStatus = exports.ListDataSourcesResponse = exports.DataSourceSummary = exports.ListDataSourcesRequest = exports.GetSnapshotsResponse = exports.TimeRange = exports.GetSnapshotsRequest = exports.MetricType = exports.Interval = exports.GetQuerySuggestionsResponse = exports.Suggestion = exports.SuggestionValue = exports.SuggestionTextWithHighlights = exports.SuggestionHighlight = exports.GetQuerySuggestionsRequest = exports.DisassociatePersonasFromEntitiesResponse = exports.DisassociatePersonasFromEntitiesRequest = exports.DisassociateEntitiesFromExperienceResponse = exports.DisassociateEntitiesFromExperienceRequest = exports.DescribeThesaurusResponse = exports.ThesaurusStatus = exports.DescribeThesaurusRequest = exports.DescribeQuerySuggestionsConfigResponse = exports.QuerySuggestionsStatus = exports.Mode = exports.DescribeQuerySuggestionsConfigRequest = exports.DescribeQuerySuggestionsBlockListResponse = exports.QuerySuggestionsBlockListStatus = exports.DescribeQuerySuggestionsBlockListRequest = exports.DescribePrincipalMappingResponse = exports.GroupOrderingIdSummary = exports.PrincipalMappingStatus = exports.DescribePrincipalMappingRequest = exports.DescribeIndexResponse = exports.IndexStatus = exports.IndexStatistics = exports.TextDocumentStatistics = exports.FaqStatistics = exports.DocumentMetadataConfiguration = exports.DocumentAttributeValueType = exports.Search = exports.Relevance = void 0;
|
|
7
|
-
exports.
|
|
8
|
-
exports.QueryRequest = exports.AttributeFilter = exports.UpdateThesaurusRequest = exports.UpdateQuerySuggestionsConfigRequest = exports.UpdateQuerySuggestionsBlockListRequest = exports.UpdateIndexRequest = exports.UpdateExperienceRequest = exports.UpdateDataSourceRequest = exports.UntagResourceResponse = void 0;
|
|
7
|
+
exports.TagResourceRequest = exports.SubmitFeedbackRequest = exports.RelevanceFeedback = exports.RelevanceType = exports.ClickFeedback = exports.StopDataSourceSyncJobRequest = exports.StartDataSourceSyncJobResponse = exports.StartDataSourceSyncJobRequest = exports.QueryResult = exports.Warning = exports.WarningCode = exports.QueryResultItem = exports.ScoreAttributes = exports.ScoreConfidence = exports.FacetResult = exports.DocumentAttributeValueCountPair = exports.UserContext = exports.DataSourceGroup = exports.SortingConfiguration = exports.SortOrder = exports.QueryResultType = exports.Facet = exports.DocumentRelevanceConfiguration = exports.PutPrincipalMappingRequest = exports.GroupMembers = exports.MemberUser = exports.MemberGroup = exports.ListThesauriResponse = exports.ThesaurusSummary = exports.ListThesauriRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListQuerySuggestionsBlockListsResponse = exports.QuerySuggestionsBlockListSummary = exports.ListQuerySuggestionsBlockListsRequest = exports.ListIndicesResponse = exports.IndexConfigurationSummary = exports.ListIndicesRequest = exports.ListGroupsOlderThanOrderingIdResponse = exports.GroupSummary = exports.ListGroupsOlderThanOrderingIdRequest = exports.ListFaqsResponse = exports.FaqSummary = exports.ListFaqsRequest = exports.ListExperiencesResponse = exports.ExperiencesSummary = exports.ListExperiencesRequest = exports.ListExperienceEntitiesResponse = exports.ExperienceEntitiesSummary = exports.EntityDisplayData = void 0;
|
|
8
|
+
exports.QueryRequest = exports.AttributeFilter = exports.UpdateThesaurusRequest = exports.UpdateQuerySuggestionsConfigRequest = exports.UpdateQuerySuggestionsBlockListRequest = exports.UpdateIndexRequest = exports.UpdateExperienceRequest = exports.UpdateDataSourceRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = void 0;
|
|
9
9
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
10
10
|
var AccessControlListConfiguration;
|
|
11
11
|
(function (AccessControlListConfiguration) {
|
|
@@ -1523,6 +1523,16 @@ var QueryResultItem;
|
|
|
1523
1523
|
...obj,
|
|
1524
1524
|
});
|
|
1525
1525
|
})(QueryResultItem = exports.QueryResultItem || (exports.QueryResultItem = {}));
|
|
1526
|
+
var WarningCode;
|
|
1527
|
+
(function (WarningCode) {
|
|
1528
|
+
WarningCode["QUERY_LANGUAGE_INVALID_SYNTAX"] = "QUERY_LANGUAGE_INVALID_SYNTAX";
|
|
1529
|
+
})(WarningCode = exports.WarningCode || (exports.WarningCode = {}));
|
|
1530
|
+
var Warning;
|
|
1531
|
+
(function (Warning) {
|
|
1532
|
+
Warning.filterSensitiveLog = (obj) => ({
|
|
1533
|
+
...obj,
|
|
1534
|
+
});
|
|
1535
|
+
})(Warning = exports.Warning || (exports.Warning = {}));
|
|
1526
1536
|
var QueryResult;
|
|
1527
1537
|
(function (QueryResult) {
|
|
1528
1538
|
QueryResult.filterSensitiveLog = (obj) => ({
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateGetSnapshots = void 0;
|
|
4
|
+
const GetSnapshotsCommand_1 = require("../commands/GetSnapshotsCommand");
|
|
5
|
+
const Kendra_1 = require("../Kendra");
|
|
6
|
+
const KendraClient_1 = require("../KendraClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new GetSnapshotsCommand_1.GetSnapshotsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.getSnapshots(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateGetSnapshots(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof Kendra_1.Kendra) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof KendraClient_1.KendraClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
token = page.NextToken;
|
|
31
|
+
hasNext = !!token;
|
|
32
|
+
}
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
exports.paginateGetSnapshots = paginateGetSnapshots;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./GetSnapshotsPaginator"), exports);
|
|
4
5
|
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./ListDataSourceSyncJobsPaginator"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./ListDataSourcesPaginator"), exports);
|
|
@@ -8847,6 +8847,9 @@ const deserializeAws_json1_1QueryResult = (output, context) => {
|
|
|
8847
8847
|
? deserializeAws_json1_1QueryResultItemList(output.ResultItems, context)
|
|
8848
8848
|
: undefined,
|
|
8849
8849
|
TotalNumberOfResults: smithy_client_1.expectInt32(output.TotalNumberOfResults),
|
|
8850
|
+
Warnings: output.Warnings !== undefined && output.Warnings !== null
|
|
8851
|
+
? deserializeAws_json1_1WarningList(output.Warnings, context)
|
|
8852
|
+
: undefined,
|
|
8850
8853
|
};
|
|
8851
8854
|
};
|
|
8852
8855
|
const deserializeAws_json1_1QueryResultItem = (output, context) => {
|
|
@@ -9484,6 +9487,22 @@ const deserializeAws_json1_1ValueImportanceMap = (output, context) => {
|
|
|
9484
9487
|
};
|
|
9485
9488
|
}, {});
|
|
9486
9489
|
};
|
|
9490
|
+
const deserializeAws_json1_1Warning = (output, context) => {
|
|
9491
|
+
return {
|
|
9492
|
+
Code: smithy_client_1.expectString(output.Code),
|
|
9493
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
9494
|
+
};
|
|
9495
|
+
};
|
|
9496
|
+
const deserializeAws_json1_1WarningList = (output, context) => {
|
|
9497
|
+
return (output || [])
|
|
9498
|
+
.filter((e) => e != null)
|
|
9499
|
+
.map((entry) => {
|
|
9500
|
+
if (entry === null) {
|
|
9501
|
+
return null;
|
|
9502
|
+
}
|
|
9503
|
+
return deserializeAws_json1_1Warning(entry, context);
|
|
9504
|
+
});
|
|
9505
|
+
};
|
|
9487
9506
|
const deserializeAws_json1_1WebCrawlerConfiguration = (output, context) => {
|
|
9488
9507
|
return {
|
|
9489
9508
|
AuthenticationConfiguration: output.AuthenticationConfiguration !== undefined && output.AuthenticationConfiguration !== null
|
|
@@ -1124,6 +1124,14 @@ export var QueryResultItem;
|
|
|
1124
1124
|
(function (QueryResultItem) {
|
|
1125
1125
|
QueryResultItem.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1126
1126
|
})(QueryResultItem || (QueryResultItem = {}));
|
|
1127
|
+
export var WarningCode;
|
|
1128
|
+
(function (WarningCode) {
|
|
1129
|
+
WarningCode["QUERY_LANGUAGE_INVALID_SYNTAX"] = "QUERY_LANGUAGE_INVALID_SYNTAX";
|
|
1130
|
+
})(WarningCode || (WarningCode = {}));
|
|
1131
|
+
export var Warning;
|
|
1132
|
+
(function (Warning) {
|
|
1133
|
+
Warning.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1134
|
+
})(Warning || (Warning = {}));
|
|
1127
1135
|
export var QueryResult;
|
|
1128
1136
|
(function (QueryResult) {
|
|
1129
1137
|
QueryResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { GetSnapshotsCommand, } from "../commands/GetSnapshotsCommand";
|
|
3
|
+
import { Kendra } from "../Kendra";
|
|
4
|
+
import { KendraClient } from "../KendraClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new GetSnapshotsCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.getSnapshots.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateGetSnapshots(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateGetSnapshots_1() {
|
|
39
|
+
var token, hasNext, page;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Kendra)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof KendraClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
token = page.NextToken;
|
|
67
|
+
hasNext = !!token;
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
}
|
|
@@ -8774,6 +8774,9 @@ var deserializeAws_json1_1QueryResult = function (output, context) {
|
|
|
8774
8774
|
? deserializeAws_json1_1QueryResultItemList(output.ResultItems, context)
|
|
8775
8775
|
: undefined,
|
|
8776
8776
|
TotalNumberOfResults: __expectInt32(output.TotalNumberOfResults),
|
|
8777
|
+
Warnings: output.Warnings !== undefined && output.Warnings !== null
|
|
8778
|
+
? deserializeAws_json1_1WarningList(output.Warnings, context)
|
|
8779
|
+
: undefined,
|
|
8777
8780
|
};
|
|
8778
8781
|
};
|
|
8779
8782
|
var deserializeAws_json1_1QueryResultItem = function (output, context) {
|
|
@@ -9410,6 +9413,22 @@ var deserializeAws_json1_1ValueImportanceMap = function (output, context) {
|
|
|
9410
9413
|
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectInt32(value), _b));
|
|
9411
9414
|
}, {});
|
|
9412
9415
|
};
|
|
9416
|
+
var deserializeAws_json1_1Warning = function (output, context) {
|
|
9417
|
+
return {
|
|
9418
|
+
Code: __expectString(output.Code),
|
|
9419
|
+
Message: __expectString(output.Message),
|
|
9420
|
+
};
|
|
9421
|
+
};
|
|
9422
|
+
var deserializeAws_json1_1WarningList = function (output, context) {
|
|
9423
|
+
return (output || [])
|
|
9424
|
+
.filter(function (e) { return e != null; })
|
|
9425
|
+
.map(function (entry) {
|
|
9426
|
+
if (entry === null) {
|
|
9427
|
+
return null;
|
|
9428
|
+
}
|
|
9429
|
+
return deserializeAws_json1_1Warning(entry, context);
|
|
9430
|
+
});
|
|
9431
|
+
};
|
|
9413
9432
|
var deserializeAws_json1_1WebCrawlerConfiguration = function (output, context) {
|
|
9414
9433
|
return {
|
|
9415
9434
|
AuthenticationConfiguration: output.AuthenticationConfiguration !== undefined && output.AuthenticationConfiguration !== null
|
package/dist-types/Kendra.d.ts
CHANGED
|
@@ -161,6 +161,7 @@ export declare class Kendra extends KendraClient {
|
|
|
161
161
|
createExperience(args: CreateExperienceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateExperienceCommandOutput) => void): void;
|
|
162
162
|
/**
|
|
163
163
|
* <p>Creates an new set of frequently asked question (FAQ) questions and answers.</p>
|
|
164
|
+
* <p>Adding FAQs to an index is an asynchronous operation.</p>
|
|
164
165
|
*/
|
|
165
166
|
createFaq(args: CreateFaqCommandInput, options?: __HttpHandlerOptions): Promise<CreateFaqCommandOutput>;
|
|
166
167
|
createFaq(args: CreateFaqCommandInput, cb: (err: any, data?: CreateFaqCommandOutput) => void): void;
|
|
@@ -8,6 +8,7 @@ export interface CreateFaqCommandOutput extends CreateFaqResponse, __MetadataBea
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Creates an new set of frequently asked question (FAQ) questions and answers.</p>
|
|
11
|
+
* <p>Adding FAQs to an index is an asynchronous operation.</p>
|
|
11
12
|
* @example
|
|
12
13
|
* Use a bare-bones client and the command you need to make an API call.
|
|
13
14
|
* ```javascript
|
|
@@ -354,7 +354,7 @@ export interface DocumentAttributeValue {
|
|
|
354
354
|
* <p>A date expressed as an ISO 8601 string.</p>
|
|
355
355
|
* <p>It is important for the time zone to be included
|
|
356
356
|
* in the ISO 8601 date-time format. For example,
|
|
357
|
-
*
|
|
357
|
+
* 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format
|
|
358
358
|
* for March 25th 2012 at 12:30PM (plus 10 seconds) in
|
|
359
359
|
* Central European Time.</p>
|
|
360
360
|
*/
|
|
@@ -367,7 +367,10 @@ export declare namespace DocumentAttributeValue {
|
|
|
367
367
|
const filterSensitiveLog: (obj: DocumentAttributeValue) => any;
|
|
368
368
|
}
|
|
369
369
|
/**
|
|
370
|
-
* <p>A custom attribute value assigned to a document
|
|
370
|
+
* <p>A custom attribute value assigned to a document.</p>
|
|
371
|
+
* <p>For more information on how to create custom document attributes, see
|
|
372
|
+
* <a href="https://docs.aws.amazon.com/kendra/latest/dg/custom-attributes.html">Custom
|
|
373
|
+
* Attributes</a>.</p>
|
|
371
374
|
*/
|
|
372
375
|
export interface DocumentAttribute {
|
|
373
376
|
/**
|
|
@@ -826,10 +829,10 @@ export declare namespace InlineCustomDocumentEnrichmentConfiguration {
|
|
|
826
829
|
* <p>Provides the configuration information for invoking a Lambda function in
|
|
827
830
|
* Lambda to alter document metadata and content when ingesting
|
|
828
831
|
* documents into Amazon Kendra. You can configure your Lambda function using
|
|
829
|
-
* <a href="https://docs.aws.amazon.com/kendra/latest/dg/
|
|
832
|
+
* <a href="https://docs.aws.amazon.com/kendra/latest/dg/API_CustomDocumentEnrichmentConfiguration.html">PreExtractionHookConfiguration</a>
|
|
830
833
|
* if you want to apply advanced alterations on the original or raw documents.
|
|
831
834
|
* If you want to apply advanced alterations on the Amazon Kendra structured documents,
|
|
832
|
-
* you must configure your Lambda function using <a href="https://docs.aws.amazon.com/kendra/latest/dg/
|
|
835
|
+
* you must configure your Lambda function using <a href="https://docs.aws.amazon.com/kendra/latest/dg/API_CustomDocumentEnrichmentConfiguration.html">PostExtractionHookConfiguration</a>.
|
|
833
836
|
* You can only invoke one Lambda function. However, this function can invoke other
|
|
834
837
|
* functions it requires.</p>
|
|
835
838
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/custom-document-enrichment.html">Customizing document metadata
|
|
@@ -3327,6 +3330,10 @@ export declare enum UserGroupResolutionMode {
|
|
|
3327
3330
|
* permissions to use Amazon Web Services SSO with Amazon Kendra. For more information, see
|
|
3328
3331
|
* <a href="https://docs.aws.amazon.com/kendra/latest/dg/iam-roles.html#iam-roles-aws-sso">IAM roles for
|
|
3329
3332
|
* Amazon Web Services SSO</a>.</p>
|
|
3333
|
+
* <p>Amazon Kendra currently does not support using <code>UserGroupResolutionConfiguration</code>
|
|
3334
|
+
* with an Amazon Web Services organization member account for your Amazon Web Services SSO
|
|
3335
|
+
* identify source. You must create your index in the parent account for the organization
|
|
3336
|
+
* in order to use <code>UserGroupResolutionConfiguration</code>.</p>
|
|
3330
3337
|
*/
|
|
3331
3338
|
export interface UserGroupResolutionConfiguration {
|
|
3332
3339
|
/**
|
|
@@ -6571,6 +6578,28 @@ export declare namespace QueryResultItem {
|
|
|
6571
6578
|
*/
|
|
6572
6579
|
const filterSensitiveLog: (obj: QueryResultItem) => any;
|
|
6573
6580
|
}
|
|
6581
|
+
export declare enum WarningCode {
|
|
6582
|
+
QUERY_LANGUAGE_INVALID_SYNTAX = "QUERY_LANGUAGE_INVALID_SYNTAX"
|
|
6583
|
+
}
|
|
6584
|
+
/**
|
|
6585
|
+
* <p>The warning code and message that explains a problem with a query.</p>
|
|
6586
|
+
*/
|
|
6587
|
+
export interface Warning {
|
|
6588
|
+
/**
|
|
6589
|
+
* <p>The message that explains the problem with the query.</p>
|
|
6590
|
+
*/
|
|
6591
|
+
Message?: string;
|
|
6592
|
+
/**
|
|
6593
|
+
* <p>The code used to show the type of warning for the query.</p>
|
|
6594
|
+
*/
|
|
6595
|
+
Code?: WarningCode | string;
|
|
6596
|
+
}
|
|
6597
|
+
export declare namespace Warning {
|
|
6598
|
+
/**
|
|
6599
|
+
* @internal
|
|
6600
|
+
*/
|
|
6601
|
+
const filterSensitiveLog: (obj: Warning) => any;
|
|
6602
|
+
}
|
|
6574
6603
|
export interface QueryResult {
|
|
6575
6604
|
/**
|
|
6576
6605
|
* <p>The unique identifier for the search. You use <code>QueryId</code>
|
|
@@ -6593,6 +6622,14 @@ export interface QueryResult {
|
|
|
6593
6622
|
* you can only retrieve the first 100 of the items.</p>
|
|
6594
6623
|
*/
|
|
6595
6624
|
TotalNumberOfResults?: number;
|
|
6625
|
+
/**
|
|
6626
|
+
* <p>A list of warning codes and their messages on problems with your query.</p>
|
|
6627
|
+
* <p>Amazon Kendra currently only supports one type of warning, which is a warning
|
|
6628
|
+
* on invalid syntax used in the query. For examples of invalid query syntax,
|
|
6629
|
+
* see <a href="https://docs.aws.amazon.com/kendra/latest/dg/searching-example.html#searching-index-query-syntax">Searching
|
|
6630
|
+
* with advanced query syntax</a>.</p>
|
|
6631
|
+
*/
|
|
6632
|
+
Warnings?: Warning[];
|
|
6596
6633
|
}
|
|
6597
6634
|
export declare namespace QueryResult {
|
|
6598
6635
|
/**
|
|
@@ -7165,7 +7202,7 @@ export interface QueryRequest {
|
|
|
7165
7202
|
/**
|
|
7166
7203
|
* <p>The text to search for.</p>
|
|
7167
7204
|
*/
|
|
7168
|
-
QueryText
|
|
7205
|
+
QueryText?: string;
|
|
7169
7206
|
/**
|
|
7170
7207
|
* <p>Enables filtered searches based on document attributes. You can only
|
|
7171
7208
|
* provide one attribute filter; however, the <code>AndAllFilters</code>,
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Paginator } from "@aws-sdk/types";
|
|
2
|
+
import { GetSnapshotsCommandInput, GetSnapshotsCommandOutput } from "../commands/GetSnapshotsCommand";
|
|
3
|
+
import { KendraPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
export declare function paginateGetSnapshots(config: KendraPaginationConfiguration, input: GetSnapshotsCommandInput, ...additionalArguments: any): Paginator<GetSnapshotsCommandOutput>;
|
|
@@ -2990,6 +2990,20 @@ export declare namespace QueryResultItem {
|
|
|
2990
2990
|
|
|
2991
2991
|
const filterSensitiveLog: (obj: QueryResultItem) => any;
|
|
2992
2992
|
}
|
|
2993
|
+
export declare enum WarningCode {
|
|
2994
|
+
QUERY_LANGUAGE_INVALID_SYNTAX = "QUERY_LANGUAGE_INVALID_SYNTAX"
|
|
2995
|
+
}
|
|
2996
|
+
|
|
2997
|
+
export interface Warning {
|
|
2998
|
+
|
|
2999
|
+
Message?: string;
|
|
3000
|
+
|
|
3001
|
+
Code?: WarningCode | string;
|
|
3002
|
+
}
|
|
3003
|
+
export declare namespace Warning {
|
|
3004
|
+
|
|
3005
|
+
const filterSensitiveLog: (obj: Warning) => any;
|
|
3006
|
+
}
|
|
2993
3007
|
export interface QueryResult {
|
|
2994
3008
|
|
|
2995
3009
|
QueryId?: string;
|
|
@@ -2999,6 +3013,8 @@ export interface QueryResult {
|
|
|
2999
3013
|
FacetResults?: FacetResult[];
|
|
3000
3014
|
|
|
3001
3015
|
TotalNumberOfResults?: number;
|
|
3016
|
+
|
|
3017
|
+
Warnings?: Warning[];
|
|
3002
3018
|
}
|
|
3003
3019
|
export declare namespace QueryResult {
|
|
3004
3020
|
|
|
@@ -3261,7 +3277,7 @@ export interface QueryRequest {
|
|
|
3261
3277
|
|
|
3262
3278
|
IndexId: string | undefined;
|
|
3263
3279
|
|
|
3264
|
-
QueryText
|
|
3280
|
+
QueryText?: string;
|
|
3265
3281
|
|
|
3266
3282
|
AttributeFilter?: AttributeFilter;
|
|
3267
3283
|
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Paginator } from "@aws-sdk/types";
|
|
2
|
+
import { GetSnapshotsCommandInput, GetSnapshotsCommandOutput } from "../commands/GetSnapshotsCommand";
|
|
3
|
+
import { KendraPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
export declare function paginateGetSnapshots(config: KendraPaginationConfiguration, input: GetSnapshotsCommandInput, ...additionalArguments: any): Paginator<GetSnapshotsCommandOutput>;
|
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.48.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",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.48.0",
|
|
22
22
|
"@aws-sdk/config-resolver": "3.47.2",
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.48.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.47.2",
|
|
25
25
|
"@aws-sdk/hash-node": "3.47.2",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.47.2",
|