@camstack/addon-smtp-nodemailer 1.2.77 → 1.2.79

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.
@@ -36,7 +36,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
36
36
  }) : target, mod));
37
37
  var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
38
38
  //#endregion
39
- //#region ../types/dist/event-category-zAv7pMUz.mjs
39
+ //#region ../types/dist/event-category-CnLqLOKs.mjs
40
40
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
41
41
  EventCategory["SystemBoot"] = "system.boot";
42
42
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -231,6 +231,19 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
231
231
  EventCategory["ProcessCrashed"] = "process.crashed";
232
232
  EventCategory["ProcessRestartScheduled"] = "process.restart_scheduled";
233
233
  EventCategory["ProcessRestarted"] = "process.restarted";
234
+ /**
235
+ * The SET of storage locations changed — one was created, edited, enabled,
236
+ * disabled or deleted through `storage.upsertLocation` / `deleteLocation`.
237
+ *
238
+ * Telemetry, not a transaction (D8/D11): every consumer that re-resolves on
239
+ * it must also converge on its own periodic path, because a dropped event
240
+ * must not leave a node writing to yesterday's disk set forever. It exists
241
+ * because there was NO signal at all — an operator who added a second
242
+ * recordings disk in the admin UI got nothing, and the recorder kept its
243
+ * resolved locations until something else happened to re-resolve them
244
+ * (D387). Payload `StorageLocationsChangedPayload`.
245
+ */
246
+ EventCategory["StorageLocationsChanged"] = "storage.locations-changed";
234
247
  EventCategory["RecordingStarted"] = "recording.started";
235
248
  EventCategory["RecordingStopped"] = "recording.stopped";
236
249
  EventCategory["RecordingError"] = "recording.error";
@@ -7636,111 +7649,6 @@ var CameraSwitchGroupSchema = object({
7636
7649
  fetchedAt: number()
7637
7650
  });
