@aws-sdk/client-qapps 3.645.0 → 3.648.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 (32) hide show
  1. package/README.md +18 -5
  2. package/dist-cjs/QApps.js +2 -0
  3. package/dist-cjs/commands/UpdateLibraryItemMetadataCommand.js +28 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/models/models_0.js +16 -16
  6. package/dist-cjs/protocols/Aws_restJson1.js +36 -4
  7. package/dist-es/QApps.js +2 -0
  8. package/dist-es/commands/UpdateLibraryItemMetadataCommand.js +24 -0
  9. package/dist-es/commands/index.js +1 -0
  10. package/dist-es/models/models_0.js +14 -14
  11. package/dist-es/protocols/Aws_restJson1.js +33 -3
  12. package/dist-types/QApps.d.ts +17 -5
  13. package/dist-types/QAppsClient.d.ts +13 -7
  14. package/dist-types/commands/AssociateLibraryItemReviewCommand.d.ts +4 -0
  15. package/dist-types/commands/CreateLibraryItemCommand.d.ts +1 -0
  16. package/dist-types/commands/DisassociateLibraryItemReviewCommand.d.ts +4 -0
  17. package/dist-types/commands/GetLibraryItemCommand.d.ts +1 -0
  18. package/dist-types/commands/ListLibraryItemsCommand.d.ts +1 -0
  19. package/dist-types/commands/ListQAppsCommand.d.ts +1 -0
  20. package/dist-types/commands/UpdateLibraryItemCommand.d.ts +6 -1
  21. package/dist-types/commands/UpdateLibraryItemMetadataCommand.d.ts +96 -0
  22. package/dist-types/commands/index.d.ts +1 -0
  23. package/dist-types/index.d.ts +10 -5
  24. package/dist-types/models/models_0.d.ts +68 -23
  25. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  26. package/dist-types/ts3.4/QApps.d.ts +17 -0
  27. package/dist-types/ts3.4/QAppsClient.d.ts +6 -0
  28. package/dist-types/ts3.4/commands/UpdateLibraryItemMetadataCommand.d.ts +36 -0
  29. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  30. package/dist-types/ts3.4/models/models_0.d.ts +17 -7
  31. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  32. package/package.json +1 -1
package/README.md CHANGED
@@ -8,13 +8,18 @@ AWS SDK for JavaScript QApps Client for Node.js, Browser and React Native.
8
8
 
9
9
  <p>The Amazon Q Apps feature capability within Amazon Q Business allows web experience
10
10
  users to create lightweight, purpose-built AI apps to fulfill specific tasks from
11
- within their web experience. For example, users can create an Q Appthat exclusively
11
+ within their web experience. For example, users can create a Q App that exclusively
12
12
  generates marketing-related content to improve your marketing team's productivity or a
13
- Q App for marketing content-generation like writing customer emails and creating
14
- promotional content using a certain style of voice, tone, and branding.
15
- For more information, see <a href="https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/purpose-built-qapps.html">Amazon Q App</a> in the
16
- <i>Amazon Q Business User Guide</i>.
13
+ Q App for writing customer emails and creating promotional content using a certain
14
+ style of voice, tone, and branding. For more information on the capabilities, see
15
+ <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>.
17
16
  </p>
17
+ <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
18
+ Amazon Q Apps API operations</a>.</p>
19
+ <p>For information about the IAM access control permissions you need to
20
+ use the Amazon Q Apps API, see <a href="https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/deploy-experience-iam-role.html">
21
+ IAM role for the Amazon Q Business web experience including Amazon Q Apps</a> in the
22
+ <i>Amazon Q Business User Guide</i>.</p>
18
23
 
19
24
  ## Installing
20
25
 
@@ -378,6 +383,14 @@ UpdateLibraryItem
378
383
 
379
384
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qapps/command/UpdateLibraryItemCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/UpdateLibraryItemCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/UpdateLibraryItemCommandOutput/)
380
385
 
386
+ </details>
387
+ <details>
388
+ <summary>
389
+ UpdateLibraryItemMetadata
390
+ </summary>
391
+
392
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qapps/command/UpdateLibraryItemMetadataCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/UpdateLibraryItemMetadataCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/UpdateLibraryItemMetadataCommandOutput/)
393
+
381
394
  </details>
382
395
  <details>
383
396
  <summary>
package/dist-cjs/QApps.js CHANGED
@@ -23,6 +23,7 @@ const StopQAppSessionCommand_1 = require("./commands/StopQAppSessionCommand");
23
23
  const TagResourceCommand_1 = require("./commands/TagResourceCommand");
24
24
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
25
25
  const UpdateLibraryItemCommand_1 = require("./commands/UpdateLibraryItemCommand");
26
+ const UpdateLibraryItemMetadataCommand_1 = require("./commands/UpdateLibraryItemMetadataCommand");
26
27
  const UpdateQAppCommand_1 = require("./commands/UpdateQAppCommand");
27
28
  const UpdateQAppSessionCommand_1 = require("./commands/UpdateQAppSessionCommand");
28
29
  const QAppsClient_1 = require("./QAppsClient");
