Skip to content

Commit

Permalink
feat(client-lex-models-v2): This release adds support for Lex Develop…
Browse files Browse the repository at this point in the history
…ers to view analytics for their bots.
  • Loading branch information
awstools committed Jul 18, 2023
1 parent 11c89c0 commit 22bd601
Show file tree
Hide file tree
Showing 29 changed files with 21,063 additions and 11,800 deletions.
56 changes: 56 additions & 0 deletions clients/client-lex-models-v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,22 @@ ListImports

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/classes/listimportscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/interfaces/listimportscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/interfaces/listimportscommandoutput.html)

</details>
<details>
<summary>
ListIntentMetrics
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/classes/listintentmetricscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/interfaces/listintentmetricscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/interfaces/listintentmetricscommandoutput.html)

</details>
<details>
<summary>
ListIntentPaths
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/classes/listintentpathscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/interfaces/listintentpathscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/interfaces/listintentpathscommandoutput.html)

</details>
<details>
<summary>
Expand All @@ -674,6 +690,14 @@ ListIntents

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/classes/listintentscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/interfaces/listintentscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/interfaces/listintentscommandoutput.html)

</details>
<details>
<summary>
ListIntentStageMetrics
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/classes/listintentstagemetricscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/interfaces/listintentstagemetricscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/interfaces/listintentstagemetricscommandoutput.html)

</details>
<details>
<summary>
Expand All @@ -682,6 +706,22 @@ ListRecommendedIntents

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/classes/listrecommendedintentscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/interfaces/listrecommendedintentscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/interfaces/listrecommendedintentscommandoutput.html)

</details>
<details>
<summary>
ListSessionAnalyticsData
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/classes/listsessionanalyticsdatacommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/interfaces/listsessionanalyticsdatacommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/interfaces/listsessionanalyticsdatacommandoutput.html)

</details>
<details>
<summary>
ListSessionMetrics
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/classes/listsessionmetricscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/interfaces/listsessionmetricscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/interfaces/listsessionmetricscommandoutput.html)

</details>
<details>
<summary>
Expand Down Expand Up @@ -738,6 +778,22 @@ ListTestSets

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/classes/listtestsetscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/interfaces/listtestsetscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/interfaces/listtestsetscommandoutput.html)

</details>
<details>
<summary>
ListUtteranceAnalyticsData
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/classes/listutteranceanalyticsdatacommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/interfaces/listutteranceanalyticsdatacommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/interfaces/listutteranceanalyticsdatacommandoutput.html)

</details>
<details>
<summary>
ListUtteranceMetrics
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/classes/listutterancemetricscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/interfaces/listutterancemetricscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lex-models-v2/interfaces/listutterancemetricscommandoutput.html)

