Skip to content

Commit fb8a09d

Browse files
feat(documentai): update the API
#### documentai:v1beta3 The following keys were added: - schemas.CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule.description - schemas.CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule.properties.ruleId.description - schemas.CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule.properties.ruleId.type The following keys were changed: - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.description - schemas.CloudAiDocumentaiLabHifiaToolsValidationValidatorInput.description #### documentai:v1 The following keys were added: - schemas.CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule.description - schemas.CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule.properties.ruleId.description - schemas.CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule.properties.ruleId.type The following keys were changed: - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.description - schemas.CloudAiDocumentaiLabHifiaToolsValidationValidatorInput.description
1 parent e4772ee commit fb8a09d

File tree

4 files changed

+36
-12
lines changed

4 files changed

+36
-12
lines changed

discovery/documentai-v1.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
198198
],
199199
"parameters": {
200200
"extraLocationTypes": {
201-
"description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.",
201+
"description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.",
202202
"location": "query",
203203
"repeated": true,
204204
"type": "string"
@@ -1392,11 +1392,11 @@
13921392
}
13931393
}
13941394
},
1395-
"revision": "20251020",
1395+
"revision": "20251030",
13961396
"rootUrl": "https://documentai.googleapis.com/",
13971397
"schemas": {
13981398
"CloudAiDocumentaiLabHifiaToolsValidationValidatorInput": {
1399-
"description": "Definition of the validation rules. Those are the input to the validator logic and they are used to validate a document.",
1399+
"description": "Definition of the validation rules. Those are the input to the validator logic and they are used to validate a document. Next ID: 3",
14001400
"id": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInput",
14011401
"properties": {
14021402
"validationRules": {
@@ -1409,6 +1409,7 @@
14091409
"type": "object"
14101410
},
14111411
"CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule": {
1412+
"description": "Next ID: 9",
14121413
"id": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule",
14131414
"properties": {
14141415
"childAlignmentRule": {
@@ -1433,6 +1434,10 @@
14331434
"name": {
14341435
"description": "Name of the validation rule.",
14351436
"type": "string"
1437+
},
1438+
"ruleId": {
1439+
"description": "Unique identifier of the rule. Optional.",
1440+
"type": "string"
14361441
}
14371442
},
14381443
"type": "object"

discovery/documentai-v1beta3.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169
],
170170
"parameters": {
171171
"extraLocationTypes": {
172-
"description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.",
172+
"description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.",
173173
"location": "query",
174174
"repeated": true,
175175
"type": "string"
@@ -1634,11 +1634,11 @@
16341634
}
16351635
}
16361636
},
1637-
"revision": "20251020",
1637+
"revision": "20251030",
16381638
"rootUrl": "https://documentai.googleapis.com/",
16391639
"schemas": {
16401640
"CloudAiDocumentaiLabHifiaToolsValidationValidatorInput": {
1641-
"description": "Definition of the validation rules. Those are the input to the validator logic and they are used to validate a document.",
1641+
"description": "Definition of the validation rules. Those are the input to the validator logic and they are used to validate a document. Next ID: 3",
16421642
"id": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInput",
16431643
"properties": {
16441644
"validationRules": {
@@ -1651,6 +1651,7 @@
16511651
"type": "object"
16521652
},
16531653
"CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule": {
1654+
"description": "Next ID: 9",
16541655
"id": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule",
16551656
"properties": {
16561657
"childAlignmentRule": {
@@ -1675,6 +1676,10 @@
16751676
"name": {
16761677
"description": "Name of the validation rule.",
16771678
"type": "string"
1679+
},
1680+
"ruleId": {
1681+
"description": "Unique identifier of the rule. Optional.",
1682+
"type": "string"
16781683
}
16791684
},
16801685
"type": "object"

src/apis/documentai/v1.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,14 @@ export namespace documentai_v1 {
127127
}
128128

129129
/**
130-
* Definition of the validation rules. Those are the input to the validator logic and they are used to validate a document.
130+
* Definition of the validation rules. Those are the input to the validator logic and they are used to validate a document. Next ID: 3
131131
*/
132132
export interface Schema$CloudAiDocumentaiLabHifiaToolsValidationValidatorInput {
133133
validationRules?: Schema$CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule[];
134134
}
135+
/**
136+
* Next ID: 9
137+
*/
135138
export interface Schema$CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule {
136139
childAlignmentRule?: Schema$CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule;
137140
/**
@@ -146,6 +149,10 @@ export namespace documentai_v1 {
146149
* Name of the validation rule.
147150
*/
148151
name?: string | null;
152+
/**
153+
* Unique identifier of the rule. Optional.
154+
*/
155+
ruleId?: string | null;
149156
}
150157
/**
151158
* A rule for checking field alignment. Horizontal alignment checks if fields are on the same row by comparing y-coordinates of bounding box centers, while vertical alignment checks if fields are on the same column by comparing x-coordinates of bounding box centers.
@@ -5821,7 +5828,7 @@ export namespace documentai_v1 {
58215828
*
58225829
* // Do the magic
58235830
* const res = await documentai.projects.locations.list({
5824-
* // Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
5831+
* // Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.
58255832
* extraLocationTypes: 'placeholder-value',
58265833
* // A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
58275834
* filter: 'placeholder-value',
@@ -5964,7 +5971,7 @@ export namespace documentai_v1 {
59645971
export interface Params$Resource$Projects$Locations$List
59655972
extends StandardParameters {
59665973
/**
5967-
* Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
5974+
* Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.
59685975
*/
59695976
extraLocationTypes?: string[];
59705977
/**

src/apis/documentai/v1beta3.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,14 @@ export namespace documentai_v1beta3 {
125125
}
126126

127127
/**
128-
* Definition of the validation rules. Those are the input to the validator logic and they are used to validate a document.
128+
* Definition of the validation rules. Those are the input to the validator logic and they are used to validate a document. Next ID: 3
129129
*/
130130
export interface Schema$CloudAiDocumentaiLabHifiaToolsValidationValidatorInput {
131131
validationRules?: Schema$CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule[];
132132
}
133+
/**
134+
* Next ID: 9
135+
*/
133136
export interface Schema$CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule {
134137
childAlignmentRule?: Schema$CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule;
135138
/**
@@ -144,6 +147,10 @@ export namespace documentai_v1beta3 {
144147
* Name of the validation rule.
145148
*/
146149
name?: string | null;
150+
/**
151+
* Unique identifier of the rule. Optional.
152+
*/
153+
ruleId?: string | null;
147154
}
148155
/**
149156
* A rule for checking field alignment. Horizontal alignment checks if fields are on the same row by comparing y-coordinates of bounding box centers, while vertical alignment checks if fields are on the same column by comparing x-coordinates of bounding box centers.
@@ -5658,7 +5665,7 @@ export namespace documentai_v1beta3 {
56585665
*
56595666
* // Do the magic
56605667
* const res = await documentai.projects.locations.list({
5661-
* // Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
5668+
* // Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.
56625669
* extraLocationTypes: 'placeholder-value',
56635670
* // A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
56645671
* filter: 'placeholder-value',
@@ -5801,7 +5808,7 @@ export namespace documentai_v1beta3 {
58015808
export interface Params$Resource$Projects$Locations$List
58025809
extends StandardParameters {
58035810
/**
5804-
* Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
5811+
* Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.
58055812
*/
58065813
extraLocationTypes?: string[];
58075814
/**

0 commit comments

Comments
 (0)