@camstack/server 1.2.937 → 1.2.938

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 (147) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/package.json +9 -11
  3. package/system/dist/{addon-pages.cap-CdvuO-QW.js → addon-pages.cap-B3gHFDYW.js} +4 -2
  4. package/system/dist/{addon-pages.cap-B-NaVAk8.mjs → addon-pages.cap-BLNN6ypr.mjs} +4 -2
  5. package/system/dist/{addon-settings.cap-BlsqpQXD.mjs → addon-settings.cap-CZ4MC7ha.mjs} +9 -1
  6. package/system/dist/{addon-settings.cap-B44t-Kbx.js → addon-settings.cap-DrLdMFIe.js} +9 -1
  7. package/system/dist/{addon-widgets.cap-BY-wN_Zi.mjs → addon-widgets.cap-BbmWMzIH.mjs} +4 -2
  8. package/system/dist/{addon-widgets.cap-CQRbYspY.js → addon-widgets.cap-DuCe2VRj.js} +4 -2
  9. package/system/dist/{base-device-B-jLBwhX.mjs → base-device-BcGO6LTT.mjs} +2 -2
  10. package/system/dist/{base-device-BOZCZY4S.js → base-device-CH8rfD9j.js} +2 -2
  11. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  12. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  13. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  14. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  15. package/system/dist/builtins/alerts/alerts.addon.js +2 -2
  16. package/system/dist/builtins/alerts/alerts.addon.mjs +2 -2
  17. package/system/dist/builtins/autotrack/index.js +1 -1
  18. package/system/dist/builtins/autotrack/index.mjs +1 -1
  19. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
  20. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
  21. package/system/dist/builtins/calendars/calendars.addon.js +1 -1
  22. package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
  23. package/system/dist/builtins/camera-grid/index.js +4 -4
  24. package/system/dist/builtins/camera-grid/index.mjs +4 -4
  25. package/system/dist/builtins/composer/composer.addon.js +8 -8
  26. package/system/dist/builtins/composer/composer.addon.mjs +8 -8
  27. package/system/dist/builtins/console-logging/index.js +1 -1
  28. package/system/dist/builtins/console-logging/index.mjs +1 -1
  29. package/system/dist/builtins/core-blocks/core-blocks.addon.js +11 -11
  30. package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +11 -11
  31. package/system/dist/builtins/core-notifier/core-notifier.addon.js +3 -3
  32. package/system/dist/builtins/core-notifier/core-notifier.addon.mjs +3 -3
  33. package/system/dist/builtins/device-history/device-history.addon.js +3 -3
  34. package/system/dist/builtins/device-history/device-history.addon.mjs +3 -3
  35. package/system/dist/builtins/device-manager/device-manager.addon.js +9 -9
  36. package/system/dist/builtins/device-manager/device-manager.addon.mjs +9 -9
  37. package/system/dist/builtins/hub-forwarder/index.js +1 -1
  38. package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
  39. package/system/dist/builtins/keychain/index.js +1 -1
  40. package/system/dist/builtins/keychain/index.mjs +1 -1
  41. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  42. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  43. package/system/dist/builtins/local-auth/local-auth.addon.js +1 -1
  44. package/system/dist/builtins/local-auth/local-auth.addon.mjs +1 -1
  45. package/system/dist/builtins/local-network/local-network.addon.js +2 -2
  46. package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
  47. package/system/dist/builtins/loki-logging/index.js +3 -3
  48. package/system/dist/builtins/loki-logging/index.mjs +3 -3
  49. package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  50. package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  51. package/system/dist/builtins/platform-probe/index.js +1 -1
  52. package/system/dist/builtins/platform-probe/index.mjs +1 -1
  53. package/system/dist/builtins/record-entries/index.js +1 -1
  54. package/system/dist/builtins/record-entries/index.mjs +1 -1
  55. package/system/dist/builtins/snapshot/index.js +2 -2
  56. package/system/dist/builtins/snapshot/index.mjs +2 -2
  57. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  58. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  59. package/system/dist/builtins/sqlite-storage/index.js +1 -1
  60. package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
  61. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +7 -7
  62. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +7 -7
  63. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +3 -3
  64. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +3 -3
  65. package/system/dist/builtins/winston-logging/index.js +2 -2
  66. package/system/dist/builtins/winston-logging/index.mjs +2 -2
  67. package/system/dist/{calendars.cap-KbMVKbM5.js → calendars.cap-CGeOtL7Q.js} +7 -1
  68. package/system/dist/{calendars.cap-DyQFPDr1.mjs → calendars.cap-DQc6Q6qS.mjs} +7 -1
  69. package/system/dist/{capability-definition-BRoGprGl.js → capability-definition-BEVd01Xj.js} +8 -4
  70. package/system/dist/{capability-definition-DLD3HR3U.mjs → capability-definition-C1TLUVJR.mjs} +8 -4
  71. package/system/dist/{capture-engine-DceE_Lxa.mjs → capture-engine-CUZ3W0oZ.mjs} +1 -1
  72. package/system/dist/{capture-engine-oWy4DQn8.js → capture-engine-mtDXEBAq.js} +1 -1
  73. package/system/dist/{composition-sources-DSf2fQ9L.js → composition-sources-DCi-ldEb.js} +2 -2
  74. package/system/dist/{composition-sources-2yNL7KIF.mjs → composition-sources-DgayqgHH.mjs} +2 -2
  75. package/system/dist/{core-blocks.cap-XUCnn7lE.mjs → core-blocks.cap-CWKQSevR.mjs} +38 -3
  76. package/system/dist/{core-blocks.cap-COZ5qkRy.js → core-blocks.cap-yLx6soaY.js} +38 -3
  77. package/system/dist/{database-snapshot.cap-BHWr6SRl.js → database-snapshot.cap-BNS5c60M.js} +2 -2
  78. package/system/dist/{database-snapshot.cap-Dgsn_9hb.mjs → database-snapshot.cap-a3lSf4hl.mjs} +2 -2
  79. package/system/dist/{device-manager.cap-B0XOXW5n.mjs → device-manager.cap-DIBK62-r.mjs} +14 -3
  80. package/system/dist/{device-manager.cap-DD66WJGT.js → device-manager.cap-DyHOIh5T.js} +14 -3
  81. package/system/dist/{device-provider.cap-meVxP-ZT.js → device-provider.cap-BKUGJSo0.js} +9 -1
  82. package/system/dist/{device-provider.cap-DNbklrhV.mjs → device-provider.cap-DU6HMUXH.mjs} +9 -1
  83. package/system/dist/{device-row-store-Bq3_mCoZ.mjs → device-row-store-C-_R-h1Z.mjs} +1 -1
  84. package/system/dist/{device-row-store-CSnsi_ri.js → device-row-store-O4mNbp5q.js} +1 -1
  85. package/system/dist/{device-transitions.cap-DETXRGXI.mjs → device-transitions.cap-DCXP3zwY.mjs} +7 -1
  86. package/system/dist/{device-transitions.cap-BDn0butT.js → device-transitions.cap-zOGvAIHz.js} +7 -1
  87. package/system/dist/{error.cap-BgBtdpm5.js → error.cap-BxLEHP6z.js} +1 -1
  88. package/system/dist/{error.cap-Xydi4TyZ.mjs → error.cap-DCwbIGEF.mjs} +1 -1
  89. package/system/dist/file-host-worker.js +1 -1
  90. package/system/dist/file-host-worker.mjs +1 -1
  91. package/system/dist/index.js +7 -7
  92. package/system/dist/index.mjs +7 -7
  93. package/system/dist/{integration-instances.cap-DskCCCIu.mjs → integration-instances.cap-BWttO42A.mjs} +10 -1
  94. package/system/dist/{integration-instances.cap-BZdT6WIs.js → integration-instances.cap-DSieF1w3.js} +10 -1
  95. package/system/dist/{keychain-admin.cap-CKdAe74a.mjs → keychain-admin.cap-DOvL8TMG.mjs} +5 -1
  96. package/system/dist/{keychain-admin.cap-BnsWz44L.js → keychain-admin.cap-DcRCRWtu.js} +5 -1
  97. package/system/dist/{log-destination.cap-Dz-Fli-t.js → log-destination.cap-BzTWMj-T.js} +4 -1
  98. package/system/dist/{log-destination.cap-rHxFjAsU.mjs → log-destination.cap-QYMJPJwK.mjs} +4 -1
  99. package/system/dist/{low-power-sleep.cap-DJH5wJpA.js → low-power-sleep.cap-B6mz6ojP.js} +1 -1
  100. package/system/dist/{low-power-sleep.cap-CwQkEFVD.mjs → low-power-sleep.cap-C3Vi8Vxj.mjs} +1 -1
  101. package/system/dist/{metrics-provider.cap-l39Ma4BH.mjs → metrics-provider.cap-01SwpLu5.mjs} +1 -1
  102. package/system/dist/{metrics-provider.cap-CmKvAp5K.js → metrics-provider.cap-BMKD5FH3.js} +1 -1
  103. package/system/dist/{migration-DKotTSc0.js → migration-BOQlFZCN.js} +1 -1
  104. package/system/dist/{migration-CpbO0xPG.mjs → migration-DGAc6ywR.mjs} +1 -1
  105. package/system/dist/{network-access.cap-XvDFK4J2.js → network-access.cap-BEN_uRVb.js} +12 -2
  106. package/system/dist/{network-access.cap-CTdzeqnQ.mjs → network-access.cap-Dy8FNNVs.mjs} +12 -2
  107. package/system/dist/{notification-rules.cap-JQPEAUwq.mjs → notification-rules.cap-0vVvsxQ1.mjs} +14 -1
  108. package/system/dist/{notification-rules.cap-v-cuIrwq.js → notification-rules.cap-Drwz-A4n.js} +14 -1
  109. package/system/dist/{notification-targets-_vr0nUsl.js → notification-targets-Cc_3OBH9.js} +1 -1
  110. package/system/dist/{notification-targets-CPSDChxA.mjs → notification-targets-DR-D-vIt.mjs} +1 -1
  111. package/system/dist/{platform-probe.cap-UOsI8bJL.js → platform-probe.cap-C0N9CugQ.js} +5 -1
  112. package/system/dist/{platform-probe.cap-BfGw4FsA.mjs → platform-probe.cap-DzZ7xUfS.mjs} +5 -1
  113. package/system/dist/{prefix-walk-MNJLhOQ4.js → prefix-walk-BRlQiqVg.js} +2 -2
  114. package/system/dist/{prefix-walk-_jmw00Vw.mjs → prefix-walk-BrrMuJBM.mjs} +2 -2
  115. package/system/dist/{ptz-autotrack.cap-CVm6a1Y-.mjs → ptz-autotrack.cap-CDF6FeTK.mjs} +1 -1
  116. package/system/dist/{ptz-autotrack.cap-E_n2XU8K.js → ptz-autotrack.cap-DOz0xL0O.js} +1 -1
  117. package/system/dist/{record-entries.cap-DWtLFTqk.mjs → record-entries.cap-BINjYZ1Q.mjs} +5 -2
  118. package/system/dist/{record-entries.cap-BM5lZzWh.js → record-entries.cap-NYExLM0O.js} +5 -2
  119. package/system/dist/{recording-archive.cap-BkI6Y-n1.js → recording-archive.cap-BPJ7kvnd.js} +6 -1
  120. package/system/dist/{recording-archive.cap-CzQ8cKsc.mjs → recording-archive.cap-RHAN45fa.mjs} +6 -1
  121. package/system/dist/{records.cap-BKJ9vylh.mjs → records.cap-DRwT1JbL.mjs} +10 -1
  122. package/system/dist/{records.cap-yxP6a69W.js → records.cap-wLi7r4Hj.js} +10 -1
  123. package/system/dist/{rename-composition-block-BkuT7Q9a.js → rename-composition-block-D44wnN_m.js} +401 -45
  124. package/system/dist/{rename-composition-block-BGsOdbXV.mjs → rename-composition-block-SPaUkmam.mjs} +401 -45
  125. package/system/dist/{restore-archive-D_Q_WeLG.mjs → restore-archive-BHkSRJYW.mjs} +2 -2
  126. package/system/dist/{restore-archive-BxpEs8a_.js → restore-archive-DRv1bPY7.js} +2 -2
  127. package/system/dist/{settings-store.cap-CBBKWyVh.js → settings-store.cap-BhOIBtO4.js} +1 -1
  128. package/system/dist/{settings-store.cap-DMRr0OD7.mjs → settings-store.cap-CaDSOqgK.mjs} +1 -1
  129. package/system/dist/{snapshot.cap-B6-9cwt9.mjs → snapshot.cap-BkfHpJVO.mjs} +3 -1
  130. package/system/dist/{snapshot.cap-CuP-6HSJ.js → snapshot.cap-Cis6JRwn.js} +3 -1
  131. package/system/dist/{storage-admin.cap-Dh59lsb1.mjs → storage-admin.cap-Ci4QbL6P.mjs} +4 -4
  132. package/system/dist/{storage-admin.cap-jCrZczO9.js → storage-admin.cap-DqW1ol4j.js} +4 -4
  133. package/system/dist/{storage-migration.cap-BN70KR6v.js → storage-migration.cap-CDOhpCQw.js} +23 -1
  134. package/system/dist/{storage-migration.cap-DlkRRFM8.mjs → storage-migration.cap-Ciw84XPm.mjs} +23 -1
  135. package/system/dist/{storage-occupancy.cap-DlDL_YBp.js → storage-occupancy.cap-B-Z8f8TZ.js} +5 -3
  136. package/system/dist/{storage-occupancy.cap-B85IBCO3.mjs → storage-occupancy.cap-B-wbMPmx.mjs} +5 -3
  137. package/system/dist/{storage-provider.cap-CplEGm7y.js → storage-provider.cap-B3Hm_BGM.js} +15 -1
  138. package/system/dist/{storage-provider.cap-B7mvKa0M.mjs → storage-provider.cap-CnN9ULbc.mjs} +15 -1
  139. package/system/dist/{stream-catalog.cap-Cp9GxHl8.mjs → stream-catalog.cap-D1Hy19Yc.mjs} +30 -2
  140. package/system/dist/{stream-catalog.cap-CG9R-dD2.js → stream-catalog.cap-D8Y-uXcy.js} +30 -2
  141. package/system/dist/{user-management.cap-Zpc4grqS.mjs → user-management.cap-Ctd4c_im.mjs} +26 -1
  142. package/system/dist/{user-management.cap-CPtvvmgp.js → user-management.cap-DyVb68rY.js} +26 -1
  143. package/system/dist/{vector-store.cap-q9AkgqSQ.js → vector-store.cap-DEVI-XJC.js} +6 -1
  144. package/system/dist/{vector-store.cap-CYcwQuWa.mjs → vector-store.cap-Df60cnrJ.mjs} +6 -1
  145. package/system/dist/{wal-maintenance-hh3FWtz2.mjs → wal-maintenance-O6zTzaI7.mjs} +0 -0
  146. package/system/dist/{wal-maintenance-Cb1i3shp.js → wal-maintenance-mV4OR3LR.js} +0 -0
  147. package/system/package.json +1 -1
@@ -1,51 +1,51 @@
1
1
  const require_streaming_shared = require("./streaming-shared-DQwFZOSi.js");
2
- const require_stream_catalog_cap = require("./stream-catalog.cap-CG9R-dD2.js");
2
+ const require_stream_catalog_cap = require("./stream-catalog.cap-D8Y-uXcy.js");
3
3
  const require_base_addon = require("./base-addon-DD5dIfcZ.js");
4
4
  const require_scoped_settings = require("./scoped-settings-CylSSq_8.js");
5
- const require_capability_definition = require("./capability-definition-BRoGprGl.js");
6
- const require_notification_rules_cap = require("./notification-rules.cap-v-cuIrwq.js");
7
- const require_device_manager_cap = require("./device-manager.cap-DD66WJGT.js");
5
+ const require_capability_definition = require("./capability-definition-BEVd01Xj.js");
6
+ const require_notification_rules_cap = require("./notification-rules.cap-Drwz-A4n.js");
7
+ const require_device_manager_cap = require("./device-manager.cap-DyHOIh5T.js");
8
8
  const require_device_identifiers = require("./device-identifiers-BQg9EQi1.js");
9
- const require_device_transitions_cap = require("./device-transitions.cap-BDn0butT.js");
9
+ const require_device_transitions_cap = require("./device-transitions.cap-zOGvAIHz.js");
10
10
  const require_system_reasons = require("./system-reasons-Be_k1W8g.js");
11
- const require_settings_store_cap = require("./settings-store.cap-CBBKWyVh.js");
11
+ const require_settings_store_cap = require("./settings-store.cap-BhOIBtO4.js");
12
12
  const require_quantity = require("./quantity-lY1KiTSZ.js");
13
13
  const require_labels = require("./labels-DX5S8deC.js");
14
- const require_recording_archive_cap = require("./recording-archive.cap-BkI6Y-n1.js");
14
+ const require_recording_archive_cap = require("./recording-archive.cap-BPJ7kvnd.js");
15
15
  const require_relocate = require("./relocate-CdVQAk-w.js");
16
- const require_storage_migration_cap = require("./storage-migration.cap-BN70KR6v.js");
16
+ const require_storage_migration_cap = require("./storage-migration.cap-CDOhpCQw.js");
17
17
  const require_tag = require("./tag-BxLazvVb.js");
18
- const require_platform_probe_cap = require("./platform-probe.cap-UOsI8bJL.js");
19
- const require_user_management_cap = require("./user-management.cap-CPtvvmgp.js");
18
+ const require_platform_probe_cap = require("./platform-probe.cap-C0N9CugQ.js");
19
+ const require_user_management_cap = require("./user-management.cap-DyVb68rY.js");
20
20
  const require_device_type = require("./device-type-CbQsnFdC.js");
21
21
  const require_device_certificate = require("./device-certificate-CguVACQO.js");
22
- const require_core_blocks_cap = require("./core-blocks.cap-COZ5qkRy.js");
23
- const require_addon_settings_cap = require("./addon-settings.cap-B44t-Kbx.js");
24
- const require_error_cap = require("./error.cap-BgBtdpm5.js");
22
+ const require_core_blocks_cap = require("./core-blocks.cap-yLx6soaY.js");
23
+ const require_addon_settings_cap = require("./addon-settings.cap-DrLdMFIe.js");
24
+ const require_error_cap = require("./error.cap-BxLEHP6z.js");
25
25
  const require_source_info = require("./source-info-DtWf4k2j.js");
26
26
  const require_l10n = require("./l10n-CGMvp7NF.js");
27
- const require_addon_pages_cap = require("./addon-pages.cap-CdvuO-QW.js");
28
- const require_addon_widgets_cap = require("./addon-widgets.cap-CQRbYspY.js");
29
- const require_database_snapshot_cap = require("./database-snapshot.cap-BHWr6SRl.js");
30
- const require_storage_occupancy_cap = require("./storage-occupancy.cap-DlDL_YBp.js");
31
- const require_calendars_cap = require("./calendars.cap-KbMVKbM5.js");
27
+ const require_addon_pages_cap = require("./addon-pages.cap-B3gHFDYW.js");
28
+ const require_addon_widgets_cap = require("./addon-widgets.cap-DuCe2VRj.js");
29
+ const require_database_snapshot_cap = require("./database-snapshot.cap-BNS5c60M.js");
30
+ const require_storage_occupancy_cap = require("./storage-occupancy.cap-B-Z8f8TZ.js");
31
+ const require_calendars_cap = require("./calendars.cap-CGeOtL7Q.js");
32
32
  const require_history_catalog = require("./history-catalog-BKRarIL_.js");
