@aws-sdk/client-transcribe-streaming 3.864.0 → 3.872.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
@@ -39,12 +39,15 @@ __export(index_exports, {
39
39
  LimitExceededException: () => LimitExceededException,
40
40
  MediaEncoding: () => MediaEncoding,
41
41
  MedicalContentIdentificationType: () => MedicalContentIdentificationType,
42
+ MedicalScribeConfigurationEventFilterSensitiveLog: () => MedicalScribeConfigurationEventFilterSensitiveLog,
43
+ MedicalScribeContextFilterSensitiveLog: () => MedicalScribeContextFilterSensitiveLog,
42
44
  MedicalScribeInputStream: () => MedicalScribeInputStream,
43
45
  MedicalScribeInputStreamFilterSensitiveLog: () => MedicalScribeInputStreamFilterSensitiveLog,
44
46
  MedicalScribeLanguageCode: () => MedicalScribeLanguageCode,
45
47
  MedicalScribeMediaEncoding: () => MedicalScribeMediaEncoding,
46
48
  MedicalScribeNoteTemplate: () => MedicalScribeNoteTemplate,
47
49
  MedicalScribeParticipantRole: () => MedicalScribeParticipantRole,
50
+ MedicalScribePatientContextFilterSensitiveLog: () => MedicalScribePatientContextFilterSensitiveLog,
48
51
  MedicalScribeResultStream: () => MedicalScribeResultStream,
49
52
  MedicalScribeResultStreamFilterSensitiveLog: () => MedicalScribeResultStreamFilterSensitiveLog,
50
53
  MedicalScribeSessionControlEventType: () => MedicalScribeSessionControlEventType,
@@ -55,6 +58,7 @@ __export(index_exports, {
55
58
  MedicalTranscriptResultStreamFilterSensitiveLog: () => MedicalTranscriptResultStreamFilterSensitiveLog,
56
59
  PartialResultsStability: () => PartialResultsStability,
57
60
  ParticipantRole: () => ParticipantRole,
61
+ Pronouns: () => Pronouns,
58
62
  ResourceNotFoundException: () => ResourceNotFoundException,
59
63
  Sentiment: () => Sentiment,
60
64
  ServiceUnavailableException: () => ServiceUnavailableException,
@@ -242,6 +246,9 @@ var import_core2 = require("@aws-sdk/core");
242
246
 
243
247
 
244
248
 
249
+ // src/models/models_0.ts
250
+
251
+
245
252
  // src/models/TranscribeStreamingServiceException.ts
246
253
 
247
254
  var TranscribeStreamingServiceException = class _TranscribeStreamingServiceException extends import_smithy_client.ServiceException {
@@ -537,6 +544,11 @@ var MediaEncoding = {
537
544
  var MedicalContentIdentificationType = {
538
545
  PHI: "PHI"
539
546
  };
547
+ var Pronouns = {
548
+ HE_HIM: "HE_HIM",
549
+ SHE_HER: "SHE_HER",
550
+ THEY_THEM: "THEY_THEM"
551
+ };
540
552
  var MedicalScribeSessionControlEventType = {
541
553
  END_OF_SESSION: "END_OF_SESSION"
542
554
  };
@@ -633,10 +645,25 @@ var CallAnalyticsTranscriptResultStreamFilterSensitiveLog = /* @__PURE__ */ __na
633
645
  return { ServiceUnavailableException: obj.ServiceUnavailableException };
634
646
  if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
635
647
  }, "CallAnalyticsTranscriptResultStreamFilterSensitiveLog");
648
+ var MedicalScribePatientContextFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
649
+ ...obj,
650
+ ...obj.Pronouns && { Pronouns: import_smithy_client.SENSITIVE_STRING }
651
+ }), "MedicalScribePatientContextFilterSensitiveLog");
652
+ var MedicalScribeContextFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
653
+ ...obj,
654
+ ...obj.PatientContext && { PatientContext: MedicalScribePatientContextFilterSensitiveLog(obj.PatientContext) }
655
+ }), "MedicalScribeContextFilterSensitiveLog");
656
+ var MedicalScribeConfigurationEventFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
657
+ ...obj,
658
+ ...obj.MedicalScribeContext && {
659
+ MedicalScribeContext: MedicalScribeContextFilterSensitiveLog(obj.MedicalScribeContext)
660
+ }
661
+ }), "MedicalScribeConfigurationEventFilterSensitiveLog");
636
662
  var MedicalScribeInputStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
