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