@camstack/addon-admin-ui 1.2.16 → 1.2.17

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 (101) hide show
  1. package/dist/assets/AddLocationWizard-KwzmlSoV.js +1 -0
  2. package/dist/assets/{AddonCollectionPage-BM908g2f.js → AddonCollectionPage-Dn32SNWM.js} +1 -1
  3. package/dist/assets/Addons-EyEW4D4A.js +1 -0
  4. package/dist/assets/{AdminTabs-6yXsZXxy.js → AdminTabs-57hhQmVl.js} +1 -1
  5. package/dist/assets/{AiProfiles-BD68Zj9J.js → AiProfiles-uNlhciHT.js} +1 -1
  6. package/dist/assets/{BrokerForm-DdIHaTEB.js → BrokerForm-DyoPjxXz.js} +1 -1
  7. package/dist/assets/{Capabilities-Bqn-RV72.js → Capabilities-cVsIOc2t.js} +1 -1
  8. package/dist/assets/{CapabilityBadges-DzvvSaPs.js → CapabilityBadges-s1q6EazS.js} +1 -1
  9. package/dist/assets/Cluster-BkmB4wXT.js +1 -0
  10. package/dist/assets/{ClusterRecordingTab-z1xB2po9.js → ClusterRecordingTab-BH11-IbA.js} +1 -1
  11. package/dist/assets/{Dashboard-CADMRCrw.js → Dashboard-CwGNZIik.js} +1 -1
  12. package/dist/assets/Data-DU6dKN0-.js +1 -0
  13. package/dist/assets/DetectionIntelligence-DgBcQaJ7.js +1 -0
  14. package/dist/assets/DeviceAggregateSection-DDZxpHxU.js +1 -0
  15. package/dist/assets/DeviceDetail-Z501iVY2.js +2 -0
  16. package/dist/assets/{Devices-OO1Obho0.js → Devices-BUppgEis.js} +1 -1
  17. package/dist/assets/{EmbedPlayerPage-Dj5RZE6X.js → EmbedPlayerPage-DyKLMuTg.js} +1 -1
  18. package/dist/assets/Events-DRMEOb-1.js +1 -0
  19. package/dist/assets/{FormBuilder-D6rV90RE.js → FormBuilder-V9-ZYyfi.js} +1 -1
  20. package/dist/assets/{Identity-CyhpFEp5.js → Identity-BOlAVEHc.js} +1 -1
  21. package/dist/assets/IntegrationDetail-xhGos6_v.js +1 -0
  22. package/dist/assets/{Integrations-uId-1G3x.js → Integrations-CXfoHU1-.js} +1 -1
  23. package/dist/assets/{Integrations-Cf-P7zbM.js → Integrations-Dp5hPLpw.js} +1 -1
  24. package/dist/assets/{Logs-BsuRve34.js → Logs-kyji_5ss.js} +1 -1
  25. package/dist/assets/{MotionZonesSettings-CDt7HiBk.js → MotionZonesSettings-M7Q0c7HT.js} +1 -1
  26. package/dist/assets/{MyAccess-nr6vCJQp.js → MyAccess-BP00gmMz.js} +1 -1
  27. package/dist/assets/Network-BupOQchv.js +1 -0
  28. package/dist/assets/{NodeAddonsSettingsPanel-DQhn50qD.js → NodeAddonsSettingsPanel-BHYPuuzP.js} +1 -1
  29. package/dist/assets/{NodeInferenceDevices-DreXBx4e.js → NodeInferenceDevices-CYZafvHq.js} +1 -1
  30. package/dist/assets/Notifications-C7yz_fFq.js +1 -0
  31. package/dist/assets/Pipeline-Cc89loIx.js +1 -0
  32. package/dist/assets/{Plates-D93zGL-b.js → Plates-CaHuT1aj.js} +1 -1
  33. package/dist/assets/{PrivacyMaskSettings-CeRPYNws.js → PrivacyMaskSettings-C8tsyRZP.js} +1 -1
  34. package/dist/assets/{ProviderIcon-DXM0Cs6A.js → ProviderIcon-CD80TWfL.js} +1 -1
  35. package/dist/assets/Recordings-Ds0k0Oit.js +1 -0
  36. package/dist/assets/{ScanNetworkModal-DtqM9hw3.js → ScanNetworkModal-C1fdwcgx.js} +1 -1
  37. package/dist/assets/{Settings-DcxnlT5r.js → Settings-D9xYfuNz.js} +1 -1
  38. package/dist/assets/{Showroom-DiNuN2DK.js → Showroom-DfupwGEQ.js} +1 -1
  39. package/dist/assets/{Terminal-Yn1yb5UR.js → Terminal-QIfVJ57m.js} +2 -2
  40. package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-DHOV12JB.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-DTU5DNxA.js} +1 -1
  41. package/dist/assets/{build-cluster-graph--dRyE6jp.js → build-cluster-graph-DryWXcym.js} +2 -2
  42. package/dist/assets/circle-check-big-Cz1WD2g9.js +1 -0
  43. package/dist/assets/clock-D9iqCSCa.js +1 -0
  44. package/dist/assets/{copy-BBaHyGT3.js → copy-xvYnf3mn.js} +1 -1
  45. package/dist/assets/{debounced-invalidate-oJQtaYsH.js → debounced-invalidate-CT06Xct6.js} +1 -1
  46. package/dist/assets/dist-9AilmwYu.js +7 -0
  47. package/dist/assets/{dist-BfuZVKjE.js → dist-kk5V4ONk.js} +1 -1
  48. package/dist/assets/{download-BARV2Xt2.js → download-4PdCPJIH.js} +1 -1
  49. package/dist/assets/{face-bbox-CB0AdRxV.js → face-bbox-BOfEr6-A.js} +1 -1
  50. package/dist/assets/{hostInit-D1YIG8Xp.js → hostInit-BbElAo79.js} +1 -1
  51. package/dist/assets/index-DUFmNDGR.js +4 -0
  52. package/dist/assets/index-D_09pXCE.css +2 -0
  53. package/dist/assets/{key-round-Cu-m43BY.js → key-round-BluylYau.js} +1 -1
  54. package/dist/assets/{mf-entry-bootstrap-0-7505e378.js → mf-entry-bootstrap-0-d0572cd2.js} +2 -2
  55. package/dist/assets/{pencil-C3NxLuzk.js → pencil-upvlHQDr.js} +1 -1
  56. package/dist/assets/{player-overlays-5vIS4o_W.js → player-overlays-DFxnnQ5-.js} +1 -1
  57. package/dist/assets/plus-pXafUidG.js +1 -0
  58. package/dist/assets/{radio-IH3FZ-ad.js → radio-CNyLw5GQ.js} +1 -1
  59. package/dist/assets/{refresh-cw-DXzAUpGT.js → refresh-cw-Brd1nmbC.js} +1 -1
  60. package/dist/assets/remoteEntry-CNHP9pn9.js +1 -0
  61. package/dist/assets/{rotate-ccw-mo9YtqUE.js → rotate-ccw-CrfFxSL1.js} +1 -1
  62. package/dist/assets/rotate-cw-BvJwWYA6.js +1 -0
  63. package/dist/assets/search-DHWQ7t3y.js +1 -0
  64. package/dist/assets/{send-DUT5ZyQM.js → send-DcQrPOWq.js} +1 -1
  65. package/dist/assets/{server-B2_ttQ96.js → server-s54U0Xav.js} +1 -1
  66. package/dist/assets/square-CqUnowVe.js +1 -0
  67. package/dist/assets/{square-check-big-D5MMfdqS.js → square-check-big-CkGVGfz1.js} +1 -1
  68. package/dist/assets/src-Btp5jZp0.js +67 -0
  69. package/dist/assets/src-DlGmnrz9.js +7 -0
  70. package/dist/assets/{upload-DfBkWUj-.js → upload-ZqMKZ88x.js} +1 -1
  71. package/dist/assets/{useEventInvalidation-tttDHu6H.js → useEventInvalidation-ByOUWkAr.js} +1 -1
  72. package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-CcewkvoR.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-CsWv8uI6.js} +2 -2
  73. package/dist/assets/{wifi-jwlQfCJ5.js → wifi-C008K8Xa.js} +1 -1
  74. package/dist/assets/{zap-CUnbY527.js → zap-VYSIuI1A.js} +1 -1
  75. package/dist/index.html +6 -6
  76. package/dist/server/addon.js +347 -74
  77. package/package.json +1 -1
  78. package/dist/assets/AddLocationWizard-B_z3eUPS.js +0 -1
  79. package/dist/assets/Addons-D8SC8yBw.js +0 -1
  80. package/dist/assets/Cluster-CQhoefyJ.js +0 -1
  81. package/dist/assets/Data-Dk7iSdmP.js +0 -1
  82. package/dist/assets/DetectionIntelligence-CxKHKx0p.js +0 -1
  83. package/dist/assets/DeviceDetail-KFtEf0dr.js +0 -2
  84. package/dist/assets/Events-xEfJUDrb.js +0 -1
  85. package/dist/assets/IntegrationDetail-CkhuZF-B.js +0 -1
  86. package/dist/assets/Network-Cc-kPHj4.js +0 -1
  87. package/dist/assets/Notifications-BSPhogBa.js +0 -1
  88. package/dist/assets/Pipeline-CNL8qV10.js +0 -1
  89. package/dist/assets/Recordings-C5GO3GeS.js +0 -1
  90. package/dist/assets/circle-check-big-BUonJKZG.js +0 -1
  91. package/dist/assets/clock-CDpOjQuj.js +0 -1
  92. package/dist/assets/dist-BINwBvR-.js +0 -7
  93. package/dist/assets/index-B2Lt4mEF.css +0 -2
  94. package/dist/assets/index-DcoBSPD8.js +0 -4
  95. package/dist/assets/plus-zsIhHGHK.js +0 -1
  96. package/dist/assets/remoteEntry-CqqHuqZU.js +0 -1
  97. package/dist/assets/rotate-cw-RF_Q6dlG.js +0 -1
  98. package/dist/assets/search-BU0QQbas.js +0 -1
  99. package/dist/assets/square-CCYHDGJh.js +0 -1
  100. package/dist/assets/src-D49drDQI.js +0 -67
  101. package/dist/assets/src-PXZvyYDe.js +0 -7
