@aws-sdk/client-wisdom 3.186.0 → 3.188.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 (70) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist-cjs/Wisdom.js +0 -15
  3. package/dist-cjs/commands/index.js +0 -1
  4. package/dist-cjs/endpoints.js +10 -1
  5. package/dist-cjs/models/models_0.js +3 -25
  6. package/dist-cjs/protocols/Aws_restJson1.js +2 -88
  7. package/dist-es/Wisdom.js +126 -148
  8. package/dist-es/WisdomClient.js +22 -28
  9. package/dist-es/commands/CreateAssistantAssociationCommand.js +21 -28
  10. package/dist-es/commands/CreateAssistantCommand.js +21 -28
  11. package/dist-es/commands/CreateContentCommand.js +21 -28
  12. package/dist-es/commands/CreateKnowledgeBaseCommand.js +21 -28
  13. package/dist-es/commands/CreateSessionCommand.js +21 -28
  14. package/dist-es/commands/DeleteAssistantAssociationCommand.js +21 -28
  15. package/dist-es/commands/DeleteAssistantCommand.js +21 -28
  16. package/dist-es/commands/DeleteContentCommand.js +21 -28
  17. package/dist-es/commands/DeleteKnowledgeBaseCommand.js +21 -28
  18. package/dist-es/commands/GetAssistantAssociationCommand.js +21 -28
  19. package/dist-es/commands/GetAssistantCommand.js +21 -28
  20. package/dist-es/commands/GetContentCommand.js +21 -28
  21. package/dist-es/commands/GetContentSummaryCommand.js +21 -28
  22. package/dist-es/commands/GetKnowledgeBaseCommand.js +21 -28
  23. package/dist-es/commands/GetRecommendationsCommand.js +21 -28
  24. package/dist-es/commands/GetSessionCommand.js +21 -28
  25. package/dist-es/commands/ListAssistantAssociationsCommand.js +21 -28
  26. package/dist-es/commands/ListAssistantsCommand.js +21 -28
  27. package/dist-es/commands/ListContentsCommand.js +21 -28
  28. package/dist-es/commands/ListKnowledgeBasesCommand.js +21 -28
  29. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  30. package/dist-es/commands/NotifyRecommendationsReceivedCommand.js +21 -28
  31. package/dist-es/commands/QueryAssistantCommand.js +21 -28
  32. package/dist-es/commands/RemoveKnowledgeBaseTemplateUriCommand.js +21 -28
  33. package/dist-es/commands/SearchContentCommand.js +21 -28
  34. package/dist-es/commands/SearchSessionsCommand.js +21 -28
  35. package/dist-es/commands/StartContentUploadCommand.js +21 -28
  36. package/dist-es/commands/TagResourceCommand.js +21 -28
  37. package/dist-es/commands/UntagResourceCommand.js +21 -28
  38. package/dist-es/commands/UpdateContentCommand.js +21 -28
  39. package/dist-es/commands/UpdateKnowledgeBaseTemplateUriCommand.js +21 -28
  40. package/dist-es/commands/index.js +0 -1
  41. package/dist-es/endpoints.js +17 -8
  42. package/dist-es/models/WisdomServiceException.js +5 -10
  43. package/dist-es/models/models_0.js +400 -217
  44. package/dist-es/pagination/ListAssistantAssociationsPaginator.js +25 -68
  45. package/dist-es/pagination/ListAssistantsPaginator.js +25 -68
  46. package/dist-es/pagination/ListContentsPaginator.js +25 -68
  47. package/dist-es/pagination/ListKnowledgeBasesPaginator.js +25 -68
  48. package/dist-es/pagination/QueryAssistantPaginator.js +25 -68
  49. package/dist-es/pagination/SearchContentPaginator.js +25 -68
  50. package/dist-es/pagination/SearchSessionsPaginator.js +25 -68
  51. package/dist-es/protocols/Aws_restJson1.js +2087 -3093
  52. package/dist-es/runtimeConfig.browser.js +26 -12
  53. package/dist-es/runtimeConfig.js +30 -12
  54. package/dist-es/runtimeConfig.native.js +8 -5
  55. package/dist-es/runtimeConfig.shared.js +8 -11
  56. package/dist-types/Wisdom.d.ts +0 -11
  57. package/dist-types/WisdomClient.d.ts +2 -3
  58. package/dist-types/commands/index.d.ts +0 -1
  59. package/dist-types/models/models_0.d.ts +0 -69
  60. package/dist-types/protocols/Aws_restJson1.d.ts +0 -3
  61. package/dist-types/ts3.4/Wisdom.d.ts +0 -17
  62. package/dist-types/ts3.4/WisdomClient.d.ts +0 -6
  63. package/dist-types/ts3.4/commands/index.d.ts +0 -1
  64. package/dist-types/ts3.4/models/models_0.d.ts +0 -31
  65. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -12
  66. package/package.json +33 -33
  67. package/dist-cjs/commands/PutFeedbackCommand.js +0 -36
  68. package/dist-es/commands/PutFeedbackCommand.js +0 -39
  69. package/dist-types/commands/PutFeedbackCommand.d.ts +0 -39
  70. package/dist-types/ts3.4/commands/PutFeedbackCommand.d.ts +0 -32
