@aws-sdk/client-qconnect 3.928.0 → 3.930.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 +5185 -5292
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/QConnectClient.js +2 -0
- package/dist-es/commands/ActivateMessageTemplateCommand.js +3 -9
- package/dist-es/commands/CreateAIAgentCommand.js +3 -9
- package/dist-es/commands/CreateAIAgentVersionCommand.js +3 -9
- package/dist-es/commands/CreateAIGuardrailCommand.js +3 -10
- package/dist-es/commands/CreateAIGuardrailVersionCommand.js +3 -10
- package/dist-es/commands/CreateAIPromptCommand.js +3 -10
- package/dist-es/commands/CreateAIPromptVersionCommand.js +3 -10
- package/dist-es/commands/CreateAssistantAssociationCommand.js +3 -9
- package/dist-es/commands/CreateAssistantCommand.js +3 -9
- package/dist-es/commands/CreateContentAssociationCommand.js +3 -9
- package/dist-es/commands/CreateContentCommand.js +3 -10
- package/dist-es/commands/CreateKnowledgeBaseCommand.js +3 -10
- package/dist-es/commands/CreateMessageTemplateAttachmentCommand.js +3 -10
- package/dist-es/commands/CreateMessageTemplateCommand.js +3 -11
- package/dist-es/commands/CreateMessageTemplateVersionCommand.js +3 -10
- package/dist-es/commands/CreateQuickResponseCommand.js +3 -10
- package/dist-es/commands/CreateSessionCommand.js +3 -9
- package/dist-es/commands/DeactivateMessageTemplateCommand.js +3 -9
- package/dist-es/commands/DeleteAIAgentCommand.js +3 -9
- package/dist-es/commands/DeleteAIAgentVersionCommand.js +3 -9
- package/dist-es/commands/DeleteAIGuardrailCommand.js +3 -9
- package/dist-es/commands/DeleteAIGuardrailVersionCommand.js +3 -9
- package/dist-es/commands/DeleteAIPromptCommand.js +3 -9
- package/dist-es/commands/DeleteAIPromptVersionCommand.js +3 -9
- package/dist-es/commands/DeleteAssistantAssociationCommand.js +3 -9
- package/dist-es/commands/DeleteAssistantCommand.js +3 -9
- package/dist-es/commands/DeleteContentAssociationCommand.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/DeleteMessageTemplateAttachmentCommand.js +3 -9
- package/dist-es/commands/DeleteMessageTemplateCommand.js +3 -9
- package/dist-es/commands/DeleteQuickResponseCommand.js +3 -9
- package/dist-es/commands/GetAIAgentCommand.js +3 -9
- package/dist-es/commands/GetAIGuardrailCommand.js +3 -10
- package/dist-es/commands/GetAIPromptCommand.js +3 -10
- package/dist-es/commands/GetAssistantAssociationCommand.js +3 -9
- package/dist-es/commands/GetAssistantCommand.js +3 -9
- package/dist-es/commands/GetContentAssociationCommand.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 -10
- package/dist-es/commands/GetMessageTemplateCommand.js +3 -10
- package/dist-es/commands/GetNextMessageCommand.js +3 -10
- 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/ListAIAgentVersionsCommand.js +3 -9
- package/dist-es/commands/ListAIAgentsCommand.js +3 -9
- package/dist-es/commands/ListAIGuardrailVersionsCommand.js +3 -10
- package/dist-es/commands/ListAIGuardrailsCommand.js +3 -10
- package/dist-es/commands/ListAIPromptVersionsCommand.js +3 -9
- package/dist-es/commands/ListAIPromptsCommand.js +3 -9
- package/dist-es/commands/ListAssistantAssociationsCommand.js +3 -9
- package/dist-es/commands/ListAssistantsCommand.js +3 -9
- package/dist-es/commands/ListContentAssociationsCommand.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 -10
- package/dist-es/commands/ListMessageTemplateVersionsCommand.js +3 -9
- package/dist-es/commands/ListMessageTemplatesCommand.js +3 -9
- package/dist-es/commands/ListMessagesCommand.js +3 -10
- 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/PutFeedbackCommand.js +3 -9
- package/dist-es/commands/QueryAssistantCommand.js +3 -11
- package/dist-es/commands/RemoveAssistantAIAgentCommand.js +3 -9
- package/dist-es/commands/RemoveKnowledgeBaseTemplateUriCommand.js +3 -9
- package/dist-es/commands/RenderMessageTemplateCommand.js +3 -10
- package/dist-es/commands/SearchContentCommand.js +3 -9
- package/dist-es/commands/SearchMessageTemplatesCommand.js +3 -10
- package/dist-es/commands/SearchQuickResponsesCommand.js +3 -10
- package/dist-es/commands/SearchSessionsCommand.js +3 -9
- package/dist-es/commands/SendMessageCommand.js +3 -10
- 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/UpdateAIAgentCommand.js +3 -9
- package/dist-es/commands/UpdateAIGuardrailCommand.js +3 -10
- package/dist-es/commands/UpdateAIPromptCommand.js +3 -10
- package/dist-es/commands/UpdateAssistantAIAgentCommand.js +3 -9
- package/dist-es/commands/UpdateContentCommand.js +3 -10
- package/dist-es/commands/UpdateKnowledgeBaseTemplateUriCommand.js +3 -10
- package/dist-es/commands/UpdateMessageTemplateCommand.js +3 -10
- package/dist-es/commands/UpdateMessageTemplateMetadataCommand.js +3 -10
- package/dist-es/commands/UpdateQuickResponseCommand.js +3 -10
- package/dist-es/commands/UpdateSessionCommand.js +3 -9
- package/dist-es/commands/UpdateSessionDataCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -722
- package/dist-es/models/models_1.js +0 -314
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +4975 -0
- package/dist-types/QConnectClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +80 -352
- package/dist-types/models/models_1.d.ts +12 -191
- 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 +542 -0
- package/dist-types/ts3.4/QConnectClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -269
- package/dist-types/ts3.4/models/models_1.d.ts +0 -141
- 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 +549 -0
- package/package.json +33 -34
- package/dist-es/protocols/Aws_restJson1.js +0 -3456
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -821
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -1097
|
@@ -1,22 +1,4 @@
|
|
|
1
|
-
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
|
-
import { ContentDataDetailsFilterSensitiveLog, DocumentFilterSensitiveLog, EmailOverviewChunkDataDetailsFilterSensitiveLog, EmailResponseChunkDataDetailsFilterSensitiveLog, GroupingConfigurationFilterSensitiveLog, IntentDetectedDataDetailsFilterSensitiveLog, KnowledgeBaseDataFilterSensitiveLog, MessageTemplateAttributesFilterSensitiveLog, MessageTemplateContentProviderFilterSensitiveLog, RecommendationTriggerFilterSensitiveLog, SourceConfigurationFilterSensitiveLog, SourceContentDataDetailsFilterSensitiveLog, } from "./models_0";
|
|
3
1
|
import { QConnectServiceException as __BaseException } from "./QConnectServiceException";
|
|
4
|
-
export var QuickResponseDataProvider;
|
|
5
|
-
(function (QuickResponseDataProvider) {
|
|
6
|
-
QuickResponseDataProvider.visit = (value, visitor) => {
|
|
7
|
-
if (value.content !== undefined)
|
|
8
|
-
return visitor.content(value.content);
|
|
9
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
10
|
-
};
|
|
11
|
-
})(QuickResponseDataProvider || (QuickResponseDataProvider = {}));
|
|
12
|
-
export var QuickResponseContentProvider;
|
|
13
|
-
(function (QuickResponseContentProvider) {
|
|
14
|
-
QuickResponseContentProvider.visit = (value, visitor) => {
|
|
15
|
-
if (value.content !== undefined)
|
|
16
|
-
return visitor.content(value.content);
|
|
17
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
18
|
-
};
|
|
19
|
-
})(QuickResponseContentProvider || (QuickResponseContentProvider = {}));
|
|
20
2
|
export const QuickResponseStatus = {
|
|
21
3
|
CREATED: "CREATED",
|
|
22
4
|
CREATE_FAILED: "CREATE_FAILED",
|
|
@@ -80,299 +62,3 @@ export class TooManyTagsException extends __BaseException {
|
|
|
80
62
|
this.resourceName = opts.resourceName;
|
|
81
63
|
}
|
|
82
64
|
}
|
|
83
|
-
export var DataDetails;
|
|
84
|
-
(function (DataDetails) {
|
|
85
|
-
DataDetails.visit = (value, visitor) => {
|
|
86
|
-
if (value.contentData !== undefined)
|
|
87
|
-
return visitor.contentData(value.contentData);
|
|
88
|
-
if (value.generativeData !== undefined)
|
|
89
|
-
return visitor.generativeData(value.generativeData);
|
|
90
|
-
if (value.intentDetectedData !== undefined)
|
|
91
|
-
return visitor.intentDetectedData(value.intentDetectedData);
|
|
92
|
-
if (value.sourceContentData !== undefined)
|
|
93
|
-
return visitor.sourceContentData(value.sourceContentData);
|
|
94
|
-
if (value.generativeChunkData !== undefined)
|
|
95
|
-
return visitor.generativeChunkData(value.generativeChunkData);
|
|
96
|
-
if (value.emailResponseChunkData !== undefined)
|
|
97
|
-
return visitor.emailResponseChunkData(value.emailResponseChunkData);
|
|
98
|
-
if (value.emailOverviewChunkData !== undefined)
|
|
99
|
-
return visitor.emailOverviewChunkData(value.emailOverviewChunkData);
|
|
100
|
-
if (value.emailGenerativeAnswerChunkData !== undefined)
|
|
101
|
-
return visitor.emailGenerativeAnswerChunkData(value.emailGenerativeAnswerChunkData);
|
|
102
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
103
|
-
};
|
|
104
|
-
})(DataDetails || (DataDetails = {}));
|
|
105
|
-
export const MessageTemplateDataFilterSensitiveLog = (obj) => ({
|
|
106
|
-
...obj,
|
|
107
|
-
...(obj.content && { content: MessageTemplateContentProviderFilterSensitiveLog(obj.content) }),
|
|
108
|
-
...(obj.groupingConfiguration && {
|
|
109
|
-
groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration),
|
|
110
|
-
}),
|
|
111
|
-
...(obj.defaultAttributes && {
|
|
112
|
-
defaultAttributes: MessageTemplateAttributesFilterSensitiveLog(obj.defaultAttributes),
|
|
113
|
-
}),
|
|
114
|
-
});
|
|
115
|
-
export const CreateMessageTemplateResponseFilterSensitiveLog = (obj) => ({
|
|
116
|
-
...obj,
|
|
117
|
-
...(obj.messageTemplate && { messageTemplate: MessageTemplateDataFilterSensitiveLog(obj.messageTemplate) }),
|
|
118
|
-
});
|
|
119
|
-
export const CreateMessageTemplateAttachmentRequestFilterSensitiveLog = (obj) => ({
|
|
120
|
-
...obj,
|
|
121
|
-
...(obj.name && { name: SENSITIVE_STRING }),
|
|
122
|
-
...(obj.body && { body: SENSITIVE_STRING }),
|
|
123
|
-
});
|
|
124
|
-
export const MessageTemplateAttachmentFilterSensitiveLog = (obj) => ({
|
|
125
|
-
...obj,
|
|
126
|
-
...(obj.name && { name: SENSITIVE_STRING }),
|
|
127
|
-
...(obj.url && { url: SENSITIVE_STRING }),
|
|
128
|
-
});
|
|
129
|
-
export const CreateMessageTemplateAttachmentResponseFilterSensitiveLog = (obj) => ({
|
|
130
|
-
...obj,
|
|
131
|
-
...(obj.attachment && { attachment: MessageTemplateAttachmentFilterSensitiveLog(obj.attachment) }),
|
|
132
|
-
});
|
|
133
|
-
export const ExtendedMessageTemplateDataFilterSensitiveLog = (obj) => ({
|
|
134
|
-
...obj,
|
|
135
|
-
...(obj.content && { content: MessageTemplateContentProviderFilterSensitiveLog(obj.content) }),
|
|
136
|
-
...(obj.groupingConfiguration && {
|
|
137
|
-
groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration),
|
|
138
|
-
}),
|
|
139
|
-
...(obj.defaultAttributes && {
|
|
140
|
-
defaultAttributes: MessageTemplateAttributesFilterSensitiveLog(obj.defaultAttributes),
|
|
141
|
-
}),
|
|
142
|
-
...(obj.attachments && {
|
|
143
|
-
attachments: obj.attachments.map((item) => MessageTemplateAttachmentFilterSensitiveLog(item)),
|
|
144
|
-
}),
|
|
145
|
-
});
|
|
146
|
-
export const CreateMessageTemplateVersionResponseFilterSensitiveLog = (obj) => ({
|
|
147
|
-
...obj,
|
|
148
|
-
...(obj.messageTemplate && { messageTemplate: ExtendedMessageTemplateDataFilterSensitiveLog(obj.messageTemplate) }),
|
|
149
|
-
});
|
|
150
|
-
export const QuickResponseDataProviderFilterSensitiveLog = (obj) => {
|
|
151
|
-
if (obj.content !== undefined)
|
|
152
|
-
return { content: SENSITIVE_STRING };
|
|
153
|
-
if (obj.$unknown !== undefined)
|
|
154
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
155
|
-
};
|
|
156
|
-
export const CreateQuickResponseRequestFilterSensitiveLog = (obj) => ({
|
|
157
|
-
...obj,
|
|
158
|
-
...(obj.content && { content: QuickResponseDataProviderFilterSensitiveLog(obj.content) }),
|
|
159
|
-
...(obj.groupingConfiguration && {
|
|
160
|
-
groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration),
|
|
161
|
-
}),
|
|
162
|
-
...(obj.channels && { channels: SENSITIVE_STRING }),
|
|
163
|
-
});
|
|
164
|
-
export const QuickResponseContentProviderFilterSensitiveLog = (obj) => {
|
|
165
|
-
if (obj.content !== undefined)
|
|
166
|
-
return { content: SENSITIVE_STRING };
|
|
167
|
-
if (obj.$unknown !== undefined)
|
|
168
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
169
|
-
};
|
|
170
|
-
export const QuickResponseContentsFilterSensitiveLog = (obj) => ({
|
|
171
|
-
...obj,
|
|
172
|
-
...(obj.plainText && { plainText: QuickResponseContentProviderFilterSensitiveLog(obj.plainText) }),
|
|
173
|
-
...(obj.markdown && { markdown: QuickResponseContentProviderFilterSensitiveLog(obj.markdown) }),
|
|
174
|
-
});
|
|
175
|
-
export const QuickResponseDataFilterSensitiveLog = (obj) => ({
|
|
176
|
-
...obj,
|
|
177
|
-
...(obj.contents && { contents: QuickResponseContentsFilterSensitiveLog(obj.contents) }),
|
|
178
|
-
...(obj.groupingConfiguration && {
|
|
179
|
-
groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration),
|
|
180
|
-
}),
|
|
181
|
-
...(obj.channels && { channels: SENSITIVE_STRING }),
|
|
182
|
-
});
|
|
183
|
-
export const CreateQuickResponseResponseFilterSensitiveLog = (obj) => ({
|
|
184
|
-
...obj,
|
|
185
|
-
...(obj.quickResponse && { quickResponse: QuickResponseDataFilterSensitiveLog(obj.quickResponse) }),
|
|
186
|
-
});
|
|
187
|
-
export const ImportJobDataFilterSensitiveLog = (obj) => ({
|
|
188
|
-
...obj,
|
|
189
|
-
...(obj.url && { url: SENSITIVE_STRING }),
|
|
190
|
-
...(obj.failedRecordReport && { failedRecordReport: SENSITIVE_STRING }),
|
|
191
|
-
...(obj.externalSourceConfiguration && { externalSourceConfiguration: obj.externalSourceConfiguration }),
|
|
192
|
-
});
|
|
193
|
-
export const GetImportJobResponseFilterSensitiveLog = (obj) => ({
|
|
194
|
-
...obj,
|
|
195
|
-
...(obj.importJob && { importJob: ImportJobDataFilterSensitiveLog(obj.importJob) }),
|
|
196
|
-
});
|
|
197
|
-
export const GetKnowledgeBaseResponseFilterSensitiveLog = (obj) => ({
|
|
198
|
-
...obj,
|
|
199
|
-
...(obj.knowledgeBase && { knowledgeBase: KnowledgeBaseDataFilterSensitiveLog(obj.knowledgeBase) }),
|
|
200
|
-
});
|
|
201
|
-
export const GetMessageTemplateResponseFilterSensitiveLog = (obj) => ({
|
|
202
|
-
...obj,
|
|
203
|
-
...(obj.messageTemplate && { messageTemplate: ExtendedMessageTemplateDataFilterSensitiveLog(obj.messageTemplate) }),
|
|
204
|
-
});
|
|
205
|
-
export const GetQuickResponseResponseFilterSensitiveLog = (obj) => ({
|
|
206
|
-
...obj,
|
|
207
|
-
...(obj.quickResponse && { quickResponse: QuickResponseDataFilterSensitiveLog(obj.quickResponse) }),
|
|
208
|
-
});
|
|
209
|
-
export const KnowledgeBaseSummaryFilterSensitiveLog = (obj) => ({
|
|
210
|
-
...obj,
|
|
211
|
-
...(obj.sourceConfiguration && {
|
|
212
|
-
sourceConfiguration: SourceConfigurationFilterSensitiveLog(obj.sourceConfiguration),
|
|
213
|
-
}),
|
|
214
|
-
});
|
|
215
|
-
export const ListKnowledgeBasesResponseFilterSensitiveLog = (obj) => ({
|
|
216
|
-
...obj,
|
|
217
|
-
...(obj.knowledgeBaseSummaries && {
|
|
218
|
-
knowledgeBaseSummaries: obj.knowledgeBaseSummaries.map((item) => KnowledgeBaseSummaryFilterSensitiveLog(item)),
|
|
219
|
-
}),
|
|
220
|
-
});
|
|
221
|
-
export const RenderMessageTemplateRequestFilterSensitiveLog = (obj) => ({
|
|
222
|
-
...obj,
|
|
223
|
-
...(obj.attributes && { attributes: MessageTemplateAttributesFilterSensitiveLog(obj.attributes) }),
|
|
224
|
-
});
|
|
225
|
-
export const RenderMessageTemplateResponseFilterSensitiveLog = (obj) => ({
|
|
226
|
-
...obj,
|
|
227
|
-
...(obj.content && { content: MessageTemplateContentProviderFilterSensitiveLog(obj.content) }),
|
|
228
|
-
...(obj.attributesNotInterpolated && { attributesNotInterpolated: SENSITIVE_STRING }),
|
|
229
|
-
...(obj.attachments && {
|
|
230
|
-
attachments: obj.attachments.map((item) => MessageTemplateAttachmentFilterSensitiveLog(item)),
|
|
231
|
-
}),
|
|
232
|
-
});
|
|
233
|
-
export const UpdateMessageTemplateRequestFilterSensitiveLog = (obj) => ({
|
|
234
|
-
...obj,
|
|
235
|
-
...(obj.content && { content: MessageTemplateContentProviderFilterSensitiveLog(obj.content) }),
|
|
236
|
-
...(obj.defaultAttributes && {
|
|
237
|
-
defaultAttributes: MessageTemplateAttributesFilterSensitiveLog(obj.defaultAttributes),
|
|
238
|
-
}),
|
|
239
|
-
});
|
|
240
|
-
export const UpdateMessageTemplateResponseFilterSensitiveLog = (obj) => ({
|
|
241
|
-
...obj,
|
|
242
|
-
...(obj.messageTemplate && { messageTemplate: MessageTemplateDataFilterSensitiveLog(obj.messageTemplate) }),
|
|
243
|
-
});
|
|
244
|
-
export const UpdateMessageTemplateMetadataRequestFilterSensitiveLog = (obj) => ({
|
|
245
|
-
...obj,
|
|
246
|
-
...(obj.groupingConfiguration && {
|
|
247
|
-
groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration),
|
|
248
|
-
}),
|
|
249
|
-
});
|
|
250
|
-
export const UpdateMessageTemplateMetadataResponseFilterSensitiveLog = (obj) => ({
|
|
251
|
-
...obj,
|
|
252
|
-
...(obj.messageTemplate && { messageTemplate: MessageTemplateDataFilterSensitiveLog(obj.messageTemplate) }),
|
|
253
|
-
});
|
|
254
|
-
export const QuickResponseSummaryFilterSensitiveLog = (obj) => ({
|
|
255
|
-
...obj,
|
|
256
|
-
...(obj.channels && { channels: SENSITIVE_STRING }),
|
|
257
|
-
});
|
|
258
|
-
export const ListQuickResponsesResponseFilterSensitiveLog = (obj) => ({
|
|
259
|
-
...obj,
|
|
260
|
-
...(obj.quickResponseSummaries && {
|
|
261
|
-
quickResponseSummaries: obj.quickResponseSummaries.map((item) => QuickResponseSummaryFilterSensitiveLog(item)),
|
|
262
|
-
}),
|
|
263
|
-
});
|
|
264
|
-
export const UpdateQuickResponseRequestFilterSensitiveLog = (obj) => ({
|
|
265
|
-
...obj,
|
|
266
|
-
...(obj.content && { content: QuickResponseDataProviderFilterSensitiveLog(obj.content) }),
|
|
267
|
-
...(obj.groupingConfiguration && {
|
|
268
|
-
groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration),
|
|
269
|
-
}),
|
|
270
|
-
...(obj.channels && { channels: SENSITIVE_STRING }),
|
|
271
|
-
});
|
|
272
|
-
export const UpdateQuickResponseResponseFilterSensitiveLog = (obj) => ({
|
|
273
|
-
...obj,
|
|
274
|
-
...(obj.quickResponse && { quickResponse: QuickResponseDataFilterSensitiveLog(obj.quickResponse) }),
|
|
275
|
-
});
|
|
276
|
-
export const MessageTemplateSearchResultDataFilterSensitiveLog = (obj) => ({
|
|
277
|
-
...obj,
|
|
278
|
-
...(obj.groupingConfiguration && {
|
|
279
|
-
groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration),
|
|
280
|
-
}),
|
|
281
|
-
});
|
|
282
|
-
export const SearchMessageTemplatesResponseFilterSensitiveLog = (obj) => ({
|
|
283
|
-
...obj,
|
|
284
|
-
...(obj.results && { results: obj.results.map((item) => MessageTemplateSearchResultDataFilterSensitiveLog(item)) }),
|
|
285
|
-
});
|
|
286
|
-
export const SearchQuickResponsesRequestFilterSensitiveLog = (obj) => ({
|
|
287
|
-
...obj,
|
|
288
|
-
...(obj.attributes && { attributes: SENSITIVE_STRING }),
|
|
289
|
-
});
|
|
290
|
-
export const QuickResponseSearchResultDataFilterSensitiveLog = (obj) => ({
|
|
291
|
-
...obj,
|
|
292
|
-
...(obj.contents && { contents: QuickResponseContentsFilterSensitiveLog(obj.contents) }),
|
|
293
|
-
...(obj.groupingConfiguration && {
|
|
294
|
-
groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration),
|
|
295
|
-
}),
|
|
296
|
-
...(obj.channels && { channels: SENSITIVE_STRING }),
|
|
297
|
-
...(obj.attributesNotInterpolated && { attributesNotInterpolated: SENSITIVE_STRING }),
|
|
298
|
-
...(obj.attributesInterpolated && { attributesInterpolated: SENSITIVE_STRING }),
|
|
299
|
-
});
|
|
300
|
-
export const SearchQuickResponsesResponseFilterSensitiveLog = (obj) => ({
|
|
301
|
-
...obj,
|
|
302
|
-
...(obj.results && { results: obj.results.map((item) => QuickResponseSearchResultDataFilterSensitiveLog(item)) }),
|
|
303
|
-
});
|
|
304
|
-
export const StartContentUploadResponseFilterSensitiveLog = (obj) => ({
|
|
305
|
-
...obj,
|
|
306
|
-
...(obj.url && { url: SENSITIVE_STRING }),
|
|
307
|
-
});
|
|
308
|
-
export const StartImportJobResponseFilterSensitiveLog = (obj) => ({
|
|
309
|
-
...obj,
|
|
310
|
-
...(obj.importJob && { importJob: ImportJobDataFilterSensitiveLog(obj.importJob) }),
|
|
311
|
-
});
|
|
312
|
-
export const UpdateKnowledgeBaseTemplateUriResponseFilterSensitiveLog = (obj) => ({
|
|
313
|
-
...obj,
|
|
314
|
-
...(obj.knowledgeBase && { knowledgeBase: KnowledgeBaseDataFilterSensitiveLog(obj.knowledgeBase) }),
|
|
315
|
-
});
|
|
316
|
-
export const DataDetailsFilterSensitiveLog = (obj) => {
|
|
317
|
-
if (obj.contentData !== undefined)
|
|
318
|
-
return { contentData: ContentDataDetailsFilterSensitiveLog(obj.contentData) };
|
|
319
|
-
if (obj.generativeData !== undefined)
|
|
320
|
-
return { generativeData: GenerativeDataDetailsFilterSensitiveLog(obj.generativeData) };
|
|
321
|
-
if (obj.intentDetectedData !== undefined)
|
|
322
|
-
return { intentDetectedData: IntentDetectedDataDetailsFilterSensitiveLog(obj.intentDetectedData) };
|
|
323
|
-
if (obj.sourceContentData !== undefined)
|
|
324
|
-
return { sourceContentData: SourceContentDataDetailsFilterSensitiveLog(obj.sourceContentData) };
|
|
325
|
-
if (obj.generativeChunkData !== undefined)
|
|
326
|
-
return { generativeChunkData: GenerativeChunkDataDetailsFilterSensitiveLog(obj.generativeChunkData) };
|
|
327
|
-
if (obj.emailResponseChunkData !== undefined)
|
|
328
|
-
return { emailResponseChunkData: EmailResponseChunkDataDetailsFilterSensitiveLog(obj.emailResponseChunkData) };
|
|
329
|
-
if (obj.emailOverviewChunkData !== undefined)
|
|
330
|
-
return { emailOverviewChunkData: EmailOverviewChunkDataDetailsFilterSensitiveLog(obj.emailOverviewChunkData) };
|
|
331
|
-
if (obj.emailGenerativeAnswerChunkData !== undefined)
|
|
332
|
-
return {
|
|
333
|
-
emailGenerativeAnswerChunkData: EmailGenerativeAnswerChunkDataDetailsFilterSensitiveLog(obj.emailGenerativeAnswerChunkData),
|
|
334
|
-
};
|
|
335
|
-
if (obj.$unknown !== undefined)
|
|
336
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
337
|
-
};
|
|
338
|
-
export const DataSummaryFilterSensitiveLog = (obj) => ({
|
|
339
|
-
...obj,
|
|
340
|
-
...(obj.reference && { reference: obj.reference }),
|
|
341
|
-
...(obj.details && { details: DataDetailsFilterSensitiveLog(obj.details) }),
|
|
342
|
-
});
|
|
343
|
-
export const EmailGenerativeAnswerChunkDataDetailsFilterSensitiveLog = (obj) => ({
|
|
344
|
-
...obj,
|
|
345
|
-
...(obj.completion && { completion: SENSITIVE_STRING }),
|
|
346
|
-
...(obj.references && { references: obj.references.map((item) => DataSummaryFilterSensitiveLog(item)) }),
|
|
347
|
-
});
|
|
348
|
-
export const GenerativeChunkDataDetailsFilterSensitiveLog = (obj) => ({
|
|
349
|
-
...obj,
|
|
350
|
-
...(obj.completion && { completion: SENSITIVE_STRING }),
|
|
351
|
-
...(obj.references && { references: obj.references.map((item) => DataSummaryFilterSensitiveLog(item)) }),
|
|
352
|
-
});
|
|
353
|
-
export const GenerativeDataDetailsFilterSensitiveLog = (obj) => ({
|
|
354
|
-
...obj,
|
|
355
|
-
...(obj.completion && { completion: SENSITIVE_STRING }),
|
|
356
|
-
...(obj.references && { references: obj.references.map((item) => DataSummaryFilterSensitiveLog(item)) }),
|
|
357
|
-
});
|
|
358
|
-
export const RecommendationDataFilterSensitiveLog = (obj) => ({
|
|
359
|
-
...obj,
|
|
360
|
-
...(obj.document && { document: DocumentFilterSensitiveLog(obj.document) }),
|
|
361
|
-
...(obj.data && { data: DataSummaryFilterSensitiveLog(obj.data) }),
|
|
362
|
-
});
|
|
363
|
-
export const ResultDataFilterSensitiveLog = (obj) => ({
|
|
364
|
-
...obj,
|
|
365
|
-
...(obj.document && { document: DocumentFilterSensitiveLog(obj.document) }),
|
|
366
|
-
...(obj.data && { data: DataSummaryFilterSensitiveLog(obj.data) }),
|
|
367
|
-
});
|
|
368
|
-
export const GetRecommendationsResponseFilterSensitiveLog = (obj) => ({
|
|
369
|
-
...obj,
|
|
370
|
-
...(obj.recommendations && {
|
|
371
|
-
recommendations: obj.recommendations.map((item) => RecommendationDataFilterSensitiveLog(item)),
|
|
372
|
-
}),
|
|
373
|
-
...(obj.triggers && { triggers: obj.triggers.map((item) => RecommendationTriggerFilterSensitiveLog(item)) }),
|
|
374
|
-
});
|
|
375
|
-
export const QueryAssistantResponseFilterSensitiveLog = (obj) => ({
|
|
376
|
-
...obj,
|
|
377
|
-
...(obj.results && { results: obj.results.map((item) => ResultDataFilterSensitiveLog(item)) }),
|
|
378
|
-
});
|
|
@@ -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.qconnect" }),
|
|
25
27
|
serviceId: config?.serviceId ?? "QConnect",
|
|
26
28
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
29
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|