@maxim_mazurok/gapi.client.documentai-v1beta3 0.0.20230127 → 0.0.20230202
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 -17
- package/package.json +1 -1
- package/tests.ts +13 -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: 20230202
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -106,8 +106,6 @@ declare namespace gapi.client {
|
|
|
106
106
|
gcsManagedDocId?: GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId;
|
|
107
107
|
/** Points to a specific revision of the document if set. */
|
|
108
108
|
revisionRef?: GoogleCloudDocumentaiUiv1beta3RevisionRef;
|
|
109
|
-
/** Points to a specific revision of the document if set. */
|
|
110
|
-
revisionReference?: GoogleCloudDocumentaiUiv1beta3RevisionReference;
|
|
111
109
|
}
|
|
112
110
|
interface GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId {
|
|
113
111
|
/** Id of the document (indexed) managed by Content Warehouse. */
|
|
@@ -234,14 +232,6 @@ declare namespace gapi.client {
|
|
|
234
232
|
/** Reads the revision given by the id. */
|
|
235
233
|
revisionId?: string;
|
|
236
234
|
}
|
|
237
|
-
interface GoogleCloudDocumentaiUiv1beta3RevisionReference {
|
|
238
|
-
/** Reads the revision generated by the processor version. */
|
|
239
|
-
latestProcessorVersion?: string;
|
|
240
|
-
/** Reads the revision by the predefined case. */
|
|
241
|
-
revisionCase?: string;
|
|
242
|
-
/** Reads the revision given by the id. */
|
|
243
|
-
revisionId?: string;
|
|
244
|
-
}
|
|
245
235
|
interface GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata {
|
|
246
236
|
/** The basic metadata of the long running operation. */
|
|
247
237
|
commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
|
|
@@ -683,11 +673,11 @@ declare namespace gapi.client {
|
|
|
683
673
|
interface GoogleCloudDocumentaiV1beta1DocumentRevision {
|
|
684
674
|
/** If the change was made by a person specify the name or id of that person. */
|
|
685
675
|
agent?: string;
|
|
686
|
-
/** The time that the revision was created. */
|
|
676
|
+
/** The time that the revision was created, internally generated by doc proto storage at the time of create. */
|
|
687
677
|
createTime?: string;
|
|
688
678
|
/** Human Review information of this revision. */
|
|
689
679
|
humanReview?: GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview;
|
|
690
|
-
/** Id of the revision. Unique within the context of the document. */
|
|
680
|
+
/** Id of the revision, internally generated by doc proto storage. Unique within the context of the document. */
|
|
691
681
|
id?: string;
|
|
692
682
|
/** The revisions that this revision is based on. This can include one or more parent (when documents are merged.) This field represents the index into the `revisions` field. */
|
|
693
683
|
parent?: number[];
|
|
@@ -1189,11 +1179,11 @@ declare namespace gapi.client {
|
|
|
1189
1179
|
interface GoogleCloudDocumentaiV1beta2DocumentRevision {
|
|
1190
1180
|
/** If the change was made by a person specify the name or id of that person. */
|
|
1191
1181
|
agent?: string;
|
|
1192
|
-
/** The time that the revision was created. */
|
|
1182
|
+
/** The time that the revision was created, internally generated by doc proto storage at the time of create. */
|
|
1193
1183
|
createTime?: string;
|
|
1194
1184
|
/** Human Review information of this revision. */
|
|
1195
1185
|
humanReview?: GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview;
|
|
1196
|
-
/** Id of the revision. Unique within the context of the document. */
|
|
1186
|
+
/** Id of the revision, internally generated by doc proto storage. Unique within the context of the document. */
|
|
1197
1187
|
id?: string;
|
|
1198
1188
|
/** The revisions that this revision is based on. This can include one or more parent (when documents are merged.) This field represents the index into the `revisions` field. */
|
|
1199
1189
|
parent?: number[];
|
|
@@ -1813,11 +1803,11 @@ declare namespace gapi.client {
|
|
|
1813
1803
|
interface GoogleCloudDocumentaiV1beta3DocumentRevision {
|
|
1814
1804
|
/** If the change was made by a person specify the name or id of that person. */
|
|
1815
1805
|
agent?: string;
|
|
1816
|
-
/** The time that the revision was created. */
|
|
1806
|
+
/** The time that the revision was created, internally generated by doc proto storage at the time of create. */
|
|
1817
1807
|
createTime?: string;
|
|
1818
1808
|
/** Human Review information of this revision. */
|
|
1819
1809
|
humanReview?: GoogleCloudDocumentaiV1beta3DocumentRevisionHumanReview;
|
|
1820
|
-
/** Id of the revision. Unique within the context of the document. */
|
|
1810
|
+
/** Id of the revision, internally generated by doc proto storage. Unique within the context of the document. */
|
|
1821
1811
|
id?: string;
|
|
1822
1812
|
/** The revisions that this revision is based on. This can include one or more parent (when documents are merged.) This field represents the index into the `revisions` field. */
|
|
1823
1813
|
parent?: number[];
|
|
@@ -2109,6 +2099,8 @@ declare namespace gapi.client {
|
|
|
2109
2099
|
y?: number;
|
|
2110
2100
|
}
|
|
2111
2101
|
interface GoogleCloudDocumentaiV1beta3OcrConfig {
|
|
2102
|
+
/** A list of advanced OCR options to further fine-tune OCR behavior. */
|
|
2103
|
+
advancedOcrOptions?: string[];
|
|
2112
2104
|
/** Enables special handling for PDFs with existing text information. Results in better text extraction quality in such PDF inputs. */
|
|
2113
2105
|
enableNativePdfParsing?: boolean;
|
|
2114
2106
|
}
|
|
@@ -2359,6 +2351,14 @@ declare namespace gapi.client {
|
|
|
2359
2351
|
// tslint:disable-next-line:no-empty-interface
|
|
2360
2352
|
interface GoogleCloudDocumentaiV1EnableProcessorResponse {
|
|
2361
2353
|
}
|
|
2354
|
+
interface GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata {
|
|
2355
|
+
/** The basic metadata of the long running operation. */
|
|
2356
|
+
commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
|
|
2357
|
+
}
|
|
2358
|
+
interface GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse {
|
|
2359
|
+
/** The resource name of the created evaluation. */
|
|
2360
|
+
evaluation?: string;
|
|
2361
|
+
}
|
|
2362
2362
|
interface GoogleCloudDocumentaiV1HumanReviewStatus {
|
|
2363
2363
|
/**
|
|
2364
2364
|
* 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
|
|
@@ -2391,6 +2391,28 @@ declare namespace gapi.client {
|
|
|
2391
2391
|
// tslint:disable-next-line:no-empty-interface
|
|
2392
2392
|
interface GoogleCloudDocumentaiV1SetDefaultProcessorVersionResponse {
|
|
2393
2393
|
}
|
|
2394
|
+
interface GoogleCloudDocumentaiV1TrainProcessorVersionMetadata {
|
|
2395
|
+
/** The basic metadata of the long running operation. */
|
|
2396
|
+
commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
|
|
2397
|
+
/** The test dataset validation information. */
|
|
2398
|
+
testDatasetValidation?: GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation;
|
|
2399
|
+
/** The training dataset validation information. */
|
|
2400
|
+
trainingDatasetValidation?: GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation;
|
|
2401
|
+
}
|
|
2402
|
+
interface GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation {
|
|
2403
|
+
/** The total number of dataset errors. */
|
|
2404
|
+
datasetErrorCount?: number;
|
|
2405
|
+
/** Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training. */
|
|
2406
|
+
datasetErrors?: GoogleRpcStatus[];
|
|
2407
|
+
/** The total number of document errors. */
|
|
2408
|
+
documentErrorCount?: number;
|
|
2409
|
+
/** Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training. */
|
|
2410
|
+
documentErrors?: GoogleRpcStatus[];
|
|
2411
|
+
}
|
|
2412
|
+
interface GoogleCloudDocumentaiV1TrainProcessorVersionResponse {
|
|
2413
|
+
/** The resource name of the processor version produced by training. */
|
|
2414
|
+
processorVersion?: string;
|
|
2415
|
+
}
|
|
2394
2416
|
interface GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata {
|
|
2395
2417
|
/** The basic metadata of the long running operation. */
|
|
2396
2418
|
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: 20230202
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -107,6 +107,9 @@ gapi.load('client', async () => {
|
|
|
107
107
|
},
|
|
108
108
|
processOptions: {
|
|
109
109
|
ocrConfig: {
|
|
110
|
+
advancedOcrOptions: [
|
|
111
|
+
"Test string"
|
|
112
|
+
],
|
|
110
113
|
enableNativePdfParsing: true,
|
|
111
114
|
},
|
|
112
115
|
},
|
|
@@ -1790,6 +1793,9 @@ gapi.load('client', async () => {
|
|
|
1790
1793
|
},
|
|
1791
1794
|
processOptions: {
|
|
1792
1795
|
ocrConfig: {
|
|
1796
|
+
advancedOcrOptions: [
|
|
1797
|
+
"Test string"
|
|
1798
|
+
],
|
|
1793
1799
|
enableNativePdfParsing: true,
|
|
1794
1800
|
},
|
|
1795
1801
|
},
|
|
@@ -3515,6 +3521,9 @@ gapi.load('client', async () => {
|
|
|
3515
3521
|
},
|
|
3516
3522
|
processOptions: {
|
|
3517
3523
|
ocrConfig: {
|
|
3524
|
+
advancedOcrOptions: [
|
|
3525
|
+
"Test string"
|
|
3526
|
+
],
|
|
3518
3527
|
enableNativePdfParsing: true,
|
|
3519
3528
|
},
|
|
3520
3529
|
},
|
|
@@ -5198,6 +5207,9 @@ gapi.load('client', async () => {
|
|
|
5198
5207
|
},
|
|
5199
5208
|
processOptions: {
|
|
5200
5209
|
ocrConfig: {
|
|
5210
|
+
advancedOcrOptions: [
|
|
5211
|
+
"Test string"
|
|
5212
|
+
],
|
|
5201
5213
|
enableNativePdfParsing: true,
|
|
5202
5214
|
},
|
|
5203
5215
|
},
|