@aws-sdk/client-qconnect 3.901.0 → 3.903.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist-cjs/endpoint/ruleset.js +1 -1
  2. package/dist-cjs/index.js +165 -33
  3. package/dist-es/commands/CreateMessageTemplateAttachmentCommand.js +1 -1
  4. package/dist-es/commands/CreateMessageTemplateCommand.js +2 -1
  5. package/dist-es/endpoint/ruleset.js +1 -1
  6. package/dist-es/models/models_0.js +39 -28
  7. package/dist-es/models/models_1.js +48 -1
  8. package/dist-es/protocols/Aws_restJson1.js +58 -1
  9. package/dist-types/commands/CreateAIAgentCommand.d.ts +116 -0
  10. package/dist-types/commands/CreateAIAgentVersionCommand.d.ts +58 -0
  11. package/dist-types/commands/CreateAIPromptCommand.d.ts +1 -1
  12. package/dist-types/commands/CreateMessageTemplateAttachmentCommand.d.ts +1 -1
  13. package/dist-types/commands/CreateMessageTemplateCommand.d.ts +2 -1
  14. package/dist-types/commands/CreateMessageTemplateVersionCommand.d.ts +1 -2
  15. package/dist-types/commands/CreateSessionCommand.d.ts +4 -0
  16. package/dist-types/commands/GetAIAgentCommand.d.ts +58 -0
  17. package/dist-types/commands/GetRecommendationsCommand.d.ts +28 -0
  18. package/dist-types/commands/ListAIAgentVersionsCommand.d.ts +58 -0
  19. package/dist-types/commands/ListAIAgentsCommand.d.ts +58 -0
  20. package/dist-types/commands/QueryAssistantCommand.d.ts +28 -0
  21. package/dist-types/commands/UpdateAIAgentCommand.d.ts +116 -0
  22. package/dist-types/models/models_0.d.ts +195 -225
  23. package/dist-types/models/models_1.d.ts +315 -2
  24. package/dist-types/ts3.4/commands/CreateMessageTemplateAttachmentCommand.d.ts +1 -1
  25. package/dist-types/ts3.4/commands/CreateMessageTemplateCommand.d.ts +2 -4
  26. package/dist-types/ts3.4/commands/CreateMessageTemplateVersionCommand.d.ts +4 -2
  27. package/dist-types/ts3.4/models/models_0.d.ts +102 -61
  28. package/dist-types/ts3.4/models/models_1.d.ts +131 -2
  29. package/package.json +1 -1
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
4
  const s = "required", t = "fn", u = "argv", v = "ref";
5
- 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" }];
5
+ 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" }];
6
6
  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 }] };
7
7
  exports.ruleSet = _data;
package/dist-cjs/index.js CHANGED
@@ -115,11 +115,15 @@ __export(index_exports, {
115
115
  DeleteMessageTemplateAttachmentCommand: () => DeleteMessageTemplateAttachmentCommand,
116
116
  DeleteMessageTemplateCommand: () => DeleteMessageTemplateCommand,
117
117
  DeleteQuickResponseCommand: () => DeleteQuickResponseCommand,
118
+ DependencyFailedException: () => DependencyFailedException,
118
119
  DocumentFilterSensitiveLog: () => DocumentFilterSensitiveLog,
119
120
  DocumentTextFilterSensitiveLog: () => DocumentTextFilterSensitiveLog,
121
+ EmailGenerativeAnswerChunkDataDetailsFilterSensitiveLog: () => EmailGenerativeAnswerChunkDataDetailsFilterSensitiveLog,
120
122
  EmailHeaderFilterSensitiveLog: () => EmailHeaderFilterSensitiveLog,
121
123
  EmailMessageTemplateContentBodyFilterSensitiveLog: () => EmailMessageTemplateContentBodyFilterSensitiveLog,
122
124
  EmailMessageTemplateContentFilterSensitiveLog: () => EmailMessageTemplateContentFilterSensitiveLog,
125
+ EmailOverviewChunkDataDetailsFilterSensitiveLog: () => EmailOverviewChunkDataDetailsFilterSensitiveLog,
126
+ EmailResponseChunkDataDetailsFilterSensitiveLog: () => EmailResponseChunkDataDetailsFilterSensitiveLog,
123
127
  ExtendedMessageTemplateDataFilterSensitiveLog: () => ExtendedMessageTemplateDataFilterSensitiveLog,
124
128
  ExternalSource: () => ExternalSource,
125
129
  FilterField: () => FilterField,
@@ -671,11 +675,20 @@ var AIAgentConfiguration;
671
675
  return visitor.answerRecommendationAIAgentConfiguration(value.answerRecommendationAIAgentConfiguration);
672
676
  if (value.selfServiceAIAgentConfiguration !== void 0)
673
677
  return visitor.selfServiceAIAgentConfiguration(value.selfServiceAIAgentConfiguration);
678
+ if (value.emailResponseAIAgentConfiguration !== void 0)
679
+ return visitor.emailResponseAIAgentConfiguration(value.emailResponseAIAgentConfiguration);
680
+ if (value.emailOverviewAIAgentConfiguration !== void 0)
681
+ return visitor.emailOverviewAIAgentConfiguration(value.emailOverviewAIAgentConfiguration);
682
+ if (value.emailGenerativeAnswerAIAgentConfiguration !== void 0)
683
+ return visitor.emailGenerativeAnswerAIAgentConfiguration(value.emailGenerativeAnswerAIAgentConfiguration);
674
684
  return visitor._(value.$unknown[0], value.$unknown[1]);
675
685
  }, "visit");
