@camstack/addon-export-hap 1.2.71 → 1.2.73

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.
@@ -13348,7 +13348,26 @@ var DiscoveryCandidateSchema = object({
13348
13348
  * identity ahead of adoption. Rendering metadata (unit, precision)
13349
13349
  * flows live through the cap STATUS SLICE after adoption.
13350
13350
  */
13351
- sourceInfo: SourceInfoSchema.optional()
13351
+ sourceInfo: SourceInfoSchema.optional(),
13352
+ /**
13353
+ * Set when this candidate is a device the provider ALREADY owns.
13354
+ *
13355
+ * A scan cannot generally produce the identity a device was onboarded under
13356
+ * (Reolink keys on `mac-<mac>`, learned at adopt time), so a stableId
13357
+ * comparison never matches and an owned device looks addable. Re-adopting one
13358
+ * overwrites its config with scan-derived values — that is how a Home Hub's
13359
+ * Baichuan port was overwritten with its ONVIF port, taking the hub and its
13360
+ * three child cameras offline for four hours.
13361
+ *
13362
+ * A provider that can recognise its own devices says so here. Absent means
13363
+ * "not recognised", which is not the same as "known to be new" — a provider
13364
+ * that cannot tell simply never sets it.
13365
+ */
13366
+ alreadyOnboarded: boolean().optional(),
13367
+ /** Numeric id of the device this candidate was matched to. Set with `alreadyOnboarded`. */
13368
+ onboardedDeviceId: number().optional(),
13369
+ /** Operator-facing name of the matched device, so the UI can say WHICH one it is. */
13370
+ onboardedName: string().optional()
13352
13371
  });
13353
13372
  /**
13354
13373
  * Flat device summary returned by `createDevice` / `adoptDiscoveredDevice`.
@@ -13336,7 +13336,26 @@ var DiscoveryCandidateSchema = object({
13336
13336
  * identity ahead of adoption. Rendering metadata (unit, precision)
13337
13337
  * flows live through the cap STATUS SLICE after adoption.
13338
13338
  */
13339
- sourceInfo: SourceInfoSchema.optional()
13339
+ sourceInfo: SourceInfoSchema.optional(),
13340
+ /**
13341
+ * Set when this candidate is a device the provider ALREADY owns.
13342
+ *
13343
+ * A scan cannot generally produce the identity a device was onboarded under
13344
+ * (Reolink keys on `mac-<mac>`, learned at adopt time), so a stableId
13345
+ * comparison never matches and an owned device looks addable. Re-adopting one
13346
+ * overwrites its config with scan-derived values — that is how a Home Hub's
13347
+ * Baichuan port was overwritten with its ONVIF port, taking the hub and its
13348
+ * three child cameras offline for four hours.
13349
+ *
13350
+ * A provider that can recognise its own devices says so here. Absent means
13351
+ * "not recognised", which is not the same as "known to be new" — a provider
13352
+ * that cannot tell simply never sets it.
13353
+ */
13354
+ alreadyOnboarded: boolean().optional(),
13355
+ /** Numeric id of the device this candidate was matched to. Set with `alreadyOnboarded`. */
13356
+ onboardedDeviceId: number().optional(),
13357
+ /** Operator-facing name of the matched device, so the UI can say WHICH one it is. */
13358
+ onboardedName: string().optional()
13340
13359
  });
13341
13360
  /**
13342
13361
  * Flat device summary returned by `createDevice` / `adoptDiscoveredDevice`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-hap",
3
- "version": "1.2.71",
3
+ "version": "1.2.73",
4
4
  "description": "HomeKit (HAP) exporter for CamStack devices. Publishes each exposed device as its own HomeKit accessory: cameras and doorbells with SRTP streaming, HomeKit Secure Video, motion, two-way audio, PTZ and battery; switches, lights, locks and sensors through a capability→service table.",
5
5
  "keywords": [
6
6
  "camstack",