@camstack/server 1.2.897 → 1.2.898

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 (101) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/package.json +17 -10
  3. package/system/dist/addon-runner.js +103 -12
  4. package/system/dist/addon-runner.mjs +103 -12
  5. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  6. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  7. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  8. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  9. package/system/dist/builtins/alerts/alerts.addon.js +1 -1
  10. package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
  11. package/system/dist/builtins/autotrack/index.js +1 -1
  12. package/system/dist/builtins/autotrack/index.mjs +1 -1
  13. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
  14. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
  15. package/system/dist/builtins/calendars/calendars.addon.js +1 -1
  16. package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
  17. package/system/dist/builtins/camera-grid/index.js +1 -1
  18. package/system/dist/builtins/camera-grid/index.mjs +1 -1
  19. package/system/dist/builtins/composer/composer.addon.js +14 -11
  20. package/system/dist/builtins/composer/composer.addon.mjs +11 -8
  21. package/system/dist/builtins/console-logging/index.js +1 -1
  22. package/system/dist/builtins/console-logging/index.mjs +1 -1
  23. package/system/dist/builtins/core-blocks/core-blocks.addon.js +170 -14
  24. package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +169 -13
  25. package/system/dist/builtins/core-blocks/migrations/automation-confirmed-view.d.ts +23 -0
  26. package/system/dist/builtins/core-blocks/migrations/index.d.ts +1 -0
  27. package/system/dist/builtins/core-blocks/migrations/pump-cycle-split.d.ts +1 -0
  28. package/system/dist/builtins/device-history/device-history.addon.js +10 -9
  29. package/system/dist/builtins/device-history/device-history.addon.mjs +10 -9
  30. package/system/dist/builtins/device-manager/command-holds-wiring.d.ts +22 -0
  31. package/system/dist/builtins/device-manager/command-holds.d.ts +75 -0
  32. package/system/dist/builtins/device-manager/device-manager.addon.d.ts +2 -0
  33. package/system/dist/builtins/device-manager/device-manager.addon.js +381 -26
  34. package/system/dist/builtins/device-manager/device-manager.addon.mjs +378 -27
  35. package/system/dist/builtins/device-manager/device-state-mirror.d.ts +35 -9
  36. package/system/dist/builtins/hub-forwarder/index.js +1 -1
  37. package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
  38. package/system/dist/builtins/keychain/index.js +4 -4
  39. package/system/dist/builtins/keychain/index.mjs +4 -4
  40. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  41. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  42. package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
  43. package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
  44. package/system/dist/builtins/local-network/local-network.addon.js +3 -3
  45. package/system/dist/builtins/local-network/local-network.addon.mjs +3 -3
  46. package/system/dist/builtins/loki-logging/index.js +1 -1
  47. package/system/dist/builtins/loki-logging/index.mjs +1 -1
  48. package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  49. package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  50. package/system/dist/builtins/platform-probe/index.js +1 -1
  51. package/system/dist/builtins/platform-probe/index.mjs +1 -1
  52. package/system/dist/builtins/record-entries/index.js +1 -1
  53. package/system/dist/builtins/record-entries/index.mjs +1 -1
  54. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  55. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  56. package/system/dist/builtins/shared/device-state-changed.d.ts +8 -0
  57. package/system/dist/builtins/snapshot/index.js +1 -1
  58. package/system/dist/builtins/snapshot/index.mjs +1 -1
  59. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  60. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  61. package/system/dist/builtins/sqlite-storage/index.js +1 -1
  62. package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
  63. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
  64. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
  65. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
  66. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
  67. package/system/dist/builtins/system-config/system-config.addon.js +3 -3
  68. package/system/dist/builtins/system-config/system-config.addon.mjs +3 -3
  69. package/system/dist/builtins/winston-logging/index.js +1 -1
  70. package/system/dist/builtins/winston-logging/index.mjs +1 -1
  71. package/system/dist/{capture-engine-D1rjl2dW.js → capture-engine-BWS0KTbm.js} +48 -1
  72. package/system/dist/{capture-engine-Bjgs__i9.mjs → capture-engine-DBQDaDxJ.mjs} +37 -2
  73. package/system/dist/{composition-sources-CF2-u58e.js → composition-sources-CDOW1dnY.js} +1 -32
  74. package/system/dist/{composition-sources-B727nlA0.mjs → composition-sources-CGUWmf-T.mjs} +2 -21
  75. package/system/dist/{constants-BF309c_I.mjs → constants-BmrLkwZs.mjs} +1 -1
  76. package/system/dist/{constants-DaR1SUh7.js → constants-BwrRoq-j.js} +1 -1
  77. package/system/dist/{device-ca-DT1hYtdW.mjs → device-ca-BGgZXEto.mjs} +1 -1
  78. package/system/dist/{device-ca-BqcX5_f2.js → device-ca-DiuwWyZY.js} +1 -1
  79. package/system/dist/{dist-BoEy9sm9.js → dist-CCd8IeIU.js} +685 -53
  80. package/system/dist/{dist-DorY_sjS.mjs → dist-D7t8wLTF.mjs} +674 -54
  81. package/system/dist/file-host-worker.js +1 -1
  82. package/system/dist/file-host-worker.mjs +1 -1
  83. package/system/dist/{hub-identity-CZ0nE3GK.mjs → hub-identity-BohJeqdO.mjs} +1 -1
  84. package/system/dist/{hub-identity-DH1rxUMD.js → hub-identity-G_ZdyPpc.js} +1 -1
  85. package/system/dist/{hub-mdns-ciao-N0nL34fx.js → hub-mdns-ciao-CKD4EgkG.js} +2 -2
  86. package/system/dist/{hub-mdns-ciao-7HK57Vtx.mjs → hub-mdns-ciao-D5RxSMrH.mjs} +2 -2
  87. package/system/dist/index.js +45 -13
  88. package/system/dist/index.mjs +46 -14
  89. package/system/dist/kernel/command-hold-overrides.d.ts +42 -0
  90. package/system/dist/kernel/moleculer/child-cap-descriptors.d.ts +3 -0
  91. package/system/dist/kernel/moleculer/device-cap-proxy.d.ts +2 -1
  92. package/system/dist/kernel/transport/child-cap-protocol.d.ts +6 -1
  93. package/system/dist/{legacy-integration-rows-door-BTfeULYt.js → legacy-integration-rows-door-BgCl68ek.js} +1 -1
  94. package/system/dist/{legacy-integration-rows-door-CdAQlIvv.mjs → legacy-integration-rows-door-Rm9JmIsl.mjs} +1 -1
  95. package/system/dist/{rename-composition-block-B1x-yK5U.js → rename-composition-block-2Z2ED7Og.js} +1 -1
  96. package/system/dist/{rename-composition-block-CIQjxBUa.mjs → rename-composition-block-DNO3mNEO.mjs} +1 -1
  97. package/system/dist/{restore-archive-Bj_gYmE9.mjs → restore-archive-2L5TymvF.mjs} +1 -1
  98. package/system/dist/{restore-archive-B086o8pL.js → restore-archive-CZkQO8t3.js} +1 -1
  99. package/system/dist/{wal-maintenance-Dgfmi-Ao.mjs → wal-maintenance-BMYe_n18.mjs} +0 -0
  100. package/system/dist/{wal-maintenance-MVIyxmu7.js → wal-maintenance-YjDJ73Qd.js} +0 -0
  101. package/system/package.json +1 -1
@@ -1298,7 +1298,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
1298
1298
  */
1299
1299
  var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
1300
1300
  //#endregion
