@aws-sdk/client-transcribe-streaming 3.53.0 → 3.55.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,33 @@
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.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients as of 03/21/2022 ([#3455](https://github.com/aws/aws-sdk-js-v3/issues/3455)) ([7cd40a5](https://github.com/aws/aws-sdk-js-v3/commit/7cd40a5aeaddf03b8d27e814b3a2b441c1217dfb))
12
+
13
+
14
+
15
+
16
+
17
+ ## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-transcribe-streaming
20
+
21
+
22
+
23
+
24
+
25
+ # [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-transcribe-streaming
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
7
34
 
8
35
 
@@ -15,25 +15,25 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
15
15
  const runtimeConfig_1 = require("./runtimeConfig");
16
16
  class TranscribeStreamingClient extends smithy_client_1.Client {
17
17
  constructor(configuration) {
18
- const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
19
- const _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
20
- const _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
21
- const _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
22
- const _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
23
- const _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4);
24
- const _config_6 = middleware_eventstream_1.resolveEventStreamConfig(_config_5);
25
- const _config_7 = middleware_sdk_transcribe_streaming_1.resolveWebSocketConfig(_config_6);
26
- const _config_8 = middleware_user_agent_1.resolveUserAgentConfig(_config_7);
27
- const _config_9 = eventstream_serde_config_resolver_1.resolveEventStreamSerdeConfig(_config_8);
18
+ const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
19
+ const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0);
20
+ const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1);
21
+ const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
22
+ const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3);
23
+ const _config_5 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_4);
24
+ const _config_6 = (0, middleware_eventstream_1.resolveEventStreamConfig)(_config_5);
25
+ const _config_7 = (0, middleware_sdk_transcribe_streaming_1.resolveWebSocketConfig)(_config_6);
26
+ const _config_8 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_7);
27
+ const _config_9 = (0, eventstream_serde_config_resolver_1.resolveEventStreamSerdeConfig)(_config_8);
28
28
  super(_config_9);
29
29
  this.config = _config_9;
30
- this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config));
31
- this.middlewareStack.use(middleware_content_length_1.getContentLengthPlugin(this.config));
32
- this.middlewareStack.use(middleware_host_header_1.getHostHeaderPlugin(this.config));
33
- this.middlewareStack.use(middleware_logger_1.getLoggerPlugin(this.config));
34
- this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
35
- this.middlewareStack.use(middleware_sdk_transcribe_streaming_1.getWebSocketPlugin(this.config));
36
- this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
30
+ this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
31
+ this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
32
+ this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
33
+ this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
34
+ this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
35
+ this.middlewareStack.use((0, middleware_sdk_transcribe_streaming_1.getWebSocketPlugin)(this.config));
36
+ this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
37
37
  }
38
38
  destroy() {
39
39
  super.destroy();
@@ -12,8 +12,8 @@ class StartMedicalStreamTranscriptionCommand extends smithy_client_1.Command {
12
12
  this.input = input;
13
13
  }
14
14
  resolveMiddleware(clientStack, configuration, options) {
15
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
16
- this.middlewareStack.use(middleware_eventstream_1.getEventStreamPlugin(configuration));
15
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
16
+ this.middlewareStack.use((0, middleware_eventstream_1.getEventStreamPlugin)(configuration));
17
17
  const stack = clientStack.concat(this.middlewareStack);
18
18
  const { logger } = configuration;
19
19
  const clientName = "TranscribeStreamingClient";
@@ -29,10 +29,10 @@ class StartMedicalStreamTranscriptionCommand extends smithy_client_1.Command {
29
29
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
30
  }
31
31
  serialize(input, context) {
32
- return Aws_restJson1_1.serializeAws_restJson1StartMedicalStreamTranscriptionCommand(input, context);
32
+ return (0, Aws_restJson1_1.serializeAws_restJson1StartMedicalStreamTranscriptionCommand)(input, context);
33
33
  }
34
34
  deserialize(output, context) {
35
- return Aws_restJson1_1.deserializeAws_restJson1StartMedicalStreamTranscriptionCommand(output, context);
35
+ return (0, Aws_restJson1_1.deserializeAws_restJson1StartMedicalStreamTranscriptionCommand)(output, context);
36
36
  }
37
37
  }
38
38
  exports.StartMedicalStreamTranscriptionCommand = StartMedicalStreamTranscriptionCommand;
@@ -12,8 +12,8 @@ class StartStreamTranscriptionCommand extends smithy_client_1.Command {
12
12
  this.input = input;
13
13
  }
14
14
  resolveMiddleware(clientStack, configuration, options) {
15
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
16
- this.middlewareStack.use(middleware_eventstream_1.getEventStreamPlugin(configuration));
15
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
16
+ this.middlewareStack.use((0, middleware_eventstream_1.getEventStreamPlugin)(configuration));
17
17
  const stack = clientStack.concat(this.middlewareStack);
18
18
  const { logger } = configuration;
19
19
  const clientName = "TranscribeStreamingClient";
@@ -29,10 +29,10 @@ class StartStreamTranscriptionCommand extends smithy_client_1.Command {
29
29
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
30
  }
31
31
  serialize(input, context) {
32
- return Aws_restJson1_1.serializeAws_restJson1StartStreamTranscriptionCommand(input, context);
32
+ return (0, Aws_restJson1_1.serializeAws_restJson1StartStreamTranscriptionCommand)(input, context);
33
33
  }
34
34
  deserialize(output, context) {
35
- return Aws_restJson1_1.deserializeAws_restJson1StartStreamTranscriptionCommand(output, context);
35
+ return (0, Aws_restJson1_1.deserializeAws_restJson1StartStreamTranscriptionCommand)(output, context);
36
36
  }
37
37
  }
38
38
  exports.StartStreamTranscriptionCommand = StartStreamTranscriptionCommand;
@@ -130,7 +130,7 @@ const partitionHash = {
130
130
  ],
131
131
  },
132
132
  };
133
- const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
133
+ const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
134
134
  ...options,
135
135
  signingService: "transcribe",
136
136
  regionHash,
@@ -102,6 +102,12 @@ const serializeAws_restJson1StartStreamTranscriptionCommand = async (input, cont
102
102
  ...(isSerializableHeaderValue(input.PreferredLanguage) && {
103
103
  "x-amzn-transcribe-preferred-language": input.PreferredLanguage,
104
104
  }),
105
+ ...(isSerializableHeaderValue(input.VocabularyNames) && {
106
+ "x-amzn-transcribe-vocabulary-names": input.VocabularyNames,
107
+ }),
108
+ ...(isSerializableHeaderValue(input.VocabularyFilterNames) && {
109
+ "x-amzn-transcribe-vocabulary-filter-names": input.VocabularyFilterNames,
110
+ }),
105
111
  };
106
112
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/stream-transcription";
107
113
  let body;
@@ -146,7 +152,7 @@ const deserializeAws_restJson1StartMedicalStreamTranscriptionCommand = async (ou
146
152
  contents.LanguageCode = output.headers["x-amzn-transcribe-language-code"];
147
153
  }
