@camstack/addon-provider-amcrest 0.2.53 → 0.2.54

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
@@ -7711,7 +7711,8 @@ var OpsLogReasonSchema = _enum([
7711
7711
  "quota",
7712
7712
  "manual",
7713
7713
  "operator",
7714
- "maintenance"
7714
+ "maintenance",
7715
+ "orphaned-device"
7715
7716
  ]);
7716
7717
  /** One audit row, shared verbatim by both domains. */
7717
7718
  var OpsLogEntrySchema = object({
@@ -13006,10 +13007,39 @@ var DevicePersistConfigPayloadSchema = object({
13006
13007
  deviceId: number(),
13007
13008
  data: record(string(), unknown())
13008
13009
  });
13010
+ /** What a migration actually did, per switch. `unreachable` is a first-class
13011
+ * answer: a camera that could not be asked is not a camera that was silenced. */
13012
+ var MigrateSwitchOutcomeSchema = _enum([
13013
+ "off",
13014
+ "on",
13015
+ "not-offered",
13016
+ "unreachable"
13017
+ ]);
13018
+ var MigrateSwitchReportSchema = object({
13019
+ deviceId: number(),
13020
+ switchId: CameraSwitchIdSchema,
13021
+ outcome: MigrateSwitchOutcomeSchema,
13022
+ detail: string().optional()
13023
+ });
13024
+ var MigrateDeviceResultSchema = object({
13025
+ sourceId: number(),
13026
+ targetId: number(),
13027
+ switches: array(MigrateSwitchReportSchema).readonly(),
13028
+ /** Switches that could NOT be turned off on the source. Empty is the only
13029
+ * value meaning the replaced hardware is quiet. */
13030
+ sourceStillLive: array(CameraSwitchIdSchema).readonly(),
13031
+ swapped: boolean()
13032
+ });
13009
13033
  method(object({
13010
13034
  addonId: string(),
13011
13035
  stableId: string()
13012
- }), 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({
13036
+ }), object({ id: number() }), { kind: "mutation" }), method(object({
13037
+ sourceId: number(),
13038
+ targetId: number()
13039
+ }), MigrateDeviceResultSchema, {
13040
+ kind: "mutation",
13041
+ auth: "admin"
13042
+ }), 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({
13013
13043
  deviceId: number(),
13014
13044
  name: string()
13015
13045
  }), _void(), {
@@ -34600,6 +34630,12 @@ Object.freeze({
34600
34630
  addonId: null,
34601
34631
  access: "view"
34602
34632
  },
34633
+ "deviceManager.migrateDevice": {
34634
+ capName: "device-manager",
34635
+ capScope: "system",
34636
+ addonId: null,
34637
+ access: "create"
34638
+ },
34603
34639
  "deviceManager.persistConfig": {
34604
34640
  capName: "device-manager",
34605
34641
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -7712,7 +7712,8 @@ var OpsLogReasonSchema = _enum([
7712
7712
  "quota",
7713
7713
  "manual",
7714
7714
  "operator",
7715
- "maintenance"
7715
+ "maintenance",
7716
+ "orphaned-device"
7716
7717
  ]);
7717
7718
  /** One audit row, shared verbatim by both domains. */
7718
7719
  var OpsLogEntrySchema = object({
@@ -13007,10 +13008,39 @@ var DevicePersistConfigPayloadSchema = object({
13007
13008
  deviceId: number(),
13008
13009
  data: record(string(), unknown())
13009
13010
  });
13011
+ /** What a migration actually did, per switch. `unreachable` is a first-class
13012
+ * answer: a camera that could not be asked is not a camera that was silenced. */
13013
+ var MigrateSwitchOutcomeSchema = _enum([
13014
+ "off",
13015
+ "on",
13016
+ "not-offered",
13017
+ "unreachable"
13018
+ ]);
13019
+ var MigrateSwitchReportSchema = object({
13020
+ deviceId: number(),
13021
+ switchId: CameraSwitchIdSchema,
13022
+ outcome: MigrateSwitchOutcomeSchema,
13023
+ detail: string().optional()
13024
+ });
13025
+ var MigrateDeviceResultSchema = object({
13026
+ sourceId: number(),
13027
+ targetId: number(),
13028
+ switches: array(MigrateSwitchReportSchema).readonly(),
13029
+ /** Switches that could NOT be turned off on the source. Empty is the only
13030
+ * value meaning the replaced hardware is quiet. */
13031
+ sourceStillLive: array(CameraSwitchIdSchema).readonly(),
13032
+ swapped: boolean()
13033
+ });
13010
13034
  method(object({
13011
13035
  addonId: string(),
13012
13036
  stableId: string()
13013
- }), 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({
13037
+ }), object({ id: number() }), { kind: "mutation" }), method(object({
13038
+ sourceId: number(),
13039
+ targetId: number()
13040
+ }), MigrateDeviceResultSchema, {
13041
+ kind: "mutation",
13042
+ auth: "admin"
13043
+ }), 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({
13014
13044
  deviceId: number(),
13015
13045
  name: string()
13016
13046
  }), _void(), {
@@ -34601,6 +34631,12 @@ Object.freeze({
34601
34631
  addonId: null,
34602
34632
  access: "view"
34603
34633
  },
34634
+ "deviceManager.migrateDevice": {
34635
+ capName: "device-manager",
34636
+ capScope: "system",
34637
+ addonId: null,
34638
+ access: "create"
34639
+ },
34604
34640
  "deviceManager.persistConfig": {
34605
34641
  capName: "device-manager",
34606
34642
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-amcrest",
3
- "version": "0.2.53",
3
+ "version": "0.2.54",
4
4
  "description": "Amcrest/Dahua camera device provider addon for CamStack — Dahua CGI over HTTP(S) with digest auth (snapshot, RTSP catalog, PTZ, image/day-night config)",
5
5
  "keywords": [
6
6
  "camstack",