@aws-sdk/client-transcribe-streaming 3.1075.0 → 3.1077.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
@@ -1,25 +1,63 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { resolveEventStreamConfig, getEventStreamPlugin } = require("@aws-sdk/middleware-eventstream");
4
3
  const { resolveWebSocketConfig, getWebSocketPlugin } = require("@aws-sdk/middleware-websocket");
5
4
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
6
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
7
6
  exports.$Command = Command;
8
7
  exports.__Client = Client;
9
- const { resolveRegionConfig } = require("@smithy/core/config");
10
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
11
- const { resolveEventStreamSerdeConfig } = require("@smithy/core/event-streams");
12
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
13
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
14
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
15
- const { resolveHttpAuthSchemeConfig, defaultTranscribeStreamingHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
16
- const { getRuntimeConfig } = require("./runtimeConfig");
17
- const { GetMedicalScribeStream$, StartCallAnalyticsStreamTranscription$, StartMedicalScribeStream$, StartMedicalStreamTranscription$, StartStreamTranscription$ } = require("./schemas/schemas_0");
18
- __exportStar(require("./schemas/schemas_0"), exports);
8
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
9
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
10
+ const { eventStreamSerdeProvider, resolveEventStreamSerdeConfig } = require("@smithy/core/event-streams");
11
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
12
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
13
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
14
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
15
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
16
+ const { eventStreamPayloadHandlerProvider } = require("@aws-sdk/eventstream-handler-node");
17
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
18
+ const { streamCollector, NodeHttp2Handler } = require("@smithy/node-http-handler");
19
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
20
+ const { Sha256 } = require("@smithy/core/checksum");
19
21
  const { getTranscribeStreamingPlugin } = require("@aws-sdk/middleware-sdk-transcribe-streaming");
20
- __exportStar(require("./models/errors"), exports);
21
- const { TranscribeStreamingServiceException } = require("./models/TranscribeStreamingServiceException");
22
- exports.TranscribeStreamingServiceException = TranscribeStreamingServiceException;
22
+
23
+ const defaultTranscribeStreamingHttpAuthSchemeParametersProvider = async (config, context, input) => {
24
+ return {
25
+ operation: getSmithyContext(context).operation,
26
+ region: await normalizeProvider(config.region)() || (() => {
27
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
28
+ })(),
29
+ };
30
+ };
31
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
32
+ return {
33
+ schemeId: "aws.auth#sigv4",
34
+ signingProperties: {
35
+ name: "transcribe",
36
+ region: authParameters.region,
37
+ },
38
+ propertiesExtractor: (config, context) => ({
39
+ signingProperties: {
40
+ config,
41
+ context,
42
+ },
43
+ }),
44
+ };
45
+ }
46
+ const defaultTranscribeStreamingHttpAuthSchemeProvider = (authParameters) => {
47
+ const options = [];
48
+ switch (authParameters.operation) {
49
+ default: {
50
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
51
+ }
52
+ }
53
+ return options;
54
+ };
55
+ const resolveHttpAuthSchemeConfig = (config) => {
56
+ const config_0 = resolveAwsSdkSigV4Config(config);
57
+ return Object.assign(config_0, {
58
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
59
+ });
60
+ };
23
61
 
