@aws-sdk/client-qapps 3.612.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 (187) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +397 -0
  3. package/dist-cjs/QApps.js +57 -0
  4. package/dist-cjs/QAppsClient.js +56 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  7. package/dist-cjs/commands/AssociateLibraryItemReviewCommand.js +28 -0
  8. package/dist-cjs/commands/AssociateQAppWithUserCommand.js +28 -0
  9. package/dist-cjs/commands/CreateLibraryItemCommand.js +28 -0
  10. package/dist-cjs/commands/CreateQAppCommand.js +28 -0
  11. package/dist-cjs/commands/DeleteLibraryItemCommand.js +28 -0
  12. package/dist-cjs/commands/DeleteQAppCommand.js +28 -0
  13. package/dist-cjs/commands/DisassociateLibraryItemReviewCommand.js +28 -0
  14. package/dist-cjs/commands/DisassociateQAppFromUserCommand.js +28 -0
  15. package/dist-cjs/commands/GetLibraryItemCommand.js +28 -0
  16. package/dist-cjs/commands/GetQAppCommand.js +28 -0
  17. package/dist-cjs/commands/GetQAppSessionCommand.js +28 -0
  18. package/dist-cjs/commands/ImportDocumentCommand.js +28 -0
  19. package/dist-cjs/commands/ListLibraryItemsCommand.js +28 -0
  20. package/dist-cjs/commands/ListQAppsCommand.js +28 -0
  21. package/dist-cjs/commands/ListTagsForResourceCommand.js +28 -0
  22. package/dist-cjs/commands/PredictQAppCommand.js +28 -0
  23. package/dist-cjs/commands/StartQAppSessionCommand.js +28 -0
  24. package/dist-cjs/commands/StopQAppSessionCommand.js +28 -0
  25. package/dist-cjs/commands/TagResourceCommand.js +28 -0
  26. package/dist-cjs/commands/UntagResourceCommand.js +28 -0
  27. package/dist-cjs/commands/UpdateLibraryItemCommand.js +28 -0
  28. package/dist-cjs/commands/UpdateQAppCommand.js +28 -0
  29. package/dist-cjs/commands/UpdateQAppSessionCommand.js +28 -0
  30. package/dist-cjs/commands/index.js +26 -0
  31. package/dist-cjs/endpoint/EndpointParameters.js +18 -0
  32. package/dist-cjs/endpoint/endpointResolver.js +14 -0
  33. package/dist-cjs/endpoint/ruleset.js +7 -0
  34. package/dist-cjs/extensionConfiguration.js +2 -0
  35. package/dist-cjs/index.js +11 -0
  36. package/dist-cjs/models/QAppsServiceException.js +12 -0
  37. package/dist-cjs/models/index.js +4 -0
  38. package/dist-cjs/models/models_0.js +236 -0
  39. package/dist-cjs/pagination/Interfaces.js +2 -0
  40. package/dist-cjs/pagination/ListLibraryItemsPaginator.js +7 -0
  41. package/dist-cjs/pagination/ListQAppsPaginator.js +7 -0
  42. package/dist-cjs/pagination/index.js +6 -0
  43. package/dist-cjs/protocols/Aws_restJson1.js +1207 -0
  44. package/dist-cjs/runtimeConfig.browser.js +39 -0
  45. package/dist-cjs/runtimeConfig.js +49 -0
  46. package/dist-cjs/runtimeConfig.native.js +15 -0
  47. package/dist-cjs/runtimeConfig.shared.js +34 -0
  48. package/dist-cjs/runtimeExtensions.js +25 -0
  49. package/dist-es/QApps.js +53 -0
  50. package/dist-es/QAppsClient.js +52 -0
  51. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  52. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  53. package/dist-es/commands/AssociateLibraryItemReviewCommand.js +24 -0
  54. package/dist-es/commands/AssociateQAppWithUserCommand.js +24 -0
  55. package/dist-es/commands/CreateLibraryItemCommand.js +24 -0
  56. package/dist-es/commands/CreateQAppCommand.js +24 -0
  57. package/dist-es/commands/DeleteLibraryItemCommand.js +24 -0
  58. package/dist-es/commands/DeleteQAppCommand.js +24 -0
  59. package/dist-es/commands/DisassociateLibraryItemReviewCommand.js +24 -0
  60. package/dist-es/commands/DisassociateQAppFromUserCommand.js +24 -0
  61. package/dist-es/commands/GetLibraryItemCommand.js +24 -0
  62. package/dist-es/commands/GetQAppCommand.js +24 -0
  63. package/dist-es/commands/GetQAppSessionCommand.js +24 -0
  64. package/dist-es/commands/ImportDocumentCommand.js +24 -0
  65. package/dist-es/commands/ListLibraryItemsCommand.js +24 -0
  66. package/dist-es/commands/ListQAppsCommand.js +24 -0
  67. package/dist-es/commands/ListTagsForResourceCommand.js +24 -0
  68. package/dist-es/commands/PredictQAppCommand.js +24 -0
  69. package/dist-es/commands/StartQAppSessionCommand.js +24 -0
  70. package/dist-es/commands/StopQAppSessionCommand.js +24 -0
  71. package/dist-es/commands/TagResourceCommand.js +24 -0
  72. package/dist-es/commands/UntagResourceCommand.js +24 -0
  73. package/dist-es/commands/UpdateLibraryItemCommand.js +24 -0
  74. package/dist-es/commands/UpdateQAppCommand.js +24 -0
  75. package/dist-es/commands/UpdateQAppSessionCommand.js +24 -0
  76. package/dist-es/commands/index.js +23 -0
  77. package/dist-es/endpoint/EndpointParameters.js +14 -0
  78. package/dist-es/endpoint/endpointResolver.js +10 -0
  79. package/dist-es/endpoint/ruleset.js +4 -0
  80. package/dist-es/extensionConfiguration.js +1 -0
  81. package/dist-es/index.js +6 -0
  82. package/dist-es/models/QAppsServiceException.js +8 -0
  83. package/dist-es/models/index.js +1 -0
  84. package/dist-es/models/models_0.js +224 -0
  85. package/dist-es/pagination/Interfaces.js +1 -0
  86. package/dist-es/pagination/ListLibraryItemsPaginator.js +4 -0
  87. package/dist-es/pagination/ListQAppsPaginator.js +4 -0
  88. package/dist-es/pagination/index.js +3 -0
  89. package/dist-es/protocols/Aws_restJson1.js +1158 -0
  90. package/dist-es/runtimeConfig.browser.js +34 -0
  91. package/dist-es/runtimeConfig.js +44 -0
  92. package/dist-es/runtimeConfig.native.js +11 -0
  93. package/dist-es/runtimeConfig.shared.js +30 -0
  94. package/dist-es/runtimeExtensions.js +21 -0
  95. package/dist-types/QApps.d.ts +179 -0
  96. package/dist-types/QAppsClient.d.ts +202 -0
  97. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  98. package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
  99. package/dist-types/commands/AssociateLibraryItemReviewCommand.d.ts +83 -0
  100. package/dist-types/commands/AssociateQAppWithUserCommand.d.ts +85 -0
  101. package/dist-types/commands/CreateLibraryItemCommand.d.ts +95 -0
  102. package/dist-types/commands/CreateQAppCommand.d.ts +225 -0
  103. package/dist-types/commands/DeleteLibraryItemCommand.d.ts +83 -0
  104. package/dist-types/commands/DeleteQAppCommand.d.ts +78 -0
  105. package/dist-types/commands/DisassociateLibraryItemReviewCommand.d.ts +82 -0
  106. package/dist-types/commands/DisassociateQAppFromUserCommand.d.ts +79 -0
  107. package/dist-types/commands/GetLibraryItemCommand.d.ts +98 -0
  108. package/dist-types/commands/GetQAppCommand.d.ts +224 -0
  109. package/dist-types/commands/GetQAppSessionCommand.d.ts +92 -0
  110. package/dist-types/commands/ImportDocumentCommand.d.ts +97 -0
  111. package/dist-types/commands/ListLibraryItemsCommand.d.ts +103 -0
  112. package/dist-types/commands/ListQAppsCommand.d.ts +91 -0
  113. package/dist-types/commands/ListTagsForResourceCommand.d.ts +78 -0
  114. package/dist-types/commands/PredictQAppCommand.d.ts +209 -0
  115. package/dist-types/commands/StartQAppSessionCommand.d.ts +100 -0
  116. package/dist-types/commands/StopQAppSessionCommand.d.ts +84 -0
  117. package/dist-types/commands/TagResourceCommand.d.ts +81 -0
  118. package/dist-types/commands/UntagResourceCommand.d.ts +77 -0
  119. package/dist-types/commands/UpdateLibraryItemCommand.d.ts +100 -0
  120. package/dist-types/commands/UpdateQAppCommand.d.ts +216 -0
  121. package/dist-types/commands/UpdateQAppSessionCommand.d.ts +95 -0
  122. package/dist-types/commands/index.d.ts +23 -0
  123. package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
  124. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  125. package/dist-types/endpoint/ruleset.d.ts +2 -0
  126. package/dist-types/extensionConfiguration.d.ts +9 -0
  127. package/dist-types/index.d.ts +22 -0
  128. package/dist-types/models/QAppsServiceException.d.ts +14 -0
  129. package/dist-types/models/index.d.ts +1 -0
  130. package/dist-types/models/models_0.d.ts +2138 -0
  131. package/dist-types/pagination/Interfaces.d.ts +8 -0
  132. package/dist-types/pagination/ListLibraryItemsPaginator.d.ts +7 -0
  133. package/dist-types/pagination/ListQAppsPaginator.d.ts +7 -0
  134. package/dist-types/pagination/index.d.ts +3 -0
  135. package/dist-types/protocols/Aws_restJson1.d.ts +209 -0
  136. package/dist-types/runtimeConfig.browser.d.ts +45 -0
  137. package/dist-types/runtimeConfig.d.ts +45 -0
  138. package/dist-types/runtimeConfig.native.d.ts +44 -0
  139. package/dist-types/runtimeConfig.shared.d.ts +21 -0
  140. package/dist-types/runtimeExtensions.d.ts +17 -0
  141. package/dist-types/ts3.4/QApps.d.ts +396 -0
  142. package/dist-types/ts3.4/QAppsClient.d.ts +258 -0
  143. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  144. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
  145. package/dist-types/ts3.4/commands/AssociateLibraryItemReviewCommand.d.ts +36 -0
  146. package/dist-types/ts3.4/commands/AssociateQAppWithUserCommand.d.ts +35 -0
  147. package/dist-types/ts3.4/commands/CreateLibraryItemCommand.d.ts +39 -0
  148. package/dist-types/ts3.4/commands/CreateQAppCommand.d.ts +36 -0
  149. package/dist-types/ts3.4/commands/DeleteLibraryItemCommand.d.ts +34 -0
  150. package/dist-types/ts3.4/commands/DeleteQAppCommand.d.ts +34 -0
  151. package/dist-types/ts3.4/commands/DisassociateLibraryItemReviewCommand.d.ts +36 -0
  152. package/dist-types/ts3.4/commands/DisassociateQAppFromUserCommand.d.ts +36 -0
  153. package/dist-types/ts3.4/commands/GetLibraryItemCommand.d.ts +36 -0
  154. package/dist-types/ts3.4/commands/GetQAppCommand.d.ts +30 -0
  155. package/dist-types/ts3.4/commands/GetQAppSessionCommand.d.ts +36 -0
  156. package/dist-types/ts3.4/commands/ImportDocumentCommand.d.ts +36 -0
  157. package/dist-types/ts3.4/commands/ListLibraryItemsCommand.d.ts +39 -0
  158. package/dist-types/ts3.4/commands/ListQAppsCommand.d.ts +36 -0
  159. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +40 -0
  160. package/dist-types/ts3.4/commands/PredictQAppCommand.d.ts +36 -0
  161. package/dist-types/ts3.4/commands/StartQAppSessionCommand.d.ts +39 -0
  162. package/dist-types/ts3.4/commands/StopQAppSessionCommand.d.ts +34 -0
  163. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +36 -0
  164. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +39 -0
  165. package/dist-types/ts3.4/commands/UpdateLibraryItemCommand.d.ts +39 -0
  166. package/dist-types/ts3.4/commands/UpdateQAppCommand.d.ts +36 -0
  167. package/dist-types/ts3.4/commands/UpdateQAppSessionCommand.d.ts +39 -0
  168. package/dist-types/ts3.4/commands/index.d.ts +23 -0
  169. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  170. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  171. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  172. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  173. package/dist-types/ts3.4/index.d.ts +9 -0
  174. package/dist-types/ts3.4/models/QAppsServiceException.d.ts +9 -0
  175. package/dist-types/ts3.4/models/index.d.ts +1 -0
  176. package/dist-types/ts3.4/models/models_0.d.ts +681 -0
  177. package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
  178. package/dist-types/ts3.4/pagination/ListLibraryItemsPaginator.d.ts +11 -0
  179. package/dist-types/ts3.4/pagination/ListQAppsPaginator.d.ts +11 -0
  180. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  181. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +281 -0
  182. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +85 -0
  183. package/dist-types/ts3.4/runtimeConfig.d.ts +89 -0
  184. package/dist-types/ts3.4/runtimeConfig.native.d.ts +79 -0
  185. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
  186. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  187. package/package.json +101 -0
