@camstack/addon-provider-unifi 0.2.49 → 0.2.50

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 +234 -73
  2. package/dist/addon.mjs +234 -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()
@@ -19055,46 +19133,6 @@ var RecentTracksPageSchema = object({
19055
19133
  /** Cursor for the next page, or null when this page is the last. */
19056
19134
  nextCursor: string().nullable()
19057
19135
  });
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
19136
  var KEY_EVENTS_DEFAULT_LIMIT = 50;
19099
19137
  var KEY_EVENTS_MAX_LIMIT = 200;
19100
19138
  var KeyEventQueryInput = object({
@@ -19198,9 +19236,7 @@ var TrackCascadeCountsSchema = object({
19198
19236
  /** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
19199
19237
  plates: number().int(),
19200
19238
  /** 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()
19239
+ embeddings: number().int()
19204
19240
  });
19205
19241
  /** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
19206
19242
  var DiskReconcileCountsSchema = object({
@@ -19370,6 +19406,47 @@ var RebuildStatusSchema = object({
19370
19406
  /** Present when the pass ended by throwing. */
19371
19407
  error: string().nullable()
19372
19408
  });
19409
+ /**
19410
+ * Acknowledgement that a debug-media reclaim STARTED.
19411
+ *
19412
+ * The pass is paced at ~2 MB/s over a standing 100 GB — tens of minutes — so
19413
+ * it runs detached and this returns immediately. Awaiting it is how the
19414
+ * `addons.custom` door hit the 60 s UDS deadline while the walk carried on
19415
+ * with no status. Poll {@link pipelineAnalyticsCapability.methods.getMediaReclaimStatus}.
19416
+ */
19417
+ var MediaReclaimStartResultSchema = object({
19418
+ started: boolean(),
19419
+ /** True when a pass was already running; the new request is ignored. */
19420
+ alreadyRunning: boolean()
19421
+ });
19422
+ var MediaReclaimInputSchema = object({
19423
+ mode: _enum(["report", "reclaim"]).default("report"),
19424
+ scopes: array(_enum(["motion-still", "track-filmstrip"])).min(1).optional(),
19425
+ deviceIds: array(number().int()).min(1).optional(),
19426
+ restart: boolean().optional(),
19427
+ pageSize: number().int().min(50).max(5e3).optional(),
19428
+ maxRowsPerDevice: number().int().min(1).max(5e5).optional(),
19429
+ maxReclaimPerDevice: number().int().min(1).max(5e5).optional(),
19430
+ maxBytesPerRun: number().int().min(1).optional(),
19431
+ budgetMinutes: number().int().min(1).max(720).optional(),
19432
+ throttleBytesPerSec: number().int().min(64 * 1024).optional(),
19433
+ graceMinutes: number().int().min(1).max(10080).optional()
19434
+ });
19435
+ var MediaReclaimStatusSchema = object({
19436
+ running: boolean(),
19437
+ mode: _enum(["report", "reclaim"]).nullable(),
19438
+ totalExamined: number(),
19439
+ totalEligible: number(),
19440
+ totalReclaimed: number(),
19441
+ totalBytesReclaimed: number(),
19442
+ totalRefused: number(),
19443
+ /** Device+scope windows finished in this pass. */
19444
+ devicesDone: number(),
19445
+ complete: boolean().nullable(),
19446
+ startedAtMs: number().nullable(),
19447
+ finishedAtMs: number().nullable(),
19448
+ error: string().nullable()
19449
+ });
19373
19450
  var ReplayFrameInputSchema = object({
19374
19451
  timestamp: number(),
19375
19452
  frame: PipelineRunResultBridge
@@ -19408,10 +19485,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19408
19485
  * stationary registry). Default false: the timeline lists passages,
19409
19486
  * not parking records (operator decision, 2026-08-15). */
19410
19487
  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(), {
19488
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
19415
19489
  kind: "mutation",
19416
19490
  auth: "admin"
19417
19491
  }), 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 +19585,12 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19511
19585
  }), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
19512
19586
  kind: "query",
19513
19587
  auth: "admin"
