@maxim_mazurok/gapi.client.documentai-v1beta3 0.0.20230901 → 0.0.20230914
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 +39 -5
- package/package.json +1 -1
- package/tests.ts +53 -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: 20230914
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -34,6 +34,9 @@ declare namespace gapi.client {
|
|
|
34
34
|
number;
|
|
35
35
|
}
|
|
36
36
|
interface GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus {
|
|
37
|
+
/** The document id of the auto-labeled document. This will replace the gcs_uri. */
|
|
38
|
+
documentId?:
|
|
39
|
+
GoogleCloudDocumentaiUiv1beta3DocumentId;
|
|
37
40
|
/** The gcs_uri of the auto-labeling document, which uniquely identifies a dataset document. */
|
|
38
41
|
gcsUri?:
|
|
39
42
|
string;
|
|
@@ -3183,7 +3186,7 @@ declare namespace gapi.client {
|
|
|
3183
3186
|
GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
|
|
3184
3187
|
}
|
|
3185
3188
|
interface GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequest {
|
|
3186
|
-
/** The source processor version to import from
|
|
3189
|
+
/** The source processor version to import from. It can be from a different environment and region than the destination processor. */
|
|
3187
3190
|
externalProcessorVersionSource?:
|
|
3188
3191
|
GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequestExternalProcessorVersionSource;
|
|
3189
3192
|
/** The source processor version to import from. The source processor version and destination processor need to be in the same environment and region. */
|
|
@@ -3250,9 +3253,12 @@ declare namespace gapi.client {
|
|
|
3250
3253
|
*/
|
|
3251
3254
|
advancedOcrOptions?:
|
|
3252
3255
|
string[];
|
|
3253
|
-
/** Turn on font
|
|
3256
|
+
/** Turn on font identification model and return font style information. Deprecated, use PremiumFeatures.compute_style_info instead. */
|
|
3254
3257
|
computeStyleInfo?:
|
|
3255
3258
|
boolean;
|
|
3259
|
+
/** Turn off character box detector in OCR engine. Character box detection is enabled by default in OCR 2.0+ processors. */
|
|
3260
|
+
disableCharacterBoxesDetection?:
|
|
3261
|
+
boolean;
|
|
3256
3262
|
/**
|
|
3257
3263
|
* 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
|
|
3258
3264
|
* regular OCR to the process call.
|
|
@@ -3268,6 +3274,9 @@ declare namespace gapi.client {
|
|
|
3268
3274
|
/** Hints for the OCR model. */
|
|
3269
3275
|
hints?:
|
|
3270
3276
|
GoogleCloudDocumentaiV1beta3OcrConfigHints;
|
|
3277
|
+
/** Configurations for premium OCR features. */
|
|
3278
|
+
premiumFeatures?:
|
|
3279
|
+
GoogleCloudDocumentaiV1beta3OcrConfigPremiumFeatures;
|
|
3271
3280
|
}
|
|
3272
3281
|
interface GoogleCloudDocumentaiV1beta3OcrConfigHints {
|
|
3273
3282
|
/**
|
|
@@ -3278,7 +3287,27 @@ declare namespace gapi.client {
|
|
|
3278
3287
|
languageHints?:
|
|
3279
3288
|
string[];
|
|
3280
3289
|
}
|
|
3290
|
+
interface GoogleCloudDocumentaiV1beta3OcrConfigPremiumFeatures {
|
|
3291
|
+
/** Turn on font identification model and return font style information. */
|
|
3292
|
+
computeStyleInfo?:
|
|
3293
|
+
boolean;
|
|
3294
|
+
/** Turn on the model that can extract LaTeX math formulas. */
|
|
3295
|
+
enableMathOcr?:
|
|
3296
|
+
boolean;
|
|
3297
|
+
/** Turn on selection mark detector in OCR engine. Only available in OCR 2.0+ processors. */
|
|
3298
|
+
enableSelectionMarkDetection?:
|
|
3299
|
+
boolean;
|
|
3300
|
+
}
|
|
3281
3301
|
interface GoogleCloudDocumentaiV1beta3ProcessOptions {
|
|
3302
|
+
/** Only process certain pages from the end, same as above. */
|
|
3303
|
+
fromEnd?:
|
|
3304
|
+
number;
|
|
3305
|
+
/** Only process certain pages from the start, process all if the document has less pages. */
|
|
3306
|
+
fromStart?:
|
|
3307
|
+
number;
|
|
3308
|
+
/** Which pages to process (1-indexed). */
|
|
3309
|
+
individualPageSelector?:
|
|
3310
|
+
GoogleCloudDocumentaiV1beta3ProcessOptionsIndividualPageSelector;
|
|
3282
3311
|
/** Only applicable to `OCR_PROCESSOR`. Returns error if set on other processor types. */
|
|
3283
3312
|
ocrConfig?:
|
|
3284
3313
|
GoogleCloudDocumentaiV1beta3OcrConfig;
|
|
@@ -3289,6 +3318,11 @@ declare namespace gapi.client {
|
|
|
3289
3318
|
schemaOverride?:
|
|
3290
3319
|
GoogleCloudDocumentaiV1beta3DocumentSchema;
|
|
3291
3320
|
}
|
|
3321
|
+
interface GoogleCloudDocumentaiV1beta3ProcessOptionsIndividualPageSelector {
|
|
3322
|
+
/** Optional. Indices of the pages (starting from 1). */
|
|
3323
|
+
pages?:
|
|
3324
|
+
number[];
|
|
3325
|
+
}
|
|
3292
3326
|
interface GoogleCloudDocumentaiV1beta3Processor {
|
|
3293
3327
|
/** The time the processor was created. */
|
|
3294
3328
|
createTime?:
|
|
@@ -3448,7 +3482,7 @@ declare namespace gapi.client {
|
|
|
3448
3482
|
string;
|
|
3449
3483
|
/**
|
|
3450
3484
|
* The display name of the document, it supports all Unicode characters except the following: `*`, `?`, `[`, `]`, `%`, `{`, `}`,`'`, `\"`, `,` `~`, `=` and `:` are reserved. If not
|
|
3451
|
-
* specified, a default ID
|
|
3485
|
+
* specified, a default ID is generated.
|
|
3452
3486
|
*/
|
|
3453
3487
|
displayName?:
|
|
3454
3488
|
string;
|
|
@@ -3532,7 +3566,7 @@ declare namespace gapi.client {
|
|
|
3532
3566
|
interface GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionResponse {
|
|
3533
3567
|
}
|
|
3534
3568
|
interface GoogleCloudDocumentaiV1beta3SummaryOptions {
|
|
3535
|
-
/**
|
|
3569
|
+
/** The format the summary should be in. */
|
|
3536
3570
|
format?:
|
|
3537
3571
|
string;
|
|
3538
3572
|
/** How long the summary should be. */
|
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: 20230914
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -101,11 +101,19 @@ gapi.load('client', async () => {
|
|
|
101
101
|
gcsDestination: "Test string",
|
|
102
102
|
},
|
|
103
103
|
processOptions: {
|
|
104
|
+
fromEnd: 42,
|
|
105
|
+
fromStart: 42,
|
|
106
|
+
individualPageSelector: {
|
|
107
|
+
pages: [
|
|
108
|
+
42
|
|
109
|
+
],
|
|
110
|
+
},
|
|
104
111
|
ocrConfig: {
|
|
105
112
|
advancedOcrOptions: [
|
|
106
113
|
"Test string"
|
|
107
114
|
],
|
|
108
115
|
computeStyleInfo: true,
|
|
116
|
+
disableCharacterBoxesDetection: true,
|
|
109
117
|
enableImageQualityScores: true,
|
|
110
118
|
enableNativePdfParsing: true,
|
|
111
119
|
enableSymbol: true,
|
|
@@ -114,6 +122,11 @@ gapi.load('client', async () => {
|
|
|
114
122
|
"Test string"
|
|
115
123
|
],
|
|
116
124
|
},
|
|
125
|
+
premiumFeatures: {
|
|
126
|
+
computeStyleInfo: true,
|
|
127
|
+
enableMathOcr: true,
|
|
128
|
+
enableSelectionMarkDetection: true,
|
|
129
|
+
},
|
|
117
130
|
},
|
|
118
131
|
schemaOverride: {
|
|
119
132
|
description: "Test string",
|
|
@@ -1902,11 +1915,19 @@ gapi.load('client', async () => {
|
|
|
1902
1915
|
uri: "Test string",
|
|
1903
1916
|
},
|
|
1904
1917
|
processOptions: {
|
|
1918
|
+
fromEnd: 42,
|
|
1919
|
+
fromStart: 42,
|
|
1920
|
+
individualPageSelector: {
|
|
1921
|
+
pages: [
|
|
1922
|
+
42
|
|
1923
|
+
],
|
|
1924
|
+
},
|
|
1905
1925
|
ocrConfig: {
|
|
1906
1926
|
advancedOcrOptions: [
|
|
1907
1927
|
"Test string"
|
|
1908
1928
|
],
|
|
1909
1929
|
computeStyleInfo: true,
|
|
1930
|
+
disableCharacterBoxesDetection: true,
|
|
1910
1931
|
enableImageQualityScores: true,
|
|
1911
1932
|
enableNativePdfParsing: true,
|
|
1912
1933
|
enableSymbol: true,
|
|
@@ -1915,6 +1936,11 @@ gapi.load('client', async () => {
|
|
|
1915
1936
|
"Test string"
|
|
1916
1937
|
],
|
|
1917
1938
|
},
|
|
1939
|
+
premiumFeatures: {
|
|
1940
|
+
computeStyleInfo: true,
|
|
1941
|
+
enableMathOcr: true,
|
|
1942
|
+
enableSelectionMarkDetection: true,
|
|
1943
|
+
},
|
|
1918
1944
|
},
|
|
1919
1945
|
schemaOverride: {
|
|
1920
1946
|
description: "Test string",
|
|
@@ -3889,11 +3915,19 @@ gapi.load('client', async () => {
|
|
|
3889
3915
|
gcsDestination: "Test string",
|
|
3890
3916
|
},
|
|
3891
3917
|
processOptions: {
|
|
3918
|
+
fromEnd: 42,
|
|
3919
|
+
fromStart: 42,
|
|
3920
|
+
individualPageSelector: {
|
|
3921
|
+
pages: [
|
|
3922
|
+
42
|
|
3923
|
+
],
|
|
3924
|
+
},
|
|
3892
3925
|
ocrConfig: {
|
|
3893
3926
|
advancedOcrOptions: [
|
|
3894
3927
|
"Test string"
|
|
3895
3928
|
],
|
|
3896
3929
|
computeStyleInfo: true,
|
|
3930
|
+
disableCharacterBoxesDetection: true,
|
|
3897
3931
|
enableImageQualityScores: true,
|
|
3898
3932
|
enableNativePdfParsing: true,
|
|
3899
3933
|
enableSymbol: true,
|
|
@@ -3902,6 +3936,11 @@ gapi.load('client', async () => {
|
|
|
3902
3936
|
"Test string"
|
|
3903
3937
|
],
|
|
3904
3938
|
},
|
|
3939
|
+
premiumFeatures: {
|
|
3940
|
+
computeStyleInfo: true,
|
|
3941
|
+
enableMathOcr: true,
|
|
3942
|
+
enableSelectionMarkDetection: true,
|
|
3943
|
+
},
|
|
3905
3944
|
},
|
|
3906
3945
|
schemaOverride: {
|
|
3907
3946
|
description: "Test string",
|
|
@@ -5694,11 +5733,19 @@ gapi.load('client', async () => {
|
|
|
5694
5733
|
uri: "Test string",
|
|
5695
5734
|
},
|
|
5696
5735
|
processOptions: {
|
|
5736
|
+
fromEnd: 42,
|
|
5737
|
+
fromStart: 42,
|
|
5738
|
+
individualPageSelector: {
|
|
5739
|
+
pages: [
|
|
5740
|
+
42
|
|
5741
|
+
],
|
|
5742
|
+
},
|
|
5697
5743
|
ocrConfig: {
|
|
5698
5744
|
advancedOcrOptions: [
|
|
5699
5745
|
"Test string"
|
|
5700
5746
|
],
|
|
5701
5747
|
computeStyleInfo: true,
|
|
5748
|
+
disableCharacterBoxesDetection: true,
|
|
5702
5749
|
enableImageQualityScores: true,
|
|
5703
5750
|
enableNativePdfParsing: true,
|
|
5704
5751
|
enableSymbol: true,
|
|
@@ -5707,6 +5754,11 @@ gapi.load('client', async () => {
|
|
|
5707
5754
|
"Test string"
|
|
5708
5755
|
],
|
|
5709
5756
|
},
|
|
5757
|
+
premiumFeatures: {
|
|
5758
|
+
computeStyleInfo: true,
|
|
5759
|
+
enableMathOcr: true,
|
|
5760
|
+
enableSelectionMarkDetection: true,
|
|
5761
|
+
},
|
|
5710
5762
|
},
|
|
5711
5763
|
schemaOverride: {
|
|
5712
5764
|
description: "Test string",
|