@camstack/addon-smtp-nodemailer 1.1.22 → 1.1.23

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.
@@ -36,7 +36,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
36
36
  }) : target, mod));
37
37
  var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
38
38
  //#endregion
39
- //#region ../types/dist/event-category-CFZs3jI4.mjs
39
+ //#region ../types/dist/event-category-H4AVePnn.mjs
40
40
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
41
41
  EventCategory["SystemBoot"] = "system.boot";
42
42
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -186,6 +186,9 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
186
186
  EventCategory["RecordingSegmentWritten"] = "recording.segment.written";
187
187
  EventCategory["RecordingPolicyFallback"] = "recording.policy.fallback";
188
188
  EventCategory["RecordingRetentionCompleted"] = "recording.retention.completed";
189
+ /** Runner-sampled scrub thumbnail (~1/5 s/camera). Telemetry (D8): a lost
190
+ * thumb is a scrub gap the recorder's keyframe backfill covers. */
191
+ EventCategory["RecordingThumbSampled"] = "recording.thumb-sampled";
189
192
  EventCategory["DetectionEvent"] = "detection.event";
190
193
  EventCategory["SessionTrackNew"] = "session.track.new";
191
194
  EventCategory["SessionTrackExpired"] = "session.track.expired";
@@ -9850,7 +9853,7 @@ object({
9850
9853
  deviceId: number(),
9851
9854
  timestamp: number()
9852
9855
  });
