@aws-sdk/client-lex-models-v2 3.41.0 → 3.45.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 (62) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist-cjs/LexModelsV2.js +90 -0
  3. package/dist-cjs/commands/DescribeBotRecommendationCommand.js +36 -0
  4. package/dist-cjs/commands/ListBotRecommendationsCommand.js +36 -0
  5. package/dist-cjs/commands/ListRecommendedIntentsCommand.js +36 -0
  6. package/dist-cjs/commands/SearchAssociatedTranscriptsCommand.js +36 -0
  7. package/dist-cjs/commands/StartBotRecommendationCommand.js +36 -0
  8. package/dist-cjs/commands/UpdateBotRecommendationCommand.js +36 -0
  9. package/dist-cjs/commands/index.js +6 -0
  10. package/dist-cjs/endpoints.js +1 -0
  11. package/dist-cjs/models/models_0.js +231 -5
  12. package/dist-cjs/pagination/ListBotRecommendationsPaginator.js +35 -0
  13. package/dist-cjs/pagination/ListRecommendedIntentsPaginator.js +35 -0
  14. package/dist-cjs/pagination/index.js +2 -0
  15. package/dist-cjs/protocols/Aws_restJson1.js +1531 -186
  16. package/dist-es/LexModelsV2.js +90 -0
  17. package/dist-es/commands/DescribeBotRecommendationCommand.js +39 -0
  18. package/dist-es/commands/ListBotRecommendationsCommand.js +39 -0
  19. package/dist-es/commands/ListRecommendedIntentsCommand.js +39 -0
  20. package/dist-es/commands/SearchAssociatedTranscriptsCommand.js +39 -0
  21. package/dist-es/commands/StartBotRecommendationCommand.js +39 -0
  22. package/dist-es/commands/UpdateBotRecommendationCommand.js +39 -0
  23. package/dist-es/commands/index.js +6 -0
  24. package/dist-es/endpoints.js +1 -0
  25. package/dist-es/models/models_0.js +158 -0
  26. package/dist-es/pagination/ListBotRecommendationsPaginator.js +74 -0
  27. package/dist-es/pagination/ListRecommendedIntentsPaginator.js +74 -0
  28. package/dist-es/pagination/index.js +2 -0
  29. package/dist-es/protocols/Aws_restJson1.js +1543 -135
  30. package/dist-types/LexModelsV2.d.ts +56 -6
  31. package/dist-types/LexModelsV2Client.d.ts +8 -2
  32. package/dist-types/commands/DeleteBotVersionCommand.d.ts +1 -1
  33. package/dist-types/commands/DeleteUtterancesCommand.d.ts +3 -3
  34. package/dist-types/commands/DescribeBotRecommendationCommand.d.ts +39 -0
  35. package/dist-types/commands/ListBotRecommendationsCommand.d.ts +36 -0
  36. package/dist-types/commands/ListBuiltInIntentsCommand.d.ts +1 -1
  37. package/dist-types/commands/ListRecommendedIntentsCommand.d.ts +36 -0
  38. package/dist-types/commands/SearchAssociatedTranscriptsCommand.d.ts +36 -0
  39. package/dist-types/commands/StartBotRecommendationCommand.d.ts +36 -0
  40. package/dist-types/commands/UpdateBotRecommendationCommand.d.ts +35 -0
  41. package/dist-types/commands/UpdateExportCommand.d.ts +1 -1
  42. package/dist-types/commands/index.d.ts +6 -0
  43. package/dist-types/models/models_0.d.ts +1117 -91
  44. package/dist-types/pagination/ListBotRecommendationsPaginator.d.ts +4 -0
  45. package/dist-types/pagination/ListRecommendedIntentsPaginator.d.ts +4 -0
  46. package/dist-types/pagination/index.d.ts +2 -0
  47. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  48. package/dist-types/ts3.4/LexModelsV2.d.ts +30 -0
  49. package/dist-types/ts3.4/LexModelsV2Client.d.ts +8 -2
  50. package/dist-types/ts3.4/commands/DescribeBotRecommendationCommand.d.ts +17 -0
  51. package/dist-types/ts3.4/commands/ListBotRecommendationsCommand.d.ts +17 -0
  52. package/dist-types/ts3.4/commands/ListRecommendedIntentsCommand.d.ts +17 -0
  53. package/dist-types/ts3.4/commands/SearchAssociatedTranscriptsCommand.d.ts +17 -0
  54. package/dist-types/ts3.4/commands/StartBotRecommendationCommand.d.ts +17 -0
  55. package/dist-types/ts3.4/commands/UpdateBotRecommendationCommand.d.ts +17 -0
  56. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  57. package/dist-types/ts3.4/models/models_0.d.ts +480 -2
  58. package/dist-types/ts3.4/pagination/ListBotRecommendationsPaginator.d.ts +4 -0
  59. package/dist-types/ts3.4/pagination/ListRecommendedIntentsPaginator.d.ts +4 -0
  60. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  61. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +18 -0
  62. package/package.json +5 -5
