@aws-sdk/client-transcribe-streaming 3.131.0 → 3.140.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.
@@ -35,7 +35,7 @@ const serializeAws_restJson1StartMedicalStreamTranscriptionCommand = async (inpu
35
35
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/medical-stream-transcription";
36
36
  let body;
37
37
  if (input.AudioStream !== undefined) {
38
- body = context.eventStreamMarshaller.serialize(input.AudioStream, (event) => serializeAws_restJson1AudioStream_event(event, context));
38
+ body = serializeAws_restJson1AudioStream(input.AudioStream, context);
39
39
  }
40
40
  return new protocol_http_1.HttpRequest({
41
41
  protocol,
@@ -112,7 +112,7 @@ const serializeAws_restJson1StartStreamTranscriptionCommand = async (input, cont
112
112
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/stream-transcription";
113
113
  let body;
114
114
  if (input.AudioStream !== undefined) {
115
- body = context.eventStreamMarshaller.serialize(input.AudioStream, (event) => serializeAws_restJson1AudioStream_event(event, context));
115
+ body = serializeAws_restJson1AudioStream(input.AudioStream, context);
116
116
  }
117
117
  return new protocol_http_1.HttpRequest({
118
118
  protocol,
@@ -181,22 +181,8 @@ const deserializeAws_restJson1StartMedicalStreamTranscriptionCommand = async (ou
181
181
  if (output.headers["x-amzn-transcribe-content-identification-type"] !== undefined) {
182
182
  contents.ContentIdentificationType = output.headers["x-amzn-transcribe-content-identification-type"];
183
183
  }
184
- const data = context.eventStreamMarshaller.deserialize(output.body, async (event) => {
185
- const eventName = Object.keys(event)[0];
186
- const eventHeaders = Object.entries(event[eventName].headers).reduce((accummulator, curr) => {
187
- accummulator[curr[0]] = curr[1].value;
188
- return accummulator;
189
- }, {});
190
- const eventMessage = {
191
- headers: eventHeaders,
192
- body: event[eventName].body,
193
- };
194
- const parsedEvent = {
195
- [eventName]: eventMessage,
196
- };
197
- return await deserializeAws_restJson1MedicalTranscriptResultStream_event(parsedEvent, context);
198
- });
199
- contents.TranscriptResultStream = data;
184
+ const data = output.body;
185
+ contents.TranscriptResultStream = deserializeAws_restJson1MedicalTranscriptResultStream(data, context);
200
186
  return Promise.resolve(contents);
201
187
  };
202
188
  exports.deserializeAws_restJson1StartMedicalStreamTranscriptionCommand = deserializeAws_restJson1StartMedicalStreamTranscriptionCommand;
@@ -331,22 +317,8 @@ const deserializeAws_restJson1StartStreamTranscriptionCommand = async (output, c
331
317
  if (output.headers["x-amzn-transcribe-vocabulary-filter-names"] !== undefined) {
332
318
  contents.VocabularyFilterNames = output.headers["x-amzn-transcribe-vocabulary-filter-names"];
333
319
  }
334
- const data = context.eventStreamMarshaller.deserialize(output.body, async (event) => {
335
- const eventName = Object.keys(event)[0];
336
- const eventHeaders = Object.entries(event[eventName].headers).reduce((accummulator, curr) => {
337
- accummulator[curr[0]] = curr[1].value;
338
- return accummulator;
339
- }, {});
340
- const eventMessage = {
341
- headers: eventHeaders,
342
- body: event[eventName].body,
343
- };
344
- const parsedEvent = {
345
- [eventName]: eventMessage,
346
- };
347
- return await deserializeAws_restJson1TranscriptResultStream_event(parsedEvent, context);
348
- });
349
- contents.TranscriptResultStream = data;
320
+ const data = output.body;
321
+ contents.TranscriptResultStream = deserializeAws_restJson1TranscriptResultStream(data, context);
350
322
  return Promise.resolve(contents);
351
323
  };
352
324
  exports.deserializeAws_restJson1StartStreamTranscriptionCommand = deserializeAws_restJson1StartStreamTranscriptionCommand;
@@ -385,143 +357,6 @@ const deserializeAws_restJson1StartStreamTranscriptionCommandError = async (outp
385
357
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
386
358
  }
387
359
  };
388
- const serializeAws_restJson1AudioStream_event = (input, context) => {
389
- return models_0_1.AudioStream.visit(input, {
390
- AudioEvent: (value) => serializeAws_restJson1AudioEvent_event(value, context),
391
- _: (value) => value,
392
- });
393
- };
394
- const deserializeAws_restJson1MedicalTranscriptResultStream_event = async (output, context) => {
395
- if (output["TranscriptEvent"] !== undefined) {
396
- return {
397
- TranscriptEvent: await deserializeAws_restJson1MedicalTranscriptEvent_event(output["TranscriptEvent"], context),
398
- };
399
- }
400
- if (output["BadRequestException"] !== undefined) {
401
- return {
402
- BadRequestException: await deserializeAws_restJson1BadRequestException_event(output["BadRequestException"], context),
403
- };
404
- }
405
- if (output["LimitExceededException"] !== undefined) {
406
- return {
407
- LimitExceededException: await deserializeAws_restJson1LimitExceededException_event(output["LimitExceededException"], context),
408
- };
409
- }
410
- if (output["InternalFailureException"] !== undefined) {
411
- return {
412
- InternalFailureException: await deserializeAws_restJson1InternalFailureException_event(output["InternalFailureException"], context),
413
- };
414
- }
415
- if (output["ConflictException"] !== undefined) {
416
- return {
417
- ConflictException: await deserializeAws_restJson1ConflictException_event(output["ConflictException"], context),
418
- };
419
- }
420
- if (output["ServiceUnavailableException"] !== undefined) {
421
- return {
422
- ServiceUnavailableException: await deserializeAws_restJson1ServiceUnavailableException_event(output["ServiceUnavailableException"], context),
423
- };
424
- }
425
- return { $unknown: output };
426
- };
427
- const deserializeAws_restJson1TranscriptResultStream_event = async (output, context) => {
428
- if (output["TranscriptEvent"] !== undefined) {
429
- return {
430
- TranscriptEvent: await deserializeAws_restJson1TranscriptEvent_event(output["TranscriptEvent"], context),
431
- };
432
- }
433
- if (output["BadRequestException"] !== undefined) {
434
- return {
435
- BadRequestException: await deserializeAws_restJson1BadRequestException_event(output["BadRequestException"], context),
436
- };
437
- }
438
- if (output["LimitExceededException"] !== undefined) {
439
- return {
440
- LimitExceededException: await deserializeAws_restJson1LimitExceededException_event(output["LimitExceededException"], context),
441
- };
442
- }
443
- if (output["InternalFailureException"] !== undefined) {
444
- return {
445
- InternalFailureException: await deserializeAws_restJson1InternalFailureException_event(output["InternalFailureException"], context),
446
- };
447
- }
448
- if (output["ConflictException"] !== undefined) {
449
- return {
450
- ConflictException: await deserializeAws_restJson1ConflictException_event(output["ConflictException"], context),
451
- };
452
- }
453
- if (output["ServiceUnavailableException"] !== undefined) {
454
- return {
455
- ServiceUnavailableException: await deserializeAws_restJson1ServiceUnavailableException_event(output["ServiceUnavailableException"], context),
456
- };
457
- }
458
- return { $unknown: output };
459
- };
460
- const serializeAws_restJson1AudioEvent_event = (input, context) => {
461
- const message = {
462
- headers: {
463
- ":event-type": { type: "string", value: "AudioEvent" },
464
- ":message-type": { type: "string", value: "event" },
465
- ":content-type": { type: "string", value: "application/octet-stream" },
466
- },
467
- body: new Uint8Array(),
468
- };
469
- message.body = input.AudioChunk || message.body;
470
- return message;
471
- };
472
- const deserializeAws_restJson1BadRequestException_event = async (output, context) => {
473
- const parsedOutput = {
474
- ...output,
475
- body: await parseBody(output.body, context),
476
- };
477
- return deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
478
- };
479
- const deserializeAws_restJson1ConflictException_event = async (output, context) => {
480
- const parsedOutput = {
481
- ...output,
482
- body: await parseBody(output.body, context),
483
- };
484
- return deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
485
- };
486
- const deserializeAws_restJson1InternalFailureException_event = async (output, context) => {
487
- const parsedOutput = {
488
- ...output,
489
- body: await parseBody(output.body, context),
490
- };
491
- return deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context);
492
- };
493
- const deserializeAws_restJson1LimitExceededException_event = async (output, context) => {
494
- const parsedOutput = {
495
- ...output,
496
- body: await parseBody(output.body, context),
497
- };
498
- return deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
499
- };
500
- const deserializeAws_restJson1MedicalTranscriptEvent_event = async (output, context) => {
501
- let contents = {};
502
- const data = await parseBody(output.body, context);
503
- contents = {
504
- ...contents,
505
- ...deserializeAws_restJson1MedicalTranscriptEvent(data, context),
506
- };
507
- return contents;
508
- };
509
- const deserializeAws_restJson1ServiceUnavailableException_event = async (output, context) => {
510
- const parsedOutput = {
511
- ...output,
512
- body: await parseBody(output.body, context),
513
- };
514
- return deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
515
- };
516
- const deserializeAws_restJson1TranscriptEvent_event = async (output, context) => {
517
- let contents = {};
518
- const data = await parseBody(output.body, context);
519
- contents = {
520
- ...contents,
521
- ...deserializeAws_restJson1TranscriptEvent(data, context),
522
- };
523
- return contents;
524
- };
525
360
  const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
526
361
  const contents = {};
527
362
  const data = parsedOutput.body;
@@ -582,17 +417,142 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
582
417
  });
583
418
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
584
419
  };
585
- const serializeAws_restJson1AudioEvent = (input, context) => {
586
- return {
587
- ...(input.AudioChunk != null && { AudioChunk: context.base64Encoder(input.AudioChunk) }),
420
+ const serializeAws_restJson1AudioStream = (input, context) => {
421
+ const eventMarshallingVisitor = (event) => models_0_1.AudioStream.visit(event, {
422
+ AudioEvent: (value) => serializeAws_restJson1AudioEvent_event(value, context),
423
+ _: (value) => value,
424
+ });
425
+ return context.eventStreamMarshaller.serialize(input, eventMarshallingVisitor);
426
+ };
427
+ const serializeAws_restJson1AudioEvent_event = (input, context) => {
428
+ const headers = {
429
+ ":event-type": { type: "string", value: "AudioEvent" },
430
+ ":message-type": { type: "string", value: "event" },
431
+ ":content-type": { type: "string", value: "application/octet-stream" },
588
432
  };
433
+ let body = new Uint8Array();
434
+ if (input.AudioChunk != null) {
435
+ body = input.AudioChunk;
436
+ }
437
+ return { headers, body };
589
438
  };
590
- const serializeAws_restJson1AudioStream = (input, context) => {
591
- return models_0_1.AudioStream.visit(input, {
592
- AudioEvent: (value) => ({ AudioEvent: serializeAws_restJson1AudioEvent(value, context) }),
593
- _: (name, value) => ({ name: value }),
439
+ const deserializeAws_restJson1MedicalTranscriptResultStream = (output, context) => {
440
+ return context.eventStreamMarshaller.deserialize(output, async (event) => {
441
+ if (event["TranscriptEvent"] != null) {
442
+ return {
443
+ TranscriptEvent: await deserializeAws_restJson1MedicalTranscriptEvent_event(event["TranscriptEvent"], context),
444
+ };
445
+ }
446
+ if (event["BadRequestException"] != null) {
447
+ return {
448
+ BadRequestException: await deserializeAws_restJson1BadRequestException_event(event["BadRequestException"], context),
449
+ };
450
+ }
451
+ if (event["LimitExceededException"] != null) {
452
+ return {
453
+ LimitExceededException: await deserializeAws_restJson1LimitExceededException_event(event["LimitExceededException"], context),
454
+ };
455
+ }
456
+ if (event["InternalFailureException"] != null) {
457
+ return {
458
+ InternalFailureException: await deserializeAws_restJson1InternalFailureException_event(event["InternalFailureException"], context),
459
+ };
460
+ }
461
+ if (event["ConflictException"] != null) {
462
+ return {
463
+ ConflictException: await deserializeAws_restJson1ConflictException_event(event["ConflictException"], context),
464
+ };
465
+ }
466
+ if (event["ServiceUnavailableException"] != null) {
467
+ return {
468
+ ServiceUnavailableException: await deserializeAws_restJson1ServiceUnavailableException_event(event["ServiceUnavailableException"], context),
469
+ };
470
+ }
471
+ return { $unknown: output };
594
472
  });
595
473
  };
474
+ const deserializeAws_restJson1TranscriptResultStream = (output, context) => {
475
+ return context.eventStreamMarshaller.deserialize(output, async (event) => {
476
+ if (event["TranscriptEvent"] != null) {
477
+ return {
478
+ TranscriptEvent: await deserializeAws_restJson1TranscriptEvent_event(event["TranscriptEvent"], context),
479
+ };
480
+ }
481
+ if (event["BadRequestException"] != null) {
482
+ return {
483
+ BadRequestException: await deserializeAws_restJson1BadRequestException_event(event["BadRequestException"], context),
484
+ };
485
+ }
486
+ if (event["LimitExceededException"] != null) {
487
+ return {
488
+ LimitExceededException: await deserializeAws_restJson1LimitExceededException_event(event["LimitExceededException"], context),
489
+ };
490
+ }
491
+ if (event["InternalFailureException"] != null) {
492
+ return {
493
+ InternalFailureException: await deserializeAws_restJson1InternalFailureException_event(event["InternalFailureException"], context),
494
+ };
495
+ }
496
+ if (event["ConflictException"] != null) {
497
+ return {
498
+ ConflictException: await deserializeAws_restJson1ConflictException_event(event["ConflictException"], context),
499
+ };
500
+ }
501
+ if (event["ServiceUnavailableException"] != null) {
502
+ return {
503
+ ServiceUnavailableException: await deserializeAws_restJson1ServiceUnavailableException_event(event["ServiceUnavailableException"], context),
504
+ };
505
+ }
506
+ return { $unknown: output };
507
+ });
508
+ };
509
+ const deserializeAws_restJson1BadRequestException_event = async (output, context) => {
510
+ const parsedOutput = {
511
+ ...output,
512
+ body: await parseBody(output.body, context),
513
+ };
514
+ return deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
515
+ };
516
+ const deserializeAws_restJson1ConflictException_event = async (output, context) => {
517
+ const parsedOutput = {
518
+ ...output,
519
+ body: await parseBody(output.body, context),
520
+ };
521
+ return deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
522
+ };
523
+ const deserializeAws_restJson1InternalFailureException_event = async (output, context) => {
524
+ const parsedOutput = {
525
+ ...output,
526
+ body: await parseBody(output.body, context),
527
+ };
528
+ return deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context);
529
+ };
530
+ const deserializeAws_restJson1LimitExceededException_event = async (output, context) => {
531
+ const parsedOutput = {
532
+ ...output,
533
+ body: await parseBody(output.body, context),
534
+ };
535
+ return deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
536
+ };
537
+ const deserializeAws_restJson1MedicalTranscriptEvent_event = async (output, context) => {
538
+ const contents = {};
539
+ const data = await parseBody(output.body, context);
540
+ Object.assign(contents, deserializeAws_restJson1MedicalTranscriptEvent(data, context));
541
+ return contents;
542
+ };
543
+ const deserializeAws_restJson1ServiceUnavailableException_event = async (output, context) => {
544
+ const parsedOutput = {
545
+ ...output,
546
+ body: await parseBody(output.body, context),
547
+ };
548
+ return deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
549
+ };
550
+ const deserializeAws_restJson1TranscriptEvent_event = async (output, context) => {
551
+ const contents = {};
552
+ const data = await parseBody(output.body, context);
553
+ Object.assign(contents, deserializeAws_restJson1TranscriptEvent(data, context));
554
+ return contents;
555
+ };
596
556
  const deserializeAws_restJson1Alternative = (output, context) => {
597
557
  return {
598
558
  Entities: output.Entities != null ? deserializeAws_restJson1EntityList(output.Entities, context) : undefined,
@@ -611,16 +571,6 @@ const deserializeAws_restJson1AlternativeList = (output, context) => {
611
571
  });
612
572
  return retVal;
613
573
  };
614
- const deserializeAws_restJson1BadRequestException = (output, context) => {
615
- return {
616
- Message: (0, smithy_client_1.expectString)(output.Message),
617
- };
618
- };
619
- const deserializeAws_restJson1ConflictException = (output, context) => {
620
- return {
621
- Message: (0, smithy_client_1.expectString)(output.Message),
622
- };
623
- };
624
574
  const deserializeAws_restJson1Entity = (output, context) => {
625
575
  return {
626
576
  Category: (0, smithy_client_1.expectString)(output.Category),
@@ -642,11 +592,6 @@ const deserializeAws_restJson1EntityList = (output, context) => {
642
592
  });
643
593
  return retVal;
644
594
  };
645
- const deserializeAws_restJson1InternalFailureException = (output, context) => {
646
- return {
647
- Message: (0, smithy_client_1.expectString)(output.Message),
648
- };
649
- };
650
595
  const deserializeAws_restJson1Item = (output, context) => {
651
596
  return {
652
597
  Confidence: (0, smithy_client_1.limitedParseDouble)(output.Confidence),
@@ -687,11 +632,6 @@ const deserializeAws_restJson1LanguageWithScore = (output, context) => {
687
632
  Score: (0, smithy_client_1.limitedParseDouble)(output.Score),
688
633
  };
689
634
  };
690
- const deserializeAws_restJson1LimitExceededException = (output, context) => {
691
- return {
692
- Message: (0, smithy_client_1.expectString)(output.Message),
693
- };
694
- };
695
635
  const deserializeAws_restJson1MedicalAlternative = (output, context) => {
696
636
  return {
697
637
  Entities: output.Entities != null ? deserializeAws_restJson1MedicalEntityList(output.Entities, context) : undefined,
@@ -784,39 +724,6 @@ const deserializeAws_restJson1MedicalTranscriptEvent = (output, context) => {
784
724
  Transcript: output.Transcript != null ? deserializeAws_restJson1MedicalTranscript(output.Transcript, context) : undefined,
785
725
  };
786
726
  };
787
- const deserializeAws_restJson1MedicalTranscriptResultStream = (output, context) => {
788
- if (output.BadRequestException !== undefined && output.BadRequestException !== null) {
789
- return {
790
- BadRequestException: deserializeAws_restJson1BadRequestException(output.BadRequestException, context),
791
- };
792
- }
793
- if (output.ConflictException !== undefined && output.ConflictException !== null) {
794
- return {
795
- ConflictException: deserializeAws_restJson1ConflictException(output.ConflictException, context),
796
- };
797
- }
798
- if (output.InternalFailureException !== undefined && output.InternalFailureException !== null) {
799
- return {
800
- InternalFailureException: deserializeAws_restJson1InternalFailureException(output.InternalFailureException, context),
801
- };
802
- }
803
- if (output.LimitExceededException !== undefined && output.LimitExceededException !== null) {
804
- return {
805
- LimitExceededException: deserializeAws_restJson1LimitExceededException(output.LimitExceededException, context),
806
- };
807
- }
808
- if (output.ServiceUnavailableException !== undefined && output.ServiceUnavailableException !== null) {
809
- return {
810
- ServiceUnavailableException: deserializeAws_restJson1ServiceUnavailableException(output.ServiceUnavailableException, context),
811
- };
812
- }
813
- if (output.TranscriptEvent !== undefined && output.TranscriptEvent !== null) {
814
- return {
815
- TranscriptEvent: deserializeAws_restJson1MedicalTranscriptEvent(output.TranscriptEvent, context),
816
- };
817
- }
818
- return { $unknown: Object.entries(output)[0] };
819
- };
820
727
  const deserializeAws_restJson1Result = (output, context) => {
821
728
  return {
822
729
  Alternatives: output.Alternatives != null ? deserializeAws_restJson1AlternativeList(output.Alternatives, context) : undefined,
@@ -842,11 +749,6 @@ const deserializeAws_restJson1ResultList = (output, context) => {
842
749
  });
843
750
  return retVal;
844
751
  };
845
- const deserializeAws_restJson1ServiceUnavailableException = (output, context) => {
846
- return {
847
- Message: (0, smithy_client_1.expectString)(output.Message),
848
- };
849
- };
850
752
  const deserializeAws_restJson1Transcript = (output, context) => {
851
753
  return {
852
754
  Results: output.Results != null ? deserializeAws_restJson1ResultList(output.Results, context) : undefined,
@@ -857,39 +759,6 @@ const deserializeAws_restJson1TranscriptEvent = (output, context) => {
857
759
  Transcript: output.Transcript != null ? deserializeAws_restJson1Transcript(output.Transcript, context) : undefined,
858
760
  };
859
761
  };
860
- const deserializeAws_restJson1TranscriptResultStream = (output, context) => {
861
- if (output.BadRequestException !== undefined && output.BadRequestException !== null) {
862
- return {
863
- BadRequestException: deserializeAws_restJson1BadRequestException(output.BadRequestException, context),
864
- };
865
- }
866
- if (output.ConflictException !== undefined && output.ConflictException !== null) {
867
- return {
868
- ConflictException: deserializeAws_restJson1ConflictException(output.ConflictException, context),
869
- };
870
- }
871
- if (output.InternalFailureException !== undefined && output.InternalFailureException !== null) {
872
- return {
873
- InternalFailureException: deserializeAws_restJson1InternalFailureException(output.InternalFailureException, context),
874
- };
875
- }
876
- if (output.LimitExceededException !== undefined && output.LimitExceededException !== null) {
877
- return {
878
- LimitExceededException: deserializeAws_restJson1LimitExceededException(output.LimitExceededException, context),
879
- };
880
- }
881
- if (output.ServiceUnavailableException !== undefined && output.ServiceUnavailableException !== null) {
882
- return {
883
- ServiceUnavailableException: deserializeAws_restJson1ServiceUnavailableException(output.ServiceUnavailableException, context),
884
- };
885
- }
886
- if (output.TranscriptEvent !== undefined && output.TranscriptEvent !== null) {
887
- return {
888
- TranscriptEvent: deserializeAws_restJson1TranscriptEvent(output.TranscriptEvent, context),
889
- };
890
- }
891
- return { $unknown: Object.entries(output)[0] };
892
- };
893
762
  const deserializeMetadata = (output) => {
894
763
  var _a;
895
764
  return ({
@@ -40,7 +40,7 @@ const getRuntimeConfig = (config) => {
40
40
  eventStreamSerdeProvider: (_g = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _g !== void 0 ? _g : eventstream_serde_node_1.eventStreamSerdeProvider,
41
41
  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),
42
42
  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),
43
- requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new node_http_handler_1.NodeHttp2Handler({ disableConcurrentStreams: true }),
43
+ requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new node_http_handler_1.NodeHttp2Handler(async () => ({ ...(await defaultConfigProvider()), disableConcurrentStreams: true })),
44
44
  retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : (0, node_config_provider_1.loadConfig)({
45
45
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
46
46
  default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
@@ -2,7 +2,7 @@ import { __extends } from "tslib";
2
2
  import { getEventStreamPlugin } from "@aws-sdk/middleware-eventstream";
3
3
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
4
  import { Command as $Command } from "@aws-sdk/smithy-client";
5
- import { StartMedicalStreamTranscriptionRequest, StartMedicalStreamTranscriptionResponse } from "../models/models_0";
5
+ import { StartMedicalStreamTranscriptionRequestFilterSensitiveLog, StartMedicalStreamTranscriptionResponseFilterSensitiveLog, } from "../models/models_0";
6
6
  import { deserializeAws_restJson1StartMedicalStreamTranscriptionCommand, serializeAws_restJson1StartMedicalStreamTranscriptionCommand, } from "../protocols/Aws_restJson1";
7
7
  var StartMedicalStreamTranscriptionCommand = (function (_super) {
8
8
  __extends(StartMedicalStreamTranscriptionCommand, _super);
@@ -22,8 +22,8 @@ var StartMedicalStreamTranscriptionCommand = (function (_super) {
22
22
  logger: logger,
23
23
  clientName: clientName,
24
24
  commandName: commandName,
25
- inputFilterSensitiveLog: StartMedicalStreamTranscriptionRequest.filterSensitiveLog,
26
- outputFilterSensitiveLog: StartMedicalStreamTranscriptionResponse.filterSensitiveLog,
25
+ inputFilterSensitiveLog: StartMedicalStreamTranscriptionRequestFilterSensitiveLog,
26
+ outputFilterSensitiveLog: StartMedicalStreamTranscriptionResponseFilterSensitiveLog,
27
27
  };
28
28
  var requestHandler = configuration.requestHandler;
29
29
  return stack.resolve(function (request) {
@@ -2,7 +2,7 @@ import { __extends } from "tslib";
2
2
  import { getEventStreamPlugin } from "@aws-sdk/middleware-eventstream";
3
3
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
4
  import { Command as $Command } from "@aws-sdk/smithy-client";
5
- import { StartStreamTranscriptionRequest, StartStreamTranscriptionResponse } from "../models/models_0";
5
+ import { StartStreamTranscriptionRequestFilterSensitiveLog, StartStreamTranscriptionResponseFilterSensitiveLog, } from "../models/models_0";
6
6
  import { deserializeAws_restJson1StartStreamTranscriptionCommand, serializeAws_restJson1StartStreamTranscriptionCommand, } from "../protocols/Aws_restJson1";
7
7
  var StartStreamTranscriptionCommand = (function (_super) {
8
8
  __extends(StartStreamTranscriptionCommand, _super);
@@ -22,8 +22,8 @@ var StartStreamTranscriptionCommand = (function (_super) {
22
22
  logger: logger,
23
23
  clientName: clientName,
24
24
  commandName: commandName,
25
- inputFilterSensitiveLog: StartStreamTranscriptionRequest.filterSensitiveLog,
26
- outputFilterSensitiveLog: StartStreamTranscriptionResponse.filterSensitiveLog,
25
+ inputFilterSensitiveLog: StartStreamTranscriptionRequestFilterSensitiveLog,
26
+ outputFilterSensitiveLog: StartStreamTranscriptionResponseFilterSensitiveLog,
27
27
  };
28
28
  var requestHandler = configuration.requestHandler;
29
29
  return stack.resolve(function (request) {