33
- const require_storage_admin_cap = require("./storage-admin.cap-jCrZczO9.js");
34
- const require_device_provider_cap = require("./device-provider.cap-meVxP-ZT.js");
35
- const require_storage_provider_cap = require("./storage-provider.cap-CplEGm7y.js");
36
- const require_integration_instances_cap = require("./integration-instances.cap-BZdT6WIs.js");
37
- const require_keychain_admin_cap = require("./keychain-admin.cap-BnsWz44L.js");
38
- const require_network_access_cap = require("./network-access.cap-XvDFK4J2.js");
39
- const require_log_destination_cap = require("./log-destination.cap-Dz-Fli-t.js");
40
- const require_low_power_sleep_cap = require("./low-power-sleep.cap-DJH5wJpA.js");
41
- const require_metrics_provider_cap = require("./metrics-provider.cap-CmKvAp5K.js");
42
- const require_records_cap = require("./records.cap-yxP6a69W.js");
33
+ const require_storage_admin_cap = require("./storage-admin.cap-DqW1ol4j.js");
34
+ const require_device_provider_cap = require("./device-provider.cap-BKUGJSo0.js");
35
+ const require_storage_provider_cap = require("./storage-provider.cap-B3Hm_BGM.js");
36
+ const require_integration_instances_cap = require("./integration-instances.cap-DSieF1w3.js");
37
+ const require_keychain_admin_cap = require("./keychain-admin.cap-DcRCRWtu.js");
38
+ const require_network_access_cap = require("./network-access.cap-BEN_uRVb.js");
39
+ const require_log_destination_cap = require("./log-destination.cap-BzTWMj-T.js");
40
+ const require_low_power_sleep_cap = require("./low-power-sleep.cap-B6mz6ojP.js");
41
+ const require_metrics_provider_cap = require("./metrics-provider.cap-BMKD5FH3.js");
42
+ const require_records_cap = require("./records.cap-wLi7r4Hj.js");
43
43
  const require_mask_shape = require("./mask-shape-CmPA2fst.js");
44
- const require_ptz_autotrack_cap = require("./ptz-autotrack.cap-E_n2XU8K.js");
45
- const require_record_entries_cap = require("./record-entries.cap-BM5lZzWh.js");
46
- const require_snapshot_cap = require("./snapshot.cap-CuP-6HSJ.js");
44
+ const require_ptz_autotrack_cap = require("./ptz-autotrack.cap-DOz0xL0O.js");
45
+ const require_record_entries_cap = require("./record-entries.cap-NYExLM0O.js");
46
+ const require_snapshot_cap = require("./snapshot.cap-Cis6JRwn.js");
47
47
  const require_server_name = require("./server-name-OALNvpqC.js");
48
- const require_vector_store_cap = require("./vector-store.cap-q9AkgqSQ.js");
48
+ const require_vector_store_cap = require("./vector-store.cap-DEVI-XJC.js");
49
49
  let zod = require("zod");
50
50
  //#region ../types/dist/esm/addon/package-requires.mjs
51
51
  /**
@@ -1813,28 +1813,39 @@ var deviceExportCapability = {
1813
1813
  */
1814
1814
  exposesDeviceSettings: true,
1815
1815
  methods: {
1816
+ /** Status of one export instance (connected, errors, counts). */
1816
1817
  getStatus: /* @__PURE__ */ require_capability_definition.method(InstancePinSchema, DeviceExportStatusSchema),
1818
+ /** List the export instances this addon runs. */
1817
1819
  listInstances: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.array(ExportInstanceSchema)),
1820
+ /** List the device kinds an export instance can expose. */
1818
1821
  listSupportedDeviceKinds: /* @__PURE__ */ require_capability_definition.method(InstancePinSchema, /* @__PURE__ */ zod.z.array(DeviceKindSchema)),
1822
+ /** List the devices an export instance currently exposes. */
1819
1823
  listExposedDevices: /* @__PURE__ */ require_capability_definition.method(InstancePinSchema, /* @__PURE__ */ zod.z.array(ExposedDeviceSchema)),
1824
+ /** Expose a device through an export instance. */
1820
1825
  exposeDevice: /* @__PURE__ */ require_capability_definition.method(ExposeInputSchema, /* @__PURE__ */ zod.z.void(), {
1821
1826
  kind: "mutation",
1822
1827
  auth: "admin"
1823
1828
  }),
1829
+ /** Stop exposing a device through an export instance. */
1824
1830
  unexposeDevice: /* @__PURE__ */ require_capability_definition.method(UnexposeInputSchema, /* @__PURE__ */ zod.z.void(), {
1825
1831
  kind: "mutation",
1826
1832
  auth: "admin"
1827
1833
  }),
1834
+ /** Set the name under which an exposed device appears in the external system. */
1828
1835
  setExposedName: /* @__PURE__ */ require_capability_definition.method(SetExposedNameInputSchema, /* @__PURE__ */ zod.z.void(), {
1829
1836
  kind: "mutation",
1830
1837
  auth: "admin"
1831
1838
  }),
1839
+ /** List the entity kinds this exporter can expose. */
1832
1840
  listSupportedEntityKinds: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.array(ExportEntityKindSchema)),
1841
+ /** List the entities an export instance currently exposes. */
1833
1842
  listExposedEntities: /* @__PURE__ */ require_capability_definition.optionalMethod(InstancePinSchema, /* @__PURE__ */ zod.z.array(ExposedEntitySchema)),
1843
+ /** Expose an entity through an export instance. */
1834
1844
  exposeEntity: /* @__PURE__ */ require_capability_definition.optionalMethod(ExposeEntityInputSchema, /* @__PURE__ */ zod.z.void(), {
1835
1845
  kind: "mutation",
1836
1846
  auth: "admin"
1837
1847
  }),
1848
+ /** Stop exposing an entity through an export instance. */
1838
1849
  unexposeEntity: /* @__PURE__ */ require_capability_definition.optionalMethod(UnexposeEntityInputSchema, /* @__PURE__ */ zod.z.void(), {
1839
1850
  kind: "mutation",
1840
1851
  auth: "admin"
@@ -1972,7 +1983,9 @@ var actionSourceCapability = {
1972
1983
  scope: "system",
1973
1984
  mode: "collection",
1974
1985
  methods: {
1986
+ /** List the actions this source offers. */
1975
1987
  listActions: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({}), /* @__PURE__ */ zod.z.array(ActionEntrySchema), { auth: "admin" }),
1988
+ /** Run one of the source's actions, optionally with variables. */
1976
1989
  runAction: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
1977
1990
  actionId: /* @__PURE__ */ zod.z.string().min(1),
1978
1991
  variables: /* @__PURE__ */ zod.z.record(/* @__PURE__ */ zod.z.string(), ActionVariableValueSchema).optional()
@@ -1980,6 +1993,7 @@ var actionSourceCapability = {
1980
1993
  kind: "mutation",
1981
1994
  auth: "admin"
1982
1995
  }),
1996
+ /** Stop a running action of the source. */
1983
1997
  stopAction: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ actionId: /* @__PURE__ */ zod.z.string().min(1) }), /* @__PURE__ */ zod.z.void(), {
1984
1998
  kind: "mutation",
1985
1999
  auth: "admin"
@@ -2122,10 +2136,12 @@ var actionsCapability = {
2122
2136
  caller: "required",
2123
2137
  timeoutMs: ACTION_RUN_TIMEOUT_MS
2124
2138
  }),
2139
+ /** Stop a running action. */
2125
2140
  stop: /* @__PURE__ */ require_capability_definition.method(ActionIdInput, /* @__PURE__ */ zod.z.void(), {
2126
2141
  kind: "mutation",
2127
2142
  auth: "admin"
2128
2143
  }),
2144
+ /** The recent run traces of an action. */
2129
2145
  getTraces: /* @__PURE__ */ require_capability_definition.method(ActionIdInput, /* @__PURE__ */ zod.z.object({ traces: /* @__PURE__ */ zod.z.array(require_core_blocks_cap.AutomationRunTraceSchema) }), { auth: "admin" }),
2130
2146
  /**
2131
2147
  * Internal actions only; a read-only (addon) entry is refused with `[read-only]`.
@@ -2143,6 +2159,7 @@ var actionsCapability = {
2143
2159
  kind: "mutation",
2144
2160
  auth: "admin"
2145
2161
  }),
2162
+ /** Change fields of an internal action. */
2146
2163
  update: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
2147
2164
  actionId: /* @__PURE__ */ zod.z.string().min(1),
2148
2165
  action: /* @__PURE__ */ ActionInputSchema$1.partial()
@@ -2153,6 +2170,7 @@ var actionsCapability = {
2153
2170
  kind: "mutation",
2154
2171
  auth: "admin"
2155
2172
  }),
2173
+ /** Delete an internal action. */
2156
2174
  delete: /* @__PURE__ */ require_capability_definition.method(ActionIdInput, /* @__PURE__ */ zod.z.void(), {
2157
2175
  kind: "mutation",
2158
2176
  auth: "admin"
@@ -2310,6 +2328,7 @@ var addonRoutesCapability = {
2310
2328
  mode: "collection",
2311
2329
  internal: true,
2312
2330
  methods: {
2331
+ /** List the HTTP routes addons expose. */
2313
2332
  getRoutes: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.array(AddonHttpRouteSchema)),
2314
2333
  /**
2315
2334
  * Cross-process dispatch entry point. Forked addons implement this
@@ -2693,12 +2712,15 @@ var addonsCapability = {
2693
2712
  * and drops packages the agent does not have.
2694
2713
  */
2695
2714
  list: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ nodeId: /* @__PURE__ */ zod.z.string().optional() }).optional(), /* @__PURE__ */ zod.z.array(AddonListItemSchema).readonly()),
2715
+ /** Recent log lines of one addon, optionally filtered by level. */
2696
2716
  getLogs: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
2697
2717
  addonId: /* @__PURE__ */ zod.z.string(),
2698
2718
  limit: /* @__PURE__ */ zod.z.number().min(1).max(500).default(100),
2699
2719
  level: /* @__PURE__ */ LogLevelSchema$1.optional()
2700
2720
  }), /* @__PURE__ */ zod.z.array(LogQueryEntrySchema)),
2721
+ /** List the installed addon packages with their versions. */
2701
2722
  listPackages: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.array(InstalledPackageSchema).readonly()),
2723
+ /** Install an addon package, optionally at a given version. */
2702
2724
  installPackage: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
2703
2725
  packageName: /* @__PURE__ */ zod.z.string(),
2704
2726
  version: /* @__PURE__ */ zod.z.string().optional()
@@ -2731,10 +2753,12 @@ var addonsCapability = {
2731
2753
  * Drives the uninstall confirm and the Addons page's "not on the hub" list.
2732
2754
  */
2733
2755
  listInstallations: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ packageName: /* @__PURE__ */ zod.z.string().optional() }), PackageInstallationsSchema, { auth: "admin" }),
2756
+ /** Rescan the installed packages and load what changed. */
2734
2757
  reloadPackages: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), ReloadPackagesResultSchema, {
2735
2758
  kind: "mutation",
2736
2759
  auth: "admin"
2737
2760
  }),
2761
+ /** Search the registry for installable addon packages, optionally by capability. */
2738
2762
  searchAvailable: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
2739
2763
  query: /* @__PURE__ */ zod.z.string().optional(),
2740
2764
  /** Only packages whose addons declare this capability (unknown ones excluded). */
@@ -2784,6 +2808,7 @@ var addonsCapability = {
2784
2808
  kind: "mutation",
2785
2809
  auth: "admin"
2786
2810
  }),
2811
+ /** Restart the server process; requires explicit confirmation. */
2787
2812
  restartServer: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ confirm: /* @__PURE__ */ zod.z.literal(true) }), /* @__PURE__ */ zod.z.unknown(), {
2788
2813
  kind: "mutation",
2789
2814
  auth: "admin"
@@ -2868,6 +2893,7 @@ var addonsCapability = {
2868
2893
  kind: "mutation",
2869
2894
  auth: "admin"
2870
2895
  }),
2896
+ /** List the published versions of a package. */
2871
2897
  getVersions: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ name: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.array(PackageVersionInfoSchema).readonly()),
2872
2898
  /**
2873
2899
  * README and CHANGELOG for one registry package, read on the hub and
@@ -2878,6 +2904,7 @@ var addonsCapability = {
2878
2904
  name: /* @__PURE__ */ zod.z.string().min(1),
2879
2905
  version: /* @__PURE__ */ zod.z.string().min(1).optional()
2880
2906
  }), PackageDocsSchema, { auth: "admin" }),
2907
+ /** Restart one addon's process. */
2881
2908
  restartAddon: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ addonId: /* @__PURE__ */ zod.z.string() }), RestartAddonResultSchema, {
2882
2909
  kind: "mutation",
2883
2910
  auth: "admin"
@@ -2892,7 +2919,9 @@ var addonsCapability = {
2892
2919
  kind: "mutation",
2893
2920
  auth: "admin"
2894
2921
  }),
2922
+ /** The global addon auto-update channel and check intervals. */
2895
2923
  getAutoUpdateSettings: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), AutoUpdateSettingsSchema, { auth: "admin" }),
2924
+ /** Change the global addon auto-update channel and check intervals. */
2896
2925
  setAutoUpdateSettings: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
2897
2926
  channel: ChannelSchema,
2898
2927
  intervalSeconds: /* @__PURE__ */ zod.z.number().min(300).max(86400).optional(),
@@ -2902,7 +2931,9 @@ var addonsCapability = {
2902
2931
  kind: "mutation",
2903
2932
  auth: "admin"
2904
2933
  }),
2934
+ /** The auto-update channel of one addon (or inherit the global one). */
2905
2935
  getAddonAutoUpdate: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ addonId: /* @__PURE__ */ zod.z.string() }), AddonAutoUpdateSchema, { auth: "admin" }),
2936
+ /** Set the auto-update channel of one addon. */
2906
2937
  setAddonAutoUpdate: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
2907
2938
  addonId: /* @__PURE__ */ zod.z.string(),
2908
2939
  channel: ChannelWithInheritSchema
@@ -2910,10 +2941,12 @@ var addonsCapability = {
2910
2941
  kind: "mutation",
2911
2942
  auth: "admin"
2912
2943
  }),
2944
+ /** Apply one auto-update channel to every addon. */
2913
2945
  applyAutoUpdateToAll: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ channel: ChannelSchema }), /* @__PURE__ */ zod.z.object({ success: /* @__PURE__ */ zod.z.literal(true) }), {
2914
2946
  kind: "mutation",
2915
2947
  auth: "admin"
2916
2948
  }),
2949
+ /** Run an addon's custom action with the given input. */
2917
2950
  custom: /* @__PURE__ */ require_capability_definition.method(CustomActionInputSchema, /* @__PURE__ */ zod.z.unknown(), {
2918
2951
  role: "viewer",
2919
2952
  kind: "mutation"
@@ -2963,6 +2996,7 @@ var addonsCapability = {
2963
2996
  kind: "mutation",
2964
2997
  auth: "admin"
2965
2998
  }),
2999
+ /** Stream live log lines of one addon, optionally filtered by level. */
2966
3000
  onAddonLogs: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
2967
3001
  addonId: /* @__PURE__ */ zod.z.string(),
2968
3002
  level: /* @__PURE__ */ LogLevelSchema$1.optional()
@@ -2992,6 +3026,7 @@ var adminUiCapability = {
2992
3026
  * SPA assets are served as plain static files, unaffected by this gate.
2993
3027
  */
2994
3028
  getStaticDir: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), StaticDirOutputSchema$1, { auth: "admin" }),
3029
+ /** The version of the admin UI build served by the hub. */
2995
3030
  getVersion: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), VersionOutputSchema$1, { auth: "admin" })
2996
3031
  },
2997
3032
  vocabulary: { notOperatorFacing: require_system_reasons.NOT_A_DEVICE.UI_PLUMBING }
@@ -3296,10 +3331,12 @@ var audioAnalyzerCapability = {
3296
3331
  scope: "system",
3297
3332
  mode: "singleton",
3298
3333
  methods: {
3334
+ /** Analyse one audio chunk (levels and detections) with the given settings; null when nothing to report. */
3299
3335
  analyseChunk: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
3300
3336
  chunk: require_stream_catalog_cap.AudioChunkInputSchema,
3301
3337
  settings: AudioAnalysisSettingsSchema
3302
3338
  }), /* @__PURE__ */ AudioAnalysisResultSchema.nullable(), { kind: "mutation" }),
3339
+ /** Classify the sounds in one audio chunk. */
3303
3340
  classify: /* @__PURE__ */ require_capability_definition.method(require_stream_catalog_cap.AudioChunkInputSchema, AudioClassificationResultSchema, { timeoutMs: 3e4 }),
3304
3341
  /**
3305
3342
  * Start pulling this camera's audio from the broker, in THIS process.
@@ -3316,7 +3353,9 @@ var audioAnalyzerCapability = {
3316
3353
  * drains rather than trusting it (D461).
3317
3354
  */
3318
3355
  detachDevice: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number() }), AudioDetachDeviceResultSchema, { kind: "mutation" }),
3356
+ /** Whether the analyzer is loaded and ready. */
3319
3357
  isReady: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.boolean()),
3358
+ /** Release the analyzer's resources. */
3320
3359
  dispose: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.void(), { kind: "mutation" }),
3321
3360
  /**
3322
3361
  * Re-run the host platform-probe for the audio backend and persist
@@ -3416,14 +3455,17 @@ var audioCodecCapability = {
3416
3455
  codec: /* @__PURE__ */ zod.z.string(),
3417
3456
  kind: /* @__PURE__ */ zod.z.enum(["decode", "encode"])
3418
3457
  }), /* @__PURE__ */ zod.z.boolean()),
3458
+ /** Open an audio decode session and return its id and node. */
3419
3459
  createDecodeSession: /* @__PURE__ */ require_capability_definition.method(AudioDecodeSessionConfigSchema, /* @__PURE__ */ zod.z.object({
3420
3460
  sessionId: /* @__PURE__ */ zod.z.string(),
3421
3461
  nodeId: /* @__PURE__ */ zod.z.string()
3422
3462
  }), { kind: "mutation" }),
3463
+ /** Open an audio encode session and return its id and node. */
3423
3464
  createEncodeSession: /* @__PURE__ */ require_capability_definition.method(AudioEncodeSessionConfigSchema, /* @__PURE__ */ zod.z.object({
3424
3465
  sessionId: /* @__PURE__ */ zod.z.string(),
3425
3466
  nodeId: /* @__PURE__ */ zod.z.string()
3426
3467
  }), { kind: "mutation" }),
3468
+ /** Close an audio codec session. */
3427
3469
  closeSession: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
3428
3470
  sessionId: /* @__PURE__ */ zod.z.string(),
3429
3471
  nodeId: /* @__PURE__ */ zod.z.string().optional()
