@camstack/addon-provider-rademacher 0.2.78 → 0.2.80

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
@@ -983,7 +983,7 @@ var Rademacher = class {
983
983
  }
984
984
  };
985
985
  //#endregion
986
- //#region ../types/dist/event-category-zAv7pMUz.mjs
986
+ //#region ../types/dist/event-category-CnLqLOKs.mjs
987
987
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
988
988
  EventCategory["SystemBoot"] = "system.boot";
989
989
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -1178,6 +1178,19 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
1178
1178
  EventCategory["ProcessCrashed"] = "process.crashed";
1179
1179
  EventCategory["ProcessRestartScheduled"] = "process.restart_scheduled";
1180
1180
  EventCategory["ProcessRestarted"] = "process.restarted";
1181
+ /**
1182
+ * The SET of storage locations changed — one was created, edited, enabled,
1183
+ * disabled or deleted through `storage.upsertLocation` / `deleteLocation`.
1184
+ *
1185
+ * Telemetry, not a transaction (D8/D11): every consumer that re-resolves on
1186
+ * it must also converge on its own periodic path, because a dropped event
1187
+ * must not leave a node writing to yesterday's disk set forever. It exists
1188
+ * because there was NO signal at all — an operator who added a second
1189
+ * recordings disk in the admin UI got nothing, and the recorder kept its
1190
+ * resolved locations until something else happened to re-resolve them
1191
+ * (D387). Payload `StorageLocationsChangedPayload`.
1192
+ */
1193
+ EventCategory["StorageLocationsChanged"] = "storage.locations-changed";
1181
1194
  EventCategory["RecordingStarted"] = "recording.started";
1182
1195
  EventCategory["RecordingStopped"] = "recording.stopped";
1183
1196
  EventCategory["RecordingError"] = "recording.error";
@@ -9520,6 +9533,21 @@ var StorageCleanupJobSchema = object({
9520
9533
  });
9521
9534
  var StorageCleanupStatusInputSchema = object({ jobId: string().optional() });
9522
9535
  /**
9536
+ * The one typed state of a storage location. Authoritative Zod schema — the TS
9537
+ * alias below is `z.infer<>` of it, never a second spelling.
9538
+ */
9539
+ var StorageLocationModeSchema = _enum([
9540
+ "active",
9541
+ "readonly",
9542
+ "drain",
9543
+ "disabled"
9544
+ ]);
9545
+ _enum([
9546
+ "normal",
9547
+ "never",
9548
+ "drain"
9549
+ ]);
9550
+ /**
9523
9551
  * `StorageLocationType` — an addon-declared id that identifies the *kind* of
9524
9552
  * storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
9525
9553
  * so the persisted record schema and the consumer-facing cap can both consume it
@@ -9585,6 +9613,21 @@ var StorageLocationSchema = object({
9585
9613
  * stops existing rather than being re-derived on every read.
9586
9614
  */
9587
9615
  enabled: boolean().optional(),
9616
+ /**
9617
+ * THE state of this location (D385), and the only authority on what may be
9618
+ * written, read or evicted here. Interpreted in exactly one place —
9619
+ * `storage-location-mode.ts` — which also folds the legacy
9620
+ * `enabled` / `config.readOnly` pair into a mode so an old row is never
9621
+ * ambiguous.
9622
+ *
9623
+ * OPTIONAL only for the wire and for rows written before D385: absence is
9624
+ * resolved by `resolveLocationMode`, and the orchestrator stamps every
9625
+ * unstamped row ONCE at hydrate so absence stops existing rather than being
9626
+ * re-derived on every read. `enabled` survives one release as a DERIVED
9627
+ * mirror (`mode === 'active'`); `withLocationMode` is the only writer of
9628
+ * either, so the two cannot disagree.
9629
+ */
9630
+ mode: StorageLocationModeSchema.optional(),
9588
9631
  /** COMPUTED at read time by the orchestrator (statfs of the backing volume
9589
9632
  * for node-local locations it can reach) — never persisted, absent when the
9590
9633
  * volume is remote/unreachable. The single capacity truth every UI reads. */
@@ -9592,11 +9635,46 @@ var StorageLocationSchema = object({
9592
9635
  totalBytes: number(),
9593
9636
  availableBytes: number()
9594
9637
  }).nullable().optional(),
9638
+ /**
9639
+ * How much of that volume CamStack ITSELF holds on this location (D388) —
9640
+ * COMPUTED at read time from the `storage-occupancy` providers' own figures,
9641
+ * never persisted, never a filesystem walk.
9642
+ *
9643
+ * **ABSENT MEANS UNKNOWN, never zero.** No provider has reported for this
9644
+ * location yet — nobody stores here, the owning addon is down, or the first
9645
+ * refresh has not completed. A UI must omit the segment rather than draw it
9646
+ * at zero, which would claim we occupy nothing (D315). It is an OBJECT and
9647
+ * not a bare number precisely so that a `?? 0` on the consuming side has to
9648
+ * be spelled out loud instead of appearing by accident.
9649
+ *
9650
+ * `measuredAtMs` is the OLDEST contributing measurement, so it is honest
9651
+ * about the whole figure rather than about its freshest part.
9652
+ */
9653
+ owned: object({
9654
+ bytes: number().int().nonnegative(),
9655
+ measuredAtMs: number().int().nonnegative()
9656
+ }).optional(),
9595
9657
  createdAt: number(),
9596
9658
  updatedAt: number()
