@camstack/addon-provider-homematic 1.2.93 → 1.2.95

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
@@ -16545,6 +16545,7 @@ var NcSystemEventKindSchema = _enum([
16545
16545
  "addon-crash-loop",
16546
16546
  "addon-update-available",
16547
16547
  "server-update-available",
16548
+ "wrapper-update-available",
16548
16549
  "alarm-triggered",
16549
16550
  "alarm-armed",
16550
16551
  "alarm-disarmed",
@@ -19990,7 +19991,17 @@ var EventDensityBucketSchema = object({
19990
19991
  bucketStart: number(),
19991
19992
  motion: number().int(),
19992
19993
  object: number().int(),
19993
- audio: number().int()
19994
+ audio: number().int(),
19995
+ /**
19996
+ * Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
19997
+ * as opposed to `audio`, which is their COUNT (D431).
19998
+ *
19999
+ * ABSENT when the bucket holds no audio event. Absence means "nothing was
20000
+ * measured", which is not the same claim as silence, and a lane that cannot
20001
+ * tell them apart paints a quiet hour at full scale — which is exactly what
20002
+ * the count-on-a-level-meter did.
20003
+ */
20004
+ audioDbfs: number().optional()
19994
20005
  });
19995
20006
  /**
19996
20007
  * One camera's row in a `getEventDensityBatch` answer.
@@ -22091,6 +22102,53 @@ var ImageContractSchema = object({
22091
22102
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
22092
22103
  message: string()
22093
22104
  });
22105
+ /**
22106
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
22107
+ * produced it.
22108
+ *
22109
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
22110
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
22111
+ * for a `docker` shell and says the app restarts into the new build for
22112
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
22113
+ * nothing reads is the defect this repo keeps paying for.
22114
+ */
22115
+ var WrapperIdentitySchema = object({
22116
+ kind: _enum([
22117
+ "docker",
22118
+ "electron",
22119
+ "native",
22120
+ "contradictory",
22121
+ "unknown"
22122
+ ]),
22123
+ /** Every probe that ran, in a stable order. Never empty. */
22124
+ evidence: array(object({
22125
+ /** Which probe this row reports. */
22126
+ fact: _enum([
22127
+ "dockerenv-file",
22128
+ "proc-1-cgroup",
22129
+ "platform",
22130
+ "electron-app-version-env"
22131
+ ]),
22132
+ /**
22133
+ * `observed` — this process read it itself. `declared` — the shell told the
22134
+ * process and nothing here can check it. Only the Electron app version is
22135
+ * ever `declared`, and only because a child cannot see its parent.
22136
+ */
22137
+ mode: _enum(["observed", "declared"]),
22138
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
22139
+ holds: boolean(),
22140
+ /** What was actually read, verbatim enough for an operator to argue with. */
22141
+ detail: string()
22142
+ })),
22143
+ /**
22144
+ * The version of the SHELL, when the shell has one it can state: the
22145
+ * Electron app version it declared, or the baked seed closure that
22146
+ * fingerprints a container / app bundle. `null` for `contradictory` and
22147
+ * `unknown` — which version belongs to the shell is precisely what is not
22148
+ * known there.
22149
+ */
22150
+ currentVersion: string().nullable()
22151
+ });
22094
22152
  var ServerRollbackInfoSchema = object({
22095
22153
  /** The version that failed (or was manually rolled back). */
22096
22154
  fromVersion: string(),
@@ -22132,7 +22190,13 @@ var ServerPackageStatusSchema = object({
22132
22190
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
22133
22191
  * version skew: an older provider's payload simply omits it.
22134
22192
  */
22135
- imageContract: ImageContractSchema.optional()
22193
+ imageContract: ImageContractSchema.optional(),
22194
+ /**
22195
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
22196
+ * for version skew: an older provider's payload simply omits it, and an
22197
+ * absent wrapper is unknown — never `native`.
22198
+ */
22199
+ wrapper: WrapperIdentitySchema.optional()
22136
22200
  });
22137
22201
  var ServerUpdateCheckResultSchema = object({
22138
22202
  packageName: string(),
@@ -30005,7 +30069,23 @@ var RecordingRangeSchema = object({
30005
30069
  });
30006
30070
  var RecordingAvailabilitySchema = object({
30007
30071
  deviceId: number(),
30008
- ranges: array(RecordingRangeSchema)
30072
+ ranges: array(RecordingRangeSchema),
30073
+ /**
30074
+ * Every profile this camera has footage in — not only the one `ranges`
30075
+ * describes (D433).
30076
+ *
30077
+ * `ranges` answers for ONE profile by design: the timeline is a single bar,
30078
+ * and enumerating all of them triples the directory reads for a bar that
30079
+ * would look identical. But the answer used to say nothing about that, so a
30080
+ * caller asking "what can I export?" read the single preferred profile as
30081
+ * the only one that exists — on this deployment every camera records `high`
30082
+ * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
30083
+ * UI could not see it.
30084
+ *
30085
+ * Cheap: it is the same shallow directory read the profile CHOICE already
30086
+ * makes. Ask for a specific profile's ranges with the `profile` input.
30087
+ */
30088
+ profilesWithFootage: array(string())
30009
30089
  });
30010
30090
  var RecordingDaysSchema = object({
30011
30091
  deviceId: number(),
@@ -30031,7 +30111,11 @@ var RecordingDaysSchema = object({
30031
30111
  var RecordingAvailabilityForDeviceSchema = object({
30032
30112
  deviceId: number(),
30033
30113
  read: _enum(["read", "unreadable"]),
30034
- ranges: array(RecordingRangeSchema).readonly()
30114
+ ranges: array(RecordingRangeSchema).readonly(),
30115
+ /** Same field, same meaning, as the singular answer (D433). A row that
30116
+ * dropped it would tell a grid caller the archive holds one profile.
30117
+ * Empty on an `'unreadable'` row: nobody looked. */
30118
+ profilesWithFootage: array(string()).readonly()
30035
30119
  });
30036
30120
  /**
30037
30121
  * One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
@@ -30321,7 +30405,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
30321
30405
  method(object({
30322
30406
  deviceId: number(),
30323
30407
  fromMs: number(),
30324
- toMs: number()
30408
+ toMs: number(),
30409
+ /**
30410
+ * Answer for THIS profile instead of the preferred one (D433). Absent
30411
+ * keeps the timeline's behaviour — one bar, one profile, one set of
30412
+ * reads. `profilesWithFootage` on the answer says what may be asked
30413
+ * for.
30414
+ */
30415
+ profile: string().optional()
30325
30416
  }), RecordingAvailabilitySchema, {
30326
30417
  kind: "query",
30327
30418
  auth: "protected"
package/dist/addon.mjs CHANGED
@@ -16546,6 +16546,7 @@ var NcSystemEventKindSchema = _enum([
16546
16546
  "addon-crash-loop",
16547
16547
  "addon-update-available",
16548
16548
  "server-update-available",
16549
+ "wrapper-update-available",
16549
16550
  "alarm-triggered",
16550
16551
  "alarm-armed",
16551
16552
  "alarm-disarmed",
@@ -19991,7 +19992,17 @@ var EventDensityBucketSchema = object({
19991
19992
  bucketStart: number(),
19992
19993
  motion: number().int(),
19993
19994
  object: number().int(),
19994
- audio: number().int()
19995
+ audio: number().int(),
19996
+ /**
19997
+ * Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
19998
+ * as opposed to `audio`, which is their COUNT (D431).
19999
+ *
20000
+ * ABSENT when the bucket holds no audio event. Absence means "nothing was
20001
+ * measured", which is not the same claim as silence, and a lane that cannot
20002
+ * tell them apart paints a quiet hour at full scale — which is exactly what
20003
+ * the count-on-a-level-meter did.
20004
+ */
20005
+ audioDbfs: number().optional()
19995
20006
  });
19996
20007
  /**
19997
20008
  * One camera's row in a `getEventDensityBatch` answer.
@@ -22092,6 +22103,53 @@ var ImageContractSchema = object({
22092
22103
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
22093
22104
  message: string()
22094
22105
  });
22106
+ /**
22107
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
22108
+ * produced it.
22109
+ *
22110
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
22111
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
22112
+ * for a `docker` shell and says the app restarts into the new build for
22113
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
22114
+ * nothing reads is the defect this repo keeps paying for.
22115
+ */
22116
+ var WrapperIdentitySchema = object({
22117
+ kind: _enum([
22118
+ "docker",
22119
+ "electron",
22120
+ "native",
22121
+ "contradictory",
22122
+ "unknown"
22123
+ ]),
22124
+ /** Every probe that ran, in a stable order. Never empty. */
22125
+ evidence: array(object({
22126
+ /** Which probe this row reports. */
22127
+ fact: _enum([
22128
+ "dockerenv-file",
22129
+ "proc-1-cgroup",
22130
+ "platform",
22131
+ "electron-app-version-env"
22132
+ ]),
22133
+ /**
22134
+ * `observed` — this process read it itself. `declared` — the shell told the
22135
+ * process and nothing here can check it. Only the Electron app version is
22136
+ * ever `declared`, and only because a child cannot see its parent.
22137
+ */
22138
+ mode: _enum(["observed", "declared"]),
22139
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
22140
+ holds: boolean(),
22141
+ /** What was actually read, verbatim enough for an operator to argue with. */
22142
+ detail: string()
22143
+ })),
22144
+ /**
22145
+ * The version of the SHELL, when the shell has one it can state: the
22146
+ * Electron app version it declared, or the baked seed closure that
22147
+ * fingerprints a container / app bundle. `null` for `contradictory` and
22148
+ * `unknown` — which version belongs to the shell is precisely what is not
22149
+ * known there.
22150
+ */
22151
+ currentVersion: string().nullable()
22152
+ });
22095
22153
  var ServerRollbackInfoSchema = object({
22096
22154
  /** The version that failed (or was manually rolled back). */
22097
22155
  fromVersion: string(),
@@ -22133,7 +22191,13 @@ var ServerPackageStatusSchema = object({
22133
22191
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
22134
22192
  * version skew: an older provider's payload simply omits it.
22135
22193
  */
22136
- imageContract: ImageContractSchema.optional()
22194
+ imageContract: ImageContractSchema.optional(),
22195
+ /**
22196
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
22197
+ * for version skew: an older provider's payload simply omits it, and an
22198
+ * absent wrapper is unknown — never `native`.
22199
+ */
22200
+ wrapper: WrapperIdentitySchema.optional()
22137
22201
  });
22138
22202
  var ServerUpdateCheckResultSchema = object({
22139
22203
  packageName: string(),
@@ -30006,7 +30070,23 @@ var RecordingRangeSchema = object({
30006
30070
  });
30007
30071
  var RecordingAvailabilitySchema = object({
30008
30072
  deviceId: number(),
30009
- ranges: array(RecordingRangeSchema)
30073
+ ranges: array(RecordingRangeSchema),
30074
+ /**
30075
+ * Every profile this camera has footage in — not only the one `ranges`
30076
+ * describes (D433).
30077
+ *
30078
+ * `ranges` answers for ONE profile by design: the timeline is a single bar,
30079
+ * and enumerating all of them triples the directory reads for a bar that
30080
+ * would look identical. But the answer used to say nothing about that, so a
30081
+ * caller asking "what can I export?" read the single preferred profile as
30082
+ * the only one that exists — on this deployment every camera records `high`
30083
+ * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
30084
+ * UI could not see it.
30085
+ *
30086
+ * Cheap: it is the same shallow directory read the profile CHOICE already
30087
+ * makes. Ask for a specific profile's ranges with the `profile` input.
30088
+ */
30089
+ profilesWithFootage: array(string())
30010
30090
  });
30011
30091
  var RecordingDaysSchema = object({
30012
30092
  deviceId: number(),
@@ -30032,7 +30112,11 @@ var RecordingDaysSchema = object({
30032
30112
  var RecordingAvailabilityForDeviceSchema = object({
30033
30113
  deviceId: number(),
30034
30114
  read: _enum(["read", "unreadable"]),
30035
- ranges: array(RecordingRangeSchema).readonly()
30115
+ ranges: array(RecordingRangeSchema).readonly(),
30116
+ /** Same field, same meaning, as the singular answer (D433). A row that
30117
+ * dropped it would tell a grid caller the archive holds one profile.
30118
+ * Empty on an `'unreadable'` row: nobody looked. */
30119
+ profilesWithFootage: array(string()).readonly()
30036
30120
  });
30037
30121
  /**
30038
30122
  * One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
@@ -30322,7 +30406,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
30322
30406
  method(object({
30323
30407
  deviceId: number(),
30324
30408
  fromMs: number(),
30325
- toMs: number()
30409
+ toMs: number(),
30410
+ /**
30411
+ * Answer for THIS profile instead of the preferred one (D433). Absent
30412
+ * keeps the timeline's behaviour — one bar, one profile, one set of
30413
+ * reads. `profilesWithFootage` on the answer says what may be asked
30414
+ * for.
30415
+ */
30416
+ profile: string().optional()
30326
30417
  }), RecordingAvailabilitySchema, {
30327
30418
  kind: "query",
30328
30419
  auth: "protected"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-homematic",
3
- "version": "1.2.93",
3
+ "version": "1.2.95",
4
4
  "description": "Homematic / HomematicIP (CCU3 / RaspberryMatic) device-provider addon for CamStack — wraps the nodehomematic library",
5
5
  "keywords": [
6
6
  "camstack",