@camstack/server 1.2.874 → 1.2.876

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.
Files changed (88) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/api/trpc/generated-cap-routers.js +18 -0
  3. package/package.json +9 -11
  4. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  5. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  6. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  7. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  8. package/system/dist/builtins/alerts/alerts.addon.js +1 -1
  9. package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
  10. package/system/dist/builtins/autotrack/index.js +1 -1
  11. package/system/dist/builtins/autotrack/index.mjs +1 -1
  12. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
  13. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
  14. package/system/dist/builtins/calendars/calendars.addon.js +1 -1
  15. package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
  16. package/system/dist/builtins/camera-grid/index.js +1 -1
  17. package/system/dist/builtins/camera-grid/index.mjs +1 -1
  18. package/system/dist/builtins/composer/composer.addon.js +4 -4
  19. package/system/dist/builtins/composer/composer.addon.mjs +4 -4
  20. package/system/dist/builtins/console-logging/index.js +1 -1
  21. package/system/dist/builtins/console-logging/index.mjs +1 -1
  22. package/system/dist/builtins/core-blocks/core-blocks.addon.js +3 -3
  23. package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +3 -3
  24. package/system/dist/builtins/device-history/device-history.addon.js +2 -2
  25. package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
  26. package/system/dist/builtins/device-manager/device-manager.addon.js +2 -2
  27. package/system/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
  28. package/system/dist/builtins/hub-forwarder/index.js +1 -1
  29. package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
  30. package/system/dist/builtins/keychain/index.js +4 -4
  31. package/system/dist/builtins/keychain/index.mjs +4 -4
  32. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  33. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  34. package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
  35. package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
  36. package/system/dist/builtins/local-network/local-network.addon.js +3 -3
  37. package/system/dist/builtins/local-network/local-network.addon.mjs +3 -3
  38. package/system/dist/builtins/loki-logging/index.js +1 -1
  39. package/system/dist/builtins/loki-logging/index.mjs +1 -1
  40. package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  41. package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  42. package/system/dist/builtins/platform-probe/index.js +1 -1
  43. package/system/dist/builtins/platform-probe/index.mjs +1 -1
  44. package/system/dist/builtins/record-entries/index.js +1 -1
  45. package/system/dist/builtins/record-entries/index.mjs +1 -1
  46. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  47. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  48. package/system/dist/builtins/snapshot/index.js +1 -1
  49. package/system/dist/builtins/snapshot/index.mjs +1 -1
  50. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  51. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  52. package/system/dist/builtins/sqlite-storage/index.js +1 -1
  53. package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
  54. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
  55. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
  56. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
  57. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
  58. package/system/dist/builtins/system-config/system-config.addon.js +3 -3
  59. package/system/dist/builtins/system-config/system-config.addon.mjs +3 -3
  60. package/system/dist/builtins/winston-logging/index.js +1 -1
  61. package/system/dist/builtins/winston-logging/index.mjs +1 -1
  62. package/system/dist/{capture-engine-v5nSEyMa.mjs → capture-engine-Bao8AioF.mjs} +1 -1
  63. package/system/dist/{capture-engine-Cm-Bq2GH.js → capture-engine-DtuMWHR3.js} +1 -1
  64. package/system/dist/{composition-sources-BVxOFdMp.mjs → composition-sources-CCoQYZna.mjs} +1 -1
  65. package/system/dist/{composition-sources-DgAdHcEq.js → composition-sources-DPSSQaGb.js} +1 -1
  66. package/system/dist/{constants-Di6cOA3l.mjs → constants-BQNuuICz.mjs} +1 -1
  67. package/system/dist/{constants-CPAYm7Bq.js → constants-wcqPhWGp.js} +1 -1
  68. package/system/dist/{device-ca-CtsnO3ul.js → device-ca-CDsYbRF8.js} +1 -1
  69. package/system/dist/{device-ca-DukusHra.mjs → device-ca-DvK5zoNx.mjs} +1 -1
  70. package/system/dist/{dist-AbO-Bmtw.js → dist-CdW0TjIj.js} +1107 -36
  71. package/system/dist/{dist-CIUo0MpB.mjs → dist-DcH8pKL-.mjs} +1107 -36
  72. package/system/dist/file-host-worker.js +1 -1
  73. package/system/dist/file-host-worker.mjs +1 -1
  74. package/system/dist/{hub-identity-DyXxu-ZQ.js → hub-identity-BRxxw7hh.js} +1 -1
  75. package/system/dist/{hub-identity-CMzGT-O8.mjs → hub-identity-DOyLUW_7.mjs} +1 -1
  76. package/system/dist/{hub-mdns-ciao-BTpy99VT.mjs → hub-mdns-ciao-9IzOmoit.mjs} +2 -2
  77. package/system/dist/{hub-mdns-ciao-C6Gkg80T.js → hub-mdns-ciao-lO2BAONK.js} +2 -2
  78. package/system/dist/index.js +20 -16
  79. package/system/dist/index.mjs +20 -16
  80. package/system/dist/{legacy-integration-rows-door-ChwuaraH.mjs → legacy-integration-rows-door-CTxk0fz7.mjs} +1 -1
  81. package/system/dist/{legacy-integration-rows-door-BQztEAgV.js → legacy-integration-rows-door-DBL83TzQ.js} +1 -1
  82. package/system/dist/{rename-composition-block-CnQKQDSg.js → rename-composition-block-CKZqCPQF.js} +1 -1
  83. package/system/dist/{rename-composition-block-CEkkKNmw.mjs → rename-composition-block-DK9CVk1U.mjs} +1 -1
  84. package/system/dist/{restore-archive-DRYoZ_dn.js → restore-archive-2OReGcRK.js} +1 -1
  85. package/system/dist/{restore-archive-DROkE3b4.mjs → restore-archive-CruwV_-u.mjs} +1 -1
  86. package/system/dist/{wal-maintenance-C81WD-_A.js → wal-maintenance-CN7sdJj-.js} +0 -0
  87. package/system/dist/{wal-maintenance-DYmw2kX7.mjs → wal-maintenance-DgFSFQH0.mjs} +0 -0
  88. package/system/package.json +1 -1
@@ -1274,7 +1274,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
1274
1274
  */
1275
1275
  var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
1276
1276
  //#endregion
