@camstack/system 1.2.162 → 1.2.164

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.
Files changed (58) hide show
  1. package/dist/addon-runner.js +1 -1
  2. package/dist/addon-runner.mjs +1 -1
  3. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  4. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  5. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  6. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  7. package/dist/builtins/alerts/alerts.addon.js +1 -1
  8. package/dist/builtins/alerts/alerts.addon.mjs +1 -1
  9. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +1 -1
  10. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +1 -1
  11. package/dist/builtins/console-logging/index.js +1 -1
  12. package/dist/builtins/console-logging/index.mjs +1 -1
  13. package/dist/builtins/core-blocks/core-blocks.addon.js +1 -1
  14. package/dist/builtins/core-blocks/core-blocks.addon.mjs +1 -1
  15. package/dist/builtins/device-manager/device-manager.addon.js +17 -5
  16. package/dist/builtins/device-manager/device-manager.addon.mjs +17 -5
  17. package/dist/builtins/device-manager/device-projection.d.ts +12 -2
  18. package/dist/builtins/doorbell/virtual-doorbell.addon.js +1 -1
  19. package/dist/builtins/doorbell/virtual-doorbell.addon.mjs +1 -1
  20. package/dist/builtins/hub-forwarder/index.js +1 -1
  21. package/dist/builtins/hub-forwarder/index.mjs +1 -1
  22. package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  23. package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  24. package/dist/builtins/local-auth/local-auth.addon.js +1 -1
  25. package/dist/builtins/local-auth/local-auth.addon.mjs +1 -1
  26. package/dist/builtins/local-network/local-network.addon.js +1 -1
  27. package/dist/builtins/local-network/local-network.addon.mjs +1 -1
  28. package/dist/builtins/loki-logging/index.js +1 -1
  29. package/dist/builtins/loki-logging/index.mjs +1 -1
  30. package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  31. package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  32. package/dist/builtins/platform-probe/index.js +1 -1
  33. package/dist/builtins/platform-probe/index.mjs +1 -1
  34. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  35. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  36. package/dist/builtins/snapshot/index.js +1 -1
  37. package/dist/builtins/snapshot/index.mjs +1 -1
  38. package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  39. package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  40. package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +0 -0
  41. package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +0 -0
  42. package/dist/builtins/storage-orchestrator/storage-migration-coordinator.d.ts +1 -18
  43. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +43 -75
  44. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +43 -75
  45. package/dist/builtins/storage-orchestrator/storage-orchestrator.service.d.ts +6 -7
  46. package/dist/builtins/system-config/system-config.addon.js +1 -1
  47. package/dist/builtins/system-config/system-config.addon.mjs +1 -1
  48. package/dist/builtins/winston-logging/index.js +1 -1
  49. package/dist/builtins/winston-logging/index.mjs +1 -1
  50. package/dist/{dist-CCIBlacf.js → dist-BhE8zNfY.js} +346 -1
  51. package/dist/{dist-5Xzz_kCk.mjs → dist-BpsHt11f.mjs} +346 -1
  52. package/dist/index.js +74 -11
  53. package/dist/index.mjs +74 -11
  54. package/dist/{manifest-system-deps-shjDShSB.mjs → manifest-system-deps-Bk_XLYbB.mjs} +1 -1
  55. package/dist/{manifest-system-deps-alrkBKVQ.js → manifest-system-deps-CJLqfJUs.js} +1 -1
  56. package/dist/{retired-settings-keys-BxV3e2Km.js → retired-settings-keys-CqDbI-vK.js} +1 -1
  57. package/dist/{retired-settings-keys-CnuALlaP.mjs → retired-settings-keys-DLwieFXR.mjs} +1 -1
  58. package/package.json +1 -1
