@maxim_mazurok/gapi.client.documentai-v1beta3 0.0.20221027 → 0.0.20221106

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 -3
  2. package/package.json +1 -1
  3. package/tests.ts +15 -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=v1beta3
12
- // Revision: 20221027
12
+ // Revision: 20221106
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -1949,6 +1949,10 @@ declare namespace gapi.client {
1949
1949
  interface GoogleCloudDocumentaiV1beta3EnableProcessorResponse {
1950
1950
  }
1951
1951
  interface GoogleCloudDocumentaiV1beta3EntityTypeMetadata {
1952
+ /** Human review labeling config on the property. */
1953
+ humanReviewLabelingMetadata?: GoogleCloudDocumentaiV1beta3HumanReviewLabelingMetadata;
1954
+ /** Human review config on the entity type. */
1955
+ humanReviewMetadata?: GoogleCloudDocumentaiV1beta3HumanReviewValidationMetadata;
1952
1956
  /** Whether the entity type should be considered as "inactive". */
1953
1957
  inactive?: boolean;
1954
1958
  }
@@ -1970,6 +1974,10 @@ declare namespace gapi.client {
1970
1974
  /** The URI prefix. */
1971
1975
  gcsUriPrefix?: string;
1972
1976
  }
1977
+ interface GoogleCloudDocumentaiV1beta3HumanReviewLabelingMetadata {
1978
+ /** Whether to enable normalization editing. */
1979
+ enableNormalizationEditing?: boolean;
1980
+ }
1973
1981
  interface GoogleCloudDocumentaiV1beta3HumanReviewStatus {
1974
1982
  /**
1975
1983
  * The name of the operation triggered by the processed document. This field is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has the same response type and
@@ -1981,6 +1989,12 @@ declare namespace gapi.client {
1981
1989
  /** A message providing more details about the human review state. */
1982
1990
  stateMessage?: string;
1983
1991
  }
1992
+ interface GoogleCloudDocumentaiV1beta3HumanReviewValidationMetadata {
1993
+ /** The confidence threshold if human review validation is enabled. */
1994
+ confidenceThreshold?: number;
1995
+ /** Whether to enable human review validation. */
1996
+ enableValidation?: boolean;
1997
+ }
1984
1998
  interface GoogleCloudDocumentaiV1beta3ListProcessorsResponse {
1985
1999
  /** Points to the next processor, otherwise empty. */
1986
2000
  nextPageToken?: string;
@@ -2048,8 +2062,6 @@ declare namespace gapi.client {
2048
2062
  deprecationInfo?: GoogleCloudDocumentaiV1beta3ProcessorVersionDeprecationInfo;
2049
2063
  /** The display name of the processor version. */
2050
2064
  displayName?: string;
2051
- /** The schema of the processor version. Describes the output. */
2052
- documentSchema?: GoogleCloudDocumentaiV1beta3DocumentSchema;
2053
2065
  /** Denotes that this ProcessorVersion is managed by google. */
2054
2066
  googleManaged?: boolean;
2055
2067
  /** The KMS key name used for encryption. */
@@ -2094,6 +2106,10 @@ declare namespace gapi.client {
2094
2106
  humanReviewStatus?: GoogleCloudDocumentaiV1beta3HumanReviewStatus;
2095
2107
  }
2096
2108
  interface GoogleCloudDocumentaiV1beta3PropertyMetadata {
2109
+ /** Human review labeling config on the property. */
2110
+ humanReviewLabelingMetadata?: GoogleCloudDocumentaiV1beta3HumanReviewLabelingMetadata;
2111
+ /** Human review validation config on the property. */
2112
+ humanReviewMetadata?: GoogleCloudDocumentaiV1beta3HumanReviewValidationMetadata;
2097
2113
  /** Whether the property should be considered as "inactive". */
2098
2114
  inactive?: boolean;
2099
2115
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.documentai-v1beta3",
3
- "version": "0.0.20221027",
3
+ "version": "0.0.20221106",
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: 20221027
6
+ // Revision: 20221106
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -2622,6 +2622,13 @@ gapi.load('client', async () => {
2622
2622
  ],
2623
2623
  displayName: "Test string",
2624
2624
  entityTypeMetadata: {
2625
+ humanReviewLabelingMetadata: {
2626
+ enableNormalizationEditing: true,
2627
+ },
2628
+ humanReviewMetadata: {
2629
+ confidenceThreshold: 42,
2630
+ enableValidation: true,
2631
+ },
2625
2632
  inactive: true,
2626
2633
  },
2627
2634
  enumValues: {
@@ -2635,6 +2642,13 @@ gapi.load('client', async () => {
2635
2642
  name: "Test string",
2636
2643
  occurrenceType: "Test string",
2637
2644
  propertyMetadata: {
2645
+ humanReviewLabelingMetadata: {
2646
+ enableNormalizationEditing: true,
2647
+ },
2648
+ humanReviewMetadata: {
2649
+ confidenceThreshold: 42,
2650
+ enableValidation: true,
2651
+ },
2638
2652
  inactive: true,
2639
2653
  },
2640
2654
  valueType: "Test string",