@camstack/addon-tailscale 1.2.78 → 1.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.
@@ -1,4 +1,4 @@
1
- //#region ../types/dist/event-category-zAv7pMUz.mjs
1
+ //#region ../types/dist/event-category-CnLqLOKs.mjs
2
2
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
3
3
  EventCategory["SystemBoot"] = "system.boot";
4
4
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -193,6 +193,19 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
193
193
  EventCategory["ProcessCrashed"] = "process.crashed";
194
194
  EventCategory["ProcessRestartScheduled"] = "process.restart_scheduled";
195
195
  EventCategory["ProcessRestarted"] = "process.restarted";
196
+ /**
197
+ * The SET of storage locations changed — one was created, edited, enabled,
198
+ * disabled or deleted through `storage.upsertLocation` / `deleteLocation`.
199
+ *
200
+ * Telemetry, not a transaction (D8/D11): every consumer that re-resolves on
201
+ * it must also converge on its own periodic path, because a dropped event
202
+ * must not leave a node writing to yesterday's disk set forever. It exists
203
+ * because there was NO signal at all — an operator who added a second
204
+ * recordings disk in the admin UI got nothing, and the recorder kept its
205
+ * resolved locations until something else happened to re-resolve them
206
+ * (D387). Payload `StorageLocationsChangedPayload`.
207
+ */
208
+ EventCategory["StorageLocationsChanged"] = "storage.locations-changed";
196
209
  EventCategory["RecordingStarted"] = "recording.started";
197
210
  EventCategory["RecordingStopped"] = "recording.stopped";
198
211
  EventCategory["RecordingError"] = "recording.error";
@@ -7632,111 +7645,6 @@ var CameraSwitchGroupSchema = object({
7632
7645
  fetchedAt: number()
7633
7646
  });
7634
7647
  /**
7635
- * Per-component log CHANNELS — the gate a hot path consults, and the registry
7636
- * an addon declares its channels in.
7637
- *
7638
- * ## Two axes, deliberately separated
7639
- *
7640
- * - **DECLARATION** — which channels exist. Only the addon knows:
7641
- * `stream-broker` knows webrtc/ICE/RTP, `provider-reolink` knows
7642
- * baichuan/handshake. A hand-wired central list rots at the first addition,
7643
- * and rots silently. So a channel is declared where it is consulted, and the
7644
- * `log-channels` capability enumerates the declarations.
7645
- * - **VALUE** — at which level, for which scope, until when. That stays ONE
7646
- * thing: the logging settings document on the `system` cap. Two authorities
7647
- * over the values is the exact defect
7648
- * `docs/design/plans/2026-08-26-logging-per-componente.md` was written to
7649
- * remove; re-introducing it from the cure side would be grotesque.
7650
- *
7651
- * Nothing in this file reads a clock, an env var or a store. The registry is
7652
- * a MIRROR: it is moved only by {@link LogChannelRegistry.apply}, called off
7653
- * the hot path with a value somebody actually read, and by
7654
- * {@link LogChannelRegistry.tick}, called on a timer. A store read that fails
7655
- * never reaches here, so it can neither disarm an armed channel nor arm a
7656
- * disarmed one (D49).
7657
- *
7658
- * ## The canonical call shape
7659
- *
7660
- * ```ts
7661
- * if (CH_RTP.on && CH_RTP.wants(deviceId)) {
7662
- * CH_RTP.log(logger, 'rtp subscriber added', { tags: { deviceId }, meta: { ssrc } })
7663
- * }
7664
- * ```
7665
- *
7666
- * `on` is a plain boolean FIELD — never a getter — and it is the FIRST thing
7667
- * read. Disarmed, a call site costs one load and one branch, and the `extras`
7668
- * object literal is never constructed because it lives inside the branch. It
7669
- * is the same shape already proven in production at `stream-broker.ts:1650`,
7670
- * and the same discipline `LoggingGate.allowsDestination` uses for the
7671
- * destination floor (measured at 1.93 ns/call when off).
7672
- *
7673
- * ## Why a channel emits at `info`
7674
- *
7675
- * `loki-logging.addon.ts` pins the destination default at `info` and
7676
- * `loki-destination.ts` drops everything below it, so a line emitted at
7677
- * `debug` never reaches Loki and the hub's in-memory ring only holds ~35
7678
- * minutes. A diagnostic that cannot be read an hour later is worse than no
7679
- * diagnostic, because it looks done. {@link LogChannelGate.log} therefore
7680
- * emits at the channel's declared level, whose schema floor is `info`.
7681
- */
7682
- /**
7683
- * The level a channel writes at once armed.
7684
- *
7685
- * `debug` is absent ON PURPOSE and not by omission: below `info` the line does
7686
- * not leave the process for Loki, and the whole point of arming a channel is
7687
- * to read it later.
7688
- */
7689
- var LogChannelLevelSchema = _enum([
7690
- "info",
7691
- "warn",
7692
- "error"
7693
- ]);
7694
- /**
7695
- * What an addon declares about one channel. No value, no state — a
7696
- * declaration is inert.
7697
- */
7698
- var LogChannelDescriptorSchema = object({
7699
- /**
7700
- * Dotted `area.thing`, unique across the workspace. `area` is conventionally
7701
- * the addon's short name so an operator reading a channel list can tell who
7702
- * owns it without a second lookup.
7703
- */
7704
- name: string().min(3).regex(/^[a-z0-9-]+(\.[a-z0-9-]+)+$/, "a channel name is dotted lower-kebab, e.g. area.thing"),
7705
- /** One sentence: what the operator will SEE after arming it. */
7706
- description: string().min(1),
7707
- /** The level its lines are emitted at. Never below `info`. */
7708
- defaultLevel: LogChannelLevelSchema,
7709
- /**
7710
- * Whether this channel can be narrowed to a camera.
7711
- *
7712
- * `true` is a PROMISE with two halves, and both must hold: the gate is
7713
- * consulted with the numeric device id, AND every line the channel admits
7714
- * carries `tags: { deviceId }` with that same numeric id. The second half is
7715
- * what makes `| json | deviceId="617"` work in Loki — `loki-payload.ts`
7716
- * keeps `deviceId` out of the stream labels for cardinality, so the tag in
7717
- * the body is the only way to filter.
7718
- *
7719
- * A channel whose lines carry the device only in `meta` (or not at all) is
7720
- * declared `false`. Declaring it `true` anyway would be a lie the UI repeats:
7721
- * the operator narrows to one camera, sees nothing, and concludes the code
7722
- * path was never taken.
7723
- */
7724
- perDevice: boolean()
7725
- });
7726
- /**
7727
- * An armed window over one channel, as the document hands it to a mirror.
7728
- *
7729
- * A window is a DEADLINE, never a flag (ADR-0244): a channel somebody forgot
7730
- * expires by itself, which is the one failure a boolean cannot avoid.
7731
- */
7732
- var LogChannelWindowSchema = object({
7733
- channel: string().min(1),
7734
- /** Epoch ms the window closes at. */
7735
- armedUntilMs: number(),
7736
- /** `null` = every camera. A non-empty list narrows to those numeric ids. */
7737
- deviceIds: array(number().int()).readonly().nullable()
7738
- });
7739
- /**
7740
7648
  * Ops-log — the durable, append-only operations audit shared by the
7741
7649
  * recordings and events management surfaces.
7742
7650
  *
@@ -8658,6 +8566,21 @@ var StorageCleanupJobSchema = object({
8658
8566
  });
8659
8567
  var StorageCleanupStatusInputSchema = object({ jobId: string().optional() });
8660
8568
  /**
8569
+ * The one typed state of a storage location. Authoritative Zod schema — the TS
8570
+ * alias below is `z.infer<>` of it, never a second spelling.
8571
+ */
8572
+ var StorageLocationModeSchema = _enum([
8573
+ "active",
8574
+ "readonly",
8575
+ "drain",
8576
+ "disabled"
8577
+ ]);
8578
+ _enum([
8579
+ "normal",
8580
+ "never",
8581
+ "drain"
8582
+ ]);
8583
+ /**
8661
8584
  * `StorageLocationType` — an addon-declared id that identifies the *kind* of
8662
8585
  * storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
8663
8586
  * so the persisted record schema and the consumer-facing cap can both consume it
@@ -8682,8 +8605,11 @@ var StorageLocationTypeSchema = string().regex(/^[a-z][a-zA-Z0-9-]*$/);
8682
8605
  * `STORAGE_LOCATION_CARDINALITY` map has been removed.
8683
8606
  *
8684
8607
  * `id` is a stable namespaced string of the form `<type>:<slug>`.
8685
- * The default location for a type uses `id === <type>:default` by
8686
- * convention (the bare type ref like `'backups'` resolves to it).
8608
+ * The seed names its first instance `<type>:default` — a NAME, not a flag.
8609
+ * There is no default location any more (D383): `enabled` is the whole write
8610
+ * model, and a bare type ref resolves to the sole location of the type, or —
8611
+ * transitionally, only while legacy NULL-stamped rows exist — to the row whose
8612
+ * slug is `default`.
8687
8613
  *
8688
8614
  * `isSystem` is a legacy persisted flag. Seed still creates the initial
8689
8615
  * `<type>:default` locations; the flag is no longer a lock, a badge, or a
@@ -8704,23 +8630,37 @@ var StorageLocationSchema = object({
8704
8630
  * flag at upsert time, not here (the schema is provider-agnostic).
8705
8631
  */
