@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 22 lines 664 Bytes
Raw
1 import * as servicedirectory from "@distilled.cloud/gcp/servicedirectory_v1";
2 import * as Layer from "effect/Layer";
3 import { makeEndpointHttpBinding } from "./BindingHttp.ts";
4 import { GetEndpoint } from "./GetEndpoint.ts";
5
6 /**
7 * HTTP implementation of {@link GetEndpoint}.
8 *
9 * @layer
10 * @provides GCP.ServiceDirectory.GetEndpoint
11 */
12 export const GetEndpointHttp = Layer.effect(
13 GetEndpoint,
14 makeEndpointHttpBinding({
15 tag: "GCP.ServiceDirectory.GetEndpoint",
16 iam: {
17 role: "roles/servicedirectory.viewer",
18 on: "servicedirectory.service",
19 },
20 operation: servicedirectory.getProjectsLocationsNamespacesServicesEndpoints,
21 }),
22 );