@maxim_mazurok/gapi.client.documentai-v1beta3 0.1.20251013 → 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 +847 -2
  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=v1beta3
12
- // Revision: 20251013
12
+ // Revision: 20251020
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -215,11 +215,81 @@ declare namespace gapi.client {
215
215
  /** Required. The id of the document. */
216
216
  docId?: string;
217
217
  }
218
+ interface GoogleCloudDocumentaiUiv1beta3DocumentSchema {
219
+ /** Description of the schema. */
220
+ description?: string;
221
+ /** Display name to show to users. */
222
+ displayName?: string;
223
+ /** Entity types of the schema. */
224
+ entityTypes?: GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityType[];
225
+ /** Metadata of the schema. */
226
+ metadata?: GoogleCloudDocumentaiUiv1beta3DocumentSchemaMetadata;
227
+ }
228
+ interface GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityType {
229
+ /** The entity type that this type is derived from. For now, one and only one should be set. */
230
+ baseTypes?: string[];
231
+ /** The description of the entity type. Could be used to provide more information about the entity type for model calls. */
232
+ description?: string;
233
+ /** User defined name for the type. */
234
+ displayName?: string;
235
+ /** Metadata for the entity type. */
236
+ entityTypeMetadata?: GoogleCloudDocumentaiUiv1beta3EntityTypeMetadata;
237
+ /** 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. */
238
+ enumValues?: GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityTypeEnumValues;
239
+ /** 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. */
240
+ name?: string;
241
+ /** Description the nested structure, or composition of an entity. */
242
+ properties?: GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityTypeProperty[];
243
+ }
244
+ interface GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityTypeEnumValues {
245
+ /** The individual values that this enum values type can include. */
246
+ values?: string[];
247
+ }
248
+ interface GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityTypeProperty {
249
+ /** The description of the property. Could be used to provide more information about the property for model calls. */
250
+ description?: string;
251
+ /** User defined name for the property. */
252
+ displayName?: string;
253
+ /** Specifies how the entity's value is obtained. */
254
+ method?: string;
255
+ /** The name of the property. Follows the same guidelines as the EntityType name. */
256
+ name?: string;
257
+ /** Occurrence type limits the number of instances an entity type appears in the document. */
258
+ occurrenceType?: string;
259
+ /** Any additional metadata about the property can be added here. */
260
+ propertyMetadata?: GoogleCloudDocumentaiUiv1beta3PropertyMetadata;
261
+ /** A reference to the value type of the property. This type is subject to the same conventions as the `Entity.base_types` field. */
262
+ valueType?: string;
263
+ }
264
+ interface GoogleCloudDocumentaiUiv1beta3DocumentSchemaMetadata {
265
+ /** If true, on a given page, there can be multiple `document` annotations covering it. */
266
+ documentAllowMultipleLabels?: boolean;
267
+ /** If true, a `document` entity type can be applied to subdocument (splitting). Otherwise, it can only be applied to the entire document (classification). */
268
+ documentSplitter?: boolean;
269
+ /** If set, all the nested entities must be prefixed with the parents. */
270
+ prefixedNamingOnProperties?: boolean;
271
+ /** 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. */
272
+ skipNamingValidation?: boolean;
273
+ }
218
274
  interface GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata {
219
275
  /** The basic metadata of the long-running operation. */
220
276
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
221
277
  }
222
278
  interface GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse {}
