@camstack/addon-provider-unifi 0.2.82 → 0.2.83

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
@@ -29211,8 +29211,27 @@ var PrivacyMaskRegionSchema = object({
29211
29211
  /** Current on-camera privacy state — mask master enable + zones + microphone. */
29212
29212
  var PrivacyMaskStatusSchema = object({
29213
29213
  enabled: boolean(),
29214
- /** Active zones (normalized 0..1). Length ≤ maxRegions. */
29215
- regions: array(PrivacyMaskRegionSchema),
29214
+ /**
29215
+ * Active zones (normalized 0..1). Length ≤ maxRegions.
29216
+ *
29217
+ * `null` means "no answer" — the provider has never reached this camera
29218
+ * (a cold `runtimeState` slice, a battery camera asleep) or the read
29219
+ * failed. A consumer must render it as UNKNOWN and never as "this camera
29220
+ * has no zones": those two look identical to an operator right up to the
29221
+ * moment one of them is acted on, and acting on them differs completely.
29222
+ * The switch group turned an unanswered read into *"nothing is set up for
29223
+ * it to act on"* — an instruction to go and draw a zone that already
29224
+ * exists — and this editor seeded an EMPTY canvas from it, one Save away
29225
+ * from deleting the mask it could not read.
29226
+ *
29227
+ * Empty-and-answered is `[]` and stays a real answer: this camera genuinely
29228
+ * has no zones. The distinction is the same one {@link
29229
+ * PrivacyMaskStatusSchema.shape.audioEnabled} already draws for the
29230
+ * microphone, on the very same payload — both planes come from ONE refresh,
29231
+ * so it was never coherent for one of them to be able to say "unknown"
29232
+ * while the other could not.
29233
+ */
29234
+ regions: array(PrivacyMaskRegionSchema).nullable(),
29216
29235
  /**
29217
29236
  * Is the camera capturing sound right now? Read from the camera, never from
29218
29237
  * a server-side mirror.
package/dist/addon.mjs CHANGED
@@ -29210,8 +29210,27 @@ var PrivacyMaskRegionSchema = object({
29210
29210
  /** Current on-camera privacy state — mask master enable + zones + microphone. */
29211
29211
  var PrivacyMaskStatusSchema = object({
29212
29212
  enabled: boolean(),
29213
- /** Active zones (normalized 0..1). Length ≤ maxRegions. */
29214
- regions: array(PrivacyMaskRegionSchema),
29213
+ /**
29214
+ * Active zones (normalized 0..1). Length ≤ maxRegions.
29215
+ *
29216
+ * `null` means "no answer" — the provider has never reached this camera
29217
+ * (a cold `runtimeState` slice, a battery camera asleep) or the read
29218
+ * failed. A consumer must render it as UNKNOWN and never as "this camera
29219
+ * has no zones": those two look identical to an operator right up to the
29220
+ * moment one of them is acted on, and acting on them differs completely.
29221
+ * The switch group turned an unanswered read into *"nothing is set up for
29222
+ * it to act on"* — an instruction to go and draw a zone that already
29223
+ * exists — and this editor seeded an EMPTY canvas from it, one Save away
29224
+ * from deleting the mask it could not read.
29225
+ *
29226
+ * Empty-and-answered is `[]` and stays a real answer: this camera genuinely
29227
+ * has no zones. The distinction is the same one {@link
29228
+ * PrivacyMaskStatusSchema.shape.audioEnabled} already draws for the
29229
+ * microphone, on the very same payload — both planes come from ONE refresh,
29230
+ * so it was never coherent for one of them to be able to say "unknown"
29231
+ * while the other could not.
29232
+ */
29233
+ regions: array(PrivacyMaskRegionSchema).nullable(),
29215
29234
  /**
29216
29235
  * Is the camera capturing sound right now? Read from the camera, never from
29217
29236
  * a server-side mirror.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-unifi",
3
- "version": "0.2.82",
3
+ "version": "0.2.83",
4
4
  "description": "UniFi Network controller device-provider addon for CamStack — local-controller infra switches/APs (as containers) + network-client presence. NO cameras/Protect.",
5
5
  "keywords": [
6
6
  "camstack",