@@ -3461,6 +3503,7 @@ var audioCodecCapability = {
3461
3503
  sessionId: /* @__PURE__ */ zod.z.string(),
3462
3504
  nodeId: /* @__PURE__ */ zod.z.string().optional()
3463
3505
  }), /* @__PURE__ */ zod.z.array(AudioEncodedChunkSchema), { kind: "mutation" }),
3506
+ /** List the open audio codec sessions. */
3464
3507
  listActiveSessions: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.array(SessionInventoryEntrySchema).readonly())
3465
3508
  },
3466
3509
  vocabulary: { notOperatorFacing: require_system_reasons.NOT_A_DEVICE.INTERNAL }
@@ -3643,6 +3686,7 @@ var automationControlCapability = {
3643
3686
  mode: "singleton",
3644
3687
  deviceTypes: [require_device_type.DeviceType.Automation],
3645
3688
  methods: {
3689
+ /** Enable the automation. */
3646
3690
  enable: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() }), /* @__PURE__ */ zod.z.void(), {
3647
3691
  kind: "mutation",
3648
3692
  auth: "admin",
@@ -3657,6 +3701,7 @@ var automationControlCapability = {
3657
3701
  icon: "toggle-right"
3658
3702
  }]
3659
3703
  }),
3704
+ /** Disable the automation. */
3660
3705
  disable: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() }), /* @__PURE__ */ zod.z.void(), {
3661
3706
  kind: "mutation",
3662
3707
  auth: "admin",
@@ -3671,6 +3716,7 @@ var automationControlCapability = {
3671
3716
  icon: "toggle-left"
3672
3717
  }]
3673
3718
  }),
3719
+ /** Fire the automation now, optionally bypassing its conditions. */
3674
3720
  trigger: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
3675
3721
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
3676
3722
  /** When true, fires the action block while bypassing the
@@ -4251,8 +4297,11 @@ var boardKeySourceCapability = {
4251
4297
  scope: "system",
4252
4298
  mode: "collection",
4253
4299
  methods: {
4300
+ /** List the sources that can provide board keys. */
4254
4301
  listSources: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.array(BoardKeySourceSchema).readonly(), { auth: "admin" }),
4302
+ /** List the boards one source knows. */
4255
4303
  listBoards: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ sourceId: /* @__PURE__ */ zod.z.string().min(1) }), ListBoardsResultSchema, { auth: "admin" }),
4304
+ /** Read the key of a board configuration from a source. */
4256
4305
  getBoardKey: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
4257
4306
  sourceId: /* @__PURE__ */ zod.z.string().min(1),
4258
4307
  configuration: /* @__PURE__ */ zod.z.string().min(1)
@@ -4286,7 +4335,9 @@ var brightnessCapability = {
4286
4335
  deviceNative: true,
4287
4336
  mode: "singleton",
4288
4337
  deviceTypes: [require_device_type.DeviceType.Light],
4289
- methods: { setBrightness: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
4338
+ methods: {
4339
+ /** Set the light's brightness level from 0 to 100. */
4340
+ setBrightness: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
4290
4341
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
4291
4342
  level: /* @__PURE__ */ zod.z.number().min(0).max(100)
4292
4343
  }), /* @__PURE__ */ zod.z.void(), {
@@ -4458,14 +4509,17 @@ var brokerCapability = {
4458
4509
  * but typical HA consumers use `publish` / `subscribe` instead.
4459
4510
  * Returns `null` when the broker id is unknown to the provider. */
4460
4511
  getBrokerConfig: /* @__PURE__ */ require_capability_definition.method(GetInputSchema, /* @__PURE__ */ SettingsRecordSchema.nullable(), { auth: "admin" }),
4512
+ /** Publish a message on the broker. */
4461
4513
  publish: /* @__PURE__ */ require_capability_definition.method(PublishInputSchema, /* @__PURE__ */ zod.z.unknown(), {
4462
4514
  kind: "mutation",
4463
4515
  auth: "admin"
4464
4516
  }),
4517
+ /** Subscribe to a topic on the broker. */
4465
4518
  subscribe: /* @__PURE__ */ require_capability_definition.method(SubscribeInputSchema, SubscribeResultSchema, {
4466
4519
  kind: "mutation",
4467
4520
  auth: "admin"
4468
4521
  }),
4522
+ /** Cancel a broker subscription. */
4469
4523
  unsubscribe: /* @__PURE__ */ require_capability_definition.method(UnsubscribeInputSchema, /* @__PURE__ */ zod.z.void(), {
4470
4524
  kind: "mutation",
4471
4525
  auth: "admin"
@@ -4499,7 +4553,9 @@ var buttonCapability = {
4499
4553
  deviceNative: true,
4500
4554
  mode: "singleton",
4501
4555
  deviceTypes: [require_device_type.DeviceType.Button],
4502
- methods: { press: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() }), /* @__PURE__ */ zod.z.void(), {
4556
+ methods: {
4557
+ /** Press the button to trigger its action. */
4558
+ press: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() }), /* @__PURE__ */ zod.z.void(), {
4503
4559
  kind: "mutation",
4504
4560
  auth: "protected",
4505
4561
  actions: [{
@@ -5115,6 +5171,7 @@ var streamBrokerCapability = {
5115
5171
  "unknown-code"
5116
5172
  ])
5117
5173
  }), { kind: "mutation" }),
5174
+ /** Register a camera stream (RTSP URL, codec, resolution) under a camera so profiles can be assigned to it. */
5118
5175
  publishCameraStream: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
5119
5176
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
5120
5177
  camStreamId: /* @__PURE__ */ zod.z.string().min(1),
@@ -5145,6 +5202,7 @@ var streamBrokerCapability = {
5145
5202
  kind: "mutation",
5146
5203
  auth: "admin"
5147
5204
  }),
5205
+ /** Remove a previously published camera stream from a camera. */
5148
5206
  retractCameraStream: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
5149
5207
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
5150
5208
  camStreamId: /* @__PURE__ */ zod.z.string().min(1)
@@ -5152,6 +5210,7 @@ var streamBrokerCapability = {
5152
5210
  kind: "mutation",
5153
5211
  auth: "admin"
5154
5212
  }),
5213
+ /** Assign a published camera stream to one of the camera's profile slots (for example high or low). */
5155
5214
  assignProfile: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
5156
5215
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
5157
5216
  profile: require_streaming_shared.CamProfileSchema,
@@ -5160,6 +5219,7 @@ var streamBrokerCapability = {
5160
5219
  kind: "mutation",
5161
5220
  auth: "admin"
5162
5221
  }),
5222
+ /** Clear a camera's profile slot so it no longer points at a stream. */
5163
5223
  unassignProfile: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
5164
5224
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
5165
5225
  profile: require_streaming_shared.CamProfileSchema
@@ -5331,8 +5391,11 @@ var streamBrokerCapability = {
5331
5391
  kind: "mutation",
5332
5392
  auth: "admin"
5333
5393
  }),
5394
+ /** List every camera stream published across all cameras. */
5334
5395
  listAllCameraStreams: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.array(require_streaming_shared.CameraStreamSchema).readonly()),
5396
+ /** List every camera profile slot and the stream assigned to it. */
5335
5397
  listAllProfileSlots: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.array(require_streaming_shared.ProfileSlotSchema).readonly()),
5398
+ /** Counters and health of one stream broker (clients, packets, bitrates). */
5336
5399
  getBrokerStats: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ brokerId: /* @__PURE__ */ zod.z.string() }), require_streaming_shared.BrokerStatsSchema),
5337
5400
  /**
5338
5401
  * The effective encode a derived-stream `profile` WOULD run with, computed
@@ -5362,6 +5425,7 @@ var streamBrokerCapability = {
5362
5425
  kind: "mutation",
5363
5426
  auth: "admin"
5364
5427
  }),
5428
+ /** List the clients currently attached to one stream broker, per channel. */
5365
5429
  listClients: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ brokerId: /* @__PURE__ */ zod.z.string() }), BrokerClientsSchema),
5366
5430
  /**
5367
5431
  * People watching each camera LIVE right now, for every camera at once —
@@ -5381,6 +5445,7 @@ var streamBrokerCapability = {
5381
5445
  * with its own stream-broker is asked with a `nodeId` pin.
5382
5446
  */
5383
5447
  getLiveViewerCounts: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.array(LiveViewerCountSchema).readonly(), { role: "viewer" }),
5448
+ /** Disconnect one RTSP or audio client from a stream broker. */
5384
5449
  killClient: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
5385
5450
  brokerId: /* @__PURE__ */ zod.z.string(),
5386
5451
  channel: /* @__PURE__ */ zod.z.enum(["rtsp", "audio"]),
@@ -5389,6 +5454,7 @@ var streamBrokerCapability = {
5389
5454
  kind: "mutation",
5390
5455
  auth: "admin"
5391
5456
  }),
5457
+ /** Restart the broker pipeline behind one camera profile. */
5392
5458
  restartProfile: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
5393
5459
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
5394
5460
  profile: require_streaming_shared.CamProfileSchema
@@ -5417,6 +5483,7 @@ var streamBrokerCapability = {
5417
5483
  kind: "mutation",
5418
5484
  auth: "admin"
5419
5485
  }),
5486
+ /** Release one reference to a codec-specific stream pipeline, stopping it when the last user leaves. */
5420
5487
  releaseStreamWithCodec: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ pipelineKey: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.object({
5421
5488
  released: /* @__PURE__ */ zod.z.boolean(),
5422
5489
  refcount: /* @__PURE__ */ zod.z.number().int().nonnegative()
@@ -5477,11 +5544,14 @@ var streamBrokerCapability = {
5477
5544
  * 3. `unsubscribeAudioChunks({ subscriptionId })` on teardown.
5478
5545
  */
5479
5546
  subscribeAudioChunks: /* @__PURE__ */ require_capability_definition.method(require_streaming_shared.SubscribeAudioChunksInputSchema, require_streaming_shared.SubscribeAudioChunksResultSchema, { kind: "mutation" }),
5547
+ /** Fetch up to maxCount decoded audio chunks queued for an audio subscription. */
5480
5548
  pullAudioChunks: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
5481
5549
  subscriptionId: /* @__PURE__ */ zod.z.string(),
5482
5550
  maxCount: /* @__PURE__ */ zod.z.number().int().positive().default(8)
5483
5551
  }), /* @__PURE__ */ zod.z.array(require_streaming_shared.DecodedAudioChunkSchema).readonly()),
5552
+ /** End an audio-chunk subscription and release its resources. */
5484
5553
  unsubscribeAudioChunks: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ subscriptionId: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.object({ released: /* @__PURE__ */ zod.z.boolean() }), { kind: "mutation" }),
5554
+ /** Set how many seconds of recent packets a broker keeps for late-joining consumers. */
5485
5555
  setPreBufferDuration: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
5486
5556
  brokerId: /* @__PURE__ */ zod.z.string(),
5487
5557
  seconds: /* @__PURE__ */ zod.z.number().min(0).max(30)
@@ -5489,11 +5559,13 @@ var streamBrokerCapability = {
5489
5559
  kind: "mutation",
5490
5560
  auth: "admin"
5491
5561
  }),
5562
+ /** Report the configured pre-buffer length and what the broker currently holds. */
5492
5563
  getPreBufferInfo: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ brokerId: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.object({
5493
5564
  configuredSec: /* @__PURE__ */ zod.z.number(),
5494
5565
  bufferedMs: /* @__PURE__ */ zod.z.number(),
5495
5566
  packetCount: /* @__PURE__ */ zod.z.number()
5496
5567
  })),
5568
+ /** The port the broker's RTSP re-stream server listens on. */
5497
5569
  getRtspPort: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.number()),
5498
5570
  /**
5499
5571
  * Enumeration surface — backs the admin RTSP-export picker and
@@ -5510,10 +5582,12 @@ var streamBrokerCapability = {
5510
5582
  brokerId: /* @__PURE__ */ zod.z.string(),
5511
5583
  hostname: /* @__PURE__ */ zod.z.string().optional()
5512
5584
  }), /* @__PURE__ */ RtspRestreamEntrySchema.nullable()),
5585
+ /** Issue a new access token for a broker's RTSP re-stream, invalidating the old one. */
5513
5586
  regenerateRtspToken: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ brokerId: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.string().nullable(), {
5514
5587
  kind: "mutation",
5515
5588
  auth: "admin"
5516
5589
  }),
5590
+ /** Turn the RTSP re-stream of one broker on or off. */
5517
5591
  setRtspEnabled: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
5518
5592
  brokerId: /* @__PURE__ */ zod.z.string(),
5519
5593
  enabled: /* @__PURE__ */ zod.z.boolean()
@@ -5521,6 +5595,7 @@ var streamBrokerCapability = {
5521
5595
  kind: "mutation",
5522
5596
  auth: "admin"
5523
5597
  }),
5598
+ /** Whether the RTSP re-stream of one broker is enabled. */
5524
5599
  isRtspEnabled: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ brokerId: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.boolean()),
5525
5600
  /**
5526
5601
  * ── Per-device audio-plane policy (D83) ───────────────────────────
@@ -5549,6 +5624,7 @@ var streamBrokerCapability = {
5549
5624
  */
5550
5625
  appliedBrokers: /* @__PURE__ */ zod.z.number().int().nonnegative()
5551
5626
  })),
5627
+ /** Mute or unmute the audio of a camera on every broker serving it. */
5552
5628
  setDeviceAudioMute: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
5553
5629
  deviceId: /* @__PURE__ */ zod.z.number().int(),
5554
5630
  muted: /* @__PURE__ */ zod.z.boolean()
@@ -5767,7 +5843,9 @@ var cameraStreamsCapability = {
5767
5843
  defaultActive: true,
5768
5844
  deviceTypes: [require_device_type.DeviceType.Camera],
5769
5845
  methods: {
5846
+ /** List the streams a camera publishes. */
5770
5847
  getCameraStreams: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() }), /* @__PURE__ */ zod.z.array(require_streaming_shared.CameraStreamSchema).readonly()),
5848
+ /** List the camera's profile slots and the streams assigned to them. */
5771
5849
  getBrokerStreams: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() }), /* @__PURE__ */ zod.z.array(require_streaming_shared.ProfileSlotSchema).readonly()),
5772
5850
  /**
5773
5851
  * Per-device RAW RTSP restream entries — one per published camStream
@@ -6096,6 +6174,7 @@ var climateControlCapability = {
6096
6174
  lastField: "lastActiveMode"
6097
6175
  },
6098
6176
  methods: {
6177
+ /** Set the HVAC mode (off, heat, cool, auto, ...). */
6099
6178
  setMode: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
6100
6179
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
6101
6180
  mode: HvacModeSchema
@@ -6196,6 +6275,7 @@ var climateControlCapability = {
6196
6275
  }
6197
6276
  ]
6198
6277
  }),
6278
+ /** Set the target temperature. */
6199
6279
  setTarget: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
6200
6280
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
6201
6281
  target: /* @__PURE__ */ zod.z.number()
@@ -6222,6 +6302,7 @@ var climateControlCapability = {
6222
6302
  }]
6223
6303
  }]
6224
6304
  }),
6305
+ /** Set the low and high target temperatures for auto mode. */
6225
6306
  setTargetRange: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.object({
6226
6307
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
6227
6308
  targetLow: /* @__PURE__ */ zod.z.number(),
@@ -6261,6 +6342,7 @@ var climateControlCapability = {
6261
6342
  }]
6262
6343
  }]
6263
6344
  }),
6345
+ /** Set the target humidity, 0 to 100. */
6264
6346
  setTargetHumidity: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.object({
6265
6347
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
6266
6348
  targetHumidity: /* @__PURE__ */ zod.z.number().min(0).max(100)
@@ -6289,6 +6371,7 @@ var climateControlCapability = {
6289
6371
  }]
6290
6372
  }]
6291
6373
  }),
6374
+ /** Set the fan mode. */
6292
6375
  setFanMode: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.object({
6293
6376
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
6294
6377
  fanMode: /* @__PURE__ */ zod.z.string().min(1)
@@ -6315,6 +6398,7 @@ var climateControlCapability = {
6315
6398
  }]
6316
6399
  }]
6317
6400
  }),
6401
+ /** Set the climate preset. */
6318
6402
  setPreset: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.object({
6319
6403
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
6320
6404
  preset: /* @__PURE__ */ zod.z.string().min(1)
@@ -6341,6 +6425,7 @@ var climateControlCapability = {
6341
6425
  }]
6342
6426
  }]
6343
6427
  }),
6428
+ /** Turn vertical swing on or off. */
6344
6429
  setSwingVertical: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.object({
6345
6430
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
6346
6431
  on: /* @__PURE__ */ zod.z.boolean()
@@ -6369,6 +6454,7 @@ var climateControlCapability = {
6369
6454
  args: { on: false }
6370
6455
  }]
6371
6456
  }),
6457
+ /** Turn horizontal swing on or off. */
6372
6458
  setSwingHorizontal: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.object({
6373
6459
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
6374
6460
  on: /* @__PURE__ */ zod.z.boolean()
@@ -6764,7 +6850,9 @@ var colorCapability = {
6764
6850
  deviceNative: true,
6765
6851
  mode: "singleton",
6766
6852
  deviceTypes: [require_device_type.DeviceType.Light],
6767
- methods: { setColor: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
6853
+ methods: {
6854
+ /** Set the light's color. */
6855
+ setColor: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
6768
6856
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
6769
6857
  color: ColorInputSchema
6770
6858
  }), /* @__PURE__ */ zod.z.void(), {
@@ -6991,6 +7079,7 @@ var composerCapability = {
6991
7079
  kind: "mutation",
6992
7080
  auth: "admin"
6993
7081
  }),
7082
+ /** The state of the given composition blocks. */
6994
7083
  getStates: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ blockIds: /* @__PURE__ */ zod.z.array(/* @__PURE__ */ zod.z.string()) }), /* @__PURE__ */ zod.z.object({ states: /* @__PURE__ */ zod.z.array(require_core_blocks_cap.CompositionBlockStateSchema) }), { auth: "admin" })
6995
7084
  },
6996
7085
  vocabulary: { notOperatorFacing: "device composition — an authoring tool, not an action" }
@@ -7532,6 +7621,7 @@ var controlCapability = {
7532
7621
  mode: "singleton",
7533
7622
  deviceTypes: [require_device_type.DeviceType.Control],
7534
7623
  methods: {
7624
+ /** Set the value of the control (number, selection, text or date). */
7535
7625
  setValue: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
7536
7626
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
7537
7627
  control: ControlSetValueInputSchema
@@ -7687,6 +7777,7 @@ var coverCapability = {
7687
7777
  mode: "singleton",
7688
7778
  deviceTypes: [require_device_type.DeviceType.Cover],
7689
7779
  methods: {
7780
+ /** Open the cover fully. */
7690
7781
  open: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() }), /* @__PURE__ */ zod.z.void(), {
7691
7782
  kind: "mutation",
7692
7783
  auth: "protected",
@@ -7701,6 +7792,7 @@ var coverCapability = {
7701
7792
  }
7702
7793
  }]
7703
7794
  }),
7795
+ /** Close the cover fully. */
7704
7796
  close: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() }), /* @__PURE__ */ zod.z.void(), {
7705
7797
  kind: "mutation",
7706
7798
  auth: "protected",
@@ -7715,6 +7807,7 @@ var coverCapability = {
7715
7807
  }
7716
7808
  }]
7717
7809
  }),
