@aws-sdk/client-lex-models-v2 3.454.0 → 3.458.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.
Files changed (64) hide show
  1. package/README.md +124 -92
  2. package/dist-cjs/LexModelsV2.js +8 -0
  3. package/dist-cjs/commands/DescribeBotResourceGenerationCommand.js +51 -0
  4. package/dist-cjs/commands/GenerateBotElementCommand.js +51 -0
  5. package/dist-cjs/commands/ListBotResourceGenerationsCommand.js +51 -0
  6. package/dist-cjs/commands/StartBotResourceGenerationCommand.js +51 -0
  7. package/dist-cjs/commands/index.js +4 -0
  8. package/dist-cjs/models/models_0.js +10 -5
  9. package/dist-cjs/models/models_1.js +9 -1
  10. package/dist-cjs/pagination/ListBotResourceGenerationsPaginator.js +29 -0
  11. package/dist-cjs/pagination/index.js +1 -0
  12. package/dist-cjs/protocols/Aws_restJson1.js +336 -4
  13. package/dist-es/LexModelsV2.js +8 -0
  14. package/dist-es/commands/DescribeBotResourceGenerationCommand.js +47 -0
  15. package/dist-es/commands/GenerateBotElementCommand.js +47 -0
  16. package/dist-es/commands/ListBotResourceGenerationsCommand.js +47 -0
  17. package/dist-es/commands/StartBotResourceGenerationCommand.js +47 -0
  18. package/dist-es/commands/index.js +4 -0
  19. package/dist-es/models/models_0.js +9 -4
  20. package/dist-es/models/models_1.js +8 -0
  21. package/dist-es/pagination/ListBotResourceGenerationsPaginator.js +25 -0
  22. package/dist-es/pagination/index.js +1 -0
  23. package/dist-es/protocols/Aws_restJson1.js +324 -0
  24. package/dist-types/LexModelsV2.d.ts +28 -0
  25. package/dist-types/LexModelsV2Client.d.ts +6 -2
  26. package/dist-types/commands/CreateBotLocaleCommand.d.ts +48 -0
  27. package/dist-types/commands/CreateBotVersionCommand.d.ts +5 -6
  28. package/dist-types/commands/CreateSlotCommand.d.ts +6 -0
  29. package/dist-types/commands/DescribeBotLocaleCommand.d.ts +24 -0
  30. package/dist-types/commands/DescribeBotResourceGenerationCommand.d.ts +107 -0
  31. package/dist-types/commands/DescribeImportCommand.d.ts +2 -1
  32. package/dist-types/commands/DescribeIntentCommand.d.ts +1 -2
  33. package/dist-types/commands/DescribeResourcePolicyCommand.d.ts +1 -1
  34. package/dist-types/commands/DescribeSlotCommand.d.ts +4 -2
  35. package/dist-types/commands/DescribeSlotTypeCommand.d.ts +1 -2
  36. package/dist-types/commands/GenerateBotElementCommand.d.ts +113 -0
  37. package/dist-types/commands/ListBotResourceGenerationsCommand.d.ts +108 -0
  38. package/dist-types/commands/StartBotResourceGenerationCommand.d.ts +111 -0
  39. package/dist-types/commands/UpdateBotLocaleCommand.d.ts +48 -0
  40. package/dist-types/commands/UpdateSlotCommand.d.ts +6 -0
  41. package/dist-types/commands/index.d.ts +4 -0
  42. package/dist-types/models/models_0.d.ts +240 -318
  43. package/dist-types/models/models_1.d.ts +594 -1
  44. package/dist-types/pagination/ListBotResourceGenerationsPaginator.d.ts +7 -0
  45. package/dist-types/pagination/index.d.ts +1 -0
  46. package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
  47. package/dist-types/ts3.4/LexModelsV2.d.ts +68 -0
  48. package/dist-types/ts3.4/LexModelsV2Client.d.ts +24 -0
  49. package/dist-types/ts3.4/commands/DescribeBotResourceGenerationCommand.d.ts +42 -0
  50. package/dist-types/ts3.4/commands/DescribeImportCommand.d.ts +2 -4
  51. package/dist-types/ts3.4/commands/DescribeIntentCommand.d.ts +4 -2
  52. package/dist-types/ts3.4/commands/DescribeResourcePolicyCommand.d.ts +1 -1
  53. package/dist-types/ts3.4/commands/DescribeSlotCommand.d.ts +1 -2
  54. package/dist-types/ts3.4/commands/DescribeSlotTypeCommand.d.ts +4 -2
  55. package/dist-types/ts3.4/commands/GenerateBotElementCommand.d.ts +39 -0
  56. package/dist-types/ts3.4/commands/ListBotResourceGenerationsCommand.d.ts +42 -0
  57. package/dist-types/ts3.4/commands/StartBotResourceGenerationCommand.d.ts +42 -0
  58. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  59. package/dist-types/ts3.4/models/models_0.d.ts +64 -72
  60. package/dist-types/ts3.4/models/models_1.d.ts +140 -4
  61. package/dist-types/ts3.4/pagination/ListBotResourceGenerationsPaginator.d.ts +11 -0
  62. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  63. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
  64. package/package.json +3 -3
