@camstack/addon-matter-broker 0.2.51 → 0.2.52

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
@@ -7732,7 +7732,8 @@ var OpsLogReasonSchema = _enum([
7732
7732
  "quota",
7733
7733
  "manual",
7734
7734
  "operator",
7735
- "maintenance"
7735
+ "maintenance",
7736
+ "orphaned-device"
7736
7737
  ]);
7737
7738
  /** One audit row, shared verbatim by both domains. */
7738
7739
  var OpsLogEntrySchema = object({
@@ -13093,10 +13094,39 @@ var DevicePersistConfigPayloadSchema = object({
13093
13094
  deviceId: number(),
13094
13095
  data: record(string$2(), unknown())
13095
13096
  });
13097
+ /** What a migration actually did, per switch. `unreachable` is a first-class
13098
+ * answer: a camera that could not be asked is not a camera that was silenced. */
13099
+ var MigrateSwitchOutcomeSchema = _enum([
13100
+ "off",
13101
+ "on",
13102
+ "not-offered",
13103
+ "unreachable"
13104
+ ]);
13105
+ var MigrateSwitchReportSchema = object({
13106
+ deviceId: number(),
13107
+ switchId: CameraSwitchIdSchema,
13108
+ outcome: MigrateSwitchOutcomeSchema,
13109
+ detail: string$2().optional()
13110
+ });
13111
+ var MigrateDeviceResultSchema = object({
13112
+ sourceId: number(),
13113
+ targetId: number(),
13114
+ switches: array(MigrateSwitchReportSchema).readonly(),
13115
+ /** Switches that could NOT be turned off on the source. Empty is the only
13116
+ * value meaning the replaced hardware is quiet. */
13117
+ sourceStillLive: array(CameraSwitchIdSchema).readonly(),
13118
+ swapped: boolean()
13119
+ });
13096
13120
  method(object({
13097
13121
  addonId: string$2(),
13098
13122
  stableId: string$2()
13099
- }), 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$2(), unknown())), method(object({ deviceId: number() }), record(string$2(), unknown())), method(object({ deviceId: number() }), DeviceMetaSchema.nullable()), method(object({
13123
+ }), object({ id: number() }), { kind: "mutation" }), method(object({
13124
+ sourceId: number(),
13125
+ targetId: number()
13126
+ }), MigrateDeviceResultSchema, {
13127
+ kind: "mutation",
13128
+ auth: "admin"
13129
+ }), method(DeviceRegisterPayloadSchema, _void(), { kind: "mutation" }), method(DeviceRemovePayloadSchema, _void(), { kind: "mutation" }), method(DevicePersistConfigPayloadSchema, _void(), { kind: "mutation" }), method(object({ deviceId: number() }), record(string$2(), unknown())), method(object({ deviceId: number() }), record(string$2(), unknown())), method(object({ deviceId: number() }), DeviceMetaSchema.nullable()), method(object({
13100
13130
  deviceId: number(),
13101
13131
  name: string$2()
13102
13132
  }), _void(), {
@@ -34108,6 +34138,12 @@ Object.freeze({
34108
34138
  addonId: null,
34109
34139
  access: "view"
34110
34140
  },
34141
+ "deviceManager.migrateDevice": {
34142
+ capName: "device-manager",
34143
+ capScope: "system",
34144
+ addonId: null,
34145
+ access: "create"
34146
+ },
34111
34147
  "deviceManager.persistConfig": {
34112
34148
  capName: "device-manager",
34113
34149
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -7730,7 +7730,8 @@ var OpsLogReasonSchema = _enum([
7730
7730
  "quota",
7731
7731
  "manual",
7732
7732
  "operator",
7733
- "maintenance"
7733
+ "maintenance",
7734
+ "orphaned-device"
7734
7735
  ]);
7735
7736
  /** One audit row, shared verbatim by both domains. */
7736
7737
  var OpsLogEntrySchema = object({
@@ -13091,10 +13092,39 @@ var DevicePersistConfigPayloadSchema = object({
13091
13092
  deviceId: number(),
13092
13093
  data: record(string$2(), unknown())
13093
13094
  });
13095
+ /** What a migration actually did, per switch. `unreachable` is a first-class
13096
+ * answer: a camera that could not be asked is not a camera that was silenced. */
13097
+ var MigrateSwitchOutcomeSchema = _enum([
13098
+ "off",
13099
+ "on",
13100
+ "not-offered",
13101
+ "unreachable"
13102
+ ]);
13103
+ var MigrateSwitchReportSchema = object({
13104
+ deviceId: number(),
13105
+ switchId: CameraSwitchIdSchema,
13106
+ outcome: MigrateSwitchOutcomeSchema,
13107
+ detail: string$2().optional()
13108
+ });
13109
+ var MigrateDeviceResultSchema = object({
13110
+ sourceId: number(),
13111
+ targetId: number(),
13112
+ switches: array(MigrateSwitchReportSchema).readonly(),
13113
+ /** Switches that could NOT be turned off on the source. Empty is the only
13114
+ * value meaning the replaced hardware is quiet. */
13115
+ sourceStillLive: array(CameraSwitchIdSchema).readonly(),
13116
+ swapped: boolean()
13117
+ });
13094
13118
  method(object({
13095
13119
  addonId: string$2(),
13096
13120
  stableId: string$2()
13097
- }), 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$2(), unknown())), method(object({ deviceId: number() }), record(string$2(), unknown())), method(object({ deviceId: number() }), DeviceMetaSchema.nullable()), method(object({
13121
+ }), object({ id: number() }), { kind: "mutation" }), method(object({
13122
+ sourceId: number(),
13123
+ targetId: number()
13124
+ }), MigrateDeviceResultSchema, {
13125
+ kind: "mutation",
13126
+ auth: "admin"
13127
+ }), method(DeviceRegisterPayloadSchema, _void(), { kind: "mutation" }), method(DeviceRemovePayloadSchema, _void(), { kind: "mutation" }), method(DevicePersistConfigPayloadSchema, _void(), { kind: "mutation" }), method(object({ deviceId: number() }), record(string$2(), unknown())), method(object({ deviceId: number() }), record(string$2(), unknown())), method(object({ deviceId: number() }), DeviceMetaSchema.nullable()), method(object({
13098
13128
  deviceId: number(),
13099
13129
  name: string$2()
13100
13130
  }), _void(), {
@@ -34106,6 +34136,12 @@ Object.freeze({
34106
34136
  addonId: null,
34107
34137
  access: "view"
34108
34138
  },
34139
+ "deviceManager.migrateDevice": {
34140
+ capName: "device-manager",
34141
+ capScope: "system",
34142
+ addonId: null,
34143
+ access: "create"
34144
+ },
34109
34145
  "deviceManager.persistConfig": {
34110
34146
  capName: "device-manager",
34111
34147
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-matter-broker",
3
- "version": "0.2.51",
3
+ "version": "0.2.52",
4
4
  "description": "Matter broker addon for CamStack — owns a Matter fabric (commissioning + the long-lived controller) via the matter.js controller and brokers commissioned Matter nodes into CamStack",
5
5
  "keywords": [
6
6
  "camstack",