@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.
Files changed (134) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +313 -0
  3. package/dist-cjs/auth/httpAuthSchemeProvider.js +46 -0
  4. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  5. package/dist-cjs/endpoint/ruleset.js +7 -0
  6. package/dist-cjs/index.js +483 -0
  7. package/dist-cjs/models/ConnectHealthServiceException.js +12 -0
  8. package/dist-cjs/models/errors.js +99 -0
  9. package/dist-cjs/runtimeConfig.browser.js +43 -0
  10. package/dist-cjs/runtimeConfig.js +60 -0
  11. package/dist-cjs/runtimeConfig.native.js +19 -0
  12. package/dist-cjs/runtimeConfig.shared.js +43 -0
  13. package/dist-cjs/schemas/schemas_0.js +691 -0
  14. package/dist-es/ConnectHealth.js +45 -0
  15. package/dist-es/ConnectHealthClient.js +54 -0
  16. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  17. package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  18. package/dist-es/commands/ActivateSubscriptionCommand.js +16 -0
  19. package/dist-es/commands/CreateDomainCommand.js +16 -0
  20. package/dist-es/commands/CreateSubscriptionCommand.js +16 -0
  21. package/dist-es/commands/DeactivateSubscriptionCommand.js +16 -0
  22. package/dist-es/commands/DeleteDomainCommand.js +16 -0
  23. package/dist-es/commands/GetDomainCommand.js +16 -0
  24. package/dist-es/commands/GetMedicalScribeListeningSessionCommand.js +16 -0
  25. package/dist-es/commands/GetPatientInsightsJobCommand.js +16 -0
  26. package/dist-es/commands/GetSubscriptionCommand.js +16 -0
  27. package/dist-es/commands/ListDomainsCommand.js +16 -0
  28. package/dist-es/commands/ListSubscriptionsCommand.js +16 -0
  29. package/dist-es/commands/ListTagsForResourceCommand.js +16 -0
  30. package/dist-es/commands/StartMedicalScribeListeningSessionCommand.js +25 -0
  31. package/dist-es/commands/StartPatientInsightsJobCommand.js +16 -0
  32. package/dist-es/commands/TagResourceCommand.js +16 -0
  33. package/dist-es/commands/UntagResourceCommand.js +16 -0
  34. package/dist-es/commands/index.js +16 -0
  35. package/dist-es/endpoint/EndpointParameters.js +11 -0
  36. package/dist-es/endpoint/endpointResolver.js +14 -0
  37. package/dist-es/endpoint/ruleset.js +4 -0
  38. package/dist-es/extensionConfiguration.js +1 -0
  39. package/dist-es/index.js +9 -0
  40. package/dist-es/models/ConnectHealthServiceException.js +8 -0
  41. package/dist-es/models/enums.js +76 -0
  42. package/dist-es/models/errors.js +89 -0
  43. package/dist-es/models/models_0.js +1 -0
  44. package/dist-es/pagination/Interfaces.js +1 -0
  45. package/dist-es/pagination/ListDomainsPaginator.js +4 -0
  46. package/dist-es/pagination/ListSubscriptionsPaginator.js +4 -0
  47. package/dist-es/pagination/index.js +3 -0
  48. package/dist-es/runtimeConfig.browser.js +38 -0
  49. package/dist-es/runtimeConfig.js +55 -0
  50. package/dist-es/runtimeConfig.native.js +15 -0
  51. package/dist-es/runtimeConfig.shared.js +39 -0
  52. package/dist-es/runtimeExtensions.js +9 -0
  53. package/dist-es/schemas/schemas_0.js +687 -0
  54. package/dist-types/ConnectHealth.d.ts +137 -0
  55. package/dist-types/ConnectHealthClient.d.ts +215 -0
  56. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  57. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  58. package/dist-types/commands/ActivateSubscriptionCommand.d.ts +96 -0
  59. package/dist-types/commands/CreateDomainCommand.d.ts +101 -0
  60. package/dist-types/commands/CreateSubscriptionCommand.d.ts +96 -0
  61. package/dist-types/commands/DeactivateSubscriptionCommand.d.ts +96 -0
  62. package/dist-types/commands/DeleteDomainCommand.d.ts +79 -0
  63. package/dist-types/commands/GetDomainCommand.d.ts +95 -0
  64. package/dist-types/commands/GetMedicalScribeListeningSessionCommand.d.ts +140 -0
  65. package/dist-types/commands/GetPatientInsightsJobCommand.d.ts +128 -0
  66. package/dist-types/commands/GetSubscriptionCommand.d.ts +96 -0
  67. package/dist-types/commands/ListDomainsCommand.d.ts +85 -0
  68. package/dist-types/commands/ListSubscriptionsCommand.d.ts +100 -0
  69. package/dist-types/commands/ListTagsForResourceCommand.d.ts +76 -0
  70. package/dist-types/commands/StartMedicalScribeListeningSessionCommand.d.ts +159 -0
  71. package/dist-types/commands/StartPatientInsightsJobCommand.d.ts +125 -0
  72. package/dist-types/commands/TagResourceCommand.d.ts +75 -0
  73. package/dist-types/commands/UntagResourceCommand.d.ts +75 -0
  74. package/dist-types/commands/index.d.ts +16 -0
  75. package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
  76. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  77. package/dist-types/endpoint/ruleset.d.ts +2 -0
  78. package/dist-types/extensionConfiguration.d.ts +9 -0
  79. package/dist-types/index.d.ts +17 -0
  80. package/dist-types/models/ConnectHealthServiceException.d.ts +14 -0
  81. package/dist-types/models/enums.d.ts +204 -0
  82. package/dist-types/models/errors.d.ts +90 -0
  83. package/dist-types/models/models_0.d.ts +1519 -0
  84. package/dist-types/pagination/Interfaces.d.ts +8 -0
  85. package/dist-types/pagination/ListDomainsPaginator.d.ts +7 -0
  86. package/dist-types/pagination/ListSubscriptionsPaginator.d.ts +7 -0
  87. package/dist-types/pagination/index.d.ts +3 -0
  88. package/dist-types/runtimeConfig.browser.d.ts +57 -0
  89. package/dist-types/runtimeConfig.d.ts +57 -0
  90. package/dist-types/runtimeConfig.native.d.ts +56 -0
  91. package/dist-types/runtimeConfig.shared.d.ts +27 -0
  92. package/dist-types/runtimeExtensions.d.ts +17 -0
  93. package/dist-types/schemas/schemas_0.d.ts +100 -0
  94. package/dist-types/ts3.4/ConnectHealth.d.ts +304 -0
  95. package/dist-types/ts3.4/ConnectHealthClient.d.ts +232 -0
  96. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  97. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  98. package/dist-types/ts3.4/commands/ActivateSubscriptionCommand.d.ts +51 -0
  99. package/dist-types/ts3.4/commands/CreateDomainCommand.d.ts +47 -0
  100. package/dist-types/ts3.4/commands/CreateSubscriptionCommand.d.ts +51 -0
  101. package/dist-types/ts3.4/commands/DeactivateSubscriptionCommand.d.ts +51 -0
  102. package/dist-types/ts3.4/commands/DeleteDomainCommand.d.ts +47 -0
  103. package/dist-types/ts3.4/commands/GetDomainCommand.d.ts +47 -0
  104. package/dist-types/ts3.4/commands/GetMedicalScribeListeningSessionCommand.d.ts +51 -0
  105. package/dist-types/ts3.4/commands/GetPatientInsightsJobCommand.d.ts +51 -0
  106. package/dist-types/ts3.4/commands/GetSubscriptionCommand.d.ts +50 -0
  107. package/dist-types/ts3.4/commands/ListDomainsCommand.d.ts +47 -0
  108. package/dist-types/ts3.4/commands/ListSubscriptionsCommand.d.ts +50 -0
  109. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  110. package/dist-types/ts3.4/commands/StartMedicalScribeListeningSessionCommand.d.ts +51 -0
  111. package/dist-types/ts3.4/commands/StartPatientInsightsJobCommand.d.ts +51 -0
  112. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +45 -0
  113. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +45 -0
  114. package/dist-types/ts3.4/commands/index.d.ts +16 -0
  115. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  116. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  117. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  118. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  119. package/dist-types/ts3.4/index.d.ts +12 -0
  120. package/dist-types/ts3.4/models/ConnectHealthServiceException.d.ts +9 -0
  121. package/dist-types/ts3.4/models/enums.d.ts +102 -0
  122. package/dist-types/ts3.4/models/errors.d.ts +53 -0
  123. package/dist-types/ts3.4/models/models_0.d.ts +470 -0
  124. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  125. package/dist-types/ts3.4/pagination/ListDomainsPaginator.d.ts +11 -0
  126. package/dist-types/ts3.4/pagination/ListSubscriptionsPaginator.d.ts +11 -0
  127. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  128. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +101 -0
  129. package/dist-types/ts3.4/runtimeConfig.d.ts +97 -0
  130. package/dist-types/ts3.4/runtimeConfig.native.d.ts +105 -0
  131. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +30 -0
  132. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  133. package/dist-types/ts3.4/schemas/schemas_0.d.ts +100 -0
  134. package/package.json +105 -0
