@aws-sdk/client-transcribe-streaming 3.46.0 → 3.47.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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
7
18
 
8
19
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StartStreamTranscriptionResponse = exports.TranscriptResultStream = exports.TranscriptEvent = exports.Transcript = exports.StartStreamTranscriptionRequest = exports.VocabularyFilterMethod = exports.StartMedicalStreamTranscriptionResponse = exports.StartMedicalStreamTranscriptionRequest = exports.Type = exports.Specialty = exports.Result = exports.PartialResultsStability = exports.MedicalTranscriptResultStream = exports.ServiceUnavailableException = exports.MedicalTranscriptEvent = exports.MedicalTranscript = exports.MedicalResult = exports.MedicalContentIdentificationType = exports.MedicalAlternative = exports.MedicalItem = exports.MedicalEntity = exports.MediaEncoding = exports.LimitExceededException = exports.LanguageWithScore = exports.LanguageCode = exports.InternalFailureException = exports.ContentRedactionType = exports.ContentIdentificationType = exports.ConflictException = exports.BadRequestException = exports.AudioStream = exports.AudioEvent = exports.Alternative = exports.Item = exports.ItemType = exports.Entity = void 0;
3
+ exports.StartStreamTranscriptionResponse = exports.TranscriptResultStream = exports.TranscriptEvent = exports.Transcript = exports.StartStreamTranscriptionRequest = exports.VocabularyFilterMethod = exports.StartMedicalStreamTranscriptionResponse = exports.StartMedicalStreamTranscriptionRequest = exports.Type = exports.Specialty = exports.Result = exports.PartialResultsStability = exports.MedicalTranscriptResultStream = exports.MedicalTranscriptEvent = exports.MedicalTranscript = exports.MedicalResult = exports.MedicalContentIdentificationType = exports.MedicalAlternative = exports.MedicalItem = exports.MedicalEntity = exports.MediaEncoding = exports.LanguageWithScore = exports.LanguageCode = exports.ContentRedactionType = exports.ContentIdentificationType = exports.AudioStream = exports.AudioEvent = exports.Alternative = exports.Item = exports.ItemType = exports.Entity = void 0;
4
4
  var Entity;
5
5
  (function (Entity) {
6
6
  Entity.filterSensitiveLog = (obj) => ({
@@ -44,18 +44,6 @@ var AudioStream;
44
44
  return { [obj.$unknown[0]]: "UNKNOWN" };
45
45
  };
46
46
  })(AudioStream = exports.AudioStream || (exports.AudioStream = {}));
47
- var BadRequestException;
48
- (function (BadRequestException) {
49
- BadRequestException.filterSensitiveLog = (obj) => ({
50
- ...obj,
51
- });
52
- })(BadRequestException = exports.BadRequestException || (exports.BadRequestException = {}));
53
- var ConflictException;
54
- (function (ConflictException) {
55
- ConflictException.filterSensitiveLog = (obj) => ({
56
- ...obj,
57
- });
58
- })(ConflictException = exports.ConflictException || (exports.ConflictException = {}));
59
47
  var ContentIdentificationType;
60
48
  (function (ContentIdentificationType) {
61
49
  ContentIdentificationType["PII"] = "PII";
@@ -64,12 +52,6 @@ var ContentRedactionType;
64
52
  (function (ContentRedactionType) {
65
53
  ContentRedactionType["PII"] = "PII";
66
54
  })(ContentRedactionType = exports.ContentRedactionType || (exports.ContentRedactionType = {}));
67
- var InternalFailureException;
68
- (function (InternalFailureException) {
69
- InternalFailureException.filterSensitiveLog = (obj) => ({
70
- ...obj,
71
- });
72
- })(InternalFailureException = exports.InternalFailureException || (exports.InternalFailureException = {}));
73
55
  var LanguageCode;
74
56
  (function (LanguageCode) {
75
57
  LanguageCode["DE_DE"] = "de-DE";
@@ -91,12 +73,6 @@ var LanguageWithScore;
91
73
  ...obj,
92
74
  });
93
75
  })(LanguageWithScore = exports.LanguageWithScore || (exports.LanguageWithScore = {}));
94
- var LimitExceededException;
95
- (function (LimitExceededException) {
96
- LimitExceededException.filterSensitiveLog = (obj) => ({
97
- ...obj,
98
- });
99
- })(LimitExceededException = exports.LimitExceededException || (exports.LimitExceededException = {}));
100
76
  var MediaEncoding;
101
77
  (function (MediaEncoding) {
102
78
  MediaEncoding["FLAC"] = "flac";
@@ -143,12 +119,6 @@ var MedicalTranscriptEvent;
143
119
  ...obj,
144
120
  });
145
121
  })(MedicalTranscriptEvent = exports.MedicalTranscriptEvent || (exports.MedicalTranscriptEvent = {}));
