@aws-sdk/client-transcribe-streaming 3.928.0 → 3.930.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.
Files changed (29) hide show
  1. package/dist-cjs/index.js +1514 -1228
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/TranscribeStreamingClient.js +2 -0
  4. package/dist-es/commands/GetMedicalScribeStreamCommand.js +3 -9
  5. package/dist-es/commands/StartCallAnalyticsStreamTranscriptionCommand.js +2 -7
  6. package/dist-es/commands/StartMedicalScribeStreamCommand.js +2 -7
  7. package/dist-es/commands/StartMedicalStreamTranscriptionCommand.js +2 -7
  8. package/dist-es/commands/StartStreamTranscriptionCommand.js +2 -7
  9. package/dist-es/models/models_0.js +0 -227
  10. package/dist-es/runtimeConfig.shared.js +2 -0
  11. package/dist-es/schemas/schemas_0.js +1534 -0
  12. package/dist-types/TranscribeStreamingClient.d.ts +10 -1
  13. package/dist-types/models/models_0.d.ts +24 -74
  14. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  15. package/dist-types/runtimeConfig.d.ts +1 -0
  16. package/dist-types/runtimeConfig.native.d.ts +1 -0
  17. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  18. package/dist-types/schemas/schemas_0.d.ts +92 -0
  19. package/dist-types/ts3.4/TranscribeStreamingClient.d.ts +4 -0
  20. package/dist-types/ts3.4/models/models_0.d.ts +0 -61
  21. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  22. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  23. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  24. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  25. package/dist-types/ts3.4/schemas/schemas_0.d.ts +99 -0
  26. package/package.json +40 -40
  27. package/dist-es/protocols/Aws_restJson1.js +0 -988
  28. package/dist-types/protocols/Aws_restJson1.d.ts +0 -47
  29. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -68
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const core_1 = require("@aws-sdk/core");
5
+ const protocols_1 = require("@aws-sdk/core/protocols");
5
6
  const smithy_client_1 = require("@smithy/smithy-client");
6
7
  const url_parser_1 = require("@smithy/url-parser");
7
8
  const util_base64_1 = require("@smithy/util-base64");
@@ -25,6 +26,7 @@ const getRuntimeConfig = (config) => {
25
26
  },
26
27
  ],
27
28
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
29
+ protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.transcribestreaming" }),
28
30
  serviceId: config?.serviceId ?? "Transcribe Streaming",
29
31
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
30
32
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -6,6 +6,7 @@ import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware
6
6
  import { resolveWebSocketConfig } from "@aws-sdk/middleware-websocket";
7
7
  import { resolveRegionConfig } from "@smithy/config-resolver";
8
8
  import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
9
+ import { getSchemaSerdePlugin } from "@smithy/core/schema";
9
10
  import { resolveEventStreamSerdeConfig, } from "@smithy/eventstream-serde-config-resolver";
10
11
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
11
12
  import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
