@camstack/addon-provider-rtsp 1.2.79 → 1.2.81

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 (3) hide show
  1. package/dist/addon.js +519 -367
  2. package/dist/addon.mjs +519 -367
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import net from "node:net";
2
- //#region ../types/dist/event-category-zAv7pMUz.mjs
2
+ //#region ../types/dist/event-category-CnLqLOKs.mjs
3
3
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4
4
  EventCategory["SystemBoot"] = "system.boot";
5
5
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -194,6 +194,19 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
194
194
  EventCategory["ProcessCrashed"] = "process.crashed";
195
195
  EventCategory["ProcessRestartScheduled"] = "process.restart_scheduled";
196
196
  EventCategory["ProcessRestarted"] = "process.restarted";
197
+ /**
198
+ * The SET of storage locations changed — one was created, edited, enabled,
199
+ * disabled or deleted through `storage.upsertLocation` / `deleteLocation`.
200
+ *
201
+ * Telemetry, not a transaction (D8/D11): every consumer that re-resolves on
202
+ * it must also converge on its own periodic path, because a dropped event
203
+ * must not leave a node writing to yesterday's disk set forever. It exists
204
+ * because there was NO signal at all — an operator who added a second
205
+ * recordings disk in the admin UI got nothing, and the recorder kept its
206
+ * resolved locations until something else happened to re-resolve them
207
+ * (D387). Payload `StorageLocationsChangedPayload`.
208
+ */
209
+ EventCategory["StorageLocationsChanged"] = "storage.locations-changed";
197
210
  EventCategory["RecordingStarted"] = "recording.started";
198
211
  EventCategory["RecordingStopped"] = "recording.stopped";
199
212
  EventCategory["RecordingError"] = "recording.error";
@@ -8568,6 +8581,21 @@ var StorageCleanupJobSchema = object({
8568
8581
  });
8569
8582
  var StorageCleanupStatusInputSchema = object({ jobId: string().optional() });
8570
8583
  /**
8584
+ * The one typed state of a storage location. Authoritative Zod schema — the TS
8585
+ * alias below is `z.infer<>` of it, never a second spelling.
8586
+ */
8587
+ var StorageLocationModeSchema = _enum([
8588
+ "active",
8589
+ "readonly",
8590
+ "drain",
8591
+ "disabled"
8592
+ ]);
8593
+ _enum([
8594
+ "normal",
8595
+ "never",
8596
+ "drain"
8597
+ ]);
8598
+ /**
8571
8599
  * `StorageLocationType` — an addon-declared id that identifies the *kind* of
8572
8600
  * storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
8573
8601
  * so the persisted record schema and the consumer-facing cap can both consume it
@@ -8633,6 +8661,21 @@ var StorageLocationSchema = object({
8633
8661
  * stops existing rather than being re-derived on every read.
8634
8662
  */
8635
8663
  enabled: boolean().optional(),
8664
+ /**
8665
+ * THE state of this location (D385), and the only authority on what may be
8666
+ * written, read or evicted here. Interpreted in exactly one place —
8667
+ * `storage-location-mode.ts` — which also folds the legacy
8668
+ * `enabled` / `config.readOnly` pair into a mode so an old row is never
8669
+ * ambiguous.
8670
+ *
8671
+ * OPTIONAL only for the wire and for rows written before D385: absence is
8672
+ * resolved by `resolveLocationMode`, and the orchestrator stamps every
8673
+ * unstamped row ONCE at hydrate so absence stops existing rather than being
8674
+ * re-derived on every read. `enabled` survives one release as a DERIVED
8675
+ * mirror (`mode === 'active'`); `withLocationMode` is the only writer of
8676
+ * either, so the two cannot disagree.
8677
+ */
8678
+ mode: StorageLocationModeSchema.optional(),
8636
8679
  /** COMPUTED at read time by the orchestrator (statfs of the backing volume
8637
8680
  * for node-local locations it can reach) — never persisted, absent when the
8638
8681
  * volume is remote/unreachable. The single capacity truth every UI reads. */
@@ -8640,11 +8683,46 @@ var StorageLocationSchema = object({
8640
8683
  totalBytes: number(),
8641
8684
  availableBytes: number()
8642
8685
  }).nullable().optional(),
8686
+ /**
8687
+ * How much of that volume CamStack ITSELF holds on this location (D388) —
8688
+ * COMPUTED at read time from the `storage-occupancy` providers' own figures,
8689
+ * never persisted, never a filesystem walk.
8690
+ *
8691
+ * **ABSENT MEANS UNKNOWN, never zero.** No provider has reported for this
8692
+ * location yet — nobody stores here, the owning addon is down, or the first
8693
+ * refresh has not completed. A UI must omit the segment rather than draw it
8694
+ * at zero, which would claim we occupy nothing (D315). It is an OBJECT and
8695
+ * not a bare number precisely so that a `?? 0` on the consuming side has to
8696
+ * be spelled out loud instead of appearing by accident.
8697
+ *
8698
+ * `measuredAtMs` is the OLDEST contributing measurement, so it is honest
8699
+ * about the whole figure rather than about its freshest part.
8700
+ */
8701
+ owned: object({
8702
+ bytes: number().int().nonnegative(),
8703
+ measuredAtMs: number().int().nonnegative()
8704
+ }).optional(),
8643
8705
  createdAt: number(),
8644
8706
  updatedAt: number()
8645
8707
  });
