@camstack/addon-provider-petkit 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
@@ -1101,7 +1101,7 @@ var Nodepetkit = class {
1101
1101
  }
1102
1102
  };
1103
1103
  //#endregion
1104
- //#region ../types/dist/event-category-zAv7pMUz.mjs
1104
+ //#region ../types/dist/event-category-CnLqLOKs.mjs
1105
1105
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
1106
1106
  EventCategory["SystemBoot"] = "system.boot";
1107
1107
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -1296,6 +1296,19 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
1296
1296
  EventCategory["ProcessCrashed"] = "process.crashed";
1297
1297
  EventCategory["ProcessRestartScheduled"] = "process.restart_scheduled";
1298
1298
  EventCategory["ProcessRestarted"] = "process.restarted";
1299
+ /**
1300
+ * The SET of storage locations changed — one was created, edited, enabled,
1301
+ * disabled or deleted through `storage.upsertLocation` / `deleteLocation`.
1302
+ *
1303
+ * Telemetry, not a transaction (D8/D11): every consumer that re-resolves on
1304
+ * it must also converge on its own periodic path, because a dropped event
1305
+ * must not leave a node writing to yesterday's disk set forever. It exists
1306
+ * because there was NO signal at all — an operator who added a second
1307
+ * recordings disk in the admin UI got nothing, and the recorder kept its
1308
+ * resolved locations until something else happened to re-resolve them
1309
+ * (D387). Payload `StorageLocationsChangedPayload`.
1310
+ */
1311
+ EventCategory["StorageLocationsChanged"] = "storage.locations-changed";
1299
1312
  EventCategory["RecordingStarted"] = "recording.started";
1300
1313
  EventCategory["RecordingStopped"] = "recording.stopped";
1301
1314
  EventCategory["RecordingError"] = "recording.error";
@@ -9638,6 +9651,21 @@ var StorageCleanupJobSchema = object({
9638
9651
  });
9639
9652
  var StorageCleanupStatusInputSchema = object({ jobId: string().optional() });
9640
9653
  /**
9654
+ * The one typed state of a storage location. Authoritative Zod schema — the TS
9655
+ * alias below is `z.infer<>` of it, never a second spelling.
9656
+ */
9657
+ var StorageLocationModeSchema = _enum([
9658
+ "active",
9659
+ "readonly",
9660
+ "drain",
9661
+ "disabled"
9662
+ ]);
9663
+ _enum([
9664
+ "normal",
9665
+ "never",
9666
+ "drain"
9667
+ ]);
9668
+ /**
9641
9669
  * `StorageLocationType` — an addon-declared id that identifies the *kind* of
9642
9670
  * storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
9643
9671
  * so the persisted record schema and the consumer-facing cap can both consume it
@@ -9703,6 +9731,21 @@ var StorageLocationSchema = object({
9703
9731
  * stops existing rather than being re-derived on every read.
9704
9732
  */
9705
9733
  enabled: boolean().optional(),
9734
+ /**
9735
+ * THE state of this location (D385), and the only authority on what may be
9736
+ * written, read or evicted here. Interpreted in exactly one place —
9737
+ * `storage-location-mode.ts` — which also folds the legacy
9738
+ * `enabled` / `config.readOnly` pair into a mode so an old row is never
9739
+ * ambiguous.
9740
+ *
9741
+ * OPTIONAL only for the wire and for rows written before D385: absence is
9742
+ * resolved by `resolveLocationMode`, and the orchestrator stamps every
9743
+ * unstamped row ONCE at hydrate so absence stops existing rather than being
9744
+ * re-derived on every read. `enabled` survives one release as a DERIVED
9745
+ * mirror (`mode === 'active'`); `withLocationMode` is the only writer of
9746
+ * either, so the two cannot disagree.
9747
+ */
9748
+ mode: StorageLocationModeSchema.optional(),
9706
9749
  /** COMPUTED at read time by the orchestrator (statfs of the backing volume
9707
9750
  * for node-local locations it can reach) — never persisted, absent when the
9708
9751
  * volume is remote/unreachable. The single capacity truth every UI reads. */
@@ -9710,11 +9753,46 @@ var StorageLocationSchema = object({
9710
9753
  totalBytes: number(),
9711
9754
  availableBytes: number()
9712
9755
  }).nullable().optional(),
9756
+ /**
9757
+ * How much of that volume CamStack ITSELF holds on this location (D388) —
9758
+ * COMPUTED at read time from the `storage-occupancy` providers' own figures,
9759
+ * never persisted, never a filesystem walk.
9760
+ *
9761
+ * **ABSENT MEANS UNKNOWN, never zero.** No provider has reported for this
9762
+ * location yet — nobody stores here, the owning addon is down, or the first
9763
+ * refresh has not completed. A UI must omit the segment rather than draw it
9764
+ * at zero, which would claim we occupy nothing (D315). It is an OBJECT and
9765
+ * not a bare number precisely so that a `?? 0` on the consuming side has to
9766
+ * be spelled out loud instead of appearing by accident.
9767
+ *
9768
+ * `measuredAtMs` is the OLDEST contributing measurement, so it is honest
9769
+ * about the whole figure rather than about its freshest part.
9770
+ */
9771
+ owned: object({
9772
+ bytes: number().int().nonnegative(),
9773
+ measuredAtMs: number().int().nonnegative()
9774
+ }).optional(),
9713
9775
  createdAt: number(),
9714
9776
  updatedAt: number()
