@babelbeez/sdk 0.2.0 → 0.3.2

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/CHANGELOG.md ADDED
@@ -0,0 +1,54 @@
1
+ # Changelog
2
+
3
+ All notable changes to `@babelbeez/sdk` are documented here.
4
+
5
+ ## [0.3.2] - 2026-01-30
6
+
7
+ ### Fixed
8
+ - Improved `buttonState` behavior when the user ends a call while the assistant is speaking, so the UI no longer gets stuck in an active/talking state and remains consistent through the configured goodbye message.
9
+
10
+ ## [0.3.1] - 2026-01-14
11
+
12
+ ### Changed
13
+ - Improved greeting behavior for configured voice agents: the initial greeting now runs via an out-of-band Realtime `response.create` turn so it plays immediately after `connect()`
14
+
15
+ ## [0.3.0] - 2026-01-14
16
+
17
+ ### Changed
18
+ - Removed the `entities:updated` SDK event and its associated types. Structured call entities are now managed entirely on the Babelbeez backend and exposed via server-side surfaces (e.g. webhooks, usage logs), not via the headless SDK.
19
+
20
+ ### Breaking Changes
21
+ - Code that subscribed to `entities:updated` will no longer type-check. Update your integration to consume entities from backend/webhook payloads instead of the SDK.
22
+
23
+ ## [0.2.0] - 2026-01-12
24
+
25
+ ### Added
26
+ - Optional structured entity tracking for calls (e.g. email, name, appointment time), exposed via a new `entities:updated` event.
27
+
28
+ ### Breaking Changes
29
+ - None.
30
+
31
+ ---
32
+
33
+ ## [0.1.2] - 2026-01-02
34
+
35
+ ### Added
36
+ - Package README and documentation for the Babelbeez Headless SDK on npm.
37
+
38
+ ### Breaking Changes
39
+ - None.
40
+
41
+ ---
42
+
43
+ ## [0.1.1] - 2025-12-31
44
+
45
+ ### Added
46
+ - Initial public release of the Babelbeez Headless SDK.
47
+ - Support for:
48
+ - Custom start/stop button and call UI.
49
+ - Streaming transcripts (`transcript` events).
50
+ - Session lifecycle events (`session:start`, `session:end`).
51
+ - Human handoff via email / WhatsApp (`handoff:show`, `handoff:hide`).
52
+
53
+ ### Breaking Changes
54
+ - N/A (first public release).
package/README.md CHANGED
@@ -392,6 +392,7 @@ Fired when the handoff flow is completed or cancelled.
392
392
  - The SDK is **browser‑first** and assumes access to `navigator.mediaDevices` for microphone input.
393
393
  - Always provide clear UX affordances (e.g. "Start call" / "End call") that map to `connect()` and `disconnect()`.
394
394
  - For best results, prompt the user before accessing the microphone and explain what the agent will do.
395
+ - When a Voice Agent is configured with a greeting, the SDK triggers this greeting immediately after `connect()` completes using an out-of-band Realtime `response.create` turn.
395
396
 
396
397
  ---
397
398
 
@@ -407,3 +408,9 @@ https://www.babelbeez.com/resources/help/for-developers/headless-embed-custom-bu
407
408
  ## License
408
409
 
409
410
  MIT
411
+
412
+ ---
413
+
414
+ ## Changelog
415
+
416
+ See [CHANGELOG.md](./CHANGELOG.md) for release notes.
@@ -47,10 +47,6 @@ export interface BabelbeezHandoffHideEvent {
47
47
  outcome: BabelbeezHandoffHideOutcome;
48
48
  }
49
49
 
50
- export interface BabelbeezEntitiesUpdatedEvent {
51
- entities: Record<string, unknown>;
52
- }
53
-
54
50
  export interface BabelbeezClientEventMap {
55
51
  /**
56
52
  * Voice button / widget state changes.
@@ -92,12 +88,6 @@ export interface BabelbeezClientEventMap {
92
88
  * Notification that the handoff form has been closed.
93
89
  */
94
90
  'handoff:hide': BabelbeezHandoffHideEvent;
95
-
96
- /**
97
- * Structured entity state updated by the AI via the update_session_entities tool.
98
- * Contains key:value pairs such as email, name, appointment_time, etc.
99
- */
100
- 'entities:updated': BabelbeezEntitiesUpdatedEvent;
101
91
  }
102
92
 
103
93
  export interface BabelbeezHandoffSubmitPayload {