@aws-sdk/client-transcribe-streaming 3.301.0 → 3.305.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.
@@ -1,5 +1,5 @@
1
1
  import { Sha256 } from "@aws-crypto/sha256-js";
2
- import { eventStreamPayloadHandler, WebSocketHandler } from "@aws-sdk/middleware-sdk-transcribe-streaming";
2
+ import { eventStreamPayloadHandler } from "@aws-sdk/middleware-sdk-transcribe-streaming";
3
3
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
4
4
  export const getRuntimeConfig = (config) => {
5
5
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -8,7 +8,6 @@ export const getRuntimeConfig = (config) => {
8
8
  ...config,
9
9
  runtime: "react-native",
10
10
  eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? (() => eventStreamPayloadHandler),
11
- requestHandler: config?.requestHandler ?? new WebSocketHandler(),
12
11
  sha256: config?.sha256 ?? Sha256,
13
12
  };
14
13
  };
@@ -4,9 +4,9 @@ import { EndpointInputConfig, EndpointResolvedConfig } from "@aws-sdk/middleware
4
4
  import { EventStreamInputConfig, EventStreamResolvedConfig } from "@aws-sdk/middleware-eventstream";
5
5
  import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
6
6
  import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
7
- import { WebSocketInputConfig, WebSocketResolvedConfig } from "@aws-sdk/middleware-sdk-transcribe-streaming";
8
7
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
9
8
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
9
+ import { WebSocketInputConfig, WebSocketResolvedConfig } from "@aws-sdk/middleware-websocket";
10
10
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
11
11
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
12
12
  import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, EventStreamPayloadHandlerProvider as __EventStreamPayloadHandlerProvider, 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 "@aws-sdk/types";
@@ -38,11 +38,16 @@ export interface Entity {
38
38
  }
39
39
  /**
40
40
  * @public
41
+ * @enum
41
42
  */
42
- export declare enum ItemType {
43
- PRONUNCIATION = "pronunciation",
44
- PUNCTUATION = "punctuation"
45
- }
43
+ export declare const ItemType: {
44
+ readonly PRONUNCIATION: "pronunciation";
45
+ readonly PUNCTUATION: "punctuation";
46
+ };
47
+ /**
48
+ * @public
49
+ */
50
+ export type ItemType = (typeof ItemType)[keyof typeof ItemType];
46
51
  /**
47
52
  * @public
48
53
  * <p>A word, phrase, or punctuation mark in your transcription output, along with various associated
@@ -124,11 +129,16 @@ export interface AudioEvent {
124
129
  }
125
130
  /**
126
131
  * @public
132
+ * @enum
127
133
  */
128
- export declare enum ParticipantRole {
129
- AGENT = "AGENT",
130
- CUSTOMER = "CUSTOMER"
131
- }
134
+ export declare const ParticipantRole: {
135
+ readonly AGENT: "AGENT";
136
+ readonly CUSTOMER: "CUSTOMER";
137
+ };
138
+ /**
139
+ * @public
140
+ */
141
+ export type ParticipantRole = (typeof ParticipantRole)[keyof typeof ParticipantRole];
132
142
  /**
133
143
  * @public
134
144
  * <p>Makes it possible to specify which speaker is on which audio channel. For example, if your
@@ -149,11 +159,16 @@ export interface ChannelDefinition {
149
159
  }
150
160
  /**
151
161
  * @public
162
+ * @enum
152
163
  */
153
- export declare enum ContentRedactionOutput {
154
- REDACTED = "redacted",
155
- REDACTED_AND_UNREDACTED = "redacted_and_unredacted"
156
- }
164
+ export declare const ContentRedactionOutput: {
165
+ readonly REDACTED: "redacted";
166
+ readonly REDACTED_AND_UNREDACTED: "redacted_and_unredacted";
167
+ };
168
+ /**
169
+ * @public
170
+ */
171
+ export type ContentRedactionOutput = (typeof ContentRedactionOutput)[keyof typeof ContentRedactionOutput];
157
172
  /**
158
173
  * @public
159
174
  * <p>Allows you to specify additional settings for your streaming Call Analytics
@@ -393,20 +408,25 @@ export interface CallAnalyticsItem {
393
408
  */
