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