| 1 | import * as documentai from "@distilled.cloud/gcp/documentai_v1"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeSchemaVersionHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { GetSchemaVersion } from "./GetSchemaVersion.ts"; |
| 5 | |
| 6 | /** |
| 7 | * HTTP implementation of {@link GetSchemaVersion}. |
| 8 | * |
| 9 | * @layer |
| 10 | * @provides GCP.DocumentAI.GetSchemaVersion |
| 11 | */ |
| 12 | export const GetSchemaVersionHttp = Layer.effect( |
| 13 | GetSchemaVersion, |
| 14 | makeSchemaVersionHttpBinding({ |
| 15 | tag: "GCP.DocumentAI.GetSchemaVersion", |
| 16 | operation: documentai.getProjectsLocationsSchemasSchemaVersions, |
| 17 | iam: { role: "roles/documentai.viewer" }, |
| 18 | }), |
| 19 | ); |