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

main
ts 19 lines 589 Bytes
Raw
1 import * as pubsublite from "@distilled.cloud/gcp/pubsublite_v1";
2 import * as Layer from "effect/Layer";
3 import { makeTopicNameHttpBinding } from "./BindingHttp.ts";
4 import { GetPartitions } from "./GetPartitions.ts";
5
6 /**
7 * HTTP implementation of {@link GetPartitions}.
8 *
9 * @layer
10 * @provides GCP.PubSubLite.GetPartitions
11 */
12 export const GetPartitionsHttp = Layer.effect(
13 GetPartitions,
14 makeTopicNameHttpBinding({
15 tag: "GCP.PubSubLite.GetPartitions",
16 iam: { role: "roles/pubsublite.viewer" },
17 operation: pubsublite.getPartitionsAdminProjectsLocationsTopics,
18 }),
19 );