9715
9777
  });
9716
9778
  object({ isDefault: boolean().optional() });
9717
9779
  /**
9780
+ * How far a `drain` has got (D386) — the read a UI renders, and nothing more.
9781
+ *
9782
+ * `estimatedEmptyAtMs` is derived from the growth the ratchet has actually
9783
+ * OBSERVED and is `null` when it has observed none. Never a fabricated date: a
9784
+ * drain with no observed growth has no honest ETA, and inventing one is how an
9785
+ * operator learns not to believe the screen.
9786
+ */
9787
+ var StorageDrainProgressSchema = object({
9788
+ locationId: string(),
9789
+ startedAtMs: number(),
9790
+ startBytes: number(),
9791
+ bytesRemaining: number(),
9792
+ drained: boolean(),
9793
+ estimatedEmptyAtMs: number().nullable()
9794
+ });
9795
+ /**
9718
9796
  * Reference accepted by consumer-facing `api.storage.*` calls.
9719
9797
  * Either:
9720
9798
  * - a `StorageLocationType` (e.g. `'backups'`) → the sole location of that type
@@ -21540,8 +21618,25 @@ var occupancyRecheckFramesField = {
21540
21618
  * (analyzer attaches detected `regions[]`; onboard does not — the
21541
21619
  * camera typically only reports a binary signal plus an optional
21542
21620
  * channel/AI class which lives in dedicated event channels).
21543
- */
21544
- var MotionSourceEnum = _enum(["onboard", "analyzer"]);
21621
+ *
21622
+ * - `onboard` — the camera's firmware said something moved.
21623
+ * - `analyzer` — this runner's frame-diff said so, and attaches `regions[]`.
21624
+ * - `device-activity` — the DEVICE said it is doing its job: the
21625
+ * `recording-signal` LEVEL the same device raises for the recorder
21626
+ * ([D380](../../../../docs/decisions/adr-0380-a-device-decided-recording-is-a-mode-with-no-schedule-seeded-once.md)),
21627
+ * republished as a motion source. It attaches **nothing** — no regions, no
21628
+ * class: the only fact it carries is that the device is active, and a robot
21629
+ * vacuum that is itself the moving object has no region worth sending. It is
21630
+ * a LEVEL, so unlike `onboard` it has a real falling edge, and unlike
21631
+ * `analyzer` it must not open the frame-diff side-channel — the runner's
21632
+ * `handleOnboardMotionAnalyzer` gate is `source === 'onboard'` and stays that
21633
+ * way ([D392](../../../../docs/decisions/adr-0392-a-device-that-says-it-is-working-is-a-motion-source-of-its-own.md)).
21634
+ */
21635
+ var MotionSourceEnum = _enum([
21636
+ "onboard",
21637
+ "analyzer",
21638
+ "device-activity"
21639
+ ]);
21545
21640
  /**
21546
21641
  * List of motion sources active on a camera. Empty array is valid:
21547
21642
  * "no source" — happens for battery cams without firmware motion when
@@ -23060,7 +23155,7 @@ method(object({
23060
23155
  }), _void(), {
23061
23156
  kind: "mutation",
23062
23157
  auth: "admin"
23063
- }), method(object({ id: string() }), object({
23158
+ }), method(_void(), array(StorageDrainProgressSchema).readonly()), method(object({ id: string() }), object({
23064
23159
  ok: boolean(),
23065
23160
  error: string().optional()
23066
23161
  }), { auth: "admin" }), method(_void(), array(ProviderListEntrySchema).readonly()), method(object({
@@ -23130,6 +23225,51 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
23130
23225
  kind: "mutation",
23131
23226
  auth: "admin"
23132
23227
  }), method(object({}), array(StorageMigrationJobSchema).readonly(), { auth: "admin" });
23228
+ /**
23229
+ * `storage-occupancy` — how many bytes an addon actually HOLDS on a storage
23230
+ * location (D388).
23231
+ *
23232
+ * ## Why this is not `storage-evictable`
23233
+ *
23234
+ * `storage-evictable.getEvictableUsage` looks like the same question and is
23235
+ * not, in two ways that both matter and both bite hardest on the locations an
23236
+ * operator most wants a figure for:
23237
+ *
23238
+ * - it reports the whole eviction DOMAIN, not the location. `recordings:default`
23239
+ * and `recordingsLow:default` deliberately share one root and evict as one
23240
+ * oldest-first pool, so both answer with the SAME combined total. As an
23241
+ * occupancy figure that double-counts the disk.
23242
+ * - it reports ZERO for a location whose eviction policy is `never` (D385) —
23243
+ * a `readonly` or `disabled` disk. Those are exactly the disks an operator
23244
+ * is retiring and staring at.
23245
+ *
23246
+ * So this is its own contract with its own quantity, and the quantity is
23247
+ * OCCUPIED: every byte the addon holds on that location, whether or not it
23248
+ * would ever be willing to delete it. A provider that can only answer
23249
+ * "evictable" must not register here — a number that silently means different
23250
+ * things per class is worse than no number.
23251
+ *
23252
+ * ## Absence is an answer
23253
+ *
23254
+ * A location nobody reports for is UNKNOWN, never zero (D315). The orchestrator
23255
+ * stamps `StorageLocation.owned` only for locations it has a report for, and
23256
+ * the field is an OBJECT rather than a bare number so that a `?? 0` on the
23257
+ * consuming side has to be written out loud instead of appearing by accident.
23258
+ *
23259
+ * `internal: true` — consumed by the orchestrator's `listLocations` stamp, never
23260
+ * a public client surface. Clients read the stamped `StorageLocation.owned`.
23261
+ */
23262
+ /** One provider's occupancy answer for one location. */
23263
+ var StorageOccupancyReportSchema = object({
23264
+ locationId: string(),
23265
+ /** Bytes this provider holds on THAT location — not its eviction domain, and
23266
+ * not net of what it is willing to delete. */
23267
+ ownedBytes: number().int().nonnegative(),
23268
+ /** When the provider last actually measured this. The orchestrator carries it
23269
+ * through so a UI can say how old the figure is instead of implying "now". */
23270
+ measuredAtMs: number().int().nonnegative()
23271
+ });
23272
+ method(object({ locationIds: array(string()).readonly() }), array(StorageOccupancyReportSchema).readonly(), { auth: "admin" });
23133
23273
  var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
