@camstack/addon-provider-unifi 0.2.79 → 0.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.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
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";
@@ -8536,6 +8549,21 @@ var StorageCleanupJobSchema = object({
8536
8549
  });
8537
8550
  var StorageCleanupStatusInputSchema = object({ jobId: string().optional() });
8538
8551
  /**
8552
+ * The one typed state of a storage location. Authoritative Zod schema — the TS
8553
+ * alias below is `z.infer<>` of it, never a second spelling.
8554
+ */
8555
+ var StorageLocationModeSchema = _enum([
8556
+ "active",
8557
+ "readonly",
8558
+ "drain",
8559
+ "disabled"
8560
+ ]);
8561
+ _enum([
8562
+ "normal",
8563
+ "never",
8564
+ "drain"
8565
+ ]);
8566
+ /**
8539
8567
  * `StorageLocationType` — an addon-declared id that identifies the *kind* of
8540
8568
  * storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
8541
8569
  * so the persisted record schema and the consumer-facing cap can both consume it
@@ -8601,6 +8629,21 @@ var StorageLocationSchema = object({
8601
8629
  * stops existing rather than being re-derived on every read.
8602
8630
  */
8603
8631
  enabled: boolean().optional(),
8632
+ /**
8633
+ * THE state of this location (D385), and the only authority on what may be
8634
+ * written, read or evicted here. Interpreted in exactly one place —
8635
+ * `storage-location-mode.ts` — which also folds the legacy
8636
+ * `enabled` / `config.readOnly` pair into a mode so an old row is never
8637
+ * ambiguous.
8638
+ *
8639
+ * OPTIONAL only for the wire and for rows written before D385: absence is
8640
+ * resolved by `resolveLocationMode`, and the orchestrator stamps every
8641
+ * unstamped row ONCE at hydrate so absence stops existing rather than being
8642
+ * re-derived on every read. `enabled` survives one release as a DERIVED
8643
+ * mirror (`mode === 'active'`); `withLocationMode` is the only writer of
8644
+ * either, so the two cannot disagree.
8645
+ */
8646
+ mode: StorageLocationModeSchema.optional(),
8604
8647
  /** COMPUTED at read time by the orchestrator (statfs of the backing volume
8605
8648
  * for node-local locations it can reach) — never persisted, absent when the
8606
8649
  * volume is remote/unreachable. The single capacity truth every UI reads. */
@@ -8608,11 +8651,46 @@ var StorageLocationSchema = object({
8608
8651
  totalBytes: number(),
8609
8652
  availableBytes: number()
8610
8653
  }).nullable().optional(),
8654
+ /**
8655
+ * How much of that volume CamStack ITSELF holds on this location (D388) —
8656
+ * COMPUTED at read time from the `storage-occupancy` providers' own figures,
8657
+ * never persisted, never a filesystem walk.
8658
+ *
8659
+ * **ABSENT MEANS UNKNOWN, never zero.** No provider has reported for this
8660
+ * location yet — nobody stores here, the owning addon is down, or the first
8661
+ * refresh has not completed. A UI must omit the segment rather than draw it
8662
+ * at zero, which would claim we occupy nothing (D315). It is an OBJECT and
8663
+ * not a bare number precisely so that a `?? 0` on the consuming side has to
8664
+ * be spelled out loud instead of appearing by accident.
8665
+ *
8666
+ * `measuredAtMs` is the OLDEST contributing measurement, so it is honest
8667
+ * about the whole figure rather than about its freshest part.
8668
+ */
8669
+ owned: object({
8670
+ bytes: number().int().nonnegative(),
8671
+ measuredAtMs: number().int().nonnegative()
8672
+ }).optional(),
8611
8673
  createdAt: number(),
8612
8674
  updatedAt: number()
8613
8675
  });
8614
8676
  object({ isDefault: boolean().optional() });
