@aws-sdk/client-wisdom 3.52.0 → 3.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-wisdom
package/dist-cjs/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WisdomServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./Wisdom"), exports);
5
6
  tslib_1.__exportStar(require("./WisdomClient"), exports);
6
7
  tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./models"), exports);
8
9
  tslib_1.__exportStar(require("./pagination"), exports);
10
+ var WisdomServiceException_1 = require("./models/WisdomServiceException");
11
+ Object.defineProperty(exports, "WisdomServiceException", { enumerable: true, get: function () { return WisdomServiceException_1.WisdomServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WisdomServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class WisdomServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, WisdomServiceException.prototype);
9
+ }
10
+ }
11
+ exports.WisdomServiceException = WisdomServiceException;
@@ -1,14 +1,42 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateSessionRequest = exports.SearchSessionsResponse = exports.SessionSummary = exports.SearchSessionsRequest = exports.SearchExpression = exports.Filter = exports.FilterOperator = exports.FilterField = exports.QueryAssistantResponse = exports.ResultData = exports.QueryAssistantRequest = exports.NotifyRecommendationsReceivedResponse = exports.NotifyRecommendationsReceivedError = exports.NotifyRecommendationsReceivedRequest = exports.ListAssistantsResponse = exports.AssistantSummary = exports.ListAssistantsRequest = exports.GetRecommendationsResponse = exports.RecommendationData = exports.RelevanceLevel = exports.Document = exports.DocumentText = exports.Highlight = exports.ContentReference = exports.GetRecommendationsRequest = exports.GetAssistantResponse = exports.GetAssistantRequest = exports.DeleteAssistantResponse = exports.DeleteAssistantRequest = exports.CreateAssistantResponse = exports.AssistantData = exports.AssistantStatus = exports.CreateAssistantRequest = exports.AssistantType = exports.ServerSideEncryptionConfiguration = exports.ListAssistantAssociationsResponse = exports.AssistantAssociationSummary = exports.ListAssistantAssociationsRequest = exports.GetAssistantAssociationResponse = exports.GetAssistantAssociationRequest = exports.DeleteAssistantAssociationResponse = exports.DeleteAssistantAssociationRequest = exports.CreateAssistantAssociationResponse = exports.AssistantAssociationData = exports.AssistantAssociationOutputData = exports.KnowledgeBaseAssociationData = exports.CreateAssistantAssociationRequest = exports.AssociationType = exports.AssistantAssociationInputData = exports.AppIntegrationsConfiguration = void 0;
4
- exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.UpdateKnowledgeBaseTemplateUriResponse = exports.UpdateKnowledgeBaseTemplateUriRequest = exports.StartContentUploadResponse = exports.StartContentUploadRequest = exports.SearchContentResponse = exports.SearchContentRequest = exports.RemoveKnowledgeBaseTemplateUriResponse = exports.RemoveKnowledgeBaseTemplateUriRequest = exports.ListKnowledgeBasesResponse = exports.KnowledgeBaseSummary = exports.ListKnowledgeBasesRequest = exports.GetKnowledgeBaseResponse = exports.GetKnowledgeBaseRequest = exports.DeleteKnowledgeBaseResponse = exports.DeleteKnowledgeBaseRequest = exports.CreateKnowledgeBaseResponse = exports.KnowledgeBaseData = exports.KnowledgeBaseStatus = exports.CreateKnowledgeBaseRequest = exports.SourceConfiguration = exports.RenderingConfiguration = exports.KnowledgeBaseType = exports.UpdateContentResponse = exports.UpdateContentRequest = exports.ListContentsResponse = exports.ListContentsRequest = exports.GetContentSummaryResponse = exports.ContentSummary = exports.GetContentSummaryRequest = exports.GetContentResponse = exports.GetContentRequest = exports.DeleteContentResponse = exports.DeleteContentRequest = exports.CreateContentResponse = exports.ContentData = exports.ContentStatus = exports.CreateContentRequest = exports.GetSessionResponse = exports.GetSessionRequest = exports.CreateSessionResponse = exports.SessionData = void 0;
3
+ exports.Filter = exports.FilterOperator = exports.FilterField = exports.QueryAssistantResponse = exports.ResultData = exports.QueryAssistantRequest = exports.NotifyRecommendationsReceivedResponse = exports.NotifyRecommendationsReceivedError = exports.NotifyRecommendationsReceivedRequest = exports.ListAssistantsResponse = exports.AssistantSummary = exports.ListAssistantsRequest = exports.GetRecommendationsResponse = exports.RecommendationData = exports.RelevanceLevel = exports.Document = exports.DocumentText = exports.Highlight = exports.ContentReference = exports.GetRecommendationsRequest = exports.GetAssistantResponse = exports.GetAssistantRequest = exports.DeleteAssistantResponse = exports.DeleteAssistantRequest = exports.CreateAssistantResponse = exports.AssistantData = exports.AssistantStatus = exports.CreateAssistantRequest = exports.AssistantType = exports.ServerSideEncryptionConfiguration = exports.ListAssistantAssociationsResponse = exports.AssistantAssociationSummary = exports.ListAssistantAssociationsRequest = exports.GetAssistantAssociationResponse = exports.GetAssistantAssociationRequest = exports.DeleteAssistantAssociationResponse = exports.DeleteAssistantAssociationRequest = exports.ValidationException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.CreateAssistantAssociationResponse = exports.AssistantAssociationData = exports.AssistantAssociationOutputData = exports.KnowledgeBaseAssociationData = exports.CreateAssistantAssociationRequest = exports.AssociationType = exports.AssistantAssociationInputData = exports.ConflictException = exports.AppIntegrationsConfiguration = exports.AccessDeniedException = void 0;
4
+ exports.TagResourceRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.UpdateKnowledgeBaseTemplateUriResponse = exports.UpdateKnowledgeBaseTemplateUriRequest = exports.StartContentUploadResponse = exports.StartContentUploadRequest = exports.SearchContentResponse = exports.SearchContentRequest = exports.RemoveKnowledgeBaseTemplateUriResponse = exports.RemoveKnowledgeBaseTemplateUriRequest = exports.ListKnowledgeBasesResponse = exports.KnowledgeBaseSummary = exports.ListKnowledgeBasesRequest = exports.GetKnowledgeBaseResponse = exports.GetKnowledgeBaseRequest = exports.DeleteKnowledgeBaseResponse = exports.DeleteKnowledgeBaseRequest = exports.CreateKnowledgeBaseResponse = exports.KnowledgeBaseData = exports.KnowledgeBaseStatus = exports.CreateKnowledgeBaseRequest = exports.SourceConfiguration = exports.RenderingConfiguration = exports.KnowledgeBaseType = exports.UpdateContentResponse = exports.UpdateContentRequest = exports.PreconditionFailedException = exports.ListContentsResponse = exports.ListContentsRequest = exports.GetContentSummaryResponse = exports.ContentSummary = exports.GetContentSummaryRequest = exports.GetContentResponse = exports.GetContentRequest = exports.DeleteContentResponse = exports.DeleteContentRequest = exports.CreateContentResponse = exports.ContentData = exports.ContentStatus = exports.CreateContentRequest = exports.GetSessionResponse = exports.GetSessionRequest = exports.CreateSessionResponse = exports.SessionData = exports.CreateSessionRequest = exports.SearchSessionsResponse = exports.SessionSummary = exports.SearchSessionsRequest = exports.SearchExpression = void 0;
5
+ exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TooManyTagsException = exports.TagResourceResponse = void 0;
5
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const WisdomServiceException_1 = require("./WisdomServiceException");
8
+ class AccessDeniedException extends WisdomServiceException_1.WisdomServiceException {
9
+ constructor(opts) {
10
+ super({
11
+ name: "AccessDeniedException",
12
+ $fault: "client",
13
+ ...opts,
14
+ });
15
+ this.name = "AccessDeniedException";
16
+ this.$fault = "client";
17
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
18
+ }
19
+ }
20
+ exports.AccessDeniedException = AccessDeniedException;
6
21
  var AppIntegrationsConfiguration;