19588
+ }), method(MediaReclaimInputSchema, MediaReclaimStartResultSchema, {
19589
+ kind: "mutation",
19590
+ auth: "admin"
19591
+ }), method(object({}), MediaReclaimStatusSchema, {
19592
+ kind: "query",
19593
+ auth: "admin"
19514
19594
  }), method(object({ deviceIds: array(number()).optional() }), TrainingExportSummarySchema, {
19515
19595
  kind: "query",
19516
19596
  auth: "admin"
@@ -21481,7 +21561,13 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
21481
21561
  }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
21482
21562
  kind: "mutation",
21483
21563
  auth: "admin"
21484
- });
21564
+ }), method(StorageCleanupInputSchema, object({ jobId: string() }), {
21565
+ kind: "mutation",
21566
+ auth: "admin"
21567
+ }), method(StorageCleanupStatusInputSchema, StorageCleanupJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
21568
+ kind: "mutation",
21569
+ auth: "admin"
21570
+ }), method(object({}), array(StorageMigrationJobSchema).readonly(), { auth: "admin" });
21485
21571
  var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
21486
21572
  providerId: string().min(1),
21487
21573
  displayName: string().min(1),
@@ -28591,6 +28677,33 @@ var RecordingRebalanceInputSchema = object({
28591
28677
  minMoveGb: number().min(0).optional()
28592
28678
  });
