@camstack/addon-provider-dreo 0.2.79 → 0.2.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +519 -367
  2. package/dist/addon.mjs +519 -367
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -36,7 +36,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
36
36
  var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
37
37
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
38
38
  //#endregion
39
- //#region ../types/dist/event-category-zAv7pMUz.mjs
39
+ //#region ../types/dist/event-category-CnLqLOKs.mjs
40
40
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
41
41
  EventCategory["SystemBoot"] = "system.boot";
42
42
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -231,6 +231,19 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
231
231
  EventCategory["ProcessCrashed"] = "process.crashed";
232
232
  EventCategory["ProcessRestartScheduled"] = "process.restart_scheduled";
233
233
  EventCategory["ProcessRestarted"] = "process.restarted";
234
+ /**
235
+ * The SET of storage locations changed — one was created, edited, enabled,
236
+ * disabled or deleted through `storage.upsertLocation` / `deleteLocation`.
237
+ *
238
+ * Telemetry, not a transaction (D8/D11): every consumer that re-resolves on
239
+ * it must also converge on its own periodic path, because a dropped event
240
+ * must not leave a node writing to yesterday's disk set forever. It exists
241
+ * because there was NO signal at all — an operator who added a second
242
+ * recordings disk in the admin UI got nothing, and the recorder kept its
243
+ * resolved locations until something else happened to re-resolve them
244
+ * (D387). Payload `StorageLocationsChangedPayload`.
245
+ */
246
+ EventCategory["StorageLocationsChanged"] = "storage.locations-changed";
234
247
  EventCategory["RecordingStarted"] = "recording.started";
235
248
  EventCategory["RecordingStopped"] = "recording.stopped";
236
249
  EventCategory["RecordingError"] = "recording.error";
@@ -8573,6 +8586,21 @@ var StorageCleanupJobSchema = object({
8573
8586
  });
8574
8587
  var StorageCleanupStatusInputSchema = object({ jobId: string().optional() });
8575
8588
  /**
8589
+ * The one typed state of a storage location. Authoritative Zod schema — the TS
8590
+ * alias below is `z.infer<>` of it, never a second spelling.
8591
+ */
8592
+ var StorageLocationModeSchema = _enum([
8593
+ "active",
8594
+ "readonly",
8595
+ "drain",
8596
+ "disabled"
8597
+ ]);
8598
+ _enum([
8599
+ "normal",
8600
+ "never",
8601
+ "drain"
8602
+ ]);
8603
+ /**
8576
8604
  * `StorageLocationType` — an addon-declared id that identifies the *kind* of
8577
8605
  * storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
8578
8606
  * so the persisted record schema and the consumer-facing cap can both consume it
@@ -8638,6 +8666,21 @@ var StorageLocationSchema = object({
8638
8666
  * stops existing rather than being re-derived on every read.
8639
8667
  */
8640
8668
  enabled: boolean().optional(),
8669
+ /**
8670
+ * THE state of this location (D385), and the only authority on what may be
8671
+ * written, read or evicted here. Interpreted in exactly one place —
8672
+ * `storage-location-mode.ts` — which also folds the legacy
8673
+ * `enabled` / `config.readOnly` pair into a mode so an old row is never
8674
+ * ambiguous.
8675
+ *
8676
+ * OPTIONAL only for the wire and for rows written before D385: absence is
8677
+ * resolved by `resolveLocationMode`, and the orchestrator stamps every
8678
+ * unstamped row ONCE at hydrate so absence stops existing rather than being
8679
+ * re-derived on every read. `enabled` survives one release as a DERIVED
8680
+ * mirror (`mode === 'active'`); `withLocationMode` is the only writer of
8681
+ * either, so the two cannot disagree.
8682
+ */
8683
+ mode: StorageLocationModeSchema.optional(),
8641
8684
  /** COMPUTED at read time by the orchestrator (statfs of the backing volume
8642
8685
  * for node-local locations it can reach) — never persisted, absent when the
8643
8686
  * volume is remote/unreachable. The single capacity truth every UI reads. */
@@ -8645,11 +8688,46 @@ var StorageLocationSchema = object({
8645
8688
  totalBytes: number(),
8646
8689
  availableBytes: number()
8647
8690
  }).nullable().optional(),
8691
+ /**
8692
+ * How much of that volume CamStack ITSELF holds on this location (D388) —
8693
+ * COMPUTED at read time from the `storage-occupancy` providers' own figures,
8694
+ * never persisted, never a filesystem walk.
8695
+ *
8696
+ * **ABSENT MEANS UNKNOWN, never zero.** No provider has reported for this
8697
+ * location yet — nobody stores here, the owning addon is down, or the first
8698
+ * refresh has not completed. A UI must omit the segment rather than draw it
8699
+ * at zero, which would claim we occupy nothing (D315). It is an OBJECT and
8700
+ * not a bare number precisely so that a `?? 0` on the consuming side has to
8701
+ * be spelled out loud instead of appearing by accident.
8702
+ *
8703
+ * `measuredAtMs` is the OLDEST contributing measurement, so it is honest
8704
+ * about the whole figure rather than about its freshest part.
8705
+ */
8706
+ owned: object({
8707
+ bytes: number().int().nonnegative(),
8708
+ measuredAtMs: number().int().nonnegative()
8709
+ }).optional(),
8648
8710
  createdAt: number(),
8649
8711
  updatedAt: number()
8650
8712
  });
