@aws-sdk/client-lex-models-v2 3.454.0 → 3.460.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 +124 -92
- package/dist-cjs/LexModelsV2.js +8 -0
- package/dist-cjs/commands/DescribeBotResourceGenerationCommand.js +51 -0
- package/dist-cjs/commands/GenerateBotElementCommand.js +51 -0
- package/dist-cjs/commands/ListBotResourceGenerationsCommand.js +51 -0
- package/dist-cjs/commands/StartBotResourceGenerationCommand.js +51 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +10 -5
- package/dist-cjs/models/models_1.js +9 -1
- package/dist-cjs/pagination/ListBotResourceGenerationsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +336 -4
- package/dist-es/LexModelsV2.js +8 -0
- package/dist-es/commands/DescribeBotResourceGenerationCommand.js +47 -0
- package/dist-es/commands/GenerateBotElementCommand.js +47 -0
- package/dist-es/commands/ListBotResourceGenerationsCommand.js +47 -0
- package/dist-es/commands/StartBotResourceGenerationCommand.js +47 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +9 -4
- package/dist-es/models/models_1.js +8 -0
- package/dist-es/pagination/ListBotResourceGenerationsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +324 -0
- package/dist-types/LexModelsV2.d.ts +28 -0
- package/dist-types/LexModelsV2Client.d.ts +6 -2
- package/dist-types/commands/CreateBotLocaleCommand.d.ts +48 -0
- package/dist-types/commands/CreateBotVersionCommand.d.ts +5 -6
- package/dist-types/commands/CreateSlotCommand.d.ts +6 -0
- package/dist-types/commands/DescribeBotLocaleCommand.d.ts +24 -0
- package/dist-types/commands/DescribeBotResourceGenerationCommand.d.ts +107 -0
- package/dist-types/commands/DescribeImportCommand.d.ts +2 -1
- package/dist-types/commands/DescribeIntentCommand.d.ts +1 -2
- package/dist-types/commands/DescribeResourcePolicyCommand.d.ts +1 -1
- package/dist-types/commands/DescribeSlotCommand.d.ts +4 -2
- package/dist-types/commands/DescribeSlotTypeCommand.d.ts +1 -2
- package/dist-types/commands/GenerateBotElementCommand.d.ts +113 -0
- package/dist-types/commands/ListBotResourceGenerationsCommand.d.ts +108 -0
- package/dist-types/commands/StartBotResourceGenerationCommand.d.ts +111 -0
- package/dist-types/commands/UpdateBotLocaleCommand.d.ts +48 -0
- package/dist-types/commands/UpdateSlotCommand.d.ts +6 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +240 -318
- package/dist-types/models/models_1.d.ts +594 -1
- package/dist-types/pagination/ListBotResourceGenerationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
- package/dist-types/ts3.4/LexModelsV2.d.ts +68 -0
- package/dist-types/ts3.4/LexModelsV2Client.d.ts +24 -0
- package/dist-types/ts3.4/commands/DescribeBotResourceGenerationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeImportCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/DescribeIntentCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/DescribeResourcePolicyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeSlotCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/DescribeSlotTypeCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/GenerateBotElementCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListBotResourceGenerationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StartBotResourceGenerationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +64 -72
- package/dist-types/ts3.4/models/models_1.d.ts +140 -4
- package/dist-types/ts3.4/pagination/ListBotResourceGenerationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
- package/package.json +12 -12
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
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_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;
|
|
3
|
+
exports.se_ListAggregatedUtterancesCommand = exports.se_GetTestExecutionArtifactsUrlCommand = exports.se_GenerateBotElementCommand = 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_DescribeBotResourceGenerationCommand = 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.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_StartBotResourceGenerationCommand = 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_ListBotResourceGenerationsCommand = exports.se_ListBotRecommendationsCommand = exports.se_ListBotLocalesCommand = exports.se_ListBotAliasesCommand = void 0;
|
|
5
|
+
exports.de_ListBotResourceGenerationsCommand = exports.de_ListBotRecommendationsCommand = exports.de_ListBotLocalesCommand = exports.de_ListBotAliasesCommand = exports.de_ListAggregatedUtterancesCommand = exports.de_GetTestExecutionArtifactsUrlCommand = exports.de_GenerateBotElementCommand = 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_DescribeBotResourceGenerationCommand = 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 = exports.de_CreateBotVersionCommand = exports.de_CreateBotLocaleCommand = exports.de_CreateBotAliasCommand = exports.de_CreateBotCommand = 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_StartBotResourceGenerationCommand = 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 = exports.de_ListImportsCommand = exports.de_ListExportsCommand = exports.de_ListCustomVocabularyItemsCommand = exports.de_ListBuiltInSlotTypesCommand = exports.de_ListBuiltInIntentsCommand = exports.de_ListBotVersionsCommand = exports.de_ListBotsCommand = 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");
|
|
@@ -172,6 +172,7 @@ const se_CreateBotLocaleCommand = async (input, context) => {
|
|
|
172
172
|
let body;
|
|
173
173
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
174
174
|
description: [],
|
|
175
|
+
generativeAISettings: (_) => (0, smithy_client_1._json)(_),
|
|
175
176
|
localeId: [],
|
|
176
177
|
nluIntentConfidenceThreshold: (_) => (0, smithy_client_1.serializeFloat)(_),
|
|
177
178
|
voiceSettings: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -803,6 +804,27 @@ const se_DescribeBotRecommendationCommand = async (input, context) => {
|
|
|
803
804
|
});
|
|
804
805
|
};
|
|
805
806
|
exports.se_DescribeBotRecommendationCommand = se_DescribeBotRecommendationCommand;
|
|
807
|
+
const se_DescribeBotResourceGenerationCommand = async (input, context) => {
|
|
808
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
809
|
+
const headers = {};
|
|
810
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
811
|
+
"/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/generations/{generationId}";
|
|
812
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
|
|
813
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
|
|
814
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
|
|
815
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "generationId", () => input.generationId, "{generationId}", false);
|
|
816
|
+
let body;
|
|
817
|
+
return new protocol_http_1.HttpRequest({
|
|
818
|
+
protocol,
|
|
819
|
+
hostname,
|
|
820
|
+
port,
|
|
821
|
+
method: "GET",
|
|
822
|
+
headers,
|
|
823
|
+
path: resolvedPath,
|
|
824
|
+
body,
|
|
825
|
+
});
|
|
826
|
+
};
|
|
827
|
+
exports.se_DescribeBotResourceGenerationCommand = se_DescribeBotResourceGenerationCommand;
|
|
806
828
|
const se_DescribeBotVersionCommand = async (input, context) => {
|
|
807
829
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
808
830
|
const headers = {};
|
|
@@ -1025,6 +1047,31 @@ const se_DescribeTestSetGenerationCommand = async (input, context) => {
|
|
|
1025
1047
|
});
|
|
1026
1048
|
};
|
|
1027
1049
|
exports.se_DescribeTestSetGenerationCommand = se_DescribeTestSetGenerationCommand;
|
|
1050
|
+
const se_GenerateBotElementCommand = async (input, context) => {
|
|
1051
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1052
|
+
const headers = {
|
|
1053
|
+
"content-type": "application/json",
|
|
1054
|
+
};
|
|
1055
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1056
|
+
"/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/generate";
|
|
1057
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
|
|
1058
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
|
|
1059
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
|
|
1060
|
+
let body;
|
|
1061
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1062
|
+
intentId: [],
|
|
1063
|
+
}));
|
|
1064
|
+
return new protocol_http_1.HttpRequest({
|
|
1065
|
+
protocol,
|
|
1066
|
+
hostname,
|
|
1067
|
+
port,
|
|
1068
|
+
method: "POST",
|
|
1069
|
+
headers,
|
|
1070
|
+
path: resolvedPath,
|
|
1071
|
+
body,
|
|
1072
|
+
});
|
|
1073
|
+
};
|
|
1074
|
+
exports.se_GenerateBotElementCommand = se_GenerateBotElementCommand;
|
|
1028
1075
|
const se_GetTestExecutionArtifactsUrlCommand = async (input, context) => {
|
|
1029
1076
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1030
1077
|
const headers = {};
|
|
@@ -1148,6 +1195,33 @@ const se_ListBotRecommendationsCommand = async (input, context) => {
|
|
|
1148
1195
|
});
|
|
1149
1196
|
};
|
|
1150
1197
|
exports.se_ListBotRecommendationsCommand = se_ListBotRecommendationsCommand;
|
|
1198
|
+
const se_ListBotResourceGenerationsCommand = async (input, context) => {
|
|
1199
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1200
|
+
const headers = {
|
|
1201
|
+
"content-type": "application/json",
|
|
1202
|
+
};
|
|
1203
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1204
|
+
"/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/generations";
|
|
1205
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
|
|
1206
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
|
|
1207
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
|
|
1208
|
+
let body;
|
|
1209
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1210
|
+
maxResults: [],
|
|
1211
|
+
nextToken: [],
|
|
1212
|
+
sortBy: (_) => (0, smithy_client_1._json)(_),
|
|
1213
|
+
}));
|
|
1214
|
+
return new protocol_http_1.HttpRequest({
|
|
1215
|
+
protocol,
|
|
1216
|
+
hostname,
|
|
1217
|
+
port,
|
|
1218
|
+
method: "POST",
|
|
1219
|
+
headers,
|
|
1220
|
+
path: resolvedPath,
|
|
1221
|
+
body,
|
|
1222
|
+
});
|
|
1223
|
+
};
|
|
1224
|
+
exports.se_ListBotResourceGenerationsCommand = se_ListBotResourceGenerationsCommand;
|
|
1151
1225
|
const se_ListBotsCommand = async (input, context) => {
|
|
1152
1226
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1153
1227
|
const headers = {
|
|
@@ -1798,6 +1872,31 @@ const se_StartBotRecommendationCommand = async (input, context) => {
|
|
|
1798
1872
|
});
|
|
1799
1873
|
};
|
|
1800
1874
|
exports.se_StartBotRecommendationCommand = se_StartBotRecommendationCommand;
|
|
1875
|
+
const se_StartBotResourceGenerationCommand = async (input, context) => {
|
|
1876
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1877
|
+
const headers = {
|
|
1878
|
+
"content-type": "application/json",
|
|
1879
|
+
};
|
|
1880
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1881
|
+
"/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/startgeneration";
|
|
1882
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
|
|
1883
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
|
|
1884
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
|
|
1885
|
+
let body;
|
|
1886
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1887
|
+
generationInputPrompt: [],
|
|
1888
|
+
}));
|
|
1889
|
+
return new protocol_http_1.HttpRequest({
|
|
1890
|
+
protocol,
|
|
1891
|
+
hostname,
|
|
1892
|
+
port,
|
|
1893
|
+
method: "PUT",
|
|
1894
|
+
headers,
|
|
1895
|
+
path: resolvedPath,
|
|
1896
|
+
body,
|
|
1897
|
+
});
|
|
1898
|
+
};
|
|
1899
|
+
exports.se_StartBotResourceGenerationCommand = se_StartBotResourceGenerationCommand;
|
|
1801
1900
|
const se_StartImportCommand = async (input, context) => {
|
|
1802
1901
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1803
1902
|
const headers = {
|
|
@@ -2008,6 +2107,7 @@ const se_UpdateBotLocaleCommand = async (input, context) => {
|
|
|
2008
2107
|
let body;
|
|
2009
2108
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2010
2109
|
description: [],
|
|
2110
|
+
generativeAISettings: (_) => (0, smithy_client_1._json)(_),
|
|
2011
2111
|
nluIntentConfidenceThreshold: (_) => (0, smithy_client_1.serializeFloat)(_),
|
|
2012
2112
|
voiceSettings: (_) => (0, smithy_client_1._json)(_),
|
|
2013
2113
|
}));
|
|
@@ -2558,6 +2658,7 @@ const de_CreateBotLocaleCommand = async (output, context) => {
|
|
|
2558
2658
|
botVersion: smithy_client_1.expectString,
|
|
2559
2659
|
creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2560
2660
|
description: smithy_client_1.expectString,
|
|
2661
|
+
generativeAISettings: smithy_client_1._json,
|
|
2561
2662
|
localeId: smithy_client_1.expectString,
|
|
2562
2663
|
localeName: smithy_client_1.expectString,
|
|
2563
2664
|
nluIntentConfidenceThreshold: smithy_client_1.limitedParseDouble,
|
|
@@ -3881,6 +3982,7 @@ const de_DescribeBotLocaleCommand = async (output, context) => {
|
|
|
3881
3982
|
creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3882
3983
|
description: smithy_client_1.expectString,
|
|
3883
3984
|
failureReasons: smithy_client_1._json,
|
|
3985
|
+
generativeAISettings: smithy_client_1._json,
|
|
3884
3986
|
intentsCount: smithy_client_1.expectInt32,
|
|
3885
3987
|
lastBuildSubmittedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3886
3988
|
lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
@@ -3979,6 +4081,59 @@ const de_DescribeBotRecommendationCommandError = async (output, context) => {
|
|
|
3979
4081
|
});
|
|
3980
4082
|
}
|
|
3981
4083
|
};
|
|
4084
|
+
const de_DescribeBotResourceGenerationCommand = async (output, context) => {
|
|
4085
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4086
|
+
return de_DescribeBotResourceGenerationCommandError(output, context);
|
|
4087
|
+
}
|
|
4088
|
+
const contents = (0, smithy_client_1.map)({
|
|
4089
|
+
$metadata: deserializeMetadata(output),
|
|
4090
|
+
});
|
|
4091
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4092
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4093
|
+
botId: smithy_client_1.expectString,
|
|
4094
|
+
botVersion: smithy_client_1.expectString,
|
|
4095
|
+
creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4096
|
+
failureReasons: smithy_client_1._json,
|
|
4097
|
+
generatedBotLocaleUrl: smithy_client_1.expectString,
|
|
4098
|
+
generationId: smithy_client_1.expectString,
|
|
4099
|
+
generationInputPrompt: smithy_client_1.expectString,
|
|
4100
|
+
generationStatus: smithy_client_1.expectString,
|
|
4101
|
+
lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4102
|
+
localeId: smithy_client_1.expectString,
|
|
4103
|
+
modelArn: smithy_client_1.expectString,
|
|
4104
|
+
});
|
|
4105
|
+
Object.assign(contents, doc);
|
|
4106
|
+
return contents;
|
|
4107
|
+
};
|
|
4108
|
+
exports.de_DescribeBotResourceGenerationCommand = de_DescribeBotResourceGenerationCommand;
|
|
4109
|
+
const de_DescribeBotResourceGenerationCommandError = async (output, context) => {
|
|
4110
|
+
const parsedOutput = {
|
|
4111
|
+
...output,
|
|
4112
|
+
body: await parseErrorBody(output.body, context),
|
|
4113
|
+
};
|
|
4114
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4115
|
+
switch (errorCode) {
|
|
4116
|
+
case "InternalServerException":
|
|
4117
|
+
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4118
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4119
|
+
case "ResourceNotFoundException":
|
|
4120
|
+
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
4121
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4122
|
+
case "ThrottlingException":
|
|
4123
|
+
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4124
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4125
|
+
case "ValidationException":
|
|
4126
|
+
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
4127
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4128
|
+
default:
|
|
4129
|
+
const parsedBody = parsedOutput.body;
|
|
4130
|
+
return throwDefaultError({
|
|
4131
|
+
output,
|
|
4132
|
+
parsedBody,
|
|
4133
|
+
errorCode,
|
|
4134
|
+
});
|
|
4135
|
+
}
|
|
4136
|
+
};
|
|
3982
4137
|
const de_DescribeBotVersionCommand = async (output, context) => {
|
|
3983
4138
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3984
4139
|
return de_DescribeBotVersionCommandError(output, context);
|
|
@@ -4632,6 +4787,62 @@ const de_DescribeTestSetGenerationCommandError = async (output, context) => {
|
|
|
4632
4787
|
});
|
|
4633
4788
|
}
|
|
4634
4789
|
};
|
|
4790
|
+
const de_GenerateBotElementCommand = async (output, context) => {
|
|
4791
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
4792
|
+
return de_GenerateBotElementCommandError(output, context);
|
|
4793
|
+
}
|
|
4794
|
+
const contents = (0, smithy_client_1.map)({
|
|
4795
|
+
$metadata: deserializeMetadata(output),
|
|
4796
|
+
});
|
|
4797
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4798
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4799
|
+
botId: smithy_client_1.expectString,
|
|
4800
|
+
botVersion: smithy_client_1.expectString,
|
|
4801
|
+
intentId: smithy_client_1.expectString,
|
|
4802
|
+
localeId: smithy_client_1.expectString,
|
|
4803
|
+
sampleUtterances: smithy_client_1._json,
|
|
4804
|
+
});
|
|
4805
|
+
Object.assign(contents, doc);
|
|
4806
|
+
return contents;
|
|
4807
|
+
};
|
|
4808
|
+
exports.de_GenerateBotElementCommand = de_GenerateBotElementCommand;
|
|
4809
|
+
const de_GenerateBotElementCommandError = async (output, context) => {
|
|
4810
|
+
const parsedOutput = {
|
|
4811
|
+
...output,
|
|
4812
|
+
body: await parseErrorBody(output.body, context),
|
|
4813
|
+
};
|
|
4814
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4815
|
+
switch (errorCode) {
|
|
4816
|
+
case "ConflictException":
|
|
4817
|
+
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
4818
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4819
|
+
case "InternalServerException":
|
|
4820
|
+
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
4821
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4822
|
+
case "PreconditionFailedException":
|
|
4823
|
+
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
4824
|
+
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
4825
|
+
case "ResourceNotFoundException":
|
|
4826
|
+
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
4827
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4828
|
+
case "ServiceQuotaExceededException":
|
|
4829
|
+
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
4830
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4831
|
+
case "ThrottlingException":
|
|
4832
|
+
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
4833
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4834
|
+
case "ValidationException":
|
|
4835
|
+
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
4836
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4837
|
+
default:
|
|
4838
|
+
const parsedBody = parsedOutput.body;
|
|
4839
|
+
return throwDefaultError({
|
|
4840
|
+
output,
|
|
4841
|
+
parsedBody,
|
|
4842
|
+
errorCode,
|
|
4843
|
+
});
|
|
4844
|
+
}
|
|
4845
|
+
};
|
|
4635
4846
|
const de_GetTestExecutionArtifactsUrlCommand = async (output, context) => {
|
|
4636
4847
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4637
4848
|
return de_GetTestExecutionArtifactsUrlCommandError(output, context);
|
|
@@ -4869,6 +5080,53 @@ const de_ListBotRecommendationsCommandError = async (output, context) => {
|
|
|
4869
5080
|
});
|
|
4870
5081
|
}
|
|
4871
5082
|
};
|
|
5083
|
+
const de_ListBotResourceGenerationsCommand = async (output, context) => {
|
|
5084
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5085
|
+
return de_ListBotResourceGenerationsCommandError(output, context);
|
|
5086
|
+
}
|
|
5087
|
+
const contents = (0, smithy_client_1.map)({
|
|
5088
|
+
$metadata: deserializeMetadata(output),
|
|
5089
|
+
});
|
|
5090
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5091
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
5092
|
+
botId: smithy_client_1.expectString,
|
|
5093
|
+
botVersion: smithy_client_1.expectString,
|
|
5094
|
+
generationSummaries: (_) => de_GenerationSummaryList(_, context),
|
|
5095
|
+
localeId: smithy_client_1.expectString,
|
|
5096
|
+
nextToken: smithy_client_1.expectString,
|
|
5097
|
+
});
|
|
5098
|
+
Object.assign(contents, doc);
|
|
5099
|
+
return contents;
|
|
5100
|
+
};
|
|
5101
|
+
exports.de_ListBotResourceGenerationsCommand = de_ListBotResourceGenerationsCommand;
|
|
5102
|
+
const de_ListBotResourceGenerationsCommandError = async (output, context) => {
|
|
5103
|
+
const parsedOutput = {
|
|
5104
|
+
...output,
|
|
5105
|
+
body: await parseErrorBody(output.body, context),
|
|
5106
|
+
};
|
|
5107
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5108
|
+
switch (errorCode) {
|
|
5109
|
+
case "InternalServerException":
|
|
5110
|
+
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5111
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5112
|
+
case "ResourceNotFoundException":
|
|
5113
|
+
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
5114
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5115
|
+
case "ThrottlingException":
|
|
5116
|
+
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5117
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5118
|
+
case "ValidationException":
|
|
5119
|
+
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5120
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5121
|
+
default:
|
|
5122
|
+
const parsedBody = parsedOutput.body;
|
|
5123
|
+
return throwDefaultError({
|
|
5124
|
+
output,
|
|
5125
|
+
parsedBody,
|
|
5126
|
+
errorCode,
|
|
5127
|
+
});
|
|
5128
|
+
}
|
|
5129
|
+
};
|
|
4872
5130
|
const de_ListBotsCommand = async (output, context) => {
|
|
4873
5131
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4874
5132
|
return de_ListBotsCommandError(output, context);
|
|
@@ -6049,6 +6307,61 @@ const de_StartBotRecommendationCommandError = async (output, context) => {
|
|
|
6049
6307
|
});
|
|
6050
6308
|
}
|
|
6051
6309
|
};
|
|
6310
|
+
const de_StartBotResourceGenerationCommand = async (output, context) => {
|
|
6311
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
6312
|
+
return de_StartBotResourceGenerationCommandError(output, context);
|
|
6313
|
+
}
|
|
6314
|
+
const contents = (0, smithy_client_1.map)({
|
|
6315
|
+
$metadata: deserializeMetadata(output),
|
|
6316
|
+
});
|
|
6317
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
6318
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
6319
|
+
botId: smithy_client_1.expectString,
|
|
6320
|
+
botVersion: smithy_client_1.expectString,
|
|
6321
|
+
creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
6322
|
+
generationId: smithy_client_1.expectString,
|
|
6323
|
+
generationInputPrompt: smithy_client_1.expectString,
|
|
6324
|
+
generationStatus: smithy_client_1.expectString,
|
|
6325
|
+
localeId: smithy_client_1.expectString,
|
|
6326
|
+
});
|
|
6327
|
+
Object.assign(contents, doc);
|
|
6328
|
+
return contents;
|
|
6329
|
+
};
|
|
6330
|
+
exports.de_StartBotResourceGenerationCommand = de_StartBotResourceGenerationCommand;
|
|
6331
|
+
const de_StartBotResourceGenerationCommandError = async (output, context) => {
|
|
6332
|
+
const parsedOutput = {
|
|
6333
|
+
...output,
|
|
6334
|
+
body: await parseErrorBody(output.body, context),
|
|
6335
|
+
};
|
|
6336
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6337
|
+
switch (errorCode) {
|
|
6338
|
+
case "ConflictException":
|
|
6339
|
+
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
6340
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
6341
|
+
case "InternalServerException":
|
|
6342
|
+
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
6343
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
6344
|
+
case "PreconditionFailedException":
|
|
6345
|
+
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
6346
|
+
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
6347
|
+
case "ServiceQuotaExceededException":
|
|
6348
|
+
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
6349
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
6350
|
+
case "ThrottlingException":
|
|
6351
|
+
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
6352
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
6353
|
+
case "ValidationException":
|
|
6354
|
+
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
6355
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
6356
|
+
default:
|
|
6357
|
+
const parsedBody = parsedOutput.body;
|
|
6358
|
+
return throwDefaultError({
|
|
6359
|
+
output,
|
|
6360
|
+
parsedBody,
|
|
6361
|
+
errorCode,
|
|
6362
|
+
});
|
|
6363
|
+
}
|
|
6364
|
+
};
|
|
6052
6365
|
const de_StartImportCommand = async (output, context) => {
|
|
6053
6366
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
6054
6367
|
return de_StartImportCommandError(output, context);
|
|
@@ -6480,6 +6793,7 @@ const de_UpdateBotLocaleCommand = async (output, context) => {
|
|
|
6480
6793
|
creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
6481
6794
|
description: smithy_client_1.expectString,
|
|
6482
6795
|
failureReasons: smithy_client_1._json,
|
|
6796
|
+
generativeAISettings: smithy_client_1._json,
|
|
6483
6797
|
lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
6484
6798
|
localeId: smithy_client_1.expectString,
|
|
6485
6799
|
localeName: smithy_client_1.expectString,
|
|
@@ -7221,6 +7535,7 @@ const se_SlotValueElicitationSetting = (input, context) => {
|
|
|
7221
7535
|
sampleUtterances: smithy_client_1._json,
|
|
7222
7536
|
slotCaptureSetting: (_) => se_SlotCaptureSetting(_, context),
|
|
7223
7537
|
slotConstraint: [],
|
|
7538
|
+
slotResolutionSetting: smithy_client_1._json,
|
|
7224
7539
|
waitAndContinueSpecification: smithy_client_1._json,
|
|
7225
7540
|
});
|
|
7226
7541
|
};
|
|
@@ -7640,6 +7955,22 @@ const de_FulfillmentCodeHookSettings = (output, context) => {
|
|
|
7640
7955
|
postFulfillmentStatusSpecification: (_) => de_PostFulfillmentStatusSpecification(_, context),
|
|
7641
7956
|
});
|
|
7642
7957
|
};
|
|
7958
|
+
const de_GenerationSummary = (output, context) => {
|
|
7959
|
+
return (0, smithy_client_1.take)(output, {
|
|
7960
|
+
creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
7961
|
+
generationId: smithy_client_1.expectString,
|
|
7962
|
+
generationStatus: smithy_client_1.expectString,
|
|
7963
|
+
lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
7964
|
+
});
|
|
7965
|
+
};
|
|
7966
|
+
const de_GenerationSummaryList = (output, context) => {
|
|
7967
|
+
const retVal = (output || [])
|
|
7968
|
+
.filter((e) => e != null)
|
|
7969
|
+
.map((entry) => {
|
|
7970
|
+
return de_GenerationSummary(entry, context);
|
|
7971
|
+
});
|
|
7972
|
+
return retVal;
|
|
7973
|
+
};
|
|
7643
7974
|
const de_ImportResourceSpecification = (output, context) => {
|
|
7644
7975
|
return (0, smithy_client_1.take)(output, {
|
|
7645
7976
|
botImportSpecification: smithy_client_1._json,
|
|
@@ -7883,6 +8214,7 @@ const de_SlotValueElicitationSetting = (output, context) => {
|
|
|
7883
8214
|
sampleUtterances: smithy_client_1._json,
|
|
7884
8215
|
slotCaptureSetting: (_) => de_SlotCaptureSetting(_, context),
|
|
7885
8216
|
slotConstraint: smithy_client_1.expectString,
|
|
8217
|
+
slotResolutionSetting: smithy_client_1._json,
|
|
7886
8218
|
waitAndContinueSpecification: smithy_client_1._json,
|
|
7887
8219
|
});
|
|
7888
8220
|
};
|
package/dist-es/LexModelsV2.js
CHANGED
|
@@ -33,6 +33,7 @@ import { DescribeBotAliasCommand, } from "./commands/DescribeBotAliasCommand";
|
|
|
33
33
|
import { DescribeBotCommand } from "./commands/DescribeBotCommand";
|
|
34
34
|
import { DescribeBotLocaleCommand, } from "./commands/DescribeBotLocaleCommand";
|
|
35
35
|
import { DescribeBotRecommendationCommand, } from "./commands/DescribeBotRecommendationCommand";
|
|
36
|
+
import { DescribeBotResourceGenerationCommand, } from "./commands/DescribeBotResourceGenerationCommand";
|
|
36
37
|
import { DescribeBotVersionCommand, } from "./commands/DescribeBotVersionCommand";
|
|
37
38
|
import { DescribeCustomVocabularyMetadataCommand, } from "./commands/DescribeCustomVocabularyMetadataCommand";
|
|
38
39
|
import { DescribeExportCommand, } from "./commands/DescribeExportCommand";
|
|
@@ -45,11 +46,13 @@ import { DescribeTestExecutionCommand, } from "./commands/DescribeTestExecutionC
|
|
|
45
46
|
import { DescribeTestSetCommand, } from "./commands/DescribeTestSetCommand";
|
|
46
47
|
import { DescribeTestSetDiscrepancyReportCommand, } from "./commands/DescribeTestSetDiscrepancyReportCommand";
|
|
47
48
|
import { DescribeTestSetGenerationCommand, } from "./commands/DescribeTestSetGenerationCommand";
|
|
49
|
+
import { GenerateBotElementCommand, } from "./commands/GenerateBotElementCommand";
|
|
48
50
|
import { GetTestExecutionArtifactsUrlCommand, } from "./commands/GetTestExecutionArtifactsUrlCommand";
|
|
49
51
|
import { ListAggregatedUtterancesCommand, } from "./commands/ListAggregatedUtterancesCommand";
|
|
50
52
|
import { ListBotAliasesCommand, } from "./commands/ListBotAliasesCommand";
|
|
51
53
|
import { ListBotLocalesCommand, } from "./commands/ListBotLocalesCommand";
|
|
52
54
|
import { ListBotRecommendationsCommand, } from "./commands/ListBotRecommendationsCommand";
|
|
55
|
+
import { ListBotResourceGenerationsCommand, } from "./commands/ListBotResourceGenerationsCommand";
|
|
53
56
|
import { ListBotsCommand } from "./commands/ListBotsCommand";
|
|
54
57
|
import { ListBotVersionsCommand, } from "./commands/ListBotVersionsCommand";
|
|
55
58
|
import { ListBuiltInIntentsCommand, } from "./commands/ListBuiltInIntentsCommand";
|
|
@@ -75,6 +78,7 @@ import { ListUtteranceAnalyticsDataCommand, } from "./commands/ListUtteranceAnal
|
|
|
75
78
|
import { ListUtteranceMetricsCommand, } from "./commands/ListUtteranceMetricsCommand";
|
|
76
79
|
import { SearchAssociatedTranscriptsCommand, } from "./commands/SearchAssociatedTranscriptsCommand";
|
|
77
80
|
import { StartBotRecommendationCommand, } from "./commands/StartBotRecommendationCommand";
|
|
81
|
+
import { StartBotResourceGenerationCommand, } from "./commands/StartBotResourceGenerationCommand";
|
|
78
82
|
import { StartImportCommand } from "./commands/StartImportCommand";
|
|
79
83
|
import { StartTestExecutionCommand, } from "./commands/StartTestExecutionCommand";
|
|
80
84
|
import { StartTestSetGenerationCommand, } from "./commands/StartTestSetGenerationCommand";
|
|
@@ -127,6 +131,7 @@ const commands = {
|
|
|
127
131
|
DescribeBotAliasCommand,
|
|
128
132
|
DescribeBotLocaleCommand,
|
|
129
133
|
DescribeBotRecommendationCommand,
|
|
134
|
+
DescribeBotResourceGenerationCommand,
|
|
130
135
|
DescribeBotVersionCommand,
|
|
131
136
|
DescribeCustomVocabularyMetadataCommand,
|
|
132
137
|
DescribeExportCommand,
|
|
@@ -139,11 +144,13 @@ const commands = {
|
|
|
139
144
|
DescribeTestSetCommand,
|
|
140
145
|
DescribeTestSetDiscrepancyReportCommand,
|
|
141
146
|
DescribeTestSetGenerationCommand,
|
|
147
|
+
GenerateBotElementCommand,
|
|
142
148
|
GetTestExecutionArtifactsUrlCommand,
|
|
143
149
|
ListAggregatedUtterancesCommand,
|
|
144
150
|
ListBotAliasesCommand,
|
|
145
151
|
ListBotLocalesCommand,
|
|
146
152
|
ListBotRecommendationsCommand,
|
|
153
|
+
ListBotResourceGenerationsCommand,
|
|
147
154
|
ListBotsCommand,
|
|
148
155
|
ListBotVersionsCommand,
|
|
149
156
|
ListBuiltInIntentsCommand,
|
|
@@ -169,6 +176,7 @@ const commands = {
|
|
|
169
176
|
ListUtteranceMetricsCommand,
|
|
170
177
|
SearchAssociatedTranscriptsCommand,
|
|
171
178
|
StartBotRecommendationCommand,
|
|
179
|
+
StartBotResourceGenerationCommand,
|
|
172
180
|
StartImportCommand,
|
|
173
181
|
StartTestExecutionCommand,
|
|
174
182
|
StartTestSetGenerationCommand,
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_DescribeBotResourceGenerationCommand, se_DescribeBotResourceGenerationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DescribeBotResourceGenerationCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DescribeBotResourceGenerationCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "LexModelsV2Client";
|
|
26
|
+
const commandName = "DescribeBotResourceGenerationCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "LexModelBuildingServiceV2",
|
|
35
|
+
operation: "DescribeBotResourceGeneration",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_DescribeBotResourceGenerationCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_DescribeBotResourceGenerationCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_GenerateBotElementCommand, se_GenerateBotElementCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GenerateBotElementCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GenerateBotElementCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "LexModelsV2Client";
|
|
26
|
+
const commandName = "GenerateBotElementCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "LexModelBuildingServiceV2",
|
|
35
|
+
operation: "GenerateBotElement",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_GenerateBotElementCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_GenerateBotElementCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|