1277
- //#region ../types/dist/sleep-BnR9qGOv.mjs
1277
+ //#region ../types/dist/sleep-CLDVTB5R.mjs
1278
1278
  /**
1279
1279
  * The audio chunk plane's byte format, and the ONE expansion from a coded
1280
1280
  * window to float samples (D455).
@@ -14815,6 +14815,118 @@ var CAP_VOCABULARY_BY_NAME = {
14815
14815
  },
14816
14816
  unit: "°C",
14817
14817
  icon: "thermometer"
14818
+ },
14819
+ {
14820
+ kind: "numeric",
14821
+ field: "feelsLike",
14822
+ quantity: {
14823
+ en: "the feels-like temperature",
14824
+ it: "la temperatura percepita"
14825
+ },
14826
+ label: {
14827
+ en: "Feels like",
14828
+ it: "Percepita"
14829
+ },
14830
+ unit: "°C",
14831
+ icon: "thermometer"
14832
+ },
14833
+ {
14834
+ kind: "numeric",
14835
+ field: "vpd",
14836
+ quantity: {
14837
+ en: "the vapour-pressure deficit",
14838
+ it: "il deficit di pressione di vapore"
14839
+ },
14840
+ label: {
14841
+ en: "VPD",
14842
+ it: "VPD"
14843
+ },
14844
+ unit: "kPa",
14845
+ icon: "gauge"
14846
+ },
14847
+ {
14848
+ kind: "numeric",
14849
+ field: "windGustMax",
14850
+ quantity: {
14851
+ en: "the highest gust today",
14852
+ it: "la raffica massima di oggi"
14853
+ },
14854
+ label: {
14855
+ en: "Max gust",
14856
+ it: "Raffica max"
14857
+ },
14858
+ unit: "m/s",
14859
+ icon: "wind"
14860
+ },
14861
+ {
14862
+ kind: "numeric",
14863
+ field: "windBearingAvg",
14864
+ quantity: {
14865
+ en: "the average wind bearing",
14866
+ it: "la direzione media del vento"
14867
+ },
14868
+ label: {
14869
+ en: "Avg bearing",
14870
+ it: "Direzione media"
14871
+ },
14872
+ unit: "°",
14873
+ icon: "wind"
14874
+ },
14875
+ {
14876
+ kind: "numeric",
14877
+ field: "rain24h",
14878
+ quantity: {
14879
+ en: "the rain in the last 24 hours",
14880
+ it: "la pioggia delle ultime 24 ore"
14881
+ },
14882
+ label: {
14883
+ en: "Rain 24 h",
14884
+ it: "Pioggia 24 h"
14885
+ },
14886
+ unit: "mm",
14887
+ icon: "droplets"
14888
+ },
14889
+ {
14890
+ kind: "numeric",
14891
+ field: "rainWeekly",
14892
+ quantity: {
14893
+ en: "the rain this week",
14894
+ it: "la pioggia di questa settimana"
14895
+ },
14896
+ label: {
14897
+ en: "Rain week",
14898
+ it: "Pioggia settimana"
14899
+ },
14900
+ unit: "mm",
14901
+ icon: "droplets"
14902
+ },
14903
+ {
14904
+ kind: "numeric",
14905
+ field: "rainMonthly",
14906
+ quantity: {
14907
+ en: "the rain this month",
14908
+ it: "la pioggia di questo mese"
14909
+ },
14910
+ label: {
14911
+ en: "Rain month",
14912
+ it: "Pioggia mese"
14913
+ },
14914
+ unit: "mm",
14915
+ icon: "droplets"
14916
+ },
14917
+ {
14918
+ kind: "numeric",
14919
+ field: "rainYearly",
14920
+ quantity: {
14921
+ en: "the rain this year",
14922
+ it: "la pioggia di quest’anno"
14923
+ },
14924
+ label: {
14925
+ en: "Rain year",
14926
+ it: "Pioggia anno"
14927
+ },
14928
+ unit: "mm",
14929
+ icon: "droplets"
14818
14930
  }
14819
14931
  ]
14820
14932
  },
@@ -18281,6 +18393,38 @@ Object.freeze({
18281
18393
  {
18282
18394
  "path": "dewPoint",
18283
18395
  "valueType": "number"
18396
+ },
18397
+ {
18398
+ "path": "feelsLike",
18399
+ "valueType": "number"
18400
+ },
18401
+ {
18402
+ "path": "vpd",
18403
+ "valueType": "number"
18404
+ },
18405
+ {
18406
+ "path": "windGustMax",
18407
+ "valueType": "number"
18408
+ },
18409
+ {
18410
+ "path": "windBearingAvg",
18411
+ "valueType": "number"
18412
+ },
18413
+ {
18414
+ "path": "rain24h",
18415
+ "valueType": "number"
18416
+ },
18417
+ {
18418
+ "path": "rainWeekly",
18419
+ "valueType": "number"
18420
+ },
18421
+ {
18422
+ "path": "rainMonthly",
18423
+ "valueType": "number"
18424
+ },
18425
+ {
18426
+ "path": "rainYearly",
18427
+ "valueType": "number"
18284
18428
  }
18285
18429
  ],
18286
18430
  "zone-analytics": [
@@ -61016,13 +61160,14 @@ var connectivityCapability = {
61016
61160
  * its device tracks consumables registers it; the provider names each item
61017
61161
  * verbatim and says which `kind` it is.
61018
61162
  *
61019
- * The admin UI renders it as ONE collapsible section directly under the
61020
- * device page's hero card (`placement: 'hero'`), for every device bound to
61021
- * this cap — never drawn by a device type's hero card itself (D915).
61163
+ * The admin UI shows it in the device card's consumables chip and popover
61164
+ * (kind-aware level, remaining time, "Reset"), for every device bound to this
61165
+ * cap (D1023). It no longer has a section of its own under the hero card
61166
+ * (D915 on that point).
61022
61167
  *
61023
61168
  * Like `childLayout`, the cap is INERT until a provider sets items: no
61024
61169
  * provider populates it by guessing (no HA inference). The UI renders a
61025
- * "No consumables reported" placeholder when `items` is empty.
61170
+ * "No consumables reported" line when `items` is empty.
61026
61171
  */
61027
61172
  /**
61028
61173
  * What an item IS, which decides which direction is bad:
@@ -61109,7 +61254,7 @@ var ConsumablesStatusSchema = zod.z.object({
61109
61254
  });
61110
61255
  /** Synthesize seed for a link-built status (no native provider).
61111
61256
  *
61112
- * ⚠ NO LIVE CALLER since 2026-08-08 (device-links deleted; see
61257
+ * ! NO LIVE CALLER since 2026-08-08 (device-links deleted; see
61113
61258
  * `CapabilityStatusSchema.empty`). The wiring guidance below was written for
61114
61259
  * exactly the case the operator is asking about again — a Dreame's HA
61115
61260
  * consumable-life sensors — so it is kept for that conversation, not because
@@ -61213,14 +61358,6 @@ var consumablesCapability = {
61213
61358
  deviceNative: true,
61214
61359
  mode: "singleton",
61215
61360
  deviceTypes: Object.values(DeviceType),
61216
- deviceConfig: { ui: {
61217
- kind: "widget",
61218
- widgetId: "host/consumables-panel",
61219
- tab: "consumables",
61220
- placement: "hero",
61221
- label: "Consumables",
61222
- order: 5
61223
- } },
61224
61361
  methods: {
61225
61362
  /** Mark a consumable as replaced — resets its remaining life. Only
61226
61363
  * meaningful when the item's `resettable` is true. */
@@ -62563,7 +62700,7 @@ var mediaPlayerCapability = {
62563
62700
  };
62564
62701
  /**
62565
62702
  * Customize catalog, projected from every `*.cap.ts` `customize` block.
62566
- * 12 caps. Field keys are `runtimeState` paths. No Zod.
62703
+ * 13 caps. Field keys are `runtimeState` paths. No Zod.
62567
62704
  */