146
- var ServiceUnavailableException;
147
- (function (ServiceUnavailableException) {
148
- ServiceUnavailableException.filterSensitiveLog = (obj) => ({
149
- ...obj,
150
- });
151
- })(ServiceUnavailableException = exports.ServiceUnavailableException || (exports.ServiceUnavailableException = {}));
152
122
  var MedicalTranscriptResultStream;
153
123
  (function (MedicalTranscriptResultStream) {
154
124
  MedicalTranscriptResultStream.visit = (value, visitor) => {
@@ -170,17 +140,15 @@ var MedicalTranscriptResultStream;
170
140
  if (obj.TranscriptEvent !== undefined)
171
141
  return { TranscriptEvent: MedicalTranscriptEvent.filterSensitiveLog(obj.TranscriptEvent) };
172
142
  if (obj.BadRequestException !== undefined)
173
- return { BadRequestException: BadRequestException.filterSensitiveLog(obj.BadRequestException) };
143
+ return { BadRequestException: obj.BadRequestException };
174
144
  if (obj.LimitExceededException !== undefined)
175
- return { LimitExceededException: LimitExceededException.filterSensitiveLog(obj.LimitExceededException) };
145
+ return { LimitExceededException: obj.LimitExceededException };
176
146
  if (obj.InternalFailureException !== undefined)
177
- return { InternalFailureException: InternalFailureException.filterSensitiveLog(obj.InternalFailureException) };
147
+ return { InternalFailureException: obj.InternalFailureException };
178
148
  if (obj.ConflictException !== undefined)
179
- return { ConflictException: ConflictException.filterSensitiveLog(obj.ConflictException) };
149
+ return { ConflictException: obj.ConflictException };
180
150
  if (obj.ServiceUnavailableException !== undefined)
181
- return {
182
- ServiceUnavailableException: ServiceUnavailableException.filterSensitiveLog(obj.ServiceUnavailableException),
183
- };
151
+ return { ServiceUnavailableException: obj.ServiceUnavailableException };
184
152
  if (obj.$unknown !== undefined)
185
153
  return { [obj.$unknown[0]]: "UNKNOWN" };
186
154
  };
@@ -271,17 +239,15 @@ var TranscriptResultStream;
271
239
  if (obj.TranscriptEvent !== undefined)
272
240
  return { TranscriptEvent: TranscriptEvent.filterSensitiveLog(obj.TranscriptEvent) };
273
241
  if (obj.BadRequestException !== undefined)
274
- return { BadRequestException: BadRequestException.filterSensitiveLog(obj.BadRequestException) };
242
+ return { BadRequestException: obj.BadRequestException };
275
243
  if (obj.LimitExceededException !== undefined)
276
- return { LimitExceededException: LimitExceededException.filterSensitiveLog(obj.LimitExceededException) };
244
+ return { LimitExceededException: obj.LimitExceededException };
277
245
  if (obj.InternalFailureException !== undefined)
278
- return { InternalFailureException: InternalFailureException.filterSensitiveLog(obj.InternalFailureException) };
246
+ return { InternalFailureException: obj.InternalFailureException };
279
247
  if (obj.ConflictException !== undefined)
280
- return { ConflictException: ConflictException.filterSensitiveLog(obj.ConflictException) };
248
+ return { ConflictException: obj.ConflictException };
281
249
  if (obj.ServiceUnavailableException !== undefined)
282
- return {
283
- ServiceUnavailableException: ServiceUnavailableException.filterSensitiveLog(obj.ServiceUnavailableException),
284
- };
250
+ return { ServiceUnavailableException: obj.ServiceUnavailableException };
285
251
  if (obj.$unknown !== undefined)
286
252
  return { [obj.$unknown[0]]: "UNKNOWN" };
287
253
  };
@@ -15,13 +15,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
15
15
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
16
16
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
+ const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
18
20
  const getRuntimeConfig = (config) => {
19
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
22
+ const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
23
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
20
24
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
21
25
  return {
22
26
  ...clientSharedValues,
23
27
  ...config,
24
28
  runtime: "browser",
29
+ defaultsMode,
25
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
26
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
27
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
@@ -32,7 +37,7 @@ const getRuntimeConfig = (config) => {
32
37
  maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
33
38
  region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : invalid_dependency_1.invalidProvider("Region is missing"),
34
39
  requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new middleware_sdk_transcribe_streaming_1.WebSocketHandler(),
35
- retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
40
+ retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
36
41
  sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : sha256_browser_1.Sha256,
37
42
  streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : fetch_http_handler_1.streamCollector,
38
43
  useDualstackEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _p !== void 0 ? _p : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
@@ -17,13 +17,18 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
17
17
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
18
18
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
19
19
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
20
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
21
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
20
22
  const getRuntimeConfig = (config) => {
21
23
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
24
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
25
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
26
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
27
  return {
24
28
  ...clientSharedValues,
25
29
  ...config,
26
30
  runtime: "node",
31
+ defaultsMode,
27
32
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
28
33
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
29
34
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
@@ -34,7 +39,10 @@ const getRuntimeConfig = (config) => {
34
39
  maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
35
40
  region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
36
41
  requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new node_http_handler_1.NodeHttp2Handler({ disableConcurrentStreams: true }),
37
- retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
42
+ retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : node_config_provider_1.loadConfig({
43
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
44
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
45
+ }),
38
46
  sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : hash_node_1.Hash.bind(null, "sha256"),
39
47
  streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : node_http_handler_1.streamCollector,
40
48
  useDualstackEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _p !== void 0 ? _p : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
@@ -35,14 +35,6 @@ export var AudioStream;
35
35
  return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
36
36
  };
37
37
  })(AudioStream || (AudioStream = {}));
38
- export var BadRequestException;
39
- (function (BadRequestException) {
40
- BadRequestException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
41
- })(BadRequestException || (BadRequestException = {}));
42
- export var ConflictException;
43
- (function (ConflictException) {
44
- ConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
45
- })(ConflictException || (ConflictException = {}));
46
38
  export var ContentIdentificationType;
47
39
  (function (ContentIdentificationType) {
48
40
  ContentIdentificationType["PII"] = "PII";
@@ -51,10 +43,6 @@ export var ContentRedactionType;
51
43
  (function (ContentRedactionType) {
52
44
  ContentRedactionType["PII"] = "PII";
53
45
  })(ContentRedactionType || (ContentRedactionType = {}));
54
- export var InternalFailureException;
55
- (function (InternalFailureException) {
56
- InternalFailureException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
57
- })(InternalFailureException || (InternalFailureException = {}));
58
46
  export var LanguageCode;
59
47
  (function (LanguageCode) {
60
48
  LanguageCode["DE_DE"] = "de-DE";
@@ -74,10 +62,6 @@ export var LanguageWithScore;
74
62
  (function (LanguageWithScore) {
75
63
  LanguageWithScore.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
76
64
  })(LanguageWithScore || (LanguageWithScore = {}));
77
- export var LimitExceededException;
78
- (function (LimitExceededException) {
79
- LimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
80
- })(LimitExceededException || (LimitExceededException = {}));
81
65
  export var MediaEncoding;
82
66
  (function (MediaEncoding) {
83
67
  MediaEncoding["FLAC"] = "flac";
@@ -112,10 +96,6 @@ export var MedicalTranscriptEvent;
112
96
  (function (MedicalTranscriptEvent) {
113
97
  MedicalTranscriptEvent.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
114
98
  })(MedicalTranscriptEvent || (MedicalTranscriptEvent = {}));
115
- export var ServiceUnavailableException;
116
- (function (ServiceUnavailableException) {
117
- ServiceUnavailableException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
118
- })(ServiceUnavailableException || (ServiceUnavailableException = {}));
119
99
  export var MedicalTranscriptResultStream;
120
100
  (function (MedicalTranscriptResultStream) {
121
101
  MedicalTranscriptResultStream.visit = function (value, visitor) {
@@ -138,17 +118,15 @@ export var MedicalTranscriptResultStream;
138
118
  if (obj.TranscriptEvent !== undefined)
139
119
  return { TranscriptEvent: MedicalTranscriptEvent.filterSensitiveLog(obj.TranscriptEvent) };
140
120
  if (obj.BadRequestException !== undefined)
141
- return { BadRequestException: BadRequestException.filterSensitiveLog(obj.BadRequestException) };
121
+ return { BadRequestException: obj.BadRequestException };
142
122
  if (obj.LimitExceededException !== undefined)
143
- return { LimitExceededException: LimitExceededException.filterSensitiveLog(obj.LimitExceededException) };
123
+ return { LimitExceededException: obj.LimitExceededException };
144
124
  if (obj.InternalFailureException !== undefined)
145
- return { InternalFailureException: InternalFailureException.filterSensitiveLog(obj.InternalFailureException) };
125
+ return { InternalFailureException: obj.InternalFailureException };
146
126
  if (obj.ConflictException !== undefined)
147
- return { ConflictException: ConflictException.filterSensitiveLog(obj.ConflictException) };
127
+ return { ConflictException: obj.ConflictException };
148
128
  if (obj.ServiceUnavailableException !== undefined)
149
- return {
150
- ServiceUnavailableException: ServiceUnavailableException.filterSensitiveLog(obj.ServiceUnavailableException),
151
- };
129
+ return { ServiceUnavailableException: obj.ServiceUnavailableException };
152
130
  if (obj.$unknown !== undefined)
153
131
  return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
154
132
  };
@@ -225,17 +203,15 @@ export var TranscriptResultStream;
225
203
  if (obj.TranscriptEvent !== undefined)
226
204
  return { TranscriptEvent: TranscriptEvent.filterSensitiveLog(obj.TranscriptEvent) };
227
205
  if (obj.BadRequestException !== undefined)
228
- return { BadRequestException: BadRequestException.filterSensitiveLog(obj.BadRequestException) };
206
+ return { BadRequestException: obj.BadRequestException };
229
207
  if (obj.LimitExceededException !== undefined)
230
- return { LimitExceededException: LimitExceededException.filterSensitiveLog(obj.LimitExceededException) };
208
+ return { LimitExceededException: obj.LimitExceededException };
231
209
  if (obj.InternalFailureException !== undefined)
232
- return { InternalFailureException: InternalFailureException.filterSensitiveLog(obj.InternalFailureException) };
210
+ return { InternalFailureException: obj.InternalFailureException };
233
211
  if (obj.ConflictException !== undefined)
234
- return { ConflictException: ConflictException.filterSensitiveLog(obj.ConflictException) };
212
+ return { ConflictException: obj.ConflictException };
235
213
  if (obj.ServiceUnavailableException !== undefined)
236
- return {
237
- ServiceUnavailableException: ServiceUnavailableException.filterSensitiveLog(obj.ServiceUnavailableException),
238
- };
214
+ return { ServiceUnavailableException: obj.ServiceUnavailableException };
239
215
  if (obj.$unknown !== undefined)
240
216
  return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
241
217
  };
@@ -1,4 +1,4 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
@@ -12,8 +12,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
15
17
  export var getRuntimeConfig = function (config) {
16
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
19
+ var defaultsMode = resolveDefaultsModeConfig(config);
20
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
17
21
  var clientSharedValues = getSharedRuntimeConfig(config);
18
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), eventStreamPayloadHandlerProvider: (_f = config === null || config === void 0 ? void 0 : config.eventStreamPayloadHandlerProvider) !== null && _f !== void 0 ? _f : (function () { return eventStreamPayloadHandler; }), eventStreamSerdeProvider: (_g = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _g !== void 0 ? _g : eventStreamSerdeProvider, maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : DEFAULT_MAX_ATTEMPTS, region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : invalidProvider("Region is missing"), requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new WebSocketHandler(), retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : Sha256, streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : streamCollector, useDualstackEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _p !== void 0 ? _p : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_q = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _q !== void 0 ? _q : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _r !== void 0 ? _r : fromUtf8, utf8Encoder: (_s = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _s !== void 0 ? _s : toUtf8 });
22
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), eventStreamPayloadHandlerProvider: (_f = config === null || config === void 0 ? void 0 : config.eventStreamPayloadHandlerProvider) !== null && _f !== void 0 ? _f : (function () { return eventStreamPayloadHandler; }), eventStreamSerdeProvider: (_g = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _g !== void 0 ? _g : eventStreamSerdeProvider, maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : DEFAULT_MAX_ATTEMPTS, region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : invalidProvider("Region is missing"), requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new WebSocketHandler(), retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
23
+ switch (_a.label) {
24
+ case 0: return [4, defaultConfigProvider()];
25
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
26
+ }
27
+ }); }); }), sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : Sha256, streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : streamCollector, useDualstackEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _p !== void 0 ? _p : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_q = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _q !== void 0 ? _q : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _r !== void 0 ? _r : fromUtf8, utf8Encoder: (_s = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _s !== void 0 ? _s : toUtf8 });
19
28
  };
@@ -1,4 +1,4 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
@@ -6,7 +6,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
6
6
  import { eventStreamPayloadHandlerProvider } from "@aws-sdk/eventstream-handler-node";
7
7
  import { eventStreamSerdeProvider } from "@aws-sdk/eventstream-serde-node";
8
8
  import { Hash } from "@aws-sdk/hash-node";
9
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
9
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
10
10
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
11
11
  import { NodeHttp2Handler, streamCollector } from "@aws-sdk/node-http-handler";
12
12
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
@@ -14,8 +14,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
14
14
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
15
15
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
16
16
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
17
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
18
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
17
19
  export var getRuntimeConfig = function (config) {
18
20
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
21
+ var defaultsMode = resolveDefaultsModeConfig(config);
22
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
19
23
  var clientSharedValues = getSharedRuntimeConfig(config);
20
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), eventStreamPayloadHandlerProvider: (_f = config === null || config === void 0 ? void 0 : config.eventStreamPayloadHandlerProvider) !== null && _f !== void 0 ? _f : eventStreamPayloadHandlerProvider, eventStreamSerdeProvider: (_g = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _g !== void 0 ? _g : eventStreamSerdeProvider, maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new NodeHttp2Handler({ disableConcurrentStreams: true }), retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : Hash.bind(null, "sha256"), streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : streamCollector, useDualstackEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _p !== void 0 ? _p : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_q = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _q !== void 0 ? _q : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _r !== void 0 ? _r : fromUtf8, utf8Encoder: (_s = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _s !== void 0 ? _s : toUtf8 });
24
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), eventStreamPayloadHandlerProvider: (_f = config === null || config === void 0 ? void 0 : config.eventStreamPayloadHandlerProvider) !== null && _f !== void 0 ? _f : eventStreamPayloadHandlerProvider, eventStreamSerdeProvider: (_g = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _g !== void 0 ? _g : eventStreamSerdeProvider, maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new NodeHttp2Handler({ disableConcurrentStreams: true }), retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
25
+ switch (_a.label) {
26
+ case 0: return [4, defaultConfigProvider()];
27
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
28
+ }
29
+ }); }); } })), sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : Hash.bind(null, "sha256"), streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : streamCollector, useDualstackEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _p !== void 0 ? _p : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_q = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _q !== void 0 ? _q : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _r !== void 0 ? _r : fromUtf8, utf8Encoder: (_s = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _s !== void 0 ? _s : toUtf8 });
21
30
  };
