@maxim_mazurok/gapi.client.documentai-v1beta3 0.0.20230605 → 0.0.20230619
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 +39 -31
- package/package.json +1 -1
- package/tests.ts +6 -3
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:
|
|
12
|
+
// Revision: 20230619
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -148,7 +148,7 @@ declare namespace gapi.client {
|
|
|
148
148
|
interface GoogleCloudDocumentaiUiv1beta3DisableProcessorResponse {
|
|
149
149
|
}
|
|
150
150
|
interface GoogleCloudDocumentaiUiv1beta3DocumentId {
|
|
151
|
-
/** A document id within user
|
|
151
|
+
/** A document id within user-managed Cloud Storage. */
|
|
152
152
|
gcsManagedDocId?:
|
|
153
153
|
GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId;
|
|
154
154
|
/** Points to a specific revision of the document if set. */
|
|
@@ -162,7 +162,7 @@ declare namespace gapi.client {
|
|
|
162
162
|
/** Id of the document (indexed) managed by Content Warehouse. */
|
|
163
163
|
cwDocId?:
|
|
164
164
|
string;
|
|
165
|
-
/** Required. The Cloud Storage
|
|
165
|
+
/** Required. The Cloud Storage URI where the actual document is stored. */
|
|
166
166
|
gcsUri?:
|
|
167
167
|
string;
|
|
168
168
|
}
|
|
@@ -613,7 +613,7 @@ declare namespace gapi.client {
|
|
|
613
613
|
/** Rendered image for this page. This image is preprocessed to remove any skew, rotation, and distortions such that the annotation bounding boxes can be upright and axis-aligned. */
|
|
614
614
|
image?:
|
|
615
615
|
GoogleCloudDocumentaiV1beta1DocumentPageImage;
|
|
616
|
-
/** Image
|
|
616
|
+
/** Image quality scores. */
|
|
617
617
|
imageQualityScores?:
|
|
618
618
|
GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores;
|
|
619
619
|
/** Layout for the page. */
|
|
@@ -762,7 +762,7 @@ declare namespace gapi.client {
|
|
|
762
762
|
number;
|
|
763
763
|
}
|
|
764
764
|
interface GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect {
|
|
765
|
-
/** Confidence of detected defect. Range `[0, 1]` where `1` indicates strong confidence
|
|
765
|
+
/** Confidence of detected defect. Range `[0, 1]` where `1` indicates strong confidence that the defect exists. */
|
|
766
766
|
confidence?:
|
|
767
767
|
number;
|
|
768
768
|
/**
|
|
@@ -1052,7 +1052,7 @@ declare namespace gapi.client {
|
|
|
1052
1052
|
/** Font size for the text. */
|
|
1053
1053
|
size?:
|
|
1054
1054
|
number;
|
|
1055
|
-
/** Unit for the font size. Follows CSS naming (`in`, `px`, `pt
|
|
1055
|
+
/** Unit for the font size. Follows CSS naming (such as `in`, `px`, and `pt`). */
|
|
1056
1056
|
unit?:
|
|
1057
1057
|
string;
|
|
1058
1058
|
}
|
|
@@ -1348,7 +1348,7 @@ declare namespace gapi.client {
|
|
|
1348
1348
|
/** Rendered image for this page. This image is preprocessed to remove any skew, rotation, and distortions such that the annotation bounding boxes can be upright and axis-aligned. */
|
|
1349
1349
|
image?:
|
|
1350
1350
|
GoogleCloudDocumentaiV1beta2DocumentPageImage;
|
|
1351
|
-
/** Image
|
|
1351
|
+
/** Image quality scores. */
|
|
1352
1352
|
imageQualityScores?:
|
|
1353
1353
|
GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores;
|
|
1354
1354
|
/** Layout for the page. */
|
|
@@ -1497,7 +1497,7 @@ declare namespace gapi.client {
|
|
|
1497
1497
|
number;
|
|
1498
1498
|
}
|
|
1499
1499
|
interface GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect {
|
|
1500
|
-
/** Confidence of detected defect. Range `[0, 1]` where `1` indicates strong confidence
|
|
1500
|
+
/** Confidence of detected defect. Range `[0, 1]` where `1` indicates strong confidence that the defect exists. */
|
|
1501
1501
|
confidence?:
|
|
1502
1502
|
number;
|
|
1503
1503
|
/**
|
|
@@ -1787,7 +1787,7 @@ declare namespace gapi.client {
|
|
|
1787
1787
|
/** Font size for the text. */
|
|
1788
1788
|
size?:
|
|
1789
1789
|
number;
|
|
1790
|
-
/** Unit for the font size. Follows CSS naming (`in`, `px`, `pt
|
|
1790
|
+
/** Unit for the font size. Follows CSS naming (such as `in`, `px`, and `pt`). */
|
|
1791
1791
|
unit?:
|
|
1792
1792
|
string;
|
|
1793
1793
|
}
|
|
@@ -1977,7 +1977,7 @@ declare namespace gapi.client {
|
|
|
1977
1977
|
/** Inference-time options for the process API */
|
|
1978
1978
|
processOptions?:
|
|
1979
1979
|
GoogleCloudDocumentaiV1beta3ProcessOptions;
|
|
1980
|
-
/** Whether
|
|
1980
|
+
/** Whether human review should be skipped for this request. Default to `false`. */
|
|
1981
1981
|
skipHumanReview?:
|
|
1982
1982
|
boolean;
|
|
1983
1983
|
}
|
|
@@ -2026,35 +2026,35 @@ declare namespace gapi.client {
|
|
|
2026
2026
|
string;
|
|
2027
2027
|
}
|
|
2028
2028
|
interface GoogleCloudDocumentaiV1beta3Dataset {
|
|
2029
|
-
/** Optional. Document Warehouse-based dataset
|
|
2029
|
+
/** Optional. Document AI Warehouse-based dataset configuration. */
|
|
2030
2030
|
documentWarehouseConfig?:
|
|
2031
2031
|
GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig;
|
|
2032
|
-
/** Optional. User
|
|
2032
|
+
/** Optional. User-managed Cloud Storage dataset configuration. Use this configuration if the dataset documents are stored under a user-managed Cloud Storage location. */
|
|
2033
2033
|
gcsManagedConfig?:
|
|
2034
2034
|
GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig;
|
|
2035
2035
|
/** Dataset resource name. Format: `projects/{project}/locations/{location}/processors/{processor}/dataset` */
|
|
2036
2036
|
name?:
|
|
2037
2037
|
string;
|
|
2038
|
-
/** Optional. A lightweight indexing source with low latency and high reliability, but
|
|
2038
|
+
/** Optional. A lightweight indexing source with low latency and high reliability, but lacking advanced features like CMEK and content-based search. */
|
|
2039
2039
|
spannerIndexingConfig?:
|
|
2040
2040
|
any;
|
|
2041
|
-
/** Required. State of the dataset.
|
|
2041
|
+
/** Required. State of the dataset. Ignored when updating dataset. */
|
|
2042
2042
|
state?:
|
|
2043
2043
|
string;
|
|
2044
|
-
/** Optional. Unmanaged dataset
|
|
2044
|
+
/** Optional. Unmanaged dataset configuration. Use this configuration if the dataset documents are managed by the document service internally (not user-managed). */
|
|
2045
2045
|
unmanagedDatasetConfig?:
|
|
2046
2046
|
any;
|
|
2047
2047
|
}
|
|
2048
2048
|
interface GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig {
|
|
2049
|
-
/** Output only. The collection in Document Warehouse associated with the dataset. */
|
|
2049
|
+
/** Output only. The collection in Document AI Warehouse associated with the dataset. */
|
|
2050
2050
|
collection?:
|
|
2051
2051
|
string;
|
|
2052
|
-
/** Output only. The schema in Document Warehouse associated with the dataset. */
|
|
2052
|
+
/** Output only. The schema in Document AI Warehouse associated with the dataset. */
|
|
2053
2053
|
schema?:
|
|
2054
2054
|
string;
|
|
2055
2055
|
}
|
|
2056
2056
|
interface GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig {
|
|
2057
|
-
/** Required. The Cloud Storage
|
|
2057
|
+
/** Required. The Cloud Storage URI (a directory) where the documents belonging to the dataset must be stored. */
|
|
2058
2058
|
gcsPrefix?:
|
|
2059
2059
|
GoogleCloudDocumentaiV1beta3GcsPrefix;
|
|
2060
2060
|
}
|
|
@@ -2277,7 +2277,7 @@ declare namespace gapi.client {
|
|
|
2277
2277
|
/** Rendered image for this page. This image is preprocessed to remove any skew, rotation, and distortions such that the annotation bounding boxes can be upright and axis-aligned. */
|
|
2278
2278
|
image?:
|
|
2279
2279
|
GoogleCloudDocumentaiV1beta3DocumentPageImage;
|
|
2280
|
-
/** Image
|
|
2280
|
+
/** Image quality scores. */
|
|
2281
2281
|
imageQualityScores?:
|
|
2282
2282
|
GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScores;
|
|
2283
2283
|
/** Layout for the page. */
|
|
@@ -2426,7 +2426,7 @@ declare namespace gapi.client {
|
|
|
2426
2426
|
number;
|
|
2427
2427
|
}
|
|
2428
2428
|
interface GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScoresDetectedDefect {
|
|
2429
|
-
/** Confidence of detected defect. Range `[0, 1]` where `1` indicates strong confidence
|
|
2429
|
+
/** Confidence of detected defect. Range `[0, 1]` where `1` indicates strong confidence that the defect exists. */
|
|
2430
2430
|
confidence?:
|
|
2431
2431
|
number;
|
|
2432
2432
|
/**
|
|
@@ -2706,10 +2706,10 @@ declare namespace gapi.client {
|
|
|
2706
2706
|
enumValues?:
|
|
2707
2707
|
GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeEnumValues;
|
|
2708
2708
|
/**
|
|
2709
|
-
* Name of the type. It must be unique within the schema file and cannot be a "Common Type". The following naming conventions are used: - Use `snake_casing
|
|
2710
|
-
* case-sensitive - Maximum 64 characters. - Must start with a letter. - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward compatibility internal infrastructure and
|
|
2711
|
-
* can handle any ascii character) - The `/` is sometimes used to denote a property of a type. For example `line_item/amount`. This convention is deprecated, but will still be
|
|
2712
|
-
* for backward compatibility.
|
|
2709
|
+
* Name of the type. It must be unique within the schema file and cannot be a "Common Type". The following naming conventions are used: - Use `snake_casing`. - Name matching is
|
|
2710
|
+
* case-sensitive. - Maximum 64 characters. - Must start with a letter. - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward compatibility internal infrastructure and
|
|
2711
|
+
* tooling can handle any ascii character.) - The `/` is sometimes used to denote a property of a type. For example `line_item/amount`. This convention is deprecated, but will still be
|
|
2712
|
+
* honored for backward compatibility.
|
|
2713
2713
|
*/
|
|
2714
2714
|
name?:
|
|
2715
2715
|
string;
|
|
@@ -2794,7 +2794,7 @@ declare namespace gapi.client {
|
|
|
2794
2794
|
/** Font size for the text. */
|
|
2795
2795
|
size?:
|
|
2796
2796
|
number;
|
|
2797
|
-
/** Unit for the font size. Follows CSS naming (`in`, `px`, `pt
|
|
2797
|
+
/** Unit for the font size. Follows CSS naming (such as `in`, `px`, and `pt`). */
|
|
2798
2798
|
unit?:
|
|
2799
2799
|
string;
|
|
2800
2800
|
}
|
|
@@ -2840,7 +2840,7 @@ declare namespace gapi.client {
|
|
|
2840
2840
|
interface GoogleCloudDocumentaiV1beta3EnableProcessorResponse {
|
|
2841
2841
|
}
|
|
2842
2842
|
interface GoogleCloudDocumentaiV1beta3EntityTypeMetadata {
|
|
2843
|
-
/** Whether the entity type should be considered
|
|
2843
|
+
/** Whether the entity type should be considered inactive. */
|
|
2844
2844
|
inactive?:
|
|
2845
2845
|
boolean;
|
|
2846
2846
|
}
|
|
@@ -3118,7 +3118,7 @@ declare namespace gapi.client {
|
|
|
3118
3118
|
/** The display name of the processor. */
|
|
3119
3119
|
displayName?:
|
|
3120
3120
|
string;
|
|
3121
|
-
/** The [KMS key](https://cloud.google.com/security-key-management) used for encryption
|
|
3121
|
+
/** The [KMS key](https://cloud.google.com/security-key-management) used for encryption and decryption in CMEK scenarios. */
|
|
3122
3122
|
kmsKeyName?:
|
|
3123
3123
|
string;
|
|
3124
3124
|
/** Output only. Immutable. The resource name of the processor. Format: `projects/{project}/locations/{location}/processors/{processor}` */
|
|
@@ -3158,7 +3158,7 @@ declare namespace gapi.client {
|
|
|
3158
3158
|
string;
|
|
3159
3159
|
}
|
|
3160
3160
|
interface GoogleCloudDocumentaiV1beta3ProcessorTypeLocationInfo {
|
|
3161
|
-
/** The location
|
|
3161
|
+
/** The location ID. For supported locations, refer to [regional and multi-regional support](/document-ai/docs/regions). */
|
|
3162
3162
|
locationId?:
|
|
3163
3163
|
string;
|
|
3164
3164
|
}
|
|
@@ -3221,7 +3221,7 @@ declare namespace gapi.client {
|
|
|
3221
3221
|
/** A raw document content (bytes). */
|
|
3222
3222
|
rawDocument?:
|
|
3223
3223
|
GoogleCloudDocumentaiV1beta3RawDocument;
|
|
3224
|
-
/** Whether
|
|
3224
|
+
/** Whether human review should be skipped for this request. Default to `false`. */
|
|
3225
3225
|
skipHumanReview?:
|
|
3226
3226
|
boolean;
|
|
3227
3227
|
}
|
|
@@ -3345,6 +3345,9 @@ declare namespace gapi.client {
|
|
|
3345
3345
|
*/
|
|
3346
3346
|
baseProcessorVersion?:
|
|
3347
3347
|
string;
|
|
3348
|
+
/** Options to control Custom Document Extraction (CDE) Processor. */
|
|
3349
|
+
customDocumentExtractionOptions?:
|
|
3350
|
+
GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestCustomDocumentExtractionOptions;
|
|
3348
3351
|
/** Optional. The schema the processor version will be trained with. */
|
|
3349
3352
|
documentSchema?:
|
|
3350
3353
|
GoogleCloudDocumentaiV1beta3DocumentSchema;
|
|
@@ -3355,6 +3358,11 @@ declare namespace gapi.client {
|
|
|
3355
3358
|
processorVersion?:
|
|
3356
3359
|
GoogleCloudDocumentaiV1beta3ProcessorVersion;
|
|
3357
3360
|
}
|
|
3361
|
+
interface GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestCustomDocumentExtractionOptions {
|
|
3362
|
+
/** Training method to use for CDE training. */
|
|
3363
|
+
trainingMethod?:
|
|
3364
|
+
string;
|
|
3365
|
+
}
|
|
3358
3366
|
interface GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestInputData {
|
|
3359
3367
|
/** The documents used for testing the trained version. */
|
|
3360
3368
|
testDocuments?:
|
|
@@ -3884,7 +3892,7 @@ declare namespace gapi.client {
|
|
|
3884
3892
|
}): Request<GoogleLongrunningListOperationsResponse>;
|
|
3885
3893
|
}
|
|
3886
3894
|
interface DatasetResource {
|
|
3887
|
-
/** Gets the DatasetSchema of a Dataset
|
|
3895
|
+
/** Gets the `DatasetSchema` of a `Dataset`. */
|
|
3888
3896
|
getDatasetSchema(request?: {
|
|
3889
3897
|
/** V1 error format. */
|
|
3890
3898
|
"$.xgafv"?:
|
|
@@ -3926,7 +3934,7 @@ declare namespace gapi.client {
|
|
|
3926
3934
|
visibleFieldsOnly?:
|
|
3927
3935
|
boolean;
|
|
3928
3936
|
}): Request<GoogleCloudDocumentaiV1beta3DatasetSchema>;
|
|
3929
|
-
/** Updates a DatasetSchema
|
|
3937
|
+
/** Updates a `DatasetSchema`. */
|
|
3930
3938
|
updateDatasetSchema(request: {
|
|
3931
3939
|
/** V1 error format. */
|
|
3932
3940
|
"$.xgafv"?:
|
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: 20230619
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -1897,12 +1897,12 @@ gapi.load('client', async () => {
|
|
|
1897
1897
|
unmanagedDatasetConfig: {
|
|
1898
1898
|
},
|
|
1899
1899
|
});
|
|
1900
|
-
/** Gets the DatasetSchema of a Dataset
|
|
1900
|
+
/** Gets the `DatasetSchema` of a `Dataset`. */
|
|
1901
1901
|
await gapi.client.documentai.projects.locations.processors.dataset.getDatasetSchema({
|
|
1902
1902
|
name: "Test string",
|
|
1903
1903
|
visibleFieldsOnly: true,
|
|
1904
1904
|
});
|
|
1905
|
-
/** Updates a DatasetSchema
|
|
1905
|
+
/** Updates a `DatasetSchema`. */
|
|
1906
1906
|
await gapi.client.documentai.projects.locations.processors.dataset.updateDatasetSchema({
|
|
1907
1907
|
name: "Test string",
|
|
1908
1908
|
updateMask: "Test string",
|
|
@@ -5495,6 +5495,9 @@ gapi.load('client', async () => {
|
|
|
5495
5495
|
parent: "Test string",
|
|
5496
5496
|
}, {
|
|
5497
5497
|
baseProcessorVersion: "Test string",
|
|
5498
|
+
customDocumentExtractionOptions: {
|
|
5499
|
+
trainingMethod: "Test string",
|
|
5500
|
+
},
|
|
5498
5501
|
documentSchema: {
|
|
5499
5502
|
description: "Test string",
|
|
5500
5503
|
displayName: "Test string",
|