@aws-sdk/client-qconnect 3.901.0 → 3.906.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/endpoint/ruleset.js +1 -1
- package/dist-cjs/index.js +6967 -7236
- package/dist-es/commands/CreateMessageTemplateAttachmentCommand.js +1 -1
- package/dist-es/commands/CreateMessageTemplateCommand.js +2 -1
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_0.js +39 -28
- package/dist-es/models/models_1.js +48 -1
- package/dist-es/protocols/Aws_restJson1.js +58 -1
- package/dist-types/commands/CreateAIAgentCommand.d.ts +116 -0
- package/dist-types/commands/CreateAIAgentVersionCommand.d.ts +58 -0
- package/dist-types/commands/CreateAIPromptCommand.d.ts +1 -1
- package/dist-types/commands/CreateMessageTemplateAttachmentCommand.d.ts +1 -1
- package/dist-types/commands/CreateMessageTemplateCommand.d.ts +2 -1
- package/dist-types/commands/CreateMessageTemplateVersionCommand.d.ts +1 -2
- package/dist-types/commands/CreateSessionCommand.d.ts +4 -0
- package/dist-types/commands/GetAIAgentCommand.d.ts +58 -0
- package/dist-types/commands/GetRecommendationsCommand.d.ts +28 -0
- package/dist-types/commands/ListAIAgentVersionsCommand.d.ts +58 -0
- package/dist-types/commands/ListAIAgentsCommand.d.ts +58 -0
- package/dist-types/commands/QueryAssistantCommand.d.ts +28 -0
- package/dist-types/commands/UpdateAIAgentCommand.d.ts +116 -0
- package/dist-types/models/models_0.d.ts +195 -225
- package/dist-types/models/models_1.d.ts +315 -2
- package/dist-types/ts3.4/commands/CreateMessageTemplateAttachmentCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateMessageTemplateCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/CreateMessageTemplateVersionCommand.d.ts +4 -2
- package/dist-types/ts3.4/models/models_0.d.ts +102 -61
- package/dist-types/ts3.4/models/models_1.d.ts +131 -2
- package/package.json +5 -5
|
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import { CreateMessageTemplateAttachmentRequestFilterSensitiveLog, CreateMessageTemplateAttachmentResponseFilterSensitiveLog, } from "../models/
|
|
5
|
+
import { CreateMessageTemplateAttachmentRequestFilterSensitiveLog, CreateMessageTemplateAttachmentResponseFilterSensitiveLog, } from "../models/models_1";
|
|
6
6
|
import { de_CreateMessageTemplateAttachmentCommand, se_CreateMessageTemplateAttachmentCommand, } from "../protocols/Aws_restJson1";
|
|
7
7
|
export { $Command };
|
|
8
8
|
export class CreateMessageTemplateAttachmentCommand extends $Command
|
|
@@ -2,7 +2,8 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import { CreateMessageTemplateRequestFilterSensitiveLog
|
|
5
|
+
import { CreateMessageTemplateRequestFilterSensitiveLog } from "../models/models_0";
|
|
6
|
+
import { CreateMessageTemplateResponseFilterSensitiveLog } from "../models/models_1";
|
|
6
7
|
import { de_CreateMessageTemplateCommand, se_CreateMessageTemplateCommand } from "../protocols/Aws_restJson1";
|
|
7
8
|
export { $Command };
|
|
8
9
|
export class CreateMessageTemplateCommand extends $Command
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
const s = "required", t = "fn", u = "argv", v = "ref";
|
|
2
|
-
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "
|
|
2
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "string" }, i = { [s]: true, "default": false, "type": "boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
|
|
3
3
|
const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ rules: [{ endpoint: { url: "https://wisdom-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ rules: [{ endpoint: { url: "https://wisdom-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ rules: [{ endpoint: { url: "https://wisdom.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { rules: [{ endpoint: { url: "https://wisdom.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -109,11 +109,20 @@ export var AIAgentConfiguration;
|
|
|
109
109
|
return visitor.answerRecommendationAIAgentConfiguration(value.answerRecommendationAIAgentConfiguration);
|
|
110
110
|
if (value.selfServiceAIAgentConfiguration !== undefined)
|
|
111
111
|
return visitor.selfServiceAIAgentConfiguration(value.selfServiceAIAgentConfiguration);
|
|
112
|
+
if (value.emailResponseAIAgentConfiguration !== undefined)
|
|
113
|
+
return visitor.emailResponseAIAgentConfiguration(value.emailResponseAIAgentConfiguration);
|
|
114
|
+
if (value.emailOverviewAIAgentConfiguration !== undefined)
|
|
115
|
+
return visitor.emailOverviewAIAgentConfiguration(value.emailOverviewAIAgentConfiguration);
|
|
116
|
+
if (value.emailGenerativeAnswerAIAgentConfiguration !== undefined)
|
|
117
|
+
return visitor.emailGenerativeAnswerAIAgentConfiguration(value.emailGenerativeAnswerAIAgentConfiguration);
|
|
112
118
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
113
119
|
};
|
|
114
120
|
})(AIAgentConfiguration || (AIAgentConfiguration = {}));
|
|
115
121
|
export const AIAgentType = {
|
|
116
122
|
ANSWER_RECOMMENDATION: "ANSWER_RECOMMENDATION",
|
|
123
|
+
EMAIL_GENERATIVE_ANSWER: "EMAIL_GENERATIVE_ANSWER",
|
|
124
|
+
EMAIL_OVERVIEW: "EMAIL_OVERVIEW",
|
|
125
|
+
EMAIL_RESPONSE: "EMAIL_RESPONSE",
|
|
117
126
|
MANUAL_SEARCH: "MANUAL_SEARCH",
|
|
118
127
|
SELF_SERVICE: "SELF_SERVICE",
|
|
119
128
|
};
|
|
@@ -237,6 +246,10 @@ export const AIPromptTemplateType = {
|
|
|
237
246
|
};
|
|
238
247
|
export const AIPromptType = {
|
|
239
248
|
ANSWER_GENERATION: "ANSWER_GENERATION",
|
|
249
|
+
EMAIL_GENERATIVE_ANSWER: "EMAIL_GENERATIVE_ANSWER",
|
|
250
|
+
EMAIL_OVERVIEW: "EMAIL_OVERVIEW",
|
|
251
|
+
EMAIL_QUERY_REFORMULATION: "EMAIL_QUERY_REFORMULATION",
|
|
252
|
+
EMAIL_RESPONSE: "EMAIL_RESPONSE",
|
|
240
253
|
INTENT_LABELING_GENERATION: "INTENT_LABELING_GENERATION",
|
|
241
254
|
QUERY_REFORMULATION: "QUERY_REFORMULATION",
|
|
242
255
|
SELF_SERVICE_ANSWER_GENERATION: "SELF_SERVICE_ANSWER_GENERATION",
|
|
@@ -302,6 +315,9 @@ export const RecommendationType = {
|
|
|
302
315
|
BLOCKED_GENERATIVE_ANSWER_CHUNK: "BLOCKED_GENERATIVE_ANSWER_CHUNK",
|
|
303
316
|
BLOCKED_INTENT_ANSWER_CHUNK: "BLOCKED_INTENT_ANSWER_CHUNK",
|
|
304
317
|
DETECTED_INTENT: "DETECTED_INTENT",
|
|
318
|
+
EMAIL_GENERATIVE_ANSWER_CHUNK: "EMAIL_GENERATIVE_ANSWER_CHUNK",
|
|
319
|
+
EMAIL_OVERVIEW_CHUNK: "EMAIL_OVERVIEW_CHUNK",
|
|
320
|
+
EMAIL_RESPONSE_CHUNK: "EMAIL_RESPONSE_CHUNK",
|
|
305
321
|
GENERATIVE_ANSWER: "GENERATIVE_ANSWER",
|
|
306
322
|
GENERATIVE_ANSWER_CHUNK: "GENERATIVE_ANSWER_CHUNK",
|
|
307
323
|
GENERATIVE_RESPONSE: "GENERATIVE_RESPONSE",
|
|
@@ -368,6 +384,9 @@ export var QueryInputData;
|
|
|
368
384
|
export const QueryResultType = {
|
|
369
385
|
BLOCKED_GENERATIVE_ANSWER_CHUNK: "BLOCKED_GENERATIVE_ANSWER_CHUNK",
|
|
370
386
|
BLOCKED_INTENT_ANSWER_CHUNK: "BLOCKED_INTENT_ANSWER_CHUNK",
|
|
387
|
+
EMAIL_GENERATIVE_ANSWER_CHUNK: "EMAIL_GENERATIVE_ANSWER_CHUNK",
|
|
388
|
+
EMAIL_OVERVIEW_CHUNK: "EMAIL_OVERVIEW_CHUNK",
|
|
389
|
+
EMAIL_RESPONSE_CHUNK: "EMAIL_RESPONSE_CHUNK",
|
|
371
390
|
GENERATIVE_ANSWER: "GENERATIVE_ANSWER",
|
|
372
391
|
GENERATIVE_ANSWER_CHUNK: "GENERATIVE_ANSWER_CHUNK",
|
|
373
392
|
INTENT_ANSWER: "INTENT_ANSWER",
|
|
@@ -393,6 +412,18 @@ export const FilterField = {
|
|
|
393
412
|
export const FilterOperator = {
|
|
394
413
|
EQUALS: "EQUALS",
|
|
395
414
|
};
|
|
415
|
+
export class DependencyFailedException extends __BaseException {
|
|
416
|
+
name = "DependencyFailedException";
|
|
417
|
+
$fault = "client";
|
|
418
|
+
constructor(opts) {
|
|
419
|
+
super({
|
|
420
|
+
name: "DependencyFailedException",
|
|
421
|
+
$fault: "client",
|
|
422
|
+
...opts,
|
|
423
|
+
});
|
|
424
|
+
Object.setPrototypeOf(this, DependencyFailedException.prototype);
|
|
425
|
+
}
|
|
426
|
+
}
|
|
396
427
|
export var RuntimeSessionDataValue;
|
|
397
428
|
(function (RuntimeSessionDataValue) {
|
|
398
429
|
RuntimeSessionDataValue.visit = (value, visitor) => {
|
|
@@ -788,6 +819,14 @@ export const ContentDataDetailsFilterSensitiveLog = (obj) => ({
|
|
|
788
819
|
...obj,
|
|
789
820
|
...(obj.textData && { textData: TextDataFilterSensitiveLog(obj.textData) }),
|
|
790
821
|
});
|
|
822
|
+
export const EmailOverviewChunkDataDetailsFilterSensitiveLog = (obj) => ({
|
|
823
|
+
...obj,
|
|
824
|
+
...(obj.completion && { completion: SENSITIVE_STRING }),
|
|
825
|
+
});
|
|
826
|
+
export const EmailResponseChunkDataDetailsFilterSensitiveLog = (obj) => ({
|
|
827
|
+
...obj,
|
|
828
|
+
...(obj.completion && { completion: SENSITIVE_STRING }),
|
|
829
|
+
});
|
|
791
830
|
export const IntentDetectedDataDetailsFilterSensitiveLog = (obj) => ({
|
|
792
831
|
...obj,
|
|
793
832
|
...(obj.intent && { intent: SENSITIVE_STRING }),
|
|
@@ -1082,31 +1121,3 @@ export const CreateMessageTemplateRequestFilterSensitiveLog = (obj) => ({
|
|
|
1082
1121
|
groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration),
|
|
1083
1122
|
}),
|
|
1084
1123
|
});
|
|
1085
|
-
export const MessageTemplateDataFilterSensitiveLog = (obj) => ({
|
|
1086
|
-
...obj,
|
|
1087
|
-
...(obj.content && { content: MessageTemplateContentProviderFilterSensitiveLog(obj.content) }),
|
|
1088
|
-
...(obj.groupingConfiguration && {
|
|
1089
|
-
groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration),
|
|
1090
|
-
}),
|
|
1091
|
-
...(obj.defaultAttributes && {
|
|
1092
|
-
defaultAttributes: MessageTemplateAttributesFilterSensitiveLog(obj.defaultAttributes),
|
|
1093
|
-
}),
|
|
1094
|
-
});
|
|
1095
|
-
export const CreateMessageTemplateResponseFilterSensitiveLog = (obj) => ({
|
|
1096
|
-
...obj,
|
|
1097
|
-
...(obj.messageTemplate && { messageTemplate: MessageTemplateDataFilterSensitiveLog(obj.messageTemplate) }),
|
|
1098
|
-
});
|
|
1099
|
-
export const CreateMessageTemplateAttachmentRequestFilterSensitiveLog = (obj) => ({
|
|
1100
|
-
...obj,
|
|
1101
|
-
...(obj.name && { name: SENSITIVE_STRING }),
|
|
1102
|
-
...(obj.body && { body: SENSITIVE_STRING }),
|
|
1103
|
-
});
|
|
1104
|
-
export const MessageTemplateAttachmentFilterSensitiveLog = (obj) => ({
|
|
1105
|
-
...obj,
|
|
1106
|
-
...(obj.name && { name: SENSITIVE_STRING }),
|
|
1107
|
-
...(obj.url && { url: SENSITIVE_STRING }),
|
|
1108
|
-
});
|
|
1109
|
-
export const CreateMessageTemplateAttachmentResponseFilterSensitiveLog = (obj) => ({
|
|
1110
|
-
...obj,
|
|
1111
|
-
...(obj.attachment && { attachment: MessageTemplateAttachmentFilterSensitiveLog(obj.attachment) }),
|
|
1112
|
-
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
|
-
import { ContentDataDetailsFilterSensitiveLog, DocumentFilterSensitiveLog, GroupingConfigurationFilterSensitiveLog, IntentDetectedDataDetailsFilterSensitiveLog, KnowledgeBaseDataFilterSensitiveLog,
|
|
2
|
+
import { ContentDataDetailsFilterSensitiveLog, DocumentFilterSensitiveLog, EmailOverviewChunkDataDetailsFilterSensitiveLog, EmailResponseChunkDataDetailsFilterSensitiveLog, GroupingConfigurationFilterSensitiveLog, IntentDetectedDataDetailsFilterSensitiveLog, KnowledgeBaseDataFilterSensitiveLog, MessageTemplateAttributesFilterSensitiveLog, MessageTemplateContentProviderFilterSensitiveLog, RecommendationTriggerFilterSensitiveLog, SourceConfigurationFilterSensitiveLog, SourceContentDataDetailsFilterSensitiveLog, } from "./models_0";
|
|
3
3
|
import { QConnectServiceException as __BaseException } from "./QConnectServiceException";
|
|
4
4
|
export var QuickResponseDataProvider;
|
|
5
5
|
(function (QuickResponseDataProvider) {
|
|
@@ -93,9 +93,43 @@ export var DataDetails;
|
|
|
93
93
|
return visitor.sourceContentData(value.sourceContentData);
|
|
94
94
|
if (value.generativeChunkData !== undefined)
|
|
95
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);
|
|
96
102
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
97
103
|
};
|
|
98
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
|
+
});
|
|
99
133
|
export const ExtendedMessageTemplateDataFilterSensitiveLog = (obj) => ({
|
|
100
134
|
...obj,
|
|
101
135
|
...(obj.content && { content: MessageTemplateContentProviderFilterSensitiveLog(obj.content) }),
|
|
@@ -290,6 +324,14 @@ export const DataDetailsFilterSensitiveLog = (obj) => {
|
|
|
290
324
|
return { sourceContentData: SourceContentDataDetailsFilterSensitiveLog(obj.sourceContentData) };
|
|
291
325
|
if (obj.generativeChunkData !== undefined)
|
|
292
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
|
+
};
|
|
293
335
|
if (obj.$unknown !== undefined)
|
|
294
336
|
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
295
337
|
};
|
|
@@ -298,6 +340,11 @@ export const DataSummaryFilterSensitiveLog = (obj) => ({
|
|
|
298
340
|
...(obj.reference && { reference: obj.reference }),
|
|
299
341
|
...(obj.details && { details: DataDetailsFilterSensitiveLog(obj.details) }),
|
|
300
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
|
+
});
|
|
301
348
|
export const GenerativeChunkDataDetailsFilterSensitiveLog = (obj) => ({
|
|
302
349
|
...obj,
|
|
303
350
|
...(obj.completion && { completion: SENSITIVE_STRING }),
|
|
@@ -2,7 +2,7 @@ import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody a
|
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { AccessDeniedException, AIAgentConfiguration, ConflictException, PreconditionFailedException, RequestTimeoutException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UnauthorizedException, ValidationException, } from "../models/models_0";
|
|
5
|
+
import { AccessDeniedException, AIAgentConfiguration, ConflictException, DependencyFailedException, PreconditionFailedException, RequestTimeoutException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UnauthorizedException, ValidationException, } from "../models/models_0";
|
|
6
6
|
import { TooManyTagsException, } from "../models/models_1";
|
|
7
7
|
import { QConnectServiceException as __BaseException } from "../models/QConnectServiceException";
|
|
8
8
|
export const se_ActivateMessageTemplateCommand = async (input, context) => {
|
|
@@ -320,6 +320,7 @@ export const se_CreateSessionCommand = async (input, context) => {
|
|
|
320
320
|
body = JSON.stringify(take(input, {
|
|
321
321
|
aiAgentConfiguration: (_) => _json(_),
|
|
322
322
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
323
|
+
contactArn: [],
|
|
323
324
|
description: [],
|
|
324
325
|
name: [],
|
|
325
326
|
tagFilter: (_) => _json(_),
|
|
@@ -2597,6 +2598,9 @@ const de_CommandError = async (output, context) => {
|
|
|
2597
2598
|
case "UnauthorizedException":
|
|
2598
2599
|
case "com.amazonaws.qconnect#UnauthorizedException":
|
|
2599
2600
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2601
|
+
case "DependencyFailedException":
|
|
2602
|
+
case "com.amazonaws.qconnect#DependencyFailedException":
|
|
2603
|
+
throw await de_DependencyFailedExceptionRes(parsedOutput, context);
|
|
2600
2604
|
case "RequestTimeoutException":
|
|
2601
2605
|
case "com.amazonaws.qconnect#RequestTimeoutException":
|
|
2602
2606
|
throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
|
|
@@ -2642,6 +2646,19 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
2642
2646
|
});
|
|
2643
2647
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2644
2648
|
};
|
|
2649
|
+
const de_DependencyFailedExceptionRes = async (parsedOutput, context) => {
|
|
2650
|
+
const contents = map({});
|
|
2651
|
+
const data = parsedOutput.body;
|
|
2652
|
+
const doc = take(data, {
|
|
2653
|
+
message: __expectString,
|
|
2654
|
+
});
|
|
2655
|
+
Object.assign(contents, doc);
|
|
2656
|
+
const exception = new DependencyFailedException({
|
|
2657
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2658
|
+
...contents,
|
|
2659
|
+
});
|
|
2660
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2661
|
+
};
|
|
2645
2662
|
const de_PreconditionFailedExceptionRes = async (parsedOutput, context) => {
|
|
2646
2663
|
const contents = map({});
|
|
2647
2664
|
const data = parsedOutput.body;
|
|
@@ -2751,6 +2768,9 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
2751
2768
|
const se_AIAgentConfiguration = (input, context) => {
|
|
2752
2769
|
return AIAgentConfiguration.visit(input, {
|
|
2753
2770
|
answerRecommendationAIAgentConfiguration: (value) => ({ answerRecommendationAIAgentConfiguration: _json(value) }),
|
|
2771
|
+
emailGenerativeAnswerAIAgentConfiguration: (value) => ({ emailGenerativeAnswerAIAgentConfiguration: _json(value) }),
|
|
2772
|
+
emailOverviewAIAgentConfiguration: (value) => ({ emailOverviewAIAgentConfiguration: _json(value) }),
|
|
2773
|
+
emailResponseAIAgentConfiguration: (value) => ({ emailResponseAIAgentConfiguration: _json(value) }),
|
|
2754
2774
|
manualSearchAIAgentConfiguration: (value) => ({ manualSearchAIAgentConfiguration: _json(value) }),
|
|
2755
2775
|
selfServiceAIAgentConfiguration: (value) => ({ selfServiceAIAgentConfiguration: _json(value) }),
|
|
2756
2776
|
_: (name, value) => ({ [name]: value }),
|
|
@@ -2780,6 +2800,21 @@ const de_AIAgentConfiguration = (output, context) => {
|
|
|
2780
2800
|
answerRecommendationAIAgentConfiguration: _json(output.answerRecommendationAIAgentConfiguration),
|
|
2781
2801
|
};
|
|
2782
2802
|
}
|
|
2803
|
+
if (output.emailGenerativeAnswerAIAgentConfiguration != null) {
|
|
2804
|
+
return {
|
|
2805
|
+
emailGenerativeAnswerAIAgentConfiguration: _json(output.emailGenerativeAnswerAIAgentConfiguration),
|
|
2806
|
+
};
|
|
2807
|
+
}
|
|
2808
|
+
if (output.emailOverviewAIAgentConfiguration != null) {
|
|
2809
|
+
return {
|
|
2810
|
+
emailOverviewAIAgentConfiguration: _json(output.emailOverviewAIAgentConfiguration),
|
|
2811
|
+
};
|
|
2812
|
+
}
|
|
2813
|
+
if (output.emailResponseAIAgentConfiguration != null) {
|
|
2814
|
+
return {
|
|
2815
|
+
emailResponseAIAgentConfiguration: _json(output.emailResponseAIAgentConfiguration),
|
|
2816
|
+
};
|
|
2817
|
+
}
|
|
2783
2818
|
if (output.manualSearchAIAgentConfiguration != null) {
|
|
2784
2819
|
return {
|
|
2785
2820
|
manualSearchAIAgentConfiguration: _json(output.manualSearchAIAgentConfiguration),
|
|
@@ -3001,6 +3036,21 @@ const de_DataDetails = (output, context) => {
|
|
|
3001
3036
|
contentData: de_ContentDataDetails(output.contentData, context),
|
|
3002
3037
|
};
|
|
3003
3038
|
}
|
|
3039
|
+
if (output.emailGenerativeAnswerChunkData != null) {
|
|
3040
|
+
return {
|
|
3041
|
+
emailGenerativeAnswerChunkData: de_EmailGenerativeAnswerChunkDataDetails(output.emailGenerativeAnswerChunkData, context),
|
|
3042
|
+
};
|
|
3043
|
+
}
|
|
3044
|
+
if (output.emailOverviewChunkData != null) {
|
|
3045
|
+
return {
|
|
3046
|
+
emailOverviewChunkData: _json(output.emailOverviewChunkData),
|
|
3047
|
+
};
|
|
3048
|
+
}
|
|
3049
|
+
if (output.emailResponseChunkData != null) {
|
|
3050
|
+
return {
|
|
3051
|
+
emailResponseChunkData: _json(output.emailResponseChunkData),
|
|
3052
|
+
};
|
|
3053
|
+
}
|
|
3004
3054
|
if (output.generativeChunkData != null) {
|
|
3005
3055
|
return {
|
|
3006
3056
|
generativeChunkData: de_GenerativeChunkDataDetails(output.generativeChunkData, context),
|
|
@@ -3037,6 +3087,13 @@ const de_DataSummaryList = (output, context) => {
|
|
|
3037
3087
|
});
|
|
3038
3088
|
return retVal;
|
|
3039
3089
|
};
|
|
3090
|
+
const de_EmailGenerativeAnswerChunkDataDetails = (output, context) => {
|
|
3091
|
+
return take(output, {
|
|
3092
|
+
completion: __expectString,
|
|
3093
|
+
nextChunkToken: __expectString,
|
|
3094
|
+
references: (_) => de_DataSummaryList(_, context),
|
|
3095
|
+
});
|
|
3096
|
+
};
|
|
3040
3097
|
const de_ExtendedMessageTemplateData = (output, context) => {
|
|
3041
3098
|
return take(output, {
|
|
3042
3099
|
attachments: (_) => de_MessageTemplateAttachmentList(_, context),
|
|
@@ -141,6 +141,64 @@ declare const CreateAIAgentCommand_base: {
|
|
|
141
141
|
* },
|
|
142
142
|
* ],
|
|
143
143
|
* },
|
|
144
|
+
* emailResponseAIAgentConfiguration: { // EmailResponseAIAgentConfiguration
|
|
145
|
+
* emailResponseAIPromptId: "STRING_VALUE",
|
|
146
|
+
* emailQueryReformulationAIPromptId: "STRING_VALUE",
|
|
147
|
+
* locale: "STRING_VALUE",
|
|
148
|
+
* associationConfigurations: [
|
|
149
|
+
* {
|
|
150
|
+
* associationId: "STRING_VALUE",
|
|
151
|
+
* associationType: "STRING_VALUE",
|
|
152
|
+
* associationConfigurationData: {// Union: only one key present
|
|
153
|
+
* knowledgeBaseAssociationConfigurationData: {
|
|
154
|
+
* contentTagFilter: {// Union: only one key present
|
|
155
|
+
* tagCondition: "<TagCondition>",
|
|
156
|
+
* andConditions: "<AndConditions>",
|
|
157
|
+
* orConditions: [
|
|
158
|
+
* {// Union: only one key present
|
|
159
|
+
* andConditions: "<AndConditions>",
|
|
160
|
+
* tagCondition: "<TagCondition>",
|
|
161
|
+
* },
|
|
162
|
+
* ],
|
|
163
|
+
* },
|
|
164
|
+
* maxResults: Number("int"),
|
|
165
|
+
* overrideKnowledgeBaseSearchType: "STRING_VALUE",
|
|
166
|
+
* },
|
|
167
|
+
* },
|
|
168
|
+
* },
|
|
169
|
+
* ],
|
|
170
|
+
* },
|
|
171
|
+
* emailOverviewAIAgentConfiguration: { // EmailOverviewAIAgentConfiguration
|
|
172
|
+
* emailOverviewAIPromptId: "STRING_VALUE",
|
|
173
|
+
* locale: "STRING_VALUE",
|
|
174
|
+
* },
|
|
175
|
+
* emailGenerativeAnswerAIAgentConfiguration: { // EmailGenerativeAnswerAIAgentConfiguration
|
|
176
|
+
* emailGenerativeAnswerAIPromptId: "STRING_VALUE",
|
|
177
|
+
* emailQueryReformulationAIPromptId: "STRING_VALUE",
|
|
178
|
+
* locale: "STRING_VALUE",
|
|
179
|
+
* associationConfigurations: [
|
|
180
|
+
* {
|
|
181
|
+
* associationId: "STRING_VALUE",
|
|
182
|
+
* associationType: "STRING_VALUE",
|
|
183
|
+
* associationConfigurationData: {// Union: only one key present
|
|
184
|
+
* knowledgeBaseAssociationConfigurationData: {
|
|
185
|
+
* contentTagFilter: {// Union: only one key present
|
|
186
|
+
* tagCondition: "<TagCondition>",
|
|
187
|
+
* andConditions: "<AndConditions>",
|
|
188
|
+
* orConditions: [
|
|
189
|
+
* {// Union: only one key present
|
|
190
|
+
* andConditions: "<AndConditions>",
|
|
191
|
+
* tagCondition: "<TagCondition>",
|
|
192
|
+
* },
|
|
193
|
+
* ],
|
|
194
|
+
* },
|
|
195
|
+
* maxResults: Number("int"),
|
|
196
|
+
* overrideKnowledgeBaseSearchType: "STRING_VALUE",
|
|
197
|
+
* },
|
|
198
|
+
* },
|
|
199
|
+
* },
|
|
200
|
+
* ],
|
|
201
|
+
* },
|
|
144
202
|
* },
|
|
145
203
|
* visibilityStatus: "STRING_VALUE", // required
|
|
146
204
|
* tags: { // Tags
|
|
@@ -258,6 +316,64 @@ declare const CreateAIAgentCommand_base: {
|
|
|
258
316
|
* // },
|
|
259
317
|
* // ],
|
|
260
318
|
* // },
|
|
319
|
+
* // emailResponseAIAgentConfiguration: { // EmailResponseAIAgentConfiguration
|
|
320
|
+
* // emailResponseAIPromptId: "STRING_VALUE",
|
|
321
|
+
* // emailQueryReformulationAIPromptId: "STRING_VALUE",
|
|
322
|
+
* // locale: "STRING_VALUE",
|
|
323
|
+
* // associationConfigurations: [
|
|
324
|
+
* // {
|
|
325
|
+
* // associationId: "STRING_VALUE",
|
|
326
|
+
* // associationType: "STRING_VALUE",
|
|
327
|
+
* // associationConfigurationData: {// Union: only one key present
|
|
328
|
+
* // knowledgeBaseAssociationConfigurationData: {
|
|
329
|
+
* // contentTagFilter: {// Union: only one key present
|
|
330
|
+
* // tagCondition: "<TagCondition>",
|
|
331
|
+
* // andConditions: "<AndConditions>",
|
|
332
|
+
* // orConditions: [
|
|
333
|
+
* // {// Union: only one key present
|
|
334
|
+
* // andConditions: "<AndConditions>",
|
|
335
|
+
* // tagCondition: "<TagCondition>",
|
|
336
|
+
* // },
|
|
337
|
+
* // ],
|
|
338
|
+
* // },
|
|
339
|
+
* // maxResults: Number("int"),
|
|
340
|
+
* // overrideKnowledgeBaseSearchType: "STRING_VALUE",
|
|
341
|
+
* // },
|
|
342
|
+
* // },
|
|
343
|
+
* // },
|
|
344
|
+
* // ],
|
|
345
|
+
* // },
|
|
346
|
+
* // emailOverviewAIAgentConfiguration: { // EmailOverviewAIAgentConfiguration
|
|
347
|
+
* // emailOverviewAIPromptId: "STRING_VALUE",
|
|
348
|
+
* // locale: "STRING_VALUE",
|
|
349
|
+
* // },
|
|
350
|
+
* // emailGenerativeAnswerAIAgentConfiguration: { // EmailGenerativeAnswerAIAgentConfiguration
|
|
351
|
+
* // emailGenerativeAnswerAIPromptId: "STRING_VALUE",
|
|
352
|
+
* // emailQueryReformulationAIPromptId: "STRING_VALUE",
|
|
353
|
+
* // locale: "STRING_VALUE",
|
|
354
|
+
* // associationConfigurations: [
|
|
355
|
+
* // {
|
|
356
|
+
* // associationId: "STRING_VALUE",
|
|
357
|
+
* // associationType: "STRING_VALUE",
|
|
358
|
+
* // associationConfigurationData: {// Union: only one key present
|
|
359
|
+
* // knowledgeBaseAssociationConfigurationData: {
|
|
360
|
+
* // contentTagFilter: {// Union: only one key present
|
|
361
|
+
* // tagCondition: "<TagCondition>",
|
|
362
|
+
* // andConditions: "<AndConditions>",
|
|
363
|
+
* // orConditions: [
|
|
364
|
+
* // {// Union: only one key present
|
|
365
|
+
* // andConditions: "<AndConditions>",
|
|
366
|
+
* // tagCondition: "<TagCondition>",
|
|
367
|
+
* // },
|
|
368
|
+
* // ],
|
|
369
|
+
* // },
|
|
370
|
+
* // maxResults: Number("int"),
|
|
371
|
+
* // overrideKnowledgeBaseSearchType: "STRING_VALUE",
|
|
372
|
+
* // },
|
|
373
|
+
* // },
|
|
374
|
+
* // },
|
|
375
|
+
* // ],
|
|
376
|
+
* // },
|
|
261
377
|
* // },
|
|
262
378
|
* // modifiedTime: new Date("TIMESTAMP"),
|
|
263
379
|
* // description: "STRING_VALUE",
|
|
@@ -152,6 +152,64 @@ declare const CreateAIAgentVersionCommand_base: {
|
|
|
152
152
|
* // },
|
|
153
153
|
* // ],
|
|
154
154
|
* // },
|
|
155
|
+
* // emailResponseAIAgentConfiguration: { // EmailResponseAIAgentConfiguration
|
|
156
|
+
* // emailResponseAIPromptId: "STRING_VALUE",
|
|
157
|
+
* // emailQueryReformulationAIPromptId: "STRING_VALUE",
|
|
158
|
+
* // locale: "STRING_VALUE",
|
|
159
|
+
* // associationConfigurations: [
|
|
160
|
+
* // {
|
|
161
|
+
* // associationId: "STRING_VALUE",
|
|
162
|
+
* // associationType: "STRING_VALUE",
|
|
163
|
+
* // associationConfigurationData: {// Union: only one key present
|
|
164
|
+
* // knowledgeBaseAssociationConfigurationData: {
|
|
165
|
+
* // contentTagFilter: {// Union: only one key present
|
|
166
|
+
* // tagCondition: "<TagCondition>",
|
|
167
|
+
* // andConditions: "<AndConditions>",
|
|
168
|
+
* // orConditions: [
|
|
169
|
+
* // {// Union: only one key present
|
|
170
|
+
* // andConditions: "<AndConditions>",
|
|
171
|
+
* // tagCondition: "<TagCondition>",
|
|
172
|
+
* // },
|
|
173
|
+
* // ],
|
|
174
|
+
* // },
|
|
175
|
+
* // maxResults: Number("int"),
|
|
176
|
+
* // overrideKnowledgeBaseSearchType: "STRING_VALUE",
|
|
177
|
+
* // },
|
|
178
|
+
* // },
|
|
179
|
+
* // },
|
|
180
|
+
* // ],
|
|
181
|
+
* // },
|
|
182
|
+
* // emailOverviewAIAgentConfiguration: { // EmailOverviewAIAgentConfiguration
|
|
183
|
+
* // emailOverviewAIPromptId: "STRING_VALUE",
|
|
184
|
+
* // locale: "STRING_VALUE",
|
|
185
|
+
* // },
|
|
186
|
+
* // emailGenerativeAnswerAIAgentConfiguration: { // EmailGenerativeAnswerAIAgentConfiguration
|
|
187
|
+
* // emailGenerativeAnswerAIPromptId: "STRING_VALUE",
|
|
188
|
+
* // emailQueryReformulationAIPromptId: "STRING_VALUE",
|
|
189
|
+
* // locale: "STRING_VALUE",
|
|
190
|
+
* // associationConfigurations: [
|
|
191
|
+
* // {
|
|
192
|
+
* // associationId: "STRING_VALUE",
|
|
193
|
+
* // associationType: "STRING_VALUE",
|
|
194
|
+
* // associationConfigurationData: {// Union: only one key present
|
|
195
|
+
* // knowledgeBaseAssociationConfigurationData: {
|
|
196
|
+
* // contentTagFilter: {// Union: only one key present
|
|
197
|
+
* // tagCondition: "<TagCondition>",
|
|
198
|
+
* // andConditions: "<AndConditions>",
|
|
199
|
+
* // orConditions: [
|
|
200
|
+
* // {// Union: only one key present
|
|
201
|
+
* // andConditions: "<AndConditions>",
|
|
202
|
+
* // tagCondition: "<TagCondition>",
|
|
203
|
+
* // },
|
|
204
|
+
* // ],
|
|
205
|
+
* // },
|
|
206
|
+
* // maxResults: Number("int"),
|
|
207
|
+
* // overrideKnowledgeBaseSearchType: "STRING_VALUE",
|
|
208
|
+
* // },
|
|
209
|
+
* // },
|
|
210
|
+
* // },
|
|
211
|
+
* // ],
|
|
212
|
+
* // },
|
|
155
213
|
* // },
|
|
156
214
|
* // modifiedTime: new Date("TIMESTAMP"),
|
|
157
215
|
* // description: "STRING_VALUE",
|
|
@@ -27,7 +27,7 @@ declare const CreateAIPromptCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Creates an Amazon Q in Connect AI Prompt.</p>
|
|
30
|
+
* <p>Creates an Amazon Q in Connect AI Prompt.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { CreateMessageTemplateAttachmentRequest, CreateMessageTemplateAttachmentResponse } from "../models/
|
|
3
|
+
import { CreateMessageTemplateAttachmentRequest, CreateMessageTemplateAttachmentResponse } from "../models/models_1";
|
|
4
4
|
import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { CreateMessageTemplateRequest
|
|
3
|
+
import { CreateMessageTemplateRequest } from "../models/models_0";
|
|
4
|
+
import { CreateMessageTemplateResponse } from "../models/models_1";
|
|
4
5
|
import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient";
|
|
5
6
|
/**
|
|
6
7
|
* @public
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { CreateMessageTemplateVersionRequest } from "../models/
|
|
4
|
-
import { CreateMessageTemplateVersionResponse } from "../models/models_1";
|
|
3
|
+
import { CreateMessageTemplateVersionRequest, CreateMessageTemplateVersionResponse } from "../models/models_1";
|
|
5
4
|
import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient";
|
|
6
5
|
/**
|
|
7
6
|
* @public
|
|
@@ -69,6 +69,7 @@ declare const CreateSessionCommand_base: {
|
|
|
69
69
|
* aiAgentId: "STRING_VALUE", // required
|
|
70
70
|
* },
|
|
71
71
|
* },
|
|
72
|
+
* contactArn: "STRING_VALUE",
|
|
72
73
|
* };
|
|
73
74
|
* const command = new CreateSessionCommand(input);
|
|
74
75
|
* const response = await client.send(command);
|
|
@@ -127,6 +128,9 @@ declare const CreateSessionCommand_base: {
|
|
|
127
128
|
* @throws {@link ConflictException} (client fault)
|
|
128
129
|
* <p>The request could not be processed because of conflict in the current state of the resource. For example, if you're using a <code>Create</code> API (such as <code>CreateAssistant</code>) that accepts name, a conflicting resource (usually with the same name) is being created or mutated.</p>
|
|
129
130
|
*
|
|
131
|
+
* @throws {@link DependencyFailedException} (client fault)
|
|
132
|
+
* <p>An error occurred while calling a dependency. For example, calling <code>connect:DecribeContact</code> as part of <code>CreateSession</code> with a contactArn.</p>
|
|
133
|
+
*
|
|
130
134
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
131
135
|
* <p>The specified resource does not exist.</p>
|
|
132
136
|
*
|