@@ -7,7 +7,7 @@ import { WebSocketInputConfig, WebSocketResolvedConfig } from "@aws-sdk/middlewa
7
7
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
8
8
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
9
9
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
10
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
10
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
11
11
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, EventStreamPayloadHandlerProvider as __EventStreamPayloadHandlerProvider, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
12
12
  import { StartMedicalStreamTranscriptionCommandInput, StartMedicalStreamTranscriptionCommandOutput } from "./commands/StartMedicalStreamTranscriptionCommand";
13
13
  import { StartStreamTranscriptionCommandInput, StartStreamTranscriptionCommandOutput } from "./commands/StartStreamTranscriptionCommand";
@@ -122,6 +122,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
122
122
  * The function that provides necessary utilities for generating and parsing event stream
123
123
  */
124
124
  eventStreamSerdeProvider?: __EventStreamSerdeProvider;
125
+ /**
126
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
127
+ */
128
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
125
129
  }
126
130
  declare type TranscribeStreamingClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & EventStreamInputConfig & WebSocketInputConfig & UserAgentInputConfig & EventStreamSerdeInputConfig;
127
131
  /**
@@ -175,12 +175,6 @@ export interface BadRequestException extends __SmithyException, $MetadataBearer
175
175
  $fault: "client";
176
176
  Message?: string;
177
177
  }
178
- export declare namespace BadRequestException {
179
- /**
180
- * @internal
181
- */
182
- const filterSensitiveLog: (obj: BadRequestException) => any;
183
- }
184
178
  /**
185
179
  * <p>A new stream started with the same session ID. The current stream has been
186
180
  * terminated.</p>
@@ -190,12 +184,6 @@ export interface ConflictException extends __SmithyException, $MetadataBearer {
190
184
  $fault: "client";
191
185
  Message?: string;
192
186
  }
193
- export declare namespace ConflictException {
194
- /**
195
- * @internal
196
- */
197
- const filterSensitiveLog: (obj: ConflictException) => any;
198
- }
199
187
  export declare enum ContentIdentificationType {
200
188
  PII = "PII"
201
189
  }
