@maxim_mazurok/gapi.client.documentai-v1 0.0.20230412 → 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 +149 -47
  2. package/package.json +1 -1
  3. package/tests.ts +83 -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=v1
12
- // Revision: 20230412
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 GoogleCloudDocumentaiV1Barcode {
@@ -686,11 +686,45 @@ declare namespace gapi.client {
686
686
  layout?: GoogleCloudDocumentaiV1beta1DocumentPageLayout;
687
687
  /** The history of this annotation. */
688
688
  provenance?: GoogleCloudDocumentaiV1beta1DocumentProvenance;
689
+ /** Text style attributes. */
690
+ styleInfo?: GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo;
689
691
  }
690
692
  interface GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak {
691
693
  /** Detected break type. */
692
694
  type?: string;
693
695
  }
696
+ interface GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo {
697
+ /** Color of the background. */
698
+ backgroundColor?: GoogleTypeColor;
699
+ /** Whether the text is bold (equivalent to font weight >= 700). */
700
+ bold?: boolean;
701
+ /** Font size in points (1 point is 1/72"). */
702
+ fontSize?: number;
703
+ /** Name or style of the font. */
704
+ fontType?: string;
705
+ /** TrueType weight on a scale 100 (Thin) to 1000 (Ultra-heavy). Normal is 400, Bold is 700. */
706
+ fontWeight?: number;
707
+ /** Whether the text is handwritten. */
708
+ handwritten?: boolean;
709
+ /** Whether the text is italic. */
710
+ italic?: boolean;
711
+ /** Letter spacing in points. */
712
+ letterSpacing?: number;
713
+ /** Font size in pixels, equal to unrounded_fontsize * resolution / 72.0. */
714
+ pixelFontSize?: number;
715
+ /** Whether the text are small caps. */
716
+ smallcaps?: boolean;
717
+ /** Whether the text is strikethrough. */
718
+ strikeout?: boolean;
719
+ /** Whether the text is a subscript. */
720
+ subscript?: boolean;
721
+ /** Whether the text is a superscript. */
722
+ superscript?: boolean;
723
+ /** Color of the text. */
724
+ textColor?: GoogleTypeColor;
725
+ /** Whether the text is underlined. */
726
+ underlined?: boolean;
727
+ }
694
728
  interface GoogleCloudDocumentaiV1beta1DocumentPageVisualElement {
695
729
  /** A list of detected languages together with confidence. */
696
730
  detectedLanguages?: GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage[];
@@ -1192,11 +1226,45 @@ declare namespace gapi.client {
1192
1226
  layout?: GoogleCloudDocumentaiV1beta2DocumentPageLayout;
1193
1227
  /** The history of this annotation. */
1194
1228
  provenance?: GoogleCloudDocumentaiV1beta2DocumentProvenance;
1229
+ /** Text style attributes. */
1230
+ styleInfo?: GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo;
1195
1231
  }
1196
1232
  interface GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak {
1197
1233
  /** Detected break type. */
1198
1234
  type?: string;
1199
1235
  }
1236
+ interface GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo {
1237
+ /** Color of the background. */
1238
+ backgroundColor?: GoogleTypeColor;
1239
+ /** Whether the text is bold (equivalent to font weight >= 700). */
1240
+ bold?: boolean;
1241
+ /** Font size in points (1 point is 1/72"). */
1242
+ fontSize?: number;
1243
+ /** Name or style of the font. */
1244
+ fontType?: string;
1245
+ /** TrueType weight on a scale 100 (Thin) to 1000 (Ultra-heavy). Normal is 400, Bold is 700. */
1246
+ fontWeight?: number;
1247
+ /** Whether the text is handwritten. */
1248
+ handwritten?: boolean;
1249
+ /** Whether the text is italic. */
1250
+ italic?: boolean;
1251
+ /** Letter spacing in points. */
1252
+ letterSpacing?: number;
1253
+ /** Font size in pixels, equal to unrounded_fontsize * resolution / 72.0. */
1254
+ pixelFontSize?: number;
1255
+ /** Whether the text are small caps. */
1256
+ smallcaps?: boolean;
1257
+ /** Whether the text is strikethrough. */
1258
+ strikeout?: boolean;
1259
+ /** Whether the text is a subscript. */
1260
+ subscript?: boolean;
1261
+ /** Whether the text is a superscript. */
1262
+ superscript?: boolean;
1263
+ /** Color of the text. */
1264
+ textColor?: GoogleTypeColor;
1265
+ /** Whether the text is underlined. */
1266
+ underlined?: boolean;
1267
+ }
1200
1268
  interface GoogleCloudDocumentaiV1beta2DocumentPageVisualElement {
1201
1269
  /** A list of detected languages together with confidence. */
1202
1270
  detectedLanguages?: GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage[];
@@ -1376,8 +1444,8 @@ declare namespace gapi.client {
1376
1444
  }
1377
1445
  interface GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus {
1378
1446
  /**
1379
- * 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
1380
- * the long running operation returned by ReviewDocument method.
1447
+ * 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
1448
+ * the long-running operation returned by ReviewDocument method.
1381
1449
  */
1382
1450
  humanReviewOperation?: string;
1383
1451
  /** The status of human review on the processed document. */
@@ -1408,36 +1476,36 @@ declare namespace gapi.client {
1408
1476
  updateTime?: string;
1409
1477
  }
1410
1478
  interface GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata {
1411
- /** The basic metadata of the long running operation. */
1479
+ /** The basic metadata of the long-running operation. */
1412
1480
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
1413
1481
  }
1414
1482
  interface GoogleCloudDocumentaiV1beta3DeleteProcessorVersionMetadata {
1415
- /** The basic metadata of the long running operation. */
1483
+ /** The basic metadata of the long-running operation. */
1416
1484
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
1417
1485
  }
1418
1486
  interface GoogleCloudDocumentaiV1beta3DeployProcessorVersionMetadata {
1419
- /** The basic metadata of the long running operation. */
1487
+ /** The basic metadata of the long-running operation. */
1420
1488
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
1421
1489
  }
1422
1490
  // tslint:disable-next-line:no-empty-interface
1423
1491
  interface GoogleCloudDocumentaiV1beta3DeployProcessorVersionResponse {
1424
1492
  }
1425
1493
  interface GoogleCloudDocumentaiV1beta3DisableProcessorMetadata {
1426
- /** The basic metadata of the long running operation. */
1494
+ /** The basic metadata of the long-running operation. */
1427
1495
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
1428
1496
  }
1429
1497
  // tslint:disable-next-line:no-empty-interface
1430
1498
  interface GoogleCloudDocumentaiV1beta3DisableProcessorResponse {
1431
1499
  }
1432
1500
  interface GoogleCloudDocumentaiV1beta3EnableProcessorMetadata {
1433
- /** The basic metadata of the long running operation. */
1501
+ /** The basic metadata of the long-running operation. */
1434
1502
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
1435
1503
  }
1436
1504
  // tslint:disable-next-line:no-empty-interface
1437
1505
  interface GoogleCloudDocumentaiV1beta3EnableProcessorResponse {
1438
1506
  }
1439
1507
  interface GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata {
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 GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionResponse {
@@ -1446,8 +1514,8 @@ declare namespace gapi.client {
1446
1514
  }
1447
1515
  interface GoogleCloudDocumentaiV1beta3HumanReviewStatus {
1448
1516
  /**
1449
- * 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
1450
- * metadata as the long running operation returned by [ReviewDocument] method.
1517
+ * 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
1518
+ * as the long-running operation returned by ReviewDocument.
1451
1519
  */
1452
1520
  humanReviewOperation?: string;
1453
1521
  /** The state of human review on the processing request. */
@@ -1456,7 +1524,7 @@ declare namespace gapi.client {
1456
1524
  stateMessage?: string;
1457
1525
  }
1458
1526
  interface GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata {
1459
- /** The basic metadata for the long running operation. */
1527
+ /** The basic metadata for the long-running operation. */
1460
1528
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
1461
1529
  }
1462
1530
  interface GoogleCloudDocumentaiV1beta3ImportProcessorVersionResponse {
@@ -1464,7 +1532,7 @@ declare namespace gapi.client {
1464
1532
  processorVersion?: string;
1465
1533
  }
1466
1534
  interface GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata {
1467
- /** The basic metadata of the long running operation. */
1535
+ /** The basic metadata of the long-running operation. */
1468
1536
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
1469
1537
  /** The creation time of the operation. */
1470
1538
  createTime?: string;
@@ -1486,14 +1554,14 @@ declare namespace gapi.client {
1486
1554
  state?: string;
1487
1555
  }
1488
1556
  interface GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata {
1489
- /** The basic metadata of the long running operation. */
1557
+ /** The basic metadata of the long-running operation. */
1490
1558
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
1491
1559
  }
1492
1560
  // tslint:disable-next-line:no-empty-interface
1493
1561
  interface GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionResponse {
1494
1562
  }
1495
1563
  interface GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata {
1496
- /** The basic metadata of the long running operation. */
1564
+ /** The basic metadata of the long-running operation. */
1497
1565
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
1498
1566
  /** The test dataset validation information. */
1499
1567
  testDatasetValidation?: GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation;
@@ -1515,7 +1583,7 @@ declare namespace gapi.client {
1515
1583
  processorVersion?: string;
1516
1584
  }
1517
1585
  interface GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata {
1518
- /** The basic metadata of the long running operation. */
1586
+ /** The basic metadata of the long-running operation. */
1519
1587
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
1520
1588
  }
1521
1589
  // tslint:disable-next-line:no-empty-interface
@@ -1540,15 +1608,15 @@ declare namespace gapi.client {
1540
1608
  updateTime?: string;
1541
1609
  }
1542
1610
  interface GoogleCloudDocumentaiV1DeleteProcessorMetadata {
1543
- /** The basic metadata of the long running operation. */
1611
+ /** The basic metadata of the long-running operation. */
1544
1612
  commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
1545
1613
  }
1546
1614
  interface GoogleCloudDocumentaiV1DeleteProcessorVersionMetadata {
1547
- /** The basic metadata of the long running operation. */
1615
+ /** The basic metadata of the long-running operation. */
1548
1616
  commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
1549
1617
  }
1550
1618
  interface GoogleCloudDocumentaiV1DeployProcessorVersionMetadata {
1551
- /** The basic metadata of the long running operation. */
1619
+ /** The basic metadata of the long-running operation. */
1552
1620
  commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
1553
1621
  }
1554
1622
  // tslint:disable-next-line:no-empty-interface
@@ -1558,7 +1626,7 @@ declare namespace gapi.client {
1558
1626
  interface GoogleCloudDocumentaiV1DeployProcessorVersionResponse {
1559
1627
  }
1560
1628
  interface GoogleCloudDocumentaiV1DisableProcessorMetadata {
1561
- /** The basic metadata of the long running operation. */
1629
+ /** The basic metadata of the long-running operation. */
1562
1630
  commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
1563
1631
  }
1564
1632
  // tslint:disable-next-line:no-empty-interface
@@ -1893,11 +1961,45 @@ declare namespace gapi.client {
1893
1961
  layout?: GoogleCloudDocumentaiV1DocumentPageLayout;
1894
1962
  /** The history of this annotation. */
1895
1963
  provenance?: GoogleCloudDocumentaiV1DocumentProvenance;
1964
+ /** Text style attributes. */
1965
+ styleInfo?: GoogleCloudDocumentaiV1DocumentPageTokenStyleInfo;
1896
1966
  }
1897
1967
  interface GoogleCloudDocumentaiV1DocumentPageTokenDetectedBreak {
1898
1968
  /** Detected break type. */
1899
1969
  type?: string;
1900
1970
  }
1971
+ interface GoogleCloudDocumentaiV1DocumentPageTokenStyleInfo {
1972
+ /** Color of the background. */
1973
+ backgroundColor?: GoogleTypeColor;
1974
+ /** Whether the text is bold (equivalent to font weight >= 700). */
1975
+ bold?: boolean;
1976
+ /** Font size in points (1 point is 1/72"). */
1977
+ fontSize?: number;
1978
+ /** Name or style of the font. */
1979
+ fontType?: string;
1980
+ /** TrueType weight on a scale 100 (Thin) to 1000 (Ultra-heavy). Normal is 400, Bold is 700. */
1981
+ fontWeight?: number;
1982
+ /** Whether the text is handwritten. */
1983
+ handwritten?: boolean;
1984
+ /** Whether the text is italic. */
1985
+ italic?: boolean;
1986
+ /** Letter spacing in points. */
1987
+ letterSpacing?: number;
1988
+ /** Font size in pixels, equal to unrounded_fontsize * resolution / 72.0. */
1989
+ pixelFontSize?: number;
1990
+ /** Whether the text are small caps. */
1991
+ smallcaps?: boolean;
1992
+ /** Whether the text is strikethrough. */
1993
+ strikeout?: boolean;
1994
+ /** Whether the text is a subscript. */
1995
+ subscript?: boolean;
1996
+ /** Whether the text is a superscript. */
1997
+ superscript?: boolean;
1998
+ /** Color of the text. */
1999
+ textColor?: GoogleTypeColor;
2000
+ /** Whether the text is underlined. */
2001
+ underlined?: boolean;
2002
+ }
1901
2003
  interface GoogleCloudDocumentaiV1DocumentPageVisualElement {
1902
2004
  /** A list of detected languages together with confidence. */
1903
2005
  detectedLanguages?: GoogleCloudDocumentaiV1DocumentPageDetectedLanguage[];
@@ -2060,7 +2162,7 @@ declare namespace gapi.client {
2060
2162
  textAnchor?: GoogleCloudDocumentaiV1DocumentTextAnchor;
2061
2163
  }
2062
2164
  interface GoogleCloudDocumentaiV1EnableProcessorMetadata {
2063
- /** The basic metadata of the long running operation. */
2165
+ /** The basic metadata of the long-running operation. */
2064
2166
  commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
2065
2167
  }
2066
2168
  // tslint:disable-next-line:no-empty-interface
@@ -2070,7 +2172,7 @@ declare namespace gapi.client {
2070
2172
  interface GoogleCloudDocumentaiV1EnableProcessorResponse {
2071
2173
  }
2072
2174
  interface GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata {
2073
- /** The basic metadata of the long running operation. */
2175
+ /** The basic metadata of the long-running operation. */
2074
2176
  commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
2075
2177
  }
2076
2178
  interface GoogleCloudDocumentaiV1EvaluateProcessorVersionRequest {
@@ -2183,8 +2285,8 @@ declare namespace gapi.client {
2183
2285
  }
2184
2286
  interface GoogleCloudDocumentaiV1HumanReviewStatus {
2185
2287
  /**
2186
- * 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
2187
- * metadata as the long running operation returned by [ReviewDocument] method.
2288
+ * 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
2289
+ * as the long-running operation returned by ReviewDocument.
2188
2290
  */
2189
2291
  humanReviewOperation?: string;
2190
2292
  /** The state of human review on the processing request. */
@@ -2237,7 +2339,7 @@ declare namespace gapi.client {
2237
2339
  processEndpoint?: string;
2238
2340
  /** Output only. The state of the processor. */
2239
2341
  state?: string;
2240
- /** The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc. To get a list of processors types, see FetchProcessorTypes. */
2342
+ /** The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. To get a list of processor types, see FetchProcessorTypes. */
2241
2343
  type?: string;
2242
2344
  }
2243
2345
  interface GoogleCloudDocumentaiV1ProcessorType {
@@ -2253,7 +2355,7 @@ declare namespace gapi.client {
2253
2355
  name?: string;
2254
2356
  /** A set of Cloud Storage URIs of sample documents for this processor. */
2255
2357
  sampleDocumentUris?: string[];
2256
- /** The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc. */
2358
+ /** The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. */
2257
2359
  type?: string;
2258
2360
  }
2259
2361
  interface GoogleCloudDocumentaiV1ProcessorTypeLocationInfo {
@@ -2290,7 +2392,7 @@ declare namespace gapi.client {
2290
2392
  }
2291
2393
  interface GoogleCloudDocumentaiV1ProcessRequest {
2292
2394
  /**
2293
- * 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
2395
+ * 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
2294
2396
  * `pages.{page_field_name}`.
2295
2397
  */
2296
2398
  fieldMask?: string;
@@ -2314,7 +2416,7 @@ declare namespace gapi.client {
2314
2416
  mimeType?: string;
2315
2417
  }
2316
2418
  interface GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata {
2317
- /** The basic metadata of the long running operation. */
2419
+ /** The basic metadata of the long-running operation. */
2318
2420
  commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
2319
2421
  /** The Crowd Compute question ID. */
2320
2422
  questionId?: string;
@@ -2338,7 +2440,7 @@ declare namespace gapi.client {
2338
2440
  state?: string;
2339
2441
  }
2340
2442
  interface GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata {
2341
- /** The basic metadata of the long running operation. */
2443
+ /** The basic metadata of the long-running operation. */
2342
2444
  commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
2343
2445
  }
2344
2446
  interface GoogleCloudDocumentaiV1SetDefaultProcessorVersionRequest {
@@ -2349,7 +2451,7 @@ declare namespace gapi.client {
2349
2451
  interface GoogleCloudDocumentaiV1SetDefaultProcessorVersionResponse {
2350
2452
  }
2351
2453
  interface GoogleCloudDocumentaiV1TrainProcessorVersionMetadata {
2352
- /** The basic metadata of the long running operation. */
2454
+ /** The basic metadata of the long-running operation. */
2353
2455
  commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
2354
2456
  /** The test dataset validation information. */
2355
2457
  testDatasetValidation?: GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation;
@@ -2390,7 +2492,7 @@ declare namespace gapi.client {
2390
2492
  processorVersion?: string;
2391
2493
  }
2392
2494
  interface GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata {
2393
- /** The basic metadata of the long running operation. */
2495
+ /** The basic metadata of the long-running operation. */
2394
2496
  commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
2395
2497
  }
2396
2498
  // tslint:disable-next-line:no-empty-interface
@@ -2810,7 +2912,7 @@ declare namespace gapi.client {
2810
2912
  key?: string;
2811
2913
  /** OAuth 2.0 token for the current user. */
2812
2914
  oauth_token?: string;
2813
- /** 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. */
2915
+ /** 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`. */
2814
2916
  pageSize?: number;
2815
2917
  /** A page token, received from a previous `ListEvaluations` call. Provide this to retrieve the subsequent page. */
2816
2918
  pageToken?: string;
@@ -3766,7 +3868,7 @@ declare namespace gapi.client {
3766
3868
  }): Request<GoogleCloudDocumentaiV1ListProcessorTypesResponse>;
3767
3869
  }
3768
3870
  interface LocationsResource {
3769
- /** Fetches processor types. Note that we do not use ListProcessorTypes here because it is not paginated. */
3871
+ /** Fetches processor types. Note that we don't use ListProcessorTypes here, because it isn't paginated. */
3770
3872
  fetchProcessorTypes(request?: {
3771
3873
  /** V1 error format. */
3772
3874
  "$.xgafv"?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.documentai-v1",
3
- "version": "0.0.20230412",
3
+ "version": "0.0.20230420",
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: 20230412
6
+ // Revision: 20230420
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -36,7 +36,7 @@ gapi.load('client', async () => {
36
36
  await gapi.client.documentai.operations.delete({
37
37
  name: "Test string",
38
38
  });
39
- /** Fetches processor types. Note that we do not use ListProcessorTypes here because it is not paginated. */
39
+ /** Fetches processor types. Note that we don't use ListProcessorTypes here, because it isn't paginated. */
40
40
  await gapi.client.documentai.projects.locations.fetchProcessorTypes({
41
41
  parent: "Test string",
42
42
  });
@@ -822,6 +822,33 @@ gapi.load('client', async () => {
822
822
  revision: 42,
823
823
  type: "Test string",
824
824
  },
825
+ styleInfo: {
826
+ backgroundColor: {
827
+ alpha: 42,
828
+ blue: 42,
829
+ green: 42,
830
+ red: 42,
831
+ },
832
+ bold: true,
833
+ fontSize: 42,
834
+ fontType: "Test string",
835
+ fontWeight: 42,
836
+ handwritten: true,
837
+ italic: true,
838
+ letterSpacing: 42,
839
+ pixelFontSize: 42,
840
+ smallcaps: true,
841
+ strikeout: true,
842
+ subscript: true,
843
+ superscript: true,
844
+ textColor: {
845
+ alpha: 42,
846
+ blue: 42,
847
+ green: 42,
848
+ red: 42,
849
+ },
850
+ underlined: true,
851
+ },
825
852
  }
826
853
  ],
827
854
  transforms: [
@@ -1687,6 +1714,33 @@ gapi.load('client', async () => {
1687
1714
  revision: 42,
1688
1715
  type: "Test string",
1689
1716
  },
1717
+ styleInfo: {
1718
+ backgroundColor: {
1719
+ alpha: 42,
1720
+ blue: 42,
1721
+ green: 42,
1722
+ red: 42,
1723
+ },
1724
+ bold: true,
1725
+ fontSize: 42,
1726
+ fontType: "Test string",
1727
+ fontWeight: 42,
1728
+ handwritten: true,
1729
+ italic: true,
1730
+ letterSpacing: 42,
1731
+ pixelFontSize: 42,
1732
+ smallcaps: true,
1733
+ strikeout: true,
1734
+ subscript: true,
1735
+ superscript: true,
1736
+ textColor: {
1737
+ alpha: 42,
1738
+ blue: 42,
1739
+ green: 42,
1740
+ red: 42,
1741
+ },
1742
+ underlined: true,
1743
+ },
1690
1744
  }
1691
1745
  ],
1692
1746
  transforms: [
@@ -2577,6 +2631,33 @@ gapi.load('client', async () => {
2577
2631
  revision: 42,
2578
2632
  type: "Test string",
2579
2633
  },
2634
+ styleInfo: {
2635
+ backgroundColor: {
2636
+ alpha: 42,
2637
+ blue: 42,
2638
+ green: 42,
2639
+ red: 42,
2640
+ },
2641
+ bold: true,
2642
+ fontSize: 42,
2643
+ fontType: "Test string",
2644
+ fontWeight: 42,
2645
+ handwritten: true,
2646
+ italic: true,
2647
+ letterSpacing: 42,
2648
+ pixelFontSize: 42,
2649
+ smallcaps: true,
2650
+ strikeout: true,
2651
+ subscript: true,
2652
+ superscript: true,
2653
+ textColor: {
2654
+ alpha: 42,
2655
+ blue: 42,
2656
+ green: 42,
2657
+ red: 42,
2658
+ },
2659
+ underlined: true,
2660
+ },
2580
2661
  }
2581
2662
  ],
2582
2663
  transforms: [