@aws-sdk/client-kendra 3.53.0 → 3.55.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 +30 -0
- package/dist-cjs/KendraClient.js +13 -13
- package/dist-cjs/commands/AssociateEntitiesToExperienceCommand.js +3 -3
- package/dist-cjs/commands/AssociatePersonasToEntitiesCommand.js +3 -3
- package/dist-cjs/commands/BatchDeleteDocumentCommand.js +3 -3
- package/dist-cjs/commands/BatchGetDocumentStatusCommand.js +3 -3
- package/dist-cjs/commands/BatchPutDocumentCommand.js +3 -3
- package/dist-cjs/commands/ClearQuerySuggestionsCommand.js +3 -3
- package/dist-cjs/commands/CreateDataSourceCommand.js +3 -3
- package/dist-cjs/commands/CreateExperienceCommand.js +3 -3
- package/dist-cjs/commands/CreateFaqCommand.js +3 -3
- package/dist-cjs/commands/CreateIndexCommand.js +3 -3
- package/dist-cjs/commands/CreateQuerySuggestionsBlockListCommand.js +3 -3
- package/dist-cjs/commands/CreateThesaurusCommand.js +3 -3
- package/dist-cjs/commands/DeleteDataSourceCommand.js +3 -3
- package/dist-cjs/commands/DeleteExperienceCommand.js +3 -3
- package/dist-cjs/commands/DeleteFaqCommand.js +3 -3
- package/dist-cjs/commands/DeleteIndexCommand.js +3 -3
- package/dist-cjs/commands/DeletePrincipalMappingCommand.js +3 -3
- package/dist-cjs/commands/DeleteQuerySuggestionsBlockListCommand.js +3 -3
- package/dist-cjs/commands/DeleteThesaurusCommand.js +3 -3
- package/dist-cjs/commands/DescribeDataSourceCommand.js +3 -3
- package/dist-cjs/commands/DescribeExperienceCommand.js +3 -3
- package/dist-cjs/commands/DescribeFaqCommand.js +3 -3
- package/dist-cjs/commands/DescribeIndexCommand.js +3 -3
- package/dist-cjs/commands/DescribePrincipalMappingCommand.js +3 -3
- package/dist-cjs/commands/DescribeQuerySuggestionsBlockListCommand.js +3 -3
- package/dist-cjs/commands/DescribeQuerySuggestionsConfigCommand.js +3 -3
- package/dist-cjs/commands/DescribeThesaurusCommand.js +3 -3
- package/dist-cjs/commands/DisassociateEntitiesFromExperienceCommand.js +3 -3
- package/dist-cjs/commands/DisassociatePersonasFromEntitiesCommand.js +3 -3
- package/dist-cjs/commands/GetQuerySuggestionsCommand.js +3 -3
- package/dist-cjs/commands/GetSnapshotsCommand.js +3 -3
- package/dist-cjs/commands/ListDataSourceSyncJobsCommand.js +3 -3
- package/dist-cjs/commands/ListDataSourcesCommand.js +3 -3
- package/dist-cjs/commands/ListEntityPersonasCommand.js +3 -3
- package/dist-cjs/commands/ListExperienceEntitiesCommand.js +3 -3
- package/dist-cjs/commands/ListExperiencesCommand.js +3 -3
- package/dist-cjs/commands/ListFaqsCommand.js +3 -3
- package/dist-cjs/commands/ListGroupsOlderThanOrderingIdCommand.js +3 -3
- package/dist-cjs/commands/ListIndicesCommand.js +3 -3
- package/dist-cjs/commands/ListQuerySuggestionsBlockListsCommand.js +3 -3
- package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-cjs/commands/ListThesauriCommand.js +3 -3
- package/dist-cjs/commands/PutPrincipalMappingCommand.js +3 -3
- package/dist-cjs/commands/QueryCommand.js +3 -3
- package/dist-cjs/commands/StartDataSourceSyncJobCommand.js +3 -3
- package/dist-cjs/commands/StopDataSourceSyncJobCommand.js +3 -3
- package/dist-cjs/commands/SubmitFeedbackCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateDataSourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateExperienceCommand.js +3 -3
- package/dist-cjs/commands/UpdateIndexCommand.js +3 -3
- package/dist-cjs/commands/UpdateQuerySuggestionsBlockListCommand.js +3 -3
- package/dist-cjs/commands/UpdateQuerySuggestionsConfigCommand.js +3 -3
- package/dist-cjs/commands/UpdateThesaurusCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/models/models_0.js +36 -4
- package/dist-cjs/protocols/Aws_json1_1.js +640 -442
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/Kendra.js +55 -55
- package/dist-es/models/models_0.js +24 -0
- package/dist-es/pagination/GetSnapshotsPaginator.js +4 -4
- package/dist-es/pagination/ListDataSourceSyncJobsPaginator.js +4 -4
- package/dist-es/pagination/ListDataSourcesPaginator.js +4 -4
- package/dist-es/pagination/ListEntityPersonasPaginator.js +4 -4
- package/dist-es/pagination/ListExperienceEntitiesPaginator.js +4 -4
- package/dist-es/pagination/ListExperiencesPaginator.js +4 -4
- package/dist-es/pagination/ListIndicesPaginator.js +4 -4
- package/dist-es/protocols/Aws_json1_1.js +181 -2
- package/dist-types/KendraClient.d.ts +2 -2
- package/dist-types/models/models_0.d.ts +508 -288
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +3 -3
- package/dist-types/ts3.4/KendraClient.d.ts +2 -2
- package/dist-types/ts3.4/models/models_0.d.ts +83 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/package.json +34 -34
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListDataSourceSyncJobsCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListDataSourceSyncJobsCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listDataSourceSyncJobs.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listDataSourceSyncJobs.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListDataSourceSyncJobs(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof Kendra)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof KendraClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListDataSourcesCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListDataSourcesCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listDataSources.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listDataSources.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListDataSources(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof Kendra)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof KendraClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListEntityPersonasCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListEntityPersonasCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listEntityPersonas.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listEntityPersonas.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListEntityPersonas(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof Kendra)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof KendraClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListExperienceEntitiesCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListExperienceEntitiesCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listExperienceEntities.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listExperienceEntities.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -47,13 +47,13 @@ export function paginateListExperienceEntities(config, input) {
|
|
|
47
47
|
if (!hasNext) return [3, 9];
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
if (!(config.client instanceof Kendra)) return [3, 3];
|
|
50
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
50
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
51
51
|
case 2:
|
|
52
52
|
page = _a.sent();
|
|
53
53
|
return [3, 6];
|
|
54
54
|
case 3:
|
|
55
55
|
if (!(config.client instanceof KendraClient)) return [3, 5];
|
|
56
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
56
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
57
57
|
case 4:
|
|
58
58
|
page = _a.sent();
|
|
59
59
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListExperiencesCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListExperiencesCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listExperiences.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listExperiences.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListExperiences(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof Kendra)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof KendraClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListIndicesCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListIndicesCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listIndices.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listIndices.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListIndices(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof Kendra)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof KendraClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -4873,7 +4873,7 @@ var serializeAws_json1_1DatabaseConfiguration = function (input, context) {
|
|
|
4873
4873
|
}));
|
|
4874
4874
|
};
|
|
4875
4875
|
var serializeAws_json1_1DataSourceConfiguration = function (input, context) {
|
|
4876
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConfluenceConfiguration !== undefined &&
|
|
4876
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConfluenceConfiguration !== undefined &&
|
|
4877
4877
|
input.ConfluenceConfiguration !== null && {
|
|
4878
4878
|
ConfluenceConfiguration: serializeAws_json1_1ConfluenceConfiguration(input.ConfluenceConfiguration, context),
|
|
4879
4879
|
})), (input.DatabaseConfiguration !== undefined &&
|
|
@@ -4900,6 +4900,9 @@ var serializeAws_json1_1DataSourceConfiguration = function (input, context) {
|
|
|
4900
4900
|
})), (input.SharePointConfiguration !== undefined &&
|
|
4901
4901
|
input.SharePointConfiguration !== null && {
|
|
4902
4902
|
SharePointConfiguration: serializeAws_json1_1SharePointConfiguration(input.SharePointConfiguration, context),
|
|
4903
|
+
})), (input.SlackConfiguration !== undefined &&
|
|
4904
|
+
input.SlackConfiguration !== null && {
|
|
4905
|
+
SlackConfiguration: serializeAws_json1_1SlackConfiguration(input.SlackConfiguration, context),
|
|
4903
4906
|
})), (input.WebCrawlerConfiguration !== undefined &&
|
|
4904
4907
|
input.WebCrawlerConfiguration !== null && {
|
|
4905
4908
|
WebCrawlerConfiguration: serializeAws_json1_1WebCrawlerConfiguration(input.WebCrawlerConfiguration, context),
|
|
@@ -5486,15 +5489,35 @@ var serializeAws_json1_1PrincipalList = function (input, context) {
|
|
|
5486
5489
|
return serializeAws_json1_1Principal(entry, context);
|
|
5487
5490
|
});
|
|
5488
5491
|
};
|
|
5492
|
+
var serializeAws_json1_1PrivateChannelFilter = function (input, context) {
|
|
5493
|
+
return input
|
|
5494
|
+
.filter(function (e) { return e != null; })
|
|
5495
|
+
.map(function (entry) {
|
|
5496
|
+
if (entry === null) {
|
|
5497
|
+
return null;
|
|
5498
|
+
}
|
|
5499
|
+
return entry;
|
|
5500
|
+
});
|
|
5501
|
+
};
|
|
5489
5502
|
var serializeAws_json1_1ProxyConfiguration = function (input, context) {
|
|
5490
5503
|
return __assign(__assign(__assign({}, (input.Credentials !== undefined && input.Credentials !== null && { Credentials: input.Credentials })), (input.Host !== undefined && input.Host !== null && { Host: input.Host })), (input.Port !== undefined && input.Port !== null && { Port: input.Port }));
|
|
5491
5504
|
};
|
|
5505
|
+
var serializeAws_json1_1PublicChannelFilter = function (input, context) {
|
|
5506
|
+
return input
|
|
5507
|
+
.filter(function (e) { return e != null; })
|
|
5508
|
+
.map(function (entry) {
|
|
5509
|
+
if (entry === null) {
|
|
5510
|
+
return null;
|
|
5511
|
+
}
|
|
5512
|
+
return entry;
|
|
5513
|
+
});
|
|
5514
|
+
};
|
|
5492
5515
|
var serializeAws_json1_1PutPrincipalMappingRequest = function (input, context) {
|
|
5493
5516
|
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DataSourceId !== undefined && input.DataSourceId !== null && { DataSourceId: input.DataSourceId })), (input.GroupId !== undefined && input.GroupId !== null && { GroupId: input.GroupId })), (input.GroupMembers !== undefined &&
|
|
5494
5517
|
input.GroupMembers !== null && { GroupMembers: serializeAws_json1_1GroupMembers(input.GroupMembers, context) })), (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId })), (input.OrderingId !== undefined && input.OrderingId !== null && { OrderingId: input.OrderingId })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }));
|
|
5495
5518
|
};
|
|
5496
5519
|
var serializeAws_json1_1QueryRequest = function (input, context) {
|
|
5497
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AttributeFilter !== undefined &&
|
|
5520
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AttributeFilter !== undefined &&
|
|
5498
5521
|
input.AttributeFilter !== null && {
|
|
5499
5522
|
AttributeFilter: serializeAws_json1_1AttributeFilter(input.AttributeFilter, context),
|
|
5500
5523
|
})), (input.DocumentRelevanceOverrideConfigurations !== undefined &&
|
|
@@ -5508,6 +5531,9 @@ var serializeAws_json1_1QueryRequest = function (input, context) {
|
|
|
5508
5531
|
})), (input.SortingConfiguration !== undefined &&
|
|
5509
5532
|
input.SortingConfiguration !== null && {
|
|
5510
5533
|
SortingConfiguration: serializeAws_json1_1SortingConfiguration(input.SortingConfiguration, context),
|
|
5534
|
+
})), (input.SpellCorrectionConfiguration !== undefined &&
|
|
5535
|
+
input.SpellCorrectionConfiguration !== null && {
|
|
5536
|
+
SpellCorrectionConfiguration: serializeAws_json1_1SpellCorrectionConfiguration(input.SpellCorrectionConfiguration, context),
|
|
5511
5537
|
})), (input.UserContext !== undefined &&
|
|
5512
5538
|
input.UserContext !== null && { UserContext: serializeAws_json1_1UserContext(input.UserContext, context) })), (input.VisitorId !== undefined && input.VisitorId !== null && { VisitorId: input.VisitorId }));
|
|
5513
5539
|
};
|
|
@@ -5787,10 +5813,54 @@ var serializeAws_json1_1SiteMapsList = function (input, context) {
|
|
|
5787
5813
|
return entry;
|
|
5788
5814
|
});
|
|
5789
5815
|
};
|
|
5816
|
+
var serializeAws_json1_1SlackConfiguration = function (input, context) {
|
|
5817
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CrawlBotMessage !== undefined &&
|
|
5818
|
+
input.CrawlBotMessage !== null && { CrawlBotMessage: input.CrawlBotMessage })), (input.ExcludeArchived !== undefined &&
|
|
5819
|
+
input.ExcludeArchived !== null && { ExcludeArchived: input.ExcludeArchived })), (input.ExclusionPatterns !== undefined &&
|
|
5820
|
+
input.ExclusionPatterns !== null && {
|
|
5821
|
+
ExclusionPatterns: serializeAws_json1_1DataSourceInclusionsExclusionsStrings(input.ExclusionPatterns, context),
|
|
5822
|
+
})), (input.FieldMappings !== undefined &&
|
|
5823
|
+
input.FieldMappings !== null && {
|
|
5824
|
+
FieldMappings: serializeAws_json1_1DataSourceToIndexFieldMappingList(input.FieldMappings, context),
|
|
5825
|
+
})), (input.InclusionPatterns !== undefined &&
|
|
5826
|
+
input.InclusionPatterns !== null && {
|
|
5827
|
+
InclusionPatterns: serializeAws_json1_1DataSourceInclusionsExclusionsStrings(input.InclusionPatterns, context),
|
|
5828
|
+
})), (input.LookBackPeriod !== undefined &&
|
|
5829
|
+
input.LookBackPeriod !== null && { LookBackPeriod: input.LookBackPeriod })), (input.PrivateChannelFilter !== undefined &&
|
|
5830
|
+
input.PrivateChannelFilter !== null && {
|
|
5831
|
+
PrivateChannelFilter: serializeAws_json1_1PrivateChannelFilter(input.PrivateChannelFilter, context),
|
|
5832
|
+
})), (input.PublicChannelFilter !== undefined &&
|
|
5833
|
+
input.PublicChannelFilter !== null && {
|
|
5834
|
+
PublicChannelFilter: serializeAws_json1_1PublicChannelFilter(input.PublicChannelFilter, context),
|
|
5835
|
+
})), (input.SecretArn !== undefined && input.SecretArn !== null && { SecretArn: input.SecretArn })), (input.SinceCrawlDate !== undefined &&
|
|
5836
|
+
input.SinceCrawlDate !== null && { SinceCrawlDate: input.SinceCrawlDate })), (input.SlackEntityList !== undefined &&
|
|
5837
|
+
input.SlackEntityList !== null && {
|
|
5838
|
+
SlackEntityList: serializeAws_json1_1SlackEntityList(input.SlackEntityList, context),
|
|
5839
|
+
})), (input.TeamId !== undefined && input.TeamId !== null && { TeamId: input.TeamId })), (input.UseChangeLog !== undefined && input.UseChangeLog !== null && { UseChangeLog: input.UseChangeLog })), (input.VpcConfiguration !== undefined &&
|
|
5840
|
+
input.VpcConfiguration !== null && {
|
|
5841
|
+
VpcConfiguration: serializeAws_json1_1DataSourceVpcConfiguration(input.VpcConfiguration, context),
|
|
5842
|
+
}));
|
|
5843
|
+
};
|
|
5844
|
+
var serializeAws_json1_1SlackEntityList = function (input, context) {
|
|
5845
|
+
return input
|
|
5846
|
+
.filter(function (e) { return e != null; })
|
|
5847
|
+
.map(function (entry) {
|
|
5848
|
+
if (entry === null) {
|
|
5849
|
+
return null;
|
|
5850
|
+
}
|
|
5851
|
+
return entry;
|
|
5852
|
+
});
|
|
5853
|
+
};
|
|
5790
5854
|
var serializeAws_json1_1SortingConfiguration = function (input, context) {
|
|
5791
5855
|
return __assign(__assign({}, (input.DocumentAttributeKey !== undefined &&
|
|
5792
5856
|
input.DocumentAttributeKey !== null && { DocumentAttributeKey: input.DocumentAttributeKey })), (input.SortOrder !== undefined && input.SortOrder !== null && { SortOrder: input.SortOrder }));
|
|
5793
5857
|
};
|
|
5858
|
+
var serializeAws_json1_1SpellCorrectionConfiguration = function (input, context) {
|
|
5859
|
+
return __assign({}, (input.IncludeQuerySpellCheckSuggestions !== undefined &&
|
|
5860
|
+
input.IncludeQuerySpellCheckSuggestions !== null && {
|
|
5861
|
+
IncludeQuerySpellCheckSuggestions: input.IncludeQuerySpellCheckSuggestions,
|
|
5862
|
+
}));
|
|
5863
|
+
};
|
|
5794
5864
|
var serializeAws_json1_1SqlConfiguration = function (input, context) {
|
|
5795
5865
|
return __assign({}, (input.QueryIdentifiersEnclosingOption !== undefined &&
|
|
5796
5866
|
input.QueryIdentifiersEnclosingOption !== null && {
|
|
@@ -6368,6 +6438,25 @@ var deserializeAws_json1_1ContentSourceConfiguration = function (output, context
|
|
|
6368
6438
|
: undefined,
|
|
6369
6439
|
};
|
|
6370
6440
|
};
|
|
6441
|
+
var deserializeAws_json1_1Correction = function (output, context) {
|
|
6442
|
+
return {
|
|
6443
|
+
BeginOffset: __expectInt32(output.BeginOffset),
|
|
6444
|
+
CorrectedTerm: __expectString(output.CorrectedTerm),
|
|
6445
|
+
EndOffset: __expectInt32(output.EndOffset),
|
|
6446
|
+
Term: __expectString(output.Term),
|
|
6447
|
+
};
|
|
6448
|
+
};
|
|
6449
|
+
var deserializeAws_json1_1CorrectionList = function (output, context) {
|
|
6450
|
+
var retVal = (output || [])
|
|
6451
|
+
.filter(function (e) { return e != null; })
|
|
6452
|
+
.map(function (entry) {
|
|
6453
|
+
if (entry === null) {
|
|
6454
|
+
return null;
|
|
6455
|
+
}
|
|
6456
|
+
return deserializeAws_json1_1Correction(entry, context);
|
|
6457
|
+
});
|
|
6458
|
+
return retVal;
|
|
6459
|
+
};
|
|
6371
6460
|
var deserializeAws_json1_1CreateDataSourceResponse = function (output, context) {
|
|
6372
6461
|
return {
|
|
6373
6462
|
Id: __expectString(output.Id),
|
|
@@ -6461,6 +6550,9 @@ var deserializeAws_json1_1DataSourceConfiguration = function (output, context) {
|
|
|
6461
6550
|
SharePointConfiguration: output.SharePointConfiguration !== undefined && output.SharePointConfiguration !== null
|
|
6462
6551
|
? deserializeAws_json1_1SharePointConfiguration(output.SharePointConfiguration, context)
|
|
6463
6552
|
: undefined,
|
|
6553
|
+
SlackConfiguration: output.SlackConfiguration !== undefined && output.SlackConfiguration !== null
|
|
6554
|
+
? deserializeAws_json1_1SlackConfiguration(output.SlackConfiguration, context)
|
|
6555
|
+
: undefined,
|
|
6464
6556
|
WebCrawlerConfiguration: output.WebCrawlerConfiguration !== undefined && output.WebCrawlerConfiguration !== null
|
|
6465
6557
|
? deserializeAws_json1_1WebCrawlerConfiguration(output.WebCrawlerConfiguration, context)
|
|
6466
6558
|
: undefined,
|
|
@@ -7457,6 +7549,17 @@ var deserializeAws_json1_1PersonasSummaryList = function (output, context) {
|
|
|
7457
7549
|
});
|
|
7458
7550
|
return retVal;
|
|
7459
7551
|
};
|
|
7552
|
+
var deserializeAws_json1_1PrivateChannelFilter = function (output, context) {
|
|
7553
|
+
var retVal = (output || [])
|
|
7554
|
+
.filter(function (e) { return e != null; })
|
|
7555
|
+
.map(function (entry) {
|
|
7556
|
+
if (entry === null) {
|
|
7557
|
+
return null;
|
|
7558
|
+
}
|
|
7559
|
+
return __expectString(entry);
|
|
7560
|
+
});
|
|
7561
|
+
return retVal;
|
|
7562
|
+
};
|
|
7460
7563
|
var deserializeAws_json1_1ProxyConfiguration = function (output, context) {
|
|
7461
7564
|
return {
|
|
7462
7565
|
Credentials: __expectString(output.Credentials),
|
|
@@ -7464,6 +7567,17 @@ var deserializeAws_json1_1ProxyConfiguration = function (output, context) {
|
|
|
7464
7567
|
Port: __expectInt32(output.Port),
|
|
7465
7568
|
};
|
|
7466
7569
|
};
|
|
7570
|
+
var deserializeAws_json1_1PublicChannelFilter = function (output, context) {
|
|
7571
|
+
var retVal = (output || [])
|
|
7572
|
+
.filter(function (e) { return e != null; })
|
|
7573
|
+
.map(function (entry) {
|
|
7574
|
+
if (entry === null) {
|
|
7575
|
+
return null;
|
|
7576
|
+
}
|
|
7577
|
+
return __expectString(entry);
|
|
7578
|
+
});
|
|
7579
|
+
return retVal;
|
|
7580
|
+
};
|
|
7467
7581
|
var deserializeAws_json1_1QueryResult = function (output, context) {
|
|
7468
7582
|
return {
|
|
7469
7583
|
FacetResults: output.FacetResults !== undefined && output.FacetResults !== null
|
|
@@ -7473,6 +7587,9 @@ var deserializeAws_json1_1QueryResult = function (output, context) {
|
|
|
7473
7587
|
ResultItems: output.ResultItems !== undefined && output.ResultItems !== null
|
|
7474
7588
|
? deserializeAws_json1_1QueryResultItemList(output.ResultItems, context)
|
|
7475
7589
|
: undefined,
|
|
7590
|
+
SpellCorrectedQueries: output.SpellCorrectedQueries !== undefined && output.SpellCorrectedQueries !== null
|
|
7591
|
+
? deserializeAws_json1_1SpellCorrectedQueryList(output.SpellCorrectedQueries, context)
|
|
7592
|
+
: undefined,
|
|
7476
7593
|
TotalNumberOfResults: __expectInt32(output.TotalNumberOfResults),
|
|
7477
7594
|
Warnings: output.Warnings !== undefined && output.Warnings !== null
|
|
7478
7595
|
? deserializeAws_json1_1WarningList(output.Warnings, context)
|
|
@@ -7887,6 +8004,49 @@ var deserializeAws_json1_1SiteMapsList = function (output, context) {
|
|
|
7887
8004
|
});
|
|
7888
8005
|
return retVal;
|
|
7889
8006
|
};
|
|
8007
|
+
var deserializeAws_json1_1SlackConfiguration = function (output, context) {
|
|
8008
|
+
return {
|
|
8009
|
+
CrawlBotMessage: __expectBoolean(output.CrawlBotMessage),
|
|
8010
|
+
ExcludeArchived: __expectBoolean(output.ExcludeArchived),
|
|
8011
|
+
ExclusionPatterns: output.ExclusionPatterns !== undefined && output.ExclusionPatterns !== null
|
|
8012
|
+
? deserializeAws_json1_1DataSourceInclusionsExclusionsStrings(output.ExclusionPatterns, context)
|
|
8013
|
+
: undefined,
|
|
8014
|
+
FieldMappings: output.FieldMappings !== undefined && output.FieldMappings !== null
|
|
8015
|
+
? deserializeAws_json1_1DataSourceToIndexFieldMappingList(output.FieldMappings, context)
|
|
8016
|
+
: undefined,
|
|
8017
|
+
InclusionPatterns: output.InclusionPatterns !== undefined && output.InclusionPatterns !== null
|
|
8018
|
+
? deserializeAws_json1_1DataSourceInclusionsExclusionsStrings(output.InclusionPatterns, context)
|
|
8019
|
+
: undefined,
|
|
8020
|
+
LookBackPeriod: __expectInt32(output.LookBackPeriod),
|
|
8021
|
+
PrivateChannelFilter: output.PrivateChannelFilter !== undefined && output.PrivateChannelFilter !== null
|
|
8022
|
+
? deserializeAws_json1_1PrivateChannelFilter(output.PrivateChannelFilter, context)
|
|
8023
|
+
: undefined,
|
|
8024
|
+
PublicChannelFilter: output.PublicChannelFilter !== undefined && output.PublicChannelFilter !== null
|
|
8025
|
+
? deserializeAws_json1_1PublicChannelFilter(output.PublicChannelFilter, context)
|
|
8026
|
+
: undefined,
|
|
8027
|
+
SecretArn: __expectString(output.SecretArn),
|
|
8028
|
+
SinceCrawlDate: __expectString(output.SinceCrawlDate),
|
|
8029
|
+
SlackEntityList: output.SlackEntityList !== undefined && output.SlackEntityList !== null
|
|
8030
|
+
? deserializeAws_json1_1SlackEntityList(output.SlackEntityList, context)
|
|
8031
|
+
: undefined,
|
|
8032
|
+
TeamId: __expectString(output.TeamId),
|
|
8033
|
+
UseChangeLog: __expectBoolean(output.UseChangeLog),
|
|
8034
|
+
VpcConfiguration: output.VpcConfiguration !== undefined && output.VpcConfiguration !== null
|
|
8035
|
+
? deserializeAws_json1_1DataSourceVpcConfiguration(output.VpcConfiguration, context)
|
|
8036
|
+
: undefined,
|
|
8037
|
+
};
|
|
8038
|
+
};
|
|
8039
|
+
var deserializeAws_json1_1SlackEntityList = function (output, context) {
|
|
8040
|
+
var retVal = (output || [])
|
|
8041
|
+
.filter(function (e) { return e != null; })
|
|
8042
|
+
.map(function (entry) {
|
|
8043
|
+
if (entry === null) {
|
|
8044
|
+
return null;
|
|
8045
|
+
}
|
|
8046
|
+
return __expectString(entry);
|
|
8047
|
+
});
|
|
8048
|
+
return retVal;
|
|
8049
|
+
};
|
|
7890
8050
|
var deserializeAws_json1_1SnapshotsDataHeaderFields = function (output, context) {
|
|
7891
8051
|
var retVal = (output || [])
|
|
7892
8052
|
.filter(function (e) { return e != null; })
|
|
@@ -7920,6 +8080,25 @@ var deserializeAws_json1_1SnapshotsDataRecords = function (output, context) {
|
|
|
7920
8080
|
});
|
|
7921
8081
|
return retVal;
|
|
7922
8082
|
};
|
|
8083
|
+
var deserializeAws_json1_1SpellCorrectedQuery = function (output, context) {
|
|
8084
|
+
return {
|
|
8085
|
+
Corrections: output.Corrections !== undefined && output.Corrections !== null
|
|
8086
|
+
? deserializeAws_json1_1CorrectionList(output.Corrections, context)
|
|
8087
|
+
: undefined,
|
|
8088
|
+
SuggestedQueryText: __expectString(output.SuggestedQueryText),
|
|
8089
|
+
};
|
|
8090
|
+
};
|
|
8091
|
+
var deserializeAws_json1_1SpellCorrectedQueryList = function (output, context) {
|
|
8092
|
+
var retVal = (output || [])
|
|
8093
|
+
.filter(function (e) { return e != null; })
|
|
8094
|
+
.map(function (entry) {
|
|
8095
|
+
if (entry === null) {
|
|
8096
|
+
return null;
|
|
8097
|
+
}
|
|
8098
|
+
return deserializeAws_json1_1SpellCorrectedQuery(entry, context);
|
|
8099
|
+
});
|
|
8100
|
+
return retVal;
|
|
8101
|
+
};
|
|
7923
8102
|
var deserializeAws_json1_1SqlConfiguration = function (output, context) {
|
|
7924
8103
|
return {
|
|
7925
8104
|
QueryIdentifiersEnclosingOption: __expectString(output.QueryIdentifiersEnclosingOption),
|
|
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
-
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { AssociateEntitiesToExperienceCommandInput, AssociateEntitiesToExperienceCommandOutput } from "./commands/AssociateEntitiesToExperienceCommand";
|
|
10
10
|
import { AssociatePersonasToEntitiesCommandInput, AssociatePersonasToEntitiesCommandOutput } from "./commands/AssociatePersonasToEntitiesCommand";
|
|
11
11
|
import { BatchDeleteDocumentCommandInput, BatchDeleteDocumentCommandOutput } from "./commands/BatchDeleteDocumentCommand";
|
|
@@ -83,7 +83,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
83
83
|
* A function that can calculate the length of a request body.
|
|
84
84
|
* @internal
|
|
85
85
|
*/
|
|
86
|
-
bodyLengthChecker?:
|
|
86
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
87
87
|
/**
|
|
88
88
|
* A function that converts a stream into an array of bytes.
|
|
89
89
|
* @internal
|