@@ -4192,6 +4192,20 @@ var RelocateJobSchema = zod.z.object({
4192
4192
  * in its row, not in its name, so `MediaRelocateEngine` never reconciles one.
4193
4193
  */
4194
4194
  rowsReconciled: zod.z.number().int().nonnegative().optional(),
4195
+ /**
4196
+ * Rows this run FORGOT because the file they name is not on disk.
4197
+ *
4198
+ * The mover derived the path from the row's own fields and `stat`ed it; an
4199
+ * ENOENT there is a per-path confirmation that the segment is gone (D296),
4200
+ * and the durable row is dropped through the same channel eviction uses. It
4201
+ * is reported for the same reason `rowsReconciled` is: this is a durable
4202
+ * mutation nobody asked for, and a migration that quietly erases hour rows is
4203
+ * the same failure as one that quietly skips them (D295).
4204
+ *
4205
+ * The production drain of 2026-08-30 would have reported 11 074 here — the
4206
+ * ledger claimed 5.65 GB of footage that no longer existed.
4207
+ */
4208
+ rowsForgotten: zod.z.number().int().nonnegative().optional(),
4195
4209
  startedAt: zod.z.number(),
4196
4210
  finishedAt: zod.z.number().nullable(),
4197
4211
  error: zod.z.string().nullable()
@@ -4587,6 +4601,91 @@ var RelocateResidueSchema = zod.z.object({
4587
4601
  segments: zod.z.number().int().nonnegative(),
4588
4602
  bytes: zod.z.number().int().nonnegative()
4589
4603
  }).nullable();
4604
+ /**
4605
+ * Ask one location whether its durable hour rows describe the disk — the walk
4606
+ * (D319).
4607
+ *
4608
+ * `apply` DEFAULTS TO FALSE and that default is the product: the operator's
4609
+ * missing tool is the question, and the dry run is how they sanity-check the
4610
+ * destructive run before authorising it.
4611
+ */
4612
+ var LedgerWalkInputSchema = zod.z.object({
4613
+ locationId: zod.z.string().min(1),
4614
+ /** Forget the confirmed-absent rows, rather than only counting them. */
4615
+ apply: zod.z.boolean().optional(),
4616
+ /** Narrow to one camera. */
4617
+ deviceId: zod.z.number().int().positive().optional(),
4618
+ /** Narrow to these recording profiles; empty/absent = every profile. */
4619
+ profiles: zod.z.array(zod.z.string().min(1)).optional()
4620
+ });
4621
+ /** Why a whole walk did nothing. Every one leaves the ledger untouched. */
4622
+ var LedgerWalkRefusalSchema = zod.z.enum([
4623
+ "location-unknown",
4624
+ "source-writable",
4625
+ "no-ledger",
4626
+ "archive-unreadable",
4627
+ "anchor-absent",
4628
+ "anchor-unreadable",
4629
+ "anchor-moved"
4630
+ ]);
4631
+ zod.z.enum([
4632
+ "live-tail",
4633
+ "listing-error",
4634
+ "path-mismatch",
4635
+ "durable-refused"
4636
+ ]);
4637
+ /** Every skip reason, always present, always a number — so a reason that never
4638
+ * fired reports as zero rather than absent and the report shape is constant
4639
+ * between passes. Spelled out rather than `z.record` for exactly that. */
4640
+ var LedgerWalkSkipCountsSchema = zod.z.object({
4641
+ "live-tail": zod.z.number().int().nonnegative(),
4642
+ "listing-error": zod.z.number().int().nonnegative(),
4643
+ "path-mismatch": zod.z.number().int().nonnegative(),
4644
+ "durable-refused": zod.z.number().int().nonnegative()
4645
+ });
4646
+ /** One camera's share of a walk, so a report names cameras and not rows. */
4647
+ var LedgerWalkDeviceReportSchema = zod.z.object({
4648
+ deviceId: zod.z.number().int(),
4649
+ hoursWalked: zod.z.number().int().nonnegative(),
4650
+ hoursMissing: zod.z.number().int().nonnegative(),
4651
+ ghostSegments: zod.z.number().int().nonnegative(),
4652
+ ghostBytes: zod.z.number().int().nonnegative(),
4653
+ forgottenSegments: zod.z.number().int().nonnegative(),
4654
+ orphanFiles: zod.z.number().int().nonnegative()
4655
+ });
4656
+ /**
4657
+ * What one walk claimed, listed, found and (only when armed) forgot.
4658
+ *
4659
+ * `archiveSegments` is the **M** and `segmentsClaimed` the **N** (D295), so a
4660
+ * walk that saw a fraction of the location is visible in its own report rather
4661
+ * than in the absence of one.
4662
+ */
4663
+ var LedgerWalkReportSchema = zod.z.object({
4664
+ locationId: zod.z.string(),
4665
+ applied: zod.z.boolean(),
4666
+ refused: LedgerWalkRefusalSchema.nullable(),
4667
+ archiveSegments: zod.z.number().int().nonnegative().nullable(),
4668
+ archiveBytes: zod.z.number().int().nonnegative().nullable(),
4669
+ hoursClaimed: zod.z.number().int().nonnegative(),
4670
+ hoursWalked: zod.z.number().int().nonnegative(),
4671
+ hoursMissing: zod.z.number().int().nonnegative(),
4672
+ /** `readdir` calls issued — the cost, stated in the unit that is paid. */
4673
+ listings: zod.z.number().int().nonnegative(),
4674
+ segmentsClaimed: zod.z.number().int().nonnegative(),
4675
+ ghostSegments: zod.z.number().int().nonnegative(),
4676
+ ghostBytes: zod.z.number().int().nonnegative(),
4677
+ ghostHoursWhole: zod.z.number().int().nonnegative(),
4678
+ forgottenSegments: zod.z.number().int().nonnegative(),
4679
+ forgottenBytes: zod.z.number().int().nonnegative(),
4680
+ /** Files under a claimed hour that no durable row names. Never deleted. */
4681
+ orphanFiles: zod.z.number().int().nonnegative(),
4682
+ orphanSample: zod.z.array(zod.z.string()).readonly(),
4683
+ hoursSkipped: zod.z.number().int().nonnegative(),
4684
+ skippedByReason: LedgerWalkSkipCountsSchema,
4685
+ /** The walk stopped at its per-pass hour bound with claims unwalked. */
4686
+ bounded: zod.z.boolean(),
4687
+ byDevice: zod.z.array(LedgerWalkDeviceReportSchema).readonly()
4688
+ });
4590
4689
  /** How many rows a media pass would still act on against a given target — the
4591
4690
  * media lane's denominator AND its residue, from ONE derivation so the two can
4592
4691
  * never disagree. `null` = the count could not be taken. */
@@ -17777,13 +17876,15 @@ var ListGroupsPageSchema = zod.z.object({
17777
17876
  groups: zod.z.array(AnalyticsGroupRecordSchema).readonly(),
17778
17877
  nextCursor: zod.z.string().nullable()
17779
17878
  });
17879
+ var KEY_EVENTS_DEFAULT_LIMIT = 50;
17880
+ var KEY_EVENTS_MAX_LIMIT = 200;
17780
17881
  var KeyEventQueryInput = zod.z.object({
17781
17882
  deviceId: zod.z.number(),
17782
17883
  /** Window lower bound (track firstSeen ≥ since). */
17783
17884
  since: zod.z.number(),
17784
17885
  /** Window upper bound (track firstSeen ≤ until). */
17785
17886
  until: zod.z.number(),
17786
- limit: zod.z.number().int().min(1).max(200).default(50),
17887
+ limit: zod.z.number().int().min(1).max(KEY_EVENTS_MAX_LIMIT).default(KEY_EVENTS_DEFAULT_LIMIT),
17787
17888
  /** Drop tracks scoring below this importance. */
17788
17889
  minImportance: zod.z.number().min(0).max(1).optional(),
17789
17890
  /** Restrict to a single class (e.g. 'person'). */
@@ -17805,6 +17906,32 @@ var KeyEventSchema = zod.z.object({
17805
17906
  ...TrackFlagFields,
17806
17907
  ...TrackRetrainFields
17807
17908
  });
17909
+ /** `getKeyEvents`' window and filters, asked of a SET of cameras at once. */
17910
+ var KeyEventBatchQueryInput = zod.z.object({
17911
+ deviceIds: zod.z.array(zod.z.number()).min(1).max(200),
17912
+ since: zod.z.number(),
17913
+ until: zod.z.number(),
17914
+ /** Applied PER CAMERA, exactly as `getKeyEvents.limit` is — never a total
17915
+ * across the set, which would let a busy camera starve a quiet one of its
17916
+ * rows and change what the merged feed contains. */
17917
+ limit: zod.z.number().int().min(1).max(KEY_EVENTS_MAX_LIMIT).default(KEY_EVENTS_DEFAULT_LIMIT),
17918
+ minImportance: zod.z.number().min(0).max(1).optional(),
17919
+ classFilter: zod.z.string().optional()
17920
+ });
17921
+ /**
17922
+ * One camera's key events in a batch answer.
17923
+ *
17924
+ * The row exists for every requested id. `getKeyEvents` degrades to `[]` on
17925
+ * error rather than throwing, so a camera whose store read failed and one with
17926
+ * no events in the window were ALREADY indistinguishable per camera — the
17927
+ * batch does not make that worse, and the row keeps the deviceId the single
17928
+ * method's output never carried (the caller used to stamp it from the fan-out
17929
+ * key, which only worked because there was one query per camera).
17930
+ */
17931
+ var KeyEventsForDeviceSchema = zod.z.object({
17932
+ deviceId: zod.z.number(),
17933
+ events: zod.z.array(KeyEventSchema).readonly()
17934
+ });
17808
17935
  zod.z.object({
17809
17936
  trackId: zod.z.string(),
17810
17937
  className: zod.z.string(),
@@ -18024,6 +18151,47 @@ var RebuildStatusSchema = zod.z.object({
18024
18151
  /** Present when the pass ended by throwing. */
18025
18152
  error: zod.z.string().nullable()
18026
18153
  });
18154
+ /**
18155
+ * Acknowledgement that a debug-media reclaim STARTED.
18156
+ *
18157
+ * The pass is paced at ~2 MB/s over a standing 100 GB — tens of minutes — so
18158
+ * it runs detached and this returns immediately. Awaiting it is how the
18159
+ * `addons.custom` door hit the 60 s UDS deadline while the walk carried on
18160
+ * with no status. Poll {@link pipelineAnalyticsCapability.methods.getMediaReclaimStatus}.
18161
+ */
18162
+ var MediaReclaimStartResultSchema = zod.z.object({
18163
+ started: zod.z.boolean(),
18164
+ /** True when a pass was already running; the new request is ignored. */
18165
+ alreadyRunning: zod.z.boolean()
18166
+ });
18167
+ var MediaReclaimInputSchema = zod.z.object({
18168
+ mode: zod.z.enum(["report", "reclaim"]).default("report"),
18169
+ scopes: zod.z.array(zod.z.enum(["motion-still", "track-filmstrip"])).min(1).optional(),
18170
+ deviceIds: zod.z.array(zod.z.number().int()).min(1).optional(),
18171
+ restart: zod.z.boolean().optional(),
18172
+ pageSize: zod.z.number().int().min(50).max(5e3).optional(),
18173
+ maxRowsPerDevice: zod.z.number().int().min(1).max(5e5).optional(),
18174
+ maxReclaimPerDevice: zod.z.number().int().min(1).max(5e5).optional(),
18175
+ maxBytesPerRun: zod.z.number().int().min(1).optional(),
18176
+ budgetMinutes: zod.z.number().int().min(1).max(720).optional(),
18177
+ throttleBytesPerSec: zod.z.number().int().min(64 * 1024).optional(),
18178
+ graceMinutes: zod.z.number().int().min(1).max(10080).optional()
18179
+ });
18180
+ var MediaReclaimStatusSchema = zod.z.object({
18181
+ running: zod.z.boolean(),
18182
+ mode: zod.z.enum(["report", "reclaim"]).nullable(),
18183
+ totalExamined: zod.z.number(),
18184
+ totalEligible: zod.z.number(),
18185
+ totalReclaimed: zod.z.number(),
18186
+ totalBytesReclaimed: zod.z.number(),
18187
+ totalRefused: zod.z.number(),
18188
+ /** Device+scope windows finished in this pass. */
18189
+ devicesDone: zod.z.number(),
18190
+ complete: zod.z.boolean().nullable(),
18191
+ startedAtMs: zod.z.number().nullable(),
18192
+ finishedAtMs: zod.z.number().nullable(),
18193
+ error: zod.z.string().nullable()
18194
+ });
18027
18195
  var ReplayFrameInputSchema = zod.z.object({
18028
18196
  timestamp: zod.z.number(),
18029
18197
  frame: PipelineRunResultBridge
@@ -18154,6 +18322,21 @@ var pipelineAnalyticsCapability = {
18154
18322
  * scored on-read (no write). Degrades to `[]` on error.
18155
18323
  */
18156
18324
  getKeyEvents: method(KeyEventQueryInput, zod.z.array(KeyEventSchema).readonly()),
18325
+ /**
18326
+ * The same ranking, for a SET of cameras, in one round trip.
18327
+ *
18328
+ * The Detection Intelligence events feed asks this of every selected
18329
+ * camera and re-asks on a 30s timer. Fanned out client-side that is N
18330
+ * round trips — browser → hub → post-analysis — for N independent,
18331
+ * already-indexed store queries. Batched, the queries are unchanged and
18332
+ * run concurrently INSIDE the owner; only the transport collapses.
18333
+ *
18334
+ * Deliberately per-device rather than pre-merged: `limit` stays per
18335
+ * camera (a total would let a busy camera starve a quiet one), and a
18336
+ * caller that renders one camera's lane needs to know which camera a row
18337
+ * came from. `getKeyEvents` stays for single-device callers.
18338
+ */
18339
+ getKeyEventsBatch: method(KeyEventBatchQueryInput, zod.z.array(KeyEventsForDeviceSchema).readonly()),
18157
18340
  /** Server-side bucketed event counts for the 24-hour timeline.
18158
18341
  * Returns one entry per non-empty bucket; empty buckets are omitted. */
18159
18342
  getEventDensity: method(zod.z.object({
@@ -18432,6 +18615,20 @@ var pipelineAnalyticsCapability = {
18432
18615
  auth: "admin"
18433
18616
  }),
18434
18617
  /**
18618
+ * Reclaim the standing debug-media backlog (motion-visit stills + track
18619
+ * filmstrips). DETACHED: returns `{ started }` immediately. The pass is
18620
+ * tens of minutes; awaiting it is a timeout, not a verdict. Dry-run unless
18621
+ * `mode: 'reclaim'`. Poll `getMediaReclaimStatus`.
18622
+ */
18623
+ reclaimDebugMedia: method(MediaReclaimInputSchema, MediaReclaimStartResultSchema, {
18624
+ kind: "mutation",
18625
+ auth: "admin"
18626
+ }),
18627
+ getMediaReclaimStatus: method(zod.z.object({}), MediaReclaimStatusSchema, {
18628
+ kind: "query",
18629
+ auth: "admin"
18630
+ }),
18631
+ /**
18435
18632
  * The CHEAP QUESTION, asked before any media moves: how big is the dataset
18436
18633
  * the marked (`markForTrain`) tracks would produce?
18437
18634
  *
@@ -30023,6 +30220,23 @@ var recordingCapability = {
30023
30220
  kind: "query",
30024
30221
  auth: "admin"
30025
30222
  }),
30223
+ /**
30224
+ * Does this location's LEDGER tell the truth about its disk? (D319)
30225
+ *
30226
+ * One `readdir` per claimed hour, diffed both ways: durable rows whose file
30227
+ * is not there, and files no durable row names. `apply` defaults to FALSE —
30228
+ * the report is the product, and the dry run is how an operator
30229
+ * sanity-checks the destructive run before authorising it.
30230
+ *
30231
+ * REFUSES a source that is still a write target: a listing of a live
30232
+ * location is a lower bound, which is not the strong evidence that lets
30233
+ * this pass forget without a budget. A live location is reconciled by the
30234
+ * mover, under D318's bound.
30235
+ */
30236
+ reconcileLedgerAgainstDisk: method(LedgerWalkInputSchema, LedgerWalkReportSchema, {
30237
+ kind: "mutation",
30238
+ auth: "admin"
30239
+ }),
30026
30240
  /** Cancel a running or queued relocate job. A queued job never runs. */
30027
30241
  cancelRelocateJob: method(zod.z.object({ jobId: zod.z.string() }), zod.z.object({ cancelled: zod.z.boolean() }), {
30028
30242
  kind: "mutation",
@@ -30457,6 +30671,25 @@ var SceneMonitorStatusSchema = zod.z.object({
30457
30671
  monitors: zod.z.array(SceneMonitorSchema),
30458
30672
  lastFetchedAt: zod.z.number()
30459
30673
  });
30674
+ /**
30675
+ * One camera's row in a `listScenesBatch` answer.
30676
+ *
30677
+ * `status` is NULLABLE and the nullability is the whole point. `scene-monitor`
30678
+ * is a `defaultActive` wrapper, so every camera is asked; a camera whose
30679
+ * provider is absent (pipeline-analytics not deployed, the post-processing node
30680
+ * down) cannot answer, and that is not the same fact as a camera with no scenes
30681
+ * configured. Fanned out per camera the difference was visible — one query
30682
+ * errored while the others resolved — and a batch that returned only the rows
30683
+ * it managed would have destroyed it, silently, by making an unreachable camera
30684
+ * indistinguishable from one that answered `monitors: []`.
30685
+ *
30686
+ * So: EVERY requested deviceId gets a row. `status: null` means "this camera
30687
+ * could not be read"; `status.monitors: []` means "read, and it has none".
30688
+ */
30689
+ var SceneMonitorStatusForDeviceSchema = zod.z.object({
30690
+ deviceId: zod.z.number(),
30691
+ status: SceneMonitorStatusSchema.nullable()
30692
+ });
30460
30693
  var sceneMonitorCapability = {
30461
30694
  name: "scene-monitor",
30462
30695
  scope: "device",
@@ -30466,6 +30699,22 @@ var sceneMonitorCapability = {
30466
30699
  deviceTypes: [DeviceType.Camera],
30467
30700
  methods: {
30468
30701
  listScenes: method(zod.z.object({ deviceId: zod.z.number() }), SceneMonitorStatusSchema),
30702
+ /**
30703
+ * The same answer, for a SET of cameras, in one round trip.
30704
+ *
30705
+ * `/scenes` renders every camera and re-reads them on a 30s safety-net
30706
+ * poll behind the push slice. Fanned out client-side that was one query
30707
+ * per camera — 29 round trips through the browser, the hub and the
30708
+ * post-analysis runner every 30 seconds to read an in-memory map the
30709
+ * owner had already merged. The work is unchanged (`statusFor` per
30710
+ * device, all in-process at the owner); what collapses is the transport.
30711
+ *
30712
+ * A camera that cannot answer still gets a row, with `status: null` —
30713
+ * see {@link SceneMonitorStatusForDeviceSchema}. Never fewer rows than
30714
+ * ids: a caller that asked for twenty-nine and got twenty-seven cannot
30715
+ * tell which two are missing, or that any are.
30716
+ */
30717
+ listScenesBatch: method(zod.z.object({ deviceIds: zod.z.array(zod.z.number()).min(1).max(200) }), zod.z.array(SceneMonitorStatusForDeviceSchema).readonly()),
30469
30718
  createScene: method(zod.z.object({
30470
30719
  deviceId: zod.z.number(),
30471
30720
  label: zod.z.string(),
@@ -32736,6 +32985,27 @@ var CameraOccupancySnapshotSchema = zod.z.object({
32736
32985
  stationaryObjects: zod.z.array(StationaryObjectSchema).readonly().optional()
32737
32986
  });
32738
32987
  /**
32988
+ * One camera's row in a `getCurrentSnapshotBatch` answer.
32989
+ *
32990
+ * THREE outcomes, and the single-camera method could only express two of them
32991
+ * because `snapshot: null` was already spoken for:
32992
+ *
32993
+ * - `read: 'read'`, `snapshot` present — the live occupancy reading.
32994
+ * - `read: 'read'`, `snapshot: null` — read, and this camera has no reading
32995
+ * yet: no frame since boot, and no parked-object registry to hydrate from.
32996
+ * - `read: 'unreadable'` — the owner could not answer for this
32997
+ * camera. `snapshot` is null, and it does NOT mean "nothing parked here".
32998
+ *
32999
+ * Collapsing the last two is the failure this field exists to prevent: a
33000
+ * hydration that threw would otherwise render as an empty Stationary section,
33001
+ * which is a definite claim about a camera nobody could read.
33002
+ */
33003
+ var CameraOccupancySnapshotForDeviceSchema = zod.z.object({
33004
+ deviceId: zod.z.number(),
33005
+ read: zod.z.enum(["read", "unreadable"]),
33006
+ snapshot: CameraOccupancySnapshotSchema.nullable()
33007
+ });
33008
+ /**
32739
33009
  * Time-series resolution. The history methods return one bucket per
32740
33010
  * step over the requested range. Smaller resolutions cost more
32741
33011
  * memory + bandwidth; bound to discrete steps so caller cannot ask
@@ -32792,6 +33062,20 @@ var zoneAnalyticsCapability = {
32792
33062
  * (no inference result emitted since boot or since binding was
32793
33063
  * activated). */
32794
33064
  getCurrentSnapshot: method(zod.z.object({ deviceId: zod.z.number() }), CameraOccupancySnapshotSchema.nullable()),
33065
+ /**
33066
+ * The same snapshot, for a SET of cameras, in one round trip.
33067
+ *
33068
+ * The Events page's Stationary section polls this every 15s for every
33069
+ * selected camera. Fanned out client-side that is one query per camera to
33070
+ * read a `Map.get` at the owner — the answer costs nothing, the round trip
33071
+ * costs everything. Batched, N transports become one and the per-device
33072
+ * work is unchanged.
33073
+ *
33074
+ * Every requested deviceId gets a row, tagged `read` — see
33075
+ * {@link CameraOccupancySnapshotForDeviceSchema}. A camera the owner could
33076
+ * not answer for is `'unreadable'`, never an empty reading.
33077
+ */
33078
+ getCurrentSnapshotBatch: method(zod.z.object({ deviceIds: zod.z.array(zod.z.number()).min(1).max(200) }), zod.z.array(CameraOccupancySnapshotForDeviceSchema).readonly()),
32795
33079
  /** Time-series object count inside one zone. `className` optional —
32796
33080
  * omit to count every class in the zone. */
32797
33081
  getZoneHistory: method(zod.z.object({
@@ -36925,6 +37209,18 @@ var METHOD_ACCESS_MAP = Object.freeze({
36925
37209
  addonId: null,
36926
37210
  access: "view"
36927
37211
  },
37212
+ "pipelineAnalytics.getKeyEventsBatch": {
37213
+ capName: "pipeline-analytics",
37214
+ capScope: "device",
37215
+ addonId: null,
37216
+ access: "view"
37217
+ },
37218
+ "pipelineAnalytics.getMediaReclaimStatus": {
37219
+ capName: "pipeline-analytics",
37220
+ capScope: "device",
37221
+ addonId: null,
37222
+ access: "view"
37223
+ },
36928
37224
  "pipelineAnalytics.getMotionEvents": {
36929
37225
  capName: "pipeline-analytics",
36930
37226
  capScope: "device",
@@ -37099,6 +37395,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
37099
37395
  addonId: null,
37100
37396
  access: "create"
37101
37397
  },
37398
+ "pipelineAnalytics.reclaimDebugMedia": {
37399
+ capName: "pipeline-analytics",
37400
+ capScope: "device",
37401
+ addonId: null,
37402
+ access: "create"
37403
+ },
37102
37404
  "pipelineAnalytics.reconcileFromDisk": {
37103
37405
  capName: "pipeline-analytics",
37104
37406
  capScope: "device",
@@ -38101,6 +38403,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
38101
38403
  addonId: null,
38102
38404
  access: "view"
38103
38405
  },
38406
+ "recording.reconcileLedgerAgainstDisk": {
38407
+ capName: "recording",
38408
+ capScope: "system",
38409
+ addonId: null,
38410
+ access: "create"
38411
+ },
38104
38412
  "recording.refreshStorageLocationsForMigration": {
38105
38413
  capName: "recording",
38106
38414
  capScope: "system",
@@ -38227,6 +38535,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
38227
38535
  addonId: null,
38228
38536
  access: "view"
38229
38537
  },
38538
+ "sceneMonitor.listScenesBatch": {
38539
+ capName: "scene-monitor",
38540
+ capScope: "device",
38541
+ addonId: null,
38542
+ access: "view"
38543
+ },
38230
38544
  "sceneMonitor.recheckNow": {
38231
38545
  capName: "scene-monitor",
38232
38546
  capScope: "device",
@@ -39583,6 +39897,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
39583
39897
  addonId: null,
39584
39898
  access: "view"
39585
39899
  },
39900
+ "zoneAnalytics.getCurrentSnapshotBatch": {
39901
+ capName: "zone-analytics",
39902
+ capScope: "device",
39903
+ addonId: null,
39904
+ access: "view"
39905
+ },
39586
39906
  "zoneAnalytics.getUnzonedHistory": {
39587
39907
  capName: "zone-analytics",
39588
39908
  capScope: "device",
@@ -40587,6 +40907,11 @@ Object.freeze({
40587
40907
  form: "single",
40588
40908
  optional: false
40589
40909
  }],
40910
+ "pipelineAnalytics.getKeyEventsBatch": [{
40911
+ name: "deviceIds",
40912
+ form: "array",
40913
+ optional: false
40914
+ }],
40590
40915
  "pipelineAnalytics.getMotionEvents": [{
40591
40916
  name: "deviceId",
40592
40917
  form: "single",
@@ -40692,6 +41017,11 @@ Object.freeze({
40692
41017
  form: "single",
40693
41018
  optional: true
40694
41019
  }],
41020
+ "pipelineAnalytics.reclaimDebugMedia": [{
41021
+ name: "deviceIds",
41022
+ form: "array",
41023
+ optional: true
41024
+ }],
40695
41025
  "pipelineAnalytics.reconcileFromDisk": [{
40696
41026
  name: "deviceId",
40697
41027
  form: "single",
@@ -41027,6 +41357,11 @@ Object.freeze({
41027
41357
  form: "single",
41028
41358
  optional: false
41029
41359
  }],
41360
+ "recording.reconcileLedgerAgainstDisk": [{
41361
+ name: "deviceId",
41362
+ form: "single",
41363
+ optional: true
41364
+ }],
41030
41365
  "recording.relocateFootage": [{
41031
41366
  name: "deviceId",
41032
41367
  form: "single",
@@ -41092,6 +41427,11 @@ Object.freeze({
41092
41427
  form: "single",
41093
41428
  optional: false
41094
41429
  }],
41430
+ "sceneMonitor.listScenesBatch": [{
41431
+ name: "deviceIds",
41432
+ form: "array",
41433
+ optional: false
41434
+ }],
41095
41435
  "sceneMonitor.recheckNow": [{
41096
41436
  name: "deviceId",
41097
41437
  form: "single",
@@ -41353,6 +41693,11 @@ Object.freeze({
41353
41693
  form: "single",
41354
41694
  optional: false
41355
41695
  }],
41696
+ "zoneAnalytics.getCurrentSnapshotBatch": [{
41697
+ name: "deviceIds",
41698
+ form: "array",
41699
+ optional: false
41700
+ }],
41356
41701
  "zoneAnalytics.getUnzonedHistory": [{
41357
41702
  name: "deviceId",
41358
41703
  form: "single",