@aws-sdk/client-textract 3.379.1 → 3.382.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-types/models/models_0.d.ts +211 -0
- package/package.json +5 -5
|
@@ -27,16 +27,19 @@ export declare class AccessDeniedException extends __BaseException {
|
|
|
27
27
|
*/
|
|
28
28
|
export interface S3Object {
|
|
29
29
|
/**
|
|
30
|
+
* @public
|
|
30
31
|
* <p>The name of the S3 bucket. Note that the # character is not valid in the file
|
|
31
32
|
* name.</p>
|
|
32
33
|
*/
|
|
33
34
|
Bucket?: string;
|
|
34
35
|
/**
|
|
36
|
+
* @public
|
|
35
37
|
* <p>The file name of the input document. Synchronous operations can use image files that are
|
|
36
38
|
* in JPEG or PNG format. Asynchronous operations also support PDF and TIFF format files.</p>
|
|
37
39
|
*/
|
|
38
40
|
Name?: string;
|
|
39
41
|
/**
|
|
42
|
+
* @public
|
|
40
43
|
* <p>If the bucket has versioning enabled, you can specify the object version. </p>
|
|
41
44
|
*/
|
|
42
45
|
Version?: string;
|
|
@@ -62,6 +65,7 @@ export interface S3Object {
|
|
|
62
65
|
*/
|
|
63
66
|
export interface Document {
|
|
64
67
|
/**
|
|
68
|
+
* @public
|
|
65
69
|
* <p>A blob of base64-encoded document bytes. The maximum size of a document that's provided
|
|
66
70
|
* in a blob of bytes is 5 MB. The document bytes must be in PNG or JPEG format.</p>
|
|
67
71
|
* <p>If you're using an AWS SDK to call Amazon Textract, you might not need to base64-encode
|
|
@@ -69,6 +73,7 @@ export interface Document {
|
|
|
69
73
|
*/
|
|
70
74
|
Bytes?: Uint8Array;
|
|
71
75
|
/**
|
|
76
|
+
* @public
|
|
72
77
|
* <p>Identifies an S3 object as the document source. The maximum size of a document that's
|
|
73
78
|
* stored in an S3 bucket is 5 MB.</p>
|
|
74
79
|
*/
|
|
@@ -107,6 +112,7 @@ export type ContentClassifier = (typeof ContentClassifier)[keyof typeof ContentC
|
|
|
107
112
|
*/
|
|
108
113
|
export interface HumanLoopDataAttributes {
|
|
109
114
|
/**
|
|
115
|
+
* @public
|
|
110
116
|
* <p>Sets whether the input image is free of personally identifiable information or adult
|
|
111
117
|
* content.</p>
|
|
112
118
|
*/
|
|
@@ -119,15 +125,18 @@ export interface HumanLoopDataAttributes {
|
|
|
119
125
|
*/
|
|
120
126
|
export interface HumanLoopConfig {
|
|
121
127
|
/**
|
|
128
|
+
* @public
|
|
122
129
|
* <p>The name of the human workflow used for this image. This should be kept unique within a
|
|
123
130
|
* region.</p>
|
|
124
131
|
*/
|
|
125
132
|
HumanLoopName: string | undefined;
|
|
126
133
|
/**
|
|
134
|
+
* @public
|
|
127
135
|
* <p>The Amazon Resource Name (ARN) of the flow definition.</p>
|
|
128
136
|
*/
|
|
129
137
|
FlowDefinitionArn: string | undefined;
|
|
130
138
|
/**
|
|
139
|
+
* @public
|
|
131
140
|
* <p>Sets attributes of the input data.</p>
|
|
132
141
|
*/
|
|
133
142
|
DataAttributes?: HumanLoopDataAttributes;
|
|
@@ -138,14 +147,17 @@ export interface HumanLoopConfig {
|
|
|
138
147
|
*/
|
|
139
148
|
export interface Query {
|
|
140
149
|
/**
|
|
150
|
+
* @public
|
|
141
151
|
* <p>Question that Amazon Textract will apply to the document. An example would be "What is the customer's SSN?"</p>
|
|
142
152
|
*/
|
|
143
153
|
Text: string | undefined;
|
|
144
154
|
/**
|
|
155
|
+
* @public
|
|
145
156
|
* <p>Alias attached to the query, for ease of location.</p>
|
|
146
157
|
*/
|
|
147
158
|
Alias?: string;
|
|
148
159
|
/**
|
|
160
|
+
* @public
|
|
149
161
|
* <p>Pages is a parameter that the user inputs to specify which pages to apply a query to. The following is a
|
|
150
162
|
* list of rules for using this parameter.</p>
|
|
151
163
|
* <ul>
|
|
@@ -176,6 +188,7 @@ export interface Query {
|
|
|
176
188
|
*/
|
|
177
189
|
export interface QueriesConfig {
|
|
178
190
|
/**
|
|
191
|
+
* @public
|
|
179
192
|
* <p></p>
|
|
180
193
|
*/
|
|
181
194
|
Queries: Query[] | undefined;
|
|
@@ -185,6 +198,7 @@ export interface QueriesConfig {
|
|
|
185
198
|
*/
|
|
186
199
|
export interface AnalyzeDocumentRequest {
|
|
187
200
|
/**
|
|
201
|
+
* @public
|
|
188
202
|
* <p>The input document as base64-encoded bytes or an Amazon S3 object. If you use the AWS
|
|
189
203
|
* CLI to call Amazon Textract operations, you can't pass image bytes. The document must be an
|
|
190
204
|
* image in JPEG, PNG, PDF, or TIFF format.</p>
|
|
@@ -193,6 +207,7 @@ export interface AnalyzeDocumentRequest {
|
|
|
193
207
|
*/
|
|
194
208
|
Document: Document | undefined;
|
|
195
209
|
/**
|
|
210
|
+
* @public
|
|
196
211
|
* <p>A list of the types of analysis to perform. Add TABLES to the list to return information
|
|
197
212
|
* about the tables that are detected in the input document. Add FORMS to return detected form
|
|
198
213
|
* data. Add SIGNATURES to return the locations of detected signatures. To perform both forms
|
|
@@ -203,11 +218,13 @@ export interface AnalyzeDocumentRequest {
|
|
|
203
218
|
*/
|
|
204
219
|
FeatureTypes: (FeatureType | string)[] | undefined;
|
|
205
220
|
/**
|
|
221
|
+
* @public
|
|
206
222
|
* <p>Sets the configuration for the human in the loop workflow for analyzing
|
|
207
223
|
* documents.</p>
|
|
208
224
|
*/
|
|
209
225
|
HumanLoopConfig?: HumanLoopConfig;
|
|
210
226
|
/**
|
|
227
|
+
* @public
|
|
211
228
|
* <p>Contains Queries and the alias for those Queries, as determined by the input. </p>
|
|
212
229
|
*/
|
|
213
230
|
QueriesConfig?: QueriesConfig;
|
|
@@ -272,21 +289,25 @@ export type EntityType = (typeof EntityType)[keyof typeof EntityType];
|
|
|
272
289
|
*/
|
|
273
290
|
export interface BoundingBox {
|
|
274
291
|
/**
|
|
292
|
+
* @public
|
|
275
293
|
* <p>The width of the bounding box as a ratio of the overall document page
|
|
276
294
|
* width.</p>
|
|
277
295
|
*/
|
|
278
296
|
Width?: number;
|
|
279
297
|
/**
|
|
298
|
+
* @public
|
|
280
299
|
* <p>The height of the bounding box as a ratio of the overall document page
|
|
281
300
|
* height.</p>
|
|
282
301
|
*/
|
|
283
302
|
Height?: number;
|
|
284
303
|
/**
|
|
304
|
+
* @public
|
|
285
305
|
* <p>The left coordinate of the bounding box as a ratio of overall document page
|
|
286
306
|
* width.</p>
|
|
287
307
|
*/
|
|
288
308
|
Left?: number;
|
|
289
309
|
/**
|
|
310
|
+
* @public
|
|
290
311
|
* <p>The top coordinate of the bounding box as a ratio of overall document page
|
|
291
312
|
* height.</p>
|
|
292
313
|
*/
|
|
@@ -305,10 +326,12 @@ export interface BoundingBox {
|
|
|
305
326
|
*/
|
|
306
327
|
export interface Point {
|
|
307
328
|
/**
|
|
329
|
+
* @public
|
|
308
330
|
* <p>The value of the X coordinate for a point on a <code>Polygon</code>.</p>
|
|
309
331
|
*/
|
|
310
332
|
X?: number;
|
|
311
333
|
/**
|
|
334
|
+
* @public
|
|
312
335
|
* <p>The value of the Y coordinate for a point on a <code>Polygon</code>.</p>
|
|
313
336
|
*/
|
|
314
337
|
Y?: number;
|
|
@@ -320,11 +343,13 @@ export interface Point {
|
|
|
320
343
|
*/
|
|
321
344
|
export interface Geometry {
|
|
322
345
|
/**
|
|
346
|
+
* @public
|
|
323
347
|
* <p>An axis-aligned coarse representation of the location of the recognized item on the
|
|
324
348
|
* document page.</p>
|
|
325
349
|
*/
|
|
326
350
|
BoundingBox?: BoundingBox;
|
|
327
351
|
/**
|
|
352
|
+
* @public
|
|
328
353
|
* <p>Within the bounding box, a fine-grained polygon around the recognized item.</p>
|
|
329
354
|
*/
|
|
330
355
|
Polygon?: Point[];
|
|
@@ -358,6 +383,7 @@ export type RelationshipType = (typeof RelationshipType)[keyof typeof Relationsh
|
|
|
358
383
|
*/
|
|
359
384
|
export interface Relationship {
|
|
360
385
|
/**
|
|
386
|
+
* @public
|
|
361
387
|
* <p>The type of relationship between the blocks in the IDs array and the current block. The
|
|
362
388
|
* following list describes the relationship types that can be returned. </p>
|
|
363
389
|
* <ul>
|
|
@@ -401,6 +427,7 @@ export interface Relationship {
|
|
|
401
427
|
*/
|
|
402
428
|
Type?: RelationshipType | string;
|
|
403
429
|
/**
|
|
430
|
+
* @public
|
|
404
431
|
* <p>An
|
|
405
432
|
* array of IDs for related blocks. You can get the type of the relationship from the
|
|
406
433
|
* <code>Type</code> element.</p>
|
|
@@ -448,6 +475,7 @@ export type TextType = (typeof TextType)[keyof typeof TextType];
|
|
|
448
475
|
*/
|
|
449
476
|
export interface Block {
|
|
450
477
|
/**
|
|
478
|
+
* @public
|
|
451
479
|
* <p>The type of text item that's recognized. In operations for text detection, the following
|
|
452
480
|
* types are returned:</p>
|
|
453
481
|
* <ul>
|
|
@@ -546,53 +574,63 @@ export interface Block {
|
|
|
546
574
|
*/
|
|
547
575
|
BlockType?: BlockType | string;
|
|
548
576
|
/**
|
|
577
|
+
* @public
|
|
549
578
|
* <p>The confidence score that Amazon Textract has in the accuracy of the recognized text and
|
|
550
579
|
* the accuracy of the geometry points around the recognized text.</p>
|
|
551
580
|
*/
|
|
552
581
|
Confidence?: number;
|
|
553
582
|
/**
|
|
583
|
+
* @public
|
|
554
584
|
* <p>The word or line of text that's recognized by Amazon Textract. </p>
|
|
555
585
|
*/
|
|
556
586
|
Text?: string;
|
|
557
587
|
/**
|
|
588
|
+
* @public
|
|
558
589
|
* <p>The kind of text that Amazon Textract has detected. Can check for handwritten text and
|
|
559
590
|
* printed text.</p>
|
|
560
591
|
*/
|
|
561
592
|
TextType?: TextType | string;
|
|
562
593
|
/**
|
|
594
|
+
* @public
|
|
563
595
|
* <p>The row in which a table cell is located. The first row position is 1.
|
|
564
596
|
* <code>RowIndex</code> isn't returned by <code>DetectDocumentText</code> and
|
|
565
597
|
* <code>GetDocumentTextDetection</code>.</p>
|
|
566
598
|
*/
|
|
567
599
|
RowIndex?: number;
|
|
568
600
|
/**
|
|
601
|
+
* @public
|
|
569
602
|
* <p>The column in which a table cell appears. The first column position is 1.
|
|
570
603
|
* <code>ColumnIndex</code> isn't returned by <code>DetectDocumentText</code> and
|
|
571
604
|
* <code>GetDocumentTextDetection</code>.</p>
|
|
572
605
|
*/
|
|
573
606
|
ColumnIndex?: number;
|
|
574
607
|
/**
|
|
608
|
+
* @public
|
|
575
609
|
* <p>The number of rows that a table cell spans. <code>RowSpan</code> isn't returned by
|
|
576
610
|
* <code>DetectDocumentText</code> and <code>GetDocumentTextDetection</code>.</p>
|
|
577
611
|
*/
|
|
578
612
|
RowSpan?: number;
|
|
579
613
|
/**
|
|
614
|
+
* @public
|
|
580
615
|
* <p>The number of columns that a table cell spans. <code>ColumnSpan</code> isn't returned by
|
|
581
616
|
* <code>DetectDocumentText</code> and <code>GetDocumentTextDetection</code>. </p>
|
|
582
617
|
*/
|
|
583
618
|
ColumnSpan?: number;
|
|
584
619
|
/**
|
|
620
|
+
* @public
|
|
585
621
|
* <p>The location of the recognized text on the image. It includes an axis-aligned, coarse
|
|
586
622
|
* bounding box that surrounds the text, and a finer-grain polygon for more accurate spatial
|
|
587
623
|
* information. </p>
|
|
588
624
|
*/
|
|
589
625
|
Geometry?: Geometry;
|
|
590
626
|
/**
|
|
627
|
+
* @public
|
|
591
628
|
* <p>The identifier for the recognized text. The identifier is only unique for a single
|
|
592
629
|
* operation. </p>
|
|
593
630
|
*/
|
|
594
631
|
Id?: string;
|
|
595
632
|
/**
|
|
633
|
+
* @public
|
|
596
634
|
* <p>A list of relationship objects that describe how blocks are related to each other. For
|
|
597
635
|
* example, a LINE block object contains a CHILD relationship type with the WORD blocks that
|
|
598
636
|
* make up the line of text. There aren't Relationship objects in the list for relationships
|
|
@@ -600,6 +638,7 @@ export interface Block {
|
|
|
600
638
|
*/
|
|
601
639
|
Relationships?: Relationship[];
|
|
602
640
|
/**
|
|
641
|
+
* @public
|
|
603
642
|
* <p>The type of entity. </p>
|
|
604
643
|
* <p>The following entity types can be returned by FORMS analysis:</p>
|
|
605
644
|
* <ul>
|
|
@@ -655,11 +694,13 @@ export interface Block {
|
|
|
655
694
|
*/
|
|
656
695
|
EntityTypes?: (EntityType | string)[];
|
|
657
696
|
/**
|
|
697
|
+
* @public
|
|
658
698
|
* <p>The selection status of a selection element, such as an option button or check box.
|
|
659
699
|
* </p>
|
|
660
700
|
*/
|
|
661
701
|
SelectionStatus?: SelectionStatus | string;
|
|
662
702
|
/**
|
|
703
|
+
* @public
|
|
663
704
|
* <p>The page on which a block was detected. <code>Page</code> is returned by synchronous and
|
|
664
705
|
* asynchronous operations. Page values greater than 1 are only returned for multipage
|
|
665
706
|
* documents that are in PDF or TIFF format. A scanned image (JPEG/PNG) provided to an
|
|
@@ -670,6 +711,7 @@ export interface Block {
|
|
|
670
711
|
*/
|
|
671
712
|
Page?: number;
|
|
672
713
|
/**
|
|
714
|
+
* @public
|
|
673
715
|
* <p></p>
|
|
674
716
|
*/
|
|
675
717
|
Query?: Query;
|
|
@@ -680,6 +722,7 @@ export interface Block {
|
|
|
680
722
|
*/
|
|
681
723
|
export interface DocumentMetadata {
|
|
682
724
|
/**
|
|
725
|
+
* @public
|
|
683
726
|
* <p>The number of pages that are detected in the document.</p>
|
|
684
727
|
*/
|
|
685
728
|
Pages?: number;
|
|
@@ -691,14 +734,17 @@ export interface DocumentMetadata {
|
|
|
691
734
|
*/
|
|
692
735
|
export interface HumanLoopActivationOutput {
|
|
693
736
|
/**
|
|
737
|
+
* @public
|
|
694
738
|
* <p>The Amazon Resource Name (ARN) of the HumanLoop created.</p>
|
|
695
739
|
*/
|
|
696
740
|
HumanLoopArn?: string;
|
|
697
741
|
/**
|
|
742
|
+
* @public
|
|
698
743
|
* <p>Shows if and why human review was needed.</p>
|
|
699
744
|
*/
|
|
700
745
|
HumanLoopActivationReasons?: string[];
|
|
701
746
|
/**
|
|
747
|
+
* @public
|
|
702
748
|
* <p>Shows the result of condition evaluations, including those conditions which activated a
|
|
703
749
|
* human review.</p>
|
|
704
750
|
*/
|
|
@@ -709,18 +755,22 @@ export interface HumanLoopActivationOutput {
|
|
|
709
755
|
*/
|
|
710
756
|
export interface AnalyzeDocumentResponse {
|
|
711
757
|
/**
|
|
758
|
+
* @public
|
|
712
759
|
* <p>Metadata about the analyzed document. An example is the number of pages.</p>
|
|
713
760
|
*/
|
|
714
761
|
DocumentMetadata?: DocumentMetadata;
|
|
715
762
|
/**
|
|
763
|
+
* @public
|
|
716
764
|
* <p>The items that are detected and analyzed by <code>AnalyzeDocument</code>.</p>
|
|
717
765
|
*/
|
|
718
766
|
Blocks?: Block[];
|
|
719
767
|
/**
|
|
768
|
+
* @public
|
|
720
769
|
* <p>Shows the results of the human in the loop evaluation.</p>
|
|
721
770
|
*/
|
|
722
771
|
HumanLoopActivationOutput?: HumanLoopActivationOutput;
|
|
723
772
|
/**
|
|
773
|
+
* @public
|
|
724
774
|
* <p>The version of the model used to analyze the document.</p>
|
|
725
775
|
*/
|
|
726
776
|
AnalyzeDocumentModelVersion?: string;
|
|
@@ -764,14 +814,17 @@ export declare class HumanLoopQuotaExceededException extends __BaseException {
|
|
|
764
814
|
readonly name: "HumanLoopQuotaExceededException";
|
|
765
815
|
readonly $fault: "client";
|
|
766
816
|
/**
|
|
817
|
+
* @public
|
|
767
818
|
* <p>The resource type.</p>
|
|
768
819
|
*/
|
|
769
820
|
ResourceType?: string;
|
|
770
821
|
/**
|
|
822
|
+
* @public
|
|
771
823
|
* <p>The quota code.</p>
|
|
772
824
|
*/
|
|
773
825
|
QuotaCode?: string;
|
|
774
826
|
/**
|
|
827
|
+
* @public
|
|
775
828
|
* <p>The service code.</p>
|
|
776
829
|
*/
|
|
777
830
|
ServiceCode?: string;
|
|
@@ -880,6 +933,7 @@ export declare class UnsupportedDocumentException extends __BaseException {
|
|
|
880
933
|
*/
|
|
881
934
|
export interface AnalyzeExpenseRequest {
|
|
882
935
|
/**
|
|
936
|
+
* @public
|
|
883
937
|
* <p>The input document, either as bytes or as an S3 object.</p>
|
|
884
938
|
* <p>You pass image bytes to an Amazon Textract API operation by using the <code>Bytes</code>
|
|
885
939
|
* property. For example, you would use the <code>Bytes</code> property to pass a document
|
|
@@ -905,6 +959,7 @@ export interface AnalyzeExpenseRequest {
|
|
|
905
959
|
*/
|
|
906
960
|
export interface ExpenseCurrency {
|
|
907
961
|
/**
|
|
962
|
+
* @public
|
|
908
963
|
* <p>Currency code for detected currency. the current supported codes are:</p>
|
|
909
964
|
* <ul>
|
|
910
965
|
* <li>
|
|
@@ -947,6 +1002,7 @@ export interface ExpenseCurrency {
|
|
|
947
1002
|
*/
|
|
948
1003
|
Code?: string;
|
|
949
1004
|
/**
|
|
1005
|
+
* @public
|
|
950
1006
|
* <p>Percentage confideence in the detected currency.</p>
|
|
951
1007
|
*/
|
|
952
1008
|
Confidence?: number;
|
|
@@ -959,10 +1015,12 @@ export interface ExpenseCurrency {
|
|
|
959
1015
|
*/
|
|
960
1016
|
export interface ExpenseGroupProperty {
|
|
961
1017
|
/**
|
|
1018
|
+
* @public
|
|
962
1019
|
* <p>Informs you on whether the expense group is a name or an address.</p>
|
|
963
1020
|
*/
|
|
964
1021
|
Types?: string[];
|
|
965
1022
|
/**
|
|
1023
|
+
* @public
|
|
966
1024
|
* <p>Provides a group Id number, which will be the same for each in the group.</p>
|
|
967
1025
|
*/
|
|
968
1026
|
Id?: string;
|
|
@@ -973,15 +1031,18 @@ export interface ExpenseGroupProperty {
|
|
|
973
1031
|
*/
|
|
974
1032
|
export interface ExpenseDetection {
|
|
975
1033
|
/**
|
|
1034
|
+
* @public
|
|
976
1035
|
* <p>The word or line of text recognized by Amazon Textract</p>
|
|
977
1036
|
*/
|
|
978
1037
|
Text?: string;
|
|
979
1038
|
/**
|
|
1039
|
+
* @public
|
|
980
1040
|
* <p>Information about where the following items are located on a document page: detected
|
|
981
1041
|
* page, text, key-value pairs, tables, table cells, and selection elements.</p>
|
|
982
1042
|
*/
|
|
983
1043
|
Geometry?: Geometry;
|
|
984
1044
|
/**
|
|
1045
|
+
* @public
|
|
985
1046
|
* <p>The confidence in detection, as a percentage</p>
|
|
986
1047
|
*/
|
|
987
1048
|
Confidence?: number;
|
|
@@ -992,10 +1053,12 @@ export interface ExpenseDetection {
|
|
|
992
1053
|
*/
|
|
993
1054
|
export interface ExpenseType {
|
|
994
1055
|
/**
|
|
1056
|
+
* @public
|
|
995
1057
|
* <p>The word or line of text detected by Amazon Textract.</p>
|
|
996
1058
|
*/
|
|
997
1059
|
Text?: string;
|
|
998
1060
|
/**
|
|
1061
|
+
* @public
|
|
999
1062
|
* <p>The confidence of accuracy, as a percentage.</p>
|
|
1000
1063
|
*/
|
|
1001
1064
|
Confidence?: number;
|
|
@@ -1007,27 +1070,33 @@ export interface ExpenseType {
|
|
|
1007
1070
|
*/
|
|
1008
1071
|
export interface ExpenseField {
|
|
1009
1072
|
/**
|
|
1073
|
+
* @public
|
|
1010
1074
|
* <p>The implied label of a detected element. Present alongside LabelDetection for explicit elements.</p>
|
|
1011
1075
|
*/
|
|
1012
1076
|
Type?: ExpenseType;
|
|
1013
1077
|
/**
|
|
1078
|
+
* @public
|
|
1014
1079
|
* <p>The explicitly stated label of a detected element.</p>
|
|
1015
1080
|
*/
|
|
1016
1081
|
LabelDetection?: ExpenseDetection;
|
|
1017
1082
|
/**
|
|
1083
|
+
* @public
|
|
1018
1084
|
* <p>The value of a detected element. Present in explicit and implicit elements.</p>
|
|
1019
1085
|
*/
|
|
1020
1086
|
ValueDetection?: ExpenseDetection;
|
|
1021
1087
|
/**
|
|
1088
|
+
* @public
|
|
1022
1089
|
* <p>The page number the value was detected on.</p>
|
|
1023
1090
|
*/
|
|
1024
1091
|
PageNumber?: number;
|
|
1025
1092
|
/**
|
|
1093
|
+
* @public
|
|
1026
1094
|
* <p>Shows the kind of currency, both the code and confidence associated with any monatary value
|
|
1027
1095
|
* detected.</p>
|
|
1028
1096
|
*/
|
|
1029
1097
|
Currency?: ExpenseCurrency;
|
|
1030
1098
|
/**
|
|
1099
|
+
* @public
|
|
1031
1100
|
* <p>Shows which group a response object belongs to, such as whether an address line
|
|
1032
1101
|
* belongs to the vendor's address or the recipent's address.</p>
|
|
1033
1102
|
*/
|
|
@@ -1039,6 +1108,7 @@ export interface ExpenseField {
|
|
|
1039
1108
|
*/
|
|
1040
1109
|
export interface LineItemFields {
|
|
1041
1110
|
/**
|
|
1111
|
+
* @public
|
|
1042
1112
|
* <p>ExpenseFields used to show information from detected lines on a table.</p>
|
|
1043
1113
|
*/
|
|
1044
1114
|
LineItemExpenseFields?: ExpenseField[];
|
|
@@ -1049,10 +1119,12 @@ export interface LineItemFields {
|
|
|
1049
1119
|
*/
|
|
1050
1120
|
export interface LineItemGroup {
|
|
1051
1121
|
/**
|
|
1122
|
+
* @public
|
|
1052
1123
|
* <p>The number used to identify a specific table in a document. The first table encountered will have a LineItemGroupIndex of 1, the second 2, etc.</p>
|
|
1053
1124
|
*/
|
|
1054
1125
|
LineItemGroupIndex?: number;
|
|
1055
1126
|
/**
|
|
1127
|
+
* @public
|
|
1056
1128
|
* <p>The breakdown of information on a particular line of a table. </p>
|
|
1057
1129
|
*/
|
|
1058
1130
|
LineItems?: LineItemFields[];
|
|
@@ -1063,19 +1135,23 @@ export interface LineItemGroup {
|
|
|
1063
1135
|
*/
|
|
1064
1136
|
export interface ExpenseDocument {
|
|
1065
1137
|
/**
|
|
1138
|
+
* @public
|
|
1066
1139
|
* <p>Denotes which invoice or receipt in the document the information is coming from.
|
|
1067
1140
|
* First document will be 1, the second 2, and so on.</p>
|
|
1068
1141
|
*/
|
|
1069
1142
|
ExpenseIndex?: number;
|
|
1070
1143
|
/**
|
|
1144
|
+
* @public
|
|
1071
1145
|
* <p>Any information found outside of a table by Amazon Textract.</p>
|
|
1072
1146
|
*/
|
|
1073
1147
|
SummaryFields?: ExpenseField[];
|
|
1074
1148
|
/**
|
|
1149
|
+
* @public
|
|
1075
1150
|
* <p>Information detected on each table of a document, seperated into <code>LineItems</code>.</p>
|
|
1076
1151
|
*/
|
|
1077
1152
|
LineItemGroups?: LineItemGroup[];
|
|
1078
1153
|
/**
|
|
1154
|
+
* @public
|
|
1079
1155
|
* <p>This is a block object, the same as reported when DetectDocumentText is run on a document.
|
|
1080
1156
|
* It provides word level recognition of text.</p>
|
|
1081
1157
|
*/
|
|
@@ -1086,10 +1162,12 @@ export interface ExpenseDocument {
|
|
|
1086
1162
|
*/
|
|
1087
1163
|
export interface AnalyzeExpenseResponse {
|
|
1088
1164
|
/**
|
|
1165
|
+
* @public
|
|
1089
1166
|
* <p>Information about the input document.</p>
|
|
1090
1167
|
*/
|
|
1091
1168
|
DocumentMetadata?: DocumentMetadata;
|
|
1092
1169
|
/**
|
|
1170
|
+
* @public
|
|
1093
1171
|
* <p>The expenses detected by Amazon Textract.</p>
|
|
1094
1172
|
*/
|
|
1095
1173
|
ExpenseDocuments?: ExpenseDocument[];
|
|
@@ -1099,6 +1177,7 @@ export interface AnalyzeExpenseResponse {
|
|
|
1099
1177
|
*/
|
|
1100
1178
|
export interface AnalyzeIDRequest {
|
|
1101
1179
|
/**
|
|
1180
|
+
* @public
|
|
1102
1181
|
* <p>The document being passed to AnalyzeID.</p>
|
|
1103
1182
|
*/
|
|
1104
1183
|
DocumentPages: Document[] | undefined;
|
|
@@ -1121,10 +1200,12 @@ export type ValueType = (typeof ValueType)[keyof typeof ValueType];
|
|
|
1121
1200
|
*/
|
|
1122
1201
|
export interface NormalizedValue {
|
|
1123
1202
|
/**
|
|
1203
|
+
* @public
|
|
1124
1204
|
* <p>The value of the date, written as Year-Month-DayTHour:Minute:Second.</p>
|
|
1125
1205
|
*/
|
|
1126
1206
|
Value?: string;
|
|
1127
1207
|
/**
|
|
1208
|
+
* @public
|
|
1128
1209
|
* <p>The normalized type of the value detected. In this case, DATE.</p>
|
|
1129
1210
|
*/
|
|
1130
1211
|
ValueType?: ValueType | string;
|
|
@@ -1135,15 +1216,18 @@ export interface NormalizedValue {
|
|
|
1135
1216
|
*/
|
|
1136
1217
|
export interface AnalyzeIDDetections {
|
|
1137
1218
|
/**
|
|
1219
|
+
* @public
|
|
1138
1220
|
* <p>Text of either the normalized field or value associated with it.</p>
|
|
1139
1221
|
*/
|
|
1140
1222
|
Text: string | undefined;
|
|
1141
1223
|
/**
|
|
1224
|
+
* @public
|
|
1142
1225
|
* <p>Only returned for dates, returns the type of value detected and the date
|
|
1143
1226
|
* written in a more machine readable way.</p>
|
|
1144
1227
|
*/
|
|
1145
1228
|
NormalizedValue?: NormalizedValue;
|
|
1146
1229
|
/**
|
|
1230
|
+
* @public
|
|
1147
1231
|
* <p>The confidence score of the detected text.</p>
|
|
1148
1232
|
*/
|
|
1149
1233
|
Confidence?: number;
|
|
@@ -1155,10 +1239,12 @@ export interface AnalyzeIDDetections {
|
|
|
1155
1239
|
*/
|
|
1156
1240
|
export interface IdentityDocumentField {
|
|
1157
1241
|
/**
|
|
1242
|
+
* @public
|
|
1158
1243
|
* <p>Used to contain the information detected by an AnalyzeID operation.</p>
|
|
1159
1244
|
*/
|
|
1160
1245
|
Type?: AnalyzeIDDetections;
|
|
1161
1246
|
/**
|
|
1247
|
+
* @public
|
|
1162
1248
|
* <p>Used to contain the information detected by an AnalyzeID operation.</p>
|
|
1163
1249
|
*/
|
|
1164
1250
|
ValueDetection?: AnalyzeIDDetections;
|
|
@@ -1169,16 +1255,19 @@ export interface IdentityDocumentField {
|
|
|
1169
1255
|
*/
|
|
1170
1256
|
export interface IdentityDocument {
|
|
1171
1257
|
/**
|
|
1258
|
+
* @public
|
|
1172
1259
|
* <p>Denotes the placement of a document in the IdentityDocument list. The first document
|
|
1173
1260
|
* is marked 1, the second 2 and so on.</p>
|
|
1174
1261
|
*/
|
|
1175
1262
|
DocumentIndex?: number;
|
|
1176
1263
|
/**
|
|
1264
|
+
* @public
|
|
1177
1265
|
* <p>The structure used to record information extracted from identity documents.
|
|
1178
1266
|
* Contains both normalized field and value of the extracted text.</p>
|
|
1179
1267
|
*/
|
|
1180
1268
|
IdentityDocumentFields?: IdentityDocumentField[];
|
|
1181
1269
|
/**
|
|
1270
|
+
* @public
|
|
1182
1271
|
* <p>Individual word recognition, as returned by document detection.</p>
|
|
1183
1272
|
*/
|
|
1184
1273
|
Blocks?: Block[];
|
|
@@ -1188,15 +1277,18 @@ export interface IdentityDocument {
|
|
|
1188
1277
|
*/
|
|
1189
1278
|
export interface AnalyzeIDResponse {
|
|
1190
1279
|
/**
|
|
1280
|
+
* @public
|
|
1191
1281
|
* <p>The list of documents processed by AnalyzeID. Includes a number denoting their place in
|
|
1192
1282
|
* the list and the response structure for the document.</p>
|
|
1193
1283
|
*/
|
|
1194
1284
|
IdentityDocuments?: IdentityDocument[];
|
|
1195
1285
|
/**
|
|
1286
|
+
* @public
|
|
1196
1287
|
* <p>Information about the input document.</p>
|
|
1197
1288
|
*/
|
|
1198
1289
|
DocumentMetadata?: DocumentMetadata;
|
|
1199
1290
|
/**
|
|
1291
|
+
* @public
|
|
1200
1292
|
* <p>The version of the AnalyzeIdentity API being used to process documents.</p>
|
|
1201
1293
|
*/
|
|
1202
1294
|
AnalyzeIDModelVersion?: string;
|
|
@@ -1206,6 +1298,7 @@ export interface AnalyzeIDResponse {
|
|
|
1206
1298
|
*/
|
|
1207
1299
|
export interface DetectDocumentTextRequest {
|
|
1208
1300
|
/**
|
|
1301
|
+
* @public
|
|
1209
1302
|
* <p>The input document as base64-encoded bytes or an Amazon S3 object. If you use the AWS CLI
|
|
1210
1303
|
* to call Amazon Textract operations, you can't pass image bytes. The document must be an image
|
|
1211
1304
|
* in JPEG or PNG format.</p>
|
|
@@ -1219,16 +1312,19 @@ export interface DetectDocumentTextRequest {
|
|
|
1219
1312
|
*/
|
|
1220
1313
|
export interface DetectDocumentTextResponse {
|
|
1221
1314
|
/**
|
|
1315
|
+
* @public
|
|
1222
1316
|
* <p>Metadata about the document. It contains the number of pages that are detected in the
|
|
1223
1317
|
* document.</p>
|
|
1224
1318
|
*/
|
|
1225
1319
|
DocumentMetadata?: DocumentMetadata;
|
|
1226
1320
|
/**
|
|
1321
|
+
* @public
|
|
1227
1322
|
* <p>An array of <code>Block</code> objects that contain the text that's detected in the
|
|
1228
1323
|
* document.</p>
|
|
1229
1324
|
*/
|
|
1230
1325
|
Blocks?: Block[];
|
|
1231
1326
|
/**
|
|
1327
|
+
* @public
|
|
1232
1328
|
* <p></p>
|
|
1233
1329
|
*/
|
|
1234
1330
|
DetectDocumentTextModelVersion?: string;
|
|
@@ -1239,6 +1335,7 @@ export interface DetectDocumentTextResponse {
|
|
|
1239
1335
|
*/
|
|
1240
1336
|
export interface DetectedSignature {
|
|
1241
1337
|
/**
|
|
1338
|
+
* @public
|
|
1242
1339
|
* <p>The page a detected signature was found on.</p>
|
|
1243
1340
|
*/
|
|
1244
1341
|
Page?: number;
|
|
@@ -1249,10 +1346,12 @@ export interface DetectedSignature {
|
|
|
1249
1346
|
*/
|
|
1250
1347
|
export interface SplitDocument {
|
|
1251
1348
|
/**
|
|
1349
|
+
* @public
|
|
1252
1350
|
* <p>The index for a given document in a DocumentGroup of a specific Type.</p>
|
|
1253
1351
|
*/
|
|
1254
1352
|
Index?: number;
|
|
1255
1353
|
/**
|
|
1354
|
+
* @public
|
|
1256
1355
|
* <p>An array of page numbers for a for a given document, ordered by logical boundary.</p>
|
|
1257
1356
|
*/
|
|
1258
1357
|
Pages?: number[];
|
|
@@ -1263,6 +1362,7 @@ export interface SplitDocument {
|
|
|
1263
1362
|
*/
|
|
1264
1363
|
export interface UndetectedSignature {
|
|
1265
1364
|
/**
|
|
1365
|
+
* @public
|
|
1266
1366
|
* <p>The page where a signature was expected but not found.</p>
|
|
1267
1367
|
*/
|
|
1268
1368
|
Page?: number;
|
|
@@ -1273,18 +1373,22 @@ export interface UndetectedSignature {
|
|
|
1273
1373
|
*/
|
|
1274
1374
|
export interface DocumentGroup {
|
|
1275
1375
|
/**
|
|
1376
|
+
* @public
|
|
1276
1377
|
* <p>The type of document that Amazon Textract has detected. See <a href="https://docs.aws.amazon.com/textract/latest/dg/lending-response-objects.html">Analyze Lending Response Objects</a> for a list of all types returned by Textract.</p>
|
|
1277
1378
|
*/
|
|
1278
1379
|
Type?: string;
|
|
1279
1380
|
/**
|
|
1381
|
+
* @public
|
|
1280
1382
|
* <p>An array that contains information about the pages of a document, defined by logical boundary.</p>
|
|
1281
1383
|
*/
|
|
1282
1384
|
SplitDocuments?: SplitDocument[];
|
|
1283
1385
|
/**
|
|
1386
|
+
* @public
|
|
1284
1387
|
* <p>A list of the detected signatures found in a document group.</p>
|
|
1285
1388
|
*/
|
|
1286
1389
|
DetectedSignatures?: DetectedSignature[];
|
|
1287
1390
|
/**
|
|
1391
|
+
* @public
|
|
1288
1392
|
* <p>A list of any expected signatures not found in a document group.</p>
|
|
1289
1393
|
*/
|
|
1290
1394
|
UndetectedSignatures?: UndetectedSignature[];
|
|
@@ -1298,6 +1402,7 @@ export interface DocumentGroup {
|
|
|
1298
1402
|
*/
|
|
1299
1403
|
export interface DocumentLocation {
|
|
1300
1404
|
/**
|
|
1405
|
+
* @public
|
|
1301
1406
|
* <p>The Amazon S3 bucket that contains the input document.</p>
|
|
1302
1407
|
*/
|
|
1303
1408
|
S3Object?: S3Object;
|
|
@@ -1308,19 +1413,23 @@ export interface DocumentLocation {
|
|
|
1308
1413
|
*/
|
|
1309
1414
|
export interface LendingDetection {
|
|
1310
1415
|
/**
|
|
1416
|
+
* @public
|
|
1311
1417
|
* <p>The text extracted for a detected value in a lending document.</p>
|
|
1312
1418
|
*/
|
|
1313
1419
|
Text?: string;
|
|
1314
1420
|
/**
|
|
1421
|
+
* @public
|
|
1315
1422
|
* <p>The selection status of a selection element, such as an option button or check box.</p>
|
|
1316
1423
|
*/
|
|
1317
1424
|
SelectionStatus?: SelectionStatus | string;
|
|
1318
1425
|
/**
|
|
1426
|
+
* @public
|
|
1319
1427
|
* <p>Information about where the following items are located on a document page: detected
|
|
1320
1428
|
* page, text, key-value pairs, tables, table cells, and selection elements.</p>
|
|
1321
1429
|
*/
|
|
1322
1430
|
Geometry?: Geometry;
|
|
1323
1431
|
/**
|
|
1432
|
+
* @public
|
|
1324
1433
|
* <p>The confidence level for the text of a detected value in a lending document.</p>
|
|
1325
1434
|
*/
|
|
1326
1435
|
Confidence?: number;
|
|
@@ -1331,14 +1440,17 @@ export interface LendingDetection {
|
|
|
1331
1440
|
*/
|
|
1332
1441
|
export interface LendingField {
|
|
1333
1442
|
/**
|
|
1443
|
+
* @public
|
|
1334
1444
|
* <p>The type of the lending document.</p>
|
|
1335
1445
|
*/
|
|
1336
1446
|
Type?: string;
|
|
1337
1447
|
/**
|
|
1448
|
+
* @public
|
|
1338
1449
|
* <p>The results extracted for a lending document.</p>
|
|
1339
1450
|
*/
|
|
1340
1451
|
KeyDetection?: LendingDetection;
|
|
1341
1452
|
/**
|
|
1453
|
+
* @public
|
|
1342
1454
|
* <p>An array of LendingDetection objects.</p>
|
|
1343
1455
|
*/
|
|
1344
1456
|
ValueDetections?: LendingDetection[];
|
|
@@ -1349,10 +1461,12 @@ export interface LendingField {
|
|
|
1349
1461
|
*/
|
|
1350
1462
|
export interface SignatureDetection {
|
|
1351
1463
|
/**
|
|
1464
|
+
* @public
|
|
1352
1465
|
* <p>The confidence, from 0 to 100, in the predicted values for a detected signature.</p>
|
|
1353
1466
|
*/
|
|
1354
1467
|
Confidence?: number;
|
|
1355
1468
|
/**
|
|
1469
|
+
* @public
|
|
1356
1470
|
* <p>Information about where the following items are located on a document page: detected
|
|
1357
1471
|
* page, text, key-value pairs, tables, table cells, and selection elements.</p>
|
|
1358
1472
|
*/
|
|
@@ -1364,10 +1478,12 @@ export interface SignatureDetection {
|
|
|
1364
1478
|
*/
|
|
1365
1479
|
export interface LendingDocument {
|
|
1366
1480
|
/**
|
|
1481
|
+
* @public
|
|
1367
1482
|
* <p>An array of LendingField objects.</p>
|
|
1368
1483
|
*/
|
|
1369
1484
|
LendingFields?: LendingField[];
|
|
1370
1485
|
/**
|
|
1486
|
+
* @public
|
|
1371
1487
|
* <p>A list of signatures detected in a lending document.</p>
|
|
1372
1488
|
*/
|
|
1373
1489
|
SignatureDetections?: SignatureDetection[];
|
|
@@ -1378,14 +1494,17 @@ export interface LendingDocument {
|
|
|
1378
1494
|
*/
|
|
1379
1495
|
export interface Extraction {
|
|
1380
1496
|
/**
|
|
1497
|
+
* @public
|
|
1381
1498
|
* <p>Holds the structured data returned by AnalyzeDocument for lending documents.</p>
|
|
1382
1499
|
*/
|
|
1383
1500
|
LendingDocument?: LendingDocument;
|
|
1384
1501
|
/**
|
|
1502
|
+
* @public
|
|
1385
1503
|
* <p>The structure holding all the information returned by AnalyzeExpense</p>
|
|
1386
1504
|
*/
|
|
1387
1505
|
ExpenseDocument?: ExpenseDocument;
|
|
1388
1506
|
/**
|
|
1507
|
+
* @public
|
|
1389
1508
|
* <p>The structure that lists each document processed in an AnalyzeID operation.</p>
|
|
1390
1509
|
*/
|
|
1391
1510
|
IdentityDocument?: IdentityDocument;
|
|
@@ -1395,18 +1514,21 @@ export interface Extraction {
|
|
|
1395
1514
|
*/
|
|
1396
1515
|
export interface GetDocumentAnalysisRequest {
|
|
1397
1516
|
/**
|
|
1517
|
+
* @public
|
|
1398
1518
|
* <p>A unique identifier for the text-detection job. The <code>JobId</code> is returned from
|
|
1399
1519
|
* <code>StartDocumentAnalysis</code>. A <code>JobId</code> value is only valid for 7
|
|
1400
1520
|
* days.</p>
|
|
1401
1521
|
*/
|
|
1402
1522
|
JobId: string | undefined;
|
|
1403
1523
|
/**
|
|
1524
|
+
* @public
|
|
1404
1525
|
* <p>The maximum number of results to return per paginated call. The largest value that you
|
|
1405
1526
|
* can specify is 1,000. If you specify a value greater than 1,000, a maximum of 1,000 results
|
|
1406
1527
|
* is returned. The default value is 1,000.</p>
|
|
1407
1528
|
*/
|
|
1408
1529
|
MaxResults?: number;
|
|
1409
1530
|
/**
|
|
1531
|
+
* @public
|
|
1410
1532
|
* <p>If the previous response was incomplete (because there are more blocks to retrieve),
|
|
1411
1533
|
* Amazon Textract returns a pagination token in the response. You can use this pagination
|
|
1412
1534
|
* token to retrieve the next set of blocks.</p>
|
|
@@ -1433,10 +1555,12 @@ export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus];
|
|
|
1433
1555
|
*/
|
|
1434
1556
|
export interface Warning {
|
|
1435
1557
|
/**
|
|
1558
|
+
* @public
|
|
1436
1559
|
* <p>The error code for the warning.</p>
|
|
1437
1560
|
*/
|
|
1438
1561
|
ErrorCode?: string;
|
|
1439
1562
|
/**
|
|
1563
|
+
* @public
|
|
1440
1564
|
* <p>A list of the pages that the warning applies to.</p>
|
|
1441
1565
|
*/
|
|
1442
1566
|
Pages?: number[];
|
|
@@ -1446,34 +1570,41 @@ export interface Warning {
|
|
|
1446
1570
|
*/
|
|
1447
1571
|
export interface GetDocumentAnalysisResponse {
|
|
1448
1572
|
/**
|
|
1573
|
+
* @public
|
|
1449
1574
|
* <p>Information about a document that Amazon Textract processed.
|
|
1450
1575
|
* <code>DocumentMetadata</code> is returned in every page of paginated responses from an
|
|
1451
1576
|
* Amazon Textract video operation.</p>
|
|
1452
1577
|
*/
|
|
1453
1578
|
DocumentMetadata?: DocumentMetadata;
|
|
1454
1579
|
/**
|
|
1580
|
+
* @public
|
|
1455
1581
|
* <p>The current status of the text detection job.</p>
|
|
1456
1582
|
*/
|
|
1457
1583
|
JobStatus?: JobStatus | string;
|
|
1458
1584
|
/**
|
|
1585
|
+
* @public
|
|
1459
1586
|
* <p>If the response is truncated, Amazon Textract returns this token. You can use this token
|
|
1460
1587
|
* in the subsequent request to retrieve the next set of text detection results.</p>
|
|
1461
1588
|
*/
|
|
1462
1589
|
NextToken?: string;
|
|
1463
1590
|
/**
|
|
1591
|
+
* @public
|
|
1464
1592
|
* <p>The results of the text-analysis operation.</p>
|
|
1465
1593
|
*/
|
|
1466
1594
|
Blocks?: Block[];
|
|
1467
1595
|
/**
|
|
1596
|
+
* @public
|
|
1468
1597
|
* <p>A list of warnings that occurred during the document-analysis operation.</p>
|
|
1469
1598
|
*/
|
|
1470
1599
|
Warnings?: Warning[];
|
|
1471
1600
|
/**
|
|
1601
|
+
* @public
|
|
1472
1602
|
* <p>Returns if the detection job could not be completed. Contains explanation for what error
|
|
1473
1603
|
* occured.</p>
|
|
1474
1604
|
*/
|
|
1475
1605
|
StatusMessage?: string;
|
|
1476
1606
|
/**
|
|
1607
|
+
* @public
|
|
1477
1608
|
* <p></p>
|
|
1478
1609
|
*/
|
|
1479
1610
|
AnalyzeDocumentModelVersion?: string;
|
|
@@ -1512,17 +1643,20 @@ export declare class InvalidKMSKeyException extends __BaseException {
|
|
|
1512
1643
|
*/
|
|
1513
1644
|
export interface GetDocumentTextDetectionRequest {
|
|
1514
1645
|
/**
|
|
1646
|
+
* @public
|
|
1515
1647
|
* <p>A unique identifier for the text detection job. The <code>JobId</code> is returned from
|
|
1516
1648
|
* <code>StartDocumentTextDetection</code>. A <code>JobId</code> value is only valid for 7 days.</p>
|
|
1517
1649
|
*/
|
|
1518
1650
|
JobId: string | undefined;
|
|
1519
1651
|
/**
|
|
1652
|
+
* @public
|
|
1520
1653
|
* <p>The maximum number of results to return per paginated call. The largest value you can
|
|
1521
1654
|
* specify is 1,000. If you specify a value greater than 1,000, a maximum of 1,000 results is
|
|
1522
1655
|
* returned. The default value is 1,000.</p>
|
|
1523
1656
|
*/
|
|
1524
1657
|
MaxResults?: number;
|
|
1525
1658
|
/**
|
|
1659
|
+
* @public
|
|
1526
1660
|
* <p>If the previous response was incomplete (because there are more blocks to retrieve), Amazon Textract returns a pagination
|
|
1527
1661
|
* token in the response. You can use this pagination token to retrieve the next set of blocks.</p>
|
|
1528
1662
|
*/
|
|
@@ -1533,33 +1667,40 @@ export interface GetDocumentTextDetectionRequest {
|
|
|
1533
1667
|
*/
|
|
1534
1668
|
export interface GetDocumentTextDetectionResponse {
|
|
1535
1669
|
/**
|
|
1670
|
+
* @public
|
|
1536
1671
|
* <p>Information about a document that Amazon Textract processed. <code>DocumentMetadata</code> is
|
|
1537
1672
|
* returned in every page of paginated responses from an Amazon Textract video operation.</p>
|
|
1538
1673
|
*/
|
|
1539
1674
|
DocumentMetadata?: DocumentMetadata;
|
|
1540
1675
|
/**
|
|
1676
|
+
* @public
|
|
1541
1677
|
* <p>The current status of the text detection job.</p>
|
|
1542
1678
|
*/
|
|
1543
1679
|
JobStatus?: JobStatus | string;
|
|
1544
1680
|
/**
|
|
1681
|
+
* @public
|
|
1545
1682
|
* <p>If the response is truncated, Amazon Textract returns this token. You can use this token in
|
|
1546
1683
|
* the subsequent request to retrieve the next set of text-detection results.</p>
|
|
1547
1684
|
*/
|
|
1548
1685
|
NextToken?: string;
|
|
1549
1686
|
/**
|
|
1687
|
+
* @public
|
|
1550
1688
|
* <p>The results of the text-detection operation.</p>
|
|
1551
1689
|
*/
|
|
1552
1690
|
Blocks?: Block[];
|
|
1553
1691
|
/**
|
|
1692
|
+
* @public
|
|
1554
1693
|
* <p>A list of warnings that occurred during the text-detection operation for the
|
|
1555
1694
|
* document.</p>
|
|
1556
1695
|
*/
|
|
1557
1696
|
Warnings?: Warning[];
|
|
1558
1697
|
/**
|
|
1698
|
+
* @public
|
|
1559
1699
|
* <p>Returns if the detection job could not be completed. Contains explanation for what error occured. </p>
|
|
1560
1700
|
*/
|
|
1561
1701
|
StatusMessage?: string;
|
|
1562
1702
|
/**
|
|
1703
|
+
* @public
|
|
1563
1704
|
* <p></p>
|
|
1564
1705
|
*/
|
|
1565
1706
|
DetectDocumentTextModelVersion?: string;
|
|
@@ -1569,17 +1710,20 @@ export interface GetDocumentTextDetectionResponse {
|
|
|
1569
1710
|
*/
|
|
1570
1711
|
export interface GetExpenseAnalysisRequest {
|
|
1571
1712
|
/**
|
|
1713
|
+
* @public
|
|
1572
1714
|
* <p>A unique identifier for the text detection job. The <code>JobId</code> is returned from
|
|
1573
1715
|
* <code>StartExpenseAnalysis</code>. A <code>JobId</code> value is only valid for 7 days.</p>
|
|
1574
1716
|
*/
|
|
1575
1717
|
JobId: string | undefined;
|
|
1576
1718
|
/**
|
|
1719
|
+
* @public
|
|
1577
1720
|
* <p>The maximum number of results to return per paginated call. The largest value you can
|
|
1578
1721
|
* specify is 20. If you specify a value greater than 20, a maximum of 20 results is
|
|
1579
1722
|
* returned. The default value is 20.</p>
|
|
1580
1723
|
*/
|
|
1581
1724
|
MaxResults?: number;
|
|
1582
1725
|
/**
|
|
1726
|
+
* @public
|
|
1583
1727
|
* <p>If the previous response was incomplete (because there are more blocks to retrieve), Amazon Textract returns a pagination
|
|
1584
1728
|
* token in the response. You can use this pagination token to retrieve the next set of blocks.</p>
|
|
1585
1729
|
*/
|
|
@@ -1590,33 +1734,40 @@ export interface GetExpenseAnalysisRequest {
|
|
|
1590
1734
|
*/
|
|
1591
1735
|
export interface GetExpenseAnalysisResponse {
|
|
1592
1736
|
/**
|
|
1737
|
+
* @public
|
|
1593
1738
|
* <p>Information about a document that Amazon Textract processed. <code>DocumentMetadata</code> is
|
|
1594
1739
|
* returned in every page of paginated responses from an Amazon Textract operation.</p>
|
|
1595
1740
|
*/
|
|
1596
1741
|
DocumentMetadata?: DocumentMetadata;
|
|
1597
1742
|
/**
|
|
1743
|
+
* @public
|
|
1598
1744
|
* <p>The current status of the text detection job.</p>
|
|
1599
1745
|
*/
|
|
1600
1746
|
JobStatus?: JobStatus | string;
|
|
1601
1747
|
/**
|
|
1748
|
+
* @public
|
|
1602
1749
|
* <p>If the response is truncated, Amazon Textract returns this token. You can use this token in
|
|
1603
1750
|
* the subsequent request to retrieve the next set of text-detection results.</p>
|
|
1604
1751
|
*/
|
|
1605
1752
|
NextToken?: string;
|
|
1606
1753
|
/**
|
|
1754
|
+
* @public
|
|
1607
1755
|
* <p>The expenses detected by Amazon Textract.</p>
|
|
1608
1756
|
*/
|
|
1609
1757
|
ExpenseDocuments?: ExpenseDocument[];
|
|
1610
1758
|
/**
|
|
1759
|
+
* @public
|
|
1611
1760
|
* <p>A list of warnings that occurred during the text-detection operation for the
|
|
1612
1761
|
* document.</p>
|
|
1613
1762
|
*/
|
|
1614
1763
|
Warnings?: Warning[];
|
|
1615
1764
|
/**
|
|
1765
|
+
* @public
|
|
1616
1766
|
* <p>Returns if the detection job could not be completed. Contains explanation for what error occured. </p>
|
|
1617
1767
|
*/
|
|
1618
1768
|
StatusMessage?: string;
|
|
1619
1769
|
/**
|
|
1770
|
+
* @public
|
|
1620
1771
|
* <p>The current model version of AnalyzeExpense.</p>
|
|
1621
1772
|
*/
|
|
1622
1773
|
AnalyzeExpenseModelVersion?: string;
|
|
@@ -1626,18 +1777,21 @@ export interface GetExpenseAnalysisResponse {
|
|
|
1626
1777
|
*/
|
|
1627
1778
|
export interface GetLendingAnalysisRequest {
|
|
1628
1779
|
/**
|
|
1780
|
+
* @public
|
|
1629
1781
|
* <p>A unique identifier for the lending or text-detection job. The <code>JobId</code> is
|
|
1630
1782
|
* returned from <code>StartLendingAnalysis</code>. A <code>JobId</code> value is only
|
|
1631
1783
|
* valid for 7 days.</p>
|
|
1632
1784
|
*/
|
|
1633
1785
|
JobId: string | undefined;
|
|
1634
1786
|
/**
|
|
1787
|
+
* @public
|
|
1635
1788
|
* <p>The maximum number of results to return per paginated call. The largest value that you
|
|
1636
1789
|
* can specify is 30. If you specify a value greater than 30, a maximum of 30 results is
|
|
1637
1790
|
* returned. The default value is 30.</p>
|
|
1638
1791
|
*/
|
|
1639
1792
|
MaxResults?: number;
|
|
1640
1793
|
/**
|
|
1794
|
+
* @public
|
|
1641
1795
|
* <p>If the previous response was incomplete, Amazon Textract returns a pagination token in
|
|
1642
1796
|
* the response. You can use this pagination token to retrieve the next set of lending
|
|
1643
1797
|
* results.</p>
|
|
@@ -1651,10 +1805,12 @@ export interface GetLendingAnalysisRequest {
|
|
|
1651
1805
|
*/
|
|
1652
1806
|
export interface Prediction {
|
|
1653
1807
|
/**
|
|
1808
|
+
* @public
|
|
1654
1809
|
* <p>The predicted value of a detected object.</p>
|
|
1655
1810
|
*/
|
|
1656
1811
|
Value?: string;
|
|
1657
1812
|
/**
|
|
1813
|
+
* @public
|
|
1658
1814
|
* <p>Amazon Textract's confidence in its predicted value.</p>
|
|
1659
1815
|
*/
|
|
1660
1816
|
Confidence?: number;
|
|
@@ -1667,11 +1823,13 @@ export interface Prediction {
|
|
|
1667
1823
|
*/
|
|
1668
1824
|
export interface PageClassification {
|
|
1669
1825
|
/**
|
|
1826
|
+
* @public
|
|
1670
1827
|
* <p>The class, or document type, assigned to a detected Page object. The class, or document type,
|
|
1671
1828
|
* assigned to a detected Page object.</p>
|
|
1672
1829
|
*/
|
|
1673
1830
|
PageType: Prediction[] | undefined;
|
|
1674
1831
|
/**
|
|
1832
|
+
* @public
|
|
1675
1833
|
* <p> The page number the value was detected on, relative to Amazon Textract's starting position.</p>
|
|
1676
1834
|
*/
|
|
1677
1835
|
PageNumber: Prediction[] | undefined;
|
|
@@ -1682,14 +1840,17 @@ export interface PageClassification {
|
|
|
1682
1840
|
*/
|
|
1683
1841
|
export interface LendingResult {
|
|
1684
1842
|
/**
|
|
1843
|
+
* @public
|
|
1685
1844
|
* <p>The page number for a page, with regard to whole submission.</p>
|
|
1686
1845
|
*/
|
|
1687
1846
|
Page?: number;
|
|
1688
1847
|
/**
|
|
1848
|
+
* @public
|
|
1689
1849
|
* <p>The classifier result for a given page.</p>
|
|
1690
1850
|
*/
|
|
1691
1851
|
PageClassification?: PageClassification;
|
|
1692
1852
|
/**
|
|
1853
|
+
* @public
|
|
1693
1854
|
* <p>An array of Extraction to hold structured data. e.g. normalized key value pairs instead of raw OCR detections .</p>
|
|
1694
1855
|
*/
|
|
1695
1856
|
Extractions?: Extraction[];
|
|
@@ -1699,33 +1860,40 @@ export interface LendingResult {
|
|
|
1699
1860
|
*/
|
|
1700
1861
|
export interface GetLendingAnalysisResponse {
|
|
1701
1862
|
/**
|
|
1863
|
+
* @public
|
|
1702
1864
|
* <p>Information about the input document.</p>
|
|
1703
1865
|
*/
|
|
1704
1866
|
DocumentMetadata?: DocumentMetadata;
|
|
1705
1867
|
/**
|
|
1868
|
+
* @public
|
|
1706
1869
|
* <p> The current status of the lending analysis job.</p>
|
|
1707
1870
|
*/
|
|
1708
1871
|
JobStatus?: JobStatus | string;
|
|
1709
1872
|
/**
|
|
1873
|
+
* @public
|
|
1710
1874
|
* <p>If the response is truncated, Amazon Textract returns this token.
|
|
1711
1875
|
* You can use this token in the subsequent request to retrieve the next set of lending results.</p>
|
|
1712
1876
|
*/
|
|
1713
1877
|
NextToken?: string;
|
|
1714
1878
|
/**
|
|
1879
|
+
* @public
|
|
1715
1880
|
* <p> Holds the information returned by one of AmazonTextract's document analysis
|
|
1716
1881
|
* operations for the pinstripe.</p>
|
|
1717
1882
|
*/
|
|
1718
1883
|
Results?: LendingResult[];
|
|
1719
1884
|
/**
|
|
1885
|
+
* @public
|
|
1720
1886
|
* <p> A list of warnings that occurred during the lending analysis operation. </p>
|
|
1721
1887
|
*/
|
|
1722
1888
|
Warnings?: Warning[];
|
|
1723
1889
|
/**
|
|
1890
|
+
* @public
|
|
1724
1891
|
* <p> Returns if the lending analysis job could not be completed. Contains explanation for
|
|
1725
1892
|
* what error occurred. </p>
|
|
1726
1893
|
*/
|
|
1727
1894
|
StatusMessage?: string;
|
|
1728
1895
|
/**
|
|
1896
|
+
* @public
|
|
1729
1897
|
* <p> The current model version of the Analyze Lending API.</p>
|
|
1730
1898
|
*/
|
|
1731
1899
|
AnalyzeLendingModelVersion?: string;
|
|
@@ -1735,6 +1903,7 @@ export interface GetLendingAnalysisResponse {
|
|
|
1735
1903
|
*/
|
|
1736
1904
|
export interface GetLendingAnalysisSummaryRequest {
|
|
1737
1905
|
/**
|
|
1906
|
+
* @public
|
|
1738
1907
|
* <p> A unique identifier for the lending or text-detection job. The <code>JobId</code> is
|
|
1739
1908
|
* returned from StartLendingAnalysis. A <code>JobId</code> value is only valid for 7 days.</p>
|
|
1740
1909
|
*/
|
|
@@ -1746,10 +1915,12 @@ export interface GetLendingAnalysisSummaryRequest {
|
|
|
1746
1915
|
*/
|
|
1747
1916
|
export interface LendingSummary {
|
|
1748
1917
|
/**
|
|
1918
|
+
* @public
|
|
1749
1919
|
* <p>Contains an array of all DocumentGroup objects.</p>
|
|
1750
1920
|
*/
|
|
1751
1921
|
DocumentGroups?: DocumentGroup[];
|
|
1752
1922
|
/**
|
|
1923
|
+
* @public
|
|
1753
1924
|
* <p>UndetectedDocumentTypes.</p>
|
|
1754
1925
|
*/
|
|
1755
1926
|
UndetectedDocumentTypes?: string[];
|
|
@@ -1759,27 +1930,33 @@ export interface LendingSummary {
|
|
|
1759
1930
|
*/
|
|
1760
1931
|
export interface GetLendingAnalysisSummaryResponse {
|
|
1761
1932
|
/**
|
|
1933
|
+
* @public
|
|
1762
1934
|
* <p>Information about the input document.</p>
|
|
1763
1935
|
*/
|
|
1764
1936
|
DocumentMetadata?: DocumentMetadata;
|
|
1765
1937
|
/**
|
|
1938
|
+
* @public
|
|
1766
1939
|
* <p> The current status of the lending analysis job. </p>
|
|
1767
1940
|
*/
|
|
1768
1941
|
JobStatus?: JobStatus | string;
|
|
1769
1942
|
/**
|
|
1943
|
+
* @public
|
|
1770
1944
|
* <p> Contains summary information for documents grouped by type.</p>
|
|
1771
1945
|
*/
|
|
1772
1946
|
Summary?: LendingSummary;
|
|
1773
1947
|
/**
|
|
1948
|
+
* @public
|
|
1774
1949
|
* <p>A list of warnings that occurred during the lending analysis operation.</p>
|
|
1775
1950
|
*/
|
|
1776
1951
|
Warnings?: Warning[];
|
|
1777
1952
|
/**
|
|
1953
|
+
* @public
|
|
1778
1954
|
* <p>Returns if the lending analysis could not be completed. Contains explanation for what error
|
|
1779
1955
|
* occurred.</p>
|
|
1780
1956
|
*/
|
|
1781
1957
|
StatusMessage?: string;
|
|
1782
1958
|
/**
|
|
1959
|
+
* @public
|
|
1783
1960
|
* <p>The current model version of the Analyze Lending API.</p>
|
|
1784
1961
|
*/
|
|
1785
1962
|
AnalyzeLendingModelVersion?: string;
|
|
@@ -1825,10 +2002,12 @@ export declare class LimitExceededException extends __BaseException {
|
|
|
1825
2002
|
*/
|
|
1826
2003
|
export interface NotificationChannel {
|
|
1827
2004
|
/**
|
|
2005
|
+
* @public
|
|
1828
2006
|
* <p>The Amazon SNS topic that Amazon Textract posts the completion status to.</p>
|
|
1829
2007
|
*/
|
|
1830
2008
|
SNSTopicArn: string | undefined;
|
|
1831
2009
|
/**
|
|
2010
|
+
* @public
|
|
1832
2011
|
* <p>The Amazon Resource Name (ARN) of an IAM role that gives Amazon Textract publishing permissions to the Amazon SNS topic. </p>
|
|
1833
2012
|
*/
|
|
1834
2013
|
RoleArn: string | undefined;
|
|
@@ -1855,10 +2034,12 @@ export interface NotificationChannel {
|
|
|
1855
2034
|
*/
|
|
1856
2035
|
export interface OutputConfig {
|
|
1857
2036
|
/**
|
|
2037
|
+
* @public
|
|
1858
2038
|
* <p>The name of the bucket your output will go to.</p>
|
|
1859
2039
|
*/
|
|
1860
2040
|
S3Bucket: string | undefined;
|
|
1861
2041
|
/**
|
|
2042
|
+
* @public
|
|
1862
2043
|
* <p>The prefix of the object key that the output will be saved to. When not enabled, the
|
|
1863
2044
|
* prefix will be “textract_output".</p>
|
|
1864
2045
|
*/
|
|
@@ -1869,10 +2050,12 @@ export interface OutputConfig {
|
|
|
1869
2050
|
*/
|
|
1870
2051
|
export interface StartDocumentAnalysisRequest {
|
|
1871
2052
|
/**
|
|
2053
|
+
* @public
|
|
1872
2054
|
* <p>The location of the document to be processed.</p>
|
|
1873
2055
|
*/
|
|
1874
2056
|
DocumentLocation: DocumentLocation | undefined;
|
|
1875
2057
|
/**
|
|
2058
|
+
* @public
|
|
1876
2059
|
* <p>A list of the types of analysis to perform. Add TABLES to the list to return information
|
|
1877
2060
|
* about the tables that are detected in the input document. Add FORMS to return detected
|
|
1878
2061
|
* form data. To perform both types of analysis, add TABLES
|
|
@@ -1882,6 +2065,7 @@ export interface StartDocumentAnalysisRequest {
|
|
|
1882
2065
|
*/
|
|
1883
2066
|
FeatureTypes: (FeatureType | string)[] | undefined;
|
|
1884
2067
|
/**
|
|
2068
|
+
* @public
|
|
1885
2069
|
* <p>The idempotent token that you use to identify the start request. If you use the same
|
|
1886
2070
|
* token with multiple <code>StartDocumentAnalysis</code> requests, the same
|
|
1887
2071
|
* <code>JobId</code> is returned. Use <code>ClientRequestToken</code> to prevent the same
|
|
@@ -1890,6 +2074,7 @@ export interface StartDocumentAnalysisRequest {
|
|
|
1890
2074
|
*/
|
|
1891
2075
|
ClientRequestToken?: string;
|
|
1892
2076
|
/**
|
|
2077
|
+
* @public
|
|
1893
2078
|
* <p>An identifier that you specify that's included in the completion notification published
|
|
1894
2079
|
* to the Amazon SNS topic. For example, you can use <code>JobTag</code> to identify the type of
|
|
1895
2080
|
* document that the completion notification corresponds to (such as a tax form or a
|
|
@@ -1897,16 +2082,19 @@ export interface StartDocumentAnalysisRequest {
|
|
|
1897
2082
|
*/
|
|
1898
2083
|
JobTag?: string;
|
|
1899
2084
|
/**
|
|
2085
|
+
* @public
|
|
1900
2086
|
* <p>The Amazon SNS topic ARN that you want Amazon Textract to publish the completion status of the
|
|
1901
2087
|
* operation to. </p>
|
|
1902
2088
|
*/
|
|
1903
2089
|
NotificationChannel?: NotificationChannel;
|
|
1904
2090
|
/**
|
|
2091
|
+
* @public
|
|
1905
2092
|
* <p>Sets if the output will go to a customer defined bucket. By default, Amazon Textract will save
|
|
1906
2093
|
* the results internally to be accessed by the GetDocumentAnalysis operation.</p>
|
|
1907
2094
|
*/
|
|
1908
2095
|
OutputConfig?: OutputConfig;
|
|
1909
2096
|
/**
|
|
2097
|
+
* @public
|
|
1910
2098
|
* <p>The KMS key used to encrypt the inference results. This can be
|
|
1911
2099
|
* in either Key ID or Key Alias format. When a KMS key is provided, the
|
|
1912
2100
|
* KMS key will be used for server-side encryption of the objects in the
|
|
@@ -1915,6 +2103,7 @@ export interface StartDocumentAnalysisRequest {
|
|
|
1915
2103
|
*/
|
|
1916
2104
|
KMSKeyId?: string;
|
|
1917
2105
|
/**
|
|
2106
|
+
* @public
|
|
1918
2107
|
* <p></p>
|
|
1919
2108
|
*/
|
|
1920
2109
|
QueriesConfig?: QueriesConfig;
|
|
@@ -1924,6 +2113,7 @@ export interface StartDocumentAnalysisRequest {
|
|
|
1924
2113
|
*/
|
|
1925
2114
|
export interface StartDocumentAnalysisResponse {
|
|
1926
2115
|
/**
|
|
2116
|
+
* @public
|
|
1927
2117
|
* <p>The identifier for the document text detection job. Use <code>JobId</code> to identify
|
|
1928
2118
|
* the job in a subsequent call to <code>GetDocumentAnalysis</code>. A <code>JobId</code> value
|
|
1929
2119
|
* is only valid for 7 days.</p>
|
|
@@ -1935,10 +2125,12 @@ export interface StartDocumentAnalysisResponse {
|
|
|
1935
2125
|
*/
|
|
1936
2126
|
export interface StartDocumentTextDetectionRequest {
|
|
1937
2127
|
/**
|
|
2128
|
+
* @public
|
|
1938
2129
|
* <p>The location of the document to be processed.</p>
|
|
1939
2130
|
*/
|
|
1940
2131
|
DocumentLocation: DocumentLocation | undefined;
|
|
1941
2132
|
/**
|
|
2133
|
+
* @public
|
|
1942
2134
|
* <p>The idempotent token that's used to identify the start request. If you use the same
|
|
1943
2135
|
* token with multiple <code>StartDocumentTextDetection</code> requests, the same
|
|
1944
2136
|
* <code>JobId</code> is returned. Use <code>ClientRequestToken</code> to prevent the same
|
|
@@ -1947,6 +2139,7 @@ export interface StartDocumentTextDetectionRequest {
|
|
|
1947
2139
|
*/
|
|
1948
2140
|
ClientRequestToken?: string;
|
|
1949
2141
|
/**
|
|
2142
|
+
* @public
|
|
1950
2143
|
* <p>An identifier that you specify that's included in the completion notification published
|
|
1951
2144
|
* to the Amazon SNS topic. For example, you can use <code>JobTag</code> to identify the type of
|
|
1952
2145
|
* document that the completion notification corresponds to (such as a tax form or a
|
|
@@ -1954,16 +2147,19 @@ export interface StartDocumentTextDetectionRequest {
|
|
|
1954
2147
|
*/
|
|
1955
2148
|
JobTag?: string;
|
|
1956
2149
|
/**
|
|
2150
|
+
* @public
|
|
1957
2151
|
* <p>The Amazon SNS topic ARN that you want Amazon Textract to publish the completion status of the
|
|
1958
2152
|
* operation to. </p>
|
|
1959
2153
|
*/
|
|
1960
2154
|
NotificationChannel?: NotificationChannel;
|
|
1961
2155
|
/**
|
|
2156
|
+
* @public
|
|
1962
2157
|
* <p>Sets if the output will go to a customer defined bucket. By default Amazon Textract will
|
|
1963
2158
|
* save the results internally to be accessed with the GetDocumentTextDetection operation.</p>
|
|
1964
2159
|
*/
|
|
1965
2160
|
OutputConfig?: OutputConfig;
|
|
1966
2161
|
/**
|
|
2162
|
+
* @public
|
|
1967
2163
|
* <p>The KMS key used to encrypt the inference results. This can be
|
|
1968
2164
|
* in either Key ID or Key Alias format. When a KMS key is provided, the
|
|
1969
2165
|
* KMS key will be used for server-side encryption of the objects in the
|
|
@@ -1977,6 +2173,7 @@ export interface StartDocumentTextDetectionRequest {
|
|
|
1977
2173
|
*/
|
|
1978
2174
|
export interface StartDocumentTextDetectionResponse {
|
|
1979
2175
|
/**
|
|
2176
|
+
* @public
|
|
1980
2177
|
* <p>The identifier of the text detection job for the document. Use <code>JobId</code> to
|
|
1981
2178
|
* identify the job in a subsequent call to <code>GetDocumentTextDetection</code>.
|
|
1982
2179
|
* A <code>JobId</code> value is only valid for 7 days.</p>
|
|
@@ -1988,10 +2185,12 @@ export interface StartDocumentTextDetectionResponse {
|
|
|
1988
2185
|
*/
|
|
1989
2186
|
export interface StartExpenseAnalysisRequest {
|
|
1990
2187
|
/**
|
|
2188
|
+
* @public
|
|
1991
2189
|
* <p>The location of the document to be processed.</p>
|
|
1992
2190
|
*/
|
|
1993
2191
|
DocumentLocation: DocumentLocation | undefined;
|
|
1994
2192
|
/**
|
|
2193
|
+
* @public
|
|
1995
2194
|
* <p>The idempotent token that's used to identify the start request. If you use the same token with multiple <code>StartDocumentTextDetection</code> requests, the same <code>JobId</code> is returned.
|
|
1996
2195
|
* Use <code>ClientRequestToken</code> to prevent the same job from being accidentally started more than once.
|
|
1997
2196
|
* For more information, see <a href="https://docs.aws.amazon.com/textract/latest/dg/api-async.html">Calling Amazon Textract Asynchronous Operations</a>
|
|
@@ -1999,6 +2198,7 @@ export interface StartExpenseAnalysisRequest {
|
|
|
1999
2198
|
*/
|
|
2000
2199
|
ClientRequestToken?: string;
|
|
2001
2200
|
/**
|
|
2201
|
+
* @public
|
|
2002
2202
|
* <p>An identifier you specify that's included in the completion notification published
|
|
2003
2203
|
* to the Amazon SNS topic. For example, you can use <code>JobTag</code> to identify the type of
|
|
2004
2204
|
* document that the completion notification corresponds to (such as a tax form or a
|
|
@@ -2006,17 +2206,20 @@ export interface StartExpenseAnalysisRequest {
|
|
|
2006
2206
|
*/
|
|
2007
2207
|
JobTag?: string;
|
|
2008
2208
|
/**
|
|
2209
|
+
* @public
|
|
2009
2210
|
* <p>The Amazon SNS topic ARN that you want Amazon Textract to publish the completion status of the
|
|
2010
2211
|
* operation to. </p>
|
|
2011
2212
|
*/
|
|
2012
2213
|
NotificationChannel?: NotificationChannel;
|
|
2013
2214
|
/**
|
|
2215
|
+
* @public
|
|
2014
2216
|
* <p>Sets if the output will go to a customer defined bucket. By default, Amazon Textract will
|
|
2015
2217
|
* save the results internally to be accessed by the <code>GetExpenseAnalysis</code>
|
|
2016
2218
|
* operation.</p>
|
|
2017
2219
|
*/
|
|
2018
2220
|
OutputConfig?: OutputConfig;
|
|
2019
2221
|
/**
|
|
2222
|
+
* @public
|
|
2020
2223
|
* <p>The KMS key used to encrypt the inference results. This can be
|
|
2021
2224
|
* in either Key ID or Key Alias format. When a KMS key is provided, the
|
|
2022
2225
|
* KMS key will be used for server-side encryption of the objects in the
|
|
@@ -2030,6 +2233,7 @@ export interface StartExpenseAnalysisRequest {
|
|
|
2030
2233
|
*/
|
|
2031
2234
|
export interface StartExpenseAnalysisResponse {
|
|
2032
2235
|
/**
|
|
2236
|
+
* @public
|
|
2033
2237
|
* <p>A unique identifier for the text detection job. The <code>JobId</code> is returned from
|
|
2034
2238
|
* <code>StartExpenseAnalysis</code>. A <code>JobId</code> value is only valid for 7 days.</p>
|
|
2035
2239
|
*/
|
|
@@ -2040,6 +2244,7 @@ export interface StartExpenseAnalysisResponse {
|
|
|
2040
2244
|
*/
|
|
2041
2245
|
export interface StartLendingAnalysisRequest {
|
|
2042
2246
|
/**
|
|
2247
|
+
* @public
|
|
2043
2248
|
* <p>The Amazon S3 bucket that contains the document to be processed. It's used by asynchronous
|
|
2044
2249
|
* operations.</p>
|
|
2045
2250
|
* <p>The input document can be an image file in JPEG or PNG format. It can also be a file in
|
|
@@ -2047,6 +2252,7 @@ export interface StartLendingAnalysisRequest {
|
|
|
2047
2252
|
*/
|
|
2048
2253
|
DocumentLocation: DocumentLocation | undefined;
|
|
2049
2254
|
/**
|
|
2255
|
+
* @public
|
|
2050
2256
|
* <p>The idempotent token that you use to identify the start request. If you use the same token
|
|
2051
2257
|
* with multiple <code>StartLendingAnalysis</code> requests, the same <code>JobId</code> is
|
|
2052
2258
|
* returned. Use <code>ClientRequestToken</code> to prevent the same job from being accidentally
|
|
@@ -2054,6 +2260,7 @@ export interface StartLendingAnalysisRequest {
|
|
|
2054
2260
|
*/
|
|
2055
2261
|
ClientRequestToken?: string;
|
|
2056
2262
|
/**
|
|
2263
|
+
* @public
|
|
2057
2264
|
* <p>An identifier that you specify to be included in the completion notification published to
|
|
2058
2265
|
* the Amazon SNS topic. For example, you can use <code>JobTag</code> to identify the type of
|
|
2059
2266
|
* document that the completion notification corresponds to (such as a tax form or a
|
|
@@ -2061,11 +2268,13 @@ export interface StartLendingAnalysisRequest {
|
|
|
2061
2268
|
*/
|
|
2062
2269
|
JobTag?: string;
|
|
2063
2270
|
/**
|
|
2271
|
+
* @public
|
|
2064
2272
|
* <p>The Amazon Simple Notification Service (Amazon SNS) topic to which Amazon Textract publishes the completion status of
|
|
2065
2273
|
* an asynchronous document operation. </p>
|
|
2066
2274
|
*/
|
|
2067
2275
|
NotificationChannel?: NotificationChannel;
|
|
2068
2276
|
/**
|
|
2277
|
+
* @public
|
|
2069
2278
|
* <p>Sets whether or not your output will go to a user created bucket. Used to set the name
|
|
2070
2279
|
* of the bucket, and the prefix on the output file.</p>
|
|
2071
2280
|
* <p>
|
|
@@ -2086,6 +2295,7 @@ export interface StartLendingAnalysisRequest {
|
|
|
2086
2295
|
*/
|
|
2087
2296
|
OutputConfig?: OutputConfig;
|
|
2088
2297
|
/**
|
|
2298
|
+
* @public
|
|
2089
2299
|
* <p>The KMS key used to encrypt the inference results. This can be in either Key ID or Key
|
|
2090
2300
|
* Alias format. When a KMS key is provided, the KMS key will be used for server-side encryption of
|
|
2091
2301
|
* the objects in the customer bucket. When this parameter is not enabled, the result will be
|
|
@@ -2098,6 +2308,7 @@ export interface StartLendingAnalysisRequest {
|
|
|
2098
2308
|
*/
|
|
2099
2309
|
export interface StartLendingAnalysisResponse {
|
|
2100
2310
|
/**
|
|
2311
|
+
* @public
|
|
2101
2312
|
* <p>A unique identifier for the lending or text-detection job. The <code>JobId</code> is
|
|
2102
2313
|
* returned from <code>StartLendingAnalysis</code>. A <code>JobId</code> value is only valid for 7
|
|
2103
2314
|
* days.</p>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-textract",
|
|
3
3
|
"description": "AWS SDK for JavaScript Textract Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.382.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.382.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.382.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.379.1",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.378.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.378.0",
|
|
29
29
|
"@aws-sdk/middleware-signing": "3.379.1",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.382.0",
|
|
31
31
|
"@aws-sdk/types": "3.378.0",
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.382.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "3.378.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-node": "3.378.0",
|
|
35
35
|
"@smithy/config-resolver": "^2.0.1",
|