7810
+ /** Stop the cover where it is. */
7718
7811
  stop: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() }), /* @__PURE__ */ zod.z.void(), {
7719
7812
  kind: "mutation",
7720
7813
  auth: "protected",
@@ -7725,6 +7818,7 @@ var coverCapability = {
7725
7818
  icon: "square"
7726
7819
  }]
7727
7820
  }),
7821
+ /** Move the cover to a position from 0 to 100. */
7728
7822
  setPosition: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.object({
7729
7823
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
7730
7824
  position: /* @__PURE__ */ zod.z.number().min(0).max(100)
@@ -7753,6 +7847,7 @@ var coverCapability = {
7753
7847
  }]
7754
7848
  }]
7755
7849
  }),
7850
+ /** Set the cover's tilt from 0 to 100. */
7756
7851
  setTiltPosition: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.object({
7757
7852
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
7758
7853
  tiltPosition: /* @__PURE__ */ zod.z.number().min(0).max(100)
@@ -8091,7 +8186,9 @@ var dayNightCapability = {
8091
8186
  tab: "image"
8092
8187
  } },
8093
8188
  methods: {
8189
+ /** The camera's day/night modes and current settings. */
8094
8190
  getOptions: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number() }), DayNightOptionsSchema),
8191
+ /** Change the camera's day/night mode, sensitivity or switch delay. */
8095
8192
  setSettings: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
8096
8193
  deviceId: /* @__PURE__ */ zod.z.number(),
8097
8194
  settings: DayNightSettingsPatchSchema
@@ -8181,6 +8278,7 @@ var decoderCapability = {
8181
8278
  mode: "singleton",
8182
8279
  preferredProvider: "decoder-nodeav",
8183
8280
  methods: {
8281
+ /** The decoder's id, name and active hardware-acceleration state on this node. */
8184
8282
  getInfo: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.object({
8185
8283
  id: /* @__PURE__ */ zod.z.string(),
8186
8284
  name: /* @__PURE__ */ zod.z.string(),
@@ -8940,11 +9038,13 @@ var deviceStateRefreshCapability = {
8940
9038
  deviceNative: true,
8941
9039
  mode: "singleton",
8942
9040
  methods: {
9041
+ /** Re-read a device's state from the source now. */
8943
9042
  refresh: /* @__PURE__ */ require_capability_definition.method(DeviceStateRefreshInputSchema, DeviceStateRefreshResultSchema, {
8944
9043
  kind: "mutation",
8945
9044
  auth: "admin",
8946
9045
  notOperatorFacing: NOT_OPERATOR_FACING
8947
9046
  }),
9047
+ /** Re-establish a device's live state subscription. */
8948
9048
  resubscribe: /* @__PURE__ */ require_capability_definition.method(DeviceStateResubscribeInputSchema, DeviceStateRefreshResultSchema, {
8949
9049
  kind: "mutation",
8950
9050
  auth: "admin",
@@ -9169,6 +9269,7 @@ var dishwasherCapability = {
9169
9269
  }]
9170
9270
  }]
9171
9271
  }),
9272
+ /** Pause the running dishwasher program. */
9172
9273
  pause: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: DeviceIdSchema$2 }), /* @__PURE__ */ zod.z.void(), {
9173
9274
  kind: "mutation",
9174
9275
  auth: "protected",
@@ -9179,6 +9280,7 @@ var dishwasherCapability = {
9179
9280
  icon: "pause"
9180
9281
  }]
9181
9282
  }),
9283
+ /** Resume a paused dishwasher program. */
9182
9284
  resume: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: DeviceIdSchema$2 }), /* @__PURE__ */ zod.z.void(), {
9183
9285
  kind: "mutation",
9184
9286
  auth: "protected",
@@ -9189,6 +9291,7 @@ var dishwasherCapability = {
9189
9291
  icon: "play"
9190
9292
  }]
9191
9293
  }),
9294
+ /** Stop the running dishwasher program. */
9192
9295
  stop: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: DeviceIdSchema$2 }), /* @__PURE__ */ zod.z.void(), {
9193
9296
  kind: "mutation",
9194
9297
  auth: "protected",
@@ -9222,6 +9325,7 @@ var dishwasherCapability = {
9222
9325
  }]
9223
9326
  }]
9224
9327
  }),
9328
+ /** Switch the dishwasher on or off. */
9225
9329
  setPower: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
9226
9330
  deviceId: DeviceIdSchema$2,
9227
9331
  on: /* @__PURE__ */ zod.z.boolean()
@@ -9242,6 +9346,7 @@ var dishwasherCapability = {
9242
9346
  args: { on: false }
9243
9347
  }]
9244
9348
  }),
9349
+ /** Turn the half-load option on or off. */
9245
9350
  setHalfLoad: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
9246
9351
  deviceId: DeviceIdSchema$2,
9247
9352
  on: /* @__PURE__ */ zod.z.boolean()
@@ -9262,6 +9367,7 @@ var dishwasherCapability = {
9262
9367
  args: { on: false }
9263
9368
  }]
9264
9369
  }),
9370
+ /** Turn the Hygiene Plus option on or off. */
9265
9371
  setHygienePlus: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
9266
9372
  deviceId: DeviceIdSchema$2,
9267
9373
  on: /* @__PURE__ */ zod.z.boolean()
@@ -9282,6 +9388,7 @@ var dishwasherCapability = {
9282
9388
  args: { on: false }
9283
9389
  }]
9284
9390
  }),
9391
+ /** Turn the extra-dry option on or off. */
9285
9392
  setExtraDry: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
9286
9393
  deviceId: DeviceIdSchema$2,
9287
9394
  on: /* @__PURE__ */ zod.z.boolean()
@@ -9302,6 +9409,7 @@ var dishwasherCapability = {
9302
9409
  args: { on: false }
9303
9410
  }]
9304
9411
  }),
9412
+ /** Turn the intensive-zone option on or off. */
9305
9413
  setIntensiveZone: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
9306
9414
  deviceId: DeviceIdSchema$2,
9307
9415
  on: /* @__PURE__ */ zod.z.boolean()
@@ -9322,6 +9430,7 @@ var dishwasherCapability = {
9322
9430
  args: { on: false }
9323
9431
  }]
9324
9432
  }),
9433
+ /** Turn the speed-boost (VarioSpeed Plus) option on or off. */
9325
9434
  setVarioSpeedPlus: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
9326
9435
  deviceId: DeviceIdSchema$2,
9327
9436
  on: /* @__PURE__ */ zod.z.boolean()
@@ -9342,6 +9451,7 @@ var dishwasherCapability = {
9342
9451
  args: { on: false }
9343
9452
  }]
9344
9453
  }),
9454
+ /** Turn the child lock on or off. */
9345
9455
  setChildLock: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
9346
9456
  deviceId: DeviceIdSchema$2,
9347
9457
  on: /* @__PURE__ */ zod.z.boolean()
@@ -9547,14 +9657,17 @@ var displayPaletteCapability = {
9547
9657
  scope: "system",
9548
9658
  mode: "singleton",
9549
9659
  methods: {
9660
+ /** The cluster's colour palette. */
9550
9661
  getPalette: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), paletteResultSchema, {
9551
9662
  auth: "protected",
9552
9663
  role: "viewer"
9553
9664
  }),
9665
+ /** List the built-in palette presets. */
9554
9666
  listPresets: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.array(presetSummarySchema).readonly(), {
9555
9667
  auth: "protected",
9556
9668
  role: "viewer"
9557
9669
  }),
9670
+ /** Save a colour palette; refused when it fails the contrast rules. */
9558
9671
  setPalette: /* @__PURE__ */ require_capability_definition.method(setPaletteInputSchema, paletteReadySchema, {
9559
9672
  kind: "mutation",
9560
9673
  auth: "admin"
@@ -9584,7 +9697,9 @@ var doNotDisturbCapability = {
9584
9697
  deviceNative: true,
9585
9698
  mode: "singleton",
9586
9699
  deviceTypes: [require_device_type.DeviceType.MediaPlayer],
9587
- methods: { setEnabled: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
9700
+ methods: {
9701
+ /** Turn Do Not Disturb on or off for the device. */
9702
+ setEnabled: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
9588
9703
  deviceId: /* @__PURE__ */ zod.z.number().int(),
9589
9704
  enabled: /* @__PURE__ */ zod.z.boolean()
9590
9705
  }), /* @__PURE__ */ zod.z.void(), {
@@ -10352,6 +10467,7 @@ var faceGalleryCapability = {
10352
10467
  scope: "system",
10353
10468
  mode: "singleton",
10354
10469
  methods: {
10470
+ /** List the known face identities in the gallery. */
10355
10471
  listIdentities: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
10356
10472
  /**
10357
10473
  * Inline {@link IdentitySchema.coverBase64} on every row.
@@ -10373,10 +10489,12 @@ var faceGalleryCapability = {
10373
10489
  * is what ships, and the opt-in becomes reachable when the train lands.
10374
10490
  */
10375
10491
  includeCrops: /* @__PURE__ */ zod.z.boolean().optional() }).optional(), /* @__PURE__ */ zod.z.array(IdentitySchema).readonly(), { role: "viewer" }),
10492
+ /** Create a named face identity. */
10376
10493
  createIdentity: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ name: /* @__PURE__ */ zod.z.string().min(1) }), IdentitySchema, {
10377
10494
  kind: "mutation",
10378
10495
  auth: "admin"
10379
10496
  }),
10497
+ /** Rename a face identity. */
10380
10498
  renameIdentity: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
10381
10499
  id: /* @__PURE__ */ zod.z.string(),
10382
10500
  name: /* @__PURE__ */ zod.z.string().min(1)
@@ -10384,10 +10502,12 @@ includeCrops: /* @__PURE__ */ zod.z.boolean().optional() }).optional(), /* @__PU
10384
10502
  kind: "mutation",
10385
10503
  auth: "admin"
10386
10504
  }),
10505
+ /** Delete a face identity. */
10387
10506
  deleteIdentity: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ id: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.void(), {
10388
10507
  kind: "mutation",
10389
10508
  auth: "admin"
10390
10509
  }),
10510
+ /** List the face samples assigned to an identity. */
10391
10511
  listIdentitySamples: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ identityId: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.array(IdentitySampleInfoSchema).readonly()),
10392
10512
  /**
10393
10513
  * Re-analyse ONE person's enrolled samples against the whole gallery.
@@ -10402,6 +10522,7 @@ includeCrops: /* @__PURE__ */ zod.z.boolean().optional() }).optional(), /* @__PU
10402
10522
  * delete would be one confirmation away from emptying a gallery.
10403
10523
  */
10404
10524
  auditIdentitySamples: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ identityId: /* @__PURE__ */ zod.z.string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }),
10525
+ /** Remove one face sample from an identity. */
10405
10526
  removeSample: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
10406
10527
  identityId: /* @__PURE__ */ zod.z.string(),
10407
10528
  sampleId: /* @__PURE__ */ zod.z.string()
@@ -10421,6 +10542,7 @@ includeCrops: /* @__PURE__ */ zod.z.boolean().optional() }).optional(), /* @__PU
10421
10542
  kind: "mutation",
10422
10543
  auth: "admin"
10423
10544
  }),
10545
+ /** List recently detected faces, optionally for one or several cameras. */
10424
10546
  listRecentFaces: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
10425
10547
  /**
10426
10548
  * Restrict to ONE camera. Absent keeps the cluster-wide gallery view.
@@ -10491,11 +10613,14 @@ includeCrops: /* @__PURE__ */ zod.z.boolean().optional() }).optional(), /* @__PU
10491
10613
  */
10492
10614
  includeCrops: /* @__PURE__ */ zod.z.boolean().optional()
10493
10615
  }).optional(), /* @__PURE__ */ zod.z.array(FaceInfoSchema).readonly()),
10616
+ /** The face captured for a camera's track; null when none. */
10494
10617
  getFaceByTrack: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
10495
10618
  deviceId: /* @__PURE__ */ zod.z.number().int(),
10496
10619
  trackId: /* @__PURE__ */ zod.z.string()
10497
10620
  }), /* @__PURE__ */ FaceInfoSchema.nullable(), { role: "viewer" }),
10621
+ /** The media files (crops, frames) stored for one face. */
10498
10622
  getFaceMedia: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ faceId: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.array(MediaFileLiteSchema$1).readonly()),
10623
+ /** Assign a detected face to an identity. */
10499
10624
  assignFace: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
10500
10625
  faceId: /* @__PURE__ */ zod.z.string(),
10501
10626
  identityId: /* @__PURE__ */ zod.z.string()
@@ -10503,6 +10628,7 @@ includeCrops: /* @__PURE__ */ zod.z.boolean().optional() }).optional(), /* @__PU
10503
10628
  kind: "mutation",
10504
10629
  auth: "admin"
10505
10630
  }),
10631
+ /** Detach a detected face from its identity. */
10506
10632
  unassignFace: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ faceId: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.void(), {
10507
10633
  kind: "mutation",
10508
10634
  auth: "admin"
@@ -10923,6 +11049,7 @@ var fanControlCapability = {
10923
11049
  mode: "singleton",
10924
11050
  deviceTypes: [require_device_type.DeviceType.Fan],
10925
11051
  methods: {
11052
+ /** Set the fan speed from 0 to 100. */
10926
11053
  setPercentage: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.object({
10927
11054
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
10928
11055
  speed: /* @__PURE__ */ zod.z.number().min(0).max(100)
@@ -10991,6 +11118,7 @@ var fanControlCapability = {
10991
11118
  }
10992
11119
  ]
10993
11120
  }),
11121
+ /** Set the fan preset mode. */
10994
11122
  setPreset: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.object({
10995
11123
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
10996
11124
  preset: /* @__PURE__ */ zod.z.string().min(1)
@@ -11017,6 +11145,7 @@ var fanControlCapability = {
11017
11145
  }]
11018
11146
  }]
11019
11147
  }),
11148
+ /** Set the fan rotation direction. */
11020
11149
  setDirection: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.object({
11021
11150
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
11022
11151
  direction: FanDirectionSchema
@@ -11045,6 +11174,7 @@ var fanControlCapability = {
11045
11174
  args: { direction: "reverse" }
11046
11175
  }]
11047
11176
  }),
11177
+ /** Turn oscillation on or off. */
11048
11178
  setOscillating: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.object({
11049
11179
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
11050
11180
  oscillating: /* @__PURE__ */ zod.z.boolean()
@@ -11277,11 +11407,14 @@ var fanPresetsCapability = {
11277
11407
  scope: "system",
11278
11408
  mode: "singleton",
11279
11409
  methods: {
11410
+ /** The fan's saved presets. */
11280
11411
  getPresets: /* @__PURE__ */ require_capability_definition.method(deviceInput$1, /* @__PURE__ */ zod.z.array(FanPresetSchema), { auth: "protected" }),
11412
+ /** Replace the fan's saved presets. */
11281
11413
  setPresets: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ deviceInput$1.extend({ presets: /* @__PURE__ */ zod.z.array(FanPresetSchema).max(12) }), FanPresetsSetResultSchema, {
11282
11414
  kind: "mutation",
11283
11415
  auth: "admin"
11284
11416
  }),
11417
+ /** Apply a saved preset to the fan. */
11285
11418
  applyPreset: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ deviceInput$1.extend({ presetId: /* @__PURE__ */ zod.z.string().min(1) }), FanPresetApplyResultSchema, {
11286
11419
  kind: "mutation",
11287
11420
  auth: "protected"
@@ -11829,6 +11962,7 @@ var heatPumpControlCapability = {
11829
11962
  }]
11830
11963
  }]
11831
11964
  }),
11965
+ /** Set the operation mode of a heating circuit. */
11832
11966
  setCircuitOperationMode: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
11833
11967
  deviceId,
11834
11968
  circuitId,
@@ -11844,6 +11978,7 @@ var heatPumpControlCapability = {
11844
11978
  openArgs: [HEATING_CIRCUIT, MODE_ARG]
11845
11979
  }]
11846
11980
  }),
11981
+ /** Set a circuit to heating or cooling. */
11847
11982
  setCircuitHeatCoolMode: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
11848
11983
  deviceId,
11849
11984
  circuitId,
@@ -11859,6 +11994,7 @@ var heatPumpControlCapability = {
11859
11994
  openArgs: [HEATING_CIRCUIT, MODE_ARG]
11860
11995
  }]
11861
11996
  }),
11997
+ /** Set a circuit's summer or winter mode. */
11862
11998
  setCircuitSummerWinter: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
11863
11999
  deviceId,
11864
12000
  circuitId,
@@ -11874,6 +12010,7 @@ var heatPumpControlCapability = {
11874
12010
  openArgs: [HEATING_CIRCUIT, MODE_ARG]
11875
12011
  }]
11876
12012
  }),
12013
+ /** Set a circuit's comfort temperature. */
11877
12014
  setCircuitComfortSetpoint: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
11878
12015
  deviceId,
11879
12016
  circuitId,
@@ -11889,6 +12026,7 @@ var heatPumpControlCapability = {
11889
12026
  openArgs: [HEATING_CIRCUIT, TEMP_ARG]
11890
12027
  }]
11891
12028
  }),
12029
+ /** Set a circuit's eco temperature. */
11892
12030
  setCircuitEcoSetpoint: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
11893
12031
  deviceId,
11894
12032
  circuitId,
@@ -11904,6 +12042,7 @@ var heatPumpControlCapability = {
11904
12042
  openArgs: [HEATING_CIRCUIT, TEMP_ARG]
11905
12043
  }]
11906
12044
  }),
12045
+ /** Set a circuit's maximum flow temperature. */
11907
12046
  setCircuitMaxFlowTemp: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
11908
12047
  deviceId,
11909
12048
  circuitId,
@@ -11919,6 +12058,7 @@ var heatPumpControlCapability = {
11919
12058
  openArgs: [HEATING_CIRCUIT, TEMP_ARG]
11920
12059
  }]
11921
12060
  }),
12061
+ /** Set the operation mode of the domestic hot water circuit. */
11922
12062
  setDhwOperationMode: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
11923
12063
  deviceId,
11924
12064
  circuitId,
@@ -11934,6 +12074,7 @@ var heatPumpControlCapability = {
11934
12074
  openArgs: [HOT_WATER_CIRCUIT, MODE_ARG]
11935
12075
  }]
11936
12076
  }),
12077
+ /** Set the hot water temperature level of a circuit. */
11937
12078
  setDhwTemperatureLevel: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
11938
12079
  deviceId,
11939
12080
  circuitId,
@@ -11949,6 +12090,7 @@ var heatPumpControlCapability = {
11949
12090
  openArgs: [HOT_WATER_CIRCUIT, LEVEL_ARG]
11950
12091
  }]
11951
12092
  }),
12093
+ /** Set how many minutes a hot water charge runs. */
11952
12094
  setDhwChargeDuration: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
11953
12095
  deviceId,
11954
12096
  circuitId,
@@ -12404,6 +12546,7 @@ var timedRunCapability = {
12404
12546
  tab: "general"
12405
12547
  } },
12406
12548
  methods: {
12549
+ /** The timed-run options of a device. */
12407
12550
  getOptions: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int() }), TimedRunOptionsSchema),
