@camstack/addon-mqtt-broker 1.2.52 → 1.2.53

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.
@@ -7747,7 +7747,8 @@ var OpsLogReasonSchema = _enum([
7747
7747
  "quota",
7748
7748
  "manual",
7749
7749
  "operator",
7750
- "maintenance"
7750
+ "maintenance",
7751
+ "orphaned-device"
7751
7752
  ]);
7752
7753
  /** One audit row, shared verbatim by both domains. */
7753
7754
  var OpsLogEntrySchema = object({
@@ -12827,10 +12828,39 @@ var DevicePersistConfigPayloadSchema = object({
12827
12828
  deviceId: number(),
12828
12829
  data: record(string(), unknown())
12829
12830
  });
12831
+ /** What a migration actually did, per switch. `unreachable` is a first-class
12832
+ * answer: a camera that could not be asked is not a camera that was silenced. */
12833
+ var MigrateSwitchOutcomeSchema = _enum([
12834
+ "off",
12835
+ "on",
12836
+ "not-offered",
12837
+ "unreachable"
12838
+ ]);
12839
+ var MigrateSwitchReportSchema = object({
12840
+ deviceId: number(),
12841
+ switchId: CameraSwitchIdSchema,
12842
+ outcome: MigrateSwitchOutcomeSchema,
12843
+ detail: string().optional()
12844
+ });
12845
+ var MigrateDeviceResultSchema = object({
12846
+ sourceId: number(),
12847
+ targetId: number(),
12848
+ switches: array(MigrateSwitchReportSchema).readonly(),
12849
+ /** Switches that could NOT be turned off on the source. Empty is the only
12850
+ * value meaning the replaced hardware is quiet. */
12851
+ sourceStillLive: array(CameraSwitchIdSchema).readonly(),
12852
+ swapped: boolean()
12853
+ });
12830
12854
  method(object({
12831
12855
  addonId: string(),
12832
12856
  stableId: string()
12833
- }), object({ id: number() }), { kind: "mutation" }), 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({
12857
+ }), object({ id: number() }), { kind: "mutation" }), method(object({
12858
+ sourceId: number(),
12859
+ targetId: number()
12860
+ }), MigrateDeviceResultSchema, {
12861
+ kind: "mutation",
12862
+ auth: "admin"
12863
+ }), 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({
12834
12864
  deviceId: number(),
12835
12865
  name: string()
12836
12866
  }), _void(), {
@@ -30352,6 +30382,12 @@ Object.freeze({
30352
30382
  addonId: null,
30353
30383
  access: "view"
30354
30384
  },
30385
+ "deviceManager.migrateDevice": {
30386
+ capName: "device-manager",
30387
+ capScope: "system",
30388
+ addonId: null,
30389
+ access: "create"
30390
+ },
30355
30391
  "deviceManager.persistConfig": {
30356
30392
  capName: "device-manager",
30357
30393
  capScope: "system",
@@ -7742,7 +7742,8 @@ var OpsLogReasonSchema = _enum([
7742
7742
  "quota",
7743
7743
  "manual",
7744
7744
  "operator",
7745
- "maintenance"
7745
+ "maintenance",
7746
+ "orphaned-device"
7746
7747
  ]);
7747
7748
  /** One audit row, shared verbatim by both domains. */
7748
7749
  var OpsLogEntrySchema = object({
@@ -12822,10 +12823,39 @@ var DevicePersistConfigPayloadSchema = object({
12822
12823
  deviceId: number(),
12823
12824
  data: record(string(), unknown())
12824
12825
  });
12826
+ /** What a migration actually did, per switch. `unreachable` is a first-class
12827
+ * answer: a camera that could not be asked is not a camera that was silenced. */
12828
+ var MigrateSwitchOutcomeSchema = _enum([
12829
+ "off",
12830
+ "on",
12831
+ "not-offered",
12832
+ "unreachable"
12833
+ ]);
12834
+ var MigrateSwitchReportSchema = object({
12835
+ deviceId: number(),
12836
+ switchId: CameraSwitchIdSchema,
12837
+ outcome: MigrateSwitchOutcomeSchema,
12838
+ detail: string().optional()
12839
+ });
12840
+ var MigrateDeviceResultSchema = object({
12841
+ sourceId: number(),
12842
+ targetId: number(),
12843
+ switches: array(MigrateSwitchReportSchema).readonly(),
12844
+ /** Switches that could NOT be turned off on the source. Empty is the only
12845
+ * value meaning the replaced hardware is quiet. */
12846
+ sourceStillLive: array(CameraSwitchIdSchema).readonly(),
12847
+ swapped: boolean()
12848
+ });
12825
12849
  method(object({
12826
12850
  addonId: string(),
12827
12851
  stableId: string()
12828
- }), object({ id: number() }), { kind: "mutation" }), 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({
12852
+ }), object({ id: number() }), { kind: "mutation" }), method(object({
12853
+ sourceId: number(),
12854
+ targetId: number()
12855
+ }), MigrateDeviceResultSchema, {
12856
+ kind: "mutation",
12857
+ auth: "admin"
12858
+ }), 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({
12829
12859
  deviceId: number(),
12830
12860
  name: string()
12831
12861
  }), _void(), {
@@ -30347,6 +30377,12 @@ Object.freeze({
30347
30377
  addonId: null,
30348
30378
  access: "view"
30349
30379
  },
30380
+ "deviceManager.migrateDevice": {
30381
+ capName: "device-manager",
30382
+ capScope: "system",
30383
+ addonId: null,
30384
+ access: "create"
30385
+ },
30350
30386
  "deviceManager.persistConfig": {
30351
30387
  capName: "device-manager",
30352
30388
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-mqtt-broker",
3
- "version": "1.2.52",
3
+ "version": "1.2.53",
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",