@@ -0,0 +1,108 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client";
5
+ import { ListBotResourceGenerationsRequest, ListBotResourceGenerationsResponse } from "../models/models_1";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListBotResourceGenerationsCommand}.
14
+ */
15
+ export interface ListBotResourceGenerationsCommandInput extends ListBotResourceGenerationsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListBotResourceGenerationsCommand}.
21
+ */
22
+ export interface ListBotResourceGenerationsCommandOutput extends ListBotResourceGenerationsResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Lists the generation requests made for a bot locale.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { LexModelsV2Client, ListBotResourceGenerationsCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import
31
+ * // const { LexModelsV2Client, ListBotResourceGenerationsCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import
32
+ * const client = new LexModelsV2Client(config);
33
+ * const input = { // ListBotResourceGenerationsRequest
34
+ * botId: "STRING_VALUE", // required
35
+ * botVersion: "STRING_VALUE", // required
36
+ * localeId: "STRING_VALUE", // required
37
+ * sortBy: { // GenerationSortBy
38
+ * attribute: "creationStartTime" || "lastUpdatedTime", // required
39
+ * order: "Ascending" || "Descending", // required
40
+ * },
41
+ * maxResults: Number("int"),
42
+ * nextToken: "STRING_VALUE",
43
+ * };
44
+ * const command = new ListBotResourceGenerationsCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // ListBotResourceGenerationsResponse
47
+ * // botId: "STRING_VALUE",
48
+ * // botVersion: "STRING_VALUE",
49
+ * // localeId: "STRING_VALUE",
50
+ * // generationSummaries: [ // GenerationSummaryList
51
+ * // { // GenerationSummary
52
+ * // generationId: "STRING_VALUE",
53
+ * // generationStatus: "Failed" || "Complete" || "InProgress",
54
+ * // creationDateTime: new Date("TIMESTAMP"),
55
+ * // lastUpdatedDateTime: new Date("TIMESTAMP"),
56
+ * // },
57
+ * // ],
58
+ * // nextToken: "STRING_VALUE",
59
+ * // };
60
+ *
61
+ * ```
62
+ *
63
+ * @param ListBotResourceGenerationsCommandInput - {@link ListBotResourceGenerationsCommandInput}
64
+ * @returns {@link ListBotResourceGenerationsCommandOutput}
65
+ * @see {@link ListBotResourceGenerationsCommandInput} for command's `input` shape.
66
+ * @see {@link ListBotResourceGenerationsCommandOutput} for command's `response` shape.
67
+ * @see {@link LexModelsV2ClientResolvedConfig | config} for LexModelsV2Client's `config` shape.
68
+ *
69
+ * @throws {@link InternalServerException} (server fault)
70
+ * <p>The service encountered an unexpected condition. Try your request
71
+ * again.</p>
72
+ *
73
+ * @throws {@link ResourceNotFoundException} (client fault)
74
+ * <p>You asked to describe a resource that doesn't exist. Check the
75
+ * resource that you are requesting and try again.</p>
76
+ *
77
+ * @throws {@link ThrottlingException} (client fault)
78
+ * <p>Your request rate is too high. Reduce the frequency of
79
+ * requests.</p>
80
+ *
81
+ * @throws {@link ValidationException} (client fault)
82
+ * <p>One of the input parameters in your request isn't valid. Check the
83
+ * parameters and try your request again.</p>
84
+ *
85
+ * @throws {@link LexModelsV2ServiceException}
86
+ * <p>Base exception class for all service exceptions from LexModelsV2 service.</p>
87
+ *
88
+ */
89
+ export declare class ListBotResourceGenerationsCommand extends $Command<ListBotResourceGenerationsCommandInput, ListBotResourceGenerationsCommandOutput, LexModelsV2ClientResolvedConfig> {
90
+ readonly input: ListBotResourceGenerationsCommandInput;
91
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
92
+ /**
93
+ * @public
94
+ */
95
+ constructor(input: ListBotResourceGenerationsCommandInput);
96
+ /**
97
+ * @internal
98
+ */
99
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexModelsV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListBotResourceGenerationsCommandInput, ListBotResourceGenerationsCommandOutput>;
100
+ /**
101
+ * @internal
102
+ */
103
+ private serialize;
104
+ /**
105
+ * @internal
106
+ */
107
+ private deserialize;
108
+ }
@@ -0,0 +1,111 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client";
5
+ import { StartBotResourceGenerationRequest, StartBotResourceGenerationResponse } from "../models/models_1";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link StartBotResourceGenerationCommand}.
14
+ */
15
+ export interface StartBotResourceGenerationCommandInput extends StartBotResourceGenerationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link StartBotResourceGenerationCommand}.
21
+ */
22
+ export interface StartBotResourceGenerationCommandOutput extends StartBotResourceGenerationResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Starts a request for the descriptive bot builder to generate a bot locale configuration
27
+ * based on the prompt you provide it. After you make this call, use the <code>DescribeBotResourceGeneration</code>
28
+ * operation to check on the status of the generation and for the <code>generatedBotLocaleUrl</code> when the
29
+ * generation is complete. Use that value to retrieve the Amazon S3 object containing the bot locale configuration. You can
30
+ * then modify and import this configuration.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { LexModelsV2Client, StartBotResourceGenerationCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import
35
+ * // const { LexModelsV2Client, StartBotResourceGenerationCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import
36
+ * const client = new LexModelsV2Client(config);
37
+ * const input = { // StartBotResourceGenerationRequest
38
+ * generationInputPrompt: "STRING_VALUE", // required
39
+ * botId: "STRING_VALUE", // required
40
+ * botVersion: "STRING_VALUE", // required
41
+ * localeId: "STRING_VALUE", // required
42
+ * };
43
+ * const command = new StartBotResourceGenerationCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // StartBotResourceGenerationResponse
46
+ * // generationInputPrompt: "STRING_VALUE",
47
+ * // generationId: "STRING_VALUE",
48
+ * // botId: "STRING_VALUE",
49
+ * // botVersion: "STRING_VALUE",
50
+ * // localeId: "STRING_VALUE",
51
+ * // generationStatus: "Failed" || "Complete" || "InProgress",
52
+ * // creationDateTime: new Date("TIMESTAMP"),
53
+ * // };
54
+ *
55
+ * ```
56
+ *
57
+ * @param StartBotResourceGenerationCommandInput - {@link StartBotResourceGenerationCommandInput}
58
+ * @returns {@link StartBotResourceGenerationCommandOutput}
59
+ * @see {@link StartBotResourceGenerationCommandInput} for command's `input` shape.
60
+ * @see {@link StartBotResourceGenerationCommandOutput} for command's `response` shape.
61
+ * @see {@link LexModelsV2ClientResolvedConfig | config} for LexModelsV2Client's `config` shape.
62
+ *
63
+ * @throws {@link ConflictException} (client fault)
64
+ * <p>The action that you tried to perform couldn't be completed because
65
+ * the resource is in a conflicting state. For example, deleting a bot
66
+ * that is in the CREATING state. Try your request again. </p>
67
+ *
68
+ * @throws {@link InternalServerException} (server fault)
69
+ * <p>The service encountered an unexpected condition. Try your request
70
+ * again.</p>
71
+ *
72
+ * @throws {@link PreconditionFailedException} (client fault)
73
+ * <p>Your request couldn't be completed because one or more request
74
+ * fields aren't valid. Check the fields in your request and try
75
+ * again.</p>
76
+ *
77
+ * @throws {@link ServiceQuotaExceededException} (client fault)
78
+ * <p>You have reached a quota for your bot. </p>
79
+ *
80
+ * @throws {@link ThrottlingException} (client fault)
81
+ * <p>Your request rate is too high. Reduce the frequency of
82
+ * requests.</p>
83
+ *
84
+ * @throws {@link ValidationException} (client fault)
85
+ * <p>One of the input parameters in your request isn't valid. Check the
86
+ * parameters and try your request again.</p>
87
+ *
88
+ * @throws {@link LexModelsV2ServiceException}
89
+ * <p>Base exception class for all service exceptions from LexModelsV2 service.</p>
90
+ *
91
+ */
92
+ export declare class StartBotResourceGenerationCommand extends $Command<StartBotResourceGenerationCommandInput, StartBotResourceGenerationCommandOutput, LexModelsV2ClientResolvedConfig> {
93
+ readonly input: StartBotResourceGenerationCommandInput;
94
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
95
+ /**
96
+ * @public
97
+ */
98
+ constructor(input: StartBotResourceGenerationCommandInput);
99
+ /**
100
+ * @internal
101
+ */
102
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexModelsV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartBotResourceGenerationCommandInput, StartBotResourceGenerationCommandOutput>;
103
+ /**
104
+ * @internal
105
+ */
106
+ private serialize;
107
+ /**
108
+ * @internal
109
+ */
110
+ private deserialize;
111
+ }
@@ -40,6 +40,30 @@ export interface UpdateBotLocaleCommandOutput extends UpdateBotLocaleResponse, _
40
40
  * voiceId: "STRING_VALUE", // required
41
41
  * engine: "standard" || "neural",
42
42
  * },