@@ -7193,35 +7193,22 @@ var ConvertResultSchema = object({
7193
7193
  */
7194
7194
  var RecordingWeekdaySchema = number().int().min(0).max(6);
7195
7195
  var HHMM = /^([01]\d|2[0-3]):[0-5]\d$/;
7196
- var RecordingScheduleSchema = discriminatedUnion("kind", [object({ kind: literal("always") }), object({
7197
- kind: literal("timeOfDay"),
7198
- start: string().regex(HHMM),
7199
- end: string().regex(HHMM),
7200
- /** Restrict to these weekdays; omit = every day. */
7201
- days: array(RecordingWeekdaySchema).optional()
7202
- })]);
7203
- var RecordingModeSchema = _enum([
7204
- "continuous",
7205
- "onMotion",
7206
- "onAudioThreshold"
7207
- ]);
7208
7196
  /**
7209
- * First-class, authoritative per-camera storage mode — the explicit choice the
7210
- * UI reads directly (never inferred from `rules`):
7211
- * - `off` — not recording.
7212
- * - `events` — record only around triggers (motion / audio threshold),
7213
- * with pre/post-buffer.
7214
- * - `continuous` — record 24/7 within the schedule.
7197
+ * DERIVED per-camera storage summary — the single field cheap consumers read
7198
+ * (the viewer's status dot, the camera list) instead of walking `bands`:
7199
+ * - `off` — no band covers the camera (or it is disabled).
7200
+ * - `events` — every band records around triggers only.
7201
+ * - `continuous` — at least one band records continuously.
7215
7202
  *
7216
- * `mode` compiles one-way to the internal `rules[]` consumed by the policy
7217
- * engine (see `compileRules`); `rules[]` is never authored directly anymore.
7203
+ * NEVER authored: the recorder stamps it from the authoritative `bands` on
7204
+ * every save (`activeModeForConfig`). Writing it has no effect.
7218
7205
  */
7219
7206
  var RecordingStorageModeSchema = _enum([
7220
7207
  "off",
7221
7208
  "events",
7222
7209
  "continuous"
7223
7210
  ]);
7224
- /** Which detectors trigger an `events`-mode recording. */
7211
+ /** Which detectors trigger an `events`-mode band. */
7225
7212
  var RecordingTriggersSchema = object({
7226
7213
  motion: boolean().optional(),
7227
7214
  audioThresholdDbfs: number().optional()
@@ -7257,18 +7244,6 @@ var RecordingBandSchema = object({
7257
7244
  preBufferSec: number().min(0).optional(),
7258
7245
  postBufferSec: number().min(0).optional()
7259
7246
  });
7260
- var RecordingRuleSchema = object({
7261
- schedule: RecordingScheduleSchema,
7262
- mode: RecordingModeSchema,
7263
- /** Seconds of footage to retain BEFORE a trigger (applied at keep/discard). */
7264
- preBufferSec: number().min(0).default(0),
7265
- /** Keep recording until this many seconds after the last trigger. */
7266
- postBufferSec: number().min(0).default(0),
7267
- /** Each new trigger restarts the post-buffer window. */
7268
- resetTimeoutOnNewEvent: boolean().default(true),
7269
- /** onAudioThreshold only — dBFS level that counts as a trigger. */
7270
- thresholdDbfs: number().optional()
7271
- });
7272
7247
  /**
7273
7248
  * Per-device retention overrides. Every field is optional; an unset or `0`
7274
7249
  * value inherits the node-wide recorder default. Only footage-lifetime limits
@@ -7302,40 +7277,28 @@ var ScrubThumbnailPresetSchema = _enum([
7302
7277
  /**
7303
7278
  * The full per-camera recording intent — the wire shape of a RecordingTarget.
7304
7279
  *
7305
- * `mode` is the authoritative storage choice; `schedule`/`triggers`/`pre`/`post`
7306
- * are its mode-specific parameters. `rules` is a DEPRECATED authoring input kept
7307
- * only for transition + migration (`migrateRulesToMode`); the policy engine
7308
- * consumes the compiled output of `compileRules(config)`, never `rules` directly.
7280
+ * `bands` is the ONLY authored recording intent: what to record, when, and on
7281
+ * which trigger. `mode` is a derived summary the recorder stamps on save; every
7282
+ * other field is a storage knob (profiles, segment length, retention, scrub).
7283
+ *
7284
+ * STRICT on purpose: the legacy authoring surface (`schedule`/`schedules`/
7285
+ * `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30.
7286
+ * A stale caller must fail loudly — silently stripping its legacy intent would
7287
+ * persist a band-less config, i.e. silently stop recording the camera.
7309
7288
  */
7310
7289
  var RecordingConfigSchema = object({
7311
7290
  enabled: boolean(),
7312
- /** Authoritative storage mode. Absent on legacy targets derived once via
7313
- * `migrateRulesToMode`, then persisted. */
7291
+ /** DERIVED summary of `bands`, stamped by the recorder on every save.
7292
+ * Authoring it has no effect — see {@link RecordingStorageModeSchema}. */
7314
7293
  mode: RecordingStorageModeSchema.optional(),
7315
7294
  profiles: array(CamProfileSchema).optional(),
7316
7295
  segmentSeconds: number().int().positive().optional(),
7317
- /** Shared recording time-bands for `events` & `continuous` — record only when
7318
- * the wall-clock falls inside one of these windows. Omit or empty = always.
7319
- * `continuous` compiles to one rule per band; `events` to band × trigger. */
7320
- schedules: array(RecordingScheduleSchema).optional(),
7321
- /** Legacy single-band predecessor of `schedules`. Read-compat only — it is
7322
- * normalized into `schedules` on read and never written going forward. (Not
7323
- * tagged `@deprecated`: the normalization paths must read it cast-free.) */
7324
- schedule: RecordingScheduleSchema.optional(),
7325
- /** `events`-mode only — which detectors trigger a recording. */
7326
- triggers: RecordingTriggersSchema.optional(),
7327
- /** `events`-mode only — seconds retained before / after a trigger. */
7328
- preBufferSec: number().min(0).optional(),
7329
- postBufferSec: number().min(0).optional(),
7330
- /** DEPRECATED authoring input; retained for migration/transition. */
7331
- rules: array(RecordingRuleSchema).optional(),
7332
7296
  /**
7333
- * AUTHORITATIVE mode-per-band recording model (recorder). When present it
7334
- * is the single source of truth; the legacy `mode`/`schedules`/`schedule`/
7335
- * `triggers`/`rules` fields above are kept for READ-COMPAT only and are
7336
- * derived into bands once via `migrateConfigToBands`.
7297
+ * AUTHORITATIVE mode-per-band recording model the single source of truth
7298
+ * the recorder's band engine consumes. An empty array = record nothing;
7299
+ * "off" is the absence of a covering band, never a band value.
7337
7300
  */
7338
- bands: array(RecordingBandSchema).optional(),
7301
+ bands: array(RecordingBandSchema).default([]),
7339
7302
  retention: RecordingRetentionSchema.optional(),
7340
7303
  /**
7341
7304
  * Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
@@ -7343,8 +7306,15 @@ var RecordingConfigSchema = object({
7343
7306
  * windows only — existing sheets are immutable, and each window's index
7344
7307
  * carries its own tile dims so mixed-preset history renders correctly.
7345
7308
  */
7346
- scrubThumbnails: ScrubThumbnailPresetSchema.optional()
7347
- });
7309
+ scrubThumbnails: ScrubThumbnailPresetSchema.optional(),
7310
+ /**
7311
+ * OPT-IN thumbnail-strip generation for this camera: every keyframe of the
7312
+ * low recording saved as a JPEG (the fast-drag scrub depth), a derived
7313
+ * cache that eviction reclaims with the footage. Absent/false = no strips
7314
+ * are written and scrub reads exact keyframes at every velocity.
7315
+ */
7316
+ stripsEnabled: boolean().optional()
7317
+ }).strict();
7348
7318
  /**
7349
7319
  * Ops-log — the durable, append-only operations audit shared by the
7350
7320
  * recordings and events management surfaces.
@@ -7363,7 +7333,8 @@ var OpsLogOpSchema = _enum([
7363
7333
  "prune",
7364
7334
  "manual-delete",
7365
7335
  "rescan",
7366
- "retention-run"
7336
+ "retention-run",
7337
+ "relocate"
7367
7338
  ]);
7368
7339
  /** Why the operation ran. */
7369
7340
  var OpsLogReasonSchema = _enum([
@@ -7402,6 +7373,55 @@ var OpsLogQueryInputSchema = object({
7402
7373
  limit: number().int().min(1).max(1e3).optional()
7403
7374
  });
7404
7375
  /**
7376
+ * Entity-relocation job state (storage entity-routing spec, Phase 4).
7377
+ *
7378
+ * One shape shared by the recorder's `relocateFootage` (segments + strips) and
7379
+ * pipeline-analytics' `relocateMedia` (event media blobs) so the admin Data
7380
+ * page renders both movers with one component. Jobs are in-RAM (a restart
7381
+ * forgets them — re-running is safe by construction: copy-if-absent, delete
7382
+ * after verify) and each completed/failed run also lands one durable ops-log
7383
+ * row on the owning addon's surface.
7384
+ */
7385
+ var RelocateJobStateSchema = _enum([
7386
+ "running",
7387
+ "done",
7388
+ "failed",
7389
+ "cancelled"
7390
+ ]);
7391
+ var RelocateJobSchema = object({
7392
+ jobId: string(),
7393
+ state: RelocateJobStateSchema,
7394
+ /** Source location — for media relocation this is informational ('*': rows
7395
+ * move from wherever they are to the target). */
7396
+ fromLocationId: string(),
7397
+ toLocationId: string(),
7398
+ /** Scoped device, or null = every device. */
7399
+ deviceId: number().nullable(),
7400
+ /** What the job moves (owner-addon specific: segments/strips or media). */
7401
+ entities: array(string()),
7402
+ filesMoved: number().int(),
7403
+ bytesMoved: number().int(),
7404
+ /** Total files discovered up front; null while (or when) unknown. */
7405
+ filesTotal: number().int().nullable(),
7406
+ startedAt: number(),
7407
+ finishedAt: number().nullable(),
7408
+ error: string().nullable()
7409
+ });
7410
+ var RelocateFootageInputSchema = object({
7411
+ deviceId: number().optional(),
7412
+ fromLocationId: string(),
7413
+ toLocationId: string(),
7414
+ entities: array(_enum(["segments", "strips"])).optional(),
7415
+ /** Copy throttle in MB/s (default 40) — the drain is a background chore,
7416
+ * never allowed to starve live writers. */
7417
+ throttleMbps: number().min(1).max(1e3).optional()
7418
+ });
7419
+ var RelocateMediaInputSchema = object({
7420
+ deviceId: number().optional(),
7421
+ toLocationId: string(),
7422
+ throttleMbps: number().min(1).max(1e3).optional()
7423
+ });
7424
+ /**
7405
7425
  * `StorageLocationType` — an addon-declared id that identifies the *kind* of
7406
7426
  * storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
7407
7427
  * so the persisted record schema and the consumer-facing cap can both consume it
@@ -7451,6 +7471,13 @@ var StorageLocationSchema = object({
7451
7471
  nodeId: string().optional(),
7452
7472
  isDefault: boolean().default(false),
7453
7473
  isSystem: boolean().default(false),
7474
+ /** COMPUTED at read time by the orchestrator (statfs of the backing volume
7475
+ * for node-local locations it can reach) — never persisted, absent when the
7476
+ * volume is remote/unreachable. The single capacity truth every UI reads. */
7477
+ capacity: object({
7478
+ totalBytes: number(),
7479
+ availableBytes: number()
7480
+ }).nullable().optional(),
7454
7481
  createdAt: number(),
7455
7482
  updatedAt: number()
7456
7483
  });
@@ -8218,7 +8245,8 @@ var NcTaxonomyEntrySchema = object({
8218
8245
  /** Macro/category parent for grouping ('car' → 'vehicle'); null for a top. */
8219
8246
  parentKind: string().nullable()
8220
8247
  });
8221
- object({
8248
+ /** The complete NC picker taxonomy — three grouped buckets. */
8249
+ var NcTaxonomySchema = object({
8222
8250
  videoClasses: array(NcTaxonomyEntrySchema),
8223
8251
  audioKinds: array(NcTaxonomyEntrySchema),
8224
8252
  labels: array(NcTaxonomyEntrySchema)
@@ -8878,6 +8906,7 @@ var AccessoryKind = {
8878
8906
  };
8879
8907
  AccessoryKind.Siren, AccessoryKind.Floodlight, AccessoryKind.Spotlight, AccessoryKind.PirSensor, AccessoryKind.Chime, AccessoryKind.Autotrack, AccessoryKind.Nightvision, AccessoryKind.PrivacyMask;
8880
8908
  DeviceFeature.BatteryOperated;
8909
+ new Set(["devices", "classes"]);
8881
8910
  /**
8882
8911
  * Shared geometry vocabulary for on-frame shape caps — privacy-mask,
8883
8912
  * motion-zones, and the detection zones/lines editor all speak this one
@@ -9194,12 +9223,60 @@ var NcRuleTargetSchema = object({
9194
9223
  * - `keyFrame` — the clean scene frame (no subject box).
9195
9224
  * - `none` — no attachment.
9196
9225
  */
9197
- var NcMediaPolicySchema = object({ attach: _enum([
9198
- "best",
9199
- "best-matching",
9200
- "keyFrame",
9201
- "none"
9202
- ]).default("best") });
9226
+ /**
9227
+ * WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
9228
+ * conflate it with the selection strategy and betray the request: asking for
9229
+ * the clean scene frame on an object-event owner used to start at
9230
+ * `fullFrameBoxed`, i.e. the annotated frame (2026-07-30).
9231
+ * - `cropped` — the subject, tight. What "who is at the door" wants.
9232
+ * - `full` — the clean scene, no annotation. What "what is going on" wants.
9233
+ * - `boxed` — the scene WITH the detection boxes drawn, for verifying what
9234
+ * the pipeline actually saw.
9235
+ */
9236
+ var NcMediaFrameSchema = _enum([
9237
+ "cropped",
9238
+ "full",
9239
+ "boxed"
9240
+ ]);
9241
+ var NcMediaPolicySchema = object({
9242
+ attach: _enum([
9243
+ "best",
9244
+ "best-matching",
9245
+ "keyFrame",
9246
+ "none"
9247
+ ]).default("best"),
9248
+ /** What the still shows. Absent = `cropped` (the historical `best` shape). */
9249
+ frame: NcMediaFrameSchema.optional(),
9250
+ /** Crop the attached still to the rule's condition-zone bbox (padded) —
9251
+ * "show me the ZONE", not the whole scene or the subject crop. */
9252
+ zoneCrop: boolean().optional(),
9253
+ /**
9254
+ * Also attach a short GIF cut from the stream broker's clip ring around the
9255
+ * event — NOT from the recording, so the camera does not have to be
9256
+ * recording, and the window sits AROUND the moment instead of a segment
9257
+ * behind it. Fail-closed: a window the ring does not cover contributes no
9258
+ * gif, never a failed notification.
9259
+ */
9260
+ gif: boolean().optional(),
9261
+ /**
9262
+ * Also attach a short MP4 CLIP of the same cut. Same source and the same
9263
+ * fail-closed rule as `gif`. Prefer it where the backend takes video
9264
+ * (telegram, discord, zentik, webhook); backends that do not are handled by
9265
+ * the degrade engine, which drops the video and keeps the still.
9266
+ */
9267
+ clip: boolean().optional(),
9268
+ /** Seconds of footage BEFORE / AFTER the event instant. Defaults 3 / 7. */
9269
+ clipPreRollSec: number().int().min(0).max(30).optional(),
9270
+ clipPostRollSec: number().int().min(0).max(30).optional(),
9271
+ /**
9272
+ * Which stream profile the footage is cut from. Absent = the CHEAPEST
9273
+ * assigned profile: a notification is watched on a phone, so the 4K
9274
+ * rendition would burn CPU to produce a file the client downscales anyway.
9275
+ * A profile that is not assigned falls back to the cheapest, and the render
9276
+ * reports which one actually ran.
9277
+ */
9278
+ profile: CamProfileSchema.optional()
9279
+ });
9203
9280
  /** Throttle — cooldown survives restarts (rebuilt from the outbox on boot). */
9204
9281
  var NcThrottleSchema = object({
9205
9282
  cooldownSec: number().int().min(0).max(86400).default(60),
@@ -9213,7 +9290,19 @@ var NcRuleInputSchema = object({
9213
9290
  delivery: NcDeliverySchema,
9214
9291
  conditions: NcConditionsSchema.default({}),
9215
9292
  schedule: NcScheduleSchema.optional(),
9216
- targets: array(NcRuleTargetSchema).min(1),
9293
+ /** May be empty when `targetUsers` addresses at least one user — the
9294
+ * "at least one addressee" invariant is enforced by the provider, because
9295
+ * a cross-field refine here would break `NcRulePatchSchema.partial()`. */
9296
+ targets: array(NcRuleTargetSchema),
9297
+ /**
9298
+ * USERS this rule addresses in addition to `targets` (Phase 4). At fire
9299
+ * time each user fans out to the personal targets they own
9300
+ * (`config.ownerUserId`), filtered by that user's `allowedDevices` for the
9301
+ * firing camera — a user is never notified about a device they cannot open.
9302
+ * Per-user opt-outs (`disabledTargetIds`) still apply to the fanned-out
9303
+ * targets.
9304
+ */
9305
+ targetUsers: array(string()).optional(),
9217
9306
  media: NcMediaPolicySchema.default({ attach: "best" }),
9218
9307
  throttle: NcThrottleSchema.default({
9219
9308
  cooldownSec: 60,
@@ -9426,7 +9515,10 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
9426
9515
  }), object({ results: array(NcTestResultSchema) }), {
9427
9516
  kind: "mutation",
9428
9517
  auth: "admin"
9429
- }), method(object({}), object({ catalog: array(NcConditionDescriptorSchema) })), method(object({ filter: NcHistoryFilterSchema.default({ limit: 100 }) }), object({ entries: array(NcHistoryEntrySchema) }), { auth: "admin" });
9518
+ }), method(object({}), object({
9519
+ catalog: array(NcConditionDescriptorSchema),
9520
+ taxonomy: NcTaxonomySchema.optional()
9521
+ })), method(object({ filter: NcHistoryFilterSchema.default({ limit: 100 }) }), object({ entries: array(NcHistoryEntrySchema) }), { auth: "admin" });
9430
9522
  /**
9431
9523
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
9432
9524
  *
@@ -10163,6 +10255,28 @@ method(object({
10163
10255
  }), object({ success: literal(true) }), {
10164
10256
  kind: "mutation",
10165
10257
  auth: "admin"
10258
+ }), method(object({
10259
+ deviceId: number(),
10260
+ /** Absent = the LOWEST assigned profile — a notification attachment is
10261
+ * watched on a phone, and the cheap rendition is the right default. */
10262
+ profile: CamProfileSchema.optional(),
10263
+ aroundMs: number(),
10264
+ preRollSec: number().min(0).max(20).default(3),
10265
+ postRollSec: number().min(0).max(20).default(5),
10266
+ format: _enum(["gif", "mp4"]).default("gif"),
10267
+ maxWidth: number().int().min(120).max(1920).default(480),
10268
+ /** GIF only — MP4 keeps the source cadence. */
10269
+ fps: number().int().min(1).max(15).default(5)
10270
+ }), object({
10271
+ base64: string(),
10272
+ mime: string(),
10273
+ bytes: number().int(),
10274
+ /** The profile actually rendered (what the default resolved to). */
10275
+ profile: CamProfileSchema,
10276
+ durationMs: number()
10277
+ }), {
10278
+ kind: "mutation",
10279
+ auth: "admin"
10166
10280
  }), method(_void(), array(CameraStreamSchema).readonly()), method(_void(), array(ProfileSlotSchema).readonly()), method(object({ brokerId: string() }), BrokerStatsSchema), method(object({ brokerId: string() }), object({
10167
10281
  probed: boolean(),
10168
10282
  summary: string()
@@ -16688,6 +16802,36 @@ var TargetKindSchema = object({
16688
16802
  icon: string(),
16689
16803
  /** Stamped by each provider so the concat-fanned catalog stays routable. */
16690
16804
  addonId: string(),
16805
+ /**
16806
+ * URL of the kind's bundled BRAND icon, served by the providing addon over
16807
+ * its own `addon-routes` surface (`/addon/<addonId>/icons/<kind>`). Absent
16808
+ * when the addon bundles no icon for that kind — the client then falls back
16809
+ * to a neutral glyph rather than rendering the raw `icon` NAME as text.
16810
+ *
16811
+ * Root-relative on purpose: it resolves against whatever origin serves a web
16812
+ * client, and a native client joins it onto its own hub base.
16813
+ *
16814
+ * DECLARED here deliberately. It used to travel as an undeclared passthrough
16815
+ * field that survived only because the runtime cap-router forwards provider
16816
+ * output verbatim — so every consumer had to re-declare it by hand to stop
16817
+ * its own Zod parse from stripping it, and the whole arrangement would have
16818
+ * broken silently the moment output validation was tightened anywhere.
16819
+ */
16820
+ iconUrl: string().optional(),
16821
+ /**
16822
+ * Media type of {@link iconUrl} (`image/svg+xml`, `image/png`, …).
16823
+ *
16824
+ * The server knows this and therefore says it, because the client cannot
16825
+ * safely guess: a React-Native client renders SVG and raster through two
16826
+ * DIFFERENT components (`react-native-svg` vs `expo-image` — expo-image does
16827
+ * not decode SVG on iOS/Android), so without this it silently fell back to a
16828
+ * placeholder glyph for every vector icon while the web build looked fine.
16829
+ *
16830
+ * Absent when {@link iconUrl} is absent, or for a legacy provider that has
16831
+ * not been updated — a client that cannot determine the type should prefer
16832
+ * its raster path, which is the safe default for an unknown image.
16833
+ */
16834
+ iconMediaType: string().optional(),
16691
16835
  configSchema: ConfigSchemaPassthrough,
16692
16836
  supportsDiscovery: boolean(),
16693
16837
  caps: TargetKindCapsSchema
@@ -17419,6 +17563,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17419
17563
  }), method(object({ deviceId: number() }), EventPruneCountsSchema, {
17420
17564
  kind: "mutation",
17421
17565
  auth: "admin"
17566
+ }), method(RelocateMediaInputSchema, object({ jobId: string() }), {
17567
+ kind: "mutation",
17568
+ auth: "admin"
17569
+ }), method(object({}), array(RelocateJobSchema).readonly(), {
17570
+ kind: "query",
17571
+ auth: "admin"
17572
+ }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
17573
+ kind: "mutation",
17574
+ auth: "admin"
17422
17575
  }), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
17423
17576
  kind: "query",
17424
17577
  auth: "admin"
@@ -19898,6 +20051,17 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
19898
20051
  */
19899
20052
  priority: number()
19900
20053
  })).readonly() });
20054
+ /**
20055
+ * The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
20056
+ * AUTO (resolved from the candidate ranking at send time); `resolved` reports
20057
+ * what AUTO currently picks, so the UI can show the effective value either way.
20058
+ */
20059
+ var NotificationEndpointSchema = object({
20060
+ /** The operator's explicit choice, or null for AUTO. */
20061
+ baseUrl: string().nullable(),
20062
+ /** What the ranking currently resolves to (null when nothing is reachable). */
20063
+ resolved: string().nullable()
20064
+ });
19901
20065
  var AllowedAddressesSchema = object({
19902
20066
  /**
19903
20067
  * Allowlist of interface addresses operators have explicitly opted
@@ -19920,7 +20084,7 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
19920
20084
  * to avoid mixed-content blocks in the browser. The public
19921
20085
  * tunnel always emits `https://` regardless. */
19922
20086
  scheme: _enum(["http", "https"]).optional()
19923
- }), GetConnectionEndpointsResultSchema), method(_void(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" });
20087
+ }), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" });
19924
20088
  /**
19925
20089
  * mesh-network — collection cap for mesh-VPN providers.
19926
20090
  *
@@ -20719,7 +20883,12 @@ var RecordingDeviceUsageSchema = object({
20719
20883
  var RecordingLocationUsageSchema = object({
20720
20884
  /** StorageLocation id; null for the legacy/degraded single-root fallback. */
