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

main
ts 36 lines 1.11 KB
Raw
1 import * as omics from "@distilled.cloud/aws/omics";
2 import * as Binding from "alchemy/Binding";
3 import * as Effect from "effect/Effect";
4 import type { Workflow } from "./Workflow.ts";
5
6 export interface StartRunRequest extends Omit<omics.StartRunRequest, "workflowId"> {}
7
8 /**
9 * Runtime binding for `omics:StartRun`.
10 *
11 * Bind this operation to a `Workflow` to get a callable that starts a run of the bound workflow — the
12 * store/workflow id is injected automatically and the action is granted on the
13 * bound resource. Provide the implementation with
14 * `Effect.provide(AWS.Omics.StartRunHttp)`.
15 * ### Runs
16 * **Example:** Bind StartRun to a Workflow
17 * ```typescript
18 * // init
19 * const startRun = yield* AWS.Omics.StartRun(workflow);
20 * // runtime
21 * const result = yield* startRun({});
22 * ```
23 *
24 * @binding
25 */
26 export interface StartRun extends Binding.Service<
27 StartRun,
28 "AWS.Omics.StartRun",
29 (
30 workflow: Workflow,
31 ) => Effect.Effect<
32 (request?: StartRunRequest) => Effect.Effect<omics.StartRunResponse, omics.StartRunError>
33 >
34 > {}
35
36 export const StartRun = Binding.Service<StartRun>("AWS.Omics.StartRun");