@maxim_mazurok/gapi.client.documentai-v1 0.0.20230714 → 0.0.20230719

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 +10 -2
  2. package/package.json +1 -1
  3. package/tests.ts +41 -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: 20230714
12
+ // Revision: 20230719
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -436,6 +436,9 @@ declare namespace gapi.client {
436
436
  /** The set of documents that match the specified Cloud Storage `gcs_prefix`. */
437
437
  gcsPrefix?:
438
438
  GoogleCloudDocumentaiV1GcsPrefix;
439
+ /** The set of documents specified inline. */
440
+ rawDocuments?:
441
+ GoogleCloudDocumentaiV1RawDocuments;
439
442
  }
440
443
  interface GoogleCloudDocumentaiV1BatchProcessMetadata {
441
444
  /** The creation time of the operation. */
@@ -3399,7 +3402,7 @@ declare namespace gapi.client {
3399
3402
  /** The schema of the processor version. Describes the output. */
3400
3403
  documentSchema?:
3401
3404
  GoogleCloudDocumentaiV1DocumentSchema;
3402
- /** Denotes that this `ProcessorVersion` is managed by Google. */
3405
+ /** Output only. Denotes that this `ProcessorVersion` is managed by Google. */
3403
3406
  googleManaged?:
3404
3407
  boolean;
3405
3408
  /** The KMS key name used for encryption. */
@@ -3465,6 +3468,11 @@ declare namespace gapi.client {
3465
3468
  mimeType?:
3466
3469
  string;
3467
3470
  }
3471
+ interface GoogleCloudDocumentaiV1RawDocuments {
3472
+ /** Specifies raw document content and mime type. */
3473
+ documents?:
3474
+ GoogleCloudDocumentaiV1RawDocument[];
3475
+ }
3468
3476
  interface GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata {
3469
3477
  /** The basic metadata of the long-running operation. */
3470
3478
  commonMetadata?:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.documentai-v1",
3
- "version": "0.0.20230714",
3
+ "version": "0.0.20230719",
4
4
  "description": "TypeScript typings for Cloud Document AI API v1",
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: 20230714
6
+ // Revision: 20230719
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -97,6 +97,14 @@ gapi.load('client', async () => {
97
97
  gcsPrefix: {
98
98
  gcsUriPrefix: "Test string",
99
99
  },
100
+ rawDocuments: {
101
+ documents: [
102
+ {
103
+ content: "Test string",
104
+ mimeType: "Test string",
105
+ }
106
+ ],
107
+ },
100
108
  },
101
109
  processOptions: {
102
110
  ocrConfig: {
@@ -1942,6 +1950,14 @@ gapi.load('client', async () => {
1942
1950
  gcsPrefix: {
1943
1951
  gcsUriPrefix: "Test string",
1944
1952
  },
1953
+ rawDocuments: {
1954
+ documents: [
1955
+ {
1956
+ content: "Test string",
1957
+ mimeType: "Test string",
1958
+ }
1959
+ ],
1960
+ },
1945
1961
  },
1946
1962
  processOptions: {
1947
1963
  ocrConfig: {
@@ -1986,6 +2002,14 @@ gapi.load('client', async () => {
1986
2002
  gcsPrefix: {
1987
2003
  gcsUriPrefix: "Test string",
1988
2004
  },
2005
+ rawDocuments: {
2006
+ documents: [
2007
+ {
2008
+ content: "Test string",
2009
+ mimeType: "Test string",
2010
+ }
2011
+ ],
2012
+ },
1989
2013
  },
1990
2014
  });
1991
2015
  /** Gets a processor version detail. */
@@ -2925,6 +2949,14 @@ gapi.load('client', async () => {
2925
2949
  gcsPrefix: {
2926
2950
  gcsUriPrefix: "Test string",
2927
2951
  },
2952
+ rawDocuments: {
2953
+ documents: [
2954
+ {
2955
+ content: "Test string",
2956
+ mimeType: "Test string",
2957
+ }
2958
+ ],
2959
+ },
2928
2960
  },
2929
2961
  trainingDocuments: {
2930
2962
  gcsDocuments: {
@@ -2938,6 +2970,14 @@ gapi.load('client', async () => {
2938
2970
  gcsPrefix: {
2939
2971
  gcsUriPrefix: "Test string",
2940
2972
  },
2973
+ rawDocuments: {
2974
+ documents: [
2975
+ {
2976
+ content: "Test string",
2977
+ mimeType: "Test string",
2978
+ }
2979
+ ],
2980
+ },
2941
2981
  },
2942
2982
  },
2943
2983
  processorVersion: {