@aws-sdk/client-transcribe 3.863.0 → 3.866.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
@@ -67,15 +67,18 @@ __export(index_exports, {
67
67
  ListVocabularyFiltersCommand: () => ListVocabularyFiltersCommand,
68
68
  MediaFormat: () => MediaFormat,
69
69
  MedicalContentIdentificationType: () => MedicalContentIdentificationType,
70
+ MedicalScribeContextFilterSensitiveLog: () => MedicalScribeContextFilterSensitiveLog,
70
71
  MedicalScribeJobStatus: () => MedicalScribeJobStatus,
71
72
  MedicalScribeLanguageCode: () => MedicalScribeLanguageCode,
72
73
  MedicalScribeNoteTemplate: () => MedicalScribeNoteTemplate,
73
74
  MedicalScribeParticipantRole: () => MedicalScribeParticipantRole,
75
+ MedicalScribePatientContextFilterSensitiveLog: () => MedicalScribePatientContextFilterSensitiveLog,
74
76
  ModelStatus: () => ModelStatus,
75
77
  NotFoundException: () => NotFoundException,
76
78
  OutputLocationType: () => OutputLocationType,
77
79
  ParticipantRole: () => ParticipantRole,
78
80
  PiiEntityType: () => PiiEntityType,
81
+ Pronouns: () => Pronouns,
79
82
  RedactionOutput: () => RedactionOutput,
80
83
  RedactionType: () => RedactionType,
81
84
  Rule: () => Rule,
@@ -83,6 +86,7 @@ __export(index_exports, {
83
86
  Specialty: () => Specialty,
84
87
  StartCallAnalyticsJobCommand: () => StartCallAnalyticsJobCommand,
85
88
  StartMedicalScribeJobCommand: () => StartMedicalScribeJobCommand,
89
+ StartMedicalScribeJobRequestFilterSensitiveLog: () => StartMedicalScribeJobRequestFilterSensitiveLog,
86
90
  StartMedicalTranscriptionJobCommand: () => StartMedicalTranscriptionJobCommand,
87
91
  StartTranscriptionJobCommand: () => StartTranscriptionJobCommand,
88
92
  SubtitleFormat: () => SubtitleFormat,
@@ -268,6 +272,9 @@ var import_core2 = require("@aws-sdk/core");
268
272
 
269
273
 
270
274
 
275
+ // src/models/models_0.ts
276
+
277
+
271
278
  // src/models/TranscribeServiceException.ts
272
279
 
273
280
  var TranscribeServiceException = class _TranscribeServiceException extends import_smithy_client.ServiceException {
@@ -639,6 +646,25 @@ var OutputLocationType = {
639
646
  CUSTOMER_BUCKET: "CUSTOMER_BUCKET",
640
647
  SERVICE_BUCKET: "SERVICE_BUCKET"
641
648
  };
649
+ var Pronouns = {
650
+ HE_HIM: "HE_HIM",
651
+ SHE_HER: "SHE_HER",
652
+ THEY_THEM: "THEY_THEM"
653
+ };
654
+ var MedicalScribePatientContextFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
655
+ ...obj,
656
+ ...obj.Pronouns && { Pronouns: import_smithy_client.SENSITIVE_STRING }
657
+ }), "MedicalScribePatientContextFilterSensitiveLog");
658
+ var MedicalScribeContextFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
659
+ ...obj,
660
+ ...obj.PatientContext && { PatientContext: MedicalScribePatientContextFilterSensitiveLog(obj.PatientContext) }
661
+ }), "MedicalScribeContextFilterSensitiveLog");
662
+ var StartMedicalScribeJobRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
663
+ ...obj,
664
+ ...obj.MedicalScribeContext && {
665
+ MedicalScribeContext: MedicalScribeContextFilterSensitiveLog(obj.MedicalScribeContext)
666
+ }
667
+ }), "StartMedicalScribeJobRequestFilterSensitiveLog");
642
668
 
643
669
  // src/protocols/Aws_json1_1.ts
