@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 40 lines 1.33 KB
Raw
1 import type * as polly from "@distilled.cloud/aws/polly";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `polly:ListSpeechSynthesisTasks` — list asynchronous
7 * synthesis tasks ordered by creation date, optionally filtered by status.
8 *
9 * The binding takes no arguments and grants the function
10 * `polly:ListSpeechSynthesisTasks`. Provide the implementation with
11 * `Effect.provide(AWS.Polly.ListSpeechSynthesisTasksHttp)`.
12 *
13 * ### Asynchronous Synthesis
14 * **Example:** List recently completed tasks
15 * ```typescript
16 * // init
17 * const listSpeechSynthesisTasks = yield* AWS.Polly.ListSpeechSynthesisTasks();
18 *
19 * // runtime
20 * const result = yield* listSpeechSynthesisTasks({
21 * Status: "completed",
22 * MaxResults: 10,
23 * });
24 * const taskIds = (result.SynthesisTasks ?? []).map((task) => task.TaskId);
25 * ```
26 *
27 * @binding
28 */
29 export interface ListSpeechSynthesisTasks extends Binding.Service<
30 ListSpeechSynthesisTasks,
31 "AWS.Polly.ListSpeechSynthesisTasks",
32 () => Effect.Effect<
33 (
34 request?: polly.ListSpeechSynthesisTasksInput,
35 ) => Effect.Effect<polly.ListSpeechSynthesisTasksOutput, polly.ListSpeechSynthesisTasksError>
36 >
37 > {}
38 export const ListSpeechSynthesisTasks = Binding.Service<ListSpeechSynthesisTasks>(
39 "AWS.Polly.ListSpeechSynthesisTasks",
40 );