@camstack/system 1.2.192 → 1.2.194

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 (51) hide show
  1. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  2. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  3. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  4. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  5. package/dist/builtins/alerts/alerts.addon.js +1 -1
  6. package/dist/builtins/alerts/alerts.addon.mjs +1 -1
  7. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +1 -1
  8. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +1 -1
  9. package/dist/builtins/console-logging/index.js +1 -1
  10. package/dist/builtins/console-logging/index.mjs +1 -1
  11. package/dist/builtins/core-blocks/core-blocks.addon.js +1 -1
  12. package/dist/builtins/core-blocks/core-blocks.addon.mjs +1 -1
  13. package/dist/builtins/device-manager/device-manager.addon.js +2 -2
  14. package/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
  15. package/dist/builtins/doorbell/virtual-doorbell.addon.js +1 -1
  16. package/dist/builtins/doorbell/virtual-doorbell.addon.mjs +1 -1
  17. package/dist/builtins/hub-forwarder/index.js +1 -1
  18. package/dist/builtins/hub-forwarder/index.mjs +1 -1
  19. package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  20. package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  21. package/dist/builtins/local-auth/local-auth.addon.js +1 -1
  22. package/dist/builtins/local-auth/local-auth.addon.mjs +1 -1
  23. package/dist/builtins/local-network/local-network.addon.js +1 -1
  24. package/dist/builtins/local-network/local-network.addon.mjs +1 -1
  25. package/dist/builtins/loki-logging/index.js +1 -1
  26. package/dist/builtins/loki-logging/index.mjs +1 -1
  27. package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  28. package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  29. package/dist/builtins/platform-probe/index.js +1 -1
  30. package/dist/builtins/platform-probe/index.mjs +1 -1
  31. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  32. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  33. package/dist/builtins/snapshot/index.js +1 -1
  34. package/dist/builtins/snapshot/index.mjs +1 -1
  35. package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  36. package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  37. package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +0 -0
  38. package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +0 -0
  39. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
  40. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
  41. package/dist/builtins/system-config/system-config.addon.js +1 -1
  42. package/dist/builtins/system-config/system-config.addon.mjs +1 -1
  43. package/dist/builtins/winston-logging/index.js +1 -1
  44. package/dist/builtins/winston-logging/index.mjs +1 -1
  45. package/dist/{dist-DyO7xSEt.js → dist-C7g13BfN.js} +496 -2
  46. package/dist/{dist-BjPKkEaJ.mjs → dist-DwFNOn8R.mjs} +496 -2
  47. package/dist/index.js +1 -1
  48. package/dist/index.mjs +1 -1
  49. package/dist/{retired-settings-keys-BD6-AoDL.js → retired-settings-keys-BT_YDV75.js} +1 -1
  50. package/dist/{retired-settings-keys-DAG8eU5q.mjs → retired-settings-keys-JFxrynI0.mjs} +1 -1
  51. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  let zod = require("zod");
2
- //#region ../types/dist/event-category-BZL-fdNj.mjs
2
+ //#region ../types/dist/event-category-zAv7pMUz.mjs
3
3
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4
4
  EventCategory["SystemBoot"] = "system.boot";
5
5
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -371,6 +371,13 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
371
371
  */
372
372
  EventCategory["BatteryOnStatusChanged"] = "battery.onStatusChanged";