394
409
  Stable?: boolean;
395
410
  }
411
+ /**
412
+ * @public
413
+ * @enum
414
+ */
415
+ export declare const CallAnalyticsLanguageCode: {
416
+ readonly DE_DE: "de-DE";
417
+ readonly EN_AU: "en-AU";
418
+ readonly EN_GB: "en-GB";
419
+ readonly EN_US: "en-US";
420
+ readonly ES_US: "es-US";
421
+ readonly FR_CA: "fr-CA";
422
+ readonly FR_FR: "fr-FR";
423
+ readonly IT_IT: "it-IT";
424
+ readonly PT_BR: "pt-BR";
425
+ };
396
426
  /**
397
427
  * @public
398
428
  */
399
- export declare enum CallAnalyticsLanguageCode {
400
- DE_DE = "de-DE",
401
- EN_AU = "en-AU",
402
- EN_GB = "en-GB",
403
- EN_US = "en-US",
404
- ES_US = "es-US",
405
- FR_CA = "fr-CA",
406
- FR_FR = "fr-FR",
407
- IT_IT = "it-IT",
408
- PT_BR = "pt-BR"
409
- }
429
+ export type CallAnalyticsLanguageCode = (typeof CallAnalyticsLanguageCode)[keyof typeof CallAnalyticsLanguageCode];
410
430
  /**
411
431
  * @public
412
432
  * <p>Contains the timestamp range (start time through end time) of a matched category.</p>
@@ -531,13 +551,18 @@ export interface IssueDetected {
531
551
  }
532
552
  /**
533
553
  * @public
554
+ * @enum
534
555
  */
535
- export declare enum Sentiment {
536
- MIXED = "MIXED",
537
- NEGATIVE = "NEGATIVE",
538
- NEUTRAL = "NEUTRAL",
539
- POSITIVE = "POSITIVE"
540
- }
556
+ export declare const Sentiment: {
557
+ readonly MIXED: "MIXED";
558
+ readonly NEGATIVE: "NEGATIVE";
559
+ readonly NEUTRAL: "NEUTRAL";
560
+ readonly POSITIVE: "POSITIVE";
561
+ };
562
+ /**
563
+ * @public
564
+ */
565
+ export type Sentiment = (typeof Sentiment)[keyof typeof Sentiment];
541
566
  /**
542
567
  * @public
543
568
  * <p>Contains set of transcription results from one or more audio segments, along with additional
@@ -725,35 +750,50 @@ export declare namespace CallAnalyticsTranscriptResultStream {
725
750
  }
726
751
  /**
727
752
  * @public
753
+ * @enum
728
754
  */
729
- export declare enum ContentIdentificationType {
730
- PII = "PII"
731
- }
755
+ export declare const ContentIdentificationType: {
756
+ readonly PII: "PII";
757
+ };
732
758
  /**
733
759
  * @public
734
760
  */
735
- export declare enum ContentRedactionType {
736
- PII = "PII"
737
- }
761
+ export type ContentIdentificationType = (typeof ContentIdentificationType)[keyof typeof ContentIdentificationType];
738
762
  /**
739
763
  * @public
764
+ * @enum
740
765
  */
