@camstack/addon-provider-amcrest 0.2.81 → 0.2.83

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
@@ -6,7 +6,7 @@ let node_crypto = require("node:crypto");
6
6
  let node_http = require("node:http");
7
7
  let node_https = require("node:https");
8
8
  let node_os = require("node:os");
9
- //#region ../types/dist/event-category-zAv7pMUz.mjs
9
+ //#region ../types/dist/event-category-CnLqLOKs.mjs
10
10
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
11
11
  EventCategory["SystemBoot"] = "system.boot";
12
12
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -201,6 +201,19 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
201
201
  EventCategory["ProcessCrashed"] = "process.crashed";
202
202
  EventCategory["ProcessRestartScheduled"] = "process.restart_scheduled";
203
203
  EventCategory["ProcessRestarted"] = "process.restarted";
204
+ /**
205
+ * The SET of storage locations changed — one was created, edited, enabled,
206
+ * disabled or deleted through `storage.upsertLocation` / `deleteLocation`.
207
+ *
208
+ * Telemetry, not a transaction (D8/D11): every consumer that re-resolves on
209
+ * it must also converge on its own periodic path, because a dropped event
210
+ * must not leave a node writing to yesterday's disk set forever. It exists
211
+ * because there was NO signal at all — an operator who added a second
212
+ * recordings disk in the admin UI got nothing, and the recorder kept its
213
+ * resolved locations until something else happened to re-resolve them
214
+ * (D387). Payload `StorageLocationsChangedPayload`.
215
+ */
216
+ EventCategory["StorageLocationsChanged"] = "storage.locations-changed";
204
217
  EventCategory["RecordingStarted"] = "recording.started";
205
218
  EventCategory["RecordingStopped"] = "recording.stopped";
206
219
  EventCategory["RecordingError"] = "recording.error";
@@ -8531,6 +8544,21 @@ var StorageCleanupJobSchema = object({
8531
8544
  });
8532
8545
  var StorageCleanupStatusInputSchema = object({ jobId: string().optional() });
8533
8546
  /**
8547
+ * The one typed state of a storage location. Authoritative Zod schema — the TS
8548
+ * alias below is `z.infer<>` of it, never a second spelling.
8549
+ */
8550
+ var StorageLocationModeSchema = _enum([
8551
+ "active",
8552
+ "readonly",
8553
+ "drain",
8554
+ "disabled"
8555
+ ]);
8556
+ _enum([
8557
+ "normal",
8558
+ "never",
8559
+ "drain"
8560
+ ]);
8561
+ /**
8534
8562
  * `StorageLocationType` — an addon-declared id that identifies the *kind* of
8535
8563
  * storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
8536
8564
  * so the persisted record schema and the consumer-facing cap can both consume it
@@ -8596,6 +8624,21 @@ var StorageLocationSchema = object({
8596
8624
  * stops existing rather than being re-derived on every read.
8597
8625
  */
8598
8626
  enabled: boolean().optional(),
8627
+ /**
8628
+ * THE state of this location (D385), and the only authority on what may be
8629
+ * written, read or evicted here. Interpreted in exactly one place —
8630
+ * `storage-location-mode.ts` — which also folds the legacy
8631
+ * `enabled` / `config.readOnly` pair into a mode so an old row is never
8632
+ * ambiguous.
8633
+ *
8634
+ * OPTIONAL only for the wire and for rows written before D385: absence is
8635
+ * resolved by `resolveLocationMode`, and the orchestrator stamps every
8636
+ * unstamped row ONCE at hydrate so absence stops existing rather than being
8637
+ * re-derived on every read. `enabled` survives one release as a DERIVED
8638
+ * mirror (`mode === 'active'`); `withLocationMode` is the only writer of
8639
+ * either, so the two cannot disagree.
8640
+ */
8641
+ mode: StorageLocationModeSchema.optional(),
8599
8642
  /** COMPUTED at read time by the orchestrator (statfs of the backing volume
8600
8643
  * for node-local locations it can reach) — never persisted, absent when the
8601
8644
  * volume is remote/unreachable. The single capacity truth every UI reads. */
@@ -8603,11 +8646,46 @@ var StorageLocationSchema = object({
8603
8646
  totalBytes: number(),
8604
8647
  availableBytes: number()
8605
8648
  }).nullable().optional(),
8649
+ /**
8650
+ * How much of that volume CamStack ITSELF holds on this location (D388) —
8651
+ * COMPUTED at read time from the `storage-occupancy` providers' own figures,
8652
+ * never persisted, never a filesystem walk.
8653
+ *
8654
+ * **ABSENT MEANS UNKNOWN, never zero.** No provider has reported for this
8655
+ * location yet — nobody stores here, the owning addon is down, or the first
8656
+ * refresh has not completed. A UI must omit the segment rather than draw it
8657
+ * at zero, which would claim we occupy nothing (D315). It is an OBJECT and
8658
+ * not a bare number precisely so that a `?? 0` on the consuming side has to
8659
+ * be spelled out loud instead of appearing by accident.
8660
+ *
8661
+ * `measuredAtMs` is the OLDEST contributing measurement, so it is honest
8662
+ * about the whole figure rather than about its freshest part.
8663
+ */
8664
+ owned: object({
8665
+ bytes: number().int().nonnegative(),
8666
+ measuredAtMs: number().int().nonnegative()
8667
+ }).optional(),
8606
8668
  createdAt: number(),