23134
23274
  providerId: string().min(1),
23135
23275
  displayName: string().min(1),
@@ -24965,88 +25105,6 @@ onStatusChanged: { data: object({
24965
25105
  volatileStateFields: ["lastUpdated"]
24966
25106
  };
24967
25107
  /**
24968
- * Network-link snapshot. Same shape for every provider (a Reolink wifi
24969
- * camera, a Home Assistant device with a signal-strength sensor, a Tapo
24970
- * plug): one slice under `device.runtimeState['network-link']`, one badge,
24971
- * one Home Assistant projection.
24972
- */
24973
- var NetworkLinkStatusSchema = object({
24974
- /** The link the device is on. `'unknown'` = not read yet, not "no link". */
24975
- type: _enum([
24976
- "wifi",
24977
- "ethernet",
24978
- "cellular",
24979
- "unknown"
24980
- ]),
24981
- /**
24982
- * Link quality, 0..100 inclusive, normalised by the provider from whatever
24983
- * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
24984
- * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
24985
- * one whose reading has not landed must not be drawn at 0 %. Consumers
24986
- * SKIP a null rather than coerce it.
24987
- */
24988
- signalPercent: number().min(0).max(100).nullable(),
24989
- /** Raw received signal strength in dBm, when the firmware reports one. */
24990
- rssiDbm: number().optional(),
24991
- /** Network name of a wireless link, when the firmware reports it. */
24992
- ssid: string().optional(),
24993
- /** Ms epoch of the last observation. Lets consumers reason about freshness. */
24994
- lastUpdated: number()
24995
- });
24996
- var networkLinkCapability = {
24997
- name: "network-link",
24998
- scope: "device",
24999
- deviceNative: true,
25000
- mode: "singleton",
25001
- deviceTypes: [
25002
- DeviceType.Camera,
25003
- DeviceType.Sensor,
25004
- DeviceType.Button,
25005
- DeviceType.Switch,
25006
- DeviceType.Light,
25007
- DeviceType.Lock,
25008
- DeviceType.Siren
25009
- ],
25010
- methods: {},
25011
- events: {
25012
- /**
25013
- * Emitted whenever the cached status changes (a link switch, a signal
25014
- * reading that moved). Mirrored on the parent chain by the
25015
- * DeviceEventPropagator like `battery.onStatusChanged`.
25016
- */
25017
- onStatusChanged: { data: object({
25018
- deviceId: number(),
25019
- status: NetworkLinkStatusSchema
25020
- }) } },
25021
- status: {
25022
- schema: NetworkLinkStatusSchema,
25023
- kind: "push",
25024
- empty: {
25025
- type: "unknown",
25026
- signalPercent: null,
25027
- lastUpdated: 0
25028
- }
25029
- },
25030
- /**
25031
- * Runtime-state slice — every provider stores the same shape under
25032
- * `device.runtimeState['network-link']`, read once by the badge and the
25033
- * Home Assistant projector regardless of the driver.
25034
- */
25035
- runtimeState: NetworkLinkStatusSchema,
25036
- /**
25037
- * Runtime-state durability: **restored** — a link reading is slow to
25038
- * change and a sleeping battery camera may not report for hours; the
25039
- * restored slice is what the badge shows until the next read.
25040
- *
25041
- * See `RuntimeStateDurability`. Enforced by
25042
- * `scripts/check-runtime-state-durability.ts`.
25043
- */
25044
- durability: "restored",
25045
- /** Clock fields: written, but excluded from the compare that decides
25046
- * whether persisting is worth a SQLite commit. */
25047
- volatileStateFields: ["lastUpdated"]
25048
- };
25049
- /**
25050
25108
  * Generic boolean sensor — last-resort fallback when no domain-
25051
25109
  * specific binary cap fits (Home Assistant `binary_sensor` without a
25052
25110
  * known `device_class`, or a domain we haven't typed yet). Pure
@@ -28584,6 +28642,369 @@ var nativeObjectDetectionCapability = {
28584
28642
  volatileStateFields: ["lastFetchedAt"]
28585
28643
  };
28586
28644
  /**
28645
+ * `navigation` — a device-scoped capability that natively expresses the FULL
28646
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
28647
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
28648
+ *
28649
+ * Why a NEW cap rather than overloading `ptz`:
28650
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
28651
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
28652
+ * The two are different physical models: PTZ is absolute-position + presets,
28653
+ * navigation is momentary drive nudges + discrete robot ACTIONS
28654
+ * (dock / spot-clean / follow-pet / go-to-point / …).
28655
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
28656
+ * the reverse:
28657
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
28658
+ * / `getOptions`), and
28659
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
28660
+ * robot camera shows up in the existing PTZ control path without every
28661
+ * PTZ provider learning about robots. The mapping lives in the adapter,
28662
+ * not here (see the addon design note):
28663
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
28664
+ * ptz.stop() → navigation.stop()
28665
+ * ptz.goHome() → navigation.runAction('goHome')
28666
+ * ptz.getPresets() → navigation.listActions() (id→preset)
28667
+ * ptz.goToPreset(id) → navigation.runAction(id)
28668
+ *
28669
+ * ## Continuous drive
28670
+ *
28671
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
28672
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
28673
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
28674
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
28675
+ * coalesce them. The UI owns the cadence.
28676
+ *
28677
+ * ## The action dictionary
28678
+ *
28679
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
28680
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
28681
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
28682
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
28683
+ * vendor-specific list. `kind: 'action'` entries are triggered with
28684
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
28685
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
28686
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
28687
+ *
28688
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
28689
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
28690
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
28691
+ * every device handle. A future nodedreame publish adds a typed
28692
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
28693
+ * provider can then swap the raw calls for the typed methods with no change to
28694
+ * THIS contract.
28695
+ */
28696
+ /**
28697
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
28698
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
28699
+ * halts it.
28700
+ *
28701
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
28702
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
28703
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
28704
+ * vector by it (drivers without proportional drive ignore it).
28705
+ *
28706
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
28707
+ * axis alone; an all-undefined nudge is a no-op.
28708
+ */
28709
+ var NavigationMoveCommandSchema = object({
28710
+ pan: number().min(-1).max(1).optional(),
28711
+ tilt: number().min(-1).max(1).optional(),
28712
+ speed: number().min(0).max(1).optional()
28713
+ });
28714
+ /**
28715
+ * The enumerated discrete actions a navigation-capable robot can perform via
28716
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
28717
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
28718
+ * `playSound` (see the `sound` dictionary entries).
28719
+ */
28720
+ var NavigationActionIdSchema = _enum([
28721
+ "goHome",
28722
+ "locate",
28723
+ "spotClean",
28724
+ "findPet",
28725
+ "personFollow",
28726
+ "stop",
28727
+ "startClean",
28728
+ "pauseClean",
28729
+ "dockWash",
28730
+ "autoEmpty",
28731
+ "flashOn",
28732
+ "flashOff"
28733
+ ]);
28734
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
28735
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
28736
+ /**
28737
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
28738
+ * native panel and the PTZ mimic render as a button.
28739
+ *
28740
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
28741
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
28742
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
28743
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
28744
+ * - `label` — operator-facing English label.
28745
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
28746
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
28747
+ * PTZ render ONLY enabled entries. Data-driven: the provider
28748
+ * flips it from config, never by editing code.
28749
+ */
28750
+ var NavigationActionEntrySchema = object({
28751
+ id: string(),
28752
+ kind: NavigationEntryKindSchema,
28753
+ label: string(),
28754
+ icon: string(),
28755
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
28756
+ soundId: number().int().optional(),
28757
+ /** Per-device feature flag — render this entry only when true. */
28758
+ enabled: boolean()
28759
+ });
28760
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
28761
+ var NavigationPointSchema = object({
28762
+ x: number(),
28763
+ y: number()
28764
+ });
28765
+ /**
28766
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
28767
+ * The cap reports which are enabled so the UI / PTZ render only the controls
28768
+ * that are turned on for THIS device. Data-driven: the provider derives these
28769
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
28770
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
28771
+ * that are not dictionary entries.
28772
+ *
28773
+ * - `move` / `stop` — the momentary drive joystick.
28774
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
28775
+ * map-coordinate plumbing is wired.
28776
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
28777
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
28778
+ * - `light` — the on/off fill-light toggle (works anytime).
28779
+ * - `lightMode` — the auto/manual selector + manual level slider (a
28780
+ * camera-service control; needs an active stream).
28781
+ */
28782
+ var NavigationFeaturesSchema = object({
28783
+ move: boolean(),
28784
+ stop: boolean(),
28785
+ goToPoint: boolean(),
28786
+ runAction: boolean(),
28787
+ playSound: boolean(),
28788
+ light: boolean(),
28789
+ lightMode: boolean()
28790
+ });
28791
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
28792
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
28793
+ /**
28794
+ * Live navigation state so the UI can reflect what the robot is doing:
28795
+ * - `mode` — coarse activity (idle / cleaning / following / …).
28796
+ * - `following` — person/pet follow is currently armed.
28797
+ * - `flash` — the on-camera fill light is on.
28798
+ * - `lightMode` — auto vs manual fill-light mode.
28799
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
28800
+ * `lightMode === 'manual'`.
28801
+ */
28802
+ var NavigationStatusSchema = object({
28803
+ mode: _enum([
28804
+ "idle",
28805
+ "cleaning",
28806
+ "spot",
28807
+ "following",
28808
+ "goto",
28809
+ "returning",
28810
+ "paused",
28811
+ "unknown"
28812
+ ]),
28813
+ following: boolean(),
28814
+ flash: boolean(),
28815
+ lightMode: NavigationLightModeSchema,
28816
+ lightLevel: number().min(40).max(100),
28817
+ /** Ms epoch when the slice was last updated. */
28818
+ lastChangedAt: number()
28819
+ });
28820
+ /**
28821
+ * Runtime-state slice owned by this cap (kernel-managed: validated, mirrored,
28822
+ * observable). Adds `lastFetchedAt` on top of the status shape per the
28823
+ * convention.
28824
+ */
28825
+ var NavigationRuntimeStateSchema = NavigationStatusSchema.extend({ lastFetchedAt: number() });
28826
+ var navigationCapability = {
28827
+ name: "navigation",
28828
+ scope: "device",
28829
+ deviceNative: true,
28830
+ mode: "singleton",
28831
+ deviceTypes: [DeviceType.Camera],
28832
+ deviceConfig: { ui: {
28833
+ kind: "widget",
28834
+ widgetId: "host/navigation-panel",
28835
+ tab: "navigation",
28836
+ topTab: true,
28837
+ label: "Navigation",
28838
+ order: 0
28839
+ } },
28840
+ methods: {
28841
+ /**
28842
+ * Momentary drive nudge (the robot moves). `protected` — mirrors
28843
+ * `ptz.continuousMove` so the Viewer navigation panel (and the PTZ-mimic
28844
+ * path) works for any authenticated user, not admin-only. The UI sends
28845
+ * these at ~1 Hz while a control is held; the provider forwards each one to
28846
+ * a single drive write WITHOUT debouncing.
28847
+ */
28848
+ move: method(NavigationMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
28849
+ /** Halt all motion immediately (zero drive vector). */
28850
+ stop: method(object({ deviceId: number() }), _void(), { kind: "mutation" }),
28851
+ /** Send the robot to a point on its live map. */
28852
+ goToPoint: method(NavigationPointSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
28853
+ /**
28854
+ * Enumerate the discrete controls THIS device supports (data-driven UI +
28855
+ * PTZ mimic). Camera-probed subset of {@link NAVIGATION_ACTION_CATALOG}.
28856
+ */
28857
+ listActions: method(object({ deviceId: number() }), array(NavigationActionEntrySchema)),
28858
+ /**
28859
+ * Run one discrete action (a `kind:'action'` dictionary entry). Invalid /
28860
+ * unsupported action ids are rejected by the provider.
28861
+ */
28862
+ runAction: method(object({
28863
+ deviceId: number(),
28864
+ actionId: NavigationActionIdSchema
28865
+ }), _void(), { kind: "mutation" }),
28866
+ /** Play a sound by its wire id (the `soundId` of a `kind:'sound'` entry). */
28867
+ playSound: method(object({
28868
+ deviceId: number(),
28869
+ soundId: number().int()
28870
+ }), _void(), { kind: "mutation" }),
28871
+ /**
28872
+ * Turn the on-camera fill light on / off (the `OpenFullLight` control —
28873
+ * works anytime, no active stream required).
28874
+ */
28875
+ setLightOn: method(object({
28876
+ deviceId: number(),
28877
+ on: boolean()
28878
+ }), _void(), { kind: "mutation" }),
28879
+ /**
28880
+ * Set the fill-light mode (auto vs manual). `manual` optionally carries the
28881
+ * initial `level`. The auto/manual + level control is a CAMERA-service
28882
+ * action that generally needs an active camera stream/monitor session — the
28883
+ * UI shows the manual level slider ONLY when `mode === 'manual'`.
28884
+ */
28885
+ setLightMode: method(object({
28886
+ deviceId: number(),
28887
+ mode: NavigationLightModeSchema,
28888
+ level: number().min(40).max(100).optional()
28889
+ }), _void(), { kind: "mutation" }),
28890
+ /** Set the MANUAL fill-light level (40..100). Implies `manual` mode. */
28891
+ setLightLevel: method(object({
28892
+ deviceId: number(),
28893
+ level: number().min(40).max(100)
28894
+ }), _void(), { kind: "mutation" }),
28895
+ /**
28896
+ * Per-device FEATURE-FLAG report for the general primitives — drives which
28897
+ * controls the UI shows (the per-entry flags for the dictionary come back on
28898
+ * `listActions`).
28899
+ */
28900
+ getFeatures: method(object({ deviceId: number() }), NavigationFeaturesSchema)
28901
+ },
28902
+ events: { onStatusChanged: { data: object({
28903
+ deviceId: number(),
28904
+ status: NavigationStatusSchema
28905
+ }) } },
28906
+ status: {
28907
+ schema: NavigationStatusSchema,
28908
+ kind: "push"
28909
+ },
28910
+ /**
28911
+ * Runtime-state slice mirrored by the kernel. The navigation panel watches it
28912
+ * for live mode / follow / flash changes.
28913
+ */
28914
+ runtimeState: NavigationRuntimeStateSchema,
28915
+ /**
28916
+ * Runtime-state durability: **session** — like `vacuum-control`, a restored
28917
+ * `mode: cleaning` / `following: true` is a robot that is not actually doing
28918
+ * that. The live handle re-publishes on connect.
28919
+ *
28920
+ * See `RuntimeStateDurability`. Enforced by
28921
+ * `scripts/check-runtime-state-durability.ts`.
28922
+ */
28923
+ durability: "session"
28924
+ };
28925
+ /**
28926
+ * Network-link snapshot. Same shape for every provider (a Reolink wifi
28927
+ * camera, a Home Assistant device with a signal-strength sensor, a Tapo
28928
+ * plug): one slice under `device.runtimeState['network-link']`, one badge,
28929
+ * one Home Assistant projection.
28930
+ */
28931
+ var NetworkLinkStatusSchema = object({
28932
+ /** The link the device is on. `'unknown'` = not read yet, not "no link". */
28933
+ type: _enum([
28934
+ "wifi",
28935
+ "ethernet",
28936
+ "cellular",
28937
+ "unknown"
28938
+ ]),
28939
+ /**
28940
+ * Link quality, 0..100 inclusive, normalised by the provider from whatever
28941
+ * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
28942
+ * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
28943
+ * one whose reading has not landed must not be drawn at 0 %. Consumers
28944
+ * SKIP a null rather than coerce it.
28945
+ */
28946
+ signalPercent: number().min(0).max(100).nullable(),
28947
+ /** Raw received signal strength in dBm, when the firmware reports one. */
28948
+ rssiDbm: number().optional(),
28949
+ /** Network name of a wireless link, when the firmware reports it. */
28950
+ ssid: string().optional(),
28951
+ /** Ms epoch of the last observation. Lets consumers reason about freshness. */
28952
+ lastUpdated: number()
28953
+ });
28954
+ var networkLinkCapability = {
28955
+ name: "network-link",
28956
+ scope: "device",
28957
+ deviceNative: true,
28958
+ mode: "singleton",
28959
+ deviceTypes: [
28960
+ DeviceType.Camera,
28961
+ DeviceType.Sensor,
28962
+ DeviceType.Button,
28963
+ DeviceType.Switch,
28964
+ DeviceType.Light,
28965
+ DeviceType.Lock,
28966
+ DeviceType.Siren
28967
+ ],
28968
+ methods: {},
28969
+ events: {
28970
+ /**
28971
+ * Emitted whenever the cached status changes (a link switch, a signal
28972
+ * reading that moved). Mirrored on the parent chain by the
28973
+ * DeviceEventPropagator like `battery.onStatusChanged`.
28974
+ */
28975
+ onStatusChanged: { data: object({
28976
+ deviceId: number(),
28977
+ status: NetworkLinkStatusSchema
28978
+ }) } },
28979
+ status: {
28980
+ schema: NetworkLinkStatusSchema,
28981
+ kind: "push",
28982
+ empty: {
28983
+ type: "unknown",
28984
+ signalPercent: null,
28985
+ lastUpdated: 0
28986
+ }
28987
+ },
28988
+ /**
28989
+ * Runtime-state slice — every provider stores the same shape under
28990
+ * `device.runtimeState['network-link']`, read once by the badge and the
28991
+ * Home Assistant projector regardless of the driver.
28992
+ */
28993
+ runtimeState: NetworkLinkStatusSchema,
28994
+ /**
28995
+ * Runtime-state durability: **restored** — a link reading is slow to
28996
+ * change and a sleeping battery camera may not report for hours; the
28997
+ * restored slice is what the badge shows until the next read.
28998
+ *
28999
+ * See `RuntimeStateDurability`. Enforced by
29000
+ * `scripts/check-runtime-state-durability.ts`.
29001
+ */
29002
+ durability: "restored",
29003
+ /** Clock fields: written, but excluded from the compare that decides
29004
+ * whether persisting is worth a SQLite commit. */
29005
+ volatileStateFields: ["lastUpdated"]
29006
+ };
29007
+ /**
28587
29008
  * network-quality — system-scoped singleton capability tracking RTT,
28588
29009
  * jitter, and observed/peak bandwidth per device + per client.
28589
29010
  *
@@ -30164,287 +30585,6 @@ var ptzAutotrackCapability = {
30164
30585
  */
30165
30586
  durability: "session"
30166
30587
  };
30167
- /**
30168
- * `navigation` — a device-scoped capability that natively expresses the FULL
30169
- * navigation / action surface of a robot that DRIVES ITSELF and carries an
30170
- * on-board camera (the Dreame robot-vacuum camera is the first provider).
30171
- *
30172
- * Why a NEW cap rather than overloading `ptz`:
30173
- * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
30174
- * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
30175
- * The two are different physical models: PTZ is absolute-position + presets,
30176
- * navigation is momentary drive nudges + discrete robot ACTIONS
30177
- * (dock / spot-clean / follow-pet / go-to-point / …).
30178
- * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
30179
- * the reverse:
30180
- * 1. a native CamStack navigation panel (data-driven from `listActions`
30181
- * / `getOptions`), and
30182
- * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
30183
- * robot camera shows up in the existing PTZ control path without every
30184
- * PTZ provider learning about robots. The mapping lives in the adapter,
30185
- * not here (see the addon design note):
30186
- * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
30187
- * ptz.stop() → navigation.stop()
30188
- * ptz.goHome() → navigation.runAction('goHome')
30189
- * ptz.getPresets() → navigation.listActions() (id→preset)
30190
- * ptz.goToPreset(id) → navigation.runAction(id)
30191
- *
30192
- * ## Continuous drive
30193
- *
30194
- * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
30195
- * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
30196
- * one `stop()` on release — exactly like the robot app's remote-drive joystick.
30197
- * The provider forwards EACH `move` to one drive write; it must NOT debounce or
30198
- * coalesce them. The UI owns the cadence.
30199
- *
30200
- * ## The action dictionary
30201
- *
30202
- * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
30203
- * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
30204
- * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
30205
- * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
30206
- * vendor-specific list. `kind: 'action'` entries are triggered with
30207
- * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
30208
- * (the entry carries the `soundId` to pass). The general primitives — `move`,
30209
- * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
30210
- *
30211
- * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
30212
- * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
30213
- * that the currently-published `@apocaliss92/nodedreame` already exposes on
30214
- * every device handle. A future nodedreame publish adds a typed
30215
- * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
30216
- * provider can then swap the raw calls for the typed methods with no change to
30217
- * THIS contract.
30218
- */
30219
- /**
30220
- * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
30221
- * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
30222
- * halts it.
30223
- *
30224
- * - `pan` — turn: negative = left, positive = right, 0 = straight.
30225
- * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
30226
- * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
30227
- * vector by it (drivers without proportional drive ignore it).
30228
- *
30229
- * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
30230
- * axis alone; an all-undefined nudge is a no-op.
30231
- */
30232
- var NavigationMoveCommandSchema = object({
30233
- pan: number().min(-1).max(1).optional(),
30234
- tilt: number().min(-1).max(1).optional(),
30235
- speed: number().min(0).max(1).optional()
30236
- });
30237
- /**
30238
- * The enumerated discrete actions a navigation-capable robot can perform via
30239
- * `runAction`. This is the CLOSED vocabulary; a given device advertises the
30240
- * subset it supports through `listActions`. Sounds are NOT here — they go through
30241
- * `playSound` (see the `sound` dictionary entries).
30242
- */
30243
- var NavigationActionIdSchema = _enum([
30244
- "goHome",
30245
- "locate",
30246
- "spotClean",
30247
- "findPet",
30248
- "personFollow",
30249
- "stop",
30250
- "startClean",
30251
- "pauseClean",
30252
- "dockWash",
30253
- "autoEmpty",
30254
- "flashOn",
30255
- "flashOff"
30256
- ]);
30257
- /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
30258
- var NavigationEntryKindSchema = _enum(["action", "sound"]);
30259
- /**
30260
- * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
30261
- * native panel and the PTZ mimic render as a button.
30262
- *
30263
- * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
30264
- * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
30265
- * (`sound:meow`) whose `soundId` is passed to `playSound`.
30266
- * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
30267
- * - `label` — operator-facing English label.
30268
- * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
30269
- * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
30270
- * PTZ render ONLY enabled entries. Data-driven: the provider
30271
- * flips it from config, never by editing code.
30272
- */
30273
- var NavigationActionEntrySchema = object({
30274
- id: string(),
30275
- kind: NavigationEntryKindSchema,
30276
- label: string(),
30277
- icon: string(),
30278
- /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
30279
- soundId: number().int().optional(),
30280
- /** Per-device feature flag — render this entry only when true. */
30281
- enabled: boolean()
30282
- });
30283
- /** Coordinates for `goToPoint` — a point on the robot's live map. */
30284
- var NavigationPointSchema = object({
30285
- x: number(),
30286
- y: number()
30287
- });
30288
- /**
30289
- * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
30290
- * The cap reports which are enabled so the UI / PTZ render only the controls
30291
- * that are turned on for THIS device. Data-driven: the provider derives these
30292
- * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
30293
- * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
30294
- * that are not dictionary entries.
30295
- *
30296
- * - `move` / `stop` — the momentary drive joystick.
30297
- * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
30298
- * map-coordinate plumbing is wired.
30299
- * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
30300
- * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
30301
- * - `light` — the on/off fill-light toggle (works anytime).
30302
- * - `lightMode` — the auto/manual selector + manual level slider (a
30303
- * camera-service control; needs an active stream).
30304
- */
30305
- var NavigationFeaturesSchema = object({
30306
- move: boolean(),
30307
- stop: boolean(),
30308
- goToPoint: boolean(),
30309
- runAction: boolean(),
30310
- playSound: boolean(),
30311
- light: boolean(),
30312
- lightMode: boolean()
30313
- });
30314
- /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
30315
- var NavigationLightModeSchema = _enum(["auto", "manual"]);
30316
- /**
30317
- * Live navigation state so the UI can reflect what the robot is doing:
30318
- * - `mode` — coarse activity (idle / cleaning / following / …).
30319
- * - `following` — person/pet follow is currently armed.
30320
- * - `flash` — the on-camera fill light is on.
30321
- * - `lightMode` — auto vs manual fill-light mode.
30322
- * - `lightLevel` — manual fill-light level (40..100); meaningful when
30323
- * `lightMode === 'manual'`.
30324
- */
30325
- var NavigationStatusSchema = object({
30326
- mode: _enum([
30327
- "idle",
30328
- "cleaning",
30329
- "spot",
30330
- "following",
30331
- "goto",
30332
- "returning",
30333
- "paused",
30334
- "unknown"
30335
- ]),
30336
- following: boolean(),
30337
- flash: boolean(),
30338
- lightMode: NavigationLightModeSchema,
30339
- lightLevel: number().min(40).max(100),
30340
- /** Ms epoch when the slice was last updated. */
30341
- lastChangedAt: number()
30342
- });
30343
- /**
30344
- * Runtime-state slice owned by this cap (kernel-managed: validated, mirrored,
30345
- * observable). Adds `lastFetchedAt` on top of the status shape per the
30346
- * convention.
30347
- */
30348
- var NavigationRuntimeStateSchema = NavigationStatusSchema.extend({ lastFetchedAt: number() });
30349
- var navigationCapability = {
30350
- name: "navigation",
30351
- scope: "device",
30352
- deviceNative: true,
30353
- mode: "singleton",
30354
- deviceTypes: [DeviceType.Camera],
30355
- deviceConfig: { ui: {
30356
- kind: "widget",
30357
- widgetId: "host/navigation-panel",
30358
- tab: "navigation",
30359
- topTab: true,
30360
- label: "Navigation",
30361
- order: 0
30362
- } },
30363
- methods: {
30364
- /**
30365
- * Momentary drive nudge (the robot moves). `protected` — mirrors
30366
- * `ptz.continuousMove` so the Viewer navigation panel (and the PTZ-mimic
30367
- * path) works for any authenticated user, not admin-only. The UI sends
30368
- * these at ~1 Hz while a control is held; the provider forwards each one to
30369
- * a single drive write WITHOUT debouncing.
30370
- */
30371
- move: method(NavigationMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
30372
- /** Halt all motion immediately (zero drive vector). */
30373
- stop: method(object({ deviceId: number() }), _void(), { kind: "mutation" }),
30374
- /** Send the robot to a point on its live map. */
30375
- goToPoint: method(NavigationPointSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
30376
- /**
30377
- * Enumerate the discrete controls THIS device supports (data-driven UI +
30378
- * PTZ mimic). Camera-probed subset of {@link NAVIGATION_ACTION_CATALOG}.
30379
- */
30380
- listActions: method(object({ deviceId: number() }), array(NavigationActionEntrySchema)),
30381
- /**
30382
- * Run one discrete action (a `kind:'action'` dictionary entry). Invalid /
30383
- * unsupported action ids are rejected by the provider.
30384
- */
30385
- runAction: method(object({
30386
- deviceId: number(),
30387
- actionId: NavigationActionIdSchema
30388
- }), _void(), { kind: "mutation" }),
30389
- /** Play a sound by its wire id (the `soundId` of a `kind:'sound'` entry). */
30390
- playSound: method(object({
30391
- deviceId: number(),
30392
- soundId: number().int()
30393
- }), _void(), { kind: "mutation" }),
30394
- /**
30395
- * Turn the on-camera fill light on / off (the `OpenFullLight` control —
30396
- * works anytime, no active stream required).
30397
- */
30398
- setLightOn: method(object({
30399
- deviceId: number(),
30400
- on: boolean()
30401
- }), _void(), { kind: "mutation" }),
30402
- /**
30403
- * Set the fill-light mode (auto vs manual). `manual` optionally carries the
30404
- * initial `level`. The auto/manual + level control is a CAMERA-service
30405
- * action that generally needs an active camera stream/monitor session — the
30406
- * UI shows the manual level slider ONLY when `mode === 'manual'`.
30407
- */
30408
- setLightMode: method(object({
30409
- deviceId: number(),
30410
- mode: NavigationLightModeSchema,
30411
- level: number().min(40).max(100).optional()
30412
- }), _void(), { kind: "mutation" }),
30413
- /** Set the MANUAL fill-light level (40..100). Implies `manual` mode. */
30414
- setLightLevel: method(object({
30415
- deviceId: number(),
30416
- level: number().min(40).max(100)
30417
- }), _void(), { kind: "mutation" }),
30418
- /**
30419
- * Per-device FEATURE-FLAG report for the general primitives — drives which
30420
- * controls the UI shows (the per-entry flags for the dictionary come back on
30421
- * `listActions`).
30422
- */
30423
- getFeatures: method(object({ deviceId: number() }), NavigationFeaturesSchema)
30424
- },
30425
- events: { onStatusChanged: { data: object({
30426
- deviceId: number(),
30427
- status: NavigationStatusSchema
30428
- }) } },
30429
- status: {
30430
- schema: NavigationStatusSchema,
30431
- kind: "push"
30432
- },
30433
- /**
30434
- * Runtime-state slice mirrored by the kernel. The navigation panel watches it
30435
- * for live mode / follow / flash changes.
30436
- */
30437
- runtimeState: NavigationRuntimeStateSchema,
30438
- /**
30439
- * Runtime-state durability: **session** — like `vacuum-control`, a restored
30440
- * `mode: cleaning` / `following: true` is a robot that is not actually doing
30441
- * that. The live handle re-publishes on connect.
30442
- *
30443
- * See `RuntimeStateDurability`. Enforced by
30444
- * `scripts/check-runtime-state-durability.ts`.
30445
- */
30446
- durability: "session"
30447
- };
30448
30588
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
30449
30589
  kind: "mutation",
30450
30590
  auth: "admin"
@@ -39907,6 +40047,12 @@ Object.freeze({
39907
40047
  addonId: null,
39908
40048
  access: "view"
39909
40049
  },
40050
+ "storage.listDrainProgress": {
40051
+ capName: "storage",
40052
+ capScope: "system",
40053
+ addonId: null,
40054
+ access: "view"
40055
+ },
39910
40056
  "storage.listLocationDeclarations": {
39911
40057
  capName: "storage",
39912
40058
  capScope: "system",
@@ -40051,6 +40197,12 @@ Object.freeze({
40051
40197
  addonId: null,
40052
40198
  access: "view"
40053
40199
  },
40200
+ "storageOccupancy.getOccupancy": {
40201
+ capName: "storage-occupancy",
40202
+ capScope: "system",
40203
+ addonId: null,
40204
+ access: "view"
40205
+ },
40054
40206
  "storageProvider.abortUpload": {
40055
40207
  capName: "storage-provider",
40056
40208
  capScope: "system",