@aws-sdk/client-wisdom 3.187.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 (69) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/Wisdom.js +0 -15
  3. package/dist-cjs/commands/index.js +0 -1
  4. package/dist-cjs/models/models_0.js +3 -25
  5. package/dist-cjs/protocols/Aws_restJson1.js +2 -88
  6. package/dist-es/Wisdom.js +126 -148
  7. package/dist-es/WisdomClient.js +22 -28
  8. package/dist-es/commands/CreateAssistantAssociationCommand.js +21 -28
  9. package/dist-es/commands/CreateAssistantCommand.js +21 -28
  10. package/dist-es/commands/CreateContentCommand.js +21 -28
  11. package/dist-es/commands/CreateKnowledgeBaseCommand.js +21 -28
  12. package/dist-es/commands/CreateSessionCommand.js +21 -28
  13. package/dist-es/commands/DeleteAssistantAssociationCommand.js +21 -28
  14. package/dist-es/commands/DeleteAssistantCommand.js +21 -28
  15. package/dist-es/commands/DeleteContentCommand.js +21 -28
  16. package/dist-es/commands/DeleteKnowledgeBaseCommand.js +21 -28
  17. package/dist-es/commands/GetAssistantAssociationCommand.js +21 -28
  18. package/dist-es/commands/GetAssistantCommand.js +21 -28
  19. package/dist-es/commands/GetContentCommand.js +21 -28
  20. package/dist-es/commands/GetContentSummaryCommand.js +21 -28
  21. package/dist-es/commands/GetKnowledgeBaseCommand.js +21 -28
  22. package/dist-es/commands/GetRecommendationsCommand.js +21 -28
  23. package/dist-es/commands/GetSessionCommand.js +21 -28
  24. package/dist-es/commands/ListAssistantAssociationsCommand.js +21 -28
  25. package/dist-es/commands/ListAssistantsCommand.js +21 -28
  26. package/dist-es/commands/ListContentsCommand.js +21 -28
  27. package/dist-es/commands/ListKnowledgeBasesCommand.js +21 -28
  28. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  29. package/dist-es/commands/NotifyRecommendationsReceivedCommand.js +21 -28
  30. package/dist-es/commands/QueryAssistantCommand.js +21 -28
  31. package/dist-es/commands/RemoveKnowledgeBaseTemplateUriCommand.js +21 -28
  32. package/dist-es/commands/SearchContentCommand.js +21 -28
  33. package/dist-es/commands/SearchSessionsCommand.js +21 -28
  34. package/dist-es/commands/StartContentUploadCommand.js +21 -28
  35. package/dist-es/commands/TagResourceCommand.js +21 -28
  36. package/dist-es/commands/UntagResourceCommand.js +21 -28
  37. package/dist-es/commands/UpdateContentCommand.js +21 -28
  38. package/dist-es/commands/UpdateKnowledgeBaseTemplateUriCommand.js +21 -28
  39. package/dist-es/commands/index.js +0 -1
  40. package/dist-es/endpoints.js +8 -8
  41. package/dist-es/models/WisdomServiceException.js +5 -10
  42. package/dist-es/models/models_0.js +400 -217
  43. package/dist-es/pagination/ListAssistantAssociationsPaginator.js +25 -68
  44. package/dist-es/pagination/ListAssistantsPaginator.js +25 -68
  45. package/dist-es/pagination/ListContentsPaginator.js +25 -68
  46. package/dist-es/pagination/ListKnowledgeBasesPaginator.js +25 -68
  47. package/dist-es/pagination/QueryAssistantPaginator.js +25 -68
  48. package/dist-es/pagination/SearchContentPaginator.js +25 -68
  49. package/dist-es/pagination/SearchSessionsPaginator.js +25 -68
  50. package/dist-es/protocols/Aws_restJson1.js +2087 -3093
  51. package/dist-es/runtimeConfig.browser.js +26 -12
  52. package/dist-es/runtimeConfig.js +30 -12
  53. package/dist-es/runtimeConfig.native.js +8 -5
  54. package/dist-es/runtimeConfig.shared.js +8 -11
  55. package/dist-types/Wisdom.d.ts +0 -11
  56. package/dist-types/WisdomClient.d.ts +2 -3
  57. package/dist-types/commands/index.d.ts +0 -1
  58. package/dist-types/models/models_0.d.ts +0 -69
  59. package/dist-types/protocols/Aws_restJson1.d.ts +0 -3
  60. package/dist-types/ts3.4/Wisdom.d.ts +0 -17
  61. package/dist-types/ts3.4/WisdomClient.d.ts +0 -6
  62. package/dist-types/ts3.4/commands/index.d.ts +0 -1
  63. package/dist-types/ts3.4/models/models_0.d.ts +0 -31
  64. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -12
  65. package/package.json +33 -33
  66. package/dist-cjs/commands/PutFeedbackCommand.js +0 -36
  67. package/dist-es/commands/PutFeedbackCommand.js +0 -39
  68. package/dist-types/commands/PutFeedbackCommand.d.ts +0 -39
  69. package/dist-types/ts3.4/commands/PutFeedbackCommand.d.ts +0 -32