676
686
  })(AIAgentConfiguration || (AIAgentConfiguration = {}));
677
687
  var AIAgentType = {
678
688
  ANSWER_RECOMMENDATION: "ANSWER_RECOMMENDATION",
689
+ EMAIL_GENERATIVE_ANSWER: "EMAIL_GENERATIVE_ANSWER",
690
+ EMAIL_OVERVIEW: "EMAIL_OVERVIEW",
691
+ EMAIL_RESPONSE: "EMAIL_RESPONSE",
679
692
  MANUAL_SEARCH: "MANUAL_SEARCH",
680
693
  SELF_SERVICE: "SELF_SERVICE"
681
694
  };
@@ -811,6 +824,10 @@ var AIPromptTemplateType = {
811
824
  };
812
825
  var AIPromptType = {
813
826
  ANSWER_GENERATION: "ANSWER_GENERATION",
827
+ EMAIL_GENERATIVE_ANSWER: "EMAIL_GENERATIVE_ANSWER",
828
+ EMAIL_OVERVIEW: "EMAIL_OVERVIEW",
829
+ EMAIL_QUERY_REFORMULATION: "EMAIL_QUERY_REFORMULATION",
830
+ EMAIL_RESPONSE: "EMAIL_RESPONSE",
814
831
  INTENT_LABELING_GENERATION: "INTENT_LABELING_GENERATION",
815
832
  QUERY_REFORMULATION: "QUERY_REFORMULATION",
816
833
  SELF_SERVICE_ANSWER_GENERATION: "SELF_SERVICE_ANSWER_GENERATION",
@@ -873,6 +890,9 @@ var RecommendationType = {
873
890
  BLOCKED_GENERATIVE_ANSWER_CHUNK: "BLOCKED_GENERATIVE_ANSWER_CHUNK",
874
891
  BLOCKED_INTENT_ANSWER_CHUNK: "BLOCKED_INTENT_ANSWER_CHUNK",
875
892
  DETECTED_INTENT: "DETECTED_INTENT",
893
+ EMAIL_GENERATIVE_ANSWER_CHUNK: "EMAIL_GENERATIVE_ANSWER_CHUNK",
894
+ EMAIL_OVERVIEW_CHUNK: "EMAIL_OVERVIEW_CHUNK",
895
+ EMAIL_RESPONSE_CHUNK: "EMAIL_RESPONSE_CHUNK",
876
896
  GENERATIVE_ANSWER: "GENERATIVE_ANSWER",
877
897
  GENERATIVE_ANSWER_CHUNK: "GENERATIVE_ANSWER_CHUNK",
878
898
  GENERATIVE_RESPONSE: "GENERATIVE_RESPONSE",
@@ -935,6 +955,9 @@ var QueryInputData;
935
955
  var QueryResultType = {
936
956
  BLOCKED_GENERATIVE_ANSWER_CHUNK: "BLOCKED_GENERATIVE_ANSWER_CHUNK",
937
957
  BLOCKED_INTENT_ANSWER_CHUNK: "BLOCKED_INTENT_ANSWER_CHUNK",
958
+ EMAIL_GENERATIVE_ANSWER_CHUNK: "EMAIL_GENERATIVE_ANSWER_CHUNK",
959
+ EMAIL_OVERVIEW_CHUNK: "EMAIL_OVERVIEW_CHUNK",
960
+ EMAIL_RESPONSE_CHUNK: "EMAIL_RESPONSE_CHUNK",
938
961
  GENERATIVE_ANSWER: "GENERATIVE_ANSWER",
939
962
  GENERATIVE_ANSWER_CHUNK: "GENERATIVE_ANSWER_CHUNK",
940
963
  INTENT_ANSWER: "INTENT_ANSWER",
@@ -966,6 +989,24 @@ var FilterField = {
966
989
  var FilterOperator = {
967
990
  EQUALS: "EQUALS"
968
991
  };
992
+ var DependencyFailedException = class _DependencyFailedException extends QConnectServiceException {
993
+ static {
994
+ __name(this, "DependencyFailedException");
995
+ }
996
+ name = "DependencyFailedException";
997
+ $fault = "client";
998
+ /**
999
+ * @internal
1000
+ */
1001
+ constructor(opts) {
1002
+ super({
1003
+ name: "DependencyFailedException",
1004
+ $fault: "client",
1005
+ ...opts
1006
+ });
1007
+ Object.setPrototypeOf(this, _DependencyFailedException.prototype);
1008
+ }
1009
+ };
969
1010
  var RuntimeSessionDataValue;
970
1011
  ((RuntimeSessionDataValue3) => {
971
1012
  RuntimeSessionDataValue3.visit = /* @__PURE__ */ __name((value, visitor) => {
@@ -1377,6 +1418,14 @@ var ContentDataDetailsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1377
1418
  ...obj,
1378
1419
  ...obj.textData && { textData: TextDataFilterSensitiveLog(obj.textData) }
1379
1420
  }), "ContentDataDetailsFilterSensitiveLog");
1421
+ var EmailOverviewChunkDataDetailsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1422
+ ...obj,
1423
+ ...obj.completion && { completion: import_smithy_client.SENSITIVE_STRING }
1424
+ }), "EmailOverviewChunkDataDetailsFilterSensitiveLog");
1425
+ var EmailResponseChunkDataDetailsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1426
+ ...obj,
1427
+ ...obj.completion && { completion: import_smithy_client.SENSITIVE_STRING }
1428
+ }), "EmailResponseChunkDataDetailsFilterSensitiveLog");
1380
1429
  var IntentDetectedDataDetailsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1381
