@maxim_mazurok/gapi.client.documentai-v1 0.0.20250819 → 0.1.20250820
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 +50 -20
- package/package.json +1 -1
- package/readme.md +2 -0
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: 20250820
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -24,6 +24,54 @@ declare namespace gapi.client {
|
|
|
24
24
|
function load(name: 'documentai', version: 'v1', callback: () => any): void;
|
|
25
25
|
|
|
26
26
|
namespace documentai {
|
|
27
|
+
interface CloudAiDocumentaiLabHifiaToolsValidationValidatorInput {
|
|
28
|
+
validationRules?: CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule[];
|
|
29
|
+
}
|
|
30
|
+
interface CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule {
|
|
31
|
+
/** Description of the validation rule. This has no use but for documentation */
|
|
32
|
+
description?: string;
|
|
33
|
+
fieldOccurrences?: CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences;
|
|
34
|
+
fieldRegex?: CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldRegex;
|
|
35
|
+
formValidation?: CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidation;
|
|
36
|
+
/** Name of the validation rule. */
|
|
37
|
+
name?: string;
|
|
38
|
+
}
|
|
39
|
+
interface CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleConstant {
|
|
40
|
+
floatValue?: number;
|
|
41
|
+
}
|
|
42
|
+
interface CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField {
|
|
43
|
+
/** Default value to use if the field is not present. If the field is missing and the default value is not set, the validation run as if the field is not present in the validation logic. */
|
|
44
|
+
defaultValue?: CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleConstant;
|
|
45
|
+
/** The field name to validate. This can be a simple field name or a nested field one using the ':' (meant as an aggregator) or '*' (meant as foreach) operators. */
|
|
46
|
+
fieldName?: string;
|
|
47
|
+
}
|
|
48
|
+
interface CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences {
|
|
49
|
+
field?: CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField;
|
|
50
|
+
maxOccurrences?: number;
|
|
51
|
+
/** Min and max occurrences of the field. If not set, there is limit set. The defined interval is a closed-closed interval, i.e. [min, max]. */
|
|
52
|
+
minOccurrences?: number;
|
|
53
|
+
}
|
|
54
|
+
interface CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldRegex {
|
|
55
|
+
field?: CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField;
|
|
56
|
+
/** Python regex to validate the field values. */
|
|
57
|
+
pattern?: string;
|
|
58
|
+
}
|
|
59
|
+
interface CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidation {
|
|
60
|
+
leftOperand?: CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidationOperation;
|
|
61
|
+
rightOperand?: CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidationOperation;
|
|
62
|
+
/** The relational operator to be applied to the operands. */
|
|
63
|
+
validationOperator?: string;
|
|
64
|
+
}
|
|
65
|
+
interface CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidationOperation {
|
|
66
|
+
/** A list of constants to be used as operands. */
|
|
67
|
+
constants?: CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleConstant[];
|
|
68
|
+
/** A list of fields to be used as operands. */
|
|
69
|
+
fields?: CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField[];
|
|
70
|
+
/** A list of recursive operations to be used as operands. */
|
|
71
|
+
operations?: CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidationOperation[];
|
|
72
|
+
/** The operation type to be applied to all the operands. */
|
|
73
|
+
operationType?: string;
|
|
74
|
+
}
|
|
27
75
|
interface GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata {
|
|
28
76
|
/** The basic metadata of the long-running operation. */
|
|
29
77
|
commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
|
|
@@ -674,8 +722,6 @@ declare namespace gapi.client {
|
|
|
674
722
|
textStyles?: GoogleCloudDocumentaiV1DocumentStyle[];
|
|
675
723
|
/** Optional. Currently supports Google Cloud Storage URI of the form `gs://bucket_name/object_name`. Object versioning is not supported. For more information, refer to [Google Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-uris). */
|
|
676
724
|
uri?: string;
|
|
677
|
-
/** The output of the validation given the document and the validation rules. The output is appended to the document in the processing order. */
|
|
678
|
-
validationOutputs?: GoogleCloudDocumentaiV1DocumentValidationOutput[];
|
|
679
725
|
}
|
|
680
726
|
interface GoogleCloudDocumentaiV1DocumentChunkedDocument {
|
|
681
727
|
/** List of chunks. */
|
|
@@ -1230,22 +1276,6 @@ declare namespace gapi.client {
|
|
|
1230
1276
|
/** Provenance of the correction. Text anchor indexing into the Document.text. There can only be a single `TextAnchor.text_segments` element. If the start and end index of the text segment are the same, the text change is inserted before that index. */
|
|
1231
1277
|
textAnchor?: GoogleCloudDocumentaiV1DocumentTextAnchor;
|
|
1232
1278
|
}
|
|
1233
|
-
interface GoogleCloudDocumentaiV1DocumentValidationOutput {
|
|
1234
|
-
/** The overall result of the validation, true if all applicable rules are valid. */
|
|
1235
|
-
passAllRules?: boolean;
|
|
1236
|
-
/** The result of each validation rule. */
|
|
1237
|
-
validationResults?: GoogleCloudDocumentaiV1DocumentValidationOutputValidationResult[];
|
|
1238
|
-
}
|
|
1239
|
-
interface GoogleCloudDocumentaiV1DocumentValidationOutputValidationResult {
|
|
1240
|
-
/** The description of the validation rule. */
|
|
1241
|
-
ruleDescription?: string;
|
|
1242
|
-
/** The name of the validation rule. */
|
|
1243
|
-
ruleName?: string;
|
|
1244
|
-
/** The detailed information of the running the validation process using the entity from the document based on the validation rule. */
|
|
1245
|
-
validationDetails?: string;
|
|
1246
|
-
/** The result of the validation rule. */
|
|
1247
|
-
validationResultType?: string;
|
|
1248
|
-
}
|
|
1249
1279
|
interface GoogleCloudDocumentaiV1EnableProcessorMetadata {
|
|
1250
1280
|
/** The basic metadata of the long-running operation. */
|
|
1251
1281
|
commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
|
|
@@ -3056,7 +3086,7 @@ declare namespace gapi.client {
|
|
|
3056
3086
|
alt?: string;
|
|
3057
3087
|
/** JSONP */
|
|
3058
3088
|
callback?: string;
|
|
3059
|
-
/** Optional.
|
|
3089
|
+
/** Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage. */
|
|
3060
3090
|
extraLocationTypes?: string | string[];
|
|
3061
3091
|
/** Selector specifying which fields to include in a partial response. */
|
|
3062
3092
|
fields?: string;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -74,3 +74,5 @@ Deletes a long-running operation. This method indicates that the client is no lo
|
|
|
74
74
|
*/
|
|
75
75
|
await gapi.client.documentai.operations.delete({name: 'name'});
|
|
76
76
|
```
|
|
77
|
+
|
|
78
|
+
For provenance information see [Provenance section on NPM](https://www.npmjs.com/package/@maxim_mazurok/gapi.client.documentai-v1#Provenance:~:text=none-,Provenance,-Built%20and%20signed)
|