@maxim_mazurok/gapi.client.documentai-v1beta3 0.0.20250416 → 0.0.20250427
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/index.d.ts +64 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://documentai.googleapis.com/$discovery/rest?version=v1beta3
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20250427
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -514,6 +514,8 @@ declare namespace gapi.client {
|
|
|
514
514
|
interface GoogleCloudDocumentaiV1beta3DisableProcessorRequest {}
|
|
515
515
|
interface GoogleCloudDocumentaiV1beta3DisableProcessorResponse {}
|
|
516
516
|
interface GoogleCloudDocumentaiV1beta3Document {
|
|
517
|
+
/** Optional. The blob assets in this document. This is used to store the content of the inline blobs in this document, e.g. image bytes, such that it can be referenced by other fields in the document via asset id. */
|
|
518
|
+
blobAssets?: GoogleCloudDocumentaiV1beta3DocumentBlobAsset[];
|
|
517
519
|
/** Document chunked based on chunking config. */
|
|
518
520
|
chunkedDocument?: GoogleCloudDocumentaiV1beta3DocumentChunkedDocument;
|
|
519
521
|
/** Optional. Inline document content, represented as a stream of bytes. Note: As with all `bytes` fields, protobuffers use a pure binary representation, whereas JSON representations use base64. */
|
|
@@ -545,11 +547,25 @@ declare namespace gapi.client {
|
|
|
545
547
|
/** Optional. Currently supports Google Cloud Storage URI of the form `gs://bucket_name/object_name`. Object versioning is not supported. For more information, refer to [Google Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-uris). */
|
|
546
548
|
uri?: string;
|
|
547
549
|
}
|
|
550
|
+
interface GoogleCloudDocumentaiV1beta3DocumentAnnotations {
|
|
551
|
+
/** The description of the content with this annotation. */
|
|
552
|
+
description?: string;
|
|
553
|
+
}
|
|
554
|
+
interface GoogleCloudDocumentaiV1beta3DocumentBlobAsset {
|
|
555
|
+
/** Optional. The id of the blob asset. */
|
|
556
|
+
assetId?: string;
|
|
557
|
+
/** Optional. The content of the blob asset, e.g. image bytes. */
|
|
558
|
+
content?: string;
|
|
559
|
+
/** The mime type of the blob asset. An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml). */
|
|
560
|
+
mimeType?: string;
|
|
561
|
+
}
|
|
548
562
|
interface GoogleCloudDocumentaiV1beta3DocumentChunkedDocument {
|
|
549
563
|
/** List of chunks. */
|
|
550
564
|
chunks?: GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk[];
|
|
551
565
|
}
|
|
552
566
|
interface GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk {
|
|
567
|
+
/** Chunk fields inside this chunk. */
|
|
568
|
+
chunkFields?: GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkField[];
|
|
553
569
|
/** ID of the chunk. */
|
|
554
570
|
chunkId?: string;
|
|
555
571
|
/** Text content of the chunk. */
|
|
@@ -563,6 +579,12 @@ declare namespace gapi.client {
|
|
|
563
579
|
/** Unused. */
|
|
564
580
|
sourceBlockIds?: string[];
|
|
565
581
|
}
|
|
582
|
+
interface GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkField {
|
|
583
|
+
/** The image chunk field in the chunk. */
|
|
584
|
+
imageChunkField?: GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkImageChunkField;
|
|
585
|
+
/** The table chunk field in the chunk. */
|
|
586
|
+
tableChunkField?: GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkTableChunkField;
|
|
587
|
+
}
|
|
566
588
|
interface GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageFooter {
|
|
567
589
|
/** Page span of the footer. */
|
|
568
590
|
pageSpan?: GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan;
|
|
@@ -581,6 +603,20 @@ declare namespace gapi.client {
|
|
|
581
603
|
/** Page where chunk starts in the document. */
|
|
582
604
|
pageStart?: number;
|
|
583
605
|
}
|
|
606
|
+
interface GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkImageChunkField {
|
|
607
|
+
/** Annotation of the image chunk field. */
|
|
608
|
+
annotations?: GoogleCloudDocumentaiV1beta3DocumentAnnotations;
|
|
609
|
+
/** Optional. Asset id of the inline image. If set, find the image content in the blob_assets field. */
|
|
610
|
+
blobAssetId?: string;
|
|
611
|
+
/** Optional. Data uri of the image. It is composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:, */
|
|
612
|
+
dataUri?: string;
|
|
613
|
+
/** Optional. Google Cloud Storage uri of the image. */
|
|
614
|
+
gcsUri?: string;
|
|
615
|
+
}
|
|
616
|
+
interface GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkTableChunkField {
|
|
617
|
+
/** Annotation of the table chunk field. */
|
|
618
|
+
annotations?: GoogleCloudDocumentaiV1beta3DocumentAnnotations;
|
|
619
|
+
}
|
|
584
620
|
interface GoogleCloudDocumentaiV1beta3DocumentDocumentLayout {
|
|
585
621
|
/** List of blocks in the document. */
|
|
586
622
|
blocks?: GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock[];
|
|
@@ -590,6 +626,8 @@ declare namespace gapi.client {
|
|
|
590
626
|
blockId?: string;
|
|
591
627
|
/** Identifies the bounding box for the block. */
|
|
592
628
|
boundingBox?: GoogleCloudDocumentaiV1beta3BoundingPoly;
|
|
629
|
+
/** Block consisting of image content. */
|
|
630
|
+
imageBlock?: GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutImageBlock;
|
|
593
631
|
/** Block consisting of list content/structure. */
|
|
594
632
|
listBlock?: GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock;
|
|
595
633
|
/** Page span of the block. */
|
|
@@ -599,6 +637,20 @@ declare namespace gapi.client {
|
|
|
599
637
|
/** Block consisting of text content. */
|
|
600
638
|
textBlock?: GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock;
|
|
601
639
|
}
|
|
640
|
+
interface GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutImageBlock {
|
|
641
|
+
/** Annotation of the image block. */
|
|
642
|
+
annotations?: GoogleCloudDocumentaiV1beta3DocumentAnnotations;
|
|
643
|
+
/** Optional. Asset id of the inline image. If set, find the image content in the blob_assets field. */
|
|
644
|
+
blobAssetId?: string;
|
|
645
|
+
/** Optional. Data uri of the image. It is composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:, */
|
|
646
|
+
dataUri?: string;
|
|
647
|
+
/** Optional. Google Cloud Storage uri of the image. */
|
|
648
|
+
gcsUri?: string;
|
|
649
|
+
/** Text extracted from the image using OCR or alt text describing the image. */
|
|
650
|
+
imageText?: string;
|
|
651
|
+
/** Mime type of the image. An IANA published [media type (MIME type)] (https://www.iana.org/assignments/media-types/media-types.xhtml). */
|
|
652
|
+
mimeType?: string;
|
|
653
|
+
}
|
|
602
654
|
interface GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock {
|
|
603
655
|
/** List entries that constitute a list block. */
|
|
604
656
|
listEntries?: GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry[];
|
|
@@ -616,6 +668,8 @@ declare namespace gapi.client {
|
|
|
616
668
|
pageStart?: number;
|
|
617
669
|
}
|
|
618
670
|
interface GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock {
|
|
671
|
+
/** Annotation of the table block. */
|
|
672
|
+
annotations?: GoogleCloudDocumentaiV1beta3DocumentAnnotations;
|
|
619
673
|
/** Body rows containing main table content. */
|
|
620
674
|
bodyRows?: GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow[];
|
|
621
675
|
/** Table caption/title. */
|
|
@@ -682,6 +736,7 @@ declare namespace gapi.client {
|
|
|
682
736
|
integerValue?: number;
|
|
683
737
|
/** Money value. See also: https://github.com/googleapis/googleapis/blob/master/google/type/money.proto */
|
|
684
738
|
moneyValue?: GoogleTypeMoney;
|
|
739
|
+
signatureValue?: boolean;
|
|
685
740
|
/** Optional. An optional field to store a normalized string. For some entity types, one of respective `structured_value` fields may also be populated. Also not all the types of `structured_value` will be normalized. For example, some processors may not generate `float` or `integer` normalized text by default. Below are sample formats mapped to structured values. - Money/Currency type (`money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in the ISO 8601 text format. - Datetime type (`datetime_value`) is in the ISO 8601 text format. */
|
|
686
741
|
text?: string;
|
|
687
742
|
}
|
|
@@ -1060,6 +1115,8 @@ declare namespace gapi.client {
|
|
|
1060
1115
|
description?: string;
|
|
1061
1116
|
/** User defined name for the property. */
|
|
1062
1117
|
displayName?: string;
|
|
1118
|
+
/** Grounding config of the entity type. */
|
|
1119
|
+
groundingConfig?: string;
|
|
1063
1120
|
/** The name of the property. Follows the same guidelines as the EntityType name. */
|
|
1064
1121
|
name?: string;
|
|
1065
1122
|
/** Occurrence type limits the number of instances an entity type appears in the document. */
|
|
@@ -1432,8 +1489,14 @@ declare namespace gapi.client {
|
|
|
1432
1489
|
interface GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfig {
|
|
1433
1490
|
/** Optional. Config for chunking in layout parser processor. */
|
|
1434
1491
|
chunkingConfig?: GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig;
|
|
1492
|
+
/** Optional. Whether to include image annotations in layout parser response. */
|
|
1493
|
+
enableImageAnnotation?: boolean;
|
|
1494
|
+
/** Optional. Whether to extract images in layout parser response. */
|
|
1495
|
+
enableImageExtraction?: boolean;
|
|
1435
1496
|
/** Optional. Whether to refine PDF layout using LLM. */
|
|
1436
1497
|
enableLlmLayoutParsing?: boolean;
|
|
1498
|
+
/** Optional. Whether to include table annotations in layout parser response. */
|
|
1499
|
+
enableTableAnnotation?: boolean;
|
|
1437
1500
|
/** Optional. Whether to include bounding boxes in layout parser processor response. */
|
|
1438
1501
|
returnBoundingBoxes?: boolean;
|
|
1439
1502
|
/** Optional. Whether to include images in layout parser processor response. */
|