@camstack/types 1.2.585 → 1.2.587

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 (78) hide show
  1. package/CHANGELOG.md +38 -1
  2. package/dist/addon.d.ts +2 -0
  3. package/dist/addon.js +21 -5
  4. package/dist/addon.mjs +18 -6
  5. package/dist/capabilities/camera-grid-layout.cap.d.ts +3 -5
  6. package/dist/capabilities/cap-method-absent.d.ts +19 -0
  7. package/dist/capabilities/device-manager.cap.d.ts +422 -0
  8. package/dist/capabilities/hero-layout.cap.d.ts +2 -2
  9. package/dist/capabilities/index.d.ts +11 -7
  10. package/dist/capabilities/network-link.cap.d.ts +10 -0
  11. package/dist/capabilities/notification-rules.cap.d.ts +70 -0
  12. package/dist/capabilities/power-source.cap.d.ts +20 -0
  13. package/dist/capabilities/recording-export.cap.d.ts +1 -0
  14. package/dist/capabilities/siren-duration.d.ts +45 -7
  15. package/dist/capabilities/siren.cap.d.ts +45 -2
  16. package/dist/capabilities/switch-settable.d.ts +15 -0
  17. package/dist/capabilities/switch.cap.d.ts +71 -0
  18. package/dist/capabilities/tags.cap.d.ts +42 -16
  19. package/dist/capabilities/terminal-session.cap.d.ts +9 -60
  20. package/dist/capabilities/videoclips.cap.d.ts +3 -0
  21. package/dist/capabilities/workload.cap.d.ts +655 -0
  22. package/dist/client.js +119 -6
  23. package/dist/client.mjs +119 -6
  24. package/dist/{composed-stable-id-RvQIEpqg.mjs → composed-stable-id-BBL71oUQ.mjs} +20 -0
  25. package/dist/{composed-stable-id-C3NfRTj8.js → composed-stable-id-CVbyajE5.js} +20 -0
  26. package/dist/composition/engine-hosted-blocks.d.ts +131 -0
  27. package/dist/composition/helpers/index.d.ts +1 -1
  28. package/dist/composition/helpers/spec.d.ts +56 -2
  29. package/dist/composition/index.d.ts +1 -0
  30. package/dist/device/base-device.d.ts +29 -0
  31. package/dist/device/cap-vocabulary/declaration.d.ts +12 -1
  32. package/dist/device/cap-vocabulary/index.d.ts +4 -4
  33. package/dist/device/cap-vocabulary/resolve.d.ts +47 -1
  34. package/dist/device/cap-vocabulary/types.d.ts +26 -1
  35. package/dist/device/declare-identifiers.d.ts +58 -0
  36. package/dist/device/device-control-resolution.d.ts +1 -1
  37. package/dist/device/device-icon.d.ts +7 -0
  38. package/dist/device/device-identifiers.d.ts +190 -0
  39. package/dist/device/device-management.d.ts +10 -0
  40. package/dist/device/device-type.d.ts +22 -2
  41. package/dist/device/hero/build-hero-model.d.ts +15 -0
  42. package/dist/device/hero/hero-fragment.d.ts +11 -0
  43. package/dist/device/hero/hero-layout.d.ts +1 -0
  44. package/dist/device/hero/hero-look.d.ts +12 -0
  45. package/dist/device/hero/hero-model.d.ts +4 -4
  46. package/dist/device/hero/hero-scene.d.ts +7 -0
  47. package/dist/device/index.d.ts +5 -1
  48. package/dist/enums/event-category.d.ts +8 -0
  49. package/dist/enums.js +1 -1
  50. package/dist/enums.mjs +1 -1
  51. package/dist/{event-category-d9kiqCqC.js → event-category-CE_VCE2G.js} +8 -0
  52. package/dist/{event-category-Dhcd0TRH.mjs → event-category-Hwx_JSCU.mjs} +8 -0
  53. package/dist/generated/addon-api.d.ts +106 -14
  54. package/dist/generated/addon-cap-facts.d.ts +1 -1
  55. package/dist/generated/cap-status-types.d.ts +3 -1
  56. package/dist/generated/cap-vocabulary.d.ts +1 -1
  57. package/dist/generated/capability-router-map.d.ts +5 -2
  58. package/dist/generated/collection-array-methods.d.ts +1 -1
  59. package/dist/generated/customize-catalog.d.ts +1 -1
  60. package/dist/generated/device-local-state.d.ts +3 -0
  61. package/dist/generated/device-proxy.d.ts +4 -1
  62. package/dist/generated/device-scoped-caps.d.ts +1 -1
  63. package/dist/generated/history-catalog.d.ts +2 -2
  64. package/dist/generated/method-access-map.d.ts +1 -1
  65. package/dist/generated/method-device-selectors.d.ts +2 -2
  66. package/dist/generated/runtime-state-durability.d.ts +1 -1
  67. package/dist/generated/system-proxy.d.ts +2 -2
  68. package/dist/{implemented-methods-C7ScGvEz.js → implemented-methods-ChtdIofW.js} +128 -1
  69. package/dist/{implemented-methods-C5FMXLGP.mjs → implemented-methods-u7ddjc-_.mjs} +57 -2
  70. package/dist/index.d.ts +7 -3
  71. package/dist/index.js +2086 -439
  72. package/dist/index.mjs +2027 -438
  73. package/dist/node.js +2 -2
  74. package/dist/node.mjs +2 -2
  75. package/dist/notification/timelapse-rule.d.ts +3 -0
  76. package/dist/{sleep-DwRtgB2i.js → sleep-CsZJsb8n.js} +692 -35
  77. package/dist/{sleep-Ch7Q7UtE.mjs → sleep-D6Pih0Qt.mjs} +669 -36
  78. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- const require_event_category = require("./event-category-d9kiqCqC.js");