741
- export declare enum LanguageCode {
742
- DE_DE = "de-DE",
743
- EN_AU = "en-AU",
744
- EN_GB = "en-GB",
745
- EN_US = "en-US",
746
- ES_US = "es-US",
747
- FR_CA = "fr-CA",
748
- FR_FR = "fr-FR",
749
- HI_IN = "hi-IN",
750
- IT_IT = "it-IT",
751
- JA_JP = "ja-JP",
752
- KO_KR = "ko-KR",
753
- PT_BR = "pt-BR",
754
- TH_TH = "th-TH",
755
- ZH_CN = "zh-CN"
756
- }
766
+ export declare const ContentRedactionType: {
767
+ readonly PII: "PII";
768
+ };
769
+ /**
770
+ * @public
771
+ */
772
+ export type ContentRedactionType = (typeof ContentRedactionType)[keyof typeof ContentRedactionType];
773
+ /**
774
+ * @public
775
+ * @enum
776
+ */
777
+ export declare const LanguageCode: {
778
+ readonly DE_DE: "de-DE";
779
+ readonly EN_AU: "en-AU";
780
+ readonly EN_GB: "en-GB";
781
+ readonly EN_US: "en-US";
782
+ readonly ES_US: "es-US";
783
+ readonly FR_CA: "fr-CA";
784
+ readonly FR_FR: "fr-FR";
785
+ readonly HI_IN: "hi-IN";
786
+ readonly IT_IT: "it-IT";
787
+ readonly JA_JP: "ja-JP";
788
+ readonly KO_KR: "ko-KR";
789
+ readonly PT_BR: "pt-BR";
790
+ readonly TH_TH: "th-TH";
791
+ readonly ZH_CN: "zh-CN";
792
+ };
793
+ /**
794
+ * @public
795
+ */
796
+ export type LanguageCode = (typeof LanguageCode)[keyof typeof LanguageCode];
757
797
  /**
758
798
  * @public
759
799
  * <p>The language code that represents the language identified in your audio, including the associated
@@ -773,12 +813,17 @@ export interface LanguageWithScore {
773
813
  }
774
814
  /**
775
815
  * @public
816
+ * @enum
776
817
  */
777
- export declare enum MediaEncoding {
778
- FLAC = "flac",
779
- OGG_OPUS = "ogg-opus",
780
- PCM = "pcm"
781
- }
818
+ export declare const MediaEncoding: {
819
+ readonly FLAC: "flac";
820
+ readonly OGG_OPUS: "ogg-opus";
821
+ readonly PCM: "pcm";
822
+ };
823
+ /**
824
+ * @public
825
+ */
826
+ export type MediaEncoding = (typeof MediaEncoding)[keyof typeof MediaEncoding];
782
827
  /**
783
828
  * @public
784
829
  * <p>Contains entities identified as personal health information (PHI) in your
@@ -869,10 +914,15 @@ export interface MedicalAlternative {
869
914
  }
870
915
  /**
871
916
  * @public
917
+ * @enum
872
918
  */
873
- export declare enum MedicalContentIdentificationType {
874
- PHI = "PHI"
875
- }
919
+ export declare const MedicalContentIdentificationType: {
920
+ readonly PHI: "PHI";
921
+ };
922
+ /**
923
+ * @public
924
+ */
925
+ export type MedicalContentIdentificationType = (typeof MedicalContentIdentificationType)[keyof typeof MedicalContentIdentificationType];
876
926
  /**
877
927
  * @public
878
928
  * <p>The <code>Result</code> associated with a
@@ -1059,12 +1109,17 @@ export declare namespace MedicalTranscriptResultStream {
1059
1109
  }
1060
1110
  /**
1061
1111
  * @public
1112
+ * @enum
1062
1113
  */
1063
- export declare enum PartialResultsStability {
1064
- HIGH = "high",
1065
- LOW = "low",
1066
- MEDIUM = "medium"
1067
- }
1114
+ export declare const PartialResultsStability: {
1115
+ readonly HIGH: "high";
1116
+ readonly LOW: "low";
1117
+ readonly MEDIUM: "medium";
1118
+ };
1119
+ /**
1120
+ * @public
1121
+ */
1122
+ export type PartialResultsStability = (typeof PartialResultsStability)[keyof typeof PartialResultsStability];
1068
1123
  /**
1069
1124
  * @public
1070
1125
  * <p>The <code>Result</code> associated with a
@@ -1115,23 +1170,33 @@ export interface Result {
1115
1170
  }
1116
1171
  /**
1117
1172
  * @public
1173
+ * @enum
1118
1174
  */
