@aws-sdk/client-transcribe-streaming 3.42.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,56 @@
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
+
17
+ # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
28
+ * end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
29
+
30
+
31
+
32
+
33
+
34
+ # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
35
+
36
+
37
+ ### Features
38
+
39
+ * **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
40
+
41
+
42
+
43
+
44
+
45
+ # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
46
+
47
+
48
+ ### Features
49
+
50
+ * **clients:** update clients as of 11/28/2021 ([#3072](https://github.com/aws/aws-sdk-js-v3/issues/3072)) ([2ad1622](https://github.com/aws/aws-sdk-js-v3/commit/2ad1622ba8586b926fe508055211803bb29e3976))
51
+
52
+
53
+
54
+
55
+
6
56
  # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
7
57
 
8
58
  **Note:** Version bump only for package @aws-sdk/client-transcribe-streaming
@@ -14,6 +14,7 @@ const partitionHash = {
14
14
  "ap-south-1",
15
15
  "ap-southeast-1",
16
16
  "ap-southeast-2",
17
+ "ap-southeast-3",
17
18
  "ca-central-1",
18
19
  "eu-central-1",
19
20
  "eu-north-1",
@@ -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.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";
@@ -85,12 +67,12 @@ var LanguageCode;
85
67
  LanguageCode["PT_BR"] = "pt-BR";
86
68
  LanguageCode["ZH_CN"] = "zh-CN";
87
69
  })(LanguageCode = exports.LanguageCode || (exports.LanguageCode = {}));
88
- var LimitExceededException;
89
- (function (LimitExceededException) {
90
- LimitExceededException.filterSensitiveLog = (obj) => ({
70
+ var LanguageWithScore;
71
+ (function (LanguageWithScore) {
72
+ LanguageWithScore.filterSensitiveLog = (obj) => ({
91
73
  ...obj,
92
74
  });
93
- })(LimitExceededException = exports.LimitExceededException || (exports.LimitExceededException = {}));
75
+ })(LanguageWithScore = exports.LanguageWithScore || (exports.LanguageWithScore = {}));
94
76
  var MediaEncoding;
95
77
  (function (MediaEncoding) {
96
78
  MediaEncoding["FLAC"] = "flac";
@@ -137,12 +119,6 @@ var MedicalTranscriptEvent;
137
119
  ...obj,
138
120
  });
139
121
  })(MedicalTranscriptEvent = exports.MedicalTranscriptEvent || (exports.MedicalTranscriptEvent = {}));
140
- var ServiceUnavailableException;
141
- (function (ServiceUnavailableException) {
142
- ServiceUnavailableException.filterSensitiveLog = (obj) => ({
143
- ...obj,
144
- });
145
- })(ServiceUnavailableException = exports.ServiceUnavailableException || (exports.ServiceUnavailableException = {}));
146
122
  var MedicalTranscriptResultStream;
147
123
  (function (MedicalTranscriptResultStream) {
148
124
  MedicalTranscriptResultStream.visit = (value, visitor) => {
@@ -164,17 +140,15 @@ var MedicalTranscriptResultStream;
164
140
  if (obj.TranscriptEvent !== undefined)
165
141
  return { TranscriptEvent: MedicalTranscriptEvent.filterSensitiveLog(obj.TranscriptEvent) };
166
142
  if (obj.BadRequestException !== undefined)
167
- return { BadRequestException: BadRequestException.filterSensitiveLog(obj.BadRequestException) };
143
+ return { BadRequestException: obj.BadRequestException };
168
144
  if (obj.LimitExceededException !== undefined)
169
- return { LimitExceededException: LimitExceededException.filterSensitiveLog(obj.LimitExceededException) };
145
+ return { LimitExceededException: obj.LimitExceededException };
170
146
  if (obj.InternalFailureException !== undefined)
171
- return { InternalFailureException: InternalFailureException.filterSensitiveLog(obj.InternalFailureException) };
147
+ return { InternalFailureException: obj.InternalFailureException };
172
148
  if (obj.ConflictException !== undefined)
173
- return { ConflictException: ConflictException.filterSensitiveLog(obj.ConflictException) };
149
+ return { ConflictException: obj.ConflictException };
174
150
  if (obj.ServiceUnavailableException !== undefined)
175
- return {
176
- ServiceUnavailableException: ServiceUnavailableException.filterSensitiveLog(obj.ServiceUnavailableException),
177
- };
151
+ return { ServiceUnavailableException: obj.ServiceUnavailableException };
178
152
  if (obj.$unknown !== undefined)
179
153
  return { [obj.$unknown[0]]: "UNKNOWN" };
180
154
  };
@@ -265,17 +239,15 @@ var TranscriptResultStream;
265
239
  if (obj.TranscriptEvent !== undefined)
266
240
  return { TranscriptEvent: TranscriptEvent.filterSensitiveLog(obj.TranscriptEvent) };
267
241
  if (obj.BadRequestException !== undefined)
268
- return { BadRequestException: BadRequestException.filterSensitiveLog(obj.BadRequestException) };
242
+ return { BadRequestException: obj.BadRequestException };
269
243
  if (obj.LimitExceededException !== undefined)
270
- return { LimitExceededException: LimitExceededException.filterSensitiveLog(obj.LimitExceededException) };
244
+ return { LimitExceededException: obj.LimitExceededException };
271
245
  if (obj.InternalFailureException !== undefined)
272
- return { InternalFailureException: InternalFailureException.filterSensitiveLog(obj.InternalFailureException) };
246
+ return { InternalFailureException: obj.InternalFailureException };
273
247
  if (obj.ConflictException !== undefined)
274
- return { ConflictException: ConflictException.filterSensitiveLog(obj.ConflictException) };
248
+ return { ConflictException: obj.ConflictException };
275
249
  if (obj.ServiceUnavailableException !== undefined)
276
- return {
277
- ServiceUnavailableException: ServiceUnavailableException.filterSensitiveLog(obj.ServiceUnavailableException),
278
- };
250
+ return { ServiceUnavailableException: obj.ServiceUnavailableException };
279
251
  if (obj.$unknown !== undefined)
280
252
  return { [obj.$unknown[0]]: "UNKNOWN" };
281
253
  };
@@ -92,6 +92,15 @@ const serializeAws_restJson1StartStreamTranscriptionCommand = async (input, cont
92
92
  ...(isSerializableHeaderValue(input.LanguageModelName) && {
93
93
  "x-amzn-transcribe-language-model-name": input.LanguageModelName,
94
94
  }),
95
+ ...(isSerializableHeaderValue(input.IdentifyLanguage) && {
96
+ "x-amzn-transcribe-identify-language": input.IdentifyLanguage.toString(),
97
+ }),
98
+ ...(isSerializableHeaderValue(input.LanguageOptions) && {
99
+ "x-amzn-transcribe-language-options": input.LanguageOptions,
100
+ }),
101
+ ...(isSerializableHeaderValue(input.PreferredLanguage) && {
102
+ "x-amzn-transcribe-preferred-language": input.PreferredLanguage,
103
+ }),
95
104
  };
96
105
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/stream-transcription";
97
106
  let body;
@@ -259,13 +268,16 @@ const deserializeAws_restJson1StartStreamTranscriptionCommand = async (output, c
259
268
  ContentRedactionType: undefined,
260
269
  EnableChannelIdentification: undefined,
261
270
  EnablePartialResultsStabilization: undefined,
271
+ IdentifyLanguage: undefined,
262
272
  LanguageCode: undefined,
263
273
  LanguageModelName: undefined,
274
+ LanguageOptions: undefined,
264
275
  MediaEncoding: undefined,
265
276
  MediaSampleRateHertz: undefined,
266
277
  NumberOfChannels: undefined,
267
278
  PartialResultsStability: undefined,
268
279
  PiiEntityTypes: undefined,
280
+ PreferredLanguage: undefined,
269
281
  RequestId: undefined,
270
282
  SessionId: undefined,
271
283
  ShowSpeakerLabel: undefined,
@@ -325,6 +337,15 @@ const deserializeAws_restJson1StartStreamTranscriptionCommand = async (output, c
325
337
  if (output.headers["x-amzn-transcribe-language-model-name"] !== undefined) {
326
338
  contents.LanguageModelName = output.headers["x-amzn-transcribe-language-model-name"];
327
339
  }
340
+ if (output.headers["x-amzn-transcribe-identify-language"] !== undefined) {
341
+ contents.IdentifyLanguage = smithy_client_1.parseBoolean(output.headers["x-amzn-transcribe-identify-language"]);
342
+ }
343
+ if (output.headers["x-amzn-transcribe-language-options"] !== undefined) {
344
+ contents.LanguageOptions = output.headers["x-amzn-transcribe-language-options"];
345
+ }
346
+ if (output.headers["x-amzn-transcribe-preferred-language"] !== undefined) {
347
+ contents.PreferredLanguage = output.headers["x-amzn-transcribe-preferred-language"];
348
+ }
328
349
  const data = context.eventStreamMarshaller.deserialize(output.body, async (event) => {
329
350
  const eventName = Object.keys(event)[0];
330
351
  const eventHeaders = Object.entries(event[eventName].headers).reduce((accummulator, curr) => {
@@ -700,6 +721,22 @@ const deserializeAws_restJson1ItemList = (output, context) => {
700
721
  return deserializeAws_restJson1Item(entry, context);
701
722
  });
702
723
  };
724
+ const deserializeAws_restJson1LanguageIdentification = (output, context) => {
725
+ return (output || [])
726
+ .filter((e) => e != null)
727
+ .map((entry) => {
728
+ if (entry === null) {
729
+ return null;
730
+ }
731
+ return deserializeAws_restJson1LanguageWithScore(entry, context);
732
+ });
733
+ };
734
+ const deserializeAws_restJson1LanguageWithScore = (output, context) => {
735
+ return {
736
+ LanguageCode: smithy_client_1.expectString(output.LanguageCode),
737
+ Score: smithy_client_1.limitedParseDouble(output.Score),
738
+ };
739
+ };
703
740
  const deserializeAws_restJson1LimitExceededException = (output, context) => {
704
741
  return {
705
742
  Message: smithy_client_1.expectString(output.Message),
@@ -842,6 +879,10 @@ const deserializeAws_restJson1Result = (output, context) => {
842
879
  ChannelId: smithy_client_1.expectString(output.ChannelId),
843
880
  EndTime: smithy_client_1.limitedParseDouble(output.EndTime),
844
881
  IsPartial: smithy_client_1.expectBoolean(output.IsPartial),
882
+ LanguageCode: smithy_client_1.expectString(output.LanguageCode),
883
+ LanguageIdentification: output.LanguageIdentification !== undefined && output.LanguageIdentification !== null
884
+ ? deserializeAws_restJson1LanguageIdentification(output.LanguageIdentification, context)
885
+ : undefined,
845
886
  ResultId: smithy_client_1.expectString(output.ResultId),
846
887
  StartTime: smithy_client_1.limitedParseDouble(output.StartTime),
847
888
  };
@@ -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)),
@@ -18,14 +18,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
20
  const smithy_client_1 = require("@aws-sdk/smithy-client");
21
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
21
22
  const getRuntimeConfig = (config) => {
22
23
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
23
- smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
24
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
25
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
26
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
25
27
  return {
26
28
  ...clientSharedValues,
27
29
  ...config,
28
30
  runtime: "node",
31
+ defaultsMode,
29
32
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
30
33
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
31
34
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
@@ -36,7 +39,10 @@ const getRuntimeConfig = (config) => {
36
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),
37
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),
38
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 }),
39
- 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
+ }),
40
46
  sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : hash_node_1.Hash.bind(null, "sha256"),
41
47
  streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : node_http_handler_1.streamCollector,
42
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),
@@ -12,6 +12,7 @@ var partitionHash = {
12
12
  "ap-south-1",
13
13
  "ap-southeast-1",
14
14
  "ap-southeast-2",
15
+ "ap-southeast-3",
15
16
  "ca-central-1",
16
17
  "eu-central-1",
17
18
  "eu-north-1",
@@ -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";
@@ -70,10 +58,10 @@ export var LanguageCode;
70
58
  LanguageCode["PT_BR"] = "pt-BR";
71
59
  LanguageCode["ZH_CN"] = "zh-CN";
72
60
  })(LanguageCode || (LanguageCode = {}));
73
- export var LimitExceededException;
74
- (function (LimitExceededException) {
75
- LimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
76
- })(LimitExceededException || (LimitExceededException = {}));
61
+ export var LanguageWithScore;
62
+ (function (LanguageWithScore) {
63
+ LanguageWithScore.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
64
+ })(LanguageWithScore || (LanguageWithScore = {}));
77
65
  export var MediaEncoding;
78
66
  (function (MediaEncoding) {
79
67
  MediaEncoding["FLAC"] = "flac";
@@ -108,10 +96,6 @@ export var MedicalTranscriptEvent;
108
96
  (function (MedicalTranscriptEvent) {
109
97
  MedicalTranscriptEvent.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
110
98
  })(MedicalTranscriptEvent || (MedicalTranscriptEvent = {}));
111
- export var ServiceUnavailableException;
112
- (function (ServiceUnavailableException) {
113
- ServiceUnavailableException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
114
- })(ServiceUnavailableException || (ServiceUnavailableException = {}));
115
99
  export var MedicalTranscriptResultStream;
116
100
  (function (MedicalTranscriptResultStream) {
117
101
  MedicalTranscriptResultStream.visit = function (value, visitor) {
@@ -134,17 +118,15 @@ export var MedicalTranscriptResultStream;
134
118
  if (obj.TranscriptEvent !== undefined)
135
119
  return { TranscriptEvent: MedicalTranscriptEvent.filterSensitiveLog(obj.TranscriptEvent) };
136
120
  if (obj.BadRequestException !== undefined)
137
- return { BadRequestException: BadRequestException.filterSensitiveLog(obj.BadRequestException) };
121
+ return { BadRequestException: obj.BadRequestException };
138
122
  if (obj.LimitExceededException !== undefined)
139
- return { LimitExceededException: LimitExceededException.filterSensitiveLog(obj.LimitExceededException) };
123
+ return { LimitExceededException: obj.LimitExceededException };
140
124
  if (obj.InternalFailureException !== undefined)
141
- return { InternalFailureException: InternalFailureException.filterSensitiveLog(obj.InternalFailureException) };
125
+ return { InternalFailureException: obj.InternalFailureException };
142
126
  if (obj.ConflictException !== undefined)
143
- return { ConflictException: ConflictException.filterSensitiveLog(obj.ConflictException) };
127
+ return { ConflictException: obj.ConflictException };
144
128
  if (obj.ServiceUnavailableException !== undefined)
145
- return {
146
- ServiceUnavailableException: ServiceUnavailableException.filterSensitiveLog(obj.ServiceUnavailableException),
147
- };
129
+ return { ServiceUnavailableException: obj.ServiceUnavailableException };
148
130
  if (obj.$unknown !== undefined)
149
131
  return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
150
132
  };
@@ -221,17 +203,15 @@ export var TranscriptResultStream;
221
203
  if (obj.TranscriptEvent !== undefined)
222
204
  return { TranscriptEvent: TranscriptEvent.filterSensitiveLog(obj.TranscriptEvent) };
223
205
  if (obj.BadRequestException !== undefined)
224
- return { BadRequestException: BadRequestException.filterSensitiveLog(obj.BadRequestException) };
206
+ return { BadRequestException: obj.BadRequestException };
225
207
  if (obj.LimitExceededException !== undefined)
226
- return { LimitExceededException: LimitExceededException.filterSensitiveLog(obj.LimitExceededException) };
208
+ return { LimitExceededException: obj.LimitExceededException };
227
209
  if (obj.InternalFailureException !== undefined)
228
- return { InternalFailureException: InternalFailureException.filterSensitiveLog(obj.InternalFailureException) };
210
+ return { InternalFailureException: obj.InternalFailureException };
229
211
  if (obj.ConflictException !== undefined)
230
- return { ConflictException: ConflictException.filterSensitiveLog(obj.ConflictException) };
212
+ return { ConflictException: obj.ConflictException };
231
213
  if (obj.ServiceUnavailableException !== undefined)
232
- return {
233
- ServiceUnavailableException: ServiceUnavailableException.filterSensitiveLog(obj.ServiceUnavailableException),
234
- };
214
+ return { ServiceUnavailableException: obj.ServiceUnavailableException };
235
215
  if (obj.$unknown !== undefined)
236
216
  return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
237
217
  };
@@ -47,7 +47,7 @@ export var serializeAws_restJson1StartStreamTranscriptionCommand = function (inp
47
47
  case 0: return [4, context.endpoint()];
48
48
  case 1:
49
49
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
50
- headers = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (isSerializableHeaderValue(input.LanguageCode) && { "x-amzn-transcribe-language-code": input.LanguageCode })), (isSerializableHeaderValue(input.MediaSampleRateHertz) && {
50
+ headers = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (isSerializableHeaderValue(input.LanguageCode) && { "x-amzn-transcribe-language-code": input.LanguageCode })), (isSerializableHeaderValue(input.MediaSampleRateHertz) && {
51
51
  "x-amzn-transcribe-sample-rate": input.MediaSampleRateHertz.toString(),
52
52
  })), (isSerializableHeaderValue(input.MediaEncoding) && { "x-amzn-transcribe-media-encoding": input.MediaEncoding })), (isSerializableHeaderValue(input.VocabularyName) && {
53
53
  "x-amzn-transcribe-vocabulary-name": input.VocabularyName,
@@ -73,6 +73,12 @@ export var serializeAws_restJson1StartStreamTranscriptionCommand = function (inp
73
73
  "x-amzn-transcribe-pii-entity-types": input.PiiEntityTypes,
74
74
  })), (isSerializableHeaderValue(input.LanguageModelName) && {
75
75
  "x-amzn-transcribe-language-model-name": input.LanguageModelName,
76
+ })), (isSerializableHeaderValue(input.IdentifyLanguage) && {
77
+ "x-amzn-transcribe-identify-language": input.IdentifyLanguage.toString(),
78
+ })), (isSerializableHeaderValue(input.LanguageOptions) && {
79
+ "x-amzn-transcribe-language-options": input.LanguageOptions,
80
+ })), (isSerializableHeaderValue(input.PreferredLanguage) && {
81
+ "x-amzn-transcribe-preferred-language": input.PreferredLanguage,
76
82
  }));
