@aws-sdk/client-textract 3.312.0 → 3.315.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/protocols/Aws_json1_1.js +247 -822
- package/dist-es/protocols/Aws_json1_1.js +248 -823
- package/package.json +6 -6
|
@@ -36,63 +36,63 @@ exports.se_DetectDocumentTextCommand = se_DetectDocumentTextCommand;
|
|
|
36
36
|
const se_GetDocumentAnalysisCommand = async (input, context) => {
|
|
37
37
|
const headers = sharedHeaders("GetDocumentAnalysis");
|
|
38
38
|
let body;
|
|
39
|
-
body = JSON.stringify(
|
|
39
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
40
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
41
|
};
|
|
42
42
|
exports.se_GetDocumentAnalysisCommand = se_GetDocumentAnalysisCommand;
|
|
43
43
|
const se_GetDocumentTextDetectionCommand = async (input, context) => {
|
|
44
44
|
const headers = sharedHeaders("GetDocumentTextDetection");
|
|
45
45
|
let body;
|
|
46
|
-
body = JSON.stringify(
|
|
46
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
47
47
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
48
|
};
|
|
49
49
|
exports.se_GetDocumentTextDetectionCommand = se_GetDocumentTextDetectionCommand;
|
|
50
50
|
const se_GetExpenseAnalysisCommand = async (input, context) => {
|
|
51
51
|
const headers = sharedHeaders("GetExpenseAnalysis");
|
|
52
52
|
let body;
|
|
53
|
-
body = JSON.stringify(
|
|
53
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
54
54
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
55
55
|
};
|
|
56
56
|
exports.se_GetExpenseAnalysisCommand = se_GetExpenseAnalysisCommand;
|
|
57
57
|
const se_GetLendingAnalysisCommand = async (input, context) => {
|
|
58
58
|
const headers = sharedHeaders("GetLendingAnalysis");
|
|
59
59
|
let body;
|
|
60
|
-
body = JSON.stringify(
|
|
60
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
61
61
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
62
62
|
};
|
|
63
63
|
exports.se_GetLendingAnalysisCommand = se_GetLendingAnalysisCommand;
|
|
64
64
|
const se_GetLendingAnalysisSummaryCommand = async (input, context) => {
|
|
65
65
|
const headers = sharedHeaders("GetLendingAnalysisSummary");
|
|
66
66
|
let body;
|
|
67
|
-
body = JSON.stringify(
|
|
67
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
68
68
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
69
69
|
};
|
|
70
70
|
exports.se_GetLendingAnalysisSummaryCommand = se_GetLendingAnalysisSummaryCommand;
|
|
71
71
|
const se_StartDocumentAnalysisCommand = async (input, context) => {
|
|
72
72
|
const headers = sharedHeaders("StartDocumentAnalysis");
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
77
|
exports.se_StartDocumentAnalysisCommand = se_StartDocumentAnalysisCommand;
|
|
78
78
|
const se_StartDocumentTextDetectionCommand = async (input, context) => {
|
|
79
79
|
const headers = sharedHeaders("StartDocumentTextDetection");
|
|
80
80
|
let body;
|
|
81
|
-
body = JSON.stringify(
|
|
81
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
82
82
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
83
|
};
|
|
84
84
|
exports.se_StartDocumentTextDetectionCommand = se_StartDocumentTextDetectionCommand;
|
|
85
85
|
const se_StartExpenseAnalysisCommand = async (input, context) => {
|
|
86
86
|
const headers = sharedHeaders("StartExpenseAnalysis");
|
|
87
87
|
let body;
|
|
88
|
-
body = JSON.stringify(
|
|
88
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
89
89
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
90
90
|
};
|
|
91
91
|
exports.se_StartExpenseAnalysisCommand = se_StartExpenseAnalysisCommand;
|
|
92
92
|
const se_StartLendingAnalysisCommand = async (input, context) => {
|
|
93
93
|
const headers = sharedHeaders("StartLendingAnalysis");
|
|
94
94
|
let body;
|
|
95
|
-
body = JSON.stringify(
|
|
95
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
96
96
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
97
|
};
|
|
98
98
|
exports.se_StartLendingAnalysisCommand = se_StartLendingAnalysisCommand;
|
|
@@ -107,7 +107,7 @@ const de_AnalyzeDocumentCommand = async (output, context) => {
|
|
|
107
107
|
$metadata: deserializeMetadata(output),
|
|
108
108
|
...contents,
|
|
109
109
|
};
|
|
110
|
-
return
|
|
110
|
+
return response;
|
|
111
111
|
};
|
|
112
112
|
exports.de_AnalyzeDocumentCommand = de_AnalyzeDocumentCommand;
|
|
113
113
|
const de_AnalyzeDocumentCommandError = async (output, context) => {
|
|
@@ -149,10 +149,9 @@ const de_AnalyzeDocumentCommandError = async (output, context) => {
|
|
|
149
149
|
throw await de_UnsupportedDocumentExceptionRes(parsedOutput, context);
|
|
150
150
|
default:
|
|
151
151
|
const parsedBody = parsedOutput.body;
|
|
152
|
-
|
|
152
|
+
return throwDefaultError({
|
|
153
153
|
output,
|
|
154
154
|
parsedBody,
|
|
155
|
-
exceptionCtor: TextractServiceException_1.TextractServiceException,
|
|
156
155
|
errorCode,
|
|
157
156
|
});
|
|
158
157
|
}
|
|
@@ -168,7 +167,7 @@ const de_AnalyzeExpenseCommand = async (output, context) => {
|
|
|
168
167
|
$metadata: deserializeMetadata(output),
|
|
169
168
|
...contents,
|
|
170
169
|
};
|
|
171
|
-
return
|
|
170
|
+
return response;
|
|
172
171
|
};
|
|
173
172
|
exports.de_AnalyzeExpenseCommand = de_AnalyzeExpenseCommand;
|
|
174
173
|
const de_AnalyzeExpenseCommandError = async (output, context) => {
|
|
@@ -207,10 +206,9 @@ const de_AnalyzeExpenseCommandError = async (output, context) => {
|
|
|
207
206
|
throw await de_UnsupportedDocumentExceptionRes(parsedOutput, context);
|
|
208
207
|
default:
|
|
209
208
|
const parsedBody = parsedOutput.body;
|
|
210
|
-
|
|
209
|
+
return throwDefaultError({
|
|
211
210
|
output,
|
|
212
211
|
parsedBody,
|
|
213
|
-
exceptionCtor: TextractServiceException_1.TextractServiceException,
|
|
214
212
|
errorCode,
|
|
215
213
|
});
|
|
216
214
|
}
|
|
@@ -226,7 +224,7 @@ const de_AnalyzeIDCommand = async (output, context) => {
|
|
|
226
224
|
$metadata: deserializeMetadata(output),
|
|
227
225
|
...contents,
|
|
228
226
|
};
|
|
229
|
-
return
|
|
227
|
+
return response;
|
|
230
228
|
};
|
|
231
229
|
exports.de_AnalyzeIDCommand = de_AnalyzeIDCommand;
|
|
232
230
|
const de_AnalyzeIDCommandError = async (output, context) => {
|
|
@@ -265,10 +263,9 @@ const de_AnalyzeIDCommandError = async (output, context) => {
|
|
|
265
263
|
throw await de_UnsupportedDocumentExceptionRes(parsedOutput, context);
|
|
266
264
|
default:
|
|
267
265
|
const parsedBody = parsedOutput.body;
|
|
268
|
-
|
|
266
|
+
return throwDefaultError({
|
|
269
267
|
output,
|
|
270
268
|
parsedBody,
|
|
271
|
-
exceptionCtor: TextractServiceException_1.TextractServiceException,
|
|
272
269
|
errorCode,
|
|
273
270
|
});
|
|
274
271
|
}
|
|
@@ -284,7 +281,7 @@ const de_DetectDocumentTextCommand = async (output, context) => {
|
|
|
284
281
|
$metadata: deserializeMetadata(output),
|
|
285
282
|
...contents,
|
|
286
283
|
};
|
|
287
|
-
return
|
|
284
|
+
return response;
|
|
288
285
|
};
|
|
289
286
|
exports.de_DetectDocumentTextCommand = de_DetectDocumentTextCommand;
|
|
290
287
|
const de_DetectDocumentTextCommandError = async (output, context) => {
|
|
@@ -323,10 +320,9 @@ const de_DetectDocumentTextCommandError = async (output, context) => {
|
|
|
323
320
|
throw await de_UnsupportedDocumentExceptionRes(parsedOutput, context);
|
|
324
321
|
default:
|
|
325
322
|
const parsedBody = parsedOutput.body;
|
|
326
|
-
|
|
323
|
+
return throwDefaultError({
|
|
327
324
|
output,
|
|
328
325
|
parsedBody,
|
|
329
|
-
exceptionCtor: TextractServiceException_1.TextractServiceException,
|
|
330
326
|
errorCode,
|
|
331
327
|
});
|
|
332
328
|
}
|
|
@@ -342,7 +338,7 @@ const de_GetDocumentAnalysisCommand = async (output, context) => {
|
|
|
342
338
|
$metadata: deserializeMetadata(output),
|
|
343
339
|
...contents,
|
|
344
340
|
};
|
|
345
|
-
return
|
|
341
|
+
return response;
|
|
346
342
|
};
|
|
347
343
|
exports.de_GetDocumentAnalysisCommand = de_GetDocumentAnalysisCommand;
|
|
348
344
|
const de_GetDocumentAnalysisCommandError = async (output, context) => {
|
|
@@ -378,10 +374,9 @@ const de_GetDocumentAnalysisCommandError = async (output, context) => {
|
|
|
378
374
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
379
375
|
default:
|
|
380
376
|
const parsedBody = parsedOutput.body;
|
|
381
|
-
|
|
377
|
+
return throwDefaultError({
|
|
382
378
|
output,
|
|
383
379
|
parsedBody,
|
|
384
|
-
exceptionCtor: TextractServiceException_1.TextractServiceException,
|
|
385
380
|
errorCode,
|
|
386
381
|
});
|
|
387
382
|
}
|
|
@@ -397,7 +392,7 @@ const de_GetDocumentTextDetectionCommand = async (output, context) => {
|
|
|
397
392
|
$metadata: deserializeMetadata(output),
|
|
398
393
|
...contents,
|
|
399
394
|
};
|
|
400
|
-
return
|
|
395
|
+
return response;
|
|
401
396
|
};
|
|
402
397
|
exports.de_GetDocumentTextDetectionCommand = de_GetDocumentTextDetectionCommand;
|
|
403
398
|
const de_GetDocumentTextDetectionCommandError = async (output, context) => {
|
|
@@ -433,10 +428,9 @@ const de_GetDocumentTextDetectionCommandError = async (output, context) => {
|
|
|
433
428
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
434
429
|
default:
|
|
435
430
|
const parsedBody = parsedOutput.body;
|
|
436
|
-
|
|
431
|
+
return throwDefaultError({
|
|
437
432
|
output,
|
|
438
433
|
parsedBody,
|
|
439
|
-
exceptionCtor: TextractServiceException_1.TextractServiceException,
|
|
440
434
|
errorCode,
|
|
441
435
|
});
|
|
442
436
|
}
|
|
@@ -452,7 +446,7 @@ const de_GetExpenseAnalysisCommand = async (output, context) => {
|
|
|
452
446
|
$metadata: deserializeMetadata(output),
|
|
453
447
|
...contents,
|
|
454
448
|
};
|
|
455
|
-
return
|
|
449
|
+
return response;
|
|
456
450
|
};
|
|
457
451
|
exports.de_GetExpenseAnalysisCommand = de_GetExpenseAnalysisCommand;
|
|
458
452
|
const de_GetExpenseAnalysisCommandError = async (output, context) => {
|
|
@@ -488,10 +482,9 @@ const de_GetExpenseAnalysisCommandError = async (output, context) => {
|
|
|
488
482
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
489
483
|
default:
|
|
490
484
|
const parsedBody = parsedOutput.body;
|
|
491
|
-
|
|
485
|
+
return throwDefaultError({
|
|
492
486
|
output,
|
|
493
487
|
parsedBody,
|
|
494
|
-
exceptionCtor: TextractServiceException_1.TextractServiceException,
|
|
495
488
|
errorCode,
|
|
496
489
|
});
|
|
497
490
|
}
|
|
@@ -507,7 +500,7 @@ const de_GetLendingAnalysisCommand = async (output, context) => {
|
|
|
507
500
|
$metadata: deserializeMetadata(output),
|
|
508
501
|
...contents,
|
|
509
502
|
};
|
|
510
|
-
return
|
|
503
|
+
return response;
|
|
511
504
|
};
|
|
512
505
|
exports.de_GetLendingAnalysisCommand = de_GetLendingAnalysisCommand;
|
|
513
506
|
const de_GetLendingAnalysisCommandError = async (output, context) => {
|
|
@@ -543,10 +536,9 @@ const de_GetLendingAnalysisCommandError = async (output, context) => {
|
|
|
543
536
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
544
537
|
default:
|
|
545
538
|
const parsedBody = parsedOutput.body;
|
|
546
|
-
|
|
539
|
+
return throwDefaultError({
|
|
547
540
|
output,
|
|
548
541
|
parsedBody,
|
|
549
|
-
exceptionCtor: TextractServiceException_1.TextractServiceException,
|
|
550
542
|
errorCode,
|
|
551
543
|
});
|
|
552
544
|
}
|
|
@@ -557,12 +549,12 @@ const de_GetLendingAnalysisSummaryCommand = async (output, context) => {
|
|
|
557
549
|
}
|
|
558
550
|
const data = await parseBody(output.body, context);
|
|
559
551
|
let contents = {};
|
|
560
|
-
contents =
|
|
552
|
+
contents = (0, smithy_client_1._json)(data);
|
|
561
553
|
const response = {
|
|
562
554
|
$metadata: deserializeMetadata(output),
|
|
563
555
|
...contents,
|
|
564
556
|
};
|
|
565
|
-
return
|
|
557
|
+
return response;
|
|
566
558
|
};
|
|
567
559
|
exports.de_GetLendingAnalysisSummaryCommand = de_GetLendingAnalysisSummaryCommand;
|
|
568
560
|
const de_GetLendingAnalysisSummaryCommandError = async (output, context) => {
|
|
@@ -598,10 +590,9 @@ const de_GetLendingAnalysisSummaryCommandError = async (output, context) => {
|
|
|
598
590
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
599
591
|
default:
|
|
600
592
|
const parsedBody = parsedOutput.body;
|
|
601
|
-
|
|
593
|
+
return throwDefaultError({
|
|
602
594
|
output,
|
|
603
595
|
parsedBody,
|
|
604
|
-
exceptionCtor: TextractServiceException_1.TextractServiceException,
|
|
605
596
|
errorCode,
|
|
606
597
|
});
|
|
607
598
|
}
|
|
@@ -612,12 +603,12 @@ const de_StartDocumentAnalysisCommand = async (output, context) => {
|
|
|
612
603
|
}
|
|
613
604
|
const data = await parseBody(output.body, context);
|
|
614
605
|
let contents = {};
|
|
615
|
-
contents =
|
|
606
|
+
contents = (0, smithy_client_1._json)(data);
|
|
616
607
|
const response = {
|
|
617
608
|
$metadata: deserializeMetadata(output),
|
|
618
609
|
...contents,
|
|
619
610
|
};
|
|
620
|
-
return
|
|
611
|
+
return response;
|
|
621
612
|
};
|
|
622
613
|
exports.de_StartDocumentAnalysisCommand = de_StartDocumentAnalysisCommand;
|
|
623
614
|
const de_StartDocumentAnalysisCommandError = async (output, context) => {
|
|
@@ -665,10 +656,9 @@ const de_StartDocumentAnalysisCommandError = async (output, context) => {
|
|
|
665
656
|
throw await de_UnsupportedDocumentExceptionRes(parsedOutput, context);
|
|
666
657
|
default:
|
|
667
658
|
const parsedBody = parsedOutput.body;
|
|
668
|
-
|
|
659
|
+
return throwDefaultError({
|
|
669
660
|
output,
|
|
670
661
|
parsedBody,
|
|
671
|
-
exceptionCtor: TextractServiceException_1.TextractServiceException,
|
|
672
662
|
errorCode,
|
|
673
663
|
});
|
|
674
664
|
}
|
|
@@ -679,12 +669,12 @@ const de_StartDocumentTextDetectionCommand = async (output, context) => {
|
|
|
679
669
|
}
|
|
680
670
|
const data = await parseBody(output.body, context);
|
|
681
671
|
let contents = {};
|
|
682
|
-
contents =
|
|
672
|
+
contents = (0, smithy_client_1._json)(data);
|
|
683
673
|
const response = {
|
|
684
674
|
$metadata: deserializeMetadata(output),
|
|
685
675
|
...contents,
|
|
686
676
|
};
|
|
687
|
-
return
|
|
677
|
+
return response;
|
|
688
678
|
};
|
|
689
679
|
exports.de_StartDocumentTextDetectionCommand = de_StartDocumentTextDetectionCommand;
|
|
690
680
|
const de_StartDocumentTextDetectionCommandError = async (output, context) => {
|
|
@@ -732,10 +722,9 @@ const de_StartDocumentTextDetectionCommandError = async (output, context) => {
|
|
|
732
722
|
throw await de_UnsupportedDocumentExceptionRes(parsedOutput, context);
|
|
733
723
|
default:
|
|
734
724
|
const parsedBody = parsedOutput.body;
|
|
735
|
-
|
|
725
|
+
return throwDefaultError({
|
|
736
726
|
output,
|
|
737
727
|
parsedBody,
|
|
738
|
-
exceptionCtor: TextractServiceException_1.TextractServiceException,
|
|
739
728
|
errorCode,
|
|
740
729
|
});
|
|
741
730
|
}
|
|
@@ -746,12 +735,12 @@ const de_StartExpenseAnalysisCommand = async (output, context) => {
|
|
|
746
735
|
}
|
|
747
736
|
const data = await parseBody(output.body, context);
|
|
748
737
|
let contents = {};
|
|
749
|
-
contents =
|
|
738
|
+
contents = (0, smithy_client_1._json)(data);
|
|
750
739
|
const response = {
|
|
751
740
|
$metadata: deserializeMetadata(output),
|
|
752
741
|
...contents,
|
|
753
742
|
};
|
|
754
|
-
return
|
|
743
|
+
return response;
|
|
755
744
|
};
|
|
756
745
|
exports.de_StartExpenseAnalysisCommand = de_StartExpenseAnalysisCommand;
|
|
757
746
|
const de_StartExpenseAnalysisCommandError = async (output, context) => {
|
|
@@ -799,10 +788,9 @@ const de_StartExpenseAnalysisCommandError = async (output, context) => {
|
|
|
799
788
|
throw await de_UnsupportedDocumentExceptionRes(parsedOutput, context);
|
|
800
789
|
default:
|
|
801
790
|
const parsedBody = parsedOutput.body;
|
|
802
|
-
|
|
791
|
+
return throwDefaultError({
|
|
803
792
|
output,
|
|
804
793
|
parsedBody,
|
|
805
|
-
exceptionCtor: TextractServiceException_1.TextractServiceException,
|
|
806
794
|
errorCode,
|
|
807
795
|
});
|
|
808
796
|
}
|
|
@@ -813,12 +801,12 @@ const de_StartLendingAnalysisCommand = async (output, context) => {
|
|
|
813
801
|
}
|
|
814
802
|
const data = await parseBody(output.body, context);
|
|
815
803
|
let contents = {};
|
|
816
|
-
contents =
|
|
804
|
+
contents = (0, smithy_client_1._json)(data);
|
|
817
805
|
const response = {
|
|
818
806
|
$metadata: deserializeMetadata(output),
|
|
819
807
|
...contents,
|
|
820
808
|
};
|
|
821
|
-
return
|
|
809
|
+
return response;
|
|
822
810
|
};
|
|
823
811
|
exports.de_StartLendingAnalysisCommand = de_StartLendingAnalysisCommand;
|
|
824
812
|
const de_StartLendingAnalysisCommandError = async (output, context) => {
|
|
@@ -866,17 +854,16 @@ const de_StartLendingAnalysisCommandError = async (output, context) => {
|
|
|
866
854
|
throw await de_UnsupportedDocumentExceptionRes(parsedOutput, context);
|
|
867
855
|
default:
|
|
868
856
|
const parsedBody = parsedOutput.body;
|
|
869
|
-
|
|
857
|
+
return throwDefaultError({
|
|
870
858
|
output,
|
|
871
859
|
parsedBody,
|
|
872
|
-
exceptionCtor: TextractServiceException_1.TextractServiceException,
|
|
873
860
|
errorCode,
|
|
874
861
|
});
|
|
875
862
|
}
|
|
876
863
|
};
|
|
877
864
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
878
865
|
const body = parsedOutput.body;
|
|
879
|
-
const deserialized =
|
|
866
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
880
867
|
const exception = new models_0_1.AccessDeniedException({
|
|
881
868
|
$metadata: deserializeMetadata(parsedOutput),
|
|
882
869
|
...deserialized,
|
|
@@ -885,7 +872,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
885
872
|
};
|
|
886
873
|
const de_BadDocumentExceptionRes = async (parsedOutput, context) => {
|
|
887
874
|
const body = parsedOutput.body;
|
|
888
|
-
const deserialized =
|
|
875
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
889
876
|
const exception = new models_0_1.BadDocumentException({
|
|
890
877
|
$metadata: deserializeMetadata(parsedOutput),
|
|
891
878
|
...deserialized,
|
|
@@ -894,7 +881,7 @@ const de_BadDocumentExceptionRes = async (parsedOutput, context) => {
|
|
|
894
881
|
};
|
|
895
882
|
const de_DocumentTooLargeExceptionRes = async (parsedOutput, context) => {
|
|
896
883
|
const body = parsedOutput.body;
|
|
897
|
-
const deserialized =
|
|
884
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
898
885
|
const exception = new models_0_1.DocumentTooLargeException({
|
|
899
886
|
$metadata: deserializeMetadata(parsedOutput),
|
|
900
887
|
...deserialized,
|
|
@@ -903,7 +890,7 @@ const de_DocumentTooLargeExceptionRes = async (parsedOutput, context) => {
|
|
|
903
890
|
};
|
|
904
891
|
const de_HumanLoopQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
905
892
|
const body = parsedOutput.body;
|
|
906
|
-
const deserialized =
|
|
893
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
907
894
|
const exception = new models_0_1.HumanLoopQuotaExceededException({
|
|
908
895
|
$metadata: deserializeMetadata(parsedOutput),
|
|
909
896
|
...deserialized,
|
|
@@ -912,7 +899,7 @@ const de_HumanLoopQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
912
899
|
};
|
|
913
900
|
const de_IdempotentParameterMismatchExceptionRes = async (parsedOutput, context) => {
|
|
914
901
|
const body = parsedOutput.body;
|
|
915
|
-
const deserialized =
|
|
902
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
916
903
|
const exception = new models_0_1.IdempotentParameterMismatchException({
|
|
917
904
|
$metadata: deserializeMetadata(parsedOutput),
|
|
918
905
|
...deserialized,
|
|
@@ -921,7 +908,7 @@ const de_IdempotentParameterMismatchExceptionRes = async (parsedOutput, context)
|
|
|
921
908
|
};
|
|
922
909
|
const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
923
910
|
const body = parsedOutput.body;
|
|
924
|
-
const deserialized =
|
|
911
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
925
912
|
const exception = new models_0_1.InternalServerError({
|
|
926
913
|
$metadata: deserializeMetadata(parsedOutput),
|
|
927
914
|
...deserialized,
|
|
@@ -930,7 +917,7 @@ const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
|
930
917
|
};
|
|
931
918
|
const de_InvalidJobIdExceptionRes = async (parsedOutput, context) => {
|
|
932
919
|
const body = parsedOutput.body;
|
|
933
|
-
const deserialized =
|
|
920
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
934
921
|
const exception = new models_0_1.InvalidJobIdException({
|
|
935
922
|
$metadata: deserializeMetadata(parsedOutput),
|
|
936
923
|
...deserialized,
|
|
@@ -939,7 +926,7 @@ const de_InvalidJobIdExceptionRes = async (parsedOutput, context) => {
|
|
|
939
926
|
};
|
|
940
927
|
const de_InvalidKMSKeyExceptionRes = async (parsedOutput, context) => {
|
|
941
928
|
const body = parsedOutput.body;
|
|
942
|
-
const deserialized =
|
|
929
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
943
930
|
const exception = new models_0_1.InvalidKMSKeyException({
|
|
944
931
|
$metadata: deserializeMetadata(parsedOutput),
|
|
945
932
|
...deserialized,
|
|
@@ -948,7 +935,7 @@ const de_InvalidKMSKeyExceptionRes = async (parsedOutput, context) => {
|
|
|
948
935
|
};
|
|
949
936
|
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
950
937
|
const body = parsedOutput.body;
|
|
951
|
-
const deserialized =
|
|
938
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
952
939
|
const exception = new models_0_1.InvalidParameterException({
|
|
953
940
|
$metadata: deserializeMetadata(parsedOutput),
|
|
954
941
|
...deserialized,
|
|
@@ -957,7 +944,7 @@ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
|
957
944
|
};
|
|
958
945
|
const de_InvalidS3ObjectExceptionRes = async (parsedOutput, context) => {
|
|
959
946
|
const body = parsedOutput.body;
|
|
960
|
-
const deserialized =
|
|
947
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
961
948
|
const exception = new models_0_1.InvalidS3ObjectException({
|
|
962
949
|
$metadata: deserializeMetadata(parsedOutput),
|
|
963
950
|
...deserialized,
|
|
@@ -966,7 +953,7 @@ const de_InvalidS3ObjectExceptionRes = async (parsedOutput, context) => {
|
|
|
966
953
|
};
|
|
967
954
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
968
955
|
const body = parsedOutput.body;
|
|
969
|
-
const deserialized =
|
|
956
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
970
957
|
const exception = new models_0_1.LimitExceededException({
|
|
971
958
|
$metadata: deserializeMetadata(parsedOutput),
|
|
972
959
|
...deserialized,
|
|
@@ -975,7 +962,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
975
962
|
};
|
|
976
963
|
const de_ProvisionedThroughputExceededExceptionRes = async (parsedOutput, context) => {
|
|
977
964
|
const body = parsedOutput.body;
|
|
978
|
-
const deserialized =
|
|
965
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
979
966
|
const exception = new models_0_1.ProvisionedThroughputExceededException({
|
|
980
967
|
$metadata: deserializeMetadata(parsedOutput),
|
|
981
968
|
...deserialized,
|
|
@@ -984,7 +971,7 @@ const de_ProvisionedThroughputExceededExceptionRes = async (parsedOutput, contex
|
|
|
984
971
|
};
|
|
985
972
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
986
973
|
const body = parsedOutput.body;
|
|
987
|
-
const deserialized =
|
|
974
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
988
975
|
const exception = new models_0_1.ThrottlingException({
|
|
989
976
|
$metadata: deserializeMetadata(parsedOutput),
|
|
990
977
|
...deserialized,
|
|
@@ -993,7 +980,7 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
993
980
|
};
|
|
994
981
|
const de_UnsupportedDocumentExceptionRes = async (parsedOutput, context) => {
|
|
995
982
|
const body = parsedOutput.body;
|
|
996
|
-
const deserialized =
|
|
983
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
997
984
|
const exception = new models_0_1.UnsupportedDocumentException({
|
|
998
985
|
$metadata: deserializeMetadata(parsedOutput),
|
|
999
986
|
...deserialized,
|
|
@@ -1001,45 +988,33 @@ const de_UnsupportedDocumentExceptionRes = async (parsedOutput, context) => {
|
|
|
1001
988
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1002
989
|
};
|
|
1003
990
|
const se_AnalyzeDocumentRequest = (input, context) => {
|
|
1004
|
-
return {
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
};
|
|
991
|
+
return (0, smithy_client_1.take)(input, {
|
|
992
|
+
Document: (_) => se_Document(_, context),
|
|
993
|
+
FeatureTypes: smithy_client_1._json,
|
|
994
|
+
HumanLoopConfig: smithy_client_1._json,
|
|
995
|
+
QueriesConfig: smithy_client_1._json,
|
|
996
|
+
});
|
|
1010
997
|
};
|
|
1011
998
|
const se_AnalyzeExpenseRequest = (input, context) => {
|
|
1012
|
-
return {
|
|
1013
|
-
|
|
1014
|
-
};
|
|
999
|
+
return (0, smithy_client_1.take)(input, {
|
|
1000
|
+
Document: (_) => se_Document(_, context),
|
|
1001
|
+
});
|
|
1015
1002
|
};
|
|
1016
1003
|
const se_AnalyzeIDRequest = (input, context) => {
|
|
1017
|
-
return {
|
|
1018
|
-
|
|
1019
|
-
};
|
|
1020
|
-
};
|
|
1021
|
-
const se_ContentClassifiers = (input, context) => {
|
|
1022
|
-
return input
|
|
1023
|
-
.filter((e) => e != null)
|
|
1024
|
-
.map((entry) => {
|
|
1025
|
-
return entry;
|
|
1004
|
+
return (0, smithy_client_1.take)(input, {
|
|
1005
|
+
DocumentPages: (_) => se_DocumentPages(_, context),
|
|
1026
1006
|
});
|
|
1027
1007
|
};
|
|
1028
1008
|
const se_DetectDocumentTextRequest = (input, context) => {
|
|
1029
|
-
return {
|
|
1030
|
-
|
|
1031
|
-
};
|
|
1009
|
+
return (0, smithy_client_1.take)(input, {
|
|
1010
|
+
Document: (_) => se_Document(_, context),
|
|
1011
|
+
});
|
|
1032
1012
|
};
|
|
1033
1013
|
const se_Document = (input, context) => {
|
|
1034
|
-
return {
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
};
|
|
1038
|
-
};
|
|
1039
|
-
const se_DocumentLocation = (input, context) => {
|
|
1040
|
-
return {
|
|
1041
|
-
...(input.S3Object != null && { S3Object: se_S3Object(input.S3Object, context) }),
|
|
1042
|
-
};
|
|
1014
|
+
return (0, smithy_client_1.take)(input, {
|
|
1015
|
+
Bytes: context.base64Encoder,
|
|
1016
|
+
S3Object: smithy_client_1._json,
|
|
1017
|
+
});
|
|
1043
1018
|
};
|
|
1044
1019
|
const se_DocumentPages = (input, context) => {
|
|
1045
1020
|
return input
|
|
@@ -1048,514 +1023,218 @@ const se_DocumentPages = (input, context) => {
|
|
|
1048
1023
|
return se_Document(entry, context);
|
|
1049
1024
|
});
|
|
1050
1025
|
};
|
|
1051
|
-
const se_FeatureTypes = (input, context) => {
|
|
1052
|
-
return input
|
|
1053
|
-
.filter((e) => e != null)
|
|
1054
|
-
.map((entry) => {
|
|
1055
|
-
return entry;
|
|
1056
|
-
});
|
|
1057
|
-
};
|
|
1058
|
-
const se_GetDocumentAnalysisRequest = (input, context) => {
|
|
1059
|
-
return {
|
|
1060
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1061
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1062
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1063
|
-
};
|
|
1064
|
-
};
|
|
1065
|
-
const se_GetDocumentTextDetectionRequest = (input, context) => {
|
|
1066
|
-
return {
|
|
1067
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1068
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1069
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1070
|
-
};
|
|
1071
|
-
};
|
|
1072
|
-
const se_GetExpenseAnalysisRequest = (input, context) => {
|
|
1073
|
-
return {
|
|
1074
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1075
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1076
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1077
|
-
};
|
|
1078
|
-
};
|
|
1079
|
-
const se_GetLendingAnalysisRequest = (input, context) => {
|
|
1080
|
-
return {
|
|
1081
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1082
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1083
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1084
|
-
};
|
|
1085
|
-
};
|
|
1086
|
-
const se_GetLendingAnalysisSummaryRequest = (input, context) => {
|
|
1087
|
-
return {
|
|
1088
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1089
|
-
};
|
|
1090
|
-
};
|
|
1091
|
-
const se_HumanLoopConfig = (input, context) => {
|
|
1092
|
-
return {
|
|
1093
|
-
...(input.DataAttributes != null && { DataAttributes: se_HumanLoopDataAttributes(input.DataAttributes, context) }),
|
|
1094
|
-
...(input.FlowDefinitionArn != null && { FlowDefinitionArn: input.FlowDefinitionArn }),
|
|
1095
|
-
...(input.HumanLoopName != null && { HumanLoopName: input.HumanLoopName }),
|
|
1096
|
-
};
|
|
1097
|
-
};
|
|
1098
|
-
const se_HumanLoopDataAttributes = (input, context) => {
|
|
1099
|
-
return {
|
|
1100
|
-
...(input.ContentClassifiers != null && {
|
|
1101
|
-
ContentClassifiers: se_ContentClassifiers(input.ContentClassifiers, context),
|
|
1102
|
-
}),
|
|
1103
|
-
};
|
|
1104
|
-
};
|
|
1105
|
-
const se_NotificationChannel = (input, context) => {
|
|
1106
|
-
return {
|
|
1107
|
-
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
1108
|
-
...(input.SNSTopicArn != null && { SNSTopicArn: input.SNSTopicArn }),
|
|
1109
|
-
};
|
|
1110
|
-
};
|
|
1111
|
-
const se_OutputConfig = (input, context) => {
|
|
1112
|
-
return {
|
|
1113
|
-
...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
|
|
1114
|
-
...(input.S3Prefix != null && { S3Prefix: input.S3Prefix }),
|
|
1115
|
-
};
|
|
1116
|
-
};
|
|
1117
|
-
const se_Queries = (input, context) => {
|
|
1118
|
-
return input
|
|
1119
|
-
.filter((e) => e != null)
|
|
1120
|
-
.map((entry) => {
|
|
1121
|
-
return se_Query(entry, context);
|
|
1122
|
-
});
|
|
1123
|
-
};
|
|
1124
|
-
const se_QueriesConfig = (input, context) => {
|
|
1125
|
-
return {
|
|
1126
|
-
...(input.Queries != null && { Queries: se_Queries(input.Queries, context) }),
|
|
1127
|
-
};
|
|
1128
|
-
};
|
|
1129
|
-
const se_Query = (input, context) => {
|
|
1130
|
-
return {
|
|
1131
|
-
...(input.Alias != null && { Alias: input.Alias }),
|
|
1132
|
-
...(input.Pages != null && { Pages: se_QueryPages(input.Pages, context) }),
|
|
1133
|
-
...(input.Text != null && { Text: input.Text }),
|
|
1134
|
-
};
|
|
1135
|
-
};
|
|
1136
|
-
const se_QueryPages = (input, context) => {
|
|
1137
|
-
return input
|
|
1138
|
-
.filter((e) => e != null)
|
|
1139
|
-
.map((entry) => {
|
|
1140
|
-
return entry;
|
|
1141
|
-
});
|
|
1142
|
-
};
|
|
1143
|
-
const se_S3Object = (input, context) => {
|
|
1144
|
-
return {
|
|
1145
|
-
...(input.Bucket != null && { Bucket: input.Bucket }),
|
|
1146
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1147
|
-
...(input.Version != null && { Version: input.Version }),
|
|
1148
|
-
};
|
|
1149
|
-
};
|
|
1150
|
-
const se_StartDocumentAnalysisRequest = (input, context) => {
|
|
1151
|
-
return {
|
|
1152
|
-
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
1153
|
-
...(input.DocumentLocation != null && { DocumentLocation: se_DocumentLocation(input.DocumentLocation, context) }),
|
|
1154
|
-
...(input.FeatureTypes != null && { FeatureTypes: se_FeatureTypes(input.FeatureTypes, context) }),
|
|
1155
|
-
...(input.JobTag != null && { JobTag: input.JobTag }),
|
|
1156
|
-
...(input.KMSKeyId != null && { KMSKeyId: input.KMSKeyId }),
|
|
1157
|
-
...(input.NotificationChannel != null && {
|
|
1158
|
-
NotificationChannel: se_NotificationChannel(input.NotificationChannel, context),
|
|
1159
|
-
}),
|
|
1160
|
-
...(input.OutputConfig != null && { OutputConfig: se_OutputConfig(input.OutputConfig, context) }),
|
|
1161
|
-
...(input.QueriesConfig != null && { QueriesConfig: se_QueriesConfig(input.QueriesConfig, context) }),
|
|
1162
|
-
};
|
|
1163
|
-
};
|
|
1164
|
-
const se_StartDocumentTextDetectionRequest = (input, context) => {
|
|
1165
|
-
return {
|
|
1166
|
-
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
1167
|
-
...(input.DocumentLocation != null && { DocumentLocation: se_DocumentLocation(input.DocumentLocation, context) }),
|
|
1168
|
-
...(input.JobTag != null && { JobTag: input.JobTag }),
|
|
1169
|
-
...(input.KMSKeyId != null && { KMSKeyId: input.KMSKeyId }),
|
|
1170
|
-
...(input.NotificationChannel != null && {
|
|
1171
|
-
NotificationChannel: se_NotificationChannel(input.NotificationChannel, context),
|
|
1172
|
-
}),
|
|
1173
|
-
...(input.OutputConfig != null && { OutputConfig: se_OutputConfig(input.OutputConfig, context) }),
|
|
1174
|
-
};
|
|
1175
|
-
};
|
|
1176
|
-
const se_StartExpenseAnalysisRequest = (input, context) => {
|
|
1177
|
-
return {
|
|
1178
|
-
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
1179
|
-
...(input.DocumentLocation != null && { DocumentLocation: se_DocumentLocation(input.DocumentLocation, context) }),
|
|
1180
|
-
...(input.JobTag != null && { JobTag: input.JobTag }),
|
|
1181
|
-
...(input.KMSKeyId != null && { KMSKeyId: input.KMSKeyId }),
|
|
1182
|
-
...(input.NotificationChannel != null && {
|
|
1183
|
-
NotificationChannel: se_NotificationChannel(input.NotificationChannel, context),
|
|
1184
|
-
}),
|
|
1185
|
-
...(input.OutputConfig != null && { OutputConfig: se_OutputConfig(input.OutputConfig, context) }),
|
|
1186
|
-
};
|
|
1187
|
-
};
|
|
1188
|
-
const se_StartLendingAnalysisRequest = (input, context) => {
|
|
1189
|
-
return {
|
|
1190
|
-
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
1191
|
-
...(input.DocumentLocation != null && { DocumentLocation: se_DocumentLocation(input.DocumentLocation, context) }),
|
|
1192
|
-
...(input.JobTag != null && { JobTag: input.JobTag }),
|
|
1193
|
-
...(input.KMSKeyId != null && { KMSKeyId: input.KMSKeyId }),
|
|
1194
|
-
...(input.NotificationChannel != null && {
|
|
1195
|
-
NotificationChannel: se_NotificationChannel(input.NotificationChannel, context),
|
|
1196
|
-
}),
|
|
1197
|
-
...(input.OutputConfig != null && { OutputConfig: se_OutputConfig(input.OutputConfig, context) }),
|
|
1198
|
-
};
|
|
1199
|
-
};
|
|
1200
|
-
const de_AccessDeniedException = (output, context) => {
|
|
1201
|
-
return {
|
|
1202
|
-
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1203
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1204
|
-
};
|
|
1205
|
-
};
|
|
1206
1026
|
const de_AnalyzeDocumentResponse = (output, context) => {
|
|
1207
|
-
return {
|
|
1208
|
-
AnalyzeDocumentModelVersion:
|
|
1209
|
-
Blocks:
|
|
1210
|
-
DocumentMetadata:
|
|
1211
|
-
HumanLoopActivationOutput:
|
|
1212
|
-
|
|
1213
|
-
: undefined,
|
|
1214
|
-
};
|
|
1027
|
+
return (0, smithy_client_1.take)(output, {
|
|
1028
|
+
AnalyzeDocumentModelVersion: smithy_client_1.expectString,
|
|
1029
|
+
Blocks: (_) => de_BlockList(_, context),
|
|
1030
|
+
DocumentMetadata: smithy_client_1._json,
|
|
1031
|
+
HumanLoopActivationOutput: (_) => de_HumanLoopActivationOutput(_, context),
|
|
1032
|
+
});
|
|
1215
1033
|
};
|
|
1216
1034
|
const de_AnalyzeExpenseResponse = (output, context) => {
|
|
1217
|
-
return {
|
|
1218
|
-
DocumentMetadata:
|
|
1219
|
-
ExpenseDocuments:
|
|
1220
|
-
};
|
|
1035
|
+
return (0, smithy_client_1.take)(output, {
|
|
1036
|
+
DocumentMetadata: smithy_client_1._json,
|
|
1037
|
+
ExpenseDocuments: (_) => de_ExpenseDocumentList(_, context),
|
|
1038
|
+
});
|
|
1221
1039
|
};
|
|
1222
1040
|
const de_AnalyzeIDDetections = (output, context) => {
|
|
1223
|
-
return {
|
|
1224
|
-
Confidence:
|
|
1225
|
-
NormalizedValue:
|
|
1226
|
-
Text:
|
|
1227
|
-
};
|
|
1041
|
+
return (0, smithy_client_1.take)(output, {
|
|
1042
|
+
Confidence: smithy_client_1.limitedParseFloat32,
|
|
1043
|
+
NormalizedValue: smithy_client_1._json,
|
|
1044
|
+
Text: smithy_client_1.expectString,
|
|
1045
|
+
});
|
|
1228
1046
|
};
|
|
1229
1047
|
const de_AnalyzeIDResponse = (output, context) => {
|
|
1230
|
-
return {
|
|
1231
|
-
AnalyzeIDModelVersion:
|
|
1232
|
-
DocumentMetadata:
|
|
1233
|
-
IdentityDocuments:
|
|
1234
|
-
};
|
|
1235
|
-
};
|
|
1236
|
-
const de_BadDocumentException = (output, context) => {
|
|
1237
|
-
return {
|
|
1238
|
-
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1239
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1240
|
-
};
|
|
1048
|
+
return (0, smithy_client_1.take)(output, {
|
|
1049
|
+
AnalyzeIDModelVersion: smithy_client_1.expectString,
|
|
1050
|
+
DocumentMetadata: smithy_client_1._json,
|
|
1051
|
+
IdentityDocuments: (_) => de_IdentityDocumentList(_, context),
|
|
1052
|
+
});
|
|
1241
1053
|
};
|
|
1242
1054
|
const de_Block = (output, context) => {
|
|
1243
|
-
return {
|
|
1244
|
-
BlockType:
|
|
1245
|
-
ColumnIndex:
|
|
1246
|
-
ColumnSpan:
|
|
1247
|
-
Confidence:
|
|
1248
|
-
EntityTypes:
|
|
1249
|
-
Geometry:
|
|
1250
|
-
Id:
|
|
1251
|
-
Page:
|
|
1252
|
-
Query:
|
|
1253
|
-
Relationships:
|
|
1254
|
-
RowIndex:
|
|
1255
|
-
RowSpan:
|
|
1256
|
-
SelectionStatus:
|
|
1257
|
-
Text:
|
|
1258
|
-
TextType:
|
|
1259
|
-
};
|
|
1055
|
+
return (0, smithy_client_1.take)(output, {
|
|
1056
|
+
BlockType: smithy_client_1.expectString,
|
|
1057
|
+
ColumnIndex: smithy_client_1.expectInt32,
|
|
1058
|
+
ColumnSpan: smithy_client_1.expectInt32,
|
|
1059
|
+
Confidence: smithy_client_1.limitedParseFloat32,
|
|
1060
|
+
EntityTypes: smithy_client_1._json,
|
|
1061
|
+
Geometry: (_) => de_Geometry(_, context),
|
|
1062
|
+
Id: smithy_client_1.expectString,
|
|
1063
|
+
Page: smithy_client_1.expectInt32,
|
|
1064
|
+
Query: smithy_client_1._json,
|
|
1065
|
+
Relationships: smithy_client_1._json,
|
|
1066
|
+
RowIndex: smithy_client_1.expectInt32,
|
|
1067
|
+
RowSpan: smithy_client_1.expectInt32,
|
|
1068
|
+
SelectionStatus: smithy_client_1.expectString,
|
|
1069
|
+
Text: smithy_client_1.expectString,
|
|
1070
|
+
TextType: smithy_client_1.expectString,
|
|
1071
|
+
});
|
|
1260
1072
|
};
|
|
1261
1073
|
const de_BlockList = (output, context) => {
|
|
1262
1074
|
const retVal = (output || [])
|
|
1263
1075
|
.filter((e) => e != null)
|
|
1264
1076
|
.map((entry) => {
|
|
1265
|
-
if (entry === null) {
|
|
1266
|
-
return null;
|
|
1267
|
-
}
|
|
1268
1077
|
return de_Block(entry, context);
|
|
1269
1078
|
});
|
|
1270
1079
|
return retVal;
|
|
1271
1080
|
};
|
|
1272
1081
|
const de_BoundingBox = (output, context) => {
|
|
1273
|
-
return {
|
|
1274
|
-
Height:
|
|
1275
|
-
Left:
|
|
1276
|
-
Top:
|
|
1277
|
-
Width:
|
|
1278
|
-
};
|
|
1279
|
-
};
|
|
1280
|
-
const de_DetectDocumentTextResponse = (output, context) => {
|
|
1281
|
-
return {
|
|
1282
|
-
Blocks: output.Blocks != null ? de_BlockList(output.Blocks, context) : undefined,
|
|
1283
|
-
DetectDocumentTextModelVersion: (0, smithy_client_1.expectString)(output.DetectDocumentTextModelVersion),
|
|
1284
|
-
DocumentMetadata: output.DocumentMetadata != null ? de_DocumentMetadata(output.DocumentMetadata, context) : undefined,
|
|
1285
|
-
};
|
|
1286
|
-
};
|
|
1287
|
-
const de_DetectedSignature = (output, context) => {
|
|
1288
|
-
return {
|
|
1289
|
-
Page: (0, smithy_client_1.expectInt32)(output.Page),
|
|
1290
|
-
};
|
|
1291
|
-
};
|
|
1292
|
-
const de_DetectedSignatureList = (output, context) => {
|
|
1293
|
-
const retVal = (output || [])
|
|
1294
|
-
.filter((e) => e != null)
|
|
1295
|
-
.map((entry) => {
|
|
1296
|
-
if (entry === null) {
|
|
1297
|
-
return null;
|
|
1298
|
-
}
|
|
1299
|
-
return de_DetectedSignature(entry, context);
|
|
1300
|
-
});
|
|
1301
|
-
return retVal;
|
|
1302
|
-
};
|
|
1303
|
-
const de_DocumentGroup = (output, context) => {
|
|
1304
|
-
return {
|
|
1305
|
-
DetectedSignatures: output.DetectedSignatures != null ? de_DetectedSignatureList(output.DetectedSignatures, context) : undefined,
|
|
1306
|
-
SplitDocuments: output.SplitDocuments != null ? de_SplitDocumentList(output.SplitDocuments, context) : undefined,
|
|
1307
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1308
|
-
UndetectedSignatures: output.UndetectedSignatures != null
|
|
1309
|
-
? de_UndetectedSignatureList(output.UndetectedSignatures, context)
|
|
1310
|
-
: undefined,
|
|
1311
|
-
};
|
|
1312
|
-
};
|
|
1313
|
-
const de_DocumentGroupList = (output, context) => {
|
|
1314
|
-
const retVal = (output || [])
|
|
1315
|
-
.filter((e) => e != null)
|
|
1316
|
-
.map((entry) => {
|
|
1317
|
-
if (entry === null) {
|
|
1318
|
-
return null;
|
|
1319
|
-
}
|
|
1320
|
-
return de_DocumentGroup(entry, context);
|
|
1082
|
+
return (0, smithy_client_1.take)(output, {
|
|
1083
|
+
Height: smithy_client_1.limitedParseFloat32,
|
|
1084
|
+
Left: smithy_client_1.limitedParseFloat32,
|
|
1085
|
+
Top: smithy_client_1.limitedParseFloat32,
|
|
1086
|
+
Width: smithy_client_1.limitedParseFloat32,
|
|
1321
1087
|
});
|
|
1322
|
-
return retVal;
|
|
1323
1088
|
};
|
|
1324
|
-
const
|
|
1325
|
-
return {
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
const de_DocumentTooLargeException = (output, context) => {
|
|
1330
|
-
return {
|
|
1331
|
-
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1332
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1333
|
-
};
|
|
1334
|
-
};
|
|
1335
|
-
const de_EntityTypes = (output, context) => {
|
|
1336
|
-
const retVal = (output || [])
|
|
1337
|
-
.filter((e) => e != null)
|
|
1338
|
-
.map((entry) => {
|
|
1339
|
-
if (entry === null) {
|
|
1340
|
-
return null;
|
|
1341
|
-
}
|
|
1342
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1089
|
+
const de_DetectDocumentTextResponse = (output, context) => {
|
|
1090
|
+
return (0, smithy_client_1.take)(output, {
|
|
1091
|
+
Blocks: (_) => de_BlockList(_, context),
|
|
1092
|
+
DetectDocumentTextModelVersion: smithy_client_1.expectString,
|
|
1093
|
+
DocumentMetadata: smithy_client_1._json,
|
|
1343
1094
|
});
|
|
1344
|
-
return retVal;
|
|
1345
1095
|
};
|
|
1346
1096
|
const de_ExpenseCurrency = (output, context) => {
|
|
1347
|
-
return {
|
|
1348
|
-
Code:
|
|
1349
|
-
Confidence:
|
|
1350
|
-
};
|
|
1097
|
+
return (0, smithy_client_1.take)(output, {
|
|
1098
|
+
Code: smithy_client_1.expectString,
|
|
1099
|
+
Confidence: smithy_client_1.limitedParseFloat32,
|
|
1100
|
+
});
|
|
1351
1101
|
};
|
|
1352
1102
|
const de_ExpenseDetection = (output, context) => {
|
|
1353
|
-
return {
|
|
1354
|
-
Confidence:
|
|
1355
|
-
Geometry:
|
|
1356
|
-
Text:
|
|
1357
|
-
};
|
|
1103
|
+
return (0, smithy_client_1.take)(output, {
|
|
1104
|
+
Confidence: smithy_client_1.limitedParseFloat32,
|
|
1105
|
+
Geometry: (_) => de_Geometry(_, context),
|
|
1106
|
+
Text: smithy_client_1.expectString,
|
|
1107
|
+
});
|
|
1358
1108
|
};
|
|
1359
1109
|
const de_ExpenseDocument = (output, context) => {
|
|
1360
|
-
return {
|
|
1361
|
-
Blocks:
|
|
1362
|
-
ExpenseIndex:
|
|
1363
|
-
LineItemGroups:
|
|
1364
|
-
SummaryFields:
|
|
1365
|
-
};
|
|
1110
|
+
return (0, smithy_client_1.take)(output, {
|
|
1111
|
+
Blocks: (_) => de_BlockList(_, context),
|
|
1112
|
+
ExpenseIndex: smithy_client_1.expectInt32,
|
|
1113
|
+
LineItemGroups: (_) => de_LineItemGroupList(_, context),
|
|
1114
|
+
SummaryFields: (_) => de_ExpenseFieldList(_, context),
|
|
1115
|
+
});
|
|
1366
1116
|
};
|
|
1367
1117
|
const de_ExpenseDocumentList = (output, context) => {
|
|
1368
1118
|
const retVal = (output || [])
|
|
1369
1119
|
.filter((e) => e != null)
|
|
1370
1120
|
.map((entry) => {
|
|
1371
|
-
if (entry === null) {
|
|
1372
|
-
return null;
|
|
1373
|
-
}
|
|
1374
1121
|
return de_ExpenseDocument(entry, context);
|
|
1375
1122
|
});
|
|
1376
1123
|
return retVal;
|
|
1377
1124
|
};
|
|
1378
1125
|
const de_ExpenseField = (output, context) => {
|
|
1379
|
-
return {
|
|
1380
|
-
Currency:
|
|
1381
|
-
GroupProperties:
|
|
1382
|
-
LabelDetection:
|
|
1383
|
-
PageNumber:
|
|
1384
|
-
Type:
|
|
1385
|
-
ValueDetection:
|
|
1386
|
-
};
|
|
1126
|
+
return (0, smithy_client_1.take)(output, {
|
|
1127
|
+
Currency: (_) => de_ExpenseCurrency(_, context),
|
|
1128
|
+
GroupProperties: smithy_client_1._json,
|
|
1129
|
+
LabelDetection: (_) => de_ExpenseDetection(_, context),
|
|
1130
|
+
PageNumber: smithy_client_1.expectInt32,
|
|
1131
|
+
Type: (_) => de_ExpenseType(_, context),
|
|
1132
|
+
ValueDetection: (_) => de_ExpenseDetection(_, context),
|
|
1133
|
+
});
|
|
1387
1134
|
};
|
|
1388
1135
|
const de_ExpenseFieldList = (output, context) => {
|
|
1389
1136
|
const retVal = (output || [])
|
|
1390
1137
|
.filter((e) => e != null)
|
|
1391
1138
|
.map((entry) => {
|
|
1392
|
-
if (entry === null) {
|
|
1393
|
-
return null;
|
|
1394
|
-
}
|
|
1395
1139
|
return de_ExpenseField(entry, context);
|
|
1396
1140
|
});
|
|
1397
1141
|
return retVal;
|
|
1398
1142
|
};
|
|
1399
|
-
const de_ExpenseGroupProperty = (output, context) => {
|
|
1400
|
-
return {
|
|
1401
|
-
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
1402
|
-
Types: output.Types != null ? de_StringList(output.Types, context) : undefined,
|
|
1403
|
-
};
|
|
1404
|
-
};
|
|
1405
|
-
const de_ExpenseGroupPropertyList = (output, context) => {
|
|
1406
|
-
const retVal = (output || [])
|
|
1407
|
-
.filter((e) => e != null)
|
|
1408
|
-
.map((entry) => {
|
|
1409
|
-
if (entry === null) {
|
|
1410
|
-
return null;
|
|
1411
|
-
}
|
|
1412
|
-
return de_ExpenseGroupProperty(entry, context);
|
|
1413
|
-
});
|
|
1414
|
-
return retVal;
|
|
1415
|
-
};
|
|
1416
1143
|
const de_ExpenseType = (output, context) => {
|
|
1417
|
-
return {
|
|
1418
|
-
Confidence:
|
|
1419
|
-
Text:
|
|
1420
|
-
};
|
|
1144
|
+
return (0, smithy_client_1.take)(output, {
|
|
1145
|
+
Confidence: smithy_client_1.limitedParseFloat32,
|
|
1146
|
+
Text: smithy_client_1.expectString,
|
|
1147
|
+
});
|
|
1421
1148
|
};
|
|
1422
1149
|
const de_Extraction = (output, context) => {
|
|
1423
|
-
return {
|
|
1424
|
-
ExpenseDocument:
|
|
1425
|
-
IdentityDocument:
|
|
1426
|
-
LendingDocument:
|
|
1427
|
-
};
|
|
1150
|
+
return (0, smithy_client_1.take)(output, {
|
|
1151
|
+
ExpenseDocument: (_) => de_ExpenseDocument(_, context),
|
|
1152
|
+
IdentityDocument: (_) => de_IdentityDocument(_, context),
|
|
1153
|
+
LendingDocument: (_) => de_LendingDocument(_, context),
|
|
1154
|
+
});
|
|
1428
1155
|
};
|
|
1429
1156
|
const de_ExtractionList = (output, context) => {
|
|
1430
1157
|
const retVal = (output || [])
|
|
1431
1158
|
.filter((e) => e != null)
|
|
1432
1159
|
.map((entry) => {
|
|
1433
|
-
if (entry === null) {
|
|
1434
|
-
return null;
|
|
1435
|
-
}
|
|
1436
1160
|
return de_Extraction(entry, context);
|
|
1437
1161
|
});
|
|
1438
1162
|
return retVal;
|
|
1439
1163
|
};
|
|
1440
1164
|
const de_Geometry = (output, context) => {
|
|
1441
|
-
return {
|
|
1442
|
-
BoundingBox:
|
|
1443
|
-
Polygon:
|
|
1444
|
-
};
|
|
1165
|
+
return (0, smithy_client_1.take)(output, {
|
|
1166
|
+
BoundingBox: (_) => de_BoundingBox(_, context),
|
|
1167
|
+
Polygon: (_) => de_Polygon(_, context),
|
|
1168
|
+
});
|
|
1445
1169
|
};
|
|
1446
1170
|
const de_GetDocumentAnalysisResponse = (output, context) => {
|
|
1447
|
-
return {
|
|
1448
|
-
AnalyzeDocumentModelVersion:
|
|
1449
|
-
Blocks:
|
|
1450
|
-
DocumentMetadata:
|
|
1451
|
-
JobStatus:
|
|
1452
|
-
NextToken:
|
|
1453
|
-
StatusMessage:
|
|
1454
|
-
Warnings:
|
|
1455
|
-
};
|
|
1171
|
+
return (0, smithy_client_1.take)(output, {
|
|
1172
|
+
AnalyzeDocumentModelVersion: smithy_client_1.expectString,
|
|
1173
|
+
Blocks: (_) => de_BlockList(_, context),
|
|
1174
|
+
DocumentMetadata: smithy_client_1._json,
|
|
1175
|
+
JobStatus: smithy_client_1.expectString,
|
|
1176
|
+
NextToken: smithy_client_1.expectString,
|
|
1177
|
+
StatusMessage: smithy_client_1.expectString,
|
|
1178
|
+
Warnings: smithy_client_1._json,
|
|
1179
|
+
});
|
|
1456
1180
|
};
|
|
1457
1181
|
const de_GetDocumentTextDetectionResponse = (output, context) => {
|
|
1458
|
-
return {
|
|
1459
|
-
Blocks:
|
|
1460
|
-
DetectDocumentTextModelVersion:
|
|
1461
|
-
DocumentMetadata:
|
|
1462
|
-
JobStatus:
|
|
1463
|
-
NextToken:
|
|
1464
|
-
StatusMessage:
|
|
1465
|
-
Warnings:
|
|
1466
|
-
};
|
|
1182
|
+
return (0, smithy_client_1.take)(output, {
|
|
1183
|
+
Blocks: (_) => de_BlockList(_, context),
|
|
1184
|
+
DetectDocumentTextModelVersion: smithy_client_1.expectString,
|
|
1185
|
+
DocumentMetadata: smithy_client_1._json,
|
|
1186
|
+
JobStatus: smithy_client_1.expectString,
|
|
1187
|
+
NextToken: smithy_client_1.expectString,
|
|
1188
|
+
StatusMessage: smithy_client_1.expectString,
|
|
1189
|
+
Warnings: smithy_client_1._json,
|
|
1190
|
+
});
|
|
1467
1191
|
};
|
|
1468
1192
|
const de_GetExpenseAnalysisResponse = (output, context) => {
|
|
1469
|
-
return {
|
|
1470
|
-
AnalyzeExpenseModelVersion:
|
|
1471
|
-
DocumentMetadata:
|
|
1472
|
-
ExpenseDocuments:
|
|
1473
|
-
JobStatus:
|
|
1474
|
-
NextToken:
|
|
1475
|
-
StatusMessage:
|
|
1476
|
-
Warnings:
|
|
1477
|
-
};
|
|
1193
|
+
return (0, smithy_client_1.take)(output, {
|
|
1194
|
+
AnalyzeExpenseModelVersion: smithy_client_1.expectString,
|
|
1195
|
+
DocumentMetadata: smithy_client_1._json,
|
|
1196
|
+
ExpenseDocuments: (_) => de_ExpenseDocumentList(_, context),
|
|
1197
|
+
JobStatus: smithy_client_1.expectString,
|
|
1198
|
+
NextToken: smithy_client_1.expectString,
|
|
1199
|
+
StatusMessage: smithy_client_1.expectString,
|
|
1200
|
+
Warnings: smithy_client_1._json,
|
|
1201
|
+
});
|
|
1478
1202
|
};
|
|
1479
1203
|
const de_GetLendingAnalysisResponse = (output, context) => {
|
|
1480
|
-
return {
|
|
1481
|
-
AnalyzeLendingModelVersion:
|
|
1482
|
-
DocumentMetadata:
|
|
1483
|
-
JobStatus:
|
|
1484
|
-
NextToken:
|
|
1485
|
-
Results:
|
|
1486
|
-
StatusMessage:
|
|
1487
|
-
Warnings:
|
|
1488
|
-
};
|
|
1489
|
-
};
|
|
1490
|
-
const de_GetLendingAnalysisSummaryResponse = (output, context) => {
|
|
1491
|
-
return {
|
|
1492
|
-
AnalyzeLendingModelVersion: (0, smithy_client_1.expectString)(output.AnalyzeLendingModelVersion),
|
|
1493
|
-
DocumentMetadata: output.DocumentMetadata != null ? de_DocumentMetadata(output.DocumentMetadata, context) : undefined,
|
|
1494
|
-
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
1495
|
-
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
1496
|
-
Summary: output.Summary != null ? de_LendingSummary(output.Summary, context) : undefined,
|
|
1497
|
-
Warnings: output.Warnings != null ? de_Warnings(output.Warnings, context) : undefined,
|
|
1498
|
-
};
|
|
1204
|
+
return (0, smithy_client_1.take)(output, {
|
|
1205
|
+
AnalyzeLendingModelVersion: smithy_client_1.expectString,
|
|
1206
|
+
DocumentMetadata: smithy_client_1._json,
|
|
1207
|
+
JobStatus: smithy_client_1.expectString,
|
|
1208
|
+
NextToken: smithy_client_1.expectString,
|
|
1209
|
+
Results: (_) => de_LendingResultList(_, context),
|
|
1210
|
+
StatusMessage: smithy_client_1.expectString,
|
|
1211
|
+
Warnings: smithy_client_1._json,
|
|
1212
|
+
});
|
|
1499
1213
|
};
|
|
1500
1214
|
const de_HumanLoopActivationOutput = (output, context) => {
|
|
1501
|
-
return {
|
|
1502
|
-
HumanLoopActivationConditionsEvaluationResults:
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
HumanLoopActivationReasons: output.HumanLoopActivationReasons != null
|
|
1506
|
-
? de_HumanLoopActivationReasons(output.HumanLoopActivationReasons, context)
|
|
1507
|
-
: undefined,
|
|
1508
|
-
HumanLoopArn: (0, smithy_client_1.expectString)(output.HumanLoopArn),
|
|
1509
|
-
};
|
|
1510
|
-
};
|
|
1511
|
-
const de_HumanLoopActivationReasons = (output, context) => {
|
|
1512
|
-
const retVal = (output || [])
|
|
1513
|
-
.filter((e) => e != null)
|
|
1514
|
-
.map((entry) => {
|
|
1515
|
-
if (entry === null) {
|
|
1516
|
-
return null;
|
|
1517
|
-
}
|
|
1518
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1215
|
+
return (0, smithy_client_1.take)(output, {
|
|
1216
|
+
HumanLoopActivationConditionsEvaluationResults: (_) => new smithy_client_1.LazyJsonString(_),
|
|
1217
|
+
HumanLoopActivationReasons: smithy_client_1._json,
|
|
1218
|
+
HumanLoopArn: smithy_client_1.expectString,
|
|
1519
1219
|
});
|
|
1520
|
-
return retVal;
|
|
1521
|
-
};
|
|
1522
|
-
const de_HumanLoopQuotaExceededException = (output, context) => {
|
|
1523
|
-
return {
|
|
1524
|
-
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1525
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1526
|
-
QuotaCode: (0, smithy_client_1.expectString)(output.QuotaCode),
|
|
1527
|
-
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
1528
|
-
ServiceCode: (0, smithy_client_1.expectString)(output.ServiceCode),
|
|
1529
|
-
};
|
|
1530
|
-
};
|
|
1531
|
-
const de_IdempotentParameterMismatchException = (output, context) => {
|
|
1532
|
-
return {
|
|
1533
|
-
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1534
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1535
|
-
};
|
|
1536
1220
|
};
|
|
1537
1221
|
const de_IdentityDocument = (output, context) => {
|
|
1538
|
-
return {
|
|
1539
|
-
Blocks:
|
|
1540
|
-
DocumentIndex:
|
|
1541
|
-
IdentityDocumentFields:
|
|
1542
|
-
|
|
1543
|
-
: undefined,
|
|
1544
|
-
};
|
|
1222
|
+
return (0, smithy_client_1.take)(output, {
|
|
1223
|
+
Blocks: (_) => de_BlockList(_, context),
|
|
1224
|
+
DocumentIndex: smithy_client_1.expectInt32,
|
|
1225
|
+
IdentityDocumentFields: (_) => de_IdentityDocumentFieldList(_, context),
|
|
1226
|
+
});
|
|
1545
1227
|
};
|
|
1546
1228
|
const de_IdentityDocumentField = (output, context) => {
|
|
1547
|
-
return {
|
|
1548
|
-
Type:
|
|
1549
|
-
ValueDetection:
|
|
1550
|
-
};
|
|
1229
|
+
return (0, smithy_client_1.take)(output, {
|
|
1230
|
+
Type: (_) => de_AnalyzeIDDetections(_, context),
|
|
1231
|
+
ValueDetection: (_) => de_AnalyzeIDDetections(_, context),
|
|
1232
|
+
});
|
|
1551
1233
|
};
|
|
1552
1234
|
const de_IdentityDocumentFieldList = (output, context) => {
|
|
1553
1235
|
const retVal = (output || [])
|
|
1554
1236
|
.filter((e) => e != null)
|
|
1555
1237
|
.map((entry) => {
|
|
1556
|
-
if (entry === null) {
|
|
1557
|
-
return null;
|
|
1558
|
-
}
|
|
1559
1238
|
return de_IdentityDocumentField(entry, context);
|
|
1560
1239
|
});
|
|
1561
1240
|
return retVal;
|
|
@@ -1564,147 +1243,77 @@ const de_IdentityDocumentList = (output, context) => {
|
|
|
1564
1243
|
const retVal = (output || [])
|
|
1565
1244
|
.filter((e) => e != null)
|
|
1566
1245
|
.map((entry) => {
|
|
1567
|
-
if (entry === null) {
|
|
1568
|
-
return null;
|
|
1569
|
-
}
|
|
1570
1246
|
return de_IdentityDocument(entry, context);
|
|
1571
1247
|
});
|
|
1572
1248
|
return retVal;
|
|
1573
1249
|
};
|
|
1574
|
-
const de_IdList = (output, context) => {
|
|
1575
|
-
const retVal = (output || [])
|
|
1576
|
-
.filter((e) => e != null)
|
|
1577
|
-
.map((entry) => {
|
|
1578
|
-
if (entry === null) {
|
|
1579
|
-
return null;
|
|
1580
|
-
}
|
|
1581
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1582
|
-
});
|
|
1583
|
-
return retVal;
|
|
1584
|
-
};
|
|
1585
|
-
const de_InternalServerError = (output, context) => {
|
|
1586
|
-
return {
|
|
1587
|
-
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1588
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1589
|
-
};
|
|
1590
|
-
};
|
|
1591
|
-
const de_InvalidJobIdException = (output, context) => {
|
|
1592
|
-
return {
|
|
1593
|
-
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1594
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1595
|
-
};
|
|
1596
|
-
};
|
|
1597
|
-
const de_InvalidKMSKeyException = (output, context) => {
|
|
1598
|
-
return {
|
|
1599
|
-
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1600
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1601
|
-
};
|
|
1602
|
-
};
|
|
1603
|
-
const de_InvalidParameterException = (output, context) => {
|
|
1604
|
-
return {
|
|
1605
|
-
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1606
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1607
|
-
};
|
|
1608
|
-
};
|
|
1609
|
-
const de_InvalidS3ObjectException = (output, context) => {
|
|
1610
|
-
return {
|
|
1611
|
-
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1612
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1613
|
-
};
|
|
1614
|
-
};
|
|
1615
1250
|
const de_LendingDetection = (output, context) => {
|
|
1616
|
-
return {
|
|
1617
|
-
Confidence:
|
|
1618
|
-
Geometry:
|
|
1619
|
-
SelectionStatus:
|
|
1620
|
-
Text:
|
|
1621
|
-
};
|
|
1251
|
+
return (0, smithy_client_1.take)(output, {
|
|
1252
|
+
Confidence: smithy_client_1.limitedParseFloat32,
|
|
1253
|
+
Geometry: (_) => de_Geometry(_, context),
|
|
1254
|
+
SelectionStatus: smithy_client_1.expectString,
|
|
1255
|
+
Text: smithy_client_1.expectString,
|
|
1256
|
+
});
|
|
1622
1257
|
};
|
|
1623
1258
|
const de_LendingDetectionList = (output, context) => {
|
|
1624
1259
|
const retVal = (output || [])
|
|
1625
1260
|
.filter((e) => e != null)
|
|
1626
1261
|
.map((entry) => {
|
|
1627
|
-
if (entry === null) {
|
|
1628
|
-
return null;
|
|
1629
|
-
}
|
|
1630
1262
|
return de_LendingDetection(entry, context);
|
|
1631
1263
|
});
|
|
1632
1264
|
return retVal;
|
|
1633
1265
|
};
|
|
1634
1266
|
const de_LendingDocument = (output, context) => {
|
|
1635
|
-
return {
|
|
1636
|
-
LendingFields:
|
|
1637
|
-
SignatureDetections:
|
|
1638
|
-
};
|
|
1267
|
+
return (0, smithy_client_1.take)(output, {
|
|
1268
|
+
LendingFields: (_) => de_LendingFieldList(_, context),
|
|
1269
|
+
SignatureDetections: (_) => de_SignatureDetectionList(_, context),
|
|
1270
|
+
});
|
|
1639
1271
|
};
|
|
1640
1272
|
const de_LendingField = (output, context) => {
|
|
1641
|
-
return {
|
|
1642
|
-
KeyDetection:
|
|
1643
|
-
Type:
|
|
1644
|
-
ValueDetections:
|
|
1645
|
-
};
|
|
1273
|
+
return (0, smithy_client_1.take)(output, {
|
|
1274
|
+
KeyDetection: (_) => de_LendingDetection(_, context),
|
|
1275
|
+
Type: smithy_client_1.expectString,
|
|
1276
|
+
ValueDetections: (_) => de_LendingDetectionList(_, context),
|
|
1277
|
+
});
|
|
1646
1278
|
};
|
|
1647
1279
|
const de_LendingFieldList = (output, context) => {
|
|
1648
1280
|
const retVal = (output || [])
|
|
1649
1281
|
.filter((e) => e != null)
|
|
1650
1282
|
.map((entry) => {
|
|
1651
|
-
if (entry === null) {
|
|
1652
|
-
return null;
|
|
1653
|
-
}
|
|
1654
1283
|
return de_LendingField(entry, context);
|
|
1655
1284
|
});
|
|
1656
1285
|
return retVal;
|
|
1657
1286
|
};
|
|
1658
1287
|
const de_LendingResult = (output, context) => {
|
|
1659
|
-
return {
|
|
1660
|
-
Extractions:
|
|
1661
|
-
Page:
|
|
1662
|
-
PageClassification:
|
|
1663
|
-
};
|
|
1288
|
+
return (0, smithy_client_1.take)(output, {
|
|
1289
|
+
Extractions: (_) => de_ExtractionList(_, context),
|
|
1290
|
+
Page: smithy_client_1.expectInt32,
|
|
1291
|
+
PageClassification: (_) => de_PageClassification(_, context),
|
|
1292
|
+
});
|
|
1664
1293
|
};
|
|
1665
1294
|
const de_LendingResultList = (output, context) => {
|
|
1666
1295
|
const retVal = (output || [])
|
|
1667
1296
|
.filter((e) => e != null)
|
|
1668
1297
|
.map((entry) => {
|
|
1669
|
-
if (entry === null) {
|
|
1670
|
-
return null;
|
|
1671
|
-
}
|
|
1672
1298
|
return de_LendingResult(entry, context);
|
|
1673
1299
|
});
|
|
1674
1300
|
return retVal;
|
|
1675
1301
|
};
|
|
1676
|
-
const de_LendingSummary = (output, context) => {
|
|
1677
|
-
return {
|
|
1678
|
-
DocumentGroups: output.DocumentGroups != null ? de_DocumentGroupList(output.DocumentGroups, context) : undefined,
|
|
1679
|
-
UndetectedDocumentTypes: output.UndetectedDocumentTypes != null
|
|
1680
|
-
? de_UndetectedDocumentTypeList(output.UndetectedDocumentTypes, context)
|
|
1681
|
-
: undefined,
|
|
1682
|
-
};
|
|
1683
|
-
};
|
|
1684
|
-
const de_LimitExceededException = (output, context) => {
|
|
1685
|
-
return {
|
|
1686
|
-
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1687
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1688
|
-
};
|
|
1689
|
-
};
|
|
1690
1302
|
const de_LineItemFields = (output, context) => {
|
|
1691
|
-
return {
|
|
1692
|
-
LineItemExpenseFields:
|
|
1693
|
-
};
|
|
1303
|
+
return (0, smithy_client_1.take)(output, {
|
|
1304
|
+
LineItemExpenseFields: (_) => de_ExpenseFieldList(_, context),
|
|
1305
|
+
});
|
|
1694
1306
|
};
|
|
1695
1307
|
const de_LineItemGroup = (output, context) => {
|
|
1696
|
-
return {
|
|
1697
|
-
LineItemGroupIndex:
|
|
1698
|
-
LineItems:
|
|
1699
|
-
};
|
|
1308
|
+
return (0, smithy_client_1.take)(output, {
|
|
1309
|
+
LineItemGroupIndex: smithy_client_1.expectInt32,
|
|
1310
|
+
LineItems: (_) => de_LineItemList(_, context),
|
|
1311
|
+
});
|
|
1700
1312
|
};
|
|
1701
1313
|
const de_LineItemGroupList = (output, context) => {
|
|
1702
1314
|
const retVal = (output || [])
|
|
1703
1315
|
.filter((e) => e != null)
|
|
1704
1316
|
.map((entry) => {
|
|
1705
|
-
if (entry === null) {
|
|
1706
|
-
return null;
|
|
1707
|
-
}
|
|
1708
1317
|
return de_LineItemGroup(entry, context);
|
|
1709
1318
|
});
|
|
1710
1319
|
return retVal;
|
|
@@ -1713,243 +1322,58 @@ const de_LineItemList = (output, context) => {
|
|
|
1713
1322
|
const retVal = (output || [])
|
|
1714
1323
|
.filter((e) => e != null)
|
|
1715
1324
|
.map((entry) => {
|
|
1716
|
-
if (entry === null) {
|
|
1717
|
-
return null;
|
|
1718
|
-
}
|
|
1719
1325
|
return de_LineItemFields(entry, context);
|
|
1720
1326
|
});
|
|
1721
1327
|
return retVal;
|
|
1722
1328
|
};
|
|
1723
|
-
const de_NormalizedValue = (output, context) => {
|
|
1724
|
-
return {
|
|
1725
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1726
|
-
ValueType: (0, smithy_client_1.expectString)(output.ValueType),
|
|
1727
|
-
};
|
|
1728
|
-
};
|
|
1729
1329
|
const de_PageClassification = (output, context) => {
|
|
1730
|
-
return {
|
|
1731
|
-
PageNumber:
|
|
1732
|
-
PageType:
|
|
1733
|
-
};
|
|
1734
|
-
};
|
|
1735
|
-
const de_PageList = (output, context) => {
|
|
1736
|
-
const retVal = (output || [])
|
|
1737
|
-
.filter((e) => e != null)
|
|
1738
|
-
.map((entry) => {
|
|
1739
|
-
if (entry === null) {
|
|
1740
|
-
return null;
|
|
1741
|
-
}
|
|
1742
|
-
return (0, smithy_client_1.expectInt32)(entry);
|
|
1330
|
+
return (0, smithy_client_1.take)(output, {
|
|
1331
|
+
PageNumber: (_) => de_PredictionList(_, context),
|
|
1332
|
+
PageType: (_) => de_PredictionList(_, context),
|
|
1743
1333
|
});
|
|
1744
|
-
return retVal;
|
|
1745
|
-
};
|
|
1746
|
-
const de_Pages = (output, context) => {
|
|
1747
|
-
const retVal = (output || [])
|
|
1748
|
-
.filter((e) => e != null)
|
|
1749
|
-
.map((entry) => {
|
|
1750
|
-
if (entry === null) {
|
|
1751
|
-
return null;
|
|
1752
|
-
}
|
|
1753
|
-
return (0, smithy_client_1.expectInt32)(entry);
|
|
1754
|
-
});
|
|
1755
|
-
return retVal;
|
|
1756
1334
|
};
|
|
1757
1335
|
const de_Point = (output, context) => {
|
|
1758
|
-
return {
|
|
1759
|
-
X:
|
|
1760
|
-
Y:
|
|
1761
|
-
};
|
|
1336
|
+
return (0, smithy_client_1.take)(output, {
|
|
1337
|
+
X: smithy_client_1.limitedParseFloat32,
|
|
1338
|
+
Y: smithy_client_1.limitedParseFloat32,
|
|
1339
|
+
});
|
|
1762
1340
|
};
|
|
1763
1341
|
const de_Polygon = (output, context) => {
|
|
1764
1342
|
const retVal = (output || [])
|
|
1765
1343
|
.filter((e) => e != null)
|
|
1766
1344
|
.map((entry) => {
|
|
1767
|
-
if (entry === null) {
|
|
1768
|
-
return null;
|
|
1769
|
-
}
|
|
1770
1345
|
return de_Point(entry, context);
|
|
1771
1346
|
});
|
|
1772
1347
|
return retVal;
|
|
1773
1348
|
};
|
|
1774
1349
|
const de_Prediction = (output, context) => {
|
|
1775
|
-
return {
|
|
1776
|
-
Confidence:
|
|
1777
|
-
Value:
|
|
1778
|
-
};
|
|
1350
|
+
return (0, smithy_client_1.take)(output, {
|
|
1351
|
+
Confidence: smithy_client_1.limitedParseFloat32,
|
|
1352
|
+
Value: smithy_client_1.expectString,
|
|
1353
|
+
});
|
|
1779
1354
|
};
|
|
1780
1355
|
const de_PredictionList = (output, context) => {
|
|
1781
1356
|
const retVal = (output || [])
|
|
1782
1357
|
.filter((e) => e != null)
|
|
1783
1358
|
.map((entry) => {
|
|
1784
|
-
if (entry === null) {
|
|
1785
|
-
return null;
|
|
1786
|
-
}
|
|
1787
1359
|
return de_Prediction(entry, context);
|
|
1788
1360
|
});
|
|
1789
1361
|
return retVal;
|
|
1790
1362
|
};
|
|
1791
|
-
const de_ProvisionedThroughputExceededException = (output, context) => {
|
|
1792
|
-
return {
|
|
1793
|
-
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1794
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1795
|
-
};
|
|
1796
|
-
};
|
|
1797
|
-
const de_Query = (output, context) => {
|
|
1798
|
-
return {
|
|
1799
|
-
Alias: (0, smithy_client_1.expectString)(output.Alias),
|
|
1800
|
-
Pages: output.Pages != null ? de_QueryPages(output.Pages, context) : undefined,
|
|
1801
|
-
Text: (0, smithy_client_1.expectString)(output.Text),
|
|
1802
|
-
};
|
|
1803
|
-
};
|
|
1804
|
-
const de_QueryPages = (output, context) => {
|
|
1805
|
-
const retVal = (output || [])
|
|
1806
|
-
.filter((e) => e != null)
|
|
1807
|
-
.map((entry) => {
|
|
1808
|
-
if (entry === null) {
|
|
1809
|
-
return null;
|
|
1810
|
-
}
|
|
1811
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1812
|
-
});
|
|
1813
|
-
return retVal;
|
|
1814
|
-
};
|
|
1815
|
-
const de_Relationship = (output, context) => {
|
|
1816
|
-
return {
|
|
1817
|
-
Ids: output.Ids != null ? de_IdList(output.Ids, context) : undefined,
|
|
1818
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1819
|
-
};
|
|
1820
|
-
};
|
|
1821
|
-
const de_RelationshipList = (output, context) => {
|
|
1822
|
-
const retVal = (output || [])
|
|
1823
|
-
.filter((e) => e != null)
|
|
1824
|
-
.map((entry) => {
|
|
1825
|
-
if (entry === null) {
|
|
1826
|
-
return null;
|
|
1827
|
-
}
|
|
1828
|
-
return de_Relationship(entry, context);
|
|
1829
|
-
});
|
|
1830
|
-
return retVal;
|
|
1831
|
-
};
|
|
1832
1363
|
const de_SignatureDetection = (output, context) => {
|
|
1833
|
-
return {
|
|
1834
|
-
Confidence:
|
|
1835
|
-
Geometry:
|
|
1836
|
-
};
|
|
1364
|
+
return (0, smithy_client_1.take)(output, {
|
|
1365
|
+
Confidence: smithy_client_1.limitedParseFloat32,
|
|
1366
|
+
Geometry: (_) => de_Geometry(_, context),
|
|
1367
|
+
});
|
|
1837
1368
|
};
|
|
1838
1369
|
const de_SignatureDetectionList = (output, context) => {
|
|
1839
1370
|
const retVal = (output || [])
|
|
1840
1371
|
.filter((e) => e != null)
|
|
1841
1372
|
.map((entry) => {
|
|
1842
|
-
if (entry === null) {
|
|
1843
|
-
return null;
|
|
1844
|
-
}
|
|
1845
1373
|
return de_SignatureDetection(entry, context);
|
|
1846
1374
|
});
|
|
1847
1375
|
return retVal;
|
|
1848
1376
|
};
|
|
1849
|
-
const de_SplitDocument = (output, context) => {
|
|
1850
|
-
return {
|
|
1851
|
-
Index: (0, smithy_client_1.expectInt32)(output.Index),
|
|
1852
|
-
Pages: output.Pages != null ? de_PageList(output.Pages, context) : undefined,
|
|
1853
|
-
};
|
|
1854
|
-
};
|
|
1855
|
-
const de_SplitDocumentList = (output, context) => {
|
|
1856
|
-
const retVal = (output || [])
|
|
1857
|
-
.filter((e) => e != null)
|
|
1858
|
-
.map((entry) => {
|
|
1859
|
-
if (entry === null) {
|
|
1860
|
-
return null;
|
|
1861
|
-
}
|
|
1862
|
-
return de_SplitDocument(entry, context);
|
|
1863
|
-
});
|
|
1864
|
-
return retVal;
|
|
1865
|
-
};
|
|
1866
|
-
const de_StartDocumentAnalysisResponse = (output, context) => {
|
|
1867
|
-
return {
|
|
1868
|
-
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
1869
|
-
};
|
|
1870
|
-
};
|
|
1871
|
-
const de_StartDocumentTextDetectionResponse = (output, context) => {
|
|
1872
|
-
return {
|
|
1873
|
-
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
1874
|
-
};
|
|
1875
|
-
};
|
|
1876
|
-
const de_StartExpenseAnalysisResponse = (output, context) => {
|
|
1877
|
-
return {
|
|
1878
|
-
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
1879
|
-
};
|
|
1880
|
-
};
|
|
1881
|
-
const de_StartLendingAnalysisResponse = (output, context) => {
|
|
1882
|
-
return {
|
|
1883
|
-
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
1884
|
-
};
|
|
1885
|
-
};
|
|
1886
|
-
const de_StringList = (output, context) => {
|
|
1887
|
-
const retVal = (output || [])
|
|
1888
|
-
.filter((e) => e != null)
|
|
1889
|
-
.map((entry) => {
|
|
1890
|
-
if (entry === null) {
|
|
1891
|
-
return null;
|
|
1892
|
-
}
|
|
1893
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1894
|
-
});
|
|
1895
|
-
return retVal;
|
|
1896
|
-
};
|
|
1897
|
-
const de_ThrottlingException = (output, context) => {
|
|
1898
|
-
return {
|
|
1899
|
-
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1900
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1901
|
-
};
|
|
1902
|
-
};
|
|
1903
|
-
const de_UndetectedDocumentTypeList = (output, context) => {
|
|
1904
|
-
const retVal = (output || [])
|
|
1905
|
-
.filter((e) => e != null)
|
|
1906
|
-
.map((entry) => {
|
|
1907
|
-
if (entry === null) {
|
|
1908
|
-
return null;
|
|
1909
|
-
}
|
|
1910
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1911
|
-
});
|
|
1912
|
-
return retVal;
|
|
1913
|
-
};
|
|
1914
|
-
const de_UndetectedSignature = (output, context) => {
|
|
1915
|
-
return {
|
|
1916
|
-
Page: (0, smithy_client_1.expectInt32)(output.Page),
|
|
1917
|
-
};
|
|
1918
|
-
};
|
|
1919
|
-
const de_UndetectedSignatureList = (output, context) => {
|
|
1920
|
-
const retVal = (output || [])
|
|
1921
|
-
.filter((e) => e != null)
|
|
1922
|
-
.map((entry) => {
|
|
1923
|
-
if (entry === null) {
|
|
1924
|
-
return null;
|
|
1925
|
-
}
|
|
1926
|
-
return de_UndetectedSignature(entry, context);
|
|
1927
|
-
});
|
|
1928
|
-
return retVal;
|
|
1929
|
-
};
|
|
1930
|
-
const de_UnsupportedDocumentException = (output, context) => {
|
|
1931
|
-
return {
|
|
1932
|
-
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1933
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1934
|
-
};
|
|
1935
|
-
};
|
|
1936
|
-
const de_Warning = (output, context) => {
|
|
1937
|
-
return {
|
|
1938
|
-
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
1939
|
-
Pages: output.Pages != null ? de_Pages(output.Pages, context) : undefined,
|
|
1940
|
-
};
|
|
1941
|
-
};
|
|
1942
|
-
const de_Warnings = (output, context) => {
|
|
1943
|
-
const retVal = (output || [])
|
|
1944
|
-
.filter((e) => e != null)
|
|
1945
|
-
.map((entry) => {
|
|
1946
|
-
if (entry === null) {
|
|
1947
|
-
return null;
|
|
1948
|
-
}
|
|
1949
|
-
return de_Warning(entry, context);
|
|
1950
|
-
});
|
|
1951
|
-
return retVal;
|
|
1952
|
-
};
|
|
1953
1377
|
const deserializeMetadata = (output) => ({
|
|
1954
1378
|
httpStatusCode: output.statusCode,
|
|
1955
1379
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -1963,6 +1387,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
1963
1387
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1964
1388
|
};
|
|
1965
1389
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1390
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(TextractServiceException_1.TextractServiceException);
|
|
1966
1391
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1967
1392
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1968
1393
|
const contents = {
|