@@ -0,0 +1,45 @@
1
+ import { createAggregatedClient } from "@smithy/smithy-client";
2
+ import { ActivateSubscriptionCommand, } from "./commands/ActivateSubscriptionCommand";
3
+ import { CreateDomainCommand, } from "./commands/CreateDomainCommand";
4
+ import { CreateSubscriptionCommand, } from "./commands/CreateSubscriptionCommand";
5
+ import { DeactivateSubscriptionCommand, } from "./commands/DeactivateSubscriptionCommand";
6
+ import { DeleteDomainCommand, } from "./commands/DeleteDomainCommand";
7
+ import { GetDomainCommand } from "./commands/GetDomainCommand";
8
+ import { GetMedicalScribeListeningSessionCommand, } from "./commands/GetMedicalScribeListeningSessionCommand";
9
+ import { GetPatientInsightsJobCommand, } from "./commands/GetPatientInsightsJobCommand";
10
+ import { GetSubscriptionCommand, } from "./commands/GetSubscriptionCommand";
11
+ import { ListDomainsCommand } from "./commands/ListDomainsCommand";
12
+ import { ListSubscriptionsCommand, } from "./commands/ListSubscriptionsCommand";
13
+ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
14
+ import { StartMedicalScribeListeningSessionCommand, } from "./commands/StartMedicalScribeListeningSessionCommand";
15
+ import { StartPatientInsightsJobCommand, } from "./commands/StartPatientInsightsJobCommand";
16
+ import { TagResourceCommand } from "./commands/TagResourceCommand";
17
+ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
18
+ import { ConnectHealthClient } from "./ConnectHealthClient";
19
+ import { paginateListDomains } from "./pagination/ListDomainsPaginator";
20
+ import { paginateListSubscriptions } from "./pagination/ListSubscriptionsPaginator";
21
+ const commands = {
22
+ ActivateSubscriptionCommand,
23
+ CreateDomainCommand,
24
+ CreateSubscriptionCommand,
25
+ DeactivateSubscriptionCommand,
26
+ DeleteDomainCommand,
27
+ GetDomainCommand,
28
+ GetMedicalScribeListeningSessionCommand,
29
+ GetPatientInsightsJobCommand,
30
+ GetSubscriptionCommand,
31
+ ListDomainsCommand,
32
+ ListSubscriptionsCommand,
33
+ ListTagsForResourceCommand,
34
+ StartMedicalScribeListeningSessionCommand,
35
+ StartPatientInsightsJobCommand,
36
+ TagResourceCommand,
37
+ UntagResourceCommand,
38
+ };
39
+ const paginators = {
40
+ paginateListDomains,
41
+ paginateListSubscriptions,
42
+ };
43
+ export class ConnectHealth extends ConnectHealthClient {
44
+ }
45
+ createAggregatedClient(commands, ConnectHealth, { paginators });
@@ -0,0 +1,54 @@
1
+ import { resolveEventStreamConfig, } from "@aws-sdk/middleware-eventstream";
2
+ import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
3
+ import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
4
+ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
5
+ import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
6
+ import { resolveRegionConfig } from "@smithy/config-resolver";
7
+ import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
8
+ import { getSchemaSerdePlugin } from "@smithy/core/schema";
9
+ import { resolveEventStreamSerdeConfig, } from "@smithy/eventstream-serde-config-resolver";
10
+ import { getContentLengthPlugin } from "@smithy/middleware-content-length";
11
+ import { resolveEndpointConfig, } from "@smithy/middleware-endpoint";
12
+ import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
13
+ import { Client as __Client, } from "@smithy/smithy-client";
14
+ import { defaultConnectHealthHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
15
+ import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
16
+ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
17
+ import { resolveRuntimeExtensions } from "./runtimeExtensions";
18
+ export { __Client };
19
+ export class ConnectHealthClient extends __Client {
20
+ config;
21
+ constructor(...[configuration]) {
22
+ const _config_0 = __getRuntimeConfig(configuration || {});
23
+ super(_config_0);
24
+ this.initConfig = _config_0;
25
+ const _config_1 = resolveClientEndpointParameters(_config_0);
26
+ const _config_2 = resolveUserAgentConfig(_config_1);
27
+ const _config_3 = resolveRetryConfig(_config_2);
28
+ const _config_4 = resolveRegionConfig(_config_3);
29
+ const _config_5 = resolveHostHeaderConfig(_config_4);
30
+ const _config_6 = resolveEndpointConfig(_config_5);
31
+ const _config_7 = resolveEventStreamSerdeConfig(_config_6);
32
+ const _config_8 = resolveHttpAuthSchemeConfig(_config_7);
33
+ const _config_9 = resolveEventStreamConfig(_config_8);
34
+ const _config_10 = resolveRuntimeExtensions(_config_9, configuration?.extensions || []);
35
+ this.config = _config_10;
36
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
37
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
38
+ this.middlewareStack.use(getRetryPlugin(this.config));
39
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
40
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
41
+ this.middlewareStack.use(getLoggerPlugin(this.config));
42
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
43
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
44
+ httpAuthSchemeParametersProvider: defaultConnectHealthHttpAuthSchemeParametersProvider,
45
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
46
+ "aws.auth#sigv4": config.credentials,
47
+ }),
48
+ }));
49
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
50
+ }
51
+ destroy() {
52
+ super.destroy();
53
+ }
54
+ }
@@ -0,0 +1,38 @@
1
+ export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
2
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
3
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
4
+ let _credentials = runtimeConfig.credentials;
5
+ return {
6
+ setHttpAuthScheme(httpAuthScheme) {
7
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
8
+ if (index === -1) {
9
+ _httpAuthSchemes.push(httpAuthScheme);
10
+ }
11
+ else {
12
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
13
+ }
14
+ },
15
+ httpAuthSchemes() {
16
+ return _httpAuthSchemes;
17
+ },
18
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
19
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
20
+ },
21
+ httpAuthSchemeProvider() {
22
+ return _httpAuthSchemeProvider;
23
+ },
24
+ setCredentials(credentials) {
25
+ _credentials = credentials;
26
+ },
27
+ credentials() {
28
+ return _credentials;
29
+ },
30
+ };
31
+ };
32
+ export const resolveHttpAuthRuntimeConfig = (config) => {
33
+ return {
34
+ httpAuthSchemes: config.httpAuthSchemes(),
35
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
36
+ credentials: config.credentials(),
37
+ };
38
+ };
@@ -0,0 +1,40 @@
1
+ import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core";
2
+ import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
3
+ export const defaultConnectHealthHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
+ return {
5
+ operation: getSmithyContext(context).operation,
6
+ region: await normalizeProvider(config.region)() || (() => {
7
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
8
+ })(),
9
+ };
10
+ };
11
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
12
+ return {
13
+ schemeId: "aws.auth#sigv4",
14
+ signingProperties: {
15
+ name: "health-agent",
16
+ region: authParameters.region,
17
+ },
18
+ propertiesExtractor: (config, context) => ({
19
+ signingProperties: {
20
+ config,
21
+ context,
22
+ },
23
+ }),
24
+ };
25
+ }
26
+ export const defaultConnectHealthHttpAuthSchemeProvider = (authParameters) => {
27
+ const options = [];
28
+ switch (authParameters.operation) {
29
+ default: {
30
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
31
+ }
32
+ }
33
+ return options;
34
+ };
35
+ export const resolveHttpAuthSchemeConfig = (config) => {
36
+ const config_0 = resolveAwsSdkSigV4Config(config);
37
+ return Object.assign(config_0, {
38
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
39
+ });
40
+ };
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ActivateSubscription$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ActivateSubscriptionCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("ConnectHealth", "ActivateSubscription", {})
13
+ .n("ConnectHealthClient", "ActivateSubscriptionCommand")
14
+ .sc(ActivateSubscription$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { CreateDomain$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class CreateDomainCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("ConnectHealth", "CreateDomain", {})
13
+ .n("ConnectHealthClient", "CreateDomainCommand")
14
+ .sc(CreateDomain$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { CreateSubscription$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class CreateSubscriptionCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("ConnectHealth", "CreateSubscription", {})
13
+ .n("ConnectHealthClient", "CreateSubscriptionCommand")
14
+ .sc(CreateSubscription$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DeactivateSubscription$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class DeactivateSubscriptionCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("ConnectHealth", "DeactivateSubscription", {})
13
+ .n("ConnectHealthClient", "DeactivateSubscriptionCommand")
14
+ .sc(DeactivateSubscription$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DeleteDomain$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class DeleteDomainCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("ConnectHealth", "DeleteDomain", {})
13
+ .n("ConnectHealthClient", "DeleteDomainCommand")
14
+ .sc(DeleteDomain$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetDomain$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class GetDomainCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("ConnectHealth", "GetDomain", {})
13
+ .n("ConnectHealthClient", "GetDomainCommand")
14
+ .sc(GetDomain$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetMedicalScribeListeningSession$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class GetMedicalScribeListeningSessionCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("ConnectHealth", "GetMedicalScribeListeningSession", {})
13
+ .n("ConnectHealthClient", "GetMedicalScribeListeningSessionCommand")
14
+ .sc(GetMedicalScribeListeningSession$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetPatientInsightsJob$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class GetPatientInsightsJobCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("ConnectHealth", "GetPatientInsightsJob", {})
13
+ .n("ConnectHealthClient", "GetPatientInsightsJobCommand")
14
+ .sc(GetPatientInsightsJob$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetSubscription$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class GetSubscriptionCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("ConnectHealth", "GetSubscription", {})
13
+ .n("ConnectHealthClient", "GetSubscriptionCommand")
14
+ .sc(GetSubscription$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListDomains$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListDomainsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("ConnectHealth", "ListDomains", {})
13
+ .n("ConnectHealthClient", "ListDomainsCommand")
14
+ .sc(ListDomains$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListSubscriptions$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListSubscriptionsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("ConnectHealth", "ListSubscriptions", {})
13
+ .n("ConnectHealthClient", "ListSubscriptionsCommand")
14
+ .sc(ListSubscriptions$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListTagsForResource$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListTagsForResourceCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("ConnectHealth", "ListTagsForResource", {})
13
+ .n("ConnectHealthClient", "ListTagsForResourceCommand")
14
+ .sc(ListTagsForResource$)
15
+ .build() {
16
+ }
@@ -0,0 +1,25 @@
1
+ import { getEventStreamPlugin } from "@aws-sdk/middleware-eventstream";
2
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { StartMedicalScribeListeningSession$ } from "../schemas/schemas_0";
6
+ export { $Command };
7
+ export class StartMedicalScribeListeningSessionCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
13
+ getEventStreamPlugin(config),
14
+ ];
15
+ })
16
+ .s("ConnectHealth", "StartMedicalScribeListeningSession", {
17
+ eventStream: {
18
+ input: true,
19
+ output: true,
20
+ },
21
+ })
22
+ .n("ConnectHealthClient", "StartMedicalScribeListeningSessionCommand")
23
+ .sc(StartMedicalScribeListeningSession$)
24
+ .build() {
25
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { StartPatientInsightsJob$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class StartPatientInsightsJobCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("ConnectHealth", "StartPatientInsightsJob", {})
13
+ .n("ConnectHealthClient", "StartPatientInsightsJobCommand")
14
+ .sc(StartPatientInsightsJob$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { TagResource$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class TagResourceCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("ConnectHealth", "TagResource", {})
13
+ .n("ConnectHealthClient", "TagResourceCommand")
14
+ .sc(TagResource$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { UntagResource$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class UntagResourceCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("ConnectHealth", "UntagResource", {})
13
+ .n("ConnectHealthClient", "UntagResourceCommand")
14
+ .sc(UntagResource$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ export * from "./ActivateSubscriptionCommand";
2
+ export * from "./CreateDomainCommand";
3
+ export * from "./CreateSubscriptionCommand";
4
+ export * from "./DeactivateSubscriptionCommand";
5
+ export * from "./DeleteDomainCommand";
6
+ export * from "./GetDomainCommand";
7
+ export * from "./GetMedicalScribeListeningSessionCommand";
8
+ export * from "./GetPatientInsightsJobCommand";
9
+ export * from "./GetSubscriptionCommand";
10
+ export * from "./ListDomainsCommand";
11
+ export * from "./ListSubscriptionsCommand";
12
+ export * from "./ListTagsForResourceCommand";
13
+ export * from "./StartMedicalScribeListeningSessionCommand";
14
+ export * from "./StartPatientInsightsJobCommand";
15
+ export * from "./TagResourceCommand";
16
+ export * from "./UntagResourceCommand";
@@ -0,0 +1,11 @@
1
+ export const resolveClientEndpointParameters = (options) => {
2
+ return Object.assign(options, {
3
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
4
+ defaultSigningName: "health-agent",
5
+ });
6
+ };
7
+ export const commonParams = {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ };
@@ -0,0 +1,14 @@
1
+ import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
+ import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
3
+ import { ruleSet } from "./ruleset";
4
+ const cache = new EndpointCache({
5
+ size: 50,
6
+ params: ["Endpoint", "Region", "UseFIPS"],
7
+ });
8
+ export const defaultEndpointResolver = (endpointParams, context = {}) => {
9
+ return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
10
+ endpointParams: endpointParams,
11
+ logger: context.logger,
12
+ }));
13
+ };
14
+ customEndpointFunctions.aws = awsEndpointFunctions;
@@ -0,0 +1,4 @@
1
+ const l = "ref";
2
+ const a = true, b = false, c = "isSet", d = "error", e = "endpoint", f = "tree", g = { "required": false, "type": "string" }, h = { [l]: "Endpoint" }, i = {}, j = [{ "fn": "booleanEquals", "argv": [{ [l]: "UseFIPS" }, true] }], k = [{ [l]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { UseFIPS: { required: a, default: b, type: "boolean" }, Endpoint: g, Region: g }, rules: [{ conditions: [{ fn: c, argv: [h] }], rules: [{ conditions: j, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { endpoint: { url: h, properties: i, headers: i }, type: e }], type: f }, { rules: [{ conditions: [{ fn: c, argv: k }], rules: [{ conditions: [{ fn: "aws.partition", argv: k, assign: "PartitionResult" }], rules: [{ conditions: j, endpoint: { url: "https://health-agent-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: i, headers: i }, type: e }, { endpoint: { url: "https://health-agent.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: i, headers: i }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
4
+ export const ruleSet = _data;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ export * from "./ConnectHealthClient";
2
+ export * from "./ConnectHealth";
3
+ export * from "./commands";
4
+ export * from "./schemas/schemas_0";
5
+ export * from "./pagination";
6
+ export * from "./models/enums";
7
+ export * from "./models/errors";
8
+ export * from "./models/models_0";
9
+ export { ConnectHealthServiceException } from "./models/ConnectHealthServiceException";
@@ -0,0 +1,8 @@
1
+ import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
2
+ export { __ServiceException };
3
+ export class ConnectHealthServiceException extends __ServiceException {
4
+ constructor(options) {
5
+ super(options);
6
+ Object.setPrototypeOf(this, ConnectHealthServiceException.prototype);
7
+ }
8
+ }
@@ -0,0 +1,76 @@
1
+ export const SubscriptionStatus = {
2
+ ACTIVE: "ACTIVE",
3
+ DELETED: "DELETED",
4
+ INACTIVE: "INACTIVE",
5
+ };
6
+ export const PostStreamArtifactGenerationStatus = {
7
+ COMPLETED: "COMPLETED",
8
+ FAILED: "FAILED",
9
+ IN_PROGRESS: "IN_PROGRESS",
10
+ };
11
+ export const CustomTemplateBase = {
12
+ BEHAVIORAL_SOAP: "BEHAVIORAL_SOAP",
13
+ BIRP: "BIRP",
14
+ DAP: "DAP",
15
+ GIRPP: "GIRPP",
16
+ HISTORY_AND_PHYSICAL: "HISTORY_AND_PHYSICAL",
17
+ SIRP: "SIRP",
18
+ };
19
+ export const ManagedNoteTemplate = {
20
+ BEHAVIORAL_SOAP: "BEHAVIORAL_SOAP",
21
+ BIRP: "BIRP",
22
+ DAP: "DAP",
23
+ GIRPP: "GIRPP",
24
+ HISTORY_AND_PHYSICAL: "HISTORY_AND_PHYSICAL",
25
+ PHYSICAL_SOAP: "PHYSICAL_SOAP",
26
+ SIRP: "SIRP",
27
+ };
28
+ export const EncryptionType = {
29
+ AWS_OWNED_KEY: "AWS_OWNED_KEY",
30
+ CUSTOMER_MANAGED_KEY: "CUSTOMER_MANAGED_KEY",
31
+ };
32
+ export const DomainStatus = {
33
+ ACTIVE: "ACTIVE",
34
+ DELETED: "DELETED",
35
+ DELETING: "DELETING",
36
+ };
37
+ export const MedicalScribeParticipantRole = {
38
+ CLINICIAN: "CLINICIAN",
39
+ PATIENT: "PATIENT",
40
+ };
41
+ export const MedicalScribeLanguageCode = {
42
+ EN_US: "en-US",
43
+ };
44
+ export const MedicalScribeMediaEncoding = {
45
+ FLAC: "flac",
46
+ PCM: "pcm",
47
+ };
48
+ export const MedicalScribeStreamStatus = {
49
+ COMPLETED: "COMPLETED",
50
+ FAILED: "FAILED",
51
+ IN_PROGRESS: "IN_PROGRESS",
52
+ PAUSED: "PAUSED",
53
+ };
54
+ export const InsightsType = {
55
+ PRE_VISIT: "PRE_VISIT",
56
+ };
57
+ export const JobStatus = {
58
+ FAILED: "FAILED",
59
+ IN_PROGRESS: "IN_PROGRESS",
60
+ SUBMITTED: "SUBMITTED",
61
+ SUCCEEDED: "SUCCEEDED",
62
+ };
63
+ export const Pronouns = {
64
+ HE_HIM: "HE_HIM",
65
+ SHE_HER: "SHE_HER",
66
+ THEY_THEM: "THEY_THEM",
67
+ };
68
+ export const ProviderRole = {
69
+ CLINICIAN: "CLINICIAN",
70
+ };
71
+ export const Specialty = {
72
+ PRIMARY_CARE: "PRIMARY_CARE",
73
+ };
74
+ export const MedicalScribeSessionControlEventType = {
75
+ END_OF_SESSION: "END_OF_SESSION",
76
+ };