28593
28679
  /**
28680
+ * Operator-facing placement of one camera onto a recordings location.
28681
+ *
28682
+ * `pinLocationId` is the operator instruction: a location id, or `null` for
28683
+ * Auto (the planner may move this camera). `locationId` is where high/mid
28684
+ * currently write — the plan, which may disagree with the pin when Auto.
28685
+ */
28686
+ var RecordingDevicePlacementSchema = object({
28687
+ deviceId: number().int(),
28688
+ profile: string(),
28689
+ locationId: string()
28690
+ });
28691
+ var RecordingDevicePinSchema = object({
28692
+ deviceId: number().int(),
28693
+ /** Recordings-class location this camera is pinned to. */
28694
+ locationId: string()
28695
+ });
28696
+ var RecordingPlacementViewSchema = object({
28697
+ assignments: array(RecordingDevicePlacementSchema),
28698
+ pins: array(RecordingDevicePinSchema),
28699
+ defaultLocations: record(string(), string())
28700
+ });
28701
+ var RecordingSetDevicePlacementInputSchema = object({
28702
+ deviceId: number().int(),
28703
+ /** `null` = Auto. Otherwise a `recordings:*` location id. */
28704
+ locationId: string().nullable()
28705
+ });
28706
+ /**
28594
28707
  * Result of locating footage at a wall-clock instant for one device/profile.
28595
28708
  * `segment` carries the covering segment's window; `gap` reports the forward
28596
28709
  * nearest covered edge (`null` past the end of footage / when none exists)
@@ -28816,6 +28929,12 @@ method(object({
28816
28929
  }), method(RecordingRebalanceInputSchema, RecordingRebalancePlanSchema, {
28817
28930
  kind: "mutation",
28818
28931
  auth: "admin"
28932
+ }), method(object({}), RecordingPlacementViewSchema, {
28933
+ kind: "query",
28934
+ auth: "admin"
28935
+ }), method(RecordingSetDevicePlacementInputSchema, object({ ok: literal(true) }), {
28936
+ kind: "mutation",
28937
+ auth: "admin"
28819
28938
  });
28820
28939
  /**
28821
28940
  * `recording-export` cap — render a footage time range into a single downloadable
@@ -33885,6 +34004,12 @@ Object.freeze({
33885
34004
  addonId: null,
33886
34005
  access: "delete"
33887
34006
  },
34007
+ "deviceManager.renameLocation": {
34008
+ capName: "device-manager",
34009
+ capScope: "system",
34010
+ addonId: null,
34011
+ access: "create"
34012
+ },
33888
34013
  "deviceManager.runDeviceAction": {
33889
34014
  capName: "device-manager",
33890
34015
  capScope: "system",
@@ -35577,19 +35702,19 @@ Object.freeze({
35577
35702
  addonId: null,
35578
35703
  access: "view"
35579
35704
  },
35580
- "pipelineAnalytics.getGroup": {
35705
+ "pipelineAnalytics.getKeyEvents": {
35581
35706
  capName: "pipeline-analytics",
35582
35707
  capScope: "device",
35583
35708
  addonId: null,
35584
35709
  access: "view"
35585
35710
  },
35586
- "pipelineAnalytics.getKeyEvents": {
35711
+ "pipelineAnalytics.getKeyEventsBatch": {
35587
35712
  capName: "pipeline-analytics",
35588
35713
  capScope: "device",
35589
35714
  addonId: null,
35590
35715
  access: "view"
35591
35716
  },
35592
- "pipelineAnalytics.getKeyEventsBatch": {
35717
+ "pipelineAnalytics.getMediaReclaimStatus": {
35593
35718
  capName: "pipeline-analytics",
35594
35719
  capScope: "device",
35595
35720
  addonId: null,
@@ -35679,12 +35804,6 @@ Object.freeze({
35679
35804
  addonId: null,
35680
35805
  access: "view"
35681
35806
  },
35682
- "pipelineAnalytics.listGroups": {
35683
- capName: "pipeline-analytics",
35684
- capScope: "device",
35685
- addonId: null,
35686
- access: "view"
35687
- },
35688
35807
  "pipelineAnalytics.listOpsLog": {
35689
35808
  capName: "pipeline-analytics",
35690
35809
  capScope: "device",
@@ -35769,6 +35888,12 @@ Object.freeze({
35769
35888
  addonId: null,
35770
35889
  access: "create"
35771
35890
  },
35891
+ "pipelineAnalytics.reclaimDebugMedia": {
35892
+ capName: "pipeline-analytics",
35893
+ capScope: "device",
35894
+ addonId: null,
35895
+ access: "create"
35896
+ },
35772
35897
  "pipelineAnalytics.reconcileFromDisk": {
35773
35898
  capName: "pipeline-analytics",
35774
35899
  capScope: "device",
@@ -36693,6 +36818,12 @@ Object.freeze({
36693
36818
  addonId: null,
36694
36819
  access: "view"
36695
36820
  },
36821
+ "recording.getPlacement": {
36822
+ capName: "recording",
36823
+ capScope: "system",
36824
+ addonId: null,
36825
+ access: "view"
36826
+ },
36696
36827
  "recording.getPlaybackManifest": {
36697
36828
  capName: "recording",
36698
36829
  capScope: "system",
@@ -36819,6 +36950,12 @@ Object.freeze({
36819
36950
  addonId: null,
36820
36951
  access: "create"
36821
36952
  },
36953
+ "recording.setDevicePlacement": {
36954
+ capName: "recording",
36955
+ capScope: "system",
36956
+ addonId: null,
36957
+ access: "create"
36958
+ },
36822
36959
  "recording.startStorageMigrationMove": {
36823
36960
  capName: "recording",
36824
36961
  capScope: "system",
@@ -37263,12 +37400,36 @@ Object.freeze({
37263
37400
  addonId: null,
37264
37401
  access: "create"
37265
37402
  },
37403
+ "storageMigration.cleanupCancel": {
37404
+ capName: "storage-migration",
37405
+ capScope: "system",
37406
+ addonId: null,
37407
+ access: "create"
37408
+ },
37409
+ "storageMigration.cleanupStart": {
37410
+ capName: "storage-migration",
37411
+ capScope: "system",
37412
+ addonId: null,
37413
+ access: "create"
37414
+ },
37415
+ "storageMigration.cleanupStatus": {
37416
+ capName: "storage-migration",
37417
+ capScope: "system",
37418
+ addonId: null,
37419
+ access: "view"
37420
+ },
37266
37421
  "storageMigration.drain": {
37267
37422
  capName: "storage-migration",
37268
37423
  capScope: "system",
37269
37424
  addonId: null,
37270
37425
  access: "create"
37271
37426
  },
37427
+ "storageMigration.history": {
37428
+ capName: "storage-migration",
37429
+ capScope: "system",
37430
+ addonId: null,
37431
+ access: "view"
37432
+ },
37272
37433
  "storageMigration.movers": {
37273
37434
  capName: "storage-migration",
37274
37435
  capScope: "system",
@@ -39265,11 +39426,6 @@ Object.freeze({
39265
39426
  form: "single",
39266
39427
  optional: true
39267
39428
  }],
39268
- "pipelineAnalytics.getGroup": [{
39269
- name: "deviceId",
39270
- form: "single",
39271
- optional: false
39272
- }],
39273
39429
  "pipelineAnalytics.getKeyEvents": [{
39274
39430
  name: "deviceId",
39275
39431
  form: "single",
@@ -39335,11 +39491,6 @@ Object.freeze({
39335
39491
  form: "single",
39336
39492
  optional: false
39337
39493
  }],
39338
- "pipelineAnalytics.listGroups": [{
39339
- name: "deviceIds",
39340
- form: "array",
39341
- optional: false
39342
- }],
39343
39494
  "pipelineAnalytics.listOpsLog": [{
39344
39495
  name: "deviceId",
39345
39496
  form: "single",
@@ -39385,6 +39536,11 @@ Object.freeze({
39385
39536
  form: "single",
39386
39537
  optional: true
39387
39538
  }],
39539
+ "pipelineAnalytics.reclaimDebugMedia": [{
39540
+ name: "deviceIds",
39541
+ form: "array",
39542
+ optional: true
39543
+ }],
39388
39544
  "pipelineAnalytics.reconcileFromDisk": [{
39389
39545
  name: "deviceId",
39390
39546
  form: "single",
@@ -39750,6 +39906,11 @@ Object.freeze({
39750
39906
  form: "single",
39751
39907
  optional: false
39752
39908
  }],
39909
+ "recording.setDevicePlacement": [{
39910
+ name: "deviceId",
39911
+ form: "single",
39912
+ optional: false
39913
+ }],
39753
39914
  "recording.startStorageMigrationMove": [{
39754
39915
  name: "deviceId",
39755
39916
  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()
@@ -19054,46 +19132,6 @@ var RecentTracksPageSchema = object({
19054
19132
  /** Cursor for the next page, or null when this page is the last. */