8651
8713
  object({ isDefault: boolean().optional() });
8652
8714
  /**
8715
+ * How far a `drain` has got (D386) — the read a UI renders, and nothing more.
8716
+ *
8717
+ * `estimatedEmptyAtMs` is derived from the growth the ratchet has actually
8718
+ * OBSERVED and is `null` when it has observed none. Never a fabricated date: a
8719
+ * drain with no observed growth has no honest ETA, and inventing one is how an
8720
+ * operator learns not to believe the screen.
8721
+ */
8722
+ var StorageDrainProgressSchema = object({
8723
+ locationId: string(),
8724
+ startedAtMs: number(),
8725
+ startBytes: number(),
8726
+ bytesRemaining: number(),
8727
+ drained: boolean(),
8728
+ estimatedEmptyAtMs: number().nullable()
8729
+ });
8730
+ /**
8653
8731
  * Reference accepted by consumer-facing `api.storage.*` calls.
8654
8732
  * Either:
8655
8733
  * - a `StorageLocationType` (e.g. `'backups'`) → the sole location of that type
@@ -20475,8 +20553,25 @@ var occupancyRecheckFramesField = {
20475
20553
  * (analyzer attaches detected `regions[]`; onboard does not — the
20476
20554
  * camera typically only reports a binary signal plus an optional
20477
20555
  * channel/AI class which lives in dedicated event channels).
20478
- */
20479
- var MotionSourceEnum = _enum(["onboard", "analyzer"]);
20556
+ *
20557
+ * - `onboard` — the camera's firmware said something moved.
20558
+ * - `analyzer` — this runner's frame-diff said so, and attaches `regions[]`.
20559
+ * - `device-activity` — the DEVICE said it is doing its job: the
20560
+ * `recording-signal` LEVEL the same device raises for the recorder
20561
+ * ([D380](../../../../docs/decisions/adr-0380-a-device-decided-recording-is-a-mode-with-no-schedule-seeded-once.md)),
20562
+ * republished as a motion source. It attaches **nothing** — no regions, no
20563
+ * class: the only fact it carries is that the device is active, and a robot
20564
+ * vacuum that is itself the moving object has no region worth sending. It is
20565
+ * a LEVEL, so unlike `onboard` it has a real falling edge, and unlike
20566
+ * `analyzer` it must not open the frame-diff side-channel — the runner's
20567
+ * `handleOnboardMotionAnalyzer` gate is `source === 'onboard'` and stays that
20568
+ * way ([D392](../../../../docs/decisions/adr-0392-a-device-that-says-it-is-working-is-a-motion-source-of-its-own.md)).
20569
+ */
20570
+ var MotionSourceEnum = _enum([
20571
+ "onboard",
20572
+ "analyzer",
20573
+ "device-activity"
20574
+ ]);
20480
20575
  /**
20481
20576
  * List of motion sources active on a camera. Empty array is valid:
20482
20577
  * "no source" — happens for battery cams without firmware motion when
@@ -21995,7 +22090,7 @@ method(object({
21995
22090
  }), _void(), {
21996
22091
  kind: "mutation",
21997
22092
  auth: "admin"
21998
- }), method(object({ id: string() }), object({
22093
+ }), method(_void(), array(StorageDrainProgressSchema).readonly()), method(object({ id: string() }), object({
21999
22094
  ok: boolean(),
22000
22095
  error: string().optional()
22001
22096
  }), { auth: "admin" }), method(_void(), array(ProviderListEntrySchema).readonly()), method(object({
@@ -22065,6 +22160,51 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
22065
22160
  kind: "mutation",
22066
22161
  auth: "admin"
22067
22162
  }), method(object({}), array(StorageMigrationJobSchema).readonly(), { auth: "admin" });
22163
+ /**
22164
+ * `storage-occupancy` — how many bytes an addon actually HOLDS on a storage
22165
+ * location (D388).
22166
+ *
22167
+ * ## Why this is not `storage-evictable`
22168
+ *
22169
+ * `storage-evictable.getEvictableUsage` looks like the same question and is
22170
+ * not, in two ways that both matter and both bite hardest on the locations an
22171
+ * operator most wants a figure for:
22172
+ *
22173
+ * - it reports the whole eviction DOMAIN, not the location. `recordings:default`
22174
+ * and `recordingsLow:default` deliberately share one root and evict as one
22175
+ * oldest-first pool, so both answer with the SAME combined total. As an
22176
+ * occupancy figure that double-counts the disk.
22177
+ * - it reports ZERO for a location whose eviction policy is `never` (D385) —
22178
+ * a `readonly` or `disabled` disk. Those are exactly the disks an operator
22179
+ * is retiring and staring at.
22180
+ *
22181
+ * So this is its own contract with its own quantity, and the quantity is
22182
+ * OCCUPIED: every byte the addon holds on that location, whether or not it
22183
+ * would ever be willing to delete it. A provider that can only answer
22184
+ * "evictable" must not register here — a number that silently means different
22185
+ * things per class is worse than no number.
22186
+ *
22187
+ * ## Absence is an answer
22188
+ *
22189
+ * A location nobody reports for is UNKNOWN, never zero (D315). The orchestrator
22190
+ * stamps `StorageLocation.owned` only for locations it has a report for, and
22191
+ * the field is an OBJECT rather than a bare number so that a `?? 0` on the
22192
+ * consuming side has to be written out loud instead of appearing by accident.
22193
+ *
22194
+ * `internal: true` — consumed by the orchestrator's `listLocations` stamp, never
22195
+ * a public client surface. Clients read the stamped `StorageLocation.owned`.
22196
+ */
22197
+ /** One provider's occupancy answer for one location. */
22198
+ var StorageOccupancyReportSchema = object({
22199
+ locationId: string(),
22200
+ /** Bytes this provider holds on THAT location — not its eviction domain, and
22201
+ * not net of what it is willing to delete. */
22202
+ ownedBytes: number().int().nonnegative(),
22203
+ /** When the provider last actually measured this. The orchestrator carries it
22204
+ * through so a UI can say how old the figure is instead of implying "now". */
22205
+ measuredAtMs: number().int().nonnegative()
22206
+ });
22207
+ method(object({ locationIds: array(string()).readonly() }), array(StorageOccupancyReportSchema).readonly(), { auth: "admin" });
22068
22208
  var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
