@camstack/addon-export-google 0.1.42 → 0.1.44

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.
@@ -77,7 +77,7 @@ function createApiDeviceGateway(deps) {
77
77
  };
78
78
  }
79
79
  //#endregion
80
- //#region ../types/dist/event-category-zAv7pMUz.mjs
80
+ //#region ../types/dist/event-category-CnLqLOKs.mjs
81
81
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
82
82
  EventCategory["SystemBoot"] = "system.boot";
83
83
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -272,6 +272,19 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
272
272
  EventCategory["ProcessCrashed"] = "process.crashed";
273
273
  EventCategory["ProcessRestartScheduled"] = "process.restart_scheduled";
274
274
  EventCategory["ProcessRestarted"] = "process.restarted";
275
+ /**
276
+ * The SET of storage locations changed — one was created, edited, enabled,
277
+ * disabled or deleted through `storage.upsertLocation` / `deleteLocation`.
278
+ *
279
+ * Telemetry, not a transaction (D8/D11): every consumer that re-resolves on
280
+ * it must also converge on its own periodic path, because a dropped event
281
+ * must not leave a node writing to yesterday's disk set forever. It exists
282
+ * because there was NO signal at all — an operator who added a second
283
+ * recordings disk in the admin UI got nothing, and the recorder kept its
284
+ * resolved locations until something else happened to re-resolve them
285
+ * (D387). Payload `StorageLocationsChangedPayload`.
286
+ */
287
+ EventCategory["StorageLocationsChanged"] = "storage.locations-changed";
275
288
  EventCategory["RecordingStarted"] = "recording.started";
276
289
  EventCategory["RecordingStopped"] = "recording.stopped";
277
290
  EventCategory["RecordingError"] = "recording.error";
@@ -7808,111 +7821,6 @@ var CameraSwitchGroupSchema = object({
7808
7821
  fetchedAt: number()
7809
7822
  });
