@camstack/system 1.2.102 → 1.2.103

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 (57) hide show
  1. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  2. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  3. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  4. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  5. package/dist/builtins/alerts/alerts.addon.js +1 -1
  6. package/dist/builtins/alerts/alerts.addon.mjs +1 -1
  7. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +1 -1
  8. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +1 -1
  9. package/dist/builtins/console-logging/index.js +1 -1
  10. package/dist/builtins/console-logging/index.mjs +1 -1
  11. package/dist/builtins/core-blocks/core-blocks.addon.js +1 -1
  12. package/dist/builtins/core-blocks/core-blocks.addon.mjs +1 -1
  13. package/dist/builtins/device-manager/device-manager.addon.js +1 -1
  14. package/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
  15. package/dist/builtins/doorbell/virtual-doorbell.addon.js +1 -1
  16. package/dist/builtins/doorbell/virtual-doorbell.addon.mjs +1 -1
  17. package/dist/builtins/hub-forwarder/index.js +1 -1
  18. package/dist/builtins/hub-forwarder/index.mjs +1 -1
  19. package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  20. package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  21. package/dist/builtins/local-auth/local-auth.addon.js +1 -1
  22. package/dist/builtins/local-auth/local-auth.addon.mjs +1 -1
  23. package/dist/builtins/local-network/local-network.addon.js +1 -1
  24. package/dist/builtins/local-network/local-network.addon.mjs +1 -1
  25. package/dist/builtins/loki-logging/index.js +1 -1
  26. package/dist/builtins/loki-logging/index.mjs +1 -1
  27. package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  28. package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  29. package/dist/builtins/platform-probe/index.js +1 -1
  30. package/dist/builtins/platform-probe/index.mjs +1 -1
  31. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  32. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  33. package/dist/builtins/snapshot/index.js +150 -22
  34. package/dist/builtins/snapshot/index.mjs +150 -22
  35. package/dist/builtins/snapshot/snapshot-cache.d.ts +63 -0
  36. package/dist/builtins/snapshot/snapshot-resize.d.ts +33 -1
  37. package/dist/builtins/snapshot/snapshot.addon.d.ts +6 -0
  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 +1 -1
  41. package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +1 -1
  42. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
  43. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
  44. package/dist/builtins/system-config/system-config.addon.js +1 -1
  45. package/dist/builtins/system-config/system-config.addon.mjs +1 -1
  46. package/dist/builtins/winston-logging/index.js +1 -1
  47. package/dist/builtins/winston-logging/index.mjs +1 -1
  48. package/dist/{dist-3wh5LCad.mjs → dist-DHKXob1m.mjs} +124 -20
  49. package/dist/{dist-9sC0wZw6.js → dist-qnwy_iWM.js} +124 -20
  50. package/dist/index.js +264 -62
  51. package/dist/index.mjs +264 -62
  52. package/dist/kernel/config-schema.d.ts +14 -10
  53. package/dist/kernel/heap-watch.d.ts +39 -7
  54. package/dist/kernel/moleculer/process-service.d.ts +34 -0
  55. package/dist/logging/log-manager.d.ts +7 -5
  56. package/dist/logging/partitioned-log-buffer.d.ts +95 -16
  57. package/package.json +1 -1