</details>
<details>
<summary>
Expand Down
158 changes: 158 additions & 0 deletions clients/client-lex-models-v2/src/LexModelsV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,12 +260,37 @@ import {
} from "./commands/ListCustomVocabularyItemsCommand";
import { ListExportsCommand, ListExportsCommandInput, ListExportsCommandOutput } from "./commands/ListExportsCommand";
import { ListImportsCommand, ListImportsCommandInput, ListImportsCommandOutput } from "./commands/ListImportsCommand";
import {
ListIntentMetricsCommand,
ListIntentMetricsCommandInput,
ListIntentMetricsCommandOutput,
} from "./commands/ListIntentMetricsCommand";
import {
ListIntentPathsCommand,
ListIntentPathsCommandInput,
ListIntentPathsCommandOutput,
} from "./commands/ListIntentPathsCommand";
import { ListIntentsCommand, ListIntentsCommandInput, ListIntentsCommandOutput } from "./commands/ListIntentsCommand";
import {
ListIntentStageMetricsCommand,
ListIntentStageMetricsCommandInput,
ListIntentStageMetricsCommandOutput,
} from "./commands/ListIntentStageMetricsCommand";
import {
ListRecommendedIntentsCommand,
ListRecommendedIntentsCommandInput,
ListRecommendedIntentsCommandOutput,
} from "./commands/ListRecommendedIntentsCommand";
import {
ListSessionAnalyticsDataCommand,
ListSessionAnalyticsDataCommandInput,
ListSessionAnalyticsDataCommandOutput,
} from "./commands/ListSessionAnalyticsDataCommand";
import {
ListSessionMetricsCommand,
ListSessionMetricsCommandInput,
ListSessionMetricsCommandOutput,
} from "./commands/ListSessionMetricsCommand";
import { ListSlotsCommand, ListSlotsCommandInput, ListSlotsCommandOutput } from "./commands/ListSlotsCommand";
import {
ListSlotTypesCommand,
Expand Down Expand Up @@ -297,6 +322,16 @@ import {
ListTestSetsCommandInput,
ListTestSetsCommandOutput,
} from "./commands/ListTestSetsCommand";
import {
ListUtteranceAnalyticsDataCommand,
ListUtteranceAnalyticsDataCommandInput,
ListUtteranceAnalyticsDataCommandOutput,
} from "./commands/ListUtteranceAnalyticsDataCommand";
import {
ListUtteranceMetricsCommand,
ListUtteranceMetricsCommandInput,
ListUtteranceMetricsCommandOutput,
} from "./commands/ListUtteranceMetricsCommand";
import {
SearchAssociatedTranscriptsCommand,
SearchAssociatedTranscriptsCommandInput,
Expand Down Expand Up @@ -432,15 +467,22 @@ const commands = {
ListCustomVocabularyItemsCommand,
ListExportsCommand,
ListImportsCommand,
ListIntentMetricsCommand,
ListIntentPathsCommand,
ListIntentsCommand,
ListIntentStageMetricsCommand,
ListRecommendedIntentsCommand,
ListSessionAnalyticsDataCommand,
ListSessionMetricsCommand,
ListSlotsCommand,
ListSlotTypesCommand,
ListTagsForResourceCommand,
ListTestExecutionResultItemsCommand,
ListTestExecutionsCommand,
ListTestSetRecordsCommand,
ListTestSetsCommand,
ListUtteranceAnalyticsDataCommand,
ListUtteranceMetricsCommand,
SearchAssociatedTranscriptsCommand,
StartBotRecommendationCommand,
StartImportCommand,
Expand Down Expand Up @@ -1313,6 +1355,37 @@ export interface LexModelsV2 {
cb: (err: any, data?: ListImportsCommandOutput) => void
): void;

/**
* @see {@link ListIntentMetricsCommand}
*/
listIntentMetrics(
args: ListIntentMetricsCommandInput,
options?: __HttpHandlerOptions
): Promise<ListIntentMetricsCommandOutput>;
listIntentMetrics(
args: ListIntentMetricsCommandInput,
cb: (err: any, data?: ListIntentMetricsCommandOutput) => void
): void;
listIntentMetrics(
args: ListIntentMetricsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListIntentMetricsCommandOutput) => void
): void;

/**
* @see {@link ListIntentPathsCommand}
*/
listIntentPaths(
args: ListIntentPathsCommandInput,
options?: __HttpHandlerOptions
): Promise<ListIntentPathsCommandOutput>;
listIntentPaths(args: ListIntentPathsCommandInput, cb: (err: any, data?: ListIntentPathsCommandOutput) => void): void;
listIntentPaths(
args: ListIntentPathsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListIntentPathsCommandOutput) => void
): void;

/**
* @see {@link ListIntentsCommand}
*/
Expand All @@ -1324,6 +1397,23 @@ export interface LexModelsV2 {
cb: (err: any, data?: ListIntentsCommandOutput) => void
): void;

/**
* @see {@link ListIntentStageMetricsCommand}
*/
listIntentStageMetrics(
args: ListIntentStageMetricsCommandInput,
options?: __HttpHandlerOptions
): Promise<ListIntentStageMetricsCommandOutput>;
listIntentStageMetrics(
args: ListIntentStageMetricsCommandInput,
cb: (err: any, data?: ListIntentStageMetricsCommandOutput) => void
): void;
listIntentStageMetrics(
args: ListIntentStageMetricsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListIntentStageMetricsCommandOutput) => void
): void;