7810
7823
  /**
7811
- * Per-component log CHANNELS — the gate a hot path consults, and the registry
7812
- * an addon declares its channels in.
7813
- *
7814
- * ## Two axes, deliberately separated
7815
- *
7816
- * - **DECLARATION** — which channels exist. Only the addon knows:
7817
- * `stream-broker` knows webrtc/ICE/RTP, `provider-reolink` knows
7818
- * baichuan/handshake. A hand-wired central list rots at the first addition,
7819
- * and rots silently. So a channel is declared where it is consulted, and the
7820
- * `log-channels` capability enumerates the declarations.
7821
- * - **VALUE** — at which level, for which scope, until when. That stays ONE
7822
- * thing: the logging settings document on the `system` cap. Two authorities
7823
- * over the values is the exact defect
7824
- * `docs/design/plans/2026-08-26-logging-per-componente.md` was written to
7825
- * remove; re-introducing it from the cure side would be grotesque.
7826
- *
7827
- * Nothing in this file reads a clock, an env var or a store. The registry is
7828
- * a MIRROR: it is moved only by {@link LogChannelRegistry.apply}, called off
7829
- * the hot path with a value somebody actually read, and by
7830
- * {@link LogChannelRegistry.tick}, called on a timer. A store read that fails
7831
- * never reaches here, so it can neither disarm an armed channel nor arm a
7832
- * disarmed one (D49).
7833
- *
7834
- * ## The canonical call shape
7835
- *
7836
- * ```ts
7837
- * if (CH_RTP.on && CH_RTP.wants(deviceId)) {
7838
- * CH_RTP.log(logger, 'rtp subscriber added', { tags: { deviceId }, meta: { ssrc } })
7839
- * }
7840
- * ```
7841
- *
7842
- * `on` is a plain boolean FIELD — never a getter — and it is the FIRST thing
7843
- * read. Disarmed, a call site costs one load and one branch, and the `extras`
7844
- * object literal is never constructed because it lives inside the branch. It
7845
- * is the same shape already proven in production at `stream-broker.ts:1650`,
7846
- * and the same discipline `LoggingGate.allowsDestination` uses for the
7847
- * destination floor (measured at 1.93 ns/call when off).
7848
- *
7849
- * ## Why a channel emits at `info`
7850
- *
7851
- * `loki-logging.addon.ts` pins the destination default at `info` and
7852
- * `loki-destination.ts` drops everything below it, so a line emitted at
7853
- * `debug` never reaches Loki and the hub's in-memory ring only holds ~35
7854
- * minutes. A diagnostic that cannot be read an hour later is worse than no
7855
- * diagnostic, because it looks done. {@link LogChannelGate.log} therefore
7856
- * emits at the channel's declared level, whose schema floor is `info`.
7857
- */
7858
- /**
7859
- * The level a channel writes at once armed.
7860
- *
7861
- * `debug` is absent ON PURPOSE and not by omission: below `info` the line does
7862
- * not leave the process for Loki, and the whole point of arming a channel is
7863
- * to read it later.
7864
- */
7865
- var LogChannelLevelSchema = _enum([
7866
- "info",
7867
- "warn",
7868
- "error"
7869
- ]);
7870
- /**
7871
- * What an addon declares about one channel. No value, no state — a
7872
- * declaration is inert.
7873
- */
7874
- var LogChannelDescriptorSchema = object({
7875
- /**
7876
- * Dotted `area.thing`, unique across the workspace. `area` is conventionally
7877
- * the addon's short name so an operator reading a channel list can tell who
7878
- * owns it without a second lookup.
7879
- */
7880
- name: string().min(3).regex(/^[a-z0-9-]+(\.[a-z0-9-]+)+$/, "a channel name is dotted lower-kebab, e.g. area.thing"),
7881
- /** One sentence: what the operator will SEE after arming it. */
7882
- description: string().min(1),
7883
- /** The level its lines are emitted at. Never below `info`. */
7884
- defaultLevel: LogChannelLevelSchema,
7885
- /**
7886
- * Whether this channel can be narrowed to a camera.
7887
- *
7888
- * `true` is a PROMISE with two halves, and both must hold: the gate is
7889
- * consulted with the numeric device id, AND every line the channel admits
7890
- * carries `tags: { deviceId }` with that same numeric id. The second half is
7891
- * what makes `| json | deviceId="617"` work in Loki — `loki-payload.ts`
7892
- * keeps `deviceId` out of the stream labels for cardinality, so the tag in
7893
- * the body is the only way to filter.
7894
- *
7895
- * A channel whose lines carry the device only in `meta` (or not at all) is
7896
- * declared `false`. Declaring it `true` anyway would be a lie the UI repeats:
7897
- * the operator narrows to one camera, sees nothing, and concludes the code
7898
- * path was never taken.
7899
- */
7900
- perDevice: boolean()
7901
- });
7902
- /**
7903
- * An armed window over one channel, as the document hands it to a mirror.
7904
- *
7905
- * A window is a DEADLINE, never a flag (ADR-0244): a channel somebody forgot
7906
- * expires by itself, which is the one failure a boolean cannot avoid.
7907
- */
7908
- var LogChannelWindowSchema = object({
7909
- channel: string().min(1),
7910
- /** Epoch ms the window closes at. */
7911
- armedUntilMs: number(),
7912
- /** `null` = every camera. A non-empty list narrows to those numeric ids. */
7913
- deviceIds: array(number().int()).readonly().nullable()
7914
- });
7915
- /**
7916
7824
  * Ops-log — the durable, append-only operations audit shared by the
7917
7825
  * recordings and events management surfaces.
7918
7826
  *
@@ -8834,6 +8742,21 @@ var StorageCleanupJobSchema = object({
8834
8742
  });
8835
8743
  var StorageCleanupStatusInputSchema = object({ jobId: string().optional() });
8836
8744
  /**
8745
+ * The one typed state of a storage location. Authoritative Zod schema — the TS
8746
+ * alias below is `z.infer<>` of it, never a second spelling.
8747
+ */
8748
+ var StorageLocationModeSchema = _enum([
8749
+ "active",
8750
+ "readonly",
8751
+ "drain",
8752
+ "disabled"
8753
+ ]);
8754
+ _enum([
8755
+ "normal",
8756
+ "never",
8757
+ "drain"
8758
+ ]);
8759
+ /**
8837
8760
  * `StorageLocationType` — an addon-declared id that identifies the *kind* of
8838
8761
  * storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
8839
8762
  * so the persisted record schema and the consumer-facing cap can both consume it
@@ -8858,8 +8781,11 @@ var StorageLocationTypeSchema = string().regex(/^[a-z][a-zA-Z0-9-]*$/);
8858
8781
  * `STORAGE_LOCATION_CARDINALITY` map has been removed.
8859
8782
  *
8860
8783
  * `id` is a stable namespaced string of the form `<type>:<slug>`.
8861
- * The default location for a type uses `id === <type>:default` by
8862
- * convention (the bare type ref like `'backups'` resolves to it).
8784
+ * The seed names its first instance `<type>:default` — a NAME, not a flag.
8785
+ * There is no default location any more (D383): `enabled` is the whole write
8786
+ * model, and a bare type ref resolves to the sole location of the type, or —
8787
+ * transitionally, only while legacy NULL-stamped rows exist — to the row whose
8788
+ * slug is `default`.
8863
8789
  *
8864
8790
  * `isSystem` is a legacy persisted flag. Seed still creates the initial
8865
8791
  * `<type>:default` locations; the flag is no longer a lock, a badge, or a
@@ -8880,23 +8806,37 @@ var StorageLocationSchema = object({
8880
8806
  * flag at upsert time, not here (the schema is provider-agnostic).
8881
8807
  */
8882
8808
  nodeId: string().optional(),
8883
- isDefault: boolean().default(false),
8884
8809
  isSystem: boolean().default(false),
8885
8810
  /**
8886
- * Operator opt-in: whether consumers that BALANCE across several locations
8887
- * of a type may write here. Recordings reads it today; event media and
8888
- * backups are the next consumers, which is why the flag lives on the
8889
- * location rather than in any one addon's store — nothing has to be
8890
- * extended to add the next consumer.
8811
+ * THE write switch, and the only one (D383). `enabled: true` means every
8812
+ * consumer that chooses a write target for this type may write here, and all
8813
+ * enabled locations of a type are used TOGETHER; `false` means read-only —
8814
+ * still read, still played back, still age-swept, still drained, never
8815
+ * written.
8891
8816
  *
8892
- * OPTIONAL, and ABSENT MEANS ACTIVE. Every location persisted before the
8893
- * flag existed reads back with no flag and keeps working exactly as before;
8894
- * that is the whole compat story, and it is why no migration ships with it.
8895
- * A newly CREATED sibling is stamped `false` by the orchestrator (creating a
8896
- * disk must not silently start writing to it); the default of a type is
8897
- * always stamped `true`.
8817
+ * OPTIONAL only for the wire: an upsert that omits it means "leave what is
8818
+ * stored" on an update and "born inert unless it is the first location of its
8819
+ * type" on a create. On a PERSISTED row absence is legacy and it means
8820
+ * enabled — {@link isLocationEnabled} is the one place that says so, and the
8821
+ * orchestrator stamps every flagless row `true` once at hydrate so absence
8822
+ * stops existing rather than being re-derived on every read.
8898
8823
  */
