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