@camstack/addon-provider-onvif 1.2.38 → 1.2.41

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.
package/dist/addon.js CHANGED
@@ -13672,6 +13672,50 @@ var NodeProcessSchema = object({
13672
13672
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
13673
13673
  uptimeSec: number()
13674
13674
  });
13675
+ /**
13676
+ * One retained container-memory reading.
13677
+ *
13678
+ * `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
13679
+ * a second clock: that is what makes "processes sum to X, container says Y"
13680
+ * subtractable per point rather than an eyeballed comparison of two series
13681
+ * sampled at different instants.
13682
+ *
13683
+ * A reduced window keeps the sample with the LARGEST `currentBytes` in each
13684
+ * bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
13685
+ * never coexisted, and a mean would smear away the peak this exists to find.
13686
+ */
13687
+ var ContainerMemoryPointSchema = object({
13688
+ /** Which hierarchy answered, so a reading is never ambiguous. */
13689
+ source: _enum(["cgroup-v2", "cgroup-v1"]),
13690
+ /** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
13691
+ currentBytes: number(),
13692
+ /** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
13693
+ limitBytes: number().nullable(),
13694
+ /** Anonymous pages: the closest thing to "what the processes allocated". */
13695
+ anonBytes: number().nullable(),
13696
+ /** Page cache. Charged to the cgroup, owned by no process. */
13697
+ fileBytes: number().nullable(),
13698
+ /**
13699
+ * Shared memory — and the field that explained the largest single surprise.
13700
+ * The i915 driver backs GPU buffers with shmem, so an inference pool or a
13701
+ * hardware-decode session holding DRM objects is charged HERE and appears
13702
+ * nowhere in a `ps` scan.
13703
+ */
13704
+ shmemBytes: number().nullable(),
13705
+ /** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
13706
+ slabBytes: number().nullable(),
13707
+ /**
13708
+ * Shrinkable i915 GEM object bytes, from debugfs.
13709
+ *
13710
+ * **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
13711
+ * component of `currentBytes` and must not be subtracted from it; it says
13712
+ * what put the shmem there, where `shmemBytes` only says how much.
13713
+ *
13714
+ * `null` wherever debugfs is not mounted — which is inside every camstack
13715
+ * container today — and on any node with no Intel GPU.
13716
+ */
13717
+ gpuShmemBytes: number().nullable()
13718
+ }).extend({ atMs: number() });
13675
13719
  var DumpHeapSnapshotInputSchema = object({
13676
13720
  /** The addon whose runner should dump a heap snapshot. */
13677
13721
  addonId: string() });