8646
8708
  object({ isDefault: boolean().optional() });
8647
8709
  /**
8710
+ * How far a `drain` has got (D386) — the read a UI renders, and nothing more.
8711
+ *
8712
+ * `estimatedEmptyAtMs` is derived from the growth the ratchet has actually
8713
+ * OBSERVED and is `null` when it has observed none. Never a fabricated date: a
8714
+ * drain with no observed growth has no honest ETA, and inventing one is how an
8715
+ * operator learns not to believe the screen.
8716
+ */
8717
+ var StorageDrainProgressSchema = object({
8718
+ locationId: string(),
8719
+ startedAtMs: number(),
8720
+ startBytes: number(),
8721
+ bytesRemaining: number(),
8722
+ drained: boolean(),
8723
+ estimatedEmptyAtMs: number().nullable()
8724
+ });
8725
+ /**
8648
8726
  * Reference accepted by consumer-facing `api.storage.*` calls.
8649
8727
  * Either:
8650
8728
  * - a `StorageLocationType` (e.g. `'backups'`) → the sole location of that type
@@ -20453,8 +20531,25 @@ var occupancyRecheckFramesField = {
20453
20531
  * (analyzer attaches detected `regions[]`; onboard does not — the
20454
20532
  * camera typically only reports a binary signal plus an optional
20455
20533
  * channel/AI class which lives in dedicated event channels).
20456
- */
20457
- var MotionSourceEnum = _enum(["onboard", "analyzer"]);
20534
+ *
20535
+ * - `onboard` — the camera's firmware said something moved.
20536
+ * - `analyzer` — this runner's frame-diff said so, and attaches `regions[]`.
20537
+ * - `device-activity` — the DEVICE said it is doing its job: the
20538
+ * `recording-signal` LEVEL the same device raises for the recorder
20539
+ * ([D380](../../../../docs/decisions/adr-0380-a-device-decided-recording-is-a-mode-with-no-schedule-seeded-once.md)),
20540
+ * republished as a motion source. It attaches **nothing** — no regions, no
20541
+ * class: the only fact it carries is that the device is active, and a robot
20542
+ * vacuum that is itself the moving object has no region worth sending. It is
20543
+ * a LEVEL, so unlike `onboard` it has a real falling edge, and unlike
20544
+ * `analyzer` it must not open the frame-diff side-channel — the runner's
20545
+ * `handleOnboardMotionAnalyzer` gate is `source === 'onboard'` and stays that
20546
+ * way ([D392](../../../../docs/decisions/adr-0392-a-device-that-says-it-is-working-is-a-motion-source-of-its-own.md)).
20547
+ */
20548
+ var MotionSourceEnum = _enum([
20549
+ "onboard",
20550
+ "analyzer",
20551
+ "device-activity"
20552
+ ]);
20458
20553
  /**
20459
20554
  * List of motion sources active on a camera. Empty array is valid:
20460
20555
  * "no source" — happens for battery cams without firmware motion when
@@ -22077,7 +22172,7 @@ method(object({
22077
22172
  }), _void(), {
22078
22173
  kind: "mutation",
22079
22174
  auth: "admin"
22080
- }), method(object({ id: string() }), object({
22175
+ }), method(_void(), array(StorageDrainProgressSchema).readonly()), method(object({ id: string() }), object({
22081
22176
  ok: boolean(),
22082
22177
  error: string().optional()
22083
22178
  }), { auth: "admin" }), method(_void(), array(ProviderListEntrySchema).readonly()), method(object({
@@ -22147,6 +22242,51 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
22147
22242
  kind: "mutation",
22148
22243
  auth: "admin"
22149
22244
  }), method(object({}), array(StorageMigrationJobSchema).readonly(), { auth: "admin" });
22245
+ /**
22246
+ * `storage-occupancy` — how many bytes an addon actually HOLDS on a storage
22247
+ * location (D388).
22248
+ *
22249
+ * ## Why this is not `storage-evictable`
22250
+ *
22251
+ * `storage-evictable.getEvictableUsage` looks like the same question and is
22252
+ * not, in two ways that both matter and both bite hardest on the locations an
22253
+ * operator most wants a figure for:
22254
+ *
22255
+ * - it reports the whole eviction DOMAIN, not the location. `recordings:default`
22256
+ * and `recordingsLow:default` deliberately share one root and evict as one
22257
+ * oldest-first pool, so both answer with the SAME combined total. As an
22258
+ * occupancy figure that double-counts the disk.
22259
+ * - it reports ZERO for a location whose eviction policy is `never` (D385) —
22260
+ * a `readonly` or `disabled` disk. Those are exactly the disks an operator
22261
+ * is retiring and staring at.
22262
+ *
22263
+ * So this is its own contract with its own quantity, and the quantity is
22264
+ * OCCUPIED: every byte the addon holds on that location, whether or not it
22265
+ * would ever be willing to delete it. A provider that can only answer
22266
+ * "evictable" must not register here — a number that silently means different
22267
+ * things per class is worse than no number.
22268
+ *
22269
+ * ## Absence is an answer
22270
+ *
22271
+ * A location nobody reports for is UNKNOWN, never zero (D315). The orchestrator
22272
+ * stamps `StorageLocation.owned` only for locations it has a report for, and
22273
+ * the field is an OBJECT rather than a bare number so that a `?? 0` on the
22274
+ * consuming side has to be written out loud instead of appearing by accident.
22275
+ *
22276
+ * `internal: true` — consumed by the orchestrator's `listLocations` stamp, never
22277
+ * a public client surface. Clients read the stamped `StorageLocation.owned`.
22278
+ */
22279
+ /** One provider's occupancy answer for one location. */
22280
+ var StorageOccupancyReportSchema = object({
22281
+ locationId: string(),
22282
+ /** Bytes this provider holds on THAT location — not its eviction domain, and
22283
+ * not net of what it is willing to delete. */
22284
+ ownedBytes: number().int().nonnegative(),
22285
+ /** When the provider last actually measured this. The orchestrator carries it
22286
+ * through so a UI can say how old the figure is instead of implying "now". */
22287
+ measuredAtMs: number().int().nonnegative()
22288
+ });
22289
+ method(object({ locationIds: array(string()).readonly() }), array(StorageOccupancyReportSchema).readonly(), { auth: "admin" });
22150
22290
  var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
