@camstack/addon-smtp-nodemailer 1.2.58 → 1.2.60

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.
@@ -12568,7 +12568,26 @@ var DiscoveryCandidateSchema = object({
12568
12568
  * identity ahead of adoption. Rendering metadata (unit, precision)
12569
12569
  * flows live through the cap STATUS SLICE after adoption.
12570
12570
  */
12571
- sourceInfo: SourceInfoSchema.optional()
12571
+ sourceInfo: SourceInfoSchema.optional(),
12572
+ /**
12573
+ * Set when this candidate is a device the provider ALREADY owns.
12574
+ *
12575
+ * A scan cannot generally produce the identity a device was onboarded under
12576
+ * (Reolink keys on `mac-<mac>`, learned at adopt time), so a stableId
12577
+ * comparison never matches and an owned device looks addable. Re-adopting one
12578
+ * overwrites its config with scan-derived values — that is how a Home Hub's
12579
+ * Baichuan port was overwritten with its ONVIF port, taking the hub and its
12580
+ * three child cameras offline for four hours.
12581
+ *
12582
+ * A provider that can recognise its own devices says so here. Absent means
12583
+ * "not recognised", which is not the same as "known to be new" — a provider
12584
+ * that cannot tell simply never sets it.
12585
+ */
12586
+ alreadyOnboarded: boolean().optional(),
12587
+ /** Numeric id of the device this candidate was matched to. Set with `alreadyOnboarded`. */
12588
+ onboardedDeviceId: number().optional(),
12589
+ /** Operator-facing name of the matched device, so the UI can say WHICH one it is. */
12590
+ onboardedName: string().optional()
12572
12591
  });
12573
12592
  /**
12574
12593
  * Flat device summary returned by `createDevice` / `adoptDiscoveredDevice`.
@@ -12615,7 +12634,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
12615
12634
  id: string(),
12616
12635
  name: string(),
12617
12636
  type: string()
12618
- }))), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
12637
+ }))), method(object({ stableId: string() }), object({ deviceId: number() }), {
12638
+ kind: "mutation",
12639
+ timeoutMs: 3 * 6e4
12640
+ }), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
12619
12641
  kind: "mutation",
12620
12642
  auth: "admin"
12621
12643
  }), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
@@ -12896,7 +12918,8 @@ method(object({
12896
12918
  targetId: number()
12897
12919
  }), MigrateDeviceResultSchema, {
12898
12920
  kind: "mutation",
12899
- auth: "admin"
12921
+ auth: "admin",
12922
+ timeoutMs: 12 * 6e4
12900
12923
  }), 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({
12901
12924
  deviceId: number(),
12902
12925
  name: string()
@@ -30768,6 +30791,12 @@ Object.freeze({
30768
30791
  addonId: null,
30769
30792
  access: "view"
30770
30793
  },
30794
+ "deviceProvider.reloadDevice": {
30795
+ capName: "device-provider",
30796
+ capScope: "system",
30797
+ addonId: null,
30798
+ access: "create"
30799
+ },
30771
30800
  "deviceProvider.start": {
30772
30801
  capName: "device-provider",
30773
30802
  capScope: "system",
@@ -12566,7 +12566,26 @@ var DiscoveryCandidateSchema = object({
12566
12566
  * identity ahead of adoption. Rendering metadata (unit, precision)
12567
12567
  * flows live through the cap STATUS SLICE after adoption.
12568
12568
  */
12569
- sourceInfo: SourceInfoSchema.optional()
12569
+ sourceInfo: SourceInfoSchema.optional(),
12570
+ /**
12571
+ * Set when this candidate is a device the provider ALREADY owns.
12572
+ *
12573
+ * A scan cannot generally produce the identity a device was onboarded under
12574
+ * (Reolink keys on `mac-<mac>`, learned at adopt time), so a stableId
12575
+ * comparison never matches and an owned device looks addable. Re-adopting one
12576
+ * overwrites its config with scan-derived values — that is how a Home Hub's
12577
+ * Baichuan port was overwritten with its ONVIF port, taking the hub and its
12578
+ * three child cameras offline for four hours.
12579
+ *
12580
+ * A provider that can recognise its own devices says so here. Absent means
12581
+ * "not recognised", which is not the same as "known to be new" — a provider
12582
+ * that cannot tell simply never sets it.
12583
+ */
12584
+ alreadyOnboarded: boolean().optional(),
12585
+ /** Numeric id of the device this candidate was matched to. Set with `alreadyOnboarded`. */
12586
+ onboardedDeviceId: number().optional(),
12587
+ /** Operator-facing name of the matched device, so the UI can say WHICH one it is. */
12588
+ onboardedName: string().optional()
12570
12589
  });
12571
12590
  /**
12572
12591
  * Flat device summary returned by `createDevice` / `adoptDiscoveredDevice`.
@@ -12613,7 +12632,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
12613
12632
  id: string(),
12614
12633
  name: string(),
12615
12634
  type: string()
12616
- }))), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
12635
+ }))), method(object({ stableId: string() }), object({ deviceId: number() }), {
12636
+ kind: "mutation",
12637
+ timeoutMs: 3 * 6e4
12638
+ }), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
12617
12639
  kind: "mutation",
12618
12640
  auth: "admin"
12619
12641
  }), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
@@ -12894,7 +12916,8 @@ method(object({
12894
12916
  targetId: number()
12895
12917
  }), MigrateDeviceResultSchema, {
12896
12918
  kind: "mutation",
12897
- auth: "admin"
12919
+ auth: "admin",
12920
+ timeoutMs: 12 * 6e4
12898
12921
  }), 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({
12899
12922
  deviceId: number(),
12900
12923
  name: string()
@@ -30766,6 +30789,12 @@ Object.freeze({
30766
30789
  addonId: null,
30767
30790
  access: "view"
30768
30791
  },
30792
+ "deviceProvider.reloadDevice": {
30793
+ capName: "device-provider",
30794
+ capScope: "system",
30795
+ addonId: null,
30796
+ access: "create"
30797
+ },
30769
30798
  "deviceProvider.start": {
30770
30799
  capName: "device-provider",
30771
30800
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-smtp-nodemailer",
3
- "version": "1.2.58",
3
+ "version": "1.2.60",
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",