@aws-sdk/client-qapps 3.612.0 → 3.613.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.
@@ -78,6 +78,18 @@ declare const AssociateLibraryItemReviewCommand_base: {
78
78
  * <p>Base exception class for all service exceptions from QApps service.</p>
79
79
  *
80
80
  * @public
81
+ * @example Increase the rating counter by 1 for the related app for this user
82
+ * ```javascript
83
+ * //
84
+ * const input = {
85
+ * "instanceId": "0b95c9c4-89cc-4aa8-9aae-aa91cbec699f",
86
+ * "libraryItemId": "cb9ecf72-8563-450d-9db9-994f98297316"
87
+ * };
88
+ * const command = new AssociateLibraryItemReviewCommand(input);
89
+ * await client.send(command);
90
+ * // example id: example-1
91
+ * ```
92
+ *
81
93
  */
82
94
  export declare class AssociateLibraryItemReviewCommand extends AssociateLibraryItemReviewCommand_base {
83
95
  }
@@ -80,6 +80,18 @@ declare const AssociateQAppWithUserCommand_base: {
80
80
  * <p>Base exception class for all service exceptions from QApps service.</p>
81
81
  *
82
82
  * @public
83
+ * @example Links an Amazon Q App to the invoker's list of apps
84
+ * ```javascript
85
+ * //
86
+ * const input = {
87
+ * "appId": "393e77fb-0a30-4f47-ad30-75d71aeaed8a",
88
+ * "instanceId": "0b95c9c4-89cc-4aa8-9aae-aa91cbec699f"
89
+ * };
90
+ * const command = new AssociateQAppWithUserCommand(input);
91
+ * await client.send(command);
92
+ * // example id: example-1
93
+ * ```
94
+ *
83
95
  */
84
96
  export declare class AssociateQAppWithUserCommand extends AssociateQAppWithUserCommand_base {
85
97
  }
@@ -90,6 +90,33 @@ declare const CreateLibraryItemCommand_base: {
90
90
  * <p>Base exception class for all service exceptions from QApps service.</p>
91
91
  *
92
92
  * @public
93
+ * @example Create a Library Item
94
+ * ```javascript
95
+ * //
96
+ * const input = {
97
+ * "appId": "7a11f34b-42d4-4bc8-b668-ae4a788dae1e",
98
+ * "appVersion": 6,
99
+ * "categories": [
100
+ * "9c871ed4-1c41-4065-aefe-321cd4b61cf8"
101
+ * ],
102
+ * "instanceId": "0b95c9c4-89cc-4aa8-9aae-aa91cbec699f"
103
+ * };
104
+ * const command = new CreateLibraryItemCommand(input);
105
+ * const response = await client.send(command);
106
+ * /* response ==
107
+ * {
108
+ * "createdAt": "2024-05-21T23:17:27.350Z",
109
+ * "createdBy": "a841e300-40c1-7062-fa34-5b46dadbbaac",
110
+ * "libraryItemId": "cb9ecf72-8563-450d-9db9-994f98297316",
111
+ * "ratingCount": 0,
112
+ * "status": "PUBLISHED",
113
+ * "updatedAt": "2024-05-21T23:17:27.350Z",
114
+ * "updatedBy": "a841e300-40c1-7062-fa34-5b46dadbbaac"
115
+ * }
116
+ * *\/
117
+ * // example id: example-1
118
+ * ```
119
+ *
93
120
  */
94
121
  export declare class CreateLibraryItemCommand extends CreateLibraryItemCommand_base {
95
122
  }
@@ -220,6 +220,55 @@ declare const CreateQAppCommand_base: {
220
220
  * <p>Base exception class for all service exceptions from QApps service.</p>
221
221
  *
222
222
  * @public
223
+ * @example A basic application with 1 text input card and 1 output card
224
+ * ```javascript
225
+ * //
226
+ * const input = {
227
+ * "appDefinition": {
228
+ * "cards": [
229
+ * {
230
+ * "textInput": {
231
+ * "type": "text-input",
232
+ * "id": "4cf94d96-8819-45c2-98cc-58c56b35c72f",
233
+ * "title": "Color Base"
234
+ * }
235
+ * },
236
+ * {
237
+ * "qQuery": {
238
+ * "type": "q-query",
239
+ * "id": "18870b94-1e63-40e0-8c12-669c90ac5acc",
240
+ * "prompt": "Recommend me a list of colors that go well with @4cf94d96-8819-45c2-98cc-58c56b35c72f",
241
+ * "title": "Recommended Palette"
242
+ * }
243
+ * }
244
+ * ],
245
+ * "initialPrompt": "Create an app that recommend a list of colors based on input."
246
+ * },
247
+ * "instanceId": "0b95c9c4-89cc-4aa8-9aae-aa91cbec699f",
248
+ * "title": "Color Palette Generator"
249
+ * };
250
+ * const command = new CreateQAppCommand(input);
251
+ * const response = await client.send(command);
252
+ * /* response ==
253
+ * {
254
+ * "appArn": "arn:aws:qapps:us-west-2:123456789012:app/7212ff04-de7b-4831-bd80-45d6975ba1b0",
255
+ * "appId": "7212ff04-de7b-4831-bd80-45d6975ba1b0",
256
+ * "appVersion": 1,
257
+ * "createdAt": "2024-05-14T00:11:54.232Z",
258
+ * "createdBy": "a841e300-40c1-7062-fa34-5b46dadbbaac",
259
+ * "initialPrompt": "Create an app that recommend a list of colors based on input.",
260
+ * "requiredCapabilities": [
261
+ * "CreatorMode"
262
+ * ],
263
+ * "status": "DRAFT",
264
+ * "title": "Color Palette Generator",
265
+ * "updatedAt": "2024-05-14T00:13:26.168Z",
266
+ * "updatedBy": "a841e300-40c1-7062-fa34-5b46dadbbaac"
267
+ * }
268
+ * *\/
269
+ * // example id: example-1
270
+ * ```
271
+ *
223
272
  */
224
273
  export declare class CreateQAppCommand extends CreateQAppCommand_base {
225
274
  }
@@ -78,6 +78,18 @@ declare const DeleteLibraryItemCommand_base: {
78
78
  * <p>Base exception class for all service exceptions from QApps service.</p>
79
79
  *
80
80
  * @public
81
+ * @example Delete a library item
82
+ * ```javascript
83
+ * //
84
+ * const input = {
85
+ * "instanceId": "3642ba81-344c-42fd-a480-9119a5a5f26b",
86
+ * "libraryItemId": "72088fd4-78b6-43da-bfb8-8621323c3cfb"
87
+ * };
88
+ * const command = new DeleteLibraryItemCommand(input);
89
+ * await client.send(command);
90
+ * // example id: example-1
91
+ * ```
92
+ *
81
93
  */
82
94
  export declare class DeleteLibraryItemCommand extends DeleteLibraryItemCommand_base {
83
95
  }
@@ -73,6 +73,18 @@ declare const DeleteQAppCommand_base: {
73
73
  * <p>Base exception class for all service exceptions from QApps service.</p>
74
74
  *
75
75
  * @public
76
+ * @example Delete an Amazon Q App
77
+ * ```javascript
78
+ * //
79
+ * const input = {
80
+ * "appId": "393e77fb-0a30-4f47-ad30-75d71aeaed8a",
81
+ * "instanceId": "0b95c9c4-89cc-4aa8-9aae-aa91cbec699f"
82
+ * };
83
+ * const command = new DeleteQAppCommand(input);
84
+ * await client.send(command);
85
+ * // example id: example-1
86
+ * ```
87
+ *
76
88
  */
77
89
  export declare class DeleteQAppCommand extends DeleteQAppCommand_base {
78
90
  }
@@ -77,6 +77,18 @@ declare const DisassociateLibraryItemReviewCommand_base: {
77
77
  * <p>Base exception class for all service exceptions from QApps service.</p>
78
78
  *
79
79
  * @public
80
+ * @example Decrease the rating counter by 1 for the related app for this user
81
+ * ```javascript
82
+ * //
83
+ * const input = {
84
+ * "instanceId": "0b95c9c4-89cc-4aa8-9aae-aa91cbec699f",
85
+ * "libraryItemId": "cb9ecf72-8563-450d-9db9-994f98297316"
86
+ * };
87
+ * const command = new DisassociateLibraryItemReviewCommand(input);
88
+ * await client.send(command);
89
+ * // example id: example-1
90
+ * ```
91
+ *
80
92
  */
81
93
  export declare class DisassociateLibraryItemReviewCommand extends DisassociateLibraryItemReviewCommand_base {
82
94
  }
@@ -74,6 +74,18 @@ declare const DisassociateQAppFromUserCommand_base: {
74
74
  * <p>Base exception class for all service exceptions from QApps service.</p>
75
75
  *
76
76
  * @public
77
+ * @example Unlinks an Amazon Q App from the invoker's list of apps
78
+ * ```javascript
79
+ * //
80
+ * const input = {
81
+ * "appId": "393e77fb-0a30-4f47-ad30-75d71aeaed8a",
82
+ * "instanceId": "0b95c9c4-89cc-4aa8-9aae-aa91cbec699f"
83
+ * };
84
+ * const command = new DisassociateQAppFromUserCommand(input);
85
+ * await client.send(command);
86
+ * // example id: example-1
87
+ * ```
88
+ *
77
89
  */
78
90
  export declare class DisassociateQAppFromUserCommand extends DisassociateQAppFromUserCommand_base {
79
91
  }
@@ -93,6 +93,47 @@ declare const GetLibraryItemCommand_base: {
93
93
  * <p>Base exception class for all service exceptions from QApps service.</p>
94
94
  *
95
95
  * @public
96
+ * @example Retrieve a library item
97
+ * ```javascript
98
+ * //
99
+ * const input = {
100
+ * "instanceId": "0b95c9c4-89cc-4aa8-9aae-aa91cbec699f",
101
+ * "libraryItemId": "18cbebaa-196a-4aa5-a840-88d548e07f8f"
102
+ * };
103
+ * const command = new GetLibraryItemCommand(input);
104
+ * const response = await client.send(command);
105
+ * /* response ==
106
+ * {
107
+ * "appId": "0b95c9c4-89cc-4aa8-9aae-aa91cbec699f",
108
+ * "appVersion": 1,
109
+ * "categories": [
110
+ * {
111
+ * "id": "9c871ed4-1c41-4065-aefe-321cd4b61cf8",
112
+ * "title": "HR"
113
+ * },
114
+ * {
115
+ * "id": "fdc4b483-c4e2-44c9-b4b2-6c850bbdb579",
116
+ * "title": "General"
117
+ * },
118
+ * {
119
+ * "id": "c1c4e374-118c-446f-81fb-cba6225d88da",
120
+ * "title": "IT"
121
+ * }
122
+ * ],
123
+ * "createdAt": "2024-05-08T16:09:56.080Z",
124
+ * "createdBy": "a841e300-40c1-7062-fa34-5b46dadbbaac",
125
+ * "isRatedByUser": false,
126
+ * "libraryItemId": "18cbebaa-196a-4aa5-a840-88d548e07f8f",
127
+ * "ratingCount": 0,
128
+ * "status": "PUBLISHED",
129
+ * "updatedAt": "2024-05-08T16:09:56.080Z",
130
+ * "updatedBy": "a841e300-40c1-7062-fa34-5b46dadbbaac",
131
+ * "userCount": 1
132
+ * }
133
+ * *\/
134
+ * // example id: example-1
135
+ * ```
136
+ *
96
137
  */
97
138
  export declare class GetLibraryItemCommand extends GetLibraryItemCommand_base {
98
139
  }
@@ -219,6 +219,56 @@ declare const GetQAppCommand_base: {
219
219
  * <p>Base exception class for all service exceptions from QApps service.</p>
220
220
  *
221
221
  * @public
222
+ * @example A basic application with 1 text input card and 1 output card
223
+ * ```javascript
224
+ * //
225
+ * const input = {
226
+ * "appId": "3d110749-efc3-427c-87e8-15e966e5c168",
227
+ * "instanceId": "0b95c9c4-89cc-4aa8-9aae-aa91cbec699f"
228
+ * };
229
+ * const command = new GetQAppCommand(input);
230
+ * const response = await client.send(command);
231
+ * /* response ==
232
+ * {
233
+ * "appArn": "arn:aws:qapps:us-west-2:123456789012:app/7212ff04-de7b-4831-bd80-45d6975ba1b0",
234
+ * "appDefinition": {
235
+ * "appDefinitionVersion": "1",
236
+ * "cards": [
237
+ * {
238
+ * "textInput": {
239
+ * "type": "text-input",
240
+ * "dependencies": [],
241
+ * "id": "4cf94d96-8819-45c2-98cc-58c56b35c72f",
242
+ * "title": "Color Base"
243
+ * }
244
+ * },
245
+ * {
246
+ * "qQuery": {
247
+ * "type": "q-query",
248
+ * "dependencies": [
249
+ * "91e4513d-6981-454a-9329-329c9302eef4"
250
+ * ],
251
+ * "id": "18870b94-1e63-40e0-8c12-669c90ac5acc",
252
+ * "outputSource": "llm",
253
+ * "prompt": "Recommend me a list of colors that go well with @91e4513d-6981-454a-9329-329c9302eef4 ",
254
+ * "title": "Recommended Palette"
255
+ * }
256
+ * }
257
+ * ]
258
+ * },
259
+ * "appId": "7212ff04-de7b-4831-bd80-45d6975ba1b0",
260
+ * "appVersion": 1,
261
+ * "createdAt": "2024-05-14T00:11:54.232Z",
262
+ * "createdBy": "a841e300-40c1-7062-fa34-5b46dadbbaac",
263
+ * "status": "DRAFT",
264
+ * "title": "Color Palette Generator",
265
+ * "updatedAt": "2024-05-14T00:13:26.168Z",
266
+ * "updatedBy": "a841e300-40c1-7062-fa34-5b46dadbbaac"
267
+ * }
268
+ * *\/
269
+ * // example id: example-1
270
+ * ```
271
+ *
222
272
  */
223
273
  export declare class GetQAppCommand extends GetQAppCommand_base {
224
274
  }
@@ -87,6 +87,35 @@ declare const GetQAppSessionCommand_base: {
87
87
  * <p>Base exception class for all service exceptions from QApps service.</p>
88
88
  *
89
89
  * @public
90
+ * @example Retrieves an existing session for an Amazon Q App
91
+ * ```javascript
92
+ * //
93
+ * const input = {
94
+ * "instanceId": "288ae830-1df2-4871-b6c0-4314d74dadef",
95
+ * "sessionId": "1fca878e-64c5-4dc4-b1d9-c93effed4e82"
96
+ * };
97
+ * const command = new GetQAppSessionCommand(input);
98
+ * const response = await client.send(command);
99
+ * /* response ==
100
+ * {
101
+ * "cardStatus": {
102
+ * "1e6caeac-b481-45ff-a082-8b9a4a0b72e8": {
103
+ * "currentState": "COMPLETED",
104
+ * "currentValue": "Earth's circumference is 24,901 miles"
105
+ * },
106
+ * "6fb5b404-3b7b-48a4-8a8b-56406922a606": {
107
+ * "currentState": "COMPLETED",
108
+ * "currentValue": "What is the circumference of Earth?"
109
+ * }
110
+ * },
111
+ * "sessionArn": "arn:aws:qapps:us-west-2:0123456789012:application/a929ecd6-5765-4ec7-bd3e-2ca90098b18e/qapp/65e7dce7-226a-47f9-b689-22850becef89/session/1fca878e-64c5-4dc4-b1d9-c93effed4e82",
112
+ * "sessionId": "1fca878e-64c5-4dc4-b1d9-c93effed4e82",
113
+ * "status": "COMPLETED"
114
+ * }
115
+ * *\/
116
+ * // example id: example-1
117
+ * ```
118
+ *
90
119
  */
91
120
  export declare class GetQAppSessionCommand extends GetQAppSessionCommand_base {
92
121
  }
@@ -92,6 +92,49 @@ declare const ImportDocumentCommand_base: {
92
92
  * <p>Base exception class for all service exceptions from QApps service.</p>
93
93
  *
94
94
  * @public
95
+ * @example Upload a file to a specific session
96
+ * ```javascript
97
+ * //
98
+ * const input = {
99
+ * "appId": "4263767c-d889-4cb2-a8f6-8b649bc66af0",
100
+ * "cardId": "82f69028-22a9-4bea-8727-0eabf58e9fed",
101
+ * "fileContentsBase64": "data:text/plain;base64,SomeFileEncodedInBase64",
102
+ * "fileName": "myFile.txt",
103
+ * "instanceId": "0b95c9c4-89cc-4aa8-9aae-aa91cbec699f",
104
+ * "scope": "SESSION",
105
+ * "sessionId": "4f0e5b87-9d38-41cd-9eb4-ebce2f2917cc"
106
+ * };
107
+ * const command = new ImportDocumentCommand(input);
108
+ * const response = await client.send(command);
109
+ * /* response ==
110
+ * {
111
+ * "fileId": "412aa1b4-341c-45af-936d-da52f8a1a3b4"
112
+ * }
113
+ * *\/
114
+ * // example id: example-1
115
+ * ```
116
+ *
117
+ * @example Upload a file into a application
118
+ * ```javascript
119
+ * //
120
+ * const input = {
121
+ * "appId": "4263767c-d889-4cb2-a8f6-8b649bc66af0",
122
+ * "cardId": "7a11f34b-42d4-4bc8-b668-ae4a788dae1e",
123
+ * "fileContentsBase64": "data:text/plain;base64,SomeFileEncodedInBase64",
124
+ * "fileName": "anApplicationFile.txt",
125
+ * "instanceId": "0b95c9c4-89cc-4aa8-9aae-aa91cbec699f",
126
+ * "scope": "APPLICATION"
127
+ * };
128
+ * const command = new ImportDocumentCommand(input);
129
+ * const response = await client.send(command);
130
+ * /* response ==
131
+ * {
132
+ * "fileId": "bc1a0cc9-076a-4e82-9a6c-f4d2d8a22489"
133
+ * }
134
+ * *\/
135
+ * // example id: example-2
136
+ * ```
137
+ *
95
138
  */
96
139
  export declare class ImportDocumentCommand extends ImportDocumentCommand_base {
97
140
  }
@@ -98,6 +98,86 @@ declare const ListLibraryItemsCommand_base: {
98
98
  * <p>Base exception class for all service exceptions from QApps service.</p>
99
99
  *
100
100
  * @public
101
+ * @example List at most 3 library items for this instance
102
+ * ```javascript
103
+ * //
104
+ * const input = {
105
+ * "instanceId": "0b95c9c4-89cc-4aa8-9aae-aa91cbec699f",
106
+ * "limit": 3
107
+ * };
108
+ * const command = new ListLibraryItemsCommand(input);
109
+ * const response = await client.send(command);
110
+ * /* response ==
111
+ * {
112
+ * "libraryItems": [
113
+ * {
114
+ * "appId": "7a11f34b-42d4-4bc8-b668-ae4a788dae1e",
115
+ * "appVersion": 6,
116
+ * "categories": [
117
+ * {
118
+ * "id": "9c871ed4-1c41-4065-aefe-321cd4b61cf8",
119
+ * "title": "HR"
120
+ * },
121
+ * {
122
+ * "id": "c1c4e374-118c-446f-81fb-cba6225d88da",
123
+ * "title": "IT"
124
+ * }
125
+ * ],
126
+ * "createdAt": "2024-05-21T23:17:27.350Z",
127
+ * "createdBy": "a841e300-40c1-7062-fa34-5b46dadbbaac",
128
+ * "isRatedByUser": true,
129
+ * "libraryItemId": "cb9ecf72-8563-450d-9db9-994f98297316",
130
+ * "ratingCount": 3,
131
+ * "status": "PUBLISHED",
132
+ * "updatedAt": "2024-05-21T23:17:27.350Z",
133
+ * "updatedBy": "a841e300-40c1-7062-fa34-5b46dadbbaac",
134
+ * "userCount": 5
135
+ * },
136
+ * {
137
+ * "appId": "201272ac-d474-4a97-991c-5520dae04026",
138
+ * "appVersion": 1,
139
+ * "categories": [
140
+ * {
141
+ * "id": "fdc4b483-c4e2-44c9-b4b2-6c850bbdb579",
142
+ * "title": "General"
143
+ * }
144
+ * ],
145
+ * "createdAt": "2024-05-08T16:09:56.080Z",
146
+ * "createdBy": "a841e300-40c1-7062-fa34-5b46dadbbaac",
147
+ * "isRatedByUser": false,
148
+ * "libraryItemId": "18cbebaa-196a-4aa5-a840-88d548e07f8f",
149
+ * "ratingCount": 5,
150
+ * "status": "PUBLISHED",
151
+ * "updatedAt": "2024-05-08T16:09:56.080Z",
152
+ * "updatedBy": "a841e300-40c1-7062-fa34-5b46dadbbaac",
153
+ * "userCount": 8
154
+ * },
155
+ * {
156
+ * "appId": "1802f57f-079a-4b5b-839a-79bbe2e21b3c",
157
+ * "appVersion": 1,
158
+ * "categories": [
159
+ * {
160
+ * "id": "fdc4b483-c4e2-44c9-b4b2-6c850bbdb579",
161
+ * "title": "General"
162
+ * }
163
+ * ],
164
+ * "createdAt": "2024-05-07T22:57:59.327Z",
165
+ * "createdBy": "a841e300-40c1-7062-fa34-5b46dadbbaac",
166
+ * "isRatedByUser": false,
167
+ * "libraryItemId": "549abfe0-f5c4-45a2-bb9b-c05987a49c6d",
168
+ * "ratingCount": 8,
169
+ * "status": "PUBLISHED",
170
+ * "updatedAt": "2024-05-07T22:57:59.327Z",
171
+ * "updatedBy": "a841e300-40c1-7062-fa34-5b46dadbbaac",
172
+ * "userCount": 12
173
+ * }
174
+ * ],
175
+ * "nextToken": "YW5vdGhlclRva2VuIQ=="
176
+ * }
177
+ * *\/
178
+ * // example id: example-1
179
+ * ```
180
+ *
101
181
  */
102
182
  export declare class ListLibraryItemsCommand extends ListLibraryItemsCommand_base {
103
183
  }
@@ -86,6 +86,93 @@ declare const ListQAppsCommand_base: {
86
86
  * <p>Base exception class for all service exceptions from QApps service.</p>
87
87
  *
88
88
  * @public
89
+ * @example List at most 3 Amazon Q Apps in an Q Business application
90
+ * ```javascript
91
+ * //
92
+ * const input = {
93
+ * "instanceId": "0b95c9c4-89cc-4aa8-9aae-aa91cbec699f",
94
+ * "limit": 3
95
+ * };
96
+ * const command = new ListQAppsCommand(input);
97
+ * const response = await client.send(command);
98
+ * /* response ==
99
+ * {
100
+ * "apps": [
101
+ * {
102
+ * "appArn": "arn:aws:qapps:us-west-2:..../7b9fe303-18bb-4643-952c-bfcf9f4c427f",
103
+ * "appId": "7b9fe303-18bb-4643-952c-bfcf9f4c427f",
104
+ * "createdAt": "2024-05-21T04:09:10.401Z",
105
+ * "description": "Description 1",
106
+ * "status": "DRAFT",
107
+ * "title": "App 1"
108
+ * },
109
+ * {
110
+ * "appArn": "arn:aws:qapps:us-west-2:..../dd178fd6-ad3d-49b3-a32d-e915cf423e37",
111
+ * "appId": "dd178fd6-ad3d-49b3-a32d-e915cf423e37",
112
+ * "createdAt": "2024-05-21T04:09:10.401Z",
113
+ * "description": "Description 2",
114
+ * "status": "PUBLISHED",
115
+ * "title": "App 2"
116
+ * },
117
+ * {
118
+ * "appArn": "arn:aws:qapps:us-west-2:..../3274b744-1a13-4aad-953f-eda2e4149e6e",
119
+ * "appId": "3274b744-1a13-4aad-953f-eda2e4149e6e",
120
+ * "createdAt": "2024-05-21T04:09:10.401Z",
121
+ * "description": "Description 3",
122
+ * "status": "DRAFT",
123
+ * "title": "App 3"
124
+ * }
125
+ * ],
126
+ * "nextToken": "bXlzdGVyaW91c1BhZ2luYXRpb25Ub2tlbg=="
127
+ * }
128
+ * *\/
129
+ * // example id: example-1
130
+ * ```
131
+ *
132
+ * @example Retrieve the next page of Amazon Q Apps
133
+ * ```javascript
134
+ * //
135
+ * const input = {
136
+ * "instanceId": "0b95c9c4-89cc-4aa8-9aae-aa91cbec699f",
137
+ * "limit": 3,
138
+ * "nextToken": "bXlzdGVyaW91c1BhZ2luYXRpb25Ub2tlbg=="
139
+ * };
140
+ * const command = new ListQAppsCommand(input);
141
+ * const response = await client.send(command);
142
+ * /* response ==
143
+ * {
144
+ * "apps": [
145
+ * {
146
+ * "appArn": "arn:aws:qapps:us-west-2:..../bec8ee64-2635-41e8-aace-e1e418f4f295",
147
+ * "appId": "bec8ee64-2635-41e8-aace-e1e418f4f295",
148
+ * "createdAt": "2024-05-21T04:09:10.401Z",
149
+ * "description": "Description 4",
150
+ * "status": "PUBLISHED",
151
+ * "title": "App 4"
152
+ * },
153
+ * {
154
+ * "appArn": "arn:aws:qapps:us-west-2:..../c380a45d-bd77-45b0-a0e5-8a266c1d8bc4",
155
+ * "appId": "c380a45d-bd77-45b0-a0e5-8a266c1d8bc4",
156
+ * "createdAt": "2024-05-21T04:09:10.401Z",
157
+ * "description": "Description 5",
158
+ * "status": "PUBLISHED",
159
+ * "title": "App 5"
160
+ * },
161
+ * {
162
+ * "appArn": "arn:aws:qapps:us-west-2:..../afc4ee80-9722-4396-85a6-7aeaff52c177",
163
+ * "appId": "afc4ee80-9722-4396-85a6-7aeaff52c177",
164
+ * "createdAt": "2024-05-21T04:09:10.401Z",
165
+ * "description": "Description 6",
166
+ * "status": "PUBLISHED",
167
+ * "title": "App 6"
168
+ * }
169
+ * ],
170
+ * "nextToken": "YW5vdGhlclRva2VuIQ=="
171
+ * }
172
+ * *\/
173
+ * // example id: example-2
174
+ * ```
175
+ *
89
176
  */
90
177
  export declare class ListQAppsCommand extends ListQAppsCommand_base {
91
178
  }
@@ -73,6 +73,24 @@ declare const ListTagsForResourceCommand_base: {
73
73
  * <p>Base exception class for all service exceptions from QApps service.</p>
74
74
  *
75
75
  * @public
76
+ * @example A call to list tags for a resource
77
+ * ```javascript
78
+ * //
79
+ * const input = {
80
+ * "resourceARN": "arn:aws:qapps:us-west-2:123456789012:application/3642ba81-344c-42fd-a480-9119a5a5f26b/qapp/7212ff04-de7b-4831-bd80-45d6975ba1b0"
81
+ * };
82
+ * const command = new ListTagsForResourceCommand(input);
83
+ * const response = await client.send(command);
84
+ * /* response ==
85
+ * {
86
+ * "tags": {
87
+ * "department": "HR"
88
+ * }
89
+ * }
90
+ * *\/
91
+ * // example id: example-1
92
+ * ```
93
+ *
76
94
  */
77
95
  export declare class ListTagsForResourceCommand extends ListTagsForResourceCommand_base {
78
96
  }
@@ -95,6 +95,31 @@ declare const StartQAppSessionCommand_base: {
95
95
  * <p>Base exception class for all service exceptions from QApps service.</p>
96
96
  *
97
97
  * @public
98
+ * @example Start a session for an Amazon Q App using version 1, passing in initial values for one card
99
+ * ```javascript
100
+ * //
101
+ * const input = {
102
+ * "appId": "65e7dce7-226a-47f9-b689-22850becef89",
103
+ * "appVersion": 1,
104
+ * "initialValues": [
105
+ * {
106
+ * "value": "What is the circumference of Earth?",
107
+ * "cardId": "6fb5b404-3b7b-48a4-8a8b-56406922a606"
108
+ * }
109
+ * ],
110
+ * "instanceId": "4cc5e4c2-d2a2-4188-a114-9ca125b4aedc"
111
+ * };
112
+ * const command = new StartQAppSessionCommand(input);
113
+ * const response = await client.send(command);
114
+ * /* response ==
115
+ * {
116
+ * "sessionArn": "arn:aws:qapps:us-west-2:0123456789012:application/a929ecd6-5765-4ec7-bd3e-2ca90098b18e/qapp/65e7dce7-226a-47f9-b689-22850becef89/session/1fca878e-64c5-4dc4-b1d9-c93effed4e82",
117
+ * "sessionId": "1fca878e-64c5-4dc4-b1d9-c93effed4e82"
118
+ * }
119
+ * *\/
120
+ * // example id: example-1
121
+ * ```
122
+ *
98
123
  */
99
124
  export declare class StartQAppSessionCommand extends StartQAppSessionCommand_base {
100
125
  }
@@ -76,6 +76,20 @@ declare const TagResourceCommand_base: {
76
76
  * <p>Base exception class for all service exceptions from QApps service.</p>
77
77
  *
78
78
  * @public
79
+ * @example A call to tag a resource
80
+ * ```javascript
81
+ * //
82
+ * const input = {
83
+ * "resourceARN": "arn:aws:qapps:us-west-2:123456789012:application/3642ba81-344c-42fd-a480-9119a5a5f26b/qapp/7212ff04-de7b-4831-bd80-45d6975ba1b0",
84
+ * "tags": {
85
+ * "department": "HR"
86
+ * }
87
+ * };
88
+ * const command = new TagResourceCommand(input);
89
+ * await client.send(command);
90
+ * // example id: example-1
91
+ * ```
92
+ *
79
93
  */
80
94
  export declare class TagResourceCommand extends TagResourceCommand_base {
81
95
  }
@@ -72,6 +72,20 @@ declare const UntagResourceCommand_base: {
72
72
  * <p>Base exception class for all service exceptions from QApps service.</p>
73
73
  *
74
74
  * @public
75
+ * @example A call to untag a resource
76
+ * ```javascript
77
+ * //
78
+ * const input = {
79
+ * "resourceARN": "arn:aws:qapps:us-west-2:123456789012:application/3642ba81-344c-42fd-a480-9119a5a5f26b/qapp/7212ff04-de7b-4831-bd80-45d6975ba1b0",
80
+ * "tagKeys": [
81
+ * "department"
82
+ * ]
83
+ * };
84
+ * const command = new UntagResourceCommand(input);
85
+ * await client.send(command);
86
+ * // example id: example-1
87
+ * ```
88
+ *
75
89
  */
76
90
  export declare class UntagResourceCommand extends UntagResourceCommand_base {
77
91
  }
@@ -95,6 +95,46 @@ declare const UpdateLibraryItemCommand_base: {
95
95
  * <p>Base exception class for all service exceptions from QApps service.</p>
96
96
  *
97
97
  * @public
98
+ * @example Sets the status of a library item to DISABLED
99
+ * ```javascript
100
+ * //
101
+ * const input = {
102
+ * "instanceId": "0b95c9c4-89cc-4aa8-9aae-aa91cbec699f",
103
+ * "libraryItemId": "cb9ecf72-8563-450d-9db9-994f98297316",
104
+ * "status": "DISABLED"
105
+ * };
106
+ * const command = new UpdateLibraryItemCommand(input);
107
+ * const response = await client.send(command);
108
+ * /* response ==
109
+ * {
110
+ * "appId": "7a11f34b-42d4-4bc8-b668-ae4a788dae1e",
111
+ * "appVersion": 6,
112
+ * "categories": [
113
+ * {
114
+ * "id": "9c871ed4-1c41-4065-aefe-321cd4b61cf8",
115
+ * "title": "HR"
116
+ * },
117
+ * {
118
+ * "id": "fdc4b483-c4e2-44c9-b4b2-6c850bbdb579",
119
+ * "title": "General"
120
+ * },
121
+ * {
122
+ * "id": "c1c4e374-118c-446f-81fb-cba6225d88da",
123
+ * "title": "IT"
124
+ * }
125
+ * ],
126
+ * "createdAt": "2024-05-21T23:17:27.350Z",
127
+ * "createdBy": "a841e300-40c1-7062-fa34-5b46dadbbaac",
128
+ * "libraryItemId": "cb9ecf72-8563-450d-9db9-994f98297316",
129
+ * "ratingCount": 24,
130
+ * "status": "DISABLED",
131
+ * "updatedAt": "2024-05-28T19:43:48.577Z",
132
+ * "updatedBy": "a841e300-40c1-7062-fa34-5b46dadbbaac"
133
+ * }
134
+ * *\/
135
+ * // example id: example-1
136
+ * ```
137
+ *
98
138
  */
99
139
  export declare class UpdateLibraryItemCommand extends UpdateLibraryItemCommand_base {
100
140
  }
@@ -211,6 +211,75 @@ declare const UpdateQAppCommand_base: {
211
211
  * <p>Base exception class for all service exceptions from QApps service.</p>
212
212
  *
213
213
  * @public
214
+ * @example Updating the title of an app
215
+ * ```javascript
216
+ * //
217
+ * const input = {
218
+ * "appId": "7212ff04-de7b-4831-bd80-45d6975ba1b0",
219
+ * "instanceId": "0b95c9c4-89cc-4aa8-9aae-aa91cbec699f",
220
+ * "title": "This is the new title"
221
+ * };
222
+ * const command = new UpdateQAppCommand(input);
223
+ * const response = await client.send(command);
224
+ * /* response ==
225
+ * {
226
+ * "appArn": "arn:aws:qapps:us-west-2:123456789012:app/7212ff04-de7b-4831-bd80-45d6975ba1b0",
227
+ * "appId": "7212ff04-de7b-4831-bd80-45d6975ba1b0",
228
+ * "appVersion": 2,
229
+ * "createdAt": "2024-05-14T00:11:54.232Z",
230
+ * "createdBy": "a841e300-40c1-7062-fa34-5b46dadbbaac",
231
+ * "requiredCapabilities": [
232
+ * "CreatorMode"
233
+ * ],
234
+ * "status": "DRAFT",
235
+ * "title": "This is the new title",
236
+ * "updatedAt": "2024-05-17T23:15:08.571Z",
237
+ * "updatedBy": "a841e300-40c1-7062-fa34-5b46dadbbaac"
238
+ * }
239
+ * *\/
240
+ * // example id: example-1
241
+ * ```
242
+ *
243
+ * @example Updating the app so it has a single q-query card
244
+ * ```javascript
245
+ * //
246
+ * const input = {
247
+ * "appDefinition": {
248
+ * "cards": [
249
+ * {
250
+ * "qQuery": {
251
+ * "type": "q-query",
252
+ * "id": "18870b94-1e63-40e0-8c12-669c90ac5acc",
253
+ * "prompt": "Recommend me an itinerary for a trip",
254
+ * "title": "Trip Ideas"
255
+ * }
256
+ * }
257
+ * ]
258
+ * },
259
+ * "appId": "7212ff04-de7b-4831-bd80-45d6975ba1b0",
260
+ * "instanceId": "0b95c9c4-89cc-4aa8-9aae-aa91cbec699f"
261
+ * };
262
+ * const command = new UpdateQAppCommand(input);
263
+ * const response = await client.send(command);
264
+ * /* response ==
265
+ * {
266
+ * "appArn": "arn:aws:qapps:us-west-2:123456789012:app/7212ff04-de7b-4831-bd80-45d6975ba1b0",
267
+ * "appId": "7212ff04-de7b-4831-bd80-45d6975ba1b0",
268
+ * "appVersion": 99,
269
+ * "createdAt": "2024-05-14T00:11:54.232Z",
270
+ * "createdBy": "a841e300-40c1-7062-fa34-5b46dadbbaac",
271
+ * "requiredCapabilities": [
272
+ * "CreatorMode"
273
+ * ],
274
+ * "status": "DRAFT",
275
+ * "title": "Previous Title Stays the Same",
276
+ * "updatedAt": "2024-05-17T23:15:08.571Z",
277
+ * "updatedBy": "a841e300-40c1-7062-fa34-5b46dadbbaac"
278
+ * }
279
+ * *\/
280
+ * // example id: example-2
281
+ * ```
282
+ *
214
283
  */
215
284
  export declare class UpdateQAppCommand extends UpdateQAppCommand_base {
216
285
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-qapps",
3
3
  "description": "AWS SDK for JavaScript Qapps Client for Node.js, Browser and React Native",
4
- "version": "3.612.0",
4
+ "version": "3.613.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,10 +20,10 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.609.0",
24
- "@aws-sdk/client-sts": "3.609.0",
23
+ "@aws-sdk/client-sso-oidc": "3.613.0",
24
+ "@aws-sdk/client-sts": "3.613.0",
25
25
  "@aws-sdk/core": "3.609.0",
26
- "@aws-sdk/credential-provider-node": "3.609.0",
26
+ "@aws-sdk/credential-provider-node": "3.613.0",
27
27
  "@aws-sdk/middleware-host-header": "3.609.0",
28
28
  "@aws-sdk/middleware-logger": "3.609.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.609.0",