@@ -211,12 +199,6 @@ export interface InternalFailureException extends __SmithyException, $MetadataBe
211
199
  $fault: "server";
212
200
  Message?: string;
213
201
  }
214
- export declare namespace InternalFailureException {
215
- /**
216
- * @internal
217
- */
218
- const filterSensitiveLog: (obj: InternalFailureException) => any;
219
- }
220
202
  export declare enum LanguageCode {
221
203
  DE_DE = "de-DE",
222
204
  EN_AU = "en-AU",
@@ -265,12 +247,6 @@ export interface LimitExceededException extends __SmithyException, $MetadataBear
265
247
  $fault: "client";
266
248
  Message?: string;
267
249
  }
268
- export declare namespace LimitExceededException {
269
- /**
270
- * @internal
271
- */
272
- const filterSensitiveLog: (obj: LimitExceededException) => any;
273
- }
274
250
  export declare enum MediaEncoding {
275
251
  FLAC = "flac",
276
252
  OGG_OPUS = "ogg-opus",
@@ -471,12 +447,6 @@ export interface ServiceUnavailableException extends __SmithyException, $Metadat
471
447
  $fault: "server";
472
448
  Message?: string;
473
449
  }
474
- export declare namespace ServiceUnavailableException {
475
- /**
476
- * @internal
477
- */
478
- const filterSensitiveLog: (obj: ServiceUnavailableException) => any;
479
- }
480
450
  /**
481
451
  * <p>Represents the transcription result stream from Amazon Transcribe Medical to your application.</p>
482
452
  */
