@camstack/addon-agent-ui 1.2.49 → 1.2.51

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 (2) hide show
  1. package/dist/addon.js +442 -12
  2. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -8021,6 +8021,20 @@ var RelocateJobSchema = object({
8021
8021
  * in its row, not in its name, so `MediaRelocateEngine` never reconciles one.
8022
8022
  */
8023
8023
  rowsReconciled: number().int().nonnegative().optional(),
8024
+ /**
8025
+ * Rows this run FORGOT because the file they name is not on disk.
8026
+ *
8027
+ * The mover derived the path from the row's own fields and `stat`ed it; an
8028
+ * ENOENT there is a per-path confirmation that the segment is gone (D296),
8029
+ * and the durable row is dropped through the same channel eviction uses. It
8030
+ * is reported for the same reason `rowsReconciled` is: this is a durable
8031
+ * mutation nobody asked for, and a migration that quietly erases hour rows is
8032
+ * the same failure as one that quietly skips them (D295).
8033
+ *
8034
+ * The production drain of 2026-08-30 would have reported 11 074 here — the
8035
+ * ledger claimed 5.65 GB of footage that no longer existed.
8036
+ */
8037
+ rowsForgotten: number().int().nonnegative().optional(),
8024
8038
  startedAt: number(),
8025
8039
  finishedAt: number().nullable(),
8026
8040
  error: string().nullable()
@@ -8085,6 +8099,13 @@ var MediaRelocateModeSchema = _enum([
8085
8099
  ]);
8086
8100
  var RelocateMediaInputSchema = object({
8087
8101
  toLocationId: string(),
8102
+ /**
8103
+ * Restrict the pass to rows currently on this location. Omitted / `'*'` =
8104
+ * every row that is not already on `toLocationId` (the historical
8105
+ * behaviour). A named source is what a from→to migration needs: without it
8106
+ * "move events off disk 2" also emptied disk 1.
8107
+ */
8108
+ fromLocationId: string().optional(),
8088
8109
  throttleMbps: number().min(1).max(1e3).optional(),
8089
8110
  /** Omitted = `move`, the pre-existing behaviour. */
8090
8111
  mode: MediaRelocateModeSchema.optional()
@@ -8152,6 +8173,19 @@ var StorageMigrationDestinationsSchema = object({
8152
8173
  galleryMedia: string().min(1).optional()
8153
8174
  }).refine((value) => Object.keys(value).length > 0, { message: "select at least one storage class" });
8154
8175
  /**
8176
+ * Optional named source per class. Omitted = the class's current default
8177
+ * (the historical behaviour). A named source that is NOT the default is a
8178
+ * drain of that disk: bytes move, the default stays, and the source is
8179
+ * disabled when the move finishes.
8180
+ */
8181
+ var StorageMigrationSourcesSchema = object({
8182
+ recordings: string().min(1).optional(),
8183
+ recordingsLow: string().min(1).optional(),
8184
+ eventMedia: string().min(1).optional(),
8185
+ backups: string().min(1).optional(),
8186
+ galleryMedia: string().min(1).optional()
8187
+ }).optional();
8188
+ /**
8155
8189
  * How a migration sequences the cutover against the byte move.
8156
8190
  *
8157
8191
  * - `blocking` — the historical order: pause, move every byte, repoint,
@@ -8173,6 +8207,8 @@ var StorageMigrationModeSchema = _enum(["blocking", "nonBlocking"]);
8173
8207
  /** Shared input for planning and starting an orchestrated storage migration. */
8174
8208
  var StorageMigrationInputSchema = object({
8175
8209
  destinations: StorageMigrationDestinationsSchema,
8210
+ /** Omitted = each class's current default. */
8211
+ sources: StorageMigrationSourcesSchema,
8176
8212
  throttleMbps: number().min(1).max(1e3).optional(),
8177
8213
  /** Omitted = `blocking`, which stays the default. */
8178
8214
  mode: StorageMigrationModeSchema.optional()
@@ -8252,6 +8288,13 @@ var StorageMigrationMoveSchema = object({
8252
8288
  storageClass: StorageMigrationClassSchema,
8253
8289
  fromLocationId: string(),
8254
8290
  toLocationId: string(),
8291
+ /**
8292
+ * True when `from` was NOT the class default at plan time. The move still
8293
+ * copies bytes, but the default is left alone and the source is disabled
8294
+ * once the copy verifies. Absent on jobs planned before this field existed
8295
+ * — those jobs always repointed, which is `false`.
8296
+ */
8297
+ freezeSource: boolean().optional(),
8255
8298
  moverJobId: string().nullable(),
8256
8299
  state: RelocateJobStateSchema.nullable(),
8257
8300
  error: string().nullable(),
@@ -8265,6 +8308,7 @@ var StorageMigrationJobSchema = object({
8265
8308
  * can tell a seconds-long cutover from a thirty-hour one. */
8266
8309
  mode: StorageMigrationModeSchema,
8267
8310
  destinations: StorageMigrationDestinationsSchema,
8311
+ sources: StorageMigrationSourcesSchema,
8268
8312
  throttleMbps: number(),
8269
8313
  moves: array(StorageMigrationMoveSchema),
8270
8314
  pauseLeaseId: string().nullable(),
@@ -8290,6 +8334,7 @@ var StorageMigrationFindingSchema = object({
8290
8334
  });
8291
8335
  var StorageMigrationPlanSchema = object({
8292
8336
  destinations: StorageMigrationDestinationsSchema,
8337
+ sources: StorageMigrationSourcesSchema,
8293
8338
  /** The mode this plan was built for. A plan is only valid for its mode: the
8294
8339
  * `eventMedia` seal gate and the single-cardinality refusal both depend on
8295
8340
  * it. */
@@ -8297,7 +8342,8 @@ var StorageMigrationPlanSchema = object({
8297
8342
  moves: array(object({
8298
8343
  storageClass: StorageMigrationClassSchema,
8299
8344
  fromLocationId: string(),
8300
- toLocationId: string()
8345
+ toLocationId: string(),
8346
+ freezeSource: boolean().optional()
8301
8347
  })),
8302
8348
  findings: array(StorageMigrationFindingSchema)
8303
8349
  });
@@ -8384,16 +8430,142 @@ var RelocateResidueSchema = object({
8384
8430
  segments: number().int().nonnegative(),
8385
8431
  bytes: number().int().nonnegative()
8386
8432
  }).nullable();
8433
+ /**
8434
+ * Ask one location whether its durable hour rows describe the disk — the walk
8435
+ * (D319).
8436
+ *
8437
+ * `apply` DEFAULTS TO FALSE and that default is the product: the operator's
8438
+ * missing tool is the question, and the dry run is how they sanity-check the
8439
+ * destructive run before authorising it.
8440
+ */
8441
+ var LedgerWalkInputSchema = object({
8442
+ locationId: string().min(1),
8443
+ /** Forget the confirmed-absent rows, rather than only counting them. */
8444
+ apply: boolean().optional(),
8445
+ /** Narrow to one camera. */
8446
+ deviceId: number().int().positive().optional(),
8447
+ /** Narrow to these recording profiles; empty/absent = every profile. */
8448
+ profiles: array(string().min(1)).optional()
8449
+ });
8450
+ /** Why a whole walk did nothing. Every one leaves the ledger untouched. */
8451
+ var LedgerWalkRefusalSchema = _enum([
8452
+ "location-unknown",
8453
+ "source-writable",
8454
+ "no-ledger",
8455
+ "archive-unreadable",
8456
+ "anchor-absent",
8457
+ "anchor-unreadable",
8458
+ "anchor-moved"
8459
+ ]);
8460
+ _enum([
8461
+ "live-tail",
8462
+ "listing-error",
8463
+ "path-mismatch",
8464
+ "durable-refused"
8465
+ ]);
8466
+ /** Every skip reason, always present, always a number — so a reason that never
8467
+ * fired reports as zero rather than absent and the report shape is constant
8468
+ * between passes. Spelled out rather than `z.record` for exactly that. */
8469
+ var LedgerWalkSkipCountsSchema = object({
8470
+ "live-tail": number().int().nonnegative(),
8471
+ "listing-error": number().int().nonnegative(),
8472
+ "path-mismatch": number().int().nonnegative(),
8473
+ "durable-refused": number().int().nonnegative()
8474
+ });
8475
+ /** One camera's share of a walk, so a report names cameras and not rows. */
8476
+ var LedgerWalkDeviceReportSchema = object({
8477
+ deviceId: number().int(),
8478
+ hoursWalked: number().int().nonnegative(),
8479
+ hoursMissing: number().int().nonnegative(),
8480
+ ghostSegments: number().int().nonnegative(),
8481
+ ghostBytes: number().int().nonnegative(),
8482
+ forgottenSegments: number().int().nonnegative(),
8483
+ orphanFiles: number().int().nonnegative()
8484
+ });
8485
+ /**
8486
+ * What one walk claimed, listed, found and (only when armed) forgot.
8487
+ *
8488
+ * `archiveSegments` is the **M** and `segmentsClaimed` the **N** (D295), so a
8489
+ * walk that saw a fraction of the location is visible in its own report rather
8490
+ * than in the absence of one.
8491
+ */
8492
+ var LedgerWalkReportSchema = object({
8493
+ locationId: string(),
8494
+ applied: boolean(),
8495
+ refused: LedgerWalkRefusalSchema.nullable(),
8496
+ archiveSegments: number().int().nonnegative().nullable(),
8497
+ archiveBytes: number().int().nonnegative().nullable(),
8498
+ hoursClaimed: number().int().nonnegative(),
8499
+ hoursWalked: number().int().nonnegative(),
8500
+ hoursMissing: number().int().nonnegative(),
8501
+ /** `readdir` calls issued — the cost, stated in the unit that is paid. */
8502
+ listings: number().int().nonnegative(),
8503
+ segmentsClaimed: number().int().nonnegative(),
8504
+ ghostSegments: number().int().nonnegative(),
8505
+ ghostBytes: number().int().nonnegative(),
8506
+ ghostHoursWhole: number().int().nonnegative(),
8507
+ forgottenSegments: number().int().nonnegative(),
8508
+ forgottenBytes: number().int().nonnegative(),
8509
+ /** Files under a claimed hour that no durable row names. Never deleted. */
8510
+ orphanFiles: number().int().nonnegative(),
8511
+ orphanSample: array(string()).readonly(),
8512
+ hoursSkipped: number().int().nonnegative(),
8513
+ skippedByReason: LedgerWalkSkipCountsSchema,
8514
+ /** The walk stopped at its per-pass hour bound with claims unwalked. */
8515
+ bounded: boolean(),
8516
+ byDevice: array(LedgerWalkDeviceReportSchema).readonly()
8517
+ });
8387
8518
  /** How many rows a media pass would still act on against a given target — the
8388
8519
  * media lane's denominator AND its residue, from ONE derivation so the two can
8389
8520
  * never disagree. `null` = the count could not be taken. */
8390
8521
  var RelocatableMediaCountSchema = object({ rows: number().int().nonnegative() }).nullable();
8391
8522
  var RelocatableMediaCountInputSchema = object({
8392
8523
  toLocationId: string().min(1),
8524
+ /** Restrict the count to one source; omitted / `'*'` = every non-target row. */
8525
+ fromLocationId: string().optional(),
8393
8526
  /** Omitted = `move`. */
8394
8527
  mode: MediaRelocateModeSchema.optional()
8395
8528
  });
8396
8529
  /**
8530
+ * Operator cleanup of leftover analytics rows, optional debug media, and
8531
+ * ghost ledger entries on frozen footage locations.
8532
+ *
8533
+ * A pass is tens of minutes on a standing backlog. The hub method RETURNS
8534
+ * `{ jobId }` immediately; progress is `cleanupStatus`. Awaiting the work
8535
+ * is how `addons.custom` hit the 60 s UDS deadline while reclaim continued
8536
+ * with no operator-visible status.
8537
+ */
8538
+ var StorageCleanupPhaseSchema = _enum([
8539
+ "orphans",
8540
+ "debug-media",
8541
+ "ghost-ledger",
8542
+ "done",
8543
+ "failed",
8544
+ "cancelled"
8545
+ ]);
8546
+ var StorageCleanupInputSchema = object({
8547
+ /** Also walk motion stills / track filmstrips. Off by default. */
8548
+ includeDebugMedia: boolean().optional() });
8549
+ var StorageCleanupJobSchema = object({
8550
+ jobId: string(),
8551
+ phase: StorageCleanupPhaseSchema,
8552
+ includeDebugMedia: boolean(),
8553
+ orphansReclaimed: number().int().nonnegative(),
8554
+ orphanBytesReclaimed: number().int().nonnegative(),
8555
+ debugMediaReclaimed: number().int().nonnegative(),
8556
+ debugMediaBytesReclaimed: number().int().nonnegative(),
8557
+ ghostsForgotten: number().int().nonnegative(),
8558
+ ghostBytesForgotten: number().int().nonnegative(),
8559
+ /** Short operator-facing line: current collection, pass, or location. */
8560
+ detail: string().nullable(),
8561
+ cancelRequested: boolean(),
8562
+ startedAt: number(),
8563
+ updatedAt: number(),
8564
+ finishedAt: number().nullable(),
8565
+ error: string().nullable()
8566
+ });
8567
+ var StorageCleanupStatusInputSchema = object({ jobId: string().optional() });
8568
+ /**
8397
8569
  * `StorageLocationType` — an addon-declared id that identifies the *kind* of
8398
8570
  * storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
8399
8571
  * so the persisted record schema and the consumer-facing cap can both consume it
@@ -8421,11 +8593,10 @@ var StorageLocationTypeSchema = string().regex(/^[a-z][a-zA-Z0-9-]*$/);
8421
8593
  * The default location for a type uses `id === <type>:default` by
8422
8594
  * convention (the bare type ref like `'backups'` resolves to it).
8423
8595
  *
8424
- * `isSystem: true` marks a location as orchestrator-seeded and
8425
- * undeletable. The bootstrap-installed defaults (one per type) carry
8426
- * this flag; operator-added locations don't. Editing the config of
8427
- * a system location is allowed (path migration, provider swap) but
8428
- * deleting it is rejected at the cap level.
8596
+ * `isSystem` is a legacy persisted flag. Seed still creates the initial
8597
+ * `<type>:default` locations; the flag is no longer a lock, a badge, or a
8598
+ * prune selector. New writes leave it false. Deletion is gated on uniqueness
8599
+ * / last-enabled, not on this bit.
8429
8600
  */
8430
8601
  var StorageLocationSchema = object({
8431
8602
  id: string().regex(/^[a-z][a-zA-Z0-9-]*:[a-zA-Z0-9-]+$/),
@@ -18657,13 +18828,15 @@ var ListGroupsPageSchema = object({
18657
18828
  groups: array(AnalyticsGroupRecordSchema).readonly(),
18658
18829
  nextCursor: string().nullable()
18659
18830
  });
18831
+ var KEY_EVENTS_DEFAULT_LIMIT = 50;
18832
+ var KEY_EVENTS_MAX_LIMIT = 200;
18660
18833
  var KeyEventQueryInput = object({
18661
18834
  deviceId: number(),
18662
18835
  /** Window lower bound (track firstSeen ≥ since). */
18663
18836
  since: number(),
18664
18837
  /** Window upper bound (track firstSeen ≤ until). */
18665
18838
  until: number(),
18666
- limit: number().int().min(1).max(200).default(50),
18839
+ limit: number().int().min(1).max(KEY_EVENTS_MAX_LIMIT).default(KEY_EVENTS_DEFAULT_LIMIT),
18667
18840
  /** Drop tracks scoring below this importance. */
18668
18841
  minImportance: number().min(0).max(1).optional(),
18669
18842
  /** Restrict to a single class (e.g. 'person'). */
@@ -18685,6 +18858,32 @@ var KeyEventSchema = object({
18685
18858
  ...TrackFlagFields,
18686
18859
  ...TrackRetrainFields
18687
18860
  });
18861
+ /** `getKeyEvents`' window and filters, asked of a SET of cameras at once. */
18862
+ var KeyEventBatchQueryInput = object({
18863
+ deviceIds: array(number()).min(1).max(200),
18864
+ since: number(),
18865
+ until: number(),
18866
+ /** Applied PER CAMERA, exactly as `getKeyEvents.limit` is — never a total
18867
+ * across the set, which would let a busy camera starve a quiet one of its
18868
+ * rows and change what the merged feed contains. */
18869
+ limit: number().int().min(1).max(KEY_EVENTS_MAX_LIMIT).default(KEY_EVENTS_DEFAULT_LIMIT),
18870
+ minImportance: number().min(0).max(1).optional(),
18871
+ classFilter: string().optional()
18872
+ });
18873
+ /**
18874
+ * One camera's key events in a batch answer.
18875
+ *
18876
+ * The row exists for every requested id. `getKeyEvents` degrades to `[]` on
18877
+ * error rather than throwing, so a camera whose store read failed and one with
18878
+ * no events in the window were ALREADY indistinguishable per camera — the
18879
+ * batch does not make that worse, and the row keeps the deviceId the single
18880
+ * method's output never carried (the caller used to stamp it from the fan-out
18881
+ * key, which only worked because there was one query per camera).
18882
+ */
18883
+ var KeyEventsForDeviceSchema = object({
18884
+ deviceId: number(),
18885
+ events: array(KeyEventSchema).readonly()
18886
+ });
18688
18887
  object({
18689
18888
  trackId: string(),
18690
18889
  className: string(),
@@ -18904,6 +19103,47 @@ var RebuildStatusSchema = object({
18904
19103
  /** Present when the pass ended by throwing. */
18905
19104
  error: string().nullable()
18906
19105
  });
19106
+ /**
19107
+ * Acknowledgement that a debug-media reclaim STARTED.
19108
+ *
19109
+ * The pass is paced at ~2 MB/s over a standing 100 GB — tens of minutes — so
19110
+ * it runs detached and this returns immediately. Awaiting it is how the
19111
+ * `addons.custom` door hit the 60 s UDS deadline while the walk carried on
19112
+ * with no status. Poll {@link pipelineAnalyticsCapability.methods.getMediaReclaimStatus}.
19113
+ */
19114
+ var MediaReclaimStartResultSchema = object({
19115
+ started: boolean(),
19116
+ /** True when a pass was already running; the new request is ignored. */
19117
+ alreadyRunning: boolean()
19118
+ });
19119
+ var MediaReclaimInputSchema = object({
19120
+ mode: _enum(["report", "reclaim"]).default("report"),
19121
+ scopes: array(_enum(["motion-still", "track-filmstrip"])).min(1).optional(),
19122
+ deviceIds: array(number().int()).min(1).optional(),
19123
+ restart: boolean().optional(),
19124
+ pageSize: number().int().min(50).max(5e3).optional(),
19125
+ maxRowsPerDevice: number().int().min(1).max(5e5).optional(),
19126
+ maxReclaimPerDevice: number().int().min(1).max(5e5).optional(),
19127
+ maxBytesPerRun: number().int().min(1).optional(),
19128
+ budgetMinutes: number().int().min(1).max(720).optional(),
19129
+ throttleBytesPerSec: number().int().min(64 * 1024).optional(),
19130
+ graceMinutes: number().int().min(1).max(10080).optional()
19131
+ });
19132
+ var MediaReclaimStatusSchema = object({
19133
+ running: boolean(),
19134
+ mode: _enum(["report", "reclaim"]).nullable(),
19135
+ totalExamined: number(),
19136
+ totalEligible: number(),
19137
+ totalReclaimed: number(),
19138
+ totalBytesReclaimed: number(),
19139
+ totalRefused: number(),
19140
+ /** Device+scope windows finished in this pass. */
19141
+ devicesDone: number(),
19142
+ complete: boolean().nullable(),
19143
+ startedAtMs: number().nullable(),
19144
+ finishedAtMs: number().nullable(),
19145
+ error: string().nullable()
19146
+ });
18907
19147
  var ReplayFrameInputSchema = object({
18908
19148
  timestamp: number(),
18909
19149
  frame: PipelineRunResultBridge
@@ -18954,7 +19194,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18954
19194
  until: number().optional(),
18955
19195
  kinds: array(string()).optional(),
18956
19196
  limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
18957
- }), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
19197
+ }), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()), method(object({
18958
19198
  deviceId: number(),
18959
19199
  since: number(),
18960
19200
  until: number(),
@@ -19045,6 +19285,12 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19045
19285
  }), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
19046
19286
  kind: "query",
19047
19287
  auth: "admin"
19288
+ }), method(MediaReclaimInputSchema, MediaReclaimStartResultSchema, {
19289
+ kind: "mutation",
19290
+ auth: "admin"
19291
+ }), method(object({}), MediaReclaimStatusSchema, {
19292
+ kind: "query",
19293
+ auth: "admin"
19048
19294
  }), method(object({ deviceIds: array(number()).optional() }), TrainingExportSummarySchema, {
19049
19295
  kind: "query",
19050
19296
  auth: "admin"
@@ -21015,7 +21261,13 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
21015
21261
  }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
21016
21262
  kind: "mutation",
21017
21263
  auth: "admin"
21018
- });
21264
+ }), method(StorageCleanupInputSchema, object({ jobId: string() }), {
21265
+ kind: "mutation",
21266
+ auth: "admin"
21267
+ }), method(StorageCleanupStatusInputSchema, StorageCleanupJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
21268
+ kind: "mutation",
21269
+ auth: "admin"
21270
+ }), method(object({}), array(StorageMigrationJobSchema).readonly(), { auth: "admin" });
21019
21271
  var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
21020
21272
  providerId: string().min(1),
21021
21273
  displayName: string().min(1),
@@ -26393,6 +26645,33 @@ var RecordingRebalanceInputSchema = object({
26393
26645
  minMoveGb: number().min(0).optional()
26394
26646
  });
26395
26647
  /**
26648
+ * Operator-facing placement of one camera onto a recordings location.
26649
+ *
26650
+ * `pinLocationId` is the operator instruction: a location id, or `null` for
26651
+ * Auto (the planner may move this camera). `locationId` is where high/mid
26652
+ * currently write — the plan, which may disagree with the pin when Auto.
26653
+ */
26654
+ var RecordingDevicePlacementSchema = object({
26655
+ deviceId: number().int(),
26656
+ profile: string(),
26657
+ locationId: string()
26658
+ });
26659
+ var RecordingDevicePinSchema = object({
26660
+ deviceId: number().int(),
26661
+ /** Recordings-class location this camera is pinned to. */
26662
+ locationId: string()
26663
+ });
26664
+ var RecordingPlacementViewSchema = object({
26665
+ assignments: array(RecordingDevicePlacementSchema),
26666
+ pins: array(RecordingDevicePinSchema),
26667
+ defaultLocations: record(string(), string())
26668
+ });
26669
+ var RecordingSetDevicePlacementInputSchema = object({
26670
+ deviceId: number().int(),
26671
+ /** `null` = Auto. Otherwise a `recordings:*` location id. */
26672
+ locationId: string().nullable()
26673
+ });
26674
+ /**
26396
26675
  * Result of locating footage at a wall-clock instant for one device/profile.
26397
26676
  * `segment` carries the covering segment's window; `gap` reports the forward
26398
26677
  * nearest covered edge (`null` past the end of footage / when none exists)
@@ -26606,6 +26885,9 @@ method(object({
26606
26885
  }), method(RelocateResidueInputSchema, RelocateResidueSchema, {
26607
26886
  kind: "query",
26608
26887
  auth: "admin"
26888
+ }), method(LedgerWalkInputSchema, LedgerWalkReportSchema, {
26889
+ kind: "mutation",
26890
+ auth: "admin"
26609
26891
  }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
26610
26892
  kind: "mutation",
26611
26893
  auth: "admin"
@@ -26615,6 +26897,12 @@ method(object({
26615
26897
  }), method(RecordingRebalanceInputSchema, RecordingRebalancePlanSchema, {
26616
26898
  kind: "mutation",
26617
26899
  auth: "admin"
26900
+ }), method(object({}), RecordingPlacementViewSchema, {
26901
+ kind: "query",
26902
+ auth: "admin"
26903
+ }), method(RecordingSetDevicePlacementInputSchema, object({ ok: literal(true) }), {
26904
+ kind: "mutation",
26905
+ auth: "admin"
26618
26906
  });
26619
26907
  /**
26620
26908
  * `recording-export` cap — render a footage time range into a single downloadable
@@ -26997,7 +27285,26 @@ var SceneMonitorStatusSchema = object({
26997
27285
  monitors: array(SceneMonitorSchema),
26998
27286
  lastFetchedAt: number()
26999
27287
  });
27000
- DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSchema), method(object({
27288
+ /**
27289
+ * One camera's row in a `listScenesBatch` answer.
27290
+ *
27291
+ * `status` is NULLABLE and the nullability is the whole point. `scene-monitor`
27292
+ * is a `defaultActive` wrapper, so every camera is asked; a camera whose
27293
+ * provider is absent (pipeline-analytics not deployed, the post-processing node
27294
+ * down) cannot answer, and that is not the same fact as a camera with no scenes
27295
+ * configured. Fanned out per camera the difference was visible — one query
27296
+ * errored while the others resolved — and a batch that returned only the rows
27297
+ * it managed would have destroyed it, silently, by making an unreachable camera
27298
+ * indistinguishable from one that answered `monitors: []`.
27299
+ *
27300
+ * So: EVERY requested deviceId gets a row. `status: null` means "this camera
27301
+ * could not be read"; `status.monitors: []` means "read, and it has none".
27302
+ */
27303
+ var SceneMonitorStatusForDeviceSchema = object({
27304
+ deviceId: number(),
27305
+ status: SceneMonitorStatusSchema.nullable()
27306
+ });
27307
+ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSchema), method(object({ deviceIds: array(number()).min(1).max(200) }), array(SceneMonitorStatusForDeviceSchema).readonly()), method(object({
27001
27308
  deviceId: number(),
27002
27309
  label: string(),
27003
27310
  roi: MaskRectShapeSchema,
@@ -28321,6 +28628,27 @@ var CameraOccupancySnapshotSchema = object({
28321
28628
  stationaryObjects: array(StationaryObjectSchema).readonly().optional()
28322
28629
  });
28323
28630
  /**
28631
+ * One camera's row in a `getCurrentSnapshotBatch` answer.
28632
+ *
28633
+ * THREE outcomes, and the single-camera method could only express two of them
28634
+ * because `snapshot: null` was already spoken for:
28635
+ *
28636
+ * - `read: 'read'`, `snapshot` present — the live occupancy reading.
28637
+ * - `read: 'read'`, `snapshot: null` — read, and this camera has no reading
28638
+ * yet: no frame since boot, and no parked-object registry to hydrate from.
28639
+ * - `read: 'unreadable'` — the owner could not answer for this
28640
+ * camera. `snapshot` is null, and it does NOT mean "nothing parked here".
28641
+ *
28642
+ * Collapsing the last two is the failure this field exists to prevent: a
28643
+ * hydration that threw would otherwise render as an empty Stationary section,
28644
+ * which is a definite claim about a camera nobody could read.
28645
+ */
28646
+ var CameraOccupancySnapshotForDeviceSchema = object({
28647
+ deviceId: number(),
28648
+ read: _enum(["read", "unreadable"]),
28649
+ snapshot: CameraOccupancySnapshotSchema.nullable()
28650
+ });
28651
+ /**
28324
28652
  * Time-series resolution. The history methods return one bucket per
28325
28653
  * step over the requested range. Smaller resolutions cost more
28326
28654
  * memory + bandwidth; bound to discrete steps so caller cannot ask
@@ -28344,7 +28672,7 @@ var HistoryPointSchema = object({
28344
28672
  /** Object count averaged over the bucket (rounded to nearest integer). */
28345
28673
  count: number().int().nonnegative()
28346
28674
  });
28347
- DeviceType.Camera, method(object({ deviceId: number() }), CameraOccupancySnapshotSchema.nullable()), method(object({
28675
+ DeviceType.Camera, method(object({ deviceId: number() }), CameraOccupancySnapshotSchema.nullable()), method(object({ deviceIds: array(number()).min(1).max(200) }), array(CameraOccupancySnapshotForDeviceSchema).readonly()), method(object({
28348
28676
  deviceId: number(),
28349
28677
  zoneId: string(),
28350
28678
  className: string().optional()
@@ -31649,6 +31977,18 @@ Object.freeze({
31649
31977
  addonId: null,
31650
31978
  access: "view"
31651
31979
  },
31980
+ "pipelineAnalytics.getKeyEventsBatch": {
31981
+ capName: "pipeline-analytics",
31982
+ capScope: "device",
31983
+ addonId: null,
31984
+ access: "view"
31985
+ },
31986
+ "pipelineAnalytics.getMediaReclaimStatus": {
31987
+ capName: "pipeline-analytics",
31988
+ capScope: "device",
31989
+ addonId: null,
31990
+ access: "view"
31991
+ },
31652
31992
  "pipelineAnalytics.getMotionEvents": {
31653
31993
  capName: "pipeline-analytics",
31654
31994
  capScope: "device",
@@ -31823,6 +32163,12 @@ Object.freeze({
31823
32163
  addonId: null,
31824
32164
  access: "create"
31825
32165
  },
32166
+ "pipelineAnalytics.reclaimDebugMedia": {
32167
+ capName: "pipeline-analytics",
32168
+ capScope: "device",
32169
+ addonId: null,
32170
+ access: "create"
32171
+ },
31826
32172
  "pipelineAnalytics.reconcileFromDisk": {
31827
32173
  capName: "pipeline-analytics",
31828
32174
  capScope: "device",
@@ -32747,6 +33093,12 @@ Object.freeze({
32747
33093
  addonId: null,
32748
33094
  access: "view"
32749
33095
  },
33096
+ "recording.getPlacement": {
33097
+ capName: "recording",
33098
+ capScope: "system",
33099
+ addonId: null,
33100
+ access: "view"
33101
+ },
32750
33102
  "recording.getPlaybackManifest": {
32751
33103
  capName: "recording",
32752
33104
  capScope: "system",
@@ -32825,6 +33177,12 @@ Object.freeze({
32825
33177
  addonId: null,
32826
33178
  access: "view"
32827
33179
  },
33180
+ "recording.reconcileLedgerAgainstDisk": {
33181
+ capName: "recording",
33182
+ capScope: "system",
33183
+ addonId: null,
33184
+ access: "create"
33185
+ },
32828
33186
  "recording.refreshStorageLocationsForMigration": {
32829
33187
  capName: "recording",
32830
33188
  capScope: "system",
@@ -32867,6 +33225,12 @@ Object.freeze({
32867
33225
  addonId: null,
32868
33226
  access: "create"
32869
33227
  },
33228
+ "recording.setDevicePlacement": {
33229
+ capName: "recording",
33230
+ capScope: "system",
33231
+ addonId: null,
33232
+ access: "create"
33233
+ },
32870
33234
  "recording.startStorageMigrationMove": {
32871
33235
  capName: "recording",
32872
33236
  capScope: "system",
@@ -32951,6 +33315,12 @@ Object.freeze({
32951
33315
  addonId: null,
32952
33316
  access: "view"
32953
33317
  },
33318
+ "sceneMonitor.listScenesBatch": {
33319
+ capName: "scene-monitor",
33320
+ capScope: "device",
33321
+ addonId: null,
33322
+ access: "view"
33323
+ },
32954
33324
  "sceneMonitor.recheckNow": {
32955
33325
  capName: "scene-monitor",
32956
33326
  capScope: "device",
@@ -33305,12 +33675,36 @@ Object.freeze({
33305
33675
  addonId: null,
33306
33676
  access: "create"
33307
33677
  },
33678
+ "storageMigration.cleanupCancel": {
33679
+ capName: "storage-migration",
33680
+ capScope: "system",
33681
+ addonId: null,
33682
+ access: "create"
33683
+ },
33684
+ "storageMigration.cleanupStart": {
33685
+ capName: "storage-migration",
33686
+ capScope: "system",
33687
+ addonId: null,
33688
+ access: "create"
33689
+ },
33690
+ "storageMigration.cleanupStatus": {
33691
+ capName: "storage-migration",
33692
+ capScope: "system",
33693
+ addonId: null,
33694
+ access: "view"
33695
+ },
33308
33696
  "storageMigration.drain": {
33309
33697
  capName: "storage-migration",
33310
33698
  capScope: "system",
33311
33699
  addonId: null,
33312
33700
  access: "create"
33313
33701
  },
33702
+ "storageMigration.history": {
33703
+ capName: "storage-migration",
33704
+ capScope: "system",
33705
+ addonId: null,
33706
+ access: "view"
33707
+ },
33314
33708
  "storageMigration.movers": {
33315
33709
  capName: "storage-migration",
33316
33710
  capScope: "system",
@@ -34307,6 +34701,12 @@ Object.freeze({
34307
34701
  addonId: null,
34308
34702
  access: "view"
34309
34703
  },
34704
+ "zoneAnalytics.getCurrentSnapshotBatch": {
34705
+ capName: "zone-analytics",
34706
+ capScope: "device",
34707
+ addonId: null,
34708
+ access: "view"
34709
+ },
34310
34710
  "zoneAnalytics.getUnzonedHistory": {
34311
34711
  capName: "zone-analytics",
34312
34712
  capScope: "device",
@@ -35311,6 +35711,11 @@ Object.freeze({
35311
35711
  form: "single",
35312
35712
  optional: false
35313
35713
  }],
35714
+ "pipelineAnalytics.getKeyEventsBatch": [{
35715
+ name: "deviceIds",
35716
+ form: "array",
35717
+ optional: false
35718
+ }],
35314
35719
  "pipelineAnalytics.getMotionEvents": [{
35315
35720
  name: "deviceId",
35316
35721
  form: "single",
@@ -35416,6 +35821,11 @@ Object.freeze({
35416
35821
  form: "single",
35417
35822
  optional: true
35418
35823
  }],
35824
+ "pipelineAnalytics.reclaimDebugMedia": [{
35825
+ name: "deviceIds",
35826
+ form: "array",
35827
+ optional: true
35828
+ }],
35419
35829
  "pipelineAnalytics.reconcileFromDisk": [{
35420
35830
  name: "deviceId",
35421
35831
  form: "single",
@@ -35751,6 +36161,11 @@ Object.freeze({
35751
36161
  form: "single",
35752
36162
  optional: false
35753
36163
  }],
36164
+ "recording.reconcileLedgerAgainstDisk": [{
36165
+ name: "deviceId",
36166
+ form: "single",
36167
+ optional: true
36168
+ }],
35754
36169
  "recording.relocateFootage": [{
35755
36170
  name: "deviceId",
35756
36171
  form: "single",
@@ -35776,6 +36191,11 @@ Object.freeze({
35776
36191
  form: "single",
35777
36192
  optional: false
35778
36193
  }],
36194
+ "recording.setDevicePlacement": [{
36195
+ name: "deviceId",
36196
+ form: "single",
36197
+ optional: false
36198
+ }],
35779
36199
  "recording.startStorageMigrationMove": [{
35780
36200
  name: "deviceId",
35781
36201
  form: "single",
@@ -35816,6 +36236,11 @@ Object.freeze({
35816
36236
  form: "single",
35817
36237
  optional: false
35818
36238
  }],
36239
+ "sceneMonitor.listScenesBatch": [{
36240
+ name: "deviceIds",
36241
+ form: "array",
36242
+ optional: false
36243
+ }],
35819
36244
  "sceneMonitor.recheckNow": [{
35820
36245
  name: "deviceId",
35821
36246
  form: "single",
@@ -36077,6 +36502,11 @@ Object.freeze({
36077
36502
  form: "single",
36078
36503
  optional: false
36079
36504
  }],
36505
+ "zoneAnalytics.getCurrentSnapshotBatch": [{
36506
+ name: "deviceIds",
36507
+ form: "array",
36508
+ optional: false
36509
+ }],
36080
36510
  "zoneAnalytics.getUnzonedHistory": [{
36081
36511
  name: "deviceId",
36082
36512
  form: "single",
@@ -36630,7 +37060,7 @@ var AgentUIAddon = class extends BaseAddon {
36630
37060
  capability: adminUiCapability,
36631
37061
  provider: {
36632
37062
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
36633
- getVersion: async () => ({ version: "1.2.49" })
37063
+ getVersion: async () => ({ version: "1.2.51" })
36634
37064
  }
36635
37065
  }];
36636
37066
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-agent-ui",
3
- "version": "1.2.49",
3
+ "version": "1.2.51",
4
4
  "description": "Agent UI — lightweight status dashboard served by every agent node",
5
5
  "keywords": [
6
6
  "camstack",