@maxim_mazurok/gapi.client.documentai-v1beta3 0.0.20230417 → 0.0.20230420

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 +154 -50
  2. package/package.json +1 -1
  3. package/tests.ts +168 -2
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: 20230417
12
+ // Revision: 20230420
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -90,30 +90,30 @@ declare namespace gapi.client {
90
90
  updateTime?: string;
91
91
  }
92
92
  interface GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata {
93
- /** The basic metadata of the long running operation. */
93
+ /** The basic metadata of the long-running operation. */
94
94
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
95
95
  }
96
96
  interface GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata {
97
- /** The basic metadata of the long running operation. */
97
+ /** The basic metadata of the long-running operation. */
98
98
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
99
99
  }
100
100
  interface GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata {
101
- /** The basic metadata of the long running operation. */
101
+ /** The basic metadata of the long-running operation. */
102
102
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
103
103
  }
104
104
  interface GoogleCloudDocumentaiUiv1beta3DeleteProcessorVersionMetadata {
105
- /** The basic metadata of the long running operation. */
105
+ /** The basic metadata of the long-running operation. */
106
106
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
107
107
  }
108
108
  interface GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionMetadata {
109
- /** The basic metadata of the long running operation. */
109
+ /** The basic metadata of the long-running operation. */
110
110
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
111
111
  }
112
112
  // tslint:disable-next-line:no-empty-interface
113
113
  interface GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionResponse {
114
114
  }
115
115
  interface GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata {
116
- /** The basic metadata of the long running operation. */
116
+ /** The basic metadata of the long-running operation. */
117
117
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
118
118
  }
119
119
  // tslint:disable-next-line:no-empty-interface
@@ -131,14 +131,14 @@ declare namespace gapi.client {
131
131
  gcsUri?: string;
132
132
  }
133
133
  interface GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata {
134
- /** The basic metadata of the long running operation. */
134
+ /** The basic metadata of the long-running operation. */
135
135
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
136
136
  }
137
137
  // tslint:disable-next-line:no-empty-interface
138
138
  interface GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse {
139
139
  }
140
140
  interface GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata {
141
- /** The basic metadata of the long running operation. */
141
+ /** The basic metadata of the long-running operation. */
142
142
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
143
143
  }
