Skip to content

Commit 59048ea

Browse files
author
awstools
committed
feat(client-textract): This release adds support for specifying and extracting information from documents using the Signatures feature within Analyze Document API
1 parent 97eada2 commit 59048ea

File tree

4 files changed

+166
-135
lines changed

4 files changed

+166
-135
lines changed

clients/client-textract/src/Textract.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ export class Textract extends TextractClient {
7878
* of <code>FeatureTypes</code>). </p>
7979
* </li>
8080
* <li>
81+
* <p>Signatures. A SIGNATURE <code>Block</code> object contains the location information
82+
* of a signature in a document. If used in conjunction with forms or tables, a signature
83+
* can be given a Key-Value pairing or be detected in the cell of a table.</p>
84+
* </li>
85+
* <li>
8186
* <p>Query. A QUERY Block object contains the query text, alias and link to the
8287
* associated Query results block object.</p>
8388
* </li>

clients/client-textract/src/commands/AnalyzeDocumentCommand.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ export interface AnalyzeDocumentCommandOutput extends AnalyzeDocumentResponse, _
5151
* of <code>FeatureTypes</code>). </p>
5252
* </li>
5353
* <li>
54+
* <p>Signatures. A SIGNATURE <code>Block</code> object contains the location information
55+
* of a signature in a document. If used in conjunction with forms or tables, a signature
56+
* can be given a Key-Value pairing or be detected in the cell of a table.</p>
57+
* </li>
58+
* <li>
5459
* <p>Query. A QUERY Block object contains the query text, alias and link to the
5560
* associated Query results block object.</p>
5661
* </li>

clients/client-textract/src/models/models_0.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ export interface Document {
9797
export enum FeatureType {
9898
FORMS = "FORMS",
9999
QUERIES = "QUERIES",
100+
SIGNATURES = "SIGNATURES",
100101
TABLES = "TABLES",
101102
}
102103

@@ -202,7 +203,9 @@ export interface AnalyzeDocumentRequest {
202203
/**
203204
* <p>A list of the types of analysis to perform. Add TABLES to the list to return information
204205
* about the tables that are detected in the input document. Add FORMS to return detected form
205-
* data. To perform both types of analysis, add TABLES and FORMS to <code>FeatureTypes</code>.
206+
* data. Add SIGNATURES to return the locations of detected signatures. To perform both forms
207+
* and table analysis, add TABLES and FORMS to <code>FeatureTypes</code>. To detect signatures within
208+
* form data and table data, add SIGNATURES to either TABLES or FORMS.
206209
* All lines and words detected in the document are included in the response (including text
207210
* that isn't related to the value of <code>FeatureTypes</code>). </p>
208211
*/
@@ -229,6 +232,7 @@ export enum BlockType {
229232
QUERY = "QUERY",
230233
QUERY_RESULT = "QUERY_RESULT",
231234
SELECTION_ELEMENT = "SELECTION_ELEMENT",
235+
SIGNATURE = "SIGNATURE",
232236
TABLE = "TABLE",
233237
TITLE = "TITLE",
234238
WORD = "WORD",
@@ -444,6 +448,11 @@ export interface Block {
444448
* </li>
445449
* <li>
446450
* <p>
451+
* <i>SIGNATURE</i> - The location and confidene score of a signature detected on a
452+
* document page. Can be returned as part of a Key-Value pair or a detected cell.</p>
453+
* </li>
454+
* <li>
455+
* <p>
447456
* <i>QUERY</i> - A question asked during the call of AnalyzeDocument. Contains an
448457
* alias and an ID that attaches it to its answer.</p>
449458
* </li>

0 commit comments

Comments
 (0)