@aws-sdk/client-wisdom 3.927.0 → 3.929.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/dist-cjs/index.js +1907 -1970
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/WisdomClient.js +2 -0
- package/dist-es/commands/CreateAssistantAssociationCommand.js +3 -9
- package/dist-es/commands/CreateAssistantCommand.js +3 -9
- package/dist-es/commands/CreateContentCommand.js +3 -10
- package/dist-es/commands/CreateKnowledgeBaseCommand.js +3 -9
- package/dist-es/commands/CreateQuickResponseCommand.js +3 -10
- package/dist-es/commands/CreateSessionCommand.js +3 -9
- package/dist-es/commands/DeleteAssistantAssociationCommand.js +3 -9
- package/dist-es/commands/DeleteAssistantCommand.js +3 -9
- package/dist-es/commands/DeleteContentCommand.js +3 -9
- package/dist-es/commands/DeleteImportJobCommand.js +3 -9
- package/dist-es/commands/DeleteKnowledgeBaseCommand.js +3 -9
- package/dist-es/commands/DeleteQuickResponseCommand.js +3 -9
- package/dist-es/commands/GetAssistantAssociationCommand.js +3 -9
- package/dist-es/commands/GetAssistantCommand.js +3 -9
- package/dist-es/commands/GetContentCommand.js +3 -10
- package/dist-es/commands/GetContentSummaryCommand.js +3 -9
- package/dist-es/commands/GetImportJobCommand.js +3 -10
- package/dist-es/commands/GetKnowledgeBaseCommand.js +3 -9
- package/dist-es/commands/GetQuickResponseCommand.js +3 -10
- package/dist-es/commands/GetRecommendationsCommand.js +3 -10
- package/dist-es/commands/GetSessionCommand.js +3 -9
- package/dist-es/commands/ListAssistantAssociationsCommand.js +3 -9
- package/dist-es/commands/ListAssistantsCommand.js +3 -9
- package/dist-es/commands/ListContentsCommand.js +3 -9
- package/dist-es/commands/ListImportJobsCommand.js +3 -9
- package/dist-es/commands/ListKnowledgeBasesCommand.js +3 -9
- package/dist-es/commands/ListQuickResponsesCommand.js +3 -10
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/NotifyRecommendationsReceivedCommand.js +3 -9
- package/dist-es/commands/QueryAssistantCommand.js +3 -10
- package/dist-es/commands/RemoveKnowledgeBaseTemplateUriCommand.js +3 -9
- package/dist-es/commands/SearchContentCommand.js +3 -9
- package/dist-es/commands/SearchQuickResponsesCommand.js +3 -10
- package/dist-es/commands/SearchSessionsCommand.js +3 -9
- package/dist-es/commands/StartContentUploadCommand.js +3 -10
- package/dist-es/commands/StartImportJobCommand.js +3 -10
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateContentCommand.js +3 -10
- package/dist-es/commands/UpdateKnowledgeBaseTemplateUriCommand.js +3 -9
- package/dist-es/commands/UpdateQuickResponseCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -167
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +1812 -0
- package/dist-types/WisdomClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -132
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +215 -0
- package/dist-types/ts3.4/WisdomClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -91
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +222 -0
- package/package.json +5 -6
- package/dist-es/protocols/Aws_restJson1.js +0 -1466
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -371
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -497
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
1
|
import { WisdomServiceException as __BaseException } from "./WisdomServiceException";
|
|
3
2
|
export class AccessDeniedException extends __BaseException {
|
|
4
3
|
name = "AccessDeniedException";
|
|
@@ -256,169 +255,3 @@ export class TooManyTagsException extends __BaseException {
|
|
|
256
255
|
this.resourceName = opts.resourceName;
|
|
257
256
|
}
|
|
258
257
|
}
|
|
259
|
-
export const DocumentTextFilterSensitiveLog = (obj) => ({
|
|
260
|
-
...obj,
|
|
261
|
-
...(obj.text && { text: SENSITIVE_STRING }),
|
|
262
|
-
});
|
|
263
|
-
export const DocumentFilterSensitiveLog = (obj) => ({
|
|
264
|
-
...obj,
|
|
265
|
-
...(obj.title && { title: DocumentTextFilterSensitiveLog(obj.title) }),
|
|
266
|
-
...(obj.excerpt && { excerpt: DocumentTextFilterSensitiveLog(obj.excerpt) }),
|
|
267
|
-
});
|
|
268
|
-
export const RecommendationDataFilterSensitiveLog = (obj) => ({
|
|
269
|
-
...obj,
|
|
270
|
-
...(obj.document && { document: DocumentFilterSensitiveLog(obj.document) }),
|
|
271
|
-
});
|
|
272
|
-
export const QueryRecommendationTriggerDataFilterSensitiveLog = (obj) => ({
|
|
273
|
-
...obj,
|
|
274
|
-
...(obj.text && { text: SENSITIVE_STRING }),
|
|
275
|
-
});
|
|
276
|
-
export const RecommendationTriggerDataFilterSensitiveLog = (obj) => {
|
|
277
|
-
if (obj.query !== undefined)
|
|
278
|
-
return { query: QueryRecommendationTriggerDataFilterSensitiveLog(obj.query) };
|
|
279
|
-
if (obj.$unknown !== undefined)
|
|
280
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
281
|
-
};
|
|
282
|
-
export const RecommendationTriggerFilterSensitiveLog = (obj) => ({
|
|
283
|
-
...obj,
|
|
284
|
-
...(obj.data && { data: RecommendationTriggerDataFilterSensitiveLog(obj.data) }),
|
|
285
|
-
});
|
|
286
|
-
export const GetRecommendationsResponseFilterSensitiveLog = (obj) => ({
|
|
287
|
-
...obj,
|
|
288
|
-
...(obj.recommendations && {
|
|
289
|
-
recommendations: obj.recommendations.map((item) => RecommendationDataFilterSensitiveLog(item)),
|
|
290
|
-
}),
|
|
291
|
-
...(obj.triggers && { triggers: obj.triggers.map((item) => RecommendationTriggerFilterSensitiveLog(item)) }),
|
|
292
|
-
});
|
|
293
|
-
export const QueryAssistantRequestFilterSensitiveLog = (obj) => ({
|
|
294
|
-
...obj,
|
|
295
|
-
...(obj.queryText && { queryText: SENSITIVE_STRING }),
|
|
296
|
-
});
|
|
297
|
-
export const ResultDataFilterSensitiveLog = (obj) => ({
|
|
298
|
-
...obj,
|
|
299
|
-
...(obj.document && { document: DocumentFilterSensitiveLog(obj.document) }),
|
|
300
|
-
});
|
|
301
|
-
export const QueryAssistantResponseFilterSensitiveLog = (obj) => ({
|
|
302
|
-
...obj,
|
|
303
|
-
...(obj.results && { results: obj.results.map((item) => ResultDataFilterSensitiveLog(item)) }),
|
|
304
|
-
});
|
|
305
|
-
export const ContentDataFilterSensitiveLog = (obj) => ({
|
|
306
|
-
...obj,
|
|
307
|
-
...(obj.url && { url: SENSITIVE_STRING }),
|
|
308
|
-
});
|
|
309
|
-
export const CreateContentResponseFilterSensitiveLog = (obj) => ({
|
|
310
|
-
...obj,
|
|
311
|
-
...(obj.content && { content: ContentDataFilterSensitiveLog(obj.content) }),
|
|
312
|
-
});
|
|
313
|
-
export const GetContentResponseFilterSensitiveLog = (obj) => ({
|
|
314
|
-
...obj,
|
|
315
|
-
...(obj.content && { content: ContentDataFilterSensitiveLog(obj.content) }),
|
|
316
|
-
});
|
|
317
|
-
export const UpdateContentResponseFilterSensitiveLog = (obj) => ({
|
|
318
|
-
...obj,
|
|
319
|
-
...(obj.content && { content: ContentDataFilterSensitiveLog(obj.content) }),
|
|
320
|
-
});
|
|
321
|
-
export const QuickResponseDataProviderFilterSensitiveLog = (obj) => {
|
|
322
|
-
if (obj.content !== undefined)
|
|
323
|
-
return { content: SENSITIVE_STRING };
|
|
324
|
-
if (obj.$unknown !== undefined)
|
|
325
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
326
|
-
};
|
|
327
|
-
export const GroupingConfigurationFilterSensitiveLog = (obj) => ({
|
|
328
|
-
...obj,
|
|
329
|
-
...(obj.criteria && { criteria: SENSITIVE_STRING }),
|
|
330
|
-
...(obj.values && { values: SENSITIVE_STRING }),
|
|
331
|
-
});
|
|
332
|
-
export const CreateQuickResponseRequestFilterSensitiveLog = (obj) => ({
|
|
333
|
-
...obj,
|
|
334
|
-
...(obj.content && { content: QuickResponseDataProviderFilterSensitiveLog(obj.content) }),
|
|
335
|
-
...(obj.groupingConfiguration && {
|
|
336
|
-
groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration),
|
|
337
|
-
}),
|
|
338
|
-
...(obj.channels && { channels: SENSITIVE_STRING }),
|
|
339
|
-
});
|
|
340
|
-
export const QuickResponseContentProviderFilterSensitiveLog = (obj) => {
|
|
341
|
-
if (obj.content !== undefined)
|
|
342
|
-
return { content: SENSITIVE_STRING };
|
|
343
|
-
if (obj.$unknown !== undefined)
|
|
344
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
345
|
-
};
|
|
346
|
-
export const QuickResponseContentsFilterSensitiveLog = (obj) => ({
|
|
347
|
-
...obj,
|
|
348
|
-
...(obj.plainText && { plainText: QuickResponseContentProviderFilterSensitiveLog(obj.plainText) }),
|
|
349
|
-
...(obj.markdown && { markdown: QuickResponseContentProviderFilterSensitiveLog(obj.markdown) }),
|
|
350
|
-
});
|
|
351
|
-
export const QuickResponseDataFilterSensitiveLog = (obj) => ({
|
|
352
|
-
...obj,
|
|
353
|
-
...(obj.contents && { contents: QuickResponseContentsFilterSensitiveLog(obj.contents) }),
|
|
354
|
-
...(obj.groupingConfiguration && {
|
|
355
|
-
groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration),
|
|
356
|
-
}),
|
|
357
|
-
...(obj.channels && { channels: SENSITIVE_STRING }),
|
|
358
|
-
});
|
|
359
|
-
export const CreateQuickResponseResponseFilterSensitiveLog = (obj) => ({
|
|
360
|
-
...obj,
|
|
361
|
-
...(obj.quickResponse && { quickResponse: QuickResponseDataFilterSensitiveLog(obj.quickResponse) }),
|
|
362
|
-
});
|
|
363
|
-
export const ImportJobDataFilterSensitiveLog = (obj) => ({
|
|
364
|
-
...obj,
|
|
365
|
-
...(obj.url && { url: SENSITIVE_STRING }),
|
|
366
|
-
...(obj.failedRecordReport && { failedRecordReport: SENSITIVE_STRING }),
|
|
367
|
-
...(obj.externalSourceConfiguration && { externalSourceConfiguration: obj.externalSourceConfiguration }),
|
|
368
|
-
});
|
|
369
|
-
export const GetImportJobResponseFilterSensitiveLog = (obj) => ({
|
|
370
|
-
...obj,
|
|
371
|
-
...(obj.importJob && { importJob: ImportJobDataFilterSensitiveLog(obj.importJob) }),
|
|
372
|
-
});
|
|
373
|
-
export const GetQuickResponseResponseFilterSensitiveLog = (obj) => ({
|
|
374
|
-
...obj,
|
|
375
|
-
...(obj.quickResponse && { quickResponse: QuickResponseDataFilterSensitiveLog(obj.quickResponse) }),
|
|
376
|
-
});
|
|
377
|
-
export const QuickResponseSummaryFilterSensitiveLog = (obj) => ({
|
|
378
|
-
...obj,
|
|
379
|
-
...(obj.channels && { channels: SENSITIVE_STRING }),
|
|
380
|
-
});
|
|
381
|
-
export const ListQuickResponsesResponseFilterSensitiveLog = (obj) => ({
|
|
382
|
-
...obj,
|
|
383
|
-
...(obj.quickResponseSummaries && {
|
|
384
|
-
quickResponseSummaries: obj.quickResponseSummaries.map((item) => QuickResponseSummaryFilterSensitiveLog(item)),
|
|
385
|
-
}),
|
|
386
|
-
});
|
|
387
|
-
export const UpdateQuickResponseRequestFilterSensitiveLog = (obj) => ({
|
|
388
|
-
...obj,
|
|
389
|
-
...(obj.content && { content: QuickResponseDataProviderFilterSensitiveLog(obj.content) }),
|
|
390
|
-
...(obj.groupingConfiguration && {
|
|
391
|
-
groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration),
|
|
392
|
-
}),
|
|
393
|
-
...(obj.channels && { channels: SENSITIVE_STRING }),
|
|
394
|
-
});
|
|
395
|
-
export const UpdateQuickResponseResponseFilterSensitiveLog = (obj) => ({
|
|
396
|
-
...obj,
|
|
397
|
-
...(obj.quickResponse && { quickResponse: QuickResponseDataFilterSensitiveLog(obj.quickResponse) }),
|
|
398
|
-
});
|
|
399
|
-
export const SearchQuickResponsesRequestFilterSensitiveLog = (obj) => ({
|
|
400
|
-
...obj,
|
|
401
|
-
...(obj.attributes && { attributes: SENSITIVE_STRING }),
|
|
402
|
-
});
|
|
403
|
-
export const QuickResponseSearchResultDataFilterSensitiveLog = (obj) => ({
|
|
404
|
-
...obj,
|
|
405
|
-
...(obj.contents && { contents: QuickResponseContentsFilterSensitiveLog(obj.contents) }),
|
|
406
|
-
...(obj.groupingConfiguration && {
|
|
407
|
-
groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration),
|
|
408
|
-
}),
|
|
409
|
-
...(obj.channels && { channels: SENSITIVE_STRING }),
|
|
410
|
-
...(obj.attributesNotInterpolated && { attributesNotInterpolated: SENSITIVE_STRING }),
|
|
411
|
-
...(obj.attributesInterpolated && { attributesInterpolated: SENSITIVE_STRING }),
|
|
412
|
-
});
|
|
413
|
-
export const SearchQuickResponsesResponseFilterSensitiveLog = (obj) => ({
|
|
414
|
-
...obj,
|
|
415
|
-
...(obj.results && { results: obj.results.map((item) => QuickResponseSearchResultDataFilterSensitiveLog(item)) }),
|
|
416
|
-
});
|
|
417
|
-
export const StartContentUploadResponseFilterSensitiveLog = (obj) => ({
|
|
418
|
-
...obj,
|
|
419
|
-
...(obj.url && { url: SENSITIVE_STRING }),
|
|
420
|
-
});
|
|
421
|
-
export const StartImportJobResponseFilterSensitiveLog = (obj) => ({
|
|
422
|
-
...obj,
|
|
423
|
-
...(obj.importJob && { importJob: ImportJobDataFilterSensitiveLog(obj.importJob) }),
|
|
424
|
-
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.wisdom" }),
|
|
25
27
|
serviceId: config?.serviceId ?? "Wisdom",
|
|
26
28
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
29
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|