@aws-sdk/client-transcribe-streaming 3.734.0 → 3.741.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -27,26 +27,43 @@ __export(src_exports, {
27
27
  CallAnalyticsLanguageCode: () => CallAnalyticsLanguageCode,
28
28
  CallAnalyticsTranscriptResultStream: () => CallAnalyticsTranscriptResultStream,
29
29
  CallAnalyticsTranscriptResultStreamFilterSensitiveLog: () => CallAnalyticsTranscriptResultStreamFilterSensitiveLog,
30
+ ClinicalNoteGenerationStatus: () => ClinicalNoteGenerationStatus,
30
31
  ConflictException: () => ConflictException,
31
32
  ContentIdentificationType: () => ContentIdentificationType,
32
33
  ContentRedactionOutput: () => ContentRedactionOutput,
33
34
  ContentRedactionType: () => ContentRedactionType,
35
+ GetMedicalScribeStreamCommand: () => GetMedicalScribeStreamCommand,
34
36
  InternalFailureException: () => InternalFailureException,
35
37
  ItemType: () => ItemType,
36
38
  LanguageCode: () => LanguageCode,
37
39
  LimitExceededException: () => LimitExceededException,
38
40
  MediaEncoding: () => MediaEncoding,
39
41
  MedicalContentIdentificationType: () => MedicalContentIdentificationType,
42
+ MedicalScribeInputStream: () => MedicalScribeInputStream,
43
+ MedicalScribeInputStreamFilterSensitiveLog: () => MedicalScribeInputStreamFilterSensitiveLog,
44
+ MedicalScribeLanguageCode: () => MedicalScribeLanguageCode,
45
+ MedicalScribeMediaEncoding: () => MedicalScribeMediaEncoding,
46
+ MedicalScribeParticipantRole: () => MedicalScribeParticipantRole,
47
+ MedicalScribeResultStream: () => MedicalScribeResultStream,
48
+ MedicalScribeResultStreamFilterSensitiveLog: () => MedicalScribeResultStreamFilterSensitiveLog,
49
+ MedicalScribeSessionControlEventType: () => MedicalScribeSessionControlEventType,
50
+ MedicalScribeStreamStatus: () => MedicalScribeStreamStatus,
51
+ MedicalScribeTranscriptItemType: () => MedicalScribeTranscriptItemType,
52
+ MedicalScribeVocabularyFilterMethod: () => MedicalScribeVocabularyFilterMethod,
40
53
  MedicalTranscriptResultStream: () => MedicalTranscriptResultStream,
41
54
  MedicalTranscriptResultStreamFilterSensitiveLog: () => MedicalTranscriptResultStreamFilterSensitiveLog,
42
55
  PartialResultsStability: () => PartialResultsStability,
43
56
  ParticipantRole: () => ParticipantRole,
57
+ ResourceNotFoundException: () => ResourceNotFoundException,
44
58
  Sentiment: () => Sentiment,
45
59
  ServiceUnavailableException: () => ServiceUnavailableException,
46
60
  Specialty: () => Specialty,
47
61
  StartCallAnalyticsStreamTranscriptionCommand: () => StartCallAnalyticsStreamTranscriptionCommand,
48
62
  StartCallAnalyticsStreamTranscriptionRequestFilterSensitiveLog: () => StartCallAnalyticsStreamTranscriptionRequestFilterSensitiveLog,
49
63
  StartCallAnalyticsStreamTranscriptionResponseFilterSensitiveLog: () => StartCallAnalyticsStreamTranscriptionResponseFilterSensitiveLog,
64
+ StartMedicalScribeStreamCommand: () => StartMedicalScribeStreamCommand,
65
+ StartMedicalScribeStreamRequestFilterSensitiveLog: () => StartMedicalScribeStreamRequestFilterSensitiveLog,
66
+ StartMedicalScribeStreamResponseFilterSensitiveLog: () => StartMedicalScribeStreamResponseFilterSensitiveLog,
50
67
  StartMedicalStreamTranscriptionCommand: () => StartMedicalStreamTranscriptionCommand,
51
68
  StartMedicalStreamTranscriptionRequestFilterSensitiveLog: () => StartMedicalStreamTranscriptionRequestFilterSensitiveLog,
52
69
  StartMedicalStreamTranscriptionResponseFilterSensitiveLog: () => StartMedicalStreamTranscriptionResponseFilterSensitiveLog,
@@ -215,12 +232,14 @@ var TranscribeStreamingClient = class extends import_smithy_client.Client {
215
232
  // src/TranscribeStreaming.ts
216
233
 
217
234
 
218
- // src/commands/StartCallAnalyticsStreamTranscriptionCommand.ts
235
+ // src/commands/GetMedicalScribeStreamCommand.ts
219
236
 
220
- var import_middleware_sdk_transcribe_streaming = require("@aws-sdk/middleware-sdk-transcribe-streaming");
237
+ var import_middleware_serde = require("@smithy/middleware-serde");
221
238
 
222
239
 
223
- var import_middleware_serde = require("@smithy/middleware-serde");
240
+ // src/protocols/Aws_restJson1.ts
241
+ var import_core2 = require("@aws-sdk/core");
242
+
224
243
 
225
244
 
226
245
  // src/models/TranscribeStreamingServiceException.ts
@@ -398,12 +417,60 @@ var CallAnalyticsTranscriptResultStream;
398
417
  return visitor._(value.$unknown[0], value.$unknown[1]);
399
418
  }, "visit");
400
419
  })(CallAnalyticsTranscriptResultStream || (CallAnalyticsTranscriptResultStream = {}));