20721
20885
  locationId: string().nullable(),
20722
- /** Bytes of recordings stored on this location. */
20886
+ /** Every location id sharing this row's PHYSICAL volume (aliases). One row
20887
+ * is emitted per physical disk (2026-07-29): two locations on one root
20888
+ * previously rendered as two identical "disks" with a nonsensical used
20889
+ * split — hydrate attribution across aliases is arbitrary by nature. */
20890
+ locationIds: array(string()).optional(),
20891
+ /** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
20723
20892
  usedBytes: number(),
20724
20893
  /** Free bytes on the location's volume; null when capacity is unknown (remote). */
20725
20894
  availableBytes: number().nullable(),
@@ -20831,6 +21000,44 @@ method(object({
20831
21000
  }), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
20832
21001
  kind: "query",
20833
21002
  auth: "admin"
21003
+ }), method(object({
21004
+ deviceId: number(),
21005
+ aroundMs: number(),
21006
+ preRollSec: number().min(0).max(30).default(2),
21007
+ postRollSec: number().min(0).max(30).default(5),
21008
+ maxWidth: number().int().min(120).max(1280).default(480),
21009
+ fps: number().int().min(1).max(15).default(5)
21010
+ }), object({
21011
+ gifBase64: string(),
21012
+ fromMs: number(),
21013
+ toMs: number()
21014
+ }), {
21015
+ kind: "mutation",
21016
+ auth: "admin"
21017
+ }), method(object({
21018
+ deviceId: number(),
21019
+ aroundMs: number(),
21020
+ preRollSec: number().min(0).max(30).default(3),
21021
+ postRollSec: number().min(0).max(30).default(7),
21022
+ maxWidth: number().int().min(160).max(1920).default(640)
21023
+ }), object({
21024
+ clipBase64: string(),
21025
+ mime: string(),
21026
+ fromMs: number(),
21027
+ toMs: number(),
21028
+ bytes: number().int()
21029
+ }), {
21030
+ kind: "mutation",
21031
+ auth: "admin"
21032
+ }), method(RelocateFootageInputSchema, object({ jobId: string() }), {
21033
+ kind: "mutation",
21034
+ auth: "admin"
21035
+ }), method(object({}), array(RelocateJobSchema).readonly(), {
21036
+ kind: "query",
21037
+ auth: "admin"
21038
+ }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
21039
+ kind: "mutation",
21040
+ auth: "admin"
20834
21041
  });
