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
| 1 | import * as speech from "@distilled.cloud/gcp/speech_v1"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeCustomClassHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { GetCustomClass, type GetCustomClassRequest } from "./GetCustomClass.ts"; |
| 5 | |
| 6 | /** |
| 7 | * HTTP implementation of {@link GetCustomClass}. |
| 8 | * |
| 9 | * @layer |
| 10 | * @provides GCP.Speech.GetCustomClass |
| 11 | */ |
| 12 | export const GetCustomClassHttp = Layer.effect( |
| 13 | GetCustomClass, |
| 14 | makeCustomClassHttpBinding< |
| 15 | speech.GetProjectsLocationsCustomClassesRequest, |
| 16 | speech.CustomClass, |
| 17 | speech.GetProjectsLocationsCustomClassesError, |
| 18 | GetCustomClassRequest |
| 19 | >({ |
| 20 | tag: "GCP.Speech.GetCustomClass", |
| 21 | operation: speech.getProjectsLocationsCustomClasses, |
| 22 | iam: { role: "roles/speech.client" }, |
| 23 | toInput: (name) => ({ name }), |
| 24 | }), |
| 25 | ); |