24
62
  const resolveClientEndpointParameters = (options) => {
25
63
  return Object.assign(options, {
@@ -35,6 +73,835 @@ const commonParams = {
35
73
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
36
74
  };
37
75
 
76
+ var version = "3.1076.0";
77
+ var packageInfo = {
78
+ version: version};
79
+
80
+ const k = "ref";
81
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
82
+ const _data = {
83
+ conditions: [
84
+ [c, [g]],
85
+ [c, j],
86
+ ["aws.partition", j, d],
87
+ [e, [{ [k]: "UseFIPS" }, b]],
88
+ [e, [{ [k]: "UseDualStack" }, b]],
89
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
90
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
91
+ ],
92
+ results: [
93
+ [a],
94
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
95
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
96
+ [g, i],
97
+ ["https://transcribestreaming-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
98
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
99
+ ["https://transcribestreaming-fips.{Region}.{PartitionResult#dnsSuffix}", i],
100
+ [a, "FIPS is enabled but this partition does not support FIPS"],
101
+ ["https://transcribestreaming.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
102
+ [a, "DualStack is enabled but this partition does not support DualStack"],
103
+ ["https://transcribestreaming.{Region}.{PartitionResult#dnsSuffix}", i],
104
+ [a, "Invalid Configuration: Missing Region"]
105
+ ]
106
+ };
107
+ const root = 2;
108
+ const r = 100_000_000;
109
+ const nodes = new Int32Array([
110
+ -1, 1, -1,
111
+ 0, 12, 3,
112
+ 1, 4, r + 11,
113
+ 2, 5, r + 11,
114
+ 3, 8, 6,
115
+ 4, 7, r + 10,
116
+ 5, r + 8, r + 9,
117
+ 4, 10, 9,
118
+ 6, r + 6, r + 7,
119
+ 5, 11, r + 5,
120
+ 6, r + 4, r + 5,
121
+ 3, r + 1, 13,
122
+ 4, r + 2, r + 3,
123
+ ]);
124
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
125
+
126
+ const cache = new EndpointCache({
127
+ size: 50,
128
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
129
+ });
130
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
131
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
132
+ endpointParams: endpointParams,
133
+ logger: context.logger,
134
+ }));
135
+ };
136
+ customEndpointFunctions.aws = awsEndpointFunctions;
137
+
138
+ class TranscribeStreamingServiceException extends ServiceException {
139
+ constructor(options) {
140
+ super(options);
141
+ Object.setPrototypeOf(this, TranscribeStreamingServiceException.prototype);
142
+ }
143
+ }
144
+
145
+ class BadRequestException extends TranscribeStreamingServiceException {
146
+ name = "BadRequestException";
147
+ $fault = "client";
148
+ Message;
149
+ constructor(opts) {
150
+ super({
151
+ name: "BadRequestException",
152
+ $fault: "client",
153
+ ...opts,
154
+ });
155
+ Object.setPrototypeOf(this, BadRequestException.prototype);
156
+ this.Message = opts.Message;
157
+ }
158
+ }
159
+ class ConflictException extends TranscribeStreamingServiceException {
160
+ name = "ConflictException";
161
+ $fault = "client";
162
+ Message;
163
+ constructor(opts) {
164
+ super({
165
+ name: "ConflictException",
166
+ $fault: "client",
167
+ ...opts,
168
+ });
169
+ Object.setPrototypeOf(this, ConflictException.prototype);
170
+ this.Message = opts.Message;
171
+ }
172
+ }
173
+ class InternalFailureException extends TranscribeStreamingServiceException {
174
+ name = "InternalFailureException";
175
+ $fault = "server";
176
+ Message;
177
+ constructor(opts) {
178
+ super({
179
+ name: "InternalFailureException",
180
+ $fault: "server",
181
+ ...opts,
182
+ });
183
+ Object.setPrototypeOf(this, InternalFailureException.prototype);
184
+ this.Message = opts.Message;
185
+ }
186
+ }
187
+ class LimitExceededException extends TranscribeStreamingServiceException {
188
+ name = "LimitExceededException";
189
+ $fault = "client";
190
+ Message;
191
+ constructor(opts) {
192
+ super({
193
+ name: "LimitExceededException",
194
+ $fault: "client",
195
+ ...opts,
196
+ });
197
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
198
+ this.Message = opts.Message;
199
+ }
200
+ }
201
+ class ServiceUnavailableException extends TranscribeStreamingServiceException {
202
+ name = "ServiceUnavailableException";
203
+ $fault = "server";
204
+ Message;
205
+ constructor(opts) {
206
+ super({
207
+ name: "ServiceUnavailableException",
208
+ $fault: "server",
209
+ ...opts,
210
+ });
211
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
212
+ this.Message = opts.Message;
213
+ }
214
+ }
215
+ class ResourceNotFoundException extends TranscribeStreamingServiceException {
216
+ name = "ResourceNotFoundException";
217
+ $fault = "client";
218
+ Message;
219
+ constructor(opts) {
220
+ super({
221
+ name: "ResourceNotFoundException",
222
+ $fault: "client",
223
+ ...opts,
224
+ });
225
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
226
+ this.Message = opts.Message;
227
+ }
228
+ }
229
+
230
+ const _A = "Alternative";
231
+ const _AC = "AudioChunk";
232
+ const _AE = "AudioEvent";
233
+ const _AL = "AlternativeList";
234
+ const _AS = "AudioStream";
235
+ const _Al = "Alternatives";
236
+ const _B = "Begin";
237
+ const _BAT = "BeginAudioTime";
238
+ const _BOM = "BeginOffsetMillis";
239
+ const _BRE = "BadRequestException";
240
+ const _C = "Category";
241
+ const _CAE = "CallAnalyticsEntity";
242
+ const _CAEL = "CallAnalyticsEntityList";
243
+ const _CAI = "CallAnalyticsItem";
244
+ const _CAIL = "CallAnalyticsItemList";
245
+ const _CALI = "CallAnalyticsLanguageIdentification";
246
+ const _CALWS = "CallAnalyticsLanguageWithScore";
247
+ const _CATRS = "CallAnalyticsTranscriptResultStream";
248
+ const _CD = "ChannelDefinition";
249
+ const _CDh = "ChannelDefinitions";
250
+ const _CE = "ConflictException";
251
+ const _CEa = "CategoryEvent";
252
+ const _CEo = "ConfigurationEvent";
253
+ const _CI = "ChannelId";
254
+ const _CIT = "ContentIdentificationType";
255
+ const _CNGR = "ClinicalNoteGenerationResult";
256
+ const _CNGS = "ClinicalNoteGenerationSettings";
257
+ const _CNOL = "ClinicalNoteOutputLocation";
258
+ const _CO = "CharacterOffsets";
259
+ const _CRO = "ContentRedactionOutput";
260
+ const _CRT = "ContentRedactionType";
261
+ const _Co = "Content";
262
+ const _Con = "Confidence";
263
+ const _DARA = "DataAccessRoleArn";
264
+ const _E = "Entities";
265
+ const _EAT = "EndAudioTime";
266
+ const _ECI = "EnableChannelIdentification";
267
+ const _EL = "EntityList";
268
+ const _EOM = "EndOffsetMillis";
269
+ const _EPRS = "EnablePartialResultsStabilization";
270
+ const _ES = "EncryptionSettings";
271
+ const _ET = "EndTime";
272
+ const _En = "End";
273
+ const _Ent = "Entity";
274
+ const _FR = "FailureReason";
275
+ const _GMSS = "GetMedicalScribeStream";
276
+ const _GMSSR = "GetMedicalScribeStreamRequest";
277
+ const _GMSSRe = "GetMedicalScribeStreamResponse";
278
+ const _I = "Items";
279
+ const _ID = "IssueDetected";
280
+ const _IDs = "IssuesDetected";
281
+ const _IFE = "InternalFailureException";
282
+ const _IL = "IdentifyLanguage";
283
+ const _ILt = "ItemList";
284
+ const _IML = "IdentifyMultipleLanguages";
285
+ const _IP = "IsPartial";
286
+ const _IS = "InputStream";
287
+ const _It = "Item";
288
+ const _KEC = "KmsEncryptionContext";
289
+ const _KKI = "KmsKeyId";
290
+ const _LC = "LanguageCode";
291
+ const _LEE = "LimitExceededException";
292
+ const _LI = "LanguageIdentification";
293
+ const _LMN = "LanguageModelName";
294
+ const _LO = "LanguageOptions";
295
+ const _LWS = "LanguageWithScore";
296
+ const _M = "Message";
297
+ const _MA = "MedicalAlternative";
298
+ const _MAL = "MedicalAlternativeList";
299
+ const _MC = "MatchedCategories";
300
+ const _MCD = "MatchedCategoryDetails";
301
+ const _MD = "MatchedDetails";
302
+ const _ME = "MedicalEntity";
303
+ const _MEL = "MedicalEntityList";
304
+ const _MEe = "MediaEncoding";
305
+ const _MI = "MedicalItem";
306
+ const _MIL = "MedicalItemList";
307
+ const _MR = "MedicalResult";
308
+ const _MRL = "MedicalResultList";
309
+ const _MSAE = "MedicalScribeAudioEvent";
310
+ const _MSC = "MedicalScribeContext";
311
+ const _MSCD = "MedicalScribeChannelDefinition";
312
+ const _MSCDe = "MedicalScribeChannelDefinitions";
313
+ const _MSCE = "MedicalScribeConfigurationEvent";
314
+ const _MSCP = "MedicalScribeContextProvided";
315
+ const _MSES = "MedicalScribeEncryptionSettings";
316
+ const _MSIS = "MedicalScribeInputStream";
317
+ const _MSPC = "MedicalScribePatientContext";
318
+ const _MSPSAR = "MedicalScribePostStreamAnalyticsResult";
319
+ const _MSPSAS = "MedicalScribePostStreamAnalyticsSettings";
320
+ const _MSRH = "MediaSampleRateHertz";
321
+ const _MSRS = "MedicalScribeResultStream";
322
+ const _MSSCE = "MedicalScribeSessionControlEvent";
323
+ const _MSSD = "MedicalScribeStreamDetails";
324
+ const _MSTE = "MedicalScribeTranscriptEvent";
325
+ const _MSTI = "MedicalScribeTranscriptItem";
326
+ const _MSTIL = "MedicalScribeTranscriptItemList";
327
+ const _MSTS = "MedicalScribeTranscriptSegment";
328
+ const _MT = "MedicalTranscript";
329
+ const _MTE = "MedicalTranscriptEvent";
330
+ const _MTRS = "MedicalTranscriptResultStream";
331
+ const _NOC = "NumberOfChannels";
332
+ const _NT = "NoteTemplate";
333
+ const _OBN = "OutputBucketName";
334
+ const _OEKMSKI = "OutputEncryptionKMSKeyId";
335
+ const _OL = "OutputLocation";
336
+ const _P = "Pronouns";
337
+ const _PC = "PatientContext";
338
+ const _PCAS = "PostCallAnalyticsSettings";
339
+ const _PET = "PiiEntityTypes";
340
+ const _PL = "PreferredLanguage";
341
+ const _POI = "PointsOfInterest";
342
+ const _PR = "ParticipantRole";
343
+ const _PRS = "PartialResultsStability";
344
+ const _PSAR = "PostStreamAnalyticsResult";
345
+ const _PSAS = "PostStreamAnalyticsSettings";
346
+ const _R = "Results";
347
+ const _RARA = "ResourceAccessRoleArn";
348
+ const _RI = "ResultId";
349
+ const _RIe = "RequestId";
350
+ const _RL = "ResultList";
351
+ const _RNFE = "ResourceNotFoundException";
352
+ const _RS = "ResultStream";
353
+ const _Re = "Result";
354
+ const _S = "Stable";
355
+ const _SCA = "StreamCreatedAt";
356
+ const _SCAST = "StartCallAnalyticsStreamTranscription";
357
+ const _SCASTR = "StartCallAnalyticsStreamTranscriptionRequest";
358
+ const _SCASTRt = "StartCallAnalyticsStreamTranscriptionResponse";
359
+ const _SCE = "SessionControlEvent";
360
+ const _SEA = "StreamEndedAt";
361
+ const _SI = "SessionId";
362
+ const _SIe = "SegmentId";
363
+ const _SMSS = "StartMedicalScribeStream";
364
+ const _SMSSR = "StartMedicalScribeStreamRequest";
365
+ const _SMSSRt = "StartMedicalScribeStreamResponse";
366
+ const _SMST = "StartMedicalStreamTranscription";
367
+ const _SMSTR = "StartMedicalStreamTranscriptionRequest";
368
+ const _SMSTRt = "StartMedicalStreamTranscriptionResponse";
369
+ const _SRW = "SessionResumeWindow";
370
+ const _SS = "StreamStatus";
371
+ const _SSL = "ShowSpeakerLabel";
372
+ const _SST = "StartStreamTranscription";
373
+ const _SSTR = "StartStreamTranscriptionRequest";
374
+ const _SSTRt = "StartStreamTranscriptionResponse";
375
+ const _ST = "StartTime";
376
+ const _SUE = "ServiceUnavailableException";
377
+ const _Sc = "Score";
378
+ const _Se = "Sentiment";
379
+ const _Sp = "Speaker";
380
+ const _Spe = "Specialty";
381
+ const _St = "Status";
382
+ const _T = "Transcript";
383
+ const _TE = "TranscriptEvent";
384
+ const _TOL = "TranscriptOutputLocation";
385
+ const _TR = "TimestampRanges";
386
+ const _TRS = "TranscriptResultStream";
387
+ const _TRi = "TimestampRange";
388
+ const _TS = "TranscriptSegment";
389
+ const _Ty = "Type";
390
+ const _UE = "UtteranceEvent";
391
+ const _UI = "UtteranceId";
392
+ const _VFM = "VocabularyFilterMatch";
393
+ const _VFMo = "VocabularyFilterMethod";
394
+ const _VFN = "VocabularyFilterName";
395
+ const _VFNo = "VocabularyFilterNames";
396
+ const _VN = "VocabularyName";
397
+ const _VNo = "VocabularyNames";
398
+ const _c = "client";
399
+ const _e = "error";
400
+ const _eP = "eventPayload";
401
+ const _h = "http";
402
+ const _hE = "httpError";
403
+ const _hH = "httpHeader";
404
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.transcribestreaming";
405
+ const _se = "server";
406
+ const _st = "streaming";
407
+ const _xari = "x-amzn-request-id";
408
+ const _xatcit = "x-amzn-transcribe-content-identification-type";
409
+ const _xatcrt = "x-amzn-transcribe-content-redaction-type";
410
+ const _xateci = "x-amzn-transcribe-enable-channel-identification";
411
+ const _xateprs = "x-amzn-transcribe-enable-partial-results-stabilization";
412
+ const _xatil = "x-amzn-transcribe-identify-language";
413
+ const _xatiml = "x-amzn-transcribe-identify-multiple-languages";
414
+ const _xatlc = "x-amzn-transcribe-language-code";
415
+ const _xatlmn = "x-amzn-transcribe-language-model-name";
416
+ const _xatlo = "x-amzn-transcribe-language-options";
417
+ const _xatme = "x-amzn-transcribe-media-encoding";
418
+ const _xatnoc = "x-amzn-transcribe-number-of-channels";
419
+ const _xatpet = "x-amzn-transcribe-pii-entity-types";
420
+ const _xatpl = "x-amzn-transcribe-preferred-language";
421
+ const _xatprs = "x-amzn-transcribe-partial-results-stability";
422
+ const _xats = "x-amzn-transcribe-specialty";
423
+ const _xatsi = "x-amzn-transcribe-session-id";
424
+ const _xatsr = "x-amzn-transcribe-sample-rate";
425
+ const _xatsrw = "x-amzn-transcribe-session-resume-window";
426
+ const _xatssl = "x-amzn-transcribe-show-speaker-label";
427
+ const _xatt = "x-amzn-transcribe-type";
428
+ const _xatvfm = "x-amzn-transcribe-vocabulary-filter-method";
429
+ const _xatvfn = "x-amzn-transcribe-vocabulary-filter-name";
430
+ const _xatvfn_ = "x-amzn-transcribe-vocabulary-filter-names";
431
+ const _xatvn = "x-amzn-transcribe-vocabulary-name";
432
+ const _xatvn_ = "x-amzn-transcribe-vocabulary-names";
433
+ const n0 = "com.amazonaws.transcribestreaming";
434
+ const _s_registry = TypeRegistry.for(_s);
435
+ var TranscribeStreamingServiceException$ = [-3, _s, "TranscribeStreamingServiceException", 0, [], []];
436
+ _s_registry.registerError(TranscribeStreamingServiceException$, TranscribeStreamingServiceException);
437
+ const n0_registry = TypeRegistry.for(n0);
438
+ var BadRequestException$ = [-3, n0, _BRE,
439
+ { [_e]: _c, [_hE]: 400 },
440
+ [_M],
441
+ [0]
442
+ ];
443
+ n0_registry.registerError(BadRequestException$, BadRequestException);
444
+ var ConflictException$ = [-3, n0, _CE,
445
+ { [_e]: _c, [_hE]: 409 },
446
+ [_M],
447
+ [0]
448
+ ];
449
+ n0_registry.registerError(ConflictException$, ConflictException);
450
+ var InternalFailureException$ = [-3, n0, _IFE,
451
+ { [_e]: _se, [_hE]: 500 },
452
+ [_M],
453
+ [0]
454
+ ];
455
+ n0_registry.registerError(InternalFailureException$, InternalFailureException);
456
+ var LimitExceededException$ = [-3, n0, _LEE,
457
+ { [_e]: _c, [_hE]: 429 },
458
+ [_M],
459
+ [0]
460
+ ];
461
+ n0_registry.registerError(LimitExceededException$, LimitExceededException);
462
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
463
+ { [_e]: _c, [_hE]: 404 },
464
+ [_M],
465
+ [0]
466
+ ];
467
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
468
+ var ServiceUnavailableException$ = [-3, n0, _SUE,
469
+ { [_e]: _se, [_hE]: 503 },
470
+ [_M],
471
+ [0]
472
+ ];
473
+ n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);
474
+ const errorTypeRegistries = [
475
+ _s_registry,
476
+ n0_registry,
477
+ ];
478
+ var Pronouns$1 = [0, n0, _P, 8, 0];
479
+ var Alternative$ = [3, n0, _A,
480
+ 0,
481
+ [_T, _I, _E],
482
+ [0, () => ItemList, () => EntityList]
483
+ ];
484
+ var AudioEvent$ = [3, n0, _AE,
485
+ 0,
486
+ [_AC],
487
+ [[21, { [_eP]: 1 }]]
488
+ ];
489
+ var CallAnalyticsEntity$ = [3, n0, _CAE,
490
+ 0,
491
+ [_BOM, _EOM, _C, _Ty, _Co, _Con],
492
+ [1, 1, 0, 0, 0, 1]
493
+ ];
494
+ var CallAnalyticsItem$ = [3, n0, _CAI,
495
+ 0,
496
+ [_BOM, _EOM, _Ty, _Co, _Con, _VFM, _S],
497
+ [1, 1, 0, 0, 1, 2, 2]
498
+ ];
499
+ var CallAnalyticsLanguageWithScore$ = [3, n0, _CALWS,
500
+ 0,
501
+ [_LC, _Sc],
502
+ [0, 1]
503
+ ];
504
+ var CategoryEvent$ = [3, n0, _CEa,
505
+ 0,
506
+ [_MC, _MD],
507
+ [64 | 0, () => MatchedCategoryDetails]
508
+ ];
509
+ var ChannelDefinition$ = [3, n0, _CD,
510
+ 0,
511
+ [_CI, _PR],
512
+ [1, 0], 2
513
+ ];
514
+ var CharacterOffsets$ = [3, n0, _CO,
515
+ 0,
516
+ [_B, _En],
517
+ [1, 1]
518
+ ];
519
+ var ClinicalNoteGenerationResult$ = [3, n0, _CNGR,
520
+ 0,
521
+ [_CNOL, _TOL, _St, _FR],
522
+ [0, 0, 0, 0]
523
+ ];
524
+ var ClinicalNoteGenerationSettings$ = [3, n0, _CNGS,
525
+ 0,
526
+ [_OBN, _NT],
527
+ [0, 0], 1
528
+ ];
529
+ var ConfigurationEvent$ = [3, n0, _CEo,
530
+ 0,
531
+ [_CDh, _PCAS],
532
+ [() => ChannelDefinitions, () => PostCallAnalyticsSettings$]
533
+ ];
534
+ var Entity$ = [3, n0, _Ent,
535
+ 0,
536
+ [_ST, _ET, _C, _Ty, _Co, _Con],
537
+ [1, 1, 0, 0, 0, 1]
538
+ ];
539
+ var GetMedicalScribeStreamRequest$ = [3, n0, _GMSSR,
540
+ 0,
541
+ [_SI],
542
+ [[0, 1]], 1
543
+ ];
544
+ var GetMedicalScribeStreamResponse$ = [3, n0, _GMSSRe,
545
+ 0,
546
+ [_MSSD],
547
+ [() => MedicalScribeStreamDetails$]
548
+ ];
549
+ var IssueDetected$ = [3, n0, _ID,
550
+ 0,
551
+ [_CO],
552
+ [() => CharacterOffsets$]
553
+ ];
554
+ var Item$ = [3, n0, _It,
555
+ 0,
556
+ [_ST, _ET, _Ty, _Co, _VFM, _Sp, _Con, _S],
557
+ [1, 1, 0, 0, 2, 0, 1, 2]
558
+ ];
559
+ var LanguageWithScore$ = [3, n0, _LWS,
560
+ 0,
561
+ [_LC, _Sc],
562
+ [0, 1]
563
+ ];
564
+ var MedicalAlternative$ = [3, n0, _MA,
565
+ 0,
566
+ [_T, _I, _E],
567
+ [0, () => MedicalItemList, () => MedicalEntityList]
568
+ ];
569
+ var MedicalEntity$ = [3, n0, _ME,
570
+ 0,
571
+ [_ST, _ET, _C, _Co, _Con],
572
+ [1, 1, 0, 0, 1]
573
+ ];
574
+ var MedicalItem$ = [3, n0, _MI,
575
+ 0,
576
+ [_ST, _ET, _Ty, _Co, _Con, _Sp],
577
+ [1, 1, 0, 0, 1, 0]
578
+ ];
579
+ var MedicalResult$ = [3, n0, _MR,
580
+ 0,
581
+ [_RI, _ST, _ET, _IP, _Al, _CI],
582
+ [0, 1, 1, 2, () => MedicalAlternativeList, 0]
583
+ ];
584
+ var MedicalScribeAudioEvent$ = [3, n0, _MSAE,
585
+ 0,
586
+ [_AC],
587
+ [[21, { [_eP]: 1 }]], 1
588
+ ];
589
+ var MedicalScribeChannelDefinition$ = [3, n0, _MSCD,
590
+ 0,
591
+ [_CI, _PR],
592
+ [1, 0], 2
593
+ ];
594
+ var MedicalScribeConfigurationEvent$ = [3, n0, _MSCE,
595
+ 0,
596
+ [_RARA, _PSAS, _VN, _VFN, _VFMo, _CDh, _ES, _MSC],
597
+ [0, () => MedicalScribePostStreamAnalyticsSettings$, 0, 0, 0, () => MedicalScribeChannelDefinitions, () => MedicalScribeEncryptionSettings$, [() => MedicalScribeContext$, 0]], 2
598
+ ];
599
+ var MedicalScribeContext$ = [3, n0, _MSC,
600
+ 0,
601
+ [_PC],
602
+ [[() => MedicalScribePatientContext$, 0]]
603
+ ];
604
+ var MedicalScribeEncryptionSettings$ = [3, n0, _MSES,
605
+ 0,
606
+ [_KKI, _KEC],
607
+ [0, 128 | 0], 1
608
+ ];
609
+ var MedicalScribePatientContext$ = [3, n0, _MSPC,
610
+ 0,
611
+ [_P],
612
+ [[() => Pronouns$1, 0]]
613
+ ];
614
+ var MedicalScribePostStreamAnalyticsResult$ = [3, n0, _MSPSAR,
615
+ 0,
616
+ [_CNGR],
617
+ [() => ClinicalNoteGenerationResult$]
618
+ ];
619
+ var MedicalScribePostStreamAnalyticsSettings$ = [3, n0, _MSPSAS,
620
+ 0,
621
+ [_CNGS],
622
+ [() => ClinicalNoteGenerationSettings$], 1
623
+ ];
624
+ var MedicalScribeSessionControlEvent$ = [3, n0, _MSSCE,
625
+ 0,
626
+ [_Ty],
627
+ [0], 1
628
+ ];
629
+ var MedicalScribeStreamDetails$ = [3, n0, _MSSD,
630
+ 0,
631
+ [_SI, _SCA, _SEA, _LC, _MSRH, _MEe, _VN, _VFN, _VFMo, _RARA, _CDh, _ES, _SS, _PSAS, _PSAR, _MSCP],
632
+ [0, 4, 4, 0, 1, 0, 0, 0, 0, 0, () => MedicalScribeChannelDefinitions, () => MedicalScribeEncryptionSettings$, 0, () => MedicalScribePostStreamAnalyticsSettings$, () => MedicalScribePostStreamAnalyticsResult$, 2]
633
+ ];
634
+ var MedicalScribeTranscriptEvent$ = [3, n0, _MSTE,
635
+ 0,
636
+ [_TS],
637
+ [() => MedicalScribeTranscriptSegment$]
638
+ ];
639
+ var MedicalScribeTranscriptItem$ = [3, n0, _MSTI,
640
+ 0,
641
+ [_BAT, _EAT, _Ty, _Con, _Co, _VFM],
642
+ [1, 1, 0, 1, 0, 2]
643
+ ];
644
+ var MedicalScribeTranscriptSegment$ = [3, n0, _MSTS,
645
+ 0,
646
+ [_SIe, _BAT, _EAT, _Co, _I, _IP, _CI],
647
+ [0, 1, 1, 0, () => MedicalScribeTranscriptItemList, 2, 0]
648
+ ];
649
+ var MedicalTranscript$ = [3, n0, _MT,
650
+ 0,
651
+ [_R],
652
+ [() => MedicalResultList]
653
+ ];
654
+ var MedicalTranscriptEvent$ = [3, n0, _MTE,
655
+ 0,
656
+ [_T],
657
+ [() => MedicalTranscript$]
658
+ ];
659
+ var PointsOfInterest$ = [3, n0, _POI,
660
+ 0,
661
+ [_TR],
662
+ [() => TimestampRanges]
663
+ ];
664
+ var PostCallAnalyticsSettings$ = [3, n0, _PCAS,
665
+ 0,
666
+ [_OL, _DARA, _CRO, _OEKMSKI],
667
+ [0, 0, 0, 0], 2
668
+ ];
669
+ var Result$ = [3, n0, _Re,
670
+ 0,
671
+ [_RI, _ST, _ET, _IP, _Al, _CI, _LC, _LI],
672
+ [0, 1, 1, 2, () => AlternativeList, 0, 0, () => LanguageIdentification]
673
+ ];
674
+ var StartCallAnalyticsStreamTranscriptionRequest$ = [3, n0, _SCASTR,
675
+ 0,
676
+ [_MSRH, _MEe, _AS, _LC, _VN, _SI, _VFN, _VFMo, _LMN, _IL, _LO, _PL, _VNo, _VFNo, _EPRS, _PRS, _CIT, _CRT, _PET],
677
+ [[1, { [_hH]: _xatsr }], [0, { [_hH]: _xatme }], [() => AudioStream$, 16], [0, { [_hH]: _xatlc }], [0, { [_hH]: _xatvn }], [0, { [_hH]: _xatsi }], [0, { [_hH]: _xatvfn }], [0, { [_hH]: _xatvfm }], [0, { [_hH]: _xatlmn }], [2, { [_hH]: _xatil }], [0, { [_hH]: _xatlo }], [0, { [_hH]: _xatpl }], [0, { [_hH]: _xatvn_ }], [0, { [_hH]: _xatvfn_ }], [2, { [_hH]: _xateprs }], [0, { [_hH]: _xatprs }], [0, { [_hH]: _xatcit }], [0, { [_hH]: _xatcrt }], [0, { [_hH]: _xatpet }]], 3
678
+ ];
679
+ var StartCallAnalyticsStreamTranscriptionResponse$ = [3, n0, _SCASTRt,
680
+ 0,
681
+ [_RIe, _LC, _MSRH, _MEe, _VN, _SI, _CATRS, _VFN, _VFMo, _LMN, _IL, _LO, _PL, _VNo, _VFNo, _EPRS, _PRS, _CIT, _CRT, _PET],
682
+ [[0, { [_hH]: _xari }], [0, { [_hH]: _xatlc }], [1, { [_hH]: _xatsr }], [0, { [_hH]: _xatme }], [0, { [_hH]: _xatvn }], [0, { [_hH]: _xatsi }], [() => CallAnalyticsTranscriptResultStream$, 16], [0, { [_hH]: _xatvfn }], [0, { [_hH]: _xatvfm }], [0, { [_hH]: _xatlmn }], [2, { [_hH]: _xatil }], [0, { [_hH]: _xatlo }], [0, { [_hH]: _xatpl }], [0, { [_hH]: _xatvn_ }], [0, { [_hH]: _xatvfn_ }], [2, { [_hH]: _xateprs }], [0, { [_hH]: _xatprs }], [0, { [_hH]: _xatcit }], [0, { [_hH]: _xatcrt }], [0, { [_hH]: _xatpet }]]
683
+ ];
684
+ var StartMedicalScribeStreamRequest$ = [3, n0, _SMSSR,
685
+ 0,
686
+ [_LC, _MSRH, _MEe, _IS, _SI],
687
+ [[0, { [_hH]: _xatlc }], [1, { [_hH]: _xatsr }], [0, { [_hH]: _xatme }], [() => MedicalScribeInputStream$, 16], [0, { [_hH]: _xatsi }]], 4
688
+ ];
689
+ var StartMedicalScribeStreamResponse$ = [3, n0, _SMSSRt,
690
+ 0,
691
+ [_SI, _RIe, _LC, _MSRH, _MEe, _RS],
692
+ [[0, { [_hH]: _xatsi }], [0, { [_hH]: _xari }], [0, { [_hH]: _xatlc }], [1, { [_hH]: _xatsr }], [0, { [_hH]: _xatme }], [() => MedicalScribeResultStream$, 16]]
693
+ ];
694
+ var StartMedicalStreamTranscriptionRequest$ = [3, n0, _SMSTR,
695
+ 0,
696
+ [_LC, _MSRH, _MEe, _Spe, _Ty, _AS, _VN, _SSL, _SI, _ECI, _NOC, _CIT],
697
+ [[0, { [_hH]: _xatlc }], [1, { [_hH]: _xatsr }], [0, { [_hH]: _xatme }], [0, { [_hH]: _xats }], [0, { [_hH]: _xatt }], [() => AudioStream$, 16], [0, { [_hH]: _xatvn }], [2, { [_hH]: _xatssl }], [0, { [_hH]: _xatsi }], [2, { [_hH]: _xateci }], [1, { [_hH]: _xatnoc }], [0, { [_hH]: _xatcit }]], 6
698
+ ];
699
+ var StartMedicalStreamTranscriptionResponse$ = [3, n0, _SMSTRt,
700
+ 0,
701
+ [_RIe, _LC, _MSRH, _MEe, _VN, _Spe, _Ty, _SSL, _SI, _TRS, _ECI, _NOC, _CIT],
702
+ [[0, { [_hH]: _xari }], [0, { [_hH]: _xatlc }], [1, { [_hH]: _xatsr }], [0, { [_hH]: _xatme }], [0, { [_hH]: _xatvn }], [0, { [_hH]: _xats }], [0, { [_hH]: _xatt }], [2, { [_hH]: _xatssl }], [0, { [_hH]: _xatsi }], [() => MedicalTranscriptResultStream$, 16], [2, { [_hH]: _xateci }], [1, { [_hH]: _xatnoc }], [0, { [_hH]: _xatcit }]]
703
+ ];
704
+ var StartStreamTranscriptionRequest$ = [3, n0, _SSTR,
705
+ 0,
706
+ [_MSRH, _MEe, _AS, _LC, _VN, _SI, _VFN, _VFMo, _SSL, _ECI, _NOC, _EPRS, _PRS, _CIT, _CRT, _PET, _LMN, _IL, _LO, _PL, _IML, _VNo, _VFNo, _SRW],
707
+ [[1, { [_hH]: _xatsr }], [0, { [_hH]: _xatme }], [() => AudioStream$, 16], [0, { [_hH]: _xatlc }], [0, { [_hH]: _xatvn }], [0, { [_hH]: _xatsi }], [0, { [_hH]: _xatvfn }], [0, { [_hH]: _xatvfm }], [2, { [_hH]: _xatssl }], [2, { [_hH]: _xateci }], [1, { [_hH]: _xatnoc }], [2, { [_hH]: _xateprs }], [0, { [_hH]: _xatprs }], [0, { [_hH]: _xatcit }], [0, { [_hH]: _xatcrt }], [0, { [_hH]: _xatpet }], [0, { [_hH]: _xatlmn }], [2, { [_hH]: _xatil }], [0, { [_hH]: _xatlo }], [0, { [_hH]: _xatpl }], [2, { [_hH]: _xatiml }], [0, { [_hH]: _xatvn_ }], [0, { [_hH]: _xatvfn_ }], [1, { [_hH]: _xatsrw }]], 3
708
+ ];
709
+ var StartStreamTranscriptionResponse$ = [3, n0, _SSTRt,
710
+ 0,
711
+ [_RIe, _LC, _MSRH, _MEe, _VN, _SI, _TRS, _VFN, _VFMo, _SSL, _ECI, _NOC, _EPRS, _PRS, _CIT, _CRT, _PET, _LMN, _IL, _LO, _PL, _IML, _VNo, _VFNo, _SRW],
712
+ [[0, { [_hH]: _xari }], [0, { [_hH]: _xatlc }], [1, { [_hH]: _xatsr }], [0, { [_hH]: _xatme }], [0, { [_hH]: _xatvn }], [0, { [_hH]: _xatsi }], [() => TranscriptResultStream$, 16], [0, { [_hH]: _xatvfn }], [0, { [_hH]: _xatvfm }], [2, { [_hH]: _xatssl }], [2, { [_hH]: _xateci }], [1, { [_hH]: _xatnoc }], [2, { [_hH]: _xateprs }], [0, { [_hH]: _xatprs }], [0, { [_hH]: _xatcit }], [0, { [_hH]: _xatcrt }], [0, { [_hH]: _xatpet }], [0, { [_hH]: _xatlmn }], [2, { [_hH]: _xatil }], [0, { [_hH]: _xatlo }], [0, { [_hH]: _xatpl }], [2, { [_hH]: _xatiml }], [0, { [_hH]: _xatvn_ }], [0, { [_hH]: _xatvfn_ }], [1, { [_hH]: _xatsrw }]]
713
+ ];
714
+ var TimestampRange$ = [3, n0, _TRi,
715
+ 0,
716
+ [_BOM, _EOM],
717
+ [1, 1]
718
+ ];
719
+ var Transcript$ = [3, n0, _T,
720
+ 0,
721
+ [_R],
722
+ [() => ResultList]
723
+ ];
724
+ var TranscriptEvent$ = [3, n0, _TE,
725
+ 0,
726
+ [_T],
727
+ [() => Transcript$]
728
+ ];
729
+ var UtteranceEvent$ = [3, n0, _UE,
730
+ 0,
731
+ [_UI, _IP, _PR, _BOM, _EOM, _T, _I, _E, _Se, _IDs, _LC, _LI],
732
+ [0, 2, 0, 1, 1, 0, () => CallAnalyticsItemList, () => CallAnalyticsEntityList, 0, () => IssuesDetected, 0, () => CallAnalyticsLanguageIdentification]
733
+ ];
734
+ var AlternativeList = [1, n0, _AL,
735
+ 0, () => Alternative$
736
+ ];
737
+ var CallAnalyticsEntityList = [1, n0, _CAEL,
738
+ 0, () => CallAnalyticsEntity$
739
+ ];
740
+ var CallAnalyticsItemList = [1, n0, _CAIL,
741
+ 0, () => CallAnalyticsItem$
742
+ ];
743
+ var CallAnalyticsLanguageIdentification = [1, n0, _CALI,
744
+ 0, () => CallAnalyticsLanguageWithScore$
745
+ ];
746
+ var ChannelDefinitions = [1, n0, _CDh,
747
+ 0, () => ChannelDefinition$
748
+ ];
749
+ var EntityList = [1, n0, _EL,
750
+ 0, () => Entity$
751
+ ];
752
+ var IssuesDetected = [1, n0, _IDs,
753
+ 0, () => IssueDetected$
754
+ ];
755
+ var ItemList = [1, n0, _ILt,
756
+ 0, () => Item$
757
+ ];
758
+ var LanguageIdentification = [1, n0, _LI,
759
+ 0, () => LanguageWithScore$
760
+ ];
761
+ var MedicalAlternativeList = [1, n0, _MAL,
762
+ 0, () => MedicalAlternative$
763
+ ];
764
+ var MedicalEntityList = [1, n0, _MEL,
765
+ 0, () => MedicalEntity$
766
+ ];
767
+ var MedicalItemList = [1, n0, _MIL,
768
+ 0, () => MedicalItem$
769
+ ];
770
+ var MedicalResultList = [1, n0, _MRL,
771
+ 0, () => MedicalResult$
772
+ ];
773
+ var MedicalScribeChannelDefinitions = [1, n0, _MSCDe,
774
+ 0, () => MedicalScribeChannelDefinition$
775
+ ];
776
+ var MedicalScribeTranscriptItemList = [1, n0, _MSTIL,
777
+ 0, () => MedicalScribeTranscriptItem$
778
+ ];
779
+ var ResultList = [1, n0, _RL,
780
+ 0, () => Result$
781
+ ];
782
+ var TimestampRanges = [1, n0, _TR,
783
+ 0, () => TimestampRange$
784
+ ];
785
+ var MatchedCategoryDetails = [2, n0, _MCD,
786
+ 0, 0, () => PointsOfInterest$
787
+ ];
788
+ var AudioStream$ = [4, n0, _AS,
789
+ { [_st]: 1 },
790
+ [_AE, _CEo],
791
+ [[() => AudioEvent$, 0], () => ConfigurationEvent$]
792
+ ];
793
+ var CallAnalyticsTranscriptResultStream$ = [4, n0, _CATRS,
794
+ { [_st]: 1 },
795
+ [_UE, _CEa, _BRE, _LEE, _IFE, _CE, _SUE],
796
+ [() => UtteranceEvent$, () => CategoryEvent$, [() => BadRequestException$, 0], [() => LimitExceededException$, 0], [() => InternalFailureException$, 0], [() => ConflictException$, 0], [() => ServiceUnavailableException$, 0]]
797
+ ];
798
+ var MedicalScribeInputStream$ = [4, n0, _MSIS,
799
+ { [_st]: 1 },
800
+ [_AE, _SCE, _CEo],
801
+ [[() => MedicalScribeAudioEvent$, 0], () => MedicalScribeSessionControlEvent$, [() => MedicalScribeConfigurationEvent$, 0]]
802
+ ];
803
+ var MedicalScribeResultStream$ = [4, n0, _MSRS,
804
+ { [_st]: 1 },
805
+ [_TE, _BRE, _LEE, _IFE, _CE, _SUE],
806
+ [() => MedicalScribeTranscriptEvent$, [() => BadRequestException$, 0], [() => LimitExceededException$, 0], [() => InternalFailureException$, 0], [() => ConflictException$, 0], [() => ServiceUnavailableException$, 0]]
807
+ ];
808
+ var MedicalTranscriptResultStream$ = [4, n0, _MTRS,
809
+ { [_st]: 1 },
810
+ [_TE, _BRE, _LEE, _IFE, _CE, _SUE],
811
+ [() => MedicalTranscriptEvent$, [() => BadRequestException$, 0], [() => LimitExceededException$, 0], [() => InternalFailureException$, 0], [() => ConflictException$, 0], [() => ServiceUnavailableException$, 0]]
812
+ ];
813
+ var TranscriptResultStream$ = [4, n0, _TRS,
814
+ { [_st]: 1 },
815
+ [_TE, _BRE, _LEE, _IFE, _CE, _SUE],
816
+ [() => TranscriptEvent$, [() => BadRequestException$, 0], [() => LimitExceededException$, 0], [() => InternalFailureException$, 0], [() => ConflictException$, 0], [() => ServiceUnavailableException$, 0]]
817
+ ];
818
+ var GetMedicalScribeStream$ = [9, n0, _GMSS,
819
+ { [_h]: ["GET", "/medical-scribe-stream/{SessionId}", 200] }, () => GetMedicalScribeStreamRequest$, () => GetMedicalScribeStreamResponse$
820
+ ];
821
+ var StartCallAnalyticsStreamTranscription$ = [9, n0, _SCAST,
822
+ { [_h]: ["POST", "/call-analytics-stream-transcription", 200] }, () => StartCallAnalyticsStreamTranscriptionRequest$, () => StartCallAnalyticsStreamTranscriptionResponse$
823
+ ];
824
+ var StartMedicalScribeStream$ = [9, n0, _SMSS,
825
+ { [_h]: ["POST", "/medical-scribe-stream", 200] }, () => StartMedicalScribeStreamRequest$, () => StartMedicalScribeStreamResponse$
826
+ ];
827
+ var StartMedicalStreamTranscription$ = [9, n0, _SMST,
828
+ { [_h]: ["POST", "/medical-stream-transcription", 200] }, () => StartMedicalStreamTranscriptionRequest$, () => StartMedicalStreamTranscriptionResponse$
829
+ ];
830
+ var StartStreamTranscription$ = [9, n0, _SST,
831
+ { [_h]: ["POST", "/stream-transcription", 200] }, () => StartStreamTranscriptionRequest$, () => StartStreamTranscriptionResponse$
832
+ ];
833
+
834
+ const getRuntimeConfig$1 = (config) => {
835
+ return {
836
+ apiVersion: "2017-10-26",
837
+ base64Decoder: config?.base64Decoder ?? fromBase64,
838
+ base64Encoder: config?.base64Encoder ?? toBase64,
839
+ disableHostPrefix: config?.disableHostPrefix ?? false,
840
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
841
+ extensions: config?.extensions ?? [],
842
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultTranscribeStreamingHttpAuthSchemeProvider,
843
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
844
+ {
845
+ schemeId: "aws.auth#sigv4",
846
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
847
+ signer: new AwsSdkSigV4Signer(),
848
+ },
849
+ ],
850
+ logger: config?.logger ?? new NoOpLogger(),
851
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
852
+ protocolSettings: config?.protocolSettings ?? {
853
+ defaultNamespace: "com.amazonaws.transcribestreaming",
854
+ errorTypeRegistries,
855
+ version: "2017-10-26",
856
+ serviceTarget: "Transcribe",
857
+ },
858
+ serviceId: config?.serviceId ?? "Transcribe Streaming",
859
+ sha256: config?.sha256 ?? Sha256,
860
+ urlParser: config?.urlParser ?? parseUrl,
861
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
862
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
863
+ };
864
+ };
865
+
866
+ const getRuntimeConfig = (config) => {
867
+ emitWarningIfUnsupportedVersion(process.version);
868
+ const defaultsMode = resolveDefaultsModeConfig(config);
869
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
870
+ const clientSharedValues = getRuntimeConfig$1(config);
871
+ emitWarningIfUnsupportedVersion$1(process.version);
872
+ const loaderConfig = {
873
+ profile: config?.profile,
874
+ logger: clientSharedValues.logger,
875
+ };
876
+ return {
877
+ ...clientSharedValues,
878
+ ...config,
879
+ runtime: "node",
880
+ defaultsMode,
881
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
882
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
883
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
884
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
885
+ eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? eventStreamPayloadHandlerProvider,
886
+ eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
887
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
888
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
889
+ requestHandler: NodeHttp2Handler.create(config?.requestHandler ?? (async () => ({
890
+ ...await defaultConfigProvider(),
891
+ disableConcurrentStreams: true
892
+ }))),
893
+ retryMode: config?.retryMode ??
894
+ loadConfig({
895
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
896
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
897
+ }, config),
898
+ streamCollector: config?.streamCollector ?? streamCollector,
899
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
900
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
901
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
902
+ };
903
+ };
904
+
38
905
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
39
906
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
40
907
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -453,34 +1320,111 @@ const Type = {
453
1320
  DICTATION: "DICTATION",
454
1321
  };
