@maxim_mazurok/gapi.client.documentai-v1 0.0.20230127 → 0.0.20230202

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 +37 -17
  2. package/package.json +1 -1
  3. package/tests.ts +1 -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: 20230127
12
+ // Revision: 20230202
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -106,8 +106,6 @@ declare namespace gapi.client {
106
106
  gcsManagedDocId?: GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId;
107
107
  /** Points to a specific revision of the document if set. */
108
108
  revisionRef?: GoogleCloudDocumentaiUiv1beta3RevisionRef;
109
- /** Points to a specific revision of the document if set. */
110
- revisionReference?: GoogleCloudDocumentaiUiv1beta3RevisionReference;
111
109
  }
112
110
  interface GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId {
113
111
  /** Id of the document (indexed) managed by Content Warehouse. */
@@ -234,14 +232,6 @@ declare namespace gapi.client {
234
232
  /** Reads the revision given by the id. */
235
233
  revisionId?: string;
236
234
  }
237
- interface GoogleCloudDocumentaiUiv1beta3RevisionReference {
238
- /** Reads the revision generated by the processor version. */
239
- latestProcessorVersion?: string;
240
- /** Reads the revision by the predefined case. */
241
- revisionCase?: string;
242
- /** Reads the revision given by the id. */
243
- revisionId?: string;
244
- }
245
235
  interface GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata {
246
236
  /** The basic metadata of the long running operation. */
247
237
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
@@ -713,11 +703,11 @@ declare namespace gapi.client {
713
703
  interface GoogleCloudDocumentaiV1beta1DocumentRevision {
714
704
  /** If the change was made by a person specify the name or id of that person. */
715
705
  agent?: string;
716
- /** The time that the revision was created. */
706
+ /** The time that the revision was created, internally generated by doc proto storage at the time of create. */
717
707
  createTime?: string;
718
708
  /** Human Review information of this revision. */
719
709
  humanReview?: GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview;
720
- /** Id of the revision. Unique within the context of the document. */
710
+ /** Id of the revision, internally generated by doc proto storage. Unique within the context of the document. */
721
711
  id?: string;
722
712
  /** The revisions that this revision is based on. This can include one or more parent (when documents are merged.) This field represents the index into the `revisions` field. */
723
713
  parent?: number[];
@@ -1219,11 +1209,11 @@ declare namespace gapi.client {
1219
1209
  interface GoogleCloudDocumentaiV1beta2DocumentRevision {
1220
1210
  /** If the change was made by a person specify the name or id of that person. */
1221
1211
  agent?: string;
1222
- /** The time that the revision was created. */
1212
+ /** The time that the revision was created, internally generated by doc proto storage at the time of create. */
1223
1213
  createTime?: string;
1224
1214
  /** Human Review information of this revision. */
1225
1215
  humanReview?: GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview;
1226
- /** Id of the revision. Unique within the context of the document. */
1216
+ /** Id of the revision, internally generated by doc proto storage. Unique within the context of the document. */
1227
1217
  id?: string;
1228
1218
  /** The revisions that this revision is based on. This can include one or more parent (when documents are merged.) This field represents the index into the `revisions` field. */
1229
1219
  parent?: number[];
@@ -1912,11 +1902,11 @@ declare namespace gapi.client {
1912
1902
  interface GoogleCloudDocumentaiV1DocumentRevision {
1913
1903
  /** If the change was made by a person specify the name or id of that person. */
1914
1904
  agent?: string;
1915
- /** The time that the revision was created. */
1905
+ /** The time that the revision was created, internally generated by doc proto storage at the time of create. */
1916
1906
  createTime?: string;
1917
1907
  /** Human Review information of this revision. */
1918
1908
  humanReview?: GoogleCloudDocumentaiV1DocumentRevisionHumanReview;
1919
- /** Id of the revision. Unique within the context of the document. */
1909
+ /** Id of the revision, internally generated by doc proto storage. Unique within the context of the document. */
1920
1910
  id?: string;
1921
1911
  /** The revisions that this revision is based on. This can include one or more parent (when documents are merged.) This field represents the index into the `revisions` field. */
1922
1912
  parent?: number[];
@@ -2054,10 +2044,18 @@ declare namespace gapi.client {
2054
2044
  // tslint:disable-next-line:no-empty-interface
2055
2045
  interface GoogleCloudDocumentaiV1EnableProcessorResponse {
2056
2046
  }
2047
+ interface GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata {
2048
+ /** The basic metadata of the long running operation. */
2049
+ commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
2050
+ }
2057
2051
  interface GoogleCloudDocumentaiV1EvaluateProcessorVersionRequest {
2058
2052
  /** Optional. The documents used in the evaluation. If unspecified, use the processor's dataset as evaluation input. */
2059
2053
  evaluationDocuments?: GoogleCloudDocumentaiV1BatchDocumentsInputConfig;
2060
2054
  }
2055
+ interface GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse {
2056
+ /** The resource name of the created evaluation. */
2057
+ evaluation?: string;
2058
+ }
2061
2059
  interface GoogleCloudDocumentaiV1Evaluation {
2062
2060
  /** Metrics for all the entities in aggregate. */
2063
2061
  allEntitiesMetrics?: GoogleCloudDocumentaiV1EvaluationMultiConfidenceMetrics;
@@ -2325,6 +2323,24 @@ declare namespace gapi.client {
2325
2323
  // tslint:disable-next-line:no-empty-interface
2326
2324
  interface GoogleCloudDocumentaiV1SetDefaultProcessorVersionResponse {
2327
2325
  }
2326
+ interface GoogleCloudDocumentaiV1TrainProcessorVersionMetadata {
2327
+ /** The basic metadata of the long running operation. */
2328
+ commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
2329
+ /** The test dataset validation information. */
2330
+ testDatasetValidation?: GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation;
2331
+ /** The training dataset validation information. */
2332
+ trainingDatasetValidation?: GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation;
2333
+ }
2334
+ interface GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation {
2335
+ /** The total number of dataset errors. */
2336
+ datasetErrorCount?: number;
2337
+ /** 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. */
2338
+ datasetErrors?: GoogleRpcStatus[];
2339
+ /** The total number of document errors. */
2340
+ documentErrorCount?: number;
2341
+ /** 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. */
2342
+ documentErrors?: GoogleRpcStatus[];
2343
+ }
2328
2344
  interface GoogleCloudDocumentaiV1TrainProcessorVersionRequest {
2329
2345
  /**
2330
2346
  * Optional. The processor version to use as a base for training. This processor version must be a child of `parent`. Format:
@@ -2344,6 +2360,10 @@ declare namespace gapi.client {
2344
2360
  /** The documents used for training the new version. */
2345
2361
  trainingDocuments?: GoogleCloudDocumentaiV1BatchDocumentsInputConfig;
2346
2362
  }
2363
+ interface GoogleCloudDocumentaiV1TrainProcessorVersionResponse {
2364
+ /** The resource name of the processor version produced by training. */
2365
+ processorVersion?: string;
2366
+ }
2347
2367
  interface GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata {
2348
2368
  /** The basic metadata of the long running operation. */
2349
2369
  commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.documentai-v1",
3
- "version": "0.0.20230127",
3
+ "version": "0.0.20230202",
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: 20230127
6
+ // Revision: 20230202
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */