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