@aws-sdk/client-transcribe-streaming 3.928.0 → 3.929.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 +1514 -1132
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/TranscribeStreamingClient.js +2 -0
- package/dist-es/commands/GetMedicalScribeStreamCommand.js +3 -9
- package/dist-es/commands/StartCallAnalyticsStreamTranscriptionCommand.js +2 -7
- package/dist-es/commands/StartMedicalScribeStreamCommand.js +2 -7
- package/dist-es/commands/StartMedicalStreamTranscriptionCommand.js +2 -7
- package/dist-es/commands/StartStreamTranscriptionCommand.js +2 -7
- package/dist-es/models/models_0.js +0 -131
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +1534 -0
- package/dist-types/TranscribeStreamingClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -68
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +92 -0
- package/dist-types/ts3.4/TranscribeStreamingClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -49
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +99 -0
- package/package.json +2 -2
- package/dist-es/protocols/Aws_restJson1.js +0 -988
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -47
- 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 {
|
|
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
|
-
.
|
|
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 {
|
|
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
|
-
.
|
|
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 {
|
|
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
|
-
.
|
|
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 {
|
|
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
|
-
.
|
|
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 {
|
|
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
|
-
.
|
|
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",
|
|
@@ -350,133 +349,3 @@ export var TranscriptResultStream;
|
|
|
350
349
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
351
350
|
};
|
|
352
351
|
})(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,
|