@swamp/gcp/documentai
v2026.04.23.1
Google Cloud documentai infrastructure models
Repository
https://github.com/systeminit/swamp-extensions
Labels
gcpgoogle-clouddocumentaicloudinfrastructure
Contents
Quality score
Verified by SwampHow well-documented and verifiable this extension is.
Grade A
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types1/1earned
- Has description1/1earned
- At least one platform tag (or universal)1/1earned
- Two or more platform tags (or universal)1/1earned
- License declared1/1earned
- Verified public repository2/2earned
Install
$ swamp extension pull @swamp/gcp/documentai@swamp/gcp/documentai/locationsv2026.04.23.1locations.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
getGet a locations
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the locations |
syncSync locations state from GCP
fetch_processor_typesfetch processor types
Resources
state(infinite)— A resource that represents a Google Cloud location.
@swamp/gcp/documentai/processorsv2026.04.23.1processors.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| activeSchemaVersion? | string | 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} |
| defaultProcessorVersion? | string | The default processor version. |
| displayName? | string | The display name of the processor. |
| kmsKeyName? | string | The [KMS key](https://cloud.google.com/security-key-management) used for encryption and decryption in CMEK scenarios. |
| type? | string | The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. To get a list of processor types, see FetchProcessorTypes. |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
createCreate a processors
| Argument | Type | Description |
|---|---|---|
| waitForReady? | boolean | Wait for the resource to reach a ready state after creation (default: true) |
getGet a processors
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the processors |
deleteDelete the processors
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the processors |
syncSync processors state from GCP
batch_processbatch process
| Argument | Type | Description |
|---|---|---|
| documentOutputConfig? | any | |
| inputDocuments? | any | |
| labels? | any | |
| processOptions? | any | |
| skipHumanReview? | any |
disabledisable
enableenable
processprocess
| Argument | Type | Description |
|---|---|---|
| documentOutputConfig? | any | |
| inputDocuments? | any | |
| labels? | any | |
| processOptions? | any | |
| skipHumanReview? | any |
set_default_processor_versionset default processor version
| Argument | Type | Description |
|---|---|---|
| defaultProcessorVersion? | any |
Resources
state(infinite)— The first-class citizen for Document AI. Each processor defines how to extrac...
@swamp/gcp/documentai/processors-processorversionsv2026.04.23.1processors_processorversions.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
getGet a processorVersions
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the processorVersions |
deleteDelete the processorVersions
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the processorVersions |
syncSync processorVersions state from GCP
batch_processbatch process
| Argument | Type | Description |
|---|---|---|
| documentOutputConfig? | any | |
| inputDocuments? | any | |
| labels? | any | |
| processOptions? | any | |
| skipHumanReview? | any |
deploydeploy
evaluate_processor_versionevaluate processor version
| Argument | Type | Description |
|---|---|---|
| evaluationDocuments? | any |
processprocess
| Argument | Type | Description |
|---|---|---|
| documentOutputConfig? | any | |
| inputDocuments? | any | |
| labels? | any | |
| processOptions? | any | |
| skipHumanReview? | any |
traintrain
| Argument | Type | Description |
|---|---|---|
| baseProcessorVersion? | any | |
| customDocumentExtractionOptions? | any | |
| documentSchema? | any | |
| foundationModelTuningOptions? | any | |
| inputData? | any | |
| processorVersion? | any |
undeployundeploy
Resources
state(infinite)— A processor version is an implementation of a processor. Each processor can h...
@swamp/gcp/documentai/processors-processorversions-evaluationsv2026.04.23.1processors_processorversions_evaluations.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
getGet a evaluations
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the evaluations |
syncSync evaluations state from GCP
Resources
state(infinite)— An evaluation of a ProcessorVersion's performance.
@swamp/gcp/documentai/processortypesv2026.04.23.1processortypes.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
getGet a processorTypes
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the processorTypes |
syncSync processorTypes state from GCP
Resources
state(infinite)— A processor type is responsible for performing a certain document understandi...
@swamp/gcp/documentai/schemasv2026.04.23.1schemas.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| displayName? | string | Required. The user-defined name of the Schema. |
| labels? | record | Optional. The {{gcp_name_short}} labels for the Schema. |
| name? | string | Identifier. The resource name of the Schema. Format: `projects/{project}/locations/{location}/schemas/{schema}` |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
createCreate a schemas
getGet a schemas
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the schemas |
updateUpdate schemas attributes
deleteDelete the schemas
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the schemas |
syncSync schemas state from GCP
Resources
state(infinite)— NextSchema is a collection of SchemaVersions.
@swamp/gcp/documentai/schemas-schemaversionsv2026.04.23.1schemas_schemaversions.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| displayName? | string | Required. The user-defined name of the SchemaVersion. |
| labels? | record | Optional. The {{gcp_name_short}} labels for the SchemaVersion. |
| name? | string | Identifier. The resource name of the SchemaVersion. Format: `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` |
| schema? | object | The schema defines the output of the processed document by a processor. |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
createCreate a schemaVersions
getGet a schemaVersions
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the schemaVersions |
updateUpdate schemaVersions attributes
deleteDelete the schemaVersions
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the schemaVersions |
syncSync schemaVersions state from GCP
generategenerate
| Argument | Type | Description |
|---|---|---|
| baseSchemaVersion? | any | |
| gcsDocuments? | any | |
| gcsPrefix? | any | |
| generateSchemaVersionParams? | any | |
| inlineDocuments? | any | |
| rawDocuments? | any |
Resources
state(infinite)— SchemaVersion is a version of the Schema which is created in SchemaGroup.
2026.04.04.128.7 KBApr 4, 2026
Google Cloud documentai infrastructure models
Release Notes
- Updated: processors_processorversions, processors_processorversions_evaluations, schemas_schemaversions
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
gcpgoogle-clouddocumentaicloudinfrastructure
2026.04.03.328.8 KBApr 3, 2026
Google Cloud documentai infrastructure models
Release Notes
- Updated: locations, processortypes, processors, processors_processorversions, processors_processorversions_evaluations, schemas, schemas_schemaversions
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
gcpgoogle-clouddocumentaicloudinfrastructure
2026.04.03.128.4 KBApr 3, 2026
Google Cloud documentai infrastructure models
Release Notes
- Updated: locations, processortypes, processors, processors_processorversions, processors_processorversions_evaluations, schemas, schemas_schemaversions
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
gcpgoogle-clouddocumentaicloudinfrastructure
2026.04.02.228.4 KBApr 2, 2026
Google Cloud documentai infrastructure models
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
gcpgoogle-clouddocumentaicloudinfrastructure
2026.03.27.126.8 KBMar 27, 2026
Google Cloud documentai infrastructure models
Release Notes
- Added: locations, processortypes, processors, processors_processorversions, processors_processorversions_evaluations, schemas, schemas_schemaversions
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
gcpgoogle-clouddocumentaicloudinfrastructure