@camstack/addon-export-google 0.1.23 → 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`.
@@ -12860,7 +12879,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
12860
12879
  id: string(),
12861
12880
  name: string(),
12862
12881
  type: string()
12863
- }))), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
12882
+ }))), method(object({ stableId: string() }), object({ deviceId: number() }), {
12883
+ kind: "mutation",
12884
+ timeoutMs: 3 * 6e4
12885
+ }), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
12864
12886
  kind: "mutation",
12865
12887
  auth: "admin"
12866
12888
  }), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
@@ -13141,7 +13163,8 @@ method(object({
13141
13163
  targetId: number()
13142
13164
  }), MigrateDeviceResultSchema, {
13143
13165
  kind: "mutation",
13144
- auth: "admin"
13166
+ auth: "admin",
13167
+ timeoutMs: 12 * 6e4
13145
13168
  }), method(DeviceRegisterPayloadSchema, _void(), { kind: "mutation" }), method(DeviceRemovePayloadSchema, _void(), { kind: "mutation" }), method(DevicePersistConfigPayloadSchema, _void(), { kind: "mutation" }), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), DeviceMetaSchema.nullable()), method(object({
13146
13169
  deviceId: number(),
13147
13170
  name: string()
@@ -31035,6 +31058,12 @@ Object.freeze({
31035
31058
  addonId: null,
31036
31059
  access: "view"
31037
31060
  },
31061
+ "deviceProvider.reloadDevice": {
31062
+ capName: "device-provider",
31063
+ capScope: "system",
31064
+ addonId: null,
31065
+ access: "create"
31066
+ },
31038
31067
  "deviceProvider.start": {
31039
31068
  capName: "device-provider",
31040
31069
  capScope: "system",
@@ -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`.
@@ -12856,7 +12875,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
12856
12875
  id: string(),
12857
12876
  name: string(),
12858
12877
  type: string()
12859
- }))), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
12878
+ }))), method(object({ stableId: string() }), object({ deviceId: number() }), {
12879
+ kind: "mutation",
12880
+ timeoutMs: 3 * 6e4
12881
+ }), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
12860
12882
  kind: "mutation",
12861
12883
  auth: "admin"
12862
12884
  }), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
@@ -13137,7 +13159,8 @@ method(object({
13137
13159
  targetId: number()
13138
13160
  }), MigrateDeviceResultSchema, {
13139
13161
  kind: "mutation",
13140
- auth: "admin"
13162
+ auth: "admin",
13163
+ timeoutMs: 12 * 6e4
13141
13164
  }), method(DeviceRegisterPayloadSchema, _void(), { kind: "mutation" }), method(DeviceRemovePayloadSchema, _void(), { kind: "mutation" }), method(DevicePersistConfigPayloadSchema, _void(), { kind: "mutation" }), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), DeviceMetaSchema.nullable()), method(object({
13142
13165
  deviceId: number(),
13143
13166
  name: string()
@@ -31031,6 +31054,12 @@ Object.freeze({
31031
31054
  addonId: null,
31032
31055
  access: "view"
31033
31056
  },
31057
+ "deviceProvider.reloadDevice": {
31058
+ capName: "device-provider",
31059
+ capScope: "system",
31060
+ addonId: null,
31061
+ access: "create"
31062
+ },
31034
31063
  "deviceProvider.start": {
31035
31064
  capName: "device-provider",
31036
31065
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-google",
3
- "version": "0.1.23",
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",