1430
  ...obj,
1382
1431
  ...obj.intent && { intent: import_smithy_client.SENSITIVE_STRING }
@@ -1657,34 +1706,6 @@ var CreateMessageTemplateRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj
1657
1706
  groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration)
1658
1707
  }
1659
1708
  }), "CreateMessageTemplateRequestFilterSensitiveLog");
1660
- var MessageTemplateDataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1661
- ...obj,
1662
- ...obj.content && { content: MessageTemplateContentProviderFilterSensitiveLog(obj.content) },
1663
- ...obj.groupingConfiguration && {
1664
- groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration)
1665
- },
1666
- ...obj.defaultAttributes && {
1667
- defaultAttributes: MessageTemplateAttributesFilterSensitiveLog(obj.defaultAttributes)
1668
- }
1669
- }), "MessageTemplateDataFilterSensitiveLog");
1670
- var CreateMessageTemplateResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1671
- ...obj,
1672
- ...obj.messageTemplate && { messageTemplate: MessageTemplateDataFilterSensitiveLog(obj.messageTemplate) }
1673
- }), "CreateMessageTemplateResponseFilterSensitiveLog");
1674
- var CreateMessageTemplateAttachmentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1675
- ...obj,
1676
- ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
1677
- ...obj.body && { body: import_smithy_client.SENSITIVE_STRING }
1678
- }), "CreateMessageTemplateAttachmentRequestFilterSensitiveLog");
1679
- var MessageTemplateAttachmentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1680
- ...obj,
1681
- ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
1682
- ...obj.url && { url: import_smithy_client.SENSITIVE_STRING }
1683
- }), "MessageTemplateAttachmentFilterSensitiveLog");
1684
- var CreateMessageTemplateAttachmentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1685
- ...obj,
1686
- ...obj.attachment && { attachment: MessageTemplateAttachmentFilterSensitiveLog(obj.attachment) }
1687
- }), "CreateMessageTemplateAttachmentResponseFilterSensitiveLog");
1688
1709
 
