@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 31 lines 1017 Bytes
Raw
1 import type * as translate from "@distilled.cloud/aws/translate";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `translate:ListLanguages` — list the languages
7 * (RFC-5646 codes and display names) Amazon Translate supports.
8 *
9 * ### Discovering Languages
10 * **Example:** List supported languages
11 * ```typescript
12 * // init
13 * const listLanguages = yield* AWS.Translate.ListLanguages();
14 *
15 * // runtime
16 * const result = yield* listLanguages({ MaxResults: 100 });
17 * // result.Languages -> [{ LanguageCode: "es", LanguageName: "Spanish" }, …]
18 * ```
19 *
20 * @binding
21 */
22 export interface ListLanguages extends Binding.Service<
23 ListLanguages,
24 "AWS.Translate.ListLanguages",
25 () => Effect.Effect<
26 (
27 request?: translate.ListLanguagesRequest,
28 ) => Effect.Effect<translate.ListLanguagesResponse, translate.ListLanguagesError>
29 >
30 > {}
31 export const ListLanguages = Binding.Service<ListLanguages>("AWS.Translate.ListLanguages");