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

main
ts 19 lines 531 Bytes
Raw
1 import * as datastore from "@distilled.cloud/gcp/datastore_v1";
2 import * as Layer from "effect/Layer";
3 import { makeDatastoreHttpBinding } from "./BindingHttp.ts";
4 import { Lookup } from "./Lookup.ts";
5
6 /**
7 * HTTP implementation of {@link Lookup}.
8 *
9 * @layer
10 * @provides GCP.Datastore.Lookup
11 */
12 export const LookupHttp = Layer.effect(
13 Lookup,
14 makeDatastoreHttpBinding({
15 tag: "GCP.Datastore.Lookup",
16 iam: { role: "roles/datastore.viewer", scopeByCondition: true },
17 operation: datastore.lookupProjects,
18 }),
19 );