1import * as omics from "@distilled.cloud/aws/omics";
2import * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { SequenceStore } from "./SequenceStore.ts";
5
6export interface ListReadSetsRequest extends Omit<
7 omics.ListReadSetsRequest,
8 "sequenceStoreId"
9> {}
10
11/**
12 * Runtime binding for `omics:ListReadSets`.
13 *
14 * Bind this operation to a `SequenceStore` to get a callable that lists the read sets in the store — the
15 * store/workflow id is injected automatically and the action is granted on the
16 * bound resource. Provide the implementation with
17 * `Effect.provide(AWS.Omics.ListReadSetsHttp)`.
18 * ### Read Sets
19 * **Example:** Bind ListReadSets to a SequenceStore
20 * ```typescript
21 * // init
22 * const listReadSets = yield* AWS.Omics.ListReadSets(store);
23 * // runtime
24 * const result = yield* listReadSets({});
25 * ```
26 *
27 * @binding
28 */
29export interface ListReadSets extends Binding.Service<
30 ListReadSets,
31 "AWS.Omics.ListReadSets",
32 (
33 store: SequenceStore,
34 ) => Effect.Effect<
35 (
36 request?: ListReadSetsRequest,
37 ) => Effect.Effect<omics.ListReadSetsResponse, omics.ListReadSetsError>
38 >
39> {}
40
41export const ListReadSets = Binding.Service<ListReadSets>(
42 "AWS.Omics.ListReadSets",
43);