@camstack/addon-smtp-nodemailer 1.2.6 → 1.2.8

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.
@@ -34,7 +34,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
34
34
  var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
35
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
36
36
  //#endregion
37
- //#region ../types/dist/event-category-BLcNejAE.mjs
37
+ //#region ../types/dist/event-category-Bz24uP1U.mjs
38
38
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
39
39
  EventCategory["SystemBoot"] = "system.boot";
40
40
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -305,6 +305,19 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
305
305
  */
306
306
  EventCategory["DeviceStateChanged"] = "device.state-changed";
307
307
  /**
308
+ * Frame occupancy for a camera CHANGED — a tracked object was gained or
309
+ * lost. Carries `{ deviceId, totalObjects, byClass, zones }`.
310
+ *
311
+ * Emitted only on a change, so a steady scene is silent. It exists so a
312
+ * client can stop polling `zoneAnalytics.getCurrentSnapshot`: that was the
313
+ * one live badge with no push signal at all, and it cost a request every
314
+ * four seconds per visible camera.
315
+ *
316
+ * Like every event it is telemetry and may be dropped ([D8]) — a consumer
317
+ * keeps a slow reconcile rather than trusting it alone.
318
+ */
319
+ EventCategory["ZoneAnalyticsOccupancyChanged"] = "zone-analytics.occupancy-changed";
320
+ /**
308
321
  * Cap event fired by every device that registers the `battery`
309
322
  * capability. Mirrors the cap definition's `onStatusChanged`. Carries
310
323
  * `{ deviceId, status: BatteryStatus }`. Subscribers (alert center,
@@ -7218,35 +7231,22 @@ var ConvertResultSchema = object({
7218
7231
  */
7219
7232
  var RecordingWeekdaySchema = number().int().min(0).max(6);
7220
7233
  var HHMM = /^([01]\d|2[0-3]):[0-5]\d$/;
7221
- var RecordingScheduleSchema = discriminatedUnion("kind", [object({ kind: literal("always") }), object({
7222
- kind: literal("timeOfDay"),
7223
- start: string().regex(HHMM),
7224
- end: string().regex(HHMM),
7225
- /** Restrict to these weekdays; omit = every day. */
7226
- days: array(RecordingWeekdaySchema).optional()
7227
- })]);
7228
- var RecordingModeSchema = _enum([
7229
- "continuous",
7230
- "onMotion",
7231
- "onAudioThreshold"
7232
- ]);
7233
7234
  /**
7234
- * First-class, authoritative per-camera storage mode — the explicit choice the
7235
- * UI reads directly (never inferred from `rules`):
7236
- * - `off` — not recording.
7237
- * - `events` — record only around triggers (motion / audio threshold),
7238
- * with pre/post-buffer.
7239
- * - `continuous` — record 24/7 within the schedule.
7235
+ * DERIVED per-camera storage summary — the single field cheap consumers read
7236
+ * (the viewer's status dot, the camera list) instead of walking `bands`:
7237
+ * - `off` — no band covers the camera (or it is disabled).
7238
+ * - `events` — every band records around triggers only.
7239
+ * - `continuous` — at least one band records continuously.
7240
7240
  *
7241
- * `mode` compiles one-way to the internal `rules[]` consumed by the policy
7242
- * engine (see `compileRules`); `rules[]` is never authored directly anymore.
7241
+ * NEVER authored: the recorder stamps it from the authoritative `bands` on
7242
+ * every save (`activeModeForConfig`). Writing it has no effect.
7243
7243
  */
7244
7244
  var RecordingStorageModeSchema = _enum([
7245
7245
  "off",
7246
7246
  "events",
7247
7247
  "continuous"
7248
7248
  ]);