279
+ interface GoogleCloudDocumentaiUiv1beta3EntityTypeMetadata {
280
+ /** Field tier metadata on the property */
281
+ fieldTierMetadata?: GoogleCloudDocumentaiUiv1beta3FieldTierMetadata;
282
+ /** Human review labeling config on the entity. */
283
+ humanReviewLabelingMetadata?: GoogleCloudDocumentaiUiv1beta3HumanReviewLabelingMetadata;
284
+ /** Human review config on the entity. */
285
+ humanReviewMetadata?: GoogleCloudDocumentaiUiv1beta3HumanReviewValidationMetadata;
286
+ /** Whether the entity type should be considered inactive. */
287
+ inactive?: boolean;
288
+ /** Schema editability metadata on the entity. */
289
+ schemaEditabilityMetadata?: GoogleCloudDocumentaiUiv1beta3SchemaEditabilityMetadata;
290
+ /** Schema inference metadata on the entity. */
291
+ schemaInferenceMetadata?: GoogleCloudDocumentaiUiv1beta3SchemaInferenceMetadata;
292
+ }
223
293
  interface GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata {
224
294
  /** The basic metadata of the long-running operation. */
225
295
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
@@ -228,6 +298,40 @@ declare namespace gapi.client {
228
298
  /** The resource name of the created evaluation. */
229
299
  evaluation?: string;
230
300
  }
301
+ interface GoogleCloudDocumentaiUiv1beta3EvaluationMetrics {
302
+ /** The calculated f1 score. */
303
+ f1Score?: number;
304
+ /** The amount of false negatives. */
305
+ falseNegativesCount?: number;
306
+ /** The amount of false positives. */
307
+ falsePositivesCount?: number;
308
+ /** The amount of documents with a ground truth occurrence. */
309
+ groundTruthDocumentCount?: number;
310
+ /** The amount of occurrences in ground truth documents. */
311
+ groundTruthOccurrencesCount?: number;
312
+ /** The calculated precision. */
313
+ precision?: number;
314
+ /** The amount of documents with a predicted occurrence. */
315
+ predictedDocumentCount?: number;
316
+ /** The amount of occurrences in predicted documents. */
317
+ predictedOccurrencesCount?: number;
318
+ /** The calculated recall. */
319
+ recall?: number;
320
+ /** The amount of documents that had an occurrence of this label. */
321
+ totalDocumentsCount?: number;
322
+ /** The amount of true positives. */
323
+ truePositivesCount?: number;
324
+ }
325
+ interface GoogleCloudDocumentaiUiv1beta3EvaluationReference {
326
+ /** An aggregate of the statistics for the evaluation with fuzzy matching on. */
327
+ aggregateMetrics?: GoogleCloudDocumentaiUiv1beta3EvaluationMetrics;
328
+ /** An aggregate of the statistics for the evaluation with fuzzy matching off. */
329
+ aggregateMetricsExact?: GoogleCloudDocumentaiUiv1beta3EvaluationMetrics;
330
+ /** The resource name of the evaluation. */
331
+ evaluation?: string;
332
+ /** The resource name of the Long Running Operation for the evaluation. */
333
+ operation?: string;
334
+ }
231
335
  interface GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadata {
232
336
  /** The basic metadata of the long-running operation. */
233
337
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
@@ -259,6 +363,30 @@ declare namespace gapi.client {
259
363
  /** The Cloud Storage URI containing the output artifacts. */
260
364
  gcsUri?: string;
261
365
  }
366
+ interface GoogleCloudDocumentaiUiv1beta3FieldExtractionMetadata {
367
+ /** Entity query config. */
368
+ entityQuery?: GoogleCloudDocumentaiUiv1beta3FieldExtractionMetadataEntityQuery;
369
+ /** Summary options config. */
370
+ summaryOptions?: GoogleCloudDocumentaiUiv1beta3SummaryOptions;
371
+ }
372
+ interface GoogleCloudDocumentaiUiv1beta3FieldExtractionMetadataEntityQuery {
373
+ /** The original entity query inputed by the user. */
374
+ userEntityQuery?: string;
375
+ }
376
+ interface GoogleCloudDocumentaiUiv1beta3FieldTierMetadata {
377
+ /** 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. */
378
+ tierLevel?: number;
379
+ }
380
+ interface GoogleCloudDocumentaiUiv1beta3HumanReviewLabelingMetadata {
381
+ /** Whether to enable normalization editing. */
382
+ enableNormalizationEditing?: boolean;
383
+ }
384
+ interface GoogleCloudDocumentaiUiv1beta3HumanReviewValidationMetadata {
385
+ /** The confidence threshold if human review validation is enabled. */
386
+ confidenceThreshold?: number;
387
+ /** Whether to enable human review validation. */
388
+ enableValidation?: boolean;
389
+ }
262
390
  interface GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata {
263
391
  /** The basic metadata of the long-running operation. */
264
392
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
@@ -294,6 +422,112 @@ declare namespace gapi.client {
294
422
  /** The destination processor version name. */
295
423
  processorVersion?: string;
296
424
  }
425
+ interface GoogleCloudDocumentaiUiv1beta3Processor {
426
+ /** 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} */
427
+ activeSchemaVersion?: string;
428
+ /** Output only. The time the processor was created. */
429
+ createTime?: string;
430
+ /** The default processor version. */
431
+ defaultProcessorVersion?: string;
432
+ /** The display name of the processor. */
433
+ displayName?: string;
434
+ /** The [KMS key](https://cloud.google.com/security-key-management) used for encryption and decryption in CMEK scenarios. */
435
+ kmsKeyName?: string;
436
+ /** Output only. Immutable. The resource name of the processor. Format: `projects/{project}/locations/{location}/processors/{processor}` */
437
+ name?: string;
438
+ /** Output only. Immutable. The http endpoint that can be called to invoke processing. */
439
+ processEndpoint?: string;
440
+ /** Output only. The processor version aliases. */
441
+ processorVersionAliases?: GoogleCloudDocumentaiUiv1beta3ProcessorVersionAlias[];
442
+ /** Output only. Reserved for future use. */
443
+ satisfiesPzi?: boolean;
444
+ /** Output only. Reserved for future use. */
445
+ satisfiesPzs?: boolean;
446
+ /** Output only. The state of the processor. */
447
+ state?: string;
448
+ /** The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. To get a list of processor types, see FetchProcessorTypes. */
449
+ type?: string;
450
+ }
451
+ interface GoogleCloudDocumentaiUiv1beta3ProcessorVersion {
452
+ /** Output only. The time the processor version was created. */
453
+ createTime?: string;
454
+ /** Output only. Denotes that this `ProcessorVersion` can be deployed and undeployed. */
455
+ deploymentAllowed?: boolean;
456
+ /** Output only. If set, information about the eventual deprecation of this version. */
457
+ deprecationInfo?: GoogleCloudDocumentaiUiv1beta3ProcessorVersionDeprecationInfo;
458
+ /** The display name of the processor version. */
459
+ displayName?: string;
460
+ /** Output only. The schema of the processor version. Describes the output. */
461
+ documentSchema?: GoogleCloudDocumentaiUiv1beta3DocumentSchema;
462
+ /** Output only. Information about Generative AI model-based processor versions. */
463
+ genAiModelInfo?: GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfo;
464
+ /** Output only. Denotes that this `ProcessorVersion` is managed by Google. */
465
+ googleManaged?: boolean;
466
+ /** Output only. The KMS key name used for encryption. */
467
+ kmsKeyName?: string;
468
+ /** Output only. The KMS key version with which data is encrypted. */
469
+ kmsKeyVersionName?: string;
470
+ /** Output only. The most recently invoked evaluation for the processor version. */
471
+ latestEvaluation?: GoogleCloudDocumentaiUiv1beta3EvaluationReference;
472
+ /** Output only. The model type of this processor version. */
473
+ modelType?: string;
474
+ /** Identifier. The resource name of the processor version. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}` */
475
+ name?: string;
476
+ /** Output only. Reserved for future use. */
477
+ satisfiesPzi?: boolean;
478
+ /** Output only. Reserved for future use. */
479
+ satisfiesPzs?: boolean;
480
+ /** The schema of the processor version. Describes the output. */
481
+ schema?: GoogleCloudDocumentaiUiv1beta3Schema;
482
+ /** Output only. The state of the processor version. */
483
+ state?: string;
484
+ }
485
+ interface GoogleCloudDocumentaiUiv1beta3ProcessorVersionAlias {
486
+ /** The alias in the form of `processor_version` resource name. */
487
+ alias?: string;
488
+ /** The resource name of aliased processor version. */
489
+ processorVersion?: string;
490
+ }
491
+ interface GoogleCloudDocumentaiUiv1beta3ProcessorVersionDeprecationInfo {
492
+ /** The time at which this processor version will be deprecated. */
493
+ deprecationTime?: string;
494
+ /** If set, the processor version that will be used as a replacement. */
495
+ replacementProcessorVersion?: string;
496
+ }
497
+ interface GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfo {
498
+ /** Information for a custom Generative AI model created by the user. */
499
+ customGenAiModelInfo?: GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo;
500
+ /** Information for a pretrained Google-managed foundation model. */
501
+ foundationGenAiModelInfo?: GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo;
502
+ }
503
+ interface GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo {
504
+ /** The base processor version ID for the custom model. */
505
+ baseProcessorVersionId?: string;
506
+ /** The type of custom model created by the user. */
507
+ customModelType?: string;
508
+ }
509
+ interface GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo {
510
+ /** Whether finetuning is allowed for this base processor version. */
511
+ finetuningAllowed?: boolean;
512
+ /** The minimum number of labeled documents in the training dataset required for finetuning. */
513
+ minTrainLabeledDocuments?: number;
514
+ }
515
+ interface GoogleCloudDocumentaiUiv1beta3PropertyMetadata {
516
+ /** Field extraction metadata on the property. */
517
+ fieldExtractionMetadata?: GoogleCloudDocumentaiUiv1beta3FieldExtractionMetadata;
518
+ /** Field tier metadata on the property */
519
+ fieldTierMetadata?: GoogleCloudDocumentaiUiv1beta3FieldTierMetadata;
520
+ /** Human review labeling config on the property. */
521
+ humanReviewLabelingMetadata?: GoogleCloudDocumentaiUiv1beta3HumanReviewLabelingMetadata;
522
+ /** Human review validation config on the property. */
523
+ humanReviewMetadata?: GoogleCloudDocumentaiUiv1beta3HumanReviewValidationMetadata;
524
+ /** Whether the property should be considered as "inactive". */
525
+ inactive?: boolean;
526
+ /** Schema editability metadata on the property. */
527
+ schemaEditabilityMetadata?: GoogleCloudDocumentaiUiv1beta3SchemaEditabilityMetadata;
528
+ /** Schema inference metadata on the property. */
529
+ schemaInferenceMetadata?: GoogleCloudDocumentaiUiv1beta3SchemaInferenceMetadata;
530
+ }
297
531
  interface GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata {
298
532
  /** The basic metadata of the long-running operation. */
299
533
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
@@ -341,11 +575,54 @@ declare namespace gapi.client {
341
575
  /** An internal identifier for document. */
342
576
  documentId?: string;
343
577
  }
578
+ interface GoogleCloudDocumentaiUiv1beta3Schema {
579
+ /** Description of the schema. */
580
+ description?: string;
581
+ /** Display name to show to users. */
582
+ displayName?: string;
583
+ /** Entity types of the schema. */
584
+ entityTypes?: GoogleCloudDocumentaiUiv1beta3SchemaEntityType[];
585
+ }
586
+ interface GoogleCloudDocumentaiUiv1beta3SchemaEditabilityMetadata {
587
+ /** Explicit flag that controls whether the label is editable. */
588
+ editable?: boolean;
589
+ /** Full resource name of processor versions that contain this label. e.g. `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` */
590
+ processorVersions?: string[];
591
+ }
592
+ interface GoogleCloudDocumentaiUiv1beta3SchemaEntityType {
593
+ baseType?: string;
594
+ /** Description of the entity type. */
595
+ description?: string;
596
+ /** If specified, lists all the possible values for this entity. */
597
+ enumValues?: string[];
598
+ /** If the entity type is hidden in the schema. This provides the functionality to temporally "disable" an entity without deleting it. */
599
+ hide?: boolean;
600
+ /** Specifies how the entity's value is obtained. */
601
+ method?: string;
602
+ /** Occurrence type limits the number of times an entity type appears in the document. */
603
+ occurrenceType?: string;
604
+ /** 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. */
605
+ properties?: GoogleCloudDocumentaiUiv1beta3SchemaEntityType[];
606
+ /** Source of this entity type. */
607
+ source?: string;
608
+ /** 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. */
609
+ type?: string;
610
+ }
611
+ interface GoogleCloudDocumentaiUiv1beta3SchemaInferenceMetadata {
612
+ /** True if is inferred by schema inference. */
613
+ inferred?: boolean;
614
+ }
344
615
  interface GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata {
345
616
  /** The basic metadata of the long-running operation. */
346
617
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
347
618
  }
348
619
  interface GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse {}
620
+ interface GoogleCloudDocumentaiUiv1beta3SummaryOptions {
621
+ /** The format the summary should be in. */
622
+ format?: string;
623
+ /** How long the summary should be. */
624
+ length?: string;
625
+ }
349
626
  interface GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata {
350
627
  /** The basic metadata of the long-running operation. */
351
628
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
@@ -385,6 +662,10 @@ declare namespace gapi.client {
385
662
  /** The basic metadata of the long-running operation. */
386
663
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
387
664
  }
665
+ interface GoogleCloudDocumentaiUiv1beta3UpdateProcessorVersionMetadata {
666
+ /** The basic metadata for the long-running operation. */
667
+ commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
668
+ }
388
669
  interface GoogleCloudDocumentaiV1BatchProcessMetadata {
389
670
  /** The creation time of the operation. */
390
671
  createTime?: string;
@@ -843,9 +1124,11 @@ declare namespace gapi.client {
843
1124
  validationResults?: GoogleCloudDocumentaiV1beta3DocumentEntityValidationOutputValidationResult[];
844
1125
  }
845
1126
  interface GoogleCloudDocumentaiV1beta3DocumentEntityValidationOutputValidationResult {
1127
+ /** Optional. The name of the rule resource that is used for validation. Format: `projects/{project}/locations/{location}/rules/{rule}` */
1128
+ rule?: string;
846
1129
  /** The description of the validation rule. */
847
1130
  ruleDescription?: string;
848
- /** The name of the validation rule. */
1131
+ /** The display name of the validation rule. */
849
1132
  ruleName?: string;
850
1133
  /** The detailed information of the running the validation process using the entity from the document based on the validation rule. */
851
1134
  validationDetails?: string;
@@ -1184,6 +1467,10 @@ declare namespace gapi.client {
1184
1467
  /** A message providing more details about the current state of processing. For example, the rejection reason when the state is `rejected`. */
1185
1468
  stateMessage?: string;
1186
1469
  }
1470
+ interface GoogleCloudDocumentaiV1beta3Documents {
1471
+ /** The list of documents. */
1472
+ documents?: GoogleCloudDocumentaiV1beta3Document[];
1473
+ }
1187
1474
  interface GoogleCloudDocumentaiV1beta3DocumentSchema {
1188
1475
  /** Description of the schema. */
1189
1476
  description?: string;
@@ -1420,6 +1707,30 @@ declare namespace gapi.client {
1420
1707
  /** The URI prefix. */
1421
1708
  gcsUriPrefix?: string;
1422
1709
  }
1710
+ interface GoogleCloudDocumentaiV1beta3GenerateSchemaVersionRequest {
1711
+ /** The base schema version name to use for the schema generation. Format: `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` */
1712
+ baseSchemaVersion?: string;
1713
+ /** The set of documents placed on Cloud Storage. */
1714
+ gcsDocuments?: GoogleCloudDocumentaiV1beta3GcsDocuments;
1715
+ /** The common prefix of documents placed on Cloud Storage. */
1716
+ gcsPrefix?: GoogleCloudDocumentaiV1beta3GcsPrefix;
1717
+ /** Optional. User specified parameters for the schema generation. */
1718
+ generateSchemaVersionParams?: GoogleCloudDocumentaiV1beta3GenerateSchemaVersionRequestGenerateSchemaVersionParams;
1719
+ /** The set of documents specified inline. */
1720
+ inlineDocuments?: GoogleCloudDocumentaiV1beta3Documents;
1721
+ /** The set of raw documents. */
1722
+ rawDocuments?: GoogleCloudDocumentaiV1beta3RawDocuments;
1723
+ }
1724
+ interface GoogleCloudDocumentaiV1beta3GenerateSchemaVersionRequestGenerateSchemaVersionParams {
1725
+ /** Optional. Previous prompt-answers in a chronological order. */
1726
+ history?: GoogleCloudDocumentaiV1beta3SchemaGenerationHistory;
1727
+ /** Optional. The prompt used for the schema generation. */
1728
+ prompt?: string;
1729
+ }
1730
+ interface GoogleCloudDocumentaiV1beta3GenerateSchemaVersionResponse {
1731
+ /** The schema version generated by the model. */
1732
+ schemaVersion?: GoogleCloudDocumentaiV1beta3SchemaVersion;
1733
+ }
1423
1734
  interface GoogleCloudDocumentaiV1beta3GetDocumentResponse {
1424
1735
  document?: GoogleCloudDocumentaiV1beta3Document;
1425
1736
  }
@@ -1536,6 +1847,30 @@ declare namespace gapi.client {
1536
1847
  /** The list of processors. */
1537
1848
  processorVersions?: GoogleCloudDocumentaiV1beta3ProcessorVersion[];
1538
1849
  }
1850
+ interface GoogleCloudDocumentaiV1beta3ListSchemasResponse {
1851
+ /** Points to the next Schema, otherwise empty. */
1852
+ nextPageToken?: string;
1853
+ /** The list of Schemas. */
1854
+ schemas?: GoogleCloudDocumentaiV1beta3NextSchema[];
1855
+ }
1856
+ interface GoogleCloudDocumentaiV1beta3ListSchemaVersionsResponse {
1857
+ /** Points to the next SchemaVersion, otherwise empty. */
1858
+ nextPageToken?: string;
1859
+ /** The list of SchemaVersions. */
1860
+ schemaVersions?: GoogleCloudDocumentaiV1beta3SchemaVersion[];
1861
+ }
1862
+ interface GoogleCloudDocumentaiV1beta3NextSchema {
1863
+ /** Output only. The time when the Schema was created. */
1864
+ createTime?: string;
1865
+ /** Optional. The user-defined name of the Schema. */
1866
+ displayName?: string;
1867
+ /** Optional. The GCP labels for the Schema. */
1868
+ labels?: {[P in string]: string};
1869
+ /** Identifier. The resource name of the Schema. Format: `projects/{project}/locations/{location}/schemas/{schema}` */
1870
+ name?: string;
1871
+ /** Output only. The time when the Schema was last updated. */
1872
+ updateTime?: string;
1873
+ }
1539
1874
  interface GoogleCloudDocumentaiV1beta3NormalizedVertex {
1540
1875
  /** X coordinate. */
1541
1876
  x?: number;
@@ -1617,6 +1952,8 @@ declare namespace gapi.client {
1617
1952
  semanticChunkingGroupSize?: boolean;
1618
1953
  }
1619
1954
  interface GoogleCloudDocumentaiV1beta3Processor {
1955
+ /** 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} */
1956
+ activeSchemaVersion?: string;
1620
1957
  /** Output only. The time the processor was created. */
1621
1958
  createTime?: string;
1622
1959
  /** The default processor version. */
@@ -1762,6 +2099,10 @@ declare namespace gapi.client {
1762
2099
  /** An IANA MIME type (RFC6838) indicating the nature and format of the content. */
1763
2100
  mimeType?: string;
1764
2101
  }
2102
+ interface GoogleCloudDocumentaiV1beta3RawDocuments {
2103
+ /** Specifies raw document content and mime type. */
2104
+ documents?: GoogleCloudDocumentaiV1beta3RawDocument[];
2105
+ }
1765
2106
  interface GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata {
1766
2107
  /** The basic metadata of the long-running operation. */
1767
2108
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
@@ -1804,6 +2145,30 @@ declare namespace gapi.client {
1804
2145
  /** Reads the revision given by the id. */
1805
2146
  revisionId?: string;
1806
2147
  }
2148
+ interface GoogleCloudDocumentaiV1beta3SchemaGenerationHistory {
2149
+ /** Required. Previous prompt-answers in a chronological order. */
2150
+ iterations?: GoogleCloudDocumentaiV1beta3SchemaGenerationIteration[];
2151
+ }
2152
+ interface GoogleCloudDocumentaiV1beta3SchemaGenerationIteration {
2153
+ /** Optional. The previous schema version adjusted by the model. */
2154
+ adjustedSchema?: GoogleCloudDocumentaiV1beta3SchemaVersion;
2155
+ /** Required. The schema version generated by the model. */
2156
+ generatedSchema?: GoogleCloudDocumentaiV1beta3SchemaVersion;
2157
+ /** Optional. The prompt used for the iteration. */
2158
+ prompt?: string;
2159
+ }
2160
+ interface GoogleCloudDocumentaiV1beta3SchemaVersion {
2161
+ /** Output only. The time when the SchemaVersion was created. */
2162
+ createTime?: string;
2163
+ /** Optional. The user-defined name of the SchemaVersion. */
2164
+ displayName?: string;
2165
+ /** Optional. The GCP labels for the SchemaVersion. */
2166
+ labels?: {[P in string]: string};
2167
+ /** Identifier. The resource name of the SchemaVersion. Format: `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` */
2168
+ name?: string;
2169
+ /** Required. The schema of the SchemaVersion. */
2170
+ schema?: GoogleCloudDocumentaiV1beta3DocumentSchema;
2171
+ }
1807
2172
  interface GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata {
1808
2173
  /** The basic metadata of the long-running operation. */
1809
2174
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
@@ -1881,6 +2246,10 @@ declare namespace gapi.client {
1881
2246
  /** The basic metadata of the long-running operation. */
1882
2247
  commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
1883
2248
  }
2249
+ interface GoogleCloudDocumentaiV1beta3UpdateProcessorVersionMetadata {
2250
+ /** The basic metadata for the long-running operation. */
2251
+ commonMetadata?: GoogleCloudDocumentaiV1beta3CommonOperationMetadata;
2252
+ }
1884
2253
  interface GoogleCloudDocumentaiV1beta3Vertex {
1885
2254
  /** X coordinate. */
1886
2255
  x?: number;
@@ -3684,6 +4053,481 @@ declare namespace gapi.client {
3684
4053
  uploadType?: string;
3685
4054
  }): Request<GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse>;
3686
4055
  }
4056
+ interface SchemaVersionsResource {
4057
+ /** Creates a schema version. */
4058
+ create(request: {
4059
+ /** V1 error format. */
4060
+ '$.xgafv'?: string;
4061
+ /** OAuth access token. */
4062
+ access_token?: string;
4063
+ /** Data format for response. */
4064
+ alt?: string;
4065
+ /** JSONP */
4066
+ callback?: string;
4067
+ /** Selector specifying which fields to include in a partial response. */
4068
+ fields?: string;
4069
+ /** 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. */
4070
+ key?: string;
4071
+ /** OAuth 2.0 token for the current user. */
4072
+ oauth_token?: string;
4073
+ /** Required. The parent (project and location) under which to create the SchemaVersion. Format: `projects/{project}/locations/{location}/schemas/{schema}` */
4074
+ parent: string;
4075
+ /** Returns response with indentations and line breaks. */
4076
+ prettyPrint?: boolean;
4077
+ /** 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. */
4078
+ quotaUser?: string;
4079
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4080
+ upload_protocol?: string;
4081
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4082
+ uploadType?: string;
4083
+ /** Request body */
4084
+ resource: GoogleCloudDocumentaiV1beta3SchemaVersion;
4085
+ }): Request<GoogleCloudDocumentaiV1beta3SchemaVersion>;
4086
+ create(
4087
+ request: {
4088
+ /** V1 error format. */
4089
+ '$.xgafv'?: string;
4090
+ /** OAuth access token. */
4091
+ access_token?: string;
4092
+ /** Data format for response. */
4093
+ alt?: string;
4094
+ /** JSONP */
4095
+ callback?: string;
4096
+ /** Selector specifying which fields to include in a partial response. */
4097
+ fields?: string;
4098
+ /** 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. */
4099
+ key?: string;
4100
+ /** OAuth 2.0 token for the current user. */
4101
+ oauth_token?: string;
4102
+ /** Required. The parent (project and location) under which to create the SchemaVersion. Format: `projects/{project}/locations/{location}/schemas/{schema}` */
4103
+ parent: string;
4104
+ /** Returns response with indentations and line breaks. */
4105
+ prettyPrint?: boolean;
4106
+ /** 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. */
4107
+ quotaUser?: string;
4108
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4109
+ upload_protocol?: string;
4110
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4111
+ uploadType?: string;
4112
+ },
4113
+ body: GoogleCloudDocumentaiV1beta3SchemaVersion,
4114
+ ): Request<GoogleCloudDocumentaiV1beta3SchemaVersion>;
4115
+ /** Deletes a schema version. */
4116
+ delete(request?: {
4117
+ /** V1 error format. */
4118
+ '$.xgafv'?: string;
4119
+ /** OAuth access token. */
4120
+ access_token?: string;
4121
+ /** Data format for response. */
4122
+ alt?: string;
4123
+ /** JSONP */
4124
+ callback?: string;
4125
+ /** Selector specifying which fields to include in a partial response. */
4126
+ fields?: string;
4127
+ /** 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. */
4128
+ key?: string;
4129
+ /** Required. The name of the SchemaVersion to delete. Format: `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` */
4130
+ name: string;
4131
+ /** OAuth 2.0 token for the current user. */
4132
+ oauth_token?: string;
4133
+ /** Returns response with indentations and line breaks. */
4134
+ prettyPrint?: boolean;
4135
+ /** 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. */
4136
+ quotaUser?: string;
4137
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4138
+ upload_protocol?: string;
4139
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4140
+ uploadType?: string;
4141
+ }): Request<GoogleLongrunningOperation>;
4142
+ /** Generates a schema version. */
4143
+ generate(request: {
4144
+ /** V1 error format. */
4145
+ '$.xgafv'?: string;
4146
+ /** OAuth access token. */
4147
+ access_token?: string;
4148
+ /** Data format for response. */
4149
+ alt?: string;
4150
+ /** JSONP */
4151
+ callback?: string;
4152
+ /** Selector specifying which fields to include in a partial response. */
4153
+ fields?: string;
4154
+ /** 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. */
4155
+ key?: string;
4156
+ /** OAuth 2.0 token for the current user. */
4157
+ oauth_token?: string;
4158
+ /** Required. The parent (project, location and schema) under which to generate the SchemaVersion. Format: `projects/{project}/locations/{location}/schemas/{schema}` */
4159
+ parent: string;
4160
+ /** Returns response with indentations and line breaks. */
4161
+ prettyPrint?: boolean;
4162
+ /** 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. */
4163
+ quotaUser?: string;
4164
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4165
+ upload_protocol?: string;
4166
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4167
+ uploadType?: string;
4168
+ /** Request body */
4169
+ resource: GoogleCloudDocumentaiV1beta3GenerateSchemaVersionRequest;
4170
+ }): Request<GoogleCloudDocumentaiV1beta3GenerateSchemaVersionResponse>;
4171
+ generate(
4172
+ request: {
4173
+ /** V1 error format. */
4174
+ '$.xgafv'?: string;
4175
+ /** OAuth access token. */
4176
+ access_token?: string;
4177
+ /** Data format for response. */
4178
+ alt?: string;
4179
+ /** JSONP */
4180
+ callback?: string;
4181
+ /** Selector specifying which fields to include in a partial response. */
4182
+ fields?: string;
4183
+ /** 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. */
4184
+ key?: string;
4185
+ /** OAuth 2.0 token for the current user. */
4186
+ oauth_token?: string;
4187
+ /** Required. The parent (project, location and schema) under which to generate the SchemaVersion. Format: `projects/{project}/locations/{location}/schemas/{schema}` */
4188
+ parent: string;
4189
+ /** Returns response with indentations and line breaks. */
4190
+ prettyPrint?: boolean;
4191
+ /** 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. */
4192
+ quotaUser?: string;
4193
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4194
+ upload_protocol?: string;
4195
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4196
+ uploadType?: string;
4197
+ },
4198
+ body: GoogleCloudDocumentaiV1beta3GenerateSchemaVersionRequest,
4199
+ ): Request<GoogleCloudDocumentaiV1beta3GenerateSchemaVersionResponse>;
4200
+ /** Gets a schema version. */
4201
+ get(request?: {
4202
+ /** V1 error format. */
4203
+ '$.xgafv'?: string;
4204
+ /** OAuth access token. */
4205
+ access_token?: string;
4206
+ /** Data format for response. */
4207
+ alt?: string;
4208
+ /** JSONP */
4209
+ callback?: string;
4210
+ /** Selector specifying which fields to include in a partial response. */
4211
+ fields?: string;
4212
+ /** 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. */
4213
+ key?: string;
4214
+ /** Required. The name of the SchemaVersion to get. Format: `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` */
4215
+ name: string;
4216
+ /** OAuth 2.0 token for the current user. */
4217
+ oauth_token?: string;
4218
+ /** Returns response with indentations and line breaks. */
4219
+ prettyPrint?: boolean;
4220
+ /** 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. */
4221
+ quotaUser?: string;
4222
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4223
+ upload_protocol?: string;
4224
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4225
+ uploadType?: string;
4226
+ }): Request<GoogleCloudDocumentaiV1beta3SchemaVersion>;
4227
+ /** Lists SchemaVersions. */
4228
+ list(request?: {
4229
+ /** V1 error format. */
4230
+ '$.xgafv'?: string;
4231
+ /** OAuth access token. */
4232
+ access_token?: string;
4233
+ /** Data format for response. */
4234
+ alt?: string;
4235
+ /** JSONP */
4236
+ callback?: string;
4237
+ /** Selector specifying which fields to include in a partial response. */
4238
+ fields?: string;
4239
+ /** 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. */
4240
+ key?: string;
4241
+ /** OAuth 2.0 token for the current user. */
4242
+ oauth_token?: string;
4243
+ /** 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`. */
4244
+ pageSize?: number;
4245
+ /** Optional. We will return the SchemaVersion sorted by creation time. The page token will point to the next SchemaVersion. */
4246
+ pageToken?: string;
4247
+ /** Required. Format: `projects/{project}/locations/{location}/schemas/{schema}` */
4248
+ parent: string;
4249
+ /** Returns response with indentations and line breaks. */
4250
+ prettyPrint?: boolean;
4251
+ /** 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. */
4252
+ quotaUser?: string;
4253
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4254
+ upload_protocol?: string;
4255
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4256
+ uploadType?: string;
4257
+ }): Request<GoogleCloudDocumentaiV1beta3ListSchemaVersionsResponse>;
4258
+ /** Updates a schema version. Editable fields are: - `display_name` - `labels` */
4259
+ patch(request: {
4260
+ /** V1 error format. */
4261
+ '$.xgafv'?: string;
4262
+ /** OAuth access token. */
4263
+ access_token?: string;
4264
+ /** Data format for response. */
4265
+ alt?: string;
4266
+ /** JSONP */
4267
+ callback?: string;
4268
+ /** Selector specifying which fields to include in a partial response. */
4269
+ fields?: string;
4270
+ /** 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. */
4271
+ key?: string;
4272
+ /** Identifier. The resource name of the SchemaVersion. Format: `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` */
4273
+ name: string;
4274
+ /** OAuth 2.0 token for the current user. */
4275
+ oauth_token?: string;
4276
+ /** Returns response with indentations and line breaks. */
4277
+ prettyPrint?: boolean;
4278
+ /** 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. */
4279
+ quotaUser?: string;
4280
+ /** Optional. The update mask to apply to the resource. **Note:** Only the following fields can be updated: - display_name. - labels. */
4281
+ updateMask?: string;
4282
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4283
+ upload_protocol?: string;
4284
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4285
+ uploadType?: string;
4286
+ /** Request body */
4287
+ resource: GoogleCloudDocumentaiV1beta3SchemaVersion;
4288
+ }): Request<GoogleCloudDocumentaiV1beta3SchemaVersion>;
4289
+ patch(
4290
+ request: {
4291
+ /** V1 error format. */
4292
+ '$.xgafv'?: string;
4293
+ /** OAuth access token. */
4294
+ access_token?: string;
4295
+ /** Data format for response. */
4296
+ alt?: string;
4297
+ /** JSONP */
4298
+ callback?: string;
4299
+ /** Selector specifying which fields to include in a partial response. */
4300
+ fields?: string;
4301
+ /** 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. */
4302
+ key?: string;
4303
+ /** Identifier. The resource name of the SchemaVersion. Format: `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` */
4304
+ name: string;
4305
+ /** OAuth 2.0 token for the current user. */
4306
+ oauth_token?: string;
4307
+ /** Returns response with indentations and line breaks. */
4308
+ prettyPrint?: boolean;
4309
+ /** 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. */
4310
+ quotaUser?: string;
4311
+ /** Optional. The update mask to apply to the resource. **Note:** Only the following fields can be updated: - display_name. - labels. */
4312
+ updateMask?: string;
4313
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4314
+ upload_protocol?: string;
4315
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4316
+ uploadType?: string;
4317
+ },
4318
+ body: GoogleCloudDocumentaiV1beta3SchemaVersion,
4319
+ ): Request<GoogleCloudDocumentaiV1beta3SchemaVersion>;
4320
+ }
4321
+ interface SchemasResource {
4322
+ /** Creates a schema. */
4323
+ create(request: {
4324
+ /** V1 error format. */
4325
+ '$.xgafv'?: string;
4326
+ /** OAuth access token. */
4327
+ access_token?: string;
4328
+ /** Data format for response. */
4329
+ alt?: string;
4330
+ /** JSONP */
4331
+ callback?: string;
4332
+ /** Selector specifying which fields to include in a partial response. */
4333
+ fields?: string;
4334
+ /** 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. */
4335
+ key?: string;
4336
+ /** OAuth 2.0 token for the current user. */
4337
+ oauth_token?: string;
4338
+ /** Required. The parent (project and location) under which to create the Schema. Format: `projects/{project}/locations/{location}` */
4339
+ parent: string;
4340
+ /** Returns response with indentations and line breaks. */
4341
+ prettyPrint?: boolean;
4342
+ /** 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. */
4343
+ quotaUser?: string;
4344
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4345
+ upload_protocol?: string;
4346
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4347
+ uploadType?: string;
4348
+ /** Request body */
4349
+ resource: GoogleCloudDocumentaiV1beta3NextSchema;
4350
+ }): Request<GoogleCloudDocumentaiV1beta3NextSchema>;
4351
+ create(
4352
+ request: {
4353
+ /** V1 error format. */
4354
+ '$.xgafv'?: string;
4355
+ /** OAuth access token. */
4356
+ access_token?: string;
4357
+ /** Data format for response. */
4358
+ alt?: string;
4359
+ /** JSONP */
4360
+ callback?: string;
4361
+ /** Selector specifying which fields to include in a partial response. */
4362
+ fields?: string;
4363
+ /** 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. */
4364
+ key?: string;
4365
+ /** OAuth 2.0 token for the current user. */
4366
+ oauth_token?: string;
4367
+ /** Required. The parent (project and location) under which to create the Schema. Format: `projects/{project}/locations/{location}` */
4368
+ parent: string;
4369
+ /** Returns response with indentations and line breaks. */
4370
+ prettyPrint?: boolean;
4371
+ /** 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. */
4372
+ quotaUser?: string;
4373
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4374
+ upload_protocol?: string;
4375
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4376
+ uploadType?: string;
4377
+ },
4378
+ body: GoogleCloudDocumentaiV1beta3NextSchema,
4379
+ ): Request<GoogleCloudDocumentaiV1beta3NextSchema>;
4380
+ /** Deletes a schema. */
4381
+ delete(request?: {
4382
+ /** V1 error format. */
4383
+ '$.xgafv'?: string;
4384
+ /** OAuth access token. */
4385
+ access_token?: string;
4386
+ /** Data format for response. */
4387
+ alt?: string;
4388
+ /** JSONP */
4389
+ callback?: string;
4390
+ /** Selector specifying which fields to include in a partial response. */
4391
+ fields?: string;
4392
+ /** 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.) */
4393
+ force?: boolean;
4394
+ /** 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. */
4395
+ key?: string;
4396
+ /** Required. The name of the Schema to be deleted. Format: `projects/{project}/locations/{location}/schemas/{schema}` */
4397
+ name: string;
4398
+ /** OAuth 2.0 token for the current user. */
4399
+ oauth_token?: string;
4400
+ /** Returns response with indentations and line breaks. */
4401
+ prettyPrint?: boolean;
4402
+ /** 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. */
4403
+ quotaUser?: string;
4404
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4405
+ upload_protocol?: string;
4406
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4407
+ uploadType?: string;
4408
+ }): Request<GoogleLongrunningOperation>;
4409
+ /** Gets a schema. */
4410
+ get(request?: {
4411
+ /** V1 error format. */
4412
+ '$.xgafv'?: string;
4413
+ /** OAuth access token. */
4414
+ access_token?: string;
4415
+ /** Data format for response. */
4416
+ alt?: string;
4417
+ /** JSONP */
4418
+ callback?: string;
4419
+ /** Selector specifying which fields to include in a partial response. */
4420
+ fields?: string;
4421
+ /** 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. */
4422
+ key?: string;
4423
+ /** Required. The name of the Schema to get. Format: `projects/{project}/locations/{location}/schemas/{schema}` */
4424
+ name: string;
4425
+ /** OAuth 2.0 token for the current user. */
4426
+ oauth_token?: string;
4427
+ /** Returns response with indentations and line breaks. */
4428
+ prettyPrint?: boolean;
4429
+ /** 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. */
4430
+ quotaUser?: string;
4431
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4432
+ upload_protocol?: string;
4433
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4434
+ uploadType?: string;
4435
+ }): Request<GoogleCloudDocumentaiV1beta3NextSchema>;
4436
+ /** Lists Schemas. */
4437
+ list(request?: {
4438
+ /** V1 error format. */
4439
+ '$.xgafv'?: string;
4440
+ /** OAuth access token. */
4441
+ access_token?: string;
4442
+ /** Data format for response. */
4443
+ alt?: string;
4444
+ /** JSONP */
4445
+ callback?: string;
4446
+ /** Selector specifying which fields to include in a partial response. */
4447
+ fields?: string;
4448
+ /** 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. */
4449
+ key?: string;
4450
+ /** OAuth 2.0 token for the current user. */
4451
+ oauth_token?: string;
4452
+ /** 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`. */
4453
+ pageSize?: number;
4454
+ /** Optional. We will return the schema groups sorted by creation time. The page token will point to the next Schema. */
4455
+ pageToken?: string;
4456
+ /** Required. Format: `projects/{project}/locations/{location}` */
4457
+ parent: string;
4458
+ /** Returns response with indentations and line breaks. */
4459
+ prettyPrint?: boolean;
4460
+ /** 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. */
4461
+ quotaUser?: string;
4462
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4463
+ upload_protocol?: string;
4464
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4465
+ uploadType?: string;
4466
+ }): Request<GoogleCloudDocumentaiV1beta3ListSchemasResponse>;
4467
+ /** Updates a schema. Editable fields are: - `display_name` - `labels` */
4468
+ patch(request: {
4469
+ /** V1 error format. */
4470
+ '$.xgafv'?: string;
4471
+ /** OAuth access token. */
4472
+ access_token?: string;
4473
+ /** Data format for response. */
4474
+ alt?: string;
4475
+ /** JSONP */
4476
+ callback?: string;
4477
+ /** Selector specifying which fields to include in a partial response. */
4478
+ fields?: string;
4479
+ /** 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. */
4480
+ key?: string;
4481
+ /** Identifier. The resource name of the Schema. Format: `projects/{project}/locations/{location}/schemas/{schema}` */
4482
+ name: string;
4483
+ /** OAuth 2.0 token for the current user. */
4484
+ oauth_token?: string;
4485
+ /** Returns response with indentations and line breaks. */
4486
+ prettyPrint?: boolean;
4487
+ /** 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. */
4488
+ quotaUser?: string;
4489
+ /** Optional. The update mask to apply to the resource. **Note:** Only the following fields can be updated: - display_name. - labels. */
4490
+ updateMask?: string;
4491
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4492
+ upload_protocol?: string;
4493
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4494
+ uploadType?: string;
4495
+ /** Request body */
4496
+ resource: GoogleCloudDocumentaiV1beta3NextSchema;
4497
+ }): Request<GoogleCloudDocumentaiV1beta3NextSchema>;
4498
+ patch(
4499
+ request: {
4500
+ /** V1 error format. */
4501
+ '$.xgafv'?: string;
4502
+ /** OAuth access token. */
4503
+ access_token?: string;
4504
+ /** Data format for response. */
4505
+ alt?: string;
4506
+ /** JSONP */
4507
+ callback?: string;
4508
+ /** Selector specifying which fields to include in a partial response. */
4509
+ fields?: string;
4510
+ /** 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. */
4511
+ key?: string;
4512
+ /** Identifier. The resource name of the Schema. Format: `projects/{project}/locations/{location}/schemas/{schema}` */
4513
+ name: string;
4514
+ /** OAuth 2.0 token for the current user. */
4515
+ oauth_token?: string;
4516
+ /** Returns response with indentations and line breaks. */
4517
+ prettyPrint?: boolean;
4518
+ /** 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. */
4519
+ quotaUser?: string;
4520
+ /** Optional. The update mask to apply to the resource. **Note:** Only the following fields can be updated: - display_name. - labels. */
4521
+ updateMask?: string;
4522
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4523
+ upload_protocol?: string;
4524
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4525
+ uploadType?: string;
4526
+ },
4527
+ body: GoogleCloudDocumentaiV1beta3NextSchema,
4528
+ ): Request<GoogleCloudDocumentaiV1beta3NextSchema>;
4529
+ schemaVersions: SchemaVersionsResource;
4530
+ }
3687
4531
  interface LocationsResource {
3688
4532
  /** Fetches processor types. Note that we don't use ListProcessorTypes here, because it isn't paginated. */
3689
4533
  fetchProcessorTypes(request?: {
@@ -3777,6 +4621,7 @@ declare namespace gapi.client {
3777
4621
  operations: OperationsResource;
3778
4622
  processors: ProcessorsResource;
3779
4623
  processorTypes: ProcessorTypesResource;
4624
+ schemas: SchemasResource;
3780
4625
  }
3781
4626
  interface ProjectsResource {
3782
4627
  locations: LocationsResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.documentai-v1beta3",
3
- "version": "0.1.20251013",
3
+ "version": "0.1.20251020",
4
4
  "description": "TypeScript typings for Cloud Document AI API v1beta3",
5
5
  "repository": {
6
6
  "type": "git",