@@ -31,6 +31,19 @@ export var AggregatedUtterancesSummary;
31
31
  (function (AggregatedUtterancesSummary) {
32
32
  AggregatedUtterancesSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
33
33
  })(AggregatedUtterancesSummary || (AggregatedUtterancesSummary = {}));
34
+ export var AssociatedTranscript;
35
+ (function (AssociatedTranscript) {
36
+ AssociatedTranscript.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
37
+ })(AssociatedTranscript || (AssociatedTranscript = {}));
38
+ export var AssociatedTranscriptFilterName;
39
+ (function (AssociatedTranscriptFilterName) {
40
+ AssociatedTranscriptFilterName["IntentId"] = "IntentId";
41
+ AssociatedTranscriptFilterName["SlotTypeId"] = "SlotTypeId";
42
+ })(AssociatedTranscriptFilterName || (AssociatedTranscriptFilterName = {}));
43
+ export var AssociatedTranscriptFilter;
44
+ (function (AssociatedTranscriptFilter) {
45
+ AssociatedTranscriptFilter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
46
+ })(AssociatedTranscriptFilter || (AssociatedTranscriptFilter = {}));
34
47
  export var S3BucketLogDestination;
35
48
  (function (S3BucketLogDestination) {
36
49
  S3BucketLogDestination.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -116,6 +129,11 @@ export var BotLocaleHistoryEvent;
116
129
  (function (BotLocaleHistoryEvent) {
117
130
  BotLocaleHistoryEvent.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
118
131
  })(BotLocaleHistoryEvent || (BotLocaleHistoryEvent = {}));
132
+ export var VoiceEngine;
133
+ (function (VoiceEngine) {
134
+ VoiceEngine["Neural"] = "neural";
135
+ VoiceEngine["Standard"] = "standard";
136
+ })(VoiceEngine || (VoiceEngine = {}));
119
137
  export var VoiceSettings;
120
138
  (function (VoiceSettings) {
121
139
  VoiceSettings.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -141,12 +159,43 @@ export var BotLocaleStatus;
141
159
  BotLocaleStatus["Failed"] = "Failed";
142
160
  BotLocaleStatus["Importing"] = "Importing";
143
161
  BotLocaleStatus["NotBuilt"] = "NotBuilt";
162
+ BotLocaleStatus["Processing"] = "Processing";
144
163
  BotLocaleStatus["ReadyExpressTesting"] = "ReadyExpressTesting";
145
164
  })(BotLocaleStatus || (BotLocaleStatus = {}));
146
165
  export var BotLocaleSummary;
147
166
  (function (BotLocaleSummary) {
148
167
  BotLocaleSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
149
168
  })(BotLocaleSummary || (BotLocaleSummary = {}));
169
+ export var IntentStatistics;
170
+ (function (IntentStatistics) {
171
+ IntentStatistics.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
172
+ })(IntentStatistics || (IntentStatistics = {}));
173
+ export var SlotTypeStatistics;
174
+ (function (SlotTypeStatistics) {
175
+ SlotTypeStatistics.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
176
+ })(SlotTypeStatistics || (SlotTypeStatistics = {}));
177
+ export var BotRecommendationResultStatistics;
178
+ (function (BotRecommendationResultStatistics) {
179
+ BotRecommendationResultStatistics.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
180
+ })(BotRecommendationResultStatistics || (BotRecommendationResultStatistics = {}));
181
+ export var BotRecommendationResults;
182
+ (function (BotRecommendationResults) {
183
+ BotRecommendationResults.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
184
+ })(BotRecommendationResults || (BotRecommendationResults = {}));
185
+ export var BotRecommendationStatus;
186
+ (function (BotRecommendationStatus) {
187
+ BotRecommendationStatus["Available"] = "Available";
188
+ BotRecommendationStatus["Deleted"] = "Deleted";
189
+ BotRecommendationStatus["Deleting"] = "Deleting";
190
+ BotRecommendationStatus["Downloading"] = "Downloading";
191
+ BotRecommendationStatus["Failed"] = "Failed";
192
+ BotRecommendationStatus["Processing"] = "Processing";
193
+ BotRecommendationStatus["Updating"] = "Updating";
194
+ })(BotRecommendationStatus || (BotRecommendationStatus = {}));
195
+ export var BotRecommendationSummary;
196
+ (function (BotRecommendationSummary) {
197
+ BotRecommendationSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
198
+ })(BotRecommendationSummary || (BotRecommendationSummary = {}));
150
199
  export var BotSortAttribute;
151
200
  (function (BotSortAttribute) {
152
201
  BotSortAttribute["BotName"] = "BotName";
@@ -483,6 +532,18 @@ export var CreateSlotResponse;
483
532
  (function (CreateSlotResponse) {
484
533
  CreateSlotResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
485
534
  })(CreateSlotResponse || (CreateSlotResponse = {}));
535
+ export var GrammarSlotTypeSource;
536
+ (function (GrammarSlotTypeSource) {
537
+ GrammarSlotTypeSource.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
538
+ })(GrammarSlotTypeSource || (GrammarSlotTypeSource = {}));
539
+ export var GrammarSlotTypeSetting;
540
+ (function (GrammarSlotTypeSetting) {
541
+ GrammarSlotTypeSetting.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
542
+ })(GrammarSlotTypeSetting || (GrammarSlotTypeSetting = {}));
543
+ export var ExternalSourceSetting;
544
+ (function (ExternalSourceSetting) {
545
+ ExternalSourceSetting.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
546
+ })(ExternalSourceSetting || (ExternalSourceSetting = {}));
486
547
  export var SampleValue;
487
548
  (function (SampleValue) {
488
549
  SampleValue.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -520,6 +581,10 @@ export var CreateUploadUrlResponse;
520
581
  (function (CreateUploadUrlResponse) {
521
582
  CreateUploadUrlResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
522
583
  })(CreateUploadUrlResponse || (CreateUploadUrlResponse = {}));
584
+ export var DateRangeFilter;
585
+ (function (DateRangeFilter) {
586
+ DateRangeFilter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
587
+ })(DateRangeFilter || (DateRangeFilter = {}));
523
588
  export var DeleteBotRequest;
524
589
  (function (DeleteBotRequest) {
525
590
  DeleteBotRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -635,6 +700,42 @@ export var DescribeBotLocaleResponse;
635
700
  (function (DescribeBotLocaleResponse) {
636
701
  DescribeBotLocaleResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
637
702
  })(DescribeBotLocaleResponse || (DescribeBotLocaleResponse = {}));
703
+ export var DescribeBotRecommendationRequest;
704
+ (function (DescribeBotRecommendationRequest) {
705
+ DescribeBotRecommendationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
706
+ })(DescribeBotRecommendationRequest || (DescribeBotRecommendationRequest = {}));
707
+ export var EncryptionSetting;
708
+ (function (EncryptionSetting) {
709
+ EncryptionSetting.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.botLocaleExportPassword && { botLocaleExportPassword: SENSITIVE_STRING })), (obj.associatedTranscriptsPassword && { associatedTranscriptsPassword: SENSITIVE_STRING }))); };
710
+ })(EncryptionSetting || (EncryptionSetting = {}));
711
+ export var PathFormat;
712
+ (function (PathFormat) {
713
+ PathFormat.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
714
+ })(PathFormat || (PathFormat = {}));
715
+ export var LexTranscriptFilter;
716
+ (function (LexTranscriptFilter) {
717
+ LexTranscriptFilter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
718
+ })(LexTranscriptFilter || (LexTranscriptFilter = {}));
719
+ export var TranscriptFilter;
720
+ (function (TranscriptFilter) {
721
+ TranscriptFilter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
722
+ })(TranscriptFilter || (TranscriptFilter = {}));
723
+ export var TranscriptFormat;
724
+ (function (TranscriptFormat) {
725
+ TranscriptFormat["Lex"] = "Lex";
726
+ })(TranscriptFormat || (TranscriptFormat = {}));
727
+ export var S3BucketTranscriptSource;
728
+ (function (S3BucketTranscriptSource) {
729
+ S3BucketTranscriptSource.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
730
+ })(S3BucketTranscriptSource || (S3BucketTranscriptSource = {}));
731
+ export var TranscriptSourceSetting;
732
+ (function (TranscriptSourceSetting) {
733
+ TranscriptSourceSetting.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
734
+ })(TranscriptSourceSetting || (TranscriptSourceSetting = {}));
735
+ export var DescribeBotRecommendationResponse;
736
+ (function (DescribeBotRecommendationResponse) {
737
+ DescribeBotRecommendationResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.encryptionSetting && { encryptionSetting: EncryptionSetting.filterSensitiveLog(obj.encryptionSetting) }))); };
738
+ })(DescribeBotRecommendationResponse || (DescribeBotRecommendationResponse = {}));
638
739
  export var DescribeBotVersionRequest;