8706
8632
  nodeId: string().optional(),
8707
- isDefault: boolean().default(false),
8708
8633
  isSystem: boolean().default(false),
8709
8634
  /**
8710
- * Operator opt-in: whether consumers that BALANCE across several locations
8711
- * of a type may write here. Recordings reads it today; event media and
8712
- * backups are the next consumers, which is why the flag lives on the
8713
- * location rather than in any one addon's store — nothing has to be
8714
- * extended to add the next consumer.
8635
+ * THE write switch, and the only one (D383). `enabled: true` means every
8636
+ * consumer that chooses a write target for this type may write here, and all
8637
+ * enabled locations of a type are used TOGETHER; `false` means read-only —
8638
+ * still read, still played back, still age-swept, still drained, never
8639
+ * written.
8715
8640
  *
8716
- * OPTIONAL, and ABSENT MEANS ACTIVE. Every location persisted before the
8717
- * flag existed reads back with no flag and keeps working exactly as before;
8718
- * that is the whole compat story, and it is why no migration ships with it.
8719
- * A newly CREATED sibling is stamped `false` by the orchestrator (creating a
8720
- * disk must not silently start writing to it); the default of a type is
8721
- * always stamped `true`.
8641
+ * OPTIONAL only for the wire: an upsert that omits it means "leave what is
8642
+ * stored" on an update and "born inert unless it is the first location of its
8643
+ * type" on a create. On a PERSISTED row absence is legacy and it means
8644
+ * enabled — {@link isLocationEnabled} is the one place that says so, and the
8645
+ * orchestrator stamps every flagless row `true` once at hydrate so absence
8646
+ * stops existing rather than being re-derived on every read.
8722
8647
  */
8723
8648
  enabled: boolean().optional(),