420
+ var ClinicalNoteGenerationStatus = {
421
+ COMPLETED: "COMPLETED",
422
+ FAILED: "FAILED",
423
+ IN_PROGRESS: "IN_PROGRESS"
424
+ };
401
425
  var ContentIdentificationType = {
402
426
  PII: "PII"
403
427
  };
404
428
  var ContentRedactionType = {
405
429
  PII: "PII"
406
430
  };
431
+ var MedicalScribeParticipantRole = {
432
+ CLINICIAN: "CLINICIAN",
433
+ PATIENT: "PATIENT"
434
+ };
435
+ var MedicalScribeLanguageCode = {
436
+ EN_US: "en-US"
437
+ };
438
+ var MedicalScribeMediaEncoding = {
439
+ FLAC: "flac",
440
+ OGG_OPUS: "ogg-opus",
441
+ PCM: "pcm"
442
+ };
443
+ var MedicalScribeStreamStatus = {
444
+ COMPLETED: "COMPLETED",
445
+ FAILED: "FAILED",
446
+ IN_PROGRESS: "IN_PROGRESS",
447
+ PAUSED: "PAUSED"
448
+ };
449
+ var MedicalScribeVocabularyFilterMethod = {
450
+ MASK: "mask",
451
+ REMOVE: "remove",
452
+ TAG: "tag"
453
+ };
454
+ var ResourceNotFoundException = class _ResourceNotFoundException extends TranscribeStreamingServiceException {
455
+ static {
456
+ __name(this, "ResourceNotFoundException");
457
+ }
458
+ name = "ResourceNotFoundException";
459
+ $fault = "client";
460
+ Message;
461
+ /**
462
+ * @internal
463
+ */
464
+ constructor(opts) {
465
+ super({
466
+ name: "ResourceNotFoundException",
467
+ $fault: "client",
468
+ ...opts
469
+ });
470
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
471
+ this.Message = opts.Message;
472
+ }
473
+ };
407
474
  var LanguageCode = {
408
475
  AF_ZA: "af-ZA",
409
476
  AR_AE: "ar-AE",
@@ -468,6 +535,43 @@ var MediaEncoding = {
468
535
  var MedicalContentIdentificationType = {
469
536
  PHI: "PHI"
470
537
  };
538
+ var MedicalScribeSessionControlEventType = {
539
+ END_OF_SESSION: "END_OF_SESSION"
540
+ };
541
+ var MedicalScribeInputStream;
542
+ ((MedicalScribeInputStream2) => {
543
+ MedicalScribeInputStream2.visit = /* @__PURE__ */ __name((value, visitor) => {
544
+ if (value.AudioEvent !== void 0)
545
+ return visitor.AudioEvent(value.AudioEvent);
546
+ if (value.SessionControlEvent !== void 0)
547
+ return visitor.SessionControlEvent(value.SessionControlEvent);
548
+ if (value.ConfigurationEvent !== void 0)
549
+ return visitor.ConfigurationEvent(value.ConfigurationEvent);
550
+ return visitor._(value.$unknown[0], value.$unknown[1]);
551
+ }, "visit");
552
+ })(MedicalScribeInputStream || (MedicalScribeInputStream = {}));
553
+ var MedicalScribeTranscriptItemType = {
554
+ PRONUNCIATION: "pronunciation",
555
+ PUNCTUATION: "punctuation"
556
+ };
557
+ var MedicalScribeResultStream;
558
+ ((MedicalScribeResultStream3) => {
559
+ MedicalScribeResultStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
560
+ if (value.TranscriptEvent !== void 0)
561
+ return visitor.TranscriptEvent(value.TranscriptEvent);
562
+ if (value.BadRequestException !== void 0)
563
+ return visitor.BadRequestException(value.BadRequestException);
564
+ if (value.LimitExceededException !== void 0)
565
+ return visitor.LimitExceededException(value.LimitExceededException);
566
+ if (value.InternalFailureException !== void 0)
567
+ return visitor.InternalFailureException(value.InternalFailureException);
568
+ if (value.ConflictException !== void 0)
569
+ return visitor.ConflictException(value.ConflictException);
570
+ if (value.ServiceUnavailableException !== void 0)
571
+ return visitor.ServiceUnavailableException(value.ServiceUnavailableException);
572
+ return visitor._(value.$unknown[0], value.$unknown[1]);
573
+ }, "visit");
574
+ })(MedicalScribeResultStream || (MedicalScribeResultStream = {}));
471
575
  var MedicalTranscriptResultStream;