1301
- //#region ../types/dist/sleep-BT1bLgPq.mjs
1301
+ //#region ../types/dist/sleep-dgC2VKW4.mjs
1302
1302
  /**
1303
1303
  * The audio chunk plane's byte format, and the ONE expansion from a coded
1304
1304
  * window to float samples (D455).
@@ -6871,6 +6871,10 @@ var CAP_VOCABULARY_BY_NAME = {
6871
6871
  it: "Commuta {device}"
6872
6872
  },
6873
6873
  icon: "toggle-right",
6874
+ sideEffects: [{
6875
+ field: "on",
6876
+ negate: true
6877
+ }],
6874
6878
  offeredWhen: {
6875
6879
  method: "getOptions",
6876
6880
  field: "supportsSetState"
@@ -7985,7 +7989,15 @@ var CAP_VOCABULARY_BY_NAME = {
7985
7989
  effect: {
7986
7990
  field: "state",
7987
7991
  value: "locked"
7988
- }
7992
+ },
7993
+ hold: { effects: [{
7994
+ field: "state",
7995
+ value: "locking",
7996
+ when: {
7997
+ field: "state",
7998
+ notIn: ["locked"]
7999
+ }
8000
+ }] }
7989
8001
  },
7990
8002
  {
7991
8003
  id: "lock.unlock",
@@ -8014,7 +8026,15 @@ var CAP_VOCABULARY_BY_NAME = {
8014
8026
  effect: {
8015
8027
  field: "state",
8016
8028
  value: "unlocked"
8017
- }
8029
+ },
8030
+ hold: { effects: [{
8031
+ field: "state",
8032
+ value: "unlocking",
8033
+ when: {
8034
+ field: "state",
8035
+ notIn: ["unlocked"]
8036
+ }
8037
+ }] }
8018
8038
  },
8019
8039
  {
8020
8040
  id: "lock.open",
@@ -8328,6 +8348,14 @@ var CAP_VOCABULARY_BY_NAME = {
8328
8348
  step: .5,
8329
8349
  unit: "°C"
8330
8350
  }
8351
+ }],
8352
+ effect: {
8353
+ field: "targetLow",
8354
+ fromArg: "targetLow"
8355
+ },
8356
+ sideEffects: [{
8357
+ field: "targetHigh",
8358
+ fromArg: "targetHigh"
8331
8359
  }]
8332
8360
  },
8333
8361
  {
@@ -8384,7 +8412,11 @@ var CAP_VOCABULARY_BY_NAME = {
8384
8412
  from: "status",
8385
8413
  field: "availableFanModes"
8386
8414
  }
8387
- }]
8415
+ }],
8416
+ effect: {
8417
+ field: "fanMode",
8418
+ fromArg: "fanMode"
8419
+ }
8388
8420
  },
8389
8421
  {
8390
8422
  id: "climate.preset",
@@ -8409,7 +8441,11 @@ var CAP_VOCABULARY_BY_NAME = {
8409
8441
  from: "status",
8410
8442
  field: "availablePresets"
8411
8443
  }
8412
- }]
8444
+ }],
8445
+ effect: {
8446
+ field: "preset",
8447
+ fromArg: "preset"
8448
+ }
8413
8449
  },
8414
8450
  {
8415
8451
  id: "climate.swingVerticalOn",
@@ -8642,7 +8678,15 @@ var CAP_VOCABULARY_BY_NAME = {
8642
8678
  effect: {
8643
8679
  field: "speed",
8644
8680
  value: 100
8645
- }
8681
+ },
8682
+ sideEffects: [{
8683
+ field: "preset",
8684
+ value: "",
8685
+ when: {
8686
+ field: "preset",
8687
+ notIn: [""]
8688
+ }
8689
+ }]
8646
8690
  },
8647
8691
  {
8648
8692
  id: "fan.speed",
@@ -8673,7 +8717,15 @@ var CAP_VOCABULARY_BY_NAME = {
8673
8717
  effect: {
8674
8718
  field: "speed",
8675
8719
  fromArg: "speed"
8676
- }
8720
+ },
8721
+ sideEffects: [{
8722
+ field: "preset",
8723
+ value: "",
8724
+ when: {
8725
+ field: "preset",
8726
+ notIn: [""]
8727
+ }
8728
+ }]
8677
8729
  },
8678
8730
  {
8679
8731
  id: "fan.preset",
@@ -8698,7 +8750,11 @@ var CAP_VOCABULARY_BY_NAME = {
8698
8750
  from: "status",
8699
8751
  field: "availablePresets"
8700
8752
  }
8701
- }]
8753
+ }],
8754
+ effect: {
8755
+ field: "preset",
8756
+ fromArg: "preset"
8757
+ }
8702
8758
  },
8703
8759
  {
8704
8760
  id: "fan.forward",
@@ -9243,7 +9299,15 @@ var CAP_VOCABULARY_BY_NAME = {
9243
9299
  effect: {
9244
9300
  field: "state",
9245
9301
  value: "disarmed"
9246
- }
9302
+ },
9303
+ hold: { effects: [{
9304
+ field: "state",
9305
+ value: "disarming",
9306
+ when: {
9307
+ field: "state",
9308
+ notIn: ["disarmed"]
9309
+ }
9310
+ }] }
9247
9311
  },
9248
9312
  {
9249
9313
  id: "alarm.arm.home",
@@ -9273,7 +9337,15 @@ var CAP_VOCABULARY_BY_NAME = {
9273
9337
  effect: {
9274
9338
  field: "state",
9275
9339
  value: "armed_home"
9276
- }
9340
+ },
9341
+ hold: { effects: [{
9342
+ field: "state",
9343
+ value: "arming",
9344
+ when: {
9345
+ field: "state",
9346
+ notIn: ["armed_home"]
9347
+ }
9348
+ }] }
9277
9349
  },
9278
9350
  {
9279
9351
  id: "alarm.arm.away",
@@ -9303,7 +9375,15 @@ var CAP_VOCABULARY_BY_NAME = {
9303
9375
  effect: {
9304
9376
  field: "state",
9305
9377
  value: "armed_away"
9306
- }
9378
+ },
9379
+ hold: { effects: [{
9380
+ field: "state",
9381
+ value: "arming",
9382
+ when: {
9383
+ field: "state",
9384
+ notIn: ["armed_away"]
9385
+ }
9386
+ }] }
9307
9387
  },
9308
9388
  {
9309
9389
  id: "alarm.arm.night",
@@ -9333,7 +9413,15 @@ var CAP_VOCABULARY_BY_NAME = {
9333
9413
  effect: {
9334
9414
  field: "state",
9335
9415
  value: "armed_night"
9336
- }
9416
+ },
9417
+ hold: { effects: [{
9418
+ field: "state",
9419
+ value: "arming",
9420
+ when: {
9421
+ field: "state",
9422
+ notIn: ["armed_night"]
9423
+ }
9424
+ }] }
9337
9425
  },
9338
9426
  {
9339
9427
  id: "alarm.arm.vacation",
@@ -9363,7 +9451,15 @@ var CAP_VOCABULARY_BY_NAME = {
9363
9451
  effect: {
9364
9452
  field: "state",
9365
9453
  value: "armed_vacation"
9366
- }
9454
+ },
9455
+ hold: { effects: [{
9456
+ field: "state",
9457
+ value: "arming",
9458
+ when: {
9459
+ field: "state",
9460
+ notIn: ["armed_vacation"]
9461
+ }
9462
+ }] }
9367
9463
  },
9368
9464
  {
9369
9465
  id: "alarm.arm.custom_bypass",
@@ -9393,7 +9489,15 @@ var CAP_VOCABULARY_BY_NAME = {
9393
9489
  effect: {
9394
9490
  field: "state",
9395
9491
  value: "armed_custom_bypass"
9396
- }
9492
+ },
9493
+ hold: { effects: [{
9494
+ field: "state",
9495
+ value: "arming",
9496
+ when: {
9497
+ field: "state",
9498
+ notIn: ["armed_custom_bypass"]
9499
+ }
9500
+ }] }
9397
9501
  }
9398
9502
  ],
9399
9503
  state: [{
@@ -10535,7 +10639,14 @@ var CAP_VOCABULARY_BY_NAME = {
10535
10639
  quantity: "mass"
10536
10640
  },
10537
10641
  optional: true
10538
- }]
10642
+ }],
10643
+ hold: {
10644
+ effects: [{
10645
+ field: "feeding",
10646
+ value: true
10647
+ }],
10648
+ holdMs: 1e4
10649
+ }
10539
10650
  },
10540
10651
  {
10541
10652
  id: "petFeeder.feedHoppers",
@@ -10579,7 +10690,14 @@ var CAP_VOCABULARY_BY_NAME = {
10579
10690
  quantity: "mass"
10580
10691
  },
10581
10692
  optional: true
10582
- }]
10693
+ }],
10694
+ hold: {
10695
+ effects: [{
10696
+ field: "feeding",
10697
+ value: true
10698
+ }],
10699
+ holdMs: 1e4
10700
+ }
10583
10701
  },
10584
10702
  {
10585
10703
  id: "petFeeder.cancelFeed",
@@ -10670,7 +10788,11 @@ var CAP_VOCABULARY_BY_NAME = {
10670
10788
  it: "Attiva il blocco bambini di {device}"
10671
10789
  },
10672
10790
  icon: "lock",
10673
- args: { on: true }
10791
+ args: { on: true },
10792
+ effect: {
10793
+ field: "childLock",
10794
+ value: true
10795
+ }
10674
10796
  },
10675
10797
  {
10676
10798
  id: "petFeeder.childLockOff",
@@ -10684,7 +10806,11 @@ var CAP_VOCABULARY_BY_NAME = {
10684
10806
  it: "Disattiva il blocco bambini di {device}"
10685
10807
  },
10686
10808
  icon: "lock-open",
10687
- args: { on: false }
10809
+ args: { on: false },
10810
+ effect: {
10811
+ field: "childLock",
10812
+ value: false
10813
+ }
10688
10814
  },
10689
10815
  {
10690
10816
  id: "petFeeder.lightOn",
@@ -10698,7 +10824,11 @@ var CAP_VOCABULARY_BY_NAME = {
10698
10824
  it: "Accendi la spia di {device}"
10699
10825
  },
10700
10826
  icon: "lightbulb",
10701
- args: { on: true }
10827
+ args: { on: true },
10828
+ effect: {
10829
+ field: "indicatorLight",
10830
+ value: true
10831
+ }
10702
10832
  },
10703
10833
  {
10704
10834
  id: "petFeeder.lightOff",
@@ -10712,7 +10842,11 @@ var CAP_VOCABULARY_BY_NAME = {
10712
10842
  it: "Spegni la spia di {device}"
10713
10843
  },
10714
10844
  icon: "lightbulb-off",
10715
- args: { on: false }
10845
+ args: { on: false },
10846
+ effect: {
10847
+ field: "indicatorLight",
10848
+ value: false
10849
+ }
10716
10850
  },
10717
10851
  {
10718
10852
  id: "petFeeder.feedSoundOn",
@@ -10726,7 +10860,11 @@ var CAP_VOCABULARY_BY_NAME = {
10726
10860
  it: "Attiva il suono di erogazione di {device}"
10727
10861
  },
10728
10862
  icon: "volume-2",
10729
- args: { on: true }
10863
+ args: { on: true },
10864
+ effect: {
10865
+ field: "feedSound",
10866
+ value: true
10867
+ }
10730
10868
  },
10731
10869
  {
10732
10870
  id: "petFeeder.feedSoundOff",
@@ -10740,7 +10878,11 @@ var CAP_VOCABULARY_BY_NAME = {
10740
10878
  it: "Disattiva il suono di erogazione di {device}"
10741
10879
  },
10742
10880
  icon: "volume-x",
10743
- args: { on: false }
10881
+ args: { on: false },
10882
+ effect: {
10883
+ field: "feedSound",
10884
+ value: false
10885
+ }
10744
10886
  },
10745
10887
  {
10746
10888
  id: "petFeeder.volume",
@@ -10765,7 +10907,11 @@ var CAP_VOCABULARY_BY_NAME = {
10765
10907
  min: 0,
10766
10908
  step: 1
10767
10909
  }
10768
- }]
10910
+ }],
10911
+ effect: {
10912
+ field: "volume",
10913
+ fromArg: "level"
10914
+ }
10769
10915
  }
10770
10916
  ],
10771
10917
  state: [
@@ -10837,7 +10983,11 @@ var CAP_VOCABULARY_BY_NAME = {
10837
10983
  it: "Avvia la pompa di {device}"
10838
10984
  },
10839
10985
  icon: "play",
10840
- args: { on: true }
10986
+ args: { on: true },
10987
+ effect: {
10988
+ field: "pumpRunning",
10989
+ value: true
10990
+ }
10841
10991
  }, {
10842
10992
  id: "petFountain.pumpOff",
10843
10993
  method: "setPump",
@@ -10850,7 +11000,11 @@ var CAP_VOCABULARY_BY_NAME = {
10850
11000
  it: "Ferma la pompa di {device}"
10851
11001
  },
10852
11002
  icon: "square",
10853
- args: { on: false }
11003
+ args: { on: false },
11004
+ effect: {
11005
+ field: "pumpRunning",
11006
+ value: false
11007
+ }
10854
11008
  }],
10855
11009
  state: [{
10856
11010
  kind: "boolean",
@@ -10902,7 +11056,11 @@ var CAP_VOCABULARY_BY_NAME = {
10902
11056
  it: "Fai lavorare la pompa di {device} a ciclo acceso/spento"
10903
11057
  },
10904
11058
  icon: "timer",
10905
- args: { on: true }
11059
+ args: { on: true },
11060
+ effect: {
11061
+ field: "enabled",
11062
+ value: true
11063
+ }
10906
11064
  },
10907
11065
  {
10908
11066
  id: "pumpCycle.off",
@@ -10916,7 +11074,11 @@ var CAP_VOCABULARY_BY_NAME = {
10916
11074
  it: "Fai lavorare la pompa di {device} in continuo"
10917
11075
  },
10918
11076
  icon: "timer-off",
10919
- args: { on: false }
11077
+ args: { on: false },
11078
+ effect: {
11079
+ field: "enabled",
11080
+ value: false
11081
+ }
10920
11082
  },
10921
11083
  {
10922
11084
  id: "pumpCycle.onMinutes",
@@ -10942,7 +11104,12 @@ var CAP_VOCABULARY_BY_NAME = {
10942
11104
  step: 1,
10943
11105
  unit: "min"
10944
11106
  }
10945
- }]
11107
+ }],
11108
+ effect: {
11109
+ field: "onTime",
11110
+ fromArg: "minutes",
11111
+ scale: 60
11112
+ }
10946
11113
  },
10947
11114
  {
10948
11115
  id: "pumpCycle.offMinutes",
@@ -10968,7 +11135,12 @@ var CAP_VOCABULARY_BY_NAME = {
10968
11135
  step: 1,
10969
11136
  unit: "min"
10970
11137
  }
10971
- }]
11138
+ }],
11139
+ effect: {
11140
+ field: "offTime",
11141
+ fromArg: "minutes",
11142
+ scale: 60
11143
+ }
10972
11144
  }
10973
11145
  ],
10974
11146
  state: [{
@@ -11085,7 +11257,11 @@ var CAP_VOCABULARY_BY_NAME = {
11085
11257
  en: "Play on {device}",
11086
11258
  it: "Avvia la riproduzione su {device}"
11087
11259
  },
11088
- icon: "play"
11260
+ icon: "play",
11261
+ effect: {
11262
+ field: "state",
11263
+ value: "playing"
11264
+ }
11089
11265
  },
11090
11266
  {
11091
11267
  id: "media.pause",
@@ -11098,7 +11274,11 @@ var CAP_VOCABULARY_BY_NAME = {
11098
11274
  en: "Pause {device}",
11099
11275
  it: "Metti in pausa {device}"
11100
11276
  },
11101
- icon: "pause"
11277
+ icon: "pause",
11278
+ effect: {
11279
+ field: "state",
11280
+ value: "paused"
11281
+ }
11102
11282
  },
11103
11283
  {
11104
11284
  id: "media.stop",
@@ -11164,7 +11344,11 @@ var CAP_VOCABULARY_BY_NAME = {
11164
11344
  step: 1,
11165
11345
  unit: "%"
11166
11346
  }
11167
- }]
11347
+ }],
11348
+ effect: {
11349
+ field: "volumeLevel",
11350
+ fromArg: "volumeLevel"
11351
+ }
11168
11352
  },
11169
11353
  {
11170
11354
  id: "media.mute",
@@ -11178,7 +11362,11 @@ var CAP_VOCABULARY_BY_NAME = {
11178
11362
  it: "Silenzia {device}"
11179
11363
  },
11180
11364
  icon: "volume-x",
11181
- args: { muted: true }
11365
+ args: { muted: true },
11366
+ effect: {
11367
+ field: "isMuted",
11368
+ value: true
11369
+ }
11182
11370
  },
11183
11371
  {
11184
11372
  id: "media.unmute",
@@ -11192,7 +11380,11 @@ var CAP_VOCABULARY_BY_NAME = {
11192
11380
  it: "Riattiva l’audio di {device}"
11193
11381
  },
11194
11382
  icon: "volume-2",
11195
- args: { muted: false }
11383
+ args: { muted: false },
11384
+ effect: {
11385
+ field: "isMuted",
11386
+ value: false
11387
+ }
11196
11388
  },
11197
11389
  {
11198
11390
  id: "media.shuffleOn",
@@ -11206,7 +11398,11 @@ var CAP_VOCABULARY_BY_NAME = {
11206
11398
  it: "Attiva la riproduzione casuale su {device}"
11207
11399
  },
11208
11400
  icon: "shuffle",
11209
- args: { shuffle: true }
11401
+ args: { shuffle: true },
11402
+ effect: {
11403
+ field: "shuffle",
11404
+ value: true
11405
+ }
11210
11406
  },
11211
11407
  {
11212
11408
  id: "media.shuffleOff",
@@ -11220,7 +11416,11 @@ var CAP_VOCABULARY_BY_NAME = {
11220
11416
  it: "Disattiva la riproduzione casuale su {device}"
11221
11417
  },
11222
11418
  icon: "shuffle",
11223
- args: { shuffle: false }
11419
+ args: { shuffle: false },
11420
+ effect: {
11421
+ field: "shuffle",
11422
+ value: false
11423
+ }
11224
11424
  },
11225
11425
  {
11226
11426
  id: "media.repeat",
@@ -11266,7 +11466,11 @@ var CAP_VOCABULARY_BY_NAME = {
11266
11466
  }
11267
11467
  ]
11268
11468
  }
11269
- }]
11469
+ }],
11470
+ effect: {
11471
+ field: "repeat",
11472
+ fromArg: "repeat"
11473
+ }
11270
11474
  },
11271
11475
  {
11272
11476
  id: "media.source",
@@ -11291,7 +11495,11 @@ var CAP_VOCABULARY_BY_NAME = {
11291
11495
  from: "status",
11292
11496
  field: "availableSources"
11293
11497
  }
11294
- }]
11498
+ }],
11499
+ effect: {
11500
+ field: "source",
11501
+ fromArg: "source"
11502
+ }
11295
11503
  },
11296
11504
  {
11297
11505
  id: "media.seek",
@@ -11831,7 +12039,14 @@ var CAP_VOCABULARY_BY_NAME = {
11831
12039
  en: "Run {device}",
11832
12040
  it: "Esegui {device}"
11833
12041
  },
11834
- icon: "scroll-text"
12042
+ icon: "scroll-text",
12043
+ hold: {
12044
+ effects: [{
12045
+ field: "isRunning",
12046
+ value: true
12047
+ }],
12048
+ holdMs: 1e4
12049
+ }
11835
12050
  }, {
11836
12051
  id: "script.stop",
11837
12052
  method: "stop",
@@ -11843,7 +12058,11 @@ var CAP_VOCABULARY_BY_NAME = {
11843
12058
  en: "Stop {device}",
11844
12059
  it: "Ferma {device}"
11845
12060
  },
11846
- icon: "square"
12061
+ icon: "square",
12062
+ effect: {
12063
+ field: "isRunning",
12064
+ value: false
12065
+ }
11847
12066
  }],
11848
12067
  state: [{
11849
12068
  kind: "boolean",
@@ -11881,7 +12100,11 @@ var CAP_VOCABULARY_BY_NAME = {
11881
12100
  en: "Enable {device}",
11882
12101
  it: "Abilita {device}"
11883
12102
  },
11884
- icon: "toggle-right"
12103
+ icon: "toggle-right",
12104
+ effect: {
12105
+ field: "enabled",
12106
+ value: true
12107
+ }
11885
12108
  },
11886
12109
  {
11887
12110
  id: "haAutomation.disable",
@@ -11894,7 +12117,11 @@ var CAP_VOCABULARY_BY_NAME = {
11894
12117
  en: "Disable {device}",
11895
12118
  it: "Disabilita {device}"
11896
12119
  },
11897
- icon: "toggle-left"
12120
+ icon: "toggle-left",
12121
+ effect: {
12122
+ field: "enabled",
12123
+ value: false
12124
+ }
11898
12125
  },
11899
12126
  {
11900
12127
  id: "haAutomation.trigger",
@@ -16267,7 +16494,12 @@ function actionEffect(actionId, args) {
16267
16494
  value: effect.value
16268
16495
  };
16269
16496
  const raw = args?.[effect.fromArg];
16270
- if (typeof raw === "string" || typeof raw === "number" || typeof raw === "boolean") return {
16497
+ if (typeof raw === "number") return {
16498
+ cap: found.cap,
16499
+ field: effect.field,
16500
+ value: raw * (effect.scale ?? 1)
16501
+ };
16502
+ if (typeof raw === "string" || typeof raw === "boolean") return {
16271
16503
  cap: found.cap,
16272
16504
  field: effect.field,
16273
16505
  value: raw
@@ -19295,7 +19527,10 @@ function buildAuditedFields() {
19295
19527
  set.add(field);
19296
19528
  byCap.set(cap, set);
19297
19529
  };
19298
- for (const { cap, action } of allVocabActions()) if (action.effect !== void 0) add(cap, action.effect.field);
19530
+ for (const { cap, action } of allVocabActions()) {
19531
+ if (action.effect !== void 0) add(cap, action.effect.field);
19532
+ for (const side of action.sideEffects ?? []) add(cap, side.field);
19533
+ }
19299
19534
  for (const [cap, entry] of Object.entries(CAP_VOCABULARY_BY_NAME)) {
19300
19535
  if (entry.scope !== "device") continue;
19301
19536
  for (const trigger of entry.state ?? []) if (trigger.kind === "boolean" || trigger.kind === "enum") add(cap, trigger.field);
@@ -19325,6 +19560,113 @@ function auditedFields(cap) {
19325
19560
  fieldsByCap ??= buildAuditedFields();
19326
19561
  return fieldsByCap.get(cap) ?? NO_FIELDS;
19327
19562
  }
19563
+ /** Does `slice` meet `when`? A field the slice lacks is in no list. */
19564
+ function effectConditionHolds(when, slice) {
19565
+ if (when === void 0) return true;
19566
+ const raw = slice?.[when.field];
19567
+ const value = typeof raw === "string" || typeof raw === "number" || typeof raw === "boolean" ? raw : void 0;
19568
+ if ("in" in when) return value !== void 0 && when.in.includes(value);
19569
+ return value === void 0 || !when.notIn.includes(value);
19570
+ }
19571
+ /** The step of the number open arg `key`, when the action offers one. */
19572
+ function stepOf(openArgs, key) {
19573
+ const offer = openArgs?.find((a) => a.key === key)?.offer;
19574
+ return offer?.kind === "number" && offer.step !== void 0 && offer.step > 0 ? offer.step : void 0;
19575
+ }
19576
+ /**
19577
+ * One side effect resolved against the args and the slice the command acts
19578
+ * on: `null` when the arg carrying its value is missing, or a `negate` names a
19579
+ * field the slice holds no boolean in. `openArgs` lends a copied number its
19580
+ * step as the tolerance.
19581
+ */
19582
+ function resolveSideEffect(side, args, shown, openArgs) {
19583
+ if ("value" in side) return {
19584
+ field: side.field,
19585
+ value: side.value
19586
+ };
19587
+ if ("negate" in side) {
19588
+ const raw = shown?.[side.field];
19589
+ return typeof raw === "boolean" ? {
19590
+ field: side.field,
19591
+ value: !raw
19592
+ } : null;
19593
+ }
19594
+ const raw = args?.[side.fromArg];
19595
+ if (typeof raw === "string" || typeof raw === "boolean") return {
19596
+ field: side.field,
19597
+ value: raw
19598
+ };
19599
+ if (typeof raw === "number") {
19600
+ const scale = side.scale ?? 1;
19601
+ const step = stepOf(openArgs, side.fromArg);
19602
+ return step === void 0 ? {
19603
+ field: side.field,
19604
+ value: raw * scale
19605
+ } : {
19606
+ field: side.field,
19607
+ value: raw * scale,
19608
+ tolerance: step * scale
19609
+ };
19610
+ }
19611
+ return null;
19612
+ }
19613
+ /**
19614
+ * The hold limit the vocabulary declares for `cap.method(args)` (its action's
19615
+ * `hold.holdMs`), or `undefined` for the default.
19616
+ */
19617
+ function commandHoldMs(cap, method, args) {
19618
+ return holdFor(cap, method, args)?.holdMs;
19619
+ }
19620
+ /**
19621
+ * The hold the vocabulary declares for `cap.method(args)`: the matched
19622
+ * action's, or — when several actions share the method and the args cannot
19623
+ * tell them apart (`petFeeder.feed` / `feedHoppers`) — the one they all
19624
+ * declare alike. Different holds on such actions resolve to none.
19625
+ */
19626
+ function holdFor(cap, method, args) {
19627
+ const actionId = vocabActionIdFor(cap, method, args);
19628
+ if (actionId !== void 0) return findVocabAction(actionId)?.action.hold;
19629
+ const holds = allVocabActions().filter(({ cap: c, action }) => c === cap && action.method === method).map(({ action }) => action.hold);
19630
+ const first = holds[0];
19631
+ if (first === void 0) return void 0;
19632
+ const key = JSON.stringify(first);
19633
+ return holds.every((h) => JSON.stringify(h) === key) ? first : void 0;
19634
+ }
19635
+ /**
19636
+ * EVERY state the command `cap.method(args)` leads to (D1061): its `effect`
19637
+ * first, then each side effect whose condition holds on `current` (the cap's
19638
+ * slice the device reported when the command arrived). Empty when it leads to
19639
+ * none. One field is named once — the first entry for it wins. A `negate`
19640
+ * side effect flips what `shown` (the slice the person saw, held values
19641
+ * included) holds, so a second toggle before the first is confirmed undoes it.
19642
+ * An action that declares `hold.effects` is held as THOSE instead (a lock
19643
+ * holds `locking`, not `locked`).
19644
+ */
19645
+ function commandEffects(cap, method, args, current, shown = current) {
19646
+ const out = [];
19647
+ const hold = holdFor(cap, method, args);
19648
+ if (hold?.effects !== void 0) {
19649
+ for (const entry of hold.effects) {
19650
+ if (!effectConditionHolds(entry.when, current)) continue;
19651
+ const resolved = resolveSideEffect(entry, args, shown);
19652
+ if (resolved !== null && !out.some((e) => e.field === resolved.field)) out.push(resolved);
19653
+ }
19654
+ return out;
19655
+ }
19656
+ const actionId = vocabActionIdFor(cap, method, args);
19657
+ if (actionId === void 0) return [];
19658
+ const action = findVocabAction(actionId)?.action;
19659
+ if (action?.effect !== void 0) {
19660
+ const primary = resolveSideEffect(action.effect, args, shown, action.openArgs);
19661
+ if (primary !== null) out.push(primary);
19662
+ }
19663
+ for (const side of action?.sideEffects ?? []) {
19664
+ if (!effectConditionHolds(side.when, current)) continue;
19665
+ const resolved = resolveSideEffect(side, args, shown, action?.openArgs);
19666
+ if (resolved !== null && !out.some((e) => e.field === resolved.field)) out.push(resolved);
19667
+ }
19668
+ return out;
19669
+ }
19328
19670
  /**
19329
19671
  * Type-safe JSON parsing helpers.
19330
19672
  *
@@ -53854,7 +54196,7 @@ ${hasTime ? ` /** Read the site into memory. A failed read keeps the previous v
53854
54196
  ` : ""} // ── the condition mirror (D49): memory only at fire time ──
53855
54197
  async function refreshMirror(): Promise<void> {
53856
54198
  const report = await mirror.refresh({
53857
- fetchSlice: (deviceId, cap) => ctx.api.deviceState.getCapSlice.query({ deviceId, capName: cap }),
54199
+ fetchSlice: (deviceId, cap) => ctx.api.deviceState.getCapSlice.query({ deviceId, capName: cap, confirmed: true }),
53858
54200
  fetchStableIds: async () => {
53859
54201
  const all = await ctx.api.deviceManager.listAll.query({})
53860
54202
  return stableIdMapOf(all)
@@ -53868,7 +54210,7 @@ ${hasTime ? ` /** Read the site into memory. A failed read keeps the previous v
53868
54210
 
53869
54211
  function mirrorFetchers() {
53870
54212
  return {
53871
- fetchSlice: (deviceId: number, cap: string) => ctx.api.deviceState.getCapSlice.query({ deviceId, capName: cap }),
54213
+ fetchSlice: (deviceId: number, cap: string) => ctx.api.deviceState.getCapSlice.query({ deviceId, capName: cap, confirmed: true }),
53872
54214
  fetchStableIds: async () => {
53873
54215
  const all = await ctx.api.deviceManager.listAll.query({})
53874
54216
  return stableIdMapOf(all)
@@ -53937,7 +54279,7 @@ ${hasTime ? ` // a time-is leaf changes sides at a boundary with no device ev
53937
54279
  cap: string,
53938
54280
  ): Promise<{ readonly ok: true; readonly slice: unknown } | { readonly ok: false }> {
53939
54281
  try {
53940
- const slice = await ctx.api.deviceState.getCapSlice.query({ deviceId, capName: cap })
54282
+ const slice = await ctx.api.deviceState.getCapSlice.query({ deviceId, capName: cap, confirmed: true })
53941
54283
  return { ok: true, slice }
53942
54284
  } catch (err: unknown) {
53943
54285
  ctx.logger.debug('device state read failed — the leaf keeps what it knew', {
@@ -54324,8 +54666,10 @@ ${hasTime ? " await refreshSite()\n" : ""} await refreshMirror()
54324
54666
  const deviceId = data['deviceId']
54325
54667
  const capName = data['capName']
54326
54668
  if (typeof deviceId === 'number' && typeof capName === 'string') {
54327
- mirror.apply(deviceId, capName, data['slice'])
54328
- guardMirror.apply(deviceId, capName, data['slice'])
54669
+ // what the device reported: a held command is never a condition (D1061)
54670
+ const slice = data['confirmed'] ?? data['slice']
54671
+ mirror.apply(deviceId, capName, slice)
54672
+ guardMirror.apply(deviceId, capName, slice)
54329
54673
  feedHolds()
54330
54674
  evaluateStateTree()
54331
54675
  }
@@ -56920,6 +57264,14 @@ var alarmPanelCapability = {
56920
57264
  field: "state",
56921
57265
  value: "disarmed"
56922
57266
  },
57267
+ hold: { effects: [{
57268
+ field: "state",
57269
+ value: "disarming",
57270
+ when: {
57271
+ field: "state",
57272
+ notIn: ["disarmed"]
57273
+ }
57274
+ }] },
56923
57275
  openArgs: [{
56924
57276
  key: "code",
56925
57277
  label: t("PIN code", "Codice PIN"),
@@ -56950,6 +57302,14 @@ var alarmPanelCapability = {
56950
57302
  field: "state",
56951
57303
  value: "armed_home"
56952
57304
  },
57305
+ hold: { effects: [{
57306
+ field: "state",
57307
+ value: "arming",
57308
+ when: {
57309
+ field: "state",
57310
+ notIn: ["armed_home"]
57311
+ }
57312
+ }] },
56953
57313
  args: { mode: "home" },
56954
57314
  openArgs: [{
56955
57315
  key: "code",
@@ -56970,6 +57330,14 @@ var alarmPanelCapability = {
56970
57330
  field: "state",
56971
57331
  value: "armed_away"
56972
57332
  },
57333
+ hold: { effects: [{
57334
+ field: "state",
57335
+ value: "arming",
57336
+ when: {
57337
+ field: "state",
57338
+ notIn: ["armed_away"]
57339
+ }
57340
+ }] },
56973
57341
  args: { mode: "away" },
56974
57342
  openArgs: [{
56975
57343
  key: "code",
@@ -56990,6 +57358,14 @@ var alarmPanelCapability = {
56990
57358
  field: "state",
56991
57359
  value: "armed_night"
56992
57360
  },
57361
+ hold: { effects: [{
57362
+ field: "state",
57363
+ value: "arming",
57364
+ when: {
57365
+ field: "state",
57366
+ notIn: ["armed_night"]
57367
+ }
57368
+ }] },
56993
57369
  args: { mode: "night" },
56994
57370
  openArgs: [{
56995
57371
  key: "code",
@@ -57010,6 +57386,14 @@ var alarmPanelCapability = {
57010
57386
  field: "state",
57011
57387
  value: "armed_vacation"
57012
57388
  },
57389
+ hold: { effects: [{
57390
+ field: "state",
57391
+ value: "arming",
57392
+ when: {
57393
+ field: "state",
57394
+ notIn: ["armed_vacation"]
57395
+ }
57396
+ }] },
57013
57397
  args: { mode: "vacation" },
57014
57398
  openArgs: [{
57015
57399
  key: "code",
@@ -57030,6 +57414,14 @@ var alarmPanelCapability = {
57030
57414
  field: "state",
57031
57415
  value: "armed_custom_bypass"
57032
57416
  },
57417
+ hold: { effects: [{
57418
+ field: "state",
57419
+ value: "arming",
57420
+ when: {
57421
+ field: "state",
57422
+ notIn: ["armed_custom_bypass"]
57423
+ }
57424
+ }] },
57033
57425
  args: { mode: "custom_bypass" },
57034
57426
  openArgs: [{
57035
57427
  key: "code",
@@ -57859,6 +58251,10 @@ var automationControlCapability = {
57859
58251
  auth: "admin",
57860
58252
  actions: [{
57861
58253
  id: "haAutomation.enable",
58254
+ effect: {
58255
+ field: "enabled",
58256
+ value: true
58257
+ },
57862
58258
  label: t("Enable automation", "Abilita l’automazione"),
57863
58259
  phrase: t("Enable {device}", "Abilita {device}"),
57864
58260
  icon: "toggle-right"
@@ -57869,6 +58265,10 @@ var automationControlCapability = {
57869
58265
  auth: "admin",
57870
58266
  actions: [{
57871
58267
  id: "haAutomation.disable",
58268
+ effect: {
58269
+ field: "enabled",
58270
+ value: false
58271
+ },
57872
58272
  label: t("Disable automation", "Disabilita l’automazione"),
57873
58273
  phrase: t("Disable {device}", "Disabilita {device}"),
57874
58274
  icon: "toggle-left"
@@ -61322,6 +61722,14 @@ var climateControlCapability = {
61322
61722
  label: t("Set temperature range", "Imposta l’intervallo di temperatura"),
61323
61723
  phrase: t("Keep {device} between {targetLow} and {targetHigh}", "Mantieni {device} tra {targetLow} e {targetHigh}"),
61324
61724
  icon: "thermometer",
61725
+ effect: {
61726
+ field: "targetLow",
61727
+ fromArg: "targetLow"
61728
+ },
61729
+ sideEffects: [{
61730
+ field: "targetHigh",
61731
+ fromArg: "targetHigh"
61732
+ }],
61325
61733
  openArgs: [{
61326
61734
  key: "targetLow",
61327
61735
  label: t("Lowest", "Minima"),
@@ -61380,6 +61788,10 @@ var climateControlCapability = {
61380
61788
  label: t("Set fan mode", "Imposta la ventilazione"),
61381
61789
  phrase: t("Set the fan of {device} to {fanMode}", "Imposta la ventilazione di {device} su {fanMode}"),
61382
61790
  icon: "fan",
61791
+ effect: {
61792
+ field: "fanMode",
61793
+ fromArg: "fanMode"
61794
+ },
61383
61795
  openArgs: [{
61384
61796
  key: "fanMode",
61385
61797
  label: t("Fan mode", "Ventilazione"),
@@ -61402,6 +61814,10 @@ var climateControlCapability = {
61402
61814
  label: t("Set preset", "Imposta il preset"),
61403
61815
  phrase: t("Set {device} to preset {preset}", "Imposta {device} sul preset {preset}"),
61404
61816
  icon: "list",
61817
+ effect: {
61818
+ field: "preset",
61819
+ fromArg: "preset"
61820
+ },
61405
61821
  openArgs: [{
61406
61822
  key: "preset",
61407
61823
  label: t("Preset", "Preset"),
@@ -63645,6 +64061,10 @@ var mediaPlayerCapability = {
63645
64061
  auth: "protected",
63646
64062
  actions: [{
63647
64063
  id: "media.play",
64064
+ effect: {
64065
+ field: "state",
64066
+ value: "playing"
64067
+ },
63648
64068
  label: t("Play", "Riproduci"),
63649
64069
  phrase: t("Play on {device}", "Avvia la riproduzione su {device}"),
63650
64070
  icon: "play"
@@ -63655,6 +64075,10 @@ var mediaPlayerCapability = {
63655
64075
  auth: "protected",
63656
64076
  actions: [{
63657
64077
  id: "media.pause",
64078
+ effect: {
64079
+ field: "state",
64080
+ value: "paused"
64081
+ },
63658
64082
  label: t("Pause media", "Metti in pausa"),
63659
64083
  phrase: t("Pause {device}", "Metti in pausa {device}"),
63660
64084
  icon: "pause"
@@ -63698,6 +64122,10 @@ var mediaPlayerCapability = {
63698
64122
  auth: "protected",
63699
64123
  actions: [{
63700
64124
  id: "media.volume",
64125
+ effect: {
64126
+ field: "volumeLevel",
64127
+ fromArg: "volumeLevel"
64128
+ },
63701
64129
  label: t("Set volume", "Imposta il volume"),
63702
64130
  phrase: t("Set the volume of {device} to {volumeLevel}", "Imposta il volume di {device} al {volumeLevel}"),
63703
64131
  icon: "volume-2",
@@ -63722,12 +64150,20 @@ var mediaPlayerCapability = {
63722
64150
  auth: "protected",
63723
64151
  actions: [{
63724
64152
  id: "media.mute",
64153
+ effect: {
64154
+ field: "isMuted",
64155
+ value: true
64156
+ },
63725
64157
  label: t("Mute", "Silenzia"),
63726
64158
  phrase: t("Mute {device}", "Silenzia {device}"),
63727
64159
  icon: "volume-x",
63728
64160
  args: { muted: true }
63729
64161
  }, {
63730
64162
  id: "media.unmute",
64163
+ effect: {
64164
+ field: "isMuted",
64165
+ value: false
64166
+ },
63731
64167
  label: t("Unmute", "Riattiva l’audio"),
63732
64168
  phrase: t("Unmute {device}", "Riattiva l’audio di {device}"),
63733
64169
  icon: "volume-2",
@@ -63742,12 +64178,20 @@ var mediaPlayerCapability = {
63742
64178
  auth: "protected",
63743
64179
  actions: [{
63744
64180
  id: "media.shuffleOn",
64181
+ effect: {
64182
+ field: "shuffle",
64183
+ value: true
64184
+ },
63745
64185
  label: t("Shuffle on", "Riproduzione casuale attiva"),
63746
64186
  phrase: t("Turn on shuffle on {device}", "Attiva la riproduzione casuale su {device}"),
63747
64187
  icon: "shuffle",
63748
64188
  args: { shuffle: true }
63749
64189
  }, {
63750
64190
  id: "media.shuffleOff",
64191
+ effect: {
64192
+ field: "shuffle",
64193
+ value: false
64194
+ },
63751
64195
  label: t("Shuffle off", "Riproduzione casuale spenta"),
63752
64196
  phrase: t("Turn off shuffle on {device}", "Disattiva la riproduzione casuale su {device}"),
63753
64197
  icon: "shuffle",
@@ -63762,6 +64206,10 @@ var mediaPlayerCapability = {
63762
64206
  auth: "protected",
63763
64207
  actions: [{
63764
64208
  id: "media.repeat",
64209
+ effect: {
64210
+ field: "repeat",
64211
+ fromArg: "repeat"
64212
+ },
63765
64213
  label: t("Set repeat", "Imposta la ripetizione"),
63766
64214
  phrase: t("Set repeat on {device} to {repeat}", "Imposta la ripetizione di {device} su {repeat}"),
63767
64215
  icon: "repeat",
@@ -63796,6 +64244,10 @@ var mediaPlayerCapability = {
63796
64244
  auth: "protected",
63797
64245
  actions: [{
63798
64246
  id: "media.source",
64247
+ effect: {
64248
+ field: "source",
64249
+ fromArg: "source"
64250
+ },
63799
64251
  label: t("Select source", "Scegli la sorgente"),
63800
64252
  phrase: t("Switch {device} to {source}", "Passa {device} alla sorgente {source}"),
63801
64253
  icon: "cast",
@@ -74392,7 +74844,9 @@ var deviceStateCapability = {
74392
74844
  */