/**
* @see {@link ListRecommendedIntentsCommand}
*/
Expand All @@ -1341,6 +1431,40 @@ export interface LexModelsV2 {
cb: (err: any, data?: ListRecommendedIntentsCommandOutput) => void
): void;

/**
* @see {@link ListSessionAnalyticsDataCommand}
*/
listSessionAnalyticsData(
args: ListSessionAnalyticsDataCommandInput,
options?: __HttpHandlerOptions
): Promise<ListSessionAnalyticsDataCommandOutput>;
listSessionAnalyticsData(
args: ListSessionAnalyticsDataCommandInput,
cb: (err: any, data?: ListSessionAnalyticsDataCommandOutput) => void
): void;
listSessionAnalyticsData(
args: ListSessionAnalyticsDataCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListSessionAnalyticsDataCommandOutput) => void
): void;

/**
* @see {@link ListSessionMetricsCommand}
*/
listSessionMetrics(
args: ListSessionMetricsCommandInput,
options?: __HttpHandlerOptions
): Promise<ListSessionMetricsCommandOutput>;
listSessionMetrics(
args: ListSessionMetricsCommandInput,
cb: (err: any, data?: ListSessionMetricsCommandOutput) => void
): void;
listSessionMetrics(
args: ListSessionMetricsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListSessionMetricsCommandOutput) => void
): void;

/**
* @see {@link ListSlotsCommand}
*/
Expand Down Expand Up @@ -1442,6 +1566,40 @@ export interface LexModelsV2 {
cb: (err: any, data?: ListTestSetsCommandOutput) => void
): void;

/**
* @see {@link ListUtteranceAnalyticsDataCommand}
*/
listUtteranceAnalyticsData(
args: ListUtteranceAnalyticsDataCommandInput,
options?: __HttpHandlerOptions
): Promise<ListUtteranceAnalyticsDataCommandOutput>;
listUtteranceAnalyticsData(
args: ListUtteranceAnalyticsDataCommandInput,
cb: (err: any, data?: ListUtteranceAnalyticsDataCommandOutput) => void
): void;
listUtteranceAnalyticsData(
args: ListUtteranceAnalyticsDataCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListUtteranceAnalyticsDataCommandOutput) => void
): void;

/**
* @see {@link ListUtteranceMetricsCommand}
*/
listUtteranceMetrics(
args: ListUtteranceMetricsCommandInput,
options?: __HttpHandlerOptions
): Promise<ListUtteranceMetricsCommandOutput>;
listUtteranceMetrics(
args: ListUtteranceMetricsCommandInput,
cb: (err: any, data?: ListUtteranceMetricsCommandOutput) => void
): void;
listUtteranceMetrics(
args: ListUtteranceMetricsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListUtteranceMetricsCommandOutput) => void
): void;