@@ -3703,6 +3703,12 @@ var RecordingConfigSchema = z.object({
3703
3703
  /** DERIVED summary of `bands`, stamped by the recorder on every save.
3704
3704
  * Authoring it has no effect — see {@link RecordingStorageModeSchema}. */
3705
3705
  mode: RecordingStorageModeSchema.optional(),
3706
+ /**
3707
+ * Which assigned broker slots to record. Absent / empty = {@link
3708
+ * DEFAULT_RECORDING_PROFILES} (`high`+`low`) intersected with the
3709
+ * camera's currently assigned slots — never `mid` unless the operator
3710
+ * picks it, and never a slot the broker has not assigned.
3711
+ */
3706
3712
  profiles: z.array(CamProfileSchema).optional(),
3707
3713
  segmentSeconds: z.number().int().positive().optional(),
3708
3714
  /**
@@ -3783,7 +3789,11 @@ var RelocateFootageInputSchema = z.object({
3783
3789
  profiles: z.array(z.string()).optional(),
3784
3790
  /** Copy throttle in MB/s (default 40) — the drain is a background chore,
3785
3791
  * never allowed to starve live writers. */
3786
- throttleMbps: z.number().min(1).max(1e3).optional()
3792
+ throttleMbps: z.number().min(1).max(1e3).optional(),
3793
+ /** Move only segments whose startMs is >= this. Absent = the whole source
3794
+ * pile. Used when a full drain is too expensive and the operator only
3795
+ * wants the recent window on the new disk. */
3796
+ sinceMs: z.number().int().optional()
3787
3797
  });
3788
3798
  /** Internal, lease-scoped participant operation. It is intentionally separate
3789
3799
  * from persistent recording settings: a migration never changes
@@ -15122,6 +15132,12 @@ var TrackCascadeCountsSchema = z.object({
15122
15132
  /** Per-track CLIP search vectors removed (best-effort). */
15123
15133
  embeddings: z.number().int()
15124
15134
  });
15135
+ /** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
15136
+ var DiskReconcileCountsSchema = z.object({
15137
+ mediaDropped: z.number().int(),
15138
+ tracks: z.number().int(),
15139
+ events: z.number().int()
15140
+ });
15125
15141
  /** Event-store footprint for one camera. */