74393
74845
  getCapSlice: method(z.object({
74394
74846
  deviceId: z.number(),
74395
- capName: z.string()
74847
+ capName: z.string(),
74848
+ /** The slice the device CONFIRMED, without a held command (D1061) — history and automations. */
74849
+ confirmed: z.boolean().optional()
74396
74850
  }), z.record(z.string(), z.unknown()).nullable()),
74397
74851
  /**
74398
74852
  * Whole-system snapshot — every device's full state in one
@@ -74401,7 +74855,9 @@ var deviceStateCapability = {
74401
74855
  * `sm.getDeviceById(id).state.<cap>.value` is sync. Empty inner
74402
74856
  * record for devices that haven't emitted any slice yet.
74403
74857
  */
74404
- getAllSnapshots: method(z.object({}), z.record(z.string(), z.record(z.string(), z.record(z.string(), z.unknown())))),
74858
+ getAllSnapshots: method(z.object({
74859
+ /** The slices the devices CONFIRMED, without held commands (D1061). */
74860
+ confirmed: z.boolean().optional() }), z.record(z.string(), z.record(z.string(), z.record(z.string(), z.unknown())))),
74405
74861
  /**
74406
74862
  * Canonical cross-layer WRITE for one cap-keyed slice. Used by
74407
74863
  * everyone who needs to publish runtime state for a device:
@@ -77067,7 +77523,15 @@ var fanControlCapability = {
77067
77523
  field: "speed",
77068
77524
  value: 100
77069
77525
  },
77070
- args: { speed: 100 }
77526
+ args: { speed: 100 },
77527
+ sideEffects: [{
77528
+ field: "preset",
77529
+ value: "",
77530
+ when: {
77531
+ field: "preset",
77532
+ notIn: [""]
77533
+ }
77534
+ }]
77071
77535
  },
77072
77536
  {
77073
77537
  id: "fan.speed",
@@ -77078,6 +77542,14 @@ var fanControlCapability = {
77078
77542
  field: "speed",
77079
77543
  fromArg: "speed"
77080
77544
  },
77545
+ sideEffects: [{
77546
+ field: "preset",
77547
+ value: "",
77548
+ when: {
77549
+ field: "preset",
77550
+ notIn: [""]
77551
+ }
77552
+ }],
77081
77553
  openArgs: [{
77082
77554
  key: "speed",
77083
77555
  label: t("Speed", "Velocità"),
@@ -77103,6 +77575,10 @@ var fanControlCapability = {
77103
77575
  label: t("Set preset", "Imposta il preset"),
77104
77576
  phrase: t("Set {device} to preset {preset}", "Imposta {device} sul preset {preset}"),
77105
77577
  icon: "list",
77578
+ effect: {
77579
+ field: "preset",
77580
+ fromArg: "preset"
77581
+ },
77106
77582
  openArgs: [{
77107
77583
  key: "preset",
77108
77584
  label: t("Preset", "Preset"),
@@ -83565,6 +84041,14 @@ var lockControlCapability = {
83565
84041
  field: "state",
83566
84042
  value: "locked"
83567
84043
  },
84044
+ hold: { effects: [{
84045
+ field: "state",
84046
+ value: "locking",
84047
+ when: {
84048
+ field: "state",
84049
+ notIn: ["locked"]
84050
+ }
84051
+ }] },
83568
84052
  openArgs: [{
83569
84053
  key: "code",
83570
84054
  label: t("PIN code", "Codice PIN"),
@@ -83598,6 +84082,14 @@ var lockControlCapability = {
83598
84082
  field: "state",
83599
84083
  value: "unlocked"
83600
84084
  },
84085
+ hold: { effects: [{
84086
+ field: "state",
84087
+ value: "unlocking",
84088
+ when: {
84089
+ field: "state",
84090
+ notIn: ["unlocked"]
84091
+ }
84092
+ }] },
83601
84093
  openArgs: [{
83602
84094
  key: "code",
83603
84095
  label: t("PIN code", "Codice PIN"),
@@ -97415,6 +97907,14 @@ var osdManagerCapability = {
97415
97907
  vocabulary: { notOperatorFacing: NOT_A_DEVICE.PIPELINE }
97416
97908
  };
97417
97909
  /**
97910
+ * Hold limits a cap's vocabulary may declare on an action (D1061).
97911
+ *
97912
+ * A one-shot command (feed, run a script) has no lasting state to confirm; it
97913
+ * holds its in-progress flag just long enough that a second tap, before the
97914
+ * device reports, is seen as "already running" and refused.
97915
+ */
97916
+ var ONE_SHOT_HOLD_MS = 1e4;
97917
+ /**
97418
97918
  * Feeder connectivity / power status — mirrors the HA petkit device-status
97419
97919
  * enum: `normal` (online, mains), `offline` (not reaching PetKit cloud),
97420
97920
  * `on_batteries` (running on battery backup). `null` until first reported.
@@ -97532,6 +98032,13 @@ var petFeederCapability = {
97532
98032
  label: t("Feed", "Dai da mangiare"),
97533
98033
  phrase: t("Dispense {grams} from {device}", "Eroga {grams} da {device}"),
97534
98034
  icon: "paw-print",
98035
+ hold: {
98036
+ effects: [{
98037
+ field: "feeding",
98038
+ value: true
98039
+ }],
98040
+ holdMs: ONE_SHOT_HOLD_MS
98041
+ },
97535
98042
  openArgs: [{
97536
98043
  key: "grams",
97537
98044
  label: t("Grams", "Grammi"),
@@ -97550,6 +98057,13 @@ var petFeederCapability = {
97550
98057
  label: t("Feed from both hoppers", "Eroga da entrambi i serbatoi"),
97551
98058
  phrase: t("Dispense {hopper1} and {hopper2} from {device}", "Eroga {hopper1} e {hopper2} da {device}"),
97552
98059
  icon: "paw-print",
98060
+ hold: {
98061
+ effects: [{
98062
+ field: "feeding",
98063
+ value: true
98064
+ }],
98065
+ holdMs: ONE_SHOT_HOLD_MS
98066
+ },
97553
98067
  openArgs: [{
97554
98068
  key: "hopper1",
97555
98069
  label: t("Hopper 1", "Serbatoio 1"),
@@ -97655,12 +98169,20 @@ var petFeederCapability = {
97655
98169
  auth: "protected",
97656
98170
  actions: [{
97657
98171
  id: "petFeeder.childLockOn",
98172
+ effect: {
98173
+ field: "childLock",
98174
+ value: true
98175
+ },
97658
98176
  label: t("Child lock on", "Blocco bambini attivo"),
97659
98177
  phrase: t("Turn on the child lock of {device}", "Attiva il blocco bambini di {device}"),
97660
98178
  icon: "lock",
97661
98179
  args: { on: true }
97662
98180
  }, {
97663
98181
  id: "petFeeder.childLockOff",
98182
+ effect: {
98183
+ field: "childLock",
98184
+ value: false
98185
+ },
97664
98186
  label: t("Child lock off", "Blocco bambini spento"),
97665
98187
  phrase: t("Turn off the child lock of {device}", "Disattiva il blocco bambini di {device}"),
97666
98188
  icon: "lock-open",
@@ -97676,12 +98198,20 @@ var petFeederCapability = {
97676
98198
  auth: "protected",
97677
98199
  actions: [{
97678
98200
  id: "petFeeder.lightOn",
98201
+ effect: {
98202
+ field: "indicatorLight",
98203
+ value: true
98204
+ },
97679
98205
  label: t("Indicator light on", "Spia accesa"),
97680
98206
  phrase: t("Turn on the indicator light of {device}", "Accendi la spia di {device}"),
97681
98207
  icon: "lightbulb",
97682
98208
  args: { on: true }
97683
98209
  }, {
97684
98210
  id: "petFeeder.lightOff",
98211
+ effect: {
98212
+ field: "indicatorLight",
98213
+ value: false
98214
+ },
97685
98215
  label: t("Indicator light off", "Spia spenta"),
97686
98216
  phrase: t("Turn off the indicator light of {device}", "Spegni la spia di {device}"),
97687
98217
  icon: "lightbulb-off",
@@ -97697,12 +98227,20 @@ var petFeederCapability = {
97697
98227
  auth: "protected",
97698
98228
  actions: [{
97699
98229
  id: "petFeeder.feedSoundOn",
98230
+ effect: {
98231
+ field: "feedSound",
98232
+ value: true
98233
+ },
97700
98234
  label: t("Feeding sound on", "Suono di erogazione attivo"),
97701
98235
  phrase: t("Turn on the feeding sound of {device}", "Attiva il suono di erogazione di {device}"),
97702
98236
  icon: "volume-2",
97703
98237
  args: { on: true }
97704
98238
  }, {
97705
98239
  id: "petFeeder.feedSoundOff",
98240
+ effect: {
98241
+ field: "feedSound",
98242
+ value: false
98243
+ },
97706
98244
  label: t("Feeding sound off", "Suono di erogazione spento"),
97707
98245
  phrase: t("Turn off the feeding sound of {device}", "Disattiva il suono di erogazione di {device}"),
97708
98246
  icon: "volume-x",
@@ -97718,6 +98256,10 @@ var petFeederCapability = {
97718
98256
  auth: "protected",
97719
98257
  actions: [{
97720
98258
  id: "petFeeder.volume",
98259
+ effect: {
98260
+ field: "volume",
98261
+ fromArg: "level"
98262
+ },
97721
98263
  label: t("Set volume", "Imposta il volume"),
97722
98264
  phrase: t("Set the volume of {device} to {level}", "Imposta il volume di {device} a {level}"),
97723
98265
  icon: "volume-2",
@@ -97884,12 +98426,20 @@ setPump: method(z.object({
97884
98426
  auth: "protected",
97885
98427
  actions: [{
97886
98428
  id: "petFountain.pumpOn",
98429
+ effect: {
98430
+ field: "pumpRunning",
98431
+ value: true
98432
+ },
97887
98433
  label: t("Pump on", "Pompa accesa"),
97888
98434
  phrase: t("Start the pump of {device}", "Avvia la pompa di {device}"),
97889
98435
  icon: "play",
97890
98436
  args: { on: true }
97891
98437
  }, {
97892
98438
  id: "petFountain.pumpOff",
98439
+ effect: {
98440
+ field: "pumpRunning",
98441
+ value: false
98442
+ },
97893
98443
  label: t("Pump off", "Pompa spenta"),
97894
98444
  phrase: t("Stop the pump of {device}", "Ferma la pompa di {device}"),
97895
98445
  icon: "square",
@@ -101349,12 +101899,20 @@ var pumpCycleCapability = {
101349
101899
  auth: "protected",
101350
101900
  actions: [{
101351
101901
  id: "pumpCycle.on",
101902
+ effect: {
101903
+ field: "enabled",
101904
+ value: true
101905
+ },
101352
101906
  label: t("Pump cycle on", "Ciclo pompa attivo"),
101353
101907
  phrase: t("Run the pump of {device} on its on/off cycle", "Fai lavorare la pompa di {device} a ciclo acceso/spento"),
101354
101908
  icon: "timer",
101355
101909
  args: { on: true }
101356
101910
  }, {
101357
101911
  id: "pumpCycle.off",
101912
+ effect: {
101913
+ field: "enabled",
101914
+ value: false
101915
+ },
101358
101916
  label: t("Pump cycle off", "Ciclo pompa spento"),
101359
101917
  phrase: t("Run the pump of {device} continuously", "Fai lavorare la pompa di {device} in continuo"),
101360
101918
  icon: "timer-off",
@@ -101373,6 +101931,11 @@ var pumpCycleCapability = {
101373
101931
  label: t("Set pump run time", "Imposta il tempo di lavoro della pompa"),
101374
101932
  phrase: t("Set the pump of {device} to run {minutes} minutes per cycle", "Imposta la pompa di {device} a lavorare {minutes} minuti per ciclo"),
101375
101933
  icon: "timer",
101934
+ effect: {
101935
+ field: "onTime",
101936
+ fromArg: "minutes",
101937
+ scale: 60
101938
+ },
101376
101939
  openArgs: [{
101377
101940
  key: "minutes",
101378
101941
  label: t("Minutes", "Minuti"),
@@ -101397,6 +101960,11 @@ var pumpCycleCapability = {
101397
101960
  label: t("Set pump rest time", "Imposta il tempo di riposo della pompa"),
101398
101961
  phrase: t("Set the pump of {device} to rest {minutes} minutes per cycle", "Imposta la pompa di {device} a riposare {minutes} minuti per ciclo"),
101399
101962
  icon: "timer-off",
101963
+ effect: {
101964
+ field: "offTime",
101965
+ fromArg: "minutes",
101966
+ scale: 60
101967
+ },
101400
101968
  openArgs: [{
101401
101969
  key: "minutes",
101402
101970
  label: t("Minutes", "Minuti"),
@@ -105711,7 +106279,14 @@ var scriptRunnerCapability = {
105711
106279
  id: "script.run",
105712
106280
  label: t("Run script", "Esegui lo script"),
105713
106281
  phrase: t("Run {device}", "Esegui {device}"),
105714
- icon: "scroll-text"
106282
+ icon: "scroll-text",
106283
+ hold: {
106284
+ effects: [{
106285
+ field: "isRunning",
106286
+ value: true
106287
+ }],
106288
+ holdMs: ONE_SHOT_HOLD_MS
106289
+ }
105715
106290
  }]
105716
106291
  }),
105717
106292
  /** Cancel a running script. Provider rejects when the script
@@ -105721,6 +106296,10 @@ var scriptRunnerCapability = {
105721
106296
  auth: "admin",
105722
106297
  actions: [{
105723
106298
  id: "script.stop",
106299
+ effect: {
106300
+ field: "isRunning",
106301
+ value: false
106302
+ },
105724
106303
  label: t("Stop script", "Ferma lo script"),
105725
106304
  phrase: t("Stop {device}", "Ferma {device}"),
105726
106305
  icon: "square"
@@ -108098,6 +108677,10 @@ var switchCapability = {
108098
108677
  auth: "protected",
108099
108678
  actions: [{
108100
108679
  id: "switch.toggle",
108680
+ sideEffects: [{
108681
+ field: "on",
108682
+ negate: true
108683
+ }],
108101
108684
  label: t("Toggle", "Commuta"),
108102
108685
  phrase: t("Toggle {device}", "Commuta {device}"),
108103
108686
  icon: "toggle-right",
@@ -139269,5 +139852,42 @@ function searchRank(rawQuery, fields) {
139269
139852
  const keywords = (fields.keywords ?? []).map(normalizeSearchText).filter((keyword) => keyword.length > 0);
139270
139853
  return matchRank(label, keywords, (fields.identifiers ?? []).map(normalizeSearchText).filter((identifier) => identifier.length > 0), query) ?? fuzzyMatchRank(label, query) ?? bestFuzzy(keywords, query);
139271
139854
  }
139855
+ /**
139856
+ * How long a command is held when nothing says otherwise. Equal to the
139857
+ * transition correlator's match window (D1022), so a hold that reverts and a
139858
+ * command recorded `unconfirmed` are the same event.
139859
+ */
139860
+ var DEFAULT_COMMAND_HOLD_MS = 3e4;
139861
+ /** The longest hold a provider may ask for: a value the device never confirms is not shown for long. */
139862
+ var MAX_COMMAND_HOLD_MS = 12e4;
139863
+ function clampHoldMs(ms) {
139864
+ if (ms === void 0 || !Number.isFinite(ms)) return DEFAULT_COMMAND_HOLD_MS;
139865
+ return Math.min(MAX_COMMAND_HOLD_MS, Math.max(1, Math.round(ms)));
139866
+ }
139867
+ function resolveList(list, args, current, shown, into) {
139868
+ for (const entry of list) {
139869
+ if (!effectConditionHolds(entry.when, current)) continue;
139870
+ const resolved = resolveSideEffect(entry, args, shown);
139871
+ if (resolved !== null && !into.some((e) => e.field === resolved.field)) into.push(resolved);
139872
+ }
139873
+ }
139874
+ /**
139875
+ * What to hold for `cap.method(args)` given the cap's slice when it arrived
139876
+ * (`current`, as the device reported it; `shown`, with the held values over
139877
+ * it — what a `negate` flips) and the provider's option for the method.
139878
+ * `null` = hold nothing (`never`, or a command that leads to no state).
139879
+ */
139880
+ function resolveCommandHold(cap, method, args, current, option, shown = current) {
139881
+ if (option?.hold === "never") return null;
139882
+ const effects = [];
139883
+ if (option?.effects !== void 0) resolveList(option.effects, args, current, shown, effects);
139884
+ else effects.push(...commandEffects(cap, method, args, current, shown));
139885
+ if (option?.extraEffects !== void 0) resolveList(option.extraEffects, args, current, shown, effects);
139886
+ if (effects.length === 0) return null;
139887
+ return {
139888
+ effects,
139889
+ holdMs: clampHoldMs(option?.holdMs ?? commandHoldMs(cap, method, args))
139890
+ };
139891
+ }
139272
139892
  //#endregion
