@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.
@@ -0,0 +1,36 @@
1
+ import { getEventStreamPlugin } from "@aws-sdk/middleware-eventstream";
2
+ import { getTranscribeStreamingPlugin } from "@aws-sdk/middleware-sdk-transcribe-streaming";
3
+ import { getWebSocketPlugin } from "@aws-sdk/middleware-websocket";
4
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
5
+ import { getSerdePlugin } from "@smithy/middleware-serde";
6
+ import { Command as $Command } from "@smithy/smithy-client";
7
+ import { commonParams } from "../endpoint/EndpointParameters";
8
+ import { StartMedicalScribeStreamRequestFilterSensitiveLog, StartMedicalScribeStreamResponseFilterSensitiveLog, } from "../models/models_0";
9
+ import { de_StartMedicalScribeStreamCommand, se_StartMedicalScribeStreamCommand } from "../protocols/Aws_restJson1";
10
+ export { $Command };
11
+ export class StartMedicalScribeStreamCommand extends $Command
12
+ .classBuilder()
13
+ .ep(commonParams)
14
+ .m(function (Command, cs, config, o) {
15
+ return [
16
+ getSerdePlugin(config, this.serialize, this.deserialize),
17
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
18
+ getEventStreamPlugin(config),
19
+ getWebSocketPlugin(config, {
20
+ headerPrefix: "x-amzn-transcribe-",
21
+ }),
22
+ getTranscribeStreamingPlugin(config),
23
+ ];
24
+ })
25
+ .s("Transcribe", "StartMedicalScribeStream", {
26
+ eventStream: {
27
+ input: true,
28
+ output: true,
29
+ },
30
+ })
31
+ .n("TranscribeStreamingClient", "StartMedicalScribeStreamCommand")
32
+ .f(StartMedicalScribeStreamRequestFilterSensitiveLog, StartMedicalScribeStreamResponseFilterSensitiveLog)
33
+ .ser(se_StartMedicalScribeStreamCommand)
34
+ .de(de_StartMedicalScribeStreamCommand)
35
+ .build() {
36
+ }
@@ -1,3 +1,5 @@
1
+ export * from "./GetMedicalScribeStreamCommand";
1
2
  export * from "./StartCallAnalyticsStreamTranscriptionCommand";
3
+ export * from "./StartMedicalScribeStreamCommand";
2
4
  export * from "./StartMedicalStreamTranscriptionCommand";
3
5
  export * from "./StartStreamTranscriptionCommand";
@@ -128,12 +128,54 @@ export var CallAnalyticsTranscriptResultStream;
128
128
  return visitor._(value.$unknown[0], value.$unknown[1]);
129
129
  };
130
130
  })(CallAnalyticsTranscriptResultStream || (CallAnalyticsTranscriptResultStream = {}));
131
+ export const ClinicalNoteGenerationStatus = {
132
+ COMPLETED: "COMPLETED",
133
+ FAILED: "FAILED",
134
+ IN_PROGRESS: "IN_PROGRESS",
135
+ };
131
136
  export const ContentIdentificationType = {
132
137
  PII: "PII",
133
138
  };
134
139
  export const ContentRedactionType = {
135
140
  PII: "PII",
136
141
  };