455
1322
 
1323
+ exports.Alternative$ = Alternative$;
1324
+ exports.AudioEvent$ = AudioEvent$;
1325
+ exports.AudioStream$ = AudioStream$;
1326
+ exports.BadRequestException = BadRequestException;
1327
+ exports.BadRequestException$ = BadRequestException$;
1328
+ exports.CallAnalyticsEntity$ = CallAnalyticsEntity$;
1329
+ exports.CallAnalyticsItem$ = CallAnalyticsItem$;
456
1330
  exports.CallAnalyticsLanguageCode = CallAnalyticsLanguageCode;
1331
+ exports.CallAnalyticsLanguageWithScore$ = CallAnalyticsLanguageWithScore$;
1332
+ exports.CallAnalyticsTranscriptResultStream$ = CallAnalyticsTranscriptResultStream$;
1333
+ exports.CategoryEvent$ = CategoryEvent$;
1334
+ exports.ChannelDefinition$ = ChannelDefinition$;
1335
+ exports.CharacterOffsets$ = CharacterOffsets$;
1336
+ exports.ClinicalNoteGenerationResult$ = ClinicalNoteGenerationResult$;
1337
+ exports.ClinicalNoteGenerationSettings$ = ClinicalNoteGenerationSettings$;
457
1338
  exports.ClinicalNoteGenerationStatus = ClinicalNoteGenerationStatus;
