@aws-sdk/client-connecthealth 3.1003.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 +313 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +46 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +483 -0
- package/dist-cjs/models/ConnectHealthServiceException.js +12 -0
- package/dist-cjs/models/errors.js +99 -0
- package/dist-cjs/runtimeConfig.browser.js +43 -0
- package/dist-cjs/runtimeConfig.js +60 -0
- package/dist-cjs/runtimeConfig.native.js +19 -0
- package/dist-cjs/runtimeConfig.shared.js +43 -0
- package/dist-cjs/schemas/schemas_0.js +691 -0
- package/dist-es/ConnectHealth.js +45 -0
- package/dist-es/ConnectHealthClient.js +54 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commands/ActivateSubscriptionCommand.js +16 -0
- package/dist-es/commands/CreateDomainCommand.js +16 -0
- package/dist-es/commands/CreateSubscriptionCommand.js +16 -0
- package/dist-es/commands/DeactivateSubscriptionCommand.js +16 -0
- package/dist-es/commands/DeleteDomainCommand.js +16 -0
- package/dist-es/commands/GetDomainCommand.js +16 -0
- package/dist-es/commands/GetMedicalScribeListeningSessionCommand.js +16 -0
- package/dist-es/commands/GetPatientInsightsJobCommand.js +16 -0
- package/dist-es/commands/GetSubscriptionCommand.js +16 -0
- package/dist-es/commands/ListDomainsCommand.js +16 -0
- package/dist-es/commands/ListSubscriptionsCommand.js +16 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +16 -0
- package/dist-es/commands/StartMedicalScribeListeningSessionCommand.js +25 -0
- package/dist-es/commands/StartPatientInsightsJobCommand.js +16 -0
- package/dist-es/commands/TagResourceCommand.js +16 -0
- package/dist-es/commands/UntagResourceCommand.js +16 -0
- package/dist-es/commands/index.js +16 -0
- package/dist-es/endpoint/EndpointParameters.js +11 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +9 -0
- package/dist-es/models/ConnectHealthServiceException.js +8 -0
- package/dist-es/models/enums.js +76 -0
- package/dist-es/models/errors.js +89 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListDomainsPaginator.js +4 -0
- package/dist-es/pagination/ListSubscriptionsPaginator.js +4 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/runtimeConfig.browser.js +38 -0
- package/dist-es/runtimeConfig.js +55 -0
- package/dist-es/runtimeConfig.native.js +15 -0
- package/dist-es/runtimeConfig.shared.js +39 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +687 -0
- package/dist-types/ConnectHealth.d.ts +137 -0
- package/dist-types/ConnectHealthClient.d.ts +215 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commands/ActivateSubscriptionCommand.d.ts +96 -0
- package/dist-types/commands/CreateDomainCommand.d.ts +101 -0
- package/dist-types/commands/CreateSubscriptionCommand.d.ts +96 -0
- package/dist-types/commands/DeactivateSubscriptionCommand.d.ts +96 -0
- package/dist-types/commands/DeleteDomainCommand.d.ts +79 -0
- package/dist-types/commands/GetDomainCommand.d.ts +95 -0
- package/dist-types/commands/GetMedicalScribeListeningSessionCommand.d.ts +140 -0
- package/dist-types/commands/GetPatientInsightsJobCommand.d.ts +128 -0
- package/dist-types/commands/GetSubscriptionCommand.d.ts +96 -0
- package/dist-types/commands/ListDomainsCommand.d.ts +85 -0
- package/dist-types/commands/ListSubscriptionsCommand.d.ts +100 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +76 -0
- package/dist-types/commands/StartMedicalScribeListeningSessionCommand.d.ts +159 -0
- package/dist-types/commands/StartPatientInsightsJobCommand.d.ts +125 -0
- package/dist-types/commands/TagResourceCommand.d.ts +75 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +75 -0
- package/dist-types/commands/index.d.ts +16 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +17 -0
- package/dist-types/models/ConnectHealthServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +204 -0
- package/dist-types/models/errors.d.ts +90 -0
- package/dist-types/models/models_0.d.ts +1519 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListDomainsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListSubscriptionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/runtimeConfig.browser.d.ts +57 -0
- package/dist-types/runtimeConfig.d.ts +57 -0
- package/dist-types/runtimeConfig.native.d.ts +56 -0
- package/dist-types/runtimeConfig.shared.d.ts +27 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +100 -0
- package/dist-types/ts3.4/ConnectHealth.d.ts +304 -0
- package/dist-types/ts3.4/ConnectHealthClient.d.ts +232 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/commands/ActivateSubscriptionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateDomainCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/CreateSubscriptionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeactivateSubscriptionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteDomainCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetDomainCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetMedicalScribeListeningSessionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetPatientInsightsJobCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetSubscriptionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListDomainsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListSubscriptionsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StartMedicalScribeListeningSessionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StartPatientInsightsJobCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +45 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +45 -0
- package/dist-types/ts3.4/commands/index.d.ts +16 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -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 +12 -0
- package/dist-types/ts3.4/models/ConnectHealthServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +102 -0
- package/dist-types/ts3.4/models/errors.d.ts +53 -0
- package/dist-types/ts3.4/models/models_0.d.ts +470 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListDomainsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSubscriptionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +101 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +105 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +30 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +100 -0
- package/package.json +105 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const core_1 = require("@aws-sdk/core");
|
|
7
|
+
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
8
|
+
const eventstream_handler_node_1 = require("@aws-sdk/eventstream-handler-node");
|
|
9
|
+
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
10
|
+
const config_resolver_1 = require("@smithy/config-resolver");
|
|
11
|
+
const eventstream_serde_node_1 = require("@smithy/eventstream-serde-node");
|
|
12
|
+
const hash_node_1 = require("@smithy/hash-node");
|
|
13
|
+
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
14
|
+
const node_config_provider_1 = require("@smithy/node-config-provider");
|
|
15
|
+
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
16
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
17
|
+
const util_body_length_node_1 = require("@smithy/util-body-length-node");
|
|
18
|
+
const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
|
|
19
|
+
const util_retry_1 = require("@smithy/util-retry");
|
|
20
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
21
|
+
const getRuntimeConfig = (config) => {
|
|
22
|
+
(0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
23
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
24
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
25
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
26
|
+
(0, core_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
27
|
+
const loaderConfig = {
|
|
28
|
+
profile: config?.profile,
|
|
29
|
+
logger: clientSharedValues.logger,
|
|
30
|
+
};
|
|
31
|
+
return {
|
|
32
|
+
...clientSharedValues,
|
|
33
|
+
...config,
|
|
34
|
+
runtime: "node",
|
|
35
|
+
defaultsMode,
|
|
36
|
+
authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
37
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
38
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
|
|
39
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
40
|
+
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? eventstream_handler_node_1.eventStreamPayloadHandlerProvider,
|
|
41
|
+
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_node_1.eventStreamSerdeProvider,
|
|
42
|
+
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
43
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
44
|
+
requestHandler: node_http_handler_1.NodeHttp2Handler.create(config?.requestHandler ?? (async () => ({
|
|
45
|
+
...await defaultConfigProvider(),
|
|
46
|
+
disableConcurrentStreams: true
|
|
47
|
+
}))),
|
|
48
|
+
retryMode: config?.retryMode ??
|
|
49
|
+
(0, node_config_provider_1.loadConfig)({
|
|
50
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
51
|
+
default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
|
|
52
|
+
}, config),
|
|
53
|
+
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
54
|
+
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
55
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
56
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
57
|
+
userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
+
const invalid_dependency_1 = require("@smithy/invalid-dependency");
|
|
6
|
+
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
7
|
+
const getRuntimeConfig = (config) => {
|
|
8
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
|
+
return {
|
|
10
|
+
...browserDefaults,
|
|
11
|
+
...config,
|
|
12
|
+
runtime: "react-native",
|
|
13
|
+
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? (() => ({
|
|
14
|
+
handle: (0, invalid_dependency_1.invalidFunction)("event stream request is not supported in ReactNative."),
|
|
15
|
+
})),
|
|
16
|
+
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const protocols_1 = require("@aws-sdk/core/protocols");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
const url_parser_1 = require("@smithy/url-parser");
|
|
8
|
+
const util_base64_1 = require("@smithy/util-base64");
|
|
9
|
+
const util_utf8_1 = require("@smithy/util-utf8");
|
|
10
|
+
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
11
|
+
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
12
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
13
|
+
const getRuntimeConfig = (config) => {
|
|
14
|
+
return {
|
|
15
|
+
apiVersion: "2025-01-29",
|
|
16
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
17
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
18
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
19
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
20
|
+
extensions: config?.extensions ?? [],
|
|
21
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultConnectHealthHttpAuthSchemeProvider,
|
|
22
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
23
|
+
{
|
|
24
|
+
schemeId: "aws.auth#sigv4",
|
|
25
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
26
|
+
signer: new core_1.AwsSdkSigV4Signer(),
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
30
|
+
protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
|
|
31
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
32
|
+
defaultNamespace: "com.amazonaws.connecthealth",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
34
|
+
version: "2025-01-29",
|
|
35
|
+
serviceTarget: "ConnectHealth",
|
|
36
|
+
},
|
|
37
|
+
serviceId: config?.serviceId ?? "ConnectHealth",
|
|
38
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
39
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
40
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|