7
22
  (function (AppIntegrationsConfiguration) {
8
23
  AppIntegrationsConfiguration.filterSensitiveLog = (obj) => ({
9
24
  ...obj,
10
25
  });
11
26
  })(AppIntegrationsConfiguration = exports.AppIntegrationsConfiguration || (exports.AppIntegrationsConfiguration = {}));
27
+ class ConflictException extends WisdomServiceException_1.WisdomServiceException {
28
+ constructor(opts) {
29
+ super({
30
+ name: "ConflictException",
31
+ $fault: "client",
32
+ ...opts,
33
+ });
34
+ this.name = "ConflictException";
35
+ this.$fault = "client";
36
+ Object.setPrototypeOf(this, ConflictException.prototype);
37
+ }
38
+ }
39
+ exports.ConflictException = ConflictException;
12
40
  var AssistantAssociationInputData;
13
41
  (function (AssistantAssociationInputData) {
14
42
  AssistantAssociationInputData.visit = (value, visitor) => {
@@ -74,6 +102,46 @@ var CreateAssistantAssociationResponse;
74
102
  }),
75
103
  });
76
104
  })(CreateAssistantAssociationResponse = exports.CreateAssistantAssociationResponse || (exports.CreateAssistantAssociationResponse = {}));
105
+ class ResourceNotFoundException extends WisdomServiceException_1.WisdomServiceException {
106
+ constructor(opts) {
107
+ super({
108
+ name: "ResourceNotFoundException",
109
+ $fault: "client",
110
+ ...opts,
111
+ });
112
+ this.name = "ResourceNotFoundException";
113
+ this.$fault = "client";
114
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
115
+ this.resourceName = opts.resourceName;
116
+ }
117
+ }
118
+ exports.ResourceNotFoundException = ResourceNotFoundException;
119
+ class ServiceQuotaExceededException extends WisdomServiceException_1.WisdomServiceException {
120
+ constructor(opts) {
121
+ super({
122
+ name: "ServiceQuotaExceededException",
123
+ $fault: "client",
124
+ ...opts,
125
+ });
126
+ this.name = "ServiceQuotaExceededException";
127
+ this.$fault = "client";
128
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
129
+ }
130
+ }
131
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
132
+ class ValidationException extends WisdomServiceException_1.WisdomServiceException {
133
+ constructor(opts) {
134
+ super({
135
+ name: "ValidationException",
136
+ $fault: "client",
137
+ ...opts,
138
+ });
139
+ this.name = "ValidationException";
140
+ this.$fault = "client";
141
+ Object.setPrototypeOf(this, ValidationException.prototype);
142
+ }
143
+ }
144
+ exports.ValidationException = ValidationException;
77
145
  var DeleteAssistantAssociationRequest;