8649
+ /**
8650
+ * THE state of this location (D385), and the only authority on what may be
8651
+ * written, read or evicted here. Interpreted in exactly one place —
8652
+ * `storage-location-mode.ts` — which also folds the legacy
8653
+ * `enabled` / `config.readOnly` pair into a mode so an old row is never
8654
+ * ambiguous.
8655
+ *
8656
+ * OPTIONAL only for the wire and for rows written before D385: absence is
8657
+ * resolved by `resolveLocationMode`, and the orchestrator stamps every
8658
+ * unstamped row ONCE at hydrate so absence stops existing rather than being
8659
+ * re-derived on every read. `enabled` survives one release as a DERIVED
8660
+ * mirror (`mode === 'active'`); `withLocationMode` is the only writer of
8661
+ * either, so the two cannot disagree.
8662
+ */
8663
+ mode: StorageLocationModeSchema.optional(),
8724
8664
  /** COMPUTED at read time by the orchestrator (statfs of the backing volume
8725
8665
  * for node-local locations it can reach) — never persisted, absent when the
8726
8666
  * volume is remote/unreachable. The single capacity truth every UI reads. */
@@ -8728,13 +8668,50 @@ var StorageLocationSchema = object({
8728
8668
  totalBytes: number(),
8729
8669
  availableBytes: number()
8730
8670
  }).nullable().optional(),
8671
+ /**
8672
+ * How much of that volume CamStack ITSELF holds on this location (D388) —
8673
+ * COMPUTED at read time from the `storage-occupancy` providers' own figures,
8674
+ * never persisted, never a filesystem walk.
8675
+ *
8676
+ * **ABSENT MEANS UNKNOWN, never zero.** No provider has reported for this
8677
+ * location yet — nobody stores here, the owning addon is down, or the first
8678
+ * refresh has not completed. A UI must omit the segment rather than draw it
8679
+ * at zero, which would claim we occupy nothing (D315). It is an OBJECT and
8680
+ * not a bare number precisely so that a `?? 0` on the consuming side has to
8681
+ * be spelled out loud instead of appearing by accident.
8682
+ *
8683
+ * `measuredAtMs` is the OLDEST contributing measurement, so it is honest
8684
+ * about the whole figure rather than about its freshest part.
8685
+ */
8686
+ owned: object({
8687
+ bytes: number().int().nonnegative(),
8688
+ measuredAtMs: number().int().nonnegative()
8689
+ }).optional(),
8731
8690
  createdAt: number(),
8732
8691
  updatedAt: number()
8733
8692
  });
8693
+ object({ isDefault: boolean().optional() });
8694
+ /**
8695
+ * How far a `drain` has got (D386) — the read a UI renders, and nothing more.
8696
+ *
8697
+ * `estimatedEmptyAtMs` is derived from the growth the ratchet has actually
8698
+ * OBSERVED and is `null` when it has observed none. Never a fabricated date: a
8699
+ * drain with no observed growth has no honest ETA, and inventing one is how an
8700
+ * operator learns not to believe the screen.
8701
+ */
8702
+ var StorageDrainProgressSchema = object({
8703
+ locationId: string(),
8704
+ startedAtMs: number(),
8705
+ startBytes: number(),
8706
+ bytesRemaining: number(),
8707
+ drained: boolean(),
8708
+ estimatedEmptyAtMs: number().nullable()
8709
+ });
8734
8710
  /**
8735
8711
  * Reference accepted by consumer-facing `api.storage.*` calls.
8736
8712
  * Either:
8737
- * - a `StorageLocationType` (e.g. `'backups'`) → orchestrator resolves to the default of that type
8713
+ * - a `StorageLocationType` (e.g. `'backups'`) → the sole location of that type
8714
+ * (transitionally, the `<type>:default`-slugged row when several exist)
8738
8715
  * - a fully-qualified id (e.g. `'backups:nas-01'`) → addresses a specific instance
8739
8716
  *
8740
8717
  * The orchestrator's `resolveRef(ref)` handles both cases.
@@ -8910,6 +8887,111 @@ var DecoderSessionConfigSchema = object({
8910
8887
  */
8911
8888
  debug: boolean().optional()
8912
8889
  });