@@ -48,6 +49,7 @@ const commands = {
48
49
  TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
49
50
  UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
50
51
  UpdateLibraryItemCommand: UpdateLibraryItemCommand_1.UpdateLibraryItemCommand,
52
+ UpdateLibraryItemMetadataCommand: UpdateLibraryItemMetadataCommand_1.UpdateLibraryItemMetadataCommand,
51
53
  UpdateQAppCommand: UpdateQAppCommand_1.UpdateQAppCommand,
52
54
  UpdateQAppSessionCommand: UpdateQAppSessionCommand_1.UpdateQAppSessionCommand,
53
55
  };
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateLibraryItemMetadataCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class UpdateLibraryItemMetadataCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("QAppsService", "UpdateLibraryItemMetadata", {})
22
+ .n("QAppsClient", "UpdateLibraryItemMetadataCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_UpdateLibraryItemMetadataCommand)
25
+ .de(Aws_restJson1_1.de_UpdateLibraryItemMetadataCommand)
26
+ .build() {
27
+ }
28
+ exports.UpdateLibraryItemMetadataCommand = UpdateLibraryItemMetadataCommand;
@@ -22,5 +22,6 @@ tslib_1.__exportStar(require("./StopQAppSessionCommand"), exports);
22
22
  tslib_1.__exportStar(require("./TagResourceCommand"), exports);
23
23
  tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
24
24
  tslib_1.__exportStar(require("./UpdateLibraryItemCommand"), exports);
25
+ tslib_1.__exportStar(require("./UpdateLibraryItemMetadataCommand"), exports);
25
26
  tslib_1.__exportStar(require("./UpdateQAppCommand"), exports);
26
27
  tslib_1.__exportStar(require("./UpdateQAppSessionCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CardInput = exports.Card = exports.PredictQAppInputOptions = exports.LibraryItemStatus = exports.DocumentScope = exports.Sender = exports.ContentTooLargeException = exports.ConflictException = exports.ExecutionStatus = exports.ValidationException = exports.UnauthorizedException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.AppStatus = exports.AppRequiredCapability = exports.CardOutputSource = exports.DocumentAttributeValue = exports.PluginType = exports.CardType = exports.AccessDeniedException = void 0;
3
+ exports.CardInput = exports.Card = exports.PredictQAppInputOptions = exports.LibraryItemStatus = exports.DocumentScope = exports.Sender = exports.ContentTooLargeException = exports.ExecutionStatus = exports.ValidationException = exports.UnauthorizedException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AppStatus = exports.AppRequiredCapability = exports.CardOutputSource = exports.DocumentAttributeValue = exports.PluginType = exports.CardType = exports.AccessDeniedException = void 0;
4
4
  const QAppsServiceException_1 = require("./QAppsServiceException");
5
5
  class AccessDeniedException extends QAppsServiceException_1.QAppsServiceException {
6
6
  constructor(opts) {
@@ -57,6 +57,21 @@ exports.AppStatus = {
57
57
  DRAFT: "DRAFT",
58
58
  PUBLISHED: "PUBLISHED",
59
59
  };
60
+ class ConflictException extends QAppsServiceException_1.QAppsServiceException {
61
+ constructor(opts) {
62
+ super({
63
+ name: "ConflictException",
64
+ $fault: "client",
65
+ ...opts,
66
+ });
67
+ this.name = "ConflictException";
68
+ this.$fault = "client";
69
+ Object.setPrototypeOf(this, ConflictException.prototype);
70
+ this.resourceId = opts.resourceId;
71
+ this.resourceType = opts.resourceType;
72
+ }
73
+ }
74
+ exports.ConflictException = ConflictException;
60
75
  class InternalServerException extends QAppsServiceException_1.QAppsServiceException {
61
76
  constructor(opts) {
62
77
  super({
@@ -154,21 +169,6 @@ exports.ExecutionStatus = {
154
169
  IN_PROGRESS: "IN_PROGRESS",
155
170
  WAITING: "WAITING",
156
171
  };
157
- class ConflictException extends QAppsServiceException_1.QAppsServiceException {
158
- constructor(opts) {
159
- super({
160
- name: "ConflictException",
161
- $fault: "client",
162
- ...opts,
163
- });
164
- this.name = "ConflictException";
165
- this.$fault = "client";
166
- Object.setPrototypeOf(this, ConflictException.prototype);
167
- this.resourceId = opts.resourceId;
168
- this.resourceType = opts.resourceType;
169
- }
170
- }
171
- exports.ConflictException = ConflictException;
172
172
  class ContentTooLargeException extends QAppsServiceException_1.QAppsServiceException {
173
173
  constructor(opts) {
174
174
  super({
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UpdateQAppSessionCommand = exports.de_UpdateQAppCommand = exports.de_UpdateLibraryItemCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopQAppSessionCommand = exports.de_StartQAppSessionCommand = exports.de_PredictQAppCommand = exports.de_ListTagsForResourceCommand = exports.de_ListQAppsCommand = exports.de_ListLibraryItemsCommand = exports.de_ImportDocumentCommand = exports.de_GetQAppSessionCommand = exports.de_GetQAppCommand = exports.de_GetLibraryItemCommand = exports.de_DisassociateQAppFromUserCommand = exports.de_DisassociateLibraryItemReviewCommand = exports.de_DeleteQAppCommand = exports.de_DeleteLibraryItemCommand = exports.de_CreateQAppCommand = exports.de_CreateLibraryItemCommand = exports.de_AssociateQAppWithUserCommand = exports.de_AssociateLibraryItemReviewCommand = exports.se_UpdateQAppSessionCommand = exports.se_UpdateQAppCommand = exports.se_UpdateLibraryItemCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopQAppSessionCommand = exports.se_StartQAppSessionCommand = exports.se_PredictQAppCommand = exports.se_ListTagsForResourceCommand = exports.se_ListQAppsCommand = exports.se_ListLibraryItemsCommand = exports.se_ImportDocumentCommand = exports.se_GetQAppSessionCommand = exports.se_GetQAppCommand = exports.se_GetLibraryItemCommand = exports.se_DisassociateQAppFromUserCommand = exports.se_DisassociateLibraryItemReviewCommand = exports.se_DeleteQAppCommand = exports.se_DeleteLibraryItemCommand = exports.se_CreateQAppCommand = exports.se_CreateLibraryItemCommand = exports.se_AssociateQAppWithUserCommand = exports.se_AssociateLibraryItemReviewCommand = void 0;
3
+ exports.de_UpdateQAppSessionCommand = exports.de_UpdateQAppCommand = exports.de_UpdateLibraryItemMetadataCommand = exports.de_UpdateLibraryItemCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopQAppSessionCommand = exports.de_StartQAppSessionCommand = exports.de_PredictQAppCommand = exports.de_ListTagsForResourceCommand = exports.de_ListQAppsCommand = exports.de_ListLibraryItemsCommand = exports.de_ImportDocumentCommand = exports.de_GetQAppSessionCommand = exports.de_GetQAppCommand = exports.de_GetLibraryItemCommand = exports.de_DisassociateQAppFromUserCommand = exports.de_DisassociateLibraryItemReviewCommand = exports.de_DeleteQAppCommand = exports.de_DeleteLibraryItemCommand = exports.de_CreateQAppCommand = exports.de_CreateLibraryItemCommand = exports.de_AssociateQAppWithUserCommand = exports.de_AssociateLibraryItemReviewCommand = exports.se_UpdateQAppSessionCommand = exports.se_UpdateQAppCommand = exports.se_UpdateLibraryItemMetadataCommand = exports.se_UpdateLibraryItemCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopQAppSessionCommand = exports.se_StartQAppSessionCommand = exports.se_PredictQAppCommand = exports.se_ListTagsForResourceCommand = exports.se_ListQAppsCommand = exports.se_ListLibraryItemsCommand = exports.se_ImportDocumentCommand = exports.se_GetQAppSessionCommand = exports.se_GetQAppCommand = exports.se_GetLibraryItemCommand = exports.se_DisassociateQAppFromUserCommand = exports.se_DisassociateLibraryItemReviewCommand = exports.se_DeleteQAppCommand = exports.se_DeleteLibraryItemCommand = exports.se_CreateQAppCommand = exports.se_CreateLibraryItemCommand = exports.se_AssociateQAppWithUserCommand = exports.se_AssociateLibraryItemReviewCommand = void 0;
4
4
  const core_1 = require("@aws-sdk/core");
5
5
  const core_2 = require("@smithy/core");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
@@ -331,6 +331,22 @@ const se_UpdateLibraryItemCommand = async (input, context) => {
331
331
  return b.build();
332
332
  };
333
333
  exports.se_UpdateLibraryItemCommand = se_UpdateLibraryItemCommand;
334
+ const se_UpdateLibraryItemMetadataCommand = async (input, context) => {
335
+ const b = (0, core_2.requestBuilder)(input, context);
336
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
337
+ "content-type": "application/json",
338
+ [_ii]: input[_iI],
339
+ });
340
+ b.bp("/catalog.updateItemMetadata");
341
+ let body;
342
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
343
+ isVerified: [],
344
+ libraryItemId: [],
345
+ }));
346
+ b.m("POST").h(headers).b(body);
347
+ return b.build();
348
+ };
349
+ exports.se_UpdateLibraryItemMetadataCommand = se_UpdateLibraryItemMetadataCommand;
334
350
  const se_UpdateQAppCommand = async (input, context) => {
335
351
  const b = (0, core_2.requestBuilder)(input, context);
336
352
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
@@ -398,6 +414,7 @@ const de_CreateLibraryItemCommand = async (output, context) => {
398
414
  const doc = (0, smithy_client_1.take)(data, {
399
415
  createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
400
416
  createdBy: smithy_client_1.expectString,
417
+ isVerified: smithy_client_1.expectBoolean,
401
418
  libraryItemId: smithy_client_1.expectString,
402
419
  ratingCount: smithy_client_1.expectInt32,
403
420
  status: smithy_client_1.expectString,
@@ -493,6 +510,7 @@ const de_GetLibraryItemCommand = async (output, context) => {
493
510
  createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
494
511
  createdBy: smithy_client_1.expectString,
495
512
  isRatedByUser: smithy_client_1.expectBoolean,
513
+ isVerified: smithy_client_1.expectBoolean,
496
514
  libraryItemId: smithy_client_1.expectString,
497
515
  ratingCount: smithy_client_1.expectInt32,
498
516
  status: smithy_client_1.expectString,
@@ -691,6 +709,7 @@ const de_UpdateLibraryItemCommand = async (output, context) => {
691
709
  createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
692
710
  createdBy: smithy_client_1.expectString,
693
711
  isRatedByUser: smithy_client_1.expectBoolean,
712
+ isVerified: smithy_client_1.expectBoolean,
694
713
  libraryItemId: smithy_client_1.expectString,
695
714
  ratingCount: smithy_client_1.expectInt32,
696
715
  status: smithy_client_1.expectString,
@@ -702,6 +721,17 @@ const de_UpdateLibraryItemCommand = async (output, context) => {
702
721
  return contents;
703
722
  };
704
723
  exports.de_UpdateLibraryItemCommand = de_UpdateLibraryItemCommand;
724
+ const de_UpdateLibraryItemMetadataCommand = async (output, context) => {
725
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
726
+ return de_CommandError(output, context);
727
+ }
728
+ const contents = (0, smithy_client_1.map)({
729
+ $metadata: deserializeMetadata(output),
730
+ });
731
+ await (0, smithy_client_1.collectBody)(output.body, context);
732
+ return contents;
733
+ };
734
+ exports.de_UpdateLibraryItemMetadataCommand = de_UpdateLibraryItemMetadataCommand;
705
735
  const de_UpdateQAppCommand = async (output, context) => {
706
736
  if (output.statusCode !== 200 && output.statusCode >= 300) {
707
737
  return de_CommandError(output, context);
@@ -754,6 +784,9 @@ const de_CommandError = async (output, context) => {
754
784
  case "AccessDeniedException":
755
785
  case "com.amazonaws.qapps#AccessDeniedException":
756
786
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
787
+ case "ConflictException":
788
+ case "com.amazonaws.qapps#ConflictException":
789
+ throw await de_ConflictExceptionRes(parsedOutput, context);
757
790
  case "InternalServerException":
758
791
  case "com.amazonaws.qapps#InternalServerException":
759
792
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -772,9 +805,6 @@ const de_CommandError = async (output, context) => {
772
805
  case "ValidationException":
773
806
  case "com.amazonaws.qapps#ValidationException":
774
807
  throw await de_ValidationExceptionRes(parsedOutput, context);
775
- case "ConflictException":
776
- case "com.amazonaws.qapps#ConflictException":
777
- throw await de_ConflictExceptionRes(parsedOutput, context);
778
808
  case "ContentTooLargeException":
779
809
  case "com.amazonaws.qapps#ContentTooLargeException":
780
810
  throw await de_ContentTooLargeExceptionRes(parsedOutput, context);
@@ -1127,6 +1157,7 @@ const de_LibraryItemMember = (output, context) => {
1127
1157
  createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1128
1158
  createdBy: smithy_client_1.expectString,
1129
1159
  isRatedByUser: smithy_client_1.expectBoolean,
1160
+ isVerified: smithy_client_1.expectBoolean,
1130
1161
  libraryItemId: smithy_client_1.expectString,
1131
1162
  ratingCount: smithy_client_1.expectInt32,
1132
1163
  status: smithy_client_1.expectString,
@@ -1170,6 +1201,7 @@ const de_UserAppItem = (output, context) => {
1170
1201
  canEdit: smithy_client_1.expectBoolean,
1171
1202
  createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1172
1203
  description: smithy_client_1.expectString,
1204
+ isVerified: smithy_client_1.expectBoolean,
1173
1205
  status: smithy_client_1.expectString,
1174
1206
  title: smithy_client_1.expectString,
1175
1207
  });
package/dist-es/QApps.js CHANGED
@@ -20,6 +20,7 @@ import { StopQAppSessionCommand, } from "./commands/StopQAppSessionCommand";
20
20
  import { TagResourceCommand } from "./commands/TagResourceCommand";
21
21
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
22
22
  import { UpdateLibraryItemCommand, } from "./commands/UpdateLibraryItemCommand";
23
+ import { UpdateLibraryItemMetadataCommand, } from "./commands/UpdateLibraryItemMetadataCommand";
23
24
  import { UpdateQAppCommand } from "./commands/UpdateQAppCommand";
24
25
  import { UpdateQAppSessionCommand, } from "./commands/UpdateQAppSessionCommand";
25
26
  import { QAppsClient } from "./QAppsClient";
@@ -45,6 +46,7 @@ const commands = {
45
46
  TagResourceCommand,
46
47
  UntagResourceCommand,
47
48
  UpdateLibraryItemCommand,
49
+ UpdateLibraryItemMetadataCommand,
48
50
  UpdateQAppCommand,
49
51
  UpdateQAppSessionCommand,
50
52
  };
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_UpdateLibraryItemMetadataCommand, se_UpdateLibraryItemMetadataCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class UpdateLibraryItemMetadataCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("QAppsService", "UpdateLibraryItemMetadata", {})
19
+ .n("QAppsClient", "UpdateLibraryItemMetadataCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateLibraryItemMetadataCommand)
22
+ .de(de_UpdateLibraryItemMetadataCommand)
23
+ .build() {
24
+ }
@@ -19,5 +19,6 @@ export * from "./StopQAppSessionCommand";
19
19
  export * from "./TagResourceCommand";
20
20
  export * from "./UntagResourceCommand";
21
21
  export * from "./UpdateLibraryItemCommand";
22
+ export * from "./UpdateLibraryItemMetadataCommand";
22
23
  export * from "./UpdateQAppCommand";
23
24
  export * from "./UpdateQAppSessionCommand";
@@ -53,6 +53,20 @@ export const AppStatus = {
53
53
  DRAFT: "DRAFT",
54
54
  PUBLISHED: "PUBLISHED",
55
55
  };
56
+ export class ConflictException extends __BaseException {
57
+ constructor(opts) {
58
+ super({
59
+ name: "ConflictException",
60
+ $fault: "client",
61
+ ...opts,
62
+ });
63
+ this.name = "ConflictException";
64
+ this.$fault = "client";
65
+ Object.setPrototypeOf(this, ConflictException.prototype);
66
+ this.resourceId = opts.resourceId;
67
+ this.resourceType = opts.resourceType;
68
+ }
69
+ }
56
70
  export class InternalServerException extends __BaseException {
57
71
  constructor(opts) {
58
72
  super({
@@ -144,20 +158,6 @@ export const ExecutionStatus = {
144
158
  IN_PROGRESS: "IN_PROGRESS",
145
159
  WAITING: "WAITING",
146
160
  };
147
- export class ConflictException extends __BaseException {
148
- constructor(opts) {
149
- super({
150
- name: "ConflictException",
151
- $fault: "client",
152
- ...opts,
153
- });
154
- this.name = "ConflictException";
155
- this.$fault = "client";
156
- Object.setPrototypeOf(this, ConflictException.prototype);
157
- this.resourceId = opts.resourceId;
158
- this.resourceType = opts.resourceType;
159
- }
160
- }
161
161
  export class ContentTooLargeException extends __BaseException {
162
162
  constructor(opts) {
163
163
  super({
@@ -307,6 +307,21 @@ export const se_UpdateLibraryItemCommand = async (input, context) => {
307
307
  b.m("POST").h(headers).b(body);
308
308
  return b.build();
309
309
  };
310
+ export const se_UpdateLibraryItemMetadataCommand = async (input, context) => {
311
+ const b = rb(input, context);
312
+ const headers = map({}, isSerializableHeaderValue, {
313
+ "content-type": "application/json",
314
+ [_ii]: input[_iI],
315
+ });
316
+ b.bp("/catalog.updateItemMetadata");
317
+ let body;
318
+ body = JSON.stringify(take(input, {
319
+ isVerified: [],
320
+ libraryItemId: [],
321
+ }));
322
+ b.m("POST").h(headers).b(body);
323
+ return b.build();
324
+ };
310
325
  export const se_UpdateQAppCommand = async (input, context) => {
311
326
  const b = rb(input, context);
312
327
  const headers = map({}, isSerializableHeaderValue, {
@@ -370,6 +385,7 @@ export const de_CreateLibraryItemCommand = async (output, context) => {
370
385
  const doc = take(data, {
371
386
  createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
372
387
  createdBy: __expectString,
388
+ isVerified: __expectBoolean,
373
389
  libraryItemId: __expectString,
374
390
  ratingCount: __expectInt32,
375
391
  status: __expectString,
@@ -459,6 +475,7 @@ export const de_GetLibraryItemCommand = async (output, context) => {
459
475
  createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
460
476
  createdBy: __expectString,
461
477
  isRatedByUser: __expectBoolean,
478
+ isVerified: __expectBoolean,
462
479
  libraryItemId: __expectString,
463
480
  ratingCount: __expectInt32,
464
481
  status: __expectString,
@@ -645,6 +662,7 @@ export const de_UpdateLibraryItemCommand = async (output, context) => {
645
662
  createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
646
663
  createdBy: __expectString,
647
664
  isRatedByUser: __expectBoolean,
665
+ isVerified: __expectBoolean,
648
666
  libraryItemId: __expectString,
649
667
  ratingCount: __expectInt32,
650
668
  status: __expectString,
@@ -655,6 +673,16 @@ export const de_UpdateLibraryItemCommand = async (output, context) => {
655
673
  Object.assign(contents, doc);
656
674
  return contents;
657
675
  };
676
+ export const de_UpdateLibraryItemMetadataCommand = async (output, context) => {
677
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
678
+ return de_CommandError(output, context);
679
+ }
680
+ const contents = map({
681
+ $metadata: deserializeMetadata(output),
682
+ });
683
+ await collectBody(output.body, context);
684
+ return contents;
685
+ };
658
686
  export const de_UpdateQAppCommand = async (output, context) => {
659
687
  if (output.statusCode !== 200 && output.statusCode >= 300) {
660
688
  return de_CommandError(output, context);
@@ -705,6 +733,9 @@ const de_CommandError = async (output, context) => {
705
733
  case "AccessDeniedException":
706
734
  case "com.amazonaws.qapps#AccessDeniedException":
707
735
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
736
+ case "ConflictException":
737
+ case "com.amazonaws.qapps#ConflictException":
738
+ throw await de_ConflictExceptionRes(parsedOutput, context);
708
739
  case "InternalServerException":
709
740
  case "com.amazonaws.qapps#InternalServerException":
710
741
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -723,9 +754,6 @@ const de_CommandError = async (output, context) => {
723
754
  case "ValidationException":
724
755
  case "com.amazonaws.qapps#ValidationException":
725
756
  throw await de_ValidationExceptionRes(parsedOutput, context);
726
- case "ConflictException":
727
- case "com.amazonaws.qapps#ConflictException":
728
- throw await de_ConflictExceptionRes(parsedOutput, context);
729
757
  case "ContentTooLargeException":
730
758
  case "com.amazonaws.qapps#ContentTooLargeException":
731
759
  throw await de_ContentTooLargeExceptionRes(parsedOutput, context);
@@ -1078,6 +1106,7 @@ const de_LibraryItemMember = (output, context) => {
1078
1106
  createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1079
1107
  createdBy: __expectString,
1080
1108
  isRatedByUser: __expectBoolean,
1109
+ isVerified: __expectBoolean,
1081
1110
  libraryItemId: __expectString,
1082
1111
  ratingCount: __expectInt32,
1083
1112
  status: __expectString,
@@ -1121,6 +1150,7 @@ const de_UserAppItem = (output, context) => {
1121
1150
  canEdit: __expectBoolean,
1122
1151
  createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1123
1152
  description: __expectString,
1153
+ isVerified: __expectBoolean,
1124
1154
  status: __expectString,
1125
1155
  title: __expectString,
1126
1156
  });
@@ -20,6 +20,7 @@ import { StopQAppSessionCommandInput, StopQAppSessionCommandOutput } from "./com
20
20
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
21
21
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
22
22
  import { UpdateLibraryItemCommandInput, UpdateLibraryItemCommandOutput } from "./commands/UpdateLibraryItemCommand";
23
+ import { UpdateLibraryItemMetadataCommandInput, UpdateLibraryItemMetadataCommandOutput } from "./commands/UpdateLibraryItemMetadataCommand";
23
24
  import { UpdateQAppCommandInput, UpdateQAppCommandOutput } from "./commands/UpdateQAppCommand";
24
25
  import { UpdateQAppSessionCommandInput, UpdateQAppSessionCommandOutput } from "./commands/UpdateQAppSessionCommand";
25
26
  import { QAppsClient } from "./QAppsClient";
@@ -150,6 +151,12 @@ export interface QApps {
150
151
  updateLibraryItem(args: UpdateLibraryItemCommandInput, options?: __HttpHandlerOptions): Promise<UpdateLibraryItemCommandOutput>;
151
152
  updateLibraryItem(args: UpdateLibraryItemCommandInput, cb: (err: any, data?: UpdateLibraryItemCommandOutput) => void): void;
152
153
  updateLibraryItem(args: UpdateLibraryItemCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateLibraryItemCommandOutput) => void): void;
154
+ /**
155
+ * @see {@link UpdateLibraryItemMetadataCommand}
156
+ */
157
+ updateLibraryItemMetadata(args: UpdateLibraryItemMetadataCommandInput, options?: __HttpHandlerOptions): Promise<UpdateLibraryItemMetadataCommandOutput>;
158
+ updateLibraryItemMetadata(args: UpdateLibraryItemMetadataCommandInput, cb: (err: any, data?: UpdateLibraryItemMetadataCommandOutput) => void): void;
159
+ updateLibraryItemMetadata(args: UpdateLibraryItemMetadataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateLibraryItemMetadataCommandOutput) => void): void;
153
160
  /**
154
161
  * @see {@link UpdateQAppCommand}
155
162
  */
@@ -166,13 +173,18 @@ export interface QApps {
166
173
  /**
167
174
  * <p>The Amazon Q Apps feature capability within Amazon Q Business allows web experience
168
175
  * users to create lightweight, purpose-built AI apps to fulfill specific tasks from
169
- * within their web experience. For example, users can create an Q Appthat exclusively
176
+ * within their web experience. For example, users can create a Q App that exclusively
170
177
  * generates marketing-related content to improve your marketing team's productivity or a
171
- * Q App for marketing content-generation like writing customer emails and creating
172
- * promotional content using a certain style of voice, tone, and branding.
173
- * For more information, see <a href="https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/purpose-built-qapps.html">Amazon Q App</a> in the
174
- * <i>Amazon Q Business User Guide</i>.
178
+ * Q App for writing customer emails and creating promotional content using a certain
179
+ * style of voice, tone, and branding. For more information on the capabilities, see
180
+ * <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>.
175
181
  * </p>
182
+ * <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
183
+ * Amazon Q Apps API operations</a>.</p>
184
+ * <p>For information about the IAM access control permissions you need to
185
+ * use the Amazon Q Apps API, see <a href="https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/deploy-experience-iam-role.html">
186
+ * IAM role for the Amazon Q Business web experience including Amazon Q Apps</a> in the
187
+ * <i>Amazon Q Business User Guide</i>.</p>
176
188
  * @public
177
189
  */
178
190
  export declare class QApps extends QAppsClient implements QApps {
@@ -28,6 +28,7 @@ import { StopQAppSessionCommandInput, StopQAppSessionCommandOutput } from "./com
28
28
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
29
29
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
30
30
  import { UpdateLibraryItemCommandInput, UpdateLibraryItemCommandOutput } from "./commands/UpdateLibraryItemCommand";
31
+ import { UpdateLibraryItemMetadataCommandInput, UpdateLibraryItemMetadataCommandOutput } from "./commands/UpdateLibraryItemMetadataCommand";
31
32
  import { UpdateQAppCommandInput, UpdateQAppCommandOutput } from "./commands/UpdateQAppCommand";
32
33
  import { UpdateQAppSessionCommandInput, UpdateQAppSessionCommandOutput } from "./commands/UpdateQAppSessionCommand";
33
34
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
@@ -36,11 +37,11 @@ export { __Client };
36
37
  /**
37
38
  * @public
38
39
  */
39
- export type ServiceInputTypes = AssociateLibraryItemReviewCommandInput | AssociateQAppWithUserCommandInput | CreateLibraryItemCommandInput | CreateQAppCommandInput | DeleteLibraryItemCommandInput | DeleteQAppCommandInput | DisassociateLibraryItemReviewCommandInput | DisassociateQAppFromUserCommandInput | GetLibraryItemCommandInput | GetQAppCommandInput | GetQAppSessionCommandInput | ImportDocumentCommandInput | ListLibraryItemsCommandInput | ListQAppsCommandInput | ListTagsForResourceCommandInput | PredictQAppCommandInput | StartQAppSessionCommandInput | StopQAppSessionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateLibraryItemCommandInput | UpdateQAppCommandInput | UpdateQAppSessionCommandInput;
40
+ export type ServiceInputTypes = AssociateLibraryItemReviewCommandInput | AssociateQAppWithUserCommandInput | CreateLibraryItemCommandInput | CreateQAppCommandInput | DeleteLibraryItemCommandInput | DeleteQAppCommandInput | DisassociateLibraryItemReviewCommandInput | DisassociateQAppFromUserCommandInput | GetLibraryItemCommandInput | GetQAppCommandInput | GetQAppSessionCommandInput | ImportDocumentCommandInput | ListLibraryItemsCommandInput | ListQAppsCommandInput | ListTagsForResourceCommandInput | PredictQAppCommandInput | StartQAppSessionCommandInput | StopQAppSessionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateLibraryItemCommandInput | UpdateLibraryItemMetadataCommandInput | UpdateQAppCommandInput | UpdateQAppSessionCommandInput;
40
41
  /**
41
42
  * @public
42
43
  */
43
- export type ServiceOutputTypes = AssociateLibraryItemReviewCommandOutput | AssociateQAppWithUserCommandOutput | CreateLibraryItemCommandOutput | CreateQAppCommandOutput | DeleteLibraryItemCommandOutput | DeleteQAppCommandOutput | DisassociateLibraryItemReviewCommandOutput | DisassociateQAppFromUserCommandOutput | GetLibraryItemCommandOutput | GetQAppCommandOutput | GetQAppSessionCommandOutput | ImportDocumentCommandOutput | ListLibraryItemsCommandOutput | ListQAppsCommandOutput | ListTagsForResourceCommandOutput | PredictQAppCommandOutput | StartQAppSessionCommandOutput | StopQAppSessionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateLibraryItemCommandOutput | UpdateQAppCommandOutput | UpdateQAppSessionCommandOutput;
44
+ export type ServiceOutputTypes = AssociateLibraryItemReviewCommandOutput | AssociateQAppWithUserCommandOutput | CreateLibraryItemCommandOutput | CreateQAppCommandOutput | DeleteLibraryItemCommandOutput | DeleteQAppCommandOutput | DisassociateLibraryItemReviewCommandOutput | DisassociateQAppFromUserCommandOutput | GetLibraryItemCommandOutput | GetQAppCommandOutput | GetQAppSessionCommandOutput | ImportDocumentCommandOutput | ListLibraryItemsCommandOutput | ListQAppsCommandOutput | ListTagsForResourceCommandOutput | PredictQAppCommandOutput | StartQAppSessionCommandOutput | StopQAppSessionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateLibraryItemCommandOutput | UpdateLibraryItemMetadataCommandOutput | UpdateQAppCommandOutput | UpdateQAppSessionCommandOutput;
44
45
  /**
45
46
  * @public
46
47
  */
@@ -176,13 +177,18 @@ export interface QAppsClientResolvedConfig extends QAppsClientResolvedConfigType
176
177
  /**
177
178
  * <p>The Amazon Q Apps feature capability within Amazon Q Business allows web experience
178
179
  * users to create lightweight, purpose-built AI apps to fulfill specific tasks from
179
- * within their web experience. For example, users can create an Q Appthat exclusively
180
+ * within their web experience. For example, users can create a Q App that exclusively
180
181
  * generates marketing-related content to improve your marketing team's productivity or a
181
- * Q App for marketing content-generation like writing customer emails and creating
182
- * promotional content using a certain style of voice, tone, and branding.
183
- * For more information, see <a href="https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/purpose-built-qapps.html">Amazon Q App</a> in the
184
- * <i>Amazon Q Business User Guide</i>.
182
+ * Q App for writing customer emails and creating promotional content using a certain
183
+ * style of voice, tone, and branding. For more information on the capabilities, see
184
+ * <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>.
185
185
  * </p>
186
+ * <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
187
+ * Amazon Q Apps API operations</a>.</p>
188
+ * <p>For information about the IAM access control permissions you need to
189
+ * use the Amazon Q Apps API, see <a href="https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/deploy-experience-iam-role.html">
190
+ * IAM role for the Amazon Q Business web experience including Amazon Q Apps</a> in the
191
+ * <i>Amazon Q Business User Guide</i>.</p>
186
192
  * @public
187
193
  */
188
194
  export declare class QAppsClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, QAppsClientResolvedConfig> {
@@ -54,6 +54,10 @@ declare const AssociateLibraryItemReviewCommand_base: {
54
54
  * @throws {@link AccessDeniedException} (client fault)
55
55
  * <p>The client is not authorized to perform the requested operation.</p>
56
56
  *
57
+ * @throws {@link ConflictException} (client fault)
58
+ * <p>The requested operation could not be completed due to a
59
+ * conflict with the current state of the resource.</p>
60
+ *
57
61
  * @throws {@link InternalServerException} (server fault)
58
62
  * <p>An internal service error occurred while processing the request.</p>
59
63
  *
@@ -53,6 +53,7 @@ declare const CreateLibraryItemCommand_base: {
53
53
  * // updatedAt: new Date("TIMESTAMP"),
54
54
  * // updatedBy: "STRING_VALUE",
55
55
  * // ratingCount: Number("int"), // required
56
+ * // isVerified: true || false,
56
57
  * // };
57
58
  *
58
59
  * ```
@@ -53,6 +53,10 @@ declare const DisassociateLibraryItemReviewCommand_base: {
53
53
  * @throws {@link AccessDeniedException} (client fault)
54
54
  * <p>The client is not authorized to perform the requested operation.</p>
55
55
  *
56
+ * @throws {@link ConflictException} (client fault)
57
+ * <p>The requested operation could not be completed due to a
58
+ * conflict with the current state of the resource.</p>
59
+ *
56
60
  * @throws {@link InternalServerException} (server fault)
57
61
  * <p>An internal service error occurred while processing the request.</p>
58
62
  *
@@ -60,6 +60,7 @@ declare const GetLibraryItemCommand_base: {
60
60
  * // ratingCount: Number("int"), // required
61
61
  * // isRatedByUser: true || false,
62
62
  * // userCount: Number("int"),
63
+ * // isVerified: true || false,
63
64
  * // };
64
65
  *
65
66
  * ```
@@ -62,6 +62,7 @@ declare const ListLibraryItemsCommand_base: {
62
62
  * // ratingCount: Number("int"), // required
63
63
  * // isRatedByUser: true || false,
64
64
  * // userCount: Number("int"),
65
+ * // isVerified: true || false,
65
66
  * // },
66
67
  * // ],
67
68
  * // nextToken: "STRING_VALUE",
@@ -53,6 +53,7 @@ declare const ListQAppsCommand_base: {
53
53
  * // createdAt: new Date("TIMESTAMP"), // required
54
54
  * // canEdit: true || false,
55
55
  * // status: "STRING_VALUE",
56
+ * // isVerified: true || false,
56
57
  * // },
57
58
  * // ],
58
59
  * // nextToken: "STRING_VALUE",
@@ -27,7 +27,7 @@ declare const UpdateLibraryItemCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Updates the metadata and status of a library item for an Amazon Q App.</p>
30
+ * <p>Updates the library item for an Amazon Q App.</p>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -62,6 +62,7 @@ declare const UpdateLibraryItemCommand_base: {
62
62
  * // ratingCount: Number("int"), // required
63
63
  * // isRatedByUser: true || false,
64
64
  * // userCount: Number("int"),
65
+ * // isVerified: true || false,
65
66
  * // };
66
67
  *
67
68
  * ```
@@ -75,6 +76,10 @@ declare const UpdateLibraryItemCommand_base: {
75
76
  * @throws {@link AccessDeniedException} (client fault)
76
77
  * <p>The client is not authorized to perform the requested operation.</p>
77
78
  *
79
+ * @throws {@link ConflictException} (client fault)
80
+ * <p>The requested operation could not be completed due to a
81
+ * conflict with the current state of the resource.</p>
82
+ *
78
83
  * @throws {@link InternalServerException} (server fault)
79
84
  * <p>An internal service error occurred while processing the request.</p>
80
85
  *
@@ -0,0 +1,96 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { UpdateLibraryItemMetadataInput } from "../models/models_0";
4
+ import { QAppsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QAppsClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateLibraryItemMetadataCommand}.
14
+ */
15
+ export interface UpdateLibraryItemMetadataCommandInput extends UpdateLibraryItemMetadataInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateLibraryItemMetadataCommand}.
21
+ */
22
+ export interface UpdateLibraryItemMetadataCommandOutput extends __MetadataBearer {
23
+ }
24
+ declare const UpdateLibraryItemMetadataCommand_base: {
25
+ new (input: UpdateLibraryItemMetadataCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateLibraryItemMetadataCommandInput, UpdateLibraryItemMetadataCommandOutput, QAppsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: UpdateLibraryItemMetadataCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateLibraryItemMetadataCommandInput, UpdateLibraryItemMetadataCommandOutput, QAppsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Updates the verification status of a library item for an Amazon Q App.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { QAppsClient, UpdateLibraryItemMetadataCommand } from "@aws-sdk/client-qapps"; // ES Modules import
35
+ * // const { QAppsClient, UpdateLibraryItemMetadataCommand } = require("@aws-sdk/client-qapps"); // CommonJS import
36
+ * const client = new QAppsClient(config);
37
+ * const input = { // UpdateLibraryItemMetadataInput
38
+ * instanceId: "STRING_VALUE", // required
39
+ * libraryItemId: "STRING_VALUE", // required
40
+ * isVerified: true || false,
41
+ * };
42
+ * const command = new UpdateLibraryItemMetadataCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param UpdateLibraryItemMetadataCommandInput - {@link UpdateLibraryItemMetadataCommandInput}
49
+ * @returns {@link UpdateLibraryItemMetadataCommandOutput}
50
+ * @see {@link UpdateLibraryItemMetadataCommandInput} for command's `input` shape.
51
+ * @see {@link UpdateLibraryItemMetadataCommandOutput} for command's `response` shape.
52
+ * @see {@link QAppsClientResolvedConfig | config} for QAppsClient's `config` shape.
53
+ *
54
+ * @throws {@link AccessDeniedException} (client fault)
55
+ * <p>The client is not authorized to perform the requested operation.</p>
56
+ *
57
+ * @throws {@link ConflictException} (client fault)
58
+ * <p>The requested operation could not be completed due to a
59
+ * conflict with the current state of the resource.</p>
60
+ *
61
+ * @throws {@link InternalServerException} (server fault)
62
+ * <p>An internal service error occurred while processing the request.</p>
63
+ *
64
+ * @throws {@link ResourceNotFoundException} (client fault)
65
+ * <p>The requested resource could not be found.</p>
66
+ *
67
+ * @throws {@link ThrottlingException} (client fault)
68
+ * <p>The requested operation could not be completed because too many
69
+ * requests were sent at once. Wait a bit and try again later.</p>
70
+ *
71
+ * @throws {@link UnauthorizedException} (client fault)
72
+ * <p>The client is not authenticated or authorized to perform the requested operation.</p>
73
+ *
74
+ * @throws {@link ValidationException} (client fault)
75
+ * <p>The input failed to satisfy the constraints specified by the service.</p>
76
+ *
77
+ * @throws {@link QAppsServiceException}
78
+ * <p>Base exception class for all service exceptions from QApps service.</p>
79
+ *
80
+ * @public
81
+ * @example Update a library item to be verified
82
+ * ```javascript
83
+ * //
84
+ * const input = {
85
+ * "instanceId": "0b95c9c4-89cc-4aa8-9aae-aa91cbec699f",
86
+ * "isVerified": true,
87
+ * "libraryItemId": "cb9ecf72-8563-450d-9db9-994f98297316"
88
+ * };
89
+ * const command = new UpdateLibraryItemMetadataCommand(input);
90
+ * await client.send(command);
91
+ * // example id: example-1
92
+ * ```
93
+ *
94
+ */
95
+ export declare class UpdateLibraryItemMetadataCommand extends UpdateLibraryItemMetadataCommand_base {
96
+ }
@@ -19,5 +19,6 @@ export * from "./StopQAppSessionCommand";
19
19
  export * from "./TagResourceCommand";
20
20
  export * from "./UntagResourceCommand";
21
21
  export * from "./UpdateLibraryItemCommand";
22
+ export * from "./UpdateLibraryItemMetadataCommand";
22
23
  export * from "./UpdateQAppCommand";
23
24
  export * from "./UpdateQAppSessionCommand";
@@ -1,13 +1,18 @@
1
1
  /**
2
2
  * <p>The Amazon Q Apps feature capability within Amazon Q Business allows web experience
3
3
  * users to create lightweight, purpose-built AI apps to fulfill specific tasks from
4
- * within their web experience. For example, users can create an Q Appthat exclusively
4
+ * within their web experience. For example, users can create a Q App that exclusively
5
5
  * generates marketing-related content to improve your marketing team's productivity or a
6
- * Q App for marketing content-generation like writing customer emails and creating
7
- * promotional content using a certain style of voice, tone, and branding.
8
- * For more information, see <a href="https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/purpose-built-qapps.html">Amazon Q App</a> in the
9
- * <i>Amazon Q Business User Guide</i>.
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>.
10
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>
11
16
  *
12
17
  * @packageDocumentation
13
18
  */
@@ -406,6 +406,29 @@ export interface AssociateLibraryItemReviewInput {
406
406
  */
407
407
  libraryItemId: string | undefined;
408
408
  }
409
+ /**
410
+ * <p>The requested operation could not be completed due to a
411
+ * conflict with the current state of the resource.</p>
412
+ * @public
413
+ */
414
+ export declare class ConflictException extends __BaseException {
415
+ readonly name: "ConflictException";
416
+ readonly $fault: "client";
417
+ /**
418
+ * <p>The unique identifier of the resource</p>
419
+ * @public
420
+ */
421
+ resourceId: string | undefined;
422
+ /**
423
+ * <p>The type of the resource</p>
424
+ * @public
425
+ */
426
+ resourceType: string | undefined;
427
+ /**
428
+ * @internal
429
+ */
430
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
431
+ }
409
432
  /**
410
433
  * <p>An internal service error occurred while processing the request.</p>
411
434
  * @public
@@ -610,29 +633,6 @@ export interface Category {
610
633
  */
611
634
  title: string | undefined;
612
635
  }
613
- /**
614
- * <p>The requested operation could not be completed due to a
615
- * conflict with the current state of the resource.</p>
616
- * @public
617
- */
618
- export declare class ConflictException extends __BaseException {
619
- readonly name: "ConflictException";
620
- readonly $fault: "client";
621
- /**
622
- * <p>The unique identifier of the resource</p>
623
- * @public
624
- */
625
- resourceId: string | undefined;
626
- /**
627
- * <p>The type of the resource</p>
628
- * @public
629
- */
630
- resourceType: string | undefined;
631
- /**
632
- * @internal
633
- */
634
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
635
- }
636
636
  /**
637
637
  * <p>The requested operation could not be completed because
638
638
  * the content exceeds the maximum allowed size.</p>
@@ -748,6 +748,11 @@ export interface CreateLibraryItemOutput {
748
748
  * @public
749
749
  */
750
750
  ratingCount: number | undefined;
751
+ /**
752
+ * <p>Indicates whether the library item has been verified.</p>
753
+ * @public
754
+ */
755
+ isVerified?: boolean;
751
756
  }
752
757
  /**
753
758
  * @public
@@ -970,6 +975,11 @@ export interface GetLibraryItemOutput {
970
975
  * @public
971
976
  */
972
977
  userCount?: number;
978
+ /**
979
+ * <p>Indicates whether the library item has been verified.</p>
980
+ * @public
981
+ */
982
+ isVerified?: boolean;
973
983
  }
974
984
  /**
975
985
  * @public
@@ -1143,6 +1153,11 @@ export interface LibraryItemMember {
1143
1153
  * @public
1144
1154
  */
1145
1155
  userCount?: number;
1156
+ /**
1157
+ * <p>Indicates whether the library item has been verified.</p>
1158
+ * @public
1159
+ */
1160
+ isVerified?: boolean;
1146
1161
  }
1147
1162
  /**
1148
1163
  * @public
@@ -1256,6 +1271,11 @@ export interface UserAppItem {
1256
1271
  * @public
1257
1272
  */
1258
1273
  status?: string;
1274
+ /**
1275
+ * <p>Indicates whether the Q App has been verified.</p>
1276
+ * @public
1277
+ */
1278
+ isVerified?: boolean;
1259
1279
  }
1260
1280
  /**
1261
1281
  * @public
@@ -1538,6 +1558,31 @@ export interface UpdateLibraryItemOutput {
1538
1558
  * @public
1539
1559
  */
1540
1560
  userCount?: number;
1561
+ /**
1562
+ * <p>Indicates whether the library item has been verified.</p>
1563
+ * @public
1564
+ */
1565
+ isVerified?: boolean;
1566
+ }
1567
+ /**
1568
+ * @public
1569
+ */
1570
+ export interface UpdateLibraryItemMetadataInput {
1571
+ /**
1572
+ * <p>The unique identifier of the Amazon Q Business application environment instance.</p>
1573
+ * @public
1574
+ */
1575
+ instanceId: string | undefined;
1576
+ /**
1577
+ * <p>The unique identifier of the updated library item.</p>
1578
+ * @public
1579
+ */
1580
+ libraryItemId: string | undefined;
1581
+ /**
1582
+ * <p>The verification status of the library item</p>
1583
+ * @public
1584
+ */
1585
+ isVerified?: boolean;
1541
1586
  }
1542
1587
  /**
1543
1588
  * @public
@@ -21,6 +21,7 @@ import { StopQAppSessionCommandInput, StopQAppSessionCommandOutput } from "../co
21
21
  import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
22
22
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
23
23
  import { UpdateLibraryItemCommandInput, UpdateLibraryItemCommandOutput } from "../commands/UpdateLibraryItemCommand";
24
+ import { UpdateLibraryItemMetadataCommandInput, UpdateLibraryItemMetadataCommandOutput } from "../commands/UpdateLibraryItemMetadataCommand";
24
25
  import { UpdateQAppCommandInput, UpdateQAppCommandOutput } from "../commands/UpdateQAppCommand";
25
26
  import { UpdateQAppSessionCommandInput, UpdateQAppSessionCommandOutput } from "../commands/UpdateQAppSessionCommand";
26
27
  /**
@@ -107,6 +108,10 @@ export declare const se_UntagResourceCommand: (input: UntagResourceCommandInput,
107
108
  * serializeAws_restJson1UpdateLibraryItemCommand
108
109
  */
109
110
  export declare const se_UpdateLibraryItemCommand: (input: UpdateLibraryItemCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
111
+ /**
112
+ * serializeAws_restJson1UpdateLibraryItemMetadataCommand
113
+ */
114
+ export declare const se_UpdateLibraryItemMetadataCommand: (input: UpdateLibraryItemMetadataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
110
115
  /**
111
116
  * serializeAws_restJson1UpdateQAppCommand
112
117
  */
@@ -199,6 +204,10 @@ export declare const de_UntagResourceCommand: (output: __HttpResponse, context:
199
204
  * deserializeAws_restJson1UpdateLibraryItemCommand
200
205
  */
201
206
  export declare const de_UpdateLibraryItemCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateLibraryItemCommandOutput>;
207
+ /**
208
+ * deserializeAws_restJson1UpdateLibraryItemMetadataCommand
209
+ */
210
+ export declare const de_UpdateLibraryItemMetadataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateLibraryItemMetadataCommandOutput>;
202
211
  /**
203
212
  * deserializeAws_restJson1UpdateQAppCommand
204
213
  */
@@ -83,6 +83,10 @@ import {
83
83
  UpdateLibraryItemCommandInput,
84
84
  UpdateLibraryItemCommandOutput,
85
85
  } from "./commands/UpdateLibraryItemCommand";
86
+ import {
87
+ UpdateLibraryItemMetadataCommandInput,
88
+ UpdateLibraryItemMetadataCommandOutput,
89
+ } from "./commands/UpdateLibraryItemMetadataCommand";
86
90
  import {
87
91
  UpdateQAppCommandInput,
88
92
  UpdateQAppCommandOutput,
@@ -366,6 +370,19 @@ export interface QApps {
366
370
  options: __HttpHandlerOptions,
367
371
  cb: (err: any, data?: UpdateLibraryItemCommandOutput) => void
368
372
  ): void;
373
+ updateLibraryItemMetadata(
374
+ args: UpdateLibraryItemMetadataCommandInput,
375
+ options?: __HttpHandlerOptions
376
+ ): Promise<UpdateLibraryItemMetadataCommandOutput>;
377
+ updateLibraryItemMetadata(
378
+ args: UpdateLibraryItemMetadataCommandInput,
379
+ cb: (err: any, data?: UpdateLibraryItemMetadataCommandOutput) => void
380
+ ): void;
381
+ updateLibraryItemMetadata(
382
+ args: UpdateLibraryItemMetadataCommandInput,
383
+ options: __HttpHandlerOptions,
384
+ cb: (err: any, data?: UpdateLibraryItemMetadataCommandOutput) => void
385
+ ): void;
369
386
  updateQApp(
370
387
  args: UpdateQAppCommandInput,
371
388
  options?: __HttpHandlerOptions
@@ -129,6 +129,10 @@ import {
129
129
  UpdateLibraryItemCommandInput,
130
130
  UpdateLibraryItemCommandOutput,
131
131
  } from "./commands/UpdateLibraryItemCommand";
132
+ import {
133
+ UpdateLibraryItemMetadataCommandInput,
134
+ UpdateLibraryItemMetadataCommandOutput,
135
+ } from "./commands/UpdateLibraryItemMetadataCommand";
132
136
  import {
133
137
  UpdateQAppCommandInput,
134
138
  UpdateQAppCommandOutput,
@@ -166,6 +170,7 @@ export type ServiceInputTypes =
166
170
  | TagResourceCommandInput
167
171
  | UntagResourceCommandInput
168
172
  | UpdateLibraryItemCommandInput
173
+ | UpdateLibraryItemMetadataCommandInput
169
174
  | UpdateQAppCommandInput
170
175
  | UpdateQAppSessionCommandInput;
171
176
  export type ServiceOutputTypes =
@@ -190,6 +195,7 @@ export type ServiceOutputTypes =
190
195
  | TagResourceCommandOutput
191
196
  | UntagResourceCommandOutput
192
197
  | UpdateLibraryItemCommandOutput
198
+ | UpdateLibraryItemMetadataCommandOutput
193
199
  | UpdateQAppCommandOutput
194
200
  | UpdateQAppSessionCommandOutput;
195
201
  export interface ClientDefaults
@@ -0,0 +1,36 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { UpdateLibraryItemMetadataInput } from "../models/models_0";
4
+ import {
5
+ QAppsClientResolvedConfig,
6
+ ServiceInputTypes,
7
+ ServiceOutputTypes,
8
+ } from "../QAppsClient";
9
+ export { __MetadataBearer };
10
+ export { $Command };
11
+ export interface UpdateLibraryItemMetadataCommandInput
12
+ extends UpdateLibraryItemMetadataInput {}
13
+ export interface UpdateLibraryItemMetadataCommandOutput
14
+ extends __MetadataBearer {}
15
+ declare const UpdateLibraryItemMetadataCommand_base: {
16
+ new (
17
+ input: UpdateLibraryItemMetadataCommandInput
18
+ ): import("@smithy/smithy-client").CommandImpl<
19
+ UpdateLibraryItemMetadataCommandInput,
20
+ UpdateLibraryItemMetadataCommandOutput,
21
+ QAppsClientResolvedConfig,
22
+ ServiceInputTypes,
23
+ ServiceOutputTypes
24
+ >;
25
+ new (
26
+ __0_0: UpdateLibraryItemMetadataCommandInput
27
+ ): import("@smithy/smithy-client").CommandImpl<
28
+ UpdateLibraryItemMetadataCommandInput,
29
+ UpdateLibraryItemMetadataCommandOutput,
30
+ QAppsClientResolvedConfig,
31
+ ServiceInputTypes,
32
+ ServiceOutputTypes
33
+ >;
34
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
35
+ };
36
+ export declare class UpdateLibraryItemMetadataCommand extends UpdateLibraryItemMetadataCommand_base {}
@@ -19,5 +19,6 @@ export * from "./StopQAppSessionCommand";
19
19
  export * from "./TagResourceCommand";
20
20
  export * from "./UntagResourceCommand";
21
21
  export * from "./UpdateLibraryItemCommand";
22
+ export * from "./UpdateLibraryItemMetadataCommand";
22
23
  export * from "./UpdateQAppCommand";
23
24
  export * from "./UpdateQAppSessionCommand";
@@ -149,6 +149,13 @@ export interface AssociateLibraryItemReviewInput {
149
149
  instanceId: string | undefined;
150
150
  libraryItemId: string | undefined;
151
151
  }
152
+ export declare class ConflictException extends __BaseException {
153
+ readonly name: "ConflictException";
154
+ readonly $fault: "client";
155
+ resourceId: string | undefined;
156
+ resourceType: string | undefined;
157
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
158
+ }
152
159
  export declare class InternalServerException extends __BaseException {
153
160
  readonly name: "InternalServerException";
154
161
  readonly $fault: "server";
@@ -228,13 +235,6 @@ export interface Category {
228
235
  id: string | undefined;
229
236
  title: string | undefined;
230
237
  }
231
- export declare class ConflictException extends __BaseException {
232
- readonly name: "ConflictException";
233
- readonly $fault: "client";
234
- resourceId: string | undefined;
235
- resourceType: string | undefined;
236
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
237
- }
238
238
  export declare class ContentTooLargeException extends __BaseException {
239
239
  readonly name: "ContentTooLargeException";
240
240
  readonly $fault: "client";
@@ -267,6 +267,7 @@ export interface CreateLibraryItemOutput {
267
267
  updatedAt?: Date;
268
268
  updatedBy?: string;
269
269
  ratingCount: number | undefined;
270
+ isVerified?: boolean;
270
271
  }
271
272
  export interface CreateQAppOutput {
272
273
  appId: string | undefined;
@@ -321,6 +322,7 @@ export interface GetLibraryItemOutput {
321
322
  ratingCount: number | undefined;
322
323
  isRatedByUser?: boolean;
323
324
  userCount?: number;
325
+ isVerified?: boolean;
324
326
  }
325
327
  export interface GetQAppInput {
326
328
  instanceId: string | undefined;
@@ -361,6 +363,7 @@ export interface LibraryItemMember {
361
363
  ratingCount: number | undefined;
362
364
  isRatedByUser?: boolean;
363
365
  userCount?: number;
366
+ isVerified?: boolean;
364
367
  }
365
368
  export declare const LibraryItemStatus: {
366
369
  readonly DISABLED: "DISABLED";
@@ -391,6 +394,7 @@ export interface UserAppItem {
391
394
  createdAt: Date | undefined;
392
395
  canEdit?: boolean;
393
396
  status?: string;
397
+ isVerified?: boolean;
394
398
  }
395
399
  export interface ListQAppsOutput {
396
400
  apps: UserAppItem[] | undefined;
@@ -477,6 +481,12 @@ export interface UpdateLibraryItemOutput {
477
481
  ratingCount: number | undefined;
478
482
  isRatedByUser?: boolean;
479
483
  userCount?: number;
484
+ isVerified?: boolean;
485
+ }
486
+ export interface UpdateLibraryItemMetadataInput {
487
+ instanceId: string | undefined;
488
+ libraryItemId: string | undefined;
489
+ isVerified?: boolean;
480
490
  }
481
491
  export interface UpdateQAppOutput {
482
492
  appId: string | undefined;
@@ -87,6 +87,10 @@ import {
87
87
  UpdateLibraryItemCommandInput,
88
88
  UpdateLibraryItemCommandOutput,
89
89
  } from "../commands/UpdateLibraryItemCommand";
90
+ import {
91
+ UpdateLibraryItemMetadataCommandInput,
92
+ UpdateLibraryItemMetadataCommandOutput,
93
+ } from "../commands/UpdateLibraryItemMetadataCommand";
90
94
  import {
91
95
  UpdateQAppCommandInput,
92
96
  UpdateQAppCommandOutput,
@@ -179,6 +183,10 @@ export declare const se_UpdateLibraryItemCommand: (
179
183
  input: UpdateLibraryItemCommandInput,
180
184
  context: __SerdeContext
181
185
  ) => Promise<__HttpRequest>;
186
+ export declare const se_UpdateLibraryItemMetadataCommand: (
187
+ input: UpdateLibraryItemMetadataCommandInput,
188
+ context: __SerdeContext
189
+ ) => Promise<__HttpRequest>;
182
190
  export declare const se_UpdateQAppCommand: (
183
191
  input: UpdateQAppCommandInput,
184
192
  context: __SerdeContext
@@ -271,6 +279,10 @@ export declare const de_UpdateLibraryItemCommand: (
271
279
  output: __HttpResponse,
272
280
  context: __SerdeContext
273
281
  ) => Promise<UpdateLibraryItemCommandOutput>;
282
+ export declare const de_UpdateLibraryItemMetadataCommand: (
283
+ output: __HttpResponse,
284
+ context: __SerdeContext
285
+ ) => Promise<UpdateLibraryItemMetadataCommandOutput>;
274
286
  export declare const de_UpdateQAppCommand: (
275
287
  output: __HttpResponse,
276
288
  context: __SerdeContext
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.645.0",
4
+ "version": "3.648.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",