644
670
  var se_CreateCallAnalyticsCategoryCommand = /* @__PURE__ */ __name(async (input, context) => {
@@ -1750,6 +1776,7 @@ var de_MedicalScribeJob = /* @__PURE__ */ __name((output, context) => {
1750
1776
  FailureReason: import_smithy_client.expectString,
1751
1777
  LanguageCode: import_smithy_client.expectString,
1752
1778
  Media: import_smithy_client._json,
1779
+ MedicalScribeContextProvided: import_smithy_client.expectBoolean,
1753
1780
  MedicalScribeJobName: import_smithy_client.expectString,
1754
1781
  MedicalScribeJobStatus: import_smithy_client.expectString,
1755
1782
  MedicalScribeOutput: import_smithy_client._json,
@@ -2499,7 +2526,7 @@ var StartMedicalScribeJobCommand = class extends import_smithy_client.Command.cl
2499
2526
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2500
2527
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2501
2528
  ];
2502
- }).s("Transcribe", "StartMedicalScribeJob", {}).n("TranscribeClient", "StartMedicalScribeJobCommand").f(void 0, void 0).ser(se_StartMedicalScribeJobCommand).de(de_StartMedicalScribeJobCommand).build() {
2529
+ }).s("Transcribe", "StartMedicalScribeJob", {}).n("TranscribeClient", "StartMedicalScribeJobCommand").f(StartMedicalScribeJobRequestFilterSensitiveLog, void 0).ser(se_StartMedicalScribeJobCommand).de(de_StartMedicalScribeJobCommand).build() {
2503
2530
  static {
2504
2531
  __name(this, "StartMedicalScribeJobCommand");
2505
2532
  }
@@ -2806,6 +2833,10 @@ var paginateListVocabularyFilters = (0, import_core.createPaginator)(TranscribeC
2806
2833
  Type,
2807
2834
  SubtitleFormat,
2808
2835
  ToxicityCategory,
2809
- OutputLocationType
2836
+ OutputLocationType,
2837
+ Pronouns,
2838
+ MedicalScribePatientContextFilterSensitiveLog,
2839
+ MedicalScribeContextFilterSensitiveLog,
2840
+ StartMedicalScribeJobRequestFilterSensitiveLog
2810
2841
  });
2811
2842
 
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { StartMedicalScribeJobRequestFilterSensitiveLog, } from "../models/models_0";
5
6
  import { de_StartMedicalScribeJobCommand, se_StartMedicalScribeJobCommand } from "../protocols/Aws_json1_1";
6
7
  export { $Command };
7
8
  export class StartMedicalScribeJobCommand extends $Command
@@ -15,7 +16,7 @@ export class StartMedicalScribeJobCommand extends $Command
15
16
  })
16
17
  .s("Transcribe", "StartMedicalScribeJob", {})
17
18
  .n("TranscribeClient", "StartMedicalScribeJobCommand")
18
- .f(void 0, void 0)
19
+ .f(StartMedicalScribeJobRequestFilterSensitiveLog, void 0)
19
20
  .ser(se_StartMedicalScribeJobCommand)
20
21
  .de(de_StartMedicalScribeJobCommand)