@@ -5,6 +5,7 @@ import { TranscribeStreamingClientConfig } from "./TranscribeStreamingClient";
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
@@ -14,7 +15,7 @@ export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig)
14
15
  eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
15
16
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
16
17
  region: string | import("@aws-sdk/types").Provider<any>;
17
- requestHandler: WebSocketHandler | (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler);
18
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | WebSocketHandler;
18
19
  retryMode: string | import("@aws-sdk/types").Provider<string>;
19
20
  sha256: import("@aws-sdk/types").HashConstructor;
20
21
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -5,10 +5,11 @@ import { TranscribeStreamingClientConfig } from "./TranscribeStreamingClient";
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
11
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
12
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  eventStreamPayloadHandlerProvider: import("@aws-sdk/types").EventStreamPayloadHandlerProvider;
14
15
  eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
@@ -6,7 +6,7 @@ import { TranscribeStreamingClientConfig } from "./TranscribeStreamingClient";
6
6
  export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig) => {
7
7
  runtime: string;
8
8
  eventStreamPayloadHandlerProvider: import("@aws-sdk/types").EventStreamPayloadHandlerProvider;
9
- requestHandler: WebSocketHandler | (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler);
9
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | WebSocketHandler;
10
10
  sha256: import("@aws-sdk/types").HashConstructor;
11
11
  apiVersion: string;
12
12
  urlParser: import("@aws-sdk/types").UrlParser;
@@ -28,6 +28,7 @@ export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig)
28
28
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
29
29
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
30
30
  eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
