@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 43 lines 1.26 KB
Raw
1 import type * as speech from "@distilled.cloud/gcp/speech_v1";
2 import * as Binding from "alchemy/Binding";
3 import type { RuntimeContext } from "alchemy/RuntimeContext";
4 import type * as Effect from "effect/Effect";
5 import type { PhraseSet } from "./PhraseSet.ts";
6
7 export interface GetPhraseSetRequest extends Omit<
8 speech.GetProjectsLocationsPhraseSetsRequest,
9 "name"
10 > {}
11
12 /**
13 * Runtime binding for Speech-to-Text `phraseSets.get`.
14 *
15 * Bind this operation to a {@link PhraseSet} in a Function/Action init
16 * phase. Provide {@link GetPhraseSetHttp}.
17 *
18 * Grants `roles/speech.client` on the project because Speech-to-Text has no
19 * resource-level IAM.
20 *
21 * ### Reading a Phrase Set
22 * **Example:** Read the bound phrase set
23 * ```typescript
24 * const getPhraseSet = yield* GCP.Speech.GetPhraseSet(hints);
25 * const live = yield* getPhraseSet();
26 * ```
27 *
28 * @binding
29 * @category Speech
30 */
31 export interface GetPhraseSet extends Binding.Service<
32 GetPhraseSet,
33 "GCP.Speech.GetPhraseSet",
34 (
35 phraseSet: PhraseSet,
36 ) => Effect.Effect<
37 (
38 request?: GetPhraseSetRequest,
39 ) => Effect.Effect<speech.PhraseSet, speech.GetProjectsLocationsPhraseSetsError, RuntimeContext>
40 >
41 > {}
42
43 export const GetPhraseSet = Binding.Service<GetPhraseSet>("GCP.Speech.GetPhraseSet");