@camstack/addon-matter-broker 0.2.78 → 0.2.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +519 -367
  2. package/dist/addon.mjs +519 -367
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -13,7 +13,7 @@ let node_stream_promises = require("node:stream/promises");
13
13
  let node_net = require("node:net");
14
14
  let node_dgram = require("node:dgram");
15
15
  node_dgram = require_esm.__toESM(node_dgram, 1);
16
- //#region ../types/dist/event-category-zAv7pMUz.mjs
16
+ //#region ../types/dist/event-category-CnLqLOKs.mjs
17
17
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
18
18
  EventCategory["SystemBoot"] = "system.boot";
19
19
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -208,6 +208,19 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
208
208
  EventCategory["ProcessCrashed"] = "process.crashed";
209
209
  EventCategory["ProcessRestartScheduled"] = "process.restart_scheduled";
210
210
  EventCategory["ProcessRestarted"] = "process.restarted";
211
+ /**
212
+ * The SET of storage locations changed — one was created, edited, enabled,
213
+ * disabled or deleted through `storage.upsertLocation` / `deleteLocation`.
214
+ *
215
+ * Telemetry, not a transaction (D8/D11): every consumer that re-resolves on
216
+ * it must also converge on its own periodic path, because a dropped event
217
+ * must not leave a node writing to yesterday's disk set forever. It exists
218
+ * because there was NO signal at all — an operator who added a second
219
+ * recordings disk in the admin UI got nothing, and the recorder kept its
220
+ * resolved locations until something else happened to re-resolve them
221
+ * (D387). Payload `StorageLocationsChangedPayload`.
222
+ */
223
+ EventCategory["StorageLocationsChanged"] = "storage.locations-changed";
211
224
  EventCategory["RecordingStarted"] = "recording.started";
212
225
  EventCategory["RecordingStopped"] = "recording.stopped";
213
226
  EventCategory["RecordingError"] = "recording.error";
@@ -8550,6 +8563,21 @@ var StorageCleanupJobSchema = object({
8550
8563
  });
8551
8564
  var StorageCleanupStatusInputSchema = object({ jobId: string$2().optional() });
8552
8565
  /**
8566
+ * The one typed state of a storage location. Authoritative Zod schema — the TS
8567
+ * alias below is `z.infer<>` of it, never a second spelling.
8568
+ */
8569
+ var StorageLocationModeSchema = _enum([
8570
+ "active",
8571
+ "readonly",
8572
+ "drain",
8573
+ "disabled"
8574
+ ]);
8575
+ _enum([
8576
+ "normal",
8577
+ "never",
8578
+ "drain"
8579
+ ]);
8580
+ /**
8553
8581
  * `StorageLocationType` — an addon-declared id that identifies the *kind* of
8554
8582
  * storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
8555
8583
  * so the persisted record schema and the consumer-facing cap can both consume it
@@ -8615,6 +8643,21 @@ var StorageLocationSchema = object({
8615
8643
  * stops existing rather than being re-derived on every read.
8616
8644
  */
8617
8645
  enabled: boolean().optional(),
8646
+ /**
8647
+ * THE state of this location (D385), and the only authority on what may be
8648
+ * written, read or evicted here. Interpreted in exactly one place —
8649
+ * `storage-location-mode.ts` — which also folds the legacy
8650
+ * `enabled` / `config.readOnly` pair into a mode so an old row is never
8651
+ * ambiguous.
8652
+ *
8653
+ * OPTIONAL only for the wire and for rows written before D385: absence is
8654
+ * resolved by `resolveLocationMode`, and the orchestrator stamps every
8655
+ * unstamped row ONCE at hydrate so absence stops existing rather than being
8656
+ * re-derived on every read. `enabled` survives one release as a DERIVED
8657
+ * mirror (`mode === 'active'`); `withLocationMode` is the only writer of
8658
+ * either, so the two cannot disagree.
8659
+ */
8660
+ mode: StorageLocationModeSchema.optional(),
8618
8661
  /** COMPUTED at read time by the orchestrator (statfs of the backing volume
8619
8662
  * for node-local locations it can reach) — never persisted, absent when the
8620
8663
  * volume is remote/unreachable. The single capacity truth every UI reads. */
@@ -8622,11 +8665,46 @@ var StorageLocationSchema = object({
8622
8665
  totalBytes: number(),
8623
8666
  availableBytes: number()
8624
8667
  }).nullable().optional(),
8668
+ /**
8669
+ * How much of that volume CamStack ITSELF holds on this location (D388) —
8670
+ * COMPUTED at read time from the `storage-occupancy` providers' own figures,
8671
+ * never persisted, never a filesystem walk.
8672
+ *
8673
+ * **ABSENT MEANS UNKNOWN, never zero.** No provider has reported for this
8674
+ * location yet — nobody stores here, the owning addon is down, or the first
8675
+ * refresh has not completed. A UI must omit the segment rather than draw it
8676
+ * at zero, which would claim we occupy nothing (D315). It is an OBJECT and
8677
+ * not a bare number precisely so that a `?? 0` on the consuming side has to
8678
+ * be spelled out loud instead of appearing by accident.
8679
+ *
8680
+ * `measuredAtMs` is the OLDEST contributing measurement, so it is honest
8681
+ * about the whole figure rather than about its freshest part.
8682
+ */
8683
+ owned: object({
8684
+ bytes: number().int().nonnegative(),
8685
+ measuredAtMs: number().int().nonnegative()
8686
+ }).optional(),
8625
8687
  createdAt: number(),