20835
21042
  /**
20836
21043
  * `recordingExport` cap — render a footage time range into a single downloadable
@@ -23316,6 +23523,12 @@ Object.freeze({
23316
23523
  addonId: null,
23317
23524
  access: "view"
23318
23525
  },
23526
+ "localNetwork.getNotificationEndpoint": {
23527
+ capName: "local-network",
23528
+ capScope: "system",
23529
+ addonId: null,
23530
+ access: "view"
23531
+ },
23319
23532
  "localNetwork.getPreferred": {
23320
23533
  capName: "local-network",
23321
23534
  capScope: "system",
@@ -23340,6 +23553,12 @@ Object.freeze({
23340
23553
  addonId: null,
23341
23554
  access: "create"
23342
23555
  },
23556
+ "localNetwork.setNotificationEndpoint": {
23557
+ capName: "local-network",
23558
+ capScope: "system",
23559
+ addonId: null,
23560
+ access: "create"
23561
+ },
23343
23562
  "lockControl.lock": {
23344
23563
  capName: "lock-control",
23345
23564
  capScope: "device",
@@ -23982,6 +24201,12 @@ Object.freeze({
23982
24201
  addonId: null,
23983
24202
  access: "create"
23984
24203
  },
24204
+ "pipelineAnalytics.cancelMediaRelocate": {
24205
+ capName: "pipeline-analytics",
24206
+ capScope: "device",
24207
+ addonId: null,
24208
+ access: "create"
24209
+ },
23985
24210
  "pipelineAnalytics.clearTracks": {
23986
24211
  capName: "pipeline-analytics",
23987
24212
  capScope: "device",
@@ -24036,6 +24261,12 @@ Object.freeze({
24036
24261
  addonId: null,
24037
24262
  access: "view"
24038
24263
  },
24264
+ "pipelineAnalytics.getMediaRelocateStatus": {
24265
+ capName: "pipeline-analytics",
24266
+ capScope: "device",
24267
+ addonId: null,
24268
+ access: "view"
24269
+ },
24039
24270
  "pipelineAnalytics.getMotionEvents": {
24040
24271
  capName: "pipeline-analytics",
24041
24272
  capScope: "device",
@@ -24108,6 +24339,12 @@ Object.freeze({
24108
24339
  addonId: null,
24109
24340
  access: "create"
24110
24341
  },
24342
+ "pipelineAnalytics.relocateMedia": {
24343
+ capName: "pipeline-analytics",
24344
+ capScope: "device",
24345
+ addonId: null,
24346
+ access: "create"
24347
+ },
24111
24348
  "pipelineAnalytics.searchObjectEvents": {
24112
24349
  capName: "pipeline-analytics",
24113
24350
  capScope: "device",
@@ -24870,6 +25107,12 @@ Object.freeze({
24870
25107
  addonId: null,
24871
25108
  access: "create"
24872
25109
  },
25110
+ "recording.cancelRelocate": {
25111
+ capName: "recording",
25112
+ capScope: "system",
25113
+ addonId: null,
25114
+ access: "create"
25115
+ },
24873
25116
  "recording.deleteFootprint": {
24874
25117
  capName: "recording",
24875
25118
  capScope: "system",
@@ -24900,6 +25143,12 @@ Object.freeze({
24900
25143
  addonId: null,
24901
25144
  access: "view"
24902
25145
  },
25146
+ "recording.getRelocateStatus": {
25147
+ capName: "recording",
25148
+ capScope: "system",
25149
+ addonId: null,
25150
+ access: "view"
25151
+ },
24903
25152
  "recording.getStorageUsage": {
24904
25153
  capName: "recording",
24905
25154
  capScope: "system",
@@ -24930,6 +25179,24 @@ Object.freeze({
24930
25179
  addonId: null,
24931
25180
  access: "view"
24932
25181
  },
25182
+ "recording.relocateFootage": {
25183
+ capName: "recording",
25184
+ capScope: "system",
25185
+ addonId: null,
25186
+ access: "create"
25187
+ },
25188
+ "recording.renderClip": {
25189
+ capName: "recording",
25190
+ capScope: "system",
25191
+ addonId: null,
25192
+ access: "create"
25193
+ },
25194
+ "recording.renderGif": {
25195
+ capName: "recording",
25196
+ capScope: "system",
25197
+ addonId: null,
25198
+ access: "create"
25199
+ },
24933
25200
  "recording.rescanStorage": {
24934
25201
  capName: "recording",
24935
25202
  capScope: "system",
@@ -25524,6 +25791,12 @@ Object.freeze({
25524
25791
  addonId: null,
25525
25792
  access: "create"
25526
25793
  },
25794
+ "streamBroker.renderPreBufferClip": {
25795
+ capName: "stream-broker",
25796
+ capScope: "system",
25797
+ addonId: null,
25798
+ access: "create"
25799
+ },
25527
25800
  "streamBroker.restartProfile": {
25528
25801
  capName: "stream-broker",
25529
25802
  capScope: "system",
@@ -26159,7 +26432,7 @@ var AdminUIAddon = class extends BaseAddon {
26159
26432
  capability: adminUiCapability,
26160
26433
  provider: {
26161
26434
  getStaticDir: async () => ({ staticDir: resolveAdminUiDistDir() }),
26162
- getVersion: async () => ({ version: "1.2.16" })
26435
+ getVersion: async () => ({ version: "1.2.17" })
26163
26436
  }
26164
26437
  }];
26165
26438
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-admin-ui",
3
- "version": "1.2.16",
3
+ "version": "1.2.17",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "CamStack Admin UI — Vite frontend build and server-side addon",