@camstack/addon-export-alexa 1.2.84 → 1.2.86

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,5 +1,5 @@
1
1
  import * as crypto$1 from "node:crypto";
2
- //#region ../types/dist/event-category-zAv7pMUz.mjs
2
+ //#region ../types/dist/event-category-CnLqLOKs.mjs
3
3
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4
4
  EventCategory["SystemBoot"] = "system.boot";
5
5
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -194,6 +194,19 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
194
194
  EventCategory["ProcessCrashed"] = "process.crashed";
195
195
  EventCategory["ProcessRestartScheduled"] = "process.restart_scheduled";
196
196
  EventCategory["ProcessRestarted"] = "process.restarted";
197
+ /**
198
+ * The SET of storage locations changed — one was created, edited, enabled,
199
+ * disabled or deleted through `storage.upsertLocation` / `deleteLocation`.
200
+ *
201
+ * Telemetry, not a transaction (D8/D11): every consumer that re-resolves on
202
+ * it must also converge on its own periodic path, because a dropped event
203
+ * must not leave a node writing to yesterday's disk set forever. It exists
204
+ * because there was NO signal at all — an operator who added a second
205
+ * recordings disk in the admin UI got nothing, and the recorder kept its
206
+ * resolved locations until something else happened to re-resolve them
207
+ * (D387). Payload `StorageLocationsChangedPayload`.
208
+ */
209
+ EventCategory["StorageLocationsChanged"] = "storage.locations-changed";
197
210
  EventCategory["RecordingStarted"] = "recording.started";
198
211
  EventCategory["RecordingStopped"] = "recording.stopped";
199
212
  EventCategory["RecordingError"] = "recording.error";
@@ -7756,111 +7769,6 @@ var CameraSwitchGroupSchema = object({
7756
7769
  fetchedAt: number()
7757
7770
  });