2
- const require_composed_stable_id = require("./composed-stable-id-C3NfRTj8.js");
1
+ const require_event_category = require("./event-category-CE_VCE2G.js");
2
+ const require_composed_stable_id = require("./composed-stable-id-CVbyajE5.js");
3
3
  let zod = require("zod");
4
4
  //#region src/audio/audio-chunk-format.ts
5
5
  /**
@@ -7985,7 +7985,7 @@ var MODEL_FORMATS = [
7985
7985
  //#region src/generated/cap-vocabulary.ts
7986
7986
  /**
7987
7987
  * THE cap vocabulary (D920), projected from the declarations of every
7988
- * `*.cap.ts` (D1050): 210 caps (108 device, 102 system).
7988
+ * `*.cap.ts` (D1050): 211 caps (109 device, 102 system).
7989
7989
  * Device caps in their declared picker order, then system caps by name.
7990
7990
  */
7991
7991
  var CAP_VOCABULARY = {
@@ -8012,6 +8012,10 @@ var CAP_VOCABULARY = {
8012
8012
  effect: {
8013
8013
  field: "on",
8014
8014
  value: true
8015
+ },
8016
+ offeredWhen: {
8017
+ method: "getOptions",
8018
+ field: "supportsSetState"
8015
8019
  }
8016
8020
  },
8017
8021
  {
@@ -8030,6 +8034,10 @@ var CAP_VOCABULARY = {
8030
8034
  effect: {
8031
8035
  field: "on",
8032
8036
  value: false
8037
+ },
8038
+ offeredWhen: {
8039
+ method: "getOptions",
8040
+ field: "supportsSetState"
8033
8041
  }
8034
8042
  },
8035
8043
  {
@@ -8043,9 +8051,14 @@ var CAP_VOCABULARY = {
8043
8051
  en: "Toggle {device}",
8044
8052
  it: "Commuta {device}"
8045
8053
  },
8046
- icon: "toggle-right"
8054
+ icon: "toggle-right",
8055
+ offeredWhen: {
8056
+ method: "getOptions",
8057
+ field: "supportsSetState"
8058
+ }
8047
8059
  }
8048
8060
  ],
8061
+ notOperatorFacing: { powerCycle: "a power cycle is the forced restart of the device the switch powers (power-source), never a step of its own" },
8049
8062
  state: [{
8050
8063
  kind: "boolean",
8051
8064
  field: "on",
@@ -8304,6 +8317,47 @@ var CAP_VOCABULARY = {
8304
8317
  "switch.off": { icon: "plug" }
8305
8318
  },
8306
8319
  state: { on: { icon: "plug-zap" } }
8320
+ },
8321
+ [require_composed_stable_id.DeviceRole.PoePort]: {
8322
+ actions: {
8323
+ "switch.on": {
8324
+ label: {
8325
+ en: "Power on",
8326
+ it: "Alimenta"
8327
+ },
8328
+ phrase: {
8329
+ en: "Power on {device}",
8330
+ it: "Alimenta {device}"
8331
+ },
8332
+ icon: "plug-zap"
8333
+ },
8334
+ "switch.off": {
8335
+ label: {
8336
+ en: "Power off",
8337
+ it: "Togli alimentazione"
8338
+ },
8339
+ phrase: {
8340
+ en: "Power off {device}",
8341
+ it: "Togli alimentazione a {device}"
8342
+ },
8343
+ icon: "unplug"
8344
+ }
8345
+ },
8346
+ state: { on: {
8347
+ label: {
8348
+ en: "Powered",
8349
+ it: "Alimentata"
8350
+ },
8351
+ whenTrue: {
8352
+ en: "When {device} is powered",
8353
+ it: "Quando {device} viene alimentata"
8354
+ },
8355
+ whenFalse: {
8356
+ en: "When {device} loses power",
8357
+ it: "Quando {device} perde l’alimentazione"
8358
+ },
8359
+ icon: "plug-zap"
8360
+ } }
8307
8361
  }
8308
8362
  }
8309
8363
  }
@@ -9023,7 +9077,11 @@ var CAP_VOCABULARY = {
9023
9077
  en: "Power on {device}",
9024
9078
  it: "Dai corrente a {device}"
9025
9079
  },
9026
- icon: "power"
9080
+ icon: "power",
9081
+ offeredWhen: {
9082
+ method: "getStatus",
9083
+ field: "switchSettable"
9084
+ }
9027
9085
  },
9028
9086
  {
9029
9087
  id: "powerSource.off",
@@ -9036,7 +9094,11 @@ var CAP_VOCABULARY = {
9036
9094
  en: "Cut the power of {device}",
9037
9095
  it: "Togli la corrente a {device}"
9038
9096
  },
9039
- icon: "power-off"
9097
+ icon: "power-off",
9098
+ offeredWhen: {
9099
+ method: "getStatus",
9100
+ field: "switchSettable"
9101
+ }
9040
9102
  },
