@aws-sdk/client-qconnect 3.549.0 → 3.553.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 (33) hide show
  1. package/README.md +19 -11
  2. package/dist-cjs/index.js +80 -1
  3. package/dist-es/QConnect.js +2 -0
  4. package/dist-es/commands/UpdateSessionCommand.js +24 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/models_0.js +22 -0
  7. package/dist-es/protocols/Aws_restJson1.js +31 -0
  8. package/dist-types/QConnect.d.ts +18 -11
  9. package/dist-types/QConnectClient.d.ts +14 -13
  10. package/dist-types/commands/CreateContentCommand.d.ts +1 -2
  11. package/dist-types/commands/CreateQuickResponseCommand.d.ts +1 -1
  12. package/dist-types/commands/CreateSessionCommand.d.ts +45 -2
  13. package/dist-types/commands/GetRecommendationsCommand.d.ts +7 -1
  14. package/dist-types/commands/GetSessionCommand.d.ts +20 -0
  15. package/dist-types/commands/PutFeedbackCommand.d.ts +2 -1
  16. package/dist-types/commands/QueryAssistantCommand.d.ts +8 -3
  17. package/dist-types/commands/SearchQuickResponsesCommand.d.ts +1 -1
  18. package/dist-types/commands/StartContentUploadCommand.d.ts +4 -2
  19. package/dist-types/commands/StartImportJobCommand.d.ts +5 -2
  20. package/dist-types/commands/UpdateKnowledgeBaseTemplateUriCommand.d.ts +1 -1
  21. package/dist-types/commands/UpdateQuickResponseCommand.d.ts +1 -1
  22. package/dist-types/commands/UpdateSessionCommand.d.ts +123 -0
  23. package/dist-types/commands/index.d.ts +1 -0
  24. package/dist-types/index.d.ts +11 -11
  25. package/dist-types/models/models_0.d.ts +316 -158
  26. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  27. package/dist-types/ts3.4/QConnect.d.ts +17 -0
  28. package/dist-types/ts3.4/QConnectClient.d.ts +8 -2
  29. package/dist-types/ts3.4/commands/UpdateSessionCommand.d.ts +38 -0
  30. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  31. package/dist-types/ts3.4/models/models_0.d.ts +80 -0
  32. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  33. package/package.json +10 -10
package/README.md CHANGED
@@ -9,18 +9,18 @@ AWS SDK for JavaScript QConnect Client for Node.js, Browser and React Native.
9
9
  <note>
10
10
  <p>
11
11
  <b>Powered by Amazon Bedrock</b>: Amazon Web Services implements <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/abuse-detection.html">automated abuse
12
- detection</a>. Because Amazon Q in Connect is built on Amazon Bedrock, users can take full
13
- advantage of the controls implemented in Amazon Bedrock to enforce safety, security, and the
14
- responsible use of artificial intelligence (AI).</p>
12
+ detection</a>. Because Amazon Q in Connect is built on Amazon Bedrock, users can take full advantage of
13
+ the controls implemented in Amazon Bedrock to enforce safety, security, and the responsible use of
14
+ artificial intelligence (AI).</p>
15
15
  </note>
16
- <p>Amazon Q in Connect is a generative AI customer service assistant. It is an LLM-enhanced evolution
17
- of Amazon Connect Wisdom that delivers real-time recommendations to help contact center
18
- agents resolve customer issues quickly and accurately.</p>
19
- <p>Amazon Q automatically detects customer intent during calls and chats using
20
- conversational analytics and natural language understanding (NLU). It then provides agents
21
- with immediate, real-time generative responses and suggested actions, and links to relevant
22
- documents and articles. Agents can also query Amazon Q directly using natural language or
23
- keywords to answer customer requests.</p>
16
+ <p>Amazon Q in Connect is a generative AI customer service assistant. It is an LLM-enhanced
17
+ evolution of Amazon Connect Wisdom that delivers real-time recommendations to help contact
18
+ center agents resolve customer issues quickly and accurately.</p>
19
+ <p>Amazon Q in Connect automatically detects customer intent during calls and chats using conversational
20
+ analytics and natural language understanding (NLU). It then provides agents with immediate,
21
+ real-time generative responses and suggested actions, and links to relevant documents and
22
+ articles. Agents can also query Amazon Q in Connect directly using natural language or keywords to answer
23
+ customer requests.</p>
24
24
  <p>Use the Amazon Q in Connect APIs to create an assistant and a knowledge base, for example, or
25
25
  manage content by uploading custom files.</p>
26
26
  <p>For more information, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-q-connect.html">Use Amazon Q in Connect for generative AI
@@ -558,3 +558,11 @@ UpdateQuickResponse
558
558
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qconnect/command/UpdateQuickResponseCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/UpdateQuickResponseCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/UpdateQuickResponseCommandOutput/)
559
559
 
560
560
  </details>
