quantum-ai-sdk 0.3.3 → 0.3.4

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/client.d.ts CHANGED
@@ -240,6 +240,11 @@ export declare class QuantumClient {
240
240
  realtimeConnect(config?: RealtimeConfig): Promise<[RealtimeSender, RealtimeReceiver]>;
241
241
  /** Request an ephemeral token for direct xAI voice connection (lower latency). */
242
242
  realtimeSession(): Promise<RealtimeSession>;
243
+ /**
244
+ * Request a realtime session with full configuration.
245
+ * Pass voice, prompt, tools, etc. for ElevenLabs ConvAI.
246
+ */
247
+ realtimeSessionWith(body: Record<string, unknown>): Promise<RealtimeSession>;
243
248
  /** End a realtime session and finalize billing. */
244
249
  realtimeEnd(sessionId: string, durationSeconds: number): Promise<void>;
245
250
  /** Refresh an ephemeral token for long sessions (>4 min). */
package/dist/client.js CHANGED
@@ -430,6 +430,14 @@ export class QuantumClient {
430
430
  async realtimeSession() {
431
431
  return realtimeSession(this);
432
432
  }
433
+ /**
434
+ * Request a realtime session with full configuration.
435
+ * Pass voice, prompt, tools, etc. for ElevenLabs ConvAI.
436
+ */
437
+ async realtimeSessionWith(body) {
438
+ const { data } = await this._doJSON("POST", "/qai/v1/realtime/session", body);
439
+ return data;
440
+ }
433
441
  /** End a realtime session and finalize billing. */
434
442
  async realtimeEnd(sessionId, durationSeconds) {
435
443
  return realtimeEnd(this, sessionId, durationSeconds);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quantum-ai-sdk",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Cosmic Duck SDK — 100+ AI endpoints across 10 providers",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",