@@ -34,6 +35,7 @@ export class TranscribeStreamingClient extends __Client {
34
35
  const _config_10 = resolveWebSocketConfig(_config_9);
35
36
  const _config_11 = resolveRuntimeExtensions(_config_10, configuration?.extensions || []);
36
37
  this.config = _config_11;
38
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
37
39
  this.middlewareStack.use(getUserAgentPlugin(this.config));
38
40
  this.middlewareStack.use(getRetryPlugin(this.config));
39
41
  this.middlewareStack.use(getContentLengthPlugin(this.config));
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_GetMedicalScribeStreamCommand, se_GetMedicalScribeStreamCommand } from "../protocols/Aws_restJson1";
4
+ import { GetMedicalScribeStream } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetMedicalScribeStreamCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("Transcribe", "GetMedicalScribeStream", {})
17
13
  .n("TranscribeStreamingClient", "GetMedicalScribeStreamCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetMedicalScribeStreamCommand)
20
- .de(de_GetMedicalScribeStreamCommand)
14
+ .sc(GetMedicalScribeStream)
21
15
  .build() {
22
16
  }
@@ -2,18 +2,15 @@ import { getEventStreamPlugin } from "@aws-sdk/middleware-eventstream";
2
2
  import { getTranscribeStreamingPlugin } from "@aws-sdk/middleware-sdk-transcribe-streaming";
3
3
  import { getWebSocketPlugin } from "@aws-sdk/middleware-websocket";
4
4
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
5
- import { getSerdePlugin } from "@smithy/middleware-serde";
6
5
  import { Command as $Command } from "@smithy/smithy-client";
7
6
  import { commonParams } from "../endpoint/EndpointParameters";
8
- import { StartCallAnalyticsStreamTranscriptionRequestFilterSensitiveLog, StartCallAnalyticsStreamTranscriptionResponseFilterSensitiveLog, } from "../models/models_0";
9
- import { de_StartCallAnalyticsStreamTranscriptionCommand, se_StartCallAnalyticsStreamTranscriptionCommand, } from "../protocols/Aws_restJson1";
7
+ import { StartCallAnalyticsStreamTranscription } from "../schemas/schemas_0";
10
8
  export { $Command };
11
9
  export class StartCallAnalyticsStreamTranscriptionCommand extends $Command
12
10
  .classBuilder()
13
11
  .ep(commonParams)
14
12
  .m(function (Command, cs, config, o) {
15
13
  return [
16
- getSerdePlugin(config, this.serialize, this.deserialize),
17
14
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
18
15
  getEventStreamPlugin(config),
19
16
  getWebSocketPlugin(config, {
@@ -29,8 +26,6 @@ export class StartCallAnalyticsStreamTranscriptionCommand extends $Command
29
26
  },
30
27
  })
31
28
  .n("TranscribeStreamingClient", "StartCallAnalyticsStreamTranscriptionCommand")
32
- .f(StartCallAnalyticsStreamTranscriptionRequestFilterSensitiveLog, StartCallAnalyticsStreamTranscriptionResponseFilterSensitiveLog)
33
- .ser(se_StartCallAnalyticsStreamTranscriptionCommand)
34
- .de(de_StartCallAnalyticsStreamTranscriptionCommand)
29
+ .sc(StartCallAnalyticsStreamTranscription)
35
30
  .build() {
36
31
  }
@@ -2,18 +2,15 @@ import { getEventStreamPlugin } from "@aws-sdk/middleware-eventstream";
2
2
  import { getTranscribeStreamingPlugin } from "@aws-sdk/middleware-sdk-transcribe-streaming";
3
3
  import { getWebSocketPlugin } from "@aws-sdk/middleware-websocket";
4
4
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
5
- import { getSerdePlugin } from "@smithy/middleware-serde";
6
5
  import { Command as $Command } from "@smithy/smithy-client";
7
6
  import { commonParams } from "../endpoint/EndpointParameters";
8
- import { StartMedicalScribeStreamRequestFilterSensitiveLog, StartMedicalScribeStreamResponseFilterSensitiveLog, } from "../models/models_0";
9
- import { de_StartMedicalScribeStreamCommand, se_StartMedicalScribeStreamCommand } from "../protocols/Aws_restJson1";
7
+ import { StartMedicalScribeStream } from "../schemas/schemas_0";
10
8
  export { $Command };
11
9
  export class StartMedicalScribeStreamCommand extends $Command
12
10
  .classBuilder()
13
11
  .ep(commonParams)
14
12
  .m(function (Command, cs, config, o) {
15
13
  return [
16
- getSerdePlugin(config, this.serialize, this.deserialize),
17
14
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
18
15
  getEventStreamPlugin(config),
19
16
  getWebSocketPlugin(config, {
@@ -29,8 +26,6 @@ export class StartMedicalScribeStreamCommand extends $Command
29
26
  },
30
27
  })
31
28
  .n("TranscribeStreamingClient", "StartMedicalScribeStreamCommand")
32
- .f(StartMedicalScribeStreamRequestFilterSensitiveLog, StartMedicalScribeStreamResponseFilterSensitiveLog)
33
- .ser(se_StartMedicalScribeStreamCommand)
34
- .de(de_StartMedicalScribeStreamCommand)
29
+ .sc(StartMedicalScribeStream)
35
30
  .build() {
36
31
  }
@@ -2,18 +2,15 @@ import { getEventStreamPlugin } from "@aws-sdk/middleware-eventstream";
2
2
  import { getTranscribeStreamingPlugin } from "@aws-sdk/middleware-sdk-transcribe-streaming";
3
3
  import { getWebSocketPlugin } from "@aws-sdk/middleware-websocket";
4
4
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
5
- import { getSerdePlugin } from "@smithy/middleware-serde";
6
5
  import { Command as $Command } from "@smithy/smithy-client";
7
6
  import { commonParams } from "../endpoint/EndpointParameters";
8
- import { StartMedicalStreamTranscriptionRequestFilterSensitiveLog, StartMedicalStreamTranscriptionResponseFilterSensitiveLog, } from "../models/models_0";
9
- import { de_StartMedicalStreamTranscriptionCommand, se_StartMedicalStreamTranscriptionCommand, } from "../protocols/Aws_restJson1";
7
+ import { StartMedicalStreamTranscription } from "../schemas/schemas_0";
10
8
  export { $Command };
11
9
  export class StartMedicalStreamTranscriptionCommand extends $Command
12
10
  .classBuilder()
13
11
  .ep(commonParams)
14
12
  .m(function (Command, cs, config, o) {
15
13
  return [
16
- getSerdePlugin(config, this.serialize, this.deserialize),
17
14
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
18
15
  getEventStreamPlugin(config),
19
16
  getWebSocketPlugin(config, {
@@ -29,8 +26,6 @@ export class StartMedicalStreamTranscriptionCommand extends $Command
29
26
  },
30
27
  })
31
28
  .n("TranscribeStreamingClient", "StartMedicalStreamTranscriptionCommand")
32
- .f(StartMedicalStreamTranscriptionRequestFilterSensitiveLog, StartMedicalStreamTranscriptionResponseFilterSensitiveLog)
33
- .ser(se_StartMedicalStreamTranscriptionCommand)
34
- .de(de_StartMedicalStreamTranscriptionCommand)
29
+ .sc(StartMedicalStreamTranscription)
35
30
  .build() {
36
31
  }
@@ -2,18 +2,15 @@ import { getEventStreamPlugin } from "@aws-sdk/middleware-eventstream";
2
2
  import { getTranscribeStreamingPlugin } from "@aws-sdk/middleware-sdk-transcribe-streaming";
3
3
  import { getWebSocketPlugin } from "@aws-sdk/middleware-websocket";
4
4
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
5
- import { getSerdePlugin } from "@smithy/middleware-serde";
6
5
  import { Command as $Command } from "@smithy/smithy-client";
7
6
  import { commonParams } from "../endpoint/EndpointParameters";
8
- import { StartStreamTranscriptionRequestFilterSensitiveLog, StartStreamTranscriptionResponseFilterSensitiveLog, } from "../models/models_0";
9
- import { de_StartStreamTranscriptionCommand, se_StartStreamTranscriptionCommand } from "../protocols/Aws_restJson1";
7
+ import { StartStreamTranscription } from "../schemas/schemas_0";
10
8
  export { $Command };
11
9
  export class StartStreamTranscriptionCommand extends $Command
12
10
  .classBuilder()
13
11
  .ep(commonParams)
14
12
  .m(function (Command, cs, config, o) {
15
13
  return [
16
- getSerdePlugin(config, this.serialize, this.deserialize),
17
14
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
18
15
  getEventStreamPlugin(config),
19
16
  getWebSocketPlugin(config, {
@@ -29,8 +26,6 @@ export class StartStreamTranscriptionCommand extends $Command
29
26
  },
30
27
  })
31
28
  .n("TranscribeStreamingClient", "StartStreamTranscriptionCommand")
32
- .f(StartStreamTranscriptionRequestFilterSensitiveLog, StartStreamTranscriptionResponseFilterSensitiveLog)
33
- .ser(se_StartStreamTranscriptionCommand)
34
- .de(de_StartStreamTranscriptionCommand)
29
+ .sc(StartStreamTranscription)
35
30
  .build() {
36
31
  }
@@ -1,4 +1,3 @@
1
- import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
1
  import { TranscribeStreamingServiceException as __BaseException } from "./TranscribeStreamingServiceException";
3
2
  export const ItemType = {
4
3
  PRONUNCIATION: "pronunciation",
@@ -12,16 +11,6 @@ export const ContentRedactionOutput = {
12
11
  REDACTED: "redacted",
13
12
  REDACTED_AND_UNREDACTED: "redacted_and_unredacted",
14
13
  };
15
- export var AudioStream;
16
- (function (AudioStream) {
17
- AudioStream.visit = (value, visitor) => {
18
- if (value.AudioEvent !== undefined)
19
- return visitor.AudioEvent(value.AudioEvent);
20
- if (value.ConfigurationEvent !== undefined)
21
- return visitor.ConfigurationEvent(value.ConfigurationEvent);
22
- return visitor._(value.$unknown[0], value.$unknown[1]);
23
- };
24
- })(AudioStream || (AudioStream = {}));
25
14
  export class BadRequestException extends __BaseException {
26
15
  name = "BadRequestException";
27
16
  $fault = "client";
@@ -109,26 +98,6 @@ export const Sentiment = {
109
98
  NEUTRAL: "NEUTRAL",
110
99
  POSITIVE: "POSITIVE",
111
100
  };
112
- export var CallAnalyticsTranscriptResultStream;
113
- (function (CallAnalyticsTranscriptResultStream) {
114
- CallAnalyticsTranscriptResultStream.visit = (value, visitor) => {
115
- if (value.UtteranceEvent !== undefined)
116
- return visitor.UtteranceEvent(value.UtteranceEvent);
117
- if (value.CategoryEvent !== undefined)
118
- return visitor.CategoryEvent(value.CategoryEvent);
119
- if (value.BadRequestException !== undefined)
120
- return visitor.BadRequestException(value.BadRequestException);
121
- if (value.LimitExceededException !== undefined)
122
- return visitor.LimitExceededException(value.LimitExceededException);
123
- if (value.InternalFailureException !== undefined)
124
- return visitor.InternalFailureException(value.InternalFailureException);
125
- if (value.ConflictException !== undefined)
126
- return visitor.ConflictException(value.ConflictException);
127
- if (value.ServiceUnavailableException !== undefined)
128
- return visitor.ServiceUnavailableException(value.ServiceUnavailableException);
129
- return visitor._(value.$unknown[0], value.$unknown[1]);
130
- };
131
- })(CallAnalyticsTranscriptResultStream || (CallAnalyticsTranscriptResultStream = {}));
132
101
  export const ClinicalNoteGenerationStatus = {
133
102
  COMPLETED: "COMPLETED",
134
103
  FAILED: "FAILED",
@@ -258,58 +227,10 @@ export const Pronouns = {
258
227
  export const MedicalScribeSessionControlEventType = {
259
228
  END_OF_SESSION: "END_OF_SESSION",
260
229
  };
261
- export var MedicalScribeInputStream;
262
- (function (MedicalScribeInputStream) {
263
- MedicalScribeInputStream.visit = (value, visitor) => {
264
- if (value.AudioEvent !== undefined)
265
- return visitor.AudioEvent(value.AudioEvent);
266
- if (value.SessionControlEvent !== undefined)
267
- return visitor.SessionControlEvent(value.SessionControlEvent);
268
- if (value.ConfigurationEvent !== undefined)
269
- return visitor.ConfigurationEvent(value.ConfigurationEvent);
270
- return visitor._(value.$unknown[0], value.$unknown[1]);
271
- };
272
- })(MedicalScribeInputStream || (MedicalScribeInputStream = {}));
273
230
  export const MedicalScribeTranscriptItemType = {
274
231
  PRONUNCIATION: "pronunciation",
275
232
  PUNCTUATION: "punctuation",
276
233
  };
277
- export var MedicalScribeResultStream;
278
- (function (MedicalScribeResultStream) {
279
- MedicalScribeResultStream.visit = (value, visitor) => {
280
- if (value.TranscriptEvent !== undefined)
281
- return visitor.TranscriptEvent(value.TranscriptEvent);
282
- if (value.BadRequestException !== undefined)
283
- return visitor.BadRequestException(value.BadRequestException);
284
- if (value.LimitExceededException !== undefined)
285
- return visitor.LimitExceededException(value.LimitExceededException);
286
- if (value.InternalFailureException !== undefined)
287
- return visitor.InternalFailureException(value.InternalFailureException);
288
- if (value.ConflictException !== undefined)
289
- return visitor.ConflictException(value.ConflictException);
290
- if (value.ServiceUnavailableException !== undefined)
291
- return visitor.ServiceUnavailableException(value.ServiceUnavailableException);
292
- return visitor._(value.$unknown[0], value.$unknown[1]);
293
- };
294
- })(MedicalScribeResultStream || (MedicalScribeResultStream = {}));
295
- export var MedicalTranscriptResultStream;
296
- (function (MedicalTranscriptResultStream) {
297
- MedicalTranscriptResultStream.visit = (value, visitor) => {
298
- if (value.TranscriptEvent !== undefined)
299
- return visitor.TranscriptEvent(value.TranscriptEvent);
300
- if (value.BadRequestException !== undefined)
301
- return visitor.BadRequestException(value.BadRequestException);
302
- if (value.LimitExceededException !== undefined)
303
- return visitor.LimitExceededException(value.LimitExceededException);
304
- if (value.InternalFailureException !== undefined)
305
- return visitor.InternalFailureException(value.InternalFailureException);
306
- if (value.ConflictException !== undefined)
307
- return visitor.ConflictException(value.ConflictException);
308
- if (value.ServiceUnavailableException !== undefined)
309
- return visitor.ServiceUnavailableException(value.ServiceUnavailableException);
310
- return visitor._(value.$unknown[0], value.$unknown[1]);
311
- };
312
- })(MedicalTranscriptResultStream || (MedicalTranscriptResultStream = {}));
313
234
  export const PartialResultsStability = {
314
235
  HIGH: "high",
315
236
  LOW: "low",
@@ -332,151 +253,3 @@ export const Type = {
332
253
  CONVERSATION: "CONVERSATION",
333
254
  DICTATION: "DICTATION",
334
255
  };
335
- export var TranscriptResultStream;
336
- (function (TranscriptResultStream) {
337
- TranscriptResultStream.visit = (value, visitor) => {
338
- if (value.TranscriptEvent !== undefined)
339
- return visitor.TranscriptEvent(value.TranscriptEvent);
340
- if (value.BadRequestException !== undefined)
341
- return visitor.BadRequestException(value.BadRequestException);
342
- if (value.LimitExceededException !== undefined)
343
- return visitor.LimitExceededException(value.LimitExceededException);
344
- if (value.InternalFailureException !== undefined)
345
- return visitor.InternalFailureException(value.InternalFailureException);
346
- if (value.ConflictException !== undefined)
347
- return visitor.ConflictException(value.ConflictException);
348
- if (value.ServiceUnavailableException !== undefined)
349
- return visitor.ServiceUnavailableException(value.ServiceUnavailableException);
350
- return visitor._(value.$unknown[0], value.$unknown[1]);
351
- };
352
- })(TranscriptResultStream || (TranscriptResultStream = {}));
353
- export const AudioStreamFilterSensitiveLog = (obj) => {
354
- if (obj.AudioEvent !== undefined)
355
- return { AudioEvent: obj.AudioEvent };
356
- if (obj.ConfigurationEvent !== undefined)
357
- return { ConfigurationEvent: obj.ConfigurationEvent };
358
- if (obj.$unknown !== undefined)
359
- return { [obj.$unknown[0]]: "UNKNOWN" };
360
- };
361
- export const CallAnalyticsTranscriptResultStreamFilterSensitiveLog = (obj) => {
362
- if (obj.UtteranceEvent !== undefined)
363
- return { UtteranceEvent: obj.UtteranceEvent };
364
- if (obj.CategoryEvent !== undefined)
365
- return { CategoryEvent: obj.CategoryEvent };
366
- if (obj.BadRequestException !== undefined)
367
- return { BadRequestException: obj.BadRequestException };
368
- if (obj.LimitExceededException !== undefined)
369
- return { LimitExceededException: obj.LimitExceededException };
370
- if (obj.InternalFailureException !== undefined)
371
- return { InternalFailureException: obj.InternalFailureException };
372
- if (obj.ConflictException !== undefined)
373
- return { ConflictException: obj.ConflictException };
374
- if (obj.ServiceUnavailableException !== undefined)
375
- return { ServiceUnavailableException: obj.ServiceUnavailableException };
376
- if (obj.$unknown !== undefined)
377
- return { [obj.$unknown[0]]: "UNKNOWN" };
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
- });
393
- export const MedicalScribeInputStreamFilterSensitiveLog = (obj) => {
394
- if (obj.AudioEvent !== undefined)
395
- return { AudioEvent: obj.AudioEvent };
396
- if (obj.SessionControlEvent !== undefined)
397
- return { SessionControlEvent: obj.SessionControlEvent };
398
- if (obj.ConfigurationEvent !== undefined)
399
- return { ConfigurationEvent: MedicalScribeConfigurationEventFilterSensitiveLog(obj.ConfigurationEvent) };
400
- if (obj.$unknown !== undefined)
401
- return { [obj.$unknown[0]]: "UNKNOWN" };
402
- };
403
- export const MedicalScribeResultStreamFilterSensitiveLog = (obj) => {
404
- if (obj.TranscriptEvent !== undefined)
405
- return { TranscriptEvent: obj.TranscriptEvent };
406
- if (obj.BadRequestException !== undefined)
407
- return { BadRequestException: obj.BadRequestException };
408
- if (obj.LimitExceededException !== undefined)
409
- return { LimitExceededException: obj.LimitExceededException };
410
- if (obj.InternalFailureException !== undefined)
411
- return { InternalFailureException: obj.InternalFailureException };
412
- if (obj.ConflictException !== undefined)
413
- return { ConflictException: obj.ConflictException };
414
- if (obj.ServiceUnavailableException !== undefined)
415
- return { ServiceUnavailableException: obj.ServiceUnavailableException };
416
- if (obj.$unknown !== undefined)
417
- return { [obj.$unknown[0]]: "UNKNOWN" };
418
- };
419
- export const MedicalTranscriptResultStreamFilterSensitiveLog = (obj) => {
420
- if (obj.TranscriptEvent !== undefined)
421
- return { TranscriptEvent: obj.TranscriptEvent };
422
- if (obj.BadRequestException !== undefined)
423
- return { BadRequestException: obj.BadRequestException };
424
- if (obj.LimitExceededException !== undefined)
425
- return { LimitExceededException: obj.LimitExceededException };
426
- if (obj.InternalFailureException !== undefined)
427
- return { InternalFailureException: obj.InternalFailureException };
428
- if (obj.ConflictException !== undefined)
429
- return { ConflictException: obj.ConflictException };
430
- if (obj.ServiceUnavailableException !== undefined)
431
- return { ServiceUnavailableException: obj.ServiceUnavailableException };
432
- if (obj.$unknown !== undefined)
433
- return { [obj.$unknown[0]]: "UNKNOWN" };
434
- };
435
- export const StartCallAnalyticsStreamTranscriptionRequestFilterSensitiveLog = (obj) => ({
436
- ...obj,
437
- ...(obj.AudioStream && { AudioStream: "STREAMING_CONTENT" }),
438
- });
439
- export const StartCallAnalyticsStreamTranscriptionResponseFilterSensitiveLog = (obj) => ({
440
- ...obj,
441
- ...(obj.CallAnalyticsTranscriptResultStream && { CallAnalyticsTranscriptResultStream: "STREAMING_CONTENT" }),
442
- });
443
- export const StartMedicalScribeStreamRequestFilterSensitiveLog = (obj) => ({
444
- ...obj,
445
- ...(obj.InputStream && { InputStream: "STREAMING_CONTENT" }),
446
- });
447
- export const StartMedicalScribeStreamResponseFilterSensitiveLog = (obj) => ({
448
- ...obj,
449
- ...(obj.ResultStream && { ResultStream: "STREAMING_CONTENT" }),
450
- });
451
- export const StartMedicalStreamTranscriptionRequestFilterSensitiveLog = (obj) => ({
452
- ...obj,
453
- ...(obj.AudioStream && { AudioStream: "STREAMING_CONTENT" }),
454
- });
455
- export const StartMedicalStreamTranscriptionResponseFilterSensitiveLog = (obj) => ({
456
- ...obj,
457
- ...(obj.TranscriptResultStream && { TranscriptResultStream: "STREAMING_CONTENT" }),
458
- });
459
- export const StartStreamTranscriptionRequestFilterSensitiveLog = (obj) => ({
460
- ...obj,
461
- ...(obj.AudioStream && { AudioStream: "STREAMING_CONTENT" }),
462
- });
463
- export const TranscriptResultStreamFilterSensitiveLog = (obj) => {
464
- if (obj.TranscriptEvent !== undefined)
465
- return { TranscriptEvent: obj.TranscriptEvent };
466
- if (obj.BadRequestException !== undefined)
467
- return { BadRequestException: obj.BadRequestException };
468
- if (obj.LimitExceededException !== undefined)
469
- return { LimitExceededException: obj.LimitExceededException };
470
- if (obj.InternalFailureException !== undefined)
471
- return { InternalFailureException: obj.InternalFailureException };
472
- if (obj.ConflictException !== undefined)
473
- return { ConflictException: obj.ConflictException };
474
- if (obj.ServiceUnavailableException !== undefined)
475
- return { ServiceUnavailableException: obj.ServiceUnavailableException };
476
- if (obj.$unknown !== undefined)
477
- return { [obj.$unknown[0]]: "UNKNOWN" };
478
- };
479
- export const StartStreamTranscriptionResponseFilterSensitiveLog = (obj) => ({
480
- ...obj,
481
- ...(obj.TranscriptResultStream && { TranscriptResultStream: "STREAMING_CONTENT" }),
482
- });
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.transcribestreaming" }),
25
27
  serviceId: config?.serviceId ?? "Transcribe Streaming",
26
28
  urlParser: config?.urlParser ?? parseUrl,
27
29
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,