@camstack/addon-import-alexa 0.2.78 → 0.2.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +519 -367
  2. package/dist/addon.mjs +519 -367
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -38,7 +38,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
38
38
  var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
39
39
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
40
40
  //#endregion
41
- //#region ../types/dist/event-category-zAv7pMUz.mjs
41
+ //#region ../types/dist/event-category-CnLqLOKs.mjs
42
42
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
43
43
  EventCategory["SystemBoot"] = "system.boot";
44
44
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -233,6 +233,19 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
233
233
  EventCategory["ProcessCrashed"] = "process.crashed";
234
234
  EventCategory["ProcessRestartScheduled"] = "process.restart_scheduled";
235
235
  EventCategory["ProcessRestarted"] = "process.restarted";
236
+ /**
237
+ * The SET of storage locations changed — one was created, edited, enabled,
238
+ * disabled or deleted through `storage.upsertLocation` / `deleteLocation`.
239
+ *
240
+ * Telemetry, not a transaction (D8/D11): every consumer that re-resolves on
241
+ * it must also converge on its own periodic path, because a dropped event
242
+ * must not leave a node writing to yesterday's disk set forever. It exists
243
+ * because there was NO signal at all — an operator who added a second
244
+ * recordings disk in the admin UI got nothing, and the recorder kept its
245
+ * resolved locations until something else happened to re-resolve them
246
+ * (D387). Payload `StorageLocationsChangedPayload`.
247
+ */
248
+ EventCategory["StorageLocationsChanged"] = "storage.locations-changed";
236
249
  EventCategory["RecordingStarted"] = "recording.started";
237
250
  EventCategory["RecordingStopped"] = "recording.stopped";
238
251
  EventCategory["RecordingError"] = "recording.error";
@@ -8694,6 +8707,21 @@ var StorageCleanupJobSchema = object({
8694
8707
  });
8695
8708
  var StorageCleanupStatusInputSchema = object({ jobId: string().optional() });
8696
8709
  /**
8710
+ * The one typed state of a storage location. Authoritative Zod schema — the TS
8711
+ * alias below is `z.infer<>` of it, never a second spelling.
8712
+ */
8713
+ var StorageLocationModeSchema = _enum([
8714
+ "active",
8715
+ "readonly",
8716
+ "drain",
8717
+ "disabled"
8718
+ ]);
8719
+ _enum([
8720
+ "normal",
8721
+ "never",
8722
+ "drain"
8723
+ ]);
8724
+ /**
8697
8725
  * `StorageLocationType` — an addon-declared id that identifies the *kind* of
8698
8726
  * storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
8699
8727
  * so the persisted record schema and the consumer-facing cap can both consume it
@@ -8759,6 +8787,21 @@ var StorageLocationSchema = object({
8759
8787
  * stops existing rather than being re-derived on every read.
8760
8788
  */
8761
8789
  enabled: boolean().optional(),
8790
+ /**
8791
+ * THE state of this location (D385), and the only authority on what may be
8792
+ * written, read or evicted here. Interpreted in exactly one place —
8793
+ * `storage-location-mode.ts` — which also folds the legacy
8794
+ * `enabled` / `config.readOnly` pair into a mode so an old row is never
8795
+ * ambiguous.
8796
+ *
8797
+ * OPTIONAL only for the wire and for rows written before D385: absence is
8798
+ * resolved by `resolveLocationMode`, and the orchestrator stamps every
8799
+ * unstamped row ONCE at hydrate so absence stops existing rather than being
8800
+ * re-derived on every read. `enabled` survives one release as a DERIVED
8801
+ * mirror (`mode === 'active'`); `withLocationMode` is the only writer of
8802
+ * either, so the two cannot disagree.
8803
+ */
8804
+ mode: StorageLocationModeSchema.optional(),
8762
8805
  /** COMPUTED at read time by the orchestrator (statfs of the backing volume
8763
8806
  * for node-local locations it can reach) — never persisted, absent when the
8764
8807
  * volume is remote/unreachable. The single capacity truth every UI reads. */
@@ -8766,11 +8809,46 @@ var StorageLocationSchema = object({
8766
8809
  totalBytes: number(),
8767
8810
  availableBytes: number()
8768
8811
  }).nullable().optional(),
8812
+ /**
8813
+ * How much of that volume CamStack ITSELF holds on this location (D388) —
8814
+ * COMPUTED at read time from the `storage-occupancy` providers' own figures,
8815
+ * never persisted, never a filesystem walk.
8816
+ *
8817
+ * **ABSENT MEANS UNKNOWN, never zero.** No provider has reported for this
8818
+ * location yet — nobody stores here, the owning addon is down, or the first
8819
+ * refresh has not completed. A UI must omit the segment rather than draw it
8820
+ * at zero, which would claim we occupy nothing (D315). It is an OBJECT and
8821
+ * not a bare number precisely so that a `?? 0` on the consuming side has to
8822
+ * be spelled out loud instead of appearing by accident.
8823
+ *
8824
+ * `measuredAtMs` is the OLDEST contributing measurement, so it is honest
8825
+ * about the whole figure rather than about its freshest part.
8826
+ */
8827
+ owned: object({
8828
+ bytes: number().int().nonnegative(),
8829
+ measuredAtMs: number().int().nonnegative()
8830
+ }).optional(),
8769
8831
  createdAt: number(),
8770
8832
  updatedAt: number()
8771
8833
  });