1689
1710
  // src/models/models_1.ts
1690
1711
 
@@ -1783,9 +1804,41 @@ var DataDetails;
1783
1804
  if (value.intentDetectedData !== void 0) return visitor.intentDetectedData(value.intentDetectedData);
1784
1805
  if (value.sourceContentData !== void 0) return visitor.sourceContentData(value.sourceContentData);
1785
1806
  if (value.generativeChunkData !== void 0) return visitor.generativeChunkData(value.generativeChunkData);
1807
+ if (value.emailResponseChunkData !== void 0) return visitor.emailResponseChunkData(value.emailResponseChunkData);
1808
+ if (value.emailOverviewChunkData !== void 0) return visitor.emailOverviewChunkData(value.emailOverviewChunkData);
1809
+ if (value.emailGenerativeAnswerChunkData !== void 0)
1810
+ return visitor.emailGenerativeAnswerChunkData(value.emailGenerativeAnswerChunkData);
1786
1811
  return visitor._(value.$unknown[0], value.$unknown[1]);
1787
1812
  }, "visit");
1788
1813
  })(DataDetails || (DataDetails = {}));
1814
+ var MessageTemplateDataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1815
+ ...obj,
1816
+ ...obj.content && { content: MessageTemplateContentProviderFilterSensitiveLog(obj.content) },
1817
+ ...obj.groupingConfiguration && {
1818
+ groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration)
1819
+ },
1820
+ ...obj.defaultAttributes && {
1821
+ defaultAttributes: MessageTemplateAttributesFilterSensitiveLog(obj.defaultAttributes)
1822
+ }
1823
+ }), "MessageTemplateDataFilterSensitiveLog");
1824
+ var CreateMessageTemplateResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1825
+ ...obj,
1826
+ ...obj.messageTemplate && { messageTemplate: MessageTemplateDataFilterSensitiveLog(obj.messageTemplate) }
1827
+ }), "CreateMessageTemplateResponseFilterSensitiveLog");
1828
+ var CreateMessageTemplateAttachmentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1829
+ ...obj,
1830
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
1831
+ ...obj.body && { body: import_smithy_client.SENSITIVE_STRING }
1832
+ }), "CreateMessageTemplateAttachmentRequestFilterSensitiveLog");
1833
+ var MessageTemplateAttachmentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1834
+ ...obj,
1835
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
1836
+ ...obj.url && { url: import_smithy_client.SENSITIVE_STRING }
1837
+ }), "MessageTemplateAttachmentFilterSensitiveLog");
1838
+ var CreateMessageTemplateAttachmentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1839
+ ...obj,
1840
+ ...obj.attachment && { attachment: MessageTemplateAttachmentFilterSensitiveLog(obj.attachment) }
1841
+ }), "CreateMessageTemplateAttachmentResponseFilterSensitiveLog");
1789
1842
  var ExtendedMessageTemplateDataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1790
1843
  ...obj,
1791
1844
  ...obj.content && { content: MessageTemplateContentProviderFilterSensitiveLog(obj.content) },
@@ -1975,6 +2028,16 @@ var DataDetailsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1975
2028
  return { sourceContentData: SourceContentDataDetailsFilterSensitiveLog(obj.sourceContentData) };
1976
2029
  if (obj.generativeChunkData !== void 0)
1977
2030
  return { generativeChunkData: GenerativeChunkDataDetailsFilterSensitiveLog(obj.generativeChunkData) };
2031
+ if (obj.emailResponseChunkData !== void 0)
2032
+ return { emailResponseChunkData: EmailResponseChunkDataDetailsFilterSensitiveLog(obj.emailResponseChunkData) };
2033
+ if (obj.emailOverviewChunkData !== void 0)
2034
+ return { emailOverviewChunkData: EmailOverviewChunkDataDetailsFilterSensitiveLog(obj.emailOverviewChunkData) };
2035
+ if (obj.emailGenerativeAnswerChunkData !== void 0)
2036
+ return {
2037
+ emailGenerativeAnswerChunkData: EmailGenerativeAnswerChunkDataDetailsFilterSensitiveLog(
2038
+ obj.emailGenerativeAnswerChunkData
2039
+ )
2040
+ };
1978
2041
  if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
