@maxim_mazurok/gapi.client.documentai-v1 0.0.20230705 → 0.0.20230714
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 +207 -1
- package/package.json +1 -1
- package/tests.ts +73 -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: 20230714
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -258,6 +258,9 @@ declare namespace gapi.client {
|
|
|
258
258
|
/** The source Cloud Storage URI of the document. */
|
|
259
259
|
inputGcsSource?:
|
|
260
260
|
string;
|
|
261
|
+
/** The document id of imported document if it was successful, otherwise empty. */
|
|
262
|
+
outputDocumentId?:
|
|
263
|
+
GoogleCloudDocumentaiUiv1beta3DocumentId;
|
|
261
264
|
/** The output_gcs_destination of the processed document if it was successful, otherwise empty. */
|
|
262
265
|
outputGcsDestination?:
|
|
263
266
|
string;
|
|
@@ -331,6 +334,12 @@ declare namespace gapi.client {
|
|
|
331
334
|
GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
|
|
332
335
|
}
|
|
333
336
|
interface GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse {
|
|
337
|
+
/** The status of sampling documents in test split. */
|
|
338
|
+
sampleTestStatus?:
|
|
339
|
+
GoogleRpcStatus;
|
|
340
|
+
/** The status of sampling documents in training split. */
|
|
341
|
+
sampleTrainingStatus?:
|
|
342
|
+
GoogleRpcStatus;
|
|
334
343
|
/** The result of the sampling process. */
|
|
335
344
|
selectedDocuments?:
|
|
336
345
|
GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument[];
|
|
@@ -466,6 +475,9 @@ declare namespace gapi.client {
|
|
|
466
475
|
/** The input documents for the BatchProcessDocuments method. */
|
|
467
476
|
inputDocuments?:
|
|
468
477
|
GoogleCloudDocumentaiV1BatchDocumentsInputConfig;
|
|
478
|
+
/** Inference-time options for the process API */
|
|
479
|
+
processOptions?:
|
|
480
|
+
GoogleCloudDocumentaiV1ProcessOptions;
|
|
469
481
|
/** Whether human review should be skipped for this request. Default to `false`. */
|
|
470
482
|
skipHumanReview?:
|
|
471
483
|
boolean;
|
|
@@ -1935,6 +1947,31 @@ declare namespace gapi.client {
|
|
|
1935
1947
|
y?:
|
|
1936
1948
|
number;
|
|
1937
1949
|
}
|
|
1950
|
+
interface GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadata {
|
|
1951
|
+
/** The basic metadata of the long running operation. */
|
|
1952
|
+
commonMetadata?:
|
|
1953
|
+
GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
|
|
1954
|
+
/** Total number of documents that failed to be deleted in storage. */
|
|
1955
|
+
errorDocumentCount?:
|
|
1956
|
+
number;
|
|
1957
|
+
/** The list of response details of each document. */
|
|
1958
|
+
individualBatchDeleteStatuses?:
|
|
1959
|
+
GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus[];
|
|
1960
|
+
/** Total number of documents deleting from dataset. */
|
|
1961
|
+
totalDocumentCount?:
|
|
1962
|
+
number;
|
|
1963
|
+
}
|
|
1964
|
+
interface GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus {
|
|
1965
|
+
/** The document id of the document. */
|
|
1966
|
+
documentId?:
|
|
1967
|
+
GoogleCloudDocumentaiV1beta3DocumentId;
|
|
1968
|
+
/** The status of deleting the document in storage. */
|
|
1969
|
+
status?:
|
|
1970
|
+
GoogleRpcStatus;
|
|
1971
|
+
}
|
|
1972
|
+
// tslint:disable-next-line:no-empty-interface
|
|
1973
|
+
interface GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsResponse {
|
|
1974
|
+
}
|
|
1938
1975
|
interface GoogleCloudDocumentaiV1beta3BatchProcessMetadata {
|
|
1939
1976
|
/** The creation time of the operation. */
|
|
1940
1977
|
createTime?:
|
|
@@ -1992,6 +2029,45 @@ declare namespace gapi.client {
|
|
|
1992
2029
|
updateTime?:
|
|
1993
2030
|
string;
|
|
1994
2031
|
}
|
|
2032
|
+
interface GoogleCloudDocumentaiV1beta3Dataset {
|
|
2033
|
+
/** Optional. Document AI Warehouse-based dataset configuration. */
|
|
2034
|
+
documentWarehouseConfig?:
|
|
2035
|
+
GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig;
|
|
2036
|
+
/** Optional. User-managed Cloud Storage dataset configuration. Use this configuration if the dataset documents are stored under a user-managed Cloud Storage location. */
|
|
2037
|
+
gcsManagedConfig?:
|
|
2038
|
+
GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig;
|
|
2039
|
+
/** Dataset resource name. Format: `projects/{project}/locations/{location}/processors/{processor}/dataset` */
|
|
2040
|
+
name?:
|
|
2041
|
+
string;
|
|
2042
|
+
/** Optional. A lightweight indexing source with low latency and high reliability, but lacking advanced features like CMEK and content-based search. */
|
|
2043
|
+
spannerIndexingConfig?:
|
|
2044
|
+
any;
|
|
2045
|
+
/** Required. State of the dataset. Ignored when updating dataset. */
|
|
2046
|
+
state?:
|
|
2047
|
+
string;
|
|
2048
|
+
/** Optional. Unmanaged dataset configuration. Use this configuration if the dataset documents are managed by the document service internally (not user-managed). */
|
|
2049
|
+
unmanagedDatasetConfig?:
|
|
2050
|
+
any;
|
|
2051
|
+
}
|
|
2052
|
+
interface GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig {
|
|
2053
|
+
/** Output only. The collection in Document AI Warehouse associated with the dataset. */
|
|
2054
|
+
collection?:
|
|
2055
|
+
string;
|
|
2056
|
+
/** Output only. The schema in Document AI Warehouse associated with the dataset. */
|
|
2057
|
+
schema?:
|
|
2058
|
+
string;
|
|
2059
|
+
}
|
|
2060
|
+
interface GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig {
|
|
2061
|
+
/** Required. The Cloud Storage URI (a directory) where the documents belonging to the dataset must be stored. */
|
|
2062
|
+
gcsPrefix?:
|
|
2063
|
+
GoogleCloudDocumentaiV1beta3GcsPrefix;
|
|
2064
|
+
}
|
|
2065
|
+
// tslint:disable-next-line:no-empty-interface
|
|
2066
|
+
interface GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig {
|
|
2067
|
+
}
|
|
2068
|
+
// tslint:disable-next-line:no-empty-interface
|
|
2069
|
+
interface GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig {
|
|
2070
|
+
}
|
|
1995
2071
|
interface GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata {
|
|
1996
2072
|
/** The basic metadata of the long-running operation. */
|
|
1997
2073
|
commonMetadata?:
|
|
@@ -2018,6 +2094,30 @@ declare namespace gapi.client {
|
|
|
2018
2094
|
// tslint:disable-next-line:no-empty-interface
|
|
2019
2095
|
interface GoogleCloudDocumentaiV1beta3DisableProcessorResponse {
|
|
2020
2096
|
}
|
|
2097
|
+
interface GoogleCloudDocumentaiV1beta3DocumentId {
|
|
2098
|
+
/** A document id within user-managed Cloud Storage. */
|
|
2099
|
+
gcsManagedDocId?:
|
|
2100
|
+
GoogleCloudDocumentaiV1beta3DocumentIdGCSManagedDocumentId;
|
|
2101
|
+
/** Points to a specific revision of the document if set. */
|
|
2102
|
+
revisionRef?:
|
|
2103
|
+
GoogleCloudDocumentaiV1beta3RevisionRef;
|
|
2104
|
+
/** A document id within unmanaged dataset. */
|
|
2105
|
+
unmanagedDocId?:
|
|
2106
|
+
GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId;
|
|
2107
|
+
}
|
|
2108
|
+
interface GoogleCloudDocumentaiV1beta3DocumentIdGCSManagedDocumentId {
|
|
2109
|
+
/** Id of the document (indexed) managed by Content Warehouse. */
|
|
2110
|
+
cwDocId?:
|
|
2111
|
+
string;
|
|
2112
|
+
/** Required. The Cloud Storage URI where the actual document is stored. */
|
|
2113
|
+
gcsUri?:
|
|
2114
|
+
string;
|
|
2115
|
+
}
|
|
2116
|
+
interface GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId {
|
|
2117
|
+
/** Required. The id of the document. */
|
|
2118
|
+
docId?:
|
|
2119
|
+
string;
|
|
2120
|
+
}
|
|
2021
2121
|
interface GoogleCloudDocumentaiV1beta3EnableProcessorMetadata {
|
|
2022
2122
|
/** The basic metadata of the long-running operation. */
|
|
2023
2123
|
commonMetadata?:
|
|
@@ -2036,6 +2136,11 @@ declare namespace gapi.client {
|
|
|
2036
2136
|
evaluation?:
|
|
2037
2137
|
string;
|
|
2038
2138
|
}
|
|
2139
|
+
interface GoogleCloudDocumentaiV1beta3GcsPrefix {
|
|
2140
|
+
/** The URI prefix. */
|
|
2141
|
+
gcsUriPrefix?:
|
|
2142
|
+
string;
|
|
2143
|
+
}
|
|
2039
2144
|
interface GoogleCloudDocumentaiV1beta3HumanReviewStatus {
|
|
2040
2145
|
/**
|
|
2041
2146
|
* The name of the operation triggered by the processed document. This field is populated only when the state is `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata
|
|
@@ -2050,6 +2155,42 @@ declare namespace gapi.client {
|
|
|
2050
2155
|
stateMessage?:
|
|
2051
2156
|
string;
|
|
2052
2157
|
}
|
|
2158
|
+
interface GoogleCloudDocumentaiV1beta3ImportDocumentsMetadata {
|
|
2159
|
+
/** The basic metadata of the long running operation. */
|
|
2160
|
+
commonMetadata?:
|
|
2161
|
+
GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
|
|
2162
|
+
/** Validation statuses of the batch documents import config. */
|
|
2163
|
+
importConfigValidationResults?:
|
|
2164
|
+
GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResult[];
|
|
2165
|
+
/** The list of response details of each document. */
|
|
2166
|
+
individualImportStatuses?:
|
|
2167
|
+
GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus[];
|
|
2168
|
+
/** Total number of the documents that are qualified for importing. */
|
|
2169
|
+
totalDocumentCount?:
|
|
2170
|
+
number;
|
|
2171
|
+
}
|
|
2172
|
+
interface GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResult {
|
|
2173
|
+
/** The source Cloud Storage URI specified in the import config. */
|
|
2174
|
+
inputGcsSource?:
|
|
2175
|
+
string;
|
|
2176
|
+
/** The validation status of import config. */
|
|
2177
|
+
status?:
|
|
2178
|
+
GoogleRpcStatus;
|
|
2179
|
+
}
|
|
2180
|
+
interface GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus {
|
|
2181
|
+
/** The source Cloud Storage URI of the document. */
|
|
2182
|
+
inputGcsSource?:
|
|
2183
|
+
string;
|
|
2184
|
+
/** The document id of imported document if it was successful, otherwise empty. */
|
|
2185
|
+
outputDocumentId?:
|
|
2186
|
+
GoogleCloudDocumentaiV1beta3DocumentId;
|
|
2187
|
+
/** The status of the importing of the document. */
|
|
2188
|
+
status?:
|
|
2189
|
+
GoogleRpcStatus;
|
|
2190
|
+
}
|
|
2191
|
+
// tslint:disable-next-line:no-empty-interface
|
|
2192
|
+
interface GoogleCloudDocumentaiV1beta3ImportDocumentsResponse {
|
|
2193
|
+
}
|
|
2053
2194
|
interface GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata {
|
|
2054
2195
|
/** The basic metadata for the long-running operation. */
|
|
2055
2196
|
commonMetadata?:
|
|
@@ -2091,6 +2232,20 @@ declare namespace gapi.client {
|
|
|
2091
2232
|
state?:
|
|
2092
2233
|
string;
|
|
2093
2234
|
}
|
|
2235
|
+
interface GoogleCloudDocumentaiV1beta3RevisionRef {
|
|
2236
|
+
/**
|
|
2237
|
+
* Reads the revision generated by the processor version. The format takes the full resource name of processor version.
|
|
2238
|
+
* `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
|
|
2239
|
+
*/
|
|
2240
|
+
latestProcessorVersion?:
|
|
2241
|
+
string;
|
|
2242
|
+
/** Reads the revision by the predefined case. */
|
|
2243
|
+
revisionCase?:
|
|
2244
|
+
string;
|
|
2245
|
+
/** Reads the revision given by the id. */
|
|
2246
|
+
revisionId?:
|
|
2247
|
+
string;
|
|
2248
|
+
}
|
|
2094
2249
|
interface GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata {
|
|
2095
2250
|
/** The basic metadata of the long-running operation. */
|
|
2096
2251
|
commonMetadata?:
|
|
@@ -2137,6 +2292,11 @@ declare namespace gapi.client {
|
|
|
2137
2292
|
// tslint:disable-next-line:no-empty-interface
|
|
2138
2293
|
interface GoogleCloudDocumentaiV1beta3UndeployProcessorVersionResponse {
|
|
2139
2294
|
}
|
|
2295
|
+
interface GoogleCloudDocumentaiV1beta3UpdateDatasetOperationMetadata {
|
|
2296
|
+
/** The basic metadata of the long running operation. */
|
|
2297
|
+
commonMetadata?:
|
|
2298
|
+
GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
|
|
2299
|
+
}
|
|
2140
2300
|
interface GoogleCloudDocumentaiV1BoundingPoly {
|
|
2141
2301
|
/** The bounding polygon normalized vertices. */
|
|
2142
2302
|
normalizedVertices?:
|
|
@@ -3132,6 +3292,46 @@ declare namespace gapi.client {
|
|
|
3132
3292
|
y?:
|
|
3133
3293
|
number;
|
|
3134
3294
|
}
|
|
3295
|
+
interface GoogleCloudDocumentaiV1OcrConfig {
|
|
3296
|
+
/**
|
|
3297
|
+
* A list of advanced OCR options to further fine-tune OCR behavior. Current valid values are: - `legacy_layout`: a heuristics layout detection algorithm, which serves as an
|
|
3298
|
+
* alternative to the current ML-based layout detection algorithm. Customers can choose the best suitable layout algorithm based on their situation.
|
|
3299
|
+
*/
|
|
3300
|
+
advancedOcrOptions?:
|
|
3301
|
+
string[];
|
|
3302
|
+
/** Turn on font id model and returns font style information. */
|
|
3303
|
+
computeStyleInfo?:
|
|
3304
|
+
boolean;
|
|
3305
|
+
/**
|
|
3306
|
+
* Enables intelligent document quality scores after OCR. Can help with diagnosing why OCR responses are of poor quality for a given input. Adds additional latency comparable to
|
|
3307
|
+
* regular OCR to the process call.
|
|
3308
|
+
*/
|
|
3309
|
+
enableImageQualityScores?:
|
|
3310
|
+
boolean;
|
|
3311
|
+
/** Enables special handling for PDFs with existing text information. Results in better text extraction quality in such PDF inputs. */
|
|
3312
|
+
enableNativePdfParsing?:
|
|
3313
|
+
boolean;
|
|
3314
|
+
/** Includes symbol level OCR information if set to true. */
|
|
3315
|
+
enableSymbol?:
|
|
3316
|
+
boolean;
|
|
3317
|
+
/** Hints for the OCR model. */
|
|
3318
|
+
hints?:
|
|
3319
|
+
GoogleCloudDocumentaiV1OcrConfigHints;
|
|
3320
|
+
}
|
|
3321
|
+
interface GoogleCloudDocumentaiV1OcrConfigHints {
|
|
3322
|
+
/**
|
|
3323
|
+
* List of BCP-47 language codes to use for OCR. In most cases, not specifying it yields the best results since it enables automatic language detection. For languages based on the
|
|
3324
|
+
* Latin alphabet, setting hints is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a
|
|
3325
|
+
* significant hindrance if the hint is wrong).
|
|
3326
|
+
*/
|
|
3327
|
+
languageHints?:
|
|
3328
|
+
string[];
|
|
3329
|
+
}
|
|
3330
|
+
interface GoogleCloudDocumentaiV1ProcessOptions {
|
|
3331
|
+
/** Only applicable to `OCR_PROCESSOR`. Returns error if set on other processor types. */
|
|
3332
|
+
ocrConfig?:
|
|
3333
|
+
GoogleCloudDocumentaiV1OcrConfig;
|
|
3334
|
+
}
|
|
3135
3335
|
interface GoogleCloudDocumentaiV1Processor {
|
|
3136
3336
|
/** The time the processor was created. */
|
|
3137
3337
|
createTime?:
|
|
@@ -3233,9 +3433,15 @@ declare namespace gapi.client {
|
|
|
3233
3433
|
*/
|
|
3234
3434
|
fieldMask?:
|
|
3235
3435
|
string;
|
|
3436
|
+
/** A raw document on Google Cloud Storage. */
|
|
3437
|
+
gcsDocument?:
|
|
3438
|
+
GoogleCloudDocumentaiV1GcsDocument;
|
|
3236
3439
|
/** An inline document proto. */
|
|
3237
3440
|
inlineDocument?:
|
|
3238
3441
|
GoogleCloudDocumentaiV1Document;
|
|
3442
|
+
/** Inference-time options for the process API */
|
|
3443
|
+
processOptions?:
|
|
3444
|
+
GoogleCloudDocumentaiV1ProcessOptions;
|
|
3239
3445
|
/** A raw document content (bytes). */
|
|
3240
3446
|
rawDocument?:
|
|
3241
3447
|
GoogleCloudDocumentaiV1RawDocument;
|
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: 20230714
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -98,6 +98,22 @@ gapi.load('client', async () => {
|
|
|
98
98
|
gcsUriPrefix: "Test string",
|
|
99
99
|
},
|
|
100
100
|
},
|
|
101
|
+
processOptions: {
|
|
102
|
+
ocrConfig: {
|
|
103
|
+
advancedOcrOptions: [
|
|
104
|
+
"Test string"
|
|
105
|
+
],
|
|
106
|
+
computeStyleInfo: true,
|
|
107
|
+
enableImageQualityScores: true,
|
|
108
|
+
enableNativePdfParsing: true,
|
|
109
|
+
enableSymbol: true,
|
|
110
|
+
hints: {
|
|
111
|
+
languageHints: [
|
|
112
|
+
"Test string"
|
|
113
|
+
],
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
},
|
|
101
117
|
skipHumanReview: true,
|
|
102
118
|
});
|
|
103
119
|
/** Creates a processor from the ProcessorType provided. The processor will be at `ENABLED` state by default after its creation. */
|
|
@@ -142,6 +158,10 @@ gapi.load('client', async () => {
|
|
|
142
158
|
name: "Test string",
|
|
143
159
|
}, {
|
|
144
160
|
fieldMask: "Test string",
|
|
161
|
+
gcsDocument: {
|
|
162
|
+
gcsUri: "Test string",
|
|
163
|
+
mimeType: "Test string",
|
|
164
|
+
},
|
|
145
165
|
inlineDocument: {
|
|
146
166
|
content: "Test string",
|
|
147
167
|
entities: [
|
|
@@ -986,6 +1006,22 @@ gapi.load('client', async () => {
|
|
|
986
1006
|
],
|
|
987
1007
|
uri: "Test string",
|
|
988
1008
|
},
|
|
1009
|
+
processOptions: {
|
|
1010
|
+
ocrConfig: {
|
|
1011
|
+
advancedOcrOptions: [
|
|
1012
|
+
"Test string"
|
|
1013
|
+
],
|
|
1014
|
+
computeStyleInfo: true,
|
|
1015
|
+
enableImageQualityScores: true,
|
|
1016
|
+
enableNativePdfParsing: true,
|
|
1017
|
+
enableSymbol: true,
|
|
1018
|
+
hints: {
|
|
1019
|
+
languageHints: [
|
|
1020
|
+
"Test string"
|
|
1021
|
+
],
|
|
1022
|
+
},
|
|
1023
|
+
},
|
|
1024
|
+
},
|
|
989
1025
|
rawDocument: {
|
|
990
1026
|
content: "Test string",
|
|
991
1027
|
mimeType: "Test string",
|
|
@@ -1907,6 +1943,22 @@ gapi.load('client', async () => {
|
|
|
1907
1943
|
gcsUriPrefix: "Test string",
|
|
1908
1944
|
},
|
|
1909
1945
|
},
|
|
1946
|
+
processOptions: {
|
|
1947
|
+
ocrConfig: {
|
|
1948
|
+
advancedOcrOptions: [
|
|
1949
|
+
"Test string"
|
|
1950
|
+
],
|
|
1951
|
+
computeStyleInfo: true,
|
|
1952
|
+
enableImageQualityScores: true,
|
|
1953
|
+
enableNativePdfParsing: true,
|
|
1954
|
+
enableSymbol: true,
|
|
1955
|
+
hints: {
|
|
1956
|
+
languageHints: [
|
|
1957
|
+
"Test string"
|
|
1958
|
+
],
|
|
1959
|
+
},
|
|
1960
|
+
},
|
|
1961
|
+
},
|
|
1910
1962
|
skipHumanReview: true,
|
|
1911
1963
|
});
|
|
1912
1964
|
/** Deletes the processor version, all artifacts under the processor version will be deleted. */
|
|
@@ -1951,6 +2003,10 @@ gapi.load('client', async () => {
|
|
|
1951
2003
|
name: "Test string",
|
|
1952
2004
|
}, {
|
|
1953
2005
|
fieldMask: "Test string",
|
|
2006
|
+
gcsDocument: {
|
|
2007
|
+
gcsUri: "Test string",
|
|
2008
|
+
mimeType: "Test string",
|
|
2009
|
+
},
|
|
1954
2010
|
inlineDocument: {
|
|
1955
2011
|
content: "Test string",
|
|
1956
2012
|
entities: [
|
|
@@ -2795,6 +2851,22 @@ gapi.load('client', async () => {
|
|
|
2795
2851
|
],
|
|
2796
2852
|
uri: "Test string",
|
|
2797
2853
|
},
|
|
2854
|
+
processOptions: {
|
|
2855
|
+
ocrConfig: {
|
|
2856
|
+
advancedOcrOptions: [
|
|
2857
|
+
"Test string"
|
|
2858
|
+
],
|
|
2859
|
+
computeStyleInfo: true,
|
|
2860
|
+
enableImageQualityScores: true,
|
|
2861
|
+
enableNativePdfParsing: true,
|
|
2862
|
+
enableSymbol: true,
|
|
2863
|
+
hints: {
|
|
2864
|
+
languageHints: [
|
|
2865
|
+
"Test string"
|
|
2866
|
+
],
|
|
2867
|
+
},
|
|
2868
|
+
},
|
|
2869
|
+
},
|
|
2798
2870
|
rawDocument: {
|
|
2799
2871
|
content: "Test string",
|
|
2800
2872
|
mimeType: "Test string",
|