472
576
  ((MedicalTranscriptResultStream3) => {
473
577
  MedicalTranscriptResultStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
@@ -552,6 +656,32 @@ var CallAnalyticsTranscriptResultStreamFilterSensitiveLog = /* @__PURE__ */ __na
552
656
  if (obj.$unknown !== void 0)
553
657
  return { [obj.$unknown[0]]: "UNKNOWN" };
554
658
  }, "CallAnalyticsTranscriptResultStreamFilterSensitiveLog");
659
+ var MedicalScribeInputStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
660
+ if (obj.AudioEvent !== void 0)
661
+ return { AudioEvent: obj.AudioEvent };
662
+ if (obj.SessionControlEvent !== void 0)
663
+ return { SessionControlEvent: obj.SessionControlEvent };
664
+ if (obj.ConfigurationEvent !== void 0)
665
+ return { ConfigurationEvent: obj.ConfigurationEvent };
666
+ if (obj.$unknown !== void 0)
667
+ return { [obj.$unknown[0]]: "UNKNOWN" };
668
+ }, "MedicalScribeInputStreamFilterSensitiveLog");
669
+ var MedicalScribeResultStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
670
+ if (obj.TranscriptEvent !== void 0)
671
+ return { TranscriptEvent: obj.TranscriptEvent };
672
+ if (obj.BadRequestException !== void 0)
673
+ return { BadRequestException: obj.BadRequestException };
674
+ if (obj.LimitExceededException !== void 0)
675
+ return { LimitExceededException: obj.LimitExceededException };
676
+ if (obj.InternalFailureException !== void 0)
677
+ return { InternalFailureException: obj.InternalFailureException };
678
+ if (obj.ConflictException !== void 0)
679
+ return { ConflictException: obj.ConflictException };
680
+ if (obj.ServiceUnavailableException !== void 0)
681
+ return { ServiceUnavailableException: obj.ServiceUnavailableException };
682
+ if (obj.$unknown !== void 0)
683
+ return { [obj.$unknown[0]]: "UNKNOWN" };
684
+ }, "MedicalScribeResultStreamFilterSensitiveLog");
555
685
  var MedicalTranscriptResultStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
556
686
  if (obj.TranscriptEvent !== void 0)
557
687
  return { TranscriptEvent: obj.TranscriptEvent };
@@ -576,6 +706,14 @@ var StartCallAnalyticsStreamTranscriptionResponseFilterSensitiveLog = /* @__PURE
576
706
  ...obj,
577
707
  ...obj.CallAnalyticsTranscriptResultStream && { CallAnalyticsTranscriptResultStream: "STREAMING_CONTENT" }
578
708
  }), "StartCallAnalyticsStreamTranscriptionResponseFilterSensitiveLog");
709
+ var StartMedicalScribeStreamRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
710
+ ...obj,
711
+ ...obj.InputStream && { InputStream: "STREAMING_CONTENT" }
712
+ }), "StartMedicalScribeStreamRequestFilterSensitiveLog");
713
+ var StartMedicalScribeStreamResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
714
+ ...obj,
715
+ ...obj.ResultStream && { ResultStream: "STREAMING_CONTENT" }
716
+ }), "StartMedicalScribeStreamResponseFilterSensitiveLog");
579
717
  var StartMedicalStreamTranscriptionRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
580
718
  ...obj,
581
719
  ...obj.AudioStream && { AudioStream: "STREAMING_CONTENT" }
@@ -610,9 +748,15 @@ var StartStreamTranscriptionResponseFilterSensitiveLog = /* @__PURE__ */ __name(
610
748
  }), "StartStreamTranscriptionResponseFilterSensitiveLog");
611
749
 
612
750
  // src/protocols/Aws_restJson1.ts
