@aws-sdk/client-transcribe-streaming 3.306.0 → 3.310.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/commands/StartCallAnalyticsStreamTranscriptionCommand.js +2 -2
- package/dist-cjs/commands/StartMedicalStreamTranscriptionCommand.js +2 -2
- package/dist-cjs/commands/StartStreamTranscriptionCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +166 -178
- package/dist-es/commands/StartCallAnalyticsStreamTranscriptionCommand.js +3 -3
- package/dist-es/commands/StartMedicalStreamTranscriptionCommand.js +3 -3
- package/dist-es/commands/StartStreamTranscriptionCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +159 -171
- package/dist-types/protocols/Aws_restJson1.d.ts +24 -6
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -6
- package/package.json +42 -42
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_StartStreamTranscriptionCommand = exports.de_StartMedicalStreamTranscriptionCommand = exports.de_StartCallAnalyticsStreamTranscriptionCommand = exports.se_StartStreamTranscriptionCommand = exports.se_StartMedicalStreamTranscriptionCommand = exports.se_StartCallAnalyticsStreamTranscriptionCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const TranscribeStreamingServiceException_1 = require("../models/TranscribeStreamingServiceException");
|
|
8
|
-
const
|
|
8
|
+
const se_StartCallAnalyticsStreamTranscriptionCommand = async (input, context) => {
|
|
9
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
10
|
const headers = map({}, isSerializableHeaderValue, {
|
|
11
11
|
"x-amzn-transcribe-language-code": input.LanguageCode,
|
|
@@ -31,7 +31,7 @@ const serializeAws_restJson1StartCallAnalyticsStreamTranscriptionCommand = async
|
|
|
31
31
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/call-analytics-stream-transcription";
|
|
32
32
|
let body;
|
|
33
33
|
if (input.AudioStream !== undefined) {
|
|
34
|
-
body =
|
|
34
|
+
body = se_AudioStream(input.AudioStream, context);
|
|
35
35
|
}
|
|
36
36
|
return new protocol_http_1.HttpRequest({
|
|
37
37
|
protocol,
|
|
@@ -43,8 +43,8 @@ const serializeAws_restJson1StartCallAnalyticsStreamTranscriptionCommand = async
|
|
|
43
43
|
body,
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
|
-
exports.
|
|
47
|
-
const
|
|
46
|
+
exports.se_StartCallAnalyticsStreamTranscriptionCommand = se_StartCallAnalyticsStreamTranscriptionCommand;
|
|
47
|
+
const se_StartMedicalStreamTranscriptionCommand = async (input, context) => {
|
|
48
48
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
49
49
|
const headers = map({}, isSerializableHeaderValue, {
|
|
50
50
|
"x-amzn-transcribe-language-code": input.LanguageCode,
|
|
@@ -74,7 +74,7 @@ const serializeAws_restJson1StartMedicalStreamTranscriptionCommand = async (inpu
|
|
|
74
74
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/medical-stream-transcription";
|
|
75
75
|
let body;
|
|
76
76
|
if (input.AudioStream !== undefined) {
|
|
77
|
-
body =
|
|
77
|
+
body = se_AudioStream(input.AudioStream, context);
|
|
78
78
|
}
|
|
79
79
|
return new protocol_http_1.HttpRequest({
|
|
80
80
|
protocol,
|
|
@@ -86,8 +86,8 @@ const serializeAws_restJson1StartMedicalStreamTranscriptionCommand = async (inpu
|
|
|
86
86
|
body,
|
|
87
87
|
});
|
|
88
88
|
};
|
|
89
|
-
exports.
|
|
90
|
-
const
|
|
89
|
+
exports.se_StartMedicalStreamTranscriptionCommand = se_StartMedicalStreamTranscriptionCommand;
|
|
90
|
+
const se_StartStreamTranscriptionCommand = async (input, context) => {
|
|
91
91
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
92
92
|
const headers = map({}, isSerializableHeaderValue, {
|
|
93
93
|
"x-amzn-transcribe-language-code": input.LanguageCode,
|
|
@@ -133,7 +133,7 @@ const serializeAws_restJson1StartStreamTranscriptionCommand = async (input, cont
|
|
|
133
133
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/stream-transcription";
|
|
134
134
|
let body;
|
|
135
135
|
if (input.AudioStream !== undefined) {
|
|
136
|
-
body =
|
|
136
|
+
body = se_AudioStream(input.AudioStream, context);
|
|
137
137
|
}
|
|
138
138
|
return new protocol_http_1.HttpRequest({
|
|
139
139
|
protocol,
|
|
@@ -145,10 +145,10 @@ const serializeAws_restJson1StartStreamTranscriptionCommand = async (input, cont
|
|
|
145
145
|
body,
|
|
146
146
|
});
|
|
147
147
|
};
|
|
148
|
-
exports.
|
|
149
|
-
const
|
|
148
|
+
exports.se_StartStreamTranscriptionCommand = se_StartStreamTranscriptionCommand;
|
|
149
|
+
const de_StartCallAnalyticsStreamTranscriptionCommand = async (output, context) => {
|
|
150
150
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
151
|
-
return
|
|
151
|
+
return de_StartCallAnalyticsStreamTranscriptionCommandError(output, context);
|
|
152
152
|
}
|
|
153
153
|
const contents = map({
|
|
154
154
|
$metadata: deserializeMetadata(output),
|
|
@@ -174,11 +174,11 @@ const deserializeAws_restJson1StartCallAnalyticsStreamTranscriptionCommand = asy
|
|
|
174
174
|
PiiEntityTypes: [, output.headers["x-amzn-transcribe-pii-entity-types"]],
|
|
175
175
|
});
|
|
176
176
|
const data = output.body;
|
|
177
|
-
contents.CallAnalyticsTranscriptResultStream =
|
|
177
|
+
contents.CallAnalyticsTranscriptResultStream = de_CallAnalyticsTranscriptResultStream(data, context);
|
|
178
178
|
return contents;
|
|
179
179
|
};
|
|
180
|
-
exports.
|
|
181
|
-
const
|
|
180
|
+
exports.de_StartCallAnalyticsStreamTranscriptionCommand = de_StartCallAnalyticsStreamTranscriptionCommand;
|
|
181
|
+
const de_StartCallAnalyticsStreamTranscriptionCommandError = async (output, context) => {
|
|
182
182
|
const parsedOutput = {
|
|
183
183
|
...output,
|
|
184
184
|
body: await parseErrorBody(output.body, context),
|
|
@@ -187,19 +187,19 @@ const deserializeAws_restJson1StartCallAnalyticsStreamTranscriptionCommandError
|
|
|
187
187
|
switch (errorCode) {
|
|
188
188
|
case "BadRequestException":
|
|
189
189
|
case "com.amazonaws.transcribestreaming#BadRequestException":
|
|
190
|
-
throw await
|
|
190
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
191
191
|
case "ConflictException":
|
|
192
192
|
case "com.amazonaws.transcribestreaming#ConflictException":
|
|
193
|
-
throw await
|
|
193
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
194
194
|
case "InternalFailureException":
|
|
195
195
|
case "com.amazonaws.transcribestreaming#InternalFailureException":
|
|
196
|
-
throw await
|
|
196
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
197
197
|
case "LimitExceededException":
|
|
198
198
|
case "com.amazonaws.transcribestreaming#LimitExceededException":
|
|
199
|
-
throw await
|
|
199
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
200
200
|
case "ServiceUnavailableException":
|
|
201
201
|
case "com.amazonaws.transcribestreaming#ServiceUnavailableException":
|
|
202
|
-
throw await
|
|
202
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
203
203
|
default:
|
|
204
204
|
const parsedBody = parsedOutput.body;
|
|
205
205
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -210,9 +210,9 @@ const deserializeAws_restJson1StartCallAnalyticsStreamTranscriptionCommandError
|
|
|
210
210
|
});
|
|
211
211
|
}
|
|
212
212
|
};
|
|
213
|
-
const
|
|
213
|
+
const de_StartMedicalStreamTranscriptionCommand = async (output, context) => {
|
|
214
214
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
215
|
-
return
|
|
215
|
+
return de_StartMedicalStreamTranscriptionCommandError(output, context);
|
|
216
216
|
}
|
|
217
217
|
const contents = map({
|
|
218
218
|
$metadata: deserializeMetadata(output),
|
|
@@ -242,11 +242,11 @@ const deserializeAws_restJson1StartMedicalStreamTranscriptionCommand = async (ou
|
|
|
242
242
|
ContentIdentificationType: [, output.headers["x-amzn-transcribe-content-identification-type"]],
|
|
243
243
|
});
|
|
244
244
|
const data = output.body;
|
|
245
|
-
contents.TranscriptResultStream =
|
|
245
|
+
contents.TranscriptResultStream = de_MedicalTranscriptResultStream(data, context);
|
|
246
246
|
return contents;
|
|
247
247
|
};
|
|
248
|
-
exports.
|
|
249
|
-
const
|
|
248
|
+
exports.de_StartMedicalStreamTranscriptionCommand = de_StartMedicalStreamTranscriptionCommand;
|
|
249
|
+
const de_StartMedicalStreamTranscriptionCommandError = async (output, context) => {
|
|
250
250
|
const parsedOutput = {
|
|
251
251
|
...output,
|
|
252
252
|
body: await parseErrorBody(output.body, context),
|
|
@@ -255,19 +255,19 @@ const deserializeAws_restJson1StartMedicalStreamTranscriptionCommandError = asyn
|
|
|
255
255
|
switch (errorCode) {
|
|
256
256
|
case "BadRequestException":
|
|
257
257
|
case "com.amazonaws.transcribestreaming#BadRequestException":
|
|
258
|
-
throw await
|
|
258
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
259
259
|
case "ConflictException":
|
|
260
260
|
case "com.amazonaws.transcribestreaming#ConflictException":
|
|
261
|
-
throw await
|
|
261
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
262
262
|
case "InternalFailureException":
|
|
263
263
|
case "com.amazonaws.transcribestreaming#InternalFailureException":
|
|
264
|
-
throw await
|
|
264
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
265
265
|
case "LimitExceededException":
|
|
266
266
|
case "com.amazonaws.transcribestreaming#LimitExceededException":
|
|
267
|
-
throw await
|
|
267
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
268
268
|
case "ServiceUnavailableException":
|
|
269
269
|
case "com.amazonaws.transcribestreaming#ServiceUnavailableException":
|
|
270
|
-
throw await
|
|
270
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
271
271
|
default:
|
|
272
272
|
const parsedBody = parsedOutput.body;
|
|
273
273
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -278,9 +278,9 @@ const deserializeAws_restJson1StartMedicalStreamTranscriptionCommandError = asyn
|
|
|
278
278
|
});
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
|
-
const
|
|
281
|
+
const de_StartStreamTranscriptionCommand = async (output, context) => {
|
|
282
282
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
283
|
-
return
|
|
283
|
+
return de_StartStreamTranscriptionCommandError(output, context);
|
|
284
284
|
}
|
|
285
285
|
const contents = map({
|
|
286
286
|
$metadata: deserializeMetadata(output),
|
|
@@ -326,11 +326,11 @@ const deserializeAws_restJson1StartStreamTranscriptionCommand = async (output, c
|
|
|
326
326
|
VocabularyFilterNames: [, output.headers["x-amzn-transcribe-vocabulary-filter-names"]],
|
|
327
327
|
});
|
|
328
328
|
const data = output.body;
|
|
329
|
-
contents.TranscriptResultStream =
|
|
329
|
+
contents.TranscriptResultStream = de_TranscriptResultStream(data, context);
|
|
330
330
|
return contents;
|
|
331
331
|
};
|
|
332
|
-
exports.
|
|
333
|
-
const
|
|
332
|
+
exports.de_StartStreamTranscriptionCommand = de_StartStreamTranscriptionCommand;
|
|
333
|
+
const de_StartStreamTranscriptionCommandError = async (output, context) => {
|
|
334
334
|
const parsedOutput = {
|
|
335
335
|
...output,
|
|
336
336
|
body: await parseErrorBody(output.body, context),
|
|
@@ -339,19 +339,19 @@ const deserializeAws_restJson1StartStreamTranscriptionCommandError = async (outp
|
|
|
339
339
|
switch (errorCode) {
|
|
340
340
|
case "BadRequestException":
|
|
341
341
|
case "com.amazonaws.transcribestreaming#BadRequestException":
|
|
342
|
-
throw await
|
|
342
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
343
343
|
case "ConflictException":
|
|
344
344
|
case "com.amazonaws.transcribestreaming#ConflictException":
|
|
345
|
-
throw await
|
|
345
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
346
346
|
case "InternalFailureException":
|
|
347
347
|
case "com.amazonaws.transcribestreaming#InternalFailureException":
|
|
348
|
-
throw await
|
|
348
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
349
349
|
case "LimitExceededException":
|
|
350
350
|
case "com.amazonaws.transcribestreaming#LimitExceededException":
|
|
351
|
-
throw await
|
|
351
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
352
352
|
case "ServiceUnavailableException":
|
|
353
353
|
case "com.amazonaws.transcribestreaming#ServiceUnavailableException":
|
|
354
|
-
throw await
|
|
354
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
355
355
|
default:
|
|
356
356
|
const parsedBody = parsedOutput.body;
|
|
357
357
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -363,7 +363,7 @@ const deserializeAws_restJson1StartStreamTranscriptionCommandError = async (outp
|
|
|
363
363
|
}
|
|
364
364
|
};
|
|
365
365
|
const map = smithy_client_1.map;
|
|
366
|
-
const
|
|
366
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
367
367
|
const contents = map({});
|
|
368
368
|
const data = parsedOutput.body;
|
|
369
369
|
if (data.Message != null) {
|
|
@@ -375,7 +375,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
375
375
|
});
|
|
376
376
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
377
377
|
};
|
|
378
|
-
const
|
|
378
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
379
379
|
const contents = map({});
|
|
380
380
|
const data = parsedOutput.body;
|
|
381
381
|
if (data.Message != null) {
|
|
@@ -387,7 +387,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
387
387
|
});
|
|
388
388
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
389
389
|
};
|
|
390
|
-
const
|
|
390
|
+
const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
391
391
|
const contents = map({});
|
|
392
392
|
const data = parsedOutput.body;
|
|
393
393
|
if (data.Message != null) {
|
|
@@ -399,7 +399,7 @@ const deserializeAws_restJson1InternalFailureExceptionResponse = async (parsedOu
|
|
|
399
399
|
});
|
|
400
400
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
401
401
|
};
|
|
402
|
-
const
|
|
402
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
403
403
|
const contents = map({});
|
|
404
404
|
const data = parsedOutput.body;
|
|
405
405
|
if (data.Message != null) {
|
|
@@ -411,7 +411,7 @@ const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutp
|
|
|
411
411
|
});
|
|
412
412
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
413
413
|
};
|
|
414
|
-
const
|
|
414
|
+
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
415
415
|
const contents = map({});
|
|
416
416
|
const data = parsedOutput.body;
|
|
417
417
|
if (data.Message != null) {
|
|
@@ -423,15 +423,15 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
|
|
|
423
423
|
});
|
|
424
424
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
425
425
|
};
|
|
426
|
-
const
|
|
426
|
+
const se_AudioStream = (input, context) => {
|
|
427
427
|
const eventMarshallingVisitor = (event) => models_0_1.AudioStream.visit(event, {
|
|
428
|
-
AudioEvent: (value) =>
|
|
429
|
-
ConfigurationEvent: (value) =>
|
|
428
|
+
AudioEvent: (value) => se_AudioEvent_event(value, context),
|
|
429
|
+
ConfigurationEvent: (value) => se_ConfigurationEvent_event(value, context),
|
|
430
430
|
_: (value) => value,
|
|
431
431
|
});
|
|
432
432
|
return context.eventStreamMarshaller.serialize(input, eventMarshallingVisitor);
|
|
433
433
|
};
|
|
434
|
-
const
|
|
434
|
+
const se_AudioEvent_event = (input, context) => {
|
|
435
435
|
const headers = {
|
|
436
436
|
":event-type": { type: "string", value: "AudioEvent" },
|
|
437
437
|
":message-type": { type: "string", value: "event" },
|
|
@@ -443,210 +443,210 @@ const serializeAws_restJson1AudioEvent_event = (input, context) => {
|
|
|
443
443
|
}
|
|
444
444
|
return { headers, body };
|
|
445
445
|
};
|
|
446
|
-
const
|
|
446
|
+
const se_ConfigurationEvent_event = (input, context) => {
|
|
447
447
|
const headers = {
|
|
448
448
|
":event-type": { type: "string", value: "ConfigurationEvent" },
|
|
449
449
|
":message-type": { type: "string", value: "event" },
|
|
450
450
|
":content-type": { type: "string", value: "application/json" },
|
|
451
451
|
};
|
|
452
452
|
let body = new Uint8Array();
|
|
453
|
-
body =
|
|
453
|
+
body = se_ConfigurationEvent(input, context);
|
|
454
454
|
body = context.utf8Decoder(JSON.stringify(body));
|
|
455
455
|
return { headers, body };
|
|
456
456
|
};
|
|
457
|
-
const
|
|
457
|
+
const de_CallAnalyticsTranscriptResultStream = (output, context) => {
|
|
458
458
|
return context.eventStreamMarshaller.deserialize(output, async (event) => {
|
|
459
459
|
if (event["UtteranceEvent"] != null) {
|
|
460
460
|
return {
|
|
461
|
-
UtteranceEvent: await
|
|
461
|
+
UtteranceEvent: await de_UtteranceEvent_event(event["UtteranceEvent"], context),
|
|
462
462
|
};
|
|
463
463
|
}
|
|
464
464
|
if (event["CategoryEvent"] != null) {
|
|
465
465
|
return {
|
|
466
|
-
CategoryEvent: await
|
|
466
|
+
CategoryEvent: await de_CategoryEvent_event(event["CategoryEvent"], context),
|
|
467
467
|
};
|
|
468
468
|
}
|
|
469
469
|
if (event["BadRequestException"] != null) {
|
|
470
470
|
return {
|
|
471
|
-
BadRequestException: await
|
|
471
|
+
BadRequestException: await de_BadRequestException_event(event["BadRequestException"], context),
|
|
472
472
|
};
|
|
473
473
|
}
|
|
474
474
|
if (event["LimitExceededException"] != null) {
|
|
475
475
|
return {
|
|
476
|
-
LimitExceededException: await
|
|
476
|
+
LimitExceededException: await de_LimitExceededException_event(event["LimitExceededException"], context),
|
|
477
477
|
};
|
|
478
478
|
}
|
|
479
479
|
if (event["InternalFailureException"] != null) {
|
|
480
480
|
return {
|
|
481
|
-
InternalFailureException: await
|
|
481
|
+
InternalFailureException: await de_InternalFailureException_event(event["InternalFailureException"], context),
|
|
482
482
|
};
|
|
483
483
|
}
|
|
484
484
|
if (event["ConflictException"] != null) {
|
|
485
485
|
return {
|
|
486
|
-
ConflictException: await
|
|
486
|
+
ConflictException: await de_ConflictException_event(event["ConflictException"], context),
|
|
487
487
|
};
|
|
488
488
|
}
|
|
489
489
|
if (event["ServiceUnavailableException"] != null) {
|
|
490
490
|
return {
|
|
491
|
-
ServiceUnavailableException: await
|
|
491
|
+
ServiceUnavailableException: await de_ServiceUnavailableException_event(event["ServiceUnavailableException"], context),
|
|
492
492
|
};
|
|
493
493
|
}
|
|
494
494
|
return { $unknown: output };
|
|
495
495
|
});
|
|
496
496
|
};
|
|
497
|
-
const
|
|
497
|
+
const de_MedicalTranscriptResultStream = (output, context) => {
|
|
498
498
|
return context.eventStreamMarshaller.deserialize(output, async (event) => {
|
|
499
499
|
if (event["TranscriptEvent"] != null) {
|
|
500
500
|
return {
|
|
501
|
-
TranscriptEvent: await
|
|
501
|
+
TranscriptEvent: await de_MedicalTranscriptEvent_event(event["TranscriptEvent"], context),
|
|
502
502
|
};
|
|
503
503
|
}
|
|
504
504
|
if (event["BadRequestException"] != null) {
|
|
505
505
|
return {
|
|
506
|
-
BadRequestException: await
|
|
506
|
+
BadRequestException: await de_BadRequestException_event(event["BadRequestException"], context),
|
|
507
507
|
};
|
|
508
508
|
}
|
|
509
509
|
if (event["LimitExceededException"] != null) {
|
|
510
510
|
return {
|
|
511
|
-
LimitExceededException: await
|
|
511
|
+
LimitExceededException: await de_LimitExceededException_event(event["LimitExceededException"], context),
|
|
512
512
|
};
|
|
513
513
|
}
|
|
514
514
|
if (event["InternalFailureException"] != null) {
|
|
515
515
|
return {
|
|
516
|
-
InternalFailureException: await
|
|
516
|
+
InternalFailureException: await de_InternalFailureException_event(event["InternalFailureException"], context),
|
|
517
517
|
};
|
|
518
518
|
}
|
|
519
519
|
if (event["ConflictException"] != null) {
|
|
520
520
|
return {
|
|
521
|
-
ConflictException: await
|
|
521
|
+
ConflictException: await de_ConflictException_event(event["ConflictException"], context),
|
|
522
522
|
};
|
|
523
523
|
}
|
|
524
524
|
if (event["ServiceUnavailableException"] != null) {
|
|
525
525
|
return {
|
|
526
|
-
ServiceUnavailableException: await
|
|
526
|
+
ServiceUnavailableException: await de_ServiceUnavailableException_event(event["ServiceUnavailableException"], context),
|
|
527
527
|
};
|
|
528
528
|
}
|
|
529
529
|
return { $unknown: output };
|
|
530
530
|
});
|
|
531
531
|
};
|
|
532
|
-
const
|
|
532
|
+
const de_TranscriptResultStream = (output, context) => {
|
|
533
533
|
return context.eventStreamMarshaller.deserialize(output, async (event) => {
|
|
534
534
|
if (event["TranscriptEvent"] != null) {
|
|
535
535
|
return {
|
|
536
|
-
TranscriptEvent: await
|
|
536
|
+
TranscriptEvent: await de_TranscriptEvent_event(event["TranscriptEvent"], context),
|
|
537
537
|
};
|
|
538
538
|
}
|
|
539
539
|
if (event["BadRequestException"] != null) {
|
|
540
540
|
return {
|
|
541
|
-
BadRequestException: await
|
|
541
|
+
BadRequestException: await de_BadRequestException_event(event["BadRequestException"], context),
|
|
542
542
|
};
|
|
543
543
|
}
|
|
544
544
|
if (event["LimitExceededException"] != null) {
|
|
545
545
|
return {
|
|
546
|
-
LimitExceededException: await
|
|
546
|
+
LimitExceededException: await de_LimitExceededException_event(event["LimitExceededException"], context),
|
|
547
547
|
};
|
|
548
548
|
}
|
|
549
549
|
if (event["InternalFailureException"] != null) {
|
|
550
550
|
return {
|
|
551
|
-
InternalFailureException: await
|
|
551
|
+
InternalFailureException: await de_InternalFailureException_event(event["InternalFailureException"], context),
|
|
552
552
|
};
|
|
553
553
|
}
|
|
554
554
|
if (event["ConflictException"] != null) {
|
|
555
555
|
return {
|
|
556
|
-
ConflictException: await
|
|
556
|
+
ConflictException: await de_ConflictException_event(event["ConflictException"], context),
|
|
557
557
|
};
|
|
558
558
|
}
|
|
559
559
|
if (event["ServiceUnavailableException"] != null) {
|
|
560
560
|
return {
|
|
561
|
-
ServiceUnavailableException: await
|
|
561
|
+
ServiceUnavailableException: await de_ServiceUnavailableException_event(event["ServiceUnavailableException"], context),
|
|
562
562
|
};
|
|
563
563
|
}
|
|
564
564
|
return { $unknown: output };
|
|
565
565
|
});
|
|
566
566
|
};
|
|
567
|
-
const
|
|
567
|
+
const de_BadRequestException_event = async (output, context) => {
|
|
568
568
|
const parsedOutput = {
|
|
569
569
|
...output,
|
|
570
570
|
body: await parseBody(output.body, context),
|
|
571
571
|
};
|
|
572
|
-
return
|
|
572
|
+
return de_BadRequestExceptionRes(parsedOutput, context);
|
|
573
573
|
};
|
|
574
|
-
const
|
|
574
|
+
const de_CategoryEvent_event = async (output, context) => {
|
|
575
575
|
const contents = {};
|
|
576
576
|
const data = await parseBody(output.body, context);
|
|
577
|
-
Object.assign(contents,
|
|
577
|
+
Object.assign(contents, de_CategoryEvent(data, context));
|
|
578
578
|
return contents;
|
|
579
579
|
};
|
|
580
|
-
const
|
|
580
|
+
const de_ConflictException_event = async (output, context) => {
|
|
581
581
|
const parsedOutput = {
|
|
582
582
|
...output,
|
|
583
583
|
body: await parseBody(output.body, context),
|
|
584
584
|
};
|
|
585
|
-
return
|
|
585
|
+
return de_ConflictExceptionRes(parsedOutput, context);
|
|
586
586
|
};
|
|
587
|
-
const
|
|
587
|
+
const de_InternalFailureException_event = async (output, context) => {
|
|
588
588
|
const parsedOutput = {
|
|
589
589
|
...output,
|
|
590
590
|
body: await parseBody(output.body, context),
|
|
591
591
|
};
|
|
592
|
-
return
|
|
592
|
+
return de_InternalFailureExceptionRes(parsedOutput, context);
|
|
593
593
|
};
|
|
594
|
-
const
|
|
594
|
+
const de_LimitExceededException_event = async (output, context) => {
|
|
595
595
|
const parsedOutput = {
|
|
596
596
|
...output,
|
|
597
597
|
body: await parseBody(output.body, context),
|
|
598
598
|
};
|
|
599
|
-
return
|
|
599
|
+
return de_LimitExceededExceptionRes(parsedOutput, context);
|
|
600
600
|
};
|
|
601
|
-
const
|
|
601
|
+
const de_MedicalTranscriptEvent_event = async (output, context) => {
|
|
602
602
|
const contents = {};
|
|
603
603
|
const data = await parseBody(output.body, context);
|
|
604
|
-
Object.assign(contents,
|
|
604
|
+
Object.assign(contents, de_MedicalTranscriptEvent(data, context));
|
|
605
605
|
return contents;
|
|
606
606
|
};
|
|
607
|
-
const
|
|
607
|
+
const de_ServiceUnavailableException_event = async (output, context) => {
|
|
608
608
|
const parsedOutput = {
|
|
609
609
|
...output,
|
|
610
610
|
body: await parseBody(output.body, context),
|
|
611
611
|
};
|
|
612
|
-
return
|
|
612
|
+
return de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
613
613
|
};
|
|
614
|
-
const
|
|
614
|
+
const de_TranscriptEvent_event = async (output, context) => {
|
|
615
615
|
const contents = {};
|
|
616
616
|
const data = await parseBody(output.body, context);
|
|
617
|
-
Object.assign(contents,
|
|
617
|
+
Object.assign(contents, de_TranscriptEvent(data, context));
|
|
618
618
|
return contents;
|
|
619
619
|
};
|
|
620
|
-
const
|
|
620
|
+
const de_UtteranceEvent_event = async (output, context) => {
|
|
621
621
|
const contents = {};
|
|
622
622
|
const data = await parseBody(output.body, context);
|
|
623
|
-
Object.assign(contents,
|
|
623
|
+
Object.assign(contents, de_UtteranceEvent(data, context));
|
|
624
624
|
return contents;
|
|
625
625
|
};
|
|
626
|
-
const
|
|
626
|
+
const se_ChannelDefinition = (input, context) => {
|
|
627
627
|
return {
|
|
628
628
|
...(input.ChannelId != null && { ChannelId: input.ChannelId }),
|
|
629
629
|
...(input.ParticipantRole != null && { ParticipantRole: input.ParticipantRole }),
|
|
630
630
|
};
|
|
631
631
|
};
|
|
632
|
-
const
|
|
632
|
+
const se_ChannelDefinitions = (input, context) => {
|
|
633
633
|
return input
|
|
634
634
|
.filter((e) => e != null)
|
|
635
635
|
.map((entry) => {
|
|
636
|
-
return
|
|
636
|
+
return se_ChannelDefinition(entry, context);
|
|
637
637
|
});
|
|
638
638
|
};
|
|
639
|
-
const
|
|
639
|
+
const se_ConfigurationEvent = (input, context) => {
|
|
640
640
|
return {
|
|
641
641
|
...(input.ChannelDefinitions != null && {
|
|
642
|
-
ChannelDefinitions:
|
|
642
|
+
ChannelDefinitions: se_ChannelDefinitions(input.ChannelDefinitions, context),
|
|
643
643
|
}),
|
|
644
644
|
...(input.PostCallAnalyticsSettings != null && {
|
|
645
|
-
PostCallAnalyticsSettings:
|
|
645
|
+
PostCallAnalyticsSettings: se_PostCallAnalyticsSettings(input.PostCallAnalyticsSettings, context),
|
|
646
646
|
}),
|
|
647
647
|
};
|
|
648
648
|
};
|
|
649
|
-
const
|
|
649
|
+
const se_PostCallAnalyticsSettings = (input, context) => {
|
|
650
650
|
return {
|
|
651
651
|
...(input.ContentRedactionOutput != null && { ContentRedactionOutput: input.ContentRedactionOutput }),
|
|
652
652
|
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
@@ -654,25 +654,25 @@ const serializeAws_restJson1PostCallAnalyticsSettings = (input, context) => {
|
|
|
654
654
|
...(input.OutputLocation != null && { OutputLocation: input.OutputLocation }),
|
|
655
655
|
};
|
|
656
656
|
};
|
|
657
|
-
const
|
|
657
|
+
const de_Alternative = (output, context) => {
|
|
658
658
|
return {
|
|
659
|
-
Entities: output.Entities != null ?
|
|
660
|
-
Items: output.Items != null ?
|
|
659
|
+
Entities: output.Entities != null ? de_EntityList(output.Entities, context) : undefined,
|
|
660
|
+
Items: output.Items != null ? de_ItemList(output.Items, context) : undefined,
|
|
661
661
|
Transcript: (0, smithy_client_1.expectString)(output.Transcript),
|
|
662
662
|
};
|
|
663
663
|
};
|
|
664
|
-
const
|
|
664
|
+
const de_AlternativeList = (output, context) => {
|
|
665
665
|
const retVal = (output || [])
|
|
666
666
|
.filter((e) => e != null)
|
|
667
667
|
.map((entry) => {
|
|
668
668
|
if (entry === null) {
|
|
669
669
|
return null;
|
|
670
670
|
}
|
|
671
|
-
return
|
|
671
|
+
return de_Alternative(entry, context);
|
|
672
672
|
});
|
|
673
673
|
return retVal;
|
|
674
674
|
};
|
|
675
|
-
const
|
|
675
|
+
const de_CallAnalyticsEntity = (output, context) => {
|
|
676
676
|
return {
|
|
677
677
|
BeginOffsetMillis: (0, smithy_client_1.expectLong)(output.BeginOffsetMillis),
|
|
678
678
|
Category: (0, smithy_client_1.expectString)(output.Category),
|
|
@@ -682,18 +682,18 @@ const deserializeAws_restJson1CallAnalyticsEntity = (output, context) => {
|
|
|
682
682
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
683
683
|
};
|
|
684
684
|
};
|
|
685
|
-
const
|
|
685
|
+
const de_CallAnalyticsEntityList = (output, context) => {
|
|
686
686
|
const retVal = (output || [])
|
|
687
687
|
.filter((e) => e != null)
|
|
688
688
|
.map((entry) => {
|
|
689
689
|
if (entry === null) {
|
|
690
690
|
return null;
|
|
691
691
|
}
|
|
692
|
-
return
|
|
692
|
+
return de_CallAnalyticsEntity(entry, context);
|
|
693
693
|
});
|
|
694
694
|
return retVal;
|
|
695
695
|
};
|
|
696
|
-
const
|
|
696
|
+
const de_CallAnalyticsItem = (output, context) => {
|
|
697
697
|
return {
|
|
698
698
|
BeginOffsetMillis: (0, smithy_client_1.expectLong)(output.BeginOffsetMillis),
|
|
699
699
|
Confidence: (0, smithy_client_1.limitedParseDouble)(output.Confidence),
|
|
@@ -704,34 +704,30 @@ const deserializeAws_restJson1CallAnalyticsItem = (output, context) => {
|
|
|
704
704
|
VocabularyFilterMatch: (0, smithy_client_1.expectBoolean)(output.VocabularyFilterMatch),
|
|
705
705
|
};
|
|
706
706
|
};
|
|
707
|
-
const
|
|
707
|
+
const de_CallAnalyticsItemList = (output, context) => {
|
|
708
708
|
const retVal = (output || [])
|
|
709
709
|
.filter((e) => e != null)
|
|
710
710
|
.map((entry) => {
|
|
711
711
|
if (entry === null) {
|
|
712
712
|
return null;
|
|
713
713
|
}
|
|
714
|
-
return
|
|
714
|
+
return de_CallAnalyticsItem(entry, context);
|
|
715
715
|
});
|
|
716
716
|
return retVal;
|
|
717
717
|
};
|
|
718
|
-
const
|
|
718
|
+
const de_CategoryEvent = (output, context) => {
|
|
719
719
|
return {
|
|
720
|
-
MatchedCategories: output.MatchedCategories != null
|
|
721
|
-
|
|
722
|
-
: undefined,
|
|
723
|
-
MatchedDetails: output.MatchedDetails != null
|
|
724
|
-
? deserializeAws_restJson1MatchedCategoryDetails(output.MatchedDetails, context)
|
|
725
|
-
: undefined,
|
|
720
|
+
MatchedCategories: output.MatchedCategories != null ? de_StringList(output.MatchedCategories, context) : undefined,
|
|
721
|
+
MatchedDetails: output.MatchedDetails != null ? de_MatchedCategoryDetails(output.MatchedDetails, context) : undefined,
|
|
726
722
|
};
|
|
727
723
|
};
|
|
728
|
-
const
|
|
724
|
+
const de_CharacterOffsets = (output, context) => {
|
|
729
725
|
return {
|
|
730
726
|
Begin: (0, smithy_client_1.expectInt32)(output.Begin),
|
|
731
727
|
End: (0, smithy_client_1.expectInt32)(output.End),
|
|
732
728
|
};
|
|
733
729
|
};
|
|
734
|
-
const
|
|
730
|
+
const de_Entity = (output, context) => {
|
|
735
731
|
return {
|
|
736
732
|
Category: (0, smithy_client_1.expectString)(output.Category),
|
|
737
733
|
Confidence: (0, smithy_client_1.limitedParseDouble)(output.Confidence),
|
|
@@ -741,36 +737,34 @@ const deserializeAws_restJson1Entity = (output, context) => {
|
|
|
741
737
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
742
738
|
};
|
|
743
739
|
};
|
|
744
|
-
const
|
|
740
|
+
const de_EntityList = (output, context) => {
|
|
745
741
|
const retVal = (output || [])
|
|
746
742
|
.filter((e) => e != null)
|
|
747
743
|
.map((entry) => {
|
|
748
744
|
if (entry === null) {
|
|
749
745
|
return null;
|
|
750
746
|
}
|
|
751
|
-
return
|
|
747
|
+
return de_Entity(entry, context);
|
|
752
748
|
});
|
|
753
749
|
return retVal;
|
|
754
750
|
};
|
|
755
|
-
const
|
|
751
|
+
const de_IssueDetected = (output, context) => {
|
|
756
752
|
return {
|
|
757
|
-
CharacterOffsets: output.CharacterOffsets != null
|
|
758
|
-
? deserializeAws_restJson1CharacterOffsets(output.CharacterOffsets, context)
|
|
759
|
-
: undefined,
|
|
753
|
+
CharacterOffsets: output.CharacterOffsets != null ? de_CharacterOffsets(output.CharacterOffsets, context) : undefined,
|
|
760
754
|
};
|
|
761
755
|
};
|
|
762
|
-
const
|
|
756
|
+
const de_IssuesDetected = (output, context) => {
|
|
763
757
|
const retVal = (output || [])
|
|
764
758
|
.filter((e) => e != null)
|
|
765
759
|
.map((entry) => {
|
|
766
760
|
if (entry === null) {
|
|
767
761
|
return null;
|
|
768
762
|
}
|
|
769
|
-
return
|
|
763
|
+
return de_IssueDetected(entry, context);
|
|
770
764
|
});
|
|
771
765
|
return retVal;
|
|
772
766
|
};
|
|
773
|
-
const
|
|
767
|
+
const de_Item = (output, context) => {
|
|
774
768
|
return {
|
|
775
769
|
Confidence: (0, smithy_client_1.limitedParseDouble)(output.Confidence),
|
|
776
770
|
Content: (0, smithy_client_1.expectString)(output.Content),
|
|
@@ -782,62 +776,62 @@ const deserializeAws_restJson1Item = (output, context) => {
|
|
|
782
776
|
VocabularyFilterMatch: (0, smithy_client_1.expectBoolean)(output.VocabularyFilterMatch),
|
|
783
777
|
};
|
|
784
778
|
};
|
|
785
|
-
const
|
|
779
|
+
const de_ItemList = (output, context) => {
|
|
786
780
|
const retVal = (output || [])
|
|
787
781
|
.filter((e) => e != null)
|
|
788
782
|
.map((entry) => {
|
|
789
783
|
if (entry === null) {
|
|
790
784
|
return null;
|
|
791
785
|
}
|
|
792
|
-
return
|
|
786
|
+
return de_Item(entry, context);
|
|
793
787
|
});
|
|
794
788
|
return retVal;
|
|
795
789
|
};
|
|
796
|
-
const
|
|
790
|
+
const de_LanguageIdentification = (output, context) => {
|
|
797
791
|
const retVal = (output || [])
|
|
798
792
|
.filter((e) => e != null)
|
|
799
793
|
.map((entry) => {
|
|
800
794
|
if (entry === null) {
|
|
801
795
|
return null;
|
|
802
796
|
}
|
|
803
|
-
return
|
|
797
|
+
return de_LanguageWithScore(entry, context);
|
|
804
798
|
});
|
|
805
799
|
return retVal;
|
|
806
800
|
};
|
|
807
|
-
const
|
|
801
|
+
const de_LanguageWithScore = (output, context) => {
|
|
808
802
|
return {
|
|
809
803
|
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
810
804
|
Score: (0, smithy_client_1.limitedParseDouble)(output.Score),
|
|
811
805
|
};
|
|
812
806
|
};
|
|
813
|
-
const
|
|
807
|
+
const de_MatchedCategoryDetails = (output, context) => {
|
|
814
808
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
815
809
|
if (value === null) {
|
|
816
810
|
return acc;
|
|
817
811
|
}
|
|
818
|
-
acc[key] =
|
|
812
|
+
acc[key] = de_PointsOfInterest(value, context);
|
|
819
813
|
return acc;
|
|
820
814
|
}, {});
|
|
821
815
|
};
|
|
822
|
-
const
|
|
816
|
+
const de_MedicalAlternative = (output, context) => {
|
|
823
817
|
return {
|
|
824
|
-
Entities: output.Entities != null ?
|
|
825
|
-
Items: output.Items != null ?
|
|
818
|
+
Entities: output.Entities != null ? de_MedicalEntityList(output.Entities, context) : undefined,
|
|
819
|
+
Items: output.Items != null ? de_MedicalItemList(output.Items, context) : undefined,
|
|
826
820
|
Transcript: (0, smithy_client_1.expectString)(output.Transcript),
|
|
827
821
|
};
|
|
828
822
|
};
|
|
829
|
-
const
|
|
823
|
+
const de_MedicalAlternativeList = (output, context) => {
|
|
830
824
|
const retVal = (output || [])
|
|
831
825
|
.filter((e) => e != null)
|
|
832
826
|
.map((entry) => {
|
|
833
827
|
if (entry === null) {
|
|
834
828
|
return null;
|
|
835
829
|
}
|
|
836
|
-
return
|
|
830
|
+
return de_MedicalAlternative(entry, context);
|
|
837
831
|
});
|
|
838
832
|
return retVal;
|
|
839
833
|
};
|
|
840
|
-
const
|
|
834
|
+
const de_MedicalEntity = (output, context) => {
|
|
841
835
|
return {
|
|
842
836
|
Category: (0, smithy_client_1.expectString)(output.Category),
|
|
843
837
|
Confidence: (0, smithy_client_1.limitedParseDouble)(output.Confidence),
|
|
@@ -846,18 +840,18 @@ const deserializeAws_restJson1MedicalEntity = (output, context) => {
|
|
|
846
840
|
StartTime: (0, smithy_client_1.limitedParseDouble)(output.StartTime),
|
|
847
841
|
};
|
|
848
842
|
};
|
|
849
|
-
const
|
|
843
|
+
const de_MedicalEntityList = (output, context) => {
|
|
850
844
|
const retVal = (output || [])
|
|
851
845
|
.filter((e) => e != null)
|
|
852
846
|
.map((entry) => {
|
|
853
847
|
if (entry === null) {
|
|
854
848
|
return null;
|
|
855
849
|
}
|
|
856
|
-
return
|
|
850
|
+
return de_MedicalEntity(entry, context);
|
|
857
851
|
});
|
|
858
852
|
return retVal;
|
|
859
853
|
};
|
|
860
|
-
const
|
|
854
|
+
const de_MedicalItem = (output, context) => {
|
|
861
855
|
return {
|
|
862
856
|
Confidence: (0, smithy_client_1.limitedParseDouble)(output.Confidence),
|
|
863
857
|
Content: (0, smithy_client_1.expectString)(output.Content),
|
|
@@ -867,22 +861,20 @@ const deserializeAws_restJson1MedicalItem = (output, context) => {
|
|
|
867
861
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
868
862
|
};
|
|
869
863
|
};
|
|
870
|
-
const
|
|
864
|
+
const de_MedicalItemList = (output, context) => {
|
|
871
865
|
const retVal = (output || [])
|
|
872
866
|
.filter((e) => e != null)
|
|
873
867
|
.map((entry) => {
|
|
874
868
|
if (entry === null) {
|
|
875
869
|
return null;
|
|
876
870
|
}
|
|
877
|
-
return
|
|
871
|
+
return de_MedicalItem(entry, context);
|
|
878
872
|
});
|
|
879
873
|
return retVal;
|
|
880
874
|
};
|
|
881
|
-
const
|
|
875
|
+
const de_MedicalResult = (output, context) => {
|
|
882
876
|
return {
|
|
883
|
-
Alternatives: output.Alternatives != null
|
|
884
|
-
? deserializeAws_restJson1MedicalAlternativeList(output.Alternatives, context)
|
|
885
|
-
: undefined,
|
|
877
|
+
Alternatives: output.Alternatives != null ? de_MedicalAlternativeList(output.Alternatives, context) : undefined,
|
|
886
878
|
ChannelId: (0, smithy_client_1.expectString)(output.ChannelId),
|
|
887
879
|
EndTime: (0, smithy_client_1.limitedParseDouble)(output.EndTime),
|
|
888
880
|
IsPartial: (0, smithy_client_1.expectBoolean)(output.IsPartial),
|
|
@@ -890,60 +882,58 @@ const deserializeAws_restJson1MedicalResult = (output, context) => {
|
|
|
890
882
|
StartTime: (0, smithy_client_1.limitedParseDouble)(output.StartTime),
|
|
891
883
|
};
|
|
892
884
|
};
|
|
893
|
-
const
|
|
885
|
+
const de_MedicalResultList = (output, context) => {
|
|
894
886
|
const retVal = (output || [])
|
|
895
887
|
.filter((e) => e != null)
|
|
896
888
|
.map((entry) => {
|
|
897
889
|
if (entry === null) {
|
|
898
890
|
return null;
|
|
899
891
|
}
|
|
900
|
-
return
|
|
892
|
+
return de_MedicalResult(entry, context);
|
|
901
893
|
});
|
|
902
894
|
return retVal;
|
|
903
895
|
};
|
|
904
|
-
const
|
|
896
|
+
const de_MedicalTranscript = (output, context) => {
|
|
905
897
|
return {
|
|
906
|
-
Results: output.Results != null ?
|
|
898
|
+
Results: output.Results != null ? de_MedicalResultList(output.Results, context) : undefined,
|
|
907
899
|
};
|
|
908
900
|
};
|
|
909
|
-
const
|
|
901
|
+
const de_MedicalTranscriptEvent = (output, context) => {
|
|
910
902
|
return {
|
|
911
|
-
Transcript: output.Transcript != null ?
|
|
903
|
+
Transcript: output.Transcript != null ? de_MedicalTranscript(output.Transcript, context) : undefined,
|
|
912
904
|
};
|
|
913
905
|
};
|
|
914
|
-
const
|
|
906
|
+
const de_PointsOfInterest = (output, context) => {
|
|
915
907
|
return {
|
|
916
|
-
TimestampRanges: output.TimestampRanges != null
|
|
917
|
-
? deserializeAws_restJson1TimestampRanges(output.TimestampRanges, context)
|
|
918
|
-
: undefined,
|
|
908
|
+
TimestampRanges: output.TimestampRanges != null ? de_TimestampRanges(output.TimestampRanges, context) : undefined,
|
|
919
909
|
};
|
|
920
910
|
};
|
|
921
|
-
const
|
|
911
|
+
const de_Result = (output, context) => {
|
|
922
912
|
return {
|
|
923
|
-
Alternatives: output.Alternatives != null ?
|
|
913
|
+
Alternatives: output.Alternatives != null ? de_AlternativeList(output.Alternatives, context) : undefined,
|
|
924
914
|
ChannelId: (0, smithy_client_1.expectString)(output.ChannelId),
|
|
925
915
|
EndTime: (0, smithy_client_1.limitedParseDouble)(output.EndTime),
|
|
926
916
|
IsPartial: (0, smithy_client_1.expectBoolean)(output.IsPartial),
|
|
927
917
|
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
928
918
|
LanguageIdentification: output.LanguageIdentification != null
|
|
929
|
-
?
|
|
919
|
+
? de_LanguageIdentification(output.LanguageIdentification, context)
|
|
930
920
|
: undefined,
|
|
931
921
|
ResultId: (0, smithy_client_1.expectString)(output.ResultId),
|
|
932
922
|
StartTime: (0, smithy_client_1.limitedParseDouble)(output.StartTime),
|
|
933
923
|
};
|
|
934
924
|
};
|
|
935
|
-
const
|
|
925
|
+
const de_ResultList = (output, context) => {
|
|
936
926
|
const retVal = (output || [])
|
|
937
927
|
.filter((e) => e != null)
|
|
938
928
|
.map((entry) => {
|
|
939
929
|
if (entry === null) {
|
|
940
930
|
return null;
|
|
941
931
|
}
|
|
942
|
-
return
|
|
932
|
+
return de_Result(entry, context);
|
|
943
933
|
});
|
|
944
934
|
return retVal;
|
|
945
935
|
};
|
|
946
|
-
const
|
|
936
|
+
const de_StringList = (output, context) => {
|
|
947
937
|
const retVal = (output || [])
|
|
948
938
|
.filter((e) => e != null)
|
|
949
939
|
.map((entry) => {
|
|
@@ -954,43 +944,41 @@ const deserializeAws_restJson1StringList = (output, context) => {
|
|
|
954
944
|
});
|
|
955
945
|
return retVal;
|
|
956
946
|
};
|
|
957
|
-
const
|
|
947
|
+
const de_TimestampRange = (output, context) => {
|
|
958
948
|
return {
|
|
959
949
|
BeginOffsetMillis: (0, smithy_client_1.expectLong)(output.BeginOffsetMillis),
|
|
960
950
|
EndOffsetMillis: (0, smithy_client_1.expectLong)(output.EndOffsetMillis),
|
|
961
951
|
};
|
|
962
952
|
};
|
|
963
|
-
const
|
|
953
|
+
const de_TimestampRanges = (output, context) => {
|
|
964
954
|
const retVal = (output || [])
|
|
965
955
|
.filter((e) => e != null)
|
|
966
956
|
.map((entry) => {
|
|
967
957
|
if (entry === null) {
|
|
968
958
|
return null;
|
|
969
959
|
}
|
|
970
|
-
return
|
|
960
|
+
return de_TimestampRange(entry, context);
|
|
971
961
|
});
|
|
972
962
|
return retVal;
|
|
973
963
|
};
|
|
974
|
-
const
|
|
964
|
+
const de_Transcript = (output, context) => {
|
|
975
965
|
return {
|
|
976
|
-
Results: output.Results != null ?
|
|
966
|
+
Results: output.Results != null ? de_ResultList(output.Results, context) : undefined,
|
|
977
967
|
};
|
|
978
968
|
};
|
|
979
|
-
const
|
|
969
|
+
const de_TranscriptEvent = (output, context) => {
|
|
980
970
|
return {
|
|
981
|
-
Transcript: output.Transcript != null ?
|
|
971
|
+
Transcript: output.Transcript != null ? de_Transcript(output.Transcript, context) : undefined,
|
|
982
972
|
};
|
|
983
973
|
};
|
|
984
|
-
const
|
|
974
|
+
const de_UtteranceEvent = (output, context) => {
|
|
985
975
|
return {
|
|
986
976
|
BeginOffsetMillis: (0, smithy_client_1.expectLong)(output.BeginOffsetMillis),
|
|
987
977
|
EndOffsetMillis: (0, smithy_client_1.expectLong)(output.EndOffsetMillis),
|
|
988
|
-
Entities: output.Entities != null ?
|
|
978
|
+
Entities: output.Entities != null ? de_CallAnalyticsEntityList(output.Entities, context) : undefined,
|
|
989
979
|
IsPartial: (0, smithy_client_1.expectBoolean)(output.IsPartial),
|
|
990
|
-
IssuesDetected: output.IssuesDetected != null
|
|
991
|
-
|
|
992
|
-
: undefined,
|
|
993
|
-
Items: output.Items != null ? deserializeAws_restJson1CallAnalyticsItemList(output.Items, context) : undefined,
|
|
980
|
+
IssuesDetected: output.IssuesDetected != null ? de_IssuesDetected(output.IssuesDetected, context) : undefined,
|
|
981
|
+
Items: output.Items != null ? de_CallAnalyticsItemList(output.Items, context) : undefined,
|
|
994
982
|
ParticipantRole: (0, smithy_client_1.expectString)(output.ParticipantRole),
|
|
995
983
|
Sentiment: (0, smithy_client_1.expectString)(output.Sentiment),
|
|
996
984
|
Transcript: (0, smithy_client_1.expectString)(output.Transcript),
|