@maxim_mazurok/gapi.client.documentai-v1 0.0.20250117 → 0.0.20250128

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 +19 -15
  2. package/package.json +1 -1
  3. package/readme.md +2 -2
package/index.d.ts CHANGED
@@ -9,14 +9,14 @@
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: 20250117
12
+ // Revision: 20250128
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
16
16
  declare namespace gapi.client {
17
17
  /** Load Cloud Document AI API v1 */
18
18
  function load(
19
- urlOrObject: 'https://documentai.googleapis.com/$discovery/rest?version=v1'
19
+ urlOrObject: 'https://documentai.googleapis.com/$discovery/rest?version=v1',
20
20
  ): Promise<void>;
21
21
  /** @deprecated Please load APIs with discovery documents. */
22
22
  function load(name: 'documentai', version: 'v1'): Promise<void>;
@@ -1428,6 +1428,10 @@ declare namespace gapi.client {
1428
1428
  interface GoogleCloudDocumentaiV1ProcessOptionsLayoutConfig {
1429
1429
  /** Optional. Config for chunking in layout parser processor. */
1430
1430
  chunkingConfig?: GoogleCloudDocumentaiV1ProcessOptionsLayoutConfigChunkingConfig;
1431
+ /** Optional. Whether to include bounding boxes in layout parser processor response. */
1432
+ returnBoundingBoxes?: boolean;
1433
+ /** Optional. Whether to include images in layout parser processor response. */
1434
+ returnImages?: boolean;
1431
1435
  }
1432
1436
  interface GoogleCloudDocumentaiV1ProcessOptionsLayoutConfigChunkingConfig {
1433
1437
  /** Optional. The chunk sizes to use when splitting documents, in order of level. */
@@ -1964,7 +1968,7 @@ declare namespace gapi.client {
1964
1968
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1965
1969
  uploadType?: string;
1966
1970
  },
1967
- body: GoogleCloudDocumentaiV1ReviewDocumentRequest
1971
+ body: GoogleCloudDocumentaiV1ReviewDocumentRequest,
1968
1972
  ): Request<GoogleLongrunningOperation>;
1969
1973
  }
1970
1974
  interface EvaluationsResource {
@@ -2084,7 +2088,7 @@ declare namespace gapi.client {
2084
2088
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2085
2089
  uploadType?: string;
2086
2090
  },
2087
- body: GoogleCloudDocumentaiV1BatchProcessRequest
2091
+ body: GoogleCloudDocumentaiV1BatchProcessRequest,
2088
2092
  ): Request<GoogleLongrunningOperation>;
2089
2093
  /** Deletes the processor version, all artifacts under the processor version will be deleted. */
2090
2094
  delete(request?: {
@@ -2169,7 +2173,7 @@ declare namespace gapi.client {
2169
2173
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2170
2174
  uploadType?: string;
2171
2175
  },
2172
- body: GoogleCloudDocumentaiV1DeployProcessorVersionRequest
2176
+ body: GoogleCloudDocumentaiV1DeployProcessorVersionRequest,
2173
2177
  ): Request<GoogleLongrunningOperation>;
2174
2178
  /** Evaluates a ProcessorVersion against annotated documents, producing an Evaluation. */
2175
2179
  evaluateProcessorVersion(request: {
@@ -2227,7 +2231,7 @@ declare namespace gapi.client {
2227
2231
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2228
2232
  uploadType?: string;
2229
2233
  },
2230
- body: GoogleCloudDocumentaiV1EvaluateProcessorVersionRequest
2234
+ body: GoogleCloudDocumentaiV1EvaluateProcessorVersionRequest,
2231
2235
  ): Request<GoogleLongrunningOperation>;
2232
2236
  /** Gets a processor version detail. */
2233
2237
  get(request?: {
@@ -2343,7 +2347,7 @@ declare namespace gapi.client {
2343
2347
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2344
2348
  uploadType?: string;
2345
2349
  },
2346
- body: GoogleCloudDocumentaiV1ProcessRequest
2350
+ body: GoogleCloudDocumentaiV1ProcessRequest,
2347
2351
  ): Request<GoogleCloudDocumentaiV1ProcessResponse>;
2348
2352
  /** Trains a new processor version. Operation metadata is returned as TrainProcessorVersionMetadata. */
2349
2353
  train(request: {
@@ -2401,7 +2405,7 @@ declare namespace gapi.client {
2401
2405
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2402
2406
  uploadType?: string;
2403
2407
  },
2404
- body: GoogleCloudDocumentaiV1TrainProcessorVersionRequest
2408
+ body: GoogleCloudDocumentaiV1TrainProcessorVersionRequest,
2405
2409
  ): Request<GoogleLongrunningOperation>;
2406
2410
  /** Undeploys the processor version. */
2407
2411
  undeploy(request: {
@@ -2459,7 +2463,7 @@ declare namespace gapi.client {
2459
2463
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2460
2464
  uploadType?: string;
2461
2465
  },
2462
- body: GoogleCloudDocumentaiV1UndeployProcessorVersionRequest
2466
+ body: GoogleCloudDocumentaiV1UndeployProcessorVersionRequest,
2463
2467
  ): Request<GoogleLongrunningOperation>;
2464
2468
  evaluations: EvaluationsResource;
2465
2469
  }
@@ -2520,7 +2524,7 @@ declare namespace gapi.client {
2520
2524
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2521
2525
  uploadType?: string;
2522
2526
  },
2523
- body: GoogleCloudDocumentaiV1BatchProcessRequest
2527
+ body: GoogleCloudDocumentaiV1BatchProcessRequest,
2524
2528
  ): Request<GoogleLongrunningOperation>;
2525
2529
  /** Creates a processor from the ProcessorType provided. The processor will be at `ENABLED` state by default after its creation. Note that this method requires the `documentai.processors.create` permission on the project, which is highly privileged. A user or service account with this permission can create new processors that can interact with any gcs bucket in your project. */
2526
2530
  create(request: {
@@ -2578,7 +2582,7 @@ declare namespace gapi.client {
2578
2582
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2579
2583
  uploadType?: string;
2580
2584
  },
2581
- body: GoogleCloudDocumentaiV1Processor
2585
+ body: GoogleCloudDocumentaiV1Processor,
2582
2586
  ): Request<GoogleCloudDocumentaiV1Processor>;
2583
2587
  /** Deletes the processor, unloads all deployed model artifacts if it was enabled and then deletes all artifacts associated with this processor. */
2584
2588
  delete(request?: {
@@ -2663,7 +2667,7 @@ declare namespace gapi.client {
2663
2667
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2664
2668
  uploadType?: string;
2665
2669
  },
2666
- body: GoogleCloudDocumentaiV1DisableProcessorRequest
2670
+ body: GoogleCloudDocumentaiV1DisableProcessorRequest,
2667
2671
  ): Request<GoogleLongrunningOperation>;
2668
2672
  /** Enables a processor */
2669
2673
  enable(request: {
@@ -2721,7 +2725,7 @@ declare namespace gapi.client {
2721
2725
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2722
2726
  uploadType?: string;
2723
2727
  },
2724
- body: GoogleCloudDocumentaiV1EnableProcessorRequest
2728
+ body: GoogleCloudDocumentaiV1EnableProcessorRequest,
2725
2729
  ): Request<GoogleLongrunningOperation>;
2726
2730
  /** Gets a processor detail. */
2727
2731
  get(request?: {
@@ -2837,7 +2841,7 @@ declare namespace gapi.client {
2837
2841
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2838
2842
  uploadType?: string;
2839
2843
  },
2840
- body: GoogleCloudDocumentaiV1ProcessRequest
2844
+ body: GoogleCloudDocumentaiV1ProcessRequest,
2841
2845
  ): Request<GoogleCloudDocumentaiV1ProcessResponse>;
2842
2846
  /** Set the default (active) version of a Processor that will be used in ProcessDocument and BatchProcessDocuments. */
2843
2847
  setDefaultProcessorVersion(request: {
@@ -2895,7 +2899,7 @@ declare namespace gapi.client {
2895
2899
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2896
2900
  uploadType?: string;
2897
2901
  },
2898
- body: GoogleCloudDocumentaiV1SetDefaultProcessorVersionRequest
2902
+ body: GoogleCloudDocumentaiV1SetDefaultProcessorVersionRequest,
2899
2903
  ): Request<GoogleLongrunningOperation>;
2900
2904
  humanReviewConfig: HumanReviewConfigResource;
2901
2905
  processorVersions: ProcessorVersionsResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.documentai-v1",
3
- "version": "0.0.20250117",
3
+ "version": "0.0.20250128",
4
4
  "description": "TypeScript typings for Cloud Document AI API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -30,7 +30,7 @@ gapi.client.load(
30
30
  () => {
31
31
  // now we can use:
32
32
  // gapi.client.documentai
33
- }
33
+ },
34
34
  );
35
35
  ```
36
36
 
@@ -62,7 +62,7 @@ gapi.auth.authorize(
62
62
  } else {
63
63
  /* handle authorization error */
64
64
  }
65
- }
65
+ },
66
66
  );
67
67
  ```
68
68