@maxim_mazurok/gapi.client.documentai-v1beta3 0.0.20250416 → 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.
Files changed (2) hide show
  1. package/index.d.ts +55 -1
  2. 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: 20250416
12
+ // Revision: 20250421
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[];
@@ -1060,6 +1112,8 @@ declare namespace gapi.client {
1060
1112
  description?: string;
1061
1113
  /** User defined name for the property. */
1062
1114
  displayName?: string;
1115
+ /** Grounding config of the entity type. */
1116
+ groundingConfig?: string;
1063
1117
  /** The name of the property. Follows the same guidelines as the EntityType name. */
1064
1118
  name?: string;
1065
1119
  /** Occurrence type limits the number of instances an entity type appears in the document. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.documentai-v1beta3",
3
- "version": "0.0.20250416",
3
+ "version": "0.0.20250421",
4
4
  "description": "TypeScript typings for Cloud Document AI API v1beta3",
5
5
  "repository": {
6
6
  "type": "git",