@aws-sdk/client-qconnect 3.782.0 → 3.792.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 CHANGED
@@ -124,6 +124,7 @@ __export(index_exports, {
124
124
  ExternalSource: () => ExternalSource,
125
125
  FilterField: () => FilterField,
126
126
  FilterOperator: () => FilterOperator,
127
+ GenerativeChunkDataDetailsFilterSensitiveLog: () => GenerativeChunkDataDetailsFilterSensitiveLog,
127
128
  GenerativeDataDetailsFilterSensitiveLog: () => GenerativeDataDetailsFilterSensitiveLog,
128
129
  GetAIAgentCommand: () => GetAIAgentCommand,
129
130
  GetAIGuardrailCommand: () => GetAIGuardrailCommand,
@@ -774,7 +775,9 @@ var GuardrailManagedWordsType = {
774
775
  };
775
776
  var AIPromptAPIFormat = {
776
777
  ANTHROPIC_CLAUDE_MESSAGES: "ANTHROPIC_CLAUDE_MESSAGES",
777
- ANTHROPIC_CLAUDE_TEXT_COMPLETIONS: "ANTHROPIC_CLAUDE_TEXT_COMPLETIONS"
778
+ ANTHROPIC_CLAUDE_TEXT_COMPLETIONS: "ANTHROPIC_CLAUDE_TEXT_COMPLETIONS",
779
+ MESSAGES: "MESSAGES",
780
+ TEXT_COMPLETIONS: "TEXT_COMPLETIONS"
778
781
  };
779
782
  var AIPromptTemplateConfiguration;
780
783
  ((AIPromptTemplateConfiguration3) => {
@@ -848,9 +851,13 @@ var DataReference;
848
851
  }, "visit");
849
852
  })(DataReference || (DataReference = {}));
850
853
  var RecommendationType = {
854
+ BLOCKED_GENERATIVE_ANSWER_CHUNK: "BLOCKED_GENERATIVE_ANSWER_CHUNK",
855
+ BLOCKED_INTENT_ANSWER_CHUNK: "BLOCKED_INTENT_ANSWER_CHUNK",
851
856
  DETECTED_INTENT: "DETECTED_INTENT",
852
857
  GENERATIVE_ANSWER: "GENERATIVE_ANSWER",
858
+ GENERATIVE_ANSWER_CHUNK: "GENERATIVE_ANSWER_CHUNK",
853
859
  GENERATIVE_RESPONSE: "GENERATIVE_RESPONSE",
860
+ INTENT_ANSWER_CHUNK: "INTENT_ANSWER_CHUNK",
854
861
  KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT"
855
862
  };
856
863
  var RecommendationTriggerData;
@@ -907,8 +914,12 @@ var QueryInputData;
907
914
  }, "visit");
908
915
  })(QueryInputData || (QueryInputData = {}));
909
916
  var QueryResultType = {
917
+ BLOCKED_GENERATIVE_ANSWER_CHUNK: "BLOCKED_GENERATIVE_ANSWER_CHUNK",
918
+ BLOCKED_INTENT_ANSWER_CHUNK: "BLOCKED_INTENT_ANSWER_CHUNK",
910
919
  GENERATIVE_ANSWER: "GENERATIVE_ANSWER",
920
+ GENERATIVE_ANSWER_CHUNK: "GENERATIVE_ANSWER_CHUNK",
911
921
  INTENT_ANSWER: "INTENT_ANSWER",
922
+ INTENT_ANSWER_CHUNK: "INTENT_ANSWER_CHUNK",
912
923
  KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT"
913
924
  };
914
925
  var RequestTimeoutException = class _RequestTimeoutException extends QConnectServiceException {
@@ -1668,10 +1679,6 @@ var ExtendedMessageTemplateDataFilterSensitiveLog = /* @__PURE__ */ __name((obj)
1668
1679
  attachments: obj.attachments.map((item) => MessageTemplateAttachmentFilterSensitiveLog(item))
1669
1680
  }
1670
1681
  }), "ExtendedMessageTemplateDataFilterSensitiveLog");
1671
- var CreateMessageTemplateVersionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1672
- ...obj,
1673
- ...obj.messageTemplate && { messageTemplate: ExtendedMessageTemplateDataFilterSensitiveLog(obj.messageTemplate) }
1674
- }), "CreateMessageTemplateVersionResponseFilterSensitiveLog");
1675
1682
 
1676
1683
  // src/models/models_1.ts
1677
1684
 
@@ -1769,9 +1776,14 @@ var DataDetails;
1769
1776
  if (value.generativeData !== void 0) return visitor.generativeData(value.generativeData);
1770
1777
  if (value.intentDetectedData !== void 0) return visitor.intentDetectedData(value.intentDetectedData);
1771
1778
  if (value.sourceContentData !== void 0) return visitor.sourceContentData(value.sourceContentData);
1779
+ if (value.generativeChunkData !== void 0) return visitor.generativeChunkData(value.generativeChunkData);
1772
1780
  return visitor._(value.$unknown[0], value.$unknown[1]);
1773
1781
  }, "visit");
1774
1782
  })(DataDetails || (DataDetails = {}));
1783
+ var CreateMessageTemplateVersionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1784
+ ...obj,
1785
+ ...obj.messageTemplate && { messageTemplate: ExtendedMessageTemplateDataFilterSensitiveLog(obj.messageTemplate) }
1786
+ }), "CreateMessageTemplateVersionResponseFilterSensitiveLog");
1775
1787
  var QuickResponseDataProviderFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1776
1788
  if (obj.content !== void 0) return { content: import_smithy_client.SENSITIVE_STRING };
1777
1789
  if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
@@ -1942,6 +1954,8 @@ var DataDetailsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1942
1954
  return { intentDetectedData: IntentDetectedDataDetailsFilterSensitiveLog(obj.intentDetectedData) };
1943
1955
  if (obj.sourceContentData !== void 0)
1944
1956
  return { sourceContentData: SourceContentDataDetailsFilterSensitiveLog(obj.sourceContentData) };
1957
+ if (obj.generativeChunkData !== void 0)
1958
+ return { generativeChunkData: GenerativeChunkDataDetailsFilterSensitiveLog(obj.generativeChunkData) };
1945
1959
  if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
1946
1960
  }, "DataDetailsFilterSensitiveLog");
1947
1961
  var DataSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
@@ -1949,6 +1963,11 @@ var DataSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1949
1963
  ...obj.reference && { reference: obj.reference },
1950
1964
  ...obj.details && { details: DataDetailsFilterSensitiveLog(obj.details) }
1951
1965
  }), "DataSummaryFilterSensitiveLog");
1966
+ var GenerativeChunkDataDetailsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1967
+ ...obj,
1968
+ ...obj.completion && { completion: import_smithy_client.SENSITIVE_STRING },
1969
+ ...obj.references && { references: obj.references.map((item) => DataSummaryFilterSensitiveLog(item)) }
1970
+ }), "GenerativeChunkDataDetailsFilterSensitiveLog");
1952
1971
  var GenerativeDataDetailsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1953
1972
  ...obj,
1954
1973
  ...obj.completion && { completion: import_smithy_client.SENSITIVE_STRING },
