@aws-sdk/client-transcribe-streaming 3.180.0 → 3.183.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.
@@ -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
+ });