@camstack/addon-notifiers 1.2.56 → 1.2.57

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
@@ -7851,7 +7851,8 @@ var OpsLogReasonSchema = _enum([
7851
7851
  "quota",
7852
7852
  "manual",
7853
7853
  "operator",
7854
- "maintenance"
7854
+ "maintenance",
7855
+ "orphaned-device"
7855
7856
  ]);
7856
7857
  /** One audit row, shared verbatim by both domains. */
7857
7858
  var OpsLogEntrySchema = object({
@@ -12923,10 +12924,39 @@ var DevicePersistConfigPayloadSchema = object({
12923
12924
  deviceId: number(),
12924
12925
  data: record(string(), unknown())
12925
12926
  });
12927
+ /** What a migration actually did, per switch. `unreachable` is a first-class
12928
+ * answer: a camera that could not be asked is not a camera that was silenced. */
12929
+ var MigrateSwitchOutcomeSchema = _enum([
12930
+ "off",
12931
+ "on",
12932
+ "not-offered",
12933
+ "unreachable"
12934
+ ]);
12935
+ var MigrateSwitchReportSchema = object({
12936
+ deviceId: number(),
12937
+ switchId: CameraSwitchIdSchema,
12938
+ outcome: MigrateSwitchOutcomeSchema,
12939
+ detail: string().optional()
12940
+ });
12941
+ var MigrateDeviceResultSchema = object({
12942
+ sourceId: number(),
12943
+ targetId: number(),
12944
+ switches: array(MigrateSwitchReportSchema).readonly(),
12945
+ /** Switches that could NOT be turned off on the source. Empty is the only
12946
+ * value meaning the replaced hardware is quiet. */
12947
+ sourceStillLive: array(CameraSwitchIdSchema).readonly(),
12948
+ swapped: boolean()
12949
+ });
12926
12950
  method(object({
12927
12951
  addonId: string(),
12928
12952
  stableId: string()
12929
- }), 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({
12953
+ }), object({ id: number() }), { kind: "mutation" }), method(object({
12954
+ sourceId: number(),
12955
+ targetId: number()
12956
+ }), MigrateDeviceResultSchema, {
12957
+ kind: "mutation",
12958
+ auth: "admin"
12959
+ }), 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({
12930
12960
  deviceId: number(),
12931
12961
  name: string()
12932
12962
  }), _void(), {
@@ -30443,6 +30473,12 @@ Object.freeze({
30443
30473
  addonId: null,
30444
30474
  access: "view"
30445
30475
  },
30476
+ "deviceManager.migrateDevice": {
30477
+ capName: "device-manager",
30478
+ capScope: "system",
30479
+ addonId: null,
30480
+ access: "create"
30481
+ },
30446
30482
  "deviceManager.persistConfig": {
30447
30483
  capName: "device-manager",
30448
30484
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -7824,7 +7824,8 @@ var OpsLogReasonSchema = _enum([
7824
7824
  "quota",
7825
7825
  "manual",
7826
7826
  "operator",
7827
- "maintenance"
7827
+ "maintenance",
7828
+ "orphaned-device"
7828
7829
  ]);
7829
7830
  /** One audit row, shared verbatim by both domains. */
7830
7831
  var OpsLogEntrySchema = object({
@@ -12896,10 +12897,39 @@ var DevicePersistConfigPayloadSchema = object({
12896
12897
  deviceId: number(),
12897
12898
  data: record(string(), unknown())
12898
12899
  });
12900
+ /** What a migration actually did, per switch. `unreachable` is a first-class
12901
+ * answer: a camera that could not be asked is not a camera that was silenced. */
12902
+ var MigrateSwitchOutcomeSchema = _enum([
12903
+ "off",
12904
+ "on",
12905
+ "not-offered",
12906
+ "unreachable"
12907
+ ]);
12908
+ var MigrateSwitchReportSchema = object({
12909
+ deviceId: number(),
12910
+ switchId: CameraSwitchIdSchema,
12911
+ outcome: MigrateSwitchOutcomeSchema,
12912
+ detail: string().optional()
12913
+ });
12914
+ var MigrateDeviceResultSchema = object({
12915
+ sourceId: number(),
12916
+ targetId: number(),
12917
+ switches: array(MigrateSwitchReportSchema).readonly(),
12918
+ /** Switches that could NOT be turned off on the source. Empty is the only
12919
+ * value meaning the replaced hardware is quiet. */
12920
+ sourceStillLive: array(CameraSwitchIdSchema).readonly(),
12921
+ swapped: boolean()
12922
+ });
12899
12923
  method(object({
12900
12924
  addonId: string(),
12901
12925
  stableId: string()
12902
- }), 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({
12926
+ }), object({ id: number() }), { kind: "mutation" }), method(object({
12927
+ sourceId: number(),
12928
+ targetId: number()
12929
+ }), MigrateDeviceResultSchema, {
12930
+ kind: "mutation",
12931
+ auth: "admin"
12932
+ }), 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({
12903
12933
  deviceId: number(),
12904
12934
  name: string()
12905
12935
  }), _void(), {
@@ -30416,6 +30446,12 @@ Object.freeze({
30416
30446
  addonId: null,
30417
30447
  access: "view"
30418
30448
  },
30449
+ "deviceManager.migrateDevice": {
30450
+ capName: "device-manager",
30451
+ capScope: "system",
30452
+ addonId: null,
30453
+ access: "create"
30454
+ },
30419
30455
  "deviceManager.persistConfig": {
30420
30456
  capName: "device-manager",
30421
30457
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-notifiers",
3
- "version": "1.2.56",
3
+ "version": "1.2.57",
4
4
  "description": "System notifiers addon for CamStack — a `notification-output` collection provider hosting per-kind notifier adapters (ntfy, pushover, gotify, telegram, discord, webhook, zentik).",
5
5
  "keywords": [
6
6
  "camstack",