1339
+ exports.ConfigurationEvent$ = ConfigurationEvent$;
1340
+ exports.ConflictException = ConflictException;
1341
+ exports.ConflictException$ = ConflictException$;
458
1342
  exports.ContentIdentificationType = ContentIdentificationType;
459
1343
  exports.ContentRedactionOutput = ContentRedactionOutput;
460
1344
  exports.ContentRedactionType = ContentRedactionType;
1345
+ exports.Entity$ = Entity$;
1346
+ exports.GetMedicalScribeStream$ = GetMedicalScribeStream$;
461
1347
  exports.GetMedicalScribeStreamCommand = GetMedicalScribeStreamCommand;
1348
+ exports.GetMedicalScribeStreamRequest$ = GetMedicalScribeStreamRequest$;
1349
+ exports.GetMedicalScribeStreamResponse$ = GetMedicalScribeStreamResponse$;
1350
+ exports.InternalFailureException = InternalFailureException;
1351
+ exports.InternalFailureException$ = InternalFailureException$;
1352
+ exports.IssueDetected$ = IssueDetected$;
1353
+ exports.Item$ = Item$;
462
1354
  exports.ItemType = ItemType;
463
1355
  exports.LanguageCode = LanguageCode;
1356
+ exports.LanguageWithScore$ = LanguageWithScore$;
1357
+ exports.LimitExceededException = LimitExceededException;
1358
+ exports.LimitExceededException$ = LimitExceededException$;
464
1359
  exports.MediaEncoding = MediaEncoding;