8626
8688
  updatedAt: number()
8627
8689
  });
8628
8690
  object({ isDefault: boolean().optional() });
8629
8691
  /**
8692
+ * How far a `drain` has got (D386) — the read a UI renders, and nothing more.
8693
+ *
8694
+ * `estimatedEmptyAtMs` is derived from the growth the ratchet has actually
8695
+ * OBSERVED and is `null` when it has observed none. Never a fabricated date: a
8696
+ * drain with no observed growth has no honest ETA, and inventing one is how an
8697
+ * operator learns not to believe the screen.
8698
+ */
8699
+ var StorageDrainProgressSchema = object({
8700
+ locationId: string$2(),
8701
+ startedAtMs: number(),
8702
+ startBytes: number(),
8703
+ bytesRemaining: number(),
8704
+ drained: boolean(),
8705
+ estimatedEmptyAtMs: number().nullable()
8706
+ });
8707
+ /**
8630
8708
  * Reference accepted by consumer-facing `api.storage.*` calls.
8631
8709
  * Either:
8632
8710
  * - a `StorageLocationType` (e.g. `'backups'`) → the sole location of that type
@@ -20501,8 +20579,25 @@ var occupancyRecheckFramesField = {
20501
20579
  * (analyzer attaches detected `regions[]`; onboard does not — the
20502
20580
  * camera typically only reports a binary signal plus an optional
20503
20581
  * channel/AI class which lives in dedicated event channels).
20504
- */
20505
- var MotionSourceEnum = _enum(["onboard", "analyzer"]);
20582
+ *
20583
+ * - `onboard` — the camera's firmware said something moved.
20584
+ * - `analyzer` — this runner's frame-diff said so, and attaches `regions[]`.
20585
+ * - `device-activity` — the DEVICE said it is doing its job: the
20586
+ * `recording-signal` LEVEL the same device raises for the recorder
20587
+ * ([D380](../../../../docs/decisions/adr-0380-a-device-decided-recording-is-a-mode-with-no-schedule-seeded-once.md)),
20588
+ * republished as a motion source. It attaches **nothing** — no regions, no
20589
+ * class: the only fact it carries is that the device is active, and a robot
20590
+ * vacuum that is itself the moving object has no region worth sending. It is
20591
+ * a LEVEL, so unlike `onboard` it has a real falling edge, and unlike
20592
+ * `analyzer` it must not open the frame-diff side-channel — the runner's
20593
+ * `handleOnboardMotionAnalyzer` gate is `source === 'onboard'` and stays that
20594
+ * way ([D392](../../../../docs/decisions/adr-0392-a-device-that-says-it-is-working-is-a-motion-source-of-its-own.md)).
20595
+ */
20596
+ var MotionSourceEnum = _enum([
20597
+ "onboard",
20598
+ "analyzer",
20599
+ "device-activity"
20600
+ ]);
20506
20601
  /**
20507
20602
  * List of motion sources active on a camera. Empty array is valid:
20508
20603
  * "no source" — happens for battery cams without firmware motion when
@@ -22021,7 +22116,7 @@ method(object({
22021
22116
  }), _void(), {
22022
22117
  kind: "mutation",
22023
22118
  auth: "admin"
22024
- }), method(object({ id: string$2() }), object({
22119
+ }), method(_void(), array(StorageDrainProgressSchema).readonly()), method(object({ id: string$2() }), object({
22025
22120
  ok: boolean(),
22026
22121
  error: string$2().optional()
22027
22122
  }), { auth: "admin" }), method(_void(), array(ProviderListEntrySchema).readonly()), method(object({
@@ -22091,6 +22186,51 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
22091
22186
  kind: "mutation",
22092
22187
  auth: "admin"
22093
22188
  }), method(object({}), array(StorageMigrationJobSchema).readonly(), { auth: "admin" });
22189
+ /**
22190
+ * `storage-occupancy` — how many bytes an addon actually HOLDS on a storage
22191
+ * location (D388).
22192
+ *
22193
+ * ## Why this is not `storage-evictable`
22194
+ *
22195
+ * `storage-evictable.getEvictableUsage` looks like the same question and is
22196
+ * not, in two ways that both matter and both bite hardest on the locations an
22197
+ * operator most wants a figure for:
22198
+ *
22199
+ * - it reports the whole eviction DOMAIN, not the location. `recordings:default`
22200
+ * and `recordingsLow:default` deliberately share one root and evict as one
22201
+ * oldest-first pool, so both answer with the SAME combined total. As an
22202
+ * occupancy figure that double-counts the disk.
22203
+ * - it reports ZERO for a location whose eviction policy is `never` (D385) —
22204
+ * a `readonly` or `disabled` disk. Those are exactly the disks an operator
22205
+ * is retiring and staring at.
22206
+ *
22207
+ * So this is its own contract with its own quantity, and the quantity is
22208
+ * OCCUPIED: every byte the addon holds on that location, whether or not it
22209
+ * would ever be willing to delete it. A provider that can only answer
22210
+ * "evictable" must not register here — a number that silently means different
22211
+ * things per class is worse than no number.
22212
+ *
22213
+ * ## Absence is an answer
22214
+ *
22215
+ * A location nobody reports for is UNKNOWN, never zero (D315). The orchestrator
22216
+ * stamps `StorageLocation.owned` only for locations it has a report for, and
22217
+ * the field is an OBJECT rather than a bare number so that a `?? 0` on the
22218
+ * consuming side has to be written out loud instead of appearing by accident.
22219
+ *
22220
+ * `internal: true` — consumed by the orchestrator's `listLocations` stamp, never
22221
+ * a public client surface. Clients read the stamped `StorageLocation.owned`.
22222
+ */
22223
+ /** One provider's occupancy answer for one location. */
22224
+ var StorageOccupancyReportSchema = object({
22225
+ locationId: string$2(),
22226
+ /** Bytes this provider holds on THAT location — not its eviction domain, and
22227
+ * not net of what it is willing to delete. */
22228
+ ownedBytes: number().int().nonnegative(),
22229
+ /** When the provider last actually measured this. The orchestrator carries it
22230
+ * through so a UI can say how old the figure is instead of implying "now". */
22231
+ measuredAtMs: number().int().nonnegative()
22232
+ });
22233
+ method(object({ locationIds: array(string$2()).readonly() }), array(StorageOccupancyReportSchema).readonly(), { auth: "admin" });
22094
22234
  var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
