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