@aws-sdk/client-chatbot 3.517.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 +389 -0
- package/dist-cjs/Chatbot.js +57 -0
- package/dist-cjs/ChatbotClient.js +56 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/CreateChimeWebhookConfigurationCommand.js +28 -0
- package/dist-cjs/commands/CreateMicrosoftTeamsChannelConfigurationCommand.js +28 -0
- package/dist-cjs/commands/CreateSlackChannelConfigurationCommand.js +28 -0
- package/dist-cjs/commands/DeleteChimeWebhookConfigurationCommand.js +28 -0
- package/dist-cjs/commands/DeleteMicrosoftTeamsChannelConfigurationCommand.js +28 -0
- package/dist-cjs/commands/DeleteMicrosoftTeamsConfiguredTeamCommand.js +28 -0
- package/dist-cjs/commands/DeleteMicrosoftTeamsUserIdentityCommand.js +28 -0
- package/dist-cjs/commands/DeleteSlackChannelConfigurationCommand.js +28 -0
- package/dist-cjs/commands/DeleteSlackUserIdentityCommand.js +28 -0
- package/dist-cjs/commands/DeleteSlackWorkspaceAuthorizationCommand.js +28 -0
- package/dist-cjs/commands/DescribeChimeWebhookConfigurationsCommand.js +28 -0
- package/dist-cjs/commands/DescribeSlackChannelConfigurationsCommand.js +28 -0
- package/dist-cjs/commands/DescribeSlackUserIdentitiesCommand.js +28 -0
- package/dist-cjs/commands/DescribeSlackWorkspacesCommand.js +28 -0
- package/dist-cjs/commands/GetAccountPreferencesCommand.js +28 -0
- package/dist-cjs/commands/GetMicrosoftTeamsChannelConfigurationCommand.js +28 -0
- package/dist-cjs/commands/ListMicrosoftTeamsChannelConfigurationsCommand.js +28 -0
- package/dist-cjs/commands/ListMicrosoftTeamsConfiguredTeamsCommand.js +28 -0
- package/dist-cjs/commands/ListMicrosoftTeamsUserIdentitiesCommand.js +28 -0
- package/dist-cjs/commands/UpdateAccountPreferencesCommand.js +28 -0
- package/dist-cjs/commands/UpdateChimeWebhookConfigurationCommand.js +28 -0
- package/dist-cjs/commands/UpdateMicrosoftTeamsChannelConfigurationCommand.js +28 -0
- package/dist-cjs/commands/UpdateSlackChannelConfigurationCommand.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 +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +12 -0
- package/dist-cjs/models/ChatbotServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +392 -0
- package/dist-cjs/pagination/DescribeChimeWebhookConfigurationsPaginator.js +7 -0
- package/dist-cjs/pagination/DescribeSlackChannelConfigurationsPaginator.js +7 -0
- package/dist-cjs/pagination/DescribeSlackUserIdentitiesPaginator.js +7 -0
- package/dist-cjs/pagination/DescribeSlackWorkspacesPaginator.js +7 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListMicrosoftTeamsChannelConfigurationsPaginator.js +7 -0
- package/dist-cjs/pagination/ListMicrosoftTeamsConfiguredTeamsPaginator.js +7 -0
- package/dist-cjs/pagination/ListMicrosoftTeamsUserIdentitiesPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1226 -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/Chatbot.js +53 -0
- package/dist-es/ChatbotClient.js +52 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/CreateChimeWebhookConfigurationCommand.js +24 -0
- package/dist-es/commands/CreateMicrosoftTeamsChannelConfigurationCommand.js +24 -0
- package/dist-es/commands/CreateSlackChannelConfigurationCommand.js +24 -0
- package/dist-es/commands/DeleteChimeWebhookConfigurationCommand.js +24 -0
- package/dist-es/commands/DeleteMicrosoftTeamsChannelConfigurationCommand.js +24 -0
- package/dist-es/commands/DeleteMicrosoftTeamsConfiguredTeamCommand.js +24 -0
- package/dist-es/commands/DeleteMicrosoftTeamsUserIdentityCommand.js +24 -0
- package/dist-es/commands/DeleteSlackChannelConfigurationCommand.js +24 -0
- package/dist-es/commands/DeleteSlackUserIdentityCommand.js +24 -0
- package/dist-es/commands/DeleteSlackWorkspaceAuthorizationCommand.js +24 -0
- package/dist-es/commands/DescribeChimeWebhookConfigurationsCommand.js +24 -0
- package/dist-es/commands/DescribeSlackChannelConfigurationsCommand.js +24 -0
- package/dist-es/commands/DescribeSlackUserIdentitiesCommand.js +24 -0
- package/dist-es/commands/DescribeSlackWorkspacesCommand.js +24 -0
- package/dist-es/commands/GetAccountPreferencesCommand.js +24 -0
- package/dist-es/commands/GetMicrosoftTeamsChannelConfigurationCommand.js +24 -0
- package/dist-es/commands/ListMicrosoftTeamsChannelConfigurationsCommand.js +24 -0
- package/dist-es/commands/ListMicrosoftTeamsConfiguredTeamsCommand.js +24 -0
- package/dist-es/commands/ListMicrosoftTeamsUserIdentitiesCommand.js +24 -0
- package/dist-es/commands/UpdateAccountPreferencesCommand.js +24 -0
- package/dist-es/commands/UpdateChimeWebhookConfigurationCommand.js +24 -0
- package/dist-es/commands/UpdateMicrosoftTeamsChannelConfigurationCommand.js +24 -0
- package/dist-es/commands/UpdateSlackChannelConfigurationCommand.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 +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +7 -0
- package/dist-es/models/ChatbotServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +361 -0
- package/dist-es/pagination/DescribeChimeWebhookConfigurationsPaginator.js +4 -0
- package/dist-es/pagination/DescribeSlackChannelConfigurationsPaginator.js +4 -0
- package/dist-es/pagination/DescribeSlackUserIdentitiesPaginator.js +4 -0
- package/dist-es/pagination/DescribeSlackWorkspacesPaginator.js +4 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListMicrosoftTeamsChannelConfigurationsPaginator.js +4 -0
- package/dist-es/pagination/ListMicrosoftTeamsConfiguredTeamsPaginator.js +4 -0
- package/dist-es/pagination/ListMicrosoftTeamsUserIdentitiesPaginator.js +4 -0
- package/dist-es/pagination/index.js +8 -0
- package/dist-es/protocols/Aws_restJson1.js +1177 -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/Chatbot.d.ts +171 -0
- package/dist-types/ChatbotClient.d.ts +194 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/commands/CreateChimeWebhookConfigurationCommand.d.ts +89 -0
- package/dist-types/commands/CreateMicrosoftTeamsChannelConfigurationCommand.d.ts +104 -0
- package/dist-types/commands/CreateSlackChannelConfigurationCommand.d.ts +101 -0
- package/dist-types/commands/DeleteChimeWebhookConfigurationCommand.d.ts +68 -0
- package/dist-types/commands/DeleteMicrosoftTeamsChannelConfigurationCommand.d.ts +68 -0
- package/dist-types/commands/DeleteMicrosoftTeamsConfiguredTeamCommand.d.ts +62 -0
- package/dist-types/commands/DeleteMicrosoftTeamsUserIdentityCommand.d.ts +66 -0
- package/dist-types/commands/DeleteSlackChannelConfigurationCommand.d.ts +68 -0
- package/dist-types/commands/DeleteSlackUserIdentityCommand.d.ts +67 -0
- package/dist-types/commands/DeleteSlackWorkspaceAuthorizationCommand.d.ts +62 -0
- package/dist-types/commands/DescribeChimeWebhookConfigurationsCommand.d.ts +81 -0
- package/dist-types/commands/DescribeSlackChannelConfigurationsCommand.d.ts +88 -0
- package/dist-types/commands/DescribeSlackUserIdentitiesCommand.d.ts +78 -0
- package/dist-types/commands/DescribeSlackWorkspacesCommand.d.ts +74 -0
- package/dist-types/commands/GetAccountPreferencesCommand.d.ts +65 -0
- package/dist-types/commands/GetMicrosoftTeamsChannelConfigurationCommand.d.ts +84 -0
- package/dist-types/commands/ListMicrosoftTeamsChannelConfigurationsCommand.d.ts +89 -0
- package/dist-types/commands/ListMicrosoftTeamsConfiguredTeamsCommand.d.ts +75 -0
- package/dist-types/commands/ListMicrosoftTeamsUserIdentitiesCommand.d.ts +80 -0
- package/dist-types/commands/UpdateAccountPreferencesCommand.d.ts +71 -0
- package/dist-types/commands/UpdateChimeWebhookConfigurationCommand.d.ts +86 -0
- package/dist-types/commands/UpdateMicrosoftTeamsChannelConfigurationCommand.d.ts +98 -0
- package/dist-types/commands/UpdateSlackChannelConfigurationCommand.d.ts +97 -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 +15 -0
- package/dist-types/models/ChatbotServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1395 -0
- package/dist-types/pagination/DescribeChimeWebhookConfigurationsPaginator.d.ts +7 -0
- package/dist-types/pagination/DescribeSlackChannelConfigurationsPaginator.d.ts +7 -0
- package/dist-types/pagination/DescribeSlackUserIdentitiesPaginator.d.ts +7 -0
- package/dist-types/pagination/DescribeSlackWorkspacesPaginator.d.ts +7 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListMicrosoftTeamsChannelConfigurationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListMicrosoftTeamsConfiguredTeamsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListMicrosoftTeamsUserIdentitiesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +8 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +209 -0
- package/dist-types/runtimeConfig.browser.d.ts +48 -0
- package/dist-types/runtimeConfig.d.ts +48 -0
- package/dist-types/runtimeConfig.native.d.ts +47 -0
- package/dist-types/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/Chatbot.d.ts +456 -0
- package/dist-types/ts3.4/ChatbotClient.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/CreateChimeWebhookConfigurationCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/CreateMicrosoftTeamsChannelConfigurationCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/CreateSlackChannelConfigurationCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/DeleteChimeWebhookConfigurationCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/DeleteMicrosoftTeamsChannelConfigurationCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/DeleteMicrosoftTeamsConfiguredTeamCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/DeleteMicrosoftTeamsUserIdentityCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/DeleteSlackChannelConfigurationCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/DeleteSlackUserIdentityCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/DeleteSlackWorkspaceAuthorizationCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/DescribeChimeWebhookConfigurationsCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/DescribeSlackChannelConfigurationsCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/DescribeSlackUserIdentitiesCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/DescribeSlackWorkspacesCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/GetAccountPreferencesCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/GetMicrosoftTeamsChannelConfigurationCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/ListMicrosoftTeamsChannelConfigurationsCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/ListMicrosoftTeamsConfiguredTeamsCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/ListMicrosoftTeamsUserIdentitiesCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/UpdateAccountPreferencesCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/UpdateChimeWebhookConfigurationCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/UpdateMicrosoftTeamsChannelConfigurationCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/UpdateSlackChannelConfigurationCommand.d.ts +30 -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 +10 -0
- package/dist-types/ts3.4/models/ChatbotServiceException.d.ts +8 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +537 -0
- package/dist-types/ts3.4/pagination/DescribeChimeWebhookConfigurationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeSlackChannelConfigurationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeSlackUserIdentitiesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeSlackWorkspacesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListMicrosoftTeamsChannelConfigurationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListMicrosoftTeamsConfiguredTeamsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListMicrosoftTeamsUserIdentitiesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +8 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +281 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +101 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -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: config?.requestHandler ?? new 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: config?.requestHandler ?? new 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 { defaultChatbotHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
7
|
+
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
8
|
+
export const getRuntimeConfig = (config) => {
|
|
9
|
+
return {
|
|
10
|
+
apiVersion: "2017-10-11",
|
|
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 ?? defaultChatbotHttpAuthSchemeProvider,
|
|
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 ?? "chatbot",
|
|
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,171 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
|
+
import { ChatbotClient } from "./ChatbotClient";
|
|
3
|
+
import { CreateChimeWebhookConfigurationCommandInput, CreateChimeWebhookConfigurationCommandOutput } from "./commands/CreateChimeWebhookConfigurationCommand";
|
|
4
|
+
import { CreateMicrosoftTeamsChannelConfigurationCommandInput, CreateMicrosoftTeamsChannelConfigurationCommandOutput } from "./commands/CreateMicrosoftTeamsChannelConfigurationCommand";
|
|
5
|
+
import { CreateSlackChannelConfigurationCommandInput, CreateSlackChannelConfigurationCommandOutput } from "./commands/CreateSlackChannelConfigurationCommand";
|
|
6
|
+
import { DeleteChimeWebhookConfigurationCommandInput, DeleteChimeWebhookConfigurationCommandOutput } from "./commands/DeleteChimeWebhookConfigurationCommand";
|
|
7
|
+
import { DeleteMicrosoftTeamsChannelConfigurationCommandInput, DeleteMicrosoftTeamsChannelConfigurationCommandOutput } from "./commands/DeleteMicrosoftTeamsChannelConfigurationCommand";
|
|
8
|
+
import { DeleteMicrosoftTeamsConfiguredTeamCommandInput, DeleteMicrosoftTeamsConfiguredTeamCommandOutput } from "./commands/DeleteMicrosoftTeamsConfiguredTeamCommand";
|
|
9
|
+
import { DeleteMicrosoftTeamsUserIdentityCommandInput, DeleteMicrosoftTeamsUserIdentityCommandOutput } from "./commands/DeleteMicrosoftTeamsUserIdentityCommand";
|
|
10
|
+
import { DeleteSlackChannelConfigurationCommandInput, DeleteSlackChannelConfigurationCommandOutput } from "./commands/DeleteSlackChannelConfigurationCommand";
|
|
11
|
+
import { DeleteSlackUserIdentityCommandInput, DeleteSlackUserIdentityCommandOutput } from "./commands/DeleteSlackUserIdentityCommand";
|
|
12
|
+
import { DeleteSlackWorkspaceAuthorizationCommandInput, DeleteSlackWorkspaceAuthorizationCommandOutput } from "./commands/DeleteSlackWorkspaceAuthorizationCommand";
|
|
13
|
+
import { DescribeChimeWebhookConfigurationsCommandInput, DescribeChimeWebhookConfigurationsCommandOutput } from "./commands/DescribeChimeWebhookConfigurationsCommand";
|
|
14
|
+
import { DescribeSlackChannelConfigurationsCommandInput, DescribeSlackChannelConfigurationsCommandOutput } from "./commands/DescribeSlackChannelConfigurationsCommand";
|
|
15
|
+
import { DescribeSlackUserIdentitiesCommandInput, DescribeSlackUserIdentitiesCommandOutput } from "./commands/DescribeSlackUserIdentitiesCommand";
|
|
16
|
+
import { DescribeSlackWorkspacesCommandInput, DescribeSlackWorkspacesCommandOutput } from "./commands/DescribeSlackWorkspacesCommand";
|
|
17
|
+
import { GetAccountPreferencesCommandInput, GetAccountPreferencesCommandOutput } from "./commands/GetAccountPreferencesCommand";
|
|
18
|
+
import { GetMicrosoftTeamsChannelConfigurationCommandInput, GetMicrosoftTeamsChannelConfigurationCommandOutput } from "./commands/GetMicrosoftTeamsChannelConfigurationCommand";
|
|
19
|
+
import { ListMicrosoftTeamsChannelConfigurationsCommandInput, ListMicrosoftTeamsChannelConfigurationsCommandOutput } from "./commands/ListMicrosoftTeamsChannelConfigurationsCommand";
|
|
20
|
+
import { ListMicrosoftTeamsConfiguredTeamsCommandInput, ListMicrosoftTeamsConfiguredTeamsCommandOutput } from "./commands/ListMicrosoftTeamsConfiguredTeamsCommand";
|
|
21
|
+
import { ListMicrosoftTeamsUserIdentitiesCommandInput, ListMicrosoftTeamsUserIdentitiesCommandOutput } from "./commands/ListMicrosoftTeamsUserIdentitiesCommand";
|
|
22
|
+
import { UpdateAccountPreferencesCommandInput, UpdateAccountPreferencesCommandOutput } from "./commands/UpdateAccountPreferencesCommand";
|
|
23
|
+
import { UpdateChimeWebhookConfigurationCommandInput, UpdateChimeWebhookConfigurationCommandOutput } from "./commands/UpdateChimeWebhookConfigurationCommand";
|
|
24
|
+
import { UpdateMicrosoftTeamsChannelConfigurationCommandInput, UpdateMicrosoftTeamsChannelConfigurationCommandOutput } from "./commands/UpdateMicrosoftTeamsChannelConfigurationCommand";
|
|
25
|
+
import { UpdateSlackChannelConfigurationCommandInput, UpdateSlackChannelConfigurationCommandOutput } from "./commands/UpdateSlackChannelConfigurationCommand";
|
|
26
|
+
export interface Chatbot {
|
|
27
|
+
/**
|
|
28
|
+
* @see {@link CreateChimeWebhookConfigurationCommand}
|
|
29
|
+
*/
|
|
30
|
+
createChimeWebhookConfiguration(args: CreateChimeWebhookConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<CreateChimeWebhookConfigurationCommandOutput>;
|
|
31
|
+
createChimeWebhookConfiguration(args: CreateChimeWebhookConfigurationCommandInput, cb: (err: any, data?: CreateChimeWebhookConfigurationCommandOutput) => void): void;
|
|
32
|
+
createChimeWebhookConfiguration(args: CreateChimeWebhookConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateChimeWebhookConfigurationCommandOutput) => void): void;
|
|
33
|
+
/**
|
|
34
|
+
* @see {@link CreateMicrosoftTeamsChannelConfigurationCommand}
|
|
35
|
+
*/
|
|
36
|
+
createMicrosoftTeamsChannelConfiguration(args: CreateMicrosoftTeamsChannelConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<CreateMicrosoftTeamsChannelConfigurationCommandOutput>;
|
|
37
|
+
createMicrosoftTeamsChannelConfiguration(args: CreateMicrosoftTeamsChannelConfigurationCommandInput, cb: (err: any, data?: CreateMicrosoftTeamsChannelConfigurationCommandOutput) => void): void;
|
|
38
|
+
createMicrosoftTeamsChannelConfiguration(args: CreateMicrosoftTeamsChannelConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateMicrosoftTeamsChannelConfigurationCommandOutput) => void): void;
|
|
39
|
+
/**
|
|
40
|
+
* @see {@link CreateSlackChannelConfigurationCommand}
|
|
41
|
+
*/
|
|
42
|
+
createSlackChannelConfiguration(args: CreateSlackChannelConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<CreateSlackChannelConfigurationCommandOutput>;
|
|
43
|
+
createSlackChannelConfiguration(args: CreateSlackChannelConfigurationCommandInput, cb: (err: any, data?: CreateSlackChannelConfigurationCommandOutput) => void): void;
|
|
44
|
+
createSlackChannelConfiguration(args: CreateSlackChannelConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateSlackChannelConfigurationCommandOutput) => void): void;
|
|
45
|
+
/**
|
|
46
|
+
* @see {@link DeleteChimeWebhookConfigurationCommand}
|
|
47
|
+
*/
|
|
48
|
+
deleteChimeWebhookConfiguration(args: DeleteChimeWebhookConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteChimeWebhookConfigurationCommandOutput>;
|
|
49
|
+
deleteChimeWebhookConfiguration(args: DeleteChimeWebhookConfigurationCommandInput, cb: (err: any, data?: DeleteChimeWebhookConfigurationCommandOutput) => void): void;
|
|
50
|
+
deleteChimeWebhookConfiguration(args: DeleteChimeWebhookConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteChimeWebhookConfigurationCommandOutput) => void): void;
|
|
51
|
+
/**
|
|
52
|
+
* @see {@link DeleteMicrosoftTeamsChannelConfigurationCommand}
|
|
53
|
+
*/
|
|
54
|
+
deleteMicrosoftTeamsChannelConfiguration(args: DeleteMicrosoftTeamsChannelConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteMicrosoftTeamsChannelConfigurationCommandOutput>;
|
|
55
|
+
deleteMicrosoftTeamsChannelConfiguration(args: DeleteMicrosoftTeamsChannelConfigurationCommandInput, cb: (err: any, data?: DeleteMicrosoftTeamsChannelConfigurationCommandOutput) => void): void;
|
|
56
|
+
deleteMicrosoftTeamsChannelConfiguration(args: DeleteMicrosoftTeamsChannelConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteMicrosoftTeamsChannelConfigurationCommandOutput) => void): void;
|
|
57
|
+
/**
|
|
58
|
+
* @see {@link DeleteMicrosoftTeamsConfiguredTeamCommand}
|
|
59
|
+
*/
|
|
60
|
+
deleteMicrosoftTeamsConfiguredTeam(args: DeleteMicrosoftTeamsConfiguredTeamCommandInput, options?: __HttpHandlerOptions): Promise<DeleteMicrosoftTeamsConfiguredTeamCommandOutput>;
|
|
61
|
+
deleteMicrosoftTeamsConfiguredTeam(args: DeleteMicrosoftTeamsConfiguredTeamCommandInput, cb: (err: any, data?: DeleteMicrosoftTeamsConfiguredTeamCommandOutput) => void): void;
|
|
62
|
+
deleteMicrosoftTeamsConfiguredTeam(args: DeleteMicrosoftTeamsConfiguredTeamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteMicrosoftTeamsConfiguredTeamCommandOutput) => void): void;
|
|
63
|
+
/**
|
|
64
|
+
* @see {@link DeleteMicrosoftTeamsUserIdentityCommand}
|
|
65
|
+
*/
|
|
66
|
+
deleteMicrosoftTeamsUserIdentity(args: DeleteMicrosoftTeamsUserIdentityCommandInput, options?: __HttpHandlerOptions): Promise<DeleteMicrosoftTeamsUserIdentityCommandOutput>;
|
|
67
|
+
deleteMicrosoftTeamsUserIdentity(args: DeleteMicrosoftTeamsUserIdentityCommandInput, cb: (err: any, data?: DeleteMicrosoftTeamsUserIdentityCommandOutput) => void): void;
|
|
68
|
+
deleteMicrosoftTeamsUserIdentity(args: DeleteMicrosoftTeamsUserIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteMicrosoftTeamsUserIdentityCommandOutput) => void): void;
|
|
69
|
+
/**
|
|
70
|
+
* @see {@link DeleteSlackChannelConfigurationCommand}
|
|
71
|
+
*/
|
|
72
|
+
deleteSlackChannelConfiguration(args: DeleteSlackChannelConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteSlackChannelConfigurationCommandOutput>;
|
|
73
|
+
deleteSlackChannelConfiguration(args: DeleteSlackChannelConfigurationCommandInput, cb: (err: any, data?: DeleteSlackChannelConfigurationCommandOutput) => void): void;
|
|
74
|
+
deleteSlackChannelConfiguration(args: DeleteSlackChannelConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteSlackChannelConfigurationCommandOutput) => void): void;
|
|
75
|
+
/**
|
|
76
|
+
* @see {@link DeleteSlackUserIdentityCommand}
|
|
77
|
+
*/
|
|
78
|
+
deleteSlackUserIdentity(args: DeleteSlackUserIdentityCommandInput, options?: __HttpHandlerOptions): Promise<DeleteSlackUserIdentityCommandOutput>;
|
|
79
|
+
deleteSlackUserIdentity(args: DeleteSlackUserIdentityCommandInput, cb: (err: any, data?: DeleteSlackUserIdentityCommandOutput) => void): void;
|
|
80
|
+
deleteSlackUserIdentity(args: DeleteSlackUserIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteSlackUserIdentityCommandOutput) => void): void;
|
|
81
|
+
/**
|
|
82
|
+
* @see {@link DeleteSlackWorkspaceAuthorizationCommand}
|
|
83
|
+
*/
|
|
84
|
+
deleteSlackWorkspaceAuthorization(args: DeleteSlackWorkspaceAuthorizationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteSlackWorkspaceAuthorizationCommandOutput>;
|
|
85
|
+
deleteSlackWorkspaceAuthorization(args: DeleteSlackWorkspaceAuthorizationCommandInput, cb: (err: any, data?: DeleteSlackWorkspaceAuthorizationCommandOutput) => void): void;
|
|
86
|
+
deleteSlackWorkspaceAuthorization(args: DeleteSlackWorkspaceAuthorizationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteSlackWorkspaceAuthorizationCommandOutput) => void): void;
|
|
87
|
+
/**
|
|
88
|
+
* @see {@link DescribeChimeWebhookConfigurationsCommand}
|
|
89
|
+
*/
|
|
90
|
+
describeChimeWebhookConfigurations(args: DescribeChimeWebhookConfigurationsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeChimeWebhookConfigurationsCommandOutput>;
|
|
91
|
+
describeChimeWebhookConfigurations(args: DescribeChimeWebhookConfigurationsCommandInput, cb: (err: any, data?: DescribeChimeWebhookConfigurationsCommandOutput) => void): void;
|
|
92
|
+
describeChimeWebhookConfigurations(args: DescribeChimeWebhookConfigurationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeChimeWebhookConfigurationsCommandOutput) => void): void;
|
|
93
|
+
/**
|
|
94
|
+
* @see {@link DescribeSlackChannelConfigurationsCommand}
|
|
95
|
+
*/
|
|
96
|
+
describeSlackChannelConfigurations(args: DescribeSlackChannelConfigurationsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeSlackChannelConfigurationsCommandOutput>;
|
|
97
|
+
describeSlackChannelConfigurations(args: DescribeSlackChannelConfigurationsCommandInput, cb: (err: any, data?: DescribeSlackChannelConfigurationsCommandOutput) => void): void;
|
|
98
|
+
describeSlackChannelConfigurations(args: DescribeSlackChannelConfigurationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeSlackChannelConfigurationsCommandOutput) => void): void;
|
|
99
|
+
/**
|
|
100
|
+
* @see {@link DescribeSlackUserIdentitiesCommand}
|
|
101
|
+
*/
|
|
102
|
+
describeSlackUserIdentities(args: DescribeSlackUserIdentitiesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeSlackUserIdentitiesCommandOutput>;
|
|
103
|
+
describeSlackUserIdentities(args: DescribeSlackUserIdentitiesCommandInput, cb: (err: any, data?: DescribeSlackUserIdentitiesCommandOutput) => void): void;
|
|
104
|
+
describeSlackUserIdentities(args: DescribeSlackUserIdentitiesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeSlackUserIdentitiesCommandOutput) => void): void;
|
|
105
|
+
/**
|
|
106
|
+
* @see {@link DescribeSlackWorkspacesCommand}
|
|
107
|
+
*/
|
|
108
|
+
describeSlackWorkspaces(args: DescribeSlackWorkspacesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeSlackWorkspacesCommandOutput>;
|
|
109
|
+
describeSlackWorkspaces(args: DescribeSlackWorkspacesCommandInput, cb: (err: any, data?: DescribeSlackWorkspacesCommandOutput) => void): void;
|
|
110
|
+
describeSlackWorkspaces(args: DescribeSlackWorkspacesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeSlackWorkspacesCommandOutput) => void): void;
|
|
111
|
+
/**
|
|
112
|
+
* @see {@link GetAccountPreferencesCommand}
|
|
113
|
+
*/
|
|
114
|
+
getAccountPreferences(args: GetAccountPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<GetAccountPreferencesCommandOutput>;
|
|
115
|
+
getAccountPreferences(args: GetAccountPreferencesCommandInput, cb: (err: any, data?: GetAccountPreferencesCommandOutput) => void): void;
|
|
116
|
+
getAccountPreferences(args: GetAccountPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAccountPreferencesCommandOutput) => void): void;
|
|
117
|
+
/**
|
|
118
|
+
* @see {@link GetMicrosoftTeamsChannelConfigurationCommand}
|
|
119
|
+
*/
|
|
120
|
+
getMicrosoftTeamsChannelConfiguration(args: GetMicrosoftTeamsChannelConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<GetMicrosoftTeamsChannelConfigurationCommandOutput>;
|
|
121
|
+
getMicrosoftTeamsChannelConfiguration(args: GetMicrosoftTeamsChannelConfigurationCommandInput, cb: (err: any, data?: GetMicrosoftTeamsChannelConfigurationCommandOutput) => void): void;
|
|
122
|
+
getMicrosoftTeamsChannelConfiguration(args: GetMicrosoftTeamsChannelConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMicrosoftTeamsChannelConfigurationCommandOutput) => void): void;
|
|
123
|
+
/**
|
|
124
|
+
* @see {@link ListMicrosoftTeamsChannelConfigurationsCommand}
|
|
125
|
+
*/
|
|
126
|
+
listMicrosoftTeamsChannelConfigurations(args: ListMicrosoftTeamsChannelConfigurationsCommandInput, options?: __HttpHandlerOptions): Promise<ListMicrosoftTeamsChannelConfigurationsCommandOutput>;
|
|
127
|
+
listMicrosoftTeamsChannelConfigurations(args: ListMicrosoftTeamsChannelConfigurationsCommandInput, cb: (err: any, data?: ListMicrosoftTeamsChannelConfigurationsCommandOutput) => void): void;
|
|
128
|
+
listMicrosoftTeamsChannelConfigurations(args: ListMicrosoftTeamsChannelConfigurationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListMicrosoftTeamsChannelConfigurationsCommandOutput) => void): void;
|
|
129
|
+
/**
|
|
130
|
+
* @see {@link ListMicrosoftTeamsConfiguredTeamsCommand}
|
|
131
|
+
*/
|
|
132
|
+
listMicrosoftTeamsConfiguredTeams(args: ListMicrosoftTeamsConfiguredTeamsCommandInput, options?: __HttpHandlerOptions): Promise<ListMicrosoftTeamsConfiguredTeamsCommandOutput>;
|
|
133
|
+
listMicrosoftTeamsConfiguredTeams(args: ListMicrosoftTeamsConfiguredTeamsCommandInput, cb: (err: any, data?: ListMicrosoftTeamsConfiguredTeamsCommandOutput) => void): void;
|
|
134
|
+
listMicrosoftTeamsConfiguredTeams(args: ListMicrosoftTeamsConfiguredTeamsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListMicrosoftTeamsConfiguredTeamsCommandOutput) => void): void;
|
|
135
|
+
/**
|
|
136
|
+
* @see {@link ListMicrosoftTeamsUserIdentitiesCommand}
|
|
137
|
+
*/
|
|
138
|
+
listMicrosoftTeamsUserIdentities(args: ListMicrosoftTeamsUserIdentitiesCommandInput, options?: __HttpHandlerOptions): Promise<ListMicrosoftTeamsUserIdentitiesCommandOutput>;
|
|
139
|
+
listMicrosoftTeamsUserIdentities(args: ListMicrosoftTeamsUserIdentitiesCommandInput, cb: (err: any, data?: ListMicrosoftTeamsUserIdentitiesCommandOutput) => void): void;
|
|
140
|
+
listMicrosoftTeamsUserIdentities(args: ListMicrosoftTeamsUserIdentitiesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListMicrosoftTeamsUserIdentitiesCommandOutput) => void): void;
|
|
141
|
+
/**
|
|
142
|
+
* @see {@link UpdateAccountPreferencesCommand}
|
|
143
|
+
*/
|
|
144
|
+
updateAccountPreferences(args: UpdateAccountPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<UpdateAccountPreferencesCommandOutput>;
|
|
145
|
+
updateAccountPreferences(args: UpdateAccountPreferencesCommandInput, cb: (err: any, data?: UpdateAccountPreferencesCommandOutput) => void): void;
|
|
146
|
+
updateAccountPreferences(args: UpdateAccountPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateAccountPreferencesCommandOutput) => void): void;
|
|
147
|
+
/**
|
|
148
|
+
* @see {@link UpdateChimeWebhookConfigurationCommand}
|
|
149
|
+
*/
|
|
150
|
+
updateChimeWebhookConfiguration(args: UpdateChimeWebhookConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateChimeWebhookConfigurationCommandOutput>;
|
|
151
|
+
updateChimeWebhookConfiguration(args: UpdateChimeWebhookConfigurationCommandInput, cb: (err: any, data?: UpdateChimeWebhookConfigurationCommandOutput) => void): void;
|
|
152
|
+
updateChimeWebhookConfiguration(args: UpdateChimeWebhookConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateChimeWebhookConfigurationCommandOutput) => void): void;
|
|
153
|
+
/**
|
|
154
|
+
* @see {@link UpdateMicrosoftTeamsChannelConfigurationCommand}
|
|
155
|
+
*/
|
|
156
|
+
updateMicrosoftTeamsChannelConfiguration(args: UpdateMicrosoftTeamsChannelConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateMicrosoftTeamsChannelConfigurationCommandOutput>;
|
|
157
|
+
updateMicrosoftTeamsChannelConfiguration(args: UpdateMicrosoftTeamsChannelConfigurationCommandInput, cb: (err: any, data?: UpdateMicrosoftTeamsChannelConfigurationCommandOutput) => void): void;
|
|
158
|
+
updateMicrosoftTeamsChannelConfiguration(args: UpdateMicrosoftTeamsChannelConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateMicrosoftTeamsChannelConfigurationCommandOutput) => void): void;
|
|
159
|
+
/**
|
|
160
|
+
* @see {@link UpdateSlackChannelConfigurationCommand}
|
|
161
|
+
*/
|
|
162
|
+
updateSlackChannelConfiguration(args: UpdateSlackChannelConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSlackChannelConfigurationCommandOutput>;
|
|
163
|
+
updateSlackChannelConfiguration(args: UpdateSlackChannelConfigurationCommandInput, cb: (err: any, data?: UpdateSlackChannelConfigurationCommandOutput) => void): void;
|
|
164
|
+
updateSlackChannelConfiguration(args: UpdateSlackChannelConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSlackChannelConfigurationCommandOutput) => void): void;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* @public
|
|
168
|
+
* AWS Chatbot API
|
|
169
|
+
*/
|
|
170
|
+
export declare class Chatbot extends ChatbotClient implements Chatbot {
|
|
171
|
+
}
|
|
@@ -0,0 +1,194 @@
|
|
|
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 { HttpHandler as __HttpHandler } 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 { CreateChimeWebhookConfigurationCommandInput, CreateChimeWebhookConfigurationCommandOutput } from "./commands/CreateChimeWebhookConfigurationCommand";
|
|
11
|
+
import { CreateMicrosoftTeamsChannelConfigurationCommandInput, CreateMicrosoftTeamsChannelConfigurationCommandOutput } from "./commands/CreateMicrosoftTeamsChannelConfigurationCommand";
|
|
12
|
+
import { CreateSlackChannelConfigurationCommandInput, CreateSlackChannelConfigurationCommandOutput } from "./commands/CreateSlackChannelConfigurationCommand";
|
|
13
|
+
import { DeleteChimeWebhookConfigurationCommandInput, DeleteChimeWebhookConfigurationCommandOutput } from "./commands/DeleteChimeWebhookConfigurationCommand";
|
|
14
|
+
import { DeleteMicrosoftTeamsChannelConfigurationCommandInput, DeleteMicrosoftTeamsChannelConfigurationCommandOutput } from "./commands/DeleteMicrosoftTeamsChannelConfigurationCommand";
|
|
15
|
+
import { DeleteMicrosoftTeamsConfiguredTeamCommandInput, DeleteMicrosoftTeamsConfiguredTeamCommandOutput } from "./commands/DeleteMicrosoftTeamsConfiguredTeamCommand";
|
|
16
|
+
import { DeleteMicrosoftTeamsUserIdentityCommandInput, DeleteMicrosoftTeamsUserIdentityCommandOutput } from "./commands/DeleteMicrosoftTeamsUserIdentityCommand";
|
|
17
|
+
import { DeleteSlackChannelConfigurationCommandInput, DeleteSlackChannelConfigurationCommandOutput } from "./commands/DeleteSlackChannelConfigurationCommand";
|
|
18
|
+
import { DeleteSlackUserIdentityCommandInput, DeleteSlackUserIdentityCommandOutput } from "./commands/DeleteSlackUserIdentityCommand";
|
|
19
|
+
import { DeleteSlackWorkspaceAuthorizationCommandInput, DeleteSlackWorkspaceAuthorizationCommandOutput } from "./commands/DeleteSlackWorkspaceAuthorizationCommand";
|
|
20
|
+
import { DescribeChimeWebhookConfigurationsCommandInput, DescribeChimeWebhookConfigurationsCommandOutput } from "./commands/DescribeChimeWebhookConfigurationsCommand";
|
|
21
|
+
import { DescribeSlackChannelConfigurationsCommandInput, DescribeSlackChannelConfigurationsCommandOutput } from "./commands/DescribeSlackChannelConfigurationsCommand";
|
|
22
|
+
import { DescribeSlackUserIdentitiesCommandInput, DescribeSlackUserIdentitiesCommandOutput } from "./commands/DescribeSlackUserIdentitiesCommand";
|
|
23
|
+
import { DescribeSlackWorkspacesCommandInput, DescribeSlackWorkspacesCommandOutput } from "./commands/DescribeSlackWorkspacesCommand";
|
|
24
|
+
import { GetAccountPreferencesCommandInput, GetAccountPreferencesCommandOutput } from "./commands/GetAccountPreferencesCommand";
|
|
25
|
+
import { GetMicrosoftTeamsChannelConfigurationCommandInput, GetMicrosoftTeamsChannelConfigurationCommandOutput } from "./commands/GetMicrosoftTeamsChannelConfigurationCommand";
|
|
26
|
+
import { ListMicrosoftTeamsChannelConfigurationsCommandInput, ListMicrosoftTeamsChannelConfigurationsCommandOutput } from "./commands/ListMicrosoftTeamsChannelConfigurationsCommand";
|
|
27
|
+
import { ListMicrosoftTeamsConfiguredTeamsCommandInput, ListMicrosoftTeamsConfiguredTeamsCommandOutput } from "./commands/ListMicrosoftTeamsConfiguredTeamsCommand";
|
|
28
|
+
import { ListMicrosoftTeamsUserIdentitiesCommandInput, ListMicrosoftTeamsUserIdentitiesCommandOutput } from "./commands/ListMicrosoftTeamsUserIdentitiesCommand";
|
|
29
|
+
import { UpdateAccountPreferencesCommandInput, UpdateAccountPreferencesCommandOutput } from "./commands/UpdateAccountPreferencesCommand";
|
|
30
|
+
import { UpdateChimeWebhookConfigurationCommandInput, UpdateChimeWebhookConfigurationCommandOutput } from "./commands/UpdateChimeWebhookConfigurationCommand";
|
|
31
|
+
import { UpdateMicrosoftTeamsChannelConfigurationCommandInput, UpdateMicrosoftTeamsChannelConfigurationCommandOutput } from "./commands/UpdateMicrosoftTeamsChannelConfigurationCommand";
|
|
32
|
+
import { UpdateSlackChannelConfigurationCommandInput, UpdateSlackChannelConfigurationCommandOutput } from "./commands/UpdateSlackChannelConfigurationCommand";
|
|
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 = CreateChimeWebhookConfigurationCommandInput | CreateMicrosoftTeamsChannelConfigurationCommandInput | CreateSlackChannelConfigurationCommandInput | DeleteChimeWebhookConfigurationCommandInput | DeleteMicrosoftTeamsChannelConfigurationCommandInput | DeleteMicrosoftTeamsConfiguredTeamCommandInput | DeleteMicrosoftTeamsUserIdentityCommandInput | DeleteSlackChannelConfigurationCommandInput | DeleteSlackUserIdentityCommandInput | DeleteSlackWorkspaceAuthorizationCommandInput | DescribeChimeWebhookConfigurationsCommandInput | DescribeSlackChannelConfigurationsCommandInput | DescribeSlackUserIdentitiesCommandInput | DescribeSlackWorkspacesCommandInput | GetAccountPreferencesCommandInput | GetMicrosoftTeamsChannelConfigurationCommandInput | ListMicrosoftTeamsChannelConfigurationsCommandInput | ListMicrosoftTeamsConfiguredTeamsCommandInput | ListMicrosoftTeamsUserIdentitiesCommandInput | UpdateAccountPreferencesCommandInput | UpdateChimeWebhookConfigurationCommandInput | UpdateMicrosoftTeamsChannelConfigurationCommandInput | UpdateSlackChannelConfigurationCommandInput;
|
|
40
|
+
/**
|
|
41
|
+
* @public
|
|
42
|
+
*/
|
|
43
|
+
export type ServiceOutputTypes = CreateChimeWebhookConfigurationCommandOutput | CreateMicrosoftTeamsChannelConfigurationCommandOutput | CreateSlackChannelConfigurationCommandOutput | DeleteChimeWebhookConfigurationCommandOutput | DeleteMicrosoftTeamsChannelConfigurationCommandOutput | DeleteMicrosoftTeamsConfiguredTeamCommandOutput | DeleteMicrosoftTeamsUserIdentityCommandOutput | DeleteSlackChannelConfigurationCommandOutput | DeleteSlackUserIdentityCommandOutput | DeleteSlackWorkspaceAuthorizationCommandOutput | DescribeChimeWebhookConfigurationsCommandOutput | DescribeSlackChannelConfigurationsCommandOutput | DescribeSlackUserIdentitiesCommandOutput | DescribeSlackWorkspacesCommandOutput | GetAccountPreferencesCommandOutput | GetMicrosoftTeamsChannelConfigurationCommandOutput | ListMicrosoftTeamsChannelConfigurationsCommandOutput | ListMicrosoftTeamsConfiguredTeamsCommandOutput | ListMicrosoftTeamsUserIdentitiesCommandOutput | UpdateAccountPreferencesCommandOutput | UpdateChimeWebhookConfigurationCommandOutput | UpdateMicrosoftTeamsChannelConfigurationCommandOutput | UpdateSlackChannelConfigurationCommandOutput;
|
|
44
|
+
/**
|
|
45
|
+
* @public
|
|
46
|
+
*/
|
|
47
|
+
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
48
|
+
/**
|
|
49
|
+
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
50
|
+
*/
|
|
51
|
+
requestHandler?: __HttpHandler;
|
|
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 provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
118
|
+
* @internal
|
|
119
|
+
*/
|
|
120
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
121
|
+
/**
|
|
122
|
+
* The AWS region to which this client will send requests
|
|
123
|
+
*/
|
|
124
|
+
region?: string | __Provider<string>;
|
|
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 ChatbotClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & UserAgentInputConfig & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
|
|
158
|
+
/**
|
|
159
|
+
* @public
|
|
160
|
+
*
|
|
161
|
+
* The configuration interface of ChatbotClient class constructor that set the region, credentials and other options.
|
|
162
|
+
*/
|
|
163
|
+
export interface ChatbotClientConfig extends ChatbotClientConfigType {
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* @public
|
|
167
|
+
*/
|
|
168
|
+
export type ChatbotClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & UserAgentResolvedConfig & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
|
|
169
|
+
/**
|
|
170
|
+
* @public
|
|
171
|
+
*
|
|
172
|
+
* The resolved configuration interface of ChatbotClient class. This is resolved and normalized from the {@link ChatbotClientConfig | constructor configuration interface}.
|
|
173
|
+
*/
|
|
174
|
+
export interface ChatbotClientResolvedConfig extends ChatbotClientResolvedConfigType {
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* @public
|
|
178
|
+
* AWS Chatbot API
|
|
179
|
+
*/
|
|
180
|
+
export declare class ChatbotClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, ChatbotClientResolvedConfig> {
|
|
181
|
+
/**
|
|
182
|
+
* The resolved configuration of ChatbotClient class. This is resolved and normalized from the {@link ChatbotClientConfig | constructor configuration interface}.
|
|
183
|
+
*/
|
|
184
|
+
readonly config: ChatbotClientResolvedConfig;
|
|
185
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<ChatbotClientConfig>);
|
|
186
|
+
/**
|
|
187
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
188
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
189
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
190
|
+
*/
|
|
191
|
+
destroy(): void;
|
|
192
|
+
private getDefaultHttpAuthSchemeParametersProvider;
|
|
193
|
+
private getIdentityProviderConfigProvider;
|
|
194
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
|
|
2
|
+
import { ChatbotHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface HttpAuthExtensionConfiguration {
|
|
7
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
8
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
9
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider: ChatbotHttpAuthSchemeProvider): void;
|
|
10
|
+
httpAuthSchemeProvider(): ChatbotHttpAuthSchemeProvider;
|
|
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: ChatbotHttpAuthSchemeProvider;
|
|
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 { ChatbotClientResolvedConfig } from "../ChatbotClient";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface ChatbotHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
8
|
+
region?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export interface ChatbotHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<ChatbotClientResolvedConfig, HandlerExecutionContext, ChatbotHttpAuthSchemeParameters, object> {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const defaultChatbotHttpAuthSchemeParametersProvider: (config: ChatbotClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<ChatbotHttpAuthSchemeParameters>;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export interface ChatbotHttpAuthSchemeProvider extends HttpAuthSchemeProvider<ChatbotHttpAuthSchemeParameters> {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export declare const defaultChatbotHttpAuthSchemeProvider: ChatbotHttpAuthSchemeProvider;
|
|
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?: ChatbotHttpAuthSchemeProvider;
|
|
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: ChatbotHttpAuthSchemeProvider;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
|