373
373
  /**
374
+ * Cap event fired by every device that registers the `network-link`
375
+ * capability. Mirrors the cap definition's `onStatusChanged`. Carries
376
+ * `{ deviceId, status: NetworkLinkStatus }` — a link switch or a signal
377
+ * reading that moved.
378
+ */
379
+ EventCategory["NetworkLinkOnStatusChanged"] = "network-link.onStatusChanged";
380
+ /**
374
381
  * Emitted by the battery cap provider WHEN `wakeForStream` enters the
375
382
  * "wake in progress" window — between the Baichuan wake-up issue and
376
383
  * the camera's first dialed-back RTP packet. The stream-broker
@@ -24536,6 +24543,88 @@ onStatusChanged: { data: zod.z.object({
24536
24543
  volatileStateFields: ["lastUpdated"]
24537
24544
  };
24538
24545
  /**
24546
+ * Network-link snapshot. Same shape for every provider (a Reolink wifi
24547
+ * camera, a Home Assistant device with a signal-strength sensor, a Tapo
24548
+ * plug): one slice under `device.runtimeState['network-link']`, one badge,
24549
+ * one Home Assistant projection.
24550
+ */
24551
+ var NetworkLinkStatusSchema = zod.z.object({
24552
+ /** The link the device is on. `'unknown'` = not read yet, not "no link". */
24553
+ type: zod.z.enum([
24554
+ "wifi",
24555
+ "ethernet",
24556
+ "cellular",
24557
+ "unknown"
24558
+ ]),
24559
+ /**
24560
+ * Link quality, 0..100 inclusive, normalised by the provider from whatever
24561
+ * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
24562
+ * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
24563
+ * one whose reading has not landed must not be drawn at 0 %. Consumers
24564
+ * SKIP a null rather than coerce it.
24565
+ */
24566
+ signalPercent: zod.z.number().min(0).max(100).nullable(),
24567
+ /** Raw received signal strength in dBm, when the firmware reports one. */
24568
+ rssiDbm: zod.z.number().optional(),
24569
+ /** Network name of a wireless link, when the firmware reports it. */
24570
+ ssid: zod.z.string().optional(),
24571
+ /** Ms epoch of the last observation. Lets consumers reason about freshness. */
24572
+ lastUpdated: zod.z.number()
24573
+ });
24574
+ var networkLinkCapability = {
24575
+ name: "network-link",
24576
+ scope: "device",
24577
+ deviceNative: true,
24578
+ mode: "singleton",
24579
+ deviceTypes: [
24580
+ DeviceType.Camera,
24581
+ DeviceType.Sensor,
24582
+ DeviceType.Button,
24583
+ DeviceType.Switch,
24584
+ DeviceType.Light,
24585
+ DeviceType.Lock,
24586
+ DeviceType.Siren
24587
+ ],
24588
+ methods: {},
24589
+ events: {
24590
+ /**
24591
+ * Emitted whenever the cached status changes (a link switch, a signal
24592
+ * reading that moved). Mirrored on the parent chain by the
24593
+ * DeviceEventPropagator like `battery.onStatusChanged`.
24594
+ */
24595
+ onStatusChanged: { data: zod.z.object({
24596
+ deviceId: zod.z.number(),
24597
+ status: NetworkLinkStatusSchema
24598
+ }) } },
24599
+ status: {
24600
+ schema: NetworkLinkStatusSchema,
24601
+ kind: "push",
24602
+ empty: {
24603
+ type: "unknown",
24604
+ signalPercent: null,
24605
+ lastUpdated: 0
24606
+ }
24607
+ },
24608
+ /**
24609
+ * Runtime-state slice — every provider stores the same shape under
24610
+ * `device.runtimeState['network-link']`, read once by the badge and the
24611
+ * Home Assistant projector regardless of the driver.
24612
+ */
24613
+ runtimeState: NetworkLinkStatusSchema,
24614
+ /**
24615
+ * Runtime-state durability: **restored** — a link reading is slow to
24616
+ * change and a sleeping battery camera may not report for hours; the
24617
+ * restored slice is what the badge shows until the next read.
24618
+ *
24619
+ * See `RuntimeStateDurability`. Enforced by
24620
+ * `scripts/check-runtime-state-durability.ts`.
24621
+ */
24622
+ durability: "restored",
24623
+ /** Clock fields: written, but excluded from the compare that decides
24624
+ * whether persisting is worth a SQLite commit. */
24625
+ volatileStateFields: ["lastUpdated"]
24626
+ };
24627
+ /**
24539
24628
  * Generic boolean sensor — last-resort fallback when no domain-
24540
24629
  * specific binary cap fits (Home Assistant `binary_sensor` without a
24541
24630
  * known `device_class`, or a domain we haven't typed yet). Pure
@@ -30263,6 +30352,289 @@ var ptzAutotrackCapability = {
30263
30352
  durability: "session"
30264
30353
  };
30265
30354
  /**
30355
+ * `navigation` — a device-scoped capability that natively expresses the FULL
30356
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
30357
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
30358
+ *
30359
+ * Why a NEW cap rather than overloading `ptz`:
30360
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
30361
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
30362
+ * The two are different physical models: PTZ is absolute-position + presets,
30363
+ * navigation is momentary drive nudges + discrete robot ACTIONS
30364
+ * (dock / spot-clean / follow-pet / go-to-point / …).
30365
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
30366
+ * the reverse:
30367
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
30368
+ * / `getOptions`), and
30369
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
30370
+ * robot camera shows up in the existing PTZ control path without every
30371
+ * PTZ provider learning about robots. The mapping lives in the adapter,
30372
+ * not here (see the addon design note):
30373
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
30374
+ * ptz.stop() → navigation.stop()
30375
+ * ptz.goHome() → navigation.runAction('goHome')
30376
+ * ptz.getPresets() → navigation.listActions() (id→preset)
30377
+ * ptz.goToPreset(id) → navigation.runAction(id)
30378
+ *
30379
+ * ## Continuous drive
30380
+ *
30381
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
30382
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
30383
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
30384
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
30385
+ * coalesce them. The UI owns the cadence.
30386
+ *
30387
+ * ## The action dictionary
30388
+ *
30389
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
30390
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
30391
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
30392
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
30393
+ * vendor-specific list. `kind: 'action'` entries are triggered with
30394
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
30395
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
30396
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
30397
+ *
30398
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
30399
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
30400
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
30401
+ * every device handle. A future nodedreame publish adds a typed
30402
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
30403
+ * provider can then swap the raw calls for the typed methods with no change to
30404
+ * THIS contract.
30405
+ */
30406
+ /**
30407
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
30408
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
30409
+ * halts it.
30410
+ *
30411
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
30412
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
30413
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
30414
+ * vector by it (drivers without proportional drive ignore it).
30415
+ *
30416
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
30417
+ * axis alone; an all-undefined nudge is a no-op.
30418
+ */
30419
+ var NavigationMoveCommandSchema = zod.z.object({
30420
+ pan: zod.z.number().min(-1).max(1).optional(),
30421
+ tilt: zod.z.number().min(-1).max(1).optional(),
30422
+ speed: zod.z.number().min(0).max(1).optional()
30423
+ });
30424
+ /**
30425
+ * The enumerated discrete actions a navigation-capable robot can perform via
30426
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
30427
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
30428
+ * `playSound` (see the `sound` dictionary entries).
30429
+ */
30430
+ var NavigationActionIdSchema = zod.z.enum([
30431
+ "goHome",
30432
+ "locate",
30433
+ "spotClean",
30434
+ "findPet",
30435
+ "personFollow",
30436
+ "stop",
30437
+ "startClean",
30438
+ "pauseClean",
30439
+ "dockWash",
30440
+ "autoEmpty",
30441
+ "flashOn",
30442
+ "flashOff"
30443
+ ]);
30444
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
30445
+ var NavigationEntryKindSchema = zod.z.enum(["action", "sound"]);
30446
+ /**
30447
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
30448
+ * native panel and the PTZ mimic render as a button.
30449
+ *
30450
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
30451
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
30452
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
30453
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
30454
+ * - `label` — operator-facing English label.
30455
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
30456
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
30457
+ * PTZ render ONLY enabled entries. Data-driven: the provider
30458
+ * flips it from config, never by editing code.
30459
+ */
30460
+ var NavigationActionEntrySchema = zod.z.object({
30461
+ id: zod.z.string(),
30462
+ kind: NavigationEntryKindSchema,
30463
+ label: zod.z.string(),
30464
+ icon: zod.z.string(),
30465
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
30466
+ soundId: zod.z.number().int().optional(),
30467
+ /** Per-device feature flag — render this entry only when true. */
30468
+ enabled: zod.z.boolean()
30469
+ });
30470
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
30471
+ var NavigationPointSchema = zod.z.object({
30472
+ x: zod.z.number(),
30473
+ y: zod.z.number()
30474
+ });
30475
+ /**
30476
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
30477
+ * The cap reports which are enabled so the UI / PTZ render only the controls
30478
+ * that are turned on for THIS device. Data-driven: the provider derives these
30479
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
30480
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
30481
+ * that are not dictionary entries.
30482
+ *
30483
+ * - `move` / `stop` — the momentary drive joystick.
30484
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
30485
+ * map-coordinate plumbing is wired.
30486
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
30487
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
30488
+ * - `light` — the on/off fill-light toggle (works anytime).
30489
+ * - `lightMode` — the auto/manual selector + manual level slider (a
30490
+ * camera-service control; needs an active stream).
30491
+ */
30492
+ var NavigationFeaturesSchema = zod.z.object({
30493
+ move: zod.z.boolean(),
30494
+ stop: zod.z.boolean(),
30495
+ goToPoint: zod.z.boolean(),
30496
+ runAction: zod.z.boolean(),
30497
+ playSound: zod.z.boolean(),
30498
+ light: zod.z.boolean(),
30499
+ lightMode: zod.z.boolean()
30500
+ });
30501
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
30502
+ var NavigationLightModeSchema = zod.z.enum(["auto", "manual"]);
30503
+ /** Coarse work mode the robot reports — drives the UI's active-state chips. */
30504
+ var NavigationModeSchema = zod.z.enum([
30505
+ "idle",
30506
+ "cleaning",
30507
+ "spot",
30508
+ "following",
30509
+ "goto",
30510
+ "returning",
30511
+ "paused",
30512
+ "unknown"
30513
+ ]);
30514
+ /**
30515
+ * Live navigation state so the UI can reflect what the robot is doing:
30516
+ * - `mode` — coarse activity (idle / cleaning / following / …).
30517
+ * - `following` — person/pet follow is currently armed.
30518
+ * - `flash` — the on-camera fill light is on.
30519
+ * - `lightMode` — auto vs manual fill-light mode.
30520
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
30521
+ * `lightMode === 'manual'`.
30522
+ */
30523
+ var NavigationStatusSchema = zod.z.object({
30524
+ mode: NavigationModeSchema,
30525
+ following: zod.z.boolean(),
30526
+ flash: zod.z.boolean(),
30527
+ lightMode: NavigationLightModeSchema,
30528
+ lightLevel: zod.z.number().min(40).max(100),
30529
+ /** Ms epoch when the slice was last updated. */
30530
+ lastChangedAt: zod.z.number()
30531
+ });
30532
+ /**
30533
+ * Runtime-state slice owned by this cap (kernel-managed: validated, mirrored,
30534
+ * observable). Adds `lastFetchedAt` on top of the status shape per the
30535
+ * convention.
30536
+ */
30537
+ var NavigationRuntimeStateSchema = NavigationStatusSchema.extend({ lastFetchedAt: zod.z.number() });
30538
+ var navigationCapability = {
30539
+ name: "navigation",
30540
+ scope: "device",
30541
+ deviceNative: true,
30542
+ mode: "singleton",
30543
+ deviceTypes: [DeviceType.Camera],
30544
+ deviceConfig: { ui: {
30545
+ kind: "widget",
30546
+ widgetId: "host/navigation-panel",
30547
+ tab: "navigation",
30548
+ topTab: true,
30549
+ label: "Navigation",
30550
+ order: 0
30551
+ } },
30552
+ methods: {
30553
+ /**
30554
+ * Momentary drive nudge (the robot moves). `protected` — mirrors
30555
+ * `ptz.continuousMove` so the Viewer navigation panel (and the PTZ-mimic
30556
+ * path) works for any authenticated user, not admin-only. The UI sends
30557
+ * these at ~1 Hz while a control is held; the provider forwards each one to
30558
+ * a single drive write WITHOUT debouncing.
30559
+ */
30560
+ move: method(NavigationMoveCommandSchema.extend({ deviceId: zod.z.number() }), zod.z.void(), { kind: "mutation" }),
30561
+ /** Halt all motion immediately (zero drive vector). */
30562
+ stop: method(zod.z.object({ deviceId: zod.z.number() }), zod.z.void(), { kind: "mutation" }),
30563
+ /** Send the robot to a point on its live map. */
30564
+ goToPoint: method(NavigationPointSchema.extend({ deviceId: zod.z.number() }), zod.z.void(), { kind: "mutation" }),
30565
+ /**
30566
+ * Enumerate the discrete controls THIS device supports (data-driven UI +
30567
+ * PTZ mimic). Camera-probed subset of {@link NAVIGATION_ACTION_CATALOG}.
30568
+ */
30569
+ listActions: method(zod.z.object({ deviceId: zod.z.number() }), zod.z.array(NavigationActionEntrySchema)),
30570
+ /**
30571
+ * Run one discrete action (a `kind:'action'` dictionary entry). Invalid /
30572
+ * unsupported action ids are rejected by the provider.
30573
+ */
30574
+ runAction: method(zod.z.object({
30575
+ deviceId: zod.z.number(),
30576
+ actionId: NavigationActionIdSchema
30577
+ }), zod.z.void(), { kind: "mutation" }),
30578
+ /** Play a sound by its wire id (the `soundId` of a `kind:'sound'` entry). */
30579
+ playSound: method(zod.z.object({
30580
+ deviceId: zod.z.number(),
30581
+ soundId: zod.z.number().int()
30582
+ }), zod.z.void(), { kind: "mutation" }),
30583
+ /**
30584
+ * Turn the on-camera fill light on / off (the `OpenFullLight` control —
30585
+ * works anytime, no active stream required).
30586
+ */
30587
+ setLightOn: method(zod.z.object({
30588
+ deviceId: zod.z.number(),
30589
+ on: zod.z.boolean()
30590
+ }), zod.z.void(), { kind: "mutation" }),
30591
+ /**
30592
+ * Set the fill-light mode (auto vs manual). `manual` optionally carries the
30593
+ * initial `level`. The auto/manual + level control is a CAMERA-service
30594
+ * action that generally needs an active camera stream/monitor session — the
30595
+ * UI shows the manual level slider ONLY when `mode === 'manual'`.
30596
+ */
30597
+ setLightMode: method(zod.z.object({
30598
+ deviceId: zod.z.number(),
30599
+ mode: NavigationLightModeSchema,
30600
+ level: zod.z.number().min(40).max(100).optional()
30601
+ }), zod.z.void(), { kind: "mutation" }),
30602
+ /** Set the MANUAL fill-light level (40..100). Implies `manual` mode. */
30603
+ setLightLevel: method(zod.z.object({
30604
+ deviceId: zod.z.number(),
30605
+ level: zod.z.number().min(40).max(100)
30606
+ }), zod.z.void(), { kind: "mutation" }),
30607
+ /**
30608
+ * Per-device FEATURE-FLAG report for the general primitives — drives which
30609
+ * controls the UI shows (the per-entry flags for the dictionary come back on
30610
+ * `listActions`).
30611
+ */
30612
+ getFeatures: method(zod.z.object({ deviceId: zod.z.number() }), NavigationFeaturesSchema)
30613
+ },
30614
+ events: { onStatusChanged: { data: zod.z.object({
30615
+ deviceId: zod.z.number(),
30616
+ status: NavigationStatusSchema
30617
+ }) } },
30618
+ status: {
30619
+ schema: NavigationStatusSchema,
30620
+ kind: "push"
30621
+ },
30622
+ /**
30623
+ * Runtime-state slice mirrored by the kernel. The navigation panel watches it
30624
+ * for live mode / follow / flash changes.
30625
+ */
30626
+ runtimeState: NavigationRuntimeStateSchema,
30627
+ /**
30628
+ * Runtime-state durability: **session** — like `vacuum-control`, a restored
30629
+ * `mode: cleaning` / `following: true` is a robot that is not actually doing
30630
+ * that. The live handle re-publishes on connect.
30631
+ *
30632
+ * See `RuntimeStateDurability`. Enforced by
30633
+ * `scripts/check-runtime-state-durability.ts`.
30634
+ */
30635
+ durability: "session"
30636
+ };
30637
+ /**
30266
30638
  * reboot — device-scoped capability for "soft" device reboots (firmware
30267
30639
  * reboot via vendor protocol; cameras, NVRs, doorbells). Surfaces a
30268
30640
  * single mutation so the UI can offer a confirm-and-reboot button for
@@ -34603,6 +34975,8 @@ var CAP_NAMES_WITH_STATUS = [
34603
34975
  "motion-zones",
34604
34976
  "mqtt-broker",
34605
34977
  "native-object-detection",
34978
+ "navigation",
34979
+ "network-link",
34606
34980
  "notifier",
34607
34981
  "numeric-sensor",
34608
34982
  "osd",
@@ -34728,7 +35102,9 @@ var ALL_CAPABILITY_DEFINITIONS = [
34728
35102
  motionZonesCapability,
34729
35103
  mqttBrokerCapability,
34730
35104
  nativeObjectDetectionCapability,
35105
+ navigationCapability,
34731
35106
  networkAccessCapability,
35107
+ networkLinkCapability,
34732
35108
  networkQualityCapability,
34733
35109
  nodesCapability,
34734
35110
  notificationOutputCapability,
@@ -37529,6 +37905,66 @@ var METHOD_ACCESS_MAP = Object.freeze({
37529
37905
  addonId: null,
37530
37906
  access: "create"
37531
37907
  },
37908
+ "navigation.getFeatures": {
37909
+ capName: "navigation",
37910
+ capScope: "device",
37911
+ addonId: null,
37912
+ access: "view"
37913
+ },
37914
+ "navigation.goToPoint": {
37915
+ capName: "navigation",
37916
+ capScope: "device",
37917
+ addonId: null,
37918
+ access: "create"
37919
+ },
37920
+ "navigation.listActions": {
37921
+ capName: "navigation",
37922
+ capScope: "device",
37923
+ addonId: null,
37924
+ access: "view"
37925
+ },
37926
+ "navigation.move": {
37927
+ capName: "navigation",
37928
+ capScope: "device",
37929
+ addonId: null,
37930
+ access: "create"
37931
+ },
37932
+ "navigation.playSound": {
37933
+ capName: "navigation",
37934
+ capScope: "device",
37935
+ addonId: null,
37936
+ access: "create"
37937
+ },
37938
+ "navigation.runAction": {
37939
+ capName: "navigation",
37940
+ capScope: "device",
37941
+ addonId: null,
37942
+ access: "create"
37943
+ },
37944
+ "navigation.setLightLevel": {
37945
+ capName: "navigation",
37946
+ capScope: "device",
37947
+ addonId: null,
37948
+ access: "create"
37949
+ },
37950
+ "navigation.setLightMode": {
37951
+ capName: "navigation",
37952
+ capScope: "device",
37953
+ addonId: null,
37954
+ access: "create"
37955
+ },
37956
+ "navigation.setLightOn": {
37957
+ capName: "navigation",
37958
+ capScope: "device",
37959
+ addonId: null,
37960
+ access: "create"
37961
+ },
37962
+ "navigation.stop": {
37963
+ capName: "navigation",
37964
+ capScope: "device",
37965
+ addonId: null,
37966
+ access: "create"
37967
+ },
37532
37968
  "networkAccess.getEndpoint": {
37533
37969
  capName: "network-access",
37534
37970
  capScope: "system",
@@ -41624,6 +42060,56 @@ Object.freeze({
41624
42060
  form: "single",
41625
42061
  optional: false
41626
42062
  }],
42063
+ "navigation.getFeatures": [{
42064
+ name: "deviceId",
42065
+ form: "single",
42066
+ optional: false
42067
+ }],
42068
+ "navigation.goToPoint": [{
42069
+ name: "deviceId",
42070
+ form: "single",
42071
+ optional: false
42072
+ }],
42073
+ "navigation.listActions": [{
42074
+ name: "deviceId",
42075
+ form: "single",
42076
+ optional: false
42077
+ }],
42078
+ "navigation.move": [{
42079
+ name: "deviceId",
42080
+ form: "single",
42081
+ optional: false
42082
+ }],
42083
+ "navigation.playSound": [{
42084
+ name: "deviceId",
42085
+ form: "single",
42086
+ optional: false
42087
+ }],
42088
+ "navigation.runAction": [{
42089
+ name: "deviceId",
42090
+ form: "single",
42091
+ optional: false
42092
+ }],
42093
+ "navigation.setLightLevel": [{
42094
+ name: "deviceId",
42095
+ form: "single",
42096
+ optional: false
42097
+ }],
42098
+ "navigation.setLightMode": [{
42099
+ name: "deviceId",
42100
+ form: "single",
42101
+ optional: false
42102
+ }],
42103
+ "navigation.setLightOn": [{
42104
+ name: "deviceId",
42105
+ form: "single",
42106
+ optional: false
42107
+ }],
42108
+ "navigation.stop": [{
42109
+ name: "deviceId",
42110
+ form: "single",
42111
+ optional: false
42112
+ }],
41627
42113
  "networkQuality.getDeviceStats": [{
41628
42114
  name: "deviceId",
41629
42115
  form: "single",
@@ -42666,7 +43152,7 @@ Object.freeze({
42666
43152
  });
42667
43153
  /**
42668
43154
  * Per-cap runtime-state policy, projected from every `*.cap.ts` that declares
42669
- * `runtimeState`. 64 caps: 34 `restored`, 30 `session`.
43155
+ * `runtimeState`. 66 caps: 35 `restored`, 31 `session`.
42670
43156
  *
42671
43157
  * A cap absent from this map has no runtime-state slice at all. A cap PRESENT
42672
43158
  * with `durability: 'session'` has one and has decided not to keep it.
@@ -42828,6 +43314,14 @@ var RUNTIME_STATE_POLICY = {
42828
43314
  durability: "restored",
42829
43315
  volatileFields: ["lastFetchedAt"]
42830
43316
  },
43317
+ "navigation": {
43318
+ durability: "session",
43319
+ volatileFields: []
43320
+ },
43321
+ "network-link": {
43322
+ durability: "restored",
43323
+ volatileFields: ["lastUpdated"]
43324
+ },
42831
43325
  "notifier": {
42832
43326
  durability: "session",
42833
43327
  volatileFields: []