19055
19133
  nextCursor: string().nullable()
19056
19134
  });
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
19135
  var KEY_EVENTS_DEFAULT_LIMIT = 50;
19098
19136
  var KEY_EVENTS_MAX_LIMIT = 200;
19099
19137
  var KeyEventQueryInput = object({
@@ -19197,9 +19235,7 @@ var TrackCascadeCountsSchema = object({
19197
19235
  /** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
19198
19236
  plates: number().int(),
19199
19237
  /** 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()
19238
+ embeddings: number().int()
19203
19239
  });
19204
19240
  /** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
19205
19241
  var DiskReconcileCountsSchema = object({
@@ -19369,6 +19405,47 @@ var RebuildStatusSchema = object({
19369
19405
  /** Present when the pass ended by throwing. */
19370
19406
  error: string().nullable()
19371
19407
  });
19408
+ /**
19409
+ * Acknowledgement that a debug-media reclaim STARTED.
19410
+ *
19411
+ * The pass is paced at ~2 MB/s over a standing 100 GB — tens of minutes — so
19412
+ * it runs detached and this returns immediately. Awaiting it is how the
19413
+ * `addons.custom` door hit the 60 s UDS deadline while the walk carried on
19414
+ * with no status. Poll {@link pipelineAnalyticsCapability.methods.getMediaReclaimStatus}.
19415
+ */
19416
+ var MediaReclaimStartResultSchema = object({
19417
+ started: boolean(),
19418
+ /** True when a pass was already running; the new request is ignored. */
19419
+ alreadyRunning: boolean()
19420
+ });
19421
+ var MediaReclaimInputSchema = object({
19422
+ mode: _enum(["report", "reclaim"]).default("report"),
19423
+ scopes: array(_enum(["motion-still", "track-filmstrip"])).min(1).optional(),
19424
+ deviceIds: array(number().int()).min(1).optional(),
19425
+ restart: boolean().optional(),
19426
+ pageSize: number().int().min(50).max(5e3).optional(),
19427
+ maxRowsPerDevice: number().int().min(1).max(5e5).optional(),
19428
+ maxReclaimPerDevice: number().int().min(1).max(5e5).optional(),
19429
+ maxBytesPerRun: number().int().min(1).optional(),
19430
+ budgetMinutes: number().int().min(1).max(720).optional(),
19431
+ throttleBytesPerSec: number().int().min(64 * 1024).optional(),
19432
+ graceMinutes: number().int().min(1).max(10080).optional()
19433
+ });
19434
+ var MediaReclaimStatusSchema = object({
19435
+ running: boolean(),
19436
+ mode: _enum(["report", "reclaim"]).nullable(),
19437
+ totalExamined: number(),
19438
+ totalEligible: number(),
19439
+ totalReclaimed: number(),
19440
+ totalBytesReclaimed: number(),
19441
+ totalRefused: number(),
19442
+ /** Device+scope windows finished in this pass. */
19443
+ devicesDone: number(),
19444
+ complete: boolean().nullable(),
19445
+ startedAtMs: number().nullable(),
19446
+ finishedAtMs: number().nullable(),
19447
+ error: string().nullable()
19448
+ });
19372
19449
  var ReplayFrameInputSchema = object({
19373
19450
  timestamp: number(),
19374
19451
  frame: PipelineRunResultBridge
@@ -19407,10 +19484,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19407
19484
  * stationary registry). Default false: the timeline lists passages,
19408
19485
  * not parking records (operator decision, 2026-08-15). */
19409
19486
  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(), {
19487
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
19414
19488
  kind: "mutation",
19415
19489
  auth: "admin"
19416
19490
  }), 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 +19584,12 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19510
19584
  }), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
