@aws-sdk/client-lex-models-v2 3.43.0 → 3.44.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 (56) hide show
  1. package/CHANGELOG.md +11 -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/models/models_0.js +201 -5
  11. package/dist-cjs/pagination/ListBotRecommendationsPaginator.js +35 -0
  12. package/dist-cjs/pagination/ListRecommendedIntentsPaginator.js +35 -0
  13. package/dist-cjs/pagination/index.js +2 -0
  14. package/dist-cjs/protocols/Aws_restJson1.js +1470 -208
  15. package/dist-es/LexModelsV2.js +90 -0
  16. package/dist-es/commands/DescribeBotRecommendationCommand.js +39 -0
  17. package/dist-es/commands/ListBotRecommendationsCommand.js +39 -0
  18. package/dist-es/commands/ListRecommendedIntentsCommand.js +39 -0
  19. package/dist-es/commands/SearchAssociatedTranscriptsCommand.js +39 -0
  20. package/dist-es/commands/StartBotRecommendationCommand.js +39 -0
  21. package/dist-es/commands/UpdateBotRecommendationCommand.js +39 -0
  22. package/dist-es/commands/index.js +6 -0
  23. package/dist-es/models/models_0.js +134 -0
  24. package/dist-es/pagination/ListBotRecommendationsPaginator.js +74 -0
  25. package/dist-es/pagination/ListRecommendedIntentsPaginator.js +74 -0
  26. package/dist-es/pagination/index.js +2 -0
  27. package/dist-es/protocols/Aws_restJson1.js +1368 -32
  28. package/dist-types/LexModelsV2.d.ts +50 -0
  29. package/dist-types/LexModelsV2Client.d.ts +8 -2
  30. package/dist-types/commands/DescribeBotRecommendationCommand.d.ts +39 -0
  31. package/dist-types/commands/ListBotRecommendationsCommand.d.ts +36 -0
  32. package/dist-types/commands/ListRecommendedIntentsCommand.d.ts +36 -0
  33. package/dist-types/commands/SearchAssociatedTranscriptsCommand.d.ts +36 -0
  34. package/dist-types/commands/StartBotRecommendationCommand.d.ts +36 -0
  35. package/dist-types/commands/UpdateBotRecommendationCommand.d.ts +35 -0
  36. package/dist-types/commands/index.d.ts +6 -0
  37. package/dist-types/models/models_0.d.ts +890 -0
  38. package/dist-types/pagination/ListBotRecommendationsPaginator.d.ts +4 -0
  39. package/dist-types/pagination/ListRecommendedIntentsPaginator.d.ts +4 -0
  40. package/dist-types/pagination/index.d.ts +2 -0
  41. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  42. package/dist-types/ts3.4/LexModelsV2.d.ts +30 -0
  43. package/dist-types/ts3.4/LexModelsV2Client.d.ts +8 -2
  44. package/dist-types/ts3.4/commands/DescribeBotRecommendationCommand.d.ts +17 -0
  45. package/dist-types/ts3.4/commands/ListBotRecommendationsCommand.d.ts +17 -0
  46. package/dist-types/ts3.4/commands/ListRecommendedIntentsCommand.d.ts +17 -0
  47. package/dist-types/ts3.4/commands/SearchAssociatedTranscriptsCommand.d.ts +17 -0
  48. package/dist-types/ts3.4/commands/StartBotRecommendationCommand.d.ts +17 -0
  49. package/dist-types/ts3.4/commands/UpdateBotRecommendationCommand.d.ts +17 -0
  50. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  51. package/dist-types/ts3.4/models/models_0.d.ts +419 -0
  52. package/dist-types/ts3.4/pagination/ListBotRecommendationsPaginator.d.ts +4 -0
  53. package/dist-types/ts3.4/pagination/ListRecommendedIntentsPaginator.d.ts +4 -0
  54. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  55. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +18 -0
  56. package/package.json +1 -1
@@ -26,6 +26,7 @@ import { DeleteUtterancesCommand, } from "./commands/DeleteUtterancesCommand";
26
26
  import { DescribeBotAliasCommand, } from "./commands/DescribeBotAliasCommand";
27
27
  import { DescribeBotCommand } from "./commands/DescribeBotCommand";
28
28
  import { DescribeBotLocaleCommand, } from "./commands/DescribeBotLocaleCommand";
