1import * as cw from "@distilled.cloud/gcp/contentwarehouse_v1";
2import * as Layer from "effect/Layer";
3import { makeDocumentSchemaHttpBinding } from "./BindingHttp.ts";
4import { GetDocumentSchema } from "./GetDocumentSchema.ts";
5
6/**
7 * HTTP implementation of {@link GetDocumentSchema}.
8 *
9 * @layer
10 * @provides GCP.ContentWarehouse.GetDocumentSchema
11 */
12export const GetDocumentSchemaHttp = Layer.effect(
13 GetDocumentSchema,
14 makeDocumentSchemaHttpBinding({
15 tag: "GCP.ContentWarehouse.GetDocumentSchema",
16 operation: cw.getProjectsLocationsDocumentSchemas,
17 iam: { role: "roles/contentwarehouse.documentSchemaViewer" },
18 }),
19);