@maxim_mazurok/gapi.client.documentai-v1 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.
- package/index.d.ts +27 -5
- package/package.json +1 -1
- package/tests.ts +49 -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:
|
|
12
|
+
// Revision: 20221023
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -652,6 +652,8 @@ declare namespace gapi.client {
|
|
|
652
652
|
headerRows?: GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow[];
|
|
653
653
|
/** Layout for Table. */
|
|
654
654
|
layout?: GoogleCloudDocumentaiV1beta1DocumentPageLayout;
|
|
655
|
+
/** The history of this table. */
|
|
656
|
+
provenance?: GoogleCloudDocumentaiV1beta1DocumentProvenance;
|
|
655
657
|
}
|
|
656
658
|
interface GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell {
|
|
657
659
|
/** How many columns this cell spans. */
|
|
@@ -1156,6 +1158,8 @@ declare namespace gapi.client {
|
|
|
1156
1158
|
headerRows?: GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow[];
|
|
1157
1159
|
/** Layout for Table. */
|
|
1158
1160
|
layout?: GoogleCloudDocumentaiV1beta2DocumentPageLayout;
|
|
1161
|
+
/** The history of this table. */
|
|
1162
|
+
provenance?: GoogleCloudDocumentaiV1beta2DocumentProvenance;
|
|
1159
1163
|
}
|
|
1160
1164
|
interface GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell {
|
|
1161
1165
|
/** How many columns this cell spans. */
|
|
@@ -1615,7 +1619,10 @@ declare namespace gapi.client {
|
|
|
1615
1619
|
gcsOutputConfig?: GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfig;
|
|
1616
1620
|
}
|
|
1617
1621
|
interface GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfig {
|
|
1618
|
-
/**
|
|
1622
|
+
/**
|
|
1623
|
+
* 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
|
|
1624
|
+
* `pages.{page_field_name}`.
|
|
1625
|
+
*/
|
|
1619
1626
|
fieldMask?: string;
|
|
1620
1627
|
/** The Cloud Storage uri (a directory) of the output. */
|
|
1621
1628
|
gcsUri?: string;
|
|
@@ -1806,6 +1813,8 @@ declare namespace gapi.client {
|
|
|
1806
1813
|
headerRows?: GoogleCloudDocumentaiV1DocumentPageTableTableRow[];
|
|
1807
1814
|
/** Layout for Table. */
|
|
1808
1815
|
layout?: GoogleCloudDocumentaiV1DocumentPageLayout;
|
|
1816
|
+
/** The history of this table. */
|
|
1817
|
+
provenance?: GoogleCloudDocumentaiV1DocumentProvenance;
|
|
1809
1818
|
}
|
|
1810
1819
|
interface GoogleCloudDocumentaiV1DocumentPageTableTableCell {
|
|
1811
1820
|
/** How many columns this cell spans. */
|
|
@@ -2011,12 +2020,14 @@ declare namespace gapi.client {
|
|
|
2011
2020
|
interface GoogleCloudDocumentaiV1EnableProcessorResponse {
|
|
2012
2021
|
}
|
|
2013
2022
|
interface GoogleCloudDocumentaiV1EntityTypeMetadata {
|
|
2014
|
-
/** Human review labeling config on the
|
|
2023
|
+
/** Human review labeling config on the entity. */
|
|
2015
2024
|
humanReviewLabelingMetadata?: GoogleCloudDocumentaiV1HumanReviewLabelingMetadata;
|
|
2016
|
-
/** Human review config on the entity
|
|
2025
|
+
/** Human review config on the entity. */
|
|
2017
2026
|
humanReviewMetadata?: GoogleCloudDocumentaiV1HumanReviewValidationMetadata;
|
|
2018
2027
|
/** Whether the entity type should be considered as "inactive". */
|
|
2019
2028
|
inactive?: boolean;
|
|
2029
|
+
/** Schema mutability metadata on the entity. */
|
|
2030
|
+
schemaMutabilityMetadata?: GoogleCloudDocumentaiV1SchemaMutabilityMetadata;
|
|
2020
2031
|
}
|
|
2021
2032
|
interface GoogleCloudDocumentaiV1FetchProcessorTypesResponse {
|
|
2022
2033
|
/** The list of processor types. */
|
|
@@ -2142,7 +2153,10 @@ declare namespace gapi.client {
|
|
|
2142
2153
|
replacementProcessorVersion?: string;
|
|
2143
2154
|
}
|
|
2144
2155
|
interface GoogleCloudDocumentaiV1ProcessRequest {
|
|
2145
|
-
/**
|
|
2156
|
+
/**
|
|
2157
|
+
* 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
|
|
2158
|
+
* `pages.{page_field_name}`.
|
|
2159
|
+
*/
|
|
2146
2160
|
fieldMask?: string;
|
|
2147
2161
|
/** An inline document proto. */
|
|
2148
2162
|
inlineDocument?: GoogleCloudDocumentaiV1Document;
|
|
@@ -2164,6 +2178,8 @@ declare namespace gapi.client {
|
|
|
2164
2178
|
humanReviewMetadata?: GoogleCloudDocumentaiV1HumanReviewValidationMetadata;
|
|
2165
2179
|
/** Whether the property should be considered as "inactive". */
|
|
2166
2180
|
inactive?: boolean;
|
|
2181
|
+
/** Schema mutability metadata on the property. */
|
|
2182
|
+
schemaMutabilityMetadata?: GoogleCloudDocumentaiV1SchemaMutabilityMetadata;
|
|
2167
2183
|
}
|
|
2168
2184
|
interface GoogleCloudDocumentaiV1RawDocument {
|
|
2169
2185
|
/** Inline document content. */
|
|
@@ -2195,6 +2211,12 @@ declare namespace gapi.client {
|
|
|
2195
2211
|
/** The state of the review operation. */
|
|
2196
2212
|
state?: string;
|
|
2197
2213
|
}
|
|
2214
|
+
interface GoogleCloudDocumentaiV1SchemaMutabilityMetadata {
|
|
2215
|
+
/** Explicit flag that controls whether the label is editable. */
|
|
2216
|
+
editable?: boolean;
|
|
2217
|
+
/** Full resource name of processor versions that contain this label. e.g. `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` */
|
|
2218
|
+
processorVersions?: string[];
|
|
2219
|
+
}
|
|
2198
2220
|
interface GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata {
|
|
2199
2221
|
/** The basic metadata of the long running operation. */
|
|
2200
2222
|
commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
|
package/package.json
CHANGED
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:
|
|
6
|
+
// Revision: 20221023
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -759,6 +759,18 @@ gapi.load('client', async () => {
|
|
|
759
759
|
],
|
|
760
760
|
},
|
|
761
761
|
},
|
|
762
|
+
provenance: {
|
|
763
|
+
id: 42,
|
|
764
|
+
parents: [
|
|
765
|
+
{
|
|
766
|
+
id: 42,
|
|
767
|
+
index: 42,
|
|
768
|
+
revision: 42,
|
|
769
|
+
}
|
|
770
|
+
],
|
|
771
|
+
revision: 42,
|
|
772
|
+
type: "Test string",
|
|
773
|
+
},
|
|
762
774
|
}
|
|
763
775
|
],
|
|
764
776
|
tokens: [
|
|
@@ -982,6 +994,12 @@ gapi.load('client', async () => {
|
|
|
982
994
|
enableValidation: true,
|
|
983
995
|
},
|
|
984
996
|
inactive: true,
|
|
997
|
+
schemaMutabilityMetadata: {
|
|
998
|
+
editable: true,
|
|
999
|
+
processorVersions: [
|
|
1000
|
+
"Test string"
|
|
1001
|
+
],
|
|
1002
|
+
},
|
|
985
1003
|
},
|
|
986
1004
|
enumValues: {
|
|
987
1005
|
values: [
|
|
@@ -1002,6 +1020,12 @@ gapi.load('client', async () => {
|
|
|
1002
1020
|
enableValidation: true,
|
|
1003
1021
|
},
|
|
1004
1022
|
inactive: true,
|
|
1023
|
+
schemaMutabilityMetadata: {
|
|
1024
|
+
editable: true,
|
|
1025
|
+
processorVersions: [
|
|
1026
|
+
"Test string"
|
|
1027
|
+
],
|
|
1028
|
+
},
|
|
1005
1029
|
},
|
|
1006
1030
|
valueType: "Test string",
|
|
1007
1031
|
}
|
|
@@ -1632,6 +1656,18 @@ gapi.load('client', async () => {
|
|
|
1632
1656
|
],
|
|
1633
1657
|
},
|
|
1634
1658
|
},
|
|
1659
|
+
provenance: {
|
|
1660
|
+
id: 42,
|
|
1661
|
+
parents: [
|
|
1662
|
+
{
|
|
1663
|
+
id: 42,
|
|
1664
|
+
index: 42,
|
|
1665
|
+
revision: 42,
|
|
1666
|
+
}
|
|
1667
|
+
],
|
|
1668
|
+
revision: 42,
|
|
1669
|
+
type: "Test string",
|
|
1670
|
+
},
|
|
1635
1671
|
}
|
|
1636
1672
|
],
|
|
1637
1673
|
tokens: [
|
|
@@ -2488,6 +2524,18 @@ gapi.load('client', async () => {
|
|
|
2488
2524
|
],
|
|
2489
2525
|
},
|
|
2490
2526
|
},
|
|
2527
|
+
provenance: {
|
|
2528
|
+
id: 42,
|
|
2529
|
+
parents: [
|
|
2530
|
+
{
|
|
2531
|
+
id: 42,
|
|
2532
|
+
index: 42,
|
|
2533
|
+
revision: 42,
|
|
2534
|
+
}
|
|
2535
|
+
],
|
|
2536
|
+
revision: 42,
|
|
2537
|
+
type: "Test string",
|
|
2538
|
+
},
|
|
2491
2539
|
}
|
|
2492
2540
|
],
|
|
2493
2541
|
tokens: [
|