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