@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,483 @@
1
+ 'use strict';
2
+
3
+ var middlewareEventstream = require('@aws-sdk/middleware-eventstream');
4
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
5
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
6
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
7
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
8
+ var configResolver = require('@smithy/config-resolver');
9
+ var core = require('@smithy/core');
10
+ var schema = require('@smithy/core/schema');
11
+ var eventstreamSerdeConfigResolver = require('@smithy/eventstream-serde-config-resolver');
12
+ var middlewareContentLength = require('@smithy/middleware-content-length');
13
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
14
+ var middlewareRetry = require('@smithy/middleware-retry');
15
+ var smithyClient = require('@smithy/smithy-client');
16
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
17
+ var runtimeConfig = require('./runtimeConfig');
18
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
19
+ var protocolHttp = require('@smithy/protocol-http');
20
+ var schemas_0 = require('./schemas/schemas_0');
21
+ var errors = require('./models/errors');
22
+ var ConnectHealthServiceException = require('./models/ConnectHealthServiceException');
23
+
24
+ const resolveClientEndpointParameters = (options) => {
25
+ return Object.assign(options, {
26
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
27
+ defaultSigningName: "health-agent",
28
+ });
29
+ };
30
+ const commonParams = {
31
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
32
+ Endpoint: { type: "builtInParams", name: "endpoint" },
33
+ Region: { type: "builtInParams", name: "region" },
34
+ };
35
+
36
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
37
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
38
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
39
+ let _credentials = runtimeConfig.credentials;
40
+ return {
41
+ setHttpAuthScheme(httpAuthScheme) {
42
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
43
+ if (index === -1) {
44
+ _httpAuthSchemes.push(httpAuthScheme);
45
+ }
46
+ else {
47
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
48
+ }
49
+ },
50
+ httpAuthSchemes() {
51
+ return _httpAuthSchemes;
52
+ },
53
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
54
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
55
+ },
56
+ httpAuthSchemeProvider() {
57
+ return _httpAuthSchemeProvider;
58
+ },
59
+ setCredentials(credentials) {
60
+ _credentials = credentials;
61
+ },
62
+ credentials() {
63
+ return _credentials;
64
+ },
65
+ };
66
+ };
67
+ const resolveHttpAuthRuntimeConfig = (config) => {
68
+ return {
69
+ httpAuthSchemes: config.httpAuthSchemes(),
70
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
71
+ credentials: config.credentials(),
72
+ };
73
+ };
74
+
75
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
76
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
77
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
78
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
79
+ };
80
+
81
+ class ConnectHealthClient extends smithyClient.Client {
82
+ config;
83
+ constructor(...[configuration]) {
84
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
85
+ super(_config_0);
86
+ this.initConfig = _config_0;
87
+ const _config_1 = resolveClientEndpointParameters(_config_0);
88
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
89
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
90
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
91
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
92
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
93
+ const _config_7 = eventstreamSerdeConfigResolver.resolveEventStreamSerdeConfig(_config_6);
94
+ const _config_8 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_7);
95
+ const _config_9 = middlewareEventstream.resolveEventStreamConfig(_config_8);
96
+ const _config_10 = resolveRuntimeExtensions(_config_9, configuration?.extensions || []);
97
+ this.config = _config_10;
98
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
99
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
100
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
101
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
102
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
103
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
104
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
105
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
106
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultConnectHealthHttpAuthSchemeParametersProvider,
107
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
108
+ "aws.auth#sigv4": config.credentials,
109
+ }),
110
+ }));
111
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
112
+ }
113
+ destroy() {
114
+ super.destroy();
115
+ }
116
+ }
117
+
118
+ class ActivateSubscriptionCommand extends smithyClient.Command
119
+ .classBuilder()
120
+ .ep(commonParams)
121
+ .m(function (Command, cs, config, o) {
122
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
123
+ })
124
+ .s("ConnectHealth", "ActivateSubscription", {})
125
+ .n("ConnectHealthClient", "ActivateSubscriptionCommand")
126
+ .sc(schemas_0.ActivateSubscription$)
127
+ .build() {
128
+ }
129
+
130
+ class CreateDomainCommand extends smithyClient.Command
131
+ .classBuilder()
132
+ .ep(commonParams)
133
+ .m(function (Command, cs, config, o) {
134
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
135
+ })
136
+ .s("ConnectHealth", "CreateDomain", {})
137
+ .n("ConnectHealthClient", "CreateDomainCommand")
138
+ .sc(schemas_0.CreateDomain$)
139
+ .build() {
140
+ }
141
+
142
+ class CreateSubscriptionCommand extends smithyClient.Command
143
+ .classBuilder()
144
+ .ep(commonParams)
145
+ .m(function (Command, cs, config, o) {
146
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
147
+ })
148
+ .s("ConnectHealth", "CreateSubscription", {})
149
+ .n("ConnectHealthClient", "CreateSubscriptionCommand")
150
+ .sc(schemas_0.CreateSubscription$)
151
+ .build() {
152
+ }
153
+
154
+ class DeactivateSubscriptionCommand extends smithyClient.Command
155
+ .classBuilder()
156
+ .ep(commonParams)
157
+ .m(function (Command, cs, config, o) {
158
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
159
+ })
160
+ .s("ConnectHealth", "DeactivateSubscription", {})
161
+ .n("ConnectHealthClient", "DeactivateSubscriptionCommand")
162
+ .sc(schemas_0.DeactivateSubscription$)
163
+ .build() {
164
+ }
165
+
166
+ class DeleteDomainCommand extends smithyClient.Command
167
+ .classBuilder()
168
+ .ep(commonParams)
169
+ .m(function (Command, cs, config, o) {
170
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
171
+ })
172
+ .s("ConnectHealth", "DeleteDomain", {})
173
+ .n("ConnectHealthClient", "DeleteDomainCommand")
174
+ .sc(schemas_0.DeleteDomain$)
175
+ .build() {
176
+ }
177
+
178
+ class GetDomainCommand extends smithyClient.Command
179
+ .classBuilder()
180
+ .ep(commonParams)
181
+ .m(function (Command, cs, config, o) {
182
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
183
+ })
184
+ .s("ConnectHealth", "GetDomain", {})
185
+ .n("ConnectHealthClient", "GetDomainCommand")
186
+ .sc(schemas_0.GetDomain$)
187
+ .build() {
188
+ }
189
+
190
+ class GetMedicalScribeListeningSessionCommand extends smithyClient.Command
191
+ .classBuilder()
192
+ .ep(commonParams)
193
+ .m(function (Command, cs, config, o) {
194
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
195
+ })
196
+ .s("ConnectHealth", "GetMedicalScribeListeningSession", {})
197
+ .n("ConnectHealthClient", "GetMedicalScribeListeningSessionCommand")
198
+ .sc(schemas_0.GetMedicalScribeListeningSession$)
199
+ .build() {
200
+ }
201
+
202
+ class GetPatientInsightsJobCommand extends smithyClient.Command
203
+ .classBuilder()
204
+ .ep(commonParams)
205
+ .m(function (Command, cs, config, o) {
206
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
207
+ })
208
+ .s("ConnectHealth", "GetPatientInsightsJob", {})
209
+ .n("ConnectHealthClient", "GetPatientInsightsJobCommand")
210
+ .sc(schemas_0.GetPatientInsightsJob$)
211
+ .build() {
212
+ }
213
+
214
+ class GetSubscriptionCommand extends smithyClient.Command
215
+ .classBuilder()
216
+ .ep(commonParams)
217
+ .m(function (Command, cs, config, o) {
218
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
219
+ })
220
+ .s("ConnectHealth", "GetSubscription", {})
221
+ .n("ConnectHealthClient", "GetSubscriptionCommand")
222
+ .sc(schemas_0.GetSubscription$)
223
+ .build() {
224
+ }
225
+
226
+ class ListDomainsCommand extends smithyClient.Command
227
+ .classBuilder()
228
+ .ep(commonParams)
229
+ .m(function (Command, cs, config, o) {
230
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
231
+ })
232
+ .s("ConnectHealth", "ListDomains", {})
233
+ .n("ConnectHealthClient", "ListDomainsCommand")
234
+ .sc(schemas_0.ListDomains$)
235
+ .build() {
236
+ }
237
+
238
+ class ListSubscriptionsCommand extends smithyClient.Command
239
+ .classBuilder()
240
+ .ep(commonParams)
241
+ .m(function (Command, cs, config, o) {
242
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
243
+ })
244
+ .s("ConnectHealth", "ListSubscriptions", {})
245
+ .n("ConnectHealthClient", "ListSubscriptionsCommand")
246
+ .sc(schemas_0.ListSubscriptions$)
247
+ .build() {
248
+ }
249
+
250
+ class ListTagsForResourceCommand extends smithyClient.Command
251
+ .classBuilder()
252
+ .ep(commonParams)
253
+ .m(function (Command, cs, config, o) {
254
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
255
+ })
256
+ .s("ConnectHealth", "ListTagsForResource", {})
257
+ .n("ConnectHealthClient", "ListTagsForResourceCommand")
258
+ .sc(schemas_0.ListTagsForResource$)
259
+ .build() {
260
+ }
261
+
262
+ class StartMedicalScribeListeningSessionCommand extends smithyClient.Command
263
+ .classBuilder()
264
+ .ep(commonParams)
265
+ .m(function (Command, cs, config, o) {
266
+ return [
267
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
268
+ middlewareEventstream.getEventStreamPlugin(config),
269
+ ];
270
+ })
271
+ .s("ConnectHealth", "StartMedicalScribeListeningSession", {
272
+ eventStream: {
273
+ input: true,
274
+ output: true,
275
+ },
276
+ })
277
+ .n("ConnectHealthClient", "StartMedicalScribeListeningSessionCommand")
278
+ .sc(schemas_0.StartMedicalScribeListeningSession$)
279
+ .build() {
280
+ }
281
+
282
+ class StartPatientInsightsJobCommand extends smithyClient.Command
283
+ .classBuilder()
284
+ .ep(commonParams)
285
+ .m(function (Command, cs, config, o) {
286
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
287
+ })
288
+ .s("ConnectHealth", "StartPatientInsightsJob", {})
289
+ .n("ConnectHealthClient", "StartPatientInsightsJobCommand")
290
+ .sc(schemas_0.StartPatientInsightsJob$)
291
+ .build() {
292
+ }
293
+
294
+ class TagResourceCommand extends smithyClient.Command
295
+ .classBuilder()
296
+ .ep(commonParams)
297
+ .m(function (Command, cs, config, o) {
298
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
299
+ })
300
+ .s("ConnectHealth", "TagResource", {})
301
+ .n("ConnectHealthClient", "TagResourceCommand")
302
+ .sc(schemas_0.TagResource$)
303
+ .build() {
304
+ }
305
+
306
+ class UntagResourceCommand extends smithyClient.Command
307
+ .classBuilder()
308
+ .ep(commonParams)
309
+ .m(function (Command, cs, config, o) {
310
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
311
+ })
312
+ .s("ConnectHealth", "UntagResource", {})
313
+ .n("ConnectHealthClient", "UntagResourceCommand")
314
+ .sc(schemas_0.UntagResource$)
315
+ .build() {
316
+ }
317
+
318
+ const paginateListDomains = core.createPaginator(ConnectHealthClient, ListDomainsCommand, "nextToken", "nextToken", "maxResults");
319
+
320
+ const paginateListSubscriptions = core.createPaginator(ConnectHealthClient, ListSubscriptionsCommand, "nextToken", "nextToken", "maxResults");
321
+
322
+ const commands = {
323
+ ActivateSubscriptionCommand,
324
+ CreateDomainCommand,
325
+ CreateSubscriptionCommand,
326
+ DeactivateSubscriptionCommand,
327
+ DeleteDomainCommand,
328
+ GetDomainCommand,
329
+ GetMedicalScribeListeningSessionCommand,
330
+ GetPatientInsightsJobCommand,
331
+ GetSubscriptionCommand,
332
+ ListDomainsCommand,
333
+ ListSubscriptionsCommand,
334
+ ListTagsForResourceCommand,
335
+ StartMedicalScribeListeningSessionCommand,
336
+ StartPatientInsightsJobCommand,
337
+ TagResourceCommand,
338
+ UntagResourceCommand,
339
+ };
340
+ const paginators = {
341
+ paginateListDomains,
342
+ paginateListSubscriptions,
343
+ };
344
+ class ConnectHealth extends ConnectHealthClient {
345
+ }
346
+ smithyClient.createAggregatedClient(commands, ConnectHealth, { paginators });
347
+
348
+ const SubscriptionStatus = {
349
+ ACTIVE: "ACTIVE",
350
+ DELETED: "DELETED",
351
+ INACTIVE: "INACTIVE",
352
+ };
353
+ const PostStreamArtifactGenerationStatus = {
354
+ COMPLETED: "COMPLETED",
355
+ FAILED: "FAILED",
356
+ IN_PROGRESS: "IN_PROGRESS",
357
+ };
358
+ const CustomTemplateBase = {
359
+ BEHAVIORAL_SOAP: "BEHAVIORAL_SOAP",
360
+ BIRP: "BIRP",
361
+ DAP: "DAP",
362
+ GIRPP: "GIRPP",
363
+ HISTORY_AND_PHYSICAL: "HISTORY_AND_PHYSICAL",
364
+ SIRP: "SIRP",
365
+ };
366
+ const ManagedNoteTemplate = {
367
+ BEHAVIORAL_SOAP: "BEHAVIORAL_SOAP",
368
+ BIRP: "BIRP",
369
+ DAP: "DAP",
370
+ GIRPP: "GIRPP",
371
+ HISTORY_AND_PHYSICAL: "HISTORY_AND_PHYSICAL",
372
+ PHYSICAL_SOAP: "PHYSICAL_SOAP",
373
+ SIRP: "SIRP",
374
+ };
375
+ const EncryptionType = {
376
+ AWS_OWNED_KEY: "AWS_OWNED_KEY",
377
+ CUSTOMER_MANAGED_KEY: "CUSTOMER_MANAGED_KEY",
378
+ };
379
+ const DomainStatus = {
380
+ ACTIVE: "ACTIVE",
381
+ DELETED: "DELETED",
382
+ DELETING: "DELETING",
383
+ };
384
+ const MedicalScribeParticipantRole = {
385
+ CLINICIAN: "CLINICIAN",
386
+ PATIENT: "PATIENT",
387
+ };
388
+ const MedicalScribeLanguageCode = {
389
+ EN_US: "en-US",
390
+ };
391
+ const MedicalScribeMediaEncoding = {
392
+ FLAC: "flac",
393
+ PCM: "pcm",
394
+ };
395
+ const MedicalScribeStreamStatus = {
396
+ COMPLETED: "COMPLETED",
397
+ FAILED: "FAILED",
398
+ IN_PROGRESS: "IN_PROGRESS",
399
+ PAUSED: "PAUSED",
400
+ };
401
+ const InsightsType = {
402
+ PRE_VISIT: "PRE_VISIT",
403
+ };
404
+ const JobStatus = {
405
+ FAILED: "FAILED",
406
+ IN_PROGRESS: "IN_PROGRESS",
407
+ SUBMITTED: "SUBMITTED",
408
+ SUCCEEDED: "SUCCEEDED",
409
+ };
410
+ const Pronouns = {
411
+ HE_HIM: "HE_HIM",
412
+ SHE_HER: "SHE_HER",
413
+ THEY_THEM: "THEY_THEM",
414
+ };
415
+ const ProviderRole = {
416
+ CLINICIAN: "CLINICIAN",
417
+ };
418
+ const Specialty = {
419
+ PRIMARY_CARE: "PRIMARY_CARE",
420
+ };
421
+ const MedicalScribeSessionControlEventType = {
422
+ END_OF_SESSION: "END_OF_SESSION",
423
+ };
424
+
425
+ exports.$Command = smithyClient.Command;
426
+ exports.__Client = smithyClient.Client;
427
+ exports.ConnectHealthServiceException = ConnectHealthServiceException.ConnectHealthServiceException;
428
+ exports.ActivateSubscriptionCommand = ActivateSubscriptionCommand;
429
+ exports.ConnectHealth = ConnectHealth;
430
+ exports.ConnectHealthClient = ConnectHealthClient;
431
+ exports.CreateDomainCommand = CreateDomainCommand;
432
+ exports.CreateSubscriptionCommand = CreateSubscriptionCommand;
433
+ exports.CustomTemplateBase = CustomTemplateBase;
434
+ exports.DeactivateSubscriptionCommand = DeactivateSubscriptionCommand;
435
+ exports.DeleteDomainCommand = DeleteDomainCommand;
436
+ exports.DomainStatus = DomainStatus;
437
+ exports.EncryptionType = EncryptionType;
438
+ exports.GetDomainCommand = GetDomainCommand;
439
+ exports.GetMedicalScribeListeningSessionCommand = GetMedicalScribeListeningSessionCommand;
440
+ exports.GetPatientInsightsJobCommand = GetPatientInsightsJobCommand;
441
+ exports.GetSubscriptionCommand = GetSubscriptionCommand;
442
+ exports.InsightsType = InsightsType;
443
+ exports.JobStatus = JobStatus;
444
+ exports.ListDomainsCommand = ListDomainsCommand;
445
+ exports.ListSubscriptionsCommand = ListSubscriptionsCommand;
446
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
447
+ exports.ManagedNoteTemplate = ManagedNoteTemplate;
448
+ exports.MedicalScribeLanguageCode = MedicalScribeLanguageCode;
449
+ exports.MedicalScribeMediaEncoding = MedicalScribeMediaEncoding;
450
+ exports.MedicalScribeParticipantRole = MedicalScribeParticipantRole;
451
+ exports.MedicalScribeSessionControlEventType = MedicalScribeSessionControlEventType;
452
+ exports.MedicalScribeStreamStatus = MedicalScribeStreamStatus;
453
+ exports.PostStreamArtifactGenerationStatus = PostStreamArtifactGenerationStatus;
454
+ exports.Pronouns = Pronouns;
455
+ exports.ProviderRole = ProviderRole;
456
+ exports.Specialty = Specialty;
457
+ exports.StartMedicalScribeListeningSessionCommand = StartMedicalScribeListeningSessionCommand;
458
+ exports.StartPatientInsightsJobCommand = StartPatientInsightsJobCommand;
459
+ exports.SubscriptionStatus = SubscriptionStatus;
460
+ exports.TagResourceCommand = TagResourceCommand;
461
+ exports.UntagResourceCommand = UntagResourceCommand;
462
+ exports.paginateListDomains = paginateListDomains;
463
+ exports.paginateListSubscriptions = paginateListSubscriptions;
464
+ Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
465
+ !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
466
+ Object.defineProperty(exports, '__proto__', {
467
+ enumerable: true,
468
+ value: schemas_0['__proto__']
469
+ });
470
+
471
+ Object.keys(schemas_0).forEach(function (k) {
472
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
473
+ });
474
+ Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
475
+ !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
476
+ Object.defineProperty(exports, '__proto__', {
477
+ enumerable: true,
478
+ value: errors['__proto__']
479
+ });
480
+
481
+ Object.keys(errors).forEach(function (k) {
482
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
483
+ });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConnectHealthServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class ConnectHealthServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, ConnectHealthServiceException.prototype);
10
+ }
11
+ }
12
+ exports.ConnectHealthServiceException = ConnectHealthServiceException;
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ConflictException = exports.ValidationException = exports.ResourceNotFoundException = exports.InternalServerException = exports.AccessDeniedException = void 0;
4
+ const ConnectHealthServiceException_1 = require("./ConnectHealthServiceException");
5
+ class AccessDeniedException extends ConnectHealthServiceException_1.ConnectHealthServiceException {
6
+ name = "AccessDeniedException";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "AccessDeniedException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
+ }
16
+ }
17
+ exports.AccessDeniedException = AccessDeniedException;
18
+ class InternalServerException extends ConnectHealthServiceException_1.ConnectHealthServiceException {
19
+ name = "InternalServerException";
20
+ $fault = "server";
21
+ $retryable = {};
22
+ constructor(opts) {
23
+ super({
24
+ name: "InternalServerException",
25
+ $fault: "server",
26
+ ...opts,
27
+ });
28
+ Object.setPrototypeOf(this, InternalServerException.prototype);
29
+ }
30
+ }
31
+ exports.InternalServerException = InternalServerException;
32
+ class ResourceNotFoundException extends ConnectHealthServiceException_1.ConnectHealthServiceException {
33
+ name = "ResourceNotFoundException";
34
+ $fault = "client";
35
+ constructor(opts) {
36
+ super({
37
+ name: "ResourceNotFoundException",
38
+ $fault: "client",
39
+ ...opts,
40
+ });
41
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
42
+ }
43
+ }
44
+ exports.ResourceNotFoundException = ResourceNotFoundException;
45
+ class ValidationException extends ConnectHealthServiceException_1.ConnectHealthServiceException {
46
+ name = "ValidationException";
47
+ $fault = "client";
48
+ constructor(opts) {
49
+ super({
50
+ name: "ValidationException",
51
+ $fault: "client",
52
+ ...opts,
53
+ });
54
+ Object.setPrototypeOf(this, ValidationException.prototype);
55
+ }
56
+ }
57
+ exports.ValidationException = ValidationException;
58
+ class ConflictException extends ConnectHealthServiceException_1.ConnectHealthServiceException {
59
+ name = "ConflictException";
60
+ $fault = "client";
61
+ constructor(opts) {
62
+ super({
63
+ name: "ConflictException",
64
+ $fault: "client",
65
+ ...opts,
66
+ });
67
+ Object.setPrototypeOf(this, ConflictException.prototype);
68
+ }
69
+ }
70
+ exports.ConflictException = ConflictException;
71
+ class ServiceQuotaExceededException extends ConnectHealthServiceException_1.ConnectHealthServiceException {
72
+ name = "ServiceQuotaExceededException";
73
+ $fault = "client";
74
+ constructor(opts) {
75
+ super({
76
+ name: "ServiceQuotaExceededException",
77
+ $fault: "client",
78
+ ...opts,
79
+ });
80
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
81
+ }
82
+ }
83
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
84
+ class ThrottlingException extends ConnectHealthServiceException_1.ConnectHealthServiceException {
85
+ name = "ThrottlingException";
86
+ $fault = "client";
87
+ $retryable = {
88
+ throttling: true,
89
+ };
90
+ constructor(opts) {
91
+ super({
92
+ name: "ThrottlingException",
93
+ $fault: "client",
94
+ ...opts,
95
+ });
96
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
97
+ }
98
+ }
99
+ exports.ThrottlingException = ThrottlingException;
@@ -0,0 +1,43 @@
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 sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
+ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
8
+ const config_resolver_1 = require("@smithy/config-resolver");
9
+ const eventstream_serde_browser_1 = require("@smithy/eventstream-serde-browser");
10
+ const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
11
+ const invalid_dependency_1 = require("@smithy/invalid-dependency");
12
+ const smithy_client_1 = require("@smithy/smithy-client");
13
+ const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
14
+ const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
15
+ const util_retry_1 = require("@smithy/util-retry");
16
+ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
17
+ const getRuntimeConfig = (config) => {
18
+ const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
19
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
20
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
21
+ return {
22
+ ...clientSharedValues,
23
+ ...config,
24
+ runtime: "browser",
25
+ defaultsMode,
26
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
27
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
28
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
29
+ eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? (() => ({
30
+ handle: (0, invalid_dependency_1.invalidFunction)("event stream request is not supported in browser."),
31
+ })),
32
+ eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_browser_1.eventStreamSerdeProvider,
33
+ maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
34
+ region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
+ requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
36
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
37
+ sha256: config?.sha256 ?? sha256_browser_1.Sha256,
38
+ streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
39
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
40
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
41
+ };
42
+ };
43
+ exports.getRuntimeConfig = getRuntimeConfig;