@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.
Files changed (124) hide show
  1. package/README.md +88 -0
  2. package/dist-cjs/index.js +1188 -127
  3. package/dist-es/QConnect.js +22 -0
  4. package/dist-es/commands/CreateAIGuardrailCommand.js +23 -0
  5. package/dist-es/commands/CreateAIGuardrailVersionCommand.js +23 -0
  6. package/dist-es/commands/CreateQuickResponseCommand.js +1 -1
  7. package/dist-es/commands/DeleteAIGuardrailCommand.js +22 -0
  8. package/dist-es/commands/DeleteAIGuardrailVersionCommand.js +22 -0
  9. package/dist-es/commands/GetAIGuardrailCommand.js +23 -0
  10. package/dist-es/commands/GetImportJobCommand.js +1 -1
  11. package/dist-es/commands/GetKnowledgeBaseCommand.js +1 -1
  12. package/dist-es/commands/GetMessageTemplateCommand.js +1 -1
  13. package/dist-es/commands/GetNextMessageCommand.js +23 -0
  14. package/dist-es/commands/GetQuickResponseCommand.js +1 -1
  15. package/dist-es/commands/ListAIGuardrailVersionsCommand.js +23 -0
  16. package/dist-es/commands/ListAIGuardrailsCommand.js +23 -0
  17. package/dist-es/commands/ListKnowledgeBasesCommand.js +1 -1
  18. package/dist-es/commands/ListMessagesCommand.js +23 -0
  19. package/dist-es/commands/ListQuickResponsesCommand.js +1 -1
  20. package/dist-es/commands/RenderMessageTemplateCommand.js +1 -1
  21. package/dist-es/commands/SendMessageCommand.js +23 -0
  22. package/dist-es/commands/UpdateAIGuardrailCommand.js +23 -0
  23. package/dist-es/commands/UpdateMessageTemplateCommand.js +1 -1
  24. package/dist-es/commands/UpdateMessageTemplateMetadataCommand.js +1 -1
  25. package/dist-es/commands/UpdateQuickResponseCommand.js +1 -1
  26. package/dist-es/commands/index.js +11 -0
  27. package/dist-es/models/models_0.js +310 -166
  28. package/dist-es/models/models_1.js +167 -1
  29. package/dist-es/pagination/ListAIGuardrailVersionsPaginator.js +4 -0
  30. package/dist-es/pagination/ListAIGuardrailsPaginator.js +4 -0
  31. package/dist-es/pagination/ListMessagesPaginator.js +4 -0
  32. package/dist-es/pagination/index.js +3 -0
  33. package/dist-es/protocols/Aws_restJson1.js +443 -1
  34. package/dist-types/QConnect.d.ts +77 -0
  35. package/dist-types/QConnectClient.d.ts +13 -2
  36. package/dist-types/commands/CreateAIAgentCommand.d.ts +62 -0
  37. package/dist-types/commands/CreateAIAgentVersionCommand.d.ts +31 -0
  38. package/dist-types/commands/CreateAIGuardrailCommand.d.ts +231 -0
  39. package/dist-types/commands/CreateAIGuardrailVersionCommand.d.ts +169 -0
  40. package/dist-types/commands/CreateQuickResponseCommand.d.ts +1 -1
  41. package/dist-types/commands/DeactivateMessageTemplateCommand.d.ts +1 -1
  42. package/dist-types/commands/DeleteAIGuardrailCommand.d.ts +88 -0
  43. package/dist-types/commands/DeleteAIGuardrailVersionCommand.d.ts +89 -0
  44. package/dist-types/commands/DeleteImportJobCommand.d.ts +1 -1
  45. package/dist-types/commands/DeleteKnowledgeBaseCommand.d.ts +1 -1
  46. package/dist-types/commands/DeleteMessageTemplateAttachmentCommand.d.ts +1 -1
  47. package/dist-types/commands/DeleteMessageTemplateCommand.d.ts +1 -1
  48. package/dist-types/commands/DeleteQuickResponseCommand.d.ts +1 -1
  49. package/dist-types/commands/GetAIAgentCommand.d.ts +31 -0
  50. package/dist-types/commands/GetAIGuardrailCommand.d.ts +157 -0
  51. package/dist-types/commands/GetImportJobCommand.d.ts +1 -1
  52. package/dist-types/commands/GetKnowledgeBaseCommand.d.ts +1 -1
  53. package/dist-types/commands/GetMessageTemplateCommand.d.ts +4 -3
  54. package/dist-types/commands/GetNextMessageCommand.d.ts +106 -0
  55. package/dist-types/commands/GetQuickResponseCommand.d.ts +1 -1
  56. package/dist-types/commands/ListAIAgentVersionsCommand.d.ts +31 -0
  57. package/dist-types/commands/ListAIAgentsCommand.d.ts +31 -0
  58. package/dist-types/commands/ListAIGuardrailVersionsCommand.d.ts +105 -0
  59. package/dist-types/commands/ListAIGuardrailsCommand.d.ts +101 -0
  60. package/dist-types/commands/ListImportJobsCommand.d.ts +1 -1
  61. package/dist-types/commands/ListKnowledgeBasesCommand.d.ts +1 -1
  62. package/dist-types/commands/ListMessageTemplateVersionsCommand.d.ts +1 -1
  63. package/dist-types/commands/ListMessageTemplatesCommand.d.ts +1 -1
  64. package/dist-types/commands/ListMessagesCommand.d.ts +95 -0
  65. package/dist-types/commands/ListQuickResponsesCommand.d.ts +1 -1
  66. package/dist-types/commands/RemoveKnowledgeBaseTemplateUriCommand.d.ts +1 -2
  67. package/dist-types/commands/RenderMessageTemplateCommand.d.ts +1 -1
  68. package/dist-types/commands/SendMessageCommand.d.ts +114 -0
  69. package/dist-types/commands/UpdateAIAgentCommand.d.ts +62 -0
  70. package/dist-types/commands/UpdateAIGuardrailCommand.d.ts +224 -0
  71. package/dist-types/commands/UpdateMessageTemplateCommand.d.ts +1 -1
  72. package/dist-types/commands/UpdateMessageTemplateMetadataCommand.d.ts +1 -1
  73. package/dist-types/commands/UpdateQuickResponseCommand.d.ts +1 -1
  74. package/dist-types/commands/index.d.ts +11 -0
  75. package/dist-types/models/models_0.d.ts +3820 -3619
  76. package/dist-types/models/models_1.d.ts +1513 -1
  77. package/dist-types/pagination/ListAIGuardrailVersionsPaginator.d.ts +7 -0
  78. package/dist-types/pagination/ListAIGuardrailsPaginator.d.ts +7 -0
  79. package/dist-types/pagination/ListMessagesPaginator.d.ts +7 -0
  80. package/dist-types/pagination/index.d.ts +3 -0
  81. package/dist-types/protocols/Aws_restJson1.d.ts +99 -0
  82. package/dist-types/ts3.4/QConnect.d.ts +187 -0
  83. package/dist-types/ts3.4/QConnectClient.d.ts +66 -0
  84. package/dist-types/ts3.4/commands/CreateAIGuardrailCommand.d.ts +51 -0
  85. package/dist-types/ts3.4/commands/CreateAIGuardrailVersionCommand.d.ts +51 -0
  86. package/dist-types/ts3.4/commands/CreateQuickResponseCommand.d.ts +1 -1
  87. package/dist-types/ts3.4/commands/DeactivateMessageTemplateCommand.d.ts +1 -1
  88. package/dist-types/ts3.4/commands/DeleteAIGuardrailCommand.d.ts +51 -0
  89. package/dist-types/ts3.4/commands/DeleteAIGuardrailVersionCommand.d.ts +51 -0
  90. package/dist-types/ts3.4/commands/DeleteImportJobCommand.d.ts +1 -1
  91. package/dist-types/ts3.4/commands/DeleteKnowledgeBaseCommand.d.ts +1 -1
  92. package/dist-types/ts3.4/commands/DeleteMessageTemplateAttachmentCommand.d.ts +1 -1
  93. package/dist-types/ts3.4/commands/DeleteMessageTemplateCommand.d.ts +1 -1
  94. package/dist-types/ts3.4/commands/DeleteQuickResponseCommand.d.ts +1 -1
  95. package/dist-types/ts3.4/commands/GetAIGuardrailCommand.d.ts +50 -0
  96. package/dist-types/ts3.4/commands/GetImportJobCommand.d.ts +1 -1
  97. package/dist-types/ts3.4/commands/GetKnowledgeBaseCommand.d.ts +1 -1
  98. package/dist-types/ts3.4/commands/GetMessageTemplateCommand.d.ts +1 -1
  99. package/dist-types/ts3.4/commands/GetNextMessageCommand.d.ts +50 -0
  100. package/dist-types/ts3.4/commands/GetQuickResponseCommand.d.ts +1 -1
  101. package/dist-types/ts3.4/commands/ListAIGuardrailVersionsCommand.d.ts +51 -0
  102. package/dist-types/ts3.4/commands/ListAIGuardrailsCommand.d.ts +50 -0
  103. package/dist-types/ts3.4/commands/ListImportJobsCommand.d.ts +1 -1
  104. package/dist-types/ts3.4/commands/ListKnowledgeBasesCommand.d.ts +1 -1
  105. package/dist-types/ts3.4/commands/ListMessageTemplateVersionsCommand.d.ts +1 -1
  106. package/dist-types/ts3.4/commands/ListMessageTemplatesCommand.d.ts +1 -1
  107. package/dist-types/ts3.4/commands/ListMessagesCommand.d.ts +47 -0
  108. package/dist-types/ts3.4/commands/ListQuickResponsesCommand.d.ts +1 -1
  109. package/dist-types/ts3.4/commands/RemoveKnowledgeBaseTemplateUriCommand.d.ts +4 -2
  110. package/dist-types/ts3.4/commands/RenderMessageTemplateCommand.d.ts +1 -1
  111. package/dist-types/ts3.4/commands/SendMessageCommand.d.ts +47 -0
  112. package/dist-types/ts3.4/commands/UpdateAIGuardrailCommand.d.ts +51 -0
  113. package/dist-types/ts3.4/commands/UpdateMessageTemplateCommand.d.ts +1 -1
  114. package/dist-types/ts3.4/commands/UpdateMessageTemplateMetadataCommand.d.ts +1 -1
  115. package/dist-types/ts3.4/commands/UpdateQuickResponseCommand.d.ts +1 -1
  116. package/dist-types/ts3.4/commands/index.d.ts +11 -0
  117. package/dist-types/ts3.4/models/models_0.d.ts +482 -441
  118. package/dist-types/ts3.4/models/models_1.d.ts +437 -5
  119. package/dist-types/ts3.4/pagination/ListAIGuardrailVersionsPaginator.d.ts +11 -0
  120. package/dist-types/ts3.4/pagination/ListAIGuardrailsPaginator.d.ts +11 -0
  121. package/dist-types/ts3.4/pagination/ListMessagesPaginator.d.ts +11 -0
  122. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  123. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +132 -0
  124. 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/models_0";
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/models_0";
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/models_0";
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/models_0";
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/models_0";
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/models_0";
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/models_0";
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",