8607
8669
  updatedAt: number()
8608
8670
  });
8609
8671
  object({ isDefault: boolean().optional() });
8610
8672
  /**
8673
+ * How far a `drain` has got (D386) — the read a UI renders, and nothing more.
8674
+ *
8675
+ * `estimatedEmptyAtMs` is derived from the growth the ratchet has actually
8676
+ * OBSERVED and is `null` when it has observed none. Never a fabricated date: a
8677
+ * drain with no observed growth has no honest ETA, and inventing one is how an
8678
+ * operator learns not to believe the screen.
8679
+ */
8680
+ var StorageDrainProgressSchema = object({
8681
+ locationId: string(),
8682
+ startedAtMs: number(),
8683
+ startBytes: number(),
8684
+ bytesRemaining: number(),
8685
+ drained: boolean(),
8686
+ estimatedEmptyAtMs: number().nullable()
8687
+ });
8688
+ /**
8611
8689
  * Reference accepted by consumer-facing `api.storage.*` calls.
8612
8690
  * Either:
8613
8691
  * - a `StorageLocationType` (e.g. `'backups'`) → the sole location of that type
@@ -20416,8 +20494,25 @@ var occupancyRecheckFramesField = {
20416
20494
  * (analyzer attaches detected `regions[]`; onboard does not — the
20417
20495
  * camera typically only reports a binary signal plus an optional
20418
20496
  * channel/AI class which lives in dedicated event channels).
20419
- */
20420
- var MotionSourceEnum = _enum(["onboard", "analyzer"]);
20497
+ *
20498
+ * - `onboard` — the camera's firmware said something moved.
20499
+ * - `analyzer` — this runner's frame-diff said so, and attaches `regions[]`.
20500
+ * - `device-activity` — the DEVICE said it is doing its job: the
20501
+ * `recording-signal` LEVEL the same device raises for the recorder
20502
+ * ([D380](../../../../docs/decisions/adr-0380-a-device-decided-recording-is-a-mode-with-no-schedule-seeded-once.md)),
20503
+ * republished as a motion source. It attaches **nothing** — no regions, no
20504
+ * class: the only fact it carries is that the device is active, and a robot
20505
+ * vacuum that is itself the moving object has no region worth sending. It is
20506
+ * a LEVEL, so unlike `onboard` it has a real falling edge, and unlike
20507
+ * `analyzer` it must not open the frame-diff side-channel — the runner's
20508
+ * `handleOnboardMotionAnalyzer` gate is `source === 'onboard'` and stays that
20509
+ * way ([D392](../../../../docs/decisions/adr-0392-a-device-that-says-it-is-working-is-a-motion-source-of-its-own.md)).
20510
+ */
20511
+ var MotionSourceEnum = _enum([
20512
+ "onboard",
20513
+ "analyzer",
20514
+ "device-activity"
20515
+ ]);
20421
20516
  /**
20422
20517
  * List of motion sources active on a camera. Empty array is valid:
20423
20518
  * "no source" — happens for battery cams without firmware motion when
@@ -22040,7 +22135,7 @@ method(object({
22040
22135
  }), _void(), {
22041
22136
  kind: "mutation",
22042
22137
  auth: "admin"
22043
- }), method(object({ id: string() }), object({
22138
+ }), method(_void(), array(StorageDrainProgressSchema).readonly()), method(object({ id: string() }), object({
22044
22139
  ok: boolean(),
22045
22140
  error: string().optional()
22046
22141
  }), { auth: "admin" }), method(_void(), array(ProviderListEntrySchema).readonly()), method(object({
@@ -22110,6 +22205,51 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
22110
22205
  kind: "mutation",
22111
22206
  auth: "admin"
22112
22207
  }), method(object({}), array(StorageMigrationJobSchema).readonly(), { auth: "admin" });
22208
+ /**
22209
+ * `storage-occupancy` — how many bytes an addon actually HOLDS on a storage
22210
+ * location (D388).
22211
+ *
22212
+ * ## Why this is not `storage-evictable`
22213
+ *
22214
+ * `storage-evictable.getEvictableUsage` looks like the same question and is
22215
+ * not, in two ways that both matter and both bite hardest on the locations an
22216
+ * operator most wants a figure for:
22217
+ *
22218
+ * - it reports the whole eviction DOMAIN, not the location. `recordings:default`
22219
+ * and `recordingsLow:default` deliberately share one root and evict as one
22220
+ * oldest-first pool, so both answer with the SAME combined total. As an
22221
+ * occupancy figure that double-counts the disk.
22222
+ * - it reports ZERO for a location whose eviction policy is `never` (D385) —
22223
+ * a `readonly` or `disabled` disk. Those are exactly the disks an operator
22224
+ * is retiring and staring at.
22225
+ *
22226
+ * So this is its own contract with its own quantity, and the quantity is
22227
+ * OCCUPIED: every byte the addon holds on that location, whether or not it
22228
+ * would ever be willing to delete it. A provider that can only answer
22229
+ * "evictable" must not register here — a number that silently means different
22230
+ * things per class is worse than no number.
22231
+ *
22232
+ * ## Absence is an answer
22233
+ *
22234
+ * A location nobody reports for is UNKNOWN, never zero (D315). The orchestrator
22235
+ * stamps `StorageLocation.owned` only for locations it has a report for, and
22236
+ * the field is an OBJECT rather than a bare number so that a `?? 0` on the
22237
+ * consuming side has to be written out loud instead of appearing by accident.
22238
+ *
22239
+ * `internal: true` — consumed by the orchestrator's `listLocations` stamp, never
22240
+ * a public client surface. Clients read the stamped `StorageLocation.owned`.
22241
+ */
22242
+ /** One provider's occupancy answer for one location. */
22243
+ var StorageOccupancyReportSchema = object({
22244
+ locationId: string(),
22245
+ /** Bytes this provider holds on THAT location — not its eviction domain, and
22246
+ * not net of what it is willing to delete. */
22247
+ ownedBytes: number().int().nonnegative(),
22248
+ /** When the provider last actually measured this. The orchestrator carries it
22249
+ * through so a UI can say how old the figure is instead of implying "now". */
22250
+ measuredAtMs: number().int().nonnegative()
22251
+ });
22252
+ method(object({ locationIds: array(string()).readonly() }), array(StorageOccupancyReportSchema).readonly(), { auth: "admin" });
22113
22253
  var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
