@camstack/addon-provider-homematic 1.2.80 → 1.2.82

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