@aws-sdk/client-qconnect 3.693.0 → 3.696.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/README.md +112 -0
- package/dist-cjs/index.js +1279 -149
- package/dist-es/QConnect.js +28 -0
- package/dist-es/commands/ActivateMessageTemplateCommand.js +22 -0
- package/dist-es/commands/CreateMessageTemplateAttachmentCommand.js +23 -0
- package/dist-es/commands/CreateMessageTemplateCommand.js +23 -0
- package/dist-es/commands/CreateMessageTemplateVersionCommand.js +23 -0
- package/dist-es/commands/DeactivateMessageTemplateCommand.js +22 -0
- package/dist-es/commands/DeleteMessageTemplateAttachmentCommand.js +22 -0
- package/dist-es/commands/DeleteMessageTemplateCommand.js +22 -0
- package/dist-es/commands/GetMessageTemplateCommand.js +23 -0
- package/dist-es/commands/GetRecommendationsCommand.js +1 -1
- package/dist-es/commands/ListMessageTemplateVersionsCommand.js +22 -0
- package/dist-es/commands/ListMessageTemplatesCommand.js +22 -0
- package/dist-es/commands/QueryAssistantCommand.js +2 -1
- package/dist-es/commands/RenderMessageTemplateCommand.js +23 -0
- package/dist-es/commands/SearchMessageTemplatesCommand.js +23 -0
- package/dist-es/commands/SearchQuickResponsesCommand.js +1 -1
- package/dist-es/commands/StartContentUploadCommand.js +1 -1
- package/dist-es/commands/StartImportJobCommand.js +1 -1
- package/dist-es/commands/UpdateKnowledgeBaseTemplateUriCommand.js +1 -1
- package/dist-es/commands/UpdateMessageTemplateCommand.js +23 -0
- package/dist-es/commands/UpdateMessageTemplateMetadataCommand.js +23 -0
- package/dist-es/commands/index.js +14 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +280 -152
- package/dist-es/models/models_1.js +138 -0
- package/dist-es/pagination/ListMessageTemplateVersionsPaginator.js +4 -0
- package/dist-es/pagination/ListMessageTemplatesPaginator.js +4 -0
- package/dist-es/pagination/SearchMessageTemplatesPaginator.js +4 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +527 -5
- package/dist-types/QConnect.d.ts +98 -0
- package/dist-types/QConnectClient.d.ts +16 -2
- package/dist-types/commands/ActivateMessageTemplateCommand.d.ts +96 -0
- package/dist-types/commands/CreateMessageTemplateAttachmentCommand.d.ts +109 -0
- package/dist-types/commands/CreateMessageTemplateCommand.d.ts +347 -0
- package/dist-types/commands/CreateMessageTemplateVersionCommand.d.ts +247 -0
- package/dist-types/commands/DeactivateMessageTemplateCommand.d.ts +95 -0
- package/dist-types/commands/DeleteMessageTemplateAttachmentCommand.d.ts +91 -0
- package/dist-types/commands/DeleteMessageTemplateCommand.d.ts +92 -0
- package/dist-types/commands/GetMessageTemplateCommand.d.ts +231 -0
- package/dist-types/commands/GetRecommendationsCommand.d.ts +2 -1
- package/dist-types/commands/ListMessageTemplateVersionsCommand.d.ts +99 -0
- package/dist-types/commands/ListMessageTemplatesCommand.d.ts +104 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/QueryAssistantCommand.d.ts +2 -1
- package/dist-types/commands/RemoveKnowledgeBaseTemplateUriCommand.d.ts +2 -1
- package/dist-types/commands/RenderMessageTemplateCommand.d.ts +206 -0
- package/dist-types/commands/SearchContentCommand.d.ts +1 -1
- package/dist-types/commands/SearchMessageTemplatesCommand.d.ts +138 -0
- package/dist-types/commands/SearchQuickResponsesCommand.d.ts +1 -1
- package/dist-types/commands/StartContentUploadCommand.d.ts +1 -1
- package/dist-types/commands/StartImportJobCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateKnowledgeBaseTemplateUriCommand.d.ts +1 -1
- package/dist-types/commands/UpdateMessageTemplateCommand.d.ts +332 -0
- package/dist-types/commands/UpdateMessageTemplateMetadataCommand.d.ts +233 -0
- package/dist-types/commands/index.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1639 -983
- package/dist-types/models/models_1.d.ts +1256 -0
- package/dist-types/pagination/ListMessageTemplateVersionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListMessageTemplatesPaginator.d.ts +7 -0
- package/dist-types/pagination/SearchMessageTemplatesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +126 -0
- package/dist-types/ts3.4/QConnect.d.ts +238 -0
- package/dist-types/ts3.4/QConnectClient.d.ts +84 -0
- package/dist-types/ts3.4/commands/ActivateMessageTemplateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateMessageTemplateAttachmentCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateMessageTemplateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateMessageTemplateVersionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeactivateMessageTemplateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteMessageTemplateAttachmentCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteMessageTemplateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetMessageTemplateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetRecommendationsCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/ListMessageTemplateVersionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListMessageTemplatesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/QueryAssistantCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/RemoveKnowledgeBaseTemplateUriCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/RenderMessageTemplateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/SearchContentCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/SearchMessageTemplatesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/SearchQuickResponsesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartContentUploadCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartImportJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateKnowledgeBaseTemplateUriCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateMessageTemplateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateMessageTemplateMetadataCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +14 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +466 -284
- package/dist-types/ts3.4/models/models_1.d.ts +349 -0
- package/dist-types/ts3.4/pagination/ListMessageTemplateVersionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListMessageTemplatesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/SearchMessageTemplatesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +168 -0
- package/package.json +35 -35
|
@@ -24,6 +24,44 @@ export class ConflictException extends __BaseException {
|
|
|
24
24
|
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
28
|
+
constructor(opts) {
|
|
29
|
+
super({
|
|
30
|
+
name: "ResourceNotFoundException",
|
|
31
|
+
$fault: "client",
|
|
32
|
+
...opts,
|
|
33
|
+
});
|
|
34
|
+
this.name = "ResourceNotFoundException";
|
|
35
|
+
this.$fault = "client";
|
|
36
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
37
|
+
this.resourceName = opts.resourceName;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export class ThrottlingException extends __BaseException {
|
|
41
|
+
constructor(opts) {
|
|
42
|
+
super({
|
|
43
|
+
name: "ThrottlingException",
|
|
44
|
+
$fault: "client",
|
|
45
|
+
...opts,
|
|
46
|
+
});
|
|
47
|
+
this.name = "ThrottlingException";
|
|
48
|
+
this.$fault = "client";
|
|
49
|
+
this.$retryable = {};
|
|
50
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
export class ValidationException extends __BaseException {
|
|
54
|
+
constructor(opts) {
|
|
55
|
+
super({
|
|
56
|
+
name: "ValidationException",
|
|
57
|
+
$fault: "client",
|
|
58
|
+
...opts,
|
|
59
|
+
});
|
|
60
|
+
this.name = "ValidationException";
|
|
61
|
+
this.$fault = "client";
|
|
62
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
27
65
|
export var OrCondition;
|
|
28
66
|
(function (OrCondition) {
|
|
29
67
|
OrCondition.visit = (value, visitor) => {
|
|
@@ -91,19 +129,6 @@ export const Status = {
|
|
|
91
129
|
DELETE_FAILED: "DELETE_FAILED",
|
|
92
130
|
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
93
131
|
};
|
|
94
|
-
export class ResourceNotFoundException extends __BaseException {
|
|
95
|
-
constructor(opts) {
|
|
96
|
-
super({
|
|
97
|
-
name: "ResourceNotFoundException",
|
|
98
|
-
$fault: "client",
|
|
99
|
-
...opts,
|
|
100
|
-
});
|
|
101
|
-
this.name = "ResourceNotFoundException";
|
|
102
|
-
this.$fault = "client";
|
|
103
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
104
|
-
this.resourceName = opts.resourceName;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
132
|
export class ServiceQuotaExceededException extends __BaseException {
|
|
108
133
|
constructor(opts) {
|
|
109
134
|
super({
|
|
@@ -116,31 +141,6 @@ export class ServiceQuotaExceededException extends __BaseException {
|
|
|
116
141
|
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
117
142
|
}
|
|
118
143
|
}
|
|
119
|
-
export class ThrottlingException extends __BaseException {
|
|
120
|
-
constructor(opts) {
|
|
121
|
-
super({
|
|
122
|
-
name: "ThrottlingException",
|
|
123
|
-
$fault: "client",
|
|
124
|
-
...opts,
|
|
125
|
-
});
|
|
126
|
-
this.name = "ThrottlingException";
|
|
127
|
-
this.$fault = "client";
|
|
128
|
-
this.$retryable = {};
|
|
129
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
export class ValidationException extends __BaseException {
|
|
133
|
-
constructor(opts) {
|
|
134
|
-
super({
|
|
135
|
-
name: "ValidationException",
|
|
136
|
-
$fault: "client",
|
|
137
|
-
...opts,
|
|
138
|
-
});
|
|
139
|
-
this.name = "ValidationException";
|
|
140
|
-
this.$fault = "client";
|
|
141
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
144
|
export const AIPromptAPIFormat = {
|
|
145
145
|
ANTHROPIC_CLAUDE_MESSAGES: "ANTHROPIC_CLAUDE_MESSAGES",
|
|
146
146
|
ANTHROPIC_CLAUDE_TEXT_COMPLETIONS: "ANTHROPIC_CLAUDE_TEXT_COMPLETIONS",
|
|
@@ -315,6 +315,10 @@ export var RuntimeSessionDataValue;
|
|
|
315
315
|
export const SessionDataNamespace = {
|
|
316
316
|
Custom: "Custom",
|
|
317
317
|
};
|
|
318
|
+
export const ChannelSubtype = {
|
|
319
|
+
EMAIL: "EMAIL",
|
|
320
|
+
SMS: "SMS",
|
|
321
|
+
};
|
|
318
322
|
export const ChunkingStrategy = {
|
|
319
323
|
FIXED_SIZE: "FIXED_SIZE",
|
|
320
324
|
HIERARCHICAL: "HIERARCHICAL",
|
|
@@ -361,6 +365,9 @@ export class PreconditionFailedException extends __BaseException {
|
|
|
361
365
|
Object.setPrototypeOf(this, PreconditionFailedException.prototype);
|
|
362
366
|
}
|
|
363
367
|
}
|
|
368
|
+
export const ContentDisposition = {
|
|
369
|
+
ATTACHMENT: "ATTACHMENT",
|
|
370
|
+
};
|
|
364
371
|
export const KnowledgeBaseType = {
|
|
365
372
|
CUSTOM: "CUSTOM",
|
|
366
373
|
EXTERNAL: "EXTERNAL",
|
|
@@ -407,6 +414,30 @@ export const KnowledgeBaseStatus = {
|
|
|
407
414
|
DELETE_FAILED: "DELETE_FAILED",
|
|
408
415
|
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
409
416
|
};
|
|
417
|
+
export var MessageTemplateBodyContentProvider;
|
|
418
|
+
(function (MessageTemplateBodyContentProvider) {
|
|
419
|
+
MessageTemplateBodyContentProvider.visit = (value, visitor) => {
|
|
420
|
+
if (value.content !== undefined)
|
|
421
|
+
return visitor.content(value.content);
|
|
422
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
423
|
+
};
|
|
424
|
+
})(MessageTemplateBodyContentProvider || (MessageTemplateBodyContentProvider = {}));
|
|
425
|
+
export var MessageTemplateContentProvider;
|
|
426
|
+
(function (MessageTemplateContentProvider) {
|
|
427
|
+
MessageTemplateContentProvider.visit = (value, visitor) => {
|
|
428
|
+
if (value.email !== undefined)
|
|
429
|
+
return visitor.email(value.email);
|
|
430
|
+
if (value.sms !== undefined)
|
|
431
|
+
return visitor.sms(value.sms);
|
|
432
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
433
|
+
};
|
|
434
|
+
})(MessageTemplateContentProvider || (MessageTemplateContentProvider = {}));
|
|
435
|
+
export const MessageTemplateAttributeType = {
|
|
436
|
+
AGENT: "AGENT",
|
|
437
|
+
CUSTOM: "CUSTOM",
|
|
438
|
+
CUSTOMER_PROFILE: "CUSTOMER_PROFILE",
|
|
439
|
+
SYSTEM: "SYSTEM",
|
|
440
|
+
};
|
|
410
441
|
export var QuickResponseDataProvider;
|
|
411
442
|
(function (QuickResponseDataProvider) {
|
|
412
443
|
QuickResponseDataProvider.visit = (value, visitor) => {
|
|
@@ -447,50 +478,11 @@ export const ImportJobStatus = {
|
|
|
447
478
|
FAILED: "FAILED",
|
|
448
479
|
START_IN_PROGRESS: "START_IN_PROGRESS",
|
|
449
480
|
};
|
|
450
|
-
export const
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
ASC: "ASC",
|
|
456
|
-
DESC: "DESC",
|
|
457
|
-
};
|
|
458
|
-
export const QuickResponseQueryOperator = {
|
|
459
|
-
CONTAINS: "CONTAINS",
|
|
460
|
-
CONTAINS_AND_PREFIX: "CONTAINS_AND_PREFIX",
|
|
461
|
-
};
|
|
462
|
-
export const Priority = {
|
|
463
|
-
HIGH: "HIGH",
|
|
464
|
-
LOW: "LOW",
|
|
465
|
-
MEDIUM: "MEDIUM",
|
|
466
|
-
};
|
|
467
|
-
export class TooManyTagsException extends __BaseException {
|
|
468
|
-
constructor(opts) {
|
|
469
|
-
super({
|
|
470
|
-
name: "TooManyTagsException",
|
|
471
|
-
$fault: "client",
|
|
472
|
-
...opts,
|
|
473
|
-
});
|
|
474
|
-
this.name = "TooManyTagsException";
|
|
475
|
-
this.$fault = "client";
|
|
476
|
-
Object.setPrototypeOf(this, TooManyTagsException.prototype);
|
|
477
|
-
this.resourceName = opts.resourceName;
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
export var DataDetails;
|
|
481
|
-
(function (DataDetails) {
|
|
482
|
-
DataDetails.visit = (value, visitor) => {
|
|
483
|
-
if (value.contentData !== undefined)
|
|
484
|
-
return visitor.contentData(value.contentData);
|
|
485
|
-
if (value.generativeData !== undefined)
|
|
486
|
-
return visitor.generativeData(value.generativeData);
|
|
487
|
-
if (value.intentDetectedData !== undefined)
|
|
488
|
-
return visitor.intentDetectedData(value.intentDetectedData);
|
|
489
|
-
if (value.sourceContentData !== undefined)
|
|
490
|
-
return visitor.sourceContentData(value.sourceContentData);
|
|
491
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
492
|
-
};
|
|
493
|
-
})(DataDetails || (DataDetails = {}));
|
|
481
|
+
export const AgentAttributesFilterSensitiveLog = (obj) => ({
|
|
482
|
+
...obj,
|
|
483
|
+
...(obj.firstName && { firstName: SENSITIVE_STRING }),
|
|
484
|
+
...(obj.lastName && { lastName: SENSITIVE_STRING }),
|
|
485
|
+
});
|
|
494
486
|
export const TextFullAIPromptEditTemplateConfigurationFilterSensitiveLog = (obj) => ({
|
|
495
487
|
...obj,
|
|
496
488
|
...(obj.text && { text: SENSITIVE_STRING }),
|
|
@@ -665,17 +657,189 @@ export const CreateKnowledgeBaseResponseFilterSensitiveLog = (obj) => ({
|
|
|
665
657
|
...obj,
|
|
666
658
|
...(obj.knowledgeBase && { knowledgeBase: KnowledgeBaseDataFilterSensitiveLog(obj.knowledgeBase) }),
|
|
667
659
|
});
|
|
668
|
-
export const
|
|
660
|
+
export const MessageTemplateBodyContentProviderFilterSensitiveLog = (obj) => {
|
|
669
661
|
if (obj.content !== undefined)
|
|
670
662
|
return { content: SENSITIVE_STRING };
|
|
671
663
|
if (obj.$unknown !== undefined)
|
|
672
664
|
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
673
665
|
};
|
|
666
|
+
export const EmailMessageTemplateContentBodyFilterSensitiveLog = (obj) => ({
|
|
667
|
+
...obj,
|
|
668
|
+
...(obj.plainText && { plainText: MessageTemplateBodyContentProviderFilterSensitiveLog(obj.plainText) }),
|
|
669
|
+
...(obj.html && { html: MessageTemplateBodyContentProviderFilterSensitiveLog(obj.html) }),
|
|
670
|
+
});
|
|
671
|
+
export const EmailHeaderFilterSensitiveLog = (obj) => ({
|
|
672
|
+
...obj,
|
|
673
|
+
...(obj.value && { value: SENSITIVE_STRING }),
|
|
674
|
+
});
|
|
675
|
+
export const EmailMessageTemplateContentFilterSensitiveLog = (obj) => ({
|
|
676
|
+
...obj,
|
|
677
|
+
...(obj.subject && { subject: SENSITIVE_STRING }),
|
|
678
|
+
...(obj.body && { body: EmailMessageTemplateContentBodyFilterSensitiveLog(obj.body) }),
|
|
679
|
+
...(obj.headers && { headers: obj.headers.map((item) => EmailHeaderFilterSensitiveLog(item)) }),
|
|
680
|
+
});
|
|
681
|
+
export const SMSMessageTemplateContentBodyFilterSensitiveLog = (obj) => ({
|
|
682
|
+
...obj,
|
|
683
|
+
...(obj.plainText && { plainText: MessageTemplateBodyContentProviderFilterSensitiveLog(obj.plainText) }),
|
|
684
|
+
});
|
|
685
|
+
export const SMSMessageTemplateContentFilterSensitiveLog = (obj) => ({
|
|
686
|
+
...obj,
|
|
687
|
+
...(obj.body && { body: SMSMessageTemplateContentBodyFilterSensitiveLog(obj.body) }),
|
|
688
|
+
});
|
|
689
|
+
export const MessageTemplateContentProviderFilterSensitiveLog = (obj) => {
|
|
690
|
+
if (obj.email !== undefined)
|
|
691
|
+
return { email: EmailMessageTemplateContentFilterSensitiveLog(obj.email) };
|
|
692
|
+
if (obj.sms !== undefined)
|
|
693
|
+
return { sms: SMSMessageTemplateContentFilterSensitiveLog(obj.sms) };
|
|
694
|
+
if (obj.$unknown !== undefined)
|
|
695
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
696
|
+
};
|
|
697
|
+
export const CustomerProfileAttributesFilterSensitiveLog = (obj) => ({
|
|
698
|
+
...obj,
|
|
699
|
+
...(obj.profileId && { profileId: SENSITIVE_STRING }),
|
|
700
|
+
...(obj.profileARN && { profileARN: SENSITIVE_STRING }),
|
|
701
|
+
...(obj.firstName && { firstName: SENSITIVE_STRING }),
|
|
702
|
+
...(obj.middleName && { middleName: SENSITIVE_STRING }),
|
|
703
|
+
...(obj.lastName && { lastName: SENSITIVE_STRING }),
|
|
704
|
+
...(obj.accountNumber && { accountNumber: SENSITIVE_STRING }),
|
|
705
|
+
...(obj.emailAddress && { emailAddress: SENSITIVE_STRING }),
|
|
706
|
+
...(obj.phoneNumber && { phoneNumber: SENSITIVE_STRING }),
|
|
707
|
+
...(obj.additionalInformation && { additionalInformation: SENSITIVE_STRING }),
|
|
708
|
+
...(obj.partyType && { partyType: SENSITIVE_STRING }),
|
|
709
|
+
...(obj.businessName && { businessName: SENSITIVE_STRING }),
|
|
710
|
+
...(obj.birthDate && { birthDate: SENSITIVE_STRING }),
|
|
711
|
+
...(obj.gender && { gender: SENSITIVE_STRING }),
|
|
712
|
+
...(obj.mobilePhoneNumber && { mobilePhoneNumber: SENSITIVE_STRING }),
|
|
713
|
+
...(obj.homePhoneNumber && { homePhoneNumber: SENSITIVE_STRING }),
|
|
714
|
+
...(obj.businessPhoneNumber && { businessPhoneNumber: SENSITIVE_STRING }),
|
|
715
|
+
...(obj.businessEmailAddress && { businessEmailAddress: SENSITIVE_STRING }),
|
|
716
|
+
...(obj.address1 && { address1: SENSITIVE_STRING }),
|
|
717
|
+
...(obj.address2 && { address2: SENSITIVE_STRING }),
|
|
718
|
+
...(obj.address3 && { address3: SENSITIVE_STRING }),
|
|
719
|
+
...(obj.address4 && { address4: SENSITIVE_STRING }),
|
|
720
|
+
...(obj.city && { city: SENSITIVE_STRING }),
|
|
721
|
+
...(obj.county && { county: SENSITIVE_STRING }),
|
|
722
|
+
...(obj.country && { country: SENSITIVE_STRING }),
|
|
723
|
+
...(obj.postalCode && { postalCode: SENSITIVE_STRING }),
|
|
724
|
+
...(obj.province && { province: SENSITIVE_STRING }),
|
|
725
|
+
...(obj.state && { state: SENSITIVE_STRING }),
|
|
726
|
+
...(obj.shippingAddress1 && { shippingAddress1: SENSITIVE_STRING }),
|
|
727
|
+
...(obj.shippingAddress2 && { shippingAddress2: SENSITIVE_STRING }),
|
|
728
|
+
...(obj.shippingAddress3 && { shippingAddress3: SENSITIVE_STRING }),
|
|
729
|
+
...(obj.shippingAddress4 && { shippingAddress4: SENSITIVE_STRING }),
|
|
730
|
+
...(obj.shippingCity && { shippingCity: SENSITIVE_STRING }),
|
|
731
|
+
...(obj.shippingCounty && { shippingCounty: SENSITIVE_STRING }),
|
|
732
|
+
...(obj.shippingCountry && { shippingCountry: SENSITIVE_STRING }),
|
|
733
|
+
...(obj.shippingPostalCode && { shippingPostalCode: SENSITIVE_STRING }),
|
|
734
|
+
...(obj.shippingProvince && { shippingProvince: SENSITIVE_STRING }),
|
|
735
|
+
...(obj.shippingState && { shippingState: SENSITIVE_STRING }),
|
|
736
|
+
...(obj.mailingAddress1 && { mailingAddress1: SENSITIVE_STRING }),
|
|
737
|
+
...(obj.mailingAddress2 && { mailingAddress2: SENSITIVE_STRING }),
|
|
738
|
+
...(obj.mailingAddress3 && { mailingAddress3: SENSITIVE_STRING }),
|
|
739
|
+
...(obj.mailingAddress4 && { mailingAddress4: SENSITIVE_STRING }),
|
|
740
|
+
...(obj.mailingCity && { mailingCity: SENSITIVE_STRING }),
|
|
741
|
+
...(obj.mailingCounty && { mailingCounty: SENSITIVE_STRING }),
|
|
742
|
+
...(obj.mailingCountry && { mailingCountry: SENSITIVE_STRING }),
|
|
743
|
+
...(obj.mailingPostalCode && { mailingPostalCode: SENSITIVE_STRING }),
|
|
744
|
+
...(obj.mailingProvince && { mailingProvince: SENSITIVE_STRING }),
|
|
745
|
+
...(obj.mailingState && { mailingState: SENSITIVE_STRING }),
|
|
746
|
+
...(obj.billingAddress1 && { billingAddress1: SENSITIVE_STRING }),
|
|
747
|
+
...(obj.billingAddress2 && { billingAddress2: SENSITIVE_STRING }),
|
|
748
|
+
...(obj.billingAddress3 && { billingAddress3: SENSITIVE_STRING }),
|
|
749
|
+
...(obj.billingAddress4 && { billingAddress4: SENSITIVE_STRING }),
|
|
750
|
+
...(obj.billingCity && { billingCity: SENSITIVE_STRING }),
|
|
751
|
+
...(obj.billingCounty && { billingCounty: SENSITIVE_STRING }),
|
|
752
|
+
...(obj.billingCountry && { billingCountry: SENSITIVE_STRING }),
|
|
753
|
+
...(obj.billingPostalCode && { billingPostalCode: SENSITIVE_STRING }),
|
|
754
|
+
...(obj.billingProvince && { billingProvince: SENSITIVE_STRING }),
|
|
755
|
+
...(obj.billingState && { billingState: SENSITIVE_STRING }),
|
|
756
|
+
...(obj.custom && { custom: SENSITIVE_STRING }),
|
|
757
|
+
});
|
|
758
|
+
export const SystemEndpointAttributesFilterSensitiveLog = (obj) => ({
|
|
759
|
+
...obj,
|
|
760
|
+
...(obj.address && { address: SENSITIVE_STRING }),
|
|
761
|
+
});
|
|
762
|
+
export const SystemAttributesFilterSensitiveLog = (obj) => ({
|
|
763
|
+
...obj,
|
|
764
|
+
...(obj.name && { name: SENSITIVE_STRING }),
|
|
765
|
+
...(obj.customerEndpoint && { customerEndpoint: SystemEndpointAttributesFilterSensitiveLog(obj.customerEndpoint) }),
|
|
766
|
+
...(obj.systemEndpoint && { systemEndpoint: SystemEndpointAttributesFilterSensitiveLog(obj.systemEndpoint) }),
|
|
767
|
+
});
|
|
768
|
+
export const MessageTemplateAttributesFilterSensitiveLog = (obj) => ({
|
|
769
|
+
...obj,
|
|
770
|
+
...(obj.systemAttributes && { systemAttributes: SystemAttributesFilterSensitiveLog(obj.systemAttributes) }),
|
|
771
|
+
...(obj.agentAttributes && { agentAttributes: AgentAttributesFilterSensitiveLog(obj.agentAttributes) }),
|
|
772
|
+
...(obj.customerProfileAttributes && {
|
|
773
|
+
customerProfileAttributes: CustomerProfileAttributesFilterSensitiveLog(obj.customerProfileAttributes),
|
|
774
|
+
}),
|
|
775
|
+
...(obj.customAttributes && { customAttributes: SENSITIVE_STRING }),
|
|
776
|
+
});
|
|
674
777
|
export const GroupingConfigurationFilterSensitiveLog = (obj) => ({
|
|
675
778
|
...obj,
|
|
676
779
|
...(obj.criteria && { criteria: SENSITIVE_STRING }),
|
|
677
780
|
...(obj.values && { values: SENSITIVE_STRING }),
|
|
678
781
|
});
|
|
782
|
+
export const CreateMessageTemplateRequestFilterSensitiveLog = (obj) => ({
|
|
783
|
+
...obj,
|
|
784
|
+
...(obj.content && { content: MessageTemplateContentProviderFilterSensitiveLog(obj.content) }),
|
|
785
|
+
...(obj.defaultAttributes && {
|
|
786
|
+
defaultAttributes: MessageTemplateAttributesFilterSensitiveLog(obj.defaultAttributes),
|
|
787
|
+
}),
|
|
788
|
+
...(obj.groupingConfiguration && {
|
|
789
|
+
groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration),
|
|
790
|
+
}),
|
|
791
|
+
});
|
|
792
|
+
export const MessageTemplateDataFilterSensitiveLog = (obj) => ({
|
|
793
|
+
...obj,
|
|
794
|
+
...(obj.content && { content: MessageTemplateContentProviderFilterSensitiveLog(obj.content) }),
|
|
795
|
+
...(obj.groupingConfiguration && {
|
|
796
|
+
groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration),
|
|
797
|
+
}),
|
|
798
|
+
...(obj.defaultAttributes && {
|
|
799
|
+
defaultAttributes: MessageTemplateAttributesFilterSensitiveLog(obj.defaultAttributes),
|
|
800
|
+
}),
|
|
801
|
+
});
|
|
802
|
+
export const CreateMessageTemplateResponseFilterSensitiveLog = (obj) => ({
|
|
803
|
+
...obj,
|
|
804
|
+
...(obj.messageTemplate && { messageTemplate: MessageTemplateDataFilterSensitiveLog(obj.messageTemplate) }),
|
|
805
|
+
});
|
|
806
|
+
export const CreateMessageTemplateAttachmentRequestFilterSensitiveLog = (obj) => ({
|
|
807
|
+
...obj,
|
|
808
|
+
...(obj.name && { name: SENSITIVE_STRING }),
|
|
809
|
+
...(obj.body && { body: SENSITIVE_STRING }),
|
|
810
|
+
});
|
|
811
|
+
export const MessageTemplateAttachmentFilterSensitiveLog = (obj) => ({
|
|
812
|
+
...obj,
|
|
813
|
+
...(obj.name && { name: SENSITIVE_STRING }),
|
|
814
|
+
...(obj.url && { url: SENSITIVE_STRING }),
|
|
815
|
+
});
|
|
816
|
+
export const CreateMessageTemplateAttachmentResponseFilterSensitiveLog = (obj) => ({
|
|
817
|
+
...obj,
|
|
818
|
+
...(obj.attachment && { attachment: MessageTemplateAttachmentFilterSensitiveLog(obj.attachment) }),
|
|
819
|
+
});
|
|
820
|
+
export const ExtendedMessageTemplateDataFilterSensitiveLog = (obj) => ({
|
|
821
|
+
...obj,
|
|
822
|
+
...(obj.content && { content: MessageTemplateContentProviderFilterSensitiveLog(obj.content) }),
|
|
823
|
+
...(obj.groupingConfiguration && {
|
|
824
|
+
groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration),
|
|
825
|
+
}),
|
|
826
|
+
...(obj.defaultAttributes && {
|
|
827
|
+
defaultAttributes: MessageTemplateAttributesFilterSensitiveLog(obj.defaultAttributes),
|
|
828
|
+
}),
|
|
829
|
+
...(obj.attachments && {
|
|
830
|
+
attachments: obj.attachments.map((item) => MessageTemplateAttachmentFilterSensitiveLog(item)),
|
|
831
|
+
}),
|
|
832
|
+
});
|
|
833
|
+
export const CreateMessageTemplateVersionResponseFilterSensitiveLog = (obj) => ({
|
|
834
|
+
...obj,
|
|
835
|
+
...(obj.messageTemplate && { messageTemplate: ExtendedMessageTemplateDataFilterSensitiveLog(obj.messageTemplate) }),
|
|
836
|
+
});
|
|
837
|
+
export const QuickResponseDataProviderFilterSensitiveLog = (obj) => {
|
|
838
|
+
if (obj.content !== undefined)
|
|
839
|
+
return { content: SENSITIVE_STRING };
|
|
840
|
+
if (obj.$unknown !== undefined)
|
|
841
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
842
|
+
};
|
|
679
843
|
export const CreateQuickResponseRequestFilterSensitiveLog = (obj) => ({
|
|
680
844
|
...obj,
|
|
681
845
|
...(obj.content && { content: QuickResponseDataProviderFilterSensitiveLog(obj.content) }),
|
|
@@ -721,6 +885,10 @@ export const GetKnowledgeBaseResponseFilterSensitiveLog = (obj) => ({
|
|
|
721
885
|
...obj,
|
|
722
886
|
...(obj.knowledgeBase && { knowledgeBase: KnowledgeBaseDataFilterSensitiveLog(obj.knowledgeBase) }),
|
|
723
887
|
});
|
|
888
|
+
export const GetMessageTemplateResponseFilterSensitiveLog = (obj) => ({
|
|
889
|
+
...obj,
|
|
890
|
+
...(obj.messageTemplate && { messageTemplate: ExtendedMessageTemplateDataFilterSensitiveLog(obj.messageTemplate) }),
|
|
891
|
+
});
|
|
724
892
|
export const GetQuickResponseResponseFilterSensitiveLog = (obj) => ({
|
|
725
893
|
...obj,
|
|
726
894
|
...(obj.quickResponse && { quickResponse: QuickResponseDataFilterSensitiveLog(obj.quickResponse) }),
|
|
@@ -737,98 +905,58 @@ export const ListKnowledgeBasesResponseFilterSensitiveLog = (obj) => ({
|
|
|
737
905
|
knowledgeBaseSummaries: obj.knowledgeBaseSummaries.map((item) => KnowledgeBaseSummaryFilterSensitiveLog(item)),
|
|
738
906
|
}),
|
|
739
907
|
});
|
|
740
|
-
export const
|
|
908
|
+
export const RenderMessageTemplateRequestFilterSensitiveLog = (obj) => ({
|
|
741
909
|
...obj,
|
|
742
|
-
...(obj.
|
|
910
|
+
...(obj.attributes && { attributes: MessageTemplateAttributesFilterSensitiveLog(obj.attributes) }),
|
|
743
911
|
});
|
|
744
|
-
export const
|
|
912
|
+
export const RenderMessageTemplateResponseFilterSensitiveLog = (obj) => ({
|
|
745
913
|
...obj,
|
|
746
|
-
...(obj.
|
|
747
|
-
|
|
914
|
+
...(obj.content && { content: MessageTemplateContentProviderFilterSensitiveLog(obj.content) }),
|
|
915
|
+
...(obj.attributesNotInterpolated && { attributesNotInterpolated: SENSITIVE_STRING }),
|
|
916
|
+
...(obj.attachments && {
|
|
917
|
+
attachments: obj.attachments.map((item) => MessageTemplateAttachmentFilterSensitiveLog(item)),
|
|
748
918
|
}),
|
|
749
919
|
});
|
|
750
|
-
export const
|
|
920
|
+
export const UpdateMessageTemplateRequestFilterSensitiveLog = (obj) => ({
|
|
751
921
|
...obj,
|
|
752
|
-
...(obj.content && { content:
|
|
753
|
-
...(obj.
|
|
754
|
-
|
|
922
|
+
...(obj.content && { content: MessageTemplateContentProviderFilterSensitiveLog(obj.content) }),
|
|
923
|
+
...(obj.defaultAttributes && {
|
|
924
|
+
defaultAttributes: MessageTemplateAttributesFilterSensitiveLog(obj.defaultAttributes),
|
|
755
925
|
}),
|
|
756
|
-
...(obj.channels && { channels: SENSITIVE_STRING }),
|
|
757
|
-
});
|
|
758
|
-
export const UpdateQuickResponseResponseFilterSensitiveLog = (obj) => ({
|
|
759
|
-
...obj,
|
|
760
|
-
...(obj.quickResponse && { quickResponse: QuickResponseDataFilterSensitiveLog(obj.quickResponse) }),
|
|
761
926
|
});
|
|
762
|
-
export const
|
|
927
|
+
export const UpdateMessageTemplateResponseFilterSensitiveLog = (obj) => ({
|
|
763
928
|
...obj,
|
|
764
|
-
...(obj.
|
|
929
|
+
...(obj.messageTemplate && { messageTemplate: MessageTemplateDataFilterSensitiveLog(obj.messageTemplate) }),
|
|
765
930
|
});
|
|
766
|
-
export const
|
|
931
|
+
export const UpdateMessageTemplateMetadataRequestFilterSensitiveLog = (obj) => ({
|
|
767
932
|
...obj,
|
|
768
|
-
...(obj.contents && { contents: QuickResponseContentsFilterSensitiveLog(obj.contents) }),
|
|
769
933
|
...(obj.groupingConfiguration && {
|
|
770
934
|
groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration),
|
|
771
935
|
}),
|
|
772
|
-
...(obj.channels && { channels: SENSITIVE_STRING }),
|
|
773
|
-
...(obj.attributesNotInterpolated && { attributesNotInterpolated: SENSITIVE_STRING }),
|
|
774
|
-
...(obj.attributesInterpolated && { attributesInterpolated: SENSITIVE_STRING }),
|
|
775
|
-
});
|
|
776
|
-
export const SearchQuickResponsesResponseFilterSensitiveLog = (obj) => ({
|
|
777
|
-
...obj,
|
|
778
|
-
...(obj.results && { results: obj.results.map((item) => QuickResponseSearchResultDataFilterSensitiveLog(item)) }),
|
|
779
|
-
});
|
|
780
|
-
export const StartContentUploadResponseFilterSensitiveLog = (obj) => ({
|
|
781
|
-
...obj,
|
|
782
|
-
...(obj.url && { url: SENSITIVE_STRING }),
|
|
783
|
-
});
|
|
784
|
-
export const StartImportJobResponseFilterSensitiveLog = (obj) => ({
|
|
785
|
-
...obj,
|
|
786
|
-
...(obj.importJob && { importJob: ImportJobDataFilterSensitiveLog(obj.importJob) }),
|
|
787
|
-
});
|
|
788
|
-
export const UpdateKnowledgeBaseTemplateUriResponseFilterSensitiveLog = (obj) => ({
|
|
789
|
-
...obj,
|
|
790
|
-
...(obj.knowledgeBase && { knowledgeBase: KnowledgeBaseDataFilterSensitiveLog(obj.knowledgeBase) }),
|
|
791
|
-
});
|
|
792
|
-
export const DataDetailsFilterSensitiveLog = (obj) => {
|
|
793
|
-
if (obj.contentData !== undefined)
|
|
794
|
-
return { contentData: ContentDataDetailsFilterSensitiveLog(obj.contentData) };
|
|
795
|
-
if (obj.generativeData !== undefined)
|
|
796
|
-
return { generativeData: GenerativeDataDetailsFilterSensitiveLog(obj.generativeData) };
|
|
797
|
-
if (obj.intentDetectedData !== undefined)
|
|
798
|
-
return { intentDetectedData: IntentDetectedDataDetailsFilterSensitiveLog(obj.intentDetectedData) };
|
|
799
|
-
if (obj.sourceContentData !== undefined)
|
|
800
|
-
return { sourceContentData: SourceContentDataDetailsFilterSensitiveLog(obj.sourceContentData) };
|
|
801
|
-
if (obj.$unknown !== undefined)
|
|
802
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
803
|
-
};
|
|
804
|
-
export const DataSummaryFilterSensitiveLog = (obj) => ({
|
|
805
|
-
...obj,
|
|
806
|
-
...(obj.reference && { reference: obj.reference }),
|
|
807
|
-
...(obj.details && { details: DataDetailsFilterSensitiveLog(obj.details) }),
|
|
808
936
|
});
|
|
809
|
-
export const
|
|
937
|
+
export const UpdateMessageTemplateMetadataResponseFilterSensitiveLog = (obj) => ({
|
|
810
938
|
...obj,
|
|
811
|
-
...(obj.
|
|
812
|
-
...(obj.references && { references: obj.references.map((item) => DataSummaryFilterSensitiveLog(item)) }),
|
|
939
|
+
...(obj.messageTemplate && { messageTemplate: MessageTemplateDataFilterSensitiveLog(obj.messageTemplate) }),
|
|
813
940
|
});
|
|
814
|
-
export const
|
|
941
|
+
export const QuickResponseSummaryFilterSensitiveLog = (obj) => ({
|
|
815
942
|
...obj,
|
|
816
|
-
...(obj.
|
|
817
|
-
...(obj.data && { data: DataSummaryFilterSensitiveLog(obj.data) }),
|
|
943
|
+
...(obj.channels && { channels: SENSITIVE_STRING }),
|
|
818
944
|
});
|
|
819
|
-
export const
|
|
945
|
+
export const ListQuickResponsesResponseFilterSensitiveLog = (obj) => ({
|
|
820
946
|
...obj,
|
|
821
|
-
...(obj.
|
|
822
|
-
|
|
947
|
+
...(obj.quickResponseSummaries && {
|
|
948
|
+
quickResponseSummaries: obj.quickResponseSummaries.map((item) => QuickResponseSummaryFilterSensitiveLog(item)),
|
|
949
|
+
}),
|
|
823
950
|
});
|
|
824
|
-
export const
|
|
951
|
+
export const UpdateQuickResponseRequestFilterSensitiveLog = (obj) => ({
|
|
825
952
|
...obj,
|
|
826
|
-
...(obj.
|
|
827
|
-
|
|
953
|
+
...(obj.content && { content: QuickResponseDataProviderFilterSensitiveLog(obj.content) }),
|
|
954
|
+
...(obj.groupingConfiguration && {
|
|
955
|
+
groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration),
|
|
828
956
|
}),
|
|
829
|
-
...(obj.
|
|
957
|
+
...(obj.channels && { channels: SENSITIVE_STRING }),
|
|
830
958
|
});
|
|
831
|
-
export const
|
|
959
|
+
export const UpdateQuickResponseResponseFilterSensitiveLog = (obj) => ({
|
|
832
960
|
...obj,
|
|
833
|
-
...(obj.
|
|
961
|
+
...(obj.quickResponse && { quickResponse: QuickResponseDataFilterSensitiveLog(obj.quickResponse) }),
|
|
834
962
|
});
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
|
+
import { ContentDataDetailsFilterSensitiveLog, DocumentFilterSensitiveLog, GroupingConfigurationFilterSensitiveLog, ImportJobDataFilterSensitiveLog, IntentDetectedDataDetailsFilterSensitiveLog, KnowledgeBaseDataFilterSensitiveLog, QuickResponseContentsFilterSensitiveLog, RecommendationTriggerFilterSensitiveLog, SourceContentDataDetailsFilterSensitiveLog, } from "./models_0";
|
|
3
|
+
import { QConnectServiceException as __BaseException } from "./QConnectServiceException";
|
|
4
|
+
export const MessageTemplateFilterOperator = {
|
|
5
|
+
EQUALS: "EQUALS",
|
|
6
|
+
PREFIX: "PREFIX",
|
|
7
|
+
};
|
|
8
|
+
export const Order = {
|
|
9
|
+
ASC: "ASC",
|
|
10
|
+
DESC: "DESC",
|
|
11
|
+
};
|
|
12
|
+
export const MessageTemplateQueryOperator = {
|
|
13
|
+
CONTAINS: "CONTAINS",
|
|
14
|
+
CONTAINS_AND_PREFIX: "CONTAINS_AND_PREFIX",
|
|
15
|
+
};
|
|
16
|
+
export const Priority = {
|
|
17
|
+
HIGH: "HIGH",
|
|
18
|
+
LOW: "LOW",
|
|
19
|
+
MEDIUM: "MEDIUM",
|
|
20
|
+
};
|
|
21
|
+
export const QuickResponseFilterOperator = {
|
|
22
|
+
EQUALS: "EQUALS",
|
|
23
|
+
PREFIX: "PREFIX",
|
|
24
|
+
};
|
|
25
|
+
export const QuickResponseQueryOperator = {
|
|
26
|
+
CONTAINS: "CONTAINS",
|
|
27
|
+
CONTAINS_AND_PREFIX: "CONTAINS_AND_PREFIX",
|
|
28
|
+
};
|
|
29
|
+
export class TooManyTagsException extends __BaseException {
|
|
30
|
+
constructor(opts) {
|
|
31
|
+
super({
|
|
32
|
+
name: "TooManyTagsException",
|
|
33
|
+
$fault: "client",
|
|
34
|
+
...opts,
|
|
35
|
+
});
|
|
36
|
+
this.name = "TooManyTagsException";
|
|
37
|
+
this.$fault = "client";
|
|
38
|
+
Object.setPrototypeOf(this, TooManyTagsException.prototype);
|
|
39
|
+
this.resourceName = opts.resourceName;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export var DataDetails;
|
|
43
|
+
(function (DataDetails) {
|
|
44
|
+
DataDetails.visit = (value, visitor) => {
|
|
45
|
+
if (value.contentData !== undefined)
|
|
46
|
+
return visitor.contentData(value.contentData);
|
|
47
|
+
if (value.generativeData !== undefined)
|
|
48
|
+
return visitor.generativeData(value.generativeData);
|
|
49
|
+
if (value.intentDetectedData !== undefined)
|
|
50
|
+
return visitor.intentDetectedData(value.intentDetectedData);
|
|
51
|
+
if (value.sourceContentData !== undefined)
|
|
52
|
+
return visitor.sourceContentData(value.sourceContentData);
|
|
53
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
54
|
+
};
|
|
55
|
+
})(DataDetails || (DataDetails = {}));
|
|
56
|
+
export const MessageTemplateSearchResultDataFilterSensitiveLog = (obj) => ({
|
|
57
|
+
...obj,
|
|
58
|
+
...(obj.groupingConfiguration && {
|
|
59
|
+
groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration),
|
|
60
|
+
}),
|
|
61
|
+
});
|
|
62
|
+
export const SearchMessageTemplatesResponseFilterSensitiveLog = (obj) => ({
|
|
63
|
+
...obj,
|
|
64
|
+
...(obj.results && { results: obj.results.map((item) => MessageTemplateSearchResultDataFilterSensitiveLog(item)) }),
|
|
65
|
+
});
|
|
66
|
+
export const SearchQuickResponsesRequestFilterSensitiveLog = (obj) => ({
|
|
67
|
+
...obj,
|
|
68
|
+
...(obj.attributes && { attributes: SENSITIVE_STRING }),
|
|
69
|
+
});
|
|
70
|
+
export const QuickResponseSearchResultDataFilterSensitiveLog = (obj) => ({
|
|
71
|
+
...obj,
|
|
72
|
+
...(obj.contents && { contents: QuickResponseContentsFilterSensitiveLog(obj.contents) }),
|
|
73
|
+
...(obj.groupingConfiguration && {
|
|
74
|
+
groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration),
|
|
75
|
+
}),
|
|
76
|
+
...(obj.channels && { channels: SENSITIVE_STRING }),
|
|
77
|
+
...(obj.attributesNotInterpolated && { attributesNotInterpolated: SENSITIVE_STRING }),
|
|
78
|
+
...(obj.attributesInterpolated && { attributesInterpolated: SENSITIVE_STRING }),
|
|
79
|
+
});
|
|
80
|
+
export const SearchQuickResponsesResponseFilterSensitiveLog = (obj) => ({
|
|
81
|
+
...obj,
|
|
82
|
+
...(obj.results && { results: obj.results.map((item) => QuickResponseSearchResultDataFilterSensitiveLog(item)) }),
|
|
83
|
+
});
|
|
84
|
+
export const StartContentUploadResponseFilterSensitiveLog = (obj) => ({
|
|
85
|
+
...obj,
|
|
86
|
+
...(obj.url && { url: SENSITIVE_STRING }),
|
|
87
|
+
});
|
|
88
|
+
export const StartImportJobResponseFilterSensitiveLog = (obj) => ({
|
|
89
|
+
...obj,
|
|
90
|
+
...(obj.importJob && { importJob: ImportJobDataFilterSensitiveLog(obj.importJob) }),
|
|
91
|
+
});
|
|
92
|
+
export const UpdateKnowledgeBaseTemplateUriResponseFilterSensitiveLog = (obj) => ({
|
|
93
|
+
...obj,
|
|
94
|
+
...(obj.knowledgeBase && { knowledgeBase: KnowledgeBaseDataFilterSensitiveLog(obj.knowledgeBase) }),
|
|
95
|
+
});
|
|
96
|
+
export const DataDetailsFilterSensitiveLog = (obj) => {
|
|
97
|
+
if (obj.contentData !== undefined)
|
|
98
|
+
return { contentData: ContentDataDetailsFilterSensitiveLog(obj.contentData) };
|
|
99
|
+
if (obj.generativeData !== undefined)
|
|
100
|
+
return { generativeData: GenerativeDataDetailsFilterSensitiveLog(obj.generativeData) };
|
|
101
|
+
if (obj.intentDetectedData !== undefined)
|
|
102
|
+
return { intentDetectedData: IntentDetectedDataDetailsFilterSensitiveLog(obj.intentDetectedData) };
|
|
103
|
+
if (obj.sourceContentData !== undefined)
|
|
104
|
+
return { sourceContentData: SourceContentDataDetailsFilterSensitiveLog(obj.sourceContentData) };
|
|
105
|
+
if (obj.$unknown !== undefined)
|
|
106
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
107
|
+
};
|
|
108
|
+
export const DataSummaryFilterSensitiveLog = (obj) => ({
|
|
109
|
+
...obj,
|
|
110
|
+
...(obj.reference && { reference: obj.reference }),
|
|
111
|
+
...(obj.details && { details: DataDetailsFilterSensitiveLog(obj.details) }),
|
|
112
|
+
});
|
|
113
|
+
export const GenerativeDataDetailsFilterSensitiveLog = (obj) => ({
|
|
114
|
+
...obj,
|
|
115
|
+
...(obj.completion && { completion: SENSITIVE_STRING }),
|
|
116
|
+
...(obj.references && { references: obj.references.map((item) => DataSummaryFilterSensitiveLog(item)) }),
|
|
117
|
+
});
|
|
118
|
+
export const RecommendationDataFilterSensitiveLog = (obj) => ({
|
|
119
|
+
...obj,
|
|
120
|
+
...(obj.document && { document: DocumentFilterSensitiveLog(obj.document) }),
|
|
121
|
+
...(obj.data && { data: DataSummaryFilterSensitiveLog(obj.data) }),
|
|
122
|
+
});
|
|
123
|
+
export const ResultDataFilterSensitiveLog = (obj) => ({
|
|
124
|
+
...obj,
|
|
125
|
+
...(obj.document && { document: DocumentFilterSensitiveLog(obj.document) }),
|
|
126
|
+
...(obj.data && { data: DataSummaryFilterSensitiveLog(obj.data) }),
|
|
127
|
+
});
|
|
128
|
+
export const GetRecommendationsResponseFilterSensitiveLog = (obj) => ({
|
|
129
|
+
...obj,
|
|
130
|
+
...(obj.recommendations && {
|
|
131
|
+
recommendations: obj.recommendations.map((item) => RecommendationDataFilterSensitiveLog(item)),
|
|
132
|
+
}),
|
|
133
|
+
...(obj.triggers && { triggers: obj.triggers.map((item) => RecommendationTriggerFilterSensitiveLog(item)) }),
|
|
134
|
+
});
|
|
135
|
+
export const QueryAssistantResponseFilterSensitiveLog = (obj) => ({
|
|
136
|
+
...obj,
|
|
137
|
+
...(obj.results && { results: obj.results.map((item) => ResultDataFilterSensitiveLog(item)) }),
|
|
138
|
+
});
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListMessageTemplateVersionsCommand, } from "../commands/ListMessageTemplateVersionsCommand";
|
|
3
|
+
import { QConnectClient } from "../QConnectClient";
|
|
4
|
+
export const paginateListMessageTemplateVersions = createPaginator(QConnectClient, ListMessageTemplateVersionsCommand, "nextToken", "nextToken", "maxResults");
|