8772
8834
  object({ isDefault: boolean().optional() });
8773
8835
  /**
8836
+ * How far a `drain` has got (D386) — the read a UI renders, and nothing more.
8837
+ *
8838
+ * `estimatedEmptyAtMs` is derived from the growth the ratchet has actually
8839
+ * OBSERVED and is `null` when it has observed none. Never a fabricated date: a
8840
+ * drain with no observed growth has no honest ETA, and inventing one is how an
8841
+ * operator learns not to believe the screen.
8842
+ */
8843
+ var StorageDrainProgressSchema = object({
8844
+ locationId: string(),
8845
+ startedAtMs: number(),
8846
+ startBytes: number(),
8847
+ bytesRemaining: number(),
8848
+ drained: boolean(),
8849
+ estimatedEmptyAtMs: number().nullable()
8850
+ });
8851
+ /**
8774
8852
  * Reference accepted by consumer-facing `api.storage.*` calls.
8775
8853
  * Either:
8776
8854
  * - a `StorageLocationType` (e.g. `'backups'`) → the sole location of that type
@@ -20664,8 +20742,25 @@ var occupancyRecheckFramesField = {
20664
20742
  * (analyzer attaches detected `regions[]`; onboard does not — the
20665
20743
  * camera typically only reports a binary signal plus an optional
20666
20744
  * channel/AI class which lives in dedicated event channels).
20667
- */
20668
- var MotionSourceEnum = _enum(["onboard", "analyzer"]);
20745
+ *
20746
+ * - `onboard` — the camera's firmware said something moved.
20747
+ * - `analyzer` — this runner's frame-diff said so, and attaches `regions[]`.
20748
+ * - `device-activity` — the DEVICE said it is doing its job: the
20749
+ * `recording-signal` LEVEL the same device raises for the recorder
20750
+ * ([D380](../../../../docs/decisions/adr-0380-a-device-decided-recording-is-a-mode-with-no-schedule-seeded-once.md)),
20751
+ * republished as a motion source. It attaches **nothing** — no regions, no
20752
+ * class: the only fact it carries is that the device is active, and a robot
20753
+ * vacuum that is itself the moving object has no region worth sending. It is
20754
+ * a LEVEL, so unlike `onboard` it has a real falling edge, and unlike
20755
+ * `analyzer` it must not open the frame-diff side-channel — the runner's
20756
+ * `handleOnboardMotionAnalyzer` gate is `source === 'onboard'` and stays that
20757
+ * way ([D392](../../../../docs/decisions/adr-0392-a-device-that-says-it-is-working-is-a-motion-source-of-its-own.md)).
20758
+ */
20759
+ var MotionSourceEnum = _enum([
20760
+ "onboard",
20761
+ "analyzer",
20762
+ "device-activity"
20763
+ ]);
20669
20764
  /**
20670
20765
  * List of motion sources active on a camera. Empty array is valid:
20671
20766
  * "no source" — happens for battery cams without firmware motion when
@@ -22184,7 +22279,7 @@ method(object({
22184
22279
  }), _void(), {
22185
22280
  kind: "mutation",
22186
22281
  auth: "admin"
22187
- }), method(object({ id: string() }), object({
22282
+ }), method(_void(), array(StorageDrainProgressSchema).readonly()), method(object({ id: string() }), object({
22188
22283
  ok: boolean(),
22189
22284
  error: string().optional()
22190
22285
  }), { auth: "admin" }), method(_void(), array(ProviderListEntrySchema).readonly()), method(object({
@@ -22254,6 +22349,51 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
22254
22349
  kind: "mutation",
22255
22350
  auth: "admin"
22256
22351
  }), method(object({}), array(StorageMigrationJobSchema).readonly(), { auth: "admin" });
22352
+ /**
22353
+ * `storage-occupancy` — how many bytes an addon actually HOLDS on a storage
22354
+ * location (D388).
22355
+ *
22356
+ * ## Why this is not `storage-evictable`
22357
+ *
22358
+ * `storage-evictable.getEvictableUsage` looks like the same question and is
22359
+ * not, in two ways that both matter and both bite hardest on the locations an
22360
+ * operator most wants a figure for:
22361
+ *
22362
+ * - it reports the whole eviction DOMAIN, not the location. `recordings:default`
22363
+ * and `recordingsLow:default` deliberately share one root and evict as one
22364
+ * oldest-first pool, so both answer with the SAME combined total. As an
22365
+ * occupancy figure that double-counts the disk.
22366
+ * - it reports ZERO for a location whose eviction policy is `never` (D385) —
22367
+ * a `readonly` or `disabled` disk. Those are exactly the disks an operator
22368
+ * is retiring and staring at.
22369
+ *
22370
+ * So this is its own contract with its own quantity, and the quantity is
22371
+ * OCCUPIED: every byte the addon holds on that location, whether or not it
22372
+ * would ever be willing to delete it. A provider that can only answer
22373
+ * "evictable" must not register here — a number that silently means different
22374
+ * things per class is worse than no number.
22375
+ *
22376
+ * ## Absence is an answer
22377
+ *
22378
+ * A location nobody reports for is UNKNOWN, never zero (D315). The orchestrator
22379
+ * stamps `StorageLocation.owned` only for locations it has a report for, and
22380
+ * the field is an OBJECT rather than a bare number so that a `?? 0` on the
22381
+ * consuming side has to be written out loud instead of appearing by accident.
22382
+ *
22383
+ * `internal: true` — consumed by the orchestrator's `listLocations` stamp, never
22384
+ * a public client surface. Clients read the stamped `StorageLocation.owned`.
22385
+ */
22386
+ /** One provider's occupancy answer for one location. */
22387
+ var StorageOccupancyReportSchema = object({
22388
+ locationId: string(),
22389
+ /** Bytes this provider holds on THAT location — not its eviction domain, and
22390
+ * not net of what it is willing to delete. */
22391
+ ownedBytes: number().int().nonnegative(),
22392
+ /** When the provider last actually measured this. The orchestrator carries it
22393
+ * through so a UI can say how old the figure is instead of implying "now". */
22394
+ measuredAtMs: number().int().nonnegative()
22395
+ });
22396
+ method(object({ locationIds: array(string()).readonly() }), array(StorageOccupancyReportSchema).readonly(), { auth: "admin" });
22257
22397
  var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