12408
12551
  /**
12409
12552
  * The one-tap run of this device. A duration above the type's maximum is
@@ -13696,6 +13839,7 @@ var humidifierCapability = {
13696
13839
  set: "setOn"
13697
13840
  },
13698
13841
  methods: {
13842
+ /** Turn the humidifier on or off. */
13699
13843
  setOn: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
13700
13844
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
13701
13845
  on: /* @__PURE__ */ zod.z.boolean()
@@ -13724,6 +13868,7 @@ var humidifierCapability = {
13724
13868
  args: { on: false }
13725
13869
  }]
13726
13870
  }),
13871
+ /** Set the target humidity from 0 to 100. */
13727
13872
  setTargetHumidity: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
13728
13873
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
13729
13874
  humidity: /* @__PURE__ */ zod.z.number().min(0).max(100)
@@ -13752,6 +13897,7 @@ var humidifierCapability = {
13752
13897
  }]
13753
13898
  }]
13754
13899
  }),
13900
+ /** Set the humidifier mode. */
13755
13901
  setMode: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
13756
13902
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
13757
13903
  mode: /* @__PURE__ */ zod.z.string().min(1)
@@ -14083,7 +14229,9 @@ var imageSettingsCapability = {
14083
14229
  tab: "image"
14084
14230
  } },
14085
14231
  methods: {
14232
+ /** The camera's picture-adjustment options and current values. */
14086
14233
  getOptions: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number() }), ImageSettingsOptionsSchema),
14234
+ /** Change the camera's picture settings (brightness, contrast, orientation, exposure, ...). */
14087
14235
  setSettings: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
14088
14236
  deviceId: /* @__PURE__ */ zod.z.number(),
14089
14237
  settings: ImageSettingsPatchSchema
@@ -14220,6 +14368,7 @@ var intercomCapability = {
14220
14368
  auth: "protected",
14221
14369
  notOperatorFacing: "live-stream session plumbing driven by a viewer, never a discrete step"
14222
14370
  }),
14371
+ /** Pass the viewer's SDP answer to an open two-way audio session. */
14223
14372
  handleAnswer: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
14224
14373
  deviceId: /* @__PURE__ */ zod.z.number(),
14225
14374
  sessionId: /* @__PURE__ */ zod.z.string(),
@@ -14430,6 +14579,7 @@ var irTransmitterCapability = {
14430
14579
  mode: "singleton",
14431
14580
  deviceTypes: [require_device_type.DeviceType.Generic],
14432
14581
  methods: {
14582
+ /** Transmit an infrared code, given as timings or a native code. */
14433
14583
  send: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
14434
14584
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
14435
14585
  timings: /* @__PURE__ */ require_core_blocks_cap.IrTimingsSchema.optional(),
@@ -14440,6 +14590,7 @@ var irTransmitterCapability = {
14440
14590
  auth: "protected",
14441
14591
  notOperatorFacing: "a raw pulse train is not something an operator composes in an automation; the remote that owns the command table sends it"
14442
14592
  }),
14593
+ /** Listen for an infrared code from a remote and return it. */
14443
14594
  learn: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
14444
14595
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
14445
14596
  timeoutMs: /* @__PURE__ */ zod.z.number().int().positive().max(IR_LEARN_TIMEOUT_MAX_MS).default(IR_LEARN_TIMEOUT_DEFAULT_MS)
@@ -14448,6 +14599,7 @@ var irTransmitterCapability = {
14448
14599
  auth: "protected",
14449
14600
  notOperatorFacing: "an interactive capture the operator starts from the source dialog and answers by pressing a physical remote; no automation can supply the signal"
14450
14601
  }),
14602
+ /** What the infrared transmitter supports. */
14451
14603
  getInfo: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() }), IrTransmitterInfoSchema, {
14452
14604
  kind: "query",
14453
14605
  auth: "protected"
@@ -14532,6 +14684,7 @@ var lawnMowerControlCapability = {
14532
14684
  mode: "singleton",
14533
14685
  deviceTypes: [require_device_type.DeviceType.LawnMower],
14534
14686
  methods: {
14687
+ /** Start mowing. */
14535
14688
  startMowing: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() }), /* @__PURE__ */ zod.z.void(), {
14536
14689
  kind: "mutation",
14537
14690
  auth: "protected",
@@ -14542,6 +14695,7 @@ var lawnMowerControlCapability = {
14542
14695
  icon: "play"
14543
14696
  }]
14544
14697
  }),
14698
+ /** Pause mowing. */
14545
14699
  pause: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() }), /* @__PURE__ */ zod.z.void(), {
14546
14700
  kind: "mutation",
14547
14701
  auth: "protected",
@@ -14552,6 +14706,7 @@ var lawnMowerControlCapability = {
14552
14706
  icon: "pause"
14553
14707
  }]
14554
14708
  }),
14709
+ /** Send the mower back to its dock. */
14555
14710
  dock: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() }), /* @__PURE__ */ zod.z.void(), {
14556
14711
  kind: "mutation",
14557
14712
  auth: "protected",
@@ -15046,26 +15201,33 @@ var llmRuntimeCapability = {
15046
15201
  auth: "admin",
15047
15202
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
15048
15203
  }),
15204
+ /** Start the managed local model runtime on this node, loading the model, and report its status. */
15049
15205
  ensureStarted: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
15050
15206
  kind: "mutation",
15051
15207
  auth: "admin",
15052
15208
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
15053
15209
  }),
15210
+ /** Stop the local model runtime on this node. */
15054
15211
  stop: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({}), /* @__PURE__ */ zod.z.void(), {
15055
15212
  kind: "mutation",
15056
15213
  auth: "admin"
15057
15214
  }),
15215
+ /** Whether the local model runtime on this node is running. */
15058
15216
  status: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({}), LlmRuntimeStatusSchema, { auth: "admin" }),
15217
+ /** Download a model file into this node's runtime. */
15059
15218
  installModel: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ model: ManagedModelRefSchema }), /* @__PURE__ */ zod.z.void(), {
15060
15219
  kind: "mutation",
15061
15220
  auth: "admin",
15062
15221
  timeoutMs: AI_MODEL_INSTALL_TIMEOUT_MS
15063
15222
  }),
15223
+ /** Delete an installed model file from this node. */
15064
15224
  deleteModel: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ file: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.void(), {
15065
15225
  kind: "mutation",
15066
15226
  auth: "admin"
15067
15227
  }),
15228
+ /** List the model files installed on this node. */
15068
15229
  listLocalModels: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({}), /* @__PURE__ */ zod.z.array(LlmNodeModelSchema), { auth: "admin" }),
15230
+ /** Disk space used by the models on this node. */
15069
15231
  getDiskUsage: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({}), LlmRuntimeDiskUsageSchema, { auth: "admin" }),
15070
15232
  /**
15071
15233
  * Stop a node-side generation started with a `requestId` — `complete` or
@@ -15083,6 +15245,7 @@ var llmRuntimeCapability = {
15083
15245
  * node refreshes in the background — it never waits on a probe.
15084
15246
  */
15085
15247
  appleAvailability: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({}), AppleFmAvailabilitySchema, { auth: "admin" }),
15248
+ /** Run a text completion on the on-device Apple model. */
15086
15249
  completeApple: /* @__PURE__ */ require_capability_definition.method(LlmRuntimeAppleCompleteInputSchema, LlmGenerateResultSchema, {
15087
15250
  kind: "mutation",
15088
15251
  auth: "admin",
@@ -15228,10 +15391,12 @@ var llmCapability = {
15228
15391
  /** `nodeId` inputs below are DATA (the hub provider pins itself), never routing. */
15229
15392
  nodeIdMode: "data",
15230
15393
  methods: {
15394
+ /** Run a text generation on a language model profile and return the result. */
15231
15395
  generate: /* @__PURE__ */ require_capability_definition.method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
15232
15396
  kind: "mutation",
15233
15397
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
15234
15398
  }),
15399
+ /** Run a generation that includes images on a vision-capable model profile. */
15235
15400
  generateVision: /* @__PURE__ */ require_capability_definition.method(GenerateVisionInputSchema, LlmGenerateResultSchema, {
15236
15401
  kind: "mutation",
15237
15402
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
@@ -15258,7 +15423,9 @@ var llmCapability = {
15258
15423
  kind: "mutation",
15259
15424
  auth: "admin"
15260
15425
  }),
15426
+ /** The default model profile chosen for each LLM use. */
15261
15427
  getDefaults: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({}), /* @__PURE__ */ zod.z.array(LlmDefaultSchema)),
15428
+ /** Choose the default model profile for one LLM use, or clear it with null. */
15262
15429
  setDefault: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
15263
15430
  selector: LlmDefaultSelectorSchema,
15264
15431
  profileId: /* @__PURE__ */ zod.z.string().nullable()
@@ -15266,14 +15433,18 @@ var llmCapability = {
15266
15433
  kind: "mutation",
15267
15434
  auth: "admin"
15268
15435
  }),
15436
+ /** Token usage rolled up per consumer and profile, optionally within a time window. */
15269
15437
  getUsage: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
15270
15438
  since: /* @__PURE__ */ zod.z.number().optional(),
15271
15439
  until: /* @__PURE__ */ zod.z.number().optional(),
15272
15440
  consumer: /* @__PURE__ */ zod.z.string().optional(),
15273
15441
  profileId: /* @__PURE__ */ zod.z.string().optional()
15274
15442
  }), /* @__PURE__ */ zod.z.array(LlmUsageRollupSchema)),
15443
+ /** List the models that can be installed on a runtime node. */
15275
15444
  listModelCatalog: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({}), /* @__PURE__ */ zod.z.array(ManagedModelCatalogEntrySchema)),
15445
+ /** List the nodes that can host a local LLM runtime. */
15276
15446
  listRuntimeNodes: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({}), /* @__PURE__ */ zod.z.array(LlmRuntimeNodeSchema)),
15447
+ /** List the model files installed on one node. */
15277
15448
  listNodeModels: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ nodeId: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.array(LlmNodeModelSchema)),
15278
15449
  /**
15279
15450
  * One typed Hugging Face reference → a pinned, verified `ManagedModelRef`.
@@ -15294,6 +15465,7 @@ var llmCapability = {
15294
15465
  kind: "mutation",
15295
15466
  auth: "admin"
15296
15467
  }),
15468
+ /** Install a catalog model on a node. */
15297
15469
  installModel: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
15298
15470
  nodeId: /* @__PURE__ */ zod.z.string(),
15299
15471
  model: ManagedModelRefSchema
@@ -15301,6 +15473,7 @@ var llmCapability = {
15301
15473
  kind: "mutation",
15302
15474
  auth: "admin"
15303
15475
  }),
15476
+ /** Delete an installed model file from a node. */
15304
15477
  deleteModel: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
15305
15478
  nodeId: /* @__PURE__ */ zod.z.string(),
15306
15479
  file: /* @__PURE__ */ zod.z.string()
@@ -15308,11 +15481,14 @@ var llmCapability = {
15308
15481
  kind: "mutation",
15309
15482
  auth: "admin"
15310
15483
  }),
15484
+ /** Whether the local runtime behind a profile is running, and its state. */
15311
15485
  getRuntimeStatus: /* @__PURE__ */ require_capability_definition.method(ProfileRefInputSchema, LlmRuntimeStatusSchema),
15486
+ /** Start the local runtime behind a profile. */
15312
15487
  startRuntime: /* @__PURE__ */ require_capability_definition.method(ProfileRefInputSchema, LlmRuntimeStatusSchema, {
15313
15488
  kind: "mutation",
15314
15489
  auth: "admin"
15315
15490
  }),
15491
+ /** Stop the local runtime behind a profile. */
15316
15492
  stopRuntime: /* @__PURE__ */ require_capability_definition.method(ProfileRefInputSchema, /* @__PURE__ */ zod.z.void(), {
15317
15493
  kind: "mutation",
15318
15494
  auth: "admin"
@@ -15489,6 +15665,7 @@ var lockControlCapability = {
15489
15665
  mode: "singleton",
15490
15666
  deviceTypes: [require_device_type.DeviceType.Lock],
15491
15667
  methods: {
15668
+ /** Lock the lock, with a PIN code when it needs one. */
15492
15669
  lock: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
15493
15670
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
15494
15671
  /** Optional PIN code required by some keypad locks. NOT
@@ -15525,6 +15702,7 @@ var lockControlCapability = {
15525
15702
  }]
15526
15703
  }]
15527
15704
  }),
15705
+ /** Unlock the lock, with a PIN code when it needs one. */
15528
15706
  unlock: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
15529
15707
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
15530
15708
  code: /* @__PURE__ */ zod.z.string().min(1).optional(),
@@ -15566,6 +15744,7 @@ var lockControlCapability = {
15566
15744
  }]
15567
15745
  }]
15568
15746
  }),
15747
+ /** Release the latch so the door can be opened. */
15569
15748
  open: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() }), /* @__PURE__ */ zod.z.void(), {
15570
15749
  kind: "mutation",
15571
15750
  auth: "protected",
@@ -15848,7 +16027,9 @@ var loginMethodCapability = {
15848
16027
  scope: "system",
15849
16028
  mode: "collection",
15850
16029
  internal: true,
15851
- methods: { getLoginMethods: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.array(LoginMethodContributionSchema).readonly()) },
16030
+ methods: {
16031
+ /** List the sign-in methods this provider offers on the login page. */
16032
+ getLoginMethods: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.array(LoginMethodContributionSchema).readonly()) },
15852
16033
  /** BIG PLAN 2: declarative mount hint — read by `@camstack/server/system` `buildCapRouters`. */
15853
16034
  mount: { kind: "skip" },
15854
16035
  vocabulary: { notOperatorFacing: require_system_reasons.NOT_A_DEVICE.IDENTITY }
@@ -16133,7 +16314,9 @@ var modelConvertCapability = {
16133
16314
  scope: "system",
16134
16315
  mode: "singleton",
16135
16316
  internal: true,
16136
- methods: { convert: /* @__PURE__ */ require_capability_definition.method(ModelConvertInputSchema, ConvertResultSchema, {
16317
+ methods: {
16318
+ /** Convert a model to another format; can take minutes. */
16319
+ convert: /* @__PURE__ */ require_capability_definition.method(ModelConvertInputSchema, ConvertResultSchema, {
16137
16320
  kind: "mutation",
16138
16321
  auth: "admin",
16139
16322
  timeoutMs: 6e5
@@ -16177,7 +16360,9 @@ var modelDistributorCapability = {
16177
16360
  scope: "system",
16178
16361
  mode: "singleton",
16179
16362
  internal: true,
16180
- methods: { distributeModel: /* @__PURE__ */ require_capability_definition.method(ModelDistributeInputSchema, ModelDistributeResultSchema, {
16363
+ methods: {
16364
+ /** Push a model already on the hub to an agent node and verify it. */
16365
+ distributeModel: /* @__PURE__ */ require_capability_definition.method(ModelDistributeInputSchema, ModelDistributeResultSchema, {
16181
16366
  kind: "mutation",
16182
16367
  auth: "admin"
16183
16368
  }) },
@@ -16460,7 +16645,9 @@ var pipelineExecutorCapability = {
16460
16645
  scope: "system",
16461
16646
  mode: "singleton",
16462
16647
  methods: {
16648
+ /** List the inference engines this executor can run pipelines on. */
16463
16649
  getAvailableEngines: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.array(PipelineEngineChoiceSchema)),
16650
+ /** The inference engine currently selected for this executor. */
16464
16651
  getSelectedEngine: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), PipelineEngineChoiceSchema),
16465
16652
  /**
16466
16653
  * Per-node detection-engine provisioning snapshot. Returns the live
@@ -16471,10 +16658,12 @@ var pipelineExecutorCapability = {
16471
16658
  * indicator without polling. Phase 2.
16472
16659
  */
16473
16660
  getEngineProvisioning: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ nodeId: /* @__PURE__ */ zod.z.string() }), EngineProvisioningSchema),
16661
+ /** The configured video pipeline steps, keyed by step, with their model and settings. */
16474
16662
  getVideoPipelineSteps: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.record(/* @__PURE__ */ zod.z.string(), /* @__PURE__ */ zod.z.object({
16475
16663
  modelId: /* @__PURE__ */ zod.z.string(),
16476
16664
  settings: /* @__PURE__ */ zod.z.record(/* @__PURE__ */ zod.z.string(), /* @__PURE__ */ zod.z.unknown()).readonly()
16477
16665
  }))),
16666
+ /** Replace the configured video pipeline steps (model and settings per step). */
16478
16667
  setVideoPipelineSteps: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ steps: /* @__PURE__ */ zod.z.record(/* @__PURE__ */ zod.z.string(), /* @__PURE__ */ zod.z.object({
16479
16668
  modelId: /* @__PURE__ */ zod.z.string(),
16480
16669
  settings: /* @__PURE__ */ zod.z.record(/* @__PURE__ */ zod.z.string(), /* @__PURE__ */ zod.z.unknown()).readonly()
@@ -16542,7 +16731,9 @@ var pipelineExecutorCapability = {
16542
16731
  kind: "mutation",
16543
16732
  auth: "admin"
16544
16733
  }),
16734
+ /** The schema describing the pipeline stages and what each can be configured with. */
16545
16735
  getSchema: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), PipelineSchemaSchema),
16736
+ /** The configuration form schema of the pipeline orchestrator. */
16546
16737
  getOrchestratorConfigSchema: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), ConfigUISchemaBridge),
16547
16738
  /**
16548
16739
  * Gate B (pre-init config-correctness gate). PURE COMPUTE against this
@@ -16564,13 +16755,17 @@ var pipelineExecutorCapability = {
16564
16755
  steps: /* @__PURE__ */ zod.z.array(require_stream_catalog_cap.PipelineStepInputSchema),
16565
16756
  deviceKey: /* @__PURE__ */ zod.z.string().optional()
16566
16757
  }), PipelineValidationResultSchema),
16758
+ /** What this executor's inference hardware and runtimes can do. */
16567
16759
  getCapabilities: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), InferenceCapabilitiesBridge),
16760
+ /** List the models an addon offers and whether each is downloaded. */
16568
16761
  getAddonModels: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ addonId: /* @__PURE__ */ zod.z.string() }), ModelAvailabilityListBridge),
16762
+ /** Download a model in the given format for an addon. */
16569
16763
  downloadModel: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
16570
16764
  addonId: /* @__PURE__ */ zod.z.string(),
16571
16765
  modelId: /* @__PURE__ */ zod.z.string(),
16572
16766
  format: ModelFormatSchema$1
16573
16767
  }), DownloadModelResultSchema, { kind: "mutation" }),
16768
+ /** Delete a downloaded model in the given format from an addon. */
16574
16769
  deleteModel: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
16575
16770
  addonId: /* @__PURE__ */ zod.z.string(),
16576
16771
  modelId: /* @__PURE__ */ zod.z.string(),
@@ -16815,17 +17010,24 @@ var pipelineExecutorCapability = {
16815
17010
  kind: "mutation",
16816
17011
  auth: "admin"
16817
17012
  }),
17013
+ /** List the reference images available for pipeline tests. */
16818
17014
  listReferenceImages: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.array(ReferenceImageEntrySchema).readonly()),
17015
+ /** Fetch one reference image by filename; null when missing. */
16819
17016
  getReferenceImage: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ filename: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ ReferenceImageBodySchema.nullable()),
