@camstack/addon-provider-dreo 0.2.52 → 0.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.
package/dist/addon.js CHANGED
@@ -7754,7 +7754,8 @@ var OpsLogReasonSchema = _enum([
7754
7754
  "quota",
7755
7755
  "manual",
7756
7756
  "operator",
7757
- "maintenance"
7757
+ "maintenance",
7758
+ "orphaned-device"
7758
7759
  ]);
7759
7760
  /** One audit row, shared verbatim by both domains. */
7760
7761
  var OpsLogEntrySchema = object({
@@ -13066,10 +13067,39 @@ var DevicePersistConfigPayloadSchema = object({
13066
13067
  deviceId: number(),
13067
13068
  data: record(string(), unknown())
13068
13069
  });
13070
+ /** What a migration actually did, per switch. `unreachable` is a first-class
13071
+ * answer: a camera that could not be asked is not a camera that was silenced. */
13072
+ var MigrateSwitchOutcomeSchema = _enum([
13073
+ "off",
13074
+ "on",
13075
+ "not-offered",
13076
+ "unreachable"
13077
+ ]);
13078
+ var MigrateSwitchReportSchema = object({
13079
+ deviceId: number(),
13080
+ switchId: CameraSwitchIdSchema,
13081
+ outcome: MigrateSwitchOutcomeSchema,
13082
+ detail: string().optional()
13083
+ });
13084
+ var MigrateDeviceResultSchema = object({
13085
+ sourceId: number(),
13086
+ targetId: number(),
13087
+ switches: array(MigrateSwitchReportSchema).readonly(),
13088
+ /** Switches that could NOT be turned off on the source. Empty is the only
13089
+ * value meaning the replaced hardware is quiet. */
13090
+ sourceStillLive: array(CameraSwitchIdSchema).readonly(),
13091
+ swapped: boolean()
13092
+ });
13069
13093
  method(object({
13070
13094
  addonId: string(),
13071
13095
  stableId: string()
13072
- }), 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({
13096
+ }), object({ id: number() }), { kind: "mutation" }), method(object({
13097
+ sourceId: number(),
13098
+ targetId: number()
13099
+ }), MigrateDeviceResultSchema, {
13100
+ kind: "mutation",
13101
+ auth: "admin"
13102
+ }), 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({
13073
13103
  deviceId: number(),
13074
13104
  name: string()
13075
13105
  }), _void(), {
@@ -34072,6 +34102,12 @@ Object.freeze({
34072
34102
  addonId: null,
34073
34103
  access: "view"
34074
34104
  },
34105
+ "deviceManager.migrateDevice": {
34106
+ capName: "device-manager",
34107
+ capScope: "system",
34108
+ addonId: null,
34109
+ access: "create"
34110
+ },
34075
34111
  "deviceManager.persistConfig": {
34076
34112
  capName: "device-manager",
34077
34113
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -7755,7 +7755,8 @@ var OpsLogReasonSchema = _enum([
7755
7755
  "quota",
7756
7756
  "manual",
7757
7757
  "operator",
7758
- "maintenance"
7758
+ "maintenance",
7759
+ "orphaned-device"
7759
7760
  ]);
7760
7761
  /** One audit row, shared verbatim by both domains. */
7761
7762
  var OpsLogEntrySchema = object({
@@ -13067,10 +13068,39 @@ var DevicePersistConfigPayloadSchema = object({
13067
13068
  deviceId: number(),
13068
13069
  data: record(string(), unknown())
13069
13070
  });
13071
+ /** What a migration actually did, per switch. `unreachable` is a first-class
13072
+ * answer: a camera that could not be asked is not a camera that was silenced. */
13073
+ var MigrateSwitchOutcomeSchema = _enum([
13074
+ "off",
13075
+ "on",
13076
+ "not-offered",
13077
+ "unreachable"
13078
+ ]);
13079
+ var MigrateSwitchReportSchema = object({
13080
+ deviceId: number(),
13081
+ switchId: CameraSwitchIdSchema,
13082
+ outcome: MigrateSwitchOutcomeSchema,
13083
+ detail: string().optional()
13084
+ });
13085
+ var MigrateDeviceResultSchema = object({
13086
+ sourceId: number(),
13087
+ targetId: number(),
13088
+ switches: array(MigrateSwitchReportSchema).readonly(),
13089
+ /** Switches that could NOT be turned off on the source. Empty is the only
13090
+ * value meaning the replaced hardware is quiet. */
13091
+ sourceStillLive: array(CameraSwitchIdSchema).readonly(),
13092
+ swapped: boolean()
13093
+ });
13070
13094
  method(object({
13071
13095
  addonId: string(),
13072
13096
  stableId: string()
13073
- }), 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({
13097
+ }), object({ id: number() }), { kind: "mutation" }), method(object({
13098
+ sourceId: number(),
13099
+ targetId: number()
13100
+ }), MigrateDeviceResultSchema, {
13101
+ kind: "mutation",
13102
+ auth: "admin"
13103
+ }), 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({
13074
13104
  deviceId: number(),
13075
13105
  name: string()
13076
13106
  }), _void(), {
@@ -34073,6 +34103,12 @@ Object.freeze({
34073
34103
  addonId: null,
34074
34104
  access: "view"
34075
34105
  },
34106
+ "deviceManager.migrateDevice": {
34107
+ capName: "device-manager",
34108
+ capScope: "system",
34109
+ addonId: null,
34110
+ access: "create"
34111
+ },
34076
34112
  "deviceManager.persistConfig": {
34077
34113
  capName: "device-manager",
34078
34114
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-dreo",
3
- "version": "0.2.52",
3
+ "version": "0.2.53",
4
4
  "description": "Dreo smart-device (fan / air-circulator / purifier / heater / humidifier) device-provider addon for CamStack — wraps the @apocaliss92/nodedreo Dreo cloud client (REST + WebSocket)",
5
5
  "keywords": [
6
6
  "camstack",