@camstack/addon-mqtt-broker 1.2.59 → 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`.
@@ -12672,7 +12691,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
12672
12691
  id: string(),
12673
12692
  name: string(),
12674
12693
  type: string()
12675
- }))), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
12694
+ }))), method(object({ stableId: string() }), object({ deviceId: number() }), {
12695
+ kind: "mutation",
12696
+ timeoutMs: 3 * 6e4
12697
+ }), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
12676
12698
  kind: "mutation",
12677
12699
  auth: "admin"
12678
12700
  }), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
@@ -12953,7 +12975,8 @@ method(object({
12953
12975
  targetId: number()
12954
12976
  }), MigrateDeviceResultSchema, {
12955
12977
  kind: "mutation",
12956
- auth: "admin"
12978
+ auth: "admin",
12979
+ timeoutMs: 12 * 6e4
12957
12980
  }), 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({
12958
12981
  deviceId: number(),
12959
12982
  name: string()
@@ -30831,6 +30854,12 @@ Object.freeze({
30831
30854
  addonId: null,
30832
30855
  access: "view"
30833
30856
  },
30857
+ "deviceProvider.reloadDevice": {
30858
+ capName: "device-provider",
30859
+ capScope: "system",
30860
+ addonId: null,
30861
+ access: "create"
30862
+ },
30834
30863
  "deviceProvider.start": {
30835
30864
  capName: "device-provider",
30836
30865
  capScope: "system",
@@ -41220,9 +41249,9 @@ var init_event_target_shim = __esmMin((() => {
41220
41249
  //#endregion
41221
41250
  //#region ../../node_modules/abort-controller/dist/abort-controller.mjs
41222
41251
  var abort_controller_exports = /* @__PURE__ */ __exportAll({
41223
- AbortController: () => AbortController,
41252
+ AbortController: () => AbortController$1,
41224
41253
  AbortSignal: () => AbortSignal,
41225
- default: () => AbortController
41254
+ default: () => AbortController$1
41226
41255
  });
41227
41256
  /**
41228
41257
  * Create an AbortSignal object.
@@ -41249,7 +41278,7 @@ function getSignal(controller) {
41249
41278
  if (signal == null) throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${controller === null ? "null" : typeof controller}`);
41250
41279
  return signal;
41251
41280
  }
41252
- var AbortSignal, abortedFlags, AbortController, signals;
41281
+ var AbortSignal, abortedFlags, AbortController$1, signals;
41253
41282
  var init_abort_controller = __esmMin((() => {
41254
41283
  init_event_target_shim();
41255
41284
  AbortSignal = class extends EventTarget {
@@ -41276,7 +41305,7 @@ var init_abort_controller = __esmMin((() => {
41276
41305
  configurable: true,
41277
41306
  value: "AbortSignal"
41278
41307
  });
41279
- AbortController = class {
41308
+ AbortController$1 = class {
41280
41309
  /**
41281
41310
  * Initialize this controller.
41282
41311
  */
@@ -41297,11 +41326,11 @@ var init_abort_controller = __esmMin((() => {
41297
41326
  }
41298
41327
  };
41299
41328
  signals = /* @__PURE__ */ new WeakMap();
41300
- Object.defineProperties(AbortController.prototype, {
41329
+ Object.defineProperties(AbortController$1.prototype, {
41301
41330
  signal: { enumerable: true },
41302
41331
  abort: { enumerable: true }
41303
41332
  });
41304
- if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") Object.defineProperty(AbortController.prototype, Symbol.toStringTag, {
41333
+ if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") Object.defineProperty(AbortController$1.prototype, Symbol.toStringTag, {
41305
41334
  configurable: true,
41306
41335
  value: "AbortController"
41307
41336
  });
@@ -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`.
@@ -12667,7 +12686,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
12667
12686
  id: string(),
12668
12687
  name: string(),
12669
12688
  type: string()
12670
- }))), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
12689
+ }))), method(object({ stableId: string() }), object({ deviceId: number() }), {
12690
+ kind: "mutation",
12691
+ timeoutMs: 3 * 6e4
12692
+ }), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
12671
12693
  kind: "mutation",
12672
12694
  auth: "admin"
12673
12695
  }), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
@@ -12948,7 +12970,8 @@ method(object({
12948
12970
  targetId: number()
12949
12971
  }), MigrateDeviceResultSchema, {
12950
12972
  kind: "mutation",
12951
- auth: "admin"
12973
+ auth: "admin",
12974
+ timeoutMs: 12 * 6e4
12952
12975
  }), 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({
12953
12976
  deviceId: number(),
12954
12977
  name: string()
@@ -30826,6 +30849,12 @@ Object.freeze({
30826
30849
  addonId: null,
30827
30850
  access: "view"
30828
30851
  },
30852
+ "deviceProvider.reloadDevice": {
30853
+ capName: "device-provider",
30854
+ capScope: "system",
30855
+ addonId: null,
30856
+ access: "create"
30857
+ },
30829
30858
  "deviceProvider.start": {
30830
30859
  capName: "device-provider",
30831
30860
  capScope: "system",
@@ -41215,9 +41244,9 @@ var init_event_target_shim = __esmMin((() => {
41215
41244
  //#endregion
41216
41245
  //#region ../../node_modules/abort-controller/dist/abort-controller.mjs
41217
41246
  var abort_controller_exports = /* @__PURE__ */ __exportAll({
41218
- AbortController: () => AbortController,
41247
+ AbortController: () => AbortController$1,
41219
41248
  AbortSignal: () => AbortSignal,
41220
- default: () => AbortController
41249
+ default: () => AbortController$1
41221
41250
  });
41222
41251
  /**
41223
41252
  * Create an AbortSignal object.
@@ -41244,7 +41273,7 @@ function getSignal(controller) {
41244
41273
  if (signal == null) throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${controller === null ? "null" : typeof controller}`);
41245
41274
  return signal;
41246
41275
  }
41247
- var AbortSignal, abortedFlags, AbortController, signals;
41276
+ var AbortSignal, abortedFlags, AbortController$1, signals;
41248
41277
  var init_abort_controller = __esmMin((() => {
41249
41278
  init_event_target_shim();
41250
41279
  AbortSignal = class extends EventTarget {
@@ -41271,7 +41300,7 @@ var init_abort_controller = __esmMin((() => {
41271
41300
  configurable: true,
41272
41301
  value: "AbortSignal"
41273
41302
  });
41274
- AbortController = class {
41303
+ AbortController$1 = class {
41275
41304
  /**
41276
41305
  * Initialize this controller.
41277
41306
  */
@@ -41292,11 +41321,11 @@ var init_abort_controller = __esmMin((() => {
41292
41321
  }
41293
41322
  };
41294
41323
  signals = /* @__PURE__ */ new WeakMap();
41295
- Object.defineProperties(AbortController.prototype, {
41324
+ Object.defineProperties(AbortController$1.prototype, {
41296
41325
  signal: { enumerable: true },
41297
41326
  abort: { enumerable: true }
41298
41327
  });
41299
- if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") Object.defineProperty(AbortController.prototype, Symbol.toStringTag, {
41328
+ if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") Object.defineProperty(AbortController$1.prototype, Symbol.toStringTag, {
41300
41329
  configurable: true,
41301
41330
  value: "AbortController"
41302
41331
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-mqtt-broker",
3
- "version": "1.2.59",
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",