@@ -2644,7 +2663,8 @@ var se_GetRecommendationsCommand = /* @__PURE__ */ __name(async (input, context)
2644
2663
  b.p("sessionId", () => input.sessionId, "{sessionId}", false);
2645
2664
  const query = (0, import_smithy_client.map)({
2646
2665
  [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
2647
- [_wTS]: [() => input.waitTimeSeconds !== void 0, () => input[_wTS].toString()]
2666
+ [_wTS]: [() => input.waitTimeSeconds !== void 0, () => input[_wTS].toString()],
2667
+ [_nCT]: [, input[_nCT]]
2648
2668
  });
2649
2669
  let body;
2650
2670
  b.m("GET").h(headers).q(query).b(body);
@@ -3073,6 +3093,7 @@ var se_SendMessageCommand = /* @__PURE__ */ __name(async (input, context) => {
3073
3093
  body = JSON.stringify(
3074
3094
  (0, import_smithy_client.take)(input, {
3075
3095
  clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
3096
+ configuration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "configuration"),
3076
3097
  conversationContext: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "conversationContext"),
3077
3098
  message: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "message"),
3078
3099
  type: []
@@ -4405,6 +4426,7 @@ var de_SendMessageCommand = /* @__PURE__ */ __name(async (output, context) => {
4405
4426
  });
4406
4427
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
4407
4428
  const doc = (0, import_smithy_client.take)(data, {
4429
+ configuration: import_smithy_client._json,
4408
4430
  nextMessageToken: import_smithy_client.expectString,
4409
4431
  requestMessageId: import_smithy_client.expectString
4410
4432
  });
@@ -5021,6 +5043,11 @@ var de_DataDetails = /* @__PURE__ */ __name((output, context) => {
5021
5043
  contentData: de_ContentDataDetails(output.contentData, context)
5022
5044
  };
5023
5045
  }
5046
+ if (output.generativeChunkData != null) {
5047
+ return {
5048
+ generativeChunkData: de_GenerativeChunkDataDetails(output.generativeChunkData, context)
5049
+ };
5050
+ }
5024
5051
  if (output.generativeData != null) {
5025
5052
  return {
5026
5053
  generativeData: de_GenerativeDataDetails(output.generativeData, context)
@@ -5074,6 +5101,13 @@ var de_ExtendedMessageTemplateData = /* @__PURE__ */ __name((output, context) =>
5074
5101
  versionNumber: import_smithy_client.expectLong
5075
5102
  });
5076
5103
  }, "de_ExtendedMessageTemplateData");
5104
+ var de_GenerativeChunkDataDetails = /* @__PURE__ */ __name((output, context) => {
5105
+ return (0, import_smithy_client.take)(output, {
5106
+ completion: import_smithy_client.expectString,
5107
+ nextChunkToken: import_smithy_client.expectString,
5108
+ references: /* @__PURE__ */ __name((_) => de_DataSummaryList(_, context), "references")
5109
+ });
5110
+ }, "de_GenerativeChunkDataDetails");
5077
5111
  var de_GenerativeDataDetails = /* @__PURE__ */ __name((output, context) => {
5078
5112
  return (0, import_smithy_client.take)(output, {
5079
5113
  completion: import_smithy_client.expectString,
@@ -5376,6 +5410,7 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
5376
5410
  }), "deserializeMetadata");
5377
5411
  var _aAT = "aiAgentType";
5378
5412
  var _mR = "maxResults";
5413
+ var _nCT = "nextChunkToken";
5379
5414
  var _nMT = "nextMessageToken";
5380
5415
  var _nT = "nextToken";
5381
5416
  var _o = "origin";
@@ -7215,7 +7250,6 @@ var paginateSearchSessions = (0, import_core.createPaginator)(QConnectClient, Se
7215
7250
  MessageTemplateAttachmentFilterSensitiveLog,
7216
7251
  CreateMessageTemplateAttachmentResponseFilterSensitiveLog,
7217
7252
  ExtendedMessageTemplateDataFilterSensitiveLog,
7218
- CreateMessageTemplateVersionResponseFilterSensitiveLog,
7219
7253
  QuickResponseDataProvider,
7220
7254
  QuickResponseContentProvider,
7221
7255
  QuickResponseStatus,
@@ -7230,6 +7264,7 @@ var paginateSearchSessions = (0, import_core.createPaginator)(QConnectClient, Se
7230
7264
  QuickResponseQueryOperator,
7231
7265
  TooManyTagsException,
7232
7266
  DataDetails,
7267
+ CreateMessageTemplateVersionResponseFilterSensitiveLog,
7233
7268
  QuickResponseDataProviderFilterSensitiveLog,
7234
7269
  CreateQuickResponseRequestFilterSensitiveLog,
7235
7270
  QuickResponseContentProviderFilterSensitiveLog,
@@ -7263,6 +7298,7 @@ var paginateSearchSessions = (0, import_core.createPaginator)(QConnectClient, Se
7263
7298
  UpdateKnowledgeBaseTemplateUriResponseFilterSensitiveLog,
7264
7299
  DataDetailsFilterSensitiveLog,
7265
7300
  DataSummaryFilterSensitiveLog,
7301
+ GenerativeChunkDataDetailsFilterSensitiveLog,
7266
7302
  GenerativeDataDetailsFilterSensitiveLog,
7267
7303
  RecommendationDataFilterSensitiveLog,
7268
7304
  ResultDataFilterSensitiveLog,
@@ -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 { CreateMessageTemplateVersionResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { CreateMessageTemplateVersionResponseFilterSensitiveLog, } from "../models/models_1";
6
6
  import { de_CreateMessageTemplateVersionCommand, se_CreateMessageTemplateVersionCommand, } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
8
  export class CreateMessageTemplateVersionCommand extends $Command
@@ -209,6 +209,8 @@ export const GuardrailManagedWordsType = {
209
209
  export const AIPromptAPIFormat = {
210
210
  ANTHROPIC_CLAUDE_MESSAGES: "ANTHROPIC_CLAUDE_MESSAGES",
211
211
  ANTHROPIC_CLAUDE_TEXT_COMPLETIONS: "ANTHROPIC_CLAUDE_TEXT_COMPLETIONS",
212
+ MESSAGES: "MESSAGES",
213
+ TEXT_COMPLETIONS: "TEXT_COMPLETIONS",
212
214
  };
213
215
  export var AIPromptTemplateConfiguration;
214
216
  (function (AIPromptTemplateConfiguration) {
@@ -285,9 +287,13 @@ export var DataReference;
285
287
  };
286
288
  })(DataReference || (DataReference = {}));
287
289
  export const RecommendationType = {
290
+ BLOCKED_GENERATIVE_ANSWER_CHUNK: "BLOCKED_GENERATIVE_ANSWER_CHUNK",
291
+ BLOCKED_INTENT_ANSWER_CHUNK: "BLOCKED_INTENT_ANSWER_CHUNK",
288
292
  DETECTED_INTENT: "DETECTED_INTENT",
289
293
  GENERATIVE_ANSWER: "GENERATIVE_ANSWER",
294
+ GENERATIVE_ANSWER_CHUNK: "GENERATIVE_ANSWER_CHUNK",
290
295
  GENERATIVE_RESPONSE: "GENERATIVE_RESPONSE",
296
+ INTENT_ANSWER_CHUNK: "INTENT_ANSWER_CHUNK",
291
297
  KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT",
292
298
  };
293
299
  export var RecommendationTriggerData;
@@ -348,8 +354,12 @@ export var QueryInputData;
348
354
  };
349
355
  })(QueryInputData || (QueryInputData = {}));
350
356
  export const QueryResultType = {
357
+ BLOCKED_GENERATIVE_ANSWER_CHUNK: "BLOCKED_GENERATIVE_ANSWER_CHUNK",
358
+ BLOCKED_INTENT_ANSWER_CHUNK: "BLOCKED_INTENT_ANSWER_CHUNK",
351
359
  GENERATIVE_ANSWER: "GENERATIVE_ANSWER",
360
+ GENERATIVE_ANSWER_CHUNK: "GENERATIVE_ANSWER_CHUNK",
352
361
  INTENT_ANSWER: "INTENT_ANSWER",
362
+ INTENT_ANSWER_CHUNK: "INTENT_ANSWER_CHUNK",
353
363
  KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT",
354
364
  };
355
365
  export class RequestTimeoutException extends __BaseException {
@@ -1101,7 +1111,3 @@ export const ExtendedMessageTemplateDataFilterSensitiveLog = (obj) => ({
1101
1111
  attachments: obj.attachments.map((item) => MessageTemplateAttachmentFilterSensitiveLog(item)),
1102
1112
  }),
1103
1113
  });
1104
- export const CreateMessageTemplateVersionResponseFilterSensitiveLog = (obj) => ({
1105
- ...obj,
1106
- ...(obj.messageTemplate && { messageTemplate: ExtendedMessageTemplateDataFilterSensitiveLog(obj.messageTemplate) }),
1107
- });
@@ -91,9 +91,15 @@ export var DataDetails;
91
91
  return visitor.intentDetectedData(value.intentDetectedData);
92
92
  if (value.sourceContentData !== undefined)
93
93
  return visitor.sourceContentData(value.sourceContentData);
94
+ if (value.generativeChunkData !== undefined)
95
+ return visitor.generativeChunkData(value.generativeChunkData);
94
96
  return visitor._(value.$unknown[0], value.$unknown[1]);
95
97
  };
96
98
  })(DataDetails || (DataDetails = {}));
99
+ export const CreateMessageTemplateVersionResponseFilterSensitiveLog = (obj) => ({
100
+ ...obj,
101
+ ...(obj.messageTemplate && { messageTemplate: ExtendedMessageTemplateDataFilterSensitiveLog(obj.messageTemplate) }),
102
+ });
97
103
  export const QuickResponseDataProviderFilterSensitiveLog = (obj) => {
98
104
  if (obj.content !== undefined)
99
105
  return { content: SENSITIVE_STRING };
@@ -269,6 +275,8 @@ export const DataDetailsFilterSensitiveLog = (obj) => {
269
275
  return { intentDetectedData: IntentDetectedDataDetailsFilterSensitiveLog(obj.intentDetectedData) };
270
276
  if (obj.sourceContentData !== undefined)
271
277
  return { sourceContentData: SourceContentDataDetailsFilterSensitiveLog(obj.sourceContentData) };
278
+ if (obj.generativeChunkData !== undefined)
279
+ return { generativeChunkData: GenerativeChunkDataDetailsFilterSensitiveLog(obj.generativeChunkData) };
272
280
  if (obj.$unknown !== undefined)
273
281
  return { [obj.$unknown[0]]: "UNKNOWN" };
274
282
  };
@@ -277,6 +285,11 @@ export const DataSummaryFilterSensitiveLog = (obj) => ({
277
285
  ...(obj.reference && { reference: obj.reference }),
278
286
  ...(obj.details && { details: DataDetailsFilterSensitiveLog(obj.details) }),
279
287
  });
288
+ export const GenerativeChunkDataDetailsFilterSensitiveLog = (obj) => ({
289
+ ...obj,
290
+ ...(obj.completion && { completion: SENSITIVE_STRING }),
291
+ ...(obj.references && { references: obj.references.map((item) => DataSummaryFilterSensitiveLog(item)) }),
292
+ });
280
293
  export const GenerativeDataDetailsFilterSensitiveLog = (obj) => ({
281
294
  ...obj,
282
295
  ...(obj.completion && { completion: SENSITIVE_STRING }),
@@ -637,6 +637,7 @@ export const se_GetRecommendationsCommand = async (input, context) => {
637
637
  const query = map({
638
638
  [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
639
639
  [_wTS]: [() => input.waitTimeSeconds !== void 0, () => input[_wTS].toString()],
640
+ [_nCT]: [, input[_nCT]],
640
641
  });
641
642
  let body;
642
643
  b.m("GET").h(headers).q(query).b(body);
@@ -1048,6 +1049,7 @@ export const se_SendMessageCommand = async (input, context) => {
1048
1049
  let body;
1049
1050
  body = JSON.stringify(take(input, {
1050
1051
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
1052
+ configuration: (_) => _json(_),
1051
1053
  conversationContext: (_) => _json(_),
1052
1054
  message: (_) => _json(_),
1053
1055
  type: [],
@@ -2351,6 +2353,7 @@ export const de_SendMessageCommand = async (output, context) => {
2351
2353
  });
2352
2354
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2353
2355
  const doc = take(data, {
2356
+ configuration: _json,
2354
2357
  nextMessageToken: __expectString,
2355
2358
  requestMessageId: __expectString,
2356
2359
  });
@@ -2981,6 +2984,11 @@ const de_DataDetails = (output, context) => {
2981
2984
  contentData: de_ContentDataDetails(output.contentData, context),
2982
2985
  };
2983
2986
  }
2987
+ if (output.generativeChunkData != null) {
2988
+ return {
2989
+ generativeChunkData: de_GenerativeChunkDataDetails(output.generativeChunkData, context),
2990
+ };
2991
+ }
2984
2992
  if (output.generativeData != null) {
2985
2993
  return {
2986
2994
  generativeData: de_GenerativeDataDetails(output.generativeData, context),
@@ -3036,6 +3044,13 @@ const de_ExtendedMessageTemplateData = (output, context) => {
3036
3044
  versionNumber: __expectLong,
3037
3045
  });
3038
3046
  };
3047
+ const de_GenerativeChunkDataDetails = (output, context) => {
3048
+ return take(output, {
3049
+ completion: __expectString,
3050
+ nextChunkToken: __expectString,
3051
+ references: (_) => de_DataSummaryList(_, context),
3052
+ });
3053
+ };
3039
3054
  const de_GenerativeDataDetails = (output, context) => {
3040
3055
  return take(output, {
3041
3056
  completion: __expectString,
@@ -3359,6 +3374,7 @@ const deserializeMetadata = (output) => ({
3359
3374
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3360
3375
  const _aAT = "aiAgentType";
3361
3376
  const _mR = "maxResults";
3377
+ const _nCT = "nextChunkToken";
3362
3378
  const _nMT = "nextMessageToken";
3363
3379
  const _nT = "nextToken";
3364
3380
  const _o = "origin";
@@ -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 { CreateMessageTemplateVersionRequest, CreateMessageTemplateVersionResponse } from "../models/models_0";
3
+ import { CreateMessageTemplateVersionRequest } from "../models/models_0";
4
+ import { CreateMessageTemplateVersionResponse } from "../models/models_1";
4
5
  import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient";
5
6
  /**
6
7
  * @public
@@ -109,6 +109,7 @@ declare const CreateSessionCommand_base: {
109
109
  * // aiAgentId: "STRING_VALUE", // required
110
110
  * // },
111
111
  * // },
112
+ * // origin: "STRING_VALUE",
112
113
  * // },
113
114
  * // };
114
115
  *
@@ -53,6 +53,12 @@ declare const DeleteContentCommand_base: {
53
53
  * @throws {@link AccessDeniedException} (client fault)
54
54
  * <p>You do not have sufficient access to perform this action.</p>
55
55
  *
56
+ * @throws {@link ConflictException} (client fault)
57
+ * <p>The request could not be processed because of conflict in the current state of the
58
+ * resource. For example, if you're using a <code>Create</code> API (such as
59
+ * <code>CreateAssistant</code>) that accepts name, a conflicting resource (usually with the
60
+ * same name) is being created or mutated.</p>
61
+ *
56
62
  * @throws {@link ResourceNotFoundException} (client fault)
57
63
  * <p>The specified resource does not exist.</p>
58
64
  *
@@ -51,6 +51,7 @@ declare const GetRecommendationsCommand_base: {
51
51
  * sessionId: "STRING_VALUE", // required
52
52
  * maxResults: Number("int"),
53
53
  * waitTimeSeconds: Number("int"),
54
+ * nextChunkToken: "STRING_VALUE",
54
55
  * };
55
56
  * const command = new GetRecommendationsCommand(input);
56
57
  * const response = await client.send(command);
@@ -183,6 +184,13 @@ declare const GetRecommendationsCommand_base: {
183
184
  * // endOffsetExclusive: Number("int"),
184
185
  * // },
185
186
  * // },
187
+ * // generativeChunkData: { // GenerativeChunkDataDetails
188
+ * // completion: "STRING_VALUE",
189
+ * // references: [
190
+ * // "<DataSummary>",
191
+ * // ],
192
+ * // nextChunkToken: "STRING_VALUE",
193
+ * // },
186
194
  * // },
187
195
  * // },
188
196
  * // ],
@@ -208,6 +216,13 @@ declare const GetRecommendationsCommand_base: {
208
216
  * // endOffsetExclusive: Number("int"),
209
217
  * // },
210
218
  * // },
219
+ * // generativeChunkData: {
220
+ * // completion: "STRING_VALUE",
221
+ * // references: [
222
+ * // "<DataSummary>",
223
+ * // ],
224
+ * // nextChunkToken: "STRING_VALUE",
225
+ * // },
211
226
  * // },
212
227
  * // },
213
228
  * // },
@@ -77,6 +77,7 @@ declare const GetSessionCommand_base: {
77
77
  * // aiAgentId: "STRING_VALUE", // required
78
78
  * // },
79
79
  * // },
80
+ * // origin: "STRING_VALUE",
80
81
  * // },
81
82
  * // };
82
83
  *
@@ -198,6 +198,13 @@ declare const QueryAssistantCommand_base: {
198
198
  * // endOffsetExclusive: Number("int"),
199
199
  * // },
200
200
  * // },
201
+ * // generativeChunkData: { // GenerativeChunkDataDetails
202
+ * // completion: "STRING_VALUE",
203
+ * // references: [
204
+ * // "<DataSummary>",
205
+ * // ],
206
+ * // nextChunkToken: "STRING_VALUE",
207
+ * // },
201
208
  * // },
202
209
  * // },
203
210
  * // ],
@@ -223,6 +230,13 @@ declare const QueryAssistantCommand_base: {
223
230
  * // endOffsetExclusive: Number("int"),
224
231
  * // },
225
232
  * // },
233
+ * // generativeChunkData: {
234
+ * // completion: "STRING_VALUE",
235
+ * // references: [
236
+ * // "<DataSummary>",
237
+ * // ],
238
+ * // nextChunkToken: "STRING_VALUE",
239
+ * // },
226
240
  * // },
227
241
  * // },
228
242
  * // type: "STRING_VALUE",
@@ -54,12 +54,18 @@ declare const SendMessageCommand_base: {
54
54
  * },
55
55
  * ],
56
56
  * },
57
+ * configuration: { // MessageConfiguration
58
+ * generateFillerMessage: true || false,
59
+ * },
57
60
  * clientToken: "STRING_VALUE",
58
61
  * };
59
62
  * const command = new SendMessageCommand(input);
60
63
  * const response = await client.send(command);
61
64
  * // { // SendMessageResponse
62
65
  * // requestMessageId: "STRING_VALUE", // required
66
+ * // configuration: { // MessageConfiguration
67
+ * // generateFillerMessage: true || false,
68
+ * // },
63
69
  * // nextMessageToken: "STRING_VALUE", // required
64
70
  * // };
65
71
  *
@@ -105,6 +105,7 @@ declare const UpdateSessionCommand_base: {
105
105
  * // aiAgentId: "STRING_VALUE", // required
106
106
  * // },
107
107
  * // },
108
+ * // origin: "STRING_VALUE",
108
109
  * // },
109
110
  * // };
110
111
  *
@@ -2278,6 +2278,8 @@ export interface UpdateAIGuardrailResponse {
2278
2278
  export declare const AIPromptAPIFormat: {
2279
2279
  readonly ANTHROPIC_CLAUDE_MESSAGES: "ANTHROPIC_CLAUDE_MESSAGES";
2280
2280
  readonly ANTHROPIC_CLAUDE_TEXT_COMPLETIONS: "ANTHROPIC_CLAUDE_TEXT_COMPLETIONS";
2281
+ readonly MESSAGES: "MESSAGES";
2282
+ readonly TEXT_COMPLETIONS: "TEXT_COMPLETIONS";
2281
2283
  };
2282
2284
  /**
2283
2285
  * @public
@@ -2397,14 +2399,18 @@ export interface CreateAIPromptRequest {
2397
2399
  */
2398
2400
  templateType: AIPromptTemplateType | undefined;
2399
2401
  /**
2400
- * <p>The identifier of the model used for this AI Prompt. Model Ids supported are:
2401
- * <code>anthropic.claude-3-haiku-20240307-v1:0</code>
2402
- * </p>
2402
+ * <p>The identifier of the model used for this AI Prompt.</p>
2403
2403
  * @public
2404
2404
  */
2405
2405
  modelId: string | undefined;
2406
2406
  /**
2407
2407
  * <p>The API Format of the AI Prompt.</p>
2408
+ * <p>Recommended values: <code>MESSAGES | TEXT_COMPLETIONS</code>
2409
+ * </p>
2410
+ * <note>
2411
+ * <p>The values <code>ANTHROPIC_CLAUDE_MESSAGES | ANTHROPIC_CLAUDE_TEXT_COMPLETIONS</code>
2412
+ * will be deprecated.</p>
2413
+ * </note>
2408
2414
  * @public
2409
2415
  */
2410
2416
  apiFormat: AIPromptAPIFormat | undefined;
@@ -2461,8 +2467,95 @@ export interface AIPromptData {
2461
2467
  */
2462
2468
  templateType: AIPromptTemplateType | undefined;
2463
2469
  /**
2464
- * <p>The identifier of the model used for this AI Prompt. Model Ids supported are:
2465
- * <code>anthropic.claude-3-haiku-20240307-v1:0</code>.</p>
2470
+ * <p>The identifier of the model used for this AI Prompt. The following model Ids are
2471
+ * supported:</p>
2472
+ * <ul>
2473
+ * <li>
2474
+ * <p>
2475
+ * <code>anthropic.claude-3-haiku--v1:0</code>
2476
+ * </p>
2477
+ * </li>
2478
+ * <li>
2479
+ * <p>
2480
+ * <code>apac.amazon.nova-lite-v1:0</code>
2481
+ * </p>
2482
+ * </li>
2483
+ * <li>
2484
+ * <p>
2485
+ * <code>apac.amazon.nova-micro-v1:0</code>
2486
+ * </p>
2487
+ * </li>
2488
+ * <li>
2489
+ * <p>
2490
+ * <code>apac.amazon.nova-pro-v1:0</code>
2491
+ * </p>
2492
+ * </li>
2493
+ * <li>
2494
+ * <p>
2495
+ * <code>apac.anthropic.claude-3-5-sonnet--v2:0</code>
2496
+ * </p>
2497
+ * </li>
2498
+ * <li>
2499
+ * <p>
2500
+ * <code>apac.anthropic.claude-3-haiku-20240307-v1:0</code>
2501
+ * </p>
2502
+ * </li>
2503
+ * <li>
2504
+ * <p>
2505
+ * <code>eu.amazon.nova-lite-v1:0</code>
2506
+ * </p>
2507
+ * </li>
2508
+ * <li>
2509
+ * <p>
2510
+ * <code>eu.amazon.nova-micro-v1:0</code>
2511
+ * </p>
2512
+ * </li>
2513
+ * <li>
2514
+ * <p>
2515
+ * <code>eu.amazon.nova-pro-v1:0</code>
2516
+ * </p>
2517
+ * </li>
2518
+ * <li>
2519
+ * <p>
2520
+ * <code>eu.anthropic.claude-3-7-sonnet-20250219-v1:0</code>
2521
+ * </p>
2522
+ * </li>
2523
+ * <li>
2524
+ * <p>
2525
+ * <code>eu.anthropic.claude-3-haiku-20240307-v1:0</code>
2526
+ * </p>
2527
+ * </li>
2528
+ * <li>
2529
+ * <p>
2530
+ * <code>us.amazon.nova-lite-v1:0</code>
2531
+ * </p>
2532
+ * </li>
2533
+ * <li>
2534
+ * <p>
2535
+ * <code>us.amazon.nova-micro-v1:0</code>
2536
+ * </p>
2537
+ * </li>
2538
+ * <li>
2539
+ * <p>
2540
+ * <code>us.amazon.nova-pro-v1:0</code>
2541
+ * </p>
2542
+ * </li>
2543
+ * <li>
2544
+ * <p>
2545
+ * <code>us.anthropic.claude-3-5-haiku-20241022-v1:0</code>
2546
+ * </p>
2547
+ * </li>
2548
+ * <li>
2549
+ * <p>
2550
+ * <code>us.anthropic.claude-3-7-sonnet-20250219-v1:0</code>
2551
+ * </p>
2552
+ * </li>
2553
+ * <li>
2554
+ * <p>
2555
+ * <code>us.anthropic.claude-3-haiku-20240307-v1:0</code>
2556
+ * </p>
2557
+ * </li>
2558
+ * </ul>
2466
2559
  * @public
2467
2560
  */
2468
2561
  modelId: string | undefined;
@@ -2720,7 +2813,7 @@ export interface AIPromptSummary {
2720
2813
  templateType: AIPromptTemplateType | undefined;
2721
2814
  /**
2722
2815
  * <p>The identifier of the model used for this AI Prompt. Model Ids supported are:
2723
- * <code>anthropic.claude-3-haiku-20240307-v1:0</code>.</p>
2816
+ * <code>anthropic.claude-3-haiku-20240307-v1:0</code>.</p>
2724
2817
  * @public
2725
2818
  */
2726
2819
  modelId: string | undefined;
@@ -3532,6 +3625,12 @@ export interface GetRecommendationsRequest {
3532
3625
  * @public
3533
3626
  */
3534
3627
  waitTimeSeconds?: number | undefined;
3628
+ /**
3629
+ * <p>The token for the next set of chunks. Use the value returned in the previous response in
3630
+ * the next request to retrieve the next set of chunks.</p>
3631
+ * @public
3632
+ */
3633
+ nextChunkToken?: string | undefined;
3535
3634
  }
3536
3635
  /**
3537
3636
  * @public
@@ -3835,9 +3934,13 @@ export interface Document {
3835
3934
  * @enum
3836
3935
  */
3837
3936
  export declare const RecommendationType: {
3937
+ readonly BLOCKED_GENERATIVE_ANSWER_CHUNK: "BLOCKED_GENERATIVE_ANSWER_CHUNK";
3938
+ readonly BLOCKED_INTENT_ANSWER_CHUNK: "BLOCKED_INTENT_ANSWER_CHUNK";
3838
3939
  readonly DETECTED_INTENT: "DETECTED_INTENT";
3839
3940
  readonly GENERATIVE_ANSWER: "GENERATIVE_ANSWER";
3941
+ readonly GENERATIVE_ANSWER_CHUNK: "GENERATIVE_ANSWER_CHUNK";
3840
3942
  readonly GENERATIVE_RESPONSE: "GENERATIVE_RESPONSE";
3943
+ readonly INTENT_ANSWER_CHUNK: "INTENT_ANSWER_CHUNK";
3841
3944
  readonly KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT";
3842
3945
  };
3843
3946
  /**
@@ -4417,8 +4520,12 @@ export interface QueryAssistantRequest {
4417
4520
  * @enum
4418
4521
  */
4419
4522
  export declare const QueryResultType: {
4523
+ readonly BLOCKED_GENERATIVE_ANSWER_CHUNK: "BLOCKED_GENERATIVE_ANSWER_CHUNK";
4524
+ readonly BLOCKED_INTENT_ANSWER_CHUNK: "BLOCKED_INTENT_ANSWER_CHUNK";
4420
4525
  readonly GENERATIVE_ANSWER: "GENERATIVE_ANSWER";
4526
+ readonly GENERATIVE_ANSWER_CHUNK: "GENERATIVE_ANSWER_CHUNK";
4421
4527
  readonly INTENT_ANSWER: "INTENT_ANSWER";
4528
+ readonly INTENT_ANSWER_CHUNK: "INTENT_ANSWER_CHUNK";
4422
4529
  readonly KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT";
4423
4530
  };
4424
4531
  /**
@@ -4684,6 +4791,12 @@ export interface SessionData {
4684
4791
  * @public
4685
4792
  */
4686
4793
  aiAgentConfiguration?: Partial<Record<AIAgentType, AIAgentConfigurationData>> | undefined;
4794
+ /**
4795
+ * <p>The origin of the Session to be listed. <code>SYSTEM</code> for a default Session created
4796
+ * by Amazon Q in Connect or <code>CUSTOMER</code> for a Session created by calling <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_amazon-q-connect_CreateSession.html">CreateSession</a> API.</p>
4797
+ * @public
4798
+ */
4799
+ origin?: Origin | undefined;
4687
4800
  }
4688
4801
  /**
4689
4802
  * @public
@@ -4998,8 +5111,20 @@ export interface ListMessagesResponse {
4998
5111
  nextToken?: string | undefined;
4999
5112
  }
5000
5113
  /**
5001
- * <p>The conversation history data to included in conversation context data before the
5002
- * Amazon Q in Connect session.</p>
5114
+ * <p>The configuration for a <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_amazon-q-connect_SendMessage.html">SendMessage</a>
5115
+ * request.</p>
5116
+ * @public
5117
+ */
5118
+ export interface MessageConfiguration {
5119
+ /**
5120
+ * <p>Generates a filler response when tool selection is <code>QUESTION</code>.</p>
5121
+ * @public
5122
+ */
5123
+ generateFillerMessage?: boolean | undefined;
5124
+ }
5125
+ /**
5126
+ * <p>The conversation history data to included in conversation context data before the Amazon Q
5127
+ * in Connect session.</p>
5003
5128
  * @public
5004
5129
  */
5005
5130
  export interface SelfServiceConversationHistory {
@@ -5070,6 +5195,12 @@ export interface SendMessageRequest {
5070
5195
  * @public
5071
5196
  */
5072
5197
  conversationContext?: ConversationContext | undefined;
5198
+ /**
5199
+ * <p>The configuration of the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_amazon-q-connect_SendMessage.html">SendMessage</a>
5200
+ * request.</p>
5201
+ * @public
5202
+ */
5203
+ configuration?: MessageConfiguration | undefined;
5073
5204
  /**
5074
5205
  * <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the
5075
5206
  * request. If not provided, the AWS SDK populates this field.For more information about
@@ -5087,6 +5218,12 @@ export interface SendMessageResponse {
5087
5218
  * @public
5088
5219
  */
5089
5220
  requestMessageId: string | undefined;
5221
+ /**
5222
+ * <p>The configuration of the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_amazon-q-connect_SendMessage.html">SendMessage</a>
5223
+ * request.</p>
5224
+ * @public
5225
+ */
5226
+ configuration?: MessageConfiguration | undefined;
5090
5227
  /**
5091
5228
  * <p>The token for the next message, used by GetNextMessage.</p>
5092
5229
  * @public
@@ -7531,16 +7668,6 @@ export interface ExtendedMessageTemplateData {
7531
7668
  */
7532
7669
  tags?: Record<string, string> | undefined;
7533
7670
  }
7534
- /**
7535
- * @public
7536
- */
7537
- export interface CreateMessageTemplateVersionResponse {
7538
- /**
7539
- * <p>The message template.</p>
7540
- * @public
7541
- */
7542
- messageTemplate?: ExtendedMessageTemplateData | undefined;
7543
- }
7544
7671
  /**
7545
7672
  * @internal
7546
7673
  */
@@ -7889,7 +8016,3 @@ export declare const CreateMessageTemplateAttachmentResponseFilterSensitiveLog:
7889
8016
  * @internal
7890
8017
  */
7891
8018
  export declare const ExtendedMessageTemplateDataFilterSensitiveLog: (obj: ExtendedMessageTemplateData) => any;
7892
- /**
7893
- * @internal
7894
- */
7895
- export declare const CreateMessageTemplateVersionResponseFilterSensitiveLog: (obj: CreateMessageTemplateVersionResponse) => any;
@@ -1,6 +1,16 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { ChannelSubtype, Configuration, ContentDataDetails, ContentSummary, DataReference, Document, ExtendedMessageTemplateData, GroupingConfiguration, IntentDetectedDataDetails, KnowledgeBaseData, KnowledgeBaseStatus, KnowledgeBaseType, MessageTemplateAttachment, MessageTemplateAttributes, MessageTemplateContentProvider, MessageTemplateData, QueryResultType, RankingData, RecommendationTrigger, RecommendationType, RelevanceLevel, RenderingConfiguration, SearchExpression, ServerSideEncryptionConfiguration, SourceConfiguration, SourceContentDataDetails, VectorIngestionConfiguration } from "./models_0";
3
3
  import { QConnectServiceException as __BaseException } from "./QConnectServiceException";
4
+ /**
5
+ * @public
6
+ */
7
+ export interface CreateMessageTemplateVersionResponse {
8
+ /**
9
+ * <p>The message template.</p>
10
+ * @public
11
+ */
12
+ messageTemplate?: ExtendedMessageTemplateData | undefined;
13
+ }
4
14
  /**
5
15
  * <p>The container of quick response data.</p>
6
16
  * @public
@@ -2412,7 +2422,7 @@ export interface UntagResourceResponse {
2412
2422
  * <p>Details about the data.</p>
2413
2423
  * @public
2414
2424
  */
2415
- export type DataDetails = DataDetails.ContentDataMember | DataDetails.GenerativeDataMember | DataDetails.IntentDetectedDataMember | DataDetails.SourceContentDataMember | DataDetails.$UnknownMember;
2425
+ export type DataDetails = DataDetails.ContentDataMember | DataDetails.GenerativeChunkDataMember | DataDetails.GenerativeDataMember | DataDetails.IntentDetectedDataMember | DataDetails.SourceContentDataMember | DataDetails.$UnknownMember;
2416
2426
  /**
2417
2427
  * @public
2418
2428
  */
@@ -2426,6 +2436,7 @@ export declare namespace DataDetails {
2426
2436
  generativeData?: never;
2427
2437
  intentDetectedData?: never;
2428
2438
  sourceContentData?: never;
2439
+ generativeChunkData?: never;
2429
2440
  $unknown?: never;
2430
2441
  }
2431
2442
  /**
@@ -2437,6 +2448,7 @@ export declare namespace DataDetails {
2437
2448
  generativeData: GenerativeDataDetails;
2438
2449
  intentDetectedData?: never;
2439
2450
  sourceContentData?: never;
2451
+ generativeChunkData?: never;
2440
2452
  $unknown?: never;
2441
2453
  }
2442
2454
  /**
@@ -2448,6 +2460,7 @@ export declare namespace DataDetails {
2448
2460
  generativeData?: never;
2449
2461
  intentDetectedData: IntentDetectedDataDetails;
2450
2462
  sourceContentData?: never;
2463
+ generativeChunkData?: never;
2451
2464
  $unknown?: never;
2452
2465
  }
2453
2466
  /**
@@ -2459,6 +2472,19 @@ export declare namespace DataDetails {
2459
2472
  generativeData?: never;
2460
2473
  intentDetectedData?: never;
2461
2474
  sourceContentData: SourceContentDataDetails;
2475
+ generativeChunkData?: never;
2476
+ $unknown?: never;
2477
+ }
2478
+ /**
2479
+ * <p>Details about the generative chunk data.</p>
2480
+ * @public
2481
+ */
2482
+ interface GenerativeChunkDataMember {
2483
+ contentData?: never;
2484
+ generativeData?: never;
2485
+ intentDetectedData?: never;
2486
+ sourceContentData?: never;
2487
+ generativeChunkData: GenerativeChunkDataDetails;
2462
2488
  $unknown?: never;
2463
2489
  }
2464
2490
  /**
@@ -2469,6 +2495,7 @@ export declare namespace DataDetails {
2469
2495
  generativeData?: never;
2470
2496
  intentDetectedData?: never;
2471
2497
  sourceContentData?: never;
2498
+ generativeChunkData?: never;
2472
2499
  $unknown: [string, any];
2473
2500
  }
2474
2501
  interface Visitor<T> {
@@ -2476,6 +2503,7 @@ export declare namespace DataDetails {
2476
2503
  generativeData: (value: GenerativeDataDetails) => T;
2477
2504
  intentDetectedData: (value: IntentDetectedDataDetails) => T;
2478
2505
  sourceContentData: (value: SourceContentDataDetails) => T;
2506
+ generativeChunkData: (value: GenerativeChunkDataDetails) => T;
2479
2507
  _: (name: string, value: any) => T;
2480
2508
  }
2481
2509
  const visit: <T>(value: DataDetails, visitor: Visitor<T>) => T;
@@ -2496,6 +2524,28 @@ export interface DataSummary {
2496
2524
  */
2497
2525
  details: DataDetails | undefined;
2498
2526
  }
2527
+ /**
2528
+ * <p>Details about the generative chunk data.</p>
2529
+ * @public
2530
+ */
2531
+ export interface GenerativeChunkDataDetails {
2532
+ /**
2533
+ * <p>A chunk of the LLM response.</p>
2534
+ * @public
2535
+ */
2536
+ completion?: string | undefined;
2537
+ /**
2538
+ * <p>The references used to generate the LLM response.</p>
2539
+ * @public
2540
+ */
2541
+ references?: DataSummary[] | undefined;
2542
+ /**
2543
+ * <p>The token for the next set of chunks. Use the value returned in the previous response in
2544
+ * the next request to retrieve the next set of chunks.</p>
2545
+ * @public
2546
+ */
2547
+ nextChunkToken?: string | undefined;
2548
+ }
2499
2549
  /**
2500
2550
  * <p>Details about generative data.</p>
2501
2551
  * @public
@@ -2614,6 +2664,10 @@ export interface QueryAssistantResponse {
2614
2664
  */
2615
2665
  nextToken?: string | undefined;
2616
2666
  }
2667
+ /**
2668
+ * @internal
2669
+ */
2670
+ export declare const CreateMessageTemplateVersionResponseFilterSensitiveLog: (obj: CreateMessageTemplateVersionResponse) => any;
2617
2671
  /**
2618
2672
  * @internal
2619
2673
  */
@@ -2746,6 +2800,10 @@ export declare const DataDetailsFilterSensitiveLog: (obj: DataDetails) => any;
2746
2800
  * @internal
2747
2801
  */
2748
2802
  export declare const DataSummaryFilterSensitiveLog: (obj: DataSummary) => any;
2803
+ /**
2804
+ * @internal
2805
+ */
2806
+ export declare const GenerativeChunkDataDetailsFilterSensitiveLog: (obj: GenerativeChunkDataDetails) => any;
2749
2807
  /**
2750
2808
  * @internal
2751
2809
  */
@@ -1,9 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import {
4
- CreateMessageTemplateVersionRequest,
5
- CreateMessageTemplateVersionResponse,
6
- } from "../models/models_0";
3
+ import { CreateMessageTemplateVersionRequest } from "../models/models_0";
4
+ import { CreateMessageTemplateVersionResponse } from "../models/models_1";
7
5
  import {
8
6
  QConnectClientResolvedConfig,
9
7
  ServiceInputTypes,
@@ -626,6 +626,8 @@ export interface UpdateAIGuardrailResponse {
626
626
  export declare const AIPromptAPIFormat: {
627
627
  readonly ANTHROPIC_CLAUDE_MESSAGES: "ANTHROPIC_CLAUDE_MESSAGES";
628
628
  readonly ANTHROPIC_CLAUDE_TEXT_COMPLETIONS: "ANTHROPIC_CLAUDE_TEXT_COMPLETIONS";
629
+ readonly MESSAGES: "MESSAGES";
630
+ readonly TEXT_COMPLETIONS: "TEXT_COMPLETIONS";
629
631
  };
630
632
  export type AIPromptAPIFormat =
631
633
  (typeof AIPromptAPIFormat)[keyof typeof AIPromptAPIFormat];
@@ -965,6 +967,7 @@ export interface GetRecommendationsRequest {
965
967
  sessionId: string | undefined;
966
968
  maxResults?: number | undefined;
967
969
  waitTimeSeconds?: number | undefined;
970
+ nextChunkToken?: string | undefined;
968
971
  }
969
972
  export declare const RelevanceLevel: {
970
973
  readonly HIGH: "HIGH";
@@ -1063,9 +1066,13 @@ export interface Document {
1063
1066
  excerpt?: DocumentText | undefined;
1064
1067
  }
1065
1068
  export declare const RecommendationType: {
1069
+ readonly BLOCKED_GENERATIVE_ANSWER_CHUNK: "BLOCKED_GENERATIVE_ANSWER_CHUNK";
1070
+ readonly BLOCKED_INTENT_ANSWER_CHUNK: "BLOCKED_INTENT_ANSWER_CHUNK";
1066
1071
  readonly DETECTED_INTENT: "DETECTED_INTENT";
1067
1072
  readonly GENERATIVE_ANSWER: "GENERATIVE_ANSWER";
1073
+ readonly GENERATIVE_ANSWER_CHUNK: "GENERATIVE_ANSWER_CHUNK";
1068
1074
  readonly GENERATIVE_RESPONSE: "GENERATIVE_RESPONSE";
1075
+ readonly INTENT_ANSWER_CHUNK: "INTENT_ANSWER_CHUNK";
1069
1076
  readonly KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT";
1070
1077
  };
1071
1078
  export type RecommendationType =
@@ -1270,8 +1277,12 @@ export interface QueryAssistantRequest {
1270
1277
  overrideKnowledgeBaseSearchType?: KnowledgeBaseSearchType | undefined;
1271
1278
  }
1272
1279
  export declare const QueryResultType: {
1280
+ readonly BLOCKED_GENERATIVE_ANSWER_CHUNK: "BLOCKED_GENERATIVE_ANSWER_CHUNK";
1281
+ readonly BLOCKED_INTENT_ANSWER_CHUNK: "BLOCKED_INTENT_ANSWER_CHUNK";
1273
1282
  readonly GENERATIVE_ANSWER: "GENERATIVE_ANSWER";
1283
+ readonly GENERATIVE_ANSWER_CHUNK: "GENERATIVE_ANSWER_CHUNK";
1274
1284
  readonly INTENT_ANSWER: "INTENT_ANSWER";
1285
+ readonly INTENT_ANSWER_CHUNK: "INTENT_ANSWER_CHUNK";
1275
1286
  readonly KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT";
1276
1287
  };
1277
1288
  export type QueryResultType =
@@ -1347,6 +1358,7 @@ export interface SessionData {
1347
1358
  aiAgentConfiguration?:
1348
1359
  | Partial<Record<AIAgentType, AIAgentConfigurationData>>
1349
1360
  | undefined;
1361
+ origin?: Origin | undefined;
1350
1362
  }
1351
1363
  export interface CreateSessionResponse {
1352
1364
  session?: SessionData | undefined;
@@ -1456,6 +1468,9 @@ export interface ListMessagesResponse {
1456
1468
  messages: MessageOutput[] | undefined;
1457
1469
  nextToken?: string | undefined;
1458
1470
  }
1471
+ export interface MessageConfiguration {
1472
+ generateFillerMessage?: boolean | undefined;
1473
+ }
1459
1474
  export interface SelfServiceConversationHistory {
1460
1475
  turnNumber: number | undefined;
1461
1476
  inputTranscript?: string | undefined;
@@ -1473,10 +1488,12 @@ export interface SendMessageRequest {
1473
1488
  type: MessageType | undefined;
1474
1489
  message: MessageInput | undefined;
1475
1490
  conversationContext?: ConversationContext | undefined;
1491
+ configuration?: MessageConfiguration | undefined;
1476
1492
  clientToken?: string | undefined;
1477
1493
  }
1478
1494
  export interface SendMessageResponse {
1479
1495
  requestMessageId: string | undefined;
1496
+ configuration?: MessageConfiguration | undefined;
1480
1497
  nextMessageToken: string | undefined;
1481
1498
  }
1482
1499
  export interface UpdateSessionRequest {
@@ -2149,9 +2166,6 @@ export interface ExtendedMessageTemplateData {
2149
2166
  messageTemplateContentSha256: string | undefined;
2150
2167
  tags?: Record<string, string> | undefined;
2151
2168
  }
2152
- export interface CreateMessageTemplateVersionResponse {
2153
- messageTemplate?: ExtendedMessageTemplateData | undefined;
2154
- }
2155
2169
  export declare const AgentAttributesFilterSensitiveLog: (
2156
2170
  obj: AgentAttributes
2157
2171
  ) => any;
@@ -2395,6 +2409,3 @@ export declare const CreateMessageTemplateAttachmentResponseFilterSensitiveLog:
2395
2409
  export declare const ExtendedMessageTemplateDataFilterSensitiveLog: (
2396
2410
  obj: ExtendedMessageTemplateData
2397
2411
  ) => any;
2398
- export declare const CreateMessageTemplateVersionResponseFilterSensitiveLog: (
2399
- obj: CreateMessageTemplateVersionResponse
2400
- ) => any;
@@ -29,6 +29,9 @@ import {
29
29
  VectorIngestionConfiguration,
30
30
  } from "./models_0";
31
31
  import { QConnectServiceException as __BaseException } from "./QConnectServiceException";
32
+ export interface CreateMessageTemplateVersionResponse {
33
+ messageTemplate?: ExtendedMessageTemplateData | undefined;
34
+ }
32
35
  export type QuickResponseDataProvider =
33
36
  | QuickResponseDataProvider.ContentMember
34
37
  | QuickResponseDataProvider.$UnknownMember;
@@ -590,6 +593,7 @@ export interface UntagResourceRequest {
590
593
  export interface UntagResourceResponse {}
591
594
  export type DataDetails =
592
595
  | DataDetails.ContentDataMember
596
+ | DataDetails.GenerativeChunkDataMember
593
597
  | DataDetails.GenerativeDataMember
594
598
  | DataDetails.IntentDetectedDataMember
595
599
  | DataDetails.SourceContentDataMember
@@ -600,6 +604,7 @@ export declare namespace DataDetails {
600
604
  generativeData?: never;
601
605
  intentDetectedData?: never;
602
606
  sourceContentData?: never;
607
+ generativeChunkData?: never;
603
608
  $unknown?: never;
604
609
  }
605
610
  interface GenerativeDataMember {
@@ -607,6 +612,7 @@ export declare namespace DataDetails {
607
612
  generativeData: GenerativeDataDetails;
608
613
  intentDetectedData?: never;
609
614
  sourceContentData?: never;
615
+ generativeChunkData?: never;
610
616
  $unknown?: never;
611
617
  }
612
618
  interface IntentDetectedDataMember {
@@ -614,6 +620,7 @@ export declare namespace DataDetails {
614
620
  generativeData?: never;
615
621
  intentDetectedData: IntentDetectedDataDetails;
616
622
  sourceContentData?: never;
623
+ generativeChunkData?: never;
617
624
  $unknown?: never;
618
625
  }
619
626
  interface SourceContentDataMember {
@@ -621,6 +628,15 @@ export declare namespace DataDetails {
621
628
  generativeData?: never;
622
629
  intentDetectedData?: never;
623
630
  sourceContentData: SourceContentDataDetails;
631
+ generativeChunkData?: never;
632
+ $unknown?: never;
633
+ }
634
+ interface GenerativeChunkDataMember {
635
+ contentData?: never;
636
+ generativeData?: never;
637
+ intentDetectedData?: never;
638
+ sourceContentData?: never;
639
+ generativeChunkData: GenerativeChunkDataDetails;
624
640
  $unknown?: never;
625
641
  }
626
642
  interface $UnknownMember {
@@ -628,6 +644,7 @@ export declare namespace DataDetails {
628
644
  generativeData?: never;
629
645
  intentDetectedData?: never;
630
646
  sourceContentData?: never;
647
+ generativeChunkData?: never;
631
648
  $unknown: [string, any];
632
649
  }
633
650
  interface Visitor<T> {
@@ -635,6 +652,7 @@ export declare namespace DataDetails {
635
652
  generativeData: (value: GenerativeDataDetails) => T;
636
653
  intentDetectedData: (value: IntentDetectedDataDetails) => T;
637
654
  sourceContentData: (value: SourceContentDataDetails) => T;
655
+ generativeChunkData: (value: GenerativeChunkDataDetails) => T;
638
656
  _: (name: string, value: any) => T;
639
657
  }
640
658
  const visit: <T>(value: DataDetails, visitor: Visitor<T>) => T;
@@ -643,6 +661,11 @@ export interface DataSummary {
643
661
  reference: DataReference | undefined;
644
662
  details: DataDetails | undefined;
645
663
  }
664
+ export interface GenerativeChunkDataDetails {
665
+ completion?: string | undefined;
666
+ references?: DataSummary[] | undefined;
667
+ nextChunkToken?: string | undefined;
668
+ }
646
669
  export interface GenerativeDataDetails {
647
670
  completion: string | undefined;
648
671
  references: DataSummary[] | undefined;
@@ -671,6 +694,9 @@ export interface QueryAssistantResponse {
671
694
  results: ResultData[] | undefined;
672
695
  nextToken?: string | undefined;
673
696
  }
697
+ export declare const CreateMessageTemplateVersionResponseFilterSensitiveLog: (
698
+ obj: CreateMessageTemplateVersionResponse
699
+ ) => any;
674
700
  export declare const QuickResponseDataProviderFilterSensitiveLog: (
675
701
  obj: QuickResponseDataProvider
676
702
  ) => any;
@@ -766,6 +792,9 @@ export declare const UpdateKnowledgeBaseTemplateUriResponseFilterSensitiveLog: (
766
792
  ) => any;
767
793
  export declare const DataDetailsFilterSensitiveLog: (obj: DataDetails) => any;
768
794
  export declare const DataSummaryFilterSensitiveLog: (obj: DataSummary) => any;
795
+ export declare const GenerativeChunkDataDetailsFilterSensitiveLog: (
796
+ obj: GenerativeChunkDataDetails
797
+ ) => any;
769
798
  export declare const GenerativeDataDetailsFilterSensitiveLog: (
770
799
  obj: GenerativeDataDetails
771
800
  ) => any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-qconnect",
3
3
  "description": "AWS SDK for JavaScript Qconnect Client for Node.js, Browser and React Native",
4
- "version": "3.782.0",
4
+ "version": "3.792.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-qconnect",
@@ -21,16 +21,16 @@
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
23
  "@aws-sdk/core": "3.775.0",
24
- "@aws-sdk/credential-provider-node": "3.782.0",
24
+ "@aws-sdk/credential-provider-node": "3.787.0",
25
25
  "@aws-sdk/middleware-host-header": "3.775.0",
26
26
  "@aws-sdk/middleware-logger": "3.775.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.775.0",
28
- "@aws-sdk/middleware-user-agent": "3.782.0",
28
+ "@aws-sdk/middleware-user-agent": "3.787.0",
29
29
  "@aws-sdk/region-config-resolver": "3.775.0",
30
30
  "@aws-sdk/types": "3.775.0",
31
- "@aws-sdk/util-endpoints": "3.782.0",
31
+ "@aws-sdk/util-endpoints": "3.787.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.775.0",
33
- "@aws-sdk/util-user-agent-node": "3.782.0",
33
+ "@aws-sdk/util-user-agent-node": "3.787.0",
34
34
  "@smithy/config-resolver": "^4.1.0",
35
35
  "@smithy/core": "^3.2.0",
36
36
  "@smithy/fetch-http-handler": "^5.0.2",