22069
22209
  providerId: string().min(1),
22070
22210
  displayName: string().min(1),
@@ -23900,88 +24040,6 @@ onStatusChanged: { data: object({
23900
24040
  volatileStateFields: ["lastUpdated"]
23901
24041
  };
23902
24042
  /**
23903
- * Network-link snapshot. Same shape for every provider (a Reolink wifi
23904
- * camera, a Home Assistant device with a signal-strength sensor, a Tapo
23905
- * plug): one slice under `device.runtimeState['network-link']`, one badge,
23906
- * one Home Assistant projection.
23907
- */
23908
- var NetworkLinkStatusSchema = object({
23909
- /** The link the device is on. `'unknown'` = not read yet, not "no link". */
23910
- type: _enum([
23911
- "wifi",
23912
- "ethernet",
23913
- "cellular",
23914
- "unknown"
23915
- ]),
23916
- /**
23917
- * Link quality, 0..100 inclusive, normalised by the provider from whatever
23918
- * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
23919
- * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
23920
- * one whose reading has not landed must not be drawn at 0 %. Consumers
23921
- * SKIP a null rather than coerce it.
23922
- */
23923
- signalPercent: number().min(0).max(100).nullable(),
23924
- /** Raw received signal strength in dBm, when the firmware reports one. */
23925
- rssiDbm: number().optional(),
23926
- /** Network name of a wireless link, when the firmware reports it. */
23927
- ssid: string().optional(),
23928
- /** Ms epoch of the last observation. Lets consumers reason about freshness. */
23929
- lastUpdated: number()
23930
- });
23931
- var networkLinkCapability = {
23932
- name: "network-link",
23933
- scope: "device",
23934
- deviceNative: true,
23935
- mode: "singleton",
23936
- deviceTypes: [
23937
- DeviceType.Camera,
23938
- DeviceType.Sensor,
23939
- DeviceType.Button,
23940
- DeviceType.Switch,
23941
- DeviceType.Light,
23942
- DeviceType.Lock,
23943
- DeviceType.Siren
23944
- ],
23945
- methods: {},
23946
- events: {
23947
- /**
23948
- * Emitted whenever the cached status changes (a link switch, a signal
23949
- * reading that moved). Mirrored on the parent chain by the
23950
- * DeviceEventPropagator like `battery.onStatusChanged`.
23951
- */
23952
- onStatusChanged: { data: object({
23953
- deviceId: number(),
23954
- status: NetworkLinkStatusSchema
23955
- }) } },
23956
- status: {
23957
- schema: NetworkLinkStatusSchema,
23958
- kind: "push",
23959
- empty: {
23960
- type: "unknown",
23961
- signalPercent: null,
23962
- lastUpdated: 0
23963
- }
23964
- },
23965
- /**
23966
- * Runtime-state slice — every provider stores the same shape under
23967
- * `device.runtimeState['network-link']`, read once by the badge and the
23968
- * Home Assistant projector regardless of the driver.
23969
- */
23970
- runtimeState: NetworkLinkStatusSchema,
23971
- /**
23972
- * Runtime-state durability: **restored** — a link reading is slow to
23973
- * change and a sleeping battery camera may not report for hours; the
23974
- * restored slice is what the badge shows until the next read.
23975
- *
23976
- * See `RuntimeStateDurability`. Enforced by
23977
- * `scripts/check-runtime-state-durability.ts`.
23978
- */
23979
- durability: "restored",
23980
- /** Clock fields: written, but excluded from the compare that decides
23981
- * whether persisting is worth a SQLite commit. */
23982
- volatileStateFields: ["lastUpdated"]
23983
- };
23984
- /**
23985
24043
  * Generic boolean sensor — last-resort fallback when no domain-
23986
24044
  * specific binary cap fits (Home Assistant `binary_sensor` without a
23987
24045
  * known `device_class`, or a domain we haven't typed yet). Pure
@@ -27519,6 +27577,369 @@ var nativeObjectDetectionCapability = {
27519
27577
  volatileStateFields: ["lastFetchedAt"]
27520
27578
  };
27521
27579
  /**
27580
+ * `navigation` — a device-scoped capability that natively expresses the FULL
27581
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
27582
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
27583
+ *
27584
+ * Why a NEW cap rather than overloading `ptz`:
27585
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
27586
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
27587
+ * The two are different physical models: PTZ is absolute-position + presets,
27588
+ * navigation is momentary drive nudges + discrete robot ACTIONS
27589
+ * (dock / spot-clean / follow-pet / go-to-point / …).
27590
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
27591
+ * the reverse:
27592
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
27593
+ * / `getOptions`), and
27594
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
27595
+ * robot camera shows up in the existing PTZ control path without every
27596
+ * PTZ provider learning about robots. The mapping lives in the adapter,
27597
+ * not here (see the addon design note):
27598
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
27599
+ * ptz.stop() → navigation.stop()
27600
+ * ptz.goHome() → navigation.runAction('goHome')
27601
+ * ptz.getPresets() → navigation.listActions() (id→preset)
27602
+ * ptz.goToPreset(id) → navigation.runAction(id)
27603
+ *
27604
+ * ## Continuous drive
27605
+ *
27606
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
27607
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
27608
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
27609
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
27610
+ * coalesce them. The UI owns the cadence.
27611
+ *
27612
+ * ## The action dictionary
27613
+ *
27614
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
27615
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
27616
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
27617
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
27618
+ * vendor-specific list. `kind: 'action'` entries are triggered with
27619
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
27620
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
27621
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
27622
+ *
27623
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
27624
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
27625
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
27626
+ * every device handle. A future nodedreame publish adds a typed
27627
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
27628
+ * provider can then swap the raw calls for the typed methods with no change to
27629
+ * THIS contract.
27630
+ */
27631
+ /**
27632
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
27633
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
27634
+ * halts it.
27635
+ *
27636
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
27637
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
27638
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
27639
+ * vector by it (drivers without proportional drive ignore it).
27640
+ *
27641
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
27642
+ * axis alone; an all-undefined nudge is a no-op.
27643
+ */
27644
+ var NavigationMoveCommandSchema = object({
27645
+ pan: number().min(-1).max(1).optional(),
27646
+ tilt: number().min(-1).max(1).optional(),
27647
+ speed: number().min(0).max(1).optional()
27648
+ });
27649
+ /**
27650
+ * The enumerated discrete actions a navigation-capable robot can perform via
27651
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
27652
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
27653
+ * `playSound` (see the `sound` dictionary entries).
27654
+ */
27655
+ var NavigationActionIdSchema = _enum([
27656
+ "goHome",
27657
+ "locate",
27658
+ "spotClean",
27659
+ "findPet",
27660
+ "personFollow",
27661
+ "stop",
27662
+ "startClean",
27663
+ "pauseClean",
27664
+ "dockWash",
27665
+ "autoEmpty",
27666
+ "flashOn",
27667
+ "flashOff"
27668
+ ]);
27669
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
27670
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
27671
+ /**
27672
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
27673
+ * native panel and the PTZ mimic render as a button.
27674
+ *
27675
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
27676
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
27677
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
27678
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
27679
+ * - `label` — operator-facing English label.
27680
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
27681
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
27682
+ * PTZ render ONLY enabled entries. Data-driven: the provider
27683
+ * flips it from config, never by editing code.
27684
+ */
27685
+ var NavigationActionEntrySchema = object({
27686
+ id: string(),
27687
+ kind: NavigationEntryKindSchema,
27688
+ label: string(),
27689
+ icon: string(),
27690
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
27691
+ soundId: number().int().optional(),
27692
+ /** Per-device feature flag — render this entry only when true. */
27693
+ enabled: boolean()
27694
+ });
27695
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
27696
+ var NavigationPointSchema = object({
27697
+ x: number(),
27698
+ y: number()
27699
+ });
27700
+ /**
27701
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
27702
+ * The cap reports which are enabled so the UI / PTZ render only the controls
27703
+ * that are turned on for THIS device. Data-driven: the provider derives these
27704
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
27705
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
27706
+ * that are not dictionary entries.
27707
+ *
27708
+ * - `move` / `stop` — the momentary drive joystick.
27709
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
27710
+ * map-coordinate plumbing is wired.
27711
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
27712
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
27713
+ * - `light` — the on/off fill-light toggle (works anytime).
27714
+ * - `lightMode` — the auto/manual selector + manual level slider (a
27715
+ * camera-service control; needs an active stream).
27716
+ */
27717
+ var NavigationFeaturesSchema = object({
27718
+ move: boolean(),
27719
+ stop: boolean(),
27720
+ goToPoint: boolean(),
27721
+ runAction: boolean(),
27722
+ playSound: boolean(),
27723
+ light: boolean(),
27724
+ lightMode: boolean()
27725
+ });
27726
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
27727
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
27728
+ /**
27729
+ * Live navigation state so the UI can reflect what the robot is doing:
27730
+ * - `mode` — coarse activity (idle / cleaning / following / …).
27731
+ * - `following` — person/pet follow is currently armed.
27732
+ * - `flash` — the on-camera fill light is on.
27733
+ * - `lightMode` — auto vs manual fill-light mode.
27734
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
27735
+ * `lightMode === 'manual'`.
27736
+ */
27737
+ var NavigationStatusSchema = object({
27738
+ mode: _enum([
27739
+ "idle",
27740
+ "cleaning",
27741
+ "spot",
27742
+ "following",
27743
+ "goto",
27744
+ "returning",
27745
+ "paused",
27746
+ "unknown"
27747
+ ]),
27748
+ following: boolean(),
27749
+ flash: boolean(),
27750
+ lightMode: NavigationLightModeSchema,
27751
+ lightLevel: number().min(40).max(100),
27752
+ /** Ms epoch when the slice was last updated. */
27753
+ lastChangedAt: number()
27754
+ });
27755
+ /**
27756
+ * Runtime-state slice owned by this cap (kernel-managed: validated, mirrored,
27757
+ * observable). Adds `lastFetchedAt` on top of the status shape per the
27758
+ * convention.
27759
+ */
27760
+ var NavigationRuntimeStateSchema = NavigationStatusSchema.extend({ lastFetchedAt: number() });
27761
+ var navigationCapability = {
27762
+ name: "navigation",
27763
+ scope: "device",
27764
+ deviceNative: true,
27765
+ mode: "singleton",
27766
+ deviceTypes: [DeviceType.Camera],
27767
+ deviceConfig: { ui: {
27768
+ kind: "widget",
27769
+ widgetId: "host/navigation-panel",
27770
+ tab: "navigation",
27771
+ topTab: true,
27772
+ label: "Navigation",
27773
+ order: 0
27774
+ } },
27775
+ methods: {
27776
+ /**
27777
+ * Momentary drive nudge (the robot moves). `protected` — mirrors
27778
+ * `ptz.continuousMove` so the Viewer navigation panel (and the PTZ-mimic
27779
+ * path) works for any authenticated user, not admin-only. The UI sends
27780
+ * these at ~1 Hz while a control is held; the provider forwards each one to
27781
+ * a single drive write WITHOUT debouncing.
27782
+ */
27783
+ move: method(NavigationMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
27784
+ /** Halt all motion immediately (zero drive vector). */
27785
+ stop: method(object({ deviceId: number() }), _void(), { kind: "mutation" }),
27786
+ /** Send the robot to a point on its live map. */
27787
+ goToPoint: method(NavigationPointSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
27788
+ /**
27789
+ * Enumerate the discrete controls THIS device supports (data-driven UI +
27790
+ * PTZ mimic). Camera-probed subset of {@link NAVIGATION_ACTION_CATALOG}.
27791
+ */
27792
+ listActions: method(object({ deviceId: number() }), array(NavigationActionEntrySchema)),
27793
+ /**
27794
+ * Run one discrete action (a `kind:'action'` dictionary entry). Invalid /
27795
+ * unsupported action ids are rejected by the provider.
27796
+ */
27797
+ runAction: method(object({
27798
+ deviceId: number(),
27799
+ actionId: NavigationActionIdSchema
27800
+ }), _void(), { kind: "mutation" }),
27801
+ /** Play a sound by its wire id (the `soundId` of a `kind:'sound'` entry). */
27802
+ playSound: method(object({
27803
+ deviceId: number(),
27804
+ soundId: number().int()
27805
+ }), _void(), { kind: "mutation" }),
27806
+ /**
27807
+ * Turn the on-camera fill light on / off (the `OpenFullLight` control —
27808
+ * works anytime, no active stream required).
27809
+ */
27810
+ setLightOn: method(object({
27811
+ deviceId: number(),
27812
+ on: boolean()
27813
+ }), _void(), { kind: "mutation" }),
27814
+ /**
27815
+ * Set the fill-light mode (auto vs manual). `manual` optionally carries the
27816
+ * initial `level`. The auto/manual + level control is a CAMERA-service
27817
+ * action that generally needs an active camera stream/monitor session — the
27818
+ * UI shows the manual level slider ONLY when `mode === 'manual'`.
27819
+ */
27820
+ setLightMode: method(object({
27821
+ deviceId: number(),
27822
+ mode: NavigationLightModeSchema,
27823
+ level: number().min(40).max(100).optional()
27824
+ }), _void(), { kind: "mutation" }),
27825
+ /** Set the MANUAL fill-light level (40..100). Implies `manual` mode. */
27826
+ setLightLevel: method(object({
27827
+ deviceId: number(),
27828
+ level: number().min(40).max(100)
27829
+ }), _void(), { kind: "mutation" }),
27830
+ /**
27831
+ * Per-device FEATURE-FLAG report for the general primitives — drives which
27832
+ * controls the UI shows (the per-entry flags for the dictionary come back on
27833
+ * `listActions`).
27834
+ */
27835
+ getFeatures: method(object({ deviceId: number() }), NavigationFeaturesSchema)
27836
+ },
27837
+ events: { onStatusChanged: { data: object({
27838
+ deviceId: number(),
27839
+ status: NavigationStatusSchema
27840
+ }) } },
27841
+ status: {
27842
+ schema: NavigationStatusSchema,
27843
+ kind: "push"
27844
+ },
27845
+ /**
27846
+ * Runtime-state slice mirrored by the kernel. The navigation panel watches it
27847
+ * for live mode / follow / flash changes.
27848
+ */
27849
+ runtimeState: NavigationRuntimeStateSchema,
27850
+ /**
27851
+ * Runtime-state durability: **session** — like `vacuum-control`, a restored
27852
+ * `mode: cleaning` / `following: true` is a robot that is not actually doing
27853
+ * that. The live handle re-publishes on connect.
27854
+ *
27855
+ * See `RuntimeStateDurability`. Enforced by
27856
+ * `scripts/check-runtime-state-durability.ts`.
27857
+ */
27858
+ durability: "session"
27859
+ };
27860
+ /**
27861
+ * Network-link snapshot. Same shape for every provider (a Reolink wifi
27862
+ * camera, a Home Assistant device with a signal-strength sensor, a Tapo
27863
+ * plug): one slice under `device.runtimeState['network-link']`, one badge,
27864
+ * one Home Assistant projection.
27865
+ */
27866
+ var NetworkLinkStatusSchema = object({
27867
+ /** The link the device is on. `'unknown'` = not read yet, not "no link". */
27868
+ type: _enum([
27869
+ "wifi",
27870
+ "ethernet",
27871
+ "cellular",
27872
+ "unknown"
27873
+ ]),
27874
+ /**
27875
+ * Link quality, 0..100 inclusive, normalised by the provider from whatever
27876
+ * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
27877
+ * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
27878
+ * one whose reading has not landed must not be drawn at 0 %. Consumers
27879
+ * SKIP a null rather than coerce it.
27880
+ */
27881
+ signalPercent: number().min(0).max(100).nullable(),
27882
+ /** Raw received signal strength in dBm, when the firmware reports one. */
27883
+ rssiDbm: number().optional(),
27884
+ /** Network name of a wireless link, when the firmware reports it. */
27885
+ ssid: string().optional(),
27886
+ /** Ms epoch of the last observation. Lets consumers reason about freshness. */
27887
+ lastUpdated: number()
27888
+ });
27889
+ var networkLinkCapability = {
27890
+ name: "network-link",
27891
+ scope: "device",
27892
+ deviceNative: true,
27893
+ mode: "singleton",
27894
+ deviceTypes: [
27895
+ DeviceType.Camera,
27896
+ DeviceType.Sensor,
27897
+ DeviceType.Button,
27898
+ DeviceType.Switch,
27899
+ DeviceType.Light,
27900
+ DeviceType.Lock,
27901
+ DeviceType.Siren
27902
+ ],
27903
+ methods: {},
27904
+ events: {
27905
+ /**
27906
+ * Emitted whenever the cached status changes (a link switch, a signal
27907
+ * reading that moved). Mirrored on the parent chain by the
27908
+ * DeviceEventPropagator like `battery.onStatusChanged`.
27909
+ */
27910
+ onStatusChanged: { data: object({
27911
+ deviceId: number(),
27912
+ status: NetworkLinkStatusSchema
27913
+ }) } },
27914
+ status: {
27915
+ schema: NetworkLinkStatusSchema,
27916
+ kind: "push",
27917
+ empty: {
27918
+ type: "unknown",
27919
+ signalPercent: null,
27920
+ lastUpdated: 0
27921
+ }
27922
+ },
27923
+ /**
27924
+ * Runtime-state slice — every provider stores the same shape under
27925
+ * `device.runtimeState['network-link']`, read once by the badge and the
27926
+ * Home Assistant projector regardless of the driver.
27927
+ */
27928
+ runtimeState: NetworkLinkStatusSchema,
27929
+ /**
27930
+ * Runtime-state durability: **restored** — a link reading is slow to
27931
+ * change and a sleeping battery camera may not report for hours; the
27932
+ * restored slice is what the badge shows until the next read.
27933
+ *
27934
+ * See `RuntimeStateDurability`. Enforced by
27935
+ * `scripts/check-runtime-state-durability.ts`.
27936
+ */
27937
+ durability: "restored",
27938
+ /** Clock fields: written, but excluded from the compare that decides
27939
+ * whether persisting is worth a SQLite commit. */
27940
+ volatileStateFields: ["lastUpdated"]
27941
+ };
27942
+ /**
27522
27943
  * network-quality — system-scoped singleton capability tracking RTT,
27523
27944
  * jitter, and observed/peak bandwidth per device + per client.
27524
27945
  *
@@ -29099,287 +29520,6 @@ var ptzAutotrackCapability = {
29099
29520
  */
29100
29521
  durability: "session"
29101
29522
  };
29102
- /**
29103
- * `navigation` — a device-scoped capability that natively expresses the FULL
29104
- * navigation / action surface of a robot that DRIVES ITSELF and carries an
29105
- * on-board camera (the Dreame robot-vacuum camera is the first provider).
29106
- *
29107
- * Why a NEW cap rather than overloading `ptz`:
29108
- * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
29109
- * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
29110
- * The two are different physical models: PTZ is absolute-position + presets,
29111
- * navigation is momentary drive nudges + discrete robot ACTIONS
29112
- * (dock / spot-clean / follow-pet / go-to-point / …).
29113
- * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
29114
- * the reverse:
29115
- * 1. a native CamStack navigation panel (data-driven from `listActions`
29116
- * / `getOptions`), and
29117
- * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
29118
- * robot camera shows up in the existing PTZ control path without every
29119
- * PTZ provider learning about robots. The mapping lives in the adapter,
29120
- * not here (see the addon design note):
29121
- * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
29122
- * ptz.stop() → navigation.stop()
29123
- * ptz.goHome() → navigation.runAction('goHome')
29124
- * ptz.getPresets() → navigation.listActions() (id→preset)
29125
- * ptz.goToPreset(id) → navigation.runAction(id)
29126
- *
29127
- * ## Continuous drive
29128
- *
29129
- * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
29130
- * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
29131
- * one `stop()` on release — exactly like the robot app's remote-drive joystick.
29132
- * The provider forwards EACH `move` to one drive write; it must NOT debounce or
29133
- * coalesce them. The UI owns the cadence.
29134
- *
29135
- * ## The action dictionary
29136
- *
29137
- * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
29138
- * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
29139
- * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
29140
- * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
29141
- * vendor-specific list. `kind: 'action'` entries are triggered with
29142
- * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
29143
- * (the entry carries the `soundId` to pass). The general primitives — `move`,
29144
- * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
29145
- *
29146
- * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
29147
- * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
29148
- * that the currently-published `@apocaliss92/nodedreame` already exposes on
29149
- * every device handle. A future nodedreame publish adds a typed
29150
- * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
29151
- * provider can then swap the raw calls for the typed methods with no change to
29152
- * THIS contract.
29153
- */
29154
- /**
29155
- * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
29156
- * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
29157
- * halts it.
29158
- *
29159
- * - `pan` — turn: negative = left, positive = right, 0 = straight.
29160
- * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
29161
- * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
29162
- * vector by it (drivers without proportional drive ignore it).
29163
- *
29164
- * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
29165
- * axis alone; an all-undefined nudge is a no-op.
29166
- */
29167
- var NavigationMoveCommandSchema = object({
29168
- pan: number().min(-1).max(1).optional(),
29169
- tilt: number().min(-1).max(1).optional(),
29170
- speed: number().min(0).max(1).optional()
29171
- });
29172
- /**
29173
- * The enumerated discrete actions a navigation-capable robot can perform via
29174
- * `runAction`. This is the CLOSED vocabulary; a given device advertises the
29175
- * subset it supports through `listActions`. Sounds are NOT here — they go through
29176
- * `playSound` (see the `sound` dictionary entries).
29177
- */
29178
- var NavigationActionIdSchema = _enum([
29179
- "goHome",
29180
- "locate",
29181
- "spotClean",
29182
- "findPet",
29183
- "personFollow",
29184
- "stop",
29185
- "startClean",
29186
- "pauseClean",
29187
- "dockWash",
29188
- "autoEmpty",
29189
- "flashOn",
29190
- "flashOff"
29191
- ]);
29192
- /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
29193
- var NavigationEntryKindSchema = _enum(["action", "sound"]);
29194
- /**
29195
- * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
29196
- * native panel and the PTZ mimic render as a button.
29197
- *
29198
- * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
29199
- * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
29200
- * (`sound:meow`) whose `soundId` is passed to `playSound`.
29201
- * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
29202
- * - `label` — operator-facing English label.
29203
- * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
29204
- * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
29205
- * PTZ render ONLY enabled entries. Data-driven: the provider
29206
- * flips it from config, never by editing code.
29207
- */
29208
- var NavigationActionEntrySchema = object({
29209
- id: string(),
29210
- kind: NavigationEntryKindSchema,
29211
- label: string(),
29212
- icon: string(),
29213
- /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
29214
- soundId: number().int().optional(),
29215
- /** Per-device feature flag — render this entry only when true. */
29216
- enabled: boolean()
29217
- });
29218
- /** Coordinates for `goToPoint` — a point on the robot's live map. */
29219
- var NavigationPointSchema = object({
29220
- x: number(),
29221
- y: number()
29222
- });
29223
- /**
29224
- * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
29225
- * The cap reports which are enabled so the UI / PTZ render only the controls
29226
- * that are turned on for THIS device. Data-driven: the provider derives these
29227
- * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
29228
- * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
29229
- * that are not dictionary entries.
29230
- *
29231
- * - `move` / `stop` — the momentary drive joystick.
29232
- * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
29233
- * map-coordinate plumbing is wired.
29234
- * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
29235
- * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
29236
- * - `light` — the on/off fill-light toggle (works anytime).
29237
- * - `lightMode` — the auto/manual selector + manual level slider (a
29238
- * camera-service control; needs an active stream).
29239
- */
29240
- var NavigationFeaturesSchema = object({
29241
- move: boolean(),
29242
- stop: boolean(),
29243
- goToPoint: boolean(),
29244
- runAction: boolean(),
29245
- playSound: boolean(),
29246
- light: boolean(),
29247
- lightMode: boolean()
29248
- });
29249
- /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
29250
- var NavigationLightModeSchema = _enum(["auto", "manual"]);
29251
- /**
29252
- * Live navigation state so the UI can reflect what the robot is doing:
29253
- * - `mode` — coarse activity (idle / cleaning / following / …).
29254
- * - `following` — person/pet follow is currently armed.
29255
- * - `flash` — the on-camera fill light is on.
29256
- * - `lightMode` — auto vs manual fill-light mode.
29257
- * - `lightLevel` — manual fill-light level (40..100); meaningful when
29258
- * `lightMode === 'manual'`.
29259
- */
29260
- var NavigationStatusSchema = object({
29261
- mode: _enum([
29262
- "idle",
29263
- "cleaning",
29264
- "spot",
29265
- "following",
29266
- "goto",
29267
- "returning",
29268
- "paused",
29269
- "unknown"
29270
- ]),
29271
- following: boolean(),
29272
- flash: boolean(),
29273
- lightMode: NavigationLightModeSchema,
29274
- lightLevel: number().min(40).max(100),
29275
- /** Ms epoch when the slice was last updated. */
29276
- lastChangedAt: number()
29277
- });
29278
- /**
29279
- * Runtime-state slice owned by this cap (kernel-managed: validated, mirrored,
29280
- * observable). Adds `lastFetchedAt` on top of the status shape per the
29281
- * convention.
29282
- */
29283
- var NavigationRuntimeStateSchema = NavigationStatusSchema.extend({ lastFetchedAt: number() });
29284
- var navigationCapability = {
29285
- name: "navigation",
29286
- scope: "device",
29287
- deviceNative: true,
29288
- mode: "singleton",
29289
- deviceTypes: [DeviceType.Camera],
29290
- deviceConfig: { ui: {
29291
- kind: "widget",
29292
- widgetId: "host/navigation-panel",
29293
- tab: "navigation",
29294
- topTab: true,
29295
- label: "Navigation",
29296
- order: 0
29297
- } },
29298
- methods: {
29299
- /**
29300
- * Momentary drive nudge (the robot moves). `protected` — mirrors
29301
- * `ptz.continuousMove` so the Viewer navigation panel (and the PTZ-mimic
29302
- * path) works for any authenticated user, not admin-only. The UI sends
29303
- * these at ~1 Hz while a control is held; the provider forwards each one to
29304
- * a single drive write WITHOUT debouncing.
29305
- */
29306
- move: method(NavigationMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
29307
- /** Halt all motion immediately (zero drive vector). */
29308
- stop: method(object({ deviceId: number() }), _void(), { kind: "mutation" }),
29309
- /** Send the robot to a point on its live map. */
29310
- goToPoint: method(NavigationPointSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
29311
- /**
29312
- * Enumerate the discrete controls THIS device supports (data-driven UI +
29313
- * PTZ mimic). Camera-probed subset of {@link NAVIGATION_ACTION_CATALOG}.
29314
- */
29315
- listActions: method(object({ deviceId: number() }), array(NavigationActionEntrySchema)),
29316
- /**
29317
- * Run one discrete action (a `kind:'action'` dictionary entry). Invalid /
29318
- * unsupported action ids are rejected by the provider.
29319
- */
29320
- runAction: method(object({
29321
- deviceId: number(),
29322
- actionId: NavigationActionIdSchema
29323
- }), _void(), { kind: "mutation" }),
29324
- /** Play a sound by its wire id (the `soundId` of a `kind:'sound'` entry). */
29325
- playSound: method(object({
29326
- deviceId: number(),
29327
- soundId: number().int()
29328
- }), _void(), { kind: "mutation" }),
29329
- /**
29330
- * Turn the on-camera fill light on / off (the `OpenFullLight` control —
29331
- * works anytime, no active stream required).
29332
- */
29333
- setLightOn: method(object({
29334
- deviceId: number(),
29335
- on: boolean()
29336
- }), _void(), { kind: "mutation" }),
29337
- /**
29338
- * Set the fill-light mode (auto vs manual). `manual` optionally carries the
29339
- * initial `level`. The auto/manual + level control is a CAMERA-service
29340
- * action that generally needs an active camera stream/monitor session — the
29341
- * UI shows the manual level slider ONLY when `mode === 'manual'`.
29342
- */
29343
- setLightMode: method(object({
29344
- deviceId: number(),
29345
- mode: NavigationLightModeSchema,
29346
- level: number().min(40).max(100).optional()
29347
- }), _void(), { kind: "mutation" }),
29348
- /** Set the MANUAL fill-light level (40..100). Implies `manual` mode. */
29349
- setLightLevel: method(object({
29350
- deviceId: number(),
29351
- level: number().min(40).max(100)
29352
- }), _void(), { kind: "mutation" }),
29353
- /**
29354
- * Per-device FEATURE-FLAG report for the general primitives — drives which
29355
- * controls the UI shows (the per-entry flags for the dictionary come back on
29356
- * `listActions`).
29357
- */
29358
- getFeatures: method(object({ deviceId: number() }), NavigationFeaturesSchema)
29359
- },
29360
- events: { onStatusChanged: { data: object({
29361
- deviceId: number(),
29362
- status: NavigationStatusSchema
29363
- }) } },
29364
- status: {
29365
- schema: NavigationStatusSchema,
29366
- kind: "push"
29367
- },
29368
- /**
29369
- * Runtime-state slice mirrored by the kernel. The navigation panel watches it
29370
- * for live mode / follow / flash changes.
29371
- */
29372
- runtimeState: NavigationRuntimeStateSchema,
29373
- /**
29374
- * Runtime-state durability: **session** — like `vacuum-control`, a restored
29375
- * `mode: cleaning` / `following: true` is a robot that is not actually doing
29376
- * that. The live handle re-publishes on connect.
29377
- *
29378
- * See `RuntimeStateDurability`. Enforced by
29379
- * `scripts/check-runtime-state-durability.ts`.
29380
- */
29381
- durability: "session"
29382
- };
29383
29523
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
29384
29524
  kind: "mutation",
29385
29525
  auth: "admin"
@@ -38842,6 +38982,12 @@ Object.freeze({
38842
38982
  addonId: null,
38843
38983
  access: "view"
38844
38984
  },
38985
+ "storage.listDrainProgress": {
38986
+ capName: "storage",
38987
+ capScope: "system",
38988
+ addonId: null,
38989
+ access: "view"
38990
+ },
38845
38991
  "storage.listLocationDeclarations": {
38846
38992
  capName: "storage",
38847
38993
  capScope: "system",
@@ -38986,6 +39132,12 @@ Object.freeze({
38986
39132
  addonId: null,
38987
39133
  access: "view"
38988
39134
  },
39135
+ "storageOccupancy.getOccupancy": {
39136
+ capName: "storage-occupancy",
39137
+ capScope: "system",
39138
+ addonId: null,
39139
+ access: "view"
39140
+ },
38989
39141
  "storageProvider.abortUpload": {
38990
39142
  capName: "storage-provider",
38991
39143
  capScope: "system",