@aws-sdk/client-lex-models-v2 3.345.0 → 3.347.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/README.md +112 -0
- package/dist-cjs/LexModelsV2.js +28 -0
- package/dist-cjs/commands/CreateTestSetDiscrepancyReportCommand.js +46 -0
- package/dist-cjs/commands/DeleteTestSetCommand.js +46 -0
- package/dist-cjs/commands/DescribeTestExecutionCommand.js +46 -0
- package/dist-cjs/commands/DescribeTestSetCommand.js +46 -0
- package/dist-cjs/commands/DescribeTestSetDiscrepancyReportCommand.js +46 -0
- package/dist-cjs/commands/DescribeTestSetGenerationCommand.js +46 -0
- package/dist-cjs/commands/GetTestExecutionArtifactsUrlCommand.js +46 -0
- package/dist-cjs/commands/ListTestExecutionResultItemsCommand.js +46 -0
- package/dist-cjs/commands/ListTestExecutionsCommand.js +46 -0
- package/dist-cjs/commands/ListTestSetRecordsCommand.js +46 -0
- package/dist-cjs/commands/ListTestSetsCommand.js +46 -0
- package/dist-cjs/commands/StartBotRecommendationCommand.js +3 -3
- package/dist-cjs/commands/StartImportCommand.js +2 -2
- package/dist-cjs/commands/StartTestExecutionCommand.js +46 -0
- package/dist-cjs/commands/StartTestSetGenerationCommand.js +46 -0
- package/dist-cjs/commands/UpdateTestSetCommand.js +46 -0
- package/dist-cjs/commands/index.js +14 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +52 -50
- package/dist-cjs/models/models_1.js +64 -1
- package/dist-cjs/pagination/ListTestExecutionResultItemsPaginator.js +29 -0
- package/dist-cjs/pagination/ListTestExecutionsPaginator.js +29 -0
- package/dist-cjs/pagination/ListTestSetRecordsPaginator.js +29 -0
- package/dist-cjs/pagination/ListTestSetsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +4 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1395 -146
- package/dist-es/LexModelsV2.js +28 -0
- package/dist-es/commands/CreateTestSetDiscrepancyReportCommand.js +42 -0
- package/dist-es/commands/DeleteTestSetCommand.js +42 -0
- package/dist-es/commands/DescribeTestExecutionCommand.js +42 -0
- package/dist-es/commands/DescribeTestSetCommand.js +42 -0
- package/dist-es/commands/DescribeTestSetDiscrepancyReportCommand.js +42 -0
- package/dist-es/commands/DescribeTestSetGenerationCommand.js +42 -0
- package/dist-es/commands/GetTestExecutionArtifactsUrlCommand.js +42 -0
- package/dist-es/commands/ListTestExecutionResultItemsCommand.js +42 -0
- package/dist-es/commands/ListTestExecutionsCommand.js +42 -0
- package/dist-es/commands/ListTestSetRecordsCommand.js +42 -0
- package/dist-es/commands/ListTestSetsCommand.js +42 -0
- package/dist-es/commands/StartBotRecommendationCommand.js +1 -1
- package/dist-es/commands/StartImportCommand.js +1 -1
- package/dist-es/commands/StartTestExecutionCommand.js +42 -0
- package/dist-es/commands/StartTestSetGenerationCommand.js +42 -0
- package/dist-es/commands/UpdateTestSetCommand.js +42 -0
- package/dist-es/commands/index.js +14 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +50 -45
- package/dist-es/models/models_1.js +60 -0
- package/dist-es/pagination/ListTestExecutionResultItemsPaginator.js +25 -0
- package/dist-es/pagination/ListTestExecutionsPaginator.js +25 -0
- package/dist-es/pagination/ListTestSetRecordsPaginator.js +25 -0
- package/dist-es/pagination/ListTestSetsPaginator.js +25 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +1360 -140
- package/dist-types/LexModelsV2.d.ts +98 -0
- package/dist-types/LexModelsV2Client.d.ts +16 -2
- package/dist-types/commands/CreateExportCommand.d.ts +8 -2
- package/dist-types/commands/CreateTestSetDiscrepancyReportCommand.d.ts +113 -0
- package/dist-types/commands/DeleteTestSetCommand.d.ts +96 -0
- package/dist-types/commands/DescribeExportCommand.d.ts +4 -1
- package/dist-types/commands/DescribeImportCommand.d.ts +18 -0
- package/dist-types/commands/DescribeTestExecutionCommand.d.ts +109 -0
- package/dist-types/commands/DescribeTestSetCommand.d.ts +105 -0
- package/dist-types/commands/DescribeTestSetDiscrepancyReportCommand.d.ts +122 -0
- package/dist-types/commands/DescribeTestSetGenerationCommand.d.ts +119 -0
- package/dist-types/commands/GetTestExecutionArtifactsUrlCommand.d.ts +93 -0
- package/dist-types/commands/ListBotAliasesCommand.d.ts +1 -1
- package/dist-types/commands/ListBotLocalesCommand.d.ts +1 -1
- package/dist-types/commands/ListBotRecommendationsCommand.d.ts +1 -1
- package/dist-types/commands/ListBotVersionsCommand.d.ts +1 -1
- package/dist-types/commands/ListBotsCommand.d.ts +1 -1
- package/dist-types/commands/ListBuiltInIntentsCommand.d.ts +1 -1
- package/dist-types/commands/ListBuiltInSlotTypesCommand.d.ts +1 -1
- package/dist-types/commands/ListCustomVocabularyItemsCommand.d.ts +1 -1
- package/dist-types/commands/ListExportsCommand.d.ts +5 -2
- package/dist-types/commands/ListImportsCommand.d.ts +2 -2
- package/dist-types/commands/ListIntentsCommand.d.ts +1 -1
- package/dist-types/commands/ListRecommendedIntentsCommand.d.ts +1 -1
- package/dist-types/commands/ListSlotTypesCommand.d.ts +1 -1
- package/dist-types/commands/ListSlotsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ListTestExecutionResultItemsCommand.d.ts +291 -0
- package/dist-types/commands/ListTestExecutionsCommand.d.ts +112 -0
- package/dist-types/commands/ListTestSetRecordsCommand.d.ts +180 -0
- package/dist-types/commands/ListTestSetsCommand.d.ts +111 -0
- package/dist-types/commands/SearchAssociatedTranscriptsCommand.d.ts +1 -1
- package/dist-types/commands/StartBotRecommendationCommand.d.ts +1 -1
- package/dist-types/commands/StartImportCommand.d.ts +37 -1
- package/dist-types/commands/StartTestExecutionCommand.d.ts +117 -0
- package/dist-types/commands/StartTestSetGenerationCommand.d.ts +144 -0
- package/dist-types/commands/StopBotRecommendationCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -2
- package/dist-types/commands/UpdateExportCommand.d.ts +4 -1
- package/dist-types/commands/UpdateTestSetCommand.d.ts +113 -0
- package/dist-types/commands/index.d.ts +14 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +1054 -1714
- package/dist-types/models/models_1.d.ts +2465 -18
- package/dist-types/pagination/ListTestExecutionResultItemsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListTestExecutionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListTestSetRecordsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListTestSetsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +126 -0
- package/dist-types/ts3.4/LexModelsV2.d.ts +238 -0
- package/dist-types/ts3.4/LexModelsV2Client.d.ts +86 -2
- package/dist-types/ts3.4/commands/CreateTestSetDiscrepancyReportCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteTestSetCommand.d.ts +33 -0
- package/dist-types/ts3.4/commands/DescribeTestExecutionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeTestSetCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DescribeTestSetDiscrepancyReportCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeTestSetGenerationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetTestExecutionArtifactsUrlCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListBotAliasesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListBotLocalesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListBotRecommendationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListBotVersionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListBotsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListBuiltInIntentsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListBuiltInSlotTypesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListCustomVocabularyItemsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListExportsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListImportsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListIntentsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListRecommendedIntentsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListSlotTypesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListSlotsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListTestExecutionResultItemsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListTestExecutionsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListTestSetRecordsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListTestSetsCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/SearchAssociatedTranscriptsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartBotRecommendationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartImportCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartTestExecutionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/StartTestSetGenerationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StopBotRecommendationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/UpdateTestSetCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +14 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +293 -362
- package/dist-types/ts3.4/models/models_1.d.ts +646 -0
- package/dist-types/ts3.4/pagination/ListTestExecutionResultItemsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTestExecutionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTestSetRecordsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTestSetsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +168 -0
- package/package.json +29 -29
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
1
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { LexModelsV2ServiceException as __BaseException } from "../models/LexModelsV2ServiceException";
|
|
4
4
|
import { ConflictException, InternalServerException, PreconditionFailedException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
@@ -364,6 +364,27 @@ export const se_CreateSlotTypeCommand = async (input, context) => {
|
|
|
364
364
|
body,
|
|
365
365
|
});
|
|
366
366
|
};
|
|
367
|
+
export const se_CreateTestSetDiscrepancyReportCommand = async (input, context) => {
|
|
368
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
369
|
+
const headers = {
|
|
370
|
+
"content-type": "application/json",
|
|
371
|
+
};
|
|
372
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testsets/{testSetId}/testsetdiscrepancy";
|
|
373
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "testSetId", () => input.testSetId, "{testSetId}", false);
|
|
374
|
+
let body;
|
|
375
|
+
body = JSON.stringify(take(input, {
|
|
376
|
+
target: (_) => _json(_),
|
|
377
|
+
}));
|
|
378
|
+
return new __HttpRequest({
|
|
379
|
+
protocol,
|
|
380
|
+
hostname,
|
|
381
|
+
port,
|
|
382
|
+
method: "POST",
|
|
383
|
+
headers,
|
|
384
|
+
path: resolvedPath,
|
|
385
|
+
body,
|
|
386
|
+
});
|
|
387
|
+
};
|
|
367
388
|
export const se_CreateUploadUrlCommand = async (input, context) => {
|
|
368
389
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
369
390
|
const headers = {
|
|
@@ -633,6 +654,22 @@ export const se_DeleteSlotTypeCommand = async (input, context) => {
|
|
|
633
654
|
body,
|
|
634
655
|
});
|
|
635
656
|
};
|
|
657
|
+
export const se_DeleteTestSetCommand = async (input, context) => {
|
|
658
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
659
|
+
const headers = {};
|
|
660
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testsets/{testSetId}";
|
|
661
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "testSetId", () => input.testSetId, "{testSetId}", false);
|
|
662
|
+
let body;
|
|
663
|
+
return new __HttpRequest({
|
|
664
|
+
protocol,
|
|
665
|
+
hostname,
|
|
666
|
+
port,
|
|
667
|
+
method: "DELETE",
|
|
668
|
+
headers,
|
|
669
|
+
path: resolvedPath,
|
|
670
|
+
body,
|
|
671
|
+
});
|
|
672
|
+
};
|
|
636
673
|
export const se_DeleteUtterancesCommand = async (input, context) => {
|
|
637
674
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
638
675
|
const headers = {};
|
|
@@ -871,6 +908,88 @@ export const se_DescribeSlotTypeCommand = async (input, context) => {
|
|
|
871
908
|
body,
|
|
872
909
|
});
|
|
873
910
|
};
|
|
911
|
+
export const se_DescribeTestExecutionCommand = async (input, context) => {
|
|
912
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
913
|
+
const headers = {};
|
|
914
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testexecutions/{testExecutionId}";
|
|
915
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "testExecutionId", () => input.testExecutionId, "{testExecutionId}", false);
|
|
916
|
+
let body;
|
|
917
|
+
return new __HttpRequest({
|
|
918
|
+
protocol,
|
|
919
|
+
hostname,
|
|
920
|
+
port,
|
|
921
|
+
method: "GET",
|
|
922
|
+
headers,
|
|
923
|
+
path: resolvedPath,
|
|
924
|
+
body,
|
|
925
|
+
});
|
|
926
|
+
};
|
|
927
|
+
export const se_DescribeTestSetCommand = async (input, context) => {
|
|
928
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
929
|
+
const headers = {};
|
|
930
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testsets/{testSetId}";
|
|
931
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "testSetId", () => input.testSetId, "{testSetId}", false);
|
|
932
|
+
let body;
|
|
933
|
+
return new __HttpRequest({
|
|
934
|
+
protocol,
|
|
935
|
+
hostname,
|
|
936
|
+
port,
|
|
937
|
+
method: "GET",
|
|
938
|
+
headers,
|
|
939
|
+
path: resolvedPath,
|
|
940
|
+
body,
|
|
941
|
+
});
|
|
942
|
+
};
|
|
943
|
+
export const se_DescribeTestSetDiscrepancyReportCommand = async (input, context) => {
|
|
944
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
945
|
+
const headers = {};
|
|
946
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
947
|
+
"/testsetdiscrepancy/{testSetDiscrepancyReportId}";
|
|
948
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "testSetDiscrepancyReportId", () => input.testSetDiscrepancyReportId, "{testSetDiscrepancyReportId}", false);
|
|
949
|
+
let body;
|
|
950
|
+
return new __HttpRequest({
|
|
951
|
+
protocol,
|
|
952
|
+
hostname,
|
|
953
|
+
port,
|
|
954
|
+
method: "GET",
|
|
955
|
+
headers,
|
|
956
|
+
path: resolvedPath,
|
|
957
|
+
body,
|
|
958
|
+
});
|
|
959
|
+
};
|
|
960
|
+
export const se_DescribeTestSetGenerationCommand = async (input, context) => {
|
|
961
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
962
|
+
const headers = {};
|
|
963
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testsetgenerations/{testSetGenerationId}";
|
|
964
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "testSetGenerationId", () => input.testSetGenerationId, "{testSetGenerationId}", false);
|
|
965
|
+
let body;
|
|
966
|
+
return new __HttpRequest({
|
|
967
|
+
protocol,
|
|
968
|
+
hostname,
|
|
969
|
+
port,
|
|
970
|
+
method: "GET",
|
|
971
|
+
headers,
|
|
972
|
+
path: resolvedPath,
|
|
973
|
+
body,
|
|
974
|
+
});
|
|
975
|
+
};
|
|
976
|
+
export const se_GetTestExecutionArtifactsUrlCommand = async (input, context) => {
|
|
977
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
978
|
+
const headers = {};
|
|
979
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
980
|
+
"/testexecutions/{testExecutionId}/artifacturl";
|
|
981
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "testExecutionId", () => input.testExecutionId, "{testExecutionId}", false);
|
|
982
|
+
let body;
|
|
983
|
+
return new __HttpRequest({
|
|
984
|
+
protocol,
|
|
985
|
+
hostname,
|
|
986
|
+
port,
|
|
987
|
+
method: "GET",
|
|
988
|
+
headers,
|
|
989
|
+
path: resolvedPath,
|
|
990
|
+
body,
|
|
991
|
+
});
|
|
992
|
+
};
|
|
874
993
|
export const se_ListAggregatedUtterancesCommand = async (input, context) => {
|
|
875
994
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
876
995
|
const headers = {
|
|
@@ -1265,6 +1384,95 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
1265
1384
|
body,
|
|
1266
1385
|
});
|
|
1267
1386
|
};
|
|
1387
|
+
export const se_ListTestExecutionResultItemsCommand = async (input, context) => {
|
|
1388
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1389
|
+
const headers = {
|
|
1390
|
+
"content-type": "application/json",
|
|
1391
|
+
};
|
|
1392
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testexecutions/{testExecutionId}/results";
|
|
1393
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "testExecutionId", () => input.testExecutionId, "{testExecutionId}", false);
|
|
1394
|
+
let body;
|
|
1395
|
+
body = JSON.stringify(take(input, {
|
|
1396
|
+
maxResults: [],
|
|
1397
|
+
nextToken: [],
|
|
1398
|
+
resultFilterBy: (_) => _json(_),
|
|
1399
|
+
}));
|
|
1400
|
+
return new __HttpRequest({
|
|
1401
|
+
protocol,
|
|
1402
|
+
hostname,
|
|
1403
|
+
port,
|
|
1404
|
+
method: "POST",
|
|
1405
|
+
headers,
|
|
1406
|
+
path: resolvedPath,
|
|
1407
|
+
body,
|
|
1408
|
+
});
|
|
1409
|
+
};
|
|
1410
|
+
export const se_ListTestExecutionsCommand = async (input, context) => {
|
|
1411
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1412
|
+
const headers = {
|
|
1413
|
+
"content-type": "application/json",
|
|
1414
|
+
};
|
|
1415
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testexecutions";
|
|
1416
|
+
let body;
|
|
1417
|
+
body = JSON.stringify(take(input, {
|
|
1418
|
+
maxResults: [],
|
|
1419
|
+
nextToken: [],
|
|
1420
|
+
sortBy: (_) => _json(_),
|
|
1421
|
+
}));
|
|
1422
|
+
return new __HttpRequest({
|
|
1423
|
+
protocol,
|
|
1424
|
+
hostname,
|
|
1425
|
+
port,
|
|
1426
|
+
method: "POST",
|
|
1427
|
+
headers,
|
|
1428
|
+
path: resolvedPath,
|
|
1429
|
+
body,
|
|
1430
|
+
});
|
|
1431
|
+
};
|
|
1432
|
+
export const se_ListTestSetRecordsCommand = async (input, context) => {
|
|
1433
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1434
|
+
const headers = {
|
|
1435
|
+
"content-type": "application/json",
|
|
1436
|
+
};
|
|
1437
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testsets/{testSetId}/records";
|
|
1438
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "testSetId", () => input.testSetId, "{testSetId}", false);
|
|
1439
|
+
let body;
|
|
1440
|
+
body = JSON.stringify(take(input, {
|
|
1441
|
+
maxResults: [],
|
|
1442
|
+
nextToken: [],
|
|
1443
|
+
}));
|
|
1444
|
+
return new __HttpRequest({
|
|
1445
|
+
protocol,
|
|
1446
|
+
hostname,
|
|
1447
|
+
port,
|
|
1448
|
+
method: "POST",
|
|
1449
|
+
headers,
|
|
1450
|
+
path: resolvedPath,
|
|
1451
|
+
body,
|
|
1452
|
+
});
|
|
1453
|
+
};
|
|
1454
|
+
export const se_ListTestSetsCommand = async (input, context) => {
|
|
1455
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1456
|
+
const headers = {
|
|
1457
|
+
"content-type": "application/json",
|
|
1458
|
+
};
|
|
1459
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testsets";
|
|
1460
|
+
let body;
|
|
1461
|
+
body = JSON.stringify(take(input, {
|
|
1462
|
+
maxResults: [],
|
|
1463
|
+
nextToken: [],
|
|
1464
|
+
sortBy: (_) => _json(_),
|
|
1465
|
+
}));
|
|
1466
|
+
return new __HttpRequest({
|
|
1467
|
+
protocol,
|
|
1468
|
+
hostname,
|
|
1469
|
+
port,
|
|
1470
|
+
method: "POST",
|
|
1471
|
+
headers,
|
|
1472
|
+
path: resolvedPath,
|
|
1473
|
+
body,
|
|
1474
|
+
});
|
|
1475
|
+
};
|
|
1268
1476
|
export const se_SearchAssociatedTranscriptsCommand = async (input, context) => {
|
|
1269
1477
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1270
1478
|
const headers = {
|
|
@@ -1341,6 +1549,54 @@ export const se_StartImportCommand = async (input, context) => {
|
|
|
1341
1549
|
body,
|
|
1342
1550
|
});
|
|
1343
1551
|
};
|
|
1552
|
+
export const se_StartTestExecutionCommand = async (input, context) => {
|
|
1553
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1554
|
+
const headers = {
|
|
1555
|
+
"content-type": "application/json",
|
|
1556
|
+
};
|
|
1557
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testsets/{testSetId}/testexecutions";
|
|
1558
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "testSetId", () => input.testSetId, "{testSetId}", false);
|
|
1559
|
+
let body;
|
|
1560
|
+
body = JSON.stringify(take(input, {
|
|
1561
|
+
apiMode: [],
|
|
1562
|
+
target: (_) => _json(_),
|
|
1563
|
+
testExecutionModality: [],
|
|
1564
|
+
}));
|
|
1565
|
+
return new __HttpRequest({
|
|
1566
|
+
protocol,
|
|
1567
|
+
hostname,
|
|
1568
|
+
port,
|
|
1569
|
+
method: "POST",
|
|
1570
|
+
headers,
|
|
1571
|
+
path: resolvedPath,
|
|
1572
|
+
body,
|
|
1573
|
+
});
|
|
1574
|
+
};
|
|
1575
|
+
export const se_StartTestSetGenerationCommand = async (input, context) => {
|
|
1576
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1577
|
+
const headers = {
|
|
1578
|
+
"content-type": "application/json",
|
|
1579
|
+
};
|
|
1580
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testsetgenerations";
|
|
1581
|
+
let body;
|
|
1582
|
+
body = JSON.stringify(take(input, {
|
|
1583
|
+
description: [],
|
|
1584
|
+
generationDataSource: (_) => se_TestSetGenerationDataSource(_, context),
|
|
1585
|
+
roleArn: [],
|
|
1586
|
+
storageLocation: (_) => _json(_),
|
|
1587
|
+
testSetName: [],
|
|
1588
|
+
testSetTags: (_) => _json(_),
|
|
1589
|
+
}));
|
|
1590
|
+
return new __HttpRequest({
|
|
1591
|
+
protocol,
|
|
1592
|
+
hostname,
|
|
1593
|
+
port,
|
|
1594
|
+
method: "PUT",
|
|
1595
|
+
headers,
|
|
1596
|
+
path: resolvedPath,
|
|
1597
|
+
body,
|
|
1598
|
+
});
|
|
1599
|
+
};
|
|
1344
1600
|
export const se_StopBotRecommendationCommand = async (input, context) => {
|
|
1345
1601
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1346
1602
|
const headers = {};
|
|
@@ -1656,6 +1912,28 @@ export const se_UpdateSlotTypeCommand = async (input, context) => {
|
|
|
1656
1912
|
body,
|
|
1657
1913
|
});
|
|
1658
1914
|
};
|
|
1915
|
+
export const se_UpdateTestSetCommand = async (input, context) => {
|
|
1916
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1917
|
+
const headers = {
|
|
1918
|
+
"content-type": "application/json",
|
|
1919
|
+
};
|
|
1920
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testsets/{testSetId}";
|
|
1921
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "testSetId", () => input.testSetId, "{testSetId}", false);
|
|
1922
|
+
let body;
|
|
1923
|
+
body = JSON.stringify(take(input, {
|
|
1924
|
+
description: [],
|
|
1925
|
+
testSetName: [],
|
|
1926
|
+
}));
|
|
1927
|
+
return new __HttpRequest({
|
|
1928
|
+
protocol,
|
|
1929
|
+
hostname,
|
|
1930
|
+
port,
|
|
1931
|
+
method: "PUT",
|
|
1932
|
+
headers,
|
|
1933
|
+
path: resolvedPath,
|
|
1934
|
+
body,
|
|
1935
|
+
});
|
|
1936
|
+
};
|
|
1659
1937
|
export const de_BatchCreateCustomVocabularyItemCommand = async (output, context) => {
|
|
1660
1938
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1661
1939
|
return de_BatchCreateCustomVocabularyItemCommandError(output, context);
|
|
@@ -2417,22 +2695,24 @@ const de_CreateSlotTypeCommandError = async (output, context) => {
|
|
|
2417
2695
|
});
|
|
2418
2696
|
}
|
|
2419
2697
|
};
|
|
2420
|
-
export const
|
|
2421
|
-
if (output.statusCode !==
|
|
2422
|
-
return
|
|
2698
|
+
export const de_CreateTestSetDiscrepancyReportCommand = async (output, context) => {
|
|
2699
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2700
|
+
return de_CreateTestSetDiscrepancyReportCommandError(output, context);
|
|
2423
2701
|
}
|
|
2424
2702
|
const contents = map({
|
|
2425
2703
|
$metadata: deserializeMetadata(output),
|
|
2426
2704
|
});
|
|
2427
2705
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2428
2706
|
const doc = take(data, {
|
|
2429
|
-
|
|
2430
|
-
|
|
2707
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2708
|
+
target: _json,
|
|
2709
|
+
testSetDiscrepancyReportId: __expectString,
|
|
2710
|
+
testSetId: __expectString,
|
|
2431
2711
|
});
|
|
2432
2712
|
Object.assign(contents, doc);
|
|
2433
2713
|
return contents;
|
|
2434
2714
|
};
|
|
2435
|
-
const
|
|
2715
|
+
const de_CreateTestSetDiscrepancyReportCommandError = async (output, context) => {
|
|
2436
2716
|
const parsedOutput = {
|
|
2437
2717
|
...output,
|
|
2438
2718
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2448,6 +2728,9 @@ const de_CreateUploadUrlCommandError = async (output, context) => {
|
|
|
2448
2728
|
case "ResourceNotFoundException":
|
|
2449
2729
|
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
2450
2730
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2731
|
+
case "ServiceQuotaExceededException":
|
|
2732
|
+
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
2733
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2451
2734
|
case "ThrottlingException":
|
|
2452
2735
|
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
2453
2736
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -2463,22 +2746,22 @@ const de_CreateUploadUrlCommandError = async (output, context) => {
|
|
|
2463
2746
|
});
|
|
2464
2747
|
}
|
|
2465
2748
|
};
|
|
2466
|
-
export const
|
|
2467
|
-
if (output.statusCode !==
|
|
2468
|
-
return
|
|
2749
|
+
export const de_CreateUploadUrlCommand = async (output, context) => {
|
|
2750
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2751
|
+
return de_CreateUploadUrlCommandError(output, context);
|
|
2469
2752
|
}
|
|
2470
2753
|
const contents = map({
|
|
2471
2754
|
$metadata: deserializeMetadata(output),
|
|
2472
2755
|
});
|
|
2473
2756
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2474
2757
|
const doc = take(data, {
|
|
2475
|
-
|
|
2476
|
-
|
|
2758
|
+
importId: __expectString,
|
|
2759
|
+
uploadUrl: __expectString,
|
|
2477
2760
|
});
|
|
2478
2761
|
Object.assign(contents, doc);
|
|
2479
2762
|
return contents;
|
|
2480
2763
|
};
|
|
2481
|
-
const
|
|
2764
|
+
const de_CreateUploadUrlCommandError = async (output, context) => {
|
|
2482
2765
|
const parsedOutput = {
|
|
2483
2766
|
...output,
|
|
2484
2767
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2491,10 +2774,56 @@ const de_DeleteBotCommandError = async (output, context) => {
|
|
|
2491
2774
|
case "InternalServerException":
|
|
2492
2775
|
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
2493
2776
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2494
|
-
case "
|
|
2495
|
-
case "com.amazonaws.lexmodelsv2#
|
|
2496
|
-
throw await
|
|
2497
|
-
case "
|
|
2777
|
+
case "ResourceNotFoundException":
|
|
2778
|
+
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
2779
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2780
|
+
case "ThrottlingException":
|
|
2781
|
+
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
2782
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2783
|
+
case "ValidationException":
|
|
2784
|
+
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
2785
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2786
|
+
default:
|
|
2787
|
+
const parsedBody = parsedOutput.body;
|
|
2788
|
+
return throwDefaultError({
|
|
2789
|
+
output,
|
|
2790
|
+
parsedBody,
|
|
2791
|
+
errorCode,
|
|
2792
|
+
});
|
|
2793
|
+
}
|
|
2794
|
+
};
|
|
2795
|
+
export const de_DeleteBotCommand = async (output, context) => {
|
|
2796
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2797
|
+
return de_DeleteBotCommandError(output, context);
|
|
2798
|
+
}
|
|
2799
|
+
const contents = map({
|
|
2800
|
+
$metadata: deserializeMetadata(output),
|
|
2801
|
+
});
|
|
2802
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2803
|
+
const doc = take(data, {
|
|
2804
|
+
botId: __expectString,
|
|
2805
|
+
botStatus: __expectString,
|
|
2806
|
+
});
|
|
2807
|
+
Object.assign(contents, doc);
|
|
2808
|
+
return contents;
|
|
2809
|
+
};
|
|
2810
|
+
const de_DeleteBotCommandError = async (output, context) => {
|
|
2811
|
+
const parsedOutput = {
|
|
2812
|
+
...output,
|
|
2813
|
+
body: await parseErrorBody(output.body, context),
|
|
2814
|
+
};
|
|
2815
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2816
|
+
switch (errorCode) {
|
|
2817
|
+
case "ConflictException":
|
|
2818
|
+
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
2819
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2820
|
+
case "InternalServerException":
|
|
2821
|
+
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
2822
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2823
|
+
case "PreconditionFailedException":
|
|
2824
|
+
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
2825
|
+
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
2826
|
+
case "ServiceQuotaExceededException":
|
|
2498
2827
|
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
2499
2828
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2500
2829
|
case "ThrottlingException":
|
|
@@ -3024,6 +3353,50 @@ const de_DeleteSlotTypeCommandError = async (output, context) => {
|
|
|
3024
3353
|
});
|
|
3025
3354
|
}
|
|
3026
3355
|
};
|
|
3356
|
+
export const de_DeleteTestSetCommand = async (output, context) => {
|
|
3357
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3358
|
+
return de_DeleteTestSetCommandError(output, context);
|
|
3359
|
+
}
|
|
3360
|
+
const contents = map({
|
|
3361
|
+
$metadata: deserializeMetadata(output),
|
|
3362
|
+
});
|
|
3363
|
+
await collectBody(output.body, context);
|
|
3364
|
+
return contents;
|
|
3365
|
+
};
|
|
3366
|
+
const de_DeleteTestSetCommandError = async (output, context) => {
|
|
3367
|
+
const parsedOutput = {
|
|
3368
|
+
...output,
|
|
3369
|
+
body: await parseErrorBody(output.body, context),
|
|
3370
|
+
};
|
|
3371
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3372
|
+
switch (errorCode) {
|
|
3373
|
+
case "ConflictException":
|
|
3374
|
+
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
3375
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3376
|
+
case "InternalServerException":
|
|
3377
|
+
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
3378
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3379
|
+
case "PreconditionFailedException":
|
|
3380
|
+
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
3381
|
+
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
3382
|
+
case "ServiceQuotaExceededException":
|
|
3383
|
+
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
3384
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3385
|
+
case "ThrottlingException":
|
|
3386
|
+
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
3387
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3388
|
+
case "ValidationException":
|
|
3389
|
+
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
3390
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3391
|
+
default:
|
|
3392
|
+
const parsedBody = parsedOutput.body;
|
|
3393
|
+
return throwDefaultError({
|
|
3394
|
+
output,
|
|
3395
|
+
parsedBody,
|
|
3396
|
+
errorCode,
|
|
3397
|
+
});
|
|
3398
|
+
}
|
|
3399
|
+
};
|
|
3027
3400
|
export const de_DeleteUtterancesCommand = async (output, context) => {
|
|
3028
3401
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3029
3402
|
return de_DeleteUtterancesCommandError(output, context);
|
|
@@ -3709,30 +4082,30 @@ const de_DescribeSlotTypeCommandError = async (output, context) => {
|
|
|
3709
4082
|
});
|
|
3710
4083
|
}
|
|
3711
4084
|
};
|
|
3712
|
-
export const
|
|
4085
|
+
export const de_DescribeTestExecutionCommand = async (output, context) => {
|
|
3713
4086
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3714
|
-
return
|
|
4087
|
+
return de_DescribeTestExecutionCommandError(output, context);
|
|
3715
4088
|
}
|
|
3716
4089
|
const contents = map({
|
|
3717
4090
|
$metadata: deserializeMetadata(output),
|
|
3718
4091
|
});
|
|
3719
4092
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3720
4093
|
const doc = take(data, {
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
4094
|
+
apiMode: __expectString,
|
|
4095
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4096
|
+
failureReasons: _json,
|
|
4097
|
+
lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4098
|
+
target: _json,
|
|
4099
|
+
testExecutionId: __expectString,
|
|
4100
|
+
testExecutionModality: __expectString,
|
|
4101
|
+
testExecutionStatus: __expectString,
|
|
4102
|
+
testSetId: __expectString,
|
|
4103
|
+
testSetName: __expectString,
|
|
3731
4104
|
});
|
|
3732
4105
|
Object.assign(contents, doc);
|
|
3733
4106
|
return contents;
|
|
3734
4107
|
};
|
|
3735
|
-
const
|
|
4108
|
+
const de_DescribeTestExecutionCommandError = async (output, context) => {
|
|
3736
4109
|
const parsedOutput = {
|
|
3737
4110
|
...output,
|
|
3738
4111
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3742,9 +4115,12 @@ const de_ListAggregatedUtterancesCommandError = async (output, context) => {
|
|
|
3742
4115
|
case "InternalServerException":
|
|
3743
4116
|
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
3744
4117
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3745
|
-
case "
|
|
3746
|
-
case "com.amazonaws.lexmodelsv2#
|
|
3747
|
-
throw await
|
|
4118
|
+
case "ResourceNotFoundException":
|
|
4119
|
+
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
4120
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4121
|
+
case "ServiceQuotaExceededException":
|
|
4122
|
+
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
4123
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3748
4124
|
case "ThrottlingException":
|
|
3749
4125
|
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
3750
4126
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -3760,23 +4136,30 @@ const de_ListAggregatedUtterancesCommandError = async (output, context) => {
|
|
|
3760
4136
|
});
|
|
3761
4137
|
}
|
|
3762
4138
|
};
|
|
3763
|
-
export const
|
|
4139
|
+
export const de_DescribeTestSetCommand = async (output, context) => {
|
|
3764
4140
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3765
|
-
return
|
|
4141
|
+
return de_DescribeTestSetCommandError(output, context);
|
|
3766
4142
|
}
|
|
3767
4143
|
const contents = map({
|
|
3768
4144
|
$metadata: deserializeMetadata(output),
|
|
3769
4145
|
});
|
|
3770
4146
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3771
4147
|
const doc = take(data, {
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
4148
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4149
|
+
description: __expectString,
|
|
4150
|
+
lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4151
|
+
modality: __expectString,
|
|
4152
|
+
numTurns: __expectInt32,
|
|
4153
|
+
roleArn: __expectString,
|
|
4154
|
+
status: __expectString,
|
|
4155
|
+
storageLocation: _json,
|
|
4156
|
+
testSetId: __expectString,
|
|
4157
|
+
testSetName: __expectString,
|
|
3775
4158
|
});
|
|
3776
4159
|
Object.assign(contents, doc);
|
|
3777
4160
|
return contents;
|
|
3778
4161
|
};
|
|
3779
|
-
const
|
|
4162
|
+
const de_DescribeTestSetCommandError = async (output, context) => {
|
|
3780
4163
|
const parsedOutput = {
|
|
3781
4164
|
...output,
|
|
3782
4165
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3786,6 +4169,9 @@ const de_ListBotAliasesCommandError = async (output, context) => {
|
|
|
3786
4169
|
case "InternalServerException":
|
|
3787
4170
|
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
3788
4171
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4172
|
+
case "ResourceNotFoundException":
|
|
4173
|
+
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
4174
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3789
4175
|
case "ServiceQuotaExceededException":
|
|
3790
4176
|
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
3791
4177
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
@@ -3804,24 +4190,29 @@ const de_ListBotAliasesCommandError = async (output, context) => {
|
|
|
3804
4190
|
});
|
|
3805
4191
|
}
|
|
3806
4192
|
};
|
|
3807
|
-
export const
|
|
4193
|
+
export const de_DescribeTestSetDiscrepancyReportCommand = async (output, context) => {
|
|
3808
4194
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3809
|
-
return
|
|
4195
|
+
return de_DescribeTestSetDiscrepancyReportCommandError(output, context);
|
|
3810
4196
|
}
|
|
3811
4197
|
const contents = map({
|
|
3812
4198
|
$metadata: deserializeMetadata(output),
|
|
3813
4199
|
});
|
|
3814
4200
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3815
4201
|
const doc = take(data, {
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
4202
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4203
|
+
failureReasons: _json,
|
|
4204
|
+
lastUpdatedDataTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4205
|
+
target: _json,
|
|
4206
|
+
testSetDiscrepancyRawOutputUrl: __expectString,
|
|
4207
|
+
testSetDiscrepancyReportId: __expectString,
|
|
4208
|
+
testSetDiscrepancyReportStatus: __expectString,
|
|
4209
|
+
testSetDiscrepancyTopErrors: _json,
|
|
4210
|
+
testSetId: __expectString,
|
|
3820
4211
|
});
|
|
3821
4212
|
Object.assign(contents, doc);
|
|
3822
4213
|
return contents;
|
|
3823
4214
|
};
|
|
3824
|
-
const
|
|
4215
|
+
const de_DescribeTestSetDiscrepancyReportCommandError = async (output, context) => {
|
|
3825
4216
|
const parsedOutput = {
|
|
3826
4217
|
...output,
|
|
3827
4218
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3831,6 +4222,9 @@ const de_ListBotLocalesCommandError = async (output, context) => {
|
|
|
3831
4222
|
case "InternalServerException":
|
|
3832
4223
|
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
3833
4224
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4225
|
+
case "ResourceNotFoundException":
|
|
4226
|
+
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
4227
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3834
4228
|
case "ServiceQuotaExceededException":
|
|
3835
4229
|
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
3836
4230
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
@@ -3849,25 +4243,31 @@ const de_ListBotLocalesCommandError = async (output, context) => {
|
|
|
3849
4243
|
});
|
|
3850
4244
|
}
|
|
3851
4245
|
};
|
|
3852
|
-
export const
|
|
4246
|
+
export const de_DescribeTestSetGenerationCommand = async (output, context) => {
|
|
3853
4247
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3854
|
-
return
|
|
4248
|
+
return de_DescribeTestSetGenerationCommandError(output, context);
|
|
3855
4249
|
}
|
|
3856
4250
|
const contents = map({
|
|
3857
4251
|
$metadata: deserializeMetadata(output),
|
|
3858
4252
|
});
|
|
3859
4253
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3860
4254
|
const doc = take(data, {
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
4255
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4256
|
+
description: __expectString,
|
|
4257
|
+
failureReasons: _json,
|
|
4258
|
+
generationDataSource: (_) => de_TestSetGenerationDataSource(_, context),
|
|
4259
|
+
lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4260
|
+
roleArn: __expectString,
|
|
4261
|
+
storageLocation: _json,
|
|
4262
|
+
testSetGenerationId: __expectString,
|
|
4263
|
+
testSetGenerationStatus: __expectString,
|
|
4264
|
+
testSetId: __expectString,
|
|
4265
|
+
testSetName: __expectString,
|
|
3866
4266
|
});
|
|
3867
4267
|
Object.assign(contents, doc);
|
|
3868
4268
|
return contents;
|
|
3869
4269
|
};
|
|
3870
|
-
const
|
|
4270
|
+
const de_DescribeTestSetGenerationCommandError = async (output, context) => {
|
|
3871
4271
|
const parsedOutput = {
|
|
3872
4272
|
...output,
|
|
3873
4273
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3880,6 +4280,9 @@ const de_ListBotRecommendationsCommandError = async (output, context) => {
|
|
|
3880
4280
|
case "ResourceNotFoundException":
|
|
3881
4281
|
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
3882
4282
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4283
|
+
case "ServiceQuotaExceededException":
|
|
4284
|
+
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
4285
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3883
4286
|
case "ThrottlingException":
|
|
3884
4287
|
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
3885
4288
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -3895,22 +4298,22 @@ const de_ListBotRecommendationsCommandError = async (output, context) => {
|
|
|
3895
4298
|
});
|
|
3896
4299
|
}
|
|
3897
4300
|
};
|
|
3898
|
-
export const
|
|
4301
|
+
export const de_GetTestExecutionArtifactsUrlCommand = async (output, context) => {
|
|
3899
4302
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3900
|
-
return
|
|
4303
|
+
return de_GetTestExecutionArtifactsUrlCommandError(output, context);
|
|
3901
4304
|
}
|
|
3902
4305
|
const contents = map({
|
|
3903
4306
|
$metadata: deserializeMetadata(output),
|
|
3904
4307
|
});
|
|
3905
4308
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3906
4309
|
const doc = take(data, {
|
|
3907
|
-
|
|
3908
|
-
|
|
4310
|
+
downloadArtifactsUrl: __expectString,
|
|
4311
|
+
testExecutionId: __expectString,
|
|
3909
4312
|
});
|
|
3910
4313
|
Object.assign(contents, doc);
|
|
3911
4314
|
return contents;
|
|
3912
4315
|
};
|
|
3913
|
-
const
|
|
4316
|
+
const de_GetTestExecutionArtifactsUrlCommandError = async (output, context) => {
|
|
3914
4317
|
const parsedOutput = {
|
|
3915
4318
|
...output,
|
|
3916
4319
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3920,6 +4323,9 @@ const de_ListBotsCommandError = async (output, context) => {
|
|
|
3920
4323
|
case "InternalServerException":
|
|
3921
4324
|
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
3922
4325
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4326
|
+
case "ResourceNotFoundException":
|
|
4327
|
+
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
4328
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3923
4329
|
case "ServiceQuotaExceededException":
|
|
3924
4330
|
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
3925
4331
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
@@ -3938,23 +4344,30 @@ const de_ListBotsCommandError = async (output, context) => {
|
|
|
3938
4344
|
});
|
|
3939
4345
|
}
|
|
3940
4346
|
};
|
|
3941
|
-
export const
|
|
4347
|
+
export const de_ListAggregatedUtterancesCommand = async (output, context) => {
|
|
3942
4348
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3943
|
-
return
|
|
4349
|
+
return de_ListAggregatedUtterancesCommandError(output, context);
|
|
3944
4350
|
}
|
|
3945
4351
|
const contents = map({
|
|
3946
4352
|
$metadata: deserializeMetadata(output),
|
|
3947
4353
|
});
|
|
3948
4354
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3949
4355
|
const doc = take(data, {
|
|
4356
|
+
aggregatedUtterancesSummaries: (_) => de_AggregatedUtterancesSummaryList(_, context),
|
|
4357
|
+
aggregationDuration: _json,
|
|
4358
|
+
aggregationLastRefreshedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4359
|
+
aggregationWindowEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4360
|
+
aggregationWindowStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4361
|
+
botAliasId: __expectString,
|
|
3950
4362
|
botId: __expectString,
|
|
3951
|
-
|
|
4363
|
+
botVersion: __expectString,
|
|
4364
|
+
localeId: __expectString,
|
|
3952
4365
|
nextToken: __expectString,
|
|
3953
4366
|
});
|
|
3954
4367
|
Object.assign(contents, doc);
|
|
3955
4368
|
return contents;
|
|
3956
4369
|
};
|
|
3957
|
-
const
|
|
4370
|
+
const de_ListAggregatedUtterancesCommandError = async (output, context) => {
|
|
3958
4371
|
const parsedOutput = {
|
|
3959
4372
|
...output,
|
|
3960
4373
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3964,9 +4377,9 @@ const de_ListBotVersionsCommandError = async (output, context) => {
|
|
|
3964
4377
|
case "InternalServerException":
|
|
3965
4378
|
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
3966
4379
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3967
|
-
case "
|
|
3968
|
-
case "com.amazonaws.lexmodelsv2#
|
|
3969
|
-
throw await
|
|
4380
|
+
case "PreconditionFailedException":
|
|
4381
|
+
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
4382
|
+
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
3970
4383
|
case "ThrottlingException":
|
|
3971
4384
|
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
3972
4385
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -3982,23 +4395,23 @@ const de_ListBotVersionsCommandError = async (output, context) => {
|
|
|
3982
4395
|
});
|
|
3983
4396
|
}
|
|
3984
4397
|
};
|
|
3985
|
-
export const
|
|
4398
|
+
export const de_ListBotAliasesCommand = async (output, context) => {
|
|
3986
4399
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3987
|
-
return
|
|
4400
|
+
return de_ListBotAliasesCommandError(output, context);
|
|
3988
4401
|
}
|
|
3989
4402
|
const contents = map({
|
|
3990
4403
|
$metadata: deserializeMetadata(output),
|
|
3991
4404
|
});
|
|
3992
4405
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3993
4406
|
const doc = take(data, {
|
|
3994
|
-
|
|
3995
|
-
|
|
4407
|
+
botAliasSummaries: (_) => de_BotAliasSummaryList(_, context),
|
|
4408
|
+
botId: __expectString,
|
|
3996
4409
|
nextToken: __expectString,
|
|
3997
4410
|
});
|
|
3998
4411
|
Object.assign(contents, doc);
|
|
3999
4412
|
return contents;
|
|
4000
4413
|
};
|
|
4001
|
-
const
|
|
4414
|
+
const de_ListBotAliasesCommandError = async (output, context) => {
|
|
4002
4415
|
const parsedOutput = {
|
|
4003
4416
|
...output,
|
|
4004
4417
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4026,23 +4439,24 @@ const de_ListBuiltInIntentsCommandError = async (output, context) => {
|
|
|
4026
4439
|
});
|
|
4027
4440
|
}
|
|
4028
4441
|
};
|
|
4029
|
-
export const
|
|
4442
|
+
export const de_ListBotLocalesCommand = async (output, context) => {
|
|
4030
4443
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4031
|
-
return
|
|
4444
|
+
return de_ListBotLocalesCommandError(output, context);
|
|
4032
4445
|
}
|
|
4033
4446
|
const contents = map({
|
|
4034
4447
|
$metadata: deserializeMetadata(output),
|
|
4035
4448
|
});
|
|
4036
4449
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4037
4450
|
const doc = take(data, {
|
|
4038
|
-
|
|
4039
|
-
|
|
4451
|
+
botId: __expectString,
|
|
4452
|
+
botLocaleSummaries: (_) => de_BotLocaleSummaryList(_, context),
|
|
4453
|
+
botVersion: __expectString,
|
|
4040
4454
|
nextToken: __expectString,
|
|
4041
4455
|
});
|
|
4042
4456
|
Object.assign(contents, doc);
|
|
4043
4457
|
return contents;
|
|
4044
4458
|
};
|
|
4045
|
-
const
|
|
4459
|
+
const de_ListBotLocalesCommandError = async (output, context) => {
|
|
4046
4460
|
const parsedOutput = {
|
|
4047
4461
|
...output,
|
|
4048
4462
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4070,9 +4484,9 @@ const de_ListBuiltInSlotTypesCommandError = async (output, context) => {
|
|
|
4070
4484
|
});
|
|
4071
4485
|
}
|
|
4072
4486
|
};
|
|
4073
|
-
export const
|
|
4487
|
+
export const de_ListBotRecommendationsCommand = async (output, context) => {
|
|
4074
4488
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4075
|
-
return
|
|
4489
|
+
return de_ListBotRecommendationsCommandError(output, context);
|
|
4076
4490
|
}
|
|
4077
4491
|
const contents = map({
|
|
4078
4492
|
$metadata: deserializeMetadata(output),
|
|
@@ -4080,15 +4494,15 @@ export const de_ListCustomVocabularyItemsCommand = async (output, context) => {
|
|
|
4080
4494
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4081
4495
|
const doc = take(data, {
|
|
4082
4496
|
botId: __expectString,
|
|
4497
|
+
botRecommendationSummaries: (_) => de_BotRecommendationSummaryList(_, context),
|
|
4083
4498
|
botVersion: __expectString,
|
|
4084
|
-
customVocabularyItems: _json,
|
|
4085
4499
|
localeId: __expectString,
|
|
4086
4500
|
nextToken: __expectString,
|
|
4087
4501
|
});
|
|
4088
4502
|
Object.assign(contents, doc);
|
|
4089
4503
|
return contents;
|
|
4090
4504
|
};
|
|
4091
|
-
const
|
|
4505
|
+
const de_ListBotRecommendationsCommandError = async (output, context) => {
|
|
4092
4506
|
const parsedOutput = {
|
|
4093
4507
|
...output,
|
|
4094
4508
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4101,9 +4515,6 @@ const de_ListCustomVocabularyItemsCommandError = async (output, context) => {
|
|
|
4101
4515
|
case "ResourceNotFoundException":
|
|
4102
4516
|
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
4103
4517
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4104
|
-
case "ServiceQuotaExceededException":
|
|
4105
|
-
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
4106
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4107
4518
|
case "ThrottlingException":
|
|
4108
4519
|
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4109
4520
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -4119,25 +4530,22 @@ const de_ListCustomVocabularyItemsCommandError = async (output, context) => {
|
|
|
4119
4530
|
});
|
|
4120
4531
|
}
|
|
4121
4532
|
};
|
|
4122
|
-
export const
|
|
4533
|
+
export const de_ListBotsCommand = async (output, context) => {
|
|
4123
4534
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4124
|
-
return
|
|
4535
|
+
return de_ListBotsCommandError(output, context);
|
|
4125
4536
|
}
|
|
4126
4537
|
const contents = map({
|
|
4127
4538
|
$metadata: deserializeMetadata(output),
|
|
4128
4539
|
});
|
|
4129
4540
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4130
4541
|
const doc = take(data, {
|
|
4131
|
-
|
|
4132
|
-
botVersion: __expectString,
|
|
4133
|
-
exportSummaries: (_) => de_ExportSummaryList(_, context),
|
|
4134
|
-
localeId: __expectString,
|
|
4542
|
+
botSummaries: (_) => de_BotSummaryList(_, context),
|
|
4135
4543
|
nextToken: __expectString,
|
|
4136
4544
|
});
|
|
4137
4545
|
Object.assign(contents, doc);
|
|
4138
4546
|
return contents;
|
|
4139
4547
|
};
|
|
4140
|
-
const
|
|
4548
|
+
const de_ListBotsCommandError = async (output, context) => {
|
|
4141
4549
|
const parsedOutput = {
|
|
4142
4550
|
...output,
|
|
4143
4551
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4147,6 +4555,9 @@ const de_ListExportsCommandError = async (output, context) => {
|
|
|
4147
4555
|
case "InternalServerException":
|
|
4148
4556
|
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4149
4557
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4558
|
+
case "ServiceQuotaExceededException":
|
|
4559
|
+
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
4560
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4150
4561
|
case "ThrottlingException":
|
|
4151
4562
|
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4152
4563
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -4162,9 +4573,9 @@ const de_ListExportsCommandError = async (output, context) => {
|
|
|
4162
4573
|
});
|
|
4163
4574
|
}
|
|
4164
4575
|
};
|
|
4165
|
-
export const
|
|
4576
|
+
export const de_ListBotVersionsCommand = async (output, context) => {
|
|
4166
4577
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4167
|
-
return
|
|
4578
|
+
return de_ListBotVersionsCommandError(output, context);
|
|
4168
4579
|
}
|
|
4169
4580
|
const contents = map({
|
|
4170
4581
|
$metadata: deserializeMetadata(output),
|
|
@@ -4172,15 +4583,13 @@ export const de_ListImportsCommand = async (output, context) => {
|
|
|
4172
4583
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4173
4584
|
const doc = take(data, {
|
|
4174
4585
|
botId: __expectString,
|
|
4175
|
-
|
|
4176
|
-
importSummaries: (_) => de_ImportSummaryList(_, context),
|
|
4177
|
-
localeId: __expectString,
|
|
4586
|
+
botVersionSummaries: (_) => de_BotVersionSummaryList(_, context),
|
|
4178
4587
|
nextToken: __expectString,
|
|
4179
4588
|
});
|
|
4180
4589
|
Object.assign(contents, doc);
|
|
4181
4590
|
return contents;
|
|
4182
4591
|
};
|
|
4183
|
-
const
|
|
4592
|
+
const de_ListBotVersionsCommandError = async (output, context) => {
|
|
4184
4593
|
const parsedOutput = {
|
|
4185
4594
|
...output,
|
|
4186
4595
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4190,6 +4599,9 @@ const de_ListImportsCommandError = async (output, context) => {
|
|
|
4190
4599
|
case "InternalServerException":
|
|
4191
4600
|
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4192
4601
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4602
|
+
case "ServiceQuotaExceededException":
|
|
4603
|
+
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
4604
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4193
4605
|
case "ThrottlingException":
|
|
4194
4606
|
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4195
4607
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -4205,25 +4617,23 @@ const de_ListImportsCommandError = async (output, context) => {
|
|
|
4205
4617
|
});
|
|
4206
4618
|
}
|
|
4207
4619
|
};
|
|
4208
|
-
export const
|
|
4620
|
+
export const de_ListBuiltInIntentsCommand = async (output, context) => {
|
|
4209
4621
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4210
|
-
return
|
|
4622
|
+
return de_ListBuiltInIntentsCommandError(output, context);
|
|
4211
4623
|
}
|
|
4212
4624
|
const contents = map({
|
|
4213
4625
|
$metadata: deserializeMetadata(output),
|
|
4214
4626
|
});
|
|
4215
4627
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4216
4628
|
const doc = take(data, {
|
|
4217
|
-
|
|
4218
|
-
botVersion: __expectString,
|
|
4219
|
-
intentSummaries: (_) => de_IntentSummaryList(_, context),
|
|
4629
|
+
builtInIntentSummaries: _json,
|
|
4220
4630
|
localeId: __expectString,
|
|
4221
4631
|
nextToken: __expectString,
|
|
4222
4632
|
});
|
|
4223
4633
|
Object.assign(contents, doc);
|
|
4224
4634
|
return contents;
|
|
4225
4635
|
};
|
|
4226
|
-
const
|
|
4636
|
+
const de_ListBuiltInIntentsCommandError = async (output, context) => {
|
|
4227
4637
|
const parsedOutput = {
|
|
4228
4638
|
...output,
|
|
4229
4639
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4251,7 +4661,232 @@ const de_ListIntentsCommandError = async (output, context) => {
|
|
|
4251
4661
|
});
|
|
4252
4662
|
}
|
|
4253
4663
|
};
|
|
4254
|
-
export const
|
|
4664
|
+
export const de_ListBuiltInSlotTypesCommand = async (output, context) => {
|
|
4665
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4666
|
+
return de_ListBuiltInSlotTypesCommandError(output, context);
|
|
4667
|
+
}
|
|
4668
|
+
const contents = map({
|
|
4669
|
+
$metadata: deserializeMetadata(output),
|
|
4670
|
+
});
|
|
4671
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4672
|
+
const doc = take(data, {
|
|
4673
|
+
builtInSlotTypeSummaries: _json,
|
|
4674
|
+
localeId: __expectString,
|
|
4675
|
+
nextToken: __expectString,
|
|
4676
|
+
});
|
|
4677
|
+
Object.assign(contents, doc);
|
|
4678
|
+
return contents;
|
|
4679
|
+
};
|
|
4680
|
+
const de_ListBuiltInSlotTypesCommandError = async (output, context) => {
|
|
4681
|
+
const parsedOutput = {
|
|
4682
|
+
...output,
|
|
4683
|
+
body: await parseErrorBody(output.body, context),
|
|
4684
|
+
};
|
|
4685
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4686
|
+
switch (errorCode) {
|
|
4687
|
+
case "InternalServerException":
|
|
4688
|
+
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4689
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4690
|
+
case "ServiceQuotaExceededException":
|
|
4691
|
+
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
4692
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4693
|
+
case "ThrottlingException":
|
|
4694
|
+
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4695
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4696
|
+
case "ValidationException":
|
|
4697
|
+
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
4698
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4699
|
+
default:
|
|
4700
|
+
const parsedBody = parsedOutput.body;
|
|
4701
|
+
return throwDefaultError({
|
|
4702
|
+
output,
|
|
4703
|
+
parsedBody,
|
|
4704
|
+
errorCode,
|
|
4705
|
+
});
|
|
4706
|
+
}
|
|
4707
|
+
};
|
|
4708
|
+
export const de_ListCustomVocabularyItemsCommand = async (output, context) => {
|
|
4709
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4710
|
+
return de_ListCustomVocabularyItemsCommandError(output, context);
|
|
4711
|
+
}
|
|
4712
|
+
const contents = map({
|
|
4713
|
+
$metadata: deserializeMetadata(output),
|
|
4714
|
+
});
|
|
4715
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4716
|
+
const doc = take(data, {
|
|
4717
|
+
botId: __expectString,
|
|
4718
|
+
botVersion: __expectString,
|
|
4719
|
+
customVocabularyItems: _json,
|
|
4720
|
+
localeId: __expectString,
|
|
4721
|
+
nextToken: __expectString,
|
|
4722
|
+
});
|
|
4723
|
+
Object.assign(contents, doc);
|
|
4724
|
+
return contents;
|
|
4725
|
+
};
|
|
4726
|
+
const de_ListCustomVocabularyItemsCommandError = async (output, context) => {
|
|
4727
|
+
const parsedOutput = {
|
|
4728
|
+
...output,
|
|
4729
|
+
body: await parseErrorBody(output.body, context),
|
|
4730
|
+
};
|
|
4731
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4732
|
+
switch (errorCode) {
|
|
4733
|
+
case "InternalServerException":
|
|
4734
|
+
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4735
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4736
|
+
case "ResourceNotFoundException":
|
|
4737
|
+
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
4738
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4739
|
+
case "ServiceQuotaExceededException":
|
|
4740
|
+
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
4741
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4742
|
+
case "ThrottlingException":
|
|
4743
|
+
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4744
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4745
|
+
case "ValidationException":
|
|
4746
|
+
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
4747
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4748
|
+
default:
|
|
4749
|
+
const parsedBody = parsedOutput.body;
|
|
4750
|
+
return throwDefaultError({
|
|
4751
|
+
output,
|
|
4752
|
+
parsedBody,
|
|
4753
|
+
errorCode,
|
|
4754
|
+
});
|
|
4755
|
+
}
|
|
4756
|
+
};
|
|
4757
|
+
export const de_ListExportsCommand = async (output, context) => {
|
|
4758
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4759
|
+
return de_ListExportsCommandError(output, context);
|
|
4760
|
+
}
|
|
4761
|
+
const contents = map({
|
|
4762
|
+
$metadata: deserializeMetadata(output),
|
|
4763
|
+
});
|
|
4764
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4765
|
+
const doc = take(data, {
|
|
4766
|
+
botId: __expectString,
|
|
4767
|
+
botVersion: __expectString,
|
|
4768
|
+
exportSummaries: (_) => de_ExportSummaryList(_, context),
|
|
4769
|
+
localeId: __expectString,
|
|
4770
|
+
nextToken: __expectString,
|
|
4771
|
+
});
|
|
4772
|
+
Object.assign(contents, doc);
|
|
4773
|
+
return contents;
|
|
4774
|
+
};
|
|
4775
|
+
const de_ListExportsCommandError = async (output, context) => {
|
|
4776
|
+
const parsedOutput = {
|
|
4777
|
+
...output,
|
|
4778
|
+
body: await parseErrorBody(output.body, context),
|
|
4779
|
+
};
|
|
4780
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4781
|
+
switch (errorCode) {
|
|
4782
|
+
case "InternalServerException":
|
|
4783
|
+
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4784
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4785
|
+
case "ThrottlingException":
|
|
4786
|
+
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4787
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4788
|
+
case "ValidationException":
|
|
4789
|
+
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
4790
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4791
|
+
default:
|
|
4792
|
+
const parsedBody = parsedOutput.body;
|
|
4793
|
+
return throwDefaultError({
|
|
4794
|
+
output,
|
|
4795
|
+
parsedBody,
|
|
4796
|
+
errorCode,
|
|
4797
|
+
});
|
|
4798
|
+
}
|
|
4799
|
+
};
|
|
4800
|
+
export const de_ListImportsCommand = async (output, context) => {
|
|
4801
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4802
|
+
return de_ListImportsCommandError(output, context);
|
|
4803
|
+
}
|
|
4804
|
+
const contents = map({
|
|
4805
|
+
$metadata: deserializeMetadata(output),
|
|
4806
|
+
});
|
|
4807
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4808
|
+
const doc = take(data, {
|
|
4809
|
+
botId: __expectString,
|
|
4810
|
+
botVersion: __expectString,
|
|
4811
|
+
importSummaries: (_) => de_ImportSummaryList(_, context),
|
|
4812
|
+
localeId: __expectString,
|
|
4813
|
+
nextToken: __expectString,
|
|
4814
|
+
});
|
|
4815
|
+
Object.assign(contents, doc);
|
|
4816
|
+
return contents;
|
|
4817
|
+
};
|
|
4818
|
+
const de_ListImportsCommandError = async (output, context) => {
|
|
4819
|
+
const parsedOutput = {
|
|
4820
|
+
...output,
|
|
4821
|
+
body: await parseErrorBody(output.body, context),
|
|
4822
|
+
};
|
|
4823
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4824
|
+
switch (errorCode) {
|
|
4825
|
+
case "InternalServerException":
|
|
4826
|
+
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4827
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4828
|
+
case "ThrottlingException":
|
|
4829
|
+
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4830
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4831
|
+
case "ValidationException":
|
|
4832
|
+
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
4833
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4834
|
+
default:
|
|
4835
|
+
const parsedBody = parsedOutput.body;
|
|
4836
|
+
return throwDefaultError({
|
|
4837
|
+
output,
|
|
4838
|
+
parsedBody,
|
|
4839
|
+
errorCode,
|
|
4840
|
+
});
|
|
4841
|
+
}
|
|
4842
|
+
};
|
|
4843
|
+
export const de_ListIntentsCommand = async (output, context) => {
|
|
4844
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4845
|
+
return de_ListIntentsCommandError(output, context);
|
|
4846
|
+
}
|
|
4847
|
+
const contents = map({
|
|
4848
|
+
$metadata: deserializeMetadata(output),
|
|
4849
|
+
});
|
|
4850
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4851
|
+
const doc = take(data, {
|
|
4852
|
+
botId: __expectString,
|
|
4853
|
+
botVersion: __expectString,
|
|
4854
|
+
intentSummaries: (_) => de_IntentSummaryList(_, context),
|
|
4855
|
+
localeId: __expectString,
|
|
4856
|
+
nextToken: __expectString,
|
|
4857
|
+
});
|
|
4858
|
+
Object.assign(contents, doc);
|
|
4859
|
+
return contents;
|
|
4860
|
+
};
|
|
4861
|
+
const de_ListIntentsCommandError = async (output, context) => {
|
|
4862
|
+
const parsedOutput = {
|
|
4863
|
+
...output,
|
|
4864
|
+
body: await parseErrorBody(output.body, context),
|
|
4865
|
+
};
|
|
4866
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4867
|
+
switch (errorCode) {
|
|
4868
|
+
case "InternalServerException":
|
|
4869
|
+
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4870
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4871
|
+
case "ServiceQuotaExceededException":
|
|
4872
|
+
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
4873
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4874
|
+
case "ThrottlingException":
|
|
4875
|
+
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4876
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4877
|
+
case "ValidationException":
|
|
4878
|
+
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
4879
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4880
|
+
default:
|
|
4881
|
+
const parsedBody = parsedOutput.body;
|
|
4882
|
+
return throwDefaultError({
|
|
4883
|
+
output,
|
|
4884
|
+
parsedBody,
|
|
4885
|
+
errorCode,
|
|
4886
|
+
});
|
|
4887
|
+
}
|
|
4888
|
+
};
|
|
4889
|
+
export const de_ListRecommendedIntentsCommand = async (output, context) => {
|
|
4255
4890
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4256
4891
|
return de_ListRecommendedIntentsCommandError(output, context);
|
|
4257
4892
|
}
|
|
@@ -4366,7 +5001,275 @@ export const de_ListSlotTypesCommand = async (output, context) => {
|
|
|
4366
5001
|
Object.assign(contents, doc);
|
|
4367
5002
|
return contents;
|
|
4368
5003
|
};
|
|
4369
|
-
const de_ListSlotTypesCommandError = async (output, context) => {
|
|
5004
|
+
const de_ListSlotTypesCommandError = async (output, context) => {
|
|
5005
|
+
const parsedOutput = {
|
|
5006
|
+
...output,
|
|
5007
|
+
body: await parseErrorBody(output.body, context),
|
|
5008
|
+
};
|
|
5009
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5010
|
+
switch (errorCode) {
|
|
5011
|
+
case "InternalServerException":
|
|
5012
|
+
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5013
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5014
|
+
case "ServiceQuotaExceededException":
|
|
5015
|
+
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5016
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5017
|
+
case "ThrottlingException":
|
|
5018
|
+
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5019
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5020
|
+
case "ValidationException":
|
|
5021
|
+
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5022
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5023
|
+
default:
|
|
5024
|
+
const parsedBody = parsedOutput.body;
|
|
5025
|
+
return throwDefaultError({
|
|
5026
|
+
output,
|
|
5027
|
+
parsedBody,
|
|
5028
|
+
errorCode,
|
|
5029
|
+
});
|
|
5030
|
+
}
|
|
5031
|
+
};
|
|
5032
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
5033
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5034
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
5035
|
+
}
|
|
5036
|
+
const contents = map({
|
|
5037
|
+
$metadata: deserializeMetadata(output),
|
|
5038
|
+
});
|
|
5039
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5040
|
+
const doc = take(data, {
|
|
5041
|
+
tags: _json,
|
|
5042
|
+
});
|
|
5043
|
+
Object.assign(contents, doc);
|
|
5044
|
+
return contents;
|
|
5045
|
+
};
|
|
5046
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
5047
|
+
const parsedOutput = {
|
|
5048
|
+
...output,
|
|
5049
|
+
body: await parseErrorBody(output.body, context),
|
|
5050
|
+
};
|
|
5051
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5052
|
+
switch (errorCode) {
|
|
5053
|
+
case "InternalServerException":
|
|
5054
|
+
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5055
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5056
|
+
case "ResourceNotFoundException":
|
|
5057
|
+
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
5058
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5059
|
+
case "ThrottlingException":
|
|
5060
|
+
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5061
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5062
|
+
case "ValidationException":
|
|
5063
|
+
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5064
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5065
|
+
default:
|
|
5066
|
+
const parsedBody = parsedOutput.body;
|
|
5067
|
+
return throwDefaultError({
|
|
5068
|
+
output,
|
|
5069
|
+
parsedBody,
|
|
5070
|
+
errorCode,
|
|
5071
|
+
});
|
|
5072
|
+
}
|
|
5073
|
+
};
|
|
5074
|
+
export const de_ListTestExecutionResultItemsCommand = async (output, context) => {
|
|
5075
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5076
|
+
return de_ListTestExecutionResultItemsCommandError(output, context);
|
|
5077
|
+
}
|
|
5078
|
+
const contents = map({
|
|
5079
|
+
$metadata: deserializeMetadata(output),
|
|
5080
|
+
});
|
|
5081
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5082
|
+
const doc = take(data, {
|
|
5083
|
+
nextToken: __expectString,
|
|
5084
|
+
testExecutionResults: (_) => de_TestExecutionResultItems(_, context),
|
|
5085
|
+
});
|
|
5086
|
+
Object.assign(contents, doc);
|
|
5087
|
+
return contents;
|
|
5088
|
+
};
|
|
5089
|
+
const de_ListTestExecutionResultItemsCommandError = async (output, context) => {
|
|
5090
|
+
const parsedOutput = {
|
|
5091
|
+
...output,
|
|
5092
|
+
body: await parseErrorBody(output.body, context),
|
|
5093
|
+
};
|
|
5094
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5095
|
+
switch (errorCode) {
|
|
5096
|
+
case "InternalServerException":
|
|
5097
|
+
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5098
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5099
|
+
case "ResourceNotFoundException":
|
|
5100
|
+
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
5101
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5102
|
+
case "ServiceQuotaExceededException":
|
|
5103
|
+
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5104
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5105
|
+
case "ThrottlingException":
|
|
5106
|
+
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5107
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5108
|
+
case "ValidationException":
|
|
5109
|
+
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5110
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5111
|
+
default:
|
|
5112
|
+
const parsedBody = parsedOutput.body;
|
|
5113
|
+
return throwDefaultError({
|
|
5114
|
+
output,
|
|
5115
|
+
parsedBody,
|
|
5116
|
+
errorCode,
|
|
5117
|
+
});
|
|
5118
|
+
}
|
|
5119
|
+
};
|
|
5120
|
+
export const de_ListTestExecutionsCommand = async (output, context) => {
|
|
5121
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5122
|
+
return de_ListTestExecutionsCommandError(output, context);
|
|
5123
|
+
}
|
|
5124
|
+
const contents = map({
|
|
5125
|
+
$metadata: deserializeMetadata(output),
|
|
5126
|
+
});
|
|
5127
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5128
|
+
const doc = take(data, {
|
|
5129
|
+
nextToken: __expectString,
|
|
5130
|
+
testExecutions: (_) => de_TestExecutionSummaryList(_, context),
|
|
5131
|
+
});
|
|
5132
|
+
Object.assign(contents, doc);
|
|
5133
|
+
return contents;
|
|
5134
|
+
};
|
|
5135
|
+
const de_ListTestExecutionsCommandError = async (output, context) => {
|
|
5136
|
+
const parsedOutput = {
|
|
5137
|
+
...output,
|
|
5138
|
+
body: await parseErrorBody(output.body, context),
|
|
5139
|
+
};
|
|
5140
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5141
|
+
switch (errorCode) {
|
|
5142
|
+
case "InternalServerException":
|
|
5143
|
+
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5144
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5145
|
+
case "ServiceQuotaExceededException":
|
|
5146
|
+
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5147
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5148
|
+
case "ThrottlingException":
|
|
5149
|
+
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5150
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5151
|
+
case "ValidationException":
|
|
5152
|
+
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5153
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5154
|
+
default:
|
|
5155
|
+
const parsedBody = parsedOutput.body;
|
|
5156
|
+
return throwDefaultError({
|
|
5157
|
+
output,
|
|
5158
|
+
parsedBody,
|
|
5159
|
+
errorCode,
|
|
5160
|
+
});
|
|
5161
|
+
}
|
|
5162
|
+
};
|
|
5163
|
+
export const de_ListTestSetRecordsCommand = async (output, context) => {
|
|
5164
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5165
|
+
return de_ListTestSetRecordsCommandError(output, context);
|
|
5166
|
+
}
|
|
5167
|
+
const contents = map({
|
|
5168
|
+
$metadata: deserializeMetadata(output),
|
|
5169
|
+
});
|
|
5170
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5171
|
+
const doc = take(data, {
|
|
5172
|
+
nextToken: __expectString,
|
|
5173
|
+
testSetRecords: (_) => de_TestSetTurnRecordList(_, context),
|
|
5174
|
+
});
|
|
5175
|
+
Object.assign(contents, doc);
|
|
5176
|
+
return contents;
|
|
5177
|
+
};
|
|
5178
|
+
const de_ListTestSetRecordsCommandError = async (output, context) => {
|
|
5179
|
+
const parsedOutput = {
|
|
5180
|
+
...output,
|
|
5181
|
+
body: await parseErrorBody(output.body, context),
|
|
5182
|
+
};
|
|
5183
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5184
|
+
switch (errorCode) {
|
|
5185
|
+
case "InternalServerException":
|
|
5186
|
+
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5187
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5188
|
+
case "ResourceNotFoundException":
|
|
5189
|
+
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
5190
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5191
|
+
case "ServiceQuotaExceededException":
|
|
5192
|
+
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5193
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5194
|
+
case "ThrottlingException":
|
|
5195
|
+
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5196
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5197
|
+
case "ValidationException":
|
|
5198
|
+
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5199
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5200
|
+
default:
|
|
5201
|
+
const parsedBody = parsedOutput.body;
|
|
5202
|
+
return throwDefaultError({
|
|
5203
|
+
output,
|
|
5204
|
+
parsedBody,
|
|
5205
|
+
errorCode,
|
|
5206
|
+
});
|
|
5207
|
+
}
|
|
5208
|
+
};
|
|
5209
|
+
export const de_ListTestSetsCommand = async (output, context) => {
|
|
5210
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5211
|
+
return de_ListTestSetsCommandError(output, context);
|
|
5212
|
+
}
|
|
5213
|
+
const contents = map({
|
|
5214
|
+
$metadata: deserializeMetadata(output),
|
|
5215
|
+
});
|
|
5216
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5217
|
+
const doc = take(data, {
|
|
5218
|
+
nextToken: __expectString,
|
|
5219
|
+
testSets: (_) => de_TestSetSummaryList(_, context),
|
|
5220
|
+
});
|
|
5221
|
+
Object.assign(contents, doc);
|
|
5222
|
+
return contents;
|
|
5223
|
+
};
|
|
5224
|
+
const de_ListTestSetsCommandError = async (output, context) => {
|
|
5225
|
+
const parsedOutput = {
|
|
5226
|
+
...output,
|
|
5227
|
+
body: await parseErrorBody(output.body, context),
|
|
5228
|
+
};
|
|
5229
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5230
|
+
switch (errorCode) {
|
|
5231
|
+
case "InternalServerException":
|
|
5232
|
+
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5233
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5234
|
+
case "ServiceQuotaExceededException":
|
|
5235
|
+
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5236
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5237
|
+
case "ThrottlingException":
|
|
5238
|
+
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5239
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5240
|
+
case "ValidationException":
|
|
5241
|
+
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5242
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5243
|
+
default:
|
|
5244
|
+
const parsedBody = parsedOutput.body;
|
|
5245
|
+
return throwDefaultError({
|
|
5246
|
+
output,
|
|
5247
|
+
parsedBody,
|
|
5248
|
+
errorCode,
|
|
5249
|
+
});
|
|
5250
|
+
}
|
|
5251
|
+
};
|
|
5252
|
+
export const de_SearchAssociatedTranscriptsCommand = async (output, context) => {
|
|
5253
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5254
|
+
return de_SearchAssociatedTranscriptsCommandError(output, context);
|
|
5255
|
+
}
|
|
5256
|
+
const contents = map({
|
|
5257
|
+
$metadata: deserializeMetadata(output),
|
|
5258
|
+
});
|
|
5259
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5260
|
+
const doc = take(data, {
|
|
5261
|
+
associatedTranscripts: _json,
|
|
5262
|
+
botId: __expectString,
|
|
5263
|
+
botRecommendationId: __expectString,
|
|
5264
|
+
botVersion: __expectString,
|
|
5265
|
+
localeId: __expectString,
|
|
5266
|
+
nextIndex: __expectInt32,
|
|
5267
|
+
totalResults: __expectInt32,
|
|
5268
|
+
});
|
|
5269
|
+
Object.assign(contents, doc);
|
|
5270
|
+
return contents;
|
|
5271
|
+
};
|
|
5272
|
+
const de_SearchAssociatedTranscriptsCommandError = async (output, context) => {
|
|
4370
5273
|
const parsedOutput = {
|
|
4371
5274
|
...output,
|
|
4372
5275
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4376,6 +5279,9 @@ const de_ListSlotTypesCommandError = async (output, context) => {
|
|
|
4376
5279
|
case "InternalServerException":
|
|
4377
5280
|
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4378
5281
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5282
|
+
case "ResourceNotFoundException":
|
|
5283
|
+
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
5284
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4379
5285
|
case "ServiceQuotaExceededException":
|
|
4380
5286
|
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
4381
5287
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
@@ -4394,33 +5300,49 @@ const de_ListSlotTypesCommandError = async (output, context) => {
|
|
|
4394
5300
|
});
|
|
4395
5301
|
}
|
|
4396
5302
|
};
|
|
4397
|
-
export const
|
|
4398
|
-
if (output.statusCode !==
|
|
4399
|
-
return
|
|
5303
|
+
export const de_StartBotRecommendationCommand = async (output, context) => {
|
|
5304
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
5305
|
+
return de_StartBotRecommendationCommandError(output, context);
|
|
4400
5306
|
}
|
|
4401
5307
|
const contents = map({
|
|
4402
5308
|
$metadata: deserializeMetadata(output),
|
|
4403
5309
|
});
|
|
4404
5310
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4405
5311
|
const doc = take(data, {
|
|
4406
|
-
|
|
5312
|
+
botId: __expectString,
|
|
5313
|
+
botRecommendationId: __expectString,
|
|
5314
|
+
botRecommendationStatus: __expectString,
|
|
5315
|
+
botVersion: __expectString,
|
|
5316
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
5317
|
+
encryptionSetting: _json,
|
|
5318
|
+
localeId: __expectString,
|
|
5319
|
+
transcriptSourceSetting: (_) => de_TranscriptSourceSetting(_, context),
|
|
4407
5320
|
});
|
|
4408
5321
|
Object.assign(contents, doc);
|
|
4409
5322
|
return contents;
|
|
4410
5323
|
};
|
|
4411
|
-
const
|
|
5324
|
+
const de_StartBotRecommendationCommandError = async (output, context) => {
|
|
4412
5325
|
const parsedOutput = {
|
|
4413
5326
|
...output,
|
|
4414
5327
|
body: await parseErrorBody(output.body, context),
|
|
4415
5328
|
};
|
|
4416
5329
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4417
5330
|
switch (errorCode) {
|
|
5331
|
+
case "ConflictException":
|
|
5332
|
+
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
5333
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4418
5334
|
case "InternalServerException":
|
|
4419
5335
|
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4420
5336
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5337
|
+
case "PreconditionFailedException":
|
|
5338
|
+
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
5339
|
+
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
4421
5340
|
case "ResourceNotFoundException":
|
|
4422
5341
|
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
4423
5342
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5343
|
+
case "ServiceQuotaExceededException":
|
|
5344
|
+
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5345
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4424
5346
|
case "ThrottlingException":
|
|
4425
5347
|
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4426
5348
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -4436,33 +5358,34 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
4436
5358
|
});
|
|
4437
5359
|
}
|
|
4438
5360
|
};
|
|
4439
|
-
export const
|
|
4440
|
-
if (output.statusCode !==
|
|
4441
|
-
return
|
|
5361
|
+
export const de_StartImportCommand = async (output, context) => {
|
|
5362
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
5363
|
+
return de_StartImportCommandError(output, context);
|
|
4442
5364
|
}
|
|
4443
5365
|
const contents = map({
|
|
4444
5366
|
$metadata: deserializeMetadata(output),
|
|
4445
5367
|
});
|
|
4446
5368
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4447
5369
|
const doc = take(data, {
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
nextIndex: __expectInt32,
|
|
4454
|
-
totalResults: __expectInt32,
|
|
5370
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
5371
|
+
importId: __expectString,
|
|
5372
|
+
importStatus: __expectString,
|
|
5373
|
+
mergeStrategy: __expectString,
|
|
5374
|
+
resourceSpecification: (_) => de_ImportResourceSpecification(_, context),
|
|
4455
5375
|
});
|
|
4456
5376
|
Object.assign(contents, doc);
|
|
4457
5377
|
return contents;
|
|
4458
5378
|
};
|
|
4459
|
-
const
|
|
5379
|
+
const de_StartImportCommandError = async (output, context) => {
|
|
4460
5380
|
const parsedOutput = {
|
|
4461
5381
|
...output,
|
|
4462
5382
|
body: await parseErrorBody(output.body, context),
|
|
4463
5383
|
};
|
|
4464
5384
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4465
5385
|
switch (errorCode) {
|
|
5386
|
+
case "ConflictException":
|
|
5387
|
+
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
5388
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4466
5389
|
case "InternalServerException":
|
|
4467
5390
|
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4468
5391
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
@@ -4487,28 +5410,26 @@ const de_SearchAssociatedTranscriptsCommandError = async (output, context) => {
|
|
|
4487
5410
|
});
|
|
4488
5411
|
}
|
|
4489
5412
|
};
|
|
4490
|
-
export const
|
|
5413
|
+
export const de_StartTestExecutionCommand = async (output, context) => {
|
|
4491
5414
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
4492
|
-
return
|
|
5415
|
+
return de_StartTestExecutionCommandError(output, context);
|
|
4493
5416
|
}
|
|
4494
5417
|
const contents = map({
|
|
4495
5418
|
$metadata: deserializeMetadata(output),
|
|
4496
5419
|
});
|
|
4497
5420
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4498
5421
|
const doc = take(data, {
|
|
4499
|
-
|
|
4500
|
-
botRecommendationId: __expectString,
|
|
4501
|
-
botRecommendationStatus: __expectString,
|
|
4502
|
-
botVersion: __expectString,
|
|
5422
|
+
apiMode: __expectString,
|
|
4503
5423
|
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
5424
|
+
target: _json,
|
|
5425
|
+
testExecutionId: __expectString,
|
|
5426
|
+
testExecutionModality: __expectString,
|
|
5427
|
+
testSetId: __expectString,
|
|
4507
5428
|
});
|
|
4508
5429
|
Object.assign(contents, doc);
|
|
4509
5430
|
return contents;
|
|
4510
5431
|
};
|
|
4511
|
-
const
|
|
5432
|
+
const de_StartTestExecutionCommandError = async (output, context) => {
|
|
4512
5433
|
const parsedOutput = {
|
|
4513
5434
|
...output,
|
|
4514
5435
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4521,9 +5442,6 @@ const de_StartBotRecommendationCommandError = async (output, context) => {
|
|
|
4521
5442
|
case "InternalServerException":
|
|
4522
5443
|
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4523
5444
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4524
|
-
case "PreconditionFailedException":
|
|
4525
|
-
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
4526
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
4527
5445
|
case "ResourceNotFoundException":
|
|
4528
5446
|
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
4529
5447
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -4545,9 +5463,9 @@ const de_StartBotRecommendationCommandError = async (output, context) => {
|
|
|
4545
5463
|
});
|
|
4546
5464
|
}
|
|
4547
5465
|
};
|
|
4548
|
-
export const
|
|
5466
|
+
export const de_StartTestSetGenerationCommand = async (output, context) => {
|
|
4549
5467
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
4550
|
-
return
|
|
5468
|
+
return de_StartTestSetGenerationCommandError(output, context);
|
|
4551
5469
|
}
|
|
4552
5470
|
const contents = map({
|
|
4553
5471
|
$metadata: deserializeMetadata(output),
|
|
@@ -4555,15 +5473,19 @@ export const de_StartImportCommand = async (output, context) => {
|
|
|
4555
5473
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4556
5474
|
const doc = take(data, {
|
|
4557
5475
|
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
5476
|
+
description: __expectString,
|
|
5477
|
+
generationDataSource: (_) => de_TestSetGenerationDataSource(_, context),
|
|
5478
|
+
roleArn: __expectString,
|
|
5479
|
+
storageLocation: _json,
|
|
5480
|
+
testSetGenerationId: __expectString,
|
|
5481
|
+
testSetGenerationStatus: __expectString,
|
|
5482
|
+
testSetName: __expectString,
|
|
5483
|
+
testSetTags: _json,
|
|
4562
5484
|
});
|
|
4563
5485
|
Object.assign(contents, doc);
|
|
4564
5486
|
return contents;
|
|
4565
5487
|
};
|
|
4566
|
-
const
|
|
5488
|
+
const de_StartTestSetGenerationCommandError = async (output, context) => {
|
|
4567
5489
|
const parsedOutput = {
|
|
4568
5490
|
...output,
|
|
4569
5491
|
body: await parseErrorBody(output.body, context),
|
|
@@ -5251,6 +6173,63 @@ const de_UpdateSlotTypeCommandError = async (output, context) => {
|
|
|
5251
6173
|
});
|
|
5252
6174
|
}
|
|
5253
6175
|
};
|
|
6176
|
+
export const de_UpdateTestSetCommand = async (output, context) => {
|
|
6177
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6178
|
+
return de_UpdateTestSetCommandError(output, context);
|
|
6179
|
+
}
|
|
6180
|
+
const contents = map({
|
|
6181
|
+
$metadata: deserializeMetadata(output),
|
|
6182
|
+
});
|
|
6183
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6184
|
+
const doc = take(data, {
|
|
6185
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
6186
|
+
description: __expectString,
|
|
6187
|
+
lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
6188
|
+
modality: __expectString,
|
|
6189
|
+
numTurns: __expectInt32,
|
|
6190
|
+
roleArn: __expectString,
|
|
6191
|
+
status: __expectString,
|
|
6192
|
+
storageLocation: _json,
|
|
6193
|
+
testSetId: __expectString,
|
|
6194
|
+
testSetName: __expectString,
|
|
6195
|
+
});
|
|
6196
|
+
Object.assign(contents, doc);
|
|
6197
|
+
return contents;
|
|
6198
|
+
};
|
|
6199
|
+
const de_UpdateTestSetCommandError = async (output, context) => {
|
|
6200
|
+
const parsedOutput = {
|
|
6201
|
+
...output,
|
|
6202
|
+
body: await parseErrorBody(output.body, context),
|
|
6203
|
+
};
|
|
6204
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6205
|
+
switch (errorCode) {
|
|
6206
|
+
case "ConflictException":
|
|
6207
|
+
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
6208
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
6209
|
+
case "InternalServerException":
|
|
6210
|
+
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
6211
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
6212
|
+
case "PreconditionFailedException":
|
|
6213
|
+
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
6214
|
+
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
6215
|
+
case "ServiceQuotaExceededException":
|
|
6216
|
+
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
6217
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
6218
|
+
case "ThrottlingException":
|
|
6219
|
+
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
6220
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
6221
|
+
case "ValidationException":
|
|
6222
|
+
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
6223
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
6224
|
+
default:
|
|
6225
|
+
const parsedBody = parsedOutput.body;
|
|
6226
|
+
return throwDefaultError({
|
|
6227
|
+
output,
|
|
6228
|
+
parsedBody,
|
|
6229
|
+
errorCode,
|
|
6230
|
+
});
|
|
6231
|
+
}
|
|
6232
|
+
};
|
|
5254
6233
|
const throwDefaultError = withBaseException(__BaseException);
|
|
5255
6234
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
5256
6235
|
const contents = map({});
|
|
@@ -5379,6 +6358,21 @@ const se_ConditionalSpecification = (input, context) => {
|
|
|
5379
6358
|
defaultBranch: (_) => se_DefaultConditionalBranch(_, context),
|
|
5380
6359
|
});
|
|
5381
6360
|
};
|
|
6361
|
+
const se_ConversationLogsDataSource = (input, context) => {
|
|
6362
|
+
return take(input, {
|
|
6363
|
+
botAliasId: [],
|
|
6364
|
+
botId: [],
|
|
6365
|
+
filter: (_) => se_ConversationLogsDataSourceFilterBy(_, context),
|
|
6366
|
+
localeId: [],
|
|
6367
|
+
});
|
|
6368
|
+
};
|
|
6369
|
+
const se_ConversationLogsDataSourceFilterBy = (input, context) => {
|
|
6370
|
+
return take(input, {
|
|
6371
|
+
endTime: (_) => Math.round(_.getTime() / 1000),
|
|
6372
|
+
inputMode: [],
|
|
6373
|
+
startTime: (_) => Math.round(_.getTime() / 1000),
|
|
6374
|
+
});
|
|
6375
|
+
};
|
|
5382
6376
|
const se_DateRangeFilter = (input, context) => {
|
|
5383
6377
|
return take(input, {
|
|
5384
6378
|
endDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
@@ -5419,6 +6413,7 @@ const se_ImportResourceSpecification = (input, context) => {
|
|
|
5419
6413
|
botImportSpecification: _json,
|
|
5420
6414
|
botLocaleImportSpecification: (_) => se_BotLocaleImportSpecification(_, context),
|
|
5421
6415
|
customVocabularyImportSpecification: _json,
|
|
6416
|
+
testSetImportResourceSpecification: _json,
|
|
5422
6417
|
});
|
|
5423
6418
|
};
|
|
5424
6419
|
const se_InitialResponseSetting = (input, context) => {
|
|
@@ -5566,6 +6561,11 @@ const se_SubSlotSpecificationMap = (input, context) => {
|
|
|
5566
6561
|
return acc;
|
|
5567
6562
|
}, {});
|
|
5568
6563
|
};
|
|
6564
|
+
const se_TestSetGenerationDataSource = (input, context) => {
|
|
6565
|
+
return take(input, {
|
|
6566
|
+
conversationLogsDataSource: (_) => se_ConversationLogsDataSource(_, context),
|
|
6567
|
+
});
|
|
6568
|
+
};
|
|
5569
6569
|
const se_TranscriptFilter = (input, context) => {
|
|
5570
6570
|
return take(input, {
|
|
5571
6571
|
lexTranscriptFilter: (_) => se_LexTranscriptFilter(_, context),
|
|
@@ -5744,6 +6744,21 @@ const de_ConditionalSpecification = (output, context) => {
|
|
|
5744
6744
|
defaultBranch: (_) => de_DefaultConditionalBranch(_, context),
|
|
5745
6745
|
});
|
|
5746
6746
|
};
|
|
6747
|
+
const de_ConversationLogsDataSource = (output, context) => {
|
|
6748
|
+
return take(output, {
|
|
6749
|
+
botAliasId: __expectString,
|
|
6750
|
+
botId: __expectString,
|
|
6751
|
+
filter: (_) => de_ConversationLogsDataSourceFilterBy(_, context),
|
|
6752
|
+
localeId: __expectString,
|
|
6753
|
+
});
|
|
6754
|
+
};
|
|
6755
|
+
const de_ConversationLogsDataSourceFilterBy = (output, context) => {
|
|
6756
|
+
return take(output, {
|
|
6757
|
+
endTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
6758
|
+
inputMode: __expectString,
|
|
6759
|
+
startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
6760
|
+
});
|
|
6761
|
+
};
|
|
5747
6762
|
const de_DateRangeFilter = (output, context) => {
|
|
5748
6763
|
return take(output, {
|
|
5749
6764
|
endDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
@@ -5802,6 +6817,7 @@ const de_ImportResourceSpecification = (output, context) => {
|
|
|
5802
6817
|
botImportSpecification: _json,
|
|
5803
6818
|
botLocaleImportSpecification: (_) => de_BotLocaleImportSpecification(_, context),
|
|
5804
6819
|
customVocabularyImportSpecification: _json,
|
|
6820
|
+
testSetImportResourceSpecification: _json,
|
|
5805
6821
|
});
|
|
5806
6822
|
};
|
|
5807
6823
|
const de_ImportSummary = (output, context) => {
|
|
@@ -5832,6 +6848,13 @@ const de_InitialResponseSetting = (output, context) => {
|
|
|
5832
6848
|
nextStep: (_) => de_DialogState(_, context),
|
|
5833
6849
|
});
|
|
5834
6850
|
};
|
|
6851
|
+
const de_InputSessionStateSpecification = (output, context) => {
|
|
6852
|
+
return take(output, {
|
|
6853
|
+
activeContexts: _json,
|
|
6854
|
+
runtimeHints: (_) => de_RuntimeHints(_, context),
|
|
6855
|
+
sessionAttributes: _json,
|
|
6856
|
+
});
|
|
6857
|
+
};
|
|
5835
6858
|
const de_IntentClosingSetting = (output, context) => {
|
|
5836
6859
|
return take(output, {
|
|
5837
6860
|
active: __expectBoolean,
|
|
@@ -5913,6 +6936,17 @@ const de_PostFulfillmentStatusSpecification = (output, context) => {
|
|
|
5913
6936
|
timeoutResponse: _json,
|
|
5914
6937
|
});
|
|
5915
6938
|
};
|
|
6939
|
+
const de_RuntimeHintDetails = (output, context) => {
|
|
6940
|
+
return take(output, {
|
|
6941
|
+
runtimeHintValues: _json,
|
|
6942
|
+
subSlotHints: (_) => de_SlotHintsSlotMap(_, context),
|
|
6943
|
+
});
|
|
6944
|
+
};
|
|
6945
|
+
const de_RuntimeHints = (output, context) => {
|
|
6946
|
+
return take(output, {
|
|
6947
|
+
slotHints: (_) => de_SlotHintsIntentMap(_, context),
|
|
6948
|
+
});
|
|
6949
|
+
};
|
|
5916
6950
|
const de_S3BucketTranscriptSource = (output, context) => {
|
|
5917
6951
|
return take(output, {
|
|
5918
6952
|
kmsKeyArn: __expectString,
|
|
@@ -5934,6 +6968,24 @@ const de_SlotCaptureSetting = (output, context) => {
|
|
|
5934
6968
|
failureResponse: _json,
|
|
5935
6969
|
});
|
|
5936
6970
|
};
|
|
6971
|
+
const de_SlotHintsIntentMap = (output, context) => {
|
|
6972
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
6973
|
+
if (value === null) {
|
|
6974
|
+
return acc;
|
|
6975
|
+
}
|
|
6976
|
+
acc[key] = de_SlotHintsSlotMap(value, context);
|
|
6977
|
+
return acc;
|
|
6978
|
+
}, {});
|
|
6979
|
+
};
|
|
6980
|
+
const de_SlotHintsSlotMap = (output, context) => {
|
|
6981
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
6982
|
+
if (value === null) {
|
|
6983
|
+
return acc;
|
|
6984
|
+
}
|
|
6985
|
+
acc[key] = de_RuntimeHintDetails(value, context);
|
|
6986
|
+
return acc;
|
|
6987
|
+
}, {});
|
|
6988
|
+
};
|
|
5937
6989
|
const de_SlotSummary = (output, context) => {
|
|
5938
6990
|
return take(output, {
|
|
5939
6991
|
description: __expectString,
|
|
@@ -6026,6 +7078,85 @@ const de_SubSlotSpecificationMap = (output, context) => {
|
|
|
6026
7078
|
return acc;
|
|
6027
7079
|
}, {});
|
|
6028
7080
|
};
|
|
7081
|
+
const de_TestExecutionResultItems = (output, context) => {
|
|
7082
|
+
return take(output, {
|
|
7083
|
+
conversationLevelTestResults: _json,
|
|
7084
|
+
intentClassificationTestResults: _json,
|
|
7085
|
+
intentLevelSlotResolutionTestResults: _json,
|
|
7086
|
+
overallTestResults: _json,
|
|
7087
|
+
utteranceLevelTestResults: (_) => de_UtteranceLevelTestResults(_, context),
|
|
7088
|
+
});
|
|
7089
|
+
};
|
|
7090
|
+
const de_TestExecutionSummary = (output, context) => {
|
|
7091
|
+
return take(output, {
|
|
7092
|
+
apiMode: __expectString,
|
|
7093
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
7094
|
+
lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
7095
|
+
target: _json,
|
|
7096
|
+
testExecutionId: __expectString,
|
|
7097
|
+
testExecutionModality: __expectString,
|
|
7098
|
+
testExecutionStatus: __expectString,
|
|
7099
|
+
testSetId: __expectString,
|
|
7100
|
+
testSetName: __expectString,
|
|
7101
|
+
});
|
|
7102
|
+
};
|
|
7103
|
+
const de_TestExecutionSummaryList = (output, context) => {
|
|
7104
|
+
const retVal = (output || [])
|
|
7105
|
+
.filter((e) => e != null)
|
|
7106
|
+
.map((entry) => {
|
|
7107
|
+
return de_TestExecutionSummary(entry, context);
|
|
7108
|
+
});
|
|
7109
|
+
return retVal;
|
|
7110
|
+
};
|
|
7111
|
+
const de_TestSetGenerationDataSource = (output, context) => {
|
|
7112
|
+
return take(output, {
|
|
7113
|
+
conversationLogsDataSource: (_) => de_ConversationLogsDataSource(_, context),
|
|
7114
|
+
});
|
|
7115
|
+
};
|
|
7116
|
+
const de_TestSetSummary = (output, context) => {
|
|
7117
|
+
return take(output, {
|
|
7118
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
7119
|
+
description: __expectString,
|
|
7120
|
+
lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
7121
|
+
modality: __expectString,
|
|
7122
|
+
numTurns: __expectInt32,
|
|
7123
|
+
roleArn: __expectString,
|
|
7124
|
+
status: __expectString,
|
|
7125
|
+
storageLocation: _json,
|
|
7126
|
+
testSetId: __expectString,
|
|
7127
|
+
testSetName: __expectString,
|
|
7128
|
+
});
|
|
7129
|
+
};
|
|
7130
|
+
const de_TestSetSummaryList = (output, context) => {
|
|
7131
|
+
const retVal = (output || [])
|
|
7132
|
+
.filter((e) => e != null)
|
|
7133
|
+
.map((entry) => {
|
|
7134
|
+
return de_TestSetSummary(entry, context);
|
|
7135
|
+
});
|
|
7136
|
+
return retVal;
|
|
7137
|
+
};
|
|
7138
|
+
const de_TestSetTurnRecord = (output, context) => {
|
|
7139
|
+
return take(output, {
|
|
7140
|
+
conversationId: __expectString,
|
|
7141
|
+
recordNumber: __expectLong,
|
|
7142
|
+
turnNumber: __expectInt32,
|
|
7143
|
+
turnSpecification: (_) => de_TurnSpecification(_, context),
|
|
7144
|
+
});
|
|
7145
|
+
};
|
|
7146
|
+
const de_TestSetTurnRecordList = (output, context) => {
|
|
7147
|
+
const retVal = (output || [])
|
|
7148
|
+
.filter((e) => e != null)
|
|
7149
|
+
.map((entry) => {
|
|
7150
|
+
return de_TestSetTurnRecord(entry, context);
|
|
7151
|
+
});
|
|
7152
|
+
return retVal;
|
|
7153
|
+
};
|
|
7154
|
+
const de_TestSetTurnResult = (output, context) => {
|
|
7155
|
+
return take(output, {
|
|
7156
|
+
agent: _json,
|
|
7157
|
+
user: (_) => de_UserTurnResult(_, context),
|
|
7158
|
+
});
|
|
7159
|
+
};
|
|
6029
7160
|
const de_TranscriptFilter = (output, context) => {
|
|
6030
7161
|
return take(output, {
|
|
6031
7162
|
lexTranscriptFilter: (_) => de_LexTranscriptFilter(_, context),
|
|
@@ -6036,6 +7167,95 @@ const de_TranscriptSourceSetting = (output, context) => {
|
|
|
6036
7167
|
s3BucketTranscriptSource: (_) => de_S3BucketTranscriptSource(_, context),
|
|
6037
7168
|
});
|
|
6038
7169
|
};
|
|
7170
|
+
const de_TurnSpecification = (output, context) => {
|
|
7171
|
+
return take(output, {
|
|
7172
|
+
agentTurn: _json,
|
|
7173
|
+
userTurn: (_) => de_UserTurnSpecification(_, context),
|
|
7174
|
+
});
|
|
7175
|
+
};
|
|
7176
|
+
const de_UserTurnInputSpecification = (output, context) => {
|
|
7177
|
+
return take(output, {
|
|
7178
|
+
requestAttributes: _json,
|
|
7179
|
+
sessionState: (_) => de_InputSessionStateSpecification(_, context),
|
|
7180
|
+
utteranceInput: _json,
|
|
7181
|
+
});
|
|
7182
|
+
};
|
|
7183
|
+
const de_UserTurnIntentOutput = (output, context) => {
|
|
7184
|
+
return take(output, {
|
|
7185
|
+
name: __expectString,
|
|
7186
|
+
slots: (_) => de_UserTurnSlotOutputMap(_, context),
|
|
7187
|
+
});
|
|
7188
|
+
};
|
|
7189
|
+
const de_UserTurnOutputSpecification = (output, context) => {
|
|
7190
|
+
return take(output, {
|
|
7191
|
+
activeContexts: _json,
|
|
7192
|
+
intent: (_) => de_UserTurnIntentOutput(_, context),
|
|
7193
|
+
transcript: __expectString,
|
|
7194
|
+
});
|
|
7195
|
+
};
|
|
7196
|
+
const de_UserTurnResult = (output, context) => {
|
|
7197
|
+
return take(output, {
|
|
7198
|
+
actualOutput: (_) => de_UserTurnOutputSpecification(_, context),
|
|
7199
|
+
conversationLevelResult: _json,
|
|
7200
|
+
endToEndResult: __expectString,
|
|
7201
|
+
errorDetails: _json,
|
|
7202
|
+
expectedOutput: (_) => de_UserTurnOutputSpecification(_, context),
|
|
7203
|
+
input: (_) => de_UserTurnInputSpecification(_, context),
|
|
7204
|
+
intentMatchResult: __expectString,
|
|
7205
|
+
slotMatchResult: __expectString,
|
|
7206
|
+
speechTranscriptionResult: __expectString,
|
|
7207
|
+
});
|
|
7208
|
+
};
|
|
7209
|
+
const de_UserTurnSlotOutput = (output, context) => {
|
|
7210
|
+
return take(output, {
|
|
7211
|
+
subSlots: (_) => de_UserTurnSlotOutputMap(_, context),
|
|
7212
|
+
value: __expectString,
|
|
7213
|
+
values: (_) => de_UserTurnSlotOutputList(_, context),
|
|
7214
|
+
});
|
|
7215
|
+
};
|
|
7216
|
+
const de_UserTurnSlotOutputList = (output, context) => {
|
|
7217
|
+
const retVal = (output || [])
|
|
7218
|
+
.filter((e) => e != null)
|
|
7219
|
+
.map((entry) => {
|
|
7220
|
+
return de_UserTurnSlotOutput(entry, context);
|
|
7221
|
+
});
|
|
7222
|
+
return retVal;
|
|
7223
|
+
};
|
|
7224
|
+
const de_UserTurnSlotOutputMap = (output, context) => {
|
|
7225
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
7226
|
+
if (value === null) {
|
|
7227
|
+
return acc;
|
|
7228
|
+
}
|
|
7229
|
+
acc[key] = de_UserTurnSlotOutput(value, context);
|
|
7230
|
+
return acc;
|
|
7231
|
+
}, {});
|
|
7232
|
+
};
|
|
7233
|
+
const de_UserTurnSpecification = (output, context) => {
|
|
7234
|
+
return take(output, {
|
|
7235
|
+
expected: (_) => de_UserTurnOutputSpecification(_, context),
|
|
7236
|
+
input: (_) => de_UserTurnInputSpecification(_, context),
|
|
7237
|
+
});
|
|
7238
|
+
};
|
|
7239
|
+
const de_UtteranceLevelTestResultItem = (output, context) => {
|
|
7240
|
+
return take(output, {
|
|
7241
|
+
conversationId: __expectString,
|
|
7242
|
+
recordNumber: __expectLong,
|
|
7243
|
+
turnResult: (_) => de_TestSetTurnResult(_, context),
|
|
7244
|
+
});
|
|
7245
|
+
};
|
|
7246
|
+
const de_UtteranceLevelTestResultItemList = (output, context) => {
|
|
7247
|
+
const retVal = (output || [])
|
|
7248
|
+
.filter((e) => e != null)
|
|
7249
|
+
.map((entry) => {
|
|
7250
|
+
return de_UtteranceLevelTestResultItem(entry, context);
|
|
7251
|
+
});
|
|
7252
|
+
return retVal;
|
|
7253
|
+
};
|
|
7254
|
+
const de_UtteranceLevelTestResults = (output, context) => {
|
|
7255
|
+
return take(output, {
|
|
7256
|
+
items: (_) => de_UtteranceLevelTestResultItemList(_, context),
|
|
7257
|
+
});
|
|
7258
|
+
};
|
|
6039
7259
|
const deserializeMetadata = (output) => ({
|
|
6040
7260
|
httpStatusCode: output.statusCode,
|
|
6041
7261
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|