@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, 06:00 UTC

main
ts 46 lines 1.56 KB
Raw
1 import type * as workstations from "@distilled.cloud/gcp/workstations_v1";
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 { WorkstationClustersWorkstationConfigsWorkstation } from "./WorkstationClustersWorkstationConfigsWorkstation.ts";
6
7 export interface GetWorkstationRequest extends Omit<
8 workstations.GetProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsRequest,
9 "name"
10 > {}
11
12 /**
13 * Runtime binding for Cloud Workstations `workstations.get`.
14 *
15 * Bind this operation to a
16 * {@link WorkstationClustersWorkstationConfigsWorkstation} in a
17 * Function/Action init phase. Provide {@link GetWorkstationHttp}.
18 * Grants `roles/workstations.viewer` on the workstation only.
19 *
20 * ### Observing Workstations
21 * **Example:** Read the bound workstation
22 * ```typescript
23 * const getWorkstation = yield* GCP.Workstations.GetWorkstation(dev);
24 * const live = yield* getWorkstation();
25 * ```
26 *
27 * @binding
28 * @category Workstations
29 */
30 export interface GetWorkstation extends Binding.Service<
31 GetWorkstation,
32 "GCP.Workstations.GetWorkstation",
33 (
34 workstation: WorkstationClustersWorkstationConfigsWorkstation,
35 ) => Effect.Effect<
36 (
37 request?: GetWorkstationRequest,
38 ) => Effect.Effect<
39 workstations.Workstation,
40 workstations.GetProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsError,
41 RuntimeContext
42 >
43 >
44 > {}
45
46 export const GetWorkstation = Binding.Service<GetWorkstation>("GCP.Workstations.GetWorkstation");