142
+ export const MedicalScribeParticipantRole = {
143
+ CLINICIAN: "CLINICIAN",
144
+ PATIENT: "PATIENT",
145
+ };
146
+ export const MedicalScribeLanguageCode = {
147
+ EN_US: "en-US",
148
+ };
149
+ export const MedicalScribeMediaEncoding = {
150
+ FLAC: "flac",
151
+ OGG_OPUS: "ogg-opus",
152
+ PCM: "pcm",
153
+ };
154
+ export const MedicalScribeStreamStatus = {
155
+ COMPLETED: "COMPLETED",
156
+ FAILED: "FAILED",
157
+ IN_PROGRESS: "IN_PROGRESS",
158
+ PAUSED: "PAUSED",
159
+ };
160
+ export const MedicalScribeVocabularyFilterMethod = {
161
+ MASK: "mask",
162
+ REMOVE: "remove",
163
+ TAG: "tag",
164
+ };
165
+ export class ResourceNotFoundException extends __BaseException {
166
+ name = "ResourceNotFoundException";
167
+ $fault = "client";
168
+ Message;
169
+ constructor(opts) {
170
+ super({
171
+ name: "ResourceNotFoundException",
172
+ $fault: "client",
173
+ ...opts,
174
+ });
175
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
176
+ this.Message = opts.Message;
177
+ }
178
+ }
137
179
  export const LanguageCode = {
138
180
  AF_ZA: "af-ZA",
139
181
  AR_AE: "ar-AE",
@@ -198,6 +240,43 @@ export const MediaEncoding = {
198
240
  export const MedicalContentIdentificationType = {
199
241
  PHI: "PHI",
200
242
  };
243
+ export const MedicalScribeSessionControlEventType = {
244
+ END_OF_SESSION: "END_OF_SESSION",
245
+ };
246
+ export var MedicalScribeInputStream;
247
+ (function (MedicalScribeInputStream) {
248
+ MedicalScribeInputStream.visit = (value, visitor) => {
249
+ if (value.AudioEvent !== undefined)
250
+ return visitor.AudioEvent(value.AudioEvent);
251
+ if (value.SessionControlEvent !== undefined)
252
+ return visitor.SessionControlEvent(value.SessionControlEvent);
253
+ if (value.ConfigurationEvent !== undefined)
254
+ return visitor.ConfigurationEvent(value.ConfigurationEvent);
255
+ return visitor._(value.$unknown[0], value.$unknown[1]);
256
+ };
257
+ })(MedicalScribeInputStream || (MedicalScribeInputStream = {}));
258
+ export const MedicalScribeTranscriptItemType = {
259
+ PRONUNCIATION: "pronunciation",
260
+ PUNCTUATION: "punctuation",
261
+ };
262
+ export var MedicalScribeResultStream;
263
+ (function (MedicalScribeResultStream) {
264
+ MedicalScribeResultStream.visit = (value, visitor) => {
265
+ if (value.TranscriptEvent !== undefined)
266
+ return visitor.TranscriptEvent(value.TranscriptEvent);
267
+ if (value.BadRequestException !== undefined)
268
+ return visitor.BadRequestException(value.BadRequestException);
269
+ if (value.LimitExceededException !== undefined)
270
+ return visitor.LimitExceededException(value.LimitExceededException);
271
+ if (value.InternalFailureException !== undefined)
272
+ return visitor.InternalFailureException(value.InternalFailureException);
273
+ if (value.ConflictException !== undefined)
274
+ return visitor.ConflictException(value.ConflictException);
275
+ if (value.ServiceUnavailableException !== undefined)
276
+ return visitor.ServiceUnavailableException(value.ServiceUnavailableException);
277
+ return visitor._(value.$unknown[0], value.$unknown[1]);
278
+ };
279
+ })(MedicalScribeResultStream || (MedicalScribeResultStream = {}));
201
280
  export var MedicalTranscriptResultStream;
202
281
  (function (MedicalTranscriptResultStream) {
203
282
  MedicalTranscriptResultStream.visit = (value, visitor) => {
@@ -282,6 +361,32 @@ export const CallAnalyticsTranscriptResultStreamFilterSensitiveLog = (obj) => {
282
361
  if (obj.$unknown !== undefined)
283
362
  return { [obj.$unknown[0]]: "UNKNOWN" };
284
363
  };
364
+ export const MedicalScribeInputStreamFilterSensitiveLog = (obj) => {
365
+ if (obj.AudioEvent !== undefined)
366
+ return { AudioEvent: obj.AudioEvent };
367
+ if (obj.SessionControlEvent !== undefined)
368
+ return { SessionControlEvent: obj.SessionControlEvent };
369
+ if (obj.ConfigurationEvent !== undefined)
370
+ return { ConfigurationEvent: obj.ConfigurationEvent };
371
+ if (obj.$unknown !== undefined)
372
+ return { [obj.$unknown[0]]: "UNKNOWN" };
373
+ };
374
+ export const MedicalScribeResultStreamFilterSensitiveLog = (obj) => {
375
+ if (obj.TranscriptEvent !== undefined)
376
+ return { TranscriptEvent: obj.TranscriptEvent };
377
+ if (obj.BadRequestException !== undefined)
378
+ return { BadRequestException: obj.BadRequestException };
379
+ if (obj.LimitExceededException !== undefined)
380
+ return { LimitExceededException: obj.LimitExceededException };
381
+ if (obj.InternalFailureException !== undefined)
382
+ return { InternalFailureException: obj.InternalFailureException };
383
+ if (obj.ConflictException !== undefined)
384
+ return { ConflictException: obj.ConflictException };
385
+ if (obj.ServiceUnavailableException !== undefined)
386
+ return { ServiceUnavailableException: obj.ServiceUnavailableException };
387
+ if (obj.$unknown !== undefined)
388
+ return { [obj.$unknown[0]]: "UNKNOWN" };
389
+ };
285
390
  export const MedicalTranscriptResultStreamFilterSensitiveLog = (obj) => {
286
391
  if (obj.TranscriptEvent !== undefined)
287
392
  return { TranscriptEvent: obj.TranscriptEvent };
@@ -306,6 +411,14 @@ export const StartCallAnalyticsStreamTranscriptionResponseFilterSensitiveLog = (
306
411
  ...obj,
307
412
  ...(obj.CallAnalyticsTranscriptResultStream && { CallAnalyticsTranscriptResultStream: "STREAMING_CONTENT" }),
308
413
  });
414
+ export const StartMedicalScribeStreamRequestFilterSensitiveLog = (obj) => ({
415
+ ...obj,
416
+ ...(obj.InputStream && { InputStream: "STREAMING_CONTENT" }),
417
+ });
418
+ export const StartMedicalScribeStreamResponseFilterSensitiveLog = (obj) => ({
419
+ ...obj,
420
+ ...(obj.ResultStream && { ResultStream: "STREAMING_CONTENT" }),
421
+ });
309
422
  export const StartMedicalStreamTranscriptionRequestFilterSensitiveLog = (obj) => ({
310
423
  ...obj,
311
424
  ...(obj.AudioStream && { AudioStream: "STREAMING_CONTENT" }),
@@ -1,8 +1,17 @@
1
1
  import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectString as __expectString, isSerializableHeaderValue, limitedParseDouble as __limitedParseDouble, map, parseBoolean as __parseBoolean, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
4
- import { AudioStream, BadRequestException, ConflictException, InternalFailureException, LimitExceededException, ServiceUnavailableException, } from "../models/models_0";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, limitedParseDouble as __limitedParseDouble, map, parseBoolean as __parseBoolean, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
4
+ import { AudioStream, BadRequestException, ConflictException, InternalFailureException, LimitExceededException, MedicalScribeInputStream, ResourceNotFoundException, ServiceUnavailableException, } from "../models/models_0";
5
5
  import { TranscribeStreamingServiceException as __BaseException } from "../models/TranscribeStreamingServiceException";
6
+ export const se_GetMedicalScribeStreamCommand = async (input, context) => {
7
+ const b = rb(input, context);
8
+ const headers = {};
9
+ b.bp("/medical-scribe-stream/{SessionId}");
10
+ b.p("SessionId", () => input.SessionId, "{SessionId}", false);
11
+ let body;
12
+ b.m("GET").h(headers).b(body);
13
+ return b.build();
14
+ };
6
15
  export const se_StartCallAnalyticsStreamTranscriptionCommand = async (input, context) => {
7
16
  const b = rb(input, context);
8
17
  const headers = map({}, isSerializableHeaderValue, {
@@ -29,6 +38,23 @@ export const se_StartCallAnalyticsStreamTranscriptionCommand = async (input, con
29
38
  b.m("POST").h(headers).b(body);
30
39
  return b.build();
31
40
  };
41
+ export const se_StartMedicalScribeStreamCommand = async (input, context) => {
42
+ const b = rb(input, context);
43
+ const headers = map({}, isSerializableHeaderValue, {
44
+ "content-type": "application/json",
45
+ [_xatsi]: input[_SI],
46
+ [_xatlc]: input[_LC],
47
+ [_xatsr]: [() => isSerializableHeaderValue(input[_MSRH]), () => input[_MSRH].toString()],
48
+ [_xatme]: input[_ME],
49
+ });
50
+ b.bp("/medical-scribe-stream");
51
+ let body;
52
+ if (input.InputStream !== undefined) {
53
+ body = se_MedicalScribeInputStream(input.InputStream, context);
54
+ }
55
+ b.m("POST").h(headers).b(body);
56
+ return b.build();
57
+ };
32
58
  export const se_StartMedicalStreamTranscriptionCommand = async (input, context) => {
33
59
  const b = rb(input, context);
34
60
  const headers = map({}, isSerializableHeaderValue, {
@@ -88,6 +114,20 @@ export const se_StartStreamTranscriptionCommand = async (input, context) => {
88
114
  b.m("POST").h(headers).b(body);
89
115
  return b.build();
90
116
  };
117
+ export const de_GetMedicalScribeStreamCommand = async (output, context) => {
118
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
119
+ return de_CommandError(output, context);
120
+ }
121
+ const contents = map({
122
+ $metadata: deserializeMetadata(output),
123
+ });
124
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
125
+ const doc = take(data, {
126
+ MedicalScribeStreamDetails: (_) => de_MedicalScribeStreamDetails(_, context),
127
+ });
128
+ Object.assign(contents, doc);
129
+ return contents;
130
+ };
91
131
  export const de_StartCallAnalyticsStreamTranscriptionCommand = async (output, context) => {
92
132
  if (output.statusCode !== 200 && output.statusCode >= 300) {
93
133
  return de_CommandError(output, context);
@@ -113,6 +153,22 @@ export const de_StartCallAnalyticsStreamTranscriptionCommand = async (output, co
113
153
  contents.CallAnalyticsTranscriptResultStream = de_CallAnalyticsTranscriptResultStream(data, context);
114
154
  return contents;
115
155
  };
156
+ export const de_StartMedicalScribeStreamCommand = async (output, context) => {
157
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
158
+ return de_CommandError(output, context);
159
+ }
160
+ const contents = map({
161
+ $metadata: deserializeMetadata(output),
162
+ [_SI]: [, output.headers[_xatsi]],
163
+ [_RI]: [, output.headers[_xari]],
164
+ [_LC]: [, output.headers[_xatlc]],
165
+ [_MSRH]: [() => void 0 !== output.headers[_xatsr], () => __strictParseInt32(output.headers[_xatsr])],
166
+ [_ME]: [, output.headers[_xatme]],
167
+ });
168
+ const data = output.body;
169
+ contents.ResultStream = de_MedicalScribeResultStream(data, context);
170
+ return contents;
171
+ };
116
172
  export const de_StartMedicalStreamTranscriptionCommand = async (output, context) => {
117
173
  if (output.statusCode !== 200 && output.statusCode >= 300) {
118
174
  return de_CommandError(output, context);
@@ -180,15 +236,18 @@ const de_CommandError = async (output, context) => {
180
236
  case "BadRequestException":
181
237
  case "com.amazonaws.transcribestreaming#BadRequestException":
182
238
  throw await de_BadRequestExceptionRes(parsedOutput, context);
183
- case "ConflictException":
184
- case "com.amazonaws.transcribestreaming#ConflictException":
185
- throw await de_ConflictExceptionRes(parsedOutput, context);
186
239
  case "InternalFailureException":
187
240
  case "com.amazonaws.transcribestreaming#InternalFailureException":
188
241
  throw await de_InternalFailureExceptionRes(parsedOutput, context);
189
242
  case "LimitExceededException":
190
243
  case "com.amazonaws.transcribestreaming#LimitExceededException":
191
244
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
245
+ case "ResourceNotFoundException":
246
+ case "com.amazonaws.transcribestreaming#ResourceNotFoundException":
247
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
248
+ case "ConflictException":
249
+ case "com.amazonaws.transcribestreaming#ConflictException":
250
+ throw await de_ConflictExceptionRes(parsedOutput, context);
192
251
  case "ServiceUnavailableException":
193
252
  case "com.amazonaws.transcribestreaming#ServiceUnavailableException":
194
253
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
@@ -254,6 +313,19 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
254
313
  });
255
314
  return __decorateServiceException(exception, parsedOutput.body);
256
315
  };
316
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
317
+ const contents = map({});
318
+ const data = parsedOutput.body;
319
+ const doc = take(data, {
320
+ Message: __expectString,
321
+ });
322
+ Object.assign(contents, doc);
323
+ const exception = new ResourceNotFoundException({
324
+ $metadata: deserializeMetadata(parsedOutput),
325
+ ...contents,
326
+ });
327
+ return __decorateServiceException(exception, parsedOutput.body);
328
+ };
257
329
  const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
258
330
  const contents = map({});
259
331
  const data = parsedOutput.body;
@@ -275,6 +347,15 @@ const se_AudioStream = (input, context) => {
275
347
  });
276
348
  return context.eventStreamMarshaller.serialize(input, eventMarshallingVisitor);
277
349
  };
350
+ const se_MedicalScribeInputStream = (input, context) => {
351
+ const eventMarshallingVisitor = (event) => MedicalScribeInputStream.visit(event, {
352
+ AudioEvent: (value) => se_MedicalScribeAudioEvent_event(value, context),
353
+ SessionControlEvent: (value) => se_MedicalScribeSessionControlEvent_event(value, context),
354
+ ConfigurationEvent: (value) => se_MedicalScribeConfigurationEvent_event(value, context),
355
+ _: (value) => value,
356
+ });
357
+ return context.eventStreamMarshaller.serialize(input, eventMarshallingVisitor);
358
+ };
278
359
  const se_AudioEvent_event = (input, context) => {
279
360
  const headers = {
280
361
  ":event-type": { type: "string", value: "AudioEvent" },
@@ -298,6 +379,40 @@ const se_ConfigurationEvent_event = (input, context) => {
298
379
  body = context.utf8Decoder(JSON.stringify(body));
299
380
  return { headers, body };
300
381
  };
382
+ const se_MedicalScribeAudioEvent_event = (input, context) => {
383
+ const headers = {
384
+ ":event-type": { type: "string", value: "AudioEvent" },
385
+ ":message-type": { type: "string", value: "event" },
386
+ ":content-type": { type: "string", value: "application/octet-stream" },
387
+ };
388
+ let body = new Uint8Array();
389
+ if (input.AudioChunk != null) {
390
+ body = input.AudioChunk;
391
+ }
392
+ return { headers, body };
393
+ };
394
+ const se_MedicalScribeConfigurationEvent_event = (input, context) => {
395
+ const headers = {
396
+ ":event-type": { type: "string", value: "ConfigurationEvent" },
397
+ ":message-type": { type: "string", value: "event" },
398
+ ":content-type": { type: "string", value: "application/json" },
399
+ };
400
+ let body = new Uint8Array();
401
+ body = _json(input);
402
+ body = context.utf8Decoder(JSON.stringify(body));
403
+ return { headers, body };
404
+ };
405
+ const se_MedicalScribeSessionControlEvent_event = (input, context) => {
406
+ const headers = {
407
+ ":event-type": { type: "string", value: "SessionControlEvent" },
408
+ ":message-type": { type: "string", value: "event" },
409
+ ":content-type": { type: "string", value: "application/json" },
410
+ };
411
+ let body = new Uint8Array();
412
+ body = _json(input);
413
+ body = context.utf8Decoder(JSON.stringify(body));
414
+ return { headers, body };
415
+ };
301
416
  const de_CallAnalyticsTranscriptResultStream = (output, context) => {
302
417
  return context.eventStreamMarshaller.deserialize(output, async (event) => {
303
418
  if (event["UtteranceEvent"] != null) {
@@ -338,6 +453,41 @@ const de_CallAnalyticsTranscriptResultStream = (output, context) => {
338
453
  return { $unknown: output };
339
454
  });
340
455
  };
456
+ const de_MedicalScribeResultStream = (output, context) => {
457
+ return context.eventStreamMarshaller.deserialize(output, async (event) => {
458
+ if (event["TranscriptEvent"] != null) {
459
+ return {
460
+ TranscriptEvent: await de_MedicalScribeTranscriptEvent_event(event["TranscriptEvent"], context),
461
+ };
462
+ }
463
+ if (event["BadRequestException"] != null) {
464
+ return {
465
+ BadRequestException: await de_BadRequestException_event(event["BadRequestException"], context),
466
+ };
467
+ }
468
+ if (event["LimitExceededException"] != null) {
469
+ return {
470
+ LimitExceededException: await de_LimitExceededException_event(event["LimitExceededException"], context),
471
+ };
472
+ }
473
+ if (event["InternalFailureException"] != null) {
474
+ return {
475
+ InternalFailureException: await de_InternalFailureException_event(event["InternalFailureException"], context),
476
+ };
477
+ }
478
+ if (event["ConflictException"] != null) {
479
+ return {
480
+ ConflictException: await de_ConflictException_event(event["ConflictException"], context),
481
+ };
482
+ }
483
+ if (event["ServiceUnavailableException"] != null) {
484
+ return {
485
+ ServiceUnavailableException: await de_ServiceUnavailableException_event(event["ServiceUnavailableException"], context),
486
+ };
487
+ }
488
+ return { $unknown: output };
489
+ });
490
+ };
341
491
  const de_MedicalTranscriptResultStream = (output, context) => {
342
492
  return context.eventStreamMarshaller.deserialize(output, async (event) => {
343
493
  if (event["TranscriptEvent"] != null) {
@@ -442,6 +592,12 @@ const de_LimitExceededException_event = async (output, context) => {
442
592
  };
443
593
  return de_LimitExceededExceptionRes(parsedOutput, context);
444
594
  };
595
+ const de_MedicalScribeTranscriptEvent_event = async (output, context) => {
596
+ const contents = {};
597
+ const data = await parseBody(output.body, context);
598
+ Object.assign(contents, de_MedicalScribeTranscriptEvent(data, context));
599
+ return contents;
600
+ };
445
601
  const de_MedicalTranscriptEvent_event = async (output, context) => {
446
602
  const contents = {};
447
603
  const data = await parseBody(output.body, context);
@@ -639,6 +795,59 @@ const de_MedicalResultList = (output, context) => {
639
795
  });
640
796
  return retVal;
641
797
  };
798
+ const de_MedicalScribeStreamDetails = (output, context) => {
799
+ return take(output, {
800
+ ChannelDefinitions: _json,
801
+ EncryptionSettings: _json,
802
+ LanguageCode: __expectString,
803
+ MediaEncoding: __expectString,
804
+ MediaSampleRateHertz: __expectInt32,
805
+ PostStreamAnalyticsResult: _json,
806
+ PostStreamAnalyticsSettings: _json,
807
+ ResourceAccessRoleArn: __expectString,
808
+ SessionId: __expectString,
809
+ StreamCreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
810
+ StreamEndedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
811
+ StreamStatus: __expectString,
812
+ VocabularyFilterMethod: __expectString,
813
+ VocabularyFilterName: __expectString,
814
+ VocabularyName: __expectString,
815
+ });
816
+ };
817
+ const de_MedicalScribeTranscriptEvent = (output, context) => {
818
+ return take(output, {
819
+ TranscriptSegment: (_) => de_MedicalScribeTranscriptSegment(_, context),
820
+ });
821
+ };
822
+ const de_MedicalScribeTranscriptItem = (output, context) => {
823
+ return take(output, {
824
+ BeginAudioTime: __limitedParseDouble,
825
+ Confidence: __limitedParseDouble,
826
+ Content: __expectString,
827
+ EndAudioTime: __limitedParseDouble,
828
+ Type: __expectString,
829
+ VocabularyFilterMatch: __expectBoolean,
830
+ });
831
+ };
832
+ const de_MedicalScribeTranscriptItemList = (output, context) => {
833
+ const retVal = (output || [])
834
+ .filter((e) => e != null)
835
+ .map((entry) => {
836
+ return de_MedicalScribeTranscriptItem(entry, context);
837
+ });
838
+ return retVal;
839
+ };
840
+ const de_MedicalScribeTranscriptSegment = (output, context) => {
841
+ return take(output, {
842
+ BeginAudioTime: __limitedParseDouble,
843
+ ChannelId: __expectString,
844
+ Content: __expectString,
845
+ EndAudioTime: __limitedParseDouble,
846
+ IsPartial: __expectBoolean,
847
+ Items: (_) => de_MedicalScribeTranscriptItemList(_, context),
848
+ SegmentId: __expectString,
849
+ });
850
+ };
642
851
  const de_MedicalTranscript = (output, context) => {
643
852
  return take(output, {
644
853
  Results: (_) => de_MedicalResultList(_, context),
@@ -1,15 +1,29 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import { GetMedicalScribeStreamCommandInput, GetMedicalScribeStreamCommandOutput } from "./commands/GetMedicalScribeStreamCommand";
2
3
  import { StartCallAnalyticsStreamTranscriptionCommandInput, StartCallAnalyticsStreamTranscriptionCommandOutput } from "./commands/StartCallAnalyticsStreamTranscriptionCommand";
4
+ import { StartMedicalScribeStreamCommandInput, StartMedicalScribeStreamCommandOutput } from "./commands/StartMedicalScribeStreamCommand";
3
5
  import { StartMedicalStreamTranscriptionCommandInput, StartMedicalStreamTranscriptionCommandOutput } from "./commands/StartMedicalStreamTranscriptionCommand";
4
6
  import { StartStreamTranscriptionCommandInput, StartStreamTranscriptionCommandOutput } from "./commands/StartStreamTranscriptionCommand";
5
7
  import { TranscribeStreamingClient } from "./TranscribeStreamingClient";
6
8
  export interface TranscribeStreaming {
9
+ /**
10
+ * @see {@link GetMedicalScribeStreamCommand}
11
+ */
12
+ getMedicalScribeStream(args: GetMedicalScribeStreamCommandInput, options?: __HttpHandlerOptions): Promise<GetMedicalScribeStreamCommandOutput>;
13
+ getMedicalScribeStream(args: GetMedicalScribeStreamCommandInput, cb: (err: any, data?: GetMedicalScribeStreamCommandOutput) => void): void;
14
+ getMedicalScribeStream(args: GetMedicalScribeStreamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMedicalScribeStreamCommandOutput) => void): void;
7
15
  /**
8
16
  * @see {@link StartCallAnalyticsStreamTranscriptionCommand}
9
17
  */
10
18
  startCallAnalyticsStreamTranscription(args: StartCallAnalyticsStreamTranscriptionCommandInput, options?: __HttpHandlerOptions): Promise<StartCallAnalyticsStreamTranscriptionCommandOutput>;
11
19
  startCallAnalyticsStreamTranscription(args: StartCallAnalyticsStreamTranscriptionCommandInput, cb: (err: any, data?: StartCallAnalyticsStreamTranscriptionCommandOutput) => void): void;
12
20
  startCallAnalyticsStreamTranscription(args: StartCallAnalyticsStreamTranscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartCallAnalyticsStreamTranscriptionCommandOutput) => void): void;
21
+ /**
22
+ * @see {@link StartMedicalScribeStreamCommand}
23
+ */
24
+ startMedicalScribeStream(args: StartMedicalScribeStreamCommandInput, options?: __HttpHandlerOptions): Promise<StartMedicalScribeStreamCommandOutput>;
25
+ startMedicalScribeStream(args: StartMedicalScribeStreamCommandInput, cb: (err: any, data?: StartMedicalScribeStreamCommandOutput) => void): void;
26
+ startMedicalScribeStream(args: StartMedicalScribeStreamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartMedicalScribeStreamCommandOutput) => void): void;
13
27
  /**
14
28
  * @see {@link StartMedicalStreamTranscriptionCommand}
15
29
  */
@@ -24,9 +38,10 @@ export interface TranscribeStreaming {
24
38
  startStreamTranscription(args: StartStreamTranscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartStreamTranscriptionCommandOutput) => void): void;
25
39
  }
26
40
  /**
27
- * <p>Amazon Transcribe streaming offers three main types of real-time transcription:
28
- * <b>Standard</b>, <b>Medical</b>, and
29
- * <b>Call Analytics</b>.</p>
41
+ * <p>Amazon Transcribe streaming offers four main types of real-time transcription:
42
+ * <b>Standard</b>, <b>Medical</b>,
43
+ * <b>Call Analytics</b>,
44
+ * and <b>Health Scribe</b>.</p>
30
45
  * <ul>
31
46
  * <li>
32
47
  * <p>
@@ -46,6 +61,12 @@ export interface TranscribeStreaming {
46
61
  * center audio on two different channels; if you're looking for insight into customer service calls, use this
47
62
  * option. Refer to for details.</p>
48
63
  * </li>
64
+ * <li>
65
+ * <p>
66
+ * <b>HealthScribe transcriptions</b> are designed to
67
+ * automatically create clinical notes from patient-clinician conversations using generative AI.
68
+ * Refer to [here] for details.</p>
69
+ * </li>
49
70
  * </ul>
50
71
  * @public
51
72
  */
@@ -11,7 +11,9 @@ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol
11
11
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
12
12
  import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
13
13
  import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
14
+ import { GetMedicalScribeStreamCommandInput, GetMedicalScribeStreamCommandOutput } from "./commands/GetMedicalScribeStreamCommand";
14
15
  import { StartCallAnalyticsStreamTranscriptionCommandInput, StartCallAnalyticsStreamTranscriptionCommandOutput } from "./commands/StartCallAnalyticsStreamTranscriptionCommand";
16
+ import { StartMedicalScribeStreamCommandInput, StartMedicalScribeStreamCommandOutput } from "./commands/StartMedicalScribeStreamCommand";
15
17
  import { StartMedicalStreamTranscriptionCommandInput, StartMedicalStreamTranscriptionCommandOutput } from "./commands/StartMedicalStreamTranscriptionCommand";
16
18
  import { StartStreamTranscriptionCommandInput, StartStreamTranscriptionCommandOutput } from "./commands/StartStreamTranscriptionCommand";
17
19
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
@@ -20,11 +22,11 @@ export { __Client };
20
22
  /**
21
23
  * @public
22
24
  */
23
- export type ServiceInputTypes = StartCallAnalyticsStreamTranscriptionCommandInput | StartMedicalStreamTranscriptionCommandInput | StartStreamTranscriptionCommandInput;
25
+ export type ServiceInputTypes = GetMedicalScribeStreamCommandInput | StartCallAnalyticsStreamTranscriptionCommandInput | StartMedicalScribeStreamCommandInput | StartMedicalStreamTranscriptionCommandInput | StartStreamTranscriptionCommandInput;
24
26
  /**
25
27
  * @public
26
28
  */
27
- export type ServiceOutputTypes = StartCallAnalyticsStreamTranscriptionCommandOutput | StartMedicalStreamTranscriptionCommandOutput | StartStreamTranscriptionCommandOutput;
29
+ export type ServiceOutputTypes = GetMedicalScribeStreamCommandOutput | StartCallAnalyticsStreamTranscriptionCommandOutput | StartMedicalScribeStreamCommandOutput | StartMedicalStreamTranscriptionCommandOutput | StartStreamTranscriptionCommandOutput;
28
30
  /**
29
31
  * @public
30
32
  */
@@ -185,9 +187,10 @@ export type TranscribeStreamingClientResolvedConfigType = __SmithyResolvedConfig
185
187
  export interface TranscribeStreamingClientResolvedConfig extends TranscribeStreamingClientResolvedConfigType {
186
188
  }
187
189
  /**
188
- * <p>Amazon Transcribe streaming offers three main types of real-time transcription:
189
- * <b>Standard</b>, <b>Medical</b>, and
190
- * <b>Call Analytics</b>.</p>
190
+ * <p>Amazon Transcribe streaming offers four main types of real-time transcription:
191
+ * <b>Standard</b>, <b>Medical</b>,
192
+ * <b>Call Analytics</b>,
193
+ * and <b>Health Scribe</b>.</p>
191
194
  * <ul>
192
195
  * <li>
193
196
  * <p>
@@ -207,6 +210,12 @@ export interface TranscribeStreamingClientResolvedConfig extends TranscribeStrea
207
210
  * center audio on two different channels; if you're looking for insight into customer service calls, use this
208
211
  * option. Refer to for details.</p>
209
212
  * </li>
213
+ * <li>
214
+ * <p>
215
+ * <b>HealthScribe transcriptions</b> are designed to
216
+ * automatically create clinical notes from patient-clinician conversations using generative AI.
217
+ * Refer to [here] for details.</p>
218
+ * </li>
210
219
  * </ul>
211
220
  * @public
212
221
  */