9853
- DeviceType.Button;
9856
+ DeviceType.Button, DeviceType.Camera;
9854
9857
  /**
9855
9858
  * Enum-state sensor — a string value picked from a finite option set.
9856
9859
  * Drives HA `sensor` entries with `state_class: enum` (HVAC action
@@ -14220,6 +14223,14 @@ var ConfigEntrySchema = object({
14220
14223
  value: unknown(),
14221
14224
  description: string().optional()
14222
14225
  });
14226
+ var DeviceLinkModeSchema = _enum(["auto", "manual"]);
14227
+ /** One resolved linked device — the compact projection consumers need. */
14228
+ var LinkedDeviceSchema = object({
14229
+ deviceId: number(),
14230
+ name: string(),
14231
+ location: string().nullable(),
14232
+ features: array(string())
14233
+ });
14223
14234
  var SavedDeviceRowSchema = object({
14224
14235
  /** Numeric id reserved at allocateDeviceId time. */
14225
14236
  id: number(),
@@ -14441,7 +14452,10 @@ method(object({
14441
14452
  }), _void(), {
14442
14453
  kind: "mutation",
14443
14454
  auth: "admin"
14444
- }), method(object({ addonId: string() }), array(SavedDeviceRowSchema)), method(object({ addonId: string().optional() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
14455
+ }), method(object({ addonId: string() }), array(SavedDeviceRowSchema)), method(object({ addonId: string().optional() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
14456
+ mode: DeviceLinkModeSchema,
14457
+ devices: array(LinkedDeviceSchema)
14458
+ })), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
14445
14459
  deviceId: number(),
14446
14460
  values: record(string(), unknown())
14447
14461
  }), object({ success: literal(true) }), {
@@ -15710,6 +15724,61 @@ var EventKindSchema = _enum([
15710
15724
  "object",
15711
15725
  "audio"
15712
15726
  ]);
15727
+ /**
15728
+ * Spatial filter for `listTracks` — the rect + polygon variants of the shared
15729
+ * MaskShape vocabulary (see `mask-shape.ts`). Coordinates are NORMALIZED 0..1
15730
+ * of the camera frame (top-left origin), matching the drawing-plane editor.
15731
+ */
15732
+ var TrackZoneFilterSchema = discriminatedUnion("kind", [MaskRectShapeSchema, MaskPolygonShapeSchema]);
15733
+ /** Closed icon vocabulary so clients render a known glyph per kind. */
15734
+ var EventKindIconSchema = _enum([
15735
+ "motion",
15736
+ "audio",
15737
+ "person",
15738
+ "vehicle",
15739
+ "animal",
15740
+ "door",
15741
+ "pir",
15742
+ "smoke",
15743
+ "water",
15744
+ "button",
15745
+ "generic"
15746
+ ]);
15747
+ var EventKindCategorySchema = _enum([
15748
+ "motion",
15749
+ "audio",
15750
+ "detection",
15751
+ "sensor",
15752
+ "custom"
15753
+ ]);
15754
+ var EventKindDescriptorSchema = object({
15755
+ /** Stable kind id (e.g. 'motion', 'person', 'contact'). */
15756
+ kind: string(),
15757
+ label: string(),
15758
+ /** Hex color for timeline/legend rendering. */
15759
+ color: string(),
15760
+ icon: EventKindIconSchema,
15761
+ category: EventKindCategorySchema,
15762
+ /** Which cap + device contributes this kind. For built-ins the camera
15763
+ * itself; for sensor kinds the LINKED source device. */
15764
+ source: object({
15765
+ capName: string(),
15766
+ deviceId: number()
15767
+ })
15768
+ });
15769
+ var SensorEventSchema = object({
15770
+ id: string(),
15771
+ /** The CAMERA the event is attributed to (a sensor linked to N cameras
15772
+ * yields N rows, one per camera). */
15773
+ deviceId: number(),
15774
+ /** The linked sensor device whose state changed. */
15775
+ sourceDeviceId: number(),
15776
+ /** Event kind id — matches an `EventKindDescriptor.kind`. */
15777
+ kind: string(),
15778
+ /** Snapshot of the sensor cap's runtime-state slice at the change. */
15779
+ value: record(string(), unknown()).nullable(),
15780
+ timestamp: number()
15781
+ });
15713
15782
  var TrackPositionSchema = object({
15714
15783
  x: number(),
15715
15784
  y: number(),
@@ -15723,6 +15792,30 @@ var TrackSnapshotSchema = object({
15723
15792
  mediaKey: string()
15724
15793
  });
15725
15794
  /**
15795
+ * Normalized 0..1 trajectory envelope (min/max over every position bbox,
15796
+ * divided by the track's detection-frame dims), computed at persist time.
15797
+ * Absent when the frame dims were unknown when the track was persisted
15798
+ * (legacy rows / dims-less sources) and on active (in-RAM) tracks.
15799
+ */
15800
+ var TrackEnvelopeSchema = object({
15801
+ minX: number(),
15802
+ minY: number(),
15803
+ maxX: number(),
15804
+ maxY: number()
15805
+ });
15806
+ /**
15807
+ * Row projection for track list queries. `full` (default) returns the
15808
+ * complete Track including the frame-rate `positions[]` history and the
15809
+ * `snapshots[]` references — megabytes across a page of tracks. `slim`
15810
+ * keeps every scalar the list surfaces actually render (ids, class(es),
15811
+ * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
15812
+ * zonesVisited, bestEventId, envelope) and returns `positions` /
15813
+ * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
15814
+ * `getTrack`. Mirrors the event-store `projection` convention
15815
+ * (`getObjectEvents` et al.).
15816
+ */
15817
+ var TrackProjectionSchema = _enum(["full", "slim"]);
15818
+ /**
15726
15819
  * One audio-classification label heard on the track's camera while the
15727
15820
  * track was alive, aggregated per label. An "episode" is one persisted
15728
15821
  * audio event (the confident-classification path: score ≥ the device's
@@ -15773,7 +15866,11 @@ var TrackSchema = object({
15773
15866
  /** Audio-classification labels heard on the camera during the track's
15774
15867
  * life (score ≥ device `classificationMinScore`), aggregated per label.
15775
15868
  * Absent on legacy rows / tracks with no confident audio. */
15776
- audioLabels: array(TrackAudioLabelSchema).readonly().optional()
15869
+ audioLabels: array(TrackAudioLabelSchema).readonly().optional(),
15870
+ /** Normalized 0..1 trajectory envelope (see {@link TrackEnvelopeSchema}).
15871
+ * Populated from the persisted envelope columns on historical reads;
15872
+ * absent on legacy rows, dims-less tracks and active (in-RAM) tracks. */
15873
+ envelope: TrackEnvelopeSchema.optional()
15777
15874
  });
15778
15875
  var BaseEventFields = {
15779
15876
  id: string(),
@@ -15883,11 +15980,13 @@ var MediaFileSchema = object({
15883
15980
  sizeBytes: number(),
15884
15981
  timestamp: number()
15885
15982
  });
15983
+ var DEFAULT_EVENT_QUERY_LIMIT = 1e3;
15984
+ var MAX_EVENT_QUERY_LIMIT = 5e3;
15886
15985
  var DeviceEventQueryInput = object({
15887
15986
  deviceId: number(),
15888
15987
  since: number().optional(),
15889
15988
  until: number().optional(),
15890
- limit: number().int().min(1).max(5e3).default(1e3),
15989
+ limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT),
15891
15990
  /** `slim` drops heavy JSON fields (regions/bbox/zones) and carries an
15892
15991
  * optional `mediaUrl` (populated by B5). `full` (default) keeps today's
15893
15992
  * exact behaviour. Callers may omit this field — the store defaults to
@@ -15895,6 +15994,27 @@ var DeviceEventQueryInput = object({
15895
15994
  projection: _enum(["full", "slim"]).optional()
15896
15995
  });
15897
15996
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
15997
+ var RecentTracksQueryInput = object({
15998
+ /** Devices to merge. An empty array yields `{ tracks: [], nextCursor: null }`. */
15999
+ deviceIds: array(number()),
16000
+ /** Window lower bound on `lastSeen` (inclusive). */
16001
+ since: number().optional(),
16002
+ /** Window upper bound on `lastSeen` (inclusive). */
16003
+ until: number().optional(),
16004
+ /** Page size. Default 200, max 1000. */
16005
+ limit: number().int().min(1).max(1e3).default(200),
16006
+ /** Opaque continuation cursor from a previous page's `nextCursor`.
16007
+ * Encodes the (lastSeen, trackId) sort position — treat as opaque. */
16008
+ cursor: string().optional(),
16009
+ /** See {@link TrackProjectionSchema}. Default `full`. */
16010
+ projection: TrackProjectionSchema.optional()
16011
+ });
16012
+ var RecentTracksPageSchema = object({
16013
+ /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
16014
+ tracks: array(TrackSchema).readonly(),
16015
+ /** Cursor for the next page, or null when this page is the last. */
16016
+ nextCursor: string().nullable()
16017
+ });
15898
16018
  var KeyEventQueryInput = object({
15899
16019
  deviceId: number(),
15900
16020
  /** Window lower bound (track firstSeen ≥ since). */
@@ -15977,11 +16097,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15977
16097
  deviceId: number(),
15978
16098
  since: number().optional(),
15979
16099
  until: number().optional(),
15980
- limit: number().optional()
15981
- }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
15982
- kind: "mutation",
15983
- auth: "admin"
15984
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
16100
+ limit: number().optional(),
16101
+ /** Spatial filter only tracks whose trajectory intersects the zone
16102
+ * (normalized 0..1 rect or polygon). SQL-prefiltered on the persisted
16103
+ * envelope columns, then precisely tested per position. Tracks with
16104
+ * an unknown envelope (no frame dims at persist time) always match. */
16105
+ zone: TrackZoneFilterSchema.optional(),
16106
+ /** See {@link TrackProjectionSchema}. Default `full` (backward
16107
+ * compatible — omitting the field keeps today's exact behaviour). */
16108
+ projection: TrackProjectionSchema.optional()
16109
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
16110
+ kind: "mutation",
16111
+ auth: "admin"
16112
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({ deviceId: number() }), array(EventKindDescriptorSchema).readonly()), method(object({
16113
+ deviceId: number(),
16114
+ since: number().optional(),
16115
+ until: number().optional(),
16116
+ kinds: array(string()).optional(),
16117
+ limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
16118
+ }), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
15985
16119
  deviceId: number(),
15986
16120
  since: number(),
15987
16121
  until: number(),
@@ -19195,7 +19329,12 @@ var RecordingStorageUsageSchema = object({
19195
19329
  /**
19196
19330
  * Result of locating footage at a wall-clock instant for one device/profile.
19197
19331
  * `segment` carries the covering segment's window; `gap` reports the forward
19198
- * nearest covered edge (`null` past the end of footage / when none exists).
19332
+ * nearest covered edge (`null` past the end of footage / when none exists)
19333
+ * and the backward covered edge `prevEndMs` (exclusive end of the nearest
19334
+ * footage behind the epoch; `null` when none — optional so older providers
19335
+ * that omit it stay valid). `prevEndMs` lets a backward frame-step hop the
19336
+ * small inter-segment cracks (durMs under-covers the span to the next
19337
+ * startMs by ~11-17 ms) instead of no-opping at a segment head.
19199
19338
  */
19200
19339
  var LocateSegmentResultSchema = discriminatedUnion("kind", [object({
19201
19340
  kind: literal("segment"),
@@ -19204,7 +19343,8 @@ var LocateSegmentResultSchema = discriminatedUnion("kind", [object({
19204
19343
  bytes: number()
19205
19344
  }), object({
19206
19345
  kind: literal("gap"),
19207
- nearestEdgeMs: number().nullable()
19346
+ nearestEdgeMs: number().nullable(),
19347
+ prevEndMs: number().nullable().optional()
19208
19348
  })]);
19209
19349
  /** Raw bytes of one finalized footage segment (read off disk on the recording node). */
19210
19350
  var ReadSegmentBytesResultSchema = object({ data: _instanceof(Uint8Array) });
@@ -20773,6 +20913,12 @@ Object.freeze({
20773
20913
  addonId: null,
20774
20914
  access: "view"
20775
20915
  },
20916
+ "deviceManager.getLinkedDevices": {
20917
+ capName: "device-manager",
20918
+ capScope: "system",
20919
+ addonId: null,
20920
+ access: "view"
20921
+ },
20776
20922
  "deviceManager.getRoleDisplayDefaults": {
20777
20923
  capName: "device-manager",
20778
20924
  capScope: "system",
@@ -22327,6 +22473,12 @@ Object.freeze({
22327
22473
  addonId: null,
22328
22474
  access: "view"
22329
22475
  },
22476
+ "pipelineAnalytics.getSensorEvents": {
22477
+ capName: "pipeline-analytics",
22478
+ capScope: "device",
22479
+ addonId: null,
22480
+ access: "view"
22481
+ },
22330
22482
  "pipelineAnalytics.getTrack": {
22331
22483
  capName: "pipeline-analytics",
22332
22484
  capScope: "device",
@@ -22339,6 +22491,18 @@ Object.freeze({
22339
22491
  addonId: null,
22340
22492
  access: "view"
22341
22493
  },
22494
+ "pipelineAnalytics.listEventKinds": {
22495
+ capName: "pipeline-analytics",
22496
+ capScope: "device",
22497
+ addonId: null,
22498
+ access: "view"
22499
+ },
22500
+ "pipelineAnalytics.listRecentTracks": {
22501
+ capName: "pipeline-analytics",
22502
+ capScope: "device",
22503
+ addonId: null,
22504
+ access: "view"
22505
+ },
22342
22506
  "pipelineAnalytics.listTracks": {
22343
22507
  capName: "pipeline-analytics",
22344
22508
  capScope: "device",
@@ -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-CFZs3jI4.mjs
37
+ //#region ../types/dist/event-category-H4AVePnn.mjs
38
38
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
39
39
  EventCategory["SystemBoot"] = "system.boot";
40
40
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -184,6 +184,9 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
184
184
  EventCategory["RecordingSegmentWritten"] = "recording.segment.written";
185
185
  EventCategory["RecordingPolicyFallback"] = "recording.policy.fallback";
186
186
  EventCategory["RecordingRetentionCompleted"] = "recording.retention.completed";
187
+ /** Runner-sampled scrub thumbnail (~1/5 s/camera). Telemetry (D8): a lost
188
+ * thumb is a scrub gap the recorder's keyframe backfill covers. */
189
+ EventCategory["RecordingThumbSampled"] = "recording.thumb-sampled";
187
190
  EventCategory["DetectionEvent"] = "detection.event";
188
191
  EventCategory["SessionTrackNew"] = "session.track.new";
189
192
  EventCategory["SessionTrackExpired"] = "session.track.expired";
@@ -9848,7 +9851,7 @@ object({
9848
9851
  deviceId: number(),
9849
9852
  timestamp: number()
9850
9853
  });
9851
- DeviceType.Button;
9854
+ DeviceType.Button, DeviceType.Camera;
9852
9855
  /**
9853
9856
  * Enum-state sensor — a string value picked from a finite option set.
9854
9857
  * Drives HA `sensor` entries with `state_class: enum` (HVAC action
@@ -14218,6 +14221,14 @@ var ConfigEntrySchema = object({
14218
14221
  value: unknown(),
14219
14222
  description: string().optional()
14220
14223
  });
14224
+ var DeviceLinkModeSchema = _enum(["auto", "manual"]);
14225
+ /** One resolved linked device — the compact projection consumers need. */
14226
+ var LinkedDeviceSchema = object({
14227
+ deviceId: number(),
14228
+ name: string(),
14229
+ location: string().nullable(),
14230
+ features: array(string())
14231
+ });
14221
14232
  var SavedDeviceRowSchema = object({
14222
14233
  /** Numeric id reserved at allocateDeviceId time. */
14223
14234
  id: number(),
@@ -14439,7 +14450,10 @@ method(object({
14439
14450
  }), _void(), {
14440
14451
  kind: "mutation",
14441
14452
  auth: "admin"
14442
- }), method(object({ addonId: string() }), array(SavedDeviceRowSchema)), method(object({ addonId: string().optional() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
14453
+ }), method(object({ addonId: string() }), array(SavedDeviceRowSchema)), method(object({ addonId: string().optional() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
14454
+ mode: DeviceLinkModeSchema,
14455
+ devices: array(LinkedDeviceSchema)
14456
+ })), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
14443
14457
  deviceId: number(),
14444
14458
  values: record(string(), unknown())
14445
14459
  }), object({ success: literal(true) }), {
@@ -15708,6 +15722,61 @@ var EventKindSchema = _enum([
15708
15722
  "object",
15709
15723
  "audio"
15710
15724
  ]);
15725
+ /**
15726
+ * Spatial filter for `listTracks` — the rect + polygon variants of the shared
15727
+ * MaskShape vocabulary (see `mask-shape.ts`). Coordinates are NORMALIZED 0..1
15728
+ * of the camera frame (top-left origin), matching the drawing-plane editor.
15729
+ */
15730
+ var TrackZoneFilterSchema = discriminatedUnion("kind", [MaskRectShapeSchema, MaskPolygonShapeSchema]);
15731
+ /** Closed icon vocabulary so clients render a known glyph per kind. */
15732
+ var EventKindIconSchema = _enum([
15733
+ "motion",
15734
+ "audio",
15735
+ "person",
15736
+ "vehicle",
15737
+ "animal",
15738
+ "door",
15739
+ "pir",
15740
+ "smoke",
15741
+ "water",
15742
+ "button",
15743
+ "generic"
15744
+ ]);
15745
+ var EventKindCategorySchema = _enum([
15746
+ "motion",
15747
+ "audio",
15748
+ "detection",
15749
+ "sensor",
15750
+ "custom"
15751
+ ]);
15752
+ var EventKindDescriptorSchema = object({
15753
+ /** Stable kind id (e.g. 'motion', 'person', 'contact'). */
15754
+ kind: string(),
15755
+ label: string(),
15756
+ /** Hex color for timeline/legend rendering. */
15757
+ color: string(),
15758
+ icon: EventKindIconSchema,
15759
+ category: EventKindCategorySchema,
15760
+ /** Which cap + device contributes this kind. For built-ins the camera
15761
+ * itself; for sensor kinds the LINKED source device. */
15762
+ source: object({
15763
+ capName: string(),
15764
+ deviceId: number()
15765
+ })
15766
+ });
15767
+ var SensorEventSchema = object({
15768
+ id: string(),
15769
+ /** The CAMERA the event is attributed to (a sensor linked to N cameras
15770
+ * yields N rows, one per camera). */
15771
+ deviceId: number(),
15772
+ /** The linked sensor device whose state changed. */
15773
+ sourceDeviceId: number(),
15774
+ /** Event kind id — matches an `EventKindDescriptor.kind`. */
15775
+ kind: string(),
15776
+ /** Snapshot of the sensor cap's runtime-state slice at the change. */
15777
+ value: record(string(), unknown()).nullable(),
15778
+ timestamp: number()
15779
+ });
15711
15780
  var TrackPositionSchema = object({
15712
15781
  x: number(),
15713
15782
  y: number(),
@@ -15721,6 +15790,30 @@ var TrackSnapshotSchema = object({
15721
15790
  mediaKey: string()
15722
15791
  });
15723
15792
  /**
15793
+ * Normalized 0..1 trajectory envelope (min/max over every position bbox,
15794
+ * divided by the track's detection-frame dims), computed at persist time.
15795
+ * Absent when the frame dims were unknown when the track was persisted
15796
+ * (legacy rows / dims-less sources) and on active (in-RAM) tracks.
15797
+ */
15798
+ var TrackEnvelopeSchema = object({
15799
+ minX: number(),
15800
+ minY: number(),
15801
+ maxX: number(),
15802
+ maxY: number()
15803
+ });
15804
+ /**
15805
+ * Row projection for track list queries. `full` (default) returns the
15806
+ * complete Track including the frame-rate `positions[]` history and the
15807
+ * `snapshots[]` references — megabytes across a page of tracks. `slim`
15808
+ * keeps every scalar the list surfaces actually render (ids, class(es),
15809
+ * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
15810
+ * zonesVisited, bestEventId, envelope) and returns `positions` /
15811
+ * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
15812
+ * `getTrack`. Mirrors the event-store `projection` convention
15813
+ * (`getObjectEvents` et al.).
15814
+ */
15815
+ var TrackProjectionSchema = _enum(["full", "slim"]);
15816
+ /**
15724
15817
  * One audio-classification label heard on the track's camera while the
15725
15818
  * track was alive, aggregated per label. An "episode" is one persisted
15726
15819
  * audio event (the confident-classification path: score ≥ the device's
@@ -15771,7 +15864,11 @@ var TrackSchema = object({
15771
15864
  /** Audio-classification labels heard on the camera during the track's
15772
15865
  * life (score ≥ device `classificationMinScore`), aggregated per label.
15773
15866
  * Absent on legacy rows / tracks with no confident audio. */
15774
- audioLabels: array(TrackAudioLabelSchema).readonly().optional()
15867
+ audioLabels: array(TrackAudioLabelSchema).readonly().optional(),
15868
+ /** Normalized 0..1 trajectory envelope (see {@link TrackEnvelopeSchema}).
15869
+ * Populated from the persisted envelope columns on historical reads;
15870
+ * absent on legacy rows, dims-less tracks and active (in-RAM) tracks. */
15871
+ envelope: TrackEnvelopeSchema.optional()
15775
15872
  });
15776
15873
  var BaseEventFields = {
15777
15874
  id: string(),
@@ -15881,11 +15978,13 @@ var MediaFileSchema = object({
15881
15978
  sizeBytes: number(),
15882
15979
  timestamp: number()
15883
15980
  });
15981
+ var DEFAULT_EVENT_QUERY_LIMIT = 1e3;
15982
+ var MAX_EVENT_QUERY_LIMIT = 5e3;
15884
15983
  var DeviceEventQueryInput = object({
15885
15984
  deviceId: number(),
15886
15985
  since: number().optional(),
15887
15986
  until: number().optional(),
15888
- limit: number().int().min(1).max(5e3).default(1e3),
15987
+ limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT),
15889
15988
  /** `slim` drops heavy JSON fields (regions/bbox/zones) and carries an
15890
15989
  * optional `mediaUrl` (populated by B5). `full` (default) keeps today's
15891
15990
  * exact behaviour. Callers may omit this field — the store defaults to
@@ -15893,6 +15992,27 @@ var DeviceEventQueryInput = object({
15893
15992
  projection: _enum(["full", "slim"]).optional()
15894
15993
  });
15895
15994
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
15995
+ var RecentTracksQueryInput = object({
15996
+ /** Devices to merge. An empty array yields `{ tracks: [], nextCursor: null }`. */
15997
+ deviceIds: array(number()),
15998
+ /** Window lower bound on `lastSeen` (inclusive). */
15999
+ since: number().optional(),
16000
+ /** Window upper bound on `lastSeen` (inclusive). */
16001
+ until: number().optional(),
16002
+ /** Page size. Default 200, max 1000. */
16003
+ limit: number().int().min(1).max(1e3).default(200),
16004
+ /** Opaque continuation cursor from a previous page's `nextCursor`.
16005
+ * Encodes the (lastSeen, trackId) sort position — treat as opaque. */
16006
+ cursor: string().optional(),
16007
+ /** See {@link TrackProjectionSchema}. Default `full`. */
16008
+ projection: TrackProjectionSchema.optional()
16009
+ });
16010
+ var RecentTracksPageSchema = object({
16011
+ /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
16012
+ tracks: array(TrackSchema).readonly(),
16013
+ /** Cursor for the next page, or null when this page is the last. */
16014
+ nextCursor: string().nullable()
16015
+ });
15896
16016
  var KeyEventQueryInput = object({
15897
16017
  deviceId: number(),
15898
16018
  /** Window lower bound (track firstSeen ≥ since). */
@@ -15975,11 +16095,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15975
16095
  deviceId: number(),
15976
16096
  since: number().optional(),
15977
16097
  until: number().optional(),
15978
- limit: number().optional()
15979
- }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
15980
- kind: "mutation",
15981
- auth: "admin"
15982
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
16098
+ limit: number().optional(),
16099
+ /** Spatial filter only tracks whose trajectory intersects the zone
16100
+ * (normalized 0..1 rect or polygon). SQL-prefiltered on the persisted
16101
+ * envelope columns, then precisely tested per position. Tracks with
16102
+ * an unknown envelope (no frame dims at persist time) always match. */
16103
+ zone: TrackZoneFilterSchema.optional(),
16104
+ /** See {@link TrackProjectionSchema}. Default `full` (backward
16105
+ * compatible — omitting the field keeps today's exact behaviour). */
16106
+ projection: TrackProjectionSchema.optional()
16107
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
16108
+ kind: "mutation",
16109
+ auth: "admin"
16110
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({ deviceId: number() }), array(EventKindDescriptorSchema).readonly()), method(object({
16111
+ deviceId: number(),
16112
+ since: number().optional(),
16113
+ until: number().optional(),
16114
+ kinds: array(string()).optional(),
16115
+ limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
16116
+ }), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
15983
16117
  deviceId: number(),
15984
16118
  since: number(),
15985
16119
  until: number(),
@@ -19193,7 +19327,12 @@ var RecordingStorageUsageSchema = object({
19193
19327
  /**
19194
19328
  * Result of locating footage at a wall-clock instant for one device/profile.
19195
19329
  * `segment` carries the covering segment's window; `gap` reports the forward
19196
- * nearest covered edge (`null` past the end of footage / when none exists).
19330
+ * nearest covered edge (`null` past the end of footage / when none exists)
19331
+ * and the backward covered edge `prevEndMs` (exclusive end of the nearest
19332
+ * footage behind the epoch; `null` when none — optional so older providers
19333
+ * that omit it stay valid). `prevEndMs` lets a backward frame-step hop the
19334
+ * small inter-segment cracks (durMs under-covers the span to the next
19335
+ * startMs by ~11-17 ms) instead of no-opping at a segment head.
19197
19336
  */
19198
19337
  var LocateSegmentResultSchema = discriminatedUnion("kind", [object({
19199
19338
  kind: literal("segment"),
@@ -19202,7 +19341,8 @@ var LocateSegmentResultSchema = discriminatedUnion("kind", [object({
19202
19341
  bytes: number()
19203
19342
  }), object({
19204
19343
  kind: literal("gap"),
19205
- nearestEdgeMs: number().nullable()
19344
+ nearestEdgeMs: number().nullable(),
19345
+ prevEndMs: number().nullable().optional()
19206
19346
  })]);
19207
19347
  /** Raw bytes of one finalized footage segment (read off disk on the recording node). */
19208
19348
  var ReadSegmentBytesResultSchema = object({ data: _instanceof(Uint8Array) });
@@ -20771,6 +20911,12 @@ Object.freeze({
20771
20911
  addonId: null,
20772
20912
  access: "view"
20773
20913
  },
20914
+ "deviceManager.getLinkedDevices": {
20915
+ capName: "device-manager",
20916
+ capScope: "system",
20917
+ addonId: null,
20918
+ access: "view"
20919
+ },
20774
20920
  "deviceManager.getRoleDisplayDefaults": {
20775
20921
  capName: "device-manager",
20776
20922
  capScope: "system",
@@ -22325,6 +22471,12 @@ Object.freeze({
22325
22471
  addonId: null,
22326
22472
  access: "view"
22327
22473
  },
22474
+ "pipelineAnalytics.getSensorEvents": {
22475
+ capName: "pipeline-analytics",
22476
+ capScope: "device",
22477
+ addonId: null,
22478
+ access: "view"
22479
+ },
22328
22480
  "pipelineAnalytics.getTrack": {
22329
22481
  capName: "pipeline-analytics",
22330
22482
  capScope: "device",
@@ -22337,6 +22489,18 @@ Object.freeze({
22337
22489
  addonId: null,
22338
22490
  access: "view"
22339
22491
  },
22492
+ "pipelineAnalytics.listEventKinds": {
22493
+ capName: "pipeline-analytics",
22494
+ capScope: "device",
22495
+ addonId: null,
22496
+ access: "view"
22497
+ },
22498
+ "pipelineAnalytics.listRecentTracks": {
22499
+ capName: "pipeline-analytics",
22500
+ capScope: "device",
22501
+ addonId: null,
22502
+ access: "view"
22503
+ },
22340
22504
  "pipelineAnalytics.listTracks": {
22341
22505
  capName: "pipeline-analytics",
22342
22506
  capScope: "device",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-smtp-nodemailer",
3
- "version": "1.1.22",
3
+ "version": "1.1.23",
4
4
  "description": "SMTP email provider addon for CamStack — wraps `nodemailer` and registers a `smtp-provider` cap collection entry. Used by magic-link login + notifier addons.",
5
5
  "keywords": [
6
6
  "camstack",