@maxim_mazurok/gapi.client.documentai-v1 0.1.20250929 → 0.1.20251020

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +1175 -99
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://documentai.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20250929
12
+ // Revision: 20251020
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -211,11 +211,81 @@ declare namespace gapi.client {
211
211
  /** Required. The id of the document. */
212
212
  docId?: string;
213
213
  }
214
+ interface GoogleCloudDocumentaiUiv1beta3DocumentSchema {
215
+ /** Description of the schema. */
216
+ description?: string;
217
+ /** Display name to show to users. */
218
+ displayName?: string;
219
+ /** Entity types of the schema. */
220
+ entityTypes?: GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityType[];
221
+ /** Metadata of the schema. */
222
+ metadata?: GoogleCloudDocumentaiUiv1beta3DocumentSchemaMetadata;
223
+ }
224
+ interface GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityType {
225
+ /** The entity type that this type is derived from. For now, one and only one should be set. */
226
+ baseTypes?: string[];
227
+ /** The description of the entity type. Could be used to provide more information about the entity type for model calls. */
228
+ description?: string;
229
+ /** User defined name for the type. */
230
+ displayName?: string;
231
+ /** Metadata for the entity type. */
232
+ entityTypeMetadata?: GoogleCloudDocumentaiUiv1beta3EntityTypeMetadata;
233
+ /** 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 `EntityType.value_ontology` field and specify a list of all possible values in a value ontology file. */
234
+ enumValues?: GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityTypeEnumValues;
235
+ /** Name of the type. It must be unique within the schema file and cannot be a "Common Type". The following naming conventions are used: - Use `snake_casing`. - Name matching is case-sensitive. - Maximum 64 characters. - Must start with a letter. - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward compatibility internal 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, but will still be honored for backward compatibility. */
236
+ name?: string;
237
+ /** Description the nested structure, or composition of an entity. */
238
+ properties?: GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityTypeProperty[];
239
+ }
240
+ interface GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityTypeEnumValues {
241
+ /** The individual values that this enum values type can include. */
242
+ values?: string[];
243
+ }
244
+ interface GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityTypeProperty {
245
+ /** The description of the property. Could be used to provide more information about the property for model calls. */
246
+ description?: string;
247
+ /** User defined name for the property. */
248
+ displayName?: string;
249
+ /** Specifies how the entity's value is obtained. */
250
+ method?: string;
251
+ /** The name of the property. Follows the same guidelines as the EntityType name. */
252
+ name?: string;
253
+ /** Occurrence type limits the number of instances an entity type appears in the document. */
254
+ occurrenceType?: string;
255
+ /** Any additional metadata about the property can be added here. */
256
+ propertyMetadata?: GoogleCloudDocumentaiUiv1beta3PropertyMetadata;
257
+ /** A reference to the value type of the property. This type is subject to the same conventions as the `Entity.base_types` field. */
258
+ valueType?: string;
259
+ }
260
+ interface GoogleCloudDocumentaiUiv1beta3DocumentSchemaMetadata {
261
+ /** If true, on a given page, there can be multiple `document` annotations covering it. */
262
+ documentAllowMultipleLabels?: boolean;
263
+ /** If true, a `document` entity type can be applied to subdocument (splitting). Otherwise, it can only be applied to the entire document (classification). */
264
+ documentSplitter?: boolean;
265
+ /** If set, all the nested entities must be prefixed with the parents. */
266
+ prefixedNamingOnProperties?: boolean;
267
+ /** If set, we will skip the naming format validation in the schema. So the string values in `DocumentSchema.EntityType.name` and `DocumentSchema.EntityType.Property.name` will not be checked. */
268
+ skipNamingValidation?: boolean;
269
+ }
214
270
  interface GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata {
215
271
  /** The basic metadata of the long-running operation. */
216
272
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
217
273
  }
218
274
  interface GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse {}