7758
7771
  /**
7759
- * Per-component log CHANNELS — the gate a hot path consults, and the registry
7760
- * an addon declares its channels in.
7761
- *
7762
- * ## Two axes, deliberately separated
7763
- *
7764
- * - **DECLARATION** — which channels exist. Only the addon knows:
7765
- * `stream-broker` knows webrtc/ICE/RTP, `provider-reolink` knows
7766
- * baichuan/handshake. A hand-wired central list rots at the first addition,
7767
- * and rots silently. So a channel is declared where it is consulted, and the
7768
- * `log-channels` capability enumerates the declarations.
7769
- * - **VALUE** — at which level, for which scope, until when. That stays ONE
7770
- * thing: the logging settings document on the `system` cap. Two authorities
7771
- * over the values is the exact defect
7772
- * `docs/design/plans/2026-08-26-logging-per-componente.md` was written to
7773
- * remove; re-introducing it from the cure side would be grotesque.
7774
- *
7775
- * Nothing in this file reads a clock, an env var or a store. The registry is
7776
- * a MIRROR: it is moved only by {@link LogChannelRegistry.apply}, called off
7777
- * the hot path with a value somebody actually read, and by
7778
- * {@link LogChannelRegistry.tick}, called on a timer. A store read that fails
7779
- * never reaches here, so it can neither disarm an armed channel nor arm a
7780
- * disarmed one (D49).
7781
- *
7782
- * ## The canonical call shape
7783
- *
7784
- * ```ts
7785
- * if (CH_RTP.on && CH_RTP.wants(deviceId)) {
7786
- * CH_RTP.log(logger, 'rtp subscriber added', { tags: { deviceId }, meta: { ssrc } })
7787
- * }
7788
- * ```
7789
- *
7790
- * `on` is a plain boolean FIELD — never a getter — and it is the FIRST thing
7791
- * read. Disarmed, a call site costs one load and one branch, and the `extras`
7792
- * object literal is never constructed because it lives inside the branch. It
7793
- * is the same shape already proven in production at `stream-broker.ts:1650`,
7794
- * and the same discipline `LoggingGate.allowsDestination` uses for the
7795
- * destination floor (measured at 1.93 ns/call when off).
7796
- *
7797
- * ## Why a channel emits at `info`
7798
- *
7799
- * `loki-logging.addon.ts` pins the destination default at `info` and
7800
- * `loki-destination.ts` drops everything below it, so a line emitted at
7801
- * `debug` never reaches Loki and the hub's in-memory ring only holds ~35
7802
- * minutes. A diagnostic that cannot be read an hour later is worse than no
7803
- * diagnostic, because it looks done. {@link LogChannelGate.log} therefore
7804
- * emits at the channel's declared level, whose schema floor is `info`.
7805
- */
7806
- /**
7807
- * The level a channel writes at once armed.
7808
- *
7809
- * `debug` is absent ON PURPOSE and not by omission: below `info` the line does
7810
- * not leave the process for Loki, and the whole point of arming a channel is
7811
- * to read it later.
7812
- */
7813
- var LogChannelLevelSchema = _enum([
7814
- "info",
7815
- "warn",
7816
- "error"
7817
- ]);
7818
- /**
7819
- * What an addon declares about one channel. No value, no state — a
7820
- * declaration is inert.
7821
- */
7822
- var LogChannelDescriptorSchema = object({
7823
- /**
7824
- * Dotted `area.thing`, unique across the workspace. `area` is conventionally
7825
- * the addon's short name so an operator reading a channel list can tell who
7826
- * owns it without a second lookup.
7827
- */
7828
- name: string().min(3).regex(/^[a-z0-9-]+(\.[a-z0-9-]+)+$/, "a channel name is dotted lower-kebab, e.g. area.thing"),
7829
- /** One sentence: what the operator will SEE after arming it. */
7830
- description: string().min(1),
7831
- /** The level its lines are emitted at. Never below `info`. */
7832
- defaultLevel: LogChannelLevelSchema,
7833
- /**
7834
- * Whether this channel can be narrowed to a camera.
7835
- *
7836
- * `true` is a PROMISE with two halves, and both must hold: the gate is
7837
- * consulted with the numeric device id, AND every line the channel admits
7838
- * carries `tags: { deviceId }` with that same numeric id. The second half is
7839
- * what makes `| json | deviceId="617"` work in Loki — `loki-payload.ts`
7840
- * keeps `deviceId` out of the stream labels for cardinality, so the tag in
7841
- * the body is the only way to filter.
7842
- *
7843
- * A channel whose lines carry the device only in `meta` (or not at all) is
7844
- * declared `false`. Declaring it `true` anyway would be a lie the UI repeats:
7845
- * the operator narrows to one camera, sees nothing, and concludes the code
7846
- * path was never taken.
7847
- */
7848
- perDevice: boolean()
7849
- });
7850
- /**
7851
- * An armed window over one channel, as the document hands it to a mirror.
7852
- *
7853
- * A window is a DEADLINE, never a flag (ADR-0244): a channel somebody forgot
7854
- * expires by itself, which is the one failure a boolean cannot avoid.
7855
- */
7856
- var LogChannelWindowSchema = object({
7857
- channel: string().min(1),
7858
- /** Epoch ms the window closes at. */
7859
- armedUntilMs: number(),
7860
- /** `null` = every camera. A non-empty list narrows to those numeric ids. */
7861
- deviceIds: array(number().int()).readonly().nullable()
7862
- });
7863
- /**
7864
7772
  * Ops-log — the durable, append-only operations audit shared by the
7865
7773
  * recordings and events management surfaces.
7866
7774
  *
@@ -8782,6 +8690,21 @@ var StorageCleanupJobSchema = object({
8782
8690
  });
8783
8691
  var StorageCleanupStatusInputSchema = object({ jobId: string().optional() });
8784
8692
  /**
8693
+ * The one typed state of a storage location. Authoritative Zod schema — the TS
8694
+ * alias below is `z.infer<>` of it, never a second spelling.
8695
+ */
8696
+ var StorageLocationModeSchema = _enum([
8697
+ "active",
8698
+ "readonly",
8699
+ "drain",
8700
+ "disabled"
8701
+ ]);
8702
+ _enum([
8703
+ "normal",
8704
+ "never",
8705
+ "drain"
8706
+ ]);
8707
+ /**
8785
8708
  * `StorageLocationType` — an addon-declared id that identifies the *kind* of
8786
8709
  * storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
8787
8710
  * so the persisted record schema and the consumer-facing cap can both consume it
@@ -8806,8 +8729,11 @@ var StorageLocationTypeSchema = string().regex(/^[a-z][a-zA-Z0-9-]*$/);
8806
8729
  * `STORAGE_LOCATION_CARDINALITY` map has been removed.
8807
8730
  *
8808
8731
  * `id` is a stable namespaced string of the form `<type>:<slug>`.
8809
- * The default location for a type uses `id === <type>:default` by
8810
- * convention (the bare type ref like `'backups'` resolves to it).
8732
+ * The seed names its first instance `<type>:default` — a NAME, not a flag.
8733
+ * There is no default location any more (D383): `enabled` is the whole write
8734
+ * model, and a bare type ref resolves to the sole location of the type, or —
8735
+ * transitionally, only while legacy NULL-stamped rows exist — to the row whose
8736
+ * slug is `default`.
8811
8737
  *
8812
8738
  * `isSystem` is a legacy persisted flag. Seed still creates the initial
8813
8739
  * `<type>:default` locations; the flag is no longer a lock, a badge, or a
@@ -8828,23 +8754,37 @@ var StorageLocationSchema = object({
8828
8754
  * flag at upsert time, not here (the schema is provider-agnostic).
8829
8755
  */
8830
8756
  nodeId: string().optional(),
8831
- isDefault: boolean().default(false),
8832
8757
  isSystem: boolean().default(false),
8833
8758
  /**
8834
- * Operator opt-in: whether consumers that BALANCE across several locations
8835
- * of a type may write here. Recordings reads it today; event media and
8836
- * backups are the next consumers, which is why the flag lives on the
8837
- * location rather than in any one addon's store — nothing has to be
8838
- * extended to add the next consumer.
8759
+ * THE write switch, and the only one (D383). `enabled: true` means every
8760
+ * consumer that chooses a write target for this type may write here, and all
8761
+ * enabled locations of a type are used TOGETHER; `false` means read-only —
8762
+ * still read, still played back, still age-swept, still drained, never
8763
+ * written.
8839
8764
  *
8840
- * OPTIONAL, and ABSENT MEANS ACTIVE. Every location persisted before the
8841
- * flag existed reads back with no flag and keeps working exactly as before;
8842
- * that is the whole compat story, and it is why no migration ships with it.
8843
- * A newly CREATED sibling is stamped `false` by the orchestrator (creating a
8844
- * disk must not silently start writing to it); the default of a type is
8845
- * always stamped `true`.
8765
+ * OPTIONAL only for the wire: an upsert that omits it means "leave what is
8766
+ * stored" on an update and "born inert unless it is the first location of its
8767
+ * type" on a create. On a PERSISTED row absence is legacy and it means
8768
+ * enabled — {@link isLocationEnabled} is the one place that says so, and the
8769
+ * orchestrator stamps every flagless row `true` once at hydrate so absence
8770
+ * stops existing rather than being re-derived on every read.
8846
8771
  */