8615
8677
  /**
8678
+ * How far a `drain` has got (D386) — the read a UI renders, and nothing more.
8679
+ *
8680
+ * `estimatedEmptyAtMs` is derived from the growth the ratchet has actually
8681
+ * OBSERVED and is `null` when it has observed none. Never a fabricated date: a
8682
+ * drain with no observed growth has no honest ETA, and inventing one is how an
8683
+ * operator learns not to believe the screen.
8684
+ */
8685
+ var StorageDrainProgressSchema = object({
8686
+ locationId: string(),
8687
+ startedAtMs: number(),
8688
+ startBytes: number(),
8689
+ bytesRemaining: number(),
8690
+ drained: boolean(),
8691
+ estimatedEmptyAtMs: number().nullable()
8692
+ });
8693
+ /**
8616
8694
  * Reference accepted by consumer-facing `api.storage.*` calls.
8617
8695
  * Either:
8618
8696
  * - a `StorageLocationType` (e.g. `'backups'`) → the sole location of that type
@@ -20421,8 +20499,25 @@ var occupancyRecheckFramesField = {
20421
20499
  * (analyzer attaches detected `regions[]`; onboard does not — the
20422
20500
  * camera typically only reports a binary signal plus an optional
20423
20501
  * channel/AI class which lives in dedicated event channels).
20424
- */
20425
- var MotionSourceEnum = _enum(["onboard", "analyzer"]);
20502
+ *
20503
+ * - `onboard` — the camera's firmware said something moved.
20504
+ * - `analyzer` — this runner's frame-diff said so, and attaches `regions[]`.
20505
+ * - `device-activity` — the DEVICE said it is doing its job: the
20506
+ * `recording-signal` LEVEL the same device raises for the recorder
20507
+ * ([D380](../../../../docs/decisions/adr-0380-a-device-decided-recording-is-a-mode-with-no-schedule-seeded-once.md)),
20508
+ * republished as a motion source. It attaches **nothing** — no regions, no
20509
+ * class: the only fact it carries is that the device is active, and a robot
20510
+ * vacuum that is itself the moving object has no region worth sending. It is
20511
+ * a LEVEL, so unlike `onboard` it has a real falling edge, and unlike
20512
+ * `analyzer` it must not open the frame-diff side-channel — the runner's
20513
+ * `handleOnboardMotionAnalyzer` gate is `source === 'onboard'` and stays that
20514
+ * way ([D392](../../../../docs/decisions/adr-0392-a-device-that-says-it-is-working-is-a-motion-source-of-its-own.md)).
20515
+ */
20516
+ var MotionSourceEnum = _enum([
20517
+ "onboard",
20518
+ "analyzer",
20519
+ "device-activity"
20520
+ ]);
20426
20521
  /**
20427
20522
  * List of motion sources active on a camera. Empty array is valid:
20428
20523
  * "no source" — happens for battery cams without firmware motion when
@@ -21941,7 +22036,7 @@ method(object({
21941
22036
  }), _void(), {
21942
22037
  kind: "mutation",
21943
22038
  auth: "admin"
21944
- }), method(object({ id: string() }), object({
22039
+ }), method(_void(), array(StorageDrainProgressSchema).readonly()), method(object({ id: string() }), object({
21945
22040
  ok: boolean(),
21946
22041
  error: string().optional()
21947
22042
  }), { auth: "admin" }), method(_void(), array(ProviderListEntrySchema).readonly()), method(object({
@@ -22011,6 +22106,51 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
22011
22106
  kind: "mutation",
22012
22107
  auth: "admin"
22013
22108
  }), method(object({}), array(StorageMigrationJobSchema).readonly(), { auth: "admin" });
22109
+ /**
22110
+ * `storage-occupancy` — how many bytes an addon actually HOLDS on a storage
22111
+ * location (D388).
22112
+ *
22113
+ * ## Why this is not `storage-evictable`
22114
+ *
22115
+ * `storage-evictable.getEvictableUsage` looks like the same question and is
22116
+ * not, in two ways that both matter and both bite hardest on the locations an
22117
+ * operator most wants a figure for:
22118
+ *
22119
+ * - it reports the whole eviction DOMAIN, not the location. `recordings:default`
22120
+ * and `recordingsLow:default` deliberately share one root and evict as one
22121
+ * oldest-first pool, so both answer with the SAME combined total. As an
22122
+ * occupancy figure that double-counts the disk.
22123
+ * - it reports ZERO for a location whose eviction policy is `never` (D385) —
22124
+ * a `readonly` or `disabled` disk. Those are exactly the disks an operator
22125
+ * is retiring and staring at.
22126
+ *
22127
+ * So this is its own contract with its own quantity, and the quantity is
22128
+ * OCCUPIED: every byte the addon holds on that location, whether or not it
22129
+ * would ever be willing to delete it. A provider that can only answer
22130
+ * "evictable" must not register here — a number that silently means different
22131
+ * things per class is worse than no number.
22132
+ *
22133
+ * ## Absence is an answer
22134
+ *
22135
+ * A location nobody reports for is UNKNOWN, never zero (D315). The orchestrator
22136
+ * stamps `StorageLocation.owned` only for locations it has a report for, and
22137
+ * the field is an OBJECT rather than a bare number so that a `?? 0` on the
22138
+ * consuming side has to be written out loud instead of appearing by accident.
22139
+ *
22140
+ * `internal: true` — consumed by the orchestrator's `listLocations` stamp, never
22141
+ * a public client surface. Clients read the stamped `StorageLocation.owned`.
22142
+ */
22143
+ /** One provider's occupancy answer for one location. */
22144
+ var StorageOccupancyReportSchema = object({
22145
+ locationId: string(),
22146
+ /** Bytes this provider holds on THAT location — not its eviction domain, and
22147
+ * not net of what it is willing to delete. */
22148
+ ownedBytes: number().int().nonnegative(),
22149
+ /** When the provider last actually measured this. The orchestrator carries it
22150
+ * through so a UI can say how old the figure is instead of implying "now". */
22151
+ measuredAtMs: number().int().nonnegative()
22152
+ });
22153
+ method(object({ locationIds: array(string()).readonly() }), array(StorageOccupancyReportSchema).readonly(), { auth: "admin" });
22014
22154
  var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
22015
22155
  providerId: string().min(1),
22016
22156
  displayName: string().min(1),