7249
- /** Which detectors trigger an `events`-mode recording. */
7249
+ /** Which detectors trigger an `events`-mode band. */
7250
7250
  var RecordingTriggersSchema = object({
7251
7251
  motion: boolean().optional(),
7252
7252
  audioThresholdDbfs: number().optional()
@@ -7282,18 +7282,6 @@ var RecordingBandSchema = object({
7282
7282
  preBufferSec: number().min(0).optional(),
7283
7283
  postBufferSec: number().min(0).optional()
7284
7284
  });
7285
- var RecordingRuleSchema = object({
7286
- schedule: RecordingScheduleSchema,
7287
- mode: RecordingModeSchema,
7288
- /** Seconds of footage to retain BEFORE a trigger (applied at keep/discard). */
7289
- preBufferSec: number().min(0).default(0),
7290
- /** Keep recording until this many seconds after the last trigger. */
7291
- postBufferSec: number().min(0).default(0),
7292
- /** Each new trigger restarts the post-buffer window. */
7293
- resetTimeoutOnNewEvent: boolean().default(true),
7294
- /** onAudioThreshold only — dBFS level that counts as a trigger. */
7295
- thresholdDbfs: number().optional()
7296
- });
7297
7285
  /**
7298
7286
  * Per-device retention overrides. Every field is optional; an unset or `0`
7299
7287
  * value inherits the node-wide recorder default. Only footage-lifetime limits
@@ -7327,40 +7315,28 @@ var ScrubThumbnailPresetSchema = _enum([
7327
7315
  /**
7328
7316
  * The full per-camera recording intent — the wire shape of a RecordingTarget.
7329
7317
  *
7330
- * `mode` is the authoritative storage choice; `schedule`/`triggers`/`pre`/`post`
7331
- * are its mode-specific parameters. `rules` is a DEPRECATED authoring input kept
7332
- * only for transition + migration (`migrateRulesToMode`); the policy engine
7333
- * consumes the compiled output of `compileRules(config)`, never `rules` directly.
7318
+ * `bands` is the ONLY authored recording intent: what to record, when, and on
7319
+ * which trigger. `mode` is a derived summary the recorder stamps on save; every
7320
+ * other field is a storage knob (profiles, segment length, retention, scrub).
7321
+ *
7322
+ * STRICT on purpose: the legacy authoring surface (`schedule`/`schedules`/
7323
+ * `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30.
7324
+ * A stale caller must fail loudly — silently stripping its legacy intent would
7325
+ * persist a band-less config, i.e. silently stop recording the camera.
7334
7326
  */
7335
7327
  var RecordingConfigSchema = object({
7336
7328
  enabled: boolean(),
7337
- /** Authoritative storage mode. Absent on legacy targets derived once via
7338
- * `migrateRulesToMode`, then persisted. */
7329
+ /** DERIVED summary of `bands`, stamped by the recorder on every save.
7330
+ * Authoring it has no effect — see {@link RecordingStorageModeSchema}. */
7339
7331
  mode: RecordingStorageModeSchema.optional(),
7340
7332
  profiles: array(CamProfileSchema).optional(),
7341
7333
  segmentSeconds: number().int().positive().optional(),
7342
- /** Shared recording time-bands for `events` & `continuous` — record only when
7343
- * the wall-clock falls inside one of these windows. Omit or empty = always.
7344
- * `continuous` compiles to one rule per band; `events` to band × trigger. */
7345
- schedules: array(RecordingScheduleSchema).optional(),
7346
- /** Legacy single-band predecessor of `schedules`. Read-compat only — it is
7347
- * normalized into `schedules` on read and never written going forward. (Not
7348
- * tagged `@deprecated`: the normalization paths must read it cast-free.) */
7349
- schedule: RecordingScheduleSchema.optional(),
7350
- /** `events`-mode only — which detectors trigger a recording. */
7351
- triggers: RecordingTriggersSchema.optional(),
7352
- /** `events`-mode only — seconds retained before / after a trigger. */
7353
- preBufferSec: number().min(0).optional(),
7354
- postBufferSec: number().min(0).optional(),
7355
- /** DEPRECATED authoring input; retained for migration/transition. */
7356
- rules: array(RecordingRuleSchema).optional(),
7357
7334
  /**
7358
- * AUTHORITATIVE mode-per-band recording model (recorder). When present it
7359
- * is the single source of truth; the legacy `mode`/`schedules`/`schedule`/
7360
- * `triggers`/`rules` fields above are kept for READ-COMPAT only and are
7361
- * derived into bands once via `migrateConfigToBands`.
7335
+ * AUTHORITATIVE mode-per-band recording model the single source of truth
7336
+ * the recorder's band engine consumes. An empty array = record nothing;
7337
+ * "off" is the absence of a covering band, never a band value.
7362
7338
  */
7363
- bands: array(RecordingBandSchema).optional(),
7339
+ bands: array(RecordingBandSchema).default([]),
7364
7340
  retention: RecordingRetentionSchema.optional(),
7365
7341
  /**
7366
7342
  * Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
@@ -7368,8 +7344,15 @@ var RecordingConfigSchema = object({
7368
7344
  * windows only — existing sheets are immutable, and each window's index
7369
7345
  * carries its own tile dims so mixed-preset history renders correctly.
7370
7346
  */
7371
- scrubThumbnails: ScrubThumbnailPresetSchema.optional()
7372
- });
7347
+ scrubThumbnails: ScrubThumbnailPresetSchema.optional(),
7348
+ /**
7349
+ * OPT-IN thumbnail-strip generation for this camera: every keyframe of the
7350
+ * low recording saved as a JPEG (the fast-drag scrub depth), a derived
7351
+ * cache that eviction reclaims with the footage. Absent/false = no strips
7352
+ * are written and scrub reads exact keyframes at every velocity.
7353
+ */
7354
+ stripsEnabled: boolean().optional()
7355
+ }).strict();
7373
7356
  /**
7374
7357
  * Ops-log — the durable, append-only operations audit shared by the
7375
7358
  * recordings and events management surfaces.
@@ -7388,7 +7371,8 @@ var OpsLogOpSchema = _enum([
7388
7371
  "prune",
7389
7372
  "manual-delete",
7390
7373
  "rescan",
7391
- "retention-run"
7374
+ "retention-run",
7375
+ "relocate"
7392
7376
  ]);
7393
7377
  /** Why the operation ran. */