22114
22254
  providerId: string().min(1),
22115
22255
  displayName: string().min(1),
@@ -23945,88 +24085,6 @@ onStatusChanged: { data: object({
23945
24085
  volatileStateFields: ["lastUpdated"]
23946
24086
  };
23947
24087
  /**
23948
- * Network-link snapshot. Same shape for every provider (a Reolink wifi
23949
- * camera, a Home Assistant device with a signal-strength sensor, a Tapo
23950
- * plug): one slice under `device.runtimeState['network-link']`, one badge,
23951
- * one Home Assistant projection.
23952
- */
23953
- var NetworkLinkStatusSchema = object({
23954
- /** The link the device is on. `'unknown'` = not read yet, not "no link". */
23955
- type: _enum([
23956
- "wifi",
23957
- "ethernet",
23958
- "cellular",
23959
- "unknown"
23960
- ]),
23961
- /**
23962
- * Link quality, 0..100 inclusive, normalised by the provider from whatever
23963
- * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
23964
- * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
23965
- * one whose reading has not landed must not be drawn at 0 %. Consumers
23966
- * SKIP a null rather than coerce it.
23967
- */
23968
- signalPercent: number().min(0).max(100).nullable(),
23969
- /** Raw received signal strength in dBm, when the firmware reports one. */
23970
- rssiDbm: number().optional(),
23971
- /** Network name of a wireless link, when the firmware reports it. */
23972
- ssid: string().optional(),
23973
- /** Ms epoch of the last observation. Lets consumers reason about freshness. */
23974
- lastUpdated: number()
23975
- });
23976
- var networkLinkCapability = {
23977
- name: "network-link",
23978
- scope: "device",
23979
- deviceNative: true,
23980
- mode: "singleton",
23981
- deviceTypes: [
23982
- DeviceType.Camera,
23983
- DeviceType.Sensor,
23984
- DeviceType.Button,
23985
- DeviceType.Switch,
23986
- DeviceType.Light,
23987
- DeviceType.Lock,
23988
- DeviceType.Siren
23989
- ],
23990
- methods: {},
23991
- events: {
23992
- /**
23993
- * Emitted whenever the cached status changes (a link switch, a signal
23994
- * reading that moved). Mirrored on the parent chain by the
23995
- * DeviceEventPropagator like `battery.onStatusChanged`.
23996
- */
23997
- onStatusChanged: { data: object({
23998
- deviceId: number(),
23999
- status: NetworkLinkStatusSchema
24000
- }) } },
24001
- status: {
24002
- schema: NetworkLinkStatusSchema,
24003
- kind: "push",
24004
- empty: {
24005
- type: "unknown",
24006
- signalPercent: null,
24007
- lastUpdated: 0
24008
- }
24009
- },
24010
- /**
24011
- * Runtime-state slice — every provider stores the same shape under
24012
- * `device.runtimeState['network-link']`, read once by the badge and the
24013
- * Home Assistant projector regardless of the driver.
24014
- */
24015
- runtimeState: NetworkLinkStatusSchema,
24016
- /**
24017
- * Runtime-state durability: **restored** — a link reading is slow to
24018
- * change and a sleeping battery camera may not report for hours; the
24019
- * restored slice is what the badge shows until the next read.
24020
- *
24021
- * See `RuntimeStateDurability`. Enforced by
24022
- * `scripts/check-runtime-state-durability.ts`.
24023
- */
24024
- durability: "restored",
24025
- /** Clock fields: written, but excluded from the compare that decides
24026
- * whether persisting is worth a SQLite commit. */
24027
- volatileStateFields: ["lastUpdated"]
24028
- };
24029
- /**
24030
24088
  * Generic boolean sensor — last-resort fallback when no domain-
24031
24089
  * specific binary cap fits (Home Assistant `binary_sensor` without a
24032
24090
  * known `device_class`, or a domain we haven't typed yet). Pure
@@ -27556,6 +27614,369 @@ var nativeObjectDetectionCapability = {
27556
27614
  volatileStateFields: ["lastFetchedAt"]
27557
27615
  };
27558
27616
  /**
27617
+ * `navigation` — a device-scoped capability that natively expresses the FULL
27618
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
27619
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
27620
+ *
27621
+ * Why a NEW cap rather than overloading `ptz`:
27622
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
27623
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
27624
+ * The two are different physical models: PTZ is absolute-position + presets,
27625
+ * navigation is momentary drive nudges + discrete robot ACTIONS
27626
+ * (dock / spot-clean / follow-pet / go-to-point / …).
27627
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
27628
+ * the reverse:
27629
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
27630
+ * / `getOptions`), and
27631
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
27632
+ * robot camera shows up in the existing PTZ control path without every
27633
+ * PTZ provider learning about robots. The mapping lives in the adapter,
27634
+ * not here (see the addon design note):
27635
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
27636
+ * ptz.stop() → navigation.stop()
27637
+ * ptz.goHome() → navigation.runAction('goHome')
27638
+ * ptz.getPresets() → navigation.listActions() (id→preset)
27639
+ * ptz.goToPreset(id) → navigation.runAction(id)
27640
+ *
27641
+ * ## Continuous drive
27642
+ *
27643
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
27644
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
27645
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
27646
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
27647
+ * coalesce them. The UI owns the cadence.
27648
+ *
27649
+ * ## The action dictionary
27650
+ *
27651
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
27652
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
27653
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
27654
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
27655
+ * vendor-specific list. `kind: 'action'` entries are triggered with
27656
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
27657
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
27658
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
27659
+ *
27660
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
27661
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
27662
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
27663
+ * every device handle. A future nodedreame publish adds a typed
27664
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
27665
+ * provider can then swap the raw calls for the typed methods with no change to
27666
+ * THIS contract.
27667
+ */
27668
+ /**
27669
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
27670
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
27671
+ * halts it.
27672
+ *
27673
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
27674
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
27675
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
27676
+ * vector by it (drivers without proportional drive ignore it).
27677
+ *
27678
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
27679
+ * axis alone; an all-undefined nudge is a no-op.
27680
+ */
27681
+ var NavigationMoveCommandSchema = object({
27682
+ pan: number().min(-1).max(1).optional(),
27683
+ tilt: number().min(-1).max(1).optional(),
27684
+ speed: number().min(0).max(1).optional()
27685
+ });
27686
+ /**
27687
+ * The enumerated discrete actions a navigation-capable robot can perform via
27688
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
27689
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
27690
+ * `playSound` (see the `sound` dictionary entries).
27691
+ */
27692
+ var NavigationActionIdSchema = _enum([
27693
+ "goHome",
27694
+ "locate",
27695
+ "spotClean",
27696
+ "findPet",
27697
+ "personFollow",
27698
+ "stop",
27699
+ "startClean",
27700
+ "pauseClean",
27701
+ "dockWash",
27702
+ "autoEmpty",
27703
+ "flashOn",
27704
+ "flashOff"
27705
+ ]);
27706
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
27707
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
27708
+ /**
27709
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
27710
+ * native panel and the PTZ mimic render as a button.
27711
+ *
27712
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
27713
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
27714
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
27715
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
27716
+ * - `label` — operator-facing English label.
27717
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
27718
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
27719
+ * PTZ render ONLY enabled entries. Data-driven: the provider
27720
+ * flips it from config, never by editing code.
27721
+ */
27722
+ var NavigationActionEntrySchema = object({
27723
+ id: string(),
27724
+ kind: NavigationEntryKindSchema,
27725
+ label: string(),
27726
+ icon: string(),
27727
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
27728
+ soundId: number().int().optional(),
27729
+ /** Per-device feature flag — render this entry only when true. */
27730
+ enabled: boolean()
27731
+ });
27732
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
27733
+ var NavigationPointSchema = object({
27734
+ x: number(),
27735
+ y: number()
27736
+ });
27737
+ /**
27738
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
27739
+ * The cap reports which are enabled so the UI / PTZ render only the controls
27740
+ * that are turned on for THIS device. Data-driven: the provider derives these
27741
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
27742
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
27743
+ * that are not dictionary entries.
27744
+ *
27745
+ * - `move` / `stop` — the momentary drive joystick.
27746
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
27747
+ * map-coordinate plumbing is wired.
27748
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
27749
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
27750
+ * - `light` — the on/off fill-light toggle (works anytime).
27751
+ * - `lightMode` — the auto/manual selector + manual level slider (a
27752
+ * camera-service control; needs an active stream).
27753
+ */
27754
+ var NavigationFeaturesSchema = object({
27755
+ move: boolean(),
27756
+ stop: boolean(),
27757
+ goToPoint: boolean(),
27758
+ runAction: boolean(),
27759
+ playSound: boolean(),
27760
+ light: boolean(),
27761
+ lightMode: boolean()
27762
+ });
27763
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
27764
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
27765
+ /**
27766
+ * Live navigation state so the UI can reflect what the robot is doing:
27767
+ * - `mode` — coarse activity (idle / cleaning / following / …).
27768
+ * - `following` — person/pet follow is currently armed.
27769
+ * - `flash` — the on-camera fill light is on.
27770
+ * - `lightMode` — auto vs manual fill-light mode.
27771
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
27772
+ * `lightMode === 'manual'`.
27773
+ */
27774
+ var NavigationStatusSchema = object({
27775
+ mode: _enum([
27776
+ "idle",
27777
+ "cleaning",
27778
+ "spot",
27779
+ "following",
27780
+ "goto",
27781
+ "returning",
27782
+ "paused",
27783
+ "unknown"
27784
+ ]),
27785
+ following: boolean(),
27786
+ flash: boolean(),
27787
+ lightMode: NavigationLightModeSchema,
27788
+ lightLevel: number().min(40).max(100),
27789
+ /** Ms epoch when the slice was last updated. */
27790
+ lastChangedAt: number()
27791
+ });
27792
+ /**
27793
+ * Runtime-state slice owned by this cap (kernel-managed: validated, mirrored,
27794
+ * observable). Adds `lastFetchedAt` on top of the status shape per the
27795
+ * convention.
27796
+ */
27797
+ var NavigationRuntimeStateSchema = NavigationStatusSchema.extend({ lastFetchedAt: number() });
27798
+ var navigationCapability = {
27799
+ name: "navigation",
27800
+ scope: "device",
27801
+ deviceNative: true,
27802
+ mode: "singleton",
27803
+ deviceTypes: [DeviceType.Camera],
27804
+ deviceConfig: { ui: {
27805
+ kind: "widget",
27806
+ widgetId: "host/navigation-panel",
27807
+ tab: "navigation",
27808
+ topTab: true,
27809
+ label: "Navigation",
27810
+ order: 0
27811
+ } },
27812
+ methods: {
27813
+ /**
27814
+ * Momentary drive nudge (the robot moves). `protected` — mirrors
27815
+ * `ptz.continuousMove` so the Viewer navigation panel (and the PTZ-mimic
27816
+ * path) works for any authenticated user, not admin-only. The UI sends
27817
+ * these at ~1 Hz while a control is held; the provider forwards each one to
27818
+ * a single drive write WITHOUT debouncing.
27819
+ */
27820
+ move: method(NavigationMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
27821
+ /** Halt all motion immediately (zero drive vector). */
27822
+ stop: method(object({ deviceId: number() }), _void(), { kind: "mutation" }),
27823
+ /** Send the robot to a point on its live map. */
27824
+ goToPoint: method(NavigationPointSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
27825
+ /**
27826
+ * Enumerate the discrete controls THIS device supports (data-driven UI +
27827
+ * PTZ mimic). Camera-probed subset of {@link NAVIGATION_ACTION_CATALOG}.
27828
+ */
27829
+ listActions: method(object({ deviceId: number() }), array(NavigationActionEntrySchema)),
27830
+ /**
27831
+ * Run one discrete action (a `kind:'action'` dictionary entry). Invalid /
27832
+ * unsupported action ids are rejected by the provider.
27833
+ */
27834
+ runAction: method(object({
27835
+ deviceId: number(),
27836
+ actionId: NavigationActionIdSchema
27837
+ }), _void(), { kind: "mutation" }),
27838
+ /** Play a sound by its wire id (the `soundId` of a `kind:'sound'` entry). */
27839
+ playSound: method(object({
27840
+ deviceId: number(),
27841
+ soundId: number().int()
27842
+ }), _void(), { kind: "mutation" }),
27843
+ /**
27844
+ * Turn the on-camera fill light on / off (the `OpenFullLight` control —
27845
+ * works anytime, no active stream required).
27846
+ */
27847
+ setLightOn: method(object({
27848
+ deviceId: number(),
27849
+ on: boolean()
27850
+ }), _void(), { kind: "mutation" }),
27851
+ /**
27852
+ * Set the fill-light mode (auto vs manual). `manual` optionally carries the
27853
+ * initial `level`. The auto/manual + level control is a CAMERA-service
27854
+ * action that generally needs an active camera stream/monitor session — the
27855
+ * UI shows the manual level slider ONLY when `mode === 'manual'`.
27856
+ */
27857
+ setLightMode: method(object({
27858
+ deviceId: number(),
27859
+ mode: NavigationLightModeSchema,
27860
+ level: number().min(40).max(100).optional()
27861
+ }), _void(), { kind: "mutation" }),
27862
+ /** Set the MANUAL fill-light level (40..100). Implies `manual` mode. */
27863
+ setLightLevel: method(object({
27864
+ deviceId: number(),
27865
+ level: number().min(40).max(100)
27866
+ }), _void(), { kind: "mutation" }),
27867
+ /**
27868
+ * Per-device FEATURE-FLAG report for the general primitives — drives which
27869
+ * controls the UI shows (the per-entry flags for the dictionary come back on
27870
+ * `listActions`).
27871
+ */
27872
+ getFeatures: method(object({ deviceId: number() }), NavigationFeaturesSchema)
27873
+ },
27874
+ events: { onStatusChanged: { data: object({
27875
+ deviceId: number(),
27876
+ status: NavigationStatusSchema
27877
+ }) } },
27878
+ status: {
27879
+ schema: NavigationStatusSchema,
27880
+ kind: "push"
27881
+ },
27882
+ /**
27883
+ * Runtime-state slice mirrored by the kernel. The navigation panel watches it
27884
+ * for live mode / follow / flash changes.
27885
+ */
27886
+ runtimeState: NavigationRuntimeStateSchema,
27887
+ /**
27888
+ * Runtime-state durability: **session** — like `vacuum-control`, a restored
27889
+ * `mode: cleaning` / `following: true` is a robot that is not actually doing
27890
+ * that. The live handle re-publishes on connect.
27891
+ *
27892
+ * See `RuntimeStateDurability`. Enforced by
27893
+ * `scripts/check-runtime-state-durability.ts`.
27894
+ */
27895
+ durability: "session"
27896
+ };
27897
+ /**
27898
+ * Network-link snapshot. Same shape for every provider (a Reolink wifi
27899
+ * camera, a Home Assistant device with a signal-strength sensor, a Tapo
27900
+ * plug): one slice under `device.runtimeState['network-link']`, one badge,
27901
+ * one Home Assistant projection.
27902
+ */
27903
+ var NetworkLinkStatusSchema = object({
27904
+ /** The link the device is on. `'unknown'` = not read yet, not "no link". */
27905
+ type: _enum([
27906
+ "wifi",
27907
+ "ethernet",
27908
+ "cellular",
27909
+ "unknown"
27910
+ ]),
27911
+ /**
27912
+ * Link quality, 0..100 inclusive, normalised by the provider from whatever
27913
+ * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
27914
+ * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
27915
+ * one whose reading has not landed must not be drawn at 0 %. Consumers
27916
+ * SKIP a null rather than coerce it.
27917
+ */
27918
+ signalPercent: number().min(0).max(100).nullable(),
27919
+ /** Raw received signal strength in dBm, when the firmware reports one. */
27920
+ rssiDbm: number().optional(),
27921
+ /** Network name of a wireless link, when the firmware reports it. */
27922
+ ssid: string().optional(),
27923
+ /** Ms epoch of the last observation. Lets consumers reason about freshness. */
27924
+ lastUpdated: number()
27925
+ });
27926
+ var networkLinkCapability = {
27927
+ name: "network-link",
27928
+ scope: "device",
27929
+ deviceNative: true,
27930
+ mode: "singleton",
27931
+ deviceTypes: [
27932
+ DeviceType.Camera,
27933
+ DeviceType.Sensor,
27934
+ DeviceType.Button,
27935
+ DeviceType.Switch,
27936
+ DeviceType.Light,
27937
+ DeviceType.Lock,
27938
+ DeviceType.Siren
27939
+ ],
27940
+ methods: {},
27941
+ events: {
27942
+ /**
27943
+ * Emitted whenever the cached status changes (a link switch, a signal
27944
+ * reading that moved). Mirrored on the parent chain by the
27945
+ * DeviceEventPropagator like `battery.onStatusChanged`.
27946
+ */
27947
+ onStatusChanged: { data: object({
27948
+ deviceId: number(),
27949
+ status: NetworkLinkStatusSchema
27950
+ }) } },
27951
+ status: {
27952
+ schema: NetworkLinkStatusSchema,
27953
+ kind: "push",
27954
+ empty: {
27955
+ type: "unknown",
27956
+ signalPercent: null,
27957
+ lastUpdated: 0
27958
+ }
27959
+ },
27960
+ /**
27961
+ * Runtime-state slice — every provider stores the same shape under
27962
+ * `device.runtimeState['network-link']`, read once by the badge and the
27963
+ * Home Assistant projector regardless of the driver.
27964
+ */
27965
+ runtimeState: NetworkLinkStatusSchema,
27966
+ /**
27967
+ * Runtime-state durability: **restored** — a link reading is slow to
27968
+ * change and a sleeping battery camera may not report for hours; the
27969
+ * restored slice is what the badge shows until the next read.
27970
+ *
27971
+ * See `RuntimeStateDurability`. Enforced by
27972
+ * `scripts/check-runtime-state-durability.ts`.
27973
+ */
27974
+ durability: "restored",
27975
+ /** Clock fields: written, but excluded from the compare that decides
27976
+ * whether persisting is worth a SQLite commit. */
27977
+ volatileStateFields: ["lastUpdated"]
27978
+ };
27979
+ /**
27559
27980
  * network-quality — system-scoped singleton capability tracking RTT,
27560
27981
  * jitter, and observed/peak bandwidth per device + per client.
27561
27982
  *
@@ -29244,287 +29665,6 @@ var ptzAutotrackCapability = {
29244
29665
  */
29245
29666
  durability: "session"
29246
29667
  };
29247
- /**
29248
- * `navigation` — a device-scoped capability that natively expresses the FULL
29249
- * navigation / action surface of a robot that DRIVES ITSELF and carries an
29250
- * on-board camera (the Dreame robot-vacuum camera is the first provider).
29251
- *
29252
- * Why a NEW cap rather than overloading `ptz`:
29253
- * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
29254
- * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
29255
- * The two are different physical models: PTZ is absolute-position + presets,
29256
- * navigation is momentary drive nudges + discrete robot ACTIONS
29257
- * (dock / spot-clean / follow-pet / go-to-point / …).
29258
- * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
29259
- * the reverse:
29260
- * 1. a native CamStack navigation panel (data-driven from `listActions`
29261
- * / `getOptions`), and
29262
- * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
29263
- * robot camera shows up in the existing PTZ control path without every
29264
- * PTZ provider learning about robots. The mapping lives in the adapter,
29265
- * not here (see the addon design note):
29266
- * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
29267
- * ptz.stop() → navigation.stop()
29268
- * ptz.goHome() → navigation.runAction('goHome')
29269
- * ptz.getPresets() → navigation.listActions() (id→preset)
29270
- * ptz.goToPreset(id) → navigation.runAction(id)
29271
- *
29272
- * ## Continuous drive
29273
- *
29274
- * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
29275
- * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
29276
- * one `stop()` on release — exactly like the robot app's remote-drive joystick.
29277
- * The provider forwards EACH `move` to one drive write; it must NOT debounce or
29278
- * coalesce them. The UI owns the cadence.
29279
- *
29280
- * ## The action dictionary
29281
- *
29282
- * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
29283
- * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
29284
- * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
29285
- * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
29286
- * vendor-specific list. `kind: 'action'` entries are triggered with
29287
- * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
29288
- * (the entry carries the `soundId` to pass). The general primitives — `move`,
29289
- * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
29290
- *
29291
- * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
29292
- * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
29293
- * that the currently-published `@apocaliss92/nodedreame` already exposes on
29294
- * every device handle. A future nodedreame publish adds a typed
29295
- * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
29296
- * provider can then swap the raw calls for the typed methods with no change to
29297
- * THIS contract.
29298
- */
29299
- /**
29300
- * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
29301
- * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
29302
- * halts it.
29303
- *
29304
- * - `pan` — turn: negative = left, positive = right, 0 = straight.
29305
- * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
29306
- * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
29307
- * vector by it (drivers without proportional drive ignore it).
29308
- *
29309
- * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
29310
- * axis alone; an all-undefined nudge is a no-op.
29311
- */
29312
- var NavigationMoveCommandSchema = object({
29313
- pan: number().min(-1).max(1).optional(),
29314
- tilt: number().min(-1).max(1).optional(),
29315
- speed: number().min(0).max(1).optional()
29316
- });
29317
- /**
29318
- * The enumerated discrete actions a navigation-capable robot can perform via
29319
- * `runAction`. This is the CLOSED vocabulary; a given device advertises the
29320
- * subset it supports through `listActions`. Sounds are NOT here — they go through
29321
- * `playSound` (see the `sound` dictionary entries).
29322
- */
29323
- var NavigationActionIdSchema = _enum([
29324
- "goHome",
29325
- "locate",
29326
- "spotClean",
29327
- "findPet",
29328
- "personFollow",
29329
- "stop",
29330
- "startClean",
29331
- "pauseClean",
29332
- "dockWash",
29333
- "autoEmpty",
29334
- "flashOn",
29335
- "flashOff"
29336
- ]);
29337
- /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
29338
- var NavigationEntryKindSchema = _enum(["action", "sound"]);
29339
- /**
29340
- * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
29341
- * native panel and the PTZ mimic render as a button.
29342
- *
29343
- * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
29344
- * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
29345
- * (`sound:meow`) whose `soundId` is passed to `playSound`.
29346
- * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
29347
- * - `label` — operator-facing English label.
29348
- * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
29349
- * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
29350
- * PTZ render ONLY enabled entries. Data-driven: the provider
29351
- * flips it from config, never by editing code.
29352
- */
29353
- var NavigationActionEntrySchema = object({
29354
- id: string(),
29355
- kind: NavigationEntryKindSchema,
29356
- label: string(),
29357
- icon: string(),
29358
- /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
29359
- soundId: number().int().optional(),
29360
- /** Per-device feature flag — render this entry only when true. */
29361
- enabled: boolean()
29362
- });
29363
- /** Coordinates for `goToPoint` — a point on the robot's live map. */
29364
- var NavigationPointSchema = object({
29365
- x: number(),
29366
- y: number()
29367
- });
29368
- /**
29369
- * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
29370
- * The cap reports which are enabled so the UI / PTZ render only the controls
29371
- * that are turned on for THIS device. Data-driven: the provider derives these
29372
- * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
29373
- * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
29374
- * that are not dictionary entries.
29375
- *
29376
- * - `move` / `stop` — the momentary drive joystick.
29377
- * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
29378
- * map-coordinate plumbing is wired.
29379
- * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
29380
- * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
29381
- * - `light` — the on/off fill-light toggle (works anytime).
29382
- * - `lightMode` — the auto/manual selector + manual level slider (a
29383
- * camera-service control; needs an active stream).
29384
- */
29385
- var NavigationFeaturesSchema = object({
29386
- move: boolean(),
29387
- stop: boolean(),
29388
- goToPoint: boolean(),
29389
- runAction: boolean(),
29390
- playSound: boolean(),
29391
- light: boolean(),
29392
- lightMode: boolean()
29393
- });
29394
- /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
29395
- var NavigationLightModeSchema = _enum(["auto", "manual"]);
29396
- /**
29397
- * Live navigation state so the UI can reflect what the robot is doing:
29398
- * - `mode` — coarse activity (idle / cleaning / following / …).
29399
- * - `following` — person/pet follow is currently armed.
29400
- * - `flash` — the on-camera fill light is on.
29401
- * - `lightMode` — auto vs manual fill-light mode.
29402
- * - `lightLevel` — manual fill-light level (40..100); meaningful when
29403
- * `lightMode === 'manual'`.
29404
- */
29405
- var NavigationStatusSchema = object({
29406
- mode: _enum([
29407
- "idle",
29408
- "cleaning",
29409
- "spot",
29410
- "following",
29411
- "goto",
29412
- "returning",
29413
- "paused",
29414
- "unknown"
29415
- ]),
29416
- following: boolean(),
29417
- flash: boolean(),
29418
- lightMode: NavigationLightModeSchema,
29419
- lightLevel: number().min(40).max(100),
29420
- /** Ms epoch when the slice was last updated. */
29421
- lastChangedAt: number()
29422
- });
29423
- /**
29424
- * Runtime-state slice owned by this cap (kernel-managed: validated, mirrored,
29425
- * observable). Adds `lastFetchedAt` on top of the status shape per the
29426
- * convention.
29427
- */
29428
- var NavigationRuntimeStateSchema = NavigationStatusSchema.extend({ lastFetchedAt: number() });
29429
- var navigationCapability = {
29430
- name: "navigation",
29431
- scope: "device",
29432
- deviceNative: true,
29433
- mode: "singleton",
29434
- deviceTypes: [DeviceType.Camera],
29435
- deviceConfig: { ui: {
29436
- kind: "widget",
29437
- widgetId: "host/navigation-panel",
29438
- tab: "navigation",
29439
- topTab: true,
29440
- label: "Navigation",
29441
- order: 0
29442
- } },
29443
- methods: {
29444
- /**
29445
- * Momentary drive nudge (the robot moves). `protected` — mirrors
29446
- * `ptz.continuousMove` so the Viewer navigation panel (and the PTZ-mimic
29447
- * path) works for any authenticated user, not admin-only. The UI sends
29448
- * these at ~1 Hz while a control is held; the provider forwards each one to
29449
- * a single drive write WITHOUT debouncing.
29450
- */
29451
- move: method(NavigationMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
29452
- /** Halt all motion immediately (zero drive vector). */
29453
- stop: method(object({ deviceId: number() }), _void(), { kind: "mutation" }),
29454
- /** Send the robot to a point on its live map. */
29455
- goToPoint: method(NavigationPointSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
29456
- /**
29457
- * Enumerate the discrete controls THIS device supports (data-driven UI +
29458
- * PTZ mimic). Camera-probed subset of {@link NAVIGATION_ACTION_CATALOG}.
29459
- */
29460
- listActions: method(object({ deviceId: number() }), array(NavigationActionEntrySchema)),
29461
- /**
29462
- * Run one discrete action (a `kind:'action'` dictionary entry). Invalid /
29463
- * unsupported action ids are rejected by the provider.
29464
- */
29465
- runAction: method(object({
29466
- deviceId: number(),
29467
- actionId: NavigationActionIdSchema
29468
- }), _void(), { kind: "mutation" }),
29469
- /** Play a sound by its wire id (the `soundId` of a `kind:'sound'` entry). */
29470
- playSound: method(object({
29471
- deviceId: number(),
29472
- soundId: number().int()
29473
- }), _void(), { kind: "mutation" }),
29474
- /**
29475
- * Turn the on-camera fill light on / off (the `OpenFullLight` control —
29476
- * works anytime, no active stream required).
29477
- */
29478
- setLightOn: method(object({
29479
- deviceId: number(),
29480
- on: boolean()
29481
- }), _void(), { kind: "mutation" }),
29482
- /**
29483
- * Set the fill-light mode (auto vs manual). `manual` optionally carries the
29484
- * initial `level`. The auto/manual + level control is a CAMERA-service
29485
- * action that generally needs an active camera stream/monitor session — the
29486
- * UI shows the manual level slider ONLY when `mode === 'manual'`.
29487
- */
29488
- setLightMode: method(object({
29489
- deviceId: number(),
29490
- mode: NavigationLightModeSchema,
29491
- level: number().min(40).max(100).optional()
29492
- }), _void(), { kind: "mutation" }),
29493
- /** Set the MANUAL fill-light level (40..100). Implies `manual` mode. */
29494
- setLightLevel: method(object({
29495
- deviceId: number(),
29496
- level: number().min(40).max(100)
29497
- }), _void(), { kind: "mutation" }),
29498
- /**
29499
- * Per-device FEATURE-FLAG report for the general primitives — drives which
29500
- * controls the UI shows (the per-entry flags for the dictionary come back on
29501
- * `listActions`).
29502
- */
29503
- getFeatures: method(object({ deviceId: number() }), NavigationFeaturesSchema)
29504
- },
29505
- events: { onStatusChanged: { data: object({
29506
- deviceId: number(),
29507
- status: NavigationStatusSchema
29508
- }) } },
29509
- status: {
29510
- schema: NavigationStatusSchema,
29511
- kind: "push"
29512
- },
29513
- /**
29514
- * Runtime-state slice mirrored by the kernel. The navigation panel watches it
29515
- * for live mode / follow / flash changes.
29516
- */
29517
- runtimeState: NavigationRuntimeStateSchema,
29518
- /**
29519
- * Runtime-state durability: **session** — like `vacuum-control`, a restored
29520
- * `mode: cleaning` / `following: true` is a robot that is not actually doing
29521
- * that. The live handle re-publishes on connect.
29522
- *
29523
- * See `RuntimeStateDurability`. Enforced by
29524
- * `scripts/check-runtime-state-durability.ts`.
29525
- */
29526
- durability: "session"
29527
- };
29528
29668
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
29529
29669
  kind: "mutation",
29530
29670
  auth: "admin"
@@ -39391,6 +39531,12 @@ Object.freeze({
39391
39531
  addonId: null,
39392
39532
  access: "view"
39393
39533
  },
39534
+ "storage.listDrainProgress": {
39535
+ capName: "storage",
39536
+ capScope: "system",
39537
+ addonId: null,
39538
+ access: "view"
39539
+ },
39394
39540
  "storage.listLocationDeclarations": {
39395
39541
  capName: "storage",
39396
39542
  capScope: "system",
@@ -39535,6 +39681,12 @@ Object.freeze({
39535
39681
  addonId: null,
39536
39682
  access: "view"
39537
39683
  },
39684
+ "storageOccupancy.getOccupancy": {
39685
+ capName: "storage-occupancy",
39686
+ capScope: "system",
39687
+ addonId: null,
39688
+ access: "view"
39689
+ },
39538
39690
  "storageProvider.abortUpload": {
39539
39691
  capName: "storage-provider",
39540
39692
  capScope: "system",