@camstack/addon-provider-unifi 0.2.49 → 0.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 (3) hide show
  1. package/dist/addon.js +236 -73
  2. package/dist/addon.mjs +236 -73
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -8096,6 +8096,13 @@ var MediaRelocateModeSchema = _enum([
8096
8096
  ]);
8097
8097
  var RelocateMediaInputSchema = object({
8098
8098
  toLocationId: string(),
8099
+ /**
8100
+ * Restrict the pass to rows currently on this location. Omitted / `'*'` =
8101
+ * every row that is not already on `toLocationId` (the historical
8102
+ * behaviour). A named source is what a from→to migration needs: without it
8103
+ * "move events off disk 2" also emptied disk 1.
8104
+ */
8105
+ fromLocationId: string().optional(),
8099
8106
  throttleMbps: number().min(1).max(1e3).optional(),
8100
8107
  /** Omitted = `move`, the pre-existing behaviour. */
8101
8108
  mode: MediaRelocateModeSchema.optional()
@@ -8163,6 +8170,19 @@ var StorageMigrationDestinationsSchema = object({
8163
8170
  galleryMedia: string().min(1).optional()
8164
8171
  }).refine((value) => Object.keys(value).length > 0, { message: "select at least one storage class" });
8165
8172
  /**
8173
+ * Optional named source per class. Omitted = the class's current default
8174
+ * (the historical behaviour). A named source that is NOT the default is a
8175
+ * drain of that disk: bytes move, the default stays, and the source is
8176
+ * disabled when the move finishes.
8177
+ */
8178
+ var StorageMigrationSourcesSchema = object({
8179
+ recordings: string().min(1).optional(),
8180
+ recordingsLow: string().min(1).optional(),
8181
+ eventMedia: string().min(1).optional(),
8182
+ backups: string().min(1).optional(),
8183
+ galleryMedia: string().min(1).optional()
8184
+ }).optional();
8185
+ /**
8166
8186
  * How a migration sequences the cutover against the byte move.
8167
8187
  *
8168
8188
  * - `blocking` — the historical order: pause, move every byte, repoint,
@@ -8184,6 +8204,8 @@ var StorageMigrationModeSchema = _enum(["blocking", "nonBlocking"]);
8184
8204
  /** Shared input for planning and starting an orchestrated storage migration. */
8185
8205
  var StorageMigrationInputSchema = object({
8186
8206
  destinations: StorageMigrationDestinationsSchema,
8207
+ /** Omitted = each class's current default. */
8208
+ sources: StorageMigrationSourcesSchema,
8187
8209
  throttleMbps: number().min(1).max(1e3).optional(),
8188
8210
  /** Omitted = `blocking`, which stays the default. */
8189
8211
  mode: StorageMigrationModeSchema.optional()
@@ -8263,6 +8285,13 @@ var StorageMigrationMoveSchema = object({
8263
8285
  storageClass: StorageMigrationClassSchema,
8264
8286
  fromLocationId: string(),
8265
8287
  toLocationId: string(),
8288
+ /**
8289
+ * True when `from` was NOT the class default at plan time. The move still
8290
+ * copies bytes, but the default is left alone and the source is disabled
8291
+ * once the copy verifies. Absent on jobs planned before this field existed
8292
+ * — those jobs always repointed, which is `false`.
8293
+ */
8294
+ freezeSource: boolean().optional(),
8266
8295
  moverJobId: string().nullable(),
8267
8296
  state: RelocateJobStateSchema.nullable(),
8268
8297
  error: string().nullable(),
@@ -8276,6 +8305,7 @@ var StorageMigrationJobSchema = object({
8276
8305
  * can tell a seconds-long cutover from a thirty-hour one. */
8277
8306
  mode: StorageMigrationModeSchema,
8278
8307
  destinations: StorageMigrationDestinationsSchema,
8308
+ sources: StorageMigrationSourcesSchema,
8279
8309
  throttleMbps: number(),
8280
8310
  moves: array(StorageMigrationMoveSchema),
8281
8311
  pauseLeaseId: string().nullable(),
@@ -8301,6 +8331,7 @@ var StorageMigrationFindingSchema = object({
8301
8331
  });
8302
8332
  var StorageMigrationPlanSchema = object({
8303
8333
  destinations: StorageMigrationDestinationsSchema,
8334
+ sources: StorageMigrationSourcesSchema,
8304
8335
  /** The mode this plan was built for. A plan is only valid for its mode: the
8305
8336
  * `eventMedia` seal gate and the single-cardinality refusal both depend on
8306
8337
  * it. */
@@ -8308,7 +8339,8 @@ var StorageMigrationPlanSchema = object({
8308
8339
  moves: array(object({
8309
8340
  storageClass: StorageMigrationClassSchema,
8310
8341
  fromLocationId: string(),
8311
- toLocationId: string()
8342
+ toLocationId: string(),
8343
+ freezeSource: boolean().optional()
8312
8344
  })),
8313
8345
  findings: array(StorageMigrationFindingSchema)
8314
8346
  });
@@ -8486,10 +8518,51 @@ var LedgerWalkReportSchema = object({
8486
8518
  var RelocatableMediaCountSchema = object({ rows: number().int().nonnegative() }).nullable();
8487
8519
  var RelocatableMediaCountInputSchema = object({
8488
8520
  toLocationId: string().min(1),
8521
+ /** Restrict the count to one source; omitted / `'*'` = every non-target row. */
8522
+ fromLocationId: string().optional(),
8489
8523
  /** Omitted = `move`. */
8490
8524
  mode: MediaRelocateModeSchema.optional()
8491
8525
  });
8492
8526
  /**
8527
+ * Operator cleanup of leftover analytics rows, optional debug media, and
8528
+ * ghost ledger entries on frozen footage locations.
8529
+ *
8530
+ * A pass is tens of minutes on a standing backlog. The hub method RETURNS
8531
+ * `{ jobId }` immediately; progress is `cleanupStatus`. Awaiting the work
8532
+ * is how `addons.custom` hit the 60 s UDS deadline while reclaim continued
8533
+ * with no operator-visible status.
8534
+ */
8535
+ var StorageCleanupPhaseSchema = _enum([
8536
+ "orphans",
8537
+ "debug-media",
8538
+ "ghost-ledger",
8539
+ "done",
8540
+ "failed",
8541
+ "cancelled"
8542
+ ]);
8543
+ var StorageCleanupInputSchema = object({
8544
+ /** Also walk motion stills / track filmstrips. Off by default. */
8545
+ includeDebugMedia: boolean().optional() });
8546
+ var StorageCleanupJobSchema = object({
8547
+ jobId: string(),
8548
+ phase: StorageCleanupPhaseSchema,
8549
+ includeDebugMedia: boolean(),
8550
+ orphansReclaimed: number().int().nonnegative(),
8551
+ orphanBytesReclaimed: number().int().nonnegative(),
8552
+ debugMediaReclaimed: number().int().nonnegative(),
8553
+ debugMediaBytesReclaimed: number().int().nonnegative(),
8554
+ ghostsForgotten: number().int().nonnegative(),
8555
+ ghostBytesForgotten: number().int().nonnegative(),
8556
+ /** Short operator-facing line: current collection, pass, or location. */
8557
+ detail: string().nullable(),
8558
+ cancelRequested: boolean(),
8559
+ startedAt: number(),
8560
+ updatedAt: number(),
8561
+ finishedAt: number().nullable(),
8562
+ error: string().nullable()
8563
+ });
8564
+ var StorageCleanupStatusInputSchema = object({ jobId: string().optional() });
8565
+ /**
8493
8566
  * `StorageLocationType` — an addon-declared id that identifies the *kind* of
8494
8567
  * storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
8495
8568
  * so the persisted record schema and the consumer-facing cap can both consume it
@@ -8517,11 +8590,10 @@ var StorageLocationTypeSchema = string().regex(/^[a-z][a-zA-Z0-9-]*$/);
8517
8590
  * The default location for a type uses `id === <type>:default` by
8518
8591
  * convention (the bare type ref like `'backups'` resolves to it).
8519
8592
  *
8520
- * `isSystem: true` marks a location as orchestrator-seeded and
8521
- * undeletable. The bootstrap-installed defaults (one per type) carry
8522
- * this flag; operator-added locations don't. Editing the config of
8523
- * a system location is allowed (path migration, provider swap) but
8524
- * deleting it is rejected at the cap level.
8593
+ * `isSystem` is a legacy persisted flag. Seed still creates the initial
8594
+ * `<type>:default` locations; the flag is no longer a lock, a badge, or a
8595
+ * prune selector. New writes leave it false. Deletion is gated on uniqueness
8596
+ * / last-enabled, not on this bit.
8525
8597
  */
8526
8598
  var StorageLocationSchema = object({
8527
8599
  id: string().regex(/^[a-z][a-zA-Z0-9-]*:[a-zA-Z0-9-]+$/),
@@ -13047,6 +13119,12 @@ method(object({
13047
13119
  }), _void(), {
13048
13120
  kind: "mutation",
13049
13121
  auth: "admin"
13122
+ }), method(object({
13123
+ from: string(),
13124
+ to: string()
13125
+ }), object({ moved: number() }), {
13126
+ kind: "mutation",
13127
+ auth: "admin"
13050
13128
  }), method(object({
13051
13129
  deviceId: number(),
13052
13130
  disabled: boolean()
@@ -15797,6 +15875,8 @@ var NcSystemEventKindSchema = _enum([
15797
15875
  "device-offline",
15798
15876
  "device-disabled",
15799
15877
  "device-enabled",
15878
+ "device-battery-low",
15879
+ "device-battery-normal",
15800
15880
  "stream-online",
15801
15881
  "stream-offline",
15802
15882
  "node-online",
@@ -19055,46 +19135,6 @@ var RecentTracksPageSchema = object({
19055
19135
  /** Cursor for the next page, or null when this page is the last. */
19056
19136
  nextCursor: string().nullable()
19057
19137
  });
19058
- var LIST_GROUPS_DEFAULT_LIMIT = 40;
19059
- var LIST_GROUPS_MAX_LIMIT = 100;
19060
- var AnalyticsGroupRecordSchema = object({
19061
- id: string(),
19062
- deviceId: number().int(),
19063
- openedAt: number().int(),
19064
- closedAt: number().int(),
19065
- timestamp: number().int(),
19066
- memberCount: number().int(),
19067
- memberTrackIds: array(string()).readonly(),
19068
- className: string(),
19069
- classes: array(string()).readonly(),
19070
- /** Relative event-media path, or null when the group has no picture yet. */
19071
- mediaUrl: string().nullable(),
19072
- singleton: boolean()
19073
- });
19074
- var AnalyticsGroupMemberSchema = object({
19075
- trackId: string(),
19076
- deviceId: number().int(),
19077
- className: string(),
19078
- firstSeen: number().int(),
19079
- lastSeen: number().int(),
19080
- mediaUrl: string().nullable()
19081
- });
19082
- var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
19083
- var ListGroupsQueryInput = object({
19084
- /** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
19085
- deviceIds: array(number()),
19086
- /** Window lower bound on `closedAt` (inclusive). */
19087
- since: number().optional(),
19088
- /** Window upper bound on `openedAt` (inclusive). */
19089
- until: number().optional(),
19090
- limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
19091
- /** Opaque continuation cursor from a previous page's `nextCursor`. */
19092
- cursor: string().optional()
19093
- });
19094
- var ListGroupsPageSchema = object({
19095
- groups: array(AnalyticsGroupRecordSchema).readonly(),
19096
- nextCursor: string().nullable()
19097
- });
19098
19138
  var KEY_EVENTS_DEFAULT_LIMIT = 50;
19099
19139
  var KEY_EVENTS_MAX_LIMIT = 200;
19100
19140
  var KeyEventQueryInput = object({
@@ -19198,9 +19238,7 @@ var TrackCascadeCountsSchema = object({
19198
19238
  /** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
19199
19239
  plates: number().int(),
19200
19240
  /** Per-track CLIP search vectors removed (best-effort). */
19201
- embeddings: number().int(),
19202
- /** Group membership + group rows removed with their last member (best-effort). */
19203
- groups: number().int()
19241
+ embeddings: number().int()
19204
19242
  });
19205
19243
  /** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
19206
19244
  var DiskReconcileCountsSchema = object({
@@ -19370,6 +19408,47 @@ var RebuildStatusSchema = object({
19370
19408
  /** Present when the pass ended by throwing. */
19371
19409
  error: string().nullable()
19372
19410
  });
19411
+ /**
19412
+ * Acknowledgement that a debug-media reclaim STARTED.
19413
+ *
19414
+ * The pass is paced at ~2 MB/s over a standing 100 GB — tens of minutes — so
19415
+ * it runs detached and this returns immediately. Awaiting it is how the
19416
+ * `addons.custom` door hit the 60 s UDS deadline while the walk carried on
19417
+ * with no status. Poll {@link pipelineAnalyticsCapability.methods.getMediaReclaimStatus}.
19418
+ */
19419
+ var MediaReclaimStartResultSchema = object({
19420
+ started: boolean(),
19421
+ /** True when a pass was already running; the new request is ignored. */
19422
+ alreadyRunning: boolean()
19423
+ });
19424
+ var MediaReclaimInputSchema = object({
19425
+ mode: _enum(["report", "reclaim"]).default("report"),
19426
+ scopes: array(_enum(["motion-still", "track-filmstrip"])).min(1).optional(),
19427
+ deviceIds: array(number().int()).min(1).optional(),
19428
+ restart: boolean().optional(),
19429
+ pageSize: number().int().min(50).max(5e3).optional(),
19430
+ maxRowsPerDevice: number().int().min(1).max(5e5).optional(),
19431
+ maxReclaimPerDevice: number().int().min(1).max(5e5).optional(),
19432
+ maxBytesPerRun: number().int().min(1).optional(),
19433
+ budgetMinutes: number().int().min(1).max(720).optional(),
19434
+ throttleBytesPerSec: number().int().min(64 * 1024).optional(),
19435
+ graceMinutes: number().int().min(1).max(10080).optional()
19436
+ });
19437
+ var MediaReclaimStatusSchema = object({
19438
+ running: boolean(),
19439
+ mode: _enum(["report", "reclaim"]).nullable(),
19440
+ totalExamined: number(),
19441
+ totalEligible: number(),
19442
+ totalReclaimed: number(),
19443
+ totalBytesReclaimed: number(),
19444
+ totalRefused: number(),
19445
+ /** Device+scope windows finished in this pass. */
19446
+ devicesDone: number(),
19447
+ complete: boolean().nullable(),
19448
+ startedAtMs: number().nullable(),
19449
+ finishedAtMs: number().nullable(),
19450
+ error: string().nullable()
19451
+ });
19373
19452
  var ReplayFrameInputSchema = object({
19374
19453
  timestamp: number(),
19375
19454
  frame: PipelineRunResultBridge
@@ -19408,10 +19487,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19408
19487
  * stationary registry). Default false: the timeline lists passages,
19409
19488
  * not parking records (operator decision, 2026-08-15). */
19410
19489
  includeStationary: boolean().optional()
19411
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
19412
- deviceId: number(),
19413
- groupId: string().min(1)
19414
- }), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
19490
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
19415
19491
  kind: "mutation",
19416
19492
  auth: "admin"
19417
19493
  }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({ deviceId: number() }), array(EventKindDescriptorSchema).readonly()), method(object({ deviceIds: array(number()).min(1).max(200) }), array(EventKindsForDeviceSchema).readonly()), method(object({
@@ -19511,6 +19587,12 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19511
19587
  }), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
19512
19588
  kind: "query",
19513
19589
  auth: "admin"
19590
+ }), method(MediaReclaimInputSchema, MediaReclaimStartResultSchema, {
19591
+ kind: "mutation",
19592
+ auth: "admin"
19593
+ }), method(object({}), MediaReclaimStatusSchema, {
19594
+ kind: "query",
19595
+ auth: "admin"
19514
19596
  }), method(object({ deviceIds: array(number()).optional() }), TrainingExportSummarySchema, {
19515
19597
  kind: "query",
19516
19598
  auth: "admin"
@@ -21481,7 +21563,13 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
21481
21563
  }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
21482
21564
  kind: "mutation",
21483
21565
  auth: "admin"
21484
- });
21566
+ }), method(StorageCleanupInputSchema, object({ jobId: string() }), {
21567
+ kind: "mutation",
21568
+ auth: "admin"
21569
+ }), method(StorageCleanupStatusInputSchema, StorageCleanupJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
21570
+ kind: "mutation",
21571
+ auth: "admin"
21572
+ }), method(object({}), array(StorageMigrationJobSchema).readonly(), { auth: "admin" });
21485
21573
  var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
21486
21574
  providerId: string().min(1),
21487
21575
  displayName: string().min(1),
@@ -28591,6 +28679,33 @@ var RecordingRebalanceInputSchema = object({
28591
28679
  minMoveGb: number().min(0).optional()
28592
28680
  });
28593
28681
  /**
28682
+ * Operator-facing placement of one camera onto a recordings location.
28683
+ *
28684
+ * `pinLocationId` is the operator instruction: a location id, or `null` for
28685
+ * Auto (the planner may move this camera). `locationId` is where high/mid
28686
+ * currently write — the plan, which may disagree with the pin when Auto.
28687
+ */
28688
+ var RecordingDevicePlacementSchema = object({
28689
+ deviceId: number().int(),
28690
+ profile: string(),
28691
+ locationId: string()
28692
+ });
28693
+ var RecordingDevicePinSchema = object({
28694
+ deviceId: number().int(),
28695
+ /** Recordings-class location this camera is pinned to. */
28696
+ locationId: string()
28697
+ });
28698
+ var RecordingPlacementViewSchema = object({
28699
+ assignments: array(RecordingDevicePlacementSchema),
28700
+ pins: array(RecordingDevicePinSchema),
28701
+ defaultLocations: record(string(), string())
28702
+ });
28703
+ var RecordingSetDevicePlacementInputSchema = object({
28704
+ deviceId: number().int(),
28705
+ /** `null` = Auto. Otherwise a `recordings:*` location id. */
28706
+ locationId: string().nullable()
28707
+ });
28708
+ /**
28594
28709
  * Result of locating footage at a wall-clock instant for one device/profile.
28595
28710
  * `segment` carries the covering segment's window; `gap` reports the forward
28596
28711
  * nearest covered edge (`null` past the end of footage / when none exists)
@@ -28816,6 +28931,12 @@ method(object({
28816
28931
  }), method(RecordingRebalanceInputSchema, RecordingRebalancePlanSchema, {
28817
28932
  kind: "mutation",
28818
28933
  auth: "admin"
28934
+ }), method(object({}), RecordingPlacementViewSchema, {
28935
+ kind: "query",
28936
+ auth: "admin"
28937
+ }), method(RecordingSetDevicePlacementInputSchema, object({ ok: literal(true) }), {
28938
+ kind: "mutation",
28939
+ auth: "admin"
28819
28940
  });
28820
28941
  /**
28821
28942
  * `recording-export` cap — render a footage time range into a single downloadable
@@ -33885,6 +34006,12 @@ Object.freeze({
33885
34006
  addonId: null,
33886
34007
  access: "delete"
33887
34008
  },
34009
+ "deviceManager.renameLocation": {
34010
+ capName: "device-manager",
34011
+ capScope: "system",
34012
+ addonId: null,
34013
+ access: "create"
34014
+ },
33888
34015
  "deviceManager.runDeviceAction": {
33889
34016
  capName: "device-manager",
33890
34017
  capScope: "system",
@@ -35577,19 +35704,19 @@ Object.freeze({
35577
35704
  addonId: null,
35578
35705
  access: "view"
35579
35706
  },
35580
- "pipelineAnalytics.getGroup": {
35707
+ "pipelineAnalytics.getKeyEvents": {
35581
35708
  capName: "pipeline-analytics",
35582
35709
  capScope: "device",
35583
35710
  addonId: null,
35584
35711
  access: "view"
35585
35712
  },
35586
- "pipelineAnalytics.getKeyEvents": {
35713
+ "pipelineAnalytics.getKeyEventsBatch": {
35587
35714
  capName: "pipeline-analytics",
35588
35715
  capScope: "device",
35589
35716
  addonId: null,
35590
35717
  access: "view"
35591
35718
  },
35592
- "pipelineAnalytics.getKeyEventsBatch": {
35719
+ "pipelineAnalytics.getMediaReclaimStatus": {
35593
35720
  capName: "pipeline-analytics",
35594
35721
  capScope: "device",
35595
35722
  addonId: null,
@@ -35679,12 +35806,6 @@ Object.freeze({
35679
35806
  addonId: null,
35680
35807
  access: "view"
35681
35808
  },
35682
- "pipelineAnalytics.listGroups": {
35683
- capName: "pipeline-analytics",
35684
- capScope: "device",
35685
- addonId: null,
35686
- access: "view"
35687
- },
35688
35809
  "pipelineAnalytics.listOpsLog": {
35689
35810
  capName: "pipeline-analytics",
35690
35811
  capScope: "device",
@@ -35769,6 +35890,12 @@ Object.freeze({
35769
35890
  addonId: null,
35770
35891
  access: "create"
35771
35892
  },
35893
+ "pipelineAnalytics.reclaimDebugMedia": {
35894
+ capName: "pipeline-analytics",
35895
+ capScope: "device",
35896
+ addonId: null,
35897
+ access: "create"
35898
+ },
35772
35899
  "pipelineAnalytics.reconcileFromDisk": {
35773
35900
  capName: "pipeline-analytics",
35774
35901
  capScope: "device",
@@ -36693,6 +36820,12 @@ Object.freeze({
36693
36820
  addonId: null,
36694
36821
  access: "view"
36695
36822
  },
36823
+ "recording.getPlacement": {
36824
+ capName: "recording",
36825
+ capScope: "system",
36826
+ addonId: null,
36827
+ access: "view"
36828
+ },
36696
36829
  "recording.getPlaybackManifest": {
36697
36830
  capName: "recording",
36698
36831
  capScope: "system",
@@ -36819,6 +36952,12 @@ Object.freeze({
36819
36952
  addonId: null,
36820
36953
  access: "create"
36821
36954
  },
36955
+ "recording.setDevicePlacement": {
36956
+ capName: "recording",
36957
+ capScope: "system",
36958
+ addonId: null,
36959
+ access: "create"
36960
+ },
36822
36961
  "recording.startStorageMigrationMove": {
36823
36962
  capName: "recording",
36824
36963
  capScope: "system",
@@ -37263,12 +37402,36 @@ Object.freeze({
37263
37402
  addonId: null,
37264
37403
  access: "create"
37265
37404
  },
37405
+ "storageMigration.cleanupCancel": {
37406
+ capName: "storage-migration",
37407
+ capScope: "system",
37408
+ addonId: null,
37409
+ access: "create"
37410
+ },
37411
+ "storageMigration.cleanupStart": {
37412
+ capName: "storage-migration",
37413
+ capScope: "system",
37414
+ addonId: null,
37415
+ access: "create"
37416
+ },
37417
+ "storageMigration.cleanupStatus": {
37418
+ capName: "storage-migration",
37419
+ capScope: "system",
37420
+ addonId: null,
37421
+ access: "view"
37422
+ },
37266
37423
  "storageMigration.drain": {
37267
37424
  capName: "storage-migration",
37268
37425
  capScope: "system",
37269
37426
  addonId: null,
37270
37427
  access: "create"
37271
37428
  },
37429
+ "storageMigration.history": {
37430
+ capName: "storage-migration",
37431
+ capScope: "system",
37432
+ addonId: null,
37433
+ access: "view"
37434
+ },
37272
37435
  "storageMigration.movers": {
37273
37436
  capName: "storage-migration",
37274
37437
  capScope: "system",
@@ -39265,11 +39428,6 @@ Object.freeze({
39265
39428
  form: "single",
39266
39429
  optional: true
39267
39430
  }],
39268
- "pipelineAnalytics.getGroup": [{
39269
- name: "deviceId",
39270
- form: "single",
39271
- optional: false
39272
- }],
39273
39431
  "pipelineAnalytics.getKeyEvents": [{
39274
39432
  name: "deviceId",
39275
39433
  form: "single",
@@ -39335,11 +39493,6 @@ Object.freeze({
39335
39493
  form: "single",
39336
39494
  optional: false
39337
39495
  }],
39338
- "pipelineAnalytics.listGroups": [{
39339
- name: "deviceIds",
39340
- form: "array",
39341
- optional: false
39342
- }],
39343
39496
  "pipelineAnalytics.listOpsLog": [{
39344
39497
  name: "deviceId",
39345
39498
  form: "single",
@@ -39385,6 +39538,11 @@ Object.freeze({
39385
39538
  form: "single",
39386
39539
  optional: true
39387
39540
  }],
39541
+ "pipelineAnalytics.reclaimDebugMedia": [{
39542
+ name: "deviceIds",
39543
+ form: "array",
39544
+ optional: true
39545
+ }],
39388
39546
  "pipelineAnalytics.reconcileFromDisk": [{
39389
39547
  name: "deviceId",
39390
39548
  form: "single",
@@ -39750,6 +39908,11 @@ Object.freeze({
39750
39908
  form: "single",
39751
39909
  optional: false
39752
39910
  }],
39911
+ "recording.setDevicePlacement": [{
39912
+ name: "deviceId",
39913
+ form: "single",
39914
+ optional: false
39915
+ }],
39753
39916
  "recording.startStorageMigrationMove": [{
39754
39917
  name: "deviceId",
39755
39918
  form: "single",
package/dist/addon.mjs CHANGED
@@ -8095,6 +8095,13 @@ var MediaRelocateModeSchema = _enum([
8095
8095
  ]);
8096
8096
  var RelocateMediaInputSchema = object({
8097
8097
  toLocationId: string(),
8098
+ /**
8099
+ * Restrict the pass to rows currently on this location. Omitted / `'*'` =
8100
+ * every row that is not already on `toLocationId` (the historical
8101
+ * behaviour). A named source is what a from→to migration needs: without it
8102
+ * "move events off disk 2" also emptied disk 1.
8103
+ */
8104
+ fromLocationId: string().optional(),
8098
8105
  throttleMbps: number().min(1).max(1e3).optional(),
8099
8106
  /** Omitted = `move`, the pre-existing behaviour. */
8100
8107
  mode: MediaRelocateModeSchema.optional()
@@ -8162,6 +8169,19 @@ var StorageMigrationDestinationsSchema = object({
8162
8169
  galleryMedia: string().min(1).optional()
8163
8170
  }).refine((value) => Object.keys(value).length > 0, { message: "select at least one storage class" });
8164
8171
  /**
8172
+ * Optional named source per class. Omitted = the class's current default
8173
+ * (the historical behaviour). A named source that is NOT the default is a
8174
+ * drain of that disk: bytes move, the default stays, and the source is
8175
+ * disabled when the move finishes.
8176
+ */
8177
+ var StorageMigrationSourcesSchema = object({
8178
+ recordings: string().min(1).optional(),
8179
+ recordingsLow: string().min(1).optional(),
8180
+ eventMedia: string().min(1).optional(),
8181
+ backups: string().min(1).optional(),
8182
+ galleryMedia: string().min(1).optional()
8183
+ }).optional();
8184
+ /**
8165
8185
  * How a migration sequences the cutover against the byte move.
8166
8186
  *
8167
8187
  * - `blocking` — the historical order: pause, move every byte, repoint,
@@ -8183,6 +8203,8 @@ var StorageMigrationModeSchema = _enum(["blocking", "nonBlocking"]);
8183
8203
  /** Shared input for planning and starting an orchestrated storage migration. */
8184
8204
  var StorageMigrationInputSchema = object({
8185
8205
  destinations: StorageMigrationDestinationsSchema,
8206
+ /** Omitted = each class's current default. */
8207
+ sources: StorageMigrationSourcesSchema,
8186
8208
  throttleMbps: number().min(1).max(1e3).optional(),
8187
8209
  /** Omitted = `blocking`, which stays the default. */
8188
8210
  mode: StorageMigrationModeSchema.optional()
@@ -8262,6 +8284,13 @@ var StorageMigrationMoveSchema = object({
8262
8284
  storageClass: StorageMigrationClassSchema,
8263
8285
  fromLocationId: string(),
8264
8286
  toLocationId: string(),
8287
+ /**
8288
+ * True when `from` was NOT the class default at plan time. The move still
8289
+ * copies bytes, but the default is left alone and the source is disabled
8290
+ * once the copy verifies. Absent on jobs planned before this field existed
8291
+ * — those jobs always repointed, which is `false`.
8292
+ */
8293
+ freezeSource: boolean().optional(),
8265
8294
  moverJobId: string().nullable(),
8266
8295
  state: RelocateJobStateSchema.nullable(),
8267
8296
  error: string().nullable(),
@@ -8275,6 +8304,7 @@ var StorageMigrationJobSchema = object({
8275
8304
  * can tell a seconds-long cutover from a thirty-hour one. */
8276
8305
  mode: StorageMigrationModeSchema,
8277
8306
  destinations: StorageMigrationDestinationsSchema,
8307
+ sources: StorageMigrationSourcesSchema,
8278
8308
  throttleMbps: number(),
8279
8309
  moves: array(StorageMigrationMoveSchema),
8280
8310
  pauseLeaseId: string().nullable(),
@@ -8300,6 +8330,7 @@ var StorageMigrationFindingSchema = object({
8300
8330
  });
8301
8331
  var StorageMigrationPlanSchema = object({
8302
8332
  destinations: StorageMigrationDestinationsSchema,
8333
+ sources: StorageMigrationSourcesSchema,
8303
8334
  /** The mode this plan was built for. A plan is only valid for its mode: the
8304
8335
  * `eventMedia` seal gate and the single-cardinality refusal both depend on
8305
8336
  * it. */
@@ -8307,7 +8338,8 @@ var StorageMigrationPlanSchema = object({
8307
8338
  moves: array(object({
8308
8339
  storageClass: StorageMigrationClassSchema,
8309
8340
  fromLocationId: string(),
8310
- toLocationId: string()
8341
+ toLocationId: string(),
8342
+ freezeSource: boolean().optional()
8311
8343
  })),
8312
8344
  findings: array(StorageMigrationFindingSchema)
8313
8345
  });
@@ -8485,10 +8517,51 @@ var LedgerWalkReportSchema = object({
8485
8517
  var RelocatableMediaCountSchema = object({ rows: number().int().nonnegative() }).nullable();
8486
8518
  var RelocatableMediaCountInputSchema = object({
8487
8519
  toLocationId: string().min(1),
8520
+ /** Restrict the count to one source; omitted / `'*'` = every non-target row. */
8521
+ fromLocationId: string().optional(),
8488
8522
  /** Omitted = `move`. */
8489
8523
  mode: MediaRelocateModeSchema.optional()
8490
8524
  });
8491
8525
  /**
8526
+ * Operator cleanup of leftover analytics rows, optional debug media, and
8527
+ * ghost ledger entries on frozen footage locations.
8528
+ *
8529
+ * A pass is tens of minutes on a standing backlog. The hub method RETURNS
8530
+ * `{ jobId }` immediately; progress is `cleanupStatus`. Awaiting the work
8531
+ * is how `addons.custom` hit the 60 s UDS deadline while reclaim continued
8532
+ * with no operator-visible status.
8533
+ */
8534
+ var StorageCleanupPhaseSchema = _enum([
8535
+ "orphans",
8536
+ "debug-media",
8537
+ "ghost-ledger",
8538
+ "done",
8539
+ "failed",
8540
+ "cancelled"
8541
+ ]);
8542
+ var StorageCleanupInputSchema = object({
8543
+ /** Also walk motion stills / track filmstrips. Off by default. */
8544
+ includeDebugMedia: boolean().optional() });
8545
+ var StorageCleanupJobSchema = object({
8546
+ jobId: string(),
8547
+ phase: StorageCleanupPhaseSchema,
8548
+ includeDebugMedia: boolean(),
8549
+ orphansReclaimed: number().int().nonnegative(),
8550
+ orphanBytesReclaimed: number().int().nonnegative(),
8551
+ debugMediaReclaimed: number().int().nonnegative(),
8552
+ debugMediaBytesReclaimed: number().int().nonnegative(),
8553
+ ghostsForgotten: number().int().nonnegative(),
8554
+ ghostBytesForgotten: number().int().nonnegative(),
8555
+ /** Short operator-facing line: current collection, pass, or location. */
8556
+ detail: string().nullable(),
8557
+ cancelRequested: boolean(),
8558
+ startedAt: number(),
8559
+ updatedAt: number(),
8560
+ finishedAt: number().nullable(),
8561
+ error: string().nullable()
8562
+ });
8563
+ var StorageCleanupStatusInputSchema = object({ jobId: string().optional() });
8564
+ /**
8492
8565
  * `StorageLocationType` — an addon-declared id that identifies the *kind* of
8493
8566
  * storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
8494
8567
  * so the persisted record schema and the consumer-facing cap can both consume it
@@ -8516,11 +8589,10 @@ var StorageLocationTypeSchema = string().regex(/^[a-z][a-zA-Z0-9-]*$/);
8516
8589
  * The default location for a type uses `id === <type>:default` by
8517
8590
  * convention (the bare type ref like `'backups'` resolves to it).
8518
8591
  *
8519
- * `isSystem: true` marks a location as orchestrator-seeded and
8520
- * undeletable. The bootstrap-installed defaults (one per type) carry
8521
- * this flag; operator-added locations don't. Editing the config of
8522
- * a system location is allowed (path migration, provider swap) but
8523
- * deleting it is rejected at the cap level.
8592
+ * `isSystem` is a legacy persisted flag. Seed still creates the initial
8593
+ * `<type>:default` locations; the flag is no longer a lock, a badge, or a
8594
+ * prune selector. New writes leave it false. Deletion is gated on uniqueness
8595
+ * / last-enabled, not on this bit.
8524
8596
  */
8525
8597
  var StorageLocationSchema = object({
8526
8598
  id: string().regex(/^[a-z][a-zA-Z0-9-]*:[a-zA-Z0-9-]+$/),
@@ -13046,6 +13118,12 @@ method(object({
13046
13118
  }), _void(), {
13047
13119
  kind: "mutation",
13048
13120
  auth: "admin"
13121
+ }), method(object({
13122
+ from: string(),
13123
+ to: string()
13124
+ }), object({ moved: number() }), {
13125
+ kind: "mutation",
13126
+ auth: "admin"
13049
13127
  }), method(object({
13050
13128
  deviceId: number(),
13051
13129
  disabled: boolean()
@@ -15796,6 +15874,8 @@ var NcSystemEventKindSchema = _enum([
15796
15874
  "device-offline",
15797
15875
  "device-disabled",
15798
15876
  "device-enabled",
15877
+ "device-battery-low",
15878
+ "device-battery-normal",
15799
15879
  "stream-online",
15800
15880
  "stream-offline",
15801
15881
  "node-online",
@@ -19054,46 +19134,6 @@ var RecentTracksPageSchema = object({
19054
19134
  /** Cursor for the next page, or null when this page is the last. */
19055
19135
  nextCursor: string().nullable()
19056
19136
  });
19057
- var LIST_GROUPS_DEFAULT_LIMIT = 40;
19058
- var LIST_GROUPS_MAX_LIMIT = 100;
19059
- var AnalyticsGroupRecordSchema = object({
19060
- id: string(),
19061
- deviceId: number().int(),
19062
- openedAt: number().int(),
19063
- closedAt: number().int(),
19064
- timestamp: number().int(),
19065
- memberCount: number().int(),
19066
- memberTrackIds: array(string()).readonly(),
19067
- className: string(),
19068
- classes: array(string()).readonly(),
19069
- /** Relative event-media path, or null when the group has no picture yet. */
19070
- mediaUrl: string().nullable(),
19071
- singleton: boolean()
19072
- });
19073
- var AnalyticsGroupMemberSchema = object({
19074
- trackId: string(),
19075
- deviceId: number().int(),
19076
- className: string(),
19077
- firstSeen: number().int(),
19078
- lastSeen: number().int(),
19079
- mediaUrl: string().nullable()
19080
- });
19081
- var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
19082
- var ListGroupsQueryInput = object({
19083
- /** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
19084
- deviceIds: array(number()),
19085
- /** Window lower bound on `closedAt` (inclusive). */
19086
- since: number().optional(),
19087
- /** Window upper bound on `openedAt` (inclusive). */
19088
- until: number().optional(),
19089
- limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
19090
- /** Opaque continuation cursor from a previous page's `nextCursor`. */
19091
- cursor: string().optional()
19092
- });
19093
- var ListGroupsPageSchema = object({
19094
- groups: array(AnalyticsGroupRecordSchema).readonly(),
19095
- nextCursor: string().nullable()
19096
- });
19097
19137
  var KEY_EVENTS_DEFAULT_LIMIT = 50;
19098
19138
  var KEY_EVENTS_MAX_LIMIT = 200;
19099
19139
  var KeyEventQueryInput = object({
@@ -19197,9 +19237,7 @@ var TrackCascadeCountsSchema = object({
19197
19237
  /** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
19198
19238
  plates: number().int(),
19199
19239
  /** Per-track CLIP search vectors removed (best-effort). */
19200
- embeddings: number().int(),
19201
- /** Group membership + group rows removed with their last member (best-effort). */
19202
- groups: number().int()
19240
+ embeddings: number().int()
19203
19241
  });
19204
19242
  /** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
19205
19243
  var DiskReconcileCountsSchema = object({
@@ -19369,6 +19407,47 @@ var RebuildStatusSchema = object({
19369
19407
  /** Present when the pass ended by throwing. */
19370
19408
  error: string().nullable()
19371
19409
  });
19410
+ /**
19411
+ * Acknowledgement that a debug-media reclaim STARTED.
19412
+ *
19413
+ * The pass is paced at ~2 MB/s over a standing 100 GB — tens of minutes — so
19414
+ * it runs detached and this returns immediately. Awaiting it is how the
19415
+ * `addons.custom` door hit the 60 s UDS deadline while the walk carried on
19416
+ * with no status. Poll {@link pipelineAnalyticsCapability.methods.getMediaReclaimStatus}.
19417
+ */
19418
+ var MediaReclaimStartResultSchema = object({
19419
+ started: boolean(),
19420
+ /** True when a pass was already running; the new request is ignored. */
19421
+ alreadyRunning: boolean()
19422
+ });
19423
+ var MediaReclaimInputSchema = object({
19424
+ mode: _enum(["report", "reclaim"]).default("report"),
19425
+ scopes: array(_enum(["motion-still", "track-filmstrip"])).min(1).optional(),
19426
+ deviceIds: array(number().int()).min(1).optional(),
19427
+ restart: boolean().optional(),
19428
+ pageSize: number().int().min(50).max(5e3).optional(),
19429
+ maxRowsPerDevice: number().int().min(1).max(5e5).optional(),
19430
+ maxReclaimPerDevice: number().int().min(1).max(5e5).optional(),
19431
+ maxBytesPerRun: number().int().min(1).optional(),
19432
+ budgetMinutes: number().int().min(1).max(720).optional(),
19433
+ throttleBytesPerSec: number().int().min(64 * 1024).optional(),
19434
+ graceMinutes: number().int().min(1).max(10080).optional()
19435
+ });
19436
+ var MediaReclaimStatusSchema = object({
19437
+ running: boolean(),
19438
+ mode: _enum(["report", "reclaim"]).nullable(),
19439
+ totalExamined: number(),
19440
+ totalEligible: number(),
19441
+ totalReclaimed: number(),
19442
+ totalBytesReclaimed: number(),
19443
+ totalRefused: number(),
19444
+ /** Device+scope windows finished in this pass. */
19445
+ devicesDone: number(),
19446
+ complete: boolean().nullable(),
19447
+ startedAtMs: number().nullable(),
19448
+ finishedAtMs: number().nullable(),
19449
+ error: string().nullable()
19450
+ });
19372
19451
  var ReplayFrameInputSchema = object({
19373
19452
  timestamp: number(),
19374
19453
  frame: PipelineRunResultBridge
@@ -19407,10 +19486,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19407
19486
  * stationary registry). Default false: the timeline lists passages,
19408
19487
  * not parking records (operator decision, 2026-08-15). */
19409
19488
  includeStationary: boolean().optional()
19410
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
19411
- deviceId: number(),
19412
- groupId: string().min(1)
19413
- }), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
19489
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
19414
19490
  kind: "mutation",
19415
19491
  auth: "admin"
19416
19492
  }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({ deviceId: number() }), array(EventKindDescriptorSchema).readonly()), method(object({ deviceIds: array(number()).min(1).max(200) }), array(EventKindsForDeviceSchema).readonly()), method(object({
@@ -19510,6 +19586,12 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19510
19586
  }), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
19511
19587
  kind: "query",
19512
19588
  auth: "admin"
19589
+ }), method(MediaReclaimInputSchema, MediaReclaimStartResultSchema, {
19590
+ kind: "mutation",
19591
+ auth: "admin"
19592
+ }), method(object({}), MediaReclaimStatusSchema, {
19593
+ kind: "query",
19594
+ auth: "admin"
19513
19595
  }), method(object({ deviceIds: array(number()).optional() }), TrainingExportSummarySchema, {
19514
19596
  kind: "query",
19515
19597
  auth: "admin"
@@ -21480,7 +21562,13 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
21480
21562
  }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
21481
21563
  kind: "mutation",
21482
21564
  auth: "admin"
21483
- });
21565
+ }), method(StorageCleanupInputSchema, object({ jobId: string() }), {
21566
+ kind: "mutation",
21567
+ auth: "admin"
21568
+ }), method(StorageCleanupStatusInputSchema, StorageCleanupJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
21569
+ kind: "mutation",
21570
+ auth: "admin"
21571
+ }), method(object({}), array(StorageMigrationJobSchema).readonly(), { auth: "admin" });
21484
21572
  var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
21485
21573
  providerId: string().min(1),
21486
21574
  displayName: string().min(1),
@@ -28590,6 +28678,33 @@ var RecordingRebalanceInputSchema = object({
28590
28678
  minMoveGb: number().min(0).optional()
28591
28679
  });
28592
28680
  /**
28681
+ * Operator-facing placement of one camera onto a recordings location.
28682
+ *
28683
+ * `pinLocationId` is the operator instruction: a location id, or `null` for
28684
+ * Auto (the planner may move this camera). `locationId` is where high/mid
28685
+ * currently write — the plan, which may disagree with the pin when Auto.
28686
+ */
28687
+ var RecordingDevicePlacementSchema = object({
28688
+ deviceId: number().int(),
28689
+ profile: string(),
28690
+ locationId: string()
28691
+ });
28692
+ var RecordingDevicePinSchema = object({
28693
+ deviceId: number().int(),
28694
+ /** Recordings-class location this camera is pinned to. */
28695
+ locationId: string()
28696
+ });
28697
+ var RecordingPlacementViewSchema = object({
28698
+ assignments: array(RecordingDevicePlacementSchema),
28699
+ pins: array(RecordingDevicePinSchema),
28700
+ defaultLocations: record(string(), string())
28701
+ });
28702
+ var RecordingSetDevicePlacementInputSchema = object({
28703
+ deviceId: number().int(),
28704
+ /** `null` = Auto. Otherwise a `recordings:*` location id. */
28705
+ locationId: string().nullable()
28706
+ });
28707
+ /**
28593
28708
  * Result of locating footage at a wall-clock instant for one device/profile.
28594
28709
  * `segment` carries the covering segment's window; `gap` reports the forward
28595
28710
  * nearest covered edge (`null` past the end of footage / when none exists)
@@ -28815,6 +28930,12 @@ method(object({
28815
28930
  }), method(RecordingRebalanceInputSchema, RecordingRebalancePlanSchema, {
28816
28931
  kind: "mutation",
28817
28932
  auth: "admin"
28933
+ }), method(object({}), RecordingPlacementViewSchema, {
28934
+ kind: "query",
28935
+ auth: "admin"
28936
+ }), method(RecordingSetDevicePlacementInputSchema, object({ ok: literal(true) }), {
28937
+ kind: "mutation",
28938
+ auth: "admin"
28818
28939
  });
28819
28940
  /**
28820
28941
  * `recording-export` cap — render a footage time range into a single downloadable
@@ -33884,6 +34005,12 @@ Object.freeze({
33884
34005
  addonId: null,
33885
34006
  access: "delete"
33886
34007
  },
34008
+ "deviceManager.renameLocation": {
34009
+ capName: "device-manager",
34010
+ capScope: "system",
34011
+ addonId: null,
34012
+ access: "create"
34013
+ },
33887
34014
  "deviceManager.runDeviceAction": {
33888
34015
  capName: "device-manager",
33889
34016
  capScope: "system",
@@ -35576,19 +35703,19 @@ Object.freeze({
35576
35703
  addonId: null,
35577
35704
  access: "view"
35578
35705
  },
35579
- "pipelineAnalytics.getGroup": {
35706
+ "pipelineAnalytics.getKeyEvents": {
35580
35707
  capName: "pipeline-analytics",
35581
35708
  capScope: "device",
35582
35709
  addonId: null,
35583
35710
  access: "view"
35584
35711
  },
35585
- "pipelineAnalytics.getKeyEvents": {
35712
+ "pipelineAnalytics.getKeyEventsBatch": {
35586
35713
  capName: "pipeline-analytics",
35587
35714
  capScope: "device",
35588
35715
  addonId: null,
35589
35716
  access: "view"
35590
35717
  },
35591
- "pipelineAnalytics.getKeyEventsBatch": {
35718
+ "pipelineAnalytics.getMediaReclaimStatus": {
35592
35719
  capName: "pipeline-analytics",
35593
35720
  capScope: "device",
35594
35721
  addonId: null,
@@ -35678,12 +35805,6 @@ Object.freeze({
35678
35805
  addonId: null,
35679
35806
  access: "view"
35680
35807
  },
35681
- "pipelineAnalytics.listGroups": {
35682
- capName: "pipeline-analytics",
35683
- capScope: "device",
35684
- addonId: null,
35685
- access: "view"
35686
- },
35687
35808
  "pipelineAnalytics.listOpsLog": {
35688
35809
  capName: "pipeline-analytics",
35689
35810
  capScope: "device",
@@ -35768,6 +35889,12 @@ Object.freeze({
35768
35889
  addonId: null,
35769
35890
  access: "create"
35770
35891
  },
35892
+ "pipelineAnalytics.reclaimDebugMedia": {
35893
+ capName: "pipeline-analytics",
35894
+ capScope: "device",
35895
+ addonId: null,
35896
+ access: "create"
35897
+ },
35771
35898
  "pipelineAnalytics.reconcileFromDisk": {
35772
35899
  capName: "pipeline-analytics",
35773
35900
  capScope: "device",
@@ -36692,6 +36819,12 @@ Object.freeze({
36692
36819
  addonId: null,
36693
36820
  access: "view"
36694
36821
  },
36822
+ "recording.getPlacement": {
36823
+ capName: "recording",
36824
+ capScope: "system",
36825
+ addonId: null,
36826
+ access: "view"
36827
+ },
36695
36828
  "recording.getPlaybackManifest": {
36696
36829
  capName: "recording",
36697
36830
  capScope: "system",
@@ -36818,6 +36951,12 @@ Object.freeze({
36818
36951
  addonId: null,
36819
36952
  access: "create"
36820
36953
  },
36954
+ "recording.setDevicePlacement": {
36955
+ capName: "recording",
36956
+ capScope: "system",
36957
+ addonId: null,
36958
+ access: "create"
36959
+ },
36821
36960
  "recording.startStorageMigrationMove": {
36822
36961
  capName: "recording",
36823
36962
  capScope: "system",
@@ -37262,12 +37401,36 @@ Object.freeze({
37262
37401
  addonId: null,
37263
37402
  access: "create"
37264
37403
  },
37404
+ "storageMigration.cleanupCancel": {
37405
+ capName: "storage-migration",
37406
+ capScope: "system",
37407
+ addonId: null,
37408
+ access: "create"
37409
+ },
37410
+ "storageMigration.cleanupStart": {
37411
+ capName: "storage-migration",
37412
+ capScope: "system",
37413
+ addonId: null,
37414
+ access: "create"
37415
+ },
37416
+ "storageMigration.cleanupStatus": {
37417
+ capName: "storage-migration",
37418
+ capScope: "system",
37419
+ addonId: null,
37420
+ access: "view"
37421
+ },
37265
37422
  "storageMigration.drain": {
37266
37423
  capName: "storage-migration",
37267
37424
  capScope: "system",
37268
37425
  addonId: null,
37269
37426
  access: "create"
37270
37427
  },
37428
+ "storageMigration.history": {
37429
+ capName: "storage-migration",
37430
+ capScope: "system",
37431
+ addonId: null,
37432
+ access: "view"
37433
+ },
37271
37434
  "storageMigration.movers": {
37272
37435
  capName: "storage-migration",
37273
37436
  capScope: "system",
@@ -39264,11 +39427,6 @@ Object.freeze({
39264
39427
  form: "single",
39265
39428
  optional: true
39266
39429
  }],
39267
- "pipelineAnalytics.getGroup": [{
39268
- name: "deviceId",
39269
- form: "single",
39270
- optional: false
39271
- }],
39272
39430
  "pipelineAnalytics.getKeyEvents": [{
39273
39431
  name: "deviceId",
39274
39432
  form: "single",
@@ -39334,11 +39492,6 @@ Object.freeze({
39334
39492
  form: "single",
39335
39493
  optional: false
39336
39494
  }],
39337
- "pipelineAnalytics.listGroups": [{
39338
- name: "deviceIds",
39339
- form: "array",
39340
- optional: false
39341
- }],
39342
39495
  "pipelineAnalytics.listOpsLog": [{
39343
39496
  name: "deviceId",
39344
39497
  form: "single",
@@ -39384,6 +39537,11 @@ Object.freeze({
39384
39537
  form: "single",
39385
39538
  optional: true
39386
39539
  }],
39540
+ "pipelineAnalytics.reclaimDebugMedia": [{
39541
+ name: "deviceIds",
39542
+ form: "array",
39543
+ optional: true
39544
+ }],
39387
39545
  "pipelineAnalytics.reconcileFromDisk": [{
39388
39546
  name: "deviceId",
39389
39547
  form: "single",
@@ -39749,6 +39907,11 @@ Object.freeze({
39749
39907
  form: "single",
39750
39908
  optional: false
39751
39909
  }],
39910
+ "recording.setDevicePlacement": [{
39911
+ name: "deviceId",
39912
+ form: "single",
39913
+ optional: false
39914
+ }],
39752
39915
  "recording.startStorageMigrationMove": [{
39753
39916
  name: "deviceId",
39754
39917
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-unifi",
3
- "version": "0.2.49",
3
+ "version": "0.2.51",
4
4
  "description": "UniFi Network controller device-provider addon for CamStack — local-controller infra switches/APs (as containers) + network-client presence. NO cameras/Protect.",
5
5
  "keywords": [
6
6
  "camstack",