8847
8772
  enabled: boolean().optional(),
8773
+ /**
8774
+ * THE state of this location (D385), and the only authority on what may be
8775
+ * written, read or evicted here. Interpreted in exactly one place —
8776
+ * `storage-location-mode.ts` — which also folds the legacy
8777
+ * `enabled` / `config.readOnly` pair into a mode so an old row is never
8778
+ * ambiguous.
8779
+ *
8780
+ * OPTIONAL only for the wire and for rows written before D385: absence is
8781
+ * resolved by `resolveLocationMode`, and the orchestrator stamps every
8782
+ * unstamped row ONCE at hydrate so absence stops existing rather than being
8783
+ * re-derived on every read. `enabled` survives one release as a DERIVED
8784
+ * mirror (`mode === 'active'`); `withLocationMode` is the only writer of
8785
+ * either, so the two cannot disagree.
8786
+ */
8787
+ mode: StorageLocationModeSchema.optional(),
8848
8788
  /** COMPUTED at read time by the orchestrator (statfs of the backing volume
8849
8789
  * for node-local locations it can reach) — never persisted, absent when the
8850
8790
  * volume is remote/unreachable. The single capacity truth every UI reads. */
@@ -8852,13 +8792,50 @@ var StorageLocationSchema = object({
8852
8792
  totalBytes: number(),
8853
8793
  availableBytes: number()
8854
8794
  }).nullable().optional(),
8795
+ /**
8796
+ * How much of that volume CamStack ITSELF holds on this location (D388) —
8797
+ * COMPUTED at read time from the `storage-occupancy` providers' own figures,
8798
+ * never persisted, never a filesystem walk.
8799
+ *
8800
+ * **ABSENT MEANS UNKNOWN, never zero.** No provider has reported for this
8801
+ * location yet — nobody stores here, the owning addon is down, or the first
8802
+ * refresh has not completed. A UI must omit the segment rather than draw it
8803
+ * at zero, which would claim we occupy nothing (D315). It is an OBJECT and
8804
+ * not a bare number precisely so that a `?? 0` on the consuming side has to
8805
+ * be spelled out loud instead of appearing by accident.
8806
+ *
8807
+ * `measuredAtMs` is the OLDEST contributing measurement, so it is honest
8808
+ * about the whole figure rather than about its freshest part.
8809
+ */
8810
+ owned: object({
8811
+ bytes: number().int().nonnegative(),
8812
+ measuredAtMs: number().int().nonnegative()
8813
+ }).optional(),
8855
8814
  createdAt: number(),
8856
8815
  updatedAt: number()
8857
8816
  });
8817
+ object({ isDefault: boolean().optional() });
8818
+ /**
8819
+ * How far a `drain` has got (D386) — the read a UI renders, and nothing more.
8820
+ *
8821
+ * `estimatedEmptyAtMs` is derived from the growth the ratchet has actually
8822
+ * OBSERVED and is `null` when it has observed none. Never a fabricated date: a
8823
+ * drain with no observed growth has no honest ETA, and inventing one is how an
8824
+ * operator learns not to believe the screen.
8825
+ */
8826
+ var StorageDrainProgressSchema = object({
8827
+ locationId: string(),
8828
+ startedAtMs: number(),
8829
+ startBytes: number(),
8830
+ bytesRemaining: number(),
8831
+ drained: boolean(),
8832
+ estimatedEmptyAtMs: number().nullable()
8833
+ });
8858
8834
  /**
8859
8835
  * Reference accepted by consumer-facing `api.storage.*` calls.
8860
8836
  * Either:
8861
- * - a `StorageLocationType` (e.g. `'backups'`) → orchestrator resolves to the default of that type
8837
+ * - a `StorageLocationType` (e.g. `'backups'`) → the sole location of that type
8838
+ * (transitionally, the `<type>:default`-slugged row when several exist)
8862
8839
  * - a fully-qualified id (e.g. `'backups:nas-01'`) → addresses a specific instance
8863
8840
  *
8864
8841
  * The orchestrator's `resolveRef(ref)` handles both cases.
@@ -9034,6 +9011,111 @@ var DecoderSessionConfigSchema = object({
9034
9011
  */
9035
9012
  debug: boolean().optional()
9036
9013
  });
