@streamoji/aitwin 0.2.6 → 0.2.8

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/dist/index.d.ts CHANGED
@@ -79,6 +79,10 @@ export declare type AiTwinRecord = {
79
79
  faceId: string;
80
80
  ttsEngineId: TtsEngineId;
81
81
  voiceId?: string;
82
+ /** Bearer JWT for TTS / voice WebSocket (same as `getAuthToken`). */
83
+ authToken?: string;
84
+ /** When set, passed as `personaId` on voice WebSocket connect. */
85
+ knowledgeContextId?: string;
82
86
  gender?: string;
83
87
  createdAt?: string;
84
88
  updatedAt?: string;
@@ -152,7 +156,7 @@ export declare const OCULUS_VISEME_IDS: readonly ["aa", "CH", "DD", "E", "FF", "
152
156
  export declare const PLAYBACK_SAMPLE_RATE = 24000;
153
157
 
154
158
  export declare type RealtimeLipsyncDebugSnapshot = {
155
- event: "metadata" | "audio_chunk" | "lipsync" | "bot_started" | "bot_stopped" | "user_started" | "reset";
159
+ event: "metadata" | "audio_chunk" | "lipsync" | "bot_started" | "bot_stopped" | "user_started" | "interrupt" | "reset";
156
160
  spokenText: string;
157
161
  mood: string;
158
162
  /** performance.now() anchor — elapsed = performance.now() - playbackAnchorPerf */
@@ -259,6 +263,8 @@ export declare type VoiceConnectOptions = {
259
263
  authToken?: string;
260
264
  /** Cartesia voice UUID override (optional). */
261
265
  voiceId?: string;
266
+ /** Persona / knowledge context id (from getAiTwin `knowledgeContextId`). */
267
+ personaId?: string;
262
268
  speakingRate?: number;
263
269
  /** Default true — server streams TTS + avatar messages. */
264
270
  ttsStream?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamoji/aitwin",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
4
4
  "description": "Embeddable React AI twin face with TTS lipsync",
5
5
  "type": "module",
6
6
  "main": "./dist/aitwin.cjs",