@maxim_mazurok/gapi.client.documentai-v1 0.0.20221106 → 0.0.20221114

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 +96 -267
  2. package/package.json +1 -1
  3. package/tests.ts +1 -57
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: 20221106
12
+ // Revision: 20221114
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -291,24 +291,24 @@ declare namespace gapi.client {
291
291
  }
292
292
  interface GoogleCloudDocumentaiV1Barcode {
293
293
  /**
294
- * Format of a barcode. The supported formats are: CODE_128: Code 128 type. CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: Codabar type. DATA_MATRIX: 2D Data Matrix type. ITF:
295
- * ITF type. EAN_13: EAN-13 type. EAN_8: EAN-8 type. QR_CODE: 2D QR code type. UPC_A: UPC-A type. UPC_E: UPC-E type. PDF417: PDF417 type. AZTEC: 2D Aztec code type. DATABAR: GS1
296
- * DataBar code type.
294
+ * Format of a barcode. The supported formats are: - `CODE_128`: Code 128 type. - `CODE_39`: Code 39 type. - `CODE_93`: Code 93 type. - `CODABAR`: Codabar type. - `DATA_MATRIX`: 2D
295
+ * Data Matrix type. - `ITF`: ITF type. - `EAN_13`: EAN-13 type. - `EAN_8`: EAN-8 type. - `QR_CODE`: 2D QR code type. - `UPC_A`: UPC-A type. - `UPC_E`: UPC-E type. - `PDF417`: PDF417
296
+ * type. - `AZTEC`: 2D Aztec code type. - `DATABAR`: GS1 DataBar code type.
297
297
  */
298
298
  format?: string;
299
- /** Raw value encoded in the barcode. For example, 'MEBKM:TITLE:Google;URL:https://www.google.com;;'. */
299
+ /** Raw value encoded in the barcode. For example: `'MEBKM:TITLE:Google;URL:https://www.google.com;;'`. */
300
300
  rawValue?: string;
301
301
  /**
302
- * Value format describes the format of the value that a barcode encodes. The supported formats are: CONTACT_INFO: Contact information. EMAIL: Email address. ISBN: ISBN identifier.
303
- * PHONE: Phone number. PRODUCT: Product. SMS: SMS message. TEXT: Text string. URL: URL address. WIFI: Wifi information. GEO: Geo-localization. CALENDAR_EVENT: Calendar event.
304
- * DRIVER_LICENSE: Driver's license.
302
+ * Value format describes the format of the value that a barcode encodes. The supported formats are: - `CONTACT_INFO`: Contact information. - `EMAIL`: Email address. - `ISBN`: ISBN
303
+ * identifier. - `PHONE`: Phone number. - `PRODUCT`: Product. - `SMS`: SMS message. - `TEXT`: Text string. - `URL`: URL address. - `WIFI`: Wifi information. - `GEO`: Geo-localization.
304
+ * - `CALENDAR_EVENT`: Calendar event. - `DRIVER_LICENSE`: Driver's license.
305
305
  */
306
306
  valueFormat?: string;
307
307
  }
308
308
  interface GoogleCloudDocumentaiV1BatchDocumentsInputConfig {
309
309
  /** The set of documents individually specified on Cloud Storage. */
310
310
  gcsDocuments?: GoogleCloudDocumentaiV1GcsDocuments;
311
- /** The set of documents that match the specified Cloud Storage [gcs_prefix]. */
311
+ /** The set of documents that match the specified Cloud Storage `gcs_prefix`. */
312
312
  gcsPrefix?: GoogleCloudDocumentaiV1GcsPrefix;
313
313
  }