637
663
  if (obj.AudioEvent !== void 0) return { AudioEvent: obj.AudioEvent };
638
664
  if (obj.SessionControlEvent !== void 0) return { SessionControlEvent: obj.SessionControlEvent };
639
- if (obj.ConfigurationEvent !== void 0) return { ConfigurationEvent: obj.ConfigurationEvent };
665
+ if (obj.ConfigurationEvent !== void 0)
666
+ return { ConfigurationEvent: MedicalScribeConfigurationEventFilterSensitiveLog(obj.ConfigurationEvent) };
640
667
  if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
641
668
  }, "MedicalScribeInputStreamFilterSensitiveLog");
642
669
  var MedicalScribeResultStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
@@ -1494,6 +1521,7 @@ var de_MedicalScribeStreamDetails = /* @__PURE__ */ __name((output, context) =>
1494
1521
  LanguageCode: import_smithy_client.expectString,
1495
1522
  MediaEncoding: import_smithy_client.expectString,
1496
1523
  MediaSampleRateHertz: import_smithy_client.expectInt32,
1524
+ MedicalScribeContextProvided: import_smithy_client.expectBoolean,
1497
1525
  PostStreamAnalyticsResult: import_smithy_client._json,
1498
1526
  PostStreamAnalyticsSettings: import_smithy_client._json,
1499
1527
  ResourceAccessRoleArn: import_smithy_client.expectString,
@@ -1841,6 +1869,7 @@ var TranscribeStreaming = class extends TranscribeStreamingClient {
1841
1869
  LanguageCode,
1842
1870
  MediaEncoding,
1843
1871
  MedicalContentIdentificationType,
1872
+ Pronouns,
1844
1873
  MedicalScribeSessionControlEventType,
1845
1874
  MedicalScribeInputStream,
1846
1875
  MedicalScribeTranscriptItemType,
@@ -1853,6 +1882,9 @@ var TranscribeStreaming = class extends TranscribeStreamingClient {
1853
1882
  TranscriptResultStream,
1854
1883
  AudioStreamFilterSensitiveLog,
1855
1884
  CallAnalyticsTranscriptResultStreamFilterSensitiveLog,
1885
+ MedicalScribePatientContextFilterSensitiveLog,
1886
+ MedicalScribeContextFilterSensitiveLog,
1887
+ MedicalScribeConfigurationEventFilterSensitiveLog,
1856
1888
  MedicalScribeInputStreamFilterSensitiveLog,
1857
1889
  MedicalScribeResultStreamFilterSensitiveLog,
1858
1890
  MedicalTranscriptResultStreamFilterSensitiveLog,
@@ -1,3 +1,4 @@
1
+ import { SENSITIVE_STRING } from "@smithy/smithy-client";
1
2
  import { TranscribeStreamingServiceException as __BaseException } from "./TranscribeStreamingServiceException";
2
3
  export const ItemType = {
3
4
  PRONUNCIATION: "pronunciation",
@@ -249,6 +250,11 @@ export const MediaEncoding = {
249
250
  export const MedicalContentIdentificationType = {
250
251
  PHI: "PHI",
251
252
  };
253
+ export const Pronouns = {
254
+ HE_HIM: "HE_HIM",
255
+ SHE_HER: "SHE_HER",
256
+ THEY_THEM: "THEY_THEM",
257
+ };
252
258
  export const MedicalScribeSessionControlEventType = {
253
259
  END_OF_SESSION: "END_OF_SESSION",
254
260
  };
@@ -370,13 +376,27 @@ export const CallAnalyticsTranscriptResultStreamFilterSensitiveLog = (obj) => {
370
376
  if (obj.$unknown !== undefined)
371
377
  return { [obj.$unknown[0]]: "UNKNOWN" };
372
378
  };
379
+ export const MedicalScribePatientContextFilterSensitiveLog = (obj) => ({
380
+ ...obj,
381
+ ...(obj.Pronouns && { Pronouns: SENSITIVE_STRING }),
382
+ });
383
+ export const MedicalScribeContextFilterSensitiveLog = (obj) => ({
384
+ ...obj,
385
+ ...(obj.PatientContext && { PatientContext: MedicalScribePatientContextFilterSensitiveLog(obj.PatientContext) }),
386
+ });
387
+ export const MedicalScribeConfigurationEventFilterSensitiveLog = (obj) => ({
388
+ ...obj,
389
+ ...(obj.MedicalScribeContext && {
390
+ MedicalScribeContext: MedicalScribeContextFilterSensitiveLog(obj.MedicalScribeContext),
391
+ }),
392
+ });
373
393
  export const MedicalScribeInputStreamFilterSensitiveLog = (obj) => {
374
394
  if (obj.AudioEvent !== undefined)
375
395
  return { AudioEvent: obj.AudioEvent };
376
396
  if (obj.SessionControlEvent !== undefined)
377
397
  return { SessionControlEvent: obj.SessionControlEvent };
378
398
  if (obj.ConfigurationEvent !== undefined)
379
- return { ConfigurationEvent: obj.ConfigurationEvent };
399
+ return { ConfigurationEvent: MedicalScribeConfigurationEventFilterSensitiveLog(obj.ConfigurationEvent) };
380
400
  if (obj.$unknown !== undefined)
381
401
  return { [obj.$unknown[0]]: "UNKNOWN" };
382
402
  };
@@ -802,6 +802,7 @@ const de_MedicalScribeStreamDetails = (output, context) => {
802
802
  LanguageCode: __expectString,
803
803
  MediaEncoding: __expectString,
804
804
  MediaSampleRateHertz: __expectInt32,
805
+ MedicalScribeContextProvided: __expectBoolean,
805
806
  PostStreamAnalyticsResult: _json,
806
807
  PostStreamAnalyticsSettings: _json,
807
808
  ResourceAccessRoleArn: __expectString,
@@ -81,6 +81,7 @@ declare const GetMedicalScribeStreamCommand_base: {
81
81
  * // FailureReason: "STRING_VALUE",
82
82
  * // },
83
83
  * // },
84
+ * // MedicalScribeContextProvided: true || false,
84
85
  * // },
85
86
  * // };
86
87
  *
@@ -31,7 +31,7 @@ declare const StartMedicalScribeStreamCommand_base: {
31
31
  * Amazon Web Services HealthScribe
32
32
  * and the transcription results are streamed to your application.</p>
33
33
  * <p>When you start a stream, you first specify the stream configuration in a <code>MedicalScribeConfigurationEvent</code>.
34
- * This event includes channel definitions, encryption settings, and post-stream analytics settings, such as the output configuration for aggregated transcript and clinical note generation. These are additional
34
+ * This event includes channel definitions, encryption settings, medical scribe context, and post-stream analytics settings, such as the output configuration for aggregated transcript and clinical note generation. These are additional
35
35
  * streaming session configurations beyond those provided in your initial start request headers. Whether you are starting a new session or resuming an existing session,
36
36
  * your first event must be a <code>MedicalScribeConfigurationEvent</code>. </p>
37
37
  * <p>
@@ -108,6 +108,11 @@ declare const StartMedicalScribeStreamCommand_base: {
108
108
  * NoteTemplate: "HISTORY_AND_PHYSICAL" || "GIRPP" || "DAP" || "SIRP" || "BIRP" || "BEHAVIORAL_SOAP" || "PHYSICAL_SOAP",
109
109
  * },
110
110
  * },
111
+ * MedicalScribeContext: { // MedicalScribeContext
112
+ * PatientContext: { // MedicalScribePatientContext
113
+ * Pronouns: "HE_HIM" || "SHE_HER" || "THEY_THEM",
114
+ * },
115
+ * },
111
116
  * },
112
117
  * },
113
118
  * };
@@ -1285,6 +1285,11 @@ export interface MedicalScribeStreamDetails {
1285
1285
  * @public
1286
1286
  */
1287
1287
  PostStreamAnalyticsResult?: MedicalScribePostStreamAnalyticsResult | undefined;
1288
+ /**
1289
+ * <p>Indicates whether the <code>MedicalScribeContext</code> object was provided when the stream was started.</p>
1290
+ * @public
1291
+ */
1292
+ MedicalScribeContextProvided?: boolean | undefined;
1288
1293
  }
1289
1294
  /**
1290
1295
  * @public
@@ -1593,6 +1598,42 @@ export interface MedicalScribeAudioEvent {
1593
1598
  */
1594
1599
  AudioChunk: Uint8Array | undefined;
1595
1600
  }
1601
+ /**
1602
+ * @public
1603
+ * @enum
1604
+ */
1605
+ export declare const Pronouns: {
1606
+ readonly HE_HIM: "HE_HIM";
1607
+ readonly SHE_HER: "SHE_HER";
1608
+ readonly THEY_THEM: "THEY_THEM";
1609
+ };
1610
+ /**
1611
+ * @public
1612
+ */
1613
+ export type Pronouns = (typeof Pronouns)[keyof typeof Pronouns];
1614
+ /**
1615
+ * <p>Contains patient-specific information. </p>
1616
+ * @public
1617
+ */
1618
+ export interface MedicalScribePatientContext {
1619
+ /**
1620
+ * <p>The patient's preferred pronouns that the user wants to provide as a context for clinical note generation .</p>
1621
+ * @public
1622
+ */
1623
+ Pronouns?: Pronouns | undefined;
1624
+ }
1625
+ /**
1626
+ * <p>The <code>MedicalScribeContext</code> object that contains contextual information which is used during clinical note generation
1627
+ * to add relevant context to the note.</p>
1628
+ * @public
1629
+ */
1630
+ export interface MedicalScribeContext {
1631
+ /**
1632
+ * <p>Contains patient-specific information used to customize the clinical note generation.</p>
1633
+ * @public
1634
+ */
1635
+ PatientContext?: MedicalScribePatientContext | undefined;
1636
+ }
1596
1637
  /**
1597
1638
  * <p>Specify details to configure the streaming session, including channel definitions, encryption settings, post-stream analytics
1598
1639
  * settings, resource access role ARN and vocabulary settings.
@@ -1661,6 +1702,12 @@ export interface MedicalScribeConfigurationEvent {
1661
1702
  * @public
1662
1703
  */
1663
1704
  PostStreamAnalyticsSettings: MedicalScribePostStreamAnalyticsSettings | undefined;
1705
+ /**
1706
+ * <p>The <code>MedicalScribeContext</code> object that contains contextual information used to generate
1707
+ * customized clinical notes.</p>
1708
+ * @public
1709
+ */
1710
+ MedicalScribeContext?: MedicalScribeContext | undefined;
1664
1711
  }
1665
1712
  /**
1666
1713
  * @public
@@ -3353,6 +3400,18 @@ export declare const AudioStreamFilterSensitiveLog: (obj: AudioStream) => any;
3353
3400
  * @internal
3354
3401
  */
3355
3402
  export declare const CallAnalyticsTranscriptResultStreamFilterSensitiveLog: (obj: CallAnalyticsTranscriptResultStream) => any;
3403
+ /**
3404
+ * @internal
3405
+ */
3406
+ export declare const MedicalScribePatientContextFilterSensitiveLog: (obj: MedicalScribePatientContext) => any;
3407
+ /**
3408
+ * @internal
3409
+ */
3410
+ export declare const MedicalScribeContextFilterSensitiveLog: (obj: MedicalScribeContext) => any;
3411
+ /**
3412
+ * @internal
3413
+ */
3414
+ export declare const MedicalScribeConfigurationEventFilterSensitiveLog: (obj: MedicalScribeConfigurationEvent) => any;
3356
3415
  /**
3357
3416
  * @internal
3358
3417
  */
@@ -402,6 +402,7 @@ export interface MedicalScribeStreamDetails {
402
402
  PostStreamAnalyticsResult?:
403
403
  | MedicalScribePostStreamAnalyticsResult
404
404
  | undefined;
405
+ MedicalScribeContextProvided?: boolean | undefined;
405
406
  }
406
407
  export interface GetMedicalScribeStreamResponse {
407
408
  MedicalScribeStreamDetails?: MedicalScribeStreamDetails | undefined;
@@ -517,6 +518,18 @@ export interface MedicalResult {
517
518
  export interface MedicalScribeAudioEvent {
518
519
  AudioChunk: Uint8Array | undefined;
519
520
  }
521
+ export declare const Pronouns: {
522
+ readonly HE_HIM: "HE_HIM";
523
+ readonly SHE_HER: "SHE_HER";
524
+ readonly THEY_THEM: "THEY_THEM";
525
+ };
526
+ export type Pronouns = (typeof Pronouns)[keyof typeof Pronouns];
527
+ export interface MedicalScribePatientContext {
528
+ Pronouns?: Pronouns | undefined;
529
+ }
530
+ export interface MedicalScribeContext {
531
+ PatientContext?: MedicalScribePatientContext | undefined;
532
+ }
520
533
  export interface MedicalScribeConfigurationEvent {
521
534
  VocabularyName?: string | undefined;
522
535
  VocabularyFilterName?: string | undefined;
@@ -527,6 +540,7 @@ export interface MedicalScribeConfigurationEvent {
527
540
  PostStreamAnalyticsSettings:
528
541
  | MedicalScribePostStreamAnalyticsSettings
529
542
  | undefined;
543
+ MedicalScribeContext?: MedicalScribeContext | undefined;
530
544
  }
531
545
  export declare const MedicalScribeSessionControlEventType: {
532
546
  readonly END_OF_SESSION: "END_OF_SESSION";
@@ -1038,6 +1052,15 @@ export declare const AudioStreamFilterSensitiveLog: (obj: AudioStream) => any;
1038
1052
  export declare const CallAnalyticsTranscriptResultStreamFilterSensitiveLog: (
1039
1053
  obj: CallAnalyticsTranscriptResultStream
1040
1054
  ) => any;
1055
+ export declare const MedicalScribePatientContextFilterSensitiveLog: (
1056
+ obj: MedicalScribePatientContext
1057
+ ) => any;
1058
+ export declare const MedicalScribeContextFilterSensitiveLog: (
1059
+ obj: MedicalScribeContext
1060
+ ) => any;
1061
+ export declare const MedicalScribeConfigurationEventFilterSensitiveLog: (
1062
+ obj: MedicalScribeConfigurationEvent
1063
+ ) => any;
1041
1064
  export declare const MedicalScribeInputStreamFilterSensitiveLog: (
1042
1065
  obj: MedicalScribeInputStream
1043
1066
  ) => any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-transcribe-streaming",
3
3
  "description": "AWS SDK for JavaScript Transcribe Streaming Client for Node.js, Browser and React Native",
4
- "version": "3.864.0",
4
+ "version": "3.872.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-transcribe-streaming",
@@ -23,7 +23,7 @@
23
23
  "@aws-crypto/sha256-browser": "5.2.0",
24
24
  "@aws-crypto/sha256-js": "5.2.0",
25
25
  "@aws-sdk/core": "3.864.0",
26
- "@aws-sdk/credential-provider-node": "3.864.0",
26
+ "@aws-sdk/credential-provider-node": "3.872.0",
27
27
  "@aws-sdk/eventstream-handler-node": "3.862.0",
28
28
  "@aws-sdk/middleware-eventstream": "3.862.0",
29
29
  "@aws-sdk/middleware-host-header": "3.862.0",