@aws-sdk/client-lex-models-v2 3.370.0 → 3.372.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 +56 -0
- package/dist-cjs/LexModelsV2.js +14 -0
- package/dist-cjs/commands/ListIntentMetricsCommand.js +46 -0
- package/dist-cjs/commands/ListIntentPathsCommand.js +46 -0
- package/dist-cjs/commands/ListIntentStageMetricsCommand.js +46 -0
- package/dist-cjs/commands/ListSessionAnalyticsDataCommand.js +46 -0
- package/dist-cjs/commands/ListSessionMetricsCommand.js +46 -0
- package/dist-cjs/commands/ListUtteranceAnalyticsDataCommand.js +46 -0
- package/dist-cjs/commands/ListUtteranceMetricsCommand.js +46 -0
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/models/models_0.js +153 -79
- package/dist-cjs/models/models_1.js +92 -1
- package/dist-cjs/pagination/ListIntentMetricsPaginator.js +29 -0
- package/dist-cjs/pagination/ListIntentStageMetricsPaginator.js +29 -0
- package/dist-cjs/pagination/ListSessionAnalyticsDataPaginator.js +29 -0
- package/dist-cjs/pagination/ListSessionMetricsPaginator.js +29 -0
- package/dist-cjs/pagination/ListUtteranceAnalyticsDataPaginator.js +29 -0
- package/dist-cjs/pagination/ListUtteranceMetricsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/protocols/Aws_restJson1.js +767 -56
- package/dist-es/LexModelsV2.js +14 -0
- package/dist-es/commands/ListIntentMetricsCommand.js +42 -0
- package/dist-es/commands/ListIntentPathsCommand.js +42 -0
- package/dist-es/commands/ListIntentStageMetricsCommand.js +42 -0
- package/dist-es/commands/ListSessionAnalyticsDataCommand.js +42 -0
- package/dist-es/commands/ListSessionMetricsCommand.js +42 -0
- package/dist-es/commands/ListUtteranceAnalyticsDataCommand.js +42 -0
- package/dist-es/commands/ListUtteranceMetricsCommand.js +42 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/models/models_0.js +151 -77
- package/dist-es/models/models_1.js +91 -0
- package/dist-es/pagination/ListIntentMetricsPaginator.js +25 -0
- package/dist-es/pagination/ListIntentStageMetricsPaginator.js +25 -0
- package/dist-es/pagination/ListSessionAnalyticsDataPaginator.js +25 -0
- package/dist-es/pagination/ListSessionMetricsPaginator.js +25 -0
- package/dist-es/pagination/ListUtteranceAnalyticsDataPaginator.js +25 -0
- package/dist-es/pagination/ListUtteranceMetricsPaginator.js +25 -0
- package/dist-es/pagination/index.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +749 -52
- package/dist-types/LexModelsV2.d.ts +49 -0
- package/dist-types/LexModelsV2Client.d.ts +9 -2
- package/dist-types/commands/DescribeSlotTypeCommand.d.ts +1 -1
- package/dist-types/commands/DescribeTestExecutionCommand.d.ts +1 -1
- package/dist-types/commands/DescribeTestSetCommand.d.ts +1 -1
- package/dist-types/commands/DescribeTestSetDiscrepancyReportCommand.d.ts +1 -1
- package/dist-types/commands/DescribeTestSetGenerationCommand.d.ts +1 -1
- package/dist-types/commands/GetTestExecutionArtifactsUrlCommand.d.ts +1 -1
- package/dist-types/commands/ListAggregatedUtterancesCommand.d.ts +1 -1
- package/dist-types/commands/ListIntentMetricsCommand.d.ts +169 -0
- package/dist-types/commands/ListIntentPathsCommand.d.ts +124 -0
- package/dist-types/commands/ListIntentStageMetricsCommand.d.ts +169 -0
- package/dist-types/commands/ListSessionAnalyticsDataCommand.d.ts +140 -0
- package/dist-types/commands/ListSessionMetricsCommand.d.ts +169 -0
- package/dist-types/commands/ListUtteranceAnalyticsDataCommand.d.ts +161 -0
- package/dist-types/commands/ListUtteranceMetricsCommand.d.ts +179 -0
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/models/models_0.d.ts +4423 -3758
- package/dist-types/models/models_1.d.ts +2039 -53
- package/dist-types/pagination/ListIntentMetricsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListIntentStageMetricsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListSessionAnalyticsDataPaginator.d.ts +7 -0
- package/dist-types/pagination/ListSessionMetricsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListUtteranceAnalyticsDataPaginator.d.ts +7 -0
- package/dist-types/pagination/ListUtteranceMetricsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +6 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
- package/dist-types/ts3.4/LexModelsV2.d.ts +119 -0
- package/dist-types/ts3.4/LexModelsV2Client.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeSlotTypeCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeTestExecutionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeTestSetCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeTestSetDiscrepancyReportCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeTestSetGenerationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetTestExecutionArtifactsUrlCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListAggregatedUtterancesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListIntentMetricsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListIntentPathsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListIntentStageMetricsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListSessionAnalyticsDataCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListSessionMetricsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListUtteranceAnalyticsDataCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListUtteranceMetricsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/models/models_0.d.ts +337 -333
- package/dist-types/ts3.4/models/models_1.d.ts +541 -19
- package/dist-types/ts3.4/pagination/ListIntentMetricsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListIntentStageMetricsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSessionAnalyticsDataPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSessionMetricsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListUtteranceAnalyticsDataPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListUtteranceMetricsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +84 -0
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.se_ListBotLocalesCommand = exports.se_ListBotAliasesCommand = exports.se_ListAggregatedUtterancesCommand = exports.se_GetTestExecutionArtifactsUrlCommand = exports.se_DescribeTestSetGenerationCommand = exports.se_DescribeTestSetDiscrepancyReportCommand = exports.se_DescribeTestSetCommand = exports.se_DescribeTestExecutionCommand = exports.se_DescribeSlotTypeCommand = exports.se_DescribeSlotCommand = exports.se_DescribeResourcePolicyCommand = exports.se_DescribeIntentCommand = exports.se_DescribeImportCommand = exports.se_DescribeExportCommand = exports.se_DescribeCustomVocabularyMetadataCommand = exports.se_DescribeBotVersionCommand = exports.se_DescribeBotRecommendationCommand = exports.se_DescribeBotLocaleCommand = exports.se_DescribeBotAliasCommand = exports.se_DescribeBotCommand = exports.se_DeleteUtterancesCommand = exports.se_DeleteTestSetCommand = exports.se_DeleteSlotTypeCommand = exports.se_DeleteSlotCommand = exports.se_DeleteResourcePolicyStatementCommand = exports.se_DeleteResourcePolicyCommand = exports.se_DeleteIntentCommand = exports.se_DeleteImportCommand = exports.se_DeleteExportCommand = exports.se_DeleteCustomVocabularyCommand = exports.se_DeleteBotVersionCommand = exports.se_DeleteBotLocaleCommand = exports.se_DeleteBotAliasCommand = exports.se_DeleteBotCommand = exports.se_CreateUploadUrlCommand = exports.se_CreateTestSetDiscrepancyReportCommand = exports.se_CreateSlotTypeCommand = exports.se_CreateSlotCommand = exports.se_CreateResourcePolicyStatementCommand = exports.se_CreateResourcePolicyCommand = exports.se_CreateIntentCommand = exports.se_CreateExportCommand = exports.se_CreateBotVersionCommand = exports.se_CreateBotLocaleCommand = exports.se_CreateBotAliasCommand = exports.se_CreateBotCommand = exports.se_BuildBotLocaleCommand = exports.se_BatchUpdateCustomVocabularyItemCommand = exports.se_BatchDeleteCustomVocabularyItemCommand = exports.se_BatchCreateCustomVocabularyItemCommand = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.de_UpdateTestSetCommand = exports.de_UpdateSlotTypeCommand = exports.de_UpdateSlotCommand = exports.de_UpdateResourcePolicyCommand = exports.de_UpdateIntentCommand = exports.de_UpdateExportCommand = exports.de_UpdateBotRecommendationCommand = exports.de_UpdateBotLocaleCommand = exports.de_UpdateBotAliasCommand = exports.de_UpdateBotCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopBotRecommendationCommand = exports.de_StartTestSetGenerationCommand = exports.de_StartTestExecutionCommand = exports.de_StartImportCommand = exports.de_StartBotRecommendationCommand = exports.de_SearchAssociatedTranscriptsCommand = exports.de_ListTestSetsCommand = exports.de_ListTestSetRecordsCommand = void 0;
|
|
4
|
+
exports.de_CreateBotVersionCommand = exports.de_CreateBotLocaleCommand = exports.de_CreateBotAliasCommand = exports.de_CreateBotCommand = exports.de_BuildBotLocaleCommand = exports.de_BatchUpdateCustomVocabularyItemCommand = exports.de_BatchDeleteCustomVocabularyItemCommand = exports.de_BatchCreateCustomVocabularyItemCommand = exports.se_UpdateTestSetCommand = exports.se_UpdateSlotTypeCommand = exports.se_UpdateSlotCommand = exports.se_UpdateResourcePolicyCommand = exports.se_UpdateIntentCommand = exports.se_UpdateExportCommand = exports.se_UpdateBotRecommendationCommand = exports.se_UpdateBotLocaleCommand = exports.se_UpdateBotAliasCommand = exports.se_UpdateBotCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopBotRecommendationCommand = exports.se_StartTestSetGenerationCommand = exports.se_StartTestExecutionCommand = exports.se_StartImportCommand = exports.se_StartBotRecommendationCommand = exports.se_SearchAssociatedTranscriptsCommand = exports.se_ListUtteranceMetricsCommand = exports.se_ListUtteranceAnalyticsDataCommand = exports.se_ListTestSetsCommand = exports.se_ListTestSetRecordsCommand = exports.se_ListTestExecutionsCommand = exports.se_ListTestExecutionResultItemsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSlotTypesCommand = exports.se_ListSlotsCommand = exports.se_ListSessionMetricsCommand = exports.se_ListSessionAnalyticsDataCommand = exports.se_ListRecommendedIntentsCommand = exports.se_ListIntentStageMetricsCommand = exports.se_ListIntentsCommand = exports.se_ListIntentPathsCommand = exports.se_ListIntentMetricsCommand = exports.se_ListImportsCommand = exports.se_ListExportsCommand = exports.se_ListCustomVocabularyItemsCommand = exports.se_ListBuiltInSlotTypesCommand = exports.se_ListBuiltInIntentsCommand = exports.se_ListBotVersionsCommand = exports.se_ListBotsCommand = exports.se_ListBotRecommendationsCommand = void 0;
|
|
5
|
+
exports.de_ListImportsCommand = exports.de_ListExportsCommand = exports.de_ListCustomVocabularyItemsCommand = exports.de_ListBuiltInSlotTypesCommand = exports.de_ListBuiltInIntentsCommand = exports.de_ListBotVersionsCommand = exports.de_ListBotsCommand = exports.de_ListBotRecommendationsCommand = exports.de_ListBotLocalesCommand = exports.de_ListBotAliasesCommand = exports.de_ListAggregatedUtterancesCommand = exports.de_GetTestExecutionArtifactsUrlCommand = exports.de_DescribeTestSetGenerationCommand = exports.de_DescribeTestSetDiscrepancyReportCommand = exports.de_DescribeTestSetCommand = exports.de_DescribeTestExecutionCommand = exports.de_DescribeSlotTypeCommand = exports.de_DescribeSlotCommand = exports.de_DescribeResourcePolicyCommand = exports.de_DescribeIntentCommand = exports.de_DescribeImportCommand = exports.de_DescribeExportCommand = exports.de_DescribeCustomVocabularyMetadataCommand = exports.de_DescribeBotVersionCommand = exports.de_DescribeBotRecommendationCommand = exports.de_DescribeBotLocaleCommand = exports.de_DescribeBotAliasCommand = exports.de_DescribeBotCommand = exports.de_DeleteUtterancesCommand = exports.de_DeleteTestSetCommand = exports.de_DeleteSlotTypeCommand = exports.de_DeleteSlotCommand = exports.de_DeleteResourcePolicyStatementCommand = exports.de_DeleteResourcePolicyCommand = exports.de_DeleteIntentCommand = exports.de_DeleteImportCommand = exports.de_DeleteExportCommand = exports.de_DeleteCustomVocabularyCommand = exports.de_DeleteBotVersionCommand = exports.de_DeleteBotLocaleCommand = exports.de_DeleteBotAliasCommand = exports.de_DeleteBotCommand = exports.de_CreateUploadUrlCommand = exports.de_CreateTestSetDiscrepancyReportCommand = exports.de_CreateSlotTypeCommand = exports.de_CreateSlotCommand = exports.de_CreateResourcePolicyStatementCommand = exports.de_CreateResourcePolicyCommand = exports.de_CreateIntentCommand = exports.de_CreateExportCommand = void 0;
|
|
6
|
+
exports.de_UpdateTestSetCommand = exports.de_UpdateSlotTypeCommand = exports.de_UpdateSlotCommand = exports.de_UpdateResourcePolicyCommand = exports.de_UpdateIntentCommand = exports.de_UpdateExportCommand = exports.de_UpdateBotRecommendationCommand = exports.de_UpdateBotLocaleCommand = exports.de_UpdateBotAliasCommand = exports.de_UpdateBotCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopBotRecommendationCommand = exports.de_StartTestSetGenerationCommand = exports.de_StartTestExecutionCommand = exports.de_StartImportCommand = exports.de_StartBotRecommendationCommand = exports.de_SearchAssociatedTranscriptsCommand = exports.de_ListUtteranceMetricsCommand = exports.de_ListUtteranceAnalyticsDataCommand = exports.de_ListTestSetsCommand = exports.de_ListTestSetRecordsCommand = exports.de_ListTestExecutionsCommand = exports.de_ListTestExecutionResultItemsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSlotTypesCommand = exports.de_ListSlotsCommand = exports.de_ListSessionMetricsCommand = exports.de_ListSessionAnalyticsDataCommand = exports.de_ListRecommendedIntentsCommand = exports.de_ListIntentStageMetricsCommand = exports.de_ListIntentsCommand = exports.de_ListIntentPathsCommand = exports.de_ListIntentMetricsCommand = void 0;
|
|
7
7
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
8
8
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
9
9
|
const LexModelsV2ServiceException_1 = require("../models/LexModelsV2ServiceException");
|
|
@@ -1324,6 +1324,60 @@ const se_ListImportsCommand = async (input, context) => {
|
|
|
1324
1324
|
});
|
|
1325
1325
|
};
|
|
1326
1326
|
exports.se_ListImportsCommand = se_ListImportsCommand;
|
|
1327
|
+
const se_ListIntentMetricsCommand = async (input, context) => {
|
|
1328
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1329
|
+
const headers = {
|
|
1330
|
+
"content-type": "application/json",
|
|
1331
|
+
};
|
|
1332
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/analytics/intentmetrics";
|
|
1333
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
|
|
1334
|
+
let body;
|
|
1335
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1336
|
+
binBy: (_) => (0, smithy_client_1._json)(_),
|
|
1337
|
+
endDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
1338
|
+
filters: (_) => (0, smithy_client_1._json)(_),
|
|
1339
|
+
groupBy: (_) => (0, smithy_client_1._json)(_),
|
|
1340
|
+
maxResults: [],
|
|
1341
|
+
metrics: (_) => (0, smithy_client_1._json)(_),
|
|
1342
|
+
nextToken: [],
|
|
1343
|
+
startDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
1344
|
+
}));
|
|
1345
|
+
return new protocol_http_1.HttpRequest({
|
|
1346
|
+
protocol,
|
|
1347
|
+
hostname,
|
|
1348
|
+
port,
|
|
1349
|
+
method: "POST",
|
|
1350
|
+
headers,
|
|
1351
|
+
path: resolvedPath,
|
|
1352
|
+
body,
|
|
1353
|
+
});
|
|
1354
|
+
};
|
|
1355
|
+
exports.se_ListIntentMetricsCommand = se_ListIntentMetricsCommand;
|
|
1356
|
+
const se_ListIntentPathsCommand = async (input, context) => {
|
|
1357
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1358
|
+
const headers = {
|
|
1359
|
+
"content-type": "application/json",
|
|
1360
|
+
};
|
|
1361
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/analytics/intentpaths";
|
|
1362
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
|
|
1363
|
+
let body;
|
|
1364
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1365
|
+
endDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
1366
|
+
filters: (_) => (0, smithy_client_1._json)(_),
|
|
1367
|
+
intentPath: [],
|
|
1368
|
+
startDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
1369
|
+
}));
|
|
1370
|
+
return new protocol_http_1.HttpRequest({
|
|
1371
|
+
protocol,
|
|
1372
|
+
hostname,
|
|
1373
|
+
port,
|
|
1374
|
+
method: "POST",
|
|
1375
|
+
headers,
|
|
1376
|
+
path: resolvedPath,
|
|
1377
|
+
body,
|
|
1378
|
+
});
|
|
1379
|
+
};
|
|
1380
|
+
exports.se_ListIntentPathsCommand = se_ListIntentPathsCommand;
|
|
1327
1381
|
const se_ListIntentsCommand = async (input, context) => {
|
|
1328
1382
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1329
1383
|
const headers = {
|
|
@@ -1352,6 +1406,36 @@ const se_ListIntentsCommand = async (input, context) => {
|
|
|
1352
1406
|
});
|
|
1353
1407
|
};
|
|
1354
1408
|
exports.se_ListIntentsCommand = se_ListIntentsCommand;
|
|
1409
|
+
const se_ListIntentStageMetricsCommand = async (input, context) => {
|
|
1410
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1411
|
+
const headers = {
|
|
1412
|
+
"content-type": "application/json",
|
|
1413
|
+
};
|
|
1414
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1415
|
+
"/bots/{botId}/analytics/intentstagemetrics";
|
|
1416
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
|
|
1417
|
+
let body;
|
|
1418
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1419
|
+
binBy: (_) => (0, smithy_client_1._json)(_),
|
|
1420
|
+
endDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
1421
|
+
filters: (_) => (0, smithy_client_1._json)(_),
|
|
1422
|
+
groupBy: (_) => (0, smithy_client_1._json)(_),
|
|
1423
|
+
maxResults: [],
|
|
1424
|
+
metrics: (_) => (0, smithy_client_1._json)(_),
|
|
1425
|
+
nextToken: [],
|
|
1426
|
+
startDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
1427
|
+
}));
|
|
1428
|
+
return new protocol_http_1.HttpRequest({
|
|
1429
|
+
protocol,
|
|
1430
|
+
hostname,
|
|
1431
|
+
port,
|
|
1432
|
+
method: "POST",
|
|
1433
|
+
headers,
|
|
1434
|
+
path: resolvedPath,
|
|
1435
|
+
body,
|
|
1436
|
+
});
|
|
1437
|
+
};
|
|
1438
|
+
exports.se_ListIntentStageMetricsCommand = se_ListIntentStageMetricsCommand;
|
|
1355
1439
|
const se_ListRecommendedIntentsCommand = async (input, context) => {
|
|
1356
1440
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1357
1441
|
const headers = {
|
|
@@ -1379,6 +1463,62 @@ const se_ListRecommendedIntentsCommand = async (input, context) => {
|
|
|
1379
1463
|
});
|
|
1380
1464
|
};
|
|
1381
1465
|
exports.se_ListRecommendedIntentsCommand = se_ListRecommendedIntentsCommand;
|
|
1466
|
+
const se_ListSessionAnalyticsDataCommand = async (input, context) => {
|
|
1467
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1468
|
+
const headers = {
|
|
1469
|
+
"content-type": "application/json",
|
|
1470
|
+
};
|
|
1471
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/analytics/sessions";
|
|
1472
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
|
|
1473
|
+
let body;
|
|
1474
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1475
|
+
endDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
1476
|
+
filters: (_) => (0, smithy_client_1._json)(_),
|
|
1477
|
+
maxResults: [],
|
|
1478
|
+
nextToken: [],
|
|
1479
|
+
sortBy: (_) => (0, smithy_client_1._json)(_),
|
|
1480
|
+
startDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
1481
|
+
}));
|
|
1482
|
+
return new protocol_http_1.HttpRequest({
|
|
1483
|
+
protocol,
|
|
1484
|
+
hostname,
|
|
1485
|
+
port,
|
|
1486
|
+
method: "POST",
|
|
1487
|
+
headers,
|
|
1488
|
+
path: resolvedPath,
|
|
1489
|
+
body,
|
|
1490
|
+
});
|
|
1491
|
+
};
|
|
1492
|
+
exports.se_ListSessionAnalyticsDataCommand = se_ListSessionAnalyticsDataCommand;
|
|
1493
|
+
const se_ListSessionMetricsCommand = async (input, context) => {
|
|
1494
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1495
|
+
const headers = {
|
|
1496
|
+
"content-type": "application/json",
|
|
1497
|
+
};
|
|
1498
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/analytics/sessionmetrics";
|
|
1499
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
|
|
1500
|
+
let body;
|
|
1501
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1502
|
+
binBy: (_) => (0, smithy_client_1._json)(_),
|
|
1503
|
+
endDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
1504
|
+
filters: (_) => (0, smithy_client_1._json)(_),
|
|
1505
|
+
groupBy: (_) => (0, smithy_client_1._json)(_),
|
|
1506
|
+
maxResults: [],
|
|
1507
|
+
metrics: (_) => (0, smithy_client_1._json)(_),
|
|
1508
|
+
nextToken: [],
|
|
1509
|
+
startDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
1510
|
+
}));
|
|
1511
|
+
return new protocol_http_1.HttpRequest({
|
|
1512
|
+
protocol,
|
|
1513
|
+
hostname,
|
|
1514
|
+
port,
|
|
1515
|
+
method: "POST",
|
|
1516
|
+
headers,
|
|
1517
|
+
path: resolvedPath,
|
|
1518
|
+
body,
|
|
1519
|
+
});
|
|
1520
|
+
};
|
|
1521
|
+
exports.se_ListSessionMetricsCommand = se_ListSessionMetricsCommand;
|
|
1382
1522
|
const se_ListSlotsCommand = async (input, context) => {
|
|
1383
1523
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1384
1524
|
const headers = {
|
|
@@ -1546,6 +1686,63 @@ const se_ListTestSetsCommand = async (input, context) => {
|
|
|
1546
1686
|
});
|
|
1547
1687
|
};
|
|
1548
1688
|
exports.se_ListTestSetsCommand = se_ListTestSetsCommand;
|
|
1689
|
+
const se_ListUtteranceAnalyticsDataCommand = async (input, context) => {
|
|
1690
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1691
|
+
const headers = {
|
|
1692
|
+
"content-type": "application/json",
|
|
1693
|
+
};
|
|
1694
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/analytics/utterances";
|
|
1695
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
|
|
1696
|
+
let body;
|
|
1697
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1698
|
+
endDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
1699
|
+
filters: (_) => (0, smithy_client_1._json)(_),
|
|
1700
|
+
maxResults: [],
|
|
1701
|
+
nextToken: [],
|
|
1702
|
+
sortBy: (_) => (0, smithy_client_1._json)(_),
|
|
1703
|
+
startDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
1704
|
+
}));
|
|
1705
|
+
return new protocol_http_1.HttpRequest({
|
|
1706
|
+
protocol,
|
|
1707
|
+
hostname,
|
|
1708
|
+
port,
|
|
1709
|
+
method: "POST",
|
|
1710
|
+
headers,
|
|
1711
|
+
path: resolvedPath,
|
|
1712
|
+
body,
|
|
1713
|
+
});
|
|
1714
|
+
};
|
|
1715
|
+
exports.se_ListUtteranceAnalyticsDataCommand = se_ListUtteranceAnalyticsDataCommand;
|
|
1716
|
+
const se_ListUtteranceMetricsCommand = async (input, context) => {
|
|
1717
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1718
|
+
const headers = {
|
|
1719
|
+
"content-type": "application/json",
|
|
1720
|
+
};
|
|
1721
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/analytics/utterancemetrics";
|
|
1722
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
|
|
1723
|
+
let body;
|
|
1724
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1725
|
+
attributes: (_) => (0, smithy_client_1._json)(_),
|
|
1726
|
+
binBy: (_) => (0, smithy_client_1._json)(_),
|
|
1727
|
+
endDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
1728
|
+
filters: (_) => (0, smithy_client_1._json)(_),
|
|
1729
|
+
groupBy: (_) => (0, smithy_client_1._json)(_),
|
|
1730
|
+
maxResults: [],
|
|
1731
|
+
metrics: (_) => (0, smithy_client_1._json)(_),
|
|
1732
|
+
nextToken: [],
|
|
1733
|
+
startDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
1734
|
+
}));
|
|
1735
|
+
return new protocol_http_1.HttpRequest({
|
|
1736
|
+
protocol,
|
|
1737
|
+
hostname,
|
|
1738
|
+
port,
|
|
1739
|
+
method: "POST",
|
|
1740
|
+
headers,
|
|
1741
|
+
path: resolvedPath,
|
|
1742
|
+
body,
|
|
1743
|
+
});
|
|
1744
|
+
};
|
|
1745
|
+
exports.se_ListUtteranceMetricsCommand = se_ListUtteranceMetricsCommand;
|
|
1549
1746
|
const se_SearchAssociatedTranscriptsCommand = async (input, context) => {
|
|
1550
1747
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1551
1748
|
const headers = {
|
|
@@ -4989,9 +5186,9 @@ const de_ListImportsCommandError = async (output, context) => {
|
|
|
4989
5186
|
});
|
|
4990
5187
|
}
|
|
4991
5188
|
};
|
|
4992
|
-
const
|
|
5189
|
+
const de_ListIntentMetricsCommand = async (output, context) => {
|
|
4993
5190
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4994
|
-
return
|
|
5191
|
+
return de_ListIntentMetricsCommandError(output, context);
|
|
4995
5192
|
}
|
|
4996
5193
|
const contents = (0, smithy_client_1.map)({
|
|
4997
5194
|
$metadata: deserializeMetadata(output),
|
|
@@ -4999,16 +5196,14 @@ const de_ListIntentsCommand = async (output, context) => {
|
|
|
4999
5196
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5000
5197
|
const doc = (0, smithy_client_1.take)(data, {
|
|
5001
5198
|
botId: smithy_client_1.expectString,
|
|
5002
|
-
botVersion: smithy_client_1.expectString,
|
|
5003
|
-
intentSummaries: (_) => de_IntentSummaryList(_, context),
|
|
5004
|
-
localeId: smithy_client_1.expectString,
|
|
5005
5199
|
nextToken: smithy_client_1.expectString,
|
|
5200
|
+
results: (_) => de_AnalyticsIntentResults(_, context),
|
|
5006
5201
|
});
|
|
5007
5202
|
Object.assign(contents, doc);
|
|
5008
5203
|
return contents;
|
|
5009
5204
|
};
|
|
5010
|
-
exports.
|
|
5011
|
-
const
|
|
5205
|
+
exports.de_ListIntentMetricsCommand = de_ListIntentMetricsCommand;
|
|
5206
|
+
const de_ListIntentMetricsCommandError = async (output, context) => {
|
|
5012
5207
|
const parsedOutput = {
|
|
5013
5208
|
...output,
|
|
5014
5209
|
body: await parseErrorBody(output.body, context),
|
|
@@ -5018,6 +5213,9 @@ const de_ListIntentsCommandError = async (output, context) => {
|
|
|
5018
5213
|
case "InternalServerException":
|
|
5019
5214
|
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5020
5215
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5216
|
+
case "PreconditionFailedException":
|
|
5217
|
+
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
5218
|
+
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
5021
5219
|
case "ServiceQuotaExceededException":
|
|
5022
5220
|
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5023
5221
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
@@ -5036,27 +5234,22 @@ const de_ListIntentsCommandError = async (output, context) => {
|
|
|
5036
5234
|
});
|
|
5037
5235
|
}
|
|
5038
5236
|
};
|
|
5039
|
-
const
|
|
5237
|
+
const de_ListIntentPathsCommand = async (output, context) => {
|
|
5040
5238
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5041
|
-
return
|
|
5239
|
+
return de_ListIntentPathsCommandError(output, context);
|
|
5042
5240
|
}
|
|
5043
5241
|
const contents = (0, smithy_client_1.map)({
|
|
5044
5242
|
$metadata: deserializeMetadata(output),
|
|
5045
5243
|
});
|
|
5046
5244
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5047
5245
|
const doc = (0, smithy_client_1.take)(data, {
|
|
5048
|
-
|
|
5049
|
-
botRecommendationId: smithy_client_1.expectString,
|
|
5050
|
-
botVersion: smithy_client_1.expectString,
|
|
5051
|
-
localeId: smithy_client_1.expectString,
|
|
5052
|
-
nextToken: smithy_client_1.expectString,
|
|
5053
|
-
summaryList: smithy_client_1._json,
|
|
5246
|
+
nodeSummaries: smithy_client_1._json,
|
|
5054
5247
|
});
|
|
5055
5248
|
Object.assign(contents, doc);
|
|
5056
5249
|
return contents;
|
|
5057
5250
|
};
|
|
5058
|
-
exports.
|
|
5059
|
-
const
|
|
5251
|
+
exports.de_ListIntentPathsCommand = de_ListIntentPathsCommand;
|
|
5252
|
+
const de_ListIntentPathsCommandError = async (output, context) => {
|
|
5060
5253
|
const parsedOutput = {
|
|
5061
5254
|
...output,
|
|
5062
5255
|
body: await parseErrorBody(output.body, context),
|
|
@@ -5066,9 +5259,9 @@ const de_ListRecommendedIntentsCommandError = async (output, context) => {
|
|
|
5066
5259
|
case "InternalServerException":
|
|
5067
5260
|
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5068
5261
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5069
|
-
case "
|
|
5070
|
-
case "com.amazonaws.lexmodelsv2#
|
|
5071
|
-
throw await
|
|
5262
|
+
case "PreconditionFailedException":
|
|
5263
|
+
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
5264
|
+
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
5072
5265
|
case "ServiceQuotaExceededException":
|
|
5073
5266
|
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5074
5267
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
@@ -5087,9 +5280,9 @@ const de_ListRecommendedIntentsCommandError = async (output, context) => {
|
|
|
5087
5280
|
});
|
|
5088
5281
|
}
|
|
5089
5282
|
};
|
|
5090
|
-
const
|
|
5283
|
+
const de_ListIntentsCommand = async (output, context) => {
|
|
5091
5284
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5092
|
-
return
|
|
5285
|
+
return de_ListIntentsCommandError(output, context);
|
|
5093
5286
|
}
|
|
5094
5287
|
const contents = (0, smithy_client_1.map)({
|
|
5095
5288
|
$metadata: deserializeMetadata(output),
|
|
@@ -5098,16 +5291,15 @@ const de_ListSlotsCommand = async (output, context) => {
|
|
|
5098
5291
|
const doc = (0, smithy_client_1.take)(data, {
|
|
5099
5292
|
botId: smithy_client_1.expectString,
|
|
5100
5293
|
botVersion: smithy_client_1.expectString,
|
|
5101
|
-
|
|
5294
|
+
intentSummaries: (_) => de_IntentSummaryList(_, context),
|
|
5102
5295
|
localeId: smithy_client_1.expectString,
|
|
5103
5296
|
nextToken: smithy_client_1.expectString,
|
|
5104
|
-
slotSummaries: (_) => de_SlotSummaryList(_, context),
|
|
5105
5297
|
});
|
|
5106
5298
|
Object.assign(contents, doc);
|
|
5107
5299
|
return contents;
|
|
5108
5300
|
};
|
|
5109
|
-
exports.
|
|
5110
|
-
const
|
|
5301
|
+
exports.de_ListIntentsCommand = de_ListIntentsCommand;
|
|
5302
|
+
const de_ListIntentsCommandError = async (output, context) => {
|
|
5111
5303
|
const parsedOutput = {
|
|
5112
5304
|
...output,
|
|
5113
5305
|
body: await parseErrorBody(output.body, context),
|
|
@@ -5135,9 +5327,9 @@ const de_ListSlotsCommandError = async (output, context) => {
|
|
|
5135
5327
|
});
|
|
5136
5328
|
}
|
|
5137
5329
|
};
|
|
5138
|
-
const
|
|
5330
|
+
const de_ListIntentStageMetricsCommand = async (output, context) => {
|
|
5139
5331
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5140
|
-
return
|
|
5332
|
+
return de_ListIntentStageMetricsCommandError(output, context);
|
|
5141
5333
|
}
|
|
5142
5334
|
const contents = (0, smithy_client_1.map)({
|
|
5143
5335
|
$metadata: deserializeMetadata(output),
|
|
@@ -5145,16 +5337,14 @@ const de_ListSlotTypesCommand = async (output, context) => {
|
|
|
5145
5337
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5146
5338
|
const doc = (0, smithy_client_1.take)(data, {
|
|
5147
5339
|
botId: smithy_client_1.expectString,
|
|
5148
|
-
botVersion: smithy_client_1.expectString,
|
|
5149
|
-
localeId: smithy_client_1.expectString,
|
|
5150
5340
|
nextToken: smithy_client_1.expectString,
|
|
5151
|
-
|
|
5341
|
+
results: (_) => de_AnalyticsIntentStageResults(_, context),
|
|
5152
5342
|
});
|
|
5153
5343
|
Object.assign(contents, doc);
|
|
5154
5344
|
return contents;
|
|
5155
5345
|
};
|
|
5156
|
-
exports.
|
|
5157
|
-
const
|
|
5346
|
+
exports.de_ListIntentStageMetricsCommand = de_ListIntentStageMetricsCommand;
|
|
5347
|
+
const de_ListIntentStageMetricsCommandError = async (output, context) => {
|
|
5158
5348
|
const parsedOutput = {
|
|
5159
5349
|
...output,
|
|
5160
5350
|
body: await parseErrorBody(output.body, context),
|
|
@@ -5164,6 +5354,9 @@ const de_ListSlotTypesCommandError = async (output, context) => {
|
|
|
5164
5354
|
case "InternalServerException":
|
|
5165
5355
|
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5166
5356
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5357
|
+
case "PreconditionFailedException":
|
|
5358
|
+
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
5359
|
+
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
5167
5360
|
case "ServiceQuotaExceededException":
|
|
5168
5361
|
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5169
5362
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
@@ -5182,22 +5375,27 @@ const de_ListSlotTypesCommandError = async (output, context) => {
|
|
|
5182
5375
|
});
|
|
5183
5376
|
}
|
|
5184
5377
|
};
|
|
5185
|
-
const
|
|
5378
|
+
const de_ListRecommendedIntentsCommand = async (output, context) => {
|
|
5186
5379
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5187
|
-
return
|
|
5380
|
+
return de_ListRecommendedIntentsCommandError(output, context);
|
|
5188
5381
|
}
|
|
5189
5382
|
const contents = (0, smithy_client_1.map)({
|
|
5190
5383
|
$metadata: deserializeMetadata(output),
|
|
5191
5384
|
});
|
|
5192
5385
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5193
5386
|
const doc = (0, smithy_client_1.take)(data, {
|
|
5194
|
-
|
|
5387
|
+
botId: smithy_client_1.expectString,
|
|
5388
|
+
botRecommendationId: smithy_client_1.expectString,
|
|
5389
|
+
botVersion: smithy_client_1.expectString,
|
|
5390
|
+
localeId: smithy_client_1.expectString,
|
|
5391
|
+
nextToken: smithy_client_1.expectString,
|
|
5392
|
+
summaryList: smithy_client_1._json,
|
|
5195
5393
|
});
|
|
5196
5394
|
Object.assign(contents, doc);
|
|
5197
5395
|
return contents;
|
|
5198
5396
|
};
|
|
5199
|
-
exports.
|
|
5200
|
-
const
|
|
5397
|
+
exports.de_ListRecommendedIntentsCommand = de_ListRecommendedIntentsCommand;
|
|
5398
|
+
const de_ListRecommendedIntentsCommandError = async (output, context) => {
|
|
5201
5399
|
const parsedOutput = {
|
|
5202
5400
|
...output,
|
|
5203
5401
|
body: await parseErrorBody(output.body, context),
|
|
@@ -5210,6 +5408,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
5210
5408
|
case "ResourceNotFoundException":
|
|
5211
5409
|
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
5212
5410
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5411
|
+
case "ServiceQuotaExceededException":
|
|
5412
|
+
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5413
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5213
5414
|
case "ThrottlingException":
|
|
5214
5415
|
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5215
5416
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -5225,23 +5426,24 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
5225
5426
|
});
|
|
5226
5427
|
}
|
|
5227
5428
|
};
|
|
5228
|
-
const
|
|
5429
|
+
const de_ListSessionAnalyticsDataCommand = async (output, context) => {
|
|
5229
5430
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5230
|
-
return
|
|
5431
|
+
return de_ListSessionAnalyticsDataCommandError(output, context);
|
|
5231
5432
|
}
|
|
5232
5433
|
const contents = (0, smithy_client_1.map)({
|
|
5233
5434
|
$metadata: deserializeMetadata(output),
|
|
5234
5435
|
});
|
|
5235
5436
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5236
5437
|
const doc = (0, smithy_client_1.take)(data, {
|
|
5438
|
+
botId: smithy_client_1.expectString,
|
|
5237
5439
|
nextToken: smithy_client_1.expectString,
|
|
5238
|
-
|
|
5440
|
+
sessions: (_) => de_SessionSpecifications(_, context),
|
|
5239
5441
|
});
|
|
5240
5442
|
Object.assign(contents, doc);
|
|
5241
5443
|
return contents;
|
|
5242
5444
|
};
|
|
5243
|
-
exports.
|
|
5244
|
-
const
|
|
5445
|
+
exports.de_ListSessionAnalyticsDataCommand = de_ListSessionAnalyticsDataCommand;
|
|
5446
|
+
const de_ListSessionAnalyticsDataCommandError = async (output, context) => {
|
|
5245
5447
|
const parsedOutput = {
|
|
5246
5448
|
...output,
|
|
5247
5449
|
body: await parseErrorBody(output.body, context),
|
|
@@ -5251,9 +5453,9 @@ const de_ListTestExecutionResultItemsCommandError = async (output, context) => {
|
|
|
5251
5453
|
case "InternalServerException":
|
|
5252
5454
|
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5253
5455
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5254
|
-
case "
|
|
5255
|
-
case "com.amazonaws.lexmodelsv2#
|
|
5256
|
-
throw await
|
|
5456
|
+
case "PreconditionFailedException":
|
|
5457
|
+
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
5458
|
+
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
5257
5459
|
case "ServiceQuotaExceededException":
|
|
5258
5460
|
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5259
5461
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
@@ -5272,23 +5474,24 @@ const de_ListTestExecutionResultItemsCommandError = async (output, context) => {
|
|
|
5272
5474
|
});
|
|
5273
5475
|
}
|
|
5274
5476
|
};
|
|
5275
|
-
const
|
|
5477
|
+
const de_ListSessionMetricsCommand = async (output, context) => {
|
|
5276
5478
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5277
|
-
return
|
|
5479
|
+
return de_ListSessionMetricsCommandError(output, context);
|
|
5278
5480
|
}
|
|
5279
5481
|
const contents = (0, smithy_client_1.map)({
|
|
5280
5482
|
$metadata: deserializeMetadata(output),
|
|
5281
5483
|
});
|
|
5282
5484
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5283
5485
|
const doc = (0, smithy_client_1.take)(data, {
|
|
5486
|
+
botId: smithy_client_1.expectString,
|
|
5284
5487
|
nextToken: smithy_client_1.expectString,
|
|
5285
|
-
|
|
5488
|
+
results: (_) => de_AnalyticsSessionResults(_, context),
|
|
5286
5489
|
});
|
|
5287
5490
|
Object.assign(contents, doc);
|
|
5288
5491
|
return contents;
|
|
5289
5492
|
};
|
|
5290
|
-
exports.
|
|
5291
|
-
const
|
|
5493
|
+
exports.de_ListSessionMetricsCommand = de_ListSessionMetricsCommand;
|
|
5494
|
+
const de_ListSessionMetricsCommandError = async (output, context) => {
|
|
5292
5495
|
const parsedOutput = {
|
|
5293
5496
|
...output,
|
|
5294
5497
|
body: await parseErrorBody(output.body, context),
|
|
@@ -5298,6 +5501,9 @@ const de_ListTestExecutionsCommandError = async (output, context) => {
|
|
|
5298
5501
|
case "InternalServerException":
|
|
5299
5502
|
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5300
5503
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5504
|
+
case "PreconditionFailedException":
|
|
5505
|
+
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
5506
|
+
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
5301
5507
|
case "ServiceQuotaExceededException":
|
|
5302
5508
|
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5303
5509
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
@@ -5316,9 +5522,238 @@ const de_ListTestExecutionsCommandError = async (output, context) => {
|
|
|
5316
5522
|
});
|
|
5317
5523
|
}
|
|
5318
5524
|
};
|
|
5319
|
-
const
|
|
5525
|
+
const de_ListSlotsCommand = async (output, context) => {
|
|
5320
5526
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5321
|
-
return
|
|
5527
|
+
return de_ListSlotsCommandError(output, context);
|
|
5528
|
+
}
|
|
5529
|
+
const contents = (0, smithy_client_1.map)({
|
|
5530
|
+
$metadata: deserializeMetadata(output),
|
|
5531
|
+
});
|
|
5532
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5533
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
5534
|
+
botId: smithy_client_1.expectString,
|
|
5535
|
+
botVersion: smithy_client_1.expectString,
|
|
5536
|
+
intentId: smithy_client_1.expectString,
|
|
5537
|
+
localeId: smithy_client_1.expectString,
|
|
5538
|
+
nextToken: smithy_client_1.expectString,
|
|
5539
|
+
slotSummaries: (_) => de_SlotSummaryList(_, context),
|
|
5540
|
+
});
|
|
5541
|
+
Object.assign(contents, doc);
|
|
5542
|
+
return contents;
|
|
5543
|
+
};
|
|
5544
|
+
exports.de_ListSlotsCommand = de_ListSlotsCommand;
|
|
5545
|
+
const de_ListSlotsCommandError = async (output, context) => {
|
|
5546
|
+
const parsedOutput = {
|
|
5547
|
+
...output,
|
|
5548
|
+
body: await parseErrorBody(output.body, context),
|
|
5549
|
+
};
|
|
5550
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5551
|
+
switch (errorCode) {
|
|
5552
|
+
case "InternalServerException":
|
|
5553
|
+
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5554
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5555
|
+
case "ServiceQuotaExceededException":
|
|
5556
|
+
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5557
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5558
|
+
case "ThrottlingException":
|
|
5559
|
+
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5560
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5561
|
+
case "ValidationException":
|
|
5562
|
+
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5563
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5564
|
+
default:
|
|
5565
|
+
const parsedBody = parsedOutput.body;
|
|
5566
|
+
return throwDefaultError({
|
|
5567
|
+
output,
|
|
5568
|
+
parsedBody,
|
|
5569
|
+
errorCode,
|
|
5570
|
+
});
|
|
5571
|
+
}
|
|
5572
|
+
};
|
|
5573
|
+
const de_ListSlotTypesCommand = async (output, context) => {
|
|
5574
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5575
|
+
return de_ListSlotTypesCommandError(output, context);
|
|
5576
|
+
}
|
|
5577
|
+
const contents = (0, smithy_client_1.map)({
|
|
5578
|
+
$metadata: deserializeMetadata(output),
|
|
5579
|
+
});
|
|
5580
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5581
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
5582
|
+
botId: smithy_client_1.expectString,
|
|
5583
|
+
botVersion: smithy_client_1.expectString,
|
|
5584
|
+
localeId: smithy_client_1.expectString,
|
|
5585
|
+
nextToken: smithy_client_1.expectString,
|
|
5586
|
+
slotTypeSummaries: (_) => de_SlotTypeSummaryList(_, context),
|
|
5587
|
+
});
|
|
5588
|
+
Object.assign(contents, doc);
|
|
5589
|
+
return contents;
|
|
5590
|
+
};
|
|
5591
|
+
exports.de_ListSlotTypesCommand = de_ListSlotTypesCommand;
|
|
5592
|
+
const de_ListSlotTypesCommandError = async (output, context) => {
|
|
5593
|
+
const parsedOutput = {
|
|
5594
|
+
...output,
|
|
5595
|
+
body: await parseErrorBody(output.body, context),
|
|
5596
|
+
};
|
|
5597
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5598
|
+
switch (errorCode) {
|
|
5599
|
+
case "InternalServerException":
|
|
5600
|
+
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5601
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5602
|
+
case "ServiceQuotaExceededException":
|
|
5603
|
+
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5604
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5605
|
+
case "ThrottlingException":
|
|
5606
|
+
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5607
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5608
|
+
case "ValidationException":
|
|
5609
|
+
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5610
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5611
|
+
default:
|
|
5612
|
+
const parsedBody = parsedOutput.body;
|
|
5613
|
+
return throwDefaultError({
|
|
5614
|
+
output,
|
|
5615
|
+
parsedBody,
|
|
5616
|
+
errorCode,
|
|
5617
|
+
});
|
|
5618
|
+
}
|
|
5619
|
+
};
|
|
5620
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
5621
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5622
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
5623
|
+
}
|
|
5624
|
+
const contents = (0, smithy_client_1.map)({
|
|
5625
|
+
$metadata: deserializeMetadata(output),
|
|
5626
|
+
});
|
|
5627
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5628
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
5629
|
+
tags: smithy_client_1._json,
|
|
5630
|
+
});
|
|
5631
|
+
Object.assign(contents, doc);
|
|
5632
|
+
return contents;
|
|
5633
|
+
};
|
|
5634
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
5635
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
5636
|
+
const parsedOutput = {
|
|
5637
|
+
...output,
|
|
5638
|
+
body: await parseErrorBody(output.body, context),
|
|
5639
|
+
};
|
|
5640
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5641
|
+
switch (errorCode) {
|
|
5642
|
+
case "InternalServerException":
|
|
5643
|
+
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5644
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5645
|
+
case "ResourceNotFoundException":
|
|
5646
|
+
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
5647
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5648
|
+
case "ThrottlingException":
|
|
5649
|
+
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5650
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5651
|
+
case "ValidationException":
|
|
5652
|
+
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5653
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5654
|
+
default:
|
|
5655
|
+
const parsedBody = parsedOutput.body;
|
|
5656
|
+
return throwDefaultError({
|
|
5657
|
+
output,
|
|
5658
|
+
parsedBody,
|
|
5659
|
+
errorCode,
|
|
5660
|
+
});
|
|
5661
|
+
}
|
|
5662
|
+
};
|
|
5663
|
+
const de_ListTestExecutionResultItemsCommand = async (output, context) => {
|
|
5664
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5665
|
+
return de_ListTestExecutionResultItemsCommandError(output, context);
|
|
5666
|
+
}
|
|
5667
|
+
const contents = (0, smithy_client_1.map)({
|
|
5668
|
+
$metadata: deserializeMetadata(output),
|
|
5669
|
+
});
|
|
5670
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5671
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
5672
|
+
nextToken: smithy_client_1.expectString,
|
|
5673
|
+
testExecutionResults: (_) => de_TestExecutionResultItems(_, context),
|
|
5674
|
+
});
|
|
5675
|
+
Object.assign(contents, doc);
|
|
5676
|
+
return contents;
|
|
5677
|
+
};
|
|
5678
|
+
exports.de_ListTestExecutionResultItemsCommand = de_ListTestExecutionResultItemsCommand;
|
|
5679
|
+
const de_ListTestExecutionResultItemsCommandError = async (output, context) => {
|
|
5680
|
+
const parsedOutput = {
|
|
5681
|
+
...output,
|
|
5682
|
+
body: await parseErrorBody(output.body, context),
|
|
5683
|
+
};
|
|
5684
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5685
|
+
switch (errorCode) {
|
|
5686
|
+
case "InternalServerException":
|
|
5687
|
+
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5688
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5689
|
+
case "ResourceNotFoundException":
|
|
5690
|
+
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
5691
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5692
|
+
case "ServiceQuotaExceededException":
|
|
5693
|
+
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5694
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5695
|
+
case "ThrottlingException":
|
|
5696
|
+
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5697
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5698
|
+
case "ValidationException":
|
|
5699
|
+
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5700
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5701
|
+
default:
|
|
5702
|
+
const parsedBody = parsedOutput.body;
|
|
5703
|
+
return throwDefaultError({
|
|
5704
|
+
output,
|
|
5705
|
+
parsedBody,
|
|
5706
|
+
errorCode,
|
|
5707
|
+
});
|
|
5708
|
+
}
|
|
5709
|
+
};
|
|
5710
|
+
const de_ListTestExecutionsCommand = async (output, context) => {
|
|
5711
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5712
|
+
return de_ListTestExecutionsCommandError(output, context);
|
|
5713
|
+
}
|
|
5714
|
+
const contents = (0, smithy_client_1.map)({
|
|
5715
|
+
$metadata: deserializeMetadata(output),
|
|
5716
|
+
});
|
|
5717
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5718
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
5719
|
+
nextToken: smithy_client_1.expectString,
|
|
5720
|
+
testExecutions: (_) => de_TestExecutionSummaryList(_, context),
|
|
5721
|
+
});
|
|
5722
|
+
Object.assign(contents, doc);
|
|
5723
|
+
return contents;
|
|
5724
|
+
};
|
|
5725
|
+
exports.de_ListTestExecutionsCommand = de_ListTestExecutionsCommand;
|
|
5726
|
+
const de_ListTestExecutionsCommandError = async (output, context) => {
|
|
5727
|
+
const parsedOutput = {
|
|
5728
|
+
...output,
|
|
5729
|
+
body: await parseErrorBody(output.body, context),
|
|
5730
|
+
};
|
|
5731
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5732
|
+
switch (errorCode) {
|
|
5733
|
+
case "InternalServerException":
|
|
5734
|
+
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5735
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5736
|
+
case "ServiceQuotaExceededException":
|
|
5737
|
+
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5738
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5739
|
+
case "ThrottlingException":
|
|
5740
|
+
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5741
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5742
|
+
case "ValidationException":
|
|
5743
|
+
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5744
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5745
|
+
default:
|
|
5746
|
+
const parsedBody = parsedOutput.body;
|
|
5747
|
+
return throwDefaultError({
|
|
5748
|
+
output,
|
|
5749
|
+
parsedBody,
|
|
5750
|
+
errorCode,
|
|
5751
|
+
});
|
|
5752
|
+
}
|
|
5753
|
+
};
|
|
5754
|
+
const de_ListTestSetRecordsCommand = async (output, context) => {
|
|
5755
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5756
|
+
return de_ListTestSetRecordsCommandError(output, context);
|
|
5322
5757
|
}
|
|
5323
5758
|
const contents = (0, smithy_client_1.map)({
|
|
5324
5759
|
$metadata: deserializeMetadata(output),
|
|
@@ -5407,6 +5842,102 @@ const de_ListTestSetsCommandError = async (output, context) => {
|
|
|
5407
5842
|
});
|
|
5408
5843
|
}
|
|
5409
5844
|
};
|
|
5845
|
+
const de_ListUtteranceAnalyticsDataCommand = async (output, context) => {
|
|
5846
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5847
|
+
return de_ListUtteranceAnalyticsDataCommandError(output, context);
|
|
5848
|
+
}
|
|
5849
|
+
const contents = (0, smithy_client_1.map)({
|
|
5850
|
+
$metadata: deserializeMetadata(output),
|
|
5851
|
+
});
|
|
5852
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5853
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
5854
|
+
botId: smithy_client_1.expectString,
|
|
5855
|
+
nextToken: smithy_client_1.expectString,
|
|
5856
|
+
utterances: (_) => de_UtteranceSpecifications(_, context),
|
|
5857
|
+
});
|
|
5858
|
+
Object.assign(contents, doc);
|
|
5859
|
+
return contents;
|
|
5860
|
+
};
|
|
5861
|
+
exports.de_ListUtteranceAnalyticsDataCommand = de_ListUtteranceAnalyticsDataCommand;
|
|
5862
|
+
const de_ListUtteranceAnalyticsDataCommandError = async (output, context) => {
|
|
5863
|
+
const parsedOutput = {
|
|
5864
|
+
...output,
|
|
5865
|
+
body: await parseErrorBody(output.body, context),
|
|
5866
|
+
};
|
|
5867
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5868
|
+
switch (errorCode) {
|
|
5869
|
+
case "InternalServerException":
|
|
5870
|
+
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5871
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5872
|
+
case "PreconditionFailedException":
|
|
5873
|
+
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
5874
|
+
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
5875
|
+
case "ServiceQuotaExceededException":
|
|
5876
|
+
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5877
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5878
|
+
case "ThrottlingException":
|
|
5879
|
+
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5880
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5881
|
+
case "ValidationException":
|
|
5882
|
+
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5883
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5884
|
+
default:
|
|
5885
|
+
const parsedBody = parsedOutput.body;
|
|
5886
|
+
return throwDefaultError({
|
|
5887
|
+
output,
|
|
5888
|
+
parsedBody,
|
|
5889
|
+
errorCode,
|
|
5890
|
+
});
|
|
5891
|
+
}
|
|
5892
|
+
};
|
|
5893
|
+
const de_ListUtteranceMetricsCommand = async (output, context) => {
|
|
5894
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5895
|
+
return de_ListUtteranceMetricsCommandError(output, context);
|
|
5896
|
+
}
|
|
5897
|
+
const contents = (0, smithy_client_1.map)({
|
|
5898
|
+
$metadata: deserializeMetadata(output),
|
|
5899
|
+
});
|
|
5900
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5901
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
5902
|
+
botId: smithy_client_1.expectString,
|
|
5903
|
+
nextToken: smithy_client_1.expectString,
|
|
5904
|
+
results: (_) => de_AnalyticsUtteranceResults(_, context),
|
|
5905
|
+
});
|
|
5906
|
+
Object.assign(contents, doc);
|
|
5907
|
+
return contents;
|
|
5908
|
+
};
|
|
5909
|
+
exports.de_ListUtteranceMetricsCommand = de_ListUtteranceMetricsCommand;
|
|
5910
|
+
const de_ListUtteranceMetricsCommandError = async (output, context) => {
|
|
5911
|
+
const parsedOutput = {
|
|
5912
|
+
...output,
|
|
5913
|
+
body: await parseErrorBody(output.body, context),
|
|
5914
|
+
};
|
|
5915
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5916
|
+
switch (errorCode) {
|
|
5917
|
+
case "InternalServerException":
|
|
5918
|
+
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5919
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5920
|
+
case "PreconditionFailedException":
|
|
5921
|
+
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
5922
|
+
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
5923
|
+
case "ServiceQuotaExceededException":
|
|
5924
|
+
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5925
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5926
|
+
case "ThrottlingException":
|
|
5927
|
+
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5928
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5929
|
+
case "ValidationException":
|
|
5930
|
+
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5931
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5932
|
+
default:
|
|
5933
|
+
const parsedBody = parsedOutput.body;
|
|
5934
|
+
return throwDefaultError({
|
|
5935
|
+
output,
|
|
5936
|
+
parsedBody,
|
|
5937
|
+
errorCode,
|
|
5938
|
+
});
|
|
5939
|
+
}
|
|
5940
|
+
};
|
|
5410
5941
|
const de_SearchAssociatedTranscriptsCommand = async (output, context) => {
|
|
5411
5942
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5412
5943
|
return de_SearchAssociatedTranscriptsCommandError(output, context);
|
|
@@ -6770,6 +7301,127 @@ const de_AggregatedUtterancesSummaryList = (output, context) => {
|
|
|
6770
7301
|
});
|
|
6771
7302
|
return retVal;
|
|
6772
7303
|
};
|
|
7304
|
+
const de_AnalyticsIntentMetricResult = (output, context) => {
|
|
7305
|
+
return (0, smithy_client_1.take)(output, {
|
|
7306
|
+
name: smithy_client_1.expectString,
|
|
7307
|
+
statistic: smithy_client_1.expectString,
|
|
7308
|
+
value: smithy_client_1.limitedParseDouble,
|
|
7309
|
+
});
|
|
7310
|
+
};
|
|
7311
|
+
const de_AnalyticsIntentMetricResults = (output, context) => {
|
|
7312
|
+
const retVal = (output || [])
|
|
7313
|
+
.filter((e) => e != null)
|
|
7314
|
+
.map((entry) => {
|
|
7315
|
+
return de_AnalyticsIntentMetricResult(entry, context);
|
|
7316
|
+
});
|
|
7317
|
+
return retVal;
|
|
7318
|
+
};
|
|
7319
|
+
const de_AnalyticsIntentResult = (output, context) => {
|
|
7320
|
+
return (0, smithy_client_1.take)(output, {
|
|
7321
|
+
binKeys: smithy_client_1._json,
|
|
7322
|
+
groupByKeys: smithy_client_1._json,
|
|
7323
|
+
metricsResults: (_) => de_AnalyticsIntentMetricResults(_, context),
|
|
7324
|
+
});
|
|
7325
|
+
};
|
|
7326
|
+
const de_AnalyticsIntentResults = (output, context) => {
|
|
7327
|
+
const retVal = (output || [])
|
|
7328
|
+
.filter((e) => e != null)
|
|
7329
|
+
.map((entry) => {
|
|
7330
|
+
return de_AnalyticsIntentResult(entry, context);
|
|
7331
|
+
});
|
|
7332
|
+
return retVal;
|
|
7333
|
+
};
|
|
7334
|
+
const de_AnalyticsIntentStageMetricResult = (output, context) => {
|
|
7335
|
+
return (0, smithy_client_1.take)(output, {
|
|
7336
|
+
name: smithy_client_1.expectString,
|
|
7337
|
+
statistic: smithy_client_1.expectString,
|
|
7338
|
+
value: smithy_client_1.limitedParseDouble,
|
|
7339
|
+
});
|
|
7340
|
+
};
|
|
7341
|
+
const de_AnalyticsIntentStageMetricResults = (output, context) => {
|
|
7342
|
+
const retVal = (output || [])
|
|
7343
|
+
.filter((e) => e != null)
|
|
7344
|
+
.map((entry) => {
|
|
7345
|
+
return de_AnalyticsIntentStageMetricResult(entry, context);
|
|
7346
|
+
});
|
|
7347
|
+
return retVal;
|
|
7348
|
+
};
|
|
7349
|
+
const de_AnalyticsIntentStageResult = (output, context) => {
|
|
7350
|
+
return (0, smithy_client_1.take)(output, {
|
|
7351
|
+
binKeys: smithy_client_1._json,
|
|
7352
|
+
groupByKeys: smithy_client_1._json,
|
|
7353
|
+
metricsResults: (_) => de_AnalyticsIntentStageMetricResults(_, context),
|
|
7354
|
+
});
|
|
7355
|
+
};
|
|
7356
|
+
const de_AnalyticsIntentStageResults = (output, context) => {
|
|
7357
|
+
const retVal = (output || [])
|
|
7358
|
+
.filter((e) => e != null)
|
|
7359
|
+
.map((entry) => {
|
|
7360
|
+
return de_AnalyticsIntentStageResult(entry, context);
|
|
7361
|
+
});
|
|
7362
|
+
return retVal;
|
|
7363
|
+
};
|
|
7364
|
+
const de_AnalyticsSessionMetricResult = (output, context) => {
|
|
7365
|
+
return (0, smithy_client_1.take)(output, {
|
|
7366
|
+
name: smithy_client_1.expectString,
|
|
7367
|
+
statistic: smithy_client_1.expectString,
|
|
7368
|
+
value: smithy_client_1.limitedParseDouble,
|
|
7369
|
+
});
|
|
7370
|
+
};
|
|
7371
|
+
const de_AnalyticsSessionMetricResults = (output, context) => {
|
|
7372
|
+
const retVal = (output || [])
|
|
7373
|
+
.filter((e) => e != null)
|
|
7374
|
+
.map((entry) => {
|
|
7375
|
+
return de_AnalyticsSessionMetricResult(entry, context);
|
|
7376
|
+
});
|
|
7377
|
+
return retVal;
|
|
7378
|
+
};
|
|
7379
|
+
const de_AnalyticsSessionResult = (output, context) => {
|
|
7380
|
+
return (0, smithy_client_1.take)(output, {
|
|
7381
|
+
binKeys: smithy_client_1._json,
|
|
7382
|
+
groupByKeys: smithy_client_1._json,
|
|
7383
|
+
metricsResults: (_) => de_AnalyticsSessionMetricResults(_, context),
|
|
7384
|
+
});
|
|
7385
|
+
};
|
|
7386
|
+
const de_AnalyticsSessionResults = (output, context) => {
|
|
7387
|
+
const retVal = (output || [])
|
|
7388
|
+
.filter((e) => e != null)
|
|
7389
|
+
.map((entry) => {
|
|
7390
|
+
return de_AnalyticsSessionResult(entry, context);
|
|
7391
|
+
});
|
|
7392
|
+
return retVal;
|
|
7393
|
+
};
|
|
7394
|
+
const de_AnalyticsUtteranceMetricResult = (output, context) => {
|
|
7395
|
+
return (0, smithy_client_1.take)(output, {
|
|
7396
|
+
name: smithy_client_1.expectString,
|
|
7397
|
+
statistic: smithy_client_1.expectString,
|
|
7398
|
+
value: smithy_client_1.limitedParseDouble,
|
|
7399
|
+
});
|
|
7400
|
+
};
|
|
7401
|
+
const de_AnalyticsUtteranceMetricResults = (output, context) => {
|
|
7402
|
+
const retVal = (output || [])
|
|
7403
|
+
.filter((e) => e != null)
|
|
7404
|
+
.map((entry) => {
|
|
7405
|
+
return de_AnalyticsUtteranceMetricResult(entry, context);
|
|
7406
|
+
});
|
|
7407
|
+
return retVal;
|
|
7408
|
+
};
|
|
7409
|
+
const de_AnalyticsUtteranceResult = (output, context) => {
|
|
7410
|
+
return (0, smithy_client_1.take)(output, {
|
|
7411
|
+
attributeResults: smithy_client_1._json,
|
|
7412
|
+
binKeys: smithy_client_1._json,
|
|
7413
|
+
groupByKeys: smithy_client_1._json,
|
|
7414
|
+
metricsResults: (_) => de_AnalyticsUtteranceMetricResults(_, context),
|
|
7415
|
+
});
|
|
7416
|
+
};
|
|
7417
|
+
const de_AnalyticsUtteranceResults = (output, context) => {
|
|
7418
|
+
const retVal = (output || [])
|
|
7419
|
+
.filter((e) => e != null)
|
|
7420
|
+
.map((entry) => {
|
|
7421
|
+
return de_AnalyticsUtteranceResult(entry, context);
|
|
7422
|
+
});
|
|
7423
|
+
return retVal;
|
|
7424
|
+
};
|
|
6773
7425
|
const de_BotAliasHistoryEvent = (output, context) => {
|
|
6774
7426
|
return (0, smithy_client_1.take)(output, {
|
|
6775
7427
|
botVersion: smithy_client_1.expectString,
|
|
@@ -7132,6 +7784,31 @@ const de_S3BucketTranscriptSource = (output, context) => {
|
|
|
7132
7784
|
transcriptFormat: smithy_client_1.expectString,
|
|
7133
7785
|
});
|
|
7134
7786
|
};
|
|
7787
|
+
const de_SessionSpecification = (output, context) => {
|
|
7788
|
+
return (0, smithy_client_1.take)(output, {
|
|
7789
|
+
botAliasId: smithy_client_1.expectString,
|
|
7790
|
+
botVersion: smithy_client_1.expectString,
|
|
7791
|
+
channel: smithy_client_1.expectString,
|
|
7792
|
+
conversationDurationSeconds: smithy_client_1.expectLong,
|
|
7793
|
+
conversationEndState: smithy_client_1.expectString,
|
|
7794
|
+
conversationEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
7795
|
+
conversationStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
7796
|
+
invokedIntentSamples: smithy_client_1._json,
|
|
7797
|
+
localeId: smithy_client_1.expectString,
|
|
7798
|
+
mode: smithy_client_1.expectString,
|
|
7799
|
+
numberOfTurns: smithy_client_1.expectLong,
|
|
7800
|
+
originatingRequestId: smithy_client_1.expectString,
|
|
7801
|
+
sessionId: smithy_client_1.expectString,
|
|
7802
|
+
});
|
|
7803
|
+
};
|
|
7804
|
+
const de_SessionSpecifications = (output, context) => {
|
|
7805
|
+
const retVal = (output || [])
|
|
7806
|
+
.filter((e) => e != null)
|
|
7807
|
+
.map((entry) => {
|
|
7808
|
+
return de_SessionSpecification(entry, context);
|
|
7809
|
+
});
|
|
7810
|
+
return retVal;
|
|
7811
|
+
};
|
|
7135
7812
|
const de_SlotCaptureSetting = (output, context) => {
|
|
7136
7813
|
return (0, smithy_client_1.take)(output, {
|
|
7137
7814
|
captureConditional: (_) => de_ConditionalSpecification(_, context),
|
|
@@ -7432,6 +8109,40 @@ const de_UtteranceLevelTestResults = (output, context) => {
|
|
|
7432
8109
|
items: (_) => de_UtteranceLevelTestResultItemList(_, context),
|
|
7433
8110
|
});
|
|
7434
8111
|
};
|
|
8112
|
+
const de_UtteranceSpecification = (output, context) => {
|
|
8113
|
+
return (0, smithy_client_1.take)(output, {
|
|
8114
|
+
associatedIntentName: smithy_client_1.expectString,
|
|
8115
|
+
associatedSlotName: smithy_client_1.expectString,
|
|
8116
|
+
audioVoiceDurationMillis: smithy_client_1.expectLong,
|
|
8117
|
+
botAliasId: smithy_client_1.expectString,
|
|
8118
|
+
botResponseAudioVoiceId: smithy_client_1.expectString,
|
|
8119
|
+
botResponses: smithy_client_1._json,
|
|
8120
|
+
botVersion: smithy_client_1.expectString,
|
|
8121
|
+
channel: smithy_client_1.expectString,
|
|
8122
|
+
conversationEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
8123
|
+
conversationStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
8124
|
+
dialogActionType: smithy_client_1.expectString,
|
|
8125
|
+
inputType: smithy_client_1.expectString,
|
|
8126
|
+
intentState: smithy_client_1.expectString,
|
|
8127
|
+
localeId: smithy_client_1.expectString,
|
|
8128
|
+
mode: smithy_client_1.expectString,
|
|
8129
|
+
outputType: smithy_client_1.expectString,
|
|
8130
|
+
sessionId: smithy_client_1.expectString,
|
|
8131
|
+
slotsFilledInSession: smithy_client_1.expectString,
|
|
8132
|
+
utterance: smithy_client_1.expectString,
|
|
8133
|
+
utteranceRequestId: smithy_client_1.expectString,
|
|
8134
|
+
utteranceTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
8135
|
+
utteranceUnderstood: smithy_client_1.expectBoolean,
|
|
8136
|
+
});
|
|
8137
|
+
};
|
|
8138
|
+
const de_UtteranceSpecifications = (output, context) => {
|
|
8139
|
+
const retVal = (output || [])
|
|
8140
|
+
.filter((e) => e != null)
|
|
8141
|
+
.map((entry) => {
|
|
8142
|
+
return de_UtteranceSpecification(entry, context);
|
|
8143
|
+
});
|
|
8144
|
+
return retVal;
|
|
8145
|
+
};
|
|
7435
8146
|
const deserializeMetadata = (output) => ({
|
|
7436
8147
|
httpStatusCode: output.statusCode,
|
|
7437
8148
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|