62568
62705
  var CAP_CUSTOMIZE_CATALOG = {
62569
62706
  "battery": {
@@ -63480,6 +63617,572 @@ var CAP_CUSTOMIZE_CATALOG = {
63480
63617
  path: "running",
63481
63618
  by: "running"
63482
63619
  }]
63620
+ },
63621
+ "weather-station": {
63622
+ version: 1,
63623
+ targets: [
63624
+ {
63625
+ id: "temperature",
63626
+ cardinality: "scalar",
63627
+ deviceTypes: [DeviceType.WeatherStation],
63628
+ apply: "add",
63629
+ vocabularyCap: "weather-station",
63630
+ vocabularyStateField: "temperature",
63631
+ sources: [{
63632
+ kind: "numeric",
63633
+ requiredUnit: "°C",
63634
+ transformKinds: ["identity"],
63635
+ transforms: [{ kind: "identity" }]
63636
+ }],
63637
+ sourceReport: { status: "assignment-status" },
63638
+ advancedExpression: false,
63639
+ path: "temperature",
63640
+ valueKind: "number",
63641
+ nullable: true,
63642
+ companions: [{
63643
+ kind: "clock",
63644
+ path: "lastFetchedAt",
63645
+ when: "add"
63646
+ }]
63647
+ },
63648
+ {
63649
+ id: "humidity",
63650
+ cardinality: "scalar",
63651
+ deviceTypes: [DeviceType.WeatherStation],
63652
+ apply: "add",
63653
+ vocabularyCap: "weather-station",
63654
+ vocabularyStateField: "humidity",
63655
+ sources: [{
63656
+ kind: "numeric",
63657
+ requiredUnit: "%",
63658
+ transformKinds: ["identity"],
63659
+ transforms: [{ kind: "identity" }]
63660
+ }],
63661
+ sourceReport: { status: "assignment-status" },
63662
+ advancedExpression: false,
63663
+ path: "humidity",
63664
+ valueKind: "number",
63665
+ nullable: true,
63666
+ companions: [{
63667
+ kind: "clock",
63668
+ path: "lastFetchedAt",
63669
+ when: "add"
63670
+ }]
63671
+ },
63672
+ {
63673
+ id: "pressure",
63674
+ cardinality: "scalar",
63675
+ deviceTypes: [DeviceType.WeatherStation],
63676
+ apply: "add",
63677
+ vocabularyCap: "weather-station",
63678
+ vocabularyStateField: "pressure",
63679
+ sources: [{
63680
+ kind: "numeric",
63681
+ requiredUnit: "hPa",
63682
+ transformKinds: ["identity"],
63683
+ transforms: [{ kind: "identity" }]
63684
+ }],
63685
+ sourceReport: { status: "assignment-status" },
63686
+ advancedExpression: false,
63687
+ path: "pressure",
63688
+ valueKind: "number",
63689
+ nullable: true,
63690
+ companions: [{
63691
+ kind: "clock",
63692
+ path: "lastFetchedAt",
63693
+ when: "add"
63694
+ }]
63695
+ },
63696
+ {
63697
+ id: "windSpeed",
63698
+ cardinality: "scalar",
63699
+ deviceTypes: [DeviceType.WeatherStation],
63700
+ apply: "add",
63701
+ vocabularyCap: "weather-station",
63702
+ vocabularyStateField: "windSpeed",
63703
+ sources: [{
63704
+ kind: "numeric",
63705
+ requiredUnit: "m/s",
63706
+ transformKinds: ["identity"],
63707
+ transforms: [{ kind: "identity" }]
63708
+ }],
63709
+ sourceReport: { status: "assignment-status" },
63710
+ advancedExpression: false,
63711
+ path: "windSpeed",
63712
+ valueKind: "number",
63713
+ nullable: true,
63714
+ companions: [{
63715
+ kind: "clock",
63716
+ path: "lastFetchedAt",
63717
+ when: "add"
63718
+ }]
63719
+ },
63720
+ {
63721
+ id: "windGust",
63722
+ cardinality: "scalar",
63723
+ deviceTypes: [DeviceType.WeatherStation],
63724
+ apply: "add",
63725
+ vocabularyCap: "weather-station",
63726
+ vocabularyStateField: "windGust",
63727
+ sources: [{
63728
+ kind: "numeric",
63729
+ requiredUnit: "m/s",
63730
+ transformKinds: ["identity"],
63731
+ transforms: [{ kind: "identity" }]
63732
+ }],
63733
+ sourceReport: { status: "assignment-status" },
63734
+ advancedExpression: false,
63735
+ path: "windGust",
63736
+ valueKind: "number",
63737
+ nullable: true,
63738
+ companions: [{
63739
+ kind: "clock",
63740
+ path: "lastFetchedAt",
63741
+ when: "add"
63742
+ }]
63743
+ },
63744
+ {
63745
+ id: "windBearing",
63746
+ cardinality: "scalar",
63747
+ deviceTypes: [DeviceType.WeatherStation],
63748
+ apply: "add",
63749
+ vocabularyCap: "weather-station",
63750
+ vocabularyStateField: "windBearing",
63751
+ sources: [{
63752
+ kind: "numeric",
63753
+ requiredUnit: "°",
63754
+ transformKinds: ["identity"],
63755
+ transforms: [{ kind: "identity" }]
63756
+ }],
63757
+ sourceReport: { status: "assignment-status" },
63758
+ advancedExpression: false,
63759
+ path: "windBearing",
63760
+ valueKind: "number",
63761
+ nullable: true,
63762
+ companions: [{
63763
+ kind: "clock",
63764
+ path: "lastFetchedAt",
63765
+ when: "add"
63766
+ }]
63767
+ },
63768
+ {
63769
+ id: "rainRate",
63770
+ cardinality: "scalar",
63771
+ deviceTypes: [DeviceType.WeatherStation],
63772
+ apply: "add",
63773
+ vocabularyCap: "weather-station",
63774
+ vocabularyStateField: "rainRate",
63775
+ sources: [{
63776
+ kind: "numeric",
63777
+ requiredUnit: "mm/h",
63778
+ transformKinds: ["identity"],
63779
+ transforms: [{ kind: "identity" }]
63780
+ }],
63781
+ sourceReport: { status: "assignment-status" },
63782
+ advancedExpression: false,
63783
+ path: "rainRate",
63784
+ valueKind: "number",
63785
+ nullable: true,
63786
+ companions: [{
63787
+ kind: "clock",
63788
+ path: "lastFetchedAt",
63789
+ when: "add"
63790
+ }]
63791
+ },
63792
+ {
63793
+ id: "rainDaily",
63794
+ cardinality: "scalar",
63795
+ deviceTypes: [DeviceType.WeatherStation],
63796
+ apply: "add",
63797
+ vocabularyCap: "weather-station",
63798
+ vocabularyStateField: "rainDaily",
63799
+ sources: [{
63800
+ kind: "numeric",
63801
+ requiredUnit: "mm",
63802
+ transformKinds: ["identity"],
63803
+ transforms: [{ kind: "identity" }]
63804
+ }],
63805
+ sourceReport: { status: "assignment-status" },
63806
+ advancedExpression: false,
63807
+ path: "rainDaily",
63808
+ valueKind: "number",
63809
+ nullable: true,
63810
+ companions: [{
63811
+ kind: "clock",
63812
+ path: "lastFetchedAt",
63813
+ when: "add"
63814
+ }]
63815
+ },
63816
+ {
63817
+ id: "rainEvent",
63818
+ cardinality: "scalar",
63819
+ deviceTypes: [DeviceType.WeatherStation],
63820
+ apply: "add",
63821
+ vocabularyCap: "weather-station",
63822
+ vocabularyStateField: "rainEvent",
63823
+ sources: [{
63824
+ kind: "numeric",
63825
+ requiredUnit: "mm",
63826
+ transformKinds: ["identity"],
63827
+ transforms: [{ kind: "identity" }]
63828
+ }],
63829
+ sourceReport: { status: "assignment-status" },
63830
+ advancedExpression: false,
63831
+ path: "rainEvent",
63832
+ valueKind: "number",
63833
+ nullable: true,
63834
+ companions: [{
63835
+ kind: "clock",
63836
+ path: "lastFetchedAt",
63837
+ when: "add"
63838
+ }]
63839
+ },
63840
+ {
63841
+ id: "uv",
63842
+ cardinality: "scalar",
63843
+ deviceTypes: [DeviceType.WeatherStation],
63844
+ apply: "add",
63845
+ vocabularyCap: "weather-station",
63846
+ vocabularyStateField: "uv",
63847
+ sources: [{
63848
+ kind: "numeric",
63849
+ transformKinds: ["identity"],
63850
+ transforms: [{ kind: "identity" }]
63851
+ }],
63852
+ sourceReport: { status: "assignment-status" },
63853
+ advancedExpression: false,
63854
+ path: "uv",
63855
+ valueKind: "number",
63856
+ nullable: true,
63857
+ companions: [{
63858
+ kind: "clock",
63859
+ path: "lastFetchedAt",
63860
+ when: "add"
63861
+ }]
63862
+ },
63863
+ {
63864
+ id: "solarRadiation",
63865
+ cardinality: "scalar",
63866
+ deviceTypes: [DeviceType.WeatherStation],
63867
+ apply: "add",
63868
+ vocabularyCap: "weather-station",
63869
+ vocabularyStateField: "solarRadiation",
63870
+ sources: [{
63871
+ kind: "numeric",
63872
+ requiredUnit: "W/m²",
63873
+ transformKinds: ["identity"],
63874
+ transforms: [{ kind: "identity" }]
63875
+ }],
63876
+ sourceReport: { status: "assignment-status" },
63877
+ advancedExpression: false,
63878
+ path: "solarRadiation",
63879
+ valueKind: "number",
63880
+ nullable: true,
63881
+ companions: [{
63882
+ kind: "clock",
63883
+ path: "lastFetchedAt",
63884
+ when: "add"
63885
+ }]
63886
+ },
63887
+ {
63888
+ id: "dewPoint",
63889
+ cardinality: "scalar",
63890
+ deviceTypes: [DeviceType.WeatherStation],
63891
+ apply: "add",
63892
+ vocabularyCap: "weather-station",
63893
+ vocabularyStateField: "dewPoint",
63894
+ sources: [{
63895
+ kind: "numeric",
63896
+ requiredUnit: "°C",
63897
+ transformKinds: ["identity"],
63898
+ transforms: [{ kind: "identity" }]
63899
+ }],
63900
+ sourceReport: { status: "assignment-status" },
63901
+ advancedExpression: false,
63902
+ path: "dewPoint",
63903
+ valueKind: "number",
63904
+ nullable: true,
63905
+ companions: [{
63906
+ kind: "clock",
63907
+ path: "lastFetchedAt",
63908
+ when: "add"
63909
+ }]
63910
+ },
63911
+ {
63912
+ id: "feelsLike",
63913
+ cardinality: "scalar",
63914
+ deviceTypes: [DeviceType.WeatherStation],
63915
+ apply: "add",
63916
+ vocabularyCap: "weather-station",
63917
+ vocabularyStateField: "feelsLike",
63918
+ sources: [{
63919
+ kind: "numeric",
63920
+ requiredUnit: "°C",
63921
+ transformKinds: ["identity"],
63922
+ transforms: [{ kind: "identity" }]
63923
+ }],
63924
+ sourceReport: { status: "assignment-status" },
63925
+ advancedExpression: false,
63926
+ path: "feelsLike",
63927
+ valueKind: "number",
63928
+ nullable: true,
63929
+ companions: [{
63930
+ kind: "clock",
63931
+ path: "lastFetchedAt",
63932
+ when: "add"
63933
+ }]
63934
+ },
63935
+ {
63936
+ id: "vpd",
63937
+ cardinality: "scalar",
63938
+ deviceTypes: [DeviceType.WeatherStation],
63939
+ apply: "add",
63940
+ vocabularyCap: "weather-station",
63941
+ vocabularyStateField: "vpd",
63942
+ sources: [{
63943
+ kind: "numeric",
63944
+ requiredUnit: "kPa",
63945
+ transformKinds: ["identity"],
63946
+ transforms: [{ kind: "identity" }]
63947
+ }],
63948
+ sourceReport: { status: "assignment-status" },
63949
+ advancedExpression: false,
63950
+ path: "vpd",
63951
+ valueKind: "number",
63952
+ nullable: true,
63953
+ companions: [{
63954
+ kind: "clock",
63955
+ path: "lastFetchedAt",
63956
+ when: "add"
63957
+ }]
63958
+ },
63959
+ {
63960
+ id: "windGustMax",
63961
+ cardinality: "scalar",
63962
+ deviceTypes: [DeviceType.WeatherStation],
63963
+ apply: "add",
63964
+ vocabularyCap: "weather-station",
63965
+ vocabularyStateField: "windGustMax",
63966
+ sources: [{
63967
+ kind: "numeric",
63968
+ requiredUnit: "m/s",
63969
+ transformKinds: ["identity"],
63970
+ transforms: [{ kind: "identity" }]
63971
+ }],
63972
+ sourceReport: { status: "assignment-status" },
63973
+ advancedExpression: false,
63974
+ path: "windGustMax",
63975
+ valueKind: "number",
63976
+ nullable: true,
63977
+ companions: [{
63978
+ kind: "clock",
63979
+ path: "lastFetchedAt",
63980
+ when: "add"
63981
+ }]
63982
+ },
63983
+ {
63984
+ id: "windBearingAvg",
63985
+ cardinality: "scalar",
63986
+ deviceTypes: [DeviceType.WeatherStation],
63987
+ apply: "add",
63988
+ vocabularyCap: "weather-station",
63989
+ vocabularyStateField: "windBearingAvg",
63990
+ sources: [{
63991
+ kind: "numeric",
63992
+ requiredUnit: "°",
63993
+ transformKinds: ["identity"],
63994
+ transforms: [{ kind: "identity" }]
63995
+ }],
63996
+ sourceReport: { status: "assignment-status" },
63997
+ advancedExpression: false,
63998
+ path: "windBearingAvg",
63999
+ valueKind: "number",
64000
+ nullable: true,
64001
+ companions: [{
64002
+ kind: "clock",
64003
+ path: "lastFetchedAt",
64004
+ when: "add"
64005
+ }]
64006
+ },
64007
+ {
64008
+ id: "rain24h",
64009
+ cardinality: "scalar",
64010
+ deviceTypes: [DeviceType.WeatherStation],
64011
+ apply: "add",
64012
+ vocabularyCap: "weather-station",
64013
+ vocabularyStateField: "rain24h",
64014
+ sources: [{
64015
+ kind: "numeric",
64016
+ requiredUnit: "mm",
64017
+ transformKinds: ["identity"],
64018
+ transforms: [{ kind: "identity" }]
64019
+ }],
64020
+ sourceReport: { status: "assignment-status" },
64021
+ advancedExpression: false,
64022
+ path: "rain24h",
64023
+ valueKind: "number",
64024
+ nullable: true,
64025
+ companions: [{
64026
+ kind: "clock",
64027
+ path: "lastFetchedAt",
64028
+ when: "add"
64029
+ }]
64030
+ },
64031
+ {
64032
+ id: "rainWeekly",
64033
+ cardinality: "scalar",
64034
+ deviceTypes: [DeviceType.WeatherStation],
64035
+ apply: "add",
64036
+ vocabularyCap: "weather-station",
64037
+ vocabularyStateField: "rainWeekly",
64038
+ sources: [{
64039
+ kind: "numeric",
64040
+ requiredUnit: "mm",
64041
+ transformKinds: ["identity"],
64042
+ transforms: [{ kind: "identity" }]
64043
+ }],
64044
+ sourceReport: { status: "assignment-status" },
64045
+ advancedExpression: false,
64046
+ path: "rainWeekly",
64047
+ valueKind: "number",
64048
+ nullable: true,
64049
+ companions: [{
64050
+ kind: "clock",
64051
+ path: "lastFetchedAt",
64052
+ when: "add"
64053
+ }]
64054
+ },
64055
+ {
64056
+ id: "rainMonthly",
64057
+ cardinality: "scalar",
64058
+ deviceTypes: [DeviceType.WeatherStation],
64059
+ apply: "add",
64060
+ vocabularyCap: "weather-station",
64061
+ vocabularyStateField: "rainMonthly",
64062
+ sources: [{
64063
+ kind: "numeric",
64064
+ requiredUnit: "mm",
64065
+ transformKinds: ["identity"],
64066
+ transforms: [{ kind: "identity" }]
64067
+ }],
64068
+ sourceReport: { status: "assignment-status" },
64069
+ advancedExpression: false,
64070
+ path: "rainMonthly",
64071
+ valueKind: "number",
64072
+ nullable: true,
64073
+ companions: [{
64074
+ kind: "clock",
64075
+ path: "lastFetchedAt",
64076
+ when: "add"
64077
+ }]
64078
+ },
64079
+ {
64080
+ id: "rainYearly",
64081
+ cardinality: "scalar",
64082
+ deviceTypes: [DeviceType.WeatherStation],
64083
+ apply: "add",
64084
+ vocabularyCap: "weather-station",
64085
+ vocabularyStateField: "rainYearly",
64086
+ sources: [{
64087
+ kind: "numeric",
64088
+ requiredUnit: "mm",
64089
+ transformKinds: ["identity"],
64090
+ transforms: [{ kind: "identity" }]
64091
+ }],
64092
+ sourceReport: { status: "assignment-status" },
64093
+ advancedExpression: false,
64094
+ path: "rainYearly",
64095
+ valueKind: "number",
64096
+ nullable: true,
64097
+ companions: [{
64098
+ kind: "clock",
64099
+ path: "lastFetchedAt",
64100
+ when: "add"
64101
+ }]
64102
+ }
64103
+ ],
64104
+ overridable: [
64105
+ {
64106
+ path: "temperature",
64107
+ by: "temperature"
64108
+ },
64109
+ {
64110
+ path: "humidity",
64111
+ by: "humidity"
64112
+ },
64113
+ {
64114
+ path: "pressure",
64115
+ by: "pressure"
64116
+ },
64117
+ {
64118
+ path: "windSpeed",
64119
+ by: "windSpeed"
64120
+ },
64121
+ {
64122
+ path: "windGust",
64123
+ by: "windGust"
64124
+ },
64125
+ {
64126
+ path: "windBearing",
64127
+ by: "windBearing"
64128
+ },
64129
+ {
64130
+ path: "rainRate",
64131
+ by: "rainRate"
64132
+ },
64133
+ {
64134
+ path: "rainDaily",
64135
+ by: "rainDaily"
64136
+ },
64137
+ {
64138
+ path: "rainEvent",
64139
+ by: "rainEvent"
64140
+ },
64141
+ {
64142
+ path: "uv",
64143
+ by: "uv"
64144
+ },
64145
+ {
64146
+ path: "solarRadiation",
64147
+ by: "solarRadiation"
64148
+ },
64149
+ {
64150
+ path: "dewPoint",
64151
+ by: "dewPoint"
64152
+ },
64153
+ {
64154
+ path: "feelsLike",
64155
+ by: "feelsLike"
64156
+ },
64157
+ {
64158
+ path: "vpd",
64159
+ by: "vpd"
64160
+ },
64161
+ {
64162
+ path: "windGustMax",
64163
+ by: "windGustMax"
64164
+ },
64165
+ {
64166
+ path: "windBearingAvg",
64167
+ by: "windBearingAvg"
64168
+ },
64169
+ {
64170
+ path: "rain24h",
64171
+ by: "rain24h"
64172
+ },
64173
+ {
64174
+ path: "rainWeekly",
64175
+ by: "rainWeekly"
64176
+ },
64177
+ {
64178
+ path: "rainMonthly",
64179
+ by: "rainMonthly"
64180
+ },
64181
+ {
64182
+ path: "rainYearly",
64183
+ by: "rainYearly"
64184
+ }
64185
+ ]
63483
64186
  }
