The best way to control Claude Code, Codex and more from any computer or phone

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