17017
+ /** List the reference audio files available for audio pipeline tests. */
16820
17018
  getReferenceAudioFiles: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.array(ReferenceAudioEntrySchema).readonly()),
17019
+ /** Fetch one reference audio file by filename; null when missing. */
16821
17020
  getReferenceAudio: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ filename: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ ReferenceAudioBodySchema.nullable()),
17021
+ /** What audio classification this executor supports. */
16822
17022
  getAudioCapabilities: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), AudioCapabilitiesSchema),
17023
+ /** Run an audio model on a reference audio file and return what it detected. */
16823
17024
  runAudioTest: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
16824
17025
  addonId: /* @__PURE__ */ zod.z.string(),
16825
17026
  modelId: /* @__PURE__ */ zod.z.string(),
16826
17027
  filename: /* @__PURE__ */ zod.z.string().optional(),
16827
17028
  settings: /* @__PURE__ */ zod.z.record(/* @__PURE__ */ zod.z.string(), /* @__PURE__ */ zod.z.unknown()).optional()
16828
17029
  }), AudioTestResultSchema, { kind: "mutation" }),
17030
+ /** The configuration form schema of the detection stage; null when none. */
16829
17031
  getDetectionConfigSchema: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), ConfigUISchemaNullableBridge)
16830
17032
  },
16831
17033
  vocabulary: { notOperatorFacing: require_system_reasons.NOT_A_DEVICE.PIPELINE }
@@ -16879,7 +17081,9 @@ var motionTriggerCapability = {
16879
17081
  require_device_type.DeviceType.Siren,
16880
17082
  require_device_type.DeviceType.Switch
16881
17083
  ],
16882
- methods: { setMotionTrigger: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
17084
+ methods: {
17085
+ /** Turn on or off activating the accessory when the camera detects motion. */
17086
+ setMotionTrigger: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
16883
17087
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
16884
17088
  enabled: /* @__PURE__ */ zod.z.boolean()
16885
17089
  }), /* @__PURE__ */ zod.z.void(), {
@@ -16998,7 +17202,9 @@ var motionZonesCapability = {
16998
17202
  label: "Motion Zones"
16999
17203
  } },
17000
17204
  methods: {
17205
+ /** The camera's onboard motion zone options and current zone. */
17001
17206
  getOptions: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number() }), MotionZoneOptionsSchema),
17207
+ /** Change the camera's onboard motion zone. */
17002
17208
  setZone: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
17003
17209
  deviceId: /* @__PURE__ */ zod.z.number(),
17004
17210
  patch: MotionZonePatchSchema
@@ -17140,24 +17346,31 @@ var mqttBrokerCapability = {
17140
17346
  kind: "poll"
17141
17347
  },
17142
17348
  methods: {
17349
+ /** List the configured MQTT brokers. */
17143
17350
  listBrokers: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.array(BrokerInfoSchema)),
17351
+ /** The connection details a client needs to connect to one broker. */
17144
17352
  getBrokerConfig: /* @__PURE__ */ require_capability_definition.method(IdInputSchema, BrokerConnectionDetailsSchema, { auth: "admin" }),
17353
+ /** Register an external MQTT broker. */
17145
17354
  addBroker: /* @__PURE__ */ require_capability_definition.method(AddBrokerInputSchema, AddBrokerResultSchema, {
17146
17355
  kind: "mutation",
17147
17356
  auth: "admin"
17148
17357
  }),
17358
+ /** Remove a configured MQTT broker. */
17149
17359
  removeBroker: /* @__PURE__ */ require_capability_definition.method(IdInputSchema, /* @__PURE__ */ zod.z.void(), {
17150
17360
  kind: "mutation",
17151
17361
  auth: "admin"
17152
17362
  }),
17363
+ /** Start the embedded MQTT broker. */
17153
17364
  startEmbeddedBroker: /* @__PURE__ */ require_capability_definition.method(StartEmbeddedInputSchema, StartEmbeddedResultSchema, {
17154
17365
  kind: "mutation",
17155
17366
  auth: "admin"
17156
17367
  }),
17368
+ /** Stop the embedded MQTT broker. */
17157
17369
  stopEmbeddedBroker: /* @__PURE__ */ require_capability_definition.method(IdInputSchema, /* @__PURE__ */ zod.z.void(), {
17158
17370
  kind: "mutation",
17159
17371
  auth: "admin"
17160
17372
  }),
17373
+ /** The status of the broker registry. */
17161
17374
  getStatus: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), StatusSchema)
17162
17375
  },
17163
17376
  vocabulary: { notOperatorFacing: require_system_reasons.NOT_A_DEVICE.NETWORK }
@@ -17257,7 +17470,9 @@ var nativeObjectDetectionCapability = {
17257
17470
  mode: "singleton",
17258
17471
  deviceTypes: [require_device_type.DeviceType.Camera],
17259
17472
  methods: {
17473
+ /** The object classes the camera's onboard detection supports and its current settings. */
17260
17474
  getOptions: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number() }), NativeObjectDetectionOptionsSchema),
17475
+ /** Change the camera's onboard object detection settings. */
17261
17476
  setSettings: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
17262
17477
  deviceId: /* @__PURE__ */ zod.z.number(),
17263
17478
  settings: NativeObjectDetectionSettingsPatchSchema
@@ -17265,6 +17480,7 @@ var nativeObjectDetectionCapability = {
17265
17480
  kind: "mutation",
17266
17481
  auth: "admin"
17267
17482
  }),
17483
+ /** Turn the camera's onboard object detection on or off. */
17268
17484
  setEnabled: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
17269
17485
  deviceId: /* @__PURE__ */ zod.z.number(),
17270
17486
  enabled: /* @__PURE__ */ zod.z.boolean()
@@ -18007,8 +18223,11 @@ var networkQualityCapability = {
18007
18223
  scope: "system",
18008
18224
  mode: "singleton",
18009
18225
  methods: {
18226
+ /** Latency, jitter and bandwidth measured for one device; null when unknown. */
18010
18227
  getDeviceStats: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number() }), /* @__PURE__ */ DeviceNetworkStatsSchema.nullable()),
18228
+ /** Latency, jitter and bandwidth measured for every device. */
18011
18229
  getAllStats: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.array(DeviceNetworkStatsSchema).readonly()),
18230
+ /** Report a client's measured latency, jitter, bandwidth and packet loss for a device. */
18012
18231
  reportClientStats: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
18013
18232
  deviceId: /* @__PURE__ */ zod.z.number(),
18014
18233
  rttMs: /* @__PURE__ */ zod.z.number().min(0).max(6e4),
@@ -18393,6 +18612,7 @@ var nodesCapability = {
18393
18612
  mode: "singleton",
18394
18613
  nodeIdMode: "data",
18395
18614
  methods: {
18615
+ /** List every node in the cluster with its state, resources and processes. */
18396
18616
  topology: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.array(TopologyNodeSchema).readonly(), { auth: "admin" }),
18397
18617
  /**
18398
18618
  * The cheap node list for pickers (D637): the hub's in-memory registry plus
@@ -18400,18 +18620,22 @@ var nodesCapability = {
18400
18620
  * history could not be read.
18401
18621
  */
18402
18622
  directory: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), NodeDirectorySchema, { auth: "admin" }),
18623
+ /** Deploy an addon onto a node. */
18403
18624
  deployAddon: /* @__PURE__ */ require_capability_definition.method(NodeAddonInputSchema, SuccessSchema, {
18404
18625
  kind: "mutation",
18405
18626
  auth: "admin"
18406
18627
  }),
18628
+ /** Remove an addon from a node. */
18407
18629
  undeployAddon: /* @__PURE__ */ require_capability_definition.method(NodeAddonInputSchema, SuccessSchema, {
18408
18630
  kind: "mutation",
18409
18631
  auth: "admin"
18410
18632
  }),
18633
+ /** Restart one addon on a node. */
18411
18634
  restartAddon: /* @__PURE__ */ require_capability_definition.method(NodeAddonInputSchema, SuccessSchema, {
18412
18635
  kind: "mutation",
18413
18636
  auth: "admin"
18414
18637
  }),
18638
+ /** Restart one named process on a node. */
18415
18639
  restartProcess: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
18416
18640
  nodeId: /* @__PURE__ */ zod.z.string(),
18417
18641
  processName: /* @__PURE__ */ zod.z.string()
@@ -18419,14 +18643,17 @@ var nodesCapability = {
18419
18643
  kind: "mutation",
18420
18644
  auth: "admin"
18421
18645
  }),
18646
+ /** Restart a whole node. */
18422
18647
  restartNode: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ nodeId: /* @__PURE__ */ zod.z.string() }), RestartNodeResultSchema, {
18423
18648
  kind: "mutation",
18424
18649
  auth: "admin"
18425
18650
  }),
18651
+ /** Shut a node down. */
18426
18652
  shutdownNode: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ nodeId: /* @__PURE__ */ zod.z.string() }), SuccessSchema, {
18427
18653
  kind: "mutation",
18428
18654
  auth: "admin"
18429
18655
  }),
18656
+ /** Change a node's display name. */
18430
18657
  renameNode: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
18431
18658
  nodeId: /* @__PURE__ */ zod.z.string(),
18432
18659
  name: /* @__PURE__ */ zod.z.string().min(1).max(64)
@@ -18434,7 +18661,9 @@ var nodesCapability = {
18434
18661
  kind: "mutation",
18435
18662
  auth: "admin"
18436
18663
  }),
18664
+ /** Per-addon status across the cluster. */
18437
18665
  clusterAddonStatus: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.record(/* @__PURE__ */ zod.z.string(), ClusterAddonStatusEntrySchema), { auth: "admin" }),
18666
+ /** Which capabilities call which others over the last window, as a graph of edges. */
18438
18667
  getCapUsageGraph: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ windowSeconds: /* @__PURE__ */ zod.z.number().int().positive().max(300).default(60) }), /* @__PURE__ */ zod.z.array(CapUsageEdgeSchema).readonly(), { auth: "admin" }),
18439
18668
  /**
18440
18669
  * Direct per-node addon listing — calls `$agent.status` on the target
@@ -18445,6 +18674,7 @@ var nodesCapability = {
18445
18674
  * is the one the per-node "Addons" tab should call.
18446
18675
  */
18447
18676
  getNodeAddons: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ nodeId: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.array(NodeAddonEntrySchema).readonly(), { auth: "admin" }),
18677
+ /** Change the log level of a process on a node. */
18448
18678
  setProcessLogLevel: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
18449
18679
  nodeId: /* @__PURE__ */ zod.z.string(),
18450
18680
  level: /* @__PURE__ */ zod.z.string()
@@ -18452,6 +18682,7 @@ var nodesCapability = {
18452
18682
  kind: "mutation",
18453
18683
  auth: "admin"
18454
18684
  }),
18685
+ /** Run a named query of an addon on a specific node and return its result. */
18455
18686
  executeQuery: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
18456
18687
  nodeId: /* @__PURE__ */ zod.z.string(),
18457
18688
  addonId: /* @__PURE__ */ zod.z.string(),
@@ -18567,6 +18798,7 @@ var notifierCapability = {
18567
18798
  mode: "singleton",
18568
18799
  deviceTypes: [require_device_type.DeviceType.Notifier],
18569
18800
  methods: {
18801
+ /** Send a notification through this notifier. */
18570
18802
  send: /* @__PURE__ */ require_capability_definition.method(NotifierSendInputSchema, NotifierSendResultSchema, {
18571
18803
  kind: "mutation",
18572
18804
  auth: "admin",
@@ -18616,6 +18848,7 @@ var notifierCapability = {
18616
18848
  ]
18617
18849
  }]
18618
18850
  }),
18851
+ /** Cancel a notification that was sent earlier. */
18619
18852
  cancel: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
18620
18853
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
18621
18854
  notificationId: /* @__PURE__ */ zod.z.string().min(1)
@@ -21047,6 +21280,7 @@ var pipelineOrchestratorCapability = {
21047
21280
  kind: "mutation",
21048
21281
  auth: "admin"
21049
21282
  }),
21283
+ /** Resume pipeline work that was paused for a storage migration. */
21050
21284
  resumeForStorageMigration: /* @__PURE__ */ require_capability_definition.method(require_relocate.StorageMigrationLeaseInputSchema, /* @__PURE__ */ zod.z.object({ resumed: /* @__PURE__ */ zod.z.literal(true) }), {
21051
21285
  kind: "mutation",
21052
21286
  auth: "admin"
@@ -21641,6 +21875,8 @@ var pipelineOrchestratorCapability = {
21641
21875
  agentNodeId: /* @__PURE__ */ zod.z.string().optional()
21642
21876
  }), CameraPipelineConfigSchema),
21643
21877
  /**
21878
+ * The per-camera function switches and whether each is on.
21879
+ *
21644
21880
  * @deprecated The aggregate switch group is being withdrawn
21645
21881
  * ([D113](../../../../docs/decisions/adr-0113.md)). Build nothing new on
21646
21882
  * this pair; read the authority directly.
@@ -21671,6 +21907,8 @@ var pipelineOrchestratorCapability = {
21671
21907
  */
21672
21908
  getCameraSwitches: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number() }), require_device_identifiers.CameraSwitchGroupSchema, { role: "viewer" }),
21673
21909
  /**
21910
+ * Turn one of a camera's function switches on or off.
21911
+ *
21674
21912
  * @deprecated See {@link getCameraSwitches}. Write the authority — the
21675
21913
  * wrapper binding, `RecordingConfig.enabled`, the notification mute — not
21676
21914
  * this ([D113](../../../../docs/decisions/adr-0113.md)).
@@ -21862,6 +22100,7 @@ var plateGalleryCapability = {
21862
22100
  scope: "system",
21863
22101
  mode: "singleton",
21864
22102
  methods: {
22103
+ /** List recognised license plates, optionally for one camera, newest first. */
21865
22104
  listPlates: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
21866
22105
  deviceId: /* @__PURE__ */ zod.z.number().int().optional(),
21867
22106
  limit: /* @__PURE__ */ zod.z.number().int().positive().optional(),
@@ -21884,10 +22123,12 @@ var plateGalleryCapability = {
21884
22123
  */
21885
22124
  includeCrops: /* @__PURE__ */ zod.z.boolean().optional()
21886
22125
  }).optional(), /* @__PURE__ */ zod.z.array(PlateInfoSchema).readonly()),
22126
+ /** The plate read for a camera's track; null when none. */
21887
22127
  getPlateByTrack: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
21888
22128
  deviceId: /* @__PURE__ */ zod.z.number().int(),
21889
22129
  trackId: /* @__PURE__ */ zod.z.string()
21890
22130
  }), /* @__PURE__ */ PlateInfoSchema.nullable(), { role: "viewer" }),
22131
+ /** The media files (crops, frames) stored for one plate. */
21891
22132
  getPlateMedia: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ plateId: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.array(MediaFileLiteSchema).readonly()),
21892
22133
  /** Proximity search: plates whose folded text is within `maxDistance` edits of `text`. */
21893
22134
  searchPlates: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
@@ -21911,10 +22152,12 @@ var plateGalleryCapability = {
21911
22152
  kind: "mutation",
21912
22153
  auth: "admin"
21913
22154
  }),
22155
+ /** Delete one recognised plate and its media. */
21914
22156
  deletePlate: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ plateId: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.void(), {
21915
22157
  kind: "mutation",
21916
22158
  auth: "admin"
21917
22159
  }),
22160
+ /** List the vehicles (named groups of plates) in the gallery. */
21918
22161
  listVehicles: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
21919
22162
  /** Inline {@link VehicleSchema.coverBase64} on every row. Default
21920
22163
  * `false` — the vehicle twin of `faceGallery.listIdentities`'s
@@ -21922,10 +22165,12 @@ var plateGalleryCapability = {
21922
22165
  * INPUT field: stripped by the hub router until the train ships, which
21923
22166
  * resolves to `false` and is exactly the intended default. */
21924
22167
  includeCrops: /* @__PURE__ */ zod.z.boolean().optional() }).optional(), /* @__PURE__ */ zod.z.array(VehicleSchema).readonly()),
22168
+ /** Create a named vehicle. */
21925
22169
  createVehicle: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ name: /* @__PURE__ */ zod.z.string().min(1) }), VehicleSchema, {
21926
22170
  kind: "mutation",
21927
22171
  auth: "admin"
21928
22172
  }),
22173
+ /** Rename a vehicle. */
21929
22174
  renameVehicle: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
21930
22175
  id: /* @__PURE__ */ zod.z.string(),
21931
22176
  name: /* @__PURE__ */ zod.z.string().min(1)
@@ -21933,11 +22178,14 @@ includeCrops: /* @__PURE__ */ zod.z.boolean().optional() }).optional(), /* @__PU
21933
22178
  kind: "mutation",
21934
22179
  auth: "admin"
21935
22180
  }),
22181
+ /** Delete a vehicle. */
21936
22182
  deleteVehicle: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ id: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.void(), {
21937
22183
  kind: "mutation",
21938
22184
  auth: "admin"
21939
22185
  }),
22186
+ /** List the plate samples assigned to a vehicle. */
21940
22187
  listVehicleSamples: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ vehicleId: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.array(VehicleSampleInfoSchema).readonly()),
22188
+ /** Remove one plate sample from a vehicle. */
21941
22189
  removeVehicleSample: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
21942
22190
  vehicleId: /* @__PURE__ */ zod.z.string(),
21943
22191
  sampleId: /* @__PURE__ */ zod.z.string()
@@ -21957,6 +22205,7 @@ includeCrops: /* @__PURE__ */ zod.z.boolean().optional() }).optional(), /* @__PU
21957
22205
  kind: "mutation",
21958
22206
  auth: "admin"
21959
22207
  }),
22208
+ /** Assign a recognised plate to a vehicle. */
21960
22209
  assignPlate: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
21961
22210
  plateId: /* @__PURE__ */ zod.z.string(),
21962
22211
  vehicleId: /* @__PURE__ */ zod.z.string()
@@ -21964,10 +22213,12 @@ includeCrops: /* @__PURE__ */ zod.z.boolean().optional() }).optional(), /* @__PU
21964
22213
  kind: "mutation",
21965
22214
  auth: "admin"
21966
22215
  }),
22216
+ /** Detach a recognised plate from its vehicle. */
21967
22217
  unassignPlate: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ plateId: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.void(), {
21968
22218
  kind: "mutation",
21969
22219
  auth: "admin"
21970
22220
  }),
22221
+ /** Assign several plates to a vehicle; reports how many succeeded and which failed. */
21971
22222
  assignPlates: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
21972
22223
  plateIds: /* @__PURE__ */ zod.z.array(/* @__PURE__ */ zod.z.string()).min(1),
21973
22224
  vehicleId: /* @__PURE__ */ zod.z.string()
@@ -21978,6 +22229,7 @@ includeCrops: /* @__PURE__ */ zod.z.boolean().optional() }).optional(), /* @__PU
21978
22229
  kind: "mutation",
21979
22230
  auth: "admin"
21980
22231
  }),
22232
+ /** Detach several plates from their vehicles; reports how many succeeded and which failed. */
21981
22233
  unassignPlates: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ plateIds: /* @__PURE__ */ zod.z.array(/* @__PURE__ */ zod.z.string()).min(1) }), /* @__PURE__ */ zod.z.object({
21982
22234
  unassigned: /* @__PURE__ */ zod.z.number().int(),
21983
22235
  failed: /* @__PURE__ */ zod.z.array(/* @__PURE__ */ zod.z.string()).readonly()
@@ -22470,7 +22722,9 @@ var privacyMaskCapability = {
22470
22722
  label: "Privacy Mask"
22471
22723
  } },
22472
22724
  methods: {
22725
+ /** The camera's privacy mask options and current mask. */
22473
22726
  getOptions: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number() }), PrivacyMaskOptionsSchema),
