@camstack/addon-smtp-nodemailer 1.2.104 → 1.2.106

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.
@@ -13262,6 +13262,107 @@ var ExposeInputSchema = object({
13262
13262
  });
13263
13263
  var UnexposeInputSchema = object({ deviceId: string() });
13264
13264
  method(_void(), DeviceExportStatusSchema), method(_void(), array(DeviceKindSchema)), method(_void(), array(ExposedDeviceSchema)), method(ExposeInputSchema, _void(), { kind: "mutation" }), method(UnexposeInputSchema, _void(), { kind: "mutation" });
13265
+ /** Wire/storage schema for one icon id. */
13266
+ var LocationIconIdSchema = _enum([
13267
+ "map-pin",
13268
+ "house",
13269
+ "door-open",
13270
+ "sofa",
13271
+ "utensils",
13272
+ "bed-double",
13273
+ "bath",
13274
+ "briefcase",
13275
+ "car",
13276
+ "circle-parking",
13277
+ "route",
13278
+ "trees",
13279
+ "umbrella",
13280
+ "waves-ladder",
13281
+ "fence",
13282
+ "package",
13283
+ "warehouse",
13284
+ "store",
13285
+ "sun",
13286
+ "radar"
13287
+ ]);
13288
+ /**
13289
+ * One (location, icon) assignment as it travels.
13290
+ *
13291
+ * `locationKey` is ALWAYS {@link locationIconKey} of the label — never the
13292
+ * operator's casing. The registry matches labels trimmed + case-insensitively
13293
+ * everywhere (`addLocation`, `removeLocation`, `renameLocation`), and a
13294
+ * case-only rename (`cucina` → `Cucina`) is a real edit this repo supports; a
13295
+ * map keyed on the displayed casing would orphan its entry on exactly that
13296
+ * edit. Consumers join by keying their own label through `locationIconKey`.
13297
+ */
13298
+ var LocationIconAssignmentSchema = object({
13299
+ locationKey: string(),
13300
+ icon: LocationIconIdSchema
13301
+ });
13302
+ /**
13303
+ * One (location, description) assignment as it travels.
13304
+ *
13305
+ * Same key discipline as {@link LocationIconAssignmentSchema}, and for the same
13306
+ * reason: this lived for a while in the post-analysis addon's own settings,
13307
+ * keyed by a HAND-TYPED label matched exactly and case-sensitively. A rename in
13308
+ * the Locations page carried the icon and silently orphaned the description —
13309
+ * two authorities for one thing, joined by two different rules. Now both hang
13310
+ * off the location itself, on `locationIconKey`.
13311
+ */
13312
+ var LocationDescriptionAssignmentSchema = object({
13313
+ locationKey: string(),
13314
+ description: string()
13315
+ });
13316
+ /**
13317
+ * A SITE ZONE — a named part of the property that several locations belong to.
13318
+ *
13319
+ * "Zona notte" holds every bedroom; "Zona giorno" the living room and the
13320
+ * kitchen. A camera belongs to exactly one location, and a location to at most
13321
+ * one zone, so a camera's zone is derived and never stored on the device: the
13322
+ * whole point of this entity is that grouping rooms touches no device row.
13323
+ *
13324
+ * ## Why not `zone`
13325
+ *
13326
+ * Because `zone` is already the most loaded word in this product: 612 source
13327
+ * files and 24 Italian strings where it means a DETECTION zone drawn on a
13328
+ * camera. The two are unrelated — one is a polygon in a frame, the other is a
13329
+ * set of rooms — and a reader who confuses them will look for a camera's
13330
+ * bedrooms. So the code says `siteZone` everywhere, and the UI frees the plain
13331
+ * word by calling the drawn one what it actually is: a detection zone.
13332
+ *
13333
+ * ## The key
13334
+ *
13335
+ * `siteZoneKey(label)` — trimmed, lower-cased, the SAME derivation locations
13336
+ * use (`locationIconKey`). Membership and the icon both hang off it, so a
13337
+ * case-only rename keeps them, which is exactly the orphaning that cost us a
13338
+ * silently-dropped location description.
13339
+ *
13340
+ * The icon vocabulary is the location one, unchanged: a zone is drawn on the
13341
+ * same two surfaces by the same glyph map, so a second vocabulary would be a
13342
+ * second thing to keep drawable (`scripts/check-location-icons-drawable.ts`).
13343
+ */
13344
+ /**
13345
+ * One zone as it travels: its key, the label the operator typed, its icon and
13346
+ * the locations inside it.
13347
+ *
13348
+ * The LABEL is carried alongside the key because the key is lossy on purpose —
13349
+ * a surface must show "Zona notte", not "zona notte". Locations are carried
13350
+ * here, rather than left to a second call, because every consumer wants both
13351
+ * at once and a viewer that asked twice could render a zone whose membership
13352
+ * it has not fetched yet.
13353
+ *
13354
+ * `icon: null` means nobody chose one, which is NOT the fallback pin: only one
13355
+ * of those two is a choice, and a picker has to draw them differently.
13356
+ */
13357
+ var SiteZoneSchema = object({
13358
+ zoneKey: string(),
13359
+ label: string(),
13360
+ icon: LocationIconIdSchema.nullable(),
13361
+ /** Folded location keys, sorted. A location listed here need not be
13362
+ * REGISTERED — devices carry labels nobody registered, and those rooms are
13363
+ * the ones that most want grouping. */
13364
+ locationKeys: array(string())
13365
+ });
13265
13366
  var ProviderStatusSchema = object({
13266
13367
  connected: boolean(),
13267
13368
  deviceCount: number(),
@@ -13773,6 +13874,39 @@ method(object({
13773
13874
  }), object({ moved: number() }), {
13774
13875
  kind: "mutation",
13775
13876
  auth: "admin"
13877
+ }), method(_void(), array(LocationIconAssignmentSchema)), method(object({
13878
+ location: string(),
13879
+ icon: LocationIconIdSchema.nullable()
13880
+ }), _void(), {
13881
+ kind: "mutation",
13882
+ auth: "admin"
13883
+ }), method(_void(), array(LocationDescriptionAssignmentSchema)), method(object({
13884
+ location: string(),
13885
+ description: string().max(400).nullable()
13886
+ }), _void(), {
13887
+ kind: "mutation",
13888
+ auth: "admin"
13889
+ }), method(_void(), array(SiteZoneSchema)), method(object({
13890
+ name: string(),
13891
+ icon: LocationIconIdSchema.nullable().optional()
13892
+ }), _void(), {
13893
+ kind: "mutation",
13894
+ auth: "admin"
13895
+ }), method(object({ name: string() }), _void(), {
13896
+ kind: "mutation",
13897
+ auth: "admin"
13898
+ }), method(object({
13899
+ from: string(),
13900
+ to: string()
13901
+ }), _void(), {
13902
+ kind: "mutation",
13903
+ auth: "admin"
13904
+ }), method(object({
13905
+ location: string(),
13906
+ zone: string().nullable()
13907
+ }), _void(), {
13908
+ kind: "mutation",
13909
+ auth: "admin"
13776
13910
  }), method(object({
13777
13911
  deviceId: number(),
13778
13912
  disabled: boolean()
@@ -32609,6 +32743,18 @@ Object.freeze({
32609
32743
  addonId: null,
32610
32744
  access: "view"
32611
32745
  },
32746
+ "deviceManager.listLocationDescriptions": {
32747
+ capName: "device-manager",
32748
+ capScope: "system",
32749
+ addonId: null,
32750
+ access: "view"
32751
+ },
32752
+ "deviceManager.listLocationIcons": {
32753
+ capName: "device-manager",
32754
+ capScope: "system",
32755
+ addonId: null,
32756
+ access: "view"
32757
+ },
32612
32758
  "deviceManager.listLocations": {
32613
32759
  capName: "device-manager",
32614
32760
  capScope: "system",
@@ -32621,6 +32767,12 @@ Object.freeze({
32621
32767
  addonId: null,
32622
32768
  access: "view"
32623
32769
  },
32770
+ "deviceManager.listSiteZones": {
32771
+ capName: "device-manager",
32772
+ capScope: "system",
32773
+ addonId: null,
32774
+ access: "view"
32775
+ },
32624
32776
  "deviceManager.listWrappersForCap": {
32625
32777
  capName: "device-manager",
32626
32778
  capScope: "system",
@@ -32705,12 +32857,24 @@ Object.freeze({
32705
32857
  addonId: null,
32706
32858
  access: "delete"
32707
32859
  },
32860
+ "deviceManager.removeSiteZone": {
32861
+ capName: "device-manager",
32862
+ capScope: "system",
32863
+ addonId: null,
32864
+ access: "delete"
32865
+ },
32708
32866
  "deviceManager.renameLocation": {
32709
32867
  capName: "device-manager",
32710
32868
  capScope: "system",
32711
32869
  addonId: null,
32712
32870
  access: "create"
32713
32871
  },
32872
+ "deviceManager.renameSiteZone": {
32873
+ capName: "device-manager",
32874
+ capScope: "system",
32875
+ addonId: null,
32876
+ access: "create"
32877
+ },
32714
32878
  "deviceManager.runDeviceAction": {
32715
32879
  capName: "device-manager",
32716
32880
  capScope: "system",
@@ -32753,6 +32917,24 @@ Object.freeze({
32753
32917
  addonId: null,
32754
32918
  access: "create"
32755
32919
  },
32920
+ "deviceManager.setLocationDescription": {
32921
+ capName: "device-manager",
32922
+ capScope: "system",
32923
+ addonId: null,
32924
+ access: "create"
32925
+ },
32926
+ "deviceManager.setLocationIcon": {
32927
+ capName: "device-manager",
32928
+ capScope: "system",
32929
+ addonId: null,
32930
+ access: "create"
32931
+ },
32932
+ "deviceManager.setLocationZone": {
32933
+ capName: "device-manager",
32934
+ capScope: "system",
32935
+ addonId: null,
32936
+ access: "create"
32937
+ },
32756
32938
  "deviceManager.setMetadata": {
32757
32939
  capName: "device-manager",
32758
32940
  capScope: "system",
@@ -32783,6 +32965,12 @@ Object.freeze({
32783
32965
  addonId: null,
32784
32966
  access: "create"
32785
32967
  },
32968
+ "deviceManager.setSiteZone": {
32969
+ capName: "device-manager",
32970
+ capScope: "system",
32971
+ addonId: null,
32972
+ access: "create"
32973
+ },
32786
32974
  "deviceManager.setStreamProfileMap": {
32787
32975
  capName: "device-manager",
32788
32976
  capScope: "system",
@@ -13260,6 +13260,107 @@ var ExposeInputSchema = object({
13260
13260
  });
13261
13261
  var UnexposeInputSchema = object({ deviceId: string() });
13262
13262
  method(_void(), DeviceExportStatusSchema), method(_void(), array(DeviceKindSchema)), method(_void(), array(ExposedDeviceSchema)), method(ExposeInputSchema, _void(), { kind: "mutation" }), method(UnexposeInputSchema, _void(), { kind: "mutation" });
13263
+ /** Wire/storage schema for one icon id. */
13264
+ var LocationIconIdSchema = _enum([
13265
+ "map-pin",
13266
+ "house",
13267
+ "door-open",
13268
+ "sofa",
13269
+ "utensils",
13270
+ "bed-double",
13271
+ "bath",
13272
+ "briefcase",
13273
+ "car",
13274
+ "circle-parking",
13275
+ "route",
13276
+ "trees",
13277
+ "umbrella",
13278
+ "waves-ladder",
13279
+ "fence",
13280
+ "package",
13281
+ "warehouse",
13282
+ "store",
13283
+ "sun",
13284
+ "radar"
13285
+ ]);
13286
+ /**
13287
+ * One (location, icon) assignment as it travels.
13288
+ *
13289
+ * `locationKey` is ALWAYS {@link locationIconKey} of the label — never the
13290
+ * operator's casing. The registry matches labels trimmed + case-insensitively
13291
+ * everywhere (`addLocation`, `removeLocation`, `renameLocation`), and a
13292
+ * case-only rename (`cucina` → `Cucina`) is a real edit this repo supports; a
13293
+ * map keyed on the displayed casing would orphan its entry on exactly that
13294
+ * edit. Consumers join by keying their own label through `locationIconKey`.
13295
+ */
13296
+ var LocationIconAssignmentSchema = object({
13297
+ locationKey: string(),
13298
+ icon: LocationIconIdSchema
13299
+ });
13300
+ /**
13301
+ * One (location, description) assignment as it travels.
13302
+ *
13303
+ * Same key discipline as {@link LocationIconAssignmentSchema}, and for the same
13304
+ * reason: this lived for a while in the post-analysis addon's own settings,
13305
+ * keyed by a HAND-TYPED label matched exactly and case-sensitively. A rename in
13306
+ * the Locations page carried the icon and silently orphaned the description —
13307
+ * two authorities for one thing, joined by two different rules. Now both hang
13308
+ * off the location itself, on `locationIconKey`.
13309
+ */
13310
+ var LocationDescriptionAssignmentSchema = object({
13311
+ locationKey: string(),
13312
+ description: string()
13313
+ });
13314
+ /**
13315
+ * A SITE ZONE — a named part of the property that several locations belong to.
13316
+ *
13317
+ * "Zona notte" holds every bedroom; "Zona giorno" the living room and the
13318
+ * kitchen. A camera belongs to exactly one location, and a location to at most
13319
+ * one zone, so a camera's zone is derived and never stored on the device: the
13320
+ * whole point of this entity is that grouping rooms touches no device row.
13321
+ *
13322
+ * ## Why not `zone`
13323
+ *
13324
+ * Because `zone` is already the most loaded word in this product: 612 source
13325
+ * files and 24 Italian strings where it means a DETECTION zone drawn on a
13326
+ * camera. The two are unrelated — one is a polygon in a frame, the other is a
13327
+ * set of rooms — and a reader who confuses them will look for a camera's
13328
+ * bedrooms. So the code says `siteZone` everywhere, and the UI frees the plain
13329
+ * word by calling the drawn one what it actually is: a detection zone.
13330
+ *
13331
+ * ## The key
13332
+ *
13333
+ * `siteZoneKey(label)` — trimmed, lower-cased, the SAME derivation locations
13334
+ * use (`locationIconKey`). Membership and the icon both hang off it, so a
13335
+ * case-only rename keeps them, which is exactly the orphaning that cost us a
13336
+ * silently-dropped location description.
13337
+ *
13338
+ * The icon vocabulary is the location one, unchanged: a zone is drawn on the
13339
+ * same two surfaces by the same glyph map, so a second vocabulary would be a
13340
+ * second thing to keep drawable (`scripts/check-location-icons-drawable.ts`).
13341
+ */
13342
+ /**
13343
+ * One zone as it travels: its key, the label the operator typed, its icon and
13344
+ * the locations inside it.
13345
+ *
13346
+ * The LABEL is carried alongside the key because the key is lossy on purpose —
13347
+ * a surface must show "Zona notte", not "zona notte". Locations are carried
13348
+ * here, rather than left to a second call, because every consumer wants both
13349
+ * at once and a viewer that asked twice could render a zone whose membership
13350
+ * it has not fetched yet.
13351
+ *
13352
+ * `icon: null` means nobody chose one, which is NOT the fallback pin: only one
13353
+ * of those two is a choice, and a picker has to draw them differently.
13354
+ */
13355
+ var SiteZoneSchema = object({
13356
+ zoneKey: string(),
13357
+ label: string(),
13358
+ icon: LocationIconIdSchema.nullable(),
13359
+ /** Folded location keys, sorted. A location listed here need not be
13360
+ * REGISTERED — devices carry labels nobody registered, and those rooms are
13361
+ * the ones that most want grouping. */
13362
+ locationKeys: array(string())
13363
+ });
13263
13364
  var ProviderStatusSchema = object({
13264
13365
  connected: boolean(),
13265
13366
  deviceCount: number(),
@@ -13771,6 +13872,39 @@ method(object({
13771
13872
  }), object({ moved: number() }), {
13772
13873
  kind: "mutation",
13773
13874
  auth: "admin"
13875
+ }), method(_void(), array(LocationIconAssignmentSchema)), method(object({
13876
+ location: string(),
13877
+ icon: LocationIconIdSchema.nullable()
13878
+ }), _void(), {
13879
+ kind: "mutation",
13880
+ auth: "admin"
13881
+ }), method(_void(), array(LocationDescriptionAssignmentSchema)), method(object({
13882
+ location: string(),
13883
+ description: string().max(400).nullable()
13884
+ }), _void(), {
13885
+ kind: "mutation",
13886
+ auth: "admin"
13887
+ }), method(_void(), array(SiteZoneSchema)), method(object({
13888
+ name: string(),
13889
+ icon: LocationIconIdSchema.nullable().optional()
13890
+ }), _void(), {
13891
+ kind: "mutation",
13892
+ auth: "admin"
13893
+ }), method(object({ name: string() }), _void(), {
13894
+ kind: "mutation",
13895
+ auth: "admin"
13896
+ }), method(object({
13897
+ from: string(),
13898
+ to: string()
13899
+ }), _void(), {
13900
+ kind: "mutation",
13901
+ auth: "admin"
13902
+ }), method(object({
13903
+ location: string(),
13904
+ zone: string().nullable()
13905
+ }), _void(), {
13906
+ kind: "mutation",
13907
+ auth: "admin"
13774
13908
  }), method(object({
13775
13909
  deviceId: number(),
13776
13910
  disabled: boolean()
@@ -32607,6 +32741,18 @@ Object.freeze({
32607
32741
  addonId: null,
32608
32742
  access: "view"
32609
32743
  },
32744
+ "deviceManager.listLocationDescriptions": {
32745
+ capName: "device-manager",
32746
+ capScope: "system",
32747
+ addonId: null,
32748
+ access: "view"
32749
+ },
32750
+ "deviceManager.listLocationIcons": {
32751
+ capName: "device-manager",
32752
+ capScope: "system",
32753
+ addonId: null,
32754
+ access: "view"
32755
+ },
32610
32756
  "deviceManager.listLocations": {
32611
32757
  capName: "device-manager",
32612
32758
  capScope: "system",
@@ -32619,6 +32765,12 @@ Object.freeze({
32619
32765
  addonId: null,
32620
32766
  access: "view"
32621
32767
  },
32768
+ "deviceManager.listSiteZones": {
32769
+ capName: "device-manager",
32770
+ capScope: "system",
32771
+ addonId: null,
32772
+ access: "view"
32773
+ },
32622
32774
  "deviceManager.listWrappersForCap": {
32623
32775
  capName: "device-manager",
32624
32776
  capScope: "system",
@@ -32703,12 +32855,24 @@ Object.freeze({
32703
32855
  addonId: null,
32704
32856
  access: "delete"
32705
32857
  },
32858
+ "deviceManager.removeSiteZone": {
32859
+ capName: "device-manager",
32860
+ capScope: "system",
32861
+ addonId: null,
32862
+ access: "delete"
32863
+ },
32706
32864
  "deviceManager.renameLocation": {
32707
32865
  capName: "device-manager",
32708
32866
  capScope: "system",
32709
32867
  addonId: null,
32710
32868
  access: "create"
32711
32869
  },
32870
+ "deviceManager.renameSiteZone": {
32871
+ capName: "device-manager",
32872
+ capScope: "system",
32873
+ addonId: null,
32874
+ access: "create"
32875
+ },
32712
32876
  "deviceManager.runDeviceAction": {
32713
32877
  capName: "device-manager",
32714
32878
  capScope: "system",
@@ -32751,6 +32915,24 @@ Object.freeze({
32751
32915
  addonId: null,
32752
32916
  access: "create"
32753
32917
  },
32918
+ "deviceManager.setLocationDescription": {
32919
+ capName: "device-manager",
32920
+ capScope: "system",
32921
+ addonId: null,
32922
+ access: "create"
32923
+ },
32924
+ "deviceManager.setLocationIcon": {
32925
+ capName: "device-manager",
32926
+ capScope: "system",
32927
+ addonId: null,
32928
+ access: "create"
32929
+ },
32930
+ "deviceManager.setLocationZone": {
32931
+ capName: "device-manager",
32932
+ capScope: "system",
32933
+ addonId: null,
32934
+ access: "create"
32935
+ },
32754
32936
  "deviceManager.setMetadata": {
32755
32937
  capName: "device-manager",
32756
32938
  capScope: "system",
@@ -32781,6 +32963,12 @@ Object.freeze({
32781
32963
  addonId: null,
32782
32964
  access: "create"
32783
32965
  },
32966
+ "deviceManager.setSiteZone": {
32967
+ capName: "device-manager",
32968
+ capScope: "system",
32969
+ addonId: null,
32970
+ access: "create"
32971
+ },
32784
32972
  "deviceManager.setStreamProfileMap": {
32785
32973
  capName: "device-manager",
32786
32974
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-smtp-nodemailer",
3
- "version": "1.2.104",
3
+ "version": "1.2.106",
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",