314
314
  interface GoogleCloudDocumentaiV1BatchProcessMetadata {
@@ -349,17 +349,17 @@ declare namespace gapi.client {
349
349
  }
350
350
  interface GoogleCloudDocumentaiV1beta1Barcode {
351
351
  /**
352
- * Format of a barcode. The supported formats are: CODE_128: Code 128 type. CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: Codabar type. DATA_MATRIX: 2D Data Matrix type. ITF:
353
- * ITF type. EAN_13: EAN-13 type. EAN_8: EAN-8 type. QR_CODE: 2D QR code type. UPC_A: UPC-A type. UPC_E: UPC-E type. PDF417: PDF417 type. AZTEC: 2D Aztec code type. DATABAR: GS1
354
- * DataBar code type.
352
+ * Format of a barcode. The supported formats are: - `CODE_128`: Code 128 type. - `CODE_39`: Code 39 type. - `CODE_93`: Code 93 type. - `CODABAR`: Codabar type. - `DATA_MATRIX`: 2D
353
+ * Data Matrix type. - `ITF`: ITF type. - `EAN_13`: EAN-13 type. - `EAN_8`: EAN-8 type. - `QR_CODE`: 2D QR code type. - `UPC_A`: UPC-A type. - `UPC_E`: UPC-E type. - `PDF417`: PDF417
354
+ * type. - `AZTEC`: 2D Aztec code type. - `DATABAR`: GS1 DataBar code type.
355
355
  */
356
356
  format?: string;
357
- /** Raw value encoded in the barcode. For example, 'MEBKM:TITLE:Google;URL:https://www.google.com;;'. */
357
+ /** Raw value encoded in the barcode. For example: `'MEBKM:TITLE:Google;URL:https://www.google.com;;'`. */
358
358
  rawValue?: string;
359
359
  /**
360
- * Value format describes the format of the value that a barcode encodes. The supported formats are: CONTACT_INFO: Contact information. EMAIL: Email address. ISBN: ISBN identifier.
361
- * PHONE: Phone number. PRODUCT: Product. SMS: SMS message. TEXT: Text string. URL: URL address. WIFI: Wifi information. GEO: Geo-localization. CALENDAR_EVENT: Calendar event.
362
- * DRIVER_LICENSE: Driver's license.
360
+ * Value format describes the format of the value that a barcode encodes. The supported formats are: - `CONTACT_INFO`: Contact information. - `EMAIL`: Email address. - `ISBN`: ISBN
361
+ * identifier. - `PHONE`: Phone number. - `PRODUCT`: Product. - `SMS`: SMS message. - `TEXT`: Text string. - `URL`: URL address. - `WIFI`: Wifi information. - `GEO`: Geo-localization.
362
+ * - `CALENDAR_EVENT`: Calendar event. - `DRIVER_LICENSE`: Driver's license.
363
363
  */
364
364
  valueFormat?: string;
365
365
  }
@@ -396,7 +396,7 @@ declare namespace gapi.client {
396
396
  /** Optional. UTF-8 encoded text in reading order from the document. */
397
397
  text?: string;
398
398
  /**
399
- * Placeholder. A list of text corrections made to [Document.text]. This is usually used for annotating corrections to OCR mistakes. Text changes for a given revision may not overlap
399
+ * Placeholder. A list of text corrections made to Document.text. This is usually used for annotating corrections to OCR mistakes. Text changes for a given revision may not overlap
400
400
  * with each other.
401
401
  */
402
402
  textChanges?: GoogleCloudDocumentaiV1beta1DocumentTextChange[];
@@ -409,7 +409,7 @@ declare namespace gapi.client {
409
409
  uri?: string;
410
410
  }
411
411
  interface GoogleCloudDocumentaiV1beta1DocumentEntity {
412
- /** Optional. Confidence of detected Schema entity. Range [0, 1]. */
412
+ /** Optional. Confidence of detected Schema entity. Range `[0, 1]`. */
413
413
  confidence?: number;
414
414
  /** Optional. Canonical id. This will be a unique value in the entity list for this document. */
415
415
  id?: string;
@@ -509,7 +509,7 @@ declare namespace gapi.client {
509
509
  interface GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef {
510
510
  /** Optional. Identifies the bounding polygon of a layout element on the page. */
511
511
  boundingPoly?: GoogleCloudDocumentaiV1beta1BoundingPoly;
512
- /** Optional. Confidence of detected page element, if applicable. Range [0, 1]. */
512
+ /** Optional. Confidence of detected page element, if applicable. Range `[0, 1]`. */
513
513
  confidence?: number;
514
514
  /** Optional. Deprecated. Use PageRef.bounding_poly instead. */
515
515
  layoutId?: string;
@@ -536,9 +536,9 @@ declare namespace gapi.client {
536
536
  layout?: GoogleCloudDocumentaiV1beta1DocumentPageLayout;
537
537
  }
538
538
  interface GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage {
539
- /** Confidence of detected language. Range [0, 1]. */
539
+ /** Confidence of detected language. Range `[0, 1]`. */
540
540
  confidence?: number;
541
- /** 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. */
541
+ /** 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. */
542
542
  languageCode?: string;
543
543
  }
544
544
  interface GoogleCloudDocumentaiV1beta1DocumentPageDimension {
@@ -583,15 +583,15 @@ declare namespace gapi.client {
583
583
  interface GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores {
584
584
  /** A list of detected defects. */
585
585
  detectedDefects?: GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect[];
586
- /** The overall quality score. Range [0, 1] where 1 is perfect quality. */
586
+ /** The overall quality score. Range `[0, 1]` where 1 is perfect quality. */
587
587
  qualityScore?: number;
588
588
  }
589
589
  interface GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect {
590
- /** Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists. */
590
+ /** Confidence of detected defect. Range `[0, 1]` where 1 indicates strong confidence of that the defect exists. */
591
591
  confidence?: number;
592
592
  /**
593
- * Name of the defect type. Supported values are "quality/defect_blurry", "quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/defect_text_too_small",
594
- * "quality/defect_document_cutoff", "quality/defect_text_cutoff", "quality/defect_glare"
593
+ * Name of the defect type. Supported values are: - `quality/defect_blurry` - `quality/defect_noisy` - `quality/defect_dark` - `quality/defect_faint` - `quality/defect_text_too_small`
594
+ * - `quality/defect_document_cutoff` - `quality/defect_text_cutoff` - `quality/defect_glare`
595
595
  */
596
596
  type?: string;
597
597
  }
@@ -600,7 +600,7 @@ declare namespace gapi.client {
600
600
  boundingPoly?: GoogleCloudDocumentaiV1beta1BoundingPoly;
601
601
  /**
602
602
  * Confidence of the current Layout within context of the object this layout is for. e.g. confidence can be for a single token, a table, a visual element, etc. depending on context.
603
- * Range [0, 1].
603
+ * Range `[0, 1]`.
604
604
  */
605
605
  confidence?: number;
606
606
  /** Detected orientation for the Layout. */
@@ -747,7 +747,7 @@ declare namespace gapi.client {
747
747
  backgroundColor?: GoogleTypeColor;
748
748
  /** Text color. */
749
749
  color?: GoogleTypeColor;
750
- /** Font family such as "Arial", "Times New Roman". https://www.w3schools.com/cssref/pr_font_font-family.asp */
750
+ /** Font family such as `Arial`, `Times New Roman`. https://www.w3schools.com/cssref/pr_font_font-family.asp */
751
751
  fontFamily?: string;
752
752
  /** Font size. */
753
753
  fontSize?: GoogleCloudDocumentaiV1beta1DocumentStyleFontSize;
@@ -845,17 +845,17 @@ declare namespace gapi.client {
845
845
  }
846
846
  interface GoogleCloudDocumentaiV1beta2Barcode {
847
847
  /**
848
- * Format of a barcode. The supported formats are: CODE_128: Code 128 type. CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: Codabar type. DATA_MATRIX: 2D Data Matrix type. ITF:
849
- * ITF type. EAN_13: EAN-13 type. EAN_8: EAN-8 type. QR_CODE: 2D QR code type. UPC_A: UPC-A type. UPC_E: UPC-E type. PDF417: PDF417 type. AZTEC: 2D Aztec code type. DATABAR: GS1
850
- * DataBar code type.
848
+ * Format of a barcode. The supported formats are: - `CODE_128`: Code 128 type. - `CODE_39`: Code 39 type. - `CODE_93`: Code 93 type. - `CODABAR`: Codabar type. - `DATA_MATRIX`: 2D
849
+ * Data Matrix type. - `ITF`: ITF type. - `EAN_13`: EAN-13 type. - `EAN_8`: EAN-8 type. - `QR_CODE`: 2D QR code type. - `UPC_A`: UPC-A type. - `UPC_E`: UPC-E type. - `PDF417`: PDF417
850
+ * type. - `AZTEC`: 2D Aztec code type. - `DATABAR`: GS1 DataBar code type.
851
851
  */
852
852
  format?: string;
853
- /** Raw value encoded in the barcode. For example, 'MEBKM:TITLE:Google;URL:https://www.google.com;;'. */
853
+ /** Raw value encoded in the barcode. For example: `'MEBKM:TITLE:Google;URL:https://www.google.com;;'`. */
854
854
  rawValue?: string;
855
855
  /**
856
- * Value format describes the format of the value that a barcode encodes. The supported formats are: CONTACT_INFO: Contact information. EMAIL: Email address. ISBN: ISBN identifier.
857
- * PHONE: Phone number. PRODUCT: Product. SMS: SMS message. TEXT: Text string. URL: URL address. WIFI: Wifi information. GEO: Geo-localization. CALENDAR_EVENT: Calendar event.
858
- * DRIVER_LICENSE: Driver's license.
856
+ * Value format describes the format of the value that a barcode encodes. The supported formats are: - `CONTACT_INFO`: Contact information. - `EMAIL`: Email address. - `ISBN`: ISBN
857
+ * identifier. - `PHONE`: Phone number. - `PRODUCT`: Product. - `SMS`: SMS message. - `TEXT`: Text string. - `URL`: URL address. - `WIFI`: Wifi information. - `GEO`: Geo-localization.
858
+ * - `CALENDAR_EVENT`: Calendar event. - `DRIVER_LICENSE`: Driver's license.
859
859
  */
860
860
  valueFormat?: string;
861
861
  }
@@ -894,7 +894,7 @@ declare namespace gapi.client {
894
894
  /** Optional. UTF-8 encoded text in reading order from the document. */
895
895
  text?: string;
896
896
  /**
897
- * Placeholder. A list of text corrections made to [Document.text]. This is usually used for annotating corrections to OCR mistakes. Text changes for a given revision may not overlap
897
+ * Placeholder. A list of text corrections made to Document.text. This is usually used for annotating corrections to OCR mistakes. Text changes for a given revision may not overlap
898
898
  * with each other.
899
899
  */
900
900
  textChanges?: GoogleCloudDocumentaiV1beta2DocumentTextChange[];
@@ -907,7 +907,7 @@ declare namespace gapi.client {
907
907
  uri?: string;
908
908
  }
909
909
  interface GoogleCloudDocumentaiV1beta2DocumentEntity {
910
- /** Optional. Confidence of detected Schema entity. Range [0, 1]. */
910
+ /** Optional. Confidence of detected Schema entity. Range `[0, 1]`. */
911
911
  confidence?: number;
912
912
  /** Optional. Canonical id. This will be a unique value in the entity list for this document. */
913
913
  id?: string;
@@ -1015,7 +1015,7 @@ declare namespace gapi.client {
1015
1015
  interface GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef {
1016
1016
  /** Optional. Identifies the bounding polygon of a layout element on the page. */
1017
1017
  boundingPoly?: GoogleCloudDocumentaiV1beta2BoundingPoly;
1018
- /** Optional. Confidence of detected page element, if applicable. Range [0, 1]. */
1018
+ /** Optional. Confidence of detected page element, if applicable. Range `[0, 1]`. */
1019
1019
  confidence?: number;
1020
1020
  /** Optional. Deprecated. Use PageRef.bounding_poly instead. */
1021
1021
  layoutId?: string;
@@ -1042,9 +1042,9 @@ declare namespace gapi.client {
1042
1042
  layout?: GoogleCloudDocumentaiV1beta2DocumentPageLayout;
1043
1043
  }
1044
1044
  interface GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage {
1045
- /** Confidence of detected language. Range [0, 1]. */
1045
+ /** Confidence of detected language. Range `[0, 1]`. */
1046
1046
  confidence?: number;
1047
- /** 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. */
1047
+ /** 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. */
1048
1048
  languageCode?: string;
1049
1049
  }
1050
1050
  interface GoogleCloudDocumentaiV1beta2DocumentPageDimension {
@@ -1089,15 +1089,15 @@ declare namespace gapi.client {
1089
1089
  interface GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores {
1090
1090
  /** A list of detected defects. */
1091
1091
  detectedDefects?: GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect[];
1092
- /** The overall quality score. Range [0, 1] where 1 is perfect quality. */
1092
+ /** The overall quality score. Range `[0, 1]` where 1 is perfect quality. */
1093
1093
  qualityScore?: number;
1094
1094
  }
1095
1095
  interface GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect {
1096
- /** Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists. */
1096
+ /** Confidence of detected defect. Range `[0, 1]` where 1 indicates strong confidence of that the defect exists. */
1097
1097
  confidence?: number;
1098
1098
  /**
1099
- * Name of the defect type. Supported values are "quality/defect_blurry", "quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/defect_text_too_small",
1100
- * "quality/defect_document_cutoff", "quality/defect_text_cutoff", "quality/defect_glare"
1099
+ * Name of the defect type. Supported values are: - `quality/defect_blurry` - `quality/defect_noisy` - `quality/defect_dark` - `quality/defect_faint` - `quality/defect_text_too_small`
1100
+ * - `quality/defect_document_cutoff` - `quality/defect_text_cutoff` - `quality/defect_glare`
1101
1101
  */
1102
1102
  type?: string;
1103
1103
  }
@@ -1106,7 +1106,7 @@ declare namespace gapi.client {
1106
1106
  boundingPoly?: GoogleCloudDocumentaiV1beta2BoundingPoly;
1107
1107
  /**
1108
1108
  * Confidence of the current Layout within context of the object this layout is for. e.g. confidence can be for a single token, a table, a visual element, etc. depending on context.
1109
- * Range [0, 1].
1109
+ * Range `[0, 1]`.
1110
1110
  */
1111
1111
  confidence?: number;
1112
1112
  /** Detected orientation for the Layout. */
@@ -1253,7 +1253,7 @@ declare namespace gapi.client {
1253
1253
  backgroundColor?: GoogleTypeColor;
1254
1254
  /** Text color. */
1255
1255
  color?: GoogleTypeColor;
1256
- /** Font family such as "Arial", "Times New Roman". https://www.w3schools.com/cssref/pr_font_font-family.asp */
1256
+ /** Font family such as `Arial`, `Times New Roman`. https://www.w3schools.com/cssref/pr_font_font-family.asp */
1257
1257
  fontFamily?: string;
1258
1258
  /** Font size. */
1259
1259
  fontSize?: GoogleCloudDocumentaiV1beta2DocumentStyleFontSize;
@@ -1428,6 +1428,14 @@ declare namespace gapi.client {
1428
1428
  // tslint:disable-next-line:no-empty-interface
1429
1429
  interface GoogleCloudDocumentaiV1beta3EnableProcessorResponse {
1430
1430
  }
1431
+ interface GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata {
1432
+ /** The basic metadata of the long running operation. */
1433
+ commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
1434
+ }
1435
+ interface GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionResponse {
1436
+ /** The resource name of the created evaluation. */
1437
+ evaluation?: string;
1438
+ }
1431
1439
  interface GoogleCloudDocumentaiV1beta3HumanReviewStatus {
1432
1440
  /**
1433
1441
  * 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
@@ -1468,6 +1476,28 @@ declare namespace gapi.client {
1468
1476
  // tslint:disable-next-line:no-empty-interface
1469
1477
  interface GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionResponse {
1470
1478
  }
1479
+ interface GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata {
1480
+ /** The basic metadata of the long running operation. */
1481
+ commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
1482
+ /** The test dataset validation information. */
1483
+ testDatasetValidation?: GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation;
1484
+ /** The training dataset validation information. */
1485
+ trainingDatasetValidation?: GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation;
1486
+ }
1487
+ interface GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation {
1488
+ /** The total number of dataset errors. */
1489
+ datasetErrorCount?: number;
1490
+ /** Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training. */
1491
+ datasetErrors?: GoogleRpcStatus[];
1492
+ /** The total number of document errors. */
1493
+ documentErrorCount?: number;
1494
+ /** Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training. */
1495
+ documentErrors?: GoogleRpcStatus[];
1496
+ }
1497
+ interface GoogleCloudDocumentaiV1beta3TrainProcessorVersionResponse {
1498
+ /** The resource name of the processor version produced by training. */
1499
+ processorVersion?: string;
1500
+ }
1471
1501
  interface GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata {
1472
1502
  /** The basic metadata of the long running operation. */
1473
1503
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
@@ -1544,7 +1574,7 @@ declare namespace gapi.client {
1544
1574
  /** Optional. UTF-8 encoded text in reading order from the document. */
1545
1575
  text?: string;
1546
1576
  /**
1547
- * Placeholder. A list of text corrections made to [Document.text]. This is usually used for annotating corrections to OCR mistakes. Text changes for a given revision may not overlap
1577
+ * Placeholder. A list of text corrections made to Document.text. This is usually used for annotating corrections to OCR mistakes. Text changes for a given revision may not overlap
1548
1578
  * with each other.
1549
1579
  */
1550
1580
  textChanges?: GoogleCloudDocumentaiV1DocumentTextChange[];
@@ -1557,7 +1587,7 @@ declare namespace gapi.client {
1557
1587
  uri?: string;
1558
1588
  }
1559
1589
  interface GoogleCloudDocumentaiV1DocumentEntity {
1560
- /** Optional. Confidence of detected Schema entity. Range [0, 1]. */
1590
+ /** Optional. Confidence of detected Schema entity. Range `[0, 1]`. */
1561
1591
  confidence?: number;
1562
1592
  /** Optional. Canonical id. This will be a unique value in the entity list for this document. */
1563
1593
  id?: string;
@@ -1670,7 +1700,7 @@ declare namespace gapi.client {
1670
1700
  interface GoogleCloudDocumentaiV1DocumentPageAnchorPageRef {
1671
1701
  /** Optional. Identifies the bounding polygon of a layout element on the page. */
1672
1702
  boundingPoly?: GoogleCloudDocumentaiV1BoundingPoly;
1673
- /** Optional. Confidence of detected page element, if applicable. Range [0, 1]. */
1703
+ /** Optional. Confidence of detected page element, if applicable. Range `[0, 1]`. */
1674
1704
  confidence?: number;
1675
1705
  /** Optional. Deprecated. Use PageRef.bounding_poly instead. */
1676
1706
  layoutId?: string;
@@ -1697,9 +1727,9 @@ declare namespace gapi.client {
1697
1727
  layout?: GoogleCloudDocumentaiV1DocumentPageLayout;
1698
1728
  }
1699
1729
  interface GoogleCloudDocumentaiV1DocumentPageDetectedLanguage {
1700
- /** Confidence of detected language. Range [0, 1]. */
1730
+ /** Confidence of detected language. Range `[0, 1]`. */
1701
1731
  confidence?: number;
1702
- /** 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. */
1732
+ /** 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. */
1703
1733
  languageCode?: string;
1704
1734
  }
1705
1735
  interface GoogleCloudDocumentaiV1DocumentPageDimension {
@@ -1744,15 +1774,15 @@ declare namespace gapi.client {
1744
1774
  interface GoogleCloudDocumentaiV1DocumentPageImageQualityScores {
1745
1775
  /** A list of detected defects. */
1746
1776
  detectedDefects?: GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect[];
1747
- /** The overall quality score. Range [0, 1] where 1 is perfect quality. */
1777
+ /** The overall quality score. Range `[0, 1]` where 1 is perfect quality. */
1748
1778
  qualityScore?: number;
1749
1779
  }
1750
1780
  interface GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect {
1751
- /** Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists. */
1781
+ /** Confidence of detected defect. Range `[0, 1]` where 1 indicates strong confidence of that the defect exists. */
1752
1782
  confidence?: number;
1753
1783
  /**
1754
- * Name of the defect type. Supported values are "quality/defect_blurry", "quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/defect_text_too_small",
1755
- * "quality/defect_document_cutoff", "quality/defect_text_cutoff", "quality/defect_glare"
1784
+ * Name of the defect type. Supported values are: - `quality/defect_blurry` - `quality/defect_noisy` - `quality/defect_dark` - `quality/defect_faint` - `quality/defect_text_too_small`
1785
+ * - `quality/defect_document_cutoff` - `quality/defect_text_cutoff` - `quality/defect_glare`
1756
1786
  */
1757
1787
  type?: string;
1758
1788
  }
@@ -1761,7 +1791,7 @@ declare namespace gapi.client {
1761
1791
  boundingPoly?: GoogleCloudDocumentaiV1BoundingPoly;
1762
1792
  /**
1763
1793
  * Confidence of the current Layout within context of the object this layout is for. e.g. confidence can be for a single token, a table, a visual element, etc. depending on context.
1764
- * Range [0, 1].
1794
+ * Range `[0, 1]`.
1765
1795
  */
1766
1796
  confidence?: number;
1767
1797
  /** Detected orientation for the Layout. */
@@ -1910,18 +1940,16 @@ declare namespace gapi.client {
1910
1940
  baseTypes?: string[];
1911
1941
  /** User defined name for the type. */
1912
1942
  displayName?: string;
1913
- /** Metadata for the entity type. */
1914
- entityTypeMetadata?: GoogleCloudDocumentaiV1EntityTypeMetadata;
1915
1943
  /**
1916
1944
  * If specified, lists all the possible values for this entity. This should not be more than a handful of values. If the number of values is >10 or could change frequently use the
1917
1945
  * `EntityType.value_ontology` field and specify a list of all possible values in a value ontology file.
1918
1946
  */
1919
1947
  enumValues?: GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues;
1920
1948
  /**
1921
- * 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 matching
1922
- * is case-insensitive - Maximum 64 characters. - Must start with a letter. - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward compatibility internal infrastructure and
1923
- * 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
1924
- * honored for backward compatibility.
1949
+ * 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
1950
+ * matching is case-insensitive - Maximum 64 characters. - Must start with a letter. - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward compatibility internal
1951
+ * infrastructure 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,
1952
+ * but will still be honored for backward compatibility.
1925
1953
  */
1926
1954
  name?: string;
1927
1955
  /** Describing the nested structure, or composition of an entity. */
@@ -1936,8 +1964,6 @@ declare namespace gapi.client {
1936
1964
  name?: string;
1937
1965
  /** Occurrence type limits the number of instances an entity type appears in the document. */
1938
1966
  occurrenceType?: string;
1939
- /** Any additional metadata about the property can be added here. */
1940
- propertyMetadata?: GoogleCloudDocumentaiV1PropertyMetadata;
1941
1967
  /** A reference to the value type of the property. This type is subject to the same conventions as the `Entity.base_types` field. */
1942
1968
  valueType?: string;
1943
1969
  }
@@ -1967,7 +1993,7 @@ declare namespace gapi.client {
1967
1993
  backgroundColor?: GoogleTypeColor;
1968
1994
  /** Text color. */
1969
1995
  color?: GoogleTypeColor;
1970
- /** Font family such as "Arial", "Times New Roman". https://www.w3schools.com/cssref/pr_font_font-family.asp */
1996
+ /** Font family such as `Arial`, `Times New Roman`. https://www.w3schools.com/cssref/pr_font_font-family.asp */
1971
1997
  fontFamily?: string;
1972
1998
  /** Font size. */
1973
1999
  fontSize?: GoogleCloudDocumentaiV1DocumentStyleFontSize;
@@ -2019,14 +2045,6 @@ declare namespace gapi.client {
2019
2045
  // tslint:disable-next-line:no-empty-interface
2020
2046
  interface GoogleCloudDocumentaiV1EnableProcessorResponse {
2021
2047
  }
2022
- interface GoogleCloudDocumentaiV1EntityTypeMetadata {
2023
- /** Human review labeling config on the property. */
2024
- humanReviewLabelingMetadata?: GoogleCloudDocumentaiV1HumanReviewLabelingMetadata;
2025
- /** Human review config on the entity type. */
2026
- humanReviewMetadata?: GoogleCloudDocumentaiV1HumanReviewValidationMetadata;
2027
- /** Whether the entity type should be considered as "inactive". */
2028
- inactive?: boolean;
2029
- }
2030
2048
  interface GoogleCloudDocumentaiV1FetchProcessorTypesResponse {
2031
2049
  /** The list of processor types. */
2032
2050
  processorTypes?: GoogleCloudDocumentaiV1ProcessorType[];
@@ -2045,10 +2063,6 @@ declare namespace gapi.client {
2045
2063
  /** The URI prefix. */
2046
2064
  gcsUriPrefix?: string;
2047
2065
  }
2048
- interface GoogleCloudDocumentaiV1HumanReviewLabelingMetadata {
2049
- /** Whether to enable normalization editing. */
2050
- enableNormalizationEditing?: boolean;
2051
- }
2052
2066
  interface GoogleCloudDocumentaiV1HumanReviewStatus {
2053
2067
  /**
2054
2068
  * 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
@@ -2060,12 +2074,6 @@ declare namespace gapi.client {
2060
2074
  /** A message providing more details about the human review state. */
2061
2075
  stateMessage?: string;
2062
2076
  }
2063
- interface GoogleCloudDocumentaiV1HumanReviewValidationMetadata {
2064
- /** The confidence threshold if human review validation is enabled. */
2065
- confidenceThreshold?: number;
2066
- /** Whether to enable human review validation. */
2067
- enableValidation?: boolean;
2068
- }
2069
2077
  interface GoogleCloudDocumentaiV1ListProcessorsResponse {
2070
2078
  /** Points to the next processor, otherwise empty. */
2071
2079
  nextPageToken?: string;
@@ -2105,7 +2113,7 @@ declare namespace gapi.client {
2105
2113
  processEndpoint?: string;
2106
2114
  /** Output only. The state of the processor. */
2107
2115
  state?: string;
2108
- /** The processor type, e.g., OCR_PROCESSOR, INVOICE_PROCESSOR, etc. To get a list of processors types, see FetchProcessorTypes. */
2116
+ /** The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc. To get a list of processors types, see FetchProcessorTypes. */
2109
2117
  type?: string;
2110
2118
  }
2111
2119
  interface GoogleCloudDocumentaiV1ProcessorType {
@@ -2117,9 +2125,9 @@ declare namespace gapi.client {
2117
2125
  category?: string;
2118
2126
  /** Launch stage of the processor type */
2119
2127
  launchStage?: string;
2120
- /** The resource name of the processor type. Format: projects/{project}/processorTypes/{processor_type} */
2128
+ /** The resource name of the processor type. Format: `projects/{project}/processorTypes/{processor_type}` */
2121
2129
  name?: string;
2122
- /** The type of the processor, e.g., "invoice_parsing". */
2130
+ /** The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc. */
2123
2131
  type?: string;
2124
2132
  }
2125
2133
  interface GoogleCloudDocumentaiV1ProcessorTypeLocationInfo {
@@ -2133,6 +2141,8 @@ declare namespace gapi.client {
2133
2141
  deprecationInfo?: GoogleCloudDocumentaiV1ProcessorVersionDeprecationInfo;
2134
2142
  /** The display name of the processor version. */
2135
2143
  displayName?: string;
2144
+ /** The schema of the processor version. Describes the output. */
2145
+ documentSchema?: GoogleCloudDocumentaiV1DocumentSchema;
2136
2146
  /** Denotes that this ProcessorVersion is managed by google. */
2137
2147
  googleManaged?: boolean;
2138
2148
  /** The KMS key name used for encryption. */
@@ -2169,18 +2179,10 @@ declare namespace gapi.client {
2169
2179
  /** The status of human review on the processed document. */
2170
2180
  humanReviewStatus?: GoogleCloudDocumentaiV1HumanReviewStatus;
2171
2181
  }
2172
- interface GoogleCloudDocumentaiV1PropertyMetadata {
2173
- /** Human review labeling config on the property. */
2174
- humanReviewLabelingMetadata?: GoogleCloudDocumentaiV1HumanReviewLabelingMetadata;
2175
- /** Human review validation config on the property. */
2176
- humanReviewMetadata?: GoogleCloudDocumentaiV1HumanReviewValidationMetadata;
2177
- /** Whether the property should be considered as "inactive". */
2178
- inactive?: boolean;
2179
- }
2180
2182
  interface GoogleCloudDocumentaiV1RawDocument {
2181
2183
  /** Inline document content. */
2182
2184
  content?: string;
2183
- /** An IANA MIME type (RFC6838) indicating the nature and format of the [content]. */
2185
+ /** An IANA MIME type (RFC6838) indicating the nature and format of the content. */
2184
2186
  mimeType?: string;
2185
2187
  }
2186
2188
  interface GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata {
@@ -3521,182 +3523,9 @@ declare namespace gapi.client {
3521
3523
  locations: LocationsResource;
3522
3524
  operations: OperationsResource;
3523
3525
  }
3524
- interface OperationsResource {
3525
- /**
3526
- * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support
3527
- * this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the
3528
- * operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a
3529
- * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
3530
- */
3531
- cancel(request?: {
3532
- /** V1 error format. */
3533
- "$.xgafv"?: string;
3534
- /** OAuth access token. */
3535
- access_token?: string;
3536
- /** Data format for response. */
3537
- alt?: string;
3538
- /** JSONP */
3539
- callback?: string;
3540
- /** Selector specifying which fields to include in a partial response. */
3541
- fields?: string;
3542
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3543
- key?: string;
3544
- /** The name of the operation resource to be cancelled. */
3545
- name: string;
3546
- /** OAuth 2.0 token for the current user. */
3547
- oauth_token?: string;
3548
- /** Returns response with indentations and line breaks. */
3549
- prettyPrint?: boolean;
3550
- /** 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. */
3551
- quotaUser?: string;
3552
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3553
- upload_protocol?: string;
3554
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3555
- uploadType?: string;
3556
- }): Request<{}>;
3557
- /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
3558
- get(request?: {
3559
- /** V1 error format. */
3560
- "$.xgafv"?: string;
3561
- /** OAuth access token. */
3562
- access_token?: string;
3563
- /** Data format for response. */
3564
- alt?: string;
3565
- /** JSONP */
3566
- callback?: string;
3567
- /** Selector specifying which fields to include in a partial response. */
3568
- fields?: string;
3569
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3570
- key?: string;
3571
- /** The name of the operation resource. */
3572
- name: string;
3573
- /** OAuth 2.0 token for the current user. */
3574
- oauth_token?: string;
3575
- /** Returns response with indentations and line breaks. */
3576
- prettyPrint?: boolean;
3577
- /** 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. */
3578
- quotaUser?: string;
3579
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3580
- upload_protocol?: string;
3581
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3582
- uploadType?: string;
3583
- }): Request<GoogleLongrunningOperation>;
3584
- /**
3585
- * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services
3586
- * to override the binding to use different resource name schemes, such as `users/*‍/operations`. To override the binding, API services can add a binding such as
3587
- * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
3588
- * ensure the name binding is the parent resource, without the operations collection id.
3589
- */
3590
- list(request?: {
3591
- /** V1 error format. */
3592
- "$.xgafv"?: string;
3593
- /** OAuth access token. */
3594
- access_token?: string;
3595
- /** Data format for response. */
3596
- alt?: string;
3597
- /** JSONP */
3598
- callback?: string;
3599
- /** Selector specifying which fields to include in a partial response. */
3600
- fields?: string;
3601
- /** The standard list filter. */
3602
- filter?: string;
3603
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3604
- key?: string;
3605
- /** The name of the operation's parent resource. */
3606
- name: string;
3607
- /** OAuth 2.0 token for the current user. */
3608
- oauth_token?: string;
3609
- /** The standard list page size. */
3610
- pageSize?: number;
3611
- /** The standard list page token. */
3612
- pageToken?: string;
3613
- /** Returns response with indentations and line breaks. */
3614
- prettyPrint?: boolean;
3615
- /** 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. */
3616
- quotaUser?: string;
3617
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3618
- upload_protocol?: string;
3619
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3620
- uploadType?: string;
3621
- }): Request<GoogleLongrunningListOperationsResponse>;
3622
- }
3623
- interface LocationsResource {
3624
- /** Gets information about a location. */
3625
- get(request?: {
3626
- /** V1 error format. */
3627
- "$.xgafv"?: string;
3628
- /** OAuth access token. */
3629
- access_token?: string;
3630
- /** Data format for response. */
3631
- alt?: string;
3632
- /** JSONP */
3633
- callback?: string;
3634
- /** Selector specifying which fields to include in a partial response. */
3635
- fields?: string;
3636
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3637
- key?: string;
3638
- /** Resource name for the location. */
3639
- name: string;
3640
- /** OAuth 2.0 token for the current user. */
3641
- oauth_token?: string;
3642
- /** Returns response with indentations and line breaks. */
3643
- prettyPrint?: boolean;
3644
- /** 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. */
3645
- quotaUser?: string;
3646
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3647
- upload_protocol?: string;
3648
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3649
- uploadType?: string;
3650
- }): Request<GoogleCloudLocationLocation>;
3651
- /** Lists information about the supported locations for this service. */
3652
- list(request?: {
3653
- /** V1 error format. */
3654
- "$.xgafv"?: string;
3655
- /** OAuth access token. */
3656
- access_token?: string;
3657
- /** Data format for response. */
3658
- alt?: string;
3659
- /** JSONP */
3660
- callback?: string;
3661
- /** Selector specifying which fields to include in a partial response. */
3662
- fields?: string;
3663
- /**
3664
- * A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in
3665
- * [AIP-160](https://google.aip.dev/160).
3666
- */
3667
- filter?: string;
3668
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3669
- key?: string;
3670
- /** The resource that owns the locations collection, if applicable. */
3671
- name: string;
3672
- /** OAuth 2.0 token for the current user. */
3673
- oauth_token?: string;
3674
- /** The maximum number of results to return. If not set, the service selects a default. */
3675
- pageSize?: number;
3676
- /** A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. */
3677
- pageToken?: string;
3678
- /** Returns response with indentations and line breaks. */
3679
- prettyPrint?: boolean;
3680
- /** 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. */
3681
- quotaUser?: string;
3682
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3683
- upload_protocol?: string;
3684
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3685
- uploadType?: string;
3686
- }): Request<GoogleCloudLocationListLocationsResponse>;
3687
- operations: OperationsResource;
3688
- }
3689
- interface ProjectsResource {
3690
- locations: LocationsResource;
3691
- }
3692
- interface Uiv1beta3Resource {
3693
- projects: ProjectsResource;
3694
- }
3695
3526
 
3696
3527
  const operations: OperationsResource;
3697
3528
 
3698
3529
  const projects: ProjectsResource;
3699
-
3700
- const uiv1beta3: Uiv1beta3Resource;
3701
3530
  }
3702
3531
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.documentai-v1",
3
- "version": "0.0.20221106",
3
+ "version": "0.0.20221114",
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: 20221106
6
+ // Revision: 20221114
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -985,16 +985,6 @@ gapi.load('client', async () => {
985
985
  "Test string"
986
986
  ],
987
987
  displayName: "Test string",
988
- entityTypeMetadata: {
989
- humanReviewLabelingMetadata: {
990
- enableNormalizationEditing: true,
991
- },
992
- humanReviewMetadata: {
993
- confidenceThreshold: 42,
994
- enableValidation: true,
995
- },
996
- inactive: true,
997
- },
998
988
  enumValues: {
999
989
  values: [
1000
990
  "Test string"
@@ -1005,16 +995,6 @@ gapi.load('client', async () => {
1005
995
  {
1006
996
  name: "Test string",
1007
997
  occurrenceType: "Test string",
1008
- propertyMetadata: {
1009
- humanReviewLabelingMetadata: {
1010
- enableNormalizationEditing: true,
1011
- },
1012
- humanReviewMetadata: {
1013
- confidenceThreshold: 42,
1014
- enableValidation: true,
1015
- },
1016
- inactive: true,
1017
- },
1018
998
  valueType: "Test string",
1019
999
  }
1020
1000
  ],
@@ -2734,41 +2714,5 @@ gapi.load('client', async () => {
2734
2714
  await gapi.client.documentai.projects.operations.get({
2735
2715
  name: "Test string",
2736
2716
  });
2737
- /** Gets information about a location. */
2738
- await gapi.client.documentai.uiv1beta3.projects.locations.get({
2739
- name: "Test string",
2740
- });
2741
- /** Lists information about the supported locations for this service. */
2742
- await gapi.client.documentai.uiv1beta3.projects.locations.list({
2743
- filter: "Test string",
2744
- name: "Test string",
2745
- pageSize: 42,
2746
- pageToken: "Test string",
2747
- });
2748
- /**
2749
- * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this
2750
- * method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation
2751
- * completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of
2752
- * 1, corresponding to `Code.CANCELLED`.
2753
- */
2754
- await gapi.client.documentai.uiv1beta3.projects.locations.operations.cancel({
2755
- name: "Test string",
2756
- });
2757
- /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
2758
- await gapi.client.documentai.uiv1beta3.projects.locations.operations.get({
2759
- name: "Test string",
2760
- });
2761
- /**
2762
- * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
2763
- * override the binding to use different resource name schemes, such as `users/*‍/operations`. To override the binding, API services can add a binding such as
2764
- * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
2765
- * ensure the name binding is the parent resource, without the operations collection id.
2766
- */
2767
- await gapi.client.documentai.uiv1beta3.projects.locations.operations.list({
2768
- filter: "Test string",
2769
- name: "Test string",
2770
- pageSize: 42,
2771
- pageToken: "Test string",
2772
- });
2773
2717
  }
2774
2718
  });