@aws-sdk/client-lex-model-building-service 3.354.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.
|
@@ -1111,7 +1111,7 @@ const de_DeleteBotCommand = async (output, context) => {
|
|
|
1111
1111
|
const contents = (0, smithy_client_1.map)({
|
|
1112
1112
|
$metadata: deserializeMetadata(output),
|
|
1113
1113
|
});
|
|
1114
|
-
await collectBody(output.body, context);
|
|
1114
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1115
1115
|
return contents;
|
|
1116
1116
|
};
|
|
1117
1117
|
exports.de_DeleteBotCommand = de_DeleteBotCommand;
|
|
@@ -1156,7 +1156,7 @@ const de_DeleteBotAliasCommand = async (output, context) => {
|
|
|
1156
1156
|
const contents = (0, smithy_client_1.map)({
|
|
1157
1157
|
$metadata: deserializeMetadata(output),
|
|
1158
1158
|
});
|
|
1159
|
-
await collectBody(output.body, context);
|
|
1159
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1160
1160
|
return contents;
|
|
1161
1161
|
};
|
|
1162
1162
|
exports.de_DeleteBotAliasCommand = de_DeleteBotAliasCommand;
|
|
@@ -1201,7 +1201,7 @@ const de_DeleteBotChannelAssociationCommand = async (output, context) => {
|
|
|
1201
1201
|
const contents = (0, smithy_client_1.map)({
|
|
1202
1202
|
$metadata: deserializeMetadata(output),
|
|
1203
1203
|
});
|
|
1204
|
-
await collectBody(output.body, context);
|
|
1204
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1205
1205
|
return contents;
|
|
1206
1206
|
};
|
|
1207
1207
|
exports.de_DeleteBotChannelAssociationCommand = de_DeleteBotChannelAssociationCommand;
|
|
@@ -1243,7 +1243,7 @@ const de_DeleteBotVersionCommand = async (output, context) => {
|
|
|
1243
1243
|
const contents = (0, smithy_client_1.map)({
|
|
1244
1244
|
$metadata: deserializeMetadata(output),
|
|
1245
1245
|
});
|
|
1246
|
-
await collectBody(output.body, context);
|
|
1246
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1247
1247
|
return contents;
|
|
1248
1248
|
};
|
|
1249
1249
|
exports.de_DeleteBotVersionCommand = de_DeleteBotVersionCommand;
|
|
@@ -1288,7 +1288,7 @@ const de_DeleteIntentCommand = async (output, context) => {
|
|
|
1288
1288
|
const contents = (0, smithy_client_1.map)({
|
|
1289
1289
|
$metadata: deserializeMetadata(output),
|
|
1290
1290
|
});
|
|
1291
|
-
await collectBody(output.body, context);
|
|
1291
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1292
1292
|
return contents;
|
|
1293
1293
|
};
|
|
1294
1294
|
exports.de_DeleteIntentCommand = de_DeleteIntentCommand;
|
|
@@ -1333,7 +1333,7 @@ const de_DeleteIntentVersionCommand = async (output, context) => {
|
|
|
1333
1333
|
const contents = (0, smithy_client_1.map)({
|
|
1334
1334
|
$metadata: deserializeMetadata(output),
|
|
1335
1335
|
});
|
|
1336
|
-
await collectBody(output.body, context);
|
|
1336
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1337
1337
|
return contents;
|
|
1338
1338
|
};
|
|
1339
1339
|
exports.de_DeleteIntentVersionCommand = de_DeleteIntentVersionCommand;
|
|
@@ -1378,7 +1378,7 @@ const de_DeleteSlotTypeCommand = async (output, context) => {
|
|
|
1378
1378
|
const contents = (0, smithy_client_1.map)({
|
|
1379
1379
|
$metadata: deserializeMetadata(output),
|
|
1380
1380
|
});
|
|
1381
|
-
await collectBody(output.body, context);
|
|
1381
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1382
1382
|
return contents;
|
|
1383
1383
|
};
|
|
1384
1384
|
exports.de_DeleteSlotTypeCommand = de_DeleteSlotTypeCommand;
|
|
@@ -1423,7 +1423,7 @@ const de_DeleteSlotTypeVersionCommand = async (output, context) => {
|
|
|
1423
1423
|
const contents = (0, smithy_client_1.map)({
|
|
1424
1424
|
$metadata: deserializeMetadata(output),
|
|
1425
1425
|
});
|
|
1426
|
-
await collectBody(output.body, context);
|
|
1426
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1427
1427
|
return contents;
|
|
1428
1428
|
};
|
|
1429
1429
|
exports.de_DeleteSlotTypeVersionCommand = de_DeleteSlotTypeVersionCommand;
|
|
@@ -1468,7 +1468,7 @@ const de_DeleteUtterancesCommand = async (output, context) => {
|
|
|
1468
1468
|
const contents = (0, smithy_client_1.map)({
|
|
1469
1469
|
$metadata: deserializeMetadata(output),
|
|
1470
1470
|
});
|
|
1471
|
-
await collectBody(output.body, context);
|
|
1471
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1472
1472
|
return contents;
|
|
1473
1473
|
};
|
|
1474
1474
|
exports.de_DeleteUtterancesCommand = de_DeleteUtterancesCommand;
|
|
@@ -2866,7 +2866,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
2866
2866
|
const contents = (0, smithy_client_1.map)({
|
|
2867
2867
|
$metadata: deserializeMetadata(output),
|
|
2868
2868
|
});
|
|
2869
|
-
await collectBody(output.body, context);
|
|
2869
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2870
2870
|
return contents;
|
|
2871
2871
|
};
|
|
2872
2872
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
@@ -2908,7 +2908,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
2908
2908
|
const contents = (0, smithy_client_1.map)({
|
|
2909
2909
|
$metadata: deserializeMetadata(output),
|
|
2910
2910
|
});
|
|
2911
|
-
await collectBody(output.body, context);
|
|
2911
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2912
2912
|
return contents;
|
|
2913
2913
|
};
|
|
2914
2914
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
@@ -3202,13 +3202,7 @@ const deserializeMetadata = (output) => ({
|
|
|
3202
3202
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3203
3203
|
cfId: output.headers["x-amz-cf-id"],
|
|
3204
3204
|
});
|
|
3205
|
-
const
|
|
3206
|
-
if (streamBody instanceof Uint8Array) {
|
|
3207
|
-
return Promise.resolve(streamBody);
|
|
3208
|
-
}
|
|
3209
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3210
|
-
};
|
|
3211
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3205
|
+
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3212
3206
|
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
3213
3207
|
value !== null &&
|
|
3214
3208
|
value !== "" &&
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
1
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { LexModelBuildingServiceServiceException as __BaseException } from "../models/LexModelBuildingServiceServiceException";
|
|
4
4
|
import { AccessDeniedException, BadRequestException, ConflictException, InternalFailureException, LimitExceededException, NotFoundException, PreconditionFailedException, ResourceInUseException, } from "../models/models_0";
|
|
@@ -3114,12 +3114,6 @@ const deserializeMetadata = (output) => ({
|
|
|
3114
3114
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3115
3115
|
cfId: output.headers["x-amz-cf-id"],
|
|
3116
3116
|
});
|
|
3117
|
-
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
3118
|
-
if (streamBody instanceof Uint8Array) {
|
|
3119
|
-
return Promise.resolve(streamBody);
|
|
3120
|
-
}
|
|
3121
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3122
|
-
};
|
|
3123
3117
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3124
3118
|
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
3125
3119
|
value !== null &&
|
|
@@ -115,7 +115,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
115
115
|
*/
|
|
116
116
|
runtime?: string;
|
|
117
117
|
/**
|
|
118
|
-
* Disable
|
|
118
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
119
119
|
* trait of an operation.
|
|
120
120
|
*/
|
|
121
121
|
disableHostPrefix?: boolean;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-lex-model-building-service",
|
|
3
3
|
"description": "AWS SDK for JavaScript Lex Model Building Service 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",
|