8890
+ /**
8891
+ * Per-component log CHANNELS — the gate a hot path consults, and the registry
8892
+ * an addon declares its channels in.
8893
+ *
8894
+ * ## Two axes, deliberately separated
8895
+ *
8896
+ * - **DECLARATION** — which channels exist. Only the addon knows:
8897
+ * `stream-broker` knows webrtc/ICE/RTP, `provider-reolink` knows
8898
+ * baichuan/handshake. A hand-wired central list rots at the first addition,
8899
+ * and rots silently. So a channel is declared where it is consulted, and the
8900
+ * `log-channels` capability enumerates the declarations.
8901
+ * - **VALUE** — at which level, for which scope, until when. That stays ONE
8902
+ * thing: the logging settings document on the `system` cap. Two authorities
8903
+ * over the values is the exact defect
8904
+ * `docs/design/plans/2026-08-26-logging-per-componente.md` was written to
8905
+ * remove; re-introducing it from the cure side would be grotesque.
8906
+ *
8907
+ * Nothing in this file reads a clock, an env var or a store. The registry is
8908
+ * a MIRROR: it is moved only by {@link LogChannelRegistry.apply}, called off
8909
+ * the hot path with a value somebody actually read, and by
8910
+ * {@link LogChannelRegistry.tick}, called on a timer. A store read that fails
8911
+ * never reaches here, so it can neither disarm an armed channel nor arm a
8912
+ * disarmed one (D49).
8913
+ *
8914
+ * ## The canonical call shape
8915
+ *
8916
+ * ```ts
8917
+ * if (CH_RTP.on && CH_RTP.wants(deviceId)) {
8918
+ * CH_RTP.log(logger, 'rtp subscriber added', { tags: { deviceId }, meta: { ssrc } })
8919
+ * }
8920
+ * ```
8921
+ *
8922
+ * `on` is a plain boolean FIELD — never a getter — and it is the FIRST thing
8923
+ * read. Disarmed, a call site costs one load and one branch, and the `extras`
8924
+ * object literal is never constructed because it lives inside the branch. It
8925
+ * is the same shape already proven in production at `stream-broker.ts:1650`,
8926
+ * and the same discipline `LoggingGate.allowsDestination` uses for the
8927
+ * destination floor (measured at 1.93 ns/call when off).
8928
+ *
8929
+ * ## Why a channel emits at `info`
8930
+ *
8931
+ * `loki-logging.addon.ts` pins the destination default at `info` and
8932
+ * `loki-destination.ts` drops everything below it, so a line emitted at
8933
+ * `debug` never reaches Loki and the hub's in-memory ring only holds ~35
8934
+ * minutes. A diagnostic that cannot be read an hour later is worse than no
8935
+ * diagnostic, because it looks done. {@link LogChannelGate.log} therefore
8936
+ * emits at the channel's declared level, whose schema floor is `info`.
8937
+ */
8938
+ /**
8939
+ * The level a channel writes at once armed.
8940
+ *
8941
+ * `debug` is absent ON PURPOSE and not by omission: below `info` the line does
8942
+ * not leave the process for Loki, and the whole point of arming a channel is
8943
+ * to read it later.
8944
+ */
8945
+ var LogChannelLevelSchema = _enum([
8946
+ "info",
8947
+ "warn",
8948
+ "error"
8949
+ ]);
8950
+ /**
8951
+ * What an addon declares about one channel. No value, no state — a
8952
+ * declaration is inert.
8953
+ */
8954
+ var LogChannelDescriptorSchema = object({
8955
+ /**
8956
+ * Dotted `area.thing`, unique across the workspace. `area` is conventionally
8957
+ * the addon's short name so an operator reading a channel list can tell who
8958
+ * owns it without a second lookup.
8959
+ */
8960
+ name: string().min(3).regex(/^[a-z0-9-]+(\.[a-z0-9-]+)+$/, "a channel name is dotted lower-kebab, e.g. area.thing"),
8961
+ /** One sentence: what the operator will SEE after arming it. */
8962
+ description: string().min(1),
8963
+ /** The level its lines are emitted at. Never below `info`. */
8964
+ defaultLevel: LogChannelLevelSchema,
8965
+ /**
8966
+ * Whether this channel can be narrowed to a camera.
8967
+ *
8968
+ * `true` is a PROMISE with two halves, and both must hold: the gate is
8969
+ * consulted with the numeric device id, AND every line the channel admits
8970
+ * carries `tags: { deviceId }` with that same numeric id. The second half is
8971
+ * what makes `| json | deviceId="617"` work in Loki — `loki-payload.ts`
8972
+ * keeps `deviceId` out of the stream labels for cardinality, so the tag in
8973
+ * the body is the only way to filter.
8974
+ *
8975
+ * A channel whose lines carry the device only in `meta` (or not at all) is
8976
+ * declared `false`. Declaring it `true` anyway would be a lie the UI repeats:
8977
+ * the operator narrows to one camera, sees nothing, and concludes the code
8978
+ * path was never taken.
8979
+ */
8980
+ perDevice: boolean()
8981
+ });
8982
+ /**
8983
+ * An armed window over one channel, as the document hands it to a mirror.
8984
+ *
8985
+ * A window is a DEADLINE, never a flag (ADR-0244): a channel somebody forgot
8986
+ * expires by itself, which is the one failure a boolean cannot avoid.
8987
+ */
8988
+ var LogChannelWindowSchema = object({
8989
+ channel: string().min(1),
8990
+ /** Epoch ms the window closes at. */
8991
+ armedUntilMs: number(),
8992
+ /** `null` = every camera. A non-empty list narrows to those numeric ids. */
8993
+ deviceIds: array(number().int()).readonly().nullable()
8994
+ });
8913
8995
  var MODEL_FORMATS = [
8914
8996
  "onnx",
8915
8997
  "coreml",
@@ -21591,7 +21673,7 @@ method(object({
21591
21673
  downloadId: string(),
21592
21674
  offset: number(),
21593
21675
  length: number()
21594
- }), _instanceof(Uint8Array)), method(object({ downloadId: string() }), _void(), { kind: "mutation" }), method(object({ type: StorageLocationTypeSchema.optional() }), array(StorageLocationSchema).readonly()), method(object({ type: StorageLocationTypeSchema }), StorageLocationSchema.nullable()), method(_void(), array(StorageLocationDeclarationSchema).readonly()), method(StorageLocationSchema.omit({
21676
+ }), _instanceof(Uint8Array)), method(object({ downloadId: string() }), _void(), { kind: "mutation" }), method(object({ type: StorageLocationTypeSchema.optional() }), array(StorageLocationSchema).readonly()), method(_void(), array(StorageLocationDeclarationSchema).readonly()), method(StorageLocationSchema.omit({
21595
21677
  createdAt: true,
21596
21678
  updatedAt: true
21597
21679
  }), StorageLocationSchema, {
@@ -21603,7 +21685,7 @@ method(object({
21603
21685
  }), _void(), {
21604
21686
  kind: "mutation",
21605
21687
  auth: "admin"
21606
- }), method(object({ id: string() }), object({
21688
+ }), method(_void(), array(StorageDrainProgressSchema).readonly()), method(object({ id: string() }), object({
21607
21689
  ok: boolean(),
21608
21690
  error: string().optional()
21609
21691
  }), { auth: "admin" }), method(_void(), array(ProviderListEntrySchema).readonly()), method(object({
@@ -21673,6 +21755,51 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
21673
21755
  kind: "mutation",
21674
21756
  auth: "admin"
21675
21757
  }), method(object({}), array(StorageMigrationJobSchema).readonly(), { auth: "admin" });
21758
+ /**
21759
+ * `storage-occupancy` — how many bytes an addon actually HOLDS on a storage
21760
+ * location (D388).
21761
+ *
21762
+ * ## Why this is not `storage-evictable`
21763
+ *
21764
+ * `storage-evictable.getEvictableUsage` looks like the same question and is
21765
+ * not, in two ways that both matter and both bite hardest on the locations an
21766
+ * operator most wants a figure for:
21767
+ *
21768
+ * - it reports the whole eviction DOMAIN, not the location. `recordings:default`
21769
+ * and `recordingsLow:default` deliberately share one root and evict as one
21770
+ * oldest-first pool, so both answer with the SAME combined total. As an
21771
+ * occupancy figure that double-counts the disk.
21772
+ * - it reports ZERO for a location whose eviction policy is `never` (D385) —
21773
+ * a `readonly` or `disabled` disk. Those are exactly the disks an operator
21774
+ * is retiring and staring at.
21775
+ *
21776
+ * So this is its own contract with its own quantity, and the quantity is
21777
+ * OCCUPIED: every byte the addon holds on that location, whether or not it
21778
+ * would ever be willing to delete it. A provider that can only answer
21779
+ * "evictable" must not register here — a number that silently means different
21780
+ * things per class is worse than no number.
21781
+ *
21782
+ * ## Absence is an answer
21783
+ *
21784
+ * A location nobody reports for is UNKNOWN, never zero (D315). The orchestrator
21785
+ * stamps `StorageLocation.owned` only for locations it has a report for, and
21786
+ * the field is an OBJECT rather than a bare number so that a `?? 0` on the
21787
+ * consuming side has to be written out loud instead of appearing by accident.
21788
+ *
21789
+ * `internal: true` — consumed by the orchestrator's `listLocations` stamp, never
21790
+ * a public client surface. Clients read the stamped `StorageLocation.owned`.
21791
+ */
21792
+ /** One provider's occupancy answer for one location. */
21793
+ var StorageOccupancyReportSchema = object({
21794
+ locationId: string(),
21795
+ /** Bytes this provider holds on THAT location — not its eviction domain, and
21796
+ * not net of what it is willing to delete. */
21797
+ ownedBytes: number().int().nonnegative(),
21798
+ /** When the provider last actually measured this. The orchestrator carries it
21799
+ * through so a UI can say how old the figure is instead of implying "now". */
21800
+ measuredAtMs: number().int().nonnegative()
21801
+ });
21802
+ method(object({ locationIds: array(string()).readonly() }), array(StorageOccupancyReportSchema).readonly(), { auth: "admin" });
21676
21803
  var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
21677
21804
  providerId: string().min(1),
21678
21805
  displayName: string().min(1),
@@ -23308,39 +23435,6 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, meth
23308
23435
  deviceId: number(),
23309
23436
  status: BatteryStatusSchema
23310
23437
  });
23311
- /**
23312
- * Network-link snapshot. Same shape for every provider (a Reolink wifi
23313
- * camera, a Home Assistant device with a signal-strength sensor, a Tapo
23314
- * plug): one slice under `device.runtimeState['network-link']`, one badge,
23315
- * one Home Assistant projection.
23316
- */
23317
- var NetworkLinkStatusSchema = object({
23318
- /** The link the device is on. `'unknown'` = not read yet, not "no link". */
23319
- type: _enum([
23320
- "wifi",
23321
- "ethernet",
23322
- "cellular",
23323
- "unknown"
23324
- ]),
23325
- /**
23326
- * Link quality, 0..100 inclusive, normalised by the provider from whatever
23327
- * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
23328
- * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
23329
- * one whose reading has not landed must not be drawn at 0 %. Consumers
23330
- * SKIP a null rather than coerce it.
23331
- */
23332
- signalPercent: number().min(0).max(100).nullable(),
23333
- /** Raw received signal strength in dBm, when the firmware reports one. */
23334
- rssiDbm: number().optional(),
23335
- /** Network name of a wireless link, when the firmware reports it. */
23336
- ssid: string().optional(),
23337
- /** Ms epoch of the last observation. Lets consumers reason about freshness. */
23338
- lastUpdated: number()
23339
- });
23340
- DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.Light, DeviceType.Lock, DeviceType.Siren, object({
23341
- deviceId: number(),
23342
- status: NetworkLinkStatusSchema
23343
- });
23344
23438
  object({
23345
23439
  on: boolean(),
23346
23440
  /** Ms epoch of the last transition. 0 if never observed. */
@@ -25755,6 +25849,236 @@ DeviceType.Camera, method(object({
25755
25849
  detection: NativeDetectionSchema
25756
25850
  });
25757
25851
  /**
25852
+ * `navigation` — a device-scoped capability that natively expresses the FULL
25853
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
25854
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
25855
+ *
25856
+ * Why a NEW cap rather than overloading `ptz`:
25857
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
25858
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
25859
+ * The two are different physical models: PTZ is absolute-position + presets,
25860
+ * navigation is momentary drive nudges + discrete robot ACTIONS
25861
+ * (dock / spot-clean / follow-pet / go-to-point / …).
25862
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
25863
+ * the reverse:
25864
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
25865
+ * / `getOptions`), and
25866
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
25867
+ * robot camera shows up in the existing PTZ control path without every
25868
+ * PTZ provider learning about robots. The mapping lives in the adapter,
25869
+ * not here (see the addon design note):
25870
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
25871
+ * ptz.stop() → navigation.stop()
25872
+ * ptz.goHome() → navigation.runAction('goHome')
25873
+ * ptz.getPresets() → navigation.listActions() (id→preset)
25874
+ * ptz.goToPreset(id) → navigation.runAction(id)
25875
+ *
25876
+ * ## Continuous drive
25877
+ *
25878
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
25879
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
25880
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
25881
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
25882
+ * coalesce them. The UI owns the cadence.
25883
+ *
25884
+ * ## The action dictionary
25885
+ *
25886
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
25887
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
25888
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
25889
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
25890
+ * vendor-specific list. `kind: 'action'` entries are triggered with
25891
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
25892
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
25893
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
25894
+ *
25895
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
25896
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
25897
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
25898
+ * every device handle. A future nodedreame publish adds a typed
25899
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
25900
+ * provider can then swap the raw calls for the typed methods with no change to
25901
+ * THIS contract.
25902
+ */
25903
+ /**
25904
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
25905
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
25906
+ * halts it.
25907
+ *
25908
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
25909
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
25910
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
25911
+ * vector by it (drivers without proportional drive ignore it).
25912
+ *
25913
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
25914
+ * axis alone; an all-undefined nudge is a no-op.
25915
+ */
25916
+ var NavigationMoveCommandSchema = object({
25917
+ pan: number().min(-1).max(1).optional(),
25918
+ tilt: number().min(-1).max(1).optional(),
25919
+ speed: number().min(0).max(1).optional()
25920
+ });
25921
+ /**
25922
+ * The enumerated discrete actions a navigation-capable robot can perform via
25923
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
25924
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
25925
+ * `playSound` (see the `sound` dictionary entries).
25926
+ */
25927
+ var NavigationActionIdSchema = _enum([
25928
+ "goHome",
25929
+ "locate",
25930
+ "spotClean",
25931
+ "findPet",
25932
+ "personFollow",
25933
+ "stop",
25934
+ "startClean",
25935
+ "pauseClean",
25936
+ "dockWash",
25937
+ "autoEmpty",
25938
+ "flashOn",
25939
+ "flashOff"
25940
+ ]);
25941
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
25942
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
25943
+ /**
25944
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
25945
+ * native panel and the PTZ mimic render as a button.
25946
+ *
25947
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
25948
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
25949
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
25950
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
25951
+ * - `label` — operator-facing English label.
25952
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
25953
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
25954
+ * PTZ render ONLY enabled entries. Data-driven: the provider
25955
+ * flips it from config, never by editing code.
25956
+ */
25957
+ var NavigationActionEntrySchema = object({
25958
+ id: string(),
25959
+ kind: NavigationEntryKindSchema,
25960
+ label: string(),
25961
+ icon: string(),
25962
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
25963
+ soundId: number().int().optional(),
25964
+ /** Per-device feature flag — render this entry only when true. */
25965
+ enabled: boolean()
25966
+ });
25967
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
25968
+ var NavigationPointSchema = object({
25969
+ x: number(),
25970
+ y: number()
25971
+ });
25972
+ /**
25973
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
25974
+ * The cap reports which are enabled so the UI / PTZ render only the controls
25975
+ * that are turned on for THIS device. Data-driven: the provider derives these
25976
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
25977
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
25978
+ * that are not dictionary entries.
25979
+ *
25980
+ * - `move` / `stop` — the momentary drive joystick.
25981
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
25982
+ * map-coordinate plumbing is wired.
25983
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
25984
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
25985
+ * - `light` — the on/off fill-light toggle (works anytime).
25986
+ * - `lightMode` — the auto/manual selector + manual level slider (a
25987
+ * camera-service control; needs an active stream).
25988
+ */
25989
+ var NavigationFeaturesSchema = object({
25990
+ move: boolean(),
25991
+ stop: boolean(),
25992
+ goToPoint: boolean(),
25993
+ runAction: boolean(),
25994
+ playSound: boolean(),
25995
+ light: boolean(),
25996
+ lightMode: boolean()
25997
+ });
25998
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
25999
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
26000
+ /**
26001
+ * Live navigation state so the UI can reflect what the robot is doing:
26002
+ * - `mode` — coarse activity (idle / cleaning / following / …).
26003
+ * - `following` — person/pet follow is currently armed.
26004
+ * - `flash` — the on-camera fill light is on.
26005
+ * - `lightMode` — auto vs manual fill-light mode.
26006
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
26007
+ * `lightMode === 'manual'`.
26008
+ */
26009
+ var NavigationStatusSchema = object({
26010
+ mode: _enum([
26011
+ "idle",
26012
+ "cleaning",
26013
+ "spot",
26014
+ "following",
26015
+ "goto",
26016
+ "returning",
26017
+ "paused",
26018
+ "unknown"
26019
+ ]),
26020
+ following: boolean(),
26021
+ flash: boolean(),
26022
+ lightMode: NavigationLightModeSchema,
26023
+ lightLevel: number().min(40).max(100),
26024
+ /** Ms epoch when the slice was last updated. */
26025
+ lastChangedAt: number()
26026
+ });
26027
+ NavigationStatusSchema.extend({ lastFetchedAt: number() });
26028
+ DeviceType.Camera, method(NavigationMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(NavigationPointSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(NavigationActionEntrySchema)), method(object({
26029
+ deviceId: number(),
26030
+ actionId: NavigationActionIdSchema
26031
+ }), _void(), { kind: "mutation" }), method(object({
26032
+ deviceId: number(),
26033
+ soundId: number().int()
26034
+ }), _void(), { kind: "mutation" }), method(object({
26035
+ deviceId: number(),
26036
+ on: boolean()
26037
+ }), _void(), { kind: "mutation" }), method(object({
26038
+ deviceId: number(),
26039
+ mode: NavigationLightModeSchema,
26040
+ level: number().min(40).max(100).optional()
26041
+ }), _void(), { kind: "mutation" }), method(object({
26042
+ deviceId: number(),
26043
+ level: number().min(40).max(100)
26044
+ }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), NavigationFeaturesSchema), object({
26045
+ deviceId: number(),
26046
+ status: NavigationStatusSchema
26047
+ });
26048
+ /**
26049
+ * Network-link snapshot. Same shape for every provider (a Reolink wifi
26050
+ * camera, a Home Assistant device with a signal-strength sensor, a Tapo
26051
+ * plug): one slice under `device.runtimeState['network-link']`, one badge,
26052
+ * one Home Assistant projection.
26053
+ */
26054
+ var NetworkLinkStatusSchema = object({
26055
+ /** The link the device is on. `'unknown'` = not read yet, not "no link". */
26056
+ type: _enum([
26057
+ "wifi",
26058
+ "ethernet",
26059
+ "cellular",
26060
+ "unknown"
26061
+ ]),
26062
+ /**
26063
+ * Link quality, 0..100 inclusive, normalised by the provider from whatever
26064
+ * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
26065
+ * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
26066
+ * one whose reading has not landed must not be drawn at 0 %. Consumers
26067
+ * SKIP a null rather than coerce it.
26068
+ */
26069
+ signalPercent: number().min(0).max(100).nullable(),
26070
+ /** Raw received signal strength in dBm, when the firmware reports one. */
26071
+ rssiDbm: number().optional(),
26072
+ /** Network name of a wireless link, when the firmware reports it. */
26073
+ ssid: string().optional(),
26074
+ /** Ms epoch of the last observation. Lets consumers reason about freshness. */
26075
+ lastUpdated: number()
26076
+ });
26077
+ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.Light, DeviceType.Lock, DeviceType.Siren, object({
26078
+ deviceId: number(),
26079
+ status: NetworkLinkStatusSchema
26080
+ });
26081
+ /**
25758
26082
  * network-quality — system-scoped singleton capability tracking RTT,
25759
26083
  * jitter, and observed/peak bandwidth per device + per client.
25760
26084
  *
@@ -26996,203 +27320,6 @@ DeviceType.Camera, method(object({ deviceId: number() }), PtzAutotrackStatusSche
26996
27320
  deviceId: number(),
26997
27321
  status: PtzAutotrackStatusSchema
26998
27322
  });
26999
- /**
27000
- * `navigation` — a device-scoped capability that natively expresses the FULL
27001
- * navigation / action surface of a robot that DRIVES ITSELF and carries an
27002
- * on-board camera (the Dreame robot-vacuum camera is the first provider).
27003
- *
27004
- * Why a NEW cap rather than overloading `ptz`:
27005
- * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
27006
- * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
27007
- * The two are different physical models: PTZ is absolute-position + presets,
27008
- * navigation is momentary drive nudges + discrete robot ACTIONS
27009
- * (dock / spot-clean / follow-pet / go-to-point / …).
27010
- * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
27011
- * the reverse:
27012
- * 1. a native CamStack navigation panel (data-driven from `listActions`
27013
- * / `getOptions`), and
27014
- * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
27015
- * robot camera shows up in the existing PTZ control path without every
27016
- * PTZ provider learning about robots. The mapping lives in the adapter,
27017
- * not here (see the addon design note):
27018
- * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
27019
- * ptz.stop() → navigation.stop()
27020
- * ptz.goHome() → navigation.runAction('goHome')
27021
- * ptz.getPresets() → navigation.listActions() (id→preset)
27022
- * ptz.goToPreset(id) → navigation.runAction(id)
27023
- *
27024
- * ## Continuous drive
27025
- *
27026
- * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
27027
- * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
27028
- * one `stop()` on release — exactly like the robot app's remote-drive joystick.
27029
- * The provider forwards EACH `move` to one drive write; it must NOT debounce or
27030
- * coalesce them. The UI owns the cadence.
27031
- *
27032
- * ## The action dictionary
27033
- *
27034
- * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
27035
- * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
27036
- * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
27037
- * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
27038
- * vendor-specific list. `kind: 'action'` entries are triggered with
27039
- * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
27040
- * (the entry carries the `soundId` to pass). The general primitives — `move`,
27041
- * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
27042
- *
27043
- * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
27044
- * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
27045
- * that the currently-published `@apocaliss92/nodedreame` already exposes on
27046
- * every device handle. A future nodedreame publish adds a typed
27047
- * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
27048
- * provider can then swap the raw calls for the typed methods with no change to
27049
- * THIS contract.
27050
- */
27051
- /**
27052
- * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
27053
- * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
27054
- * halts it.
27055
- *
27056
- * - `pan` — turn: negative = left, positive = right, 0 = straight.
27057
- * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
27058
- * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
27059
- * vector by it (drivers without proportional drive ignore it).
27060
- *
27061
- * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
27062
- * axis alone; an all-undefined nudge is a no-op.
27063
- */
27064
- var NavigationMoveCommandSchema = object({
27065
- pan: number().min(-1).max(1).optional(),
27066
- tilt: number().min(-1).max(1).optional(),
27067
- speed: number().min(0).max(1).optional()
27068
- });
27069
- /**
27070
- * The enumerated discrete actions a navigation-capable robot can perform via
27071
- * `runAction`. This is the CLOSED vocabulary; a given device advertises the
27072
- * subset it supports through `listActions`. Sounds are NOT here — they go through
27073
- * `playSound` (see the `sound` dictionary entries).
27074
- */
27075
- var NavigationActionIdSchema = _enum([
27076
- "goHome",
27077
- "locate",
27078
- "spotClean",
27079
- "findPet",
27080
- "personFollow",
27081
- "stop",
27082
- "startClean",
27083
- "pauseClean",
27084
- "dockWash",
27085
- "autoEmpty",
27086
- "flashOn",
27087
- "flashOff"
27088
- ]);
27089
- /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
27090
- var NavigationEntryKindSchema = _enum(["action", "sound"]);
27091
- /**
27092
- * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
27093
- * native panel and the PTZ mimic render as a button.
27094
- *
27095
- * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
27096
- * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
27097
- * (`sound:meow`) whose `soundId` is passed to `playSound`.
27098
- * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
27099
- * - `label` — operator-facing English label.
27100
- * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
27101
- * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
27102
- * PTZ render ONLY enabled entries. Data-driven: the provider
27103
- * flips it from config, never by editing code.
27104
- */
27105
- var NavigationActionEntrySchema = object({
27106
- id: string(),
27107
- kind: NavigationEntryKindSchema,
27108
- label: string(),
27109
- icon: string(),
27110
- /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
27111
- soundId: number().int().optional(),
27112
- /** Per-device feature flag — render this entry only when true. */
27113
- enabled: boolean()
27114
- });
27115
- /** Coordinates for `goToPoint` — a point on the robot's live map. */
27116
- var NavigationPointSchema = object({
27117
- x: number(),
27118
- y: number()
27119
- });
27120
- /**
27121
- * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
27122
- * The cap reports which are enabled so the UI / PTZ render only the controls
27123
- * that are turned on for THIS device. Data-driven: the provider derives these
27124
- * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
27125
- * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
27126
- * that are not dictionary entries.
27127
- *
27128
- * - `move` / `stop` — the momentary drive joystick.
27129
- * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
27130
- * map-coordinate plumbing is wired.
27131
- * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
27132
- * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
27133
- * - `light` — the on/off fill-light toggle (works anytime).
27134
- * - `lightMode` — the auto/manual selector + manual level slider (a
27135
- * camera-service control; needs an active stream).
27136
- */
27137
- var NavigationFeaturesSchema = object({
27138
- move: boolean(),
27139
- stop: boolean(),
27140
- goToPoint: boolean(),
27141
- runAction: boolean(),
27142
- playSound: boolean(),
27143
- light: boolean(),
27144
- lightMode: boolean()
27145
- });
27146
- /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
27147
- var NavigationLightModeSchema = _enum(["auto", "manual"]);
27148
- /**
27149
- * Live navigation state so the UI can reflect what the robot is doing:
27150
- * - `mode` — coarse activity (idle / cleaning / following / …).
27151
- * - `following` — person/pet follow is currently armed.
27152
- * - `flash` — the on-camera fill light is on.
27153
- * - `lightMode` — auto vs manual fill-light mode.
27154
- * - `lightLevel` — manual fill-light level (40..100); meaningful when
27155
- * `lightMode === 'manual'`.
27156
- */
27157
- var NavigationStatusSchema = object({
27158
- mode: _enum([
27159
- "idle",
27160
- "cleaning",
27161
- "spot",
27162
- "following",
27163
- "goto",
27164
- "returning",
27165
- "paused",
27166
- "unknown"
27167
- ]),
27168
- following: boolean(),
27169
- flash: boolean(),
27170
- lightMode: NavigationLightModeSchema,
27171
- lightLevel: number().min(40).max(100),
27172
- /** Ms epoch when the slice was last updated. */
27173
- lastChangedAt: number()
27174
- });
27175
- NavigationStatusSchema.extend({ lastFetchedAt: number() });
27176
- DeviceType.Camera, method(NavigationMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(NavigationPointSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(NavigationActionEntrySchema)), method(object({
27177
- deviceId: number(),
27178
- actionId: NavigationActionIdSchema
27179
- }), _void(), { kind: "mutation" }), method(object({
27180
- deviceId: number(),
27181
- soundId: number().int()
27182
- }), _void(), { kind: "mutation" }), method(object({
27183
- deviceId: number(),
27184
- on: boolean()
27185
- }), _void(), { kind: "mutation" }), method(object({
27186
- deviceId: number(),
27187
- mode: NavigationLightModeSchema,
27188
- level: number().min(40).max(100).optional()
27189
- }), _void(), { kind: "mutation" }), method(object({
27190
- deviceId: number(),
27191
- level: number().min(40).max(100)
27192
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), NavigationFeaturesSchema), object({
27193
- deviceId: number(),
27194
- status: NavigationStatusSchema
27195
- });
27196
27323
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
27197
27324
  kind: "mutation",
27198
27325
  auth: "admin"
@@ -34501,13 +34628,13 @@ Object.freeze({
34501
34628
  addonId: null,
34502
34629
  access: "view"
34503
34630
  },
34504
- "storage.getDefaultLocation": {
34631
+ "storage.list": {
34505
34632
  capName: "storage",
34506
34633
  capScope: "system",
34507
34634
  addonId: null,
34508
34635
  access: "view"
34509
34636
  },
34510
- "storage.list": {
34637
+ "storage.listDrainProgress": {
34511
34638
  capName: "storage",
34512
34639
  capScope: "system",
34513
34640
  addonId: null,
@@ -34657,6 +34784,12 @@ Object.freeze({
34657
34784
  addonId: null,
34658
34785
  access: "view"
34659
34786
  },
34787
+ "storageOccupancy.getOccupancy": {
34788
+ capName: "storage-occupancy",
34789
+ capScope: "system",
34790
+ addonId: null,
34791
+ access: "view"
34792
+ },
34660
34793
  "storageProvider.abortUpload": {
34661
34794
  capName: "storage-provider",
34662
34795
  capScope: "system",