9014
+ /**
9015
+ * Per-component log CHANNELS — the gate a hot path consults, and the registry
9016
+ * an addon declares its channels in.
9017
+ *
9018
+ * ## Two axes, deliberately separated
9019
+ *
9020
+ * - **DECLARATION** — which channels exist. Only the addon knows:
9021
+ * `stream-broker` knows webrtc/ICE/RTP, `provider-reolink` knows
9022
+ * baichuan/handshake. A hand-wired central list rots at the first addition,
9023
+ * and rots silently. So a channel is declared where it is consulted, and the
9024
+ * `log-channels` capability enumerates the declarations.
9025
+ * - **VALUE** — at which level, for which scope, until when. That stays ONE
9026
+ * thing: the logging settings document on the `system` cap. Two authorities
9027
+ * over the values is the exact defect
9028
+ * `docs/design/plans/2026-08-26-logging-per-componente.md` was written to
9029
+ * remove; re-introducing it from the cure side would be grotesque.
9030
+ *
9031
+ * Nothing in this file reads a clock, an env var or a store. The registry is
9032
+ * a MIRROR: it is moved only by {@link LogChannelRegistry.apply}, called off
9033
+ * the hot path with a value somebody actually read, and by
9034
+ * {@link LogChannelRegistry.tick}, called on a timer. A store read that fails
9035
+ * never reaches here, so it can neither disarm an armed channel nor arm a
9036
+ * disarmed one (D49).
9037
+ *
9038
+ * ## The canonical call shape
9039
+ *
9040
+ * ```ts
9041
+ * if (CH_RTP.on && CH_RTP.wants(deviceId)) {
9042
+ * CH_RTP.log(logger, 'rtp subscriber added', { tags: { deviceId }, meta: { ssrc } })
9043
+ * }
9044
+ * ```
9045
+ *
9046
+ * `on` is a plain boolean FIELD — never a getter — and it is the FIRST thing
9047
+ * read. Disarmed, a call site costs one load and one branch, and the `extras`
9048
+ * object literal is never constructed because it lives inside the branch. It
9049
+ * is the same shape already proven in production at `stream-broker.ts:1650`,
9050
+ * and the same discipline `LoggingGate.allowsDestination` uses for the
9051
+ * destination floor (measured at 1.93 ns/call when off).
9052
+ *
9053
+ * ## Why a channel emits at `info`
9054
+ *
9055
+ * `loki-logging.addon.ts` pins the destination default at `info` and
9056
+ * `loki-destination.ts` drops everything below it, so a line emitted at
9057
+ * `debug` never reaches Loki and the hub's in-memory ring only holds ~35
9058
+ * minutes. A diagnostic that cannot be read an hour later is worse than no
9059
+ * diagnostic, because it looks done. {@link LogChannelGate.log} therefore
9060
+ * emits at the channel's declared level, whose schema floor is `info`.
9061
+ */
9062
+ /**
9063
+ * The level a channel writes at once armed.
9064
+ *
9065
+ * `debug` is absent ON PURPOSE and not by omission: below `info` the line does
9066
+ * not leave the process for Loki, and the whole point of arming a channel is
9067
+ * to read it later.
9068
+ */
9069
+ var LogChannelLevelSchema = _enum([
9070
+ "info",
9071
+ "warn",
9072
+ "error"
9073
+ ]);
9074
+ /**
9075
+ * What an addon declares about one channel. No value, no state — a
9076
+ * declaration is inert.
9077
+ */
9078
+ var LogChannelDescriptorSchema = object({
9079
+ /**
9080
+ * Dotted `area.thing`, unique across the workspace. `area` is conventionally
9081
+ * the addon's short name so an operator reading a channel list can tell who
9082
+ * owns it without a second lookup.
9083
+ */
9084
+ name: string().min(3).regex(/^[a-z0-9-]+(\.[a-z0-9-]+)+$/, "a channel name is dotted lower-kebab, e.g. area.thing"),
9085
+ /** One sentence: what the operator will SEE after arming it. */
9086
+ description: string().min(1),
9087
+ /** The level its lines are emitted at. Never below `info`. */
9088
+ defaultLevel: LogChannelLevelSchema,
9089
+ /**
9090
+ * Whether this channel can be narrowed to a camera.
9091
+ *
9092
+ * `true` is a PROMISE with two halves, and both must hold: the gate is
9093
+ * consulted with the numeric device id, AND every line the channel admits
9094
+ * carries `tags: { deviceId }` with that same numeric id. The second half is
9095
+ * what makes `| json | deviceId="617"` work in Loki — `loki-payload.ts`
9096
+ * keeps `deviceId` out of the stream labels for cardinality, so the tag in
9097
+ * the body is the only way to filter.
9098
+ *
9099
+ * A channel whose lines carry the device only in `meta` (or not at all) is
9100
+ * declared `false`. Declaring it `true` anyway would be a lie the UI repeats:
9101
+ * the operator narrows to one camera, sees nothing, and concludes the code
9102
+ * path was never taken.
9103
+ */
9104
+ perDevice: boolean()
9105
+ });
9106
+ /**
9107
+ * An armed window over one channel, as the document hands it to a mirror.
9108
+ *
9109
+ * A window is a DEADLINE, never a flag (ADR-0244): a channel somebody forgot
9110
+ * expires by itself, which is the one failure a boolean cannot avoid.
9111
+ */
9112
+ var LogChannelWindowSchema = object({
9113
+ channel: string().min(1),
9114
+ /** Epoch ms the window closes at. */
9115
+ armedUntilMs: number(),
9116
+ /** `null` = every camera. A non-empty list narrows to those numeric ids. */
9117
+ deviceIds: array(number().int()).readonly().nullable()
9118
+ });
9037
9119
  function pickPreferredRtspEntry(entries, pref, deviceId, options = {}) {
9038
9120
  if (entries.length === 0) return null;
9039
9121
  const prefix = `${deviceId}/`;
@@ -21841,7 +21923,7 @@ method(object({
21841
21923
  downloadId: string(),
21842
21924
  offset: number(),
21843
21925
  length: number()
21844
- }), _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({
21926
+ }), _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({
21845
21927
  createdAt: true,
21846
21928
  updatedAt: true
21847
21929
  }), StorageLocationSchema, {
@@ -21853,7 +21935,7 @@ method(object({
21853
21935
  }), _void(), {
21854
21936
  kind: "mutation",
21855
21937
  auth: "admin"
21856
- }), method(object({ id: string() }), object({
21938
+ }), method(_void(), array(StorageDrainProgressSchema).readonly()), method(object({ id: string() }), object({
21857
21939
  ok: boolean(),
21858
21940
  error: string().optional()
21859
21941
  }), { auth: "admin" }), method(_void(), array(ProviderListEntrySchema).readonly()), method(object({
@@ -21923,6 +22005,51 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
21923
22005
  kind: "mutation",
21924
22006
  auth: "admin"
21925
22007
  }), method(object({}), array(StorageMigrationJobSchema).readonly(), { auth: "admin" });
22008
+ /**
22009
+ * `storage-occupancy` — how many bytes an addon actually HOLDS on a storage
22010
+ * location (D388).
22011
+ *
22012
+ * ## Why this is not `storage-evictable`
22013
+ *
22014
+ * `storage-evictable.getEvictableUsage` looks like the same question and is
22015
+ * not, in two ways that both matter and both bite hardest on the locations an
22016
+ * operator most wants a figure for:
22017
+ *
22018
+ * - it reports the whole eviction DOMAIN, not the location. `recordings:default`
22019
+ * and `recordingsLow:default` deliberately share one root and evict as one
22020
+ * oldest-first pool, so both answer with the SAME combined total. As an
22021
+ * occupancy figure that double-counts the disk.
22022
+ * - it reports ZERO for a location whose eviction policy is `never` (D385) —
22023
+ * a `readonly` or `disabled` disk. Those are exactly the disks an operator
22024
+ * is retiring and staring at.
22025
+ *
22026
+ * So this is its own contract with its own quantity, and the quantity is
22027
+ * OCCUPIED: every byte the addon holds on that location, whether or not it
22028
+ * would ever be willing to delete it. A provider that can only answer
22029
+ * "evictable" must not register here — a number that silently means different
22030
+ * things per class is worse than no number.
22031
+ *
22032
+ * ## Absence is an answer
22033
+ *
22034
+ * A location nobody reports for is UNKNOWN, never zero (D315). The orchestrator
22035
+ * stamps `StorageLocation.owned` only for locations it has a report for, and
22036
+ * the field is an OBJECT rather than a bare number so that a `?? 0` on the
22037
+ * consuming side has to be written out loud instead of appearing by accident.
22038
+ *
22039
+ * `internal: true` — consumed by the orchestrator's `listLocations` stamp, never
22040
+ * a public client surface. Clients read the stamped `StorageLocation.owned`.
22041
+ */
22042
+ /** One provider's occupancy answer for one location. */
22043
+ var StorageOccupancyReportSchema = object({
22044
+ locationId: string(),
22045
+ /** Bytes this provider holds on THAT location — not its eviction domain, and
22046
+ * not net of what it is willing to delete. */
22047
+ ownedBytes: number().int().nonnegative(),
22048
+ /** When the provider last actually measured this. The orchestrator carries it
22049
+ * through so a UI can say how old the figure is instead of implying "now". */
22050
+ measuredAtMs: number().int().nonnegative()
22051
+ });
22052
+ method(object({ locationIds: array(string()).readonly() }), array(StorageOccupancyReportSchema).readonly(), { auth: "admin" });
21926
22053
  var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
21927
22054
  providerId: string().min(1),
21928
22055
  displayName: string().min(1),
@@ -23558,39 +23685,6 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, meth
23558
23685
  deviceId: number(),
23559
23686
  status: BatteryStatusSchema
23560
23687
  });
23561
- /**
23562
- * Network-link snapshot. Same shape for every provider (a Reolink wifi
23563
- * camera, a Home Assistant device with a signal-strength sensor, a Tapo
23564
- * plug): one slice under `device.runtimeState['network-link']`, one badge,
23565
- * one Home Assistant projection.
23566
- */
23567
- var NetworkLinkStatusSchema = object({
23568
- /** The link the device is on. `'unknown'` = not read yet, not "no link". */
23569
- type: _enum([
23570
- "wifi",
23571
- "ethernet",
23572
- "cellular",
23573
- "unknown"
23574
- ]),
23575
- /**
23576
- * Link quality, 0..100 inclusive, normalised by the provider from whatever
23577
- * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
23578
- * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
23579
- * one whose reading has not landed must not be drawn at 0 %. Consumers
23580
- * SKIP a null rather than coerce it.
23581
- */
23582
- signalPercent: number().min(0).max(100).nullable(),
23583
- /** Raw received signal strength in dBm, when the firmware reports one. */
23584
- rssiDbm: number().optional(),
23585
- /** Network name of a wireless link, when the firmware reports it. */
23586
- ssid: string().optional(),
23587
- /** Ms epoch of the last observation. Lets consumers reason about freshness. */
23588
- lastUpdated: number()
23589
- });
23590
- DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.Light, DeviceType.Lock, DeviceType.Siren, object({
23591
- deviceId: number(),
23592
- status: NetworkLinkStatusSchema
23593
- });
23594
23688
  object({
23595
23689
  on: boolean(),
23596
23690
  /** Ms epoch of the last transition. 0 if never observed. */
@@ -25944,6 +26038,236 @@ DeviceType.Camera, method(object({
25944
26038
  detection: NativeDetectionSchema
25945
26039
  });
25946
26040
  /**
26041
+ * `navigation` — a device-scoped capability that natively expresses the FULL
26042
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
26043
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
26044
+ *
26045
+ * Why a NEW cap rather than overloading `ptz`:
26046
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
26047
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
26048
+ * The two are different physical models: PTZ is absolute-position + presets,
26049
+ * navigation is momentary drive nudges + discrete robot ACTIONS
26050
+ * (dock / spot-clean / follow-pet / go-to-point / …).
26051
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
26052
+ * the reverse:
26053
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
26054
+ * / `getOptions`), and
26055
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
26056
+ * robot camera shows up in the existing PTZ control path without every
26057
+ * PTZ provider learning about robots. The mapping lives in the adapter,
26058
+ * not here (see the addon design note):
26059
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
26060
+ * ptz.stop() → navigation.stop()
26061
+ * ptz.goHome() → navigation.runAction('goHome')
26062
+ * ptz.getPresets() → navigation.listActions() (id→preset)
26063
+ * ptz.goToPreset(id) → navigation.runAction(id)
26064
+ *
26065
+ * ## Continuous drive
26066
+ *
26067
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
26068
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
26069
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
26070
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
26071
+ * coalesce them. The UI owns the cadence.
26072
+ *
26073
+ * ## The action dictionary
26074
+ *
26075
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
26076
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
26077
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
26078
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
26079
+ * vendor-specific list. `kind: 'action'` entries are triggered with
26080
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
26081
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
26082
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
26083
+ *
26084
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
26085
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
26086
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
26087
+ * every device handle. A future nodedreame publish adds a typed
26088
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
26089
+ * provider can then swap the raw calls for the typed methods with no change to
26090
+ * THIS contract.
26091
+ */
26092
+ /**
26093
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
26094
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
26095
+ * halts it.
26096
+ *
26097
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
26098
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
26099
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
26100
+ * vector by it (drivers without proportional drive ignore it).
26101
+ *
26102
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
26103
+ * axis alone; an all-undefined nudge is a no-op.
26104
+ */
26105
+ var NavigationMoveCommandSchema = object({
26106
+ pan: number().min(-1).max(1).optional(),
26107
+ tilt: number().min(-1).max(1).optional(),
26108
+ speed: number().min(0).max(1).optional()
26109
+ });
26110
+ /**
26111
+ * The enumerated discrete actions a navigation-capable robot can perform via
26112
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
26113
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
26114
+ * `playSound` (see the `sound` dictionary entries).
26115
+ */
26116
+ var NavigationActionIdSchema = _enum([
26117
+ "goHome",
26118
+ "locate",
26119
+ "spotClean",
26120
+ "findPet",
26121
+ "personFollow",
26122
+ "stop",
26123
+ "startClean",
26124
+ "pauseClean",
26125
+ "dockWash",
26126
+ "autoEmpty",
26127
+ "flashOn",
26128
+ "flashOff"
26129
+ ]);
26130
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
26131
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
26132
+ /**
26133
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
26134
+ * native panel and the PTZ mimic render as a button.
26135
+ *
26136
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
26137
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
26138
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
26139
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
26140
+ * - `label` — operator-facing English label.
26141
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
26142
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
26143
+ * PTZ render ONLY enabled entries. Data-driven: the provider
26144
+ * flips it from config, never by editing code.
26145
+ */
26146
+ var NavigationActionEntrySchema = object({
26147
+ id: string(),
26148
+ kind: NavigationEntryKindSchema,
26149
+ label: string(),
26150
+ icon: string(),
26151
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
26152
+ soundId: number().int().optional(),
26153
+ /** Per-device feature flag — render this entry only when true. */
26154
+ enabled: boolean()
26155
+ });
26156
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
26157
+ var NavigationPointSchema = object({
26158
+ x: number(),
26159
+ y: number()
26160
+ });
26161
+ /**
26162
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
26163
+ * The cap reports which are enabled so the UI / PTZ render only the controls
26164
+ * that are turned on for THIS device. Data-driven: the provider derives these
26165
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
26166
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
26167
+ * that are not dictionary entries.
26168
+ *
26169
+ * - `move` / `stop` — the momentary drive joystick.
26170
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
26171
+ * map-coordinate plumbing is wired.
26172
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
26173
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
26174
+ * - `light` — the on/off fill-light toggle (works anytime).
26175
+ * - `lightMode` — the auto/manual selector + manual level slider (a
26176
+ * camera-service control; needs an active stream).
26177
+ */
26178
+ var NavigationFeaturesSchema = object({
26179
+ move: boolean(),
26180
+ stop: boolean(),
26181
+ goToPoint: boolean(),
26182
+ runAction: boolean(),
26183
+ playSound: boolean(),
26184
+ light: boolean(),
26185
+ lightMode: boolean()
26186
+ });
26187
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
26188
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
26189
+ /**
26190
+ * Live navigation state so the UI can reflect what the robot is doing:
26191
+ * - `mode` — coarse activity (idle / cleaning / following / …).
26192
+ * - `following` — person/pet follow is currently armed.
26193
+ * - `flash` — the on-camera fill light is on.
26194
+ * - `lightMode` — auto vs manual fill-light mode.
26195
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
26196
+ * `lightMode === 'manual'`.
26197
+ */
26198
+ var NavigationStatusSchema = object({
26199
+ mode: _enum([
26200
+ "idle",
26201
+ "cleaning",
26202
+ "spot",
26203
+ "following",
26204
+ "goto",
26205
+ "returning",
26206
+ "paused",
26207
+ "unknown"
26208
+ ]),
26209
+ following: boolean(),
26210
+ flash: boolean(),
26211
+ lightMode: NavigationLightModeSchema,
26212
+ lightLevel: number().min(40).max(100),
26213
+ /** Ms epoch when the slice was last updated. */
26214
+ lastChangedAt: number()
26215
+ });
26216
+ NavigationStatusSchema.extend({ lastFetchedAt: number() });
26217
+ 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({
26218
+ deviceId: number(),
26219
+ actionId: NavigationActionIdSchema
26220
+ }), _void(), { kind: "mutation" }), method(object({
26221
+ deviceId: number(),
26222
+ soundId: number().int()
26223
+ }), _void(), { kind: "mutation" }), method(object({
26224
+ deviceId: number(),
26225
+ on: boolean()
26226
+ }), _void(), { kind: "mutation" }), method(object({
26227
+ deviceId: number(),
26228
+ mode: NavigationLightModeSchema,
26229
+ level: number().min(40).max(100).optional()
26230
+ }), _void(), { kind: "mutation" }), method(object({
26231
+ deviceId: number(),
26232
+ level: number().min(40).max(100)
26233
+ }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), NavigationFeaturesSchema), object({
26234
+ deviceId: number(),
26235
+ status: NavigationStatusSchema
26236
+ });
26237
+ /**
26238
+ * Network-link snapshot. Same shape for every provider (a Reolink wifi
26239
+ * camera, a Home Assistant device with a signal-strength sensor, a Tapo
26240
+ * plug): one slice under `device.runtimeState['network-link']`, one badge,
26241
+ * one Home Assistant projection.
26242
+ */
26243
+ var NetworkLinkStatusSchema = object({
26244
+ /** The link the device is on. `'unknown'` = not read yet, not "no link". */
26245
+ type: _enum([
26246
+ "wifi",
26247
+ "ethernet",
26248
+ "cellular",
26249
+ "unknown"
26250
+ ]),
26251
+ /**
26252
+ * Link quality, 0..100 inclusive, normalised by the provider from whatever
26253
+ * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
26254
+ * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
26255
+ * one whose reading has not landed must not be drawn at 0 %. Consumers
26256
+ * SKIP a null rather than coerce it.
26257
+ */
26258
+ signalPercent: number().min(0).max(100).nullable(),
26259
+ /** Raw received signal strength in dBm, when the firmware reports one. */
26260
+ rssiDbm: number().optional(),
26261
+ /** Network name of a wireless link, when the firmware reports it. */
26262
+ ssid: string().optional(),
26263
+ /** Ms epoch of the last observation. Lets consumers reason about freshness. */
26264
+ lastUpdated: number()
26265
+ });
26266
+ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.Light, DeviceType.Lock, DeviceType.Siren, object({
26267
+ deviceId: number(),
26268
+ status: NetworkLinkStatusSchema
26269
+ });
26270
+ /**
25947
26271
  * network-quality — system-scoped singleton capability tracking RTT,
25948
26272
  * jitter, and observed/peak bandwidth per device + per client.
25949
26273
  *
@@ -27185,203 +27509,6 @@ DeviceType.Camera, method(object({ deviceId: number() }), PtzAutotrackStatusSche
27185
27509
  deviceId: number(),
27186
27510
  status: PtzAutotrackStatusSchema
27187
27511
  });
27188
- /**
27189
- * `navigation` — a device-scoped capability that natively expresses the FULL
27190
- * navigation / action surface of a robot that DRIVES ITSELF and carries an
27191
- * on-board camera (the Dreame robot-vacuum camera is the first provider).
27192
- *
27193
- * Why a NEW cap rather than overloading `ptz`:
27194
- * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
27195
- * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
27196
- * The two are different physical models: PTZ is absolute-position + presets,
27197
- * navigation is momentary drive nudges + discrete robot ACTIONS
27198
- * (dock / spot-clean / follow-pet / go-to-point / …).
27199
- * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
27200
- * the reverse:
27201
- * 1. a native CamStack navigation panel (data-driven from `listActions`
27202
- * / `getOptions`), and
27203
- * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
27204
- * robot camera shows up in the existing PTZ control path without every
27205
- * PTZ provider learning about robots. The mapping lives in the adapter,
27206
- * not here (see the addon design note):
27207
- * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
27208
- * ptz.stop() → navigation.stop()
27209
- * ptz.goHome() → navigation.runAction('goHome')
27210
- * ptz.getPresets() → navigation.listActions() (id→preset)
27211
- * ptz.goToPreset(id) → navigation.runAction(id)
27212
- *
27213
- * ## Continuous drive
27214
- *
27215
- * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
27216
- * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
27217
- * one `stop()` on release — exactly like the robot app's remote-drive joystick.
27218
- * The provider forwards EACH `move` to one drive write; it must NOT debounce or
27219
- * coalesce them. The UI owns the cadence.
27220
- *
27221
- * ## The action dictionary
27222
- *
27223
- * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
27224
- * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
27225
- * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
27226
- * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
27227
- * vendor-specific list. `kind: 'action'` entries are triggered with
27228
- * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
27229
- * (the entry carries the `soundId` to pass). The general primitives — `move`,
27230
- * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
27231
- *
27232
- * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
27233
- * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
27234
- * that the currently-published `@apocaliss92/nodedreame` already exposes on
27235
- * every device handle. A future nodedreame publish adds a typed
27236
- * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
27237
- * provider can then swap the raw calls for the typed methods with no change to
27238
- * THIS contract.
27239
- */
27240
- /**
27241
- * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
27242
- * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
27243
- * halts it.
27244
- *
27245
- * - `pan` — turn: negative = left, positive = right, 0 = straight.
27246
- * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
27247
- * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
27248
- * vector by it (drivers without proportional drive ignore it).
27249
- *
27250
- * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
27251
- * axis alone; an all-undefined nudge is a no-op.
27252
- */
27253
- var NavigationMoveCommandSchema = object({
27254
- pan: number().min(-1).max(1).optional(),
27255
- tilt: number().min(-1).max(1).optional(),
27256
- speed: number().min(0).max(1).optional()
27257
- });
27258
- /**
27259
- * The enumerated discrete actions a navigation-capable robot can perform via
27260
- * `runAction`. This is the CLOSED vocabulary; a given device advertises the
27261
- * subset it supports through `listActions`. Sounds are NOT here — they go through
27262
- * `playSound` (see the `sound` dictionary entries).
27263
- */
27264
- var NavigationActionIdSchema = _enum([
27265
- "goHome",
27266
- "locate",
27267
- "spotClean",
27268
- "findPet",
27269
- "personFollow",
27270
- "stop",
27271
- "startClean",
27272
- "pauseClean",
27273
- "dockWash",
27274
- "autoEmpty",
27275
- "flashOn",
27276
- "flashOff"
27277
- ]);
27278
- /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
27279
- var NavigationEntryKindSchema = _enum(["action", "sound"]);
27280
- /**
27281
- * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
27282
- * native panel and the PTZ mimic render as a button.
27283
- *
27284
- * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
27285
- * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
27286
- * (`sound:meow`) whose `soundId` is passed to `playSound`.
27287
- * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
27288
- * - `label` — operator-facing English label.
27289
- * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
27290
- * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
27291
- * PTZ render ONLY enabled entries. Data-driven: the provider
27292
- * flips it from config, never by editing code.
27293
- */
27294
- var NavigationActionEntrySchema = object({
27295
- id: string(),
27296
- kind: NavigationEntryKindSchema,
27297
- label: string(),
27298
- icon: string(),
27299
- /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
27300
- soundId: number().int().optional(),
27301
- /** Per-device feature flag — render this entry only when true. */
27302
- enabled: boolean()
27303
- });
27304
- /** Coordinates for `goToPoint` — a point on the robot's live map. */
27305
- var NavigationPointSchema = object({
27306
- x: number(),
27307
- y: number()
27308
- });
27309
- /**
27310
- * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
27311
- * The cap reports which are enabled so the UI / PTZ render only the controls
27312
- * that are turned on for THIS device. Data-driven: the provider derives these
27313
- * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
27314
- * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
27315
- * that are not dictionary entries.
27316
- *
27317
- * - `move` / `stop` — the momentary drive joystick.
27318
- * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
27319
- * map-coordinate plumbing is wired.
27320
- * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
27321
- * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
27322
- * - `light` — the on/off fill-light toggle (works anytime).
27323
- * - `lightMode` — the auto/manual selector + manual level slider (a
27324
- * camera-service control; needs an active stream).
27325
- */
27326
- var NavigationFeaturesSchema = object({
27327
- move: boolean(),
27328
- stop: boolean(),
27329
- goToPoint: boolean(),
27330
- runAction: boolean(),
27331
- playSound: boolean(),
27332
- light: boolean(),
27333
- lightMode: boolean()
27334
- });
27335
- /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
27336
- var NavigationLightModeSchema = _enum(["auto", "manual"]);
27337
- /**
27338
- * Live navigation state so the UI can reflect what the robot is doing:
27339
- * - `mode` — coarse activity (idle / cleaning / following / …).
27340
- * - `following` — person/pet follow is currently armed.
27341
- * - `flash` — the on-camera fill light is on.
27342
- * - `lightMode` — auto vs manual fill-light mode.
27343
- * - `lightLevel` — manual fill-light level (40..100); meaningful when
27344
- * `lightMode === 'manual'`.
27345
- */
27346
- var NavigationStatusSchema = object({
27347
- mode: _enum([
27348
- "idle",
27349
- "cleaning",
27350
- "spot",
27351
- "following",
27352
- "goto",
27353
- "returning",
27354
- "paused",
27355
- "unknown"
27356
- ]),
27357
- following: boolean(),
27358
- flash: boolean(),
27359
- lightMode: NavigationLightModeSchema,
27360
- lightLevel: number().min(40).max(100),
27361
- /** Ms epoch when the slice was last updated. */
27362
- lastChangedAt: number()
27363
- });
27364
- NavigationStatusSchema.extend({ lastFetchedAt: number() });
27365
- 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({
27366
- deviceId: number(),
27367
- actionId: NavigationActionIdSchema
27368
- }), _void(), { kind: "mutation" }), method(object({
27369
- deviceId: number(),
27370
- soundId: number().int()
27371
- }), _void(), { kind: "mutation" }), method(object({
27372
- deviceId: number(),
27373
- on: boolean()
27374
- }), _void(), { kind: "mutation" }), method(object({
27375
- deviceId: number(),
27376
- mode: NavigationLightModeSchema,
27377
- level: number().min(40).max(100).optional()
27378
- }), _void(), { kind: "mutation" }), method(object({
27379
- deviceId: number(),
27380
- level: number().min(40).max(100)
27381
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), NavigationFeaturesSchema), object({
27382
- deviceId: number(),
27383
- status: NavigationStatusSchema
27384
- });
27385
27512
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
27386
27513
  kind: "mutation",
27387
27514
  auth: "admin"
@@ -34690,13 +34817,13 @@ Object.freeze({
34690
34817
  addonId: null,
34691
34818
  access: "view"
34692
34819
  },
34693
- "storage.getDefaultLocation": {
34820
+ "storage.list": {
34694
34821
  capName: "storage",
34695
34822
  capScope: "system",
34696
34823
  addonId: null,
34697
34824
  access: "view"
34698
34825
  },
34699
- "storage.list": {
34826
+ "storage.listDrainProgress": {
34700
34827
  capName: "storage",
34701
34828
  capScope: "system",
34702
34829
  addonId: null,
@@ -34846,6 +34973,12 @@ Object.freeze({
34846
34973
  addonId: null,
34847
34974
  access: "view"
34848
34975
  },
34976
+ "storageOccupancy.getOccupancy": {
34977
+ capName: "storage-occupancy",
34978
+ capScope: "system",
34979
+ addonId: null,
34980
+ access: "view"
34981
+ },
34849
34982
  "storageProvider.abortUpload": {
34850
34983
  capName: "storage-provider",
34851
34984
  capScope: "system",