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

main
ts 41 lines 1.14 KB
Raw
1 import type * as containeranalysis from "@distilled.cloud/gcp/containeranalysis_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 { Note } from "./Note.ts";
6
7 export interface GetNoteRequest extends Omit<containeranalysis.GetProjectsNotesRequest, "name"> {}
8
9 /**
10 * Runtime binding for Container Analysis `notes.get`.
11 *
12 * Bind this operation to a {@link Note} in a Function/Action init
13 * phase. Provide {@link GetNoteHttp}.
14 *
15 * ### Reading a Note
16 * **Example:** Get the bound note
17 * ```typescript
18 * const getNote = yield* GCP.ContainerAnalysis.GetNote(note);
19 * const live = yield* getNote();
20 * ```
21 *
22 * @binding
23 * @category ContainerAnalysis
24 */
25 export interface GetNote extends Binding.Service<
26 GetNote,
27 "GCP.ContainerAnalysis.GetNote",
28 (
29 note: Note,
30 ) => Effect.Effect<
31 (
32 request?: GetNoteRequest,
33 ) => Effect.Effect<
34 containeranalysis.Note,
35 containeranalysis.GetProjectsNotesError,
36 RuntimeContext
37 >
38 >
39 > {}
40
41 export const GetNote = Binding.Service<GetNote>("GCP.ContainerAnalysis.GetNote");