29
+ import { DescribeBotRecommendationCommand, } from "./commands/DescribeBotRecommendationCommand";
29
30
  import { DescribeBotVersionCommand, } from "./commands/DescribeBotVersionCommand";
30
31
  import { DescribeExportCommand, } from "./commands/DescribeExportCommand";
31
32
  import { DescribeImportCommand, } from "./commands/DescribeImportCommand";
@@ -36,6 +37,7 @@ import { DescribeSlotTypeCommand, } from "./commands/DescribeSlotTypeCommand";
36
37
  import { ListAggregatedUtterancesCommand, } from "./commands/ListAggregatedUtterancesCommand";
37
38
  import { ListBotAliasesCommand, } from "./commands/ListBotAliasesCommand";
38
39
  import { ListBotLocalesCommand, } from "./commands/ListBotLocalesCommand";
40
+ import { ListBotRecommendationsCommand, } from "./commands/ListBotRecommendationsCommand";
39
41
  import { ListBotsCommand } from "./commands/ListBotsCommand";
40
42
  import { ListBotVersionsCommand, } from "./commands/ListBotVersionsCommand";
41
43
  import { ListBuiltInIntentsCommand, } from "./commands/ListBuiltInIntentsCommand";
@@ -43,15 +45,19 @@ import { ListBuiltInSlotTypesCommand, } from "./commands/ListBuiltInSlotTypesCom
43
45
  import { ListExportsCommand } from "./commands/ListExportsCommand";
44
46
  import { ListImportsCommand } from "./commands/ListImportsCommand";
45
47
  import { ListIntentsCommand } from "./commands/ListIntentsCommand";
48
+ import { ListRecommendedIntentsCommand, } from "./commands/ListRecommendedIntentsCommand";
46
49
  import { ListSlotsCommand } from "./commands/ListSlotsCommand";
47
50
  import { ListSlotTypesCommand, } from "./commands/ListSlotTypesCommand";
48
51
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
52
+ import { SearchAssociatedTranscriptsCommand, } from "./commands/SearchAssociatedTranscriptsCommand";
53
+ import { StartBotRecommendationCommand, } from "./commands/StartBotRecommendationCommand";
49
54
  import { StartImportCommand } from "./commands/StartImportCommand";
50
55
  import { TagResourceCommand } from "./commands/TagResourceCommand";
51
56
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
52
57
  import { UpdateBotAliasCommand, } from "./commands/UpdateBotAliasCommand";
53
58
  import { UpdateBotCommand } from "./commands/UpdateBotCommand";
54
59
  import { UpdateBotLocaleCommand, } from "./commands/UpdateBotLocaleCommand";
60
+ import { UpdateBotRecommendationCommand, } from "./commands/UpdateBotRecommendationCommand";
55
61
  import { UpdateExportCommand, } from "./commands/UpdateExportCommand";
56
62
  import { UpdateIntentCommand, } from "./commands/UpdateIntentCommand";
57
63
  import { UpdateResourcePolicyCommand, } from "./commands/UpdateResourcePolicyCommand";
@@ -441,6 +447,20 @@ var LexModelsV2 = (function (_super) {
441
447
  return this.send(command, optionsOrCb);
442
448
  }
443
449
  };
