@aws-sdk/client-qbusiness 3.840.0 → 3.844.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 (52) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/index.js +309 -27
  3. package/dist-es/QBusiness.js +10 -0
  4. package/dist-es/commands/CreateChatResponseConfigurationCommand.js +22 -0
  5. package/dist-es/commands/DeleteChatResponseConfigurationCommand.js +22 -0
  6. package/dist-es/commands/GetChatResponseConfigurationCommand.js +22 -0
  7. package/dist-es/commands/ListChatResponseConfigurationsCommand.js +22 -0
  8. package/dist-es/commands/UpdateChatResponseConfigurationCommand.js +22 -0
  9. package/dist-es/commands/index.js +5 -0
  10. package/dist-es/models/models_0.js +16 -19
  11. package/dist-es/models/models_1.js +20 -0
  12. package/dist-es/pagination/ListChatResponseConfigurationsPaginator.js +4 -0
  13. package/dist-es/pagination/index.js +1 -0
  14. package/dist-es/protocols/Aws_restJson1.js +166 -2
  15. package/dist-types/QBusiness.d.ts +35 -0
  16. package/dist-types/QBusinessClient.d.ts +7 -2
  17. package/dist-types/commands/CreateChatResponseConfigurationCommand.d.ts +116 -0
  18. package/dist-types/commands/CreateRetrieverCommand.d.ts +6 -5
  19. package/dist-types/commands/DeleteChatResponseConfigurationCommand.d.ts +89 -0
  20. package/dist-types/commands/GetChatResponseConfigurationCommand.d.ts +137 -0
  21. package/dist-types/commands/GetGroupCommand.d.ts +1 -1
  22. package/dist-types/commands/GetMediaCommand.d.ts +1 -1
  23. package/dist-types/commands/GetPolicyCommand.d.ts +1 -1
  24. package/dist-types/commands/GetRetrieverCommand.d.ts +6 -5
  25. package/dist-types/commands/GetUserCommand.d.ts +1 -2
  26. package/dist-types/commands/ListChatResponseConfigurationsCommand.d.ts +100 -0
  27. package/dist-types/commands/UpdateChatResponseConfigurationCommand.d.ts +105 -0
  28. package/dist-types/commands/UpdateRetrieverCommand.d.ts +6 -5
  29. package/dist-types/commands/index.d.ts +5 -0
  30. package/dist-types/models/models_0.d.ts +245 -177
  31. package/dist-types/models/models_1.d.ts +286 -1
  32. package/dist-types/pagination/ListChatResponseConfigurationsPaginator.d.ts +7 -0
  33. package/dist-types/pagination/index.d.ts +1 -0
  34. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  35. package/dist-types/ts3.4/QBusiness.d.ts +85 -0
  36. package/dist-types/ts3.4/QBusinessClient.d.ts +30 -0
  37. package/dist-types/ts3.4/commands/CreateChatResponseConfigurationCommand.d.ts +51 -0
  38. package/dist-types/ts3.4/commands/DeleteChatResponseConfigurationCommand.d.ts +51 -0
  39. package/dist-types/ts3.4/commands/GetChatResponseConfigurationCommand.d.ts +51 -0
  40. package/dist-types/ts3.4/commands/GetGroupCommand.d.ts +1 -1
  41. package/dist-types/ts3.4/commands/GetMediaCommand.d.ts +1 -1
  42. package/dist-types/ts3.4/commands/GetPolicyCommand.d.ts +1 -1
  43. package/dist-types/ts3.4/commands/GetUserCommand.d.ts +1 -2
  44. package/dist-types/ts3.4/commands/ListChatResponseConfigurationsCommand.d.ts +51 -0
  45. package/dist-types/ts3.4/commands/UpdateChatResponseConfigurationCommand.d.ts +51 -0
  46. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  47. package/dist-types/ts3.4/models/models_0.d.ts +71 -51
  48. package/dist-types/ts3.4/models/models_1.d.ts +88 -0
  49. package/dist-types/ts3.4/pagination/ListChatResponseConfigurationsPaginator.d.ts +11 -0
  50. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  51. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  52. package/package.json +14 -14
