@aws-sdk/client-transcribe-streaming 3.135.0 → 3.141.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,26 +1,10 @@
1
1
  import { __assign, __extends } from "tslib";
2
2
  import { TranscribeStreamingServiceException as __BaseException } from "./TranscribeStreamingServiceException";
3
- export var Entity;
4
- (function (Entity) {
5
- Entity.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
6
- })(Entity || (Entity = {}));
7
3
  export var ItemType;
8
4
  (function (ItemType) {
9
5
  ItemType["PRONUNCIATION"] = "pronunciation";
10
6
  ItemType["PUNCTUATION"] = "punctuation";
11
7
  })(ItemType || (ItemType = {}));
12
- export var Item;
13
- (function (Item) {
14
- Item.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
15
- })(Item || (Item = {}));
16
- export var Alternative;
17
- (function (Alternative) {
18
- Alternative.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
19
- })(Alternative || (Alternative = {}));
20
- export var AudioEvent;
21
- (function (AudioEvent) {
22
- AudioEvent.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
23
- })(AudioEvent || (AudioEvent = {}));
24
8
  export var AudioStream;
25
9
  (function (AudioStream) {
26
10
  AudioStream.visit = function (value, visitor) {
@@ -28,13 +12,6 @@ export var AudioStream;
28
12
  return visitor.AudioEvent(value.AudioEvent);
29
13
  return visitor._(value.$unknown[0], value.$unknown[1]);
30
14
  };
31
- AudioStream.filterSensitiveLog = function (obj) {
32
- var _a;
33
- if (obj.AudioEvent !== undefined)
34
- return { AudioEvent: AudioEvent.filterSensitiveLog(obj.AudioEvent) };
35
- if (obj.$unknown !== undefined)
36
- return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
37
- };
38
15
  })(AudioStream || (AudioStream = {}));
39
16
  var BadRequestException = (function (_super) {
40
17
  __extends(BadRequestException, _super);
@@ -98,10 +75,6 @@ export var LanguageCode;
98
75
  LanguageCode["PT_BR"] = "pt-BR";
99
76
  LanguageCode["ZH_CN"] = "zh-CN";
100
77
  })(LanguageCode || (LanguageCode = {}));
