@camstack/addon-notifiers 1.2.96 → 1.2.98

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
@@ -16330,6 +16330,7 @@ var NcSystemEventKindSchema = _enum([
16330
16330
  "addon-crash-loop",
16331
16331
  "addon-update-available",
16332
16332
  "server-update-available",
16333
+ "wrapper-update-available",
16333
16334
  "alarm-triggered",
16334
16335
  "alarm-armed",
16335
16336
  "alarm-disarmed",
@@ -19735,7 +19736,17 @@ var EventDensityBucketSchema = object({
19735
19736
  bucketStart: number(),
19736
19737
  motion: number().int(),
19737
19738
  object: number().int(),
19738
- audio: number().int()
19739
+ audio: number().int(),
19740
+ /**
19741
+ * Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
19742
+ * as opposed to `audio`, which is their COUNT (D431).
19743
+ *
19744
+ * ABSENT when the bucket holds no audio event. Absence means "nothing was
19745
+ * measured", which is not the same claim as silence, and a lane that cannot
19746
+ * tell them apart paints a quiet hour at full scale — which is exactly what
19747
+ * the count-on-a-level-meter did.
19748
+ */
19749
+ audioDbfs: number().optional()
19739
19750
  });
19740
19751
  /**
19741
19752
  * One camera's row in a `getEventDensityBatch` answer.
@@ -21836,6 +21847,53 @@ var ImageContractSchema = object({
21836
21847
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
21837
21848
  message: string()
21838
21849
  });
21850
+ /**
21851
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
21852
+ * produced it.
21853
+ *
21854
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
21855
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
21856
+ * for a `docker` shell and says the app restarts into the new build for
21857
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
21858
+ * nothing reads is the defect this repo keeps paying for.
21859
+ */
21860
+ var WrapperIdentitySchema = object({
21861
+ kind: _enum([
21862
+ "docker",
21863
+ "electron",
21864
+ "native",
21865
+ "contradictory",
21866
+ "unknown"
21867
+ ]),
21868
+ /** Every probe that ran, in a stable order. Never empty. */
21869
+ evidence: array(object({
21870
+ /** Which probe this row reports. */
21871
+ fact: _enum([
21872
+ "dockerenv-file",
21873
+ "proc-1-cgroup",
21874
+ "platform",
21875
+ "electron-app-version-env"
21876
+ ]),
21877
+ /**
21878
+ * `observed` — this process read it itself. `declared` — the shell told the
21879
+ * process and nothing here can check it. Only the Electron app version is
21880
+ * ever `declared`, and only because a child cannot see its parent.
21881
+ */
21882
+ mode: _enum(["observed", "declared"]),
21883
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
21884
+ holds: boolean(),
21885
+ /** What was actually read, verbatim enough for an operator to argue with. */
21886
+ detail: string()
21887
+ })),
21888
+ /**
21889
+ * The version of the SHELL, when the shell has one it can state: the
21890
+ * Electron app version it declared, or the baked seed closure that
21891
+ * fingerprints a container / app bundle. `null` for `contradictory` and
21892
+ * `unknown` — which version belongs to the shell is precisely what is not
21893
+ * known there.
21894
+ */
21895
+ currentVersion: string().nullable()
21896
+ });
21839
21897
  var ServerRollbackInfoSchema = object({
21840
21898
  /** The version that failed (or was manually rolled back). */
21841
21899
  fromVersion: string(),
@@ -21877,7 +21935,13 @@ var ServerPackageStatusSchema = object({
21877
21935
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
21878
21936
  * version skew: an older provider's payload simply omits it.
21879
21937
  */
21880
- imageContract: ImageContractSchema.optional()
21938
+ imageContract: ImageContractSchema.optional(),
21939
+ /**
21940
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
21941
+ * for version skew: an older provider's payload simply omits it, and an
21942
+ * absent wrapper is unknown — never `native`.
21943
+ */
21944
+ wrapper: WrapperIdentitySchema.optional()
21881
21945
  });
21882
21946
  var ServerUpdateCheckResultSchema = object({
21883
21947
  packageName: string(),
@@ -27902,7 +27966,23 @@ var RecordingRangeSchema = object({
27902
27966
  });
27903
27967
  var RecordingAvailabilitySchema = object({
27904
27968
  deviceId: number(),
27905
- ranges: array(RecordingRangeSchema)
27969
+ ranges: array(RecordingRangeSchema),
27970
+ /**
27971
+ * Every profile this camera has footage in — not only the one `ranges`
27972
+ * describes (D433).
27973
+ *
27974
+ * `ranges` answers for ONE profile by design: the timeline is a single bar,
27975
+ * and enumerating all of them triples the directory reads for a bar that
27976
+ * would look identical. But the answer used to say nothing about that, so a
27977
+ * caller asking "what can I export?" read the single preferred profile as
27978
+ * the only one that exists — on this deployment every camera records `high`
27979
+ * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
27980
+ * UI could not see it.
27981
+ *
27982
+ * Cheap: it is the same shallow directory read the profile CHOICE already
27983
+ * makes. Ask for a specific profile's ranges with the `profile` input.
27984
+ */
27985
+ profilesWithFootage: array(string())
27906
27986
  });
27907
27987
  var RecordingDaysSchema = object({
27908
27988
  deviceId: number(),
@@ -27928,7 +28008,11 @@ var RecordingDaysSchema = object({
27928
28008
  var RecordingAvailabilityForDeviceSchema = object({
27929
28009
  deviceId: number(),
27930
28010
  read: _enum(["read", "unreadable"]),
27931
- ranges: array(RecordingRangeSchema).readonly()
28011
+ ranges: array(RecordingRangeSchema).readonly(),
28012
+ /** Same field, same meaning, as the singular answer (D433). A row that
28013
+ * dropped it would tell a grid caller the archive holds one profile.
28014
+ * Empty on an `'unreadable'` row: nobody looked. */
28015
+ profilesWithFootage: array(string()).readonly()
27932
28016
  });
27933
28017
  /**
27934
28018
  * One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
@@ -28218,7 +28302,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
28218
28302
  method(object({
28219
28303
  deviceId: number(),
28220
28304
  fromMs: number(),
28221
- toMs: number()
28305
+ toMs: number(),
28306
+ /**
28307
+ * Answer for THIS profile instead of the preferred one (D433). Absent
28308
+ * keeps the timeline's behaviour — one bar, one profile, one set of
28309
+ * reads. `profilesWithFootage` on the answer says what may be asked
28310
+ * for.
28311
+ */
28312
+ profile: string().optional()
28222
28313
  }), RecordingAvailabilitySchema, {
28223
28314
  kind: "query",
28224
28315
  auth: "protected"
package/dist/addon.mjs CHANGED
@@ -16303,6 +16303,7 @@ var NcSystemEventKindSchema = _enum([
16303
16303
  "addon-crash-loop",
16304
16304
  "addon-update-available",
16305
16305
  "server-update-available",
16306
+ "wrapper-update-available",
16306
16307
  "alarm-triggered",
16307
16308
  "alarm-armed",
16308
16309
  "alarm-disarmed",
@@ -19708,7 +19709,17 @@ var EventDensityBucketSchema = object({
19708
19709
  bucketStart: number(),
19709
19710
  motion: number().int(),
19710
19711
  object: number().int(),
19711
- audio: number().int()
19712
+ audio: number().int(),
19713
+ /**
19714
+ * Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
19715
+ * as opposed to `audio`, which is their COUNT (D431).
19716
+ *
19717
+ * ABSENT when the bucket holds no audio event. Absence means "nothing was
19718
+ * measured", which is not the same claim as silence, and a lane that cannot
19719
+ * tell them apart paints a quiet hour at full scale — which is exactly what
19720
+ * the count-on-a-level-meter did.
19721
+ */
19722
+ audioDbfs: number().optional()
19712
19723
  });
19713
19724
  /**
19714
19725
  * One camera's row in a `getEventDensityBatch` answer.
@@ -21809,6 +21820,53 @@ var ImageContractSchema = object({
21809
21820
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
21810
21821
  message: string()
21811
21822
  });
21823
+ /**
21824
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
21825
+ * produced it.
21826
+ *
21827
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
21828
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
21829
+ * for a `docker` shell and says the app restarts into the new build for
21830
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
21831
+ * nothing reads is the defect this repo keeps paying for.
21832
+ */
21833
+ var WrapperIdentitySchema = object({
21834
+ kind: _enum([
21835
+ "docker",
21836
+ "electron",
21837
+ "native",
21838
+ "contradictory",
21839
+ "unknown"
21840
+ ]),
21841
+ /** Every probe that ran, in a stable order. Never empty. */
21842
+ evidence: array(object({
21843
+ /** Which probe this row reports. */
21844
+ fact: _enum([
21845
+ "dockerenv-file",
21846
+ "proc-1-cgroup",
21847
+ "platform",
21848
+ "electron-app-version-env"
21849
+ ]),
21850
+ /**
21851
+ * `observed` — this process read it itself. `declared` — the shell told the
21852
+ * process and nothing here can check it. Only the Electron app version is
21853
+ * ever `declared`, and only because a child cannot see its parent.
21854
+ */
21855
+ mode: _enum(["observed", "declared"]),
21856
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
21857
+ holds: boolean(),
21858
+ /** What was actually read, verbatim enough for an operator to argue with. */
21859
+ detail: string()
21860
+ })),
21861
+ /**
21862
+ * The version of the SHELL, when the shell has one it can state: the
21863
+ * Electron app version it declared, or the baked seed closure that
21864
+ * fingerprints a container / app bundle. `null` for `contradictory` and
21865
+ * `unknown` — which version belongs to the shell is precisely what is not
21866
+ * known there.
21867
+ */
21868
+ currentVersion: string().nullable()
21869
+ });
21812
21870
  var ServerRollbackInfoSchema = object({
21813
21871
  /** The version that failed (or was manually rolled back). */
21814
21872
  fromVersion: string(),
@@ -21850,7 +21908,13 @@ var ServerPackageStatusSchema = object({
21850
21908
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
21851
21909
  * version skew: an older provider's payload simply omits it.
21852
21910
  */
21853
- imageContract: ImageContractSchema.optional()
21911
+ imageContract: ImageContractSchema.optional(),
21912
+ /**
21913
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
21914
+ * for version skew: an older provider's payload simply omits it, and an
21915
+ * absent wrapper is unknown — never `native`.
21916
+ */
21917
+ wrapper: WrapperIdentitySchema.optional()
21854
21918
  });
21855
21919
  var ServerUpdateCheckResultSchema = object({
21856
21920
  packageName: string(),
@@ -27875,7 +27939,23 @@ var RecordingRangeSchema = object({
27875
27939
  });
27876
27940
  var RecordingAvailabilitySchema = object({
27877
27941
  deviceId: number(),
27878
- ranges: array(RecordingRangeSchema)
27942
+ ranges: array(RecordingRangeSchema),
27943
+ /**
27944
+ * Every profile this camera has footage in — not only the one `ranges`
27945
+ * describes (D433).
27946
+ *
27947
+ * `ranges` answers for ONE profile by design: the timeline is a single bar,
27948
+ * and enumerating all of them triples the directory reads for a bar that
27949
+ * would look identical. But the answer used to say nothing about that, so a
27950
+ * caller asking "what can I export?" read the single preferred profile as
27951
+ * the only one that exists — on this deployment every camera records `high`
27952
+ * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
27953
+ * UI could not see it.
27954
+ *
27955
+ * Cheap: it is the same shallow directory read the profile CHOICE already
27956
+ * makes. Ask for a specific profile's ranges with the `profile` input.
27957
+ */
27958
+ profilesWithFootage: array(string())
27879
27959
  });
27880
27960
  var RecordingDaysSchema = object({
27881
27961
  deviceId: number(),
@@ -27901,7 +27981,11 @@ var RecordingDaysSchema = object({
27901
27981
  var RecordingAvailabilityForDeviceSchema = object({
27902
27982
  deviceId: number(),
27903
27983
  read: _enum(["read", "unreadable"]),
27904
- ranges: array(RecordingRangeSchema).readonly()
27984
+ ranges: array(RecordingRangeSchema).readonly(),
27985
+ /** Same field, same meaning, as the singular answer (D433). A row that
27986
+ * dropped it would tell a grid caller the archive holds one profile.
27987
+ * Empty on an `'unreadable'` row: nobody looked. */
27988
+ profilesWithFootage: array(string()).readonly()
27905
27989
  });
27906
27990
  /**
27907
27991
  * One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
@@ -28191,7 +28275,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
28191
28275
  method(object({
28192
28276
  deviceId: number(),
28193
28277
  fromMs: number(),
28194
- toMs: number()
28278
+ toMs: number(),
28279
+ /**
28280
+ * Answer for THIS profile instead of the preferred one (D433). Absent
28281
+ * keeps the timeline's behaviour — one bar, one profile, one set of
28282
+ * reads. `profilesWithFootage` on the answer says what may be asked
28283
+ * for.
28284
+ */
28285
+ profile: string().optional()
28195
28286
  }), RecordingAvailabilitySchema, {
28196
28287
  kind: "query",
28197
28288
  auth: "protected"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-notifiers",
3
- "version": "1.2.96",
3
+ "version": "1.2.98",
4
4
  "description": "System notifiers addon for CamStack — a `notification-output` collection provider hosting per-kind notifier adapters (ntfy, pushover, gotify, telegram, discord, webhook, zentik).",
5
5
  "keywords": [
6
6
  "camstack",