275
+ interface GoogleCloudDocumentaiUiv1beta3EntityTypeMetadata {
276
+ /** Field tier metadata on the property */
277
+ fieldTierMetadata?: GoogleCloudDocumentaiUiv1beta3FieldTierMetadata;
278
+ /** Human review labeling config on the entity. */
279
+ humanReviewLabelingMetadata?: GoogleCloudDocumentaiUiv1beta3HumanReviewLabelingMetadata;
280
+ /** Human review config on the entity. */
281
+ humanReviewMetadata?: GoogleCloudDocumentaiUiv1beta3HumanReviewValidationMetadata;
282
+ /** Whether the entity type should be considered inactive. */
283
+ inactive?: boolean;
284
+ /** Schema editability metadata on the entity. */
285
+ schemaEditabilityMetadata?: GoogleCloudDocumentaiUiv1beta3SchemaEditabilityMetadata;
286
+ /** Schema inference metadata on the entity. */
287
+ schemaInferenceMetadata?: GoogleCloudDocumentaiUiv1beta3SchemaInferenceMetadata;
288
+ }
219
289
  interface GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata {
220
290
  /** The basic metadata of the long-running operation. */
221
291
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
@@ -224,6 +294,40 @@ declare namespace gapi.client {
224
294
  /** The resource name of the created evaluation. */
225
295
  evaluation?: string;
226
296
  }
297
+ interface GoogleCloudDocumentaiUiv1beta3EvaluationMetrics {
298
+ /** The calculated f1 score. */
299
+ f1Score?: number;
300
+ /** The amount of false negatives. */
301
+ falseNegativesCount?: number;
302
+ /** The amount of false positives. */
303
+ falsePositivesCount?: number;
304
+ /** The amount of documents with a ground truth occurrence. */
305
+ groundTruthDocumentCount?: number;
306
+ /** The amount of occurrences in ground truth documents. */
307
+ groundTruthOccurrencesCount?: number;
308
+ /** The calculated precision. */
309
+ precision?: number;
310
+ /** The amount of documents with a predicted occurrence. */
311
+ predictedDocumentCount?: number;
312
+ /** The amount of occurrences in predicted documents. */
313
+ predictedOccurrencesCount?: number;
314
+ /** The calculated recall. */
315
+ recall?: number;
316
+ /** The amount of documents that had an occurrence of this label. */
317
+ totalDocumentsCount?: number;
318
+ /** The amount of true positives. */
319
+ truePositivesCount?: number;
320
+ }
321
+ interface GoogleCloudDocumentaiUiv1beta3EvaluationReference {
322
+ /** An aggregate of the statistics for the evaluation with fuzzy matching on. */
323
+ aggregateMetrics?: GoogleCloudDocumentaiUiv1beta3EvaluationMetrics;
324
+ /** An aggregate of the statistics for the evaluation with fuzzy matching off. */
325
+ aggregateMetricsExact?: GoogleCloudDocumentaiUiv1beta3EvaluationMetrics;
326
+ /** The resource name of the evaluation. */
327
+ evaluation?: string;
328
+ /** The resource name of the Long Running Operation for the evaluation. */
329
+ operation?: string;
330
+ }
227
331
  interface GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadata {
228
332
  /** The basic metadata of the long-running operation. */
229
333
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
@@ -255,6 +359,30 @@ declare namespace gapi.client {
255
359
  /** The Cloud Storage URI containing the output artifacts. */
256
360
  gcsUri?: string;
257
361
  }
362
+ interface GoogleCloudDocumentaiUiv1beta3FieldExtractionMetadata {
363
+ /** Entity query config. */
364
+ entityQuery?: GoogleCloudDocumentaiUiv1beta3FieldExtractionMetadataEntityQuery;
365
+ /** Summary options config. */
366
+ summaryOptions?: GoogleCloudDocumentaiUiv1beta3SummaryOptions;
367
+ }
368
+ interface GoogleCloudDocumentaiUiv1beta3FieldExtractionMetadataEntityQuery {
369
+ /** The original entity query inputed by the user. */
370
+ userEntityQuery?: string;
371
+ }
372
+ interface GoogleCloudDocumentaiUiv1beta3FieldTierMetadata {
373
+ /** Integer that indicates the tier of a property. e.g. Invoice has entities that are classified as tier 1 which is the most important, while tier 2 and tier 3 less so. This attribute can be used to filter schema attributes before running eval. e.g. compute F1 score for only tier 1 entities. If not present this attribute should be inferred as 1. */
374
+ tierLevel?: number;
375
+ }
376
+ interface GoogleCloudDocumentaiUiv1beta3HumanReviewLabelingMetadata {
377
+ /** Whether to enable normalization editing. */
378
+ enableNormalizationEditing?: boolean;
379
+ }
380
+ interface GoogleCloudDocumentaiUiv1beta3HumanReviewValidationMetadata {
381
+ /** The confidence threshold if human review validation is enabled. */
382
+ confidenceThreshold?: number;
383
+ /** Whether to enable human review validation. */
384
+ enableValidation?: boolean;
385
+ }
258
386
  interface GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata {
259
387
  /** The basic metadata of the long-running operation. */
260
388
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
@@ -290,6 +418,112 @@ declare namespace gapi.client {
290
418
  /** The destination processor version name. */
291
419
  processorVersion?: string;
292
420
  }
421
+ interface GoogleCloudDocumentaiUiv1beta3Processor {
422
+ /** Optional. SchemaVersion used by the Processor. It is the same as Processor's DatasetSchema.schema_version Format is `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version} */
423
+ activeSchemaVersion?: string;
424
+ /** Output only. The time the processor was created. */
425
+ createTime?: string;
426
+ /** The default processor version. */
427
+ defaultProcessorVersion?: string;
428
+ /** The display name of the processor. */
429
+ displayName?: string;
430
+ /** The [KMS key](https://cloud.google.com/security-key-management) used for encryption and decryption in CMEK scenarios. */
431
+ kmsKeyName?: string;
432
+ /** Output only. Immutable. The resource name of the processor. Format: `projects/{project}/locations/{location}/processors/{processor}` */
433
+ name?: string;
434
+ /** Output only. Immutable. The http endpoint that can be called to invoke processing. */
435
+ processEndpoint?: string;
436
+ /** Output only. The processor version aliases. */
437
+ processorVersionAliases?: GoogleCloudDocumentaiUiv1beta3ProcessorVersionAlias[];
438
+ /** Output only. Reserved for future use. */
439
+ satisfiesPzi?: boolean;
440
+ /** Output only. Reserved for future use. */
441
+ satisfiesPzs?: boolean;
442
+ /** Output only. The state of the processor. */
443
+ state?: string;
444
+ /** The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. To get a list of processor types, see FetchProcessorTypes. */
445
+ type?: string;
446
+ }
447
+ interface GoogleCloudDocumentaiUiv1beta3ProcessorVersion {
448
+ /** Output only. The time the processor version was created. */
449
+ createTime?: string;
450
+ /** Output only. Denotes that this `ProcessorVersion` can be deployed and undeployed. */
451
+ deploymentAllowed?: boolean;
452
+ /** Output only. If set, information about the eventual deprecation of this version. */
453
+ deprecationInfo?: GoogleCloudDocumentaiUiv1beta3ProcessorVersionDeprecationInfo;
454
+ /** The display name of the processor version. */
455
+ displayName?: string;
456
+ /** Output only. The schema of the processor version. Describes the output. */
457
+ documentSchema?: GoogleCloudDocumentaiUiv1beta3DocumentSchema;
458
+ /** Output only. Information about Generative AI model-based processor versions. */
459
+ genAiModelInfo?: GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfo;
460
+ /** Output only. Denotes that this `ProcessorVersion` is managed by Google. */
461
+ googleManaged?: boolean;
462
+ /** Output only. The KMS key name used for encryption. */
463
+ kmsKeyName?: string;
464
+ /** Output only. The KMS key version with which data is encrypted. */
465
+ kmsKeyVersionName?: string;
466
+ /** Output only. The most recently invoked evaluation for the processor version. */
467
+ latestEvaluation?: GoogleCloudDocumentaiUiv1beta3EvaluationReference;
468
+ /** Output only. The model type of this processor version. */
469
+ modelType?: string;
470
+ /** Identifier. The resource name of the processor version. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}` */
471
+ name?: string;
472
+ /** Output only. Reserved for future use. */
473
+ satisfiesPzi?: boolean;
474
+ /** Output only. Reserved for future use. */
475
+ satisfiesPzs?: boolean;
476
+ /** The schema of the processor version. Describes the output. */
477
+ schema?: GoogleCloudDocumentaiUiv1beta3Schema;
478
+ /** Output only. The state of the processor version. */
479
+ state?: string;
480
+ }
481
+ interface GoogleCloudDocumentaiUiv1beta3ProcessorVersionAlias {
482
+ /** The alias in the form of `processor_version` resource name. */
483
+ alias?: string;
484
+ /** The resource name of aliased processor version. */
485
+ processorVersion?: string;
486
+ }
487
+ interface GoogleCloudDocumentaiUiv1beta3ProcessorVersionDeprecationInfo {
488
+ /** The time at which this processor version will be deprecated. */
489
+ deprecationTime?: string;
490
+ /** If set, the processor version that will be used as a replacement. */
491
+ replacementProcessorVersion?: string;
492
+ }
493
+ interface GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfo {
494
+ /** Information for a custom Generative AI model created by the user. */
495
+ customGenAiModelInfo?: GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo;
496
+ /** Information for a pretrained Google-managed foundation model. */
497
+ foundationGenAiModelInfo?: GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo;
498
+ }
499
+ interface GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo {
500
+ /** The base processor version ID for the custom model. */
501
+ baseProcessorVersionId?: string;
502
+ /** The type of custom model created by the user. */
503
+ customModelType?: string;
504
+ }
505
+ interface GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo {
506
+ /** Whether finetuning is allowed for this base processor version. */
507
+ finetuningAllowed?: boolean;
508
+ /** The minimum number of labeled documents in the training dataset required for finetuning. */
509
+ minTrainLabeledDocuments?: number;
510
+ }
511
+ interface GoogleCloudDocumentaiUiv1beta3PropertyMetadata {
512
+ /** Field extraction metadata on the property. */
513
+ fieldExtractionMetadata?: GoogleCloudDocumentaiUiv1beta3FieldExtractionMetadata;
514
+ /** Field tier metadata on the property */
515
+ fieldTierMetadata?: GoogleCloudDocumentaiUiv1beta3FieldTierMetadata;
516
+ /** Human review labeling config on the property. */
517
+ humanReviewLabelingMetadata?: GoogleCloudDocumentaiUiv1beta3HumanReviewLabelingMetadata;
518
+ /** Human review validation config on the property. */
519
+ humanReviewMetadata?: GoogleCloudDocumentaiUiv1beta3HumanReviewValidationMetadata;
520
+ /** Whether the property should be considered as "inactive". */
521
+ inactive?: boolean;
522
+ /** Schema editability metadata on the property. */
523
+ schemaEditabilityMetadata?: GoogleCloudDocumentaiUiv1beta3SchemaEditabilityMetadata;
524
+ /** Schema inference metadata on the property. */
525
+ schemaInferenceMetadata?: GoogleCloudDocumentaiUiv1beta3SchemaInferenceMetadata;
526
+ }
293
527
  interface GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata {
294
528
  /** The basic metadata of the long-running operation. */
295
529
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
@@ -337,11 +571,54 @@ declare namespace gapi.client {
337
571
  /** An internal identifier for document. */
338
572
  documentId?: string;
339
573
  }
574
+ interface GoogleCloudDocumentaiUiv1beta3Schema {
575
+ /** Description of the schema. */
576
+ description?: string;
577
+ /** Display name to show to users. */
578
+ displayName?: string;
579
+ /** Entity types of the schema. */
580
+ entityTypes?: GoogleCloudDocumentaiUiv1beta3SchemaEntityType[];
581
+ }
582
+ interface GoogleCloudDocumentaiUiv1beta3SchemaEditabilityMetadata {
583
+ /** Explicit flag that controls whether the label is editable. */
584
+ editable?: boolean;
585
+ /** Full resource name of processor versions that contain this label. e.g. `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` */
586
+ processorVersions?: string[];
587
+ }
588
+ interface GoogleCloudDocumentaiUiv1beta3SchemaEntityType {
589
+ baseType?: string;
590
+ /** Description of the entity type. */
591
+ description?: string;
592
+ /** If specified, lists all the possible values for this entity. */
593
+ enumValues?: string[];
594
+ /** If the entity type is hidden in the schema. This provides the functionality to temporally "disable" an entity without deleting it. */
595
+ hide?: boolean;
596
+ /** Specifies how the entity's value is obtained. */
597
+ method?: string;
598
+ /** Occurrence type limits the number of times an entity type appears in the document. */
599
+ occurrenceType?: string;
600
+ /** Describing the nested structure of an entity. An EntityType may consist of several other EntityTypes. For example, in a document there can be an EntityType `ID`, which consists of EntityType `name` and `address`, with corresponding attributes, such as TEXT for both types and ONCE for occurrence types. */
601
+ properties?: GoogleCloudDocumentaiUiv1beta3SchemaEntityType[];
602
+ /** Source of this entity type. */
603
+ source?: string;
604
+ /** Name of the type. It must satisfy the following constraints: 1. Must be unique within the set of same level types (with case-insensitive match). 2. Maximum 64 characters. 3. Must start with a letter. 4. Allowed characters: ASCII letters [a-zA-Z], ASCII digits [0-9], or one of the following punctuation characters: * underscore '_' (recommended) * hyphen '-' (allowed, not recommended) * colon ':' (allowed, not recommended) NOTE: Whitespace characters are not allowed. 5. Cannot end with a punctuation character. 6. Cannot contain the following restricted strings: "google", "DocumentAI" (case-insensitive match). 7. A slash character '/' is reserved as a separator in flattened representations of nested entity types (e.g., "line_item/amount") in which case each part (e.g., "line_item", "amount") must comply with the rules defined above. We recommend using the snake case ("snake_case") in entity type names. */
605
+ type?: string;
606
+ }
607
+ interface GoogleCloudDocumentaiUiv1beta3SchemaInferenceMetadata {
608
+ /** True if is inferred by schema inference. */
609
+ inferred?: boolean;
610
+ }
340
611
  interface GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata {
341
612
  /** The basic metadata of the long-running operation. */
342
613
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
343
614
  }
344
615
  interface GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse {}
616
+ interface GoogleCloudDocumentaiUiv1beta3SummaryOptions {
617
+ /** The format the summary should be in. */
618
+ format?: string;
619
+ /** How long the summary should be. */
620
+ length?: string;
621
+ }
345
622
  interface GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata {
346
623
  /** The basic metadata of the long-running operation. */
347
624
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
@@ -381,6 +658,10 @@ declare namespace gapi.client {
381
658
  /** The basic metadata of the long-running operation. */
382
659
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
383
660
  }
661
+ interface GoogleCloudDocumentaiUiv1beta3UpdateProcessorVersionMetadata {
662
+ /** The basic metadata for the long-running operation. */
663
+ commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
664
+ }
384
665
  interface GoogleCloudDocumentaiV1Barcode {
385
666
  /** 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`: 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 DataBar code type. */
386
667
  format?: string;
@@ -550,11 +831,71 @@ declare namespace gapi.client {
550
831
  /** Required. The id of the document. */
551
832
  docId?: string;
552
833
  }
834
+ interface GoogleCloudDocumentaiV1beta3DocumentSchema {
835
+ /** Description of the schema. */
836
+ description?: string;
837
+ /** Display name to show to users. */
838
+ displayName?: string;
839
+ /** Entity types of the schema. */
840
+ entityTypes?: GoogleCloudDocumentaiV1beta3DocumentSchemaEntityType[];
841
+ /** Metadata of the schema. */
842
+ metadata?: GoogleCloudDocumentaiV1beta3DocumentSchemaMetadata;
843
+ }
844
+ interface GoogleCloudDocumentaiV1beta3DocumentSchemaEntityType {
845
+ /** The entity type that this type is derived from. For now, one and only one should be set. */
846
+ baseTypes?: string[];
847
+ /** The description of the entity type. Could be used to provide more information about the entity type for model calls. */
848
+ description?: string;
849
+ /** User defined name for the type. */
850
+ displayName?: string;
851
+ /** Metadata for the entity type. */
852
+ entityTypeMetadata?: GoogleCloudDocumentaiV1beta3EntityTypeMetadata;
853
+ /** 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 `EntityType.value_ontology` field and specify a list of all possible values in a value ontology file. */
854
+ enumValues?: GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeEnumValues;
855
+ /** Name of the type. It must be unique within the schema file and cannot be a "Common Type". The following naming conventions are used: - Use `snake_casing`. - Name matching is case-sensitive. - Maximum 64 characters. - Must start with a letter. - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward compatibility internal 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, but will still be honored for backward compatibility. */
856
+ name?: string;
857
+ /** Description the nested structure, or composition of an entity. */
858
+ properties?: GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty[];
859
+ }
860
+ interface GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeEnumValues {
861
+ /** The individual values that this enum values type can include. */
862
+ values?: string[];
863
+ }
864
+ interface GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty {
865
+ /** The description of the property. Could be used to provide more information about the property for model calls. */
866
+ description?: string;
867
+ /** User defined name for the property. */
868
+ displayName?: string;
869
+ /** Specifies how the entity's value is obtained. */
870
+ method?: string;
871
+ /** The name of the property. Follows the same guidelines as the EntityType name. */
872
+ name?: string;
873
+ /** Occurrence type limits the number of instances an entity type appears in the document. */
874
+ occurrenceType?: string;
875
+ /** Any additional metadata about the property can be added here. */
876
+ propertyMetadata?: GoogleCloudDocumentaiV1beta3PropertyMetadata;
877
+ /** A reference to the value type of the property. This type is subject to the same conventions as the `Entity.base_types` field. */
878
+ valueType?: string;
879
+ }
880
+ interface GoogleCloudDocumentaiV1beta3DocumentSchemaMetadata {
881
+ /** If true, on a given page, there can be multiple `document` annotations covering it. */
882
+ documentAllowMultipleLabels?: boolean;
883
+ /** If true, a `document` entity type can be applied to subdocument (splitting). Otherwise, it can only be applied to the entire document (classification). */
884
+ documentSplitter?: boolean;
885
+ /** If set, all the nested entities must be prefixed with the parents. */
886
+ prefixedNamingOnProperties?: boolean;
887
+ /** If set, we will skip the naming format validation in the schema. So the string values in `DocumentSchema.EntityType.name` and `DocumentSchema.EntityType.Property.name` will not be checked. */
888
+ skipNamingValidation?: boolean;
889
+ }
553
890
  interface GoogleCloudDocumentaiV1beta3EnableProcessorMetadata {
554
891
  /** The basic metadata of the long-running operation. */
555
892
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
556
893
  }
557
894
  interface GoogleCloudDocumentaiV1beta3EnableProcessorResponse {}
895
+ interface GoogleCloudDocumentaiV1beta3EntityTypeMetadata {
896
+ /** Whether the entity type should be considered inactive. */
897
+ inactive?: boolean;
898
+ }
558
899
  interface GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata {
559
900
  /** The basic metadata of the long-running operation. */
560
901
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
@@ -563,6 +904,44 @@ declare namespace gapi.client {
563
904
  /** The resource name of the created evaluation. */
564
905
  evaluation?: string;
565
906
  }
907
+ interface GoogleCloudDocumentaiV1beta3EvaluationMetrics {
908
+ /** The calculated f1 score. */
909
+ f1Score?: number;
910
+ /** The amount of false negatives. */
911
+ falseNegativesCount?: number;
912
+ /** The amount of false positives. */
913
+ falsePositivesCount?: number;
914
+ /** The amount of documents with a ground truth occurrence. */
915
+ groundTruthDocumentCount?: number;
916
+ /** The amount of occurrences in ground truth documents. */
917
+ groundTruthOccurrencesCount?: number;
918
+ /** The calculated precision. */
919
+ precision?: number;
920
+ /** The amount of documents with a predicted occurrence. */
921
+ predictedDocumentCount?: number;
922
+ /** The amount of occurrences in predicted documents. */
923
+ predictedOccurrencesCount?: number;
924
+ /** The calculated recall. */
925
+ recall?: number;
926
+ /** The amount of documents that had an occurrence of this label. */
927
+ totalDocumentsCount?: number;
928
+ /** The amount of true positives. */
929
+ truePositivesCount?: number;
930
+ }
931
+ interface GoogleCloudDocumentaiV1beta3EvaluationReference {
932
+ /** An aggregate of the statistics for the evaluation with fuzzy matching on. */
933
+ aggregateMetrics?: GoogleCloudDocumentaiV1beta3EvaluationMetrics;
934
+ /** An aggregate of the statistics for the evaluation with fuzzy matching off. */
935
+ aggregateMetricsExact?: GoogleCloudDocumentaiV1beta3EvaluationMetrics;
936
+ /** The resource name of the evaluation. */
937
+ evaluation?: string;
938
+ /** The resource name of the Long Running Operation for the evaluation. */
939
+ operation?: string;
940
+ }
941
+ interface GoogleCloudDocumentaiV1beta3FieldExtractionMetadata {
942
+ /** Summary options config. */
943
+ summaryOptions?: GoogleCloudDocumentaiV1beta3SummaryOptions;
944
+ }
566
945
  interface GoogleCloudDocumentaiV1beta3GcsPrefix {
567
946
  /** The URI prefix. */
568
947
  gcsUriPrefix?: string;
@@ -608,22 +987,114 @@ declare namespace gapi.client {
608
987
  /** The destination processor version name. */
609
988
  processorVersion?: string;
610
989
  }
611
- interface GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata {
612
- /** The basic metadata of the long-running operation. */
613
- commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
614
- /** The creation time of the operation. */
990
+ interface GoogleCloudDocumentaiV1beta3Processor {
991
+ /** Optional. SchemaVersion used by the Processor. It is the same as Processor's DatasetSchema.schema_version Format is `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version} */
992
+ activeSchemaVersion?: string;
993
+ /** Output only. The time the processor was created. */
615
994
  createTime?: string;
616
- /** The Crowd Compute question ID. */
617
- questionId?: string;
618
- /** Used only when Operation.done is false. */
619
- state?: string;
620
- /** A message providing more details about the current state of processing. For example, the error message if the operation is failed. */
621
- stateMessage?: string;
622
- /** The last update time of the operation. */
623
- updateTime?: string;
624
- }
625
- interface GoogleCloudDocumentaiV1beta3ReviewDocumentResponse {
626
- /** The Cloud Storage uri for the human reviewed document if the review is succeeded. */
995
+ /** The default processor version. */
996
+ defaultProcessorVersion?: string;
997
+ /** The display name of the processor. */
998
+ displayName?: string;
999
+ /** The [KMS key](https://cloud.google.com/security-key-management) used for encryption and decryption in CMEK scenarios. */
1000
+ kmsKeyName?: string;
1001
+ /** Output only. Immutable. The resource name of the processor. Format: `projects/{project}/locations/{location}/processors/{processor}` */
1002
+ name?: string;
1003
+ /** Output only. Immutable. The http endpoint that can be called to invoke processing. */
1004
+ processEndpoint?: string;
1005
+ /** Output only. The processor version aliases. */
1006
+ processorVersionAliases?: GoogleCloudDocumentaiV1beta3ProcessorVersionAlias[];
1007
+ /** Output only. Reserved for future use. */
1008
+ satisfiesPzi?: boolean;
1009
+ /** Output only. Reserved for future use. */
1010
+ satisfiesPzs?: boolean;
1011
+ /** Output only. The state of the processor. */
1012
+ state?: string;
1013
+ /** The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. To get a list of processor types, see FetchProcessorTypes. */
1014
+ type?: string;
1015
+ }
1016
+ interface GoogleCloudDocumentaiV1beta3ProcessorVersion {
1017
+ /** Output only. The time the processor version was created. */
1018
+ createTime?: string;
1019
+ /** Output only. If set, information about the eventual deprecation of this version. */
1020
+ deprecationInfo?: GoogleCloudDocumentaiV1beta3ProcessorVersionDeprecationInfo;
1021
+ /** The display name of the processor version. */
1022
+ displayName?: string;
1023
+ /** Output only. The schema of the processor version. Describes the output. */
1024
+ documentSchema?: GoogleCloudDocumentaiV1beta3DocumentSchema;
1025
+ /** Output only. Information about Generative AI model-based processor versions. */
1026
+ genAiModelInfo?: GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfo;
1027
+ /** Output only. Denotes that this `ProcessorVersion` is managed by Google. */
1028
+ googleManaged?: boolean;
1029
+ /** Output only. The KMS key name used for encryption. */
1030
+ kmsKeyName?: string;
1031
+ /** Output only. The KMS key version with which data is encrypted. */
1032
+ kmsKeyVersionName?: string;
1033
+ /** Output only. The most recently invoked evaluation for the processor version. */
1034
+ latestEvaluation?: GoogleCloudDocumentaiV1beta3EvaluationReference;
1035
+ /** Output only. The model type of this processor version. */
1036
+ modelType?: string;
1037
+ /** Identifier. The resource name of the processor version. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}` */
1038
+ name?: string;
1039
+ /** Output only. Reserved for future use. */
1040
+ satisfiesPzi?: boolean;
1041
+ /** Output only. Reserved for future use. */
1042
+ satisfiesPzs?: boolean;
1043
+ /** Output only. The state of the processor version. */
1044
+ state?: string;
1045
+ }
1046
+ interface GoogleCloudDocumentaiV1beta3ProcessorVersionAlias {
1047
+ /** The alias in the form of `processor_version` resource name. */
1048
+ alias?: string;
1049
+ /** The resource name of aliased processor version. */
1050
+ processorVersion?: string;
1051
+ }
1052
+ interface GoogleCloudDocumentaiV1beta3ProcessorVersionDeprecationInfo {
1053
+ /** The time at which this processor version will be deprecated. */
1054
+ deprecationTime?: string;
1055
+ /** If set, the processor version that will be used as a replacement. */
1056
+ replacementProcessorVersion?: string;
1057
+ }
1058
+ interface GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfo {
1059
+ /** Information for a custom Generative AI model created by the user. */
1060
+ customGenAiModelInfo?: GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo;
1061
+ /** Information for a pretrained Google-managed foundation model. */
1062
+ foundationGenAiModelInfo?: GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo;
1063
+ }
1064
+ interface GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo {
1065
+ /** The base processor version ID for the custom model. */
1066
+ baseProcessorVersionId?: string;
1067
+ /** The type of custom model created by the user. */
1068
+ customModelType?: string;
1069
+ }
1070
+ interface GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo {
1071
+ /** Whether finetuning is allowed for this base processor version. */
1072
+ finetuningAllowed?: boolean;
1073
+ /** The minimum number of labeled documents in the training dataset required for finetuning. */
1074
+ minTrainLabeledDocuments?: number;
1075
+ }
1076
+ interface GoogleCloudDocumentaiV1beta3PropertyMetadata {
1077
+ /** Field extraction metadata on the property. */
1078
+ fieldExtractionMetadata?: GoogleCloudDocumentaiV1beta3FieldExtractionMetadata;
1079
+ /** Whether the property should be considered as "inactive". */
1080
+ inactive?: boolean;
1081
+ }
1082
+ interface GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata {
1083
+ /** The basic metadata of the long-running operation. */
1084
+ commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
1085
+ /** The creation time of the operation. */
1086
+ createTime?: string;
1087
+ /** The Crowd Compute question ID. */
1088
+ questionId?: string;
1089
+ /** Used only when Operation.done is false. */
1090
+ state?: string;
1091
+ /** A message providing more details about the current state of processing. For example, the error message if the operation is failed. */
1092
+ stateMessage?: string;
1093
+ /** The last update time of the operation. */
1094
+ updateTime?: string;
1095
+ }
1096
+ interface GoogleCloudDocumentaiV1beta3ReviewDocumentResponse {
1097
+ /** The Cloud Storage uri for the human reviewed document if the review is succeeded. */
627
1098
  gcsDestination?: string;
628
1099
  /** The reason why the review is rejected by reviewer. */
629
1100
  rejectionReason?: string;
@@ -643,6 +1114,12 @@ declare namespace gapi.client {
643
1114
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
644
1115
  }
645
1116
  interface GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionResponse {}
1117
+ interface GoogleCloudDocumentaiV1beta3SummaryOptions {
1118
+ /** The format the summary should be in. */
1119
+ format?: string;
1120
+ /** How long the summary should be. */
1121
+ length?: string;
1122
+ }
646
1123
  interface GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata {
647
1124
  /** The basic metadata of the long-running operation. */
648
1125
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
@@ -674,6 +1151,10 @@ declare namespace gapi.client {
674
1151
  /** The basic metadata of the long-running operation. */
675
1152
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
676
1153
  }
1154
+ interface GoogleCloudDocumentaiV1beta3UpdateProcessorVersionMetadata {
1155
+ /** The basic metadata for the long-running operation. */
1156
+ commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
1157
+ }
677
1158
  interface GoogleCloudDocumentaiV1BoundingPoly {
678
1159
  /** The bounding polygon normalized vertices. */
679
1160
  normalizedVertices?: GoogleCloudDocumentaiV1NormalizedVertex[];
@@ -723,8 +1204,14 @@ declare namespace gapi.client {
723
1204
  documentLayout?: GoogleCloudDocumentaiV1DocumentDocumentLayout;
724
1205
  /** A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries. */
725
1206
  entities?: GoogleCloudDocumentaiV1DocumentEntity[];
1207
+ /** The entity revision id that `document.entities` field is based on. If this field is set and `entities_revisions` is not empty, the entities in `document.entities` field are the entities in the entity revision with this id and `document.entity_validation_output` field is the `entity_validation_output` field in this entity revision. */
1208
+ entitiesRevisionId?: string;
1209
+ /** A list of entity revisions. The entity revisions are appended to the document in the processing order. This field can be used for comparing the entity extraction results at different stages of the processing. */
1210
+ entitiesRevisions?: GoogleCloudDocumentaiV1DocumentEntitiesRevision[];
726
1211
  /** Placeholder. Relationship among Document.entities. */
727
1212
  entityRelations?: GoogleCloudDocumentaiV1DocumentEntityRelation[];
1213
+ /** The entity validation output for the document. This is the validation output for `document.entities` field. */
1214
+ entityValidationOutput?: GoogleCloudDocumentaiV1DocumentEntityValidationOutput;
728
1215
  /** Any error that occurred while processing this document. */
729
1216
  error?: GoogleRpcStatus;
730
1217
  /** An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml). */
@@ -842,6 +1329,14 @@ declare namespace gapi.client {
842
1329
  /** Type of the text in the block. Available options are: `paragraph`, `subtitle`, `heading-1`, `heading-2`, `heading-3`, `heading-4`, `heading-5`, `header`, `footer`. */
843
1330
  type?: string;
844
1331
  }
1332
+ interface GoogleCloudDocumentaiV1DocumentEntitiesRevision {
1333
+ /** The entities in this revision. */
1334
+ entities?: GoogleCloudDocumentaiV1DocumentEntity[];
1335
+ /** The entity validation output for this revision. */
1336
+ entityValidationOutput?: GoogleCloudDocumentaiV1DocumentEntityValidationOutput;
1337
+ /** The revision id. */
1338
+ revisionId?: string;
1339
+ }
845
1340
  interface GoogleCloudDocumentaiV1DocumentEntity {
846
1341
  /** Optional. Confidence of detected Schema entity. Range `[0, 1]`. */
847
1342
  confidence?: number;
@@ -883,6 +1378,7 @@ declare namespace gapi.client {
883
1378
  integerValue?: number;
884
1379
  /** Money value. See also: https://github.com/googleapis/googleapis/blob/master/google/type/money.proto */
885
1380
  moneyValue?: GoogleTypeMoney;
1381
+ /** A signature - a graphical representation of a person's name, often used to sign a document. */
886
1382
  signatureValue?: boolean;
887
1383
  /** Optional. An optional field to store a normalized string. For some entity types, one of respective `structured_value` fields may also be populated. Also not all the types of `structured_value` will be normalized. For example, some processors may not generate `float` or `integer` normalized text by default. Below are sample formats mapped to structured values. - Money/Currency type (`money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in the ISO 8601 text format. - Datetime type (`datetime_value`) is in the ISO 8601 text format. */
888
1384
  text?: string;
@@ -895,6 +1391,24 @@ declare namespace gapi.client {
895
1391
  /** Subject entity id. */
896
1392
  subjectId?: string;
897
1393
  }
1394
+ interface GoogleCloudDocumentaiV1DocumentEntityValidationOutput {
1395
+ /** The overall result of the validation, true if all applicable rules are valid. */
1396
+ passAllRules?: boolean;
1397
+ /** The result of each validation rule. */
1398
+ validationResults?: GoogleCloudDocumentaiV1DocumentEntityValidationOutputValidationResult[];
1399
+ }
1400
+ interface GoogleCloudDocumentaiV1DocumentEntityValidationOutputValidationResult {
1401
+ /** Optional. The name of the rule resource that is used for validation. Format: `projects/{project}/locations/{location}/rules/{rule}` */
1402
+ rule?: string;
1403
+ /** The description of the validation rule. */
1404
+ ruleDescription?: string;
1405
+ /** The display name of the validation rule. */
1406
+ ruleName?: string;
1407
+ /** The detailed information of the running the validation process using the entity from the document based on the validation rule. */
1408
+ validationDetails?: string;
1409
+ /** The result of the validation rule. */
1410
+ validationResultType?: string;
1411
+ }
898
1412
  interface GoogleCloudDocumentaiV1DocumentOutputConfig {
899
1413
  /** Output config to write the results to Cloud Storage. */
900
1414
  gcsOutputConfig?: GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfig;
@@ -1197,6 +1711,10 @@ declare namespace gapi.client {
1197
1711
  /** A message providing more details about the current state of processing. For example, the rejection reason when the state is `rejected`. */
1198
1712
  stateMessage?: string;
1199
1713
  }
1714
+ interface GoogleCloudDocumentaiV1Documents {
1715
+ /** The list of documents. */
1716
+ documents?: GoogleCloudDocumentaiV1Document[];
1717
+ }
1200
1718
  interface GoogleCloudDocumentaiV1DocumentSchema {
1201
1719
  /** Description of the schema. */
1202
1720
  description?: string;
@@ -1417,6 +1935,30 @@ declare namespace gapi.client {
1417
1935
  /** The URI prefix. */
1418
1936
  gcsUriPrefix?: string;
1419
1937
  }
1938
+ interface GoogleCloudDocumentaiV1GenerateSchemaVersionRequest {
1939
+ /** The base schema version name to use for the schema generation. Format: `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` */
1940
+ baseSchemaVersion?: string;
1941
+ /** The set of documents placed on Cloud Storage. */
1942
+ gcsDocuments?: GoogleCloudDocumentaiV1GcsDocuments;
1943
+ /** The common prefix of documents placed on Cloud Storage. */
1944
+ gcsPrefix?: GoogleCloudDocumentaiV1GcsPrefix;
1945
+ /** Optional. User specified parameters for the schema generation. */
1946
+ generateSchemaVersionParams?: GoogleCloudDocumentaiV1GenerateSchemaVersionRequestGenerateSchemaVersionParams;
1947
+ /** The set of documents specified inline. */
1948
+ inlineDocuments?: GoogleCloudDocumentaiV1Documents;
1949
+ /** The set of raw documents. */
1950
+ rawDocuments?: GoogleCloudDocumentaiV1RawDocuments;
1951
+ }
1952
+ interface GoogleCloudDocumentaiV1GenerateSchemaVersionRequestGenerateSchemaVersionParams {
1953
+ /** Optional. Previous prompt-answers in a chronological order. */
1954
+ history?: GoogleCloudDocumentaiV1SchemaGenerationHistory;
1955
+ /** Optional. The prompt used for the schema generation. */
1956
+ prompt?: string;
1957
+ }
1958
+ interface GoogleCloudDocumentaiV1GenerateSchemaVersionResponse {
1959
+ /** The schema version generated by the model. */
1960
+ schemaVersion?: GoogleCloudDocumentaiV1SchemaVersion;
1961
+ }
1420
1962
  interface GoogleCloudDocumentaiV1HumanReviewStatus {
1421
1963
  /** 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 as the long-running operation returned by ReviewDocument. */
1422
1964
  humanReviewOperation?: string;
@@ -1449,6 +1991,30 @@ declare namespace gapi.client {
1449
1991
  /** The list of processors. */
1450
1992
  processorVersions?: GoogleCloudDocumentaiV1ProcessorVersion[];
1451
1993
  }
1994
+ interface GoogleCloudDocumentaiV1ListSchemasResponse {
1995
+ /** Points to the next Schema, otherwise empty. */
1996
+ nextPageToken?: string;
1997
+ /** The list of Schemas. */
1998
+ schemas?: GoogleCloudDocumentaiV1NextSchema[];
1999
+ }
2000
+ interface GoogleCloudDocumentaiV1ListSchemaVersionsResponse {
2001
+ /** Points to the next SchemaVersion, otherwise empty. */
2002
+ nextPageToken?: string;
2003
+ /** The list of SchemaVersions. */
2004
+ schemaVersions?: GoogleCloudDocumentaiV1SchemaVersion[];
2005
+ }
2006
+ interface GoogleCloudDocumentaiV1NextSchema {
2007
+ /** Output only. The time when the Schema was created. */
2008
+ createTime?: string;
2009
+ /** Optional. The user-defined name of the Schema. */
2010
+ displayName?: string;
2011
+ /** Optional. The GCP labels for the Schema. */
2012
+ labels?: {[P in string]: string};
2013
+ /** Identifier. The resource name of the Schema. Format: `projects/{project}/locations/{location}/schemas/{schema}` */
2014
+ name?: string;
2015
+ /** Output only. The time when the Schema was last updated. */
2016
+ updateTime?: string;
2017
+ }
1452
2018
  interface GoogleCloudDocumentaiV1NormalizedVertex {
1453
2019
  /** X coordinate. */
1454
2020
  x?: number;
@@ -1506,6 +2072,10 @@ declare namespace gapi.client {
1506
2072
  interface GoogleCloudDocumentaiV1ProcessOptionsLayoutConfig {
1507
2073
  /** Optional. Config for chunking in layout parser processor. */
1508
2074
  chunkingConfig?: GoogleCloudDocumentaiV1ProcessOptionsLayoutConfigChunkingConfig;
2075
+ /** Optional. Whether to include image annotations in layout parser response. */
2076
+ enableImageAnnotation?: boolean;
2077
+ /** Optional. Whether to include table annotations in layout parser response. */
2078
+ enableTableAnnotation?: boolean;
1509
2079
  /** Optional. Whether to include bounding boxes in layout parser processor response. */
1510
2080
  returnBoundingBoxes?: boolean;
1511
2081
  /** Optional. Whether to include images in layout parser processor response. */
@@ -1518,6 +2088,8 @@ declare namespace gapi.client {
1518
2088
  includeAncestorHeadings?: boolean;
1519
2089
  }
1520
2090
  interface GoogleCloudDocumentaiV1Processor {
2091
+ /** Optional. SchemaVersion used by the Processor. It is the same as Processor's DatasetSchema.schema_version Format is `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version} */
2092
+ activeSchemaVersion?: string;
1521
2093
  /** Output only. The time the processor was created. */
1522
2094
  createTime?: string;
1523
2095
  /** The default processor version. */
@@ -1653,6 +2225,10 @@ declare namespace gapi.client {
1653
2225
  /** An IANA MIME type (RFC6838) indicating the nature and format of the content. */
1654
2226
  mimeType?: string;
1655
2227
  }
2228
+ interface GoogleCloudDocumentaiV1RawDocuments {
2229
+ /** Specifies raw document content and mime type. */
2230
+ documents?: GoogleCloudDocumentaiV1RawDocument[];
2231
+ }
1656
2232
  interface GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata {
1657
2233
  /** The basic metadata of the long-running operation. */
1658
2234
  commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
@@ -1677,6 +2253,30 @@ declare namespace gapi.client {
1677
2253
  /** The state of the review operation. */
1678
2254
  state?: string;
1679
2255
  }
2256
+ interface GoogleCloudDocumentaiV1SchemaGenerationHistory {
2257
+ /** Required. Previous prompt-answers in a chronological order. */
2258
+ iterations?: GoogleCloudDocumentaiV1SchemaGenerationIteration[];
2259
+ }
2260
+ interface GoogleCloudDocumentaiV1SchemaGenerationIteration {
2261
+ /** Optional. The previous schema version adjusted by the model. */
2262
+ adjustedSchema?: GoogleCloudDocumentaiV1SchemaVersion;
2263
+ /** Required. The schema version generated by the model. */
2264
+ generatedSchema?: GoogleCloudDocumentaiV1SchemaVersion;
2265
+ /** Optional. The prompt used for the iteration. */
2266
+ prompt?: string;
2267
+ }
2268
+ interface GoogleCloudDocumentaiV1SchemaVersion {
2269
+ /** Output only. The time when the SchemaVersion was created. */
2270
+ createTime?: string;
2271
+ /** Optional. The user-defined name of the SchemaVersion. */
2272
+ displayName?: string;
2273
+ /** Optional. The GCP labels for the SchemaVersion. */
2274
+ labels?: {[P in string]: string};
2275
+ /** Identifier. The resource name of the SchemaVersion. Format: `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` */
2276
+ name?: string;
2277
+ /** Required. The schema of the SchemaVersion. */
2278
+ schema?: GoogleCloudDocumentaiV1DocumentSchema;
2279
+ }
1680
2280
  interface GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata {
1681
2281
  /** The basic metadata of the long-running operation. */
1682
2282
  commonMetadata?: GoogleCloudDocumentaiV1CommonOperationMetadata;
@@ -2564,7 +3164,324 @@ declare namespace gapi.client {
2564
3164
  fields?: string;
2565
3165
  /** 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. */
2566
3166
  key?: string;
2567
- /** Required. The resource name of Processor or ProcessorVersion. Format: `projects/{project}/locations/{location}/processors/{processor}`, or `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` */
3167
+ /** Required. The resource name of Processor or ProcessorVersion. Format: `projects/{project}/locations/{location}/processors/{processor}`, or `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` */
3168
+ name: string;
3169
+ /** OAuth 2.0 token for the current user. */
3170
+ oauth_token?: string;
3171
+ /** Returns response with indentations and line breaks. */
3172
+ prettyPrint?: boolean;
3173
+ /** 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. */
3174
+ quotaUser?: string;
3175
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3176
+ upload_protocol?: string;
3177
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3178
+ uploadType?: string;
3179
+ /** Request body */
3180
+ resource: GoogleCloudDocumentaiV1BatchProcessRequest;
3181
+ }): Request<GoogleLongrunningOperation>;
3182
+ batchProcess(
3183
+ request: {
3184
+ /** V1 error format. */
3185
+ '$.xgafv'?: string;
3186
+ /** OAuth access token. */
3187
+ access_token?: string;
3188
+ /** Data format for response. */
3189
+ alt?: string;
3190
+ /** JSONP */
3191
+ callback?: string;
3192
+ /** Selector specifying which fields to include in a partial response. */
3193
+ fields?: string;
3194
+ /** 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. */
3195
+ key?: string;
3196
+ /** Required. The resource name of Processor or ProcessorVersion. Format: `projects/{project}/locations/{location}/processors/{processor}`, or `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` */
3197
+ name: string;
3198
+ /** OAuth 2.0 token for the current user. */
3199
+ oauth_token?: string;
3200
+ /** Returns response with indentations and line breaks. */
3201
+ prettyPrint?: boolean;
3202
+ /** 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. */
3203
+ quotaUser?: string;
3204
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3205
+ upload_protocol?: string;
3206
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3207
+ uploadType?: string;
3208
+ },
3209
+ body: GoogleCloudDocumentaiV1BatchProcessRequest,
3210
+ ): Request<GoogleLongrunningOperation>;
3211
+ /** Creates a processor from the ProcessorType provided. The processor will be at `ENABLED` state by default after its creation. Note that this method requires the `documentai.processors.create` permission on the project, which is highly privileged. A user or service account with this permission can create new processors that can interact with any gcs bucket in your project. */
3212
+ create(request: {
3213
+ /** V1 error format. */
3214
+ '$.xgafv'?: string;
3215
+ /** OAuth access token. */
3216
+ access_token?: string;
3217
+ /** Data format for response. */
3218
+ alt?: string;
3219
+ /** JSONP */
3220
+ callback?: string;
3221
+ /** Selector specifying which fields to include in a partial response. */
3222
+ fields?: string;
3223
+ /** 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. */
3224
+ key?: string;
3225
+ /** OAuth 2.0 token for the current user. */
3226
+ oauth_token?: string;
3227
+ /** Required. The parent (project and location) under which to create the processor. Format: `projects/{project}/locations/{location}` */
3228
+ parent: string;
3229
+ /** Returns response with indentations and line breaks. */
3230
+ prettyPrint?: boolean;
3231
+ /** 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. */
3232
+ quotaUser?: string;
3233
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3234
+ upload_protocol?: string;
3235
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3236
+ uploadType?: string;
3237
+ /** Request body */
3238
+ resource: GoogleCloudDocumentaiV1Processor;
3239
+ }): Request<GoogleCloudDocumentaiV1Processor>;
3240
+ create(
3241
+ request: {
3242
+ /** V1 error format. */
3243
+ '$.xgafv'?: string;
3244
+ /** OAuth access token. */
3245
+ access_token?: string;
3246
+ /** Data format for response. */
3247
+ alt?: string;
3248
+ /** JSONP */
3249
+ callback?: string;
3250
+ /** Selector specifying which fields to include in a partial response. */
3251
+ fields?: string;
3252
+ /** 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. */
3253
+ key?: string;
3254
+ /** OAuth 2.0 token for the current user. */
3255
+ oauth_token?: string;
3256
+ /** Required. The parent (project and location) under which to create the processor. Format: `projects/{project}/locations/{location}` */
3257
+ parent: string;
3258
+ /** Returns response with indentations and line breaks. */
3259
+ prettyPrint?: boolean;
3260
+ /** 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. */
3261
+ quotaUser?: string;
3262
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3263
+ upload_protocol?: string;
3264
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3265
+ uploadType?: string;
3266
+ },
3267
+ body: GoogleCloudDocumentaiV1Processor,
3268
+ ): Request<GoogleCloudDocumentaiV1Processor>;
3269
+ /** Deletes the processor, unloads all deployed model artifacts if it was enabled and then deletes all artifacts associated with this processor. */
3270
+ delete(request?: {
3271
+ /** V1 error format. */
3272
+ '$.xgafv'?: string;
3273
+ /** OAuth access token. */
3274
+ access_token?: string;
3275
+ /** Data format for response. */
3276
+ alt?: string;
3277
+ /** JSONP */
3278
+ callback?: string;
3279
+ /** Selector specifying which fields to include in a partial response. */
3280
+ fields?: string;
3281
+ /** 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. */
3282
+ key?: string;
3283
+ /** Required. The processor resource name to be deleted. */
3284
+ name: string;
3285
+ /** OAuth 2.0 token for the current user. */
3286
+ oauth_token?: string;
3287
+ /** Returns response with indentations and line breaks. */
3288
+ prettyPrint?: boolean;
3289
+ /** 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. */
3290
+ quotaUser?: string;
3291
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3292
+ upload_protocol?: string;
3293
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3294
+ uploadType?: string;
3295
+ }): Request<GoogleLongrunningOperation>;
3296
+ /** Disables a processor */
3297
+ disable(request: {
3298
+ /** V1 error format. */
3299
+ '$.xgafv'?: string;
3300
+ /** OAuth access token. */
3301
+ access_token?: string;
3302
+ /** Data format for response. */
3303
+ alt?: string;
3304
+ /** JSONP */
3305
+ callback?: string;
3306
+ /** Selector specifying which fields to include in a partial response. */
3307
+ fields?: string;
3308
+ /** 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. */
3309
+ key?: string;
3310
+ /** Required. The processor resource name to be disabled. */
3311
+ name: string;
3312
+ /** OAuth 2.0 token for the current user. */
3313
+ oauth_token?: string;
3314
+ /** Returns response with indentations and line breaks. */
3315
+ prettyPrint?: boolean;
3316
+ /** 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. */
3317
+ quotaUser?: string;
3318
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3319
+ upload_protocol?: string;
3320
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3321
+ uploadType?: string;
3322
+ /** Request body */
3323
+ resource: GoogleCloudDocumentaiV1DisableProcessorRequest;
3324
+ }): Request<GoogleLongrunningOperation>;
3325
+ disable(
3326
+ request: {
3327
+ /** V1 error format. */
3328
+ '$.xgafv'?: string;
3329
+ /** OAuth access token. */
3330
+ access_token?: string;
3331
+ /** Data format for response. */
3332
+ alt?: string;
3333
+ /** JSONP */
3334
+ callback?: string;
3335
+ /** Selector specifying which fields to include in a partial response. */
3336
+ fields?: string;
3337
+ /** 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. */
3338
+ key?: string;
3339
+ /** Required. The processor resource name to be disabled. */
3340
+ name: string;
3341
+ /** OAuth 2.0 token for the current user. */
3342
+ oauth_token?: string;
3343
+ /** Returns response with indentations and line breaks. */
3344
+ prettyPrint?: boolean;
3345
+ /** 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. */
3346
+ quotaUser?: string;
3347
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3348
+ upload_protocol?: string;
3349
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3350
+ uploadType?: string;
3351
+ },
3352
+ body: GoogleCloudDocumentaiV1DisableProcessorRequest,
3353
+ ): Request<GoogleLongrunningOperation>;
3354
+ /** Enables a processor */
3355
+ enable(request: {
3356
+ /** V1 error format. */
3357
+ '$.xgafv'?: string;
3358
+ /** OAuth access token. */
3359
+ access_token?: string;
3360
+ /** Data format for response. */
3361
+ alt?: string;
3362
+ /** JSONP */
3363
+ callback?: string;
3364
+ /** Selector specifying which fields to include in a partial response. */
3365
+ fields?: string;
3366
+ /** 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. */
3367
+ key?: string;
3368
+ /** Required. The processor resource name to be enabled. */
3369
+ name: string;
3370
+ /** OAuth 2.0 token for the current user. */
3371
+ oauth_token?: string;
3372
+ /** Returns response with indentations and line breaks. */
3373
+ prettyPrint?: boolean;
3374
+ /** 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. */
3375
+ quotaUser?: string;
3376
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3377
+ upload_protocol?: string;
3378
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3379
+ uploadType?: string;
3380
+ /** Request body */
3381
+ resource: GoogleCloudDocumentaiV1EnableProcessorRequest;
3382
+ }): Request<GoogleLongrunningOperation>;
3383
+ enable(
3384
+ request: {
3385
+ /** V1 error format. */
3386
+ '$.xgafv'?: string;
3387
+ /** OAuth access token. */
3388
+ access_token?: string;
3389
+ /** Data format for response. */
3390
+ alt?: string;
3391
+ /** JSONP */
3392
+ callback?: string;
3393
+ /** Selector specifying which fields to include in a partial response. */
3394
+ fields?: string;
3395
+ /** 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. */
3396
+ key?: string;
3397
+ /** Required. The processor resource name to be enabled. */
3398
+ name: string;
3399
+ /** OAuth 2.0 token for the current user. */
3400
+ oauth_token?: string;
3401
+ /** Returns response with indentations and line breaks. */
3402
+ prettyPrint?: boolean;
3403
+ /** 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. */
3404
+ quotaUser?: string;
3405
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3406
+ upload_protocol?: string;
3407
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3408
+ uploadType?: string;
3409
+ },
3410
+ body: GoogleCloudDocumentaiV1EnableProcessorRequest,
3411
+ ): Request<GoogleLongrunningOperation>;
3412
+ /** Gets a processor detail. */
3413
+ get(request?: {
3414
+ /** V1 error format. */
3415
+ '$.xgafv'?: string;
3416
+ /** OAuth access token. */
3417
+ access_token?: string;
3418
+ /** Data format for response. */
3419
+ alt?: string;
3420
+ /** JSONP */
3421
+ callback?: string;
3422
+ /** Selector specifying which fields to include in a partial response. */
3423
+ fields?: string;
3424
+ /** 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. */
3425
+ key?: string;
3426
+ /** Required. The processor resource name. */
3427
+ name: string;
3428
+ /** OAuth 2.0 token for the current user. */
3429
+ oauth_token?: string;
3430
+ /** Returns response with indentations and line breaks. */
3431
+ prettyPrint?: boolean;
3432
+ /** 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. */
3433
+ quotaUser?: string;
3434
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3435
+ upload_protocol?: string;
3436
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3437
+ uploadType?: string;
3438
+ }): Request<GoogleCloudDocumentaiV1Processor>;
3439
+ /** Lists all processors which belong to this project. */
3440
+ list(request?: {
3441
+ /** V1 error format. */
3442
+ '$.xgafv'?: string;
3443
+ /** OAuth access token. */
3444
+ access_token?: string;
3445
+ /** Data format for response. */
3446
+ alt?: string;
3447
+ /** JSONP */
3448
+ callback?: string;
3449
+ /** Selector specifying which fields to include in a partial response. */
3450
+ fields?: string;
3451
+ /** 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. */
3452
+ key?: string;
3453
+ /** OAuth 2.0 token for the current user. */
3454
+ oauth_token?: string;
3455
+ /** The maximum number of processors to return. If unspecified, at most `50` processors will be returned. The maximum value is `100`. Values above `100` will be coerced to `100`. */
3456
+ pageSize?: number;
3457
+ /** We will return the processors sorted by creation time. The page token will point to the next processor. */
3458
+ pageToken?: string;
3459
+ /** Required. The parent (project and location) which owns this collection of Processors. Format: `projects/{project}/locations/{location}` */
3460
+ parent: string;
3461
+ /** Returns response with indentations and line breaks. */
3462
+ prettyPrint?: boolean;
3463
+ /** 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. */
3464
+ quotaUser?: string;
3465
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3466
+ upload_protocol?: string;
3467
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3468
+ uploadType?: string;
3469
+ }): Request<GoogleCloudDocumentaiV1ListProcessorsResponse>;
3470
+ /** Processes a single document. */
3471
+ process(request: {
3472
+ /** V1 error format. */
3473
+ '$.xgafv'?: string;
3474
+ /** OAuth access token. */
3475
+ access_token?: string;
3476
+ /** Data format for response. */
3477
+ alt?: string;
3478
+ /** JSONP */
3479
+ callback?: string;
3480
+ /** Selector specifying which fields to include in a partial response. */
3481
+ fields?: string;
3482
+ /** 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. */
3483
+ key?: string;
3484
+ /** Required. The resource name of the Processor or ProcessorVersion to use for processing. If a Processor is specified, the server will use its default version. Format: `projects/{project}/locations/{location}/processors/{processor}`, or `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` */
2568
3485
  name: string;
2569
3486
  /** OAuth 2.0 token for the current user. */
2570
3487
  oauth_token?: string;
@@ -2577,9 +3494,9 @@ declare namespace gapi.client {
2577
3494
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2578
3495
  uploadType?: string;
2579
3496
  /** Request body */
2580
- resource: GoogleCloudDocumentaiV1BatchProcessRequest;
2581
- }): Request<GoogleLongrunningOperation>;
2582
- batchProcess(
3497
+ resource: GoogleCloudDocumentaiV1ProcessRequest;
3498
+ }): Request<GoogleCloudDocumentaiV1ProcessResponse>;
3499
+ process(
2583
3500
  request: {
2584
3501
  /** V1 error format. */
2585
3502
  '$.xgafv'?: string;
@@ -2593,7 +3510,7 @@ declare namespace gapi.client {
2593
3510
  fields?: string;
2594
3511
  /** 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. */
2595
3512
  key?: string;
2596
- /** Required. The resource name of Processor or ProcessorVersion. Format: `projects/{project}/locations/{location}/processors/{processor}`, or `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` */
3513
+ /** Required. The resource name of the Processor or ProcessorVersion to use for processing. If a Processor is specified, the server will use its default version. Format: `projects/{project}/locations/{location}/processors/{processor}`, or `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` */
2597
3514
  name: string;
2598
3515
  /** OAuth 2.0 token for the current user. */
2599
3516
  oauth_token?: string;
@@ -2606,10 +3523,10 @@ declare namespace gapi.client {
2606
3523
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2607
3524
  uploadType?: string;
2608
3525
  },
2609
- body: GoogleCloudDocumentaiV1BatchProcessRequest,
2610
- ): Request<GoogleLongrunningOperation>;
2611
- /** Creates a processor from the ProcessorType provided. The processor will be at `ENABLED` state by default after its creation. Note that this method requires the `documentai.processors.create` permission on the project, which is highly privileged. A user or service account with this permission can create new processors that can interact with any gcs bucket in your project. */
2612
- create(request: {
3526
+ body: GoogleCloudDocumentaiV1ProcessRequest,
3527
+ ): Request<GoogleCloudDocumentaiV1ProcessResponse>;
3528
+ /** Set the default (active) version of a Processor that will be used in ProcessDocument and BatchProcessDocuments. */
3529
+ setDefaultProcessorVersion(request: {
2613
3530
  /** V1 error format. */
2614
3531
  '$.xgafv'?: string;
2615
3532
  /** OAuth access token. */
@@ -2624,10 +3541,10 @@ declare namespace gapi.client {
2624
3541
  key?: string;
2625
3542
  /** OAuth 2.0 token for the current user. */
2626
3543
  oauth_token?: string;
2627
- /** Required. The parent (project and location) under which to create the processor. Format: `projects/{project}/locations/{location}` */
2628
- parent: string;
2629
3544
  /** Returns response with indentations and line breaks. */
2630
3545
  prettyPrint?: boolean;
3546
+ /** Required. The resource name of the Processor to change default version. */
3547
+ processor: string;
2631
3548
  /** 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. */
2632
3549
  quotaUser?: string;
2633
3550
  /** Upload protocol for media (e.g. "raw", "multipart"). */
@@ -2635,9 +3552,9 @@ declare namespace gapi.client {
2635
3552
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2636
3553
  uploadType?: string;
2637
3554
  /** Request body */
2638
- resource: GoogleCloudDocumentaiV1Processor;
2639
- }): Request<GoogleCloudDocumentaiV1Processor>;
2640
- create(
3555
+ resource: GoogleCloudDocumentaiV1SetDefaultProcessorVersionRequest;
3556
+ }): Request<GoogleLongrunningOperation>;
3557
+ setDefaultProcessorVersion(
2641
3558
  request: {
2642
3559
  /** V1 error format. */
2643
3560
  '$.xgafv'?: string;
@@ -2653,10 +3570,10 @@ declare namespace gapi.client {
2653
3570
  key?: string;
2654
3571
  /** OAuth 2.0 token for the current user. */
2655
3572
  oauth_token?: string;
2656
- /** Required. The parent (project and location) under which to create the processor. Format: `projects/{project}/locations/{location}` */
2657
- parent: string;
2658
3573
  /** Returns response with indentations and line breaks. */
2659
3574
  prettyPrint?: boolean;
3575
+ /** Required. The resource name of the Processor to change default version. */
3576
+ processor: string;
2660
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. */
2661
3578
  quotaUser?: string;
2662
3579
  /** Upload protocol for media (e.g. "raw", "multipart"). */
@@ -2664,10 +3581,14 @@ declare namespace gapi.client {
2664
3581
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2665
3582
  uploadType?: string;
2666
3583
  },
2667
- body: GoogleCloudDocumentaiV1Processor,
2668
- ): Request<GoogleCloudDocumentaiV1Processor>;
2669
- /** Deletes the processor, unloads all deployed model artifacts if it was enabled and then deletes all artifacts associated with this processor. */
2670
- delete(request?: {
3584
+ body: GoogleCloudDocumentaiV1SetDefaultProcessorVersionRequest,
3585
+ ): Request<GoogleLongrunningOperation>;
3586
+ humanReviewConfig: HumanReviewConfigResource;
3587
+ processorVersions: ProcessorVersionsResource;
3588
+ }
3589
+ interface ProcessorTypesResource {
3590
+ /** Gets a processor type detail. */
3591
+ get(request?: {
2671
3592
  /** V1 error format. */
2672
3593
  '$.xgafv'?: string;
2673
3594
  /** OAuth access token. */
@@ -2680,7 +3601,7 @@ declare namespace gapi.client {
2680
3601
  fields?: string;
2681
3602
  /** 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. */
2682
3603
  key?: string;
2683
- /** Required. The processor resource name to be deleted. */
3604
+ /** Required. The processor type resource name. */
2684
3605
  name: string;
2685
3606
  /** OAuth 2.0 token for the current user. */
2686
3607
  oauth_token?: string;
@@ -2692,9 +3613,42 @@ declare namespace gapi.client {
2692
3613
  upload_protocol?: string;
2693
3614
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2694
3615
  uploadType?: string;
2695
- }): Request<GoogleLongrunningOperation>;
2696
- /** Disables a processor */
2697
- disable(request: {
3616
+ }): Request<GoogleCloudDocumentaiV1ProcessorType>;
3617
+ /** Lists the processor types that exist. */
3618
+ list(request?: {
3619
+ /** V1 error format. */
3620
+ '$.xgafv'?: string;
3621
+ /** OAuth access token. */
3622
+ access_token?: string;
3623
+ /** Data format for response. */
3624
+ alt?: string;
3625
+ /** JSONP */
3626
+ callback?: string;
3627
+ /** Selector specifying which fields to include in a partial response. */
3628
+ fields?: string;
3629
+ /** 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. */
3630
+ key?: string;
3631
+ /** OAuth 2.0 token for the current user. */
3632
+ oauth_token?: string;
3633
+ /** The maximum number of processor types to return. If unspecified, at most `100` processor types will be returned. The maximum value is `500`. Values above `500` will be coerced to `500`. */
3634
+ pageSize?: number;
3635
+ /** Used to retrieve the next page of results, empty if at the end of the list. */
3636
+ pageToken?: string;
3637
+ /** Required. The location of processor types to list. Format: `projects/{project}/locations/{location}`. */
3638
+ parent: string;
3639
+ /** Returns response with indentations and line breaks. */
3640
+ prettyPrint?: boolean;
3641
+ /** 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. */
3642
+ quotaUser?: string;
3643
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3644
+ upload_protocol?: string;
3645
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3646
+ uploadType?: string;
3647
+ }): Request<GoogleCloudDocumentaiV1ListProcessorTypesResponse>;
3648
+ }
3649
+ interface SchemaVersionsResource {
3650
+ /** Creates a schema version. */
3651
+ create(request: {
2698
3652
  /** V1 error format. */
2699
3653
  '$.xgafv'?: string;
2700
3654
  /** OAuth access token. */
@@ -2707,10 +3661,10 @@ declare namespace gapi.client {
2707
3661
  fields?: string;
2708
3662
  /** 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. */
2709
3663
  key?: string;
2710
- /** Required. The processor resource name to be disabled. */
2711
- name: string;
2712
3664
  /** OAuth 2.0 token for the current user. */
2713
3665
  oauth_token?: string;
3666
+ /** Required. The parent (project and location) under which to create the SchemaVersion. Format: `projects/{project}/locations/{location}/schemas/{schema}` */
3667
+ parent: string;
2714
3668
  /** Returns response with indentations and line breaks. */
2715
3669
  prettyPrint?: boolean;
2716
3670
  /** 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. */
@@ -2720,9 +3674,9 @@ declare namespace gapi.client {
2720
3674
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2721
3675
  uploadType?: string;
2722
3676
  /** Request body */
2723
- resource: GoogleCloudDocumentaiV1DisableProcessorRequest;
2724
- }): Request<GoogleLongrunningOperation>;
2725
- disable(
3677
+ resource: GoogleCloudDocumentaiV1SchemaVersion;
3678
+ }): Request<GoogleCloudDocumentaiV1SchemaVersion>;
3679
+ create(
2726
3680
  request: {
2727
3681
  /** V1 error format. */
2728
3682
  '$.xgafv'?: string;
@@ -2736,10 +3690,10 @@ declare namespace gapi.client {
2736
3690
  fields?: string;
2737
3691
  /** 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. */
2738
3692
  key?: string;
2739
- /** Required. The processor resource name to be disabled. */
2740
- name: string;
2741
3693
  /** OAuth 2.0 token for the current user. */
2742
3694
  oauth_token?: string;
3695
+ /** Required. The parent (project and location) under which to create the SchemaVersion. Format: `projects/{project}/locations/{location}/schemas/{schema}` */
3696
+ parent: string;
2743
3697
  /** Returns response with indentations and line breaks. */
2744
3698
  prettyPrint?: boolean;
2745
3699
  /** 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. */
@@ -2749,10 +3703,10 @@ declare namespace gapi.client {
2749
3703
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2750
3704
  uploadType?: string;
2751
3705
  },
2752
- body: GoogleCloudDocumentaiV1DisableProcessorRequest,
2753
- ): Request<GoogleLongrunningOperation>;
2754
- /** Enables a processor */
2755
- enable(request: {
3706
+ body: GoogleCloudDocumentaiV1SchemaVersion,
3707
+ ): Request<GoogleCloudDocumentaiV1SchemaVersion>;
3708
+ /** Deletes a schema version. */
3709
+ delete(request?: {
2756
3710
  /** V1 error format. */
2757
3711
  '$.xgafv'?: string;
2758
3712
  /** OAuth access token. */
@@ -2765,7 +3719,7 @@ declare namespace gapi.client {
2765
3719
  fields?: string;
2766
3720
  /** 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. */
2767
3721
  key?: string;
2768
- /** Required. The processor resource name to be enabled. */
3722
+ /** Required. The name of the SchemaVersion to delete. Format: `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` */
2769
3723
  name: string;
2770
3724
  /** OAuth 2.0 token for the current user. */
2771
3725
  oauth_token?: string;
@@ -2777,10 +3731,37 @@ declare namespace gapi.client {
2777
3731
  upload_protocol?: string;
2778
3732
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2779
3733
  uploadType?: string;
2780
- /** Request body */
2781
- resource: GoogleCloudDocumentaiV1EnableProcessorRequest;
2782
3734
  }): Request<GoogleLongrunningOperation>;
2783
- enable(
3735
+ /** Generates a schema version. */
3736
+ generate(request: {
3737
+ /** V1 error format. */
3738
+ '$.xgafv'?: string;
3739
+ /** OAuth access token. */
3740
+ access_token?: string;
3741
+ /** Data format for response. */
3742
+ alt?: string;
3743
+ /** JSONP */
3744
+ callback?: string;
3745
+ /** Selector specifying which fields to include in a partial response. */
3746
+ fields?: string;
3747
+ /** 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. */
3748
+ key?: string;
3749
+ /** OAuth 2.0 token for the current user. */
3750
+ oauth_token?: string;
3751
+ /** Required. The parent (project, location and schema) under which to generate the SchemaVersion. Format: `projects/{project}/locations/{location}/schemas/{schema}` */
3752
+ parent: string;
3753
+ /** Returns response with indentations and line breaks. */
3754
+ prettyPrint?: boolean;
3755
+ /** 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. */
3756
+ quotaUser?: string;
3757
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3758
+ upload_protocol?: string;
3759
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3760
+ uploadType?: string;
3761
+ /** Request body */
3762
+ resource: GoogleCloudDocumentaiV1GenerateSchemaVersionRequest;
3763
+ }): Request<GoogleCloudDocumentaiV1GenerateSchemaVersionResponse>;
3764
+ generate(
2784
3765
  request: {
2785
3766
  /** V1 error format. */
2786
3767
  '$.xgafv'?: string;
@@ -2794,10 +3775,10 @@ declare namespace gapi.client {
2794
3775
  fields?: string;
2795
3776
  /** 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. */
2796
3777
  key?: string;
2797
- /** Required. The processor resource name to be enabled. */
2798
- name: string;
2799
3778
  /** OAuth 2.0 token for the current user. */
2800
3779
  oauth_token?: string;
3780
+ /** Required. The parent (project, location and schema) under which to generate the SchemaVersion. Format: `projects/{project}/locations/{location}/schemas/{schema}` */
3781
+ parent: string;
2801
3782
  /** Returns response with indentations and line breaks. */
2802
3783
  prettyPrint?: boolean;
2803
3784
  /** 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. */
@@ -2807,9 +3788,9 @@ declare namespace gapi.client {
2807
3788
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2808
3789
  uploadType?: string;
2809
3790
  },
2810
- body: GoogleCloudDocumentaiV1EnableProcessorRequest,
2811
- ): Request<GoogleLongrunningOperation>;
2812
- /** Gets a processor detail. */
3791
+ body: GoogleCloudDocumentaiV1GenerateSchemaVersionRequest,
3792
+ ): Request<GoogleCloudDocumentaiV1GenerateSchemaVersionResponse>;
3793
+ /** Gets a schema version. */
2813
3794
  get(request?: {
2814
3795
  /** V1 error format. */
2815
3796
  '$.xgafv'?: string;
@@ -2823,7 +3804,7 @@ declare namespace gapi.client {
2823
3804
  fields?: string;
2824
3805
  /** 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. */
2825
3806
  key?: string;
2826
- /** Required. The processor resource name. */
3807
+ /** Required. The name of the SchemaVersion to get. Format: `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` */
2827
3808
  name: string;
2828
3809
  /** OAuth 2.0 token for the current user. */
2829
3810
  oauth_token?: string;
@@ -2835,8 +3816,8 @@ declare namespace gapi.client {
2835
3816
  upload_protocol?: string;
2836
3817
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2837
3818
  uploadType?: string;
2838
- }): Request<GoogleCloudDocumentaiV1Processor>;
2839
- /** Lists all processors which belong to this project. */
3819
+ }): Request<GoogleCloudDocumentaiV1SchemaVersion>;
3820
+ /** Lists SchemaVersions. */
2840
3821
  list(request?: {
2841
3822
  /** V1 error format. */
2842
3823
  '$.xgafv'?: string;
@@ -2852,11 +3833,11 @@ declare namespace gapi.client {
2852
3833
  key?: string;
2853
3834
  /** OAuth 2.0 token for the current user. */
2854
3835
  oauth_token?: string;
2855
- /** The maximum number of processors to return. If unspecified, at most `50` processors will be returned. The maximum value is `100`. Values above `100` will be coerced to `100`. */
3836
+ /** Optional. The maximum number of SchemaVersion to return. If unspecified, at most `10` SchemaVersion will be returned. The maximum value is `20`. Values above `20` will be coerced to `20`. */
2856
3837
  pageSize?: number;
2857
- /** We will return the processors sorted by creation time. The page token will point to the next processor. */
3838
+ /** Optional. We will return the SchemaVersion sorted by creation time. The page token will point to the next SchemaVersion. */
2858
3839
  pageToken?: string;
2859
- /** Required. The parent (project and location) which owns this collection of Processors. Format: `projects/{project}/locations/{location}` */
3840
+ /** Required. Format: `projects/{project}/locations/{location}/schemas/{schema}` */
2860
3841
  parent: string;
2861
3842
  /** Returns response with indentations and line breaks. */
2862
3843
  prettyPrint?: boolean;
@@ -2866,9 +3847,9 @@ declare namespace gapi.client {
2866
3847
  upload_protocol?: string;
2867
3848
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2868
3849
  uploadType?: string;
2869
- }): Request<GoogleCloudDocumentaiV1ListProcessorsResponse>;
2870
- /** Processes a single document. */
2871
- process(request: {
3850
+ }): Request<GoogleCloudDocumentaiV1ListSchemaVersionsResponse>;
3851
+ /** Updates a schema version. Editable fields are: - `display_name` - `labels` */
3852
+ patch(request: {
2872
3853
  /** V1 error format. */
2873
3854
  '$.xgafv'?: string;
2874
3855
  /** OAuth access token. */
@@ -2881,7 +3862,7 @@ declare namespace gapi.client {
2881
3862
  fields?: string;
2882
3863
  /** 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. */
2883
3864
  key?: string;
2884
- /** Required. The resource name of the Processor or ProcessorVersion to use for processing. If a Processor is specified, the server will use its default version. Format: `projects/{project}/locations/{location}/processors/{processor}`, or `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` */
3865
+ /** Identifier. The resource name of the SchemaVersion. Format: `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` */
2885
3866
  name: string;
2886
3867
  /** OAuth 2.0 token for the current user. */
2887
3868
  oauth_token?: string;
@@ -2889,14 +3870,16 @@ declare namespace gapi.client {
2889
3870
  prettyPrint?: boolean;
2890
3871
  /** 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. */
2891
3872
  quotaUser?: string;
3873
+ /** Optional. The update mask to apply to the resource. **Note:** Only the following fields can be updated: - display_name. - labels. */
3874
+ updateMask?: string;
2892
3875
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2893
3876
  upload_protocol?: string;
2894
3877
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2895
3878
  uploadType?: string;
2896
3879
  /** Request body */
2897
- resource: GoogleCloudDocumentaiV1ProcessRequest;
2898
- }): Request<GoogleCloudDocumentaiV1ProcessResponse>;
2899
- process(
3880
+ resource: GoogleCloudDocumentaiV1SchemaVersion;
3881
+ }): Request<GoogleCloudDocumentaiV1SchemaVersion>;
3882
+ patch(
2900
3883
  request: {
2901
3884
  /** V1 error format. */
2902
3885
  '$.xgafv'?: string;
@@ -2910,7 +3893,7 @@ declare namespace gapi.client {
2910
3893
  fields?: string;
2911
3894
  /** 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. */
2912
3895
  key?: string;
2913
- /** Required. The resource name of the Processor or ProcessorVersion to use for processing. If a Processor is specified, the server will use its default version. Format: `projects/{project}/locations/{location}/processors/{processor}`, or `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` */
3896
+ /** Identifier. The resource name of the SchemaVersion. Format: `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` */
2914
3897
  name: string;
2915
3898
  /** OAuth 2.0 token for the current user. */
2916
3899
  oauth_token?: string;
@@ -2918,15 +3901,19 @@ declare namespace gapi.client {
2918
3901
  prettyPrint?: boolean;
2919
3902
  /** 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. */
2920
3903
  quotaUser?: string;
3904
+ /** Optional. The update mask to apply to the resource. **Note:** Only the following fields can be updated: - display_name. - labels. */
3905
+ updateMask?: string;
2921
3906
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2922
3907
  upload_protocol?: string;
2923
3908
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2924
3909
  uploadType?: string;
2925
3910
  },
2926
- body: GoogleCloudDocumentaiV1ProcessRequest,
2927
- ): Request<GoogleCloudDocumentaiV1ProcessResponse>;
2928
- /** Set the default (active) version of a Processor that will be used in ProcessDocument and BatchProcessDocuments. */
2929
- setDefaultProcessorVersion(request: {
3911
+ body: GoogleCloudDocumentaiV1SchemaVersion,
3912
+ ): Request<GoogleCloudDocumentaiV1SchemaVersion>;
3913
+ }
3914
+ interface SchemasResource {
3915
+ /** Creates a schema. */
3916
+ create(request: {
2930
3917
  /** V1 error format. */
2931
3918
  '$.xgafv'?: string;
2932
3919
  /** OAuth access token. */
@@ -2941,10 +3928,10 @@ declare namespace gapi.client {
2941
3928
  key?: string;
2942
3929
  /** OAuth 2.0 token for the current user. */
2943
3930
  oauth_token?: string;
3931
+ /** Required. The parent (project and location) under which to create the Schema. Format: `projects/{project}/locations/{location}` */
3932
+ parent: string;
2944
3933
  /** Returns response with indentations and line breaks. */
2945
3934
  prettyPrint?: boolean;
2946
- /** Required. The resource name of the Processor to change default version. */
2947
- processor: string;
2948
3935
  /** 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. */
2949
3936
  quotaUser?: string;
2950
3937
  /** Upload protocol for media (e.g. "raw", "multipart"). */
@@ -2952,9 +3939,9 @@ declare namespace gapi.client {
2952
3939
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2953
3940
  uploadType?: string;
2954
3941
  /** Request body */
2955
- resource: GoogleCloudDocumentaiV1SetDefaultProcessorVersionRequest;
2956
- }): Request<GoogleLongrunningOperation>;
2957
- setDefaultProcessorVersion(
3942
+ resource: GoogleCloudDocumentaiV1NextSchema;
3943
+ }): Request<GoogleCloudDocumentaiV1NextSchema>;
3944
+ create(
2958
3945
  request: {
2959
3946
  /** V1 error format. */
2960
3947
  '$.xgafv'?: string;
@@ -2970,10 +3957,10 @@ declare namespace gapi.client {
2970
3957
  key?: string;
2971
3958
  /** OAuth 2.0 token for the current user. */
2972
3959
  oauth_token?: string;
3960
+ /** Required. The parent (project and location) under which to create the Schema. Format: `projects/{project}/locations/{location}` */
3961
+ parent: string;
2973
3962
  /** Returns response with indentations and line breaks. */
2974
3963
  prettyPrint?: boolean;
2975
- /** Required. The resource name of the Processor to change default version. */
2976
- processor: string;
2977
3964
  /** 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. */
2978
3965
  quotaUser?: string;
2979
3966
  /** Upload protocol for media (e.g. "raw", "multipart"). */
@@ -2981,13 +3968,38 @@ declare namespace gapi.client {
2981
3968
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2982
3969
  uploadType?: string;
2983
3970
  },
2984
- body: GoogleCloudDocumentaiV1SetDefaultProcessorVersionRequest,
2985
- ): Request<GoogleLongrunningOperation>;
2986
- humanReviewConfig: HumanReviewConfigResource;
2987
- processorVersions: ProcessorVersionsResource;
2988
- }
2989
- interface ProcessorTypesResource {
2990
- /** Gets a processor type detail. */
3971
+ body: GoogleCloudDocumentaiV1NextSchema,
3972
+ ): Request<GoogleCloudDocumentaiV1NextSchema>;
3973
+ /** Deletes a schema. */
3974
+ delete(request?: {
3975
+ /** V1 error format. */
3976
+ '$.xgafv'?: string;
3977
+ /** OAuth access token. */
3978
+ access_token?: string;
3979
+ /** Data format for response. */
3980
+ alt?: string;
3981
+ /** JSONP */
3982
+ callback?: string;
3983
+ /** Selector specifying which fields to include in a partial response. */
3984
+ fields?: string;
3985
+ /** Optional. If set to true, any child resources of this Schema will also be deleted. (Otherwise, the request will only work if the Schema has no child resources.) */
3986
+ force?: boolean;
3987
+ /** 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. */
3988
+ key?: string;
3989
+ /** Required. The name of the Schema to be deleted. Format: `projects/{project}/locations/{location}/schemas/{schema}` */
3990
+ name: string;
3991
+ /** OAuth 2.0 token for the current user. */
3992
+ oauth_token?: string;
3993
+ /** Returns response with indentations and line breaks. */
3994
+ prettyPrint?: boolean;
3995
+ /** 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. */
3996
+ quotaUser?: string;
3997
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3998
+ upload_protocol?: string;
3999
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4000
+ uploadType?: string;
4001
+ }): Request<GoogleLongrunningOperation>;
4002
+ /** Gets a schema. */
2991
4003
  get(request?: {
2992
4004
  /** V1 error format. */
2993
4005
  '$.xgafv'?: string;
@@ -3001,7 +4013,7 @@ declare namespace gapi.client {
3001
4013
  fields?: string;
3002
4014
  /** 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. */
3003
4015
  key?: string;
3004
- /** Required. The processor type resource name. */
4016
+ /** Required. The name of the Schema to get. Format: `projects/{project}/locations/{location}/schemas/{schema}` */
3005
4017
  name: string;
3006
4018
  /** OAuth 2.0 token for the current user. */
3007
4019
  oauth_token?: string;
@@ -3013,8 +4025,8 @@ declare namespace gapi.client {
3013
4025
  upload_protocol?: string;
3014
4026
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3015
4027
  uploadType?: string;
3016
- }): Request<GoogleCloudDocumentaiV1ProcessorType>;
3017
- /** Lists the processor types that exist. */
4028
+ }): Request<GoogleCloudDocumentaiV1NextSchema>;
4029
+ /** Lists Schemas. */
3018
4030
  list(request?: {
3019
4031
  /** V1 error format. */
3020
4032
  '$.xgafv'?: string;
@@ -3030,11 +4042,11 @@ declare namespace gapi.client {
3030
4042
  key?: string;
3031
4043
  /** OAuth 2.0 token for the current user. */
3032
4044
  oauth_token?: string;
3033
- /** The maximum number of processor types to return. If unspecified, at most `100` processor types will be returned. The maximum value is `500`. Values above `500` will be coerced to `500`. */
4045
+ /** Optional. The maximum number of schema groups to return. If unspecified, at most `10` Schema will be returned. The maximum value is `20`. Values above `20` will be coerced to `20`. */
3034
4046
  pageSize?: number;
3035
- /** Used to retrieve the next page of results, empty if at the end of the list. */
4047
+ /** Optional. We will return the schema groups sorted by creation time. The page token will point to the next Schema. */
3036
4048
  pageToken?: string;
3037
- /** Required. The location of processor types to list. Format: `projects/{project}/locations/{location}`. */
4049
+ /** Required. Format: `projects/{project}/locations/{location}` */
3038
4050
  parent: string;
3039
4051
  /** Returns response with indentations and line breaks. */
3040
4052
  prettyPrint?: boolean;
@@ -3044,7 +4056,70 @@ declare namespace gapi.client {
3044
4056
  upload_protocol?: string;
3045
4057
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3046
4058
  uploadType?: string;
3047
- }): Request<GoogleCloudDocumentaiV1ListProcessorTypesResponse>;
4059
+ }): Request<GoogleCloudDocumentaiV1ListSchemasResponse>;
4060
+ /** Updates a schema. Editable fields are: - `display_name` - `labels` */
4061
+ patch(request: {
4062
+ /** V1 error format. */
4063
+ '$.xgafv'?: string;
4064
+ /** OAuth access token. */
4065
+ access_token?: string;
4066
+ /** Data format for response. */
4067
+ alt?: string;
4068
+ /** JSONP */
4069
+ callback?: string;
4070
+ /** Selector specifying which fields to include in a partial response. */
4071
+ fields?: string;
4072
+ /** 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. */
4073
+ key?: string;
4074
+ /** Identifier. The resource name of the Schema. Format: `projects/{project}/locations/{location}/schemas/{schema}` */
4075
+ name: string;
4076
+ /** OAuth 2.0 token for the current user. */
4077
+ oauth_token?: string;
4078
+ /** Returns response with indentations and line breaks. */
4079
+ prettyPrint?: boolean;
4080
+ /** 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. */
4081
+ quotaUser?: string;
4082
+ /** Optional. The update mask to apply to the resource. **Note:** Only the following fields can be updated: - display_name. - labels. */
4083
+ updateMask?: string;
4084
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4085
+ upload_protocol?: string;
4086
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4087
+ uploadType?: string;
4088
+ /** Request body */
4089
+ resource: GoogleCloudDocumentaiV1NextSchema;
4090
+ }): Request<GoogleCloudDocumentaiV1NextSchema>;
4091
+ patch(
4092
+ request: {
4093
+ /** V1 error format. */
4094
+ '$.xgafv'?: string;
4095
+ /** OAuth access token. */
4096
+ access_token?: string;
4097
+ /** Data format for response. */
4098
+ alt?: string;
4099
+ /** JSONP */
4100
+ callback?: string;
4101
+ /** Selector specifying which fields to include in a partial response. */
4102
+ fields?: string;
4103
+ /** 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. */
4104
+ key?: string;
4105
+ /** Identifier. The resource name of the Schema. Format: `projects/{project}/locations/{location}/schemas/{schema}` */
4106
+ name: string;
4107
+ /** OAuth 2.0 token for the current user. */
4108
+ oauth_token?: string;
4109
+ /** Returns response with indentations and line breaks. */
4110
+ prettyPrint?: boolean;
4111
+ /** 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. */
4112
+ quotaUser?: string;
4113
+ /** Optional. The update mask to apply to the resource. **Note:** Only the following fields can be updated: - display_name. - labels. */
4114
+ updateMask?: string;
4115
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4116
+ upload_protocol?: string;
4117
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4118
+ uploadType?: string;
4119
+ },
4120
+ body: GoogleCloudDocumentaiV1NextSchema,
4121
+ ): Request<GoogleCloudDocumentaiV1NextSchema>;
4122
+ schemaVersions: SchemaVersionsResource;
3048
4123
  }
3049
4124
  interface LocationsResource {
3050
4125
  /** Fetches processor types. Note that we don't use ListProcessorTypes here, because it isn't paginated. */
@@ -3139,6 +4214,7 @@ declare namespace gapi.client {
3139
4214
  operations: OperationsResource;
3140
4215
  processors: ProcessorsResource;
3141
4216
  processorTypes: ProcessorTypesResource;
4217
+ schemas: SchemasResource;
3142
4218
  }
3143
4219
  interface OperationsResource {
3144
4220
  /** 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. */