@camstack/addon-tailscale 1.2.48 → 1.2.49

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.
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  enumerable: true
25
25
  }) : target, mod));
26
26
  //#endregion
27
- const require_dist = require("../dist-D4Kv7xGB.js");
27
+ const require_dist = require("../dist-Cv-ufJXF.js");
28
28
  let node_child_process = require("node:child_process");
29
29
  let node_util = require("node:util");
30
30
  let node_fs = require("node:fs");
@@ -1,4 +1,4 @@
1
- import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-r9nSS25r.mjs";
1
+ import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-8Fi7VglU.mjs";
2
2
  import { execFile, spawn } from "node:child_process";
3
3
  import { promisify } from "node:util";
4
4
  import * as fs from "node:fs";
@@ -8035,6 +8035,20 @@ var RelocateJobSchema = object({
8035
8035
  * in its row, not in its name, so `MediaRelocateEngine` never reconciles one.
8036
8036
  */
8037
8037
  rowsReconciled: number().int().nonnegative().optional(),
8038
+ /**
8039
+ * Rows this run FORGOT because the file they name is not on disk.
8040
+ *
8041
+ * The mover derived the path from the row's own fields and `stat`ed it; an
8042
+ * ENOENT there is a per-path confirmation that the segment is gone (D296),
8043
+ * and the durable row is dropped through the same channel eviction uses. It
8044
+ * is reported for the same reason `rowsReconciled` is: this is a durable
8045
+ * mutation nobody asked for, and a migration that quietly erases hour rows is
8046
+ * the same failure as one that quietly skips them (D295).
8047
+ *
8048
+ * The production drain of 2026-08-30 would have reported 11 074 here — the
8049
+ * ledger claimed 5.65 GB of footage that no longer existed.
8050
+ */
8051
+ rowsForgotten: number().int().nonnegative().optional(),
8038
8052
  startedAt: number(),
8039
8053
  finishedAt: number().nullable(),
8040
8054
  error: string().nullable()
@@ -8398,6 +8412,91 @@ var RelocateResidueSchema = object({
8398
8412
  segments: number().int().nonnegative(),
8399
8413
  bytes: number().int().nonnegative()
8400
8414
  }).nullable();
8415
+ /**
8416
+ * Ask one location whether its durable hour rows describe the disk — the walk
8417
+ * (D319).
8418
+ *
8419
+ * `apply` DEFAULTS TO FALSE and that default is the product: the operator's
8420
+ * missing tool is the question, and the dry run is how they sanity-check the
8421
+ * destructive run before authorising it.
8422
+ */
8423
+ var LedgerWalkInputSchema = object({
8424
+ locationId: string().min(1),
8425
+ /** Forget the confirmed-absent rows, rather than only counting them. */
8426
+ apply: boolean().optional(),
8427
+ /** Narrow to one camera. */
8428
+ deviceId: number().int().positive().optional(),
8429
+ /** Narrow to these recording profiles; empty/absent = every profile. */
8430
+ profiles: array(string().min(1)).optional()
8431
+ });
8432
+ /** Why a whole walk did nothing. Every one leaves the ledger untouched. */
8433
+ var LedgerWalkRefusalSchema = _enum([
8434
+ "location-unknown",
8435
+ "source-writable",
8436
+ "no-ledger",
8437
+ "archive-unreadable",
8438
+ "anchor-absent",
8439
+ "anchor-unreadable",
8440
+ "anchor-moved"
8441
+ ]);
8442
+ _enum([
8443
+ "live-tail",
8444
+ "listing-error",
8445
+ "path-mismatch",
8446
+ "durable-refused"
8447
+ ]);
8448
+ /** Every skip reason, always present, always a number — so a reason that never
8449
+ * fired reports as zero rather than absent and the report shape is constant
8450
+ * between passes. Spelled out rather than `z.record` for exactly that. */
8451
+ var LedgerWalkSkipCountsSchema = object({
8452
+ "live-tail": number().int().nonnegative(),
8453
+ "listing-error": number().int().nonnegative(),
8454
+ "path-mismatch": number().int().nonnegative(),
8455
+ "durable-refused": number().int().nonnegative()
8456
+ });
8457
+ /** One camera's share of a walk, so a report names cameras and not rows. */
8458
+ var LedgerWalkDeviceReportSchema = object({
8459
+ deviceId: number().int(),
8460
+ hoursWalked: number().int().nonnegative(),
8461
+ hoursMissing: number().int().nonnegative(),
8462
+ ghostSegments: number().int().nonnegative(),
8463
+ ghostBytes: number().int().nonnegative(),
8464
+ forgottenSegments: number().int().nonnegative(),
8465
+ orphanFiles: number().int().nonnegative()
8466
+ });
8467
+ /**
8468
+ * What one walk claimed, listed, found and (only when armed) forgot.
8469
+ *
8470
+ * `archiveSegments` is the **M** and `segmentsClaimed` the **N** (D295), so a
8471
+ * walk that saw a fraction of the location is visible in its own report rather
8472
+ * than in the absence of one.
8473
+ */
8474
+ var LedgerWalkReportSchema = object({
8475
+ locationId: string(),
8476
+ applied: boolean(),
8477
+ refused: LedgerWalkRefusalSchema.nullable(),
8478
+ archiveSegments: number().int().nonnegative().nullable(),
8479
+ archiveBytes: number().int().nonnegative().nullable(),
8480
+ hoursClaimed: number().int().nonnegative(),
8481
+ hoursWalked: number().int().nonnegative(),
8482
+ hoursMissing: number().int().nonnegative(),
8483
+ /** `readdir` calls issued — the cost, stated in the unit that is paid. */
8484
+ listings: number().int().nonnegative(),
8485
+ segmentsClaimed: number().int().nonnegative(),
8486
+ ghostSegments: number().int().nonnegative(),
8487
+ ghostBytes: number().int().nonnegative(),
8488
+ ghostHoursWhole: number().int().nonnegative(),
8489
+ forgottenSegments: number().int().nonnegative(),
8490
+ forgottenBytes: number().int().nonnegative(),
8491
+ /** Files under a claimed hour that no durable row names. Never deleted. */
8492
+ orphanFiles: number().int().nonnegative(),
8493
+ orphanSample: array(string()).readonly(),
8494
+ hoursSkipped: number().int().nonnegative(),
8495
+ skippedByReason: LedgerWalkSkipCountsSchema,
8496
+ /** The walk stopped at its per-pass hour bound with claims unwalked. */
8497
+ bounded: boolean(),
8498
+ byDevice: array(LedgerWalkDeviceReportSchema).readonly()
8499
+ });
8401
8500
  /** How many rows a media pass would still act on against a given target — the
8402
8501
  * media lane's denominator AND its residue, from ONE derivation so the two can
8403
8502
  * never disagree. `null` = the count could not be taken. */
@@ -18688,13 +18787,15 @@ var ListGroupsPageSchema = object({
18688
18787
  groups: array(AnalyticsGroupRecordSchema).readonly(),
18689
18788
  nextCursor: string().nullable()
18690
18789
  });
18790
+ var KEY_EVENTS_DEFAULT_LIMIT = 50;
18791
+ var KEY_EVENTS_MAX_LIMIT = 200;
18691
18792
  var KeyEventQueryInput = object({
18692
18793
  deviceId: number(),
18693
18794
  /** Window lower bound (track firstSeen ≥ since). */
18694
18795
  since: number(),
18695
18796
  /** Window upper bound (track firstSeen ≤ until). */
18696
18797
  until: number(),
18697
- limit: number().int().min(1).max(200).default(50),
18798
+ limit: number().int().min(1).max(KEY_EVENTS_MAX_LIMIT).default(KEY_EVENTS_DEFAULT_LIMIT),
18698
18799
  /** Drop tracks scoring below this importance. */
18699
18800
  minImportance: number().min(0).max(1).optional(),
18700
18801
  /** Restrict to a single class (e.g. 'person'). */
@@ -18716,6 +18817,32 @@ var KeyEventSchema = object({
18716
18817
  ...TrackFlagFields,
18717
18818
  ...TrackRetrainFields
18718
18819
  });
18820
+ /** `getKeyEvents`' window and filters, asked of a SET of cameras at once. */
18821
+ var KeyEventBatchQueryInput = object({
18822
+ deviceIds: array(number()).min(1).max(200),
18823
+ since: number(),
18824
+ until: number(),
18825
+ /** Applied PER CAMERA, exactly as `getKeyEvents.limit` is — never a total
18826
+ * across the set, which would let a busy camera starve a quiet one of its
18827
+ * rows and change what the merged feed contains. */
18828
+ limit: number().int().min(1).max(KEY_EVENTS_MAX_LIMIT).default(KEY_EVENTS_DEFAULT_LIMIT),
18829
+ minImportance: number().min(0).max(1).optional(),
18830
+ classFilter: string().optional()
18831
+ });
18832
+ /**
18833
+ * One camera's key events in a batch answer.
18834
+ *
18835
+ * The row exists for every requested id. `getKeyEvents` degrades to `[]` on
18836
+ * error rather than throwing, so a camera whose store read failed and one with
18837
+ * no events in the window were ALREADY indistinguishable per camera — the
18838
+ * batch does not make that worse, and the row keeps the deviceId the single
18839
+ * method's output never carried (the caller used to stamp it from the fan-out
18840
+ * key, which only worked because there was one query per camera).
18841
+ */
18842
+ var KeyEventsForDeviceSchema = object({
18843
+ deviceId: number(),
18844
+ events: array(KeyEventSchema).readonly()
18845
+ });
18719
18846
  object({
18720
18847
  trackId: string(),
18721
18848
  className: string(),
@@ -18985,7 +19112,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18985
19112
  until: number().optional(),
18986
19113
  kinds: array(string()).optional(),
18987
19114
  limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
18988
- }), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
19115
+ }), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()), method(object({
18989
19116
  deviceId: number(),
18990
19117
  since: number(),
18991
19118
  until: number(),
@@ -26698,6 +26825,9 @@ method(object({
26698
26825
  }), method(RelocateResidueInputSchema, RelocateResidueSchema, {
26699
26826
  kind: "query",
26700
26827
  auth: "admin"
26828
+ }), method(LedgerWalkInputSchema, LedgerWalkReportSchema, {
26829
+ kind: "mutation",
26830
+ auth: "admin"
26701
26831
  }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
26702
26832
  kind: "mutation",
26703
26833
  auth: "admin"
@@ -27089,7 +27219,26 @@ var SceneMonitorStatusSchema = object({
27089
27219
  monitors: array(SceneMonitorSchema),
27090
27220
  lastFetchedAt: number()
27091
27221
  });
27092
- DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSchema), method(object({
27222
+ /**
27223
+ * One camera's row in a `listScenesBatch` answer.
27224
+ *
27225
+ * `status` is NULLABLE and the nullability is the whole point. `scene-monitor`
27226
+ * is a `defaultActive` wrapper, so every camera is asked; a camera whose
27227
+ * provider is absent (pipeline-analytics not deployed, the post-processing node
27228
+ * down) cannot answer, and that is not the same fact as a camera with no scenes
27229
+ * configured. Fanned out per camera the difference was visible — one query
27230
+ * errored while the others resolved — and a batch that returned only the rows
27231
+ * it managed would have destroyed it, silently, by making an unreachable camera
27232
+ * indistinguishable from one that answered `monitors: []`.
27233
+ *
27234
+ * So: EVERY requested deviceId gets a row. `status: null` means "this camera
27235
+ * could not be read"; `status.monitors: []` means "read, and it has none".
27236
+ */
27237
+ var SceneMonitorStatusForDeviceSchema = object({
27238
+ deviceId: number(),
27239
+ status: SceneMonitorStatusSchema.nullable()
27240
+ });
27241
+ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSchema), method(object({ deviceIds: array(number()).min(1).max(200) }), array(SceneMonitorStatusForDeviceSchema).readonly()), method(object({
27093
27242
  deviceId: number(),
27094
27243
  label: string(),
27095
27244
  roi: MaskRectShapeSchema,
@@ -28413,6 +28562,27 @@ var CameraOccupancySnapshotSchema = object({
28413
28562
  stationaryObjects: array(StationaryObjectSchema).readonly().optional()
28414
28563
  });
28415
28564
  /**
28565
+ * One camera's row in a `getCurrentSnapshotBatch` answer.
28566
+ *
28567
+ * THREE outcomes, and the single-camera method could only express two of them
28568
+ * because `snapshot: null` was already spoken for:
28569
+ *
28570
+ * - `read: 'read'`, `snapshot` present — the live occupancy reading.
28571
+ * - `read: 'read'`, `snapshot: null` — read, and this camera has no reading
28572
+ * yet: no frame since boot, and no parked-object registry to hydrate from.
28573
+ * - `read: 'unreadable'` — the owner could not answer for this
28574
+ * camera. `snapshot` is null, and it does NOT mean "nothing parked here".
28575
+ *
28576
+ * Collapsing the last two is the failure this field exists to prevent: a
28577
+ * hydration that threw would otherwise render as an empty Stationary section,
28578
+ * which is a definite claim about a camera nobody could read.
28579
+ */
28580
+ var CameraOccupancySnapshotForDeviceSchema = object({
28581
+ deviceId: number(),
28582
+ read: _enum(["read", "unreadable"]),
28583
+ snapshot: CameraOccupancySnapshotSchema.nullable()
28584
+ });
28585
+ /**
28416
28586
  * Time-series resolution. The history methods return one bucket per
28417
28587
  * step over the requested range. Smaller resolutions cost more
28418
28588
  * memory + bandwidth; bound to discrete steps so caller cannot ask
@@ -28436,7 +28606,7 @@ var HistoryPointSchema = object({
28436
28606
  /** Object count averaged over the bucket (rounded to nearest integer). */
28437
28607
  count: number().int().nonnegative()
28438
28608
  });
28439
- DeviceType.Camera, method(object({ deviceId: number() }), CameraOccupancySnapshotSchema.nullable()), method(object({
28609
+ DeviceType.Camera, method(object({ deviceId: number() }), CameraOccupancySnapshotSchema.nullable()), method(object({ deviceIds: array(number()).min(1).max(200) }), array(CameraOccupancySnapshotForDeviceSchema).readonly()), method(object({
28440
28610
  deviceId: number(),
28441
28611
  zoneId: string(),
28442
28612
  className: string().optional()
@@ -31741,6 +31911,12 @@ Object.freeze({
31741
31911
  addonId: null,
31742
31912
  access: "view"
31743
31913
  },
31914
+ "pipelineAnalytics.getKeyEventsBatch": {
31915
+ capName: "pipeline-analytics",
31916
+ capScope: "device",
31917
+ addonId: null,
31918
+ access: "view"
31919
+ },
31744
31920
  "pipelineAnalytics.getMotionEvents": {
31745
31921
  capName: "pipeline-analytics",
31746
31922
  capScope: "device",
@@ -32917,6 +33093,12 @@ Object.freeze({
32917
33093
  addonId: null,
32918
33094
  access: "view"
32919
33095
  },
33096
+ "recording.reconcileLedgerAgainstDisk": {
33097
+ capName: "recording",
33098
+ capScope: "system",
33099
+ addonId: null,
33100
+ access: "create"
33101
+ },
32920
33102
  "recording.refreshStorageLocationsForMigration": {
32921
33103
  capName: "recording",
32922
33104
  capScope: "system",
@@ -33043,6 +33225,12 @@ Object.freeze({
33043
33225
  addonId: null,
33044
33226
  access: "view"
33045
33227
  },
33228
+ "sceneMonitor.listScenesBatch": {
33229
+ capName: "scene-monitor",
33230
+ capScope: "device",
33231
+ addonId: null,
33232
+ access: "view"
33233
+ },
33046
33234
  "sceneMonitor.recheckNow": {
33047
33235
  capName: "scene-monitor",
33048
33236
  capScope: "device",
@@ -34399,6 +34587,12 @@ Object.freeze({
34399
34587
  addonId: null,
34400
34588
  access: "view"
34401
34589
  },
34590
+ "zoneAnalytics.getCurrentSnapshotBatch": {
34591
+ capName: "zone-analytics",
34592
+ capScope: "device",
34593
+ addonId: null,
34594
+ access: "view"
34595
+ },
34402
34596
  "zoneAnalytics.getUnzonedHistory": {
34403
34597
  capName: "zone-analytics",
34404
34598
  capScope: "device",
@@ -35403,6 +35597,11 @@ Object.freeze({
35403
35597
  form: "single",
35404
35598
  optional: false
35405
35599
  }],
35600
+ "pipelineAnalytics.getKeyEventsBatch": [{
35601
+ name: "deviceIds",
35602
+ form: "array",
35603
+ optional: false
35604
+ }],
35406
35605
  "pipelineAnalytics.getMotionEvents": [{
35407
35606
  name: "deviceId",
35408
35607
  form: "single",
@@ -35843,6 +36042,11 @@ Object.freeze({
35843
36042
  form: "single",
35844
36043
  optional: false
35845
36044
  }],
36045
+ "recording.reconcileLedgerAgainstDisk": [{
36046
+ name: "deviceId",
36047
+ form: "single",
36048
+ optional: true
36049
+ }],
35846
36050
  "recording.relocateFootage": [{
35847
36051
  name: "deviceId",
35848
36052
  form: "single",
@@ -35908,6 +36112,11 @@ Object.freeze({
35908
36112
  form: "single",
35909
36113
  optional: false
35910
36114
  }],
36115
+ "sceneMonitor.listScenesBatch": [{
36116
+ name: "deviceIds",
36117
+ form: "array",
36118
+ optional: false
36119
+ }],
35911
36120
  "sceneMonitor.recheckNow": [{
35912
36121
  name: "deviceId",
35913
36122
  form: "single",
@@ -36169,6 +36378,11 @@ Object.freeze({
36169
36378
  form: "single",
36170
36379
  optional: false
36171
36380
  }],
36381
+ "zoneAnalytics.getCurrentSnapshotBatch": [{
36382
+ name: "deviceIds",
36383
+ form: "array",
36384
+ optional: false
36385
+ }],
36172
36386
  "zoneAnalytics.getUnzonedHistory": [{
36173
36387
  name: "deviceId",
36174
36388
  form: "single",
@@ -8035,6 +8035,20 @@ var RelocateJobSchema = object({
8035
8035
  * in its row, not in its name, so `MediaRelocateEngine` never reconciles one.
8036
8036
  */
8037
8037
  rowsReconciled: number().int().nonnegative().optional(),
8038
+ /**
8039
+ * Rows this run FORGOT because the file they name is not on disk.
8040
+ *
8041
+ * The mover derived the path from the row's own fields and `stat`ed it; an
8042
+ * ENOENT there is a per-path confirmation that the segment is gone (D296),
8043
+ * and the durable row is dropped through the same channel eviction uses. It
8044
+ * is reported for the same reason `rowsReconciled` is: this is a durable
8045
+ * mutation nobody asked for, and a migration that quietly erases hour rows is
8046
+ * the same failure as one that quietly skips them (D295).
8047
+ *
8048
+ * The production drain of 2026-08-30 would have reported 11 074 here — the
8049
+ * ledger claimed 5.65 GB of footage that no longer existed.
8050
+ */
8051
+ rowsForgotten: number().int().nonnegative().optional(),
8038
8052
  startedAt: number(),
8039
8053
  finishedAt: number().nullable(),
8040
8054
  error: string().nullable()
@@ -8398,6 +8412,91 @@ var RelocateResidueSchema = object({
8398
8412
  segments: number().int().nonnegative(),
8399
8413
  bytes: number().int().nonnegative()
8400
8414
  }).nullable();
8415
+ /**
8416
+ * Ask one location whether its durable hour rows describe the disk — the walk
8417
+ * (D319).
8418
+ *
8419
+ * `apply` DEFAULTS TO FALSE and that default is the product: the operator's
8420
+ * missing tool is the question, and the dry run is how they sanity-check the
8421
+ * destructive run before authorising it.
8422
+ */
8423
+ var LedgerWalkInputSchema = object({
8424
+ locationId: string().min(1),
8425
+ /** Forget the confirmed-absent rows, rather than only counting them. */
8426
+ apply: boolean().optional(),
8427
+ /** Narrow to one camera. */
8428
+ deviceId: number().int().positive().optional(),
8429
+ /** Narrow to these recording profiles; empty/absent = every profile. */
8430
+ profiles: array(string().min(1)).optional()
8431
+ });
8432
+ /** Why a whole walk did nothing. Every one leaves the ledger untouched. */
8433
+ var LedgerWalkRefusalSchema = _enum([
8434
+ "location-unknown",
8435
+ "source-writable",
8436
+ "no-ledger",
8437
+ "archive-unreadable",
8438
+ "anchor-absent",
8439
+ "anchor-unreadable",
8440
+ "anchor-moved"
8441
+ ]);
8442
+ _enum([
8443
+ "live-tail",
8444
+ "listing-error",
8445
+ "path-mismatch",
8446
+ "durable-refused"
8447
+ ]);
8448
+ /** Every skip reason, always present, always a number — so a reason that never
8449
+ * fired reports as zero rather than absent and the report shape is constant
8450
+ * between passes. Spelled out rather than `z.record` for exactly that. */
8451
+ var LedgerWalkSkipCountsSchema = object({
8452
+ "live-tail": number().int().nonnegative(),
8453
+ "listing-error": number().int().nonnegative(),
8454
+ "path-mismatch": number().int().nonnegative(),
8455
+ "durable-refused": number().int().nonnegative()
8456
+ });
8457
+ /** One camera's share of a walk, so a report names cameras and not rows. */
8458
+ var LedgerWalkDeviceReportSchema = object({
8459
+ deviceId: number().int(),
8460
+ hoursWalked: number().int().nonnegative(),
8461
+ hoursMissing: number().int().nonnegative(),
8462
+ ghostSegments: number().int().nonnegative(),
8463
+ ghostBytes: number().int().nonnegative(),
8464
+ forgottenSegments: number().int().nonnegative(),
8465
+ orphanFiles: number().int().nonnegative()
8466
+ });
8467
+ /**
8468
+ * What one walk claimed, listed, found and (only when armed) forgot.
8469
+ *
8470
+ * `archiveSegments` is the **M** and `segmentsClaimed` the **N** (D295), so a
8471
+ * walk that saw a fraction of the location is visible in its own report rather
8472
+ * than in the absence of one.
8473
+ */
8474
+ var LedgerWalkReportSchema = object({
8475
+ locationId: string(),
8476
+ applied: boolean(),
8477
+ refused: LedgerWalkRefusalSchema.nullable(),
8478
+ archiveSegments: number().int().nonnegative().nullable(),
8479
+ archiveBytes: number().int().nonnegative().nullable(),
8480
+ hoursClaimed: number().int().nonnegative(),
8481
+ hoursWalked: number().int().nonnegative(),
8482
+ hoursMissing: number().int().nonnegative(),
8483
+ /** `readdir` calls issued — the cost, stated in the unit that is paid. */
8484
+ listings: number().int().nonnegative(),
8485
+ segmentsClaimed: number().int().nonnegative(),
8486
+ ghostSegments: number().int().nonnegative(),
8487
+ ghostBytes: number().int().nonnegative(),
8488
+ ghostHoursWhole: number().int().nonnegative(),
8489
+ forgottenSegments: number().int().nonnegative(),
8490
+ forgottenBytes: number().int().nonnegative(),
8491
+ /** Files under a claimed hour that no durable row names. Never deleted. */
8492
+ orphanFiles: number().int().nonnegative(),
8493
+ orphanSample: array(string()).readonly(),
8494
+ hoursSkipped: number().int().nonnegative(),
8495
+ skippedByReason: LedgerWalkSkipCountsSchema,
8496
+ /** The walk stopped at its per-pass hour bound with claims unwalked. */
8497
+ bounded: boolean(),
8498
+ byDevice: array(LedgerWalkDeviceReportSchema).readonly()
8499
+ });
8401
8500
  /** How many rows a media pass would still act on against a given target — the
8402
8501
  * media lane's denominator AND its residue, from ONE derivation so the two can
8403
8502
  * never disagree. `null` = the count could not be taken. */
@@ -18688,13 +18787,15 @@ var ListGroupsPageSchema = object({
18688
18787
  groups: array(AnalyticsGroupRecordSchema).readonly(),
18689
18788
  nextCursor: string().nullable()
18690
18789
  });
18790
+ var KEY_EVENTS_DEFAULT_LIMIT = 50;
18791
+ var KEY_EVENTS_MAX_LIMIT = 200;
18691
18792
  var KeyEventQueryInput = object({
18692
18793
  deviceId: number(),
18693
18794
  /** Window lower bound (track firstSeen ≥ since). */
18694
18795
  since: number(),
18695
18796
  /** Window upper bound (track firstSeen ≤ until). */
18696
18797
  until: number(),
18697
- limit: number().int().min(1).max(200).default(50),
18798
+ limit: number().int().min(1).max(KEY_EVENTS_MAX_LIMIT).default(KEY_EVENTS_DEFAULT_LIMIT),
18698
18799
  /** Drop tracks scoring below this importance. */
18699
18800
  minImportance: number().min(0).max(1).optional(),
18700
18801
  /** Restrict to a single class (e.g. 'person'). */
@@ -18716,6 +18817,32 @@ var KeyEventSchema = object({
18716
18817
  ...TrackFlagFields,
18717
18818
  ...TrackRetrainFields
18718
18819
  });
18820
+ /** `getKeyEvents`' window and filters, asked of a SET of cameras at once. */
18821
+ var KeyEventBatchQueryInput = object({
18822
+ deviceIds: array(number()).min(1).max(200),
18823
+ since: number(),
18824
+ until: number(),
18825
+ /** Applied PER CAMERA, exactly as `getKeyEvents.limit` is — never a total
18826
+ * across the set, which would let a busy camera starve a quiet one of its
18827
+ * rows and change what the merged feed contains. */
18828
+ limit: number().int().min(1).max(KEY_EVENTS_MAX_LIMIT).default(KEY_EVENTS_DEFAULT_LIMIT),
18829
+ minImportance: number().min(0).max(1).optional(),
18830
+ classFilter: string().optional()
18831
+ });
18832
+ /**
18833
+ * One camera's key events in a batch answer.
18834
+ *
18835
+ * The row exists for every requested id. `getKeyEvents` degrades to `[]` on
18836
+ * error rather than throwing, so a camera whose store read failed and one with
18837
+ * no events in the window were ALREADY indistinguishable per camera — the
18838
+ * batch does not make that worse, and the row keeps the deviceId the single
18839
+ * method's output never carried (the caller used to stamp it from the fan-out
18840
+ * key, which only worked because there was one query per camera).
18841
+ */
18842
+ var KeyEventsForDeviceSchema = object({
18843
+ deviceId: number(),
18844
+ events: array(KeyEventSchema).readonly()
18845
+ });
18719
18846
  object({
18720
18847
  trackId: string(),
18721
18848
  className: string(),
@@ -18985,7 +19112,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18985
19112
  until: number().optional(),
18986
19113
  kinds: array(string()).optional(),
18987
19114
  limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
18988
- }), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
19115
+ }), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()), method(object({
18989
19116
  deviceId: number(),
18990
19117
  since: number(),
18991
19118
  until: number(),
@@ -26698,6 +26825,9 @@ method(object({
26698
26825
  }), method(RelocateResidueInputSchema, RelocateResidueSchema, {
26699
26826
  kind: "query",
26700
26827
  auth: "admin"
26828
+ }), method(LedgerWalkInputSchema, LedgerWalkReportSchema, {
26829
+ kind: "mutation",
26830
+ auth: "admin"
26701
26831
  }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
26702
26832
  kind: "mutation",
26703
26833
  auth: "admin"
@@ -27089,7 +27219,26 @@ var SceneMonitorStatusSchema = object({
27089
27219
  monitors: array(SceneMonitorSchema),
27090
27220
  lastFetchedAt: number()
27091
27221
  });
27092
- DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSchema), method(object({
27222
+ /**
27223
+ * One camera's row in a `listScenesBatch` answer.
27224
+ *
27225
+ * `status` is NULLABLE and the nullability is the whole point. `scene-monitor`
27226
+ * is a `defaultActive` wrapper, so every camera is asked; a camera whose
27227
+ * provider is absent (pipeline-analytics not deployed, the post-processing node
27228
+ * down) cannot answer, and that is not the same fact as a camera with no scenes
27229
+ * configured. Fanned out per camera the difference was visible — one query
27230
+ * errored while the others resolved — and a batch that returned only the rows
27231
+ * it managed would have destroyed it, silently, by making an unreachable camera
27232
+ * indistinguishable from one that answered `monitors: []`.
27233
+ *
27234
+ * So: EVERY requested deviceId gets a row. `status: null` means "this camera
27235
+ * could not be read"; `status.monitors: []` means "read, and it has none".
27236
+ */
27237
+ var SceneMonitorStatusForDeviceSchema = object({
27238
+ deviceId: number(),
27239
+ status: SceneMonitorStatusSchema.nullable()
27240
+ });
27241
+ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSchema), method(object({ deviceIds: array(number()).min(1).max(200) }), array(SceneMonitorStatusForDeviceSchema).readonly()), method(object({
27093
27242
  deviceId: number(),
27094
27243
  label: string(),
27095
27244
  roi: MaskRectShapeSchema,
@@ -28413,6 +28562,27 @@ var CameraOccupancySnapshotSchema = object({
28413
28562
  stationaryObjects: array(StationaryObjectSchema).readonly().optional()
28414
28563
  });
28415
28564
  /**
28565
+ * One camera's row in a `getCurrentSnapshotBatch` answer.
28566
+ *
28567
+ * THREE outcomes, and the single-camera method could only express two of them
28568
+ * because `snapshot: null` was already spoken for:
28569
+ *
28570
+ * - `read: 'read'`, `snapshot` present — the live occupancy reading.
28571
+ * - `read: 'read'`, `snapshot: null` — read, and this camera has no reading
28572
+ * yet: no frame since boot, and no parked-object registry to hydrate from.
28573
+ * - `read: 'unreadable'` — the owner could not answer for this
28574
+ * camera. `snapshot` is null, and it does NOT mean "nothing parked here".
28575
+ *
28576
+ * Collapsing the last two is the failure this field exists to prevent: a
28577
+ * hydration that threw would otherwise render as an empty Stationary section,
28578
+ * which is a definite claim about a camera nobody could read.
28579
+ */
28580
+ var CameraOccupancySnapshotForDeviceSchema = object({
28581
+ deviceId: number(),
28582
+ read: _enum(["read", "unreadable"]),
28583
+ snapshot: CameraOccupancySnapshotSchema.nullable()
28584
+ });
28585
+ /**
28416
28586
  * Time-series resolution. The history methods return one bucket per
28417
28587
  * step over the requested range. Smaller resolutions cost more
28418
28588
  * memory + bandwidth; bound to discrete steps so caller cannot ask
@@ -28436,7 +28606,7 @@ var HistoryPointSchema = object({
28436
28606
  /** Object count averaged over the bucket (rounded to nearest integer). */
28437
28607
  count: number().int().nonnegative()
28438
28608
  });
28439
- DeviceType.Camera, method(object({ deviceId: number() }), CameraOccupancySnapshotSchema.nullable()), method(object({
28609
+ DeviceType.Camera, method(object({ deviceId: number() }), CameraOccupancySnapshotSchema.nullable()), method(object({ deviceIds: array(number()).min(1).max(200) }), array(CameraOccupancySnapshotForDeviceSchema).readonly()), method(object({
28440
28610
  deviceId: number(),
28441
28611
  zoneId: string(),
28442
28612
  className: string().optional()
@@ -31741,6 +31911,12 @@ Object.freeze({
31741
31911
  addonId: null,
31742
31912
  access: "view"
31743
31913
  },
31914
+ "pipelineAnalytics.getKeyEventsBatch": {
31915
+ capName: "pipeline-analytics",
31916
+ capScope: "device",
31917
+ addonId: null,
31918
+ access: "view"
31919
+ },
31744
31920
  "pipelineAnalytics.getMotionEvents": {
31745
31921
  capName: "pipeline-analytics",
31746
31922
  capScope: "device",
@@ -32917,6 +33093,12 @@ Object.freeze({
32917
33093
  addonId: null,
32918
33094
  access: "view"
32919
33095
  },
33096
+ "recording.reconcileLedgerAgainstDisk": {
33097
+ capName: "recording",
33098
+ capScope: "system",
33099
+ addonId: null,
33100
+ access: "create"
33101
+ },
32920
33102
  "recording.refreshStorageLocationsForMigration": {
32921
33103
  capName: "recording",
32922
33104
  capScope: "system",
@@ -33043,6 +33225,12 @@ Object.freeze({
33043
33225
  addonId: null,
33044
33226
  access: "view"
33045
33227
  },
33228
+ "sceneMonitor.listScenesBatch": {
33229
+ capName: "scene-monitor",
33230
+ capScope: "device",
33231
+ addonId: null,
33232
+ access: "view"
33233
+ },
33046
33234
  "sceneMonitor.recheckNow": {
33047
33235
  capName: "scene-monitor",
33048
33236
  capScope: "device",
@@ -34399,6 +34587,12 @@ Object.freeze({
34399
34587
  addonId: null,
34400
34588
  access: "view"
34401
34589
  },
34590
+ "zoneAnalytics.getCurrentSnapshotBatch": {
34591
+ capName: "zone-analytics",
34592
+ capScope: "device",
34593
+ addonId: null,
34594
+ access: "view"
34595
+ },
34402
34596
  "zoneAnalytics.getUnzonedHistory": {
34403
34597
  capName: "zone-analytics",
34404
34598
  capScope: "device",
@@ -35403,6 +35597,11 @@ Object.freeze({
35403
35597
  form: "single",
35404
35598
  optional: false
35405
35599
  }],
35600
+ "pipelineAnalytics.getKeyEventsBatch": [{
35601
+ name: "deviceIds",
35602
+ form: "array",
35603
+ optional: false
35604
+ }],
35406
35605
  "pipelineAnalytics.getMotionEvents": [{
35407
35606
  name: "deviceId",
35408
35607
  form: "single",
@@ -35843,6 +36042,11 @@ Object.freeze({
35843
36042
  form: "single",
35844
36043
  optional: false
35845
36044
  }],
36045
+ "recording.reconcileLedgerAgainstDisk": [{
36046
+ name: "deviceId",
36047
+ form: "single",
36048
+ optional: true
36049
+ }],
35846
36050
  "recording.relocateFootage": [{
35847
36051
  name: "deviceId",
35848
36052
  form: "single",
@@ -35908,6 +36112,11 @@ Object.freeze({
35908
36112
  form: "single",
35909
36113
  optional: false
35910
36114
  }],
36115
+ "sceneMonitor.listScenesBatch": [{
36116
+ name: "deviceIds",
36117
+ form: "array",
36118
+ optional: false
36119
+ }],
35911
36120
  "sceneMonitor.recheckNow": [{
35912
36121
  name: "deviceId",
35913
36122
  form: "single",
@@ -36169,6 +36378,11 @@ Object.freeze({
36169
36378
  form: "single",
36170
36379
  optional: false
36171
36380
  }],
36381
+ "zoneAnalytics.getCurrentSnapshotBatch": [{
36382
+ name: "deviceIds",
36383
+ form: "array",
36384
+ optional: false
36385
+ }],
36172
36386
  "zoneAnalytics.getUnzonedHistory": [{
36173
36387
  name: "deviceId",
36174
36388
  form: "single",
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_dist = require("../dist-D4Kv7xGB.js");
5
+ const require_dist = require("../dist-Cv-ufJXF.js");
6
6
  let node_crypto = require("node:crypto");
7
7
  let node_child_process = require("node:child_process");
8
8
  //#region src/ingress/tailscale-cli.ts
@@ -1,4 +1,4 @@
1
- import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-r9nSS25r.mjs";
1
+ import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-8Fi7VglU.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { execFile } from "node:child_process";
4
4
  import { promisify } from "node:util";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-tailscale",
3
- "version": "1.2.48",
3
+ "version": "1.2.49",
4
4
  "description": "Tailscale bundle for CamStack — joins the host to a tailnet (client) and exposes the hub via Serve/Funnel (ingress). Multi-entry npm package shipping 2 addons under a single bundle.",
5
5
  "keywords": [
6
6
  "camstack",