148
154
  if (output.headers["x-amzn-transcribe-sample-rate"] !== undefined) {
149
- contents.MediaSampleRateHertz = smithy_client_1.strictParseInt32(output.headers["x-amzn-transcribe-sample-rate"]);
155
+ contents.MediaSampleRateHertz = (0, smithy_client_1.strictParseInt32)(output.headers["x-amzn-transcribe-sample-rate"]);
150
156
  }
151
157
  if (output.headers["x-amzn-transcribe-media-encoding"] !== undefined) {
152
158
  contents.MediaEncoding = output.headers["x-amzn-transcribe-media-encoding"];
@@ -161,16 +167,16 @@ const deserializeAws_restJson1StartMedicalStreamTranscriptionCommand = async (ou
161
167
  contents.Type = output.headers["x-amzn-transcribe-type"];
162
168
  }
163
169
  if (output.headers["x-amzn-transcribe-show-speaker-label"] !== undefined) {
164
- contents.ShowSpeakerLabel = smithy_client_1.parseBoolean(output.headers["x-amzn-transcribe-show-speaker-label"]);
170
+ contents.ShowSpeakerLabel = (0, smithy_client_1.parseBoolean)(output.headers["x-amzn-transcribe-show-speaker-label"]);
165
171
  }
166
172
  if (output.headers["x-amzn-transcribe-session-id"] !== undefined) {
167
173
  contents.SessionId = output.headers["x-amzn-transcribe-session-id"];
168
174
  }
169
175
  if (output.headers["x-amzn-transcribe-enable-channel-identification"] !== undefined) {
170
- contents.EnableChannelIdentification = smithy_client_1.parseBoolean(output.headers["x-amzn-transcribe-enable-channel-identification"]);
176
+ contents.EnableChannelIdentification = (0, smithy_client_1.parseBoolean)(output.headers["x-amzn-transcribe-enable-channel-identification"]);
171
177
  }
172
178
  if (output.headers["x-amzn-transcribe-number-of-channels"] !== undefined) {
173
- contents.NumberOfChannels = smithy_client_1.strictParseInt32(output.headers["x-amzn-transcribe-number-of-channels"]);
179
+ contents.NumberOfChannels = (0, smithy_client_1.strictParseInt32)(output.headers["x-amzn-transcribe-number-of-channels"]);
174
180
  }
175
181
  if (output.headers["x-amzn-transcribe-content-identification-type"] !== undefined) {
176
182
  contents.ContentIdentificationType = output.headers["x-amzn-transcribe-content-identification-type"];
@@ -225,7 +231,7 @@ const deserializeAws_restJson1StartMedicalStreamTranscriptionCommandError = asyn
225
231
  $fault: "client",
226
232
  $metadata: deserializeMetadata(output),
227
233
  });
228
- throw smithy_client_1.decorateServiceException(response, parsedBody);
234
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
229
235
  }
230
236
  };