101
- export var LanguageWithScore;
102
- (function (LanguageWithScore) {
103
- LanguageWithScore.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
104
- })(LanguageWithScore || (LanguageWithScore = {}));
105
78
  var LimitExceededException = (function (_super) {
106
79
  __extends(LimitExceededException, _super);
107
80
  function LimitExceededException(opts) {
@@ -121,34 +94,10 @@ export var MediaEncoding;
121
94
  MediaEncoding["OGG_OPUS"] = "ogg-opus";
122
95
  MediaEncoding["PCM"] = "pcm";
123
96
  })(MediaEncoding || (MediaEncoding = {}));
124
- export var MedicalEntity;
125
- (function (MedicalEntity) {
126
- MedicalEntity.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
127
- })(MedicalEntity || (MedicalEntity = {}));
128
- export var MedicalItem;
129
- (function (MedicalItem) {
130
- MedicalItem.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
131
- })(MedicalItem || (MedicalItem = {}));
132
- export var MedicalAlternative;
133
- (function (MedicalAlternative) {
134
- MedicalAlternative.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
135
- })(MedicalAlternative || (MedicalAlternative = {}));
136
97
  export var MedicalContentIdentificationType;
137
98
  (function (MedicalContentIdentificationType) {
138
99
  MedicalContentIdentificationType["PHI"] = "PHI";
139
100
  })(MedicalContentIdentificationType || (MedicalContentIdentificationType = {}));
140
- export var MedicalResult;
141
- (function (MedicalResult) {
142
- MedicalResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
143
- })(MedicalResult || (MedicalResult = {}));
144
- export var MedicalTranscript;
145
- (function (MedicalTranscript) {
146
- MedicalTranscript.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
147
- })(MedicalTranscript || (MedicalTranscript = {}));
148
- export var MedicalTranscriptEvent;
149
- (function (MedicalTranscriptEvent) {
150
- MedicalTranscriptEvent.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
151
- })(MedicalTranscriptEvent || (MedicalTranscriptEvent = {}));
152
101
  var ServiceUnavailableException = (function (_super) {
153
102
  __extends(ServiceUnavailableException, _super);
154
103
  function ServiceUnavailableException(opts) {
@@ -179,23 +128,6 @@ export var MedicalTranscriptResultStream;
179
128
  return visitor.ServiceUnavailableException(value.ServiceUnavailableException);
180
129
  return visitor._(value.$unknown[0], value.$unknown[1]);
181
130
  };
182
- MedicalTranscriptResultStream.filterSensitiveLog = function (obj) {
183
- var _a;
184
- if (obj.TranscriptEvent !== undefined)
185
- return { TranscriptEvent: MedicalTranscriptEvent.filterSensitiveLog(obj.TranscriptEvent) };
186
- if (obj.BadRequestException !== undefined)
187
- return { BadRequestException: obj.BadRequestException };
188
- if (obj.LimitExceededException !== undefined)
189
- return { LimitExceededException: obj.LimitExceededException };
190
- if (obj.InternalFailureException !== undefined)
191
- return { InternalFailureException: obj.InternalFailureException };
192
- if (obj.ConflictException !== undefined)
193
- return { ConflictException: obj.ConflictException };
194
- if (obj.ServiceUnavailableException !== undefined)
195
- return { ServiceUnavailableException: obj.ServiceUnavailableException };
196
- if (obj.$unknown !== undefined)
197
- return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
198
- };
199
131
  })(MedicalTranscriptResultStream || (MedicalTranscriptResultStream = {}));
200
132
  export var PartialResultsStability;
201
133
  (function (PartialResultsStability) {
@@ -203,10 +135,6 @@ export var PartialResultsStability;
203
135
  PartialResultsStability["LOW"] = "low";
204
136
  PartialResultsStability["MEDIUM"] = "medium";
205
137
  })(PartialResultsStability || (PartialResultsStability = {}));
206
- export var Result;
207
- (function (Result) {
208
- Result.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
209
- })(Result || (Result = {}));
210
138
  export var Specialty;
211
139
  (function (Specialty) {
212
140
  Specialty["CARDIOLOGY"] = "CARDIOLOGY";
@@ -221,32 +149,12 @@ export var Type;
221
149
  Type["CONVERSATION"] = "CONVERSATION";
222
150
  Type["DICTATION"] = "DICTATION";
223
151
  })(Type || (Type = {}));
224
- export var StartMedicalStreamTranscriptionRequest;
225
- (function (StartMedicalStreamTranscriptionRequest) {
226
- StartMedicalStreamTranscriptionRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.AudioStream && { AudioStream: "STREAMING_CONTENT" }))); };
227
- })(StartMedicalStreamTranscriptionRequest || (StartMedicalStreamTranscriptionRequest = {}));
228
- export var StartMedicalStreamTranscriptionResponse;
229
- (function (StartMedicalStreamTranscriptionResponse) {
230
- StartMedicalStreamTranscriptionResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.TranscriptResultStream && { TranscriptResultStream: "STREAMING_CONTENT" }))); };
231
- })(StartMedicalStreamTranscriptionResponse || (StartMedicalStreamTranscriptionResponse = {}));
232
152
  export var VocabularyFilterMethod;
233
153
  (function (VocabularyFilterMethod) {
234
154
  VocabularyFilterMethod["MASK"] = "mask";
235
155
  VocabularyFilterMethod["REMOVE"] = "remove";
236
156
  VocabularyFilterMethod["TAG"] = "tag";
237
157
  })(VocabularyFilterMethod || (VocabularyFilterMethod = {}));
238
- export var StartStreamTranscriptionRequest;
239
- (function (StartStreamTranscriptionRequest) {
240
- StartStreamTranscriptionRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.AudioStream && { AudioStream: "STREAMING_CONTENT" }))); };
241
- })(StartStreamTranscriptionRequest || (StartStreamTranscriptionRequest = {}));
242
- export var Transcript;
243
- (function (Transcript) {
244
- Transcript.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
245
- })(Transcript || (Transcript = {}));
246
- export var TranscriptEvent;
247
- (function (TranscriptEvent) {
248
- TranscriptEvent.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
249
- })(TranscriptEvent || (TranscriptEvent = {}));
250
158
  export var TranscriptResultStream;