7638
7651
  /**
7639
- * Per-component log CHANNELS — the gate a hot path consults, and the registry
7640
- * an addon declares its channels in.
7641
- *
7642
- * ## Two axes, deliberately separated
7643
- *
7644
- * - **DECLARATION** — which channels exist. Only the addon knows:
7645
- * `stream-broker` knows webrtc/ICE/RTP, `provider-reolink` knows
7646
- * baichuan/handshake. A hand-wired central list rots at the first addition,
7647
- * and rots silently. So a channel is declared where it is consulted, and the
7648
- * `log-channels` capability enumerates the declarations.
7649
- * - **VALUE** — at which level, for which scope, until when. That stays ONE
7650
- * thing: the logging settings document on the `system` cap. Two authorities
7651
- * over the values is the exact defect
7652
- * `docs/design/plans/2026-08-26-logging-per-componente.md` was written to
7653
- * remove; re-introducing it from the cure side would be grotesque.
7654
- *
7655
- * Nothing in this file reads a clock, an env var or a store. The registry is
7656
- * a MIRROR: it is moved only by {@link LogChannelRegistry.apply}, called off
7657
- * the hot path with a value somebody actually read, and by
7658
- * {@link LogChannelRegistry.tick}, called on a timer. A store read that fails
7659
- * never reaches here, so it can neither disarm an armed channel nor arm a
7660
- * disarmed one (D49).
7661
- *
7662
- * ## The canonical call shape
7663
- *
7664
- * ```ts
7665
- * if (CH_RTP.on && CH_RTP.wants(deviceId)) {
7666
- * CH_RTP.log(logger, 'rtp subscriber added', { tags: { deviceId }, meta: { ssrc } })
7667
- * }
7668
- * ```
7669
- *
7670
- * `on` is a plain boolean FIELD — never a getter — and it is the FIRST thing
7671
- * read. Disarmed, a call site costs one load and one branch, and the `extras`
7672
- * object literal is never constructed because it lives inside the branch. It
7673
- * is the same shape already proven in production at `stream-broker.ts:1650`,
7674
- * and the same discipline `LoggingGate.allowsDestination` uses for the
7675
- * destination floor (measured at 1.93 ns/call when off).
7676
- *
7677
- * ## Why a channel emits at `info`
7678
- *
7679
- * `loki-logging.addon.ts` pins the destination default at `info` and
7680
- * `loki-destination.ts` drops everything below it, so a line emitted at
7681
- * `debug` never reaches Loki and the hub's in-memory ring only holds ~35
7682
- * minutes. A diagnostic that cannot be read an hour later is worse than no
7683
- * diagnostic, because it looks done. {@link LogChannelGate.log} therefore
7684
- * emits at the channel's declared level, whose schema floor is `info`.
7685
- */
7686
- /**
7687
- * The level a channel writes at once armed.
7688
- *
7689
- * `debug` is absent ON PURPOSE and not by omission: below `info` the line does
7690
- * not leave the process for Loki, and the whole point of arming a channel is
7691
- * to read it later.
7692
- */
7693
- var LogChannelLevelSchema = _enum([
7694
- "info",
7695
- "warn",
7696
- "error"
7697
- ]);
7698
- /**
7699
- * What an addon declares about one channel. No value, no state — a
7700
- * declaration is inert.
7701
- */
7702
- var LogChannelDescriptorSchema = object({
7703
- /**
7704
- * Dotted `area.thing`, unique across the workspace. `area` is conventionally
7705
- * the addon's short name so an operator reading a channel list can tell who
7706
- * owns it without a second lookup.
7707
- */
7708
- name: string().min(3).regex(/^[a-z0-9-]+(\.[a-z0-9-]+)+$/, "a channel name is dotted lower-kebab, e.g. area.thing"),
7709
- /** One sentence: what the operator will SEE after arming it. */
7710
- description: string().min(1),
7711
- /** The level its lines are emitted at. Never below `info`. */
7712
- defaultLevel: LogChannelLevelSchema,
7713
- /**
7714
- * Whether this channel can be narrowed to a camera.
7715
- *
7716
- * `true` is a PROMISE with two halves, and both must hold: the gate is
7717
- * consulted with the numeric device id, AND every line the channel admits
7718
- * carries `tags: { deviceId }` with that same numeric id. The second half is
7719
- * what makes `| json | deviceId="617"` work in Loki — `loki-payload.ts`
7720
- * keeps `deviceId` out of the stream labels for cardinality, so the tag in
7721
- * the body is the only way to filter.
7722
- *
7723
- * A channel whose lines carry the device only in `meta` (or not at all) is
7724
- * declared `false`. Declaring it `true` anyway would be a lie the UI repeats:
7725
- * the operator narrows to one camera, sees nothing, and concludes the code
7726
- * path was never taken.
7727
- */
7728
- perDevice: boolean()
7729
- });
7730
- /**
7731
- * An armed window over one channel, as the document hands it to a mirror.
7732
- *
7733
- * A window is a DEADLINE, never a flag (ADR-0244): a channel somebody forgot
7734
- * expires by itself, which is the one failure a boolean cannot avoid.
7735
- */
7736
- var LogChannelWindowSchema = object({
7737
- channel: string().min(1),
7738
- /** Epoch ms the window closes at. */
7739
- armedUntilMs: number(),
7740
- /** `null` = every camera. A non-empty list narrows to those numeric ids. */
7741
- deviceIds: array(number().int()).readonly().nullable()
7742
- });
7743
- /**
7744
7652
  * Ops-log — the durable, append-only operations audit shared by the
7745
7653
  * recordings and events management surfaces.
7746
7654
  *
@@ -8662,6 +8570,21 @@ var StorageCleanupJobSchema = object({
8662
8570
  });
8663
8571
  var StorageCleanupStatusInputSchema = object({ jobId: string().optional() });
8664
8572
  /**
8573
+ * The one typed state of a storage location. Authoritative Zod schema — the TS
8574
+ * alias below is `z.infer<>` of it, never a second spelling.
8575
+ */
8576
+ var StorageLocationModeSchema = _enum([
8577
+ "active",
8578
+ "readonly",
8579
+ "drain",
8580
+ "disabled"
8581
+ ]);
8582
+ _enum([
8583
+ "normal",
8584
+ "never",
8585
+ "drain"
8586
+ ]);
8587
+ /**
8665
8588
  * `StorageLocationType` — an addon-declared id that identifies the *kind* of
8666
8589
  * storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
8667
8590
  * so the persisted record schema and the consumer-facing cap can both consume it
@@ -8686,8 +8609,11 @@ var StorageLocationTypeSchema = string().regex(/^[a-z][a-zA-Z0-9-]*$/);
8686
8609
  * `STORAGE_LOCATION_CARDINALITY` map has been removed.
8687
8610
  *
8688
8611
  * `id` is a stable namespaced string of the form `<type>:<slug>`.
8689
- * The default location for a type uses `id === <type>:default` by
8690
- * convention (the bare type ref like `'backups'` resolves to it).
8612
+ * The seed names its first instance `<type>:default` — a NAME, not a flag.
8613
+ * There is no default location any more (D383): `enabled` is the whole write
8614
+ * model, and a bare type ref resolves to the sole location of the type, or —
8615
+ * transitionally, only while legacy NULL-stamped rows exist — to the row whose
8616
+ * slug is `default`.
8691
8617
  *
8692
8618
  * `isSystem` is a legacy persisted flag. Seed still creates the initial
8693
8619
  * `<type>:default` locations; the flag is no longer a lock, a badge, or a
@@ -8708,23 +8634,37 @@ var StorageLocationSchema = object({
8708
8634
  * flag at upsert time, not here (the schema is provider-agnostic).
8709
8635
  */
8710
8636
  nodeId: string().optional(),
8711
- isDefault: boolean().default(false),
8712
8637
  isSystem: boolean().default(false),