639
740
  (function (DescribeBotVersionRequest) {
640
741
  DescribeBotVersionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -657,6 +758,7 @@ export var DescribeImportRequest;
657
758
  })(DescribeImportRequest || (DescribeImportRequest = {}));
658
759
  export var MergeStrategy;
659
760
  (function (MergeStrategy) {
761
+ MergeStrategy["Append"] = "Append";
660
762
  MergeStrategy["FailOnConflict"] = "FailOnConflict";
661
763
  MergeStrategy["Overwrite"] = "Overwrite";
662
764
  })(MergeStrategy || (MergeStrategy = {}));
@@ -818,6 +920,14 @@ export var ListBotLocalesResponse;
818
920
  (function (ListBotLocalesResponse) {
819
921
  ListBotLocalesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
820
922
  })(ListBotLocalesResponse || (ListBotLocalesResponse = {}));
923
+ export var ListBotRecommendationsRequest;
924
+ (function (ListBotRecommendationsRequest) {
925
+ ListBotRecommendationsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
926
+ })(ListBotRecommendationsRequest || (ListBotRecommendationsRequest = {}));
927
+ export var ListBotRecommendationsResponse;
928
+ (function (ListBotRecommendationsResponse) {
929
+ ListBotRecommendationsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
930
+ })(ListBotRecommendationsResponse || (ListBotRecommendationsResponse = {}));
821
931
  export var ListBotsRequest;
