@node-webrtc-rust/bindings 0.6.9 → 0.6.11

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.
Files changed (2) hide show
  1. package/index.d.ts +9 -1
  2. package/package.json +7 -7
package/index.d.ts CHANGED
@@ -173,6 +173,14 @@ export interface JsTtsConfig {
173
173
  apiKey?: string
174
174
  postUtteranceSilenceMs?: number
175
175
  }
176
+ export interface JsVoiceSessionContext {
177
+ sessionId?: string
178
+ traceId?: string
179
+ projectId?: string
180
+ orgId?: string
181
+ buildId?: string
182
+ traceparent?: string
183
+ }
176
184
  export interface JsVoiceAgentConfig {
177
185
  vad?: JsVadConfig
178
186
  events?: JsEventsConfig
@@ -352,7 +360,7 @@ export declare class JsVoiceAgent {
352
360
  constructor(config?: JsVoiceAgentConfig | undefined | null)
353
361
  /** Attaches outbound local audio track for TTS injection. */
354
362
  attach(outboundTrack: JsLocalAudioTrack): Promise<void>
355
- start(): Promise<void>
363
+ start(sessionContext?: JsVoiceSessionContext | undefined | null): Promise<void>
356
364
  stop(): Promise<void>
357
365
  sendTextToTts(text: string, nonBlocking?: boolean | undefined | null): Promise<void>
358
366
  flushTts(): Promise<void>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node-webrtc-rust/bindings",
3
- "version": "0.6.9",
3
+ "version": "0.6.11",
4
4
  "description": "NAPI-RS native bindings for node-webrtc-rust — WebRTC peer connections, data channels, and conference audio mixing",
5
5
  "keywords": [
6
6
  "webrtc",
@@ -58,12 +58,12 @@
58
58
  "@napi-rs/cli": "^2.18.0"
59
59
  },
60
60
  "optionalDependencies": {
61
- "@node-webrtc-rust/bindings-win32-x64-msvc": "0.6.9",
62
- "@node-webrtc-rust/bindings-darwin-x64": "0.6.9",
63
- "@node-webrtc-rust/bindings-linux-x64-gnu": "0.6.9",
64
- "@node-webrtc-rust/bindings-darwin-arm64": "0.6.9",
65
- "@node-webrtc-rust/bindings-linux-arm64-gnu": "0.6.9",
66
- "@node-webrtc-rust/bindings-linux-x64-musl": "0.6.9"
61
+ "@node-webrtc-rust/bindings-win32-x64-msvc": "0.6.11",
62
+ "@node-webrtc-rust/bindings-darwin-x64": "0.6.11",
63
+ "@node-webrtc-rust/bindings-linux-x64-gnu": "0.6.11",
64
+ "@node-webrtc-rust/bindings-darwin-arm64": "0.6.11",
65
+ "@node-webrtc-rust/bindings-linux-arm64-gnu": "0.6.11",
66
+ "@node-webrtc-rust/bindings-linux-x64-musl": "0.6.11"
67
67
  },
68
68
  "engines": {
69
69
  "node": ">=18"