8899
8824
  enabled: boolean().optional(),
8825
+ /**
8826
+ * THE state of this location (D385), and the only authority on what may be
8827
+ * written, read or evicted here. Interpreted in exactly one place —
8828
+ * `storage-location-mode.ts` — which also folds the legacy
8829
+ * `enabled` / `config.readOnly` pair into a mode so an old row is never
8830
+ * ambiguous.
8831
+ *
8832
+ * OPTIONAL only for the wire and for rows written before D385: absence is
8833
+ * resolved by `resolveLocationMode`, and the orchestrator stamps every
8834
+ * unstamped row ONCE at hydrate so absence stops existing rather than being
8835
+ * re-derived on every read. `enabled` survives one release as a DERIVED
8836
+ * mirror (`mode === 'active'`); `withLocationMode` is the only writer of
8837
+ * either, so the two cannot disagree.
8838
+ */
8839
+ mode: StorageLocationModeSchema.optional(),
8900
8840
  /** COMPUTED at read time by the orchestrator (statfs of the backing volume
8901
8841
  * for node-local locations it can reach) — never persisted, absent when the
8902
8842
  * volume is remote/unreachable. The single capacity truth every UI reads. */
@@ -8904,13 +8844,50 @@ var StorageLocationSchema = object({
8904
8844
  totalBytes: number(),
8905
8845
  availableBytes: number()
8906
8846
  }).nullable().optional(),
8847
+ /**
8848
+ * How much of that volume CamStack ITSELF holds on this location (D388) —
8849
+ * COMPUTED at read time from the `storage-occupancy` providers' own figures,
8850
+ * never persisted, never a filesystem walk.
8851
+ *
8852
+ * **ABSENT MEANS UNKNOWN, never zero.** No provider has reported for this
8853
+ * location yet — nobody stores here, the owning addon is down, or the first
8854
+ * refresh has not completed. A UI must omit the segment rather than draw it
8855
+ * at zero, which would claim we occupy nothing (D315). It is an OBJECT and
8856
+ * not a bare number precisely so that a `?? 0` on the consuming side has to
8857
+ * be spelled out loud instead of appearing by accident.
8858
+ *
8859
+ * `measuredAtMs` is the OLDEST contributing measurement, so it is honest
8860
+ * about the whole figure rather than about its freshest part.
8861
+ */
8862
+ owned: object({
8863
+ bytes: number().int().nonnegative(),
8864
+ measuredAtMs: number().int().nonnegative()
8865
+ }).optional(),
8907
8866
  createdAt: number(),
8908
8867
  updatedAt: number()
8909
8868
  });
8869
+ object({ isDefault: boolean().optional() });
8870
+ /**
8871
+ * How far a `drain` has got (D386) — the read a UI renders, and nothing more.
8872
+ *
8873
+ * `estimatedEmptyAtMs` is derived from the growth the ratchet has actually
8874
+ * OBSERVED and is `null` when it has observed none. Never a fabricated date: a
8875
+ * drain with no observed growth has no honest ETA, and inventing one is how an
8876
+ * operator learns not to believe the screen.
8877
+ */
8878
+ var StorageDrainProgressSchema = object({
8879
+ locationId: string(),
8880
+ startedAtMs: number(),
8881
+ startBytes: number(),
8882
+ bytesRemaining: number(),
8883
+ drained: boolean(),
8884
+ estimatedEmptyAtMs: number().nullable()
8885
+ });
8910
8886
  /**
8911
8887
  * Reference accepted by consumer-facing `api.storage.*` calls.
8912
8888
  * Either:
8913
- * - a `StorageLocationType` (e.g. `'backups'`) → orchestrator resolves to the default of that type
8889
+ * - a `StorageLocationType` (e.g. `'backups'`) → the sole location of that type
8890
+ * (transitionally, the `<type>:default`-slugged row when several exist)
8914
8891
  * - a fully-qualified id (e.g. `'backups:nas-01'`) → addresses a specific instance
8915
8892
  *
8916
8893
  * The orchestrator's `resolveRef(ref)` handles both cases.
@@ -9086,6 +9063,111 @@ var DecoderSessionConfigSchema = object({
9086
9063
  */
9087
9064
  debug: boolean().optional()
9088
9065
  });
