@camstack/addon-export-google 0.1.24 → 0.1.25

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.
@@ -12813,7 +12813,26 @@ var DiscoveryCandidateSchema = object({
12813
12813
  * identity ahead of adoption. Rendering metadata (unit, precision)
12814
12814
  * flows live through the cap STATUS SLICE after adoption.
12815
12815
  */
12816
- sourceInfo: SourceInfoSchema.optional()
12816
+ sourceInfo: SourceInfoSchema.optional(),
12817
+ /**
12818
+ * Set when this candidate is a device the provider ALREADY owns.
12819
+ *
12820
+ * A scan cannot generally produce the identity a device was onboarded under
12821
+ * (Reolink keys on `mac-<mac>`, learned at adopt time), so a stableId
12822
+ * comparison never matches and an owned device looks addable. Re-adopting one
12823
+ * overwrites its config with scan-derived values — that is how a Home Hub's
12824
+ * Baichuan port was overwritten with its ONVIF port, taking the hub and its
12825
+ * three child cameras offline for four hours.
12826
+ *
12827
+ * A provider that can recognise its own devices says so here. Absent means
12828
+ * "not recognised", which is not the same as "known to be new" — a provider
12829
+ * that cannot tell simply never sets it.
12830
+ */
12831
+ alreadyOnboarded: boolean().optional(),
12832
+ /** Numeric id of the device this candidate was matched to. Set with `alreadyOnboarded`. */
12833
+ onboardedDeviceId: number().optional(),
12834
+ /** Operator-facing name of the matched device, so the UI can say WHICH one it is. */
12835
+ onboardedName: string().optional()
12817
12836
  });
12818
12837
  /**
12819
12838
  * Flat device summary returned by `createDevice` / `adoptDiscoveredDevice`.
@@ -12809,7 +12809,26 @@ var DiscoveryCandidateSchema = object({
12809
12809
  * identity ahead of adoption. Rendering metadata (unit, precision)
12810
12810
  * flows live through the cap STATUS SLICE after adoption.
12811
12811
  */
12812
- sourceInfo: SourceInfoSchema.optional()
12812
+ sourceInfo: SourceInfoSchema.optional(),
12813
+ /**
12814
+ * Set when this candidate is a device the provider ALREADY owns.
12815
+ *
12816
+ * A scan cannot generally produce the identity a device was onboarded under
12817
+ * (Reolink keys on `mac-<mac>`, learned at adopt time), so a stableId
12818
+ * comparison never matches and an owned device looks addable. Re-adopting one
12819
+ * overwrites its config with scan-derived values — that is how a Home Hub's
12820
+ * Baichuan port was overwritten with its ONVIF port, taking the hub and its
12821
+ * three child cameras offline for four hours.
12822
+ *
12823
+ * A provider that can recognise its own devices says so here. Absent means
12824
+ * "not recognised", which is not the same as "known to be new" — a provider
12825
+ * that cannot tell simply never sets it.
12826
+ */
12827
+ alreadyOnboarded: boolean().optional(),
12828
+ /** Numeric id of the device this candidate was matched to. Set with `alreadyOnboarded`. */
12829
+ onboardedDeviceId: number().optional(),
12830
+ /** Operator-facing name of the matched device, so the UI can say WHICH one it is. */
12831
+ onboardedName: string().optional()
12813
12832
  });
12814
12833
  /**
12815
12834
  * Flat device summary returned by `createDevice` / `adoptDiscoveredDevice`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-google",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
4
4
  "description": "Google Home export — hub-side smart-home fulfillment (SYNC / QUERY / EXECUTE / DISCONNECT) for the non-camera fleet, served over the hub's own OAuth account link. No Google credential is stored, sent or required.",
5
5
  "keywords": [
6
6
  "camstack",