@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 38 lines 1.23 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 { ReferenceStore } from "./ReferenceStore.ts";
5
6 export interface GetReferenceRequest extends Omit<omics.GetReferenceRequest, "referenceStoreId"> {}
7
8 /**
9 * Runtime binding for `omics:GetReference`.
10 *
11 * Bind this operation to a `ReferenceStore` to get a callable that streams the bytes of a reference 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.GetReferenceHttp)`.
15 * ### References
16 * **Example:** Bind GetReference to a ReferenceStore
17 * ```typescript
18 * // init
19 * const getReference = yield* AWS.Omics.GetReference(store);
20 * // runtime
21 * const result = yield* getReference({});
22 * ```
23 *
24 * @binding
25 */
26 export interface GetReference extends Binding.Service<
27 GetReference,
28 "AWS.Omics.GetReference",
29 (
30 store: ReferenceStore,
31 ) => Effect.Effect<
32 (
33 request?: GetReferenceRequest,
34 ) => Effect.Effect<omics.GetReferenceResponse, omics.GetReferenceError>
35 >
36 > {}
37
38 export const GetReference = Binding.Service<GetReference>("AWS.Omics.GetReference");