1979
2042
  }, "DataDetailsFilterSensitiveLog");
1980
2043
  var DataSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
@@ -1982,6 +2045,11 @@ var DataSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1982
2045
  ...obj.reference && { reference: obj.reference },
1983
2046
  ...obj.details && { details: DataDetailsFilterSensitiveLog(obj.details) }
1984
2047
  }), "DataSummaryFilterSensitiveLog");
2048
+ var EmailGenerativeAnswerChunkDataDetailsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
2049
+ ...obj,
2050
+ ...obj.completion && { completion: import_smithy_client.SENSITIVE_STRING },
2051
+ ...obj.references && { references: obj.references.map((item) => DataSummaryFilterSensitiveLog(item)) }
2052
+ }), "EmailGenerativeAnswerChunkDataDetailsFilterSensitiveLog");
1985
2053
  var GenerativeChunkDataDetailsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1986
2054
  ...obj,
1987
2055
  ...obj.completion && { completion: import_smithy_client.SENSITIVE_STRING },
@@ -2363,6 +2431,7 @@ var se_CreateSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
2363
2431
  (0, import_smithy_client.take)(input, {
2364
2432
  aiAgentConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "aiAgentConfiguration"),
2365
2433
  clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
2434
+ contactArn: [],
2366
2435
  description: [],
2367
2436
  name: [],
2368
2437
  tagFilter: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tagFilter"),
@@ -4689,6 +4758,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
4689
4758
  case "UnauthorizedException":
4690
4759
  case "com.amazonaws.qconnect#UnauthorizedException":
4691
4760
  throw await de_UnauthorizedExceptionRes(parsedOutput, context);
4761
+ case "DependencyFailedException":
4762
+ case "com.amazonaws.qconnect#DependencyFailedException":
4763
+ throw await de_DependencyFailedExceptionRes(parsedOutput, context);
4692
4764
  case "RequestTimeoutException":
4693
4765
  case "com.amazonaws.qconnect#RequestTimeoutException":
4694
4766
  throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
@@ -4734,6 +4806,19 @@ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, contex
4734
4806
  });
4735
4807
  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
4736
4808
  }, "de_ConflictExceptionRes");
4809
+ var de_DependencyFailedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
4810
+ const contents = (0, import_smithy_client.map)({});
4811
+ const data = parsedOutput.body;
4812
+ const doc = (0, import_smithy_client.take)(data, {
4813
+ message: import_smithy_client.expectString
4814
+ });
4815
+ Object.assign(contents, doc);
4816
+ const exception = new DependencyFailedException({
4817
+ $metadata: deserializeMetadata(parsedOutput),
4818
+ ...contents
4819
+ });
4820
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
4821
+ }, "de_DependencyFailedExceptionRes");
4737
4822
  var de_PreconditionFailedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
4738
4823
  const contents = (0, import_smithy_client.map)({});
4739
4824
  const data = parsedOutput.body;
