@aws-sdk/client-lex-models-v2 3.52.0 → 3.53.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/CHANGELOG.md +11 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/LexModelsV2ServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +98 -5
- package/dist-cjs/protocols/Aws_restJson1.js +708 -2758
- package/dist-es/index.js +1 -0
- package/dist-es/models/LexModelsV2ServiceException.js +12 -0
- package/dist-es/models/models_0.js +87 -1
- package/dist-es/protocols/Aws_restJson1.js +1559 -3030
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/LexModelsV2ServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +51 -29
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/LexModelsV2ServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +37 -29
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-lex-models-v2
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LexModelsV2ServiceException = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
tslib_1.__exportStar(require("./LexModelsV2"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./LexModelsV2Client"), exports);
|
|
@@ -7,3 +8,5 @@ tslib_1.__exportStar(require("./commands"), exports);
|
|
|
7
8
|
tslib_1.__exportStar(require("./models"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./pagination"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./waiters"), exports);
|
|
11
|
+
var LexModelsV2ServiceException_1 = require("./models/LexModelsV2ServiceException");
|
|
12
|
+
Object.defineProperty(exports, "LexModelsV2ServiceException", { enumerable: true, get: function () { return LexModelsV2ServiceException_1.LexModelsV2ServiceException; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LexModelsV2ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
class LexModelsV2ServiceException extends smithy_client_1.ServiceException {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(options);
|
|
8
|
+
Object.setPrototypeOf(this, LexModelsV2ServiceException.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.LexModelsV2ServiceException = LexModelsV2ServiceException;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BotVersionLocaleDetails = exports.BotSummary = exports.BotStatus = exports.BotSortBy = exports.BotSortAttribute = exports.BotRecommendationSummary = exports.BotRecommendationStatus = exports.BotRecommendationResults = exports.BotRecommendationResultStatistics = exports.SlotTypeStatistics = exports.IntentStatistics = exports.BotLocaleSummary = exports.BotLocaleStatus = exports.BotLocaleSortBy = exports.BotLocaleSortAttribute = exports.BotLocaleImportSpecification = exports.VoiceSettings = exports.VoiceEngine = exports.BotLocaleHistoryEvent = exports.BotLocaleFilter = exports.BotLocaleFilterOperator = exports.BotLocaleFilterName = exports.BotLocaleExportSpecification = exports.BotImportSpecification = exports.DataPrivacy = exports.BotFilter = exports.BotFilterOperator = exports.BotFilterName = exports.BotExportSpecification = exports.BotAliasSummary = exports.BotAliasStatus = exports.BotAliasLocaleSettings = exports.CodeHookSpecification = exports.LambdaCodeHook = exports.BotAliasHistoryEvent = exports.AudioLogSetting = exports.AudioLogDestination = exports.S3BucketLogDestination = exports.AssociatedTranscriptFilter = exports.AssociatedTranscriptFilterName = exports.AssociatedTranscript = exports.AggregatedUtterancesSummary = exports.AggregatedUtterancesSortBy = exports.SortOrder = exports.AggregatedUtterancesSortAttribute = exports.AggregatedUtterancesFilter = exports.AggregatedUtterancesFilterOperator = exports.AggregatedUtterancesFilterName = exports.AdvancedRecognitionSetting = exports.AudioRecognitionStrategy = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.UpdateSlotTypeResponse = exports.UpdateSlotTypeRequest = exports.UpdateSlotResponse = exports.UpdateSlotRequest = exports.UpdateResourcePolicyResponse = exports.UpdateResourcePolicyRequest = exports.UpdateIntentResponse = exports.UpdateIntentRequest = exports.UpdateExportResponse = exports.UpdateExportRequest = exports.UpdateBotRecommendationResponse = exports.UpdateBotRecommendationRequest = exports.UpdateBotLocaleResponse = exports.UpdateBotLocaleRequest = exports.UpdateBotAliasResponse = exports.UpdateBotAliasRequest = exports.UpdateBotResponse = exports.UpdateBotRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StartImportResponse = exports.StartImportRequest = exports.StartBotRecommendationResponse = exports.StartBotRecommendationRequest = exports.SearchAssociatedTranscriptsResponse = exports.SearchAssociatedTranscriptsRequest = exports.SearchOrder = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListSlotTypesResponse = exports.SlotTypeSummary = exports.SlotTypeCategory = exports.ListSlotTypesRequest = exports.SlotTypeSortBy = exports.SlotTypeSortAttribute = exports.SlotTypeFilter = void 0;
|
|
4
|
+
exports.PostFulfillmentStatusSpecification = exports.ResponseSpecification = exports.FulfillmentUpdatesSpecification = exports.FulfillmentUpdateResponseSpecification = exports.FulfillmentStartResponseSpecification = exports.MessageGroup = exports.Message = exports.SSMLMessage = exports.PlainTextMessage = exports.ImageResponseCard = exports.CustomPayload = exports.DialogCodeHookSettings = exports.ResourceNotFoundException = exports.CreateExportResponse = exports.ExportStatus = exports.CreateExportRequest = exports.ExportResourceSpecification = exports.CustomVocabularyExportSpecification = exports.ImportExportFileFormat = exports.CreateBotVersionResponse = exports.CreateBotVersionRequest = exports.CreateBotLocaleResponse = exports.CreateBotLocaleRequest = exports.CreateBotAliasResponse = exports.CreateBotAliasRequest = exports.SentimentAnalysisSettings = exports.CreateBotResponse = exports.CreateBotRequest = exports.ConversationLogSettings = exports.TextLogSetting = exports.TextLogDestination = exports.CloudWatchLogGroupLogDestination = exports.Button = exports.BuiltInSlotTypeSummary = exports.BuiltInSlotTypeSortBy = exports.BuiltInSlotTypeSortAttribute = exports.BuiltInIntentSummary = exports.BuiltInIntentSortBy = exports.BuiltInIntentSortAttribute = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.PreconditionFailedException = exports.InternalServerException = exports.ConflictException = exports.BuildBotLocaleResponse = exports.BuildBotLocaleRequest = exports.BotVersionSummary = exports.BotVersionSortBy = exports.BotVersionSortAttribute = void 0;
|
|
5
|
+
exports.DeleteBotVersionResponse = exports.DeleteBotVersionRequest = exports.DeleteBotLocaleResponse = exports.DeleteBotLocaleRequest = exports.DeleteBotAliasResponse = exports.DeleteBotAliasRequest = exports.DeleteBotResponse = exports.DeleteBotRequest = exports.DateRangeFilter = exports.CustomVocabularyStatus = exports.CustomVocabularyImportSpecification = exports.CreateUploadUrlResponse = exports.CreateUploadUrlRequest = exports.CreateSlotTypeResponse = exports.CreateSlotTypeRequest = exports.SlotValueSelectionSetting = exports.SlotValueResolutionStrategy = exports.SlotValueRegexFilter = exports.SlotTypeValue = exports.SampleValue = exports.ExternalSourceSetting = exports.GrammarSlotTypeSetting = exports.GrammarSlotTypeSource = exports.CreateSlotResponse = exports.CreateSlotRequest = exports.SlotValueElicitationSetting = exports.WaitAndContinueSpecification = exports.StillWaitingResponseSpecification = exports.SlotConstraint = exports.SlotDefaultValueSpecification = exports.SlotDefaultValue = exports.ObfuscationSetting = exports.ObfuscationSettingType = exports.MultipleValuesSetting = exports.CreateResourcePolicyStatementResponse = exports.CreateResourcePolicyStatementRequest = exports.Principal = exports.Effect = exports.CreateResourcePolicyResponse = exports.CreateResourcePolicyRequest = exports.CreateIntentResponse = exports.CreateIntentRequest = exports.SampleUtterance = exports.OutputContext = exports.KendraConfiguration = exports.IntentConfirmationSetting = exports.PromptSpecification = exports.IntentClosingSetting = exports.InputContext = exports.FulfillmentCodeHookSettings = void 0;
|
|
6
|
+
exports.DescribeSlotTypeResponse = exports.DescribeSlotTypeRequest = exports.DescribeSlotResponse = exports.DescribeSlotRequest = exports.DescribeResourcePolicyResponse = exports.DescribeResourcePolicyRequest = exports.DescribeIntentResponse = exports.SlotPriority = exports.DescribeIntentRequest = exports.DescribeImportResponse = exports.ImportResourceSpecification = exports.MergeStrategy = exports.DescribeImportRequest = exports.DescribeExportResponse = exports.DescribeExportRequest = exports.DescribeCustomVocabularyMetadataResponse = exports.DescribeCustomVocabularyMetadataRequest = exports.DescribeBotVersionResponse = exports.DescribeBotVersionRequest = exports.DescribeBotRecommendationResponse = exports.TranscriptSourceSetting = exports.S3BucketTranscriptSource = exports.TranscriptFormat = exports.TranscriptFilter = exports.LexTranscriptFilter = exports.PathFormat = exports.EncryptionSetting = exports.DescribeBotRecommendationRequest = exports.DescribeBotLocaleResponse = exports.DescribeBotLocaleRequest = exports.DescribeBotAliasResponse = exports.DescribeBotAliasRequest = exports.DescribeBotResponse = exports.DescribeBotRequest = exports.DeleteUtterancesResponse = exports.DeleteUtterancesRequest = exports.DeleteSlotTypeRequest = exports.DeleteSlotRequest = exports.DeleteResourcePolicyStatementResponse = exports.DeleteResourcePolicyStatementRequest = exports.DeleteResourcePolicyResponse = exports.DeleteResourcePolicyRequest = exports.DeleteIntentRequest = exports.DeleteImportResponse = exports.ImportStatus = exports.DeleteImportRequest = exports.DeleteExportResponse = exports.DeleteExportRequest = exports.DeleteCustomVocabularyResponse = exports.DeleteCustomVocabularyRequest = void 0;
|
|
7
|
+
exports.SlotFilter = exports.SlotFilterOperator = exports.SlotFilterName = exports.ListRecommendedIntentsResponse = exports.RecommendedIntentSummary = exports.ListRecommendedIntentsRequest = exports.ListIntentsResponse = exports.ListIntentsRequest = exports.ListImportsResponse = exports.ListImportsRequest = exports.ListExportsResponse = exports.ListExportsRequest = exports.ListBuiltInSlotTypesResponse = exports.ListBuiltInSlotTypesRequest = exports.ListBuiltInIntentsResponse = exports.ListBuiltInIntentsRequest = exports.ListBotVersionsResponse = exports.ListBotVersionsRequest = exports.ListBotsResponse = exports.ListBotsRequest = exports.ListBotRecommendationsResponse = exports.ListBotRecommendationsRequest = exports.ListBotLocalesResponse = exports.ListBotLocalesRequest = exports.ListBotAliasesResponse = exports.ListBotAliasesRequest = exports.ListAggregatedUtterancesResponse = exports.ListAggregatedUtterancesRequest = exports.UtteranceAggregationDuration = exports.RelativeAggregationDuration = exports.TimeDimension = exports.IntentSummary = exports.IntentSortBy = exports.IntentSortAttribute = exports.IntentFilter = exports.IntentFilterOperator = exports.IntentFilterName = exports.ImportSummary = exports.ImportSortBy = exports.ImportSortAttribute = exports.ImportResourceType = exports.ImportFilter = exports.ImportFilterOperator = exports.ImportFilterName = exports.ExportSummary = exports.ExportSortBy = exports.ExportSortAttribute = exports.ExportFilter = exports.ExportFilterOperator = exports.ExportFilterName = void 0;
|
|
8
|
+
exports.UpdateSlotTypeResponse = exports.UpdateSlotTypeRequest = exports.UpdateSlotResponse = exports.UpdateSlotRequest = exports.UpdateResourcePolicyResponse = exports.UpdateResourcePolicyRequest = exports.UpdateIntentResponse = exports.UpdateIntentRequest = exports.UpdateExportResponse = exports.UpdateExportRequest = exports.UpdateBotRecommendationResponse = exports.UpdateBotRecommendationRequest = exports.UpdateBotLocaleResponse = exports.UpdateBotLocaleRequest = exports.UpdateBotAliasResponse = exports.UpdateBotAliasRequest = exports.UpdateBotResponse = exports.UpdateBotRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StartImportResponse = exports.StartImportRequest = exports.StartBotRecommendationResponse = exports.StartBotRecommendationRequest = exports.SearchAssociatedTranscriptsResponse = exports.SearchAssociatedTranscriptsRequest = exports.SearchOrder = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListSlotTypesResponse = exports.SlotTypeSummary = exports.SlotTypeCategory = exports.ListSlotTypesRequest = exports.SlotTypeSortBy = exports.SlotTypeSortAttribute = exports.SlotTypeFilter = exports.SlotTypeFilterOperator = exports.SlotTypeFilterName = exports.ListSlotsResponse = exports.SlotSummary = exports.ListSlotsRequest = exports.SlotSortBy = exports.SlotSortAttribute = void 0;
|
|
9
9
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
10
|
+
const LexModelsV2ServiceException_1 = require("./LexModelsV2ServiceException");
|
|
10
11
|
var AudioRecognitionStrategy;
|
|
11
12
|
(function (AudioRecognitionStrategy) {
|
|
12
13
|
AudioRecognitionStrategy["UseSlotValuesAsCustomVocabulary"] = "UseSlotValuesAsCustomVocabulary";
|
|
@@ -331,6 +332,85 @@ var BuildBotLocaleResponse;
|
|
|
331
332
|
...obj,
|
|
332
333
|
});
|
|
333
334
|
})(BuildBotLocaleResponse = exports.BuildBotLocaleResponse || (exports.BuildBotLocaleResponse = {}));
|
|
335
|
+
class ConflictException extends LexModelsV2ServiceException_1.LexModelsV2ServiceException {
|
|
336
|
+
constructor(opts) {
|
|
337
|
+
super({
|
|
338
|
+
name: "ConflictException",
|
|
339
|
+
$fault: "client",
|
|
340
|
+
...opts,
|
|
341
|
+
});
|
|
342
|
+
this.name = "ConflictException";
|
|
343
|
+
this.$fault = "client";
|
|
344
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
exports.ConflictException = ConflictException;
|
|
348
|
+
class InternalServerException extends LexModelsV2ServiceException_1.LexModelsV2ServiceException {
|
|
349
|
+
constructor(opts) {
|
|
350
|
+
super({
|
|
351
|
+
name: "InternalServerException",
|
|
352
|
+
$fault: "server",
|
|
353
|
+
...opts,
|
|
354
|
+
});
|
|
355
|
+
this.name = "InternalServerException";
|
|
356
|
+
this.$fault = "server";
|
|
357
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
exports.InternalServerException = InternalServerException;
|
|
361
|
+
class PreconditionFailedException extends LexModelsV2ServiceException_1.LexModelsV2ServiceException {
|
|
362
|
+
constructor(opts) {
|
|
363
|
+
super({
|
|
364
|
+
name: "PreconditionFailedException",
|
|
365
|
+
$fault: "client",
|
|
366
|
+
...opts,
|
|
367
|
+
});
|
|
368
|
+
this.name = "PreconditionFailedException";
|
|
369
|
+
this.$fault = "client";
|
|
370
|
+
Object.setPrototypeOf(this, PreconditionFailedException.prototype);
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
exports.PreconditionFailedException = PreconditionFailedException;
|
|
374
|
+
class ServiceQuotaExceededException extends LexModelsV2ServiceException_1.LexModelsV2ServiceException {
|
|
375
|
+
constructor(opts) {
|
|
376
|
+
super({
|
|
377
|
+
name: "ServiceQuotaExceededException",
|
|
378
|
+
$fault: "client",
|
|
379
|
+
...opts,
|
|
380
|
+
});
|
|
381
|
+
this.name = "ServiceQuotaExceededException";
|
|
382
|
+
this.$fault = "client";
|
|
383
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
387
|
+
class ThrottlingException extends LexModelsV2ServiceException_1.LexModelsV2ServiceException {
|
|
388
|
+
constructor(opts) {
|
|
389
|
+
super({
|
|
390
|
+
name: "ThrottlingException",
|
|
391
|
+
$fault: "client",
|
|
392
|
+
...opts,
|
|
393
|
+
});
|
|
394
|
+
this.name = "ThrottlingException";
|
|
395
|
+
this.$fault = "client";
|
|
396
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
397
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
exports.ThrottlingException = ThrottlingException;
|
|
401
|
+
class ValidationException extends LexModelsV2ServiceException_1.LexModelsV2ServiceException {
|
|
402
|
+
constructor(opts) {
|
|
403
|
+
super({
|
|
404
|
+
name: "ValidationException",
|
|
405
|
+
$fault: "client",
|
|
406
|
+
...opts,
|
|
407
|
+
});
|
|
408
|
+
this.name = "ValidationException";
|
|
409
|
+
this.$fault = "client";
|
|
410
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
exports.ValidationException = ValidationException;
|
|
334
414
|
var BuiltInIntentSortAttribute;
|
|
335
415
|
(function (BuiltInIntentSortAttribute) {
|
|
336
416
|
BuiltInIntentSortAttribute["IntentSignature"] = "IntentSignature";
|
|
@@ -484,6 +564,19 @@ var CreateExportResponse;
|
|
|
484
564
|
...obj,
|
|
485
565
|
});
|
|
486
566
|
})(CreateExportResponse = exports.CreateExportResponse || (exports.CreateExportResponse = {}));
|
|
567
|
+
class ResourceNotFoundException extends LexModelsV2ServiceException_1.LexModelsV2ServiceException {
|
|
568
|
+
constructor(opts) {
|
|
569
|
+
super({
|
|
570
|
+
name: "ResourceNotFoundException",
|
|
571
|
+
$fault: "client",
|
|
572
|
+
...opts,
|
|
573
|
+
});
|
|
574
|
+
this.name = "ResourceNotFoundException";
|
|
575
|
+
this.$fault = "client";
|
|
576
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
487
580
|
var DialogCodeHookSettings;
|
|
488
581
|
(function (DialogCodeHookSettings) {
|
|
489
582
|
DialogCodeHookSettings.filterSensitiveLog = (obj) => ({
|