22151
22291
  providerId: string().min(1),
22152
22292
  displayName: string().min(1),
@@ -23982,88 +24122,6 @@ onStatusChanged: { data: object({
23982
24122
  volatileStateFields: ["lastUpdated"]
23983
24123
  };
23984
24124
  /**
23985
- * Network-link snapshot. Same shape for every provider (a Reolink wifi
23986
- * camera, a Home Assistant device with a signal-strength sensor, a Tapo
23987
- * plug): one slice under `device.runtimeState['network-link']`, one badge,
23988
- * one Home Assistant projection.
23989
- */
23990
- var NetworkLinkStatusSchema = object({
23991
- /** The link the device is on. `'unknown'` = not read yet, not "no link". */
23992
- type: _enum([
23993
- "wifi",
23994
- "ethernet",
23995
- "cellular",
23996
- "unknown"
23997
- ]),
23998
- /**
23999
- * Link quality, 0..100 inclusive, normalised by the provider from whatever
24000
- * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
24001
- * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
24002
- * one whose reading has not landed must not be drawn at 0 %. Consumers
24003
- * SKIP a null rather than coerce it.
24004
- */
24005
- signalPercent: number().min(0).max(100).nullable(),
24006
- /** Raw received signal strength in dBm, when the firmware reports one. */
24007
- rssiDbm: number().optional(),
24008
- /** Network name of a wireless link, when the firmware reports it. */
24009
- ssid: string().optional(),
24010
- /** Ms epoch of the last observation. Lets consumers reason about freshness. */
24011
- lastUpdated: number()
24012
- });
24013
- var networkLinkCapability = {
24014
- name: "network-link",
24015
- scope: "device",
24016
- deviceNative: true,
24017
- mode: "singleton",
24018
- deviceTypes: [
24019
- DeviceType.Camera,
24020
- DeviceType.Sensor,
24021
- DeviceType.Button,
24022
- DeviceType.Switch,
24023
- DeviceType.Light,
24024
- DeviceType.Lock,
24025
- DeviceType.Siren
24026
- ],
24027
- methods: {},
24028
- events: {
24029
- /**
24030
- * Emitted whenever the cached status changes (a link switch, a signal
24031
- * reading that moved). Mirrored on the parent chain by the
24032
- * DeviceEventPropagator like `battery.onStatusChanged`.
24033
- */
24034
- onStatusChanged: { data: object({
24035
- deviceId: number(),
24036
- status: NetworkLinkStatusSchema
24037
- }) } },
24038
- status: {
24039
- schema: NetworkLinkStatusSchema,
24040
- kind: "push",
24041
- empty: {
24042
- type: "unknown",
24043
- signalPercent: null,
24044
- lastUpdated: 0
24045
- }
24046
- },
24047
- /**
24048
- * Runtime-state slice — every provider stores the same shape under
24049
- * `device.runtimeState['network-link']`, read once by the badge and the
24050
- * Home Assistant projector regardless of the driver.
24051
- */
24052
- runtimeState: NetworkLinkStatusSchema,
24053
- /**
24054
- * Runtime-state durability: **restored** — a link reading is slow to
24055
- * change and a sleeping battery camera may not report for hours; the
24056
- * restored slice is what the badge shows until the next read.
24057
- *
24058
- * See `RuntimeStateDurability`. Enforced by
24059
- * `scripts/check-runtime-state-durability.ts`.
24060
- */
24061
- durability: "restored",
24062
- /** Clock fields: written, but excluded from the compare that decides
24063
- * whether persisting is worth a SQLite commit. */
24064
- volatileStateFields: ["lastUpdated"]
24065
- };
24066
- /**
24067
24125
  * Generic boolean sensor — last-resort fallback when no domain-
24068
24126
  * specific binary cap fits (Home Assistant `binary_sensor` without a
24069
24127
  * known `device_class`, or a domain we haven't typed yet). Pure
@@ -27601,6 +27659,369 @@ var nativeObjectDetectionCapability = {
27601
27659
  volatileStateFields: ["lastFetchedAt"]
27602
27660
  };
27603
27661
  /**
27662
+ * `navigation` — a device-scoped capability that natively expresses the FULL
27663
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
27664
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
27665
+ *
27666
+ * Why a NEW cap rather than overloading `ptz`:
27667
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
27668
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
27669
+ * The two are different physical models: PTZ is absolute-position + presets,
27670
+ * navigation is momentary drive nudges + discrete robot ACTIONS
27671
+ * (dock / spot-clean / follow-pet / go-to-point / …).
27672
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
27673
+ * the reverse:
27674
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
27675
+ * / `getOptions`), and
27676
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
27677
+ * robot camera shows up in the existing PTZ control path without every
27678
+ * PTZ provider learning about robots. The mapping lives in the adapter,
27679
+ * not here (see the addon design note):
27680
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
27681
+ * ptz.stop() → navigation.stop()
27682
+ * ptz.goHome() → navigation.runAction('goHome')
27683
+ * ptz.getPresets() → navigation.listActions() (id→preset)
27684
+ * ptz.goToPreset(id) → navigation.runAction(id)
27685
+ *
27686
+ * ## Continuous drive
27687
+ *
27688
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
27689
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
27690
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
27691
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
27692
+ * coalesce them. The UI owns the cadence.
27693
+ *
27694
+ * ## The action dictionary
27695
+ *
27696
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
27697
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
27698
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
27699
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
27700
+ * vendor-specific list. `kind: 'action'` entries are triggered with
27701
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
27702
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
27703
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
27704
+ *
27705
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
27706
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
27707
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
27708
+ * every device handle. A future nodedreame publish adds a typed
27709
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
27710
+ * provider can then swap the raw calls for the typed methods with no change to
27711
+ * THIS contract.
27712
+ */
27713
+ /**
27714
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
27715
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
27716
+ * halts it.
27717
+ *
27718
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
27719
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
27720
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
27721
+ * vector by it (drivers without proportional drive ignore it).
27722
+ *
27723
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
27724
+ * axis alone; an all-undefined nudge is a no-op.
27725
+ */
27726
+ var NavigationMoveCommandSchema = object({
27727
+ pan: number().min(-1).max(1).optional(),
27728
+ tilt: number().min(-1).max(1).optional(),
27729
+ speed: number().min(0).max(1).optional()
27730
+ });
27731
+ /**
27732
+ * The enumerated discrete actions a navigation-capable robot can perform via
27733
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
27734
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
27735
+ * `playSound` (see the `sound` dictionary entries).
27736
+ */
27737
+ var NavigationActionIdSchema = _enum([
27738
+ "goHome",
27739
+ "locate",
27740
+ "spotClean",
27741
+ "findPet",
27742
+ "personFollow",
27743
+ "stop",
27744
+ "startClean",
27745
+ "pauseClean",
27746
+ "dockWash",
27747
+ "autoEmpty",
27748
+ "flashOn",
27749
+ "flashOff"
27750
+ ]);
27751
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
27752
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
27753
+ /**
27754
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
27755
+ * native panel and the PTZ mimic render as a button.
27756
+ *
27757
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
27758
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
27759
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
27760
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
27761
+ * - `label` — operator-facing English label.
27762
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
27763
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
27764
+ * PTZ render ONLY enabled entries. Data-driven: the provider
27765
+ * flips it from config, never by editing code.
27766
+ */
27767
+ var NavigationActionEntrySchema = object({
27768
+ id: string(),
27769
+ kind: NavigationEntryKindSchema,
27770
+ label: string(),
27771
+ icon: string(),
27772
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
27773
+ soundId: number().int().optional(),
27774
+ /** Per-device feature flag — render this entry only when true. */
27775
+ enabled: boolean()
27776
+ });
27777
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
27778
+ var NavigationPointSchema = object({
27779
+ x: number(),
27780
+ y: number()
27781
+ });
27782
+ /**
27783
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
27784
+ * The cap reports which are enabled so the UI / PTZ render only the controls
27785
+ * that are turned on for THIS device. Data-driven: the provider derives these
27786
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
27787
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
27788
+ * that are not dictionary entries.
27789
+ *
27790
+ * - `move` / `stop` — the momentary drive joystick.
27791
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
27792
+ * map-coordinate plumbing is wired.
27793
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
27794
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
27795
+ * - `light` — the on/off fill-light toggle (works anytime).
27796
+ * - `lightMode` — the auto/manual selector + manual level slider (a
27797
+ * camera-service control; needs an active stream).
27798
+ */
27799
+ var NavigationFeaturesSchema = object({
27800
+ move: boolean(),
27801
+ stop: boolean(),
27802
+ goToPoint: boolean(),
27803
+ runAction: boolean(),
27804
+ playSound: boolean(),
27805
+ light: boolean(),
27806
+ lightMode: boolean()
27807
+ });
27808
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
27809
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
27810
+ /**
27811
+ * Live navigation state so the UI can reflect what the robot is doing:
27812
+ * - `mode` — coarse activity (idle / cleaning / following / …).
27813
+ * - `following` — person/pet follow is currently armed.
27814
+ * - `flash` — the on-camera fill light is on.
27815
+ * - `lightMode` — auto vs manual fill-light mode.
27816
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
27817
+ * `lightMode === 'manual'`.
27818
+ */
27819
+ var NavigationStatusSchema = object({
27820
+ mode: _enum([
27821
+ "idle",
27822
+ "cleaning",
27823
+ "spot",
27824
+ "following",
27825
+ "goto",
27826
+ "returning",
27827
+ "paused",
27828
+ "unknown"
27829
+ ]),
27830
+ following: boolean(),
27831
+ flash: boolean(),
27832
+ lightMode: NavigationLightModeSchema,
27833
+ lightLevel: number().min(40).max(100),
27834
+ /** Ms epoch when the slice was last updated. */
27835
+ lastChangedAt: number()
27836
+ });
27837
+ /**
27838
+ * Runtime-state slice owned by this cap (kernel-managed: validated, mirrored,
27839
+ * observable). Adds `lastFetchedAt` on top of the status shape per the
27840
+ * convention.
27841
+ */
27842
+ var NavigationRuntimeStateSchema = NavigationStatusSchema.extend({ lastFetchedAt: number() });
27843
+ var navigationCapability = {
27844
+ name: "navigation",
27845
+ scope: "device",
27846
+ deviceNative: true,
27847
+ mode: "singleton",
27848
+ deviceTypes: [DeviceType.Camera],
27849
+ deviceConfig: { ui: {
27850
+ kind: "widget",
27851
+ widgetId: "host/navigation-panel",
27852
+ tab: "navigation",
27853
+ topTab: true,
27854
+ label: "Navigation",
27855
+ order: 0
27856
+ } },
27857
+ methods: {
27858
+ /**
27859
+ * Momentary drive nudge (the robot moves). `protected` — mirrors
27860
+ * `ptz.continuousMove` so the Viewer navigation panel (and the PTZ-mimic
27861
+ * path) works for any authenticated user, not admin-only. The UI sends
27862
+ * these at ~1 Hz while a control is held; the provider forwards each one to
27863
+ * a single drive write WITHOUT debouncing.
27864
+ */
27865
+ move: method(NavigationMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
27866
+ /** Halt all motion immediately (zero drive vector). */
27867
+ stop: method(object({ deviceId: number() }), _void(), { kind: "mutation" }),
27868
+ /** Send the robot to a point on its live map. */
27869
+ goToPoint: method(NavigationPointSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
27870
+ /**
27871
+ * Enumerate the discrete controls THIS device supports (data-driven UI +
27872
+ * PTZ mimic). Camera-probed subset of {@link NAVIGATION_ACTION_CATALOG}.
27873
+ */
27874
+ listActions: method(object({ deviceId: number() }), array(NavigationActionEntrySchema)),
27875
+ /**
27876
+ * Run one discrete action (a `kind:'action'` dictionary entry). Invalid /
27877
+ * unsupported action ids are rejected by the provider.
27878
+ */
27879
+ runAction: method(object({
27880
+ deviceId: number(),
27881
+ actionId: NavigationActionIdSchema
27882
+ }), _void(), { kind: "mutation" }),
27883
+ /** Play a sound by its wire id (the `soundId` of a `kind:'sound'` entry). */
27884
+ playSound: method(object({
27885
+ deviceId: number(),
27886
+ soundId: number().int()
27887
+ }), _void(), { kind: "mutation" }),
27888
+ /**
27889
+ * Turn the on-camera fill light on / off (the `OpenFullLight` control —
27890
+ * works anytime, no active stream required).
27891
+ */
27892
+ setLightOn: method(object({
27893
+ deviceId: number(),
27894
+ on: boolean()
27895
+ }), _void(), { kind: "mutation" }),
27896
+ /**
27897
+ * Set the fill-light mode (auto vs manual). `manual` optionally carries the
27898
+ * initial `level`. The auto/manual + level control is a CAMERA-service
27899
+ * action that generally needs an active camera stream/monitor session — the
27900
+ * UI shows the manual level slider ONLY when `mode === 'manual'`.
27901
+ */
27902
+ setLightMode: method(object({
27903
+ deviceId: number(),
27904
+ mode: NavigationLightModeSchema,
27905
+ level: number().min(40).max(100).optional()
27906
+ }), _void(), { kind: "mutation" }),
27907
+ /** Set the MANUAL fill-light level (40..100). Implies `manual` mode. */
27908
+ setLightLevel: method(object({
27909
+ deviceId: number(),
27910
+ level: number().min(40).max(100)
27911
+ }), _void(), { kind: "mutation" }),
27912
+ /**
27913
+ * Per-device FEATURE-FLAG report for the general primitives — drives which
27914
+ * controls the UI shows (the per-entry flags for the dictionary come back on
27915
+ * `listActions`).
27916
+ */
27917
+ getFeatures: method(object({ deviceId: number() }), NavigationFeaturesSchema)
27918
+ },
27919
+ events: { onStatusChanged: { data: object({
27920
+ deviceId: number(),
27921
+ status: NavigationStatusSchema
27922
+ }) } },
27923
+ status: {
27924
+ schema: NavigationStatusSchema,
27925
+ kind: "push"
27926
+ },
27927
+ /**
27928
+ * Runtime-state slice mirrored by the kernel. The navigation panel watches it
27929
+ * for live mode / follow / flash changes.
27930
+ */
27931
+ runtimeState: NavigationRuntimeStateSchema,
27932
+ /**
27933
+ * Runtime-state durability: **session** — like `vacuum-control`, a restored
27934
+ * `mode: cleaning` / `following: true` is a robot that is not actually doing
27935
+ * that. The live handle re-publishes on connect.
27936
+ *
27937
+ * See `RuntimeStateDurability`. Enforced by
27938
+ * `scripts/check-runtime-state-durability.ts`.
27939
+ */
27940
+ durability: "session"
27941
+ };
27942
+ /**
27943
+ * Network-link snapshot. Same shape for every provider (a Reolink wifi
27944
+ * camera, a Home Assistant device with a signal-strength sensor, a Tapo
27945
+ * plug): one slice under `device.runtimeState['network-link']`, one badge,
27946
+ * one Home Assistant projection.
27947
+ */
27948
+ var NetworkLinkStatusSchema = object({
27949
+ /** The link the device is on. `'unknown'` = not read yet, not "no link". */
27950
+ type: _enum([
27951
+ "wifi",
27952
+ "ethernet",
27953
+ "cellular",
27954
+ "unknown"
27955
+ ]),
27956
+ /**
27957
+ * Link quality, 0..100 inclusive, normalised by the provider from whatever
27958
+ * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
27959
+ * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
27960
+ * one whose reading has not landed must not be drawn at 0 %. Consumers
27961
+ * SKIP a null rather than coerce it.
27962
+ */
27963
+ signalPercent: number().min(0).max(100).nullable(),
27964
+ /** Raw received signal strength in dBm, when the firmware reports one. */
27965
+ rssiDbm: number().optional(),
27966
+ /** Network name of a wireless link, when the firmware reports it. */
27967
+ ssid: string().optional(),
27968
+ /** Ms epoch of the last observation. Lets consumers reason about freshness. */
27969
+ lastUpdated: number()
27970
+ });
27971
+ var networkLinkCapability = {
27972
+ name: "network-link",
27973
+ scope: "device",
27974
+ deviceNative: true,
27975
+ mode: "singleton",
27976
+ deviceTypes: [
27977
+ DeviceType.Camera,
27978
+ DeviceType.Sensor,
27979
+ DeviceType.Button,
27980
+ DeviceType.Switch,
27981
+ DeviceType.Light,
27982
+ DeviceType.Lock,
27983
+ DeviceType.Siren
27984
+ ],
27985
+ methods: {},
27986
+ events: {
27987
+ /**
27988
+ * Emitted whenever the cached status changes (a link switch, a signal
27989
+ * reading that moved). Mirrored on the parent chain by the
27990
+ * DeviceEventPropagator like `battery.onStatusChanged`.
27991
+ */
27992
+ onStatusChanged: { data: object({
27993
+ deviceId: number(),
27994
+ status: NetworkLinkStatusSchema
27995
+ }) } },
27996
+ status: {
27997
+ schema: NetworkLinkStatusSchema,
27998
+ kind: "push",
27999
+ empty: {
28000
+ type: "unknown",
28001
+ signalPercent: null,
28002
+ lastUpdated: 0
28003
+ }
28004
+ },
28005
+ /**
28006
+ * Runtime-state slice — every provider stores the same shape under
28007
+ * `device.runtimeState['network-link']`, read once by the badge and the
28008
+ * Home Assistant projector regardless of the driver.
28009
+ */
28010
+ runtimeState: NetworkLinkStatusSchema,
28011
+ /**
28012
+ * Runtime-state durability: **restored** — a link reading is slow to
28013
+ * change and a sleeping battery camera may not report for hours; the
28014
+ * restored slice is what the badge shows until the next read.
28015
+ *
28016
+ * See `RuntimeStateDurability`. Enforced by
28017
+ * `scripts/check-runtime-state-durability.ts`.
28018
+ */
28019
+ durability: "restored",
28020
+ /** Clock fields: written, but excluded from the compare that decides
28021
+ * whether persisting is worth a SQLite commit. */
28022
+ volatileStateFields: ["lastUpdated"]
28023
+ };
28024
+ /**
27604
28025
  * network-quality — system-scoped singleton capability tracking RTT,
27605
28026
  * jitter, and observed/peak bandwidth per device + per client.
27606
28027
  *
@@ -29181,287 +29602,6 @@ var ptzAutotrackCapability = {
29181
29602
  */
29182
29603
  durability: "session"
29183
29604
  };
29184
- /**
29185
- * `navigation` — a device-scoped capability that natively expresses the FULL
29186
- * navigation / action surface of a robot that DRIVES ITSELF and carries an
29187
- * on-board camera (the Dreame robot-vacuum camera is the first provider).
29188
- *
29189
- * Why a NEW cap rather than overloading `ptz`:
29190
- * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
29191
- * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
29192
- * The two are different physical models: PTZ is absolute-position + presets,
29193
- * navigation is momentary drive nudges + discrete robot ACTIONS
29194
- * (dock / spot-clean / follow-pet / go-to-point / …).
29195
- * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
29196
- * the reverse:
29197
- * 1. a native CamStack navigation panel (data-driven from `listActions`
29198
- * / `getOptions`), and
29199
- * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
29200
- * robot camera shows up in the existing PTZ control path without every
29201
- * PTZ provider learning about robots. The mapping lives in the adapter,
29202
- * not here (see the addon design note):
29203
- * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
29204
- * ptz.stop() → navigation.stop()
29205
- * ptz.goHome() → navigation.runAction('goHome')
29206
- * ptz.getPresets() → navigation.listActions() (id→preset)
29207
- * ptz.goToPreset(id) → navigation.runAction(id)
29208
- *
29209
- * ## Continuous drive
29210
- *
29211
- * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
29212
- * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
29213
- * one `stop()` on release — exactly like the robot app's remote-drive joystick.
29214
- * The provider forwards EACH `move` to one drive write; it must NOT debounce or
29215
- * coalesce them. The UI owns the cadence.
29216
- *
29217
- * ## The action dictionary
29218
- *
29219
- * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
29220
- * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
29221
- * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
29222
- * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
29223
- * vendor-specific list. `kind: 'action'` entries are triggered with
29224
- * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
29225
- * (the entry carries the `soundId` to pass). The general primitives — `move`,
29226
- * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
29227
- *
29228
- * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
29229
- * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
29230
- * that the currently-published `@apocaliss92/nodedreame` already exposes on
29231
- * every device handle. A future nodedreame publish adds a typed
29232
- * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
29233
- * provider can then swap the raw calls for the typed methods with no change to
29234
- * THIS contract.
29235
- */
29236
- /**
29237
- * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
29238
- * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
29239
- * halts it.
29240
- *
29241
- * - `pan` — turn: negative = left, positive = right, 0 = straight.
29242
- * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
29243
- * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
29244
- * vector by it (drivers without proportional drive ignore it).
29245
- *
29246
- * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
29247
- * axis alone; an all-undefined nudge is a no-op.
29248
- */
29249
- var NavigationMoveCommandSchema = object({
29250
- pan: number().min(-1).max(1).optional(),
29251
- tilt: number().min(-1).max(1).optional(),
29252
- speed: number().min(0).max(1).optional()
29253
- });
29254
- /**
29255
- * The enumerated discrete actions a navigation-capable robot can perform via
29256
- * `runAction`. This is the CLOSED vocabulary; a given device advertises the
29257
- * subset it supports through `listActions`. Sounds are NOT here — they go through
29258
- * `playSound` (see the `sound` dictionary entries).
29259
- */
29260
- var NavigationActionIdSchema = _enum([
29261
- "goHome",
29262
- "locate",
29263
- "spotClean",
29264
- "findPet",
29265
- "personFollow",
29266
- "stop",
29267
- "startClean",
29268
- "pauseClean",
29269
- "dockWash",
29270
- "autoEmpty",
29271
- "flashOn",
29272
- "flashOff"
29273
- ]);
29274
- /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
29275
- var NavigationEntryKindSchema = _enum(["action", "sound"]);
29276
- /**
29277
- * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
29278
- * native panel and the PTZ mimic render as a button.
29279
- *
29280
- * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
29281
- * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
29282
- * (`sound:meow`) whose `soundId` is passed to `playSound`.
29283
- * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
29284
- * - `label` — operator-facing English label.
29285
- * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
29286
- * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
29287
- * PTZ render ONLY enabled entries. Data-driven: the provider
29288
- * flips it from config, never by editing code.
29289
- */
29290
- var NavigationActionEntrySchema = object({
29291
- id: string(),
29292
- kind: NavigationEntryKindSchema,
29293
- label: string(),
29294
- icon: string(),
29295
- /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
29296
- soundId: number().int().optional(),
29297
- /** Per-device feature flag — render this entry only when true. */
29298
- enabled: boolean()
29299
- });
29300
- /** Coordinates for `goToPoint` — a point on the robot's live map. */
29301
- var NavigationPointSchema = object({
29302
- x: number(),
29303
- y: number()
29304
- });
29305
- /**
29306
- * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
29307
- * The cap reports which are enabled so the UI / PTZ render only the controls
29308
- * that are turned on for THIS device. Data-driven: the provider derives these
29309
- * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
29310
- * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
29311
- * that are not dictionary entries.
29312
- *
29313
- * - `move` / `stop` — the momentary drive joystick.
29314
- * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
29315
- * map-coordinate plumbing is wired.
29316
- * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
29317
- * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
29318
- * - `light` — the on/off fill-light toggle (works anytime).
29319
- * - `lightMode` — the auto/manual selector + manual level slider (a
29320
- * camera-service control; needs an active stream).
29321
- */
29322
- var NavigationFeaturesSchema = object({
29323
- move: boolean(),
29324
- stop: boolean(),
29325
- goToPoint: boolean(),
29326
- runAction: boolean(),
29327
- playSound: boolean(),
29328
- light: boolean(),
29329
- lightMode: boolean()
29330
- });
29331
- /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
29332
- var NavigationLightModeSchema = _enum(["auto", "manual"]);
29333
- /**
29334
- * Live navigation state so the UI can reflect what the robot is doing:
29335
- * - `mode` — coarse activity (idle / cleaning / following / …).
29336
- * - `following` — person/pet follow is currently armed.
29337
- * - `flash` — the on-camera fill light is on.
29338
- * - `lightMode` — auto vs manual fill-light mode.
29339
- * - `lightLevel` — manual fill-light level (40..100); meaningful when
29340
- * `lightMode === 'manual'`.
29341
- */
29342
- var NavigationStatusSchema = object({
29343
- mode: _enum([
29344
- "idle",
29345
- "cleaning",
29346
- "spot",
29347
- "following",
29348
- "goto",
29349
- "returning",
29350
- "paused",
29351
- "unknown"
29352
- ]),
29353
- following: boolean(),
29354
- flash: boolean(),
29355
- lightMode: NavigationLightModeSchema,
29356
- lightLevel: number().min(40).max(100),
29357
- /** Ms epoch when the slice was last updated. */
29358
- lastChangedAt: number()
29359
- });
29360
- /**
29361
- * Runtime-state slice owned by this cap (kernel-managed: validated, mirrored,
29362
- * observable). Adds `lastFetchedAt` on top of the status shape per the
29363
- * convention.
29364
- */
29365
- var NavigationRuntimeStateSchema = NavigationStatusSchema.extend({ lastFetchedAt: number() });
29366
- var navigationCapability = {
29367
- name: "navigation",
29368
- scope: "device",
29369
- deviceNative: true,
29370
- mode: "singleton",
29371
- deviceTypes: [DeviceType.Camera],
29372
- deviceConfig: { ui: {
29373
- kind: "widget",
29374
- widgetId: "host/navigation-panel",
29375
- tab: "navigation",
29376
- topTab: true,
29377
- label: "Navigation",
29378
- order: 0
29379
- } },
29380
- methods: {
29381
- /**
29382
- * Momentary drive nudge (the robot moves). `protected` — mirrors
29383
- * `ptz.continuousMove` so the Viewer navigation panel (and the PTZ-mimic
29384
- * path) works for any authenticated user, not admin-only. The UI sends
29385
- * these at ~1 Hz while a control is held; the provider forwards each one to
29386
- * a single drive write WITHOUT debouncing.
29387
- */
29388
- move: method(NavigationMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
29389
- /** Halt all motion immediately (zero drive vector). */
29390
- stop: method(object({ deviceId: number() }), _void(), { kind: "mutation" }),
29391
- /** Send the robot to a point on its live map. */
29392
- goToPoint: method(NavigationPointSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
29393
- /**
29394
- * Enumerate the discrete controls THIS device supports (data-driven UI +
29395
- * PTZ mimic). Camera-probed subset of {@link NAVIGATION_ACTION_CATALOG}.
29396
- */
29397
- listActions: method(object({ deviceId: number() }), array(NavigationActionEntrySchema)),
29398
- /**
29399
- * Run one discrete action (a `kind:'action'` dictionary entry). Invalid /
29400
- * unsupported action ids are rejected by the provider.
29401
- */
29402
- runAction: method(object({
29403
- deviceId: number(),
29404
- actionId: NavigationActionIdSchema
29405
- }), _void(), { kind: "mutation" }),
29406
- /** Play a sound by its wire id (the `soundId` of a `kind:'sound'` entry). */
29407
- playSound: method(object({
29408
- deviceId: number(),
29409
- soundId: number().int()
29410
- }), _void(), { kind: "mutation" }),
29411
- /**
29412
- * Turn the on-camera fill light on / off (the `OpenFullLight` control —
29413
- * works anytime, no active stream required).
29414
- */
29415
- setLightOn: method(object({
29416
- deviceId: number(),
29417
- on: boolean()
29418
- }), _void(), { kind: "mutation" }),
29419
- /**
29420
- * Set the fill-light mode (auto vs manual). `manual` optionally carries the
29421
- * initial `level`. The auto/manual + level control is a CAMERA-service
29422
- * action that generally needs an active camera stream/monitor session — the
29423
- * UI shows the manual level slider ONLY when `mode === 'manual'`.
29424
- */
29425
- setLightMode: method(object({
29426
- deviceId: number(),
29427
- mode: NavigationLightModeSchema,
29428
- level: number().min(40).max(100).optional()
29429
- }), _void(), { kind: "mutation" }),
29430
- /** Set the MANUAL fill-light level (40..100). Implies `manual` mode. */
29431
- setLightLevel: method(object({
29432
- deviceId: number(),
29433
- level: number().min(40).max(100)
29434
- }), _void(), { kind: "mutation" }),
29435
- /**
29436
- * Per-device FEATURE-FLAG report for the general primitives — drives which
29437
- * controls the UI shows (the per-entry flags for the dictionary come back on
29438
- * `listActions`).
29439
- */
29440
- getFeatures: method(object({ deviceId: number() }), NavigationFeaturesSchema)
29441
- },
29442
- events: { onStatusChanged: { data: object({
29443
- deviceId: number(),
29444
- status: NavigationStatusSchema
29445
- }) } },
29446
- status: {
29447
- schema: NavigationStatusSchema,
29448
- kind: "push"
29449
- },
29450
- /**
29451
- * Runtime-state slice mirrored by the kernel. The navigation panel watches it
29452
- * for live mode / follow / flash changes.
29453
- */
29454
- runtimeState: NavigationRuntimeStateSchema,
29455
- /**
29456
- * Runtime-state durability: **session** — like `vacuum-control`, a restored
29457
- * `mode: cleaning` / `following: true` is a robot that is not actually doing
29458
- * that. The live handle re-publishes on connect.
29459
- *
29460
- * See `RuntimeStateDurability`. Enforced by
29461
- * `scripts/check-runtime-state-durability.ts`.
29462
- */
29463
- durability: "session"
29464
- };
29465
29605
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
29466
29606
  kind: "mutation",
29467
29607
  auth: "admin"
@@ -38990,6 +39130,12 @@ Object.freeze({
38990
39130
  addonId: null,
38991
39131
  access: "view"
38992
39132
  },
39133
+ "storage.listDrainProgress": {
39134
+ capName: "storage",
39135
+ capScope: "system",
39136
+ addonId: null,
39137
+ access: "view"
39138
+ },
38993
39139
  "storage.listLocationDeclarations": {
38994
39140
  capName: "storage",
38995
39141
  capScope: "system",
@@ -39134,6 +39280,12 @@ Object.freeze({
39134
39280
  addonId: null,
39135
39281
  access: "view"
39136
39282
  },
39283
+ "storageOccupancy.getOccupancy": {
39284
+ capName: "storage-occupancy",
39285
+ capScope: "system",
39286
+ addonId: null,
39287
+ access: "view"
39288
+ },
39137
39289
  "storageProvider.abortUpload": {
39138
39290
  capName: "storage-provider",
39139
39291
  capScope: "system",