822
932
  (function (ListBotsRequest) {
823
933
  ListBotsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -874,6 +984,18 @@ export var ListIntentsResponse;
874
984
  (function (ListIntentsResponse) {
875
985
  ListIntentsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
876
986
  })(ListIntentsResponse || (ListIntentsResponse = {}));
987
+ export var ListRecommendedIntentsRequest;
988
+ (function (ListRecommendedIntentsRequest) {
989
+ ListRecommendedIntentsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
990
+ })(ListRecommendedIntentsRequest || (ListRecommendedIntentsRequest = {}));
991
+ export var RecommendedIntentSummary;
992
+ (function (RecommendedIntentSummary) {
993
+ RecommendedIntentSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
994
+ })(RecommendedIntentSummary || (RecommendedIntentSummary = {}));
995
+ export var ListRecommendedIntentsResponse;
996
+ (function (ListRecommendedIntentsResponse) {
997
+ ListRecommendedIntentsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
998
+ })(ListRecommendedIntentsResponse || (ListRecommendedIntentsResponse = {}));
877
999
  export var SlotFilterName;
878
1000
  (function (SlotFilterName) {
879
1001
  SlotFilterName["SlotName"] = "SlotName";
@@ -910,6 +1032,7 @@ export var ListSlotsResponse;
910
1032
  })(ListSlotsResponse || (ListSlotsResponse = {}));
911
1033
  export var SlotTypeFilterName;
912
1034
  (function (SlotTypeFilterName) {
1035
+ SlotTypeFilterName["ExternalSourceType"] = "ExternalSourceType";
913
1036
  SlotTypeFilterName["SlotTypeName"] = "SlotTypeName";
914
1037
  })(SlotTypeFilterName || (SlotTypeFilterName = {}));
915
1038
  export var SlotTypeFilterOperator;
@@ -934,6 +1057,12 @@ export var ListSlotTypesRequest;
934
1057
  (function (ListSlotTypesRequest) {
935
1058
  ListSlotTypesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
936
1059
  })(ListSlotTypesRequest || (ListSlotTypesRequest = {}));
1060
+ export var SlotTypeCategory;
1061
+ (function (SlotTypeCategory) {
1062
+ SlotTypeCategory["Custom"] = "Custom";
1063
+ SlotTypeCategory["Extended"] = "Extended";
1064
+ SlotTypeCategory["ExternalGrammar"] = "ExternalGrammar";
1065
+ })(SlotTypeCategory || (SlotTypeCategory = {}));
937
1066
  export var SlotTypeSummary;
938
1067
  (function (SlotTypeSummary) {
939
1068
  SlotTypeSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -950,6 +1079,27 @@ export var ListTagsForResourceResponse;
950
1079
  (function (ListTagsForResourceResponse) {
951
1080
  ListTagsForResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
952
1081
  })(ListTagsForResourceResponse || (ListTagsForResourceResponse = {}));
1082
+ export var SearchOrder;
1083
+ (function (SearchOrder) {
1084
+ SearchOrder["Ascending"] = "Ascending";
1085
+ SearchOrder["Descending"] = "Descending";
1086
+ })(SearchOrder || (SearchOrder = {}));
1087
+ export var SearchAssociatedTranscriptsRequest;
1088
+ (function (SearchAssociatedTranscriptsRequest) {
1089
+ SearchAssociatedTranscriptsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1090
+ })(SearchAssociatedTranscriptsRequest || (SearchAssociatedTranscriptsRequest = {}));
1091
+ export var SearchAssociatedTranscriptsResponse;
1092
+ (function (SearchAssociatedTranscriptsResponse) {
1093
+ SearchAssociatedTranscriptsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1094
+ })(SearchAssociatedTranscriptsResponse || (SearchAssociatedTranscriptsResponse = {}));
1095
+ export var StartBotRecommendationRequest;
1096
+ (function (StartBotRecommendationRequest) {
1097
+ StartBotRecommendationRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.encryptionSetting && { encryptionSetting: EncryptionSetting.filterSensitiveLog(obj.encryptionSetting) }))); };
1098
+ })(StartBotRecommendationRequest || (StartBotRecommendationRequest = {}));
1099
+ export var StartBotRecommendationResponse;
1100
+ (function (StartBotRecommendationResponse) {
1101
+ StartBotRecommendationResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.encryptionSetting && { encryptionSetting: EncryptionSetting.filterSensitiveLog(obj.encryptionSetting) }))); };
1102
+ })(StartBotRecommendationResponse || (StartBotRecommendationResponse = {}));
953
1103
  export var StartImportRequest;