9597
9659
  });
9598
9660
  object({ isDefault: boolean().optional() });
9599
9661
  /**
9662
+ * How far a `drain` has got (D386) — the read a UI renders, and nothing more.
9663
+ *
9664
+ * `estimatedEmptyAtMs` is derived from the growth the ratchet has actually
9665
+ * OBSERVED and is `null` when it has observed none. Never a fabricated date: a
9666
+ * drain with no observed growth has no honest ETA, and inventing one is how an
9667
+ * operator learns not to believe the screen.
9668
+ */
9669
+ var StorageDrainProgressSchema = object({
9670
+ locationId: string(),
9671
+ startedAtMs: number(),
9672
+ startBytes: number(),
9673
+ bytesRemaining: number(),
9674
+ drained: boolean(),
9675
+ estimatedEmptyAtMs: number().nullable()
9676
+ });
9677
+ /**
9600
9678
  * Reference accepted by consumer-facing `api.storage.*` calls.
9601
9679
  * Either:
9602
9680
  * - a `StorageLocationType` (e.g. `'backups'`) → the sole location of that type
@@ -21405,8 +21483,25 @@ var occupancyRecheckFramesField = {
21405
21483
  * (analyzer attaches detected `regions[]`; onboard does not — the
21406
21484
  * camera typically only reports a binary signal plus an optional
21407
21485
  * channel/AI class which lives in dedicated event channels).
21408
- */
21409
- var MotionSourceEnum = _enum(["onboard", "analyzer"]);
21486
+ *
21487
+ * - `onboard` — the camera's firmware said something moved.
21488
+ * - `analyzer` — this runner's frame-diff said so, and attaches `regions[]`.
21489
+ * - `device-activity` — the DEVICE said it is doing its job: the
21490
+ * `recording-signal` LEVEL the same device raises for the recorder
21491
+ * ([D380](../../../../docs/decisions/adr-0380-a-device-decided-recording-is-a-mode-with-no-schedule-seeded-once.md)),
21492
+ * republished as a motion source. It attaches **nothing** — no regions, no
21493
+ * class: the only fact it carries is that the device is active, and a robot
21494
+ * vacuum that is itself the moving object has no region worth sending. It is
21495
+ * a LEVEL, so unlike `onboard` it has a real falling edge, and unlike
21496
+ * `analyzer` it must not open the frame-diff side-channel — the runner's
21497
+ * `handleOnboardMotionAnalyzer` gate is `source === 'onboard'` and stays that
21498
+ * way ([D392](../../../../docs/decisions/adr-0392-a-device-that-says-it-is-working-is-a-motion-source-of-its-own.md)).
21499
+ */
21500
+ var MotionSourceEnum = _enum([
21501
+ "onboard",
21502
+ "analyzer",
21503
+ "device-activity"
21504
+ ]);
21410
21505
  /**
21411
21506
  * List of motion sources active on a camera. Empty array is valid:
21412
21507
  * "no source" — happens for battery cams without firmware motion when
@@ -22925,7 +23020,7 @@ method(object({
22925
23020
  }), _void(), {
22926
23021
  kind: "mutation",
22927
23022
  auth: "admin"
22928
- }), method(object({ id: string() }), object({
23023
+ }), method(_void(), array(StorageDrainProgressSchema).readonly()), method(object({ id: string() }), object({
22929
23024
  ok: boolean(),
22930
23025
  error: string().optional()
22931
23026
  }), { auth: "admin" }), method(_void(), array(ProviderListEntrySchema).readonly()), method(object({
@@ -22995,6 +23090,51 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
22995
23090
  kind: "mutation",
22996
23091
  auth: "admin"
22997
23092
  }), method(object({}), array(StorageMigrationJobSchema).readonly(), { auth: "admin" });
23093
+ /**
23094
+ * `storage-occupancy` — how many bytes an addon actually HOLDS on a storage
23095
+ * location (D388).
23096
+ *
23097
+ * ## Why this is not `storage-evictable`
23098
+ *
23099
+ * `storage-evictable.getEvictableUsage` looks like the same question and is
23100
+ * not, in two ways that both matter and both bite hardest on the locations an
23101
+ * operator most wants a figure for:
23102
+ *
23103
+ * - it reports the whole eviction DOMAIN, not the location. `recordings:default`
23104
+ * and `recordingsLow:default` deliberately share one root and evict as one
23105
+ * oldest-first pool, so both answer with the SAME combined total. As an
23106
+ * occupancy figure that double-counts the disk.
23107
+ * - it reports ZERO for a location whose eviction policy is `never` (D385) —
23108
+ * a `readonly` or `disabled` disk. Those are exactly the disks an operator
23109
+ * is retiring and staring at.
23110
+ *
23111
+ * So this is its own contract with its own quantity, and the quantity is
23112
+ * OCCUPIED: every byte the addon holds on that location, whether or not it
23113
+ * would ever be willing to delete it. A provider that can only answer
23114
+ * "evictable" must not register here — a number that silently means different
23115
+ * things per class is worse than no number.
23116
+ *
23117
+ * ## Absence is an answer
23118
+ *
23119
+ * A location nobody reports for is UNKNOWN, never zero (D315). The orchestrator
23120
+ * stamps `StorageLocation.owned` only for locations it has a report for, and
23121
+ * the field is an OBJECT rather than a bare number so that a `?? 0` on the
23122
+ * consuming side has to be written out loud instead of appearing by accident.
23123
+ *
23124
+ * `internal: true` — consumed by the orchestrator's `listLocations` stamp, never
23125
+ * a public client surface. Clients read the stamped `StorageLocation.owned`.
23126
+ */
23127
+ /** One provider's occupancy answer for one location. */
23128
+ var StorageOccupancyReportSchema = object({
23129
+ locationId: string(),
23130
+ /** Bytes this provider holds on THAT location — not its eviction domain, and
23131
+ * not net of what it is willing to delete. */
23132
+ ownedBytes: number().int().nonnegative(),
23133
+ /** When the provider last actually measured this. The orchestrator carries it
23134
+ * through so a UI can say how old the figure is instead of implying "now". */
23135
+ measuredAtMs: number().int().nonnegative()
23136
+ });
23137
+ method(object({ locationIds: array(string()).readonly() }), array(StorageOccupancyReportSchema).readonly(), { auth: "admin" });
22998
23138
  var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
