1import * as documentai from "@distilled.cloud/gcp/documentai_v1";
2import * as Layer from "effect/Layer";
3import { makeSchemaVersionHttpBinding } from "./BindingHttp.ts";
4import { GetSchemaVersion } from "./GetSchemaVersion.ts";
5
6/**
7 * HTTP implementation of {@link GetSchemaVersion}.
8 *
9 * @layer
10 * @provides GCP.DocumentAI.GetSchemaVersion
11 */
12export 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);