22727
+ /** Change the camera's privacy mask. */
22474
22728
  setMask: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
22475
22729
  deviceId: /* @__PURE__ */ zod.z.number(),
22476
22730
  patch: PrivacyMaskPatchSchema
@@ -22765,10 +23019,12 @@ var ptzCapability = {
22765
23019
  order: 0
22766
23020
  } },
22767
23021
  methods: {
23022
+ /** Nudge the camera by a relative pan, tilt or zoom step. */
22768
23023
  move: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ PtzMoveCommandSchema.extend({ deviceId: /* @__PURE__ */ zod.z.number() }), /* @__PURE__ */ zod.z.void(), {
22769
23024
  kind: "mutation",
22770
23025
  notOperatorFacing: "a relative nudge from the live-view joystick; a fixed place is a preset"
22771
23026
  }),
23027
+ /** Move the camera continuously until stopped. */
22772
23028
  continuousMove: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ PtzMoveCommandSchema.extend({ deviceId: /* @__PURE__ */ zod.z.number() }), /* @__PURE__ */ zod.z.void(), {
22773
23029
  kind: "mutation",
22774
23030
  notOperatorFacing: "joystick motion held until released — continuous, not a discrete step"
@@ -22787,7 +23043,9 @@ var ptzCapability = {
22787
23043
  icon: "house"
22788
23044
  }]
22789
23045
  }),
23046
+ /** List the camera's PTZ presets. */
22790
23047
  getPresets: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number() }), /* @__PURE__ */ zod.z.array(PtzPresetSchema)),
23048
+ /** Move the camera to a preset. */
22791
23049
  goToPreset: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
22792
23050
  deviceId: /* @__PURE__ */ zod.z.number(),
22793
23051
  presetId: /* @__PURE__ */ zod.z.string()
@@ -22811,6 +23069,7 @@ var ptzCapability = {
22811
23069
  }]
22812
23070
  }]
22813
23071
  }),
23072
+ /** Save the camera's current position as a named preset. */
22814
23073
  savePreset: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
22815
23074
  deviceId: /* @__PURE__ */ zod.z.number(),
22816
23075
  presetId: /* @__PURE__ */ zod.z.string(),
@@ -22840,6 +23099,7 @@ var ptzCapability = {
22840
23099
  }]
22841
23100
  }]
22842
23101
  }),
23102
+ /** Delete a PTZ preset. */
22843
23103
  deletePreset: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
22844
23104
  deviceId: /* @__PURE__ */ zod.z.number(),
22845
23105
  presetId: /* @__PURE__ */ zod.z.string()
@@ -22847,7 +23107,9 @@ var ptzCapability = {
22847
23107
  kind: "mutation",
22848
23108
  auth: "admin"
22849
23109
  }),
23110
+ /** What the camera's PTZ supports (axes, speeds, presets). */
22850
23111
  getOptions: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number() }), PtzOptionsSchema),
23112
+ /** Stop any PTZ movement. */
22851
23113
  stop: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number() }), /* @__PURE__ */ zod.z.void(), {
22852
23114
  kind: "mutation",
22853
23115
  actions: [{
@@ -23177,7 +23439,9 @@ var rebootCapability = {
23177
23439
  require_device_type.DeviceType.Switch,
23178
23440
  require_device_type.DeviceType.Gateway
23179
23441
  ],
23180
- methods: { reboot: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() }), /* @__PURE__ */ zod.z.object({ success: /* @__PURE__ */ zod.z.literal(true) }), {
23442
+ methods: {
23443
+ /** Reboot the device. */
23444
+ reboot: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() }), /* @__PURE__ */ zod.z.object({ success: /* @__PURE__ */ zod.z.literal(true) }), {
23181
23445
  kind: "mutation",
23182
23446
  auth: "admin",
23183
23447
  actions: [{
@@ -23695,6 +23959,7 @@ var videoclipsCapability = {
23695
23959
  order: 100
23696
23960
  } },
23697
23961
  methods: {
23962
+ /** List a camera's clips in a time window, from every clip source. */
23698
23963
  listClips: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
23699
23964
  deviceId: /* @__PURE__ */ zod.z.number(),
23700
23965
  since: /* @__PURE__ */ zod.z.number(),
@@ -23753,6 +24018,7 @@ var videoclipsCapability = {
23753
24018
  kind: "query",
23754
24019
  auth: "protected"
23755
24020
  }),
24021
+ /** How to play one clip, at the requested quality. */
23756
24022
  getClipPlayback: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
23757
24023
  deviceId: /* @__PURE__ */ zod.z.number(),
23758
24024
  clipId: /* @__PURE__ */ zod.z.string(),
@@ -24371,6 +24637,7 @@ var recordingExportCapability = {
24371
24637
  kind: "query",
24372
24638
  auth: "protected"
24373
24639
  }),
24640
+ /** Fetch one footage export and its state. */
24374
24641
  getExport: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ exportId: /* @__PURE__ */ zod.z.string() }), ExportRecordSchema, {
24375
24642
  role: "viewer",
24376
24643
  kind: "query",
@@ -24388,6 +24655,7 @@ var recordingExportCapability = {
24388
24655
  kind: "mutation",
24389
24656
  auth: "protected"
24390
24657
  }),
24658
+ /** A download link for a finished export. */
24391
24659
  getDownloadUrl: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ exportId: /* @__PURE__ */ zod.z.string() }), ExportDownloadSchema, {
24392
24660
  role: "viewer",
24393
24661
  kind: "query",
@@ -24755,7 +25023,9 @@ var recordingOnboardCapability = {
24755
25023
  tab: "recording"
24756
25024
  } },
24757
25025
  methods: {
25026
+ /** The camera's onboard recording options and current settings. */
24758
25027
  getOptions: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number() }), RecordingOnboardOptionsSchema),
25028
+ /** Change the camera's onboard recording settings. */
24759
25029
  setSettings: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
24760
25030
  deviceId: /* @__PURE__ */ zod.z.number(),
24761
25031
  settings: RecordingOnboardPatchSchema
@@ -25406,12 +25676,16 @@ var remoteCapability = {
25406
25676
  scope: "system",
25407
25677
  mode: "singleton",
25408
25678
  methods: {
25679
+ /** The remote-control button layout bound to a device. */
25409
25680
  getConfig: /* @__PURE__ */ require_capability_definition.method(deviceInput, RemoteConfigSchema, { auth: "admin" }),
25681
+ /** Save the remote-control button layout of a device. */
25410
25682
  setConfig: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ deviceInput.extend({ config: RemoteConfigSchema }), RemoteSetConfigResultSchema, {
25411
25683
  kind: "mutation",
25412
25684
  auth: "admin"
25413
25685
  }),
25686
+ /** List the commands a device's remote can send. */
25414
25687
  listCommands: /* @__PURE__ */ require_capability_definition.method(deviceInput, RemoteCommandListSchema, { auth: "protected" }),
25688
+ /** Send a remote button role to the device, optionally repeated. */
25415
25689
  sendCommand: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ deviceInput.extend({
25416
25690
  role: require_core_blocks_cap.RemoteRoleSchema,
25417
25691
  /** Sends in a row (volume steps). */
@@ -25432,6 +25706,7 @@ var remoteCapability = {
25432
25706
  * media-player status's own composition (D967 amendment).
25433
25707
  */
25434
25708
  getAssumedStatus: /* @__PURE__ */ require_capability_definition.method(deviceInput, /* @__PURE__ */ require_core_blocks_cap.MediaPlayerStatusSchema.nullable(), { auth: "protected" }),
25709
+ /** Send a media command (play, pause, volume, source, channel) to the device's remote. */
25435
25710
  sendMediaCommand: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ deviceInput.extend({
25436
25711
  command: RemoteMediaCommandSchema,
25437
25712
  muted: /* @__PURE__ */ zod.z.boolean().optional(),
@@ -25550,7 +25825,9 @@ var remoteLayoutComponentsCapability = {
25550
25825
  name: "remote-layout-components",
25551
25826
  scope: "system",
25552
25827
  mode: "collection",
25553
- methods: { listComponents: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({}), /* @__PURE__ */ zod.z.array(RemoteLayoutComponentSchema), { auth: "protected" }) },
25828
+ methods: {
25829
+ /** List the components offered by the remote layout editor's palette. */
25830
+ listComponents: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({}), /* @__PURE__ */ zod.z.array(RemoteLayoutComponentSchema), { auth: "protected" }) },
25554
25831
  vocabulary: { notOperatorFacing: "the palette of the remote template editor — read-only data, never actuated" }
25555
25832
  };
25556
25833
  //#endregion
@@ -25581,7 +25858,9 @@ var resyncCapability = {
25581
25858
  require_device_type.DeviceType.Workload,
25582
25859
  require_device_type.DeviceType.WeatherStation
25583
25860
  ],
25584
- methods: { resync: /* @__PURE__ */ require_capability_definition.method(ResyncDeviceInputSchema, require_device_manager_cap.ResyncResultSchema, {
25861
+ methods: {
25862
+ /** Re-align a device with its upstream source. */
25863
+ resync: /* @__PURE__ */ require_capability_definition.method(ResyncDeviceInputSchema, require_device_manager_cap.ResyncResultSchema, {
25585
25864
  kind: "mutation",
25586
25865
  auth: "admin",
25587
25866
  notOperatorFacing: "device adoption — re-aligning a device with its source is an onboarding step, not an automation action"
@@ -26060,6 +26339,7 @@ var sceneMonitorCapability = {
26060
26339
  defaultActive: true,
26061
26340
  deviceTypes: [require_device_type.DeviceType.Camera],
26062
26341
  methods: {
26342
+ /** List the camera's scene monitors with their current state. */
26063
26343
  listScenes: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number() }), SceneMonitorStatusSchema),
26064
26344
  /**
26065
26345
  * The same answer, for a SET of cameras, in one round trip.
@@ -26077,6 +26357,7 @@ var sceneMonitorCapability = {
26077
26357
  * tell which two are missing, or that any are.
26078
26358
  */
26079
26359
  listScenesBatch: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceIds: /* @__PURE__ */ zod.z.array(/* @__PURE__ */ zod.z.number()).min(1).max(200) }), /* @__PURE__ */ zod.z.array(SceneMonitorStatusForDeviceSchema).readonly()),
26360
+ /** Create a scene monitor on a region of the camera frame. */
26080
26361
  createScene: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
26081
26362
  deviceId: /* @__PURE__ */ zod.z.number(),
26082
26363
  label: /* @__PURE__ */ zod.z.string(),
@@ -26092,6 +26373,7 @@ var sceneMonitorCapability = {
26092
26373
  kind: "mutation",
26093
26374
  auth: "admin"
26094
26375
  }),
26376
+ /** Change a scene monitor's label, region, trigger or enabled state. */
26095
26377
  updateScene: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
26096
26378
  deviceId: /* @__PURE__ */ zod.z.number(),
26097
26379
  monitorId: /* @__PURE__ */ zod.z.string(),
@@ -26119,6 +26401,7 @@ var sceneMonitorCapability = {
26119
26401
  kind: "mutation",
26120
26402
  auth: "admin"
26121
26403
  }),
26404
+ /** Delete a scene monitor. */
26122
26405
  deleteScene: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
26123
26406
  deviceId: /* @__PURE__ */ zod.z.number(),
26124
26407
  monitorId: /* @__PURE__ */ zod.z.string()
@@ -26126,6 +26409,7 @@ var sceneMonitorCapability = {
26126
26409
  kind: "mutation",
26127
26410
  auth: "admin"
26128
26411
  }),
26412
+ /** Capture a reference image of the region for one of the monitor's states. */
26129
26413
  captureReference: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
26130
26414
  deviceId: /* @__PURE__ */ zod.z.number(),
26131
26415
  monitorId: /* @__PURE__ */ zod.z.string(),
@@ -26139,6 +26423,7 @@ var sceneMonitorCapability = {
26139
26423
  kind: "mutation",
26140
26424
  auth: "admin"
26141
26425
  }),
26426
+ /** Delete one reference image of a state. */
26142
26427
  deleteReference: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
26143
26428
  deviceId: /* @__PURE__ */ zod.z.number(),
26144
26429
  monitorId: /* @__PURE__ */ zod.z.string(),
@@ -26148,6 +26433,7 @@ var sceneMonitorCapability = {
26148
26433
  kind: "mutation",
26149
26434
  auth: "admin"
26150
26435
  }),
26436
+ /** Re-evaluate a scene monitor immediately. */
26151
26437
  recheckNow: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
26152
26438
  deviceId: /* @__PURE__ */ zod.z.number(),
26153
26439
  monitorId: /* @__PURE__ */ zod.z.string()
@@ -26238,8 +26524,11 @@ var schedulersCapability = {
26238
26524
  scope: "system",
26239
26525
  mode: "singleton",
26240
26526
  methods: {
26527
+ /** List the schedulers. */
26241
26528
  list: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({}), /* @__PURE__ */ zod.z.array(require_core_blocks_cap.SchedulerSchema), { auth: "admin" }),
26529
+ /** Fetch one scheduler by id; null when absent. */
26242
26530
  get: /* @__PURE__ */ require_capability_definition.method(SchedulerIdInput, /* @__PURE__ */ zod.z.object({ scheduler: /* @__PURE__ */ require_core_blocks_cap.SchedulerSchema.nullable() }), { auth: "admin" }),
26531
+ /** Create or replace a scheduler. */
26243
26532
  create: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ scheduler: require_core_blocks_cap.SchedulerInputSchema }), /* @__PURE__ */ zod.z.object({ scheduler: require_core_blocks_cap.SchedulerSchema }), {
26244
26533
  kind: "mutation",
26245
26534
  auth: "admin"
@@ -26252,6 +26541,7 @@ var schedulersCapability = {
26252
26541
  kind: "mutation",
26253
26542
  auth: "admin"
26254
26543
  }),
26544
+ /** Delete a scheduler. */
26255
26545
  delete: /* @__PURE__ */ require_capability_definition.method(SchedulerIdInput, /* @__PURE__ */ zod.z.void(), {
26256
26546
  kind: "mutation",
26257
26547
  auth: "admin"
@@ -26287,6 +26577,7 @@ var schedulersCapability = {
26287
26577
  }), /* @__PURE__ */ zod.z.object({ conflicts: /* @__PURE__ */ zod.z.array(require_core_blocks_cap.SchedulerConflictSchema) }), { auth: "admin" }),
26288
26578
  /** Where each scheduler's current hold stands. */
26289
26579
  getStatus: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({}), /* @__PURE__ */ zod.z.array(require_core_blocks_cap.SchedulerStatusSchema), { auth: "admin" }),
26580
+ /** The recent run traces of a scheduler. */
26290
26581
  getTraces: /* @__PURE__ */ require_capability_definition.method(SchedulerIdInput, /* @__PURE__ */ zod.z.object({ traces: /* @__PURE__ */ zod.z.array(require_core_blocks_cap.AutomationRunTraceSchema) }), { auth: "admin" })
26291
26582
  },
26292
26583
  vocabulary: { notOperatorFacing: "time schedulers — authored on their own page, not device actions" }
@@ -26323,6 +26614,7 @@ var scriptRunnerCapability = {
26323
26614
  mode: "singleton",
26324
26615
  deviceTypes: [require_device_type.DeviceType.Script],
26325
26616
  methods: {
26617
+ /** Run the script, optionally with variables. */
26326
26618
  run: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
26327
26619
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
26328
26620
  /** Optional variables map — passed through to the upstream
@@ -26866,11 +27158,14 @@ var serverManagementCapability = {
26866
27158
  scope: "system",
26867
27159
  mode: "singleton",
26868
27160
  methods: {
27161
+ /** The node's running and installed server version and its update state. */
26869
27162
  getServerPackageStatus: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), ServerPackageStatusSchema, { auth: "admin" }),
27163
+ /** Check the registry for a newer server version for this node. */
26870
27164
  checkServerUpdate: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), ServerUpdateCheckResultSchema, {
26871
27165
  kind: "mutation",
26872
27166
  auth: "admin"
26873
27167
  }),
27168
+ /** Install a server version (latest when none is given) on this node and restart it. */
26874
27169
  applyServerUpdate: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
26875
27170
  /** Explicit target version; omitted = latest from the registry. */
26876
27171
  version: /* @__PURE__ */ zod.z.string().optional(),
@@ -26898,6 +27193,7 @@ var serverManagementCapability = {
26898
27193
  kind: "mutation",
26899
27194
  auth: "admin"
26900
27195
  }),
27196
+ /** Return this node to its previously installed server version. */
26901
27197
  rollbackServerUpdate: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), ServerUpdateActionResultSchema, {
26902
27198
  kind: "mutation",
26903
27199
  auth: "admin"
@@ -27269,11 +27565,13 @@ var smtpProviderCapability = {
27269
27565
  internal: true,
27270
27566
  providerKind: "email",
27271
27567
  methods: {
27568
+ /** Send an email through this relay. */
27272
27569
  sendEmail: /* @__PURE__ */ require_capability_definition.method(SendEmailInputSchema, SendEmailResultSchema, {
27273
27570
  kind: "mutation",
27274
27571
  auth: "admin",
27275
27572
  access: "create"
27276
27573
  }),
27574
+ /** The status of one SMTP relay. */
27277
27575
  getStatus: /* @__PURE__ */ require_capability_definition.method(RelayPinSchema, SmtpStatusSchema, { auth: "admin" })
27278
27576
  },
27279
27577
  vocabulary: { notOperatorFacing: require_system_reasons.NOT_A_DEVICE.INTERNAL }
@@ -27438,7 +27736,9 @@ var streamParamsCapability = {
27438
27736
  tab: "streaming"
27439
27737
  } },
27440
27738
  methods: {
27739
+ /** The camera's stream profiles and their encoding options. */
27441
27740
  getOptions: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number() }), StreamParamsOptionsSchema),
27741
+ /** Change the encoding settings of one stream profile. */
27442
27742
  setProfile: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
27443
27743
  deviceId: /* @__PURE__ */ zod.z.number(),
27444
27744
  profile: StreamProfileSchema,
@@ -27669,6 +27969,7 @@ var switchCapability = {
27669
27969
  require_device_type.DeviceType.Fan
27670
27970
  ],
27671
27971
  methods: {
27972
+ /** Turn the switch on or off. */
27672
27973
  setState: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
27673
27974
  deviceId: /* @__PURE__ */ zod.z.number(),
27674
27975
  on: /* @__PURE__ */ zod.z.boolean()
@@ -27699,12 +28000,15 @@ var switchCapability = {
27699
28000
  offeredWhen: SWITCH_SETTABLE_GATE
27700
28001
  }]
27701
28002
  }),
28003
+ /** The options the switch supports. */
27702
28004
  getOptions: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number() }), SwitchOptionsSchema, { auth: "protected" }),
