@camstack/addon-provider-reolink 1.2.75 → 1.2.76

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
@@ -8008,7 +8008,8 @@ var OpsLogReasonSchema = _enum([
8008
8008
  "quota",
8009
8009
  "manual",
8010
8010
  "operator",
8011
- "maintenance"
8011
+ "maintenance",
8012
+ "orphaned-device"
8012
8013
  ]);
8013
8014
  /** One audit row, shared verbatim by both domains. */
8014
8015
  var OpsLogEntrySchema = object({
@@ -13596,10 +13597,39 @@ var DevicePersistConfigPayloadSchema = object({
13596
13597
  deviceId: number(),
13597
13598
  data: record(string(), unknown())
13598
13599
  });
13600
+ /** What a migration actually did, per switch. `unreachable` is a first-class
13601
+ * answer: a camera that could not be asked is not a camera that was silenced. */
13602
+ var MigrateSwitchOutcomeSchema = _enum([
13603
+ "off",
13604
+ "on",
13605
+ "not-offered",
13606
+ "unreachable"
13607
+ ]);
13608
+ var MigrateSwitchReportSchema = object({
13609
+ deviceId: number(),
13610
+ switchId: CameraSwitchIdSchema,
13611
+ outcome: MigrateSwitchOutcomeSchema,
13612
+ detail: string().optional()
13613
+ });
13614
+ var MigrateDeviceResultSchema = object({
13615
+ sourceId: number(),
13616
+ targetId: number(),
13617
+ switches: array(MigrateSwitchReportSchema).readonly(),
13618
+ /** Switches that could NOT be turned off on the source. Empty is the only
13619
+ * value meaning the replaced hardware is quiet. */
13620
+ sourceStillLive: array(CameraSwitchIdSchema).readonly(),
13621
+ swapped: boolean()
13622
+ });
13599
13623
  method(object({
13600
13624
  addonId: string(),
13601
13625
  stableId: string()
13602
- }), 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({
13626
+ }), object({ id: number() }), { kind: "mutation" }), method(object({
13627
+ sourceId: number(),
13628
+ targetId: number()
13629
+ }), MigrateDeviceResultSchema, {
13630
+ kind: "mutation",
13631
+ auth: "admin"
13632
+ }), 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({
13603
13633
  deviceId: number(),
13604
13634
  name: string()
13605
13635
  }), _void(), {
@@ -35190,6 +35220,12 @@ Object.freeze({
35190
35220
  addonId: null,
35191
35221
  access: "view"
35192
35222
  },
35223
+ "deviceManager.migrateDevice": {
35224
+ capName: "device-manager",
35225
+ capScope: "system",
35226
+ addonId: null,
35227
+ access: "create"
35228
+ },
35193
35229
  "deviceManager.persistConfig": {
35194
35230
  capName: "device-manager",
35195
35231
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -8003,7 +8003,8 @@ var OpsLogReasonSchema = _enum([
8003
8003
  "quota",
8004
8004
  "manual",
8005
8005
  "operator",
8006
- "maintenance"
8006
+ "maintenance",
8007
+ "orphaned-device"
8007
8008
  ]);
8008
8009
  /** One audit row, shared verbatim by both domains. */
8009
8010
  var OpsLogEntrySchema = object({
@@ -13591,10 +13592,39 @@ var DevicePersistConfigPayloadSchema = object({
13591
13592
  deviceId: number(),
13592
13593
  data: record(string(), unknown())
13593
13594
  });
13595
+ /** What a migration actually did, per switch. `unreachable` is a first-class
13596
+ * answer: a camera that could not be asked is not a camera that was silenced. */
13597
+ var MigrateSwitchOutcomeSchema = _enum([
13598
+ "off",
13599
+ "on",
13600
+ "not-offered",
13601
+ "unreachable"
13602
+ ]);
13603
+ var MigrateSwitchReportSchema = object({
13604
+ deviceId: number(),
13605
+ switchId: CameraSwitchIdSchema,
13606
+ outcome: MigrateSwitchOutcomeSchema,
13607
+ detail: string().optional()
13608
+ });
13609
+ var MigrateDeviceResultSchema = object({
13610
+ sourceId: number(),
13611
+ targetId: number(),
13612
+ switches: array(MigrateSwitchReportSchema).readonly(),
13613
+ /** Switches that could NOT be turned off on the source. Empty is the only
13614
+ * value meaning the replaced hardware is quiet. */
13615
+ sourceStillLive: array(CameraSwitchIdSchema).readonly(),
13616
+ swapped: boolean()
13617
+ });
13594
13618
  method(object({
13595
13619
  addonId: string(),
13596
13620
  stableId: string()
13597
- }), 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({
13621
+ }), object({ id: number() }), { kind: "mutation" }), method(object({
13622
+ sourceId: number(),
13623
+ targetId: number()
13624
+ }), MigrateDeviceResultSchema, {
13625
+ kind: "mutation",
13626
+ auth: "admin"
13627
+ }), 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({
13598
13628
  deviceId: number(),
13599
13629
  name: string()
13600
13630
  }), _void(), {
@@ -35185,6 +35215,12 @@ Object.freeze({
35185
35215
  addonId: null,
35186
35216
  access: "view"
35187
35217
  },
35218
+ "deviceManager.migrateDevice": {
35219
+ capName: "device-manager",
35220
+ capScope: "system",
35221
+ addonId: null,
35222
+ access: "create"
35223
+ },
35188
35224
  "deviceManager.persistConfig": {
35189
35225
  capName: "device-manager",
35190
35226
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-reolink",
3
- "version": "1.2.75",
3
+ "version": "1.2.76",
4
4
  "description": "Reolink camera device provider addon for CamStack — native Baichuan protocol",
5
5
  "keywords": [
6
6
  "camstack",