450
+ LexModelsV2.prototype.describeBotRecommendation = function (args, optionsOrCb, cb) {
451
+ var command = new DescribeBotRecommendationCommand(args);
452
+ if (typeof optionsOrCb === "function") {
453
+ this.send(command, optionsOrCb);
454
+ }
455
+ else if (typeof cb === "function") {
456
+ if (typeof optionsOrCb !== "object")
457
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
458
+ this.send(command, optionsOrCb || {}, cb);
459
+ }
460
+ else {
461
+ return this.send(command, optionsOrCb);
462
+ }
463
+ };
444
464
  LexModelsV2.prototype.describeBotVersion = function (args, optionsOrCb, cb) {
445
465
  var command = new DescribeBotVersionCommand(args);
446
466
  if (typeof optionsOrCb === "function") {
@@ -581,6 +601,20 @@ var LexModelsV2 = (function (_super) {
581
601
  return this.send(command, optionsOrCb);
582
602
  }
583
603
  };
604
+ LexModelsV2.prototype.listBotRecommendations = function (args, optionsOrCb, cb) {
605
+ var command = new ListBotRecommendationsCommand(args);
606
+ if (typeof optionsOrCb === "function") {
607
+ this.send(command, optionsOrCb);
608
+ }
609
+ else if (typeof cb === "function") {
610
+ if (typeof optionsOrCb !== "object")
611
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
612
+ this.send(command, optionsOrCb || {}, cb);
613
+ }
614
+ else {
615
+ return this.send(command, optionsOrCb);
616
+ }
617
+ };
584
618
  LexModelsV2.prototype.listBots = function (args, optionsOrCb, cb) {
585
619
  var command = new ListBotsCommand(args);
586
620
  if (typeof optionsOrCb === "function") {
@@ -679,6 +713,20 @@ var LexModelsV2 = (function (_super) {
679
713
  return this.send(command, optionsOrCb);
680
714
  }
681
715
  };
716
+ LexModelsV2.prototype.listRecommendedIntents = function (args, optionsOrCb, cb) {
717
+ var command = new ListRecommendedIntentsCommand(args);
718
+ if (typeof optionsOrCb === "function") {
719
+ this.send(command, optionsOrCb);
720
+ }
721
+ else if (typeof cb === "function") {
722
+ if (typeof optionsOrCb !== "object")
723
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
724
+ this.send(command, optionsOrCb || {}, cb);
725
+ }
726
+ else {
727
+ return this.send(command, optionsOrCb);
728
+ }
729
+ };
682
730
  LexModelsV2.prototype.listSlots = function (args, optionsOrCb, cb) {
683
731
  var command = new ListSlotsCommand(args);
684
732
  if (typeof optionsOrCb === "function") {
@@ -721,6 +769,34 @@ var LexModelsV2 = (function (_super) {
721
769
  return this.send(command, optionsOrCb);
722
770
  }
723
771
  };
772
+ LexModelsV2.prototype.searchAssociatedTranscripts = function (args, optionsOrCb, cb) {
773
+ var command = new SearchAssociatedTranscriptsCommand(args);
774
+ if (typeof optionsOrCb === "function") {
775
+ this.send(command, optionsOrCb);
776
+ }
777
+ else if (typeof cb === "function") {
778
+ if (typeof optionsOrCb !== "object")
779
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
780
+ this.send(command, optionsOrCb || {}, cb);
781
+ }
782
+ else {
783
+ return this.send(command, optionsOrCb);
784
+ }
785
+ };
786
+ LexModelsV2.prototype.startBotRecommendation = function (args, optionsOrCb, cb) {
787
+ var command = new StartBotRecommendationCommand(args);
788
+ if (typeof optionsOrCb === "function") {
789
+ this.send(command, optionsOrCb);
790
+ }
791
+ else if (typeof cb === "function") {
792
+ if (typeof optionsOrCb !== "object")
793
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
794
+ this.send(command, optionsOrCb || {}, cb);
795
+ }
796
+ else {
797
+ return this.send(command, optionsOrCb);
798
+ }
799
+ };
724
800
  LexModelsV2.prototype.startImport = function (args, optionsOrCb, cb) {
725
801
  var command = new StartImportCommand(args);
726
802
  if (typeof optionsOrCb === "function") {
@@ -805,6 +881,20 @@ var LexModelsV2 = (function (_super) {
805
881
  return this.send(command, optionsOrCb);
806
882
  }
807
883
  };
884
+ LexModelsV2.prototype.updateBotRecommendation = function (args, optionsOrCb, cb) {
885
+ var command = new UpdateBotRecommendationCommand(args);
886
+ if (typeof optionsOrCb === "function") {
887
+ this.send(command, optionsOrCb);
888
+ }
889
+ else if (typeof cb === "function") {
890
+ if (typeof optionsOrCb !== "object")
891
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
892
+ this.send(command, optionsOrCb || {}, cb);
893
+ }
894
+ else {
895
+ return this.send(command, optionsOrCb);
896
+ }
897
+ };
808
898
  LexModelsV2.prototype.updateExport = function (args, optionsOrCb, cb) {
809
899
  var command = new UpdateExportCommand(args);
810
900
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DescribeBotRecommendationRequest, DescribeBotRecommendationResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1DescribeBotRecommendationCommand, serializeAws_restJson1DescribeBotRecommendationCommand, } from "../protocols/Aws_restJson1";
6
+ var DescribeBotRecommendationCommand = (function (_super) {
7
+ __extends(DescribeBotRecommendationCommand, _super);
8
+ function DescribeBotRecommendationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DescribeBotRecommendationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "LexModelsV2Client";
18
+ var commandName = "DescribeBotRecommendationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DescribeBotRecommendationRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DescribeBotRecommendationResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeBotRecommendationCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1DescribeBotRecommendationCommand(input, context);
33
+ };
34
+ DescribeBotRecommendationCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1DescribeBotRecommendationCommand(output, context);
36
+ };
37
+ return DescribeBotRecommendationCommand;
38
+ }($Command));
39
+ export { DescribeBotRecommendationCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListBotRecommendationsRequest, ListBotRecommendationsResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListBotRecommendationsCommand, serializeAws_restJson1ListBotRecommendationsCommand, } from "../protocols/Aws_restJson1";
6
+ var ListBotRecommendationsCommand = (function (_super) {
7
+ __extends(ListBotRecommendationsCommand, _super);
8
+ function ListBotRecommendationsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListBotRecommendationsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "LexModelsV2Client";
18
+ var commandName = "ListBotRecommendationsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListBotRecommendationsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListBotRecommendationsResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListBotRecommendationsCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1ListBotRecommendationsCommand(input, context);
33
+ };
34
+ ListBotRecommendationsCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1ListBotRecommendationsCommand(output, context);
36
+ };
37
+ return ListBotRecommendationsCommand;
38
+ }($Command));
39
+ export { ListBotRecommendationsCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListRecommendedIntentsRequest, ListRecommendedIntentsResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListRecommendedIntentsCommand, serializeAws_restJson1ListRecommendedIntentsCommand, } from "../protocols/Aws_restJson1";
6
+ var ListRecommendedIntentsCommand = (function (_super) {
7
+ __extends(ListRecommendedIntentsCommand, _super);
8
+ function ListRecommendedIntentsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListRecommendedIntentsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "LexModelsV2Client";
18
+ var commandName = "ListRecommendedIntentsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListRecommendedIntentsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListRecommendedIntentsResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListRecommendedIntentsCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1ListRecommendedIntentsCommand(input, context);
33
+ };
34
+ ListRecommendedIntentsCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1ListRecommendedIntentsCommand(output, context);
36
+ };
37
+ return ListRecommendedIntentsCommand;
38
+ }($Command));
39
+ export { ListRecommendedIntentsCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { SearchAssociatedTranscriptsRequest, SearchAssociatedTranscriptsResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1SearchAssociatedTranscriptsCommand, serializeAws_restJson1SearchAssociatedTranscriptsCommand, } from "../protocols/Aws_restJson1";
6
+ var SearchAssociatedTranscriptsCommand = (function (_super) {
7
+ __extends(SearchAssociatedTranscriptsCommand, _super);
8
+ function SearchAssociatedTranscriptsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ SearchAssociatedTranscriptsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "LexModelsV2Client";
18
+ var commandName = "SearchAssociatedTranscriptsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: SearchAssociatedTranscriptsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: SearchAssociatedTranscriptsResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ SearchAssociatedTranscriptsCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1SearchAssociatedTranscriptsCommand(input, context);
33
+ };
34
+ SearchAssociatedTranscriptsCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1SearchAssociatedTranscriptsCommand(output, context);
36
+ };
37
+ return SearchAssociatedTranscriptsCommand;
38
+ }($Command));
39
+ export { SearchAssociatedTranscriptsCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { StartBotRecommendationRequest, StartBotRecommendationResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1StartBotRecommendationCommand, serializeAws_restJson1StartBotRecommendationCommand, } from "../protocols/Aws_restJson1";
6
+ var StartBotRecommendationCommand = (function (_super) {
7
+ __extends(StartBotRecommendationCommand, _super);
8
+ function StartBotRecommendationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ StartBotRecommendationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "LexModelsV2Client";
18
+ var commandName = "StartBotRecommendationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: StartBotRecommendationRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: StartBotRecommendationResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ StartBotRecommendationCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1StartBotRecommendationCommand(input, context);
33
+ };
34
+ StartBotRecommendationCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1StartBotRecommendationCommand(output, context);
36
+ };
37
+ return StartBotRecommendationCommand;
38
+ }($Command));
39
+ export { StartBotRecommendationCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdateBotRecommendationRequest, UpdateBotRecommendationResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1UpdateBotRecommendationCommand, serializeAws_restJson1UpdateBotRecommendationCommand, } from "../protocols/Aws_restJson1";
6
+ var UpdateBotRecommendationCommand = (function (_super) {
7
+ __extends(UpdateBotRecommendationCommand, _super);
8
+ function UpdateBotRecommendationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ UpdateBotRecommendationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "LexModelsV2Client";
18
+ var commandName = "UpdateBotRecommendationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: UpdateBotRecommendationRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: UpdateBotRecommendationResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateBotRecommendationCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1UpdateBotRecommendationCommand(input, context);
33
+ };
34
+ UpdateBotRecommendationCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1UpdateBotRecommendationCommand(output, context);
36
+ };
37
+ return UpdateBotRecommendationCommand;
38
+ }($Command));
39
+ export { UpdateBotRecommendationCommand };
@@ -25,6 +25,7 @@ export * from "./DeleteUtterancesCommand";
25
25
  export * from "./DescribeBotAliasCommand";
