@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.
- package/dist-cjs/TranscribeStreaming.js +1 -17
- package/dist-cjs/TranscribeStreamingClient.js +1 -51
- package/dist-cjs/commands/StartCallAnalyticsStreamTranscriptionCommand.js +1 -38
- package/dist-cjs/commands/StartMedicalStreamTranscriptionCommand.js +1 -38
- package/dist-cjs/commands/StartStreamTranscriptionCommand.js +1 -38
- package/dist-cjs/commands/index.js +1 -6
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +1488 -10
- package/dist-cjs/models/TranscribeStreamingServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -313
- package/dist-cjs/protocols/Aws_restJson1.js +1 -864
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +47 -47
package/dist-cjs/index.js
CHANGED
|
@@ -1,11 +1,1489 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
AudioStream: () => AudioStream,
|
|
25
|
+
AudioStreamFilterSensitiveLog: () => AudioStreamFilterSensitiveLog,
|
|
26
|
+
BadRequestException: () => BadRequestException,
|
|
27
|
+
CallAnalyticsLanguageCode: () => CallAnalyticsLanguageCode,
|
|
28
|
+
CallAnalyticsTranscriptResultStream: () => CallAnalyticsTranscriptResultStream,
|
|
29
|
+
CallAnalyticsTranscriptResultStreamFilterSensitiveLog: () => CallAnalyticsTranscriptResultStreamFilterSensitiveLog,
|
|
30
|
+
ConflictException: () => ConflictException,
|
|
31
|
+
ContentIdentificationType: () => ContentIdentificationType,
|
|
32
|
+
ContentRedactionOutput: () => ContentRedactionOutput,
|
|
33
|
+
ContentRedactionType: () => ContentRedactionType,
|
|
34
|
+
InternalFailureException: () => InternalFailureException,
|
|
35
|
+
ItemType: () => ItemType,
|
|
36
|
+
LanguageCode: () => LanguageCode,
|
|
37
|
+
LimitExceededException: () => LimitExceededException,
|
|
38
|
+
MediaEncoding: () => MediaEncoding,
|
|
39
|
+
MedicalContentIdentificationType: () => MedicalContentIdentificationType,
|
|
40
|
+
MedicalTranscriptResultStream: () => MedicalTranscriptResultStream,
|
|
41
|
+
MedicalTranscriptResultStreamFilterSensitiveLog: () => MedicalTranscriptResultStreamFilterSensitiveLog,
|
|
42
|
+
PartialResultsStability: () => PartialResultsStability,
|
|
43
|
+
ParticipantRole: () => ParticipantRole,
|
|
44
|
+
Sentiment: () => Sentiment,
|
|
45
|
+
ServiceUnavailableException: () => ServiceUnavailableException,
|
|
46
|
+
Specialty: () => Specialty,
|
|
47
|
+
StartCallAnalyticsStreamTranscriptionCommand: () => StartCallAnalyticsStreamTranscriptionCommand,
|
|
48
|
+
StartCallAnalyticsStreamTranscriptionRequestFilterSensitiveLog: () => StartCallAnalyticsStreamTranscriptionRequestFilterSensitiveLog,
|
|
49
|
+
StartCallAnalyticsStreamTranscriptionResponseFilterSensitiveLog: () => StartCallAnalyticsStreamTranscriptionResponseFilterSensitiveLog,
|
|
50
|
+
StartMedicalStreamTranscriptionCommand: () => StartMedicalStreamTranscriptionCommand,
|
|
51
|
+
StartMedicalStreamTranscriptionRequestFilterSensitiveLog: () => StartMedicalStreamTranscriptionRequestFilterSensitiveLog,
|
|
52
|
+
StartMedicalStreamTranscriptionResponseFilterSensitiveLog: () => StartMedicalStreamTranscriptionResponseFilterSensitiveLog,
|
|
53
|
+
StartStreamTranscriptionCommand: () => StartStreamTranscriptionCommand,
|
|
54
|
+
StartStreamTranscriptionRequestFilterSensitiveLog: () => StartStreamTranscriptionRequestFilterSensitiveLog,
|
|
55
|
+
StartStreamTranscriptionResponseFilterSensitiveLog: () => StartStreamTranscriptionResponseFilterSensitiveLog,
|
|
56
|
+
TranscribeStreaming: () => TranscribeStreaming,
|
|
57
|
+
TranscribeStreamingClient: () => TranscribeStreamingClient,
|
|
58
|
+
TranscribeStreamingServiceException: () => TranscribeStreamingServiceException,
|
|
59
|
+
TranscriptResultStream: () => TranscriptResultStream,
|
|
60
|
+
TranscriptResultStreamFilterSensitiveLog: () => TranscriptResultStreamFilterSensitiveLog,
|
|
61
|
+
Type: () => Type,
|
|
62
|
+
VocabularyFilterMethod: () => VocabularyFilterMethod,
|
|
63
|
+
__Client: () => import_smithy_client.Client
|
|
64
|
+
});
|
|
65
|
+
module.exports = __toCommonJS(src_exports);
|
|
66
|
+
|
|
67
|
+
// src/TranscribeStreamingClient.ts
|
|
68
|
+
var import_middleware_eventstream = require("@aws-sdk/middleware-eventstream");
|
|
69
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
70
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
71
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
72
|
+
var import_middleware_sdk_transcribe_streaming = require("@aws-sdk/middleware-sdk-transcribe-streaming");
|
|
73
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
74
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
75
|
+
var import_middleware_websocket = require("@aws-sdk/middleware-websocket");
|
|
76
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
77
|
+
var import_eventstream_serde_config_resolver = require("@smithy/eventstream-serde-config-resolver");
|
|
78
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
79
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
80
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
// src/endpoint/EndpointParameters.ts
|
|
84
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
85
|
+
return {
|
|
86
|
+
...options,
|
|
87
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
88
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
89
|
+
defaultSigningName: "transcribe"
|
|
90
|
+
};
|
|
91
|
+
}, "resolveClientEndpointParameters");
|
|
92
|
+
var commonParams = {
|
|
93
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
94
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
95
|
+
Region: { type: "builtInParams", name: "region" },
|
|
96
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
// src/TranscribeStreamingClient.ts
|
|
100
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
101
|
+
|
|
102
|
+
// src/runtimeExtensions.ts
|
|
103
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
104
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
105
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
106
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
107
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
108
|
+
const extensionConfiguration = {
|
|
109
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
110
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
111
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
112
|
+
};
|
|
113
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
114
|
+
return {
|
|
115
|
+
...runtimeConfig,
|
|
116
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
117
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
118
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
119
|
+
};
|
|
120
|
+
}, "resolveRuntimeExtensions");
|
|
121
|
+
|
|
122
|
+
// src/TranscribeStreamingClient.ts
|
|
123
|
+
var _TranscribeStreamingClient = class _TranscribeStreamingClient extends import_smithy_client.Client {
|
|
124
|
+
constructor(...[configuration]) {
|
|
125
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
126
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
127
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
128
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
129
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
130
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
131
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
132
|
+
const _config_7 = (0, import_middleware_eventstream.resolveEventStreamConfig)(_config_6);
|
|
133
|
+
const _config_8 = (0, import_middleware_websocket.resolveWebSocketConfig)(_config_7);
|
|
134
|
+
const _config_9 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_8);
|
|
135
|
+
const _config_10 = (0, import_eventstream_serde_config_resolver.resolveEventStreamSerdeConfig)(_config_9);
|
|
136
|
+
const _config_11 = resolveRuntimeExtensions(_config_10, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
137
|
+
super(_config_11);
|
|
138
|
+
this.config = _config_11;
|
|
139
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
140
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
141
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
142
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
143
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
144
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
145
|
+
this.middlewareStack.use((0, import_middleware_sdk_transcribe_streaming.getTranscribeStreamingPlugin)(this.config));
|
|
146
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
150
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
151
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
152
|
+
*/
|
|
153
|
+
destroy() {
|
|
154
|
+
super.destroy();
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
__name(_TranscribeStreamingClient, "TranscribeStreamingClient");
|
|
158
|
+
var TranscribeStreamingClient = _TranscribeStreamingClient;
|
|
159
|
+
|
|
160
|
+
// src/TranscribeStreaming.ts
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
// src/commands/StartCallAnalyticsStreamTranscriptionCommand.ts
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
168
|
+
|
|
169
|
+
var import_types = require("@smithy/types");
|
|
170
|
+
|
|
171
|
+
// src/models/TranscribeStreamingServiceException.ts
|
|
172
|
+
|
|
173
|
+
var _TranscribeStreamingServiceException = class _TranscribeStreamingServiceException extends import_smithy_client.ServiceException {
|
|
174
|
+
/**
|
|
175
|
+
* @internal
|
|
176
|
+
*/
|
|
177
|
+
constructor(options) {
|
|
178
|
+
super(options);
|
|
179
|
+
Object.setPrototypeOf(this, _TranscribeStreamingServiceException.prototype);
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
__name(_TranscribeStreamingServiceException, "TranscribeStreamingServiceException");
|
|
183
|
+
var TranscribeStreamingServiceException = _TranscribeStreamingServiceException;
|
|
184
|
+
|
|
185
|
+
// src/models/models_0.ts
|
|
186
|
+
var ItemType = {
|
|
187
|
+
PRONUNCIATION: "pronunciation",
|
|
188
|
+
PUNCTUATION: "punctuation"
|
|
189
|
+
};
|
|
190
|
+
var ParticipantRole = {
|
|
191
|
+
AGENT: "AGENT",
|
|
192
|
+
CUSTOMER: "CUSTOMER"
|
|
193
|
+
};
|
|
194
|
+
var ContentRedactionOutput = {
|
|
195
|
+
REDACTED: "redacted",
|
|
196
|
+
REDACTED_AND_UNREDACTED: "redacted_and_unredacted"
|
|
197
|
+
};
|
|
198
|
+
var AudioStream;
|
|
199
|
+
((AudioStream2) => {
|
|
200
|
+
AudioStream2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
201
|
+
if (value.AudioEvent !== void 0)
|
|
202
|
+
return visitor.AudioEvent(value.AudioEvent);
|
|
203
|
+
if (value.ConfigurationEvent !== void 0)
|
|
204
|
+
return visitor.ConfigurationEvent(value.ConfigurationEvent);
|
|
205
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
206
|
+
}, "visit");
|
|
207
|
+
})(AudioStream || (AudioStream = {}));
|
|
208
|
+
var _BadRequestException = class _BadRequestException extends TranscribeStreamingServiceException {
|
|
209
|
+
/**
|
|
210
|
+
* @internal
|
|
211
|
+
*/
|
|
212
|
+
constructor(opts) {
|
|
213
|
+
super({
|
|
214
|
+
name: "BadRequestException",
|
|
215
|
+
$fault: "client",
|
|
216
|
+
...opts
|
|
217
|
+
});
|
|
218
|
+
this.name = "BadRequestException";
|
|
219
|
+
this.$fault = "client";
|
|
220
|
+
Object.setPrototypeOf(this, _BadRequestException.prototype);
|
|
221
|
+
this.Message = opts.Message;
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
__name(_BadRequestException, "BadRequestException");
|
|
225
|
+
var BadRequestException = _BadRequestException;
|
|
226
|
+
var CallAnalyticsLanguageCode = {
|
|
227
|
+
DE_DE: "de-DE",
|
|
228
|
+
EN_AU: "en-AU",
|
|
229
|
+
EN_GB: "en-GB",
|
|
230
|
+
EN_US: "en-US",
|
|
231
|
+
ES_US: "es-US",
|
|
232
|
+
FR_CA: "fr-CA",
|
|
233
|
+
FR_FR: "fr-FR",
|
|
234
|
+
IT_IT: "it-IT",
|
|
235
|
+
PT_BR: "pt-BR"
|
|
236
|
+
};
|
|
237
|
+
var _ConflictException = class _ConflictException extends TranscribeStreamingServiceException {
|
|
238
|
+
/**
|
|
239
|
+
* @internal
|
|
240
|
+
*/
|
|
241
|
+
constructor(opts) {
|
|
242
|
+
super({
|
|
243
|
+
name: "ConflictException",
|
|
244
|
+
$fault: "client",
|
|
245
|
+
...opts
|
|
246
|
+
});
|
|
247
|
+
this.name = "ConflictException";
|
|
248
|
+
this.$fault = "client";
|
|
249
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
250
|
+
this.Message = opts.Message;
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
__name(_ConflictException, "ConflictException");
|
|
254
|
+
var ConflictException = _ConflictException;
|
|
255
|
+
var _InternalFailureException = class _InternalFailureException extends TranscribeStreamingServiceException {
|
|
256
|
+
/**
|
|
257
|
+
* @internal
|
|
258
|
+
*/
|
|
259
|
+
constructor(opts) {
|
|
260
|
+
super({
|
|
261
|
+
name: "InternalFailureException",
|
|
262
|
+
$fault: "server",
|
|
263
|
+
...opts
|
|
264
|
+
});
|
|
265
|
+
this.name = "InternalFailureException";
|
|
266
|
+
this.$fault = "server";
|
|
267
|
+
Object.setPrototypeOf(this, _InternalFailureException.prototype);
|
|
268
|
+
this.Message = opts.Message;
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
__name(_InternalFailureException, "InternalFailureException");
|
|
272
|
+
var InternalFailureException = _InternalFailureException;
|
|
273
|
+
var _LimitExceededException = class _LimitExceededException extends TranscribeStreamingServiceException {
|
|
274
|
+
/**
|
|
275
|
+
* @internal
|
|
276
|
+
*/
|
|
277
|
+
constructor(opts) {
|
|
278
|
+
super({
|
|
279
|
+
name: "LimitExceededException",
|
|
280
|
+
$fault: "client",
|
|
281
|
+
...opts
|
|
282
|
+
});
|
|
283
|
+
this.name = "LimitExceededException";
|
|
284
|
+
this.$fault = "client";
|
|
285
|
+
Object.setPrototypeOf(this, _LimitExceededException.prototype);
|
|
286
|
+
this.Message = opts.Message;
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
__name(_LimitExceededException, "LimitExceededException");
|
|
290
|
+
var LimitExceededException = _LimitExceededException;
|
|
291
|
+
var _ServiceUnavailableException = class _ServiceUnavailableException extends TranscribeStreamingServiceException {
|
|
292
|
+
/**
|
|
293
|
+
* @internal
|
|
294
|
+
*/
|
|
295
|
+
constructor(opts) {
|
|
296
|
+
super({
|
|
297
|
+
name: "ServiceUnavailableException",
|
|
298
|
+
$fault: "server",
|
|
299
|
+
...opts
|
|
300
|
+
});
|
|
301
|
+
this.name = "ServiceUnavailableException";
|
|
302
|
+
this.$fault = "server";
|
|
303
|
+
Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
|
|
304
|
+
this.Message = opts.Message;
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
__name(_ServiceUnavailableException, "ServiceUnavailableException");
|
|
308
|
+
var ServiceUnavailableException = _ServiceUnavailableException;
|
|
309
|
+
var Sentiment = {
|
|
310
|
+
MIXED: "MIXED",
|
|
311
|
+
NEGATIVE: "NEGATIVE",
|
|
312
|
+
NEUTRAL: "NEUTRAL",
|
|
313
|
+
POSITIVE: "POSITIVE"
|
|
314
|
+
};
|
|
315
|
+
var CallAnalyticsTranscriptResultStream;
|
|
316
|
+
((CallAnalyticsTranscriptResultStream3) => {
|
|
317
|
+
CallAnalyticsTranscriptResultStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
318
|
+
if (value.UtteranceEvent !== void 0)
|
|
319
|
+
return visitor.UtteranceEvent(value.UtteranceEvent);
|
|
320
|
+
if (value.CategoryEvent !== void 0)
|
|
321
|
+
return visitor.CategoryEvent(value.CategoryEvent);
|
|
322
|
+
if (value.BadRequestException !== void 0)
|
|
323
|
+
return visitor.BadRequestException(value.BadRequestException);
|
|
324
|
+
if (value.LimitExceededException !== void 0)
|
|
325
|
+
return visitor.LimitExceededException(value.LimitExceededException);
|
|
326
|
+
if (value.InternalFailureException !== void 0)
|
|
327
|
+
return visitor.InternalFailureException(value.InternalFailureException);
|
|
328
|
+
if (value.ConflictException !== void 0)
|
|
329
|
+
return visitor.ConflictException(value.ConflictException);
|
|
330
|
+
if (value.ServiceUnavailableException !== void 0)
|
|
331
|
+
return visitor.ServiceUnavailableException(value.ServiceUnavailableException);
|
|
332
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
333
|
+
}, "visit");
|
|
334
|
+
})(CallAnalyticsTranscriptResultStream || (CallAnalyticsTranscriptResultStream = {}));
|
|
335
|
+
var ContentIdentificationType = {
|
|
336
|
+
PII: "PII"
|
|
337
|
+
};
|
|
338
|
+
var ContentRedactionType = {
|
|
339
|
+
PII: "PII"
|
|
340
|
+
};
|
|
341
|
+
var LanguageCode = {
|
|
342
|
+
DE_DE: "de-DE",
|
|
343
|
+
EN_AU: "en-AU",
|
|
344
|
+
EN_GB: "en-GB",
|
|
345
|
+
EN_US: "en-US",
|
|
346
|
+
ES_US: "es-US",
|
|
347
|
+
FR_CA: "fr-CA",
|
|
348
|
+
FR_FR: "fr-FR",
|
|
349
|
+
HI_IN: "hi-IN",
|
|
350
|
+
IT_IT: "it-IT",
|
|
351
|
+
JA_JP: "ja-JP",
|
|
352
|
+
KO_KR: "ko-KR",
|
|
353
|
+
PT_BR: "pt-BR",
|
|
354
|
+
TH_TH: "th-TH",
|
|
355
|
+
ZH_CN: "zh-CN"
|
|
356
|
+
};
|
|
357
|
+
var MediaEncoding = {
|
|
358
|
+
FLAC: "flac",
|
|
359
|
+
OGG_OPUS: "ogg-opus",
|
|
360
|
+
PCM: "pcm"
|
|
361
|
+
};
|
|
362
|
+
var MedicalContentIdentificationType = {
|
|
363
|
+
PHI: "PHI"
|
|
364
|
+
};
|
|
365
|
+
var MedicalTranscriptResultStream;
|
|
366
|
+
((MedicalTranscriptResultStream3) => {
|
|
367
|
+
MedicalTranscriptResultStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
368
|
+
if (value.TranscriptEvent !== void 0)
|
|
369
|
+
return visitor.TranscriptEvent(value.TranscriptEvent);
|
|
370
|
+
if (value.BadRequestException !== void 0)
|
|
371
|
+
return visitor.BadRequestException(value.BadRequestException);
|
|
372
|
+
if (value.LimitExceededException !== void 0)
|
|
373
|
+
return visitor.LimitExceededException(value.LimitExceededException);
|
|
374
|
+
if (value.InternalFailureException !== void 0)
|
|
375
|
+
return visitor.InternalFailureException(value.InternalFailureException);
|
|
376
|
+
if (value.ConflictException !== void 0)
|
|
377
|
+
return visitor.ConflictException(value.ConflictException);
|
|
378
|
+
if (value.ServiceUnavailableException !== void 0)
|
|
379
|
+
return visitor.ServiceUnavailableException(value.ServiceUnavailableException);
|
|
380
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
381
|
+
}, "visit");
|
|
382
|
+
})(MedicalTranscriptResultStream || (MedicalTranscriptResultStream = {}));
|
|
383
|
+
var PartialResultsStability = {
|
|
384
|
+
HIGH: "high",
|
|
385
|
+
LOW: "low",
|
|
386
|
+
MEDIUM: "medium"
|
|
387
|
+
};
|
|
388
|
+
var Specialty = {
|
|
389
|
+
CARDIOLOGY: "CARDIOLOGY",
|
|
390
|
+
NEUROLOGY: "NEUROLOGY",
|
|
391
|
+
ONCOLOGY: "ONCOLOGY",
|
|
392
|
+
PRIMARYCARE: "PRIMARYCARE",
|
|
393
|
+
RADIOLOGY: "RADIOLOGY",
|
|
394
|
+
UROLOGY: "UROLOGY"
|
|
395
|
+
};
|
|
396
|
+
var VocabularyFilterMethod = {
|
|
397
|
+
MASK: "mask",
|
|
398
|
+
REMOVE: "remove",
|
|
399
|
+
TAG: "tag"
|
|
400
|
+
};
|
|
401
|
+
var Type = {
|
|
402
|
+
CONVERSATION: "CONVERSATION",
|
|
403
|
+
DICTATION: "DICTATION"
|
|
404
|
+
};
|
|
405
|
+
var TranscriptResultStream;
|
|
406
|
+
((TranscriptResultStream3) => {
|
|
407
|
+
TranscriptResultStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
408
|
+
if (value.TranscriptEvent !== void 0)
|
|
409
|
+
return visitor.TranscriptEvent(value.TranscriptEvent);
|
|
410
|
+
if (value.BadRequestException !== void 0)
|
|
411
|
+
return visitor.BadRequestException(value.BadRequestException);
|
|
412
|
+
if (value.LimitExceededException !== void 0)
|
|
413
|
+
return visitor.LimitExceededException(value.LimitExceededException);
|
|
414
|
+
if (value.InternalFailureException !== void 0)
|
|
415
|
+
return visitor.InternalFailureException(value.InternalFailureException);
|
|
416
|
+
if (value.ConflictException !== void 0)
|
|
417
|
+
return visitor.ConflictException(value.ConflictException);
|
|
418
|
+
if (value.ServiceUnavailableException !== void 0)
|
|
419
|
+
return visitor.ServiceUnavailableException(value.ServiceUnavailableException);
|
|
420
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
421
|
+
}, "visit");
|
|
422
|
+
})(TranscriptResultStream || (TranscriptResultStream = {}));
|
|
423
|
+
var AudioStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
424
|
+
if (obj.AudioEvent !== void 0)
|
|
425
|
+
return { AudioEvent: obj.AudioEvent };
|
|
426
|
+
if (obj.ConfigurationEvent !== void 0)
|
|
427
|
+
return { ConfigurationEvent: obj.ConfigurationEvent };
|
|
428
|
+
if (obj.$unknown !== void 0)
|
|
429
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
430
|
+
}, "AudioStreamFilterSensitiveLog");
|
|
431
|
+
var CallAnalyticsTranscriptResultStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
432
|
+
if (obj.UtteranceEvent !== void 0)
|
|
433
|
+
return { UtteranceEvent: obj.UtteranceEvent };
|
|
434
|
+
if (obj.CategoryEvent !== void 0)
|
|
435
|
+
return { CategoryEvent: obj.CategoryEvent };
|
|
436
|
+
if (obj.BadRequestException !== void 0)
|
|
437
|
+
return { BadRequestException: obj.BadRequestException };
|
|
438
|
+
if (obj.LimitExceededException !== void 0)
|
|
439
|
+
return { LimitExceededException: obj.LimitExceededException };
|
|
440
|
+
if (obj.InternalFailureException !== void 0)
|
|
441
|
+
return { InternalFailureException: obj.InternalFailureException };
|
|
442
|
+
if (obj.ConflictException !== void 0)
|
|
443
|
+
return { ConflictException: obj.ConflictException };
|
|
444
|
+
if (obj.ServiceUnavailableException !== void 0)
|
|
445
|
+
return { ServiceUnavailableException: obj.ServiceUnavailableException };
|
|
446
|
+
if (obj.$unknown !== void 0)
|
|
447
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
448
|
+
}, "CallAnalyticsTranscriptResultStreamFilterSensitiveLog");
|
|
449
|
+
var MedicalTranscriptResultStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
450
|
+
if (obj.TranscriptEvent !== void 0)
|
|
451
|
+
return { TranscriptEvent: obj.TranscriptEvent };
|
|
452
|
+
if (obj.BadRequestException !== void 0)
|
|
453
|
+
return { BadRequestException: obj.BadRequestException };
|
|
454
|
+
if (obj.LimitExceededException !== void 0)
|
|
455
|
+
return { LimitExceededException: obj.LimitExceededException };
|
|
456
|
+
if (obj.InternalFailureException !== void 0)
|
|
457
|
+
return { InternalFailureException: obj.InternalFailureException };
|
|
458
|
+
if (obj.ConflictException !== void 0)
|
|
459
|
+
return { ConflictException: obj.ConflictException };
|
|
460
|
+
if (obj.ServiceUnavailableException !== void 0)
|
|
461
|
+
return { ServiceUnavailableException: obj.ServiceUnavailableException };
|
|
462
|
+
if (obj.$unknown !== void 0)
|
|
463
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
464
|
+
}, "MedicalTranscriptResultStreamFilterSensitiveLog");
|
|
465
|
+
var StartCallAnalyticsStreamTranscriptionRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
466
|
+
...obj,
|
|
467
|
+
...obj.AudioStream && { AudioStream: "STREAMING_CONTENT" }
|
|
468
|
+
}), "StartCallAnalyticsStreamTranscriptionRequestFilterSensitiveLog");
|
|
469
|
+
var StartCallAnalyticsStreamTranscriptionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
470
|
+
...obj,
|
|
471
|
+
...obj.CallAnalyticsTranscriptResultStream && { CallAnalyticsTranscriptResultStream: "STREAMING_CONTENT" }
|
|
472
|
+
}), "StartCallAnalyticsStreamTranscriptionResponseFilterSensitiveLog");
|
|
473
|
+
var StartMedicalStreamTranscriptionRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
474
|
+
...obj,
|
|
475
|
+
...obj.AudioStream && { AudioStream: "STREAMING_CONTENT" }
|
|
476
|
+
}), "StartMedicalStreamTranscriptionRequestFilterSensitiveLog");
|
|
477
|
+
var StartMedicalStreamTranscriptionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
478
|
+
...obj,
|
|
479
|
+
...obj.TranscriptResultStream && { TranscriptResultStream: "STREAMING_CONTENT" }
|
|
480
|
+
}), "StartMedicalStreamTranscriptionResponseFilterSensitiveLog");
|
|
481
|
+
var StartStreamTranscriptionRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
482
|
+
...obj,
|
|
483
|
+
...obj.AudioStream && { AudioStream: "STREAMING_CONTENT" }
|
|
484
|
+
}), "StartStreamTranscriptionRequestFilterSensitiveLog");
|
|
485
|
+
var TranscriptResultStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
486
|
+
if (obj.TranscriptEvent !== void 0)
|
|
487
|
+
return { TranscriptEvent: obj.TranscriptEvent };
|
|
488
|
+
if (obj.BadRequestException !== void 0)
|
|
489
|
+
return { BadRequestException: obj.BadRequestException };
|
|
490
|
+
if (obj.LimitExceededException !== void 0)
|
|
491
|
+
return { LimitExceededException: obj.LimitExceededException };
|
|
492
|
+
if (obj.InternalFailureException !== void 0)
|
|
493
|
+
return { InternalFailureException: obj.InternalFailureException };
|
|
494
|
+
if (obj.ConflictException !== void 0)
|
|
495
|
+
return { ConflictException: obj.ConflictException };
|
|
496
|
+
if (obj.ServiceUnavailableException !== void 0)
|
|
497
|
+
return { ServiceUnavailableException: obj.ServiceUnavailableException };
|
|
498
|
+
if (obj.$unknown !== void 0)
|
|
499
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
500
|
+
}, "TranscriptResultStreamFilterSensitiveLog");
|
|
501
|
+
var StartStreamTranscriptionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
502
|
+
...obj,
|
|
503
|
+
...obj.TranscriptResultStream && { TranscriptResultStream: "STREAMING_CONTENT" }
|
|
504
|
+
}), "StartStreamTranscriptionResponseFilterSensitiveLog");
|
|
505
|
+
|
|
506
|
+
// src/protocols/Aws_restJson1.ts
|
|
507
|
+
var import_core = require("@smithy/core");
|
|
508
|
+
|
|
509
|
+
var se_StartCallAnalyticsStreamTranscriptionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
510
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
511
|
+
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
512
|
+
[_xatlc]: input[_LC],
|
|
513
|
+
[_xatsr]: [() => isSerializableHeaderValue(input[_MSRH]), () => input[_MSRH].toString()],
|
|
514
|
+
[_xatme]: input[_ME],
|
|
515
|
+
[_xatvn]: input[_VN],
|
|
516
|
+
[_xatsi]: input[_SI],
|
|
517
|
+
[_xatvfn]: input[_VFN],
|
|
518
|
+
[_xatvfm]: input[_VFM],
|
|
519
|
+
[_xatlmn]: input[_LMN],
|
|
520
|
+
[_xateprs]: [() => isSerializableHeaderValue(input[_EPRS]), () => input[_EPRS].toString()],
|
|
521
|
+
[_xatprs]: input[_PRS],
|
|
522
|
+
[_xatcit]: input[_CIT],
|
|
523
|
+
[_xatcrt]: input[_CRT],
|
|
524
|
+
[_xatpet]: input[_PET]
|
|
525
|
+
});
|
|
526
|
+
b.bp("/call-analytics-stream-transcription");
|
|
527
|
+
let body;
|
|
528
|
+
if (input.AudioStream !== void 0) {
|
|
529
|
+
body = se_AudioStream(input.AudioStream, context);
|
|
530
|
+
}
|
|
531
|
+
b.m("POST").h(headers).b(body);
|
|
532
|
+
return b.build();
|
|
533
|
+
}, "se_StartCallAnalyticsStreamTranscriptionCommand");
|
|
534
|
+
var se_StartMedicalStreamTranscriptionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
535
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
536
|
+
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
537
|
+
[_xatlc]: input[_LC],
|
|
538
|
+
[_xatsr]: [() => isSerializableHeaderValue(input[_MSRH]), () => input[_MSRH].toString()],
|
|
539
|
+
[_xatme]: input[_ME],
|
|
540
|
+
[_xatvn]: input[_VN],
|
|
541
|
+
[_xats]: input[_S],
|
|
542
|
+
[_xatt]: input[_T],
|
|
543
|
+
[_xatssl]: [() => isSerializableHeaderValue(input[_SSL]), () => input[_SSL].toString()],
|
|
544
|
+
[_xatsi]: input[_SI],
|
|
545
|
+
[_xateci]: [() => isSerializableHeaderValue(input[_ECI]), () => input[_ECI].toString()],
|
|
546
|
+
[_xatnoc]: [() => isSerializableHeaderValue(input[_NOC]), () => input[_NOC].toString()],
|
|
547
|
+
[_xatcit]: input[_CIT]
|
|
548
|
+
});
|
|
549
|
+
b.bp("/medical-stream-transcription");
|
|
550
|
+
let body;
|
|
551
|
+
if (input.AudioStream !== void 0) {
|
|
552
|
+
body = se_AudioStream(input.AudioStream, context);
|
|
553
|
+
}
|
|
554
|
+
b.m("POST").h(headers).b(body);
|
|
555
|
+
return b.build();
|
|
556
|
+
}, "se_StartMedicalStreamTranscriptionCommand");
|
|
557
|
+
var se_StartStreamTranscriptionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
558
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
559
|
+
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
560
|
+
[_xatlc]: input[_LC],
|
|
561
|
+
[_xatsr]: [() => isSerializableHeaderValue(input[_MSRH]), () => input[_MSRH].toString()],
|
|
562
|
+
[_xatme]: input[_ME],
|
|
563
|
+
[_xatvn]: input[_VN],
|
|
564
|
+
[_xatsi]: input[_SI],
|
|
565
|
+
[_xatvfn]: input[_VFN],
|
|
566
|
+
[_xatvfm]: input[_VFM],
|
|
567
|
+
[_xatssl]: [() => isSerializableHeaderValue(input[_SSL]), () => input[_SSL].toString()],
|
|
568
|
+
[_xateci]: [() => isSerializableHeaderValue(input[_ECI]), () => input[_ECI].toString()],
|
|
569
|
+
[_xatnoc]: [() => isSerializableHeaderValue(input[_NOC]), () => input[_NOC].toString()],
|
|
570
|
+
[_xateprs]: [() => isSerializableHeaderValue(input[_EPRS]), () => input[_EPRS].toString()],
|
|
571
|
+
[_xatprs]: input[_PRS],
|
|
572
|
+
[_xatcit]: input[_CIT],
|
|
573
|
+
[_xatcrt]: input[_CRT],
|
|
574
|
+
[_xatpet]: input[_PET],
|
|
575
|
+
[_xatlmn]: input[_LMN],
|
|
576
|
+
[_xatil]: [() => isSerializableHeaderValue(input[_IL]), () => input[_IL].toString()],
|
|
577
|
+
[_xatlo]: input[_LO],
|
|
578
|
+
[_xatpl]: input[_PL],
|
|
579
|
+
[_xatiml]: [() => isSerializableHeaderValue(input[_IML]), () => input[_IML].toString()],
|
|
580
|
+
[_xatvn_]: input[_VNo],
|
|
581
|
+
[_xatvfn_]: input[_VFNo]
|
|
582
|
+
});
|
|
583
|
+
b.bp("/stream-transcription");
|
|
584
|
+
let body;
|
|
585
|
+
if (input.AudioStream !== void 0) {
|
|
586
|
+
body = se_AudioStream(input.AudioStream, context);
|
|
587
|
+
}
|
|
588
|
+
b.m("POST").h(headers).b(body);
|
|
589
|
+
return b.build();
|
|
590
|
+
}, "se_StartStreamTranscriptionCommand");
|
|
591
|
+
var de_StartCallAnalyticsStreamTranscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
592
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
593
|
+
return de_StartCallAnalyticsStreamTranscriptionCommandError(output, context);
|
|
594
|
+
}
|
|
595
|
+
const contents = (0, import_smithy_client.map)({
|
|
596
|
+
$metadata: deserializeMetadata(output),
|
|
597
|
+
[_RI]: [, output.headers[_xari]],
|
|
598
|
+
[_LC]: [, output.headers[_xatlc]],
|
|
599
|
+
[_MSRH]: [() => void 0 !== output.headers[_xatsr], () => (0, import_smithy_client.strictParseInt32)(output.headers[_xatsr])],
|
|
600
|
+
[_ME]: [, output.headers[_xatme]],
|
|
601
|
+
[_VN]: [, output.headers[_xatvn]],
|
|
602
|
+
[_SI]: [, output.headers[_xatsi]],
|
|
603
|
+
[_VFN]: [, output.headers[_xatvfn]],
|
|
604
|
+
[_VFM]: [, output.headers[_xatvfm]],
|
|
605
|
+
[_LMN]: [, output.headers[_xatlmn]],
|
|
606
|
+
[_EPRS]: [() => void 0 !== output.headers[_xateprs], () => (0, import_smithy_client.parseBoolean)(output.headers[_xateprs])],
|
|
607
|
+
[_PRS]: [, output.headers[_xatprs]],
|
|
608
|
+
[_CIT]: [, output.headers[_xatcit]],
|
|
609
|
+
[_CRT]: [, output.headers[_xatcrt]],
|
|
610
|
+
[_PET]: [, output.headers[_xatpet]]
|
|
611
|
+
});
|
|
612
|
+
const data = output.body;
|
|
613
|
+
contents.CallAnalyticsTranscriptResultStream = de_CallAnalyticsTranscriptResultStream(data, context);
|
|
614
|
+
return contents;
|
|
615
|
+
}, "de_StartCallAnalyticsStreamTranscriptionCommand");
|
|
616
|
+
var de_StartCallAnalyticsStreamTranscriptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
617
|
+
const parsedOutput = {
|
|
618
|
+
...output,
|
|
619
|
+
body: await parseErrorBody(output.body, context)
|
|
620
|
+
};
|
|
621
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
622
|
+
switch (errorCode) {
|
|
623
|
+
case "BadRequestException":
|
|
624
|
+
case "com.amazonaws.transcribestreaming#BadRequestException":
|
|
625
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
626
|
+
case "ConflictException":
|
|
627
|
+
case "com.amazonaws.transcribestreaming#ConflictException":
|
|
628
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
629
|
+
case "InternalFailureException":
|
|
630
|
+
case "com.amazonaws.transcribestreaming#InternalFailureException":
|
|
631
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
632
|
+
case "LimitExceededException":
|
|
633
|
+
case "com.amazonaws.transcribestreaming#LimitExceededException":
|
|
634
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
635
|
+
case "ServiceUnavailableException":
|
|
636
|
+
case "com.amazonaws.transcribestreaming#ServiceUnavailableException":
|
|
637
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
638
|
+
default:
|
|
639
|
+
const parsedBody = parsedOutput.body;
|
|
640
|
+
return throwDefaultError({
|
|
641
|
+
output,
|
|
642
|
+
parsedBody,
|
|
643
|
+
errorCode
|
|
644
|
+
});
|
|
645
|
+
}
|
|
646
|
+
}, "de_StartCallAnalyticsStreamTranscriptionCommandError");
|
|
647
|
+
var de_StartMedicalStreamTranscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
648
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
649
|
+
return de_StartMedicalStreamTranscriptionCommandError(output, context);
|
|
650
|
+
}
|
|
651
|
+
const contents = (0, import_smithy_client.map)({
|
|
652
|
+
$metadata: deserializeMetadata(output),
|
|
653
|
+
[_RI]: [, output.headers[_xari]],
|
|
654
|
+
[_LC]: [, output.headers[_xatlc]],
|
|
655
|
+
[_MSRH]: [() => void 0 !== output.headers[_xatsr], () => (0, import_smithy_client.strictParseInt32)(output.headers[_xatsr])],
|
|
656
|
+
[_ME]: [, output.headers[_xatme]],
|
|
657
|
+
[_VN]: [, output.headers[_xatvn]],
|
|
658
|
+
[_S]: [, output.headers[_xats]],
|
|
659
|
+
[_T]: [, output.headers[_xatt]],
|
|
660
|
+
[_SSL]: [() => void 0 !== output.headers[_xatssl], () => (0, import_smithy_client.parseBoolean)(output.headers[_xatssl])],
|
|
661
|
+
[_SI]: [, output.headers[_xatsi]],
|
|
662
|
+
[_ECI]: [() => void 0 !== output.headers[_xateci], () => (0, import_smithy_client.parseBoolean)(output.headers[_xateci])],
|
|
663
|
+
[_NOC]: [() => void 0 !== output.headers[_xatnoc], () => (0, import_smithy_client.strictParseInt32)(output.headers[_xatnoc])],
|
|
664
|
+
[_CIT]: [, output.headers[_xatcit]]
|
|
665
|
+
});
|
|
666
|
+
const data = output.body;
|
|
667
|
+
contents.TranscriptResultStream = de_MedicalTranscriptResultStream(data, context);
|
|
668
|
+
return contents;
|
|
669
|
+
}, "de_StartMedicalStreamTranscriptionCommand");
|
|
670
|
+
var de_StartMedicalStreamTranscriptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
671
|
+
const parsedOutput = {
|
|
672
|
+
...output,
|
|
673
|
+
body: await parseErrorBody(output.body, context)
|
|
674
|
+
};
|
|
675
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
676
|
+
switch (errorCode) {
|
|
677
|
+
case "BadRequestException":
|
|
678
|
+
case "com.amazonaws.transcribestreaming#BadRequestException":
|
|
679
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
680
|
+
case "ConflictException":
|
|
681
|
+
case "com.amazonaws.transcribestreaming#ConflictException":
|
|
682
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
683
|
+
case "InternalFailureException":
|
|
684
|
+
case "com.amazonaws.transcribestreaming#InternalFailureException":
|
|
685
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
686
|
+
case "LimitExceededException":
|
|
687
|
+
case "com.amazonaws.transcribestreaming#LimitExceededException":
|
|
688
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
689
|
+
case "ServiceUnavailableException":
|
|
690
|
+
case "com.amazonaws.transcribestreaming#ServiceUnavailableException":
|
|
691
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
692
|
+
default:
|
|
693
|
+
const parsedBody = parsedOutput.body;
|
|
694
|
+
return throwDefaultError({
|
|
695
|
+
output,
|
|
696
|
+
parsedBody,
|
|
697
|
+
errorCode
|
|
698
|
+
});
|
|
699
|
+
}
|
|
700
|
+
}, "de_StartMedicalStreamTranscriptionCommandError");
|
|
701
|
+
var de_StartStreamTranscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
702
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
703
|
+
return de_StartStreamTranscriptionCommandError(output, context);
|
|
704
|
+
}
|
|
705
|
+
const contents = (0, import_smithy_client.map)({
|
|
706
|
+
$metadata: deserializeMetadata(output),
|
|
707
|
+
[_RI]: [, output.headers[_xari]],
|
|
708
|
+
[_LC]: [, output.headers[_xatlc]],
|
|
709
|
+
[_MSRH]: [() => void 0 !== output.headers[_xatsr], () => (0, import_smithy_client.strictParseInt32)(output.headers[_xatsr])],
|
|
710
|
+
[_ME]: [, output.headers[_xatme]],
|
|
711
|
+
[_VN]: [, output.headers[_xatvn]],
|
|
712
|
+
[_SI]: [, output.headers[_xatsi]],
|
|
713
|
+
[_VFN]: [, output.headers[_xatvfn]],
|
|
714
|
+
[_VFM]: [, output.headers[_xatvfm]],
|
|
715
|
+
[_SSL]: [() => void 0 !== output.headers[_xatssl], () => (0, import_smithy_client.parseBoolean)(output.headers[_xatssl])],
|
|
716
|
+
[_ECI]: [() => void 0 !== output.headers[_xateci], () => (0, import_smithy_client.parseBoolean)(output.headers[_xateci])],
|
|
717
|
+
[_NOC]: [() => void 0 !== output.headers[_xatnoc], () => (0, import_smithy_client.strictParseInt32)(output.headers[_xatnoc])],
|
|
718
|
+
[_EPRS]: [() => void 0 !== output.headers[_xateprs], () => (0, import_smithy_client.parseBoolean)(output.headers[_xateprs])],
|
|
719
|
+
[_PRS]: [, output.headers[_xatprs]],
|
|
720
|
+
[_CIT]: [, output.headers[_xatcit]],
|
|
721
|
+
[_CRT]: [, output.headers[_xatcrt]],
|
|
722
|
+
[_PET]: [, output.headers[_xatpet]],
|
|
723
|
+
[_LMN]: [, output.headers[_xatlmn]],
|
|
724
|
+
[_IL]: [() => void 0 !== output.headers[_xatil], () => (0, import_smithy_client.parseBoolean)(output.headers[_xatil])],
|
|
725
|
+
[_LO]: [, output.headers[_xatlo]],
|
|
726
|
+
[_PL]: [, output.headers[_xatpl]],
|
|
727
|
+
[_IML]: [() => void 0 !== output.headers[_xatiml], () => (0, import_smithy_client.parseBoolean)(output.headers[_xatiml])],
|
|
728
|
+
[_VNo]: [, output.headers[_xatvn_]],
|
|
729
|
+
[_VFNo]: [, output.headers[_xatvfn_]]
|
|
730
|
+
});
|
|
731
|
+
const data = output.body;
|
|
732
|
+
contents.TranscriptResultStream = de_TranscriptResultStream(data, context);
|
|
733
|
+
return contents;
|
|
734
|
+
}, "de_StartStreamTranscriptionCommand");
|
|
735
|
+
var de_StartStreamTranscriptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
736
|
+
const parsedOutput = {
|
|
737
|
+
...output,
|
|
738
|
+
body: await parseErrorBody(output.body, context)
|
|
739
|
+
};
|
|
740
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
741
|
+
switch (errorCode) {
|
|
742
|
+
case "BadRequestException":
|
|
743
|
+
case "com.amazonaws.transcribestreaming#BadRequestException":
|
|
744
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
745
|
+
case "ConflictException":
|
|
746
|
+
case "com.amazonaws.transcribestreaming#ConflictException":
|
|
747
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
748
|
+
case "InternalFailureException":
|
|
749
|
+
case "com.amazonaws.transcribestreaming#InternalFailureException":
|
|
750
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
751
|
+
case "LimitExceededException":
|
|
752
|
+
case "com.amazonaws.transcribestreaming#LimitExceededException":
|
|
753
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
754
|
+
case "ServiceUnavailableException":
|
|
755
|
+
case "com.amazonaws.transcribestreaming#ServiceUnavailableException":
|
|
756
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
757
|
+
default:
|
|
758
|
+
const parsedBody = parsedOutput.body;
|
|
759
|
+
return throwDefaultError({
|
|
760
|
+
output,
|
|
761
|
+
parsedBody,
|
|
762
|
+
errorCode
|
|
763
|
+
});
|
|
764
|
+
}
|
|
765
|
+
}, "de_StartStreamTranscriptionCommandError");
|
|
766
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(TranscribeStreamingServiceException);
|
|
767
|
+
var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
768
|
+
const contents = (0, import_smithy_client.map)({});
|
|
769
|
+
const data = parsedOutput.body;
|
|
770
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
771
|
+
Message: import_smithy_client.expectString
|
|
772
|
+
});
|
|
773
|
+
Object.assign(contents, doc);
|
|
774
|
+
const exception = new BadRequestException({
|
|
775
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
776
|
+
...contents
|
|
777
|
+
});
|
|
778
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
779
|
+
}, "de_BadRequestExceptionRes");
|
|
780
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
781
|
+
const contents = (0, import_smithy_client.map)({});
|
|
782
|
+
const data = parsedOutput.body;
|
|
783
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
784
|
+
Message: import_smithy_client.expectString
|
|
785
|
+
});
|
|
786
|
+
Object.assign(contents, doc);
|
|
787
|
+
const exception = new ConflictException({
|
|
788
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
789
|
+
...contents
|
|
790
|
+
});
|
|
791
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
792
|
+
}, "de_ConflictExceptionRes");
|
|
793
|
+
var de_InternalFailureExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
794
|
+
const contents = (0, import_smithy_client.map)({});
|
|
795
|
+
const data = parsedOutput.body;
|
|
796
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
797
|
+
Message: import_smithy_client.expectString
|
|
798
|
+
});
|
|
799
|
+
Object.assign(contents, doc);
|
|
800
|
+
const exception = new InternalFailureException({
|
|
801
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
802
|
+
...contents
|
|
803
|
+
});
|
|
804
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
805
|
+
}, "de_InternalFailureExceptionRes");
|
|
806
|
+
var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
807
|
+
const contents = (0, import_smithy_client.map)({});
|
|
808
|
+
const data = parsedOutput.body;
|
|
809
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
810
|
+
Message: import_smithy_client.expectString
|
|
811
|
+
});
|
|
812
|
+
Object.assign(contents, doc);
|
|
813
|
+
const exception = new LimitExceededException({
|
|
814
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
815
|
+
...contents
|
|
816
|
+
});
|
|
817
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
818
|
+
}, "de_LimitExceededExceptionRes");
|
|
819
|
+
var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
820
|
+
const contents = (0, import_smithy_client.map)({});
|
|
821
|
+
const data = parsedOutput.body;
|
|
822
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
823
|
+
Message: import_smithy_client.expectString
|
|
824
|
+
});
|
|
825
|
+
Object.assign(contents, doc);
|
|
826
|
+
const exception = new ServiceUnavailableException({
|
|
827
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
828
|
+
...contents
|
|
829
|
+
});
|
|
830
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
831
|
+
}, "de_ServiceUnavailableExceptionRes");
|
|
832
|
+
var se_AudioStream = /* @__PURE__ */ __name((input, context) => {
|
|
833
|
+
const eventMarshallingVisitor = /* @__PURE__ */ __name((event) => AudioStream.visit(event, {
|
|
834
|
+
AudioEvent: (value) => se_AudioEvent_event(value, context),
|
|
835
|
+
ConfigurationEvent: (value) => se_ConfigurationEvent_event(value, context),
|
|
836
|
+
_: (value) => value
|
|
837
|
+
}), "eventMarshallingVisitor");
|
|
838
|
+
return context.eventStreamMarshaller.serialize(input, eventMarshallingVisitor);
|
|
839
|
+
}, "se_AudioStream");
|
|
840
|
+
var se_AudioEvent_event = /* @__PURE__ */ __name((input, context) => {
|
|
841
|
+
const headers = {
|
|
842
|
+
":event-type": { type: "string", value: "AudioEvent" },
|
|
843
|
+
":message-type": { type: "string", value: "event" },
|
|
844
|
+
":content-type": { type: "string", value: "application/octet-stream" }
|
|
845
|
+
};
|
|
846
|
+
let body = new Uint8Array();
|
|
847
|
+
if (input.AudioChunk != null) {
|
|
848
|
+
body = input.AudioChunk;
|
|
849
|
+
}
|
|
850
|
+
return { headers, body };
|
|
851
|
+
}, "se_AudioEvent_event");
|
|
852
|
+
var se_ConfigurationEvent_event = /* @__PURE__ */ __name((input, context) => {
|
|
853
|
+
const headers = {
|
|
854
|
+
":event-type": { type: "string", value: "ConfigurationEvent" },
|
|
855
|
+
":message-type": { type: "string", value: "event" },
|
|
856
|
+
":content-type": { type: "string", value: "application/json" }
|
|
857
|
+
};
|
|
858
|
+
let body = new Uint8Array();
|
|
859
|
+
body = (0, import_smithy_client._json)(input);
|
|
860
|
+
body = context.utf8Decoder(JSON.stringify(body));
|
|
861
|
+
return { headers, body };
|
|
862
|
+
}, "se_ConfigurationEvent_event");
|
|
863
|
+
var de_CallAnalyticsTranscriptResultStream = /* @__PURE__ */ __name((output, context) => {
|
|
864
|
+
return context.eventStreamMarshaller.deserialize(output, async (event) => {
|
|
865
|
+
if (event["UtteranceEvent"] != null) {
|
|
866
|
+
return {
|
|
867
|
+
UtteranceEvent: await de_UtteranceEvent_event(event["UtteranceEvent"], context)
|
|
868
|
+
};
|
|
869
|
+
}
|
|
870
|
+
if (event["CategoryEvent"] != null) {
|
|
871
|
+
return {
|
|
872
|
+
CategoryEvent: await de_CategoryEvent_event(event["CategoryEvent"], context)
|
|
873
|
+
};
|
|
874
|
+
}
|
|
875
|
+
if (event["BadRequestException"] != null) {
|
|
876
|
+
return {
|
|
877
|
+
BadRequestException: await de_BadRequestException_event(event["BadRequestException"], context)
|
|
878
|
+
};
|
|
879
|
+
}
|
|
880
|
+
if (event["LimitExceededException"] != null) {
|
|
881
|
+
return {
|
|
882
|
+
LimitExceededException: await de_LimitExceededException_event(event["LimitExceededException"], context)
|
|
883
|
+
};
|
|
884
|
+
}
|
|
885
|
+
if (event["InternalFailureException"] != null) {
|
|
886
|
+
return {
|
|
887
|
+
InternalFailureException: await de_InternalFailureException_event(event["InternalFailureException"], context)
|
|
888
|
+
};
|
|
889
|
+
}
|
|
890
|
+
if (event["ConflictException"] != null) {
|
|
891
|
+
return {
|
|
892
|
+
ConflictException: await de_ConflictException_event(event["ConflictException"], context)
|
|
893
|
+
};
|
|
894
|
+
}
|
|
895
|
+
if (event["ServiceUnavailableException"] != null) {
|
|
896
|
+
return {
|
|
897
|
+
ServiceUnavailableException: await de_ServiceUnavailableException_event(
|
|
898
|
+
event["ServiceUnavailableException"],
|
|
899
|
+
context
|
|
900
|
+
)
|
|
901
|
+
};
|
|
902
|
+
}
|
|
903
|
+
return { $unknown: output };
|
|
904
|
+
});
|
|
905
|
+
}, "de_CallAnalyticsTranscriptResultStream");
|
|
906
|
+
var de_MedicalTranscriptResultStream = /* @__PURE__ */ __name((output, context) => {
|
|
907
|
+
return context.eventStreamMarshaller.deserialize(output, async (event) => {
|
|
908
|
+
if (event["TranscriptEvent"] != null) {
|
|
909
|
+
return {
|
|
910
|
+
TranscriptEvent: await de_MedicalTranscriptEvent_event(event["TranscriptEvent"], context)
|
|
911
|
+
};
|
|
912
|
+
}
|
|
913
|
+
if (event["BadRequestException"] != null) {
|
|
914
|
+
return {
|
|
915
|
+
BadRequestException: await de_BadRequestException_event(event["BadRequestException"], context)
|
|
916
|
+
};
|
|
917
|
+
}
|
|
918
|
+
if (event["LimitExceededException"] != null) {
|
|
919
|
+
return {
|
|
920
|
+
LimitExceededException: await de_LimitExceededException_event(event["LimitExceededException"], context)
|
|
921
|
+
};
|
|
922
|
+
}
|
|
923
|
+
if (event["InternalFailureException"] != null) {
|
|
924
|
+
return {
|
|
925
|
+
InternalFailureException: await de_InternalFailureException_event(event["InternalFailureException"], context)
|
|
926
|
+
};
|
|
927
|
+
}
|
|
928
|
+
if (event["ConflictException"] != null) {
|
|
929
|
+
return {
|
|
930
|
+
ConflictException: await de_ConflictException_event(event["ConflictException"], context)
|
|
931
|
+
};
|
|
932
|
+
}
|
|
933
|
+
if (event["ServiceUnavailableException"] != null) {
|
|
934
|
+
return {
|
|
935
|
+
ServiceUnavailableException: await de_ServiceUnavailableException_event(
|
|
936
|
+
event["ServiceUnavailableException"],
|
|
937
|
+
context
|
|
938
|
+
)
|
|
939
|
+
};
|
|
940
|
+
}
|
|
941
|
+
return { $unknown: output };
|
|
942
|
+
});
|
|
943
|
+
}, "de_MedicalTranscriptResultStream");
|
|
944
|
+
var de_TranscriptResultStream = /* @__PURE__ */ __name((output, context) => {
|
|
945
|
+
return context.eventStreamMarshaller.deserialize(output, async (event) => {
|
|
946
|
+
if (event["TranscriptEvent"] != null) {
|
|
947
|
+
return {
|
|
948
|
+
TranscriptEvent: await de_TranscriptEvent_event(event["TranscriptEvent"], context)
|
|
949
|
+
};
|
|
950
|
+
}
|
|
951
|
+
if (event["BadRequestException"] != null) {
|
|
952
|
+
return {
|
|
953
|
+
BadRequestException: await de_BadRequestException_event(event["BadRequestException"], context)
|
|
954
|
+
};
|
|
955
|
+
}
|
|
956
|
+
if (event["LimitExceededException"] != null) {
|
|
957
|
+
return {
|
|
958
|
+
LimitExceededException: await de_LimitExceededException_event(event["LimitExceededException"], context)
|
|
959
|
+
};
|
|
960
|
+
}
|
|
961
|
+
if (event["InternalFailureException"] != null) {
|
|
962
|
+
return {
|
|
963
|
+
InternalFailureException: await de_InternalFailureException_event(event["InternalFailureException"], context)
|
|
964
|
+
};
|
|
965
|
+
}
|
|
966
|
+
if (event["ConflictException"] != null) {
|
|
967
|
+
return {
|
|
968
|
+
ConflictException: await de_ConflictException_event(event["ConflictException"], context)
|
|
969
|
+
};
|
|
970
|
+
}
|
|
971
|
+
if (event["ServiceUnavailableException"] != null) {
|
|
972
|
+
return {
|
|
973
|
+
ServiceUnavailableException: await de_ServiceUnavailableException_event(
|
|
974
|
+
event["ServiceUnavailableException"],
|
|
975
|
+
context
|
|
976
|
+
)
|
|
977
|
+
};
|
|
978
|
+
}
|
|
979
|
+
return { $unknown: output };
|
|
980
|
+
});
|
|
981
|
+
}, "de_TranscriptResultStream");
|
|
982
|
+
var de_BadRequestException_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
983
|
+
const parsedOutput = {
|
|
984
|
+
...output,
|
|
985
|
+
body: await parseBody(output.body, context)
|
|
986
|
+
};
|
|
987
|
+
return de_BadRequestExceptionRes(parsedOutput, context);
|
|
988
|
+
}, "de_BadRequestException_event");
|
|
989
|
+
var de_CategoryEvent_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
990
|
+
const contents = {};
|
|
991
|
+
const data = await parseBody(output.body, context);
|
|
992
|
+
Object.assign(contents, (0, import_smithy_client._json)(data));
|
|
993
|
+
return contents;
|
|
994
|
+
}, "de_CategoryEvent_event");
|
|
995
|
+
var de_ConflictException_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
996
|
+
const parsedOutput = {
|
|
997
|
+
...output,
|
|
998
|
+
body: await parseBody(output.body, context)
|
|
999
|
+
};
|
|
1000
|
+
return de_ConflictExceptionRes(parsedOutput, context);
|
|
1001
|
+
}, "de_ConflictException_event");
|
|
1002
|
+
var de_InternalFailureException_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
1003
|
+
const parsedOutput = {
|
|
1004
|
+
...output,
|
|
1005
|
+
body: await parseBody(output.body, context)
|
|
1006
|
+
};
|
|
1007
|
+
return de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1008
|
+
}, "de_InternalFailureException_event");
|
|
1009
|
+
var de_LimitExceededException_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
1010
|
+
const parsedOutput = {
|
|
1011
|
+
...output,
|
|
1012
|
+
body: await parseBody(output.body, context)
|
|
1013
|
+
};
|
|
1014
|
+
return de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1015
|
+
}, "de_LimitExceededException_event");
|
|
1016
|
+
var de_MedicalTranscriptEvent_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
1017
|
+
const contents = {};
|
|
1018
|
+
const data = await parseBody(output.body, context);
|
|
1019
|
+
Object.assign(contents, de_MedicalTranscriptEvent(data, context));
|
|
1020
|
+
return contents;
|
|
1021
|
+
}, "de_MedicalTranscriptEvent_event");
|
|
1022
|
+
var de_ServiceUnavailableException_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
1023
|
+
const parsedOutput = {
|
|
1024
|
+
...output,
|
|
1025
|
+
body: await parseBody(output.body, context)
|
|
1026
|
+
};
|
|
1027
|
+
return de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1028
|
+
}, "de_ServiceUnavailableException_event");
|
|
1029
|
+
var de_TranscriptEvent_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
1030
|
+
const contents = {};
|
|
1031
|
+
const data = await parseBody(output.body, context);
|
|
1032
|
+
Object.assign(contents, de_TranscriptEvent(data, context));
|
|
1033
|
+
return contents;
|
|
1034
|
+
}, "de_TranscriptEvent_event");
|
|
1035
|
+
var de_UtteranceEvent_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
1036
|
+
const contents = {};
|
|
1037
|
+
const data = await parseBody(output.body, context);
|
|
1038
|
+
Object.assign(contents, de_UtteranceEvent(data, context));
|
|
1039
|
+
return contents;
|
|
1040
|
+
}, "de_UtteranceEvent_event");
|
|
1041
|
+
var de_Alternative = /* @__PURE__ */ __name((output, context) => {
|
|
1042
|
+
return (0, import_smithy_client.take)(output, {
|
|
1043
|
+
Entities: (_) => de_EntityList(_, context),
|
|
1044
|
+
Items: (_) => de_ItemList(_, context),
|
|
1045
|
+
Transcript: import_smithy_client.expectString
|
|
1046
|
+
});
|
|
1047
|
+
}, "de_Alternative");
|
|
1048
|
+
var de_AlternativeList = /* @__PURE__ */ __name((output, context) => {
|
|
1049
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1050
|
+
return de_Alternative(entry, context);
|
|
1051
|
+
});
|
|
1052
|
+
return retVal;
|
|
1053
|
+
}, "de_AlternativeList");
|
|
1054
|
+
var de_CallAnalyticsEntity = /* @__PURE__ */ __name((output, context) => {
|
|
1055
|
+
return (0, import_smithy_client.take)(output, {
|
|
1056
|
+
BeginOffsetMillis: import_smithy_client.expectLong,
|
|
1057
|
+
Category: import_smithy_client.expectString,
|
|
1058
|
+
Confidence: import_smithy_client.limitedParseDouble,
|
|
1059
|
+
Content: import_smithy_client.expectString,
|
|
1060
|
+
EndOffsetMillis: import_smithy_client.expectLong,
|
|
1061
|
+
Type: import_smithy_client.expectString
|
|
1062
|
+
});
|
|
1063
|
+
}, "de_CallAnalyticsEntity");
|
|
1064
|
+
var de_CallAnalyticsEntityList = /* @__PURE__ */ __name((output, context) => {
|
|
1065
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1066
|
+
return de_CallAnalyticsEntity(entry, context);
|
|
1067
|
+
});
|
|
1068
|
+
return retVal;
|
|
1069
|
+
}, "de_CallAnalyticsEntityList");
|
|
1070
|
+
var de_CallAnalyticsItem = /* @__PURE__ */ __name((output, context) => {
|
|
1071
|
+
return (0, import_smithy_client.take)(output, {
|
|
1072
|
+
BeginOffsetMillis: import_smithy_client.expectLong,
|
|
1073
|
+
Confidence: import_smithy_client.limitedParseDouble,
|
|
1074
|
+
Content: import_smithy_client.expectString,
|
|
1075
|
+
EndOffsetMillis: import_smithy_client.expectLong,
|
|
1076
|
+
Stable: import_smithy_client.expectBoolean,
|
|
1077
|
+
Type: import_smithy_client.expectString,
|
|
1078
|
+
VocabularyFilterMatch: import_smithy_client.expectBoolean
|
|
1079
|
+
});
|
|
1080
|
+
}, "de_CallAnalyticsItem");
|
|
1081
|
+
var de_CallAnalyticsItemList = /* @__PURE__ */ __name((output, context) => {
|
|
1082
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1083
|
+
return de_CallAnalyticsItem(entry, context);
|
|
1084
|
+
});
|
|
1085
|
+
return retVal;
|
|
1086
|
+
}, "de_CallAnalyticsItemList");
|
|
1087
|
+
var de_Entity = /* @__PURE__ */ __name((output, context) => {
|
|
1088
|
+
return (0, import_smithy_client.take)(output, {
|
|
1089
|
+
Category: import_smithy_client.expectString,
|
|
1090
|
+
Confidence: import_smithy_client.limitedParseDouble,
|
|
1091
|
+
Content: import_smithy_client.expectString,
|
|
1092
|
+
EndTime: import_smithy_client.limitedParseDouble,
|
|
1093
|
+
StartTime: import_smithy_client.limitedParseDouble,
|
|
1094
|
+
Type: import_smithy_client.expectString
|
|
1095
|
+
});
|
|
1096
|
+
}, "de_Entity");
|
|
1097
|
+
var de_EntityList = /* @__PURE__ */ __name((output, context) => {
|
|
1098
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1099
|
+
return de_Entity(entry, context);
|
|
1100
|
+
});
|
|
1101
|
+
return retVal;
|
|
1102
|
+
}, "de_EntityList");
|
|
1103
|
+
var de_Item = /* @__PURE__ */ __name((output, context) => {
|
|
1104
|
+
return (0, import_smithy_client.take)(output, {
|
|
1105
|
+
Confidence: import_smithy_client.limitedParseDouble,
|
|
1106
|
+
Content: import_smithy_client.expectString,
|
|
1107
|
+
EndTime: import_smithy_client.limitedParseDouble,
|
|
1108
|
+
Speaker: import_smithy_client.expectString,
|
|
1109
|
+
Stable: import_smithy_client.expectBoolean,
|
|
1110
|
+
StartTime: import_smithy_client.limitedParseDouble,
|
|
1111
|
+
Type: import_smithy_client.expectString,
|
|
1112
|
+
VocabularyFilterMatch: import_smithy_client.expectBoolean
|
|
1113
|
+
});
|
|
1114
|
+
}, "de_Item");
|
|
1115
|
+
var de_ItemList = /* @__PURE__ */ __name((output, context) => {
|
|
1116
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1117
|
+
return de_Item(entry, context);
|
|
1118
|
+
});
|
|
1119
|
+
return retVal;
|
|
1120
|
+
}, "de_ItemList");
|
|
1121
|
+
var de_LanguageIdentification = /* @__PURE__ */ __name((output, context) => {
|
|
1122
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1123
|
+
return de_LanguageWithScore(entry, context);
|
|
1124
|
+
});
|
|
1125
|
+
return retVal;
|
|
1126
|
+
}, "de_LanguageIdentification");
|
|
1127
|
+
var de_LanguageWithScore = /* @__PURE__ */ __name((output, context) => {
|
|
1128
|
+
return (0, import_smithy_client.take)(output, {
|
|
1129
|
+
LanguageCode: import_smithy_client.expectString,
|
|
1130
|
+
Score: import_smithy_client.limitedParseDouble
|
|
1131
|
+
});
|
|
1132
|
+
}, "de_LanguageWithScore");
|
|
1133
|
+
var de_MedicalAlternative = /* @__PURE__ */ __name((output, context) => {
|
|
1134
|
+
return (0, import_smithy_client.take)(output, {
|
|
1135
|
+
Entities: (_) => de_MedicalEntityList(_, context),
|
|
1136
|
+
Items: (_) => de_MedicalItemList(_, context),
|
|
1137
|
+
Transcript: import_smithy_client.expectString
|
|
1138
|
+
});
|
|
1139
|
+
}, "de_MedicalAlternative");
|
|
1140
|
+
var de_MedicalAlternativeList = /* @__PURE__ */ __name((output, context) => {
|
|
1141
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1142
|
+
return de_MedicalAlternative(entry, context);
|
|
1143
|
+
});
|
|
1144
|
+
return retVal;
|
|
1145
|
+
}, "de_MedicalAlternativeList");
|
|
1146
|
+
var de_MedicalEntity = /* @__PURE__ */ __name((output, context) => {
|
|
1147
|
+
return (0, import_smithy_client.take)(output, {
|
|
1148
|
+
Category: import_smithy_client.expectString,
|
|
1149
|
+
Confidence: import_smithy_client.limitedParseDouble,
|
|
1150
|
+
Content: import_smithy_client.expectString,
|
|
1151
|
+
EndTime: import_smithy_client.limitedParseDouble,
|
|
1152
|
+
StartTime: import_smithy_client.limitedParseDouble
|
|
1153
|
+
});
|
|
1154
|
+
}, "de_MedicalEntity");
|
|
1155
|
+
var de_MedicalEntityList = /* @__PURE__ */ __name((output, context) => {
|
|
1156
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1157
|
+
return de_MedicalEntity(entry, context);
|
|
1158
|
+
});
|
|
1159
|
+
return retVal;
|
|
1160
|
+
}, "de_MedicalEntityList");
|
|
1161
|
+
var de_MedicalItem = /* @__PURE__ */ __name((output, context) => {
|
|
1162
|
+
return (0, import_smithy_client.take)(output, {
|
|
1163
|
+
Confidence: import_smithy_client.limitedParseDouble,
|
|
1164
|
+
Content: import_smithy_client.expectString,
|
|
1165
|
+
EndTime: import_smithy_client.limitedParseDouble,
|
|
1166
|
+
Speaker: import_smithy_client.expectString,
|
|
1167
|
+
StartTime: import_smithy_client.limitedParseDouble,
|
|
1168
|
+
Type: import_smithy_client.expectString
|
|
1169
|
+
});
|
|
1170
|
+
}, "de_MedicalItem");
|
|
1171
|
+
var de_MedicalItemList = /* @__PURE__ */ __name((output, context) => {
|
|
1172
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1173
|
+
return de_MedicalItem(entry, context);
|
|
1174
|
+
});
|
|
1175
|
+
return retVal;
|
|
1176
|
+
}, "de_MedicalItemList");
|
|
1177
|
+
var de_MedicalResult = /* @__PURE__ */ __name((output, context) => {
|
|
1178
|
+
return (0, import_smithy_client.take)(output, {
|
|
1179
|
+
Alternatives: (_) => de_MedicalAlternativeList(_, context),
|
|
1180
|
+
ChannelId: import_smithy_client.expectString,
|
|
1181
|
+
EndTime: import_smithy_client.limitedParseDouble,
|
|
1182
|
+
IsPartial: import_smithy_client.expectBoolean,
|
|
1183
|
+
ResultId: import_smithy_client.expectString,
|
|
1184
|
+
StartTime: import_smithy_client.limitedParseDouble
|
|
1185
|
+
});
|
|
1186
|
+
}, "de_MedicalResult");
|
|
1187
|
+
var de_MedicalResultList = /* @__PURE__ */ __name((output, context) => {
|
|
1188
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1189
|
+
return de_MedicalResult(entry, context);
|
|
1190
|
+
});
|
|
1191
|
+
return retVal;
|
|
1192
|
+
}, "de_MedicalResultList");
|
|
1193
|
+
var de_MedicalTranscript = /* @__PURE__ */ __name((output, context) => {
|
|
1194
|
+
return (0, import_smithy_client.take)(output, {
|
|
1195
|
+
Results: (_) => de_MedicalResultList(_, context)
|
|
1196
|
+
});
|
|
1197
|
+
}, "de_MedicalTranscript");
|
|
1198
|
+
var de_MedicalTranscriptEvent = /* @__PURE__ */ __name((output, context) => {
|
|
1199
|
+
return (0, import_smithy_client.take)(output, {
|
|
1200
|
+
Transcript: (_) => de_MedicalTranscript(_, context)
|
|
1201
|
+
});
|
|
1202
|
+
}, "de_MedicalTranscriptEvent");
|
|
1203
|
+
var de_Result = /* @__PURE__ */ __name((output, context) => {
|
|
1204
|
+
return (0, import_smithy_client.take)(output, {
|
|
1205
|
+
Alternatives: (_) => de_AlternativeList(_, context),
|
|
1206
|
+
ChannelId: import_smithy_client.expectString,
|
|
1207
|
+
EndTime: import_smithy_client.limitedParseDouble,
|
|
1208
|
+
IsPartial: import_smithy_client.expectBoolean,
|
|
1209
|
+
LanguageCode: import_smithy_client.expectString,
|
|
1210
|
+
LanguageIdentification: (_) => de_LanguageIdentification(_, context),
|
|
1211
|
+
ResultId: import_smithy_client.expectString,
|
|
1212
|
+
StartTime: import_smithy_client.limitedParseDouble
|
|
1213
|
+
});
|
|
1214
|
+
}, "de_Result");
|
|
1215
|
+
var de_ResultList = /* @__PURE__ */ __name((output, context) => {
|
|
1216
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1217
|
+
return de_Result(entry, context);
|
|
1218
|
+
});
|
|
1219
|
+
return retVal;
|
|
1220
|
+
}, "de_ResultList");
|
|
1221
|
+
var de_Transcript = /* @__PURE__ */ __name((output, context) => {
|
|
1222
|
+
return (0, import_smithy_client.take)(output, {
|
|
1223
|
+
Results: (_) => de_ResultList(_, context)
|
|
1224
|
+
});
|
|
1225
|
+
}, "de_Transcript");
|
|
1226
|
+
var de_TranscriptEvent = /* @__PURE__ */ __name((output, context) => {
|
|
1227
|
+
return (0, import_smithy_client.take)(output, {
|
|
1228
|
+
Transcript: (_) => de_Transcript(_, context)
|
|
1229
|
+
});
|
|
1230
|
+
}, "de_TranscriptEvent");
|
|
1231
|
+
var de_UtteranceEvent = /* @__PURE__ */ __name((output, context) => {
|
|
1232
|
+
return (0, import_smithy_client.take)(output, {
|
|
1233
|
+
BeginOffsetMillis: import_smithy_client.expectLong,
|
|
1234
|
+
EndOffsetMillis: import_smithy_client.expectLong,
|
|
1235
|
+
Entities: (_) => de_CallAnalyticsEntityList(_, context),
|
|
1236
|
+
IsPartial: import_smithy_client.expectBoolean,
|
|
1237
|
+
IssuesDetected: import_smithy_client._json,
|
|
1238
|
+
Items: (_) => de_CallAnalyticsItemList(_, context),
|
|
1239
|
+
ParticipantRole: import_smithy_client.expectString,
|
|
1240
|
+
Sentiment: import_smithy_client.expectString,
|
|
1241
|
+
Transcript: import_smithy_client.expectString,
|
|
1242
|
+
UtteranceId: import_smithy_client.expectString
|
|
1243
|
+
});
|
|
1244
|
+
}, "de_UtteranceEvent");
|
|
1245
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1246
|
+
httpStatusCode: output.statusCode,
|
|
1247
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1248
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1249
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
1250
|
+
}), "deserializeMetadata");
|
|
1251
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1252
|
+
var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0), "isSerializableHeaderValue");
|
|
1253
|
+
var _CIT = "ContentIdentificationType";
|
|
1254
|
+
var _CRT = "ContentRedactionType";
|
|
1255
|
+
var _ECI = "EnableChannelIdentification";
|
|
1256
|
+
var _EPRS = "EnablePartialResultsStabilization";
|
|
1257
|
+
var _IL = "IdentifyLanguage";
|
|
1258
|
+
var _IML = "IdentifyMultipleLanguages";
|
|
1259
|
+
var _LC = "LanguageCode";
|
|
1260
|
+
var _LMN = "LanguageModelName";
|
|
1261
|
+
var _LO = "LanguageOptions";
|
|
1262
|
+
var _ME = "MediaEncoding";
|
|
1263
|
+
var _MSRH = "MediaSampleRateHertz";
|
|
1264
|
+
var _NOC = "NumberOfChannels";
|
|
1265
|
+
var _PET = "PiiEntityTypes";
|
|
1266
|
+
var _PL = "PreferredLanguage";
|
|
1267
|
+
var _PRS = "PartialResultsStability";
|
|
1268
|
+
var _RI = "RequestId";
|
|
1269
|
+
var _S = "Specialty";
|
|
1270
|
+
var _SI = "SessionId";
|
|
1271
|
+
var _SSL = "ShowSpeakerLabel";
|
|
1272
|
+
var _T = "Type";
|
|
1273
|
+
var _VFM = "VocabularyFilterMethod";
|
|
1274
|
+
var _VFN = "VocabularyFilterName";
|
|
1275
|
+
var _VFNo = "VocabularyFilterNames";
|
|
1276
|
+
var _VN = "VocabularyName";
|
|
1277
|
+
var _VNo = "VocabularyNames";
|
|
1278
|
+
var _xari = "x-amzn-request-id";
|
|
1279
|
+
var _xatcit = "x-amzn-transcribe-content-identification-type";
|
|
1280
|
+
var _xatcrt = "x-amzn-transcribe-content-redaction-type";
|
|
1281
|
+
var _xateci = "x-amzn-transcribe-enable-channel-identification";
|
|
1282
|
+
var _xateprs = "x-amzn-transcribe-enable-partial-results-stabilization";
|
|
1283
|
+
var _xatil = "x-amzn-transcribe-identify-language";
|
|
1284
|
+
var _xatiml = "x-amzn-transcribe-identify-multiple-languages";
|
|
1285
|
+
var _xatlc = "x-amzn-transcribe-language-code";
|
|
1286
|
+
var _xatlmn = "x-amzn-transcribe-language-model-name";
|
|
1287
|
+
var _xatlo = "x-amzn-transcribe-language-options";
|
|
1288
|
+
var _xatme = "x-amzn-transcribe-media-encoding";
|
|
1289
|
+
var _xatnoc = "x-amzn-transcribe-number-of-channels";
|
|
1290
|
+
var _xatpet = "x-amzn-transcribe-pii-entity-types";
|
|
1291
|
+
var _xatpl = "x-amzn-transcribe-preferred-language";
|
|
1292
|
+
var _xatprs = "x-amzn-transcribe-partial-results-stability";
|
|
1293
|
+
var _xats = "x-amzn-transcribe-specialty";
|
|
1294
|
+
var _xatsi = "x-amzn-transcribe-session-id";
|
|
1295
|
+
var _xatsr = "x-amzn-transcribe-sample-rate";
|
|
1296
|
+
var _xatssl = "x-amzn-transcribe-show-speaker-label";
|
|
1297
|
+
var _xatt = "x-amzn-transcribe-type";
|
|
1298
|
+
var _xatvfm = "x-amzn-transcribe-vocabulary-filter-method";
|
|
1299
|
+
var _xatvfn = "x-amzn-transcribe-vocabulary-filter-name";
|
|
1300
|
+
var _xatvfn_ = "x-amzn-transcribe-vocabulary-filter-names";
|
|
1301
|
+
var _xatvn = "x-amzn-transcribe-vocabulary-name";
|
|
1302
|
+
var _xatvn_ = "x-amzn-transcribe-vocabulary-names";
|
|
1303
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1304
|
+
if (encoded.length) {
|
|
1305
|
+
return JSON.parse(encoded);
|
|
1306
|
+
}
|
|
1307
|
+
return {};
|
|
1308
|
+
}), "parseBody");
|
|
1309
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1310
|
+
const value = await parseBody(errorBody, context);
|
|
1311
|
+
value.message = value.message ?? value.Message;
|
|
1312
|
+
return value;
|
|
1313
|
+
}, "parseErrorBody");
|
|
1314
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1315
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1316
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1317
|
+
let cleanValue = rawValue;
|
|
1318
|
+
if (typeof cleanValue === "number") {
|
|
1319
|
+
cleanValue = cleanValue.toString();
|
|
1320
|
+
}
|
|
1321
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1322
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1323
|
+
}
|
|
1324
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1325
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1326
|
+
}
|
|
1327
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
1328
|
+
cleanValue = cleanValue.split("#")[1];
|
|
1329
|
+
}
|
|
1330
|
+
return cleanValue;
|
|
1331
|
+
}, "sanitizeErrorCode");
|
|
1332
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1333
|
+
if (headerKey !== void 0) {
|
|
1334
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1335
|
+
}
|
|
1336
|
+
if (data.code !== void 0) {
|
|
1337
|
+
return sanitizeErrorCode(data.code);
|
|
1338
|
+
}
|
|
1339
|
+
if (data["__type"] !== void 0) {
|
|
1340
|
+
return sanitizeErrorCode(data["__type"]);
|
|
1341
|
+
}
|
|
1342
|
+
}, "loadRestJsonErrorCode");
|
|
1343
|
+
|
|
1344
|
+
// src/commands/StartCallAnalyticsStreamTranscriptionCommand.ts
|
|
1345
|
+
var _StartCallAnalyticsStreamTranscriptionCommand = class _StartCallAnalyticsStreamTranscriptionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1346
|
+
...commonParams
|
|
1347
|
+
}).m(function(Command, cs, config, o) {
|
|
1348
|
+
return [
|
|
1349
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1350
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
1351
|
+
(0, import_middleware_eventstream.getEventStreamPlugin)(config),
|
|
1352
|
+
(0, import_middleware_websocket.getWebSocketPlugin)(config, { headerPrefix: "x-amzn-transcribe-" })
|
|
1353
|
+
];
|
|
1354
|
+
}).s("Transcribe", "StartCallAnalyticsStreamTranscription", {
|
|
1355
|
+
/**
|
|
1356
|
+
* @internal
|
|
1357
|
+
*/
|
|
1358
|
+
eventStream: {
|
|
1359
|
+
input: true,
|
|
1360
|
+
output: true
|
|
1361
|
+
}
|
|
1362
|
+
}).n("TranscribeStreamingClient", "StartCallAnalyticsStreamTranscriptionCommand").f(
|
|
1363
|
+
StartCallAnalyticsStreamTranscriptionRequestFilterSensitiveLog,
|
|
1364
|
+
StartCallAnalyticsStreamTranscriptionResponseFilterSensitiveLog
|
|
1365
|
+
).ser(se_StartCallAnalyticsStreamTranscriptionCommand).de(de_StartCallAnalyticsStreamTranscriptionCommand).build() {
|
|
1366
|
+
};
|
|
1367
|
+
__name(_StartCallAnalyticsStreamTranscriptionCommand, "StartCallAnalyticsStreamTranscriptionCommand");
|
|
1368
|
+
var StartCallAnalyticsStreamTranscriptionCommand = _StartCallAnalyticsStreamTranscriptionCommand;
|
|
1369
|
+
|
|
1370
|
+
// src/commands/StartMedicalStreamTranscriptionCommand.ts
|
|
1371
|
+
|
|
1372
|
+
|
|
1373
|
+
|
|
1374
|
+
|
|
1375
|
+
|
|
1376
|
+
|
|
1377
|
+
var _StartMedicalStreamTranscriptionCommand = class _StartMedicalStreamTranscriptionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1378
|
+
...commonParams
|
|
1379
|
+
}).m(function(Command, cs, config, o) {
|
|
1380
|
+
return [
|
|
1381
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1382
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
1383
|
+
(0, import_middleware_eventstream.getEventStreamPlugin)(config),
|
|
1384
|
+
(0, import_middleware_websocket.getWebSocketPlugin)(config, { headerPrefix: "x-amzn-transcribe-" })
|
|
1385
|
+
];
|
|
1386
|
+
}).s("Transcribe", "StartMedicalStreamTranscription", {
|
|
1387
|
+
/**
|
|
1388
|
+
* @internal
|
|
1389
|
+
*/
|
|
1390
|
+
eventStream: {
|
|
1391
|
+
input: true,
|
|
1392
|
+
output: true
|
|
1393
|
+
}
|
|
1394
|
+
}).n("TranscribeStreamingClient", "StartMedicalStreamTranscriptionCommand").f(
|
|
1395
|
+
StartMedicalStreamTranscriptionRequestFilterSensitiveLog,
|
|
1396
|
+
StartMedicalStreamTranscriptionResponseFilterSensitiveLog
|
|
1397
|
+
).ser(se_StartMedicalStreamTranscriptionCommand).de(de_StartMedicalStreamTranscriptionCommand).build() {
|
|
1398
|
+
};
|
|
1399
|
+
__name(_StartMedicalStreamTranscriptionCommand, "StartMedicalStreamTranscriptionCommand");
|
|
1400
|
+
var StartMedicalStreamTranscriptionCommand = _StartMedicalStreamTranscriptionCommand;
|
|
1401
|
+
|
|
1402
|
+
// src/commands/StartStreamTranscriptionCommand.ts
|
|
1403
|
+
|
|
1404
|
+
|
|
1405
|
+
|
|
1406
|
+
|
|
1407
|
+
|
|
1408
|
+
|
|
1409
|
+
var _StartStreamTranscriptionCommand = class _StartStreamTranscriptionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1410
|
+
...commonParams
|
|
1411
|
+
}).m(function(Command, cs, config, o) {
|
|
1412
|
+
return [
|
|
1413
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1414
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
1415
|
+
(0, import_middleware_eventstream.getEventStreamPlugin)(config),
|
|
1416
|
+
(0, import_middleware_websocket.getWebSocketPlugin)(config, { headerPrefix: "x-amzn-transcribe-" })
|
|
1417
|
+
];
|
|
1418
|
+
}).s("Transcribe", "StartStreamTranscription", {
|
|
1419
|
+
/**
|
|
1420
|
+
* @internal
|
|
1421
|
+
*/
|
|
1422
|
+
eventStream: {
|
|
1423
|
+
input: true,
|
|
1424
|
+
output: true
|
|
1425
|
+
}
|
|
1426
|
+
}).n("TranscribeStreamingClient", "StartStreamTranscriptionCommand").f(StartStreamTranscriptionRequestFilterSensitiveLog, StartStreamTranscriptionResponseFilterSensitiveLog).ser(se_StartStreamTranscriptionCommand).de(de_StartStreamTranscriptionCommand).build() {
|
|
1427
|
+
};
|
|
1428
|
+
__name(_StartStreamTranscriptionCommand, "StartStreamTranscriptionCommand");
|
|
1429
|
+
var StartStreamTranscriptionCommand = _StartStreamTranscriptionCommand;
|
|
1430
|
+
|
|
1431
|
+
// src/TranscribeStreaming.ts
|
|
1432
|
+
var commands = {
|
|
1433
|
+
StartCallAnalyticsStreamTranscriptionCommand,
|
|
1434
|
+
StartMedicalStreamTranscriptionCommand,
|
|
1435
|
+
StartStreamTranscriptionCommand
|
|
1436
|
+
};
|
|
1437
|
+
var _TranscribeStreaming = class _TranscribeStreaming extends TranscribeStreamingClient {
|
|
1438
|
+
};
|
|
1439
|
+
__name(_TranscribeStreaming, "TranscribeStreaming");
|
|
1440
|
+
var TranscribeStreaming = _TranscribeStreaming;
|
|
1441
|
+
(0, import_smithy_client.createAggregatedClient)(commands, TranscribeStreaming);
|
|
1442
|
+
|
|
1443
|
+
// src/index.ts
|
|
1444
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
1445
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1446
|
+
|
|
1447
|
+
0 && (module.exports = {
|
|
1448
|
+
AudioStream,
|
|
1449
|
+
AudioStreamFilterSensitiveLog,
|
|
1450
|
+
BadRequestException,
|
|
1451
|
+
CallAnalyticsLanguageCode,
|
|
1452
|
+
CallAnalyticsTranscriptResultStream,
|
|
1453
|
+
CallAnalyticsTranscriptResultStreamFilterSensitiveLog,
|
|
1454
|
+
ConflictException,
|
|
1455
|
+
ContentIdentificationType,
|
|
1456
|
+
ContentRedactionOutput,
|
|
1457
|
+
ContentRedactionType,
|
|
1458
|
+
InternalFailureException,
|
|
1459
|
+
ItemType,
|
|
1460
|
+
LanguageCode,
|
|
1461
|
+
LimitExceededException,
|
|
1462
|
+
MediaEncoding,
|
|
1463
|
+
MedicalContentIdentificationType,
|
|
1464
|
+
MedicalTranscriptResultStream,
|
|
1465
|
+
MedicalTranscriptResultStreamFilterSensitiveLog,
|
|
1466
|
+
PartialResultsStability,
|
|
1467
|
+
ParticipantRole,
|
|
1468
|
+
Sentiment,
|
|
1469
|
+
ServiceUnavailableException,
|
|
1470
|
+
Specialty,
|
|
1471
|
+
StartCallAnalyticsStreamTranscriptionCommand,
|
|
1472
|
+
StartCallAnalyticsStreamTranscriptionRequestFilterSensitiveLog,
|
|
1473
|
+
StartCallAnalyticsStreamTranscriptionResponseFilterSensitiveLog,
|
|
1474
|
+
StartMedicalStreamTranscriptionCommand,
|
|
1475
|
+
StartMedicalStreamTranscriptionRequestFilterSensitiveLog,
|
|
1476
|
+
StartMedicalStreamTranscriptionResponseFilterSensitiveLog,
|
|
1477
|
+
StartStreamTranscriptionCommand,
|
|
1478
|
+
StartStreamTranscriptionRequestFilterSensitiveLog,
|
|
1479
|
+
StartStreamTranscriptionResponseFilterSensitiveLog,
|
|
1480
|
+
TranscribeStreaming,
|
|
1481
|
+
TranscribeStreamingClient,
|
|
1482
|
+
TranscribeStreamingServiceException,
|
|
1483
|
+
TranscriptResultStream,
|
|
1484
|
+
TranscriptResultStreamFilterSensitiveLog,
|
|
1485
|
+
Type,
|
|
1486
|
+
VocabularyFilterMethod,
|
|
1487
|
+
__Client
|
|
1488
|
+
});
|
|
1489
|
+
|