251
159
  (function (TranscriptResultStream) {
252
160
  TranscriptResultStream.visit = function (value, visitor) {
@@ -264,25 +172,63 @@ export var TranscriptResultStream;
264
172
  return visitor.ServiceUnavailableException(value.ServiceUnavailableException);
265
173
  return visitor._(value.$unknown[0], value.$unknown[1]);
266
174
  };
267
- TranscriptResultStream.filterSensitiveLog = function (obj) {
268
- var _a;
269
- if (obj.TranscriptEvent !== undefined)
270
- return { TranscriptEvent: TranscriptEvent.filterSensitiveLog(obj.TranscriptEvent) };
271
- if (obj.BadRequestException !== undefined)
272
- return { BadRequestException: obj.BadRequestException };
273
- if (obj.LimitExceededException !== undefined)
274
- return { LimitExceededException: obj.LimitExceededException };
275
- if (obj.InternalFailureException !== undefined)
276
- return { InternalFailureException: obj.InternalFailureException };
277
- if (obj.ConflictException !== undefined)
278
- return { ConflictException: obj.ConflictException };
279
- if (obj.ServiceUnavailableException !== undefined)
280
- return { ServiceUnavailableException: obj.ServiceUnavailableException };
281
- if (obj.$unknown !== undefined)
282
- return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
283
- };
284
175
  })(TranscriptResultStream || (TranscriptResultStream = {}));
285
- export var StartStreamTranscriptionResponse;
286
- (function (StartStreamTranscriptionResponse) {
287
- StartStreamTranscriptionResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.TranscriptResultStream && { TranscriptResultStream: "STREAMING_CONTENT" }))); };
288
- })(StartStreamTranscriptionResponse || (StartStreamTranscriptionResponse = {}));
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;
182
+ if (obj.AudioEvent !== undefined)
183
+ return { AudioEvent: AudioEventFilterSensitiveLog(obj.AudioEvent) };
184
+ if (obj.$unknown !== undefined)
185
+ return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
186
+ };
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;
196
+ if (obj.TranscriptEvent !== undefined)
197
+ return { TranscriptEvent: MedicalTranscriptEventFilterSensitiveLog(obj.TranscriptEvent) };
198
+ if (obj.BadRequestException !== undefined)
199
+ return { BadRequestException: obj.BadRequestException };
200
+ if (obj.LimitExceededException !== undefined)
201
+ return { LimitExceededException: obj.LimitExceededException };
202
+ if (obj.InternalFailureException !== undefined)
203
+ return { InternalFailureException: obj.InternalFailureException };
204
+ if (obj.ConflictException !== undefined)
205
+ return { ConflictException: obj.ConflictException };
206
+ if (obj.ServiceUnavailableException !== undefined)
207
+ return { ServiceUnavailableException: obj.ServiceUnavailableException };
208
+ if (obj.$unknown !== undefined)
209
+ return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
210
+ };
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;
219
+ if (obj.TranscriptEvent !== undefined)
220
+ return { TranscriptEvent: TranscriptEventFilterSensitiveLog(obj.TranscriptEvent) };
221
+ if (obj.BadRequestException !== undefined)
222
+ return { BadRequestException: obj.BadRequestException };
223
+ if (obj.LimitExceededException !== undefined)
224
+ return { LimitExceededException: obj.LimitExceededException };
225
+ if (obj.InternalFailureException !== undefined)
226
+ return { InternalFailureException: obj.InternalFailureException };
227
+ if (obj.ConflictException !== undefined)
228
+ return { ConflictException: obj.ConflictException };
229
+ if (obj.ServiceUnavailableException !== undefined)
230
+ return { ServiceUnavailableException: obj.ServiceUnavailableException };
231
+ if (obj.$unknown !== undefined)
232
+ return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
233
+ };
234
+ export var StartStreamTranscriptionResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.TranscriptResultStream && { TranscriptResultStream: "STREAMING_CONTENT" }))); };
@@ -8,7 +8,7 @@ import { eventStreamSerdeProvider } from "@aws-sdk/eventstream-serde-node";
8
8
  import { Hash } from "@aws-sdk/hash-node";