9041
9103
  {
9042
9104
  id: "powerSource.forceRestart",
@@ -10806,37 +10868,66 @@ var CAP_VOCABULARY = {
10806
10868
  en: "Siren",
10807
10869
  it: "Sirena"
10808
10870
  },
10809
- actions: [{
10810
- id: "siren.trigger",
10811
- method: "trigger",
10812
- label: {
10813
- en: "Sound the siren",
10814
- it: "Fai suonare la sirena"
10815
- },
10816
- phrase: {
10817
- en: "Sound {device}",
10818
- it: "Fai suonare {device}"
10819
- },
10820
- icon: "siren",
10821
- args: {}
10822
- }, {
10823
- id: "siren.stop",
10824
- method: "stop",
10825
- label: {
10826
- en: "Silence the siren",
10827
- it: "Zittisci la sirena"
10871
+ actions: [
10872
+ {
10873
+ id: "siren.trigger",
10874
+ method: "trigger",
10875
+ label: {
10876
+ en: "Sound the siren",
10877
+ it: "Fai suonare la sirena"
10878
+ },
10879
+ phrase: {
10880
+ en: "Sound {device}",
10881
+ it: "Fai suonare {device}"
10882
+ },
10883
+ icon: "siren",
10884
+ args: {}
10828
10885
  },
10829
- phrase: {
10830
- en: "Silence {device}",
10831
- it: "Zittisci {device}"
10886
+ {
10887
+ id: "siren.triggerPlays",
10888
+ method: "trigger",
10889
+ label: {
10890
+ en: "Sound the siren N times",
10891
+ it: "Fai suonare la sirena N volte"
10892
+ },
10893
+ phrase: {
10894
+ en: "Sound {device} {plays} times",
10895
+ it: "Fai suonare {device} {plays} volte"
10896
+ },
10897
+ icon: "siren",
10898
+ openArgs: [{
10899
+ key: "plays",
10900
+ label: {
10901
+ en: "Plays",
10902
+ it: "Riproduzioni"
10903
+ },
10904
+ offer: {
10905
+ kind: "dynamic",
10906
+ from: "method",
10907
+ method: "getPlayChoices",
10908
+ valueKind: "number"
10909
+ }
10910
+ }]
10832
10911
  },
10833
- icon: "siren",
10834
- args: {},
10835
- effect: {
10836
- field: "active",
10837
- value: false
10912
+ {
10913
+ id: "siren.stop",
10914
+ method: "stop",
10915
+ label: {
10916
+ en: "Silence the siren",
10917
+ it: "Zittisci la sirena"
10918
+ },
10919
+ phrase: {
10920
+ en: "Silence {device}",
10921
+ it: "Zittisci {device}"
10922
+ },
10923
+ icon: "siren",
10924
+ args: {},
10925
+ effect: {
10926
+ field: "active",
10927
+ value: false
10928
+ }
10838
10929
  }
10839
- }],
10930
+ ],
10840
10931
  state: [{
10841
10932
  kind: "boolean",
10842
10933
  field: "active",
@@ -13431,6 +13522,374 @@ var CAP_VOCABULARY = {
13431
13522
  icon: "loader"
13432
13523
  }]
13433
13524
  },
13525
+ "workload": {
13526
+ scope: "device",
13527
+ noun: {
13528
+ en: "Workload",
13529
+ it: "Carico di lavoro"
13530
+ },
13531
+ actions: [
13532
+ {
13533
+ id: "workload.start",
13534
+ method: "start",
13535
+ label: {
13536
+ en: "Start",
13537
+ it: "Avvia"
13538
+ },
13539
+ phrase: {
13540
+ en: "Start {device}",
13541
+ it: "Avvia {device}"
13542
+ },
13543
+ icon: "play",
13544
+ effect: {
13545
+ field: "state",
13546
+ value: "running"
13547
+ }
13548
+ },
13549
+ {
13550
+ id: "workload.stop",
13551
+ method: "stop",
13552
+ label: {
13553
+ en: "Stop",
13554
+ it: "Arresta"
13555
+ },
13556
+ phrase: {
13557
+ en: "Stop {device}",
13558
+ it: "Arresta {device}"
13559
+ },
13560
+ icon: "square",
13561
+ effect: {
13562
+ field: "state",
13563
+ value: "stopped"
13564
+ }
13565
+ },
13566
+ {
13567
+ id: "workload.restart",
13568
+ method: "restart",
13569
+ label: {
13570
+ en: "Restart",
13571
+ it: "Riavvia"
13572
+ },
13573
+ phrase: {
13574
+ en: "Restart {device}",
13575
+ it: "Riavvia {device}"
13576
+ },
13577
+ icon: "rotate-ccw"
13578
+ },
13579
+ {
13580
+ id: "workload.pause",
13581
+ method: "pause",
13582
+ label: {
13583
+ en: "Pause",
13584
+ it: "Metti in pausa"
13585
+ },
13586
+ phrase: {
13587
+ en: "Pause {device}",
13588
+ it: "Metti in pausa {device}"
13589
+ },
13590
+ icon: "pause",
13591
+ effect: {
13592
+ field: "state",
13593
+ value: "paused"
13594
+ }
13595
+ },
13596
+ {
13597
+ id: "workload.resume",
13598
+ method: "resume",
13599
+ label: {
13600
+ en: "Resume",
13601
+ it: "Riprendi"
13602
+ },
13603
+ phrase: {
13604
+ en: "Resume {device}",
13605
+ it: "Riprendi {device}"
13606
+ },
13607
+ icon: "circle-play",
13608
+ effect: {
13609
+ field: "state",
13610
+ value: "running"
13611
+ }
13612
+ },
13613
+ {
13614
+ id: "workload.forceStop",
13615
+ method: "forceStop",
13616
+ label: {
13617
+ en: "Force stop",
13618
+ it: "Arresto forzato"
13619
+ },
13620
+ phrase: {
13621
+ en: "Force {device} to stop",
13622
+ it: "Forza l’arresto di {device}"
13623
+ },
13624
+ icon: "octagon-x",
13625
+ effect: {
13626
+ field: "state",
13627
+ value: "stopped"
13628
+ }
13629
+ }
13630
+ ],
13631
+ state: [
13632
+ {
13633
+ kind: "enum",
13634
+ field: "state",
13635
+ label: {
13636
+ en: "State",
13637
+ it: "Stato"
13638
+ },
13639
+ values: [
13640
+ {
13641
+ value: "running",
13642
+ label: {
13643
+ en: "Running",
13644
+ it: "In esecuzione"
13645
+ },
13646
+ phrase: {
13647
+ en: "When {device} is running",
13648
+ it: "Quando {device} è in esecuzione"
13649
+ }
13650
+ },
13651
+ {
13652
+ value: "paused",
13653
+ label: {
13654
+ en: "Paused",
13655
+ it: "In pausa"
13656
+ }
13657
+ },
13658
+ {
13659
+ value: "stopped",
13660
+ label: {
13661
+ en: "Stopped",
13662
+ it: "Arrestato"
13663
+ },
13664
+ phrase: {
13665
+ en: "When {device} is stopped",
13666
+ it: "Quando {device} è arrestato"
13667
+ }
13668
+ },
13669
+ {
13670
+ value: "starting",
13671
+ label: {
13672
+ en: "Starting",
13673
+ it: "In avvio"
13674
+ }
13675
+ },
13676
+ {
13677
+ value: "stopping",
13678
+ label: {
13679
+ en: "Stopping",
13680
+ it: "In arresto"
13681
+ }
13682
+ },
13683
+ {
13684
+ value: "crashed",
13685
+ label: {
13686
+ en: "Crashed",
13687
+ it: "Arrestato in modo anomalo"
13688
+ },
13689
+ phrase: {
13690
+ en: "When {device} has crashed",
13691
+ it: "Quando {device} è arrestato in modo anomalo"
13692
+ }
13693
+ }
13694
+ ],
13695
+ icon: "activity"
13696
+ },
13697
+ {
13698
+ kind: "numeric",
13699
+ field: "resources.cpuPercent",
13700
+ quantity: {
13701
+ en: "the CPU use",
13702
+ it: "l'uso della CPU"
13703
+ },
13704
+ label: {
13705
+ en: "CPU",
13706
+ it: "CPU"
13707
+ },
13708
+ unit: "%",
13709
+ icon: "cpu"
13710
+ },
13711
+ {
13712
+ kind: "numeric",
13713
+ field: "resources.memoryPercent",
13714
+ quantity: {
13715
+ en: "the memory use",
13716
+ it: "l'uso della memoria"
13717
+ },
13718
+ label: {
13719
+ en: "Memory",
13720
+ it: "Memoria"
13721
+ },
13722
+ unit: "%",
13723
+ icon: "memory-stick"
13724
+ },
13725
+ {
13726
+ kind: "numeric",
13727
+ field: "resources.temperature",
13728
+ quantity: {
13729
+ en: "the temperature",
13730
+ it: "la temperatura"
13731
+ },
13732
+ label: {
13733
+ en: "Temperature",
13734
+ it: "Temperatura"
13735
+ },
13736
+ unit: "°C",
13737
+ icon: "thermometer"
13738
+ }
13739
+ ],
13740
+ events: {
13741
+ onStarted: {
13742
+ category: require_event_category.EventCategory.WorkloadStarted,
13743
+ label: {
13744
+ en: "Started",
13745
+ it: "Avviato"
13746
+ },
13747
+ phrase: {
13748
+ en: "When {device} starts",
13749
+ it: "Quando {device} si avvia"
13750
+ },
13751
+ icon: "play"
13752
+ },
13753
+ onStopped: {
13754
+ category: require_event_category.EventCategory.WorkloadStopped,
13755
+ label: {
13756
+ en: "Stopped",
13757
+ it: "Arrestato"
13758
+ },
13759
+ phrase: {
13760
+ en: "When {device} stops",
13761
+ it: "Quando {device} si arresta"
13762
+ },
13763
+ icon: "square"
13764
+ },
13765
+ onCrashed: {
13766
+ category: require_event_category.EventCategory.WorkloadCrashed,
13767
+ label: {
13768
+ en: "Crashed",
13769
+ it: "Arrestato in modo anomalo"
13770
+ },
13771
+ phrase: {
13772
+ en: "When {device} stops without being asked",
13773
+ it: "Quando {device} si arresta senza che sia stato richiesto"
13774
+ },
13775
+ icon: "triangle-alert"
13776
+ },
13777
+ onRecovered: {
13778
+ category: require_event_category.EventCategory.WorkloadRecovered,
13779
+ label: {
13780
+ en: "Recovered",
13781
+ it: "Ripristinato"
13782
+ },
13783
+ phrase: {
13784
+ en: "When {device} runs again after a crash",
13785
+ it: "Quando {device} riparte dopo un arresto anomalo"
13786
+ },
13787
+ icon: "heart-pulse"
13788
+ }
13789
+ },
13790
+ overrides: { byRole: {
13791
+ [require_composed_stable_id.DeviceRole.Vm]: {
13792
+ actions: { "workload.start": { icon: "monitor" } },
13793
+ state: { state: { icon: "monitor" } }
13794
+ },
13795
+ [require_composed_stable_id.DeviceRole.AppContainer]: {
13796
+ actions: { "workload.start": { icon: "container" } },
13797
+ state: { state: { icon: "container" } }
13798
+ },
13799
+ [require_composed_stable_id.DeviceRole.Lxc]: {
13800
+ actions: { "workload.start": { icon: "box" } },
13801
+ state: { state: { icon: "box" } }
13802
+ },
13803
+ [require_composed_stable_id.DeviceRole.App]: {
13804
+ actions: { "workload.start": { icon: "app-window" } },
13805
+ state: { state: { icon: "app-window" } }
13806
+ },
13807
+ [require_composed_stable_id.DeviceRole.Host]: {
13808
+ actions: {
13809
+ "workload.start": {
13810
+ label: {
13811
+ en: "Power on",
13812
+ it: "Accendi"
13813
+ },
13814
+ phrase: {
13815
+ en: "Power on {device}",
13816
+ it: "Accendi {device}"
13817
+ },
13818
+ icon: "power"
13819
+ },
13820
+ "workload.stop": {
13821
+ label: {
13822
+ en: "Shut down",
13823
+ it: "Spegni"
13824
+ },
13825
+ phrase: {
13826
+ en: "Shut down {device}",
13827
+ it: "Spegni {device}"
13828
+ },
13829
+ icon: "power-off"
13830
+ },
13831
+ "workload.restart": {
13832
+ label: {
13833
+ en: "Reboot",
13834
+ it: "Riavvia"
13835
+ },
13836
+ phrase: {
13837
+ en: "Reboot {device}",
13838
+ it: "Riavvia {device}"
13839
+ },
13840
+ icon: "refresh-cw"
13841
+ }
13842
+ },
13843
+ state: { state: { icon: "server" } },
13844
+ events: {
13845
+ onStarted: {
13846
+ label: {
13847
+ en: "Came online",
13848
+ it: "Tornato in linea"
13849
+ },
13850
+ phrase: {
13851
+ en: "When {device} comes online",
13852
+ it: "Quando {device} torna in linea"
13853
+ },
13854
+ icon: "server"
13855
+ },
13856
+ onStopped: {
13857
+ label: {
13858
+ en: "Shut down",
13859
+ it: "Spento"
13860
+ },
13861
+ phrase: {
13862
+ en: "When {device} shuts down",
13863
+ it: "Quando {device} si spegne"
13864
+ },
13865
+ icon: "server-off"
13866
+ },
13867
+ onCrashed: {
13868
+ label: {
13869
+ en: "Went down",
13870
+ it: "Caduto"
13871
+ },
13872
+ phrase: {
13873
+ en: "When {device} goes down unexpectedly",
13874
+ it: "Quando {device} cade inaspettatamente"
13875
+ },
13876
+ icon: "server-crash"
13877
+ },
13878
+ onRecovered: {
13879
+ label: {
13880
+ en: "Came online",
13881
+ it: "Tornato in linea"
13882
+ },
13883
+ phrase: {
13884
+ en: "When {device} comes back online after going down",
13885
+ it: "Quando {device} torna in linea dopo essere caduto"
13886
+ },
13887
+ icon: "server"
13888
+ }
13889
+ }
13890
+ }
13891
+ } }
13892
+ },
13434
13893
  "accessories": {
13435
13894
  scope: "device",
13436
13895
  noun: {
@@ -17342,6 +17801,26 @@ var PipelineStepInputSchema = zod.z.lazy(() => zod.z.object({
17342
17801
  /** Typed bridge to the recursive `FrameResult` graph; validation is structural. */
17343
17802
  var PipelineRunResultBridge = zod.z.custom();
17344
17803
  //#endregion
17804
+ //#region src/capabilities/switch-settable.ts
17805
+ /**
17806
+ * Whether a switch can be set (D1058), schema-free so the addon runner can import it from
17807
+ * `@camstack/types/addon` without loading the capability schema graph (D28).
17808
+ */
17809
+ /** The read that decides whether a switch is offered on/off (`offeredWhen` of its actions). */
17810
+ var SWITCH_SETTABLE_GATE = {
17811
+ method: "getOptions",
17812
+ field: "supportsSetState"
17813
+ };
17814
+ /**
17815
+ * The predicate the on/off surfaces apply to a raw answer: true only when `answer` — what the switch's
17816
+ * `getOptions` returned — says `supportsSetState: false`. `undefined` (no provider method, a
17817
+ * failed or pending read) and any other shape are false: unknown keeps on/off (D315).
17818
+ */
17819
+ function switchRefusesSetState(answer) {
17820
+ if (typeof answer !== "object" || answer === null) return false;
17821
+ return Reflect.get(answer, SWITCH_SETTABLE_GATE.field) === false;
17822
+ }
17823
+ //#endregion
17345
17824
  //#region src/capabilities/viewer-ui.cap.ts
17346
17825
  var StaticDirOutputSchema = zod.z.object({ staticDir: zod.z.string() });
17347
17826
  var VersionOutputSchema = zod.z.object({ version: zod.z.string() });
@@ -17550,6 +18029,40 @@ function withoutCallerStamp(input) {
17550
18029
  return Object.fromEntries(Object.entries(input).filter(([key]) => key !== "callerAddonId"));
17551
18030
  }
17552
18031
  //#endregion
18032
+ //#region src/capabilities/cap-method-absent.ts
18033
+ /**
18034
+ * Whether a failed cap call means the provider does not HAVE the method — an
18035
+ * optional method it never wrote, or a hub that predates it — rather than a
18036
+ * read that failed. A missing method is an answer ("not supported"); a failed
18037
+ * read is not, and only the second deserves a warning.
18038
+ */
18039
+ /**
18040
+ * Prefix the hub matches to turn a child-side "declared optional, not served"
18041
+ * into a `NOT_IMPLEMENTED`. A prefix rather than an error subclass because the
18042
+ * error crosses a UDS boundary as a plain message.
18043
+ */
18044
+ var CAP_METHOD_NOT_IMPLEMENTED = "CAP_METHOD_NOT_IMPLEMENTED";
18045
+ /** tRPC's own answer for a path the hub does not mount (a hub that predates the method). */
18046
+ var UNKNOWN_PROCEDURE = "No procedure found on path";
18047
+ /** `device-call-redirect` / `device-collection-dispatch`: a provider that lacks the method. */
18048
+ var PROVIDER_LACKS_METHOD = "does not implement";
18049
+ /**
18050
+ * The typed code first: the hub cap router's `NOT_IMPLEMENTED` on `data.code`.
18051
+ * A forked provider's refusal crosses the UDS hop as a plain message, so it is
18052
+ * matched by the dispatcher's prefix (`CAP_METHOD_NOT_IMPLEMENTED`); the last
18053
+ * two are the routing layer's own wording.
18054
+ */
18055
+ function isCapMethodAbsent(err) {
18056
+ const data = typeof err === "object" && err !== null ? Reflect.get(err, "data") : void 0;
18057
+ if ((typeof data === "object" && data !== null ? Reflect.get(data, "code") : void 0) === "NOT_IMPLEMENTED") return true;
18058
+ const message = err instanceof Error ? err.message : String(err);
18059
+ return [
18060
+ CAP_METHOD_NOT_IMPLEMENTED,
18061
+ UNKNOWN_PROCEDURE,
18062
+ PROVIDER_LACKS_METHOD
18063
+ ].some((marker) => message.includes(marker));
18064
+ }
18065
+ //#endregion
17553
18066
  //#region src/generated/addon-cap-facts.ts
17554
18067
  /** cap name -> the numeric state field whose strict advance IS the cap's one-shot event. */
17555
18068
  var CAP_ADVANCE_FIELDS = Object.freeze({ "doorbell": "lastPressedAt" });
@@ -17762,6 +18275,7 @@ var CAP_NAMES = Object.freeze([
17762
18275
  "weather",
17763
18276
  "weather-station",
17764
18277
  "webrtc-session",
18278
+ "workload",
17765
18279
  "zone-analytics",
17766
18280
  "zone-rules",
17767
18281
  "zones"
@@ -19065,6 +19579,14 @@ var CAP_STATE_LEAVES = Object.freeze({
19065
19579
  "path": "ssid",
19066
19580
  "valueType": "string"
19067
19581
  },
19582
+ {
19583
+ "path": "speedKbps",
19584
+ "valueType": "number"
19585
+ },
19586
+ {
19587
+ "path": "linkUp",
19588
+ "valueType": "boolean"
19589
+ },
19068
19590
  {
19069
19591
  "path": "lastUpdated",
19070
19592
  "valueType": "number"
@@ -19461,6 +19983,14 @@ var CAP_STATE_LEAVES = Object.freeze({
19461
19983
  "path": "durationSeconds",
19462
19984
  "valueType": "number"
19463
19985
  },
19986
+ {
19987
+ "path": "plays",
19988
+ "valueType": "number"
19989
+ },
19990
+ {
19991
+ "path": "activeUntilEstimated",
19992
+ "valueType": "boolean"
19993
+ },
19464
19994
  {
19465
19995
  "path": "lastTriggeredAt",
19466
19996
  "valueType": "number"
@@ -19863,6 +20393,92 @@ var CAP_STATE_LEAVES = Object.freeze({
19863
20393
  "valueType": "number"
19864
20394
  }
19865
20395
  ],
20396
+ "workload": [
20397
+ {
20398
+ "path": "state",
20399
+ "valueType": "enum",
20400
+ "enumValues": [
20401
+ "running",
20402
+ "paused",
20403
+ "stopped",
20404
+ "starting",
20405
+ "stopping",
20406
+ "crashed"
20407
+ ]
20408
+ },
20409
+ {
20410
+ "path": "since",
20411
+ "valueType": "number"
20412
+ },
20413
+ {
20414
+ "path": "hostDeviceId",
20415
+ "valueType": "number"
20416
+ },
20417
+ {
20418
+ "path": "image",
20419
+ "valueType": "string"
20420
+ },
20421
+ {
20422
+ "path": "os",
20423
+ "valueType": "string"
20424
+ },
20425
+ {
20426
+ "path": "version",
20427
+ "valueType": "string"
20428
+ },
20429
+ {
20430
+ "path": "autostart",
20431
+ "valueType": "boolean"
20432
+ },
20433
+ {
20434
+ "path": "resources.cpuPercent",
20435
+ "valueType": "number"
20436
+ },
20437
+ {
20438
+ "path": "resources.memoryUsedBytes",
20439
+ "valueType": "number"
20440
+ },
20441
+ {
20442
+ "path": "resources.memoryPercent",
20443
+ "valueType": "number"
20444
+ },
20445
+ {
20446
+ "path": "resources.memoryLimitBytes",
20447
+ "valueType": "number"
20448
+ },
20449
+ {
20450
+ "path": "resources.vcpus",
20451
+ "valueType": "number"
20452
+ },
20453
+ {
20454
+ "path": "resources.diskUsedBytes",
20455
+ "valueType": "number"
20456
+ },
20457
+ {
20458
+ "path": "resources.diskTotalBytes",
20459
+ "valueType": "number"
20460
+ },
20461
+ {
20462
+ "path": "resources.netRxKbps",
20463
+ "valueType": "number"
20464
+ },
20465
+ {
20466
+ "path": "resources.netTxKbps",
20467
+ "valueType": "number"
20468
+ },
20469
+ {
20470
+ "path": "resources.load1",
20471
+ "valueType": "number"
20472
+ },
20473
+ {
20474
+ "path": "resources.temperature",
20475
+ "valueType": "number"
20476
+ },
20477
+ {
20478
+ "path": "updateAvailable",
20479
+ "valueType": "boolean"
20480
+ }
20481
+ ],
19866
20482
  "zone-analytics": [
19867
20483
  {
19868
20484
  "path": "ts",
@@ -20903,6 +21519,7 @@ function createDeviceProxy(api, binding, opts) {
20903
21519
  };
20904
21520
  const sirenInterface = {
20905
21521
  getOptions: (input, options) => dispatch("siren", "siren", "getOptions", "query", input, void 0, options),
21522
+ getPlayChoices: (input, options) => dispatch("siren", "siren", "getPlayChoices", "query", input, void 0, options),
20906
21523
  trigger: (input, options) => dispatch("siren", "siren", "trigger", "mutation", input, void 0, options),
20907
21524
  stop: (input, options) => dispatch("siren", "siren", "stop", "mutation", input, void 0, options),
20908
21525
  getStatus: (input, options) => dispatch("siren", "siren", "getStatus", "query", input, void 0, options)
@@ -20929,6 +21546,8 @@ function createDeviceProxy(api, binding, opts) {
20929
21546
  const streamSignalsInterface = { listSignals: (input, options) => dispatch("stream-signals", "streamSignals", "listSignals", "query", input, void 0, options) };
20930
21547
  const switchInterface = {
20931
21548
  setState: (input, options) => dispatch("switch", "switch", "setState", "mutation", input, void 0, options),
21549
+ getOptions: (input, options) => dispatch("switch", "switch", "getOptions", "query", input, void 0, options),
21550
+ powerCycle: (input, options) => dispatch("switch", "switch", "powerCycle", "mutation", input, void 0, options),
20932
21551
  toggle: (input, options) => dispatch("switch", "switch", "toggle", "mutation", input, void 0, options),
20933
21552
  getStatus: (input, options) => dispatch("switch", "switch", "getStatus", "query", input, void 0, options)
20934
21553
  };
@@ -20992,6 +21611,16 @@ function createDeviceProxy(api, binding, opts) {
20992
21611
  applyDownlinkProbe: (input, options) => dispatch("webrtc-session", "webrtcSession", "applyDownlinkProbe", "mutation", input, void 0, options),
20993
21612
  getSessionDebug: (input, options) => dispatch("webrtc-session", "webrtcSession", "getSessionDebug", "query", input, void 0, options)
20994
21613
  };
21614
+ const workloadInterface = {
21615
+ start: (input, options) => dispatch("workload", "workload", "start", "mutation", input, void 0, options),
21616
+ stop: (input, options) => dispatch("workload", "workload", "stop", "mutation", input, void 0, options),
21617
+ restart: (input, options) => dispatch("workload", "workload", "restart", "mutation", input, void 0, options),
21618
+ pause: (input, options) => dispatch("workload", "workload", "pause", "mutation", input, void 0, options),
21619
+ resume: (input, options) => dispatch("workload", "workload", "resume", "mutation", input, void 0, options),
21620
+ forceStop: (input, options) => dispatch("workload", "workload", "forceStop", "mutation", input, void 0, options),
21621
+ getOptions: (input, options) => dispatch("workload", "workload", "getOptions", "query", input, void 0, options),
21622
+ getStatus: (input, options) => dispatch("workload", "workload", "getStatus", "query", input, void 0, options)
21623
+ };
20995
21624
  const zoneAnalyticsInterface = {
20996
21625
  getCurrentSnapshot: (input, options) => dispatch("zone-analytics", "zoneAnalytics", "getCurrentSnapshot", "query", input, void 0, options),
20997
21626
  getCurrentSnapshotBatch: (input, options) => dispatch("zone-analytics", "zoneAnalytics", "getCurrentSnapshotBatch", "query", input, void 0, options),
@@ -21053,6 +21682,7 @@ function createDeviceProxy(api, binding, opts) {
21053
21682
  setRole: (input, options) => dispatchSystem("deviceManager", "setRole", "mutation", input, void 0, options),
21054
21683
  applyInitialMeta: (input, options) => dispatchSystem("deviceManager", "applyInitialMeta", "mutation", input, void 0, options),
21055
21684
  setMetadata: (input, options) => dispatchSystem("deviceManager", "setMetadata", "mutation", input, void 0, options),
21685
+ setIdentifiers: (input, options) => dispatchSystem("deviceManager", "setIdentifiers", "mutation", input, void 0, options),
21056
21686
  setDisabled: (input, options) => dispatchSystem("deviceManager", "setDisabled", "mutation", input, void 0, options),
21057
21687
  getDevice: (input, options) => dispatchSystem("deviceManager", "getDevice", "query", input, void 0, options),
21058
21688
  getLinkedDevices: (input, options) => dispatchSystem("deviceManager", "getLinkedDevices", "query", input, void 0, options),
@@ -21266,6 +21896,7 @@ function createDeviceProxy(api, binding, opts) {
21266
21896
  waterHeater: createSliceHandle(stateSource, binding.deviceId, "water-heater"),
21267
21897
  weather: createSliceHandle(stateSource, binding.deviceId, "weather"),
21268
21898
  weatherStation: createSliceHandle(stateSource, binding.deviceId, "weather-station"),
21899
+ workload: createSliceHandle(stateSource, binding.deviceId, "workload"),
21269
21900
  zoneAnalytics: createSliceHandle(stateSource, binding.deviceId, "zone-analytics"),
21270
21901
  zoneRules: createSliceHandle(stateSource, binding.deviceId, "zone-rules"),
21271
21902
  zones: createSliceHandle(stateSource, binding.deviceId, "zones")
@@ -21375,6 +22006,7 @@ function createDeviceProxy(api, binding, opts) {
21375
22006
  ...bound("weather") ? { weather: weatherInterface } : {},
21376
22007
  ...bound("weather-station") ? { weatherStation: weatherStationInterface } : {},
21377
22008
  ...bound("webrtc-session") ? { webrtcSession: webrtcSessionInterface } : {},
22009
+ ...bound("workload") ? { workload: workloadInterface } : {},
21378
22010
  ...bound("zone-analytics") ? { zoneAnalytics: zoneAnalyticsInterface } : {},
21379
22011
  ...bound("zone-rules") ? { zoneRules: zoneRulesInterface } : {},
21380
22012
  ...bound("zones") ? { zones: zonesInterface } : {},
@@ -21409,7 +22041,7 @@ function createDeviceProxy(api, binding, opts) {
21409
22041
  * can answer "may a rule actuate this?" without importing the schema barrel
21410
22042
  * (~144MB RSS per runner, D28).
21411
22043
  *
21412
- * Coverage: 108 device-scoped capabilities.
22044
+ * Coverage: 109 device-scoped capabilities.
21413
22045
  */
21414
22046
  var DEVICE_SCOPED_CAPS = new Set([
21415
22047
  "accessories",
@@ -21517,6 +22149,7 @@ var DEVICE_SCOPED_CAPS = new Set([
21517
22149
  "weather",
21518
22150
  "weather-station",
21519
22151
  "webrtc-session",
22152
+ "workload",
21520
22153
  "zone-analytics",
21521
22154
  "zone-rules",
21522
22155
  "zones"
@@ -21861,6 +22494,12 @@ Object.defineProperty(exports, "CAP_COMMAND_ORIGIN_CONTEXT_KEY", {
21861
22494
  return CAP_COMMAND_ORIGIN_CONTEXT_KEY;
21862
22495
  }
21863
22496
  });
22497
+ Object.defineProperty(exports, "CAP_METHOD_NOT_IMPLEMENTED", {
22498
+ enumerable: true,
22499
+ get: function() {
22500
+ return CAP_METHOD_NOT_IMPLEMENTED;
22501
+ }
22502
+ });
21864
22503
  Object.defineProperty(exports, "CAP_METHOD_TIMEOUTS_MS", {
21865
22504
  enumerable: true,
21866
22505
  get: function() {
@@ -22497,6 +23136,12 @@ Object.defineProperty(exports, "SHARE_VIEW_KINDS", {
22497
23136
  return SHARE_VIEW_KINDS;
22498
23137
  }
22499
23138
  });
23139
+ Object.defineProperty(exports, "SWITCH_SETTABLE_GATE", {
23140
+ enumerable: true,
23141
+ get: function() {
23142
+ return SWITCH_SETTABLE_GATE;
23143
+ }
23144
+ });
22500
23145
  Object.defineProperty(exports, "StoredRecordKindDeclarationSchema", {
22501
23146
  enumerable: true,
22502
23147
  get: function() {
@@ -23043,6 +23688,12 @@ Object.defineProperty(exports, "isAudioChunkFormat", {
23043
23688
  return isAudioChunkFormat;
23044
23689
  }
23045
23690
  });
23691
+ Object.defineProperty(exports, "isCapMethodAbsent", {
23692
+ enumerable: true,
23693
+ get: function() {
23694
+ return isCapMethodAbsent;
23695
+ }
23696
+ });
23046
23697
  Object.defineProperty(exports, "isCommand", {
23047
23698
  enumerable: true,
23048
23699
  get: function() {
@@ -23523,6 +24174,12 @@ Object.defineProperty(exports, "switchRecordsOverMigrationApi", {
23523
24174
  return switchRecordsOverMigrationApi;
23524
24175
  }
23525
24176
  });
24177
+ Object.defineProperty(exports, "switchRefusesSetState", {
24178
+ enumerable: true,
24179
+ get: function() {
24180
+ return switchRefusesSetState;
24181
+ }
24182
+ });
23526
24183
  Object.defineProperty(exports, "systemMethod", {
23527
24184
  enumerable: true,
23528
24185
  get: function() {