22095
22235
  providerId: string$2().min(1),
22096
22236
  displayName: string$2().min(1),
@@ -23926,88 +24066,6 @@ onStatusChanged: { data: object({
23926
24066
  volatileStateFields: ["lastUpdated"]
23927
24067
  };
23928
24068
  /**
23929
- * Network-link snapshot. Same shape for every provider (a Reolink wifi
23930
- * camera, a Home Assistant device with a signal-strength sensor, a Tapo
23931
- * plug): one slice under `device.runtimeState['network-link']`, one badge,
23932
- * one Home Assistant projection.
23933
- */
23934
- var NetworkLinkStatusSchema = object({
23935
- /** The link the device is on. `'unknown'` = not read yet, not "no link". */
23936
- type: _enum([
23937
- "wifi",
23938
- "ethernet",
23939
- "cellular",
23940
- "unknown"
23941
- ]),
23942
- /**
23943
- * Link quality, 0..100 inclusive, normalised by the provider from whatever
23944
- * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
23945
- * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
23946
- * one whose reading has not landed must not be drawn at 0 %. Consumers
23947
- * SKIP a null rather than coerce it.
23948
- */
23949
- signalPercent: number().min(0).max(100).nullable(),
23950
- /** Raw received signal strength in dBm, when the firmware reports one. */
23951
- rssiDbm: number().optional(),
23952
- /** Network name of a wireless link, when the firmware reports it. */
23953
- ssid: string$2().optional(),
23954
- /** Ms epoch of the last observation. Lets consumers reason about freshness. */
23955
- lastUpdated: number()
23956
- });
23957
- var networkLinkCapability = {
23958
- name: "network-link",
23959
- scope: "device",
23960
- deviceNative: true,
23961
- mode: "singleton",
23962
- deviceTypes: [
23963
- DeviceType.Camera,
23964
- DeviceType.Sensor,
23965
- DeviceType.Button,
23966
- DeviceType.Switch,
23967
- DeviceType.Light,
23968
- DeviceType.Lock,
23969
- DeviceType.Siren
23970
- ],
23971
- methods: {},
23972
- events: {
23973
- /**
23974
- * Emitted whenever the cached status changes (a link switch, a signal
23975
- * reading that moved). Mirrored on the parent chain by the
23976
- * DeviceEventPropagator like `battery.onStatusChanged`.
23977
- */
23978
- onStatusChanged: { data: object({
23979
- deviceId: number(),
23980
- status: NetworkLinkStatusSchema
23981
- }) } },
23982
- status: {
23983
- schema: NetworkLinkStatusSchema,
23984
- kind: "push",
23985
- empty: {
23986
- type: "unknown",
23987
- signalPercent: null,
23988
- lastUpdated: 0
23989
- }
23990
- },
23991
- /**
23992
- * Runtime-state slice — every provider stores the same shape under
23993
- * `device.runtimeState['network-link']`, read once by the badge and the
23994
- * Home Assistant projector regardless of the driver.
23995
- */
23996
- runtimeState: NetworkLinkStatusSchema,
23997
- /**
23998
- * Runtime-state durability: **restored** — a link reading is slow to
23999
- * change and a sleeping battery camera may not report for hours; the
24000
- * restored slice is what the badge shows until the next read.
24001
- *
24002
- * See `RuntimeStateDurability`. Enforced by
24003
- * `scripts/check-runtime-state-durability.ts`.
24004
- */
24005
- durability: "restored",
24006
- /** Clock fields: written, but excluded from the compare that decides
24007
- * whether persisting is worth a SQLite commit. */
24008
- volatileStateFields: ["lastUpdated"]
24009
- };
24010
- /**
24011
24069
  * Generic boolean sensor — last-resort fallback when no domain-
24012
24070
  * specific binary cap fits (Home Assistant `binary_sensor` without a
24013
24071
  * known `device_class`, or a domain we haven't typed yet). Pure
@@ -27554,6 +27612,369 @@ var nativeObjectDetectionCapability = {
27554
27612
  volatileStateFields: ["lastFetchedAt"]
27555
27613
  };
27556
27614
  /**
27615
+ * `navigation` — a device-scoped capability that natively expresses the FULL
27616
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
27617
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
27618
+ *
27619
+ * Why a NEW cap rather than overloading `ptz`:
27620
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
27621
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
27622
+ * The two are different physical models: PTZ is absolute-position + presets,
27623
+ * navigation is momentary drive nudges + discrete robot ACTIONS
27624
+ * (dock / spot-clean / follow-pet / go-to-point / …).
27625
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
27626
+ * the reverse:
27627
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
27628
+ * / `getOptions`), and
27629
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
27630
+ * robot camera shows up in the existing PTZ control path without every
27631
+ * PTZ provider learning about robots. The mapping lives in the adapter,
27632
+ * not here (see the addon design note):
27633
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
27634
+ * ptz.stop() → navigation.stop()
27635
+ * ptz.goHome() → navigation.runAction('goHome')
27636
+ * ptz.getPresets() → navigation.listActions() (id→preset)
27637
+ * ptz.goToPreset(id) → navigation.runAction(id)
27638
+ *
27639
+ * ## Continuous drive
27640
+ *
27641
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
27642
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
27643
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
27644
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
27645
+ * coalesce them. The UI owns the cadence.
27646
+ *
27647
+ * ## The action dictionary
27648
+ *
27649
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
27650
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
27651
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
27652
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
27653
+ * vendor-specific list. `kind: 'action'` entries are triggered with
27654
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
27655
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
27656
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
27657
+ *
27658
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
27659
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
27660
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
27661
+ * every device handle. A future nodedreame publish adds a typed
27662
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
27663
+ * provider can then swap the raw calls for the typed methods with no change to
27664
+ * THIS contract.
27665
+ */
27666
+ /**
27667
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
27668
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
27669
+ * halts it.
27670
+ *
27671
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
27672
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
27673
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
27674
+ * vector by it (drivers without proportional drive ignore it).
27675
+ *
27676
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
27677
+ * axis alone; an all-undefined nudge is a no-op.
27678
+ */
27679
+ var NavigationMoveCommandSchema = object({
27680
+ pan: number().min(-1).max(1).optional(),
27681
+ tilt: number().min(-1).max(1).optional(),
27682
+ speed: number().min(0).max(1).optional()
27683
+ });
27684
+ /**
27685
+ * The enumerated discrete actions a navigation-capable robot can perform via
27686
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
27687
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
27688
+ * `playSound` (see the `sound` dictionary entries).
27689
+ */
27690
+ var NavigationActionIdSchema = _enum([
27691
+ "goHome",
27692
+ "locate",
27693
+ "spotClean",
27694
+ "findPet",
27695
+ "personFollow",
27696
+ "stop",
27697
+ "startClean",
27698
+ "pauseClean",
27699
+ "dockWash",
27700
+ "autoEmpty",
27701
+ "flashOn",
27702
+ "flashOff"
27703
+ ]);
27704
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
27705
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
27706
+ /**
27707
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
27708
+ * native panel and the PTZ mimic render as a button.
27709
+ *
27710
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
27711
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
27712
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
27713
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
27714
+ * - `label` — operator-facing English label.
27715
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
27716
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
27717
+ * PTZ render ONLY enabled entries. Data-driven: the provider
27718
+ * flips it from config, never by editing code.
27719
+ */
27720
+ var NavigationActionEntrySchema = object({
27721
+ id: string$2(),
27722
+ kind: NavigationEntryKindSchema,
27723
+ label: string$2(),
27724
+ icon: string$2(),
27725
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
27726
+ soundId: number().int().optional(),
27727
+ /** Per-device feature flag — render this entry only when true. */
27728
+ enabled: boolean()
27729
+ });
27730
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
27731
+ var NavigationPointSchema = object({
27732
+ x: number(),
27733
+ y: number()
27734
+ });
27735
+ /**
27736
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
27737
+ * The cap reports which are enabled so the UI / PTZ render only the controls
27738
+ * that are turned on for THIS device. Data-driven: the provider derives these
27739
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
27740
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
27741
+ * that are not dictionary entries.
27742
+ *
27743
+ * - `move` / `stop` — the momentary drive joystick.
27744
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
27745
+ * map-coordinate plumbing is wired.
27746
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
27747
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
27748
+ * - `light` — the on/off fill-light toggle (works anytime).
27749
+ * - `lightMode` — the auto/manual selector + manual level slider (a
27750
+ * camera-service control; needs an active stream).
27751
+ */
27752
+ var NavigationFeaturesSchema = object({
27753
+ move: boolean(),
27754
+ stop: boolean(),
27755
+ goToPoint: boolean(),
27756
+ runAction: boolean(),
27757
+ playSound: boolean(),
27758
+ light: boolean(),
27759
+ lightMode: boolean()
27760
+ });
27761
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
27762
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
27763
+ /**
27764
+ * Live navigation state so the UI can reflect what the robot is doing:
27765
+ * - `mode` — coarse activity (idle / cleaning / following / …).
27766
+ * - `following` — person/pet follow is currently armed.
27767
+ * - `flash` — the on-camera fill light is on.
27768
+ * - `lightMode` — auto vs manual fill-light mode.
27769
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
27770
+ * `lightMode === 'manual'`.
27771
+ */
27772
+ var NavigationStatusSchema = object({
27773
+ mode: _enum([
27774
+ "idle",
27775
+ "cleaning",
27776
+ "spot",
27777
+ "following",
27778
+ "goto",
27779
+ "returning",
27780
+ "paused",
27781
+ "unknown"
27782
+ ]),
27783
+ following: boolean(),
27784
+ flash: boolean(),
27785
+ lightMode: NavigationLightModeSchema,
27786
+ lightLevel: number().min(40).max(100),
27787
+ /** Ms epoch when the slice was last updated. */
27788
+ lastChangedAt: number()
27789
+ });
27790
+ /**
27791
+ * Runtime-state slice owned by this cap (kernel-managed: validated, mirrored,
27792
+ * observable). Adds `lastFetchedAt` on top of the status shape per the
27793
+ * convention.
27794
+ */
27795
+ var NavigationRuntimeStateSchema = NavigationStatusSchema.extend({ lastFetchedAt: number() });
27796
+ var navigationCapability = {
27797
+ name: "navigation",
27798
+ scope: "device",
27799
+ deviceNative: true,
27800
+ mode: "singleton",
27801
+ deviceTypes: [DeviceType.Camera],
27802
+ deviceConfig: { ui: {
27803
+ kind: "widget",
27804
+ widgetId: "host/navigation-panel",
27805
+ tab: "navigation",
27806
+ topTab: true,
27807
+ label: "Navigation",
27808
+ order: 0
27809
+ } },
27810
+ methods: {
27811
+ /**
27812
+ * Momentary drive nudge (the robot moves). `protected` — mirrors
27813
+ * `ptz.continuousMove` so the Viewer navigation panel (and the PTZ-mimic
27814
+ * path) works for any authenticated user, not admin-only. The UI sends
27815
+ * these at ~1 Hz while a control is held; the provider forwards each one to
27816
+ * a single drive write WITHOUT debouncing.
27817
+ */
27818
+ move: method(NavigationMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
27819
+ /** Halt all motion immediately (zero drive vector). */
27820
+ stop: method(object({ deviceId: number() }), _void(), { kind: "mutation" }),
27821
+ /** Send the robot to a point on its live map. */
27822
+ goToPoint: method(NavigationPointSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
27823
+ /**
27824
+ * Enumerate the discrete controls THIS device supports (data-driven UI +
27825
+ * PTZ mimic). Camera-probed subset of {@link NAVIGATION_ACTION_CATALOG}.
27826
+ */
27827
+ listActions: method(object({ deviceId: number() }), array(NavigationActionEntrySchema)),
27828
+ /**
27829
+ * Run one discrete action (a `kind:'action'` dictionary entry). Invalid /
27830
+ * unsupported action ids are rejected by the provider.
27831
+ */
27832
+ runAction: method(object({
27833
+ deviceId: number(),
27834
+ actionId: NavigationActionIdSchema
27835
+ }), _void(), { kind: "mutation" }),
27836
+ /** Play a sound by its wire id (the `soundId` of a `kind:'sound'` entry). */
27837
+ playSound: method(object({
27838
+ deviceId: number(),
27839
+ soundId: number().int()
27840
+ }), _void(), { kind: "mutation" }),
27841
+ /**
27842
+ * Turn the on-camera fill light on / off (the `OpenFullLight` control —
27843
+ * works anytime, no active stream required).
27844
+ */
27845
+ setLightOn: method(object({
27846
+ deviceId: number(),
27847
+ on: boolean()
27848
+ }), _void(), { kind: "mutation" }),
27849
+ /**
27850
+ * Set the fill-light mode (auto vs manual). `manual` optionally carries the
27851
+ * initial `level`. The auto/manual + level control is a CAMERA-service
27852
+ * action that generally needs an active camera stream/monitor session — the
27853
+ * UI shows the manual level slider ONLY when `mode === 'manual'`.
27854
+ */
27855
+ setLightMode: method(object({
27856
+ deviceId: number(),
27857
+ mode: NavigationLightModeSchema,
27858
+ level: number().min(40).max(100).optional()
27859
+ }), _void(), { kind: "mutation" }),
27860
+ /** Set the MANUAL fill-light level (40..100). Implies `manual` mode. */
27861
+ setLightLevel: method(object({
27862
+ deviceId: number(),
27863
+ level: number().min(40).max(100)
27864
+ }), _void(), { kind: "mutation" }),
27865
+ /**
27866
+ * Per-device FEATURE-FLAG report for the general primitives — drives which
27867
+ * controls the UI shows (the per-entry flags for the dictionary come back on
27868
+ * `listActions`).
27869
+ */
27870
+ getFeatures: method(object({ deviceId: number() }), NavigationFeaturesSchema)
27871
+ },
27872
+ events: { onStatusChanged: { data: object({
27873
+ deviceId: number(),
27874
+ status: NavigationStatusSchema
27875
+ }) } },
27876
+ status: {
27877
+ schema: NavigationStatusSchema,
27878
+ kind: "push"
27879
+ },
27880
+ /**
27881
+ * Runtime-state slice mirrored by the kernel. The navigation panel watches it
27882
+ * for live mode / follow / flash changes.
27883
+ */
27884
+ runtimeState: NavigationRuntimeStateSchema,
27885
+ /**
27886
+ * Runtime-state durability: **session** — like `vacuum-control`, a restored
27887
+ * `mode: cleaning` / `following: true` is a robot that is not actually doing
27888
+ * that. The live handle re-publishes on connect.
27889
+ *
27890
+ * See `RuntimeStateDurability`. Enforced by
27891
+ * `scripts/check-runtime-state-durability.ts`.
27892
+ */
27893
+ durability: "session"
27894
+ };
27895
+ /**
27896
+ * Network-link snapshot. Same shape for every provider (a Reolink wifi
27897
+ * camera, a Home Assistant device with a signal-strength sensor, a Tapo
27898
+ * plug): one slice under `device.runtimeState['network-link']`, one badge,
27899
+ * one Home Assistant projection.
27900
+ */
27901
+ var NetworkLinkStatusSchema = object({
27902
+ /** The link the device is on. `'unknown'` = not read yet, not "no link". */
27903
+ type: _enum([
27904
+ "wifi",
27905
+ "ethernet",
27906
+ "cellular",
27907
+ "unknown"
27908
+ ]),
27909
+ /**
27910
+ * Link quality, 0..100 inclusive, normalised by the provider from whatever
27911
+ * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
27912
+ * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
27913
+ * one whose reading has not landed must not be drawn at 0 %. Consumers
27914
+ * SKIP a null rather than coerce it.
27915
+ */
27916
+ signalPercent: number().min(0).max(100).nullable(),
27917
+ /** Raw received signal strength in dBm, when the firmware reports one. */
27918
+ rssiDbm: number().optional(),
27919
+ /** Network name of a wireless link, when the firmware reports it. */
27920
+ ssid: string$2().optional(),
27921
+ /** Ms epoch of the last observation. Lets consumers reason about freshness. */
27922
+ lastUpdated: number()
27923
+ });
27924
+ var networkLinkCapability = {
27925
+ name: "network-link",
27926
+ scope: "device",
27927
+ deviceNative: true,
27928
+ mode: "singleton",
27929
+ deviceTypes: [
27930
+ DeviceType.Camera,
27931
+ DeviceType.Sensor,
27932
+ DeviceType.Button,
27933
+ DeviceType.Switch,
27934
+ DeviceType.Light,
27935
+ DeviceType.Lock,
27936
+ DeviceType.Siren
27937
+ ],
27938
+ methods: {},
27939
+ events: {
27940
+ /**
27941
+ * Emitted whenever the cached status changes (a link switch, a signal
27942
+ * reading that moved). Mirrored on the parent chain by the
27943
+ * DeviceEventPropagator like `battery.onStatusChanged`.
27944
+ */
27945
+ onStatusChanged: { data: object({
27946
+ deviceId: number(),
27947
+ status: NetworkLinkStatusSchema
27948
+ }) } },
27949
+ status: {
27950
+ schema: NetworkLinkStatusSchema,
27951
+ kind: "push",
27952
+ empty: {
27953
+ type: "unknown",
27954
+ signalPercent: null,
27955
+ lastUpdated: 0
27956
+ }
27957
+ },
27958
+ /**
27959
+ * Runtime-state slice — every provider stores the same shape under
27960
+ * `device.runtimeState['network-link']`, read once by the badge and the
27961
+ * Home Assistant projector regardless of the driver.
27962
+ */
27963
+ runtimeState: NetworkLinkStatusSchema,
27964
+ /**
27965
+ * Runtime-state durability: **restored** — a link reading is slow to
27966
+ * change and a sleeping battery camera may not report for hours; the
27967
+ * restored slice is what the badge shows until the next read.
27968
+ *
27969
+ * See `RuntimeStateDurability`. Enforced by
27970
+ * `scripts/check-runtime-state-durability.ts`.
27971
+ */
27972
+ durability: "restored",
27973
+ /** Clock fields: written, but excluded from the compare that decides
27974
+ * whether persisting is worth a SQLite commit. */
27975
+ volatileStateFields: ["lastUpdated"]
27976
+ };
27977
+ /**
27557
27978
  * network-quality — system-scoped singleton capability tracking RTT,
27558
27979
  * jitter, and observed/peak bandwidth per device + per client.
27559
27980
  *
@@ -29134,287 +29555,6 @@ var ptzAutotrackCapability = {
29134
29555
  */
29135
29556
  durability: "session"
29136
29557
  };
29137
- /**
29138
- * `navigation` — a device-scoped capability that natively expresses the FULL
29139
- * navigation / action surface of a robot that DRIVES ITSELF and carries an
29140
- * on-board camera (the Dreame robot-vacuum camera is the first provider).
29141
- *
29142
- * Why a NEW cap rather than overloading `ptz`:
29143
- * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
29144
- * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
29145
- * The two are different physical models: PTZ is absolute-position + presets,
29146
- * navigation is momentary drive nudges + discrete robot ACTIONS
29147
- * (dock / spot-clean / follow-pet / go-to-point / …).
29148
- * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
29149
- * the reverse:
29150
- * 1. a native CamStack navigation panel (data-driven from `listActions`
29151
- * / `getOptions`), and
29152
- * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
29153
- * robot camera shows up in the existing PTZ control path without every
29154
- * PTZ provider learning about robots. The mapping lives in the adapter,
29155
- * not here (see the addon design note):
29156
- * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
29157
- * ptz.stop() → navigation.stop()
29158
- * ptz.goHome() → navigation.runAction('goHome')
29159
- * ptz.getPresets() → navigation.listActions() (id→preset)
29160
- * ptz.goToPreset(id) → navigation.runAction(id)
29161
- *
29162
- * ## Continuous drive
29163
- *
29164
- * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
29165
- * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
29166
- * one `stop()` on release — exactly like the robot app's remote-drive joystick.
29167
- * The provider forwards EACH `move` to one drive write; it must NOT debounce or
29168
- * coalesce them. The UI owns the cadence.
29169
- *
29170
- * ## The action dictionary
29171
- *
29172
- * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
29173
- * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
29174
- * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
29175
- * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
29176
- * vendor-specific list. `kind: 'action'` entries are triggered with
29177
- * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
29178
- * (the entry carries the `soundId` to pass). The general primitives — `move`,
29179
- * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
29180
- *
29181
- * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
29182
- * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
29183
- * that the currently-published `@apocaliss92/nodedreame` already exposes on
29184
- * every device handle. A future nodedreame publish adds a typed
29185
- * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
29186
- * provider can then swap the raw calls for the typed methods with no change to
29187
- * THIS contract.
29188
- */
29189
- /**
29190
- * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
29191
- * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
29192
- * halts it.
29193
- *
29194
- * - `pan` — turn: negative = left, positive = right, 0 = straight.
29195
- * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
29196
- * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
29197
- * vector by it (drivers without proportional drive ignore it).
29198
- *
29199
- * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
29200
- * axis alone; an all-undefined nudge is a no-op.
29201
- */
29202
- var NavigationMoveCommandSchema = object({
29203
- pan: number().min(-1).max(1).optional(),
29204
- tilt: number().min(-1).max(1).optional(),
29205
- speed: number().min(0).max(1).optional()
29206
- });
29207
- /**
29208
- * The enumerated discrete actions a navigation-capable robot can perform via
29209
- * `runAction`. This is the CLOSED vocabulary; a given device advertises the
29210
- * subset it supports through `listActions`. Sounds are NOT here — they go through
29211
- * `playSound` (see the `sound` dictionary entries).
29212
- */
29213
- var NavigationActionIdSchema = _enum([
29214
- "goHome",
29215
- "locate",
29216
- "spotClean",
29217
- "findPet",
29218
- "personFollow",
29219
- "stop",
29220
- "startClean",
29221
- "pauseClean",
29222
- "dockWash",
29223
- "autoEmpty",
29224
- "flashOn",
29225
- "flashOff"
29226
- ]);
29227
- /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
29228
- var NavigationEntryKindSchema = _enum(["action", "sound"]);
29229
- /**
29230
- * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
29231
- * native panel and the PTZ mimic render as a button.
29232
- *
29233
- * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
29234
- * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
29235
- * (`sound:meow`) whose `soundId` is passed to `playSound`.
29236
- * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
29237
- * - `label` — operator-facing English label.
29238
- * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
29239
- * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
29240
- * PTZ render ONLY enabled entries. Data-driven: the provider
29241
- * flips it from config, never by editing code.
29242
- */
29243
- var NavigationActionEntrySchema = object({
29244
- id: string$2(),
29245
- kind: NavigationEntryKindSchema,
29246
- label: string$2(),
29247
- icon: string$2(),
29248
- /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
29249
- soundId: number().int().optional(),
29250
- /** Per-device feature flag — render this entry only when true. */
29251
- enabled: boolean()
29252
- });
29253
- /** Coordinates for `goToPoint` — a point on the robot's live map. */
29254
- var NavigationPointSchema = object({
29255
- x: number(),
29256
- y: number()
29257
- });
29258
- /**
29259
- * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
29260
- * The cap reports which are enabled so the UI / PTZ render only the controls
29261
- * that are turned on for THIS device. Data-driven: the provider derives these
29262
- * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
29263
- * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
29264
- * that are not dictionary entries.
29265
- *
29266
- * - `move` / `stop` — the momentary drive joystick.
29267
- * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
29268
- * map-coordinate plumbing is wired.
29269
- * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
29270
- * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
29271
- * - `light` — the on/off fill-light toggle (works anytime).
29272
- * - `lightMode` — the auto/manual selector + manual level slider (a
29273
- * camera-service control; needs an active stream).
29274
- */
29275
- var NavigationFeaturesSchema = object({
29276
- move: boolean(),
29277
- stop: boolean(),
29278
- goToPoint: boolean(),
29279
- runAction: boolean(),
29280
- playSound: boolean(),
29281
- light: boolean(),
29282
- lightMode: boolean()
29283
- });
29284
- /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
29285
- var NavigationLightModeSchema = _enum(["auto", "manual"]);
29286
- /**
29287
- * Live navigation state so the UI can reflect what the robot is doing:
29288
- * - `mode` — coarse activity (idle / cleaning / following / …).
29289
- * - `following` — person/pet follow is currently armed.
29290
- * - `flash` — the on-camera fill light is on.
29291
- * - `lightMode` — auto vs manual fill-light mode.
29292
- * - `lightLevel` — manual fill-light level (40..100); meaningful when
29293
- * `lightMode === 'manual'`.
29294
- */
29295
- var NavigationStatusSchema = object({
29296
- mode: _enum([
29297
- "idle",
29298
- "cleaning",
29299
- "spot",
29300
- "following",
29301
- "goto",
29302
- "returning",
29303
- "paused",
29304
- "unknown"
29305
- ]),
29306
- following: boolean(),
29307
- flash: boolean(),
29308
- lightMode: NavigationLightModeSchema,
29309
- lightLevel: number().min(40).max(100),
29310
- /** Ms epoch when the slice was last updated. */
29311
- lastChangedAt: number()
29312
- });
29313
- /**
29314
- * Runtime-state slice owned by this cap (kernel-managed: validated, mirrored,
29315
- * observable). Adds `lastFetchedAt` on top of the status shape per the
29316
- * convention.
29317
- */
29318
- var NavigationRuntimeStateSchema = NavigationStatusSchema.extend({ lastFetchedAt: number() });
29319
- var navigationCapability = {
29320
- name: "navigation",
29321
- scope: "device",
29322
- deviceNative: true,
29323
- mode: "singleton",
29324
- deviceTypes: [DeviceType.Camera],
29325
- deviceConfig: { ui: {
29326
- kind: "widget",
29327
- widgetId: "host/navigation-panel",
29328
- tab: "navigation",
29329
- topTab: true,
29330
- label: "Navigation",
29331
- order: 0
29332
- } },
29333
- methods: {
29334
- /**
29335
- * Momentary drive nudge (the robot moves). `protected` — mirrors
29336
- * `ptz.continuousMove` so the Viewer navigation panel (and the PTZ-mimic
29337
- * path) works for any authenticated user, not admin-only. The UI sends
29338
- * these at ~1 Hz while a control is held; the provider forwards each one to
29339
- * a single drive write WITHOUT debouncing.
29340
- */
29341
- move: method(NavigationMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
29342
- /** Halt all motion immediately (zero drive vector). */
29343
- stop: method(object({ deviceId: number() }), _void(), { kind: "mutation" }),
29344
- /** Send the robot to a point on its live map. */
29345
- goToPoint: method(NavigationPointSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
29346
- /**
29347
- * Enumerate the discrete controls THIS device supports (data-driven UI +
29348
- * PTZ mimic). Camera-probed subset of {@link NAVIGATION_ACTION_CATALOG}.
29349
- */
29350
- listActions: method(object({ deviceId: number() }), array(NavigationActionEntrySchema)),
29351
- /**
29352
- * Run one discrete action (a `kind:'action'` dictionary entry). Invalid /
29353
- * unsupported action ids are rejected by the provider.
29354
- */
29355
- runAction: method(object({
29356
- deviceId: number(),
29357
- actionId: NavigationActionIdSchema
29358
- }), _void(), { kind: "mutation" }),
29359
- /** Play a sound by its wire id (the `soundId` of a `kind:'sound'` entry). */
29360
- playSound: method(object({
29361
- deviceId: number(),
29362
- soundId: number().int()
29363
- }), _void(), { kind: "mutation" }),
29364
- /**
29365
- * Turn the on-camera fill light on / off (the `OpenFullLight` control —
29366
- * works anytime, no active stream required).
29367
- */
29368
- setLightOn: method(object({
29369
- deviceId: number(),
29370
- on: boolean()
29371
- }), _void(), { kind: "mutation" }),
29372
- /**
29373
- * Set the fill-light mode (auto vs manual). `manual` optionally carries the
29374
- * initial `level`. The auto/manual + level control is a CAMERA-service
29375
- * action that generally needs an active camera stream/monitor session — the
29376
- * UI shows the manual level slider ONLY when `mode === 'manual'`.
29377
- */
29378
- setLightMode: method(object({
29379
- deviceId: number(),
29380
- mode: NavigationLightModeSchema,
29381
- level: number().min(40).max(100).optional()
29382
- }), _void(), { kind: "mutation" }),
29383
- /** Set the MANUAL fill-light level (40..100). Implies `manual` mode. */
29384
- setLightLevel: method(object({
29385
- deviceId: number(),
29386
- level: number().min(40).max(100)
29387
- }), _void(), { kind: "mutation" }),
29388
- /**
29389
- * Per-device FEATURE-FLAG report for the general primitives — drives which
29390
- * controls the UI shows (the per-entry flags for the dictionary come back on
29391
- * `listActions`).
29392
- */
29393
- getFeatures: method(object({ deviceId: number() }), NavigationFeaturesSchema)
29394
- },
29395
- events: { onStatusChanged: { data: object({
29396
- deviceId: number(),
29397
- status: NavigationStatusSchema
29398
- }) } },
29399
- status: {
29400
- schema: NavigationStatusSchema,
29401
- kind: "push"
29402
- },
29403
- /**
29404
- * Runtime-state slice mirrored by the kernel. The navigation panel watches it
29405
- * for live mode / follow / flash changes.
29406
- */
29407
- runtimeState: NavigationRuntimeStateSchema,
29408
- /**
29409
- * Runtime-state durability: **session** — like `vacuum-control`, a restored
29410
- * `mode: cleaning` / `following: true` is a robot that is not actually doing
29411
- * that. The live handle re-publishes on connect.
29412
- *
29413
- * See `RuntimeStateDurability`. Enforced by
29414
- * `scripts/check-runtime-state-durability.ts`.
29415
- */
29416
- durability: "session"
29417
- };
29418
29558
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
29419
29559
  kind: "mutation",
29420
29560
  auth: "admin"
@@ -38877,6 +39017,12 @@ Object.freeze({
38877
39017
  addonId: null,
38878
39018
  access: "view"
38879
39019
  },
39020
+ "storage.listDrainProgress": {
39021
+ capName: "storage",
39022
+ capScope: "system",
39023
+ addonId: null,
39024
+ access: "view"
39025
+ },
38880
39026
  "storage.listLocationDeclarations": {
38881
39027
  capName: "storage",
38882
39028
  capScope: "system",
@@ -39021,6 +39167,12 @@ Object.freeze({
39021
39167
  addonId: null,
39022
39168
  access: "view"
39023
39169
  },
39170
+ "storageOccupancy.getOccupancy": {
39171
+ capName: "storage-occupancy",
39172
+ capScope: "system",
39173
+ addonId: null,
39174
+ access: "view"
39175
+ },
39024
39176
  "storageProvider.abortUpload": {
39025
39177
  capName: "storage-provider",
39026
39178
  capScope: "system",