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