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

main
ts 19 lines 544 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 { GetTopic } from "./GetTopic.ts";
5
6 /**
7 * HTTP implementation of {@link GetTopic}.
8 *
9 * @layer
10 * @provides GCP.PubSubLite.GetTopic
11 */
12 export const GetTopicHttp = Layer.effect(
13 GetTopic,
14 makeTopicNameHttpBinding({
15 tag: "GCP.PubSubLite.GetTopic",
16 iam: { role: "roles/pubsublite.viewer" },
17 operation: pubsublite.getAdminProjectsLocationsTopics,
18 }),
19 );