@camstack/addon-provider-onvif 1.2.81 → 1.2.82

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
@@ -27281,8 +27281,27 @@ var PrivacyMaskRegionSchema = object({
27281
27281
  });
27282
27282
  object({
27283
27283
  enabled: boolean(),
27284
- /** Active zones (normalized 0..1). Length ≤ maxRegions. */
27285
- regions: array(PrivacyMaskRegionSchema),
27284
+ /**
27285
+ * Active zones (normalized 0..1). Length ≤ maxRegions.
27286
+ *
27287
+ * `null` means "no answer" — the provider has never reached this camera
27288
+ * (a cold `runtimeState` slice, a battery camera asleep) or the read
27289
+ * failed. A consumer must render it as UNKNOWN and never as "this camera
27290
+ * has no zones": those two look identical to an operator right up to the
27291
+ * moment one of them is acted on, and acting on them differs completely.
27292
+ * The switch group turned an unanswered read into *"nothing is set up for
27293
+ * it to act on"* — an instruction to go and draw a zone that already
27294
+ * exists — and this editor seeded an EMPTY canvas from it, one Save away
27295
+ * from deleting the mask it could not read.
27296
+ *
27297
+ * Empty-and-answered is `[]` and stays a real answer: this camera genuinely
27298
+ * has no zones. The distinction is the same one {@link
27299
+ * PrivacyMaskStatusSchema.shape.audioEnabled} already draws for the
27300
+ * microphone, on the very same payload — both planes come from ONE refresh,
27301
+ * so it was never coherent for one of them to be able to say "unknown"
27302
+ * while the other could not.
27303
+ */
27304
+ regions: array(PrivacyMaskRegionSchema).nullable(),
27286
27305
  /**
27287
27306
  * Is the camera capturing sound right now? Read from the camera, never from
27288
27307
  * a server-side mirror.
package/dist/addon.mjs CHANGED
@@ -27282,8 +27282,27 @@ var PrivacyMaskRegionSchema = object({
27282
27282
  });
27283
27283
  object({
27284
27284
  enabled: boolean(),
27285
- /** Active zones (normalized 0..1). Length ≤ maxRegions. */
27286
- regions: array(PrivacyMaskRegionSchema),
27285
+ /**
27286
+ * Active zones (normalized 0..1). Length ≤ maxRegions.
27287
+ *
27288
+ * `null` means "no answer" — the provider has never reached this camera
27289
+ * (a cold `runtimeState` slice, a battery camera asleep) or the read
27290
+ * failed. A consumer must render it as UNKNOWN and never as "this camera
27291
+ * has no zones": those two look identical to an operator right up to the
27292
+ * moment one of them is acted on, and acting on them differs completely.
27293
+ * The switch group turned an unanswered read into *"nothing is set up for
27294
+ * it to act on"* — an instruction to go and draw a zone that already
27295
+ * exists — and this editor seeded an EMPTY canvas from it, one Save away
27296
+ * from deleting the mask it could not read.
27297
+ *
27298
+ * Empty-and-answered is `[]` and stays a real answer: this camera genuinely
27299
+ * has no zones. The distinction is the same one {@link
27300
+ * PrivacyMaskStatusSchema.shape.audioEnabled} already draws for the
27301
+ * microphone, on the very same payload — both planes come from ONE refresh,
27302
+ * so it was never coherent for one of them to be able to say "unknown"
27303
+ * while the other could not.
27304
+ */
27305
+ regions: array(PrivacyMaskRegionSchema).nullable(),
27287
27306
  /**
27288
27307
  * Is the camera capturing sound right now? Read from the camera, never from
27289
27308
  * a server-side mirror.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-onvif",
3
- "version": "1.2.81",
3
+ "version": "1.2.82",
4
4
  "description": "ONVIF camera device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",