@aws-sdk/client-lex-models-v2 3.345.0 → 3.347.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +112 -0
- package/dist-cjs/LexModelsV2.js +28 -0
- package/dist-cjs/commands/CreateTestSetDiscrepancyReportCommand.js +46 -0
- package/dist-cjs/commands/DeleteTestSetCommand.js +46 -0
- package/dist-cjs/commands/DescribeTestExecutionCommand.js +46 -0
- package/dist-cjs/commands/DescribeTestSetCommand.js +46 -0
- package/dist-cjs/commands/DescribeTestSetDiscrepancyReportCommand.js +46 -0
- package/dist-cjs/commands/DescribeTestSetGenerationCommand.js +46 -0
- package/dist-cjs/commands/GetTestExecutionArtifactsUrlCommand.js +46 -0
- package/dist-cjs/commands/ListTestExecutionResultItemsCommand.js +46 -0
- package/dist-cjs/commands/ListTestExecutionsCommand.js +46 -0
- package/dist-cjs/commands/ListTestSetRecordsCommand.js +46 -0
- package/dist-cjs/commands/ListTestSetsCommand.js +46 -0
- package/dist-cjs/commands/StartBotRecommendationCommand.js +3 -3
- package/dist-cjs/commands/StartImportCommand.js +2 -2
- package/dist-cjs/commands/StartTestExecutionCommand.js +46 -0
- package/dist-cjs/commands/StartTestSetGenerationCommand.js +46 -0
- package/dist-cjs/commands/UpdateTestSetCommand.js +46 -0
- package/dist-cjs/commands/index.js +14 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +52 -50
- package/dist-cjs/models/models_1.js +64 -1
- package/dist-cjs/pagination/ListTestExecutionResultItemsPaginator.js +29 -0
- package/dist-cjs/pagination/ListTestExecutionsPaginator.js +29 -0
- package/dist-cjs/pagination/ListTestSetRecordsPaginator.js +29 -0
- package/dist-cjs/pagination/ListTestSetsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +4 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1395 -146
- package/dist-es/LexModelsV2.js +28 -0
- package/dist-es/commands/CreateTestSetDiscrepancyReportCommand.js +42 -0
- package/dist-es/commands/DeleteTestSetCommand.js +42 -0
- package/dist-es/commands/DescribeTestExecutionCommand.js +42 -0
- package/dist-es/commands/DescribeTestSetCommand.js +42 -0
- package/dist-es/commands/DescribeTestSetDiscrepancyReportCommand.js +42 -0
- package/dist-es/commands/DescribeTestSetGenerationCommand.js +42 -0
- package/dist-es/commands/GetTestExecutionArtifactsUrlCommand.js +42 -0
- package/dist-es/commands/ListTestExecutionResultItemsCommand.js +42 -0
- package/dist-es/commands/ListTestExecutionsCommand.js +42 -0
- package/dist-es/commands/ListTestSetRecordsCommand.js +42 -0
- package/dist-es/commands/ListTestSetsCommand.js +42 -0
- package/dist-es/commands/StartBotRecommendationCommand.js +1 -1
- package/dist-es/commands/StartImportCommand.js +1 -1
- package/dist-es/commands/StartTestExecutionCommand.js +42 -0
- package/dist-es/commands/StartTestSetGenerationCommand.js +42 -0
- package/dist-es/commands/UpdateTestSetCommand.js +42 -0
- package/dist-es/commands/index.js +14 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +50 -45
- package/dist-es/models/models_1.js +60 -0
- package/dist-es/pagination/ListTestExecutionResultItemsPaginator.js +25 -0
- package/dist-es/pagination/ListTestExecutionsPaginator.js +25 -0
- package/dist-es/pagination/ListTestSetRecordsPaginator.js +25 -0
- package/dist-es/pagination/ListTestSetsPaginator.js +25 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +1360 -140
- package/dist-types/LexModelsV2.d.ts +98 -0
- package/dist-types/LexModelsV2Client.d.ts +16 -2
- package/dist-types/commands/CreateExportCommand.d.ts +8 -2
- package/dist-types/commands/CreateTestSetDiscrepancyReportCommand.d.ts +113 -0
- package/dist-types/commands/DeleteTestSetCommand.d.ts +96 -0
- package/dist-types/commands/DescribeExportCommand.d.ts +4 -1
- package/dist-types/commands/DescribeImportCommand.d.ts +18 -0
- package/dist-types/commands/DescribeTestExecutionCommand.d.ts +109 -0
- package/dist-types/commands/DescribeTestSetCommand.d.ts +105 -0
- package/dist-types/commands/DescribeTestSetDiscrepancyReportCommand.d.ts +122 -0
- package/dist-types/commands/DescribeTestSetGenerationCommand.d.ts +119 -0
- package/dist-types/commands/GetTestExecutionArtifactsUrlCommand.d.ts +93 -0
- package/dist-types/commands/ListBotAliasesCommand.d.ts +1 -1
- package/dist-types/commands/ListBotLocalesCommand.d.ts +1 -1
- package/dist-types/commands/ListBotRecommendationsCommand.d.ts +1 -1
- package/dist-types/commands/ListBotVersionsCommand.d.ts +1 -1
- package/dist-types/commands/ListBotsCommand.d.ts +1 -1
- package/dist-types/commands/ListBuiltInIntentsCommand.d.ts +1 -1
- package/dist-types/commands/ListBuiltInSlotTypesCommand.d.ts +1 -1
- package/dist-types/commands/ListCustomVocabularyItemsCommand.d.ts +1 -1
- package/dist-types/commands/ListExportsCommand.d.ts +5 -2
- package/dist-types/commands/ListImportsCommand.d.ts +2 -2
- package/dist-types/commands/ListIntentsCommand.d.ts +1 -1
- package/dist-types/commands/ListRecommendedIntentsCommand.d.ts +1 -1
- package/dist-types/commands/ListSlotTypesCommand.d.ts +1 -1
- package/dist-types/commands/ListSlotsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ListTestExecutionResultItemsCommand.d.ts +291 -0
- package/dist-types/commands/ListTestExecutionsCommand.d.ts +112 -0
- package/dist-types/commands/ListTestSetRecordsCommand.d.ts +180 -0
- package/dist-types/commands/ListTestSetsCommand.d.ts +111 -0
- package/dist-types/commands/SearchAssociatedTranscriptsCommand.d.ts +1 -1
- package/dist-types/commands/StartBotRecommendationCommand.d.ts +1 -1
- package/dist-types/commands/StartImportCommand.d.ts +37 -1
- package/dist-types/commands/StartTestExecutionCommand.d.ts +117 -0
- package/dist-types/commands/StartTestSetGenerationCommand.d.ts +144 -0
- package/dist-types/commands/StopBotRecommendationCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -2
- package/dist-types/commands/UpdateExportCommand.d.ts +4 -1
- package/dist-types/commands/UpdateTestSetCommand.d.ts +113 -0
- package/dist-types/commands/index.d.ts +14 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +1054 -1714
- package/dist-types/models/models_1.d.ts +2465 -18
- package/dist-types/pagination/ListTestExecutionResultItemsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListTestExecutionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListTestSetRecordsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListTestSetsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +126 -0
- package/dist-types/ts3.4/LexModelsV2.d.ts +238 -0
- package/dist-types/ts3.4/LexModelsV2Client.d.ts +86 -2
- package/dist-types/ts3.4/commands/CreateTestSetDiscrepancyReportCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteTestSetCommand.d.ts +33 -0
- package/dist-types/ts3.4/commands/DescribeTestExecutionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeTestSetCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DescribeTestSetDiscrepancyReportCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeTestSetGenerationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetTestExecutionArtifactsUrlCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListBotAliasesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListBotLocalesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListBotRecommendationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListBotVersionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListBotsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListBuiltInIntentsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListBuiltInSlotTypesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListCustomVocabularyItemsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListExportsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListImportsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListIntentsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListRecommendedIntentsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListSlotTypesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListSlotsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListTestExecutionResultItemsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListTestExecutionsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListTestSetRecordsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListTestSetsCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/SearchAssociatedTranscriptsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartBotRecommendationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartImportCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartTestExecutionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/StartTestSetGenerationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StopBotRecommendationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/UpdateTestSetCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +14 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +293 -362
- package/dist-types/ts3.4/models/models_1.d.ts +646 -0
- package/dist-types/ts3.4/pagination/ListTestExecutionResultItemsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTestExecutionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTestSetRecordsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTestSetsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +168 -0
- package/package.json +29 -29
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListTestExecutions = void 0;
|
|
4
|
+
const ListTestExecutionsCommand_1 = require("../commands/ListTestExecutionsCommand");
|
|
5
|
+
const LexModelsV2Client_1 = require("../LexModelsV2Client");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListTestExecutionsCommand_1.ListTestExecutionsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListTestExecutions(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.nextToken = token;
|
|
15
|
+
input["maxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.nextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListTestExecutions = paginateListTestExecutions;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListTestSetRecords = void 0;
|
|
4
|
+
const ListTestSetRecordsCommand_1 = require("../commands/ListTestSetRecordsCommand");
|
|
5
|
+
const LexModelsV2Client_1 = require("../LexModelsV2Client");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListTestSetRecordsCommand_1.ListTestSetRecordsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListTestSetRecords(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.nextToken = token;
|
|
15
|
+
input["maxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.nextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListTestSetRecords = paginateListTestSetRecords;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListTestSets = void 0;
|
|
4
|
+
const ListTestSetsCommand_1 = require("../commands/ListTestSetsCommand");
|
|
5
|
+
const LexModelsV2Client_1 = require("../LexModelsV2Client");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListTestSetsCommand_1.ListTestSetsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListTestSets(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.nextToken = token;
|
|
15
|
+
input["maxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.nextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListTestSets = paginateListTestSets;
|
|
@@ -17,3 +17,7 @@ tslib_1.__exportStar(require("./ListIntentsPaginator"), exports);
|
|
|
17
17
|
tslib_1.__exportStar(require("./ListRecommendedIntentsPaginator"), exports);
|
|
18
18
|
tslib_1.__exportStar(require("./ListSlotTypesPaginator"), exports);
|
|
19
19
|
tslib_1.__exportStar(require("./ListSlotsPaginator"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./ListTestExecutionResultItemsPaginator"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./ListTestExecutionsPaginator"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./ListTestSetRecordsPaginator"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./ListTestSetsPaginator"), exports);
|