@maxim_mazurok/gapi.client.documentai-v1 0.0.20221106 → 0.0.20221108

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 -31
  2. package/package.json +1 -1
  3. package/tests.ts +1 -21
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: 20221106
12
+ // Revision: 20221108
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -1910,8 +1910,6 @@ declare namespace gapi.client {
1910
1910
  baseTypes?: string[];
1911
1911
  /** User defined name for the type. */
1912
1912
  displayName?: string;
1913
- /** Metadata for the entity type. */
1914
- entityTypeMetadata?: GoogleCloudDocumentaiV1EntityTypeMetadata;
1915
1913
  /**
1916
1914
  * If specified, lists all the possible values for this entity. This should not be more than a handful of values. If the number of values is >10 or could change frequently use the
1917
1915
  * `EntityType.value_ontology` field and specify a list of all possible values in a value ontology file.
@@ -1936,8 +1934,6 @@ declare namespace gapi.client {
1936
1934
  name?: string;
1937
1935
  /** Occurrence type limits the number of instances an entity type appears in the document. */
1938
1936
  occurrenceType?: string;
1939
- /** Any additional metadata about the property can be added here. */
1940
- propertyMetadata?: GoogleCloudDocumentaiV1PropertyMetadata;
1941
1937
  /** A reference to the value type of the property. This type is subject to the same conventions as the `Entity.base_types` field. */
1942
1938
  valueType?: string;
1943
1939
  }
@@ -2019,14 +2015,6 @@ declare namespace gapi.client {
2019
2015
  // tslint:disable-next-line:no-empty-interface
2020
2016
  interface GoogleCloudDocumentaiV1EnableProcessorResponse {
2021
2017
  }
2022
- interface GoogleCloudDocumentaiV1EntityTypeMetadata {
2023
- /** Human review labeling config on the property. */
2024
- humanReviewLabelingMetadata?: GoogleCloudDocumentaiV1HumanReviewLabelingMetadata;
2025
- /** Human review config on the entity type. */
2026
- humanReviewMetadata?: GoogleCloudDocumentaiV1HumanReviewValidationMetadata;
2027
- /** Whether the entity type should be considered as "inactive". */
2028
- inactive?: boolean;
2029
- }
2030
2018
  interface GoogleCloudDocumentaiV1FetchProcessorTypesResponse {
2031
2019
  /** The list of processor types. */
2032
2020
  processorTypes?: GoogleCloudDocumentaiV1ProcessorType[];
@@ -2045,10 +2033,6 @@ declare namespace gapi.client {
2045
2033
  /** The URI prefix. */
2046
2034
  gcsUriPrefix?: string;
2047
2035
  }
2048
- interface GoogleCloudDocumentaiV1HumanReviewLabelingMetadata {
2049
- /** Whether to enable normalization editing. */
2050
- enableNormalizationEditing?: boolean;
2051
- }
2052
2036
  interface GoogleCloudDocumentaiV1HumanReviewStatus {
2053
2037
  /**
2054
2038
  * 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
@@ -2060,12 +2044,6 @@ declare namespace gapi.client {
2060
2044
  /** A message providing more details about the human review state. */
2061
2045
  stateMessage?: string;
2062
2046
  }
2063
- interface GoogleCloudDocumentaiV1HumanReviewValidationMetadata {
2064
- /** The confidence threshold if human review validation is enabled. */
2065
- confidenceThreshold?: number;
2066
- /** Whether to enable human review validation. */
2067
- enableValidation?: boolean;
2068
- }
2069
2047
  interface GoogleCloudDocumentaiV1ListProcessorsResponse {
2070
2048
  /** Points to the next processor, otherwise empty. */
2071
2049
  nextPageToken?: string;
@@ -2133,6 +2111,8 @@ declare namespace gapi.client {
2133
2111
  deprecationInfo?: GoogleCloudDocumentaiV1ProcessorVersionDeprecationInfo;
2134
2112
  /** The display name of the processor version. */
2135
2113
  displayName?: string;
2114
+ /** The schema of the processor version. Describes the output. */
2115
+ documentSchema?: GoogleCloudDocumentaiV1DocumentSchema;
2136
2116
  /** Denotes that this ProcessorVersion is managed by google. */
2137
2117
  googleManaged?: boolean;
2138
2118
  /** The KMS key name used for encryption. */
@@ -2169,14 +2149,6 @@ declare namespace gapi.client {
2169
2149
  /** The status of human review on the processed document. */
2170
2150
  humanReviewStatus?: GoogleCloudDocumentaiV1HumanReviewStatus;
2171
2151
  }
2172
- interface GoogleCloudDocumentaiV1PropertyMetadata {
2173
- /** Human review labeling config on the property. */
2174
- humanReviewLabelingMetadata?: GoogleCloudDocumentaiV1HumanReviewLabelingMetadata;
2175
- /** Human review validation config on the property. */
2176
- humanReviewMetadata?: GoogleCloudDocumentaiV1HumanReviewValidationMetadata;
2177
- /** Whether the property should be considered as "inactive". */
2178
- inactive?: boolean;
2179
- }
2180
2152
  interface GoogleCloudDocumentaiV1RawDocument {
2181
2153
  /** Inline document content. */
2182
2154
  content?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.documentai-v1",
3
- "version": "0.0.20221106",
3
+ "version": "0.0.20221108",
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: 20221106
6
+ // Revision: 20221108
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -985,16 +985,6 @@ gapi.load('client', async () => {
985
985
  "Test string"
986
986
  ],
987
987
  displayName: "Test string",
988
- entityTypeMetadata: {
989
- humanReviewLabelingMetadata: {
990
- enableNormalizationEditing: true,
991
- },
992
- humanReviewMetadata: {
993
- confidenceThreshold: 42,
994
- enableValidation: true,
995
- },
996
- inactive: true,
997
- },
998
988
  enumValues: {
999
989
  values: [
1000
990
  "Test string"
@@ -1005,16 +995,6 @@ gapi.load('client', async () => {
1005
995
  {
1006
996
  name: "Test string",
1007
997
  occurrenceType: "Test string",
1008
- propertyMetadata: {
1009
- humanReviewLabelingMetadata: {
1010
- enableNormalizationEditing: true,
1011
- },
1012
- humanReviewMetadata: {
1013
- confidenceThreshold: 42,
1014
- enableValidation: true,
1015
- },
1016
- inactive: true,
1017
- },
1018
998
  valueType: "Test string",
1019
999
  }
1020
1000
  ],