7394
7378
  var OpsLogReasonSchema = _enum([
@@ -7427,6 +7411,55 @@ var OpsLogQueryInputSchema = object({
7427
7411
  limit: number().int().min(1).max(1e3).optional()
7428
7412
  });
7429
7413
  /**
7414
+ * Entity-relocation job state (storage entity-routing spec, Phase 4).
7415
+ *
7416
+ * One shape shared by the recorder's `relocateFootage` (segments + strips) and
7417
+ * pipeline-analytics' `relocateMedia` (event media blobs) so the admin Data
7418
+ * page renders both movers with one component. Jobs are in-RAM (a restart
7419
+ * forgets them — re-running is safe by construction: copy-if-absent, delete
7420
+ * after verify) and each completed/failed run also lands one durable ops-log
7421
+ * row on the owning addon's surface.
7422
+ */
7423
+ var RelocateJobStateSchema = _enum([
7424
+ "running",
7425
+ "done",
7426
+ "failed",
7427
+ "cancelled"
7428
+ ]);
7429
+ var RelocateJobSchema = object({
7430
+ jobId: string(),
7431
+ state: RelocateJobStateSchema,
7432
+ /** Source location — for media relocation this is informational ('*': rows
7433
+ * move from wherever they are to the target). */
7434
+ fromLocationId: string(),
7435
+ toLocationId: string(),
7436
+ /** Scoped device, or null = every device. */
7437
+ deviceId: number().nullable(),
7438
+ /** What the job moves (owner-addon specific: segments/strips or media). */
7439
+ entities: array(string()),
7440
+ filesMoved: number().int(),
7441
+ bytesMoved: number().int(),
7442
+ /** Total files discovered up front; null while (or when) unknown. */
7443
+ filesTotal: number().int().nullable(),
7444
+ startedAt: number(),
7445
+ finishedAt: number().nullable(),
7446
+ error: string().nullable()
7447
+ });
7448
+ var RelocateFootageInputSchema = object({
7449
+ deviceId: number().optional(),
7450
+ fromLocationId: string(),
7451
+ toLocationId: string(),
7452
+ entities: array(_enum(["segments", "strips"])).optional(),
7453
+ /** Copy throttle in MB/s (default 40) — the drain is a background chore,
7454
+ * never allowed to starve live writers. */
7455
+ throttleMbps: number().min(1).max(1e3).optional()
7456
+ });
7457
+ var RelocateMediaInputSchema = object({
7458
+ deviceId: number().optional(),
7459
+ toLocationId: string(),
7460
+ throttleMbps: number().min(1).max(1e3).optional()
7461
+ });
7462
+ /**
7430
7463
  * `StorageLocationType` — an addon-declared id that identifies the *kind* of
7431
7464
  * storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
7432
7465
  * so the persisted record schema and the consumer-facing cap can both consume it
@@ -7476,6 +7509,13 @@ var StorageLocationSchema = object({
7476
7509
  nodeId: string().optional(),
7477
7510
  isDefault: boolean().default(false),
7478
7511
  isSystem: boolean().default(false),
7512
+ /** COMPUTED at read time by the orchestrator (statfs of the backing volume
7513
+ * for node-local locations it can reach) — never persisted, absent when the
7514
+ * volume is remote/unreachable. The single capacity truth every UI reads. */
7515
+ capacity: object({
7516
+ totalBytes: number(),
7517
+ availableBytes: number()
7518
+ }).nullable().optional(),
7479
7519
  createdAt: number(),
7480
7520
  updatedAt: number()
7481
7521
  });
@@ -8243,7 +8283,8 @@ var NcTaxonomyEntrySchema = object({
8243
8283
  /** Macro/category parent for grouping ('car' → 'vehicle'); null for a top. */
8244
8284
  parentKind: string().nullable()
8245
8285
  });