1360
+ exports.MedicalAlternative$ = MedicalAlternative$;
465
1361
  exports.MedicalContentIdentificationType = MedicalContentIdentificationType;
1362
+ exports.MedicalEntity$ = MedicalEntity$;
1363
+ exports.MedicalItem$ = MedicalItem$;
1364
+ exports.MedicalResult$ = MedicalResult$;
1365
+ exports.MedicalScribeAudioEvent$ = MedicalScribeAudioEvent$;
1366
+ exports.MedicalScribeChannelDefinition$ = MedicalScribeChannelDefinition$;
1367
+ exports.MedicalScribeConfigurationEvent$ = MedicalScribeConfigurationEvent$;
1368
+ exports.MedicalScribeContext$ = MedicalScribeContext$;
1369
+ exports.MedicalScribeEncryptionSettings$ = MedicalScribeEncryptionSettings$;
1370
+ exports.MedicalScribeInputStream$ = MedicalScribeInputStream$;
466
1371
  exports.MedicalScribeLanguageCode = MedicalScribeLanguageCode;
467
1372
  exports.MedicalScribeMediaEncoding = MedicalScribeMediaEncoding;
468
1373
  exports.MedicalScribeNoteTemplate = MedicalScribeNoteTemplate;
469
1374
  exports.MedicalScribeParticipantRole = MedicalScribeParticipantRole;