43
+ * generativeAISettings: { // GenerativeAISettings
44
+ * runtimeSettings: { // RuntimeSettings
45
+ * slotResolutionImprovement: { // SlotResolutionImprovementSpecification
46
+ * enabled: true || false, // required
47
+ * bedrockModelSpecification: { // BedrockModelSpecification
48
+ * modelArn: "STRING_VALUE", // required
49
+ * },
50
+ * },
51
+ * },
52
+ * buildtimeSettings: { // BuildtimeSettings
53
+ * descriptiveBotBuilder: { // DescriptiveBotBuilderSpecification
54
+ * enabled: true || false, // required
55
+ * bedrockModelSpecification: {
56
+ * modelArn: "STRING_VALUE", // required
57
+ * },
58
+ * },
59
+ * sampleUtteranceGeneration: { // SampleUtteranceGenerationSpecification
60
+ * enabled: true || false, // required
61
+ * bedrockModelSpecification: {
62
+ * modelArn: "STRING_VALUE", // required
63
+ * },
64
+ * },
65
+ * },
66
+ * },
43
67
  * };
44
68
  * const command = new UpdateBotLocaleCommand(input);
45
69
  * const response = await client.send(command);
@@ -63,6 +87,30 @@ export interface UpdateBotLocaleCommandOutput extends UpdateBotLocaleResponse, _
63
87
  * // recommendedActions: [ // RecommendedActions