8246
- object({
8286
+ /** The complete NC picker taxonomy — three grouped buckets. */
8287
+ var NcTaxonomySchema = object({
8247
8288
  videoClasses: array(NcTaxonomyEntrySchema),
8248
8289
  audioKinds: array(NcTaxonomyEntrySchema),
8249
8290
  labels: array(NcTaxonomyEntrySchema)
@@ -8903,6 +8944,7 @@ var AccessoryKind = {
8903
8944
  };
8904
8945
  AccessoryKind.Siren, AccessoryKind.Floodlight, AccessoryKind.Spotlight, AccessoryKind.PirSensor, AccessoryKind.Chime, AccessoryKind.Autotrack, AccessoryKind.Nightvision, AccessoryKind.PrivacyMask;
8905
8946
  DeviceFeature.BatteryOperated;
8947
+ new Set(["devices", "classes"]);
8906
8948
  /**
8907
8949
  * Shared geometry vocabulary for on-frame shape caps — privacy-mask,
8908
8950
  * motion-zones, and the detection zones/lines editor all speak this one
@@ -9061,6 +9103,29 @@ var NcOccupancyConditionSchema = object({
9061
9103
  count: number().int().min(0).default(1),
9062
9104
  sustainSeconds: number().int().min(0).max(3600).default(15)
9063
9105
  });
9106
+ /**
9107
+ * Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
9108
+ *
9109
+ * The values are not symmetric, and deliberately so — the absent value has to
9110
+ * mean exactly what every rule authored before this condition existed already
9111
+ * does:
9112
+ * - `enter` — entries and every NON-crossing record (movement state,
9113
+ * package, sensor). Exits are rejected. **This is the absent behaviour**:
9114
+ * an operator who never asked for exits must not start receiving them.
9115
+ * - `exit` — ONLY an exit crossing. A record that is not a crossing at all
9116
+ * fails closed, because "the car left the drive" is a question about a
9117
+ * boundary, not about a detection.
9118
+ * - `any` — no direction filter; entries, exits and non-crossings alike.
9119
+ *
9120
+ * A rule asking for a direction should normally also scope `zones`, which the
9121
+ * engine evaluates against the crossed zone as well as the current membership
9122
+ * (an exit's membership no longer contains the zone it just left).
9123
+ */
9124
+ var NcCrossingSchema = _enum([
9125
+ "enter",
9126
+ "exit",
9127
+ "any"
9128
+ ]);
9064
9129
  /** Admin-zone membership condition (zone IDs as stamped by the ZoneEngine). */
9065
9130
  var NcZoneConditionSchema = object({
9066
9131
  ids: array(string().min(1)).min(1),
@@ -9085,6 +9150,13 @@ var NcConditionsSchema = object({
9085
9150
  /** Veto zones — any hit fails the rule. */
9086
9151
  zonesExclude: array(string().min(1)).optional(),
9087
9152
  /**
9153
+ * Zone-crossing direction. IMMEDIATE only — a crossing is a per-event fact
9154
+ * and a closed track carries none, so a `track-end` rule asking for one
9155
+ * fails closed (use `zones`, which tests `zonesVisited`). ABSENT = `enter`,
9156
+ * which is exactly today's behaviour. See {@link NcCrossingSchema}.
9157
+ */
9158
+ crossing: NcCrossingSchema.optional(),
9159
+ /**
9088
9160
  * Exact (case-insensitive) match on the record's collapsed `label`
9089
9161
  * (identity name / plate text / subclass).
9090
9162
  */
@@ -9219,17 +9291,85 @@ var NcRuleTargetSchema = object({
9219
9291
  * - `keyFrame` — the clean scene frame (no subject box).
9220
9292
  * - `none` — no attachment.
9221
9293
  */
9222
- var NcMediaPolicySchema = object({ attach: _enum([
9223
- "best",
9224
- "best-matching",
9225
- "keyFrame",
9226
- "none"
9227
- ]).default("best") });
9294
+ /**
9295
+ * WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
9296
+ * conflate it with the selection strategy and betray the request: asking for
9297
+ * the clean scene frame on an object-event owner used to start at
9298
+ * `fullFrameBoxed`, i.e. the annotated frame (2026-07-30).
9299
+ * - `cropped` — the subject, tight. What "who is at the door" wants.
9300
+ * - `full` — the clean scene, no annotation. What "what is going on" wants.
9301
+ * - `boxed` — the scene WITH the detection boxes drawn, for verifying what
9302
+ * the pipeline actually saw.
9303
+ */
9304
+ var NcMediaFrameSchema = _enum([
9305
+ "cropped",
9306
+ "full",
9307
+ "boxed"
9308
+ ]);
9309
+ var NcMediaPolicySchema = object({
9310
+ attach: _enum([
9311
+ "best",
9312
+ "best-matching",
9313
+ "keyFrame",
9314
+ "none"
9315
+ ]).default("best"),
9316
+ /** What the still shows. Absent = `cropped` (the historical `best` shape). */
9317
+ frame: NcMediaFrameSchema.optional(),
9318
+ /** Crop the attached still to the rule's condition-zone bbox (padded) —
9319
+ * "show me the ZONE", not the whole scene or the subject crop. */
9320
+ zoneCrop: boolean().optional(),
9321
+ /**
9322
+ * Also attach a short GIF cut from the stream broker's clip ring around the
9323
+ * event — NOT from the recording, so the camera does not have to be
9324
+ * recording, and the window sits AROUND the moment instead of a segment
9325
+ * behind it. Fail-closed: a window the ring does not cover contributes no
9326
+ * gif, never a failed notification.
9327
+ */
9328
+ gif: boolean().optional(),
9329
+ /**
9330
+ * Also attach a short MP4 CLIP of the same cut. Same source and the same
9331
+ * fail-closed rule as `gif`. Prefer it where the backend takes video
9332
+ * (telegram, discord, zentik, webhook); backends that do not are handled by
9333
+ * the degrade engine, which drops the video and keeps the still.
9334
+ */
9335
+ clip: boolean().optional(),
9336
+ /** Seconds of footage BEFORE / AFTER the event instant. Defaults 3 / 7. */
9337
+ clipPreRollSec: number().int().min(0).max(30).optional(),
9338
+ clipPostRollSec: number().int().min(0).max(30).optional(),
9339
+ /**
9340
+ * Which stream profile the footage is cut from. Absent = the CHEAPEST
9341
+ * assigned profile: a notification is watched on a phone, so the 4K
9342
+ * rendition would burn CPU to produce a file the client downscales anyway.
9343
+ * A profile that is not assigned falls back to the cheapest, and the render
9344
+ * reports which one actually ran.
9345
+ */
9346
+ profile: CamProfileSchema.optional()
9347
+ });
9348
+ /**
9349
+ * Cooldown GRANULARITY over the subject's class — how much a fired
9350
+ * notification suppresses.
9351
+ * - `shared` (default, and the absent value) — one window for the whole
9352
+ * rule/scope: a cat silences the next dog for `cooldownSec`.
9353
+ * - `per-class` — an independent window per detected class, so cat→dog fires
9354
+ * at once and cat→cat still waits.
9355
+ *
9356
+ * AUDIO subjects are ALWAYS per-class regardless of this setting: a scream
9357
+ * must not be swallowed by a bark's window (the precedent this generalizes —
9358
+ * see `cooldownKey` in the rule engine).
9359
+ */
9360
+ var NcThrottleGranularitySchema = _enum(["shared", "per-class"]);
9228
9361
  /** Throttle — cooldown survives restarts (rebuilt from the outbox on boot). */
9229
9362
  var NcThrottleSchema = object({
9230
9363
  cooldownSec: number().int().min(0).max(86400).default(60),
9231
9364
  /** `rule` = one shared cooldown; `rule-device` = per-camera cooldown. */
9232
- scope: _enum(["rule", "rule-device"]).default("rule-device")
9365
+ scope: _enum(["rule", "rule-device"]).default("rule-device"),
9366
+ /**
9367
+ * Class granularity of the cooldown key. Optional rather than defaulted:
9368
+ * a Zod default does NOT run on the addon→addon cap path, so a persisted
9369
+ * rule authored before this field simply carries none — and the engine
9370
+ * reads absent as `shared`, the pre-existing behaviour.
9371
+ */
9372
+ granularity: NcThrottleGranularitySchema.optional()
9233
9373
  });
9234
9374
  /** Client-supplied rule fields (server stamps id/createdBy/createdAt/updatedAt). */
9235
9375
  var NcRuleInputSchema = object({
@@ -9238,7 +9378,19 @@ var NcRuleInputSchema = object({
9238
9378
  delivery: NcDeliverySchema,
9239
9379
  conditions: NcConditionsSchema.default({}),
9240
9380
  schedule: NcScheduleSchema.optional(),
9241
- targets: array(NcRuleTargetSchema).min(1),
9381
+ /** May be empty when `targetUsers` addresses at least one user — the
9382
+ * "at least one addressee" invariant is enforced by the provider, because
9383
+ * a cross-field refine here would break `NcRulePatchSchema.partial()`. */
9384
+ targets: array(NcRuleTargetSchema),
9385
+ /**
9386
+ * USERS this rule addresses in addition to `targets` (Phase 4). At fire
9387
+ * time each user fans out to the personal targets they own
9388
+ * (`config.ownerUserId`), filtered by that user's `allowedDevices` for the
9389
+ * firing camera — a user is never notified about a device they cannot open.
9390
+ * Per-user opt-outs (`disabledTargetIds`) still apply to the fanned-out
9391
+ * targets.
9392
+ */
9393
+ targetUsers: array(string()).optional(),
9242
9394
  media: NcMediaPolicySchema.default({ attach: "best" }),
9243
9395
  throttle: NcThrottleSchema.default({
9244
9396
  cooldownSec: 60,
@@ -9325,6 +9477,7 @@ var NcConditionDescriptorSchema = object({
9325
9477
  "schedule",
9326
9478
  "plateMatcher",
9327
9479
  "packagePhase",
9480
+ "crossingSelect",
9328
9481
  "polygonDraw",
9329
9482
  "occupancy"
9330
9483
  ]),
@@ -9451,7 +9604,10 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
9451
9604
  }), object({ results: array(NcTestResultSchema) }), {
9452
9605
  kind: "mutation",
9453
9606
  auth: "admin"
9454
- }), method(object({}), object({ catalog: array(NcConditionDescriptorSchema) })), method(object({ filter: NcHistoryFilterSchema.default({ limit: 100 }) }), object({ entries: array(NcHistoryEntrySchema) }), { auth: "admin" });
9607
+ }), method(object({}), object({
9608
+ catalog: array(NcConditionDescriptorSchema),
9609
+ taxonomy: NcTaxonomySchema.optional()
9610
+ })), method(object({ filter: NcHistoryFilterSchema.default({ limit: 100 }) }), object({ entries: array(NcHistoryEntrySchema) }), { auth: "admin" });
9455
9611
  /**
9456
9612
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
9457
9613
  *
@@ -10188,6 +10344,28 @@ method(object({
10188
10344
  }), object({ success: literal(true) }), {
10189
10345
  kind: "mutation",
10190
10346
  auth: "admin"
10347
+ }), method(object({
10348
+ deviceId: number(),
10349
+ /** Absent = the LOWEST assigned profile — a notification attachment is
10350
+ * watched on a phone, and the cheap rendition is the right default. */
10351
+ profile: CamProfileSchema.optional(),
10352
+ aroundMs: number(),
10353
+ preRollSec: number().min(0).max(20).default(3),
10354
+ postRollSec: number().min(0).max(20).default(5),
10355
+ format: _enum(["gif", "mp4"]).default("gif"),
10356
+ maxWidth: number().int().min(120).max(1920).default(480),
10357
+ /** GIF only — MP4 keeps the source cadence. */
10358
+ fps: number().int().min(1).max(15).default(5)
10359
+ }), object({
10360
+ base64: string(),
10361
+ mime: string(),
10362
+ bytes: number().int(),
10363
+ /** The profile actually rendered (what the default resolved to). */
10364
+ profile: CamProfileSchema,
10365
+ durationMs: number()
10366
+ }), {
10367
+ kind: "mutation",
10368
+ auth: "admin"
10191
10369
  }), method(_void(), array(CameraStreamSchema).readonly()), method(_void(), array(ProfileSlotSchema).readonly()), method(object({ brokerId: string() }), BrokerStatsSchema), method(object({ brokerId: string() }), object({
10192
10370
  probed: boolean(),
10193
10371
  summary: string()
@@ -15782,7 +15960,10 @@ method(object({
15782
15960
  }), method(object({
15783
15961
  deviceId: number(),
15784
15962
  caps: array(string()).readonly().optional()
15785
- }), record(string(), unknown().nullable()));
15963
+ }), record(string(), unknown().nullable())), method(object({
15964
+ deviceIds: array(number()).readonly(),
15965
+ caps: array(string()).readonly().optional()
15966
+ }), record(string(), record(string(), unknown().nullable())));
15786
15967
  method(object({ deviceId: number() }), record(string(), record(string(), unknown()))), method(object({
15787
15968
  deviceId: number(),
15788
15969
  capName: string()
@@ -16713,6 +16894,36 @@ var TargetKindSchema = object({
16713
16894
  icon: string(),
16714
16895
  /** Stamped by each provider so the concat-fanned catalog stays routable. */
16715
16896
  addonId: string(),
16897
+ /**
16898
+ * URL of the kind's bundled BRAND icon, served by the providing addon over
16899
+ * its own `addon-routes` surface (`/addon/<addonId>/icons/<kind>`). Absent
16900
+ * when the addon bundles no icon for that kind — the client then falls back
16901
+ * to a neutral glyph rather than rendering the raw `icon` NAME as text.
16902
+ *
16903
+ * Root-relative on purpose: it resolves against whatever origin serves a web
16904
+ * client, and a native client joins it onto its own hub base.
16905
+ *
16906
+ * DECLARED here deliberately. It used to travel as an undeclared passthrough
16907
+ * field that survived only because the runtime cap-router forwards provider
16908
+ * output verbatim — so every consumer had to re-declare it by hand to stop
16909
+ * its own Zod parse from stripping it, and the whole arrangement would have
16910
+ * broken silently the moment output validation was tightened anywhere.
16911
+ */
16912
+ iconUrl: string().optional(),
16913
+ /**
16914
+ * Media type of {@link iconUrl} (`image/svg+xml`, `image/png`, …).
16915
+ *
16916
+ * The server knows this and therefore says it, because the client cannot
16917
+ * safely guess: a React-Native client renders SVG and raster through two
16918
+ * DIFFERENT components (`react-native-svg` vs `expo-image` — expo-image does
16919
+ * not decode SVG on iOS/Android), so without this it silently fell back to a
16920
+ * placeholder glyph for every vector icon while the web build looked fine.
16921
+ *
16922
+ * Absent when {@link iconUrl} is absent, or for a legacy provider that has
16923
+ * not been updated — a client that cannot determine the type should prefer
16924
+ * its raster path, which is the safe default for an unknown image.
16925
+ */
16926
+ iconMediaType: string().optional(),
16716
16927
  configSchema: ConfigSchemaPassthrough,
16717
16928
  supportsDiscovery: boolean(),
16718
16929
  caps: TargetKindCapsSchema
@@ -17160,6 +17371,29 @@ var MotionEventSchema = object({
17160
17371
  * Absent on legacy rows ⇒ treat as `pipeline`.
17161
17372
  */
17162
17373
  var DetectionSourceSchema = _enum(["pipeline", "onboard"]);
17374
+ /**
17375
+ * The confirmed zone crossing that produced an object event. Present ONLY on
17376
+ * an event emitted BY a crossing (`zone.enter` / `zone.exit`); a movement-state
17377
+ * event (`object.entering` / `leaving` / `stationary` / `loitering`) and an
17378
+ * appearance event carry none, so a rule asking for a direction fails closed
17379
+ * on them.
17380
+ *
17381
+ * Exactly ONE crossing per event: the emitter turns each confirmed crossing
17382
+ * into its own event, so a frame in which a track enters A while leaving B
17383
+ * produces two events with two directions — never one ambiguous row.
17384
+ *
17385
+ * `zoneId` is load-bearing for an EXIT: the event's `zones` list is the
17386
+ * membership the box has NOW, and by definition it no longer contains the zone
17387
+ * that was just left. Without the id here, a zone-scoped rule could never match
17388
+ * the exit it asked for.
17389
+ */
17390
+ var ZoneCrossingSchema = object({
17391
+ direction: _enum(["enter", "exit"]),
17392
+ /** Admin zone id crossed. */
17393
+ zoneId: string(),
17394
+ /** Zone display name at crossing time (falls back to the id). */
17395
+ zoneName: string().optional()
17396
+ });
17163
17397
  var ObjectEventSchema = object({
17164
17398
  ...BaseEventFields,
17165
17399
  kind: literal("object"),
@@ -17186,6 +17420,12 @@ var ObjectEventSchema = object({
17186
17420
  zones: array(string()).readonly().optional(),
17187
17421
  /** Omitted in slim projection. */
17188
17422
  state: TrackStateSchema.optional(),
17423
+ /**
17424
+ * The zone crossing this event IS, when it is one. Absent on every other
17425
+ * event kind (movement state, appearance, package) — see
17426
+ * {@link ZoneCrossingSchema}. Omitted in slim projection.
17427
+ */
17428
+ zoneCrossing: ZoneCrossingSchema.optional(),
17189
17429
  /** Detection-frame dimensions in pixels — let consumers normalize the
17190
17430
  * pixel-space `bbox` onto a displayed image. Omitted in slim projection. */
17191
17431
  frameWidth: number().optional(),
@@ -17444,6 +17684,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17444
17684
  }), method(object({ deviceId: number() }), EventPruneCountsSchema, {
17445
17685
  kind: "mutation",
17446
17686
  auth: "admin"
17687
+ }), method(RelocateMediaInputSchema, object({ jobId: string() }), {
17688
+ kind: "mutation",
17689
+ auth: "admin"
17690
+ }), method(object({}), array(RelocateJobSchema).readonly(), {
17691
+ kind: "query",
17692
+ auth: "admin"
17693
+ }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
17694
+ kind: "mutation",
17695
+ auth: "admin"
17447
17696
  }), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
17448
17697
  kind: "query",
17449
17698
  auth: "admin"
@@ -19936,6 +20185,17 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
19936
20185
  */
19937
20186
  priority: number()
19938
20187
  })).readonly() });
20188
+ /**
20189
+ * The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
20190
+ * AUTO (resolved from the candidate ranking at send time); `resolved` reports
20191
+ * what AUTO currently picks, so the UI can show the effective value either way.
20192
+ */
20193
+ var NotificationEndpointSchema = object({
20194
+ /** The operator's explicit choice, or null for AUTO. */
20195
+ baseUrl: string().nullable(),
20196
+ /** What the ranking currently resolves to (null when nothing is reachable). */
20197
+ resolved: string().nullable()
20198
+ });
19939
20199
  var AllowedAddressesSchema = object({
19940
20200
  /**
19941
20201
  * Allowlist of interface addresses operators have explicitly opted
@@ -19958,7 +20218,7 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
19958
20218
  * to avoid mixed-content blocks in the browser. The public
19959
20219
  * tunnel always emits `https://` regardless. */
19960
20220
  scheme: _enum(["http", "https"]).optional()
19961
- }), GetConnectionEndpointsResultSchema), method(_void(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" });
20221
+ }), 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" });
19962
20222
  /**
19963
20223
  * mesh-network — collection cap for mesh-VPN providers.
19964
20224
  *
@@ -20757,7 +21017,12 @@ var RecordingDeviceUsageSchema = object({
20757
21017
  var RecordingLocationUsageSchema = object({
20758
21018
  /** StorageLocation id; null for the legacy/degraded single-root fallback. */
20759
21019
  locationId: string().nullable(),
20760
- /** Bytes of recordings stored on this location. */
21020
+ /** Every location id sharing this row's PHYSICAL volume (aliases). One row
21021
+ * is emitted per physical disk (2026-07-29): two locations on one root
21022
+ * previously rendered as two identical "disks" with a nonsensical used
21023
+ * split — hydrate attribution across aliases is arbitrary by nature. */
21024
+ locationIds: array(string()).optional(),
21025
+ /** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
20761
21026
  usedBytes: number(),
20762
21027
  /** Free bytes on the location's volume; null when capacity is unknown (remote). */
20763
21028
  availableBytes: number().nullable(),
@@ -20869,6 +21134,44 @@ method(object({
20869
21134
  }), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
20870
21135
  kind: "query",
20871
21136
  auth: "admin"
21137
+ }), method(object({
21138
+ deviceId: number(),
21139
+ aroundMs: number(),
21140
+ preRollSec: number().min(0).max(30).default(2),
21141
+ postRollSec: number().min(0).max(30).default(5),
21142
+ maxWidth: number().int().min(120).max(1280).default(480),
21143
+ fps: number().int().min(1).max(15).default(5)
21144
+ }), object({
21145
+ gifBase64: string(),
21146
+ fromMs: number(),
21147
+ toMs: number()
21148
+ }), {
21149
+ kind: "mutation",
21150
+ auth: "admin"
21151
+ }), method(object({
21152
+ deviceId: number(),
21153
+ aroundMs: number(),
21154
+ preRollSec: number().min(0).max(30).default(3),
21155
+ postRollSec: number().min(0).max(30).default(7),
21156
+ maxWidth: number().int().min(160).max(1920).default(640)
21157
+ }), object({
21158
+ clipBase64: string(),
21159
+ mime: string(),
21160
+ fromMs: number(),
21161
+ toMs: number(),
21162
+ bytes: number().int()
21163
+ }), {
21164
+ kind: "mutation",
21165
+ auth: "admin"
21166
+ }), method(RelocateFootageInputSchema, object({ jobId: string() }), {
21167
+ kind: "mutation",
21168
+ auth: "admin"
21169
+ }), method(object({}), array(RelocateJobSchema).readonly(), {
21170
+ kind: "query",
21171
+ auth: "admin"
21172
+ }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
21173
+ kind: "mutation",
21174
+ auth: "admin"
20872
21175
  });
20873
21176
  /**
20874
21177
  * `recordingExport` cap — render a footage time range into a single downloadable
@@ -22460,6 +22763,12 @@ Object.freeze({
22460
22763
  addonId: null,
22461
22764
  access: "view"
22462
22765
  },
22766
+ "deviceManager.getDeviceStatusAggregateBatch": {
22767
+ capName: "device-manager",
22768
+ capScope: "system",
22769
+ addonId: null,
22770
+ access: "view"
22771
+ },
22463
22772
  "deviceManager.getLinkedDevices": {
22464
22773
  capName: "device-manager",
22465
22774
  capScope: "system",
@@ -23354,6 +23663,12 @@ Object.freeze({
23354
23663
  addonId: null,
23355
23664
  access: "view"
23356
23665
  },
23666
+ "localNetwork.getNotificationEndpoint": {
23667
+ capName: "local-network",
23668
+ capScope: "system",
23669
+ addonId: null,
23670
+ access: "view"
23671
+ },
23357
23672
  "localNetwork.getPreferred": {
23358
23673
  capName: "local-network",
23359
23674
  capScope: "system",
@@ -23378,6 +23693,12 @@ Object.freeze({
23378
23693
  addonId: null,
23379
23694
  access: "create"
23380
23695
  },
23696
+ "localNetwork.setNotificationEndpoint": {
23697
+ capName: "local-network",
23698
+ capScope: "system",
23699
+ addonId: null,
23700
+ access: "create"
23701
+ },
23381
23702
  "lockControl.lock": {
23382
23703
  capName: "lock-control",
23383
23704
  capScope: "device",
@@ -24020,6 +24341,12 @@ Object.freeze({
24020
24341
  addonId: null,
24021
24342
  access: "create"
24022
24343
  },
24344
+ "pipelineAnalytics.cancelMediaRelocate": {
24345
+ capName: "pipeline-analytics",
24346
+ capScope: "device",
24347
+ addonId: null,
24348
+ access: "create"
24349
+ },
24023
24350
  "pipelineAnalytics.clearTracks": {
24024
24351
  capName: "pipeline-analytics",
24025
24352
  capScope: "device",
@@ -24074,6 +24401,12 @@ Object.freeze({
24074
24401
  addonId: null,
24075
24402
  access: "view"
24076
24403
  },
24404
+ "pipelineAnalytics.getMediaRelocateStatus": {
24405
+ capName: "pipeline-analytics",
24406
+ capScope: "device",
24407
+ addonId: null,
24408
+ access: "view"
24409
+ },
24077
24410
  "pipelineAnalytics.getMotionEvents": {
24078
24411
  capName: "pipeline-analytics",
24079
24412
  capScope: "device",
@@ -24146,6 +24479,12 @@ Object.freeze({
24146
24479
  addonId: null,
24147
24480
  access: "create"
24148
24481
  },
24482
+ "pipelineAnalytics.relocateMedia": {
24483
+ capName: "pipeline-analytics",
24484
+ capScope: "device",
24485
+ addonId: null,
24486
+ access: "create"
24487
+ },
24149
24488
  "pipelineAnalytics.searchObjectEvents": {
24150
24489
  capName: "pipeline-analytics",
24151
24490
  capScope: "device",
@@ -24908,6 +25247,12 @@ Object.freeze({
24908
25247
  addonId: null,
24909
25248
  access: "create"
24910
25249
  },
25250
+ "recording.cancelRelocate": {
25251
+ capName: "recording",
25252
+ capScope: "system",
25253
+ addonId: null,
25254
+ access: "create"
25255
+ },
24911
25256
  "recording.deleteFootprint": {
24912
25257
  capName: "recording",
24913
25258
  capScope: "system",
@@ -24938,6 +25283,12 @@ Object.freeze({
24938
25283
  addonId: null,
24939
25284
  access: "view"
24940
25285
  },
25286
+ "recording.getRelocateStatus": {
25287
+ capName: "recording",
25288
+ capScope: "system",
25289
+ addonId: null,
25290
+ access: "view"
25291
+ },
24941
25292
  "recording.getStorageUsage": {
24942
25293
  capName: "recording",
24943
25294
  capScope: "system",
@@ -24968,6 +25319,24 @@ Object.freeze({
24968
25319
  addonId: null,
24969
25320
  access: "view"
24970
25321
  },
25322
+ "recording.relocateFootage": {
25323
+ capName: "recording",
25324
+ capScope: "system",
25325
+ addonId: null,
25326
+ access: "create"
25327
+ },
25328
+ "recording.renderClip": {
25329
+ capName: "recording",
25330
+ capScope: "system",
25331
+ addonId: null,
25332
+ access: "create"
25333
+ },
25334
+ "recording.renderGif": {
25335
+ capName: "recording",
25336
+ capScope: "system",
25337
+ addonId: null,
25338
+ access: "create"
25339
+ },
24971
25340
  "recording.rescanStorage": {
24972
25341
  capName: "recording",
24973
25342
  capScope: "system",
@@ -25562,6 +25931,12 @@ Object.freeze({
25562
25931
  addonId: null,
25563
25932
  access: "create"
25564
25933
  },
25934
+ "streamBroker.renderPreBufferClip": {
25935
+ capName: "stream-broker",
25936
+ capScope: "system",
25937
+ addonId: null,
25938
+ access: "create"
25939
+ },
25565
25940
  "streamBroker.restartProfile": {
25566
25941
  capName: "stream-broker",
25567
25942
  capScope: "system",