@camstack/addon-mqtt-broker 1.2.60 → 1.2.61

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.
@@ -12625,7 +12625,26 @@ var DiscoveryCandidateSchema = object({
12625
12625
  * identity ahead of adoption. Rendering metadata (unit, precision)
12626
12626
  * flows live through the cap STATUS SLICE after adoption.
12627
12627
  */
12628
- sourceInfo: SourceInfoSchema.optional()
12628
+ sourceInfo: SourceInfoSchema.optional(),
12629
+ /**
12630
+ * Set when this candidate is a device the provider ALREADY owns.
12631
+ *
12632
+ * A scan cannot generally produce the identity a device was onboarded under
12633
+ * (Reolink keys on `mac-<mac>`, learned at adopt time), so a stableId
12634
+ * comparison never matches and an owned device looks addable. Re-adopting one
12635
+ * overwrites its config with scan-derived values — that is how a Home Hub's
12636
+ * Baichuan port was overwritten with its ONVIF port, taking the hub and its
12637
+ * three child cameras offline for four hours.
12638
+ *
12639
+ * A provider that can recognise its own devices says so here. Absent means
12640
+ * "not recognised", which is not the same as "known to be new" — a provider
12641
+ * that cannot tell simply never sets it.
12642
+ */
12643
+ alreadyOnboarded: boolean().optional(),
12644
+ /** Numeric id of the device this candidate was matched to. Set with `alreadyOnboarded`. */
12645
+ onboardedDeviceId: number().optional(),
12646
+ /** Operator-facing name of the matched device, so the UI can say WHICH one it is. */
12647
+ onboardedName: string().optional()
12629
12648
  });
12630
12649
  /**
12631
12650
  * Flat device summary returned by `createDevice` / `adoptDiscoveredDevice`.
@@ -12620,7 +12620,26 @@ var DiscoveryCandidateSchema = object({
12620
12620
  * identity ahead of adoption. Rendering metadata (unit, precision)
12621
12621
  * flows live through the cap STATUS SLICE after adoption.
12622
12622
  */
12623
- sourceInfo: SourceInfoSchema.optional()
12623
+ sourceInfo: SourceInfoSchema.optional(),
12624
+ /**
12625
+ * Set when this candidate is a device the provider ALREADY owns.
12626
+ *
12627
+ * A scan cannot generally produce the identity a device was onboarded under
12628
+ * (Reolink keys on `mac-<mac>`, learned at adopt time), so a stableId
12629
+ * comparison never matches and an owned device looks addable. Re-adopting one
12630
+ * overwrites its config with scan-derived values — that is how a Home Hub's
12631
+ * Baichuan port was overwritten with its ONVIF port, taking the hub and its
12632
+ * three child cameras offline for four hours.
12633
+ *
12634
+ * A provider that can recognise its own devices says so here. Absent means
12635
+ * "not recognised", which is not the same as "known to be new" — a provider
12636
+ * that cannot tell simply never sets it.
12637
+ */
12638
+ alreadyOnboarded: boolean().optional(),
12639
+ /** Numeric id of the device this candidate was matched to. Set with `alreadyOnboarded`. */
12640
+ onboardedDeviceId: number().optional(),
12641
+ /** Operator-facing name of the matched device, so the UI can say WHICH one it is. */
12642
+ onboardedName: string().optional()
12624
12643
  });
12625
12644
  /**
12626
12645
  * Flat device summary returned by `createDevice` / `adoptDiscoveredDevice`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-mqtt-broker",
3
- "version": "1.2.60",
3
+ "version": "1.2.61",
4
4
  "description": "MQTT broker registry addon for CamStack — manages external broker entries + an optional embedded aedes broker. Consumers spin up their own `mqtt.js` clients via the `mqtt-broker` cap.",
5
5
  "keywords": [
6
6
  "camstack",