8713
8638
  /**
8714
- * Operator opt-in: whether consumers that BALANCE across several locations
8715
- * of a type may write here. Recordings reads it today; event media and
8716
- * backups are the next consumers, which is why the flag lives on the
8717
- * location rather than in any one addon's store nothing has to be
8718
- * extended to add the next consumer.
8639
+ * THE write switch, and the only one (D383). `enabled: true` means every
8640
+ * consumer that chooses a write target for this type may write here, and all
8641
+ * enabled locations of a type are used TOGETHER; `false` means read-only
8642
+ * still read, still played back, still age-swept, still drained, never
8643
+ * written.
8719
8644
  *
8720
- * OPTIONAL, and ABSENT MEANS ACTIVE. Every location persisted before the
8721
- * flag existed reads back with no flag and keeps working exactly as before;
8722
- * that is the whole compat story, and it is why no migration ships with it.
8723
- * A newly CREATED sibling is stamped `false` by the orchestrator (creating a
8724
- * disk must not silently start writing to it); the default of a type is
8725
- * always stamped `true`.
8645
+ * OPTIONAL only for the wire: an upsert that omits it means "leave what is
8646
+ * stored" on an update and "born inert unless it is the first location of its
8647
+ * type" on a create. On a PERSISTED row absence is legacy and it means
8648
+ * enabled {@link isLocationEnabled} is the one place that says so, and the
8649
+ * orchestrator stamps every flagless row `true` once at hydrate so absence
8650
+ * stops existing rather than being re-derived on every read.
8726
8651
  */
8727
8652
  enabled: boolean().optional(),
8653
+ /**
8654
+ * THE state of this location (D385), and the only authority on what may be
8655
+ * written, read or evicted here. Interpreted in exactly one place —
8656
+ * `storage-location-mode.ts` — which also folds the legacy
8657
+ * `enabled` / `config.readOnly` pair into a mode so an old row is never
8658
+ * ambiguous.
8659
+ *
8660
+ * OPTIONAL only for the wire and for rows written before D385: absence is
8661
+ * resolved by `resolveLocationMode`, and the orchestrator stamps every
8662
+ * unstamped row ONCE at hydrate so absence stops existing rather than being
8663
+ * re-derived on every read. `enabled` survives one release as a DERIVED
8664
+ * mirror (`mode === 'active'`); `withLocationMode` is the only writer of
8665
+ * either, so the two cannot disagree.
8666
+ */
8667
+ mode: StorageLocationModeSchema.optional(),
8728
8668
  /** COMPUTED at read time by the orchestrator (statfs of the backing volume
8729
8669
  * for node-local locations it can reach) — never persisted, absent when the
8730
8670
  * volume is remote/unreachable. The single capacity truth every UI reads. */
@@ -8732,13 +8672,50 @@ var StorageLocationSchema = object({
8732
8672
  totalBytes: number(),
8733
8673
  availableBytes: number()
8734
8674
  }).nullable().optional(),
8675
+ /**
8676
+ * How much of that volume CamStack ITSELF holds on this location (D388) —
8677
+ * COMPUTED at read time from the `storage-occupancy` providers' own figures,
8678
+ * never persisted, never a filesystem walk.
8679
+ *
8680
+ * **ABSENT MEANS UNKNOWN, never zero.** No provider has reported for this
8681
+ * location yet — nobody stores here, the owning addon is down, or the first
8682
+ * refresh has not completed. A UI must omit the segment rather than draw it
8683
+ * at zero, which would claim we occupy nothing (D315). It is an OBJECT and
8684
+ * not a bare number precisely so that a `?? 0` on the consuming side has to
8685
+ * be spelled out loud instead of appearing by accident.
8686
+ *
8687
+ * `measuredAtMs` is the OLDEST contributing measurement, so it is honest
8688
+ * about the whole figure rather than about its freshest part.
8689
+ */
8690
+ owned: object({
8691
+ bytes: number().int().nonnegative(),
8692
+ measuredAtMs: number().int().nonnegative()
8693
+ }).optional(),
8735
8694
  createdAt: number(),
8736
8695
  updatedAt: number()
8737
8696
  });
8697
+ object({ isDefault: boolean().optional() });
8698
+ /**
8699
+ * How far a `drain` has got (D386) — the read a UI renders, and nothing more.
8700
+ *
8701
+ * `estimatedEmptyAtMs` is derived from the growth the ratchet has actually
8702
+ * OBSERVED and is `null` when it has observed none. Never a fabricated date: a
8703
+ * drain with no observed growth has no honest ETA, and inventing one is how an
8704
+ * operator learns not to believe the screen.
8705
+ */
8706
+ var StorageDrainProgressSchema = object({
8707
+ locationId: string(),
8708
+ startedAtMs: number(),
8709
+ startBytes: number(),
8710
+ bytesRemaining: number(),
8711
+ drained: boolean(),
8712
+ estimatedEmptyAtMs: number().nullable()
8713
+ });
8738
8714
  /**
8739
8715
  * Reference accepted by consumer-facing `api.storage.*` calls.
8740
8716
  * Either:
8741
- * - a `StorageLocationType` (e.g. `'backups'`) → orchestrator resolves to the default of that type
8717
+ * - a `StorageLocationType` (e.g. `'backups'`) → the sole location of that type
8718
+ * (transitionally, the `<type>:default`-slugged row when several exist)
8742
8719
  * - a fully-qualified id (e.g. `'backups:nas-01'`) → addresses a specific instance
8743
8720
  *
8744
8721
  * The orchestrator's `resolveRef(ref)` handles both cases.
@@ -8914,6 +8891,111 @@ var DecoderSessionConfigSchema = object({
8914
8891
  */
