@aws-sdk/client-transcribe-streaming 3.1044.0 → 3.1046.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/dist-cjs/auth/httpAuthSchemeProvider.js +4 -4
- package/dist-cjs/endpoint/bdd.js +2 -2
- package/dist-cjs/endpoint/endpointResolver.js +4 -4
- package/dist-cjs/index.js +28 -29
- package/dist-cjs/models/TranscribeStreamingServiceException.js +3 -3
- package/dist-cjs/runtimeConfig.browser.js +14 -16
- package/dist-cjs/runtimeConfig.js +20 -24
- package/dist-cjs/runtimeConfig.shared.js +9 -10
- package/dist-es/TranscribeStreaming.js +1 -1
- package/dist-es/TranscribeStreamingClient.js +6 -6
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-es/commands/GetMedicalScribeStreamCommand.js +2 -2
- package/dist-es/commands/StartCallAnalyticsStreamTranscriptionCommand.js +2 -2
- package/dist-es/commands/StartMedicalScribeStreamCommand.js +2 -2
- package/dist-es/commands/StartMedicalStreamTranscriptionCommand.js +2 -2
- package/dist-es/commands/StartStreamTranscriptionCommand.js +2 -2
- package/dist-es/endpoint/bdd.js +1 -1
- package/dist-es/endpoint/endpointResolver.js +1 -1
- package/dist-es/models/TranscribeStreamingServiceException.js +1 -1
- package/dist-es/runtimeConfig.browser.js +5 -7
- package/dist-es/runtimeConfig.js +5 -9
- package/dist-es/runtimeConfig.shared.js +3 -4
- package/dist-es/runtimeExtensions.js +2 -2
- package/dist-types/TranscribeStreamingClient.d.ts +6 -6
- package/dist-types/commands/GetMedicalScribeStreamCommand.d.ts +6 -4
- package/dist-types/commands/StartCallAnalyticsStreamTranscriptionCommand.d.ts +6 -4
- package/dist-types/commands/StartMedicalScribeStreamCommand.d.ts +6 -4
- package/dist-types/commands/StartMedicalStreamTranscriptionCommand.d.ts +6 -4
- package/dist-types/commands/StartStreamTranscriptionCommand.d.ts +6 -4
- package/dist-types/endpoint/bdd.d.ts +1 -1
- package/dist-types/extensionConfiguration.d.ts +1 -1
- package/dist-types/models/TranscribeStreamingServiceException.d.ts +1 -1
- package/dist-types/models/errors.d.ts +1 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/TranscribeStreamingClient.d.ts +12 -18
- package/dist-types/ts3.4/commands/GetMedicalScribeStreamCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/StartCallAnalyticsStreamTranscriptionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/StartMedicalScribeStreamCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/StartMedicalStreamTranscriptionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/StartStreamTranscriptionCommand.d.ts +6 -4
- package/dist-types/ts3.4/endpoint/bdd.d.ts +1 -1
- package/dist-types/ts3.4/extensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/models/TranscribeStreamingServiceException.d.ts +1 -1
- package/dist-types/ts3.4/models/errors.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -4
- package/package.json +18 -42
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveHttpAuthSchemeConfig = exports.defaultTranscribeStreamingHttpAuthSchemeProvider = exports.defaultTranscribeStreamingHttpAuthSchemeParametersProvider = void 0;
|
|
4
4
|
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
|
-
const
|
|
5
|
+
const client_1 = require("@smithy/core/client");
|
|
6
6
|
const defaultTranscribeStreamingHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
7
|
return {
|
|
8
|
-
operation: (0,
|
|
9
|
-
region: await (0,
|
|
8
|
+
operation: (0, client_1.getSmithyContext)(context).operation,
|
|
9
|
+
region: await (0, client_1.normalizeProvider)(config.region)() || (() => {
|
|
10
10
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
11
|
})(),
|
|
12
12
|
};
|
|
@@ -40,7 +40,7 @@ exports.defaultTranscribeStreamingHttpAuthSchemeProvider = defaultTranscribeStre
|
|
|
40
40
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
41
41
|
const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
|
|
42
42
|
return Object.assign(config_0, {
|
|
43
|
-
authSchemePreference: (0,
|
|
43
|
+
authSchemePreference: (0, client_1.normalizeProvider)(config.authSchemePreference ?? []),
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
46
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/endpoint/bdd.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.bdd = void 0;
|
|
4
|
-
const
|
|
4
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
5
5
|
const k = "ref";
|
|
6
6
|
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
7
7
|
const _data = {
|
|
@@ -46,4 +46,4 @@ const nodes = new Int32Array([
|
|
|
46
46
|
3, r + 1, 13,
|
|
47
47
|
4, r + 2, r + 3,
|
|
48
48
|
]);
|
|
49
|
-
exports.bdd =
|
|
49
|
+
exports.bdd = endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultEndpointResolver = void 0;
|
|
4
4
|
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
|
-
const
|
|
5
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
6
6
|
const bdd_1 = require("./bdd");
|
|
7
|
-
const cache = new
|
|
7
|
+
const cache = new endpoints_1.EndpointCache({
|
|
8
8
|
size: 50,
|
|
9
9
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
10
|
});
|
|
11
11
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
12
|
-
return cache.get(endpointParams, () => (0,
|
|
12
|
+
return cache.get(endpointParams, () => (0, endpoints_1.decideEndpoint)(bdd_1.bdd, {
|
|
13
13
|
endpointParams: endpointParams,
|
|
14
14
|
logger: context.logger,
|
|
15
15
|
}));
|
|
16
16
|
};
|
|
17
17
|
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
18
|
-
|
|
18
|
+
endpoints_1.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
package/dist-cjs/index.js
CHANGED
|
@@ -6,18 +6,17 @@ var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
|
6
6
|
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
7
7
|
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
8
8
|
var middlewareWebsocket = require('@aws-sdk/middleware-websocket');
|
|
9
|
-
var configResolver = require('@smithy/config-resolver');
|
|
10
9
|
var core = require('@smithy/core');
|
|
10
|
+
var client = require('@smithy/core/client');
|
|
11
|
+
var config = require('@smithy/core/config');
|
|
12
|
+
var endpoints = require('@smithy/core/endpoints');
|
|
13
|
+
var eventStreams = require('@smithy/core/event-streams');
|
|
14
|
+
var protocols = require('@smithy/core/protocols');
|
|
15
|
+
var retry = require('@smithy/core/retry');
|
|
11
16
|
var schema = require('@smithy/core/schema');
|
|
12
|
-
var eventstreamSerdeConfigResolver = require('@smithy/eventstream-serde-config-resolver');
|
|
13
|
-
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
14
|
-
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
15
|
-
var middlewareRetry = require('@smithy/middleware-retry');
|
|
16
|
-
var smithyClient = require('@smithy/smithy-client');
|
|
17
17
|
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
18
18
|
var runtimeConfig = require('./runtimeConfig');
|
|
19
19
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
20
|
-
var protocolHttp = require('@smithy/protocol-http');
|
|
21
20
|
var schemas_0 = require('./schemas/schemas_0');
|
|
22
21
|
var middlewareSdkTranscribeStreaming = require('@aws-sdk/middleware-sdk-transcribe-streaming');
|
|
23
22
|
var errors = require('./models/errors');
|
|
@@ -77,12 +76,12 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
77
76
|
};
|
|
78
77
|
|
|
79
78
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
80
|
-
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig),
|
|
79
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
81
80
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
82
|
-
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
81
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
83
82
|
};
|
|
84
83
|
|
|
85
|
-
class TranscribeStreamingClient extends
|
|
84
|
+
class TranscribeStreamingClient extends client.Client {
|
|
86
85
|
config;
|
|
87
86
|
constructor(...[configuration]) {
|
|
88
87
|
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
@@ -90,11 +89,11 @@ class TranscribeStreamingClient extends smithyClient.Client {
|
|
|
90
89
|
this.initConfig = _config_0;
|
|
91
90
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
92
91
|
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
93
|
-
const _config_3 =
|
|
94
|
-
const _config_4 =
|
|
92
|
+
const _config_3 = retry.resolveRetryConfig(_config_2);
|
|
93
|
+
const _config_4 = config.resolveRegionConfig(_config_3);
|
|
95
94
|
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
96
|
-
const _config_6 =
|
|
97
|
-
const _config_7 =
|
|
95
|
+
const _config_6 = endpoints.resolveEndpointConfig(_config_5);
|
|
96
|
+
const _config_7 = eventStreams.resolveEventStreamSerdeConfig(_config_6);
|
|
98
97
|
const _config_8 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_7);
|
|
99
98
|
const _config_9 = middlewareEventstream.resolveEventStreamConfig(_config_8);
|
|
100
99
|
const _config_10 = middlewareWebsocket.resolveWebSocketConfig(_config_9);
|
|
@@ -102,8 +101,8 @@ class TranscribeStreamingClient extends smithyClient.Client {
|
|
|
102
101
|
this.config = _config_11;
|
|
103
102
|
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
104
103
|
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
105
|
-
this.middlewareStack.use(
|
|
106
|
-
this.middlewareStack.use(
|
|
104
|
+
this.middlewareStack.use(retry.getRetryPlugin(this.config));
|
|
105
|
+
this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
|
|
107
106
|
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
108
107
|
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
109
108
|
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
@@ -120,11 +119,11 @@ class TranscribeStreamingClient extends smithyClient.Client {
|
|
|
120
119
|
}
|
|
121
120
|
}
|
|
122
121
|
|
|
123
|
-
class GetMedicalScribeStreamCommand extends
|
|
122
|
+
class GetMedicalScribeStreamCommand extends client.Command
|
|
124
123
|
.classBuilder()
|
|
125
124
|
.ep(commonParams)
|
|
126
125
|
.m(function (Command, cs, config, o) {
|
|
127
|
-
return [
|
|
126
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
128
127
|
})
|
|
129
128
|
.s("Transcribe", "GetMedicalScribeStream", {})
|
|
130
129
|
.n("TranscribeStreamingClient", "GetMedicalScribeStreamCommand")
|
|
@@ -132,12 +131,12 @@ class GetMedicalScribeStreamCommand extends smithyClient.Command
|
|
|
132
131
|
.build() {
|
|
133
132
|
}
|
|
134
133
|
|
|
135
|
-
class StartCallAnalyticsStreamTranscriptionCommand extends
|
|
134
|
+
class StartCallAnalyticsStreamTranscriptionCommand extends client.Command
|
|
136
135
|
.classBuilder()
|
|
137
136
|
.ep(commonParams)
|
|
138
137
|
.m(function (Command, cs, config, o) {
|
|
139
138
|
return [
|
|
140
|
-
|
|
139
|
+
endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
141
140
|
middlewareEventstream.getEventStreamPlugin(config),
|
|
142
141
|
middlewareWebsocket.getWebSocketPlugin(config, {
|
|
143
142
|
headerPrefix: 'x-amzn-transcribe-',
|
|
@@ -156,12 +155,12 @@ class StartCallAnalyticsStreamTranscriptionCommand extends smithyClient.Command
|
|
|
156
155
|
.build() {
|
|
157
156
|
}
|
|
158
157
|
|
|
159
|
-
class StartMedicalScribeStreamCommand extends
|
|
158
|
+
class StartMedicalScribeStreamCommand extends client.Command
|
|
160
159
|
.classBuilder()
|
|
161
160
|
.ep(commonParams)
|
|
162
161
|
.m(function (Command, cs, config, o) {
|
|
163
162
|
return [
|
|
164
|
-
|
|
163
|
+
endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
165
164
|
middlewareEventstream.getEventStreamPlugin(config),
|
|
166
165
|
middlewareWebsocket.getWebSocketPlugin(config, {
|
|
167
166
|
headerPrefix: 'x-amzn-transcribe-',
|
|
@@ -180,12 +179,12 @@ class StartMedicalScribeStreamCommand extends smithyClient.Command
|
|
|
180
179
|
.build() {
|
|
181
180
|
}
|
|
182
181
|
|
|
183
|
-
class StartMedicalStreamTranscriptionCommand extends
|
|
182
|
+
class StartMedicalStreamTranscriptionCommand extends client.Command
|
|
184
183
|
.classBuilder()
|
|
185
184
|
.ep(commonParams)
|
|
186
185
|
.m(function (Command, cs, config, o) {
|
|
187
186
|
return [
|
|
188
|
-
|
|
187
|
+
endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
189
188
|
middlewareEventstream.getEventStreamPlugin(config),
|
|
190
189
|
middlewareWebsocket.getWebSocketPlugin(config, {
|
|
191
190
|
headerPrefix: 'x-amzn-transcribe-',
|
|
@@ -204,12 +203,12 @@ class StartMedicalStreamTranscriptionCommand extends smithyClient.Command
|
|
|
204
203
|
.build() {
|
|
205
204
|
}
|
|
206
205
|
|
|
207
|
-
class StartStreamTranscriptionCommand extends
|
|
206
|
+
class StartStreamTranscriptionCommand extends client.Command
|
|
208
207
|
.classBuilder()
|
|
209
208
|
.ep(commonParams)
|
|
210
209
|
.m(function (Command, cs, config, o) {
|
|
211
210
|
return [
|
|
212
|
-
|
|
211
|
+
endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
213
212
|
middlewareEventstream.getEventStreamPlugin(config),
|
|
214
213
|
middlewareWebsocket.getWebSocketPlugin(config, {
|
|
215
214
|
headerPrefix: 'x-amzn-transcribe-',
|
|
@@ -237,7 +236,7 @@ const commands = {
|
|
|
237
236
|
};
|
|
238
237
|
class TranscribeStreaming extends TranscribeStreamingClient {
|
|
239
238
|
}
|
|
240
|
-
|
|
239
|
+
client.createAggregatedClient(commands, TranscribeStreaming);
|
|
241
240
|
|
|
242
241
|
const ItemType = {
|
|
243
242
|
PRONUNCIATION: "pronunciation",
|
|
@@ -455,8 +454,8 @@ const Type = {
|
|
|
455
454
|
DICTATION: "DICTATION",
|
|
456
455
|
};
|
|
457
456
|
|
|
458
|
-
exports.$Command =
|
|
459
|
-
exports.__Client =
|
|
457
|
+
exports.$Command = client.Command;
|
|
458
|
+
exports.__Client = client.Client;
|
|
460
459
|
exports.TranscribeStreamingServiceException = TranscribeStreamingServiceException.TranscribeStreamingServiceException;
|
|
461
460
|
exports.CallAnalyticsLanguageCode = CallAnalyticsLanguageCode;
|
|
462
461
|
exports.ClinicalNoteGenerationStatus = ClinicalNoteGenerationStatus;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TranscribeStreamingServiceException = exports.__ServiceException = void 0;
|
|
4
|
-
const
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return
|
|
6
|
-
class TranscribeStreamingServiceException extends
|
|
4
|
+
const client_1 = require("@smithy/core/client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
|
|
6
|
+
class TranscribeStreamingServiceException extends client_1.ServiceException {
|
|
7
7
|
constructor(options) {
|
|
8
8
|
super(options);
|
|
9
9
|
Object.setPrototypeOf(this, TranscribeStreamingServiceException.prototype);
|
|
@@ -7,38 +7,36 @@ const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
|
7
7
|
const middleware_sdk_transcribe_streaming_1 = require("@aws-sdk/middleware-sdk-transcribe-streaming");
|
|
8
8
|
const middleware_websocket_1 = require("@aws-sdk/middleware-websocket");
|
|
9
9
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
10
|
-
const
|
|
11
|
-
const
|
|
10
|
+
const client_1 = require("@smithy/core/client");
|
|
11
|
+
const config_1 = require("@smithy/core/config");
|
|
12
|
+
const event_streams_1 = require("@smithy/core/event-streams");
|
|
13
|
+
const retry_1 = require("@smithy/core/retry");
|
|
14
|
+
const serde_1 = require("@smithy/core/serde");
|
|
12
15
|
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
13
|
-
const invalid_dependency_1 = require("@smithy/invalid-dependency");
|
|
14
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
15
|
-
const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
|
|
16
|
-
const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
|
|
17
|
-
const util_retry_1 = require("@smithy/util-retry");
|
|
18
16
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
19
17
|
const getRuntimeConfig = (config) => {
|
|
20
|
-
const defaultsMode = (0,
|
|
21
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
18
|
+
const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
|
|
19
|
+
const defaultConfigProvider = () => defaultsMode().then(client_1.loadConfigsForDefaultMode);
|
|
22
20
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
23
21
|
return {
|
|
24
22
|
...clientSharedValues,
|
|
25
23
|
...config,
|
|
26
24
|
runtime: "browser",
|
|
27
25
|
defaultsMode,
|
|
28
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
26
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
|
|
29
27
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
30
28
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
31
29
|
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? (() => middleware_sdk_transcribe_streaming_1.eventStreamPayloadHandler),
|
|
32
|
-
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ??
|
|
33
|
-
maxAttempts: config?.maxAttempts ??
|
|
34
|
-
region: config?.region ?? (0,
|
|
30
|
+
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? event_streams_1.eventStreamSerdeProvider,
|
|
31
|
+
maxAttempts: config?.maxAttempts ?? retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
32
|
+
region: config?.region ?? (0, client_1.invalidProvider)("Region is missing"),
|
|
35
33
|
requestHandler: middleware_websocket_1.WebSocketFetchHandler.create(config?.requestHandler
|
|
36
34
|
?? defaultConfigProvider, fetch_http_handler_1.FetchHttpHandler.create(defaultConfigProvider)),
|
|
37
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode ||
|
|
35
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE),
|
|
38
36
|
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
39
37
|
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
40
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(
|
|
41
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(
|
|
38
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
39
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
42
40
|
};
|
|
43
41
|
};
|
|
44
42
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -8,21 +8,17 @@ const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
|
8
8
|
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
9
9
|
const eventstream_handler_node_1 = require("@aws-sdk/eventstream-handler-node");
|
|
10
10
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
11
|
+
const client_2 = require("@smithy/core/client");
|
|
12
|
+
const config_1 = require("@smithy/core/config");
|
|
13
|
+
const event_streams_1 = require("@smithy/core/event-streams");
|
|
14
|
+
const retry_1 = require("@smithy/core/retry");
|
|
15
|
+
const serde_1 = require("@smithy/core/serde");
|
|
16
16
|
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
17
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
18
|
-
const util_body_length_node_1 = require("@smithy/util-body-length-node");
|
|
19
|
-
const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
|
|
20
|
-
const util_retry_1 = require("@smithy/util-retry");
|
|
21
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
22
18
|
const getRuntimeConfig = (config) => {
|
|
23
|
-
(0,
|
|
24
|
-
const defaultsMode = (0,
|
|
25
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
19
|
+
(0, client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
20
|
+
const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
|
|
26
22
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
27
23
|
(0, client_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
28
24
|
const loaderConfig = {
|
|
@@ -34,28 +30,28 @@ const getRuntimeConfig = (config) => {
|
|
|
34
30
|
...config,
|
|
35
31
|
runtime: "node",
|
|
36
32
|
defaultsMode,
|
|
37
|
-
authSchemePreference: config?.authSchemePreference ?? (0,
|
|
38
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
33
|
+
authSchemePreference: config?.authSchemePreference ?? (0, config_1.loadConfig)(httpAuthSchemes_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
34
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
|
|
39
35
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
|
|
40
36
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
41
37
|
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? eventstream_handler_node_1.eventStreamPayloadHandlerProvider,
|
|
42
|
-
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ??
|
|
43
|
-
maxAttempts: config?.maxAttempts ?? (0,
|
|
44
|
-
region: config?.region ?? (0,
|
|
38
|
+
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? event_streams_1.eventStreamSerdeProvider,
|
|
39
|
+
maxAttempts: config?.maxAttempts ?? (0, config_1.loadConfig)(retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
40
|
+
region: config?.region ?? (0, config_1.loadConfig)(config_1.NODE_REGION_CONFIG_OPTIONS, { ...config_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
45
41
|
requestHandler: node_http_handler_1.NodeHttp2Handler.create(config?.requestHandler ?? (async () => ({
|
|
46
42
|
...await defaultConfigProvider(),
|
|
47
43
|
disableConcurrentStreams: true
|
|
48
44
|
}))),
|
|
49
45
|
retryMode: config?.retryMode ??
|
|
50
|
-
(0,
|
|
51
|
-
...
|
|
52
|
-
default: async () => (await defaultConfigProvider()).retryMode ||
|
|
46
|
+
(0, config_1.loadConfig)({
|
|
47
|
+
...retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
48
|
+
default: async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE,
|
|
53
49
|
}, config),
|
|
54
|
-
sha256: config?.sha256 ??
|
|
50
|
+
sha256: config?.sha256 ?? serde_1.Hash.bind(null, "sha256"),
|
|
55
51
|
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
56
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0,
|
|
57
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (0,
|
|
58
|
-
userAgentAppId: config?.userAgentAppId ?? (0,
|
|
52
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, config_1.loadConfig)(config_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
53
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, config_1.loadConfig)(config_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
54
|
+
userAgentAppId: config?.userAgentAppId ?? (0, config_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
59
55
|
};
|
|
60
56
|
};
|
|
61
57
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -3,18 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
5
|
const protocols_1 = require("@aws-sdk/core/protocols");
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const util_utf8_1 = require("@smithy/util-utf8");
|
|
6
|
+
const client_1 = require("@smithy/core/client");
|
|
7
|
+
const protocols_2 = require("@smithy/core/protocols");
|
|
8
|
+
const serde_1 = require("@smithy/core/serde");
|
|
10
9
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
11
10
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
12
11
|
const schemas_0_1 = require("./schemas/schemas_0");
|
|
13
12
|
const getRuntimeConfig = (config) => {
|
|
14
13
|
return {
|
|
15
14
|
apiVersion: "2017-10-26",
|
|
16
|
-
base64Decoder: config?.base64Decoder ??
|
|
17
|
-
base64Encoder: config?.base64Encoder ??
|
|
15
|
+
base64Decoder: config?.base64Decoder ?? serde_1.fromBase64,
|
|
16
|
+
base64Encoder: config?.base64Encoder ?? serde_1.toBase64,
|
|
18
17
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
19
18
|
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
20
19
|
extensions: config?.extensions ?? [],
|
|
@@ -26,7 +25,7 @@ const getRuntimeConfig = (config) => {
|
|
|
26
25
|
signer: new httpAuthSchemes_1.AwsSdkSigV4Signer(),
|
|
27
26
|
},
|
|
28
27
|
],
|
|
29
|
-
logger: config?.logger ?? new
|
|
28
|
+
logger: config?.logger ?? new client_1.NoOpLogger(),
|
|
30
29
|
protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
|
|
31
30
|
protocolSettings: config?.protocolSettings ?? {
|
|
32
31
|
defaultNamespace: "com.amazonaws.transcribestreaming",
|
|
@@ -35,9 +34,9 @@ const getRuntimeConfig = (config) => {
|
|
|
35
34
|
serviceTarget: "Transcribe",
|
|
36
35
|
},
|
|
37
36
|
serviceId: config?.serviceId ?? "Transcribe Streaming",
|
|
38
|
-
urlParser: config?.urlParser ??
|
|
39
|
-
utf8Decoder: config?.utf8Decoder ??
|
|
40
|
-
utf8Encoder: config?.utf8Encoder ??
|
|
37
|
+
urlParser: config?.urlParser ?? protocols_2.parseUrl,
|
|
38
|
+
utf8Decoder: config?.utf8Decoder ?? serde_1.fromUtf8,
|
|
39
|
+
utf8Encoder: config?.utf8Encoder ?? serde_1.toUtf8,
|
|
41
40
|
};
|
|
42
41
|
};
|
|
43
42
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createAggregatedClient } from "@smithy/
|
|
1
|
+
import { createAggregatedClient } from "@smithy/core/client";
|
|
2
2
|
import { GetMedicalScribeStreamCommand, } from "./commands/GetMedicalScribeStreamCommand";
|
|
3
3
|
import { StartCallAnalyticsStreamTranscriptionCommand, } from "./commands/StartCallAnalyticsStreamTranscriptionCommand";
|
|
4
4
|
import { StartMedicalScribeStreamCommand, } from "./commands/StartMedicalScribeStreamCommand";
|
|
@@ -4,14 +4,14 @@ import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
|
4
4
|
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
5
5
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { resolveWebSocketConfig, } from "@aws-sdk/middleware-websocket";
|
|
7
|
-
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
8
7
|
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
8
|
+
import { Client as __Client, } from "@smithy/core/client";
|
|
9
|
+
import { resolveRegionConfig } from "@smithy/core/config";
|
|
10
|
+
import { resolveEndpointConfig } from "@smithy/core/endpoints";
|
|
11
|
+
import { resolveEventStreamSerdeConfig, } from "@smithy/core/event-streams";
|
|
12
|
+
import { getContentLengthPlugin } from "@smithy/core/protocols";
|
|
13
|
+
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/core/retry";
|
|
9
14
|
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
10
|
-
import { resolveEventStreamSerdeConfig, } from "@smithy/eventstream-serde-config-resolver";
|
|
11
|
-
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
12
|
-
import { resolveEndpointConfig, } from "@smithy/middleware-endpoint";
|
|
13
|
-
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
|
|
14
|
-
import { Client as __Client, } from "@smithy/smithy-client";
|
|
15
15
|
import { defaultTranscribeStreamingHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
|
16
16
|
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
17
17
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
|
-
import { getSmithyContext, normalizeProvider } from "@smithy/
|
|
2
|
+
import { getSmithyContext, normalizeProvider } from "@smithy/core/client";
|
|
3
3
|
export const defaultTranscribeStreamingHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
4
|
return {
|
|
5
5
|
operation: getSmithyContext(context).operation,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
4
|
import { GetMedicalScribeStream$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getEventStreamPlugin } from "@aws-sdk/middleware-eventstream";
|
|
2
2
|
import { getTranscribeStreamingPlugin } from "@aws-sdk/middleware-sdk-transcribe-streaming";
|
|
3
3
|
import { getWebSocketPlugin } from "@aws-sdk/middleware-websocket";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
5
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
6
6
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
7
7
|
import { StartCallAnalyticsStreamTranscription$ } from "../schemas/schemas_0";
|
|
8
8
|
export { $Command };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getEventStreamPlugin } from "@aws-sdk/middleware-eventstream";
|
|
2
2
|
import { getTranscribeStreamingPlugin } from "@aws-sdk/middleware-sdk-transcribe-streaming";
|
|
3
3
|
import { getWebSocketPlugin } from "@aws-sdk/middleware-websocket";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
5
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
6
6
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
7
7
|
import { StartMedicalScribeStream$ } from "../schemas/schemas_0";
|
|
8
8
|
export { $Command };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getEventStreamPlugin } from "@aws-sdk/middleware-eventstream";
|
|
2
2
|
import { getTranscribeStreamingPlugin } from "@aws-sdk/middleware-sdk-transcribe-streaming";
|
|
3
3
|
import { getWebSocketPlugin } from "@aws-sdk/middleware-websocket";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
5
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
6
6
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
7
7
|
import { StartMedicalStreamTranscription$ } from "../schemas/schemas_0";
|
|
8
8
|
export { $Command };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getEventStreamPlugin } from "@aws-sdk/middleware-eventstream";
|
|
2
2
|
import { getTranscribeStreamingPlugin } from "@aws-sdk/middleware-sdk-transcribe-streaming";
|
|
3
3
|
import { getWebSocketPlugin } from "@aws-sdk/middleware-websocket";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
5
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
6
6
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
7
7
|
import { StartStreamTranscription$ } from "../schemas/schemas_0";
|
|
8
8
|
export { $Command };
|
package/dist-es/endpoint/bdd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BinaryDecisionDiagram } from "@smithy/
|
|
1
|
+
import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
|
|
2
2
|
const k = "ref";
|
|
3
3
|
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
4
4
|
const _data = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
|
|
2
|
-
import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/
|
|
2
|
+
import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/core/endpoints";
|
|
3
3
|
import { bdd } from "./bdd";
|
|
4
4
|
const cache = new EndpointCache({
|
|
5
5
|
size: 50,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ServiceException as __ServiceException, } from "@smithy/
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@smithy/core/client";
|
|
2
2
|
export { __ServiceException };
|
|
3
3
|
export class TranscribeStreamingServiceException extends __ServiceException {
|
|
4
4
|
constructor(options) {
|
|
@@ -3,14 +3,12 @@ import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
|
3
3
|
import { eventStreamPayloadHandler } from "@aws-sdk/middleware-sdk-transcribe-streaming";
|
|
4
4
|
import { WebSocketFetchHandler as WebSocketRequestHandler, } from "@aws-sdk/middleware-websocket";
|
|
5
5
|
import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
7
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
8
|
+
import { eventStreamSerdeProvider } from "@smithy/core/event-streams";
|
|
9
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/core/retry";
|
|
10
|
+
import { calculateBodyLength } from "@smithy/core/serde";
|
|
8
11
|
import { FetchHttpHandler as HttpRequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
|
9
|
-
import { invalidProvider } from "@smithy/invalid-dependency";
|
|
10
|
-
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
11
|
-
import { calculateBodyLength } from "@smithy/util-body-length-browser";
|
|
12
|
-
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
|
|
13
|
-
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
14
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
13
|
export const getRuntimeConfig = (config) => {
|
|
16
14
|
const defaultsMode = resolveDefaultsModeConfig(config);
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -4,16 +4,12 @@ import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core/httpAuthSchem
|
|
|
4
4
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
5
5
|
import { eventStreamPayloadHandlerProvider } from "@aws-sdk/eventstream-handler-node";
|
|
6
6
|
import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/util-user-agent-node";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/
|
|
11
|
-
import {
|
|
7
|
+
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
8
|
+
import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
9
|
+
import { eventStreamSerdeProvider } from "@smithy/core/event-streams";
|
|
10
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
|
|
11
|
+
import { calculateBodyLength, Hash } from "@smithy/core/serde";
|
|
12
12
|
import { NodeHttp2Handler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
13
|
-
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
14
|
-
import { calculateBodyLength } from "@smithy/util-body-length-node";
|
|
15
|
-
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
|
16
|
-
import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
17
13
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
18
14
|
export const getRuntimeConfig = (config) => {
|
|
19
15
|
emitWarningIfUnsupportedVersion(process.version);
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
2
|
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
3
|
-
import { NoOpLogger } from "@smithy/
|
|
4
|
-
import { parseUrl } from "@smithy/
|
|
5
|
-
import { fromBase64, toBase64 } from "@smithy/
|
|
6
|
-
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
3
|
+
import { NoOpLogger } from "@smithy/core/client";
|
|
4
|
+
import { parseUrl } from "@smithy/core/protocols";
|
|
5
|
+
import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
|
|
7
6
|
import { defaultTranscribeStreamingHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
8
7
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
9
8
|
import { errorTypeRegistries } from "./schemas/schemas_0";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/core/client";
|
|
3
|
+
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/core/protocols";
|
|
4
4
|
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
5
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
6
6
|
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|