@@ -1,33 +1,32 @@
1
- import { __assign, __extends } from "tslib";
2
1
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
2
  import { WisdomServiceException as __BaseException } from "./WisdomServiceException";
4
- var AccessDeniedException = (function (_super) {
5
- __extends(AccessDeniedException, _super);
6
- function AccessDeniedException(opts) {
7
- var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
8
- _this.name = "AccessDeniedException";
9
- _this.$fault = "client";
10
- Object.setPrototypeOf(_this, AccessDeniedException.prototype);
11
- return _this;
3
+ export class AccessDeniedException extends __BaseException {
4
+ constructor(opts) {
5
+ super({
6
+ name: "AccessDeniedException",
7
+ $fault: "client",
8
+ ...opts,
9
+ });
10
+ this.name = "AccessDeniedException";
11
+ this.$fault = "client";
12
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
13
  }
13
- return AccessDeniedException;
14
- }(__BaseException));
15
- export { AccessDeniedException };
16
- var ConflictException = (function (_super) {
17
- __extends(ConflictException, _super);
18
- function ConflictException(opts) {
19
- var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
20
- _this.name = "ConflictException";
21
- _this.$fault = "client";
22
- Object.setPrototypeOf(_this, ConflictException.prototype);
23
- return _this;
14
+ }
15
+ export class ConflictException extends __BaseException {
16
+ constructor(opts) {
17
+ super({
18
+ name: "ConflictException",
19
+ $fault: "client",
20
+ ...opts,
21
+ });
22
+ this.name = "ConflictException";
23
+ this.$fault = "client";
24
+ Object.setPrototypeOf(this, ConflictException.prototype);
24
25
  }
25
- return ConflictException;
26
- }(__BaseException));
27
- export { ConflictException };
26
+ }
28
27
  export var AssistantAssociationInputData;
29
28
  (function (AssistantAssociationInputData) {
30
- AssistantAssociationInputData.visit = function (value, visitor) {
29
+ AssistantAssociationInputData.visit = (value, visitor) => {
31
30
  if (value.knowledgeBaseId !== undefined)
32
31
  return visitor.knowledgeBaseId(value.knowledgeBaseId);
33
32
  return visitor._(value.$unknown[0], value.$unknown[1]);
@@ -39,49 +38,49 @@ export var AssociationType;
39
38
  })(AssociationType || (AssociationType = {}));
40
39
  export var AssistantAssociationOutputData;
41
40
  (function (AssistantAssociationOutputData) {
42
- AssistantAssociationOutputData.visit = function (value, visitor) {
41
+ AssistantAssociationOutputData.visit = (value, visitor) => {
43
42
  if (value.knowledgeBaseAssociation !== undefined)
44
43
  return visitor.knowledgeBaseAssociation(value.knowledgeBaseAssociation);
45
44
  return visitor._(value.$unknown[0], value.$unknown[1]);
46
45
  };
47
46
  })(AssistantAssociationOutputData || (AssistantAssociationOutputData = {}));
48
- var ResourceNotFoundException = (function (_super) {
49
- __extends(ResourceNotFoundException, _super);
50
- function ResourceNotFoundException(opts) {
51
- var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
52
- _this.name = "ResourceNotFoundException";
53
- _this.$fault = "client";
54
- Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
55
- _this.resourceName = opts.resourceName;
56
- return _this;
47
+ export class ResourceNotFoundException extends __BaseException {
48
+ constructor(opts) {
49
+ super({
50
+ name: "ResourceNotFoundException",
51
+ $fault: "client",
52
+ ...opts,
53
+ });
54
+ this.name = "ResourceNotFoundException";
55
+ this.$fault = "client";
56
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
57
+ this.resourceName = opts.resourceName;
57
58
  }
58
- return ResourceNotFoundException;
59
- }(__BaseException));
60
- export { ResourceNotFoundException };
61
- var ServiceQuotaExceededException = (function (_super) {
62
- __extends(ServiceQuotaExceededException, _super);
63
- function ServiceQuotaExceededException(opts) {
64
- var _this = _super.call(this, __assign({ name: "ServiceQuotaExceededException", $fault: "client" }, opts)) || this;
65
- _this.name = "ServiceQuotaExceededException";
66
- _this.$fault = "client";
67
- Object.setPrototypeOf(_this, ServiceQuotaExceededException.prototype);
68
- return _this;
59
+ }
60
+ export class ServiceQuotaExceededException extends __BaseException {
61
+ constructor(opts) {
62
+ super({
63
+ name: "ServiceQuotaExceededException",
64
+ $fault: "client",
65
+ ...opts,
66
+ });
67
+ this.name = "ServiceQuotaExceededException";
68
+ this.$fault = "client";
69
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
69
70
  }
70
- return ServiceQuotaExceededException;
71
- }(__BaseException));
72
- export { ServiceQuotaExceededException };
73
- var ValidationException = (function (_super) {
74
- __extends(ValidationException, _super);
75
- function ValidationException(opts) {
76
- var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
77
- _this.name = "ValidationException";
78
- _this.$fault = "client";
79
- Object.setPrototypeOf(_this, ValidationException.prototype);
80
- return _this;
71
+ }
72
+ export class ValidationException extends __BaseException {
73
+ constructor(opts) {
74
+ super({
75
+ name: "ValidationException",
76
+ $fault: "client",
77
+ ...opts,
78
+ });
79
+ this.name = "ValidationException";
80
+ this.$fault = "client";
81
+ Object.setPrototypeOf(this, ValidationException.prototype);
81
82
  }
82
- return ValidationException;
83
- }(__BaseException));
84
- export { ValidationException };
83
+ }
85
84
  export var AssistantType;
86
85
  (function (AssistantType) {
87
86
  AssistantType["AGENT"] = "AGENT";
@@ -107,7 +106,7 @@ export var RecommendationType;
107
106
  })(RecommendationType || (RecommendationType = {}));
108
107
  export var RecommendationTriggerData;
109
108
  (function (RecommendationTriggerData) {
110
- RecommendationTriggerData.visit = function (value, visitor) {
109
+ RecommendationTriggerData.visit = (value, visitor) => {
111
110
  if (value.query !== undefined)
112
111
  return visitor.query(value.query);
113
112
  return visitor._(value.$unknown[0], value.$unknown[1]);
@@ -123,16 +122,6 @@ export var RecommendationTriggerType;
123
122
  (function (RecommendationTriggerType) {
124
123
  RecommendationTriggerType["QUERY"] = "QUERY";
125
124
  })(RecommendationTriggerType || (RecommendationTriggerType = {}));
126
- export var Relevance;
127
- (function (Relevance) {
128
- Relevance["HELPFUL"] = "HELPFUL";
129
- Relevance["NOT_HELPFUL"] = "NOT_HELPFUL";
130
- })(Relevance || (Relevance = {}));
131
- export var TargetType;
132
- (function (TargetType) {
133
- TargetType["RECOMMENDATION"] = "RECOMMENDATION";
134
- TargetType["RESULT"] = "RESULT";
135
- })(TargetType || (TargetType = {}));
136
125
  export var FilterField;
137
126
  (function (FilterField) {
138
127
  FilterField["NAME"] = "NAME";
@@ -151,18 +140,18 @@ export var ContentStatus;
151
140
  ContentStatus["DELETE_IN_PROGRESS"] = "DELETE_IN_PROGRESS";
152
141
  ContentStatus["UPDATE_FAILED"] = "UPDATE_FAILED";
153
142
  })(ContentStatus || (ContentStatus = {}));
154
- var PreconditionFailedException = (function (_super) {
155
- __extends(PreconditionFailedException, _super);
156
- function PreconditionFailedException(opts) {
157
- var _this = _super.call(this, __assign({ name: "PreconditionFailedException", $fault: "client" }, opts)) || this;
158
- _this.name = "PreconditionFailedException";
159
- _this.$fault = "client";
160
- Object.setPrototypeOf(_this, PreconditionFailedException.prototype);
161
- return _this;
143
+ export class PreconditionFailedException extends __BaseException {
144
+ constructor(opts) {
145
+ super({
146
+ name: "PreconditionFailedException",
147
+ $fault: "client",
148
+ ...opts,
149
+ });
150
+ this.name = "PreconditionFailedException";
151
+ this.$fault = "client";
152
+ Object.setPrototypeOf(this, PreconditionFailedException.prototype);
162
153
  }
163
- return PreconditionFailedException;
164
- }(__BaseException));
165
- export { PreconditionFailedException };
154
+ }
166
155
  export var KnowledgeBaseType;
167
156
  (function (KnowledgeBaseType) {
168
157
  KnowledgeBaseType["CUSTOM"] = "CUSTOM";
@@ -170,7 +159,7 @@ export var KnowledgeBaseType;
170
159
  })(KnowledgeBaseType || (KnowledgeBaseType = {}));
171
160
  export var SourceConfiguration;
172
161
  (function (SourceConfiguration) {
173
- SourceConfiguration.visit = function (value, visitor) {
162
+ SourceConfiguration.visit = (value, visitor) => {
174
163
  if (value.appIntegrations !== undefined)
175
164
  return visitor.appIntegrations(value.appIntegrations);
176
165
  return visitor._(value.$unknown[0], value.$unknown[1]);
@@ -185,156 +174,350 @@ export var KnowledgeBaseStatus;
185
174
  KnowledgeBaseStatus["DELETE_FAILED"] = "DELETE_FAILED";
186
175
  KnowledgeBaseStatus["DELETE_IN_PROGRESS"] = "DELETE_IN_PROGRESS";
187
176
  })(KnowledgeBaseStatus || (KnowledgeBaseStatus = {}));
188
- var TooManyTagsException = (function (_super) {
189
- __extends(TooManyTagsException, _super);
190
- function TooManyTagsException(opts) {
191
- var _this = _super.call(this, __assign({ name: "TooManyTagsException", $fault: "client" }, opts)) || this;
192
- _this.name = "TooManyTagsException";
193
- _this.$fault = "client";
194
- Object.setPrototypeOf(_this, TooManyTagsException.prototype);
195
- _this.resourceName = opts.resourceName;
196
- return _this;
177
+ export class TooManyTagsException extends __BaseException {
178
+ constructor(opts) {
179
+ super({
180
+ name: "TooManyTagsException",
181
+ $fault: "client",
182
+ ...opts,
183
+ });
184
+ this.name = "TooManyTagsException";
185
+ this.$fault = "client";
186
+ Object.setPrototypeOf(this, TooManyTagsException.prototype);
187
+ this.resourceName = opts.resourceName;
197
188
  }
198
- return TooManyTagsException;
199
- }(__BaseException));
200
- export { TooManyTagsException };
201
- export var AppIntegrationsConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
202
- export var AssistantAssociationInputDataFilterSensitiveLog = function (obj) {
203
- var _a;
189
+ }
190
+ export const AppIntegrationsConfigurationFilterSensitiveLog = (obj) => ({
191
+ ...obj,
192
+ });
193
+ export const AssistantAssociationInputDataFilterSensitiveLog = (obj) => {
204
194
  if (obj.knowledgeBaseId !== undefined)
205
195
  return { knowledgeBaseId: obj.knowledgeBaseId };
206
196
  if (obj.$unknown !== undefined)
207
- return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
197
+ return { [obj.$unknown[0]]: "UNKNOWN" };
208
198
  };
209
- export var CreateAssistantAssociationRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.association && { association: AssistantAssociationInputDataFilterSensitiveLog(obj.association) }))); };
210
- export var KnowledgeBaseAssociationDataFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
211
- export var AssistantAssociationOutputDataFilterSensitiveLog = function (obj) {
212
- var _a;
199
+ export const CreateAssistantAssociationRequestFilterSensitiveLog = (obj) => ({
200
+ ...obj,
201
+ ...(obj.association && { association: AssistantAssociationInputDataFilterSensitiveLog(obj.association) }),
202
+ });
203
+ export const KnowledgeBaseAssociationDataFilterSensitiveLog = (obj) => ({
204
+ ...obj,
205
+ });
206
+ export const AssistantAssociationOutputDataFilterSensitiveLog = (obj) => {
213
207
  if (obj.knowledgeBaseAssociation !== undefined)
214
208
  return { knowledgeBaseAssociation: KnowledgeBaseAssociationDataFilterSensitiveLog(obj.knowledgeBaseAssociation) };
215
209
  if (obj.$unknown !== undefined)
216
- return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
210
+ return { [obj.$unknown[0]]: "UNKNOWN" };
217
211
  };
218
- export var AssistantAssociationDataFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.associationData && {
219
- associationData: AssistantAssociationOutputDataFilterSensitiveLog(obj.associationData),
220
- }))); };
221
- export var CreateAssistantAssociationResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.assistantAssociation && {
222
- assistantAssociation: AssistantAssociationDataFilterSensitiveLog(obj.assistantAssociation),
223
- }))); };
224
- export var DeleteAssistantAssociationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
225
- export var DeleteAssistantAssociationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
226
- export var GetAssistantAssociationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
227
- export var GetAssistantAssociationResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.assistantAssociation && {
228
- assistantAssociation: AssistantAssociationDataFilterSensitiveLog(obj.assistantAssociation),
229
- }))); };
230
- export var ListAssistantAssociationsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
231
- export var AssistantAssociationSummaryFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.associationData && {
232
- associationData: AssistantAssociationOutputDataFilterSensitiveLog(obj.associationData),
233
- }))); };
234
- export var ListAssistantAssociationsResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.assistantAssociationSummaries && {
235
- assistantAssociationSummaries: obj.assistantAssociationSummaries.map(function (item) {
236
- return AssistantAssociationSummaryFilterSensitiveLog(item);
212
+ export const AssistantAssociationDataFilterSensitiveLog = (obj) => ({
213
+ ...obj,
214
+ ...(obj.associationData && {
215
+ associationData: AssistantAssociationOutputDataFilterSensitiveLog(obj.associationData),
237
216
  }),
238
- }))); };
239
- export var ServerSideEncryptionConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
240
- export var CreateAssistantRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
241
- export var AssistantDataFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
242
- export var CreateAssistantResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
243
- export var DeleteAssistantRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
244
- export var DeleteAssistantResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
245
- export var GetAssistantRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
246
- export var GetAssistantResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
247
- export var GetRecommendationsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
248
- export var ContentReferenceFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
249
- export var HighlightFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
250
- export var DocumentTextFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.text && { text: SENSITIVE_STRING }))); };
251
- export var DocumentFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.title && { title: DocumentTextFilterSensitiveLog(obj.title) })), (obj.excerpt && { excerpt: DocumentTextFilterSensitiveLog(obj.excerpt) }))); };
252
- export var RecommendationDataFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.document && { document: DocumentFilterSensitiveLog(obj.document) }))); };
253
- export var QueryRecommendationTriggerDataFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.text && { text: SENSITIVE_STRING }))); };
254
- export var RecommendationTriggerDataFilterSensitiveLog = function (obj) {
255
- var _a;
217
+ });
218
+ export const CreateAssistantAssociationResponseFilterSensitiveLog = (obj) => ({
219
+ ...obj,
220
+ ...(obj.assistantAssociation && {
221
+ assistantAssociation: AssistantAssociationDataFilterSensitiveLog(obj.assistantAssociation),
222
+ }),
223
+ });
224
+ export const DeleteAssistantAssociationRequestFilterSensitiveLog = (obj) => ({
225
+ ...obj,
226
+ });
227
+ export const DeleteAssistantAssociationResponseFilterSensitiveLog = (obj) => ({
228
+ ...obj,
229
+ });
230
+ export const GetAssistantAssociationRequestFilterSensitiveLog = (obj) => ({
231
+ ...obj,
232
+ });
233
+ export const GetAssistantAssociationResponseFilterSensitiveLog = (obj) => ({
234
+ ...obj,
235
+ ...(obj.assistantAssociation && {
236
+ assistantAssociation: AssistantAssociationDataFilterSensitiveLog(obj.assistantAssociation),
237
+ }),
238
+ });
239
+ export const ListAssistantAssociationsRequestFilterSensitiveLog = (obj) => ({
240
+ ...obj,
241
+ });
242
+ export const AssistantAssociationSummaryFilterSensitiveLog = (obj) => ({
243
+ ...obj,
244
+ ...(obj.associationData && {
245
+ associationData: AssistantAssociationOutputDataFilterSensitiveLog(obj.associationData),
246
+ }),
247
+ });
248
+ export const ListAssistantAssociationsResponseFilterSensitiveLog = (obj) => ({
249
+ ...obj,
250
+ ...(obj.assistantAssociationSummaries && {
251
+ assistantAssociationSummaries: obj.assistantAssociationSummaries.map((item) => AssistantAssociationSummaryFilterSensitiveLog(item)),
252
+ }),
253
+ });
254
+ export const ServerSideEncryptionConfigurationFilterSensitiveLog = (obj) => ({
255
+ ...obj,
256
+ });
257
+ export const CreateAssistantRequestFilterSensitiveLog = (obj) => ({
258
+ ...obj,
259
+ });
260
+ export const AssistantDataFilterSensitiveLog = (obj) => ({
261
+ ...obj,
262
+ });
263
+ export const CreateAssistantResponseFilterSensitiveLog = (obj) => ({
264
+ ...obj,
265
+ });
266
+ export const DeleteAssistantRequestFilterSensitiveLog = (obj) => ({
267
+ ...obj,
268
+ });
269
+ export const DeleteAssistantResponseFilterSensitiveLog = (obj) => ({
270
+ ...obj,
271
+ });
272
+ export const GetAssistantRequestFilterSensitiveLog = (obj) => ({
273
+ ...obj,
274
+ });
275
+ export const GetAssistantResponseFilterSensitiveLog = (obj) => ({
276
+ ...obj,
277
+ });
278
+ export const GetRecommendationsRequestFilterSensitiveLog = (obj) => ({
279
+ ...obj,
280
+ });
281
+ export const ContentReferenceFilterSensitiveLog = (obj) => ({
282
+ ...obj,
283
+ });
284
+ export const HighlightFilterSensitiveLog = (obj) => ({
285
+ ...obj,
286
+ });
287
+ export const DocumentTextFilterSensitiveLog = (obj) => ({
288
+ ...obj,
289
+ ...(obj.text && { text: SENSITIVE_STRING }),
290
+ });
291
+ export const DocumentFilterSensitiveLog = (obj) => ({
292
+ ...obj,
293
+ ...(obj.title && { title: DocumentTextFilterSensitiveLog(obj.title) }),
294
+ ...(obj.excerpt && { excerpt: DocumentTextFilterSensitiveLog(obj.excerpt) }),
295
+ });
296
+ export const RecommendationDataFilterSensitiveLog = (obj) => ({
297
+ ...obj,
298
+ ...(obj.document && { document: DocumentFilterSensitiveLog(obj.document) }),
299
+ });
300
+ export const QueryRecommendationTriggerDataFilterSensitiveLog = (obj) => ({
301
+ ...obj,
302
+ ...(obj.text && { text: SENSITIVE_STRING }),
303
+ });
304
+ export const RecommendationTriggerDataFilterSensitiveLog = (obj) => {
256
305
  if (obj.query !== undefined)
257
306
  return { query: QueryRecommendationTriggerDataFilterSensitiveLog(obj.query) };
258
307
  if (obj.$unknown !== undefined)
259
- return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
308
+ return { [obj.$unknown[0]]: "UNKNOWN" };
260
309
  };
