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

main
ts 19 lines 519 Bytes
Raw
1 import * as ml from "@distilled.cloud/gcp/ml_v1";
2 import * as Layer from "effect/Layer";
3 import { makeVersionHttpBinding } from "./BindingHttp.ts";
4 import { GetVersion } from "./GetVersion.ts";
5
6 /**
7 * HTTP implementation of {@link GetVersion}.
8 *
9 * @layer
10 * @provides GCP.ML.GetVersion
11 */
12 export const GetVersionHttp = Layer.effect(
13 GetVersion,
14 makeVersionHttpBinding({
15 tag: "GCP.ML.GetVersion",
16 operation: ml.getProjectsModelsVersions,
17 iam: { role: "roles/ml.modelUser", on: "ml.model" },
18 }),
19 );