@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 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
- 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);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- TranscribeStreaming.prototype.startStreamTranscription = function (args, optionsOrCb, cb) {
25
- var command = new StartStreamTranscriptionCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- return TranscribeStreaming;
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
- 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;
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
- TranscribeStreamingClient.prototype.destroy = function () {
42
- _super.prototype.destroy.call(this);
43
- };
44
- return TranscribeStreamingClient;
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
- 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;
6
+ export class StartMedicalStreamTranscriptionCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- StartMedicalStreamTranscriptionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
+ resolveMiddleware(clientStack, configuration, options) {
15
12
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
16
13
  this.middlewareStack.use(getEventStreamPlugin(configuration));
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,
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
- 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) {
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
- StartMedicalStreamTranscriptionCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_restJson1StartMedicalStreamTranscriptionCommand(output, context);
38
- };
39
- return StartMedicalStreamTranscriptionCommand;
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
- 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;
6
+ export class StartStreamTranscriptionCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- StartStreamTranscriptionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
+ resolveMiddleware(clientStack, configuration, options) {
15
12
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
16
13
  this.middlewareStack.use(getEventStreamPlugin(configuration));
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,
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
- 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) {
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
- StartStreamTranscriptionCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_restJson1StartStreamTranscriptionCommand(output, context);
38
- };
39
- return StartStreamTranscriptionCommand;
40
- }($Command));
41
- export { StartStreamTranscriptionCommand };
33
+ }
34
+ }
@@ -1,7 +1,6 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {};
4
- var partitionHash = {
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 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
- }); };
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
- 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;
2
+ export class TranscribeStreamingServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, TranscribeStreamingServiceException.prototype);
9
6
  }
10
- return TranscribeStreamingServiceException;
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 = function (value, visitor) {
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
- 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;
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
- 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;
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
- return ConflictException;
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
- 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;
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
- return InternalFailureException;
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
- 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;
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
- return LimitExceededException;
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
- 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;
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
- return ServiceUnavailableException;
112
- }(__BaseException));
113
- export { ServiceUnavailableException };
112
+ }
114
113
  export var MedicalTranscriptResultStream;
115
114
  (function (MedicalTranscriptResultStream) {
116
- MedicalTranscriptResultStream.visit = function (value, visitor) {
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 = function (value, visitor) {
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 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;
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 _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
191
+ return { [obj.$unknown[0]]: "UNKNOWN" };
186
192
  };
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;
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 _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
228
+ return { [obj.$unknown[0]]: "UNKNOWN" };
210
229
  };
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;
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 _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
265
+ return { [obj.$unknown[0]]: "UNKNOWN" };
233
266
  };
234
- export var StartStreamTranscriptionResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.TranscriptResultStream && { TranscriptResultStream: "STREAMING_CONTENT" }))); };
267
+ export const StartStreamTranscriptionResponseFilterSensitiveLog = (obj) => ({
268
+ ...obj,
269
+ ...(obj.TranscriptResultStream && { TranscriptResultStream: "STREAMING_CONTENT" }),
270
+ });