9066
+ /**
9067
+ * Per-component log CHANNELS — the gate a hot path consults, and the registry
9068
+ * an addon declares its channels in.
9069
+ *
9070
+ * ## Two axes, deliberately separated
9071
+ *
9072
+ * - **DECLARATION** — which channels exist. Only the addon knows:
9073
+ * `stream-broker` knows webrtc/ICE/RTP, `provider-reolink` knows
9074
+ * baichuan/handshake. A hand-wired central list rots at the first addition,
9075
+ * and rots silently. So a channel is declared where it is consulted, and the
9076
+ * `log-channels` capability enumerates the declarations.
9077
+ * - **VALUE** — at which level, for which scope, until when. That stays ONE
9078
+ * thing: the logging settings document on the `system` cap. Two authorities
9079
+ * over the values is the exact defect
9080
+ * `docs/design/plans/2026-08-26-logging-per-componente.md` was written to
9081
+ * remove; re-introducing it from the cure side would be grotesque.
9082
+ *
9083
+ * Nothing in this file reads a clock, an env var or a store. The registry is
9084
+ * a MIRROR: it is moved only by {@link LogChannelRegistry.apply}, called off
9085
+ * the hot path with a value somebody actually read, and by
9086
+ * {@link LogChannelRegistry.tick}, called on a timer. A store read that fails
9087
+ * never reaches here, so it can neither disarm an armed channel nor arm a
9088
+ * disarmed one (D49).
9089
+ *
9090
+ * ## The canonical call shape
9091
+ *
9092
+ * ```ts
9093
+ * if (CH_RTP.on && CH_RTP.wants(deviceId)) {
9094
+ * CH_RTP.log(logger, 'rtp subscriber added', { tags: { deviceId }, meta: { ssrc } })
9095
+ * }
9096
+ * ```
9097
+ *
9098
+ * `on` is a plain boolean FIELD — never a getter — and it is the FIRST thing
9099
+ * read. Disarmed, a call site costs one load and one branch, and the `extras`
9100
+ * object literal is never constructed because it lives inside the branch. It
9101
+ * is the same shape already proven in production at `stream-broker.ts:1650`,
9102
+ * and the same discipline `LoggingGate.allowsDestination` uses for the
9103
+ * destination floor (measured at 1.93 ns/call when off).
9104
+ *
9105
+ * ## Why a channel emits at `info`
9106
+ *
9107
+ * `loki-logging.addon.ts` pins the destination default at `info` and
9108
+ * `loki-destination.ts` drops everything below it, so a line emitted at
9109
+ * `debug` never reaches Loki and the hub's in-memory ring only holds ~35
9110
+ * minutes. A diagnostic that cannot be read an hour later is worse than no
9111
+ * diagnostic, because it looks done. {@link LogChannelGate.log} therefore
9112
+ * emits at the channel's declared level, whose schema floor is `info`.
9113
+ */
9114
+ /**
9115
+ * The level a channel writes at once armed.
9116
+ *
9117
+ * `debug` is absent ON PURPOSE and not by omission: below `info` the line does
9118
+ * not leave the process for Loki, and the whole point of arming a channel is
9119
+ * to read it later.
9120
+ */
9121
+ var LogChannelLevelSchema = _enum([
9122
+ "info",
9123
+ "warn",
9124
+ "error"
9125
+ ]);
9126
+ /**
9127
+ * What an addon declares about one channel. No value, no state — a
9128
+ * declaration is inert.
9129
+ */
9130
+ var LogChannelDescriptorSchema = object({
9131
+ /**
9132
+ * Dotted `area.thing`, unique across the workspace. `area` is conventionally
9133
+ * the addon's short name so an operator reading a channel list can tell who
9134
+ * owns it without a second lookup.
9135
+ */
9136
+ name: string().min(3).regex(/^[a-z0-9-]+(\.[a-z0-9-]+)+$/, "a channel name is dotted lower-kebab, e.g. area.thing"),
9137
+ /** One sentence: what the operator will SEE after arming it. */
9138
+ description: string().min(1),
9139
+ /** The level its lines are emitted at. Never below `info`. */
9140
+ defaultLevel: LogChannelLevelSchema,
9141
+ /**
9142
+ * Whether this channel can be narrowed to a camera.
9143
+ *
9144
+ * `true` is a PROMISE with two halves, and both must hold: the gate is
9145
+ * consulted with the numeric device id, AND every line the channel admits
9146
+ * carries `tags: { deviceId }` with that same numeric id. The second half is
9147
+ * what makes `| json | deviceId="617"` work in Loki — `loki-payload.ts`
9148
+ * keeps `deviceId` out of the stream labels for cardinality, so the tag in
9149
+ * the body is the only way to filter.
9150
+ *
9151
+ * A channel whose lines carry the device only in `meta` (or not at all) is
9152
+ * declared `false`. Declaring it `true` anyway would be a lie the UI repeats:
9153
+ * the operator narrows to one camera, sees nothing, and concludes the code
9154
+ * path was never taken.
9155
+ */
9156
+ perDevice: boolean()
9157
+ });
9158
+ /**
9159
+ * An armed window over one channel, as the document hands it to a mirror.
9160
+ *
9161
+ * A window is a DEADLINE, never a flag (ADR-0244): a channel somebody forgot
9162
+ * expires by itself, which is the one failure a boolean cannot avoid.
9163
+ */
9164
+ var LogChannelWindowSchema = object({
9165
+ channel: string().min(1),
9166
+ /** Epoch ms the window closes at. */
9167
+ armedUntilMs: number(),
9168
+ /** `null` = every camera. A non-empty list narrows to those numeric ids. */
9169
+ deviceIds: array(number().int()).readonly().nullable()
9170
+ });
9089
9171
  var MODEL_FORMATS = [
9090
9172
  "onnx",
9091
9173
  "coreml",
@@ -21839,7 +21921,7 @@ method(object({
21839
21921
  downloadId: string(),
21840
21922
  offset: number(),
21841
21923
  length: number()
21842
- }), _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({
21924
+ }), _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({
21843
21925
  createdAt: true,
21844
21926
  updatedAt: true
21845
21927
  }), StorageLocationSchema, {
@@ -21851,7 +21933,7 @@ method(object({
21851
21933
  }), _void(), {
21852
21934
  kind: "mutation",
21853
21935
  auth: "admin"
21854
- }), method(object({ id: string() }), object({
21936
+ }), method(_void(), array(StorageDrainProgressSchema).readonly()), method(object({ id: string() }), object({
21855
21937
  ok: boolean(),
21856
21938
  error: string().optional()
21857
21939
  }), { auth: "admin" }), method(_void(), array(ProviderListEntrySchema).readonly()), method(object({
@@ -21921,6 +22003,51 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
21921
22003
  kind: "mutation",
21922
22004
  auth: "admin"
21923
22005
  }), method(object({}), array(StorageMigrationJobSchema).readonly(), { auth: "admin" });
22006
+ /**
22007
+ * `storage-occupancy` — how many bytes an addon actually HOLDS on a storage
22008
+ * location (D388).
22009
+ *
22010
+ * ## Why this is not `storage-evictable`
22011
+ *
22012
+ * `storage-evictable.getEvictableUsage` looks like the same question and is
22013
+ * not, in two ways that both matter and both bite hardest on the locations an
22014
+ * operator most wants a figure for:
22015
+ *
22016
+ * - it reports the whole eviction DOMAIN, not the location. `recordings:default`
22017
+ * and `recordingsLow:default` deliberately share one root and evict as one
22018
+ * oldest-first pool, so both answer with the SAME combined total. As an
22019
+ * occupancy figure that double-counts the disk.
22020
+ * - it reports ZERO for a location whose eviction policy is `never` (D385) —
22021
+ * a `readonly` or `disabled` disk. Those are exactly the disks an operator
22022
+ * is retiring and staring at.
22023
+ *
22024
+ * So this is its own contract with its own quantity, and the quantity is
22025
+ * OCCUPIED: every byte the addon holds on that location, whether or not it
22026
+ * would ever be willing to delete it. A provider that can only answer
22027
+ * "evictable" must not register here — a number that silently means different
22028
+ * things per class is worse than no number.
22029
+ *
22030
+ * ## Absence is an answer
22031
+ *
22032
+ * A location nobody reports for is UNKNOWN, never zero (D315). The orchestrator
22033
+ * stamps `StorageLocation.owned` only for locations it has a report for, and
22034
+ * the field is an OBJECT rather than a bare number so that a `?? 0` on the
22035
+ * consuming side has to be written out loud instead of appearing by accident.
22036
+ *
22037
+ * `internal: true` — consumed by the orchestrator's `listLocations` stamp, never
22038
+ * a public client surface. Clients read the stamped `StorageLocation.owned`.
22039
+ */
22040
+ /** One provider's occupancy answer for one location. */
22041
+ var StorageOccupancyReportSchema = object({
22042
+ locationId: string(),
22043
+ /** Bytes this provider holds on THAT location — not its eviction domain, and
22044
+ * not net of what it is willing to delete. */
22045
+ ownedBytes: number().int().nonnegative(),
22046
+ /** When the provider last actually measured this. The orchestrator carries it
22047
+ * through so a UI can say how old the figure is instead of implying "now". */
22048
+ measuredAtMs: number().int().nonnegative()
22049
+ });
22050
+ method(object({ locationIds: array(string()).readonly() }), array(StorageOccupancyReportSchema).readonly(), { auth: "admin" });
21924
22051
  var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
21925
22052
  providerId: string().min(1),
21926
22053
  displayName: string().min(1),
@@ -23556,39 +23683,6 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, meth
23556
23683
  deviceId: number(),
23557
23684
  status: BatteryStatusSchema
23558
23685
  });
23559
- /**
23560
- * Network-link snapshot. Same shape for every provider (a Reolink wifi
23561
- * camera, a Home Assistant device with a signal-strength sensor, a Tapo
23562
- * plug): one slice under `device.runtimeState['network-link']`, one badge,
23563
- * one Home Assistant projection.
23564
- */
23565
- var NetworkLinkStatusSchema = object({
23566
- /** The link the device is on. `'unknown'` = not read yet, not "no link". */
23567
- type: _enum([
23568
- "wifi",
23569
- "ethernet",
23570
- "cellular",
23571
- "unknown"
23572
- ]),
23573
- /**
23574
- * Link quality, 0..100 inclusive, normalised by the provider from whatever
23575
- * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
23576
- * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
23577
- * one whose reading has not landed must not be drawn at 0 %. Consumers
23578
- * SKIP a null rather than coerce it.
23579
- */
23580
- signalPercent: number().min(0).max(100).nullable(),
23581
- /** Raw received signal strength in dBm, when the firmware reports one. */
23582
- rssiDbm: number().optional(),
23583
- /** Network name of a wireless link, when the firmware reports it. */
23584
- ssid: string().optional(),
23585
- /** Ms epoch of the last observation. Lets consumers reason about freshness. */
23586
- lastUpdated: number()
23587
- });
23588
- DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.Light, DeviceType.Lock, DeviceType.Siren, object({
23589
- deviceId: number(),
23590
- status: NetworkLinkStatusSchema
23591
- });
23592
23686
  object({
23593
23687
  on: boolean(),
23594
23688
  /** Ms epoch of the last transition. 0 if never observed. */
@@ -25954,6 +26048,236 @@ DeviceType.Camera, method(object({
25954
26048
  detection: NativeDetectionSchema
25955
26049
  });
25956
26050
  /**
26051
+ * `navigation` — a device-scoped capability that natively expresses the FULL
26052
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
26053
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
26054
+ *
26055
+ * Why a NEW cap rather than overloading `ptz`:
26056
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
26057
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
26058
+ * The two are different physical models: PTZ is absolute-position + presets,
26059
+ * navigation is momentary drive nudges + discrete robot ACTIONS
26060
+ * (dock / spot-clean / follow-pet / go-to-point / …).
26061
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
26062
+ * the reverse:
26063
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
26064
+ * / `getOptions`), and
26065
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
26066
+ * robot camera shows up in the existing PTZ control path without every
26067
+ * PTZ provider learning about robots. The mapping lives in the adapter,
26068
+ * not here (see the addon design note):
26069
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
26070
+ * ptz.stop() → navigation.stop()
26071
+ * ptz.goHome() → navigation.runAction('goHome')
26072
+ * ptz.getPresets() → navigation.listActions() (id→preset)
26073
+ * ptz.goToPreset(id) → navigation.runAction(id)
26074
+ *
26075
+ * ## Continuous drive
26076
+ *
26077
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
26078
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
26079
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
26080
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
26081
+ * coalesce them. The UI owns the cadence.
26082
+ *
26083
+ * ## The action dictionary
26084
+ *
26085
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
26086
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
26087
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
26088
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
26089
+ * vendor-specific list. `kind: 'action'` entries are triggered with
26090
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
26091
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
26092
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
26093
+ *
26094
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
26095
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
26096
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
26097
+ * every device handle. A future nodedreame publish adds a typed
26098
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
26099
+ * provider can then swap the raw calls for the typed methods with no change to
26100
+ * THIS contract.
26101
+ */
26102
+ /**
26103
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
26104
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
26105
+ * halts it.
26106
+ *
26107
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
26108
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
26109
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
26110
+ * vector by it (drivers without proportional drive ignore it).
26111
+ *
26112
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
26113
+ * axis alone; an all-undefined nudge is a no-op.
26114
+ */
26115
+ var NavigationMoveCommandSchema = object({
26116
+ pan: number().min(-1).max(1).optional(),
26117
+ tilt: number().min(-1).max(1).optional(),
26118
+ speed: number().min(0).max(1).optional()
26119
+ });
26120
+ /**
26121
+ * The enumerated discrete actions a navigation-capable robot can perform via
26122
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
26123
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
26124
+ * `playSound` (see the `sound` dictionary entries).
26125
+ */
26126
+ var NavigationActionIdSchema = _enum([
26127
+ "goHome",
26128
+ "locate",
26129
+ "spotClean",
26130
+ "findPet",
26131
+ "personFollow",
26132
+ "stop",
26133
+ "startClean",
26134
+ "pauseClean",
26135
+ "dockWash",
26136
+ "autoEmpty",
26137
+ "flashOn",
26138
+ "flashOff"
26139
+ ]);
26140
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
26141
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
26142
+ /**
26143
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
26144
+ * native panel and the PTZ mimic render as a button.
26145
+ *
26146
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
26147
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
26148
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
26149
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
26150
+ * - `label` — operator-facing English label.
26151
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
26152
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
26153
+ * PTZ render ONLY enabled entries. Data-driven: the provider
26154
+ * flips it from config, never by editing code.
26155
+ */
26156
+ var NavigationActionEntrySchema = object({
26157
+ id: string(),
26158
+ kind: NavigationEntryKindSchema,
26159
+ label: string(),
26160
+ icon: string(),
26161
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
26162
+ soundId: number().int().optional(),
26163
+ /** Per-device feature flag — render this entry only when true. */
26164
+ enabled: boolean()
26165
+ });
26166
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
26167
+ var NavigationPointSchema = object({
26168
+ x: number(),
26169
+ y: number()
26170
+ });
26171
+ /**
26172
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
26173
+ * The cap reports which are enabled so the UI / PTZ render only the controls
26174
+ * that are turned on for THIS device. Data-driven: the provider derives these
26175
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
26176
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
26177
+ * that are not dictionary entries.
26178
+ *
26179
+ * - `move` / `stop` — the momentary drive joystick.
26180
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
26181
+ * map-coordinate plumbing is wired.
26182
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
26183
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
26184
+ * - `light` — the on/off fill-light toggle (works anytime).
26185
+ * - `lightMode` — the auto/manual selector + manual level slider (a
26186
+ * camera-service control; needs an active stream).
26187
+ */
26188
+ var NavigationFeaturesSchema = object({
26189
+ move: boolean(),
26190
+ stop: boolean(),
26191
+ goToPoint: boolean(),
26192
+ runAction: boolean(),
26193
+ playSound: boolean(),
26194
+ light: boolean(),
26195
+ lightMode: boolean()
26196
+ });
26197
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
26198
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
26199
+ /**
26200
+ * Live navigation state so the UI can reflect what the robot is doing:
26201
+ * - `mode` — coarse activity (idle / cleaning / following / …).
26202
+ * - `following` — person/pet follow is currently armed.
26203
+ * - `flash` — the on-camera fill light is on.
26204
+ * - `lightMode` — auto vs manual fill-light mode.
26205
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
26206
+ * `lightMode === 'manual'`.
26207
+ */
26208
+ var NavigationStatusSchema = object({
26209
+ mode: _enum([
26210
+ "idle",
26211
+ "cleaning",
26212
+ "spot",
26213
+ "following",
26214
+ "goto",
26215
+ "returning",
26216
+ "paused",
26217
+ "unknown"
26218
+ ]),
26219
+ following: boolean(),
26220
+ flash: boolean(),
26221
+ lightMode: NavigationLightModeSchema,
26222
+ lightLevel: number().min(40).max(100),
26223
+ /** Ms epoch when the slice was last updated. */
26224
+ lastChangedAt: number()
26225
+ });
26226
+ NavigationStatusSchema.extend({ lastFetchedAt: number() });
26227
+ 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({
26228
+ deviceId: number(),
26229
+ actionId: NavigationActionIdSchema
26230
+ }), _void(), { kind: "mutation" }), method(object({
26231
+ deviceId: number(),
26232
+ soundId: number().int()
26233
+ }), _void(), { kind: "mutation" }), method(object({
26234
+ deviceId: number(),
26235
+ on: boolean()
26236
+ }), _void(), { kind: "mutation" }), method(object({
26237
+ deviceId: number(),
26238
+ mode: NavigationLightModeSchema,
26239
+ level: number().min(40).max(100).optional()
26240
+ }), _void(), { kind: "mutation" }), method(object({
26241
+ deviceId: number(),
26242
+ level: number().min(40).max(100)
26243
+ }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), NavigationFeaturesSchema), object({
26244
+ deviceId: number(),
26245
+ status: NavigationStatusSchema
26246
+ });
26247
+ /**
26248
+ * Network-link snapshot. Same shape for every provider (a Reolink wifi
26249
+ * camera, a Home Assistant device with a signal-strength sensor, a Tapo
26250
+ * plug): one slice under `device.runtimeState['network-link']`, one badge,
26251
+ * one Home Assistant projection.
26252
+ */
26253
+ var NetworkLinkStatusSchema = object({
26254
+ /** The link the device is on. `'unknown'` = not read yet, not "no link". */
26255
+ type: _enum([
26256
+ "wifi",
26257
+ "ethernet",
26258
+ "cellular",
26259
+ "unknown"
26260
+ ]),
26261
+ /**
26262
+ * Link quality, 0..100 inclusive, normalised by the provider from whatever
26263
+ * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
26264
+ * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
26265
+ * one whose reading has not landed must not be drawn at 0 %. Consumers
26266
+ * SKIP a null rather than coerce it.
26267
+ */
26268
+ signalPercent: number().min(0).max(100).nullable(),
26269
+ /** Raw received signal strength in dBm, when the firmware reports one. */
26270
+ rssiDbm: number().optional(),
26271
+ /** Network name of a wireless link, when the firmware reports it. */
26272
+ ssid: string().optional(),
26273
+ /** Ms epoch of the last observation. Lets consumers reason about freshness. */
26274
+ lastUpdated: number()
26275
+ });
26276
+ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.Light, DeviceType.Lock, DeviceType.Siren, object({
26277
+ deviceId: number(),
26278
+ status: NetworkLinkStatusSchema
26279
+ });
26280
+ /**
25957
26281
  * network-quality — system-scoped singleton capability tracking RTT,
25958
26282
  * jitter, and observed/peak bandwidth per device + per client.
25959
26283
  *
@@ -27195,203 +27519,6 @@ DeviceType.Camera, method(object({ deviceId: number() }), PtzAutotrackStatusSche
27195
27519
  deviceId: number(),
27196
27520
  status: PtzAutotrackStatusSchema
27197
27521
  });
27198
- /**
27199
- * `navigation` — a device-scoped capability that natively expresses the FULL
27200
- * navigation / action surface of a robot that DRIVES ITSELF and carries an
27201
- * on-board camera (the Dreame robot-vacuum camera is the first provider).
27202
- *
27203
- * Why a NEW cap rather than overloading `ptz`:
27204
- * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
27205
- * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
27206
- * The two are different physical models: PTZ is absolute-position + presets,
27207
- * navigation is momentary drive nudges + discrete robot ACTIONS
27208
- * (dock / spot-clean / follow-pet / go-to-point / …).
27209
- * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
27210
- * the reverse:
27211
- * 1. a native CamStack navigation panel (data-driven from `listActions`
27212
- * / `getOptions`), and
27213
- * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
27214
- * robot camera shows up in the existing PTZ control path without every
27215
- * PTZ provider learning about robots. The mapping lives in the adapter,
27216
- * not here (see the addon design note):
27217
- * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
27218
- * ptz.stop() → navigation.stop()
27219
- * ptz.goHome() → navigation.runAction('goHome')
27220
- * ptz.getPresets() → navigation.listActions() (id→preset)
27221
- * ptz.goToPreset(id) → navigation.runAction(id)
27222
- *
27223
- * ## Continuous drive
27224
- *
27225
- * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
27226
- * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
27227
- * one `stop()` on release — exactly like the robot app's remote-drive joystick.
27228
- * The provider forwards EACH `move` to one drive write; it must NOT debounce or
27229
- * coalesce them. The UI owns the cadence.
27230
- *
27231
- * ## The action dictionary
27232
- *
27233
- * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
27234
- * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
27235
- * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
27236
- * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
27237
- * vendor-specific list. `kind: 'action'` entries are triggered with
27238
- * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
27239
- * (the entry carries the `soundId` to pass). The general primitives — `move`,
27240
- * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
27241
- *
27242
- * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
27243
- * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
27244
- * that the currently-published `@apocaliss92/nodedreame` already exposes on
27245
- * every device handle. A future nodedreame publish adds a typed
27246
- * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
27247
- * provider can then swap the raw calls for the typed methods with no change to
27248
- * THIS contract.
27249
- */
27250
- /**
27251
- * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
27252
- * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
27253
- * halts it.
27254
- *
27255
- * - `pan` — turn: negative = left, positive = right, 0 = straight.
27256
- * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
27257
- * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
27258
- * vector by it (drivers without proportional drive ignore it).
27259
- *
27260
- * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
27261
- * axis alone; an all-undefined nudge is a no-op.
27262
- */
27263
- var NavigationMoveCommandSchema = object({
27264
- pan: number().min(-1).max(1).optional(),
27265
- tilt: number().min(-1).max(1).optional(),
27266
- speed: number().min(0).max(1).optional()
27267
- });
27268
- /**
27269
- * The enumerated discrete actions a navigation-capable robot can perform via
27270
- * `runAction`. This is the CLOSED vocabulary; a given device advertises the
27271
- * subset it supports through `listActions`. Sounds are NOT here — they go through
27272
- * `playSound` (see the `sound` dictionary entries).
27273
- */
27274
- var NavigationActionIdSchema = _enum([
27275
- "goHome",
27276
- "locate",
27277
- "spotClean",
27278
- "findPet",
27279
- "personFollow",
27280
- "stop",
27281
- "startClean",
27282
- "pauseClean",
27283
- "dockWash",
27284
- "autoEmpty",
27285
- "flashOn",
27286
- "flashOff"
27287
- ]);
27288
- /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
27289
- var NavigationEntryKindSchema = _enum(["action", "sound"]);
27290
- /**
27291
- * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
27292
- * native panel and the PTZ mimic render as a button.
27293
- *
27294
- * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
27295
- * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
27296
- * (`sound:meow`) whose `soundId` is passed to `playSound`.
27297
- * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
27298
- * - `label` — operator-facing English label.
27299
- * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
27300
- * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
27301
- * PTZ render ONLY enabled entries. Data-driven: the provider
27302
- * flips it from config, never by editing code.
27303
- */
27304
- var NavigationActionEntrySchema = object({
27305
- id: string(),
27306
- kind: NavigationEntryKindSchema,
27307
- label: string(),
27308
- icon: string(),
27309
- /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
27310
- soundId: number().int().optional(),
27311
- /** Per-device feature flag — render this entry only when true. */
27312
- enabled: boolean()
27313
- });
27314
- /** Coordinates for `goToPoint` — a point on the robot's live map. */
27315
- var NavigationPointSchema = object({
27316
- x: number(),
27317
- y: number()
27318
- });
27319
- /**
27320
- * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
27321
- * The cap reports which are enabled so the UI / PTZ render only the controls
27322
- * that are turned on for THIS device. Data-driven: the provider derives these
27323
- * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
27324
- * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
27325
- * that are not dictionary entries.
27326
- *
27327
- * - `move` / `stop` — the momentary drive joystick.
27328
- * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
27329
- * map-coordinate plumbing is wired.
27330
- * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
27331
- * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
27332
- * - `light` — the on/off fill-light toggle (works anytime).
27333
- * - `lightMode` — the auto/manual selector + manual level slider (a
27334
- * camera-service control; needs an active stream).
27335
- */
27336
- var NavigationFeaturesSchema = object({
27337
- move: boolean(),
27338
- stop: boolean(),
27339
- goToPoint: boolean(),
27340
- runAction: boolean(),
27341
- playSound: boolean(),
27342
- light: boolean(),
27343
- lightMode: boolean()
27344
- });
27345
- /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
27346
- var NavigationLightModeSchema = _enum(["auto", "manual"]);
27347
- /**
27348
- * Live navigation state so the UI can reflect what the robot is doing:
27349
- * - `mode` — coarse activity (idle / cleaning / following / …).
27350
- * - `following` — person/pet follow is currently armed.
27351
- * - `flash` — the on-camera fill light is on.
27352
- * - `lightMode` — auto vs manual fill-light mode.
27353
- * - `lightLevel` — manual fill-light level (40..100); meaningful when
27354
- * `lightMode === 'manual'`.
27355
- */
27356
- var NavigationStatusSchema = object({
27357
- mode: _enum([
27358
- "idle",
27359
- "cleaning",
27360
- "spot",
27361
- "following",
27362
- "goto",
27363
- "returning",
27364
- "paused",
27365
- "unknown"
27366
- ]),
27367
- following: boolean(),
27368
- flash: boolean(),
27369
- lightMode: NavigationLightModeSchema,
27370
- lightLevel: number().min(40).max(100),
27371
- /** Ms epoch when the slice was last updated. */
27372
- lastChangedAt: number()
27373
- });
27374
- NavigationStatusSchema.extend({ lastFetchedAt: number() });
27375
- 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({
27376
- deviceId: number(),
27377
- actionId: NavigationActionIdSchema
27378
- }), _void(), { kind: "mutation" }), method(object({
27379
- deviceId: number(),
27380
- soundId: number().int()
27381
- }), _void(), { kind: "mutation" }), method(object({
27382
- deviceId: number(),
27383
- on: boolean()
27384
- }), _void(), { kind: "mutation" }), method(object({
27385
- deviceId: number(),
27386
- mode: NavigationLightModeSchema,
27387
- level: number().min(40).max(100).optional()
27388
- }), _void(), { kind: "mutation" }), method(object({
27389
- deviceId: number(),
27390
- level: number().min(40).max(100)
27391
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), NavigationFeaturesSchema), object({
27392
- deviceId: number(),
27393
- status: NavigationStatusSchema
27394
- });
27395
27522
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
27396
27523
  kind: "mutation",
27397
27524
  auth: "admin"
@@ -34707,13 +34834,13 @@ Object.freeze({
34707
34834
  addonId: null,
34708
34835
  access: "view"
34709
34836
  },
34710
- "storage.getDefaultLocation": {
34837
+ "storage.list": {
34711
34838
  capName: "storage",
34712
34839
  capScope: "system",
34713
34840
  addonId: null,
34714
34841
  access: "view"
34715
34842
  },
34716
- "storage.list": {
34843
+ "storage.listDrainProgress": {
34717
34844
  capName: "storage",
34718
34845
  capScope: "system",
34719
34846
  addonId: null,
@@ -34863,6 +34990,12 @@ Object.freeze({
34863
34990
  addonId: null,
34864
34991
  access: "view"
34865
34992
  },
34993
+ "storageOccupancy.getOccupancy": {
34994
+ capName: "storage-occupancy",
34995
+ capScope: "system",
34996
+ addonId: null,
34997
+ access: "view"
34998
+ },
34866
34999
  "storageProvider.abortUpload": {
34867
35000
  capName: "storage-provider",
34868
35001
  capScope: "system",