@maxim_mazurok/gapi.client.documentai-v1beta3 0.0.20230804 → 0.0.20230818
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 +42 -1
- package/package.json +1 -1
- package/tests.ts +197 -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: 20230818
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -94,6 +94,25 @@ declare namespace gapi.client {
|
|
|
94
94
|
// tslint:disable-next-line:no-empty-interface
|
|
95
95
|
interface GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsResponse {
|
|
96
96
|
}
|
|
97
|
+
interface GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadata {
|
|
98
|
+
/** The basic metadata of the long-running operation. */
|
|
99
|
+
commonMetadata?:
|
|
100
|
+
GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
|
|
101
|
+
/** The list of response details of each document. */
|
|
102
|
+
individualBatchUpdateStatuses?:
|
|
103
|
+
GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadataIndividualBatchUpdateStatus[];
|
|
104
|
+
}
|
|
105
|
+
interface GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadataIndividualBatchUpdateStatus {
|
|
106
|
+
/** The document id of the document. */
|
|
107
|
+
documentId?:
|
|
108
|
+
GoogleCloudDocumentaiUiv1beta3DocumentId;
|
|
109
|
+
/** The status of updating the document in storage. */
|
|
110
|
+
status?:
|
|
111
|
+
GoogleRpcStatus;
|
|
112
|
+
}
|
|
113
|
+
// tslint:disable-next-line:no-empty-interface
|
|
114
|
+
interface GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsResponse {
|
|
115
|
+
}
|
|
97
116
|
interface GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata {
|
|
98
117
|
/** The creation time of the operation. */
|
|
99
118
|
createTime?:
|
|
@@ -3060,6 +3079,11 @@ declare namespace gapi.client {
|
|
|
3060
3079
|
processorTypes?:
|
|
3061
3080
|
GoogleCloudDocumentaiV1beta3ProcessorType[];
|
|
3062
3081
|
}
|
|
3082
|
+
interface GoogleCloudDocumentaiV1beta3FieldExtractionMetadata {
|
|
3083
|
+
/** Summary options config. */
|
|
3084
|
+
summaryOptions?:
|
|
3085
|
+
GoogleCloudDocumentaiV1beta3SummaryOptions;
|
|
3086
|
+
}
|
|
3063
3087
|
interface GoogleCloudDocumentaiV1beta3GcsDocument {
|
|
3064
3088
|
/** The Cloud Storage object uri. */
|
|
3065
3089
|
gcsUri?:
|
|
@@ -3258,6 +3282,12 @@ declare namespace gapi.client {
|
|
|
3258
3282
|
/** Only applicable to `OCR_PROCESSOR`. Returns error if set on other processor types. */
|
|
3259
3283
|
ocrConfig?:
|
|
3260
3284
|
GoogleCloudDocumentaiV1beta3OcrConfig;
|
|
3285
|
+
/**
|
|
3286
|
+
* 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
|
|
3287
|
+
* override.
|
|
3288
|
+
*/
|
|
3289
|
+
schemaOverride?:
|
|
3290
|
+
GoogleCloudDocumentaiV1beta3DocumentSchema;
|
|
3261
3291
|
}
|
|
3262
3292
|
interface GoogleCloudDocumentaiV1beta3Processor {
|
|
3263
3293
|
/** The time the processor was created. */
|
|
@@ -3405,6 +3435,9 @@ declare namespace gapi.client {
|
|
|
3405
3435
|
GoogleCloudDocumentaiV1beta3HumanReviewStatus;
|
|
3406
3436
|
}
|
|
3407
3437
|
interface GoogleCloudDocumentaiV1beta3PropertyMetadata {
|
|
3438
|
+
/** Field extraction metadata on the property. */
|
|
3439
|
+
fieldExtractionMetadata?:
|
|
3440
|
+
GoogleCloudDocumentaiV1beta3FieldExtractionMetadata;
|
|
3408
3441
|
/** Whether the property should be considered as "inactive". */
|
|
3409
3442
|
inactive?:
|
|
3410
3443
|
boolean;
|
|
@@ -3498,6 +3531,14 @@ declare namespace gapi.client {
|
|
|
3498
3531
|
// tslint:disable-next-line:no-empty-interface
|
|
3499
3532
|
interface GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionResponse {
|
|
3500
3533
|
}
|
|
3534
|
+
interface GoogleCloudDocumentaiV1beta3SummaryOptions {
|
|
3535
|
+
/** What format the summary should be in. */
|
|
3536
|
+
format?:
|
|
3537
|
+
string;
|
|
3538
|
+
/** How long the summary should be. */
|
|
3539
|
+
length?:
|
|
3540
|
+
string;
|
|
3541
|
+
}
|
|
3501
3542
|
interface GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata {
|
|
3502
3543
|
/** The basic metadata of the long-running operation. */
|
|
3503
3544
|
commonMetadata?:
|
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: 20230818
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -115,6 +115,49 @@ gapi.load('client', async () => {
|
|
|
115
115
|
],
|
|
116
116
|
},
|
|
117
117
|
},
|
|
118
|
+
schemaOverride: {
|
|
119
|
+
description: "Test string",
|
|
120
|
+
displayName: "Test string",
|
|
121
|
+
entityTypes: [
|
|
122
|
+
{
|
|
123
|
+
baseTypes: [
|
|
124
|
+
"Test string"
|
|
125
|
+
],
|
|
126
|
+
displayName: "Test string",
|
|
127
|
+
entityTypeMetadata: {
|
|
128
|
+
inactive: true,
|
|
129
|
+
},
|
|
130
|
+
enumValues: {
|
|
131
|
+
values: [
|
|
132
|
+
"Test string"
|
|
133
|
+
],
|
|
134
|
+
},
|
|
135
|
+
name: "Test string",
|
|
136
|
+
properties: [
|
|
137
|
+
{
|
|
138
|
+
name: "Test string",
|
|
139
|
+
occurrenceType: "Test string",
|
|
140
|
+
propertyMetadata: {
|
|
141
|
+
fieldExtractionMetadata: {
|
|
142
|
+
summaryOptions: {
|
|
143
|
+
format: "Test string",
|
|
144
|
+
length: "Test string",
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
inactive: true,
|
|
148
|
+
},
|
|
149
|
+
valueType: "Test string",
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
metadata: {
|
|
155
|
+
documentAllowMultipleLabels: true,
|
|
156
|
+
documentSplitter: true,
|
|
157
|
+
prefixedNamingOnProperties: true,
|
|
158
|
+
skipNamingValidation: true,
|
|
159
|
+
},
|
|
160
|
+
},
|
|
118
161
|
},
|
|
119
162
|
skipHumanReview: true,
|
|
120
163
|
});
|
|
@@ -1873,6 +1916,49 @@ gapi.load('client', async () => {
|
|
|
1873
1916
|
],
|
|
1874
1917
|
},
|
|
1875
1918
|
},
|
|
1919
|
+
schemaOverride: {
|
|
1920
|
+
description: "Test string",
|
|
1921
|
+
displayName: "Test string",
|
|
1922
|
+
entityTypes: [
|
|
1923
|
+
{
|
|
1924
|
+
baseTypes: [
|
|
1925
|
+
"Test string"
|
|
1926
|
+
],
|
|
1927
|
+
displayName: "Test string",
|
|
1928
|
+
entityTypeMetadata: {
|
|
1929
|
+
inactive: true,
|
|
1930
|
+
},
|
|
1931
|
+
enumValues: {
|
|
1932
|
+
values: [
|
|
1933
|
+
"Test string"
|
|
1934
|
+
],
|
|
1935
|
+
},
|
|
1936
|
+
name: "Test string",
|
|
1937
|
+
properties: [
|
|
1938
|
+
{
|
|
1939
|
+
name: "Test string",
|
|
1940
|
+
occurrenceType: "Test string",
|
|
1941
|
+
propertyMetadata: {
|
|
1942
|
+
fieldExtractionMetadata: {
|
|
1943
|
+
summaryOptions: {
|
|
1944
|
+
format: "Test string",
|
|
1945
|
+
length: "Test string",
|
|
1946
|
+
},
|
|
1947
|
+
},
|
|
1948
|
+
inactive: true,
|
|
1949
|
+
},
|
|
1950
|
+
valueType: "Test string",
|
|
1951
|
+
}
|
|
1952
|
+
],
|
|
1953
|
+
}
|
|
1954
|
+
],
|
|
1955
|
+
metadata: {
|
|
1956
|
+
documentAllowMultipleLabels: true,
|
|
1957
|
+
documentSplitter: true,
|
|
1958
|
+
prefixedNamingOnProperties: true,
|
|
1959
|
+
skipNamingValidation: true,
|
|
1960
|
+
},
|
|
1961
|
+
},
|
|
1876
1962
|
},
|
|
1877
1963
|
rawDocument: {
|
|
1878
1964
|
content: "Test string",
|
|
@@ -2006,6 +2092,12 @@ gapi.load('client', async () => {
|
|
|
2006
2092
|
name: "Test string",
|
|
2007
2093
|
occurrenceType: "Test string",
|
|
2008
2094
|
propertyMetadata: {
|
|
2095
|
+
fieldExtractionMetadata: {
|
|
2096
|
+
summaryOptions: {
|
|
2097
|
+
format: "Test string",
|
|
2098
|
+
length: "Test string",
|
|
2099
|
+
},
|
|
2100
|
+
},
|
|
2009
2101
|
inactive: true,
|
|
2010
2102
|
},
|
|
2011
2103
|
valueType: "Test string",
|
|
@@ -2893,6 +2985,12 @@ gapi.load('client', async () => {
|
|
|
2893
2985
|
name: "Test string",
|
|
2894
2986
|
occurrenceType: "Test string",
|
|
2895
2987
|
propertyMetadata: {
|
|
2988
|
+
fieldExtractionMetadata: {
|
|
2989
|
+
summaryOptions: {
|
|
2990
|
+
format: "Test string",
|
|
2991
|
+
length: "Test string",
|
|
2992
|
+
},
|
|
2993
|
+
},
|
|
2896
2994
|
inactive: true,
|
|
2897
2995
|
},
|
|
2898
2996
|
valueType: "Test string",
|
|
@@ -3805,6 +3903,49 @@ gapi.load('client', async () => {
|
|
|
3805
3903
|
],
|
|
3806
3904
|
},
|
|
3807
3905
|
},
|
|
3906
|
+
schemaOverride: {
|
|
3907
|
+
description: "Test string",
|
|
3908
|
+
displayName: "Test string",
|
|
3909
|
+
entityTypes: [
|
|
3910
|
+
{
|
|
3911
|
+
baseTypes: [
|
|
3912
|
+
"Test string"
|
|
3913
|
+
],
|
|
3914
|
+
displayName: "Test string",
|
|
3915
|
+
entityTypeMetadata: {
|
|
3916
|
+
inactive: true,
|
|
3917
|
+
},
|
|
3918
|
+
enumValues: {
|
|
3919
|
+
values: [
|
|
3920
|
+
"Test string"
|
|
3921
|
+
],
|
|
3922
|
+
},
|
|
3923
|
+
name: "Test string",
|
|
3924
|
+
properties: [
|
|
3925
|
+
{
|
|
3926
|
+
name: "Test string",
|
|
3927
|
+
occurrenceType: "Test string",
|
|
3928
|
+
propertyMetadata: {
|
|
3929
|
+
fieldExtractionMetadata: {
|
|
3930
|
+
summaryOptions: {
|
|
3931
|
+
format: "Test string",
|
|
3932
|
+
length: "Test string",
|
|
3933
|
+
},
|
|
3934
|
+
},
|
|
3935
|
+
inactive: true,
|
|
3936
|
+
},
|
|
3937
|
+
valueType: "Test string",
|
|
3938
|
+
}
|
|
3939
|
+
],
|
|
3940
|
+
}
|
|
3941
|
+
],
|
|
3942
|
+
metadata: {
|
|
3943
|
+
documentAllowMultipleLabels: true,
|
|
3944
|
+
documentSplitter: true,
|
|
3945
|
+
prefixedNamingOnProperties: true,
|
|
3946
|
+
skipNamingValidation: true,
|
|
3947
|
+
},
|
|
3948
|
+
},
|
|
3808
3949
|
},
|
|
3809
3950
|
skipHumanReview: true,
|
|
3810
3951
|
});
|
|
@@ -5567,6 +5708,49 @@ gapi.load('client', async () => {
|
|
|
5567
5708
|
],
|
|
5568
5709
|
},
|
|
5569
5710
|
},
|
|
5711
|
+
schemaOverride: {
|
|
5712
|
+
description: "Test string",
|
|
5713
|
+
displayName: "Test string",
|
|
5714
|
+
entityTypes: [
|
|
5715
|
+
{
|
|
5716
|
+
baseTypes: [
|
|
5717
|
+
"Test string"
|
|
5718
|
+
],
|
|
5719
|
+
displayName: "Test string",
|
|
5720
|
+
entityTypeMetadata: {
|
|
5721
|
+
inactive: true,
|
|
5722
|
+
},
|
|
5723
|
+
enumValues: {
|
|
5724
|
+
values: [
|
|
5725
|
+
"Test string"
|
|
5726
|
+
],
|
|
5727
|
+
},
|
|
5728
|
+
name: "Test string",
|
|
5729
|
+
properties: [
|
|
5730
|
+
{
|
|
5731
|
+
name: "Test string",
|
|
5732
|
+
occurrenceType: "Test string",
|
|
5733
|
+
propertyMetadata: {
|
|
5734
|
+
fieldExtractionMetadata: {
|
|
5735
|
+
summaryOptions: {
|
|
5736
|
+
format: "Test string",
|
|
5737
|
+
length: "Test string",
|
|
5738
|
+
},
|
|
5739
|
+
},
|
|
5740
|
+
inactive: true,
|
|
5741
|
+
},
|
|
5742
|
+
valueType: "Test string",
|
|
5743
|
+
}
|
|
5744
|
+
],
|
|
5745
|
+
}
|
|
5746
|
+
],
|
|
5747
|
+
metadata: {
|
|
5748
|
+
documentAllowMultipleLabels: true,
|
|
5749
|
+
documentSplitter: true,
|
|
5750
|
+
prefixedNamingOnProperties: true,
|
|
5751
|
+
skipNamingValidation: true,
|
|
5752
|
+
},
|
|
5753
|
+
},
|
|
5570
5754
|
},
|
|
5571
5755
|
rawDocument: {
|
|
5572
5756
|
content: "Test string",
|
|
@@ -5606,6 +5790,12 @@ gapi.load('client', async () => {
|
|
|
5606
5790
|
name: "Test string",
|
|
5607
5791
|
occurrenceType: "Test string",
|
|
5608
5792
|
propertyMetadata: {
|
|
5793
|
+
fieldExtractionMetadata: {
|
|
5794
|
+
summaryOptions: {
|
|
5795
|
+
format: "Test string",
|
|
5796
|
+
length: "Test string",
|
|
5797
|
+
},
|
|
5798
|
+
},
|
|
5609
5799
|
inactive: true,
|
|
5610
5800
|
},
|
|
5611
5801
|
valueType: "Test string",
|
|
@@ -5678,6 +5868,12 @@ gapi.load('client', async () => {
|
|
|
5678
5868
|
name: "Test string",
|
|
5679
5869
|
occurrenceType: "Test string",
|
|
5680
5870
|
propertyMetadata: {
|
|
5871
|
+
fieldExtractionMetadata: {
|
|
5872
|
+
summaryOptions: {
|
|
5873
|
+
format: "Test string",
|
|
5874
|
+
length: "Test string",
|
|
5875
|
+
},
|
|
5876
|
+
},
|
|
5681
5877
|
inactive: true,
|
|
5682
5878
|
},
|
|
5683
5879
|
valueType: "Test string",
|