feat: namespaced SDK (client.agent / client.tts) + realtime connect layer#3
Closed
luke-speechify wants to merge 6 commits into
Closed
feat: namespaced SDK (client.agent / client.tts) + realtime connect layer#3luke-speechify wants to merge 6 commits into
luke-speechify wants to merge 6 commits into
Conversation
Generated by Fern CLI Version: unknown Generators: - fernapi/fern-typescript-node-sdk: 0.49.1
SDK regeneration
Hand-written, .fernignore'd module exposing realtime voice-agent sessions
as raw PCM audio streams + transcript events. Connect from the { url, token }
returned by client.agent.createConversation(...).
Imported as @speechify/api/realtime. No microphone/speaker capture — audio
device handling is the application's job.
Lets pre-release consumers install @speechify/api directly from a branch (e.g. github:...#realtime-connect) before the npm release — npm runs `prepare` on git-dependency installs, building dist/ and copying it to the package root like prepack does at publish time.
Unanchored `tests` also matched the generated `tests` SDK-group dir (api/resources/agent/resources/tests), stripping it from the packed tarball -> 'Cannot find module ./tests' at runtime. Anchor to /src and /tests so only the top-level source + test suite are excluded.
NodeNext/Bundler consumers can't resolve @speechify/api/realtime without an exports entry. Declares the root and the realtime subpath (and package.json) so the hand-written realtime layer is a first-class, typed import.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Regenerates the SDK from the updated OpenAPI spec and adds a hand-written realtime voice-agent connect layer.
1. Namespaced surface (spec-driven)
Operations are now grouped so the client reads as the product does:
client.tts.audio.*,client.tts.voices.*client.agent.*— core agent CRUD flattened ontoagent(create,get,list,update,delete,createConversation, …)client.agent.{conversations, tools, knowledgeBases, tests, phoneNumbers, …}— 14 sub-resourcesSpec-only change (
x-fern-sdk-group-name); no wire/field renames.2.
@livekit/rtc-nodedependencyAdded via
generators.ymlextraDependenciesso the realtime transport ships with the package.3. Realtime connect layer —
@speechify/api/realtimeHand-written,
.fernignore'd (src/realtime/). Exposes a realtime voice-agent session from the{ url, token }returned byclient.agent.createConversation(...):onText({ role, text, final }).Verification
fern generate --group typescript --local→ builds clean (tsc, 0 errors)tts.audio/voicespresent,ttshas noagents, flatagent.*+ 14/14 sub-resources@speechify/api/realtimesubpath resolves to the compiled module afterprepackDraft until the sibling api-repo
generators.ymlPR lands.