@camstack/addon-provider-velux 0.2.92 → 0.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/addon.js CHANGED
@@ -16470,6 +16470,7 @@ var NcSystemEventKindSchema = _enum([
16470
16470
  "addon-crash-loop",
16471
16471
  "addon-update-available",
16472
16472
  "server-update-available",
16473
+ "wrapper-update-available",
16473
16474
  "alarm-triggered",
16474
16475
  "alarm-armed",
16475
16476
  "alarm-disarmed",
@@ -19915,7 +19916,17 @@ var EventDensityBucketSchema = object({
19915
19916
  bucketStart: number(),
19916
19917
  motion: number().int(),
19917
19918
  object: number().int(),
19918
- audio: number().int()
19919
+ audio: number().int(),
19920
+ /**
19921
+ * Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
19922
+ * as opposed to `audio`, which is their COUNT (D431).
19923
+ *
19924
+ * ABSENT when the bucket holds no audio event. Absence means "nothing was
19925
+ * measured", which is not the same claim as silence, and a lane that cannot
19926
+ * tell them apart paints a quiet hour at full scale — which is exactly what
19927
+ * the count-on-a-level-meter did.
19928
+ */
19929
+ audioDbfs: number().optional()
19919
19930
  });
19920
19931
  /**
19921
19932
  * One camera's row in a `getEventDensityBatch` answer.
@@ -22016,6 +22027,53 @@ var ImageContractSchema = object({
22016
22027
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
22017
22028
  message: string()
22018
22029
  });
22030
+ /**
22031
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
22032
+ * produced it.
22033
+ *
22034
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
22035
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
22036
+ * for a `docker` shell and says the app restarts into the new build for
22037
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
22038
+ * nothing reads is the defect this repo keeps paying for.
22039
+ */
22040
+ var WrapperIdentitySchema = object({
22041
+ kind: _enum([
22042
+ "docker",
22043
+ "electron",
22044
+ "native",
22045
+ "contradictory",
22046
+ "unknown"
22047
+ ]),
22048
+ /** Every probe that ran, in a stable order. Never empty. */
22049
+ evidence: array(object({
22050
+ /** Which probe this row reports. */
22051
+ fact: _enum([
22052
+ "dockerenv-file",
22053
+ "proc-1-cgroup",
22054
+ "platform",
22055
+ "electron-app-version-env"
22056
+ ]),
22057
+ /**
22058
+ * `observed` — this process read it itself. `declared` — the shell told the
22059
+ * process and nothing here can check it. Only the Electron app version is
22060
+ * ever `declared`, and only because a child cannot see its parent.
22061
+ */
22062
+ mode: _enum(["observed", "declared"]),
22063
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
22064
+ holds: boolean(),
22065
+ /** What was actually read, verbatim enough for an operator to argue with. */
22066
+ detail: string()
22067
+ })),
22068
+ /**
22069
+ * The version of the SHELL, when the shell has one it can state: the
22070
+ * Electron app version it declared, or the baked seed closure that
22071
+ * fingerprints a container / app bundle. `null` for `contradictory` and
22072
+ * `unknown` — which version belongs to the shell is precisely what is not
22073
+ * known there.
22074
+ */
22075
+ currentVersion: string().nullable()
22076
+ });
22019
22077
  var ServerRollbackInfoSchema = object({
22020
22078
  /** The version that failed (or was manually rolled back). */
22021
22079
  fromVersion: string(),
@@ -22057,7 +22115,13 @@ var ServerPackageStatusSchema = object({
22057
22115
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
22058
22116
  * version skew: an older provider's payload simply omits it.
22059
22117
  */
22060
- imageContract: ImageContractSchema.optional()
22118
+ imageContract: ImageContractSchema.optional(),
22119
+ /**
22120
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
22121
+ * for version skew: an older provider's payload simply omits it, and an
22122
+ * absent wrapper is unknown — never `native`.
22123
+ */
22124
+ wrapper: WrapperIdentitySchema.optional()
22061
22125
  });
22062
22126
  var ServerUpdateCheckResultSchema = object({
22063
22127
  packageName: string(),
@@ -29930,7 +29994,23 @@ var RecordingRangeSchema = object({
29930
29994
  });
29931
29995
  var RecordingAvailabilitySchema = object({
29932
29996
  deviceId: number(),
29933
- ranges: array(RecordingRangeSchema)
29997
+ ranges: array(RecordingRangeSchema),
29998
+ /**
29999
+ * Every profile this camera has footage in — not only the one `ranges`
30000
+ * describes (D433).
30001
+ *
30002
+ * `ranges` answers for ONE profile by design: the timeline is a single bar,
30003
+ * and enumerating all of them triples the directory reads for a bar that
30004
+ * would look identical. But the answer used to say nothing about that, so a
30005
+ * caller asking "what can I export?" read the single preferred profile as
30006
+ * the only one that exists — on this deployment every camera records `high`
30007
+ * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
30008
+ * UI could not see it.
30009
+ *
30010
+ * Cheap: it is the same shallow directory read the profile CHOICE already
30011
+ * makes. Ask for a specific profile's ranges with the `profile` input.
30012
+ */
30013
+ profilesWithFootage: array(string())
29934
30014
  });
29935
30015
  var RecordingDaysSchema = object({
29936
30016
  deviceId: number(),
@@ -29956,7 +30036,11 @@ var RecordingDaysSchema = object({
29956
30036
  var RecordingAvailabilityForDeviceSchema = object({
29957
30037
  deviceId: number(),
29958
30038
  read: _enum(["read", "unreadable"]),
29959
- ranges: array(RecordingRangeSchema).readonly()
30039
+ ranges: array(RecordingRangeSchema).readonly(),
30040
+ /** Same field, same meaning, as the singular answer (D433). A row that
30041
+ * dropped it would tell a grid caller the archive holds one profile.
30042
+ * Empty on an `'unreadable'` row: nobody looked. */
30043
+ profilesWithFootage: array(string()).readonly()
29960
30044
  });
29961
30045
  /**
29962
30046
  * One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
@@ -30246,7 +30330,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
30246
30330
  method(object({
30247
30331
  deviceId: number(),
30248
30332
  fromMs: number(),
30249
- toMs: number()
30333
+ toMs: number(),
30334
+ /**
30335
+ * Answer for THIS profile instead of the preferred one (D433). Absent
30336
+ * keeps the timeline's behaviour — one bar, one profile, one set of
30337
+ * reads. `profilesWithFootage` on the answer says what may be asked
30338
+ * for.
30339
+ */
30340
+ profile: string().optional()
30250
30341
  }), RecordingAvailabilitySchema, {
30251
30342
  kind: "query",
30252
30343
  auth: "protected"
package/dist/addon.mjs CHANGED
@@ -16469,6 +16469,7 @@ var NcSystemEventKindSchema = _enum([
16469
16469
  "addon-crash-loop",
16470
16470
  "addon-update-available",
16471
16471
  "server-update-available",
16472
+ "wrapper-update-available",
16472
16473
  "alarm-triggered",
16473
16474
  "alarm-armed",
16474
16475
  "alarm-disarmed",
@@ -19914,7 +19915,17 @@ var EventDensityBucketSchema = object({
19914
19915
  bucketStart: number(),
19915
19916
  motion: number().int(),
19916
19917
  object: number().int(),
19917
- audio: number().int()
19918
+ audio: number().int(),
19919
+ /**
19920
+ * Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
19921
+ * as opposed to `audio`, which is their COUNT (D431).
19922
+ *
19923
+ * ABSENT when the bucket holds no audio event. Absence means "nothing was
19924
+ * measured", which is not the same claim as silence, and a lane that cannot
19925
+ * tell them apart paints a quiet hour at full scale — which is exactly what
19926
+ * the count-on-a-level-meter did.
19927
+ */
19928
+ audioDbfs: number().optional()
19918
19929
  });
19919
19930
  /**
19920
19931
  * One camera's row in a `getEventDensityBatch` answer.
@@ -22015,6 +22026,53 @@ var ImageContractSchema = object({
22015
22026
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
22016
22027
  message: string()
22017
22028
  });
22029
+ /**
22030
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
22031
+ * produced it.
22032
+ *
22033
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
22034
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
22035
+ * for a `docker` shell and says the app restarts into the new build for
22036
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
22037
+ * nothing reads is the defect this repo keeps paying for.
22038
+ */
22039
+ var WrapperIdentitySchema = object({
22040
+ kind: _enum([
22041
+ "docker",
22042
+ "electron",
22043
+ "native",
22044
+ "contradictory",
22045
+ "unknown"
22046
+ ]),
22047
+ /** Every probe that ran, in a stable order. Never empty. */
22048
+ evidence: array(object({
22049
+ /** Which probe this row reports. */
22050
+ fact: _enum([
22051
+ "dockerenv-file",
22052
+ "proc-1-cgroup",
22053
+ "platform",
22054
+ "electron-app-version-env"
22055
+ ]),
22056
+ /**
22057
+ * `observed` — this process read it itself. `declared` — the shell told the
22058
+ * process and nothing here can check it. Only the Electron app version is
22059
+ * ever `declared`, and only because a child cannot see its parent.
22060
+ */
22061
+ mode: _enum(["observed", "declared"]),
22062
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
22063
+ holds: boolean(),
22064
+ /** What was actually read, verbatim enough for an operator to argue with. */
22065
+ detail: string()
22066
+ })),
22067
+ /**
22068
+ * The version of the SHELL, when the shell has one it can state: the
22069
+ * Electron app version it declared, or the baked seed closure that
22070
+ * fingerprints a container / app bundle. `null` for `contradictory` and
22071
+ * `unknown` — which version belongs to the shell is precisely what is not
22072
+ * known there.
22073
+ */
22074
+ currentVersion: string().nullable()
22075
+ });
22018
22076
  var ServerRollbackInfoSchema = object({
22019
22077
  /** The version that failed (or was manually rolled back). */
22020
22078
  fromVersion: string(),
@@ -22056,7 +22114,13 @@ var ServerPackageStatusSchema = object({
22056
22114
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
22057
22115
  * version skew: an older provider's payload simply omits it.
22058
22116
  */
22059
- imageContract: ImageContractSchema.optional()
22117
+ imageContract: ImageContractSchema.optional(),
22118
+ /**
22119
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
22120
+ * for version skew: an older provider's payload simply omits it, and an
22121
+ * absent wrapper is unknown — never `native`.
22122
+ */
22123
+ wrapper: WrapperIdentitySchema.optional()
22060
22124
  });
22061
22125
  var ServerUpdateCheckResultSchema = object({
22062
22126
  packageName: string(),
@@ -29929,7 +29993,23 @@ var RecordingRangeSchema = object({
29929
29993
  });
29930
29994
  var RecordingAvailabilitySchema = object({
29931
29995
  deviceId: number(),
29932
- ranges: array(RecordingRangeSchema)
29996
+ ranges: array(RecordingRangeSchema),
29997
+ /**
29998
+ * Every profile this camera has footage in — not only the one `ranges`
29999
+ * describes (D433).
30000
+ *
30001
+ * `ranges` answers for ONE profile by design: the timeline is a single bar,
30002
+ * and enumerating all of them triples the directory reads for a bar that
30003
+ * would look identical. But the answer used to say nothing about that, so a
30004
+ * caller asking "what can I export?" read the single preferred profile as
30005
+ * the only one that exists — on this deployment every camera records `high`
30006
+ * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
30007
+ * UI could not see it.
30008
+ *
30009
+ * Cheap: it is the same shallow directory read the profile CHOICE already
30010
+ * makes. Ask for a specific profile's ranges with the `profile` input.
30011
+ */
30012
+ profilesWithFootage: array(string())
29933
30013
  });
29934
30014
  var RecordingDaysSchema = object({
29935
30015
  deviceId: number(),
@@ -29955,7 +30035,11 @@ var RecordingDaysSchema = object({
29955
30035
  var RecordingAvailabilityForDeviceSchema = object({
29956
30036
  deviceId: number(),
29957
30037
  read: _enum(["read", "unreadable"]),
29958
- ranges: array(RecordingRangeSchema).readonly()
30038
+ ranges: array(RecordingRangeSchema).readonly(),
30039
+ /** Same field, same meaning, as the singular answer (D433). A row that
30040
+ * dropped it would tell a grid caller the archive holds one profile.
30041
+ * Empty on an `'unreadable'` row: nobody looked. */
30042
+ profilesWithFootage: array(string()).readonly()
29959
30043
  });
29960
30044
  /**
29961
30045
  * One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
@@ -30245,7 +30329,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
30245
30329
  method(object({
30246
30330
  deviceId: number(),
30247
30331
  fromMs: number(),
30248
- toMs: number()
30332
+ toMs: number(),
30333
+ /**
30334
+ * Answer for THIS profile instead of the preferred one (D433). Absent
30335
+ * keeps the timeline's behaviour — one bar, one profile, one set of
30336
+ * reads. `profilesWithFootage` on the answer says what may be asked
30337
+ * for.
30338
+ */
30339
+ profile: string().optional()
30249
30340
  }), RecordingAvailabilitySchema, {
30250
30341
  kind: "query",
30251
30342
  auth: "protected"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-velux",
3
- "version": "0.2.92",
3
+ "version": "0.2.94",
4
4
  "description": "Velux KLF-200 device-provider addon for CamStack — local-gateway window + shutter covers (positional, no tilt)",
5
5
  "keywords": [
6
6
  "camstack",