@aws-sdk/client-qbusiness 3.777.0 → 3.787.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 +14 -0
- package/dist-es/models/models_0.js +8 -0
- package/dist-es/protocols/Aws_restJson1.js +2 -0
- package/dist-types/commands/ChatCommand.d.ts +1 -0
- package/dist-types/commands/GetChatControlsConfigurationCommand.d.ts +3 -0
- package/dist-types/commands/ListPluginActionsCommand.d.ts +2 -1
- package/dist-types/commands/ListPluginTypeActionsCommand.d.ts +1 -1
- package/dist-types/commands/UpdateChatControlsConfigurationCommand.d.ts +3 -0
- package/dist-types/commands/UpdateUserCommand.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +65 -53
- package/dist-types/models/models_1.d.ts +59 -1
- package/dist-types/ts3.4/commands/ListPluginActionsCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/ListPluginTypeActionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +19 -13
- package/dist-types/ts3.4/models/models_1.d.ts +18 -0
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -109,6 +109,7 @@ __export(index_exports, {
|
|
|
109
109
|
GetUserCommand: () => GetUserCommand,
|
|
110
110
|
GetWebExperienceCommand: () => GetWebExperienceCommand,
|
|
111
111
|
GroupStatus: () => GroupStatus,
|
|
112
|
+
HallucinationReductionControl: () => HallucinationReductionControl,
|
|
112
113
|
IdentityProviderConfiguration: () => IdentityProviderConfiguration,
|
|
113
114
|
IdentityType: () => IdentityType,
|
|
114
115
|
ImageExtractionStatus: () => ImageExtractionStatus,
|
|
@@ -174,6 +175,7 @@ __export(index_exports, {
|
|
|
174
175
|
StringAttributeValueBoostingLevel: () => StringAttributeValueBoostingLevel,
|
|
175
176
|
SubscriptionPrincipal: () => SubscriptionPrincipal,
|
|
176
177
|
SubscriptionType: () => SubscriptionType,
|
|
178
|
+
SystemMessageType: () => SystemMessageType,
|
|
177
179
|
TagResourceCommand: () => TagResourceCommand,
|
|
178
180
|
ThrottlingException: () => ThrottlingException,
|
|
179
181
|
UntagResourceCommand: () => UntagResourceCommand,
|
|
@@ -911,6 +913,10 @@ var SourceDetails;
|
|
|
911
913
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
912
914
|
}, "visit");
|
|
913
915
|
})(SourceDetails || (SourceDetails = {}));
|
|
916
|
+
var SystemMessageType = {
|
|
917
|
+
GROUNDED_RESPONSE: "GROUNDED_RESPONSE",
|
|
918
|
+
RESPONSE: "RESPONSE"
|
|
919
|
+
};
|
|
914
920
|
var ChatOutputStream;
|
|
915
921
|
((ChatOutputStream3) => {
|
|
916
922
|
ChatOutputStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
@@ -993,6 +999,10 @@ var DocumentStatus = {
|
|
|
993
999
|
RECEIVED: "RECEIVED",
|
|
994
1000
|
UPDATED: "UPDATED"
|
|
995
1001
|
};
|
|
1002
|
+
var HallucinationReductionControl = {
|
|
1003
|
+
DISABLED: "DISABLED",
|
|
1004
|
+
ENABLED: "ENABLED"
|
|
1005
|
+
};
|
|
996
1006
|
var ResponseScope = {
|
|
997
1007
|
ENTERPRISE_CONTENT_ONLY: "ENTERPRISE_CONTENT_ONLY",
|
|
998
1008
|
EXTENDED_KNOWLEDGE_ENABLED: "EXTENDED_KNOWLEDGE_ENABLED"
|
|
@@ -2164,6 +2174,7 @@ var se_UpdateChatControlsConfigurationCommand = /* @__PURE__ */ __name(async (in
|
|
|
2164
2174
|
blockedPhrasesConfigurationUpdate: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "blockedPhrasesConfigurationUpdate"),
|
|
2165
2175
|
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
2166
2176
|
creatorModeConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "creatorModeConfiguration"),
|
|
2177
|
+
hallucinationReductionConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "hallucinationReductionConfiguration"),
|
|
2167
2178
|
orchestrationConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "orchestrationConfiguration"),
|
|
2168
2179
|
responseScope: [],
|
|
2169
2180
|
topicConfigurationsToCreateOrUpdate: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "topicConfigurationsToCreateOrUpdate"),
|
|
@@ -2734,6 +2745,7 @@ var de_GetChatControlsConfigurationCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2734
2745
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2735
2746
|
blockedPhrases: import_smithy_client._json,
|
|
2736
2747
|
creatorModeConfiguration: import_smithy_client._json,
|
|
2748
|
+
hallucinationReductionConfiguration: import_smithy_client._json,
|
|
2737
2749
|
nextToken: import_smithy_client.expectString,
|
|
2738
2750
|
orchestrationConfiguration: import_smithy_client._json,
|
|
2739
2751
|
responseScope: import_smithy_client.expectString,
|
|
@@ -5842,6 +5854,7 @@ var paginateSearchRelevantContent = (0, import_core.createPaginator)(QBusinessCl
|
|
|
5842
5854
|
ChatModeConfiguration,
|
|
5843
5855
|
VideoExtractionType,
|
|
5844
5856
|
SourceDetails,
|
|
5857
|
+
SystemMessageType,
|
|
5845
5858
|
ChatOutputStream,
|
|
5846
5859
|
ExternalResourceException,
|
|
5847
5860
|
LicenseNotFoundException,
|
|
@@ -5849,6 +5862,7 @@ var paginateSearchRelevantContent = (0, import_core.createPaginator)(QBusinessCl
|
|
|
5849
5862
|
SubscriptionPrincipal,
|
|
5850
5863
|
DataSourceSyncJobStatus,
|
|
5851
5864
|
DocumentStatus,
|
|
5865
|
+
HallucinationReductionControl,
|
|
5852
5866
|
ResponseScope,
|
|
5853
5867
|
RuleConfiguration,
|
|
5854
5868
|
RuleType,
|
|
@@ -465,6 +465,10 @@ export var SourceDetails;
|
|
|
465
465
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
466
466
|
};
|
|
467
467
|
})(SourceDetails || (SourceDetails = {}));
|
|
468
|
+
export const SystemMessageType = {
|
|
469
|
+
GROUNDED_RESPONSE: "GROUNDED_RESPONSE",
|
|
470
|
+
RESPONSE: "RESPONSE",
|
|
471
|
+
};
|
|
468
472
|
export var ChatOutputStream;
|
|
469
473
|
(function (ChatOutputStream) {
|
|
470
474
|
ChatOutputStream.visit = (value, visitor) => {
|
|
@@ -542,6 +546,10 @@ export const DocumentStatus = {
|
|
|
542
546
|
RECEIVED: "RECEIVED",
|
|
543
547
|
UPDATED: "UPDATED",
|
|
544
548
|
};
|
|
549
|
+
export const HallucinationReductionControl = {
|
|
550
|
+
DISABLED: "DISABLED",
|
|
551
|
+
ENABLED: "ENABLED",
|
|
552
|
+
};
|
|
545
553
|
export const ResponseScope = {
|
|
546
554
|
ENTERPRISE_CONTENT_ONLY: "ENTERPRISE_CONTENT_ONLY",
|
|
547
555
|
EXTENDED_KNOWLEDGE_ENABLED: "EXTENDED_KNOWLEDGE_ENABLED",
|
|
@@ -949,6 +949,7 @@ export const se_UpdateChatControlsConfigurationCommand = async (input, context)
|
|
|
949
949
|
blockedPhrasesConfigurationUpdate: (_) => _json(_),
|
|
950
950
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
951
951
|
creatorModeConfiguration: (_) => _json(_),
|
|
952
|
+
hallucinationReductionConfiguration: (_) => _json(_),
|
|
952
953
|
orchestrationConfiguration: (_) => _json(_),
|
|
953
954
|
responseScope: [],
|
|
954
955
|
topicConfigurationsToCreateOrUpdate: (_) => _json(_),
|
|
@@ -1502,6 +1503,7 @@ export const de_GetChatControlsConfigurationCommand = async (output, context) =>
|
|
|
1502
1503
|
const doc = take(data, {
|
|
1503
1504
|
blockedPhrases: _json,
|
|
1504
1505
|
creatorModeConfiguration: _json,
|
|
1506
|
+
hallucinationReductionConfiguration: _json,
|
|
1505
1507
|
nextToken: __expectString,
|
|
1506
1508
|
orchestrationConfiguration: _json,
|
|
1507
1509
|
responseScope: __expectString,
|
|
@@ -171,6 +171,7 @@ declare const ChatCommand_base: {
|
|
|
171
171
|
* // { // ChatOutput
|
|
172
172
|
* // outputStream: { // ChatOutputStream Union: only one key present
|
|
173
173
|
* // textEvent: { // TextOutputEvent
|
|
174
|
+
* // systemMessageType: "RESPONSE" || "GROUNDED_RESPONSE",
|
|
174
175
|
* // conversationId: "STRING_VALUE",
|
|
175
176
|
* // userMessageId: "STRING_VALUE",
|
|
176
177
|
* // systemMessageId: "STRING_VALUE",
|
|
@@ -100,6 +100,9 @@ declare const GetChatControlsConfigurationCommand_base: {
|
|
|
100
100
|
* // creatorModeControl: "ENABLED" || "DISABLED", // required
|
|
101
101
|
* // },
|
|
102
102
|
* // nextToken: "STRING_VALUE",
|
|
103
|
+
* // hallucinationReductionConfiguration: { // HallucinationReductionConfiguration
|
|
104
|
+
* // hallucinationReductionControl: "ENABLED" || "DISABLED",
|
|
105
|
+
* // },
|
|
103
106
|
* // };
|
|
104
107
|
*
|
|
105
108
|
* ```
|
|
@@ -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 { ListPluginActionsRequest
|
|
3
|
+
import { ListPluginActionsRequest } from "../models/models_0";
|
|
4
|
+
import { ListPluginActionsResponse } from "../models/models_1";
|
|
4
5
|
import { QBusinessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QBusinessClient";
|
|
5
6
|
/**
|
|
6
7
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { ListPluginTypeActionsRequest, ListPluginTypeActionsResponse } from "../models/
|
|
3
|
+
import { ListPluginTypeActionsRequest, ListPluginTypeActionsResponse } from "../models/models_1";
|
|
4
4
|
import { QBusinessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QBusinessClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
@@ -140,6 +140,9 @@ declare const UpdateChatControlsConfigurationCommand_base: {
|
|
|
140
140
|
* creatorModeConfiguration: { // CreatorModeConfiguration
|
|
141
141
|
* creatorModeControl: "ENABLED" || "DISABLED", // required
|
|
142
142
|
* },
|
|
143
|
+
* hallucinationReductionConfiguration: { // HallucinationReductionConfiguration
|
|
144
|
+
* hallucinationReductionControl: "ENABLED" || "DISABLED",
|
|
145
|
+
* },
|
|
143
146
|
* };
|
|
144
147
|
* const command = new UpdateChatControlsConfigurationCommand(input);
|
|
145
148
|
* const response = await client.send(command);
|
|
@@ -90,6 +90,10 @@ declare const UpdateUserCommand_base: {
|
|
|
90
90
|
* <p> You don't have access to perform this action. Make sure you have the required
|
|
91
91
|
* permission policies and user accounts and try again.</p>
|
|
92
92
|
*
|
|
93
|
+
* @throws {@link ConflictException} (client fault)
|
|
94
|
+
* <p>You are trying to perform an action that conflicts with the current status of your
|
|
95
|
+
* resource. Fix any inconsistencies with your resources and try again.</p>
|
|
96
|
+
*
|
|
93
97
|
* @throws {@link InternalServerException} (server fault)
|
|
94
98
|
* <p>An issue occurred with the internal server used for your Amazon Q Business service. Wait
|
|
95
99
|
* some minutes and try again, or contact <a href="http://aws.amazon.com/contact-us/">Support</a> for help.</p>
|
|
@@ -5514,12 +5514,43 @@ export interface MetadataEvent {
|
|
|
5514
5514
|
*/
|
|
5515
5515
|
finalTextMessage?: string | undefined;
|
|
5516
5516
|
}
|
|
5517
|
+
/**
|
|
5518
|
+
* @public
|
|
5519
|
+
* @enum
|
|
5520
|
+
*/
|
|
5521
|
+
export declare const SystemMessageType: {
|
|
5522
|
+
readonly GROUNDED_RESPONSE: "GROUNDED_RESPONSE";
|
|
5523
|
+
readonly RESPONSE: "RESPONSE";
|
|
5524
|
+
};
|
|
5525
|
+
/**
|
|
5526
|
+
* @public
|
|
5527
|
+
*/
|
|
5528
|
+
export type SystemMessageType = (typeof SystemMessageType)[keyof typeof SystemMessageType];
|
|
5517
5529
|
/**
|
|
5518
5530
|
* <p>An output event for an AI-generated response in an Amazon Q Business web
|
|
5519
5531
|
* experience.</p>
|
|
5520
5532
|
* @public
|
|
5521
5533
|
*/
|
|
5522
5534
|
export interface TextOutputEvent {
|
|
5535
|
+
/**
|
|
5536
|
+
* <p>The type of AI-generated message in a <code>TextOutputEvent</code>. Amazon Q Business
|
|
5537
|
+
* currently supports two types of messages:</p>
|
|
5538
|
+
* <ul>
|
|
5539
|
+
* <li>
|
|
5540
|
+
* <p>
|
|
5541
|
+
* <code>RESPONSE</code> - The Amazon Q Business system response.</p>
|
|
5542
|
+
* </li>
|
|
5543
|
+
* <li>
|
|
5544
|
+
* <p>
|
|
5545
|
+
* <code>GROUNDED_RESPONSE</code> - The corrected, hallucination-reduced,
|
|
5546
|
+
* response returned by Amazon Q Business. Available only if hallucination reduction is
|
|
5547
|
+
* supported and configured for the application and detected in the end user chat
|
|
5548
|
+
* query by Amazon Q Business.</p>
|
|
5549
|
+
* </li>
|
|
5550
|
+
* </ul>
|
|
5551
|
+
* @public
|
|
5552
|
+
*/
|
|
5553
|
+
systemMessageType?: SystemMessageType | undefined;
|
|
5523
5554
|
/**
|
|
5524
5555
|
* <p>The identifier of the conversation with which the text output event is
|
|
5525
5556
|
* associated.</p>
|
|
@@ -6313,6 +6344,35 @@ export interface GetChatControlsConfigurationRequest {
|
|
|
6313
6344
|
*/
|
|
6314
6345
|
nextToken?: string | undefined;
|
|
6315
6346
|
}
|
|
6347
|
+
/**
|
|
6348
|
+
* @public
|
|
6349
|
+
* @enum
|
|
6350
|
+
*/
|
|
6351
|
+
export declare const HallucinationReductionControl: {
|
|
6352
|
+
readonly DISABLED: "DISABLED";
|
|
6353
|
+
readonly ENABLED: "ENABLED";
|
|
6354
|
+
};
|
|
6355
|
+
/**
|
|
6356
|
+
* @public
|
|
6357
|
+
*/
|
|
6358
|
+
export type HallucinationReductionControl = (typeof HallucinationReductionControl)[keyof typeof HallucinationReductionControl];
|
|
6359
|
+
/**
|
|
6360
|
+
* <p>Configuration information required to setup hallucination reduction. For more
|
|
6361
|
+
* information, see <a href="amazonq/latest/qbusiness-ug/hallucination-reduction.html">hallucination reduction</a>.</p>
|
|
6362
|
+
* <note>
|
|
6363
|
+
* <p>The hallucination reduction feature won't work if chat orchestration controls are
|
|
6364
|
+
* enabled for your application.</p>
|
|
6365
|
+
* </note>
|
|
6366
|
+
* @public
|
|
6367
|
+
*/
|
|
6368
|
+
export interface HallucinationReductionConfiguration {
|
|
6369
|
+
/**
|
|
6370
|
+
* <p>Controls whether hallucination reduction has been enabled or disabled for your
|
|
6371
|
+
* application. The default status is <code>DISABLED</code>. </p>
|
|
6372
|
+
* @public
|
|
6373
|
+
*/
|
|
6374
|
+
hallucinationReductionControl?: HallucinationReductionControl | undefined;
|
|
6375
|
+
}
|
|
6316
6376
|
/**
|
|
6317
6377
|
* @public
|
|
6318
6378
|
* @enum
|
|
@@ -6497,6 +6557,11 @@ export interface GetChatControlsConfigurationResponse {
|
|
|
6497
6557
|
* @public
|
|
6498
6558
|
*/
|
|
6499
6559
|
nextToken?: string | undefined;
|
|
6560
|
+
/**
|
|
6561
|
+
* <p> The hallucination reduction settings for your application.</p>
|
|
6562
|
+
* @public
|
|
6563
|
+
*/
|
|
6564
|
+
hallucinationReductionConfiguration?: HallucinationReductionConfiguration | undefined;
|
|
6500
6565
|
}
|
|
6501
6566
|
/**
|
|
6502
6567
|
* @public
|
|
@@ -7079,59 +7144,6 @@ export interface ListPluginActionsRequest {
|
|
|
7079
7144
|
*/
|
|
7080
7145
|
maxResults?: number | undefined;
|
|
7081
7146
|
}
|
|
7082
|
-
/**
|
|
7083
|
-
* @public
|
|
7084
|
-
*/
|
|
7085
|
-
export interface ListPluginActionsResponse {
|
|
7086
|
-
/**
|
|
7087
|
-
* <p>If the response is truncated, Amazon Q Business returns this token, which you
|
|
7088
|
-
* can use in a later request to list the next set of plugin actions.</p>
|
|
7089
|
-
* @public
|
|
7090
|
-
*/
|
|
7091
|
-
nextToken?: string | undefined;
|
|
7092
|
-
/**
|
|
7093
|
-
* <p>An array of information on one or more plugin actions.</p>
|
|
7094
|
-
* @public
|
|
7095
|
-
*/
|
|
7096
|
-
items?: ActionSummary[] | undefined;
|
|
7097
|
-
}
|
|
7098
|
-
/**
|
|
7099
|
-
* @public
|
|
7100
|
-
*/
|
|
7101
|
-
export interface ListPluginTypeActionsRequest {
|
|
7102
|
-
/**
|
|
7103
|
-
* <p>The type of the plugin.</p>
|
|
7104
|
-
* @public
|
|
7105
|
-
*/
|
|
7106
|
-
pluginType: PluginType | undefined;
|
|
7107
|
-
/**
|
|
7108
|
-
* <p>If the number of plugins returned exceeds <code>maxResults</code>, Amazon Q Business returns a next token as a pagination token to retrieve the next set
|
|
7109
|
-
* of plugins.</p>
|
|
7110
|
-
* @public
|
|
7111
|
-
*/
|
|
7112
|
-
nextToken?: string | undefined;
|
|
7113
|
-
/**
|
|
7114
|
-
* <p>The maximum number of plugins to return.</p>
|
|
7115
|
-
* @public
|
|
7116
|
-
*/
|
|
7117
|
-
maxResults?: number | undefined;
|
|
7118
|
-
}
|
|
7119
|
-
/**
|
|
7120
|
-
* @public
|
|
7121
|
-
*/
|
|
7122
|
-
export interface ListPluginTypeActionsResponse {
|
|
7123
|
-
/**
|
|
7124
|
-
* <p>If the response is truncated, Amazon Q Business returns this token, which you
|
|
7125
|
-
* can use in a later request to list the next set of plugins.</p>
|
|
7126
|
-
* @public
|
|
7127
|
-
*/
|
|
7128
|
-
nextToken?: string | undefined;
|
|
7129
|
-
/**
|
|
7130
|
-
* <p>An array of information on one or more plugins.</p>
|
|
7131
|
-
* @public
|
|
7132
|
-
*/
|
|
7133
|
-
items?: ActionSummary[] | undefined;
|
|
7134
|
-
}
|
|
7135
7147
|
/**
|
|
7136
7148
|
* @internal
|
|
7137
7149
|
*/
|
|
@@ -1,4 +1,57 @@
|
|
|
1
|
-
import { ActionExecution, ActionExecutionEvent, AttachmentInput, AttachmentInputEvent, AuthChallengeResponse, AuthChallengeResponseEvent, BlockedPhrasesConfigurationUpdate, ChatMode, ChatModeConfiguration, ContentSource, CreatorModeConfiguration, DocumentAttribute, EndOfInputEvent, MembershipType, OrchestrationControl, PluginType, ResponseScope, S3, SubscriptionDetails, SubscriptionPrincipal, SubscriptionType, Tag, TextInputEvent, TopicConfiguration, UserAlias } from "./models_0";
|
|
1
|
+
import { ActionExecution, ActionExecutionEvent, ActionSummary, AttachmentInput, AttachmentInputEvent, AuthChallengeResponse, AuthChallengeResponseEvent, BlockedPhrasesConfigurationUpdate, ChatMode, ChatModeConfiguration, ContentSource, CreatorModeConfiguration, DocumentAttribute, EndOfInputEvent, HallucinationReductionConfiguration, MembershipType, OrchestrationControl, PluginType, ResponseScope, S3, SubscriptionDetails, SubscriptionPrincipal, SubscriptionType, Tag, TextInputEvent, TopicConfiguration, UserAlias } from "./models_0";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface ListPluginActionsResponse {
|
|
6
|
+
/**
|
|
7
|
+
* <p>If the response is truncated, Amazon Q Business returns this token, which you
|
|
8
|
+
* can use in a later request to list the next set of plugin actions.</p>
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
nextToken?: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* <p>An array of information on one or more plugin actions.</p>
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
items?: ActionSummary[] | undefined;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
export interface ListPluginTypeActionsRequest {
|
|
22
|
+
/**
|
|
23
|
+
* <p>The type of the plugin.</p>
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
pluginType: PluginType | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* <p>If the number of plugins returned exceeds <code>maxResults</code>, Amazon Q Business returns a next token as a pagination token to retrieve the next set
|
|
29
|
+
* of plugins.</p>
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
nextToken?: string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* <p>The maximum number of plugins to return.</p>
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
maxResults?: number | undefined;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
export interface ListPluginTypeActionsResponse {
|
|
43
|
+
/**
|
|
44
|
+
* <p>If the response is truncated, Amazon Q Business returns this token, which you
|
|
45
|
+
* can use in a later request to list the next set of plugins.</p>
|
|
46
|
+
* @public
|
|
47
|
+
*/
|
|
48
|
+
nextToken?: string | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* <p>An array of information on one or more plugins.</p>
|
|
51
|
+
* @public
|
|
52
|
+
*/
|
|
53
|
+
items?: ActionSummary[] | undefined;
|
|
54
|
+
}
|
|
2
55
|
/**
|
|
3
56
|
* @public
|
|
4
57
|
*/
|
|
@@ -616,6 +669,11 @@ export interface UpdateChatControlsConfigurationRequest {
|
|
|
616
669
|
* @public
|
|
617
670
|
*/
|
|
618
671
|
creatorModeConfiguration?: CreatorModeConfiguration | undefined;
|
|
672
|
+
/**
|
|
673
|
+
* <p> The hallucination reduction settings for your application.</p>
|
|
674
|
+
* @public
|
|
675
|
+
*/
|
|
676
|
+
hallucinationReductionConfiguration?: HallucinationReductionConfiguration | undefined;
|
|
619
677
|
}
|
|
620
678
|
/**
|
|
621
679
|
* @public
|
|
@@ -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
|
-
|
|
5
|
-
ListPluginActionsResponse,
|
|
6
|
-
} from "../models/models_0";
|
|
3
|
+
import { ListPluginActionsRequest } from "../models/models_0";
|
|
4
|
+
import { ListPluginActionsResponse } from "../models/models_1";
|
|
7
5
|
import {
|
|
8
6
|
QBusinessClientResolvedConfig,
|
|
9
7
|
ServiceInputTypes,
|
|
@@ -3,7 +3,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
|
3
3
|
import {
|
|
4
4
|
ListPluginTypeActionsRequest,
|
|
5
5
|
ListPluginTypeActionsResponse,
|
|
6
|
-
} from "../models/
|
|
6
|
+
} from "../models/models_1";
|
|
7
7
|
import {
|
|
8
8
|
QBusinessClientResolvedConfig,
|
|
9
9
|
ServiceInputTypes,
|
|
@@ -1630,7 +1630,14 @@ export interface MetadataEvent {
|
|
|
1630
1630
|
sourceAttributions?: SourceAttribution[] | undefined;
|
|
1631
1631
|
finalTextMessage?: string | undefined;
|
|
1632
1632
|
}
|
|
1633
|
+
export declare const SystemMessageType: {
|
|
1634
|
+
readonly GROUNDED_RESPONSE: "GROUNDED_RESPONSE";
|
|
1635
|
+
readonly RESPONSE: "RESPONSE";
|
|
1636
|
+
};
|
|
1637
|
+
export type SystemMessageType =
|
|
1638
|
+
(typeof SystemMessageType)[keyof typeof SystemMessageType];
|
|
1633
1639
|
export interface TextOutputEvent {
|
|
1640
|
+
systemMessageType?: SystemMessageType | undefined;
|
|
1634
1641
|
conversationId?: string | undefined;
|
|
1635
1642
|
userMessageId?: string | undefined;
|
|
1636
1643
|
systemMessageId?: string | undefined;
|
|
@@ -1904,6 +1911,15 @@ export interface GetChatControlsConfigurationRequest {
|
|
|
1904
1911
|
maxResults?: number | undefined;
|
|
1905
1912
|
nextToken?: string | undefined;
|
|
1906
1913
|
}
|
|
1914
|
+
export declare const HallucinationReductionControl: {
|
|
1915
|
+
readonly DISABLED: "DISABLED";
|
|
1916
|
+
readonly ENABLED: "ENABLED";
|
|
1917
|
+
};
|
|
1918
|
+
export type HallucinationReductionControl =
|
|
1919
|
+
(typeof HallucinationReductionControl)[keyof typeof HallucinationReductionControl];
|
|
1920
|
+
export interface HallucinationReductionConfiguration {
|
|
1921
|
+
hallucinationReductionControl?: HallucinationReductionControl | undefined;
|
|
1922
|
+
}
|
|
1907
1923
|
export declare const ResponseScope: {
|
|
1908
1924
|
readonly ENTERPRISE_CONTENT_ONLY: "ENTERPRISE_CONTENT_ONLY";
|
|
1909
1925
|
readonly EXTENDED_KNOWLEDGE_ENABLED: "EXTENDED_KNOWLEDGE_ENABLED";
|
|
@@ -1964,6 +1980,9 @@ export interface GetChatControlsConfigurationResponse {
|
|
|
1964
1980
|
topicConfigurations?: TopicConfiguration[] | undefined;
|
|
1965
1981
|
creatorModeConfiguration?: AppliedCreatorModeConfiguration | undefined;
|
|
1966
1982
|
nextToken?: string | undefined;
|
|
1983
|
+
hallucinationReductionConfiguration?:
|
|
1984
|
+
| HallucinationReductionConfiguration
|
|
1985
|
+
| undefined;
|
|
1967
1986
|
}
|
|
1968
1987
|
export interface GetGroupRequest {
|
|
1969
1988
|
applicationId: string | undefined;
|
|
@@ -2111,19 +2130,6 @@ export interface ListPluginActionsRequest {
|
|
|
2111
2130
|
nextToken?: string | undefined;
|
|
2112
2131
|
maxResults?: number | undefined;
|
|
2113
2132
|
}
|
|
2114
|
-
export interface ListPluginActionsResponse {
|
|
2115
|
-
nextToken?: string | undefined;
|
|
2116
|
-
items?: ActionSummary[] | undefined;
|
|
2117
|
-
}
|
|
2118
|
-
export interface ListPluginTypeActionsRequest {
|
|
2119
|
-
pluginType: PluginType | undefined;
|
|
2120
|
-
nextToken?: string | undefined;
|
|
2121
|
-
maxResults?: number | undefined;
|
|
2122
|
-
}
|
|
2123
|
-
export interface ListPluginTypeActionsResponse {
|
|
2124
|
-
nextToken?: string | undefined;
|
|
2125
|
-
items?: ActionSummary[] | undefined;
|
|
2126
|
-
}
|
|
2127
2133
|
export declare const APISchemaFilterSensitiveLog: (obj: APISchema) => any;
|
|
2128
2134
|
export declare const EncryptionConfigurationFilterSensitiveLog: (
|
|
2129
2135
|
obj: EncryptionConfiguration
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ActionExecution,
|
|
3
3
|
ActionExecutionEvent,
|
|
4
|
+
ActionSummary,
|
|
4
5
|
AttachmentInput,
|
|
5
6
|
AttachmentInputEvent,
|
|
6
7
|
AuthChallengeResponse,
|
|
@@ -12,6 +13,7 @@ import {
|
|
|
12
13
|
CreatorModeConfiguration,
|
|
13
14
|
DocumentAttribute,
|
|
14
15
|
EndOfInputEvent,
|
|
16
|
+
HallucinationReductionConfiguration,
|
|
15
17
|
MembershipType,
|
|
16
18
|
OrchestrationControl,
|
|
17
19
|
PluginType,
|
|
@@ -25,6 +27,19 @@ import {
|
|
|
25
27
|
TopicConfiguration,
|
|
26
28
|
UserAlias,
|
|
27
29
|
} from "./models_0";
|
|
30
|
+
export interface ListPluginActionsResponse {
|
|
31
|
+
nextToken?: string | undefined;
|
|
32
|
+
items?: ActionSummary[] | undefined;
|
|
33
|
+
}
|
|
34
|
+
export interface ListPluginTypeActionsRequest {
|
|
35
|
+
pluginType: PluginType | undefined;
|
|
36
|
+
nextToken?: string | undefined;
|
|
37
|
+
maxResults?: number | undefined;
|
|
38
|
+
}
|
|
39
|
+
export interface ListPluginTypeActionsResponse {
|
|
40
|
+
nextToken?: string | undefined;
|
|
41
|
+
items?: ActionSummary[] | undefined;
|
|
42
|
+
}
|
|
28
43
|
export interface ListPluginTypeMetadataRequest {
|
|
29
44
|
nextToken?: string | undefined;
|
|
30
45
|
maxResults?: number | undefined;
|
|
@@ -190,6 +205,9 @@ export interface UpdateChatControlsConfigurationRequest {
|
|
|
190
205
|
topicConfigurationsToCreateOrUpdate?: TopicConfiguration[] | undefined;
|
|
191
206
|
topicConfigurationsToDelete?: TopicConfiguration[] | undefined;
|
|
192
207
|
creatorModeConfiguration?: CreatorModeConfiguration | undefined;
|
|
208
|
+
hallucinationReductionConfiguration?:
|
|
209
|
+
| HallucinationReductionConfiguration
|
|
210
|
+
| undefined;
|
|
193
211
|
}
|
|
194
212
|
export interface UpdateChatControlsConfigurationResponse {}
|
|
195
213
|
export interface UpdateSubscriptionRequest {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-qbusiness",
|
|
3
3
|
"description": "AWS SDK for JavaScript Qbusiness Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.787.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-qbusiness",
|
|
@@ -21,18 +21,18 @@
|
|
|
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.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.787.0",
|
|
25
25
|
"@aws-sdk/eventstream-handler-node": "3.775.0",
|
|
26
26
|
"@aws-sdk/middleware-eventstream": "3.775.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.775.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.775.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.775.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.787.0",
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.775.0",
|
|
32
32
|
"@aws-sdk/types": "3.775.0",
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.787.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.775.0",
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.787.0",
|
|
36
36
|
"@smithy/config-resolver": "^4.1.0",
|
|
37
37
|
"@smithy/core": "^3.2.0",
|
|
38
38
|
"@smithy/eventstream-serde-browser": "^4.0.2",
|