@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.
- package/LICENSE +201 -0
- package/README.md +397 -0
- package/dist-cjs/QApps.js +57 -0
- package/dist-cjs/QAppsClient.js +56 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/AssociateLibraryItemReviewCommand.js +28 -0
- package/dist-cjs/commands/AssociateQAppWithUserCommand.js +28 -0
- package/dist-cjs/commands/CreateLibraryItemCommand.js +28 -0
- package/dist-cjs/commands/CreateQAppCommand.js +28 -0
- package/dist-cjs/commands/DeleteLibraryItemCommand.js +28 -0
- package/dist-cjs/commands/DeleteQAppCommand.js +28 -0
- package/dist-cjs/commands/DisassociateLibraryItemReviewCommand.js +28 -0
- package/dist-cjs/commands/DisassociateQAppFromUserCommand.js +28 -0
- package/dist-cjs/commands/GetLibraryItemCommand.js +28 -0
- package/dist-cjs/commands/GetQAppCommand.js +28 -0
- package/dist-cjs/commands/GetQAppSessionCommand.js +28 -0
- package/dist-cjs/commands/ImportDocumentCommand.js +28 -0
- package/dist-cjs/commands/ListLibraryItemsCommand.js +28 -0
- package/dist-cjs/commands/ListQAppsCommand.js +28 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +28 -0
- package/dist-cjs/commands/PredictQAppCommand.js +28 -0
- package/dist-cjs/commands/StartQAppSessionCommand.js +28 -0
- package/dist-cjs/commands/StopQAppSessionCommand.js +28 -0
- package/dist-cjs/commands/TagResourceCommand.js +28 -0
- package/dist-cjs/commands/UntagResourceCommand.js +28 -0
- package/dist-cjs/commands/UpdateLibraryItemCommand.js +28 -0
- package/dist-cjs/commands/UpdateQAppCommand.js +28 -0
- package/dist-cjs/commands/UpdateQAppSessionCommand.js +28 -0
- package/dist-cjs/commands/index.js +26 -0
- package/dist-cjs/endpoint/EndpointParameters.js +18 -0
- package/dist-cjs/endpoint/endpointResolver.js +14 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/QAppsServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +236 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListLibraryItemsPaginator.js +7 -0
- package/dist-cjs/pagination/ListQAppsPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1207 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +49 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +34 -0
- package/dist-cjs/runtimeExtensions.js +25 -0
- package/dist-es/QApps.js +53 -0
- package/dist-es/QAppsClient.js +52 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/AssociateLibraryItemReviewCommand.js +24 -0
- package/dist-es/commands/AssociateQAppWithUserCommand.js +24 -0
- package/dist-es/commands/CreateLibraryItemCommand.js +24 -0
- package/dist-es/commands/CreateQAppCommand.js +24 -0
- package/dist-es/commands/DeleteLibraryItemCommand.js +24 -0
- package/dist-es/commands/DeleteQAppCommand.js +24 -0
- package/dist-es/commands/DisassociateLibraryItemReviewCommand.js +24 -0
- package/dist-es/commands/DisassociateQAppFromUserCommand.js +24 -0
- package/dist-es/commands/GetLibraryItemCommand.js +24 -0
- package/dist-es/commands/GetQAppCommand.js +24 -0
- package/dist-es/commands/GetQAppSessionCommand.js +24 -0
- package/dist-es/commands/ImportDocumentCommand.js +24 -0
- package/dist-es/commands/ListLibraryItemsCommand.js +24 -0
- package/dist-es/commands/ListQAppsCommand.js +24 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +24 -0
- package/dist-es/commands/PredictQAppCommand.js +24 -0
- package/dist-es/commands/StartQAppSessionCommand.js +24 -0
- package/dist-es/commands/StopQAppSessionCommand.js +24 -0
- package/dist-es/commands/TagResourceCommand.js +24 -0
- package/dist-es/commands/UntagResourceCommand.js +24 -0
- package/dist-es/commands/UpdateLibraryItemCommand.js +24 -0
- package/dist-es/commands/UpdateQAppCommand.js +24 -0
- package/dist-es/commands/UpdateQAppSessionCommand.js +24 -0
- package/dist-es/commands/index.js +23 -0
- package/dist-es/endpoint/EndpointParameters.js +14 -0
- package/dist-es/endpoint/endpointResolver.js +10 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/QAppsServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +224 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListLibraryItemsPaginator.js +4 -0
- package/dist-es/pagination/ListQAppsPaginator.js +4 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +1158 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +44 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +30 -0
- package/dist-es/runtimeExtensions.js +21 -0
- package/dist-types/QApps.d.ts +179 -0
- package/dist-types/QAppsClient.d.ts +202 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/commands/AssociateLibraryItemReviewCommand.d.ts +83 -0
- package/dist-types/commands/AssociateQAppWithUserCommand.d.ts +85 -0
- package/dist-types/commands/CreateLibraryItemCommand.d.ts +95 -0
- package/dist-types/commands/CreateQAppCommand.d.ts +225 -0
- package/dist-types/commands/DeleteLibraryItemCommand.d.ts +83 -0
- package/dist-types/commands/DeleteQAppCommand.d.ts +78 -0
- package/dist-types/commands/DisassociateLibraryItemReviewCommand.d.ts +82 -0
- package/dist-types/commands/DisassociateQAppFromUserCommand.d.ts +79 -0
- package/dist-types/commands/GetLibraryItemCommand.d.ts +98 -0
- package/dist-types/commands/GetQAppCommand.d.ts +224 -0
- package/dist-types/commands/GetQAppSessionCommand.d.ts +92 -0
- package/dist-types/commands/ImportDocumentCommand.d.ts +97 -0
- package/dist-types/commands/ListLibraryItemsCommand.d.ts +103 -0
- package/dist-types/commands/ListQAppsCommand.d.ts +91 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +78 -0
- package/dist-types/commands/PredictQAppCommand.d.ts +209 -0
- package/dist-types/commands/StartQAppSessionCommand.d.ts +100 -0
- package/dist-types/commands/StopQAppSessionCommand.d.ts +84 -0
- package/dist-types/commands/TagResourceCommand.d.ts +81 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +77 -0
- package/dist-types/commands/UpdateLibraryItemCommand.d.ts +100 -0
- package/dist-types/commands/UpdateQAppCommand.d.ts +216 -0
- package/dist-types/commands/UpdateQAppSessionCommand.d.ts +95 -0
- package/dist-types/commands/index.d.ts +23 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +22 -0
- package/dist-types/models/QAppsServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2138 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListLibraryItemsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListQAppsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +209 -0
- package/dist-types/runtimeConfig.browser.d.ts +45 -0
- package/dist-types/runtimeConfig.d.ts +45 -0
- package/dist-types/runtimeConfig.native.d.ts +44 -0
- package/dist-types/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/QApps.d.ts +396 -0
- package/dist-types/ts3.4/QAppsClient.d.ts +258 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
- package/dist-types/ts3.4/commands/AssociateLibraryItemReviewCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/AssociateQAppWithUserCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/CreateLibraryItemCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateQAppCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/DeleteLibraryItemCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DeleteQAppCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DisassociateLibraryItemReviewCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/DisassociateQAppFromUserCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/GetLibraryItemCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/GetQAppCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/GetQAppSessionCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ImportDocumentCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListLibraryItemsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListQAppsCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/PredictQAppCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/StartQAppSessionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/StopQAppSessionCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateLibraryItemCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateQAppCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/UpdateQAppSessionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +23 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +9 -0
- package/dist-types/ts3.4/models/QAppsServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +681 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
- package/dist-types/ts3.4/pagination/ListLibraryItemsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListQAppsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +281 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +85 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +89 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +79 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- 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;
|