231
237
  const deserializeAws_restJson1StartStreamTranscriptionCommand = async (output, context) => {
@@ -254,7 +260,9 @@ const deserializeAws_restJson1StartStreamTranscriptionCommand = async (output, c
254
260
  TranscriptResultStream: undefined,
255
261
  VocabularyFilterMethod: undefined,
256
262
  VocabularyFilterName: undefined,
263
+ VocabularyFilterNames: undefined,
257
264
  VocabularyName: undefined,
265
+ VocabularyNames: undefined,
258
266
  };
259
267
  if (output.headers["x-amzn-request-id"] !== undefined) {
260
268
  contents.RequestId = output.headers["x-amzn-request-id"];
@@ -263,7 +271,7 @@ const deserializeAws_restJson1StartStreamTranscriptionCommand = async (output, c
263
271
  contents.LanguageCode = output.headers["x-amzn-transcribe-language-code"];
264
272
  }
265
273
  if (output.headers["x-amzn-transcribe-sample-rate"] !== undefined) {
266
- contents.MediaSampleRateHertz = smithy_client_1.strictParseInt32(output.headers["x-amzn-transcribe-sample-rate"]);
274
+ contents.MediaSampleRateHertz = (0, smithy_client_1.strictParseInt32)(output.headers["x-amzn-transcribe-sample-rate"]);
267
275
  }
268
276
  if (output.headers["x-amzn-transcribe-media-encoding"] !== undefined) {
269
277
  contents.MediaEncoding = output.headers["x-amzn-transcribe-media-encoding"];
@@ -281,16 +289,16 @@ const deserializeAws_restJson1StartStreamTranscriptionCommand = async (output, c
281
289
  contents.VocabularyFilterMethod = output.headers["x-amzn-transcribe-vocabulary-filter-method"];
282
290
  }
283
291
  if (output.headers["x-amzn-transcribe-show-speaker-label"] !== undefined) {
284
- contents.ShowSpeakerLabel = smithy_client_1.parseBoolean(output.headers["x-amzn-transcribe-show-speaker-label"]);
292
+ contents.ShowSpeakerLabel = (0, smithy_client_1.parseBoolean)(output.headers["x-amzn-transcribe-show-speaker-label"]);
285
293
  }
286
294
  if (output.headers["x-amzn-transcribe-enable-channel-identification"] !== undefined) {
287
- contents.EnableChannelIdentification = smithy_client_1.parseBoolean(output.headers["x-amzn-transcribe-enable-channel-identification"]);
295
+ contents.EnableChannelIdentification = (0, smithy_client_1.parseBoolean)(output.headers["x-amzn-transcribe-enable-channel-identification"]);
288
296
  }
289
297
  if (output.headers["x-amzn-transcribe-number-of-channels"] !== undefined) {
290
- contents.NumberOfChannels = smithy_client_1.strictParseInt32(output.headers["x-amzn-transcribe-number-of-channels"]);
298
+ contents.NumberOfChannels = (0, smithy_client_1.strictParseInt32)(output.headers["x-amzn-transcribe-number-of-channels"]);
291
299
  }
292
300
  if (output.headers["x-amzn-transcribe-enable-partial-results-stabilization"] !== undefined) {
293
- contents.EnablePartialResultsStabilization = smithy_client_1.parseBoolean(output.headers["x-amzn-transcribe-enable-partial-results-stabilization"]);
301
+ contents.EnablePartialResultsStabilization = (0, smithy_client_1.parseBoolean)(output.headers["x-amzn-transcribe-enable-partial-results-stabilization"]);
294
302
  }
295
303
  if (output.headers["x-amzn-transcribe-partial-results-stability"] !== undefined) {
296
304
  contents.PartialResultsStability = output.headers["x-amzn-transcribe-partial-results-stability"];
@@ -308,7 +316,7 @@ const deserializeAws_restJson1StartStreamTranscriptionCommand = async (output, c
308
316
  contents.LanguageModelName = output.headers["x-amzn-transcribe-language-model-name"];
309
317
  }
310
318
  if (output.headers["x-amzn-transcribe-identify-language"] !== undefined) {
311
- contents.IdentifyLanguage = smithy_client_1.parseBoolean(output.headers["x-amzn-transcribe-identify-language"]);
319
+ contents.IdentifyLanguage = (0, smithy_client_1.parseBoolean)(output.headers["x-amzn-transcribe-identify-language"]);
312
320
  }
313
321
  if (output.headers["x-amzn-transcribe-language-options"] !== undefined) {
314
322
  contents.LanguageOptions = output.headers["x-amzn-transcribe-language-options"];
@@ -316,6 +324,12 @@ const deserializeAws_restJson1StartStreamTranscriptionCommand = async (output, c
316
324
  if (output.headers["x-amzn-transcribe-preferred-language"] !== undefined) {
317
325
  contents.PreferredLanguage = output.headers["x-amzn-transcribe-preferred-language"];
318
326
  }
327
+ if (output.headers["x-amzn-transcribe-vocabulary-names"] !== undefined) {
328
+ contents.VocabularyNames = output.headers["x-amzn-transcribe-vocabulary-names"];
329
+ }
330
+ if (output.headers["x-amzn-transcribe-vocabulary-filter-names"] !== undefined) {
331
+ contents.VocabularyFilterNames = output.headers["x-amzn-transcribe-vocabulary-filter-names"];
332
+ }
319
333
  const data = context.eventStreamMarshaller.deserialize(output.body, async (event) => {
320
334
  const eventName = Object.keys(event)[0];
321
335
  const eventHeaders = Object.entries(event[eventName].headers).reduce((accummulator, curr) => {
@@ -366,7 +380,7 @@ const deserializeAws_restJson1StartStreamTranscriptionCommandError = async (outp
366
380
  $fault: "client",
367
381
  $metadata: deserializeMetadata(output),
368
382
  });
369
- throw smithy_client_1.decorateServiceException(response, parsedBody);
383
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
370
384
  }
371
385
  };
372
386
  const serializeAws_restJson1AudioStream_event = (input, context) => {
@@ -509,61 +523,61 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
509
523
  const contents = {};
510
524
  const data = parsedOutput.body;
511
525
  if (data.Message !== undefined && data.Message !== null) {
512
- contents.Message = smithy_client_1.expectString(data.Message);
526
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
513
527
  }
514
528
  const exception = new models_0_1.BadRequestException({
515
529
  $metadata: deserializeMetadata(parsedOutput),
516
530
  ...contents,
517
531
  });
518
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
532
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
519
533
  };
520
534
  const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
521
535
  const contents = {};
522
536
  const data = parsedOutput.body;
523
537
  if (data.Message !== undefined && data.Message !== null) {
524
- contents.Message = smithy_client_1.expectString(data.Message);
538
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
525
539
  }
526
540
  const exception = new models_0_1.ConflictException({
527
541
  $metadata: deserializeMetadata(parsedOutput),
528
542
  ...contents,
529
543
  });
530
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
544
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
531
545
  };
532
546
  const deserializeAws_restJson1InternalFailureExceptionResponse = async (parsedOutput, context) => {
533
547
  const contents = {};
534
548
  const data = parsedOutput.body;
535
549
  if (data.Message !== undefined && data.Message !== null) {
536
- contents.Message = smithy_client_1.expectString(data.Message);
550
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
537
551
  }
538
552
  const exception = new models_0_1.InternalFailureException({
539
553
  $metadata: deserializeMetadata(parsedOutput),
540
554
  ...contents,
541
555
  });
542
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
556
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
543
557
  };
544
558
  const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutput, context) => {
545
559
  const contents = {};
546
560
  const data = parsedOutput.body;
547
561
  if (data.Message !== undefined && data.Message !== null) {
548
- contents.Message = smithy_client_1.expectString(data.Message);
562
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
549
563
  }
550
564
  const exception = new models_0_1.LimitExceededException({
551
565
  $metadata: deserializeMetadata(parsedOutput),
552
566
  ...contents,
553
567
  });
554
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
568
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
555
569
  };
556
570
  const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
557
571
  const contents = {};
558
572
  const data = parsedOutput.body;
559
573
  if (data.Message !== undefined && data.Message !== null) {
560
- contents.Message = smithy_client_1.expectString(data.Message);
574
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
561
575
  }
562
576
  const exception = new models_0_1.ServiceUnavailableException({
563
577
  $metadata: deserializeMetadata(parsedOutput),
564
578
  ...contents,
565
579
  });
566
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
580
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
567
581
  };
568
582
  const serializeAws_restJson1AudioEvent = (input, context) => {
569
583
  return {
@@ -585,7 +599,7 @@ const deserializeAws_restJson1Alternative = (output, context) => {
585
599
  Items: output.Items !== undefined && output.Items !== null
586
600
  ? deserializeAws_restJson1ItemList(output.Items, context)
587
601
  : undefined,
588
- Transcript: smithy_client_1.expectString(output.Transcript),
602
+ Transcript: (0, smithy_client_1.expectString)(output.Transcript),
589
603
  };
590
604
  };
591
605
  const deserializeAws_restJson1AlternativeList = (output, context) => {
@@ -601,22 +615,22 @@ const deserializeAws_restJson1AlternativeList = (output, context) => {
601
615
  };
602
616
  const deserializeAws_restJson1BadRequestException = (output, context) => {
603
617
  return {
604
- Message: smithy_client_1.expectString(output.Message),
618
+ Message: (0, smithy_client_1.expectString)(output.Message),
605
619
  };
606
620
  };
607
621
  const deserializeAws_restJson1ConflictException = (output, context) => {
608
622
  return {
609
- Message: smithy_client_1.expectString(output.Message),
623
+ Message: (0, smithy_client_1.expectString)(output.Message),
610
624
  };
611
625
  };
612
626
  const deserializeAws_restJson1Entity = (output, context) => {
613
627
  return {
614
- Category: smithy_client_1.expectString(output.Category),
615
- Confidence: smithy_client_1.limitedParseDouble(output.Confidence),
616
- Content: smithy_client_1.expectString(output.Content),
617
- EndTime: smithy_client_1.limitedParseDouble(output.EndTime),
618
- StartTime: smithy_client_1.limitedParseDouble(output.StartTime),
619
- Type: smithy_client_1.expectString(output.Type),
628
+ Category: (0, smithy_client_1.expectString)(output.Category),
629
+ Confidence: (0, smithy_client_1.limitedParseDouble)(output.Confidence),
630
+ Content: (0, smithy_client_1.expectString)(output.Content),
631
+ EndTime: (0, smithy_client_1.limitedParseDouble)(output.EndTime),
632
+ StartTime: (0, smithy_client_1.limitedParseDouble)(output.StartTime),
633
+ Type: (0, smithy_client_1.expectString)(output.Type),
620
634
  };
621
635
  };
622
636
  const deserializeAws_restJson1EntityList = (output, context) => {
@@ -632,19 +646,19 @@ const deserializeAws_restJson1EntityList = (output, context) => {
632
646
  };
633
647
  const deserializeAws_restJson1InternalFailureException = (output, context) => {
634
648
  return {
635
- Message: smithy_client_1.expectString(output.Message),
649
+ Message: (0, smithy_client_1.expectString)(output.Message),
636
650
  };
637
651
  };
638
652
  const deserializeAws_restJson1Item = (output, context) => {
639
653
  return {
640
- Confidence: smithy_client_1.limitedParseDouble(output.Confidence),
641
- Content: smithy_client_1.expectString(output.Content),
642
- EndTime: smithy_client_1.limitedParseDouble(output.EndTime),
643
- Speaker: smithy_client_1.expectString(output.Speaker),
644
- Stable: smithy_client_1.expectBoolean(output.Stable),
645
- StartTime: smithy_client_1.limitedParseDouble(output.StartTime),
646
- Type: smithy_client_1.expectString(output.Type),
647
- VocabularyFilterMatch: smithy_client_1.expectBoolean(output.VocabularyFilterMatch),
654
+ Confidence: (0, smithy_client_1.limitedParseDouble)(output.Confidence),
655
+ Content: (0, smithy_client_1.expectString)(output.Content),
656
+ EndTime: (0, smithy_client_1.limitedParseDouble)(output.EndTime),
657
+ Speaker: (0, smithy_client_1.expectString)(output.Speaker),
658
+ Stable: (0, smithy_client_1.expectBoolean)(output.Stable),
659
+ StartTime: (0, smithy_client_1.limitedParseDouble)(output.StartTime),
660
+ Type: (0, smithy_client_1.expectString)(output.Type),
661
+ VocabularyFilterMatch: (0, smithy_client_1.expectBoolean)(output.VocabularyFilterMatch),
648
662
  };
649
663
  };
650
664
  const deserializeAws_restJson1ItemList = (output, context) => {
@@ -671,13 +685,13 @@ const deserializeAws_restJson1LanguageIdentification = (output, context) => {
671
685
  };
672
686
  const deserializeAws_restJson1LanguageWithScore = (output, context) => {
673
687
  return {
674
- LanguageCode: smithy_client_1.expectString(output.LanguageCode),
675
- Score: smithy_client_1.limitedParseDouble(output.Score),
688
+ LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
689
+ Score: (0, smithy_client_1.limitedParseDouble)(output.Score),
676
690
  };
677
691
  };
678
692
  const deserializeAws_restJson1LimitExceededException = (output, context) => {
679
693
  return {
680
- Message: smithy_client_1.expectString(output.Message),
694
+ Message: (0, smithy_client_1.expectString)(output.Message),
681
695
  };
682
696
  };
683
697
  const deserializeAws_restJson1MedicalAlternative = (output, context) => {
@@ -688,7 +702,7 @@ const deserializeAws_restJson1MedicalAlternative = (output, context) => {
688
702
  Items: output.Items !== undefined && output.Items !== null
689
703
  ? deserializeAws_restJson1MedicalItemList(output.Items, context)
690
704
  : undefined,
691
- Transcript: smithy_client_1.expectString(output.Transcript),
705
+ Transcript: (0, smithy_client_1.expectString)(output.Transcript),
692
706
  };
693
707
  };
694
708
  const deserializeAws_restJson1MedicalAlternativeList = (output, context) => {
@@ -704,11 +718,11 @@ const deserializeAws_restJson1MedicalAlternativeList = (output, context) => {
704
718
  };
705
719
  const deserializeAws_restJson1MedicalEntity = (output, context) => {
706
720
  return {
707
- Category: smithy_client_1.expectString(output.Category),
708
- Confidence: smithy_client_1.limitedParseDouble(output.Confidence),
709
- Content: smithy_client_1.expectString(output.Content),
710
- EndTime: smithy_client_1.limitedParseDouble(output.EndTime),
711
- StartTime: smithy_client_1.limitedParseDouble(output.StartTime),
721
+ Category: (0, smithy_client_1.expectString)(output.Category),
722
+ Confidence: (0, smithy_client_1.limitedParseDouble)(output.Confidence),
723
+ Content: (0, smithy_client_1.expectString)(output.Content),
724
+ EndTime: (0, smithy_client_1.limitedParseDouble)(output.EndTime),
725
+ StartTime: (0, smithy_client_1.limitedParseDouble)(output.StartTime),
712
726
  };
713
727
  };
714
728
  const deserializeAws_restJson1MedicalEntityList = (output, context) => {
@@ -724,12 +738,12 @@ const deserializeAws_restJson1MedicalEntityList = (output, context) => {
724
738
  };
725
739
  const deserializeAws_restJson1MedicalItem = (output, context) => {
726
740
  return {
727
- Confidence: smithy_client_1.limitedParseDouble(output.Confidence),
728
- Content: smithy_client_1.expectString(output.Content),
729
- EndTime: smithy_client_1.limitedParseDouble(output.EndTime),
730
- Speaker: smithy_client_1.expectString(output.Speaker),
731
- StartTime: smithy_client_1.limitedParseDouble(output.StartTime),
732
- Type: smithy_client_1.expectString(output.Type),
741
+ Confidence: (0, smithy_client_1.limitedParseDouble)(output.Confidence),
742
+ Content: (0, smithy_client_1.expectString)(output.Content),
743
+ EndTime: (0, smithy_client_1.limitedParseDouble)(output.EndTime),
744
+ Speaker: (0, smithy_client_1.expectString)(output.Speaker),
745
+ StartTime: (0, smithy_client_1.limitedParseDouble)(output.StartTime),
746
+ Type: (0, smithy_client_1.expectString)(output.Type),
733
747
  };
734
748
  };
735
749
  const deserializeAws_restJson1MedicalItemList = (output, context) => {
@@ -748,11 +762,11 @@ const deserializeAws_restJson1MedicalResult = (output, context) => {
748
762
  Alternatives: output.Alternatives !== undefined && output.Alternatives !== null
749
763
  ? deserializeAws_restJson1MedicalAlternativeList(output.Alternatives, context)
750
764
  : undefined,
751
- ChannelId: smithy_client_1.expectString(output.ChannelId),
752
- EndTime: smithy_client_1.limitedParseDouble(output.EndTime),
753
- IsPartial: smithy_client_1.expectBoolean(output.IsPartial),
754
- ResultId: smithy_client_1.expectString(output.ResultId),
755
- StartTime: smithy_client_1.limitedParseDouble(output.StartTime),
765
+ ChannelId: (0, smithy_client_1.expectString)(output.ChannelId),
766
+ EndTime: (0, smithy_client_1.limitedParseDouble)(output.EndTime),
767
+ IsPartial: (0, smithy_client_1.expectBoolean)(output.IsPartial),
768
+ ResultId: (0, smithy_client_1.expectString)(output.ResultId),
769
+ StartTime: (0, smithy_client_1.limitedParseDouble)(output.StartTime),
756
770
  };
757
771
  };
758
772
  const deserializeAws_restJson1MedicalResultList = (output, context) => {
@@ -818,15 +832,15 @@ const deserializeAws_restJson1Result = (output, context) => {
818
832
  Alternatives: output.Alternatives !== undefined && output.Alternatives !== null
819
833
  ? deserializeAws_restJson1AlternativeList(output.Alternatives, context)
820
834
  : undefined,
821
- ChannelId: smithy_client_1.expectString(output.ChannelId),
822
- EndTime: smithy_client_1.limitedParseDouble(output.EndTime),
823
- IsPartial: smithy_client_1.expectBoolean(output.IsPartial),
824
- LanguageCode: smithy_client_1.expectString(output.LanguageCode),
835
+ ChannelId: (0, smithy_client_1.expectString)(output.ChannelId),
836
+ EndTime: (0, smithy_client_1.limitedParseDouble)(output.EndTime),
837
+ IsPartial: (0, smithy_client_1.expectBoolean)(output.IsPartial),
838
+ LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
825
839
  LanguageIdentification: output.LanguageIdentification !== undefined && output.LanguageIdentification !== null
826
840
  ? deserializeAws_restJson1LanguageIdentification(output.LanguageIdentification, context)
827
841
  : undefined,
828
- ResultId: smithy_client_1.expectString(output.ResultId),
829
- StartTime: smithy_client_1.limitedParseDouble(output.StartTime),
842
+ ResultId: (0, smithy_client_1.expectString)(output.ResultId),
843
+ StartTime: (0, smithy_client_1.limitedParseDouble)(output.StartTime),
830
844
  };
831
845
  };
832
846
  const deserializeAws_restJson1ResultList = (output, context) => {
@@ -842,7 +856,7 @@ const deserializeAws_restJson1ResultList = (output, context) => {
842
856
  };
843
857
  const deserializeAws_restJson1ServiceUnavailableException = (output, context) => {
844
858
  return {
845
- Message: smithy_client_1.expectString(output.Message),
859
+ Message: (0, smithy_client_1.expectString)(output.Message),
846
860
  };
847
861
  };
848
862
  const deserializeAws_restJson1Transcript = (output, context) => {
@@ -19,9 +19,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
20
20
  const getRuntimeConfig = (config) => {
21
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);
22
+ const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
23
23
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
- const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
24
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
25
25
  return {
26
26
  ...clientSharedValues,
27
27
  ...config,
@@ -31,11 +31,11 @@ const getRuntimeConfig = (config) => {
31
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
32
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
33
33
  credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
34
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
34
+ defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
35
  eventStreamPayloadHandlerProvider: (_f = config === null || config === void 0 ? void 0 : config.eventStreamPayloadHandlerProvider) !== null && _f !== void 0 ? _f : (() => middleware_sdk_transcribe_streaming_1.eventStreamPayloadHandler),
36
36
  eventStreamSerdeProvider: (_g = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _g !== void 0 ? _g : eventstream_serde_browser_1.eventStreamSerdeProvider,
37
37
  maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
38
- region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : invalid_dependency_1.invalidProvider("Region is missing"),
38
+ region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
39
39
  requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new middleware_sdk_transcribe_streaming_1.WebSocketHandler(),
40
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),
41
41
  sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : sha256_browser_1.Sha256,
@@ -21,9 +21,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
21
21
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
22
22
  const getRuntimeConfig = (config) => {
23
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);
24
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
25
25
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
26
- const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
26
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
27
27
  return {
28
28
  ...clientSharedValues,
29
29
  ...config,
@@ -32,21 +32,21 @@ const getRuntimeConfig = (config) => {
32
32
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
33
33
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
34
34
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
35
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
36
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
+ credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
36
+ defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
37
  eventStreamPayloadHandlerProvider: (_f = config === null || config === void 0 ? void 0 : config.eventStreamPayloadHandlerProvider) !== null && _f !== void 0 ? _f : eventstream_handler_node_1.eventStreamPayloadHandlerProvider,
38
38
  eventStreamSerdeProvider: (_g = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _g !== void 0 ? _g : eventstream_serde_node_1.eventStreamSerdeProvider,
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),
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),
39
+ maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
40
+ region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
41
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 }),
42
- retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : node_config_provider_1.loadConfig({
42
+ retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : (0, node_config_provider_1.loadConfig)({
43
43
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
44
44
  default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
45
45
  }),
46
46
  sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : hash_node_1.Hash.bind(null, "sha256"),
47
47
  streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : node_http_handler_1.streamCollector,
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),
49
- useFipsEndpoint: (_q = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _q !== void 0 ? _q : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
48
+ useDualstackEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _p !== void 0 ? _p : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
49
+ useFipsEndpoint: (_q = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _q !== void 0 ? _q : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
50
50
  utf8Decoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _r !== void 0 ? _r : util_utf8_node_1.fromUtf8,
51
51
  utf8Encoder: (_s = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _s !== void 0 ? _s : util_utf8_node_1.toUtf8,
52
52
  };
@@ -6,7 +6,7 @@ const middleware_sdk_transcribe_streaming_1 = require("@aws-sdk/middleware-sdk-t
6
6
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
7
7
  const getRuntimeConfig = (config) => {
8
8
  var _a, _b, _c;
9
- const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
9
+ const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
10
10
  return {
11
11
  ...browserDefaults,
12
12
  ...config,
@@ -14,7 +14,7 @@ var TranscribeStreaming = (function (_super) {
14
14
  }
15
15
  else if (typeof cb === "function") {
16
16
  if (typeof optionsOrCb !== "object")
17
- throw new Error("Expect http options but get " + typeof optionsOrCb);
17
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
18
18
  this.send(command, optionsOrCb || {}, cb);
19
19
  }
20
20
  else {
@@ -28,7 +28,7 @@ var TranscribeStreaming = (function (_super) {
28
28
  }
29
29
  else if (typeof cb === "function") {
30
30
  if (typeof optionsOrCb !== "object")
31
- throw new Error("Expect http options but get " + typeof optionsOrCb);
31
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
32
32
  this.send(command, optionsOrCb || {}, cb);
33
33
  }
34
34
  else {
@@ -23,7 +23,7 @@ export var serializeAws_restJson1StartMedicalStreamTranscriptionCommand = functi
23
23
  })), (isSerializableHeaderValue(input.ContentIdentificationType) && {
24
24
  "x-amzn-transcribe-content-identification-type": input.ContentIdentificationType,
25
25
  }));
26
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/medical-stream-transcription";
26
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/medical-stream-transcription";
27
27
  if (input.AudioStream !== undefined) {
28
28
  body = context.eventStreamMarshaller.serialize(input.AudioStream, function (event) {
29
29
  return serializeAws_restJson1AudioStream_event(event, context);
@@ -48,7 +48,7 @@ export var serializeAws_restJson1StartStreamTranscriptionCommand = function (inp
48
48
  case 0: return [4, context.endpoint()];
49
49
  case 1:
50
50
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
51
- 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
+ headers = __assign(__assign(__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) && {
52
52
  "x-amzn-transcribe-sample-rate": input.MediaSampleRateHertz.toString(),
53
53
  })), (isSerializableHeaderValue(input.MediaEncoding) && { "x-amzn-transcribe-media-encoding": input.MediaEncoding })), (isSerializableHeaderValue(input.VocabularyName) && {
54
54
  "x-amzn-transcribe-vocabulary-name": input.VocabularyName,
@@ -80,8 +80,12 @@ export var serializeAws_restJson1StartStreamTranscriptionCommand = function (inp
80
80
  "x-amzn-transcribe-language-options": input.LanguageOptions,
81
81
  })), (isSerializableHeaderValue(input.PreferredLanguage) && {
82
82
  "x-amzn-transcribe-preferred-language": input.PreferredLanguage,
83
+ })), (isSerializableHeaderValue(input.VocabularyNames) && {
84
+ "x-amzn-transcribe-vocabulary-names": input.VocabularyNames,
85
+ })), (isSerializableHeaderValue(input.VocabularyFilterNames) && {
86
+ "x-amzn-transcribe-vocabulary-filter-names": input.VocabularyFilterNames,
83
87
  }));
84
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/stream-transcription";
88
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/stream-transcription";
85
89
  if (input.AudioStream !== undefined) {
86
90
  body = context.eventStreamMarshaller.serialize(input.AudioStream, function (event) {
87
91
  return serializeAws_restJson1AudioStream_event(event, context);
@@ -260,7 +264,9 @@ export var deserializeAws_restJson1StartStreamTranscriptionCommand = function (o
260
264
  TranscriptResultStream: undefined,
261
265
  VocabularyFilterMethod: undefined,
262
266
  VocabularyFilterName: undefined,
267
+ VocabularyFilterNames: undefined,
263
268
  VocabularyName: undefined,
269
+ VocabularyNames: undefined,
264
270
  };
265
271
  if (output.headers["x-amzn-request-id"] !== undefined) {
266
272
  contents.RequestId = output.headers["x-amzn-request-id"];
@@ -322,6 +328,12 @@ export var deserializeAws_restJson1StartStreamTranscriptionCommand = function (o
322
328
  if (output.headers["x-amzn-transcribe-preferred-language"] !== undefined) {
323
329
  contents.PreferredLanguage = output.headers["x-amzn-transcribe-preferred-language"];
324
330
  }
331
+ if (output.headers["x-amzn-transcribe-vocabulary-names"] !== undefined) {
332
+ contents.VocabularyNames = output.headers["x-amzn-transcribe-vocabulary-names"];
333
+ }
334
+ if (output.headers["x-amzn-transcribe-vocabulary-filter-names"] !== undefined) {
335
+ contents.VocabularyFilterNames = output.headers["x-amzn-transcribe-vocabulary-filter-names"];
336
+ }
325
337
  data = context.eventStreamMarshaller.deserialize(output.body, function (event) { return __awaiter(void 0, void 0, void 0, function () {
326
338
  var eventName, eventHeaders, eventMessage, parsedEvent;
327
339
  var _a;
@@ -8,7 +8,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
8
8
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
9
9
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
10
10
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
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";
11
+ import { BodyLengthCalculator as __BodyLengthCalculator, 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";
14
14
  export declare type ServiceInputTypes = StartMedicalStreamTranscriptionCommandInput | StartStreamTranscriptionCommandInput;
@@ -33,7 +33,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
33
33
  * A function that can calculate the length of a request body.
34
34
  * @internal
35
35
  */
36
- bodyLengthChecker?: (body: any) => number | undefined;
36
+ bodyLengthChecker?: __BodyLengthCalculator;
37
37
  /**
38
38
  * A function that converts a stream into an array of bytes.
39
39
  * @internal
@@ -657,7 +657,9 @@ export interface StartMedicalStreamTranscriptionRequest {
657
657
  */
658
658
  LanguageCode: LanguageCode | string | undefined;
659
659
  /**
660
- * <p>The sample rate of the input audio in Hertz.</p>
660
+ * <p>The sample rate of the input audio (in Hertz). Amazon Transcribe medical supports a range from
661
+ * 16,000 Hz to 48,000 Hz. Note that the sample rate you specify must match that of your
662
+ * audio.</p>
661
663
  */
662
664
  MediaSampleRateHertz: number | undefined;
663
665
  /**
@@ -730,7 +732,7 @@ export interface StartMedicalStreamTranscriptionResponse {
730
732
  */
731
733
  LanguageCode?: LanguageCode | string;
732
734
  /**
733
- * <p>The sample rate of the input audio in Hertz.</p>
735
+ * <p>The sample rate of the input audio, in Hertz (Hz).</p>
734
736
  */
735
737
  MediaSampleRateHertz?: number;
736
738
  /**
@@ -793,8 +795,9 @@ export interface StartStreamTranscriptionRequest {
793
795
  */
794
796
  LanguageCode?: LanguageCode | string;
795
797
  /**
796
- * <p>The sample rate, in Hertz (Hz), of the input audio. We suggest that you use 8,000 Hz
797
- * for low quality audio and 16,000 Hz or higher for high quality audio.</p>
798
+ * <p>The sample rate of the input audio (in Hertz). Low-quality audio, such as telephone
799
+ * audio, is typically around 8,000 Hz. High-quality audio typically ranges from 16,000 Hz to
800
+ * 48,000 Hz. Note that the sample rate you specify must match that of your audio.</p>
798
801
  */
799
802
  MediaSampleRateHertz: number | undefined;
800
803
  /**
@@ -802,7 +805,11 @@ export interface StartStreamTranscriptionRequest {
802
805
  */
803
806
  MediaEncoding: MediaEncoding | string | undefined;
804
807
  /**
805
- * <p>The name of the vocabulary to use when processing the transcription job.</p>
808
+ * <p>The name of the custom vocabulary you want to use with your transcription.</p>
809
+ * <p>This operation is not intended for use in conjunction with the
810
+ * <code>IdentifyLanguage</code> operation. If you're using <code>IdentifyLanguage</code>
811
+ * in your request and want to use one or more custom vocabularies with your transcription, use the
812
+ * <code>VocabularyNames</code> operation instead.</p>
806
813
  */
807
814
  VocabularyName?: string;
808
815
  /**
@@ -817,8 +824,11 @@ export interface StartStreamTranscriptionRequest {
817
824
  */
818
825
  AudioStream: AsyncIterable<AudioStream> | undefined;
819
826
  /**
820
- * <p>The name of the vocabulary filter you've created that is unique to your account.
821
- * Provide the name in this field to successfully use it in a stream.</p>
827
+ * <p>The name of the vocabulary filter you want to use with your transcription.</p>
828
+ * <p>This operation is not intended for use in conjunction with the
829
+ * <code>IdentifyLanguage</code> operation. If you're using <code>IdentifyLanguage</code>
830
+ * in your request and want to use one or more vocabulary filters with your transcription, use the
831
+ * <code>VocabularyFilterNames</code> operation instead.</p>
822
832
  */
823
833
  VocabularyFilterName?: string;
824
834
  /**
@@ -839,9 +849,6 @@ export interface StartStreamTranscriptionRequest {
839
849
  * then merges the transcription output of each channel into a single transcription.</p>
840
850
  * <p>Amazon Transcribe also produces a transcription of each item. An item includes the start time, end
841
851
  * time, and any alternative transcriptions.</p>
842
- * <p>You can't set both <code>ShowSpeakerLabel</code> and
843
- * <code>EnableChannelIdentification</code> in the same request. If you set both, your request
844
- * returns a <code>BadRequestException</code>.</p>
845
852
  */
846
853
  EnableChannelIdentification?: boolean;
847
854
  /**
@@ -922,6 +929,26 @@ export interface StartStreamTranscriptionRequest {
922
929
  * <code>true</code>in your request.</p>
923
930
  */
924
931
  PreferredLanguage?: LanguageCode | string;
932
+ /**
933
+ * <p>The names of the custom vocabularies you want to use with your transcription.</p>
934
+ * <p>Note that if the custom vocabularies you specify are in languages that don't match the
935
+ * language identified in your media, your job fails.</p>
936
+ * <p>This operation is only intended for use in conjunction with the
937
+ * <code>IdentifyLanguage</code> operation. If you're not using <code>IdentifyLanguage</code>
938
+ * in your request and want to use a custom vocabulary with your transcription, use the
939
+ * <code>VocabularyName</code> operation instead.</p>
940
+ */
941
+ VocabularyNames?: string;
942
+ /**
943
+ * <p>The names of the vocabulary filters you want to use with your transcription.</p>
944
+ * <p>Note that if the vocabulary filters you specify are in languages that don't match the
945
+ * language identified in your media, your job fails.</p>
946
+ * <p>This operation is only intended for use in conjunction with the
947
+ * <code>IdentifyLanguage</code> operation. If you're not using <code>IdentifyLanguage</code>
948
+ * in your request and want to use a vocabulary filter with your transcription, use the
949
+ * <code>VocabularyFilterName</code> operation instead.</p>
950
+ */
951
+ VocabularyFilterNames?: string;
925
952
  }
926
953
  export declare namespace StartStreamTranscriptionRequest {
927
954
  /**
@@ -1071,7 +1098,7 @@ export declare namespace TranscriptResultStream {
1071
1098
  }
1072
1099
  export interface StartStreamTranscriptionResponse {
1073
1100
  /**
1074
- * <p>An identifier for the streaming transcription.</p>
1101
+ * <p>An identifier for the transcription.</p>
1075
1102
  */
1076
1103
  RequestId?: string;
1077
1104
  /**
@@ -1079,8 +1106,7 @@ export interface StartStreamTranscriptionResponse {
1079
1106
  */
1080
1107
  LanguageCode?: LanguageCode | string;
1081
1108
  /**
1082
- * <p>The sample rate, in Hertz (Hz), for the input audio stream. Use 8,000 Hz for low quality
1083
- * audio and 16,000 Hz or higher for high quality audio.</p>
1109
+ * <p>The sample rate, in Hertz (Hz), for the input audio stream.</p>
1084
1110
  */
1085
1111
  MediaSampleRateHertz?: number;
1086
1112
  /**
@@ -1088,7 +1114,7 @@ export interface StartStreamTranscriptionResponse {
1088
1114
  */
1089
1115
  MediaEncoding?: MediaEncoding | string;
1090
1116
  /**
1091
- * <p>The name of the vocabulary used when processing the stream.</p>
1117
+ * <p>The name of the custom vocabulary used when processing the stream.</p>
1092
1118
  */
1093
1119
  VocabularyName?: string;
1094
1120
  /**
@@ -1100,19 +1126,19 @@ export interface StartStreamTranscriptionResponse {
1100
1126
  */
1101
1127
  TranscriptResultStream?: AsyncIterable<TranscriptResultStream>;
1102
1128
  /**
1103
- * <p>The name of the vocabulary filter used in your media stream.</p>
1129
+ * <p>The name of the vocabulary filter used when processing the stream.</p>
1104
1130
  */
1105
1131
  VocabularyFilterName?: string;
1106
1132
  /**
1107
- * <p>The vocabulary filtering method used in the media stream.</p>
1133
+ * <p>The vocabulary filtering method used when processing the stream.</p>
1108
1134
  */
1109
1135
  VocabularyFilterMethod?: VocabularyFilterMethod | string;
1110
1136
  /**
1111
- * <p>Shows whether speaker identification was enabled in the stream.</p>
1137
+ * <p>Shows whether speaker identification was enabled in the transcription.</p>
1112
1138
  */
1113
1139
  ShowSpeakerLabel?: boolean;
1114
1140
  /**
1115
- * <p>Shows whether channel identification has been enabled in the stream.</p>
1141
+ * <p>Shows whether channel identification was enabled in the stream.</p>
1116
1142
  */
1117
1143
  EnableChannelIdentification?: boolean;
1118
1144
  /**
@@ -1120,7 +1146,7 @@ export interface StartStreamTranscriptionResponse {
1120
1146
  */
1121
1147
  NumberOfChannels?: number;
1122
1148
  /**
1123
- * <p>Shows whether partial results stabilization has been enabled in the stream.</p>
1149
+ * <p>Shows whether partial results stabilization was enabled in the transcription.</p>
1124
1150
  */
1125
1151
  EnablePartialResultsStabilization?: boolean;
1126
1152
  /**
@@ -1141,7 +1167,7 @@ export interface StartStreamTranscriptionResponse {
1141
1167
  */
1142
1168
  PiiEntityTypes?: string;
1143
1169
  /**
1144
- * <p>The name of the language model used in your media stream.</p>
1170
+ * <p>The name of the custom language model used in the transcription.</p>
1145
1171
  */
1146
1172
  LanguageModelName?: string;
1147
1173
  /**
@@ -1157,6 +1183,14 @@ export interface StartStreamTranscriptionResponse {
1157
1183
  * <p>The preferred language you specified in your request.</p>
1158
1184
  */
1159
1185
  PreferredLanguage?: LanguageCode | string;
1186
+ /**
1187
+ * <p>The name of the custom vocabulary used when processing the stream.</p>
1188
+ */
1189
+ VocabularyNames?: string;
1190
+ /**
1191
+ * <p>The name of the vocabulary filter used when processing the stream.</p>
1192
+ */
1193
+ VocabularyFilterNames?: string;
1160
1194
  }
1161
1195
  export declare namespace StartStreamTranscriptionResponse {
1162
1196
  /**
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig)
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  eventStreamPayloadHandlerProvider: import("@aws-sdk/types").EventStreamPayloadHandlerProvider;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig)
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  eventStreamPayloadHandlerProvider: import("@aws-sdk/types").EventStreamPayloadHandlerProvider;
@@ -10,7 +10,7 @@ export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig)
10
10
  sha256: import("@aws-sdk/types").HashConstructor;
11
11
  apiVersion: string;
12
12
  urlParser: import("@aws-sdk/types").UrlParser;
13
- bodyLengthChecker: (body: any) => number | undefined;
13
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
14
14
  streamCollector: import("@aws-sdk/types").StreamCollector;
15
15
  base64Decoder: import("@aws-sdk/types").Decoder;
16
16
  base64Encoder: import("@aws-sdk/types").Encoder;
@@ -23,12 +23,12 @@ export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig)
23
23
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
24
24
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
25
25
  serviceId: string;
26
- region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
26
+ region: string | import("@aws-sdk/types").Provider<any>;
27
27
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
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
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
32
32
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
33
33
  tls?: boolean | undefined;
34
34
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -8,7 +8,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
8
8
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
9
9
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
10
10
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
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";
11
+ import { BodyLengthCalculator as __BodyLengthCalculator, 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";
14
14
  export declare type ServiceInputTypes = StartMedicalStreamTranscriptionCommandInput | StartStreamTranscriptionCommandInput;
@@ -21,7 +21,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
21
21
 
22
22
  urlParser?: __UrlParser;
23
23
 
24
- bodyLengthChecker?: (body: any) => number | undefined;
24
+ bodyLengthChecker?: __BodyLengthCalculator;
25
25
 
26
26
  streamCollector?: __StreamCollector;
27
27
 
@@ -492,6 +492,10 @@ export interface StartStreamTranscriptionRequest {
492
492
  LanguageOptions?: string;
493
493
 
494
494
  PreferredLanguage?: LanguageCode | string;
495
+
496
+ VocabularyNames?: string;
497
+
498
+ VocabularyFilterNames?: string;
495
499
  }
496
500
  export declare namespace StartStreamTranscriptionRequest {
497
501
 
@@ -646,6 +650,10 @@ export interface StartStreamTranscriptionResponse {
646
650
  LanguageOptions?: string;
647
651
 
648
652
  PreferredLanguage?: LanguageCode | string;
653
+
654
+ VocabularyNames?: string;
655
+
656
+ VocabularyFilterNames?: string;
649
657
  }
650
658
  export declare namespace StartStreamTranscriptionResponse {
651
659
 
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig)
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  eventStreamPayloadHandlerProvider: import("@aws-sdk/types").EventStreamPayloadHandlerProvider;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig)
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  eventStreamPayloadHandlerProvider: import("@aws-sdk/types").EventStreamPayloadHandlerProvider;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig)
8
8
  sha256: import("@aws-sdk/types").HashConstructor;
9
9
  apiVersion: string;
10
10
  urlParser: import("@aws-sdk/types").UrlParser;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  streamCollector: import("@aws-sdk/types").StreamCollector;
13
13
  base64Decoder: import("@aws-sdk/types").Decoder;
14
14
  base64Encoder: import("@aws-sdk/types").Encoder;
@@ -21,12 +21,12 @@ export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig)
21
21
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
22
22
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
23
23
  serviceId: string;
24
- region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
24
+ region: string | import("@aws-sdk/types").Provider<any>;
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
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
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
30
30
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
31
31
  tls?: boolean | undefined;
32
32
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
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.53.0",
4
+ "version": "3.55.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,53 +19,53 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.53.0",
23
- "@aws-sdk/config-resolver": "3.53.0",
24
- "@aws-sdk/credential-provider-node": "3.53.0",
25
- "@aws-sdk/eventstream-handler-node": "3.53.0",
26
- "@aws-sdk/eventstream-serde-browser": "3.53.0",
27
- "@aws-sdk/eventstream-serde-config-resolver": "3.53.0",
28
- "@aws-sdk/eventstream-serde-node": "3.53.0",
29
- "@aws-sdk/fetch-http-handler": "3.53.0",
30
- "@aws-sdk/hash-node": "3.53.0",
31
- "@aws-sdk/invalid-dependency": "3.53.0",
32
- "@aws-sdk/middleware-content-length": "3.53.0",
33
- "@aws-sdk/middleware-eventstream": "3.53.0",
34
- "@aws-sdk/middleware-host-header": "3.53.0",
35
- "@aws-sdk/middleware-logger": "3.53.0",
36
- "@aws-sdk/middleware-retry": "3.53.0",
37
- "@aws-sdk/middleware-sdk-transcribe-streaming": "3.53.0",
38
- "@aws-sdk/middleware-serde": "3.53.0",
39
- "@aws-sdk/middleware-signing": "3.53.0",
40
- "@aws-sdk/middleware-stack": "3.53.0",
41
- "@aws-sdk/middleware-user-agent": "3.53.0",
42
- "@aws-sdk/node-config-provider": "3.53.0",
43
- "@aws-sdk/node-http-handler": "3.53.0",
44
- "@aws-sdk/protocol-http": "3.53.0",
45
- "@aws-sdk/smithy-client": "3.53.0",
46
- "@aws-sdk/types": "3.53.0",
47
- "@aws-sdk/url-parser": "3.53.0",
48
- "@aws-sdk/util-base64-browser": "3.52.0",
49
- "@aws-sdk/util-base64-node": "3.52.0",
50
- "@aws-sdk/util-body-length-browser": "3.52.0",
51
- "@aws-sdk/util-body-length-node": "3.52.0",
52
- "@aws-sdk/util-defaults-mode-browser": "3.53.0",
53
- "@aws-sdk/util-defaults-mode-node": "3.53.0",
54
- "@aws-sdk/util-user-agent-browser": "3.53.0",
55
- "@aws-sdk/util-user-agent-node": "3.53.0",
56
- "@aws-sdk/util-utf8-browser": "3.52.0",
57
- "@aws-sdk/util-utf8-node": "3.52.0",
58
- "tslib": "^2.3.0"
22
+ "@aws-sdk/client-sts": "3.55.0",
23
+ "@aws-sdk/config-resolver": "3.55.0",
24
+ "@aws-sdk/credential-provider-node": "3.55.0",
25
+ "@aws-sdk/eventstream-handler-node": "3.55.0",
26
+ "@aws-sdk/eventstream-serde-browser": "3.55.0",
27
+ "@aws-sdk/eventstream-serde-config-resolver": "3.55.0",
28
+ "@aws-sdk/eventstream-serde-node": "3.55.0",
29
+ "@aws-sdk/fetch-http-handler": "3.55.0",
30
+ "@aws-sdk/hash-node": "3.55.0",
31
+ "@aws-sdk/invalid-dependency": "3.55.0",
32
+ "@aws-sdk/middleware-content-length": "3.55.0",
33
+ "@aws-sdk/middleware-eventstream": "3.55.0",
34
+ "@aws-sdk/middleware-host-header": "3.55.0",
35
+ "@aws-sdk/middleware-logger": "3.55.0",
36
+ "@aws-sdk/middleware-retry": "3.55.0",
37
+ "@aws-sdk/middleware-sdk-transcribe-streaming": "3.55.0",
38
+ "@aws-sdk/middleware-serde": "3.55.0",
39
+ "@aws-sdk/middleware-signing": "3.55.0",
40
+ "@aws-sdk/middleware-stack": "3.55.0",
41
+ "@aws-sdk/middleware-user-agent": "3.55.0",
42
+ "@aws-sdk/node-config-provider": "3.55.0",
43
+ "@aws-sdk/node-http-handler": "3.55.0",
44
+ "@aws-sdk/protocol-http": "3.55.0",
45
+ "@aws-sdk/smithy-client": "3.55.0",
46
+ "@aws-sdk/types": "3.55.0",
47
+ "@aws-sdk/url-parser": "3.55.0",
48
+ "@aws-sdk/util-base64-browser": "3.55.0",
49
+ "@aws-sdk/util-base64-node": "3.55.0",
50
+ "@aws-sdk/util-body-length-browser": "3.55.0",
51
+ "@aws-sdk/util-body-length-node": "3.55.0",
52
+ "@aws-sdk/util-defaults-mode-browser": "3.55.0",
53
+ "@aws-sdk/util-defaults-mode-node": "3.55.0",
54
+ "@aws-sdk/util-user-agent-browser": "3.55.0",
55
+ "@aws-sdk/util-user-agent-node": "3.55.0",
56
+ "@aws-sdk/util-utf8-browser": "3.55.0",
57
+ "@aws-sdk/util-utf8-node": "3.55.0",
58
+ "tslib": "^2.3.1"
59
59
  },
60
60
  "devDependencies": {
61
- "@aws-sdk/service-client-documentation-generator": "3.52.0",
61
+ "@aws-sdk/service-client-documentation-generator": "3.55.0",
62
62
  "@tsconfig/recommended": "1.0.1",
63
63
  "@types/node": "^12.7.5",
64
64
  "concurrently": "7.0.0",
65
65
  "downlevel-dts": "0.7.0",
66
66
  "rimraf": "3.0.2",
67
67
  "typedoc": "0.19.2",
68
- "typescript": "~4.3.5"
68
+ "typescript": "~4.6.2"
69
69
  },
70
70
  "engines": {
71
71
  "node": ">=12.0.0"