@maxim_mazurok/gapi.client.documentai-v1 0.0.20230526 → 0.0.20230609

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 (3) hide show
  1. package/index.d.ts +43 -43
  2. package/package.json +1 -1
  3. package/tests.ts +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=v1
12
- // Revision: 20230526
12
+ // Revision: 20230609
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 managed Cloud Storage. */
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 uri where the actual document is stored. */
165
+ /** Required. The Cloud Storage URI where the actual document is stored. */
166
166
  gcsUri?:
167
167
  string;
168
168
  }
@@ -466,7 +466,7 @@ declare namespace gapi.client {
466
466
  /** The input documents for the BatchProcessDocuments method. */
467
467
  inputDocuments?:
468
468
  GoogleCloudDocumentaiV1BatchDocumentsInputConfig;
469
- /** Whether Human Review feature should be skipped for this request. Default to false. */
469
+ /** Whether human review should be skipped for this request. Default to `false`. */
470
470
  skipHumanReview?:
471
471
  boolean;
472
472
  }
@@ -521,7 +521,7 @@ declare namespace gapi.client {
521
521
  /** Any error that occurred while processing this document. */
522
522
  error?:
523
523
  GoogleRpcStatus;
524
- /** An IANA published MIME type (also referred to as media type). For more information, see https://www.iana.org/assignments/media-types/media-types.xhtml. */
524
+ /** An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml). */
525
525
  mimeType?:
526
526
  string;
527
527
  /** Visual page layout for the Document. */
@@ -651,7 +651,7 @@ declare namespace gapi.client {
651
651
  /** 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. */
652
652
  image?:
653
653
  GoogleCloudDocumentaiV1beta1DocumentPageImage;
654
- /** Image Quality Scores. */
654
+ /** Image quality scores. */
655
655
  imageQualityScores?:
656
656
  GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores;
657
657
  /** Layout for the page. */
@@ -733,7 +733,7 @@ declare namespace gapi.client {
733
733
  /** Confidence of detected language. Range `[0, 1]`. */
734
734
  confidence?:
735
735
  number;
736
- /** The BCP-47 language code, such as `en-US` or `sr-Latn`. For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. */
736
+ /** The [BCP-47 language code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier), such as `en-US` or `sr-Latn`. */
737
737
  languageCode?:
738
738
  string;
739
739
  }
@@ -784,7 +784,7 @@ declare namespace gapi.client {
784
784
  /** Height of the image in pixels. */
785
785
  height?:
786
786
  number;
787
- /** Encoding mime type for the image. */
787
+ /** Encoding [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml) for the image. */
788
788
  mimeType?:
789
789
  string;
790
790
  /** Width of the image in pixels. */
@@ -795,12 +795,12 @@ declare namespace gapi.client {
795
795
  /** A list of detected defects. */
796
796
  detectedDefects?:
797
797
  GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect[];
798
- /** The overall quality score. Range `[0, 1]` where 1 is perfect quality. */
798
+ /** The overall quality score. Range `[0, 1]` where `1` is perfect quality. */
799
799
  qualityScore?:
800
800
  number;
801
801
  }
802
802
  interface GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect {
803
- /** Confidence of detected defect. Range `[0, 1]` where 1 indicates strong confidence of that the defect exists. */
803
+ /** Confidence of detected defect. Range `[0, 1]` where `1` indicates strong confidence that the defect exists. */
804
804
  confidence?:
805
805
  number;
806
806
  /**
@@ -1073,16 +1073,16 @@ declare namespace gapi.client {
1073
1073
  /** Font size. */
1074
1074
  fontSize?:
1075
1075
  GoogleCloudDocumentaiV1beta1DocumentStyleFontSize;
1076
- /** Font weight. Possible values are normal, bold, bolder, and lighter. https://www.w3schools.com/cssref/pr_font_weight.asp */
1076
+ /** [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp). Possible values are `normal`, `bold`, `bolder`, and `lighter`. */
1077
1077
  fontWeight?:
1078
1078
  string;
1079
1079
  /** Text anchor indexing into the Document.text. */
1080
1080
  textAnchor?:
1081
1081
  GoogleCloudDocumentaiV1beta1DocumentTextAnchor;
1082
- /** Text decoration. Follows CSS standard. https://www.w3schools.com/cssref/pr_text_text-decoration.asp */
1082
+ /** [Text decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp). Follows CSS standard. */
1083
1083
  textDecoration?:
1084
1084
  string;
1085
- /** Text style. Possible values are normal, italic, and oblique. https://www.w3schools.com/cssref/pr_font_font-style.asp */
1085
+ /** [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp). Possible values are `normal`, `italic`, and `oblique`. */
1086
1086
  textStyle?:
1087
1087
  string;
1088
1088
  }
@@ -1090,7 +1090,7 @@ declare namespace gapi.client {
1090
1090
  /** Font size for the text. */
1091
1091
  size?:
1092
1092
  number;
1093
- /** Unit for the font size. Follows CSS naming (in, px, pt, etc.). */
1093
+ /** Unit for the font size. Follows CSS naming (such as `in`, `px`, and `pt`). */
1094
1094
  unit?:
1095
1095
  string;
1096
1096
  }
@@ -1245,7 +1245,7 @@ declare namespace gapi.client {
1245
1245
  /** Labels for this document. */
1246
1246
  labels?:
1247
1247
  GoogleCloudDocumentaiV1beta2DocumentLabel[];
1248
- /** An IANA published MIME type (also referred to as media type). For more information, see https://www.iana.org/assignments/media-types/media-types.xhtml. */
1248
+ /** An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml). */
1249
1249
  mimeType?:
1250
1250
  string;
1251
1251
  /** Visual page layout for the Document. */
@@ -1386,7 +1386,7 @@ declare namespace gapi.client {
1386
1386
  /** 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. */
1387
1387
  image?:
1388
1388
  GoogleCloudDocumentaiV1beta2DocumentPageImage;
1389
- /** Image Quality Scores. */
1389
+ /** Image quality scores. */
1390
1390
  imageQualityScores?:
1391
1391
  GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores;
1392
1392
  /** Layout for the page. */
@@ -1468,7 +1468,7 @@ declare namespace gapi.client {
1468
1468
  /** Confidence of detected language. Range `[0, 1]`. */
1469
1469
  confidence?:
1470
1470
  number;
1471
- /** The BCP-47 language code, such as `en-US` or `sr-Latn`. For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. */
1471
+ /** The [BCP-47 language code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier), such as `en-US` or `sr-Latn`. */
1472
1472
  languageCode?:
1473
1473
  string;
1474
1474
  }
@@ -1519,7 +1519,7 @@ declare namespace gapi.client {
1519
1519
  /** Height of the image in pixels. */
1520
1520
  height?:
1521
1521
  number;
1522
- /** Encoding mime type for the image. */
1522
+ /** Encoding [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml) for the image. */
1523
1523
  mimeType?:
1524
1524
  string;
1525
1525
  /** Width of the image in pixels. */
@@ -1530,12 +1530,12 @@ declare namespace gapi.client {
1530
1530
  /** A list of detected defects. */
1531
1531
  detectedDefects?:
1532
1532
  GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect[];
1533
- /** The overall quality score. Range `[0, 1]` where 1 is perfect quality. */
1533
+ /** The overall quality score. Range `[0, 1]` where `1` is perfect quality. */
1534
1534
  qualityScore?:
1535
1535
  number;
1536
1536
  }
1537
1537
  interface GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect {
1538
- /** Confidence of detected defect. Range `[0, 1]` where 1 indicates strong confidence of that the defect exists. */
1538
+ /** Confidence of detected defect. Range `[0, 1]` where `1` indicates strong confidence that the defect exists. */
1539
1539
  confidence?:
1540
1540
  number;
1541
1541
  /**
@@ -1808,16 +1808,16 @@ declare namespace gapi.client {
1808
1808
  /** Font size. */
1809
1809
  fontSize?:
1810
1810
  GoogleCloudDocumentaiV1beta2DocumentStyleFontSize;
1811
- /** Font weight. Possible values are normal, bold, bolder, and lighter. https://www.w3schools.com/cssref/pr_font_weight.asp */
1811
+ /** [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp). Possible values are `normal`, `bold`, `bolder`, and `lighter`. */
1812
1812
  fontWeight?:
1813
1813
  string;
1814
1814
  /** Text anchor indexing into the Document.text. */
1815
1815
  textAnchor?:
1816
1816
  GoogleCloudDocumentaiV1beta2DocumentTextAnchor;
1817
- /** Text decoration. Follows CSS standard. https://www.w3schools.com/cssref/pr_text_text-decoration.asp */
1817
+ /** [Text decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp). Follows CSS standard. */
1818
1818
  textDecoration?:
1819
1819
  string;
1820
- /** Text style. Possible values are normal, italic, and oblique. https://www.w3schools.com/cssref/pr_font_font-style.asp */
1820
+ /** [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp). Possible values are `normal`, `italic`, and `oblique`. */
1821
1821
  textStyle?:
1822
1822
  string;
1823
1823
  }
@@ -1825,7 +1825,7 @@ declare namespace gapi.client {
1825
1825
  /** Font size for the text. */
1826
1826
  size?:
1827
1827
  number;
1828
- /** Unit for the font size. Follows CSS naming (in, px, pt, etc.). */
1828
+ /** Unit for the font size. Follows CSS naming (such as `in`, `px`, and `pt`). */
1829
1829
  unit?:
1830
1830
  string;
1831
1831
  }
@@ -2210,7 +2210,7 @@ declare namespace gapi.client {
2210
2210
  /** Any error that occurred while processing this document. */
2211
2211
  error?:
2212
2212
  GoogleRpcStatus;
2213
- /** An IANA published MIME type (also referred to as media type). For more information, see https://www.iana.org/assignments/media-types/media-types.xhtml. */
2213
+ /** An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml). */
2214
2214
  mimeType?:
2215
2215
  string;
2216
2216
  /** Visual page layout for the Document. */
@@ -2367,7 +2367,7 @@ declare namespace gapi.client {
2367
2367
  /** 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. */
2368
2368
  image?:
2369
2369
  GoogleCloudDocumentaiV1DocumentPageImage;
2370
- /** Image Quality Scores. */
2370
+ /** Image quality scores. */
2371
2371
  imageQualityScores?:
2372
2372
  GoogleCloudDocumentaiV1DocumentPageImageQualityScores;
2373
2373
  /** Layout for the page. */
@@ -2449,7 +2449,7 @@ declare namespace gapi.client {
2449
2449
  /** Confidence of detected language. Range `[0, 1]`. */
2450
2450
  confidence?:
2451
2451
  number;
2452
- /** The BCP-47 language code, such as `en-US` or `sr-Latn`. For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. */
2452
+ /** The [BCP-47 language code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier), such as `en-US` or `sr-Latn`. */
2453
2453
  languageCode?:
2454
2454
  string;
2455
2455
  }
@@ -2500,7 +2500,7 @@ declare namespace gapi.client {
2500
2500
  /** Height of the image in pixels. */
2501
2501
  height?:
2502
2502
  number;
2503
- /** Encoding mime type for the image. */
2503
+ /** Encoding [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml) for the image. */
2504
2504
  mimeType?:
2505
2505
  string;
2506
2506
  /** Width of the image in pixels. */
@@ -2511,12 +2511,12 @@ declare namespace gapi.client {
2511
2511
  /** A list of detected defects. */
2512
2512
  detectedDefects?:
2513
2513
  GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect[];
2514
- /** The overall quality score. Range `[0, 1]` where 1 is perfect quality. */
2514
+ /** The overall quality score. Range `[0, 1]` where `1` is perfect quality. */
2515
2515
  qualityScore?:
2516
2516
  number;
2517
2517
  }
2518
2518
  interface GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect {
2519
- /** Confidence of detected defect. Range `[0, 1]` where 1 indicates strong confidence of that the defect exists. */
2519
+ /** Confidence of detected defect. Range `[0, 1]` where `1` indicates strong confidence that the defect exists. */
2520
2520
  confidence?:
2521
2521
  number;
2522
2522
  /**
@@ -2793,10 +2793,10 @@ declare namespace gapi.client {
2793
2793
  enumValues?:
2794
2794
  GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues;
2795
2795
  /**
2796
- * Name of the type. It must be unique within the schema file and cannot be a 'Common Type'. Besides that we use the following naming conventions: - *use `snake_casing`* - name
2797
- * matching is case-sensitive - Maximum 64 characters. - Must start with a letter. - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward compatibility internal infrastructure
2798
- * and 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
2799
- * be honored for backward compatibility.
2796
+ * 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
2797
+ * case-sensitive. - Maximum 64 characters. - Must start with a letter. - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward compatibility internal infrastructure and
2798
+ * 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
2799
+ * honored for backward compatibility.
2800
2800
  */
2801
2801
  name?:
2802
2802
  string;
@@ -2824,7 +2824,7 @@ declare namespace gapi.client {
2824
2824
  /** If true, on a given page, there can be multiple `document` annotations covering it. */
2825
2825
  documentAllowMultipleLabels?:
2826
2826
  boolean;
2827
- /** If true, a `document` entity type can be applied to subdocument ( splitting). Otherwise, it can only be applied to the entire document (classification). */
2827
+ /** If true, a `document` entity type can be applied to subdocument (splitting). Otherwise, it can only be applied to the entire document (classification). */
2828
2828
  documentSplitter?:
2829
2829
  boolean;
2830
2830
  /** If set, all the nested entities must be prefixed with the parents. */
@@ -2861,16 +2861,16 @@ declare namespace gapi.client {
2861
2861
  /** Font size. */
2862
2862
  fontSize?:
2863
2863
  GoogleCloudDocumentaiV1DocumentStyleFontSize;
2864
- /** Font weight. Possible values are normal, bold, bolder, and lighter. https://www.w3schools.com/cssref/pr_font_weight.asp */
2864
+ /** [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp). Possible values are `normal`, `bold`, `bolder`, and `lighter`. */
2865
2865
  fontWeight?:
2866
2866
  string;
2867
2867
  /** Text anchor indexing into the Document.text. */
2868
2868
  textAnchor?:
2869
2869
  GoogleCloudDocumentaiV1DocumentTextAnchor;
2870
- /** Text decoration. Follows CSS standard. https://www.w3schools.com/cssref/pr_text_text-decoration.asp */
2870
+ /** [Text decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp). Follows CSS standard. */
2871
2871
  textDecoration?:
2872
2872
  string;
2873
- /** Text style. Possible values are normal, italic, and oblique. https://www.w3schools.com/cssref/pr_font_font-style.asp */
2873
+ /** [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp). Possible values are `normal`, `italic`, and `oblique`. */
2874
2874
  textStyle?:
2875
2875
  string;
2876
2876
  }
@@ -2878,7 +2878,7 @@ declare namespace gapi.client {
2878
2878
  /** Font size for the text. */
2879
2879
  size?:
2880
2880
  number;
2881
- /** Unit for the font size. Follows CSS naming (in, px, pt, etc.). */
2881
+ /** Unit for the font size. Follows CSS naming (such as `in`, `px`, and `pt`). */
2882
2882
  unit?:
2883
2883
  string;
2884
2884
  }
@@ -3142,7 +3142,7 @@ declare namespace gapi.client {
3142
3142
  /** The display name of the processor. */
3143
3143
  displayName?:
3144
3144
  string;
3145
- /** The KMS key used for encryption/decryption in CMEK scenarios. See https://cloud.google.com/security-key-management. */
3145
+ /** The [KMS key](https://cloud.google.com/security-key-management) used for encryption and decryption in CMEK scenarios. */
3146
3146
  kmsKeyName?:
3147
3147
  string;
3148
3148
  /** Output only. Immutable. The resource name of the processor. Format: `projects/{project}/locations/{location}/processors/{processor}` */
@@ -3182,7 +3182,7 @@ declare namespace gapi.client {
3182
3182
  string;
3183
3183
  }
3184
3184
  interface GoogleCloudDocumentaiV1ProcessorTypeLocationInfo {
3185
- /** The location id, currently must be one of [us, eu]. */
3185
+ /** The location ID. For supported locations, refer to [regional and multi-regional support](/document-ai/docs/regions). */
3186
3186
  locationId?:
3187
3187
  string;
3188
3188
  }
@@ -3199,7 +3199,7 @@ declare namespace gapi.client {
3199
3199
  /** The schema of the processor version. Describes the output. */
3200
3200
  documentSchema?:
3201
3201
  GoogleCloudDocumentaiV1DocumentSchema;
3202
- /** Denotes that this ProcessorVersion is managed by google. */
3202
+ /** Denotes that this `ProcessorVersion` is managed by Google. */
3203
3203
  googleManaged?:
3204
3204
  boolean;
3205
3205
  /** The KMS key name used for encryption. */
@@ -3239,7 +3239,7 @@ declare namespace gapi.client {
3239
3239
  /** A raw document content (bytes). */
3240
3240
  rawDocument?:
3241
3241
  GoogleCloudDocumentaiV1RawDocument;
3242
- /** Whether Human Review feature should be skipped for this request. Default to false. */
3242
+ /** Whether human review should be skipped for this request. Default to `false`. */
3243
3243
  skipHumanReview?:
3244
3244
  boolean;
3245
3245
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.documentai-v1",
3
- "version": "0.0.20230526",
3
+ "version": "0.0.20230609",
4
4
  "description": "TypeScript typings for Cloud Document AI API v1",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20230526
6
+ // Revision: 20230609
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */