@camstack/addon-matter-broker 0.2.91 → 0.2.93

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
@@ -16550,6 +16550,7 @@ var NcSystemEventKindSchema = _enum([
16550
16550
  "addon-crash-loop",
16551
16551
  "addon-update-available",
16552
16552
  "server-update-available",
16553
+ "wrapper-update-available",
16553
16554
  "alarm-triggered",
16554
16555
  "alarm-armed",
16555
16556
  "alarm-disarmed",
@@ -19995,7 +19996,17 @@ var EventDensityBucketSchema = object({
19995
19996
  bucketStart: number(),
19996
19997
  motion: number().int(),
19997
19998
  object: number().int(),
19998
- audio: number().int()
19999
+ audio: number().int(),
20000
+ /**
20001
+ * Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
20002
+ * as opposed to `audio`, which is their COUNT (D431).
20003
+ *
20004
+ * ABSENT when the bucket holds no audio event. Absence means "nothing was
20005
+ * measured", which is not the same claim as silence, and a lane that cannot
20006
+ * tell them apart paints a quiet hour at full scale — which is exactly what
20007
+ * the count-on-a-level-meter did.
20008
+ */
20009
+ audioDbfs: number().optional()
19999
20010
  });
20000
20011
  /**
20001
20012
  * One camera's row in a `getEventDensityBatch` answer.
@@ -22096,6 +22107,53 @@ var ImageContractSchema = object({
22096
22107
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
22097
22108
  message: string$2()
22098
22109
  });
22110
+ /**
22111
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
22112
+ * produced it.
22113
+ *
22114
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
22115
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
22116
+ * for a `docker` shell and says the app restarts into the new build for
22117
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
22118
+ * nothing reads is the defect this repo keeps paying for.
22119
+ */
22120
+ var WrapperIdentitySchema = object({
22121
+ kind: _enum([
22122
+ "docker",
22123
+ "electron",
22124
+ "native",
22125
+ "contradictory",
22126
+ "unknown"
22127
+ ]),
22128
+ /** Every probe that ran, in a stable order. Never empty. */
22129
+ evidence: array(object({
22130
+ /** Which probe this row reports. */
22131
+ fact: _enum([
22132
+ "dockerenv-file",
22133
+ "proc-1-cgroup",
22134
+ "platform",
22135
+ "electron-app-version-env"
22136
+ ]),
22137
+ /**
22138
+ * `observed` — this process read it itself. `declared` — the shell told the
22139
+ * process and nothing here can check it. Only the Electron app version is
22140
+ * ever `declared`, and only because a child cannot see its parent.
22141
+ */
22142
+ mode: _enum(["observed", "declared"]),
22143
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
22144
+ holds: boolean(),
22145
+ /** What was actually read, verbatim enough for an operator to argue with. */
22146
+ detail: string$2()
22147
+ })),
22148
+ /**
22149
+ * The version of the SHELL, when the shell has one it can state: the
22150
+ * Electron app version it declared, or the baked seed closure that
22151
+ * fingerprints a container / app bundle. `null` for `contradictory` and
22152
+ * `unknown` — which version belongs to the shell is precisely what is not
22153
+ * known there.
22154
+ */
22155
+ currentVersion: string$2().nullable()
22156
+ });
22099
22157
  var ServerRollbackInfoSchema = object({
22100
22158
  /** The version that failed (or was manually rolled back). */
22101
22159
  fromVersion: string$2(),
@@ -22137,7 +22195,13 @@ var ServerPackageStatusSchema = object({
22137
22195
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
22138
22196
  * version skew: an older provider's payload simply omits it.
22139
22197
  */
22140
- imageContract: ImageContractSchema.optional()
22198
+ imageContract: ImageContractSchema.optional(),
22199
+ /**
22200
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
22201
+ * for version skew: an older provider's payload simply omits it, and an
22202
+ * absent wrapper is unknown — never `native`.
22203
+ */
22204
+ wrapper: WrapperIdentitySchema.optional()
22141
22205
  });
22142
22206
  var ServerUpdateCheckResultSchema = object({
22143
22207
  packageName: string$2(),
@@ -30027,7 +30091,23 @@ var RecordingRangeSchema = object({
30027
30091
  });
30028
30092
  var RecordingAvailabilitySchema = object({
30029
30093
  deviceId: number(),
30030
- ranges: array(RecordingRangeSchema)
30094
+ ranges: array(RecordingRangeSchema),
30095
+ /**
30096
+ * Every profile this camera has footage in — not only the one `ranges`
30097
+ * describes (D433).
30098
+ *
30099
+ * `ranges` answers for ONE profile by design: the timeline is a single bar,
30100
+ * and enumerating all of them triples the directory reads for a bar that
30101
+ * would look identical. But the answer used to say nothing about that, so a
30102
+ * caller asking "what can I export?" read the single preferred profile as
30103
+ * the only one that exists — on this deployment every camera records `high`
30104
+ * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
30105
+ * UI could not see it.
30106
+ *
30107
+ * Cheap: it is the same shallow directory read the profile CHOICE already
30108
+ * makes. Ask for a specific profile's ranges with the `profile` input.
30109
+ */
30110
+ profilesWithFootage: array(string$2())
30031
30111
  });
30032
30112
  var RecordingDaysSchema = object({
30033
30113
  deviceId: number(),
@@ -30053,7 +30133,11 @@ var RecordingDaysSchema = object({
30053
30133
  var RecordingAvailabilityForDeviceSchema = object({
30054
30134
  deviceId: number(),
30055
30135
  read: _enum(["read", "unreadable"]),
30056
- ranges: array(RecordingRangeSchema).readonly()
30136
+ ranges: array(RecordingRangeSchema).readonly(),
30137
+ /** Same field, same meaning, as the singular answer (D433). A row that
30138
+ * dropped it would tell a grid caller the archive holds one profile.
30139
+ * Empty on an `'unreadable'` row: nobody looked. */
30140
+ profilesWithFootage: array(string$2()).readonly()
30057
30141
  });
30058
30142
  /**
30059
30143
  * One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
@@ -30343,7 +30427,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
30343
30427
  method(object({
30344
30428
  deviceId: number(),
30345
30429
  fromMs: number(),
30346
- toMs: number()
30430
+ toMs: number(),
30431
+ /**
30432
+ * Answer for THIS profile instead of the preferred one (D433). Absent
30433
+ * keeps the timeline's behaviour — one bar, one profile, one set of
30434
+ * reads. `profilesWithFootage` on the answer says what may be asked
30435
+ * for.
30436
+ */
30437
+ profile: string$2().optional()
30347
30438
  }), RecordingAvailabilitySchema, {
30348
30439
  kind: "query",
30349
30440
  auth: "protected"
package/dist/addon.mjs CHANGED
@@ -16548,6 +16548,7 @@ var NcSystemEventKindSchema = _enum([
16548
16548
  "addon-crash-loop",
16549
16549
  "addon-update-available",
16550
16550
  "server-update-available",
16551
+ "wrapper-update-available",
16551
16552
  "alarm-triggered",
16552
16553
  "alarm-armed",
16553
16554
  "alarm-disarmed",
@@ -19993,7 +19994,17 @@ var EventDensityBucketSchema = object({
19993
19994
  bucketStart: number(),
19994
19995
  motion: number().int(),
19995
19996
  object: number().int(),
19996
- audio: number().int()
19997
+ audio: number().int(),
19998
+ /**
19999
+ * Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
20000
+ * as opposed to `audio`, which is their COUNT (D431).
20001
+ *
20002
+ * ABSENT when the bucket holds no audio event. Absence means "nothing was
20003
+ * measured", which is not the same claim as silence, and a lane that cannot
20004
+ * tell them apart paints a quiet hour at full scale — which is exactly what
20005
+ * the count-on-a-level-meter did.
20006
+ */
20007
+ audioDbfs: number().optional()
19997
20008
  });
19998
20009
  /**
19999
20010
  * One camera's row in a `getEventDensityBatch` answer.
@@ -22094,6 +22105,53 @@ var ImageContractSchema = object({
22094
22105
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
22095
22106
  message: string$2()
22096
22107
  });
22108
+ /**
22109
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
22110
+ * produced it.
22111
+ *
22112
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
22113
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
22114
+ * for a `docker` shell and says the app restarts into the new build for
22115
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
22116
+ * nothing reads is the defect this repo keeps paying for.
22117
+ */
22118
+ var WrapperIdentitySchema = object({
22119
+ kind: _enum([
22120
+ "docker",
22121
+ "electron",
22122
+ "native",
22123
+ "contradictory",
22124
+ "unknown"
22125
+ ]),
22126
+ /** Every probe that ran, in a stable order. Never empty. */
22127
+ evidence: array(object({
22128
+ /** Which probe this row reports. */
22129
+ fact: _enum([
22130
+ "dockerenv-file",
22131
+ "proc-1-cgroup",
22132
+ "platform",
22133
+ "electron-app-version-env"
22134
+ ]),
22135
+ /**
22136
+ * `observed` — this process read it itself. `declared` — the shell told the
22137
+ * process and nothing here can check it. Only the Electron app version is
22138
+ * ever `declared`, and only because a child cannot see its parent.
22139
+ */
22140
+ mode: _enum(["observed", "declared"]),
22141
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
22142
+ holds: boolean(),
22143
+ /** What was actually read, verbatim enough for an operator to argue with. */
22144
+ detail: string$2()
22145
+ })),
22146
+ /**
22147
+ * The version of the SHELL, when the shell has one it can state: the
22148
+ * Electron app version it declared, or the baked seed closure that
22149
+ * fingerprints a container / app bundle. `null` for `contradictory` and
22150
+ * `unknown` — which version belongs to the shell is precisely what is not
22151
+ * known there.
22152
+ */
22153
+ currentVersion: string$2().nullable()
22154
+ });
22097
22155
  var ServerRollbackInfoSchema = object({
22098
22156
  /** The version that failed (or was manually rolled back). */
22099
22157
  fromVersion: string$2(),
@@ -22135,7 +22193,13 @@ var ServerPackageStatusSchema = object({
22135
22193
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
22136
22194
  * version skew: an older provider's payload simply omits it.
22137
22195
  */
22138
- imageContract: ImageContractSchema.optional()
22196
+ imageContract: ImageContractSchema.optional(),
22197
+ /**
22198
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
22199
+ * for version skew: an older provider's payload simply omits it, and an
22200
+ * absent wrapper is unknown — never `native`.
22201
+ */
22202
+ wrapper: WrapperIdentitySchema.optional()
22139
22203
  });
22140
22204
  var ServerUpdateCheckResultSchema = object({
22141
22205
  packageName: string$2(),
@@ -30025,7 +30089,23 @@ var RecordingRangeSchema = object({
30025
30089
  });
30026
30090
  var RecordingAvailabilitySchema = object({
30027
30091
  deviceId: number(),
30028
- ranges: array(RecordingRangeSchema)
30092
+ ranges: array(RecordingRangeSchema),
30093
+ /**
30094
+ * Every profile this camera has footage in — not only the one `ranges`
30095
+ * describes (D433).
30096
+ *
30097
+ * `ranges` answers for ONE profile by design: the timeline is a single bar,
30098
+ * and enumerating all of them triples the directory reads for a bar that
30099
+ * would look identical. But the answer used to say nothing about that, so a
30100
+ * caller asking "what can I export?" read the single preferred profile as
30101
+ * the only one that exists — on this deployment every camera records `high`
30102
+ * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
30103
+ * UI could not see it.
30104
+ *
30105
+ * Cheap: it is the same shallow directory read the profile CHOICE already
30106
+ * makes. Ask for a specific profile's ranges with the `profile` input.
30107
+ */
30108
+ profilesWithFootage: array(string$2())
30029
30109
  });
30030
30110
  var RecordingDaysSchema = object({
30031
30111
  deviceId: number(),
@@ -30051,7 +30131,11 @@ var RecordingDaysSchema = object({
30051
30131
  var RecordingAvailabilityForDeviceSchema = object({
30052
30132
  deviceId: number(),
30053
30133
  read: _enum(["read", "unreadable"]),
30054
- ranges: array(RecordingRangeSchema).readonly()
30134
+ ranges: array(RecordingRangeSchema).readonly(),
30135
+ /** Same field, same meaning, as the singular answer (D433). A row that
30136
+ * dropped it would tell a grid caller the archive holds one profile.
30137
+ * Empty on an `'unreadable'` row: nobody looked. */
30138
+ profilesWithFootage: array(string$2()).readonly()
30055
30139
  });
30056
30140
  /**
30057
30141
  * One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
@@ -30341,7 +30425,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
30341
30425
  method(object({
30342
30426
  deviceId: number(),
30343
30427
  fromMs: number(),
30344
- toMs: number()
30428
+ toMs: number(),
30429
+ /**
30430
+ * Answer for THIS profile instead of the preferred one (D433). Absent
30431
+ * keeps the timeline's behaviour — one bar, one profile, one set of
30432
+ * reads. `profilesWithFootage` on the answer says what may be asked
30433
+ * for.
30434
+ */
30435
+ profile: string$2().optional()
30345
30436
  }), RecordingAvailabilitySchema, {
30346
30437
  kind: "query",
30347
30438
  auth: "protected"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-matter-broker",
3
- "version": "0.2.91",
3
+ "version": "0.2.93",
4
4
  "description": "Matter broker addon for CamStack — owns a Matter fabric (commissioning + the long-lived controller) via the matter.js controller and brokers commissioned Matter nodes into CamStack",
5
5
  "keywords": [
6
6
  "camstack",