@maxim_mazurok/gapi.client.documentai-v1 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.
- package/index.d.ts +3 -29
- package/package.json +1 -1
- 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=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20221027
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -2020,14 +2020,8 @@ declare namespace gapi.client {
|
|
|
2020
2020
|
interface GoogleCloudDocumentaiV1EnableProcessorResponse {
|
|
2021
2021
|
}
|
|
2022
2022
|
interface GoogleCloudDocumentaiV1EntityTypeMetadata {
|
|
2023
|
-
/** Human review labeling config on the entity. */
|
|
2024
|
-
humanReviewLabelingMetadata?: GoogleCloudDocumentaiV1HumanReviewLabelingMetadata;
|
|
2025
|
-
/** Human review config on the entity. */
|
|
2026
|
-
humanReviewMetadata?: GoogleCloudDocumentaiV1HumanReviewValidationMetadata;
|
|
2027
2023
|
/** Whether the entity type should be considered as "inactive". */
|
|
2028
2024
|
inactive?: boolean;
|
|
2029
|
-
/** Schema mutability metadata on the entity. */
|
|
2030
|
-
schemaMutabilityMetadata?: GoogleCloudDocumentaiV1SchemaMutabilityMetadata;
|
|
2031
2025
|
}
|
|
2032
2026
|
interface GoogleCloudDocumentaiV1FetchProcessorTypesResponse {
|
|
2033
2027
|
/** The list of processor types. */
|
|
@@ -2047,10 +2041,6 @@ declare namespace gapi.client {
|
|
|
2047
2041
|
/** The URI prefix. */
|
|
2048
2042
|
gcsUriPrefix?: string;
|
|
2049
2043
|
}
|
|
2050
|
-
interface GoogleCloudDocumentaiV1HumanReviewLabelingMetadata {
|
|
2051
|
-
/** Whether to enable normalization editing. */
|
|
2052
|
-
enableNormalizationEditing?: boolean;
|
|
2053
|
-
}
|
|
2054
2044
|
interface GoogleCloudDocumentaiV1HumanReviewStatus {
|
|
2055
2045
|
/**
|
|
2056
2046
|
* 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
|
|
@@ -2062,12 +2052,6 @@ declare namespace gapi.client {
|
|
|
2062
2052
|
/** A message providing more details about the human review state. */
|
|
2063
2053
|
stateMessage?: string;
|
|
2064
2054
|
}
|
|
2065
|
-
interface GoogleCloudDocumentaiV1HumanReviewValidationMetadata {
|
|
2066
|
-
/** The confidence threshold if human review validation is enabled. */
|
|
2067
|
-
confidenceThreshold?: number;
|
|
2068
|
-
/** Whether to enable human review validation. */
|
|
2069
|
-
enableValidation?: boolean;
|
|
2070
|
-
}
|
|
2071
2055
|
interface GoogleCloudDocumentaiV1ListProcessorsResponse {
|
|
2072
2056
|
/** Points to the next processor, otherwise empty. */
|
|
2073
2057
|
nextPageToken?: string;
|
|
@@ -2135,6 +2119,8 @@ declare namespace gapi.client {
|
|
|
2135
2119
|
deprecationInfo?: GoogleCloudDocumentaiV1ProcessorVersionDeprecationInfo;
|
|
2136
2120
|
/** The display name of the processor version. */
|
|
2137
2121
|
displayName?: string;
|
|
2122
|
+
/** The schema of the processor version. Describes the output. */
|
|
2123
|
+
documentSchema?: GoogleCloudDocumentaiV1DocumentSchema;
|
|
2138
2124
|
/** Denotes that this ProcessorVersion is managed by google. */
|
|
2139
2125
|
googleManaged?: boolean;
|
|
2140
2126
|
/** The KMS key name used for encryption. */
|
|
@@ -2172,14 +2158,8 @@ declare namespace gapi.client {
|
|
|
2172
2158
|
humanReviewStatus?: GoogleCloudDocumentaiV1HumanReviewStatus;
|
|
2173
2159
|
}
|
|
2174
2160
|
interface GoogleCloudDocumentaiV1PropertyMetadata {
|
|
2175
|
-
/** Human review labeling config on the property. */
|
|
2176
|
-
humanReviewLabelingMetadata?: GoogleCloudDocumentaiV1HumanReviewLabelingMetadata;
|
|
2177
|
-
/** Human review validation config on the property. */
|
|
2178
|
-
humanReviewMetadata?: GoogleCloudDocumentaiV1HumanReviewValidationMetadata;
|
|
2179
2161
|
/** Whether the property should be considered as "inactive". */
|
|
2180
2162
|
inactive?: boolean;
|
|
2181
|
-
/** Schema mutability metadata on the property. */
|
|
2182
|
-
schemaMutabilityMetadata?: GoogleCloudDocumentaiV1SchemaMutabilityMetadata;
|
|
2183
2163
|
}
|
|
2184
2164
|
interface GoogleCloudDocumentaiV1RawDocument {
|
|
2185
2165
|
/** Inline document content. */
|
|
@@ -2211,12 +2191,6 @@ declare namespace gapi.client {
|
|
|
2211
2191
|
/** The state of the review operation. */
|
|
2212
2192
|
state?: string;
|
|
2213
2193
|
}
|
|
2214
|
-
interface GoogleCloudDocumentaiV1SchemaMutabilityMetadata {
|
|
2215
|
-
/** Explicit flag that controls whether the label is editable. */
|
|
2216
|
-
editable?: boolean;
|
|
2217
|
-
/** Full resource name of processor versions that contain this label. e.g. `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` */
|
|
2218
|
-
processorVersions?: string[];
|
|
2219
|
-
}
|
|
2220
2194
|
interface GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata {
|
|
2221
2195
|
/** The basic metadata of the long running operation. */
|
|
2222
2196
|
commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
|
package/package.json
CHANGED
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:
|
|
6
|
+
// Revision: 20221027
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -986,20 +986,7 @@ gapi.load('client', async () => {
|
|
|
986
986
|
],
|
|
987
987
|
displayName: "Test string",
|
|
988
988
|
entityTypeMetadata: {
|
|
989
|
-
humanReviewLabelingMetadata: {
|
|
990
|
-
enableNormalizationEditing: true,
|
|
991
|
-
},
|
|
992
|
-
humanReviewMetadata: {
|
|
993
|
-
confidenceThreshold: 42,
|
|
994
|
-
enableValidation: true,
|
|
995
|
-
},
|
|
996
989
|
inactive: true,
|
|
997
|
-
schemaMutabilityMetadata: {
|
|
998
|
-
editable: true,
|
|
999
|
-
processorVersions: [
|
|
1000
|
-
"Test string"
|
|
1001
|
-
],
|
|
1002
|
-
},
|
|
1003
990
|
},
|
|
1004
991
|
enumValues: {
|
|
1005
992
|
values: [
|
|
@@ -1012,20 +999,7 @@ gapi.load('client', async () => {
|
|
|
1012
999
|
name: "Test string",
|
|
1013
1000
|
occurrenceType: "Test string",
|
|
1014
1001
|
propertyMetadata: {
|
|
1015
|
-
humanReviewLabelingMetadata: {
|
|
1016
|
-
enableNormalizationEditing: true,
|
|
1017
|
-
},
|
|
1018
|
-
humanReviewMetadata: {
|
|
1019
|
-
confidenceThreshold: 42,
|
|
1020
|
-
enableValidation: true,
|
|
1021
|
-
},
|
|
1022
1002
|
inactive: true,
|
|
1023
|
-
schemaMutabilityMetadata: {
|
|
1024
|
-
editable: true,
|
|
1025
|
-
processorVersions: [
|
|
1026
|
-
"Test string"
|
|
1027
|
-
],
|
|
1028
|
-
},
|
|
1029
1003
|
},
|
|
1030
1004
|
valueType: "Test string",
|
|
1031
1005
|
}
|