26
26
  export * from "./DescribeBotCommand";
27
27
  export * from "./DescribeBotLocaleCommand";
28
+ export * from "./DescribeBotRecommendationCommand";
28
29
  export * from "./DescribeBotVersionCommand";
29
30
  export * from "./DescribeExportCommand";
30
31
  export * from "./DescribeImportCommand";
@@ -35,6 +36,7 @@ export * from "./DescribeSlotTypeCommand";
35
36
  export * from "./ListAggregatedUtterancesCommand";
36
37
  export * from "./ListBotAliasesCommand";
37
38
  export * from "./ListBotLocalesCommand";
39
+ export * from "./ListBotRecommendationsCommand";
38
40
  export * from "./ListBotVersionsCommand";
39
41
  export * from "./ListBotsCommand";
40
42
  export * from "./ListBuiltInIntentsCommand";
@@ -42,15 +44,19 @@ export * from "./ListBuiltInSlotTypesCommand";
42
44
  export * from "./ListExportsCommand";
43
45
  export * from "./ListImportsCommand";
44
46
  export * from "./ListIntentsCommand";
47
+ export * from "./ListRecommendedIntentsCommand";
45
48
  export * from "./ListSlotTypesCommand";
46
49
  export * from "./ListSlotsCommand";
47
50
  export * from "./ListTagsForResourceCommand";