613
- var import_core2 = require("@aws-sdk/core");
614
-
615
-
751
+ var se_GetMedicalScribeStreamCommand = /* @__PURE__ */ __name(async (input, context) => {
752
+ const b = (0, import_core.requestBuilder)(input, context);
753
+ const headers = {};
754
+ b.bp("/medical-scribe-stream/{SessionId}");
755
+ b.p("SessionId", () => input.SessionId, "{SessionId}", false);
756
+ let body;
757
+ b.m("GET").h(headers).b(body);
758
+ return b.build();
759
+ }, "se_GetMedicalScribeStreamCommand");
616
760
  var se_StartCallAnalyticsStreamTranscriptionCommand = /* @__PURE__ */ __name(async (input, context) => {
617
761
  const b = (0, import_core.requestBuilder)(input, context);
618
762
  const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
@@ -639,6 +783,23 @@ var se_StartCallAnalyticsStreamTranscriptionCommand = /* @__PURE__ */ __name(asy
639
783
  b.m("POST").h(headers).b(body);
640
784
  return b.build();
641
785
  }, "se_StartCallAnalyticsStreamTranscriptionCommand");
786
+ var se_StartMedicalScribeStreamCommand = /* @__PURE__ */ __name(async (input, context) => {
787
+ const b = (0, import_core.requestBuilder)(input, context);
788
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
789
+ "content-type": "application/json",
790
+ [_xatsi]: input[_SI],
791
+ [_xatlc]: input[_LC],
792
+ [_xatsr]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_MSRH]), () => input[_MSRH].toString()],
793
+ [_xatme]: input[_ME]
794
+ });
795
+ b.bp("/medical-scribe-stream");
796
+ let body;
797
+ if (input.InputStream !== void 0) {
798
+ body = se_MedicalScribeInputStream(input.InputStream, context);
799
+ }
800
+ b.m("POST").h(headers).b(body);
801
+ return b.build();
802
+ }, "se_StartMedicalScribeStreamCommand");
642
803
  var se_StartMedicalStreamTranscriptionCommand = /* @__PURE__ */ __name(async (input, context) => {
643
804
  const b = (0, import_core.requestBuilder)(input, context);
644
805
  const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
@@ -698,6 +859,20 @@ var se_StartStreamTranscriptionCommand = /* @__PURE__ */ __name(async (input, co
698
859
  b.m("POST").h(headers).b(body);
699
860
  return b.build();
700
861
  }, "se_StartStreamTranscriptionCommand");
862
+ var de_GetMedicalScribeStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
863
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
864
+ return de_CommandError(output, context);
865
+ }
866
+ const contents = (0, import_smithy_client.map)({
867
+ $metadata: deserializeMetadata(output)
868
+ });
869
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
870
+ const doc = (0, import_smithy_client.take)(data, {
871
+ MedicalScribeStreamDetails: (_) => de_MedicalScribeStreamDetails(_, context)
872
+ });
873
+ Object.assign(contents, doc);
874
+ return contents;
875
+ }, "de_GetMedicalScribeStreamCommand");
701
876
  var de_StartCallAnalyticsStreamTranscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
702
877
  if (output.statusCode !== 200 && output.statusCode >= 300) {
703
878
  return de_CommandError(output, context);
@@ -723,6 +898,22 @@ var de_StartCallAnalyticsStreamTranscriptionCommand = /* @__PURE__ */ __name(asy
723
898
  contents.CallAnalyticsTranscriptResultStream = de_CallAnalyticsTranscriptResultStream(data, context);
724
899
  return contents;
725
900
  }, "de_StartCallAnalyticsStreamTranscriptionCommand");
901
+ var de_StartMedicalScribeStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
902
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
903
+ return de_CommandError(output, context);
904
+ }
905
+ const contents = (0, import_smithy_client.map)({
906
+ $metadata: deserializeMetadata(output),
907
+ [_SI]: [, output.headers[_xatsi]],
908
+ [_RI]: [, output.headers[_xari]],
909
+ [_LC]: [, output.headers[_xatlc]],
910
+ [_MSRH]: [() => void 0 !== output.headers[_xatsr], () => (0, import_smithy_client.strictParseInt32)(output.headers[_xatsr])],
911
+ [_ME]: [, output.headers[_xatme]]
912
+ });
913
+ const data = output.body;
914
+ contents.ResultStream = de_MedicalScribeResultStream(data, context);
915
+ return contents;
916
+ }, "de_StartMedicalScribeStreamCommand");
726
917
  var de_StartMedicalStreamTranscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
727
918
  if (output.statusCode !== 200 && output.statusCode >= 300) {
728
919
  return de_CommandError(output, context);
@@ -790,15 +981,18 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
790
981
  case "BadRequestException":
791
982
  case "com.amazonaws.transcribestreaming#BadRequestException":
792
983
  throw await de_BadRequestExceptionRes(parsedOutput, context);
793
- case "ConflictException":
794
- case "com.amazonaws.transcribestreaming#ConflictException":
795
- throw await de_ConflictExceptionRes(parsedOutput, context);
796
984
  case "InternalFailureException":
797
985
  case "com.amazonaws.transcribestreaming#InternalFailureException":
798
986
  throw await de_InternalFailureExceptionRes(parsedOutput, context);
799
987
  case "LimitExceededException":
800
988
  case "com.amazonaws.transcribestreaming#LimitExceededException":
801
989
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
990
+ case "ResourceNotFoundException":
991
+ case "com.amazonaws.transcribestreaming#ResourceNotFoundException":
992
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
993
+ case "ConflictException":
994
+ case "com.amazonaws.transcribestreaming#ConflictException":
995
+ throw await de_ConflictExceptionRes(parsedOutput, context);
802
996
  case "ServiceUnavailableException":
803
997
  case "com.amazonaws.transcribestreaming#ServiceUnavailableException":
804
998
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
@@ -864,6 +1058,19 @@ var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, c
864
1058
  });