63484
64187
  };
63485
64188
  /**
@@ -64515,7 +65218,7 @@ function groupTemplate(id) {
64515
65218
  }
64516
65219
  /**
64517
65220
  * Cap history catalog, projected from every `*.cap.ts` `history` block.
64518
- * 45 caps with series (104 series), 39 caps answered `'none'`.
65221
+ * 46 caps with series (124 series), 38 caps answered `'none'`.
64519
65222
  * Field keys are `runtimeState` paths (`a.b` into fixed objects only).
64520
65223
  */
64521
65224
  var HISTORY_CATALOG = {
@@ -65017,6 +65720,108 @@ var HISTORY_CATALOG = {
65017
65720
  unit: "m/s",
65018
65721
  deadband: .5
65019
65722
  }
65723
+ },
65724
+ "weather-station": {
65725
+ "temperature": {
65726
+ kind: "gauge",
65727
+ unit: "°C",
65728
+ deadband: .1
65729
+ },
65730
+ "humidity": {
65731
+ kind: "gauge",
65732
+ unit: "%",
65733
+ deadband: 1
65734
+ },
65735
+ "pressure": {
65736
+ kind: "gauge",
65737
+ unit: "hPa",
65738
+ deadband: .2
65739
+ },
65740
+ "windSpeed": {
65741
+ kind: "gauge",
65742
+ unit: "m/s",
65743
+ deadband: .2
65744
+ },
65745
+ "windGust": {
65746
+ kind: "gauge",
65747
+ unit: "m/s",
65748
+ deadband: .2
65749
+ },
65750
+ "windBearing": {
65751
+ kind: "gauge",
65752
+ unit: "°",
65753
+ deadband: 5
65754
+ },
65755
+ "rainRate": {
65756
+ kind: "gauge",
65757
+ unit: "mm/h",
65758
+ deadband: .1
65759
+ },
65760
+ "rainDaily": {
65761
+ kind: "gauge",
65762
+ unit: "mm",
65763
+ deadband: .1
65764
+ },
65765
+ "rainEvent": {
65766
+ kind: "gauge",
65767
+ unit: "mm",
65768
+ deadband: .1
65769
+ },
65770
+ "uv": {
65771
+ kind: "gauge",
65772
+ unit: "index",
65773
+ deadband: .1
65774
+ },
65775
+ "solarRadiation": {
65776
+ kind: "gauge",
65777
+ unit: "W/m²",
65778
+ deadband: 5
65779
+ },
65780
+ "dewPoint": {
65781
+ kind: "gauge",
65782
+ unit: "°C",
65783
+ deadband: .1
65784
+ },
65785
+ "feelsLike": {
65786
+ kind: "gauge",
65787
+ unit: "°C",
65788
+ deadband: .1
65789
+ },
65790
+ "vpd": {
65791
+ kind: "gauge",
65792
+ unit: "kPa",
65793
+ deadband: .05
65794
+ },
65795
+ "windGustMax": {
65796
+ kind: "gauge",
65797
+ unit: "m/s",
65798
+ deadband: .2
65799
+ },
65800
+ "windBearingAvg": {
65801
+ kind: "gauge",
65802
+ unit: "°",
65803
+ deadband: 5
65804
+ },
65805
+ "rain24h": {
65806
+ kind: "gauge",
65807
+ unit: "mm",
65808
+ deadband: .1
65809
+ },
65810
+ "rainWeekly": {
65811
+ kind: "gauge",
65812
+ unit: "mm",
65813
+ deadband: .1
65814
+ },
65815
+ "rainMonthly": {
65816
+ kind: "gauge",
65817
+ unit: "mm",
65818
+ deadband: .1
65819
+ },
65820
+ "rainYearly": {
65821
+ kind: "gauge",
65822
+ unit: "mm",
65823
+ deadband: .1
65824
+ }
65020
65825
  }