31
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
31
32
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
32
33
  tls?: boolean | undefined;
33
34
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -7,7 +7,7 @@ import { WebSocketInputConfig, WebSocketResolvedConfig } from "@aws-sdk/middlewa
7
7
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
8
8
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
9
9
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
10
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
10
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
11
11
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, EventStreamPayloadHandlerProvider as __EventStreamPayloadHandlerProvider, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
12
12
  import { StartMedicalStreamTranscriptionCommandInput, StartMedicalStreamTranscriptionCommandOutput } from "./commands/StartMedicalStreamTranscriptionCommand";
13
13
  import { StartStreamTranscriptionCommandInput, StartStreamTranscriptionCommandOutput } from "./commands/StartStreamTranscriptionCommand";
@@ -60,6 +60,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
60
60
  defaultUserAgentProvider?: Provider<__UserAgent>;
61
61
 
62
62
  eventStreamSerdeProvider?: __EventStreamSerdeProvider;
63
+
64
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
63
65
  }
64
66
  declare type TranscribeStreamingClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & EventStreamInputConfig & WebSocketInputConfig & UserAgentInputConfig & EventStreamSerdeInputConfig;
65
67
 
@@ -96,20 +96,12 @@ export interface BadRequestException extends __SmithyException, $MetadataBearer
96
96
  $fault: "client";
97
97
  Message?: string;
98
98
  }
99
- export declare namespace BadRequestException {
100
-
101
- const filterSensitiveLog: (obj: BadRequestException) => any;
102
- }
103
99
 
104
100
  export interface ConflictException extends __SmithyException, $MetadataBearer {
105
101
  name: "ConflictException";
106
102
  $fault: "client";
107
103
  Message?: string;
108
104
  }
109
- export declare namespace ConflictException {
110
-
111
- const filterSensitiveLog: (obj: ConflictException) => any;
112
- }
113
105
  export declare enum ContentIdentificationType {
114
106
  PII = "PII"
115
107
  }
@@ -122,10 +114,6 @@ export interface InternalFailureException extends __SmithyException, $MetadataBe
122
114
  $fault: "server";
123
115
  Message?: string;
124
116
  }
125
- export declare namespace InternalFailureException {
126
-
127
- const filterSensitiveLog: (obj: InternalFailureException) => any;
128
- }
129
117
  export declare enum LanguageCode {
130
118
  DE_DE = "de-DE",
131
119
  EN_AU = "en-AU",
@@ -157,10 +145,6 @@ export interface LimitExceededException extends __SmithyException, $MetadataBear
157
145
  $fault: "client";
158
146
  Message?: string;
159
147
  }
