@maxim_mazurok/gapi.client.documentai-v1beta3 0.1.20250922 → 0.1.20251013

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 (2) hide show
  1. package/index.d.ts +57 -1
  2. package/package.json +1 -1
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: 20250922
12
+ // Revision: 20251013
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -32,17 +32,38 @@ declare namespace gapi.client {
32
32
  validationRules?: CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule[];
33
33
  }
34
34
  interface CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule {
35
+ childAlignmentRule?: CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule;
35
36
  /** Description of the validation rule. This has no use but for documentation */
36
37
  description?: string;
38
+ entityAlignmentRule?: CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAlignmentRule;
37
39
  fieldOccurrences?: CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences;
38
40
  fieldRegex?: CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldRegex;
39
41
  formValidation?: CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidation;
40
42
  /** Name of the validation rule. */
41
43
  name?: string;
42
44
  }
45
+ interface CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule {
46
+ alignmentType?: string;
47
+ /** The tolerance to use when comparing coordinates. */
48
+ tolerance?: number;
49
+ }
50
+ interface CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule {
51
+ /** The alignment rule to apply to the child fields. */
52
+ alignmentRule?: CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule;
53
+ /** The child fields to be aligned within the parent field. */
54
+ childFields?: CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField[];
55
+ /** The full path of the parent field. */
56
+ parentField?: CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField;
57
+ }
43
58
  interface CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleConstant {
44
59
  floatValue?: number;
45
60
  }
61
+ interface CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAlignmentRule {
62
+ /** The alignment rule to apply to the fields. */
63
+ alignmentRule?: CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule;
64
+ /** The fields to be aligned. */
65
+ fields?: CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField[];
66
+ }
46
67
  interface CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField {
47
68
  /** 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. */
48
69
  defaultValue?: CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleConstant;
@@ -574,8 +595,14 @@ declare namespace gapi.client {
574
595
  documentLayout?: GoogleCloudDocumentaiV1beta3DocumentDocumentLayout;
575
596
  /** A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries. */
576
597
  entities?: GoogleCloudDocumentaiV1beta3DocumentEntity[];
598
+ /** The entity revision id that `document.entities` field is based on. If this field is set and `entities_revisions` is not empty, the entities in `document.entities` field are the entities in the entity revision with this id and `document.entity_validation_output` field is the `entity_validation_output` field in this entity revision. */
599
+ entitiesRevisionId?: string;
600
+ /** A list of entity revisions. The entity revisions are appended to the document in the processing order. This field can be used for comparing the entity extraction results at different stages of the processing. */
601
+ entitiesRevisions?: GoogleCloudDocumentaiV1beta3DocumentEntitiesRevision[];
577
602
  /** Placeholder. Relationship among Document.entities. */
578
603
  entityRelations?: GoogleCloudDocumentaiV1beta3DocumentEntityRelation[];
604
+ /** The entity validation output for the document. This is the validation output for `document.entities` field. */
605
+ entityValidationOutput?: GoogleCloudDocumentaiV1beta3DocumentEntityValidationOutput;
579
606
  /** Any error that occurred while processing this document. */
580
607
  error?: GoogleRpcStatus;
581
608
  /** An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml). */
@@ -747,6 +774,14 @@ declare namespace gapi.client {
747
774
  /** Type of the text in the block. Available options are: `paragraph`, `subtitle`, `heading-1`, `heading-2`, `heading-3`, `heading-4`, `heading-5`, `header`, `footer`. */
748
775
  type?: string;
749
776
  }
777
+ interface GoogleCloudDocumentaiV1beta3DocumentEntitiesRevision {
778
+ /** The entities in this revision. */
779
+ entities?: GoogleCloudDocumentaiV1beta3DocumentEntity[];
780
+ /** The entity validation output for this revision. */
781
+ entityValidationOutput?: GoogleCloudDocumentaiV1beta3DocumentEntityValidationOutput;
782
+ /** The revision id. */
783
+ revisionId?: string;
784
+ }
750
785
  interface GoogleCloudDocumentaiV1beta3DocumentEntity {
751
786
  /** Optional. Confidence of detected Schema entity. Range `[0, 1]`. */
752
787
  confidence?: number;
@@ -788,6 +823,7 @@ declare namespace gapi.client {
788
823
  integerValue?: number;
789
824
  /** Money value. See also: https://github.com/googleapis/googleapis/blob/master/google/type/money.proto */
790
825
  moneyValue?: GoogleTypeMoney;
826
+ /** A signature - a graphical representation of a person's name, often used to sign a document. */
791
827
  signatureValue?: boolean;
792
828
  /** Optional. An optional field to store a normalized string. For some entity types, one of respective `structured_value` fields may also be populated. Also not all the types of `structured_value` will be normalized. For example, some processors may not generate `float` or `integer` normalized text by default. Below are sample formats mapped to structured values. - Money/Currency type (`money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in the ISO 8601 text format. - Datetime type (`datetime_value`) is in the ISO 8601 text format. */
793
829
  text?: string;
@@ -800,6 +836,22 @@ declare namespace gapi.client {
800
836
  /** Subject entity id. */
801
837
  subjectId?: string;
802
838
  }
839
+ interface GoogleCloudDocumentaiV1beta3DocumentEntityValidationOutput {
840
+ /** The overall result of the validation, true if all applicable rules are valid. */
841
+ passAllRules?: boolean;
842
+ /** The result of each validation rule. */
843
+ validationResults?: GoogleCloudDocumentaiV1beta3DocumentEntityValidationOutputValidationResult[];
844
+ }
845
+ interface GoogleCloudDocumentaiV1beta3DocumentEntityValidationOutputValidationResult {
846
+ /** The description of the validation rule. */
847
+ ruleDescription?: string;
848
+ /** The name of the validation rule. */
849
+ ruleName?: string;
850
+ /** The detailed information of the running the validation process using the entity from the document based on the validation rule. */
851
+ validationDetails?: string;
852
+ /** The result of the validation rule. */
853
+ validationResultType?: string;
854
+ }
803
855
  interface GoogleCloudDocumentaiV1beta3DocumentId {
804
856
  /** A document id within user-managed Cloud Storage. */
805
857
  gcsManagedDocId?: GoogleCloudDocumentaiV1beta3DocumentIdGCSManagedDocumentId;
@@ -1955,6 +2007,8 @@ declare namespace gapi.client {
1955
2007
  nextPageToken?: string;
1956
2008
  /** A list of operations that matches the specified filter in the request. */
1957
2009
  operations?: GoogleLongrunningOperation[];
2010
+ /** Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations. */
2011
+ unreachable?: string[];
1958
2012
  }
1959
2013
  interface GoogleLongrunningOperation {
1960
2014
  /** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */
@@ -2136,6 +2190,8 @@ declare namespace gapi.client {
2136
2190
  prettyPrint?: boolean;
2137
2191
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2138
2192
  quotaUser?: string;
2193
+ /** When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation. */
2194
+ returnPartialSuccess?: boolean;
2139
2195
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2140
2196
  upload_protocol?: string;
2141
2197
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.documentai-v1beta3",
3
- "version": "0.1.20250922",
3
+ "version": "0.1.20251013",
4
4
  "description": "TypeScript typings for Cloud Document AI API v1beta3",
5
5
  "repository": {
6
6
  "type": "git",