1119
- export declare enum Specialty {
1120
- CARDIOLOGY = "CARDIOLOGY",
1121
- NEUROLOGY = "NEUROLOGY",
1122
- ONCOLOGY = "ONCOLOGY",
1123
- PRIMARYCARE = "PRIMARYCARE",
1124
- RADIOLOGY = "RADIOLOGY",
1125
- UROLOGY = "UROLOGY"
1126
- }
1175
+ export declare const Specialty: {
1176
+ readonly CARDIOLOGY: "CARDIOLOGY";
1177
+ readonly NEUROLOGY: "NEUROLOGY";
1178
+ readonly ONCOLOGY: "ONCOLOGY";
1179
+ readonly PRIMARYCARE: "PRIMARYCARE";
1180
+ readonly RADIOLOGY: "RADIOLOGY";
1181
+ readonly UROLOGY: "UROLOGY";
1182
+ };
1127
1183
  /**
1128
1184
  * @public
1129
1185
  */
1130
- export declare enum VocabularyFilterMethod {
1131
- MASK = "mask",
1132
- REMOVE = "remove",
1133
- TAG = "tag"
1134
- }
1186
+ export type Specialty = (typeof Specialty)[keyof typeof Specialty];
1187
+ /**
1188
+ * @public
1189
+ * @enum
1190
+ */
1191
+ export declare const VocabularyFilterMethod: {
1192
+ readonly MASK: "mask";
1193
+ readonly REMOVE: "remove";
1194
+ readonly TAG: "tag";
1195
+ };
1196
+ /**
1197
+ * @public
1198
+ */
1199
+ export type VocabularyFilterMethod = (typeof VocabularyFilterMethod)[keyof typeof VocabularyFilterMethod];
1135
1200
  /**
1136
1201
  * @public
1137
1202
  */
@@ -1334,11 +1399,16 @@ export interface StartCallAnalyticsStreamTranscriptionResponse {
1334
1399
  }
1335
1400
  /**
1336
1401
  * @public
1402
+ * @enum
1337
1403
  */
1338
- export declare enum Type {
1339
- CONVERSATION = "CONVERSATION",
1340
- DICTATION = "DICTATION"
1341
- }
1404
+ export declare const Type: {
1405
+ readonly CONVERSATION: "CONVERSATION";
1406
+ readonly DICTATION: "DICTATION";
1407
+ };
1408
+ /**
1409
+ * @public
1410
+ */
1411
+ export type Type = (typeof Type)[keyof typeof Type];
1342
1412
  /**
1343
1413
  * @public
1344
1414
  */
@@ -1,4 +1,4 @@
1
- import { WebSocketHandler } from "@aws-sdk/middleware-sdk-transcribe-streaming";
1
+ import { WebSocketFetchHandler as WebSocketRequestHandler } from "@aws-sdk/middleware-websocket";
2
2
  import { TranscribeStreamingClientConfig } from "./TranscribeStreamingClient";