160
- export declare namespace LimitExceededException {
161
-
162
- const filterSensitiveLog: (obj: LimitExceededException) => any;
163
- }
164
148
  export declare enum MediaEncoding {
165
149
  FLAC = "flac",
166
150
  OGG_OPUS = "ogg-opus",
@@ -261,10 +245,6 @@ export interface ServiceUnavailableException extends __SmithyException, $Metadat
261
245
  $fault: "server";
262
246
  Message?: string;
263
247
  }
264
- export declare namespace ServiceUnavailableException {
265
-
266
- const filterSensitiveLog: (obj: ServiceUnavailableException) => any;
267
- }
268
248
 
269
249
  export declare type MedicalTranscriptResultStream = MedicalTranscriptResultStream.BadRequestExceptionMember | MedicalTranscriptResultStream.ConflictExceptionMember | MedicalTranscriptResultStream.InternalFailureExceptionMember | MedicalTranscriptResultStream.LimitExceededExceptionMember | MedicalTranscriptResultStream.ServiceUnavailableExceptionMember | MedicalTranscriptResultStream.TranscriptEventMember | MedicalTranscriptResultStream.$UnknownMember;
270
250
  export declare namespace MedicalTranscriptResultStream {
@@ -3,6 +3,7 @@ import { TranscribeStreamingClientConfig } from "./TranscribeStreamingClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
@@ -12,7 +13,7 @@ export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig)
12
13
  eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<any>;
15
- requestHandler: WebSocketHandler | (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler);
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | WebSocketHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -3,10 +3,11 @@ import { TranscribeStreamingClientConfig } from "./TranscribeStreamingClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
9
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
10
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
10
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
11
12
  eventStreamPayloadHandlerProvider: import("@aws-sdk/types").EventStreamPayloadHandlerProvider;
12
13
  eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
@@ -4,7 +4,7 @@ import { TranscribeStreamingClientConfig } from "./TranscribeStreamingClient";
4
4
  export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig) => {
5
5
  runtime: string;
6
6
  eventStreamPayloadHandlerProvider: import("@aws-sdk/types").EventStreamPayloadHandlerProvider;
7
- requestHandler: WebSocketHandler | (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler);
7
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | WebSocketHandler;
8
8
  sha256: import("@aws-sdk/types").HashConstructor;
9
9
  apiVersion: string;
10
10
  urlParser: import("@aws-sdk/types").UrlParser;
@@ -26,6 +26,7 @@ export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig)
26
26
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
27
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
28
  eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
29
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
29
30
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
30
31
  tls?: boolean | undefined;
31
32
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
package/package.json CHANGED
@@ -1,17 +1,15 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-transcribe-streaming",
3
3
  "description": "AWS SDK for JavaScript Transcribe Streaming Client for Node.js, Browser and React Native",
4
- "version": "3.46.0",
4
+ "version": "3.47.0",
5
5
  "scripts": {
6
6
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
- "build:cjs": "tsc -p tsconfig.json",
7
+ "build:cjs": "tsc -p tsconfig.cjs.json",
8
8
  "build:docs": "typedoc",
9
9
  "build:es": "tsc -p tsconfig.es.json",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
- "clean": "yarn clean:dist && yarn clean:docs",
13
- "clean:dist": "rimraf ./dist-*",
14
- "clean:docs": "rimraf ./docs",
12
+ "clean": "rimraf ./dist-*",
15
13
  "test:integration": "jest --config jest.integ.config.js"
16
14
  },
17
15
  "main": "./dist-cjs/index.js",