561
+ <details>
562
+ <summary>
563
+ UpdateSession
564
+ </summary>
565
+
566
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qconnect/command/UpdateSessionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/UpdateSessionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/UpdateSessionCommandOutput/)
567
+
568
+ </details>
package/dist-cjs/index.js CHANGED
@@ -87,6 +87,7 @@ __export(src_exports, {
87
87
  ListQuickResponsesResponseFilterSensitiveLog: () => ListQuickResponsesResponseFilterSensitiveLog,
88
88
  ListTagsForResourceCommand: () => ListTagsForResourceCommand,
89
89
  NotifyRecommendationsReceivedCommand: () => NotifyRecommendationsReceivedCommand,
90
+ OrCondition: () => OrCondition,
90
91
  Order: () => Order,
91
92
  PreconditionFailedException: () => PreconditionFailedException,
92
93
  Priority: () => Priority,
@@ -139,6 +140,7 @@ __export(src_exports, {
139
140
  StartContentUploadResponseFilterSensitiveLog: () => StartContentUploadResponseFilterSensitiveLog,
140
141
  StartImportJobCommand: () => StartImportJobCommand,
141
142
  StartImportJobResponseFilterSensitiveLog: () => StartImportJobResponseFilterSensitiveLog,
143
+ TagFilter: () => TagFilter,
142
144
  TagResourceCommand: () => TagResourceCommand,
143
145
  TargetType: () => TargetType,
144
146
  TextDataFilterSensitiveLog: () => TextDataFilterSensitiveLog,
@@ -150,6 +152,7 @@ __export(src_exports, {
150
152
  UpdateQuickResponseCommand: () => UpdateQuickResponseCommand,
151
153
  UpdateQuickResponseRequestFilterSensitiveLog: () => UpdateQuickResponseRequestFilterSensitiveLog,
152
154
  UpdateQuickResponseResponseFilterSensitiveLog: () => UpdateQuickResponseResponseFilterSensitiveLog,
155
+ UpdateSessionCommand: () => UpdateSessionCommand,
153
156
  ValidationException: () => ValidationException,
154
157
  __Client: () => import_smithy_client.Client,
155
158
  paginateListAssistantAssociations: () => paginateListAssistantAssociations,
@@ -559,6 +562,28 @@ var FilterField = {
559
562
  var FilterOperator = {
560
563
  EQUALS: "EQUALS"
561
564
  };
565
+ var OrCondition;
566
+ ((OrCondition3) => {
567
+ OrCondition3.visit = /* @__PURE__ */ __name((value, visitor) => {
568
+ if (value.andConditions !== void 0)
569
+ return visitor.andConditions(value.andConditions);
570
+ if (value.tagCondition !== void 0)
571
+ return visitor.tagCondition(value.tagCondition);
572
+ return visitor._(value.$unknown[0], value.$unknown[1]);
573
+ }, "visit");
574
+ })(OrCondition || (OrCondition = {}));
575
+ var TagFilter;
576
+ ((TagFilter3) => {
577
+ TagFilter3.visit = /* @__PURE__ */ __name((value, visitor) => {
578
+ if (value.tagCondition !== void 0)
579
+ return visitor.tagCondition(value.tagCondition);
580
+ if (value.andConditions !== void 0)
581
+ return visitor.andConditions(value.andConditions);
582
+ if (value.orConditions !== void 0)
583
+ return visitor.orConditions(value.orConditions);
584
+ return visitor._(value.$unknown[0], value.$unknown[1]);
585
+ }, "visit");
586
+ })(TagFilter || (TagFilter = {}));
562
587
  var Configuration;
563
588
  ((Configuration3) => {
564
589
  Configuration3.visit = /* @__PURE__ */ __name((value, visitor) => {
@@ -1027,6 +1052,7 @@ var se_CreateSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
1027
1052
  clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1028
1053
  description: [],
1029
1054
  name: [],
1055
+ tagFilter: (_) => (0, import_smithy_client._json)(_),
1030
1056
  tags: (_) => (0, import_smithy_client._json)(_)
1031
1057
  })
1032
1058
  );
@@ -1527,6 +1553,24 @@ var se_UpdateQuickResponseCommand = /* @__PURE__ */ __name(async (input, context
1527
1553
  b.m("POST").h(headers).b(body);
1528
1554
  return b.build();
1529
1555
  }, "se_UpdateQuickResponseCommand");
1556
+ var se_UpdateSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
1557
+ const b = (0, import_core.requestBuilder)(input, context);
1558
+ const headers = {
1559
+ "content-type": "application/json"
1560
+ };
1561
+ b.bp("/assistants/{assistantId}/sessions/{sessionId}");
1562
+ b.p("assistantId", () => input.assistantId, "{assistantId}", false);
1563
+ b.p("sessionId", () => input.sessionId, "{sessionId}", false);
1564
+ let body;
1565
+ body = JSON.stringify(
1566
+ (0, import_smithy_client.take)(input, {
1567
+ description: [],
1568
+ tagFilter: (_) => (0, import_smithy_client._json)(_)
1569
+ })
1570
+ );
1571
+ b.m("POST").h(headers).b(body);
1572
+ return b.build();
1573
+ }, "se_UpdateSessionCommand");
1530
1574
  var de_CreateAssistantCommand = /* @__PURE__ */ __name(async (output, context) => {
1531
1575
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1532
1576
  return de_CommandError(output, context);
@@ -2098,6 +2142,20 @@ var de_UpdateQuickResponseCommand = /* @__PURE__ */ __name(async (output, contex
2098
2142
  Object.assign(contents, doc);
2099
2143
  return contents;
2100
2144
  }, "de_UpdateQuickResponseCommand");
2145
+ var de_UpdateSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
2146
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2147
+ return de_CommandError(output, context);
2148
+ }
2149
+ const contents = (0, import_smithy_client.map)({
2150
+ $metadata: deserializeMetadata(output)
2151
+ });
2152
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2153
+ const doc = (0, import_smithy_client.take)(data, {
2154
+ session: import_smithy_client._json
2155
+ });
2156
+ Object.assign(contents, doc);
2157
+ return contents;
2158
+ }, "de_UpdateSessionCommand");
2101
2159
  var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2102
2160
  const parsedOutput = {
2103
2161
  ...output,
@@ -3200,6 +3258,23 @@ var _UpdateQuickResponseCommand = class _UpdateQuickResponseCommand extends impo
3200
3258
  __name(_UpdateQuickResponseCommand, "UpdateQuickResponseCommand");
3201
3259
  var UpdateQuickResponseCommand = _UpdateQuickResponseCommand;
3202
3260
 
3261
+ // src/commands/UpdateSessionCommand.ts
3262
+
3263
+
3264
+
3265
+
3266
+ var _UpdateSessionCommand = class _UpdateSessionCommand extends import_smithy_client.Command.classBuilder().ep({
3267
+ ...commonParams
3268
+ }).m(function(Command, cs, config, o) {
3269
+ return [
3270
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3271
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3272
+ ];
3273
+ }).s("WisdomService", "UpdateSession", {}).n("QConnectClient", "UpdateSessionCommand").f(void 0, void 0).ser(se_UpdateSessionCommand).de(de_UpdateSessionCommand).build() {
3274
+ };
3275
+ __name(_UpdateSessionCommand, "UpdateSessionCommand");
3276
+ var UpdateSessionCommand = _UpdateSessionCommand;
3277
+
3203
3278
  // src/QConnect.ts
3204
3279
  var commands = {
3205
3280
  CreateAssistantCommand,
@@ -3243,7 +3318,8 @@ var commands = {
3243
3318
  UntagResourceCommand,
3244
3319
  UpdateContentCommand,
3245
3320
  UpdateKnowledgeBaseTemplateUriCommand,
3246
- UpdateQuickResponseCommand
3321
+ UpdateQuickResponseCommand,
3322
+ UpdateSessionCommand
3247
3323
  };
3248
3324
  var _QConnect = class _QConnect extends QConnectClient {
3249
3325
  };
@@ -3340,6 +3416,7 @@ var paginateSearchSessions = (0, import_core.createPaginator)(QConnectClient, Se
3340
3416
  UpdateContentCommand,
3341
3417
  UpdateKnowledgeBaseTemplateUriCommand,
3342
3418
  UpdateQuickResponseCommand,
3419
+ UpdateSessionCommand,
3343
3420
  paginateListAssistantAssociations,
3344
3421
  paginateListAssistants,
3345
3422
  paginateListContents,
@@ -3378,6 +3455,8 @@ var paginateSearchSessions = (0, import_core.createPaginator)(QConnectClient, Se
3378
3455
  RequestTimeoutException,
3379
3456
  FilterField,
3380
3457
  FilterOperator,
3458
+ OrCondition,
3459
+ TagFilter,
3381
3460
  Configuration,
3382
3461
  ContentStatus,
3383
3462
  PreconditionFailedException,
@@ -41,6 +41,7 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
41
41
  import { UpdateContentCommand, } from "./commands/UpdateContentCommand";
42
42
  import { UpdateKnowledgeBaseTemplateUriCommand, } from "./commands/UpdateKnowledgeBaseTemplateUriCommand";
43
43
  import { UpdateQuickResponseCommand, } from "./commands/UpdateQuickResponseCommand";
44
+ import { UpdateSessionCommand, } from "./commands/UpdateSessionCommand";
44
45
  import { QConnectClient } from "./QConnectClient";
45
46
  const commands = {
46
47
  CreateAssistantCommand,
@@ -85,6 +86,7 @@ const commands = {
85
86
  UpdateContentCommand,
86
87
  UpdateKnowledgeBaseTemplateUriCommand,
87
88
  UpdateQuickResponseCommand,
89
+ UpdateSessionCommand,
88
90
  };
89
91
  export class QConnect extends QConnectClient {
90
92
  }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_UpdateSessionCommand, se_UpdateSessionCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class UpdateSessionCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("WisdomService", "UpdateSession", {})
19
+ .n("QConnectClient", "UpdateSessionCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateSessionCommand)
22
+ .de(de_UpdateSessionCommand)
23
+ .build() {
24
+ }
@@ -40,3 +40,4 @@ export * from "./UntagResourceCommand";
40
40
  export * from "./UpdateContentCommand";
41
41
  export * from "./UpdateKnowledgeBaseTemplateUriCommand";
42
42
  export * from "./UpdateQuickResponseCommand";
43
+ export * from "./UpdateSessionCommand";
@@ -188,6 +188,28 @@ export const FilterField = {
188
188
  export const FilterOperator = {
189
189
  EQUALS: "EQUALS",
190
190
  };
191
+ export var OrCondition;
192
+ (function (OrCondition) {
193
+ OrCondition.visit = (value, visitor) => {
194
+ if (value.andConditions !== undefined)
195
+ return visitor.andConditions(value.andConditions);
196
+ if (value.tagCondition !== undefined)
197
+ return visitor.tagCondition(value.tagCondition);
198
+ return visitor._(value.$unknown[0], value.$unknown[1]);
199
+ };
200
+ })(OrCondition || (OrCondition = {}));
201
+ export var TagFilter;
202
+ (function (TagFilter) {
203
+ TagFilter.visit = (value, visitor) => {
204
+ if (value.tagCondition !== undefined)
205
+ return visitor.tagCondition(value.tagCondition);
206
+ if (value.andConditions !== undefined)
207
+ return visitor.andConditions(value.andConditions);
208
+ if (value.orConditions !== undefined)
209
+ return visitor.orConditions(value.orConditions);
210
+ return visitor._(value.$unknown[0], value.$unknown[1]);
211
+ };
212
+ })(TagFilter || (TagFilter = {}));
191
213
  export var Configuration;
192
214
  (function (Configuration) {
193
215
  Configuration.visit = (value, visitor) => {
@@ -115,6 +115,7 @@ export const se_CreateSessionCommand = async (input, context) => {
115
115
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
116
116
  description: [],
117
117
  name: [],
118
+ tagFilter: (_) => _json(_),
118
119
  tags: (_) => _json(_),
119
120
  }));
120
121
  b.m("POST").h(headers).b(body);
@@ -590,6 +591,22 @@ export const se_UpdateQuickResponseCommand = async (input, context) => {
590
591
  b.m("POST").h(headers).b(body);
591
592
  return b.build();
592
593
  };
594
+ export const se_UpdateSessionCommand = async (input, context) => {
595
+ const b = rb(input, context);
596
+ const headers = {
597
+ "content-type": "application/json",
598
+ };
599
+ b.bp("/assistants/{assistantId}/sessions/{sessionId}");
600
+ b.p("assistantId", () => input.assistantId, "{assistantId}", false);
601
+ b.p("sessionId", () => input.sessionId, "{sessionId}", false);
602
+ let body;
603
+ body = JSON.stringify(take(input, {
604
+ description: [],
605
+ tagFilter: (_) => _json(_),
606
+ }));
607
+ b.m("POST").h(headers).b(body);
608
+ return b.build();
609
+ };
593
610
  export const de_CreateAssistantCommand = async (output, context) => {
594
611
  if (output.statusCode !== 200 && output.statusCode >= 300) {
595
612
  return de_CommandError(output, context);
@@ -1161,6 +1178,20 @@ export const de_UpdateQuickResponseCommand = async (output, context) => {
1161
1178
  Object.assign(contents, doc);
1162
1179
  return contents;
1163
1180
  };
1181
+ export const de_UpdateSessionCommand = async (output, context) => {
1182
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1183
+ return de_CommandError(output, context);
1184
+ }
1185
+ const contents = map({
1186
+ $metadata: deserializeMetadata(output),
1187
+ });
1188
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1189
+ const doc = take(data, {
1190
+ session: _json,
1191
+ });
1192
+ Object.assign(contents, doc);
1193
+ return contents;
1194
+ };
1164
1195
  const de_CommandError = async (output, context) => {
1165
1196
  const parsedOutput = {
1166
1197
  ...output,
@@ -41,6 +41,7 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./command
41
41
  import { UpdateContentCommandInput, UpdateContentCommandOutput } from "./commands/UpdateContentCommand";
42
42
  import { UpdateKnowledgeBaseTemplateUriCommandInput, UpdateKnowledgeBaseTemplateUriCommandOutput } from "./commands/UpdateKnowledgeBaseTemplateUriCommand";
43
43
  import { UpdateQuickResponseCommandInput, UpdateQuickResponseCommandOutput } from "./commands/UpdateQuickResponseCommand";
44
+ import { UpdateSessionCommandInput, UpdateSessionCommandOutput } from "./commands/UpdateSessionCommand";
44
45
  import { QConnectClient } from "./QConnectClient";
45
46
  export interface QConnect {
46
47
  /**
@@ -297,23 +298,29 @@ export interface QConnect {
297
298
  updateQuickResponse(args: UpdateQuickResponseCommandInput, options?: __HttpHandlerOptions): Promise<UpdateQuickResponseCommandOutput>;
298
299
  updateQuickResponse(args: UpdateQuickResponseCommandInput, cb: (err: any, data?: UpdateQuickResponseCommandOutput) => void): void;
299
300
  updateQuickResponse(args: UpdateQuickResponseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateQuickResponseCommandOutput) => void): void;
301
+ /**
302
+ * @see {@link UpdateSessionCommand}
303
+ */
304
+ updateSession(args: UpdateSessionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSessionCommandOutput>;
305
+ updateSession(args: UpdateSessionCommandInput, cb: (err: any, data?: UpdateSessionCommandOutput) => void): void;
306
+ updateSession(args: UpdateSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSessionCommandOutput) => void): void;
300
307
  }
301
308
  /**
302
309
  * <note>
303
310
  * <p>
304
311
  * <b>Powered by Amazon Bedrock</b>: Amazon Web Services implements <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/abuse-detection.html">automated abuse
305
- * detection</a>. Because Amazon Q in Connect is built on Amazon Bedrock, users can take full
306
- * advantage of the controls implemented in Amazon Bedrock to enforce safety, security, and the
307
- * responsible use of artificial intelligence (AI).</p>
312
+ * detection</a>. Because Amazon Q in Connect is built on Amazon Bedrock, users can take full advantage of
313
+ * the controls implemented in Amazon Bedrock to enforce safety, security, and the responsible use of
314
+ * artificial intelligence (AI).</p>
308
315
  * </note>
309
- * <p>Amazon Q in Connect is a generative AI customer service assistant. It is an LLM-enhanced evolution
310
- * of Amazon Connect Wisdom that delivers real-time recommendations to help contact center
311
- * agents resolve customer issues quickly and accurately.</p>
312
- * <p>Amazon Q automatically detects customer intent during calls and chats using
313
- * conversational analytics and natural language understanding (NLU). It then provides agents
314
- * with immediate, real-time generative responses and suggested actions, and links to relevant
315
- * documents and articles. Agents can also query Amazon Q directly using natural language or
316
- * keywords to answer customer requests.</p>
316
+ * <p>Amazon Q in Connect is a generative AI customer service assistant. It is an LLM-enhanced
317
+ * evolution of Amazon Connect Wisdom that delivers real-time recommendations to help contact
318
+ * center agents resolve customer issues quickly and accurately.</p>
319
+ * <p>Amazon Q in Connect automatically detects customer intent during calls and chats using conversational
320
+ * analytics and natural language understanding (NLU). It then provides agents with immediate,
321
+ * real-time generative responses and suggested actions, and links to relevant documents and
322
+ * articles. Agents can also query Amazon Q in Connect directly using natural language or keywords to answer
323
+ * customer requests.</p>
317
324
  * <p>Use the Amazon Q in Connect APIs to create an assistant and a knowledge base, for example, or
318
325
  * manage content by uploading custom files.</p>
319
326
  * <p>For more information, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-q-connect.html">Use Amazon Q in Connect for generative AI
@@ -49,17 +49,18 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./command
49
49
  import { UpdateContentCommandInput, UpdateContentCommandOutput } from "./commands/UpdateContentCommand";
50
50
  import { UpdateKnowledgeBaseTemplateUriCommandInput, UpdateKnowledgeBaseTemplateUriCommandOutput } from "./commands/UpdateKnowledgeBaseTemplateUriCommand";
51
51
  import { UpdateQuickResponseCommandInput, UpdateQuickResponseCommandOutput } from "./commands/UpdateQuickResponseCommand";
52
+ import { UpdateSessionCommandInput, UpdateSessionCommandOutput } from "./commands/UpdateSessionCommand";
52
53
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
53
54
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
54
55
  export { __Client };
55
56
  /**
56
57
  * @public
57
58
  */
58
- export type ServiceInputTypes = CreateAssistantAssociationCommandInput | CreateAssistantCommandInput | CreateContentCommandInput | CreateKnowledgeBaseCommandInput | CreateQuickResponseCommandInput | CreateSessionCommandInput | DeleteAssistantAssociationCommandInput | DeleteAssistantCommandInput | DeleteContentCommandInput | DeleteImportJobCommandInput | DeleteKnowledgeBaseCommandInput | DeleteQuickResponseCommandInput | GetAssistantAssociationCommandInput | GetAssistantCommandInput | GetContentCommandInput | GetContentSummaryCommandInput | GetImportJobCommandInput | GetKnowledgeBaseCommandInput | GetQuickResponseCommandInput | GetRecommendationsCommandInput | GetSessionCommandInput | ListAssistantAssociationsCommandInput | ListAssistantsCommandInput | ListContentsCommandInput | ListImportJobsCommandInput | ListKnowledgeBasesCommandInput | ListQuickResponsesCommandInput | ListTagsForResourceCommandInput | NotifyRecommendationsReceivedCommandInput | PutFeedbackCommandInput | QueryAssistantCommandInput | RemoveKnowledgeBaseTemplateUriCommandInput | SearchContentCommandInput | SearchQuickResponsesCommandInput | SearchSessionsCommandInput | StartContentUploadCommandInput | StartImportJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateContentCommandInput | UpdateKnowledgeBaseTemplateUriCommandInput | UpdateQuickResponseCommandInput;
59
+ export type ServiceInputTypes = CreateAssistantAssociationCommandInput | CreateAssistantCommandInput | CreateContentCommandInput | CreateKnowledgeBaseCommandInput | CreateQuickResponseCommandInput | CreateSessionCommandInput | DeleteAssistantAssociationCommandInput | DeleteAssistantCommandInput | DeleteContentCommandInput | DeleteImportJobCommandInput | DeleteKnowledgeBaseCommandInput | DeleteQuickResponseCommandInput | GetAssistantAssociationCommandInput | GetAssistantCommandInput | GetContentCommandInput | GetContentSummaryCommandInput | GetImportJobCommandInput | GetKnowledgeBaseCommandInput | GetQuickResponseCommandInput | GetRecommendationsCommandInput | GetSessionCommandInput | ListAssistantAssociationsCommandInput | ListAssistantsCommandInput | ListContentsCommandInput | ListImportJobsCommandInput | ListKnowledgeBasesCommandInput | ListQuickResponsesCommandInput | ListTagsForResourceCommandInput | NotifyRecommendationsReceivedCommandInput | PutFeedbackCommandInput | QueryAssistantCommandInput | RemoveKnowledgeBaseTemplateUriCommandInput | SearchContentCommandInput | SearchQuickResponsesCommandInput | SearchSessionsCommandInput | StartContentUploadCommandInput | StartImportJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateContentCommandInput | UpdateKnowledgeBaseTemplateUriCommandInput | UpdateQuickResponseCommandInput | UpdateSessionCommandInput;
59
60
  /**
60
61
  * @public
61
62
  */
62
- export type ServiceOutputTypes = CreateAssistantAssociationCommandOutput | CreateAssistantCommandOutput | CreateContentCommandOutput | CreateKnowledgeBaseCommandOutput | CreateQuickResponseCommandOutput | CreateSessionCommandOutput | DeleteAssistantAssociationCommandOutput | DeleteAssistantCommandOutput | DeleteContentCommandOutput | DeleteImportJobCommandOutput | DeleteKnowledgeBaseCommandOutput | DeleteQuickResponseCommandOutput | GetAssistantAssociationCommandOutput | GetAssistantCommandOutput | GetContentCommandOutput | GetContentSummaryCommandOutput | GetImportJobCommandOutput | GetKnowledgeBaseCommandOutput | GetQuickResponseCommandOutput | GetRecommendationsCommandOutput | GetSessionCommandOutput | ListAssistantAssociationsCommandOutput | ListAssistantsCommandOutput | ListContentsCommandOutput | ListImportJobsCommandOutput | ListKnowledgeBasesCommandOutput | ListQuickResponsesCommandOutput | ListTagsForResourceCommandOutput | NotifyRecommendationsReceivedCommandOutput | PutFeedbackCommandOutput | QueryAssistantCommandOutput | RemoveKnowledgeBaseTemplateUriCommandOutput | SearchContentCommandOutput | SearchQuickResponsesCommandOutput | SearchSessionsCommandOutput | StartContentUploadCommandOutput | StartImportJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateContentCommandOutput | UpdateKnowledgeBaseTemplateUriCommandOutput | UpdateQuickResponseCommandOutput;
63
+ export type ServiceOutputTypes = CreateAssistantAssociationCommandOutput | CreateAssistantCommandOutput | CreateContentCommandOutput | CreateKnowledgeBaseCommandOutput | CreateQuickResponseCommandOutput | CreateSessionCommandOutput | DeleteAssistantAssociationCommandOutput | DeleteAssistantCommandOutput | DeleteContentCommandOutput | DeleteImportJobCommandOutput | DeleteKnowledgeBaseCommandOutput | DeleteQuickResponseCommandOutput | GetAssistantAssociationCommandOutput | GetAssistantCommandOutput | GetContentCommandOutput | GetContentSummaryCommandOutput | GetImportJobCommandOutput | GetKnowledgeBaseCommandOutput | GetQuickResponseCommandOutput | GetRecommendationsCommandOutput | GetSessionCommandOutput | ListAssistantAssociationsCommandOutput | ListAssistantsCommandOutput | ListContentsCommandOutput | ListImportJobsCommandOutput | ListKnowledgeBasesCommandOutput | ListQuickResponsesCommandOutput | ListTagsForResourceCommandOutput | NotifyRecommendationsReceivedCommandOutput | PutFeedbackCommandOutput | QueryAssistantCommandOutput | RemoveKnowledgeBaseTemplateUriCommandOutput | SearchContentCommandOutput | SearchQuickResponsesCommandOutput | SearchSessionsCommandOutput | StartContentUploadCommandOutput | StartImportJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateContentCommandOutput | UpdateKnowledgeBaseTemplateUriCommandOutput | UpdateQuickResponseCommandOutput | UpdateSessionCommandOutput;
63
64
  /**
64
65
  * @public
65
66
  */
@@ -196,18 +197,18 @@ export interface QConnectClientResolvedConfig extends QConnectClientResolvedConf
196
197
  * <note>
197
198
  * <p>
198
199
  * <b>Powered by Amazon Bedrock</b>: Amazon Web Services implements <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/abuse-detection.html">automated abuse
199
- * detection</a>. Because Amazon Q in Connect is built on Amazon Bedrock, users can take full
200
- * advantage of the controls implemented in Amazon Bedrock to enforce safety, security, and the
201
- * responsible use of artificial intelligence (AI).</p>
200
+ * detection</a>. Because Amazon Q in Connect is built on Amazon Bedrock, users can take full advantage of
201
+ * the controls implemented in Amazon Bedrock to enforce safety, security, and the responsible use of
202
+ * artificial intelligence (AI).</p>
202
203
  * </note>
203
- * <p>Amazon Q in Connect is a generative AI customer service assistant. It is an LLM-enhanced evolution
204
- * of Amazon Connect Wisdom that delivers real-time recommendations to help contact center
205
- * agents resolve customer issues quickly and accurately.</p>
206
- * <p>Amazon Q automatically detects customer intent during calls and chats using
207
- * conversational analytics and natural language understanding (NLU). It then provides agents
208
- * with immediate, real-time generative responses and suggested actions, and links to relevant
209
- * documents and articles. Agents can also query Amazon Q directly using natural language or
210
- * keywords to answer customer requests.</p>
204
+ * <p>Amazon Q in Connect is a generative AI customer service assistant. It is an LLM-enhanced
205
+ * evolution of Amazon Connect Wisdom that delivers real-time recommendations to help contact
206
+ * center agents resolve customer issues quickly and accurately.</p>
207
+ * <p>Amazon Q in Connect automatically detects customer intent during calls and chats using conversational
208
+ * analytics and natural language understanding (NLU). It then provides agents with immediate,
209
+ * real-time generative responses and suggested actions, and links to relevant documents and
210
+ * articles. Agents can also query Amazon Q in Connect directly using natural language or keywords to answer
211
+ * customer requests.</p>
211
212
  * <p>Use the Amazon Q in Connect APIs to create an assistant and a knowledge base, for example, or
212
213
  * manage content by uploading custom files.</p>
213
214
  * <p>For more information, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-q-connect.html">Use Amazon Q in Connect for generative AI
@@ -26,8 +26,7 @@ declare const CreateContentCommand_base: {
26
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
27
  };
28
28
  /**
29
- * <p>Creates Amazon Q content. Before to calling this API, use <a href="https://docs.aws.amazon.com/amazon-q-connect/latest/APIReference/API_StartContentUpload.html">StartContentUpload</a> to
30
- * upload an asset.</p>
29
+ * <p>Creates Amazon Q in Connect content. Before to calling this API, use <a href="https://docs.aws.amazon.com/amazon-q-connect/latest/APIReference/API_StartContentUpload.html">StartContentUpload</a> to upload an asset.</p>
31
30
  * @example
32
31
  * Use a bare-bones client and the command you need to make an API call.
33
32
  * ```javascript
@@ -26,7 +26,7 @@ declare const CreateQuickResponseCommand_base: {
26
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
27
  };
28
28
  /**
29
- * <p>Creates an Amazon Q quick response.</p>
29
+ * <p>Creates an Amazon Q in Connect quick response.</p>
30
30
  * @example
31
31
  * Use a bare-bones client and the command you need to make an API call.
32
32
  * ```javascript
@@ -27,8 +27,8 @@ declare const CreateSessionCommand_base: {
27
27
  };
28
28
  /**
29
29
  * <p>Creates a session. A session is a contextual container used for generating
30
- * recommendations. Amazon Connect creates a new Amazon Q session for each contact on which
31
- * Amazon Q is enabled.</p>
30
+ * recommendations. Amazon Connect creates a new Amazon Q in Connect session for each contact on which
31
+ * Amazon Q in Connect is enabled.</p>
32
32
  * @example
33
33
  * Use a bare-bones client and the command you need to make an API call.
34
34
  * ```javascript
@@ -43,6 +43,26 @@ declare const CreateSessionCommand_base: {
43
43
  * tags: { // Tags
44
44
  * "<keys>": "STRING_VALUE",
45
45
  * },
46
+ * tagFilter: { // TagFilter Union: only one key present
47
+ * tagCondition: { // TagCondition
48
+ * key: "STRING_VALUE", // required
49
+ * value: "STRING_VALUE",
50
+ * },
51
+ * andConditions: [ // AndConditions
52
+ * {
53
+ * key: "STRING_VALUE", // required
54
+ * value: "STRING_VALUE",
55
+ * },
56
+ * ],
57
+ * orConditions: [ // OrConditions
58
+ * { // OrCondition Union: only one key present
59
+ * andConditions: [
60
+ * "<TagCondition>",
61
+ * ],
62
+ * tagCondition: "<TagCondition>",
63
+ * },
64
+ * ],
65
+ * },
46
66
  * };
47
67
  * const command = new CreateSessionCommand(input);
48
68
  * const response = await client.send(command);
@@ -58,6 +78,26 @@ declare const CreateSessionCommand_base: {
58
78
  * // integrationConfiguration: { // SessionIntegrationConfiguration
59
79
  * // topicIntegrationArn: "STRING_VALUE",
60
80
  * // },
81
+ * // tagFilter: { // TagFilter Union: only one key present
82
+ * // tagCondition: { // TagCondition
83
+ * // key: "STRING_VALUE", // required
84
+ * // value: "STRING_VALUE",
85
+ * // },
86
+ * // andConditions: [ // AndConditions
87
+ * // {
88
+ * // key: "STRING_VALUE", // required
89
+ * // value: "STRING_VALUE",
90
+ * // },
91
+ * // ],
92
+ * // orConditions: [ // OrConditions
93
+ * // { // OrCondition Union: only one key present
94
+ * // andConditions: [
95
+ * // "<TagCondition>",
96
+ * // ],
97
+ * // tagCondition: "<TagCondition>",
98
+ * // },
99
+ * // ],
100
+ * // },
61
101
  * // },
62
102
  * // };
63
103
  *
@@ -69,6 +109,9 @@ declare const CreateSessionCommand_base: {
69
109
  * @see {@link CreateSessionCommandOutput} for command's `response` shape.
70
110
  * @see {@link QConnectClientResolvedConfig | config} for QConnectClient's `config` shape.
71
111
  *
112
+ * @throws {@link AccessDeniedException} (client fault)
113
+ * <p>You do not have sufficient access to perform this action.</p>
114
+ *
72
115
  * @throws {@link ConflictException} (client fault)
73
116
  * <p>The request could not be processed because of conflict in the current state of the
74
117
  * resource. For example, if you're using a <code>Create</code> API (such as
@@ -26,7 +26,13 @@ declare const GetRecommendationsCommand_base: {
26
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
27
  };
28
28
  /**
29
- * <p>Retrieves recommendations for the specified session. To avoid retrieving the same
29
+ * <important>
30
+ * <p>This API will be discontinued starting June 1, 2024. To receive generative responses
31
+ * after March 1, 2024, you will need to create a new Assistant in the Amazon Connect
32
+ * console and integrate the Amazon Q in Connect JavaScript library (amazon-q-connectjs) into
33
+ * your applications.</p>
34
+ * </important>
35
+ * <p>Retrieves recommendations for the specified session. To avoid retrieving the same
30
36
  * recommendations in subsequent calls, use <a href="https://docs.aws.amazon.com/amazon-q-connect/latest/APIReference/API_NotifyRecommendationsReceived.html">NotifyRecommendationsReceived</a>. This API supports long-polling behavior with the
31
37
  * <code>waitTimeSeconds</code> parameter. Short poll is the default behavior and only returns
32
38
  * recommendations already available. To perform a manual query against an assistant, use <a href="https://docs.aws.amazon.com/amazon-q-connect/latest/APIReference/API_QueryAssistant.html">QueryAssistant</a>.</p>
@@ -51,6 +51,26 @@ declare const GetSessionCommand_base: {
51
51
  * // integrationConfiguration: { // SessionIntegrationConfiguration
52
52
  * // topicIntegrationArn: "STRING_VALUE",
53
53
  * // },
54
+ * // tagFilter: { // TagFilter Union: only one key present
55
+ * // tagCondition: { // TagCondition
56
+ * // key: "STRING_VALUE", // required
57
+ * // value: "STRING_VALUE",
58
+ * // },
59
+ * // andConditions: [ // AndConditions
60
+ * // {
61
+ * // key: "STRING_VALUE", // required
62
+ * // value: "STRING_VALUE",
63
+ * // },
64
+ * // ],
65
+ * // orConditions: [ // OrConditions
66
+ * // { // OrCondition Union: only one key present
67
+ * // andConditions: [
68
+ * // "<TagCondition>",
69
+ * // ],
70
+ * // tagCondition: "<TagCondition>",
71
+ * // },
72
+ * // ],
73
+ * // },
54
74
  * // },
55
75
  * // };
56
76
  *
@@ -26,7 +26,8 @@ declare const PutFeedbackCommand_base: {
26
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
27
  };
28
28
  /**
29
- * <p>Provides feedback against the specified assistant for the specified target. This API only supports generative targets.</p>
29
+ * <p>Provides feedback against the specified assistant for the specified target. This API only
30
+ * supports generative targets.</p>
30
31
  * @example
31
32
  * Use a bare-bones client and the command you need to make an API call.
32
33
  * ```javascript
@@ -26,9 +26,14 @@ declare const QueryAssistantCommand_base: {
26
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
27
  };
28
28
  /**
29
- * <p>Performs a manual search against the specified assistant. To retrieve recommendations for
30
- * an assistant, use <a href="https://docs.aws.amazon.com/amazon-q-connect/latest/APIReference/API_GetRecommendations.html">GetRecommendations</a>.
31
- * </p>
29
+ * <important>
30
+ * <p>This API will be discontinued starting June 1, 2024. To receive generative responses
31
+ * after March 1, 2024, you will need to create a new Assistant in the Amazon Connect
32
+ * console and integrate the Amazon Q in Connect JavaScript library (amazon-q-connectjs) into
33
+ * your applications.</p>
34
+ * </important>
35
+ * <p>Performs a manual search against the specified assistant. To retrieve recommendations for
36
+ * an assistant, use <a href="https://docs.aws.amazon.com/amazon-q-connect/latest/APIReference/API_GetRecommendations.html">GetRecommendations</a>. </p>
32
37
  *
33
38
  * @deprecated QueryAssistant API will be discontinued starting June 1, 2024. To receive generative responses after March 1, 2024 you will need to create a new Assistant in the Connect console and integrate the Amazon Q in Connect JavaScript library (amazon-q-connectjs) into your applications.
34
39
  * @example
@@ -26,7 +26,7 @@ declare const SearchQuickResponsesCommand_base: {
26
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
27
  };
28
28
  /**
29
- * <p>Searches existing Amazon Q quick responses in an Amazon Q knowledge base.</p>
29
+ * <p>Searches existing Amazon Q in Connect quick responses in an Amazon Q in Connect knowledge base.</p>
30
30
  * @example
31
31
  * Use a bare-bones client and the command you need to make an API call.
32
32
  * ```javascript
@@ -28,8 +28,10 @@ declare const StartContentUploadCommand_base: {
28
28
  /**
29
29
  * <p>Get a URL to upload content to a knowledge base. To upload content, first make a PUT
30
30
  * request to the returned URL with your file, making sure to include the required headers. Then
31
- * use <a href="https://docs.aws.amazon.com/amazon-q-connect/latest/APIReference/API_CreateContent.html">CreateContent</a> to finalize the content creation process or <a href="https://docs.aws.amazon.com/amazon-q-connect/latest/APIReference/API_UpdateContent.html">UpdateContent</a> to modify an existing resource. You can only upload content to a
32
- * knowledge base of type CUSTOM.</p>
31
+ * use <a href="https://docs.aws.amazon.com/amazon-q-connect/latest/APIReference/API_CreateContent.html">CreateContent</a> to
32
+ * finalize the content creation process or <a href="https://docs.aws.amazon.com/amazon-q-connect/latest/APIReference/API_UpdateContent.html">UpdateContent</a> to
33
+ * modify an existing resource. You can only upload content to a knowledge base of type
34
+ * CUSTOM.</p>
33
35
  * @example
34
36
  * Use a bare-bones client and the command you need to make an API call.
35
37
  * ```javascript