@camstack/addon-smtp-nodemailer 1.2.51 → 1.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.
@@ -7739,7 +7739,8 @@ var OpsLogReasonSchema = _enum([
7739
7739
  "quota",
7740
7740
  "manual",
7741
7741
  "operator",
7742
- "maintenance"
7742
+ "maintenance",
7743
+ "orphaned-device"
7743
7744
  ]);
7744
7745
  /** One audit row, shared verbatim by both domains. */
7745
7746
  var OpsLogEntrySchema = object({
@@ -12770,10 +12771,39 @@ var DevicePersistConfigPayloadSchema = object({
12770
12771
  deviceId: number(),
12771
12772
  data: record(string(), unknown())
12772
12773
  });
12774
+ /** What a migration actually did, per switch. `unreachable` is a first-class
12775
+ * answer: a camera that could not be asked is not a camera that was silenced. */
12776
+ var MigrateSwitchOutcomeSchema = _enum([
12777
+ "off",
12778
+ "on",
12779
+ "not-offered",
12780
+ "unreachable"
12781
+ ]);
12782
+ var MigrateSwitchReportSchema = object({
12783
+ deviceId: number(),
12784
+ switchId: CameraSwitchIdSchema,
12785
+ outcome: MigrateSwitchOutcomeSchema,
12786
+ detail: string().optional()
12787
+ });
12788
+ var MigrateDeviceResultSchema = object({
12789
+ sourceId: number(),
12790
+ targetId: number(),
12791
+ switches: array(MigrateSwitchReportSchema).readonly(),
12792
+ /** Switches that could NOT be turned off on the source. Empty is the only
12793
+ * value meaning the replaced hardware is quiet. */
12794
+ sourceStillLive: array(CameraSwitchIdSchema).readonly(),
12795
+ swapped: boolean()
12796
+ });
12773
12797
  method(object({
12774
12798
  addonId: string(),
12775
12799
  stableId: string()
12776
- }), 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({
12800
+ }), object({ id: number() }), { kind: "mutation" }), method(object({
12801
+ sourceId: number(),
12802
+ targetId: number()
12803
+ }), MigrateDeviceResultSchema, {
12804
+ kind: "mutation",
12805
+ auth: "admin"
12806
+ }), 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({
12777
12807
  deviceId: number(),
12778
12808
  name: string()
12779
12809
  }), _void(), {
@@ -30289,6 +30319,12 @@ Object.freeze({
30289
30319
  addonId: null,
30290
30320
  access: "view"
30291
30321
  },
30322
+ "deviceManager.migrateDevice": {
30323
+ capName: "device-manager",
30324
+ capScope: "system",
30325
+ addonId: null,
30326
+ access: "create"
30327
+ },
30292
30328
  "deviceManager.persistConfig": {
30293
30329
  capName: "device-manager",
30294
30330
  capScope: "system",
@@ -7737,7 +7737,8 @@ var OpsLogReasonSchema = _enum([
7737
7737
  "quota",
7738
7738
  "manual",
7739
7739
  "operator",
7740
- "maintenance"
7740
+ "maintenance",
7741
+ "orphaned-device"
7741
7742
  ]);
7742
7743
  /** One audit row, shared verbatim by both domains. */
7743
7744
  var OpsLogEntrySchema = object({
@@ -12768,10 +12769,39 @@ var DevicePersistConfigPayloadSchema = object({
12768
12769
  deviceId: number(),
12769
12770
  data: record(string(), unknown())
12770
12771
  });
12772
+ /** What a migration actually did, per switch. `unreachable` is a first-class
12773
+ * answer: a camera that could not be asked is not a camera that was silenced. */
12774
+ var MigrateSwitchOutcomeSchema = _enum([
12775
+ "off",
12776
+ "on",
12777
+ "not-offered",
12778
+ "unreachable"
12779
+ ]);
12780
+ var MigrateSwitchReportSchema = object({
12781
+ deviceId: number(),
12782
+ switchId: CameraSwitchIdSchema,
12783
+ outcome: MigrateSwitchOutcomeSchema,
12784
+ detail: string().optional()
12785
+ });
12786
+ var MigrateDeviceResultSchema = object({
12787
+ sourceId: number(),
12788
+ targetId: number(),
12789
+ switches: array(MigrateSwitchReportSchema).readonly(),
12790
+ /** Switches that could NOT be turned off on the source. Empty is the only
12791
+ * value meaning the replaced hardware is quiet. */
12792
+ sourceStillLive: array(CameraSwitchIdSchema).readonly(),
12793
+ swapped: boolean()
12794
+ });
12771
12795
  method(object({
12772
12796
  addonId: string(),
12773
12797
  stableId: string()
12774
- }), 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({
12798
+ }), object({ id: number() }), { kind: "mutation" }), method(object({
12799
+ sourceId: number(),
12800
+ targetId: number()
12801
+ }), MigrateDeviceResultSchema, {
12802
+ kind: "mutation",
12803
+ auth: "admin"
12804
+ }), 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({
12775
12805
  deviceId: number(),
12776
12806
  name: string()
12777
12807
  }), _void(), {
@@ -30287,6 +30317,12 @@ Object.freeze({
30287
30317
  addonId: null,
30288
30318
  access: "view"
30289
30319
  },
30320
+ "deviceManager.migrateDevice": {
30321
+ capName: "device-manager",
30322
+ capScope: "system",
30323
+ addonId: null,
30324
+ access: "create"
30325
+ },
30290
30326
  "deviceManager.persistConfig": {
30291
30327
  capName: "device-manager",
30292
30328
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-smtp-nodemailer",
3
- "version": "1.2.51",
3
+ "version": "1.2.52",
4
4
  "description": "SMTP email provider addon for CamStack — wraps `nodemailer` and registers a `smtp-provider` cap collection entry. Used by magic-link login + notifier addons.",
5
5
  "keywords": [
6
6
  "camstack",