@@ -23846,88 +23986,6 @@ onStatusChanged: { data: object({
23846
23986
  volatileStateFields: ["lastUpdated"]
23847
23987
  };
23848
23988
  /**
23849
- * Network-link snapshot. Same shape for every provider (a Reolink wifi
23850
- * camera, a Home Assistant device with a signal-strength sensor, a Tapo
23851
- * plug): one slice under `device.runtimeState['network-link']`, one badge,
23852
- * one Home Assistant projection.
23853
- */
23854
- var NetworkLinkStatusSchema = object({
23855
- /** The link the device is on. `'unknown'` = not read yet, not "no link". */
23856
- type: _enum([
23857
- "wifi",
23858
- "ethernet",
23859
- "cellular",
23860
- "unknown"
23861
- ]),
23862
- /**
23863
- * Link quality, 0..100 inclusive, normalised by the provider from whatever
23864
- * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
23865
- * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
23866
- * one whose reading has not landed must not be drawn at 0 %. Consumers
23867
- * SKIP a null rather than coerce it.
23868
- */
23869
- signalPercent: number().min(0).max(100).nullable(),
23870
- /** Raw received signal strength in dBm, when the firmware reports one. */
23871
- rssiDbm: number().optional(),
23872
- /** Network name of a wireless link, when the firmware reports it. */
23873
- ssid: string().optional(),
23874
- /** Ms epoch of the last observation. Lets consumers reason about freshness. */
23875
- lastUpdated: number()
23876
- });
23877
- var networkLinkCapability = {
23878
- name: "network-link",
23879
- scope: "device",
23880
- deviceNative: true,
23881
- mode: "singleton",
23882
- deviceTypes: [
23883
- DeviceType.Camera,
23884
- DeviceType.Sensor,
23885
- DeviceType.Button,
23886
- DeviceType.Switch,
23887
- DeviceType.Light,
23888
- DeviceType.Lock,
23889
- DeviceType.Siren
23890
- ],
23891
- methods: {},
23892
- events: {
23893
- /**
23894
- * Emitted whenever the cached status changes (a link switch, a signal
23895
- * reading that moved). Mirrored on the parent chain by the
23896
- * DeviceEventPropagator like `battery.onStatusChanged`.
23897
- */
23898
- onStatusChanged: { data: object({
23899
- deviceId: number(),
23900
- status: NetworkLinkStatusSchema
23901
- }) } },
23902
- status: {
23903
- schema: NetworkLinkStatusSchema,
23904
- kind: "push",
23905
- empty: {
23906
- type: "unknown",
23907
- signalPercent: null,
23908
- lastUpdated: 0
23909
- }
23910
- },
23911
- /**
23912
- * Runtime-state slice — every provider stores the same shape under
23913
- * `device.runtimeState['network-link']`, read once by the badge and the
23914
- * Home Assistant projector regardless of the driver.
23915
- */
23916
- runtimeState: NetworkLinkStatusSchema,
23917
- /**
23918
- * Runtime-state durability: **restored** — a link reading is slow to
23919
- * change and a sleeping battery camera may not report for hours; the
23920
- * restored slice is what the badge shows until the next read.
23921
- *
23922
- * See `RuntimeStateDurability`. Enforced by
23923
- * `scripts/check-runtime-state-durability.ts`.
23924
- */
23925
- durability: "restored",
23926
- /** Clock fields: written, but excluded from the compare that decides
23927
- * whether persisting is worth a SQLite commit. */
23928
- volatileStateFields: ["lastUpdated"]
23929
- };
23930
- /**
23931
23989
  * Generic boolean sensor — last-resort fallback when no domain-
23932
23990
  * specific binary cap fits (Home Assistant `binary_sensor` without a
23933
23991
  * known `device_class`, or a domain we haven't typed yet). Pure
@@ -27474,6 +27532,369 @@ var nativeObjectDetectionCapability = {
27474
27532
  volatileStateFields: ["lastFetchedAt"]
27475
27533
  };
27476
27534
  /**
27535
+ * `navigation` — a device-scoped capability that natively expresses the FULL
27536
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
27537
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
27538
+ *
27539
+ * Why a NEW cap rather than overloading `ptz`:
27540
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
27541
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
27542
+ * The two are different physical models: PTZ is absolute-position + presets,
27543
+ * navigation is momentary drive nudges + discrete robot ACTIONS
27544
+ * (dock / spot-clean / follow-pet / go-to-point / …).
27545
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
27546
+ * the reverse:
27547
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
27548
+ * / `getOptions`), and
27549
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
27550
+ * robot camera shows up in the existing PTZ control path without every
27551
+ * PTZ provider learning about robots. The mapping lives in the adapter,
27552
+ * not here (see the addon design note):
27553
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
27554
+ * ptz.stop() → navigation.stop()
27555
+ * ptz.goHome() → navigation.runAction('goHome')
27556
+ * ptz.getPresets() → navigation.listActions() (id→preset)
27557
+ * ptz.goToPreset(id) → navigation.runAction(id)
27558
+ *
27559
+ * ## Continuous drive
27560
+ *
27561
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
27562
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
27563
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
27564
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
27565
+ * coalesce them. The UI owns the cadence.
27566
+ *
27567
+ * ## The action dictionary
27568
+ *
27569
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
27570
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
27571
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
27572
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
27573
+ * vendor-specific list. `kind: 'action'` entries are triggered with
27574
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
27575
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
27576
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
27577
+ *
27578
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
27579
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
27580
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
27581
+ * every device handle. A future nodedreame publish adds a typed
27582
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
27583
+ * provider can then swap the raw calls for the typed methods with no change to
27584
+ * THIS contract.
27585
+ */
27586
+ /**
27587
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
27588
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
27589
+ * halts it.
27590
+ *
27591
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
27592
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
27593
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
27594
+ * vector by it (drivers without proportional drive ignore it).
27595
+ *
27596
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
27597
+ * axis alone; an all-undefined nudge is a no-op.
27598
+ */
27599
+ var NavigationMoveCommandSchema = object({
27600
+ pan: number().min(-1).max(1).optional(),
27601
+ tilt: number().min(-1).max(1).optional(),
27602
+ speed: number().min(0).max(1).optional()
27603
+ });
27604
+ /**
27605
+ * The enumerated discrete actions a navigation-capable robot can perform via
27606
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
27607
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
27608
+ * `playSound` (see the `sound` dictionary entries).
27609
+ */
27610
+ var NavigationActionIdSchema = _enum([
27611
+ "goHome",
27612
+ "locate",
27613
+ "spotClean",
27614
+ "findPet",
27615
+ "personFollow",
27616
+ "stop",
27617
+ "startClean",
27618
+ "pauseClean",
27619
+ "dockWash",
27620
+ "autoEmpty",
27621
+ "flashOn",
27622
+ "flashOff"
27623
+ ]);
27624
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
27625
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
27626
+ /**
27627
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
27628
+ * native panel and the PTZ mimic render as a button.
27629
+ *
27630
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
27631
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
27632
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
27633
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
27634
+ * - `label` — operator-facing English label.
27635
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
27636
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
27637
+ * PTZ render ONLY enabled entries. Data-driven: the provider
27638
+ * flips it from config, never by editing code.
27639
+ */
27640
+ var NavigationActionEntrySchema = object({
27641
+ id: string(),
27642
+ kind: NavigationEntryKindSchema,
27643
+ label: string(),
27644
+ icon: string(),
27645
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
27646
+ soundId: number().int().optional(),
27647
+ /** Per-device feature flag — render this entry only when true. */
27648
+ enabled: boolean()
27649
+ });
27650
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
27651
+ var NavigationPointSchema = object({
27652
+ x: number(),
27653
+ y: number()
27654
+ });
27655
+ /**
27656
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
27657
+ * The cap reports which are enabled so the UI / PTZ render only the controls
27658
+ * that are turned on for THIS device. Data-driven: the provider derives these
27659
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
27660
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
27661
+ * that are not dictionary entries.
27662
+ *
27663
+ * - `move` / `stop` — the momentary drive joystick.
27664
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
27665
+ * map-coordinate plumbing is wired.
27666
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
27667
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
27668
+ * - `light` — the on/off fill-light toggle (works anytime).
27669
+ * - `lightMode` — the auto/manual selector + manual level slider (a
27670
+ * camera-service control; needs an active stream).
27671
+ */
27672
+ var NavigationFeaturesSchema = object({
27673
+ move: boolean(),
27674
+ stop: boolean(),
27675
+ goToPoint: boolean(),
27676
+ runAction: boolean(),
27677
+ playSound: boolean(),
27678
+ light: boolean(),
27679
+ lightMode: boolean()
27680
+ });
27681
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
27682
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
27683
+ /**
27684
+ * Live navigation state so the UI can reflect what the robot is doing:
27685
+ * - `mode` — coarse activity (idle / cleaning / following / …).
27686
+ * - `following` — person/pet follow is currently armed.
27687
+ * - `flash` — the on-camera fill light is on.
27688
+ * - `lightMode` — auto vs manual fill-light mode.
27689
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
27690
+ * `lightMode === 'manual'`.
27691
+ */
27692
+ var NavigationStatusSchema = object({
27693
+ mode: _enum([
27694
+ "idle",
27695
+ "cleaning",
27696
+ "spot",
27697
+ "following",
27698
+ "goto",
27699
+ "returning",
27700
+ "paused",
27701
+ "unknown"
27702
+ ]),
27703
+ following: boolean(),
27704
+ flash: boolean(),
27705
+ lightMode: NavigationLightModeSchema,
27706
+ lightLevel: number().min(40).max(100),
27707
+ /** Ms epoch when the slice was last updated. */
27708
+ lastChangedAt: number()
27709
+ });
27710
+ /**
27711
+ * Runtime-state slice owned by this cap (kernel-managed: validated, mirrored,
27712
+ * observable). Adds `lastFetchedAt` on top of the status shape per the
27713
+ * convention.
27714
+ */
27715
+ var NavigationRuntimeStateSchema = NavigationStatusSchema.extend({ lastFetchedAt: number() });
27716
+ var navigationCapability = {
27717
+ name: "navigation",
27718
+ scope: "device",
27719
+ deviceNative: true,
27720
+ mode: "singleton",
27721
+ deviceTypes: [DeviceType.Camera],
27722
+ deviceConfig: { ui: {
27723
+ kind: "widget",
27724
+ widgetId: "host/navigation-panel",
27725
+ tab: "navigation",
27726
+ topTab: true,
27727
+ label: "Navigation",
27728
+ order: 0
27729
+ } },
27730
+ methods: {
27731
+ /**
27732
+ * Momentary drive nudge (the robot moves). `protected` — mirrors
27733
+ * `ptz.continuousMove` so the Viewer navigation panel (and the PTZ-mimic
27734
+ * path) works for any authenticated user, not admin-only. The UI sends
27735
+ * these at ~1 Hz while a control is held; the provider forwards each one to
27736
+ * a single drive write WITHOUT debouncing.
27737
+ */
27738
+ move: method(NavigationMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
27739
+ /** Halt all motion immediately (zero drive vector). */
27740
+ stop: method(object({ deviceId: number() }), _void(), { kind: "mutation" }),
27741
+ /** Send the robot to a point on its live map. */
27742
+ goToPoint: method(NavigationPointSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
27743
+ /**
27744
+ * Enumerate the discrete controls THIS device supports (data-driven UI +
27745
+ * PTZ mimic). Camera-probed subset of {@link NAVIGATION_ACTION_CATALOG}.
27746
+ */
27747
+ listActions: method(object({ deviceId: number() }), array(NavigationActionEntrySchema)),
27748
+ /**
27749
+ * Run one discrete action (a `kind:'action'` dictionary entry). Invalid /
27750
+ * unsupported action ids are rejected by the provider.
27751
+ */
27752
+ runAction: method(object({
27753
+ deviceId: number(),
27754
+ actionId: NavigationActionIdSchema
27755
+ }), _void(), { kind: "mutation" }),
27756
+ /** Play a sound by its wire id (the `soundId` of a `kind:'sound'` entry). */
27757
+ playSound: method(object({
27758
+ deviceId: number(),
27759
+ soundId: number().int()
27760
+ }), _void(), { kind: "mutation" }),
27761
+ /**
27762
+ * Turn the on-camera fill light on / off (the `OpenFullLight` control —
27763
+ * works anytime, no active stream required).
27764
+ */
27765
+ setLightOn: method(object({
27766
+ deviceId: number(),
27767
+ on: boolean()
27768
+ }), _void(), { kind: "mutation" }),
27769
+ /**
27770
+ * Set the fill-light mode (auto vs manual). `manual` optionally carries the
27771
+ * initial `level`. The auto/manual + level control is a CAMERA-service
27772
+ * action that generally needs an active camera stream/monitor session — the
27773
+ * UI shows the manual level slider ONLY when `mode === 'manual'`.
27774
+ */
27775
+ setLightMode: method(object({
27776
+ deviceId: number(),
27777
+ mode: NavigationLightModeSchema,
27778
+ level: number().min(40).max(100).optional()
27779
+ }), _void(), { kind: "mutation" }),
27780
+ /** Set the MANUAL fill-light level (40..100). Implies `manual` mode. */
27781
+ setLightLevel: method(object({
27782
+ deviceId: number(),
27783
+ level: number().min(40).max(100)
27784
+ }), _void(), { kind: "mutation" }),
27785
+ /**
27786
+ * Per-device FEATURE-FLAG report for the general primitives — drives which
27787
+ * controls the UI shows (the per-entry flags for the dictionary come back on
27788
+ * `listActions`).
27789
+ */
27790
+ getFeatures: method(object({ deviceId: number() }), NavigationFeaturesSchema)
27791
+ },
27792
+ events: { onStatusChanged: { data: object({
27793
+ deviceId: number(),
27794
+ status: NavigationStatusSchema
27795
+ }) } },
27796
+ status: {
27797
+ schema: NavigationStatusSchema,
27798
+ kind: "push"
27799
+ },
27800
+ /**
27801
+ * Runtime-state slice mirrored by the kernel. The navigation panel watches it
27802
+ * for live mode / follow / flash changes.
27803
+ */
27804
+ runtimeState: NavigationRuntimeStateSchema,
27805
+ /**
27806
+ * Runtime-state durability: **session** — like `vacuum-control`, a restored
27807
+ * `mode: cleaning` / `following: true` is a robot that is not actually doing
27808
+ * that. The live handle re-publishes on connect.
27809
+ *
27810
+ * See `RuntimeStateDurability`. Enforced by
27811
+ * `scripts/check-runtime-state-durability.ts`.
27812
+ */
27813
+ durability: "session"
27814
+ };
27815
+ /**
27816
+ * Network-link snapshot. Same shape for every provider (a Reolink wifi
27817
+ * camera, a Home Assistant device with a signal-strength sensor, a Tapo
27818
+ * plug): one slice under `device.runtimeState['network-link']`, one badge,
27819
+ * one Home Assistant projection.
27820
+ */
27821
+ var NetworkLinkStatusSchema = object({
27822
+ /** The link the device is on. `'unknown'` = not read yet, not "no link". */
27823
+ type: _enum([
27824
+ "wifi",
27825
+ "ethernet",
27826
+ "cellular",
27827
+ "unknown"
27828
+ ]),
27829
+ /**
27830
+ * Link quality, 0..100 inclusive, normalised by the provider from whatever
27831
+ * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
27832
+ * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
27833
+ * one whose reading has not landed must not be drawn at 0 %. Consumers
27834
+ * SKIP a null rather than coerce it.
27835
+ */
27836
+ signalPercent: number().min(0).max(100).nullable(),
27837
+ /** Raw received signal strength in dBm, when the firmware reports one. */
27838
+ rssiDbm: number().optional(),
27839
+ /** Network name of a wireless link, when the firmware reports it. */
27840
+ ssid: string().optional(),
27841
+ /** Ms epoch of the last observation. Lets consumers reason about freshness. */
27842
+ lastUpdated: number()
27843
+ });
27844
+ var networkLinkCapability = {
27845
+ name: "network-link",
27846
+ scope: "device",
27847
+ deviceNative: true,
27848
+ mode: "singleton",
27849
+ deviceTypes: [
27850
+ DeviceType.Camera,
27851
+ DeviceType.Sensor,
27852
+ DeviceType.Button,
27853
+ DeviceType.Switch,
27854
+ DeviceType.Light,
27855
+ DeviceType.Lock,
27856
+ DeviceType.Siren
27857
+ ],
27858
+ methods: {},
27859
+ events: {
27860
+ /**
27861
+ * Emitted whenever the cached status changes (a link switch, a signal
27862
+ * reading that moved). Mirrored on the parent chain by the
27863
+ * DeviceEventPropagator like `battery.onStatusChanged`.
27864
+ */
27865
+ onStatusChanged: { data: object({
27866
+ deviceId: number(),
27867
+ status: NetworkLinkStatusSchema
27868
+ }) } },
27869
+ status: {
27870
+ schema: NetworkLinkStatusSchema,
27871
+ kind: "push",
27872
+ empty: {
27873
+ type: "unknown",
27874
+ signalPercent: null,
27875
+ lastUpdated: 0
27876
+ }
27877
+ },
27878
+ /**
27879
+ * Runtime-state slice — every provider stores the same shape under
27880
+ * `device.runtimeState['network-link']`, read once by the badge and the
27881
+ * Home Assistant projector regardless of the driver.
27882
+ */
27883
+ runtimeState: NetworkLinkStatusSchema,
27884
+ /**
27885
+ * Runtime-state durability: **restored** — a link reading is slow to
27886
+ * change and a sleeping battery camera may not report for hours; the
27887
+ * restored slice is what the badge shows until the next read.
27888
+ *
27889
+ * See `RuntimeStateDurability`. Enforced by
27890
+ * `scripts/check-runtime-state-durability.ts`.
27891
+ */
27892
+ durability: "restored",
27893
+ /** Clock fields: written, but excluded from the compare that decides
27894
+ * whether persisting is worth a SQLite commit. */
27895
+ volatileStateFields: ["lastUpdated"]
27896
+ };
27897
+ /**
27477
27898
  * network-quality — system-scoped singleton capability tracking RTT,
27478
27899
  * jitter, and observed/peak bandwidth per device + per client.
27479
27900
  *
@@ -29054,287 +29475,6 @@ var ptzAutotrackCapability = {
29054
29475
  */
29055
29476
  durability: "session"
29056
29477
  };
29057
- /**
29058
- * `navigation` — a device-scoped capability that natively expresses the FULL
29059
- * navigation / action surface of a robot that DRIVES ITSELF and carries an
29060
- * on-board camera (the Dreame robot-vacuum camera is the first provider).
29061
- *
29062
- * Why a NEW cap rather than overloading `ptz`:
29063
- * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
29064
- * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
29065
- * The two are different physical models: PTZ is absolute-position + presets,
29066
- * navigation is momentary drive nudges + discrete robot ACTIONS
29067
- * (dock / spot-clean / follow-pet / go-to-point / …).
29068
- * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
29069
- * the reverse:
29070
- * 1. a native CamStack navigation panel (data-driven from `listActions`
29071
- * / `getOptions`), and
29072
- * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
29073
- * robot camera shows up in the existing PTZ control path without every
29074
- * PTZ provider learning about robots. The mapping lives in the adapter,
29075
- * not here (see the addon design note):
29076
- * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
29077
- * ptz.stop() → navigation.stop()
29078
- * ptz.goHome() → navigation.runAction('goHome')
29079
- * ptz.getPresets() → navigation.listActions() (id→preset)
29080
- * ptz.goToPreset(id) → navigation.runAction(id)
29081
- *
29082
- * ## Continuous drive
29083
- *
29084
- * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
29085
- * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
29086
- * one `stop()` on release — exactly like the robot app's remote-drive joystick.
29087
- * The provider forwards EACH `move` to one drive write; it must NOT debounce or
29088
- * coalesce them. The UI owns the cadence.
29089
- *
29090
- * ## The action dictionary
29091
- *
29092
- * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
29093
- * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
29094
- * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
29095
- * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
29096
- * vendor-specific list. `kind: 'action'` entries are triggered with
29097
- * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
29098
- * (the entry carries the `soundId` to pass). The general primitives — `move`,
29099
- * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
29100
- *
29101
- * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
29102
- * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
29103
- * that the currently-published `@apocaliss92/nodedreame` already exposes on
29104
- * every device handle. A future nodedreame publish adds a typed
29105
- * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
29106
- * provider can then swap the raw calls for the typed methods with no change to
29107
- * THIS contract.
29108
- */
29109
- /**
29110
- * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
29111
- * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
29112
- * halts it.
29113
- *
29114
- * - `pan` — turn: negative = left, positive = right, 0 = straight.
29115
- * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
29116
- * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
29117
- * vector by it (drivers without proportional drive ignore it).
29118
- *
29119
- * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
29120
- * axis alone; an all-undefined nudge is a no-op.
29121
- */
29122
- var NavigationMoveCommandSchema = object({
29123
- pan: number().min(-1).max(1).optional(),
29124
- tilt: number().min(-1).max(1).optional(),
29125
- speed: number().min(0).max(1).optional()
29126
- });
29127
- /**
29128
- * The enumerated discrete actions a navigation-capable robot can perform via
29129
- * `runAction`. This is the CLOSED vocabulary; a given device advertises the
29130
- * subset it supports through `listActions`. Sounds are NOT here — they go through
29131
- * `playSound` (see the `sound` dictionary entries).
29132
- */
29133
- var NavigationActionIdSchema = _enum([
29134
- "goHome",
29135
- "locate",
29136
- "spotClean",
29137
- "findPet",
29138
- "personFollow",
29139
- "stop",
29140
- "startClean",
29141
- "pauseClean",
29142
- "dockWash",
29143
- "autoEmpty",
29144
- "flashOn",
29145
- "flashOff"
29146
- ]);
29147
- /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
29148
- var NavigationEntryKindSchema = _enum(["action", "sound"]);
29149
- /**
29150
- * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
29151
- * native panel and the PTZ mimic render as a button.
29152
- *
29153
- * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
29154
- * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
29155
- * (`sound:meow`) whose `soundId` is passed to `playSound`.
29156
- * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
29157
- * - `label` — operator-facing English label.
29158
- * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
29159
- * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
29160
- * PTZ render ONLY enabled entries. Data-driven: the provider
29161
- * flips it from config, never by editing code.
29162
- */
29163
- var NavigationActionEntrySchema = object({
29164
- id: string(),
29165
- kind: NavigationEntryKindSchema,
29166
- label: string(),
29167
- icon: string(),
29168
- /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
29169
- soundId: number().int().optional(),
29170
- /** Per-device feature flag — render this entry only when true. */
29171
- enabled: boolean()
29172
- });
29173
- /** Coordinates for `goToPoint` — a point on the robot's live map. */
29174
- var NavigationPointSchema = object({
29175
- x: number(),
29176
- y: number()
29177
- });
29178
- /**
29179
- * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
29180
- * The cap reports which are enabled so the UI / PTZ render only the controls
29181
- * that are turned on for THIS device. Data-driven: the provider derives these
29182
- * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
29183
- * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
29184
- * that are not dictionary entries.
29185
- *
29186
- * - `move` / `stop` — the momentary drive joystick.
29187
- * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
29188
- * map-coordinate plumbing is wired.
29189
- * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
29190
- * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
29191
- * - `light` — the on/off fill-light toggle (works anytime).
29192
- * - `lightMode` — the auto/manual selector + manual level slider (a
29193
- * camera-service control; needs an active stream).
29194
- */
29195
- var NavigationFeaturesSchema = object({
29196
- move: boolean(),
29197
- stop: boolean(),
29198
- goToPoint: boolean(),
29199
- runAction: boolean(),
29200
- playSound: boolean(),
29201
- light: boolean(),
29202
- lightMode: boolean()
29203
- });
29204
- /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
29205
- var NavigationLightModeSchema = _enum(["auto", "manual"]);
29206
- /**
29207
- * Live navigation state so the UI can reflect what the robot is doing:
29208
- * - `mode` — coarse activity (idle / cleaning / following / …).
29209
- * - `following` — person/pet follow is currently armed.
29210
- * - `flash` — the on-camera fill light is on.
29211
- * - `lightMode` — auto vs manual fill-light mode.
29212
- * - `lightLevel` — manual fill-light level (40..100); meaningful when
29213
- * `lightMode === 'manual'`.
29214
- */
29215
- var NavigationStatusSchema = object({
29216
- mode: _enum([
29217
- "idle",
29218
- "cleaning",
29219
- "spot",
29220
- "following",
29221
- "goto",
29222
- "returning",
29223
- "paused",
29224
- "unknown"
29225
- ]),
29226
- following: boolean(),
29227
- flash: boolean(),
29228
- lightMode: NavigationLightModeSchema,
29229
- lightLevel: number().min(40).max(100),
29230
- /** Ms epoch when the slice was last updated. */
29231
- lastChangedAt: number()
29232
- });
29233
- /**
29234
- * Runtime-state slice owned by this cap (kernel-managed: validated, mirrored,
29235
- * observable). Adds `lastFetchedAt` on top of the status shape per the
29236
- * convention.
29237
- */
29238
- var NavigationRuntimeStateSchema = NavigationStatusSchema.extend({ lastFetchedAt: number() });
29239
- var navigationCapability = {
29240
- name: "navigation",
29241
- scope: "device",
29242
- deviceNative: true,
29243
- mode: "singleton",
29244
- deviceTypes: [DeviceType.Camera],
29245
- deviceConfig: { ui: {
29246
- kind: "widget",
29247
- widgetId: "host/navigation-panel",
29248
- tab: "navigation",
29249
- topTab: true,
29250
- label: "Navigation",
29251
- order: 0
29252
- } },
29253
- methods: {
29254
- /**
29255
- * Momentary drive nudge (the robot moves). `protected` — mirrors
29256
- * `ptz.continuousMove` so the Viewer navigation panel (and the PTZ-mimic
29257
- * path) works for any authenticated user, not admin-only. The UI sends
29258
- * these at ~1 Hz while a control is held; the provider forwards each one to
29259
- * a single drive write WITHOUT debouncing.
29260
- */
29261
- move: method(NavigationMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
29262
- /** Halt all motion immediately (zero drive vector). */
29263
- stop: method(object({ deviceId: number() }), _void(), { kind: "mutation" }),
29264
- /** Send the robot to a point on its live map. */
29265
- goToPoint: method(NavigationPointSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
29266
- /**
29267
- * Enumerate the discrete controls THIS device supports (data-driven UI +
29268
- * PTZ mimic). Camera-probed subset of {@link NAVIGATION_ACTION_CATALOG}.
29269
- */
29270
- listActions: method(object({ deviceId: number() }), array(NavigationActionEntrySchema)),
29271
- /**
29272
- * Run one discrete action (a `kind:'action'` dictionary entry). Invalid /
29273
- * unsupported action ids are rejected by the provider.
29274
- */
29275
- runAction: method(object({
29276
- deviceId: number(),
29277
- actionId: NavigationActionIdSchema
29278
- }), _void(), { kind: "mutation" }),
29279
- /** Play a sound by its wire id (the `soundId` of a `kind:'sound'` entry). */
29280
- playSound: method(object({
29281
- deviceId: number(),
29282
- soundId: number().int()
29283
- }), _void(), { kind: "mutation" }),
29284
- /**
29285
- * Turn the on-camera fill light on / off (the `OpenFullLight` control —
29286
- * works anytime, no active stream required).
29287
- */
29288
- setLightOn: method(object({
29289
- deviceId: number(),
29290
- on: boolean()
29291
- }), _void(), { kind: "mutation" }),
29292
- /**
29293
- * Set the fill-light mode (auto vs manual). `manual` optionally carries the
29294
- * initial `level`. The auto/manual + level control is a CAMERA-service
29295
- * action that generally needs an active camera stream/monitor session — the
29296
- * UI shows the manual level slider ONLY when `mode === 'manual'`.
29297
- */
29298
- setLightMode: method(object({
29299
- deviceId: number(),
29300
- mode: NavigationLightModeSchema,
29301
- level: number().min(40).max(100).optional()
29302
- }), _void(), { kind: "mutation" }),
29303
- /** Set the MANUAL fill-light level (40..100). Implies `manual` mode. */
29304
- setLightLevel: method(object({
29305
- deviceId: number(),
29306
- level: number().min(40).max(100)
29307
- }), _void(), { kind: "mutation" }),
29308
- /**
29309
- * Per-device FEATURE-FLAG report for the general primitives — drives which
29310
- * controls the UI shows (the per-entry flags for the dictionary come back on
29311
- * `listActions`).
29312
- */
29313
- getFeatures: method(object({ deviceId: number() }), NavigationFeaturesSchema)
29314
- },
29315
- events: { onStatusChanged: { data: object({
29316
- deviceId: number(),
29317
- status: NavigationStatusSchema
29318
- }) } },
29319
- status: {
29320
- schema: NavigationStatusSchema,
29321
- kind: "push"
29322
- },
29323
- /**
29324
- * Runtime-state slice mirrored by the kernel. The navigation panel watches it
29325
- * for live mode / follow / flash changes.
29326
- */
29327
- runtimeState: NavigationRuntimeStateSchema,
29328
- /**
29329
- * Runtime-state durability: **session** — like `vacuum-control`, a restored
29330
- * `mode: cleaning` / `following: true` is a robot that is not actually doing
29331
- * that. The live handle re-publishes on connect.
29332
- *
29333
- * See `RuntimeStateDurability`. Enforced by
29334
- * `scripts/check-runtime-state-durability.ts`.
29335
- */
29336
- durability: "session"
29337
- };
29338
29478
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
29339
29479
  kind: "mutation",
29340
29480
  auth: "admin"
@@ -38797,6 +38937,12 @@ Object.freeze({
38797
38937
  addonId: null,
38798
38938
  access: "view"
38799
38939
  },
38940
+ "storage.listDrainProgress": {
38941
+ capName: "storage",
38942
+ capScope: "system",
38943
+ addonId: null,
38944
+ access: "view"
38945
+ },
38800
38946
  "storage.listLocationDeclarations": {
38801
38947
  capName: "storage",
38802
38948
  capScope: "system",
@@ -38941,6 +39087,12 @@ Object.freeze({
38941
39087
  addonId: null,
38942
39088
  access: "view"
38943
39089
  },
39090
+ "storageOccupancy.getOccupancy": {
39091
+ capName: "storage-occupancy",
39092
+ capScope: "system",
39093
+ addonId: null,
39094
+ access: "view"
39095
+ },
38944
39096
  "storageProvider.abortUpload": {
38945
39097
  capName: "storage-provider",
38946
39098
  capScope: "system",