261
- export var RecommendationTriggerFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.data && { data: RecommendationTriggerDataFilterSensitiveLog(obj.data) }))); };
262
- export var GetRecommendationsResponseFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.recommendations && {
263
- recommendations: obj.recommendations.map(function (item) { return RecommendationDataFilterSensitiveLog(item); }),
264
- })), (obj.triggers && { triggers: obj.triggers.map(function (item) { return RecommendationTriggerFilterSensitiveLog(item); }) }))); };
265
- export var ListAssistantsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
266
- export var AssistantSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
267
- export var ListAssistantsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
268
- export var NotifyRecommendationsReceivedRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
269
- export var NotifyRecommendationsReceivedErrorFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
270
- export var NotifyRecommendationsReceivedResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
271
- export var FeedbackDataFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
272
- export var PutFeedbackRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
273
- export var PutFeedbackResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
274
- export var QueryAssistantRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.queryText && { queryText: SENSITIVE_STRING }))); };
275
- export var ResultDataFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.document && { document: DocumentFilterSensitiveLog(obj.document) }))); };
276
- export var QueryAssistantResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.results && { results: obj.results.map(function (item) { return ResultDataFilterSensitiveLog(item); }) }))); };
277
- export var FilterFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
278
- export var SearchExpressionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
279
- export var SearchSessionsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
280
- export var SessionSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
281
- export var SearchSessionsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
282
- export var CreateSessionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
283
- export var SessionDataFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
284
- export var CreateSessionResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
285
- export var GetSessionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
286
- export var GetSessionResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
287
- export var CreateContentRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
288
- export var ContentDataFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.url && { url: SENSITIVE_STRING }))); };
289
- export var CreateContentResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.content && { content: ContentDataFilterSensitiveLog(obj.content) }))); };
290
- export var DeleteContentRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
291
- export var DeleteContentResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
292
- export var GetContentRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
293
- export var GetContentResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.content && { content: ContentDataFilterSensitiveLog(obj.content) }))); };
294
- export var GetContentSummaryRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
295
- export var ContentSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
296
- export var GetContentSummaryResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
297
- export var ListContentsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
298
- export var ListContentsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
299
- export var UpdateContentRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
300
- export var UpdateContentResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.content && { content: ContentDataFilterSensitiveLog(obj.content) }))); };
301
- export var RenderingConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
302
- export var SourceConfigurationFilterSensitiveLog = function (obj) {
303
- var _a;
310
+ export const RecommendationTriggerFilterSensitiveLog = (obj) => ({
311
+ ...obj,
312
+ ...(obj.data && { data: RecommendationTriggerDataFilterSensitiveLog(obj.data) }),
313
+ });
314
+ export const GetRecommendationsResponseFilterSensitiveLog = (obj) => ({
315
+ ...obj,
316
+ ...(obj.recommendations && {
317
+ recommendations: obj.recommendations.map((item) => RecommendationDataFilterSensitiveLog(item)),
318
+ }),
319
+ ...(obj.triggers && { triggers: obj.triggers.map((item) => RecommendationTriggerFilterSensitiveLog(item)) }),
320
+ });
321
+ export const ListAssistantsRequestFilterSensitiveLog = (obj) => ({
322
+ ...obj,
323
+ });
324
+ export const AssistantSummaryFilterSensitiveLog = (obj) => ({
325
+ ...obj,
326
+ });
327
+ export const ListAssistantsResponseFilterSensitiveLog = (obj) => ({
328
+ ...obj,
329
+ });
330
+ export const NotifyRecommendationsReceivedRequestFilterSensitiveLog = (obj) => ({
331
+ ...obj,
332
+ });
333
+ export const NotifyRecommendationsReceivedErrorFilterSensitiveLog = (obj) => ({
334
+ ...obj,
335
+ });
336
+ export const NotifyRecommendationsReceivedResponseFilterSensitiveLog = (obj) => ({
337
+ ...obj,
338
+ });
339
+ export const QueryAssistantRequestFilterSensitiveLog = (obj) => ({
340
+ ...obj,
341
+ ...(obj.queryText && { queryText: SENSITIVE_STRING }),
342
+ });
343
+ export const ResultDataFilterSensitiveLog = (obj) => ({
344
+ ...obj,
345
+ ...(obj.document && { document: DocumentFilterSensitiveLog(obj.document) }),
346
+ });
347
+ export const QueryAssistantResponseFilterSensitiveLog = (obj) => ({
348
+ ...obj,
349
+ ...(obj.results && { results: obj.results.map((item) => ResultDataFilterSensitiveLog(item)) }),
350
+ });
351
+ export const FilterFilterSensitiveLog = (obj) => ({
352
+ ...obj,
353
+ });
354
+ export const SearchExpressionFilterSensitiveLog = (obj) => ({
355
+ ...obj,
356
+ });
357
+ export const SearchSessionsRequestFilterSensitiveLog = (obj) => ({
358
+ ...obj,
359
+ });
360
+ export const SessionSummaryFilterSensitiveLog = (obj) => ({
361
+ ...obj,
362
+ });
363
+ export const SearchSessionsResponseFilterSensitiveLog = (obj) => ({
364
+ ...obj,
365
+ });
366
+ export const CreateSessionRequestFilterSensitiveLog = (obj) => ({
367
+ ...obj,
368
+ });
369
+ export const SessionDataFilterSensitiveLog = (obj) => ({
370
+ ...obj,
371
+ });
372
+ export const CreateSessionResponseFilterSensitiveLog = (obj) => ({
373
+ ...obj,
374
+ });
375
+ export const GetSessionRequestFilterSensitiveLog = (obj) => ({
376
+ ...obj,
377
+ });
378
+ export const GetSessionResponseFilterSensitiveLog = (obj) => ({
379
+ ...obj,
380
+ });
381
+ export const CreateContentRequestFilterSensitiveLog = (obj) => ({
382
+ ...obj,
383
+ });
384
+ export const ContentDataFilterSensitiveLog = (obj) => ({
385
+ ...obj,
386
+ ...(obj.url && { url: SENSITIVE_STRING }),
387
+ });
388
+ export const CreateContentResponseFilterSensitiveLog = (obj) => ({
389
+ ...obj,
390
+ ...(obj.content && { content: ContentDataFilterSensitiveLog(obj.content) }),
391
+ });
392
+ export const DeleteContentRequestFilterSensitiveLog = (obj) => ({
393
+ ...obj,
394
+ });
395
+ export const DeleteContentResponseFilterSensitiveLog = (obj) => ({
396
+ ...obj,
397
+ });
398
+ export const GetContentRequestFilterSensitiveLog = (obj) => ({
399
+ ...obj,
400
+ });
401
+ export const GetContentResponseFilterSensitiveLog = (obj) => ({
402
+ ...obj,
403
+ ...(obj.content && { content: ContentDataFilterSensitiveLog(obj.content) }),
404
+ });
405
+ export const GetContentSummaryRequestFilterSensitiveLog = (obj) => ({
406
+ ...obj,
407
+ });
408
+ export const ContentSummaryFilterSensitiveLog = (obj) => ({
409
+ ...obj,
410
+ });
411
+ export const GetContentSummaryResponseFilterSensitiveLog = (obj) => ({
412
+ ...obj,
413
+ });
414
+ export const ListContentsRequestFilterSensitiveLog = (obj) => ({
415
+ ...obj,
416
+ });
417
+ export const ListContentsResponseFilterSensitiveLog = (obj) => ({
418
+ ...obj,
419
+ });
420
+ export const UpdateContentRequestFilterSensitiveLog = (obj) => ({
421
+ ...obj,
422
+ });
423
+ export const UpdateContentResponseFilterSensitiveLog = (obj) => ({
424
+ ...obj,
425
+ ...(obj.content && { content: ContentDataFilterSensitiveLog(obj.content) }),
426
+ });
427
+ export const RenderingConfigurationFilterSensitiveLog = (obj) => ({
428
+ ...obj,
429
+ });
430
+ export const SourceConfigurationFilterSensitiveLog = (obj) => {
304
431
  if (obj.appIntegrations !== undefined)
305
432
  return { appIntegrations: AppIntegrationsConfigurationFilterSensitiveLog(obj.appIntegrations) };
306
433
  if (obj.$unknown !== undefined)
307
- return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
434
+ return { [obj.$unknown[0]]: "UNKNOWN" };
308
435
  };
309
- export var CreateKnowledgeBaseRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.sourceConfiguration && {
310
- sourceConfiguration: SourceConfigurationFilterSensitiveLog(obj.sourceConfiguration),
311
- }))); };
312
- export var KnowledgeBaseDataFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.sourceConfiguration && {
313
- sourceConfiguration: SourceConfigurationFilterSensitiveLog(obj.sourceConfiguration),
314
- }))); };
315
- export var CreateKnowledgeBaseResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.knowledgeBase && { knowledgeBase: KnowledgeBaseDataFilterSensitiveLog(obj.knowledgeBase) }))); };
316
- export var DeleteKnowledgeBaseRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
317
- export var DeleteKnowledgeBaseResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
318
- export var GetKnowledgeBaseRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
319
- export var GetKnowledgeBaseResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.knowledgeBase && { knowledgeBase: KnowledgeBaseDataFilterSensitiveLog(obj.knowledgeBase) }))); };
320
- export var ListKnowledgeBasesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
321
- export var KnowledgeBaseSummaryFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.sourceConfiguration && {
322
- sourceConfiguration: SourceConfigurationFilterSensitiveLog(obj.sourceConfiguration),
323
- }))); };
324
- export var ListKnowledgeBasesResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.knowledgeBaseSummaries && {
325
- knowledgeBaseSummaries: obj.knowledgeBaseSummaries.map(function (item) { return KnowledgeBaseSummaryFilterSensitiveLog(item); }),
326
- }))); };
327
- export var RemoveKnowledgeBaseTemplateUriRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
328
- export var RemoveKnowledgeBaseTemplateUriResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
329
- export var SearchContentRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
330
- export var SearchContentResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
331
- export var StartContentUploadRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
332
- export var StartContentUploadResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.url && { url: SENSITIVE_STRING }))); };
333
- export var UpdateKnowledgeBaseTemplateUriRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
334
- export var UpdateKnowledgeBaseTemplateUriResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.knowledgeBase && { knowledgeBase: KnowledgeBaseDataFilterSensitiveLog(obj.knowledgeBase) }))); };
335
- export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
336
- export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
337
- export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
338
- export var TagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
339
- export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
340
- export var UntagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
436
+ export const CreateKnowledgeBaseRequestFilterSensitiveLog = (obj) => ({
437
+ ...obj,
438
+ ...(obj.sourceConfiguration && {
439
+ sourceConfiguration: SourceConfigurationFilterSensitiveLog(obj.sourceConfiguration),
440
+ }),
441
+ });
442
+ export const KnowledgeBaseDataFilterSensitiveLog = (obj) => ({
443
+ ...obj,
444
+ ...(obj.sourceConfiguration && {
445
+ sourceConfiguration: SourceConfigurationFilterSensitiveLog(obj.sourceConfiguration),
446
+ }),
447
+ });
448
+ export const CreateKnowledgeBaseResponseFilterSensitiveLog = (obj) => ({
449
+ ...obj,
450
+ ...(obj.knowledgeBase && { knowledgeBase: KnowledgeBaseDataFilterSensitiveLog(obj.knowledgeBase) }),
451
+ });
452
+ export const DeleteKnowledgeBaseRequestFilterSensitiveLog = (obj) => ({
453
+ ...obj,
454
+ });
455
+ export const DeleteKnowledgeBaseResponseFilterSensitiveLog = (obj) => ({
456
+ ...obj,
457
+ });
458
+ export const GetKnowledgeBaseRequestFilterSensitiveLog = (obj) => ({
459
+ ...obj,
460
+ });
461
+ export const GetKnowledgeBaseResponseFilterSensitiveLog = (obj) => ({
462
+ ...obj,
463
+ ...(obj.knowledgeBase && { knowledgeBase: KnowledgeBaseDataFilterSensitiveLog(obj.knowledgeBase) }),
464
+ });
465
+ export const ListKnowledgeBasesRequestFilterSensitiveLog = (obj) => ({
466
+ ...obj,
467
+ });
468
+ export const KnowledgeBaseSummaryFilterSensitiveLog = (obj) => ({
469
+ ...obj,
470
+ ...(obj.sourceConfiguration && {
471
+ sourceConfiguration: SourceConfigurationFilterSensitiveLog(obj.sourceConfiguration),
472
+ }),
473
+ });
474
+ export const ListKnowledgeBasesResponseFilterSensitiveLog = (obj) => ({
475
+ ...obj,
476
+ ...(obj.knowledgeBaseSummaries && {
477
+ knowledgeBaseSummaries: obj.knowledgeBaseSummaries.map((item) => KnowledgeBaseSummaryFilterSensitiveLog(item)),
478
+ }),
479
+ });
480
+ export const RemoveKnowledgeBaseTemplateUriRequestFilterSensitiveLog = (obj) => ({
481
+ ...obj,
482
+ });
483
+ export const RemoveKnowledgeBaseTemplateUriResponseFilterSensitiveLog = (obj) => ({
484
+ ...obj,
485
+ });
486
+ export const SearchContentRequestFilterSensitiveLog = (obj) => ({
487
+ ...obj,
488
+ });
489
+ export const SearchContentResponseFilterSensitiveLog = (obj) => ({
490
+ ...obj,
491
+ });
492
+ export const StartContentUploadRequestFilterSensitiveLog = (obj) => ({
493
+ ...obj,
494
+ });
495
+ export const StartContentUploadResponseFilterSensitiveLog = (obj) => ({
496
+ ...obj,
497
+ ...(obj.url && { url: SENSITIVE_STRING }),
498
+ });
499
+ export const UpdateKnowledgeBaseTemplateUriRequestFilterSensitiveLog = (obj) => ({
500
+ ...obj,
501
+ });
502
+ export const UpdateKnowledgeBaseTemplateUriResponseFilterSensitiveLog = (obj) => ({
503
+ ...obj,
504
+ ...(obj.knowledgeBase && { knowledgeBase: KnowledgeBaseDataFilterSensitiveLog(obj.knowledgeBase) }),
505
+ });
506
+ export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
507
+ ...obj,
508
+ });
509
+ export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
510
+ ...obj,
511
+ });
512
+ export const TagResourceRequestFilterSensitiveLog = (obj) => ({
513
+ ...obj,
514
+ });
515
+ export const TagResourceResponseFilterSensitiveLog = (obj) => ({
516
+ ...obj,
517
+ });
518
+ export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
519
+ ...obj,
520
+ });
521
+ export const UntagResourceResponseFilterSensitiveLog = (obj) => ({
522
+ ...obj,
523
+ });