@@ -13735,6 +13779,21 @@ var NodeLoadSeriesSchema = object({
13735
13779
  /** One entry per function seen in the window, heaviest-first. */
13736
13780
  series: array(LoadFunctionSeriesSchema).readonly(),
13737
13781
  /**
13782
+ * The CONTAINER's memory over the same window, oldest-first.
13783
+ *
13784
+ * Sits next to `series` rather than in a method of its own because the whole
13785
+ * question is a subtraction: the per-process rows in `series` sum to one
13786
+ * number and this one is another, and an operator who has to issue two calls
13787
+ * to compare them will compare two different instants. Same reader, same
13788
+ * `sinceMs`, same `bucketMs`, same timestamps.
13789
+ *
13790
+ * **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
13791
+ * Mac, a bare-metal host, a container with the hierarchy hidden — reports no
13792
+ * points at all. A zero here would be indistinguishable from a healthy
13793
+ * container and is precisely the lie this field exists to avoid.
13794
+ */
13795
+ containerMemory: array(ContainerMemoryPointSchema).readonly(),
13796
+ /**
13738
13797
  * Width of one returned bucket, in ms. Equals the sampling cadence when no
13739
13798
  * reduction was needed — so a caller can always say what one point covers
13740
13799
  * without having to know whether it was reduced.
@@ -23717,23 +23776,23 @@ DeviceType.Camera, method(object({ deviceId: number() }), object({
23717
23776
  sdpOffer: string()
23718
23777
  }), {
23719
23778
  kind: "mutation",
23720
- auth: "admin"
23779
+ auth: "protected"
23721
23780
  }), method(object({
23722
23781
  deviceId: number(),
23723
23782
  sessionId: string(),
23724
23783
  sdpAnswer: string()
23725
23784
  }), _void(), {
23726
23785
  kind: "mutation",
23727
- auth: "admin"
23786
+ auth: "protected"
23728
23787
  }), method(object({
23729
23788
  deviceId: number(),
23730
23789
  sessionId: string()
23731
23790
  }), _void(), {
23732
23791
  kind: "mutation",
23733
- auth: "admin"
23792
+ auth: "protected"
23734
23793
  }), method(object({ deviceId: number() }), object({ sessionId: string() }), {
23735
23794
  kind: "mutation",
23736
- auth: "admin"
23795
+ auth: "protected"
23737
23796
  }), method(object({
23738
23797
  deviceId: number(),
23739
23798
  /** Audio bytes for ONE frame, base64-encoded so the payload
@@ -23752,10 +23811,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), object({
23752
23811
  sequenceNumber: number().int()
23753
23812
  }), object({ accepted: boolean() }), {
23754
23813
  kind: "mutation",
23755
- auth: "admin"
23814
+ auth: "protected"
23756
23815
  }), method(object({ deviceId: number() }), _void(), {
23757
23816
  kind: "mutation",
23758
- auth: "admin"
23817
+ auth: "protected"
23759
23818
  }), object({
23760
23819
  deviceId: number(),
23761
23820
  status: IntercomStatusSchema
@@ -25810,10 +25869,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
25810
25869
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
25811
25870
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
25812
25871
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
25813
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
25814
- * annotations that are not exposed here and must not be treated as an event
25815
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
25816
- * (`interfaces/recording-config.ts`).
25872
+ * rows) and are the ONLY event surface the recorder has none. The in-RAM
25873
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
25874
+ * ever read them. Event<->footage joins are by time, padded with the shared
25875
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
25817
25876
  */
25818
25877
  var RecordingStatusSchema = object({
25819
25878
  deviceId: number(),
package/dist/addon.mjs CHANGED
@@ -13673,6 +13673,50 @@ var NodeProcessSchema = object({
13673
13673
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
13674
13674
  uptimeSec: number()
13675
13675
  });
13676
+ /**
13677
+ * One retained container-memory reading.
13678
+ *
13679
+ * `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
13680
+ * a second clock: that is what makes "processes sum to X, container says Y"
13681
+ * subtractable per point rather than an eyeballed comparison of two series
13682
+ * sampled at different instants.
13683
+ *
13684
+ * A reduced window keeps the sample with the LARGEST `currentBytes` in each
13685
+ * bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
13686
+ * never coexisted, and a mean would smear away the peak this exists to find.
13687
+ */
13688
+ var ContainerMemoryPointSchema = object({
13689
+ /** Which hierarchy answered, so a reading is never ambiguous. */
13690
+ source: _enum(["cgroup-v2", "cgroup-v1"]),
13691
+ /** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
13692
+ currentBytes: number(),
13693
+ /** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
13694
+ limitBytes: number().nullable(),
13695
+ /** Anonymous pages: the closest thing to "what the processes allocated". */
13696
+ anonBytes: number().nullable(),
13697
+ /** Page cache. Charged to the cgroup, owned by no process. */
13698
+ fileBytes: number().nullable(),
13699
+ /**
13700
+ * Shared memory — and the field that explained the largest single surprise.
13701
+ * The i915 driver backs GPU buffers with shmem, so an inference pool or a
13702
+ * hardware-decode session holding DRM objects is charged HERE and appears
13703
+ * nowhere in a `ps` scan.
13704
+ */
13705
+ shmemBytes: number().nullable(),
13706
+ /** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
13707
+ slabBytes: number().nullable(),
13708
+ /**
13709
+ * Shrinkable i915 GEM object bytes, from debugfs.
13710
+ *
13711
+ * **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
13712
+ * component of `currentBytes` and must not be subtracted from it; it says
13713
+ * what put the shmem there, where `shmemBytes` only says how much.
13714
+ *
13715
+ * `null` wherever debugfs is not mounted — which is inside every camstack
13716
+ * container today — and on any node with no Intel GPU.
13717
+ */
13718
+ gpuShmemBytes: number().nullable()
13719
+ }).extend({ atMs: number() });
13676
13720
  var DumpHeapSnapshotInputSchema = object({
13677
13721
  /** The addon whose runner should dump a heap snapshot. */
13678
13722
  addonId: string() });
@@ -13736,6 +13780,21 @@ var NodeLoadSeriesSchema = object({
13736
13780
  /** One entry per function seen in the window, heaviest-first. */
13737
13781
  series: array(LoadFunctionSeriesSchema).readonly(),
13738
13782
  /**
13783
+ * The CONTAINER's memory over the same window, oldest-first.
13784
+ *
13785
+ * Sits next to `series` rather than in a method of its own because the whole
13786
+ * question is a subtraction: the per-process rows in `series` sum to one
13787
+ * number and this one is another, and an operator who has to issue two calls
13788
+ * to compare them will compare two different instants. Same reader, same
13789
+ * `sinceMs`, same `bucketMs`, same timestamps.
13790
+ *
13791
+ * **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
13792
+ * Mac, a bare-metal host, a container with the hierarchy hidden — reports no
13793
+ * points at all. A zero here would be indistinguishable from a healthy
13794
+ * container and is precisely the lie this field exists to avoid.
13795
+ */
13796
+ containerMemory: array(ContainerMemoryPointSchema).readonly(),
13797
+ /**
13739
13798
  * Width of one returned bucket, in ms. Equals the sampling cadence when no
13740
13799
  * reduction was needed — so a caller can always say what one point covers
13741
13800
  * without having to know whether it was reduced.
@@ -23718,23 +23777,23 @@ DeviceType.Camera, method(object({ deviceId: number() }), object({
23718
23777
  sdpOffer: string()
23719
23778
  }), {
23720
23779
  kind: "mutation",
23721
- auth: "admin"
23780
+ auth: "protected"
23722
23781
  }), method(object({
23723
23782
  deviceId: number(),
23724
23783
  sessionId: string(),
23725
23784
  sdpAnswer: string()
23726
23785
  }), _void(), {
23727
23786
  kind: "mutation",
23728
- auth: "admin"
23787
+ auth: "protected"
23729
23788
  }), method(object({
23730
23789
  deviceId: number(),
23731
23790
  sessionId: string()
23732
23791
  }), _void(), {
23733
23792
  kind: "mutation",
23734
- auth: "admin"
23793
+ auth: "protected"
23735
23794
  }), method(object({ deviceId: number() }), object({ sessionId: string() }), {
23736
23795
  kind: "mutation",
23737
- auth: "admin"
23796
+ auth: "protected"
23738
23797
  }), method(object({
23739
23798
  deviceId: number(),
23740
23799
  /** Audio bytes for ONE frame, base64-encoded so the payload
@@ -23753,10 +23812,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), object({
23753
23812
  sequenceNumber: number().int()
23754
23813
  }), object({ accepted: boolean() }), {
23755
23814
  kind: "mutation",
23756
- auth: "admin"
23815
+ auth: "protected"
23757
23816
  }), method(object({ deviceId: number() }), _void(), {
23758
23817
  kind: "mutation",
23759
- auth: "admin"
23818
+ auth: "protected"
23760
23819
  }), object({
23761
23820
  deviceId: number(),
23762
23821
  status: IntercomStatusSchema
@@ -25811,10 +25870,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
25811
25870
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
25812
25871
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
25813
25872
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
25814
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
25815
- * annotations that are not exposed here and must not be treated as an event
25816
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
25817
- * (`interfaces/recording-config.ts`).
25873
+ * rows) and are the ONLY event surface the recorder has none. The in-RAM
25874
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
25875
+ * ever read them. Event<->footage joins are by time, padded with the shared
25876
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
25818
25877
  */
25819
25878
  var RecordingStatusSchema = object({
25820
25879
  deviceId: number(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-onvif",
3
- "version": "1.2.38",
3
+ "version": "1.2.41",
4
4
  "description": "ONVIF camera device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",