51
+ export * from "./SearchAssociatedTranscriptsCommand";
52
+ export * from "./StartBotRecommendationCommand";
48
53
  export * from "./StartImportCommand";
49
54
  export * from "./TagResourceCommand";
50
55
  export * from "./UntagResourceCommand";
51
56
  export * from "./UpdateBotAliasCommand";
52
57
  export * from "./UpdateBotCommand";
53
58
  export * from "./UpdateBotLocaleCommand";
59
+ export * from "./UpdateBotRecommendationCommand";
54
60
  export * from "./UpdateExportCommand";
55
61
  export * from "./UpdateIntentCommand";
56
62
  export * from "./UpdateResourcePolicyCommand";
@@ -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)); };
@@ -146,12 +159,43 @@ export var BotLocaleStatus;
146
159
  BotLocaleStatus["Failed"] = "Failed";
147
160
  BotLocaleStatus["Importing"] = "Importing";
148
161
  BotLocaleStatus["NotBuilt"] = "NotBuilt";
162
+ BotLocaleStatus["Processing"] = "Processing";
149
163
  BotLocaleStatus["ReadyExpressTesting"] = "ReadyExpressTesting";
150
164
  })(BotLocaleStatus || (BotLocaleStatus = {}));
151
165
  export var BotLocaleSummary;
152
166
  (function (BotLocaleSummary) {
153
167
  BotLocaleSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
154
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 = {}));
155
199
  export var BotSortAttribute;
