@aws-sdk/client-kendra 3.353.0 → 3.357.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.
|
@@ -756,7 +756,7 @@ const de_ClearQuerySuggestionsCommand = async (output, context) => {
|
|
|
756
756
|
if (output.statusCode >= 300) {
|
|
757
757
|
return de_ClearQuerySuggestionsCommandError(output, context);
|
|
758
758
|
}
|
|
759
|
-
await collectBody(output.body, context);
|
|
759
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
760
760
|
const response = {
|
|
761
761
|
$metadata: deserializeMetadata(output),
|
|
762
762
|
};
|
|
@@ -1260,7 +1260,7 @@ const de_DeleteDataSourceCommand = async (output, context) => {
|
|
|
1260
1260
|
if (output.statusCode >= 300) {
|
|
1261
1261
|
return de_DeleteDataSourceCommandError(output, context);
|
|
1262
1262
|
}
|
|
1263
|
-
await collectBody(output.body, context);
|
|
1263
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1264
1264
|
const response = {
|
|
1265
1265
|
$metadata: deserializeMetadata(output),
|
|
1266
1266
|
};
|
|
@@ -1353,7 +1353,7 @@ const de_DeleteFaqCommand = async (output, context) => {
|
|
|
1353
1353
|
if (output.statusCode >= 300) {
|
|
1354
1354
|
return de_DeleteFaqCommandError(output, context);
|
|
1355
1355
|
}
|
|
1356
|
-
await collectBody(output.body, context);
|
|
1356
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1357
1357
|
const response = {
|
|
1358
1358
|
$metadata: deserializeMetadata(output),
|
|
1359
1359
|
};
|
|
@@ -1398,7 +1398,7 @@ const de_DeleteIndexCommand = async (output, context) => {
|
|
|
1398
1398
|
if (output.statusCode >= 300) {
|
|
1399
1399
|
return de_DeleteIndexCommandError(output, context);
|
|
1400
1400
|
}
|
|
1401
|
-
await collectBody(output.body, context);
|
|
1401
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1402
1402
|
const response = {
|
|
1403
1403
|
$metadata: deserializeMetadata(output),
|
|
1404
1404
|
};
|
|
@@ -1443,7 +1443,7 @@ const de_DeletePrincipalMappingCommand = async (output, context) => {
|
|
|
1443
1443
|
if (output.statusCode >= 300) {
|
|
1444
1444
|
return de_DeletePrincipalMappingCommandError(output, context);
|
|
1445
1445
|
}
|
|
1446
|
-
await collectBody(output.body, context);
|
|
1446
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1447
1447
|
const response = {
|
|
1448
1448
|
$metadata: deserializeMetadata(output),
|
|
1449
1449
|
};
|
|
@@ -1488,7 +1488,7 @@ const de_DeleteQuerySuggestionsBlockListCommand = async (output, context) => {
|
|
|
1488
1488
|
if (output.statusCode >= 300) {
|
|
1489
1489
|
return de_DeleteQuerySuggestionsBlockListCommandError(output, context);
|
|
1490
1490
|
}
|
|
1491
|
-
await collectBody(output.body, context);
|
|
1491
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1492
1492
|
const response = {
|
|
1493
1493
|
$metadata: deserializeMetadata(output),
|
|
1494
1494
|
};
|
|
@@ -1533,7 +1533,7 @@ const de_DeleteThesaurusCommand = async (output, context) => {
|
|
|
1533
1533
|
if (output.statusCode >= 300) {
|
|
1534
1534
|
return de_DeleteThesaurusCommandError(output, context);
|
|
1535
1535
|
}
|
|
1536
|
-
await collectBody(output.body, context);
|
|
1536
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1537
1537
|
const response = {
|
|
1538
1538
|
$metadata: deserializeMetadata(output),
|
|
1539
1539
|
};
|
|
@@ -2799,7 +2799,7 @@ const de_PutPrincipalMappingCommand = async (output, context) => {
|
|
|
2799
2799
|
if (output.statusCode >= 300) {
|
|
2800
2800
|
return de_PutPrincipalMappingCommandError(output, context);
|
|
2801
2801
|
}
|
|
2802
|
-
await collectBody(output.body, context);
|
|
2802
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2803
2803
|
const response = {
|
|
2804
2804
|
$metadata: deserializeMetadata(output),
|
|
2805
2805
|
};
|
|
@@ -2949,7 +2949,7 @@ const de_StopDataSourceSyncJobCommand = async (output, context) => {
|
|
|
2949
2949
|
if (output.statusCode >= 300) {
|
|
2950
2950
|
return de_StopDataSourceSyncJobCommandError(output, context);
|
|
2951
2951
|
}
|
|
2952
|
-
await collectBody(output.body, context);
|
|
2952
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2953
2953
|
const response = {
|
|
2954
2954
|
$metadata: deserializeMetadata(output),
|
|
2955
2955
|
};
|
|
@@ -2991,7 +2991,7 @@ const de_SubmitFeedbackCommand = async (output, context) => {
|
|
|
2991
2991
|
if (output.statusCode >= 300) {
|
|
2992
2992
|
return de_SubmitFeedbackCommandError(output, context);
|
|
2993
2993
|
}
|
|
2994
|
-
await collectBody(output.body, context);
|
|
2994
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2995
2995
|
const response = {
|
|
2996
2996
|
$metadata: deserializeMetadata(output),
|
|
2997
2997
|
};
|
|
@@ -3177,7 +3177,7 @@ const de_UpdateDataSourceCommand = async (output, context) => {
|
|
|
3177
3177
|
if (output.statusCode >= 300) {
|
|
3178
3178
|
return de_UpdateDataSourceCommandError(output, context);
|
|
3179
3179
|
}
|
|
3180
|
-
await collectBody(output.body, context);
|
|
3180
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3181
3181
|
const response = {
|
|
3182
3182
|
$metadata: deserializeMetadata(output),
|
|
3183
3183
|
};
|
|
@@ -3222,7 +3222,7 @@ const de_UpdateExperienceCommand = async (output, context) => {
|
|
|
3222
3222
|
if (output.statusCode >= 300) {
|
|
3223
3223
|
return de_UpdateExperienceCommandError(output, context);
|
|
3224
3224
|
}
|
|
3225
|
-
await collectBody(output.body, context);
|
|
3225
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3226
3226
|
const response = {
|
|
3227
3227
|
$metadata: deserializeMetadata(output),
|
|
3228
3228
|
};
|
|
@@ -3315,7 +3315,7 @@ const de_UpdateIndexCommand = async (output, context) => {
|
|
|
3315
3315
|
if (output.statusCode >= 300) {
|
|
3316
3316
|
return de_UpdateIndexCommandError(output, context);
|
|
3317
3317
|
}
|
|
3318
|
-
await collectBody(output.body, context);
|
|
3318
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3319
3319
|
const response = {
|
|
3320
3320
|
$metadata: deserializeMetadata(output),
|
|
3321
3321
|
};
|
|
@@ -3363,7 +3363,7 @@ const de_UpdateQuerySuggestionsBlockListCommand = async (output, context) => {
|
|
|
3363
3363
|
if (output.statusCode >= 300) {
|
|
3364
3364
|
return de_UpdateQuerySuggestionsBlockListCommandError(output, context);
|
|
3365
3365
|
}
|
|
3366
|
-
await collectBody(output.body, context);
|
|
3366
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3367
3367
|
const response = {
|
|
3368
3368
|
$metadata: deserializeMetadata(output),
|
|
3369
3369
|
};
|
|
@@ -3408,7 +3408,7 @@ const de_UpdateQuerySuggestionsConfigCommand = async (output, context) => {
|
|
|
3408
3408
|
if (output.statusCode >= 300) {
|
|
3409
3409
|
return de_UpdateQuerySuggestionsConfigCommandError(output, context);
|
|
3410
3410
|
}
|
|
3411
|
-
await collectBody(output.body, context);
|
|
3411
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3412
3412
|
const response = {
|
|
3413
3413
|
$metadata: deserializeMetadata(output),
|
|
3414
3414
|
};
|
|
@@ -3453,7 +3453,7 @@ const de_UpdateThesaurusCommand = async (output, context) => {
|
|
|
3453
3453
|
if (output.statusCode >= 300) {
|
|
3454
3454
|
return de_UpdateThesaurusCommandError(output, context);
|
|
3455
3455
|
}
|
|
3456
|
-
await collectBody(output.body, context);
|
|
3456
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3457
3457
|
const response = {
|
|
3458
3458
|
$metadata: deserializeMetadata(output),
|
|
3459
3459
|
};
|
|
@@ -4546,13 +4546,7 @@ const deserializeMetadata = (output) => ({
|
|
|
4546
4546
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
4547
4547
|
cfId: output.headers["x-amz-cf-id"],
|
|
4548
4548
|
});
|
|
4549
|
-
const
|
|
4550
|
-
if (streamBody instanceof Uint8Array) {
|
|
4551
|
-
return Promise.resolve(streamBody);
|
|
4552
|
-
}
|
|
4553
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4554
|
-
};
|
|
4555
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
4549
|
+
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
4556
4550
|
const throwDefaultError = (0, smithy_client_1.withBaseException)(KendraServiceException_1.KendraServiceException);
|
|
4557
4551
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
4558
4552
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
1
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { KendraServiceException as __BaseException } from "../models/KendraServiceException";
|
|
@@ -4411,12 +4411,6 @@ const deserializeMetadata = (output) => ({
|
|
|
4411
4411
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
4412
4412
|
cfId: output.headers["x-amz-cf-id"],
|
|
4413
4413
|
});
|
|
4414
|
-
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
4415
|
-
if (streamBody instanceof Uint8Array) {
|
|
4416
|
-
return Promise.resolve(streamBody);
|
|
4417
|
-
}
|
|
4418
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4419
|
-
};
|
|
4420
4414
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
4421
4415
|
const throwDefaultError = withBaseException(__BaseException);
|
|
4422
4416
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
@@ -138,7 +138,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
138
138
|
*/
|
|
139
139
|
runtime?: string;
|
|
140
140
|
/**
|
|
141
|
-
* Disable
|
|
141
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
142
142
|
* trait of an operation.
|
|
143
143
|
*/
|
|
144
144
|
disableHostPrefix?: boolean;
|
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.357.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,36 +21,36 @@
|
|
|
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.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
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.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
-
"@aws-sdk/types": "3.
|
|
44
|
-
"@aws-sdk/url-parser": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.357.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.357.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.357.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.357.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.357.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.357.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.357.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.357.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.357.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.357.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.357.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.357.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.357.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.357.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.357.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.357.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.357.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.357.0",
|
|
42
|
+
"@aws-sdk/smithy-client": "3.357.0",
|
|
43
|
+
"@aws-sdk/types": "3.357.0",
|
|
44
|
+
"@aws-sdk/url-parser": "3.357.0",
|
|
45
45
|
"@aws-sdk/util-base64": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-retry": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.357.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.357.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.357.0",
|
|
51
|
+
"@aws-sdk/util-retry": "3.357.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-browser": "3.357.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-node": "3.357.0",
|
|
54
54
|
"@aws-sdk/util-utf8": "3.310.0",
|
|
55
55
|
"@smithy/protocol-http": "^1.0.1",
|
|
56
56
|
"@smithy/types": "^1.0.0",
|