9
9
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
10
10
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
11
- import { NodeHttp2Handler, streamCollector } from "@aws-sdk/node-http-handler";
11
+ import { NodeHttp2Handler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
12
12
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
13
13
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
14
14
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
@@ -23,7 +23,14 @@ export var getRuntimeConfig = function (config) {
23
23
  var defaultsMode = resolveDefaultsModeConfig(config);
24
24
  var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
25
25
  var clientSharedValues = getSharedRuntimeConfig(config);
26
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), eventStreamPayloadHandlerProvider: (_f = config === null || config === void 0 ? void 0 : config.eventStreamPayloadHandlerProvider) !== null && _f !== void 0 ? _f : eventStreamPayloadHandlerProvider, eventStreamSerdeProvider: (_g = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _g !== void 0 ? _g : eventStreamSerdeProvider, maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new NodeHttp2Handler({ disableConcurrentStreams: true }), retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
26
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), eventStreamPayloadHandlerProvider: (_f = config === null || config === void 0 ? void 0 : config.eventStreamPayloadHandlerProvider) !== null && _f !== void 0 ? _f : eventStreamPayloadHandlerProvider, eventStreamSerdeProvider: (_g = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _g !== void 0 ? _g : eventStreamSerdeProvider, maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new RequestHandler(function () { return __awaiter(void 0, void 0, void 0, function () { var _a; return __generator(this, function (_b) {
27
+ switch (_b.label) {
28
+ case 0:
29
+ _a = [{}];
30
+ return [4, defaultConfigProvider()];
31
+ case 1: return [2, (__assign.apply(void 0, [__assign.apply(void 0, _a.concat([(_b.sent())])), { disableConcurrentStreams: true }]))];
32
+ }
33
+ }); }); }), retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
27
34
  switch (_a.label) {
28
35
  case 0: return [4, defaultConfigProvider()];
29
36
  case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
@@ -29,12 +29,6 @@ export interface Entity {
29
29
  */
30
30
  Confidence?: number;
31
31
  }
32
- export declare namespace Entity {
33
- /**
34
- * @internal
35
- */
36
- const filterSensitiveLog: (obj: Entity) => any;
37
- }
38
32
  export declare enum ItemType {
39
33
  PRONUNCIATION = "pronunciation",
40
34
  PUNCTUATION = "punctuation"
@@ -85,12 +79,6 @@ export interface Item {
85
79
  */
86
80
  Stable?: boolean;
87
81
  }
88
- export declare namespace Item {
89
- /**
90
- * @internal
91
- */
92
- const filterSensitiveLog: (obj: Item) => any;
93
- }
94
82
  /**
95
83
  * <p>A list of possible transcriptions for the audio.</p>
96
84
  */
@@ -108,12 +96,6 @@ export interface Alternative {
108
96
  */
109
97
  Entities?: Entity[];
110
98
  }
111
- export declare namespace Alternative {
112
- /**
113
- * @internal
114
- */
115
- const filterSensitiveLog: (obj: Alternative) => any;
116
- }
117
99
  /**
118
100
  * <p>Provides a wrapper for the audio chunks that you are sending.</p>
119
101
  * <p>For information on audio encoding in Amazon Transcribe, see
@@ -128,12 +110,6 @@ export interface AudioEvent {
128
110
  */
129
111
  AudioChunk?: Uint8Array;
130
112
  }
131
- export declare namespace AudioEvent {
132
- /**
133
- * @internal
134
- */
135
- const filterSensitiveLog: (obj: AudioEvent) => any;
136
- }
137
113
  /**
138
114
  * <p>Represents the audio stream from your application to Amazon Transcribe.</p>
139
115
  */
@@ -160,10 +136,6 @@ export declare namespace AudioStream {
160
136
  _: (name: string, value: any) => T;
161
137
  }
162
138
  const visit: <T>(value: AudioStream, visitor: Visitor<T>) => T;
163
- /**
164
- * @internal
165
- */
166
- const filterSensitiveLog: (obj: AudioStream) => any;
167
139
  }
168
140
  /**
169
141
  * <p>One or more arguments to the <code>StartStreamTranscription</code> or
@@ -243,12 +215,6 @@ export interface LanguageWithScore {
243
215
  */
244
216
  Score?: number;
245
217
  }
246
- export declare namespace LanguageWithScore {
247
- /**
248
- * @internal
249
- */
250
- const filterSensitiveLog: (obj: LanguageWithScore) => any;
251
- }
252
218
  /**
253
219
  * <p>You have exceeded the maximum number of concurrent transcription streams, are starting
254
220
  * transcription streams too quickly, or the maximum audio length of 4 hours. Wait until a stream
@@ -297,12 +263,6 @@ export interface MedicalEntity {
297
263
  */
298
264
  Confidence?: number;
299
265
  }
