@aws-sdk/client-qbusiness 3.556.0 → 3.563.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 (65) hide show
  1. package/README.md +15 -16
  2. package/dist-cjs/index.js +36 -5
  3. package/dist-es/models/models_0.js +17 -0
  4. package/dist-es/protocols/Aws_restJson1.js +13 -5
  5. package/dist-types/QBusiness.d.ts +15 -16
  6. package/dist-types/QBusinessClient.d.ts +15 -16
  7. package/dist-types/commands/BatchDeleteDocumentCommand.d.ts +3 -3
  8. package/dist-types/commands/BatchPutDocumentCommand.d.ts +7 -7
  9. package/dist-types/commands/ChatSyncCommand.d.ts +10 -4
  10. package/dist-types/commands/CreateApplicationCommand.d.ts +5 -4
  11. package/dist-types/commands/CreateDataSourceCommand.d.ts +4 -4
  12. package/dist-types/commands/CreateIndexCommand.d.ts +4 -4
  13. package/dist-types/commands/CreatePluginCommand.d.ts +4 -4
  14. package/dist-types/commands/CreateRetrieverCommand.d.ts +4 -4
  15. package/dist-types/commands/CreateUserCommand.d.ts +3 -3
  16. package/dist-types/commands/CreateWebExperienceCommand.d.ts +5 -4
  17. package/dist-types/commands/DeleteApplicationCommand.d.ts +3 -3
  18. package/dist-types/commands/DeleteChatControlsConfigurationCommand.d.ts +3 -3
  19. package/dist-types/commands/DeleteConversationCommand.d.ts +4 -4
  20. package/dist-types/commands/DeleteDataSourceCommand.d.ts +3 -3
  21. package/dist-types/commands/DeleteGroupCommand.d.ts +2 -2
  22. package/dist-types/commands/DeleteIndexCommand.d.ts +3 -3
  23. package/dist-types/commands/DeletePluginCommand.d.ts +3 -3
  24. package/dist-types/commands/DeleteRetrieverCommand.d.ts +3 -3
  25. package/dist-types/commands/DeleteUserCommand.d.ts +2 -2
  26. package/dist-types/commands/DeleteWebExperienceCommand.d.ts +3 -3
  27. package/dist-types/commands/GetApplicationCommand.d.ts +4 -3
  28. package/dist-types/commands/GetChatControlsConfigurationCommand.d.ts +6 -3
  29. package/dist-types/commands/GetDataSourceCommand.d.ts +3 -3
  30. package/dist-types/commands/GetGroupCommand.d.ts +2 -2
  31. package/dist-types/commands/GetIndexCommand.d.ts +3 -3
  32. package/dist-types/commands/GetPluginCommand.d.ts +3 -3
  33. package/dist-types/commands/GetRetrieverCommand.d.ts +3 -3
  34. package/dist-types/commands/GetUserCommand.d.ts +2 -2
  35. package/dist-types/commands/GetWebExperienceCommand.d.ts +4 -3
  36. package/dist-types/commands/ListApplicationsCommand.d.ts +3 -3
  37. package/dist-types/commands/ListConversationsCommand.d.ts +4 -4
  38. package/dist-types/commands/ListDataSourceSyncJobsCommand.d.ts +3 -3
  39. package/dist-types/commands/ListDataSourcesCommand.d.ts +3 -3
  40. package/dist-types/commands/ListDocumentsCommand.d.ts +2 -2
  41. package/dist-types/commands/ListGroupsCommand.d.ts +2 -2
  42. package/dist-types/commands/ListIndicesCommand.d.ts +3 -3
  43. package/dist-types/commands/ListMessagesCommand.d.ts +4 -4
  44. package/dist-types/commands/ListPluginsCommand.d.ts +3 -3
  45. package/dist-types/commands/ListRetrieversCommand.d.ts +3 -3
  46. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -3
  47. package/dist-types/commands/ListWebExperiencesCommand.d.ts +3 -3
  48. package/dist-types/commands/PutFeedbackCommand.d.ts +4 -4
  49. package/dist-types/commands/PutGroupCommand.d.ts +4 -4
  50. package/dist-types/commands/StartDataSourceSyncJobCommand.d.ts +4 -4
  51. package/dist-types/commands/StopDataSourceSyncJobCommand.d.ts +3 -3
  52. package/dist-types/commands/TagResourceCommand.d.ts +3 -3
  53. package/dist-types/commands/UntagResourceCommand.d.ts +3 -3
  54. package/dist-types/commands/UpdateApplicationCommand.d.ts +3 -3
  55. package/dist-types/commands/UpdateChatControlsConfigurationCommand.d.ts +7 -4
  56. package/dist-types/commands/UpdateDataSourceCommand.d.ts +3 -3
  57. package/dist-types/commands/UpdateIndexCommand.d.ts +4 -4
  58. package/dist-types/commands/UpdatePluginCommand.d.ts +4 -4
  59. package/dist-types/commands/UpdateRetrieverCommand.d.ts +4 -4
  60. package/dist-types/commands/UpdateUserCommand.d.ts +3 -3
  61. package/dist-types/commands/UpdateWebExperienceCommand.d.ts +3 -3
  62. package/dist-types/index.d.ts +15 -16
  63. package/dist-types/models/models_0.d.ts +491 -320
  64. package/dist-types/ts3.4/models/models_0.d.ts +52 -5
  65. package/package.json +2 -2