65021
65826
  };
65022
65827
  /**
@@ -73639,7 +74444,19 @@ var IdentitySampleInfoSchema = zod.z.object({
73639
74444
  source: zod.z.enum(["detected", "photo"]),
73640
74445
  addedAt: zod.z.number().int(),
73641
74446
  deviceId: zod.z.number().int().optional(),
73642
- base64: zod.z.string().optional()
74447
+ base64: zod.z.string().optional(),
74448
+ /**
74449
+ * The sample's own crop, when it has one. The bytes stay on the event-media
74450
+ * plane — this list does not inline them.
74451
+ */
74452
+ mediaId: zod.z.number().int().optional(),
74453
+ /**
74454
+ * The source face's key frame (or the photo the sample was cut from), when
74455
+ * the sample has no crop of its own. Draw {@link faceBbox} on it.
74456
+ */
74457
+ keyFrameMediaId: zod.z.number().int().optional(),
74458
+ /** The face box on {@link keyFrameMediaId}, pixel space. */
74459
+ faceBbox: BoundingBoxSchema.optional()
73643
74460
  });
73644
74461
  /**
73645
74462
  * One enrolled sample, judged against the gallery it lives in.
@@ -73879,6 +74696,18 @@ includeCrops: zod.z.boolean().optional() }).optional(), zod.z.array(IdentitySche
73879
74696
  kind: "mutation",
73880
74697
  auth: "admin"
73881
74698
  }),
74699
+ /**
74700
+ * Move an enrolled sample onto another person. The crop is re-owned, the
74701
+ * source face keeps its link and follows (`recognizedIdentityId`), and an
74702
+ * unknown person is refused.
74703
+ */
74704
+ moveIdentitySample: method(zod.z.object({
74705
+ sampleId: zod.z.string().min(1),
74706
+ toIdentityId: zod.z.string().min(1)
74707
+ }), zod.z.void(), {
74708
+ kind: "mutation",
74709
+ auth: "admin"
74710
+ }),
73882
74711
  listRecentFaces: method(zod.z.object({
73883
74712
  /**
73884
74713
  * Restrict to ONE camera. Absent keeps the cluster-wide gallery view.
@@ -96658,7 +97487,19 @@ var VehicleSampleInfoSchema = zod.z.object({
96658
97487
  score: zod.z.number(),
96659
97488
  addedAt: zod.z.number().int(),
96660
97489
  deviceId: zod.z.number().int().optional(),
96661
- base64: zod.z.string().optional()
97490
+ base64: zod.z.string().optional(),
97491
+ /**
97492
+ * The sample's own crop, when it has one. Prefer this over {@link base64}:
97493
+ * the bytes are on the event-media plane (`/m/<mediaId>`), never inlined.
97494
+ */
97495
+ mediaId: zod.z.number().int().optional(),
97496
+ /**
97497
+ * The source plate's key frame, when the sample has no crop of its own.
97498
+ * Draw {@link plateBbox} on it. Absent when {@link mediaId} is set.
97499
+ */
97500
+ keyFrameMediaId: zod.z.number().int().optional(),
97501
+ /** The plate box on {@link keyFrameMediaId}, pixel space. */
97502
+ plateBbox: BoundingBoxSchema.optional()
96662
97503
  });
96663
97504
  var PlateInfoSchema = zod.z.object({
96664
97505
  plateId: zod.z.string(),
@@ -96688,7 +97529,17 @@ var PlateInfoSchema = zod.z.object({
96688
97529
  * and `searchPlates` inline the crop only when their `includeCrops` input is
96689
97530
  * left at its `true` default.
96690
97531
  */
96691
- cropUrl: zod.z.string().optional()
97532
+ cropUrl: zod.z.string().optional(),
97533
+ /**
97534
+ * Why {@link cropUrl} is absent. One of `no-frame-handle`,
97535
+ * `live-capture-missed`, `live-capture-threw`, `no-key-frame`,
97536
+ * `derive-not-wired`, `subject-moved`, `temporal-skew`, `key-frame-absent`,
97537
+ * `bad-frame-size`, `decode-empty`, `derive-threw`, `derive-returned-null`,
97538
+ * `put-failed`. A crossing vehicle whose live capture missed is
97539
+ * `subject-moved`: the key frame is a different instant, and the crop is
97540
+ * legitimately absent.
97541
+ */
97542
+ cropMissReason: zod.z.string().optional()
96692
97543
  });
96693
97544
  /**
96694
97545
  * One gallery media row: what the crop is, how big it is, and WHERE its bytes
@@ -96818,6 +97669,18 @@ includeCrops: zod.z.boolean().optional() }).optional(), zod.z.array(VehicleSchem
96818
97669
  kind: "mutation",
96819
97670
  auth: "admin"
96820
97671
  }),
97672
+ /**
97673
+ * Move an enrolled sample onto another vehicle. The crop is re-owned, the
97674
+ * source plate keeps its link and follows (`recognizedVehicleId`), and an
97675
+ * unknown vehicle is refused.
97676
+ */
97677
+ moveVehicleSample: method(zod.z.object({
97678
+ sampleId: zod.z.string().min(1),
97679
+ toVehicleId: zod.z.string().min(1)
97680
+ }), zod.z.void(), {
97681
+ kind: "mutation",
97682
+ auth: "admin"
97683
+ }),
96821
97684
  assignPlate: method(zod.z.object({
96822
97685
  plateId: zod.z.string(),
96823
97686
  vehicleId: zod.z.string()
@@ -109076,18 +109939,30 @@ var weatherCapability = {
109076
109939
  }
109077
109940
  };
109078
109941
  var WeatherStationStatusSchema = zod.z.object({
109079
- temperature: zod.z.number().nullable().meta(readingMeta("temperature", { precision: 1 })),
109080
- humidity: zod.z.number().min(0).max(100).nullable().meta(readingMeta("humidity")),
109081
- pressure: zod.z.number().nullable().meta(readingMeta("pressure")),
109082
- windSpeed: zod.z.number().nullable().meta(readingMeta("speed")),
109083
- windGust: zod.z.number().nullable().meta(readingMeta("speed")),
109084
- windBearing: zod.z.number().nullable().meta(readingMeta("angle")),
109085
- rainRate: zod.z.number().nullable().meta(readingMeta("precipitation-rate", { precision: 1 })),
109086
- rainDaily: zod.z.number().nullable().meta(readingMeta("precipitation", { precision: 1 })),
109087
- rainEvent: zod.z.number().nullable().meta(readingMeta("precipitation", { precision: 1 })),
109088
- uv: zod.z.number().nullable().meta(readingMeta("index", { precision: 1 })),
109089
- solarRadiation: zod.z.number().nullable().meta(readingMeta("irradiance")),
109090
- dewPoint: zod.z.number().nullable().meta(readingMeta("temperature", { precision: 1 }))
109942
+ temperature: zod.z.number().nullable().default(null).meta(readingMeta("temperature", { precision: 1 })),
109943
+ humidity: zod.z.number().min(0).max(100).nullable().default(null).meta(readingMeta("humidity")),
109944
+ pressure: zod.z.number().nullable().default(null).meta(readingMeta("pressure")),
109945
+ windSpeed: zod.z.number().nullable().default(null).meta(readingMeta("speed")),
109946
+ windGust: zod.z.number().nullable().default(null).meta(readingMeta("speed")),
109947
+ windBearing: zod.z.number().nullable().default(null).meta(readingMeta("angle")),
109948
+ rainRate: zod.z.number().nullable().default(null).meta(readingMeta("precipitation-rate", { precision: 1 })),
109949
+ rainDaily: zod.z.number().nullable().default(null).meta(readingMeta("precipitation", { precision: 1 })),
109950
+ rainEvent: zod.z.number().nullable().default(null).meta(readingMeta("precipitation", { precision: 1 })),
109951
+ uv: zod.z.number().nullable().default(null).meta(readingMeta("index", { precision: 1 })),
109952
+ solarRadiation: zod.z.number().nullable().default(null).meta(readingMeta("irradiance")),
109953
+ dewPoint: zod.z.number().nullable().default(null).meta(readingMeta("temperature", { precision: 1 })),
109954
+ /** Apparent ("feels like") temperature. */
109955
+ feelsLike: zod.z.number().nullable().default(null).meta(readingMeta("temperature", { precision: 1 })),
109956
+ /** Vapour-pressure deficit, stored in kPa (the unit stations and growers read it in). */
109957
+ vpd: zod.z.number().nullable().default(null).meta(readingMeta("none", { precision: 2 })),
109958
+ /** Highest wind gust since local midnight. */
109959
+ windGustMax: zod.z.number().nullable().default(null).meta(readingMeta("speed")),
109960
+ /** Wind bearing averaged over the station's own window. */
109961
+ windBearingAvg: zod.z.number().nullable().default(null).meta(readingMeta("angle")),
109962
+ rain24h: zod.z.number().nullable().default(null).meta(readingMeta("precipitation", { precision: 1 })),
109963
+ rainWeekly: zod.z.number().nullable().default(null).meta(readingMeta("precipitation", { precision: 1 })),
109964
+ rainMonthly: zod.z.number().nullable().default(null).meta(readingMeta("precipitation", { precision: 1 })),
109965
+ rainYearly: zod.z.number().nullable().default(null).meta(readingMeta("precipitation", { precision: 1 }))
109091
109966
  }).extend({
109092
109967
  /** Ms epoch of the poll that produced this slice. 0 before the first one. */
109093
109968
  lastFetchedAt: zod.z.number() });
@@ -109099,6 +109974,75 @@ var numeric = (field, quantity, label, unit, icon) => ({
109099
109974
  unit,
109100
109975
  icon
109101
109976
  });
109977
+ /** Every reading of the station with the unit a Customize source must carry ('' = dimensionless). */
109978
+ var STATION_FIELD_UNITS = {
109979
+ temperature: "°C",
109980
+ humidity: "%",
109981
+ pressure: "hPa",
109982
+ windSpeed: "m/s",
109983
+ windGust: "m/s",
109984
+ windBearing: "°",
109985
+ rainRate: "mm/h",
109986
+ rainDaily: "mm",
109987
+ rainEvent: "mm",
109988
+ uv: "",
109989
+ solarRadiation: "W/m²",
109990
+ dewPoint: "°C",
109991
+ feelsLike: "°C",
109992
+ vpd: "kPa",
109993
+ windGustMax: "m/s",
109994
+ windBearingAvg: "°",
109995
+ rain24h: "mm",
109996
+ rainWeekly: "mm",
109997
+ rainMonthly: "mm",
109998
+ rainYearly: "mm"
109999
+ };
110000
+ function isStationField(key) {
110001
+ return Object.prototype.hasOwnProperty.call(STATION_FIELD_UNITS, key);
110002
+ }
110003
+ var STATION_FIELDS = Object.keys(STATION_FIELD_UNITS).filter(isStationField);
110004
+ /**
110005
+ * One scalar target per reading, `apply: 'add'` and listed in `overridable` by its own id
110006
+ * (the running-state / climate-control mechanism, D984 / D990): a station that reports a
110007
+ * reading natively keeps it until the operator assigns another device to that ONE field,
110008
+ * and a device with no `weather-station` slice becomes one from the sources picked. On an
110009
+ * add, every other reading is absent from the claim and the schema defaults it to null
110010
+ * (a missing sensor is never 0, D393) — the fan-control precedent, never a cross-field companion
110011
+ * (the scalar merge treats a companion as owned by its target).
110012
+ */
110013
+ function stationTarget(field) {
110014
+ const unit = STATION_FIELD_UNITS[field];
110015
+ return {
110016
+ id: field,
110017
+ cardinality: "scalar",
110018
+ vocabulary: {
110019
+ cap: "weather-station",
110020
+ stateField: field
110021
+ },
110022
+ deviceTypes: [DeviceType.WeatherStation],
110023
+ apply: "add",
110024
+ path: field,
110025
+ sources: [{
110026
+ kind: "numeric",
110027
+ ...unit.length > 0 ? { requiredUnit: unit } : {},
110028
+ transforms: [{ kind: "identity" }]
110029
+ }],
110030
+ companions: [{
110031
+ kind: "clock",
110032
+ path: "lastFetchedAt",
110033
+ when: "add"
110034
+ }],
110035
+ sourceReport: { status: "assignment-status" }
110036
+ };
110037
+ }
110038
+ var weatherStationCustomize = {
110039
+ version: 1,
110040
+ overridable: STATION_FIELDS.map((field) => ({
110041
+ path: field,
110042
+ by: field
110043
+ })),
110044
+ targets: STATION_FIELDS.map(stationTarget)
110045
+ };
109102
110046
  var weatherStationCapability = {
109103
110047
  name: "weather-station",
109104
110048
  scope: "device",
@@ -109112,10 +110056,115 @@ var weatherStationCapability = {
109112
110056
  },
109113
110057
  runtimeState: WeatherStationStatusSchema,
109114
110058
  /**
109115
- * The sensor children already record each reading. The station slice is the
109116
- * live aggregate a template reads; it does not keep a second series.
110059
+ * History (D850): the station records its own readings. Rain totals that
110060
+ * reset (event, day, week, month, year) and the sliding 24 h total are
110061
+ * levels, so `gauge`; `counter` is for a monotonic meter only.
109117
110062
  */
109118
- history: "none",
110063
+ history: { fields: {
110064
+ temperature: {
110065
+ kind: "gauge",
110066
+ unit: "°C",
110067
+ deadband: .1
110068
+ },
110069
+ humidity: {
110070
+ kind: "gauge",
110071
+ unit: "%",
110072
+ deadband: 1
110073
+ },
110074
+ pressure: {
110075
+ kind: "gauge",
110076
+ unit: "hPa",
110077
+ deadband: .2
110078
+ },
110079
+ windSpeed: {
110080
+ kind: "gauge",
110081
+ unit: "m/s",
110082
+ deadband: .2
110083
+ },
110084
+ windGust: {
110085
+ kind: "gauge",
110086
+ unit: "m/s",
110087
+ deadband: .2
110088
+ },
110089
+ windBearing: {
110090
+ kind: "gauge",
110091
+ unit: "°",
110092
+ deadband: 5
110093
+ },
110094
+ rainRate: {
110095
+ kind: "gauge",
110096
+ unit: "mm/h",
110097
+ deadband: .1
110098
+ },
110099
+ rainDaily: {
110100
+ kind: "gauge",
110101
+ unit: "mm",
110102
+ deadband: .1
110103
+ },
110104
+ rainEvent: {
110105
+ kind: "gauge",
110106
+ unit: "mm",
110107
+ deadband: .1
110108
+ },
110109
+ uv: {
110110
+ kind: "gauge",
110111
+ unit: "index",
110112
+ deadband: .1
110113
+ },
110114
+ solarRadiation: {
110115
+ kind: "gauge",
110116
+ unit: "W/m²",
110117
+ deadband: 5
110118
+ },
110119
+ dewPoint: {
110120
+ kind: "gauge",
110121
+ unit: "°C",
110122
+ deadband: .1
110123
+ },
110124
+ feelsLike: {
110125
+ kind: "gauge",
110126
+ unit: "°C",
110127
+ deadband: .1
110128
+ },
110129
+ vpd: {
110130
+ kind: "gauge",
110131
+ unit: "kPa",
110132
+ deadband: .05
110133
+ },
110134
+ windGustMax: {
110135
+ kind: "gauge",
110136
+ unit: "m/s",
110137
+ deadband: .2
110138
+ },
110139
+ windBearingAvg: {
110140
+ kind: "gauge",
110141
+ unit: "°",
110142
+ deadband: 5
110143
+ },
110144
+ rain24h: {
110145
+ kind: "gauge",
110146
+ unit: "mm",
110147
+ deadband: .1
110148
+ },
110149
+ rainWeekly: {
110150
+ kind: "gauge",
110151
+ unit: "mm",
110152
+ deadband: .1
110153
+ },
110154
+ rainMonthly: {
110155
+ kind: "gauge",
110156
+ unit: "mm",
110157
+ deadband: .1
110158
+ },
110159
+ rainYearly: {
110160
+ kind: "gauge",
110161
+ unit: "mm",
110162
+ deadband: .1
110163
+ }
110164
+ } },
110165
+ customize: weatherStationCustomize,
110166
+ /** The poll clock is written but is no reason to commit a row. */
110167
+ volatileStateFields: ["lastFetchedAt"],
109119
110168
  /**
109120
110169
  * Runtime-state durability: **session** — a station reading is stale the
109121
110170
  * moment the hub is down; the provider re-reads on the next poll.
@@ -109136,7 +110185,15 @@ var weatherStationCapability = {
109136
110185
  numeric("rainEvent", t("the rain this event", "la pioggia di questo evento"), t("Rain event", "Evento di pioggia"), "mm", "droplets"),
109137
110186
  numeric("uv", t("the UV index", "l’indice UV"), t("UV", "UV"), "", "cloud-sun"),
109138
110187
  numeric("solarRadiation", t("the solar radiation", "la radiazione solare"), t("Solar", "Sole"), "W/m²", "cloud-sun"),
109139
- numeric("dewPoint", t("the dew point", "il punto di rugiada"), t("Dew point", "Punto di rugiada"), "°C", "thermometer")
110188
+ numeric("dewPoint", t("the dew point", "il punto di rugiada"), t("Dew point", "Punto di rugiada"), "°C", "thermometer"),
110189
+ numeric("feelsLike", t("the feels-like temperature", "la temperatura percepita"), t("Feels like", "Percepita"), "°C", "thermometer"),
110190
+ numeric("vpd", t("the vapour-pressure deficit", "il deficit di pressione di vapore"), t("VPD", "VPD"), "kPa", "gauge"),
110191
+ numeric("windGustMax", t("the highest gust today", "la raffica massima di oggi"), t("Max gust", "Raffica max"), "m/s", "wind"),
110192
+ numeric("windBearingAvg", t("the average wind bearing", "la direzione media del vento"), t("Avg bearing", "Direzione media"), "°", "wind"),
110193
+ numeric("rain24h", t("the rain in the last 24 hours", "la pioggia delle ultime 24 ore"), t("Rain 24 h", "Pioggia 24 h"), "mm", "droplets"),
110194
+ numeric("rainWeekly", t("the rain this week", "la pioggia di questa settimana"), t("Rain week", "Pioggia settimana"), "mm", "droplets"),
110195
+ numeric("rainMonthly", t("the rain this month", "la pioggia di questo mese"), t("Rain month", "Pioggia mese"), "mm", "droplets"),
110196
+ numeric("rainYearly", t("the rain this year", "la pioggia di quest’anno"), t("Rain year", "Pioggia anno"), "mm", "droplets")
109140
110197
  ]
109141
110198
  }
109142
110199
  };
@@ -121633,6 +122690,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
121633
122690
  access: "view",
121634
122691
  role: "feature:face-assignment"
121635
122692
  },
122693
+ "faceGallery.moveIdentitySample": {
122694
+ capName: "face-gallery",
122695
+ capScope: "system",
122696
+ addonId: null,
122697
+ access: "create",
122698
+ role: "feature:face-assignment"
122699
+ },
121636
122700
  "faceGallery.removeSample": {
121637
122701
  capName: "face-gallery",
121638
122702
  capScope: "system",
@@ -125553,6 +126617,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
125553
126617
  access: "view",
125554
126618
  role: "feature:plate-assignment"
125555
126619
  },
126620
+ "plateGallery.moveVehicleSample": {
126621
+ capName: "plate-gallery",
126622
+ capScope: "system",
126623
+ addonId: null,
126624
+ access: "create",
126625
+ role: "feature:plate-assignment"
126626
+ },
125556
126627
  "plateGallery.removeVehicleSample": {
125557
126628
  capName: "plate-gallery",
125558
126629
  capScope: "system",
@@ -132591,7 +133662,7 @@ var RUNTIME_STATE_POLICY = {
132591
133662
  },
132592
133663
  "weather-station": {
132593
133664
  durability: "session",
132594
- volatileFields: []
133665
+ volatileFields: ["lastFetchedAt"]
132595
133666
  },
132596
133667
  "zone-analytics": {
132597
133668
  durability: "session",