22999
23139
  providerId: string().min(1),
23000
23140
  displayName: string().min(1),
@@ -24830,88 +24970,6 @@ onStatusChanged: { data: object({
24830
24970
  volatileStateFields: ["lastUpdated"]
24831
24971
  };
24832
24972
  /**
24833
- * Network-link snapshot. Same shape for every provider (a Reolink wifi
24834
- * camera, a Home Assistant device with a signal-strength sensor, a Tapo
24835
- * plug): one slice under `device.runtimeState['network-link']`, one badge,
24836
- * one Home Assistant projection.
24837
- */
24838
- var NetworkLinkStatusSchema = object({
24839
- /** The link the device is on. `'unknown'` = not read yet, not "no link". */
24840
- type: _enum([
24841
- "wifi",
24842
- "ethernet",
24843
- "cellular",
24844
- "unknown"
24845
- ]),
24846
- /**
24847
- * Link quality, 0..100 inclusive, normalised by the provider from whatever
24848
- * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
24849
- * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
24850
- * one whose reading has not landed must not be drawn at 0 %. Consumers
24851
- * SKIP a null rather than coerce it.
24852
- */
24853
- signalPercent: number().min(0).max(100).nullable(),
24854
- /** Raw received signal strength in dBm, when the firmware reports one. */
24855
- rssiDbm: number().optional(),
24856
- /** Network name of a wireless link, when the firmware reports it. */
24857
- ssid: string().optional(),
24858
- /** Ms epoch of the last observation. Lets consumers reason about freshness. */
24859
- lastUpdated: number()
24860
- });
24861
- var networkLinkCapability = {
24862
- name: "network-link",
24863
- scope: "device",
24864
- deviceNative: true,
24865
- mode: "singleton",
24866
- deviceTypes: [
24867
- DeviceType.Camera,
24868
- DeviceType.Sensor,
24869
- DeviceType.Button,
24870
- DeviceType.Switch,
24871
- DeviceType.Light,
24872
- DeviceType.Lock,
24873
- DeviceType.Siren
24874
- ],
24875
- methods: {},
24876
- events: {
24877
- /**
24878
- * Emitted whenever the cached status changes (a link switch, a signal
24879
- * reading that moved). Mirrored on the parent chain by the
24880
- * DeviceEventPropagator like `battery.onStatusChanged`.
24881
- */
24882
- onStatusChanged: { data: object({
24883
- deviceId: number(),
24884
- status: NetworkLinkStatusSchema
24885
- }) } },
24886
- status: {
24887
- schema: NetworkLinkStatusSchema,
24888
- kind: "push",
24889
- empty: {
24890
- type: "unknown",
24891
- signalPercent: null,
24892
- lastUpdated: 0
24893
- }
24894
- },
24895
- /**
24896
- * Runtime-state slice — every provider stores the same shape under
24897
- * `device.runtimeState['network-link']`, read once by the badge and the
24898
- * Home Assistant projector regardless of the driver.
24899
- */
24900
- runtimeState: NetworkLinkStatusSchema,
24901
- /**
24902
- * Runtime-state durability: **restored** — a link reading is slow to
24903
- * change and a sleeping battery camera may not report for hours; the
24904
- * restored slice is what the badge shows until the next read.
24905
- *
24906
- * See `RuntimeStateDurability`. Enforced by
24907
- * `scripts/check-runtime-state-durability.ts`.
24908
- */
24909
- durability: "restored",
24910
- /** Clock fields: written, but excluded from the compare that decides
24911
- * whether persisting is worth a SQLite commit. */
24912
- volatileStateFields: ["lastUpdated"]
24913
- };
24914
- /**
24915
24973
  * Generic boolean sensor — last-resort fallback when no domain-
24916
24974
  * specific binary cap fits (Home Assistant `binary_sensor` without a
24917
24975
  * known `device_class`, or a domain we haven't typed yet). Pure
@@ -28441,6 +28499,369 @@ var nativeObjectDetectionCapability = {
28441
28499
  volatileStateFields: ["lastFetchedAt"]
28442
28500
  };
28443
28501
  /**
28502
+ * `navigation` — a device-scoped capability that natively expresses the FULL
28503
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
28504
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
28505
+ *
28506
+ * Why a NEW cap rather than overloading `ptz`:
28507
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
28508
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
28509
+ * The two are different physical models: PTZ is absolute-position + presets,
28510
+ * navigation is momentary drive nudges + discrete robot ACTIONS
28511
+ * (dock / spot-clean / follow-pet / go-to-point / …).
28512
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
28513
+ * the reverse:
28514
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
28515
+ * / `getOptions`), and
28516
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
28517
+ * robot camera shows up in the existing PTZ control path without every
28518
+ * PTZ provider learning about robots. The mapping lives in the adapter,
28519
+ * not here (see the addon design note):
28520
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
28521
+ * ptz.stop() → navigation.stop()
28522
+ * ptz.goHome() → navigation.runAction('goHome')
28523
+ * ptz.getPresets() → navigation.listActions() (id→preset)
28524
+ * ptz.goToPreset(id) → navigation.runAction(id)
28525
+ *
28526
+ * ## Continuous drive
28527
+ *
28528
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
28529
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
28530
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
28531
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
28532
+ * coalesce them. The UI owns the cadence.
28533
+ *
28534
+ * ## The action dictionary
28535
+ *
28536
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
28537
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
28538
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
28539
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
28540
+ * vendor-specific list. `kind: 'action'` entries are triggered with
28541
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
28542
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
28543
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
28544
+ *
28545
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
28546
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
28547
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
28548
+ * every device handle. A future nodedreame publish adds a typed
28549
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
28550
+ * provider can then swap the raw calls for the typed methods with no change to
28551
+ * THIS contract.
28552
+ */
28553
+ /**
28554
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
28555
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
28556
+ * halts it.
28557
+ *
28558
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
28559
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
28560
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
28561
+ * vector by it (drivers without proportional drive ignore it).
28562
+ *
28563
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
28564
+ * axis alone; an all-undefined nudge is a no-op.
28565
+ */
28566
+ var NavigationMoveCommandSchema = object({
28567
+ pan: number().min(-1).max(1).optional(),
28568
+ tilt: number().min(-1).max(1).optional(),
28569
+ speed: number().min(0).max(1).optional()
28570
+ });
28571
+ /**
28572
+ * The enumerated discrete actions a navigation-capable robot can perform via
28573
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
28574
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
28575
+ * `playSound` (see the `sound` dictionary entries).
28576
+ */
28577
+ var NavigationActionIdSchema = _enum([
28578
+ "goHome",
28579
+ "locate",
28580
+ "spotClean",
28581
+ "findPet",
28582
+ "personFollow",
28583
+ "stop",
28584
+ "startClean",
28585
+ "pauseClean",
28586
+ "dockWash",
28587
+ "autoEmpty",
28588
+ "flashOn",
28589
+ "flashOff"
28590
+ ]);
28591
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
28592
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
28593
+ /**
28594
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
28595
+ * native panel and the PTZ mimic render as a button.
28596
+ *
28597
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
28598
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
28599
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
28600
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
28601
+ * - `label` — operator-facing English label.
28602
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
28603
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
28604
+ * PTZ render ONLY enabled entries. Data-driven: the provider
28605
+ * flips it from config, never by editing code.
28606
+ */
28607
+ var NavigationActionEntrySchema = object({
28608
+ id: string(),
28609
+ kind: NavigationEntryKindSchema,
28610
+ label: string(),
28611
+ icon: string(),
28612
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
28613
+ soundId: number().int().optional(),
28614
+ /** Per-device feature flag — render this entry only when true. */
28615
+ enabled: boolean()
28616
+ });
28617
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
28618
+ var NavigationPointSchema = object({
28619
+ x: number(),
28620
+ y: number()
28621
+ });
28622
+ /**
28623
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
28624
+ * The cap reports which are enabled so the UI / PTZ render only the controls
28625
+ * that are turned on for THIS device. Data-driven: the provider derives these
28626
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
28627
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
28628
+ * that are not dictionary entries.
28629
+ *
28630
+ * - `move` / `stop` — the momentary drive joystick.
28631
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
28632
+ * map-coordinate plumbing is wired.
28633
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
28634
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
28635
+ * - `light` — the on/off fill-light toggle (works anytime).
28636
+ * - `lightMode` — the auto/manual selector + manual level slider (a
28637
+ * camera-service control; needs an active stream).
28638
+ */
28639
+ var NavigationFeaturesSchema = object({
28640
+ move: boolean(),
28641
+ stop: boolean(),
28642
+ goToPoint: boolean(),
28643
+ runAction: boolean(),
28644
+ playSound: boolean(),
28645
+ light: boolean(),
28646
+ lightMode: boolean()
28647
+ });
28648
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
28649
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
28650
+ /**
28651
+ * Live navigation state so the UI can reflect what the robot is doing:
28652
+ * - `mode` — coarse activity (idle / cleaning / following / …).
28653
+ * - `following` — person/pet follow is currently armed.
28654
+ * - `flash` — the on-camera fill light is on.
28655
+ * - `lightMode` — auto vs manual fill-light mode.
28656
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
28657
+ * `lightMode === 'manual'`.
28658
+ */
28659
+ var NavigationStatusSchema = object({
28660
+ mode: _enum([
28661
+ "idle",
28662
+ "cleaning",
28663
+ "spot",
28664
+ "following",
28665
+ "goto",
28666
+ "returning",
28667
+ "paused",
28668
+ "unknown"
28669
+ ]),
28670
+ following: boolean(),
28671
+ flash: boolean(),
28672
+ lightMode: NavigationLightModeSchema,
28673
+ lightLevel: number().min(40).max(100),
28674
+ /** Ms epoch when the slice was last updated. */
28675
+ lastChangedAt: number()
28676
+ });
28677
+ /**
28678
+ * Runtime-state slice owned by this cap (kernel-managed: validated, mirrored,
28679
+ * observable). Adds `lastFetchedAt` on top of the status shape per the
28680
+ * convention.
28681
+ */
28682
+ var NavigationRuntimeStateSchema = NavigationStatusSchema.extend({ lastFetchedAt: number() });
28683
+ var navigationCapability = {
28684
+ name: "navigation",
28685
+ scope: "device",
28686
+ deviceNative: true,
28687
+ mode: "singleton",
28688
+ deviceTypes: [DeviceType.Camera],
28689
+ deviceConfig: { ui: {
28690
+ kind: "widget",
28691
+ widgetId: "host/navigation-panel",
28692
+ tab: "navigation",
28693
+ topTab: true,
28694
+ label: "Navigation",
28695
+ order: 0
28696
+ } },
28697
+ methods: {
28698
+ /**
28699
+ * Momentary drive nudge (the robot moves). `protected` — mirrors
28700
+ * `ptz.continuousMove` so the Viewer navigation panel (and the PTZ-mimic
28701
+ * path) works for any authenticated user, not admin-only. The UI sends
28702
+ * these at ~1 Hz while a control is held; the provider forwards each one to
28703
+ * a single drive write WITHOUT debouncing.
28704
+ */
28705
+ move: method(NavigationMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
28706
+ /** Halt all motion immediately (zero drive vector). */
28707
+ stop: method(object({ deviceId: number() }), _void(), { kind: "mutation" }),
28708
+ /** Send the robot to a point on its live map. */
28709
+ goToPoint: method(NavigationPointSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
28710
+ /**
28711
+ * Enumerate the discrete controls THIS device supports (data-driven UI +
28712
+ * PTZ mimic). Camera-probed subset of {@link NAVIGATION_ACTION_CATALOG}.
28713
+ */
28714
+ listActions: method(object({ deviceId: number() }), array(NavigationActionEntrySchema)),
28715
+ /**
28716
+ * Run one discrete action (a `kind:'action'` dictionary entry). Invalid /
28717
+ * unsupported action ids are rejected by the provider.
28718
+ */
28719
+ runAction: method(object({
28720
+ deviceId: number(),
28721
+ actionId: NavigationActionIdSchema
28722
+ }), _void(), { kind: "mutation" }),
28723
+ /** Play a sound by its wire id (the `soundId` of a `kind:'sound'` entry). */
28724
+ playSound: method(object({
28725
+ deviceId: number(),
28726
+ soundId: number().int()
28727
+ }), _void(), { kind: "mutation" }),
28728
+ /**
28729
+ * Turn the on-camera fill light on / off (the `OpenFullLight` control —
28730
+ * works anytime, no active stream required).
28731
+ */
28732
+ setLightOn: method(object({
28733
+ deviceId: number(),
28734
+ on: boolean()
28735
+ }), _void(), { kind: "mutation" }),
28736
+ /**
28737
+ * Set the fill-light mode (auto vs manual). `manual` optionally carries the
28738
+ * initial `level`. The auto/manual + level control is a CAMERA-service
28739
+ * action that generally needs an active camera stream/monitor session — the
28740
+ * UI shows the manual level slider ONLY when `mode === 'manual'`.
28741
+ */
28742
+ setLightMode: method(object({
28743
+ deviceId: number(),
28744
+ mode: NavigationLightModeSchema,
28745
+ level: number().min(40).max(100).optional()
28746
+ }), _void(), { kind: "mutation" }),
28747
+ /** Set the MANUAL fill-light level (40..100). Implies `manual` mode. */
28748
+ setLightLevel: method(object({
28749
+ deviceId: number(),
28750
+ level: number().min(40).max(100)
28751
+ }), _void(), { kind: "mutation" }),
28752
+ /**
28753
+ * Per-device FEATURE-FLAG report for the general primitives — drives which
28754
+ * controls the UI shows (the per-entry flags for the dictionary come back on
28755
+ * `listActions`).
28756
+ */
28757
+ getFeatures: method(object({ deviceId: number() }), NavigationFeaturesSchema)
28758
+ },
28759
+ events: { onStatusChanged: { data: object({
28760
+ deviceId: number(),
28761
+ status: NavigationStatusSchema
28762
+ }) } },
28763
+ status: {
28764
+ schema: NavigationStatusSchema,
28765
+ kind: "push"
28766
+ },
28767
+ /**
28768
+ * Runtime-state slice mirrored by the kernel. The navigation panel watches it
28769
+ * for live mode / follow / flash changes.
28770
+ */
28771
+ runtimeState: NavigationRuntimeStateSchema,
28772
+ /**
28773
+ * Runtime-state durability: **session** — like `vacuum-control`, a restored
28774
+ * `mode: cleaning` / `following: true` is a robot that is not actually doing
28775
+ * that. The live handle re-publishes on connect.
28776
+ *
28777
+ * See `RuntimeStateDurability`. Enforced by
28778
+ * `scripts/check-runtime-state-durability.ts`.
28779
+ */
28780
+ durability: "session"
28781
+ };
28782
+ /**
28783
+ * Network-link snapshot. Same shape for every provider (a Reolink wifi
28784
+ * camera, a Home Assistant device with a signal-strength sensor, a Tapo
28785
+ * plug): one slice under `device.runtimeState['network-link']`, one badge,
28786
+ * one Home Assistant projection.
28787
+ */
28788
+ var NetworkLinkStatusSchema = object({
28789
+ /** The link the device is on. `'unknown'` = not read yet, not "no link". */
28790
+ type: _enum([
28791
+ "wifi",
28792
+ "ethernet",
28793
+ "cellular",
28794
+ "unknown"
28795
+ ]),
28796
+ /**
28797
+ * Link quality, 0..100 inclusive, normalised by the provider from whatever
28798
+ * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
28799
+ * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
28800
+ * one whose reading has not landed must not be drawn at 0 %. Consumers
28801
+ * SKIP a null rather than coerce it.
28802
+ */
28803
+ signalPercent: number().min(0).max(100).nullable(),
28804
+ /** Raw received signal strength in dBm, when the firmware reports one. */
28805
+ rssiDbm: number().optional(),
28806
+ /** Network name of a wireless link, when the firmware reports it. */
28807
+ ssid: string().optional(),
28808
+ /** Ms epoch of the last observation. Lets consumers reason about freshness. */
28809
+ lastUpdated: number()
28810
+ });
28811
+ var networkLinkCapability = {
28812
+ name: "network-link",
28813
+ scope: "device",
28814
+ deviceNative: true,
28815
+ mode: "singleton",
28816
+ deviceTypes: [
28817
+ DeviceType.Camera,
28818
+ DeviceType.Sensor,
28819
+ DeviceType.Button,
28820
+ DeviceType.Switch,
28821
+ DeviceType.Light,
28822
+ DeviceType.Lock,
28823
+ DeviceType.Siren
28824
+ ],
28825
+ methods: {},
28826
+ events: {
28827
+ /**
28828
+ * Emitted whenever the cached status changes (a link switch, a signal
28829
+ * reading that moved). Mirrored on the parent chain by the
28830
+ * DeviceEventPropagator like `battery.onStatusChanged`.
28831
+ */
28832
+ onStatusChanged: { data: object({
28833
+ deviceId: number(),
28834
+ status: NetworkLinkStatusSchema
28835
+ }) } },
28836
+ status: {
28837
+ schema: NetworkLinkStatusSchema,
28838
+ kind: "push",
28839
+ empty: {
28840
+ type: "unknown",
28841
+ signalPercent: null,
28842
+ lastUpdated: 0
28843
+ }
28844
+ },
28845
+ /**
28846
+ * Runtime-state slice — every provider stores the same shape under
28847
+ * `device.runtimeState['network-link']`, read once by the badge and the
28848
+ * Home Assistant projector regardless of the driver.
28849
+ */
28850
+ runtimeState: NetworkLinkStatusSchema,
28851
+ /**
28852
+ * Runtime-state durability: **restored** — a link reading is slow to
28853
+ * change and a sleeping battery camera may not report for hours; the
28854
+ * restored slice is what the badge shows until the next read.
28855
+ *
28856
+ * See `RuntimeStateDurability`. Enforced by
28857
+ * `scripts/check-runtime-state-durability.ts`.
28858
+ */
28859
+ durability: "restored",
28860
+ /** Clock fields: written, but excluded from the compare that decides
28861
+ * whether persisting is worth a SQLite commit. */
28862
+ volatileStateFields: ["lastUpdated"]
28863
+ };
28864
+ /**
28444
28865
  * network-quality — system-scoped singleton capability tracking RTT,
28445
28866
  * jitter, and observed/peak bandwidth per device + per client.
28446
28867
  *
@@ -30021,287 +30442,6 @@ var ptzAutotrackCapability = {
30021
30442
  */
30022
30443
  durability: "session"
30023
30444
  };
30024
- /**
30025
- * `navigation` — a device-scoped capability that natively expresses the FULL
30026
- * navigation / action surface of a robot that DRIVES ITSELF and carries an
30027
- * on-board camera (the Dreame robot-vacuum camera is the first provider).
30028
- *
30029
- * Why a NEW cap rather than overloading `ptz`:
30030
- * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
30031
- * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
30032
- * The two are different physical models: PTZ is absolute-position + presets,
30033
- * navigation is momentary drive nudges + discrete robot ACTIONS
30034
- * (dock / spot-clean / follow-pet / go-to-point / …).
30035
- * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
30036
- * the reverse:
30037
- * 1. a native CamStack navigation panel (data-driven from `listActions`
30038
- * / `getOptions`), and
30039
- * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
30040
- * robot camera shows up in the existing PTZ control path without every
30041
- * PTZ provider learning about robots. The mapping lives in the adapter,
30042
- * not here (see the addon design note):
30043
- * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
30044
- * ptz.stop() → navigation.stop()
30045
- * ptz.goHome() → navigation.runAction('goHome')
30046
- * ptz.getPresets() → navigation.listActions() (id→preset)
30047
- * ptz.goToPreset(id) → navigation.runAction(id)
30048
- *
30049
- * ## Continuous drive
30050
- *
30051
- * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
30052
- * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
30053
- * one `stop()` on release — exactly like the robot app's remote-drive joystick.
30054
- * The provider forwards EACH `move` to one drive write; it must NOT debounce or
30055
- * coalesce them. The UI owns the cadence.
30056
- *
30057
- * ## The action dictionary
30058
- *
30059
- * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
30060
- * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
30061
- * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
30062
- * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
30063
- * vendor-specific list. `kind: 'action'` entries are triggered with
30064
- * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
30065
- * (the entry carries the `soundId` to pass). The general primitives — `move`,
30066
- * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
30067
- *
30068
- * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
30069
- * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
30070
- * that the currently-published `@apocaliss92/nodedreame` already exposes on
30071
- * every device handle. A future nodedreame publish adds a typed
30072
- * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
30073
- * provider can then swap the raw calls for the typed methods with no change to
30074
- * THIS contract.
30075
- */
30076
- /**
30077
- * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
30078
- * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
30079
- * halts it.
30080
- *
30081
- * - `pan` — turn: negative = left, positive = right, 0 = straight.
30082
- * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
30083
- * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
30084
- * vector by it (drivers without proportional drive ignore it).
30085
- *
30086
- * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
30087
- * axis alone; an all-undefined nudge is a no-op.
30088
- */
30089
- var NavigationMoveCommandSchema = object({
30090
- pan: number().min(-1).max(1).optional(),
30091
- tilt: number().min(-1).max(1).optional(),
30092
- speed: number().min(0).max(1).optional()
30093
- });
30094
- /**
30095
- * The enumerated discrete actions a navigation-capable robot can perform via
30096
- * `runAction`. This is the CLOSED vocabulary; a given device advertises the
30097
- * subset it supports through `listActions`. Sounds are NOT here — they go through
30098
- * `playSound` (see the `sound` dictionary entries).
30099
- */
30100
- var NavigationActionIdSchema = _enum([
30101
- "goHome",
30102
- "locate",
30103
- "spotClean",
30104
- "findPet",
30105
- "personFollow",
30106
- "stop",
30107
- "startClean",
30108
- "pauseClean",
30109
- "dockWash",
30110
- "autoEmpty",
30111
- "flashOn",
30112
- "flashOff"
30113
- ]);
30114
- /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
30115
- var NavigationEntryKindSchema = _enum(["action", "sound"]);
30116
- /**
30117
- * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
30118
- * native panel and the PTZ mimic render as a button.
30119
- *
30120
- * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
30121
- * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
30122
- * (`sound:meow`) whose `soundId` is passed to `playSound`.
30123
- * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
30124
- * - `label` — operator-facing English label.
30125
- * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
30126
- * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
30127
- * PTZ render ONLY enabled entries. Data-driven: the provider
30128
- * flips it from config, never by editing code.
30129
- */
30130
- var NavigationActionEntrySchema = object({
30131
- id: string(),
30132
- kind: NavigationEntryKindSchema,
30133
- label: string(),
30134
- icon: string(),
30135
- /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
30136
- soundId: number().int().optional(),
30137
- /** Per-device feature flag — render this entry only when true. */
30138
- enabled: boolean()
30139
- });
30140
- /** Coordinates for `goToPoint` — a point on the robot's live map. */
30141
- var NavigationPointSchema = object({
30142
- x: number(),
30143
- y: number()
30144
- });
30145
- /**
30146
- * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
30147
- * The cap reports which are enabled so the UI / PTZ render only the controls
30148
- * that are turned on for THIS device. Data-driven: the provider derives these
30149
- * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
30150
- * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
30151
- * that are not dictionary entries.
30152
- *
30153
- * - `move` / `stop` — the momentary drive joystick.
30154
- * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
30155
- * map-coordinate plumbing is wired.
30156
- * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
30157
- * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
30158
- * - `light` — the on/off fill-light toggle (works anytime).
30159
- * - `lightMode` — the auto/manual selector + manual level slider (a
30160
- * camera-service control; needs an active stream).
30161
- */
30162
- var NavigationFeaturesSchema = object({
30163
- move: boolean(),
30164
- stop: boolean(),
30165
- goToPoint: boolean(),
30166
- runAction: boolean(),
30167
- playSound: boolean(),
30168
- light: boolean(),
30169
- lightMode: boolean()
30170
- });
30171
- /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
30172
- var NavigationLightModeSchema = _enum(["auto", "manual"]);
30173
- /**
30174
- * Live navigation state so the UI can reflect what the robot is doing:
30175
- * - `mode` — coarse activity (idle / cleaning / following / …).
30176
- * - `following` — person/pet follow is currently armed.
30177
- * - `flash` — the on-camera fill light is on.
30178
- * - `lightMode` — auto vs manual fill-light mode.
30179
- * - `lightLevel` — manual fill-light level (40..100); meaningful when
30180
- * `lightMode === 'manual'`.
30181
- */
30182
- var NavigationStatusSchema = object({
30183
- mode: _enum([
30184
- "idle",
30185
- "cleaning",
30186
- "spot",
30187
- "following",
30188
- "goto",
30189
- "returning",
30190
- "paused",
30191
- "unknown"
30192
- ]),
30193
- following: boolean(),
30194
- flash: boolean(),
30195
- lightMode: NavigationLightModeSchema,
30196
- lightLevel: number().min(40).max(100),
30197
- /** Ms epoch when the slice was last updated. */
30198
- lastChangedAt: number()
30199
- });
30200
- /**
30201
- * Runtime-state slice owned by this cap (kernel-managed: validated, mirrored,
30202
- * observable). Adds `lastFetchedAt` on top of the status shape per the
30203
- * convention.
30204
- */
30205
- var NavigationRuntimeStateSchema = NavigationStatusSchema.extend({ lastFetchedAt: number() });
30206
- var navigationCapability = {
30207
- name: "navigation",
30208
- scope: "device",
30209
- deviceNative: true,
30210
- mode: "singleton",
30211
- deviceTypes: [DeviceType.Camera],
30212
- deviceConfig: { ui: {
30213
- kind: "widget",
30214
- widgetId: "host/navigation-panel",
30215
- tab: "navigation",
30216
- topTab: true,
30217
- label: "Navigation",
30218
- order: 0
30219
- } },
30220
- methods: {
30221
- /**
30222
- * Momentary drive nudge (the robot moves). `protected` — mirrors
30223
- * `ptz.continuousMove` so the Viewer navigation panel (and the PTZ-mimic
30224
- * path) works for any authenticated user, not admin-only. The UI sends
30225
- * these at ~1 Hz while a control is held; the provider forwards each one to
30226
- * a single drive write WITHOUT debouncing.
30227
- */
30228
- move: method(NavigationMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
30229
- /** Halt all motion immediately (zero drive vector). */
30230
- stop: method(object({ deviceId: number() }), _void(), { kind: "mutation" }),
30231
- /** Send the robot to a point on its live map. */
30232
- goToPoint: method(NavigationPointSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
30233
- /**
30234
- * Enumerate the discrete controls THIS device supports (data-driven UI +
30235
- * PTZ mimic). Camera-probed subset of {@link NAVIGATION_ACTION_CATALOG}.
30236
- */
30237
- listActions: method(object({ deviceId: number() }), array(NavigationActionEntrySchema)),
30238
- /**
30239
- * Run one discrete action (a `kind:'action'` dictionary entry). Invalid /
30240
- * unsupported action ids are rejected by the provider.
30241
- */
30242
- runAction: method(object({
30243
- deviceId: number(),
30244
- actionId: NavigationActionIdSchema
30245
- }), _void(), { kind: "mutation" }),
30246
- /** Play a sound by its wire id (the `soundId` of a `kind:'sound'` entry). */
30247
- playSound: method(object({
30248
- deviceId: number(),
30249
- soundId: number().int()
30250
- }), _void(), { kind: "mutation" }),
30251
- /**
30252
- * Turn the on-camera fill light on / off (the `OpenFullLight` control —
30253
- * works anytime, no active stream required).
30254
- */
30255
- setLightOn: method(object({
30256
- deviceId: number(),
30257
- on: boolean()
30258
- }), _void(), { kind: "mutation" }),
30259
- /**
30260
- * Set the fill-light mode (auto vs manual). `manual` optionally carries the
30261
- * initial `level`. The auto/manual + level control is a CAMERA-service
30262
- * action that generally needs an active camera stream/monitor session — the
30263
- * UI shows the manual level slider ONLY when `mode === 'manual'`.
30264
- */
30265
- setLightMode: method(object({
30266
- deviceId: number(),
30267
- mode: NavigationLightModeSchema,
30268
- level: number().min(40).max(100).optional()
30269
- }), _void(), { kind: "mutation" }),
30270
- /** Set the MANUAL fill-light level (40..100). Implies `manual` mode. */
30271
- setLightLevel: method(object({
30272
- deviceId: number(),
30273
- level: number().min(40).max(100)
30274
- }), _void(), { kind: "mutation" }),
30275
- /**
30276
- * Per-device FEATURE-FLAG report for the general primitives — drives which
30277
- * controls the UI shows (the per-entry flags for the dictionary come back on
30278
- * `listActions`).
30279
- */
30280
- getFeatures: method(object({ deviceId: number() }), NavigationFeaturesSchema)
30281
- },
30282
- events: { onStatusChanged: { data: object({
30283
- deviceId: number(),
30284
- status: NavigationStatusSchema
30285
- }) } },
30286
- status: {
30287
- schema: NavigationStatusSchema,
30288
- kind: "push"
30289
- },
30290
- /**
30291
- * Runtime-state slice mirrored by the kernel. The navigation panel watches it
30292
- * for live mode / follow / flash changes.
30293
- */
30294
- runtimeState: NavigationRuntimeStateSchema,
30295
- /**
30296
- * Runtime-state durability: **session** — like `vacuum-control`, a restored
30297
- * `mode: cleaning` / `following: true` is a robot that is not actually doing
30298
- * that. The live handle re-publishes on connect.
30299
- *
30300
- * See `RuntimeStateDurability`. Enforced by
30301
- * `scripts/check-runtime-state-durability.ts`.
30302
- */
30303
- durability: "session"
30304
- };
30305
30445
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
30306
30446
  kind: "mutation",
30307
30447
  auth: "admin"
@@ -39764,6 +39904,12 @@ Object.freeze({
39764
39904
  addonId: null,
39765
39905
  access: "view"
39766
39906
  },
39907
+ "storage.listDrainProgress": {
39908
+ capName: "storage",
39909
+ capScope: "system",
39910
+ addonId: null,
39911
+ access: "view"
39912
+ },
39767
39913
  "storage.listLocationDeclarations": {
39768
39914
  capName: "storage",
39769
39915
  capScope: "system",
@@ -39908,6 +40054,12 @@ Object.freeze({
39908
40054
  addonId: null,
39909
40055
  access: "view"
39910
40056
  },
40057
+ "storageOccupancy.getOccupancy": {
40058
+ capName: "storage-occupancy",
40059
+ capScope: "system",
40060
+ addonId: null,
40061
+ access: "view"
40062
+ },
39911
40063
  "storageProvider.abortUpload": {
39912
40064
  capName: "storage-provider",
39913
40065
  capScope: "system",