64
88
  * // "STRING_VALUE",
65
89
  * // ],
90
+ * // generativeAISettings: { // GenerativeAISettings
91
+ * // runtimeSettings: { // RuntimeSettings
92
+ * // slotResolutionImprovement: { // SlotResolutionImprovementSpecification
93
+ * // enabled: true || false, // required
94
+ * // bedrockModelSpecification: { // BedrockModelSpecification
95
+ * // modelArn: "STRING_VALUE", // required
96
+ * // },
97
+ * // },
98
+ * // },
99
+ * // buildtimeSettings: { // BuildtimeSettings
100
+ * // descriptiveBotBuilder: { // DescriptiveBotBuilderSpecification
101
+ * // enabled: true || false, // required
102
+ * // bedrockModelSpecification: {
103
+ * // modelArn: "STRING_VALUE", // required
104
+ * // },
105
+ * // },
106
+ * // sampleUtteranceGeneration: { // SampleUtteranceGenerationSpecification
107
+ * // enabled: true || false, // required
108
+ * // bedrockModelSpecification: {
109
+ * // modelArn: "STRING_VALUE", // required
110
+ * // },
111
+ * // },
112
+ * // },
113
+ * // },
66
114
  * // };
67
115
  *
68
116
  * ```
@@ -355,6 +355,9 @@ export interface UpdateSlotCommandOutput extends UpdateSlotResponse, __MetadataB
355
355
  * invocationLabel: "STRING_VALUE",
356
356
  * },
357
357
  * },
358
+ * slotResolutionSetting: { // SlotResolutionSetting
359
+ * slotResolutionStrategy: "EnhancedFallback" || "Default", // required
360
+ * },
358
361
  * },
359
362
  * obfuscationSetting: { // ObfuscationSetting
360
363
  * obfuscationSettingType: "None" || "DefaultObfuscation", // required
@@ -758,6 +761,9 @@ export interface UpdateSlotCommandOutput extends UpdateSlotResponse, __MetadataB
758
761
  * // invocationLabel: "STRING_VALUE",
759
762
  * // },
760
763
  * // },
764
+ * // slotResolutionSetting: { // SlotResolutionSetting
765
+ * // slotResolutionStrategy: "EnhancedFallback" || "Default", // required
766
+ * // },
761
767
  * // },
762
768
  * // obfuscationSetting: { // ObfuscationSetting
763
769
  * // obfuscationSettingType: "None" || "DefaultObfuscation", // required
@@ -32,6 +32,7 @@ export * from "./DescribeBotAliasCommand";
32
32
  export * from "./DescribeBotCommand";
33
33
  export * from "./DescribeBotLocaleCommand";
34
34
  export * from "./DescribeBotRecommendationCommand";
35
+ export * from "./DescribeBotResourceGenerationCommand";
35
36
  export * from "./DescribeBotVersionCommand";
36
37
  export * from "./DescribeCustomVocabularyMetadataCommand";
37
38
  export * from "./DescribeExportCommand";
@@ -44,11 +45,13 @@ export * from "./DescribeTestExecutionCommand";
44
45
  export * from "./DescribeTestSetCommand";
45
46
  export * from "./DescribeTestSetDiscrepancyReportCommand";
46
47
  export * from "./DescribeTestSetGenerationCommand";
48
+ export * from "./GenerateBotElementCommand";
47
49
  export * from "./GetTestExecutionArtifactsUrlCommand";
48
50
  export * from "./ListAggregatedUtterancesCommand";
49
51
  export * from "./ListBotAliasesCommand";
50
52
  export * from "./ListBotLocalesCommand";
51
53
  export * from "./ListBotRecommendationsCommand";
54
+ export * from "./ListBotResourceGenerationsCommand";
52
55
  export * from "./ListBotVersionsCommand";
53
56
  export * from "./ListBotsCommand";
54
57
  export * from "./ListBuiltInIntentsCommand";
@@ -74,6 +77,7 @@ export * from "./ListUtteranceAnalyticsDataCommand";
74
77
  export * from "./ListUtteranceMetricsCommand";
75
78
  export * from "./SearchAssociatedTranscriptsCommand";
76
79
  export * from "./StartBotRecommendationCommand";
80
+ export * from "./StartBotResourceGenerationCommand";
77
81
  export * from "./StartImportCommand";
78
82
  export * from "./StartTestExecutionCommand";
79
83
  export * from "./StartTestSetGenerationCommand";