@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, 04:45 UTC

main
ts 36 lines 1.18 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 { SequenceStore } from "./SequenceStore.ts";
5
6 export interface GetReadSetRequest extends Omit<omics.GetReadSetRequest, "sequenceStoreId"> {}
7
8 /**
9 * Runtime binding for `omics:GetReadSet`.
10 *
11 * Bind this operation to a `SequenceStore` to get a callable that streams the bytes of a read set file part — 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.GetReadSetHttp)`.
15 * ### Read Sets
16 * **Example:** Bind GetReadSet to a SequenceStore
17 * ```typescript
18 * // init
19 * const getReadSet = yield* AWS.Omics.GetReadSet(store);
20 * // runtime
21 * const result = yield* getReadSet({});
22 * ```
23 *
24 * @binding
25 */
26 export interface GetReadSet extends Binding.Service<
27 GetReadSet,
28 "AWS.Omics.GetReadSet",
29 (
30 store: SequenceStore,
31 ) => Effect.Effect<
32 (request?: GetReadSetRequest) => Effect.Effect<omics.GetReadSetResponse, omics.GetReadSetError>
33 >
34 > {}
35
36 export const GetReadSet = Binding.Service<GetReadSet>("AWS.Omics.GetReadSet");