@maxim_mazurok/gapi.client.documentai-v1 0.0.20240515 → 0.0.20240531

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 +325 -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=v1
12
- // Revision: 20240515
12
+ // Revision: 20240531
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -380,8 +380,12 @@ declare namespace gapi.client {
380
380
  vertices?: GoogleCloudDocumentaiV1beta1Vertex[];
381
381
  }
382
382
  interface GoogleCloudDocumentaiV1beta1Document {
383
+ /** Document chunked based on chunking config. */
384
+ chunkedDocument?: GoogleCloudDocumentaiV1beta1DocumentChunkedDocument;
383
385
  /** 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. */
384
386
  content?: string;
387
+ /** Parsed layout of the document. */
388
+ documentLayout?: GoogleCloudDocumentaiV1beta1DocumentDocumentLayout;
385
389
  /** A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries. */
386
390
  entities?: GoogleCloudDocumentaiV1beta1DocumentEntity[];
387
391
  /** Placeholder. Relationship among Document.entities. */
@@ -405,6 +409,102 @@ declare namespace gapi.client {
405
409
  /** 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). */
406
410
  uri?: string;
407
411
  }
412
+ interface GoogleCloudDocumentaiV1beta1DocumentChunkedDocument {
413
+ /** List of chunks. */
414
+ chunks?: GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunk[];
415
+ }
416
+ interface GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunk {
417
+ /** ID of the chunk. */
418
+ chunkId?: string;
419
+ /** Text content of the chunk. */
420
+ content?: string;
421
+ /** Page footers associated with the chunk. */
422
+ pageFooters?: GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageFooter[];
423
+ /** Page headers associated with the chunk. */
424
+ pageHeaders?: GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageHeader[];
425
+ /** Page span of the chunk. */
426
+ pageSpan?: GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageSpan;
427
+ /** Unused. */
428
+ sourceBlockIds?: string[];
429
+ }
430
+ interface GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageFooter {
431
+ /** Page span of the footer. */
432
+ pageSpan?: GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageSpan;
433
+ /** Footer in text format. */
434
+ text?: string;
435
+ }
436
+ interface GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageHeader {
437
+ /** Page span of the header. */
438
+ pageSpan?: GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageSpan;
439
+ /** Header in text format. */
440
+ text?: string;
441
+ }
442
+ interface GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageSpan {
443
+ /** Page where chunk ends in the document. */
444
+ pageEnd?: number;
445
+ /** Page where chunk starts in the document. */
446
+ pageStart?: number;
447
+ }
448
+ interface GoogleCloudDocumentaiV1beta1DocumentDocumentLayout {
449
+ /** List of blocks in the document. */
450
+ blocks?: GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlock[];
451
+ }
452
+ interface GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlock {
453
+ /** ID of the block. */
454
+ blockId?: string;
455
+ /** Block consisting of list content/structure. */
456
+ listBlock?: GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock;
457
+ /** Page span of the block. */
458
+ pageSpan?: GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan;
459
+ /** Block consisting of table content/structure. */
460
+ tableBlock?: GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock;
461
+ /** Block consisting of text content. */
462
+ textBlock?: GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock;
463
+ }
464
+ interface GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock {
465
+ /** List entries that constitute a list block. */
466
+ listEntries?: GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry[];
467
+ /** Type of the list_entries (if exist). Available options are `ordered` and `unordered`. */
468
+ type?: string;
469
+ }
470
+ interface GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry {
471
+ /** A list entry is a list of blocks. Repeated blocks support further hierarchies and nested blocks. */
472
+ blocks?: GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlock[];
473
+ }
474
+ interface GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan {
475
+ /** Page where block ends in the document. */
476
+ pageEnd?: number;
477
+ /** Page where block starts in the document. */
478
+ pageStart?: number;
479
+ }
480
+ interface GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock {
481
+ /** Body rows containing main table content. */
482
+ bodyRows?: GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow[];
483
+ /** Table caption/title. */
484
+ caption?: string;
485
+ /** Header rows at the top of the table. */
486
+ headerRows?: GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow[];
487
+ }
488
+ interface GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell {
489
+ /** A table cell is a list of blocks. Repeated blocks support further hierarchies and nested blocks. */
490
+ blocks?: GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlock[];
491
+ /** How many columns this cell spans. */
492
+ colSpan?: number;
493
+ /** How many rows this cell spans. */
494
+ rowSpan?: number;
495
+ }
496
+ interface GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow {
497
+ /** A table row is a list of table cells. */
498
+ cells?: GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell[];
499
+ }
500
+ interface GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock {
501
+ /** A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks. */
502
+ blocks?: GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlock[];
503
+ /** Text content stored in the block. */
504
+ text?: string;
505
+ /** Type of the text in the block. Available options are: `paragraph`, `subtitle`, `heading-1`, `heading-2`, `heading-3`, `heading-4`, `heading-5`, `header`, `footer`. */
506
+ type?: string;
507
+ }
408
508
  interface GoogleCloudDocumentaiV1beta1DocumentEntity {
409
509
  /** Optional. Confidence of detected Schema entity. Range `[0, 1]`. */
410
510
  confidence?: number;
@@ -856,8 +956,12 @@ declare namespace gapi.client {
856
956
  vertices?: GoogleCloudDocumentaiV1beta2Vertex[];
857
957
  }
858
958
  interface GoogleCloudDocumentaiV1beta2Document {
959
+ /** Document chunked based on chunking config. */
960
+ chunkedDocument?: GoogleCloudDocumentaiV1beta2DocumentChunkedDocument;
859
961
  /** 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. */
860
962
  content?: string;
963
+ /** Parsed layout of the document. */
964
+ documentLayout?: GoogleCloudDocumentaiV1beta2DocumentDocumentLayout;
861
965
  /** A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries. */
862
966
  entities?: GoogleCloudDocumentaiV1beta2DocumentEntity[];
863
967
  /** Placeholder. Relationship among Document.entities. */
@@ -883,6 +987,102 @@ declare namespace gapi.client {
883
987
  /** 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). */
884
988
  uri?: string;
885
989
  }
990
+ interface GoogleCloudDocumentaiV1beta2DocumentChunkedDocument {
991
+ /** List of chunks. */
992
+ chunks?: GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunk[];
993
+ }
994
+ interface GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunk {
995
+ /** ID of the chunk. */
996
+ chunkId?: string;
997
+ /** Text content of the chunk. */
998
+ content?: string;
999
+ /** Page footers associated with the chunk. */
1000
+ pageFooters?: GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageFooter[];
1001
+ /** Page headers associated with the chunk. */
1002
+ pageHeaders?: GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageHeader[];
1003
+ /** Page span of the chunk. */
1004
+ pageSpan?: GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageSpan;
1005
+ /** Unused. */
1006
+ sourceBlockIds?: string[];
1007
+ }
1008
+ interface GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageFooter {
1009
+ /** Page span of the footer. */
1010
+ pageSpan?: GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageSpan;
1011
+ /** Footer in text format. */
1012
+ text?: string;
1013
+ }
1014
+ interface GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageHeader {
1015
+ /** Page span of the header. */
1016
+ pageSpan?: GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageSpan;
1017
+ /** Header in text format. */
1018
+ text?: string;
1019
+ }
1020
+ interface GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageSpan {
1021
+ /** Page where chunk ends in the document. */
1022
+ pageEnd?: number;
1023
+ /** Page where chunk starts in the document. */
1024
+ pageStart?: number;
1025
+ }
1026
+ interface GoogleCloudDocumentaiV1beta2DocumentDocumentLayout {
1027
+ /** List of blocks in the document. */
1028
+ blocks?: GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock[];
1029
+ }
1030
+ interface GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock {
1031
+ /** ID of the block. */
1032
+ blockId?: string;
1033
+ /** Block consisting of list content/structure. */
1034
+ listBlock?: GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock;
1035
+ /** Page span of the block. */
1036
+ pageSpan?: GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan;
1037
+ /** Block consisting of table content/structure. */
1038
+ tableBlock?: GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock;
1039
+ /** Block consisting of text content. */
1040
+ textBlock?: GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock;
1041
+ }
1042
+ interface GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock {
1043
+ /** List entries that constitute a list block. */
1044
+ listEntries?: GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry[];
1045
+ /** Type of the list_entries (if exist). Available options are `ordered` and `unordered`. */
1046
+ type?: string;
1047
+ }
1048
+ interface GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry {
1049
+ /** A list entry is a list of blocks. Repeated blocks support further hierarchies and nested blocks. */
1050
+ blocks?: GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock[];
1051
+ }
1052
+ interface GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan {
1053
+ /** Page where block ends in the document. */
1054
+ pageEnd?: number;
1055
+ /** Page where block starts in the document. */
1056
+ pageStart?: number;
1057
+ }
1058
+ interface GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock {
1059
+ /** Body rows containing main table content. */
1060
+ bodyRows?: GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow[];
1061
+ /** Table caption/title. */
1062
+ caption?: string;
1063
+ /** Header rows at the top of the table. */
1064
+ headerRows?: GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow[];
1065
+ }
1066
+ interface GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell {
1067
+ /** A table cell is a list of blocks. Repeated blocks support further hierarchies and nested blocks. */
1068
+ blocks?: GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock[];
1069
+ /** How many columns this cell spans. */
1070
+ colSpan?: number;
1071
+ /** How many rows this cell spans. */
1072
+ rowSpan?: number;
1073
+ }
1074
+ interface GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow {
1075
+ /** A table row is a list of table cells. */
1076
+ cells?: GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell[];
1077
+ }
1078
+ interface GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock {
1079
+ /** A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks. */
1080
+ blocks?: GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock[];
1081
+ /** Text content stored in the block. */
1082
+ text?: string;
1083
+ /** Type of the text in the block. Available options are: `paragraph`, `subtitle`, `heading-1`, `heading-2`, `heading-3`, `heading-4`, `heading-5`, `header`, `footer`. */
1084
+ type?: string;
1085
+ }
886
1086
  interface GoogleCloudDocumentaiV1beta2DocumentEntity {
887
1087
  /** Optional. Confidence of detected Schema entity. Range `[0, 1]`. */
888
1088
  confidence?: number;
@@ -1386,6 +1586,10 @@ declare namespace gapi.client {
1386
1586
  gcsManagedConfig?: GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig;
1387
1587
  /** Dataset resource name. Format: `projects/{project}/locations/{location}/processors/{processor}/dataset` */
1388
1588
  name?: string;
1589
+ /** Output only. Reserved for future use. */
1590
+ satisfiesPzi?: boolean;
1591
+ /** Output only. Reserved for future use. */
1592
+ satisfiesPzs?: boolean;
1389
1593
  /** Optional. A lightweight indexing source with low latency and high reliability, but lacking advanced features like CMEK and content-based search. */
1390
1594
  spannerIndexingConfig?: any;
1391
1595
  /** Required. State of the dataset. Ignored when updating dataset. */
@@ -1604,8 +1808,12 @@ declare namespace gapi.client {
1604
1808
  interface GoogleCloudDocumentaiV1DisableProcessorRequest {}
1605
1809
  interface GoogleCloudDocumentaiV1DisableProcessorResponse {}
1606
1810
  interface GoogleCloudDocumentaiV1Document {
1811
+ /** Document chunked based on chunking config. */
1812
+ chunkedDocument?: GoogleCloudDocumentaiV1DocumentChunkedDocument;
1607
1813
  /** 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. */
1608
1814
  content?: string;
1815
+ /** Parsed layout of the document. */
1816
+ documentLayout?: GoogleCloudDocumentaiV1DocumentDocumentLayout;
1609
1817
  /** A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries. */
1610
1818
  entities?: GoogleCloudDocumentaiV1DocumentEntity[];
1611
1819
  /** Placeholder. Relationship among Document.entities. */
@@ -1629,6 +1837,102 @@ declare namespace gapi.client {
1629
1837
  /** 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). */
1630
1838
  uri?: string;
1631
1839
  }
1840
+ interface GoogleCloudDocumentaiV1DocumentChunkedDocument {
1841
+ /** List of chunks. */
1842
+ chunks?: GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk[];
1843
+ }
1844
+ interface GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk {
1845
+ /** ID of the chunk. */
1846
+ chunkId?: string;
1847
+ /** Text content of the chunk. */
1848
+ content?: string;
1849
+ /** Page footers associated with the chunk. */
1850
+ pageFooters?: GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter[];
1851
+ /** Page headers associated with the chunk. */
1852
+ pageHeaders?: GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageHeader[];
1853
+ /** Page span of the chunk. */
1854
+ pageSpan?: GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan;
1855
+ /** Unused. */
1856
+ sourceBlockIds?: string[];
1857
+ }
1858
+ interface GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter {
1859
+ /** Page span of the footer. */
1860
+ pageSpan?: GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan;
1861
+ /** Footer in text format. */
1862
+ text?: string;
1863
+ }
1864
+ interface GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageHeader {
1865
+ /** Page span of the header. */
1866
+ pageSpan?: GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan;
1867
+ /** Header in text format. */
1868
+ text?: string;
1869
+ }
1870
+ interface GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan {
1871
+ /** Page where chunk ends in the document. */
1872
+ pageEnd?: number;
1873
+ /** Page where chunk starts in the document. */
1874
+ pageStart?: number;
1875
+ }
1876
+ interface GoogleCloudDocumentaiV1DocumentDocumentLayout {
1877
+ /** List of blocks in the document. */
1878
+ blocks?: GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock[];
1879
+ }
1880
+ interface GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock {
1881
+ /** ID of the block. */
1882
+ blockId?: string;
1883
+ /** Block consisting of list content/structure. */
1884
+ listBlock?: GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock;
1885
+ /** Page span of the block. */
1886
+ pageSpan?: GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan;
1887
+ /** Block consisting of table content/structure. */
1888
+ tableBlock?: GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock;
1889
+ /** Block consisting of text content. */
1890
+ textBlock?: GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock;
1891
+ }
1892
+ interface GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock {
1893
+ /** List entries that constitute a list block. */
1894
+ listEntries?: GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry[];
1895
+ /** Type of the list_entries (if exist). Available options are `ordered` and `unordered`. */
1896
+ type?: string;
1897
+ }
1898
+ interface GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry {
1899
+ /** A list entry is a list of blocks. Repeated blocks support further hierarchies and nested blocks. */
1900
+ blocks?: GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock[];
1901
+ }
1902
+ interface GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan {
1903
+ /** Page where block ends in the document. */
1904
+ pageEnd?: number;
1905
+ /** Page where block starts in the document. */
1906
+ pageStart?: number;
1907
+ }
1908
+ interface GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock {
1909
+ /** Body rows containing main table content. */
1910
+ bodyRows?: GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow[];
1911
+ /** Table caption/title. */
1912
+ caption?: string;
1913
+ /** Header rows at the top of the table. */
1914
+ headerRows?: GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow[];
1915
+ }
1916
+ interface GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell {
1917
+ /** A table cell is a list of blocks. Repeated blocks support further hierarchies and nested blocks. */
1918
+ blocks?: GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock[];
1919
+ /** How many columns this cell spans. */
1920
+ colSpan?: number;
1921
+ /** How many rows this cell spans. */
1922
+ rowSpan?: number;
1923
+ }
1924
+ interface GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow {
1925
+ /** A table row is a list of table cells. */
1926
+ cells?: GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell[];
1927
+ }
1928
+ interface GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock {
1929
+ /** A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks. */
1930
+ blocks?: GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock[];
1931
+ /** Text content stored in the block. */
1932
+ text?: string;
1933
+ /** Type of the text in the block. Available options are: `paragraph`, `subtitle`, `heading-1`, `heading-2`, `heading-3`, `heading-4`, `heading-5`, `header`, `footer`. */
1934
+ type?: string;
1935
+ }
1632
1936
  interface GoogleCloudDocumentaiV1DocumentEntity {
1633
1937
  /** Optional. Confidence of detected Schema entity. Range `[0, 1]`. */
1634
1938
  confidence?: number;
@@ -2274,6 +2578,8 @@ declare namespace gapi.client {
2274
2578
  fromStart?: number;
2275
2579
  /** Which pages to process (1-indexed). */
2276
2580
  individualPageSelector?: GoogleCloudDocumentaiV1ProcessOptionsIndividualPageSelector;
2581
+ /** Optional. Only applicable to `LAYOUT_PARSER_PROCESSOR`. Returns error if set on other processor types. */
2582
+ layoutConfig?: GoogleCloudDocumentaiV1ProcessOptionsLayoutConfig;
2277
2583
  /** Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`. Returns error if set on other processor types. */
2278
2584
  ocrConfig?: GoogleCloudDocumentaiV1OcrConfig;
2279
2585
  /** Optional. Override the schema of the ProcessorVersion. Will return an Invalid Argument error if this field is set when the underlying ProcessorVersion doesn't support schema override. */
@@ -2283,6 +2589,16 @@ declare namespace gapi.client {
2283
2589
  /** Optional. Indices of the pages (starting from 1). */
2284
2590
  pages?: number[];
2285
2591
  }
2592
+ interface GoogleCloudDocumentaiV1ProcessOptionsLayoutConfig {
2593
+ /** Optional. Config for chunking in layout parser processor. */
2594
+ chunkingConfig?: GoogleCloudDocumentaiV1ProcessOptionsLayoutConfigChunkingConfig;
2595
+ }
2596
+ interface GoogleCloudDocumentaiV1ProcessOptionsLayoutConfigChunkingConfig {
2597
+ /** Optional. The chunk sizes to use when splitting documents, in order of level. */
2598
+ chunkSize?: number;
2599
+ /** Optional. Whether or not to include ancestor headings when splitting. */
2600
+ includeAncestorHeadings?: boolean;
2601
+ }
2286
2602
  interface GoogleCloudDocumentaiV1Processor {
2287
2603
  /** The time the processor was created. */
2288
2604
  createTime?: string;
@@ -2298,6 +2614,10 @@ declare namespace gapi.client {
2298
2614
  processEndpoint?: string;
2299
2615
  /** Output only. The processor version aliases. */
2300
2616
  processorVersionAliases?: GoogleCloudDocumentaiV1ProcessorVersionAlias[];
2617
+ /** Output only. Reserved for future use. */
2618
+ satisfiesPzi?: boolean;
2619
+ /** Output only. Reserved for future use. */
2620
+ satisfiesPzs?: boolean;
2301
2621
  /** Output only. The state of the processor. */
2302
2622
  state?: string;
2303
2623
  /** The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. To get a list of processor types, see FetchProcessorTypes. */
@@ -2344,6 +2664,10 @@ declare namespace gapi.client {
2344
2664
  modelType?: string;
2345
2665
  /** Identifier. The resource name of the processor version. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}` */
2346
2666
  name?: string;
2667
+ /** Output only. Reserved for future use. */
2668
+ satisfiesPzi?: boolean;
2669
+ /** Output only. Reserved for future use. */
2670
+ satisfiesPzs?: boolean;
2347
2671
  /** Output only. The state of the processor version. */
2348
2672
  state?: string;
2349
2673
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.documentai-v1",
3
- "version": "0.0.20240515",
3
+ "version": "0.0.20240531",
4
4
  "description": "TypeScript typings for Cloud Document AI API v1",
5
5
  "repository": {
6
6
  "type": "git",