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

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 +29 -20
  2. package/package.json +1 -1
  3. package/tests.ts +9 -41
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: 20230719
12
+ // Revision: 20230727
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -23,7 +23,7 @@ declare namespace gapi.client {
23
23
 
24
24
  namespace documentai {
25
25
  interface GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata {
26
- /** The basic metadata of the long running operation. */
26
+ /** The basic metadata of the long-running operation. */
27
27
  commonMetadata?:
28
28
  GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
29
29
  /** The list of individual auto-labeling statuses of the dataset documents. */
@@ -45,7 +45,7 @@ declare namespace gapi.client {
45
45
  interface GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsResponse {
46
46
  }
47
47
  interface GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata {
48
- /** The basic metadata of the long running operation. */
48
+ /** The basic metadata of the long-running operation. */
49
49
  commonMetadata?:
50
50
  GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
51
51
  /** Total number of documents that failed to be deleted in storage. */
@@ -70,7 +70,7 @@ declare namespace gapi.client {
70
70
  interface GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsResponse {
71
71
  }
72
72
  interface GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadata {
73
- /** The basic metadata of the long running operation. */
73
+ /** The basic metadata of the long-running operation. */
74
74
  commonMetadata?:
75
75
  GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
76
76
  /** The destination dataset split type. */
@@ -190,7 +190,7 @@ declare namespace gapi.client {
190
190
  string;
191
191
  }
192
192
  interface GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadata {
193
- /** The basic metadata of the long running operation. */
193
+ /** The basic metadata of the long-running operation. */
194
194
  commonMetadata?:
195
195
  GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
196
196
  /** The list of response details of each document. */
@@ -233,7 +233,7 @@ declare namespace gapi.client {
233
233
  string;
234
234
  }
235
235
  interface GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata {
236
- /** The basic metadata of the long running operation. */
236
+ /** The basic metadata of the long-running operation. */
237
237
  commonMetadata?:
238
238
  GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
239
239
  /** Validation statuses of the batch documents import config. */
@@ -282,7 +282,7 @@ declare namespace gapi.client {
282
282
  string;
283
283
  }
284
284
  interface GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata {
285
- /** The basic metadata of the long running operation. */
285
+ /** The basic metadata of the long-running operation. */
286
286
  commonMetadata?:
287
287
  GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
288
288
  /** The list of dataset resync statuses. Not checked when `dataset_documents` is specified in ResyncRequest. */
@@ -329,7 +329,7 @@ declare namespace gapi.client {
329
329
  string;
330
330
  }
331
331
  interface GoogleCloudDocumentaiUiv1beta3SampleDocumentsMetadata {
332
- /** The basic metadata of the long running operation. */
332
+ /** The basic metadata of the long-running operation. */
333
333
  commonMetadata?:
334
334
  GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
335
335
  }
@@ -396,7 +396,7 @@ declare namespace gapi.client {
396
396
  interface GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionResponse {
397
397
  }
398
398
  interface GoogleCloudDocumentaiUiv1beta3UpdateDatasetOperationMetadata {
399
- /** The basic metadata of the long running operation. */
399
+ /** The basic metadata of the long-running operation. */
400
400
  commonMetadata?:
401
401
  GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
402
402
  }
@@ -436,9 +436,6 @@ 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;
442
439
  }
443
440
  interface GoogleCloudDocumentaiV1BatchProcessMetadata {
444
441
  /** The creation time of the operation. */
@@ -1951,7 +1948,7 @@ declare namespace gapi.client {
1951
1948
  number;
1952
1949
  }
1953
1950
  interface GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadata {
1954
- /** The basic metadata of the long running operation. */
1951
+ /** The basic metadata of the long-running operation. */
1955
1952
  commonMetadata?:
1956
1953
  GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
1957
1954
  /** Total number of documents that failed to be deleted in storage. */
@@ -2159,7 +2156,7 @@ declare namespace gapi.client {
2159
2156
  string;
2160
2157
  }
2161
2158
  interface GoogleCloudDocumentaiV1beta3ImportDocumentsMetadata {
2162
- /** The basic metadata of the long running operation. */
2159
+ /** The basic metadata of the long-running operation. */
2163
2160
  commonMetadata?:
2164
2161
  GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
2165
2162
  /** Validation statuses of the batch documents import config. */
@@ -2296,7 +2293,7 @@ declare namespace gapi.client {
2296
2293
  interface GoogleCloudDocumentaiV1beta3UndeployProcessorVersionResponse {
2297
2294
  }
2298
2295
  interface GoogleCloudDocumentaiV1beta3UpdateDatasetOperationMetadata {
2299
- /** The basic metadata of the long running operation. */
2296
+ /** The basic metadata of the long-running operation. */
2300
2297
  commonMetadata?:
2301
2298
  GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
2302
2299
  }
@@ -3354,6 +3351,9 @@ declare namespace gapi.client {
3354
3351
  /** Output only. Immutable. The http endpoint that can be called to invoke processing. */
3355
3352
  processEndpoint?:
3356
3353
  string;
3354
+ /** Output only. The processor version aliases. */
3355
+ processorVersionAliases?:
3356
+ GoogleCloudDocumentaiV1ProcessorVersionAlias[];
3357
3357
  /** Output only. The state of the processor. */
3358
3358
  state?:
3359
3359
  string;
@@ -3421,6 +3421,14 @@ declare namespace gapi.client {
3421
3421
  state?:
3422
3422
  string;
3423
3423
  }
3424
+ interface GoogleCloudDocumentaiV1ProcessorVersionAlias {
3425
+ /** The alias in the form of `processor_version` resource name. */
3426
+ alias?:
3427
+ string;
3428
+ /** The resource name of aliased processor version. */
3429
+ processorVersion?:
3430
+ string;
3431
+ }
3424
3432
  interface GoogleCloudDocumentaiV1ProcessorVersionDeprecationInfo {
3425
3433
  /** The time at which this processor version will be deprecated. */
3426
3434
  deprecationTime?:
@@ -3464,15 +3472,16 @@ declare namespace gapi.client {
3464
3472
  /** Inline document content. */
3465
3473
  content?:
3466
3474
  string;
3475
+ /**
3476
+ * The display name of the document, it supports all Unicode characters except the following: `*`, `?`, `[`, `]`, `%`, `{`, `}`,`'`, `\"`, `,` `~`, `=` and `:` are reserved. If not
3477
+ * specified, a default ID will be generated.
3478
+ */
3479
+ displayName?:
3480
+ string;
3467
3481
  /** An IANA MIME type (RFC6838) indicating the nature and format of the content. */
3468
3482
  mimeType?:
3469
3483
  string;
3470
3484
  }
3471
- interface GoogleCloudDocumentaiV1RawDocuments {
3472
- /** Specifies raw document content and mime type. */
3473
- documents?:
3474
- GoogleCloudDocumentaiV1RawDocument[];
3475
- }
3476
3485
  interface GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata {
3477
3486
  /** The basic metadata of the long-running operation. */
3478
3487
  commonMetadata?:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.documentai-v1",
3
- "version": "0.0.20230719",
3
+ "version": "0.0.20230727",
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: 20230719
6
+ // Revision: 20230727
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -97,14 +97,6 @@ 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
- },
108
100
  },
109
101
  processOptions: {
110
102
  ocrConfig: {
@@ -134,6 +126,12 @@ gapi.load('client', async () => {
134
126
  kmsKeyName: "Test string",
135
127
  name: "Test string",
136
128
  processEndpoint: "Test string",
129
+ processorVersionAliases: [
130
+ {
131
+ alias: "Test string",
132
+ processorVersion: "Test string",
133
+ }
134
+ ],
137
135
  state: "Test string",
138
136
  type: "Test string",
139
137
  });
@@ -1032,6 +1030,7 @@ gapi.load('client', async () => {
1032
1030
  },
1033
1031
  rawDocument: {
1034
1032
  content: "Test string",
1033
+ displayName: "Test string",
1035
1034
  mimeType: "Test string",
1036
1035
  },
1037
1036
  skipHumanReview: true,
@@ -1950,14 +1949,6 @@ gapi.load('client', async () => {
1950
1949
  gcsPrefix: {
1951
1950
  gcsUriPrefix: "Test string",
1952
1951
  },
1953
- rawDocuments: {
1954
- documents: [
1955
- {
1956
- content: "Test string",
1957
- mimeType: "Test string",
1958
- }
1959
- ],
1960
- },
1961
1952
  },
1962
1953
  processOptions: {
1963
1954
  ocrConfig: {
@@ -2002,14 +1993,6 @@ gapi.load('client', async () => {
2002
1993
  gcsPrefix: {
2003
1994
  gcsUriPrefix: "Test string",
2004
1995
  },
2005
- rawDocuments: {
2006
- documents: [
2007
- {
2008
- content: "Test string",
2009
- mimeType: "Test string",
2010
- }
2011
- ],
2012
- },
2013
1996
  },
2014
1997
  });
2015
1998
  /** Gets a processor version detail. */
@@ -2893,6 +2876,7 @@ gapi.load('client', async () => {
2893
2876
  },
2894
2877
  rawDocument: {
2895
2878
  content: "Test string",
2879
+ displayName: "Test string",
2896
2880
  mimeType: "Test string",
2897
2881
  },
2898
2882
  skipHumanReview: true,
@@ -2949,14 +2933,6 @@ gapi.load('client', async () => {
2949
2933
  gcsPrefix: {
2950
2934
  gcsUriPrefix: "Test string",
2951
2935
  },
2952
- rawDocuments: {
2953
- documents: [
2954
- {
2955
- content: "Test string",
2956
- mimeType: "Test string",
2957
- }
2958
- ],
2959
- },
2960
2936
  },
2961
2937
  trainingDocuments: {
2962
2938
  gcsDocuments: {
@@ -2970,14 +2946,6 @@ gapi.load('client', async () => {
2970
2946
  gcsPrefix: {
2971
2947
  gcsUriPrefix: "Test string",
2972
2948
  },
2973
- rawDocuments: {
2974
- documents: [
2975
- {
2976
- content: "Test string",
2977
- mimeType: "Test string",
2978
- }
2979
- ],
2980
- },
2981
2949
  },
2982
2950
  },
2983
2951
  processorVersion: {