@aws-sdk/client-qapps 3.701.0 → 3.705.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 (44) hide show
  1. package/README.md +13 -14
  2. package/dist-cjs/models/models_0.js +11 -0
  3. package/dist-es/models/models_0.js +11 -0
  4. package/dist-types/QApps.d.ts +13 -14
  5. package/dist-types/QAppsClient.d.ts +13 -14
  6. package/dist-types/commands/AssociateLibraryItemReviewCommand.d.ts +8 -8
  7. package/dist-types/commands/AssociateQAppWithUserCommand.d.ts +6 -6
  8. package/dist-types/commands/BatchCreateCategoryCommand.d.ts +7 -5
  9. package/dist-types/commands/BatchDeleteCategoryCommand.d.ts +7 -5
  10. package/dist-types/commands/BatchUpdateCategoryCommand.d.ts +7 -5
  11. package/dist-types/commands/CreateLibraryItemCommand.d.ts +6 -6
  12. package/dist-types/commands/CreatePresignedUrlCommand.d.ts +65 -7
  13. package/dist-types/commands/CreateQAppCommand.d.ts +11 -10
  14. package/dist-types/commands/DeleteLibraryItemCommand.d.ts +6 -6
  15. package/dist-types/commands/DeleteQAppCommand.d.ts +4 -3
  16. package/dist-types/commands/DescribeQAppPermissionsCommand.d.ts +36 -2
  17. package/dist-types/commands/DisassociateLibraryItemReviewCommand.d.ts +6 -6
  18. package/dist-types/commands/DisassociateQAppFromUserCommand.d.ts +3 -4
  19. package/dist-types/commands/ExportQAppSessionDataCommand.d.ts +6 -6
  20. package/dist-types/commands/GetLibraryItemCommand.d.ts +2 -2
  21. package/dist-types/commands/GetQAppCommand.d.ts +6 -4
  22. package/dist-types/commands/GetQAppSessionCommand.d.ts +15 -5
  23. package/dist-types/commands/GetQAppSessionMetadataCommand.d.ts +29 -4
  24. package/dist-types/commands/ImportDocumentCommand.d.ts +10 -11
  25. package/dist-types/commands/ListCategoriesCommand.d.ts +4 -3
  26. package/dist-types/commands/ListLibraryItemsCommand.d.ts +4 -3
  27. package/dist-types/commands/ListQAppSessionDataCommand.d.ts +4 -4
  28. package/dist-types/commands/ListQAppsCommand.d.ts +5 -5
  29. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -2
  30. package/dist-types/commands/PredictQAppCommand.d.ts +6 -6
  31. package/dist-types/commands/StartQAppSessionCommand.d.ts +8 -8
  32. package/dist-types/commands/StopQAppSessionCommand.d.ts +7 -7
  33. package/dist-types/commands/TagResourceCommand.d.ts +4 -4
  34. package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
  35. package/dist-types/commands/UpdateLibraryItemCommand.d.ts +4 -4
  36. package/dist-types/commands/UpdateLibraryItemMetadataCommand.d.ts +4 -4
  37. package/dist-types/commands/UpdateQAppCommand.d.ts +7 -5
  38. package/dist-types/commands/UpdateQAppPermissionsCommand.d.ts +75 -2
  39. package/dist-types/commands/UpdateQAppSessionCommand.d.ts +9 -9
  40. package/dist-types/commands/UpdateQAppSessionMetadataCommand.d.ts +36 -5
  41. package/dist-types/index.d.ts +13 -14
  42. package/dist-types/models/models_0.d.ts +108 -78
  43. package/dist-types/ts3.4/models/models_0.d.ts +13 -0
  44. package/package.json +1 -1
