@aws-sdk/client-transcribe-streaming 3.186.0 → 3.188.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/CHANGELOG.md +8 -0
- package/dist-es/TranscribeStreaming.js +10 -17
- package/dist-es/TranscribeStreamingClient.js +26 -32
- package/dist-es/commands/StartMedicalStreamTranscriptionCommand.js +21 -28
- package/dist-es/commands/StartStreamTranscriptionCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/TranscribeStreamingServiceException.js +5 -10
- package/dist-es/models/models_0.js +127 -91
- package/dist-es/protocols/Aws_restJson1.js +503 -654
- package/dist-es/runtimeConfig.browser.js +28 -12
- package/dist-es/runtimeConfig.js +33 -19
- package/dist-es/runtimeConfig.native.js +10 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +39 -39
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.188.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.187.0...v3.188.0) (2022-10-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-transcribe-streaming
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @aws-sdk/client-transcribe-streaming
|
|
@@ -1,40 +1,33 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { StartMedicalStreamTranscriptionCommand, } from "./commands/StartMedicalStreamTranscriptionCommand";
|
|
3
2
|
import { StartStreamTranscriptionCommand, } from "./commands/StartStreamTranscriptionCommand";
|
|
4
3
|
import { TranscribeStreamingClient } from "./TranscribeStreamingClient";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
9
|
-
}
|
|
10
|
-
TranscribeStreaming.prototype.startMedicalStreamTranscription = function (args, optionsOrCb, cb) {
|
|
11
|
-
var command = new StartMedicalStreamTranscriptionCommand(args);
|
|
4
|
+
export class TranscribeStreaming extends TranscribeStreamingClient {
|
|
5
|
+
startMedicalStreamTranscription(args, optionsOrCb, cb) {
|
|
6
|
+
const command = new StartMedicalStreamTranscriptionCommand(args);
|
|
12
7
|
if (typeof optionsOrCb === "function") {
|
|
13
8
|
this.send(command, optionsOrCb);
|
|
14
9
|
}
|
|
15
10
|
else if (typeof cb === "function") {
|
|
16
11
|
if (typeof optionsOrCb !== "object")
|
|
17
|
-
throw new Error(
|
|
12
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
18
13
|
this.send(command, optionsOrCb || {}, cb);
|
|
19
14
|
}
|
|
20
15
|
else {
|
|
21
16
|
return this.send(command, optionsOrCb);
|
|
22
17
|
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
}
|
|
19
|
+
startStreamTranscription(args, optionsOrCb, cb) {
|
|
20
|
+
const command = new StartStreamTranscriptionCommand(args);
|
|
26
21
|
if (typeof optionsOrCb === "function") {
|
|
27
22
|
this.send(command, optionsOrCb);
|
|
28
23
|
}
|
|
29
24
|
else if (typeof cb === "function") {
|
|
30
25
|
if (typeof optionsOrCb !== "object")
|
|
31
|
-
throw new Error(
|
|
26
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
32
27
|
this.send(command, optionsOrCb || {}, cb);
|
|
33
28
|
}
|
|
34
29
|
else {
|
|
35
30
|
return this.send(command, optionsOrCb);
|
|
36
31
|
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
}(TranscribeStreamingClient));
|
|
40
|
-
export { TranscribeStreaming };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
2
|
import { resolveEventStreamSerdeConfig, } from "@aws-sdk/eventstream-serde-config-resolver";
|
|
4
3
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
@@ -12,35 +11,30 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
12
11
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
13
12
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
14
13
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
_this.middlewareStack.use(getWebSocketPlugin(_this.config));
|
|
38
|
-
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
39
|
-
return _this;
|
|
14
|
+
export class TranscribeStreamingClient extends __Client {
|
|
15
|
+
constructor(configuration) {
|
|
16
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
17
|
+
const _config_1 = resolveRegionConfig(_config_0);
|
|
18
|
+
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
19
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
20
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
21
|
+
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
22
|
+
const _config_6 = resolveEventStreamConfig(_config_5);
|
|
23
|
+
const _config_7 = resolveWebSocketConfig(_config_6);
|
|
24
|
+
const _config_8 = resolveUserAgentConfig(_config_7);
|
|
25
|
+
const _config_9 = resolveEventStreamSerdeConfig(_config_8);
|
|
26
|
+
super(_config_9);
|
|
27
|
+
this.config = _config_9;
|
|
28
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
29
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
30
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
31
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
32
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
33
|
+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
34
|
+
this.middlewareStack.use(getWebSocketPlugin(this.config));
|
|
35
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
40
36
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
}(__Client));
|
|
46
|
-
export { TranscribeStreamingClient };
|
|
37
|
+
destroy() {
|
|
38
|
+
super.destroy();
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -1,41 +1,34 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getEventStreamPlugin } from "@aws-sdk/middleware-eventstream";
|
|
3
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
4
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
4
|
import { StartMedicalStreamTranscriptionRequestFilterSensitiveLog, StartMedicalStreamTranscriptionResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
5
|
import { deserializeAws_restJson1StartMedicalStreamTranscriptionCommand, serializeAws_restJson1StartMedicalStreamTranscriptionCommand, } from "../protocols/Aws_restJson1";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
_this.input = input;
|
|
12
|
-
return _this;
|
|
6
|
+
export class StartMedicalStreamTranscriptionCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
13
10
|
}
|
|
14
|
-
|
|
11
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
15
12
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
16
13
|
this.middlewareStack.use(getEventStreamPlugin(configuration));
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
logger
|
|
23
|
-
clientName
|
|
24
|
-
commandName
|
|
14
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
15
|
+
const { logger } = configuration;
|
|
16
|
+
const clientName = "TranscribeStreamingClient";
|
|
17
|
+
const commandName = "StartMedicalStreamTranscriptionCommand";
|
|
18
|
+
const handlerExecutionContext = {
|
|
19
|
+
logger,
|
|
20
|
+
clientName,
|
|
21
|
+
commandName,
|
|
25
22
|
inputFilterSensitiveLog: StartMedicalStreamTranscriptionRequestFilterSensitiveLog,
|
|
26
23
|
outputFilterSensitiveLog: StartMedicalStreamTranscriptionResponseFilterSensitiveLog,
|
|
27
24
|
};
|
|
28
|
-
|
|
29
|
-
return stack.resolve(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
};
|
|
33
|
-
StartMedicalStreamTranscriptionCommand.prototype.serialize = function (input, context) {
|
|
25
|
+
const { requestHandler } = configuration;
|
|
26
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
27
|
+
}
|
|
28
|
+
serialize(input, context) {
|
|
34
29
|
return serializeAws_restJson1StartMedicalStreamTranscriptionCommand(input, context);
|
|
35
|
-
}
|
|
36
|
-
|
|
30
|
+
}
|
|
31
|
+
deserialize(output, context) {
|
|
37
32
|
return deserializeAws_restJson1StartMedicalStreamTranscriptionCommand(output, context);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
}($Command));
|
|
41
|
-
export { StartMedicalStreamTranscriptionCommand };
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -1,41 +1,34 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getEventStreamPlugin } from "@aws-sdk/middleware-eventstream";
|
|
3
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
4
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
4
|
import { StartStreamTranscriptionRequestFilterSensitiveLog, StartStreamTranscriptionResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
5
|
import { deserializeAws_restJson1StartStreamTranscriptionCommand, serializeAws_restJson1StartStreamTranscriptionCommand, } from "../protocols/Aws_restJson1";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
_this.input = input;
|
|
12
|
-
return _this;
|
|
6
|
+
export class StartStreamTranscriptionCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
13
10
|
}
|
|
14
|
-
|
|
11
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
15
12
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
16
13
|
this.middlewareStack.use(getEventStreamPlugin(configuration));
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
logger
|
|
23
|
-
clientName
|
|
24
|
-
commandName
|
|
14
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
15
|
+
const { logger } = configuration;
|
|
16
|
+
const clientName = "TranscribeStreamingClient";
|
|
17
|
+
const commandName = "StartStreamTranscriptionCommand";
|
|
18
|
+
const handlerExecutionContext = {
|
|
19
|
+
logger,
|
|
20
|
+
clientName,
|
|
21
|
+
commandName,
|
|
25
22
|
inputFilterSensitiveLog: StartStreamTranscriptionRequestFilterSensitiveLog,
|
|
26
23
|
outputFilterSensitiveLog: StartStreamTranscriptionResponseFilterSensitiveLog,
|
|
27
24
|
};
|
|
28
|
-
|
|
29
|
-
return stack.resolve(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
};
|
|
33
|
-
StartStreamTranscriptionCommand.prototype.serialize = function (input, context) {
|
|
25
|
+
const { requestHandler } = configuration;
|
|
26
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
27
|
+
}
|
|
28
|
+
serialize(input, context) {
|
|
34
29
|
return serializeAws_restJson1StartStreamTranscriptionCommand(input, context);
|
|
35
|
-
}
|
|
36
|
-
|
|
30
|
+
}
|
|
31
|
+
deserialize(output, context) {
|
|
37
32
|
return deserializeAws_restJson1StartStreamTranscriptionCommand(output, context);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
}($Command));
|
|
41
|
-
export { StartStreamTranscriptionCommand };
|
|
33
|
+
}
|
|
34
|
+
}
|
package/dist-es/endpoints.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
const regionHash = {};
|
|
3
|
+
const partitionHash = {
|
|
5
4
|
aws: {
|
|
6
5
|
regions: [
|
|
7
6
|
"af-south-1",
|
|
@@ -129,8 +128,9 @@ var partitionHash = {
|
|
|
129
128
|
],
|
|
130
129
|
},
|
|
131
130
|
};
|
|
132
|
-
export
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
131
|
+
export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
|
|
132
|
+
...options,
|
|
133
|
+
signingService: "transcribe",
|
|
134
|
+
regionHash,
|
|
135
|
+
partitionHash,
|
|
136
|
+
});
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.setPrototypeOf(_this, TranscribeStreamingServiceException.prototype);
|
|
8
|
-
return _this;
|
|
2
|
+
export class TranscribeStreamingServiceException extends __ServiceException {
|
|
3
|
+
constructor(options) {
|
|
4
|
+
super(options);
|
|
5
|
+
Object.setPrototypeOf(this, TranscribeStreamingServiceException.prototype);
|
|
9
6
|
}
|
|
10
|
-
|
|
11
|
-
}(__ServiceException));
|
|
12
|
-
export { TranscribeStreamingServiceException };
|
|
7
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __assign, __extends } from "tslib";
|
|
2
1
|
import { TranscribeStreamingServiceException as __BaseException } from "./TranscribeStreamingServiceException";
|
|
3
2
|
export var ItemType;
|
|
4
3
|
(function (ItemType) {
|
|
@@ -7,38 +6,38 @@ export var ItemType;
|
|
|
7
6
|
})(ItemType || (ItemType = {}));
|
|
8
7
|
export var AudioStream;
|
|
9
8
|
(function (AudioStream) {
|
|
10
|
-
AudioStream.visit =
|
|
9
|
+
AudioStream.visit = (value, visitor) => {
|
|
11
10
|
if (value.AudioEvent !== undefined)
|
|
12
11
|
return visitor.AudioEvent(value.AudioEvent);
|
|
13
12
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
14
13
|
};
|
|
15
14
|
})(AudioStream || (AudioStream = {}));
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
export class BadRequestException extends __BaseException {
|
|
16
|
+
constructor(opts) {
|
|
17
|
+
super({
|
|
18
|
+
name: "BadRequestException",
|
|
19
|
+
$fault: "client",
|
|
20
|
+
...opts,
|
|
21
|
+
});
|
|
22
|
+
this.name = "BadRequestException";
|
|
23
|
+
this.$fault = "client";
|
|
24
|
+
Object.setPrototypeOf(this, BadRequestException.prototype);
|
|
25
|
+
this.Message = opts.Message;
|
|
25
26
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
27
|
+
}
|
|
28
|
+
export class ConflictException extends __BaseException {
|
|
29
|
+
constructor(opts) {
|
|
30
|
+
super({
|
|
31
|
+
name: "ConflictException",
|
|
32
|
+
$fault: "client",
|
|
33
|
+
...opts,
|
|
34
|
+
});
|
|
35
|
+
this.name = "ConflictException";
|
|
36
|
+
this.$fault = "client";
|
|
37
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
38
|
+
this.Message = opts.Message;
|
|
38
39
|
}
|
|
39
|
-
|
|
40
|
-
}(__BaseException));
|
|
41
|
-
export { ConflictException };
|
|
40
|
+
}
|
|
42
41
|
export var ContentIdentificationType;
|
|
43
42
|
(function (ContentIdentificationType) {
|
|
44
43
|
ContentIdentificationType["PII"] = "PII";
|
|
@@ -47,19 +46,19 @@ export var ContentRedactionType;
|
|
|
47
46
|
(function (ContentRedactionType) {
|
|
48
47
|
ContentRedactionType["PII"] = "PII";
|
|
49
48
|
})(ContentRedactionType || (ContentRedactionType = {}));
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
49
|
+
export class InternalFailureException extends __BaseException {
|
|
50
|
+
constructor(opts) {
|
|
51
|
+
super({
|
|
52
|
+
name: "InternalFailureException",
|
|
53
|
+
$fault: "server",
|
|
54
|
+
...opts,
|
|
55
|
+
});
|
|
56
|
+
this.name = "InternalFailureException";
|
|
57
|
+
this.$fault = "server";
|
|
58
|
+
Object.setPrototypeOf(this, InternalFailureException.prototype);
|
|
59
|
+
this.Message = opts.Message;
|
|
59
60
|
}
|
|
60
|
-
|
|
61
|
-
}(__BaseException));
|
|
62
|
-
export { InternalFailureException };
|
|
61
|
+
}
|
|
63
62
|
export var LanguageCode;
|
|
64
63
|
(function (LanguageCode) {
|
|
65
64
|
LanguageCode["DE_DE"] = "de-DE";
|
|
@@ -75,19 +74,19 @@ export var LanguageCode;
|
|
|
75
74
|
LanguageCode["PT_BR"] = "pt-BR";
|
|
76
75
|
LanguageCode["ZH_CN"] = "zh-CN";
|
|
77
76
|
})(LanguageCode || (LanguageCode = {}));
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
77
|
+
export class LimitExceededException extends __BaseException {
|
|
78
|
+
constructor(opts) {
|
|
79
|
+
super({
|
|
80
|
+
name: "LimitExceededException",
|
|
81
|
+
$fault: "client",
|
|
82
|
+
...opts,
|
|
83
|
+
});
|
|
84
|
+
this.name = "LimitExceededException";
|
|
85
|
+
this.$fault = "client";
|
|
86
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
87
|
+
this.Message = opts.Message;
|
|
87
88
|
}
|
|
88
|
-
|
|
89
|
-
}(__BaseException));
|
|
90
|
-
export { LimitExceededException };
|
|
89
|
+
}
|
|
91
90
|
export var MediaEncoding;
|
|
92
91
|
(function (MediaEncoding) {
|
|
93
92
|
MediaEncoding["FLAC"] = "flac";
|
|
@@ -98,22 +97,22 @@ export var MedicalContentIdentificationType;
|
|
|
98
97
|
(function (MedicalContentIdentificationType) {
|
|
99
98
|
MedicalContentIdentificationType["PHI"] = "PHI";
|
|
100
99
|
})(MedicalContentIdentificationType || (MedicalContentIdentificationType = {}));
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
100
|
+
export class ServiceUnavailableException extends __BaseException {
|
|
101
|
+
constructor(opts) {
|
|
102
|
+
super({
|
|
103
|
+
name: "ServiceUnavailableException",
|
|
104
|
+
$fault: "server",
|
|
105
|
+
...opts,
|
|
106
|
+
});
|
|
107
|
+
this.name = "ServiceUnavailableException";
|
|
108
|
+
this.$fault = "server";
|
|
109
|
+
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
110
|
+
this.Message = opts.Message;
|
|
110
111
|
}
|
|
111
|
-
|
|
112
|
-
}(__BaseException));
|
|
113
|
-
export { ServiceUnavailableException };
|
|
112
|
+
}
|
|
114
113
|
export var MedicalTranscriptResultStream;
|
|
115
114
|
(function (MedicalTranscriptResultStream) {
|
|
116
|
-
MedicalTranscriptResultStream.visit =
|
|
115
|
+
MedicalTranscriptResultStream.visit = (value, visitor) => {
|
|
117
116
|
if (value.TranscriptEvent !== undefined)
|
|
118
117
|
return visitor.TranscriptEvent(value.TranscriptEvent);
|
|
119
118
|
if (value.BadRequestException !== undefined)
|
|
@@ -157,7 +156,7 @@ export var VocabularyFilterMethod;
|
|
|
157
156
|
})(VocabularyFilterMethod || (VocabularyFilterMethod = {}));
|
|
158
157
|
export var TranscriptResultStream;
|
|
159
158
|
(function (TranscriptResultStream) {
|
|
160
|
-
TranscriptResultStream.visit =
|
|
159
|
+
TranscriptResultStream.visit = (value, visitor) => {
|
|
161
160
|
if (value.TranscriptEvent !== undefined)
|
|
162
161
|
return visitor.TranscriptEvent(value.TranscriptEvent);
|
|
163
162
|
if (value.BadRequestException !== undefined)
|
|
@@ -173,26 +172,46 @@ export var TranscriptResultStream;
|
|
|
173
172
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
174
173
|
};
|
|
175
174
|
})(TranscriptResultStream || (TranscriptResultStream = {}));
|
|
176
|
-
export
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
export
|
|
180
|
-
|
|
181
|
-
|
|
175
|
+
export const EntityFilterSensitiveLog = (obj) => ({
|
|
176
|
+
...obj,
|
|
177
|
+
});
|
|
178
|
+
export const ItemFilterSensitiveLog = (obj) => ({
|
|
179
|
+
...obj,
|
|
180
|
+
});
|
|
181
|
+
export const AlternativeFilterSensitiveLog = (obj) => ({
|
|
182
|
+
...obj,
|
|
183
|
+
});
|
|
184
|
+
export const AudioEventFilterSensitiveLog = (obj) => ({
|
|
185
|
+
...obj,
|
|
186
|
+
});
|
|
187
|
+
export const AudioStreamFilterSensitiveLog = (obj) => {
|
|
182
188
|
if (obj.AudioEvent !== undefined)
|
|
183
189
|
return { AudioEvent: AudioEventFilterSensitiveLog(obj.AudioEvent) };
|
|
184
190
|
if (obj.$unknown !== undefined)
|
|
185
|
-
return
|
|
191
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
186
192
|
};
|
|
187
|
-
export
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
export
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
export
|
|
194
|
-
|
|
195
|
-
|
|
193
|
+
export const LanguageWithScoreFilterSensitiveLog = (obj) => ({
|
|
194
|
+
...obj,
|
|
195
|
+
});
|
|
196
|
+
export const MedicalEntityFilterSensitiveLog = (obj) => ({
|
|
197
|
+
...obj,
|
|
198
|
+
});
|
|
199
|
+
export const MedicalItemFilterSensitiveLog = (obj) => ({
|
|
200
|
+
...obj,
|
|
201
|
+
});
|
|
202
|
+
export const MedicalAlternativeFilterSensitiveLog = (obj) => ({
|
|
203
|
+
...obj,
|
|
204
|
+
});
|
|
205
|
+
export const MedicalResultFilterSensitiveLog = (obj) => ({
|
|
206
|
+
...obj,
|
|
207
|
+
});
|
|
208
|
+
export const MedicalTranscriptFilterSensitiveLog = (obj) => ({
|
|
209
|
+
...obj,
|
|
210
|
+
});
|
|
211
|
+
export const MedicalTranscriptEventFilterSensitiveLog = (obj) => ({
|
|
212
|
+
...obj,
|
|
213
|
+
});
|
|
214
|
+
export const MedicalTranscriptResultStreamFilterSensitiveLog = (obj) => {
|
|
196
215
|
if (obj.TranscriptEvent !== undefined)
|
|
197
216
|
return { TranscriptEvent: MedicalTranscriptEventFilterSensitiveLog(obj.TranscriptEvent) };
|
|
198
217
|
if (obj.BadRequestException !== undefined)
|
|
@@ -206,16 +225,30 @@ export var MedicalTranscriptResultStreamFilterSensitiveLog = function (obj) {
|
|
|
206
225
|
if (obj.ServiceUnavailableException !== undefined)
|
|
207
226
|
return { ServiceUnavailableException: obj.ServiceUnavailableException };
|
|
208
227
|
if (obj.$unknown !== undefined)
|
|
209
|
-
return
|
|
228
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
210
229
|
};
|
|
211
|
-
export
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
export
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
230
|
+
export const ResultFilterSensitiveLog = (obj) => ({
|
|
231
|
+
...obj,
|
|
232
|
+
});
|
|
233
|
+
export const StartMedicalStreamTranscriptionRequestFilterSensitiveLog = (obj) => ({
|
|
234
|
+
...obj,
|
|
235
|
+
...(obj.AudioStream && { AudioStream: "STREAMING_CONTENT" }),
|
|
236
|
+
});
|
|
237
|
+
export const StartMedicalStreamTranscriptionResponseFilterSensitiveLog = (obj) => ({
|
|
238
|
+
...obj,
|
|
239
|
+
...(obj.TranscriptResultStream && { TranscriptResultStream: "STREAMING_CONTENT" }),
|
|
240
|
+
});
|
|
241
|
+
export const StartStreamTranscriptionRequestFilterSensitiveLog = (obj) => ({
|
|
242
|
+
...obj,
|
|
243
|
+
...(obj.AudioStream && { AudioStream: "STREAMING_CONTENT" }),
|
|
244
|
+
});
|
|
245
|
+
export const TranscriptFilterSensitiveLog = (obj) => ({
|
|
246
|
+
...obj,
|
|
247
|
+
});
|
|
248
|
+
export const TranscriptEventFilterSensitiveLog = (obj) => ({
|
|
249
|
+
...obj,
|
|
250
|
+
});
|
|
251
|
+
export const TranscriptResultStreamFilterSensitiveLog = (obj) => {
|
|
219
252
|
if (obj.TranscriptEvent !== undefined)
|
|
220
253
|
return { TranscriptEvent: TranscriptEventFilterSensitiveLog(obj.TranscriptEvent) };
|
|
221
254
|
if (obj.BadRequestException !== undefined)
|
|
@@ -229,6 +262,9 @@ export var TranscriptResultStreamFilterSensitiveLog = function (obj) {
|
|
|
229
262
|
if (obj.ServiceUnavailableException !== undefined)
|
|
230
263
|
return { ServiceUnavailableException: obj.ServiceUnavailableException };
|
|
231
264
|
if (obj.$unknown !== undefined)
|
|
232
|
-
return
|
|
265
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
233
266
|
};
|
|
234
|
-
export
|
|
267
|
+
export const StartStreamTranscriptionResponseFilterSensitiveLog = (obj) => ({
|
|
268
|
+
...obj,
|
|
269
|
+
...(obj.TranscriptResultStream && { TranscriptResultStream: "STREAMING_CONTENT" }),
|
|
270
|
+
});
|