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

main
ts 47 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 { WorkstationClustersWorkstationConfig } from "./WorkstationClustersWorkstationConfig.ts";
6
7 export interface GetWorkstationConfigRequest extends Omit<
8 workstations.GetProjectsLocationsWorkstationClustersWorkstationConfigsRequest,
9 "name"
10 > {}
11
12 /**
13 * Runtime binding for Cloud Workstations `workstationConfigs.get`.
14 *
15 * Bind this operation to a {@link WorkstationClustersWorkstationConfig} in
16 * a Function/Action init phase. Provide {@link GetWorkstationConfigHttp}.
17 * Grants `roles/workstations.viewer` on the configuration only.
18 *
19 * ### Observing Configurations
20 * **Example:** Read the bound configuration
21 * ```typescript
22 * const getConfig = yield* GCP.Workstations.GetWorkstationConfig(config);
23 * const live = yield* getConfig();
24 * ```
25 *
26 * @binding
27 * @category Workstations
28 */
29 export interface GetWorkstationConfig extends Binding.Service<
30 GetWorkstationConfig,
31 "GCP.Workstations.GetWorkstationConfig",
32 (
33 config: WorkstationClustersWorkstationConfig,
34 ) => Effect.Effect<
35 (
36 request?: GetWorkstationConfigRequest,
37 ) => Effect.Effect<
38 workstations.WorkstationConfig,
39 workstations.GetProjectsLocationsWorkstationClustersWorkstationConfigsError,
40 RuntimeContext
41 >
42 >
43 > {}
44
45 export const GetWorkstationConfig = Binding.Service<GetWorkstationConfig>(
46 "GCP.Workstations.GetWorkstationConfig",
47 );