@camstack/addon-osd-manager 0.1.76 → 0.1.78

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 (18) hide show
  1. package/dist/{MotionZonesSettings-CItDvEc5.mjs → MotionZonesSettings-CcUQv9US.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-VeNNRVMu.mjs → PrivacyMaskSettings-C1kY8VDL.mjs} +4 -4
  3. package/dist/{SceneMonitorEditor-BnVVp8sl.mjs → SceneMonitorEditor-DSLR3HyX.mjs} +3 -3
  4. package/dist/_stub.js +10 -10
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-CHwKOVWZ.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-Bi39a2P-.mjs} +4 -4
  6. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-zKEKO1Le.mjs +26 -0
  7. package/dist/{hostInit-CY_6sAcM.mjs → hostInit-BzYW4SpW.mjs} +3 -3
  8. package/dist/index.js +545 -366
  9. package/dist/index.mjs +545 -366
  10. package/dist/{player-overlays-xYmIawDd.mjs → player-overlays-DPEo1CnK.mjs} +1 -1
  11. package/dist/remoteEntry.js +1 -1
  12. package/dist/{responsive-D9gHzlvL.mjs → responsive-veJ_u_lF.mjs} +1 -1
  13. package/dist/{square-Ck1Vpfun.mjs → square-BKRxPrj2.mjs} +1 -1
  14. package/dist/{trash-2-CblWdY3m.mjs → trash-2-B_FOJHPE.mjs} +1 -1
  15. package/dist/{use-device-snapshot-0nA-SEes.mjs → use-device-snapshot-CCUZGgXd.mjs} +1 -1
  16. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-fV9ZdWgn.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-ChNl9npD.mjs} +1 -1
  17. package/package.json +1 -1
  18. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CDiViHE5.mjs +0 -26
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- //#region ../types/dist/event-category-zAv7pMUz.mjs
5
+ //#region ../types/dist/event-category-CnLqLOKs.mjs
6
6
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
7
7
  EventCategory["SystemBoot"] = "system.boot";
8
8
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -197,6 +197,19 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
197
197
  EventCategory["ProcessCrashed"] = "process.crashed";
198
198
  EventCategory["ProcessRestartScheduled"] = "process.restart_scheduled";
199
199
  EventCategory["ProcessRestarted"] = "process.restarted";
200
+ /**
201
+ * The SET of storage locations changed — one was created, edited, enabled,
202
+ * disabled or deleted through `storage.upsertLocation` / `deleteLocation`.
203
+ *
204
+ * Telemetry, not a transaction (D8/D11): every consumer that re-resolves on
205
+ * it must also converge on its own periodic path, because a dropped event
206
+ * must not leave a node writing to yesterday's disk set forever. It exists
207
+ * because there was NO signal at all — an operator who added a second
208
+ * recordings disk in the admin UI got nothing, and the recorder kept its
209
+ * resolved locations until something else happened to re-resolve them
210
+ * (D387). Payload `StorageLocationsChangedPayload`.
211
+ */
212
+ EventCategory["StorageLocationsChanged"] = "storage.locations-changed";
200
213
  EventCategory["RecordingStarted"] = "recording.started";
201
214
  EventCategory["RecordingStopped"] = "recording.stopped";
202
215
  EventCategory["RecordingError"] = "recording.error";
@@ -8635,6 +8648,21 @@ var StorageCleanupJobSchema = object({
8635
8648
  });
8636
8649
  var StorageCleanupStatusInputSchema = object({ jobId: string().optional() });
8637
8650
  /**
8651
+ * The one typed state of a storage location. Authoritative Zod schema — the TS
8652
+ * alias below is `z.infer<>` of it, never a second spelling.
8653
+ */
8654
+ var StorageLocationModeSchema = _enum([
8655
+ "active",
8656
+ "readonly",
8657
+ "drain",
8658
+ "disabled"
8659
+ ]);
8660
+ _enum([
8661
+ "normal",
8662
+ "never",
8663
+ "drain"
8664
+ ]);
8665
+ /**
8638
8666
  * `StorageLocationType` — an addon-declared id that identifies the *kind* of
8639
8667
  * storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
8640
8668
  * so the persisted record schema and the consumer-facing cap can both consume it
@@ -8700,6 +8728,21 @@ var StorageLocationSchema = object({
8700
8728
  * stops existing rather than being re-derived on every read.
8701
8729
  */
8702
8730
  enabled: boolean().optional(),
8731
+ /**
8732
+ * THE state of this location (D385), and the only authority on what may be
8733
+ * written, read or evicted here. Interpreted in exactly one place —
8734
+ * `storage-location-mode.ts` — which also folds the legacy
8735
+ * `enabled` / `config.readOnly` pair into a mode so an old row is never
8736
+ * ambiguous.
8737
+ *
8738
+ * OPTIONAL only for the wire and for rows written before D385: absence is
8739
+ * resolved by `resolveLocationMode`, and the orchestrator stamps every
8740
+ * unstamped row ONCE at hydrate so absence stops existing rather than being
8741
+ * re-derived on every read. `enabled` survives one release as a DERIVED
8742
+ * mirror (`mode === 'active'`); `withLocationMode` is the only writer of
8743
+ * either, so the two cannot disagree.
8744
+ */
8745
+ mode: StorageLocationModeSchema.optional(),
8703
8746
  /** COMPUTED at read time by the orchestrator (statfs of the backing volume
8704
8747
  * for node-local locations it can reach) — never persisted, absent when the
8705
8748
  * volume is remote/unreachable. The single capacity truth every UI reads. */
@@ -8707,11 +8750,46 @@ var StorageLocationSchema = object({
8707
8750
  totalBytes: number(),
8708
8751
  availableBytes: number()
8709
8752
  }).nullable().optional(),
