@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,34 @@
1
+ import packageInfo from "../package.json";
2
+ import { Sha256 } from "@aws-crypto/sha256-browser";
3
+ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
4
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
5
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
6
+ import { invalidProvider } from "@smithy/invalid-dependency";
7
+ import { calculateBodyLength } from "@smithy/util-body-length-browser";
8
+ import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
9
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
10
+ import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
11
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
12
+ export const getRuntimeConfig = (config) => {
13
+ const defaultsMode = resolveDefaultsModeConfig(config);
14
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
15
+ const clientSharedValues = getSharedRuntimeConfig(config);
16
+ return {
17
+ ...clientSharedValues,
18
+ ...config,
19
+ runtime: "browser",
20
+ defaultsMode,
21
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
22
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
23
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
24
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
25
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
26
+ region: config?.region ?? invalidProvider("Region is missing"),
27
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
28
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
29
+ sha256: config?.sha256 ?? Sha256,
30
+ streamCollector: config?.streamCollector ?? streamCollector,
31
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
32
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
33
+ };
34
+ };
@@ -0,0 +1,44 @@
1
+ import packageInfo from "../package.json";
2
+ import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
3
+ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
4
+ import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
5
+ import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
6
+ import { Hash } from "@smithy/hash-node";
7
+ import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
8
+ import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
+ import { calculateBodyLength } from "@smithy/util-body-length-node";
11
+ import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
12
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
15
+ import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
16
+ export const getRuntimeConfig = (config) => {
17
+ emitWarningIfUnsupportedVersion(process.version);
18
+ const defaultsMode = resolveDefaultsModeConfig(config);
19
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
20
+ const clientSharedValues = getSharedRuntimeConfig(config);
21
+ awsCheckVersion(process.version);
22
+ return {
23
+ ...clientSharedValues,
24
+ ...config,
25
+ runtime: "node",
26
+ defaultsMode,
27
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
28
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
29
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
30
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
31
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
32
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
33
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
34
+ retryMode: config?.retryMode ??
35
+ loadNodeConfig({
36
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
37
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
38
+ }),
39
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
40
+ streamCollector: config?.streamCollector ?? streamCollector,
41
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
42
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
43
+ };
44
+ };
@@ -0,0 +1,11 @@
1
+ import { Sha256 } from "@aws-crypto/sha256-js";
2
+ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
+ export const getRuntimeConfig = (config) => {
4
+ const browserDefaults = getBrowserRuntimeConfig(config);
5
+ return {
6
+ ...browserDefaults,
7
+ ...config,
8
+ runtime: "react-native",
9
+ sha256: config?.sha256 ?? Sha256,
10
+ };
11
+ };
@@ -0,0 +1,30 @@
1
+ import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { NoOpLogger } from "@smithy/smithy-client";
3
+ import { parseUrl } from "@smithy/url-parser";
4
+ import { fromBase64, toBase64 } from "@smithy/util-base64";
5
+ import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
6
+ import { defaultQAppsHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
7
+ import { defaultEndpointResolver } from "./endpoint/endpointResolver";
8
+ export const getRuntimeConfig = (config) => {
9
+ return {
10
+ apiVersion: "2023-11-27",
11
+ base64Decoder: config?.base64Decoder ?? fromBase64,
12
+ base64Encoder: config?.base64Encoder ?? toBase64,
13
+ disableHostPrefix: config?.disableHostPrefix ?? false,
14
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
15
+ extensions: config?.extensions ?? [],
16
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultQAppsHttpAuthSchemeProvider,
17
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
18
+ {
19
+ schemeId: "aws.auth#sigv4",
20
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
21
+ signer: new AwsSdkSigV4Signer(),
22
+ },
23
+ ],
24
+ logger: config?.logger ?? new NoOpLogger(),
25
+ serviceId: config?.serviceId ?? "QApps",
26
+ urlParser: config?.urlParser ?? parseUrl,
27
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
28
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
29
+ };
30
+ };
@@ -0,0 +1,21 @@
1
+ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
2
+ import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
3
+ import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
4
+ import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
5
+ const asPartial = (t) => t;
6
+ export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
7
+ const extensionConfiguration = {
8
+ ...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
9
+ ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
10
+ ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
11
+ ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
12
+ };
13
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
14
+ return {
15
+ ...runtimeConfig,
16
+ ...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
17
+ ...resolveDefaultRuntimeConfig(extensionConfiguration),
18
+ ...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
19
+ ...resolveHttpAuthRuntimeConfig(extensionConfiguration),
20
+ };
21
+ };
@@ -0,0 +1,179 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import { AssociateLibraryItemReviewCommandInput, AssociateLibraryItemReviewCommandOutput } from "./commands/AssociateLibraryItemReviewCommand";
3
+ import { AssociateQAppWithUserCommandInput, AssociateQAppWithUserCommandOutput } from "./commands/AssociateQAppWithUserCommand";
4
+ import { CreateLibraryItemCommandInput, CreateLibraryItemCommandOutput } from "./commands/CreateLibraryItemCommand";
5
+ import { CreateQAppCommandInput, CreateQAppCommandOutput } from "./commands/CreateQAppCommand";
6
+ import { DeleteLibraryItemCommandInput, DeleteLibraryItemCommandOutput } from "./commands/DeleteLibraryItemCommand";
7
+ import { DeleteQAppCommandInput, DeleteQAppCommandOutput } from "./commands/DeleteQAppCommand";
8
+ import { DisassociateLibraryItemReviewCommandInput, DisassociateLibraryItemReviewCommandOutput } from "./commands/DisassociateLibraryItemReviewCommand";
9
+ import { DisassociateQAppFromUserCommandInput, DisassociateQAppFromUserCommandOutput } from "./commands/DisassociateQAppFromUserCommand";
10
+ import { GetLibraryItemCommandInput, GetLibraryItemCommandOutput } from "./commands/GetLibraryItemCommand";
11
+ import { GetQAppCommandInput, GetQAppCommandOutput } from "./commands/GetQAppCommand";
12
+ import { GetQAppSessionCommandInput, GetQAppSessionCommandOutput } from "./commands/GetQAppSessionCommand";
13
+ import { ImportDocumentCommandInput, ImportDocumentCommandOutput } from "./commands/ImportDocumentCommand";
14
+ import { ListLibraryItemsCommandInput, ListLibraryItemsCommandOutput } from "./commands/ListLibraryItemsCommand";
15
+ import { ListQAppsCommandInput, ListQAppsCommandOutput } from "./commands/ListQAppsCommand";
16
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
17
+ import { PredictQAppCommandInput, PredictQAppCommandOutput } from "./commands/PredictQAppCommand";
18
+ import { StartQAppSessionCommandInput, StartQAppSessionCommandOutput } from "./commands/StartQAppSessionCommand";
19
+ import { StopQAppSessionCommandInput, StopQAppSessionCommandOutput } from "./commands/StopQAppSessionCommand";
20
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
21
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
22
+ import { UpdateLibraryItemCommandInput, UpdateLibraryItemCommandOutput } from "./commands/UpdateLibraryItemCommand";
23
+ import { UpdateQAppCommandInput, UpdateQAppCommandOutput } from "./commands/UpdateQAppCommand";
24
+ import { UpdateQAppSessionCommandInput, UpdateQAppSessionCommandOutput } from "./commands/UpdateQAppSessionCommand";
25
+ import { QAppsClient } from "./QAppsClient";
26
+ export interface QApps {
27
+ /**
28
+ * @see {@link AssociateLibraryItemReviewCommand}
29
+ */
30
+ associateLibraryItemReview(args: AssociateLibraryItemReviewCommandInput, options?: __HttpHandlerOptions): Promise<AssociateLibraryItemReviewCommandOutput>;
31
+ associateLibraryItemReview(args: AssociateLibraryItemReviewCommandInput, cb: (err: any, data?: AssociateLibraryItemReviewCommandOutput) => void): void;
32
+ associateLibraryItemReview(args: AssociateLibraryItemReviewCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateLibraryItemReviewCommandOutput) => void): void;
33
+ /**
34
+ * @see {@link AssociateQAppWithUserCommand}
35
+ */
36
+ associateQAppWithUser(args: AssociateQAppWithUserCommandInput, options?: __HttpHandlerOptions): Promise<AssociateQAppWithUserCommandOutput>;
37
+ associateQAppWithUser(args: AssociateQAppWithUserCommandInput, cb: (err: any, data?: AssociateQAppWithUserCommandOutput) => void): void;
38
+ associateQAppWithUser(args: AssociateQAppWithUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateQAppWithUserCommandOutput) => void): void;
39
+ /**
40
+ * @see {@link CreateLibraryItemCommand}
41
+ */
42
+ createLibraryItem(args: CreateLibraryItemCommandInput, options?: __HttpHandlerOptions): Promise<CreateLibraryItemCommandOutput>;
43
+ createLibraryItem(args: CreateLibraryItemCommandInput, cb: (err: any, data?: CreateLibraryItemCommandOutput) => void): void;
44
+ createLibraryItem(args: CreateLibraryItemCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateLibraryItemCommandOutput) => void): void;
45
+ /**
46
+ * @see {@link CreateQAppCommand}
47
+ */
48
+ createQApp(args: CreateQAppCommandInput, options?: __HttpHandlerOptions): Promise<CreateQAppCommandOutput>;
49
+ createQApp(args: CreateQAppCommandInput, cb: (err: any, data?: CreateQAppCommandOutput) => void): void;
50
+ createQApp(args: CreateQAppCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateQAppCommandOutput) => void): void;
51
+ /**
52
+ * @see {@link DeleteLibraryItemCommand}
53
+ */
54
+ deleteLibraryItem(args: DeleteLibraryItemCommandInput, options?: __HttpHandlerOptions): Promise<DeleteLibraryItemCommandOutput>;
55
+ deleteLibraryItem(args: DeleteLibraryItemCommandInput, cb: (err: any, data?: DeleteLibraryItemCommandOutput) => void): void;
56
+ deleteLibraryItem(args: DeleteLibraryItemCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteLibraryItemCommandOutput) => void): void;
57
+ /**
58
+ * @see {@link DeleteQAppCommand}
59
+ */
60
+ deleteQApp(args: DeleteQAppCommandInput, options?: __HttpHandlerOptions): Promise<DeleteQAppCommandOutput>;
61
+ deleteQApp(args: DeleteQAppCommandInput, cb: (err: any, data?: DeleteQAppCommandOutput) => void): void;
62
+ deleteQApp(args: DeleteQAppCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteQAppCommandOutput) => void): void;
63
+ /**
64
+ * @see {@link DisassociateLibraryItemReviewCommand}
65
+ */
66
+ disassociateLibraryItemReview(args: DisassociateLibraryItemReviewCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateLibraryItemReviewCommandOutput>;
67
+ disassociateLibraryItemReview(args: DisassociateLibraryItemReviewCommandInput, cb: (err: any, data?: DisassociateLibraryItemReviewCommandOutput) => void): void;
68
+ disassociateLibraryItemReview(args: DisassociateLibraryItemReviewCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateLibraryItemReviewCommandOutput) => void): void;
69
+ /**
70
+ * @see {@link DisassociateQAppFromUserCommand}
71
+ */
72
+ disassociateQAppFromUser(args: DisassociateQAppFromUserCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateQAppFromUserCommandOutput>;
73
+ disassociateQAppFromUser(args: DisassociateQAppFromUserCommandInput, cb: (err: any, data?: DisassociateQAppFromUserCommandOutput) => void): void;
74
+ disassociateQAppFromUser(args: DisassociateQAppFromUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateQAppFromUserCommandOutput) => void): void;
75
+ /**
76
+ * @see {@link GetLibraryItemCommand}
77
+ */
78
+ getLibraryItem(args: GetLibraryItemCommandInput, options?: __HttpHandlerOptions): Promise<GetLibraryItemCommandOutput>;
79
+ getLibraryItem(args: GetLibraryItemCommandInput, cb: (err: any, data?: GetLibraryItemCommandOutput) => void): void;
80
+ getLibraryItem(args: GetLibraryItemCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetLibraryItemCommandOutput) => void): void;
81
+ /**
82
+ * @see {@link GetQAppCommand}
83
+ */
84
+ getQApp(args: GetQAppCommandInput, options?: __HttpHandlerOptions): Promise<GetQAppCommandOutput>;
85
+ getQApp(args: GetQAppCommandInput, cb: (err: any, data?: GetQAppCommandOutput) => void): void;
86
+ getQApp(args: GetQAppCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetQAppCommandOutput) => void): void;
87
+ /**
88
+ * @see {@link GetQAppSessionCommand}
89
+ */
90
+ getQAppSession(args: GetQAppSessionCommandInput, options?: __HttpHandlerOptions): Promise<GetQAppSessionCommandOutput>;
91
+ getQAppSession(args: GetQAppSessionCommandInput, cb: (err: any, data?: GetQAppSessionCommandOutput) => void): void;
92
+ getQAppSession(args: GetQAppSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetQAppSessionCommandOutput) => void): void;
93
+ /**
94
+ * @see {@link ImportDocumentCommand}
95
+ */
96
+ importDocument(args: ImportDocumentCommandInput, options?: __HttpHandlerOptions): Promise<ImportDocumentCommandOutput>;
97
+ importDocument(args: ImportDocumentCommandInput, cb: (err: any, data?: ImportDocumentCommandOutput) => void): void;
98
+ importDocument(args: ImportDocumentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ImportDocumentCommandOutput) => void): void;
99
+ /**
100
+ * @see {@link ListLibraryItemsCommand}
101
+ */
102
+ listLibraryItems(args: ListLibraryItemsCommandInput, options?: __HttpHandlerOptions): Promise<ListLibraryItemsCommandOutput>;
103
+ listLibraryItems(args: ListLibraryItemsCommandInput, cb: (err: any, data?: ListLibraryItemsCommandOutput) => void): void;
104
+ listLibraryItems(args: ListLibraryItemsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListLibraryItemsCommandOutput) => void): void;
105
+ /**
106
+ * @see {@link ListQAppsCommand}
107
+ */
108
+ listQApps(args: ListQAppsCommandInput, options?: __HttpHandlerOptions): Promise<ListQAppsCommandOutput>;
109
+ listQApps(args: ListQAppsCommandInput, cb: (err: any, data?: ListQAppsCommandOutput) => void): void;
110
+ listQApps(args: ListQAppsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListQAppsCommandOutput) => void): void;
111
+ /**
112
+ * @see {@link ListTagsForResourceCommand}
113
+ */
114
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
115
+ listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
116
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
117
+ /**
118
+ * @see {@link PredictQAppCommand}
119
+ */
120
+ predictQApp(args: PredictQAppCommandInput, options?: __HttpHandlerOptions): Promise<PredictQAppCommandOutput>;
121
+ predictQApp(args: PredictQAppCommandInput, cb: (err: any, data?: PredictQAppCommandOutput) => void): void;
122
+ predictQApp(args: PredictQAppCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PredictQAppCommandOutput) => void): void;
123
+ /**
124
+ * @see {@link StartQAppSessionCommand}
125
+ */
126
+ startQAppSession(args: StartQAppSessionCommandInput, options?: __HttpHandlerOptions): Promise<StartQAppSessionCommandOutput>;
127
+ startQAppSession(args: StartQAppSessionCommandInput, cb: (err: any, data?: StartQAppSessionCommandOutput) => void): void;
128
+ startQAppSession(args: StartQAppSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartQAppSessionCommandOutput) => void): void;
129
+ /**
130
+ * @see {@link StopQAppSessionCommand}
131
+ */
132
+ stopQAppSession(args: StopQAppSessionCommandInput, options?: __HttpHandlerOptions): Promise<StopQAppSessionCommandOutput>;
133
+ stopQAppSession(args: StopQAppSessionCommandInput, cb: (err: any, data?: StopQAppSessionCommandOutput) => void): void;
134
+ stopQAppSession(args: StopQAppSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopQAppSessionCommandOutput) => void): void;
135
+ /**
136
+ * @see {@link TagResourceCommand}
137
+ */
138
+ tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
139
+ tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
140
+ tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
141
+ /**
142
+ * @see {@link UntagResourceCommand}
143
+ */
144
+ untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
145
+ untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
146
+ untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
147
+ /**
148
+ * @see {@link UpdateLibraryItemCommand}
149
+ */
150
+ updateLibraryItem(args: UpdateLibraryItemCommandInput, options?: __HttpHandlerOptions): Promise<UpdateLibraryItemCommandOutput>;
151
+ updateLibraryItem(args: UpdateLibraryItemCommandInput, cb: (err: any, data?: UpdateLibraryItemCommandOutput) => void): void;
152
+ updateLibraryItem(args: UpdateLibraryItemCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateLibraryItemCommandOutput) => void): void;
153
+ /**
154
+ * @see {@link UpdateQAppCommand}
155
+ */
156
+ updateQApp(args: UpdateQAppCommandInput, options?: __HttpHandlerOptions): Promise<UpdateQAppCommandOutput>;
157
+ updateQApp(args: UpdateQAppCommandInput, cb: (err: any, data?: UpdateQAppCommandOutput) => void): void;
158
+ updateQApp(args: UpdateQAppCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateQAppCommandOutput) => void): void;
159
+ /**
160
+ * @see {@link UpdateQAppSessionCommand}
161
+ */
162
+ updateQAppSession(args: UpdateQAppSessionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateQAppSessionCommandOutput>;
163
+ updateQAppSession(args: UpdateQAppSessionCommandInput, cb: (err: any, data?: UpdateQAppSessionCommandOutput) => void): void;
164
+ updateQAppSession(args: UpdateQAppSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateQAppSessionCommandOutput) => void): void;
165
+ }
166
+ /**
167
+ * <p>The Amazon Q Apps feature capability within Amazon Q Business allows web experience
168
+ * 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
170
+ * 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>.
175
+ * </p>
176
+ * @public
177
+ */
178
+ export declare class QApps extends QAppsClient implements QApps {
179
+ }
@@ -0,0 +1,202 @@
1
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
2
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
3
+ import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
4
+ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
5
+ import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
6
+ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
7
+ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
8
+ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
+ import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
+ import { AssociateLibraryItemReviewCommandInput, AssociateLibraryItemReviewCommandOutput } from "./commands/AssociateLibraryItemReviewCommand";
11
+ import { AssociateQAppWithUserCommandInput, AssociateQAppWithUserCommandOutput } from "./commands/AssociateQAppWithUserCommand";
12
+ import { CreateLibraryItemCommandInput, CreateLibraryItemCommandOutput } from "./commands/CreateLibraryItemCommand";
13
+ import { CreateQAppCommandInput, CreateQAppCommandOutput } from "./commands/CreateQAppCommand";
14
+ import { DeleteLibraryItemCommandInput, DeleteLibraryItemCommandOutput } from "./commands/DeleteLibraryItemCommand";
15
+ import { DeleteQAppCommandInput, DeleteQAppCommandOutput } from "./commands/DeleteQAppCommand";
16
+ import { DisassociateLibraryItemReviewCommandInput, DisassociateLibraryItemReviewCommandOutput } from "./commands/DisassociateLibraryItemReviewCommand";
17
+ import { DisassociateQAppFromUserCommandInput, DisassociateQAppFromUserCommandOutput } from "./commands/DisassociateQAppFromUserCommand";
18
+ import { GetLibraryItemCommandInput, GetLibraryItemCommandOutput } from "./commands/GetLibraryItemCommand";
19
+ import { GetQAppCommandInput, GetQAppCommandOutput } from "./commands/GetQAppCommand";
20
+ import { GetQAppSessionCommandInput, GetQAppSessionCommandOutput } from "./commands/GetQAppSessionCommand";
21
+ import { ImportDocumentCommandInput, ImportDocumentCommandOutput } from "./commands/ImportDocumentCommand";
22
+ import { ListLibraryItemsCommandInput, ListLibraryItemsCommandOutput } from "./commands/ListLibraryItemsCommand";
23
+ import { ListQAppsCommandInput, ListQAppsCommandOutput } from "./commands/ListQAppsCommand";
24
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
25
+ import { PredictQAppCommandInput, PredictQAppCommandOutput } from "./commands/PredictQAppCommand";
26
+ import { StartQAppSessionCommandInput, StartQAppSessionCommandOutput } from "./commands/StartQAppSessionCommand";
27
+ import { StopQAppSessionCommandInput, StopQAppSessionCommandOutput } from "./commands/StopQAppSessionCommand";
28
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
29
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
30
+ import { UpdateLibraryItemCommandInput, UpdateLibraryItemCommandOutput } from "./commands/UpdateLibraryItemCommand";
31
+ import { UpdateQAppCommandInput, UpdateQAppCommandOutput } from "./commands/UpdateQAppCommand";
32
+ import { UpdateQAppSessionCommandInput, UpdateQAppSessionCommandOutput } from "./commands/UpdateQAppSessionCommand";
33
+ import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
34
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
35
+ export { __Client };
36
+ /**
37
+ * @public
38
+ */
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
+ /**
41
+ * @public
42
+ */
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
+ /**
45
+ * @public
46
+ */
47
+ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
48
+ /**
49
+ * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
50
+ */
51
+ requestHandler?: __HttpHandlerUserInput;
52
+ /**
53
+ * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
54
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
55
+ * @internal
56
+ */
57
+ sha256?: __ChecksumConstructor | __HashConstructor;
58
+ /**
59
+ * The function that will be used to convert strings into HTTP endpoints.
60
+ * @internal
61
+ */
62
+ urlParser?: __UrlParser;
63
+ /**
64
+ * A function that can calculate the length of a request body.
65
+ * @internal
66
+ */
67
+ bodyLengthChecker?: __BodyLengthCalculator;
68
+ /**
69
+ * A function that converts a stream into an array of bytes.
70
+ * @internal
71
+ */
72
+ streamCollector?: __StreamCollector;
73
+ /**
74
+ * The function that will be used to convert a base64-encoded string to a byte array.
75
+ * @internal
76
+ */
77
+ base64Decoder?: __Decoder;
78
+ /**
79
+ * The function that will be used to convert binary data to a base64-encoded string.
80
+ * @internal
81
+ */
82
+ base64Encoder?: __Encoder;
83
+ /**
84
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
85
+ * @internal
86
+ */
87
+ utf8Decoder?: __Decoder;
88
+ /**
89
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
90
+ * @internal
91
+ */
92
+ utf8Encoder?: __Encoder;
93
+ /**
94
+ * The runtime environment.
95
+ * @internal
96
+ */
97
+ runtime?: string;
98
+ /**
99
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
100
+ * trait of an operation.
101
+ */
102
+ disableHostPrefix?: boolean;
103
+ /**
104
+ * Unique service identifier.
105
+ * @internal
106
+ */
107
+ serviceId?: string;
108
+ /**
109
+ * Enables IPv6/IPv4 dualstack endpoint.
110
+ */
111
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
112
+ /**
113
+ * Enables FIPS compatible endpoints.
114
+ */
115
+ useFipsEndpoint?: boolean | __Provider<boolean>;
116
+ /**
117
+ * The AWS region to which this client will send requests
118
+ */
119
+ region?: string | __Provider<string>;
120
+ /**
121
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
122
+ * @internal
123
+ */
124
+ defaultUserAgentProvider?: Provider<__UserAgent>;
125
+ /**
126
+ * Default credentials provider; Not available in browser runtime.
127
+ * @deprecated
128
+ * @internal
129
+ */
130
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
131
+ /**
132
+ * Value for how many times a request will be made at most in case of retry.
133
+ */
134
+ maxAttempts?: number | __Provider<number>;
135
+ /**
136
+ * Specifies which retry algorithm to use.
137
+ * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
138
+ *
139
+ */
140
+ retryMode?: string | __Provider<string>;
141
+ /**
142
+ * Optional logger for logging debug/info/warn/error.
143
+ */
144
+ logger?: __Logger;
145
+ /**
146
+ * Optional extensions
147
+ */
148
+ extensions?: RuntimeExtension[];
149
+ /**
150
+ * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
151
+ */
152
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
153
+ }
154
+ /**
155
+ * @public
156
+ */
157
+ export type QAppsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & UserAgentInputConfig & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
158
+ /**
159
+ * @public
160
+ *
161
+ * The configuration interface of QAppsClient class constructor that set the region, credentials and other options.
162
+ */
163
+ export interface QAppsClientConfig extends QAppsClientConfigType {
164
+ }
165
+ /**
166
+ * @public
167
+ */
168
+ export type QAppsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & UserAgentResolvedConfig & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
169
+ /**
170
+ * @public
171
+ *
172
+ * The resolved configuration interface of QAppsClient class. This is resolved and normalized from the {@link QAppsClientConfig | constructor configuration interface}.
173
+ */
174
+ export interface QAppsClientResolvedConfig extends QAppsClientResolvedConfigType {
175
+ }
176
+ /**
177
+ * <p>The Amazon Q Apps feature capability within Amazon Q Business allows web experience
178
+ * 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
+ * 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>.
185
+ * </p>
186
+ * @public
187
+ */
188
+ export declare class QAppsClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, QAppsClientResolvedConfig> {
189
+ /**
190
+ * The resolved configuration of QAppsClient class. This is resolved and normalized from the {@link QAppsClientConfig | constructor configuration interface}.
191
+ */
192
+ readonly config: QAppsClientResolvedConfig;
193
+ constructor(...[configuration]: __CheckOptionalClientConfig<QAppsClientConfig>);
194
+ /**
195
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
196
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
197
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
198
+ */
199
+ destroy(): void;
200
+ private getDefaultHttpAuthSchemeParametersProvider;
201
+ private getIdentityProviderConfigProvider;
202
+ }
@@ -0,0 +1,29 @@
1
+ import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
2
+ import { QAppsHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface HttpAuthExtensionConfiguration {
7
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
8
+ httpAuthSchemes(): HttpAuthScheme[];
9
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider: QAppsHttpAuthSchemeProvider): void;
10
+ httpAuthSchemeProvider(): QAppsHttpAuthSchemeProvider;
11
+ setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
12
+ credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export type HttpAuthRuntimeConfig = Partial<{
18
+ httpAuthSchemes: HttpAuthScheme[];
19
+ httpAuthSchemeProvider: QAppsHttpAuthSchemeProvider;
20
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
21
+ }>;
22
+ /**
23
+ * @internal
24
+ */
25
+ export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
26
+ /**
27
+ * @internal
28
+ */
29
+ export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
@@ -0,0 +1,61 @@
1
+ import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
2
+ import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types";
3
+ import { QAppsClientResolvedConfig } from "../QAppsClient";
4
+ /**
5
+ * @internal
6
+ */
7
+ export interface QAppsHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
8
+ region?: string;
9
+ }
10
+ /**
11
+ * @internal
12
+ */
13
+ export interface QAppsHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<QAppsClientResolvedConfig, HandlerExecutionContext, QAppsHttpAuthSchemeParameters, object> {
14
+ }
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const defaultQAppsHttpAuthSchemeParametersProvider: (config: QAppsClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<QAppsHttpAuthSchemeParameters>;
19
+ /**
20
+ * @internal
21
+ */
22
+ export interface QAppsHttpAuthSchemeProvider extends HttpAuthSchemeProvider<QAppsHttpAuthSchemeParameters> {
23
+ }
24
+ /**
25
+ * @internal
26
+ */
27
+ export declare const defaultQAppsHttpAuthSchemeProvider: QAppsHttpAuthSchemeProvider;
28
+ /**
29
+ * @internal
30
+ */
31
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
32
+ /**
33
+ * experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
34
+ * @internal
35
+ */
36
+ httpAuthSchemes?: HttpAuthScheme[];
37
+ /**
38
+ * experimentalIdentityAndAuth: Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
39
+ * @internal
40
+ */
41
+ httpAuthSchemeProvider?: QAppsHttpAuthSchemeProvider;
42
+ }
43
+ /**
44
+ * @internal
45
+ */
46
+ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
47
+ /**
48
+ * experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
49
+ * @internal
50
+ */
51
+ readonly httpAuthSchemes: HttpAuthScheme[];
52
+ /**
53
+ * experimentalIdentityAndAuth: Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
54
+ * @internal
55
+ */
56
+ readonly httpAuthSchemeProvider: QAppsHttpAuthSchemeProvider;
57
+ }
58
+ /**
59
+ * @internal
60
+ */
61
+ export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;