@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 32 lines 1.06 KB
Raw
1 import type * as ivsrealtime from "@distilled.cloud/aws/ivs-realtime";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Read a composition's detail — state, layout, destinations, and per
7 * destination progress. Compositions are addressed by the server-generated
8 * ARN returned by `StartComposition`.
9 *
10 * ### Compositing a Stage
11 * **Example:** Poll a composition's state
12 * ```typescript
13 * // init
14 * const getComposition = yield* IVSRealtime.GetComposition();
15 *
16 * // runtime
17 * const { composition } = yield* getComposition({ arn: compositionArn });
18 * // composition.state → "ACTIVE" | "STOPPED" | "FAILED" | …
19 * ```
20 *
21 * @binding
22 */
23 export interface GetComposition extends Binding.Service<
24 GetComposition,
25 "AWS.IVSRealtime.GetComposition",
26 () => Effect.Effect<
27 (
28 request: ivsrealtime.GetCompositionRequest,
29 ) => Effect.Effect<ivsrealtime.GetCompositionResponse, ivsrealtime.GetCompositionError>
30 >
31 > {}
32 export const GetComposition = Binding.Service<GetComposition>("AWS.IVSRealtime.GetComposition");