144
144
  interface GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse {
@@ -206,7 +206,7 @@ declare namespace gapi.client {
206
206
  interface GoogleCloudDocumentaiUiv1beta3ImportDocumentsResponse {
207
207
  }
208
208
  interface GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata {
209
- /** The basic metadata for the long running operation. */
209
+ /** The basic metadata for the long-running operation. */
210
210
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
211
211
  }
212
212
  interface GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse {
@@ -250,14 +250,14 @@ declare namespace gapi.client {
250
250
  revisionId?: string;
251
251
  }
252
252
  interface GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata {
253
- /** The basic metadata of the long running operation. */
253
+ /** The basic metadata of the long-running operation. */
254
254
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
255
255
  }
256
256
  // tslint:disable-next-line:no-empty-interface
257
257
  interface GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse {
258
258
  }
259
259
  interface GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata {
260
- /** The basic metadata of the long running operation. */
260
+ /** The basic metadata of the long-running operation. */
261
261
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
262
262
  /** The test dataset validation information. */
263
263
  testDatasetValidation?: GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation;
@@ -279,7 +279,7 @@ declare namespace gapi.client {
279
279
  processorVersion?: string;
280
280
  }
281
281
  interface GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata {
282
- /** The basic metadata of the long running operation. */
282
+ /** The basic metadata of the long-running operation. */
283
283
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
284
284
  }
285
285
  // tslint:disable-next-line:no-empty-interface
@@ -290,11 +290,11 @@ declare namespace gapi.client {
290
290
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
291
291
  }
292
292
  interface GoogleCloudDocumentaiUiv1beta3UpdateHumanReviewConfigMetadata {
293
- /** The basic metadata of the long running operation. */
293
+ /** The basic metadata of the long-running operation. */
294
294
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
295
295
  }
296
296
  interface GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata {
297
- /** The basic metadata of the long running operation. */
297
+ /** The basic metadata of the long-running operation. */
298
298
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
299
299
  }
300
300
  interface GoogleCloudDocumentaiV1BatchProcessMetadata {
@@ -656,11 +656,45 @@ declare namespace gapi.client {
656
656
  layout?: GoogleCloudDocumentaiV1beta1DocumentPageLayout;
657
657
  /** The history of this annotation. */
658
658
  provenance?: GoogleCloudDocumentaiV1beta1DocumentProvenance;
659
+ /** Text style attributes. */
660
+ styleInfo?: GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo;
659
661
  }
660
662
  interface GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak {
661
663
  /** Detected break type. */
662
664
  type?: string;
663
665
  }
666
+ interface GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo {
667
+ /** Color of the background. */
668
+ backgroundColor?: GoogleTypeColor;
669
+ /** Whether the text is bold (equivalent to font weight >= 700). */
670
+ bold?: boolean;
671
+ /** Font size in points (1 point is 1/72"). */
672
+ fontSize?: number;
673
+ /** Name or style of the font. */
674
+ fontType?: string;
675
+ /** TrueType weight on a scale 100 (Thin) to 1000 (Ultra-heavy). Normal is 400, Bold is 700. */
676
+ fontWeight?: number;
677
+ /** Whether the text is handwritten. */
678
+ handwritten?: boolean;
679
+ /** Whether the text is italic. */
680
+ italic?: boolean;
681
+ /** Letter spacing in points. */
682
+ letterSpacing?: number;
683
+ /** Font size in pixels, equal to unrounded_fontsize * resolution / 72.0. */
684
+ pixelFontSize?: number;
685
+ /** Whether the text are small caps. */
686
+ smallcaps?: boolean;
687
+ /** Whether the text is strikethrough. */
688
+ strikeout?: boolean;
689
+ /** Whether the text is a subscript. */
690
+ subscript?: boolean;
691
+ /** Whether the text is a superscript. */
692
+ superscript?: boolean;
693
+ /** Color of the text. */
694
+ textColor?: GoogleTypeColor;
695
+ /** Whether the text is underlined. */
696
+ underlined?: boolean;
697
+ }
664
698
  interface GoogleCloudDocumentaiV1beta1DocumentPageVisualElement {
665
699
  /** A list of detected languages together with confidence. */
666
700
  detectedLanguages?: GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage[];
@@ -1162,11 +1196,45 @@ declare namespace gapi.client {
1162
1196
  layout?: GoogleCloudDocumentaiV1beta2DocumentPageLayout;
1163
1197
  /** The history of this annotation. */
1164
1198
  provenance?: GoogleCloudDocumentaiV1beta2DocumentProvenance;
1199
+ /** Text style attributes. */
1200
+ styleInfo?: GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo;
1165
1201
  }
1166
1202
  interface GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak {
1167
1203
  /** Detected break type. */
1168
1204
  type?: string;
1169
1205
  }
1206
+ interface GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo {
1207
+ /** Color of the background. */
1208
+ backgroundColor?: GoogleTypeColor;
1209
+ /** Whether the text is bold (equivalent to font weight >= 700). */
1210
+ bold?: boolean;
1211
+ /** Font size in points (1 point is 1/72"). */
1212
+ fontSize?: number;
1213
+ /** Name or style of the font. */
1214
+ fontType?: string;
1215
+ /** TrueType weight on a scale 100 (Thin) to 1000 (Ultra-heavy). Normal is 400, Bold is 700. */
1216
+ fontWeight?: number;
1217
+ /** Whether the text is handwritten. */
1218
+ handwritten?: boolean;
1219
+ /** Whether the text is italic. */
1220
+ italic?: boolean;
1221
+ /** Letter spacing in points. */
1222
+ letterSpacing?: number;
1223
+ /** Font size in pixels, equal to unrounded_fontsize * resolution / 72.0. */
1224
+ pixelFontSize?: number;
1225
+ /** Whether the text are small caps. */
1226
+ smallcaps?: boolean;
1227
+ /** Whether the text is strikethrough. */
1228
+ strikeout?: boolean;
1229
+ /** Whether the text is a subscript. */
1230
+ subscript?: boolean;
1231
+ /** Whether the text is a superscript. */
1232
+ superscript?: boolean;
1233
+ /** Color of the text. */
1234
+ textColor?: GoogleTypeColor;
1235
+ /** Whether the text is underlined. */
1236
+ underlined?: boolean;
1237
+ }
1170
1238
  interface GoogleCloudDocumentaiV1beta2DocumentPageVisualElement {
1171
1239
  /** A list of detected languages together with confidence. */
1172
1240
  detectedLanguages?: GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage[];
@@ -1368,8 +1436,8 @@ declare namespace gapi.client {
1368
1436
  }
1369
1437
  interface GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus {
1370
1438
  /**
1371
- * The name of the operation triggered by the processed document. If the human review process is not triggered, this field will be empty. It has the same response type and metadata as
1372
- * the long running operation returned by ReviewDocument method.
1439
+ * The name of the operation triggered by the processed document. If the human review process isn't triggered, this field will be empty. It has the same response type and metadata as
1440
+ * the long-running operation returned by ReviewDocument method.
1373
1441
  */
1374
1442
  humanReviewOperation?: string;
1375
1443
  /** The status of human review on the processed document. */
@@ -1402,7 +1470,7 @@ declare namespace gapi.client {
1402
1470
  /** The Cloud Storage location as the source of the document. */
1403
1471
  gcsSource?: string;
1404
1472
  /**
1405
- * Mimetype of the input. If the input is a raw document, the supported mimetypes are application/pdf, image/tiff, and image/gif. If the input is a [Document] proto, the type should be
1473
+ * Mimetype of the input. If the input is a raw document, the supported mimetypes are application/pdf, image/tiff, and image/gif. If the input is a Document proto, the type should be
1406
1474
  * application/json.
1407
1475
  */
1408
1476
  mimeType?: string;
@@ -1433,15 +1501,15 @@ declare namespace gapi.client {
1433
1501
  updateTime?: string;
1434
1502
  }
1435
1503
  interface GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata {
1436
- /** The basic metadata of the long running operation. */
1504
+ /** The basic metadata of the long-running operation. */
1437
1505
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
1438
1506
  }
1439
1507
  interface GoogleCloudDocumentaiV1beta3DeleteProcessorVersionMetadata {
1440
- /** The basic metadata of the long running operation. */
1508
+ /** The basic metadata of the long-running operation. */
1441
1509
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
1442
1510
  }
1443
1511
  interface GoogleCloudDocumentaiV1beta3DeployProcessorVersionMetadata {
1444
- /** The basic metadata of the long running operation. */
1512
+ /** The basic metadata of the long-running operation. */
1445
1513
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
1446
1514
  }
1447
1515
  // tslint:disable-next-line:no-empty-interface
@@ -1451,7 +1519,7 @@ declare namespace gapi.client {
1451
1519
  interface GoogleCloudDocumentaiV1beta3DeployProcessorVersionResponse {
1452
1520
  }
1453
1521
  interface GoogleCloudDocumentaiV1beta3DisableProcessorMetadata {
1454
- /** The basic metadata of the long running operation. */
1522
+ /** The basic metadata of the long-running operation. */
1455
1523
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
1456
1524
  }
1457
1525
  // tslint:disable-next-line:no-empty-interface
@@ -1786,11 +1854,45 @@ declare namespace gapi.client {
1786
1854
  layout?: GoogleCloudDocumentaiV1beta3DocumentPageLayout;
1787
1855
  /** The history of this annotation. */
1788
1856
  provenance?: GoogleCloudDocumentaiV1beta3DocumentProvenance;
1857
+ /** Text style attributes. */
1858
+ styleInfo?: GoogleCloudDocumentaiV1beta3DocumentPageTokenStyleInfo;
1789
1859
  }
1790
1860
  interface GoogleCloudDocumentaiV1beta3DocumentPageTokenDetectedBreak {
1791
1861
  /** Detected break type. */
1792
1862
  type?: string;
1793
1863
  }
1864
+ interface GoogleCloudDocumentaiV1beta3DocumentPageTokenStyleInfo {
1865
+ /** Color of the background. */
1866
+ backgroundColor?: GoogleTypeColor;
1867
+ /** Whether the text is bold (equivalent to font weight >= 700). */
1868
+ bold?: boolean;
1869
+ /** Font size in points (1 point is 1/72"). */
1870
+ fontSize?: number;
1871
+ /** Name or style of the font. */
1872
+ fontType?: string;
1873
+ /** TrueType weight on a scale 100 (Thin) to 1000 (Ultra-heavy). Normal is 400, Bold is 700. */
1874
+ fontWeight?: number;
1875
+ /** Whether the text is handwritten. */
1876
+ handwritten?: boolean;
1877
+ /** Whether the text is italic. */
1878
+ italic?: boolean;
1879
+ /** Letter spacing in points. */
1880
+ letterSpacing?: number;
1881
+ /** Font size in pixels, equal to unrounded_fontsize * resolution / 72.0. */
1882
+ pixelFontSize?: number;
1883
+ /** Whether the text are small caps. */
1884
+ smallcaps?: boolean;
1885
+ /** Whether the text is strikethrough. */
1886
+ strikeout?: boolean;
1887
+ /** Whether the text is a subscript. */
1888
+ subscript?: boolean;
1889
+ /** Whether the text is a superscript. */
1890
+ superscript?: boolean;
1891
+ /** Color of the text. */
1892
+ textColor?: GoogleTypeColor;
1893
+ /** Whether the text is underlined. */
1894
+ underlined?: boolean;
1895
+ }
1794
1896
  interface GoogleCloudDocumentaiV1beta3DocumentPageVisualElement {
1795
1897
  /** A list of detected languages together with confidence. */
1796
1898
  detectedLanguages?: GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage[];
@@ -1953,7 +2055,7 @@ declare namespace gapi.client {
1953
2055
  textAnchor?: GoogleCloudDocumentaiV1beta3DocumentTextAnchor;
1954
2056
  }
1955
2057
  interface GoogleCloudDocumentaiV1beta3EnableProcessorMetadata {
1956
- /** The basic metadata of the long running operation. */
2058
+ /** The basic metadata of the long-running operation. */
1957
2059
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
1958
2060
  }
1959
2061
  // tslint:disable-next-line:no-empty-interface
@@ -1963,7 +2065,7 @@ declare namespace gapi.client {
1963
2065
  interface GoogleCloudDocumentaiV1beta3EnableProcessorResponse {
1964
2066
  }
1965
2067
  interface GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata {
1966
- /** The basic metadata of the long running operation. */
2068
+ /** The basic metadata of the long-running operation. */
1967
2069
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
1968
2070
  }
1969
2071
  interface GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionRequest {
@@ -2076,8 +2178,8 @@ declare namespace gapi.client {
2076
2178
  }
2077
2179
  interface GoogleCloudDocumentaiV1beta3HumanReviewStatus {
2078
2180
  /**
2079
- * The name of the operation triggered by the processed document. This field is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has the same response type and
2080
- * metadata as the long running operation returned by [ReviewDocument] method.
2181
+ * The name of the operation triggered by the processed document. This field is populated only when the state is `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata
2182
+ * as the long-running operation returned by ReviewDocument.
2081
2183
  */
2082
2184
  humanReviewOperation?: string;
2083
2185
  /** The state of human review on the processing request. */
@@ -2086,7 +2188,7 @@ declare namespace gapi.client {
2086
2188
  stateMessage?: string;
2087
2189
  }
2088
2190
  interface GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata {
2089
- /** The basic metadata for the long running operation. */
2191
+ /** The basic metadata for the long-running operation. */
2090
2192
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
2091
2193
  }
2092
2194
  interface GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequest {
@@ -2133,6 +2235,8 @@ declare namespace gapi.client {
2133
2235
  * alternative to the current ML-based layout detection algorithm. Customers can choose the best suitable layout algorithm based on their situation.
2134
2236
  */
2135
2237
  advancedOcrOptions?: string[];
2238
+ /** Turn on font id model and returns font style information. */
2239
+ computeStyleInfo?: boolean;
2136
2240
  /**
2137
2241
  * Enables intelligent document quality scores after OCR. Can help with diagnosing why OCR responses are of poor quality for a given input. Adds additional latency comparable to
2138
2242
  * regular OCR to the process call.
@@ -2172,7 +2276,7 @@ declare namespace gapi.client {
2172
2276
  processEndpoint?: string;
2173
2277
  /** Output only. The state of the processor. */
2174
2278
  state?: string;
2175
- /** The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc. To get a list of processors types, see FetchProcessorTypes. */
2279
+ /** The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. To get a list of processor types, see FetchProcessorTypes. */
2176
2280
  type?: string;
2177
2281
  }
2178
2282
  interface GoogleCloudDocumentaiV1beta3ProcessorType {
@@ -2188,7 +2292,7 @@ declare namespace gapi.client {
2188
2292
  name?: string;
2189
2293
  /** A set of Cloud Storage URIs of sample documents for this processor. */
2190
2294
  sampleDocumentUris?: string[];
2191
- /** The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc. */
2295
+ /** The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. */
2192
2296
  type?: string;
2193
2297
  }
2194
2298
  interface GoogleCloudDocumentaiV1beta3ProcessorTypeLocationInfo {
@@ -2227,7 +2331,7 @@ declare namespace gapi.client {
2227
2331
  /** The document payload, the [content] and [mime_type] fields must be set. */
2228
2332
  document?: GoogleCloudDocumentaiV1beta3Document;
2229
2333
  /**
2230
- * Specifies which fields to include in ProcessResponse's document. Only supports top level document and pages field so it must be in the form of `{document_field_name}` or
2334
+ * Specifies which fields to include in the `ProcessResponse` Document. Only supports top level document and pages field so it must be in the form of `{document_field_name}` or
2231
2335
  * `pages.{page_field_name}`.
2232
2336
  */
2233
2337
  fieldMask?: string;
@@ -2244,8 +2348,8 @@ declare namespace gapi.client {
2244
2348
  /** The document payload, will populate fields based on the processor's behavior. */
2245
2349
  document?: GoogleCloudDocumentaiV1beta3Document;
2246
2350
  /**
2247
- * The name of the operation triggered by the processed document. If the human review process is not triggered, this field will be empty. It has the same response type and metadata as
2248
- * the long running operation returned by ReviewDocument method.
2351
+ * The name of the operation triggered by the processed document. If the human review process isn't triggered, this field is empty. It has the same response type and metadata as the
2352
+ * long-running operation returned by ReviewDocument.
2249
2353
  */
2250
2354
  humanReviewOperation?: string;
2251
2355
  /** The status of human review on the processed document. */
@@ -2258,7 +2362,7 @@ declare namespace gapi.client {
2258
2362
  mimeType?: string;
2259
2363
  }
2260
2364
  interface GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata {
2261
- /** The basic metadata of the long running operation. */
2365
+ /** The basic metadata of the long-running operation. */
2262
2366
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
2263
2367
  /** The creation time of the operation. */
2264
2368
  createTime?: string;
@@ -2292,7 +2396,7 @@ declare namespace gapi.client {
2292
2396
  state?: string;
2293
2397
  }
2294
2398
  interface GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata {
2295
- /** The basic metadata of the long running operation. */
2399
+ /** The basic metadata of the long-running operation. */
2296
2400
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
2297
2401
  }
2298
2402
  interface GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionRequest {
@@ -2303,7 +2407,7 @@ declare namespace gapi.client {
2303
2407
  interface GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionResponse {
2304
2408
  }
2305
2409
  interface GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata {
2306
- /** The basic metadata of the long running operation. */
2410
+ /** The basic metadata of the long-running operation. */
2307
2411
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
2308
2412
  /** The test dataset validation information. */
2309
2413
  testDatasetValidation?: GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation;
@@ -2344,7 +2448,7 @@ declare namespace gapi.client {
2344
2448
  processorVersion?: string;
2345
2449
  }
2346
2450
  interface GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata {
2347
- /** The basic metadata of the long running operation. */
2451
+ /** The basic metadata of the long-running operation. */
2348
2452
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
2349
2453
  }
2350
2454
  // tslint:disable-next-line:no-empty-interface
@@ -2372,36 +2476,36 @@ declare namespace gapi.client {
2372
2476
  updateTime?: string;
2373
2477
  }
2374
2478
  interface GoogleCloudDocumentaiV1DeleteProcessorMetadata {
2375
- /** The basic metadata of the long running operation. */
2479
+ /** The basic metadata of the long-running operation. */
2376
2480
  commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
2377
2481
  }
2378
2482
  interface GoogleCloudDocumentaiV1DeleteProcessorVersionMetadata {
2379
- /** The basic metadata of the long running operation. */
2483
+ /** The basic metadata of the long-running operation. */
2380
2484
  commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
2381
2485
  }
2382
2486
  interface GoogleCloudDocumentaiV1DeployProcessorVersionMetadata {
2383
- /** The basic metadata of the long running operation. */
2487
+ /** The basic metadata of the long-running operation. */
2384
2488
  commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
2385
2489
  }
2386
2490
  // tslint:disable-next-line:no-empty-interface
2387
2491
  interface GoogleCloudDocumentaiV1DeployProcessorVersionResponse {
2388
2492
  }
2389
2493
  interface GoogleCloudDocumentaiV1DisableProcessorMetadata {
2390
- /** The basic metadata of the long running operation. */
2494
+ /** The basic metadata of the long-running operation. */
2391
2495
  commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
2392
2496
  }
2393
2497
  // tslint:disable-next-line:no-empty-interface
2394
2498
  interface GoogleCloudDocumentaiV1DisableProcessorResponse {
2395
2499
  }
2396
2500
  interface GoogleCloudDocumentaiV1EnableProcessorMetadata {
2397
- /** The basic metadata of the long running operation. */
2501
+ /** The basic metadata of the long-running operation. */
2398
2502
  commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
2399
2503
  }
2400
2504
  // tslint:disable-next-line:no-empty-interface
2401
2505
  interface GoogleCloudDocumentaiV1EnableProcessorResponse {
2402
2506
  }
2403
2507
  interface GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata {
2404
- /** The basic metadata of the long running operation. */
2508
+ /** The basic metadata of the long-running operation. */
2405
2509
  commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
2406
2510
  }
2407
2511
  interface GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse {
@@ -2410,8 +2514,8 @@ declare namespace gapi.client {
2410
2514
  }
2411
2515
  interface GoogleCloudDocumentaiV1HumanReviewStatus {
2412
2516
  /**
2413
- * The name of the operation triggered by the processed document. This field is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has the same response type and
2414
- * metadata as the long running operation returned by [ReviewDocument] method.
2517
+ * The name of the operation triggered by the processed document. This field is populated only when the state is `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata
2518
+ * as the long-running operation returned by ReviewDocument.
2415
2519
  */
2416
2520
  humanReviewOperation?: string;
2417
2521
  /** The state of human review on the processing request. */
@@ -2420,7 +2524,7 @@ declare namespace gapi.client {
2420
2524
  stateMessage?: string;
2421
2525
  }
2422
2526
  interface GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata {
2423
- /** The basic metadata of the long running operation. */
2527
+ /** The basic metadata of the long-running operation. */
2424
2528
  commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
2425
2529
  /** The Crowd Compute question ID. */
2426
2530
  questionId?: string;
@@ -2434,14 +2538,14 @@ declare namespace gapi.client {
2434
2538
  state?: string;
2435
2539
  }
2436
2540
  interface GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata {
2437
- /** The basic metadata of the long running operation. */
2541
+ /** The basic metadata of the long-running operation. */
2438
2542
  commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
2439
2543
  }
2440
2544
  // tslint:disable-next-line:no-empty-interface
2441
2545
  interface GoogleCloudDocumentaiV1SetDefaultProcessorVersionResponse {
2442
2546
  }
2443
2547
  interface GoogleCloudDocumentaiV1TrainProcessorVersionMetadata {
2444
- /** The basic metadata of the long running operation. */
2548
+ /** The basic metadata of the long-running operation. */
2445
2549
  commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
2446
2550
  /** The test dataset validation information. */
2447
2551
  testDatasetValidation?: GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation;
@@ -2463,7 +2567,7 @@ declare namespace gapi.client {
2463
2567
  processorVersion?: string;
2464
2568
  }
2465
2569
  interface GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata {
2466
- /** The basic metadata of the long running operation. */
2570
+ /** The basic metadata of the long-running operation. */
2467
2571
  commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
2468
2572
  }
2469
2573
  // tslint:disable-next-line:no-empty-interface
@@ -2842,7 +2946,7 @@ declare namespace gapi.client {
2842
2946
  key?: string;
2843
2947
  /** OAuth 2.0 token for the current user. */
2844
2948
  oauth_token?: string;
2845
- /** The standard list page size. If unspecified, at most 5 evaluations will be returned. The maximum value is 100; values above 100 will be coerced to 100. */
2949
+ /** The standard list page size. If unspecified, at most `5` evaluations will be returned. The maximum value is `100`; values above `100` will be coerced to `100`. */
2846
2950
  pageSize?: number;
2847
2951
  /** A page token, received from a previous `ListEvaluations` call. Provide this to retrieve the subsequent page. */
2848
2952
  pageToken?: string;
@@ -3854,7 +3958,7 @@ declare namespace gapi.client {
3854
3958
  }): Request<GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse>;
3855
3959
  }
3856
3960
  interface LocationsResource {
3857
- /** Fetches processor types. Note that we do not use ListProcessorTypes here because it is not paginated. */
3961
+ /** Fetches processor types. Note that we don't use ListProcessorTypes here, because it isn't paginated. */
3858
3962
  fetchProcessorTypes(request?: {
3859
3963
  /** V1 error format. */
3860
3964
  "$.xgafv"?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.documentai-v1beta3",
3
- "version": "0.0.20230417",
3
+ "version": "0.0.20230420",
4
4
  "description": "TypeScript typings for Cloud Document AI API v1beta3",
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: 20230417
6
+ // Revision: 20230420
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -29,7 +29,7 @@ gapi.load('client', async () => {
29
29
  });
30
30
 
31
31
  async function run() {
32
- /** Fetches processor types. Note that we do not use ListProcessorTypes here because it is not paginated. */
32
+ /** Fetches processor types. Note that we don't use ListProcessorTypes here, because it isn't paginated. */
33
33
  await gapi.client.documentai.projects.locations.fetchProcessorTypes({
34
34
  parent: "Test string",
35
35
  });
@@ -105,6 +105,7 @@ gapi.load('client', async () => {
105
105
  advancedOcrOptions: [
106
106
  "Test string"
107
107
  ],
108
+ computeStyleInfo: true,
108
109
  enableImageQualityScores: true,
109
110
  enableNativePdfParsing: true,
110
111
  enableSymbol: true,
@@ -838,6 +839,33 @@ gapi.load('client', async () => {
838
839
  revision: 42,
839
840
  type: "Test string",
840
841
  },
842
+ styleInfo: {
843
+ backgroundColor: {
844
+ alpha: 42,
845
+ blue: 42,
846
+ green: 42,
847
+ red: 42,
848
+ },
849
+ bold: true,
850
+ fontSize: 42,
851
+ fontType: "Test string",
852
+ fontWeight: 42,
853
+ handwritten: true,
854
+ italic: true,
855
+ letterSpacing: 42,
856
+ pixelFontSize: 42,
857
+ smallcaps: true,
858
+ strikeout: true,
859
+ subscript: true,
860
+ superscript: true,
861
+ textColor: {
862
+ alpha: 42,
863
+ blue: 42,
864
+ green: 42,
865
+ red: 42,
866
+ },
867
+ underlined: true,
868
+ },
841
869
  }
842
870
  ],
843
871
  transforms: [
@@ -1656,6 +1684,33 @@ gapi.load('client', async () => {
1656
1684
  revision: 42,
1657
1685
  type: "Test string",
1658
1686
  },
1687
+ styleInfo: {
1688
+ backgroundColor: {
1689
+ alpha: 42,
1690
+ blue: 42,
1691
+ green: 42,
1692
+ red: 42,
1693
+ },
1694
+ bold: true,
1695
+ fontSize: 42,
1696
+ fontType: "Test string",
1697
+ fontWeight: 42,
1698
+ handwritten: true,
1699
+ italic: true,
1700
+ letterSpacing: 42,
1701
+ pixelFontSize: 42,
1702
+ smallcaps: true,
1703
+ strikeout: true,
1704
+ subscript: true,
1705
+ superscript: true,
1706
+ textColor: {
1707
+ alpha: 42,
1708
+ blue: 42,
1709
+ green: 42,
1710
+ red: 42,
1711
+ },
1712
+ underlined: true,
1713
+ },
1659
1714
  }
1660
1715
  ],
1661
1716
  transforms: [
@@ -1798,6 +1853,7 @@ gapi.load('client', async () => {
1798
1853
  advancedOcrOptions: [
1799
1854
  "Test string"
1800
1855
  ],
1856
+ computeStyleInfo: true,
1801
1857
  enableImageQualityScores: true,
1802
1858
  enableNativePdfParsing: true,
1803
1859
  enableSymbol: true,
@@ -2504,6 +2560,33 @@ gapi.load('client', async () => {
2504
2560
  revision: 42,
2505
2561
  type: "Test string",
2506
2562
  },
2563
+ styleInfo: {
2564
+ backgroundColor: {
2565
+ alpha: 42,
2566
+ blue: 42,
2567
+ green: 42,
2568
+ red: 42,
2569
+ },
2570
+ bold: true,
2571
+ fontSize: 42,
2572
+ fontType: "Test string",
2573
+ fontWeight: 42,
2574
+ handwritten: true,
2575
+ italic: true,
2576
+ letterSpacing: 42,
2577
+ pixelFontSize: 42,
2578
+ smallcaps: true,
2579
+ strikeout: true,
2580
+ subscript: true,
2581
+ superscript: true,
2582
+ textColor: {
2583
+ alpha: 42,
2584
+ blue: 42,
2585
+ green: 42,
2586
+ red: 42,
2587
+ },
2588
+ underlined: true,
2589
+ },
2507
2590
  }
2508
2591
  ],
2509
2592
  transforms: [
@@ -3353,6 +3436,33 @@ gapi.load('client', async () => {
3353
3436
  revision: 42,
3354
3437
  type: "Test string",
3355
3438
  },
3439
+ styleInfo: {
3440
+ backgroundColor: {
3441
+ alpha: 42,
3442
+ blue: 42,
3443
+ green: 42,
3444
+ red: 42,
3445
+ },
3446
+ bold: true,
3447
+ fontSize: 42,
3448
+ fontType: "Test string",
3449
+ fontWeight: 42,
3450
+ handwritten: true,
3451
+ italic: true,
3452
+ letterSpacing: 42,
3453
+ pixelFontSize: 42,
3454
+ smallcaps: true,
3455
+ strikeout: true,
3456
+ subscript: true,
3457
+ superscript: true,
3458
+ textColor: {
3459
+ alpha: 42,
3460
+ blue: 42,
3461
+ green: 42,
3462
+ red: 42,
3463
+ },
3464
+ underlined: true,
3465
+ },
3356
3466
  }
3357
3467
  ],
3358
3468
  transforms: [
@@ -3533,6 +3643,7 @@ gapi.load('client', async () => {
3533
3643
  advancedOcrOptions: [
3534
3644
  "Test string"
3535
3645
  ],
3646
+ computeStyleInfo: true,
3536
3647
  enableImageQualityScores: true,
3537
3648
  enableNativePdfParsing: true,
3538
3649
  enableSymbol: true,
@@ -4272,6 +4383,33 @@ gapi.load('client', async () => {
4272
4383
  revision: 42,
4273
4384
  type: "Test string",
4274
4385
  },
4386
+ styleInfo: {
4387
+ backgroundColor: {
4388
+ alpha: 42,
4389
+ blue: 42,
4390
+ green: 42,
4391
+ red: 42,
4392
+ },
4393
+ bold: true,
4394
+ fontSize: 42,
4395
+ fontType: "Test string",
4396
+ fontWeight: 42,
4397
+ handwritten: true,
4398
+ italic: true,
4399
+ letterSpacing: 42,
4400
+ pixelFontSize: 42,
4401
+ smallcaps: true,
4402
+ strikeout: true,
4403
+ subscript: true,
4404
+ superscript: true,
4405
+ textColor: {
4406
+ alpha: 42,
4407
+ blue: 42,
4408
+ green: 42,
4409
+ red: 42,
4410
+ },
4411
+ underlined: true,
4412
+ },
4275
4413
  }
4276
4414
  ],
4277
4415
  transforms: [
@@ -5090,6 +5228,33 @@ gapi.load('client', async () => {
5090
5228
  revision: 42,
5091
5229
  type: "Test string",
5092
5230
  },
5231
+ styleInfo: {
5232
+ backgroundColor: {
5233
+ alpha: 42,
5234
+ blue: 42,
5235
+ green: 42,
5236
+ red: 42,
5237
+ },
5238
+ bold: true,
5239
+ fontSize: 42,
5240
+ fontType: "Test string",
5241
+ fontWeight: 42,
5242
+ handwritten: true,
5243
+ italic: true,
5244
+ letterSpacing: 42,
5245
+ pixelFontSize: 42,
5246
+ smallcaps: true,
5247
+ strikeout: true,
5248
+ subscript: true,
5249
+ superscript: true,
5250
+ textColor: {
5251
+ alpha: 42,
5252
+ blue: 42,
5253
+ green: 42,
5254
+ red: 42,
5255
+ },
5256
+ underlined: true,
5257
+ },
5093
5258
  }
5094
5259
  ],
5095
5260
  transforms: [
@@ -5232,6 +5397,7 @@ gapi.load('client', async () => {
5232
5397
  advancedOcrOptions: [
5233
5398
  "Test string"
5234
5399
  ],
5400
+ computeStyleInfo: true,
5235
5401
  enableImageQualityScores: true,
5236
5402
  enableNativePdfParsing: true,
5237
5403
  enableSymbol: true,