@@ -85,8 +85,8 @@ declare const UpdateQAppPermissionsCommand_base: {
85
85
  * <p>The requested resource could not be found.</p>
86
86
  *
87
87
  * @throws {@link ThrottlingException} (client fault)
88
- * <p>The requested operation could not be completed because too many
89
- * requests were sent at once. Wait a bit and try again later.</p>
88
+ * <p>The requested operation could not be completed because too many requests were sent at
89
+ * once. Wait a bit and try again later.</p>
90
90
  *
91
91
  * @throws {@link UnauthorizedException} (client fault)
92
92
  * <p>The client is not authenticated or authorized to perform the requested operation.</p>
@@ -98,6 +98,79 @@ declare const UpdateQAppPermissionsCommand_base: {
98
98
  * <p>Base exception class for all service exceptions from QApps service.</p>
99
99
  *
100
100
  * @public
101
+ * @example Grant permissions for the app
102
+ * ```javascript
103
+ * //
104
+ * const input = {
105
+ * "appId": "fe0acf86-49e5-4def-a0c2-40ce0cafee14",
106
+ * "grantPermissions": [
107
+ * {
108
+ * "action": "read",
109
+ * "principal": "user2@example.com"
110
+ * }
111
+ * ],
112
+ * "instanceId": "01793661-ad73-4c7d-8eaa-1c95a10151c2"
113
+ * };
114
+ * const command = new UpdateQAppPermissionsCommand(input);
115
+ * const response = await client.send(command);
116
+ * /* response ==
117
+ * {
118
+ * "appId": "fe0acf86-49e5-4def-a0c2-40ce0cafee14",
119
+ * "permissions": [
120
+ * {
121
+ * "action": "write",
122
+ * "principal": {
123
+ * "email": "user1@example.com",
124
+ * "userId": "f8f15330-b091-708b-d46e-adb0d914b699"
125
+ * }
126
+ * },
127
+ * {
128
+ * "action": "read",
129
+ * "principal": {
130
+ * "email": "user2@example.com",
131
+ * "userId": "c81133d0-10d1-70eb-aaa3-d427ea6fc0f3"
132
+ * }
133
+ * }
134
+ * ],
135
+ * "resourceArn": "arn:aws:qapps:us-west-2:111111111111:application/01793661-ad73-4c7d-8eaa-1c95a10151c2/qapp/fe0acf86-49e5-4def-a0c2-40ce0cafee14"
136
+ * }
137
+ * *\/
138
+ * // example id: example-1
139
+ * ```
140
+ *
141
+ * @example Revoke permissions for the app
142
+ * ```javascript
143
+ * //
144
+ * const input = {
145
+ * "appId": "fe0acf86-49e5-4def-a0c2-40ce0cafee14",
146
+ * "instanceId": "01793661-ad73-4c7d-8eaa-1c95a10151c2",
147
+ * "revokePermissions": [
148
+ * {
149
+ * "action": "read",
150
+ * "principal": "user2@example.com"
151
+ * }
152
+ * ]
153
+ * };
154
+ * const command = new UpdateQAppPermissionsCommand(input);
155
+ * const response = await client.send(command);
156
+ * /* response ==
157
+ * {
158
+ * "appId": "fe0acf86-49e5-4def-a0c2-40ce0cafee14",
159
+ * "permissions": [
160
+ * {
161
+ * "action": "write",
162
+ * "principal": {
163
+ * "email": "user1@example.com",
164
+ * "userId": "f8f15330-b091-708b-d46e-adb0d914b699"
165
+ * }
166
+ * }
167
+ * ],
168
+ * "resourceArn": "arn:aws:qapps:us-west-2:111111111111:application/01793661-ad73-4c7d-8eaa-1c95a10151c2/qapp/fe0acf86-49e5-4def-a0c2-40ce0cafee14"
169
+ * }
170
+ * *\/
171
+ * // example id: example-2
172
+ * ```
173
+ *
101
174
  */
102
175
  export declare class UpdateQAppPermissionsCommand extends UpdateQAppPermissionsCommand_base {
103
176
  /** @internal type navigation helper, not in runtime. */
@@ -27,11 +27,11 @@ declare const UpdateQAppSessionCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Updates the session for a given Q App <code>sessionId</code>. This is only
31
- * valid when at least one card of the session is in the <code>WAITING</code> state.
32
- * Data for each <code>WAITING</code> card can be provided as input. If inputs
33
- * are not provided, the call will be accepted but session will not move forward.
34
- * Inputs for cards that are not in the <code>WAITING</code> status will be ignored.</p>
30
+ * <p>Updates the session for a given Q App <code>sessionId</code>. This is only valid when at
31
+ * least one card of the session is in the <code>WAITING</code> state. Data for each
32
+ * <code>WAITING</code> card can be provided as input. If inputs are not provided, the call
33
+ * will be accepted but session will not move forward. Inputs for cards that are not in the
34
+ * <code>WAITING</code> status will be ignored.</p>
35
35
  * @example
36
36
  * Use a bare-bones client and the command you need to make an API call.
37
37
  * ```javascript
@@ -77,12 +77,12 @@ declare const UpdateQAppSessionCommand_base: {
77
77
  * <p>The requested resource could not be found.</p>
78
78
  *
79
79
  * @throws {@link ServiceQuotaExceededException} (client fault)
80
- * <p>The requested operation could not be completed because
81
- * it would exceed the service's quota or limit.</p>
80
+ * <p>The requested operation could not be completed because it would exceed the service's quota
81
+ * or limit.</p>
82
82
  *
83
83
  * @throws {@link ThrottlingException} (client fault)
84
- * <p>The requested operation could not be completed because too many
85
- * requests were sent at once. Wait a bit and try again later.</p>
84
+ * <p>The requested operation could not be completed because too many requests were sent at
85
+ * once. Wait a bit and try again later.</p>
86
86
  *
87
87
  * @throws {@link UnauthorizedException} (client fault)
88
88
  * <p>The client is not authenticated or authorized to perform the requested operation.</p>
@@ -27,7 +27,8 @@ declare const UpdateQAppSessionMetadataCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Updates the configuration metadata of a session for a given Q App <code>sessionId</code>.</p>
30
+ * <p>Updates the configuration metadata of a session for a given Q App
31
+ * <code>sessionId</code>.</p>
31
32
  * @example
32
33
  * Use a bare-bones client and the command you need to make an API call.
33
34
  * ```javascript
@@ -75,12 +76,12 @@ declare const UpdateQAppSessionMetadataCommand_base: {
75
76
  * <p>The requested resource could not be found.</p>
76
77
  *
77
78
  * @throws {@link ServiceQuotaExceededException} (client fault)
78
- * <p>The requested operation could not be completed because
79
- * it would exceed the service's quota or limit.</p>
79
+ * <p>The requested operation could not be completed because it would exceed the service's quota
80
+ * or limit.</p>
80
81
  *
81
82
  * @throws {@link ThrottlingException} (client fault)
82
- * <p>The requested operation could not be completed because too many
83
- * requests were sent at once. Wait a bit and try again later.</p>
83
+ * <p>The requested operation could not be completed because too many requests were sent at
84
+ * once. Wait a bit and try again later.</p>
84
85
  *
85
86
  * @throws {@link UnauthorizedException} (client fault)
86
87
  * <p>The client is not authenticated or authorized to perform the requested operation.</p>
@@ -92,6 +93,36 @@ declare const UpdateQAppSessionMetadataCommand_base: {
92
93
  * <p>Base exception class for all service exceptions from QApps service.</p>
93
94
  *
94
95
  * @public
96
+ * @example Updates an existing session metadata for an Amazon Q App
97
+ * ```javascript
98
+ * //
99
+ * const input = {
100
+ * "instanceId": "0b95c9c4-89cc-4aa8-9aae-aa91cbec699f",
101
+ * "sessionId": "56ae47c3-10bc-4c2c-8b27-9b9fe23b3edb",
102
+ * "sessionName": "Trip itinerary collection session",
103
+ * "sharingConfiguration": {
104
+ * "acceptResponses": true,
105
+ * "enabled": true,
106
+ * "revealCards": false
107
+ * }
108
+ * };
109
+ * const command = new UpdateQAppSessionMetadataCommand(input);
110
+ * const response = await client.send(command);
111
+ * /* response ==
112
+ * {
113
+ * "sessionArn": "arn:aws:qapps:us-west-2:0123456789012:application/cbea8329-41c0-4566-a112-19250921a220/qapp/387ccac9-4717-489f-841f-729b7d7de355/session/56ae47c3-10bc-4c2c-8b27-9b9fe23b3edb",
114
+ * "sessionId": "56ae47c3-10bc-4c2c-8b27-9b9fe23b3edb",
115
+ * "sessionName": "Trip itinerary collection session",
116
+ * "sharingConfiguration": {
117
+ * "acceptResponses": true,
118
+ * "enabled": true,
119
+ * "revealCards": false
120
+ * }
121
+ * }
122
+ * *\/
123
+ * // example id: example-1
124
+ * ```
125
+ *
95
126
  */
96
127
  export declare class UpdateQAppSessionMetadataCommand extends UpdateQAppSessionMetadataCommand_base {
97
128
  /** @internal type navigation helper, not in runtime. */
@@ -1,18 +1,17 @@
1
1
  /**
2
- * <p>The Amazon Q Apps feature capability within Amazon Q Business allows web experience
3
- * users to create lightweight, purpose-built AI apps to fulfill specific tasks from
4
- * within their web experience. For example, users can create a Q App that exclusively
5
- * generates marketing-related content to improve your marketing team's productivity or a
6
- * Q App for writing customer emails and creating promotional content using a certain
7
- * style of voice, tone, and branding. For more information on the capabilities, see
8
- * <a href="https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/deploy-experience-iam-role.html#q-apps-actions">Amazon Q Apps capabilities</a> in the <i>Amazon Q Business User Guide</i>.
9
- * </p>
10
- * <p>For an overview of the Amazon Q App APIs, see <a href="https://docs.aws.amazon.com/amazonq/latest/api-reference/API_Operations_QApps.html">Overview of
11
- * Amazon Q Apps API operations</a>.</p>
12
- * <p>For information about the IAM access control permissions you need to
13
- * use the Amazon Q Apps API, see <a href="https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/deploy-experience-iam-role.html">
14
- * IAM role for the Amazon Q Business web experience including Amazon Q Apps</a> in the
15
- * <i>Amazon Q Business User Guide</i>.</p>
2
+ * <p>The Amazon Q Apps feature capability within Amazon Q Business allows web experience users to create
3
+ * lightweight, purpose-built AI apps to fulfill specific tasks from within their web experience.
4
+ * For example, users can create a Q App that exclusively generates marketing-related content to
5
+ * improve your marketing team's productivity or a Q App for writing customer emails and
6
+ * creating promotional content using a certain style of voice, tone, and branding. For more
7
+ * information on the capabilities, see <a href="https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/deploy-experience-iam-role.html#q-apps-actions">Amazon Q Apps capabilities</a> in the <i>Amazon Q Business User
8
+ * Guide</i>. </p>
9
+ * <p>For an overview of the Amazon Q App APIs, see <a href="https://docs.aws.amazon.com/amazonq/latest/api-reference/API_Operations_QApps.html">Overview of Amazon Q Apps API
10
+ * operations</a>.</p>
11
+ * <p>For information about the IAM access control permissions you need to use
12
+ * the Amazon Q Apps API, see <a href="https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/deploy-experience-iam-role.html">
13
+ * IAM role for the Amazon Q Business web experience including Amazon Q Apps</a> in
14
+ * the <i>Amazon Q Business User Guide</i>.</p>
16
15
  *
17
16
  * @packageDocumentation
18
17
  */