19511
19585
  kind: "query",
19512
19586
  auth: "admin"
19587
+ }), method(MediaReclaimInputSchema, MediaReclaimStartResultSchema, {
19588
+ kind: "mutation",
19589
+ auth: "admin"
19590
+ }), method(object({}), MediaReclaimStatusSchema, {
19591
+ kind: "query",
19592
+ auth: "admin"
19513
19593
  }), method(object({ deviceIds: array(number()).optional() }), TrainingExportSummarySchema, {
19514
19594
  kind: "query",
19515
19595
  auth: "admin"
@@ -21480,7 +21560,13 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
21480
21560
  }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
21481
21561
  kind: "mutation",
21482
21562
  auth: "admin"
21483
- });
21563
+ }), method(StorageCleanupInputSchema, object({ jobId: string() }), {
21564
+ kind: "mutation",
21565
+ auth: "admin"
21566
+ }), method(StorageCleanupStatusInputSchema, StorageCleanupJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
21567
+ kind: "mutation",
21568
+ auth: "admin"
21569
+ }), method(object({}), array(StorageMigrationJobSchema).readonly(), { auth: "admin" });
21484
21570
  var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
21485
21571
  providerId: string().min(1),
21486
21572
  displayName: string().min(1),
@@ -28590,6 +28676,33 @@ var RecordingRebalanceInputSchema = object({
28590
28676
  minMoveGb: number().min(0).optional()
28591
28677
  });
