@craftedxp/sdk-node 0.19.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -283,6 +283,7 @@ for await (const call of client.calls.listAll({ agentId })) {
283
283
 
284
284
  ## Changelog
285
285
 
286
+ - **0.20.0** — `speech.synthesize()` / `enqueue()` accept an `emotion` preset (`hype | shout | disappointed | warm | calm`) for emotional TTS voices.
286
287
  - **0.19.0** — type-only: `CallTokenMintResult.transport` widened to `'ws' | 'webrtc' | 'livekit'` (server returns `'livekit'` when the platform media edge is LiveKit Cloud; client SDKs that don't know it fall back to `'ws'`); `CallRecord.transport` added. No runtime change; drop-in for 0.18.0 consumers.
287
288
  - **Unreleased** _(forward-looking)_ — `isPersonal?: boolean` on `Agent` and `AgentCreateInput` (and so on `AgentUpdateInput`). Assistant-only: when `true`, the learning tools (`remember_fact`, `add_correction`, `add_skill_hint`) are live on every `ct_`-token call rather than only on `mode=learning`. Server-side field — no runtime change in this package.
288
289
  - **Unreleased** _(forward-looking)_ — Per-call `agentSpeaksFirst` override on `callTokens.mint` (0.18.0, publish pending; server support 2026-09-02).
package/dist/index.d.mts CHANGED
@@ -719,6 +719,8 @@ interface SpeechSynthesizeInput {
719
719
  text?: string;
720
720
  context?: Record<string, unknown>;
721
721
  instructions?: string;
722
+ /** Emotion preset for emotional TTS voices (IndexTTS2, Hume). */
723
+ emotion?: 'hype' | 'shout' | 'disappointed' | 'warm' | 'calm';
722
724
  format?: 'mp3' | 'wav' | 'ogg';
723
725
  sampleRate?: 16000 | 24000 | 48000;
724
726
  idempotencyKey?: string;
package/dist/index.d.ts CHANGED
@@ -719,6 +719,8 @@ interface SpeechSynthesizeInput {
719
719
  text?: string;
720
720
  context?: Record<string, unknown>;
721
721
  instructions?: string;
722
+ /** Emotion preset for emotional TTS voices (IndexTTS2, Hume). */
723
+ emotion?: 'hype' | 'shout' | 'disappointed' | 'warm' | 'calm';
722
724
  format?: 'mp3' | 'wav' | 'ogg';
723
725
  sampleRate?: 16000 | 24000 | 48000;
724
726
  idempotencyKey?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@craftedxp/sdk-node",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "description": "Node.js / TypeScript SDK for the voice agent platform. Server-side API client — mint call tokens, manage agents, query calls, upload knowledge-base docs.",
5
5
  "author": "Crafted XP",
6
6
  "license": "MIT",