300
- export declare namespace MedicalEntity {
301
- /**
302
- * @internal
303
- */
304
- const filterSensitiveLog: (obj: MedicalEntity) => any;
305
- }
306
266
  /**
307
267
  * <p>A word, phrase, or punctuation mark that is transcribed from the input audio.</p>
308
268
  */
@@ -343,12 +303,6 @@ export interface MedicalItem {
343
303
  */
344
304
  Speaker?: string;
345
305
  }
346
- export declare namespace MedicalItem {
347
- /**
348
- * @internal
349
- */
350
- const filterSensitiveLog: (obj: MedicalItem) => any;
351
- }
352
306
  /**
353
307
  * <p>A list of possible transcriptions for the audio.</p>
354
308
  */
@@ -367,12 +321,6 @@ export interface MedicalAlternative {
367
321
  */
368
322
  Entities?: MedicalEntity[];
369
323
  }
370
- export declare namespace MedicalAlternative {
371
- /**
372
- * @internal
373
- */
374
- const filterSensitiveLog: (obj: MedicalAlternative) => any;
375
- }
376
324
  export declare enum MedicalContentIdentificationType {
377
325
  PHI = "PHI"
378
326
  }
@@ -416,12 +364,6 @@ export interface MedicalResult {
416
364
  */
417
365
  ChannelId?: string;
418
366
  }
419
- export declare namespace MedicalResult {
420
- /**
421
- * @internal
422
- */
423
- const filterSensitiveLog: (obj: MedicalResult) => any;
424
- }
425
367
  /**
426
368
  * <p>The medical transcript in a <a>MedicalTranscriptEvent</a>.</p>
427
369
  */
@@ -433,12 +375,6 @@ export interface MedicalTranscript {
433
375
  */
434
376
  Results?: MedicalResult[];
435
377
  }
436
- export declare namespace MedicalTranscript {
437
- /**
438
- * @internal
439
- */
440
- const filterSensitiveLog: (obj: MedicalTranscript) => any;
441
- }
442
378
  /**
443
379
  * <p>Represents a set of transcription results from the server to the client. It contains
444
380
  * one or more segments of the transcription.</p>
@@ -450,12 +386,6 @@ export interface MedicalTranscriptEvent {
450
386
  */
451
387
  Transcript?: MedicalTranscript;
452
388
  }
453
- export declare namespace MedicalTranscriptEvent {
454
- /**
455
- * @internal
456
- */
457
- const filterSensitiveLog: (obj: MedicalTranscriptEvent) => any;
458
- }
459
389
  /**
460
390
  * <p>Service is currently unavailable. Try your request later.</p>
461
391
  */
@@ -575,10 +505,6 @@ export declare namespace MedicalTranscriptResultStream {
575
505
  _: (name: string, value: any) => T;
576
506
  }
577
507
  const visit: <T>(value: MedicalTranscriptResultStream, visitor: Visitor<T>) => T;
578
- /**
579
- * @internal
580
- */
581
- const filterSensitiveLog: (obj: MedicalTranscriptResultStream) => any;
582
508
  }