package/README.md CHANGED
@@ -9,21 +9,20 @@ AWS SDK for JavaScript QBusiness Client for Node.js, Browser and React Native.
9
9
  <note>
10
10
  <p>Amazon Q is in preview release and is subject to change.</p>
11
11
  </note>
12
- <p>This is the <i>Amazon Q (for business use)</i> API Reference.
13
- Amazon Q is a fully managed, generative-AI powered enterprise chat assistant that
14
- you can deploy within your organization. Amazon Q enhances employee productivity by
15
- supporting key tasks such as question-answering, knowledge discovery, writing email
16
- messages, summarizing text, drafting document outlines, and brainstorming ideas. Users
17
- ask questions of Amazon Q and get answers that are presented in a conversational
18
- manner. For an introduction to the service, see the <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/what-is.html">
19
- <i>Amazon Q (for business use) Developer
20
- Guide</i>
12
+ <p>This is the <i>Amazon Q Business</i> API Reference. Amazon Q Business is a fully
13
+ managed, generative-AI powered enterprise chat assistant that you can deploy within your
14
+ organization. Amazon Q Business enhances employee productivity by supporting key tasks such
15
+ as question-answering, knowledge discovery, writing email messages, summarizing text,
16
+ drafting document outlines, and brainstorming ideas. Users ask questions of
17
+ Amazon Q Business and get answers that are presented in a conversational manner. For an
18
+ introduction to the service, see the <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/what-is.html">
19
+ <i>Amazon Q Business User Guide</i>
21
20
  </a>.</p>
22
- <p>For an overview of the Amazon Q APIs, see <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/api-ref.html#api-overview">Overview of Amazon Q API operations</a>.</p>
21
+ <p>For an overview of the Amazon Q Business APIs, see <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/api-ref.html#api-overview">Overview of Amazon Q Business API operations</a>.</p>
23
22
  <p>For information about the IAM access control permissions you need to
24
- use this API, see <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/iam-roles.html">IAM roles for Amazon Q</a> in the
25
- <i>Amazon Q (for business use) Developer Guide</i>.</p>
26
- <p>You can use the following AWS SDKs to access Amazon Q APIs:</p>
23
+ use this API, see <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/iam-roles.html">IAM roles for Amazon Q Business</a> in the
24
+ <i>Amazon Q Business User Guide</i>.</p>
25
+ <p>You can use the following AWS SDKs to access Amazon Q Business APIs:</p>
27
26
  <ul>
28
27
  <li>
29
28
  <p>
@@ -63,21 +62,21 @@ JavaScript</a>
63
62
  </p>
64
63
  </li>
65
64
  </ul>
66
- <p>The following resources provide additional information about using the Amazon Q
65
+ <p>The following resources provide additional information about using the Amazon Q Business
67
66
  API:</p>
68
67
  <ul>
69
68
  <li>
70
69
  <p>
71
70
  <i>
72
71
  <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/setting-up.html">Setting up for
73
- Amazon Q</a>
72
+ Amazon Q Business</a>
74
73
  </i>
75
74
  </p>
76
75
  </li>
77
76
  <li>
78
77
  <p>
79
78
  <i>
80
- <a href="https://awscli.amazonaws.com/v2/documentation/api/latest/reference/qbusiness/index.html">Amazon Q CLI Reference</a>
79
+ <a href="https://awscli.amazonaws.com/v2/documentation/api/latest/reference/qbusiness/index.html">Amazon Q Business CLI Reference</a>
81
80
  </i>
82
81
  </p>
83
82
  </li>