28592
28678
  /**
28679
+ * Operator-facing placement of one camera onto a recordings location.
28680
+ *
28681
+ * `pinLocationId` is the operator instruction: a location id, or `null` for
28682
+ * Auto (the planner may move this camera). `locationId` is where high/mid
28683
+ * currently write — the plan, which may disagree with the pin when Auto.
28684
+ */
28685
+ var RecordingDevicePlacementSchema = object({
28686
+ deviceId: number().int(),
28687
+ profile: string(),
28688
+ locationId: string()
28689
+ });
28690
+ var RecordingDevicePinSchema = object({
28691
+ deviceId: number().int(),
28692
+ /** Recordings-class location this camera is pinned to. */
28693
+ locationId: string()
28694
+ });
28695
+ var RecordingPlacementViewSchema = object({
28696
+ assignments: array(RecordingDevicePlacementSchema),
28697
+ pins: array(RecordingDevicePinSchema),
28698
+ defaultLocations: record(string(), string())
28699
+ });
28700
+ var RecordingSetDevicePlacementInputSchema = object({
28701
+ deviceId: number().int(),
28702
+ /** `null` = Auto. Otherwise a `recordings:*` location id. */
28703
+ locationId: string().nullable()
28704
+ });
28705
+ /**
28593
28706
  * Result of locating footage at a wall-clock instant for one device/profile.
28594
28707
  * `segment` carries the covering segment's window; `gap` reports the forward
28595
28708
  * nearest covered edge (`null` past the end of footage / when none exists)
@@ -28815,6 +28928,12 @@ method(object({
28815
28928
  }), method(RecordingRebalanceInputSchema, RecordingRebalancePlanSchema, {
28816
28929
  kind: "mutation",
28817
28930
  auth: "admin"
28931
+ }), method(object({}), RecordingPlacementViewSchema, {
28932
+ kind: "query",
28933
+ auth: "admin"
28934
+ }), method(RecordingSetDevicePlacementInputSchema, object({ ok: literal(true) }), {
28935
+ kind: "mutation",
28936
+ auth: "admin"
28818
28937
  });
28819
28938
  /**
28820
28939
  * `recording-export` cap — render a footage time range into a single downloadable
@@ -33884,6 +34003,12 @@ Object.freeze({
33884
34003
  addonId: null,
33885
34004
  access: "delete"
33886
34005
  },
34006
+ "deviceManager.renameLocation": {
34007
+ capName: "device-manager",
34008
+ capScope: "system",
34009
+ addonId: null,
34010
+ access: "create"
34011
+ },
33887
34012
  "deviceManager.runDeviceAction": {
33888
34013
  capName: "device-manager",
33889
34014
  capScope: "system",
@@ -35576,19 +35701,19 @@ Object.freeze({
35576
35701
  addonId: null,
35577
35702
  access: "view"
35578
35703
  },
35579
- "pipelineAnalytics.getGroup": {
35704
+ "pipelineAnalytics.getKeyEvents": {
35580
35705
  capName: "pipeline-analytics",
35581
35706
  capScope: "device",
35582
35707
  addonId: null,
35583
35708
  access: "view"
35584
35709
  },
35585
- "pipelineAnalytics.getKeyEvents": {
35710
+ "pipelineAnalytics.getKeyEventsBatch": {
35586
35711
  capName: "pipeline-analytics",
35587
35712
  capScope: "device",
35588
35713
  addonId: null,
35589
35714
  access: "view"
35590
35715
  },
35591
- "pipelineAnalytics.getKeyEventsBatch": {
35716
+ "pipelineAnalytics.getMediaReclaimStatus": {
35592
35717
  capName: "pipeline-analytics",
35593
35718
  capScope: "device",
35594
35719
  addonId: null,
@@ -35678,12 +35803,6 @@ Object.freeze({
35678
35803
  addonId: null,
35679
35804
  access: "view"
35680
35805
  },
35681
- "pipelineAnalytics.listGroups": {
35682
- capName: "pipeline-analytics",
35683
- capScope: "device",
35684
- addonId: null,
35685
- access: "view"
35686
- },
35687
35806
  "pipelineAnalytics.listOpsLog": {
35688
35807
  capName: "pipeline-analytics",
35689
35808
  capScope: "device",
@@ -35768,6 +35887,12 @@ Object.freeze({
35768
35887
  addonId: null,
35769
35888
  access: "create"
35770
35889
  },
35890
+ "pipelineAnalytics.reclaimDebugMedia": {
35891
+ capName: "pipeline-analytics",
35892
+ capScope: "device",
35893
+ addonId: null,
35894
+ access: "create"
35895
+ },
35771
35896
  "pipelineAnalytics.reconcileFromDisk": {
35772
35897
  capName: "pipeline-analytics",
35773
35898
  capScope: "device",
@@ -36692,6 +36817,12 @@ Object.freeze({
36692
36817
  addonId: null,
36693
36818
  access: "view"
36694
36819
  },
36820
+ "recording.getPlacement": {
36821
+ capName: "recording",
36822
+ capScope: "system",
36823
+ addonId: null,
36824
+ access: "view"
36825
+ },
36695
36826
  "recording.getPlaybackManifest": {
36696
36827
  capName: "recording",
36697
36828
  capScope: "system",
@@ -36818,6 +36949,12 @@ Object.freeze({
36818
36949
  addonId: null,
36819
36950
  access: "create"
36820
36951
  },
36952
+ "recording.setDevicePlacement": {
36953
+ capName: "recording",
36954
+ capScope: "system",
36955
+ addonId: null,
36956
+ access: "create"
36957
+ },
36821
36958
  "recording.startStorageMigrationMove": {
36822
36959
  capName: "recording",
36823
36960
  capScope: "system",
@@ -37262,12 +37399,36 @@ Object.freeze({
37262
37399
  addonId: null,
37263
37400
  access: "create"
37264
37401
  },
37402
+ "storageMigration.cleanupCancel": {
37403
+ capName: "storage-migration",
37404
+ capScope: "system",
37405
+ addonId: null,
37406
+ access: "create"
37407
+ },
37408
+ "storageMigration.cleanupStart": {
37409
+ capName: "storage-migration",
37410
+ capScope: "system",
37411
+ addonId: null,
37412
+ access: "create"
37413
+ },
37414
+ "storageMigration.cleanupStatus": {
37415
+ capName: "storage-migration",
37416
+ capScope: "system",
37417
+ addonId: null,
37418
+ access: "view"
37419
+ },
37265
37420
  "storageMigration.drain": {
37266
37421
  capName: "storage-migration",
37267
37422
  capScope: "system",
37268
37423
  addonId: null,
37269
37424
  access: "create"
37270
37425
  },
37426
+ "storageMigration.history": {
37427
+ capName: "storage-migration",
37428
+ capScope: "system",
37429
+ addonId: null,
37430
+ access: "view"
37431
+ },
37271
37432
  "storageMigration.movers": {
37272
37433
  capName: "storage-migration",
37273
37434
  capScope: "system",
@@ -39264,11 +39425,6 @@ Object.freeze({
39264
39425
  form: "single",
39265
39426
  optional: true
39266
39427
  }],
39267
- "pipelineAnalytics.getGroup": [{
39268
- name: "deviceId",
39269
- form: "single",
39270
- optional: false
39271
- }],
39272
39428
  "pipelineAnalytics.getKeyEvents": [{
39273
39429
  name: "deviceId",
39274
39430
  form: "single",
@@ -39334,11 +39490,6 @@ Object.freeze({
39334
39490
  form: "single",
39335
39491
  optional: false
39336
39492
  }],
39337
- "pipelineAnalytics.listGroups": [{
39338
- name: "deviceIds",
39339
- form: "array",
39340
- optional: false
39341
- }],
39342
39493
  "pipelineAnalytics.listOpsLog": [{
39343
39494
  name: "deviceId",
39344
39495
  form: "single",
@@ -39384,6 +39535,11 @@ Object.freeze({
39384
39535
  form: "single",
39385
39536
  optional: true
39386
39537
  }],
39538
+ "pipelineAnalytics.reclaimDebugMedia": [{
39539
+ name: "deviceIds",
39540
+ form: "array",
39541
+ optional: true
39542
+ }],
39387
39543
  "pipelineAnalytics.reconcileFromDisk": [{
39388
39544
  name: "deviceId",
39389
39545
  form: "single",
@@ -39749,6 +39905,11 @@ Object.freeze({
39749
39905
  form: "single",
39750
39906
  optional: false
39751
39907
  }],
39908
+ "recording.setDevicePlacement": [{
39909
+ name: "deviceId",
39910
+ form: "single",
39911
+ optional: false
39912
+ }],
39752
39913
  "recording.startStorageMigrationMove": [{
39753
39914
  name: "deviceId",
39754
39915
  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.50",
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",