@aws-sdk/client-qconnect 3.461.0 → 3.465.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/README.md +15 -0
- package/dist-cjs/QConnect.js +2 -0
- package/dist-cjs/commands/PutFeedbackCommand.js +51 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +18 -2
- package/dist-cjs/protocols/Aws_restJson1.js +70 -2
- package/dist-es/QConnect.js +2 -0
- package/dist-es/commands/PutFeedbackCommand.js +47 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +16 -0
- package/dist-es/protocols/Aws_restJson1.js +66 -0
- package/dist-types/QConnect.d.ts +15 -1
- package/dist-types/QConnectClient.d.ts +11 -3
- package/dist-types/commands/CreateQuickResponseCommand.d.ts +1 -1
- package/dist-types/commands/PutFeedbackCommand.d.ts +97 -0
- package/dist-types/commands/SearchQuickResponsesCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/index.d.ts +8 -1
- package/dist-types/models/models_0.d.ts +121 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/QConnect.d.ts +17 -0
- package/dist-types/ts3.4/QConnectClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/PutFeedbackCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +44 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +14 -16
package/README.md
CHANGED
|
@@ -6,6 +6,13 @@
|
|
|
6
6
|
|
|
7
7
|
AWS SDK for JavaScript QConnect Client for Node.js, Browser and React Native.
|
|
8
8
|
|
|
9
|
+
<note>
|
|
10
|
+
<p>
|
|
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>
|
|
15
|
+
</note>
|
|
9
16
|
<p>Amazon Q in Connect is a generative AI customer service assistant. It is an LLM-enhanced evolution
|
|
10
17
|
of Amazon Connect Wisdom that delivers real-time recommendations to help contact center
|
|
11
18
|
agents resolve customer issues quickly and accurately.</p>
|
|
@@ -446,6 +453,14 @@ NotifyRecommendationsReceived
|
|
|
446
453
|
|
|
447
454
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qconnect/command/NotifyRecommendationsReceivedCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/NotifyRecommendationsReceivedCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/NotifyRecommendationsReceivedCommandOutput/)
|
|
448
455
|
|
|
456
|
+
</details>
|
|
457
|
+
<details>
|
|
458
|
+
<summary>
|
|
459
|
+
PutFeedback
|
|
460
|
+
</summary>
|
|
461
|
+
|
|
462
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qconnect/command/PutFeedbackCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/PutFeedbackCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/PutFeedbackCommandOutput/)
|
|
463
|
+
|
|
449
464
|
</details>
|
|
450
465
|
<details>
|
|
451
466
|
<summary>
|
package/dist-cjs/QConnect.js
CHANGED
|
@@ -31,6 +31,7 @@ const ListKnowledgeBasesCommand_1 = require("./commands/ListKnowledgeBasesComman
|
|
|
31
31
|
const ListQuickResponsesCommand_1 = require("./commands/ListQuickResponsesCommand");
|
|
32
32
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
33
33
|
const NotifyRecommendationsReceivedCommand_1 = require("./commands/NotifyRecommendationsReceivedCommand");
|
|
34
|
+
const PutFeedbackCommand_1 = require("./commands/PutFeedbackCommand");
|
|
34
35
|
const QueryAssistantCommand_1 = require("./commands/QueryAssistantCommand");
|
|
35
36
|
const RemoveKnowledgeBaseTemplateUriCommand_1 = require("./commands/RemoveKnowledgeBaseTemplateUriCommand");
|
|
36
37
|
const SearchContentCommand_1 = require("./commands/SearchContentCommand");
|
|
@@ -74,6 +75,7 @@ const commands = {
|
|
|
74
75
|
ListQuickResponsesCommand: ListQuickResponsesCommand_1.ListQuickResponsesCommand,
|
|
75
76
|
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
76
77
|
NotifyRecommendationsReceivedCommand: NotifyRecommendationsReceivedCommand_1.NotifyRecommendationsReceivedCommand,
|
|
78
|
+
PutFeedbackCommand: PutFeedbackCommand_1.PutFeedbackCommand,
|
|
77
79
|
QueryAssistantCommand: QueryAssistantCommand_1.QueryAssistantCommand,
|
|
78
80
|
RemoveKnowledgeBaseTemplateUriCommand: RemoveKnowledgeBaseTemplateUriCommand_1.RemoveKnowledgeBaseTemplateUriCommand,
|
|
79
81
|
SearchContentCommand: SearchContentCommand_1.SearchContentCommand,
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PutFeedbackCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class PutFeedbackCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PutFeedbackCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "QConnectClient";
|
|
29
|
+
const commandName = "PutFeedbackCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "WisdomService",
|
|
38
|
+
operation: "PutFeedback",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_restJson1_1.se_PutFeedbackCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_restJson1_1.de_PutFeedbackCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.PutFeedbackCommand = PutFeedbackCommand;
|
|
@@ -30,6 +30,7 @@ tslib_1.__exportStar(require("./ListKnowledgeBasesCommand"), exports);
|
|
|
30
30
|
tslib_1.__exportStar(require("./ListQuickResponsesCommand"), exports);
|
|
31
31
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
32
32
|
tslib_1.__exportStar(require("./NotifyRecommendationsReceivedCommand"), exports);
|
|
33
|
+
tslib_1.__exportStar(require("./PutFeedbackCommand"), exports);
|
|
33
34
|
tslib_1.__exportStar(require("./QueryAssistantCommand"), exports);
|
|
34
35
|
tslib_1.__exportStar(require("./RemoveKnowledgeBaseTemplateUriCommand"), exports);
|
|
35
36
|
tslib_1.__exportStar(require("./SearchContentCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.QueryAssistantResponseFilterSensitiveLog = exports.GetRecommendationsResponseFilterSensitiveLog = exports.ResultDataFilterSensitiveLog = exports.RecommendationDataFilterSensitiveLog = exports.GenerativeDataDetailsFilterSensitiveLog = exports.DataSummaryFilterSensitiveLog = exports.DataDetailsFilterSensitiveLog = exports.StartImportJobResponseFilterSensitiveLog = exports.StartContentUploadResponseFilterSensitiveLog = exports.SearchQuickResponsesResponseFilterSensitiveLog = exports.QuickResponseSearchResultDataFilterSensitiveLog = exports.SearchQuickResponsesRequestFilterSensitiveLog = exports.UpdateQuickResponseResponseFilterSensitiveLog = exports.UpdateQuickResponseRequestFilterSensitiveLog = exports.ListQuickResponsesResponseFilterSensitiveLog = exports.QuickResponseSummaryFilterSensitiveLog = exports.GetQuickResponseResponseFilterSensitiveLog = exports.GetImportJobResponseFilterSensitiveLog = exports.ImportJobDataFilterSensitiveLog = exports.CreateQuickResponseResponseFilterSensitiveLog = exports.QuickResponseDataFilterSensitiveLog = exports.QuickResponseContentsFilterSensitiveLog = exports.QuickResponseContentProviderFilterSensitiveLog = exports.CreateQuickResponseRequestFilterSensitiveLog = exports.GroupingConfigurationFilterSensitiveLog = exports.QuickResponseDataProviderFilterSensitiveLog = exports.UpdateContentResponseFilterSensitiveLog = exports.GetContentResponseFilterSensitiveLog = exports.CreateContentResponseFilterSensitiveLog = exports.ContentDataFilterSensitiveLog = exports.QueryAssistantRequestFilterSensitiveLog = exports.RecommendationTriggerFilterSensitiveLog = void 0;
|
|
3
|
+
exports.SourceContentDataDetailsFilterSensitiveLog = exports.ContentDataDetailsFilterSensitiveLog = exports.TextDataFilterSensitiveLog = exports.DocumentTextFilterSensitiveLog = exports.DataDetails = exports.TooManyTagsException = exports.Priority = exports.QuickResponseQueryOperator = exports.Order = exports.QuickResponseFilterOperator = exports.ImportJobStatus = exports.ImportJobType = exports.ExternalSource = exports.QuickResponseStatus = exports.QuickResponseContentProvider = exports.QuickResponseDataProvider = exports.KnowledgeBaseStatus = exports.SourceConfiguration = exports.KnowledgeBaseType = exports.PreconditionFailedException = exports.ContentStatus = exports.Configuration = exports.FilterOperator = exports.FilterField = exports.RequestTimeoutException = exports.QueryResultType = exports.QueryCondition = exports.QueryConditionFieldName = exports.QueryConditionComparisonOperator = exports.TargetType = exports.ContentFeedbackData = exports.Relevance = exports.RecommendationTriggerType = exports.RecommendationSourceType = exports.RecommendationTriggerData = exports.RecommendationType = exports.DataReference = exports.SourceContentType = exports.RelevanceLevel = exports.AssistantStatus = exports.AssistantCapabilityType = exports.AssistantType = exports.ValidationException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.AssistantAssociationOutputData = exports.AssociationType = exports.AssistantAssociationInputData = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
|
+
exports.QueryAssistantResponseFilterSensitiveLog = exports.GetRecommendationsResponseFilterSensitiveLog = exports.ResultDataFilterSensitiveLog = exports.RecommendationDataFilterSensitiveLog = exports.GenerativeDataDetailsFilterSensitiveLog = exports.DataSummaryFilterSensitiveLog = exports.DataDetailsFilterSensitiveLog = exports.StartImportJobResponseFilterSensitiveLog = exports.StartContentUploadResponseFilterSensitiveLog = exports.SearchQuickResponsesResponseFilterSensitiveLog = exports.QuickResponseSearchResultDataFilterSensitiveLog = exports.SearchQuickResponsesRequestFilterSensitiveLog = exports.UpdateQuickResponseResponseFilterSensitiveLog = exports.UpdateQuickResponseRequestFilterSensitiveLog = exports.ListQuickResponsesResponseFilterSensitiveLog = exports.QuickResponseSummaryFilterSensitiveLog = exports.GetQuickResponseResponseFilterSensitiveLog = exports.GetImportJobResponseFilterSensitiveLog = exports.ImportJobDataFilterSensitiveLog = exports.CreateQuickResponseResponseFilterSensitiveLog = exports.QuickResponseDataFilterSensitiveLog = exports.QuickResponseContentsFilterSensitiveLog = exports.QuickResponseContentProviderFilterSensitiveLog = exports.CreateQuickResponseRequestFilterSensitiveLog = exports.GroupingConfigurationFilterSensitiveLog = exports.QuickResponseDataProviderFilterSensitiveLog = exports.UpdateContentResponseFilterSensitiveLog = exports.GetContentResponseFilterSensitiveLog = exports.CreateContentResponseFilterSensitiveLog = exports.ContentDataFilterSensitiveLog = exports.QueryAssistantRequestFilterSensitiveLog = exports.RecommendationTriggerFilterSensitiveLog = exports.RecommendationTriggerDataFilterSensitiveLog = exports.QueryRecommendationTriggerDataFilterSensitiveLog = exports.DocumentFilterSensitiveLog = void 0;
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const QConnectServiceException_1 = require("./QConnectServiceException");
|
|
7
7
|
class AccessDeniedException extends QConnectServiceException_1.QConnectServiceException {
|
|
@@ -144,6 +144,22 @@ exports.RecommendationTriggerType = {
|
|
|
144
144
|
GENERATIVE: "GENERATIVE",
|
|
145
145
|
QUERY: "QUERY",
|
|
146
146
|
};
|
|
147
|
+
exports.Relevance = {
|
|
148
|
+
HELPFUL: "HELPFUL",
|
|
149
|
+
NOT_HELPFUL: "NOT_HELPFUL",
|
|
150
|
+
};
|
|
151
|
+
var ContentFeedbackData;
|
|
152
|
+
(function (ContentFeedbackData) {
|
|
153
|
+
ContentFeedbackData.visit = (value, visitor) => {
|
|
154
|
+
if (value.generativeContentFeedbackData !== undefined)
|
|
155
|
+
return visitor.generativeContentFeedbackData(value.generativeContentFeedbackData);
|
|
156
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
157
|
+
};
|
|
158
|
+
})(ContentFeedbackData = exports.ContentFeedbackData || (exports.ContentFeedbackData = {}));
|
|
159
|
+
exports.TargetType = {
|
|
160
|
+
RECOMMENDATION: "RECOMMENDATION",
|
|
161
|
+
RESULT: "RESULT",
|
|
162
|
+
};
|
|
147
163
|
exports.QueryConditionComparisonOperator = {
|
|
148
164
|
EQUALS: "EQUALS",
|
|
149
165
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.de_UpdateQuickResponseCommand = exports.de_UpdateKnowledgeBaseTemplateUriCommand = exports.de_UpdateContentCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartImportJobCommand = exports.de_StartContentUploadCommand = exports.de_SearchSessionsCommand = exports.de_SearchQuickResponsesCommand = exports.de_SearchContentCommand = exports.de_RemoveKnowledgeBaseTemplateUriCommand = exports.de_QueryAssistantCommand = exports.de_NotifyRecommendationsReceivedCommand = exports.de_ListTagsForResourceCommand = exports.de_ListQuickResponsesCommand = exports.de_ListKnowledgeBasesCommand = exports.de_ListImportJobsCommand = exports.de_ListContentsCommand = exports.de_ListAssistantsCommand = exports.de_ListAssistantAssociationsCommand = exports.de_GetSessionCommand = exports.de_GetRecommendationsCommand = exports.de_GetQuickResponseCommand = exports.de_GetKnowledgeBaseCommand = exports.de_GetImportJobCommand = exports.de_GetContentSummaryCommand = exports.de_GetContentCommand = exports.de_GetAssistantAssociationCommand = exports.de_GetAssistantCommand = exports.de_DeleteQuickResponseCommand = exports.de_DeleteKnowledgeBaseCommand = exports.de_DeleteImportJobCommand = void 0;
|
|
3
|
+
exports.de_DeleteAssistantAssociationCommand = exports.de_DeleteAssistantCommand = exports.de_CreateSessionCommand = exports.de_CreateQuickResponseCommand = exports.de_CreateKnowledgeBaseCommand = exports.de_CreateContentCommand = exports.de_CreateAssistantAssociationCommand = exports.de_CreateAssistantCommand = exports.se_UpdateQuickResponseCommand = exports.se_UpdateKnowledgeBaseTemplateUriCommand = exports.se_UpdateContentCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartImportJobCommand = exports.se_StartContentUploadCommand = exports.se_SearchSessionsCommand = exports.se_SearchQuickResponsesCommand = exports.se_SearchContentCommand = exports.se_RemoveKnowledgeBaseTemplateUriCommand = exports.se_QueryAssistantCommand = exports.se_PutFeedbackCommand = exports.se_NotifyRecommendationsReceivedCommand = exports.se_ListTagsForResourceCommand = exports.se_ListQuickResponsesCommand = exports.se_ListKnowledgeBasesCommand = exports.se_ListImportJobsCommand = exports.se_ListContentsCommand = exports.se_ListAssistantsCommand = exports.se_ListAssistantAssociationsCommand = exports.se_GetSessionCommand = exports.se_GetRecommendationsCommand = exports.se_GetQuickResponseCommand = exports.se_GetKnowledgeBaseCommand = exports.se_GetImportJobCommand = exports.se_GetContentSummaryCommand = exports.se_GetContentCommand = exports.se_GetAssistantAssociationCommand = exports.se_GetAssistantCommand = exports.se_DeleteQuickResponseCommand = exports.se_DeleteKnowledgeBaseCommand = exports.se_DeleteImportJobCommand = exports.se_DeleteContentCommand = exports.se_DeleteAssistantAssociationCommand = exports.se_DeleteAssistantCommand = exports.se_CreateSessionCommand = exports.se_CreateQuickResponseCommand = exports.se_CreateKnowledgeBaseCommand = exports.se_CreateContentCommand = exports.se_CreateAssistantAssociationCommand = exports.se_CreateAssistantCommand = void 0;
|
|
4
|
+
exports.de_UpdateQuickResponseCommand = exports.de_UpdateKnowledgeBaseTemplateUriCommand = exports.de_UpdateContentCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartImportJobCommand = exports.de_StartContentUploadCommand = exports.de_SearchSessionsCommand = exports.de_SearchQuickResponsesCommand = exports.de_SearchContentCommand = exports.de_RemoveKnowledgeBaseTemplateUriCommand = exports.de_QueryAssistantCommand = exports.de_PutFeedbackCommand = exports.de_NotifyRecommendationsReceivedCommand = exports.de_ListTagsForResourceCommand = exports.de_ListQuickResponsesCommand = exports.de_ListKnowledgeBasesCommand = exports.de_ListImportJobsCommand = exports.de_ListContentsCommand = exports.de_ListAssistantsCommand = exports.de_ListAssistantAssociationsCommand = exports.de_GetSessionCommand = exports.de_GetRecommendationsCommand = exports.de_GetQuickResponseCommand = exports.de_GetKnowledgeBaseCommand = exports.de_GetImportJobCommand = exports.de_GetContentSummaryCommand = exports.de_GetContentCommand = exports.de_GetAssistantAssociationCommand = exports.de_GetAssistantCommand = exports.de_DeleteQuickResponseCommand = exports.de_DeleteKnowledgeBaseCommand = exports.de_DeleteImportJobCommand = exports.de_DeleteContentCommand = void 0;
|
|
5
5
|
const core_1 = require("@aws-sdk/core");
|
|
6
6
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
@@ -630,6 +630,30 @@ const se_NotifyRecommendationsReceivedCommand = async (input, context) => {
|
|
|
630
630
|
});
|
|
631
631
|
};
|
|
632
632
|
exports.se_NotifyRecommendationsReceivedCommand = se_NotifyRecommendationsReceivedCommand;
|
|
633
|
+
const se_PutFeedbackCommand = async (input, context) => {
|
|
634
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
635
|
+
const headers = {
|
|
636
|
+
"content-type": "application/json",
|
|
637
|
+
};
|
|
638
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assistants/{assistantId}/feedback";
|
|
639
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assistantId", () => input.assistantId, "{assistantId}", false);
|
|
640
|
+
let body;
|
|
641
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
642
|
+
contentFeedback: (_) => (0, smithy_client_1._json)(_),
|
|
643
|
+
targetId: [],
|
|
644
|
+
targetType: [],
|
|
645
|
+
}));
|
|
646
|
+
return new protocol_http_1.HttpRequest({
|
|
647
|
+
protocol,
|
|
648
|
+
hostname,
|
|
649
|
+
port,
|
|
650
|
+
method: "PUT",
|
|
651
|
+
headers,
|
|
652
|
+
path: resolvedPath,
|
|
653
|
+
body,
|
|
654
|
+
});
|
|
655
|
+
};
|
|
656
|
+
exports.se_PutFeedbackCommand = se_PutFeedbackCommand;
|
|
633
657
|
const se_QueryAssistantCommand = async (input, context) => {
|
|
634
658
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
635
659
|
const headers = {
|
|
@@ -2099,6 +2123,50 @@ const de_NotifyRecommendationsReceivedCommandError = async (output, context) =>
|
|
|
2099
2123
|
});
|
|
2100
2124
|
}
|
|
2101
2125
|
};
|
|
2126
|
+
const de_PutFeedbackCommand = async (output, context) => {
|
|
2127
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2128
|
+
return de_PutFeedbackCommandError(output, context);
|
|
2129
|
+
}
|
|
2130
|
+
const contents = (0, smithy_client_1.map)({
|
|
2131
|
+
$metadata: deserializeMetadata(output),
|
|
2132
|
+
});
|
|
2133
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2134
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2135
|
+
assistantArn: smithy_client_1.expectString,
|
|
2136
|
+
assistantId: smithy_client_1.expectString,
|
|
2137
|
+
contentFeedback: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
2138
|
+
targetId: smithy_client_1.expectString,
|
|
2139
|
+
targetType: smithy_client_1.expectString,
|
|
2140
|
+
});
|
|
2141
|
+
Object.assign(contents, doc);
|
|
2142
|
+
return contents;
|
|
2143
|
+
};
|
|
2144
|
+
exports.de_PutFeedbackCommand = de_PutFeedbackCommand;
|
|
2145
|
+
const de_PutFeedbackCommandError = async (output, context) => {
|
|
2146
|
+
const parsedOutput = {
|
|
2147
|
+
...output,
|
|
2148
|
+
body: await parseErrorBody(output.body, context),
|
|
2149
|
+
};
|
|
2150
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2151
|
+
switch (errorCode) {
|
|
2152
|
+
case "AccessDeniedException":
|
|
2153
|
+
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
2154
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2155
|
+
case "ResourceNotFoundException":
|
|
2156
|
+
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
2157
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2158
|
+
case "ValidationException":
|
|
2159
|
+
case "com.amazonaws.qconnect#ValidationException":
|
|
2160
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2161
|
+
default:
|
|
2162
|
+
const parsedBody = parsedOutput.body;
|
|
2163
|
+
return throwDefaultError({
|
|
2164
|
+
output,
|
|
2165
|
+
parsedBody,
|
|
2166
|
+
errorCode,
|
|
2167
|
+
});
|
|
2168
|
+
}
|
|
2169
|
+
};
|
|
2102
2170
|
const de_QueryAssistantCommand = async (output, context) => {
|
|
2103
2171
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2104
2172
|
return de_QueryAssistantCommandError(output, context);
|
package/dist-es/QConnect.js
CHANGED
|
@@ -28,6 +28,7 @@ import { ListKnowledgeBasesCommand, } from "./commands/ListKnowledgeBasesCommand
|
|
|
28
28
|
import { ListQuickResponsesCommand, } from "./commands/ListQuickResponsesCommand";
|
|
29
29
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
30
30
|
import { NotifyRecommendationsReceivedCommand, } from "./commands/NotifyRecommendationsReceivedCommand";
|
|
31
|
+
import { PutFeedbackCommand } from "./commands/PutFeedbackCommand";
|
|
31
32
|
import { QueryAssistantCommand, } from "./commands/QueryAssistantCommand";
|
|
32
33
|
import { RemoveKnowledgeBaseTemplateUriCommand, } from "./commands/RemoveKnowledgeBaseTemplateUriCommand";
|
|
33
34
|
import { SearchContentCommand, } from "./commands/SearchContentCommand";
|
|
@@ -71,6 +72,7 @@ const commands = {
|
|
|
71
72
|
ListQuickResponsesCommand,
|
|
72
73
|
ListTagsForResourceCommand,
|
|
73
74
|
NotifyRecommendationsReceivedCommand,
|
|
75
|
+
PutFeedbackCommand,
|
|
74
76
|
QueryAssistantCommand,
|
|
75
77
|
RemoveKnowledgeBaseTemplateUriCommand,
|
|
76
78
|
SearchContentCommand,
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_PutFeedbackCommand, se_PutFeedbackCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class PutFeedbackCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, PutFeedbackCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "QConnectClient";
|
|
26
|
+
const commandName = "PutFeedbackCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "WisdomService",
|
|
35
|
+
operation: "PutFeedback",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_PutFeedbackCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_PutFeedbackCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -27,6 +27,7 @@ export * from "./ListKnowledgeBasesCommand";
|
|
|
27
27
|
export * from "./ListQuickResponsesCommand";
|
|
28
28
|
export * from "./ListTagsForResourceCommand";
|
|
29
29
|
export * from "./NotifyRecommendationsReceivedCommand";
|
|
30
|
+
export * from "./PutFeedbackCommand";
|
|
30
31
|
export * from "./QueryAssistantCommand";
|
|
31
32
|
export * from "./RemoveKnowledgeBaseTemplateUriCommand";
|
|
32
33
|
export * from "./SearchContentCommand";
|
|
@@ -135,6 +135,22 @@ export const RecommendationTriggerType = {
|
|
|
135
135
|
GENERATIVE: "GENERATIVE",
|
|
136
136
|
QUERY: "QUERY",
|
|
137
137
|
};
|
|
138
|
+
export const Relevance = {
|
|
139
|
+
HELPFUL: "HELPFUL",
|
|
140
|
+
NOT_HELPFUL: "NOT_HELPFUL",
|
|
141
|
+
};
|
|
142
|
+
export var ContentFeedbackData;
|
|
143
|
+
(function (ContentFeedbackData) {
|
|
144
|
+
ContentFeedbackData.visit = (value, visitor) => {
|
|
145
|
+
if (value.generativeContentFeedbackData !== undefined)
|
|
146
|
+
return visitor.generativeContentFeedbackData(value.generativeContentFeedbackData);
|
|
147
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
148
|
+
};
|
|
149
|
+
})(ContentFeedbackData || (ContentFeedbackData = {}));
|
|
150
|
+
export const TargetType = {
|
|
151
|
+
RECOMMENDATION: "RECOMMENDATION",
|
|
152
|
+
RESULT: "RESULT",
|
|
153
|
+
};
|
|
138
154
|
export const QueryConditionComparisonOperator = {
|
|
139
155
|
EQUALS: "EQUALS",
|
|
140
156
|
};
|
|
@@ -597,6 +597,29 @@ export const se_NotifyRecommendationsReceivedCommand = async (input, context) =>
|
|
|
597
597
|
body,
|
|
598
598
|
});
|
|
599
599
|
};
|
|
600
|
+
export const se_PutFeedbackCommand = async (input, context) => {
|
|
601
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
602
|
+
const headers = {
|
|
603
|
+
"content-type": "application/json",
|
|
604
|
+
};
|
|
605
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assistants/{assistantId}/feedback";
|
|
606
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "assistantId", () => input.assistantId, "{assistantId}", false);
|
|
607
|
+
let body;
|
|
608
|
+
body = JSON.stringify(take(input, {
|
|
609
|
+
contentFeedback: (_) => _json(_),
|
|
610
|
+
targetId: [],
|
|
611
|
+
targetType: [],
|
|
612
|
+
}));
|
|
613
|
+
return new __HttpRequest({
|
|
614
|
+
protocol,
|
|
615
|
+
hostname,
|
|
616
|
+
port,
|
|
617
|
+
method: "PUT",
|
|
618
|
+
headers,
|
|
619
|
+
path: resolvedPath,
|
|
620
|
+
body,
|
|
621
|
+
});
|
|
622
|
+
};
|
|
600
623
|
export const se_QueryAssistantCommand = async (input, context) => {
|
|
601
624
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
602
625
|
const headers = {
|
|
@@ -2025,6 +2048,49 @@ const de_NotifyRecommendationsReceivedCommandError = async (output, context) =>
|
|
|
2025
2048
|
});
|
|
2026
2049
|
}
|
|
2027
2050
|
};
|
|
2051
|
+
export const de_PutFeedbackCommand = async (output, context) => {
|
|
2052
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2053
|
+
return de_PutFeedbackCommandError(output, context);
|
|
2054
|
+
}
|
|
2055
|
+
const contents = map({
|
|
2056
|
+
$metadata: deserializeMetadata(output),
|
|
2057
|
+
});
|
|
2058
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2059
|
+
const doc = take(data, {
|
|
2060
|
+
assistantArn: __expectString,
|
|
2061
|
+
assistantId: __expectString,
|
|
2062
|
+
contentFeedback: (_) => _json(__expectUnion(_)),
|
|
2063
|
+
targetId: __expectString,
|
|
2064
|
+
targetType: __expectString,
|
|
2065
|
+
});
|
|
2066
|
+
Object.assign(contents, doc);
|
|
2067
|
+
return contents;
|
|
2068
|
+
};
|
|
2069
|
+
const de_PutFeedbackCommandError = async (output, context) => {
|
|
2070
|
+
const parsedOutput = {
|
|
2071
|
+
...output,
|
|
2072
|
+
body: await parseErrorBody(output.body, context),
|
|
2073
|
+
};
|
|
2074
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2075
|
+
switch (errorCode) {
|
|
2076
|
+
case "AccessDeniedException":
|
|
2077
|
+
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
2078
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2079
|
+
case "ResourceNotFoundException":
|
|
2080
|
+
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
2081
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2082
|
+
case "ValidationException":
|
|
2083
|
+
case "com.amazonaws.qconnect#ValidationException":
|
|
2084
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2085
|
+
default:
|
|
2086
|
+
const parsedBody = parsedOutput.body;
|
|
2087
|
+
return throwDefaultError({
|
|
2088
|
+
output,
|
|
2089
|
+
parsedBody,
|
|
2090
|
+
errorCode,
|
|
2091
|
+
});
|
|
2092
|
+
}
|
|
2093
|
+
};
|
|
2028
2094
|
export const de_QueryAssistantCommand = async (output, context) => {
|
|
2029
2095
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2030
2096
|
return de_QueryAssistantCommandError(output, context);
|
package/dist-types/QConnect.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ import { ListKnowledgeBasesCommandInput, ListKnowledgeBasesCommandOutput } from
|
|
|
28
28
|
import { ListQuickResponsesCommandInput, ListQuickResponsesCommandOutput } from "./commands/ListQuickResponsesCommand";
|
|
29
29
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
30
30
|
import { NotifyRecommendationsReceivedCommandInput, NotifyRecommendationsReceivedCommandOutput } from "./commands/NotifyRecommendationsReceivedCommand";
|
|
31
|
+
import { PutFeedbackCommandInput, PutFeedbackCommandOutput } from "./commands/PutFeedbackCommand";
|
|
31
32
|
import { QueryAssistantCommandInput, QueryAssistantCommandOutput } from "./commands/QueryAssistantCommand";
|
|
32
33
|
import { RemoveKnowledgeBaseTemplateUriCommandInput, RemoveKnowledgeBaseTemplateUriCommandOutput } from "./commands/RemoveKnowledgeBaseTemplateUriCommand";
|
|
33
34
|
import { SearchContentCommandInput, SearchContentCommandOutput } from "./commands/SearchContentCommand";
|
|
@@ -216,6 +217,12 @@ export interface QConnect {
|
|
|
216
217
|
notifyRecommendationsReceived(args: NotifyRecommendationsReceivedCommandInput, options?: __HttpHandlerOptions): Promise<NotifyRecommendationsReceivedCommandOutput>;
|
|
217
218
|
notifyRecommendationsReceived(args: NotifyRecommendationsReceivedCommandInput, cb: (err: any, data?: NotifyRecommendationsReceivedCommandOutput) => void): void;
|
|
218
219
|
notifyRecommendationsReceived(args: NotifyRecommendationsReceivedCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: NotifyRecommendationsReceivedCommandOutput) => void): void;
|
|
220
|
+
/**
|
|
221
|
+
* @see {@link PutFeedbackCommand}
|
|
222
|
+
*/
|
|
223
|
+
putFeedback(args: PutFeedbackCommandInput, options?: __HttpHandlerOptions): Promise<PutFeedbackCommandOutput>;
|
|
224
|
+
putFeedback(args: PutFeedbackCommandInput, cb: (err: any, data?: PutFeedbackCommandOutput) => void): void;
|
|
225
|
+
putFeedback(args: PutFeedbackCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutFeedbackCommandOutput) => void): void;
|
|
219
226
|
/**
|
|
220
227
|
* @see {@link QueryAssistantCommand}
|
|
221
228
|
*/
|
|
@@ -291,7 +298,14 @@ export interface QConnect {
|
|
|
291
298
|
}
|
|
292
299
|
/**
|
|
293
300
|
* @public
|
|
294
|
-
* <
|
|
301
|
+
* <note>
|
|
302
|
+
* <p>
|
|
303
|
+
* <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
|
|
304
|
+
* detection</a>. Because Amazon Q in Connect is built on Amazon Bedrock, users can take full
|
|
305
|
+
* advantage of the controls implemented in Amazon Bedrock to enforce safety, security, and the
|
|
306
|
+
* responsible use of artificial intelligence (AI).</p>
|
|
307
|
+
* </note>
|
|
308
|
+
* <p>Amazon Q in Connect is a generative AI customer service assistant. It is an LLM-enhanced evolution
|
|
295
309
|
* of Amazon Connect Wisdom that delivers real-time recommendations to help contact center
|
|
296
310
|
* agents resolve customer issues quickly and accurately.</p>
|
|
297
311
|
* <p>Amazon Q automatically detects customer intent during calls and chats using
|
|
@@ -37,6 +37,7 @@ import { ListKnowledgeBasesCommandInput, ListKnowledgeBasesCommandOutput } from
|
|
|
37
37
|
import { ListQuickResponsesCommandInput, ListQuickResponsesCommandOutput } from "./commands/ListQuickResponsesCommand";
|
|
38
38
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
39
39
|
import { NotifyRecommendationsReceivedCommandInput, NotifyRecommendationsReceivedCommandOutput } from "./commands/NotifyRecommendationsReceivedCommand";
|
|
40
|
+
import { PutFeedbackCommandInput, PutFeedbackCommandOutput } from "./commands/PutFeedbackCommand";
|
|
40
41
|
import { QueryAssistantCommandInput, QueryAssistantCommandOutput } from "./commands/QueryAssistantCommand";
|
|
41
42
|
import { RemoveKnowledgeBaseTemplateUriCommandInput, RemoveKnowledgeBaseTemplateUriCommandOutput } from "./commands/RemoveKnowledgeBaseTemplateUriCommand";
|
|
42
43
|
import { SearchContentCommandInput, SearchContentCommandOutput } from "./commands/SearchContentCommand";
|
|
@@ -55,11 +56,11 @@ 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 | 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;
|
|
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 | 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;
|
|
63
64
|
/**
|
|
64
65
|
* @public
|
|
65
66
|
*/
|
|
@@ -193,7 +194,14 @@ export interface QConnectClientResolvedConfig extends QConnectClientResolvedConf
|
|
|
193
194
|
}
|
|
194
195
|
/**
|
|
195
196
|
* @public
|
|
196
|
-
* <
|
|
197
|
+
* <note>
|
|
198
|
+
* <p>
|
|
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
|
|
200
|
+
* detection</a>. Because Amazon Q in Connect is built on Amazon Bedrock, users can take full
|
|
201
|
+
* advantage of the controls implemented in Amazon Bedrock to enforce safety, security, and the
|
|
202
|
+
* responsible use of artificial intelligence (AI).</p>
|
|
203
|
+
* </note>
|
|
204
|
+
* <p>Amazon Q in Connect is a generative AI customer service assistant. It is an LLM-enhanced evolution
|
|
197
205
|
* of Amazon Connect Wisdom that delivers real-time recommendations to help contact center
|
|
198
206
|
* agents resolve customer issues quickly and accurately.</p>
|
|
199
207
|
* <p>Amazon Q automatically detects customer intent during calls and chats using
|
|
@@ -23,7 +23,7 @@ export interface CreateQuickResponseCommandOutput extends CreateQuickResponseRes
|
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
|
-
* <p>Creates
|
|
26
|
+
* <p>Creates an Amazon Q quick response.</p>
|
|
27
27
|
* @example
|
|
28
28
|
* Use a bare-bones client and the command you need to make an API call.
|
|
29
29
|
* ```javascript
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { PutFeedbackRequest, PutFeedbackResponse } from "../models/models_0";
|
|
5
|
+
import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link PutFeedbackCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface PutFeedbackCommandInput extends PutFeedbackRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link PutFeedbackCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface PutFeedbackCommandOutput extends PutFeedbackResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Provides feedback against the specified assistant for the specified target. This API only supports generative targets.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { QConnectClient, PutFeedbackCommand } from "@aws-sdk/client-qconnect"; // ES Modules import
|
|
31
|
+
* // const { QConnectClient, PutFeedbackCommand } = require("@aws-sdk/client-qconnect"); // CommonJS import
|
|
32
|
+
* const client = new QConnectClient(config);
|
|
33
|
+
* const input = { // PutFeedbackRequest
|
|
34
|
+
* assistantId: "STRING_VALUE", // required
|
|
35
|
+
* targetId: "STRING_VALUE", // required
|
|
36
|
+
* targetType: "STRING_VALUE", // required
|
|
37
|
+
* contentFeedback: { // ContentFeedbackData Union: only one key present
|
|
38
|
+
* generativeContentFeedbackData: { // GenerativeContentFeedbackData
|
|
39
|
+
* relevance: "STRING_VALUE", // required
|
|
40
|
+
* },
|
|
41
|
+
* },
|
|
42
|
+
* };
|
|
43
|
+
* const command = new PutFeedbackCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // PutFeedbackResponse
|
|
46
|
+
* // assistantId: "STRING_VALUE", // required
|
|
47
|
+
* // assistantArn: "STRING_VALUE", // required
|
|
48
|
+
* // targetId: "STRING_VALUE", // required
|
|
49
|
+
* // targetType: "STRING_VALUE", // required
|
|
50
|
+
* // contentFeedback: { // ContentFeedbackData Union: only one key present
|
|
51
|
+
* // generativeContentFeedbackData: { // GenerativeContentFeedbackData
|
|
52
|
+
* // relevance: "STRING_VALUE", // required
|
|
53
|
+
* // },
|
|
54
|
+
* // },
|
|
55
|
+
* // };
|
|
56
|
+
*
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* @param PutFeedbackCommandInput - {@link PutFeedbackCommandInput}
|
|
60
|
+
* @returns {@link PutFeedbackCommandOutput}
|
|
61
|
+
* @see {@link PutFeedbackCommandInput} for command's `input` shape.
|
|
62
|
+
* @see {@link PutFeedbackCommandOutput} for command's `response` shape.
|
|
63
|
+
* @see {@link QConnectClientResolvedConfig | config} for QConnectClient's `config` shape.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
66
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
69
|
+
* <p>The specified resource does not exist.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ValidationException} (client fault)
|
|
72
|
+
* <p>The input fails to satisfy the constraints specified by a service.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link QConnectServiceException}
|
|
75
|
+
* <p>Base exception class for all service exceptions from QConnect service.</p>
|
|
76
|
+
*
|
|
77
|
+
*/
|
|
78
|
+
export declare class PutFeedbackCommand extends $Command<PutFeedbackCommandInput, PutFeedbackCommandOutput, QConnectClientResolvedConfig> {
|
|
79
|
+
readonly input: PutFeedbackCommandInput;
|
|
80
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
81
|
+
/**
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
constructor(input: PutFeedbackCommandInput);
|
|
85
|
+
/**
|
|
86
|
+
* @internal
|
|
87
|
+
*/
|
|
88
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: QConnectClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutFeedbackCommandInput, PutFeedbackCommandOutput>;
|
|
89
|
+
/**
|
|
90
|
+
* @internal
|
|
91
|
+
*/
|
|
92
|
+
private serialize;
|
|
93
|
+
/**
|
|
94
|
+
* @internal
|
|
95
|
+
*/
|
|
96
|
+
private deserialize;
|
|
97
|
+
}
|
|
@@ -23,7 +23,7 @@ export interface SearchQuickResponsesCommandOutput extends SearchQuickResponsesR
|
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
|
-
* <p>Searches existing Amazon Q quick responses in
|
|
26
|
+
* <p>Searches existing Amazon Q quick responses in an Amazon Q knowledge base.</p>
|
|
27
27
|
* @example
|
|
28
28
|
* Use a bare-bones client and the command you need to make an API call.
|
|
29
29
|
* ```javascript
|
|
@@ -27,6 +27,7 @@ export * from "./ListKnowledgeBasesCommand";
|
|
|
27
27
|
export * from "./ListQuickResponsesCommand";
|
|
28
28
|
export * from "./ListTagsForResourceCommand";
|
|
29
29
|
export * from "./NotifyRecommendationsReceivedCommand";
|
|
30
|
+
export * from "./PutFeedbackCommand";
|
|
30
31
|
export * from "./QueryAssistantCommand";
|
|
31
32
|
export * from "./RemoveKnowledgeBaseTemplateUriCommand";
|
|
32
33
|
export * from "./SearchContentCommand";
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* <
|
|
2
|
+
* <note>
|
|
3
|
+
* <p>
|
|
4
|
+
* <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
|
|
5
|
+
* detection</a>. Because Amazon Q in Connect is built on Amazon Bedrock, users can take full
|
|
6
|
+
* advantage of the controls implemented in Amazon Bedrock to enforce safety, security, and the
|
|
7
|
+
* responsible use of artificial intelligence (AI).</p>
|
|
8
|
+
* </note>
|
|
9
|
+
* <p>Amazon Q in Connect is a generative AI customer service assistant. It is an LLM-enhanced evolution
|
|
3
10
|
* of Amazon Connect Wisdom that delivers real-time recommendations to help contact center
|
|
4
11
|
* agents resolve customer issues quickly and accurately.</p>
|
|
5
12
|
* <p>Amazon Q automatically detects customer intent during calls and chats using
|
|
@@ -523,7 +523,7 @@ export declare const AssistantCapabilityType: {
|
|
|
523
523
|
export type AssistantCapabilityType = (typeof AssistantCapabilityType)[keyof typeof AssistantCapabilityType];
|
|
524
524
|
/**
|
|
525
525
|
* @public
|
|
526
|
-
* <p>The capability configuration for
|
|
526
|
+
* <p>The capability configuration for an Amazon Q assistant. </p>
|
|
527
527
|
*/
|
|
528
528
|
export interface AssistantCapabilityConfiguration {
|
|
529
529
|
/**
|
|
@@ -1203,6 +1203,126 @@ export interface NotifyRecommendationsReceivedResponse {
|
|
|
1203
1203
|
*/
|
|
1204
1204
|
errors?: NotifyRecommendationsReceivedError[];
|
|
1205
1205
|
}
|
|
1206
|
+
/**
|
|
1207
|
+
* @public
|
|
1208
|
+
* @enum
|
|
1209
|
+
*/
|
|
1210
|
+
export declare const Relevance: {
|
|
1211
|
+
readonly HELPFUL: "HELPFUL";
|
|
1212
|
+
readonly NOT_HELPFUL: "NOT_HELPFUL";
|
|
1213
|
+
};
|
|
1214
|
+
/**
|
|
1215
|
+
* @public
|
|
1216
|
+
*/
|
|
1217
|
+
export type Relevance = (typeof Relevance)[keyof typeof Relevance];
|
|
1218
|
+
/**
|
|
1219
|
+
* @public
|
|
1220
|
+
* <p>The feedback information for a generative target type.</p>
|
|
1221
|
+
*/
|
|
1222
|
+
export interface GenerativeContentFeedbackData {
|
|
1223
|
+
/**
|
|
1224
|
+
* @public
|
|
1225
|
+
* <p>The relevance of the feedback.</p>
|
|
1226
|
+
*/
|
|
1227
|
+
relevance: Relevance | undefined;
|
|
1228
|
+
}
|
|
1229
|
+
/**
|
|
1230
|
+
* @public
|
|
1231
|
+
* <p>Information about the feedback.</p>
|
|
1232
|
+
*/
|
|
1233
|
+
export type ContentFeedbackData = ContentFeedbackData.GenerativeContentFeedbackDataMember | ContentFeedbackData.$UnknownMember;
|
|
1234
|
+
/**
|
|
1235
|
+
* @public
|
|
1236
|
+
*/
|
|
1237
|
+
export declare namespace ContentFeedbackData {
|
|
1238
|
+
/**
|
|
1239
|
+
* @public
|
|
1240
|
+
* <p>Information about the feedback for a generative target type.</p>
|
|
1241
|
+
*/
|
|
1242
|
+
interface GenerativeContentFeedbackDataMember {
|
|
1243
|
+
generativeContentFeedbackData: GenerativeContentFeedbackData;
|
|
1244
|
+
$unknown?: never;
|
|
1245
|
+
}
|
|
1246
|
+
/**
|
|
1247
|
+
* @public
|
|
1248
|
+
*/
|
|
1249
|
+
interface $UnknownMember {
|
|
1250
|
+
generativeContentFeedbackData?: never;
|
|
1251
|
+
$unknown: [string, any];
|
|
1252
|
+
}
|
|
1253
|
+
interface Visitor<T> {
|
|
1254
|
+
generativeContentFeedbackData: (value: GenerativeContentFeedbackData) => T;
|
|
1255
|
+
_: (name: string, value: any) => T;
|
|
1256
|
+
}
|
|
1257
|
+
const visit: <T>(value: ContentFeedbackData, visitor: Visitor<T>) => T;
|
|
1258
|
+
}
|
|
1259
|
+
/**
|
|
1260
|
+
* @public
|
|
1261
|
+
* @enum
|
|
1262
|
+
*/
|
|
1263
|
+
export declare const TargetType: {
|
|
1264
|
+
readonly RECOMMENDATION: "RECOMMENDATION";
|
|
1265
|
+
readonly RESULT: "RESULT";
|
|
1266
|
+
};
|
|
1267
|
+
/**
|
|
1268
|
+
* @public
|
|
1269
|
+
*/
|
|
1270
|
+
export type TargetType = (typeof TargetType)[keyof typeof TargetType];
|
|
1271
|
+
/**
|
|
1272
|
+
* @public
|
|
1273
|
+
*/
|
|
1274
|
+
export interface PutFeedbackRequest {
|
|
1275
|
+
/**
|
|
1276
|
+
* @public
|
|
1277
|
+
* <p>The identifier of the Amazon Q assistant.</p>
|
|
1278
|
+
*/
|
|
1279
|
+
assistantId: string | undefined;
|
|
1280
|
+
/**
|
|
1281
|
+
* @public
|
|
1282
|
+
* <p>The identifier of the feedback target.</p>
|
|
1283
|
+
*/
|
|
1284
|
+
targetId: string | undefined;
|
|
1285
|
+
/**
|
|
1286
|
+
* @public
|
|
1287
|
+
* <p>The type of the feedback target.</p>
|
|
1288
|
+
*/
|
|
1289
|
+
targetType: TargetType | undefined;
|
|
1290
|
+
/**
|
|
1291
|
+
* @public
|
|
1292
|
+
* <p>Information about the feedback provided.</p>
|
|
1293
|
+
*/
|
|
1294
|
+
contentFeedback: ContentFeedbackData | undefined;
|
|
1295
|
+
}
|
|
1296
|
+
/**
|
|
1297
|
+
* @public
|
|
1298
|
+
*/
|
|
1299
|
+
export interface PutFeedbackResponse {
|
|
1300
|
+
/**
|
|
1301
|
+
* @public
|
|
1302
|
+
* <p>The identifier of the Amazon Q assistant.</p>
|
|
1303
|
+
*/
|
|
1304
|
+
assistantId: string | undefined;
|
|
1305
|
+
/**
|
|
1306
|
+
* @public
|
|
1307
|
+
* <p>The Amazon Resource Name (ARN) of the Amazon Q assistant.</p>
|
|
1308
|
+
*/
|
|
1309
|
+
assistantArn: string | undefined;
|
|
1310
|
+
/**
|
|
1311
|
+
* @public
|
|
1312
|
+
* <p>The identifier of the feedback target.</p>
|
|
1313
|
+
*/
|
|
1314
|
+
targetId: string | undefined;
|
|
1315
|
+
/**
|
|
1316
|
+
* @public
|
|
1317
|
+
* <p>The type of the feedback target.</p>
|
|
1318
|
+
*/
|
|
1319
|
+
targetType: TargetType | undefined;
|
|
1320
|
+
/**
|
|
1321
|
+
* @public
|
|
1322
|
+
* <p>Information about the feedback provided.</p>
|
|
1323
|
+
*/
|
|
1324
|
+
contentFeedback: ContentFeedbackData | undefined;
|
|
1325
|
+
}
|
|
1206
1326
|
/**
|
|
1207
1327
|
* @public
|
|
1208
1328
|
* @enum
|
|
@@ -29,6 +29,7 @@ import { ListKnowledgeBasesCommandInput, ListKnowledgeBasesCommandOutput } from
|
|
|
29
29
|
import { ListQuickResponsesCommandInput, ListQuickResponsesCommandOutput } from "../commands/ListQuickResponsesCommand";
|
|
30
30
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
|
|
31
31
|
import { NotifyRecommendationsReceivedCommandInput, NotifyRecommendationsReceivedCommandOutput } from "../commands/NotifyRecommendationsReceivedCommand";
|
|
32
|
+
import { PutFeedbackCommandInput, PutFeedbackCommandOutput } from "../commands/PutFeedbackCommand";
|
|
32
33
|
import { QueryAssistantCommandInput, QueryAssistantCommandOutput } from "../commands/QueryAssistantCommand";
|
|
33
34
|
import { RemoveKnowledgeBaseTemplateUriCommandInput, RemoveKnowledgeBaseTemplateUriCommandOutput } from "../commands/RemoveKnowledgeBaseTemplateUriCommand";
|
|
34
35
|
import { SearchContentCommandInput, SearchContentCommandOutput } from "../commands/SearchContentCommand";
|
|
@@ -157,6 +158,10 @@ export declare const se_ListTagsForResourceCommand: (input: ListTagsForResourceC
|
|
|
157
158
|
* serializeAws_restJson1NotifyRecommendationsReceivedCommand
|
|
158
159
|
*/
|
|
159
160
|
export declare const se_NotifyRecommendationsReceivedCommand: (input: NotifyRecommendationsReceivedCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
161
|
+
/**
|
|
162
|
+
* serializeAws_restJson1PutFeedbackCommand
|
|
163
|
+
*/
|
|
164
|
+
export declare const se_PutFeedbackCommand: (input: PutFeedbackCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
160
165
|
/**
|
|
161
166
|
* serializeAws_restJson1QueryAssistantCommand
|
|
162
167
|
*/
|
|
@@ -321,6 +326,10 @@ export declare const de_ListTagsForResourceCommand: (output: __HttpResponse, con
|
|
|
321
326
|
* deserializeAws_restJson1NotifyRecommendationsReceivedCommand
|
|
322
327
|
*/
|
|
323
328
|
export declare const de_NotifyRecommendationsReceivedCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<NotifyRecommendationsReceivedCommandOutput>;
|
|
329
|
+
/**
|
|
330
|
+
* deserializeAws_restJson1PutFeedbackCommand
|
|
331
|
+
*/
|
|
332
|
+
export declare const de_PutFeedbackCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutFeedbackCommandOutput>;
|
|
324
333
|
/**
|
|
325
334
|
* deserializeAws_restJson1QueryAssistantCommand
|
|
326
335
|
*/
|
|
@@ -115,6 +115,10 @@ import {
|
|
|
115
115
|
NotifyRecommendationsReceivedCommandInput,
|
|
116
116
|
NotifyRecommendationsReceivedCommandOutput,
|
|
117
117
|
} from "./commands/NotifyRecommendationsReceivedCommand";
|
|
118
|
+
import {
|
|
119
|
+
PutFeedbackCommandInput,
|
|
120
|
+
PutFeedbackCommandOutput,
|
|
121
|
+
} from "./commands/PutFeedbackCommand";
|
|
118
122
|
import {
|
|
119
123
|
QueryAssistantCommandInput,
|
|
120
124
|
QueryAssistantCommandOutput,
|
|
@@ -542,6 +546,19 @@ export interface QConnect {
|
|
|
542
546
|
options: __HttpHandlerOptions,
|
|
543
547
|
cb: (err: any, data?: NotifyRecommendationsReceivedCommandOutput) => void
|
|
544
548
|
): void;
|
|
549
|
+
putFeedback(
|
|
550
|
+
args: PutFeedbackCommandInput,
|
|
551
|
+
options?: __HttpHandlerOptions
|
|
552
|
+
): Promise<PutFeedbackCommandOutput>;
|
|
553
|
+
putFeedback(
|
|
554
|
+
args: PutFeedbackCommandInput,
|
|
555
|
+
cb: (err: any, data?: PutFeedbackCommandOutput) => void
|
|
556
|
+
): void;
|
|
557
|
+
putFeedback(
|
|
558
|
+
args: PutFeedbackCommandInput,
|
|
559
|
+
options: __HttpHandlerOptions,
|
|
560
|
+
cb: (err: any, data?: PutFeedbackCommandOutput) => void
|
|
561
|
+
): void;
|
|
545
562
|
queryAssistant(
|
|
546
563
|
args: QueryAssistantCommandInput,
|
|
547
564
|
options?: __HttpHandlerOptions
|
|
@@ -161,6 +161,10 @@ import {
|
|
|
161
161
|
NotifyRecommendationsReceivedCommandInput,
|
|
162
162
|
NotifyRecommendationsReceivedCommandOutput,
|
|
163
163
|
} from "./commands/NotifyRecommendationsReceivedCommand";
|
|
164
|
+
import {
|
|
165
|
+
PutFeedbackCommandInput,
|
|
166
|
+
PutFeedbackCommandOutput,
|
|
167
|
+
} from "./commands/PutFeedbackCommand";
|
|
164
168
|
import {
|
|
165
169
|
QueryAssistantCommandInput,
|
|
166
170
|
QueryAssistantCommandOutput,
|
|
@@ -246,6 +250,7 @@ export type ServiceInputTypes =
|
|
|
246
250
|
| ListQuickResponsesCommandInput
|
|
247
251
|
| ListTagsForResourceCommandInput
|
|
248
252
|
| NotifyRecommendationsReceivedCommandInput
|
|
253
|
+
| PutFeedbackCommandInput
|
|
249
254
|
| QueryAssistantCommandInput
|
|
250
255
|
| RemoveKnowledgeBaseTemplateUriCommandInput
|
|
251
256
|
| SearchContentCommandInput
|
|
@@ -288,6 +293,7 @@ export type ServiceOutputTypes =
|
|
|
288
293
|
| ListQuickResponsesCommandOutput
|
|
289
294
|
| ListTagsForResourceCommandOutput
|
|
290
295
|
| NotifyRecommendationsReceivedCommandOutput
|
|
296
|
+
| PutFeedbackCommandOutput
|
|
291
297
|
| QueryAssistantCommandOutput
|
|
292
298
|
| RemoveKnowledgeBaseTemplateUriCommandOutput
|
|
293
299
|
| SearchContentCommandOutput
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@smithy/types";
|
|
9
|
+
import { PutFeedbackRequest, PutFeedbackResponse } from "../models/models_0";
|
|
10
|
+
import {
|
|
11
|
+
QConnectClientResolvedConfig,
|
|
12
|
+
ServiceInputTypes,
|
|
13
|
+
ServiceOutputTypes,
|
|
14
|
+
} from "../QConnectClient";
|
|
15
|
+
export { __MetadataBearer, $Command };
|
|
16
|
+
export interface PutFeedbackCommandInput extends PutFeedbackRequest {}
|
|
17
|
+
export interface PutFeedbackCommandOutput
|
|
18
|
+
extends PutFeedbackResponse,
|
|
19
|
+
__MetadataBearer {}
|
|
20
|
+
export declare class PutFeedbackCommand extends $Command<
|
|
21
|
+
PutFeedbackCommandInput,
|
|
22
|
+
PutFeedbackCommandOutput,
|
|
23
|
+
QConnectClientResolvedConfig
|
|
24
|
+
> {
|
|
25
|
+
readonly input: PutFeedbackCommandInput;
|
|
26
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
27
|
+
constructor(input: PutFeedbackCommandInput);
|
|
28
|
+
resolveMiddleware(
|
|
29
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
30
|
+
configuration: QConnectClientResolvedConfig,
|
|
31
|
+
options?: __HttpHandlerOptions
|
|
32
|
+
): Handler<PutFeedbackCommandInput, PutFeedbackCommandOutput>;
|
|
33
|
+
private serialize;
|
|
34
|
+
private deserialize;
|
|
35
|
+
}
|
|
@@ -27,6 +27,7 @@ export * from "./ListKnowledgeBasesCommand";
|
|
|
27
27
|
export * from "./ListQuickResponsesCommand";
|
|
28
28
|
export * from "./ListTagsForResourceCommand";
|
|
29
29
|
export * from "./NotifyRecommendationsReceivedCommand";
|
|
30
|
+
export * from "./PutFeedbackCommand";
|
|
30
31
|
export * from "./QueryAssistantCommand";
|
|
31
32
|
export * from "./RemoveKnowledgeBaseTemplateUriCommand";
|
|
32
33
|
export * from "./SearchContentCommand";
|
|
@@ -367,6 +367,50 @@ export interface NotifyRecommendationsReceivedResponse {
|
|
|
367
367
|
recommendationIds?: string[];
|
|
368
368
|
errors?: NotifyRecommendationsReceivedError[];
|
|
369
369
|
}
|
|
370
|
+
export declare const Relevance: {
|
|
371
|
+
readonly HELPFUL: "HELPFUL";
|
|
372
|
+
readonly NOT_HELPFUL: "NOT_HELPFUL";
|
|
373
|
+
};
|
|
374
|
+
export type Relevance = (typeof Relevance)[keyof typeof Relevance];
|
|
375
|
+
export interface GenerativeContentFeedbackData {
|
|
376
|
+
relevance: Relevance | undefined;
|
|
377
|
+
}
|
|
378
|
+
export type ContentFeedbackData =
|
|
379
|
+
| ContentFeedbackData.GenerativeContentFeedbackDataMember
|
|
380
|
+
| ContentFeedbackData.$UnknownMember;
|
|
381
|
+
export declare namespace ContentFeedbackData {
|
|
382
|
+
interface GenerativeContentFeedbackDataMember {
|
|
383
|
+
generativeContentFeedbackData: GenerativeContentFeedbackData;
|
|
384
|
+
$unknown?: never;
|
|
385
|
+
}
|
|
386
|
+
interface $UnknownMember {
|
|
387
|
+
generativeContentFeedbackData?: never;
|
|
388
|
+
$unknown: [string, any];
|
|
389
|
+
}
|
|
390
|
+
interface Visitor<T> {
|
|
391
|
+
generativeContentFeedbackData: (value: GenerativeContentFeedbackData) => T;
|
|
392
|
+
_: (name: string, value: any) => T;
|
|
393
|
+
}
|
|
394
|
+
const visit: <T>(value: ContentFeedbackData, visitor: Visitor<T>) => T;
|
|
395
|
+
}
|
|
396
|
+
export declare const TargetType: {
|
|
397
|
+
readonly RECOMMENDATION: "RECOMMENDATION";
|
|
398
|
+
readonly RESULT: "RESULT";
|
|
399
|
+
};
|
|
400
|
+
export type TargetType = (typeof TargetType)[keyof typeof TargetType];
|
|
401
|
+
export interface PutFeedbackRequest {
|
|
402
|
+
assistantId: string | undefined;
|
|
403
|
+
targetId: string | undefined;
|
|
404
|
+
targetType: TargetType | undefined;
|
|
405
|
+
contentFeedback: ContentFeedbackData | undefined;
|
|
406
|
+
}
|
|
407
|
+
export interface PutFeedbackResponse {
|
|
408
|
+
assistantId: string | undefined;
|
|
409
|
+
assistantArn: string | undefined;
|
|
410
|
+
targetId: string | undefined;
|
|
411
|
+
targetType: TargetType | undefined;
|
|
412
|
+
contentFeedback: ContentFeedbackData | undefined;
|
|
413
|
+
}
|
|
370
414
|
export declare const QueryConditionComparisonOperator: {
|
|
371
415
|
readonly EQUALS: "EQUALS";
|
|
372
416
|
};
|
|
@@ -119,6 +119,10 @@ import {
|
|
|
119
119
|
NotifyRecommendationsReceivedCommandInput,
|
|
120
120
|
NotifyRecommendationsReceivedCommandOutput,
|
|
121
121
|
} from "../commands/NotifyRecommendationsReceivedCommand";
|
|
122
|
+
import {
|
|
123
|
+
PutFeedbackCommandInput,
|
|
124
|
+
PutFeedbackCommandOutput,
|
|
125
|
+
} from "../commands/PutFeedbackCommand";
|
|
122
126
|
import {
|
|
123
127
|
QueryAssistantCommandInput,
|
|
124
128
|
QueryAssistantCommandOutput,
|
|
@@ -283,6 +287,10 @@ export declare const se_NotifyRecommendationsReceivedCommand: (
|
|
|
283
287
|
input: NotifyRecommendationsReceivedCommandInput,
|
|
284
288
|
context: __SerdeContext
|
|
285
289
|
) => Promise<__HttpRequest>;
|
|
290
|
+
export declare const se_PutFeedbackCommand: (
|
|
291
|
+
input: PutFeedbackCommandInput,
|
|
292
|
+
context: __SerdeContext
|
|
293
|
+
) => Promise<__HttpRequest>;
|
|
286
294
|
export declare const se_QueryAssistantCommand: (
|
|
287
295
|
input: QueryAssistantCommandInput,
|
|
288
296
|
context: __SerdeContext
|
|
@@ -447,6 +455,10 @@ export declare const de_NotifyRecommendationsReceivedCommand: (
|
|
|
447
455
|
output: __HttpResponse,
|
|
448
456
|
context: __SerdeContext
|
|
449
457
|
) => Promise<NotifyRecommendationsReceivedCommandOutput>;
|
|
458
|
+
export declare const de_PutFeedbackCommand: (
|
|
459
|
+
output: __HttpResponse,
|
|
460
|
+
context: __SerdeContext
|
|
461
|
+
) => Promise<PutFeedbackCommandOutput>;
|
|
450
462
|
export declare const de_QueryAssistantCommand: (
|
|
451
463
|
output: __HttpResponse,
|
|
452
464
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-qconnect",
|
|
3
3
|
"description": "AWS SDK for JavaScript Qconnect Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.465.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
8
|
-
"build:docs": "typedoc",
|
|
9
8
|
"build:es": "tsc -p tsconfig.es.json",
|
|
10
9
|
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
11
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
@@ -21,19 +20,19 @@
|
|
|
21
20
|
"dependencies": {
|
|
22
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
28
|
-
"@aws-sdk/middleware-logger": "3.
|
|
29
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
30
|
-
"@aws-sdk/middleware-signing": "3.
|
|
31
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
32
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
33
|
-
"@aws-sdk/types": "3.
|
|
34
|
-
"@aws-sdk/util-endpoints": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
36
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.465.0",
|
|
24
|
+
"@aws-sdk/core": "3.465.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.465.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.465.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.465.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.465.0",
|
|
29
|
+
"@aws-sdk/middleware-signing": "3.465.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.465.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.465.0",
|
|
32
|
+
"@aws-sdk/types": "3.465.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.465.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.465.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.465.0",
|
|
37
36
|
"@smithy/config-resolver": "^2.0.18",
|
|
38
37
|
"@smithy/fetch-http-handler": "^2.2.6",
|
|
39
38
|
"@smithy/hash-node": "^2.0.15",
|
|
@@ -68,7 +67,6 @@
|
|
|
68
67
|
"concurrently": "7.0.0",
|
|
69
68
|
"downlevel-dts": "0.10.1",
|
|
70
69
|
"rimraf": "3.0.2",
|
|
71
|
-
"typedoc": "0.23.23",
|
|
72
70
|
"typescript": "~4.9.5"
|
|
73
71
|
},
|
|
74
72
|
"engines": {
|