3
3
  /**
4
4
  * @internal
@@ -13,7 +13,7 @@ export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig)
13
13
  eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
15
15
  region: string | import("@aws-sdk/types").Provider<any>;
16
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | WebSocketHandler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | WebSocketRequestHandler;
17
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
18
18
  sha256: import("@aws-sdk/types").HashConstructor;
19
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,4 +1,3 @@
1
- import { WebSocketHandler } from "@aws-sdk/middleware-sdk-transcribe-streaming";
2
1
  import { TranscribeStreamingClientConfig } from "./TranscribeStreamingClient";
3
2
  /**
4
3
  * @internal
@@ -6,8 +5,8 @@ import { TranscribeStreamingClientConfig } from "./TranscribeStreamingClient";
6
5
  export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig) => {
7
6
  runtime: string;
8
7
  eventStreamPayloadHandlerProvider: import("@aws-sdk/types").EventStreamPayloadHandlerProvider;
9
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | WebSocketHandler;
10
8
  sha256: import("@aws-sdk/types").HashConstructor;
9
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/middleware-websocket").WebSocketFetchHandler;
11
10
  apiVersion: string;
12
11
  urlParser: import("@aws-sdk/types").UrlParser;
13
12
  bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
@@ -22,10 +22,6 @@ import {
22
22
  RetryInputConfig,
23
23
  RetryResolvedConfig,
24
24
  } from "@aws-sdk/middleware-retry";
25
- import {
26
- WebSocketInputConfig,
27
- WebSocketResolvedConfig,
28
- } from "@aws-sdk/middleware-sdk-transcribe-streaming";
29
25
  import {
30
26
  AwsAuthInputConfig,
31
27
  AwsAuthResolvedConfig,
@@ -34,6 +30,10 @@ import {
34
30
  UserAgentInputConfig,
35
31
  UserAgentResolvedConfig,
36
32
  } from "@aws-sdk/middleware-user-agent";
33
+ import {
34
+ WebSocketInputConfig,
35
+ WebSocketResolvedConfig,
36
+ } from "@aws-sdk/middleware-websocket";
37
37
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
38
38
  import {
39
39
  Client as __Client,
@@ -8,10 +8,11 @@ export interface Entity {
8
8
  Content?: string;
9
9
  Confidence?: number;
10
10
  }
11
- export declare enum ItemType {
12
- PRONUNCIATION = "pronunciation",
13
- PUNCTUATION = "punctuation",
14
- }
11
+ export declare const ItemType: {
12
+ readonly PRONUNCIATION: "pronunciation";
13
+ readonly PUNCTUATION: "punctuation";
14
+ };
15
+ export type ItemType = (typeof ItemType)[keyof typeof ItemType];
15
16
  export interface Item {
16
17
  StartTime?: number;
17
18
  EndTime?: number;
@@ -30,18 +31,22 @@ export interface Alternative {
30
31
  export interface AudioEvent {
31
32
  AudioChunk?: Uint8Array;
32
33
  }
33
- export declare enum ParticipantRole {
34
- AGENT = "AGENT",
35
- CUSTOMER = "CUSTOMER",
36
- }
34
+ export declare const ParticipantRole: {
35
+ readonly AGENT: "AGENT";
36
+ readonly CUSTOMER: "CUSTOMER";
37
+ };
38
+ export type ParticipantRole =
39
+ (typeof ParticipantRole)[keyof typeof ParticipantRole];
37
40
  export interface ChannelDefinition {
38
41
  ChannelId: number | undefined;
39
42
  ParticipantRole: ParticipantRole | string | undefined;
40
43
  }
41
- export declare enum ContentRedactionOutput {
42
- REDACTED = "redacted",
43
- REDACTED_AND_UNREDACTED = "redacted_and_unredacted",
44
- }
44
+ export declare const ContentRedactionOutput: {
45
+ readonly REDACTED: "redacted";
46
+ readonly REDACTED_AND_UNREDACTED: "redacted_and_unredacted";
47
+ };
48
+ export type ContentRedactionOutput =
49
+ (typeof ContentRedactionOutput)[keyof typeof ContentRedactionOutput];
45
50
  export interface PostCallAnalyticsSettings {
46
51
  OutputLocation: string | undefined;
47
52
  DataAccessRoleArn: string | undefined;
@@ -104,17 +109,19 @@ export interface CallAnalyticsItem {
104
109
  VocabularyFilterMatch?: boolean;
105
110
  Stable?: boolean;
106
111
  }
107
- export declare enum CallAnalyticsLanguageCode {
108
- DE_DE = "de-DE",
109
- EN_AU = "en-AU",
110
- EN_GB = "en-GB",
111
- EN_US = "en-US",
112
- ES_US = "es-US",
113
- FR_CA = "fr-CA",
114
- FR_FR = "fr-FR",
115
- IT_IT = "it-IT",
116
- PT_BR = "pt-BR",
117
- }
112
+ export declare const CallAnalyticsLanguageCode: {
113
+ readonly DE_DE: "de-DE";
114
+ readonly EN_AU: "en-AU";
115
+ readonly EN_GB: "en-GB";
116
+ readonly EN_US: "en-US";
117
+ readonly ES_US: "es-US";
118
+ readonly FR_CA: "fr-CA";
119
+ readonly FR_FR: "fr-FR";
120
+ readonly IT_IT: "it-IT";
121
+ readonly PT_BR: "pt-BR";
122
+ };
123
+ export type CallAnalyticsLanguageCode =
124
+ (typeof CallAnalyticsLanguageCode)[keyof typeof CallAnalyticsLanguageCode];
118
125
  export interface TimestampRange {
119
126
  BeginOffsetMillis?: number;
120
127
  EndOffsetMillis?: number;
@@ -163,12 +170,13 @@ export interface CharacterOffsets {
163
170
  export interface IssueDetected {
164
171
  CharacterOffsets?: CharacterOffsets;
165
172
  }
166
- export declare enum Sentiment {
167
- MIXED = "MIXED",
168
- NEGATIVE = "NEGATIVE",
169
- NEUTRAL = "NEUTRAL",
170
- POSITIVE = "POSITIVE",
171
- }
173
+ export declare const Sentiment: {
174
+ readonly MIXED: "MIXED";
175
+ readonly NEGATIVE: "NEGATIVE";
176
+ readonly NEUTRAL: "NEUTRAL";
177
+ readonly POSITIVE: "POSITIVE";
178
+ };
179
+ export type Sentiment = (typeof Sentiment)[keyof typeof Sentiment];
172
180
  export interface UtteranceEvent {
173
181
  UtteranceId?: string;
174
182
  IsPartial?: boolean;
@@ -286,37 +294,43 @@ export declare namespace CallAnalyticsTranscriptResultStream {
286
294
  visitor: Visitor<T>
287
295
  ) => T;
288
296
  }
289
- export declare enum ContentIdentificationType {
290
- PII = "PII",
291
- }
292
- export declare enum ContentRedactionType {
293
- PII = "PII",
294
- }
295
- export declare enum LanguageCode {
296
- DE_DE = "de-DE",
297
- EN_AU = "en-AU",
298
- EN_GB = "en-GB",
299
- EN_US = "en-US",
300
- ES_US = "es-US",
301
- FR_CA = "fr-CA",
302
- FR_FR = "fr-FR",
303
- HI_IN = "hi-IN",
304
- IT_IT = "it-IT",
305
- JA_JP = "ja-JP",
306
- KO_KR = "ko-KR",
307
- PT_BR = "pt-BR",
308
- TH_TH = "th-TH",
309
- ZH_CN = "zh-CN",
310
- }
297
+ export declare const ContentIdentificationType: {
298
+ readonly PII: "PII";
299
+ };
300
+ export type ContentIdentificationType =
301
+ (typeof ContentIdentificationType)[keyof typeof ContentIdentificationType];
302
+ export declare const ContentRedactionType: {
303
+ readonly PII: "PII";
304
+ };
305
+ export type ContentRedactionType =
306
+ (typeof ContentRedactionType)[keyof typeof ContentRedactionType];
307
+ export declare const LanguageCode: {
308
+ readonly DE_DE: "de-DE";
309
+ readonly EN_AU: "en-AU";
310
+ readonly EN_GB: "en-GB";
311
+ readonly EN_US: "en-US";
312
+ readonly ES_US: "es-US";
313
+ readonly FR_CA: "fr-CA";
314
+ readonly FR_FR: "fr-FR";
315
+ readonly HI_IN: "hi-IN";
316
+ readonly IT_IT: "it-IT";
317
+ readonly JA_JP: "ja-JP";
318
+ readonly KO_KR: "ko-KR";
319
+ readonly PT_BR: "pt-BR";
320
+ readonly TH_TH: "th-TH";
321
+ readonly ZH_CN: "zh-CN";
322
+ };
323
+ export type LanguageCode = (typeof LanguageCode)[keyof typeof LanguageCode];
311
324
  export interface LanguageWithScore {
312
325
  LanguageCode?: LanguageCode | string;
313
326
  Score?: number;
314
327
  }
315
- export declare enum MediaEncoding {
316
- FLAC = "flac",
317
- OGG_OPUS = "ogg-opus",
318
- PCM = "pcm",
319
- }
328
+ export declare const MediaEncoding: {
329
+ readonly FLAC: "flac";
330
+ readonly OGG_OPUS: "ogg-opus";
331
+ readonly PCM: "pcm";
332
+ };
333
+ export type MediaEncoding = (typeof MediaEncoding)[keyof typeof MediaEncoding];
320
334
  export interface MedicalEntity {
321
335
  StartTime?: number;
322
336
  EndTime?: number;
@@ -337,9 +351,11 @@ export interface MedicalAlternative {
337
351
  Items?: MedicalItem[];
338
352
  Entities?: MedicalEntity[];
339
353
  }
340
- export declare enum MedicalContentIdentificationType {
341
- PHI = "PHI",
342
- }
354
+ export declare const MedicalContentIdentificationType: {
355
+ readonly PHI: "PHI";
356
+ };
357
+ export type MedicalContentIdentificationType =
358
+ (typeof MedicalContentIdentificationType)[keyof typeof MedicalContentIdentificationType];
343
359
  export interface MedicalResult {
344
360
  ResultId?: string;
345
361
  StartTime?: number;
@@ -440,11 +456,13 @@ export declare namespace MedicalTranscriptResultStream {
440
456
  visitor: Visitor<T>
441
457
  ) => T;
442
458
  }
443
- export declare enum PartialResultsStability {
444
- HIGH = "high",
445
- LOW = "low",
446
- MEDIUM = "medium",
447
- }
459
+ export declare const PartialResultsStability: {
460
+ readonly HIGH: "high";
461
+ readonly LOW: "low";
462
+ readonly MEDIUM: "medium";
463
+ };
464
+ export type PartialResultsStability =
465
+ (typeof PartialResultsStability)[keyof typeof PartialResultsStability];
448
466
  export interface Result {
449
467
  ResultId?: string;
450
468
  StartTime?: number;
@@ -455,19 +473,22 @@ export interface Result {
455
473
  LanguageCode?: LanguageCode | string;
456
474
  LanguageIdentification?: LanguageWithScore[];
457
475
  }
458
- export declare enum Specialty {
459
- CARDIOLOGY = "CARDIOLOGY",
460
- NEUROLOGY = "NEUROLOGY",
461
- ONCOLOGY = "ONCOLOGY",
462
- PRIMARYCARE = "PRIMARYCARE",
463
- RADIOLOGY = "RADIOLOGY",
464
- UROLOGY = "UROLOGY",
465
- }
466
- export declare enum VocabularyFilterMethod {
467
- MASK = "mask",
468
- REMOVE = "remove",
469
- TAG = "tag",
470
- }
476
+ export declare const Specialty: {
477
+ readonly CARDIOLOGY: "CARDIOLOGY";
478
+ readonly NEUROLOGY: "NEUROLOGY";
479
+ readonly ONCOLOGY: "ONCOLOGY";
480
+ readonly PRIMARYCARE: "PRIMARYCARE";
481
+ readonly RADIOLOGY: "RADIOLOGY";
482
+ readonly UROLOGY: "UROLOGY";
483
+ };
484
+ export type Specialty = (typeof Specialty)[keyof typeof Specialty];
485
+ export declare const VocabularyFilterMethod: {
486
+ readonly MASK: "mask";
487
+ readonly REMOVE: "remove";
488
+ readonly TAG: "tag";
489
+ };
490
+ export type VocabularyFilterMethod =
491
+ (typeof VocabularyFilterMethod)[keyof typeof VocabularyFilterMethod];
471
492
  export interface StartCallAnalyticsStreamTranscriptionRequest {
472
493
  LanguageCode: CallAnalyticsLanguageCode | string | undefined;
473
494
  MediaSampleRateHertz: number | undefined;
@@ -501,10 +522,11 @@ export interface StartCallAnalyticsStreamTranscriptionResponse {
501
522
  ContentRedactionType?: ContentRedactionType | string;
502
523
  PiiEntityTypes?: string;
503
524
  }
504
- export declare enum Type {
505
- CONVERSATION = "CONVERSATION",
506
- DICTATION = "DICTATION",
507
- }
525
+ export declare const Type: {
526
+ readonly CONVERSATION: "CONVERSATION";
527
+ readonly DICTATION: "DICTATION";
528
+ };
529
+ export type Type = (typeof Type)[keyof typeof Type];
508
530
  export interface StartMedicalStreamTranscriptionRequest {
509
531
  LanguageCode: LanguageCode | string | undefined;
510
532
  MediaSampleRateHertz: number | undefined;