1375
+ exports.MedicalScribePatientContext$ = MedicalScribePatientContext$;
1376
+ exports.MedicalScribePostStreamAnalyticsResult$ = MedicalScribePostStreamAnalyticsResult$;
1377
+ exports.MedicalScribePostStreamAnalyticsSettings$ = MedicalScribePostStreamAnalyticsSettings$;
1378
+ exports.MedicalScribeResultStream$ = MedicalScribeResultStream$;
1379
+ exports.MedicalScribeSessionControlEvent$ = MedicalScribeSessionControlEvent$;
470
1380
  exports.MedicalScribeSessionControlEventType = MedicalScribeSessionControlEventType;
1381
+ exports.MedicalScribeStreamDetails$ = MedicalScribeStreamDetails$;
471
1382
  exports.MedicalScribeStreamStatus = MedicalScribeStreamStatus;
1383
+ exports.MedicalScribeTranscriptEvent$ = MedicalScribeTranscriptEvent$;
1384
+ exports.MedicalScribeTranscriptItem$ = MedicalScribeTranscriptItem$;
472
1385
  exports.MedicalScribeTranscriptItemType = MedicalScribeTranscriptItemType;
1386
+ exports.MedicalScribeTranscriptSegment$ = MedicalScribeTranscriptSegment$;
473
1387
  exports.MedicalScribeVocabularyFilterMethod = MedicalScribeVocabularyFilterMethod;