77
83
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/stream-transcription";
78
84
  if (input.AudioStream !== undefined) {
@@ -259,13 +265,16 @@ export var deserializeAws_restJson1StartStreamTranscriptionCommand = function (o
259
265
  ContentRedactionType: undefined,
260
266
  EnableChannelIdentification: undefined,
261
267
  EnablePartialResultsStabilization: undefined,
268
+ IdentifyLanguage: undefined,
262
269
  LanguageCode: undefined,
263
270
  LanguageModelName: undefined,
271
+ LanguageOptions: undefined,
264
272
  MediaEncoding: undefined,
265
273
  MediaSampleRateHertz: undefined,
266
274
  NumberOfChannels: undefined,
267
275
  PartialResultsStability: undefined,
268
276
  PiiEntityTypes: undefined,
277
+ PreferredLanguage: undefined,
269
278
  RequestId: undefined,
270
279
  SessionId: undefined,
271
280
  ShowSpeakerLabel: undefined,
@@ -325,6 +334,15 @@ export var deserializeAws_restJson1StartStreamTranscriptionCommand = function (o
325
334
  if (output.headers["x-amzn-transcribe-language-model-name"] !== undefined) {
326
335
  contents.LanguageModelName = output.headers["x-amzn-transcribe-language-model-name"];
327
336
  }
337
+ if (output.headers["x-amzn-transcribe-identify-language"] !== undefined) {
338
+ contents.IdentifyLanguage = __parseBoolean(output.headers["x-amzn-transcribe-identify-language"]);
339
+ }
340
+ if (output.headers["x-amzn-transcribe-language-options"] !== undefined) {
341
+ contents.LanguageOptions = output.headers["x-amzn-transcribe-language-options"];
342
+ }
343
+ if (output.headers["x-amzn-transcribe-preferred-language"] !== undefined) {
344
+ contents.PreferredLanguage = output.headers["x-amzn-transcribe-preferred-language"];
345
+ }
328
346
  data = context.eventStreamMarshaller.deserialize(output.body, function (event) { return __awaiter(void 0, void 0, void 0, function () {
329
347
  var eventName, eventHeaders, eventMessage, parsedEvent;
330
348
  var _a;
@@ -798,6 +816,22 @@ var deserializeAws_restJson1ItemList = function (output, context) {
798
816
  return deserializeAws_restJson1Item(entry, context);
799
817
  });
800
818
  };
819
+ var deserializeAws_restJson1LanguageIdentification = function (output, context) {
820
+ return (output || [])
821
+ .filter(function (e) { return e != null; })
822
+ .map(function (entry) {
823
+ if (entry === null) {
824
+ return null;
825
+ }
826
+ return deserializeAws_restJson1LanguageWithScore(entry, context);
827
+ });
828
+ };
829
+ var deserializeAws_restJson1LanguageWithScore = function (output, context) {
830
+ return {
831
+ LanguageCode: __expectString(output.LanguageCode),
832
+ Score: __limitedParseDouble(output.Score),
833
+ };
834
+ };
801
835
  var deserializeAws_restJson1LimitExceededException = function (output, context) {
802
836
  return {
803
837
  Message: __expectString(output.Message),
@@ -940,6 +974,10 @@ var deserializeAws_restJson1Result = function (output, context) {
940
974
  ChannelId: __expectString(output.ChannelId),
941
975
  EndTime: __limitedParseDouble(output.EndTime),
942
976
  IsPartial: __expectBoolean(output.IsPartial),
977
+ LanguageCode: __expectString(output.LanguageCode),
978
+ LanguageIdentification: output.LanguageIdentification !== undefined && output.LanguageIdentification !== null
979
+ ? deserializeAws_restJson1LanguageIdentification(output.LanguageIdentification, context)
980
+ : undefined,
943
981
  ResultId: __expectString(output.ResultId),
944
982
  StartTime: __limitedParseDouble(output.StartTime),
945
983
  };
@@ -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,10 +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 { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
17
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
18
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
18
19
  export var getRuntimeConfig = function (config) {
19
20
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
20
- emitWarningIfUnsupportedVersion(process.version);
21
+ var defaultsMode = resolveDefaultsModeConfig(config);
22
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
21
23
  var clientSharedValues = getSharedRuntimeConfig(config);
22
- 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 });
23
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
  /**