@maxim_mazurok/gapi.client.documentai-v1beta3 0.0.20230719 → 0.0.20230721

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 +40 -20
  2. package/package.json +1 -1
  3. package/tests.ts +13 -49
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: 20230719
12
+ // Revision: 20230721
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
  }
@@ -1939,7 +1939,7 @@ declare namespace gapi.client {
1939
1939
  GoogleCloudDocumentaiV1beta3DocumentId[];
1940
1940
  }
1941
1941
  interface GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadata {
1942
- /** The basic metadata of the long running operation. */
1942
+ /** The basic metadata of the long-running operation. */
1943
1943
  commonMetadata?:
1944
1944
  GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
1945
1945
  /** Total number of documents that failed to be deleted in storage. */
@@ -1978,9 +1978,6 @@ declare namespace gapi.client {
1978
1978
  /** The set of documents that match the specified Cloud Storage `gcs_prefix`. */
1979
1979
  gcsPrefix?:
1980
1980
  GoogleCloudDocumentaiV1beta3GcsPrefix;
1981
- /** The set of documents specified inline. */
1982
- rawDocuments?:
1983
- GoogleCloudDocumentaiV1beta3RawDocuments;
1984
1981
  }
1985
1982
  interface GoogleCloudDocumentaiV1beta3BatchProcessMetadata {
1986
1983
  /** The creation time of the operation. */
@@ -3100,7 +3097,7 @@ declare namespace gapi.client {
3100
3097
  string;
3101
3098
  }
3102
3099
  interface GoogleCloudDocumentaiV1beta3ImportDocumentsMetadata {
3103
- /** The basic metadata of the long running operation. */
3100
+ /** The basic metadata of the long-running operation. */
3104
3101
  commonMetadata?:
3105
3102
  GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
3106
3103
  /** Validation statuses of the batch documents import config. */
@@ -3162,10 +3159,21 @@ declare namespace gapi.client {
3162
3159
  GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
3163
3160
  }
3164
3161
  interface GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequest {
3162
+ /** The source processor version to import from, and can be from different environment and region than the destination processor. */
3163
+ externalProcessorVersionSource?:
3164
+ GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequestExternalProcessorVersionSource;
3165
3165
  /** The source processor version to import from. The source processor version and destination processor need to be in the same environment and region. */
3166
3166
  processorVersionSource?:
3167
3167
  string;
3168
3168
  }
3169
+ interface GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequestExternalProcessorVersionSource {
3170
+ /** Required. The processor version name. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` */
3171
+ processorVersion?:
3172
+ string;
3173
+ /** Optional. The Document AI service endpoint. For example, 'https://us-documentai.googleapis.com' */
3174
+ serviceEndpoint?:
3175
+ string;
3176
+ }
3169
3177
  interface GoogleCloudDocumentaiV1beta3ImportProcessorVersionResponse {
3170
3178
  /** The destination processor version name. */
3171
3179
  processorVersion?:
@@ -3270,6 +3278,9 @@ declare namespace gapi.client {
3270
3278
  /** Output only. Immutable. The http endpoint that can be called to invoke processing. */
3271
3279
  processEndpoint?:
3272
3280
  string;
3281
+ /** Output only. The processor version aliases. */
3282
+ processorVersionAliases?:
3283
+ GoogleCloudDocumentaiV1beta3ProcessorVersionAlias[];
3273
3284
  /** Output only. The state of the processor. */
3274
3285
  state?:
3275
3286
  string;
@@ -3337,6 +3348,14 @@ declare namespace gapi.client {
3337
3348
  state?:
3338
3349
  string;
3339
3350
  }
3351
+ interface GoogleCloudDocumentaiV1beta3ProcessorVersionAlias {
3352
+ /** The alias in the form of `processor_version` resource name. */
3353
+ alias?:
3354
+ string;
3355
+ /** The resource name of aliased processor version. */
3356
+ processorVersion?:
3357
+ string;
3358
+ }
3340
3359
  interface GoogleCloudDocumentaiV1beta3ProcessorVersionDeprecationInfo {
3341
3360
  /** The time at which this processor version will be deprecated. */
3342
3361
  deprecationTime?:
@@ -3394,15 +3413,16 @@ declare namespace gapi.client {
3394
3413
  /** Inline document content. */
3395
3414
  content?:
3396
3415
  string;
3416
+ /**
3417
+ * The display name of the document, it supports all Unicode characters except the following: `*`, `?`, `[`, `]`, `%`, `{`, `}`,`'`, `\"`, `,` `~`, `=` and `:` are reserved. If not
3418
+ * specified, a default ID will be generated.
3419
+ */
3420
+ displayName?:
3421
+ string;
3397
3422
  /** An IANA MIME type (RFC6838) indicating the nature and format of the content. */
3398
3423
  mimeType?:
3399
3424
  string;
3400
3425
  }
3401
- interface GoogleCloudDocumentaiV1beta3RawDocuments {
3402
- /** Specifies raw document content and mime type. */
3403
- documents?:
3404
- GoogleCloudDocumentaiV1beta3RawDocument[];
3405
- }
3406
3426
  interface GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata {
3407
3427
  /** The basic metadata of the long-running operation. */
3408
3428
  commonMetadata?:
@@ -3553,7 +3573,7 @@ declare namespace gapi.client {
3553
3573
  interface GoogleCloudDocumentaiV1beta3UndeployProcessorVersionResponse {
3554
3574
  }
3555
3575
  interface GoogleCloudDocumentaiV1beta3UpdateDatasetOperationMetadata {
3556
- /** The basic metadata of the long running operation. */
3576
+ /** The basic metadata of the long-running operation. */
3557
3577
  commonMetadata?:
3558
3578
  GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
3559
3579
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.documentai-v1beta3",
3
- "version": "0.0.20230719",
3
+ "version": "0.0.20230721",
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: 20230719
6
+ // Revision: 20230721
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -96,14 +96,6 @@ gapi.load('client', async () => {
96
96
  gcsPrefix: {
97
97
  gcsUriPrefix: "Test string",
98
98
  },
99
- rawDocuments: {
100
- documents: [
101
- {
102
- content: "Test string",
103
- mimeType: "Test string",
104
- }
105
- ],
106
- },
107
99
  },
108
100
  outputConfig: {
109
101
  gcsDestination: "Test string",
@@ -136,6 +128,12 @@ gapi.load('client', async () => {
136
128
  kmsKeyName: "Test string",
137
129
  name: "Test string",
138
130
  processEndpoint: "Test string",
131
+ processorVersionAliases: [
132
+ {
133
+ alias: "Test string",
134
+ processorVersion: "Test string",
135
+ }
136
+ ],
139
137
  state: "Test string",
140
138
  type: "Test string",
141
139
  });
@@ -1878,6 +1876,7 @@ gapi.load('client', async () => {
1878
1876
  },
1879
1877
  rawDocument: {
1880
1878
  content: "Test string",
1879
+ displayName: "Test string",
1881
1880
  mimeType: "Test string",
1882
1881
  },
1883
1882
  skipHumanReview: true,
@@ -1974,14 +1973,6 @@ gapi.load('client', async () => {
1974
1973
  gcsPrefix: {
1975
1974
  gcsUriPrefix: "Test string",
1976
1975
  },
1977
- rawDocuments: {
1978
- documents: [
1979
- {
1980
- content: "Test string",
1981
- mimeType: "Test string",
1982
- }
1983
- ],
1984
- },
1985
1976
  },
1986
1977
  datasetSplit: "Test string",
1987
1978
  }
@@ -3795,14 +3786,6 @@ gapi.load('client', async () => {
3795
3786
  gcsPrefix: {
3796
3787
  gcsUriPrefix: "Test string",
3797
3788
  },
3798
- rawDocuments: {
3799
- documents: [
3800
- {
3801
- content: "Test string",
3802
- mimeType: "Test string",
3803
- }
3804
- ],
3805
- },
3806
3789
  },
3807
3790
  outputConfig: {
3808
3791
  gcsDestination: "Test string",
@@ -3850,14 +3833,6 @@ gapi.load('client', async () => {
3850
3833
  gcsPrefix: {
3851
3834
  gcsUriPrefix: "Test string",
3852
3835
  },
3853
- rawDocuments: {
3854
- documents: [
3855
- {
3856
- content: "Test string",
3857
- mimeType: "Test string",
3858
- }
3859
- ],
3860
- },
3861
3836
  },
3862
3837
  });
3863
3838
  /** Gets a processor version detail. */
@@ -3868,6 +3843,10 @@ gapi.load('client', async () => {
3868
3843
  await gapi.client.documentai.projects.locations.processors.processorVersions.importProcessorVersion({
3869
3844
  parent: "Test string",
3870
3845
  }, {
3846
+ externalProcessorVersionSource: {
3847
+ processorVersion: "Test string",
3848
+ serviceEndpoint: "Test string",
3849
+ },
3871
3850
  processorVersionSource: "Test string",
3872
3851
  });
3873
3852
  /** Lists all versions of a processor. */
@@ -5591,6 +5570,7 @@ gapi.load('client', async () => {
5591
5570
  },
5592
5571
  rawDocument: {
5593
5572
  content: "Test string",
5573
+ displayName: "Test string",
5594
5574
  mimeType: "Test string",
5595
5575
  },
5596
5576
  skipHumanReview: true,
@@ -5653,14 +5633,6 @@ gapi.load('client', async () => {
5653
5633
  gcsPrefix: {
5654
5634
  gcsUriPrefix: "Test string",
5655
5635
  },
5656
- rawDocuments: {
5657
- documents: [
5658
- {
5659
- content: "Test string",
5660
- mimeType: "Test string",
5661
- }
5662
- ],
5663
- },
5664
5636
  },
5665
5637
  trainingDocuments: {
5666
5638
  gcsDocuments: {
@@ -5674,14 +5646,6 @@ gapi.load('client', async () => {
5674
5646
  gcsPrefix: {
5675
5647
  gcsUriPrefix: "Test string",
5676
5648
  },
5677
- rawDocuments: {
5678
- documents: [
5679
- {
5680
- content: "Test string",
5681
- mimeType: "Test string",
5682
- }
5683
- ],
5684
- },
5685
5649
  },
5686
5650
  },
5687
5651
  processorVersion: {