156
200
  (function (BotSortAttribute) {
157
201
  BotSortAttribute["BotName"] = "BotName";
@@ -525,6 +569,10 @@ export var CreateUploadUrlResponse;
525
569
  (function (CreateUploadUrlResponse) {
526
570
  CreateUploadUrlResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
527
571
  })(CreateUploadUrlResponse || (CreateUploadUrlResponse = {}));
572
+ export var DateRangeFilter;
573
+ (function (DateRangeFilter) {
574
+ DateRangeFilter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
575
+ })(DateRangeFilter || (DateRangeFilter = {}));
528
576
  export var DeleteBotRequest;
529
577
  (function (DeleteBotRequest) {
530
578
  DeleteBotRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -640,6 +688,42 @@ export var DescribeBotLocaleResponse;
640
688
  (function (DescribeBotLocaleResponse) {
641
689
  DescribeBotLocaleResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
642
690
  })(DescribeBotLocaleResponse || (DescribeBotLocaleResponse = {}));
691
+ export var DescribeBotRecommendationRequest;
692
+ (function (DescribeBotRecommendationRequest) {
693
+ DescribeBotRecommendationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
694
+ })(DescribeBotRecommendationRequest || (DescribeBotRecommendationRequest = {}));
695
+ export var EncryptionSetting;
696
+ (function (EncryptionSetting) {
697
+ EncryptionSetting.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.botLocaleExportPassword && { botLocaleExportPassword: SENSITIVE_STRING })), (obj.associatedTranscriptsPassword && { associatedTranscriptsPassword: SENSITIVE_STRING }))); };
698
+ })(EncryptionSetting || (EncryptionSetting = {}));
699
+ export var PathFormat;
700
+ (function (PathFormat) {
701
+ PathFormat.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
702
+ })(PathFormat || (PathFormat = {}));
703
+ export var LexTranscriptFilter;
704
+ (function (LexTranscriptFilter) {
705
+ LexTranscriptFilter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
706
+ })(LexTranscriptFilter || (LexTranscriptFilter = {}));
707
+ export var TranscriptFilter;
708
+ (function (TranscriptFilter) {
709
+ TranscriptFilter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
710
+ })(TranscriptFilter || (TranscriptFilter = {}));
711
+ export var TranscriptFormat;
712
+ (function (TranscriptFormat) {
713
+ TranscriptFormat["Lex"] = "Lex";
714
+ })(TranscriptFormat || (TranscriptFormat = {}));
715
+ export var S3BucketTranscriptSource;
716
+ (function (S3BucketTranscriptSource) {
717
+ S3BucketTranscriptSource.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
718
+ })(S3BucketTranscriptSource || (S3BucketTranscriptSource = {}));
719
+ export var TranscriptSourceSetting;
720
+ (function (TranscriptSourceSetting) {
721
+ TranscriptSourceSetting.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
722
+ })(TranscriptSourceSetting || (TranscriptSourceSetting = {}));
723
+ export var DescribeBotRecommendationResponse;
724
+ (function (DescribeBotRecommendationResponse) {
725
+ DescribeBotRecommendationResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.encryptionSetting && { encryptionSetting: EncryptionSetting.filterSensitiveLog(obj.encryptionSetting) }))); };
726
+ })(DescribeBotRecommendationResponse || (DescribeBotRecommendationResponse = {}));
643
727
  export var DescribeBotVersionRequest;
644
728
  (function (DescribeBotVersionRequest) {
645
729
  DescribeBotVersionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -662,6 +746,7 @@ export var DescribeImportRequest;
662
746
  })(DescribeImportRequest || (DescribeImportRequest = {}));
663
747
  export var MergeStrategy;
664
748
  (function (MergeStrategy) {
749
+ MergeStrategy["Append"] = "Append";
665
750
  MergeStrategy["FailOnConflict"] = "FailOnConflict";
666
751
  MergeStrategy["Overwrite"] = "Overwrite";
667
752
  })(MergeStrategy || (MergeStrategy = {}));
@@ -823,6 +908,14 @@ export var ListBotLocalesResponse;
823
908
  (function (ListBotLocalesResponse) {
824
909
  ListBotLocalesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
825
910
  })(ListBotLocalesResponse || (ListBotLocalesResponse = {}));
911
+ export var ListBotRecommendationsRequest;
912
+ (function (ListBotRecommendationsRequest) {
913
+ ListBotRecommendationsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
914
+ })(ListBotRecommendationsRequest || (ListBotRecommendationsRequest = {}));
915
+ export var ListBotRecommendationsResponse;
916
+ (function (ListBotRecommendationsResponse) {
917
+ ListBotRecommendationsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
918
+ })(ListBotRecommendationsResponse || (ListBotRecommendationsResponse = {}));
826
919
  export var ListBotsRequest;