8753
+ /**
8754
+ * How much of that volume CamStack ITSELF holds on this location (D388) —
8755
+ * COMPUTED at read time from the `storage-occupancy` providers' own figures,
8756
+ * never persisted, never a filesystem walk.
8757
+ *
8758
+ * **ABSENT MEANS UNKNOWN, never zero.** No provider has reported for this
8759
+ * location yet — nobody stores here, the owning addon is down, or the first
8760
+ * refresh has not completed. A UI must omit the segment rather than draw it
8761
+ * at zero, which would claim we occupy nothing (D315). It is an OBJECT and
8762
+ * not a bare number precisely so that a `?? 0` on the consuming side has to
8763
+ * be spelled out loud instead of appearing by accident.
8764
+ *
8765
+ * `measuredAtMs` is the OLDEST contributing measurement, so it is honest
8766
+ * about the whole figure rather than about its freshest part.
8767
+ */
8768
+ owned: object({
8769
+ bytes: number().int().nonnegative(),
8770
+ measuredAtMs: number().int().nonnegative()
8771
+ }).optional(),
8710
8772
  createdAt: number(),
8711
8773
  updatedAt: number()
8712
8774
  });
8713
8775
  object({ isDefault: boolean().optional() });
8714
8776
  /**
8777
+ * How far a `drain` has got (D386) — the read a UI renders, and nothing more.
8778
+ *
8779
+ * `estimatedEmptyAtMs` is derived from the growth the ratchet has actually
8780
+ * OBSERVED and is `null` when it has observed none. Never a fabricated date: a
8781
+ * drain with no observed growth has no honest ETA, and inventing one is how an
8782
+ * operator learns not to believe the screen.
8783
+ */
8784
+ var StorageDrainProgressSchema = object({
8785
+ locationId: string(),
8786
+ startedAtMs: number(),
8787
+ startBytes: number(),
8788
+ bytesRemaining: number(),
8789
+ drained: boolean(),
8790
+ estimatedEmptyAtMs: number().nullable()
8791
+ });
8792
+ /**
8715
8793
  * Reference accepted by consumer-facing `api.storage.*` calls.
8716
8794
  * Either:
8717
8795
  * - a `StorageLocationType` (e.g. `'backups'`) → the sole location of that type
@@ -23674,8 +23752,25 @@ var occupancyRecheckFramesField = {
23674
23752
  * (analyzer attaches detected `regions[]`; onboard does not — the
23675
23753
  * camera typically only reports a binary signal plus an optional
23676
23754
  * channel/AI class which lives in dedicated event channels).
23677
- */
23678
- var MotionSourceEnum = _enum(["onboard", "analyzer"]);
23755
+ *
23756
+ * - `onboard` — the camera's firmware said something moved.
23757
+ * - `analyzer` — this runner's frame-diff said so, and attaches `regions[]`.
23758
+ * - `device-activity` — the DEVICE said it is doing its job: the
23759
+ * `recording-signal` LEVEL the same device raises for the recorder
23760
+ * ([D380](../../../../docs/decisions/adr-0380-a-device-decided-recording-is-a-mode-with-no-schedule-seeded-once.md)),
23761
+ * republished as a motion source. It attaches **nothing** — no regions, no
23762
+ * class: the only fact it carries is that the device is active, and a robot
23763
+ * vacuum that is itself the moving object has no region worth sending. It is
23764
+ * a LEVEL, so unlike `onboard` it has a real falling edge, and unlike
23765
+ * `analyzer` it must not open the frame-diff side-channel — the runner's
23766
+ * `handleOnboardMotionAnalyzer` gate is `source === 'onboard'` and stays that
23767
+ * way ([D392](../../../../docs/decisions/adr-0392-a-device-that-says-it-is-working-is-a-motion-source-of-its-own.md)).
23768
+ */
23769
+ var MotionSourceEnum = _enum([
23770
+ "onboard",
23771
+ "analyzer",
23772
+ "device-activity"
23773
+ ]);
23679
23774
  /**
23680
23775
  * List of motion sources active on a camera. Empty array is valid:
23681
23776
  * "no source" — happens for battery cams without firmware motion when
@@ -25881,6 +25976,12 @@ var storageCapability = {
25881
25976
  kind: "mutation",
25882
25977
  auth: "admin"
25883
25978
  }),
25979
+ /**
25980
+ * How far each draining location has got (D386). A pure READ of what the
25981
+ * last pressure sweep computed — it starts no work, and a location that is
25982
+ * not draining simply does not appear.
25983
+ */
25984
+ listDrainProgress: method(_void(), array(StorageDrainProgressSchema).readonly()),
25884
25985
  testLocation: method(object({ id: string() }), object({
25885
25986
  ok: boolean(),
25886
25987
  error: string().optional()
@@ -26028,6 +26129,71 @@ var storageMigrationCapability = {
26028
26129
  history: method(object({}), array(StorageMigrationJobSchema).readonly(), { auth: "admin" })
26029
26130
  }
26030
26131
  };
26132
+ /**
26133
+ * `storage-occupancy` — how many bytes an addon actually HOLDS on a storage
26134
+ * location (D388).
26135
+ *
26136
+ * ## Why this is not `storage-evictable`
26137
+ *
26138
+ * `storage-evictable.getEvictableUsage` looks like the same question and is
26139
+ * not, in two ways that both matter and both bite hardest on the locations an
26140
+ * operator most wants a figure for:
26141
+ *
26142
+ * - it reports the whole eviction DOMAIN, not the location. `recordings:default`
26143
+ * and `recordingsLow:default` deliberately share one root and evict as one
26144
+ * oldest-first pool, so both answer with the SAME combined total. As an
26145
+ * occupancy figure that double-counts the disk.
26146
+ * - it reports ZERO for a location whose eviction policy is `never` (D385) —
26147
+ * a `readonly` or `disabled` disk. Those are exactly the disks an operator
26148
+ * is retiring and staring at.
26149
+ *
26150
+ * So this is its own contract with its own quantity, and the quantity is
26151
+ * OCCUPIED: every byte the addon holds on that location, whether or not it
26152
+ * would ever be willing to delete it. A provider that can only answer
26153
+ * "evictable" must not register here — a number that silently means different
26154
+ * things per class is worse than no number.
26155
+ *
26156
+ * ## Absence is an answer
26157
+ *
26158
+ * A location nobody reports for is UNKNOWN, never zero (D315). The orchestrator
26159
+ * stamps `StorageLocation.owned` only for locations it has a report for, and
26160
+ * the field is an OBJECT rather than a bare number so that a `?? 0` on the
26161
+ * consuming side has to be written out loud instead of appearing by accident.
26162
+ *
26163
+ * `internal: true` — consumed by the orchestrator's `listLocations` stamp, never
26164
+ * a public client surface. Clients read the stamped `StorageLocation.owned`.
26165
+ */
26166
+ /** One provider's occupancy answer for one location. */
26167
+ var StorageOccupancyReportSchema = object({
26168
+ locationId: string(),
26169
+ /** Bytes this provider holds on THAT location — not its eviction domain, and
26170
+ * not net of what it is willing to delete. */
26171
+ ownedBytes: number().int().nonnegative(),
26172
+ /** When the provider last actually measured this. The orchestrator carries it
26173
+ * through so a UI can say how old the figure is instead of implying "now". */
26174
+ measuredAtMs: number().int().nonnegative()
26175
+ });
26176
+ var storageOccupancyCapability = {
26177
+ name: "storage-occupancy",
26178
+ scope: "system",
26179
+ mode: "collection",
26180
+ internal: true,
26181
+ methods: {
26182
+ /**
26183
+ * Occupancy for the given locations, in ONE round trip.
26184
+ *
26185
+ * A provider answers only for the locations it actually holds bytes on and
26186
+ * OMITS the rest — an omitted location is "I hold nothing measurable here",
26187
+ * which the orchestrator merges as a contribution of nothing rather than as
26188
+ * a claim that the location is empty. Only a location no provider reports
26189
+ * at all stays unknown.
26190
+ *
26191
+ * This must be CHEAP and must never walk a filesystem: it is on the admin
26192
+ * UI's `listLocations` path. The owner keeps its own figure fresh (D224) and
26193
+ * answers from what it already has.
26194
+ */
26195
+ getOccupancy: method(object({ locationIds: array(string()).readonly() }), array(StorageOccupancyReportSchema).readonly(), { auth: "admin" }) }
26196
+ };
26031
26197
  var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
26032
26198
  providerId: string().min(1),
26033
26199
  displayName: string().min(1),
@@ -28383,88 +28549,6 @@ onStatusChanged: { data: object({
28383
28549
  volatileStateFields: ["lastUpdated"]
28384
28550
  };
28385
28551
  /**
28386
- * Network-link snapshot. Same shape for every provider (a Reolink wifi
28387
- * camera, a Home Assistant device with a signal-strength sensor, a Tapo
28388
- * plug): one slice under `device.runtimeState['network-link']`, one badge,
28389
- * one Home Assistant projection.
28390
- */
28391
- var NetworkLinkStatusSchema = object({
28392
- /** The link the device is on. `'unknown'` = not read yet, not "no link". */
28393
- type: _enum([
28394
- "wifi",
28395
- "ethernet",
28396
- "cellular",
28397
- "unknown"
28398
- ]),
28399
- /**
28400
- * Link quality, 0..100 inclusive, normalised by the provider from whatever
28401
- * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
28402
- * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
28403
- * one whose reading has not landed must not be drawn at 0 %. Consumers
28404
- * SKIP a null rather than coerce it.
28405
- */
28406
- signalPercent: number().min(0).max(100).nullable(),
28407
- /** Raw received signal strength in dBm, when the firmware reports one. */
28408
- rssiDbm: number().optional(),
28409
- /** Network name of a wireless link, when the firmware reports it. */
28410
- ssid: string().optional(),
28411
- /** Ms epoch of the last observation. Lets consumers reason about freshness. */
28412
- lastUpdated: number()
28413
- });
28414
- var networkLinkCapability = {
28415
- name: "network-link",
28416
- scope: "device",
28417
- deviceNative: true,
28418
- mode: "singleton",
28419
- deviceTypes: [
28420
- DeviceType.Camera,
28421
- DeviceType.Sensor,
28422
- DeviceType.Button,
28423
- DeviceType.Switch,
28424
- DeviceType.Light,
28425
- DeviceType.Lock,
28426
- DeviceType.Siren
28427
- ],
28428
- methods: {},
28429
- events: {
28430
- /**
28431
- * Emitted whenever the cached status changes (a link switch, a signal
28432
- * reading that moved). Mirrored on the parent chain by the
28433
- * DeviceEventPropagator like `battery.onStatusChanged`.
28434
- */
28435
- onStatusChanged: { data: object({
28436
- deviceId: number(),
28437
- status: NetworkLinkStatusSchema
28438
- }) } },
28439
- status: {
28440
- schema: NetworkLinkStatusSchema,
28441
- kind: "push",
28442
- empty: {
28443
- type: "unknown",
28444
- signalPercent: null,
28445
- lastUpdated: 0
28446
- }
28447
- },
28448
- /**
28449
- * Runtime-state slice — every provider stores the same shape under
28450
- * `device.runtimeState['network-link']`, read once by the badge and the
28451
- * Home Assistant projector regardless of the driver.
28452
- */
28453
- runtimeState: NetworkLinkStatusSchema,
28454
- /**
28455
- * Runtime-state durability: **restored** — a link reading is slow to
28456
- * change and a sleeping battery camera may not report for hours; the
28457
- * restored slice is what the badge shows until the next read.
28458
- *
28459
- * See `RuntimeStateDurability`. Enforced by
28460
- * `scripts/check-runtime-state-durability.ts`.
28461
- */
28462
- durability: "restored",
28463
- /** Clock fields: written, but excluded from the compare that decides
28464
- * whether persisting is worth a SQLite commit. */
28465
- volatileStateFields: ["lastUpdated"]
28466
- };
28467
- /**
28468
28552
  * Generic boolean sensor — last-resort fallback when no domain-
28469
28553
  * specific binary cap fits (Home Assistant `binary_sensor` without a
28470
28554
  * known `device_class`, or a domain we haven't typed yet). Pure
@@ -32275,6 +32359,369 @@ var nativeObjectDetectionCapability = {
32275
32359
  volatileStateFields: ["lastFetchedAt"]
32276
32360
  };
32277
32361
  /**
32362
+ * `navigation` — a device-scoped capability that natively expresses the FULL
32363
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
32364
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
32365
+ *
32366
+ * Why a NEW cap rather than overloading `ptz`:
32367
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
32368
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
32369
+ * The two are different physical models: PTZ is absolute-position + presets,
32370
+ * navigation is momentary drive nudges + discrete robot ACTIONS
32371
+ * (dock / spot-clean / follow-pet / go-to-point / …).
32372
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
32373
+ * the reverse:
32374
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
32375
+ * / `getOptions`), and
32376
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
32377
+ * robot camera shows up in the existing PTZ control path without every
32378
+ * PTZ provider learning about robots. The mapping lives in the adapter,
32379
+ * not here (see the addon design note):
32380
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
32381
+ * ptz.stop() → navigation.stop()
32382
+ * ptz.goHome() → navigation.runAction('goHome')
32383
+ * ptz.getPresets() → navigation.listActions() (id→preset)
32384
+ * ptz.goToPreset(id) → navigation.runAction(id)
32385
+ *
32386
+ * ## Continuous drive
32387
+ *
32388
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
32389
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
32390
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
32391
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
32392
+ * coalesce them. The UI owns the cadence.
32393
+ *
32394
+ * ## The action dictionary
32395
+ *
32396
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
32397
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
32398
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
32399
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
32400
+ * vendor-specific list. `kind: 'action'` entries are triggered with
32401
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
32402
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
32403
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
32404
+ *
32405
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
32406
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
32407
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
32408
+ * every device handle. A future nodedreame publish adds a typed
32409
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
32410
+ * provider can then swap the raw calls for the typed methods with no change to
32411
+ * THIS contract.
32412
+ */
32413
+ /**
32414
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
32415
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
32416
+ * halts it.
32417
+ *
32418
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
32419
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
32420
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
32421
+ * vector by it (drivers without proportional drive ignore it).
32422
+ *
32423
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
32424
+ * axis alone; an all-undefined nudge is a no-op.
32425
+ */
32426
+ var NavigationMoveCommandSchema = object({
32427
+ pan: number().min(-1).max(1).optional(),
32428
+ tilt: number().min(-1).max(1).optional(),
32429
+ speed: number().min(0).max(1).optional()
32430
+ });
32431
+ /**
32432
+ * The enumerated discrete actions a navigation-capable robot can perform via
32433
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
32434
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
32435
+ * `playSound` (see the `sound` dictionary entries).
32436
+ */
32437
+ var NavigationActionIdSchema = _enum([
32438
+ "goHome",
32439
+ "locate",
32440
+ "spotClean",
32441
+ "findPet",
32442
+ "personFollow",
32443
+ "stop",
32444
+ "startClean",
32445
+ "pauseClean",
32446
+ "dockWash",
32447
+ "autoEmpty",
32448
+ "flashOn",
32449
+ "flashOff"
32450
+ ]);
32451
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
32452
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
32453
+ /**
32454
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
32455
+ * native panel and the PTZ mimic render as a button.
32456
+ *
32457
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
32458
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
32459
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
32460
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
32461
+ * - `label` — operator-facing English label.
32462
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
32463
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
32464
+ * PTZ render ONLY enabled entries. Data-driven: the provider
32465
+ * flips it from config, never by editing code.
32466
+ */
32467
+ var NavigationActionEntrySchema = object({
32468
+ id: string(),
32469
+ kind: NavigationEntryKindSchema,
32470
+ label: string(),
32471
+ icon: string(),
32472
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
32473
+ soundId: number().int().optional(),
32474
+ /** Per-device feature flag — render this entry only when true. */
32475
+ enabled: boolean()
32476
+ });
32477
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
32478
+ var NavigationPointSchema = object({
32479
+ x: number(),
32480
+ y: number()
32481
+ });
32482
+ /**
32483
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
32484
+ * The cap reports which are enabled so the UI / PTZ render only the controls
32485
+ * that are turned on for THIS device. Data-driven: the provider derives these
32486
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
32487
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
32488
+ * that are not dictionary entries.
32489
+ *
32490
+ * - `move` / `stop` — the momentary drive joystick.
32491
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
32492
+ * map-coordinate plumbing is wired.
32493
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
32494
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
32495
+ * - `light` — the on/off fill-light toggle (works anytime).
32496
+ * - `lightMode` — the auto/manual selector + manual level slider (a
32497
+ * camera-service control; needs an active stream).
32498
+ */
32499
+ var NavigationFeaturesSchema = object({
32500
+ move: boolean(),
32501
+ stop: boolean(),
32502
+ goToPoint: boolean(),
32503
+ runAction: boolean(),
32504
+ playSound: boolean(),
32505
+ light: boolean(),
32506
+ lightMode: boolean()
32507
+ });
32508
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
32509
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
32510
+ /**
32511
+ * Live navigation state so the UI can reflect what the robot is doing:
32512
+ * - `mode` — coarse activity (idle / cleaning / following / …).
32513
+ * - `following` — person/pet follow is currently armed.
32514
+ * - `flash` — the on-camera fill light is on.
32515
+ * - `lightMode` — auto vs manual fill-light mode.
32516
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
32517
+ * `lightMode === 'manual'`.
32518
+ */
32519
+ var NavigationStatusSchema = object({
32520
+ mode: _enum([
32521
+ "idle",
32522
+ "cleaning",
32523
+ "spot",
32524
+ "following",
32525
+ "goto",
32526
+ "returning",
32527
+ "paused",
32528
+ "unknown"
32529
+ ]),
32530
+ following: boolean(),
32531
+ flash: boolean(),
32532
+ lightMode: NavigationLightModeSchema,
32533
+ lightLevel: number().min(40).max(100),
32534
+ /** Ms epoch when the slice was last updated. */
32535
+ lastChangedAt: number()
32536
+ });
32537
+ /**
32538
+ * Runtime-state slice owned by this cap (kernel-managed: validated, mirrored,
32539
+ * observable). Adds `lastFetchedAt` on top of the status shape per the
32540
+ * convention.
32541
+ */
32542
+ var NavigationRuntimeStateSchema = NavigationStatusSchema.extend({ lastFetchedAt: number() });
32543
+ var navigationCapability = {
32544
+ name: "navigation",
32545
+ scope: "device",
32546
+ deviceNative: true,
32547
+ mode: "singleton",
32548
+ deviceTypes: [DeviceType.Camera],
32549
+ deviceConfig: { ui: {
32550
+ kind: "widget",
32551
+ widgetId: "host/navigation-panel",
32552
+ tab: "navigation",
32553
+ topTab: true,
32554
+ label: "Navigation",
32555
+ order: 0
32556
+ } },
32557
+ methods: {
32558
+ /**
32559
+ * Momentary drive nudge (the robot moves). `protected` — mirrors
32560
+ * `ptz.continuousMove` so the Viewer navigation panel (and the PTZ-mimic
32561
+ * path) works for any authenticated user, not admin-only. The UI sends
32562
+ * these at ~1 Hz while a control is held; the provider forwards each one to
32563
+ * a single drive write WITHOUT debouncing.
32564
+ */
32565
+ move: method(NavigationMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
32566
+ /** Halt all motion immediately (zero drive vector). */
32567
+ stop: method(object({ deviceId: number() }), _void(), { kind: "mutation" }),
32568
+ /** Send the robot to a point on its live map. */
32569
+ goToPoint: method(NavigationPointSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
32570
+ /**
32571
+ * Enumerate the discrete controls THIS device supports (data-driven UI +
32572
+ * PTZ mimic). Camera-probed subset of {@link NAVIGATION_ACTION_CATALOG}.
32573
+ */
32574
+ listActions: method(object({ deviceId: number() }), array(NavigationActionEntrySchema)),
32575
+ /**
32576
+ * Run one discrete action (a `kind:'action'` dictionary entry). Invalid /
32577
+ * unsupported action ids are rejected by the provider.
32578
+ */
32579
+ runAction: method(object({
32580
+ deviceId: number(),
32581
+ actionId: NavigationActionIdSchema
32582
+ }), _void(), { kind: "mutation" }),
32583
+ /** Play a sound by its wire id (the `soundId` of a `kind:'sound'` entry). */
32584
+ playSound: method(object({
32585
+ deviceId: number(),
32586
+ soundId: number().int()
32587
+ }), _void(), { kind: "mutation" }),
32588
+ /**
32589
+ * Turn the on-camera fill light on / off (the `OpenFullLight` control —
32590
+ * works anytime, no active stream required).
32591
+ */
32592
+ setLightOn: method(object({
32593
+ deviceId: number(),
32594
+ on: boolean()
32595
+ }), _void(), { kind: "mutation" }),
32596
+ /**
32597
+ * Set the fill-light mode (auto vs manual). `manual` optionally carries the
32598
+ * initial `level`. The auto/manual + level control is a CAMERA-service
32599
+ * action that generally needs an active camera stream/monitor session — the
32600
+ * UI shows the manual level slider ONLY when `mode === 'manual'`.
32601
+ */
32602
+ setLightMode: method(object({
32603
+ deviceId: number(),
32604
+ mode: NavigationLightModeSchema,
32605
+ level: number().min(40).max(100).optional()
32606
+ }), _void(), { kind: "mutation" }),
32607
+ /** Set the MANUAL fill-light level (40..100). Implies `manual` mode. */
32608
+ setLightLevel: method(object({
32609
+ deviceId: number(),
32610
+ level: number().min(40).max(100)
32611
+ }), _void(), { kind: "mutation" }),
32612
+ /**
32613
+ * Per-device FEATURE-FLAG report for the general primitives — drives which
32614
+ * controls the UI shows (the per-entry flags for the dictionary come back on
32615
+ * `listActions`).
32616
+ */
32617
+ getFeatures: method(object({ deviceId: number() }), NavigationFeaturesSchema)
32618
+ },
32619
+ events: { onStatusChanged: { data: object({
32620
+ deviceId: number(),
32621
+ status: NavigationStatusSchema
32622
+ }) } },
32623
+ status: {
32624
+ schema: NavigationStatusSchema,
32625
+ kind: "push"
32626
+ },
32627
+ /**
32628
+ * Runtime-state slice mirrored by the kernel. The navigation panel watches it
32629
+ * for live mode / follow / flash changes.
32630
+ */
32631
+ runtimeState: NavigationRuntimeStateSchema,
32632
+ /**
32633
+ * Runtime-state durability: **session** — like `vacuum-control`, a restored
32634
+ * `mode: cleaning` / `following: true` is a robot that is not actually doing
32635
+ * that. The live handle re-publishes on connect.
32636
+ *
32637
+ * See `RuntimeStateDurability`. Enforced by
32638
+ * `scripts/check-runtime-state-durability.ts`.
32639
+ */
32640
+ durability: "session"
32641
+ };
32642
+ /**
32643
+ * Network-link snapshot. Same shape for every provider (a Reolink wifi
32644
+ * camera, a Home Assistant device with a signal-strength sensor, a Tapo
32645
+ * plug): one slice under `device.runtimeState['network-link']`, one badge,
32646
+ * one Home Assistant projection.
32647
+ */
32648
+ var NetworkLinkStatusSchema = object({
32649
+ /** The link the device is on. `'unknown'` = not read yet, not "no link". */
32650
+ type: _enum([
32651
+ "wifi",
32652
+ "ethernet",
32653
+ "cellular",
32654
+ "unknown"
32655
+ ]),
32656
+ /**
32657
+ * Link quality, 0..100 inclusive, normalised by the provider from whatever
32658
+ * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
32659
+ * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
32660
+ * one whose reading has not landed must not be drawn at 0 %. Consumers
32661
+ * SKIP a null rather than coerce it.
32662
+ */
32663
+ signalPercent: number().min(0).max(100).nullable(),
32664
+ /** Raw received signal strength in dBm, when the firmware reports one. */
32665
+ rssiDbm: number().optional(),
32666
+ /** Network name of a wireless link, when the firmware reports it. */
32667
+ ssid: string().optional(),
32668
+ /** Ms epoch of the last observation. Lets consumers reason about freshness. */
32669
+ lastUpdated: number()
32670
+ });
32671
+ var networkLinkCapability = {
32672
+ name: "network-link",
32673
+ scope: "device",
32674
+ deviceNative: true,
32675
+ mode: "singleton",
32676
+ deviceTypes: [
32677
+ DeviceType.Camera,
32678
+ DeviceType.Sensor,
32679
+ DeviceType.Button,
32680
+ DeviceType.Switch,
32681
+ DeviceType.Light,
32682
+ DeviceType.Lock,
32683
+ DeviceType.Siren
32684
+ ],
32685
+ methods: {},
32686
+ events: {
32687
+ /**
32688
+ * Emitted whenever the cached status changes (a link switch, a signal
32689
+ * reading that moved). Mirrored on the parent chain by the
32690
+ * DeviceEventPropagator like `battery.onStatusChanged`.
32691
+ */
32692
+ onStatusChanged: { data: object({
32693
+ deviceId: number(),
32694
+ status: NetworkLinkStatusSchema
32695
+ }) } },
32696
+ status: {
32697
+ schema: NetworkLinkStatusSchema,
32698
+ kind: "push",
32699
+ empty: {
32700
+ type: "unknown",
32701
+ signalPercent: null,
32702
+ lastUpdated: 0
32703
+ }
32704
+ },
32705
+ /**
32706
+ * Runtime-state slice — every provider stores the same shape under
32707
+ * `device.runtimeState['network-link']`, read once by the badge and the
32708
+ * Home Assistant projector regardless of the driver.
32709
+ */
32710
+ runtimeState: NetworkLinkStatusSchema,
32711
+ /**
32712
+ * Runtime-state durability: **restored** — a link reading is slow to
32713
+ * change and a sleeping battery camera may not report for hours; the
32714
+ * restored slice is what the badge shows until the next read.
32715
+ *
32716
+ * See `RuntimeStateDurability`. Enforced by
32717
+ * `scripts/check-runtime-state-durability.ts`.
32718
+ */
32719
+ durability: "restored",
32720
+ /** Clock fields: written, but excluded from the compare that decides
32721
+ * whether persisting is worth a SQLite commit. */
32722
+ volatileStateFields: ["lastUpdated"]
32723
+ };
32724
+ /**
32278
32725
  * network-quality — system-scoped singleton capability tracking RTT,
32279
32726
  * jitter, and observed/peak bandwidth per device + per client.
32280
32727
  *
@@ -34088,287 +34535,6 @@ var ptzAutotrackCapability = {
34088
34535
  durability: "session"
34089
34536
  };
34090
34537
  /**
34091
- * `navigation` — a device-scoped capability that natively expresses the FULL
34092
- * navigation / action surface of a robot that DRIVES ITSELF and carries an
34093
- * on-board camera (the Dreame robot-vacuum camera is the first provider).
34094
- *
34095
- * Why a NEW cap rather than overloading `ptz`:
34096
- * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
34097
- * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
34098
- * The two are different physical models: PTZ is absolute-position + presets,
34099
- * navigation is momentary drive nudges + discrete robot ACTIONS
34100
- * (dock / spot-clean / follow-pet / go-to-point / …).
34101
- * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
34102
- * the reverse:
34103
- * 1. a native CamStack navigation panel (data-driven from `listActions`
34104
- * / `getOptions`), and
34105
- * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
34106
- * robot camera shows up in the existing PTZ control path without every
34107
- * PTZ provider learning about robots. The mapping lives in the adapter,
34108
- * not here (see the addon design note):
34109
- * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
34110
- * ptz.stop() → navigation.stop()
34111
- * ptz.goHome() → navigation.runAction('goHome')
34112
- * ptz.getPresets() → navigation.listActions() (id→preset)
34113
- * ptz.goToPreset(id) → navigation.runAction(id)
34114
- *
34115
- * ## Continuous drive
34116
- *
34117
- * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
34118
- * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
34119
- * one `stop()` on release — exactly like the robot app's remote-drive joystick.
34120
- * The provider forwards EACH `move` to one drive write; it must NOT debounce or
34121
- * coalesce them. The UI owns the cadence.
34122
- *
34123
- * ## The action dictionary
34124
- *
34125
- * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
34126
- * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
34127
- * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
34128
- * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
34129
- * vendor-specific list. `kind: 'action'` entries are triggered with
34130
- * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
34131
- * (the entry carries the `soundId` to pass). The general primitives — `move`,
34132
- * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
34133
- *
34134
- * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
34135
- * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
34136
- * that the currently-published `@apocaliss92/nodedreame` already exposes on
34137
- * every device handle. A future nodedreame publish adds a typed
34138
- * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
34139
- * provider can then swap the raw calls for the typed methods with no change to
34140
- * THIS contract.
34141
- */
34142
- /**
34143
- * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
34144
- * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
34145
- * halts it.
34146
- *
34147
- * - `pan` — turn: negative = left, positive = right, 0 = straight.
34148
- * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
34149
- * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
34150
- * vector by it (drivers without proportional drive ignore it).
34151
- *
34152
- * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
34153
- * axis alone; an all-undefined nudge is a no-op.
34154
- */
34155
- var NavigationMoveCommandSchema = object({
34156
- pan: number().min(-1).max(1).optional(),
34157
- tilt: number().min(-1).max(1).optional(),
34158
- speed: number().min(0).max(1).optional()
34159
- });
34160
- /**
34161
- * The enumerated discrete actions a navigation-capable robot can perform via
34162
- * `runAction`. This is the CLOSED vocabulary; a given device advertises the
34163
- * subset it supports through `listActions`. Sounds are NOT here — they go through
34164
- * `playSound` (see the `sound` dictionary entries).
34165
- */
34166
- var NavigationActionIdSchema = _enum([
34167
- "goHome",
34168
- "locate",
34169
- "spotClean",
34170
- "findPet",
34171
- "personFollow",
34172
- "stop",
34173
- "startClean",
34174
- "pauseClean",
34175
- "dockWash",
34176
- "autoEmpty",
34177
- "flashOn",
34178
- "flashOff"
34179
- ]);
34180
- /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
34181
- var NavigationEntryKindSchema = _enum(["action", "sound"]);
34182
- /**
34183
- * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
34184
- * native panel and the PTZ mimic render as a button.
34185
- *
34186
- * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
34187
- * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
34188
- * (`sound:meow`) whose `soundId` is passed to `playSound`.
34189
- * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
34190
- * - `label` — operator-facing English label.
34191
- * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
34192
- * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
34193
- * PTZ render ONLY enabled entries. Data-driven: the provider
34194
- * flips it from config, never by editing code.
34195
- */
34196
- var NavigationActionEntrySchema = object({
34197
- id: string(),
34198
- kind: NavigationEntryKindSchema,
34199
- label: string(),
34200
- icon: string(),
34201
- /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
34202
- soundId: number().int().optional(),
34203
- /** Per-device feature flag — render this entry only when true. */
34204
- enabled: boolean()
34205
- });
34206
- /** Coordinates for `goToPoint` — a point on the robot's live map. */
34207
- var NavigationPointSchema = object({
34208
- x: number(),
34209
- y: number()
34210
- });
34211
- /**
34212
- * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
34213
- * The cap reports which are enabled so the UI / PTZ render only the controls
34214
- * that are turned on for THIS device. Data-driven: the provider derives these
34215
- * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
34216
- * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
34217
- * that are not dictionary entries.
34218
- *
34219
- * - `move` / `stop` — the momentary drive joystick.
34220
- * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
34221
- * map-coordinate plumbing is wired.
34222
- * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
34223
- * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
34224
- * - `light` — the on/off fill-light toggle (works anytime).
34225
- * - `lightMode` — the auto/manual selector + manual level slider (a
34226
- * camera-service control; needs an active stream).
34227
- */
34228
- var NavigationFeaturesSchema = object({
34229
- move: boolean(),
34230
- stop: boolean(),
34231
- goToPoint: boolean(),
34232
- runAction: boolean(),
34233
- playSound: boolean(),
34234
- light: boolean(),
34235
- lightMode: boolean()
34236
- });
34237
- /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
34238
- var NavigationLightModeSchema = _enum(["auto", "manual"]);
34239
- /**
34240
- * Live navigation state so the UI can reflect what the robot is doing:
34241
- * - `mode` — coarse activity (idle / cleaning / following / …).
34242
- * - `following` — person/pet follow is currently armed.
34243
- * - `flash` — the on-camera fill light is on.
34244
- * - `lightMode` — auto vs manual fill-light mode.
34245
- * - `lightLevel` — manual fill-light level (40..100); meaningful when
34246
- * `lightMode === 'manual'`.
34247
- */
34248
- var NavigationStatusSchema = object({
34249
- mode: _enum([
34250
- "idle",
34251
- "cleaning",
34252
- "spot",
34253
- "following",
34254
- "goto",
34255
- "returning",
34256
- "paused",
34257
- "unknown"
34258
- ]),
34259
- following: boolean(),
34260
- flash: boolean(),
34261
- lightMode: NavigationLightModeSchema,
34262
- lightLevel: number().min(40).max(100),
34263
- /** Ms epoch when the slice was last updated. */
34264
- lastChangedAt: number()
34265
- });
34266
- /**
34267
- * Runtime-state slice owned by this cap (kernel-managed: validated, mirrored,
34268
- * observable). Adds `lastFetchedAt` on top of the status shape per the
34269
- * convention.
34270
- */
34271
- var NavigationRuntimeStateSchema = NavigationStatusSchema.extend({ lastFetchedAt: number() });
34272
- var navigationCapability = {
34273
- name: "navigation",
34274
- scope: "device",
34275
- deviceNative: true,
34276
- mode: "singleton",
34277
- deviceTypes: [DeviceType.Camera],
34278
- deviceConfig: { ui: {
34279
- kind: "widget",
34280
- widgetId: "host/navigation-panel",
34281
- tab: "navigation",
34282
- topTab: true,
34283
- label: "Navigation",
34284
- order: 0
34285
- } },
34286
- methods: {
34287
- /**
34288
- * Momentary drive nudge (the robot moves). `protected` — mirrors
34289
- * `ptz.continuousMove` so the Viewer navigation panel (and the PTZ-mimic
34290
- * path) works for any authenticated user, not admin-only. The UI sends
34291
- * these at ~1 Hz while a control is held; the provider forwards each one to
34292
- * a single drive write WITHOUT debouncing.
34293
- */
34294
- move: method(NavigationMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
34295
- /** Halt all motion immediately (zero drive vector). */
34296
- stop: method(object({ deviceId: number() }), _void(), { kind: "mutation" }),
34297
- /** Send the robot to a point on its live map. */
34298
- goToPoint: method(NavigationPointSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
34299
- /**
34300
- * Enumerate the discrete controls THIS device supports (data-driven UI +
34301
- * PTZ mimic). Camera-probed subset of {@link NAVIGATION_ACTION_CATALOG}.
34302
- */
34303
- listActions: method(object({ deviceId: number() }), array(NavigationActionEntrySchema)),
34304
- /**
34305
- * Run one discrete action (a `kind:'action'` dictionary entry). Invalid /
34306
- * unsupported action ids are rejected by the provider.
34307
- */
34308
- runAction: method(object({
34309
- deviceId: number(),
34310
- actionId: NavigationActionIdSchema
34311
- }), _void(), { kind: "mutation" }),
34312
- /** Play a sound by its wire id (the `soundId` of a `kind:'sound'` entry). */
34313
- playSound: method(object({
34314
- deviceId: number(),
34315
- soundId: number().int()
34316
- }), _void(), { kind: "mutation" }),
34317
- /**
34318
- * Turn the on-camera fill light on / off (the `OpenFullLight` control —
34319
- * works anytime, no active stream required).
34320
- */
34321
- setLightOn: method(object({
34322
- deviceId: number(),
34323
- on: boolean()
34324
- }), _void(), { kind: "mutation" }),
34325
- /**
34326
- * Set the fill-light mode (auto vs manual). `manual` optionally carries the
34327
- * initial `level`. The auto/manual + level control is a CAMERA-service
34328
- * action that generally needs an active camera stream/monitor session — the
34329
- * UI shows the manual level slider ONLY when `mode === 'manual'`.
34330
- */
34331
- setLightMode: method(object({
34332
- deviceId: number(),
34333
- mode: NavigationLightModeSchema,
34334
- level: number().min(40).max(100).optional()
34335
- }), _void(), { kind: "mutation" }),
34336
- /** Set the MANUAL fill-light level (40..100). Implies `manual` mode. */
34337
- setLightLevel: method(object({
34338
- deviceId: number(),
34339
- level: number().min(40).max(100)
34340
- }), _void(), { kind: "mutation" }),
34341
- /**
34342
- * Per-device FEATURE-FLAG report for the general primitives — drives which
34343
- * controls the UI shows (the per-entry flags for the dictionary come back on
34344
- * `listActions`).
34345
- */
34346
- getFeatures: method(object({ deviceId: number() }), NavigationFeaturesSchema)
34347
- },
34348
- events: { onStatusChanged: { data: object({
34349
- deviceId: number(),
34350
- status: NavigationStatusSchema
34351
- }) } },
34352
- status: {
34353
- schema: NavigationStatusSchema,
34354
- kind: "push"
34355
- },
34356
- /**
34357
- * Runtime-state slice mirrored by the kernel. The navigation panel watches it
34358
- * for live mode / follow / flash changes.
34359
- */
34360
- runtimeState: NavigationRuntimeStateSchema,
34361
- /**
34362
- * Runtime-state durability: **session** — like `vacuum-control`, a restored
34363
- * `mode: cleaning` / `following: true` is a robot that is not actually doing
34364
- * that. The live handle re-publishes on connect.
34365
- *
34366
- * See `RuntimeStateDurability`. Enforced by
34367
- * `scripts/check-runtime-state-durability.ts`.
34368
- */
34369
- durability: "session"
34370
- };
34371
- /**
34372
34538
  * reboot — device-scoped capability for "soft" device reboots (firmware
34373
34539
  * reboot via vendor protocol; cameras, NVRs, doorbells). Surfaces a
34374
34540
  * single mutation so the UI can offer a confirm-and-reboot button for
@@ -38004,6 +38170,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
38004
38170
  storageCapability,
38005
38171
  storageEvictableCapability,
38006
38172
  storageMigrationCapability,
38173
+ storageOccupancyCapability,
38007
38174
  storageProviderCapability,
38008
38175
  streamBrokerCapability,
38009
38176
  streamCatalogCapability,
@@ -42976,6 +43143,12 @@ Object.freeze({
42976
43143
  addonId: null,
42977
43144
  access: "view"
42978
43145
  },
43146
+ "storage.listDrainProgress": {
43147
+ capName: "storage",
43148
+ capScope: "system",
43149
+ addonId: null,
43150
+ access: "view"
43151
+ },
42979
43152
  "storage.listLocationDeclarations": {
42980
43153
  capName: "storage",
42981
43154
  capScope: "system",
@@ -43120,6 +43293,12 @@ Object.freeze({
43120
43293
  addonId: null,
43121
43294
  access: "view"
43122
43295
  },
43296
+ "storageOccupancy.getOccupancy": {
43297
+ capName: "storage-occupancy",
43298
+ capScope: "system",
43299
+ addonId: null,
43300
+ access: "view"
43301
+ },
43123
43302
  "storageProvider.abortUpload": {
43124
43303
  capName: "storage-provider",
43125
43304
  capScope: "system",