@aws-sdk/client-lex-models-v2 3.44.0 → 3.47.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/CHANGELOG.md +47 -0
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +30 -47
- package/dist-cjs/protocols/Aws_restJson1.js +81 -0
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_0.js +19 -28
- package/dist-es/protocols/Aws_restJson1.js +73 -2
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/LexModelsV2Client.d.ts +5 -1
- package/dist-types/models/models_0.d.ts +131 -47
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/LexModelsV2Client.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +55 -30
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +40 -47
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,53 @@
|
|
|
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.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-lex-models-v2
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
|
|
36
|
+
* end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
# [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Features
|
|
46
|
+
|
|
47
|
+
* **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
6
53
|
# [3.44.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.43.0...v3.44.0) (2021-12-02)
|
|
7
54
|
|
|
8
55
|
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BotVersionSortBy = exports.BotVersionSortAttribute = 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 = void 0;
|
|
4
|
-
exports.IntentClosingSetting = exports.InputContext = exports.FulfillmentCodeHookSettings = 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.
|
|
5
|
-
exports.DeleteResourcePolicyResponse = exports.DeleteResourcePolicyRequest = exports.DeleteIntentRequest = exports.DeleteImportResponse = exports.ImportStatus = exports.DeleteImportRequest = exports.DeleteExportResponse = exports.DeleteExportRequest = exports.DeleteBotVersionResponse = exports.DeleteBotVersionRequest = exports.DeleteBotLocaleResponse = exports.DeleteBotLocaleRequest = exports.DeleteBotAliasResponse = exports.DeleteBotAliasRequest = exports.DeleteBotResponse = exports.DeleteBotRequest = exports.DateRangeFilter = exports.CreateUploadUrlResponse = exports.CreateUploadUrlRequest = exports.CreateSlotTypeResponse = exports.CreateSlotTypeRequest = exports.SlotValueSelectionSetting = exports.SlotValueResolutionStrategy = exports.SlotValueRegexFilter = exports.SlotTypeValue = exports.SampleValue = 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 =
|
|
6
|
-
exports.ImportSummary = exports.ImportSortBy = exports.ImportSortAttribute = exports.ImportFilter = exports.ImportFilterOperator = exports.ImportFilterName = exports.ExportSummary = exports.ExportSortBy = exports.ExportSortAttribute = exports.ExportFilter = exports.ExportFilterOperator = exports.ExportFilterName = 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.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 =
|
|
7
|
-
exports.ListSlotTypesResponse = exports.SlotTypeSummary = exports.ListSlotTypesRequest = exports.SlotTypeSortBy = exports.SlotTypeSortAttribute = exports.SlotTypeFilter = exports.SlotTypeFilterOperator = exports.SlotTypeFilterName = exports.ListSlotsResponse = exports.SlotSummary = exports.ListSlotsRequest = exports.SlotSortBy = exports.SlotSortAttribute = 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 =
|
|
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 =
|
|
4
|
+
exports.CreateIntentResponse = exports.CreateIntentRequest = exports.SampleUtterance = exports.OutputContext = exports.KendraConfiguration = exports.IntentConfirmationSetting = exports.PromptSpecification = exports.IntentClosingSetting = exports.InputContext = exports.FulfillmentCodeHookSettings = 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.CreateExportResponse = exports.ExportStatus = exports.CreateExportRequest = exports.ExportResourceSpecification = 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.BuildBotLocaleResponse = exports.BuildBotLocaleRequest = exports.BotVersionSummary = void 0;
|
|
5
|
+
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.DeleteBotVersionResponse = exports.DeleteBotVersionRequest = exports.DeleteBotLocaleResponse = exports.DeleteBotLocaleRequest = exports.DeleteBotAliasResponse = exports.DeleteBotAliasRequest = exports.DeleteBotResponse = exports.DeleteBotRequest = exports.DateRangeFilter = 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 = void 0;
|
|
6
|
+
exports.IntentSortAttribute = exports.IntentFilter = exports.IntentFilterOperator = exports.IntentFilterName = exports.ImportSummary = exports.ImportSortBy = exports.ImportSortAttribute = exports.ImportFilter = exports.ImportFilterOperator = exports.ImportFilterName = exports.ExportSummary = exports.ExportSortBy = exports.ExportSortAttribute = exports.ExportFilter = exports.ExportFilterOperator = exports.ExportFilterName = 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.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 = void 0;
|
|
7
|
+
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 = 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 = 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 = void 0;
|
|
9
9
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
10
10
|
var AggregatedUtterancesFilterName;
|
|
11
11
|
(function (AggregatedUtterancesFilterName) {
|
|
@@ -321,42 +321,6 @@ var BuildBotLocaleResponse;
|
|
|
321
321
|
...obj,
|
|
322
322
|
});
|
|
323
323
|
})(BuildBotLocaleResponse = exports.BuildBotLocaleResponse || (exports.BuildBotLocaleResponse = {}));
|
|
324
|
-
var ConflictException;
|
|
325
|
-
(function (ConflictException) {
|
|
326
|
-
ConflictException.filterSensitiveLog = (obj) => ({
|
|
327
|
-
...obj,
|
|
328
|
-
});
|
|
329
|
-
})(ConflictException = exports.ConflictException || (exports.ConflictException = {}));
|
|
330
|
-
var InternalServerException;
|
|
331
|
-
(function (InternalServerException) {
|
|
332
|
-
InternalServerException.filterSensitiveLog = (obj) => ({
|
|
333
|
-
...obj,
|
|
334
|
-
});
|
|
335
|
-
})(InternalServerException = exports.InternalServerException || (exports.InternalServerException = {}));
|
|
336
|
-
var PreconditionFailedException;
|
|
337
|
-
(function (PreconditionFailedException) {
|
|
338
|
-
PreconditionFailedException.filterSensitiveLog = (obj) => ({
|
|
339
|
-
...obj,
|
|
340
|
-
});
|
|
341
|
-
})(PreconditionFailedException = exports.PreconditionFailedException || (exports.PreconditionFailedException = {}));
|
|
342
|
-
var ServiceQuotaExceededException;
|
|
343
|
-
(function (ServiceQuotaExceededException) {
|
|
344
|
-
ServiceQuotaExceededException.filterSensitiveLog = (obj) => ({
|
|
345
|
-
...obj,
|
|
346
|
-
});
|
|
347
|
-
})(ServiceQuotaExceededException = exports.ServiceQuotaExceededException || (exports.ServiceQuotaExceededException = {}));
|
|
348
|
-
var ThrottlingException;
|
|
349
|
-
(function (ThrottlingException) {
|
|
350
|
-
ThrottlingException.filterSensitiveLog = (obj) => ({
|
|
351
|
-
...obj,
|
|
352
|
-
});
|
|
353
|
-
})(ThrottlingException = exports.ThrottlingException || (exports.ThrottlingException = {}));
|
|
354
|
-
var ValidationException;
|
|
355
|
-
(function (ValidationException) {
|
|
356
|
-
ValidationException.filterSensitiveLog = (obj) => ({
|
|
357
|
-
...obj,
|
|
358
|
-
});
|
|
359
|
-
})(ValidationException = exports.ValidationException || (exports.ValidationException = {}));
|
|
360
324
|
var BuiltInIntentSortAttribute;
|
|
361
325
|
(function (BuiltInIntentSortAttribute) {
|
|
362
326
|
BuiltInIntentSortAttribute["IntentSignature"] = "IntentSignature";
|
|
@@ -503,12 +467,6 @@ var CreateExportResponse;
|
|
|
503
467
|
...obj,
|
|
504
468
|
});
|
|
505
469
|
})(CreateExportResponse = exports.CreateExportResponse || (exports.CreateExportResponse = {}));
|
|
506
|
-
var ResourceNotFoundException;
|
|
507
|
-
(function (ResourceNotFoundException) {
|
|
508
|
-
ResourceNotFoundException.filterSensitiveLog = (obj) => ({
|
|
509
|
-
...obj,
|
|
510
|
-
});
|
|
511
|
-
})(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
|
|
512
470
|
var DialogCodeHookSettings;
|
|
513
471
|
(function (DialogCodeHookSettings) {
|
|
514
472
|
DialogCodeHookSettings.filterSensitiveLog = (obj) => ({
|
|
@@ -740,6 +698,24 @@ var CreateSlotResponse;
|
|
|
740
698
|
...obj,
|
|
741
699
|
});
|
|
742
700
|
})(CreateSlotResponse = exports.CreateSlotResponse || (exports.CreateSlotResponse = {}));
|
|
701
|
+
var GrammarSlotTypeSource;
|
|
702
|
+
(function (GrammarSlotTypeSource) {
|
|
703
|
+
GrammarSlotTypeSource.filterSensitiveLog = (obj) => ({
|
|
704
|
+
...obj,
|
|
705
|
+
});
|
|
706
|
+
})(GrammarSlotTypeSource = exports.GrammarSlotTypeSource || (exports.GrammarSlotTypeSource = {}));
|
|
707
|
+
var GrammarSlotTypeSetting;
|
|
708
|
+
(function (GrammarSlotTypeSetting) {
|
|
709
|
+
GrammarSlotTypeSetting.filterSensitiveLog = (obj) => ({
|
|
710
|
+
...obj,
|
|
711
|
+
});
|
|
712
|
+
})(GrammarSlotTypeSetting = exports.GrammarSlotTypeSetting || (exports.GrammarSlotTypeSetting = {}));
|
|
713
|
+
var ExternalSourceSetting;
|
|
714
|
+
(function (ExternalSourceSetting) {
|
|
715
|
+
ExternalSourceSetting.filterSensitiveLog = (obj) => ({
|
|
716
|
+
...obj,
|
|
717
|
+
});
|
|
718
|
+
})(ExternalSourceSetting = exports.ExternalSourceSetting || (exports.ExternalSourceSetting = {}));
|
|
743
719
|
var SampleValue;
|
|
744
720
|
(function (SampleValue) {
|
|
745
721
|
SampleValue.filterSensitiveLog = (obj) => ({
|
|
@@ -1433,6 +1409,7 @@ var ListSlotsResponse;
|
|
|
1433
1409
|
})(ListSlotsResponse = exports.ListSlotsResponse || (exports.ListSlotsResponse = {}));
|
|
1434
1410
|
var SlotTypeFilterName;
|
|
1435
1411
|
(function (SlotTypeFilterName) {
|
|
1412
|
+
SlotTypeFilterName["ExternalSourceType"] = "ExternalSourceType";
|
|
1436
1413
|
SlotTypeFilterName["SlotTypeName"] = "SlotTypeName";
|
|
1437
1414
|
})(SlotTypeFilterName = exports.SlotTypeFilterName || (exports.SlotTypeFilterName = {}));
|
|
1438
1415
|
var SlotTypeFilterOperator;
|
|
@@ -1463,6 +1440,12 @@ var ListSlotTypesRequest;
|
|
|
1463
1440
|
...obj,
|
|
1464
1441
|
});
|
|
1465
1442
|
})(ListSlotTypesRequest = exports.ListSlotTypesRequest || (exports.ListSlotTypesRequest = {}));
|
|
1443
|
+
var SlotTypeCategory;
|
|
1444
|
+
(function (SlotTypeCategory) {
|
|
1445
|
+
SlotTypeCategory["Custom"] = "Custom";
|
|
1446
|
+
SlotTypeCategory["Extended"] = "Extended";
|
|
1447
|
+
SlotTypeCategory["ExternalGrammar"] = "ExternalGrammar";
|
|
1448
|
+
})(SlotTypeCategory = exports.SlotTypeCategory || (exports.SlotTypeCategory = {}));
|
|
1466
1449
|
var SlotTypeSummary;
|
|
1467
1450
|
(function (SlotTypeSummary) {
|
|
1468
1451
|
SlotTypeSummary.filterSensitiveLog = (obj) => ({
|
|
@@ -519,6 +519,10 @@ const serializeAws_restJson1CreateSlotTypeCommand = async (input, context) => {
|
|
|
519
519
|
let body;
|
|
520
520
|
body = JSON.stringify({
|
|
521
521
|
...(input.description !== undefined && input.description !== null && { description: input.description }),
|
|
522
|
+
...(input.externalSourceSetting !== undefined &&
|
|
523
|
+
input.externalSourceSetting !== null && {
|
|
524
|
+
externalSourceSetting: serializeAws_restJson1ExternalSourceSetting(input.externalSourceSetting, context),
|
|
525
|
+
}),
|
|
522
526
|
...(input.parentSlotTypeSignature !== undefined &&
|
|
523
527
|
input.parentSlotTypeSignature !== null && { parentSlotTypeSignature: input.parentSlotTypeSignature }),
|
|
524
528
|
...(input.slotTypeName !== undefined && input.slotTypeName !== null && { slotTypeName: input.slotTypeName }),
|
|
@@ -2888,6 +2892,10 @@ const serializeAws_restJson1UpdateSlotTypeCommand = async (input, context) => {
|
|
|
2888
2892
|
let body;
|
|
2889
2893
|
body = JSON.stringify({
|
|
2890
2894
|
...(input.description !== undefined && input.description !== null && { description: input.description }),
|
|
2895
|
+
...(input.externalSourceSetting !== undefined &&
|
|
2896
|
+
input.externalSourceSetting !== null && {
|
|
2897
|
+
externalSourceSetting: serializeAws_restJson1ExternalSourceSetting(input.externalSourceSetting, context),
|
|
2898
|
+
}),
|
|
2891
2899
|
...(input.parentSlotTypeSignature !== undefined &&
|
|
2892
2900
|
input.parentSlotTypeSignature !== null && { parentSlotTypeSignature: input.parentSlotTypeSignature }),
|
|
2893
2901
|
...(input.slotTypeName !== undefined && input.slotTypeName !== null && { slotTypeName: input.slotTypeName }),
|
|
@@ -4081,6 +4089,7 @@ const deserializeAws_restJson1CreateSlotTypeCommand = async (output, context) =>
|
|
|
4081
4089
|
botVersion: undefined,
|
|
4082
4090
|
creationDateTime: undefined,
|
|
4083
4091
|
description: undefined,
|
|
4092
|
+
externalSourceSetting: undefined,
|
|
4084
4093
|
localeId: undefined,
|
|
4085
4094
|
parentSlotTypeSignature: undefined,
|
|
4086
4095
|
slotTypeId: undefined,
|
|
@@ -4101,6 +4110,9 @@ const deserializeAws_restJson1CreateSlotTypeCommand = async (output, context) =>
|
|
|
4101
4110
|
if (data.description !== undefined && data.description !== null) {
|
|
4102
4111
|
contents.description = smithy_client_1.expectString(data.description);
|
|
4103
4112
|
}
|
|
4113
|
+
if (data.externalSourceSetting !== undefined && data.externalSourceSetting !== null) {
|
|
4114
|
+
contents.externalSourceSetting = deserializeAws_restJson1ExternalSourceSetting(data.externalSourceSetting, context);
|
|
4115
|
+
}
|
|
4104
4116
|
if (data.localeId !== undefined && data.localeId !== null) {
|
|
4105
4117
|
contents.localeId = smithy_client_1.expectString(data.localeId);
|
|
4106
4118
|
}
|
|
@@ -5550,6 +5562,7 @@ const deserializeAws_restJson1DescribeBotLocaleCommand = async (output, context)
|
|
|
5550
5562
|
localeId: undefined,
|
|
5551
5563
|
localeName: undefined,
|
|
5552
5564
|
nluIntentConfidenceThreshold: undefined,
|
|
5565
|
+
recommendedActions: undefined,
|
|
5553
5566
|
slotTypesCount: undefined,
|
|
5554
5567
|
voiceSettings: undefined,
|
|
5555
5568
|
};
|
|
@@ -5593,6 +5606,9 @@ const deserializeAws_restJson1DescribeBotLocaleCommand = async (output, context)
|
|
|
5593
5606
|
if (data.nluIntentConfidenceThreshold !== undefined && data.nluIntentConfidenceThreshold !== null) {
|
|
5594
5607
|
contents.nluIntentConfidenceThreshold = smithy_client_1.limitedParseDouble(data.nluIntentConfidenceThreshold);
|
|
5595
5608
|
}
|
|
5609
|
+
if (data.recommendedActions !== undefined && data.recommendedActions !== null) {
|
|
5610
|
+
contents.recommendedActions = deserializeAws_restJson1RecommendedActions(data.recommendedActions, context);
|
|
5611
|
+
}
|
|
5596
5612
|
if (data.slotTypesCount !== undefined && data.slotTypesCount !== null) {
|
|
5597
5613
|
contents.slotTypesCount = smithy_client_1.expectInt32(data.slotTypesCount);
|
|
5598
5614
|
}
|
|
@@ -6457,6 +6473,7 @@ const deserializeAws_restJson1DescribeSlotTypeCommand = async (output, context)
|
|
|
6457
6473
|
botVersion: undefined,
|
|
6458
6474
|
creationDateTime: undefined,
|
|
6459
6475
|
description: undefined,
|
|
6476
|
+
externalSourceSetting: undefined,
|
|
6460
6477
|
lastUpdatedDateTime: undefined,
|
|
6461
6478
|
localeId: undefined,
|
|
6462
6479
|
parentSlotTypeSignature: undefined,
|
|
@@ -6478,6 +6495,9 @@ const deserializeAws_restJson1DescribeSlotTypeCommand = async (output, context)
|
|
|
6478
6495
|
if (data.description !== undefined && data.description !== null) {
|
|
6479
6496
|
contents.description = smithy_client_1.expectString(data.description);
|
|
6480
6497
|
}
|
|
6498
|
+
if (data.externalSourceSetting !== undefined && data.externalSourceSetting !== null) {
|
|
6499
|
+
contents.externalSourceSetting = deserializeAws_restJson1ExternalSourceSetting(data.externalSourceSetting, context);
|
|
6500
|
+
}
|
|
6481
6501
|
if (data.lastUpdatedDateTime !== undefined && data.lastUpdatedDateTime !== null) {
|
|
6482
6502
|
contents.lastUpdatedDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.lastUpdatedDateTime)));
|
|
6483
6503
|
}
|
|
@@ -8567,6 +8587,7 @@ const deserializeAws_restJson1UpdateBotLocaleCommand = async (output, context) =
|
|
|
8567
8587
|
localeId: undefined,
|
|
8568
8588
|
localeName: undefined,
|
|
8569
8589
|
nluIntentConfidenceThreshold: undefined,
|
|
8590
|
+
recommendedActions: undefined,
|
|
8570
8591
|
voiceSettings: undefined,
|
|
8571
8592
|
};
|
|
8572
8593
|
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
@@ -8600,6 +8621,9 @@ const deserializeAws_restJson1UpdateBotLocaleCommand = async (output, context) =
|
|
|
8600
8621
|
if (data.nluIntentConfidenceThreshold !== undefined && data.nluIntentConfidenceThreshold !== null) {
|
|
8601
8622
|
contents.nluIntentConfidenceThreshold = smithy_client_1.limitedParseDouble(data.nluIntentConfidenceThreshold);
|
|
8602
8623
|
}
|
|
8624
|
+
if (data.recommendedActions !== undefined && data.recommendedActions !== null) {
|
|
8625
|
+
contents.recommendedActions = deserializeAws_restJson1RecommendedActions(data.recommendedActions, context);
|
|
8626
|
+
}
|
|
8603
8627
|
if (data.voiceSettings !== undefined && data.voiceSettings !== null) {
|
|
8604
8628
|
contents.voiceSettings = deserializeAws_restJson1VoiceSettings(data.voiceSettings, context);
|
|
8605
8629
|
}
|
|
@@ -9309,6 +9333,7 @@ const deserializeAws_restJson1UpdateSlotTypeCommand = async (output, context) =>
|
|
|
9309
9333
|
botVersion: undefined,
|
|
9310
9334
|
creationDateTime: undefined,
|
|
9311
9335
|
description: undefined,
|
|
9336
|
+
externalSourceSetting: undefined,
|
|
9312
9337
|
lastUpdatedDateTime: undefined,
|
|
9313
9338
|
localeId: undefined,
|
|
9314
9339
|
parentSlotTypeSignature: undefined,
|
|
@@ -9330,6 +9355,9 @@ const deserializeAws_restJson1UpdateSlotTypeCommand = async (output, context) =>
|
|
|
9330
9355
|
if (data.description !== undefined && data.description !== null) {
|
|
9331
9356
|
contents.description = smithy_client_1.expectString(data.description);
|
|
9332
9357
|
}
|
|
9358
|
+
if (data.externalSourceSetting !== undefined && data.externalSourceSetting !== null) {
|
|
9359
|
+
contents.externalSourceSetting = deserializeAws_restJson1ExternalSourceSetting(data.externalSourceSetting, context);
|
|
9360
|
+
}
|
|
9333
9361
|
if (data.lastUpdatedDateTime !== undefined && data.lastUpdatedDateTime !== null) {
|
|
9334
9362
|
contents.lastUpdatedDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.lastUpdatedDateTime)));
|
|
9335
9363
|
}
|
|
@@ -9870,6 +9898,14 @@ const serializeAws_restJson1ExportSortBy = (input, context) => {
|
|
|
9870
9898
|
...(input.order !== undefined && input.order !== null && { order: input.order }),
|
|
9871
9899
|
};
|
|
9872
9900
|
};
|
|
9901
|
+
const serializeAws_restJson1ExternalSourceSetting = (input, context) => {
|
|
9902
|
+
return {
|
|
9903
|
+
...(input.grammarSlotTypeSetting !== undefined &&
|
|
9904
|
+
input.grammarSlotTypeSetting !== null && {
|
|
9905
|
+
grammarSlotTypeSetting: serializeAws_restJson1GrammarSlotTypeSetting(input.grammarSlotTypeSetting, context),
|
|
9906
|
+
}),
|
|
9907
|
+
};
|
|
9908
|
+
};
|
|
9873
9909
|
const serializeAws_restJson1FilterValues = (input, context) => {
|
|
9874
9910
|
return input
|
|
9875
9911
|
.filter((e) => e != null)
|
|
@@ -9932,6 +9968,19 @@ const serializeAws_restJson1FulfillmentUpdatesSpecification = (input, context) =
|
|
|
9932
9968
|
}),
|
|
9933
9969
|
};
|
|
9934
9970
|
};
|
|
9971
|
+
const serializeAws_restJson1GrammarSlotTypeSetting = (input, context) => {
|
|
9972
|
+
return {
|
|
9973
|
+
...(input.source !== undefined &&
|
|
9974
|
+
input.source !== null && { source: serializeAws_restJson1GrammarSlotTypeSource(input.source, context) }),
|
|
9975
|
+
};
|
|
9976
|
+
};
|
|
9977
|
+
const serializeAws_restJson1GrammarSlotTypeSource = (input, context) => {
|
|
9978
|
+
return {
|
|
9979
|
+
...(input.kmsKeyArn !== undefined && input.kmsKeyArn !== null && { kmsKeyArn: input.kmsKeyArn }),
|
|
9980
|
+
...(input.s3BucketName !== undefined && input.s3BucketName !== null && { s3BucketName: input.s3BucketName }),
|
|
9981
|
+
...(input.s3ObjectKey !== undefined && input.s3ObjectKey !== null && { s3ObjectKey: input.s3ObjectKey }),
|
|
9982
|
+
};
|
|
9983
|
+
};
|
|
9935
9984
|
const serializeAws_restJson1ImageResponseCard = (input, context) => {
|
|
9936
9985
|
return {
|
|
9937
9986
|
...(input.buttons !== undefined &&
|
|
@@ -10987,6 +11036,13 @@ const deserializeAws_restJson1ExportSummaryList = (output, context) => {
|
|
|
10987
11036
|
return deserializeAws_restJson1ExportSummary(entry, context);
|
|
10988
11037
|
});
|
|
10989
11038
|
};
|
|
11039
|
+
const deserializeAws_restJson1ExternalSourceSetting = (output, context) => {
|
|
11040
|
+
return {
|
|
11041
|
+
grammarSlotTypeSetting: output.grammarSlotTypeSetting !== undefined && output.grammarSlotTypeSetting !== null
|
|
11042
|
+
? deserializeAws_restJson1GrammarSlotTypeSetting(output.grammarSlotTypeSetting, context)
|
|
11043
|
+
: undefined,
|
|
11044
|
+
};
|
|
11045
|
+
};
|
|
10990
11046
|
const deserializeAws_restJson1FailureReasons = (output, context) => {
|
|
10991
11047
|
return (output || [])
|
|
10992
11048
|
.filter((e) => e != null)
|
|
@@ -11038,6 +11094,20 @@ const deserializeAws_restJson1FulfillmentUpdatesSpecification = (output, context
|
|
|
11038
11094
|
: undefined,
|
|
11039
11095
|
};
|
|
11040
11096
|
};
|
|
11097
|
+
const deserializeAws_restJson1GrammarSlotTypeSetting = (output, context) => {
|
|
11098
|
+
return {
|
|
11099
|
+
source: output.source !== undefined && output.source !== null
|
|
11100
|
+
? deserializeAws_restJson1GrammarSlotTypeSource(output.source, context)
|
|
11101
|
+
: undefined,
|
|
11102
|
+
};
|
|
11103
|
+
};
|
|
11104
|
+
const deserializeAws_restJson1GrammarSlotTypeSource = (output, context) => {
|
|
11105
|
+
return {
|
|
11106
|
+
kmsKeyArn: smithy_client_1.expectString(output.kmsKeyArn),
|
|
11107
|
+
s3BucketName: smithy_client_1.expectString(output.s3BucketName),
|
|
11108
|
+
s3ObjectKey: smithy_client_1.expectString(output.s3ObjectKey),
|
|
11109
|
+
};
|
|
11110
|
+
};
|
|
11041
11111
|
const deserializeAws_restJson1ImageResponseCard = (output, context) => {
|
|
11042
11112
|
return {
|
|
11043
11113
|
buttons: output.buttons !== undefined && output.buttons !== null
|
|
@@ -11286,6 +11356,16 @@ const deserializeAws_restJson1PromptSpecification = (output, context) => {
|
|
|
11286
11356
|
: undefined,
|
|
11287
11357
|
};
|
|
11288
11358
|
};
|
|
11359
|
+
const deserializeAws_restJson1RecommendedActions = (output, context) => {
|
|
11360
|
+
return (output || [])
|
|
11361
|
+
.filter((e) => e != null)
|
|
11362
|
+
.map((entry) => {
|
|
11363
|
+
if (entry === null) {
|
|
11364
|
+
return null;
|
|
11365
|
+
}
|
|
11366
|
+
return smithy_client_1.expectString(entry);
|
|
11367
|
+
});
|
|
11368
|
+
};
|
|
11289
11369
|
const deserializeAws_restJson1RecommendedIntentSummary = (output, context) => {
|
|
11290
11370
|
return {
|
|
11291
11371
|
intentId: smithy_client_1.expectString(output.intentId),
|
|
@@ -11437,6 +11517,7 @@ const deserializeAws_restJson1SlotTypeSummary = (output, context) => {
|
|
|
11437
11517
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedDateTime)))
|
|
11438
11518
|
: undefined,
|
|
11439
11519
|
parentSlotTypeSignature: smithy_client_1.expectString(output.parentSlotTypeSignature),
|
|
11520
|
+
slotTypeCategory: smithy_client_1.expectString(output.slotTypeCategory),
|
|
11440
11521
|
slotTypeId: smithy_client_1.expectString(output.slotTypeId),
|
|
11441
11522
|
slotTypeName: smithy_client_1.expectString(output.slotTypeName),
|
|
11442
11523
|
};
|
|
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
13
13
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
16
18
|
const getRuntimeConfig = (config) => {
|
|
17
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
+
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
18
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
19
23
|
return {
|
|
20
24
|
...clientSharedValues,
|
|
21
25
|
...config,
|
|
22
26
|
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
23
28
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
24
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
25
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
|
|
|
27
32
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
28
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
34
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
30
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
|
|
31
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() =>
|
|
35
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
32
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
33
38
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
34
39
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
@@ -16,14 +16,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
18
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
19
20
|
const getRuntimeConfig = (config) => {
|
|
20
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
|
-
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
25
|
return {
|
|
24
26
|
...clientSharedValues,
|
|
25
27
|
...config,
|
|
26
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
27
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
28
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
29
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
31
34
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
35
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
33
36
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
34
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
35
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(
|
|
37
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
39
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
|
+
}),
|
|
36
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
37
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
38
44
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
package/dist-es/endpoints.js
CHANGED
|
@@ -242,30 +242,6 @@ export var BuildBotLocaleResponse;
|
|
|
242
242
|
(function (BuildBotLocaleResponse) {
|
|
243
243
|
BuildBotLocaleResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
244
244
|
})(BuildBotLocaleResponse || (BuildBotLocaleResponse = {}));
|
|
245
|
-
export var ConflictException;
|
|
246
|
-
(function (ConflictException) {
|
|
247
|
-
ConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
248
|
-
})(ConflictException || (ConflictException = {}));
|
|
249
|
-
export var InternalServerException;
|
|
250
|
-
(function (InternalServerException) {
|
|
251
|
-
InternalServerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
252
|
-
})(InternalServerException || (InternalServerException = {}));
|
|
253
|
-
export var PreconditionFailedException;
|
|
254
|
-
(function (PreconditionFailedException) {
|
|
255
|
-
PreconditionFailedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
256
|
-
})(PreconditionFailedException || (PreconditionFailedException = {}));
|
|
257
|
-
export var ServiceQuotaExceededException;
|
|
258
|
-
(function (ServiceQuotaExceededException) {
|
|
259
|
-
ServiceQuotaExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
260
|
-
})(ServiceQuotaExceededException || (ServiceQuotaExceededException = {}));
|
|
261
|
-
export var ThrottlingException;
|
|
262
|
-
(function (ThrottlingException) {
|
|
263
|
-
ThrottlingException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
264
|
-
})(ThrottlingException || (ThrottlingException = {}));
|
|
265
|
-
export var ValidationException;
|
|
266
|
-
(function (ValidationException) {
|
|
267
|
-
ValidationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
268
|
-
})(ValidationException || (ValidationException = {}));
|
|
269
245
|
export var BuiltInIntentSortAttribute;
|
|
270
246
|
(function (BuiltInIntentSortAttribute) {
|
|
271
247
|
BuiltInIntentSortAttribute["IntentSignature"] = "IntentSignature";
|
|
@@ -369,10 +345,6 @@ export var CreateExportResponse;
|
|
|
369
345
|
(function (CreateExportResponse) {
|
|
370
346
|
CreateExportResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
371
347
|
})(CreateExportResponse || (CreateExportResponse = {}));
|
|
372
|
-
export var ResourceNotFoundException;
|
|
373
|
-
(function (ResourceNotFoundException) {
|
|
374
|
-
ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
375
|
-
})(ResourceNotFoundException || (ResourceNotFoundException = {}));
|
|
376
348
|
export var DialogCodeHookSettings;
|
|
377
349
|
(function (DialogCodeHookSettings) {
|
|
378
350
|
DialogCodeHookSettings.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -532,6 +504,18 @@ export var CreateSlotResponse;
|
|
|
532
504
|
(function (CreateSlotResponse) {
|
|
533
505
|
CreateSlotResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
534
506
|
})(CreateSlotResponse || (CreateSlotResponse = {}));
|
|
507
|
+
export var GrammarSlotTypeSource;
|
|
508
|
+
(function (GrammarSlotTypeSource) {
|
|
509
|
+
GrammarSlotTypeSource.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
510
|
+
})(GrammarSlotTypeSource || (GrammarSlotTypeSource = {}));
|
|
511
|
+
export var GrammarSlotTypeSetting;
|
|
512
|
+
(function (GrammarSlotTypeSetting) {
|
|
513
|
+
GrammarSlotTypeSetting.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
514
|
+
})(GrammarSlotTypeSetting || (GrammarSlotTypeSetting = {}));
|
|
515
|
+
export var ExternalSourceSetting;
|
|
516
|
+
(function (ExternalSourceSetting) {
|
|
517
|
+
ExternalSourceSetting.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
518
|
+
})(ExternalSourceSetting || (ExternalSourceSetting = {}));
|
|
535
519
|
export var SampleValue;
|
|
536
520
|
(function (SampleValue) {
|
|
537
521
|
SampleValue.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1020,6 +1004,7 @@ export var ListSlotsResponse;
|
|
|
1020
1004
|
})(ListSlotsResponse || (ListSlotsResponse = {}));
|
|
1021
1005
|
export var SlotTypeFilterName;
|
|
1022
1006
|
(function (SlotTypeFilterName) {
|
|
1007
|
+
SlotTypeFilterName["ExternalSourceType"] = "ExternalSourceType";
|
|
1023
1008
|
SlotTypeFilterName["SlotTypeName"] = "SlotTypeName";
|
|
1024
1009
|
})(SlotTypeFilterName || (SlotTypeFilterName = {}));
|
|
1025
1010
|
export var SlotTypeFilterOperator;
|
|
@@ -1044,6 +1029,12 @@ export var ListSlotTypesRequest;
|
|
|
1044
1029
|
(function (ListSlotTypesRequest) {
|
|
1045
1030
|
ListSlotTypesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1046
1031
|
})(ListSlotTypesRequest || (ListSlotTypesRequest = {}));
|
|
1032
|
+
export var SlotTypeCategory;
|
|
1033
|
+
(function (SlotTypeCategory) {
|
|
1034
|
+
SlotTypeCategory["Custom"] = "Custom";
|
|
1035
|
+
SlotTypeCategory["Extended"] = "Extended";
|
|
1036
|
+
SlotTypeCategory["ExternalGrammar"] = "ExternalGrammar";
|
|
1037
|
+
})(SlotTypeCategory || (SlotTypeCategory = {}));
|
|
1047
1038
|
export var SlotTypeSummary;
|
|
1048
1039
|
(function (SlotTypeSummary) {
|
|
1049
1040
|
SlotTypeSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|