@aws-sdk/client-transcribe-streaming 3.490.0 → 3.496.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,12 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TranscribeStreamingServiceException = exports.__ServiceException = void 0;
4
- const smithy_client_1 = require("@smithy/smithy-client");
5
- Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
- class TranscribeStreamingServiceException extends smithy_client_1.ServiceException {
7
- constructor(options) {
8
- super(options);
9
- Object.setPrototypeOf(this, TranscribeStreamingServiceException.prototype);
10
- }
11
- }
12
- exports.TranscribeStreamingServiceException = TranscribeStreamingServiceException;
1
+ module.exports = require("../index.js");
@@ -1,4 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./models_0"), exports);
1
+ module.exports = require("../index.js");
@@ -1,313 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StartStreamTranscriptionResponseFilterSensitiveLog = exports.TranscriptResultStreamFilterSensitiveLog = exports.StartStreamTranscriptionRequestFilterSensitiveLog = exports.StartMedicalStreamTranscriptionResponseFilterSensitiveLog = exports.StartMedicalStreamTranscriptionRequestFilterSensitiveLog = exports.StartCallAnalyticsStreamTranscriptionResponseFilterSensitiveLog = exports.StartCallAnalyticsStreamTranscriptionRequestFilterSensitiveLog = exports.MedicalTranscriptResultStreamFilterSensitiveLog = exports.CallAnalyticsTranscriptResultStreamFilterSensitiveLog = exports.AudioStreamFilterSensitiveLog = exports.TranscriptResultStream = exports.Type = exports.VocabularyFilterMethod = exports.Specialty = exports.PartialResultsStability = exports.MedicalTranscriptResultStream = exports.MedicalContentIdentificationType = exports.MediaEncoding = exports.LanguageCode = exports.ContentRedactionType = exports.ContentIdentificationType = exports.CallAnalyticsTranscriptResultStream = exports.Sentiment = exports.ServiceUnavailableException = exports.LimitExceededException = exports.InternalFailureException = exports.ConflictException = exports.CallAnalyticsLanguageCode = exports.BadRequestException = exports.AudioStream = exports.ContentRedactionOutput = exports.ParticipantRole = exports.ItemType = void 0;
4
- const TranscribeStreamingServiceException_1 = require("./TranscribeStreamingServiceException");
5
- exports.ItemType = {
6
- PRONUNCIATION: "pronunciation",
7
- PUNCTUATION: "punctuation",
8
- };
9
- exports.ParticipantRole = {
10
- AGENT: "AGENT",
11
- CUSTOMER: "CUSTOMER",
12
- };
13
- exports.ContentRedactionOutput = {
14
- REDACTED: "redacted",
15
- REDACTED_AND_UNREDACTED: "redacted_and_unredacted",
16
- };
17
- var AudioStream;
18
- (function (AudioStream) {
19
- AudioStream.visit = (value, visitor) => {
20
- if (value.AudioEvent !== undefined)
21
- return visitor.AudioEvent(value.AudioEvent);
22
- if (value.ConfigurationEvent !== undefined)
23
- return visitor.ConfigurationEvent(value.ConfigurationEvent);
24
- return visitor._(value.$unknown[0], value.$unknown[1]);
25
- };
26
- })(AudioStream = exports.AudioStream || (exports.AudioStream = {}));
27
- class BadRequestException extends TranscribeStreamingServiceException_1.TranscribeStreamingServiceException {
28
- constructor(opts) {
29
- super({
30
- name: "BadRequestException",
31
- $fault: "client",
32
- ...opts,
33
- });
34
- this.name = "BadRequestException";
35
- this.$fault = "client";
36
- Object.setPrototypeOf(this, BadRequestException.prototype);
37
- this.Message = opts.Message;
38
- }
39
- }
40
- exports.BadRequestException = BadRequestException;
41
- exports.CallAnalyticsLanguageCode = {
42
- DE_DE: "de-DE",
43
- EN_AU: "en-AU",
44
- EN_GB: "en-GB",
45
- EN_US: "en-US",
46
- ES_US: "es-US",
47
- FR_CA: "fr-CA",
48
- FR_FR: "fr-FR",
49
- IT_IT: "it-IT",
50
- PT_BR: "pt-BR",
51
- };
52
- class ConflictException extends TranscribeStreamingServiceException_1.TranscribeStreamingServiceException {
53
- constructor(opts) {
54
- super({
55
- name: "ConflictException",
56
- $fault: "client",
57
- ...opts,
58
- });
59
- this.name = "ConflictException";
60
- this.$fault = "client";
61
- Object.setPrototypeOf(this, ConflictException.prototype);
62
- this.Message = opts.Message;
63
- }
64
- }
65
- exports.ConflictException = ConflictException;
66
- class InternalFailureException extends TranscribeStreamingServiceException_1.TranscribeStreamingServiceException {
67
- constructor(opts) {
68
- super({
69
- name: "InternalFailureException",
70
- $fault: "server",
71
- ...opts,
72
- });
73
- this.name = "InternalFailureException";
74
- this.$fault = "server";
75
- Object.setPrototypeOf(this, InternalFailureException.prototype);
76
- this.Message = opts.Message;
77
- }
78
- }
79
- exports.InternalFailureException = InternalFailureException;
80
- class LimitExceededException extends TranscribeStreamingServiceException_1.TranscribeStreamingServiceException {
81
- constructor(opts) {
82
- super({
83
- name: "LimitExceededException",
84
- $fault: "client",
85
- ...opts,
86
- });
87
- this.name = "LimitExceededException";
88
- this.$fault = "client";
89
- Object.setPrototypeOf(this, LimitExceededException.prototype);
90
- this.Message = opts.Message;
91
- }
92
- }
93
- exports.LimitExceededException = LimitExceededException;
94
- class ServiceUnavailableException extends TranscribeStreamingServiceException_1.TranscribeStreamingServiceException {
95
- constructor(opts) {
96
- super({
97
- name: "ServiceUnavailableException",
98
- $fault: "server",
99
- ...opts,
100
- });
101
- this.name = "ServiceUnavailableException";
102
- this.$fault = "server";
103
- Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
104
- this.Message = opts.Message;
105
- }
106
- }
107
- exports.ServiceUnavailableException = ServiceUnavailableException;
108
- exports.Sentiment = {
109
- MIXED: "MIXED",
110
- NEGATIVE: "NEGATIVE",
111
- NEUTRAL: "NEUTRAL",
112
- POSITIVE: "POSITIVE",
113
- };
114
- var CallAnalyticsTranscriptResultStream;
115
- (function (CallAnalyticsTranscriptResultStream) {
116
- CallAnalyticsTranscriptResultStream.visit = (value, visitor) => {
117
- if (value.UtteranceEvent !== undefined)
118
- return visitor.UtteranceEvent(value.UtteranceEvent);
119
- if (value.CategoryEvent !== undefined)
120
- return visitor.CategoryEvent(value.CategoryEvent);
121
- if (value.BadRequestException !== undefined)
122
- return visitor.BadRequestException(value.BadRequestException);
123
- if (value.LimitExceededException !== undefined)
124
- return visitor.LimitExceededException(value.LimitExceededException);
125
- if (value.InternalFailureException !== undefined)
126
- return visitor.InternalFailureException(value.InternalFailureException);
127
- if (value.ConflictException !== undefined)
128
- return visitor.ConflictException(value.ConflictException);
129
- if (value.ServiceUnavailableException !== undefined)
130
- return visitor.ServiceUnavailableException(value.ServiceUnavailableException);
131
- return visitor._(value.$unknown[0], value.$unknown[1]);
132
- };
133
- })(CallAnalyticsTranscriptResultStream = exports.CallAnalyticsTranscriptResultStream || (exports.CallAnalyticsTranscriptResultStream = {}));
134
- exports.ContentIdentificationType = {
135
- PII: "PII",
136
- };
137
- exports.ContentRedactionType = {
138
- PII: "PII",
139
- };
140
- exports.LanguageCode = {
141
- DE_DE: "de-DE",
142
- EN_AU: "en-AU",
143
- EN_GB: "en-GB",
144
- EN_US: "en-US",
145
- ES_US: "es-US",
146
- FR_CA: "fr-CA",
147
- FR_FR: "fr-FR",
148
- HI_IN: "hi-IN",
149
- IT_IT: "it-IT",
150
- JA_JP: "ja-JP",
151
- KO_KR: "ko-KR",
152
- PT_BR: "pt-BR",
153
- TH_TH: "th-TH",
154
- ZH_CN: "zh-CN",
155
- };
156
- exports.MediaEncoding = {
157
- FLAC: "flac",
158
- OGG_OPUS: "ogg-opus",
159
- PCM: "pcm",
160
- };
161
- exports.MedicalContentIdentificationType = {
162
- PHI: "PHI",
163
- };
164
- var MedicalTranscriptResultStream;
165
- (function (MedicalTranscriptResultStream) {
166
- MedicalTranscriptResultStream.visit = (value, visitor) => {
167
- if (value.TranscriptEvent !== undefined)
168
- return visitor.TranscriptEvent(value.TranscriptEvent);
169
- if (value.BadRequestException !== undefined)
170
- return visitor.BadRequestException(value.BadRequestException);
171
- if (value.LimitExceededException !== undefined)
172
- return visitor.LimitExceededException(value.LimitExceededException);
173
- if (value.InternalFailureException !== undefined)
174
- return visitor.InternalFailureException(value.InternalFailureException);
175
- if (value.ConflictException !== undefined)
176
- return visitor.ConflictException(value.ConflictException);
177
- if (value.ServiceUnavailableException !== undefined)
178
- return visitor.ServiceUnavailableException(value.ServiceUnavailableException);
179
- return visitor._(value.$unknown[0], value.$unknown[1]);
180
- };
181
- })(MedicalTranscriptResultStream = exports.MedicalTranscriptResultStream || (exports.MedicalTranscriptResultStream = {}));
182
- exports.PartialResultsStability = {
183
- HIGH: "high",
184
- LOW: "low",
185
- MEDIUM: "medium",
186
- };
187
- exports.Specialty = {
188
- CARDIOLOGY: "CARDIOLOGY",
189
- NEUROLOGY: "NEUROLOGY",
190
- ONCOLOGY: "ONCOLOGY",
191
- PRIMARYCARE: "PRIMARYCARE",
192
- RADIOLOGY: "RADIOLOGY",
193
- UROLOGY: "UROLOGY",
194
- };
195
- exports.VocabularyFilterMethod = {
196
- MASK: "mask",
197
- REMOVE: "remove",
198
- TAG: "tag",
199
- };
200
- exports.Type = {
201
- CONVERSATION: "CONVERSATION",
202
- DICTATION: "DICTATION",
203
- };
204
- var TranscriptResultStream;
205
- (function (TranscriptResultStream) {
206
- TranscriptResultStream.visit = (value, visitor) => {
207
- if (value.TranscriptEvent !== undefined)
208
- return visitor.TranscriptEvent(value.TranscriptEvent);
209
- if (value.BadRequestException !== undefined)
210
- return visitor.BadRequestException(value.BadRequestException);
211
- if (value.LimitExceededException !== undefined)
212
- return visitor.LimitExceededException(value.LimitExceededException);
213
- if (value.InternalFailureException !== undefined)
214
- return visitor.InternalFailureException(value.InternalFailureException);
215
- if (value.ConflictException !== undefined)
216
- return visitor.ConflictException(value.ConflictException);
217
- if (value.ServiceUnavailableException !== undefined)
218
- return visitor.ServiceUnavailableException(value.ServiceUnavailableException);
219
- return visitor._(value.$unknown[0], value.$unknown[1]);
220
- };
221
- })(TranscriptResultStream = exports.TranscriptResultStream || (exports.TranscriptResultStream = {}));
222
- const AudioStreamFilterSensitiveLog = (obj) => {
223
- if (obj.AudioEvent !== undefined)
224
- return { AudioEvent: obj.AudioEvent };
225
- if (obj.ConfigurationEvent !== undefined)
226
- return { ConfigurationEvent: obj.ConfigurationEvent };
227
- if (obj.$unknown !== undefined)
228
- return { [obj.$unknown[0]]: "UNKNOWN" };
229
- };
230
- exports.AudioStreamFilterSensitiveLog = AudioStreamFilterSensitiveLog;
231
- const CallAnalyticsTranscriptResultStreamFilterSensitiveLog = (obj) => {
232
- if (obj.UtteranceEvent !== undefined)
233
- return { UtteranceEvent: obj.UtteranceEvent };
234
- if (obj.CategoryEvent !== undefined)
235
- return { CategoryEvent: obj.CategoryEvent };
236
- if (obj.BadRequestException !== undefined)
237
- return { BadRequestException: obj.BadRequestException };
238
- if (obj.LimitExceededException !== undefined)
239
- return { LimitExceededException: obj.LimitExceededException };
240
- if (obj.InternalFailureException !== undefined)
241
- return { InternalFailureException: obj.InternalFailureException };
242
- if (obj.ConflictException !== undefined)
243
- return { ConflictException: obj.ConflictException };
244
- if (obj.ServiceUnavailableException !== undefined)
245
- return { ServiceUnavailableException: obj.ServiceUnavailableException };
246
- if (obj.$unknown !== undefined)
247
- return { [obj.$unknown[0]]: "UNKNOWN" };
248
- };
249
- exports.CallAnalyticsTranscriptResultStreamFilterSensitiveLog = CallAnalyticsTranscriptResultStreamFilterSensitiveLog;
250
- const MedicalTranscriptResultStreamFilterSensitiveLog = (obj) => {
251
- if (obj.TranscriptEvent !== undefined)
252
- return { TranscriptEvent: obj.TranscriptEvent };
253
- if (obj.BadRequestException !== undefined)
254
- return { BadRequestException: obj.BadRequestException };
255
- if (obj.LimitExceededException !== undefined)
256
- return { LimitExceededException: obj.LimitExceededException };
257
- if (obj.InternalFailureException !== undefined)
258
- return { InternalFailureException: obj.InternalFailureException };
259
- if (obj.ConflictException !== undefined)
260
- return { ConflictException: obj.ConflictException };
261
- if (obj.ServiceUnavailableException !== undefined)
262
- return { ServiceUnavailableException: obj.ServiceUnavailableException };
263
- if (obj.$unknown !== undefined)
264
- return { [obj.$unknown[0]]: "UNKNOWN" };
265
- };
266
- exports.MedicalTranscriptResultStreamFilterSensitiveLog = MedicalTranscriptResultStreamFilterSensitiveLog;
267
- const StartCallAnalyticsStreamTranscriptionRequestFilterSensitiveLog = (obj) => ({
268
- ...obj,
269
- ...(obj.AudioStream && { AudioStream: "STREAMING_CONTENT" }),
270
- });
271
- exports.StartCallAnalyticsStreamTranscriptionRequestFilterSensitiveLog = StartCallAnalyticsStreamTranscriptionRequestFilterSensitiveLog;
272
- const StartCallAnalyticsStreamTranscriptionResponseFilterSensitiveLog = (obj) => ({
273
- ...obj,
274
- ...(obj.CallAnalyticsTranscriptResultStream && { CallAnalyticsTranscriptResultStream: "STREAMING_CONTENT" }),
275
- });
276
- exports.StartCallAnalyticsStreamTranscriptionResponseFilterSensitiveLog = StartCallAnalyticsStreamTranscriptionResponseFilterSensitiveLog;
277
- const StartMedicalStreamTranscriptionRequestFilterSensitiveLog = (obj) => ({
278
- ...obj,
279
- ...(obj.AudioStream && { AudioStream: "STREAMING_CONTENT" }),
280
- });
281
- exports.StartMedicalStreamTranscriptionRequestFilterSensitiveLog = StartMedicalStreamTranscriptionRequestFilterSensitiveLog;
282
- const StartMedicalStreamTranscriptionResponseFilterSensitiveLog = (obj) => ({
283
- ...obj,
284
- ...(obj.TranscriptResultStream && { TranscriptResultStream: "STREAMING_CONTENT" }),
285
- });
286
- exports.StartMedicalStreamTranscriptionResponseFilterSensitiveLog = StartMedicalStreamTranscriptionResponseFilterSensitiveLog;
287
- const StartStreamTranscriptionRequestFilterSensitiveLog = (obj) => ({
288
- ...obj,
289
- ...(obj.AudioStream && { AudioStream: "STREAMING_CONTENT" }),
290
- });
291
- exports.StartStreamTranscriptionRequestFilterSensitiveLog = StartStreamTranscriptionRequestFilterSensitiveLog;
292
- const TranscriptResultStreamFilterSensitiveLog = (obj) => {
293
- if (obj.TranscriptEvent !== undefined)
294
- return { TranscriptEvent: obj.TranscriptEvent };
295
- if (obj.BadRequestException !== undefined)
296
- return { BadRequestException: obj.BadRequestException };
297
- if (obj.LimitExceededException !== undefined)
298
- return { LimitExceededException: obj.LimitExceededException };
299
- if (obj.InternalFailureException !== undefined)
300
- return { InternalFailureException: obj.InternalFailureException };
301
- if (obj.ConflictException !== undefined)
302
- return { ConflictException: obj.ConflictException };
303
- if (obj.ServiceUnavailableException !== undefined)
304
- return { ServiceUnavailableException: obj.ServiceUnavailableException };
305
- if (obj.$unknown !== undefined)
306
- return { [obj.$unknown[0]]: "UNKNOWN" };
307
- };
308
- exports.TranscriptResultStreamFilterSensitiveLog = TranscriptResultStreamFilterSensitiveLog;
309
- const StartStreamTranscriptionResponseFilterSensitiveLog = (obj) => ({
310
- ...obj,
311
- ...(obj.TranscriptResultStream && { TranscriptResultStream: "STREAMING_CONTENT" }),
312
- });
313
- exports.StartStreamTranscriptionResponseFilterSensitiveLog = StartStreamTranscriptionResponseFilterSensitiveLog;
1
+ module.exports = require("../index.js");