@@ -0,0 +1,100 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ListChatResponseConfigurationsRequest, ListChatResponseConfigurationsResponse } from "../models/models_1";
4
+ import { QBusinessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QBusinessClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListChatResponseConfigurationsCommand}.
14
+ */
15
+ export interface ListChatResponseConfigurationsCommandInput extends ListChatResponseConfigurationsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListChatResponseConfigurationsCommand}.
21
+ */
22
+ export interface ListChatResponseConfigurationsCommandOutput extends ListChatResponseConfigurationsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListChatResponseConfigurationsCommand_base: {
25
+ new (input: ListChatResponseConfigurationsCommandInput): import("@smithy/smithy-client").CommandImpl<ListChatResponseConfigurationsCommandInput, ListChatResponseConfigurationsCommandOutput, QBusinessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ListChatResponseConfigurationsCommandInput): import("@smithy/smithy-client").CommandImpl<ListChatResponseConfigurationsCommandInput, ListChatResponseConfigurationsCommandOutput, QBusinessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Retrieves a list of all chat response configurations available in a specified Amazon Q Business application. This operation returns summary information about each configuration to help administrators manage and select appropriate response settings.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { QBusinessClient, ListChatResponseConfigurationsCommand } from "@aws-sdk/client-qbusiness"; // ES Modules import
35
+ * // const { QBusinessClient, ListChatResponseConfigurationsCommand } = require("@aws-sdk/client-qbusiness"); // CommonJS import
36
+ * const client = new QBusinessClient(config);
37
+ * const input = { // ListChatResponseConfigurationsRequest
38
+ * applicationId: "STRING_VALUE", // required
39
+ * maxResults: Number("int"),
40
+ * nextToken: "STRING_VALUE",
41
+ * };
42
+ * const command = new ListChatResponseConfigurationsCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // ListChatResponseConfigurationsResponse
45
+ * // chatResponseConfigurations: [ // ChatResponseConfigurations
46
+ * // { // ChatResponseConfiguration
47
+ * // chatResponseConfigurationId: "STRING_VALUE", // required
48
+ * // chatResponseConfigurationArn: "STRING_VALUE", // required
49
+ * // displayName: "STRING_VALUE", // required
50
+ * // responseConfigurationSummary: "STRING_VALUE",
51
+ * // status: "CREATING" || "UPDATING" || "FAILED" || "ACTIVE", // required
52
+ * // createdAt: new Date("TIMESTAMP"),
53
+ * // updatedAt: new Date("TIMESTAMP"),
54
+ * // },
55
+ * // ],
56
+ * // nextToken: "STRING_VALUE",
57
+ * // };
58
+ *
59
+ * ```
60
+ *
61
+ * @param ListChatResponseConfigurationsCommandInput - {@link ListChatResponseConfigurationsCommandInput}
62
+ * @returns {@link ListChatResponseConfigurationsCommandOutput}
63
+ * @see {@link ListChatResponseConfigurationsCommandInput} for command's `input` shape.
64
+ * @see {@link ListChatResponseConfigurationsCommandOutput} for command's `response` shape.
65
+ * @see {@link QBusinessClientResolvedConfig | config} for QBusinessClient's `config` shape.
66
+ *
67
+ * @throws {@link AccessDeniedException} (client fault)
68
+ * <p> You don't have access to perform this action. Make sure you have the required permission policies and user accounts and try again.</p>
69
+ *
70
+ * @throws {@link InternalServerException} (server fault)
71
+ * <p>An issue occurred with the internal server used for your Amazon Q Business service. Wait some minutes and try again, or contact <a href="http://aws.amazon.com/contact-us/">Support</a> for help.</p>
72
+ *
73
+ * @throws {@link ResourceNotFoundException} (client fault)
74
+ * <p>The application or plugin resource you want to use doesn’t exist. Make sure you have provided the correct resource and try again.</p>
75
+ *
76
+ * @throws {@link ThrottlingException} (client fault)
77
+ * <p>The request was denied due to throttling. Reduce the number of requests and try again.</p>
78
+ *
79
+ * @throws {@link ValidationException} (client fault)
80
+ * <p>The input doesn't meet the constraints set by the Amazon Q Business service. Provide the correct input and try again.</p>
81
+ *
82
+ * @throws {@link QBusinessServiceException}
83
+ * <p>Base exception class for all service exceptions from QBusiness service.</p>
84
+ *
85
+ *
86
+ * @public
87
+ */
88
+ export declare class ListChatResponseConfigurationsCommand extends ListChatResponseConfigurationsCommand_base {
89
+ /** @internal type navigation helper, not in runtime. */
90
+ protected static __types: {
91
+ api: {
92
+ input: ListChatResponseConfigurationsRequest;
93
+ output: ListChatResponseConfigurationsResponse;
94
+ };
95
+ sdk: {
96
+ input: ListChatResponseConfigurationsCommandInput;
97
+ output: ListChatResponseConfigurationsCommandOutput;
98
+ };
99
+ };
100
+ }
@@ -0,0 +1,105 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { UpdateChatResponseConfigurationRequest, UpdateChatResponseConfigurationResponse } from "../models/models_1";
4
+ import { QBusinessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QBusinessClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateChatResponseConfigurationCommand}.
14
+ */
15
+ export interface UpdateChatResponseConfigurationCommandInput extends UpdateChatResponseConfigurationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateChatResponseConfigurationCommand}.
21
+ */
22
+ export interface UpdateChatResponseConfigurationCommandOutput extends UpdateChatResponseConfigurationResponse, __MetadataBearer {
23
+ }
24
+ declare const UpdateChatResponseConfigurationCommand_base: {
25
+ new (input: UpdateChatResponseConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateChatResponseConfigurationCommandInput, UpdateChatResponseConfigurationCommandOutput, QBusinessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdateChatResponseConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateChatResponseConfigurationCommandInput, UpdateChatResponseConfigurationCommandOutput, QBusinessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Updates an existing chat response configuration in an Amazon Q Business application. This operation allows administrators to modify configuration settings, display name, and response parameters to refine how the system generates responses.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { QBusinessClient, UpdateChatResponseConfigurationCommand } from "@aws-sdk/client-qbusiness"; // ES Modules import
35
+ * // const { QBusinessClient, UpdateChatResponseConfigurationCommand } = require("@aws-sdk/client-qbusiness"); // CommonJS import
36
+ * const client = new QBusinessClient(config);
37
+ * const input = { // UpdateChatResponseConfigurationRequest
38
+ * applicationId: "STRING_VALUE", // required
39
+ * chatResponseConfigurationId: "STRING_VALUE", // required
40
+ * displayName: "STRING_VALUE",
41
+ * responseConfigurations: { // ResponseConfigurations // required
42
+ * "<keys>": { // ResponseConfiguration
43
+ * instructionCollection: { // InstructionCollection
44
+ * responseLength: "STRING_VALUE",
45
+ * targetAudience: "STRING_VALUE",
46
+ * perspective: "STRING_VALUE",
47
+ * outputStyle: "STRING_VALUE",
48
+ * identity: "STRING_VALUE",
49
+ * tone: "STRING_VALUE",
50
+ * customInstructions: "STRING_VALUE",
51
+ * examples: "STRING_VALUE",
52
+ * },
53
+ * },
54
+ * },
55
+ * clientToken: "STRING_VALUE",
56
+ * };
57
+ * const command = new UpdateChatResponseConfigurationCommand(input);
58
+ * const response = await client.send(command);
59
+ * // {};
60
+ *
61
+ * ```
62
+ *
63
+ * @param UpdateChatResponseConfigurationCommandInput - {@link UpdateChatResponseConfigurationCommandInput}
64
+ * @returns {@link UpdateChatResponseConfigurationCommandOutput}
65
+ * @see {@link UpdateChatResponseConfigurationCommandInput} for command's `input` shape.
66
+ * @see {@link UpdateChatResponseConfigurationCommandOutput} for command's `response` shape.
67
+ * @see {@link QBusinessClientResolvedConfig | config} for QBusinessClient's `config` shape.
68
+ *
69
+ * @throws {@link AccessDeniedException} (client fault)
70
+ * <p> You don't have access to perform this action. Make sure you have the required permission policies and user accounts and try again.</p>
71
+ *
72
+ * @throws {@link ConflictException} (client fault)
73
+ * <p>You are trying to perform an action that conflicts with the current status of your resource. Fix any inconsistencies with your resources and try again.</p>
74
+ *
75
+ * @throws {@link InternalServerException} (server fault)
76
+ * <p>An issue occurred with the internal server used for your Amazon Q Business service. Wait some minutes and try again, or contact <a href="http://aws.amazon.com/contact-us/">Support</a> for help.</p>
77
+ *
78
+ * @throws {@link ResourceNotFoundException} (client fault)
79
+ * <p>The application or plugin resource you want to use doesn’t exist. Make sure you have provided the correct resource and try again.</p>
80
+ *
81
+ * @throws {@link ThrottlingException} (client fault)
82
+ * <p>The request was denied due to throttling. Reduce the number of requests and try again.</p>
83
+ *
84
+ * @throws {@link ValidationException} (client fault)
85
+ * <p>The input doesn't meet the constraints set by the Amazon Q Business service. Provide the correct input and try again.</p>
86
+ *
87
+ * @throws {@link QBusinessServiceException}
88
+ * <p>Base exception class for all service exceptions from QBusiness service.</p>
89
+ *
90
+ *
91
+ * @public
92
+ */
93
+ export declare class UpdateChatResponseConfigurationCommand extends UpdateChatResponseConfigurationCommand_base {
94
+ /** @internal type navigation helper, not in runtime. */
95
+ protected static __types: {
96
+ api: {
97
+ input: UpdateChatResponseConfigurationRequest;
98
+ output: {};
99
+ };
100
+ sdk: {
101
+ input: UpdateChatResponseConfigurationCommandInput;
102
+ output: UpdateChatResponseConfigurationCommandOutput;
103
+ };
104
+ };
105
+ }
@@ -40,24 +40,25 @@ declare const UpdateRetrieverCommand_base: {
40
40
  * configuration: { // RetrieverConfiguration Union: only one key present
41
41
  * nativeIndexConfiguration: { // NativeIndexConfiguration
42
42
  * indexId: "STRING_VALUE", // required
43
+ * version: Number("long"),
43
44
  * boostingOverride: { // DocumentAttributeBoostingOverrideMap
44
45
  * "<keys>": { // DocumentAttributeBoostingConfiguration Union: only one key present
45
46
  * numberConfiguration: { // NumberAttributeBoostingConfiguration
46
- * boostingLevel: "NONE" || "LOW" || "MEDIUM" || "HIGH" || "VERY_HIGH", // required
47
+ * boostingLevel: "NONE" || "LOW" || "MEDIUM" || "HIGH" || "VERY_HIGH" || "ONE" || "TWO", // required
47
48
  * boostingType: "PRIORITIZE_LARGER_VALUES" || "PRIORITIZE_SMALLER_VALUES",
48
49
  * },
49
50
  * stringConfiguration: { // StringAttributeBoostingConfiguration
50
- * boostingLevel: "NONE" || "LOW" || "MEDIUM" || "HIGH" || "VERY_HIGH", // required
51
+ * boostingLevel: "NONE" || "LOW" || "MEDIUM" || "HIGH" || "VERY_HIGH" || "ONE" || "TWO", // required
51
52
  * attributeValueBoosting: { // StringAttributeValueBoosting
52
- * "<keys>": "LOW" || "MEDIUM" || "HIGH" || "VERY_HIGH",
53
+ * "<keys>": "LOW" || "MEDIUM" || "HIGH" || "VERY_HIGH" || "ONE" || "TWO" || "THREE" || "FOUR" || "FIVE",
53
54
  * },
54
55
  * },
55
56
  * dateConfiguration: { // DateAttributeBoostingConfiguration
56
- * boostingLevel: "NONE" || "LOW" || "MEDIUM" || "HIGH" || "VERY_HIGH", // required
57
+ * boostingLevel: "NONE" || "LOW" || "MEDIUM" || "HIGH" || "VERY_HIGH" || "ONE" || "TWO", // required
57
58
  * boostingDurationInSeconds: Number("long"),
58
59
  * },
59
60
  * stringListConfiguration: { // StringListAttributeBoostingConfiguration
60
- * boostingLevel: "NONE" || "LOW" || "MEDIUM" || "HIGH" || "VERY_HIGH", // required
61
+ * boostingLevel: "NONE" || "LOW" || "MEDIUM" || "HIGH" || "VERY_HIGH" || "ONE" || "TWO", // required
61
62
  * },
62
63
  * },
63
64
  * },
@@ -7,6 +7,7 @@ export * from "./ChatSyncCommand";
7
7
  export * from "./CheckDocumentAccessCommand";
8
8
  export * from "./CreateAnonymousWebExperienceUrlCommand";
9
9
  export * from "./CreateApplicationCommand";
10
+ export * from "./CreateChatResponseConfigurationCommand";
10
11
  export * from "./CreateDataAccessorCommand";
11
12
  export * from "./CreateDataSourceCommand";
12
13
  export * from "./CreateIndexCommand";
@@ -18,6 +19,7 @@ export * from "./CreateWebExperienceCommand";
18
19
  export * from "./DeleteApplicationCommand";
19
20
  export * from "./DeleteAttachmentCommand";
20
21
  export * from "./DeleteChatControlsConfigurationCommand";
22
+ export * from "./DeleteChatResponseConfigurationCommand";
21
23
  export * from "./DeleteConversationCommand";
22
24
  export * from "./DeleteDataAccessorCommand";
23
25
  export * from "./DeleteDataSourceCommand";
@@ -30,6 +32,7 @@ export * from "./DeleteWebExperienceCommand";
30
32
  export * from "./DisassociatePermissionCommand";
31
33
  export * from "./GetApplicationCommand";
32
34
  export * from "./GetChatControlsConfigurationCommand";
35
+ export * from "./GetChatResponseConfigurationCommand";
33
36
  export * from "./GetDataAccessorCommand";
34
37
  export * from "./GetDataSourceCommand";
35
38
  export * from "./GetGroupCommand";
@@ -42,6 +45,7 @@ export * from "./GetUserCommand";
42
45
  export * from "./GetWebExperienceCommand";
43
46
  export * from "./ListApplicationsCommand";
44
47
  export * from "./ListAttachmentsCommand";
48
+ export * from "./ListChatResponseConfigurationsCommand";
45
49
  export * from "./ListConversationsCommand";
46
50
  export * from "./ListDataAccessorsCommand";
47
51
  export * from "./ListDataSourceSyncJobsCommand";
@@ -67,6 +71,7 @@ export * from "./TagResourceCommand";
67
71
  export * from "./UntagResourceCommand";
68
72
  export * from "./UpdateApplicationCommand";
69
73
  export * from "./UpdateChatControlsConfigurationCommand";
74
+ export * from "./UpdateChatResponseConfigurationCommand";
70
75
  export * from "./UpdateDataAccessorCommand";
71
76
  export * from "./UpdateDataSourceCommand";
72
77
  export * from "./UpdateIndexCommand";