1.9 KiB
1.9 KiB
@suaveplan/third-party-elevenlabs - Typed thin client for the ElevenLabs platform API: REST + WebSocket transport, retry, rate-limit-header parsing, OTel instrumentation, Zod-validated DTOs. Domain adapters (voice, conversational AI, music, dubbing) compose this client.
Documentation tree
- client — REST + WebSocket transport for the ElevenLabs platform.
ElevenLabsClientexposes typedfetchJson/fetchBinary/…- client — REST + WebSocket transport for the ElevenLabs platform.
ElevenLabsClientexposes typedfetchJson/fetchBinary/… - headers — HTTP header helpers for the ElevenLabs transport. Pure functions for parsing the
Retry-Afterheader, extracting per-r… - internals — Pure helper functions used by
ElevenLabsClient. Everything here is side-effect-free, so the helpers are unit-testable… - socket — Wrapper around any
WebSocketLike(the browser global,wsfrom Node, or a fake from tests). Exposes a typed frame-le… - url — Tiny URL composition helper for the ElevenLabs transport. One function:
buildUrl(baseUrl, path, query?).
- client — REST + WebSocket transport for the ElevenLabs platform.
- errors — Stable error class hierarchy and code registry for
@suaveplan/third-party-elevenlabs. Every non-2xx HTTP response and…- errors — Stable error class hierarchy and code registry for
@suaveplan/third-party-elevenlabs. Every non-2xx HTTP response and…
- errors — Stable error class hierarchy and code registry for
- types — Shared types for
@suaveplan/third-party-elevenlabs. Defines the request / response envelope shapes consumed by the tr…- types — Shared types for
@suaveplan/third-party-elevenlabs. Defines the request / response envelope shapes consumed by the tr…
- types — Shared types for