@aws-sdk/client-lex-models-v2 3.47.2 → 3.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/LexModelsV2.js +30 -0
- package/dist-cjs/commands/DeleteCustomVocabularyCommand.js +36 -0
- package/dist-cjs/commands/DescribeCustomVocabularyMetadataCommand.js +36 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +67 -6
- package/dist-cjs/protocols/Aws_restJson1.js +368 -3
- package/dist-es/LexModelsV2.js +30 -0
- package/dist-es/commands/DeleteCustomVocabularyCommand.js +39 -0
- package/dist-es/commands/DescribeCustomVocabularyMetadataCommand.js +39 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +47 -0
- package/dist-es/protocols/Aws_restJson1.js +395 -7
- package/dist-types/LexModelsV2.d.ts +21 -6
- package/dist-types/LexModelsV2Client.d.ts +4 -2
- package/dist-types/commands/DeleteCustomVocabularyCommand.d.ts +36 -0
- package/dist-types/commands/DescribeCustomVocabularyMetadataCommand.d.ts +35 -0
- package/dist-types/commands/ListExportsCommand.d.ts +2 -2
- package/dist-types/commands/ListImportsCommand.d.ts +2 -2
- package/dist-types/commands/StartImportCommand.d.ts +2 -2
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +264 -24
- package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
- package/dist-types/ts3.4/LexModelsV2.d.ts +10 -0
- package/dist-types/ts3.4/LexModelsV2Client.d.ts +4 -2
- package/dist-types/ts3.4/commands/DeleteCustomVocabularyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeCustomVocabularyMetadataCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +124 -1
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -0
- package/package.json +3 -3
|
@@ -734,6 +734,58 @@ export var serializeAws_restJson1DeleteBotVersionCommand = function (input, cont
|
|
|
734
734
|
}
|
|
735
735
|
});
|
|
736
736
|
}); };
|
|
737
|
+
export var serializeAws_restJson1DeleteCustomVocabularyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
738
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, labelValue, body;
|
|
739
|
+
return __generator(this, function (_c) {
|
|
740
|
+
switch (_c.label) {
|
|
741
|
+
case 0: return [4, context.endpoint()];
|
|
742
|
+
case 1:
|
|
743
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
744
|
+
headers = {};
|
|
745
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
746
|
+
"/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary";
|
|
747
|
+
if (input.botId !== undefined) {
|
|
748
|
+
labelValue = input.botId;
|
|
749
|
+
if (labelValue.length <= 0) {
|
|
750
|
+
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
751
|
+
}
|
|
752
|
+
resolvedPath = resolvedPath.replace("{botId}", __extendedEncodeURIComponent(labelValue));
|
|
753
|
+
}
|
|
754
|
+
else {
|
|
755
|
+
throw new Error("No value provided for input HTTP label: botId.");
|
|
756
|
+
}
|
|
757
|
+
if (input.botVersion !== undefined) {
|
|
758
|
+
labelValue = input.botVersion;
|
|
759
|
+
if (labelValue.length <= 0) {
|
|
760
|
+
throw new Error("Empty value provided for input HTTP label: botVersion.");
|
|
761
|
+
}
|
|
762
|
+
resolvedPath = resolvedPath.replace("{botVersion}", __extendedEncodeURIComponent(labelValue));
|
|
763
|
+
}
|
|
764
|
+
else {
|
|
765
|
+
throw new Error("No value provided for input HTTP label: botVersion.");
|
|
766
|
+
}
|
|
767
|
+
if (input.localeId !== undefined) {
|
|
768
|
+
labelValue = input.localeId;
|
|
769
|
+
if (labelValue.length <= 0) {
|
|
770
|
+
throw new Error("Empty value provided for input HTTP label: localeId.");
|
|
771
|
+
}
|
|
772
|
+
resolvedPath = resolvedPath.replace("{localeId}", __extendedEncodeURIComponent(labelValue));
|
|
773
|
+
}
|
|
774
|
+
else {
|
|
775
|
+
throw new Error("No value provided for input HTTP label: localeId.");
|
|
776
|
+
}
|
|
777
|
+
return [2, new __HttpRequest({
|
|
778
|
+
protocol: protocol,
|
|
779
|
+
hostname: hostname,
|
|
780
|
+
port: port,
|
|
781
|
+
method: "DELETE",
|
|
782
|
+
headers: headers,
|
|
783
|
+
path: resolvedPath,
|
|
784
|
+
body: body,
|
|
785
|
+
})];
|
|
786
|
+
}
|
|
787
|
+
});
|
|
788
|
+
}); };
|
|
737
789
|
export var serializeAws_restJson1DeleteExportCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
738
790
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
739
791
|
return __generator(this, function (_c) {
|
|
@@ -1333,6 +1385,58 @@ export var serializeAws_restJson1DescribeBotVersionCommand = function (input, co
|
|
|
1333
1385
|
}
|
|
1334
1386
|
});
|
|
1335
1387
|
}); };
|
|
1388
|
+
export var serializeAws_restJson1DescribeCustomVocabularyMetadataCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1389
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, labelValue, body;
|
|
1390
|
+
return __generator(this, function (_c) {
|
|
1391
|
+
switch (_c.label) {
|
|
1392
|
+
case 0: return [4, context.endpoint()];
|
|
1393
|
+
case 1:
|
|
1394
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1395
|
+
headers = {};
|
|
1396
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1397
|
+
"/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/metadata";
|
|
1398
|
+
if (input.botId !== undefined) {
|
|
1399
|
+
labelValue = input.botId;
|
|
1400
|
+
if (labelValue.length <= 0) {
|
|
1401
|
+
throw new Error("Empty value provided for input HTTP label: botId.");
|
|
1402
|
+
}
|
|
1403
|
+
resolvedPath = resolvedPath.replace("{botId}", __extendedEncodeURIComponent(labelValue));
|
|
1404
|
+
}
|
|
1405
|
+
else {
|
|
1406
|
+
throw new Error("No value provided for input HTTP label: botId.");
|
|
1407
|
+
}
|
|
1408
|
+
if (input.botVersion !== undefined) {
|
|
1409
|
+
labelValue = input.botVersion;
|
|
1410
|
+
if (labelValue.length <= 0) {
|
|
1411
|
+
throw new Error("Empty value provided for input HTTP label: botVersion.");
|
|
1412
|
+
}
|
|
1413
|
+
resolvedPath = resolvedPath.replace("{botVersion}", __extendedEncodeURIComponent(labelValue));
|
|
1414
|
+
}
|
|
1415
|
+
else {
|
|
1416
|
+
throw new Error("No value provided for input HTTP label: botVersion.");
|
|
1417
|
+
}
|
|
1418
|
+
if (input.localeId !== undefined) {
|
|
1419
|
+
labelValue = input.localeId;
|
|
1420
|
+
if (labelValue.length <= 0) {
|
|
1421
|
+
throw new Error("Empty value provided for input HTTP label: localeId.");
|
|
1422
|
+
}
|
|
1423
|
+
resolvedPath = resolvedPath.replace("{localeId}", __extendedEncodeURIComponent(labelValue));
|
|
1424
|
+
}
|
|
1425
|
+
else {
|
|
1426
|
+
throw new Error("No value provided for input HTTP label: localeId.");
|
|
1427
|
+
}
|
|
1428
|
+
return [2, new __HttpRequest({
|
|
1429
|
+
protocol: protocol,
|
|
1430
|
+
hostname: hostname,
|
|
1431
|
+
port: port,
|
|
1432
|
+
method: "GET",
|
|
1433
|
+
headers: headers,
|
|
1434
|
+
path: resolvedPath,
|
|
1435
|
+
body: body,
|
|
1436
|
+
})];
|
|
1437
|
+
}
|
|
1438
|
+
});
|
|
1439
|
+
}); };
|
|
1336
1440
|
export var serializeAws_restJson1DescribeExportCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1337
1441
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
1338
1442
|
return __generator(this, function (_c) {
|
|
@@ -1939,8 +2043,8 @@ export var serializeAws_restJson1ListExportsCommand = function (input, context)
|
|
|
1939
2043
|
"content-type": "application/json",
|
|
1940
2044
|
};
|
|
1941
2045
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/exports";
|
|
1942
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.botId !== undefined && input.botId !== null && { botId: input.botId })), (input.botVersion !== undefined && input.botVersion !== null && { botVersion: input.botVersion })), (input.filters !== undefined &&
|
|
1943
|
-
input.filters !== null && { filters: serializeAws_restJson1ExportFilters(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sortBy !== undefined &&
|
|
2046
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.botId !== undefined && input.botId !== null && { botId: input.botId })), (input.botVersion !== undefined && input.botVersion !== null && { botVersion: input.botVersion })), (input.filters !== undefined &&
|
|
2047
|
+
input.filters !== null && { filters: serializeAws_restJson1ExportFilters(input.filters, context) })), (input.localeId !== undefined && input.localeId !== null && { localeId: input.localeId })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sortBy !== undefined &&
|
|
1944
2048
|
input.sortBy !== null && { sortBy: serializeAws_restJson1ExportSortBy(input.sortBy, context) })));
|
|
1945
2049
|
return [2, new __HttpRequest({
|
|
1946
2050
|
protocol: protocol,
|
|
@@ -1965,8 +2069,8 @@ export var serializeAws_restJson1ListImportsCommand = function (input, context)
|
|
|
1965
2069
|
"content-type": "application/json",
|
|
1966
2070
|
};
|
|
1967
2071
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/imports";
|
|
1968
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.botId !== undefined && input.botId !== null && { botId: input.botId })), (input.botVersion !== undefined && input.botVersion !== null && { botVersion: input.botVersion })), (input.filters !== undefined &&
|
|
1969
|
-
input.filters !== null && { filters: serializeAws_restJson1ImportFilters(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sortBy !== undefined &&
|
|
2072
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.botId !== undefined && input.botId !== null && { botId: input.botId })), (input.botVersion !== undefined && input.botVersion !== null && { botVersion: input.botVersion })), (input.filters !== undefined &&
|
|
2073
|
+
input.filters !== null && { filters: serializeAws_restJson1ImportFilters(input.filters, context) })), (input.localeId !== undefined && input.localeId !== null && { localeId: input.localeId })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sortBy !== undefined &&
|
|
1970
2074
|
input.sortBy !== null && { sortBy: serializeAws_restJson1ImportSortBy(input.sortBy, context) })));
|
|
1971
2075
|
return [2, new __HttpRequest({
|
|
1972
2076
|
protocol: protocol,
|
|
@@ -4998,6 +5102,120 @@ var deserializeAws_restJson1DeleteBotVersionCommandError = function (output, con
|
|
|
4998
5102
|
}
|
|
4999
5103
|
});
|
|
5000
5104
|
}); };
|
|
5105
|
+
export var deserializeAws_restJson1DeleteCustomVocabularyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5106
|
+
var contents, data, _a, _b;
|
|
5107
|
+
return __generator(this, function (_c) {
|
|
5108
|
+
switch (_c.label) {
|
|
5109
|
+
case 0:
|
|
5110
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
5111
|
+
return [2, deserializeAws_restJson1DeleteCustomVocabularyCommandError(output, context)];
|
|
5112
|
+
}
|
|
5113
|
+
contents = {
|
|
5114
|
+
$metadata: deserializeMetadata(output),
|
|
5115
|
+
botId: undefined,
|
|
5116
|
+
botVersion: undefined,
|
|
5117
|
+
customVocabularyStatus: undefined,
|
|
5118
|
+
localeId: undefined,
|
|
5119
|
+
};
|
|
5120
|
+
_a = __expectNonNull;
|
|
5121
|
+
_b = __expectObject;
|
|
5122
|
+
return [4, parseBody(output.body, context)];
|
|
5123
|
+
case 1:
|
|
5124
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5125
|
+
if (data.botId !== undefined && data.botId !== null) {
|
|
5126
|
+
contents.botId = __expectString(data.botId);
|
|
5127
|
+
}
|
|
5128
|
+
if (data.botVersion !== undefined && data.botVersion !== null) {
|
|
5129
|
+
contents.botVersion = __expectString(data.botVersion);
|
|
5130
|
+
}
|
|
5131
|
+
if (data.customVocabularyStatus !== undefined && data.customVocabularyStatus !== null) {
|
|
5132
|
+
contents.customVocabularyStatus = __expectString(data.customVocabularyStatus);
|
|
5133
|
+
}
|
|
5134
|
+
if (data.localeId !== undefined && data.localeId !== null) {
|
|
5135
|
+
contents.localeId = __expectString(data.localeId);
|
|
5136
|
+
}
|
|
5137
|
+
return [2, Promise.resolve(contents)];
|
|
5138
|
+
}
|
|
5139
|
+
});
|
|
5140
|
+
}); };
|
|
5141
|
+
var deserializeAws_restJson1DeleteCustomVocabularyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5142
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
5143
|
+
var _j;
|
|
5144
|
+
return __generator(this, function (_k) {
|
|
5145
|
+
switch (_k.label) {
|
|
5146
|
+
case 0:
|
|
5147
|
+
_a = [__assign({}, output)];
|
|
5148
|
+
_j = {};
|
|
5149
|
+
return [4, parseBody(output.body, context)];
|
|
5150
|
+
case 1:
|
|
5151
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
5152
|
+
errorCode = "UnknownError";
|
|
5153
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5154
|
+
_b = errorCode;
|
|
5155
|
+
switch (_b) {
|
|
5156
|
+
case "ConflictException": return [3, 2];
|
|
5157
|
+
case "com.amazonaws.lexmodelsv2#ConflictException": return [3, 2];
|
|
5158
|
+
case "InternalServerException": return [3, 4];
|
|
5159
|
+
case "com.amazonaws.lexmodelsv2#InternalServerException": return [3, 4];
|
|
5160
|
+
case "PreconditionFailedException": return [3, 6];
|
|
5161
|
+
case "com.amazonaws.lexmodelsv2#PreconditionFailedException": return [3, 6];
|
|
5162
|
+
case "ServiceQuotaExceededException": return [3, 8];
|
|
5163
|
+
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException": return [3, 8];
|
|
5164
|
+
case "ThrottlingException": return [3, 10];
|
|
5165
|
+
case "com.amazonaws.lexmodelsv2#ThrottlingException": return [3, 10];
|
|
5166
|
+
case "ValidationException": return [3, 12];
|
|
5167
|
+
case "com.amazonaws.lexmodelsv2#ValidationException": return [3, 12];
|
|
5168
|
+
}
|
|
5169
|
+
return [3, 14];
|
|
5170
|
+
case 2:
|
|
5171
|
+
_c = [{}];
|
|
5172
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
5173
|
+
case 3:
|
|
5174
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5175
|
+
return [3, 15];
|
|
5176
|
+
case 4:
|
|
5177
|
+
_d = [{}];
|
|
5178
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
5179
|
+
case 5:
|
|
5180
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5181
|
+
return [3, 15];
|
|
5182
|
+
case 6:
|
|
5183
|
+
_e = [{}];
|
|
5184
|
+
return [4, deserializeAws_restJson1PreconditionFailedExceptionResponse(parsedOutput, context)];
|
|
5185
|
+
case 7:
|
|
5186
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5187
|
+
return [3, 15];
|
|
5188
|
+
case 8:
|
|
5189
|
+
_f = [{}];
|
|
5190
|
+
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
5191
|
+
case 9:
|
|
5192
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5193
|
+
return [3, 15];
|
|
5194
|
+
case 10:
|
|
5195
|
+
_g = [{}];
|
|
5196
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
5197
|
+
case 11:
|
|
5198
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5199
|
+
return [3, 15];
|
|
5200
|
+
case 12:
|
|
5201
|
+
_h = [{}];
|
|
5202
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
5203
|
+
case 13:
|
|
5204
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5205
|
+
return [3, 15];
|
|
5206
|
+
case 14:
|
|
5207
|
+
parsedBody = parsedOutput.body;
|
|
5208
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
5209
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
5210
|
+
_k.label = 15;
|
|
5211
|
+
case 15:
|
|
5212
|
+
message = response.message || response.Message || errorCode;
|
|
5213
|
+
response.message = message;
|
|
5214
|
+
delete response.Message;
|
|
5215
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
5216
|
+
}
|
|
5217
|
+
});
|
|
5218
|
+
}); };
|
|
5001
5219
|
export var deserializeAws_restJson1DeleteExportCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5002
5220
|
var contents, data, _a, _b;
|
|
5003
5221
|
return __generator(this, function (_c) {
|
|
@@ -6408,6 +6626,120 @@ var deserializeAws_restJson1DescribeBotVersionCommandError = function (output, c
|
|
|
6408
6626
|
}
|
|
6409
6627
|
});
|
|
6410
6628
|
}); };
|
|
6629
|
+
export var deserializeAws_restJson1DescribeCustomVocabularyMetadataCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6630
|
+
var contents, data, _a, _b;
|
|
6631
|
+
return __generator(this, function (_c) {
|
|
6632
|
+
switch (_c.label) {
|
|
6633
|
+
case 0:
|
|
6634
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6635
|
+
return [2, deserializeAws_restJson1DescribeCustomVocabularyMetadataCommandError(output, context)];
|
|
6636
|
+
}
|
|
6637
|
+
contents = {
|
|
6638
|
+
$metadata: deserializeMetadata(output),
|
|
6639
|
+
botId: undefined,
|
|
6640
|
+
botVersion: undefined,
|
|
6641
|
+
creationDateTime: undefined,
|
|
6642
|
+
customVocabularyStatus: undefined,
|
|
6643
|
+
lastUpdatedDateTime: undefined,
|
|
6644
|
+
localeId: undefined,
|
|
6645
|
+
};
|
|
6646
|
+
_a = __expectNonNull;
|
|
6647
|
+
_b = __expectObject;
|
|
6648
|
+
return [4, parseBody(output.body, context)];
|
|
6649
|
+
case 1:
|
|
6650
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6651
|
+
if (data.botId !== undefined && data.botId !== null) {
|
|
6652
|
+
contents.botId = __expectString(data.botId);
|
|
6653
|
+
}
|
|
6654
|
+
if (data.botVersion !== undefined && data.botVersion !== null) {
|
|
6655
|
+
contents.botVersion = __expectString(data.botVersion);
|
|
6656
|
+
}
|
|
6657
|
+
if (data.creationDateTime !== undefined && data.creationDateTime !== null) {
|
|
6658
|
+
contents.creationDateTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.creationDateTime)));
|
|
6659
|
+
}
|
|
6660
|
+
if (data.customVocabularyStatus !== undefined && data.customVocabularyStatus !== null) {
|
|
6661
|
+
contents.customVocabularyStatus = __expectString(data.customVocabularyStatus);
|
|
6662
|
+
}
|
|
6663
|
+
if (data.lastUpdatedDateTime !== undefined && data.lastUpdatedDateTime !== null) {
|
|
6664
|
+
contents.lastUpdatedDateTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.lastUpdatedDateTime)));
|
|
6665
|
+
}
|
|
6666
|
+
if (data.localeId !== undefined && data.localeId !== null) {
|
|
6667
|
+
contents.localeId = __expectString(data.localeId);
|
|
6668
|
+
}
|
|
6669
|
+
return [2, Promise.resolve(contents)];
|
|
6670
|
+
}
|
|
6671
|
+
});
|
|
6672
|
+
}); };
|
|
6673
|
+
var deserializeAws_restJson1DescribeCustomVocabularyMetadataCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6674
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
6675
|
+
var _h;
|
|
6676
|
+
return __generator(this, function (_j) {
|
|
6677
|
+
switch (_j.label) {
|
|
6678
|
+
case 0:
|
|
6679
|
+
_a = [__assign({}, output)];
|
|
6680
|
+
_h = {};
|
|
6681
|
+
return [4, parseBody(output.body, context)];
|
|
6682
|
+
case 1:
|
|
6683
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
6684
|
+
errorCode = "UnknownError";
|
|
6685
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6686
|
+
_b = errorCode;
|
|
6687
|
+
switch (_b) {
|
|
6688
|
+
case "InternalServerException": return [3, 2];
|
|
6689
|
+
case "com.amazonaws.lexmodelsv2#InternalServerException": return [3, 2];
|
|
6690
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
6691
|
+
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException": return [3, 4];
|
|
6692
|
+
case "ServiceQuotaExceededException": return [3, 6];
|
|
6693
|
+
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException": return [3, 6];
|
|
6694
|
+
case "ThrottlingException": return [3, 8];
|
|
6695
|
+
case "com.amazonaws.lexmodelsv2#ThrottlingException": return [3, 8];
|
|
6696
|
+
case "ValidationException": return [3, 10];
|
|
6697
|
+
case "com.amazonaws.lexmodelsv2#ValidationException": return [3, 10];
|
|
6698
|
+
}
|
|
6699
|
+
return [3, 12];
|
|
6700
|
+
case 2:
|
|
6701
|
+
_c = [{}];
|
|
6702
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
6703
|
+
case 3:
|
|
6704
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
6705
|
+
return [3, 13];
|
|
6706
|
+
case 4:
|
|
6707
|
+
_d = [{}];
|
|
6708
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
6709
|
+
case 5:
|
|
6710
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
6711
|
+
return [3, 13];
|
|
6712
|
+
case 6:
|
|
6713
|
+
_e = [{}];
|
|
6714
|
+
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
6715
|
+
case 7:
|
|
6716
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
6717
|
+
return [3, 13];
|
|
6718
|
+
case 8:
|
|
6719
|
+
_f = [{}];
|
|
6720
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
6721
|
+
case 9:
|
|
6722
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
6723
|
+
return [3, 13];
|
|
6724
|
+
case 10:
|
|
6725
|
+
_g = [{}];
|
|
6726
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
6727
|
+
case 11:
|
|
6728
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
6729
|
+
return [3, 13];
|
|
6730
|
+
case 12:
|
|
6731
|
+
parsedBody = parsedOutput.body;
|
|
6732
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
6733
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
6734
|
+
_j.label = 13;
|
|
6735
|
+
case 13:
|
|
6736
|
+
message = response.message || response.Message || errorCode;
|
|
6737
|
+
response.message = message;
|
|
6738
|
+
delete response.Message;
|
|
6739
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
6740
|
+
}
|
|
6741
|
+
});
|
|
6742
|
+
}); };
|
|
6411
6743
|
export var deserializeAws_restJson1DescribeExportCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6412
6744
|
var contents, data, _a, _b;
|
|
6413
6745
|
return __generator(this, function (_c) {
|
|
@@ -7969,6 +8301,7 @@ export var deserializeAws_restJson1ListExportsCommand = function (output, contex
|
|
|
7969
8301
|
botId: undefined,
|
|
7970
8302
|
botVersion: undefined,
|
|
7971
8303
|
exportSummaries: undefined,
|
|
8304
|
+
localeId: undefined,
|
|
7972
8305
|
nextToken: undefined,
|
|
7973
8306
|
};
|
|
7974
8307
|
_a = __expectNonNull;
|
|
@@ -7985,6 +8318,9 @@ export var deserializeAws_restJson1ListExportsCommand = function (output, contex
|
|
|
7985
8318
|
if (data.exportSummaries !== undefined && data.exportSummaries !== null) {
|
|
7986
8319
|
contents.exportSummaries = deserializeAws_restJson1ExportSummaryList(data.exportSummaries, context);
|
|
7987
8320
|
}
|
|
8321
|
+
if (data.localeId !== undefined && data.localeId !== null) {
|
|
8322
|
+
contents.localeId = __expectString(data.localeId);
|
|
8323
|
+
}
|
|
7988
8324
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
7989
8325
|
contents.nextToken = __expectString(data.nextToken);
|
|
7990
8326
|
}
|
|
@@ -8059,6 +8395,7 @@ export var deserializeAws_restJson1ListImportsCommand = function (output, contex
|
|
|
8059
8395
|
botId: undefined,
|
|
8060
8396
|
botVersion: undefined,
|
|
8061
8397
|
importSummaries: undefined,
|
|
8398
|
+
localeId: undefined,
|
|
8062
8399
|
nextToken: undefined,
|
|
8063
8400
|
};
|
|
8064
8401
|
_a = __expectNonNull;
|
|
@@ -8075,6 +8412,9 @@ export var deserializeAws_restJson1ListImportsCommand = function (output, contex
|
|
|
8075
8412
|
if (data.importSummaries !== undefined && data.importSummaries !== null) {
|
|
8076
8413
|
contents.importSummaries = deserializeAws_restJson1ImportSummaryList(data.importSummaries, context);
|
|
8077
8414
|
}
|
|
8415
|
+
if (data.localeId !== undefined && data.localeId !== null) {
|
|
8416
|
+
contents.localeId = __expectString(data.localeId);
|
|
8417
|
+
}
|
|
8078
8418
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
8079
8419
|
contents.nextToken = __expectString(data.nextToken);
|
|
8080
8420
|
}
|
|
@@ -10554,6 +10894,10 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
10554
10894
|
return [2, contents];
|
|
10555
10895
|
});
|
|
10556
10896
|
}); };
|
|
10897
|
+
var serializeAws_restJson1AdvancedRecognitionSetting = function (input, context) {
|
|
10898
|
+
return __assign({}, (input.audioRecognitionStrategy !== undefined &&
|
|
10899
|
+
input.audioRecognitionStrategy !== null && { audioRecognitionStrategy: input.audioRecognitionStrategy }));
|
|
10900
|
+
};
|
|
10557
10901
|
var serializeAws_restJson1AggregatedUtterancesFilter = function (input, context) {
|
|
10558
10902
|
return __assign(__assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.operator !== undefined && input.operator !== null && { operator: input.operator })), (input.values !== undefined &&
|
|
10559
10903
|
input.values !== null && { values: serializeAws_restJson1FilterValues(input.values, context) }));
|
|
@@ -10757,6 +11101,12 @@ var serializeAws_restJson1ConversationLogSettings = function (input, context) {
|
|
|
10757
11101
|
var serializeAws_restJson1CustomPayload = function (input, context) {
|
|
10758
11102
|
return __assign({}, (input.value !== undefined && input.value !== null && { value: input.value }));
|
|
10759
11103
|
};
|
|
11104
|
+
var serializeAws_restJson1CustomVocabularyExportSpecification = function (input, context) {
|
|
11105
|
+
return __assign(__assign(__assign({}, (input.botId !== undefined && input.botId !== null && { botId: input.botId })), (input.botVersion !== undefined && input.botVersion !== null && { botVersion: input.botVersion })), (input.localeId !== undefined && input.localeId !== null && { localeId: input.localeId }));
|
|
11106
|
+
};
|
|
11107
|
+
var serializeAws_restJson1CustomVocabularyImportSpecification = function (input, context) {
|
|
11108
|
+
return __assign(__assign(__assign({}, (input.botId !== undefined && input.botId !== null && { botId: input.botId })), (input.botVersion !== undefined && input.botVersion !== null && { botVersion: input.botVersion })), (input.localeId !== undefined && input.localeId !== null && { localeId: input.localeId }));
|
|
11109
|
+
};
|
|
10760
11110
|
var serializeAws_restJson1DataPrivacy = function (input, context) {
|
|
10761
11111
|
return __assign({}, (input.childDirected !== undefined && input.childDirected !== null && { childDirected: input.childDirected }));
|
|
10762
11112
|
};
|
|
@@ -10790,12 +11140,15 @@ var serializeAws_restJson1ExportFilters = function (input, context) {
|
|
|
10790
11140
|
});
|
|
10791
11141
|
};
|
|
10792
11142
|
var serializeAws_restJson1ExportResourceSpecification = function (input, context) {
|
|
10793
|
-
return __assign(__assign({}, (input.botExportSpecification !== undefined &&
|
|
11143
|
+
return __assign(__assign(__assign({}, (input.botExportSpecification !== undefined &&
|
|
10794
11144
|
input.botExportSpecification !== null && {
|
|
10795
11145
|
botExportSpecification: serializeAws_restJson1BotExportSpecification(input.botExportSpecification, context),
|
|
10796
11146
|
})), (input.botLocaleExportSpecification !== undefined &&
|
|
10797
11147
|
input.botLocaleExportSpecification !== null && {
|
|
10798
11148
|
botLocaleExportSpecification: serializeAws_restJson1BotLocaleExportSpecification(input.botLocaleExportSpecification, context),
|
|
11149
|
+
})), (input.customVocabularyExportSpecification !== undefined &&
|
|
11150
|
+
input.customVocabularyExportSpecification !== null && {
|
|
11151
|
+
customVocabularyExportSpecification: serializeAws_restJson1CustomVocabularyExportSpecification(input.customVocabularyExportSpecification, context),
|
|
10799
11152
|
}));
|
|
10800
11153
|
};
|
|
10801
11154
|
var serializeAws_restJson1ExportSortBy = function (input, context) {
|
|
@@ -10878,12 +11231,15 @@ var serializeAws_restJson1ImportFilters = function (input, context) {
|
|
|
10878
11231
|
});
|
|
10879
11232
|
};
|
|
10880
11233
|
var serializeAws_restJson1ImportResourceSpecification = function (input, context) {
|
|
10881
|
-
return __assign(__assign({}, (input.botImportSpecification !== undefined &&
|
|
11234
|
+
return __assign(__assign(__assign({}, (input.botImportSpecification !== undefined &&
|
|
10882
11235
|
input.botImportSpecification !== null && {
|
|
10883
11236
|
botImportSpecification: serializeAws_restJson1BotImportSpecification(input.botImportSpecification, context),
|
|
10884
11237
|
})), (input.botLocaleImportSpecification !== undefined &&
|
|
10885
11238
|
input.botLocaleImportSpecification !== null && {
|
|
10886
11239
|
botLocaleImportSpecification: serializeAws_restJson1BotLocaleImportSpecification(input.botLocaleImportSpecification, context),
|
|
11240
|
+
})), (input.customVocabularyImportSpecification !== undefined &&
|
|
11241
|
+
input.customVocabularyImportSpecification !== null && {
|
|
11242
|
+
customVocabularyImportSpecification: serializeAws_restJson1CustomVocabularyImportSpecification(input.customVocabularyImportSpecification, context),
|
|
10887
11243
|
}));
|
|
10888
11244
|
};
|
|
10889
11245
|
var serializeAws_restJson1ImportSortBy = function (input, context) {
|
|
@@ -11214,7 +11570,10 @@ var serializeAws_restJson1SlotValueRegexFilter = function (input, context) {
|
|
|
11214
11570
|
return __assign({}, (input.pattern !== undefined && input.pattern !== null && { pattern: input.pattern }));
|
|
11215
11571
|
};
|
|
11216
11572
|
var serializeAws_restJson1SlotValueSelectionSetting = function (input, context) {
|
|
11217
|
-
return __assign(__assign({}, (input.
|
|
11573
|
+
return __assign(__assign(__assign({}, (input.advancedRecognitionSetting !== undefined &&
|
|
11574
|
+
input.advancedRecognitionSetting !== null && {
|
|
11575
|
+
advancedRecognitionSetting: serializeAws_restJson1AdvancedRecognitionSetting(input.advancedRecognitionSetting, context),
|
|
11576
|
+
})), (input.regexFilter !== undefined &&
|
|
11218
11577
|
input.regexFilter !== null && {
|
|
11219
11578
|
regexFilter: serializeAws_restJson1SlotValueRegexFilter(input.regexFilter, context),
|
|
11220
11579
|
})), (input.resolutionStrategy !== undefined &&
|
|
@@ -11307,6 +11666,11 @@ var serializeAws_restJson1WaitAndContinueSpecification = function (input, contex
|
|
|
11307
11666
|
waitingResponse: serializeAws_restJson1ResponseSpecification(input.waitingResponse, context),
|
|
11308
11667
|
}));
|
|
11309
11668
|
};
|
|
11669
|
+
var deserializeAws_restJson1AdvancedRecognitionSetting = function (output, context) {
|
|
11670
|
+
return {
|
|
11671
|
+
audioRecognitionStrategy: __expectString(output.audioRecognitionStrategy),
|
|
11672
|
+
};
|
|
11673
|
+
};
|
|
11310
11674
|
var deserializeAws_restJson1AggregatedUtterancesSummary = function (output, context) {
|
|
11311
11675
|
return {
|
|
11312
11676
|
containsDataFromDeletedResources: __expectBoolean(output.containsDataFromDeletedResources),
|
|
@@ -11694,6 +12058,20 @@ var deserializeAws_restJson1CustomPayload = function (output, context) {
|
|
|
11694
12058
|
value: __expectString(output.value),
|
|
11695
12059
|
};
|
|
11696
12060
|
};
|
|
12061
|
+
var deserializeAws_restJson1CustomVocabularyExportSpecification = function (output, context) {
|
|
12062
|
+
return {
|
|
12063
|
+
botId: __expectString(output.botId),
|
|
12064
|
+
botVersion: __expectString(output.botVersion),
|
|
12065
|
+
localeId: __expectString(output.localeId),
|
|
12066
|
+
};
|
|
12067
|
+
};
|
|
12068
|
+
var deserializeAws_restJson1CustomVocabularyImportSpecification = function (output, context) {
|
|
12069
|
+
return {
|
|
12070
|
+
botId: __expectString(output.botId),
|
|
12071
|
+
botVersion: __expectString(output.botVersion),
|
|
12072
|
+
localeId: __expectString(output.localeId),
|
|
12073
|
+
};
|
|
12074
|
+
};
|
|
11697
12075
|
var deserializeAws_restJson1DataPrivacy = function (output, context) {
|
|
11698
12076
|
return {
|
|
11699
12077
|
childDirected: __expectBoolean(output.childDirected),
|
|
@@ -11729,6 +12107,9 @@ var deserializeAws_restJson1ExportResourceSpecification = function (output, cont
|
|
|
11729
12107
|
botLocaleExportSpecification: output.botLocaleExportSpecification !== undefined && output.botLocaleExportSpecification !== null
|
|
11730
12108
|
? deserializeAws_restJson1BotLocaleExportSpecification(output.botLocaleExportSpecification, context)
|
|
11731
12109
|
: undefined,
|
|
12110
|
+
customVocabularyExportSpecification: output.customVocabularyExportSpecification !== undefined && output.customVocabularyExportSpecification !== null
|
|
12111
|
+
? deserializeAws_restJson1CustomVocabularyExportSpecification(output.customVocabularyExportSpecification, context)
|
|
12112
|
+
: undefined,
|
|
11732
12113
|
};
|
|
11733
12114
|
};
|
|
11734
12115
|
var deserializeAws_restJson1ExportSummary = function (output, context) {
|
|
@@ -11847,6 +12228,9 @@ var deserializeAws_restJson1ImportResourceSpecification = function (output, cont
|
|
|
11847
12228
|
botLocaleImportSpecification: output.botLocaleImportSpecification !== undefined && output.botLocaleImportSpecification !== null
|
|
11848
12229
|
? deserializeAws_restJson1BotLocaleImportSpecification(output.botLocaleImportSpecification, context)
|
|
11849
12230
|
: undefined,
|
|
12231
|
+
customVocabularyImportSpecification: output.customVocabularyImportSpecification !== undefined && output.customVocabularyImportSpecification !== null
|
|
12232
|
+
? deserializeAws_restJson1CustomVocabularyImportSpecification(output.customVocabularyImportSpecification, context)
|
|
12233
|
+
: undefined,
|
|
11850
12234
|
};
|
|
11851
12235
|
};
|
|
11852
12236
|
var deserializeAws_restJson1ImportSummary = function (output, context) {
|
|
@@ -11858,6 +12242,7 @@ var deserializeAws_restJson1ImportSummary = function (output, context) {
|
|
|
11858
12242
|
importStatus: __expectString(output.importStatus),
|
|
11859
12243
|
importedResourceId: __expectString(output.importedResourceId),
|
|
11860
12244
|
importedResourceName: __expectString(output.importedResourceName),
|
|
12245
|
+
importedResourceType: __expectString(output.importedResourceType),
|
|
11861
12246
|
lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
|
|
11862
12247
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDateTime)))
|
|
11863
12248
|
: undefined,
|
|
@@ -12297,6 +12682,9 @@ var deserializeAws_restJson1SlotValueRegexFilter = function (output, context) {
|
|
|
12297
12682
|
};
|
|
12298
12683
|
var deserializeAws_restJson1SlotValueSelectionSetting = function (output, context) {
|
|
12299
12684
|
return {
|
|
12685
|
+
advancedRecognitionSetting: output.advancedRecognitionSetting !== undefined && output.advancedRecognitionSetting !== null
|
|
12686
|
+
? deserializeAws_restJson1AdvancedRecognitionSetting(output.advancedRecognitionSetting, context)
|
|
12687
|
+
: undefined,
|
|
12300
12688
|
regexFilter: output.regexFilter !== undefined && output.regexFilter !== null
|
|
12301
12689
|
? deserializeAws_restJson1SlotValueRegexFilter(output.regexFilter, context)
|
|
12302
12690
|
: undefined,
|
|
@@ -15,6 +15,7 @@ import { DeleteBotAliasCommandInput, DeleteBotAliasCommandOutput } from "./comma
|
|
|
15
15
|
import { DeleteBotCommandInput, DeleteBotCommandOutput } from "./commands/DeleteBotCommand";
|
|
16
16
|
import { DeleteBotLocaleCommandInput, DeleteBotLocaleCommandOutput } from "./commands/DeleteBotLocaleCommand";
|
|
17
17
|
import { DeleteBotVersionCommandInput, DeleteBotVersionCommandOutput } from "./commands/DeleteBotVersionCommand";
|
|
18
|
+
import { DeleteCustomVocabularyCommandInput, DeleteCustomVocabularyCommandOutput } from "./commands/DeleteCustomVocabularyCommand";
|
|
18
19
|
import { DeleteExportCommandInput, DeleteExportCommandOutput } from "./commands/DeleteExportCommand";
|
|
19
20
|
import { DeleteImportCommandInput, DeleteImportCommandOutput } from "./commands/DeleteImportCommand";
|
|
20
21
|
import { DeleteIntentCommandInput, DeleteIntentCommandOutput } from "./commands/DeleteIntentCommand";
|
|
@@ -28,6 +29,7 @@ import { DescribeBotCommandInput, DescribeBotCommandOutput } from "./commands/De
|
|
|
28
29
|
import { DescribeBotLocaleCommandInput, DescribeBotLocaleCommandOutput } from "./commands/DescribeBotLocaleCommand";
|
|
29
30
|
import { DescribeBotRecommendationCommandInput, DescribeBotRecommendationCommandOutput } from "./commands/DescribeBotRecommendationCommand";
|
|
30
31
|
import { DescribeBotVersionCommandInput, DescribeBotVersionCommandOutput } from "./commands/DescribeBotVersionCommand";
|
|
32
|
+
import { DescribeCustomVocabularyMetadataCommandInput, DescribeCustomVocabularyMetadataCommandOutput } from "./commands/DescribeCustomVocabularyMetadataCommand";
|
|
31
33
|
import { DescribeExportCommandInput, DescribeExportCommandOutput } from "./commands/DescribeExportCommand";
|
|
32
34
|
import { DescribeImportCommandInput, DescribeImportCommandOutput } from "./commands/DescribeImportCommand";
|
|
33
35
|
import { DescribeIntentCommandInput, DescribeIntentCommandOutput } from "./commands/DescribeIntentCommand";
|
|
@@ -249,6 +251,13 @@ export declare class LexModelsV2 extends LexModelsV2Client {
|
|
|
249
251
|
deleteBotVersion(args: DeleteBotVersionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteBotVersionCommandOutput>;
|
|
250
252
|
deleteBotVersion(args: DeleteBotVersionCommandInput, cb: (err: any, data?: DeleteBotVersionCommandOutput) => void): void;
|
|
251
253
|
deleteBotVersion(args: DeleteBotVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteBotVersionCommandOutput) => void): void;
|
|
254
|
+
/**
|
|
255
|
+
* <p>Removes a custom vocabulary from the specified locale
|
|
256
|
+
* in the specified bot.</p>
|
|
257
|
+
*/
|
|
258
|
+
deleteCustomVocabulary(args: DeleteCustomVocabularyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteCustomVocabularyCommandOutput>;
|
|
259
|
+
deleteCustomVocabulary(args: DeleteCustomVocabularyCommandInput, cb: (err: any, data?: DeleteCustomVocabularyCommandOutput) => void): void;
|
|
260
|
+
deleteCustomVocabulary(args: DeleteCustomVocabularyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteCustomVocabularyCommandOutput) => void): void;
|
|
252
261
|
/**
|
|
253
262
|
* <p>Removes a previous export and the associated files stored in an S3
|
|
254
263
|
* bucket.</p>
|
|
@@ -355,6 +364,12 @@ export declare class LexModelsV2 extends LexModelsV2Client {
|
|
|
355
364
|
describeBotVersion(args: DescribeBotVersionCommandInput, options?: __HttpHandlerOptions): Promise<DescribeBotVersionCommandOutput>;
|
|
356
365
|
describeBotVersion(args: DescribeBotVersionCommandInput, cb: (err: any, data?: DescribeBotVersionCommandOutput) => void): void;
|
|
357
366
|
describeBotVersion(args: DescribeBotVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeBotVersionCommandOutput) => void): void;
|
|
367
|
+
/**
|
|
368
|
+
* <p>Provides metadata information about a custom vocabulary.</p>
|
|
369
|
+
*/
|
|
370
|
+
describeCustomVocabularyMetadata(args: DescribeCustomVocabularyMetadataCommandInput, options?: __HttpHandlerOptions): Promise<DescribeCustomVocabularyMetadataCommandOutput>;
|
|
371
|
+
describeCustomVocabularyMetadata(args: DescribeCustomVocabularyMetadataCommandInput, cb: (err: any, data?: DescribeCustomVocabularyMetadataCommandOutput) => void): void;
|
|
372
|
+
describeCustomVocabularyMetadata(args: DescribeCustomVocabularyMetadataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeCustomVocabularyMetadataCommandOutput) => void): void;
|
|
358
373
|
/**
|
|
359
374
|
* <p>Gets information about a specific export.</p>
|
|
360
375
|
*/
|
|
@@ -479,15 +494,15 @@ export declare class LexModelsV2 extends LexModelsV2Client {
|
|
|
479
494
|
listBuiltInSlotTypes(args: ListBuiltInSlotTypesCommandInput, cb: (err: any, data?: ListBuiltInSlotTypesCommandOutput) => void): void;
|
|
480
495
|
listBuiltInSlotTypes(args: ListBuiltInSlotTypesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListBuiltInSlotTypesCommandOutput) => void): void;
|
|
481
496
|
/**
|
|
482
|
-
* <p>Lists the exports for a bot
|
|
483
|
-
* list for 7 days.</p>
|
|
497
|
+
* <p>Lists the exports for a bot, bot locale, or custom vocabulary.
|
|
498
|
+
* Exports are kept in the list for 7 days.</p>
|
|
484
499
|
*/
|
|
485
500
|
listExports(args: ListExportsCommandInput, options?: __HttpHandlerOptions): Promise<ListExportsCommandOutput>;
|
|
486
501
|
listExports(args: ListExportsCommandInput, cb: (err: any, data?: ListExportsCommandOutput) => void): void;
|
|
487
502
|
listExports(args: ListExportsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListExportsCommandOutput) => void): void;
|
|
488
503
|
/**
|
|
489
|
-
* <p>Lists the imports for a bot
|
|
490
|
-
* list for 7 days.</p>
|
|
504
|
+
* <p>Lists the imports for a bot, bot locale, or custom vocabulary.
|
|
505
|
+
* Imports are kept in the list for 7 days.</p>
|
|
491
506
|
*/
|
|
492
507
|
listImports(args: ListImportsCommandInput, options?: __HttpHandlerOptions): Promise<ListImportsCommandOutput>;
|
|
493
508
|
listImports(args: ListImportsCommandInput, cb: (err: any, data?: ListImportsCommandOutput) => void): void;
|
|
@@ -539,8 +554,8 @@ export declare class LexModelsV2 extends LexModelsV2Client {
|
|
|
539
554
|
startBotRecommendation(args: StartBotRecommendationCommandInput, cb: (err: any, data?: StartBotRecommendationCommandOutput) => void): void;
|
|
540
555
|
startBotRecommendation(args: StartBotRecommendationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartBotRecommendationCommandOutput) => void): void;
|
|
541
556
|
/**
|
|
542
|
-
* <p>Starts importing a bot
|
|
543
|
-
* uploaded to an S3 bucket.</p>
|
|
557
|
+
* <p>Starts importing a bot, bot locale, or custom vocabulary from a zip
|
|
558
|
+
* archive that you uploaded to an S3 bucket.</p>
|
|
544
559
|
*/
|
|
545
560
|
startImport(args: StartImportCommandInput, options?: __HttpHandlerOptions): Promise<StartImportCommandOutput>;
|
|
546
561
|
startImport(args: StartImportCommandInput, cb: (err: any, data?: StartImportCommandOutput) => void): void;
|