954
1104
  (function (StartImportRequest) {
955
1105
  StartImportRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.filePassword && { filePassword: SENSITIVE_STRING }))); };
@@ -998,6 +1148,14 @@ export var UpdateBotLocaleResponse;
998
1148
  (function (UpdateBotLocaleResponse) {
999
1149
  UpdateBotLocaleResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1000
1150
  })(UpdateBotLocaleResponse || (UpdateBotLocaleResponse = {}));
1151
+ export var UpdateBotRecommendationRequest;
1152
+ (function (UpdateBotRecommendationRequest) {
1153
+ UpdateBotRecommendationRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.encryptionSetting && { encryptionSetting: EncryptionSetting.filterSensitiveLog(obj.encryptionSetting) }))); };
1154
+ })(UpdateBotRecommendationRequest || (UpdateBotRecommendationRequest = {}));
1155
+ export var UpdateBotRecommendationResponse;
1156
+ (function (UpdateBotRecommendationResponse) {
1157
+ UpdateBotRecommendationResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.encryptionSetting && { encryptionSetting: EncryptionSetting.filterSensitiveLog(obj.encryptionSetting) }))); };
1158
+ })(UpdateBotRecommendationResponse || (UpdateBotRecommendationResponse = {}));
1001
1159
  export var UpdateExportRequest;
