@camstack/addon-provider-tuya 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.js CHANGED
@@ -819,7 +819,7 @@ async function discoverDevices(options = {}, binder = createDgramBinder()) {
819
819
  return [...byId.values()];
820
820
  }
821
821
  //#endregion
822
- //#region ../types/dist/event-category-zAv7pMUz.mjs
822
+ //#region ../types/dist/event-category-CnLqLOKs.mjs
823
823
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
824
824
  EventCategory["SystemBoot"] = "system.boot";
825
825
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -1014,6 +1014,19 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
1014
1014
  EventCategory["ProcessCrashed"] = "process.crashed";
1015
1015
  EventCategory["ProcessRestartScheduled"] = "process.restart_scheduled";
1016
1016
  EventCategory["ProcessRestarted"] = "process.restarted";
1017
+ /**
1018
+ * The SET of storage locations changed — one was created, edited, enabled,
1019
+ * disabled or deleted through `storage.upsertLocation` / `deleteLocation`.
1020
+ *
1021
+ * Telemetry, not a transaction (D8/D11): every consumer that re-resolves on
1022
+ * it must also converge on its own periodic path, because a dropped event
1023
+ * must not leave a node writing to yesterday's disk set forever. It exists
1024
+ * because there was NO signal at all — an operator who added a second
1025
+ * recordings disk in the admin UI got nothing, and the recorder kept its
1026
+ * resolved locations until something else happened to re-resolve them
1027
+ * (D387). Payload `StorageLocationsChangedPayload`.
1028
+ */
1029
+ EventCategory["StorageLocationsChanged"] = "storage.locations-changed";
1017
1030
  EventCategory["RecordingStarted"] = "recording.started";
1018
1031
  EventCategory["RecordingStopped"] = "recording.stopped";
1019
1032
  EventCategory["RecordingError"] = "recording.error";
@@ -9356,6 +9369,21 @@ var StorageCleanupJobSchema = object({
9356
9369
  });
9357
9370
  var StorageCleanupStatusInputSchema = object({ jobId: string().optional() });
9358
9371
  /**
9372
+ * The one typed state of a storage location. Authoritative Zod schema — the TS
9373
+ * alias below is `z.infer<>` of it, never a second spelling.
9374
+ */
9375
+ var StorageLocationModeSchema = _enum([
9376
+ "active",
9377
+ "readonly",
9378
+ "drain",
9379
+ "disabled"
9380
+ ]);
9381
+ _enum([
9382
+ "normal",
9383
+ "never",
9384
+ "drain"
9385
+ ]);
9386
+ /**
9359
9387
  * `StorageLocationType` — an addon-declared id that identifies the *kind* of
9360
9388
  * storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
9361
9389
  * so the persisted record schema and the consumer-facing cap can both consume it
@@ -9421,6 +9449,21 @@ var StorageLocationSchema = object({
9421
9449
  * stops existing rather than being re-derived on every read.
9422
9450
  */
9423
9451
  enabled: boolean().optional(),
9452
+ /**
9453
+ * THE state of this location (D385), and the only authority on what may be
9454
+ * written, read or evicted here. Interpreted in exactly one place —
9455
+ * `storage-location-mode.ts` — which also folds the legacy
9456
+ * `enabled` / `config.readOnly` pair into a mode so an old row is never
9457
+ * ambiguous.
9458
+ *
9459
+ * OPTIONAL only for the wire and for rows written before D385: absence is
9460
+ * resolved by `resolveLocationMode`, and the orchestrator stamps every
9461
+ * unstamped row ONCE at hydrate so absence stops existing rather than being
9462
+ * re-derived on every read. `enabled` survives one release as a DERIVED
9463
+ * mirror (`mode === 'active'`); `withLocationMode` is the only writer of
9464
+ * either, so the two cannot disagree.
9465
+ */
9466
+ mode: StorageLocationModeSchema.optional(),
9424
9467
  /** COMPUTED at read time by the orchestrator (statfs of the backing volume
9425
9468
  * for node-local locations it can reach) — never persisted, absent when the
9426
9469
  * volume is remote/unreachable. The single capacity truth every UI reads. */
@@ -9428,11 +9471,46 @@ var StorageLocationSchema = object({
9428
9471
  totalBytes: number(),
9429
9472
  availableBytes: number()
9430
9473
  }).nullable().optional(),
9474
+ /**
9475
+ * How much of that volume CamStack ITSELF holds on this location (D388) —
9476
+ * COMPUTED at read time from the `storage-occupancy` providers' own figures,
9477
+ * never persisted, never a filesystem walk.
9478
+ *
9479
+ * **ABSENT MEANS UNKNOWN, never zero.** No provider has reported for this
9480
+ * location yet — nobody stores here, the owning addon is down, or the first
9481
+ * refresh has not completed. A UI must omit the segment rather than draw it
9482
+ * at zero, which would claim we occupy nothing (D315). It is an OBJECT and
9483
+ * not a bare number precisely so that a `?? 0` on the consuming side has to
9484
+ * be spelled out loud instead of appearing by accident.
9485
+ *
9486
+ * `measuredAtMs` is the OLDEST contributing measurement, so it is honest
9487
+ * about the whole figure rather than about its freshest part.
9488
+ */
9489
+ owned: object({
9490
+ bytes: number().int().nonnegative(),
9491
+ measuredAtMs: number().int().nonnegative()
9492
+ }).optional(),
9431
9493
  createdAt: number(),