28005
+ /** Power-cycle the device the switch powers. */
27703
28006
  powerCycle: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number() }), /* @__PURE__ */ zod.z.void(), {
27704
28007
  kind: "mutation",
27705
28008
  auth: "protected",
27706
28009
  notOperatorFacing: "a power cycle is the forced restart of the device the switch powers (power-source), never a step of its own"
27707
28010
  }),
28011
+ /** Flip the switch to the opposite state. */
27708
28012
  toggle: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number() }), /* @__PURE__ */ zod.z.void(), {
27709
28013
  kind: "mutation",
27710
28014
  auth: "protected",
@@ -28510,15 +28814,22 @@ var systemCapability = {
28510
28814
  scope: "system",
28511
28815
  mode: "singleton",
28512
28816
  methods: {
28817
+ /** Basic information about the system (version, platform, uptime). */
28513
28818
  info: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), SystemInfoSchema),
28819
+ /** The overall health status of the system. */
28514
28820
  health: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), HealthStatusSchema),
28821
+ /** Which features are enabled in this installation. */
28515
28822
  featureFlags: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), FeatureManifestSchema),
28823
+ /** The network addresses of this hub's interfaces. */
28516
28824
  networkAddresses: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.array(NetworkAddressSchema).readonly()),
28825
+ /** The analytics data retention settings. */
28517
28826
  getRetentionConfig: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.unknown().nullable(), { auth: "admin" }),
28827
+ /** Change the analytics data retention settings. */
28518
28828
  setRetentionConfig: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.record(/* @__PURE__ */ zod.z.string(), /* @__PURE__ */ zod.z.unknown()), /* @__PURE__ */ zod.z.null(), {
28519
28829
  kind: "mutation",
28520
28830
  auth: "admin"
28521
28831
  }),
28832
+ /** Run the retention cleanup now instead of waiting for the schedule. */
28522
28833
  forceRetentionCleanup: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.void(), {
28523
28834
  kind: "mutation",
28524
28835
  auth: "admin"
@@ -29638,8 +29949,11 @@ var templateCapability = {
29638
29949
  scope: "system",
29639
29950
  mode: "collection",
29640
29951
  methods: {
29952
+ /** List the stored templates, optionally of one kind. */
29641
29953
  list: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ kind: /* @__PURE__ */ TemplateKindSchema.optional() }), /* @__PURE__ */ zod.z.array(TemplateRecordSchema), { auth: "protected" }),
29954
+ /** Fetch one template by id; null when absent. */
29642
29955
  get: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ id: /* @__PURE__ */ zod.z.string().min(1) }), /* @__PURE__ */ TemplateRecordSchema.nullable(), { auth: "protected" }),
29956
+ /** Create a template of a given kind with a name and payload. */
29643
29957
  create: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
29644
29958
  kind: TemplateKindSchema,
29645
29959
  name: /* @__PURE__ */ zod.z.string().min(1).max(120),
@@ -29649,6 +29963,7 @@ var templateCapability = {
29649
29963
  kind: "mutation",
29650
29964
  auth: "admin"
29651
29965
  }),
29966
+ /** Change a template's name, payload or tags. */
29652
29967
  update: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
29653
29968
  id: /* @__PURE__ */ zod.z.string().min(1),
29654
29969
  name: /* @__PURE__ */ zod.z.string().min(1).max(120).optional(),
@@ -29658,6 +29973,7 @@ var templateCapability = {
29658
29973
  kind: "mutation",
29659
29974
  auth: "admin"
29660
29975
  }),
29976
+ /** Delete a template. */
29661
29977
  delete: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ id: /* @__PURE__ */ zod.z.string().min(1) }), TemplateDeleteResultSchema, {
29662
29978
  kind: "mutation",
29663
29979
  auth: "admin"
@@ -29859,7 +30175,9 @@ var toastCapability = {
29859
30175
  name: "toast",
29860
30176
  scope: "system",
29861
30177
  mode: "singleton",
29862
- methods: { onToast: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), ToastSchema, { kind: "subscription" }) },
30178
+ methods: {
30179
+ /** Stream toast notifications from the hub to the admin UI. */
30180
+ onToast: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), ToastSchema, { kind: "subscription" }) },
29863
30181
  /** BIG PLAN 2: declarative mount hint — read by `@camstack/server/system` `buildCapRouters`. */
29864
30182
  mount: { kind: "server-provided" },
29865
30183
  vocabulary: { notOperatorFacing: require_system_reasons.NOT_A_DEVICE.UI_PLUMBING }
@@ -30079,6 +30397,7 @@ var trainingProviderCapability = {
30079
30397
  auth: "admin",
30080
30398
  timeoutMs: 30 * 6e4
30081
30399
  }),
30400
+ /** The status of a training job on the cloud provider. */
30082
30401
  getJob: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object(JobRef), ProviderJobStatusSchema, {
30083
30402
  auth: "admin",
30084
30403
  timeoutMs: 6e4
@@ -30382,6 +30701,7 @@ var trainingCapability = {
30382
30701
  mode: "singleton",
30383
30702
  mount: { kind: "hub-only" },
30384
30703
  methods: {
30704
+ /** List the base models a training job can start from. */
30385
30705
  listBaseModels: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({}), /* @__PURE__ */ zod.z.array(TrainingBaseModelSchema).readonly(), { auth: "admin" }),
30386
30706
  /** Split, estimate, defaults and any named refusal — nothing is started. */
30387
30707
  planJob: /* @__PURE__ */ require_capability_definition.method(TrainingJobRequestSchema, TrainingJobPlanSchema, {
@@ -30436,8 +30756,11 @@ var trainingCapability = {
30436
30756
  auth: "admin",
30437
30757
  timeoutMs: 12e4
30438
30758
  }),
30759
+ /** List the training jobs. */
30439
30760
  listJobs: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({}), /* @__PURE__ */ zod.z.array(TrainingJobSchema).readonly(), { auth: "admin" }),
30761
+ /** Fetch one training job; null when unknown. */
30440
30762
  getJob: /* @__PURE__ */ require_capability_definition.method(IdInput, /* @__PURE__ */ TrainingJobSchema.nullable(), { auth: "admin" }),
30763
+ /** Cancel a training job. */
30441
30764
  cancelJob: /* @__PURE__ */ require_capability_definition.method(IdInput, TrainingJobSchema, {
30442
30765
  kind: "mutation",
30443
30766
  auth: "admin",
@@ -30540,7 +30863,9 @@ var updateCapability = {
30540
30863
  deviceNative: true,
30541
30864
  mode: "singleton",
30542
30865
  deviceTypes: [require_device_type.DeviceType.Update],
30543
- methods: { installUpdate: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.void(), {
30866
+ methods: {
30867
+ /** Install the available update. */
30868
+ installUpdate: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.void(), {
30544
30869
  kind: "mutation",
30545
30870
  auth: "admin",
30546
30871
  actions: [{
@@ -30654,6 +30979,7 @@ var userPasskeysCapability = {
30654
30979
  mode: "collection",
30655
30980
  internal: true,
30656
30981
  methods: {
30982
+ /** Start enrolling a passkey for a user and return the WebAuthn creation options for the browser. */
30657
30983
  beginRegistration: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
30658
30984
  userId: /* @__PURE__ */ zod.z.string(),
30659
30985
  username: /* @__PURE__ */ zod.z.string()
@@ -30662,6 +30988,7 @@ var userPasskeysCapability = {
30662
30988
  auth: "admin",
30663
30989
  access: "create"
30664
30990
  }),
30991
+ /** Verify the browser's registration response and store the new passkey under a label. */
30665
30992
  finishRegistration: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
30666
30993
  userId: /* @__PURE__ */ zod.z.string(),
30667
30994
  /** RegistrationResponseJSON from the browser. */
@@ -30699,6 +31026,7 @@ var userPasskeysCapability = {
30699
31026
  access: "view",
30700
31027
  auth: "admin"
30701
31028
  }),
31029
+ /** Verify a passkey sign-in assertion for a known user. */
30702
31030
  finishAuthentication: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
30703
31031
  /** Required — the user the assertion belongs to (verified). */
30704
31032
  userId: /* @__PURE__ */ zod.z.string(),
@@ -30709,11 +31037,13 @@ var userPasskeysCapability = {
30709
31037
  access: "view",
30710
31038
  auth: "admin"
30711
31039
  }),
31040
+ /** Start a passkey sign-in without naming the user and return the WebAuthn request options. */
30712
31041
  beginDiscoverableAuthentication: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({}), /* @__PURE__ */ zod.z.object({ optionsJSON: /* @__PURE__ */ zod.z.record(/* @__PURE__ */ zod.z.string(), /* @__PURE__ */ zod.z.unknown()) }), {
30713
31042
  kind: "mutation",
30714
31043
  access: "view",
30715
31044
  auth: "admin"
30716
31045
  }),
31046
+ /** Verify a discoverable passkey assertion and identify the user who owns the credential. */
30717
31047
  finishDiscoverableAuthentication: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
30718
31048
  /** AuthenticationResponseJSON from the browser. */
30719
31049
  response: /* @__PURE__ */ zod.z.record(/* @__PURE__ */ zod.z.string(), /* @__PURE__ */ zod.z.unknown()) }), /* @__PURE__ */ zod.z.object({
@@ -30724,7 +31054,9 @@ response: /* @__PURE__ */ zod.z.record(/* @__PURE__ */ zod.z.string(), /* @__PUR
30724
31054
  access: "view",
30725
31055
  auth: "admin"
30726
31056
  }),
31057
+ /** List the passkeys enrolled by a user. */
30727
31058
  listPasskeys: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ userId: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.array(PasskeySummarySchema), { auth: "admin" }),
31059
+ /** Remove one enrolled passkey from a user. */
30728
31060
  removePasskey: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
30729
31061
  userId: /* @__PURE__ */ zod.z.string(),
30730
31062
  credentialId: /* @__PURE__ */ zod.z.string()
@@ -30733,7 +31065,9 @@ response: /* @__PURE__ */ zod.z.record(/* @__PURE__ */ zod.z.string(), /* @__PUR
30733
31065
  auth: "admin",
30734
31066
  access: "delete"
30735
31067
  }),
31068
+ /** Whether a user requires a second factor at sign-in. */
30736
31069
  getSecondFactorPreference: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ userId: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.object({ enabled: /* @__PURE__ */ zod.z.boolean() }), { auth: "admin" }),
31070
+ /** Turn the second-factor requirement on or off for a user. */
30737
31071
  setSecondFactorPreference: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
30738
31072
  userId: /* @__PURE__ */ zod.z.string(),
30739
31073
  enabled: /* @__PURE__ */ zod.z.boolean()
@@ -30803,6 +31137,7 @@ var vacuumControlCapability = {
30803
31137
  mode: "singleton",
30804
31138
  deviceTypes: [require_device_type.DeviceType.Vacuum],
30805
31139
  methods: {
31140
+ /** Start a cleaning run. */
30806
31141
  start: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() }), /* @__PURE__ */ zod.z.void(), {
30807
31142
  kind: "mutation",
30808
31143
  auth: "protected",
@@ -30813,6 +31148,7 @@ var vacuumControlCapability = {
30813
31148
  icon: "play"
30814
31149
  }]
30815
31150
  }),
31151
+ /** Pause the cleaning run. */
30816
31152
  pause: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() }), /* @__PURE__ */ zod.z.void(), {
30817
31153
  kind: "mutation",
30818
31154
  auth: "protected",
@@ -30823,6 +31159,7 @@ var vacuumControlCapability = {
30823
31159
  icon: "pause"
30824
31160
  }]
30825
31161
  }),
31162
+ /** Stop the cleaning run. */
30826
31163
  stop: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() }), /* @__PURE__ */ zod.z.void(), {
30827
31164
  kind: "mutation",
30828
31165
  auth: "protected",
@@ -30833,6 +31170,7 @@ var vacuumControlCapability = {
30833
31170
  icon: "square"
30834
31171
  }]
30835
31172
  }),
31173
+ /** Send the vacuum back to its dock. */
30836
31174
  returnToBase: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() }), /* @__PURE__ */ zod.z.void(), {
30837
31175
  kind: "mutation",
30838
31176
  auth: "protected",
@@ -30843,6 +31181,7 @@ var vacuumControlCapability = {
30843
31181
  icon: "house"
30844
31182
  }]
30845
31183
  }),
31184
+ /** Make the vacuum beep so it can be found. */
30846
31185
  locate: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() }), /* @__PURE__ */ zod.z.void(), {
30847
31186
  kind: "mutation",
30848
31187
  auth: "protected",
@@ -30853,6 +31192,7 @@ var vacuumControlCapability = {
30853
31192
  icon: "map-pin"
30854
31193
  }]
30855
31194
  }),
31195
+ /** Set the suction (fan speed) level. */
30856
31196
  setFanSpeed: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
30857
31197
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
30858
31198
  speed: /* @__PURE__ */ zod.z.string().min(1)
@@ -30995,6 +31335,7 @@ var valveCapability = {
30995
31335
  mode: "singleton",
30996
31336
  deviceTypes: [require_device_type.DeviceType.Valve],
30997
31337
  methods: {
31338
+ /** Open the valve. */
30998
31339
  open: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() }), /* @__PURE__ */ zod.z.void(), {
30999
31340
  kind: "mutation",
31000
31341
  auth: "protected",
@@ -31009,6 +31350,7 @@ var valveCapability = {
31009
31350
  }
31010
31351
  }]
31011
31352
  }),
31353
+ /** Close the valve. */
31012
31354
  close: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() }), /* @__PURE__ */ zod.z.void(), {
31013
31355
  kind: "mutation",
31014
31356
  auth: "protected",
@@ -31023,6 +31365,7 @@ var valveCapability = {
31023
31365
  }
31024
31366
  }]
31025
31367
  }),
31368
+ /** Stop the valve where it is. */
31026
31369
  stop: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() }), /* @__PURE__ */ zod.z.void(), {
31027
31370
  kind: "mutation",
31028
31371
  auth: "protected",
@@ -31033,6 +31376,7 @@ var valveCapability = {
31033
31376
  icon: "square"
31034
31377
  }]
31035
31378
  }),
31379
+ /** Set the valve opening from 0 to 100. */
31036
31380
  setPosition: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.object({
31037
31381
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
31038
31382
  position: /* @__PURE__ */ zod.z.number().min(0).max(100)
@@ -31214,6 +31558,7 @@ var viewerUiCapability = {
31214
31558
  * user from loading the app.
31215
31559
  */
31216
31560
  getStaticDir: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), StaticDirOutputSchema, { auth: "admin" }),
31561
+ /** The version of the viewer web build served by the hub. */
31217
31562
  getVersion: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), VersionOutputSchema, { auth: "admin" })
31218
31563
  },
31219
31564
  vocabulary: { notOperatorFacing: require_system_reasons.NOT_A_DEVICE.UI_PLUMBING }
@@ -31274,6 +31619,7 @@ var waterHeaterCapability = {
31274
31619
  lastField: "lastActiveMode"
31275
31620
  },
31276
31621
  methods: {
31622
+ /** Set the water heater operation mode. */
31277
31623
  setOperationMode: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
31278
31624
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
31279
31625
  mode: /* @__PURE__ */ zod.z.string().min(1)
@@ -31310,6 +31656,7 @@ var waterHeaterCapability = {
31310
31656
  }]
31311
31657
  }]
31312
31658
  }),
31659
+ /** Turn away mode on or off. */
31313
31660
  setAway: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
31314
31661
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
31315
31662
  on: /* @__PURE__ */ zod.z.boolean()
@@ -31338,6 +31685,7 @@ var waterHeaterCapability = {
31338
31685
  args: { on: false }
31339
31686
  }]
31340
31687
  }),
31688
+ /** Set the target water temperature. */
31341
31689
  setTargetTemp: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
31342
31690
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
31343
31691
  temp: /* @__PURE__ */ zod.z.number().finite()
@@ -32266,6 +32614,7 @@ var webrtcSessionCapability = {
32266
32614
  kind: "mutation",
32267
32615
  notOperatorFacing: "live-stream session plumbing driven by a viewer, never a discrete step"
32268
32616
  }),
32617
+ /** Pass the viewer's SDP answer to an open WebRTC session. */
32269
32618
  handleAnswer: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
32270
32619
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
32271
32620
  sessionId: /* @__PURE__ */ zod.z.string(),
@@ -32309,6 +32658,7 @@ var webrtcSessionCapability = {
32309
32658
  })),
32310
32659
  done: /* @__PURE__ */ zod.z.boolean()
32311
32660
  }), { kind: "query" }),
32661
+ /** Close a WebRTC session. */
32312
32662
  closeSession: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
32313
32663
  deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
32314
32664
  sessionId: /* @__PURE__ */ zod.z.string()
@@ -32558,6 +32908,7 @@ var workloadCapability = {
32558
32908
  off: "stop"
32559
32909
  },
32560
32910
  methods: {
32911
+ /** Start the workload (VM, container or app). */
32561
32912
  start: /* @__PURE__ */ require_capability_definition.optionalMethod(WorkloadDeviceInputSchema, /* @__PURE__ */ zod.z.void(), {
32562
32913
  kind: "mutation",
32563
32914
  auth: "protected",
@@ -32572,6 +32923,7 @@ var workloadCapability = {
32572
32923
  }
32573
32924
  }]
32574
32925
  }),
32926
+ /** Stop the workload gracefully. */
32575
32927
  stop: /* @__PURE__ */ require_capability_definition.optionalMethod(WorkloadDeviceInputSchema, /* @__PURE__ */ zod.z.void(), {
32576
32928
  kind: "mutation",
32577
32929
  auth: "protected",
@@ -32586,6 +32938,7 @@ var workloadCapability = {
32586
32938
  }
32587
32939
  }]
32588
32940
  }),
32941
+ /** Restart the workload. */
32589
32942
  restart: /* @__PURE__ */ require_capability_definition.optionalMethod(WorkloadDeviceInputSchema, /* @__PURE__ */ zod.z.void(), {
32590
32943
  kind: "mutation",
32591
32944
  auth: "protected",
@@ -32596,6 +32949,7 @@ var workloadCapability = {
32596
32949
  icon: "rotate-ccw"
32597
32950
  }]
32598
32951
  }),
32952
+ /** Pause the workload. */
32599
32953
  pause: /* @__PURE__ */ require_capability_definition.optionalMethod(WorkloadDeviceInputSchema, /* @__PURE__ */ zod.z.void(), {
32600
32954
  kind: "mutation",
32601
32955
  auth: "protected",
@@ -32610,6 +32964,7 @@ var workloadCapability = {
32610
32964
  }
32611
32965
  }]
32612
32966
  }),
32967
+ /** Resume a paused workload. */
32613
32968
  resume: /* @__PURE__ */ require_capability_definition.optionalMethod(WorkloadDeviceInputSchema, /* @__PURE__ */ zod.z.void(), {
32614
32969
  kind: "mutation",
32615
32970
  auth: "protected",
@@ -32624,6 +32979,7 @@ var workloadCapability = {
32624
32979
  }
32625
32980
  }]
32626
32981
  }),
32982
+ /** Stop the workload immediately without a graceful shutdown. */
32627
32983
  forceStop: /* @__PURE__ */ require_capability_definition.optionalMethod(WorkloadDeviceInputSchema, /* @__PURE__ */ zod.z.void(), {
32628
32984
  kind: "mutation",
32629
32985
  auth: "admin",