@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.19 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:GetKxChangeset` — reads one changeset of a kdb database in the bound environment — status, change requests, and error details — so ingestion pipelines can poll a changeset to `COMPLETED`.
8 * Provide the implementation with
9 * `Effect.provide(AWS.FinSpace.GetKxChangesetHttp)`.
10 * ### Ingesting Data
11 * **Example:** Poll a Changeset
12 * ```typescript
13 * const getChangeset = yield* AWS.FinSpace.GetKxChangeset(kdb);
14 *
15 * const { status } = yield* getChangeset({
16 * databaseName: "ticks",
17 * changesetId,
18 * });
19 * ```
20 *
21 * @binding
22 */
23 export interface GetKxChangeset extends Binding.Service<
24 GetKxChangeset,
25 "AWS.FinSpace.GetKxChangeset",
26 <K extends KxEnvironment>(
27 environment: K,
28 ) => Effect.Effect<
29 (
30 request: Omit<SVC.GetKxChangesetRequest, "environmentId">,
31 ) => Effect.Effect<SVC.GetKxChangesetResponse, SVC.GetKxChangesetError>
32 >
33 > {}
34 export const GetKxChangeset = Binding.Service<GetKxChangeset>("AWS.FinSpace.GetKxChangeset");