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

main
ts 49 lines 1.44 KB
Raw
1 import type * as cloudbuild from "@distilled.cloud/gcp/cloudbuild_v2";
2 import * as Binding from "alchemy/Binding";
3 import type { RuntimeContext } from "alchemy/RuntimeContext";
4 import type * as Effect from "effect/Effect";
5 import type { Repository } from "./Repository.ts";
6
7 export interface FetchGitRefsRequest extends Omit<
8 cloudbuild.FetchGitRefsProjectsLocationsConnectionsRepositoriesRequest,
9 "repository"
10 > {}
11
12 /**
13 * Runtime binding for Cloud Build v2 `repositories.fetchGitRefs`.
14 *
15 * Bind this operation to a {@link Repository} in a Function/Action init
16 * phase. Provide {@link FetchGitRefsHttp}.
17 *
18 * ### Listing Branches
19 * **Example:** Fetch branch names
20 * ```typescript
21 * const fetchGitRefs = yield* GCP.CloudBuild.FetchGitRefs(source);
22 * const { refNames } = yield* fetchGitRefs({ refType: "BRANCH" });
23 * ```
24 *
25 * **Example:** Fetch tags
26 * ```typescript
27 * const { refNames } = yield* fetchGitRefs({ refType: "TAG", pageSize: 50 });
28 * ```
29 *
30 * @binding
31 * @category CloudBuild
32 */
33 export interface FetchGitRefs extends Binding.Service<
34 FetchGitRefs,
35 "GCP.CloudBuild.FetchGitRefs",
36 (
37 repository: Repository,
38 ) => Effect.Effect<
39 (
40 request?: FetchGitRefsRequest,
41 ) => Effect.Effect<
42 cloudbuild.FetchGitRefsResponse,
43 cloudbuild.FetchGitRefsProjectsLocationsConnectionsRepositoriesError,
44 RuntimeContext
45 >
46 >
47 > {}
48
49 export const FetchGitRefs = Binding.Service<FetchGitRefs>("GCP.CloudBuild.FetchGitRefs");