@@ -0,0 +1,83 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { AssociateLibraryItemReviewInput } 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 AssociateLibraryItemReviewCommand}.
14
+ */
15
+ export interface AssociateLibraryItemReviewCommandInput extends AssociateLibraryItemReviewInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link AssociateLibraryItemReviewCommand}.
21
+ */
22
+ export interface AssociateLibraryItemReviewCommandOutput extends __MetadataBearer {
23
+ }
24
+ declare const AssociateLibraryItemReviewCommand_base: {
25
+ new (input: AssociateLibraryItemReviewCommandInput): import("@smithy/smithy-client").CommandImpl<AssociateLibraryItemReviewCommandInput, AssociateLibraryItemReviewCommandOutput, QAppsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: AssociateLibraryItemReviewCommandInput): import("@smithy/smithy-client").CommandImpl<AssociateLibraryItemReviewCommandInput, AssociateLibraryItemReviewCommandOutput, QAppsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Associates a rating or review for a library item with the user submitting
31
+ * the request. This increments the rating count for the specified library item.</p>
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { QAppsClient, AssociateLibraryItemReviewCommand } from "@aws-sdk/client-qapps"; // ES Modules import
36
+ * // const { QAppsClient, AssociateLibraryItemReviewCommand } = require("@aws-sdk/client-qapps"); // CommonJS import
37
+ * const client = new QAppsClient(config);
38
+ * const input = { // AssociateLibraryItemReviewInput
39
+ * instanceId: "STRING_VALUE", // required
40
+ * libraryItemId: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new AssociateLibraryItemReviewCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param AssociateLibraryItemReviewCommandInput - {@link AssociateLibraryItemReviewCommandInput}
49
+ * @returns {@link AssociateLibraryItemReviewCommandOutput}
50
+ * @see {@link AssociateLibraryItemReviewCommandInput} for command's `input` shape.
51
+ * @see {@link AssociateLibraryItemReviewCommandOutput} 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 InternalServerException} (server fault)
58
+ * <p>An internal service error occurred while processing the request.</p>
59
+ *
60
+ * @throws {@link ResourceNotFoundException} (client fault)
61
+ * <p>The requested resource could not be found.</p>
62
+ *
63
+ * @throws {@link ServiceQuotaExceededException} (client fault)
64
+ * <p>The requested operation could not be completed because
65
+ * it would exceed the service's quota or limit.</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
+ */
82
+ export declare class AssociateLibraryItemReviewCommand extends AssociateLibraryItemReviewCommand_base {
83
+ }
@@ -0,0 +1,85 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { AssociateQAppWithUserInput } 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 AssociateQAppWithUserCommand}.
14
+ */
15
+ export interface AssociateQAppWithUserCommandInput extends AssociateQAppWithUserInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link AssociateQAppWithUserCommand}.
21
+ */
22
+ export interface AssociateQAppWithUserCommandOutput extends __MetadataBearer {
23
+ }
24
+ declare const AssociateQAppWithUserCommand_base: {
25
+ new (input: AssociateQAppWithUserCommandInput): import("@smithy/smithy-client").CommandImpl<AssociateQAppWithUserCommandInput, AssociateQAppWithUserCommandOutput, QAppsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: AssociateQAppWithUserCommandInput): import("@smithy/smithy-client").CommandImpl<AssociateQAppWithUserCommandInput, AssociateQAppWithUserCommandOutput, QAppsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>This operation creates a link between the user's identity calling the operation and a
31
+ * specific Q App. This is useful to mark the Q App as a <i>favorite</i> for
32
+ * the user if the user doesn't own the Amazon Q App so they can still run it and see it in their
33
+ * inventory of Q Apps.</p>
34
+ * @example
35
+ * Use a bare-bones client and the command you need to make an API call.
36
+ * ```javascript
37
+ * import { QAppsClient, AssociateQAppWithUserCommand } from "@aws-sdk/client-qapps"; // ES Modules import
38
+ * // const { QAppsClient, AssociateQAppWithUserCommand } = require("@aws-sdk/client-qapps"); // CommonJS import
39
+ * const client = new QAppsClient(config);
40
+ * const input = { // AssociateQAppWithUserInput
41
+ * instanceId: "STRING_VALUE", // required
42
+ * appId: "STRING_VALUE", // required
43
+ * };
44
+ * const command = new AssociateQAppWithUserCommand(input);
45
+ * const response = await client.send(command);
46
+ * // {};
47
+ *
48
+ * ```
49
+ *
50
+ * @param AssociateQAppWithUserCommandInput - {@link AssociateQAppWithUserCommandInput}
51
+ * @returns {@link AssociateQAppWithUserCommandOutput}
52
+ * @see {@link AssociateQAppWithUserCommandInput} for command's `input` shape.
53
+ * @see {@link AssociateQAppWithUserCommandOutput} for command's `response` shape.
54
+ * @see {@link QAppsClientResolvedConfig | config} for QAppsClient's `config` shape.
55
+ *
56
+ * @throws {@link AccessDeniedException} (client fault)
57
+ * <p>The client is not authorized to perform the requested operation.</p>
58
+ *
59
+ * @throws {@link InternalServerException} (server fault)
60
+ * <p>An internal service error occurred while processing the request.</p>
61
+ *
62
+ * @throws {@link ResourceNotFoundException} (client fault)
63
+ * <p>The requested resource could not be found.</p>
64
+ *
65
+ * @throws {@link ServiceQuotaExceededException} (client fault)
66
+ * <p>The requested operation could not be completed because
67
+ * it would exceed the service's quota or limit.</p>
68
+ *
69
+ * @throws {@link ThrottlingException} (client fault)
70
+ * <p>The requested operation could not be completed because too many
71
+ * requests were sent at once. Wait a bit and try again later.</p>
72
+ *
73
+ * @throws {@link UnauthorizedException} (client fault)
74
+ * <p>The client is not authenticated or authorized to perform the requested operation.</p>
75
+ *
76
+ * @throws {@link ValidationException} (client fault)
77
+ * <p>The input failed to satisfy the constraints specified by the service.</p>
78
+ *
79
+ * @throws {@link QAppsServiceException}
80
+ * <p>Base exception class for all service exceptions from QApps service.</p>
81
+ *
82
+ * @public
83
+ */
84
+ export declare class AssociateQAppWithUserCommand extends AssociateQAppWithUserCommand_base {
85
+ }
@@ -0,0 +1,95 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CreateLibraryItemInput, CreateLibraryItemOutput } 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 CreateLibraryItemCommand}.
14
+ */
15
+ export interface CreateLibraryItemCommandInput extends CreateLibraryItemInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateLibraryItemCommand}.
21
+ */
22
+ export interface CreateLibraryItemCommandOutput extends CreateLibraryItemOutput, __MetadataBearer {
23
+ }
24
+ declare const CreateLibraryItemCommand_base: {
25
+ new (input: CreateLibraryItemCommandInput): import("@smithy/smithy-client").CommandImpl<CreateLibraryItemCommandInput, CreateLibraryItemCommandOutput, QAppsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: CreateLibraryItemCommandInput): import("@smithy/smithy-client").CommandImpl<CreateLibraryItemCommandInput, CreateLibraryItemCommandOutput, QAppsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Creates a new library item for an Amazon Q App, allowing it to be discovered and
31
+ * used by other allowed users. </p>
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { QAppsClient, CreateLibraryItemCommand } from "@aws-sdk/client-qapps"; // ES Modules import
36
+ * // const { QAppsClient, CreateLibraryItemCommand } = require("@aws-sdk/client-qapps"); // CommonJS import
37
+ * const client = new QAppsClient(config);
38
+ * const input = { // CreateLibraryItemInput
39
+ * instanceId: "STRING_VALUE", // required
40
+ * appId: "STRING_VALUE", // required
41
+ * appVersion: Number("int"), // required
42
+ * categories: [ // CategoryIdList // required
43
+ * "STRING_VALUE",
44
+ * ],
45
+ * };
46
+ * const command = new CreateLibraryItemCommand(input);
47
+ * const response = await client.send(command);
48
+ * // { // CreateLibraryItemOutput
49
+ * // libraryItemId: "STRING_VALUE", // required
50
+ * // status: "STRING_VALUE", // required
51
+ * // createdAt: new Date("TIMESTAMP"), // required
52
+ * // createdBy: "STRING_VALUE", // required
53
+ * // updatedAt: new Date("TIMESTAMP"),
54
+ * // updatedBy: "STRING_VALUE",
55
+ * // ratingCount: Number("int"), // required
56
+ * // };
57
+ *
58
+ * ```
59
+ *
60
+ * @param CreateLibraryItemCommandInput - {@link CreateLibraryItemCommandInput}
61
+ * @returns {@link CreateLibraryItemCommandOutput}
62
+ * @see {@link CreateLibraryItemCommandInput} for command's `input` shape.
63
+ * @see {@link CreateLibraryItemCommandOutput} for command's `response` shape.
64
+ * @see {@link QAppsClientResolvedConfig | config} for QAppsClient's `config` shape.
65
+ *
66
+ * @throws {@link AccessDeniedException} (client fault)
67
+ * <p>The client is not authorized to perform the requested operation.</p>
68
+ *
69
+ * @throws {@link InternalServerException} (server fault)
70
+ * <p>An internal service error occurred while processing the request.</p>
71
+ *
72
+ * @throws {@link ResourceNotFoundException} (client fault)
73
+ * <p>The requested resource could not be found.</p>
74
+ *
75
+ * @throws {@link ServiceQuotaExceededException} (client fault)
76
+ * <p>The requested operation could not be completed because
77
+ * it would exceed the service's quota or limit.</p>
78
+ *
79
+ * @throws {@link ThrottlingException} (client fault)
80
+ * <p>The requested operation could not be completed because too many
81
+ * requests were sent at once. Wait a bit and try again later.</p>
82
+ *
83
+ * @throws {@link UnauthorizedException} (client fault)
84
+ * <p>The client is not authenticated or authorized to perform the requested operation.</p>
85
+ *
86
+ * @throws {@link ValidationException} (client fault)
87
+ * <p>The input failed to satisfy the constraints specified by the service.</p>
88
+ *
89
+ * @throws {@link QAppsServiceException}
90
+ * <p>Base exception class for all service exceptions from QApps service.</p>
91
+ *
92
+ * @public
93
+ */
94
+ export declare class CreateLibraryItemCommand extends CreateLibraryItemCommand_base {
95
+ }
@@ -0,0 +1,225 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CreateQAppInput, CreateQAppOutput } 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 CreateQAppCommand}.
14
+ */
15
+ export interface CreateQAppCommandInput extends CreateQAppInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateQAppCommand}.
21
+ */
22
+ export interface CreateQAppCommandOutput extends CreateQAppOutput, __MetadataBearer {
23
+ }
24
+ declare const CreateQAppCommand_base: {
25
+ new (input: CreateQAppCommandInput): import("@smithy/smithy-client").CommandImpl<CreateQAppCommandInput, CreateQAppCommandOutput, QAppsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: CreateQAppCommandInput): import("@smithy/smithy-client").CommandImpl<CreateQAppCommandInput, CreateQAppCommandOutput, QAppsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Creates a new Amazon Q App based on the provided definition. The Q App definition specifies
31
+ * the cards and flow of the Q App. This operation also calculates the dependencies between the cards
32
+ * by inspecting the references in the prompts. </p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { QAppsClient, CreateQAppCommand } from "@aws-sdk/client-qapps"; // ES Modules import
37
+ * // const { QAppsClient, CreateQAppCommand } = require("@aws-sdk/client-qapps"); // CommonJS import
38
+ * const client = new QAppsClient(config);
39
+ * const input = { // CreateQAppInput
40
+ * instanceId: "STRING_VALUE", // required
41
+ * title: "STRING_VALUE", // required
42
+ * description: "STRING_VALUE",
43
+ * appDefinition: { // AppDefinitionInput
44
+ * cards: [ // CardList // required
45
+ * { // CardInput Union: only one key present
46
+ * textInput: { // TextInputCardInput
47
+ * title: "STRING_VALUE", // required
48
+ * id: "STRING_VALUE", // required
49
+ * type: "text-input" || "q-query" || "file-upload" || "q-plugin", // required
50
+ * placeholder: "STRING_VALUE",
51
+ * defaultValue: "STRING_VALUE",
52
+ * },
53
+ * qQuery: { // QQueryCardInput
54
+ * title: "STRING_VALUE", // required
55
+ * id: "STRING_VALUE", // required
56
+ * type: "text-input" || "q-query" || "file-upload" || "q-plugin", // required
57
+ * prompt: "STRING_VALUE", // required
58
+ * outputSource: "approved-sources" || "llm",
59
+ * attributeFilter: { // AttributeFilter
60
+ * andAllFilters: [ // AttributeFilters
61
+ * {
62
+ * andAllFilters: [
63
+ * "<AttributeFilter>",
64
+ * ],
65
+ * orAllFilters: [
66
+ * "<AttributeFilter>",
67
+ * ],
68
+ * notFilter: "<AttributeFilter>",
69
+ * equalsTo: { // DocumentAttribute
70
+ * name: "STRING_VALUE", // required
71
+ * value: { // DocumentAttributeValue Union: only one key present
72
+ * stringValue: "STRING_VALUE",
73
+ * stringListValue: [ // DocumentAttributeStringListValue
74
+ * "STRING_VALUE",
75
+ * ],
76
+ * longValue: Number("long"),
77
+ * dateValue: new Date("TIMESTAMP"),
78
+ * },
79
+ * },
80
+ * containsAll: {
81
+ * name: "STRING_VALUE", // required
82
+ * value: {// Union: only one key present
83
+ * stringValue: "STRING_VALUE",
84
+ * stringListValue: [
85
+ * "STRING_VALUE",
86
+ * ],
87
+ * longValue: Number("long"),
88
+ * dateValue: new Date("TIMESTAMP"),
89
+ * },
90
+ * },
91
+ * containsAny: {
92
+ * name: "STRING_VALUE", // required
93
+ * value: {// Union: only one key present
94
+ * stringValue: "STRING_VALUE",
95
+ * stringListValue: [
96
+ * "STRING_VALUE",
97
+ * ],
98
+ * longValue: Number("long"),
99
+ * dateValue: new Date("TIMESTAMP"),
100
+ * },
101
+ * },
102
+ * greaterThan: {
103
+ * name: "STRING_VALUE", // required
104
+ * value: {// Union: only one key present
105
+ * stringValue: "STRING_VALUE",
106
+ * stringListValue: [
107
+ * "STRING_VALUE",
108
+ * ],
109
+ * longValue: Number("long"),
110
+ * dateValue: new Date("TIMESTAMP"),
111
+ * },
112
+ * },
113
+ * greaterThanOrEquals: {
114
+ * name: "STRING_VALUE", // required
115
+ * value: {// Union: only one key present
116
+ * stringValue: "STRING_VALUE",
117
+ * stringListValue: [
118
+ * "STRING_VALUE",
119
+ * ],
120
+ * longValue: Number("long"),
121
+ * dateValue: new Date("TIMESTAMP"),
122
+ * },
123
+ * },
124
+ * lessThan: "<DocumentAttribute>",
125
+ * lessThanOrEquals: "<DocumentAttribute>",
126
+ * },
127
+ * ],
128
+ * orAllFilters: [
129
+ * "<AttributeFilter>",
130
+ * ],
131
+ * notFilter: "<AttributeFilter>",
132
+ * equalsTo: "<DocumentAttribute>",
133
+ * containsAll: "<DocumentAttribute>",
134
+ * containsAny: "<DocumentAttribute>",
135
+ * greaterThan: "<DocumentAttribute>",
136
+ * greaterThanOrEquals: "<DocumentAttribute>",
137
+ * lessThan: "<DocumentAttribute>",
138
+ * lessThanOrEquals: "<DocumentAttribute>",
139
+ * },
140
+ * },
141
+ * qPlugin: { // QPluginCardInput
142
+ * title: "STRING_VALUE", // required
143
+ * id: "STRING_VALUE", // required
144
+ * type: "text-input" || "q-query" || "file-upload" || "q-plugin", // required
145
+ * prompt: "STRING_VALUE", // required
146
+ * pluginId: "STRING_VALUE", // required
147
+ * },
148
+ * fileUpload: { // FileUploadCardInput
149
+ * title: "STRING_VALUE", // required
150
+ * id: "STRING_VALUE", // required
151
+ * type: "text-input" || "q-query" || "file-upload" || "q-plugin", // required
152
+ * filename: "STRING_VALUE",
153
+ * fileId: "STRING_VALUE",
154
+ * allowOverride: true || false,
155
+ * },
156
+ * },
157
+ * ],
158
+ * initialPrompt: "STRING_VALUE",
159
+ * },
160
+ * tags: { // TagMap
161
+ * "<keys>": "STRING_VALUE",
162
+ * },
163
+ * };
164
+ * const command = new CreateQAppCommand(input);
165
+ * const response = await client.send(command);
166
+ * // { // CreateQAppOutput
167
+ * // appId: "STRING_VALUE", // required
168
+ * // appArn: "STRING_VALUE", // required
169
+ * // title: "STRING_VALUE", // required
170
+ * // description: "STRING_VALUE",
171
+ * // initialPrompt: "STRING_VALUE",
172
+ * // appVersion: Number("int"), // required
173
+ * // status: "PUBLISHED" || "DRAFT" || "DELETED", // required
174
+ * // createdAt: new Date("TIMESTAMP"), // required
175
+ * // createdBy: "STRING_VALUE", // required
176
+ * // updatedAt: new Date("TIMESTAMP"), // required
177
+ * // updatedBy: "STRING_VALUE", // required
178
+ * // requiredCapabilities: [ // AppRequiredCapabilities
179
+ * // "FileUpload" || "CreatorMode" || "RetrievalMode" || "PluginMode",
180
+ * // ],
181
+ * // };
182
+ *
183
+ * ```
184
+ *
185
+ * @param CreateQAppCommandInput - {@link CreateQAppCommandInput}
186
+ * @returns {@link CreateQAppCommandOutput}
187
+ * @see {@link CreateQAppCommandInput} for command's `input` shape.
188
+ * @see {@link CreateQAppCommandOutput} for command's `response` shape.
189
+ * @see {@link QAppsClientResolvedConfig | config} for QAppsClient's `config` shape.
190
+ *
191
+ * @throws {@link AccessDeniedException} (client fault)
192
+ * <p>The client is not authorized to perform the requested operation.</p>
193
+ *
194
+ * @throws {@link ConflictException} (client fault)
195
+ * <p>The requested operation could not be completed due to a
196
+ * conflict with the current state of the resource.</p>
197
+ *
198
+ * @throws {@link ContentTooLargeException} (client fault)
199
+ * <p>The requested operation could not be completed because
200
+ * the content exceeds the maximum allowed size.</p>
201
+ *
202
+ * @throws {@link InternalServerException} (server fault)
203
+ * <p>An internal service error occurred while processing the request.</p>
204
+ *
205
+ * @throws {@link ServiceQuotaExceededException} (client fault)
206
+ * <p>The requested operation could not be completed because
207
+ * it would exceed the service's quota or limit.</p>
208
+ *
209
+ * @throws {@link ThrottlingException} (client fault)
210
+ * <p>The requested operation could not be completed because too many
211
+ * requests were sent at once. Wait a bit and try again later.</p>
212
+ *
213
+ * @throws {@link UnauthorizedException} (client fault)
214
+ * <p>The client is not authenticated or authorized to perform the requested operation.</p>
215
+ *
216
+ * @throws {@link ValidationException} (client fault)
217
+ * <p>The input failed to satisfy the constraints specified by the service.</p>
218
+ *
219
+ * @throws {@link QAppsServiceException}
220
+ * <p>Base exception class for all service exceptions from QApps service.</p>
221
+ *
222
+ * @public
223
+ */
224
+ export declare class CreateQAppCommand extends CreateQAppCommand_base {
225
+ }
@@ -0,0 +1,83 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DeleteLibraryItemInput } 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 DeleteLibraryItemCommand}.
14
+ */
15
+ export interface DeleteLibraryItemCommandInput extends DeleteLibraryItemInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteLibraryItemCommand}.
21
+ */
22
+ export interface DeleteLibraryItemCommandOutput extends __MetadataBearer {
23
+ }
24
+ declare const DeleteLibraryItemCommand_base: {
25
+ new (input: DeleteLibraryItemCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteLibraryItemCommandInput, DeleteLibraryItemCommandOutput, QAppsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DeleteLibraryItemCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteLibraryItemCommandInput, DeleteLibraryItemCommandOutput, QAppsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Deletes a library item for an Amazon Q App, removing it from the library
31
+ * so it can no longer be discovered or used by other users.</p>
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { QAppsClient, DeleteLibraryItemCommand } from "@aws-sdk/client-qapps"; // ES Modules import
36
+ * // const { QAppsClient, DeleteLibraryItemCommand } = require("@aws-sdk/client-qapps"); // CommonJS import
37
+ * const client = new QAppsClient(config);
38
+ * const input = { // DeleteLibraryItemInput
39
+ * instanceId: "STRING_VALUE", // required
40
+ * libraryItemId: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new DeleteLibraryItemCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param DeleteLibraryItemCommandInput - {@link DeleteLibraryItemCommandInput}
49
+ * @returns {@link DeleteLibraryItemCommandOutput}
50
+ * @see {@link DeleteLibraryItemCommandInput} for command's `input` shape.
51
+ * @see {@link DeleteLibraryItemCommandOutput} 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 InternalServerException} (server fault)
58
+ * <p>An internal service error occurred while processing the request.</p>
59
+ *
60
+ * @throws {@link ResourceNotFoundException} (client fault)
61
+ * <p>The requested resource could not be found.</p>
62
+ *
63
+ * @throws {@link ServiceQuotaExceededException} (client fault)
64
+ * <p>The requested operation could not be completed because
65
+ * it would exceed the service's quota or limit.</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
+ */
82
+ export declare class DeleteLibraryItemCommand extends DeleteLibraryItemCommand_base {
83
+ }
@@ -0,0 +1,78 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DeleteQAppInput } 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 DeleteQAppCommand}.
14
+ */
15
+ export interface DeleteQAppCommandInput extends DeleteQAppInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteQAppCommand}.
21
+ */
22
+ export interface DeleteQAppCommandOutput extends __MetadataBearer {
23
+ }
24
+ declare const DeleteQAppCommand_base: {
25
+ new (input: DeleteQAppCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteQAppCommandInput, DeleteQAppCommandOutput, QAppsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DeleteQAppCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteQAppCommandInput, DeleteQAppCommandOutput, QAppsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Deletes an Amazon Q App owned by the user. If the Q App was previously published to the library, it is also removed from the library.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { QAppsClient, DeleteQAppCommand } from "@aws-sdk/client-qapps"; // ES Modules import
35
+ * // const { QAppsClient, DeleteQAppCommand } = require("@aws-sdk/client-qapps"); // CommonJS import
36
+ * const client = new QAppsClient(config);
37
+ * const input = { // DeleteQAppInput
38
+ * instanceId: "STRING_VALUE", // required
39
+ * appId: "STRING_VALUE", // required
40
+ * };
41
+ * const command = new DeleteQAppCommand(input);
42
+ * const response = await client.send(command);
43
+ * // {};
44
+ *
45
+ * ```
46
+ *
47
+ * @param DeleteQAppCommandInput - {@link DeleteQAppCommandInput}
48
+ * @returns {@link DeleteQAppCommandOutput}
49
+ * @see {@link DeleteQAppCommandInput} for command's `input` shape.
50
+ * @see {@link DeleteQAppCommandOutput} for command's `response` shape.
51
+ * @see {@link QAppsClientResolvedConfig | config} for QAppsClient's `config` shape.
52
+ *
53
+ * @throws {@link AccessDeniedException} (client fault)
54
+ * <p>The client is not authorized to perform the requested operation.</p>
55
+ *
56
+ * @throws {@link InternalServerException} (server fault)
57
+ * <p>An internal service error occurred while processing the request.</p>
58
+ *
59
+ * @throws {@link ResourceNotFoundException} (client fault)
60
+ * <p>The requested resource could not be found.</p>
61
+ *
62
+ * @throws {@link ThrottlingException} (client fault)
63
+ * <p>The requested operation could not be completed because too many
64
+ * requests were sent at once. Wait a bit and try again later.</p>
65
+ *
66
+ * @throws {@link UnauthorizedException} (client fault)
67
+ * <p>The client is not authenticated or authorized to perform the requested operation.</p>
68
+ *
69
+ * @throws {@link ValidationException} (client fault)
70
+ * <p>The input failed to satisfy the constraints specified by the service.</p>
71
+ *
72
+ * @throws {@link QAppsServiceException}
73
+ * <p>Base exception class for all service exceptions from QApps service.</p>
74
+ *
75
+ * @public
76
+ */
77
+ export declare class DeleteQAppCommand extends DeleteQAppCommand_base {
78
+ }