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

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 +3 -29
  2. package/package.json +1 -1
  3. package/tests.ts +1 -27
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: 20221023
12
+ // Revision: 20221027
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -1949,14 +1949,8 @@ declare namespace gapi.client {
1949
1949
  interface GoogleCloudDocumentaiV1beta3EnableProcessorResponse {
1950
1950
  }
1951
1951
  interface GoogleCloudDocumentaiV1beta3EntityTypeMetadata {
1952
- /** Human review labeling config on the entity. */
1953
- humanReviewLabelingMetadata?: GoogleCloudDocumentaiV1beta3HumanReviewLabelingMetadata;
1954
- /** Human review config on the entity. */
1955
- humanReviewMetadata?: GoogleCloudDocumentaiV1beta3HumanReviewValidationMetadata;
1956
1952
  /** Whether the entity type should be considered as "inactive". */
1957
1953
  inactive?: boolean;
1958
- /** Schema mutability metadata on the entity. */
1959
- schemaMutabilityMetadata?: GoogleCloudDocumentaiV1beta3SchemaMutabilityMetadata;
1960
1954
  }
1961
1955
  interface GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse {
1962
1956
  /** The list of processor types. */
@@ -1976,10 +1970,6 @@ declare namespace gapi.client {
1976
1970
  /** The URI prefix. */
1977
1971
  gcsUriPrefix?: string;
1978
1972
  }
1979
- interface GoogleCloudDocumentaiV1beta3HumanReviewLabelingMetadata {
1980
- /** Whether to enable normalization editing. */
1981
- enableNormalizationEditing?: boolean;
1982
- }
1983
1973
  interface GoogleCloudDocumentaiV1beta3HumanReviewStatus {
1984
1974
  /**
1985
1975
  * 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
@@ -1991,12 +1981,6 @@ declare namespace gapi.client {
1991
1981
  /** A message providing more details about the human review state. */
1992
1982
  stateMessage?: string;
1993
1983
  }
1994
- interface GoogleCloudDocumentaiV1beta3HumanReviewValidationMetadata {
1995
- /** The confidence threshold if human review validation is enabled. */
1996
- confidenceThreshold?: number;
1997
- /** Whether to enable human review validation. */
1998
- enableValidation?: boolean;
1999
- }
2000
1984
  interface GoogleCloudDocumentaiV1beta3ListProcessorsResponse {
2001
1985
  /** Points to the next processor, otherwise empty. */
2002
1986
  nextPageToken?: string;
@@ -2064,6 +2048,8 @@ declare namespace gapi.client {
2064
2048
  deprecationInfo?: GoogleCloudDocumentaiV1beta3ProcessorVersionDeprecationInfo;
2065
2049
  /** The display name of the processor version. */
2066
2050
  displayName?: string;
2051
+ /** The schema of the processor version. Describes the output. */
2052
+ documentSchema?: GoogleCloudDocumentaiV1beta3DocumentSchema;
2067
2053
  /** Denotes that this ProcessorVersion is managed by google. */
2068
2054
  googleManaged?: boolean;
2069
2055
  /** The KMS key name used for encryption. */
@@ -2108,14 +2094,8 @@ declare namespace gapi.client {
2108
2094
  humanReviewStatus?: GoogleCloudDocumentaiV1beta3HumanReviewStatus;
2109
2095
  }
2110
2096
  interface GoogleCloudDocumentaiV1beta3PropertyMetadata {
2111
- /** Human review labeling config on the property. */
2112
- humanReviewLabelingMetadata?: GoogleCloudDocumentaiV1beta3HumanReviewLabelingMetadata;
2113
- /** Human review validation config on the property. */
2114
- humanReviewMetadata?: GoogleCloudDocumentaiV1beta3HumanReviewValidationMetadata;
2115
2097
  /** Whether the property should be considered as "inactive". */
2116
2098
  inactive?: boolean;
2117
- /** Schema mutability metadata on the property. */
2118
- schemaMutabilityMetadata?: GoogleCloudDocumentaiV1beta3SchemaMutabilityMetadata;
2119
2099
  }
2120
2100
  interface GoogleCloudDocumentaiV1beta3RawDocument {
2121
2101
  /** Inline document content. */
@@ -2157,12 +2137,6 @@ declare namespace gapi.client {
2157
2137
  /** The state of the review operation. */
2158
2138
  state?: string;
2159
2139
  }
2160
- interface GoogleCloudDocumentaiV1beta3SchemaMutabilityMetadata {
2161
- /** Explicit flag that controls whether the label is editable. */
2162
- editable?: boolean;
2163
- /** Full resource name of processor versions that contain this label. e.g. `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` */
2164
- processorVersions?: string[];
2165
- }
2166
2140
  interface GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata {
2167
2141
  /** The basic metadata of the long running operation. */
2168
2142
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.documentai-v1beta3",
3
- "version": "0.0.20221023",
3
+ "version": "0.0.20221027",
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: 20221023
6
+ // Revision: 20221027
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -2622,20 +2622,7 @@ 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
- },
2632
2625
  inactive: true,
2633
- schemaMutabilityMetadata: {
2634
- editable: true,
2635
- processorVersions: [
2636
- "Test string"
2637
- ],
2638
- },
2639
2626
  },
2640
2627
  enumValues: {
2641
2628
  values: [
@@ -2648,20 +2635,7 @@ gapi.load('client', async () => {
2648
2635
  name: "Test string",
2649
2636
  occurrenceType: "Test string",
2650
2637
  propertyMetadata: {
2651
- humanReviewLabelingMetadata: {
2652
- enableNormalizationEditing: true,
2653
- },
2654
- humanReviewMetadata: {
2655
- confidenceThreshold: 42,
2656
- enableValidation: true,
2657
- },
2658
2638
  inactive: true,
2659
- schemaMutabilityMetadata: {
2660
- editable: true,
2661
- processorVersions: [
2662
- "Test string"
2663
- ],
2664
- },
2665
2639
  },
2666
2640
  valueType: "Test string",
2667
2641
  }