package/dist-cjs/index.js CHANGED
@@ -30,6 +30,8 @@ __export(src_exports, {
30
30
  AttributeValueOperator: () => AttributeValueOperator,
31
31
  BatchDeleteDocumentCommand: () => BatchDeleteDocumentCommand,
32
32
  BatchPutDocumentCommand: () => BatchPutDocumentCommand,
33
+ ChatMode: () => ChatMode,
34
+ ChatModeConfiguration: () => ChatModeConfiguration,
33
35
  ChatSyncCommand: () => ChatSyncCommand,
34
36
  ConflictException: () => ConflictException,
35
37
  ContentType: () => ContentType,
@@ -41,6 +43,7 @@ __export(src_exports, {
41
43
  CreateRetrieverCommand: () => CreateRetrieverCommand,
42
44
  CreateUserCommand: () => CreateUserCommand,
43
45
  CreateWebExperienceCommand: () => CreateWebExperienceCommand,
46
+ CreatorModeControl: () => CreatorModeControl,
44
47
  DataSourceStatus: () => DataSourceStatus,
45
48
  DataSourceSyncJobStatus: () => DataSourceSyncJobStatus,
46
49
  DeleteApplicationCommand: () => DeleteApplicationCommand,
@@ -646,6 +649,10 @@ var WebExperienceStatus = {
646
649
  FAILED: "FAILED",
647
650
  PENDING_AUTH_CONFIG: "PENDING_AUTH_CONFIG"
648
651
  };
652
+ var CreatorModeControl = {
653
+ DISABLED: "DISABLED",
654
+ ENABLED: "ENABLED"
655
+ };
649
656
  var AttachmentStatus = {
650
657
  FAILED: "FAILED",
651
658
  SUCCEEDED: "SUCCEEDED"
@@ -674,6 +681,19 @@ var ContentType = {
674
681
  XML: "XML",
675
682
  XSLT: "XSLT"
676
683
  };
684
+ var ChatMode = {
685
+ CREATOR_MODE: "CREATOR_MODE",
686
+ PLUGIN_MODE: "PLUGIN_MODE",
687
+ RETRIEVAL_MODE: "RETRIEVAL_MODE"
688
+ };
689
+ var ChatModeConfiguration;
690
+ ((ChatModeConfiguration3) => {
691
+ ChatModeConfiguration3.visit = /* @__PURE__ */ __name((value, visitor) => {
692
+ if (value.pluginConfiguration !== void 0)
693
+ return visitor.pluginConfiguration(value.pluginConfiguration);
694
+ return visitor._(value.$unknown[0], value.$unknown[1]);
695
+ }, "visit");
696
+ })(ChatModeConfiguration || (ChatModeConfiguration = {}));
677
697
  var _LicenseNotFoundException = class _LicenseNotFoundException extends QBusinessServiceException {
678
698
  /**
679
699
  * @internal
@@ -821,7 +841,7 @@ var se_ChatSyncCommand = /* @__PURE__ */ __name(async (input, context) => {
821
841
  b.p("applicationId", () => input.applicationId, "{applicationId}", false);
822
842
  const query = (0, import_smithy_client.map)({
823
843
  [_s]: [, ""],
824
- [_uI]: [, (0, import_smithy_client.expectNonNull)(input[_uI], `userId`)],
844
+ [_uI]: [, input[_uI]],
825
845
  [_uG]: [() => input.userGroups !== void 0, () => (input[_uG] || []).map((_entry) => _entry)]
826
846
  });
827
847
  let body;
@@ -830,6 +850,8 @@ var se_ChatSyncCommand = /* @__PURE__ */ __name(async (input, context) => {
830
850
  actionExecution: (_) => se_ActionExecution(_, context),
831
851
  attachments: (_) => se_AttachmentsInput(_, context),
832
852
  attributeFilter: (_) => se_AttributeFilter(_, context),
853
+ chatMode: [],
854
+ chatModeConfiguration: (_) => (0, import_smithy_client._json)(_),
833
855
  clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
834
856
  conversationId: [],
835
857
  parentMessageId: [],
@@ -853,6 +875,7 @@ var se_CreateApplicationCommand = /* @__PURE__ */ __name(async (input, context)
853
875
  description: [],
854
876
  displayName: [],
855
877
  encryptionConfiguration: (_) => (0, import_smithy_client._json)(_),
878
+ identityCenterInstanceArn: [],
856
879
  roleArn: [],
857
880
  tags: (_) => (0, import_smithy_client._json)(_)
858
881
  })
@@ -976,6 +999,7 @@ var se_CreateWebExperienceCommand = /* @__PURE__ */ __name(async (input, context
976
999
  body = JSON.stringify(
977
1000
  (0, import_smithy_client.take)(input, {
978
1001
  clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1002
+ roleArn: [],
979
1003
  samplePromptsControlMode: [],
980
1004
  subtitle: [],
981
1005
  tags: (_) => (0, import_smithy_client._json)(_),
@@ -1011,7 +1035,7 @@ var se_DeleteConversationCommand = /* @__PURE__ */ __name(async (input, context)
1011
1035
  b.p("conversationId", () => input.conversationId, "{conversationId}", false);
1012
1036
  b.p("applicationId", () => input.applicationId, "{applicationId}", false);
1013
1037
  const query = (0, import_smithy_client.map)({
1014
- [_uI]: [, (0, import_smithy_client.expectNonNull)(input[_uI], `userId`)]
1038
+ [_uI]: [, input[_uI]]
1015
1039
  });
1016
1040
  let body;
1017
1041
  b.m("DELETE").h(headers).q(query).b(body);
@@ -1207,7 +1231,7 @@ var se_ListConversationsCommand = /* @__PURE__ */ __name(async (input, context)
1207
1231
  b.bp("/applications/{applicationId}/conversations");
1208
1232
  b.p("applicationId", () => input.applicationId, "{applicationId}", false);
1209
1233
  const query = (0, import_smithy_client.map)({
1210
- [_uI]: [, (0, import_smithy_client.expectNonNull)(input[_uI], `userId`)],
1234
+ [_uI]: [, input[_uI]],
1211
1235
  [_nT]: [, input[_nT]],
1212
1236
  [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
1213
1237
  });
@@ -1301,7 +1325,7 @@ var se_ListMessagesCommand = /* @__PURE__ */ __name(async (input, context) => {
1301
1325
  b.p("conversationId", () => input.conversationId, "{conversationId}", false);
1302
1326
  b.p("applicationId", () => input.applicationId, "{applicationId}", false);
1303
1327
  const query = (0, import_smithy_client.map)({
1304
- [_uI]: [, (0, import_smithy_client.expectNonNull)(input[_uI], `userId`)],
1328
+ [_uI]: [, input[_uI]],
1305
1329
  [_nT]: [, input[_nT]],
1306
1330
  [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
1307
1331
  });
@@ -1367,7 +1391,7 @@ var se_PutFeedbackCommand = /* @__PURE__ */ __name(async (input, context) => {
1367
1391
  b.p("conversationId", () => input.conversationId, "{conversationId}", false);
1368
1392
  b.p("messageId", () => input.messageId, "{messageId}", false);
1369
1393
  const query = (0, import_smithy_client.map)({
1370
- [_uI]: [, (0, import_smithy_client.expectNonNull)(input[_uI], `userId`)]
1394
+ [_uI]: [, input[_uI]]
1371
1395
  });
1372
1396
  let body;
1373
1397
  body = JSON.stringify(
@@ -1483,6 +1507,7 @@ var se_UpdateChatControlsConfigurationCommand = /* @__PURE__ */ __name(async (in
1483
1507
  (0, import_smithy_client.take)(input, {
1484
1508
  blockedPhrasesConfigurationUpdate: (_) => (0, import_smithy_client._json)(_),
1485
1509
  clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1510
+ creatorModeConfiguration: (_) => (0, import_smithy_client._json)(_),
1486
1511
  responseScope: [],
1487
1512
  topicConfigurationsToCreateOrUpdate: (_) => (0, import_smithy_client._json)(_),
1488
1513
  topicConfigurationsToDelete: (_) => (0, import_smithy_client._json)(_)
@@ -1878,6 +1903,7 @@ var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) =>
1878
1903
  displayName: import_smithy_client.expectString,
1879
1904
  encryptionConfiguration: import_smithy_client._json,
1880
1905
  error: import_smithy_client._json,
1906
+ identityCenterApplicationArn: import_smithy_client.expectString,
1881
1907
  roleArn: import_smithy_client.expectString,
1882
1908
  status: import_smithy_client.expectString,
1883
1909
  updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
@@ -1895,6 +1921,7 @@ var de_GetChatControlsConfigurationCommand = /* @__PURE__ */ __name(async (outpu
1895
1921
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1896
1922
  const doc = (0, import_smithy_client.take)(data, {
1897
1923
  blockedPhrases: import_smithy_client._json,
1924
+ creatorModeConfiguration: import_smithy_client._json,
1898
1925
  nextToken: import_smithy_client.expectString,
1899
1926
  responseScope: import_smithy_client.expectString,
1900
1927
  topicConfigurations: import_smithy_client._json
@@ -2045,6 +2072,7 @@ var de_GetWebExperienceCommand = /* @__PURE__ */ __name(async (output, context)
2045
2072
  createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2046
2073
  defaultEndpoint: import_smithy_client.expectString,
2047
2074
  error: import_smithy_client._json,
2075
+ roleArn: import_smithy_client.expectString,
2048
2076
  samplePromptsControlMode: import_smithy_client.expectString,
2049
2077
  status: import_smithy_client.expectString,
2050
2078
  subtitle: import_smithy_client.expectString,
@@ -4165,9 +4193,12 @@ var paginateListWebExperiences = (0, import_core.createPaginator)(QBusinessClien
4165
4193
  WebExperienceSamplePromptsControlMode,
4166
4194
  WebExperienceAuthConfiguration,
4167
4195
  WebExperienceStatus,
4196
+ CreatorModeControl,
4168
4197
  AttachmentStatus,
4169
4198
  DocumentContent,
4170
4199
  ContentType,
4200
+ ChatMode,
4201
+ ChatModeConfiguration,
4171
4202
  LicenseNotFoundException,
4172
4203
  DataSourceSyncJobStatus,
4173
4204
  DocumentStatus,
@@ -289,6 +289,10 @@ export const WebExperienceStatus = {
289
289
  FAILED: "FAILED",
290
290
  PENDING_AUTH_CONFIG: "PENDING_AUTH_CONFIG",
291
291
  };
292
+ export const CreatorModeControl = {
293
+ DISABLED: "DISABLED",
294
+ ENABLED: "ENABLED",
295
+ };
292
296
  export const AttachmentStatus = {
293
297
  FAILED: "FAILED",
294
298
  SUCCEEDED: "SUCCEEDED",
@@ -317,6 +321,19 @@ export const ContentType = {
317
321
  XML: "XML",
318
322
  XSLT: "XSLT",
319
323
  };
324
+ export const ChatMode = {
325
+ CREATOR_MODE: "CREATOR_MODE",
326
+ PLUGIN_MODE: "PLUGIN_MODE",
327
+ RETRIEVAL_MODE: "RETRIEVAL_MODE",
328
+ };
329
+ export var ChatModeConfiguration;
330
+ (function (ChatModeConfiguration) {
331
+ ChatModeConfiguration.visit = (value, visitor) => {
332
+ if (value.pluginConfiguration !== undefined)
333
+ return visitor.pluginConfiguration(value.pluginConfiguration);
334
+ return visitor._(value.$unknown[0], value.$unknown[1]);
335
+ };
336
+ })(ChatModeConfiguration || (ChatModeConfiguration = {}));
320
337
  export class LicenseNotFoundException extends __BaseException {
321
338
  constructor(opts) {
322
339
  super({
@@ -46,7 +46,7 @@ export const se_ChatSyncCommand = async (input, context) => {
46
46
  b.p("applicationId", () => input.applicationId, "{applicationId}", false);
47
47
  const query = map({
48
48
  [_s]: [, ""],
49
- [_uI]: [, __expectNonNull(input[_uI], `userId`)],
49
+ [_uI]: [, input[_uI]],
50
50
  [_uG]: [() => input.userGroups !== void 0, () => (input[_uG] || []).map((_entry) => _entry)],
51
51
  });
52
52
  let body;
@@ -54,6 +54,8 @@ export const se_ChatSyncCommand = async (input, context) => {
54
54
  actionExecution: (_) => se_ActionExecution(_, context),
55
55
  attachments: (_) => se_AttachmentsInput(_, context),
56
56
  attributeFilter: (_) => se_AttributeFilter(_, context),
57
+ chatMode: [],
58
+ chatModeConfiguration: (_) => _json(_),
57
59
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
58
60
  conversationId: [],
59
61
  parentMessageId: [],
@@ -75,6 +77,7 @@ export const se_CreateApplicationCommand = async (input, context) => {
75
77
  description: [],
76
78
  displayName: [],
77
79
  encryptionConfiguration: (_) => _json(_),
80
+ identityCenterInstanceArn: [],
78
81
  roleArn: [],
79
82
  tags: (_) => _json(_),
80
83
  }));
@@ -186,6 +189,7 @@ export const se_CreateWebExperienceCommand = async (input, context) => {
186
189
  let body;
187
190
  body = JSON.stringify(take(input, {
188
191
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
192
+ roleArn: [],
189
193
  samplePromptsControlMode: [],
190
194
  subtitle: [],
191
195
  tags: (_) => _json(_),
@@ -220,7 +224,7 @@ export const se_DeleteConversationCommand = async (input, context) => {
220
224
  b.p("conversationId", () => input.conversationId, "{conversationId}", false);
221
225
  b.p("applicationId", () => input.applicationId, "{applicationId}", false);
222
226
  const query = map({
223
- [_uI]: [, __expectNonNull(input[_uI], `userId`)],
227
+ [_uI]: [, input[_uI]],
224
228
  });
225
229
  let body;
226
230
  b.m("DELETE").h(headers).q(query).b(body);
@@ -416,7 +420,7 @@ export const se_ListConversationsCommand = async (input, context) => {
416
420
  b.bp("/applications/{applicationId}/conversations");
417
421
  b.p("applicationId", () => input.applicationId, "{applicationId}", false);
418
422
  const query = map({
419
- [_uI]: [, __expectNonNull(input[_uI], `userId`)],
423
+ [_uI]: [, input[_uI]],
420
424
  [_nT]: [, input[_nT]],
421
425
  [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
422
426
  });
@@ -510,7 +514,7 @@ export const se_ListMessagesCommand = async (input, context) => {
510
514
  b.p("conversationId", () => input.conversationId, "{conversationId}", false);
511
515
  b.p("applicationId", () => input.applicationId, "{applicationId}", false);
512
516
  const query = map({
513
- [_uI]: [, __expectNonNull(input[_uI], `userId`)],
517
+ [_uI]: [, input[_uI]],
514
518
  [_nT]: [, input[_nT]],
515
519
  [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
516
520
  });
@@ -576,7 +580,7 @@ export const se_PutFeedbackCommand = async (input, context) => {
576
580
  b.p("conversationId", () => input.conversationId, "{conversationId}", false);
577
581
  b.p("messageId", () => input.messageId, "{messageId}", false);
578
582
  const query = map({
579
- [_uI]: [, __expectNonNull(input[_uI], `userId`)],
583
+ [_uI]: [, input[_uI]],
580
584
  });
581
585
  let body;
582
586
  body = JSON.stringify(take(input, {
@@ -683,6 +687,7 @@ export const se_UpdateChatControlsConfigurationCommand = async (input, context)
683
687
  body = JSON.stringify(take(input, {
684
688
  blockedPhrasesConfigurationUpdate: (_) => _json(_),
685
689
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
690
+ creatorModeConfiguration: (_) => _json(_),
686
691
  responseScope: [],
687
692
  topicConfigurationsToCreateOrUpdate: (_) => _json(_),
688
693
  topicConfigurationsToDelete: (_) => _json(_),
@@ -1065,6 +1070,7 @@ export const de_GetApplicationCommand = async (output, context) => {
1065
1070
  displayName: __expectString,
1066
1071
  encryptionConfiguration: _json,
1067
1072
  error: _json,
1073
+ identityCenterApplicationArn: __expectString,
1068
1074
  roleArn: __expectString,
1069
1075
  status: __expectString,
1070
1076
  updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -1082,6 +1088,7 @@ export const de_GetChatControlsConfigurationCommand = async (output, context) =>
1082
1088
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1083
1089
  const doc = take(data, {
1084
1090
  blockedPhrases: _json,
1091
+ creatorModeConfiguration: _json,
1085
1092
  nextToken: __expectString,
1086
1093
  responseScope: __expectString,
1087
1094
  topicConfigurations: _json,
@@ -1232,6 +1239,7 @@ export const de_GetWebExperienceCommand = async (output, context) => {
1232
1239
  createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1233
1240
  defaultEndpoint: __expectString,
1234
1241
  error: _json,
1242
+ roleArn: __expectString,
1235
1243
  samplePromptsControlMode: __expectString,
1236
1244
  status: __expectString,
1237
1245
  subtitle: __expectString,
@@ -392,21 +392,20 @@ export interface QBusiness {
392
392
  * <note>
393
393
  * <p>Amazon Q is in preview release and is subject to change.</p>
394
394
  * </note>
395
- * <p>This is the <i>Amazon Q (for business use)</i> API Reference.
396
- * Amazon Q is a fully managed, generative-AI powered enterprise chat assistant that
397
- * you can deploy within your organization. Amazon Q enhances employee productivity by
398
- * supporting key tasks such as question-answering, knowledge discovery, writing email
399
- * messages, summarizing text, drafting document outlines, and brainstorming ideas. Users
400
- * ask questions of Amazon Q and get answers that are presented in a conversational
401
- * manner. For an introduction to the service, see the <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/what-is.html">
402
- * <i>Amazon Q (for business use) Developer
403
- * Guide</i>
395
+ * <p>This is the <i>Amazon Q Business</i> API Reference. Amazon Q Business is a fully
396
+ * managed, generative-AI powered enterprise chat assistant that you can deploy within your
397
+ * organization. Amazon Q Business enhances employee productivity by supporting key tasks such
398
+ * as question-answering, knowledge discovery, writing email messages, summarizing text,
399
+ * drafting document outlines, and brainstorming ideas. Users ask questions of
400
+ * Amazon Q Business and get answers that are presented in a conversational manner. For an
401
+ * introduction to the service, see the <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/what-is.html">
402
+ * <i>Amazon Q Business User Guide</i>
404
403
  * </a>.</p>
405
- * <p>For an overview of the Amazon Q APIs, see <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/api-ref.html#api-overview">Overview of Amazon Q API operations</a>.</p>
404
+ * <p>For an overview of the Amazon Q Business APIs, see <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/api-ref.html#api-overview">Overview of Amazon Q Business API operations</a>.</p>
406
405
  * <p>For information about the IAM access control permissions you need to
407
- * use this API, see <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/iam-roles.html">IAM roles for Amazon Q</a> in the
408
- * <i>Amazon Q (for business use) Developer Guide</i>.</p>
409
- * <p>You can use the following AWS SDKs to access Amazon Q APIs:</p>
406
+ * use this API, see <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/iam-roles.html">IAM roles for Amazon Q Business</a> in the
407
+ * <i>Amazon Q Business User Guide</i>.</p>
408
+ * <p>You can use the following AWS SDKs to access Amazon Q Business APIs:</p>
410
409
  * <ul>
411
410
  * <li>
412
411
  * <p>
@@ -446,21 +445,21 @@ export interface QBusiness {
446
445
  * </p>
447
446
  * </li>
448
447
  * </ul>
449
- * <p>The following resources provide additional information about using the Amazon Q
448
+ * <p>The following resources provide additional information about using the Amazon Q Business
450
449
  * API:</p>
451
450
  * <ul>
452
451
  * <li>
453
452
  * <p>
454
453
  * <i>
455
454
  * <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/setting-up.html">Setting up for
456
- * Amazon Q</a>
455
+ * Amazon Q Business</a>
457
456
  * </i>
458
457
  * </p>
459
458
  * </li>
460
459
  * <li>
461
460
  * <p>
462
461
  * <i>
463
- * <a href="https://awscli.amazonaws.com/v2/documentation/api/latest/reference/qbusiness/index.html">Amazon Q CLI Reference</a>
462
+ * <a href="https://awscli.amazonaws.com/v2/documentation/api/latest/reference/qbusiness/index.html">Amazon Q Business CLI Reference</a>
464
463
  * </i>
465
464
  * </p>
466
465
  * </li>
@@ -209,21 +209,20 @@ export interface QBusinessClientResolvedConfig extends QBusinessClientResolvedCo
209
209
  * <note>
210
210
  * <p>Amazon Q is in preview release and is subject to change.</p>
211
211
  * </note>
212
- * <p>This is the <i>Amazon Q (for business use)</i> API Reference.
213
- * Amazon Q is a fully managed, generative-AI powered enterprise chat assistant that
214
- * you can deploy within your organization. Amazon Q enhances employee productivity by
215
- * supporting key tasks such as question-answering, knowledge discovery, writing email
216
- * messages, summarizing text, drafting document outlines, and brainstorming ideas. Users
217
- * ask questions of Amazon Q and get answers that are presented in a conversational
218
- * manner. For an introduction to the service, see the <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/what-is.html">
219
- * <i>Amazon Q (for business use) Developer
220
- * Guide</i>
212
+ * <p>This is the <i>Amazon Q Business</i> API Reference. Amazon Q Business is a fully
213
+ * managed, generative-AI powered enterprise chat assistant that you can deploy within your
214
+ * organization. Amazon Q Business enhances employee productivity by supporting key tasks such
215
+ * as question-answering, knowledge discovery, writing email messages, summarizing text,
216
+ * drafting document outlines, and brainstorming ideas. Users ask questions of
217
+ * Amazon Q Business and get answers that are presented in a conversational manner. For an
218
+ * introduction to the service, see the <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/what-is.html">
219
+ * <i>Amazon Q Business User Guide</i>
221
220
  * </a>.</p>
222
- * <p>For an overview of the Amazon Q APIs, see <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/api-ref.html#api-overview">Overview of Amazon Q API operations</a>.</p>
221
+ * <p>For an overview of the Amazon Q Business APIs, see <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/api-ref.html#api-overview">Overview of Amazon Q Business API operations</a>.</p>
223
222
  * <p>For information about the IAM access control permissions you need to
224
- * use this API, see <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/iam-roles.html">IAM roles for Amazon Q</a> in the
225
- * <i>Amazon Q (for business use) Developer Guide</i>.</p>
226
- * <p>You can use the following AWS SDKs to access Amazon Q APIs:</p>
223
+ * use this API, see <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/iam-roles.html">IAM roles for Amazon Q Business</a> in the
224
+ * <i>Amazon Q Business User Guide</i>.</p>
225
+ * <p>You can use the following AWS SDKs to access Amazon Q Business APIs:</p>
227
226
  * <ul>
228
227
  * <li>
229
228
  * <p>
@@ -263,21 +262,21 @@ export interface QBusinessClientResolvedConfig extends QBusinessClientResolvedCo
263
262
  * </p>
264
263
  * </li>
265
264
  * </ul>
266
- * <p>The following resources provide additional information about using the Amazon Q
265
+ * <p>The following resources provide additional information about using the Amazon Q Business
267
266
  * API:</p>
268
267
  * <ul>
269
268
  * <li>
270
269
  * <p>
271
270
  * <i>
272
271
  * <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/setting-up.html">Setting up for
273
- * Amazon Q</a>
272
+ * Amazon Q Business</a>
274
273
  * </i>
275
274
  * </p>
276
275
  * </li>
277
276
  * <li>
278
277
  * <p>
279
278
  * <i>
280
- * <a href="https://awscli.amazonaws.com/v2/documentation/api/latest/reference/qbusiness/index.html">Amazon Q CLI Reference</a>
279
+ * <a href="https://awscli.amazonaws.com/v2/documentation/api/latest/reference/qbusiness/index.html">Amazon Q Business CLI Reference</a>
281
280
  * </i>
282
281
  * </p>
283
282
  * </li>
@@ -27,7 +27,7 @@ declare const BatchDeleteDocumentCommand_base: {
27
27
  };
28
28
  /**
29
29
  * <p>Asynchronously deletes one or more documents added using the
30
- * <code>BatchPutDocument</code> API from an Amazon Q index.</p>
30
+ * <code>BatchPutDocument</code> API from an Amazon Q Business index.</p>
31
31
  * <p>You can see the progress of the deletion, and any error messages related to the
32
32
  * process, by using CloudWatch.</p>
33
33
  * @example
@@ -78,7 +78,7 @@ declare const BatchDeleteDocumentCommand_base: {
78
78
  * resource. Fix any inconsistences with your resources and try again.</p>
79
79
  *
80
80
  * @throws {@link InternalServerException} (server fault)
81
- * <p>An issue occurred with the internal server used for your Amazon Q service. Wait
81
+ * <p>An issue occurred with the internal server used for your Amazon Q Business service. Wait
82
82
  * some minutes and try again, or contact <a href="http://aws.amazon.com/contact-us/">Support</a> for help.</p>
83
83
  *
84
84
  * @throws {@link ResourceNotFoundException} (client fault)
@@ -90,7 +90,7 @@ declare const BatchDeleteDocumentCommand_base: {
90
90
  * again.</p>
91
91
  *
92
92
  * @throws {@link ValidationException} (client fault)
93
- * <p>The input doesn't meet the constraints set by the Amazon Q service. Provide the
93
+ * <p>The input doesn't meet the constraints set by the Amazon Q Business service. Provide the
94
94
  * correct input and try again.</p>
95
95
  *
96
96
  * @throws {@link QBusinessServiceException}
@@ -26,18 +26,18 @@ declare const BatchPutDocumentCommand_base: {
26
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
27
  };
28
28
  /**
29
- * <p>Adds one or more documents to an Amazon Q index.</p>
29
+ * <p>Adds one or more documents to an Amazon Q Business index.</p>
30
30
  * <p>You use this API to:</p>
31
31
  * <ul>
32
32
  * <li>
33
33
  * <p>ingest your structured and unstructured documents and documents stored in an
34
- * Amazon S3 bucket into an Amazon Q index.</p>
34
+ * Amazon S3 bucket into an Amazon Q Business index.</p>
35
35
  * </li>
36
36
  * <li>
37
- * <p>add custom attributes to documents in an Amazon Q index.</p>
37
+ * <p>add custom attributes to documents in an Amazon Q Business index.</p>
38
38
  * </li>
39
39
  * <li>
40
- * <p>attach an access control list to the documents added to an Amazon Q
40
+ * <p>attach an access control list to the documents added to an Amazon Q Business
41
41
  * index.</p>
42
42
  * </li>
43
43
  * </ul>
@@ -187,7 +187,7 @@ declare const BatchPutDocumentCommand_base: {
187
187
  * resource. Fix any inconsistences with your resources and try again.</p>
188
188
  *
189
189
  * @throws {@link InternalServerException} (server fault)
190
- * <p>An issue occurred with the internal server used for your Amazon Q service. Wait
190
+ * <p>An issue occurred with the internal server used for your Amazon Q Business service. Wait
191
191
  * some minutes and try again, or contact <a href="http://aws.amazon.com/contact-us/">Support</a> for help.</p>
192
192
  *
193
193
  * @throws {@link ResourceNotFoundException} (client fault)
@@ -195,14 +195,14 @@ declare const BatchPutDocumentCommand_base: {
195
195
  * resource and try again.</p>
196
196
  *
197
197
  * @throws {@link ServiceQuotaExceededException} (client fault)
198
- * <p>You have exceeded the set limits for your Amazon Q service. </p>
198
+ * <p>You have exceeded the set limits for your Amazon Q Business service. </p>
199
199
  *
200
200
  * @throws {@link ThrottlingException} (client fault)
201
201
  * <p>The request was denied due to throttling. Reduce the number of requests and try
202
202
  * again.</p>
203
203
  *
204
204
  * @throws {@link ValidationException} (client fault)
205
- * <p>The input doesn't meet the constraints set by the Amazon Q service. Provide the
205
+ * <p>The input doesn't meet the constraints set by the Amazon Q Business service. Provide the
206
206
  * correct input and try again.</p>
207
207
  *
208
208
  * @throws {@link QBusinessServiceException}
@@ -26,7 +26,7 @@ declare const ChatSyncCommand_base: {
26
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
27
  };
28
28
  /**
29
- * <p>Starts or continues a non-streaming Amazon Q conversation.</p>
29
+ * <p>Starts or continues a non-streaming Amazon Q Business conversation.</p>
30
30
  * @example
31
31
  * Use a bare-bones client and the command you need to make an API call.
32
32
  * ```javascript
@@ -35,7 +35,7 @@ declare const ChatSyncCommand_base: {
35
35
  * const client = new QBusinessClient(config);
36
36
  * const input = { // ChatSyncInput
37
37
  * applicationId: "STRING_VALUE", // required
38
- * userId: "STRING_VALUE", // required
38
+ * userId: "STRING_VALUE",
39
39
  * userGroups: [ // UserGroups
40
40
  * "STRING_VALUE",
41
41
  * ],
@@ -138,6 +138,12 @@ declare const ChatSyncCommand_base: {
138
138
  * lessThan: "<DocumentAttribute>",
139
139
  * lessThanOrEquals: "<DocumentAttribute>",
140
140
  * },
141
+ * chatMode: "RETRIEVAL_MODE" || "CREATOR_MODE" || "PLUGIN_MODE",
142
+ * chatModeConfiguration: { // ChatModeConfiguration Union: only one key present
143
+ * pluginConfiguration: { // PluginConfiguration
144
+ * pluginId: "STRING_VALUE", // required
145
+ * },
146
+ * },
141
147
  * clientToken: "STRING_VALUE",
142
148
  * };
143
149
  * const command = new ChatSyncCommand(input);
@@ -211,7 +217,7 @@ declare const ChatSyncCommand_base: {
211
217
  * resource. Fix any inconsistences with your resources and try again.</p>
212
218
  *
213
219
  * @throws {@link InternalServerException} (server fault)
214
- * <p>An issue occurred with the internal server used for your Amazon Q service. Wait
220
+ * <p>An issue occurred with the internal server used for your Amazon Q Business service. Wait
215
221
  * some minutes and try again, or contact <a href="http://aws.amazon.com/contact-us/">Support</a> for help.</p>
216
222
  *
217
223
  * @throws {@link LicenseNotFoundException} (client fault)
@@ -227,7 +233,7 @@ declare const ChatSyncCommand_base: {
227
233
  * again.</p>
228
234
  *
229
235
  * @throws {@link ValidationException} (client fault)
230
- * <p>The input doesn't meet the constraints set by the Amazon Q service. Provide the
236
+ * <p>The input doesn't meet the constraints set by the Amazon Q Business service. Provide the
231
237
  * correct input and try again.</p>
232
238
  *
233
239
  * @throws {@link QBusinessServiceException}
@@ -26,7 +26,7 @@ declare const CreateApplicationCommand_base: {
26
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
27
  };
28
28
  /**
29
- * <p>Creates an Amazon Q application.</p>
29
+ * <p>Creates an Amazon Q Business application.</p>
30
30
  * @example
31
31
  * Use a bare-bones client and the command you need to make an API call.
32
32
  * ```javascript
@@ -36,6 +36,7 @@ declare const CreateApplicationCommand_base: {
36
36
  * const input = { // CreateApplicationRequest
37
37
  * displayName: "STRING_VALUE", // required
38
38
  * roleArn: "STRING_VALUE", // required
39
+ * identityCenterInstanceArn: "STRING_VALUE",
39
40
  * description: "STRING_VALUE",
40
41
  * encryptionConfiguration: { // EncryptionConfiguration
41
42
  * kmsKeyId: "STRING_VALUE",
@@ -75,7 +76,7 @@ declare const CreateApplicationCommand_base: {
75
76
  * resource. Fix any inconsistences with your resources and try again.</p>
76
77
  *
77
78
  * @throws {@link InternalServerException} (server fault)
78
- * <p>An issue occurred with the internal server used for your Amazon Q service. Wait
79
+ * <p>An issue occurred with the internal server used for your Amazon Q Business service. Wait
79
80
  * some minutes and try again, or contact <a href="http://aws.amazon.com/contact-us/">Support</a> for help.</p>
80
81
  *
81
82
  * @throws {@link ResourceNotFoundException} (client fault)
@@ -83,14 +84,14 @@ declare const CreateApplicationCommand_base: {
83
84
  * resource and try again.</p>
84
85
  *
85
86
  * @throws {@link ServiceQuotaExceededException} (client fault)
86
- * <p>You have exceeded the set limits for your Amazon Q service. </p>
87
+ * <p>You have exceeded the set limits for your Amazon Q Business service. </p>
87
88
  *
88
89
  * @throws {@link ThrottlingException} (client fault)
89
90
  * <p>The request was denied due to throttling. Reduce the number of requests and try
90
91
  * again.</p>
91
92
  *
92
93
  * @throws {@link ValidationException} (client fault)
93
- * <p>The input doesn't meet the constraints set by the Amazon Q service. Provide the
94
+ * <p>The input doesn't meet the constraints set by the Amazon Q Business service. Provide the
94
95
  * correct input and try again.</p>
95
96
  *
96
97
  * @throws {@link QBusinessServiceException}