@camstack/addon-osd-manager 0.1.76 → 0.1.77

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-CBDnIQTl.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-DSL_s_Qu.mjs} +3 -3
  8. package/dist/index.js +526 -364
  9. package/dist/index.mjs +526 -364
  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-CtVrWNnx.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
@@ -25881,6 +25959,12 @@ var storageCapability = {
25881
25959
  kind: "mutation",
25882
25960
  auth: "admin"
25883
25961
  }),
25962
+ /**
25963
+ * How far each draining location has got (D386). A pure READ of what the
25964
+ * last pressure sweep computed — it starts no work, and a location that is
25965
+ * not draining simply does not appear.
25966
+ */
25967
+ listDrainProgress: method(_void(), array(StorageDrainProgressSchema).readonly()),
25884
25968
  testLocation: method(object({ id: string() }), object({
25885
25969
  ok: boolean(),
25886
25970
  error: string().optional()
@@ -26028,6 +26112,71 @@ var storageMigrationCapability = {
26028
26112
  history: method(object({}), array(StorageMigrationJobSchema).readonly(), { auth: "admin" })
26029
26113
  }
26030
26114
  };
26115
+ /**
26116
+ * `storage-occupancy` — how many bytes an addon actually HOLDS on a storage
26117
+ * location (D388).
26118
+ *
26119
+ * ## Why this is not `storage-evictable`
26120
+ *
26121
+ * `storage-evictable.getEvictableUsage` looks like the same question and is
26122
+ * not, in two ways that both matter and both bite hardest on the locations an
26123
+ * operator most wants a figure for:
26124
+ *
26125
+ * - it reports the whole eviction DOMAIN, not the location. `recordings:default`
26126
+ * and `recordingsLow:default` deliberately share one root and evict as one
26127
+ * oldest-first pool, so both answer with the SAME combined total. As an
26128
+ * occupancy figure that double-counts the disk.
26129
+ * - it reports ZERO for a location whose eviction policy is `never` (D385) —
26130
+ * a `readonly` or `disabled` disk. Those are exactly the disks an operator
26131
+ * is retiring and staring at.
26132
+ *
26133
+ * So this is its own contract with its own quantity, and the quantity is
26134
+ * OCCUPIED: every byte the addon holds on that location, whether or not it
26135
+ * would ever be willing to delete it. A provider that can only answer
26136
+ * "evictable" must not register here — a number that silently means different
26137
+ * things per class is worse than no number.
26138
+ *
26139
+ * ## Absence is an answer
26140
+ *
26141
+ * A location nobody reports for is UNKNOWN, never zero (D315). The orchestrator
26142
+ * stamps `StorageLocation.owned` only for locations it has a report for, and
26143
+ * the field is an OBJECT rather than a bare number so that a `?? 0` on the
26144
+ * consuming side has to be written out loud instead of appearing by accident.
26145
+ *
26146
+ * `internal: true` — consumed by the orchestrator's `listLocations` stamp, never
26147
+ * a public client surface. Clients read the stamped `StorageLocation.owned`.
26148
+ */
26149
+ /** One provider's occupancy answer for one location. */
26150
+ var StorageOccupancyReportSchema = object({
26151
+ locationId: string(),
26152
+ /** Bytes this provider holds on THAT location — not its eviction domain, and
26153
+ * not net of what it is willing to delete. */
26154
+ ownedBytes: number().int().nonnegative(),
26155
+ /** When the provider last actually measured this. The orchestrator carries it
26156
+ * through so a UI can say how old the figure is instead of implying "now". */
26157
+ measuredAtMs: number().int().nonnegative()
26158
+ });
26159
+ var storageOccupancyCapability = {
26160
+ name: "storage-occupancy",
26161
+ scope: "system",
26162
+ mode: "collection",
26163
+ internal: true,
26164
+ methods: {
26165
+ /**
26166
+ * Occupancy for the given locations, in ONE round trip.
26167
+ *
26168
+ * A provider answers only for the locations it actually holds bytes on and
26169
+ * OMITS the rest — an omitted location is "I hold nothing measurable here",
26170
+ * which the orchestrator merges as a contribution of nothing rather than as
26171
+ * a claim that the location is empty. Only a location no provider reports
26172
+ * at all stays unknown.
26173
+ *
26174
+ * This must be CHEAP and must never walk a filesystem: it is on the admin
26175
+ * UI's `listLocations` path. The owner keeps its own figure fresh (D224) and
26176
+ * answers from what it already has.
26177
+ */
26178
+ getOccupancy: method(object({ locationIds: array(string()).readonly() }), array(StorageOccupancyReportSchema).readonly(), { auth: "admin" }) }
26179
+ };
26031
26180
  var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
26032
26181
  providerId: string().min(1),
26033
26182
  displayName: string().min(1),
@@ -28383,88 +28532,6 @@ onStatusChanged: { data: object({
28383
28532
  volatileStateFields: ["lastUpdated"]
28384
28533
  };
28385
28534
  /**
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
28535
  * Generic boolean sensor — last-resort fallback when no domain-
28469
28536
  * specific binary cap fits (Home Assistant `binary_sensor` without a
28470
28537
  * known `device_class`, or a domain we haven't typed yet). Pure
@@ -32275,6 +32342,369 @@ var nativeObjectDetectionCapability = {
32275
32342
  volatileStateFields: ["lastFetchedAt"]
32276
32343
  };
32277
32344
  /**
32345
+ * `navigation` — a device-scoped capability that natively expresses the FULL
32346
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
32347
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
32348
+ *
32349
+ * Why a NEW cap rather than overloading `ptz`:
32350
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
32351
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
32352
+ * The two are different physical models: PTZ is absolute-position + presets,
32353
+ * navigation is momentary drive nudges + discrete robot ACTIONS
32354
+ * (dock / spot-clean / follow-pet / go-to-point / …).
32355
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
32356
+ * the reverse:
32357
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
32358
+ * / `getOptions`), and
32359
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
32360
+ * robot camera shows up in the existing PTZ control path without every
32361
+ * PTZ provider learning about robots. The mapping lives in the adapter,
32362
+ * not here (see the addon design note):
32363
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
32364
+ * ptz.stop() → navigation.stop()
32365
+ * ptz.goHome() → navigation.runAction('goHome')
32366
+ * ptz.getPresets() → navigation.listActions() (id→preset)
32367
+ * ptz.goToPreset(id) → navigation.runAction(id)
32368
+ *
32369
+ * ## Continuous drive
32370
+ *
32371
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
32372
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
32373
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
32374
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
32375
+ * coalesce them. The UI owns the cadence.
32376
+ *
32377
+ * ## The action dictionary
32378
+ *
32379
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
32380
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
32381
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
32382
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
32383
+ * vendor-specific list. `kind: 'action'` entries are triggered with
32384
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
32385
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
32386
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
32387
+ *
32388
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
32389
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
32390
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
32391
+ * every device handle. A future nodedreame publish adds a typed
32392
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
32393
+ * provider can then swap the raw calls for the typed methods with no change to
32394
+ * THIS contract.
32395
+ */
32396
+ /**
32397
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
32398
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
32399
+ * halts it.
32400
+ *
32401
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
32402
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
32403
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
32404
+ * vector by it (drivers without proportional drive ignore it).
32405
+ *
32406
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
32407
+ * axis alone; an all-undefined nudge is a no-op.
32408
+ */
32409
+ var NavigationMoveCommandSchema = object({
32410
+ pan: number().min(-1).max(1).optional(),
32411
+ tilt: number().min(-1).max(1).optional(),
32412
+ speed: number().min(0).max(1).optional()
32413
+ });
32414
+ /**
32415
+ * The enumerated discrete actions a navigation-capable robot can perform via
32416
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
32417
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
32418
+ * `playSound` (see the `sound` dictionary entries).
32419
+ */
32420
+ var NavigationActionIdSchema = _enum([
32421
+ "goHome",
32422
+ "locate",
32423
+ "spotClean",
32424
+ "findPet",
32425
+ "personFollow",
32426
+ "stop",
32427
+ "startClean",
32428
+ "pauseClean",
32429
+ "dockWash",
32430
+ "autoEmpty",
32431
+ "flashOn",
32432
+ "flashOff"
32433
+ ]);
32434
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
32435
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
32436
+ /**
32437
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
32438
+ * native panel and the PTZ mimic render as a button.
32439
+ *
32440
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
32441
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
32442
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
32443
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
32444
+ * - `label` — operator-facing English label.
32445
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
32446
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
32447
+ * PTZ render ONLY enabled entries. Data-driven: the provider
32448
+ * flips it from config, never by editing code.
32449
+ */
32450
+ var NavigationActionEntrySchema = object({
32451
+ id: string(),
32452
+ kind: NavigationEntryKindSchema,
32453
+ label: string(),
32454
+ icon: string(),
32455
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
32456
+ soundId: number().int().optional(),
32457
+ /** Per-device feature flag — render this entry only when true. */
32458
+ enabled: boolean()
32459
+ });
32460
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
32461
+ var NavigationPointSchema = object({
32462
+ x: number(),
32463
+ y: number()
32464
+ });
32465
+ /**
32466
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
32467
+ * The cap reports which are enabled so the UI / PTZ render only the controls
32468
+ * that are turned on for THIS device. Data-driven: the provider derives these
32469
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
32470
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
32471
+ * that are not dictionary entries.
32472
+ *
32473
+ * - `move` / `stop` — the momentary drive joystick.
32474
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
32475
+ * map-coordinate plumbing is wired.
32476
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
32477
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
32478
+ * - `light` — the on/off fill-light toggle (works anytime).
32479
+ * - `lightMode` — the auto/manual selector + manual level slider (a
32480
+ * camera-service control; needs an active stream).
32481
+ */
32482
+ var NavigationFeaturesSchema = object({
32483
+ move: boolean(),
32484
+ stop: boolean(),
32485
+ goToPoint: boolean(),
32486
+ runAction: boolean(),
32487
+ playSound: boolean(),
32488
+ light: boolean(),
32489
+ lightMode: boolean()
32490
+ });
32491
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
32492
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
32493
+ /**
32494
+ * Live navigation state so the UI can reflect what the robot is doing:
32495
+ * - `mode` — coarse activity (idle / cleaning / following / …).
32496
+ * - `following` — person/pet follow is currently armed.
32497
+ * - `flash` — the on-camera fill light is on.
32498
+ * - `lightMode` — auto vs manual fill-light mode.
32499
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
32500
+ * `lightMode === 'manual'`.
32501
+ */
32502
+ var NavigationStatusSchema = object({
32503
+ mode: _enum([
32504
+ "idle",
32505
+ "cleaning",
32506
+ "spot",
32507
+ "following",
32508
+ "goto",
32509
+ "returning",
32510
+ "paused",
32511
+ "unknown"
32512
+ ]),
32513
+ following: boolean(),
32514
+ flash: boolean(),
32515
+ lightMode: NavigationLightModeSchema,
32516
+ lightLevel: number().min(40).max(100),
32517
+ /** Ms epoch when the slice was last updated. */
32518
+ lastChangedAt: number()
32519
+ });
32520
+ /**
32521
+ * Runtime-state slice owned by this cap (kernel-managed: validated, mirrored,
32522
+ * observable). Adds `lastFetchedAt` on top of the status shape per the
32523
+ * convention.
32524
+ */
32525
+ var NavigationRuntimeStateSchema = NavigationStatusSchema.extend({ lastFetchedAt: number() });
32526
+ var navigationCapability = {
32527
+ name: "navigation",
32528
+ scope: "device",
32529
+ deviceNative: true,
32530
+ mode: "singleton",
32531
+ deviceTypes: [DeviceType.Camera],
32532
+ deviceConfig: { ui: {
32533
+ kind: "widget",
32534
+ widgetId: "host/navigation-panel",
32535
+ tab: "navigation",
32536
+ topTab: true,
32537
+ label: "Navigation",
32538
+ order: 0
32539
+ } },
32540
+ methods: {
32541
+ /**
32542
+ * Momentary drive nudge (the robot moves). `protected` — mirrors
32543
+ * `ptz.continuousMove` so the Viewer navigation panel (and the PTZ-mimic
32544
+ * path) works for any authenticated user, not admin-only. The UI sends
32545
+ * these at ~1 Hz while a control is held; the provider forwards each one to
32546
+ * a single drive write WITHOUT debouncing.
32547
+ */
32548
+ move: method(NavigationMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
32549
+ /** Halt all motion immediately (zero drive vector). */
32550
+ stop: method(object({ deviceId: number() }), _void(), { kind: "mutation" }),
32551
+ /** Send the robot to a point on its live map. */
32552
+ goToPoint: method(NavigationPointSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
32553
+ /**
32554
+ * Enumerate the discrete controls THIS device supports (data-driven UI +
32555
+ * PTZ mimic). Camera-probed subset of {@link NAVIGATION_ACTION_CATALOG}.
32556
+ */
32557
+ listActions: method(object({ deviceId: number() }), array(NavigationActionEntrySchema)),
32558
+ /**
32559
+ * Run one discrete action (a `kind:'action'` dictionary entry). Invalid /
32560
+ * unsupported action ids are rejected by the provider.
32561
+ */
32562
+ runAction: method(object({
32563
+ deviceId: number(),
32564
+ actionId: NavigationActionIdSchema
32565
+ }), _void(), { kind: "mutation" }),
32566
+ /** Play a sound by its wire id (the `soundId` of a `kind:'sound'` entry). */
32567
+ playSound: method(object({
32568
+ deviceId: number(),
32569
+ soundId: number().int()
32570
+ }), _void(), { kind: "mutation" }),
32571
+ /**
32572
+ * Turn the on-camera fill light on / off (the `OpenFullLight` control —
32573
+ * works anytime, no active stream required).
32574
+ */
32575
+ setLightOn: method(object({
32576
+ deviceId: number(),
32577
+ on: boolean()
32578
+ }), _void(), { kind: "mutation" }),
32579
+ /**
32580
+ * Set the fill-light mode (auto vs manual). `manual` optionally carries the
32581
+ * initial `level`. The auto/manual + level control is a CAMERA-service
32582
+ * action that generally needs an active camera stream/monitor session — the
32583
+ * UI shows the manual level slider ONLY when `mode === 'manual'`.
32584
+ */
32585
+ setLightMode: method(object({
32586
+ deviceId: number(),
32587
+ mode: NavigationLightModeSchema,
32588
+ level: number().min(40).max(100).optional()
32589
+ }), _void(), { kind: "mutation" }),
32590
+ /** Set the MANUAL fill-light level (40..100). Implies `manual` mode. */
32591
+ setLightLevel: method(object({
32592
+ deviceId: number(),
32593
+ level: number().min(40).max(100)
32594
+ }), _void(), { kind: "mutation" }),
32595
+ /**
32596
+ * Per-device FEATURE-FLAG report for the general primitives — drives which
32597
+ * controls the UI shows (the per-entry flags for the dictionary come back on
32598
+ * `listActions`).
32599
+ */
32600
+ getFeatures: method(object({ deviceId: number() }), NavigationFeaturesSchema)
32601
+ },
32602
+ events: { onStatusChanged: { data: object({
32603
+ deviceId: number(),
32604
+ status: NavigationStatusSchema
32605
+ }) } },
32606
+ status: {
32607
+ schema: NavigationStatusSchema,
32608
+ kind: "push"
32609
+ },
32610
+ /**
32611
+ * Runtime-state slice mirrored by the kernel. The navigation panel watches it
32612
+ * for live mode / follow / flash changes.
32613
+ */
32614
+ runtimeState: NavigationRuntimeStateSchema,
32615
+ /**
32616
+ * Runtime-state durability: **session** — like `vacuum-control`, a restored
32617
+ * `mode: cleaning` / `following: true` is a robot that is not actually doing
32618
+ * that. The live handle re-publishes on connect.
32619
+ *
32620
+ * See `RuntimeStateDurability`. Enforced by
32621
+ * `scripts/check-runtime-state-durability.ts`.
32622
+ */
32623
+ durability: "session"
32624
+ };
32625
+ /**
32626
+ * Network-link snapshot. Same shape for every provider (a Reolink wifi
32627
+ * camera, a Home Assistant device with a signal-strength sensor, a Tapo
32628
+ * plug): one slice under `device.runtimeState['network-link']`, one badge,
32629
+ * one Home Assistant projection.
32630
+ */
32631
+ var NetworkLinkStatusSchema = object({
32632
+ /** The link the device is on. `'unknown'` = not read yet, not "no link". */
32633
+ type: _enum([
32634
+ "wifi",
32635
+ "ethernet",
32636
+ "cellular",
32637
+ "unknown"
32638
+ ]),
32639
+ /**
32640
+ * Link quality, 0..100 inclusive, normalised by the provider from whatever
32641
+ * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
32642
+ * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
32643
+ * one whose reading has not landed must not be drawn at 0 %. Consumers
32644
+ * SKIP a null rather than coerce it.
32645
+ */
32646
+ signalPercent: number().min(0).max(100).nullable(),
32647
+ /** Raw received signal strength in dBm, when the firmware reports one. */
32648
+ rssiDbm: number().optional(),
32649
+ /** Network name of a wireless link, when the firmware reports it. */
32650
+ ssid: string().optional(),
32651
+ /** Ms epoch of the last observation. Lets consumers reason about freshness. */
32652
+ lastUpdated: number()
32653
+ });
32654
+ var networkLinkCapability = {
32655
+ name: "network-link",
32656
+ scope: "device",
32657
+ deviceNative: true,
32658
+ mode: "singleton",
32659
+ deviceTypes: [
32660
+ DeviceType.Camera,
32661
+ DeviceType.Sensor,
32662
+ DeviceType.Button,
32663
+ DeviceType.Switch,
32664
+ DeviceType.Light,
32665
+ DeviceType.Lock,
32666
+ DeviceType.Siren
32667
+ ],
32668
+ methods: {},
32669
+ events: {
32670
+ /**
32671
+ * Emitted whenever the cached status changes (a link switch, a signal
32672
+ * reading that moved). Mirrored on the parent chain by the
32673
+ * DeviceEventPropagator like `battery.onStatusChanged`.
32674
+ */
32675
+ onStatusChanged: { data: object({
32676
+ deviceId: number(),
32677
+ status: NetworkLinkStatusSchema
32678
+ }) } },
32679
+ status: {
32680
+ schema: NetworkLinkStatusSchema,
32681
+ kind: "push",
32682
+ empty: {
32683
+ type: "unknown",
32684
+ signalPercent: null,
32685
+ lastUpdated: 0
32686
+ }
32687
+ },
32688
+ /**
32689
+ * Runtime-state slice — every provider stores the same shape under
32690
+ * `device.runtimeState['network-link']`, read once by the badge and the
32691
+ * Home Assistant projector regardless of the driver.
32692
+ */
32693
+ runtimeState: NetworkLinkStatusSchema,
32694
+ /**
32695
+ * Runtime-state durability: **restored** — a link reading is slow to
32696
+ * change and a sleeping battery camera may not report for hours; the
32697
+ * restored slice is what the badge shows until the next read.
32698
+ *
32699
+ * See `RuntimeStateDurability`. Enforced by
32700
+ * `scripts/check-runtime-state-durability.ts`.
32701
+ */
32702
+ durability: "restored",
32703
+ /** Clock fields: written, but excluded from the compare that decides
32704
+ * whether persisting is worth a SQLite commit. */
32705
+ volatileStateFields: ["lastUpdated"]
32706
+ };
32707
+ /**
32278
32708
  * network-quality — system-scoped singleton capability tracking RTT,
32279
32709
  * jitter, and observed/peak bandwidth per device + per client.
32280
32710
  *
@@ -34088,287 +34518,6 @@ var ptzAutotrackCapability = {
34088
34518
  durability: "session"
34089
34519
  };
34090
34520
  /**
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
34521
  * reboot — device-scoped capability for "soft" device reboots (firmware
34373
34522
  * reboot via vendor protocol; cameras, NVRs, doorbells). Surfaces a
34374
34523
  * single mutation so the UI can offer a confirm-and-reboot button for
@@ -38004,6 +38153,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
38004
38153
  storageCapability,
38005
38154
  storageEvictableCapability,
38006
38155
  storageMigrationCapability,
38156
+ storageOccupancyCapability,
38007
38157
  storageProviderCapability,
38008
38158
  streamBrokerCapability,
38009
38159
  streamCatalogCapability,
@@ -42976,6 +43126,12 @@ Object.freeze({
42976
43126
  addonId: null,
42977
43127
  access: "view"
42978
43128
  },
43129
+ "storage.listDrainProgress": {
43130
+ capName: "storage",
43131
+ capScope: "system",
43132
+ addonId: null,
43133
+ access: "view"
43134
+ },
42979
43135
  "storage.listLocationDeclarations": {
42980
43136
  capName: "storage",
42981
43137
  capScope: "system",
@@ -43120,6 +43276,12 @@ Object.freeze({
43120
43276
  addonId: null,
43121
43277
  access: "view"
43122
43278
  },
43279
+ "storageOccupancy.getOccupancy": {
43280
+ capName: "storage-occupancy",
43281
+ capScope: "system",
43282
+ addonId: null,
43283
+ access: "view"
43284
+ },
43123
43285
  "storageProvider.abortUpload": {
43124
43286
  capName: "storage-provider",
43125
43287
  capScope: "system",