865
1059
  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
866
1060
  }, "de_LimitExceededExceptionRes");
1061
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1062
+ const contents = (0, import_smithy_client.map)({});
1063
+ const data = parsedOutput.body;
1064
+ const doc = (0, import_smithy_client.take)(data, {
1065
+ Message: import_smithy_client.expectString
1066
+ });
1067
+ Object.assign(contents, doc);
1068
+ const exception = new ResourceNotFoundException({
1069
+ $metadata: deserializeMetadata(parsedOutput),
1070
+ ...contents
1071
+ });
1072
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1073
+ }, "de_ResourceNotFoundExceptionRes");
867
1074
  var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
868
1075
  const contents = (0, import_smithy_client.map)({});
869
1076
  const data = parsedOutput.body;
@@ -885,6 +1092,15 @@ var se_AudioStream = /* @__PURE__ */ __name((input, context) => {
885
1092
  }), "eventMarshallingVisitor");
886
1093
  return context.eventStreamMarshaller.serialize(input, eventMarshallingVisitor);
887
1094
  }, "se_AudioStream");
1095
+ var se_MedicalScribeInputStream = /* @__PURE__ */ __name((input, context) => {
1096
+ const eventMarshallingVisitor = /* @__PURE__ */ __name((event) => MedicalScribeInputStream.visit(event, {
1097
+ AudioEvent: (value) => se_MedicalScribeAudioEvent_event(value, context),
1098
+ SessionControlEvent: (value) => se_MedicalScribeSessionControlEvent_event(value, context),
1099
+ ConfigurationEvent: (value) => se_MedicalScribeConfigurationEvent_event(value, context),
1100
+ _: (value) => value
1101
+ }), "eventMarshallingVisitor");
1102
+ return context.eventStreamMarshaller.serialize(input, eventMarshallingVisitor);
1103
+ }, "se_MedicalScribeInputStream");
888
1104
  var se_AudioEvent_event = /* @__PURE__ */ __name((input, context) => {
889
1105
  const headers = {
890
1106
  ":event-type": { type: "string", value: "AudioEvent" },
@@ -908,6 +1124,40 @@ var se_ConfigurationEvent_event = /* @__PURE__ */ __name((input, context) => {
908
1124
  body = context.utf8Decoder(JSON.stringify(body));
909
1125
  return { headers, body };
910
1126
  }, "se_ConfigurationEvent_event");
1127
+ var se_MedicalScribeAudioEvent_event = /* @__PURE__ */ __name((input, context) => {
1128
+ const headers = {
1129
+ ":event-type": { type: "string", value: "AudioEvent" },
1130
+ ":message-type": { type: "string", value: "event" },
1131
+ ":content-type": { type: "string", value: "application/octet-stream" }
1132
+ };
1133
+ let body = new Uint8Array();
1134
+ if (input.AudioChunk != null) {
1135
+ body = input.AudioChunk;
1136
+ }
1137
+ return { headers, body };
1138
+ }, "se_MedicalScribeAudioEvent_event");
1139
+ var se_MedicalScribeConfigurationEvent_event = /* @__PURE__ */ __name((input, context) => {
1140
+ const headers = {
1141
+ ":event-type": { type: "string", value: "ConfigurationEvent" },
1142
+ ":message-type": { type: "string", value: "event" },
1143
+ ":content-type": { type: "string", value: "application/json" }
1144
+ };
1145
+ let body = new Uint8Array();
1146
+ body = (0, import_smithy_client._json)(input);
1147
+ body = context.utf8Decoder(JSON.stringify(body));
1148
+ return { headers, body };
1149
+ }, "se_MedicalScribeConfigurationEvent_event");
1150
+ var se_MedicalScribeSessionControlEvent_event = /* @__PURE__ */ __name((input, context) => {
1151
+ const headers = {
1152
+ ":event-type": { type: "string", value: "SessionControlEvent" },
1153
+ ":message-type": { type: "string", value: "event" },
1154
+ ":content-type": { type: "string", value: "application/json" }
1155
+ };
1156
+ let body = new Uint8Array();
1157
+ body = (0, import_smithy_client._json)(input);
1158
+ body = context.utf8Decoder(JSON.stringify(body));
1159
+ return { headers, body };
1160
+ }, "se_MedicalScribeSessionControlEvent_event");
911
1161
  var de_CallAnalyticsTranscriptResultStream = /* @__PURE__ */ __name((output, context) => {
912
1162
  return context.eventStreamMarshaller.deserialize(output, async (event) => {
913
1163
  if (event["UtteranceEvent"] != null) {
@@ -951,6 +1201,44 @@ var de_CallAnalyticsTranscriptResultStream = /* @__PURE__ */ __name((output, con
951
1201
  return { $unknown: output };
952
1202
  });
953
1203
  }, "de_CallAnalyticsTranscriptResultStream");
1204
+ var de_MedicalScribeResultStream = /* @__PURE__ */ __name((output, context) => {
1205
+ return context.eventStreamMarshaller.deserialize(output, async (event) => {
1206
+ if (event["TranscriptEvent"] != null) {
1207
+ return {
1208
+ TranscriptEvent: await de_MedicalScribeTranscriptEvent_event(event["TranscriptEvent"], context)
1209
+ };
1210
+ }
1211
+ if (event["BadRequestException"] != null) {
1212
+ return {
1213
+ BadRequestException: await de_BadRequestException_event(event["BadRequestException"], context)
1214
+ };
1215
+ }
1216
+ if (event["LimitExceededException"] != null) {
1217
+ return {
1218
+ LimitExceededException: await de_LimitExceededException_event(event["LimitExceededException"], context)
1219
+ };
1220
+ }
1221
+ if (event["InternalFailureException"] != null) {
1222
+ return {
1223
+ InternalFailureException: await de_InternalFailureException_event(event["InternalFailureException"], context)
1224
+ };
1225
+ }
1226
+ if (event["ConflictException"] != null) {
1227
+ return {
1228
+ ConflictException: await de_ConflictException_event(event["ConflictException"], context)
1229
+ };
1230
+ }
1231
+ if (event["ServiceUnavailableException"] != null) {
1232
+ return {
1233
+ ServiceUnavailableException: await de_ServiceUnavailableException_event(
1234
+ event["ServiceUnavailableException"],
1235
+ context
1236
+ )
1237
+ };
1238
+ }
1239
+ return { $unknown: output };
1240
+ });
1241
+ }, "de_MedicalScribeResultStream");
954
1242
  var de_MedicalTranscriptResultStream = /* @__PURE__ */ __name((output, context) => {
955
1243
  return context.eventStreamMarshaller.deserialize(output, async (event) => {
956
1244
  if (event["TranscriptEvent"] != null) {
@@ -1061,6 +1349,12 @@ var de_LimitExceededException_event = /* @__PURE__ */ __name(async (output, cont
1061
1349
  };
1062
1350
  return de_LimitExceededExceptionRes(parsedOutput, context);
1063
1351
  }, "de_LimitExceededException_event");
1352
+ var de_MedicalScribeTranscriptEvent_event = /* @__PURE__ */ __name(async (output, context) => {
1353
+ const contents = {};
1354
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1355
+ Object.assign(contents, de_MedicalScribeTranscriptEvent(data, context));
1356
+ return contents;
1357
+ }, "de_MedicalScribeTranscriptEvent_event");
1064
1358
  var de_MedicalTranscriptEvent_event = /* @__PURE__ */ __name(async (output, context) => {
1065
1359
  const contents = {};
1066
1360
  const data = await (0, import_core2.parseJsonBody)(output.body, context);
@@ -1238,6 +1532,57 @@ var de_MedicalResultList = /* @__PURE__ */ __name((output, context) => {
1238
1532
  });
1239
1533
  return retVal;
1240
1534
  }, "de_MedicalResultList");
1535
+ var de_MedicalScribeStreamDetails = /* @__PURE__ */ __name((output, context) => {
1536
+ return (0, import_smithy_client.take)(output, {
1537
+ ChannelDefinitions: import_smithy_client._json,
1538
+ EncryptionSettings: import_smithy_client._json,
1539
+ LanguageCode: import_smithy_client.expectString,
1540
+ MediaEncoding: import_smithy_client.expectString,
1541
+ MediaSampleRateHertz: import_smithy_client.expectInt32,
1542
+ PostStreamAnalyticsResult: import_smithy_client._json,
1543
+ PostStreamAnalyticsSettings: import_smithy_client._json,
1544
+ ResourceAccessRoleArn: import_smithy_client.expectString,
1545
+ SessionId: import_smithy_client.expectString,
1546
+ StreamCreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1547
+ StreamEndedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1548
+ StreamStatus: import_smithy_client.expectString,
1549
+ VocabularyFilterMethod: import_smithy_client.expectString,
1550
+ VocabularyFilterName: import_smithy_client.expectString,
1551
+ VocabularyName: import_smithy_client.expectString
1552
+ });
1553
+ }, "de_MedicalScribeStreamDetails");
1554
+ var de_MedicalScribeTranscriptEvent = /* @__PURE__ */ __name((output, context) => {
1555
+ return (0, import_smithy_client.take)(output, {
1556
+ TranscriptSegment: (_) => de_MedicalScribeTranscriptSegment(_, context)
1557
+ });
1558
+ }, "de_MedicalScribeTranscriptEvent");
1559
+ var de_MedicalScribeTranscriptItem = /* @__PURE__ */ __name((output, context) => {
1560
+ return (0, import_smithy_client.take)(output, {
1561
+ BeginAudioTime: import_smithy_client.limitedParseDouble,
1562
+ Confidence: import_smithy_client.limitedParseDouble,
1563
+ Content: import_smithy_client.expectString,
1564
+ EndAudioTime: import_smithy_client.limitedParseDouble,
1565
+ Type: import_smithy_client.expectString,
1566
+ VocabularyFilterMatch: import_smithy_client.expectBoolean
1567
+ });
1568
+ }, "de_MedicalScribeTranscriptItem");
1569
+ var de_MedicalScribeTranscriptItemList = /* @__PURE__ */ __name((output, context) => {
1570
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1571
+ return de_MedicalScribeTranscriptItem(entry, context);
1572
+ });
1573
+ return retVal;
1574
+ }, "de_MedicalScribeTranscriptItemList");
1575
+ var de_MedicalScribeTranscriptSegment = /* @__PURE__ */ __name((output, context) => {
1576
+ return (0, import_smithy_client.take)(output, {
1577
+ BeginAudioTime: import_smithy_client.limitedParseDouble,
1578
+ ChannelId: import_smithy_client.expectString,
1579
+ Content: import_smithy_client.expectString,
1580
+ EndAudioTime: import_smithy_client.limitedParseDouble,
1581
+ IsPartial: import_smithy_client.expectBoolean,
1582
+ Items: (_) => de_MedicalScribeTranscriptItemList(_, context),
1583
+ SegmentId: import_smithy_client.expectString
1584
+ });
1585
+ }, "de_MedicalScribeTranscriptSegment");
1241
1586
  var de_MedicalTranscript = /* @__PURE__ */ __name((output, context) => {
1242
1587
  return (0, import_smithy_client.take)(output, {
1243
1588
  Results: (_) => de_MedicalResultList(_, context)
@@ -1347,7 +1692,25 @@ var _xatvfn_ = "x-amzn-transcribe-vocabulary-filter-names";
1347
1692
  var _xatvn = "x-amzn-transcribe-vocabulary-name";
1348
1693
  var _xatvn_ = "x-amzn-transcribe-vocabulary-names";
1349
1694
 
1695
+ // src/commands/GetMedicalScribeStreamCommand.ts
1696
+ var GetMedicalScribeStreamCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1697
+ return [
1698
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1699
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1700
+ ];
1701
+ }).s("Transcribe", "GetMedicalScribeStream", {}).n("TranscribeStreamingClient", "GetMedicalScribeStreamCommand").f(void 0, void 0).ser(se_GetMedicalScribeStreamCommand).de(de_GetMedicalScribeStreamCommand).build() {
1702
+ static {
1703
+ __name(this, "GetMedicalScribeStreamCommand");
1704
+ }
1705
+ };
1706
+
1350
1707
  // src/commands/StartCallAnalyticsStreamTranscriptionCommand.ts
1708
+
1709
+ var import_middleware_sdk_transcribe_streaming = require("@aws-sdk/middleware-sdk-transcribe-streaming");
1710
+
1711
+
1712
+
1713
+
1351
1714
  var StartCallAnalyticsStreamTranscriptionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1352
1715
  return [
1353
1716
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -1375,6 +1738,37 @@ var StartCallAnalyticsStreamTranscriptionCommand = class extends import_smithy_c
1375
1738
  }
1376
1739
  };
1377
1740
 
1741
+ // src/commands/StartMedicalScribeStreamCommand.ts
1742
+
1743
+
1744
+
1745
+
1746
+
1747
+
1748
+ var StartMedicalScribeStreamCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1749
+ return [
1750
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1751
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
1752
+ (0, import_middleware_eventstream.getEventStreamPlugin)(config),
1753
+ (0, import_middleware_websocket.getWebSocketPlugin)(config, {
1754
+ headerPrefix: "x-amzn-transcribe-"
1755
+ }),
1756
+ (0, import_middleware_sdk_transcribe_streaming.getTranscribeStreamingPlugin)(config)
1757
+ ];
1758
+ }).s("Transcribe", "StartMedicalScribeStream", {
1759
+ /**
1760
+ * @internal
1761
+ */
1762
+ eventStream: {
1763
+ input: true,
1764
+ output: true
1765
+ }
1766
+ }).n("TranscribeStreamingClient", "StartMedicalScribeStreamCommand").f(StartMedicalScribeStreamRequestFilterSensitiveLog, StartMedicalScribeStreamResponseFilterSensitiveLog).ser(se_StartMedicalScribeStreamCommand).de(de_StartMedicalScribeStreamCommand).build() {
1767
+ static {
1768
+ __name(this, "StartMedicalScribeStreamCommand");
1769
+ }
1770
+ };
1771
+
1378
1772
  // src/commands/StartMedicalStreamTranscriptionCommand.ts
1379
1773
 
1380
1774
 
@@ -1442,7 +1836,9 @@ var StartStreamTranscriptionCommand = class extends import_smithy_client.Command
1442
1836
 
1443
1837
  // src/TranscribeStreaming.ts
1444
1838
  var commands = {
1839
+ GetMedicalScribeStreamCommand,
1445
1840
  StartCallAnalyticsStreamTranscriptionCommand,
1841
+ StartMedicalScribeStreamCommand,
1446
1842
  StartMedicalStreamTranscriptionCommand,
1447
1843
  StartStreamTranscriptionCommand
1448
1844
  };
@@ -1460,7 +1856,9 @@ var TranscribeStreaming = class extends TranscribeStreamingClient {
1460
1856
  TranscribeStreamingClient,
1461
1857
  TranscribeStreaming,
1462
1858
  $Command,
1859
+ GetMedicalScribeStreamCommand,
1463
1860
  StartCallAnalyticsStreamTranscriptionCommand,
1861
+ StartMedicalScribeStreamCommand,
1464
1862
  StartMedicalStreamTranscriptionCommand,
1465
1863
  StartStreamTranscriptionCommand,
1466
1864
  ItemType,
@@ -1475,11 +1873,22 @@ var TranscribeStreaming = class extends TranscribeStreamingClient {
1475
1873
  ServiceUnavailableException,
1476
1874
  Sentiment,
1477
1875
  CallAnalyticsTranscriptResultStream,
1876
+ ClinicalNoteGenerationStatus,
1478
1877
  ContentIdentificationType,
1479
1878
  ContentRedactionType,
1879
+ MedicalScribeParticipantRole,
1880
+ MedicalScribeLanguageCode,
1881
+ MedicalScribeMediaEncoding,
1882
+ MedicalScribeStreamStatus,
1883
+ MedicalScribeVocabularyFilterMethod,
1884
+ ResourceNotFoundException,
1480
1885
  LanguageCode,
1481
1886
  MediaEncoding,
1482
1887
  MedicalContentIdentificationType,
1888
+ MedicalScribeSessionControlEventType,
1889
+ MedicalScribeInputStream,
1890
+ MedicalScribeTranscriptItemType,
1891
+ MedicalScribeResultStream,
1483
1892
  MedicalTranscriptResultStream,
1484
1893
  PartialResultsStability,
1485
1894
  Specialty,
@@ -1488,9 +1897,13 @@ var TranscribeStreaming = class extends TranscribeStreamingClient {
1488
1897
  TranscriptResultStream,
1489
1898
  AudioStreamFilterSensitiveLog,
1490
1899
  CallAnalyticsTranscriptResultStreamFilterSensitiveLog,
1900
+ MedicalScribeInputStreamFilterSensitiveLog,
1901
+ MedicalScribeResultStreamFilterSensitiveLog,
1491
1902
  MedicalTranscriptResultStreamFilterSensitiveLog,
1492
1903
  StartCallAnalyticsStreamTranscriptionRequestFilterSensitiveLog,
1493
1904
  StartCallAnalyticsStreamTranscriptionResponseFilterSensitiveLog,
1905
+ StartMedicalScribeStreamRequestFilterSensitiveLog,
1906
+ StartMedicalScribeStreamResponseFilterSensitiveLog,
1494
1907
  StartMedicalStreamTranscriptionRequestFilterSensitiveLog,
1495
1908
  StartMedicalStreamTranscriptionResponseFilterSensitiveLog,
1496
1909
  StartStreamTranscriptionRequestFilterSensitiveLog,
@@ -1,10 +1,14 @@
1
1
  import { createAggregatedClient } from "@smithy/smithy-client";
2
+ import { GetMedicalScribeStreamCommand, } from "./commands/GetMedicalScribeStreamCommand";
2
3
  import { StartCallAnalyticsStreamTranscriptionCommand, } from "./commands/StartCallAnalyticsStreamTranscriptionCommand";
4
+ import { StartMedicalScribeStreamCommand, } from "./commands/StartMedicalScribeStreamCommand";
3
5
  import { StartMedicalStreamTranscriptionCommand, } from "./commands/StartMedicalStreamTranscriptionCommand";
4
6
  import { StartStreamTranscriptionCommand, } from "./commands/StartStreamTranscriptionCommand";
5
7
  import { TranscribeStreamingClient } from "./TranscribeStreamingClient";
6
8
  const commands = {
9
+ GetMedicalScribeStreamCommand,
7
10
  StartCallAnalyticsStreamTranscriptionCommand,
11
+ StartMedicalScribeStreamCommand,
8
12
  StartMedicalStreamTranscriptionCommand,
9
13
  StartStreamTranscriptionCommand,
10
14
  };
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetMedicalScribeStreamCommand, se_GetMedicalScribeStreamCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetMedicalScribeStreamCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("Transcribe", "GetMedicalScribeStream", {})
17
+ .n("TranscribeStreamingClient", "GetMedicalScribeStreamCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_GetMedicalScribeStreamCommand)
20
+ .de(de_GetMedicalScribeStreamCommand)
21
+ .build() {
22
+ }