@aws-sdk/client-lex-models-v2 3.44.0 → 3.47.1
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 +47 -0
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +30 -47
- package/dist-cjs/protocols/Aws_restJson1.js +81 -0
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_0.js +19 -28
- package/dist-es/protocols/Aws_restJson1.js +73 -2
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/LexModelsV2Client.d.ts +5 -1
- package/dist-types/models/models_0.d.ts +131 -47
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/LexModelsV2Client.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +55 -30
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +40 -47
|
@@ -510,7 +510,10 @@ export var serializeAws_restJson1CreateSlotTypeCommand = function (input, contex
|
|
|
510
510
|
else {
|
|
511
511
|
throw new Error("No value provided for input HTTP label: localeId.");
|
|
512
512
|
}
|
|
513
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.
|
|
513
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.externalSourceSetting !== undefined &&
|
|
514
|
+
input.externalSourceSetting !== null && {
|
|
515
|
+
externalSourceSetting: serializeAws_restJson1ExternalSourceSetting(input.externalSourceSetting, context),
|
|
516
|
+
})), (input.parentSlotTypeSignature !== undefined &&
|
|
514
517
|
input.parentSlotTypeSignature !== null && { parentSlotTypeSignature: input.parentSlotTypeSignature })), (input.slotTypeName !== undefined && input.slotTypeName !== null && { slotTypeName: input.slotTypeName })), (input.slotTypeValues !== undefined &&
|
|
515
518
|
input.slotTypeValues !== null && {
|
|
516
519
|
slotTypeValues: serializeAws_restJson1SlotTypeValues(input.slotTypeValues, context),
|
|
@@ -2992,7 +2995,10 @@ export var serializeAws_restJson1UpdateSlotTypeCommand = function (input, contex
|
|
|
2992
2995
|
else {
|
|
2993
2996
|
throw new Error("No value provided for input HTTP label: localeId.");
|
|
2994
2997
|
}
|
|
2995
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.
|
|
2998
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.externalSourceSetting !== undefined &&
|
|
2999
|
+
input.externalSourceSetting !== null && {
|
|
3000
|
+
externalSourceSetting: serializeAws_restJson1ExternalSourceSetting(input.externalSourceSetting, context),
|
|
3001
|
+
})), (input.parentSlotTypeSignature !== undefined &&
|
|
2996
3002
|
input.parentSlotTypeSignature !== null && { parentSlotTypeSignature: input.parentSlotTypeSignature })), (input.slotTypeName !== undefined && input.slotTypeName !== null && { slotTypeName: input.slotTypeName })), (input.slotTypeValues !== undefined &&
|
|
2997
3003
|
input.slotTypeValues !== null && {
|
|
2998
3004
|
slotTypeValues: serializeAws_restJson1SlotTypeValues(input.slotTypeValues, context),
|
|
@@ -4326,6 +4332,7 @@ export var deserializeAws_restJson1CreateSlotTypeCommand = function (output, con
|
|
|
4326
4332
|
botVersion: undefined,
|
|
4327
4333
|
creationDateTime: undefined,
|
|
4328
4334
|
description: undefined,
|
|
4335
|
+
externalSourceSetting: undefined,
|
|
4329
4336
|
localeId: undefined,
|
|
4330
4337
|
parentSlotTypeSignature: undefined,
|
|
4331
4338
|
slotTypeId: undefined,
|
|
@@ -4350,6 +4357,9 @@ export var deserializeAws_restJson1CreateSlotTypeCommand = function (output, con
|
|
|
4350
4357
|
if (data.description !== undefined && data.description !== null) {
|
|
4351
4358
|
contents.description = __expectString(data.description);
|
|
4352
4359
|
}
|
|
4360
|
+
if (data.externalSourceSetting !== undefined && data.externalSourceSetting !== null) {
|
|
4361
|
+
contents.externalSourceSetting = deserializeAws_restJson1ExternalSourceSetting(data.externalSourceSetting, context);
|
|
4362
|
+
}
|
|
4353
4363
|
if (data.localeId !== undefined && data.localeId !== null) {
|
|
4354
4364
|
contents.localeId = __expectString(data.localeId);
|
|
4355
4365
|
}
|
|
@@ -6011,6 +6021,7 @@ export var deserializeAws_restJson1DescribeBotLocaleCommand = function (output,
|
|
|
6011
6021
|
localeId: undefined,
|
|
6012
6022
|
localeName: undefined,
|
|
6013
6023
|
nluIntentConfidenceThreshold: undefined,
|
|
6024
|
+
recommendedActions: undefined,
|
|
6014
6025
|
slotTypesCount: undefined,
|
|
6015
6026
|
voiceSettings: undefined,
|
|
6016
6027
|
};
|
|
@@ -6058,6 +6069,9 @@ export var deserializeAws_restJson1DescribeBotLocaleCommand = function (output,
|
|
|
6058
6069
|
if (data.nluIntentConfidenceThreshold !== undefined && data.nluIntentConfidenceThreshold !== null) {
|
|
6059
6070
|
contents.nluIntentConfidenceThreshold = __limitedParseDouble(data.nluIntentConfidenceThreshold);
|
|
6060
6071
|
}
|
|
6072
|
+
if (data.recommendedActions !== undefined && data.recommendedActions !== null) {
|
|
6073
|
+
contents.recommendedActions = deserializeAws_restJson1RecommendedActions(data.recommendedActions, context);
|
|
6074
|
+
}
|
|
6061
6075
|
if (data.slotTypesCount !== undefined && data.slotTypesCount !== null) {
|
|
6062
6076
|
contents.slotTypesCount = __expectInt32(data.slotTypesCount);
|
|
6063
6077
|
}
|
|
@@ -7030,6 +7044,7 @@ export var deserializeAws_restJson1DescribeSlotTypeCommand = function (output, c
|
|
|
7030
7044
|
botVersion: undefined,
|
|
7031
7045
|
creationDateTime: undefined,
|
|
7032
7046
|
description: undefined,
|
|
7047
|
+
externalSourceSetting: undefined,
|
|
7033
7048
|
lastUpdatedDateTime: undefined,
|
|
7034
7049
|
localeId: undefined,
|
|
7035
7050
|
parentSlotTypeSignature: undefined,
|
|
@@ -7055,6 +7070,9 @@ export var deserializeAws_restJson1DescribeSlotTypeCommand = function (output, c
|
|
|
7055
7070
|
if (data.description !== undefined && data.description !== null) {
|
|
7056
7071
|
contents.description = __expectString(data.description);
|
|
7057
7072
|
}
|
|
7073
|
+
if (data.externalSourceSetting !== undefined && data.externalSourceSetting !== null) {
|
|
7074
|
+
contents.externalSourceSetting = deserializeAws_restJson1ExternalSourceSetting(data.externalSourceSetting, context);
|
|
7075
|
+
}
|
|
7058
7076
|
if (data.lastUpdatedDateTime !== undefined && data.lastUpdatedDateTime !== null) {
|
|
7059
7077
|
contents.lastUpdatedDateTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.lastUpdatedDateTime)));
|
|
7060
7078
|
}
|
|
@@ -9458,6 +9476,7 @@ export var deserializeAws_restJson1UpdateBotLocaleCommand = function (output, co
|
|
|
9458
9476
|
localeId: undefined,
|
|
9459
9477
|
localeName: undefined,
|
|
9460
9478
|
nluIntentConfidenceThreshold: undefined,
|
|
9479
|
+
recommendedActions: undefined,
|
|
9461
9480
|
voiceSettings: undefined,
|
|
9462
9481
|
};
|
|
9463
9482
|
_a = __expectNonNull;
|
|
@@ -9495,6 +9514,9 @@ export var deserializeAws_restJson1UpdateBotLocaleCommand = function (output, co
|
|
|
9495
9514
|
if (data.nluIntentConfidenceThreshold !== undefined && data.nluIntentConfidenceThreshold !== null) {
|
|
9496
9515
|
contents.nluIntentConfidenceThreshold = __limitedParseDouble(data.nluIntentConfidenceThreshold);
|
|
9497
9516
|
}
|
|
9517
|
+
if (data.recommendedActions !== undefined && data.recommendedActions !== null) {
|
|
9518
|
+
contents.recommendedActions = deserializeAws_restJson1RecommendedActions(data.recommendedActions, context);
|
|
9519
|
+
}
|
|
9498
9520
|
if (data.voiceSettings !== undefined && data.voiceSettings !== null) {
|
|
9499
9521
|
contents.voiceSettings = deserializeAws_restJson1VoiceSettings(data.voiceSettings, context);
|
|
9500
9522
|
}
|
|
@@ -10284,6 +10306,7 @@ export var deserializeAws_restJson1UpdateSlotTypeCommand = function (output, con
|
|
|
10284
10306
|
botVersion: undefined,
|
|
10285
10307
|
creationDateTime: undefined,
|
|
10286
10308
|
description: undefined,
|
|
10309
|
+
externalSourceSetting: undefined,
|
|
10287
10310
|
lastUpdatedDateTime: undefined,
|
|
10288
10311
|
localeId: undefined,
|
|
10289
10312
|
parentSlotTypeSignature: undefined,
|
|
@@ -10309,6 +10332,9 @@ export var deserializeAws_restJson1UpdateSlotTypeCommand = function (output, con
|
|
|
10309
10332
|
if (data.description !== undefined && data.description !== null) {
|
|
10310
10333
|
contents.description = __expectString(data.description);
|
|
10311
10334
|
}
|
|
10335
|
+
if (data.externalSourceSetting !== undefined && data.externalSourceSetting !== null) {
|
|
10336
|
+
contents.externalSourceSetting = deserializeAws_restJson1ExternalSourceSetting(data.externalSourceSetting, context);
|
|
10337
|
+
}
|
|
10312
10338
|
if (data.lastUpdatedDateTime !== undefined && data.lastUpdatedDateTime !== null) {
|
|
10313
10339
|
contents.lastUpdatedDateTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.lastUpdatedDateTime)));
|
|
10314
10340
|
}
|
|
@@ -10775,6 +10801,12 @@ var serializeAws_restJson1ExportResourceSpecification = function (input, context
|
|
|
10775
10801
|
var serializeAws_restJson1ExportSortBy = function (input, context) {
|
|
10776
10802
|
return __assign(__assign({}, (input.attribute !== undefined && input.attribute !== null && { attribute: input.attribute })), (input.order !== undefined && input.order !== null && { order: input.order }));
|
|
10777
10803
|
};
|
|
10804
|
+
var serializeAws_restJson1ExternalSourceSetting = function (input, context) {
|
|
10805
|
+
return __assign({}, (input.grammarSlotTypeSetting !== undefined &&
|
|
10806
|
+
input.grammarSlotTypeSetting !== null && {
|
|
10807
|
+
grammarSlotTypeSetting: serializeAws_restJson1GrammarSlotTypeSetting(input.grammarSlotTypeSetting, context),
|
|
10808
|
+
}));
|
|
10809
|
+
};
|
|
10778
10810
|
var serializeAws_restJson1FilterValues = function (input, context) {
|
|
10779
10811
|
return input
|
|
10780
10812
|
.filter(function (e) { return e != null; })
|
|
@@ -10820,6 +10852,13 @@ var serializeAws_restJson1FulfillmentUpdatesSpecification = function (input, con
|
|
|
10820
10852
|
updateResponse: serializeAws_restJson1FulfillmentUpdateResponseSpecification(input.updateResponse, context),
|
|
10821
10853
|
}));
|
|
10822
10854
|
};
|
|
10855
|
+
var serializeAws_restJson1GrammarSlotTypeSetting = function (input, context) {
|
|
10856
|
+
return __assign({}, (input.source !== undefined &&
|
|
10857
|
+
input.source !== null && { source: serializeAws_restJson1GrammarSlotTypeSource(input.source, context) }));
|
|
10858
|
+
};
|
|
10859
|
+
var serializeAws_restJson1GrammarSlotTypeSource = function (input, context) {
|
|
10860
|
+
return __assign(__assign(__assign({}, (input.kmsKeyArn !== undefined && input.kmsKeyArn !== null && { kmsKeyArn: input.kmsKeyArn })), (input.s3BucketName !== undefined && input.s3BucketName !== null && { s3BucketName: input.s3BucketName })), (input.s3ObjectKey !== undefined && input.s3ObjectKey !== null && { s3ObjectKey: input.s3ObjectKey }));
|
|
10861
|
+
};
|
|
10823
10862
|
var serializeAws_restJson1ImageResponseCard = function (input, context) {
|
|
10824
10863
|
return __assign(__assign(__assign(__assign({}, (input.buttons !== undefined &&
|
|
10825
10864
|
input.buttons !== null && { buttons: serializeAws_restJson1ButtonsList(input.buttons, context) })), (input.imageUrl !== undefined && input.imageUrl !== null && { imageUrl: input.imageUrl })), (input.subtitle !== undefined && input.subtitle !== null && { subtitle: input.subtitle })), (input.title !== undefined && input.title !== null && { title: input.title }));
|
|
@@ -11718,6 +11757,13 @@ var deserializeAws_restJson1ExportSummaryList = function (output, context) {
|
|
|
11718
11757
|
return deserializeAws_restJson1ExportSummary(entry, context);
|
|
11719
11758
|
});
|
|
11720
11759
|
};
|
|
11760
|
+
var deserializeAws_restJson1ExternalSourceSetting = function (output, context) {
|
|
11761
|
+
return {
|
|
11762
|
+
grammarSlotTypeSetting: output.grammarSlotTypeSetting !== undefined && output.grammarSlotTypeSetting !== null
|
|
11763
|
+
? deserializeAws_restJson1GrammarSlotTypeSetting(output.grammarSlotTypeSetting, context)
|
|
11764
|
+
: undefined,
|
|
11765
|
+
};
|
|
11766
|
+
};
|
|
11721
11767
|
var deserializeAws_restJson1FailureReasons = function (output, context) {
|
|
11722
11768
|
return (output || [])
|
|
11723
11769
|
.filter(function (e) { return e != null; })
|
|
@@ -11769,6 +11815,20 @@ var deserializeAws_restJson1FulfillmentUpdatesSpecification = function (output,
|
|
|
11769
11815
|
: undefined,
|
|
11770
11816
|
};
|
|
11771
11817
|
};
|
|
11818
|
+
var deserializeAws_restJson1GrammarSlotTypeSetting = function (output, context) {
|
|
11819
|
+
return {
|
|
11820
|
+
source: output.source !== undefined && output.source !== null
|
|
11821
|
+
? deserializeAws_restJson1GrammarSlotTypeSource(output.source, context)
|
|
11822
|
+
: undefined,
|
|
11823
|
+
};
|
|
11824
|
+
};
|
|
11825
|
+
var deserializeAws_restJson1GrammarSlotTypeSource = function (output, context) {
|
|
11826
|
+
return {
|
|
11827
|
+
kmsKeyArn: __expectString(output.kmsKeyArn),
|
|
11828
|
+
s3BucketName: __expectString(output.s3BucketName),
|
|
11829
|
+
s3ObjectKey: __expectString(output.s3ObjectKey),
|
|
11830
|
+
};
|
|
11831
|
+
};
|
|
11772
11832
|
var deserializeAws_restJson1ImageResponseCard = function (output, context) {
|
|
11773
11833
|
return {
|
|
11774
11834
|
buttons: output.buttons !== undefined && output.buttons !== null
|
|
@@ -12017,6 +12077,16 @@ var deserializeAws_restJson1PromptSpecification = function (output, context) {
|
|
|
12017
12077
|
: undefined,
|
|
12018
12078
|
};
|
|
12019
12079
|
};
|
|
12080
|
+
var deserializeAws_restJson1RecommendedActions = function (output, context) {
|
|
12081
|
+
return (output || [])
|
|
12082
|
+
.filter(function (e) { return e != null; })
|
|
12083
|
+
.map(function (entry) {
|
|
12084
|
+
if (entry === null) {
|
|
12085
|
+
return null;
|
|
12086
|
+
}
|
|
12087
|
+
return __expectString(entry);
|
|
12088
|
+
});
|
|
12089
|
+
};
|
|
12020
12090
|
var deserializeAws_restJson1RecommendedIntentSummary = function (output, context) {
|
|
12021
12091
|
return {
|
|
12022
12092
|
intentId: __expectString(output.intentId),
|
|
@@ -12168,6 +12238,7 @@ var deserializeAws_restJson1SlotTypeSummary = function (output, context) {
|
|
|
12168
12238
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDateTime)))
|
|
12169
12239
|
: undefined,
|
|
12170
12240
|
parentSlotTypeSignature: __expectString(output.parentSlotTypeSignature),
|
|
12241
|
+
slotTypeCategory: __expectString(output.slotTypeCategory),
|
|
12171
12242
|
slotTypeId: __expectString(output.slotTypeId),
|
|
12172
12243
|
slotTypeName: __expectString(output.slotTypeName),
|
|
12173
12244
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
5
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
7
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
|
10
10
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
11
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
13
15
|
export var getRuntimeConfig = function (config) {
|
|
14
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
18
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
15
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
21
|
+
switch (_a.label) {
|
|
22
|
+
case 0: return [4, defaultConfigProvider()];
|
|
23
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
24
|
+
}
|
|
25
|
+
}); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
17
26
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,21 +1,28 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
4
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
6
|
import { Hash } from "@aws-sdk/hash-node";
|
|
7
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
|
-
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
10
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
11
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
-
import {
|
|
15
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
16
17
|
export var getRuntimeConfig = function (config) {
|
|
17
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
|
-
|
|
19
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
19
21
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
22
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
23
|
+
switch (_a.label) {
|
|
24
|
+
case 0: return [4, defaultConfigProvider()];
|
|
25
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
26
|
+
}
|
|
27
|
+
}); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
21
28
|
};
|
|
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
4
4
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
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";
|
|
9
9
|
import { BuildBotLocaleCommandInput, BuildBotLocaleCommandOutput } from "./commands/BuildBotLocaleCommand";
|
|
10
10
|
import { CreateBotAliasCommandInput, CreateBotAliasCommandOutput } from "./commands/CreateBotAliasCommand";
|
|
@@ -172,6 +172,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
172
172
|
* @internal
|
|
173
173
|
*/
|
|
174
174
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
175
|
+
/**
|
|
176
|
+
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
177
|
+
*/
|
|
178
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
175
179
|
}
|
|
176
180
|
declare type LexModelsV2ClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
177
181
|
/**
|
|
@@ -599,9 +599,13 @@ export interface VoiceSettings {
|
|
|
599
599
|
*/
|
|
600
600
|
voiceId: string | undefined;
|
|
601
601
|
/**
|
|
602
|
-
* <p>Indicates the type of Amazon Polly
|
|
603
|
-
*
|
|
604
|
-
*
|
|
602
|
+
* <p>Indicates the type of Amazon Polly voice that Amazon Lex should use for voice interaction with the user. For more
|
|
603
|
+
* information, see the <a href="https://docs.aws.amazon.com/polly/latest/dg/API_SynthesizeSpeech.html#polly-SynthesizeSpeech-request-Engine">
|
|
604
|
+
* <code>engine</code> parameter of the
|
|
605
|
+
* <code>SynthesizeSpeech</code> operation</a> in the
|
|
606
|
+
* <i>Amazon Polly developer guide</i>.</p>
|
|
607
|
+
* <p>If you do not specify a value, the default is
|
|
608
|
+
* <code>standard</code>.</p>
|
|
605
609
|
*/
|
|
606
610
|
engine?: VoiceEngine | string;
|
|
607
611
|
}
|
|
@@ -1085,12 +1089,6 @@ export interface ConflictException extends __SmithyException, $MetadataBearer {
|
|
|
1085
1089
|
$fault: "client";
|
|
1086
1090
|
message?: string;
|
|
1087
1091
|
}
|
|
1088
|
-
export declare namespace ConflictException {
|
|
1089
|
-
/**
|
|
1090
|
-
* @internal
|
|
1091
|
-
*/
|
|
1092
|
-
const filterSensitiveLog: (obj: ConflictException) => any;
|
|
1093
|
-
}
|
|
1094
1092
|
/**
|
|
1095
1093
|
* <p>The service encountered an unexpected condition. Try your request
|
|
1096
1094
|
* again.</p>
|
|
@@ -1100,12 +1098,6 @@ export interface InternalServerException extends __SmithyException, $MetadataBea
|
|
|
1100
1098
|
$fault: "server";
|
|
1101
1099
|
message?: string;
|
|
1102
1100
|
}
|
|
1103
|
-
export declare namespace InternalServerException {
|
|
1104
|
-
/**
|
|
1105
|
-
* @internal
|
|
1106
|
-
*/
|
|
1107
|
-
const filterSensitiveLog: (obj: InternalServerException) => any;
|
|
1108
|
-
}
|
|
1109
1101
|
/**
|
|
1110
1102
|
* <p>Your request couldn't be completed because one or more request
|
|
1111
1103
|
* fields aren't valid. Check the fields in your request and try
|
|
@@ -1116,12 +1108,6 @@ export interface PreconditionFailedException extends __SmithyException, $Metadat
|
|
|
1116
1108
|
$fault: "client";
|
|
1117
1109
|
message?: string;
|
|
1118
1110
|
}
|
|
1119
|
-
export declare namespace PreconditionFailedException {
|
|
1120
|
-
/**
|
|
1121
|
-
* @internal
|
|
1122
|
-
*/
|
|
1123
|
-
const filterSensitiveLog: (obj: PreconditionFailedException) => any;
|
|
1124
|
-
}
|
|
1125
1111
|
/**
|
|
1126
1112
|
* <p>You have reached a quota for your bot. </p>
|
|
1127
1113
|
*/
|
|
@@ -1130,12 +1116,6 @@ export interface ServiceQuotaExceededException extends __SmithyException, $Metad
|
|
|
1130
1116
|
$fault: "client";
|
|
1131
1117
|
message?: string;
|
|
1132
1118
|
}
|
|
1133
|
-
export declare namespace ServiceQuotaExceededException {
|
|
1134
|
-
/**
|
|
1135
|
-
* @internal
|
|
1136
|
-
*/
|
|
1137
|
-
const filterSensitiveLog: (obj: ServiceQuotaExceededException) => any;
|
|
1138
|
-
}
|
|
1139
1119
|
/**
|
|
1140
1120
|
* <p>Your request rate is too high. Reduce the frequency of
|
|
1141
1121
|
* requests.</p>
|
|
@@ -1146,12 +1126,6 @@ export interface ThrottlingException extends __SmithyException, $MetadataBearer
|
|
|
1146
1126
|
retryAfterSeconds?: number;
|
|
1147
1127
|
message?: string;
|
|
1148
1128
|
}
|
|
1149
|
-
export declare namespace ThrottlingException {
|
|
1150
|
-
/**
|
|
1151
|
-
* @internal
|
|
1152
|
-
*/
|
|
1153
|
-
const filterSensitiveLog: (obj: ThrottlingException) => any;
|
|
1154
|
-
}
|
|
1155
1129
|
/**
|
|
1156
1130
|
* <p>One of the input parameters in your request isn't valid. Check the
|
|
1157
1131
|
* parameters and try your request again.</p>
|
|
@@ -1161,12 +1135,6 @@ export interface ValidationException extends __SmithyException, $MetadataBearer
|
|
|
1161
1135
|
$fault: "client";
|
|
1162
1136
|
message?: string;
|
|
1163
1137
|
}
|
|
1164
|
-
export declare namespace ValidationException {
|
|
1165
|
-
/**
|
|
1166
|
-
* @internal
|
|
1167
|
-
*/
|
|
1168
|
-
const filterSensitiveLog: (obj: ValidationException) => any;
|
|
1169
|
-
}
|
|
1170
1138
|
export declare enum BuiltInIntentSortAttribute {
|
|
1171
1139
|
IntentSignature = "IntentSignature"
|
|
1172
1140
|
}
|
|
@@ -1885,12 +1853,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
|
|
|
1885
1853
|
$fault: "client";
|
|
1886
1854
|
message?: string;
|
|
1887
1855
|
}
|
|
1888
|
-
export declare namespace ResourceNotFoundException {
|
|
1889
|
-
/**
|
|
1890
|
-
* @internal
|
|
1891
|
-
*/
|
|
1892
|
-
const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
|
|
1893
|
-
}
|
|
1894
1856
|
/**
|
|
1895
1857
|
* <p>Settings that determine the Lambda function that Amazon Lex uses for
|
|
1896
1858
|
* processing user responses.</p>
|
|
@@ -3044,6 +3006,64 @@ export declare namespace CreateSlotResponse {
|
|
|
3044
3006
|
*/
|
|
3045
3007
|
const filterSensitiveLog: (obj: CreateSlotResponse) => any;
|
|
3046
3008
|
}
|
|
3009
|
+
/**
|
|
3010
|
+
* <p>Describes the Amazon S3 bucket name and location for the grammar
|
|
3011
|
+
* that is the source for the slot type.</p>
|
|
3012
|
+
*/
|
|
3013
|
+
export interface GrammarSlotTypeSource {
|
|
3014
|
+
/**
|
|
3015
|
+
* <p>The name of the S3 bucket that contains the grammar source.</p>
|
|
3016
|
+
*/
|
|
3017
|
+
s3BucketName: string | undefined;
|
|
3018
|
+
/**
|
|
3019
|
+
* <p>The path to the grammar in the S3 bucket.</p>
|
|
3020
|
+
*/
|
|
3021
|
+
s3ObjectKey: string | undefined;
|
|
3022
|
+
/**
|
|
3023
|
+
* <p>The Amazon KMS key required to decrypt the contents of the grammar,
|
|
3024
|
+
* if any.</p>
|
|
3025
|
+
*/
|
|
3026
|
+
kmsKeyArn?: string;
|
|
3027
|
+
}
|
|
3028
|
+
export declare namespace GrammarSlotTypeSource {
|
|
3029
|
+
/**
|
|
3030
|
+
* @internal
|
|
3031
|
+
*/
|
|
3032
|
+
const filterSensitiveLog: (obj: GrammarSlotTypeSource) => any;
|
|
3033
|
+
}
|
|
3034
|
+
/**
|
|
3035
|
+
* <p>Settings requried for a slot type based on a grammar that you
|
|
3036
|
+
* provide.</p>
|
|
3037
|
+
*/
|
|
3038
|
+
export interface GrammarSlotTypeSetting {
|
|
3039
|
+
/**
|
|
3040
|
+
* <p>The source of the grammar used to create the slot type.</p>
|
|
3041
|
+
*/
|
|
3042
|
+
source?: GrammarSlotTypeSource;
|
|
3043
|
+
}
|
|
3044
|
+
export declare namespace GrammarSlotTypeSetting {
|
|
3045
|
+
/**
|
|
3046
|
+
* @internal
|
|
3047
|
+
*/
|
|
3048
|
+
const filterSensitiveLog: (obj: GrammarSlotTypeSetting) => any;
|
|
3049
|
+
}
|
|
3050
|
+
/**
|
|
3051
|
+
* <p>Provides information about the external source of the slot type's
|
|
3052
|
+
* definition.</p>
|
|
3053
|
+
*/
|
|
3054
|
+
export interface ExternalSourceSetting {
|
|
3055
|
+
/**
|
|
3056
|
+
* <p>Settings required for a slot type based on a grammar that you
|
|
3057
|
+
* provide.</p>
|
|
3058
|
+
*/
|
|
3059
|
+
grammarSlotTypeSetting?: GrammarSlotTypeSetting;
|
|
3060
|
+
}
|
|
3061
|
+
export declare namespace ExternalSourceSetting {
|
|
3062
|
+
/**
|
|
3063
|
+
* @internal
|
|
3064
|
+
*/
|
|
3065
|
+
const filterSensitiveLog: (obj: ExternalSourceSetting) => any;
|
|
3066
|
+
}
|
|
3047
3067
|
/**
|
|
3048
3068
|
* <p>Defines one of the values for a slot type.</p>
|
|
3049
3069
|
*/
|
|
@@ -3198,7 +3218,7 @@ export interface CreateSlotTypeRequest {
|
|
|
3198
3218
|
* <p>If you don't specify the <code>valueSelectionSetting</code>
|
|
3199
3219
|
* parameter, the default is <code>OriginalValue</code>.</p>
|
|
3200
3220
|
*/
|
|
3201
|
-
valueSelectionSetting
|
|
3221
|
+
valueSelectionSetting?: SlotValueSelectionSetting;
|
|
3202
3222
|
/**
|
|
3203
3223
|
* <p>The built-in slot type used as a parent of this slot type. When you
|
|
3204
3224
|
* define a parent slot type, the new slot type has the configuration of
|
|
@@ -3222,6 +3242,11 @@ export interface CreateSlotTypeRequest {
|
|
|
3222
3242
|
* locale. For more information, see <a href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported languages</a>.</p>
|
|
3223
3243
|
*/
|
|
3224
3244
|
localeId: string | undefined;
|
|
3245
|
+
/**
|
|
3246
|
+
* <p>Sets the type of external information used to create the slot
|
|
3247
|
+
* type.</p>
|
|
3248
|
+
*/
|
|
3249
|
+
externalSourceSetting?: ExternalSourceSetting;
|
|
3225
3250
|
}
|
|
3226
3251
|
export declare namespace CreateSlotTypeRequest {
|
|
3227
3252
|
/**
|
|
@@ -3275,6 +3300,11 @@ export interface CreateSlotTypeResponse {
|
|
|
3275
3300
|
* created.</p>
|
|
3276
3301
|
*/
|
|
3277
3302
|
creationDateTime?: Date;
|
|
3303
|
+
/**
|
|
3304
|
+
* <p>The type of external information used to create the slot
|
|
3305
|
+
* type.</p>
|
|
3306
|
+
*/
|
|
3307
|
+
externalSourceSetting?: ExternalSourceSetting;
|
|
3278
3308
|
}
|
|
3279
3309
|
export declare namespace CreateSlotTypeResponse {
|
|
3280
3310
|
/**
|
|
@@ -4015,6 +4045,11 @@ export interface DescribeBotLocaleResponse {
|
|
|
4015
4045
|
* have taken place for the locale.</p>
|
|
4016
4046
|
*/
|
|
4017
4047
|
botLocaleHistoryEvents?: BotLocaleHistoryEvent[];
|
|
4048
|
+
/**
|
|
4049
|
+
* <p>Recommended actions to take to resolve an error in the
|
|
4050
|
+
* <code>failureReasons</code> field.</p>
|
|
4051
|
+
*/
|
|
4052
|
+
recommendedActions?: string[];
|
|
4018
4053
|
}
|
|
4019
4054
|
export declare namespace DescribeBotLocaleResponse {
|
|
4020
4055
|
/**
|
|
@@ -4822,6 +4857,11 @@ export interface DescribeSlotTypeResponse {
|
|
|
4822
4857
|
* updated.</p>
|
|
4823
4858
|
*/
|
|
4824
4859
|
lastUpdatedDateTime?: Date;
|
|
4860
|
+
/**
|
|
4861
|
+
* <p>Provides information about the external source of the slot type's
|
|
4862
|
+
* definition.</p>
|
|
4863
|
+
*/
|
|
4864
|
+
externalSourceSetting?: ExternalSourceSetting;
|
|
4825
4865
|
}
|
|
4826
4866
|
export declare namespace DescribeSlotTypeResponse {
|
|
4827
4867
|
/**
|
|
@@ -6340,6 +6380,7 @@ export declare namespace ListSlotsResponse {
|
|
|
6340
6380
|
const filterSensitiveLog: (obj: ListSlotsResponse) => any;
|
|
6341
6381
|
}
|
|
6342
6382
|
export declare enum SlotTypeFilterName {
|
|
6383
|
+
ExternalSourceType = "ExternalSourceType",
|
|
6343
6384
|
SlotTypeName = "SlotTypeName"
|
|
6344
6385
|
}
|
|
6345
6386
|
export declare enum SlotTypeFilterOperator {
|
|
@@ -6448,6 +6489,11 @@ export declare namespace ListSlotTypesRequest {
|
|
|
6448
6489
|
*/
|
|
6449
6490
|
const filterSensitiveLog: (obj: ListSlotTypesRequest) => any;
|
|
6450
6491
|
}
|
|
6492
|
+
export declare enum SlotTypeCategory {
|
|
6493
|
+
Custom = "Custom",
|
|
6494
|
+
Extended = "Extended",
|
|
6495
|
+
ExternalGrammar = "ExternalGrammar"
|
|
6496
|
+
}
|
|
6451
6497
|
/**
|
|
6452
6498
|
* <p>Provides summary information about a slot type.</p>
|
|
6453
6499
|
*/
|
|
@@ -6474,6 +6520,29 @@ export interface SlotTypeSummary {
|
|
|
6474
6520
|
* updated.</p>
|
|
6475
6521
|
*/
|
|
6476
6522
|
lastUpdatedDateTime?: Date;
|
|
6523
|
+
/**
|
|
6524
|
+
* <p>Indicates the type of the slot type.</p>
|
|
6525
|
+
* <ul>
|
|
6526
|
+
* <li>
|
|
6527
|
+
* <p>
|
|
6528
|
+
* <code>Custom</code> - A slot type that you created using
|
|
6529
|
+
* custom values. For more information, see <a href="https://docs.aws.amazon.com/lexv2/latest/dg/custom-slot-types.html">Creating custom slot
|
|
6530
|
+
* types</a>.</p>
|
|
6531
|
+
* </li>
|
|
6532
|
+
* <li>
|
|
6533
|
+
* <p>
|
|
6534
|
+
* <code>Extended</code> - A slot type created by extending the
|
|
6535
|
+
* AMAZON.AlphaNumeric built-in slot type. For more information, see
|
|
6536
|
+
* <a href="https://docs.aws.amazon.com/lexv2/latest/dg/built-in-slot-alphanumerice.html">AMAZON.AlphaNumeric</a>.</p>
|
|
6537
|
+
* </li>
|
|
6538
|
+
* <li>
|
|
6539
|
+
* <p>
|
|
6540
|
+
* <code>ExternalGrammar</code> - A slot type using a custom
|
|
6541
|
+
* GRXML grammar to define values. For more information, see <a href="https://docs.aws.amazon.com/lexv2/latest/dg/building-grxml.html">Using a custom grammar slot type</a>.</p>
|
|
6542
|
+
* </li>
|
|
6543
|
+
* </ul>
|
|
6544
|
+
*/
|
|
6545
|
+
slotTypeCategory?: SlotTypeCategory | string;
|
|
6477
6546
|
}
|
|
6478
6547
|
export declare namespace SlotTypeSummary {
|
|
6479
6548
|
/**
|
|
@@ -7136,6 +7205,11 @@ export interface UpdateBotLocaleResponse {
|
|
|
7136
7205
|
* updated.</p>
|
|
7137
7206
|
*/
|
|
7138
7207
|
lastUpdatedDateTime?: Date;
|
|
7208
|
+
/**
|
|
7209
|
+
* <p>Recommended actions to take to resolve an error in the
|
|
7210
|
+
* <code>failureReasons</code> field.</p>
|
|
7211
|
+
*/
|
|
7212
|
+
recommendedActions?: string[];
|
|
7139
7213
|
}
|
|
7140
7214
|
export declare namespace UpdateBotLocaleResponse {
|
|
7141
7215
|
/**
|
|
@@ -7661,7 +7735,7 @@ export interface UpdateSlotTypeRequest {
|
|
|
7661
7735
|
* <p>The strategy that Amazon Lex should use when deciding on a value from the
|
|
7662
7736
|
* list of slot type values.</p>
|
|
7663
7737
|
*/
|
|
7664
|
-
valueSelectionSetting
|
|
7738
|
+
valueSelectionSetting?: SlotValueSelectionSetting;
|
|
7665
7739
|
/**
|
|
7666
7740
|
* <p>The new built-in slot type that should be used as the parent of this
|
|
7667
7741
|
* slot type.</p>
|
|
@@ -7682,6 +7756,11 @@ export interface UpdateSlotTypeRequest {
|
|
|
7682
7756
|
* information, see <a href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported languages</a>.</p>
|
|
7683
7757
|
*/
|
|
7684
7758
|
localeId: string | undefined;
|
|
7759
|
+
/**
|
|
7760
|
+
* <p>Provides information about the external source of the slot type's
|
|
7761
|
+
* definition.</p>
|
|
7762
|
+
*/
|
|
7763
|
+
externalSourceSetting?: ExternalSourceSetting;
|
|
7685
7764
|
}
|
|
7686
7765
|
export declare namespace UpdateSlotTypeRequest {
|
|
7687
7766
|
/**
|
|
@@ -7739,6 +7818,11 @@ export interface UpdateSlotTypeResponse {
|
|
|
7739
7818
|
* updated.</p>
|
|
7740
7819
|
*/
|
|
7741
7820
|
lastUpdatedDateTime?: Date;
|
|
7821
|
+
/**
|
|
7822
|
+
* <p>Provides information about the external source of the slot type's
|
|
7823
|
+
* definition.</p>
|
|
7824
|
+
*/
|
|
7825
|
+
externalSourceSetting?: ExternalSourceSetting;
|
|
7742
7826
|
}
|
|
7743
7827
|
export declare namespace UpdateSlotTypeResponse {
|
|
7744
7828
|
/**
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
2
|
import { LexModelsV2ClientConfig } from "./LexModelsV2Client";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
6
|
export declare const getRuntimeConfig: (config: LexModelsV2ClientConfig) => {
|
|
7
7
|
runtime: string;
|
|
8
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
8
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
11
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
@@ -12,7 +13,7 @@ export declare const getRuntimeConfig: (config: LexModelsV2ClientConfig) => {
|
|
|
12
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
15
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
15
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
16
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
16
17
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
17
18
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
19
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|