583
509
  export declare enum PartialResultsStability {
584
510
  HIGH = "high",
@@ -632,12 +558,6 @@ export interface Result {
632
558
  */
633
559
  LanguageIdentification?: LanguageWithScore[];
634
560
  }
635
- export declare namespace Result {
636
- /**
637
- * @internal
638
- */
639
- const filterSensitiveLog: (obj: Result) => any;
640
- }
641
561
  export declare enum Specialty {
642
562
  CARDIOLOGY = "CARDIOLOGY",
643
563
  NEUROLOGY = "NEUROLOGY",
@@ -715,12 +635,6 @@ export interface StartMedicalStreamTranscriptionRequest {
715
635
  */
716
636
  ContentIdentificationType?: MedicalContentIdentificationType | string;
717
637
  }
718
- export declare namespace StartMedicalStreamTranscriptionRequest {
719
- /**
720
- * @internal
721
- */
722
- const filterSensitiveLog: (obj: StartMedicalStreamTranscriptionRequest) => any;
723
- }
724
638
  export interface StartMedicalStreamTranscriptionResponse {
725
639
  /**
726
640
  * <p>An identifier for the streaming transcription.</p>
@@ -778,12 +692,6 @@ export interface StartMedicalStreamTranscriptionResponse {
778
692
  */
779
693
  ContentIdentificationType?: MedicalContentIdentificationType | string;
780
694
  }
781
- export declare namespace StartMedicalStreamTranscriptionResponse {
782
- /**
783
- * @internal
784
- */
785
- const filterSensitiveLog: (obj: StartMedicalStreamTranscriptionResponse) => any;
786
- }
787
695
  export declare enum VocabularyFilterMethod {
788
696
  MASK = "mask",
789
697
  REMOVE = "remove",
@@ -950,12 +858,6 @@ export interface StartStreamTranscriptionRequest {
950
858
  */
951
859
  VocabularyFilterNames?: string;
952
860
  }
953
- export declare namespace StartStreamTranscriptionRequest {
954
- /**
955
- * @internal
956
- */
957
- const filterSensitiveLog: (obj: StartStreamTranscriptionRequest) => any;
958
- }
959
861
  /**
960
862
  * <p>The transcription in a <a>TranscriptEvent</a>.</p>
961
863
  */
@@ -967,12 +869,6 @@ export interface Transcript {
967
869
  */
968
870
  Results?: Result[];
969
871
  }
970
- export declare namespace Transcript {
971
- /**
972
- * @internal
973
- */
974
- const filterSensitiveLog: (obj: Transcript) => any;
975
- }
976
872
  /**
977
873
  * <p>Represents a set of transcription results from the server to the client. It contains one
978
874
  * or more segments of the transcription.</p>
@@ -984,12 +880,6 @@ export interface TranscriptEvent {
984
880
  */
985
881
  Transcript?: Transcript;
986
882
  }
987
- export declare namespace TranscriptEvent {
988
- /**
989
- * @internal
990
- */
991
- const filterSensitiveLog: (obj: TranscriptEvent) => any;
992
- }
993
883
  /**
994
884
  * <p>Represents the transcription result stream from Amazon Transcribe to your application.</p>
995
885
  */
@@ -1091,10 +981,6 @@ export declare namespace TranscriptResultStream {
1091
981
  _: (name: string, value: any) => T;
1092
982
  }
1093
983
  const visit: <T>(value: TranscriptResultStream, visitor: Visitor<T>) => T;
1094
- /**
1095
- * @internal
1096
- */
1097
- const filterSensitiveLog: (obj: TranscriptResultStream) => any;
1098
984
  }
1099
985
  export interface StartStreamTranscriptionResponse {
1100
986
  /**
@@ -1192,9 +1078,87 @@ export interface StartStreamTranscriptionResponse {
1192
1078
  */
1193
1079
  VocabularyFilterNames?: string;
1194
1080
  }
1195
- export declare namespace StartStreamTranscriptionResponse {
1196
- /**
1197
- * @internal
1198
- */
1199
- const filterSensitiveLog: (obj: StartStreamTranscriptionResponse) => any;
1200
- }
1081
+ /**
1082
+ * @internal
1083
+ */
1084
+ export declare const EntityFilterSensitiveLog: (obj: Entity) => any;
1085
+ /**
1086
+ * @internal
1087
+ */
1088
+ export declare const ItemFilterSensitiveLog: (obj: Item) => any;
1089
+ /**
1090
+ * @internal
1091
+ */
1092
+ export declare const AlternativeFilterSensitiveLog: (obj: Alternative) => any;
1093
+ /**
1094
+ * @internal
1095
+ */
1096
+ export declare const AudioEventFilterSensitiveLog: (obj: AudioEvent) => any;
1097
+ /**
1098
+ * @internal
1099
+ */
1100
+ export declare const AudioStreamFilterSensitiveLog: (obj: AudioStream) => any;
1101
+ /**
1102
+ * @internal
1103
+ */
1104
+ export declare const LanguageWithScoreFilterSensitiveLog: (obj: LanguageWithScore) => any;
1105
+ /**
1106
+ * @internal
1107
+ */
1108
+ export declare const MedicalEntityFilterSensitiveLog: (obj: MedicalEntity) => any;
1109
+ /**
1110
+ * @internal
1111
+ */
1112
+ export declare const MedicalItemFilterSensitiveLog: (obj: MedicalItem) => any;
1113
+ /**
1114
+ * @internal
1115
+ */
1116
+ export declare const MedicalAlternativeFilterSensitiveLog: (obj: MedicalAlternative) => any;
1117
+ /**
1118
+ * @internal
1119
+ */
1120
+ export declare const MedicalResultFilterSensitiveLog: (obj: MedicalResult) => any;
1121
+ /**
1122
+ * @internal
1123
+ */
1124
+ export declare const MedicalTranscriptFilterSensitiveLog: (obj: MedicalTranscript) => any;
1125
+ /**
1126
+ * @internal
1127
+ */
1128
+ export declare const MedicalTranscriptEventFilterSensitiveLog: (obj: MedicalTranscriptEvent) => any;
1129
+ /**
1130
+ * @internal
1131
+ */
1132
+ export declare const MedicalTranscriptResultStreamFilterSensitiveLog: (obj: MedicalTranscriptResultStream) => any;
1133
+ /**
1134
+ * @internal
1135
+ */
1136
+ export declare const ResultFilterSensitiveLog: (obj: Result) => any;
1137
+ /**
1138
+ * @internal
1139
+ */
1140
+ export declare const StartMedicalStreamTranscriptionRequestFilterSensitiveLog: (obj: StartMedicalStreamTranscriptionRequest) => any;
1141
+ /**
1142
+ * @internal
1143
+ */
1144
+ export declare const StartMedicalStreamTranscriptionResponseFilterSensitiveLog: (obj: StartMedicalStreamTranscriptionResponse) => any;
1145
+ /**
1146
+ * @internal
1147
+ */
1148
+ export declare const StartStreamTranscriptionRequestFilterSensitiveLog: (obj: StartStreamTranscriptionRequest) => any;
1149
+ /**
1150
+ * @internal
1151
+ */
1152
+ export declare const TranscriptFilterSensitiveLog: (obj: Transcript) => any;
1153
+ /**
1154
+ * @internal
1155
+ */
1156
+ export declare const TranscriptEventFilterSensitiveLog: (obj: TranscriptEvent) => any;
1157
+ /**
1158
+ * @internal
1159
+ */
1160
+ export declare const TranscriptResultStreamFilterSensitiveLog: (obj: TranscriptResultStream) => any;
1161
+ /**
1162
+ * @internal
1163
+ */
1164
+ export declare const StartStreamTranscriptionResponseFilterSensitiveLog: (obj: StartStreamTranscriptionResponse) => any;
@@ -1,4 +1,4 @@
1
- import { NodeHttp2Handler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttp2Handler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { TranscribeStreamingClientConfig } from "./TranscribeStreamingClient";
3
3
  /**
4
4
  * @internal
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig)
15
15
  eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
16
16
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
17
17
  region: string | import("@aws-sdk/types").Provider<string>;
18
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttp2Handler;
18
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
19
19
  retryMode: string | import("@aws-sdk/types").Provider<string>;
20
20
  sha256: import("@aws-sdk/types").HashConstructor;
21
21
  streamCollector: import("@aws-sdk/types").StreamCollector;