@maxim_mazurok/gapi.client.documentai-v1beta3 0.0.20221005 → 0.0.20221023

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 (3) hide show
  1. package/index.d.ts +27 -5
  2. package/package.json +1 -1
  3. package/tests.ts +85 -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: 20221005
12
+ // Revision: 20221023
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -622,6 +622,8 @@ declare namespace gapi.client {
622
622
  headerRows?: GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow[];
623
623
  /** Layout for Table. */
624
624
  layout?: GoogleCloudDocumentaiV1beta1DocumentPageLayout;
625
+ /** The history of this table. */
626
+ provenance?: GoogleCloudDocumentaiV1beta1DocumentProvenance;
625
627
  }
626
628
  interface GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell {
627
629
  /** How many columns this cell spans. */
@@ -1126,6 +1128,8 @@ declare namespace gapi.client {
1126
1128
  headerRows?: GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow[];
1127
1129
  /** Layout for Table. */
1128
1130
  layout?: GoogleCloudDocumentaiV1beta2DocumentPageLayout;
1131
+ /** The history of this table. */
1132
+ provenance?: GoogleCloudDocumentaiV1beta2DocumentProvenance;
1129
1133
  }
1130
1134
  interface GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell {
1131
1135
  /** How many columns this cell spans. */
@@ -1544,7 +1548,10 @@ declare namespace gapi.client {
1544
1548
  gcsOutputConfig?: GoogleCloudDocumentaiV1beta3DocumentOutputConfigGcsOutputConfig;
1545
1549
  }
1546
1550
  interface GoogleCloudDocumentaiV1beta3DocumentOutputConfigGcsOutputConfig {
1547
- /** Specifies which fields to include in the output documents. */
1551
+ /**
1552
+ * Specifies which fields to include in the output documents. Only supports top level document and pages field so it must be in the form of `{document_field_name}` or
1553
+ * `pages.{page_field_name}`.
1554
+ */
1548
1555
  fieldMask?: string;
1549
1556
  /** The Cloud Storage uri (a directory) of the output. */
1550
1557
  gcsUri?: string;
@@ -1735,6 +1742,8 @@ declare namespace gapi.client {
1735
1742
  headerRows?: GoogleCloudDocumentaiV1beta3DocumentPageTableTableRow[];
1736
1743
  /** Layout for Table. */
1737
1744
  layout?: GoogleCloudDocumentaiV1beta3DocumentPageLayout;
1745
+ /** The history of this table. */
1746
+ provenance?: GoogleCloudDocumentaiV1beta3DocumentProvenance;
1738
1747
  }
1739
1748
  interface GoogleCloudDocumentaiV1beta3DocumentPageTableTableCell {
1740
1749
  /** How many columns this cell spans. */
@@ -1940,12 +1949,14 @@ declare namespace gapi.client {
1940
1949
  interface GoogleCloudDocumentaiV1beta3EnableProcessorResponse {
1941
1950
  }
1942
1951
  interface GoogleCloudDocumentaiV1beta3EntityTypeMetadata {
1943
- /** Human review labeling config on the property. */
1952
+ /** Human review labeling config on the entity. */
1944
1953
  humanReviewLabelingMetadata?: GoogleCloudDocumentaiV1beta3HumanReviewLabelingMetadata;
1945
- /** Human review config on the entity type. */
1954
+ /** Human review config on the entity. */
1946
1955
  humanReviewMetadata?: GoogleCloudDocumentaiV1beta3HumanReviewValidationMetadata;
1947
1956
  /** Whether the entity type should be considered as "inactive". */
1948
1957
  inactive?: boolean;
1958
+ /** Schema mutability metadata on the entity. */
1959
+ schemaMutabilityMetadata?: GoogleCloudDocumentaiV1beta3SchemaMutabilityMetadata;
1949
1960
  }
1950
1961
  interface GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse {
1951
1962
  /** The list of processor types. */
@@ -2073,7 +2084,10 @@ declare namespace gapi.client {
2073
2084
  interface GoogleCloudDocumentaiV1beta3ProcessRequest {
2074
2085
  /** The document payload, the [content] and [mime_type] fields must be set. */
2075
2086
  document?: GoogleCloudDocumentaiV1beta3Document;
2076
- /** Specifies which fields to include in ProcessResponse's document. */
2087
+ /**
2088
+ * Specifies which fields to include in ProcessResponse's document. Only supports top level document and pages field so it must be in the form of `{document_field_name}` or
2089
+ * `pages.{page_field_name}`.
2090
+ */
2077
2091
  fieldMask?: string;
2078
2092
  /** An inline document proto. */
2079
2093
  inlineDocument?: GoogleCloudDocumentaiV1beta3Document;
@@ -2100,6 +2114,8 @@ declare namespace gapi.client {
2100
2114
  humanReviewMetadata?: GoogleCloudDocumentaiV1beta3HumanReviewValidationMetadata;
2101
2115
  /** Whether the property should be considered as "inactive". */
2102
2116
  inactive?: boolean;
2117
+ /** Schema mutability metadata on the property. */
2118
+ schemaMutabilityMetadata?: GoogleCloudDocumentaiV1beta3SchemaMutabilityMetadata;
2103
2119
  }
2104
2120
  interface GoogleCloudDocumentaiV1beta3RawDocument {
2105
2121
  /** Inline document content. */
@@ -2141,6 +2157,12 @@ declare namespace gapi.client {
2141
2157
  /** The state of the review operation. */
2142
2158
  state?: string;
2143
2159
  }
2160
+ interface GoogleCloudDocumentaiV1beta3SchemaMutabilityMetadata {
2161
+ /** Explicit flag that controls whether the label is editable. */
2162
+ editable?: boolean;
2163
+ /** Full resource name of processor versions that contain this label. e.g. `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` */
2164
+ processorVersions?: string[];
2165
+ }
2144
2166
  interface GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata {
2145
2167
  /** The basic metadata of the long running operation. */
2146
2168
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.documentai-v1beta3",
3
- "version": "0.0.20221005",
3
+ "version": "0.0.20221023",
4
4
  "description": "TypeScript typings for Cloud Document AI API v1beta3",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20221005
6
+ // Revision: 20221023
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -760,6 +760,18 @@ gapi.load('client', async () => {
760
760
  ],
761
761
  },
762
762
  },
763
+ provenance: {
764
+ id: 42,
765
+ parents: [
766
+ {
767
+ id: 42,
768
+ index: 42,
769
+ revision: 42,
770
+ }
771
+ ],
772
+ revision: 42,
773
+ type: "Test string",
774
+ },
763
775
  }
764
776
  ],
765
777
  tokens: [
@@ -1566,6 +1578,18 @@ gapi.load('client', async () => {
1566
1578
  ],
1567
1579
  },
1568
1580
  },
1581
+ provenance: {
1582
+ id: 42,
1583
+ parents: [
1584
+ {
1585
+ id: 42,
1586
+ index: 42,
1587
+ revision: 42,
1588
+ }
1589
+ ],
1590
+ revision: 42,
1591
+ type: "Test string",
1592
+ },
1569
1593
  }
1570
1594
  ],
1571
1595
  tokens: [
@@ -2387,6 +2411,18 @@ gapi.load('client', async () => {
2387
2411
  ],
2388
2412
  },
2389
2413
  },
2414
+ provenance: {
2415
+ id: 42,
2416
+ parents: [
2417
+ {
2418
+ id: 42,
2419
+ index: 42,
2420
+ revision: 42,
2421
+ }
2422
+ ],
2423
+ revision: 42,
2424
+ type: "Test string",
2425
+ },
2390
2426
  }
2391
2427
  ],
2392
2428
  tokens: [
@@ -2594,6 +2630,12 @@ gapi.load('client', async () => {
2594
2630
  enableValidation: true,
2595
2631
  },
2596
2632
  inactive: true,
2633
+ schemaMutabilityMetadata: {
2634
+ editable: true,
2635
+ processorVersions: [
2636
+ "Test string"
2637
+ ],
2638
+ },
2597
2639
  },
2598
2640
  enumValues: {
2599
2641
  values: [
@@ -2614,6 +2656,12 @@ gapi.load('client', async () => {
2614
2656
  enableValidation: true,
2615
2657
  },
2616
2658
  inactive: true,
2659
+ schemaMutabilityMetadata: {
2660
+ editable: true,
2661
+ processorVersions: [
2662
+ "Test string"
2663
+ ],
2664
+ },
2617
2665
  },
2618
2666
  valueType: "Test string",
2619
2667
  }
@@ -3244,6 +3292,18 @@ gapi.load('client', async () => {
3244
3292
  ],
3245
3293
  },
3246
3294
  },
3295
+ provenance: {
3296
+ id: 42,
3297
+ parents: [
3298
+ {
3299
+ id: 42,
3300
+ index: 42,
3301
+ revision: 42,
3302
+ }
3303
+ ],
3304
+ revision: 42,
3305
+ type: "Test string",
3306
+ },
3247
3307
  }
3248
3308
  ],
3249
3309
  tokens: [
@@ -4108,6 +4168,18 @@ gapi.load('client', async () => {
4108
4168
  ],
4109
4169
  },
4110
4170
  },
4171
+ provenance: {
4172
+ id: 42,
4173
+ parents: [
4174
+ {
4175
+ id: 42,
4176
+ index: 42,
4177
+ revision: 42,
4178
+ }
4179
+ ],
4180
+ revision: 42,
4181
+ type: "Test string",
4182
+ },
4111
4183
  }
4112
4184
  ],
4113
4185
  tokens: [
@@ -4914,6 +4986,18 @@ gapi.load('client', async () => {
4914
4986
  ],
4915
4987
  },
4916
4988
  },
4989
+ provenance: {
4990
+ id: 42,
4991
+ parents: [
4992
+ {
4993
+ id: 42,
4994
+ index: 42,
4995
+ revision: 42,
4996
+ }
4997
+ ],
4998
+ revision: 42,
4999
+ type: "Test string",
5000
+ },
4917
5001
  }
4918
5002
  ],
4919
5003
  tokens: [