@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, 06:00 UTC

main
ts 34 lines 1.14 KB
Raw
1 import type * as SVC from "@distilled.cloud/aws/finspace";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { KxEnvironment } from "./KxEnvironment.ts";
5
6 /**
7 * Runtime binding for `finspace:GetKxDataview` — reads one dataview of a kdb database in the bound environment — status, active versions, and segment configurations.
8 * Provide the implementation with
9 * `Effect.provide(AWS.FinSpace.GetKxDataviewHttp)`.
10 * ### Managing Dataviews
11 * **Example:** Poll a Dataview
12 * ```typescript
13 * const getDataview = yield* AWS.FinSpace.GetKxDataview(kdb);
14 *
15 * const { status } = yield* getDataview({
16 * databaseName: "ticks",
17 * dataviewName: "latest",
18 * });
19 * ```
20 *
21 * @binding
22 */
23 export interface GetKxDataview extends Binding.Service<
24 GetKxDataview,
25 "AWS.FinSpace.GetKxDataview",
26 <K extends KxEnvironment>(
27 environment: K,
28 ) => Effect.Effect<
29 (
30 request: Omit<SVC.GetKxDataviewRequest, "environmentId">,
31 ) => Effect.Effect<SVC.GetKxDataviewResponse, SVC.GetKxDataviewError>
32 >
33 > {}
34 export const GetKxDataview = Binding.Service<GetKxDataview>("AWS.FinSpace.GetKxDataview");