@aws-sdk/client-lex-models-v2 3.369.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 +16 -17
|
@@ -1,5 +1,90 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
2
|
import { EncryptionSettingFilterSensitiveLog, } from "./models_0";
|
|
3
|
+
export const TestExecutionApiMode = {
|
|
4
|
+
NonStreaming: "NonStreaming",
|
|
5
|
+
Streaming: "Streaming",
|
|
6
|
+
};
|
|
7
|
+
export const TestExecutionModality = {
|
|
8
|
+
Audio: "Audio",
|
|
9
|
+
Text: "Text",
|
|
10
|
+
};
|
|
11
|
+
export const TestExecutionStatus = {
|
|
12
|
+
Completed: "Completed",
|
|
13
|
+
Failed: "Failed",
|
|
14
|
+
InProgress: "InProgress",
|
|
15
|
+
Pending: "Pending",
|
|
16
|
+
Stopped: "Stopped",
|
|
17
|
+
Stopping: "Stopping",
|
|
18
|
+
Waiting: "Waiting",
|
|
19
|
+
};
|
|
20
|
+
export const TestSetStatus = {
|
|
21
|
+
Deleting: "Deleting",
|
|
22
|
+
Importing: "Importing",
|
|
23
|
+
PendingAnnotation: "PendingAnnotation",
|
|
24
|
+
Ready: "Ready",
|
|
25
|
+
ValidationError: "ValidationError",
|
|
26
|
+
};
|
|
27
|
+
export const TestSetDiscrepancyReportStatus = {
|
|
28
|
+
Completed: "Completed",
|
|
29
|
+
Failed: "Failed",
|
|
30
|
+
InProgress: "InProgress",
|
|
31
|
+
};
|
|
32
|
+
export const TestSetGenerationStatus = {
|
|
33
|
+
Failed: "Failed",
|
|
34
|
+
Generating: "Generating",
|
|
35
|
+
Pending: "Pending",
|
|
36
|
+
Ready: "Ready",
|
|
37
|
+
};
|
|
38
|
+
export const ExportFilterName = {
|
|
39
|
+
ExportResourceType: "ExportResourceType",
|
|
40
|
+
};
|
|
41
|
+
export const ExportFilterOperator = {
|
|
42
|
+
Contains: "CO",
|
|
43
|
+
Equals: "EQ",
|
|
44
|
+
};
|
|
45
|
+
export const ExportSortAttribute = {
|
|
46
|
+
LastUpdatedDateTime: "LastUpdatedDateTime",
|
|
47
|
+
};
|
|
48
|
+
export const ImportFilterName = {
|
|
49
|
+
ImportResourceType: "ImportResourceType",
|
|
50
|
+
};
|
|
51
|
+
export const ImportFilterOperator = {
|
|
52
|
+
Contains: "CO",
|
|
53
|
+
Equals: "EQ",
|
|
54
|
+
};
|
|
55
|
+
export const ImportResourceType = {
|
|
56
|
+
Bot: "Bot",
|
|
57
|
+
BotLocale: "BotLocale",
|
|
58
|
+
CustomVocabulary: "CustomVocabulary",
|
|
59
|
+
TestSet: "TestSet",
|
|
60
|
+
};
|
|
61
|
+
export const ImportSortAttribute = {
|
|
62
|
+
LastUpdatedDateTime: "LastUpdatedDateTime",
|
|
63
|
+
};
|
|
64
|
+
export const IntentFilterName = {
|
|
65
|
+
IntentName: "IntentName",
|
|
66
|
+
};
|
|
67
|
+
export const IntentFilterOperator = {
|
|
68
|
+
Contains: "CO",
|
|
69
|
+
Equals: "EQ",
|
|
70
|
+
};
|
|
71
|
+
export const IntentSortAttribute = {
|
|
72
|
+
IntentName: "IntentName",
|
|
73
|
+
LastUpdatedDateTime: "LastUpdatedDateTime",
|
|
74
|
+
};
|
|
75
|
+
export const IntentState = {
|
|
76
|
+
Failed: "Failed",
|
|
77
|
+
Fulfilled: "Fulfilled",
|
|
78
|
+
FulfillmentInProgress: "FulfillmentInProgress",
|
|
79
|
+
InProgress: "InProgress",
|
|
80
|
+
ReadyForFulfillment: "ReadyForFulfillment",
|
|
81
|
+
Waiting: "Waiting",
|
|
82
|
+
};
|
|
83
|
+
export const TimeDimension = {
|
|
84
|
+
Days: "Days",
|
|
85
|
+
Hours: "Hours",
|
|
86
|
+
Weeks: "Weeks",
|
|
87
|
+
};
|
|
3
88
|
export const SlotFilterName = {
|
|
4
89
|
SlotName: "SlotName",
|
|
5
90
|
};
|
|
@@ -44,6 +129,12 @@ export const TestSetSortAttribute = {
|
|
|
44
129
|
LastUpdatedDateTime: "LastUpdatedDateTime",
|
|
45
130
|
TestSetName: "TestSetName",
|
|
46
131
|
};
|
|
132
|
+
export const UtteranceContentType = {
|
|
133
|
+
CustomPayload: "CustomPayload",
|
|
134
|
+
ImageResponseCard: "ImageResponseCard",
|
|
135
|
+
PlainText: "PlainText",
|
|
136
|
+
SSML: "SSML",
|
|
137
|
+
};
|
|
47
138
|
export const SearchOrder = {
|
|
48
139
|
Ascending: "Ascending",
|
|
49
140
|
Descending: "Descending",
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListIntentMetricsCommand, } from "../commands/ListIntentMetricsCommand";
|
|
2
|
+
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListIntentMetricsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListIntentMetrics(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof LexModelsV2Client) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListIntentStageMetricsCommand, } from "../commands/ListIntentStageMetricsCommand";
|
|
2
|
+
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListIntentStageMetricsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListIntentStageMetrics(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof LexModelsV2Client) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListSessionAnalyticsDataCommand, } from "../commands/ListSessionAnalyticsDataCommand";
|
|
2
|
+
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListSessionAnalyticsDataCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListSessionAnalyticsData(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof LexModelsV2Client) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListSessionMetricsCommand, } from "../commands/ListSessionMetricsCommand";
|
|
2
|
+
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListSessionMetricsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListSessionMetrics(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof LexModelsV2Client) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListUtteranceAnalyticsDataCommand, } from "../commands/ListUtteranceAnalyticsDataCommand";
|
|
2
|
+
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListUtteranceAnalyticsDataCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListUtteranceAnalyticsData(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof LexModelsV2Client) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListUtteranceMetricsCommand, } from "../commands/ListUtteranceMetricsCommand";
|
|
2
|
+
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListUtteranceMetricsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListUtteranceMetrics(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof LexModelsV2Client) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -10,11 +10,17 @@ export * from "./ListBuiltInSlotTypesPaginator";
|
|
|
10
10
|
export * from "./ListCustomVocabularyItemsPaginator";
|
|
11
11
|
export * from "./ListExportsPaginator";
|
|
12
12
|
export * from "./ListImportsPaginator";
|
|
13
|
+
export * from "./ListIntentMetricsPaginator";
|
|
14
|
+
export * from "./ListIntentStageMetricsPaginator";
|
|
13
15
|
export * from "./ListIntentsPaginator";
|
|
14
16
|
export * from "./ListRecommendedIntentsPaginator";
|
|
17
|
+
export * from "./ListSessionAnalyticsDataPaginator";
|
|
18
|
+
export * from "./ListSessionMetricsPaginator";
|
|
15
19
|
export * from "./ListSlotTypesPaginator";
|
|
16
20
|
export * from "./ListSlotsPaginator";
|
|
17
21
|
export * from "./ListTestExecutionResultItemsPaginator";
|
|
18
22
|
export * from "./ListTestExecutionsPaginator";
|
|
19
23
|
export * from "./ListTestSetRecordsPaginator";
|
|
20
24
|
export * from "./ListTestSetsPaginator";
|
|
25
|
+
export * from "./ListUtteranceAnalyticsDataPaginator";
|
|
26
|
+
export * from "./ListUtteranceMetricsPaginator";
|