78
146
  (function (DeleteAssistantAssociationRequest) {
79
147
  DeleteAssistantAssociationRequest.filterSensitiveLog = (obj) => ({
@@ -451,6 +519,19 @@ var ListContentsResponse;
451
519
  ...obj,
452
520
  });
453
521
  })(ListContentsResponse = exports.ListContentsResponse || (exports.ListContentsResponse = {}));
522
+ class PreconditionFailedException extends WisdomServiceException_1.WisdomServiceException {
523
+ constructor(opts) {
524
+ super({
525
+ name: "PreconditionFailedException",
526
+ $fault: "client",
527
+ ...opts,
528
+ });
529
+ this.name = "PreconditionFailedException";
530
+ this.$fault = "client";
531
+ Object.setPrototypeOf(this, PreconditionFailedException.prototype);
532
+ }
533
+ }
534
+ exports.PreconditionFailedException = PreconditionFailedException;
454
535
  var UpdateContentRequest;
455
536
  (function (UpdateContentRequest) {
456
537
  UpdateContentRequest.filterSensitiveLog = (obj) => ({
@@ -646,6 +727,20 @@ var TagResourceResponse;
646
727
  ...obj,
647
728
  });
648
729
  })(TagResourceResponse = exports.TagResourceResponse || (exports.TagResourceResponse = {}));
730
+ class TooManyTagsException extends WisdomServiceException_1.WisdomServiceException {
731
+ constructor(opts) {
732
+ super({
733
+ name: "TooManyTagsException",
734
+ $fault: "client",
735
+ ...opts,
736
+ });
737
+ this.name = "TooManyTagsException";
738
+ this.$fault = "client";
739
+ Object.setPrototypeOf(this, TooManyTagsException.prototype);
740
+ this.resourceName = opts.resourceName;
741
+ }
742
+ }
743
+ exports.TooManyTagsException = TooManyTagsException;
649
744
  var UntagResourceRequest;
650
745
  (function (UntagResourceRequest) {
651
746
  UntagResourceRequest.filterSensitiveLog = (obj) => ({