@maxim_mazurok/gapi.client.documentai-v1beta3 0.0.20230127 → 0.0.20230129

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.
Files changed (3) hide show
  1. package/index.d.ts +33 -1
  2. package/package.json +1 -1
  3. 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: 20230127
12
+ // Revision: 20230129
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -2109,6 +2109,8 @@ declare namespace gapi.client {
2109
2109
  y?: number;
2110
2110
  }
2111
2111
  interface GoogleCloudDocumentaiV1beta3OcrConfig {
2112
+ /** A list of advanced OCR options to further fine-tune OCR behavior. */
2113
+ advancedOcrOptions?: string[];
2112
2114
  /** Enables special handling for PDFs with existing text information. Results in better text extraction quality in such PDF inputs. */
2113
2115
  enableNativePdfParsing?: boolean;
2114
2116
  }
@@ -2359,6 +2361,14 @@ declare namespace gapi.client {
2359
2361
  // tslint:disable-next-line:no-empty-interface
2360
2362
  interface GoogleCloudDocumentaiV1EnableProcessorResponse {
2361
2363
  }
2364
+ interface GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata {
2365
+ /** The basic metadata of the long running operation. */
2366
+ commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
2367
+ }
2368
+ interface GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse {
2369
+ /** The resource name of the created evaluation. */
2370
+ evaluation?: string;
2371
+ }
2362
2372
  interface GoogleCloudDocumentaiV1HumanReviewStatus {
2363
2373
  /**
2364
2374
  * 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 +2401,28 @@ declare namespace gapi.client {
2391
2401
  // tslint:disable-next-line:no-empty-interface
2392
2402
  interface GoogleCloudDocumentaiV1SetDefaultProcessorVersionResponse {
2393
2403
  }
2404
+ interface GoogleCloudDocumentaiV1TrainProcessorVersionMetadata {
2405
+ /** The basic metadata of the long running operation. */
2406
+ commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
2407
+ /** The test dataset validation information. */
2408
+ testDatasetValidation?: GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation;
2409
+ /** The training dataset validation information. */
2410
+ trainingDatasetValidation?: GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation;
2411
+ }
2412
+ interface GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation {
2413
+ /** The total number of dataset errors. */
2414
+ datasetErrorCount?: number;
2415
+ /** 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. */
2416
+ datasetErrors?: GoogleRpcStatus[];
2417
+ /** The total number of document errors. */
2418
+ documentErrorCount?: number;
2419
+ /** 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. */
2420
+ documentErrors?: GoogleRpcStatus[];
2421
+ }
2422
+ interface GoogleCloudDocumentaiV1TrainProcessorVersionResponse {
2423
+ /** The resource name of the processor version produced by training. */
2424
+ processorVersion?: string;
2425
+ }
2394
2426
  interface GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata {
2395
2427
  /** The basic metadata of the long running operation. */
2396
2428
  commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.documentai-v1beta3",
3
- "version": "0.0.20230127",
3
+ "version": "0.0.20230129",
4
4
  "description": "TypeScript typings for Cloud Document AI API v1beta3",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20230127
6
+ // Revision: 20230129
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
  },