8915
8892
  debug: boolean().optional()
8916
8893
  });
8894
+ /**
8895
+ * Per-component log CHANNELS — the gate a hot path consults, and the registry
8896
+ * an addon declares its channels in.
8897
+ *
8898
+ * ## Two axes, deliberately separated
8899
+ *
8900
+ * - **DECLARATION** — which channels exist. Only the addon knows:
8901
+ * `stream-broker` knows webrtc/ICE/RTP, `provider-reolink` knows
8902
+ * baichuan/handshake. A hand-wired central list rots at the first addition,
8903
+ * and rots silently. So a channel is declared where it is consulted, and the
8904
+ * `log-channels` capability enumerates the declarations.
8905
+ * - **VALUE** — at which level, for which scope, until when. That stays ONE
8906
+ * thing: the logging settings document on the `system` cap. Two authorities
8907
+ * over the values is the exact defect
8908
+ * `docs/design/plans/2026-08-26-logging-per-componente.md` was written to
8909
+ * remove; re-introducing it from the cure side would be grotesque.
8910
+ *
8911
+ * Nothing in this file reads a clock, an env var or a store. The registry is
8912
+ * a MIRROR: it is moved only by {@link LogChannelRegistry.apply}, called off
8913
+ * the hot path with a value somebody actually read, and by
8914
+ * {@link LogChannelRegistry.tick}, called on a timer. A store read that fails
8915
+ * never reaches here, so it can neither disarm an armed channel nor arm a
8916
+ * disarmed one (D49).
8917
+ *
8918
+ * ## The canonical call shape
8919
+ *
8920
+ * ```ts
8921
+ * if (CH_RTP.on && CH_RTP.wants(deviceId)) {
8922
+ * CH_RTP.log(logger, 'rtp subscriber added', { tags: { deviceId }, meta: { ssrc } })
8923
+ * }
8924
+ * ```
8925
+ *
8926
+ * `on` is a plain boolean FIELD — never a getter — and it is the FIRST thing
8927
+ * read. Disarmed, a call site costs one load and one branch, and the `extras`
8928
+ * object literal is never constructed because it lives inside the branch. It
8929
+ * is the same shape already proven in production at `stream-broker.ts:1650`,
8930
+ * and the same discipline `LoggingGate.allowsDestination` uses for the
8931
+ * destination floor (measured at 1.93 ns/call when off).
8932
+ *
8933
+ * ## Why a channel emits at `info`
8934
+ *
8935
+ * `loki-logging.addon.ts` pins the destination default at `info` and
8936
+ * `loki-destination.ts` drops everything below it, so a line emitted at
8937
+ * `debug` never reaches Loki and the hub's in-memory ring only holds ~35
8938
+ * minutes. A diagnostic that cannot be read an hour later is worse than no
8939
+ * diagnostic, because it looks done. {@link LogChannelGate.log} therefore
8940
+ * emits at the channel's declared level, whose schema floor is `info`.
8941
+ */
8942
+ /**
8943
+ * The level a channel writes at once armed.
8944
+ *
8945
+ * `debug` is absent ON PURPOSE and not by omission: below `info` the line does
8946
+ * not leave the process for Loki, and the whole point of arming a channel is
8947
+ * to read it later.
8948
+ */
8949
+ var LogChannelLevelSchema = _enum([
8950
+ "info",
8951
+ "warn",
8952
+ "error"
8953
+ ]);
8954
+ /**
8955
+ * What an addon declares about one channel. No value, no state — a
8956
+ * declaration is inert.
8957
+ */
8958
+ var LogChannelDescriptorSchema = object({
8959
+ /**
8960
+ * Dotted `area.thing`, unique across the workspace. `area` is conventionally
8961
+ * the addon's short name so an operator reading a channel list can tell who
8962
+ * owns it without a second lookup.
8963
+ */
8964
+ name: string().min(3).regex(/^[a-z0-9-]+(\.[a-z0-9-]+)+$/, "a channel name is dotted lower-kebab, e.g. area.thing"),
8965
+ /** One sentence: what the operator will SEE after arming it. */
8966
+ description: string().min(1),
8967
+ /** The level its lines are emitted at. Never below `info`. */
8968
+ defaultLevel: LogChannelLevelSchema,
8969
+ /**
8970
+ * Whether this channel can be narrowed to a camera.
8971
+ *
8972
+ * `true` is a PROMISE with two halves, and both must hold: the gate is
8973
+ * consulted with the numeric device id, AND every line the channel admits
8974
+ * carries `tags: { deviceId }` with that same numeric id. The second half is
8975
+ * what makes `| json | deviceId="617"` work in Loki — `loki-payload.ts`
8976
+ * keeps `deviceId` out of the stream labels for cardinality, so the tag in
8977
+ * the body is the only way to filter.
8978
+ *
8979
+ * A channel whose lines carry the device only in `meta` (or not at all) is
8980
+ * declared `false`. Declaring it `true` anyway would be a lie the UI repeats:
8981
+ * the operator narrows to one camera, sees nothing, and concludes the code
8982
+ * path was never taken.
8983
+ */
8984
+ perDevice: boolean()
8985
+ });
8986
+ /**
8987
+ * An armed window over one channel, as the document hands it to a mirror.
8988
+ *
8989
+ * A window is a DEADLINE, never a flag (ADR-0244): a channel somebody forgot
8990
+ * expires by itself, which is the one failure a boolean cannot avoid.
8991
+ */
8992
+ var LogChannelWindowSchema = object({
8993
+ channel: string().min(1),
8994
+ /** Epoch ms the window closes at. */
8995
+ armedUntilMs: number(),
8996
+ /** `null` = every camera. A non-empty list narrows to those numeric ids. */
8997
+ deviceIds: array(number().int()).readonly().nullable()
8998
+ });
8917
8999
  var MODEL_FORMATS = [
8918
9000
  "onnx",
8919
9001
  "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. */
@@ -25694,6 +25788,236 @@ DeviceType.Camera, method(object({
25694
25788
  detection: NativeDetectionSchema
25695
25789
  });
25696
25790
  /**
25791
+ * `navigation` — a device-scoped capability that natively expresses the FULL
25792
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
25793
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
25794
+ *
25795
+ * Why a NEW cap rather than overloading `ptz`:
25796
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
25797
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
25798
+ * The two are different physical models: PTZ is absolute-position + presets,
25799
+ * navigation is momentary drive nudges + discrete robot ACTIONS
25800
+ * (dock / spot-clean / follow-pet / go-to-point / …).
25801
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
25802
+ * the reverse:
25803
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
25804
+ * / `getOptions`), and
25805
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
25806
+ * robot camera shows up in the existing PTZ control path without every
25807
+ * PTZ provider learning about robots. The mapping lives in the adapter,
25808
+ * not here (see the addon design note):
25809
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
25810
+ * ptz.stop() → navigation.stop()
25811
+ * ptz.goHome() → navigation.runAction('goHome')
25812
+ * ptz.getPresets() → navigation.listActions() (id→preset)
25813
+ * ptz.goToPreset(id) → navigation.runAction(id)
25814
+ *
25815
+ * ## Continuous drive
25816
+ *
25817
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
25818
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
25819
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
25820
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
25821
+ * coalesce them. The UI owns the cadence.
25822
+ *
25823
+ * ## The action dictionary
25824
+ *
25825
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
25826
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
25827
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
25828
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
25829
+ * vendor-specific list. `kind: 'action'` entries are triggered with
25830
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
25831
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
25832
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
25833
+ *
25834
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
25835
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
25836
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
25837
+ * every device handle. A future nodedreame publish adds a typed
25838
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
25839
+ * provider can then swap the raw calls for the typed methods with no change to
25840
+ * THIS contract.
25841
+ */
25842
+ /**
25843
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
25844
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
25845
+ * halts it.
25846
+ *
25847
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
25848
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
25849
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
25850
+ * vector by it (drivers without proportional drive ignore it).
25851
+ *
25852
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
25853
+ * axis alone; an all-undefined nudge is a no-op.
25854
+ */
25855
+ var NavigationMoveCommandSchema = object({
25856
+ pan: number().min(-1).max(1).optional(),
25857
+ tilt: number().min(-1).max(1).optional(),
25858
+ speed: number().min(0).max(1).optional()
25859
+ });
25860
+ /**
25861
+ * The enumerated discrete actions a navigation-capable robot can perform via
25862
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
25863
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
25864
+ * `playSound` (see the `sound` dictionary entries).
25865
+ */
25866
+ var NavigationActionIdSchema = _enum([
25867
+ "goHome",
25868
+ "locate",
25869
+ "spotClean",
25870
+ "findPet",
25871
+ "personFollow",
25872
+ "stop",
25873
+ "startClean",
25874
+ "pauseClean",
25875
+ "dockWash",
25876
+ "autoEmpty",
25877
+ "flashOn",
25878
+ "flashOff"
25879
+ ]);
25880
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
25881
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
25882
+ /**
25883
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
25884
+ * native panel and the PTZ mimic render as a button.
25885
+ *
25886
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
25887
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
25888
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
25889
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
25890
+ * - `label` — operator-facing English label.
25891
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
25892
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
25893
+ * PTZ render ONLY enabled entries. Data-driven: the provider
25894
+ * flips it from config, never by editing code.
25895
+ */
25896
+ var NavigationActionEntrySchema = object({
25897
+ id: string(),
25898
+ kind: NavigationEntryKindSchema,
25899
+ label: string(),
25900
+ icon: string(),
25901
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
25902
+ soundId: number().int().optional(),
25903
+ /** Per-device feature flag — render this entry only when true. */
25904
+ enabled: boolean()
25905
+ });
25906
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
25907
+ var NavigationPointSchema = object({
25908
+ x: number(),
25909
+ y: number()
25910
+ });
25911
+ /**
25912
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
25913
+ * The cap reports which are enabled so the UI / PTZ render only the controls
25914
+ * that are turned on for THIS device. Data-driven: the provider derives these
25915
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
25916
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
25917
+ * that are not dictionary entries.
25918
+ *
25919
+ * - `move` / `stop` — the momentary drive joystick.
25920
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
25921
+ * map-coordinate plumbing is wired.
25922
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
25923
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
25924
+ * - `light` — the on/off fill-light toggle (works anytime).
25925
+ * - `lightMode` — the auto/manual selector + manual level slider (a
25926
+ * camera-service control; needs an active stream).
25927
+ */
25928
+ var NavigationFeaturesSchema = object({
25929
+ move: boolean(),
25930
+ stop: boolean(),
25931
+ goToPoint: boolean(),
25932
+ runAction: boolean(),
25933
+ playSound: boolean(),
25934
+ light: boolean(),
25935
+ lightMode: boolean()
25936
+ });
25937
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
25938
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
25939
+ /**
25940
+ * Live navigation state so the UI can reflect what the robot is doing:
25941
+ * - `mode` — coarse activity (idle / cleaning / following / …).
25942
+ * - `following` — person/pet follow is currently armed.
25943
+ * - `flash` — the on-camera fill light is on.
25944
+ * - `lightMode` — auto vs manual fill-light mode.
25945
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
25946
+ * `lightMode === 'manual'`.
25947
+ */
25948
+ var NavigationStatusSchema = object({
25949
+ mode: _enum([
25950
+ "idle",
25951
+ "cleaning",
25952
+ "spot",
25953
+ "following",
25954
+ "goto",
25955
+ "returning",
25956
+ "paused",
25957
+ "unknown"
25958
+ ]),
25959
+ following: boolean(),
25960
+ flash: boolean(),
25961
+ lightMode: NavigationLightModeSchema,
25962
+ lightLevel: number().min(40).max(100),
25963
+ /** Ms epoch when the slice was last updated. */
25964
+ lastChangedAt: number()
25965
+ });
25966
+ NavigationStatusSchema.extend({ lastFetchedAt: number() });
25967
+ 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({
25968
+ deviceId: number(),
25969
+ actionId: NavigationActionIdSchema
25970
+ }), _void(), { kind: "mutation" }), method(object({
25971
+ deviceId: number(),
25972
+ soundId: number().int()
25973
+ }), _void(), { kind: "mutation" }), method(object({
25974
+ deviceId: number(),
25975
+ on: boolean()
25976
+ }), _void(), { kind: "mutation" }), method(object({
25977
+ deviceId: number(),
25978
+ mode: NavigationLightModeSchema,
25979
+ level: number().min(40).max(100).optional()
25980
+ }), _void(), { kind: "mutation" }), method(object({
25981
+ deviceId: number(),
25982
+ level: number().min(40).max(100)
25983
+ }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), NavigationFeaturesSchema), object({
25984
+ deviceId: number(),
25985
+ status: NavigationStatusSchema
25986
+ });
25987
+ /**
25988
+ * Network-link snapshot. Same shape for every provider (a Reolink wifi
25989
+ * camera, a Home Assistant device with a signal-strength sensor, a Tapo
25990
+ * plug): one slice under `device.runtimeState['network-link']`, one badge,
25991
+ * one Home Assistant projection.
25992
+ */
25993
+ var NetworkLinkStatusSchema = object({
25994
+ /** The link the device is on. `'unknown'` = not read yet, not "no link". */
25995
+ type: _enum([
25996
+ "wifi",
25997
+ "ethernet",
25998
+ "cellular",
25999
+ "unknown"
26000
+ ]),
26001
+ /**
26002
+ * Link quality, 0..100 inclusive, normalised by the provider from whatever
26003
+ * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
26004
+ * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
26005
+ * one whose reading has not landed must not be drawn at 0 %. Consumers
26006
+ * SKIP a null rather than coerce it.
26007
+ */
26008
+ signalPercent: number().min(0).max(100).nullable(),
26009
+ /** Raw received signal strength in dBm, when the firmware reports one. */
26010
+ rssiDbm: number().optional(),
26011
+ /** Network name of a wireless link, when the firmware reports it. */
26012
+ ssid: string().optional(),
26013
+ /** Ms epoch of the last observation. Lets consumers reason about freshness. */
26014
+ lastUpdated: number()
26015
+ });
26016
+ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.Light, DeviceType.Lock, DeviceType.Siren, object({
26017
+ deviceId: number(),
26018
+ status: NetworkLinkStatusSchema
26019
+ });
26020
+ /**
25697
26021
  * network-quality — system-scoped singleton capability tracking RTT,
25698
26022
  * jitter, and observed/peak bandwidth per device + per client.
25699
26023
  *
@@ -26935,203 +27259,6 @@ DeviceType.Camera, method(object({ deviceId: number() }), PtzAutotrackStatusSche
26935
27259
  deviceId: number(),
26936
27260
  status: PtzAutotrackStatusSchema
26937
27261
  });
26938
- /**
26939
- * `navigation` — a device-scoped capability that natively expresses the FULL
26940
- * navigation / action surface of a robot that DRIVES ITSELF and carries an
26941
- * on-board camera (the Dreame robot-vacuum camera is the first provider).
26942
- *
26943
- * Why a NEW cap rather than overloading `ptz`:
26944
- * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
26945
- * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
26946
- * The two are different physical models: PTZ is absolute-position + presets,
26947
- * navigation is momentary drive nudges + discrete robot ACTIONS
26948
- * (dock / spot-clean / follow-pet / go-to-point / …).
26949
- * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
26950
- * the reverse:
26951
- * 1. a native CamStack navigation panel (data-driven from `listActions`
26952
- * / `getOptions`), and
26953
- * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
26954
- * robot camera shows up in the existing PTZ control path without every
26955
- * PTZ provider learning about robots. The mapping lives in the adapter,
26956
- * not here (see the addon design note):
26957
- * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
26958
- * ptz.stop() → navigation.stop()
26959
- * ptz.goHome() → navigation.runAction('goHome')
26960
- * ptz.getPresets() → navigation.listActions() (id→preset)
26961
- * ptz.goToPreset(id) → navigation.runAction(id)
26962
- *
26963
- * ## Continuous drive
26964
- *
26965
- * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
26966
- * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
26967
- * one `stop()` on release — exactly like the robot app's remote-drive joystick.
26968
- * The provider forwards EACH `move` to one drive write; it must NOT debounce or
26969
- * coalesce them. The UI owns the cadence.
26970
- *
26971
- * ## The action dictionary
26972
- *
26973
- * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
26974
- * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
26975
- * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
26976
- * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
26977
- * vendor-specific list. `kind: 'action'` entries are triggered with
26978
- * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
26979
- * (the entry carries the `soundId` to pass). The general primitives — `move`,
26980
- * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
26981
- *
26982
- * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
26983
- * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
26984
- * that the currently-published `@apocaliss92/nodedreame` already exposes on
26985
- * every device handle. A future nodedreame publish adds a typed
26986
- * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
26987
- * provider can then swap the raw calls for the typed methods with no change to
26988
- * THIS contract.
26989
- */
26990
- /**
26991
- * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
26992
- * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
26993
- * halts it.
26994
- *
26995
- * - `pan` — turn: negative = left, positive = right, 0 = straight.
26996
- * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
26997
- * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
26998
- * vector by it (drivers without proportional drive ignore it).
26999
- *
27000
- * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
27001
- * axis alone; an all-undefined nudge is a no-op.
27002
- */
27003
- var NavigationMoveCommandSchema = object({
27004
- pan: number().min(-1).max(1).optional(),
27005
- tilt: number().min(-1).max(1).optional(),
27006
- speed: number().min(0).max(1).optional()
27007
- });
27008
- /**
27009
- * The enumerated discrete actions a navigation-capable robot can perform via
27010
- * `runAction`. This is the CLOSED vocabulary; a given device advertises the
27011
- * subset it supports through `listActions`. Sounds are NOT here — they go through
27012
- * `playSound` (see the `sound` dictionary entries).
27013
- */
27014
- var NavigationActionIdSchema = _enum([
27015
- "goHome",
27016
- "locate",
27017
- "spotClean",
27018
- "findPet",
27019
- "personFollow",
27020
- "stop",
27021
- "startClean",
27022
- "pauseClean",
27023
- "dockWash",
27024
- "autoEmpty",
27025
- "flashOn",
27026
- "flashOff"
27027
- ]);
27028
- /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
27029
- var NavigationEntryKindSchema = _enum(["action", "sound"]);
27030
- /**
27031
- * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
27032
- * native panel and the PTZ mimic render as a button.
27033
- *
27034
- * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
27035
- * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
27036
- * (`sound:meow`) whose `soundId` is passed to `playSound`.
27037
- * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
27038
- * - `label` — operator-facing English label.
27039
- * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
27040
- * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
27041
- * PTZ render ONLY enabled entries. Data-driven: the provider
27042
- * flips it from config, never by editing code.
27043
- */
27044
- var NavigationActionEntrySchema = object({
27045
- id: string(),
27046
- kind: NavigationEntryKindSchema,
27047
- label: string(),
27048
- icon: string(),
27049
- /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
27050
- soundId: number().int().optional(),
27051
- /** Per-device feature flag — render this entry only when true. */
27052
- enabled: boolean()
27053
- });
27054
- /** Coordinates for `goToPoint` — a point on the robot's live map. */
27055
- var NavigationPointSchema = object({
27056
- x: number(),
27057
- y: number()
27058
- });
27059
- /**
27060
- * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
27061
- * The cap reports which are enabled so the UI / PTZ render only the controls
27062
- * that are turned on for THIS device. Data-driven: the provider derives these
27063
- * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
27064
- * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
27065
- * that are not dictionary entries.
27066
- *
27067
- * - `move` / `stop` — the momentary drive joystick.
27068
- * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
27069
- * map-coordinate plumbing is wired.
27070
- * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
27071
- * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
27072
- * - `light` — the on/off fill-light toggle (works anytime).
27073
- * - `lightMode` — the auto/manual selector + manual level slider (a
27074
- * camera-service control; needs an active stream).
27075
- */
27076
- var NavigationFeaturesSchema = object({
27077
- move: boolean(),
27078
- stop: boolean(),
27079
- goToPoint: boolean(),
27080
- runAction: boolean(),
27081
- playSound: boolean(),
27082
- light: boolean(),
27083
- lightMode: boolean()
27084
- });
27085
- /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
27086
- var NavigationLightModeSchema = _enum(["auto", "manual"]);
27087
- /**
27088
- * Live navigation state so the UI can reflect what the robot is doing:
27089
- * - `mode` — coarse activity (idle / cleaning / following / …).
27090
- * - `following` — person/pet follow is currently armed.
27091
- * - `flash` — the on-camera fill light is on.
27092
- * - `lightMode` — auto vs manual fill-light mode.
27093
- * - `lightLevel` — manual fill-light level (40..100); meaningful when
27094
- * `lightMode === 'manual'`.
27095
- */
27096
- var NavigationStatusSchema = object({
27097
- mode: _enum([
27098
- "idle",
27099
- "cleaning",
27100
- "spot",
27101
- "following",
27102
- "goto",
27103
- "returning",
27104
- "paused",
27105
- "unknown"
27106
- ]),
27107
- following: boolean(),
27108
- flash: boolean(),
27109
- lightMode: NavigationLightModeSchema,
27110
- lightLevel: number().min(40).max(100),
27111
- /** Ms epoch when the slice was last updated. */
27112
- lastChangedAt: number()
27113
- });
27114
- NavigationStatusSchema.extend({ lastFetchedAt: number() });
27115
- 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({
27116
- deviceId: number(),
27117
- actionId: NavigationActionIdSchema
27118
- }), _void(), { kind: "mutation" }), method(object({
27119
- deviceId: number(),
27120
- soundId: number().int()
27121
- }), _void(), { kind: "mutation" }), method(object({
27122
- deviceId: number(),
27123
- on: boolean()
27124
- }), _void(), { kind: "mutation" }), method(object({
27125
- deviceId: number(),
27126
- mode: NavigationLightModeSchema,
27127
- level: number().min(40).max(100).optional()
27128
- }), _void(), { kind: "mutation" }), method(object({
27129
- deviceId: number(),
27130
- level: number().min(40).max(100)
27131
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), NavigationFeaturesSchema), object({
27132
- deviceId: number(),
27133
- status: NavigationStatusSchema
27134
- });
27135
27262
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
27136
27263
  kind: "mutation",
27137
27264
  auth: "admin"
@@ -34440,13 +34567,13 @@ Object.freeze({
34440
34567
  addonId: null,
34441
34568
  access: "view"
34442
34569
  },
34443
- "storage.getDefaultLocation": {
34570
+ "storage.list": {
34444
34571
  capName: "storage",
34445
34572
  capScope: "system",
34446
34573
  addonId: null,
34447
34574
  access: "view"
34448
34575
  },
34449
- "storage.list": {
34576
+ "storage.listDrainProgress": {
34450
34577
  capName: "storage",
34451
34578
  capScope: "system",
34452
34579
  addonId: null,
@@ -34596,6 +34723,12 @@ Object.freeze({
34596
34723
  addonId: null,
34597
34724
  access: "view"
34598
34725
  },
34726
+ "storageOccupancy.getOccupancy": {
34727
+ capName: "storage-occupancy",
34728
+ capScope: "system",
34729
+ addonId: null,
34730
+ access: "view"
34731
+ },
34599
34732
  "storageProvider.abortUpload": {
34600
34733
  capName: "storage-provider",
34601
34734
  capScope: "system",