@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.
- package/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +8 -2
- 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 -641
- 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
|
@@ -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
|
+
});
|