1388
+ exports.MedicalTranscript$ = MedicalTranscript$;
1389
+ exports.MedicalTranscriptEvent$ = MedicalTranscriptEvent$;
1390
+ exports.MedicalTranscriptResultStream$ = MedicalTranscriptResultStream$;
474
1391
  exports.PartialResultsStability = PartialResultsStability;
475
1392
  exports.ParticipantRole = ParticipantRole;
1393
+ exports.PointsOfInterest$ = PointsOfInterest$;
1394
+ exports.PostCallAnalyticsSettings$ = PostCallAnalyticsSettings$;
476
1395
  exports.Pronouns = Pronouns;
1396
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1397
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
1398
+ exports.Result$ = Result$;
477
1399
  exports.Sentiment = Sentiment;
1400
+ exports.ServiceUnavailableException = ServiceUnavailableException;
1401
+ exports.ServiceUnavailableException$ = ServiceUnavailableException$;
478
1402
  exports.Specialty = Specialty;
1403
+ exports.StartCallAnalyticsStreamTranscription$ = StartCallAnalyticsStreamTranscription$;
479
1404
  exports.StartCallAnalyticsStreamTranscriptionCommand = StartCallAnalyticsStreamTranscriptionCommand;
1405
+ exports.StartCallAnalyticsStreamTranscriptionRequest$ = StartCallAnalyticsStreamTranscriptionRequest$;
1406
+ exports.StartCallAnalyticsStreamTranscriptionResponse$ = StartCallAnalyticsStreamTranscriptionResponse$;
1407
+ exports.StartMedicalScribeStream$ = StartMedicalScribeStream$;
480
1408
  exports.StartMedicalScribeStreamCommand = StartMedicalScribeStreamCommand;