1002
1160
  (function (UpdateExportRequest) {
1003
1161
  UpdateExportRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.filePassword && { filePassword: SENSITIVE_STRING }))); };
@@ -0,0 +1,74 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { ListBotRecommendationsCommand, } from "../commands/ListBotRecommendationsCommand";
3
+ import { LexModelsV2 } from "../LexModelsV2";
4
+ import { LexModelsV2Client } from "../LexModelsV2Client";
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListBotRecommendationsCommand(input)], __read(args)))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
18
+ };
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.listBotRecommendations.apply(client, __spreadArray([input], __read(args)))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateListBotRecommendations(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
37
+ }
38
+ return __asyncGenerator(this, arguments, function paginateListBotRecommendations_1() {
39
+ var token, hasNext, page;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.nextToken = token;
49
+ input["maxResults"] = config.pageSize;
50
+ if (!(config.client instanceof LexModelsV2)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof LexModelsV2Client)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ token = page.nextToken;
67
+ hasNext = !!token;
68
+ return [3, 1];
69
+ case 9: return [4, __await(undefined)];
70
+ case 10: return [2, _a.sent()];
71
+ }
72
+ });
73
+ });
74
+ }
@@ -0,0 +1,74 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { ListRecommendedIntentsCommand, } from "../commands/ListRecommendedIntentsCommand";
3
+ import { LexModelsV2 } from "../LexModelsV2";
4
+ import { LexModelsV2Client } from "../LexModelsV2Client";
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListRecommendedIntentsCommand(input)], __read(args)))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
18
+ };
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.listRecommendedIntents.apply(client, __spreadArray([input], __read(args)))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateListRecommendedIntents(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
37
+ }
38
+ return __asyncGenerator(this, arguments, function paginateListRecommendedIntents_1() {
39
+ var token, hasNext, page;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.nextToken = token;
49
+ input["maxResults"] = config.pageSize;
50
+ if (!(config.client instanceof LexModelsV2)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof LexModelsV2Client)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ token = page.nextToken;
67
+ hasNext = !!token;
68
+ return [3, 1];
69
+ case 9: return [4, __await(undefined)];
70
+ case 10: return [2, _a.sent()];
71
+ }
72
+ });
73
+ });
74
+ }
@@ -2,6 +2,7 @@ export * from "./Interfaces";
2
2
  export * from "./ListAggregatedUtterancesPaginator";
3
3
  export * from "./ListBotAliasesPaginator";
4
4
  export * from "./ListBotLocalesPaginator";
5
+ export * from "./ListBotRecommendationsPaginator";
5
6
  export * from "./ListBotVersionsPaginator";
6
7
  export * from "./ListBotsPaginator";
7
8
  export * from "./ListBuiltInIntentsPaginator";
@@ -9,5 +10,6 @@ export * from "./ListBuiltInSlotTypesPaginator";
9
10
  export * from "./ListExportsPaginator";
10
11
  export * from "./ListImportsPaginator";
11
12
  export * from "./ListIntentsPaginator";
13
+ export * from "./ListRecommendedIntentsPaginator";
12
14
  export * from "./ListSlotTypesPaginator";
13
15
  export * from "./ListSlotsPaginator";