/**
* @see {@link SearchAssociatedTranscriptsCommand}
*/
Expand Down
33 changes: 33 additions & 0 deletions clients/client-lex-models-v2/src/LexModelsV2Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,22 @@ import {
} from "./commands/ListCustomVocabularyItemsCommand";
import { ListExportsCommandInput, ListExportsCommandOutput } from "./commands/ListExportsCommand";
import { ListImportsCommandInput, ListImportsCommandOutput } from "./commands/ListImportsCommand";
import { ListIntentMetricsCommandInput, ListIntentMetricsCommandOutput } from "./commands/ListIntentMetricsCommand";
import { ListIntentPathsCommandInput, ListIntentPathsCommandOutput } from "./commands/ListIntentPathsCommand";
import { ListIntentsCommandInput, ListIntentsCommandOutput } from "./commands/ListIntentsCommand";
import {
ListIntentStageMetricsCommandInput,
ListIntentStageMetricsCommandOutput,
} from "./commands/ListIntentStageMetricsCommand";
import {
ListRecommendedIntentsCommandInput,
ListRecommendedIntentsCommandOutput,
} from "./commands/ListRecommendedIntentsCommand";
import {
ListSessionAnalyticsDataCommandInput,
ListSessionAnalyticsDataCommandOutput,
} from "./commands/ListSessionAnalyticsDataCommand";
import { ListSessionMetricsCommandInput, ListSessionMetricsCommandOutput } from "./commands/ListSessionMetricsCommand";
import { ListSlotsCommandInput, ListSlotsCommandOutput } from "./commands/ListSlotsCommand";
import { ListSlotTypesCommandInput, ListSlotTypesCommandOutput } from "./commands/ListSlotTypesCommand";
import {
Expand All @@ -185,6 +196,14 @@ import {
import { ListTestExecutionsCommandInput, ListTestExecutionsCommandOutput } from "./commands/ListTestExecutionsCommand";
import { ListTestSetRecordsCommandInput, ListTestSetRecordsCommandOutput } from "./commands/ListTestSetRecordsCommand";
import { ListTestSetsCommandInput, ListTestSetsCommandOutput } from "./commands/ListTestSetsCommand";
import {
ListUtteranceAnalyticsDataCommandInput,
ListUtteranceAnalyticsDataCommandOutput,
} from "./commands/ListUtteranceAnalyticsDataCommand";
import {
ListUtteranceMetricsCommandInput,
ListUtteranceMetricsCommandOutput,
} from "./commands/ListUtteranceMetricsCommand";
import {
SearchAssociatedTranscriptsCommandInput,
SearchAssociatedTranscriptsCommandOutput,
Expand Down Expand Up @@ -293,15 +312,22 @@ export type ServiceInputTypes =
| ListCustomVocabularyItemsCommandInput
| ListExportsCommandInput
| ListImportsCommandInput
| ListIntentMetricsCommandInput
| ListIntentPathsCommandInput
| ListIntentStageMetricsCommandInput
| ListIntentsCommandInput
| ListRecommendedIntentsCommandInput
| ListSessionAnalyticsDataCommandInput
| ListSessionMetricsCommandInput
| ListSlotTypesCommandInput
| ListSlotsCommandInput
| ListTagsForResourceCommandInput
| ListTestExecutionResultItemsCommandInput
| ListTestExecutionsCommandInput
| ListTestSetRecordsCommandInput
| ListTestSetsCommandInput
| ListUtteranceAnalyticsDataCommandInput
| ListUtteranceMetricsCommandInput
| SearchAssociatedTranscriptsCommandInput
| StartBotRecommendationCommandInput
| StartImportCommandInput
Expand Down Expand Up @@ -383,15 +409,22 @@ export type ServiceOutputTypes =
| ListCustomVocabularyItemsCommandOutput
| ListExportsCommandOutput
| ListImportsCommandOutput
| ListIntentMetricsCommandOutput
| ListIntentPathsCommandOutput
| ListIntentStageMetricsCommandOutput
| ListIntentsCommandOutput
| ListRecommendedIntentsCommandOutput
| ListSessionAnalyticsDataCommandOutput
| ListSessionMetricsCommandOutput
| ListSlotTypesCommandOutput
| ListSlotsCommandOutput
| ListTagsForResourceCommandOutput
| ListTestExecutionResultItemsCommandOutput
| ListTestExecutionsCommandOutput
| ListTestSetRecordsCommandOutput
| ListTestSetsCommandOutput
| ListUtteranceAnalyticsDataCommandOutput
| ListUtteranceMetricsCommandOutput
| SearchAssociatedTranscriptsCommandOutput
| StartBotRecommendationCommandOutput
| StartImportCommandOutput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
} from "@smithy/types";

import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client";
import { DescribeSlotTypeRequest, DescribeSlotTypeResponse } from "../models/models_0";
import { DescribeSlotTypeRequest, DescribeSlotTypeResponse } from "../models/models_1";
import { de_DescribeSlotTypeCommand, se_DescribeSlotTypeCommand } from "../protocols/Aws_restJson1";

/**
Expand Down
Loading

0 comments on commit 22bd601

Please sign in to comment.