139273
- export { DEVICE_TOMBSTONE_RETENTION_MS as $, recordsCapability as $a, asString$1 as $c, localDateOf as $i, secretTreeFromSchema as $l, calendarsCapability as $n, streamQualityLabel as $o, evaluateStepCondition as $r, historyRetentionFromSettings as $s, RECORDING_SOURCE_CAMSTACK_ADDON as $t, ConditionMirror as A, parseAcceleratorFactsJson as Aa, RECORD_SECRET_COLLECTION_PREFIX as Ac, isAlertEpisodeOpen as Ai, isKeychainStoredField as Al, actionWaitTotalMs as An, scopesAllowAddon as Ao, declarationOwnerNodeId as Ar, DAY_MS as As, KeychainAuditEntrySchema as At, DERIVED_CAMERA_SILENCED_CAP_NAMES as B, powerSourceLinkOfComposition as Ba, RecordTooLargeError as Bc, isKernelDerivedFeature as Bi, nodePin as Bl, armRemovalReconcile as Bn, sharedColorModes as Bo, deviceHistoryCapability as Br, capAppliesToDeviceKind as Bs, MigrationMetaSchema as Bt, COMPOSED_ITEM_FIXED_FIELDS as C, normalizeCoreBlockWrite as Ca, HISTORY_DEFAULT_MIN_INTERVAL_MS as Cc, hostEngineDevice as Ci, historyUnitFor as Cl, TemplateKindSchema as Cn, resolveTemplateRef as Co, coreBlockSourceKind as Cr, withDefaultRunning as Cs, HUB_MDNS_SERVICE_TYPE as Ct, CREDENTIAL_TOKEN_AUDIENCE as D, objectInputDeclaresRequiredDeviceId as Da, RECORD_BATCH_MAX as Dc, internalActionId as Di, isDeviceConfigCap as Dl, WORKLOAD_TRANSITION_CATEGORY as Dn, runtimeStatePolicyFor as Do, customKeyOfRole as Dr, zoneOnlySite as Ds, IDLE_ACTION_STATUS as Dt, CORE_BLOCK_ADDON_PREFIX as E, objectInputDeclaresAddonId as Ea, PlaintextSecretError as Ec, integrationInstancesCapability as Ei, isDebugChannelName as El, UserRecordSchema as En, runtimeFieldUnit as Eo, createDeviceExtensionProvider as Er, workloadTransition as Es, HvacModeSchema as Et, DATABASE_SNAPSHOT_SUFFIX as F, pickAppLinkHub as Fa, ReadinessRegistry as Fc, isCollectionArrayMethod as Fi, isSecretMarkerLike as Fl, addonWidgetsCapability as Fn, selectEngineHostedBlocks as Fo, deriveBatteryPresence as Fr, HelperMemberSchema as Fs, MIGRATION_API_V1_METHODS as Ft, DEVICE_NONCE_TTL_MS as G, processTimeZoneOr as Ga, TransactRefusedError as Gc, isWorkloadSettled as Gi, parseSecretRef as Gl, brightnessCapability as Gn, splitTranslationRef as Go, deviceSleeps as Gr, compositionItemFieldPath as Gs, PROPOSAL_MIN_SPAN_MS as Gt, DEVICE_HISTORY_ENERGY_KEY as H, prepareRecipeUnits as Ha, RevConflictError as Hc, isObjectInput as Hi, normalizeSecretOwner as Hl, authProviderCapability as Hn, siteFor as Ho, deviceOffersActions as Hr, composedDeviceRef as Hs, NetworkTunnelStartedDataSchema as Ht, DATABASE_SNAPSHOT_TIMEOUT_MS as I, planComposition as Ia, ReadinessTimeoutError as Ic, isCredentialTokenPayload as Ii, isSecretRefOwnedBy as Il, alertEpisodeId as In, settingsStoreCapability as Io, describeComposableCaps as Ir, MINUTE_MS as Is, MINUTES_PER_DAY as It, DEVICE_TEMPLATE_FILTERS as J, ptzAutotrackCapability as Ja, VocabActionError as Jc, keychainCapability as Ji, resolveCapMount as Jl, buildDeviceEnrollmentLink as Jn, storageCapability as Jo, deviceTransitionsCapability as Jr, createStatefulExpressionMemory as Js, PowerSourceInfoSchema as Jt, DEVICE_SAN_CREDENTIAL_PREFIX as K, projectDeviceRow as Ka, UnindexedFilterError as Kc, kebabToCamel as Ki, readinessKey as Kl, buildActionSteps as Kn, stableIdMapOf as Ko, deviceStateCapability as Kr, compositionSliceKey as Ks, PackageRequiresSchema as Kt, DATA_STORE_DATABASES as L, platformProbeCapability as La, RecordIntegrationInstances as Lc, isDefaultAppConnectionEndpoint as Li, makeSecretMarker as Ll, alertEpisodePayload as Ln, settleDeviceFeatures as Lo, describeUnmet as Lr, buildFfmpegArgs as Ls, MOTION_CLOSE_AFTER_MS as Lt, CoreBlockSchema as M, parseStreamParamsFormPatch as Ma, REDACTED_SECRET as Mc, isAppLinkBase as Mi, isSecretClear as Ml, addonIdOfActionId as Mn, scoreRuntimes as Mo, decodeVectorBase64 as Mr, HISTORY_FAST_MS as Ms, LOG_LEVEL_RANK as Mt, CredentialTokenClaimsSchema as N, petFountainCapability as Na, REMOVE_LEAF as Nc, isArrayOutputSchema as Ni, isSecretFieldView as Nl, addonPagesCapability as Nn, searchRank as No, defaultTagColorId as Nr, HISTORY_SLOW_MS as Ns, LowPowerSleepStatusSchema as Nt, CalendarPreferencesSchema as O, occurrenceOn as Oa, RECORD_BATCH_MAX_BYTES as Oc, interpolate as Oi, isEvent as Ol, WorkloadStateSchema as On, sameIdentifiers as Oo, dataStoreProviderCapability as Or, COMPOSER_ADDON_ID as Os, INTERNAL_ACTION_PREFIX as Ot, DATABASE_SNAPSHOT_PARTIAL_SUFFIX as P, petFountainWaterItem as Pa, RUNTIME_DEFAULTS as Pc, isBuiltinTemplateId as Pi, isSecretMarker as Pl, addonSettingsCapability as Pn, seedInstanceOnce as Po, defineExtensionSlotProvider as Pr, HOUR_MS as Ps, METHOD_ACCESS_MAP as Pt, DEVICE_TEMPLATE_VALUES_CAP as Q, recordEntriesCapability as Qa, asNumber as Qc, lifecycleJobSchema as Qi, secretTreeFromPaths as Ql, builtinAutomationTemplate as Qn, streamCatalogCapability as Qo, evaluateCompositionField as Qr, helperMembers as Qs, QuantityUnitError as Qt, DAY_NAMES as R, powerSourceActuatorConflicts as Ra, RecordKindDeclarationSchema as Rc, isEmptyIdentifiers as Ri, mapSecretLeaves as Rl, alertsCapability as Rn, sharedActuatorFeatures as Ro, deviceCredentialsCapability as Rr, canonicalStoredBlockTarget as Rs, MediaPlayerStatusSchema as Rt, CATALOG_LANGS as S, normalizeActionUnits as Sa, ForeignSecretMarkerError as Sc, heroLayoutCapability as Si, historyItemFieldPath as Sl, TagsFieldSchema as Sn, resolveStepArgs as So, coreBlockIdFromAddonId as Sr, weekdayOfLocalDate as Ss, HISTORY_ITEM_CATALOG as St, CORE_BLOCKS_ADDON_ID as T, normalizeUnit as Ta, NoCallerError as Tc, instanceCodeHash as Ti, isCommand as Tl, UNATTRIBUTED_BUCKET_KEY as Tn, runSteps as To, coverCapability as Tr, workloadCapability as Ts, HostedWithdrawalGate as Tt, DEVICE_IDENTIFIER_KEYS as U, problemsBlockSave as Ua, SECRET_CLEAR as Uc, isSameAddonId as Ui, parseJsonObject as Ul, backupCapability as Un, siteZoneKey as Uo, deviceRemovalHookCapability as Ur, composedDeviceStableId as Us, PET_FOUNTAIN_WATER_KEY as Ut, DEVICE_ENROLLMENT_TTL_MS as V, preconditionOf as Va, RecordUniqueViolationError as Vc, isLocationEnabled as Vi, normalizeNodeId as Vl, assertStepsOffered as Vn, shortHostname as Vo, deviceManagerCapability as Vr, cloneStatefulExpressionMemory as Vs, NcTaggedRuleKindSchema as Vt, DEVICE_ID_FIELD as W, procedureAuthKey as Wa, StoredRecordKindDeclarationSchema as Wc, isVoidInput as Wi, parseJsonUnknown as Wl, bareAddonId as Wn, snapshotCapability as Wo, deviceRunsCapability as Wr, compositionFeatureEnabled as Ws, PREFERENCES_MAX_VALUE_BYTES as Wt, DEVICE_TEMPLATE_MAX_OUTPUT as X, readStoredRemoteConfig as Xa, actionEffect as Xc, legacyModeOf as Xi, ruleFireOfClaim as Xl, buildHeroModel as Xn, storageOccupancyCapability as Xo, enumerateItemArrayFields as Xr, evaluateDerivative as Xs, PreferenceNamespaceSchema as Xt, DEVICE_TEMPLATE_MAX_LENGTH as Y, readRecipeLiteral as Ya, WELL_KNOWN_TAB_MAP as Yc, legacyAutoLinkIds as Yi, resolveSecretMarkers as Yl, buildDeviceSignatureMessage as Yn, storageMigrationCapability as Yo, enumerateInferenceDevices as Yr, disarmRoseMemory as Ys, PreferenceDeviceIdSchema as Yt, DEVICE_TEMPLATE_THIS_ALIAS as Z, reconcileReportedFeatures as Za, asJsonObject as Zc, legacySweepDone as Zi, scopeKey as Zl, buildStreamParamsConfigSchema as Zn, storageProviderCapability as Zo, enumerateSchemaFields as Zr, evaluateStatistic as Zs, PreferenceValueSchema as Zt, BUILTIN_REMOTE_COMPONENTS as _, modeForSwitch as _a, DEVICE_SETTINGS_CONTRIBUTION_METHODS as _c, generateAutomationBlock as _i, emitReadiness as _l, StorageLocationModeSchema as _n, resolveMethodAuth as _o, compositionSourceRefs as _r, validateSchedulerInput as _s, FanPresetSchema as _t, AGENT_MDNS_SERVICE_TYPE as a, logLevelAtMost as aa, nextLocalMidnight as ac, extractSourceInfoFromMetadata as ai, collectSecretLeaves as al, RunningStateStatusSchema as an, removeFromTags as ao, checkDeviceAlias as ar, tagsCapability as as, DeviceTombstoneSchema as at, userError as au, CAMSTACK_APP_LINK_ORIGIN as b, nextOccurrence as ba, DeviceTransitionSchema as bc, groupTemplate as bi, formatSecretScope as bl, TagNameSchema as bn, resolveRemoteSource as bo, coreBlockAddonId as br, vectorIndexDimConflictError as bs, GroupCommandResultSchema as bt, ActionError as c, mayReadLocation as ca, planResetTier as cc, fanOutTargets as ci, commandEffect as cl, STREAM_PROFILE_META as cn, replacedFieldKeys as co, climateControlCapability as cr, timedRunLimitOf as cs, EMPTY_REMOTE_ASSUMED_STATE as ct, withoutCallerStamp as cu, ActionTargetResolver as d, mediaPlayerFeaturesOfRoles as da, toExpressionValue as dc, filesystemBrowseCapability as di, customAction as dl, SchedulerSchema as dn, resolveBucketMs as do, colorCapability as dr, timedRunSeconds as ds, FAN_CAPTURE_FIELDS as dt, DeviceRole as du, localNetworkCapability as ea, implementedMethodsOf as ec, evaluateWhenTree as ei, assertTransactScope as el, REMOTE_MEDIA_COMMANDS as en, reducePoints as eo, cameraGridLayoutCapability as er, supportedRuntimes as es, DataStoreDatabaseSchema as et, secretViewsOf as eu, ActionVariableSchema as f, memoizePinnedFfmpeg as fa, wattMillisecondsToKwh as fc, findChannelSource as fi, defineAddonMigrations as fl, ScopedTokenSchema as fn, resolveCoreBlockEntry as fo, compareVersions as fr, toTimings as fs, FAN_OSCILLATION_AXES as ft, DeviceType as fu, BUILTIN_AUTOMATION_TEMPLATES as g, migrationsCapability as ga, DATAPLANE_SECRET_HEADER as gc, gbToBytes as gi, emitDownForOwnedCaps as gl, StorageCleanupJobSchema as gn, resolveLocationMode as go, compositionFieldKey as gr, validateCustomAddress as gs, FanDirectionSchema as gt, AutomationTemplatePayloadSchema as h, metricsProviderCapability as ha, CALLER_STAMPED_CAPABILITIES as hc, formatMinutes as hi, defineRecordKinds as hl, SsoBridgeClaimsSchema as hn, resolveHubAddressRoles as ho, composerCapability as hr, validateComposition as hs, FanControlStatusSchema as ht, EventCategory as hu, ACTUATOR_TEMPLATE_IDS as i, logDestinationCapability as ia, isHistoryHelper as ic, extractNestedAddonId as ii, collectSecretConfigKeys as il, RemoteLayoutPayloadSchema as in, remoteSourceSteps as io, catalogueIssues as ir, tagKey as is, DeviceStatusSchema as it, transformSecretWrite as iu, ConsumableItemSchema as j, parseColorInput as ja, RECORD_SWEEP_INTERVAL_MS as jc, isAlertEpisodeSeverity as ji, isReadingQuantity as jl, actionsCapability as jn, scopesAllowDeviceCap as jo, declaredSeriesKind as jr, DEFAULT_HISTORY_RETENTION as js, KeychainResetRecordSchema as jt, CatalogFileSchema as k, orderMigrations as ka, RECORD_DELETE_BATCH as kc, isAddonInstanceId as ki, isInstanceEnabled as kl, actionSourceCapability as kn, schedulersCapability as ko, databaseSnapshotCapability as kr, CompositionSchema as ks, KEYCHAIN_RESET_TRIGGER_ACTOR as kt, ActionMinDelaySecSchema as l, mayWriteToLocation as la, planStatisticTier as lc, fanPresetsCapability as li, commandOrigin as ll, SWITCH_DEFAULT_OPTIONS as ln, resolveActionVariables as lo, collectDeviceTemplates as lr, timedRunMaxIn as ls, EMPTY_REMOTE_CONFIG as lt, COMPOSED_DEVICE_STABLE_ID_PREFIX as lu, AutomationStateDocSchema as m, methodRefusal as ma, BatchTooLargeError as mc, formatDeviceRevoker as mi, defineEntryKind as ml, SetOscillationAxisInputSchema as mn, resolveHeroLayout as mo, compileScalarOverride as mr, userManagementCapability as ms, FIRST_LEVEL_MACRO_CLASSES as mt, featuresOfBoundCaps as mu, ACTION_TARGET_INVALIDATION_EVENTS as n, lockControlCapability as na, isEngineHostedHelper as nc, expandContainer as ni, auditedFields as nl, RecordingStatusSchema as nn, remoteCapability as no, canonicalStoredStepTargets as nr, switchCapability as ns, DeviceIdentifiersSchema as nt, toNodeId as nu, AGENT_MDNS_TXT_KEYS as o, looseSchema as oa, openReset as oc, fanAxisPath as oi, collectSecretMarkerRefs as ol, STORAGE_ACCESS_FALLBACK as on, renameInTags as oo, checkRoleAddress as or, templateCapability as os, DiscoveryProposalBodySchema as ot, vocabActionIdFor as ou, AlertSchema as p, mergeIdentifiers as pa, BaseAddon as pc, foldSnapshotByFunction as pi, defineCustomActions as pl, ServerNameSchema as pn, resolveCoreBlockFiles as po, compileHelper as pr, unmetRequirements as ps, FAN_OSCILLATION_AXIS_SETTABLE as pt, errMsg as pu, DEVICE_SAN_USER_PREFIX as q, proposeRunningThreshold as qa, UnknownRecordKindError as qc, keychainAdminCapability as qi, recordSecretRef as ql, buildCapabilityLookup as qn, storageAdminCapability as qo, deviceStatusCapability as qr, compositionSourceKey as qs, PetFountainStatusSchema as qt, ACTUATOR_METHODS as r, lockDoorLinkOfComposition as ra, isForwardInputRef as rc, expressionContainsBuiltinCall as ri, buildSecretRef as rl, RemoteAssumedStateSchema as rn, remoteLayoutComponentsCapability as ro, capUnitResolver as rr, switchStateOfMode as rs, DeviceRunSchema as rt, toSecretFieldView as ru, ALL_CAPABILITY_DEFINITIONS as s, lowPowerSleepCapability as sa, openStatistic as sc, fanControlCapability as si, collectZodSecretPaths as sl, STORAGE_LOCATION_MODES as sn, replaceRecipeLiteral as so, checkTemplatePayload as sr, timedRunCapability as ss, EMPTY_AUTOMATION_STATE as st, vocabCall as su, ACTION_RUN_MAX_MS as t, locationIconKey as ta, integrateReading as tc, evictionPolicyOfLocation as ti, assertValidDeclaration as tl, ROOT_BUCKET_KEY as tn, reexpandAutomationInstance as to, canonicalIconKey as tr, sweepLegacyEngineRows as ts, DeclaredDevices as tt, sleep as tu, ActionStepSchema as u, mediaPlayerCapability as ua, statisticCadenceMs as uc, featureForwards as ui, createEvent as ul, SchedulerError as un, resolveAppConnections as uo, collectWhenMirrorSources as ur, timedRunQuickRun as us, ExportNameRefusedError as ut, DeviceFeature as uu, BaseDevice as v, modeMayWrite as va, DEVICE_STATUS_METHOD as vc, generateDeviceAlias as vi, entryBody as vl, StorageLocationTypeSchema as vn, resolveMutate as vo, compositionUnionReads as vr, valveCapability as vs, FieldClaimModeSchema as vt, COMPOSER_RUNNER_ID as w, normalizeTags as wa, InvalidRecordError as wc, identifierStrength as wi, hydrateSchema as wl, TokenScopeSchema as wn, runFanOut as wo, coreBlocksCapability as wr, withLocationMode as ws, HUB_MDNS_TXT_KEYS as wt, CAP_NAMES_WITH_STATUS as x, nextTimeBoundaryInMs as xa, FilterRequiredError as xc, hasTimeLeaves as xi, getDebugInterest as xl, TagStyleSchema as xn, resolveRunnerId as xo, coreBlockComposition as xr, vectorStoreCapability as xs, HISTORY_CATALOG as xt, CAMERA_SWITCH_ORDER as y, motionCapability as ya, DeclarationRefusedError as yc, groupCommandsCapability as yi, expandCapMethods as yl, StorageMigrationJobSchema as yn, resolveNotificationTapAddress as yo, consumablesCapability as yr, vectorDimFromBase64 as ys, FieldClaimSchema as yt, DEFAULT_HOLD_OVERRIDE as z, powerSourceCapability as za, RecordNotFoundError as zc, isInternalActionId as zi, nodeIdOfScopedKey as zl, appendTrace as zn, sharedActuatorMethods as zo, deviceExtensionCapability as zr, canonicalStoredDeviceType as zs, MigrationLedgerEntrySchema as zt };
139893
+ export { DEVICE_TOMBSTONE_RETENTION_MS as $, recordEntriesCapability as $a, asJsonObject as $c, lifecycleJobSchema as $i, scopeKey as $l, builtinAutomationTemplate as $n, storageProviderCapability as $o, evaluateCompositionField as $r, evaluateStatistic as $s, QuantityUnitError as $t, ConditionMirror as A, orderMigrations as Aa, RECORD_BATCH_MAX_BYTES as Ac, isAddonInstanceId as Ai, isEvent as Al, actionSourceCapability as An, sameIdentifiers as Ao, databaseSnapshotCapability as Ar, COMPOSER_ADDON_ID as As, KeychainAuditEntrySchema as At, DERIVED_CAMERA_SILENCED_CAP_NAMES as B, powerSourceCapability as Ba, RecordKindDeclarationSchema as Bc, isInternalActionId as Bi, mapSecretLeaves as Bl, appendTrace as Bn, sharedActuatorFeatures as Bo, deviceExtensionCapability as Br, canonicalStoredBlockTarget as Bs, MigrationMetaSchema as Bt, COMPOSED_ITEM_FIXED_FIELDS as C, normalizeActionUnits as Ca, FilterRequiredError as Cc, heroLayoutCapability as Ci, getDebugInterest as Cl, TagsFieldSchema as Cn, resolveRunnerId as Co, coreBlockIdFromAddonId as Cr, vectorStoreCapability as Cs, HUB_MDNS_SERVICE_TYPE as Ct, CREDENTIAL_TOKEN_AUDIENCE as D, objectInputDeclaresAddonId as Da, NoCallerError as Dc, integrationInstancesCapability as Di, isCommand as Dl, UserRecordSchema as Dn, runSteps as Do, createDeviceExtensionProvider as Dr, workloadCapability as Ds, IDLE_ACTION_STATUS as Dt, CORE_BLOCK_ADDON_PREFIX as E, normalizeUnit as Ea, InvalidRecordError as Ec, instanceCodeHash as Ei, hydrateSchema as El, UNATTRIBUTED_BUCKET_KEY as En, runFanOut as Eo, coverCapability as Er, withLocationMode as Es, HvacModeSchema as Et, DATABASE_SNAPSHOT_SUFFIX as F, petFountainWaterItem as Fa, REMOVE_LEAF as Fc, isBuiltinTemplateId as Fi, isSecretFieldView as Fl, addonSettingsCapability as Fn, searchRank as Fo, defineExtensionSlotProvider as Fr, HISTORY_SLOW_MS as Fs, MIGRATION_API_V1_METHODS as Ft, DEVICE_NONCE_TTL_MS as G, procedureAuthKey as Ga, SECRET_CLEAR as Gc, isVoidInput as Gi, parseJsonObject as Gl, bareAddonId as Gn, siteZoneKey as Go, deviceRunsCapability as Gr, composedDeviceStableId as Gs, PREFERENCES_MAX_VALUE_BYTES as Gt, DEVICE_HISTORY_ENERGY_KEY as H, preconditionOf as Ha, RecordTooLargeError as Hc, isLocationEnabled as Hi, nodePin as Hl, assertStepsOffered as Hn, sharedColorModes as Ho, deviceManagerCapability as Hr, capAppliesToDeviceKind as Hs, NetworkTunnelStartedDataSchema as Ht, DATABASE_SNAPSHOT_TIMEOUT_MS as I, pickAppLinkHub as Ia, RUNTIME_DEFAULTS as Ic, isCollectionArrayMethod as Ii, isSecretMarker as Il, addonWidgetsCapability as In, seedInstanceOnce as Io, deriveBatteryPresence as Ir, HOUR_MS as Is, MINUTES_PER_DAY as It, DEVICE_TEMPLATE_FILTERS as J, proposeRunningThreshold as Ja, UnindexedFilterError as Jc, keychainAdminCapability as Ji, readinessKey as Jl, buildCapabilityLookup as Jn, stableIdMapOf as Jo, deviceStatusCapability as Jr, compositionSliceKey as Js, PetFountainStatusSchema as Jt, DEVICE_SAN_CREDENTIAL_PREFIX as K, processTimeZoneOr as Ka, StoredRecordKindDeclarationSchema as Kc, isWorkloadSettled as Ki, parseJsonUnknown as Kl, brightnessCapability as Kn, snapshotCapability as Ko, deviceSleeps as Kr, compositionFeatureEnabled as Ks, PROPOSAL_MIN_SPAN_MS as Kt, DATA_STORE_DATABASES as L, planComposition as La, ReadinessRegistry as Lc, isCredentialTokenPayload as Li, isSecretMarkerLike as Ll, alertEpisodeId as Ln, selectEngineHostedBlocks as Lo, describeComposableCaps as Lr, HelperMemberSchema as Ls, MOTION_CLOSE_AFTER_MS as Lt, CoreBlockSchema as M, parseColorInput as Ma, RECORD_SECRET_COLLECTION_PREFIX as Mc, isAlertEpisodeSeverity as Mi, isKeychainStoredField as Ml, actionsCapability as Mn, scopesAllowAddon as Mo, declaredSeriesKind as Mr, DAY_MS as Ms, LOG_LEVEL_RANK as Mt, CredentialTokenClaimsSchema as N, parseStreamParamsFormPatch as Na, RECORD_SWEEP_INTERVAL_MS as Nc, isAppLinkBase as Ni, isReadingQuantity as Nl, addonIdOfActionId as Nn, scopesAllowDeviceCap as No, decodeVectorBase64 as Nr, DEFAULT_HISTORY_RETENTION as Ns, LowPowerSleepStatusSchema as Nt, CalendarPreferencesSchema as O, objectInputDeclaresRequiredDeviceId as Oa, PlaintextSecretError as Oc, internalActionId as Oi, isDebugChannelName as Ol, WORKLOAD_TRANSITION_CATEGORY as On, runtimeFieldUnit as Oo, customKeyOfRole as Or, workloadTransition as Os, INTERNAL_ACTION_PREFIX as Ot, DATABASE_SNAPSHOT_PARTIAL_SUFFIX as P, petFountainCapability as Pa, REDACTED_SECRET as Pc, isArrayOutputSchema as Pi, isSecretClear as Pl, addonPagesCapability as Pn, scoreRuntimes as Po, defaultTagColorId as Pr, HISTORY_FAST_MS as Ps, METHOD_ACCESS_MAP as Pt, DEVICE_TEMPLATE_VALUES_CAP as Q, reconcileReportedFeatures as Qa, actionEffect as Qc, legacySweepDone as Qi, ruleFireOfClaim as Ql, buildStreamParamsConfigSchema as Qn, storageOccupancyCapability as Qo, enumerateSchemaFields as Qr, evaluateDerivative as Qs, PreferenceValueSchema as Qt, DAY_NAMES as R, platformProbeCapability as Ra, ReadinessTimeoutError as Rc, isDefaultAppConnectionEndpoint as Ri, isSecretRefOwnedBy as Rl, alertEpisodePayload as Rn, settingsStoreCapability as Ro, describeUnmet as Rr, MINUTE_MS as Rs, MediaPlayerStatusSchema as Rt, CATALOG_LANGS as S, nextTimeBoundaryInMs as Sa, DeviceTransitionSchema as Sc, hasTimeLeaves as Si, formatSecretScope as Sl, TagStyleSchema as Sn, resolveRemoteSource as So, coreBlockComposition as Sr, vectorIndexDimConflictError as Ss, HISTORY_ITEM_CATALOG as St, CORE_BLOCKS_ADDON_ID as T, normalizeTags as Ta, HISTORY_DEFAULT_MIN_INTERVAL_MS as Tc, identifierStrength as Ti, historyUnitFor as Tl, TokenScopeSchema as Tn, resolveTemplateRef as To, coreBlocksCapability as Tr, withDefaultRunning as Ts, HostedWithdrawalGate as Tt, DEVICE_IDENTIFIER_KEYS as U, prepareRecipeUnits as Ua, RecordUniqueViolationError as Uc, isObjectInput as Ui, normalizeNodeId as Ul, authProviderCapability as Un, shortHostname as Uo, deviceOffersActions as Ur, cloneStatefulExpressionMemory as Us, ONE_SHOT_HOLD_MS as Ut, DEVICE_ENROLLMENT_TTL_MS as V, powerSourceLinkOfComposition as Va, RecordNotFoundError as Vc, isKernelDerivedFeature as Vi, nodeIdOfScopedKey as Vl, armRemovalReconcile as Vn, sharedActuatorMethods as Vo, deviceHistoryCapability as Vr, canonicalStoredDeviceType as Vs, NcTaggedRuleKindSchema as Vt, DEVICE_ID_FIELD as W, problemsBlockSave as Wa, RevConflictError as Wc, isSameAddonId as Wi, normalizeSecretOwner as Wl, backupCapability as Wn, siteFor as Wo, deviceRemovalHookCapability as Wr, composedDeviceRef as Ws, PET_FOUNTAIN_WATER_KEY as Wt, DEVICE_TEMPLATE_MAX_OUTPUT as X, readRecipeLiteral as Xa, VocabActionError as Xc, legacyAutoLinkIds as Xi, resolveCapMount as Xl, buildDeviceSignatureMessage as Xn, storageCapability as Xo, enumerateInferenceDevices as Xr, createStatefulExpressionMemory as Xs, PreferenceDeviceIdSchema as Xt, DEVICE_TEMPLATE_MAX_LENGTH as Y, ptzAutotrackCapability as Ya, UnknownRecordKindError as Yc, keychainCapability as Yi, recordSecretRef as Yl, buildDeviceEnrollmentLink as Yn, storageAdminCapability as Yo, deviceTransitionsCapability as Yr, compositionSourceKey as Ys, PowerSourceInfoSchema as Yt, DEVICE_TEMPLATE_THIS_ALIAS as Z, readStoredRemoteConfig as Za, WELL_KNOWN_TAB_MAP as Zc, legacyModeOf as Zi, resolveSecretMarkers as Zl, buildHeroModel as Zn, storageMigrationCapability as Zo, enumerateItemArrayFields as Zr, disarmRoseMemory as Zs, PreferenceNamespaceSchema as Zt, BUILTIN_REMOTE_COMPONENTS as _, migrationsCapability as _a, CALLER_STAMPED_CAPABILITIES as _c, gbToBytes as _i, defineRecordKinds as _l, StorageCleanupJobSchema as _n, resolveHubAddressRoles as _o, compositionFieldKey as _r, validateComposition as _s, FanPresetSchema as _t, EventCategory as _u, AGENT_MDNS_SERVICE_TYPE as a, logDestinationCapability as aa, isForwardInputRef as ac, extractNestedAddonId as ai, buildSecretRef as al, RemoteLayoutPayloadSchema as an, remoteSourceSteps as ao, catalogueIssues as ar, switchStateOfMode as as, DeviceTombstoneSchema as at, toSecretFieldView as au, CAMSTACK_APP_LINK_ORIGIN as b, motionCapability as ba, DEVICE_STATUS_METHOD as bc, groupCommandsCapability as bi, entryBody as bl, StorageMigrationJobSchema as bn, resolveMutate as bo, consumablesCapability as br, valveCapability as bs, GroupCommandResultSchema as bt, ActionError as c, lowPowerSleepCapability as ca, openReset as cc, fanControlCapability as ci, collectSecretMarkerRefs as cl, STORAGE_LOCATION_MODES as cn, replaceRecipeLiteral as co, checkTemplatePayload as cr, templateCapability as cs, EMPTY_REMOTE_ASSUMED_STATE as ct, vocabActionIdFor as cu, ActionTargetResolver as d, mediaPlayerCapability as da, planStatisticTier as dc, featureForwards as di, commandOrigin as dl, SchedulerError as dn, resolveAppConnections as do, collectWhenMirrorSources as dr, timedRunMaxIn as ds, FAN_CAPTURE_FIELDS as dt, COMPOSED_DEVICE_STABLE_ID_PREFIX as du, localDateOf as ea, helperMembers as ec, evaluateStepCondition as ei, asNumber as el, RECORDING_SOURCE_CAMSTACK_ADDON as en, recordsCapability as eo, calendarsCapability as er, streamCatalogCapability as es, DataStoreDatabaseSchema as et, secretTreeFromPaths as eu, ActionVariableSchema as f, mediaPlayerFeaturesOfRoles as fa, statisticCadenceMs as fc, filesystemBrowseCapability as fi, createEvent as fl, SchedulerSchema as fn, resolveBucketMs as fo, colorCapability as fr, timedRunQuickRun as fs, FAN_OSCILLATION_AXES as ft, DeviceFeature as fu, BUILTIN_AUTOMATION_TEMPLATES as g, metricsProviderCapability as ga, BatchTooLargeError as gc, formatMinutes as gi, defineEntryKind as gl, SsoBridgeClaimsSchema as gn, resolveHeroLayout as go, composerCapability as gr, userManagementCapability as gs, FanDirectionSchema as gt, featuresOfBoundCaps as gu, AutomationTemplatePayloadSchema as h, methodRefusal as ha, BaseAddon as hc, formatDeviceRevoker as hi, defineCustomActions as hl, SetOscillationAxisInputSchema as hn, resolveCoreBlockFiles as ho, compileScalarOverride as hr, unmetRequirements as hs, FanControlStatusSchema as ht, errMsg as hu, ACTUATOR_TEMPLATE_IDS as i, lockDoorLinkOfComposition as ia, isEngineHostedHelper as ic, expressionContainsBuiltinCall as ii, auditedFields as il, RemoteAssumedStateSchema as in, remoteLayoutComponentsCapability as io, capUnitResolver as ir, switchCapability as is, DeviceStatusSchema as it, toNodeId as iu, ConsumableItemSchema as j, parseAcceleratorFactsJson as ja, RECORD_DELETE_BATCH as jc, isAlertEpisodeOpen as ji, isInstanceEnabled as jl, actionWaitTotalMs as jn, schedulersCapability as jo, declarationOwnerNodeId as jr, CompositionSchema as js, KeychainResetRecordSchema as jt, CatalogFileSchema as k, occurrenceOn as ka, RECORD_BATCH_MAX as kc, interpolate as ki, isDeviceConfigCap as kl, WorkloadStateSchema as kn, runtimeStatePolicyFor as ko, dataStoreProviderCapability as kr, zoneOnlySite as ks, KEYCHAIN_RESET_TRIGGER_ACTOR as kt, ActionMinDelaySecSchema as l, mayReadLocation as la, openStatistic as lc, fanOutTargets as li, collectZodSecretPaths as ll, STREAM_PROFILE_META as ln, replacedFieldKeys as lo, climateControlCapability as lr, timedRunCapability as ls, EMPTY_REMOTE_CONFIG as lt, vocabCall as lu, AutomationStateDocSchema as m, mergeIdentifiers as ma, wattMillisecondsToKwh as mc, foldSnapshotByFunction as mi, defineAddonMigrations as ml, ServerNameSchema as mn, resolveCoreBlockEntry as mo, compileHelper as mr, toTimings as ms, FIRST_LEVEL_MACRO_CLASSES as mt, DeviceType as mu, ACTION_TARGET_INVALIDATION_EVENTS as n, locationIconKey as na, implementedMethodsOf as nc, evictionPolicyOfLocation as ni, assertTransactScope as nl, ROOT_BUCKET_KEY as nn, reexpandAutomationInstance as no, canonicalIconKey as nr, supportedRuntimes as ns, DeviceIdentifiersSchema as nt, secretViewsOf as nu, AGENT_MDNS_TXT_KEYS as o, logLevelAtMost as oa, isHistoryHelper as oc, extractSourceInfoFromMetadata as oi, collectSecretConfigKeys as ol, RunningStateStatusSchema as on, removeFromTags as oo, checkDeviceAlias as or, tagKey as os, DiscoveryProposalBodySchema as ot, transformSecretWrite as ou, AlertSchema as p, memoizePinnedFfmpeg as pa, toExpressionValue as pc, findChannelSource as pi, customAction as pl, ScopedTokenSchema as pn, resolveCommandHold as po, compareVersions as pr, timedRunSeconds as ps, FAN_OSCILLATION_AXIS_SETTABLE as pt, DeviceRole as pu, DEVICE_SAN_USER_PREFIX as q, projectDeviceRow as qa, TransactRefusedError as qc, kebabToCamel as qi, parseSecretRef as ql, buildActionSteps as qn, splitTranslationRef as qo, deviceStateCapability as qr, compositionItemFieldPath as qs, PackageRequiresSchema as qt, ACTUATOR_METHODS as r, lockControlCapability as ra, integrateReading as rc, expandContainer as ri, assertValidDeclaration as rl, RecordingStatusSchema as rn, remoteCapability as ro, canonicalStoredStepTargets as rr, sweepLegacyEngineRows as rs, DeviceRunSchema as rt, sleep as ru, ALL_CAPABILITY_DEFINITIONS as s, looseSchema as sa, nextLocalMidnight as sc, fanAxisPath as si, collectSecretLeaves as sl, STORAGE_ACCESS_FALLBACK as sn, renameInTags as so, checkRoleAddress as sr, tagsCapability as ss, EMPTY_AUTOMATION_STATE as st, userError as su, ACTION_RUN_MAX_MS as t, localNetworkCapability as ta, historyRetentionFromSettings as tc, evaluateWhenTree as ti, asString$1 as tl, REMOTE_MEDIA_COMMANDS as tn, reducePoints as to, cameraGridLayoutCapability as tr, streamQualityLabel as ts, DeclaredDevices as tt, secretTreeFromSchema as tu, ActionStepSchema as u, mayWriteToLocation as ua, planResetTier as uc, fanPresetsCapability as ui, commandEffect as ul, SWITCH_DEFAULT_OPTIONS as un, resolveActionVariables as uo, collectDeviceTemplates as ur, timedRunLimitOf as us, ExportNameRefusedError as ut, withoutCallerStamp as uu, BaseDevice as v, modeForSwitch as va, DATAPLANE_SECRET_HEADER as vc, generateAutomationBlock as vi, emitDownForOwnedCaps as vl, StorageLocationModeSchema as vn, resolveLocationMode as vo, compositionSourceRefs as vr, validateCustomAddress as vs, FieldClaimModeSchema as vt, COMPOSER_RUNNER_ID as w, normalizeCoreBlockWrite as wa, ForeignSecretMarkerError as wc, hostEngineDevice as wi, historyItemFieldPath as wl, TemplateKindSchema as wn, resolveStepArgs as wo, coreBlockSourceKind as wr, weekdayOfLocalDate as ws, HUB_MDNS_TXT_KEYS as wt, CAP_NAMES_WITH_STATUS as x, nextOccurrence as xa, DeclarationRefusedError as xc, groupTemplate as xi, expandCapMethods as xl, TagNameSchema as xn, resolveNotificationTapAddress as xo, coreBlockAddonId as xr, vectorDimFromBase64 as xs, HISTORY_CATALOG as xt, CAMERA_SWITCH_ORDER as y, modeMayWrite as ya, DEVICE_SETTINGS_CONTRIBUTION_METHODS as yc, generateDeviceAlias as yi, emitReadiness as yl, StorageLocationTypeSchema as yn, resolveMethodAuth as yo, compositionUnionReads as yr, validateSchedulerInput as ys, FieldClaimSchema as yt, DEFAULT_HOLD_OVERRIDE as z, powerSourceActuatorConflicts as za, RecordIntegrationInstances as zc, isEmptyIdentifiers as zi, makeSecretMarker as zl, alertsCapability as zn, settleDeviceFeatures as zo, deviceCredentialsCapability as zr, buildFfmpegArgs as zs, MigrationLedgerEntrySchema as zt };