@aws-sdk/client-textract 3.418.0 → 3.421.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/README.md +7 -7
- package/dist-cjs/models/models_0.js +11 -0
- package/dist-es/models/models_0.js +11 -0
- package/dist-types/commands/AnalyzeDocumentCommand.d.ts +2 -2
- package/dist-types/commands/AnalyzeExpenseCommand.d.ts +1 -1
- package/dist-types/commands/AnalyzeIDCommand.d.ts +1 -1
- package/dist-types/commands/DetectDocumentTextCommand.d.ts +1 -1
- package/dist-types/commands/GetDocumentAnalysisCommand.d.ts +1 -1
- package/dist-types/commands/GetDocumentTextDetectionCommand.d.ts +1 -1
- package/dist-types/commands/GetExpenseAnalysisCommand.d.ts +1 -1
- package/dist-types/commands/GetLendingAnalysisCommand.d.ts +2 -2
- package/dist-types/commands/StartDocumentAnalysisCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +19 -8
- package/dist-types/ts3.4/models/models_0.d.ts +11 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -25,16 +25,16 @@ using your favorite package manager:
|
|
|
25
25
|
|
|
26
26
|
The AWS SDK is modulized by clients and commands.
|
|
27
27
|
To send a request, you only need to import the `TextractClient` and
|
|
28
|
-
the commands you need, for example `
|
|
28
|
+
the commands you need, for example `GetDocumentAnalysisCommand`:
|
|
29
29
|
|
|
30
30
|
```js
|
|
31
31
|
// ES5 example
|
|
32
|
-
const { TextractClient,
|
|
32
|
+
const { TextractClient, GetDocumentAnalysisCommand } = require("@aws-sdk/client-textract");
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
```ts
|
|
36
36
|
// ES6+ example
|
|
37
|
-
import { TextractClient,
|
|
37
|
+
import { TextractClient, GetDocumentAnalysisCommand } from "@aws-sdk/client-textract";
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
### Usage
|
|
@@ -53,7 +53,7 @@ const client = new TextractClient({ region: "REGION" });
|
|
|
53
53
|
const params = {
|
|
54
54
|
/** input parameters */
|
|
55
55
|
};
|
|
56
|
-
const command = new
|
|
56
|
+
const command = new GetDocumentAnalysisCommand(params);
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
#### Async/await
|
|
@@ -132,7 +132,7 @@ const client = new AWS.Textract({ region: "REGION" });
|
|
|
132
132
|
|
|
133
133
|
// async/await.
|
|
134
134
|
try {
|
|
135
|
-
const data = await client.
|
|
135
|
+
const data = await client.getDocumentAnalysis(params);
|
|
136
136
|
// process data.
|
|
137
137
|
} catch (error) {
|
|
138
138
|
// error handling.
|
|
@@ -140,7 +140,7 @@ try {
|
|
|
140
140
|
|
|
141
141
|
// Promises.
|
|
142
142
|
client
|
|
143
|
-
.
|
|
143
|
+
.getDocumentAnalysis(params)
|
|
144
144
|
.then((data) => {
|
|
145
145
|
// process data.
|
|
146
146
|
})
|
|
@@ -149,7 +149,7 @@ client
|
|
|
149
149
|
});
|
|
150
150
|
|
|
151
151
|
// callbacks.
|
|
152
|
-
client.
|
|
152
|
+
client.getDocumentAnalysis(params, (err, data) => {
|
|
153
153
|
// process err and data.
|
|
154
154
|
});
|
|
155
155
|
```
|
|
@@ -19,6 +19,7 @@ class AccessDeniedException extends TextractServiceException_1.TextractServiceEx
|
|
|
19
19
|
exports.AccessDeniedException = AccessDeniedException;
|
|
20
20
|
exports.FeatureType = {
|
|
21
21
|
FORMS: "FORMS",
|
|
22
|
+
LAYOUT: "LAYOUT",
|
|
22
23
|
QUERIES: "QUERIES",
|
|
23
24
|
SIGNATURES: "SIGNATURES",
|
|
24
25
|
TABLES: "TABLES",
|
|
@@ -30,6 +31,16 @@ exports.ContentClassifier = {
|
|
|
30
31
|
exports.BlockType = {
|
|
31
32
|
CELL: "CELL",
|
|
32
33
|
KEY_VALUE_SET: "KEY_VALUE_SET",
|
|
34
|
+
LAYOUT_FIGURE: "LAYOUT_FIGURE",
|
|
35
|
+
LAYOUT_FOOTER: "LAYOUT_FOOTER",
|
|
36
|
+
LAYOUT_HEADER: "LAYOUT_HEADER",
|
|
37
|
+
LAYOUT_KEY_VALUE: "LAYOUT_KEY_VALUE",
|
|
38
|
+
LAYOUT_LIST: "LAYOUT_LIST",
|
|
39
|
+
LAYOUT_PAGE_NUMBER: "LAYOUT_PAGE_NUMBER",
|
|
40
|
+
LAYOUT_SECTION_HEADER: "LAYOUT_SECTION_HEADER",
|
|
41
|
+
LAYOUT_TABLE: "LAYOUT_TABLE",
|
|
42
|
+
LAYOUT_TEXT: "LAYOUT_TEXT",
|
|
43
|
+
LAYOUT_TITLE: "LAYOUT_TITLE",
|
|
33
44
|
LINE: "LINE",
|
|
34
45
|
MERGED_CELL: "MERGED_CELL",
|
|
35
46
|
PAGE: "PAGE",
|
|
@@ -15,6 +15,7 @@ export class AccessDeniedException extends __BaseException {
|
|
|
15
15
|
}
|
|
16
16
|
export const FeatureType = {
|
|
17
17
|
FORMS: "FORMS",
|
|
18
|
+
LAYOUT: "LAYOUT",
|
|
18
19
|
QUERIES: "QUERIES",
|
|
19
20
|
SIGNATURES: "SIGNATURES",
|
|
20
21
|
TABLES: "TABLES",
|
|
@@ -26,6 +27,16 @@ export const ContentClassifier = {
|
|
|
26
27
|
export const BlockType = {
|
|
27
28
|
CELL: "CELL",
|
|
28
29
|
KEY_VALUE_SET: "KEY_VALUE_SET",
|
|
30
|
+
LAYOUT_FIGURE: "LAYOUT_FIGURE",
|
|
31
|
+
LAYOUT_FOOTER: "LAYOUT_FOOTER",
|
|
32
|
+
LAYOUT_HEADER: "LAYOUT_HEADER",
|
|
33
|
+
LAYOUT_KEY_VALUE: "LAYOUT_KEY_VALUE",
|
|
34
|
+
LAYOUT_LIST: "LAYOUT_LIST",
|
|
35
|
+
LAYOUT_PAGE_NUMBER: "LAYOUT_PAGE_NUMBER",
|
|
36
|
+
LAYOUT_SECTION_HEADER: "LAYOUT_SECTION_HEADER",
|
|
37
|
+
LAYOUT_TABLE: "LAYOUT_TABLE",
|
|
38
|
+
LAYOUT_TEXT: "LAYOUT_TEXT",
|
|
39
|
+
LAYOUT_TITLE: "LAYOUT_TITLE",
|
|
29
40
|
LINE: "LINE",
|
|
30
41
|
MERGED_CELL: "MERGED_CELL",
|
|
31
42
|
PAGE: "PAGE",
|
|
@@ -86,7 +86,7 @@ export interface AnalyzeDocumentCommandOutput extends AnalyzeDocumentResponse, _
|
|
|
86
86
|
* },
|
|
87
87
|
* },
|
|
88
88
|
* FeatureTypes: [ // FeatureTypes // required
|
|
89
|
-
* "TABLES" || "FORMS" || "QUERIES" || "SIGNATURES",
|
|
89
|
+
* "TABLES" || "FORMS" || "QUERIES" || "SIGNATURES" || "LAYOUT",
|
|
90
90
|
* ],
|
|
91
91
|
* HumanLoopConfig: { // HumanLoopConfig
|
|
92
92
|
* HumanLoopName: "STRING_VALUE", // required
|
|
@@ -117,7 +117,7 @@ export interface AnalyzeDocumentCommandOutput extends AnalyzeDocumentResponse, _
|
|
|
117
117
|
* // },
|
|
118
118
|
* // Blocks: [ // BlockList
|
|
119
119
|
* // { // Block
|
|
120
|
-
* // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER",
|
|
120
|
+
* // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER" || "LAYOUT_TEXT" || "LAYOUT_TITLE" || "LAYOUT_HEADER" || "LAYOUT_FOOTER" || "LAYOUT_SECTION_HEADER" || "LAYOUT_PAGE_NUMBER" || "LAYOUT_LIST" || "LAYOUT_FIGURE" || "LAYOUT_TABLE" || "LAYOUT_KEY_VALUE",
|
|
121
121
|
* // Confidence: Number("float"),
|
|
122
122
|
* // Text: "STRING_VALUE",
|
|
123
123
|
* // TextType: "HANDWRITING" || "PRINTED",
|
|
@@ -191,7 +191,7 @@ export interface AnalyzeExpenseCommandOutput extends AnalyzeExpenseResponse, __M
|
|
|
191
191
|
* // ],
|
|
192
192
|
* // Blocks: [ // BlockList
|
|
193
193
|
* // { // Block
|
|
194
|
-
* // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER",
|
|
194
|
+
* // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER" || "LAYOUT_TEXT" || "LAYOUT_TITLE" || "LAYOUT_HEADER" || "LAYOUT_FOOTER" || "LAYOUT_SECTION_HEADER" || "LAYOUT_PAGE_NUMBER" || "LAYOUT_LIST" || "LAYOUT_FIGURE" || "LAYOUT_TABLE" || "LAYOUT_KEY_VALUE",
|
|
195
195
|
* // Confidence: Number("float"),
|
|
196
196
|
* // Text: "STRING_VALUE",
|
|
197
197
|
* // TextType: "HANDWRITING" || "PRINTED",
|
|
@@ -73,7 +73,7 @@ export interface AnalyzeIDCommandOutput extends AnalyzeIDResponse, __MetadataBea
|
|
|
73
73
|
* // ],
|
|
74
74
|
* // Blocks: [ // BlockList
|
|
75
75
|
* // { // Block
|
|
76
|
-
* // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER",
|
|
76
|
+
* // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER" || "LAYOUT_TEXT" || "LAYOUT_TITLE" || "LAYOUT_HEADER" || "LAYOUT_FOOTER" || "LAYOUT_SECTION_HEADER" || "LAYOUT_PAGE_NUMBER" || "LAYOUT_LIST" || "LAYOUT_FIGURE" || "LAYOUT_TABLE" || "LAYOUT_KEY_VALUE",
|
|
77
77
|
* // Confidence: Number("float"),
|
|
78
78
|
* // Text: "STRING_VALUE",
|
|
79
79
|
* // TextType: "HANDWRITING" || "PRINTED",
|
|
@@ -58,7 +58,7 @@ export interface DetectDocumentTextCommandOutput extends DetectDocumentTextRespo
|
|
|
58
58
|
* // },
|
|
59
59
|
* // Blocks: [ // BlockList
|
|
60
60
|
* // { // Block
|
|
61
|
-
* // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER",
|
|
61
|
+
* // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER" || "LAYOUT_TEXT" || "LAYOUT_TITLE" || "LAYOUT_HEADER" || "LAYOUT_FOOTER" || "LAYOUT_SECTION_HEADER" || "LAYOUT_PAGE_NUMBER" || "LAYOUT_LIST" || "LAYOUT_FIGURE" || "LAYOUT_TABLE" || "LAYOUT_KEY_VALUE",
|
|
62
62
|
* // Confidence: Number("float"),
|
|
63
63
|
* // Text: "STRING_VALUE",
|
|
64
64
|
* // TextType: "HANDWRITING" || "PRINTED",
|
|
@@ -105,7 +105,7 @@ export interface GetDocumentAnalysisCommandOutput extends GetDocumentAnalysisRes
|
|
|
105
105
|
* // NextToken: "STRING_VALUE",
|
|
106
106
|
* // Blocks: [ // BlockList
|
|
107
107
|
* // { // Block
|
|
108
|
-
* // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER",
|
|
108
|
+
* // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER" || "LAYOUT_TEXT" || "LAYOUT_TITLE" || "LAYOUT_HEADER" || "LAYOUT_FOOTER" || "LAYOUT_SECTION_HEADER" || "LAYOUT_PAGE_NUMBER" || "LAYOUT_LIST" || "LAYOUT_FIGURE" || "LAYOUT_TABLE" || "LAYOUT_KEY_VALUE",
|
|
109
109
|
* // Confidence: Number("float"),
|
|
110
110
|
* // Text: "STRING_VALUE",
|
|
111
111
|
* // TextType: "HANDWRITING" || "PRINTED",
|
|
@@ -68,7 +68,7 @@ export interface GetDocumentTextDetectionCommandOutput extends GetDocumentTextDe
|
|
|
68
68
|
* // NextToken: "STRING_VALUE",
|
|
69
69
|
* // Blocks: [ // BlockList
|
|
70
70
|
* // { // Block
|
|
71
|
-
* // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER",
|
|
71
|
+
* // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER" || "LAYOUT_TEXT" || "LAYOUT_TITLE" || "LAYOUT_HEADER" || "LAYOUT_FOOTER" || "LAYOUT_SECTION_HEADER" || "LAYOUT_PAGE_NUMBER" || "LAYOUT_LIST" || "LAYOUT_FIGURE" || "LAYOUT_TABLE" || "LAYOUT_KEY_VALUE",
|
|
72
72
|
* // Confidence: Number("float"),
|
|
73
73
|
* // Text: "STRING_VALUE",
|
|
74
74
|
* // TextType: "HANDWRITING" || "PRINTED",
|
|
@@ -187,7 +187,7 @@ export interface GetExpenseAnalysisCommandOutput extends GetExpenseAnalysisRespo
|
|
|
187
187
|
* // ],
|
|
188
188
|
* // Blocks: [ // BlockList
|
|
189
189
|
* // { // Block
|
|
190
|
-
* // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER",
|
|
190
|
+
* // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER" || "LAYOUT_TEXT" || "LAYOUT_TITLE" || "LAYOUT_HEADER" || "LAYOUT_FOOTER" || "LAYOUT_SECTION_HEADER" || "LAYOUT_PAGE_NUMBER" || "LAYOUT_LIST" || "LAYOUT_FIGURE" || "LAYOUT_TABLE" || "LAYOUT_KEY_VALUE",
|
|
191
191
|
* // Confidence: Number("float"),
|
|
192
192
|
* // Text: "STRING_VALUE",
|
|
193
193
|
* // TextType: "HANDWRITING" || "PRINTED",
|
|
@@ -200,7 +200,7 @@ export interface GetLendingAnalysisCommandOutput extends GetLendingAnalysisRespo
|
|
|
200
200
|
* // ],
|
|
201
201
|
* // Blocks: [ // BlockList
|
|
202
202
|
* // { // Block
|
|
203
|
-
* // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER",
|
|
203
|
+
* // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER" || "LAYOUT_TEXT" || "LAYOUT_TITLE" || "LAYOUT_HEADER" || "LAYOUT_FOOTER" || "LAYOUT_SECTION_HEADER" || "LAYOUT_PAGE_NUMBER" || "LAYOUT_LIST" || "LAYOUT_FIGURE" || "LAYOUT_TABLE" || "LAYOUT_KEY_VALUE",
|
|
204
204
|
* // Confidence: Number("float"),
|
|
205
205
|
* // Text: "STRING_VALUE",
|
|
206
206
|
* // TextType: "HANDWRITING" || "PRINTED",
|
|
@@ -257,7 +257,7 @@ export interface GetLendingAnalysisCommandOutput extends GetLendingAnalysisRespo
|
|
|
257
257
|
* // ],
|
|
258
258
|
* // Blocks: [
|
|
259
259
|
* // {
|
|
260
|
-
* // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER",
|
|
260
|
+
* // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER" || "LAYOUT_TEXT" || "LAYOUT_TITLE" || "LAYOUT_HEADER" || "LAYOUT_FOOTER" || "LAYOUT_SECTION_HEADER" || "LAYOUT_PAGE_NUMBER" || "LAYOUT_LIST" || "LAYOUT_FIGURE" || "LAYOUT_TABLE" || "LAYOUT_KEY_VALUE",
|
|
261
261
|
* // Confidence: Number("float"),
|
|
262
262
|
* // Text: "STRING_VALUE",
|
|
263
263
|
* // TextType: "HANDWRITING" || "PRINTED",
|
|
@@ -55,7 +55,7 @@ export interface StartDocumentAnalysisCommandOutput extends StartDocumentAnalysi
|
|
|
55
55
|
* },
|
|
56
56
|
* },
|
|
57
57
|
* FeatureTypes: [ // FeatureTypes // required
|
|
58
|
-
* "TABLES" || "FORMS" || "QUERIES" || "SIGNATURES",
|
|
58
|
+
* "TABLES" || "FORMS" || "QUERIES" || "SIGNATURES" || "LAYOUT",
|
|
59
59
|
* ],
|
|
60
60
|
* ClientRequestToken: "STRING_VALUE",
|
|
61
61
|
* JobTag: "STRING_VALUE",
|
|
@@ -85,6 +85,7 @@ export interface Document {
|
|
|
85
85
|
*/
|
|
86
86
|
export declare const FeatureType: {
|
|
87
87
|
readonly FORMS: "FORMS";
|
|
88
|
+
readonly LAYOUT: "LAYOUT";
|
|
88
89
|
readonly QUERIES: "QUERIES";
|
|
89
90
|
readonly SIGNATURES: "SIGNATURES";
|
|
90
91
|
readonly TABLES: "TABLES";
|
|
@@ -210,11 +211,12 @@ export interface AnalyzeDocumentRequest {
|
|
|
210
211
|
* @public
|
|
211
212
|
* <p>A list of the types of analysis to perform. Add TABLES to the list to return information
|
|
212
213
|
* about the tables that are detected in the input document. Add FORMS to return detected form
|
|
213
|
-
* data. Add SIGNATURES to return the locations of detected signatures.
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
214
|
+
* data. Add SIGNATURES to return the locations of detected signatures. Add LAYOUT to the list
|
|
215
|
+
* to return information about the layout of the document. To perform both forms
|
|
216
|
+
* and table analysis, add TABLES and FORMS to <code>FeatureTypes</code>. To detect signatures
|
|
217
|
+
* within the document and within form data and table data, add SIGNATURES to either TABLES or
|
|
218
|
+
* FORMS. All lines and words detected in the document are included in the response (including
|
|
219
|
+
* text that isn't related to the value of <code>FeatureTypes</code>). </p>
|
|
218
220
|
*/
|
|
219
221
|
FeatureTypes: (FeatureType | string)[] | undefined;
|
|
220
222
|
/**
|
|
@@ -236,6 +238,16 @@ export interface AnalyzeDocumentRequest {
|
|
|
236
238
|
export declare const BlockType: {
|
|
237
239
|
readonly CELL: "CELL";
|
|
238
240
|
readonly KEY_VALUE_SET: "KEY_VALUE_SET";
|
|
241
|
+
readonly LAYOUT_FIGURE: "LAYOUT_FIGURE";
|
|
242
|
+
readonly LAYOUT_FOOTER: "LAYOUT_FOOTER";
|
|
243
|
+
readonly LAYOUT_HEADER: "LAYOUT_HEADER";
|
|
244
|
+
readonly LAYOUT_KEY_VALUE: "LAYOUT_KEY_VALUE";
|
|
245
|
+
readonly LAYOUT_LIST: "LAYOUT_LIST";
|
|
246
|
+
readonly LAYOUT_PAGE_NUMBER: "LAYOUT_PAGE_NUMBER";
|
|
247
|
+
readonly LAYOUT_SECTION_HEADER: "LAYOUT_SECTION_HEADER";
|
|
248
|
+
readonly LAYOUT_TABLE: "LAYOUT_TABLE";
|
|
249
|
+
readonly LAYOUT_TEXT: "LAYOUT_TEXT";
|
|
250
|
+
readonly LAYOUT_TITLE: "LAYOUT_TITLE";
|
|
239
251
|
readonly LINE: "LINE";
|
|
240
252
|
readonly MERGED_CELL: "MERGED_CELL";
|
|
241
253
|
readonly PAGE: "PAGE";
|
|
@@ -556,7 +568,7 @@ export interface Block {
|
|
|
556
568
|
* </li>
|
|
557
569
|
* <li>
|
|
558
570
|
* <p>
|
|
559
|
-
* <i>SIGNATURE</i> - The location and
|
|
571
|
+
* <i>SIGNATURE</i> - The location and confidence score of a signature detected on a
|
|
560
572
|
* document page. Can be returned as part of a Key-Value pair or a detected cell.</p>
|
|
561
573
|
* </li>
|
|
562
574
|
* <li>
|
|
@@ -706,8 +718,7 @@ export interface Block {
|
|
|
706
718
|
* documents that are in PDF or TIFF format. A scanned image (JPEG/PNG) provided to an
|
|
707
719
|
* asynchronous operation, even if it contains multiple document pages, is considered a
|
|
708
720
|
* single-page document. This means that for scanned images the value of <code>Page</code> is
|
|
709
|
-
* always 1.
|
|
710
|
-
* because every input document is considered to be a single-page document.</p>
|
|
721
|
+
* always 1. </p>
|
|
711
722
|
*/
|
|
712
723
|
Page?: number;
|
|
713
724
|
/**
|
|
@@ -23,6 +23,7 @@ export interface Document {
|
|
|
23
23
|
}
|
|
24
24
|
export declare const FeatureType: {
|
|
25
25
|
readonly FORMS: "FORMS";
|
|
26
|
+
readonly LAYOUT: "LAYOUT";
|
|
26
27
|
readonly QUERIES: "QUERIES";
|
|
27
28
|
readonly SIGNATURES: "SIGNATURES";
|
|
28
29
|
readonly TABLES: "TABLES";
|
|
@@ -59,6 +60,16 @@ export interface AnalyzeDocumentRequest {
|
|
|
59
60
|
export declare const BlockType: {
|
|
60
61
|
readonly CELL: "CELL";
|
|
61
62
|
readonly KEY_VALUE_SET: "KEY_VALUE_SET";
|
|
63
|
+
readonly LAYOUT_FIGURE: "LAYOUT_FIGURE";
|
|
64
|
+
readonly LAYOUT_FOOTER: "LAYOUT_FOOTER";
|
|
65
|
+
readonly LAYOUT_HEADER: "LAYOUT_HEADER";
|
|
66
|
+
readonly LAYOUT_KEY_VALUE: "LAYOUT_KEY_VALUE";
|
|
67
|
+
readonly LAYOUT_LIST: "LAYOUT_LIST";
|
|
68
|
+
readonly LAYOUT_PAGE_NUMBER: "LAYOUT_PAGE_NUMBER";
|
|
69
|
+
readonly LAYOUT_SECTION_HEADER: "LAYOUT_SECTION_HEADER";
|
|
70
|
+
readonly LAYOUT_TABLE: "LAYOUT_TABLE";
|
|
71
|
+
readonly LAYOUT_TEXT: "LAYOUT_TEXT";
|
|
72
|
+
readonly LAYOUT_TITLE: "LAYOUT_TITLE";
|
|
62
73
|
readonly LINE: "LINE";
|
|
63
74
|
readonly MERGED_CELL: "MERGED_CELL";
|
|
64
75
|
readonly PAGE: "PAGE";
|
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.421.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,8 +21,8 @@
|
|
|
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.421.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.421.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.418.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.418.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.418.0",
|