@@ -21,44 +19,46 @@
21
19
  "dependencies": {
22
20
  "@aws-crypto/sha256-browser": "2.0.0",
23
21
  "@aws-crypto/sha256-js": "2.0.0",
24
- "@aws-sdk/client-sts": "3.46.0",
25
- "@aws-sdk/config-resolver": "3.46.0",
26
- "@aws-sdk/credential-provider-node": "3.46.0",
27
- "@aws-sdk/eventstream-handler-node": "3.46.0",
28
- "@aws-sdk/eventstream-serde-browser": "3.46.0",
29
- "@aws-sdk/eventstream-serde-config-resolver": "3.46.0",
30
- "@aws-sdk/eventstream-serde-node": "3.46.0",
31
- "@aws-sdk/fetch-http-handler": "3.46.0",
32
- "@aws-sdk/hash-node": "3.46.0",
33
- "@aws-sdk/invalid-dependency": "3.46.0",
34
- "@aws-sdk/middleware-content-length": "3.46.0",
35
- "@aws-sdk/middleware-eventstream": "3.46.0",
36
- "@aws-sdk/middleware-host-header": "3.46.0",
37
- "@aws-sdk/middleware-logger": "3.46.0",
38
- "@aws-sdk/middleware-retry": "3.46.0",
39
- "@aws-sdk/middleware-sdk-transcribe-streaming": "3.46.0",
40
- "@aws-sdk/middleware-serde": "3.46.0",
41
- "@aws-sdk/middleware-signing": "3.46.0",
42
- "@aws-sdk/middleware-stack": "3.46.0",
43
- "@aws-sdk/middleware-user-agent": "3.46.0",
44
- "@aws-sdk/node-config-provider": "3.46.0",
45
- "@aws-sdk/node-http-handler": "3.46.0",
46
- "@aws-sdk/protocol-http": "3.46.0",
47
- "@aws-sdk/smithy-client": "3.46.0",
48
- "@aws-sdk/types": "3.46.0",
49
- "@aws-sdk/url-parser": "3.46.0",
50
- "@aws-sdk/util-base64-browser": "3.46.0",
51
- "@aws-sdk/util-base64-node": "3.46.0",
52
- "@aws-sdk/util-body-length-browser": "3.46.0",
53
- "@aws-sdk/util-body-length-node": "3.46.0",
54
- "@aws-sdk/util-user-agent-browser": "3.46.0",
55
- "@aws-sdk/util-user-agent-node": "3.46.0",
56
- "@aws-sdk/util-utf8-browser": "3.46.0",
57
- "@aws-sdk/util-utf8-node": "3.46.0",
22
+ "@aws-sdk/client-sts": "3.47.0",
23
+ "@aws-sdk/config-resolver": "3.47.0",
24
+ "@aws-sdk/credential-provider-node": "3.47.0",
25
+ "@aws-sdk/eventstream-handler-node": "3.47.0",
26
+ "@aws-sdk/eventstream-serde-browser": "3.47.0",
27
+ "@aws-sdk/eventstream-serde-config-resolver": "3.47.0",
28
+ "@aws-sdk/eventstream-serde-node": "3.47.0",
29
+ "@aws-sdk/fetch-http-handler": "3.47.0",
30
+ "@aws-sdk/hash-node": "3.47.0",
31
+ "@aws-sdk/invalid-dependency": "3.47.0",
32
+ "@aws-sdk/middleware-content-length": "3.47.0",
33
+ "@aws-sdk/middleware-eventstream": "3.47.0",
34
+ "@aws-sdk/middleware-host-header": "3.47.0",
35
+ "@aws-sdk/middleware-logger": "3.47.0",
36
+ "@aws-sdk/middleware-retry": "3.47.0",
37
+ "@aws-sdk/middleware-sdk-transcribe-streaming": "3.47.0",
38
+ "@aws-sdk/middleware-serde": "3.47.0",
39
+ "@aws-sdk/middleware-signing": "3.47.0",
40
+ "@aws-sdk/middleware-stack": "3.47.0",
41
+ "@aws-sdk/middleware-user-agent": "3.47.0",
42
+ "@aws-sdk/node-config-provider": "3.47.0",
43
+ "@aws-sdk/node-http-handler": "3.47.0",
44
+ "@aws-sdk/protocol-http": "3.47.0",
45
+ "@aws-sdk/smithy-client": "3.47.0",
46
+ "@aws-sdk/types": "3.47.0",
47
+ "@aws-sdk/url-parser": "3.47.0",
48
+ "@aws-sdk/util-base64-browser": "3.47.0",
49
+ "@aws-sdk/util-base64-node": "3.47.0",
50
+ "@aws-sdk/util-body-length-browser": "3.47.0",
51
+ "@aws-sdk/util-body-length-node": "3.47.0",
52
+ "@aws-sdk/util-defaults-mode-browser": "3.47.0",
53
+ "@aws-sdk/util-defaults-mode-node": "3.47.0",
54
+ "@aws-sdk/util-user-agent-browser": "3.47.0",
55
+ "@aws-sdk/util-user-agent-node": "3.47.0",
56
+ "@aws-sdk/util-utf8-browser": "3.47.0",
57
+ "@aws-sdk/util-utf8-node": "3.47.0",
58
58
  "tslib": "^2.3.0"
59
59
  },
60
60
  "devDependencies": {
61
- "@aws-sdk/service-client-documentation-generator": "3.46.0",
61
+ "@aws-sdk/service-client-documentation-generator": "3.47.0",
62
62
  "@types/node": "^12.7.5"
63
63
  },
64
64
  "engines": {