package/CHANGELOG.md CHANGED
@@ -3,6 +3,28 @@
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.188.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.187.0...v3.188.0) (2022-10-13)
7
+
8
+
9
+ ### Features
10
+
11
+ * **client-wisdom:** This release updates the GetRecommendations API to include a trigger event list for classifying and grouping recommendations. ([8ea9f3c](https://github.com/aws/aws-sdk-js-v3/commit/8ea9f3c72a95206d50f657c4bd2e64c715ce72db))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.187.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.186.0...v3.187.0) (2022-10-07)
18
+
19
+
20
+ ### Features
21
+
22
+ * **clients:** update client endpoints as of 2022-10-07 ([8e5b8ec](https://github.com/aws/aws-sdk-js-v3/commit/8e5b8ec16c8e07c8c1e2d1987c6a00c53805bcc3))
23
+
24
+
25
+
26
+
27
+
6
28
  # [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
7
29
 
8
30
  **Note:** Version bump only for package @aws-sdk/client-wisdom
@@ -23,7 +23,6 @@ const ListContentsCommand_1 = require("./commands/ListContentsCommand");
23
23
  const ListKnowledgeBasesCommand_1 = require("./commands/ListKnowledgeBasesCommand");
24
24
  const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
25
25
  const NotifyRecommendationsReceivedCommand_1 = require("./commands/NotifyRecommendationsReceivedCommand");
26
- const PutFeedbackCommand_1 = require("./commands/PutFeedbackCommand");
27
26
  const QueryAssistantCommand_1 = require("./commands/QueryAssistantCommand");
28
27
  const RemoveKnowledgeBaseTemplateUriCommand_1 = require("./commands/RemoveKnowledgeBaseTemplateUriCommand");
29
28
  const SearchContentCommand_1 = require("./commands/SearchContentCommand");
@@ -343,20 +342,6 @@ class Wisdom extends WisdomClient_1.WisdomClient {
343
342
  return this.send(command, optionsOrCb);
344
343
  }
345
344
  }
346
- putFeedback(args, optionsOrCb, cb) {
347
- const command = new PutFeedbackCommand_1.PutFeedbackCommand(args);
348
- if (typeof optionsOrCb === "function") {
349
- this.send(command, optionsOrCb);
350
- }
351
- else if (typeof cb === "function") {
352
- if (typeof optionsOrCb !== "object")
353
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
354
- this.send(command, optionsOrCb || {}, cb);
355
- }
356
- else {
357
- return this.send(command, optionsOrCb);
358
- }
359
- }
360
345
  queryAssistant(args, optionsOrCb, cb) {
361
346
  const command = new QueryAssistantCommand_1.QueryAssistantCommand(args);
362
347
  if (typeof optionsOrCb === "function") {
@@ -23,7 +23,6 @@ tslib_1.__exportStar(require("./ListContentsCommand"), exports);
23
23
  tslib_1.__exportStar(require("./ListKnowledgeBasesCommand"), exports);
24
24
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
25
25
  tslib_1.__exportStar(require("./NotifyRecommendationsReceivedCommand"), exports);
26
- tslib_1.__exportStar(require("./PutFeedbackCommand"), exports);
27
26
  tslib_1.__exportStar(require("./QueryAssistantCommand"), exports);
28
27
  tslib_1.__exportStar(require("./RemoveKnowledgeBaseTemplateUriCommand"), exports);
29
28
  tslib_1.__exportStar(require("./SearchContentCommand"), exports);
@@ -2,7 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultRegionInfoProvider = void 0;
4
4
  const config_resolver_1 = require("@aws-sdk/config-resolver");
5
- const regionHash = {};
5
+ const regionHash = {
6
+ "us-east-1": {
7
+ variants: [],
8
+ },
9
+ "us-west-2": {
10
+ variants: [],
11
+ },
12
+ };
6
13
  const partitionHash = {
7
14
  aws: {
8
15
  regions: [
@@ -22,6 +29,8 @@ const partitionHash = {
22
29
  "eu-west-1",
23
30
  "eu-west-2",
24
31
  "eu-west-3",
32
+ "fips-us-east-1",
33
+ "fips-us-west-2",
25
34
  "me-central-1",
26
35
  "me-south-1",
27
36
  "sa-east-1",
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HighlightFilterSensitiveLog = exports.ContentReferenceFilterSensitiveLog = exports.GetRecommendationsRequestFilterSensitiveLog = exports.GetAssistantResponseFilterSensitiveLog = exports.GetAssistantRequestFilterSensitiveLog = exports.DeleteAssistantResponseFilterSensitiveLog = exports.DeleteAssistantRequestFilterSensitiveLog = exports.CreateAssistantResponseFilterSensitiveLog = exports.AssistantDataFilterSensitiveLog = exports.CreateAssistantRequestFilterSensitiveLog = exports.ServerSideEncryptionConfigurationFilterSensitiveLog = exports.ListAssistantAssociationsResponseFilterSensitiveLog = exports.AssistantAssociationSummaryFilterSensitiveLog = exports.ListAssistantAssociationsRequestFilterSensitiveLog = exports.GetAssistantAssociationResponseFilterSensitiveLog = exports.GetAssistantAssociationRequestFilterSensitiveLog = exports.DeleteAssistantAssociationResponseFilterSensitiveLog = exports.DeleteAssistantAssociationRequestFilterSensitiveLog = exports.CreateAssistantAssociationResponseFilterSensitiveLog = exports.AssistantAssociationDataFilterSensitiveLog = exports.AssistantAssociationOutputDataFilterSensitiveLog = exports.KnowledgeBaseAssociationDataFilterSensitiveLog = exports.CreateAssistantAssociationRequestFilterSensitiveLog = exports.AssistantAssociationInputDataFilterSensitiveLog = exports.AppIntegrationsConfigurationFilterSensitiveLog = exports.TooManyTagsException = exports.KnowledgeBaseStatus = exports.SourceConfiguration = exports.KnowledgeBaseType = exports.PreconditionFailedException = exports.ContentStatus = exports.FilterOperator = exports.FilterField = exports.TargetType = exports.Relevance = exports.RecommendationTriggerType = exports.RecommendationSourceType = exports.RecommendationTriggerData = exports.RecommendationType = exports.RelevanceLevel = exports.AssistantStatus = exports.AssistantType = exports.ValidationException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.AssistantAssociationOutputData = exports.AssociationType = exports.AssistantAssociationInputData = exports.ConflictException = exports.AccessDeniedException = void 0;
4
- exports.DeleteKnowledgeBaseResponseFilterSensitiveLog = exports.DeleteKnowledgeBaseRequestFilterSensitiveLog = exports.CreateKnowledgeBaseResponseFilterSensitiveLog = exports.KnowledgeBaseDataFilterSensitiveLog = exports.CreateKnowledgeBaseRequestFilterSensitiveLog = exports.SourceConfigurationFilterSensitiveLog = exports.RenderingConfigurationFilterSensitiveLog = exports.UpdateContentResponseFilterSensitiveLog = exports.UpdateContentRequestFilterSensitiveLog = exports.ListContentsResponseFilterSensitiveLog = exports.ListContentsRequestFilterSensitiveLog = exports.GetContentSummaryResponseFilterSensitiveLog = exports.ContentSummaryFilterSensitiveLog = exports.GetContentSummaryRequestFilterSensitiveLog = exports.GetContentResponseFilterSensitiveLog = exports.GetContentRequestFilterSensitiveLog = exports.DeleteContentResponseFilterSensitiveLog = exports.DeleteContentRequestFilterSensitiveLog = exports.CreateContentResponseFilterSensitiveLog = exports.ContentDataFilterSensitiveLog = exports.CreateContentRequestFilterSensitiveLog = exports.GetSessionResponseFilterSensitiveLog = exports.GetSessionRequestFilterSensitiveLog = exports.CreateSessionResponseFilterSensitiveLog = exports.SessionDataFilterSensitiveLog = exports.CreateSessionRequestFilterSensitiveLog = exports.SearchSessionsResponseFilterSensitiveLog = exports.SessionSummaryFilterSensitiveLog = exports.SearchSessionsRequestFilterSensitiveLog = exports.SearchExpressionFilterSensitiveLog = exports.FilterFilterSensitiveLog = exports.QueryAssistantResponseFilterSensitiveLog = exports.ResultDataFilterSensitiveLog = exports.QueryAssistantRequestFilterSensitiveLog = exports.PutFeedbackResponseFilterSensitiveLog = exports.PutFeedbackRequestFilterSensitiveLog = exports.FeedbackDataFilterSensitiveLog = exports.NotifyRecommendationsReceivedResponseFilterSensitiveLog = exports.NotifyRecommendationsReceivedErrorFilterSensitiveLog = exports.NotifyRecommendationsReceivedRequestFilterSensitiveLog = exports.ListAssistantsResponseFilterSensitiveLog = exports.AssistantSummaryFilterSensitiveLog = exports.ListAssistantsRequestFilterSensitiveLog = exports.GetRecommendationsResponseFilterSensitiveLog = exports.RecommendationTriggerFilterSensitiveLog = exports.RecommendationTriggerDataFilterSensitiveLog = exports.QueryRecommendationTriggerDataFilterSensitiveLog = exports.RecommendationDataFilterSensitiveLog = exports.DocumentFilterSensitiveLog = exports.DocumentTextFilterSensitiveLog = void 0;
5
- exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.UpdateKnowledgeBaseTemplateUriResponseFilterSensitiveLog = exports.UpdateKnowledgeBaseTemplateUriRequestFilterSensitiveLog = exports.StartContentUploadResponseFilterSensitiveLog = exports.StartContentUploadRequestFilterSensitiveLog = exports.SearchContentResponseFilterSensitiveLog = exports.SearchContentRequestFilterSensitiveLog = exports.RemoveKnowledgeBaseTemplateUriResponseFilterSensitiveLog = exports.RemoveKnowledgeBaseTemplateUriRequestFilterSensitiveLog = exports.ListKnowledgeBasesResponseFilterSensitiveLog = exports.KnowledgeBaseSummaryFilterSensitiveLog = exports.ListKnowledgeBasesRequestFilterSensitiveLog = exports.GetKnowledgeBaseResponseFilterSensitiveLog = exports.GetKnowledgeBaseRequestFilterSensitiveLog = void 0;
3
+ exports.DocumentFilterSensitiveLog = exports.DocumentTextFilterSensitiveLog = exports.HighlightFilterSensitiveLog = exports.ContentReferenceFilterSensitiveLog = exports.GetRecommendationsRequestFilterSensitiveLog = exports.GetAssistantResponseFilterSensitiveLog = exports.GetAssistantRequestFilterSensitiveLog = exports.DeleteAssistantResponseFilterSensitiveLog = exports.DeleteAssistantRequestFilterSensitiveLog = exports.CreateAssistantResponseFilterSensitiveLog = exports.AssistantDataFilterSensitiveLog = exports.CreateAssistantRequestFilterSensitiveLog = exports.ServerSideEncryptionConfigurationFilterSensitiveLog = exports.ListAssistantAssociationsResponseFilterSensitiveLog = exports.AssistantAssociationSummaryFilterSensitiveLog = exports.ListAssistantAssociationsRequestFilterSensitiveLog = exports.GetAssistantAssociationResponseFilterSensitiveLog = exports.GetAssistantAssociationRequestFilterSensitiveLog = exports.DeleteAssistantAssociationResponseFilterSensitiveLog = exports.DeleteAssistantAssociationRequestFilterSensitiveLog = exports.CreateAssistantAssociationResponseFilterSensitiveLog = exports.AssistantAssociationDataFilterSensitiveLog = exports.AssistantAssociationOutputDataFilterSensitiveLog = exports.KnowledgeBaseAssociationDataFilterSensitiveLog = exports.CreateAssistantAssociationRequestFilterSensitiveLog = exports.AssistantAssociationInputDataFilterSensitiveLog = exports.AppIntegrationsConfigurationFilterSensitiveLog = exports.TooManyTagsException = exports.KnowledgeBaseStatus = exports.SourceConfiguration = exports.KnowledgeBaseType = exports.PreconditionFailedException = exports.ContentStatus = exports.FilterOperator = exports.FilterField = exports.RecommendationTriggerType = exports.RecommendationSourceType = exports.RecommendationTriggerData = exports.RecommendationType = exports.RelevanceLevel = exports.AssistantStatus = exports.AssistantType = exports.ValidationException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.AssistantAssociationOutputData = exports.AssociationType = exports.AssistantAssociationInputData = exports.ConflictException = exports.AccessDeniedException = void 0;
4
+ exports.ListKnowledgeBasesResponseFilterSensitiveLog = exports.KnowledgeBaseSummaryFilterSensitiveLog = exports.ListKnowledgeBasesRequestFilterSensitiveLog = exports.GetKnowledgeBaseResponseFilterSensitiveLog = exports.GetKnowledgeBaseRequestFilterSensitiveLog = exports.DeleteKnowledgeBaseResponseFilterSensitiveLog = exports.DeleteKnowledgeBaseRequestFilterSensitiveLog = exports.CreateKnowledgeBaseResponseFilterSensitiveLog = exports.KnowledgeBaseDataFilterSensitiveLog = exports.CreateKnowledgeBaseRequestFilterSensitiveLog = exports.SourceConfigurationFilterSensitiveLog = exports.RenderingConfigurationFilterSensitiveLog = exports.UpdateContentResponseFilterSensitiveLog = exports.UpdateContentRequestFilterSensitiveLog = exports.ListContentsResponseFilterSensitiveLog = exports.ListContentsRequestFilterSensitiveLog = exports.GetContentSummaryResponseFilterSensitiveLog = exports.ContentSummaryFilterSensitiveLog = exports.GetContentSummaryRequestFilterSensitiveLog = exports.GetContentResponseFilterSensitiveLog = exports.GetContentRequestFilterSensitiveLog = exports.DeleteContentResponseFilterSensitiveLog = exports.DeleteContentRequestFilterSensitiveLog = exports.CreateContentResponseFilterSensitiveLog = exports.ContentDataFilterSensitiveLog = exports.CreateContentRequestFilterSensitiveLog = exports.GetSessionResponseFilterSensitiveLog = exports.GetSessionRequestFilterSensitiveLog = exports.CreateSessionResponseFilterSensitiveLog = exports.SessionDataFilterSensitiveLog = exports.CreateSessionRequestFilterSensitiveLog = exports.SearchSessionsResponseFilterSensitiveLog = exports.SessionSummaryFilterSensitiveLog = exports.SearchSessionsRequestFilterSensitiveLog = exports.SearchExpressionFilterSensitiveLog = exports.FilterFilterSensitiveLog = exports.QueryAssistantResponseFilterSensitiveLog = exports.ResultDataFilterSensitiveLog = exports.QueryAssistantRequestFilterSensitiveLog = exports.NotifyRecommendationsReceivedResponseFilterSensitiveLog = exports.NotifyRecommendationsReceivedErrorFilterSensitiveLog = exports.NotifyRecommendationsReceivedRequestFilterSensitiveLog = exports.ListAssistantsResponseFilterSensitiveLog = exports.AssistantSummaryFilterSensitiveLog = exports.ListAssistantsRequestFilterSensitiveLog = exports.GetRecommendationsResponseFilterSensitiveLog = exports.RecommendationTriggerFilterSensitiveLog = exports.RecommendationTriggerDataFilterSensitiveLog = exports.QueryRecommendationTriggerDataFilterSensitiveLog = exports.RecommendationDataFilterSensitiveLog = void 0;
5
+ exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.UpdateKnowledgeBaseTemplateUriResponseFilterSensitiveLog = exports.UpdateKnowledgeBaseTemplateUriRequestFilterSensitiveLog = exports.StartContentUploadResponseFilterSensitiveLog = exports.StartContentUploadRequestFilterSensitiveLog = exports.SearchContentResponseFilterSensitiveLog = exports.SearchContentRequestFilterSensitiveLog = exports.RemoveKnowledgeBaseTemplateUriResponseFilterSensitiveLog = exports.RemoveKnowledgeBaseTemplateUriRequestFilterSensitiveLog = void 0;
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const WisdomServiceException_1 = require("./WisdomServiceException");
8
8
  class AccessDeniedException extends WisdomServiceException_1.WisdomServiceException {
@@ -132,16 +132,6 @@ var RecommendationTriggerType;
132
132
  (function (RecommendationTriggerType) {
133
133
  RecommendationTriggerType["QUERY"] = "QUERY";
134
134
  })(RecommendationTriggerType = exports.RecommendationTriggerType || (exports.RecommendationTriggerType = {}));
135
- var Relevance;
136
- (function (Relevance) {
137
- Relevance["HELPFUL"] = "HELPFUL";
138
- Relevance["NOT_HELPFUL"] = "NOT_HELPFUL";
139
- })(Relevance = exports.Relevance || (exports.Relevance = {}));
140
- var TargetType;
141
- (function (TargetType) {
142
- TargetType["RECOMMENDATION"] = "RECOMMENDATION";
143
- TargetType["RESULT"] = "RESULT";
144
- })(TargetType = exports.TargetType || (exports.TargetType = {}));
145
135
  var FilterField;
146
136
  (function (FilterField) {
147
137
  FilterField["NAME"] = "NAME";
@@ -396,18 +386,6 @@ const NotifyRecommendationsReceivedResponseFilterSensitiveLog = (obj) => ({
396
386
  ...obj,
397
387
  });
398
388
  exports.NotifyRecommendationsReceivedResponseFilterSensitiveLog = NotifyRecommendationsReceivedResponseFilterSensitiveLog;
399
- const FeedbackDataFilterSensitiveLog = (obj) => ({
400
- ...obj,
401
- });
402
- exports.FeedbackDataFilterSensitiveLog = FeedbackDataFilterSensitiveLog;
403
- const PutFeedbackRequestFilterSensitiveLog = (obj) => ({
404
- ...obj,
405
- });
406
- exports.PutFeedbackRequestFilterSensitiveLog = PutFeedbackRequestFilterSensitiveLog;
407
- const PutFeedbackResponseFilterSensitiveLog = (obj) => ({
408
- ...obj,
409
- });
410
- exports.PutFeedbackResponseFilterSensitiveLog = PutFeedbackResponseFilterSensitiveLog;
411
389
  const QueryAssistantRequestFilterSensitiveLog = (obj) => ({
412
390
  ...obj,
413
391
  ...(obj.queryText && { queryText: smithy_client_1.SENSITIVE_STRING }),
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1ListAssistantsCommand = exports.deserializeAws_restJson1ListAssistantAssociationsCommand = exports.deserializeAws_restJson1GetSessionCommand = exports.deserializeAws_restJson1GetRecommendationsCommand = exports.deserializeAws_restJson1GetKnowledgeBaseCommand = exports.deserializeAws_restJson1GetContentSummaryCommand = exports.deserializeAws_restJson1GetContentCommand = exports.deserializeAws_restJson1GetAssistantAssociationCommand = exports.deserializeAws_restJson1GetAssistantCommand = exports.deserializeAws_restJson1DeleteKnowledgeBaseCommand = exports.deserializeAws_restJson1DeleteContentCommand = exports.deserializeAws_restJson1DeleteAssistantAssociationCommand = exports.deserializeAws_restJson1DeleteAssistantCommand = exports.deserializeAws_restJson1CreateSessionCommand = exports.deserializeAws_restJson1CreateKnowledgeBaseCommand = exports.deserializeAws_restJson1CreateContentCommand = exports.deserializeAws_restJson1CreateAssistantAssociationCommand = exports.deserializeAws_restJson1CreateAssistantCommand = exports.serializeAws_restJson1UpdateKnowledgeBaseTemplateUriCommand = exports.serializeAws_restJson1UpdateContentCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StartContentUploadCommand = exports.serializeAws_restJson1SearchSessionsCommand = exports.serializeAws_restJson1SearchContentCommand = exports.serializeAws_restJson1RemoveKnowledgeBaseTemplateUriCommand = exports.serializeAws_restJson1QueryAssistantCommand = exports.serializeAws_restJson1PutFeedbackCommand = exports.serializeAws_restJson1NotifyRecommendationsReceivedCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListKnowledgeBasesCommand = exports.serializeAws_restJson1ListContentsCommand = exports.serializeAws_restJson1ListAssistantsCommand = exports.serializeAws_restJson1ListAssistantAssociationsCommand = exports.serializeAws_restJson1GetSessionCommand = exports.serializeAws_restJson1GetRecommendationsCommand = exports.serializeAws_restJson1GetKnowledgeBaseCommand = exports.serializeAws_restJson1GetContentSummaryCommand = exports.serializeAws_restJson1GetContentCommand = exports.serializeAws_restJson1GetAssistantAssociationCommand = exports.serializeAws_restJson1GetAssistantCommand = exports.serializeAws_restJson1DeleteKnowledgeBaseCommand = exports.serializeAws_restJson1DeleteContentCommand = exports.serializeAws_restJson1DeleteAssistantAssociationCommand = exports.serializeAws_restJson1DeleteAssistantCommand = exports.serializeAws_restJson1CreateSessionCommand = exports.serializeAws_restJson1CreateKnowledgeBaseCommand = exports.serializeAws_restJson1CreateContentCommand = exports.serializeAws_restJson1CreateAssistantAssociationCommand = exports.serializeAws_restJson1CreateAssistantCommand = void 0;
4
- exports.deserializeAws_restJson1UpdateKnowledgeBaseTemplateUriCommand = exports.deserializeAws_restJson1UpdateContentCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartContentUploadCommand = exports.deserializeAws_restJson1SearchSessionsCommand = exports.deserializeAws_restJson1SearchContentCommand = exports.deserializeAws_restJson1RemoveKnowledgeBaseTemplateUriCommand = exports.deserializeAws_restJson1QueryAssistantCommand = exports.deserializeAws_restJson1PutFeedbackCommand = exports.deserializeAws_restJson1NotifyRecommendationsReceivedCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListKnowledgeBasesCommand = exports.deserializeAws_restJson1ListContentsCommand = void 0;
3
+ exports.deserializeAws_restJson1ListContentsCommand = exports.deserializeAws_restJson1ListAssistantsCommand = exports.deserializeAws_restJson1ListAssistantAssociationsCommand = exports.deserializeAws_restJson1GetSessionCommand = exports.deserializeAws_restJson1GetRecommendationsCommand = exports.deserializeAws_restJson1GetKnowledgeBaseCommand = exports.deserializeAws_restJson1GetContentSummaryCommand = exports.deserializeAws_restJson1GetContentCommand = exports.deserializeAws_restJson1GetAssistantAssociationCommand = exports.deserializeAws_restJson1GetAssistantCommand = exports.deserializeAws_restJson1DeleteKnowledgeBaseCommand = exports.deserializeAws_restJson1DeleteContentCommand = exports.deserializeAws_restJson1DeleteAssistantAssociationCommand = exports.deserializeAws_restJson1DeleteAssistantCommand = exports.deserializeAws_restJson1CreateSessionCommand = exports.deserializeAws_restJson1CreateKnowledgeBaseCommand = exports.deserializeAws_restJson1CreateContentCommand = exports.deserializeAws_restJson1CreateAssistantAssociationCommand = exports.deserializeAws_restJson1CreateAssistantCommand = exports.serializeAws_restJson1UpdateKnowledgeBaseTemplateUriCommand = exports.serializeAws_restJson1UpdateContentCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StartContentUploadCommand = exports.serializeAws_restJson1SearchSessionsCommand = exports.serializeAws_restJson1SearchContentCommand = exports.serializeAws_restJson1RemoveKnowledgeBaseTemplateUriCommand = exports.serializeAws_restJson1QueryAssistantCommand = exports.serializeAws_restJson1NotifyRecommendationsReceivedCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListKnowledgeBasesCommand = exports.serializeAws_restJson1ListContentsCommand = exports.serializeAws_restJson1ListAssistantsCommand = exports.serializeAws_restJson1ListAssistantAssociationsCommand = exports.serializeAws_restJson1GetSessionCommand = exports.serializeAws_restJson1GetRecommendationsCommand = exports.serializeAws_restJson1GetKnowledgeBaseCommand = exports.serializeAws_restJson1GetContentSummaryCommand = exports.serializeAws_restJson1GetContentCommand = exports.serializeAws_restJson1GetAssistantAssociationCommand = exports.serializeAws_restJson1GetAssistantCommand = exports.serializeAws_restJson1DeleteKnowledgeBaseCommand = exports.serializeAws_restJson1DeleteContentCommand = exports.serializeAws_restJson1DeleteAssistantAssociationCommand = exports.serializeAws_restJson1DeleteAssistantCommand = exports.serializeAws_restJson1CreateSessionCommand = exports.serializeAws_restJson1CreateKnowledgeBaseCommand = exports.serializeAws_restJson1CreateContentCommand = exports.serializeAws_restJson1CreateAssistantAssociationCommand = exports.serializeAws_restJson1CreateAssistantCommand = void 0;
4
+ exports.deserializeAws_restJson1UpdateKnowledgeBaseTemplateUriCommand = exports.deserializeAws_restJson1UpdateContentCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartContentUploadCommand = exports.deserializeAws_restJson1SearchSessionsCommand = exports.deserializeAws_restJson1SearchContentCommand = exports.deserializeAws_restJson1RemoveKnowledgeBaseTemplateUriCommand = exports.deserializeAws_restJson1QueryAssistantCommand = exports.deserializeAws_restJson1NotifyRecommendationsReceivedCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListKnowledgeBasesCommand = void 0;
5
5
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const uuid_1 = require("uuid");
@@ -491,30 +491,6 @@ const serializeAws_restJson1NotifyRecommendationsReceivedCommand = async (input,
491
491
  });
492
492
  };
493
493
  exports.serializeAws_restJson1NotifyRecommendationsReceivedCommand = serializeAws_restJson1NotifyRecommendationsReceivedCommand;
494
- const serializeAws_restJson1PutFeedbackCommand = async (input, context) => {
495
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
496
- const headers = {
497
- "content-type": "application/json",
498
- };
499
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assistants/{assistantId}/feedback";
500
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assistantId", () => input.assistantId, "{assistantId}", false);
501
- let body;
502
- body = JSON.stringify({
503
- ...(input.feedback != null && { feedback: serializeAws_restJson1FeedbackData(input.feedback, context) }),
504
- ...(input.targetId != null && { targetId: input.targetId }),
505
- ...(input.targetType != null && { targetType: input.targetType }),
506
- });
507
- return new protocol_http_1.HttpRequest({
508
- protocol,
509
- hostname,
510
- port,
511
- method: "PUT",
512
- headers,
513
- path: resolvedPath,
514
- body,
515
- });
516
- };
517
- exports.serializeAws_restJson1PutFeedbackCommand = serializeAws_restJson1PutFeedbackCommand;
518
494
  const serializeAws_restJson1QueryAssistantCommand = async (input, context) => {
519
495
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
520
496
  const headers = {
@@ -1627,58 +1603,6 @@ const deserializeAws_restJson1NotifyRecommendationsReceivedCommandError = async
1627
1603
  });
1628
1604
  }
1629
1605
  };
1630
- const deserializeAws_restJson1PutFeedbackCommand = async (output, context) => {
1631
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1632
- return deserializeAws_restJson1PutFeedbackCommandError(output, context);
1633
- }
1634
- const contents = map({
1635
- $metadata: deserializeMetadata(output),
1636
- });
1637
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1638
- if (data.assistantArn != null) {
1639
- contents.assistantArn = (0, smithy_client_1.expectString)(data.assistantArn);
1640
- }
1641
- if (data.assistantId != null) {
1642
- contents.assistantId = (0, smithy_client_1.expectString)(data.assistantId);
1643
- }
1644
- if (data.feedback != null) {
1645
- contents.feedback = deserializeAws_restJson1FeedbackData(data.feedback, context);
1646
- }
1647
- if (data.targetId != null) {
1648
- contents.targetId = (0, smithy_client_1.expectString)(data.targetId);
1649
- }
1650
- if (data.targetType != null) {
1651
- contents.targetType = (0, smithy_client_1.expectString)(data.targetType);
1652
- }
1653
- return contents;
1654
- };
1655
- exports.deserializeAws_restJson1PutFeedbackCommand = deserializeAws_restJson1PutFeedbackCommand;
1656
- const deserializeAws_restJson1PutFeedbackCommandError = async (output, context) => {
1657
- const parsedOutput = {
1658
- ...output,
1659
- body: await parseErrorBody(output.body, context),
1660
- };
1661
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1662
- switch (errorCode) {
1663
- case "AccessDeniedException":
1664
- case "com.amazonaws.wisdom#AccessDeniedException":
1665
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1666
- case "ResourceNotFoundException":
1667
- case "com.amazonaws.wisdom#ResourceNotFoundException":
1668
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1669
- case "ValidationException":
1670
- case "com.amazonaws.wisdom#ValidationException":
1671
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1672
- default:
1673
- const parsedBody = parsedOutput.body;
1674
- (0, smithy_client_1.throwDefaultError)({
1675
- output,
1676
- parsedBody,
1677
- exceptionCtor: WisdomServiceException_1.WisdomServiceException,
1678
- errorCode,
1679
- });
1680
- }
1681
- };
1682
1606
  const deserializeAws_restJson1QueryAssistantCommand = async (output, context) => {
1683
1607
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1684
1608
  return deserializeAws_restJson1QueryAssistantCommandError(output, context);
@@ -2158,11 +2082,6 @@ const serializeAws_restJson1ContentMetadata = (input, context) => {
2158
2082
  };
2159
2083
  }, {});
2160
2084
  };
2161
- const serializeAws_restJson1FeedbackData = (input, context) => {
2162
- return {
2163
- ...(input.relevance != null && { relevance: input.relevance }),
2164
- };
2165
- };
2166
2085
  const serializeAws_restJson1Filter = (input, context) => {
2167
2086
  return {
2168
2087
  ...(input.field != null && { field: input.field }),
@@ -2393,11 +2312,6 @@ const deserializeAws_restJson1DocumentText = (output, context) => {
2393
2312
  text: (0, smithy_client_1.expectString)(output.text),
2394
2313
  };
2395
2314
  };
2396
- const deserializeAws_restJson1FeedbackData = (output, context) => {
2397
- return {
2398
- relevance: (0, smithy_client_1.expectString)(output.relevance),
2399
- };
2400
- };
2401
2315
  const deserializeAws_restJson1Headers = (output, context) => {
2402
2316
  return Object.entries(output).reduce((acc, [key, value]) => {
2403
2317
  if (value === null) {