15126
15142
  var EventStoreDeviceFootprintSchema = z.object({
15127
15143
  deviceId: z.number(),
@@ -15407,6 +15423,17 @@ var pipelineAnalyticsCapability = {
15407
15423
  auth: "admin"
15408
15424
  }),
15409
15425
  /**
15426
+ * Disk-wins reconcile for one camera. Drops media index rows whose blobs
15427
+ * are gone, then cascades tracks (including favourited and staging) that
15428
+ * have no remaining files. Enrolled identity/vehicle/scene media is never
15429
+ * probed. Trackless motion/audio events with no remaining file are dropped,
15430
+ * including snapshot-less rows.
15431
+ */
15432
+ reconcileFromDisk: method(z.object({ deviceId: z.number() }), DiskReconcileCountsSchema, {
15433
+ kind: "mutation",
15434
+ auth: "admin"
15435
+ }),
15436
+ /**
15410
15437
  * Delete whole tracks (object events) by id for the given device,
15411
15438
  * cascading their media in lockstep. Returns the number of tracks
15412
15439
  * actually deleted plus the ids that could not be removed.
@@ -17564,6 +17591,24 @@ var CameraStatusDegradationSchema = z.object({
17564
17591
  *
17565
17592
  * See spec: `docs/superpowers/specs/2026-06-24-camera-status-aggregator-cap.md`
17566
17593
  */
17594
+ var DiskReconcileJobSchema = z.object({
17595
+ state: z.enum([
17596
+ "idle",
17597
+ "running",
17598
+ "done",
17599
+ "error"
17600
+ ]),
17601
+ total: z.number().int().nonnegative(),
17602
+ completed: z.number().int().nonnegative(),
17603
+ currentDeviceId: z.number().int().nullable(),
17604
+ failed: z.array(z.number().int()).readonly(),
17605
+ mediaDropped: z.number().int().nonnegative(),
17606
+ tracks: z.number().int().nonnegative(),
17607
+ events: z.number().int().nonnegative(),
17608
+ startedAtMs: z.number().int().nullable(),
17609
+ finishedAtMs: z.number().int().nullable(),
17610
+ error: z.string().nullable()
17611
+ });
17567
17612
  var CameraStatusSchema = z.object({
17568
17613
  deviceId: z.number(),
17569
17614
  assignment: CameraAssignmentStatusSchema,
@@ -18100,6 +18145,18 @@ var pipelineOrchestratorCapability = {
18100
18145
  * rail without issuing N parallel browser round-trips.
18101
18146
  */
18102
18147
  getCameraStatuses: method(z.object({ deviceIds: z.array(z.number()).optional() }), z.array(CameraStatusSchema).readonly()),
18148
+ /**
18149
+ * Disk-wins fleet reconcile after a recordings wipe. Starts the walk in
18150
+ * the addon process and returns immediately with the job snapshot — the
18151
+ * work outlives the tRPC/UDS 60s timeout. Poll `getReconcileFromDiskStatus`.
18152
+ * Admin-only. Idempotent while a job is already running.
18153
+ */
18154
+ reconcileFromDisk: method(z.void(), DiskReconcileJobSchema, {
18155
+ kind: "mutation",
18156
+ auth: "admin"
18157
+ }),
18158
+ /** Snapshot of the in-flight or last disk-wins fleet reconcile. */
18159
+ getReconcileFromDiskStatus: method(z.void(), DiskReconcileJobSchema, { auth: "admin" }),
18103
18160
  /** List every template the operator has saved. */
18104
18161
  listTemplates: method(z.void(), z.array(PipelineTemplateSchema).readonly()),
18105
18162
  /** Create a new named preset from a given CameraPipelineConfig. */
@@ -19572,20 +19629,6 @@ var vectorStoreCapability = {
19572
19629
  stats: method(VectorStatsInputSchema, VectorStatsResultSchema)
19573
19630
  }
19574
19631
  };
19575
- /**
19576
- * `videoclips` — the unified, navigable-clip surface for a camera.
19577
- *
19578
- * A device-scoped WRAPPER cap (like `pipeline-analytics`): exactly one active
19579
- * provider per device, substitutable. The DEFAULT provider (registered by
19580
- * `addon-post-analysis`, `defaultActive: true`) composes the analytics event
19581
- * log (markers + thumbnails) with the recorder's `getPlaybackManifest` — a clip
19582
- * is a time-WINDOW over existing footage, never a separate file. A camera that
19583
- * exposes NATIVE onboard clips (Reolink/Hikvision NVR) can later substitute the
19584
- * wrapper provider for its device and serve its own clip catalog + URLs.
19585
- *
19586
- * A `Clip` is purely time-based (subtree-blind): playback resolves segments by
19587
- * temporal overlap, so the API never decides `continuous` vs `events`.
19588
- */
19589
19632
  var ClipSchema = z.object({
19590
19633
  /** Opaque, provider-namespaced id. The default provider encodes the time
19591
19634
  * window so `getClipPlayback` is self-contained (no event re-query). */
@@ -19611,12 +19654,41 @@ var ClipSchema = z.object({
19611
19654
  * of the event that owns `kind` (object > motion > audio). Do not extract
19612
19655
  * a keyframe from the recorded segments. Other providers (onboard, HKSV)
19613
19656
  * mint their own stills.
19657
+ *
19658
+ * **VOUCHED, never fabricated.** A provider emits this only for an event it
19659
+ * has CONFIRMED owns at least one media row (its own, or its owning track's).
19660
+ * Absent is meaningful — "this visit has no event still" — never "we did not
19661
+ * look". Stamping it from a URL template made 35% of one camera's clips point
19662
+ * at a 404 (device 3836, 2026-08-17: 64 of 179 clips dead, 63 of them motion).
19663
+ * A read that FAILS drops the claim; it never invents it.
19614
19664
  */
19615
19665
  thumbnail: z.string().optional(),
19616
- /** Analytics event ids that overlap this visit. Empty on footage-only clips.
19617
- * The default provider's visit grain puts many motion heartbeats on one clip
19618
- * instead of minting one clip per marker. */
19666
+ /**
19667
+ * An instant INSIDE this visit's footage, hole-safe, where a recorded still
19668
+ * can be decoded. Present whenever the visit came from recorded availability;
19669
+ * absent on a per-event padded window (there is no footage to promise).
19670
+ *
19671
+ * This is not a thumbnail and not a second byte path: it is the argument to
19672
+ * the recorder's existing still route. The surface — never the provider —
19673
+ * decides whether to use it. It is the midpoint of the visit's LONGEST
19674
+ * contiguous range, not of the visit: a visit spans its holes by
19675
+ * construction, so a naive midpoint lands in dead air.
19676
+ */
19677
+ stillAtMs: z.number().optional(),
19678
+ /**
19679
+ * Analytics event ids that overlap this visit — a BOUNDED sample, newest
19680
+ * first within kind (object → motion → audio), capped at
19681
+ * {@link MAX_CLIP_EVENT_IDS}. Empty on footage-only clips.
19682
+ *
19683
+ * Bounded because it is not a payload the surface pages through: one visit on
19684
+ * device 615 carried 2 345 ids, and `eventIds` was 99% of a 153 KB
19685
+ * camera-day. Read {@link eventCount} for the true total.
19686
+ */
19619
19687
  eventIds: z.array(z.string()).optional(),
19688
+ /** How many analytics events actually overlap this visit. Differs from
19689
+ * `eventIds.length` exactly when the sample was capped — so a truncated
19690
+ * list is never mistaken for a quiet visit. */
19691
+ eventCount: z.number().int().nonnegative().optional(),
19620
19692
  /** Intra-visit footage holes (GOP rolls, discarded segments) still shorter
19621
19693
  * than `VISIT_MERGE_GAP_MS`. Playback concatenates around them; the timeline
19622
19694
  * bar keeps showing them via `recording.getAvailability`. */
@@ -20253,7 +20325,14 @@ var SearchResultSchema = z.object({
20253
20325
  });
20254
20326
  var AutoUpdateSettingsSchema = z.object({
20255
20327
  channel: ChannelSchema,
20256
- intervalSeconds: z.number()
20328
+ intervalSeconds: z.number(),
20329
+ /**
20330
+ * Cadence of the "an update exists" POLLER, in seconds. Independent of
20331
+ * `channel`: the poller runs while auto-apply is `off`, because being told
20332
+ * about a publish and installing it are different decisions. Clamped
20333
+ * server-side to 900 s … 604800 s; defaults to 21600 s (6 h).
20334
+ */
20335
+ updateCheckIntervalSeconds: z.number()
20257
20336
  });
20258
20337
  var AddonAutoUpdateSchema = ChannelWithInheritSchema;
20259
20338
  var RestartAddonResultSchema = z.unknown();
@@ -20522,7 +20601,9 @@ var addonsCapability = {
20522
20601
  getAutoUpdateSettings: method(z.void(), AutoUpdateSettingsSchema, { auth: "admin" }),
20523
20602
  setAutoUpdateSettings: method(z.object({
20524
20603
  channel: ChannelSchema,
20525
- intervalSeconds: z.number().min(300).max(86400).optional()
20604
+ intervalSeconds: z.number().min(300).max(86400).optional(),
20605
+ /** Availability-poll cadence; see AutoUpdateSettingsSchema. */
20606
+ updateCheckIntervalSeconds: z.number().min(900).max(604800).optional()
20526
20607
  }), z.unknown(), {
20527
20608
  kind: "mutation",
20528
20609
  auth: "admin"
@@ -33237,6 +33318,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
33237
33318
  addonId: null,
33238
33319
  access: "create"
33239
33320
  },
33321
+ "pipelineAnalytics.reconcileFromDisk": {
33322
+ capName: "pipeline-analytics",
33323
+ capScope: "device",
33324
+ addonId: null,
33325
+ access: "create"
33326
+ },
33240
33327
  "pipelineAnalytics.refreshStorageLocationsForMigration": {
33241
33328
  capName: "pipeline-analytics",
33242
33329
  capScope: "device",
@@ -33639,6 +33726,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
33639
33726
  addonId: null,
33640
33727
  access: "view"
33641
33728
  },
33729
+ "pipelineOrchestrator.getReconcileFromDiskStatus": {
33730
+ capName: "pipeline-orchestrator",
33731
+ capScope: "system",
33732
+ addonId: null,
33733
+ access: "view"
33734
+ },
33642
33735
  "pipelineOrchestrator.listAgentSettings": {
33643
33736
  capName: "pipeline-orchestrator",
33644
33737
  capScope: "system",
@@ -33663,6 +33756,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
33663
33756
  addonId: null,
33664
33757
  access: "create"
33665
33758
  },
33759
+ "pipelineOrchestrator.reconcileFromDisk": {
33760
+ capName: "pipeline-orchestrator",
33761
+ capScope: "system",
33762
+ addonId: null,
33763
+ access: "create"
33764
+ },
33666
33765
  "pipelineOrchestrator.removeAgentSettings": {
33667
33766
  capName: "pipeline-orchestrator",
33668
33767
  capScope: "system",
@@ -36654,6 +36753,11 @@ Object.freeze({
36654
36753
  form: "single",
36655
36754
  optional: true
36656
36755
  }],
36756
+ "pipelineAnalytics.reconcileFromDisk": [{
36757
+ name: "deviceId",
36758
+ form: "single",
36759
+ optional: false
36760
+ }],
36657
36761
  "pipelineAnalytics.restageRetrainTrack": [{
36658
36762
  name: "deviceId",
36659
36763
  form: "single",
@@ -3703,6 +3703,12 @@ var RecordingConfigSchema = zod.z.object({
3703
3703
  /** DERIVED summary of `bands`, stamped by the recorder on every save.
3704
3704
  * Authoring it has no effect — see {@link RecordingStorageModeSchema}. */
3705
3705
  mode: RecordingStorageModeSchema.optional(),
3706
+ /**
3707
+ * Which assigned broker slots to record. Absent / empty = {@link
3708
+ * DEFAULT_RECORDING_PROFILES} (`high`+`low`) intersected with the
3709
+ * camera's currently assigned slots — never `mid` unless the operator
3710
+ * picks it, and never a slot the broker has not assigned.
3711
+ */
3706
3712
  profiles: zod.z.array(CamProfileSchema).optional(),
3707
3713
  segmentSeconds: zod.z.number().int().positive().optional(),
3708
3714
  /**
@@ -3783,7 +3789,11 @@ var RelocateFootageInputSchema = zod.z.object({
3783
3789
  profiles: zod.z.array(zod.z.string()).optional(),
3784
3790
  /** Copy throttle in MB/s (default 40) — the drain is a background chore,
3785
3791
  * never allowed to starve live writers. */
3786
- throttleMbps: zod.z.number().min(1).max(1e3).optional()
3792
+ throttleMbps: zod.z.number().min(1).max(1e3).optional(),
3793
+ /** Move only segments whose startMs is >= this. Absent = the whole source
3794
+ * pile. Used when a full drain is too expensive and the operator only
3795
+ * wants the recent window on the new disk. */
3796
+ sinceMs: zod.z.number().int().optional()
3787
3797
  });
3788
3798
  /** Internal, lease-scoped participant operation. It is intentionally separate
3789
3799
  * from persistent recording settings: a migration never changes
@@ -15122,6 +15132,12 @@ var TrackCascadeCountsSchema = zod.z.object({
15122
15132
  /** Per-track CLIP search vectors removed (best-effort). */
15123
15133
  embeddings: zod.z.number().int()
15124
15134
  });
15135
+ /** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
15136
+ var DiskReconcileCountsSchema = zod.z.object({
15137
+ mediaDropped: zod.z.number().int(),
15138
+ tracks: zod.z.number().int(),
15139
+ events: zod.z.number().int()
15140
+ });
15125
15141
  /** Event-store footprint for one camera. */
15126
15142
  var EventStoreDeviceFootprintSchema = zod.z.object({
15127
15143
  deviceId: zod.z.number(),
@@ -15407,6 +15423,17 @@ var pipelineAnalyticsCapability = {
15407
15423
  auth: "admin"
15408
15424
  }),
15409
15425
  /**
15426
+ * Disk-wins reconcile for one camera. Drops media index rows whose blobs
15427
+ * are gone, then cascades tracks (including favourited and staging) that
15428
+ * have no remaining files. Enrolled identity/vehicle/scene media is never
15429
+ * probed. Trackless motion/audio events with no remaining file are dropped,
15430
+ * including snapshot-less rows.
15431
+ */
15432
+ reconcileFromDisk: method(zod.z.object({ deviceId: zod.z.number() }), DiskReconcileCountsSchema, {
15433
+ kind: "mutation",
15434
+ auth: "admin"
15435
+ }),
15436
+ /**
15410
15437
  * Delete whole tracks (object events) by id for the given device,
15411
15438
  * cascading their media in lockstep. Returns the number of tracks
15412
15439
  * actually deleted plus the ids that could not be removed.
@@ -17564,6 +17591,24 @@ var CameraStatusDegradationSchema = zod.z.object({
17564
17591
  *
17565
17592
  * See spec: `docs/superpowers/specs/2026-06-24-camera-status-aggregator-cap.md`
17566
17593
  */
17594
+ var DiskReconcileJobSchema = zod.z.object({
17595
+ state: zod.z.enum([
17596
+ "idle",
17597
+ "running",
17598
+ "done",
17599
+ "error"
17600
+ ]),
17601
+ total: zod.z.number().int().nonnegative(),
17602
+ completed: zod.z.number().int().nonnegative(),
17603
+ currentDeviceId: zod.z.number().int().nullable(),
17604
+ failed: zod.z.array(zod.z.number().int()).readonly(),
17605
+ mediaDropped: zod.z.number().int().nonnegative(),
17606
+ tracks: zod.z.number().int().nonnegative(),
17607
+ events: zod.z.number().int().nonnegative(),
17608
+ startedAtMs: zod.z.number().int().nullable(),
17609
+ finishedAtMs: zod.z.number().int().nullable(),
17610
+ error: zod.z.string().nullable()
17611
+ });
17567
17612
  var CameraStatusSchema = zod.z.object({
17568
17613
  deviceId: zod.z.number(),
17569
17614
  assignment: CameraAssignmentStatusSchema,
@@ -18100,6 +18145,18 @@ var pipelineOrchestratorCapability = {
18100
18145
  * rail without issuing N parallel browser round-trips.
18101
18146
  */
18102
18147
  getCameraStatuses: method(zod.z.object({ deviceIds: zod.z.array(zod.z.number()).optional() }), zod.z.array(CameraStatusSchema).readonly()),
18148
+ /**
18149
+ * Disk-wins fleet reconcile after a recordings wipe. Starts the walk in
18150
+ * the addon process and returns immediately with the job snapshot — the
18151
+ * work outlives the tRPC/UDS 60s timeout. Poll `getReconcileFromDiskStatus`.
18152
+ * Admin-only. Idempotent while a job is already running.
18153
+ */
18154
+ reconcileFromDisk: method(zod.z.void(), DiskReconcileJobSchema, {
18155
+ kind: "mutation",
18156
+ auth: "admin"
18157
+ }),
18158
+ /** Snapshot of the in-flight or last disk-wins fleet reconcile. */
18159
+ getReconcileFromDiskStatus: method(zod.z.void(), DiskReconcileJobSchema, { auth: "admin" }),
18103
18160
  /** List every template the operator has saved. */
18104
18161
  listTemplates: method(zod.z.void(), zod.z.array(PipelineTemplateSchema).readonly()),
18105
18162
  /** Create a new named preset from a given CameraPipelineConfig. */
@@ -19572,20 +19629,6 @@ var vectorStoreCapability = {
19572
19629
  stats: method(VectorStatsInputSchema, VectorStatsResultSchema)
19573
19630
  }
19574
19631
  };
19575
- /**
19576
- * `videoclips` — the unified, navigable-clip surface for a camera.
19577
- *
19578
- * A device-scoped WRAPPER cap (like `pipeline-analytics`): exactly one active
19579
- * provider per device, substitutable. The DEFAULT provider (registered by
19580
- * `addon-post-analysis`, `defaultActive: true`) composes the analytics event
19581
- * log (markers + thumbnails) with the recorder's `getPlaybackManifest` — a clip
19582
- * is a time-WINDOW over existing footage, never a separate file. A camera that
19583
- * exposes NATIVE onboard clips (Reolink/Hikvision NVR) can later substitute the
19584
- * wrapper provider for its device and serve its own clip catalog + URLs.
19585
- *
19586
- * A `Clip` is purely time-based (subtree-blind): playback resolves segments by
19587
- * temporal overlap, so the API never decides `continuous` vs `events`.
19588
- */
19589
19632
  var ClipSchema = zod.z.object({
19590
19633
  /** Opaque, provider-namespaced id. The default provider encodes the time
19591
19634
  * window so `getClipPlayback` is self-contained (no event re-query). */
@@ -19611,12 +19654,41 @@ var ClipSchema = zod.z.object({
19611
19654
  * of the event that owns `kind` (object > motion > audio). Do not extract
19612
19655
  * a keyframe from the recorded segments. Other providers (onboard, HKSV)
19613
19656
  * mint their own stills.
19657
+ *
19658
+ * **VOUCHED, never fabricated.** A provider emits this only for an event it
19659
+ * has CONFIRMED owns at least one media row (its own, or its owning track's).
19660
+ * Absent is meaningful — "this visit has no event still" — never "we did not
19661
+ * look". Stamping it from a URL template made 35% of one camera's clips point
19662
+ * at a 404 (device 3836, 2026-08-17: 64 of 179 clips dead, 63 of them motion).
19663
+ * A read that FAILS drops the claim; it never invents it.
19614
19664
  */
19615
19665
  thumbnail: zod.z.string().optional(),
19616
- /** Analytics event ids that overlap this visit. Empty on footage-only clips.
19617
- * The default provider's visit grain puts many motion heartbeats on one clip
19618
- * instead of minting one clip per marker. */
19666
+ /**
19667
+ * An instant INSIDE this visit's footage, hole-safe, where a recorded still
19668
+ * can be decoded. Present whenever the visit came from recorded availability;
19669
+ * absent on a per-event padded window (there is no footage to promise).
19670
+ *
19671
+ * This is not a thumbnail and not a second byte path: it is the argument to
19672
+ * the recorder's existing still route. The surface — never the provider —
19673
+ * decides whether to use it. It is the midpoint of the visit's LONGEST
19674
+ * contiguous range, not of the visit: a visit spans its holes by
19675
+ * construction, so a naive midpoint lands in dead air.
19676
+ */
19677
+ stillAtMs: zod.z.number().optional(),
19678
+ /**
19679
+ * Analytics event ids that overlap this visit — a BOUNDED sample, newest
19680
+ * first within kind (object → motion → audio), capped at
19681
+ * {@link MAX_CLIP_EVENT_IDS}. Empty on footage-only clips.
19682
+ *
19683
+ * Bounded because it is not a payload the surface pages through: one visit on
19684
+ * device 615 carried 2 345 ids, and `eventIds` was 99% of a 153 KB
19685
+ * camera-day. Read {@link eventCount} for the true total.
19686
+ */
19619
19687
  eventIds: zod.z.array(zod.z.string()).optional(),
19688
+ /** How many analytics events actually overlap this visit. Differs from
19689
+ * `eventIds.length` exactly when the sample was capped — so a truncated
19690
+ * list is never mistaken for a quiet visit. */
19691
+ eventCount: zod.z.number().int().nonnegative().optional(),
19620
19692
  /** Intra-visit footage holes (GOP rolls, discarded segments) still shorter
19621
19693
  * than `VISIT_MERGE_GAP_MS`. Playback concatenates around them; the timeline
19622
19694
  * bar keeps showing them via `recording.getAvailability`. */
@@ -20253,7 +20325,14 @@ var SearchResultSchema = zod.z.object({
20253
20325
  });
20254
20326
  var AutoUpdateSettingsSchema = zod.z.object({
20255
20327
  channel: ChannelSchema,
20256
- intervalSeconds: zod.z.number()
20328
+ intervalSeconds: zod.z.number(),
20329
+ /**
20330
+ * Cadence of the "an update exists" POLLER, in seconds. Independent of
20331
+ * `channel`: the poller runs while auto-apply is `off`, because being told
20332
+ * about a publish and installing it are different decisions. Clamped
20333
+ * server-side to 900 s … 604800 s; defaults to 21600 s (6 h).
20334
+ */
20335
+ updateCheckIntervalSeconds: zod.z.number()
20257
20336
  });
20258
20337
  var AddonAutoUpdateSchema = ChannelWithInheritSchema;
20259
20338
  var RestartAddonResultSchema = zod.z.unknown();
@@ -20522,7 +20601,9 @@ var addonsCapability = {
20522
20601
  getAutoUpdateSettings: method(zod.z.void(), AutoUpdateSettingsSchema, { auth: "admin" }),
20523
20602
  setAutoUpdateSettings: method(zod.z.object({
20524
20603
  channel: ChannelSchema,
20525
- intervalSeconds: zod.z.number().min(300).max(86400).optional()
20604
+ intervalSeconds: zod.z.number().min(300).max(86400).optional(),
20605
+ /** Availability-poll cadence; see AutoUpdateSettingsSchema. */
20606
+ updateCheckIntervalSeconds: zod.z.number().min(900).max(604800).optional()
20526
20607
  }), zod.z.unknown(), {
20527
20608
  kind: "mutation",
20528
20609
  auth: "admin"
@@ -33237,6 +33318,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
33237
33318
  addonId: null,
33238
33319
  access: "create"
33239
33320
  },
33321
+ "pipelineAnalytics.reconcileFromDisk": {
33322
+ capName: "pipeline-analytics",
33323
+ capScope: "device",
33324
+ addonId: null,
33325
+ access: "create"
33326
+ },
33240
33327
  "pipelineAnalytics.refreshStorageLocationsForMigration": {
33241
33328
  capName: "pipeline-analytics",
33242
33329
  capScope: "device",
@@ -33639,6 +33726,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
33639
33726
  addonId: null,
33640
33727
  access: "view"
33641
33728
  },
33729
+ "pipelineOrchestrator.getReconcileFromDiskStatus": {
33730
+ capName: "pipeline-orchestrator",
33731
+ capScope: "system",
33732
+ addonId: null,
33733
+ access: "view"
33734
+ },
33642
33735
  "pipelineOrchestrator.listAgentSettings": {
33643
33736
  capName: "pipeline-orchestrator",
33644
33737
  capScope: "system",
@@ -33663,6 +33756,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
33663
33756
  addonId: null,
33664
33757
  access: "create"
33665
33758
  },
33759
+ "pipelineOrchestrator.reconcileFromDisk": {
33760
+ capName: "pipeline-orchestrator",
33761
+ capScope: "system",
33762
+ addonId: null,
33763
+ access: "create"
33764
+ },
33666
33765
  "pipelineOrchestrator.removeAgentSettings": {
33667
33766
  capName: "pipeline-orchestrator",
33668
33767
  capScope: "system",
@@ -36654,6 +36753,11 @@ Object.freeze({
36654
36753
  form: "single",
36655
36754
  optional: true
36656
36755
  }],
36756
+ "pipelineAnalytics.reconcileFromDisk": [{
36757
+ name: "deviceId",
36758
+ form: "single",
36759
+ optional: false
36760
+ }],
36657
36761
  "pipelineAnalytics.restageRetrainTrack": [{
36658
36762
  name: "deviceId",
36659
36763
  form: "single",