@camstack/addon-decoder-nodeav 1.2.92 → 1.2.94

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/index.js CHANGED
@@ -16272,6 +16272,7 @@ var NcSystemEventKindSchema = _enum([
16272
16272
  "addon-crash-loop",
16273
16273
  "addon-update-available",
16274
16274
  "server-update-available",
16275
+ "wrapper-update-available",
16275
16276
  "alarm-triggered",
16276
16277
  "alarm-armed",
16277
16278
  "alarm-disarmed",
@@ -19677,7 +19678,17 @@ var EventDensityBucketSchema = object({
19677
19678
  bucketStart: number(),
19678
19679
  motion: number().int(),
19679
19680
  object: number().int(),
19680
- audio: number().int()
19681
+ audio: number().int(),
19682
+ /**
19683
+ * Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
19684
+ * as opposed to `audio`, which is their COUNT (D431).
19685
+ *
19686
+ * ABSENT when the bucket holds no audio event. Absence means "nothing was
19687
+ * measured", which is not the same claim as silence, and a lane that cannot
19688
+ * tell them apart paints a quiet hour at full scale — which is exactly what
19689
+ * the count-on-a-level-meter did.
19690
+ */
19691
+ audioDbfs: number().optional()
19681
19692
  });
19682
19693
  /**
19683
19694
  * One camera's row in a `getEventDensityBatch` answer.
@@ -21778,6 +21789,53 @@ var ImageContractSchema = object({
21778
21789
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
21779
21790
  message: string()
21780
21791
  });
21792
+ /**
21793
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
21794
+ * produced it.
21795
+ *
21796
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
21797
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
21798
+ * for a `docker` shell and says the app restarts into the new build for
21799
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
21800
+ * nothing reads is the defect this repo keeps paying for.
21801
+ */
21802
+ var WrapperIdentitySchema = object({
21803
+ kind: _enum([
21804
+ "docker",
21805
+ "electron",
21806
+ "native",
21807
+ "contradictory",
21808
+ "unknown"
21809
+ ]),
21810
+ /** Every probe that ran, in a stable order. Never empty. */
21811
+ evidence: array(object({
21812
+ /** Which probe this row reports. */
21813
+ fact: _enum([
21814
+ "dockerenv-file",
21815
+ "proc-1-cgroup",
21816
+ "platform",
21817
+ "electron-app-version-env"
21818
+ ]),
21819
+ /**
21820
+ * `observed` — this process read it itself. `declared` — the shell told the
21821
+ * process and nothing here can check it. Only the Electron app version is
21822
+ * ever `declared`, and only because a child cannot see its parent.
21823
+ */
21824
+ mode: _enum(["observed", "declared"]),
21825
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
21826
+ holds: boolean(),
21827
+ /** What was actually read, verbatim enough for an operator to argue with. */
21828
+ detail: string()
21829
+ })),
21830
+ /**
21831
+ * The version of the SHELL, when the shell has one it can state: the
21832
+ * Electron app version it declared, or the baked seed closure that
21833
+ * fingerprints a container / app bundle. `null` for `contradictory` and
21834
+ * `unknown` — which version belongs to the shell is precisely what is not
21835
+ * known there.
21836
+ */
21837
+ currentVersion: string().nullable()
21838
+ });
21781
21839
  var ServerRollbackInfoSchema = object({
21782
21840
  /** The version that failed (or was manually rolled back). */
21783
21841
  fromVersion: string(),
@@ -21819,7 +21877,13 @@ var ServerPackageStatusSchema = object({
21819
21877
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
21820
21878
  * version skew: an older provider's payload simply omits it.
21821
21879
  */
21822
- imageContract: ImageContractSchema.optional()
21880
+ imageContract: ImageContractSchema.optional(),
21881
+ /**
21882
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
21883
+ * for version skew: an older provider's payload simply omits it, and an
21884
+ * absent wrapper is unknown — never `native`.
21885
+ */
21886
+ wrapper: WrapperIdentitySchema.optional()
21823
21887
  });
21824
21888
  var ServerUpdateCheckResultSchema = object({
21825
21889
  packageName: string(),
@@ -27844,7 +27908,23 @@ var RecordingRangeSchema = object({
27844
27908
  });
27845
27909
  var RecordingAvailabilitySchema = object({
27846
27910
  deviceId: number(),
27847
- ranges: array(RecordingRangeSchema)
27911
+ ranges: array(RecordingRangeSchema),
27912
+ /**
27913
+ * Every profile this camera has footage in — not only the one `ranges`
27914
+ * describes (D433).
27915
+ *
27916
+ * `ranges` answers for ONE profile by design: the timeline is a single bar,
27917
+ * and enumerating all of them triples the directory reads for a bar that
27918
+ * would look identical. But the answer used to say nothing about that, so a
27919
+ * caller asking "what can I export?" read the single preferred profile as
27920
+ * the only one that exists — on this deployment every camera records `high`
27921
+ * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
27922
+ * UI could not see it.
27923
+ *
27924
+ * Cheap: it is the same shallow directory read the profile CHOICE already
27925
+ * makes. Ask for a specific profile's ranges with the `profile` input.
27926
+ */
27927
+ profilesWithFootage: array(string())
27848
27928
  });
27849
27929
  var RecordingDaysSchema = object({
27850
27930
  deviceId: number(),
@@ -27870,7 +27950,11 @@ var RecordingDaysSchema = object({
27870
27950
  var RecordingAvailabilityForDeviceSchema = object({
27871
27951
  deviceId: number(),
27872
27952
  read: _enum(["read", "unreadable"]),
27873
- ranges: array(RecordingRangeSchema).readonly()
27953
+ ranges: array(RecordingRangeSchema).readonly(),
27954
+ /** Same field, same meaning, as the singular answer (D433). A row that
27955
+ * dropped it would tell a grid caller the archive holds one profile.
27956
+ * Empty on an `'unreadable'` row: nobody looked. */
27957
+ profilesWithFootage: array(string()).readonly()
27874
27958
  });
27875
27959
  /**
27876
27960
  * One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
@@ -28160,7 +28244,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
28160
28244
  method(object({
28161
28245
  deviceId: number(),
28162
28246
  fromMs: number(),
28163
- toMs: number()
28247
+ toMs: number(),
28248
+ /**
28249
+ * Answer for THIS profile instead of the preferred one (D433). Absent
28250
+ * keeps the timeline's behaviour — one bar, one profile, one set of
28251
+ * reads. `profilesWithFootage` on the answer says what may be asked
28252
+ * for.
28253
+ */
28254
+ profile: string().optional()
28164
28255
  }), RecordingAvailabilitySchema, {
28165
28256
  kind: "query",
28166
28257
  auth: "protected"
package/dist/index.mjs CHANGED
@@ -16268,6 +16268,7 @@ var NcSystemEventKindSchema = _enum([
16268
16268
  "addon-crash-loop",
16269
16269
  "addon-update-available",
16270
16270
  "server-update-available",
16271
+ "wrapper-update-available",
16271
16272
  "alarm-triggered",
16272
16273
  "alarm-armed",
16273
16274
  "alarm-disarmed",
@@ -19673,7 +19674,17 @@ var EventDensityBucketSchema = object({
19673
19674
  bucketStart: number(),
19674
19675
  motion: number().int(),
19675
19676
  object: number().int(),
19676
- audio: number().int()
19677
+ audio: number().int(),
19678
+ /**
19679
+ * Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
19680
+ * as opposed to `audio`, which is their COUNT (D431).
19681
+ *
19682
+ * ABSENT when the bucket holds no audio event. Absence means "nothing was
19683
+ * measured", which is not the same claim as silence, and a lane that cannot
19684
+ * tell them apart paints a quiet hour at full scale — which is exactly what
19685
+ * the count-on-a-level-meter did.
19686
+ */
19687
+ audioDbfs: number().optional()
19677
19688
  });
19678
19689
  /**
19679
19690
  * One camera's row in a `getEventDensityBatch` answer.
@@ -21774,6 +21785,53 @@ var ImageContractSchema = object({
21774
21785
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
21775
21786
  message: string()
21776
21787
  });
21788
+ /**
21789
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
21790
+ * produced it.
21791
+ *
21792
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
21793
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
21794
+ * for a `docker` shell and says the app restarts into the new build for
21795
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
21796
+ * nothing reads is the defect this repo keeps paying for.
21797
+ */
21798
+ var WrapperIdentitySchema = object({
21799
+ kind: _enum([
21800
+ "docker",
21801
+ "electron",
21802
+ "native",
21803
+ "contradictory",
21804
+ "unknown"
21805
+ ]),
21806
+ /** Every probe that ran, in a stable order. Never empty. */
21807
+ evidence: array(object({
21808
+ /** Which probe this row reports. */
21809
+ fact: _enum([
21810
+ "dockerenv-file",
21811
+ "proc-1-cgroup",
21812
+ "platform",
21813
+ "electron-app-version-env"
21814
+ ]),
21815
+ /**
21816
+ * `observed` — this process read it itself. `declared` — the shell told the
21817
+ * process and nothing here can check it. Only the Electron app version is
21818
+ * ever `declared`, and only because a child cannot see its parent.
21819
+ */
21820
+ mode: _enum(["observed", "declared"]),
21821
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
21822
+ holds: boolean(),
21823
+ /** What was actually read, verbatim enough for an operator to argue with. */
21824
+ detail: string()
21825
+ })),
21826
+ /**
21827
+ * The version of the SHELL, when the shell has one it can state: the
21828
+ * Electron app version it declared, or the baked seed closure that
21829
+ * fingerprints a container / app bundle. `null` for `contradictory` and
21830
+ * `unknown` — which version belongs to the shell is precisely what is not
21831
+ * known there.
21832
+ */
21833
+ currentVersion: string().nullable()
21834
+ });
21777
21835
  var ServerRollbackInfoSchema = object({
21778
21836
  /** The version that failed (or was manually rolled back). */
21779
21837
  fromVersion: string(),
@@ -21815,7 +21873,13 @@ var ServerPackageStatusSchema = object({
21815
21873
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
21816
21874
  * version skew: an older provider's payload simply omits it.
21817
21875
  */
21818
- imageContract: ImageContractSchema.optional()
21876
+ imageContract: ImageContractSchema.optional(),
21877
+ /**
21878
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
21879
+ * for version skew: an older provider's payload simply omits it, and an
21880
+ * absent wrapper is unknown — never `native`.
21881
+ */
21882
+ wrapper: WrapperIdentitySchema.optional()
21819
21883
  });
21820
21884
  var ServerUpdateCheckResultSchema = object({
21821
21885
  packageName: string(),
@@ -27840,7 +27904,23 @@ var RecordingRangeSchema = object({
27840
27904
  });
27841
27905
  var RecordingAvailabilitySchema = object({
27842
27906
  deviceId: number(),
27843
- ranges: array(RecordingRangeSchema)
27907
+ ranges: array(RecordingRangeSchema),
27908
+ /**
27909
+ * Every profile this camera has footage in — not only the one `ranges`
27910
+ * describes (D433).
27911
+ *
27912
+ * `ranges` answers for ONE profile by design: the timeline is a single bar,
27913
+ * and enumerating all of them triples the directory reads for a bar that
27914
+ * would look identical. But the answer used to say nothing about that, so a
27915
+ * caller asking "what can I export?" read the single preferred profile as
27916
+ * the only one that exists — on this deployment every camera records `high`
27917
+ * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
27918
+ * UI could not see it.
27919
+ *
27920
+ * Cheap: it is the same shallow directory read the profile CHOICE already
27921
+ * makes. Ask for a specific profile's ranges with the `profile` input.
27922
+ */
27923
+ profilesWithFootage: array(string())
27844
27924
  });
27845
27925
  var RecordingDaysSchema = object({
27846
27926
  deviceId: number(),
@@ -27866,7 +27946,11 @@ var RecordingDaysSchema = object({
27866
27946
  var RecordingAvailabilityForDeviceSchema = object({
27867
27947
  deviceId: number(),
27868
27948
  read: _enum(["read", "unreadable"]),
27869
- ranges: array(RecordingRangeSchema).readonly()
27949
+ ranges: array(RecordingRangeSchema).readonly(),
27950
+ /** Same field, same meaning, as the singular answer (D433). A row that
27951
+ * dropped it would tell a grid caller the archive holds one profile.
27952
+ * Empty on an `'unreadable'` row: nobody looked. */
27953
+ profilesWithFootage: array(string()).readonly()
27870
27954
  });
27871
27955
  /**
27872
27956
  * One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
@@ -28156,7 +28240,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
28156
28240
  method(object({
28157
28241
  deviceId: number(),
28158
28242
  fromMs: number(),
28159
- toMs: number()
28243
+ toMs: number(),
28244
+ /**
28245
+ * Answer for THIS profile instead of the preferred one (D433). Absent
28246
+ * keeps the timeline's behaviour — one bar, one profile, one set of
28247
+ * reads. `profilesWithFootage` on the answer says what may be asked
28248
+ * for.
28249
+ */
28250
+ profile: string().optional()
28160
28251
  }), RecordingAvailabilitySchema, {
28161
28252
  kind: "query",
28162
28253
  auth: "protected"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-decoder-nodeav",
3
- "version": "1.2.92",
3
+ "version": "1.2.94",
4
4
  "description": "Standalone in-process node-av decoder addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",