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