1409
+ exports.StartMedicalScribeStreamRequest$ = StartMedicalScribeStreamRequest$;
1410
+ exports.StartMedicalScribeStreamResponse$ = StartMedicalScribeStreamResponse$;
1411
+ exports.StartMedicalStreamTranscription$ = StartMedicalStreamTranscription$;
481
1412
  exports.StartMedicalStreamTranscriptionCommand = StartMedicalStreamTranscriptionCommand;
1413
+ exports.StartMedicalStreamTranscriptionRequest$ = StartMedicalStreamTranscriptionRequest$;
1414
+ exports.StartMedicalStreamTranscriptionResponse$ = StartMedicalStreamTranscriptionResponse$;
1415
+ exports.StartStreamTranscription$ = StartStreamTranscription$;
482
1416
  exports.StartStreamTranscriptionCommand = StartStreamTranscriptionCommand;
1417
+ exports.StartStreamTranscriptionRequest$ = StartStreamTranscriptionRequest$;
1418
+ exports.StartStreamTranscriptionResponse$ = StartStreamTranscriptionResponse$;
1419
+ exports.TimestampRange$ = TimestampRange$;
483
1420
  exports.TranscribeStreaming = TranscribeStreaming;
484
1421
  exports.TranscribeStreamingClient = TranscribeStreamingClient;
1422
+ exports.TranscribeStreamingServiceException = TranscribeStreamingServiceException;
1423
+ exports.TranscribeStreamingServiceException$ = TranscribeStreamingServiceException$;
1424
+ exports.Transcript$ = Transcript$;
1425
+ exports.TranscriptEvent$ = TranscriptEvent$;
1426
+ exports.TranscriptResultStream$ = TranscriptResultStream$;
485
1427
  exports.Type = Type;
1428
+ exports.UtteranceEvent$ = UtteranceEvent$;
486
1429
  exports.VocabularyFilterMethod = VocabularyFilterMethod;
1430
+ exports.errorTypeRegistries = errorTypeRegistries;