9432
9494
  updatedAt: number()
9433
9495
  });
9434
9496
  object({ isDefault: boolean().optional() });
9435
9497
  /**
9498
+ * How far a `drain` has got (D386) — the read a UI renders, and nothing more.
9499
+ *
9500
+ * `estimatedEmptyAtMs` is derived from the growth the ratchet has actually
9501
+ * OBSERVED and is `null` when it has observed none. Never a fabricated date: a
9502
+ * drain with no observed growth has no honest ETA, and inventing one is how an
9503
+ * operator learns not to believe the screen.
9504
+ */
9505
+ var StorageDrainProgressSchema = object({
9506
+ locationId: string(),
9507
+ startedAtMs: number(),
9508
+ startBytes: number(),
9509
+ bytesRemaining: number(),
9510
+ drained: boolean(),
9511
+ estimatedEmptyAtMs: number().nullable()
9512
+ });
9513
+ /**
9436
9514
  * Reference accepted by consumer-facing `api.storage.*` calls.
9437
9515
  * Either:
9438
9516
  * - a `StorageLocationType` (e.g. `'backups'`) → the sole location of that type
@@ -21258,8 +21336,25 @@ var occupancyRecheckFramesField = {
21258
21336
  * (analyzer attaches detected `regions[]`; onboard does not — the
21259
21337
  * camera typically only reports a binary signal plus an optional
21260
21338
  * channel/AI class which lives in dedicated event channels).
21261
- */
21262
- var MotionSourceEnum = _enum(["onboard", "analyzer"]);
21339
+ *
21340
+ * - `onboard` — the camera's firmware said something moved.
21341
+ * - `analyzer` — this runner's frame-diff said so, and attaches `regions[]`.
21342
+ * - `device-activity` — the DEVICE said it is doing its job: the
21343
+ * `recording-signal` LEVEL the same device raises for the recorder
21344
+ * ([D380](../../../../docs/decisions/adr-0380-a-device-decided-recording-is-a-mode-with-no-schedule-seeded-once.md)),
21345
+ * republished as a motion source. It attaches **nothing** — no regions, no
21346
+ * class: the only fact it carries is that the device is active, and a robot
21347
+ * vacuum that is itself the moving object has no region worth sending. It is
21348
+ * a LEVEL, so unlike `onboard` it has a real falling edge, and unlike
21349
+ * `analyzer` it must not open the frame-diff side-channel — the runner's
21350
+ * `handleOnboardMotionAnalyzer` gate is `source === 'onboard'` and stays that
21351
+ * way ([D392](../../../../docs/decisions/adr-0392-a-device-that-says-it-is-working-is-a-motion-source-of-its-own.md)).
21352
+ */
21353
+ var MotionSourceEnum = _enum([
21354
+ "onboard",
21355
+ "analyzer",
21356
+ "device-activity"
21357
+ ]);
21263
21358
  /**
21264
21359
  * List of motion sources active on a camera. Empty array is valid:
21265
21360
  * "no source" — happens for battery cams without firmware motion when
@@ -22778,7 +22873,7 @@ method(object({
22778
22873
  }), _void(), {
22779
22874
  kind: "mutation",
22780
22875
  auth: "admin"
22781
- }), method(object({ id: string() }), object({
22876
+ }), method(_void(), array(StorageDrainProgressSchema).readonly()), method(object({ id: string() }), object({
22782
22877
  ok: boolean(),
22783
22878
  error: string().optional()
22784
22879
  }), { auth: "admin" }), method(_void(), array(ProviderListEntrySchema).readonly()), method(object({
@@ -22848,6 +22943,51 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
22848
22943
  kind: "mutation",
22849
22944
  auth: "admin"
22850
22945
  }), method(object({}), array(StorageMigrationJobSchema).readonly(), { auth: "admin" });
22946
+ /**
22947
+ * `storage-occupancy` — how many bytes an addon actually HOLDS on a storage
22948
+ * location (D388).
22949
+ *
22950
+ * ## Why this is not `storage-evictable`
22951
+ *
22952
+ * `storage-evictable.getEvictableUsage` looks like the same question and is
22953
+ * not, in two ways that both matter and both bite hardest on the locations an
22954
+ * operator most wants a figure for:
22955
+ *
22956
+ * - it reports the whole eviction DOMAIN, not the location. `recordings:default`
22957
+ * and `recordingsLow:default` deliberately share one root and evict as one
22958
+ * oldest-first pool, so both answer with the SAME combined total. As an
22959
+ * occupancy figure that double-counts the disk.
22960
+ * - it reports ZERO for a location whose eviction policy is `never` (D385) —
22961
+ * a `readonly` or `disabled` disk. Those are exactly the disks an operator
22962
+ * is retiring and staring at.
22963
+ *
22964
+ * So this is its own contract with its own quantity, and the quantity is
22965
+ * OCCUPIED: every byte the addon holds on that location, whether or not it
22966
+ * would ever be willing to delete it. A provider that can only answer
22967
+ * "evictable" must not register here — a number that silently means different
22968
+ * things per class is worse than no number.
22969
+ *
22970
+ * ## Absence is an answer
22971
+ *
22972
+ * A location nobody reports for is UNKNOWN, never zero (D315). The orchestrator
22973
+ * stamps `StorageLocation.owned` only for locations it has a report for, and
22974
+ * the field is an OBJECT rather than a bare number so that a `?? 0` on the
22975
+ * consuming side has to be written out loud instead of appearing by accident.
22976
+ *
22977
+ * `internal: true` — consumed by the orchestrator's `listLocations` stamp, never
22978
+ * a public client surface. Clients read the stamped `StorageLocation.owned`.
22979
+ */
22980
+ /** One provider's occupancy answer for one location. */
22981
+ var StorageOccupancyReportSchema = object({
22982
+ locationId: string(),
22983
+ /** Bytes this provider holds on THAT location — not its eviction domain, and
22984
+ * not net of what it is willing to delete. */
22985
+ ownedBytes: number().int().nonnegative(),
22986
+ /** When the provider last actually measured this. The orchestrator carries it
22987
+ * through so a UI can say how old the figure is instead of implying "now". */
22988
+ measuredAtMs: number().int().nonnegative()
22989
+ });
22990
+ method(object({ locationIds: array(string()).readonly() }), array(StorageOccupancyReportSchema).readonly(), { auth: "admin" });
22851
22991
  var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
