@maxim_mazurok/gapi.client.documentai-v1beta3 0.0.20250402 → 0.0.20250421
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 +59 -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: 20250421
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -514,10 +514,14 @@ 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. */
|
|
520
522
|
content?: string;
|
|
523
|
+
/** Optional. An internal identifier for document. Should be loggable (no PII). */
|
|
524
|
+
docid?: string;
|
|
521
525
|
/** Parsed layout of the document. */
|
|
522
526
|
documentLayout?: GoogleCloudDocumentaiV1beta3DocumentDocumentLayout;
|
|
523
527
|
/** A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries. */
|
|
@@ -543,11 +547,25 @@ declare namespace gapi.client {
|
|
|
543
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). */
|
|
544
548
|
uri?: string;
|
|
545
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
|
+
}
|
|
546
562
|
interface GoogleCloudDocumentaiV1beta3DocumentChunkedDocument {
|
|
547
563
|
/** List of chunks. */
|
|
548
564
|
chunks?: GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk[];
|
|
549
565
|
}
|
|
550
566
|
interface GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk {
|
|
567
|
+
/** Chunk fields inside this chunk. */
|
|
568
|
+
chunkFields?: GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkField[];
|
|
551
569
|
/** ID of the chunk. */
|
|
552
570
|
chunkId?: string;
|
|
553
571
|
/** Text content of the chunk. */
|
|
@@ -561,6 +579,12 @@ declare namespace gapi.client {
|
|
|
561
579
|
/** Unused. */
|
|
562
580
|
sourceBlockIds?: string[];
|
|
563
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
|
+
}
|
|
564
588
|
interface GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageFooter {
|
|
565
589
|
/** Page span of the footer. */
|
|
566
590
|
pageSpan?: GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan;
|
|
@@ -579,6 +603,20 @@ declare namespace gapi.client {
|
|
|
579
603
|
/** Page where chunk starts in the document. */
|
|
580
604
|
pageStart?: number;
|
|
581
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
|
+
}
|
|
582
620
|
interface GoogleCloudDocumentaiV1beta3DocumentDocumentLayout {
|
|
583
621
|
/** List of blocks in the document. */
|
|
584
622
|
blocks?: GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock[];
|
|
@@ -586,6 +624,10 @@ declare namespace gapi.client {
|
|
|
586
624
|
interface GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock {
|
|
587
625
|
/** ID of the block. */
|
|
588
626
|
blockId?: string;
|
|
627
|
+
/** Identifies the bounding box for the block. */
|
|
628
|
+
boundingBox?: GoogleCloudDocumentaiV1beta3BoundingPoly;
|
|
629
|
+
/** Block consisting of image content. */
|
|
630
|
+
imageBlock?: GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutImageBlock;
|
|
589
631
|
/** Block consisting of list content/structure. */
|
|
590
632
|
listBlock?: GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock;
|
|
591
633
|
/** Page span of the block. */
|
|
@@ -595,6 +637,20 @@ declare namespace gapi.client {
|
|
|
595
637
|
/** Block consisting of text content. */
|
|
596
638
|
textBlock?: GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock;
|
|
597
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
|
+
}
|
|
598
654
|
interface GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock {
|
|
599
655
|
/** List entries that constitute a list block. */
|
|
600
656
|
listEntries?: GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry[];
|
|
@@ -1056,6 +1112,8 @@ declare namespace gapi.client {
|
|
|
1056
1112
|
description?: string;
|
|
1057
1113
|
/** User defined name for the property. */
|
|
1058
1114
|
displayName?: string;
|
|
1115
|
+
/** Grounding config of the entity type. */
|
|
1116
|
+
groundingConfig?: string;
|
|
1059
1117
|
/** The name of the property. Follows the same guidelines as the EntityType name. */
|
|
1060
1118
|
name?: string;
|
|
1061
1119
|
/** Occurrence type limits the number of instances an entity type appears in the document. */
|