21
22
  .build() {
@@ -1,3 +1,4 @@
1
+ import { SENSITIVE_STRING } from "@smithy/smithy-client";
1
2
  import { TranscribeServiceException as __BaseException } from "./TranscribeServiceException";
2
3
  export class BadRequestException extends __BaseException {
3
4
  name = "BadRequestException";
@@ -328,3 +329,22 @@ export const OutputLocationType = {
328
329
  CUSTOMER_BUCKET: "CUSTOMER_BUCKET",
329
330
  SERVICE_BUCKET: "SERVICE_BUCKET",
330
331
  };
332
+ export const Pronouns = {
333
+ HE_HIM: "HE_HIM",
334
+ SHE_HER: "SHE_HER",
335
+ THEY_THEM: "THEY_THEM",
336
+ };
337
+ export const MedicalScribePatientContextFilterSensitiveLog = (obj) => ({
338
+ ...obj,
339
+ ...(obj.Pronouns && { Pronouns: SENSITIVE_STRING }),
340
+ });
341
+ export const MedicalScribeContextFilterSensitiveLog = (obj) => ({
342
+ ...obj,
343
+ ...(obj.PatientContext && { PatientContext: MedicalScribePatientContextFilterSensitiveLog(obj.PatientContext) }),
344
+ });
345
+ export const StartMedicalScribeJobRequestFilterSensitiveLog = (obj) => ({
346
+ ...obj,
347
+ ...(obj.MedicalScribeContext && {
348
+ MedicalScribeContext: MedicalScribeContextFilterSensitiveLog(obj.MedicalScribeContext),
349
+ }),
350
+ });
@@ -1118,6 +1118,7 @@ const de_MedicalScribeJob = (output, context) => {
1118
1118
  FailureReason: __expectString,
1119
1119
  LanguageCode: __expectString,
1120
1120
  Media: _json,
1121
+ MedicalScribeContextProvided: __expectBoolean,
1121
1122
  MedicalScribeJobName: __expectString,
1122
1123
  MedicalScribeJobStatus: __expectString,
1123
1124
  MedicalScribeOutput: _json,
@@ -81,6 +81,7 @@ declare const GetMedicalScribeJobCommand_base: {
81
81
  * // ParticipantRole: "PATIENT" || "CLINICIAN", // required
82
82
  * // },
83
83
  * // ],
84
+ * // MedicalScribeContextProvided: true || false,
84
85
  * // Tags: [ // TagList
85
86
  * // { // Tag
86
87
  * // Key: "STRING_VALUE", // required
@@ -61,7 +61,7 @@ declare const StartMedicalScribeJobCommand_base: {
61
61
  * </li>
62
62
  * <li>
63
63
  * <p>
64
- * <code>Settings</code>: A <code>MedicalScribeSettings</code> obect
64
+ * <code>Settings</code>: A <code>MedicalScribeSettings</code> object
65
65
  * that must set exactly one of <code>ShowSpeakerLabels</code> or <code>ChannelIdentification</code> to true.
66
66
  * If <code>ShowSpeakerLabels</code> is true, <code>MaxSpeakerLabels</code> must also be set.
67
67
  * </p>
@@ -114,6 +114,11 @@ declare const StartMedicalScribeJobCommand_base: {
114
114
  * Value: "STRING_VALUE", // required
115
115
  * },
116
116
  * ],
117
+ * MedicalScribeContext: { // MedicalScribeContext
118
+ * PatientContext: { // MedicalScribePatientContext
119
+ * Pronouns: "HE_HIM" || "SHE_HER" || "THEY_THEM",
120
+ * },
121
+ * },
117
122
  * };
118
123
  * const command = new StartMedicalScribeJobCommand(input);
119
124
  * const response = await client.send(command);
@@ -152,6 +157,7 @@ declare const StartMedicalScribeJobCommand_base: {
152
157
  * // ParticipantRole: "PATIENT" || "CLINICIAN", // required
153
158
  * // },
154
159
  * // ],
160
+ * // MedicalScribeContextProvided: true || false,
155
161
  * // Tags: [ // TagList
156
162
  * // { // Tag
157
163
  * // Key: "STRING_VALUE", // required
@@ -2565,7 +2565,12 @@ export interface MedicalScribeJob {
2565
2565
  */
2566
2566
  ChannelDefinitions?: MedicalScribeChannelDefinition[] | undefined;
2567
2567
  /**
2568
- * <p>Adds one or more custom tags, each in the form of a key:value pair, to the Medica Scribe job.</p>
2568
+ * <p>Indicates whether the <code>MedicalScribeContext</code> object was provided when the Medical Scribe job was started.</p>
2569
+ * @public
2570
+ */
2571
+ MedicalScribeContextProvided?: boolean | undefined;
2572
+ /**
2573
+ * <p>Adds one or more custom tags, each in the form of a key:value pair, to the Medical Scribe job.</p>
2569
2574
  * <p>To learn more about using tags with Amazon Transcribe, refer to <a href="https://docs.aws.amazon.com/transcribe/latest/dg/tagging.html">Tagging
2570
2575
  * resources</a>.</p>
2571
2576
  * @public
@@ -4419,6 +4424,42 @@ export interface ListVocabularyFiltersResponse {
4419
4424
  */
4420
4425
  VocabularyFilters?: VocabularyFilterInfo[] | undefined;
4421
4426
  }
4427
+ /**
4428
+ * @public
4429
+ * @enum
4430
+ */
4431
+ export declare const Pronouns: {
4432
+ readonly HE_HIM: "HE_HIM";
4433
+ readonly SHE_HER: "SHE_HER";
4434
+ readonly THEY_THEM: "THEY_THEM";
4435
+ };
4436
+ /**
4437
+ * @public
4438
+ */
4439
+ export type Pronouns = (typeof Pronouns)[keyof typeof Pronouns];
4440
+ /**
4441
+ * <p>Contains patient-specific information used to customize the clinical note generation.</p>
4442
+ * @public
4443
+ */
4444
+ export interface MedicalScribePatientContext {
4445
+ /**
4446
+ * <p>The patient's preferred pronouns that the user wants to provide as a context for clinical note generation.</p>
4447
+ * @public
4448
+ */
4449
+ Pronouns?: Pronouns | undefined;
4450
+ }
4451
+ /**
4452
+ * <p>The <code>MedicalScribeContext</code> object that contains contextual information used to generate
4453
+ * customized clinical notes.</p>
4454
+ * @public
4455
+ */
4456
+ export interface MedicalScribeContext {
4457
+ /**
4458
+ * <p>Contains patient-specific information.</p>
4459
+ * @public
4460
+ */
4461
+ PatientContext?: MedicalScribePatientContext | undefined;
4462
+ }
4422
4463
  /**
4423
4464
  * @public
4424
4465
  */
@@ -4676,12 +4717,18 @@ export interface StartMedicalScribeJobRequest {
4676
4717
  */
4677
4718
  ChannelDefinitions?: MedicalScribeChannelDefinition[] | undefined;
4678
4719
  /**
4679
- * <p>Adds one or more custom tags, each in the form of a key:value pair, to the Medica Scribe job.</p>
4720
+ * <p>Adds one or more custom tags, each in the form of a key:value pair, to the Medical Scribe job.</p>
4680
4721
  * <p>To learn more about using tags with Amazon Transcribe, refer to <a href="https://docs.aws.amazon.com/transcribe/latest/dg/tagging.html">Tagging
4681
4722
  * resources</a>.</p>
4682
4723
  * @public
4683
4724
  */
4684
4725
  Tags?: Tag[] | undefined;
4726
+ /**
4727
+ * <p>The <code>MedicalScribeContext</code> object that contains contextual information which is used during
4728
+ * clinical note generation to add relevant context to the note.</p>
4729
+ * @public
4730
+ */
4731
+ MedicalScribeContext?: MedicalScribeContext | undefined;
4685
4732
  }
4686
4733
  /**
4687
4734
  * @public
@@ -5577,3 +5624,15 @@ export interface UpdateVocabularyFilterResponse {
5577
5624
  */
5578
5625
  LastModifiedTime?: Date | undefined;
5579
5626
  }
5627
+ /**
5628
+ * @internal
5629
+ */
5630
+ export declare const MedicalScribePatientContextFilterSensitiveLog: (obj: MedicalScribePatientContext) => any;
5631
+ /**
5632
+ * @internal
5633
+ */
5634
+ export declare const MedicalScribeContextFilterSensitiveLog: (obj: MedicalScribeContext) => any;
5635
+ /**
5636
+ * @internal
5637
+ */
5638
+ export declare const StartMedicalScribeJobRequestFilterSensitiveLog: (obj: StartMedicalScribeJobRequest) => any;
@@ -629,6 +629,7 @@ export interface MedicalScribeJob {
629
629
  Settings?: MedicalScribeSettings | undefined;
630
630
  DataAccessRoleArn?: string | undefined;
631
631
  ChannelDefinitions?: MedicalScribeChannelDefinition[] | undefined;
632
+ MedicalScribeContextProvided?: boolean | undefined;
632
633
  Tags?: Tag[] | undefined;
633
634
  }
634
635
  export interface GetMedicalScribeJobResponse {
@@ -954,6 +955,18 @@ export interface ListVocabularyFiltersResponse {
954
955
  NextToken?: string | undefined;
955
956
  VocabularyFilters?: VocabularyFilterInfo[] | undefined;
956
957
  }
958
+ export declare const Pronouns: {
959
+ readonly HE_HIM: "HE_HIM";
960
+ readonly SHE_HER: "SHE_HER";
961
+ readonly THEY_THEM: "THEY_THEM";
962
+ };
963
+ export type Pronouns = (typeof Pronouns)[keyof typeof Pronouns];
964
+ export interface MedicalScribePatientContext {
965
+ Pronouns?: Pronouns | undefined;
966
+ }
967
+ export interface MedicalScribeContext {
968
+ PatientContext?: MedicalScribePatientContext | undefined;
969
+ }
957
970
  export interface StartCallAnalyticsJobRequest {
958
971
  CallAnalyticsJobName: string | undefined;
959
972
  Media: Media | undefined;
@@ -977,6 +990,7 @@ export interface StartMedicalScribeJobRequest {
977
990
  Settings: MedicalScribeSettings | undefined;
978
991
  ChannelDefinitions?: MedicalScribeChannelDefinition[] | undefined;
979
992
  Tags?: Tag[] | undefined;
993
+ MedicalScribeContext?: MedicalScribeContext | undefined;
980
994
  }
981
995
  export interface StartMedicalScribeJobResponse {
982
996
  MedicalScribeJob?: MedicalScribeJob | undefined;
@@ -1084,3 +1098,12 @@ export interface UpdateVocabularyFilterResponse {
1084
1098
  LanguageCode?: LanguageCode | undefined;
1085
1099
  LastModifiedTime?: Date | undefined;
1086
1100
  }
1101
+ export declare const MedicalScribePatientContextFilterSensitiveLog: (
1102
+ obj: MedicalScribePatientContext
1103
+ ) => any;
1104
+ export declare const MedicalScribeContextFilterSensitiveLog: (
1105
+ obj: MedicalScribeContext
1106
+ ) => any;
1107
+ export declare const StartMedicalScribeJobRequestFilterSensitiveLog: (
1108
+ obj: StartMedicalScribeJobRequest
1109
+ ) => any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-transcribe",
3
3
  "description": "AWS SDK for JavaScript Transcribe Client for Node.js, Browser and React Native",
4
- "version": "3.863.0",
4
+ "version": "3.866.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",
@@ -20,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.863.0",
24
- "@aws-sdk/credential-provider-node": "3.863.0",
23
+ "@aws-sdk/core": "3.864.0",
24
+ "@aws-sdk/credential-provider-node": "3.864.0",
25
25
  "@aws-sdk/middleware-host-header": "3.862.0",
26
26
  "@aws-sdk/middleware-logger": "3.862.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.862.0",
28
- "@aws-sdk/middleware-user-agent": "3.863.0",
28
+ "@aws-sdk/middleware-user-agent": "3.864.0",
29
29
  "@aws-sdk/region-config-resolver": "3.862.0",
30
30
  "@aws-sdk/types": "3.862.0",
31
31
  "@aws-sdk/util-endpoints": "3.862.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.862.0",
33
- "@aws-sdk/util-user-agent-node": "3.863.0",
33
+ "@aws-sdk/util-user-agent-node": "3.864.0",
34
34
  "@smithy/config-resolver": "^4.1.5",
35
35
  "@smithy/core": "^3.8.0",
36
36
  "@smithy/fetch-http-handler": "^5.1.1",