@@ -4843,6 +4928,9 @@ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, cont
4843
4928
  var se_AIAgentConfiguration = /* @__PURE__ */ __name((input, context) => {
4844
4929
  return AIAgentConfiguration.visit(input, {
4845
4930
  answerRecommendationAIAgentConfiguration: /* @__PURE__ */ __name((value) => ({ answerRecommendationAIAgentConfiguration: (0, import_smithy_client._json)(value) }), "answerRecommendationAIAgentConfiguration"),
4931
+ emailGenerativeAnswerAIAgentConfiguration: /* @__PURE__ */ __name((value) => ({ emailGenerativeAnswerAIAgentConfiguration: (0, import_smithy_client._json)(value) }), "emailGenerativeAnswerAIAgentConfiguration"),
4932
+ emailOverviewAIAgentConfiguration: /* @__PURE__ */ __name((value) => ({ emailOverviewAIAgentConfiguration: (0, import_smithy_client._json)(value) }), "emailOverviewAIAgentConfiguration"),
4933
+ emailResponseAIAgentConfiguration: /* @__PURE__ */ __name((value) => ({ emailResponseAIAgentConfiguration: (0, import_smithy_client._json)(value) }), "emailResponseAIAgentConfiguration"),
4846
4934
  manualSearchAIAgentConfiguration: /* @__PURE__ */ __name((value) => ({ manualSearchAIAgentConfiguration: (0, import_smithy_client._json)(value) }), "manualSearchAIAgentConfiguration"),
4847
4935
  selfServiceAIAgentConfiguration: /* @__PURE__ */ __name((value) => ({ selfServiceAIAgentConfiguration: (0, import_smithy_client._json)(value) }), "selfServiceAIAgentConfiguration"),
4848
4936
  _: /* @__PURE__ */ __name((name, value) => ({ [name]: value }), "_")
@@ -4870,6 +4958,21 @@ var de_AIAgentConfiguration = /* @__PURE__ */ __name((output, context) => {
4870
4958
  answerRecommendationAIAgentConfiguration: (0, import_smithy_client._json)(output.answerRecommendationAIAgentConfiguration)
4871
4959
  };
4872
4960
  }
4961
+ if (output.emailGenerativeAnswerAIAgentConfiguration != null) {
4962
+ return {
4963
+ emailGenerativeAnswerAIAgentConfiguration: (0, import_smithy_client._json)(output.emailGenerativeAnswerAIAgentConfiguration)
4964
+ };
4965
+ }
4966
+ if (output.emailOverviewAIAgentConfiguration != null) {
4967
+ return {
4968
+ emailOverviewAIAgentConfiguration: (0, import_smithy_client._json)(output.emailOverviewAIAgentConfiguration)
4969
+ };
4970
+ }
4971
+ if (output.emailResponseAIAgentConfiguration != null) {
4972
+ return {
4973
+ emailResponseAIAgentConfiguration: (0, import_smithy_client._json)(output.emailResponseAIAgentConfiguration)
4974
+ };
4975
+ }
4873
4976
  if (output.manualSearchAIAgentConfiguration != null) {
4874
4977
  return {
4875
4978
  manualSearchAIAgentConfiguration: (0, import_smithy_client._json)(output.manualSearchAIAgentConfiguration)
@@ -5079,6 +5182,24 @@ var de_DataDetails = /* @__PURE__ */ __name((output, context) => {
5079
5182
  contentData: de_ContentDataDetails(output.contentData, context)
5080
5183
  };
5081
5184
  }
5185
+ if (output.emailGenerativeAnswerChunkData != null) {
5186
+ return {
5187
+ emailGenerativeAnswerChunkData: de_EmailGenerativeAnswerChunkDataDetails(
5188
+ output.emailGenerativeAnswerChunkData,
5189
+ context
5190
+ )
5191
+ };
5192
+ }
5193
+ if (output.emailOverviewChunkData != null) {
5194
+ return {
5195
+ emailOverviewChunkData: (0, import_smithy_client._json)(output.emailOverviewChunkData)
5196
+ };
5197
+ }
5198
+ if (output.emailResponseChunkData != null) {
5199
+ return {
5200
+ emailResponseChunkData: (0, import_smithy_client._json)(output.emailResponseChunkData)
5201
+ };
5202
+ }
5082
5203
  if (output.generativeChunkData != null) {
5083
5204
  return {
5084
5205
  generativeChunkData: de_GenerativeChunkDataDetails(output.generativeChunkData, context)
@@ -5113,6 +5234,13 @@ var de_DataSummaryList = /* @__PURE__ */ __name((output, context) => {
5113
5234
  });
5114
5235
  return retVal;
5115
5236
  }, "de_DataSummaryList");
5237
+ var de_EmailGenerativeAnswerChunkDataDetails = /* @__PURE__ */ __name((output, context) => {
5238
+ return (0, import_smithy_client.take)(output, {
5239
+ completion: import_smithy_client.expectString,
5240
+ nextChunkToken: import_smithy_client.expectString,
5241
+ references: /* @__PURE__ */ __name((_) => de_DataSummaryList(_, context), "references")
5242
+ });
5243
+ }, "de_EmailGenerativeAnswerChunkDataDetails");
5116
5244
  var de_ExtendedMessageTemplateData = /* @__PURE__ */ __name((output, context) => {
5117
5245
  return (0, import_smithy_client.take)(output, {
5118
5246
  attachments: /* @__PURE__ */ __name((_) => de_MessageTemplateAttachmentList(_, context), "attachments"),
@@ -7175,6 +7303,7 @@ var paginateSearchSessions = (0, import_core.createPaginator)(QConnectClient, Se
7175
7303
  RequestTimeoutException,
7176
7304
  FilterField,
7177
7305
  FilterOperator,
7306
+ DependencyFailedException,
7178
7307
  RuntimeSessionDataValue,
7179
7308
  ConversationStatusReason,
7180
7309
  ConversationStatus,
@@ -7236,6 +7365,8 @@ var paginateSearchSessions = (0, import_core.createPaginator)(QConnectClient, Se
7236
7365
  DocumentTextFilterSensitiveLog,
7237
7366
  TextDataFilterSensitiveLog,
7238
7367
  ContentDataDetailsFilterSensitiveLog,
7368
+ EmailOverviewChunkDataDetailsFilterSensitiveLog,
7369
+ EmailResponseChunkDataDetailsFilterSensitiveLog,
7239
7370
  IntentDetectedDataDetailsFilterSensitiveLog,
7240
7371
  SourceContentDataDetailsFilterSensitiveLog,
7241
7372
  DocumentFilterSensitiveLog,
@@ -7281,11 +7412,6 @@ var paginateSearchSessions = (0, import_core.createPaginator)(QConnectClient, Se
7281
7412
  MessageTemplateAttributesFilterSensitiveLog,
7282
7413
  GroupingConfigurationFilterSensitiveLog,
7283
7414
  CreateMessageTemplateRequestFilterSensitiveLog,
7284
- MessageTemplateDataFilterSensitiveLog,
7285
- CreateMessageTemplateResponseFilterSensitiveLog,
7286
- CreateMessageTemplateAttachmentRequestFilterSensitiveLog,
7287
- MessageTemplateAttachmentFilterSensitiveLog,
7288
- CreateMessageTemplateAttachmentResponseFilterSensitiveLog,
7289
7415
  QuickResponseDataProvider,
7290
7416
  QuickResponseContentProvider,
7291
7417
  QuickResponseStatus,
@@ -7300,6 +7426,11 @@ var paginateSearchSessions = (0, import_core.createPaginator)(QConnectClient, Se
7300
7426
  QuickResponseQueryOperator,
7301
7427
  TooManyTagsException,
7302
7428
  DataDetails,
7429
+ MessageTemplateDataFilterSensitiveLog,
7430
+ CreateMessageTemplateResponseFilterSensitiveLog,
7431
+ CreateMessageTemplateAttachmentRequestFilterSensitiveLog,
7432
+ MessageTemplateAttachmentFilterSensitiveLog,
7433
+ CreateMessageTemplateAttachmentResponseFilterSensitiveLog,
7303
7434
  ExtendedMessageTemplateDataFilterSensitiveLog,
7304
7435
  CreateMessageTemplateVersionResponseFilterSensitiveLog,
7305
7436
  QuickResponseDataProviderFilterSensitiveLog,
@@ -7335,6 +7466,7 @@ var paginateSearchSessions = (0, import_core.createPaginator)(QConnectClient, Se
7335
7466
  UpdateKnowledgeBaseTemplateUriResponseFilterSensitiveLog,
7336
7467
  DataDetailsFilterSensitiveLog,
7337
7468
  DataSummaryFilterSensitiveLog,
7469
+ EmailGenerativeAnswerChunkDataDetailsFilterSensitiveLog,
7338
7470
  GenerativeChunkDataDetailsFilterSensitiveLog,
7339
7471
  GenerativeDataDetailsFilterSensitiveLog,
7340
7472
  RecommendationDataFilterSensitiveLog,
@@ -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/models_0";
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, CreateMessageTemplateResponseFilterSensitiveLog, } from "../models/models_0";
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": "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" }];
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, MessageTemplateAttachmentFilterSensitiveLog, MessageTemplateAttributesFilterSensitiveLog, MessageTemplateContentProviderFilterSensitiveLog, MessageTemplateDataFilterSensitiveLog, RecommendationTriggerFilterSensitiveLog, SourceConfigurationFilterSensitiveLog, SourceContentDataDetailsFilterSensitiveLog, } from "./models_0";
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 }),