22258
22398
  providerId: string().min(1),
22259
22399
  displayName: string().min(1),
@@ -24089,88 +24229,6 @@ onStatusChanged: { data: object({
24089
24229
  volatileStateFields: ["lastUpdated"]
24090
24230
  };
24091
24231
  /**
24092
- * Network-link snapshot. Same shape for every provider (a Reolink wifi
24093
- * camera, a Home Assistant device with a signal-strength sensor, a Tapo
24094
- * plug): one slice under `device.runtimeState['network-link']`, one badge,
24095
- * one Home Assistant projection.
24096
- */
24097
- var NetworkLinkStatusSchema = object({
24098
- /** The link the device is on. `'unknown'` = not read yet, not "no link". */
24099
- type: _enum([
24100
- "wifi",
24101
- "ethernet",
24102
- "cellular",
24103
- "unknown"
24104
- ]),
24105
- /**
24106
- * Link quality, 0..100 inclusive, normalised by the provider from whatever
24107
- * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
24108
- * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
24109
- * one whose reading has not landed must not be drawn at 0 %. Consumers
24110
- * SKIP a null rather than coerce it.
24111
- */
24112
- signalPercent: number().min(0).max(100).nullable(),
24113
- /** Raw received signal strength in dBm, when the firmware reports one. */
24114
- rssiDbm: number().optional(),
24115
- /** Network name of a wireless link, when the firmware reports it. */
24116
- ssid: string().optional(),
24117
- /** Ms epoch of the last observation. Lets consumers reason about freshness. */
24118
- lastUpdated: number()
24119
- });
24120
- var networkLinkCapability = {
24121
- name: "network-link",
24122
- scope: "device",
24123
- deviceNative: true,
24124
- mode: "singleton",
24125
- deviceTypes: [
24126
- DeviceType.Camera,
24127
- DeviceType.Sensor,
24128
- DeviceType.Button,
24129
- DeviceType.Switch,
24130
- DeviceType.Light,
24131
- DeviceType.Lock,
24132
- DeviceType.Siren
24133
- ],
24134
- methods: {},
24135
- events: {
24136
- /**
24137
- * Emitted whenever the cached status changes (a link switch, a signal
24138
- * reading that moved). Mirrored on the parent chain by the
24139
- * DeviceEventPropagator like `battery.onStatusChanged`.
24140
- */
24141
- onStatusChanged: { data: object({
24142
- deviceId: number(),
24143
- status: NetworkLinkStatusSchema
24144
- }) } },
24145
- status: {
24146
- schema: NetworkLinkStatusSchema,
24147
- kind: "push",
24148
- empty: {
24149
- type: "unknown",
24150
- signalPercent: null,
24151
- lastUpdated: 0
24152
- }
24153
- },
24154
- /**
24155
- * Runtime-state slice — every provider stores the same shape under
24156
- * `device.runtimeState['network-link']`, read once by the badge and the
24157
- * Home Assistant projector regardless of the driver.
24158
- */
24159
- runtimeState: NetworkLinkStatusSchema,
24160
- /**
24161
- * Runtime-state durability: **restored** — a link reading is slow to
24162
- * change and a sleeping battery camera may not report for hours; the
24163
- * restored slice is what the badge shows until the next read.
24164
- *
24165
- * See `RuntimeStateDurability`. Enforced by
24166
- * `scripts/check-runtime-state-durability.ts`.
24167
- */
24168
- durability: "restored",
24169
- /** Clock fields: written, but excluded from the compare that decides
24170
- * whether persisting is worth a SQLite commit. */
24171
- volatileStateFields: ["lastUpdated"]
24172
- };
24173
- /**
24174
24232
  * Generic boolean sensor — last-resort fallback when no domain-
24175
24233
  * specific binary cap fits (Home Assistant `binary_sensor` without a
24176
24234
  * known `device_class`, or a domain we haven't typed yet). Pure
@@ -27717,6 +27775,369 @@ var nativeObjectDetectionCapability = {
27717
27775
  volatileStateFields: ["lastFetchedAt"]
27718
27776
  };
27719
27777
  /**
27778
+ * `navigation` — a device-scoped capability that natively expresses the FULL
27779
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
27780
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
27781
+ *
27782
+ * Why a NEW cap rather than overloading `ptz`:
27783
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
27784
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
27785
+ * The two are different physical models: PTZ is absolute-position + presets,
27786
+ * navigation is momentary drive nudges + discrete robot ACTIONS
27787
+ * (dock / spot-clean / follow-pet / go-to-point / …).
27788
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
27789
+ * the reverse:
27790
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
27791
+ * / `getOptions`), and
27792
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
27793
+ * robot camera shows up in the existing PTZ control path without every
27794
+ * PTZ provider learning about robots. The mapping lives in the adapter,
27795
+ * not here (see the addon design note):
27796
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
27797
+ * ptz.stop() → navigation.stop()
27798
+ * ptz.goHome() → navigation.runAction('goHome')
27799
+ * ptz.getPresets() → navigation.listActions() (id→preset)
27800
+ * ptz.goToPreset(id) → navigation.runAction(id)
27801
+ *
27802
+ * ## Continuous drive
27803
+ *
27804
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
27805
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
27806
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
27807
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
27808
+ * coalesce them. The UI owns the cadence.
27809
+ *
27810
+ * ## The action dictionary
27811
+ *
27812
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
27813
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
27814
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
27815
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
27816
+ * vendor-specific list. `kind: 'action'` entries are triggered with
27817
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
27818
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
27819
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
27820
+ *
27821
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
27822
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
27823
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
27824
+ * every device handle. A future nodedreame publish adds a typed
27825
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
27826
+ * provider can then swap the raw calls for the typed methods with no change to
27827
+ * THIS contract.
27828
+ */
27829
+ /**
27830
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
27831
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
27832
+ * halts it.
27833
+ *
27834
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
27835
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
27836
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
27837
+ * vector by it (drivers without proportional drive ignore it).
27838
+ *
27839
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
27840
+ * axis alone; an all-undefined nudge is a no-op.
27841
+ */
27842
+ var NavigationMoveCommandSchema = object({
27843
+ pan: number().min(-1).max(1).optional(),
27844
+ tilt: number().min(-1).max(1).optional(),
27845
+ speed: number().min(0).max(1).optional()
27846
+ });
27847
+ /**
27848
+ * The enumerated discrete actions a navigation-capable robot can perform via
27849
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
27850
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
27851
+ * `playSound` (see the `sound` dictionary entries).
27852
+ */
27853
+ var NavigationActionIdSchema = _enum([
27854
+ "goHome",
27855
+ "locate",
27856
+ "spotClean",
27857
+ "findPet",
27858
+ "personFollow",
27859
+ "stop",
27860
+ "startClean",
27861
+ "pauseClean",
27862
+ "dockWash",
27863
+ "autoEmpty",
27864
+ "flashOn",
27865
+ "flashOff"
27866
+ ]);
27867
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
27868
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
27869
+ /**
27870
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
27871
+ * native panel and the PTZ mimic render as a button.
27872
+ *
27873
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
27874
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
27875
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
27876
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
27877
+ * - `label` — operator-facing English label.
27878
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
27879
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
27880
+ * PTZ render ONLY enabled entries. Data-driven: the provider
27881
+ * flips it from config, never by editing code.
27882
+ */
27883
+ var NavigationActionEntrySchema = object({
27884
+ id: string(),
27885
+ kind: NavigationEntryKindSchema,
27886
+ label: string(),
27887
+ icon: string(),
27888
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
27889
+ soundId: number().int().optional(),
27890
+ /** Per-device feature flag — render this entry only when true. */
27891
+ enabled: boolean()
27892
+ });
27893
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
27894
+ var NavigationPointSchema = object({
27895
+ x: number(),
27896
+ y: number()
27897
+ });
27898
+ /**
27899
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
27900
+ * The cap reports which are enabled so the UI / PTZ render only the controls
27901
+ * that are turned on for THIS device. Data-driven: the provider derives these
27902
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
27903
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
27904
+ * that are not dictionary entries.
27905
+ *
27906
+ * - `move` / `stop` — the momentary drive joystick.
27907
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
27908
+ * map-coordinate plumbing is wired.
27909
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
27910
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
27911
+ * - `light` — the on/off fill-light toggle (works anytime).
27912
+ * - `lightMode` — the auto/manual selector + manual level slider (a
27913
+ * camera-service control; needs an active stream).
27914
+ */
27915
+ var NavigationFeaturesSchema = object({
27916
+ move: boolean(),
27917
+ stop: boolean(),
27918
+ goToPoint: boolean(),
27919
+ runAction: boolean(),
27920
+ playSound: boolean(),
27921
+ light: boolean(),
27922
+ lightMode: boolean()
27923
+ });
27924
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
27925
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
27926
+ /**
27927
+ * Live navigation state so the UI can reflect what the robot is doing:
27928
+ * - `mode` — coarse activity (idle / cleaning / following / …).
27929
+ * - `following` — person/pet follow is currently armed.
27930
+ * - `flash` — the on-camera fill light is on.
27931
+ * - `lightMode` — auto vs manual fill-light mode.
27932
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
27933
+ * `lightMode === 'manual'`.
27934
+ */
27935
+ var NavigationStatusSchema = object({
27936
+ mode: _enum([
27937
+ "idle",
27938
+ "cleaning",
27939
+ "spot",
27940
+ "following",
27941
+ "goto",
27942
+ "returning",
27943
+ "paused",
27944
+ "unknown"
27945
+ ]),
27946
+ following: boolean(),
27947
+ flash: boolean(),
27948
+ lightMode: NavigationLightModeSchema,
27949
+ lightLevel: number().min(40).max(100),
27950
+ /** Ms epoch when the slice was last updated. */
27951
+ lastChangedAt: number()
27952
+ });
27953
+ /**
27954
+ * Runtime-state slice owned by this cap (kernel-managed: validated, mirrored,
27955
+ * observable). Adds `lastFetchedAt` on top of the status shape per the
27956
+ * convention.
27957
+ */
27958
+ var NavigationRuntimeStateSchema = NavigationStatusSchema.extend({ lastFetchedAt: number() });
27959
+ var navigationCapability = {
27960
+ name: "navigation",
27961
+ scope: "device",
27962
+ deviceNative: true,
27963
+ mode: "singleton",
27964
+ deviceTypes: [DeviceType.Camera],
27965
+ deviceConfig: { ui: {
27966
+ kind: "widget",
27967
+ widgetId: "host/navigation-panel",
27968
+ tab: "navigation",
27969
+ topTab: true,
27970
+ label: "Navigation",
27971
+ order: 0
27972
+ } },
27973
+ methods: {
27974
+ /**
27975
+ * Momentary drive nudge (the robot moves). `protected` — mirrors
27976
+ * `ptz.continuousMove` so the Viewer navigation panel (and the PTZ-mimic
27977
+ * path) works for any authenticated user, not admin-only. The UI sends
27978
+ * these at ~1 Hz while a control is held; the provider forwards each one to
27979
+ * a single drive write WITHOUT debouncing.
27980
+ */
27981
+ move: method(NavigationMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
27982
+ /** Halt all motion immediately (zero drive vector). */
27983
+ stop: method(object({ deviceId: number() }), _void(), { kind: "mutation" }),
27984
+ /** Send the robot to a point on its live map. */
27985
+ goToPoint: method(NavigationPointSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
27986
+ /**
27987
+ * Enumerate the discrete controls THIS device supports (data-driven UI +
27988
+ * PTZ mimic). Camera-probed subset of {@link NAVIGATION_ACTION_CATALOG}.
27989
+ */
27990
+ listActions: method(object({ deviceId: number() }), array(NavigationActionEntrySchema)),
27991
+ /**
27992
+ * Run one discrete action (a `kind:'action'` dictionary entry). Invalid /
27993
+ * unsupported action ids are rejected by the provider.
27994
+ */
27995
+ runAction: method(object({
27996
+ deviceId: number(),
27997
+ actionId: NavigationActionIdSchema
27998
+ }), _void(), { kind: "mutation" }),
27999
+ /** Play a sound by its wire id (the `soundId` of a `kind:'sound'` entry). */
28000
+ playSound: method(object({
28001
+ deviceId: number(),
28002
+ soundId: number().int()
28003
+ }), _void(), { kind: "mutation" }),
28004
+ /**
28005
+ * Turn the on-camera fill light on / off (the `OpenFullLight` control —
28006
+ * works anytime, no active stream required).
28007
+ */
28008
+ setLightOn: method(object({
28009
+ deviceId: number(),
28010
+ on: boolean()
28011
+ }), _void(), { kind: "mutation" }),
28012
+ /**
28013
+ * Set the fill-light mode (auto vs manual). `manual` optionally carries the
28014
+ * initial `level`. The auto/manual + level control is a CAMERA-service
28015
+ * action that generally needs an active camera stream/monitor session — the
28016
+ * UI shows the manual level slider ONLY when `mode === 'manual'`.
28017
+ */
28018
+ setLightMode: method(object({
28019
+ deviceId: number(),
28020
+ mode: NavigationLightModeSchema,
28021
+ level: number().min(40).max(100).optional()
28022
+ }), _void(), { kind: "mutation" }),
28023
+ /** Set the MANUAL fill-light level (40..100). Implies `manual` mode. */
28024
+ setLightLevel: method(object({
28025
+ deviceId: number(),
28026
+ level: number().min(40).max(100)
28027
+ }), _void(), { kind: "mutation" }),
28028
+ /**
28029
+ * Per-device FEATURE-FLAG report for the general primitives — drives which
28030
+ * controls the UI shows (the per-entry flags for the dictionary come back on
28031
+ * `listActions`).
28032
+ */
28033
+ getFeatures: method(object({ deviceId: number() }), NavigationFeaturesSchema)
28034
+ },
28035
+ events: { onStatusChanged: { data: object({
28036
+ deviceId: number(),
28037
+ status: NavigationStatusSchema
28038
+ }) } },
28039
+ status: {
28040
+ schema: NavigationStatusSchema,
28041
+ kind: "push"
28042
+ },
28043
+ /**
28044
+ * Runtime-state slice mirrored by the kernel. The navigation panel watches it
28045
+ * for live mode / follow / flash changes.
28046
+ */
28047
+ runtimeState: NavigationRuntimeStateSchema,
28048
+ /**
28049
+ * Runtime-state durability: **session** — like `vacuum-control`, a restored
28050
+ * `mode: cleaning` / `following: true` is a robot that is not actually doing
28051
+ * that. The live handle re-publishes on connect.
28052
+ *
28053
+ * See `RuntimeStateDurability`. Enforced by
28054
+ * `scripts/check-runtime-state-durability.ts`.
28055
+ */
28056
+ durability: "session"
28057
+ };
28058
+ /**
28059
+ * Network-link snapshot. Same shape for every provider (a Reolink wifi
28060
+ * camera, a Home Assistant device with a signal-strength sensor, a Tapo
28061
+ * plug): one slice under `device.runtimeState['network-link']`, one badge,
28062
+ * one Home Assistant projection.
28063
+ */
28064
+ var NetworkLinkStatusSchema = object({
28065
+ /** The link the device is on. `'unknown'` = not read yet, not "no link". */
28066
+ type: _enum([
28067
+ "wifi",
28068
+ "ethernet",
28069
+ "cellular",
28070
+ "unknown"
28071
+ ]),
28072
+ /**
28073
+ * Link quality, 0..100 inclusive, normalised by the provider from whatever
28074
+ * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
28075
+ * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
28076
+ * one whose reading has not landed must not be drawn at 0 %. Consumers
28077
+ * SKIP a null rather than coerce it.
28078
+ */
28079
+ signalPercent: number().min(0).max(100).nullable(),
28080
+ /** Raw received signal strength in dBm, when the firmware reports one. */
28081
+ rssiDbm: number().optional(),
28082
+ /** Network name of a wireless link, when the firmware reports it. */
28083
+ ssid: string().optional(),
28084
+ /** Ms epoch of the last observation. Lets consumers reason about freshness. */
28085
+ lastUpdated: number()
28086
+ });
28087
+ var networkLinkCapability = {
28088
+ name: "network-link",
28089
+ scope: "device",
28090
+ deviceNative: true,
28091
+ mode: "singleton",
28092
+ deviceTypes: [
28093
+ DeviceType.Camera,
28094
+ DeviceType.Sensor,
28095
+ DeviceType.Button,
28096
+ DeviceType.Switch,
28097
+ DeviceType.Light,
28098
+ DeviceType.Lock,
28099
+ DeviceType.Siren
28100
+ ],
28101
+ methods: {},
28102
+ events: {
28103
+ /**
28104
+ * Emitted whenever the cached status changes (a link switch, a signal
28105
+ * reading that moved). Mirrored on the parent chain by the
28106
+ * DeviceEventPropagator like `battery.onStatusChanged`.
28107
+ */
28108
+ onStatusChanged: { data: object({
28109
+ deviceId: number(),
28110
+ status: NetworkLinkStatusSchema
28111
+ }) } },
28112
+ status: {
28113
+ schema: NetworkLinkStatusSchema,
28114
+ kind: "push",
28115
+ empty: {
28116
+ type: "unknown",
28117
+ signalPercent: null,
28118
+ lastUpdated: 0
28119
+ }
28120
+ },
28121
+ /**
28122
+ * Runtime-state slice — every provider stores the same shape under
28123
+ * `device.runtimeState['network-link']`, read once by the badge and the
28124
+ * Home Assistant projector regardless of the driver.
28125
+ */
28126
+ runtimeState: NetworkLinkStatusSchema,
28127
+ /**
28128
+ * Runtime-state durability: **restored** — a link reading is slow to
28129
+ * change and a sleeping battery camera may not report for hours; the
28130
+ * restored slice is what the badge shows until the next read.
28131
+ *
28132
+ * See `RuntimeStateDurability`. Enforced by
28133
+ * `scripts/check-runtime-state-durability.ts`.
28134
+ */
28135
+ durability: "restored",
28136
+ /** Clock fields: written, but excluded from the compare that decides
28137
+ * whether persisting is worth a SQLite commit. */
28138
+ volatileStateFields: ["lastUpdated"]
28139
+ };
28140
+ /**
27720
28141
  * network-quality — system-scoped singleton capability tracking RTT,
27721
28142
  * jitter, and observed/peak bandwidth per device + per client.
27722
28143
  *
@@ -29297,287 +29718,6 @@ var ptzAutotrackCapability = {
29297
29718
  */
29298
29719
  durability: "session"
29299
29720
  };
29300
- /**
29301
- * `navigation` — a device-scoped capability that natively expresses the FULL
29302
- * navigation / action surface of a robot that DRIVES ITSELF and carries an
29303
- * on-board camera (the Dreame robot-vacuum camera is the first provider).
29304
- *
29305
- * Why a NEW cap rather than overloading `ptz`:
29306
- * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
29307
- * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
29308
- * The two are different physical models: PTZ is absolute-position + presets,
29309
- * navigation is momentary drive nudges + discrete robot ACTIONS
29310
- * (dock / spot-clean / follow-pet / go-to-point / …).
29311
- * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
29312
- * the reverse:
29313
- * 1. a native CamStack navigation panel (data-driven from `listActions`
29314
- * / `getOptions`), and
29315
- * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
29316
- * robot camera shows up in the existing PTZ control path without every
29317
- * PTZ provider learning about robots. The mapping lives in the adapter,
29318
- * not here (see the addon design note):
29319
- * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
29320
- * ptz.stop() → navigation.stop()
29321
- * ptz.goHome() → navigation.runAction('goHome')
29322
- * ptz.getPresets() → navigation.listActions() (id→preset)
29323
- * ptz.goToPreset(id) → navigation.runAction(id)
29324
- *
29325
- * ## Continuous drive
29326
- *
29327
- * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
29328
- * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
29329
- * one `stop()` on release — exactly like the robot app's remote-drive joystick.
29330
- * The provider forwards EACH `move` to one drive write; it must NOT debounce or
29331
- * coalesce them. The UI owns the cadence.
29332
- *
29333
- * ## The action dictionary
29334
- *
29335
- * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
29336
- * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
29337
- * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
29338
- * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
29339
- * vendor-specific list. `kind: 'action'` entries are triggered with
29340
- * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
29341
- * (the entry carries the `soundId` to pass). The general primitives — `move`,
29342
- * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
29343
- *
29344
- * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
29345
- * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
29346
- * that the currently-published `@apocaliss92/nodedreame` already exposes on
29347
- * every device handle. A future nodedreame publish adds a typed
29348
- * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
29349
- * provider can then swap the raw calls for the typed methods with no change to
29350
- * THIS contract.
29351
- */
29352
- /**
29353
- * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
29354
- * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
29355
- * halts it.
29356
- *
29357
- * - `pan` — turn: negative = left, positive = right, 0 = straight.
29358
- * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
29359
- * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
29360
- * vector by it (drivers without proportional drive ignore it).
29361
- *
29362
- * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
29363
- * axis alone; an all-undefined nudge is a no-op.
29364
- */
29365
- var NavigationMoveCommandSchema = object({
29366
- pan: number().min(-1).max(1).optional(),
29367
- tilt: number().min(-1).max(1).optional(),
29368
- speed: number().min(0).max(1).optional()
29369
- });
29370
- /**
29371
- * The enumerated discrete actions a navigation-capable robot can perform via
29372
- * `runAction`. This is the CLOSED vocabulary; a given device advertises the
29373
- * subset it supports through `listActions`. Sounds are NOT here — they go through
29374
- * `playSound` (see the `sound` dictionary entries).
29375
- */
29376
- var NavigationActionIdSchema = _enum([
29377
- "goHome",
29378
- "locate",
29379
- "spotClean",
29380
- "findPet",
29381
- "personFollow",
29382
- "stop",
29383
- "startClean",
29384
- "pauseClean",
29385
- "dockWash",
29386
- "autoEmpty",
29387
- "flashOn",
29388
- "flashOff"
29389
- ]);
29390
- /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
29391
- var NavigationEntryKindSchema = _enum(["action", "sound"]);
29392
- /**
29393
- * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
29394
- * native panel and the PTZ mimic render as a button.
29395
- *
29396
- * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
29397
- * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
29398
- * (`sound:meow`) whose `soundId` is passed to `playSound`.
29399
- * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
29400
- * - `label` — operator-facing English label.
29401
- * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
29402
- * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
29403
- * PTZ render ONLY enabled entries. Data-driven: the provider
29404
- * flips it from config, never by editing code.
29405
- */
29406
- var NavigationActionEntrySchema = object({
29407
- id: string(),
29408
- kind: NavigationEntryKindSchema,
29409
- label: string(),
29410
- icon: string(),
29411
- /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
29412
- soundId: number().int().optional(),
29413
- /** Per-device feature flag — render this entry only when true. */
29414
- enabled: boolean()
29415
- });
29416
- /** Coordinates for `goToPoint` — a point on the robot's live map. */
29417
- var NavigationPointSchema = object({
29418
- x: number(),
29419
- y: number()
29420
- });
29421
- /**
29422
- * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
29423
- * The cap reports which are enabled so the UI / PTZ render only the controls
29424
- * that are turned on for THIS device. Data-driven: the provider derives these
29425
- * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
29426
- * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
29427
- * that are not dictionary entries.
29428
- *
29429
- * - `move` / `stop` — the momentary drive joystick.
29430
- * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
29431
- * map-coordinate plumbing is wired.
29432
- * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
29433
- * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
29434
- * - `light` — the on/off fill-light toggle (works anytime).
29435
- * - `lightMode` — the auto/manual selector + manual level slider (a
29436
- * camera-service control; needs an active stream).
29437
- */
29438
- var NavigationFeaturesSchema = object({
29439
- move: boolean(),
29440
- stop: boolean(),
29441
- goToPoint: boolean(),
29442
- runAction: boolean(),
29443
- playSound: boolean(),
29444
- light: boolean(),
29445
- lightMode: boolean()
29446
- });
29447
- /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
29448
- var NavigationLightModeSchema = _enum(["auto", "manual"]);
29449
- /**
29450
- * Live navigation state so the UI can reflect what the robot is doing:
29451
- * - `mode` — coarse activity (idle / cleaning / following / …).
29452
- * - `following` — person/pet follow is currently armed.
29453
- * - `flash` — the on-camera fill light is on.
29454
- * - `lightMode` — auto vs manual fill-light mode.
29455
- * - `lightLevel` — manual fill-light level (40..100); meaningful when
29456
- * `lightMode === 'manual'`.
29457
- */
29458
- var NavigationStatusSchema = object({
29459
- mode: _enum([
29460
- "idle",
29461
- "cleaning",
29462
- "spot",
29463
- "following",
29464
- "goto",
29465
- "returning",
29466
- "paused",
29467
- "unknown"
29468
- ]),
29469
- following: boolean(),
29470
- flash: boolean(),
29471
- lightMode: NavigationLightModeSchema,
29472
- lightLevel: number().min(40).max(100),
29473
- /** Ms epoch when the slice was last updated. */
29474
- lastChangedAt: number()
29475
- });
29476
- /**
29477
- * Runtime-state slice owned by this cap (kernel-managed: validated, mirrored,
29478
- * observable). Adds `lastFetchedAt` on top of the status shape per the
29479
- * convention.
29480
- */
29481
- var NavigationRuntimeStateSchema = NavigationStatusSchema.extend({ lastFetchedAt: number() });
29482
- var navigationCapability = {
29483
- name: "navigation",
29484
- scope: "device",
29485
- deviceNative: true,
29486
- mode: "singleton",
29487
- deviceTypes: [DeviceType.Camera],
29488
- deviceConfig: { ui: {
29489
- kind: "widget",
29490
- widgetId: "host/navigation-panel",
29491
- tab: "navigation",
29492
- topTab: true,
29493
- label: "Navigation",
29494
- order: 0
29495
- } },
29496
- methods: {
29497
- /**
29498
- * Momentary drive nudge (the robot moves). `protected` — mirrors
29499
- * `ptz.continuousMove` so the Viewer navigation panel (and the PTZ-mimic
29500
- * path) works for any authenticated user, not admin-only. The UI sends
29501
- * these at ~1 Hz while a control is held; the provider forwards each one to
29502
- * a single drive write WITHOUT debouncing.
29503
- */
29504
- move: method(NavigationMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
29505
- /** Halt all motion immediately (zero drive vector). */
29506
- stop: method(object({ deviceId: number() }), _void(), { kind: "mutation" }),
29507
- /** Send the robot to a point on its live map. */
29508
- goToPoint: method(NavigationPointSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
29509
- /**
29510
- * Enumerate the discrete controls THIS device supports (data-driven UI +
29511
- * PTZ mimic). Camera-probed subset of {@link NAVIGATION_ACTION_CATALOG}.
29512
- */
29513
- listActions: method(object({ deviceId: number() }), array(NavigationActionEntrySchema)),
29514
- /**
29515
- * Run one discrete action (a `kind:'action'` dictionary entry). Invalid /
29516
- * unsupported action ids are rejected by the provider.
29517
- */
29518
- runAction: method(object({
29519
- deviceId: number(),
29520
- actionId: NavigationActionIdSchema
29521
- }), _void(), { kind: "mutation" }),
29522
- /** Play a sound by its wire id (the `soundId` of a `kind:'sound'` entry). */
29523
- playSound: method(object({
29524
- deviceId: number(),
29525
- soundId: number().int()
29526
- }), _void(), { kind: "mutation" }),
29527
- /**
29528
- * Turn the on-camera fill light on / off (the `OpenFullLight` control —
29529
- * works anytime, no active stream required).
29530
- */
29531
- setLightOn: method(object({
29532
- deviceId: number(),
29533
- on: boolean()
29534
- }), _void(), { kind: "mutation" }),
29535
- /**
29536
- * Set the fill-light mode (auto vs manual). `manual` optionally carries the
29537
- * initial `level`. The auto/manual + level control is a CAMERA-service
29538
- * action that generally needs an active camera stream/monitor session — the
29539
- * UI shows the manual level slider ONLY when `mode === 'manual'`.
29540
- */
29541
- setLightMode: method(object({
29542
- deviceId: number(),
29543
- mode: NavigationLightModeSchema,
29544
- level: number().min(40).max(100).optional()
29545
- }), _void(), { kind: "mutation" }),
29546
- /** Set the MANUAL fill-light level (40..100). Implies `manual` mode. */
29547
- setLightLevel: method(object({
29548
- deviceId: number(),
29549
- level: number().min(40).max(100)
29550
- }), _void(), { kind: "mutation" }),
29551
- /**
29552
- * Per-device FEATURE-FLAG report for the general primitives — drives which
29553
- * controls the UI shows (the per-entry flags for the dictionary come back on
29554
- * `listActions`).
29555
- */
29556
- getFeatures: method(object({ deviceId: number() }), NavigationFeaturesSchema)
29557
- },
29558
- events: { onStatusChanged: { data: object({
29559
- deviceId: number(),
29560
- status: NavigationStatusSchema
29561
- }) } },
29562
- status: {
29563
- schema: NavigationStatusSchema,
29564
- kind: "push"
29565
- },
29566
- /**
29567
- * Runtime-state slice mirrored by the kernel. The navigation panel watches it
29568
- * for live mode / follow / flash changes.
29569
- */
29570
- runtimeState: NavigationRuntimeStateSchema,
29571
- /**
29572
- * Runtime-state durability: **session** — like `vacuum-control`, a restored
29573
- * `mode: cleaning` / `following: true` is a robot that is not actually doing
29574
- * that. The live handle re-publishes on connect.
29575
- *
29576
- * See `RuntimeStateDurability`. Enforced by
29577
- * `scripts/check-runtime-state-durability.ts`.
29578
- */
29579
- durability: "session"
29580
- };
29581
29721
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
29582
29722
  kind: "mutation",
29583
29723
  auth: "admin"
@@ -39040,6 +39180,12 @@ Object.freeze({
39040
39180
  addonId: null,
39041
39181
  access: "view"
39042
39182
  },
39183
+ "storage.listDrainProgress": {
39184
+ capName: "storage",
39185
+ capScope: "system",
39186
+ addonId: null,
39187
+ access: "view"
39188
+ },
39043
39189
  "storage.listLocationDeclarations": {
39044
39190
  capName: "storage",
39045
39191
  capScope: "system",
@@ -39184,6 +39330,12 @@ Object.freeze({
39184
39330
  addonId: null,
39185
39331
  access: "view"
39186
39332
  },
39333
+ "storageOccupancy.getOccupancy": {
39334
+ capName: "storage-occupancy",
39335
+ capScope: "system",
39336
+ addonId: null,
39337
+ access: "view"
39338
+ },
39187
39339
  "storageProvider.abortUpload": {
39188
39340
  capName: "storage-provider",
39189
39341
  capScope: "system",