@fleetless/sdk 5.2.1 → 5.3.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/CHANGELOG.md CHANGED
@@ -4,6 +4,18 @@ All notable changes to `@fleetless/sdk`. The format follows Keep a Changelog; th
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [5.3.0] — 2026-11-29
8
+
9
+ ### Added
10
+
11
+ - **`CameraLiveSession.onEnded(handler)`: why a live session ended** (fleetless/fleetless#1126). The handler is called once with `{ reason, detail, refusal }` when the cloud ends this session; it returns the function that stops listening. `reason: 'start_refused'` means the robot refused to start the camera's live video (a weak link, a source that refuses the credentials or cannot be reached), so the `Room` would never get a track; `detail` is a sentence safe to show, `refusal` the class (`low_bandwidth`, `source_auth`, `source_unreachable`, `not_startable`, `unknown`). An ending that arrived before `onEnded` was called is delivered at once.
12
+ - `cameras.live()` now opens the client's realtime channel and waits for it (at most 5 s) before it takes the hold, so an ending that comes at once is not missed. If the channel cannot come up, `live()` still returns the session and `onEnded` stays silent. The open channel counts as one of the org's realtime connections and keeps a Node process alive: a script that calls `live()` ends with `client.close()`.
13
+ - New exports: the type `CameraLiveEnded`, the types `LiveSessionEndReason`, `LiveStartRefusal` and `CameraOfflineDetails`, and the runtime `cameraOfflineDetails` and `LIVE_START_REFUSALS`: a `409 camera_offline` from `live()` carries `details.refusal`, and its message is the cloud's sentence, never the robot's words.
14
+
15
+ ### Changed
16
+
17
+ - Built against `@fleetless/contracts` 19.3.0. Its major, 19.0.0, changed only the billing wire (`method` on a payment-method change, `pays_invoice` on its options), which the SDK neither sends nor exports; nothing here changes for a caller.
18
+
7
19
  ## [5.2.1] — 2026-11-26
8
20
 
9
21
  ### Changed