22852
22992
  providerId: string().min(1),
22853
22993
  displayName: string().min(1),
@@ -24683,88 +24823,6 @@ onStatusChanged: { data: object({
24683
24823
  volatileStateFields: ["lastUpdated"]
24684
24824
  };
24685
24825
  /**
24686
- * Network-link snapshot. Same shape for every provider (a Reolink wifi
24687
- * camera, a Home Assistant device with a signal-strength sensor, a Tapo
24688
- * plug): one slice under `device.runtimeState['network-link']`, one badge,
24689
- * one Home Assistant projection.
24690
- */
24691
- var NetworkLinkStatusSchema = object({
24692
- /** The link the device is on. `'unknown'` = not read yet, not "no link". */
24693
- type: _enum([
24694
- "wifi",
24695
- "ethernet",
24696
- "cellular",
24697
- "unknown"
24698
- ]),
24699
- /**
24700
- * Link quality, 0..100 inclusive, normalised by the provider from whatever
24701
- * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
24702
- * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
24703
- * one whose reading has not landed must not be drawn at 0 %. Consumers
24704
- * SKIP a null rather than coerce it.
24705
- */
24706
- signalPercent: number().min(0).max(100).nullable(),
24707
- /** Raw received signal strength in dBm, when the firmware reports one. */
24708
- rssiDbm: number().optional(),
24709
- /** Network name of a wireless link, when the firmware reports it. */
24710
- ssid: string().optional(),
24711
- /** Ms epoch of the last observation. Lets consumers reason about freshness. */
24712
- lastUpdated: number()
24713
- });
24714
- var networkLinkCapability = {
24715
- name: "network-link",
24716
- scope: "device",
24717
- deviceNative: true,
24718
- mode: "singleton",
24719
- deviceTypes: [
24720
- DeviceType.Camera,
24721
- DeviceType.Sensor,
24722
- DeviceType.Button,
24723
- DeviceType.Switch,
24724
- DeviceType.Light,
24725
- DeviceType.Lock,
24726
- DeviceType.Siren
24727
- ],
24728
- methods: {},
24729
- events: {
24730
- /**
24731
- * Emitted whenever the cached status changes (a link switch, a signal
24732
- * reading that moved). Mirrored on the parent chain by the
24733
- * DeviceEventPropagator like `battery.onStatusChanged`.
24734
- */
24735
- onStatusChanged: { data: object({
24736
- deviceId: number(),
24737
- status: NetworkLinkStatusSchema
24738
- }) } },
24739
- status: {
24740
- schema: NetworkLinkStatusSchema,
24741
- kind: "push",
24742
- empty: {
24743
- type: "unknown",
24744
- signalPercent: null,
24745
- lastUpdated: 0
24746
- }
24747
- },
24748
- /**
24749
- * Runtime-state slice — every provider stores the same shape under
24750
- * `device.runtimeState['network-link']`, read once by the badge and the
24751
- * Home Assistant projector regardless of the driver.
24752
- */
24753
- runtimeState: NetworkLinkStatusSchema,
24754
- /**
24755
- * Runtime-state durability: **restored** — a link reading is slow to
24756
- * change and a sleeping battery camera may not report for hours; the
24757
- * restored slice is what the badge shows until the next read.
24758
- *
24759
- * See `RuntimeStateDurability`. Enforced by
24760
- * `scripts/check-runtime-state-durability.ts`.
24761
- */
24762
- durability: "restored",
24763
- /** Clock fields: written, but excluded from the compare that decides
24764
- * whether persisting is worth a SQLite commit. */
24765
- volatileStateFields: ["lastUpdated"]
24766
- };
24767
- /**
24768
24826
  * Generic boolean sensor — last-resort fallback when no domain-
24769
24827
  * specific binary cap fits (Home Assistant `binary_sensor` without a
24770
24828
  * known `device_class`, or a domain we haven't typed yet). Pure
@@ -28302,6 +28360,369 @@ var nativeObjectDetectionCapability = {
28302
28360
  volatileStateFields: ["lastFetchedAt"]
28303
28361
  };
28304
28362
  /**
28363
+ * `navigation` — a device-scoped capability that natively expresses the FULL
28364
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
28365
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
28366
+ *
28367
+ * Why a NEW cap rather than overloading `ptz`:
28368
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
28369
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
28370
+ * The two are different physical models: PTZ is absolute-position + presets,
28371
+ * navigation is momentary drive nudges + discrete robot ACTIONS
28372
+ * (dock / spot-clean / follow-pet / go-to-point / …).
28373
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
28374
+ * the reverse:
28375
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
28376
+ * / `getOptions`), and
28377
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
28378
+ * robot camera shows up in the existing PTZ control path without every
28379
+ * PTZ provider learning about robots. The mapping lives in the adapter,
28380
+ * not here (see the addon design note):
28381
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
28382
+ * ptz.stop() → navigation.stop()
28383
+ * ptz.goHome() → navigation.runAction('goHome')
28384
+ * ptz.getPresets() → navigation.listActions() (id→preset)
28385
+ * ptz.goToPreset(id) → navigation.runAction(id)
28386
+ *
28387
+ * ## Continuous drive
28388
+ *
28389
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
28390
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
28391
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
28392
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
28393
+ * coalesce them. The UI owns the cadence.
28394
+ *
28395
+ * ## The action dictionary
28396
+ *
28397
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
28398
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
28399
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
28400
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
28401
+ * vendor-specific list. `kind: 'action'` entries are triggered with
28402
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
28403
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
28404
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
28405
+ *
28406
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
28407
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
28408
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
28409
+ * every device handle. A future nodedreame publish adds a typed
28410
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
28411
+ * provider can then swap the raw calls for the typed methods with no change to
28412
+ * THIS contract.
28413
+ */
28414
+ /**
28415
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
28416
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
28417
+ * halts it.
28418
+ *
28419
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
28420
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
28421
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
28422
+ * vector by it (drivers without proportional drive ignore it).
28423
+ *
28424
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
28425
+ * axis alone; an all-undefined nudge is a no-op.
28426
+ */
28427
+ var NavigationMoveCommandSchema = object({
28428
+ pan: number().min(-1).max(1).optional(),
28429
+ tilt: number().min(-1).max(1).optional(),
28430
+ speed: number().min(0).max(1).optional()
28431
+ });
28432
+ /**
28433
+ * The enumerated discrete actions a navigation-capable robot can perform via
28434
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
28435
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
28436
+ * `playSound` (see the `sound` dictionary entries).
28437
+ */
28438
+ var NavigationActionIdSchema = _enum([
28439
+ "goHome",
28440
+ "locate",
28441
+ "spotClean",
28442
+ "findPet",
28443
+ "personFollow",
28444
+ "stop",
28445
+ "startClean",
28446
+ "pauseClean",
28447
+ "dockWash",
28448
+ "autoEmpty",
28449
+ "flashOn",
28450
+ "flashOff"
28451
+ ]);
28452
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
28453
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
28454
+ /**
28455
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
28456
+ * native panel and the PTZ mimic render as a button.
28457
+ *
28458
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
28459
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
28460
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
28461
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
28462
+ * - `label` — operator-facing English label.
28463
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
28464
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
28465
+ * PTZ render ONLY enabled entries. Data-driven: the provider
28466
+ * flips it from config, never by editing code.
28467
+ */
28468
+ var NavigationActionEntrySchema = object({
28469
+ id: string(),
28470
+ kind: NavigationEntryKindSchema,
28471
+ label: string(),
28472
+ icon: string(),
28473
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
28474
+ soundId: number().int().optional(),
28475
+ /** Per-device feature flag — render this entry only when true. */
28476
+ enabled: boolean()
28477
+ });
28478
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
28479
+ var NavigationPointSchema = object({
28480
+ x: number(),
28481
+ y: number()
28482
+ });
28483
+ /**
28484
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
28485
+ * The cap reports which are enabled so the UI / PTZ render only the controls
28486
+ * that are turned on for THIS device. Data-driven: the provider derives these
28487
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
28488
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
28489
+ * that are not dictionary entries.
28490
+ *
28491
+ * - `move` / `stop` — the momentary drive joystick.
28492
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
28493
+ * map-coordinate plumbing is wired.
28494
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
28495
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
28496
+ * - `light` — the on/off fill-light toggle (works anytime).
28497
+ * - `lightMode` — the auto/manual selector + manual level slider (a
28498
+ * camera-service control; needs an active stream).
28499
+ */
28500
+ var NavigationFeaturesSchema = object({
28501
+ move: boolean(),
28502
+ stop: boolean(),
28503
+ goToPoint: boolean(),
28504
+ runAction: boolean(),
28505
+ playSound: boolean(),
28506
+ light: boolean(),
28507
+ lightMode: boolean()
28508
+ });
28509
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
28510
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
28511
+ /**
28512
+ * Live navigation state so the UI can reflect what the robot is doing:
28513
+ * - `mode` — coarse activity (idle / cleaning / following / …).
28514
+ * - `following` — person/pet follow is currently armed.
28515
+ * - `flash` — the on-camera fill light is on.
28516
+ * - `lightMode` — auto vs manual fill-light mode.
28517
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
28518
+ * `lightMode === 'manual'`.
28519
+ */
28520
+ var NavigationStatusSchema = object({
28521
+ mode: _enum([
28522
+ "idle",
28523
+ "cleaning",
28524
+ "spot",
28525
+ "following",
28526
+ "goto",
28527
+ "returning",
28528
+ "paused",
28529
+ "unknown"
28530
+ ]),
28531
+ following: boolean(),
28532
+ flash: boolean(),
28533
+ lightMode: NavigationLightModeSchema,
28534
+ lightLevel: number().min(40).max(100),
28535
+ /** Ms epoch when the slice was last updated. */
28536
+ lastChangedAt: number()
28537
+ });
28538
+ /**
28539
+ * Runtime-state slice owned by this cap (kernel-managed: validated, mirrored,
28540
+ * observable). Adds `lastFetchedAt` on top of the status shape per the
28541
+ * convention.
28542
+ */
28543
+ var NavigationRuntimeStateSchema = NavigationStatusSchema.extend({ lastFetchedAt: number() });
28544
+ var navigationCapability = {
28545
+ name: "navigation",
28546
+ scope: "device",
28547
+ deviceNative: true,
28548
+ mode: "singleton",
28549
+ deviceTypes: [DeviceType.Camera],
28550
+ deviceConfig: { ui: {
28551
+ kind: "widget",
28552
+ widgetId: "host/navigation-panel",
28553
+ tab: "navigation",
28554
+ topTab: true,
28555
+ label: "Navigation",
28556
+ order: 0
28557
+ } },
28558
+ methods: {
28559
+ /**
28560
+ * Momentary drive nudge (the robot moves). `protected` — mirrors
28561
+ * `ptz.continuousMove` so the Viewer navigation panel (and the PTZ-mimic
28562
+ * path) works for any authenticated user, not admin-only. The UI sends
28563
+ * these at ~1 Hz while a control is held; the provider forwards each one to
28564
+ * a single drive write WITHOUT debouncing.
28565
+ */
28566
+ move: method(NavigationMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
28567
+ /** Halt all motion immediately (zero drive vector). */
28568
+ stop: method(object({ deviceId: number() }), _void(), { kind: "mutation" }),
28569
+ /** Send the robot to a point on its live map. */
28570
+ goToPoint: method(NavigationPointSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
28571
+ /**
28572
+ * Enumerate the discrete controls THIS device supports (data-driven UI +
28573
+ * PTZ mimic). Camera-probed subset of {@link NAVIGATION_ACTION_CATALOG}.
28574
+ */
28575
+ listActions: method(object({ deviceId: number() }), array(NavigationActionEntrySchema)),
28576
+ /**
28577
+ * Run one discrete action (a `kind:'action'` dictionary entry). Invalid /
28578
+ * unsupported action ids are rejected by the provider.
28579
+ */
28580
+ runAction: method(object({
28581
+ deviceId: number(),
28582
+ actionId: NavigationActionIdSchema
28583
+ }), _void(), { kind: "mutation" }),
28584
+ /** Play a sound by its wire id (the `soundId` of a `kind:'sound'` entry). */
28585
+ playSound: method(object({
28586
+ deviceId: number(),
28587
+ soundId: number().int()
28588
+ }), _void(), { kind: "mutation" }),
28589
+ /**
28590
+ * Turn the on-camera fill light on / off (the `OpenFullLight` control —
28591
+ * works anytime, no active stream required).
28592
+ */
28593
+ setLightOn: method(object({
28594
+ deviceId: number(),
28595
+ on: boolean()
28596
+ }), _void(), { kind: "mutation" }),
28597
+ /**
28598
+ * Set the fill-light mode (auto vs manual). `manual` optionally carries the
28599
+ * initial `level`. The auto/manual + level control is a CAMERA-service
28600
+ * action that generally needs an active camera stream/monitor session — the
28601
+ * UI shows the manual level slider ONLY when `mode === 'manual'`.
28602
+ */
28603
+ setLightMode: method(object({
28604
+ deviceId: number(),
28605
+ mode: NavigationLightModeSchema,
28606
+ level: number().min(40).max(100).optional()
28607
+ }), _void(), { kind: "mutation" }),
28608
+ /** Set the MANUAL fill-light level (40..100). Implies `manual` mode. */
28609
+ setLightLevel: method(object({
28610
+ deviceId: number(),
28611
+ level: number().min(40).max(100)
28612
+ }), _void(), { kind: "mutation" }),
28613
+ /**
28614
+ * Per-device FEATURE-FLAG report for the general primitives — drives which
28615
+ * controls the UI shows (the per-entry flags for the dictionary come back on
28616
+ * `listActions`).
28617
+ */
28618
+ getFeatures: method(object({ deviceId: number() }), NavigationFeaturesSchema)
28619
+ },
28620
+ events: { onStatusChanged: { data: object({
28621
+ deviceId: number(),
28622
+ status: NavigationStatusSchema
28623
+ }) } },
28624
+ status: {
28625
+ schema: NavigationStatusSchema,
28626
+ kind: "push"
28627
+ },
28628
+ /**
28629
+ * Runtime-state slice mirrored by the kernel. The navigation panel watches it
28630
+ * for live mode / follow / flash changes.
28631
+ */
28632
+ runtimeState: NavigationRuntimeStateSchema,
28633
+ /**
28634
+ * Runtime-state durability: **session** — like `vacuum-control`, a restored
28635
+ * `mode: cleaning` / `following: true` is a robot that is not actually doing
28636
+ * that. The live handle re-publishes on connect.
28637
+ *
28638
+ * See `RuntimeStateDurability`. Enforced by
28639
+ * `scripts/check-runtime-state-durability.ts`.
28640
+ */
28641
+ durability: "session"
28642
+ };
28643
+ /**
28644
+ * Network-link snapshot. Same shape for every provider (a Reolink wifi
28645
+ * camera, a Home Assistant device with a signal-strength sensor, a Tapo
28646
+ * plug): one slice under `device.runtimeState['network-link']`, one badge,
28647
+ * one Home Assistant projection.
28648
+ */
28649
+ var NetworkLinkStatusSchema = object({
28650
+ /** The link the device is on. `'unknown'` = not read yet, not "no link". */
28651
+ type: _enum([
28652
+ "wifi",
28653
+ "ethernet",
28654
+ "cellular",
28655
+ "unknown"
28656
+ ]),
28657
+ /**
28658
+ * Link quality, 0..100 inclusive, normalised by the provider from whatever
28659
+ * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
28660
+ * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
28661
+ * one whose reading has not landed must not be drawn at 0 %. Consumers
28662
+ * SKIP a null rather than coerce it.
28663
+ */
28664
+ signalPercent: number().min(0).max(100).nullable(),
28665
+ /** Raw received signal strength in dBm, when the firmware reports one. */
28666
+ rssiDbm: number().optional(),
28667
+ /** Network name of a wireless link, when the firmware reports it. */
28668
+ ssid: string().optional(),
28669
+ /** Ms epoch of the last observation. Lets consumers reason about freshness. */
28670
+ lastUpdated: number()
28671
+ });
28672
+ var networkLinkCapability = {
28673
+ name: "network-link",
28674
+ scope: "device",
28675
+ deviceNative: true,
28676
+ mode: "singleton",
28677
+ deviceTypes: [
28678
+ DeviceType.Camera,
28679
+ DeviceType.Sensor,
28680
+ DeviceType.Button,
28681
+ DeviceType.Switch,
28682
+ DeviceType.Light,
28683
+ DeviceType.Lock,
28684
+ DeviceType.Siren
28685
+ ],
28686
+ methods: {},
28687
+ events: {
28688
+ /**
28689
+ * Emitted whenever the cached status changes (a link switch, a signal
28690
+ * reading that moved). Mirrored on the parent chain by the
28691
+ * DeviceEventPropagator like `battery.onStatusChanged`.
28692
+ */
28693
+ onStatusChanged: { data: object({
28694
+ deviceId: number(),
28695
+ status: NetworkLinkStatusSchema
28696
+ }) } },
28697
+ status: {
28698
+ schema: NetworkLinkStatusSchema,
28699
+ kind: "push",
28700
+ empty: {
28701
+ type: "unknown",
28702
+ signalPercent: null,
28703
+ lastUpdated: 0
28704
+ }
28705
+ },
28706
+ /**
28707
+ * Runtime-state slice — every provider stores the same shape under
28708
+ * `device.runtimeState['network-link']`, read once by the badge and the
28709
+ * Home Assistant projector regardless of the driver.
28710
+ */
28711
+ runtimeState: NetworkLinkStatusSchema,
28712
+ /**
28713
+ * Runtime-state durability: **restored** — a link reading is slow to
28714
+ * change and a sleeping battery camera may not report for hours; the
28715
+ * restored slice is what the badge shows until the next read.
28716
+ *
28717
+ * See `RuntimeStateDurability`. Enforced by
28718
+ * `scripts/check-runtime-state-durability.ts`.
28719
+ */
28720
+ durability: "restored",
28721
+ /** Clock fields: written, but excluded from the compare that decides
28722
+ * whether persisting is worth a SQLite commit. */
28723
+ volatileStateFields: ["lastUpdated"]
28724
+ };
28725
+ /**
28305
28726
  * network-quality — system-scoped singleton capability tracking RTT,
28306
28727
  * jitter, and observed/peak bandwidth per device + per client.
28307
28728
  *
@@ -29882,287 +30303,6 @@ var ptzAutotrackCapability = {
29882
30303
  */
29883
30304
  durability: "session"
29884
30305
  };
29885
- /**
29886
- * `navigation` — a device-scoped capability that natively expresses the FULL
29887
- * navigation / action surface of a robot that DRIVES ITSELF and carries an
29888
- * on-board camera (the Dreame robot-vacuum camera is the first provider).
29889
- *
29890
- * Why a NEW cap rather than overloading `ptz`:
29891
- * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
29892
- * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
29893
- * The two are different physical models: PTZ is absolute-position + presets,
29894
- * navigation is momentary drive nudges + discrete robot ACTIONS
29895
- * (dock / spot-clean / follow-pet / go-to-point / …).
29896
- * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
29897
- * the reverse:
29898
- * 1. a native CamStack navigation panel (data-driven from `listActions`
29899
- * / `getOptions`), and
29900
- * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
29901
- * robot camera shows up in the existing PTZ control path without every
29902
- * PTZ provider learning about robots. The mapping lives in the adapter,
29903
- * not here (see the addon design note):
29904
- * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
29905
- * ptz.stop() → navigation.stop()
29906
- * ptz.goHome() → navigation.runAction('goHome')
29907
- * ptz.getPresets() → navigation.listActions() (id→preset)
29908
- * ptz.goToPreset(id) → navigation.runAction(id)
29909
- *
29910
- * ## Continuous drive
29911
- *
29912
- * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
29913
- * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
29914
- * one `stop()` on release — exactly like the robot app's remote-drive joystick.
29915
- * The provider forwards EACH `move` to one drive write; it must NOT debounce or
29916
- * coalesce them. The UI owns the cadence.
29917
- *
29918
- * ## The action dictionary
29919
- *
29920
- * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
29921
- * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
29922
- * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
29923
- * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
29924
- * vendor-specific list. `kind: 'action'` entries are triggered with
29925
- * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
29926
- * (the entry carries the `soundId` to pass). The general primitives — `move`,
29927
- * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
29928
- *
29929
- * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
29930
- * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
29931
- * that the currently-published `@apocaliss92/nodedreame` already exposes on
29932
- * every device handle. A future nodedreame publish adds a typed
29933
- * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
29934
- * provider can then swap the raw calls for the typed methods with no change to
29935
- * THIS contract.
29936
- */
29937
- /**
29938
- * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
29939
- * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
29940
- * halts it.
29941
- *
29942
- * - `pan` — turn: negative = left, positive = right, 0 = straight.
29943
- * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
29944
- * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
29945
- * vector by it (drivers without proportional drive ignore it).
29946
- *
29947
- * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
29948
- * axis alone; an all-undefined nudge is a no-op.
29949
- */
29950
- var NavigationMoveCommandSchema = object({
29951
- pan: number().min(-1).max(1).optional(),
29952
- tilt: number().min(-1).max(1).optional(),
29953
- speed: number().min(0).max(1).optional()
29954
- });
29955
- /**
29956
- * The enumerated discrete actions a navigation-capable robot can perform via
29957
- * `runAction`. This is the CLOSED vocabulary; a given device advertises the
29958
- * subset it supports through `listActions`. Sounds are NOT here — they go through
29959
- * `playSound` (see the `sound` dictionary entries).
29960
- */
29961
- var NavigationActionIdSchema = _enum([
29962
- "goHome",
29963
- "locate",
29964
- "spotClean",
29965
- "findPet",
29966
- "personFollow",
29967
- "stop",
29968
- "startClean",
29969
- "pauseClean",
29970
- "dockWash",
29971
- "autoEmpty",
29972
- "flashOn",
29973
- "flashOff"
29974
- ]);
29975
- /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
29976
- var NavigationEntryKindSchema = _enum(["action", "sound"]);
29977
- /**
29978
- * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
29979
- * native panel and the PTZ mimic render as a button.
29980
- *
29981
- * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
29982
- * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
29983
- * (`sound:meow`) whose `soundId` is passed to `playSound`.
29984
- * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
29985
- * - `label` — operator-facing English label.
29986
- * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
29987
- * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
29988
- * PTZ render ONLY enabled entries. Data-driven: the provider
29989
- * flips it from config, never by editing code.
29990
- */
29991
- var NavigationActionEntrySchema = object({
29992
- id: string(),
29993
- kind: NavigationEntryKindSchema,
29994
- label: string(),
29995
- icon: string(),
29996
- /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
29997
- soundId: number().int().optional(),
29998
- /** Per-device feature flag — render this entry only when true. */
29999
- enabled: boolean()
30000
- });
30001
- /** Coordinates for `goToPoint` — a point on the robot's live map. */
30002
- var NavigationPointSchema = object({
30003
- x: number(),
30004
- y: number()
30005
- });
30006
- /**
30007
- * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
30008
- * The cap reports which are enabled so the UI / PTZ render only the controls
30009
- * that are turned on for THIS device. Data-driven: the provider derives these
30010
- * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
30011
- * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
30012
- * that are not dictionary entries.
30013
- *
30014
- * - `move` / `stop` — the momentary drive joystick.
30015
- * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
30016
- * map-coordinate plumbing is wired.
30017
- * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
30018
- * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
30019
- * - `light` — the on/off fill-light toggle (works anytime).
30020
- * - `lightMode` — the auto/manual selector + manual level slider (a
30021
- * camera-service control; needs an active stream).
30022
- */
30023
- var NavigationFeaturesSchema = object({
30024
- move: boolean(),
30025
- stop: boolean(),
30026
- goToPoint: boolean(),
30027
- runAction: boolean(),
30028
- playSound: boolean(),
30029
- light: boolean(),
30030
- lightMode: boolean()
30031
- });
30032
- /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
30033
- var NavigationLightModeSchema = _enum(["auto", "manual"]);
30034
- /**
30035
- * Live navigation state so the UI can reflect what the robot is doing:
30036
- * - `mode` — coarse activity (idle / cleaning / following / …).
30037
- * - `following` — person/pet follow is currently armed.
30038
- * - `flash` — the on-camera fill light is on.
30039
- * - `lightMode` — auto vs manual fill-light mode.
30040
- * - `lightLevel` — manual fill-light level (40..100); meaningful when
30041
- * `lightMode === 'manual'`.
30042
- */
30043
- var NavigationStatusSchema = object({
30044
- mode: _enum([
30045
- "idle",
30046
- "cleaning",
30047
- "spot",
30048
- "following",
30049
- "goto",
30050
- "returning",
30051
- "paused",
30052
- "unknown"
30053
- ]),
30054
- following: boolean(),
30055
- flash: boolean(),
30056
- lightMode: NavigationLightModeSchema,
30057
- lightLevel: number().min(40).max(100),
30058
- /** Ms epoch when the slice was last updated. */
30059
- lastChangedAt: number()
30060
- });
30061
- /**
30062
- * Runtime-state slice owned by this cap (kernel-managed: validated, mirrored,
30063
- * observable). Adds `lastFetchedAt` on top of the status shape per the
30064
- * convention.
30065
- */
30066
- var NavigationRuntimeStateSchema = NavigationStatusSchema.extend({ lastFetchedAt: number() });
30067
- var navigationCapability = {
30068
- name: "navigation",
30069
- scope: "device",
30070
- deviceNative: true,
30071
- mode: "singleton",
30072
- deviceTypes: [DeviceType.Camera],
30073
- deviceConfig: { ui: {
30074
- kind: "widget",
30075
- widgetId: "host/navigation-panel",
30076
- tab: "navigation",
30077
- topTab: true,
30078
- label: "Navigation",
30079
- order: 0
30080
- } },
30081
- methods: {
30082
- /**
30083
- * Momentary drive nudge (the robot moves). `protected` — mirrors
30084
- * `ptz.continuousMove` so the Viewer navigation panel (and the PTZ-mimic
30085
- * path) works for any authenticated user, not admin-only. The UI sends
30086
- * these at ~1 Hz while a control is held; the provider forwards each one to
30087
- * a single drive write WITHOUT debouncing.
30088
- */
30089
- move: method(NavigationMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
30090
- /** Halt all motion immediately (zero drive vector). */
30091
- stop: method(object({ deviceId: number() }), _void(), { kind: "mutation" }),
30092
- /** Send the robot to a point on its live map. */
30093
- goToPoint: method(NavigationPointSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
30094
- /**
30095
- * Enumerate the discrete controls THIS device supports (data-driven UI +
30096
- * PTZ mimic). Camera-probed subset of {@link NAVIGATION_ACTION_CATALOG}.
30097
- */
30098
- listActions: method(object({ deviceId: number() }), array(NavigationActionEntrySchema)),
30099
- /**
30100
- * Run one discrete action (a `kind:'action'` dictionary entry). Invalid /
30101
- * unsupported action ids are rejected by the provider.
30102
- */
30103
- runAction: method(object({
30104
- deviceId: number(),
30105
- actionId: NavigationActionIdSchema
30106
- }), _void(), { kind: "mutation" }),
30107
- /** Play a sound by its wire id (the `soundId` of a `kind:'sound'` entry). */
30108
- playSound: method(object({
30109
- deviceId: number(),
30110
- soundId: number().int()
30111
- }), _void(), { kind: "mutation" }),
30112
- /**
30113
- * Turn the on-camera fill light on / off (the `OpenFullLight` control —
30114
- * works anytime, no active stream required).
30115
- */
30116
- setLightOn: method(object({
30117
- deviceId: number(),
30118
- on: boolean()
30119
- }), _void(), { kind: "mutation" }),
30120
- /**
30121
- * Set the fill-light mode (auto vs manual). `manual` optionally carries the
30122
- * initial `level`. The auto/manual + level control is a CAMERA-service
30123
- * action that generally needs an active camera stream/monitor session — the
30124
- * UI shows the manual level slider ONLY when `mode === 'manual'`.
30125
- */
30126
- setLightMode: method(object({
30127
- deviceId: number(),
30128
- mode: NavigationLightModeSchema,
30129
- level: number().min(40).max(100).optional()
30130
- }), _void(), { kind: "mutation" }),
30131
- /** Set the MANUAL fill-light level (40..100). Implies `manual` mode. */
30132
- setLightLevel: method(object({
30133
- deviceId: number(),
30134
- level: number().min(40).max(100)
30135
- }), _void(), { kind: "mutation" }),
30136
- /**
30137
- * Per-device FEATURE-FLAG report for the general primitives — drives which
30138
- * controls the UI shows (the per-entry flags for the dictionary come back on
30139
- * `listActions`).
30140
- */
30141
- getFeatures: method(object({ deviceId: number() }), NavigationFeaturesSchema)
30142
- },
30143
- events: { onStatusChanged: { data: object({
30144
- deviceId: number(),
30145
- status: NavigationStatusSchema
30146
- }) } },
30147
- status: {
30148
- schema: NavigationStatusSchema,
30149
- kind: "push"
30150
- },
30151
- /**
30152
- * Runtime-state slice mirrored by the kernel. The navigation panel watches it
30153
- * for live mode / follow / flash changes.
30154
- */
30155
- runtimeState: NavigationRuntimeStateSchema,
30156
- /**
30157
- * Runtime-state durability: **session** — like `vacuum-control`, a restored
30158
- * `mode: cleaning` / `following: true` is a robot that is not actually doing
30159
- * that. The live handle re-publishes on connect.
30160
- *
30161
- * See `RuntimeStateDurability`. Enforced by
30162
- * `scripts/check-runtime-state-durability.ts`.
30163
- */
30164
- durability: "session"
30165
- };
30166
30306
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
30167
30307
  kind: "mutation",
30168
30308
  auth: "admin"
@@ -39625,6 +39765,12 @@ Object.freeze({
39625
39765
  addonId: null,
39626
39766
  access: "view"
39627
39767
  },
39768
+ "storage.listDrainProgress": {
39769
+ capName: "storage",
39770
+ capScope: "system",
39771
+ addonId: null,
39772
+ access: "view"
39773
+ },
39628
39774
  "storage.listLocationDeclarations": {
39629
39775
  capName: "storage",
39630
39776
  capScope: "system",
@@ -39769,6 +39915,12 @@ Object.freeze({
39769
39915
  addonId: null,
39770
39916
  access: "view"
39771
39917
  },
39918
+ "storageOccupancy.getOccupancy": {
39919
+ capName: "storage-occupancy",
39920
+ capScope: "system",
39921
+ addonId: null,
39922
+ access: "view"
39923
+ },
39772
39924
  "storageProvider.abortUpload": {
39773
39925
  capName: "storage-provider",
39774
39926
  capScope: "system",