@aws-sdk/client-qconnect 3.699.0 → 3.709.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 +88 -0
- package/dist-cjs/index.js +1188 -127
- package/dist-es/QConnect.js +22 -0
- package/dist-es/commands/CreateAIGuardrailCommand.js +23 -0
- package/dist-es/commands/CreateAIGuardrailVersionCommand.js +23 -0
- package/dist-es/commands/CreateQuickResponseCommand.js +1 -1
- package/dist-es/commands/DeleteAIGuardrailCommand.js +22 -0
- package/dist-es/commands/DeleteAIGuardrailVersionCommand.js +22 -0
- package/dist-es/commands/GetAIGuardrailCommand.js +23 -0
- package/dist-es/commands/GetImportJobCommand.js +1 -1
- package/dist-es/commands/GetKnowledgeBaseCommand.js +1 -1
- package/dist-es/commands/GetMessageTemplateCommand.js +1 -1
- package/dist-es/commands/GetNextMessageCommand.js +23 -0
- package/dist-es/commands/GetQuickResponseCommand.js +1 -1
- package/dist-es/commands/ListAIGuardrailVersionsCommand.js +23 -0
- package/dist-es/commands/ListAIGuardrailsCommand.js +23 -0
- package/dist-es/commands/ListKnowledgeBasesCommand.js +1 -1
- package/dist-es/commands/ListMessagesCommand.js +23 -0
- package/dist-es/commands/ListQuickResponsesCommand.js +1 -1
- package/dist-es/commands/RenderMessageTemplateCommand.js +1 -1
- package/dist-es/commands/SendMessageCommand.js +23 -0
- package/dist-es/commands/UpdateAIGuardrailCommand.js +23 -0
- package/dist-es/commands/UpdateMessageTemplateCommand.js +1 -1
- package/dist-es/commands/UpdateMessageTemplateMetadataCommand.js +1 -1
- package/dist-es/commands/UpdateQuickResponseCommand.js +1 -1
- package/dist-es/commands/index.js +11 -0
- package/dist-es/models/models_0.js +310 -166
- package/dist-es/models/models_1.js +167 -1
- package/dist-es/pagination/ListAIGuardrailVersionsPaginator.js +4 -0
- package/dist-es/pagination/ListAIGuardrailsPaginator.js +4 -0
- package/dist-es/pagination/ListMessagesPaginator.js +4 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +443 -1
- package/dist-types/QConnect.d.ts +77 -0
- package/dist-types/QConnectClient.d.ts +13 -2
- package/dist-types/commands/CreateAIAgentCommand.d.ts +62 -0
- package/dist-types/commands/CreateAIAgentVersionCommand.d.ts +31 -0
- package/dist-types/commands/CreateAIGuardrailCommand.d.ts +231 -0
- package/dist-types/commands/CreateAIGuardrailVersionCommand.d.ts +169 -0
- package/dist-types/commands/CreateQuickResponseCommand.d.ts +1 -1
- package/dist-types/commands/DeactivateMessageTemplateCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAIGuardrailCommand.d.ts +88 -0
- package/dist-types/commands/DeleteAIGuardrailVersionCommand.d.ts +89 -0
- package/dist-types/commands/DeleteImportJobCommand.d.ts +1 -1
- package/dist-types/commands/DeleteKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/commands/DeleteMessageTemplateAttachmentCommand.d.ts +1 -1
- package/dist-types/commands/DeleteMessageTemplateCommand.d.ts +1 -1
- package/dist-types/commands/DeleteQuickResponseCommand.d.ts +1 -1
- package/dist-types/commands/GetAIAgentCommand.d.ts +31 -0
- package/dist-types/commands/GetAIGuardrailCommand.d.ts +157 -0
- package/dist-types/commands/GetImportJobCommand.d.ts +1 -1
- package/dist-types/commands/GetKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/commands/GetMessageTemplateCommand.d.ts +4 -3
- package/dist-types/commands/GetNextMessageCommand.d.ts +106 -0
- package/dist-types/commands/GetQuickResponseCommand.d.ts +1 -1
- package/dist-types/commands/ListAIAgentVersionsCommand.d.ts +31 -0
- package/dist-types/commands/ListAIAgentsCommand.d.ts +31 -0
- package/dist-types/commands/ListAIGuardrailVersionsCommand.d.ts +105 -0
- package/dist-types/commands/ListAIGuardrailsCommand.d.ts +101 -0
- package/dist-types/commands/ListImportJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListKnowledgeBasesCommand.d.ts +1 -1
- package/dist-types/commands/ListMessageTemplateVersionsCommand.d.ts +1 -1
- package/dist-types/commands/ListMessageTemplatesCommand.d.ts +1 -1
- package/dist-types/commands/ListMessagesCommand.d.ts +95 -0
- package/dist-types/commands/ListQuickResponsesCommand.d.ts +1 -1
- package/dist-types/commands/RemoveKnowledgeBaseTemplateUriCommand.d.ts +1 -2
- package/dist-types/commands/RenderMessageTemplateCommand.d.ts +1 -1
- package/dist-types/commands/SendMessageCommand.d.ts +114 -0
- package/dist-types/commands/UpdateAIAgentCommand.d.ts +62 -0
- package/dist-types/commands/UpdateAIGuardrailCommand.d.ts +224 -0
- package/dist-types/commands/UpdateMessageTemplateCommand.d.ts +1 -1
- package/dist-types/commands/UpdateMessageTemplateMetadataCommand.d.ts +1 -1
- package/dist-types/commands/UpdateQuickResponseCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +11 -0
- package/dist-types/models/models_0.d.ts +3820 -3619
- package/dist-types/models/models_1.d.ts +1513 -1
- package/dist-types/pagination/ListAIGuardrailVersionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAIGuardrailsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListMessagesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +99 -0
- package/dist-types/ts3.4/QConnect.d.ts +187 -0
- package/dist-types/ts3.4/QConnectClient.d.ts +66 -0
- package/dist-types/ts3.4/commands/CreateAIGuardrailCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateAIGuardrailVersionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateQuickResponseCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeactivateMessageTemplateCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteAIGuardrailCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteAIGuardrailVersionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteImportJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteMessageTemplateAttachmentCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteMessageTemplateCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteQuickResponseCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetAIGuardrailCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetImportJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetMessageTemplateCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetNextMessageCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetQuickResponseCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListAIGuardrailVersionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListAIGuardrailsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListImportJobsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListKnowledgeBasesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListMessageTemplateVersionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListMessageTemplatesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListMessagesCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListQuickResponsesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/RemoveKnowledgeBaseTemplateUriCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/RenderMessageTemplateCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/SendMessageCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateAIGuardrailCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateMessageTemplateCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateMessageTemplateMetadataCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateQuickResponseCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +11 -0
- package/dist-types/ts3.4/models/models_0.d.ts +482 -441
- package/dist-types/ts3.4/models/models_1.d.ts +437 -5
- package/dist-types/ts3.4/pagination/ListAIGuardrailVersionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAIGuardrailsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListMessagesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +132 -0
- package/package.json +35 -35
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ListAIGuardrailsRequest, ListAIGuardrailsResponse } from "../models/models_0";
|
|
4
|
+
import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListAIGuardrailsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListAIGuardrailsCommandInput extends ListAIGuardrailsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListAIGuardrailsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListAIGuardrailsCommandOutput extends ListAIGuardrailsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListAIGuardrailsCommand_base: {
|
|
25
|
+
new (input: ListAIGuardrailsCommandInput): import("@smithy/smithy-client").CommandImpl<ListAIGuardrailsCommandInput, ListAIGuardrailsCommandOutput, QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: ListAIGuardrailsCommandInput): import("@smithy/smithy-client").CommandImpl<ListAIGuardrailsCommandInput, ListAIGuardrailsCommandOutput, QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Lists the AI Guardrails available on the Amazon Q in Connect assistant.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { QConnectClient, ListAIGuardrailsCommand } from "@aws-sdk/client-qconnect"; // ES Modules import
|
|
35
|
+
* // const { QConnectClient, ListAIGuardrailsCommand } = require("@aws-sdk/client-qconnect"); // CommonJS import
|
|
36
|
+
* const client = new QConnectClient(config);
|
|
37
|
+
* const input = { // ListAIGuardrailsRequest
|
|
38
|
+
* assistantId: "STRING_VALUE", // required
|
|
39
|
+
* nextToken: "STRING_VALUE",
|
|
40
|
+
* maxResults: Number("int"),
|
|
41
|
+
* };
|
|
42
|
+
* const command = new ListAIGuardrailsCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // ListAIGuardrailsResponse
|
|
45
|
+
* // aiGuardrailSummaries: [ // AIGuardrailSummariesList // required
|
|
46
|
+
* // { // AIGuardrailSummary
|
|
47
|
+
* // name: "STRING_VALUE", // required
|
|
48
|
+
* // assistantId: "STRING_VALUE", // required
|
|
49
|
+
* // assistantArn: "STRING_VALUE", // required
|
|
50
|
+
* // aiGuardrailId: "STRING_VALUE", // required
|
|
51
|
+
* // aiGuardrailArn: "STRING_VALUE", // required
|
|
52
|
+
* // modifiedTime: new Date("TIMESTAMP"),
|
|
53
|
+
* // visibilityStatus: "STRING_VALUE", // required
|
|
54
|
+
* // description: "STRING_VALUE",
|
|
55
|
+
* // status: "STRING_VALUE",
|
|
56
|
+
* // tags: { // Tags
|
|
57
|
+
* // "<keys>": "STRING_VALUE",
|
|
58
|
+
* // },
|
|
59
|
+
* // },
|
|
60
|
+
* // ],
|
|
61
|
+
* // nextToken: "STRING_VALUE",
|
|
62
|
+
* // };
|
|
63
|
+
*
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @param ListAIGuardrailsCommandInput - {@link ListAIGuardrailsCommandInput}
|
|
67
|
+
* @returns {@link ListAIGuardrailsCommandOutput}
|
|
68
|
+
* @see {@link ListAIGuardrailsCommandInput} for command's `input` shape.
|
|
69
|
+
* @see {@link ListAIGuardrailsCommandOutput} for command's `response` shape.
|
|
70
|
+
* @see {@link QConnectClientResolvedConfig | config} for QConnectClient's `config` shape.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
73
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
76
|
+
* <p>The specified resource does not exist.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
79
|
+
* <p>The throttling limit has been exceeded.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ValidationException} (client fault)
|
|
82
|
+
* <p>The input fails to satisfy the constraints specified by a service.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link QConnectServiceException}
|
|
85
|
+
* <p>Base exception class for all service exceptions from QConnect service.</p>
|
|
86
|
+
*
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
export declare class ListAIGuardrailsCommand extends ListAIGuardrailsCommand_base {
|
|
90
|
+
/** @internal type navigation helper, not in runtime. */
|
|
91
|
+
protected static __types: {
|
|
92
|
+
api: {
|
|
93
|
+
input: ListAIGuardrailsRequest;
|
|
94
|
+
output: ListAIGuardrailsResponse;
|
|
95
|
+
};
|
|
96
|
+
sdk: {
|
|
97
|
+
input: ListAIGuardrailsCommandInput;
|
|
98
|
+
output: ListAIGuardrailsCommandOutput;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
}
|
|
@@ -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 { ListImportJobsRequest, ListImportJobsResponse } from "../models/
|
|
3
|
+
import { ListImportJobsRequest, ListImportJobsResponse } from "../models/models_1";
|
|
4
4
|
import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient";
|
|
5
5
|
/**
|
|
6
6
|
* @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 { ListKnowledgeBasesRequest, ListKnowledgeBasesResponse } from "../models/
|
|
3
|
+
import { ListKnowledgeBasesRequest, ListKnowledgeBasesResponse } from "../models/models_1";
|
|
4
4
|
import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient";
|
|
5
5
|
/**
|
|
6
6
|
* @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 { ListMessageTemplateVersionsRequest, ListMessageTemplateVersionsResponse } from "../models/
|
|
3
|
+
import { ListMessageTemplateVersionsRequest, ListMessageTemplateVersionsResponse } from "../models/models_1";
|
|
4
4
|
import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient";
|
|
5
5
|
/**
|
|
6
6
|
* @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 { ListMessageTemplatesRequest, ListMessageTemplatesResponse } from "../models/
|
|
3
|
+
import { ListMessageTemplatesRequest, ListMessageTemplatesResponse } from "../models/models_1";
|
|
4
4
|
import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ListMessagesRequest, ListMessagesResponse } from "../models/models_0";
|
|
4
|
+
import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListMessagesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListMessagesCommandInput extends ListMessagesRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListMessagesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListMessagesCommandOutput extends ListMessagesResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListMessagesCommand_base: {
|
|
25
|
+
new (input: ListMessagesCommandInput): import("@smithy/smithy-client").CommandImpl<ListMessagesCommandInput, ListMessagesCommandOutput, QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: ListMessagesCommandInput): import("@smithy/smithy-client").CommandImpl<ListMessagesCommandInput, ListMessagesCommandOutput, QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Lists messages on an Amazon Q in Connect session.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { QConnectClient, ListMessagesCommand } from "@aws-sdk/client-qconnect"; // ES Modules import
|
|
35
|
+
* // const { QConnectClient, ListMessagesCommand } = require("@aws-sdk/client-qconnect"); // CommonJS import
|
|
36
|
+
* const client = new QConnectClient(config);
|
|
37
|
+
* const input = { // ListMessagesRequest
|
|
38
|
+
* assistantId: "STRING_VALUE", // required
|
|
39
|
+
* sessionId: "STRING_VALUE", // required
|
|
40
|
+
* nextToken: "STRING_VALUE",
|
|
41
|
+
* maxResults: Number("int"),
|
|
42
|
+
* };
|
|
43
|
+
* const command = new ListMessagesCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // ListMessagesResponse
|
|
46
|
+
* // messages: [ // MessageList // required
|
|
47
|
+
* // { // MessageOutput
|
|
48
|
+
* // value: { // MessageData Union: only one key present
|
|
49
|
+
* // text: { // TextMessage
|
|
50
|
+
* // value: "STRING_VALUE",
|
|
51
|
+
* // },
|
|
52
|
+
* // },
|
|
53
|
+
* // messageId: "STRING_VALUE", // required
|
|
54
|
+
* // participant: "STRING_VALUE", // required
|
|
55
|
+
* // timestamp: new Date("TIMESTAMP"), // required
|
|
56
|
+
* // },
|
|
57
|
+
* // ],
|
|
58
|
+
* // nextToken: "STRING_VALUE",
|
|
59
|
+
* // };
|
|
60
|
+
*
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* @param ListMessagesCommandInput - {@link ListMessagesCommandInput}
|
|
64
|
+
* @returns {@link ListMessagesCommandOutput}
|
|
65
|
+
* @see {@link ListMessagesCommandInput} for command's `input` shape.
|
|
66
|
+
* @see {@link ListMessagesCommandOutput} for command's `response` shape.
|
|
67
|
+
* @see {@link QConnectClientResolvedConfig | config} for QConnectClient's `config` shape.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
70
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
73
|
+
* <p>The specified resource does not exist.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ValidationException} (client fault)
|
|
76
|
+
* <p>The input fails to satisfy the constraints specified by a service.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link QConnectServiceException}
|
|
79
|
+
* <p>Base exception class for all service exceptions from QConnect service.</p>
|
|
80
|
+
*
|
|
81
|
+
* @public
|
|
82
|
+
*/
|
|
83
|
+
export declare class ListMessagesCommand extends ListMessagesCommand_base {
|
|
84
|
+
/** @internal type navigation helper, not in runtime. */
|
|
85
|
+
protected static __types: {
|
|
86
|
+
api: {
|
|
87
|
+
input: ListMessagesRequest;
|
|
88
|
+
output: ListMessagesResponse;
|
|
89
|
+
};
|
|
90
|
+
sdk: {
|
|
91
|
+
input: ListMessagesCommandInput;
|
|
92
|
+
output: ListMessagesCommandOutput;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
}
|
|
@@ -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 { ListQuickResponsesRequest, ListQuickResponsesResponse } from "../models/
|
|
3
|
+
import { ListQuickResponsesRequest, ListQuickResponsesResponse } from "../models/models_1";
|
|
4
4
|
import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { RemoveKnowledgeBaseTemplateUriRequest } from "../models/
|
|
4
|
-
import { RemoveKnowledgeBaseTemplateUriResponse } from "../models/models_1";
|
|
3
|
+
import { RemoveKnowledgeBaseTemplateUriRequest, RemoveKnowledgeBaseTemplateUriResponse } from "../models/models_1";
|
|
5
4
|
import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient";
|
|
6
5
|
/**
|
|
7
6
|
* @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 { RenderMessageTemplateRequest, RenderMessageTemplateResponse } from "../models/
|
|
3
|
+
import { RenderMessageTemplateRequest, RenderMessageTemplateResponse } from "../models/models_1";
|
|
4
4
|
import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { SendMessageRequest, SendMessageResponse } from "../models/models_0";
|
|
4
|
+
import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link SendMessageCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface SendMessageCommandInput extends SendMessageRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link SendMessageCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface SendMessageCommandOutput extends SendMessageResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const SendMessageCommand_base: {
|
|
25
|
+
new (input: SendMessageCommandInput): import("@smithy/smithy-client").CommandImpl<SendMessageCommandInput, SendMessageCommandOutput, QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: SendMessageCommandInput): import("@smithy/smithy-client").CommandImpl<SendMessageCommandInput, SendMessageCommandOutput, QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Submits a message to the Amazon Q in Connect session.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { QConnectClient, SendMessageCommand } from "@aws-sdk/client-qconnect"; // ES Modules import
|
|
35
|
+
* // const { QConnectClient, SendMessageCommand } = require("@aws-sdk/client-qconnect"); // CommonJS import
|
|
36
|
+
* const client = new QConnectClient(config);
|
|
37
|
+
* const input = { // SendMessageRequest
|
|
38
|
+
* assistantId: "STRING_VALUE", // required
|
|
39
|
+
* sessionId: "STRING_VALUE", // required
|
|
40
|
+
* type: "STRING_VALUE", // required
|
|
41
|
+
* message: { // MessageInput
|
|
42
|
+
* value: { // MessageData Union: only one key present
|
|
43
|
+
* text: { // TextMessage
|
|
44
|
+
* value: "STRING_VALUE",
|
|
45
|
+
* },
|
|
46
|
+
* },
|
|
47
|
+
* },
|
|
48
|
+
* conversationContext: { // ConversationContext
|
|
49
|
+
* selfServiceConversationHistory: [ // SelfServiceConversationHistoryList // required
|
|
50
|
+
* { // SelfServiceConversationHistory
|
|
51
|
+
* turnNumber: Number("int"), // required
|
|
52
|
+
* inputTranscript: "STRING_VALUE",
|
|
53
|
+
* botResponse: "STRING_VALUE",
|
|
54
|
+
* },
|
|
55
|
+
* ],
|
|
56
|
+
* },
|
|
57
|
+
* clientToken: "STRING_VALUE",
|
|
58
|
+
* };
|
|
59
|
+
* const command = new SendMessageCommand(input);
|
|
60
|
+
* const response = await client.send(command);
|
|
61
|
+
* // { // SendMessageResponse
|
|
62
|
+
* // requestMessageId: "STRING_VALUE", // required
|
|
63
|
+
* // nextMessageToken: "STRING_VALUE", // required
|
|
64
|
+
* // };
|
|
65
|
+
*
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* @param SendMessageCommandInput - {@link SendMessageCommandInput}
|
|
69
|
+
* @returns {@link SendMessageCommandOutput}
|
|
70
|
+
* @see {@link SendMessageCommandInput} for command's `input` shape.
|
|
71
|
+
* @see {@link SendMessageCommandOutput} for command's `response` shape.
|
|
72
|
+
* @see {@link QConnectClientResolvedConfig | config} for QConnectClient's `config` shape.
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
75
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ConflictException} (client fault)
|
|
78
|
+
* <p>The request could not be processed because of conflict in the current state of the
|
|
79
|
+
* resource. For example, if you're using a <code>Create</code> API (such as
|
|
80
|
+
* <code>CreateAssistant</code>) that accepts name, a conflicting resource (usually with the
|
|
81
|
+
* same name) is being created or mutated.</p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link RequestTimeoutException} (client fault)
|
|
84
|
+
* <p>The request reached the service more than 15 minutes after the date stamp on the request
|
|
85
|
+
* or more than 15 minutes after the request expiration date (such as for pre-signed URLs), or
|
|
86
|
+
* the date stamp on the request is more than 15 minutes in the future.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
89
|
+
* <p>The specified resource does not exist.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
92
|
+
* <p>The throttling limit has been exceeded.</p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link ValidationException} (client fault)
|
|
95
|
+
* <p>The input fails to satisfy the constraints specified by a service.</p>
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link QConnectServiceException}
|
|
98
|
+
* <p>Base exception class for all service exceptions from QConnect service.</p>
|
|
99
|
+
*
|
|
100
|
+
* @public
|
|
101
|
+
*/
|
|
102
|
+
export declare class SendMessageCommand extends SendMessageCommand_base {
|
|
103
|
+
/** @internal type navigation helper, not in runtime. */
|
|
104
|
+
protected static __types: {
|
|
105
|
+
api: {
|
|
106
|
+
input: SendMessageRequest;
|
|
107
|
+
output: SendMessageResponse;
|
|
108
|
+
};
|
|
109
|
+
sdk: {
|
|
110
|
+
input: SendMessageCommandInput;
|
|
111
|
+
output: SendMessageCommandOutput;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
}
|
|
@@ -42,6 +42,7 @@ declare const UpdateAIAgentCommand_base: {
|
|
|
42
42
|
* configuration: { // AIAgentConfiguration Union: only one key present
|
|
43
43
|
* manualSearchAIAgentConfiguration: { // ManualSearchAIAgentConfiguration
|
|
44
44
|
* answerGenerationAIPromptId: "STRING_VALUE",
|
|
45
|
+
* answerGenerationAIGuardrailId: "STRING_VALUE",
|
|
45
46
|
* associationConfigurations: [ // AssociationConfigurationList
|
|
46
47
|
* { // AssociationConfiguration
|
|
47
48
|
* associationId: "STRING_VALUE",
|
|
@@ -79,6 +80,7 @@ declare const UpdateAIAgentCommand_base: {
|
|
|
79
80
|
* intentLabelingGenerationAIPromptId: "STRING_VALUE",
|
|
80
81
|
* queryReformulationAIPromptId: "STRING_VALUE",
|
|
81
82
|
* answerGenerationAIPromptId: "STRING_VALUE",
|
|
83
|
+
* answerGenerationAIGuardrailId: "STRING_VALUE",
|
|
82
84
|
* associationConfigurations: [
|
|
83
85
|
* {
|
|
84
86
|
* associationId: "STRING_VALUE",
|
|
@@ -106,6 +108,35 @@ declare const UpdateAIAgentCommand_base: {
|
|
|
106
108
|
* },
|
|
107
109
|
* ],
|
|
108
110
|
* },
|
|
111
|
+
* selfServiceAIAgentConfiguration: { // SelfServiceAIAgentConfiguration
|
|
112
|
+
* selfServicePreProcessingAIPromptId: "STRING_VALUE",
|
|
113
|
+
* selfServiceAnswerGenerationAIPromptId: "STRING_VALUE",
|
|
114
|
+
* selfServiceAIGuardrailId: "STRING_VALUE",
|
|
115
|
+
* associationConfigurations: [
|
|
116
|
+
* {
|
|
117
|
+
* associationId: "STRING_VALUE",
|
|
118
|
+
* associationType: "STRING_VALUE",
|
|
119
|
+
* associationConfigurationData: {// Union: only one key present
|
|
120
|
+
* knowledgeBaseAssociationConfigurationData: {
|
|
121
|
+
* contentTagFilter: {// Union: only one key present
|
|
122
|
+
* tagCondition: "<TagCondition>",
|
|
123
|
+
* andConditions: [
|
|
124
|
+
* "<TagCondition>",
|
|
125
|
+
* ],
|
|
126
|
+
* orConditions: [
|
|
127
|
+
* {// Union: only one key present
|
|
128
|
+
* andConditions: "<AndConditions>",
|
|
129
|
+
* tagCondition: "<TagCondition>",
|
|
130
|
+
* },
|
|
131
|
+
* ],
|
|
132
|
+
* },
|
|
133
|
+
* maxResults: Number("int"),
|
|
134
|
+
* overrideKnowledgeBaseSearchType: "STRING_VALUE",
|
|
135
|
+
* },
|
|
136
|
+
* },
|
|
137
|
+
* },
|
|
138
|
+
* ],
|
|
139
|
+
* },
|
|
109
140
|
* },
|
|
110
141
|
* description: "STRING_VALUE",
|
|
111
142
|
* };
|
|
@@ -122,6 +153,7 @@ declare const UpdateAIAgentCommand_base: {
|
|
|
122
153
|
* // configuration: { // AIAgentConfiguration Union: only one key present
|
|
123
154
|
* // manualSearchAIAgentConfiguration: { // ManualSearchAIAgentConfiguration
|
|
124
155
|
* // answerGenerationAIPromptId: "STRING_VALUE",
|
|
156
|
+
* // answerGenerationAIGuardrailId: "STRING_VALUE",
|
|
125
157
|
* // associationConfigurations: [ // AssociationConfigurationList
|
|
126
158
|
* // { // AssociationConfiguration
|
|
127
159
|
* // associationId: "STRING_VALUE",
|
|
@@ -159,6 +191,7 @@ declare const UpdateAIAgentCommand_base: {
|
|
|
159
191
|
* // intentLabelingGenerationAIPromptId: "STRING_VALUE",
|
|
160
192
|
* // queryReformulationAIPromptId: "STRING_VALUE",
|
|
161
193
|
* // answerGenerationAIPromptId: "STRING_VALUE",
|
|
194
|
+
* // answerGenerationAIGuardrailId: "STRING_VALUE",
|
|
162
195
|
* // associationConfigurations: [
|
|
163
196
|
* // {
|
|
164
197
|
* // associationId: "STRING_VALUE",
|
|
@@ -186,6 +219,35 @@ declare const UpdateAIAgentCommand_base: {
|
|
|
186
219
|
* // },
|
|
187
220
|
* // ],
|
|
188
221
|
* // },
|
|
222
|
+
* // selfServiceAIAgentConfiguration: { // SelfServiceAIAgentConfiguration
|
|
223
|
+
* // selfServicePreProcessingAIPromptId: "STRING_VALUE",
|
|
224
|
+
* // selfServiceAnswerGenerationAIPromptId: "STRING_VALUE",
|
|
225
|
+
* // selfServiceAIGuardrailId: "STRING_VALUE",
|
|
226
|
+
* // associationConfigurations: [
|
|
227
|
+
* // {
|
|
228
|
+
* // associationId: "STRING_VALUE",
|
|
229
|
+
* // associationType: "STRING_VALUE",
|
|
230
|
+
* // associationConfigurationData: {// Union: only one key present
|
|
231
|
+
* // knowledgeBaseAssociationConfigurationData: {
|
|
232
|
+
* // contentTagFilter: {// Union: only one key present
|
|
233
|
+
* // tagCondition: "<TagCondition>",
|
|
234
|
+
* // andConditions: [
|
|
235
|
+
* // "<TagCondition>",
|
|
236
|
+
* // ],
|
|
237
|
+
* // orConditions: [
|
|
238
|
+
* // {// Union: only one key present
|
|
239
|
+
* // andConditions: "<AndConditions>",
|
|
240
|
+
* // tagCondition: "<TagCondition>",
|
|
241
|
+
* // },
|
|
242
|
+
* // ],
|
|
243
|
+
* // },
|
|
244
|
+
* // maxResults: Number("int"),
|
|
245
|
+
* // overrideKnowledgeBaseSearchType: "STRING_VALUE",
|
|
246
|
+
* // },
|
|
247
|
+
* // },
|
|
248
|
+
* // },
|
|
249
|
+
* // ],
|
|
250
|
+
* // },
|
|
189
251
|
* // },
|
|
190
252
|
* // modifiedTime: new Date("TIMESTAMP"),
|
|
191
253
|
* // description: "STRING_VALUE",
|