827
920
  (function (ListBotsRequest) {
828
921
  ListBotsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -879,6 +972,18 @@ export var ListIntentsResponse;
879
972
  (function (ListIntentsResponse) {
880
973
  ListIntentsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
881
974
  })(ListIntentsResponse || (ListIntentsResponse = {}));
975
+ export var ListRecommendedIntentsRequest;
976
+ (function (ListRecommendedIntentsRequest) {
977
+ ListRecommendedIntentsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
978
+ })(ListRecommendedIntentsRequest || (ListRecommendedIntentsRequest = {}));
979
+ export var RecommendedIntentSummary;
980
+ (function (RecommendedIntentSummary) {
981
+ RecommendedIntentSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
982
+ })(RecommendedIntentSummary || (RecommendedIntentSummary = {}));
983
+ export var ListRecommendedIntentsResponse;
984
+ (function (ListRecommendedIntentsResponse) {
985
+ ListRecommendedIntentsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
986
+ })(ListRecommendedIntentsResponse || (ListRecommendedIntentsResponse = {}));
882
987
  export var SlotFilterName;
883
988
  (function (SlotFilterName) {
884
989
  SlotFilterName["SlotName"] = "SlotName";
@@ -955,6 +1060,27 @@ export var ListTagsForResourceResponse;
955
1060
  (function (ListTagsForResourceResponse) {
956
1061
  ListTagsForResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
957
1062
  })(ListTagsForResourceResponse || (ListTagsForResourceResponse = {}));
1063
+ export var SearchOrder;
1064
+ (function (SearchOrder) {
1065
+ SearchOrder["Ascending"] = "Ascending";
1066
+ SearchOrder["Descending"] = "Descending";
1067
+ })(SearchOrder || (SearchOrder = {}));
1068
+ export var SearchAssociatedTranscriptsRequest;
1069
+ (function (SearchAssociatedTranscriptsRequest) {
1070
+ SearchAssociatedTranscriptsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1071
+ })(SearchAssociatedTranscriptsRequest || (SearchAssociatedTranscriptsRequest = {}));
1072
+ export var SearchAssociatedTranscriptsResponse;
1073
+ (function (SearchAssociatedTranscriptsResponse) {
1074
+ SearchAssociatedTranscriptsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1075
+ })(SearchAssociatedTranscriptsResponse || (SearchAssociatedTranscriptsResponse = {}));
1076
+ export var StartBotRecommendationRequest;
1077
+ (function (StartBotRecommendationRequest) {
1078
+ StartBotRecommendationRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.encryptionSetting && { encryptionSetting: EncryptionSetting.filterSensitiveLog(obj.encryptionSetting) }))); };
1079
+ })(StartBotRecommendationRequest || (StartBotRecommendationRequest = {}));
1080
+ export var StartBotRecommendationResponse;
1081
+ (function (StartBotRecommendationResponse) {
1082
+ StartBotRecommendationResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.encryptionSetting && { encryptionSetting: EncryptionSetting.filterSensitiveLog(obj.encryptionSetting) }))); };
1083
+ })(StartBotRecommendationResponse || (StartBotRecommendationResponse = {}));
958
1084
  export var StartImportRequest;
959
1085
  (function (StartImportRequest) {
960
1086
  StartImportRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.filePassword && { filePassword: SENSITIVE_STRING }))); };
@@ -1003,6 +1129,14 @@ export var UpdateBotLocaleResponse;
1003
1129
  (function (UpdateBotLocaleResponse) {
1004
1130
  UpdateBotLocaleResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1005
1131
  })(UpdateBotLocaleResponse || (UpdateBotLocaleResponse = {}));
1132
+ export var UpdateBotRecommendationRequest;
1133
+ (function (UpdateBotRecommendationRequest) {
1134
+ UpdateBotRecommendationRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.encryptionSetting && { encryptionSetting: EncryptionSetting.filterSensitiveLog(obj.encryptionSetting) }))); };
1135
+ })(UpdateBotRecommendationRequest || (UpdateBotRecommendationRequest = {}));
1136
+ export var UpdateBotRecommendationResponse;
1137
+ (function (UpdateBotRecommendationResponse) {
1138
+ UpdateBotRecommendationResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.encryptionSetting && { encryptionSetting: EncryptionSetting.filterSensitiveLog(obj.encryptionSetting) }))); };
1139
+ })(UpdateBotRecommendationResponse || (UpdateBotRecommendationResponse = {}));
1006
1140
  export var UpdateExportRequest;
1007
1141
  (function (UpdateExportRequest) {
1008
1142
  UpdateExportRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.filePassword && { filePassword: SENSITIVE_STRING }))); };