@camstack/server 1.2.936 → 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 (149) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/api/core/api-catalog.js +4 -0
  3. package/dist/api/trpc/generated-cap-routers.js +8 -0
  4. package/package.json +11 -9
  5. package/system/dist/{addon-pages.cap-Df9FQwN1.js → addon-pages.cap-B3gHFDYW.js} +4 -2
  6. package/system/dist/{addon-pages.cap-DksUlE8j.mjs → addon-pages.cap-BLNN6ypr.mjs} +4 -2
  7. package/system/dist/{addon-settings.cap-3-TIIMq_.mjs → addon-settings.cap-CZ4MC7ha.mjs} +9 -1
  8. package/system/dist/{addon-settings.cap-DAiE0Nb0.js → addon-settings.cap-DrLdMFIe.js} +9 -1
  9. package/system/dist/{addon-widgets.cap-D9m48X78.mjs → addon-widgets.cap-BbmWMzIH.mjs} +4 -2
  10. package/system/dist/{addon-widgets.cap-C4jxflbF.js → addon-widgets.cap-DuCe2VRj.js} +4 -2
  11. package/system/dist/{base-device-Bwiblqmn.mjs → base-device-BcGO6LTT.mjs} +2 -2
  12. package/system/dist/{base-device-C1z4zYGR.js → base-device-CH8rfD9j.js} +2 -2
  13. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  14. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  15. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  16. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  17. package/system/dist/builtins/alerts/alerts.addon.js +2 -2
  18. package/system/dist/builtins/alerts/alerts.addon.mjs +2 -2
  19. package/system/dist/builtins/autotrack/index.js +1 -1
  20. package/system/dist/builtins/autotrack/index.mjs +1 -1
  21. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
  22. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
  23. package/system/dist/builtins/calendars/calendars.addon.js +1 -1
  24. package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
  25. package/system/dist/builtins/camera-grid/index.js +4 -4
  26. package/system/dist/builtins/camera-grid/index.mjs +4 -4
  27. package/system/dist/builtins/composer/composer.addon.js +8 -8
  28. package/system/dist/builtins/composer/composer.addon.mjs +8 -8
  29. package/system/dist/builtins/console-logging/index.js +1 -1
  30. package/system/dist/builtins/console-logging/index.mjs +1 -1
  31. package/system/dist/builtins/core-blocks/core-blocks.addon.js +11 -11
  32. package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +11 -11
  33. package/system/dist/builtins/core-notifier/core-notifier.addon.js +3 -3
  34. package/system/dist/builtins/core-notifier/core-notifier.addon.mjs +3 -3
  35. package/system/dist/builtins/device-history/device-history.addon.js +3 -3
  36. package/system/dist/builtins/device-history/device-history.addon.mjs +3 -3
  37. package/system/dist/builtins/device-manager/device-manager.addon.js +16 -9
  38. package/system/dist/builtins/device-manager/device-manager.addon.mjs +16 -9
  39. package/system/dist/builtins/hub-forwarder/index.js +1 -1
  40. package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
  41. package/system/dist/builtins/keychain/index.js +1 -1
  42. package/system/dist/builtins/keychain/index.mjs +1 -1
  43. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  44. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  45. package/system/dist/builtins/local-auth/local-auth.addon.js +1 -1
  46. package/system/dist/builtins/local-auth/local-auth.addon.mjs +1 -1
  47. package/system/dist/builtins/local-network/local-network.addon.js +2 -2
  48. package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
  49. package/system/dist/builtins/loki-logging/index.js +3 -3
  50. package/system/dist/builtins/loki-logging/index.mjs +3 -3
  51. package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  52. package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  53. package/system/dist/builtins/platform-probe/index.js +1 -1
  54. package/system/dist/builtins/platform-probe/index.mjs +1 -1
  55. package/system/dist/builtins/record-entries/index.js +1 -1
  56. package/system/dist/builtins/record-entries/index.mjs +1 -1
  57. package/system/dist/builtins/snapshot/index.js +2 -2
  58. package/system/dist/builtins/snapshot/index.mjs +2 -2
  59. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  60. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  61. package/system/dist/builtins/sqlite-storage/index.js +1 -1
  62. package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
  63. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +7 -7
  64. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +7 -7
  65. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +3 -3
  66. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +3 -3
  67. package/system/dist/builtins/winston-logging/index.js +2 -2
  68. package/system/dist/builtins/winston-logging/index.mjs +2 -2
  69. package/system/dist/{calendars.cap-CaFlShS9.js → calendars.cap-CGeOtL7Q.js} +7 -1
  70. package/system/dist/{calendars.cap-_C4eD4fi.mjs → calendars.cap-DQc6Q6qS.mjs} +7 -1
  71. package/system/dist/{capability-definition-HCmTem8c.js → capability-definition-BEVd01Xj.js} +9 -4
  72. package/system/dist/{capability-definition-C2rJdVeX.mjs → capability-definition-C1TLUVJR.mjs} +9 -4
  73. package/system/dist/{capture-engine-DiwbjoWp.mjs → capture-engine-CUZ3W0oZ.mjs} +1 -1
  74. package/system/dist/{capture-engine-DZ0LIUqA.js → capture-engine-mtDXEBAq.js} +1 -1
  75. package/system/dist/{composition-sources-BtUx1MfU.js → composition-sources-DCi-ldEb.js} +2 -2
  76. package/system/dist/{composition-sources-B0QW4g86.mjs → composition-sources-DgayqgHH.mjs} +2 -2
  77. package/system/dist/{core-blocks.cap-CnwBuf7E.mjs → core-blocks.cap-CWKQSevR.mjs} +38 -3
  78. package/system/dist/{core-blocks.cap-DlEuHq-S.js → core-blocks.cap-yLx6soaY.js} +38 -3
  79. package/system/dist/{database-snapshot.cap-DF38e-0P.js → database-snapshot.cap-BNS5c60M.js} +2 -2
  80. package/system/dist/{database-snapshot.cap-dhrc9xnY.mjs → database-snapshot.cap-a3lSf4hl.mjs} +2 -2
  81. package/system/dist/{device-manager.cap-CFZSPfUh.mjs → device-manager.cap-DIBK62-r.mjs} +14 -3
  82. package/system/dist/{device-manager.cap-2abwVLCM.js → device-manager.cap-DyHOIh5T.js} +14 -3
  83. package/system/dist/{device-provider.cap-D7TV2kVH.js → device-provider.cap-BKUGJSo0.js} +9 -1
  84. package/system/dist/{device-provider.cap-3Uvk6f5-.mjs → device-provider.cap-DU6HMUXH.mjs} +9 -1
  85. package/system/dist/{device-row-store-YF3jtmkk.mjs → device-row-store-C-_R-h1Z.mjs} +1 -1
  86. package/system/dist/{device-row-store-doTfMOqn.js → device-row-store-O4mNbp5q.js} +1 -1
  87. package/system/dist/{device-transitions.cap-DojcwEuX.mjs → device-transitions.cap-DCXP3zwY.mjs} +7 -1
  88. package/system/dist/{device-transitions.cap-B5w5PYU_.js → device-transitions.cap-zOGvAIHz.js} +7 -1
  89. package/system/dist/{error.cap-BCqzFlo2.js → error.cap-BxLEHP6z.js} +1 -1
  90. package/system/dist/{error.cap-5zNPAgU2.mjs → error.cap-DCwbIGEF.mjs} +1 -1
  91. package/system/dist/file-host-worker.js +1 -1
  92. package/system/dist/file-host-worker.mjs +1 -1
  93. package/system/dist/index.js +7 -7
  94. package/system/dist/index.mjs +7 -7
  95. package/system/dist/{integration-instances.cap-Cl9O-k4h.mjs → integration-instances.cap-BWttO42A.mjs} +10 -1
  96. package/system/dist/{integration-instances.cap-dJIxg2_s.js → integration-instances.cap-DSieF1w3.js} +10 -1
  97. package/system/dist/{keychain-admin.cap-GtM7gVGG.mjs → keychain-admin.cap-DOvL8TMG.mjs} +5 -1
  98. package/system/dist/{keychain-admin.cap-Db_oFX4H.js → keychain-admin.cap-DcRCRWtu.js} +5 -1
  99. package/system/dist/{log-destination.cap-DELPJkZ0.js → log-destination.cap-BzTWMj-T.js} +4 -1
  100. package/system/dist/{log-destination.cap-CxZzAVaR.mjs → log-destination.cap-QYMJPJwK.mjs} +4 -1
  101. package/system/dist/{low-power-sleep.cap-7lfVU41N.js → low-power-sleep.cap-B6mz6ojP.js} +1 -1
  102. package/system/dist/{low-power-sleep.cap-tGPmaZ_V.mjs → low-power-sleep.cap-C3Vi8Vxj.mjs} +1 -1
  103. package/system/dist/{metrics-provider.cap-BNmcHDkQ.mjs → metrics-provider.cap-01SwpLu5.mjs} +1 -1
  104. package/system/dist/{metrics-provider.cap-BcmQUt6l.js → metrics-provider.cap-BMKD5FH3.js} +1 -1
  105. package/system/dist/{migration-BMjgkyG2.js → migration-BOQlFZCN.js} +1 -1
  106. package/system/dist/{migration-DRJAtdy7.mjs → migration-DGAc6ywR.mjs} +1 -1
  107. package/system/dist/{network-access.cap-B5TWLDCC.js → network-access.cap-BEN_uRVb.js} +12 -2
  108. package/system/dist/{network-access.cap-BJnGbE6n.mjs → network-access.cap-Dy8FNNVs.mjs} +12 -2
  109. package/system/dist/{notification-rules.cap-DUmiMBQB.mjs → notification-rules.cap-0vVvsxQ1.mjs} +14 -1
  110. package/system/dist/{notification-rules.cap-BDh0LDhV.js → notification-rules.cap-Drwz-A4n.js} +14 -1
  111. package/system/dist/{notification-targets-CRH-9Dy5.js → notification-targets-Cc_3OBH9.js} +1 -1
  112. package/system/dist/{notification-targets-DaNE-pIt.mjs → notification-targets-DR-D-vIt.mjs} +1 -1
  113. package/system/dist/{platform-probe.cap-1WrMhWHx.js → platform-probe.cap-C0N9CugQ.js} +5 -1
  114. package/system/dist/{platform-probe.cap-BFeqFLtQ.mjs → platform-probe.cap-DzZ7xUfS.mjs} +5 -1
  115. package/system/dist/{prefix-walk-DD1BM923.js → prefix-walk-BRlQiqVg.js} +2 -2
  116. package/system/dist/{prefix-walk-CRnbYJcC.mjs → prefix-walk-BrrMuJBM.mjs} +2 -2
  117. package/system/dist/{ptz-autotrack.cap-DT2GypXw.mjs → ptz-autotrack.cap-CDF6FeTK.mjs} +1 -1
  118. package/system/dist/{ptz-autotrack.cap-BW7w0zHD.js → ptz-autotrack.cap-DOz0xL0O.js} +1 -1
  119. package/system/dist/{record-entries.cap-sMUhTvTU.mjs → record-entries.cap-BINjYZ1Q.mjs} +5 -2
  120. package/system/dist/{record-entries.cap-ti1C046R.js → record-entries.cap-NYExLM0O.js} +5 -2
  121. package/system/dist/{recording-archive.cap-D7bo-QSM.js → recording-archive.cap-BPJ7kvnd.js} +6 -1
  122. package/system/dist/{recording-archive.cap-7OrIn9e5.mjs → recording-archive.cap-RHAN45fa.mjs} +6 -1
  123. package/system/dist/{records.cap-CwLT2ByG.mjs → records.cap-DRwT1JbL.mjs} +10 -1
  124. package/system/dist/{records.cap-ClcWV64i.js → records.cap-wLi7r4Hj.js} +10 -1
  125. package/system/dist/{rename-composition-block-BRgyBO25.js → rename-composition-block-D44wnN_m.js} +464 -45
  126. package/system/dist/{rename-composition-block-BYRBlx-V.mjs → rename-composition-block-SPaUkmam.mjs} +464 -45
  127. package/system/dist/{restore-archive-CjAyKpgX.mjs → restore-archive-BHkSRJYW.mjs} +2 -2
  128. package/system/dist/{restore-archive-CkTkv3Ss.js → restore-archive-DRv1bPY7.js} +2 -2
  129. package/system/dist/{settings-store.cap-wlJhCspr.js → settings-store.cap-BhOIBtO4.js} +1 -1
  130. package/system/dist/{settings-store.cap-Ci4F2zul.mjs → settings-store.cap-CaDSOqgK.mjs} +1 -1
  131. package/system/dist/{snapshot.cap-Bs8Oyaqh.mjs → snapshot.cap-BkfHpJVO.mjs} +3 -1
  132. package/system/dist/{snapshot.cap-3suPdBHV.js → snapshot.cap-Cis6JRwn.js} +3 -1
  133. package/system/dist/{storage-admin.cap-BSv1NjKJ.mjs → storage-admin.cap-Ci4QbL6P.mjs} +4 -4
  134. package/system/dist/{storage-admin.cap-he0OqvVM.js → storage-admin.cap-DqW1ol4j.js} +4 -4
  135. package/system/dist/{storage-migration.cap-CyyATY_p.js → storage-migration.cap-CDOhpCQw.js} +23 -1
  136. package/system/dist/{storage-migration.cap-D7QqGobp.mjs → storage-migration.cap-Ciw84XPm.mjs} +23 -1
  137. package/system/dist/{storage-occupancy.cap-2rmnS58Z.js → storage-occupancy.cap-B-Z8f8TZ.js} +5 -3
  138. package/system/dist/{storage-occupancy.cap-CqBztTl9.mjs → storage-occupancy.cap-B-wbMPmx.mjs} +5 -3
  139. package/system/dist/{storage-provider.cap-Bw0CfxVc.js → storage-provider.cap-B3Hm_BGM.js} +15 -1
  140. package/system/dist/{storage-provider.cap-CMeck2w4.mjs → storage-provider.cap-CnN9ULbc.mjs} +15 -1
  141. package/system/dist/{stream-catalog.cap-Bp7SkgIf.mjs → stream-catalog.cap-D1Hy19Yc.mjs} +126 -10
  142. package/system/dist/{stream-catalog.cap-D3uwePiA.js → stream-catalog.cap-D8Y-uXcy.js} +131 -9
  143. package/system/dist/{user-management.cap-DBIi77sB.mjs → user-management.cap-Ctd4c_im.mjs} +26 -1
  144. package/system/dist/{user-management.cap-B9QDu8NE.js → user-management.cap-DyVb68rY.js} +26 -1
  145. package/system/dist/{vector-store.cap-DnyfrYDn.js → vector-store.cap-DEVI-XJC.js} +6 -1
  146. package/system/dist/{vector-store.cap-h2GHWQ1t.mjs → vector-store.cap-Df60cnrJ.mjs} +6 -1
  147. package/system/dist/{wal-maintenance-BG01rOn9.mjs → wal-maintenance-O6zTzaI7.mjs} +0 -0
  148. package/system/dist/{wal-maintenance-DyrebYKF.js → wal-maintenance-mV4OR3LR.js} +0 -0
  149. package/system/package.json +1 -1
@@ -1,51 +1,51 @@
1
1
  import { a as CamStreamResolutionSchema, c as DerivedSourceRefSchema, d as ProfileRtspEntrySchema, f as ProfileSlotSchema, g as SubscribeAudioChunksResultSchema, h as SubscribeAudioChunksInputSchema, i as CamStreamKindSchema, l as FrameHandleSchema, n as BrokerStatsSchema, o as CameraStreamSchema, p as ProfileSlotStatusSchema, r as CamProfileSchema, s as DecodedAudioChunkSchema, u as PreviewDerivedEncodeResultSchema } from "./streaming-shared-B8cXatuU.mjs";
2
- import { A as AudioLevelSchema, C as featureProbeCapability, D as AudioChunkInputSchema, E as cameraGridLayoutCapability, M as FrameInputSchema, N as ClipModelMetaSchema, O as AudioClassificationLabelSchema, P as PeerBytesTicketSchema, S as CameraSensorsStatusSchema, T as deviceStatusCapability, _ as RetrainExportLayoutSchema, a as RunnerLocalLoadSchema, b as motionDetectionCapability, c as NodeBenchmarkCandidatesSchema, d as NodeBenchmarkResultViewSchema, f as NodeBenchmarkStatusSchema, g as PipelineStepInputSchema, h as PipelineRunResultBridge, i as motionCapability, j as BoundingBoxSchema, k as AudioClassifyOutcomeSchema, l as NodeBenchmarkPlanSchema, m as CameraMetricsSchema, o as pipelineRunnerCapability, p as zonesCapability, s as ListNodeBenchmarkResultsInputSchema, t as streamCatalogCapability, u as NodeBenchmarkPreflightSchema, v as pipelineAnalyticsCapability, x as CameraSensorsConfigSchema, y as CLUSTER_MODEL_CHOICE_UNREADABLE_REASONS } from "./stream-catalog.cap-Bp7SkgIf.mjs";
2
+ import { A as AudioClassifyOutcomeSchema, C as CameraSensorsStatusSchema, D as cameraGridLayoutCapability, E as deviceStatusCapability, F as PeerBytesTicketSchema, M as BoundingBoxSchema, N as FrameInputSchema, O as AudioChunkInputSchema, P as ClipModelMetaSchema, S as CameraSensorsConfigSchema, _ as PipelineStepInputSchema, a as RunnerLocalLoadSchema, b as CLUSTER_MODEL_CHOICE_UNREADABLE_REASONS, c as NodeBenchmarkCandidatesSchema, d as NodeBenchmarkResultViewSchema, f as NodeBenchmarkStatusSchema, g as PipelineRunResultBridge, h as CameraMetricsSchema, i as motionCapability, j as AudioLevelSchema, k as AudioClassificationLabelSchema, l as NodeBenchmarkPlanSchema, m as zonesCapability, o as pipelineRunnerCapability, p as NodeDecodeProfileSchema, s as ListNodeBenchmarkResultsInputSchema, t as streamCatalogCapability, u as NodeBenchmarkPreflightSchema, v as RetrainExportLayoutSchema, w as featureProbeCapability, x as motionDetectionCapability, y as pipelineAnalyticsCapability } from "./stream-catalog.cap-D1Hy19Yc.mjs";
3
3
  import { b as EventCategory } from "./base-addon-Md14i7pe.mjs";
4
4
  import { Z as errMsg } from "./scoped-settings-DVWUIP7Z.mjs";
5
- import { a as expandCapMethods, c as method, i as event, l as optionalMethod } from "./capability-definition-C2rJdVeX.mjs";
6
- import { a as notificationRulesCapability, c as alarmPanelCapability, f as notificationOutputCapability, n as NcConditionsSchema, r as NcScheduleSchema, t as NcConditionDescriptorSchema } from "./notification-rules.cap-DUmiMBQB.mjs";
7
- import { a as deviceManagerCapability, b as ResyncResultSchema, i as LinkedDevicesSlotValueSchema, r as LINKED_DEVICES_SLOT, x as deviceAdoptionCapability } from "./device-manager.cap-CFZSPfUh.mjs";
5
+ import { a as expandCapMethods, c as method, i as event, l as optionalMethod } from "./capability-definition-C1TLUVJR.mjs";
6
+ import { a as notificationRulesCapability, c as alarmPanelCapability, f as notificationOutputCapability, n as NcConditionsSchema, r as NcScheduleSchema, t as NcConditionDescriptorSchema } from "./notification-rules.cap-0vVvsxQ1.mjs";
7
+ import { a as deviceManagerCapability, b as ResyncResultSchema, i as LinkedDevicesSlotValueSchema, r as LINKED_DEVICES_SLOT, x as deviceAdoptionCapability } from "./device-manager.cap-DIBK62-r.mjs";
8
8
  import { d as CameraSwitchIdSchema, u as CameraSwitchGroupSchema } from "./device-identifiers-iSuQCKmK.mjs";
9
- import { i as deviceRemovalHookCapability, o as deviceHistoryCapability, r as deviceRunsCapability, t as deviceTransitionsCapability } from "./device-transitions.cap-DojcwEuX.mjs";
9
+ import { i as deviceRemovalHookCapability, o as deviceHistoryCapability, r as deviceRunsCapability, t as deviceTransitionsCapability } from "./device-transitions.cap-DCXP3zwY.mjs";
10
10
  import { t as NOT_A_DEVICE } from "./system-reasons-CYj4qwyS.mjs";
11
- import { f as settingsStoreCapability } from "./settings-store.cap-Ci4F2zul.mjs";
11
+ import { f as settingsStoreCapability } from "./settings-store.cap-CaDSOqgK.mjs";
12
12
  import { a as readingMeta, n as baseUnitOf, t as ReadingQuantitySchema } from "./quantity-D3g5SxsZ.mjs";
13
13
  import { r as LabelDefinitionSchema, t as DetectionCatalogClassMapSchema } from "./labels-DsBcU7md.mjs";
14
- import { a as RecordingStorageModeSchema, i as recordingCapability, n as recordingArchiveCapability } from "./recording-archive.cap-7OrIn9e5.mjs";
14
+ import { a as RecordingStorageModeSchema, i as recordingCapability, n as recordingArchiveCapability } from "./recording-archive.cap-RHAN45fa.mjs";
15
15
  import { y as StorageMigrationLeaseInputSchema } from "./relocate-CoZZTui1.mjs";
16
- import { n as storageCapability, t as storageMigrationCapability } from "./storage-migration.cap-D7QqGobp.mjs";
16
+ import { n as storageCapability, t as storageMigrationCapability } from "./storage-migration.cap-Ciw84XPm.mjs";
17
17
  import { i as TagsFieldSchema, n as TagNameSchema, t as TagColorIdSchema, u as IconKeySchema } from "./tag-uZBAq6ox.mjs";
18
- import { r as MODEL_FORMATS, t as platformProbeCapability } from "./platform-probe.cap-BFeqFLtQ.mjs";
19
- import { a as authProviderCapability, c as TokenScopeSchema, i as deviceCredentialsCapability, r as ssoBridgeCapability, t as userManagementCapability } from "./user-management.cap-DBIi77sB.mjs";
18
+ import { r as MODEL_FORMATS, t as platformProbeCapability } from "./platform-probe.cap-DzZ7xUfS.mjs";
19
+ import { a as authProviderCapability, c as TokenScopeSchema, i as deviceCredentialsCapability, r as ssoBridgeCapability, t as userManagementCapability } from "./user-management.cap-Ctd4c_im.mjs";
20
20
  import { n as DeviceRole, r as DeviceType } from "./device-type-DgEvK3ch.mjs";
21
21
  import { d as AppLoginPathSchema } from "./device-certificate-Cddm4Idn.mjs";
22
- import { $t as unwrapSchema, A as MediaPlayerStatusSchema, At as TemplateEntriesValueSchema, B as isRemoteCustomKey, F as irSourceProblem, G as IrNativeFormatSchema, H as isRemoteWidgetRole, I as remoteSourceSteps, Jt as isQuantityValue, K as IrTimingsSchema, Kt as QuantityUnitError, M as REMOTE_STEP_DELAY_MAX_MS, Mt as TemplateTimeWindowValueSchema, N as RemoteSourceSchema, Nt as AutomationWhenSchema, Pt as EVENT_LEAF_ID_RE, Qt as enumerateSchemaFields, R as RemoteRoleSchema, St as AutomationRecipeSchema, V as isRemoteRole, W as IrNativeCodeSchema, Xt as paramMetaOf, Yt as paramMeta, Zt as enumerateItemArrayFields, _n as vocabCall, _t as SchedulerSchema, at as AutomationRunOutcomeSchema, bt as ActionStepSchema, c as coreBlocksCapability, et as CompositionBlockStateSchema, ft as LOCAL_DATE_PATTERN, gt as SchedulerPreviewSchema, hn as findVocabAction, ht as SchedulerInputSchema, it as alertsCapability, j as mediaPlayerCapability, jt as TemplateEventValueSchema, kt as TemplateActionValueSchema, ot as AutomationRunTraceSchema, pt as SchedulerConflictSchema, q as TransmitSettingsSchema, qt as convertQuantityInput, sn as EventVocabularyEntrySchema, tt as CompositionRunStatusSchema, vt as SchedulerStatusSchema, w as powerSourceCapability, xt as AutomationBranchStepSchema, z as customKeyOfRole } from "./core-blocks.cap-CnwBuf7E.mjs";
23
- import { i as addonSettingsCapability, o as unitDimension, s as unitsForDimension } from "./addon-settings.cap-3-TIIMq_.mjs";
24
- import { R as COMPOSED_DEVICE_STABLE_ID_PREFIX, T as CompositionSchema, r as errorCapability, x as COMPOSER_ADDON_ID } from "./error.cap-5zNPAgU2.mjs";
22
+ import { $t as unwrapSchema, A as MediaPlayerStatusSchema, At as TemplateEntriesValueSchema, B as isRemoteCustomKey, F as irSourceProblem, G as IrNativeFormatSchema, H as isRemoteWidgetRole, I as remoteSourceSteps, Jt as isQuantityValue, K as IrTimingsSchema, Kt as QuantityUnitError, M as REMOTE_STEP_DELAY_MAX_MS, Mt as TemplateTimeWindowValueSchema, N as RemoteSourceSchema, Nt as AutomationWhenSchema, Pt as EVENT_LEAF_ID_RE, Qt as enumerateSchemaFields, R as RemoteRoleSchema, St as AutomationRecipeSchema, V as isRemoteRole, W as IrNativeCodeSchema, Xt as paramMetaOf, Yt as paramMeta, Zt as enumerateItemArrayFields, _n as vocabCall, _t as SchedulerSchema, at as AutomationRunOutcomeSchema, bt as ActionStepSchema, c as coreBlocksCapability, et as CompositionBlockStateSchema, ft as LOCAL_DATE_PATTERN, gt as SchedulerPreviewSchema, hn as findVocabAction, ht as SchedulerInputSchema, it as alertsCapability, j as mediaPlayerCapability, jt as TemplateEventValueSchema, kt as TemplateActionValueSchema, ot as AutomationRunTraceSchema, pt as SchedulerConflictSchema, q as TransmitSettingsSchema, qt as convertQuantityInput, sn as EventVocabularyEntrySchema, tt as CompositionRunStatusSchema, vt as SchedulerStatusSchema, w as powerSourceCapability, xt as AutomationBranchStepSchema, z as customKeyOfRole } from "./core-blocks.cap-CWKQSevR.mjs";
23
+ import { i as addonSettingsCapability, o as unitDimension, s as unitsForDimension } from "./addon-settings.cap-CZ4MC7ha.mjs";
24
+ import { R as COMPOSED_DEVICE_STABLE_ID_PREFIX, T as CompositionSchema, r as errorCapability, x as COMPOSER_ADDON_ID } from "./error.cap-DCwbIGEF.mjs";
25
25
  import { a as normalizeUnit } from "./source-info-DGB7SdB_.mjs";
26
26
  import { t } from "./l10n-Bu6aUvSY.mjs";
27
- import { t as addonPagesCapability } from "./addon-pages.cap-DksUlE8j.mjs";
28
- import { n as WidgetRemoteSchema, r as addonWidgetsSourceCapability, t as addonWidgetsCapability } from "./addon-widgets.cap-D9m48X78.mjs";
29
- import { a as databaseSnapshotCapability } from "./database-snapshot.cap-dhrc9xnY.mjs";
30
- import { n as backupCapability, t as storageOccupancyCapability } from "./storage-occupancy.cap-CqBztTl9.mjs";
31
- import { n as calendarsCapability, r as calendarSourceCapability } from "./calendars.cap-_C4eD4fi.mjs";
27
+ import { t as addonPagesCapability } from "./addon-pages.cap-BLNN6ypr.mjs";
28
+ import { n as WidgetRemoteSchema, r as addonWidgetsSourceCapability, t as addonWidgetsCapability } from "./addon-widgets.cap-BbmWMzIH.mjs";
29
+ import { a as databaseSnapshotCapability } from "./database-snapshot.cap-a3lSf4hl.mjs";
30
+ import { n as backupCapability, t as storageOccupancyCapability } from "./storage-occupancy.cap-B-wbMPmx.mjs";
31
+ import { n as calendarsCapability, r as calendarSourceCapability } from "./calendars.cap-DQc6Q6qS.mjs";
32
32
  import { r as HISTORY_PRIMARY } from "./history-catalog-BwTeQ4Mr.mjs";
33
- import { i as dataStoreProviderCapability, n as migrationsCapability, t as storageAdminCapability } from "./storage-admin.cap-BSv1NjKJ.mjs";
34
- import { o as deviceProviderCapability } from "./device-provider.cap-3Uvk6f5-.mjs";
35
- import { n as filesystemBrowseCapability, t as storageProviderCapability } from "./storage-provider.cap-CMeck2w4.mjs";
36
- import { n as integrationsCapability, t as integrationInstancesCapability } from "./integration-instances.cap-Cl9O-k4h.mjs";
37
- import { a as keychainCapability, i as keychainAdminCapability } from "./keychain-admin.cap-GtM7gVGG.mjs";
38
- import { n as networkAccessCapability, r as localNetworkCapability } from "./network-access.cap-BJnGbE6n.mjs";
39
- import { t as logDestinationCapability } from "./log-destination.cap-CxZzAVaR.mjs";
40
- import { n as lowPowerSleepCapability } from "./low-power-sleep.cap-tGPmaZ_V.mjs";
41
- import { t as metricsProviderCapability } from "./metrics-provider.cap-BNmcHDkQ.mjs";
42
- import { o as recordsCapability } from "./records.cap-CwLT2ByG.mjs";
33
+ import { i as dataStoreProviderCapability, n as migrationsCapability, t as storageAdminCapability } from "./storage-admin.cap-Ci4QbL6P.mjs";
34
+ import { o as deviceProviderCapability } from "./device-provider.cap-DU6HMUXH.mjs";
35
+ import { n as filesystemBrowseCapability, t as storageProviderCapability } from "./storage-provider.cap-CnN9ULbc.mjs";
36
+ import { n as integrationsCapability, t as integrationInstancesCapability } from "./integration-instances.cap-BWttO42A.mjs";
37
+ import { a as keychainCapability, i as keychainAdminCapability } from "./keychain-admin.cap-DOvL8TMG.mjs";
38
+ import { n as networkAccessCapability, r as localNetworkCapability } from "./network-access.cap-Dy8FNNVs.mjs";
39
+ import { t as logDestinationCapability } from "./log-destination.cap-QYMJPJwK.mjs";
40
+ import { n as lowPowerSleepCapability } from "./low-power-sleep.cap-C3Vi8Vxj.mjs";
41
+ import { t as metricsProviderCapability } from "./metrics-provider.cap-01SwpLu5.mjs";
42
+ import { o as recordsCapability } from "./records.cap-DRwT1JbL.mjs";
43
43
  import { a as MaskRectShapeSchema, i as MaskPolygonVerticesSchema, n as MaskGridShapeSchema, o as MaskShapeKindSchema, r as MaskPolygonShapeSchema, t as MaskGridDimsSchema } from "./mask-shape-Ci8Co9w0.mjs";
44
- import { t as ptzAutotrackCapability } from "./ptz-autotrack.cap-DT2GypXw.mjs";
45
- import { t as recordEntriesCapability } from "./record-entries.cap-sMUhTvTU.mjs";
46
- import { t as snapshotCapability } from "./snapshot.cap-Bs8Oyaqh.mjs";
44
+ import { t as ptzAutotrackCapability } from "./ptz-autotrack.cap-CDF6FeTK.mjs";
45
+ import { t as recordEntriesCapability } from "./record-entries.cap-BINjYZ1Q.mjs";
46
+ import { t as snapshotCapability } from "./snapshot.cap-BkfHpJVO.mjs";
47
47
  import { t as ServerNameInfoSchema } from "./server-name-BIhLuHvX.mjs";
48
- import { n as vectorStoreCapability } from "./vector-store.cap-h2GHWQ1t.mjs";
48
+ import { n as vectorStoreCapability } from "./vector-store.cap-Df60cnrJ.mjs";
49
49
  import { z } from "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__ */ method(InstancePinSchema, DeviceExportStatusSchema),
1818
+ /** List the export instances this addon runs. */
1817
1819
  listInstances: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.array(ExportInstanceSchema)),
1820
+ /** List the device kinds an export instance can expose. */
1818
1821
  listSupportedDeviceKinds: /* @__PURE__ */ method(InstancePinSchema, /* @__PURE__ */ z.array(DeviceKindSchema)),
1822
+ /** List the devices an export instance currently exposes. */
1819
1823
  listExposedDevices: /* @__PURE__ */ method(InstancePinSchema, /* @__PURE__ */ z.array(ExposedDeviceSchema)),
1824
+ /** Expose a device through an export instance. */
1820
1825
  exposeDevice: /* @__PURE__ */ method(ExposeInputSchema, /* @__PURE__ */ 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__ */ method(UnexposeInputSchema, /* @__PURE__ */ 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__ */ method(SetExposedNameInputSchema, /* @__PURE__ */ 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__ */ optionalMethod(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.array(ExportEntityKindSchema)),
1841
+ /** List the entities an export instance currently exposes. */
1833
1842
  listExposedEntities: /* @__PURE__ */ optionalMethod(InstancePinSchema, /* @__PURE__ */ z.array(ExposedEntitySchema)),
1843
+ /** Expose an entity through an export instance. */
1834
1844
  exposeEntity: /* @__PURE__ */ optionalMethod(ExposeEntityInputSchema, /* @__PURE__ */ 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__ */ optionalMethod(UnexposeEntityInputSchema, /* @__PURE__ */ 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__ */ method(/* @__PURE__ */ z.object({}), /* @__PURE__ */ z.array(ActionEntrySchema), { auth: "admin" }),
1988
+ /** Run one of the source's actions, optionally with variables. */
1976
1989
  runAction: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
1977
1990
  actionId: /* @__PURE__ */ z.string().min(1),
1978
1991
  variables: /* @__PURE__ */ z.record(/* @__PURE__ */ 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__ */ method(/* @__PURE__ */ z.object({ actionId: /* @__PURE__ */ z.string().min(1) }), /* @__PURE__ */ 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__ */ method(ActionIdInput, /* @__PURE__ */ z.void(), {
2126
2141
  kind: "mutation",
2127
2142
  auth: "admin"
2128
2143
  }),
2144
+ /** The recent run traces of an action. */
2129
2145
  getTraces: /* @__PURE__ */ method(ActionIdInput, /* @__PURE__ */ z.object({ traces: /* @__PURE__ */ z.array(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__ */ method(/* @__PURE__ */ z.object({
2147
2164
  actionId: /* @__PURE__ */ 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__ */ method(ActionIdInput, /* @__PURE__ */ 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__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ 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__ */ method(/* @__PURE__ */ z.object({ nodeId: /* @__PURE__ */ z.string().optional() }).optional(), /* @__PURE__ */ z.array(AddonListItemSchema).readonly()),
2715
+ /** Recent log lines of one addon, optionally filtered by level. */
2696
2716
  getLogs: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
2697
2717
  addonId: /* @__PURE__ */ z.string(),
2698
2718
  limit: /* @__PURE__ */ z.number().min(1).max(500).default(100),
2699
2719
  level: /* @__PURE__ */ LogLevelSchema$1.optional()
2700
2720
  }), /* @__PURE__ */ z.array(LogQueryEntrySchema)),
2721
+ /** List the installed addon packages with their versions. */
2701
2722
  listPackages: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.array(InstalledPackageSchema).readonly()),
2723
+ /** Install an addon package, optionally at a given version. */
2702
2724
  installPackage: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
2703
2725
  packageName: /* @__PURE__ */ z.string(),
2704
2726
  version: /* @__PURE__ */ 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__ */ method(/* @__PURE__ */ z.object({ packageName: /* @__PURE__ */ z.string().optional() }), PackageInstallationsSchema, { auth: "admin" }),
2756
+ /** Rescan the installed packages and load what changed. */
2734
2757
  reloadPackages: /* @__PURE__ */ method(/* @__PURE__ */ 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__ */ method(/* @__PURE__ */ z.object({
2739
2763
  query: /* @__PURE__ */ 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__ */ method(/* @__PURE__ */ z.object({ confirm: /* @__PURE__ */ z.literal(true) }), /* @__PURE__ */ 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__ */ method(/* @__PURE__ */ z.object({ name: /* @__PURE__ */ z.string() }), /* @__PURE__ */ 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__ */ z.string().min(1),
2879
2905
  version: /* @__PURE__ */ z.string().min(1).optional()
2880
2906
  }), PackageDocsSchema, { auth: "admin" }),
2907
+ /** Restart one addon's process. */
2881
2908
  restartAddon: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ addonId: /* @__PURE__ */ 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__ */ method(/* @__PURE__ */ z.void(), AutoUpdateSettingsSchema, { auth: "admin" }),
2924
+ /** Change the global addon auto-update channel and check intervals. */
2896
2925
  setAutoUpdateSettings: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
2897
2926
  channel: ChannelSchema,
2898
2927
  intervalSeconds: /* @__PURE__ */ 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__ */ method(/* @__PURE__ */ z.object({ addonId: /* @__PURE__ */ z.string() }), AddonAutoUpdateSchema, { auth: "admin" }),
2936
+ /** Set the auto-update channel of one addon. */
2906
2937
  setAddonAutoUpdate: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
2907
2938
  addonId: /* @__PURE__ */ 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__ */ method(/* @__PURE__ */ z.object({ channel: ChannelSchema }), /* @__PURE__ */ z.object({ success: /* @__PURE__ */ 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__ */ method(CustomActionInputSchema, /* @__PURE__ */ 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__ */ method(/* @__PURE__ */ z.object({
2967
3001
  addonId: /* @__PURE__ */ 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__ */ method(/* @__PURE__ */ z.void(), StaticDirOutputSchema$1, { auth: "admin" }),
3029
+ /** The version of the admin UI build served by the hub. */
2995
3030
  getVersion: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), VersionOutputSchema$1, { auth: "admin" })
2996
3031
  },
2997
3032
  vocabulary: { notOperatorFacing: 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__ */ method(/* @__PURE__ */ z.object({
3300
3336
  chunk: AudioChunkInputSchema,
3301
3337
  settings: AudioAnalysisSettingsSchema
3302
3338
  }), /* @__PURE__ */ AudioAnalysisResultSchema.nullable(), { kind: "mutation" }),
3339
+ /** Classify the sounds in one audio chunk. */
3303
3340
  classify: /* @__PURE__ */ method(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__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number() }), AudioDetachDeviceResultSchema, { kind: "mutation" }),
3356
+ /** Whether the analyzer is loaded and ready. */
3319
3357
  isReady: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.boolean()),
3358
+ /** Release the analyzer's resources. */
3320
3359
  dispose: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ 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__ */ z.string(),
3417
3456
  kind: /* @__PURE__ */ z.enum(["decode", "encode"])
3418
3457
  }), /* @__PURE__ */ z.boolean()),
3458
+ /** Open an audio decode session and return its id and node. */
3419
3459
  createDecodeSession: /* @__PURE__ */ method(AudioDecodeSessionConfigSchema, /* @__PURE__ */ z.object({
3420
3460
  sessionId: /* @__PURE__ */ z.string(),
3421
3461
  nodeId: /* @__PURE__ */ z.string()
3422
3462
  }), { kind: "mutation" }),
3463
+ /** Open an audio encode session and return its id and node. */
3423
3464
  createEncodeSession: /* @__PURE__ */ method(AudioEncodeSessionConfigSchema, /* @__PURE__ */ z.object({
3424
3465
  sessionId: /* @__PURE__ */ z.string(),
3425
3466
  nodeId: /* @__PURE__ */ z.string()
3426
3467
  }), { kind: "mutation" }),
3468
+ /** Close an audio codec session. */
3427
3469
  closeSession: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
3428
3470
  sessionId: /* @__PURE__ */ z.string(),
3429
3471
  nodeId: /* @__PURE__ */ z.string().optional()
@@ -3461,6 +3503,7 @@ var audioCodecCapability = {
3461
3503
  sessionId: /* @__PURE__ */ z.string(),
3462
3504
  nodeId: /* @__PURE__ */ z.string().optional()
3463
3505
  }), /* @__PURE__ */ z.array(AudioEncodedChunkSchema), { kind: "mutation" }),
3506
+ /** List the open audio codec sessions. */
3464
3507
  listActiveSessions: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.array(SessionInventoryEntrySchema).readonly())
3465
3508
  },
3466
3509
  vocabulary: { notOperatorFacing: NOT_A_DEVICE.INTERNAL }
@@ -3643,6 +3686,7 @@ var automationControlCapability = {
3643
3686
  mode: "singleton",
3644
3687
  deviceTypes: [DeviceType.Automation],
3645
3688
  methods: {
3689
+ /** Enable the automation. */
3646
3690
  enable: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() }), /* @__PURE__ */ 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__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() }), /* @__PURE__ */ 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__ */ method(/* @__PURE__ */ z.object({
3675
3721
  deviceId: /* @__PURE__ */ 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__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.array(BoardKeySourceSchema).readonly(), { auth: "admin" }),
4302
+ /** List the boards one source knows. */
4255
4303
  listBoards: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ sourceId: /* @__PURE__ */ z.string().min(1) }), ListBoardsResultSchema, { auth: "admin" }),
4304
+ /** Read the key of a board configuration from a source. */
4256
4305
  getBoardKey: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
4257
4306
  sourceId: /* @__PURE__ */ z.string().min(1),
4258
4307
  configuration: /* @__PURE__ */ z.string().min(1)
@@ -4286,7 +4335,9 @@ var brightnessCapability = {
4286
4335
  deviceNative: true,
4287
4336
  mode: "singleton",
4288
4337
  deviceTypes: [DeviceType.Light],
4289
- methods: { setBrightness: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
4338
+ methods: {
4339
+ /** Set the light's brightness level from 0 to 100. */
4340
+ setBrightness: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
4290
4341
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
4291
4342
  level: /* @__PURE__ */ z.number().min(0).max(100)
4292
4343
  }), /* @__PURE__ */ 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__ */ method(GetInputSchema, /* @__PURE__ */ SettingsRecordSchema.nullable(), { auth: "admin" }),
4512
+ /** Publish a message on the broker. */
4461
4513
  publish: /* @__PURE__ */ method(PublishInputSchema, /* @__PURE__ */ z.unknown(), {
4462
4514
  kind: "mutation",
4463
4515
  auth: "admin"
4464
4516
  }),
4517
+ /** Subscribe to a topic on the broker. */
4465
4518
  subscribe: /* @__PURE__ */ method(SubscribeInputSchema, SubscribeResultSchema, {
4466
4519
  kind: "mutation",
4467
4520
  auth: "admin"
4468
4521
  }),
4522
+ /** Cancel a broker subscription. */
4469
4523
  unsubscribe: /* @__PURE__ */ method(UnsubscribeInputSchema, /* @__PURE__ */ 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: [DeviceType.Button],
4502
- methods: { press: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() }), /* @__PURE__ */ z.void(), {
4556
+ methods: {
4557
+ /** Press the button to trigger its action. */
4558
+ press: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() }), /* @__PURE__ */ 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__ */ method(/* @__PURE__ */ z.object({
5119
5176
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
5120
5177
  camStreamId: /* @__PURE__ */ 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__ */ method(/* @__PURE__ */ z.object({
5149
5207
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
5150
5208
  camStreamId: /* @__PURE__ */ 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__ */ method(/* @__PURE__ */ z.object({
5156
5215
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
5157
5216
  profile: 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__ */ method(/* @__PURE__ */ z.object({
5164
5224
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
5165
5225
  profile: 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__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.array(CameraStreamSchema).readonly()),
5396
+ /** List every camera profile slot and the stream assigned to it. */
5335
5397
  listAllProfileSlots: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.array(ProfileSlotSchema).readonly()),
5398
+ /** Counters and health of one stream broker (clients, packets, bitrates). */
5336
5399
  getBrokerStats: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ brokerId: /* @__PURE__ */ z.string() }), 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__ */ method(/* @__PURE__ */ z.object({ brokerId: /* @__PURE__ */ 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__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.array(LiveViewerCountSchema).readonly(), { role: "viewer" }),
5448
+ /** Disconnect one RTSP or audio client from a stream broker. */
5384
5449
  killClient: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
5385
5450
  brokerId: /* @__PURE__ */ z.string(),
5386
5451
  channel: /* @__PURE__ */ 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__ */ method(/* @__PURE__ */ z.object({
5393
5459
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
5394
5460
  profile: 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__ */ method(/* @__PURE__ */ z.object({ pipelineKey: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.object({
5421
5488
  released: /* @__PURE__ */ z.boolean(),
5422
5489
  refcount: /* @__PURE__ */ z.number().int().nonnegative()
@@ -5477,11 +5544,14 @@ var streamBrokerCapability = {
5477
5544
  * 3. `unsubscribeAudioChunks({ subscriptionId })` on teardown.
5478
5545
  */
5479
5546
  subscribeAudioChunks: /* @__PURE__ */ method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }),
5547
+ /** Fetch up to maxCount decoded audio chunks queued for an audio subscription. */
5480
5548
  pullAudioChunks: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
5481
5549
  subscriptionId: /* @__PURE__ */ z.string(),
5482
5550
  maxCount: /* @__PURE__ */ z.number().int().positive().default(8)
5483
5551
  }), /* @__PURE__ */ z.array(DecodedAudioChunkSchema).readonly()),
5552
+ /** End an audio-chunk subscription and release its resources. */
5484
5553
  unsubscribeAudioChunks: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ subscriptionId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.object({ released: /* @__PURE__ */ z.boolean() }), { kind: "mutation" }),
5554
+ /** Set how many seconds of recent packets a broker keeps for late-joining consumers. */
5485
5555
  setPreBufferDuration: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
5486
5556
  brokerId: /* @__PURE__ */ z.string(),
5487
5557
  seconds: /* @__PURE__ */ 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__ */ method(/* @__PURE__ */ z.object({ brokerId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.object({
5493
5564
  configuredSec: /* @__PURE__ */ z.number(),
5494
5565
  bufferedMs: /* @__PURE__ */ z.number(),
5495
5566
  packetCount: /* @__PURE__ */ z.number()
5496
5567
  })),
5568
+ /** The port the broker's RTSP re-stream server listens on. */
5497
5569
  getRtspPort: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ 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__ */ z.string(),
5511
5583
  hostname: /* @__PURE__ */ 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__ */ method(/* @__PURE__ */ z.object({ brokerId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ 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__ */ method(/* @__PURE__ */ z.object({
5518
5592
  brokerId: /* @__PURE__ */ z.string(),
5519
5593
  enabled: /* @__PURE__ */ 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__ */ method(/* @__PURE__ */ z.object({ brokerId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.boolean()),
5525
5600
  /**
5526
5601
  * ── Per-device audio-plane policy (D83) ───────────────────────────
@@ -5549,6 +5624,7 @@ var streamBrokerCapability = {
5549
5624
  */
5550
5625
  appliedBrokers: /* @__PURE__ */ z.number().int().nonnegative()
5551
5626
  })),
5627
+ /** Mute or unmute the audio of a camera on every broker serving it. */
5552
5628
  setDeviceAudioMute: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
5553
5629
  deviceId: /* @__PURE__ */ z.number().int(),
5554
5630
  muted: /* @__PURE__ */ z.boolean()
@@ -5767,7 +5843,9 @@ var cameraStreamsCapability = {
5767
5843
  defaultActive: true,
5768
5844
  deviceTypes: [DeviceType.Camera],
5769
5845
  methods: {
5846
+ /** List the streams a camera publishes. */
5770
5847
  getCameraStreams: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() }), /* @__PURE__ */ z.array(CameraStreamSchema).readonly()),
5848
+ /** List the camera's profile slots and the streams assigned to them. */
5771
5849
  getBrokerStreams: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() }), /* @__PURE__ */ z.array(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__ */ method(/* @__PURE__ */ z.object({
6100
6179
  deviceId: /* @__PURE__ */ 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__ */ method(/* @__PURE__ */ z.object({
6200
6280
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
6201
6281
  target: /* @__PURE__ */ 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__ */ optionalMethod(/* @__PURE__ */ z.object({
6226
6307
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
6227
6308
  targetLow: /* @__PURE__ */ 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__ */ optionalMethod(/* @__PURE__ */ z.object({
6265
6347
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
6266
6348
  targetHumidity: /* @__PURE__ */ 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__ */ optionalMethod(/* @__PURE__ */ z.object({
6293
6376
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
6294
6377
  fanMode: /* @__PURE__ */ 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__ */ optionalMethod(/* @__PURE__ */ z.object({
6319
6403
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
6320
6404
  preset: /* @__PURE__ */ 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__ */ optionalMethod(/* @__PURE__ */ z.object({
6345
6430
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
6346
6431
  on: /* @__PURE__ */ 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__ */ optionalMethod(/* @__PURE__ */ z.object({
6373
6459
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
6374
6460
  on: /* @__PURE__ */ z.boolean()
@@ -6762,7 +6848,9 @@ var colorCapability = {
6762
6848
  deviceNative: true,
6763
6849
  mode: "singleton",
6764
6850
  deviceTypes: [DeviceType.Light],
6765
- methods: { setColor: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
6851
+ methods: {
6852
+ /** Set the light's color. */
6853
+ setColor: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
6766
6854
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
6767
6855
  color: ColorInputSchema
6768
6856
  }), /* @__PURE__ */ z.void(), {
@@ -6988,6 +7076,7 @@ var composerCapability = {
6988
7076
  kind: "mutation",
6989
7077
  auth: "admin"
6990
7078
  }),
7079
+ /** The state of the given composition blocks. */
6991
7080
  getStates: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ blockIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()) }), /* @__PURE__ */ z.object({ states: /* @__PURE__ */ z.array(CompositionBlockStateSchema) }), { auth: "admin" })
6992
7081
  },
6993
7082
  vocabulary: { notOperatorFacing: "device composition — an authoring tool, not an action" }
@@ -7529,6 +7618,7 @@ var controlCapability = {
7529
7618
  mode: "singleton",
7530
7619
  deviceTypes: [DeviceType.Control],
7531
7620
  methods: {
7621
+ /** Set the value of the control (number, selection, text or date). */
7532
7622
  setValue: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
7533
7623
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
7534
7624
  control: ControlSetValueInputSchema
@@ -7684,6 +7774,7 @@ var coverCapability = {
7684
7774
  mode: "singleton",
7685
7775
  deviceTypes: [DeviceType.Cover],
7686
7776
  methods: {
7777
+ /** Open the cover fully. */
7687
7778
  open: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() }), /* @__PURE__ */ z.void(), {
7688
7779
  kind: "mutation",
7689
7780
  auth: "protected",
@@ -7698,6 +7789,7 @@ var coverCapability = {
7698
7789
  }
7699
7790
  }]
7700
7791
  }),
7792
+ /** Close the cover fully. */
7701
7793
  close: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() }), /* @__PURE__ */ z.void(), {
7702
7794
  kind: "mutation",
7703
7795
  auth: "protected",
@@ -7712,6 +7804,7 @@ var coverCapability = {
7712
7804
  }
7713
7805
  }]
7714
7806
  }),
7807
+ /** Stop the cover where it is. */
7715
7808
  stop: /* @__PURE__ */ optionalMethod(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() }), /* @__PURE__ */ z.void(), {
7716
7809
  kind: "mutation",
7717
7810
  auth: "protected",
@@ -7722,6 +7815,7 @@ var coverCapability = {
7722
7815
  icon: "square"
7723
7816
  }]
7724
7817
  }),
7818
+ /** Move the cover to a position from 0 to 100. */
7725
7819
  setPosition: /* @__PURE__ */ optionalMethod(/* @__PURE__ */ z.object({
7726
7820
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
7727
7821
  position: /* @__PURE__ */ z.number().min(0).max(100)
@@ -7750,6 +7844,7 @@ var coverCapability = {
7750
7844
  }]
7751
7845
  }]
7752
7846
  }),
7847
+ /** Set the cover's tilt from 0 to 100. */
7753
7848
  setTiltPosition: /* @__PURE__ */ optionalMethod(/* @__PURE__ */ z.object({
7754
7849
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
7755
7850
  tiltPosition: /* @__PURE__ */ z.number().min(0).max(100)
@@ -8088,7 +8183,9 @@ var dayNightCapability = {
8088
8183
  tab: "image"
8089
8184
  } },
8090
8185
  methods: {
8186
+ /** The camera's day/night modes and current settings. */
8091
8187
  getOptions: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number() }), DayNightOptionsSchema),
8188
+ /** Change the camera's day/night mode, sensitivity or switch delay. */
8092
8189
  setSettings: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
8093
8190
  deviceId: /* @__PURE__ */ z.number(),
8094
8191
  settings: DayNightSettingsPatchSchema
@@ -8178,6 +8275,7 @@ var decoderCapability = {
8178
8275
  mode: "singleton",
8179
8276
  preferredProvider: "decoder-nodeav",
8180
8277
  methods: {
8278
+ /** The decoder's id, name and active hardware-acceleration state on this node. */
8181
8279
  getInfo: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.object({
8182
8280
  id: /* @__PURE__ */ z.string(),
8183
8281
  name: /* @__PURE__ */ z.string(),
@@ -8937,11 +9035,13 @@ var deviceStateRefreshCapability = {
8937
9035
  deviceNative: true,
8938
9036
  mode: "singleton",
8939
9037
  methods: {
9038
+ /** Re-read a device's state from the source now. */
8940
9039
  refresh: /* @__PURE__ */ method(DeviceStateRefreshInputSchema, DeviceStateRefreshResultSchema, {
8941
9040
  kind: "mutation",
8942
9041
  auth: "admin",
8943
9042
  notOperatorFacing: NOT_OPERATOR_FACING
8944
9043
  }),
9044
+ /** Re-establish a device's live state subscription. */
8945
9045
  resubscribe: /* @__PURE__ */ method(DeviceStateResubscribeInputSchema, DeviceStateRefreshResultSchema, {
8946
9046
  kind: "mutation",
8947
9047
  auth: "admin",
@@ -9166,6 +9266,7 @@ var dishwasherCapability = {
9166
9266
  }]
9167
9267
  }]
9168
9268
  }),
9269
+ /** Pause the running dishwasher program. */
9169
9270
  pause: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: DeviceIdSchema$2 }), /* @__PURE__ */ z.void(), {
9170
9271
  kind: "mutation",
9171
9272
  auth: "protected",
@@ -9176,6 +9277,7 @@ var dishwasherCapability = {
9176
9277
  icon: "pause"
9177
9278
  }]
9178
9279
  }),
9280
+ /** Resume a paused dishwasher program. */
9179
9281
  resume: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: DeviceIdSchema$2 }), /* @__PURE__ */ z.void(), {
9180
9282
  kind: "mutation",
9181
9283
  auth: "protected",
@@ -9186,6 +9288,7 @@ var dishwasherCapability = {
9186
9288
  icon: "play"
9187
9289
  }]
9188
9290
  }),
9291
+ /** Stop the running dishwasher program. */
9189
9292
  stop: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: DeviceIdSchema$2 }), /* @__PURE__ */ z.void(), {
9190
9293
  kind: "mutation",
9191
9294
  auth: "protected",
@@ -9219,6 +9322,7 @@ var dishwasherCapability = {
9219
9322
  }]
9220
9323
  }]
9221
9324
  }),
9325
+ /** Switch the dishwasher on or off. */
9222
9326
  setPower: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
9223
9327
  deviceId: DeviceIdSchema$2,
9224
9328
  on: /* @__PURE__ */ z.boolean()
@@ -9239,6 +9343,7 @@ var dishwasherCapability = {
9239
9343
  args: { on: false }
9240
9344
  }]
9241
9345
  }),
9346
+ /** Turn the half-load option on or off. */
9242
9347
  setHalfLoad: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
9243
9348
  deviceId: DeviceIdSchema$2,
9244
9349
  on: /* @__PURE__ */ z.boolean()
@@ -9259,6 +9364,7 @@ var dishwasherCapability = {
9259
9364
  args: { on: false }
9260
9365
  }]
9261
9366
  }),
9367
+ /** Turn the Hygiene Plus option on or off. */
9262
9368
  setHygienePlus: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
9263
9369
  deviceId: DeviceIdSchema$2,
9264
9370
  on: /* @__PURE__ */ z.boolean()
@@ -9279,6 +9385,7 @@ var dishwasherCapability = {
9279
9385
  args: { on: false }
9280
9386
  }]
9281
9387
  }),
9388
+ /** Turn the extra-dry option on or off. */
9282
9389
  setExtraDry: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
9283
9390
  deviceId: DeviceIdSchema$2,
9284
9391
  on: /* @__PURE__ */ z.boolean()
@@ -9299,6 +9406,7 @@ var dishwasherCapability = {
9299
9406
  args: { on: false }
9300
9407
  }]
9301
9408
  }),
9409
+ /** Turn the intensive-zone option on or off. */
9302
9410
  setIntensiveZone: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
9303
9411
  deviceId: DeviceIdSchema$2,
9304
9412
  on: /* @__PURE__ */ z.boolean()
@@ -9319,6 +9427,7 @@ var dishwasherCapability = {
9319
9427
  args: { on: false }
9320
9428
  }]
9321
9429
  }),
9430
+ /** Turn the speed-boost (VarioSpeed Plus) option on or off. */
9322
9431
  setVarioSpeedPlus: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
9323
9432
  deviceId: DeviceIdSchema$2,
9324
9433
  on: /* @__PURE__ */ z.boolean()
@@ -9339,6 +9448,7 @@ var dishwasherCapability = {
9339
9448
  args: { on: false }
9340
9449
  }]
9341
9450
  }),
9451
+ /** Turn the child lock on or off. */
9342
9452
  setChildLock: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
9343
9453
  deviceId: DeviceIdSchema$2,
9344
9454
  on: /* @__PURE__ */ z.boolean()
@@ -9544,14 +9654,17 @@ var displayPaletteCapability = {
9544
9654
  scope: "system",
9545
9655
  mode: "singleton",
9546
9656
  methods: {
9657
+ /** The cluster's colour palette. */
9547
9658
  getPalette: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), paletteResultSchema, {
9548
9659
  auth: "protected",
9549
9660
  role: "viewer"
9550
9661
  }),
9662
+ /** List the built-in palette presets. */
9551
9663
  listPresets: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.array(presetSummarySchema).readonly(), {
9552
9664
  auth: "protected",
9553
9665
  role: "viewer"
9554
9666
  }),
9667
+ /** Save a colour palette; refused when it fails the contrast rules. */
9555
9668
  setPalette: /* @__PURE__ */ method(setPaletteInputSchema, paletteReadySchema, {
9556
9669
  kind: "mutation",
9557
9670
  auth: "admin"
@@ -9581,7 +9694,9 @@ var doNotDisturbCapability = {
9581
9694
  deviceNative: true,
9582
9695
  mode: "singleton",
9583
9696
  deviceTypes: [DeviceType.MediaPlayer],
9584
- methods: { setEnabled: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
9697
+ methods: {
9698
+ /** Turn Do Not Disturb on or off for the device. */
9699
+ setEnabled: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
9585
9700
  deviceId: /* @__PURE__ */ z.number().int(),
9586
9701
  enabled: /* @__PURE__ */ z.boolean()
9587
9702
  }), /* @__PURE__ */ z.void(), {
@@ -10349,6 +10464,7 @@ var faceGalleryCapability = {
10349
10464
  scope: "system",
10350
10465
  mode: "singleton",
10351
10466
  methods: {
10467
+ /** List the known face identities in the gallery. */
10352
10468
  listIdentities: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
10353
10469
  /**
10354
10470
  * Inline {@link IdentitySchema.coverBase64} on every row.
@@ -10370,10 +10486,12 @@ var faceGalleryCapability = {
10370
10486
  * is what ships, and the opt-in becomes reachable when the train lands.
10371
10487
  */
10372
10488
  includeCrops: /* @__PURE__ */ z.boolean().optional() }).optional(), /* @__PURE__ */ z.array(IdentitySchema).readonly(), { role: "viewer" }),
10489
+ /** Create a named face identity. */
10373
10490
  createIdentity: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ name: /* @__PURE__ */ z.string().min(1) }), IdentitySchema, {
10374
10491
  kind: "mutation",
10375
10492
  auth: "admin"
10376
10493
  }),
10494
+ /** Rename a face identity. */
10377
10495
  renameIdentity: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
10378
10496
  id: /* @__PURE__ */ z.string(),
10379
10497
  name: /* @__PURE__ */ z.string().min(1)
@@ -10381,10 +10499,12 @@ includeCrops: /* @__PURE__ */ z.boolean().optional() }).optional(), /* @__PURE__
10381
10499
  kind: "mutation",
10382
10500
  auth: "admin"
10383
10501
  }),
10502
+ /** Delete a face identity. */
10384
10503
  deleteIdentity: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ id: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.void(), {
10385
10504
  kind: "mutation",
10386
10505
  auth: "admin"
10387
10506
  }),
10507
+ /** List the face samples assigned to an identity. */
10388
10508
  listIdentitySamples: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ identityId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.array(IdentitySampleInfoSchema).readonly()),
10389
10509
  /**
10390
10510
  * Re-analyse ONE person's enrolled samples against the whole gallery.
@@ -10399,6 +10519,7 @@ includeCrops: /* @__PURE__ */ z.boolean().optional() }).optional(), /* @__PURE__
10399
10519
  * delete would be one confirmation away from emptying a gallery.
10400
10520
  */
10401
10521
  auditIdentitySamples: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ identityId: /* @__PURE__ */ z.string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }),
10522
+ /** Remove one face sample from an identity. */
10402
10523
  removeSample: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
10403
10524
  identityId: /* @__PURE__ */ z.string(),
10404
10525
  sampleId: /* @__PURE__ */ z.string()
@@ -10418,6 +10539,7 @@ includeCrops: /* @__PURE__ */ z.boolean().optional() }).optional(), /* @__PURE__
10418
10539
  kind: "mutation",
10419
10540
  auth: "admin"
10420
10541
  }),
10542
+ /** List recently detected faces, optionally for one or several cameras. */
10421
10543
  listRecentFaces: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
10422
10544
  /**
10423
10545
  * Restrict to ONE camera. Absent keeps the cluster-wide gallery view.
@@ -10488,11 +10610,14 @@ includeCrops: /* @__PURE__ */ z.boolean().optional() }).optional(), /* @__PURE__
10488
10610
  */
10489
10611
  includeCrops: /* @__PURE__ */ z.boolean().optional()
10490
10612
  }).optional(), /* @__PURE__ */ z.array(FaceInfoSchema).readonly()),
10613
+ /** The face captured for a camera's track; null when none. */
10491
10614
  getFaceByTrack: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
10492
10615
  deviceId: /* @__PURE__ */ z.number().int(),
10493
10616
  trackId: /* @__PURE__ */ z.string()
10494
10617
  }), /* @__PURE__ */ FaceInfoSchema.nullable(), { role: "viewer" }),
10618
+ /** The media files (crops, frames) stored for one face. */
10495
10619
  getFaceMedia: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ faceId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.array(MediaFileLiteSchema$1).readonly()),
10620
+ /** Assign a detected face to an identity. */
10496
10621
  assignFace: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
10497
10622
  faceId: /* @__PURE__ */ z.string(),
10498
10623
  identityId: /* @__PURE__ */ z.string()
@@ -10500,6 +10625,7 @@ includeCrops: /* @__PURE__ */ z.boolean().optional() }).optional(), /* @__PURE__
10500
10625
  kind: "mutation",
10501
10626
  auth: "admin"
10502
10627
  }),
10628
+ /** Detach a detected face from its identity. */
10503
10629
  unassignFace: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ faceId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.void(), {
10504
10630
  kind: "mutation",
10505
10631
  auth: "admin"
@@ -10920,6 +11046,7 @@ var fanControlCapability = {
10920
11046
  mode: "singleton",
10921
11047
  deviceTypes: [DeviceType.Fan],
10922
11048
  methods: {
11049
+ /** Set the fan speed from 0 to 100. */
10923
11050
  setPercentage: /* @__PURE__ */ optionalMethod(/* @__PURE__ */ z.object({
10924
11051
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
10925
11052
  speed: /* @__PURE__ */ z.number().min(0).max(100)
@@ -10988,6 +11115,7 @@ var fanControlCapability = {
10988
11115
  }
10989
11116
  ]
10990
11117
  }),
11118
+ /** Set the fan preset mode. */
10991
11119
  setPreset: /* @__PURE__ */ optionalMethod(/* @__PURE__ */ z.object({
10992
11120
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
10993
11121
  preset: /* @__PURE__ */ z.string().min(1)
@@ -11014,6 +11142,7 @@ var fanControlCapability = {
11014
11142
  }]
11015
11143
  }]
11016
11144
  }),
11145
+ /** Set the fan rotation direction. */
11017
11146
  setDirection: /* @__PURE__ */ optionalMethod(/* @__PURE__ */ z.object({
11018
11147
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
11019
11148
  direction: FanDirectionSchema
@@ -11042,6 +11171,7 @@ var fanControlCapability = {
11042
11171
  args: { direction: "reverse" }
11043
11172
  }]
11044
11173
  }),
11174
+ /** Turn oscillation on or off. */
11045
11175
  setOscillating: /* @__PURE__ */ optionalMethod(/* @__PURE__ */ z.object({
11046
11176
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
11047
11177
  oscillating: /* @__PURE__ */ z.boolean()
@@ -11274,11 +11404,14 @@ var fanPresetsCapability = {
11274
11404
  scope: "system",
11275
11405
  mode: "singleton",
11276
11406
  methods: {
11407
+ /** The fan's saved presets. */
11277
11408
  getPresets: /* @__PURE__ */ method(deviceInput$1, /* @__PURE__ */ z.array(FanPresetSchema), { auth: "protected" }),
11409
+ /** Replace the fan's saved presets. */
11278
11410
  setPresets: /* @__PURE__ */ method(/* @__PURE__ */ deviceInput$1.extend({ presets: /* @__PURE__ */ z.array(FanPresetSchema).max(12) }), FanPresetsSetResultSchema, {
11279
11411
  kind: "mutation",
11280
11412
  auth: "admin"
11281
11413
  }),
11414
+ /** Apply a saved preset to the fan. */
11282
11415
  applyPreset: /* @__PURE__ */ method(/* @__PURE__ */ deviceInput$1.extend({ presetId: /* @__PURE__ */ z.string().min(1) }), FanPresetApplyResultSchema, {
11283
11416
  kind: "mutation",
11284
11417
  auth: "protected"
@@ -11826,6 +11959,7 @@ var heatPumpControlCapability = {
11826
11959
  }]
11827
11960
  }]
11828
11961
  }),
11962
+ /** Set the operation mode of a heating circuit. */
11829
11963
  setCircuitOperationMode: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
11830
11964
  deviceId,
11831
11965
  circuitId,
@@ -11841,6 +11975,7 @@ var heatPumpControlCapability = {
11841
11975
  openArgs: [HEATING_CIRCUIT, MODE_ARG]
11842
11976
  }]
11843
11977
  }),
11978
+ /** Set a circuit to heating or cooling. */
11844
11979
  setCircuitHeatCoolMode: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
11845
11980
  deviceId,
11846
11981
  circuitId,
@@ -11856,6 +11991,7 @@ var heatPumpControlCapability = {
11856
11991
  openArgs: [HEATING_CIRCUIT, MODE_ARG]
11857
11992
  }]
11858
11993
  }),
11994
+ /** Set a circuit's summer or winter mode. */
11859
11995
  setCircuitSummerWinter: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
11860
11996
  deviceId,
11861
11997
  circuitId,
@@ -11871,6 +12007,7 @@ var heatPumpControlCapability = {
11871
12007
  openArgs: [HEATING_CIRCUIT, MODE_ARG]
11872
12008
  }]
11873
12009
  }),
12010
+ /** Set a circuit's comfort temperature. */
11874
12011
  setCircuitComfortSetpoint: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
11875
12012
  deviceId,
11876
12013
  circuitId,
@@ -11886,6 +12023,7 @@ var heatPumpControlCapability = {
11886
12023
  openArgs: [HEATING_CIRCUIT, TEMP_ARG]
11887
12024
  }]
11888
12025
  }),
12026
+ /** Set a circuit's eco temperature. */
11889
12027
  setCircuitEcoSetpoint: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
11890
12028
  deviceId,
11891
12029
  circuitId,
@@ -11901,6 +12039,7 @@ var heatPumpControlCapability = {
11901
12039
  openArgs: [HEATING_CIRCUIT, TEMP_ARG]
11902
12040
  }]
11903
12041
  }),
12042
+ /** Set a circuit's maximum flow temperature. */
11904
12043
  setCircuitMaxFlowTemp: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
11905
12044
  deviceId,
11906
12045
  circuitId,
@@ -11916,6 +12055,7 @@ var heatPumpControlCapability = {
11916
12055
  openArgs: [HEATING_CIRCUIT, TEMP_ARG]
11917
12056
  }]
11918
12057
  }),
12058
+ /** Set the operation mode of the domestic hot water circuit. */
11919
12059
  setDhwOperationMode: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
11920
12060
  deviceId,
11921
12061
  circuitId,
@@ -11931,6 +12071,7 @@ var heatPumpControlCapability = {
11931
12071
  openArgs: [HOT_WATER_CIRCUIT, MODE_ARG]
11932
12072
  }]
11933
12073
  }),
12074
+ /** Set the hot water temperature level of a circuit. */
11934
12075
  setDhwTemperatureLevel: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
11935
12076
  deviceId,
11936
12077
  circuitId,
@@ -11946,6 +12087,7 @@ var heatPumpControlCapability = {
11946
12087
  openArgs: [HOT_WATER_CIRCUIT, LEVEL_ARG]
11947
12088
  }]
11948
12089
  }),
12090
+ /** Set how many minutes a hot water charge runs. */
11949
12091
  setDhwChargeDuration: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
11950
12092
  deviceId,
11951
12093
  circuitId,
@@ -12401,6 +12543,7 @@ var timedRunCapability = {
12401
12543
  tab: "general"
12402
12544
  } },
12403
12545
  methods: {
12546
+ /** The timed-run options of a device. */
12404
12547
  getOptions: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int() }), TimedRunOptionsSchema),
12405
12548
  /**
12406
12549
  * The one-tap run of this device. A duration above the type's maximum is
@@ -13693,6 +13836,7 @@ var humidifierCapability = {
13693
13836
  set: "setOn"
13694
13837
  },
13695
13838
  methods: {
13839
+ /** Turn the humidifier on or off. */
13696
13840
  setOn: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
13697
13841
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
13698
13842
  on: /* @__PURE__ */ z.boolean()
@@ -13721,6 +13865,7 @@ var humidifierCapability = {
13721
13865
  args: { on: false }
13722
13866
  }]
13723
13867
  }),
13868
+ /** Set the target humidity from 0 to 100. */
13724
13869
  setTargetHumidity: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
13725
13870
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
13726
13871
  humidity: /* @__PURE__ */ z.number().min(0).max(100)
@@ -13749,6 +13894,7 @@ var humidifierCapability = {
13749
13894
  }]
13750
13895
  }]
13751
13896
  }),
13897
+ /** Set the humidifier mode. */
13752
13898
  setMode: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
13753
13899
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
13754
13900
  mode: /* @__PURE__ */ z.string().min(1)
@@ -14080,7 +14226,9 @@ var imageSettingsCapability = {
14080
14226
  tab: "image"
14081
14227
  } },
14082
14228
  methods: {
14229
+ /** The camera's picture-adjustment options and current values. */
14083
14230
  getOptions: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number() }), ImageSettingsOptionsSchema),
14231
+ /** Change the camera's picture settings (brightness, contrast, orientation, exposure, ...). */
14084
14232
  setSettings: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
14085
14233
  deviceId: /* @__PURE__ */ z.number(),
14086
14234
  settings: ImageSettingsPatchSchema
@@ -14217,6 +14365,7 @@ var intercomCapability = {
14217
14365
  auth: "protected",
14218
14366
  notOperatorFacing: "live-stream session plumbing driven by a viewer, never a discrete step"
14219
14367
  }),
14368
+ /** Pass the viewer's SDP answer to an open two-way audio session. */
14220
14369
  handleAnswer: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
14221
14370
  deviceId: /* @__PURE__ */ z.number(),
14222
14371
  sessionId: /* @__PURE__ */ z.string(),
@@ -14427,6 +14576,7 @@ var irTransmitterCapability = {
14427
14576
  mode: "singleton",
14428
14577
  deviceTypes: [DeviceType.Generic],
14429
14578
  methods: {
14579
+ /** Transmit an infrared code, given as timings or a native code. */
14430
14580
  send: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
14431
14581
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
14432
14582
  timings: /* @__PURE__ */ IrTimingsSchema.optional(),
@@ -14437,6 +14587,7 @@ var irTransmitterCapability = {
14437
14587
  auth: "protected",
14438
14588
  notOperatorFacing: "a raw pulse train is not something an operator composes in an automation; the remote that owns the command table sends it"
14439
14589
  }),
14590
+ /** Listen for an infrared code from a remote and return it. */
14440
14591
  learn: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
14441
14592
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
14442
14593
  timeoutMs: /* @__PURE__ */ z.number().int().positive().max(IR_LEARN_TIMEOUT_MAX_MS).default(IR_LEARN_TIMEOUT_DEFAULT_MS)
@@ -14445,6 +14596,7 @@ var irTransmitterCapability = {
14445
14596
  auth: "protected",
14446
14597
  notOperatorFacing: "an interactive capture the operator starts from the source dialog and answers by pressing a physical remote; no automation can supply the signal"
14447
14598
  }),
14599
+ /** What the infrared transmitter supports. */
14448
14600
  getInfo: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() }), IrTransmitterInfoSchema, {
14449
14601
  kind: "query",
14450
14602
  auth: "protected"
@@ -14529,6 +14681,7 @@ var lawnMowerControlCapability = {
14529
14681
  mode: "singleton",
14530
14682
  deviceTypes: [DeviceType.LawnMower],
14531
14683
  methods: {
14684
+ /** Start mowing. */
14532
14685
  startMowing: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() }), /* @__PURE__ */ z.void(), {
14533
14686
  kind: "mutation",
14534
14687
  auth: "protected",
@@ -14539,6 +14692,7 @@ var lawnMowerControlCapability = {
14539
14692
  icon: "play"
14540
14693
  }]
14541
14694
  }),
14695
+ /** Pause mowing. */
14542
14696
  pause: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() }), /* @__PURE__ */ z.void(), {
14543
14697
  kind: "mutation",
14544
14698
  auth: "protected",
@@ -14549,6 +14703,7 @@ var lawnMowerControlCapability = {
14549
14703
  icon: "pause"
14550
14704
  }]
14551
14705
  }),
14706
+ /** Send the mower back to its dock. */
14552
14707
  dock: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() }), /* @__PURE__ */ z.void(), {
14553
14708
  kind: "mutation",
14554
14709
  auth: "protected",
@@ -15043,26 +15198,33 @@ var llmRuntimeCapability = {
15043
15198
  auth: "admin",
15044
15199
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
15045
15200
  }),
15201
+ /** Start the managed local model runtime on this node, loading the model, and report its status. */
15046
15202
  ensureStarted: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
15047
15203
  kind: "mutation",
15048
15204
  auth: "admin",
15049
15205
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
15050
15206
  }),
15207
+ /** Stop the local model runtime on this node. */
15051
15208
  stop: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), /* @__PURE__ */ z.void(), {
15052
15209
  kind: "mutation",
15053
15210
  auth: "admin"
15054
15211
  }),
15212
+ /** Whether the local model runtime on this node is running. */
15055
15213
  status: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), LlmRuntimeStatusSchema, { auth: "admin" }),
15214
+ /** Download a model file into this node's runtime. */
15056
15215
  installModel: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ model: ManagedModelRefSchema }), /* @__PURE__ */ z.void(), {
15057
15216
  kind: "mutation",
15058
15217
  auth: "admin",
15059
15218
  timeoutMs: AI_MODEL_INSTALL_TIMEOUT_MS
15060
15219
  }),
15220
+ /** Delete an installed model file from this node. */
15061
15221
  deleteModel: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ file: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.void(), {
15062
15222
  kind: "mutation",
15063
15223
  auth: "admin"
15064
15224
  }),
15225
+ /** List the model files installed on this node. */
15065
15226
  listLocalModels: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), /* @__PURE__ */ z.array(LlmNodeModelSchema), { auth: "admin" }),
15227
+ /** Disk space used by the models on this node. */
15066
15228
  getDiskUsage: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), LlmRuntimeDiskUsageSchema, { auth: "admin" }),
15067
15229
  /**
15068
15230
  * Stop a node-side generation started with a `requestId` — `complete` or
@@ -15080,6 +15242,7 @@ var llmRuntimeCapability = {
15080
15242
  * node refreshes in the background — it never waits on a probe.
15081
15243
  */
15082
15244
  appleAvailability: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), AppleFmAvailabilitySchema, { auth: "admin" }),
15245
+ /** Run a text completion on the on-device Apple model. */
15083
15246
  completeApple: /* @__PURE__ */ method(LlmRuntimeAppleCompleteInputSchema, LlmGenerateResultSchema, {
15084
15247
  kind: "mutation",
15085
15248
  auth: "admin",
@@ -15225,10 +15388,12 @@ var llmCapability = {
15225
15388
  /** `nodeId` inputs below are DATA (the hub provider pins itself), never routing. */
15226
15389
  nodeIdMode: "data",
15227
15390
  methods: {
15391
+ /** Run a text generation on a language model profile and return the result. */
15228
15392
  generate: /* @__PURE__ */ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
15229
15393
  kind: "mutation",
15230
15394
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
15231
15395
  }),
15396
+ /** Run a generation that includes images on a vision-capable model profile. */
15232
15397
  generateVision: /* @__PURE__ */ method(GenerateVisionInputSchema, LlmGenerateResultSchema, {
15233
15398
  kind: "mutation",
15234
15399
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
@@ -15255,7 +15420,9 @@ var llmCapability = {
15255
15420
  kind: "mutation",
15256
15421
  auth: "admin"
15257
15422
  }),
15423
+ /** The default model profile chosen for each LLM use. */
15258
15424
  getDefaults: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), /* @__PURE__ */ z.array(LlmDefaultSchema)),
15425
+ /** Choose the default model profile for one LLM use, or clear it with null. */
15259
15426
  setDefault: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
15260
15427
  selector: LlmDefaultSelectorSchema,
15261
15428
  profileId: /* @__PURE__ */ z.string().nullable()
@@ -15263,14 +15430,18 @@ var llmCapability = {
15263
15430
  kind: "mutation",
15264
15431
  auth: "admin"
15265
15432
  }),
15433
+ /** Token usage rolled up per consumer and profile, optionally within a time window. */
15266
15434
  getUsage: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
15267
15435
  since: /* @__PURE__ */ z.number().optional(),
15268
15436
  until: /* @__PURE__ */ z.number().optional(),
15269
15437
  consumer: /* @__PURE__ */ z.string().optional(),
15270
15438
  profileId: /* @__PURE__ */ z.string().optional()
15271
15439
  }), /* @__PURE__ */ z.array(LlmUsageRollupSchema)),
15440
+ /** List the models that can be installed on a runtime node. */
15272
15441
  listModelCatalog: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), /* @__PURE__ */ z.array(ManagedModelCatalogEntrySchema)),
15442
+ /** List the nodes that can host a local LLM runtime. */
15273
15443
  listRuntimeNodes: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), /* @__PURE__ */ z.array(LlmRuntimeNodeSchema)),
15444
+ /** List the model files installed on one node. */
15274
15445
  listNodeModels: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ nodeId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.array(LlmNodeModelSchema)),
15275
15446
  /**
15276
15447
  * One typed Hugging Face reference → a pinned, verified `ManagedModelRef`.
@@ -15291,6 +15462,7 @@ var llmCapability = {
15291
15462
  kind: "mutation",
15292
15463
  auth: "admin"
15293
15464
  }),
15465
+ /** Install a catalog model on a node. */
15294
15466
  installModel: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
15295
15467
  nodeId: /* @__PURE__ */ z.string(),
15296
15468
  model: ManagedModelRefSchema
@@ -15298,6 +15470,7 @@ var llmCapability = {
15298
15470
  kind: "mutation",
15299
15471
  auth: "admin"
15300
15472
  }),
15473
+ /** Delete an installed model file from a node. */
15301
15474
  deleteModel: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
15302
15475
  nodeId: /* @__PURE__ */ z.string(),
15303
15476
  file: /* @__PURE__ */ z.string()
@@ -15305,11 +15478,14 @@ var llmCapability = {
15305
15478
  kind: "mutation",
15306
15479
  auth: "admin"
15307
15480
  }),
15481
+ /** Whether the local runtime behind a profile is running, and its state. */
15308
15482
  getRuntimeStatus: /* @__PURE__ */ method(ProfileRefInputSchema, LlmRuntimeStatusSchema),
15483
+ /** Start the local runtime behind a profile. */
15309
15484
  startRuntime: /* @__PURE__ */ method(ProfileRefInputSchema, LlmRuntimeStatusSchema, {
15310
15485
  kind: "mutation",
15311
15486
  auth: "admin"
15312
15487
  }),
15488
+ /** Stop the local runtime behind a profile. */
15313
15489
  stopRuntime: /* @__PURE__ */ method(ProfileRefInputSchema, /* @__PURE__ */ z.void(), {
15314
15490
  kind: "mutation",
15315
15491
  auth: "admin"
@@ -15486,6 +15662,7 @@ var lockControlCapability = {
15486
15662
  mode: "singleton",
15487
15663
  deviceTypes: [DeviceType.Lock],
15488
15664
  methods: {
15665
+ /** Lock the lock, with a PIN code when it needs one. */
15489
15666
  lock: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
15490
15667
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
15491
15668
  /** Optional PIN code required by some keypad locks. NOT
@@ -15522,6 +15699,7 @@ var lockControlCapability = {
15522
15699
  }]
15523
15700
  }]
15524
15701
  }),
15702
+ /** Unlock the lock, with a PIN code when it needs one. */
15525
15703
  unlock: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
15526
15704
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
15527
15705
  code: /* @__PURE__ */ z.string().min(1).optional(),
@@ -15563,6 +15741,7 @@ var lockControlCapability = {
15563
15741
  }]
15564
15742
  }]
15565
15743
  }),
15744
+ /** Release the latch so the door can be opened. */
15566
15745
  open: /* @__PURE__ */ optionalMethod(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() }), /* @__PURE__ */ z.void(), {
15567
15746
  kind: "mutation",
15568
15747
  auth: "protected",
@@ -15845,7 +16024,9 @@ var loginMethodCapability = {
15845
16024
  scope: "system",
15846
16025
  mode: "collection",
15847
16026
  internal: true,
15848
- methods: { getLoginMethods: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.array(LoginMethodContributionSchema).readonly()) },
16027
+ methods: {
16028
+ /** List the sign-in methods this provider offers on the login page. */
16029
+ getLoginMethods: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.array(LoginMethodContributionSchema).readonly()) },
15849
16030
  /** BIG PLAN 2: declarative mount hint — read by `@camstack/server/system` `buildCapRouters`. */
15850
16031
  mount: { kind: "skip" },
15851
16032
  vocabulary: { notOperatorFacing: NOT_A_DEVICE.IDENTITY }
@@ -16121,7 +16302,9 @@ var modelConvertCapability = {
16121
16302
  scope: "system",
16122
16303
  mode: "singleton",
16123
16304
  internal: true,
16124
- methods: { convert: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
16305
+ methods: {
16306
+ /** Convert a model to another format; can take minutes. */
16307
+ convert: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
16125
16308
  sourceUrl: /* @__PURE__ */ z.string(),
16126
16309
  metadata: ModelConvertMetadataSchema,
16127
16310
  targets: /* @__PURE__ */ z.array(ConvertTargetSchema).min(1).readonly(),
@@ -16139,7 +16322,9 @@ var modelDistributorCapability = {
16139
16322
  scope: "system",
16140
16323
  mode: "singleton",
16141
16324
  internal: true,
16142
- methods: { distributeModel: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
16325
+ methods: {
16326
+ /** Push a model already on the hub to an agent node and verify it. */
16327
+ distributeModel: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
16143
16328
  targetNodeId: /* @__PURE__ */ z.string(),
16144
16329
  modelId: /* @__PURE__ */ z.string(),
16145
16330
  format: /* @__PURE__ */ z.enum(MODEL_FORMATS),
@@ -16434,7 +16619,9 @@ var pipelineExecutorCapability = {
16434
16619
  scope: "system",
16435
16620
  mode: "singleton",
16436
16621
  methods: {
16622
+ /** List the inference engines this executor can run pipelines on. */
16437
16623
  getAvailableEngines: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.array(PipelineEngineChoiceSchema)),
16624
+ /** The inference engine currently selected for this executor. */
16438
16625
  getSelectedEngine: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), PipelineEngineChoiceSchema),
16439
16626
  /**
16440
16627
  * Per-node detection-engine provisioning snapshot. Returns the live
@@ -16445,10 +16632,12 @@ var pipelineExecutorCapability = {
16445
16632
  * indicator without polling. Phase 2.
16446
16633
  */
16447
16634
  getEngineProvisioning: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ nodeId: /* @__PURE__ */ z.string() }), EngineProvisioningSchema),
16635
+ /** The configured video pipeline steps, keyed by step, with their model and settings. */
16448
16636
  getVideoPipelineSteps: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.object({
16449
16637
  modelId: /* @__PURE__ */ z.string(),
16450
16638
  settings: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.unknown()).readonly()
16451
16639
  }))),
16640
+ /** Replace the configured video pipeline steps (model and settings per step). */
16452
16641
  setVideoPipelineSteps: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ steps: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.object({
16453
16642
  modelId: /* @__PURE__ */ z.string(),
16454
16643
  settings: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.unknown()).readonly()
@@ -16516,7 +16705,9 @@ var pipelineExecutorCapability = {
16516
16705
  kind: "mutation",
16517
16706
  auth: "admin"
16518
16707
  }),
16708
+ /** The schema describing the pipeline stages and what each can be configured with. */
16519
16709
  getSchema: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), PipelineSchemaSchema),
16710
+ /** The configuration form schema of the pipeline orchestrator. */
16520
16711
  getOrchestratorConfigSchema: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), ConfigUISchemaBridge),
16521
16712
  /**
16522
16713
  * Gate B (pre-init config-correctness gate). PURE COMPUTE against this
@@ -16538,13 +16729,17 @@ var pipelineExecutorCapability = {
16538
16729
  steps: /* @__PURE__ */ z.array(PipelineStepInputSchema),
16539
16730
  deviceKey: /* @__PURE__ */ z.string().optional()
16540
16731
  }), PipelineValidationResultSchema),
16732
+ /** What this executor's inference hardware and runtimes can do. */
16541
16733
  getCapabilities: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), InferenceCapabilitiesBridge),
16734
+ /** List the models an addon offers and whether each is downloaded. */
16542
16735
  getAddonModels: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ addonId: /* @__PURE__ */ z.string() }), ModelAvailabilityListBridge),
16736
+ /** Download a model in the given format for an addon. */
16543
16737
  downloadModel: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
16544
16738
  addonId: /* @__PURE__ */ z.string(),
16545
16739
  modelId: /* @__PURE__ */ z.string(),
16546
16740
  format: ModelFormatSchema$1
16547
16741
  }), DownloadModelResultSchema, { kind: "mutation" }),
16742
+ /** Delete a downloaded model in the given format from an addon. */
16548
16743
  deleteModel: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
16549
16744
  addonId: /* @__PURE__ */ z.string(),
16550
16745
  modelId: /* @__PURE__ */ z.string(),
@@ -16789,17 +16984,24 @@ var pipelineExecutorCapability = {
16789
16984
  kind: "mutation",
16790
16985
  auth: "admin"
16791
16986
  }),
16987
+ /** List the reference images available for pipeline tests. */
16792
16988
  listReferenceImages: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.array(ReferenceImageEntrySchema).readonly()),
16989
+ /** Fetch one reference image by filename; null when missing. */
16793
16990
  getReferenceImage: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ filename: /* @__PURE__ */ z.string() }), /* @__PURE__ */ ReferenceImageBodySchema.nullable()),
16991
+ /** List the reference audio files available for audio pipeline tests. */
16794
16992
  getReferenceAudioFiles: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.array(ReferenceAudioEntrySchema).readonly()),
16993
+ /** Fetch one reference audio file by filename; null when missing. */
16795
16994
  getReferenceAudio: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ filename: /* @__PURE__ */ z.string() }), /* @__PURE__ */ ReferenceAudioBodySchema.nullable()),
16995
+ /** What audio classification this executor supports. */
16796
16996
  getAudioCapabilities: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), AudioCapabilitiesSchema),
16997
+ /** Run an audio model on a reference audio file and return what it detected. */
16797
16998
  runAudioTest: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
16798
16999
  addonId: /* @__PURE__ */ z.string(),
16799
17000
  modelId: /* @__PURE__ */ z.string(),
16800
17001
  filename: /* @__PURE__ */ z.string().optional(),
16801
17002
  settings: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.unknown()).optional()
16802
17003
  }), AudioTestResultSchema, { kind: "mutation" }),
17004
+ /** The configuration form schema of the detection stage; null when none. */
16803
17005
  getDetectionConfigSchema: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), ConfigUISchemaNullableBridge)
16804
17006
  },
16805
17007
  vocabulary: { notOperatorFacing: NOT_A_DEVICE.PIPELINE }
@@ -16853,7 +17055,9 @@ var motionTriggerCapability = {
16853
17055
  DeviceType.Siren,
16854
17056
  DeviceType.Switch
16855
17057
  ],
16856
- methods: { setMotionTrigger: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
17058
+ methods: {
17059
+ /** Turn on or off activating the accessory when the camera detects motion. */
17060
+ setMotionTrigger: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
16857
17061
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
16858
17062
  enabled: /* @__PURE__ */ z.boolean()
16859
17063
  }), /* @__PURE__ */ z.void(), {
@@ -16972,7 +17176,9 @@ var motionZonesCapability = {
16972
17176
  label: "Motion Zones"
16973
17177
  } },
16974
17178
  methods: {
17179
+ /** The camera's onboard motion zone options and current zone. */
16975
17180
  getOptions: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number() }), MotionZoneOptionsSchema),
17181
+ /** Change the camera's onboard motion zone. */
16976
17182
  setZone: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
16977
17183
  deviceId: /* @__PURE__ */ z.number(),
16978
17184
  patch: MotionZonePatchSchema
@@ -17114,24 +17320,31 @@ var mqttBrokerCapability = {
17114
17320
  kind: "poll"
17115
17321
  },
17116
17322
  methods: {
17323
+ /** List the configured MQTT brokers. */
17117
17324
  listBrokers: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.array(BrokerInfoSchema)),
17325
+ /** The connection details a client needs to connect to one broker. */
17118
17326
  getBrokerConfig: /* @__PURE__ */ method(IdInputSchema, BrokerConnectionDetailsSchema, { auth: "admin" }),
17327
+ /** Register an external MQTT broker. */
17119
17328
  addBroker: /* @__PURE__ */ method(AddBrokerInputSchema, AddBrokerResultSchema, {
17120
17329
  kind: "mutation",
17121
17330
  auth: "admin"
17122
17331
  }),
17332
+ /** Remove a configured MQTT broker. */
17123
17333
  removeBroker: /* @__PURE__ */ method(IdInputSchema, /* @__PURE__ */ z.void(), {
17124
17334
  kind: "mutation",
17125
17335
  auth: "admin"
17126
17336
  }),
17337
+ /** Start the embedded MQTT broker. */
17127
17338
  startEmbeddedBroker: /* @__PURE__ */ method(StartEmbeddedInputSchema, StartEmbeddedResultSchema, {
17128
17339
  kind: "mutation",
17129
17340
  auth: "admin"
17130
17341
  }),
17342
+ /** Stop the embedded MQTT broker. */
17131
17343
  stopEmbeddedBroker: /* @__PURE__ */ method(IdInputSchema, /* @__PURE__ */ z.void(), {
17132
17344
  kind: "mutation",
17133
17345
  auth: "admin"
17134
17346
  }),
17347
+ /** The status of the broker registry. */
17135
17348
  getStatus: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), StatusSchema)
17136
17349
  },
17137
17350
  vocabulary: { notOperatorFacing: NOT_A_DEVICE.NETWORK }
@@ -17231,7 +17444,9 @@ var nativeObjectDetectionCapability = {
17231
17444
  mode: "singleton",
17232
17445
  deviceTypes: [DeviceType.Camera],
17233
17446
  methods: {
17447
+ /** The object classes the camera's onboard detection supports and its current settings. */
17234
17448
  getOptions: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number() }), NativeObjectDetectionOptionsSchema),
17449
+ /** Change the camera's onboard object detection settings. */
17235
17450
  setSettings: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
17236
17451
  deviceId: /* @__PURE__ */ z.number(),
17237
17452
  settings: NativeObjectDetectionSettingsPatchSchema
@@ -17239,6 +17454,7 @@ var nativeObjectDetectionCapability = {
17239
17454
  kind: "mutation",
17240
17455
  auth: "admin"
17241
17456
  }),
17457
+ /** Turn the camera's onboard object detection on or off. */
17242
17458
  setEnabled: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
17243
17459
  deviceId: /* @__PURE__ */ z.number(),
17244
17460
  enabled: /* @__PURE__ */ z.boolean()
@@ -17981,8 +18197,11 @@ var networkQualityCapability = {
17981
18197
  scope: "system",
17982
18198
  mode: "singleton",
17983
18199
  methods: {
18200
+ /** Latency, jitter and bandwidth measured for one device; null when unknown. */
17984
18201
  getDeviceStats: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number() }), /* @__PURE__ */ DeviceNetworkStatsSchema.nullable()),
18202
+ /** Latency, jitter and bandwidth measured for every device. */
17985
18203
  getAllStats: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.array(DeviceNetworkStatsSchema).readonly()),
18204
+ /** Report a client's measured latency, jitter, bandwidth and packet loss for a device. */
17986
18205
  reportClientStats: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
17987
18206
  deviceId: /* @__PURE__ */ z.number(),
17988
18207
  rttMs: /* @__PURE__ */ z.number().min(0).max(6e4),
@@ -18327,6 +18546,7 @@ var nodesCapability = {
18327
18546
  mode: "singleton",
18328
18547
  nodeIdMode: "data",
18329
18548
  methods: {
18549
+ /** List every node in the cluster with its state, resources and processes. */
18330
18550
  topology: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.array(TopologyNodeSchema).readonly(), { auth: "admin" }),
18331
18551
  /**
18332
18552
  * The cheap node list for pickers (D637): the hub's in-memory registry plus
@@ -18334,18 +18554,22 @@ var nodesCapability = {
18334
18554
  * history could not be read.
18335
18555
  */
18336
18556
  directory: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), NodeDirectorySchema, { auth: "admin" }),
18557
+ /** Deploy an addon onto a node. */
18337
18558
  deployAddon: /* @__PURE__ */ method(NodeAddonInputSchema, SuccessSchema, {
18338
18559
  kind: "mutation",
18339
18560
  auth: "admin"
18340
18561
  }),
18562
+ /** Remove an addon from a node. */
18341
18563
  undeployAddon: /* @__PURE__ */ method(NodeAddonInputSchema, SuccessSchema, {
18342
18564
  kind: "mutation",
18343
18565
  auth: "admin"
18344
18566
  }),
18567
+ /** Restart one addon on a node. */
18345
18568
  restartAddon: /* @__PURE__ */ method(NodeAddonInputSchema, SuccessSchema, {
18346
18569
  kind: "mutation",
18347
18570
  auth: "admin"
18348
18571
  }),
18572
+ /** Restart one named process on a node. */
18349
18573
  restartProcess: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
18350
18574
  nodeId: /* @__PURE__ */ z.string(),
18351
18575
  processName: /* @__PURE__ */ z.string()
@@ -18353,14 +18577,17 @@ var nodesCapability = {
18353
18577
  kind: "mutation",
18354
18578
  auth: "admin"
18355
18579
  }),
18580
+ /** Restart a whole node. */
18356
18581
  restartNode: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ nodeId: /* @__PURE__ */ z.string() }), RestartNodeResultSchema, {
18357
18582
  kind: "mutation",
18358
18583
  auth: "admin"
18359
18584
  }),
18585
+ /** Shut a node down. */
18360
18586
  shutdownNode: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ nodeId: /* @__PURE__ */ z.string() }), SuccessSchema, {
18361
18587
  kind: "mutation",
18362
18588
  auth: "admin"
18363
18589
  }),
18590
+ /** Change a node's display name. */
18364
18591
  renameNode: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
18365
18592
  nodeId: /* @__PURE__ */ z.string(),
18366
18593
  name: /* @__PURE__ */ z.string().min(1).max(64)
@@ -18368,7 +18595,9 @@ var nodesCapability = {
18368
18595
  kind: "mutation",
18369
18596
  auth: "admin"
18370
18597
  }),
18598
+ /** Per-addon status across the cluster. */
18371
18599
  clusterAddonStatus: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), ClusterAddonStatusEntrySchema), { auth: "admin" }),
18600
+ /** Which capabilities call which others over the last window, as a graph of edges. */
18372
18601
  getCapUsageGraph: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ windowSeconds: /* @__PURE__ */ z.number().int().positive().max(300).default(60) }), /* @__PURE__ */ z.array(CapUsageEdgeSchema).readonly(), { auth: "admin" }),
18373
18602
  /**
18374
18603
  * Direct per-node addon listing — calls `$agent.status` on the target
@@ -18379,6 +18608,7 @@ var nodesCapability = {
18379
18608
  * is the one the per-node "Addons" tab should call.
18380
18609
  */
18381
18610
  getNodeAddons: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ nodeId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.array(NodeAddonEntrySchema).readonly(), { auth: "admin" }),
18611
+ /** Change the log level of a process on a node. */
18382
18612
  setProcessLogLevel: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
18383
18613
  nodeId: /* @__PURE__ */ z.string(),
18384
18614
  level: /* @__PURE__ */ z.string()
@@ -18386,6 +18616,7 @@ var nodesCapability = {
18386
18616
  kind: "mutation",
18387
18617
  auth: "admin"
18388
18618
  }),
18619
+ /** Run a named query of an addon on a specific node and return its result. */
18389
18620
  executeQuery: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
18390
18621
  nodeId: /* @__PURE__ */ z.string(),
18391
18622
  addonId: /* @__PURE__ */ z.string(),
@@ -18501,6 +18732,7 @@ var notifierCapability = {
18501
18732
  mode: "singleton",
18502
18733
  deviceTypes: [DeviceType.Notifier],
18503
18734
  methods: {
18735
+ /** Send a notification through this notifier. */
18504
18736
  send: /* @__PURE__ */ method(NotifierSendInputSchema, NotifierSendResultSchema, {
18505
18737
  kind: "mutation",
18506
18738
  auth: "admin",
@@ -18550,6 +18782,7 @@ var notifierCapability = {
18550
18782
  ]
18551
18783
  }]
18552
18784
  }),
18785
+ /** Cancel a notification that was sent earlier. */
18553
18786
  cancel: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
18554
18787
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
18555
18788
  notificationId: /* @__PURE__ */ z.string().min(1)
@@ -20241,6 +20474,60 @@ var HealthDigestAnswerSchema = /* @__PURE__ */ z.object({
20241
20474
  previous: /* @__PURE__ */ z.array(HealthDigestSchema).readonly()
20242
20475
  });
20243
20476
  //#endregion
20477
+ //#region ../types/dist/esm/pipeline/node-benchmark/capacity-verdict.mjs
20478
+ /**
20479
+ * The node capacity verdict: how many cameras a node carries, from what was
20480
+ * MEASURED on it. Pure.
20481
+ *
20482
+ * Two planes bound a node. Detection: the node total over its devices, each
20483
+ * at the cell for the model it runs NOW ({@link capacityForModel} — the same
20484
+ * predicate the automatic shares use; a device with no cell for its current
20485
+ * model contributes nothing). Decode: the streams the node decoded at the
20486
+ * camera rate. The verdict is the smaller of the two and names which one
20487
+ * limits.
20488
+ *
20489
+ * A plane that was not measured is `null`, never `0` (D393): the verdict of
20490
+ * one measured plane is that plane's number, flagged incomplete.
20491
+ */
20492
+ /** One device's part of the detection capacity. */
20493
+ var NodeCapacityDetectionCellSchema = /* @__PURE__ */ z.object({
20494
+ deviceKey: /* @__PURE__ */ z.string(),
20495
+ modelId: /* @__PURE__ */ z.string().nullable(),
20496
+ phase: /* @__PURE__ */ z.enum(["device", "pipeline"]),
20497
+ maxSessions: /* @__PURE__ */ z.number()
20498
+ });
20499
+ var NodeDetectionCapacitySchema = /* @__PURE__ */ z.object({
20500
+ /** The node total over `cells`. */
20501
+ maxSessions: /* @__PURE__ */ z.number(),
20502
+ /** The newest of the cells summed. */
20503
+ measuredAtMs: /* @__PURE__ */ z.number(),
20504
+ cells: /* @__PURE__ */ z.array(NodeCapacityDetectionCellSchema).readonly()
20505
+ });
20506
+ var NodeDecodeCapacitySchema = /* @__PURE__ */ z.object({
20507
+ /** Concurrent streams of `profile` the node decoded at the profile rate. */
20508
+ maxStreams: /* @__PURE__ */ z.number(),
20509
+ measuredAtMs: /* @__PURE__ */ z.number(),
20510
+ profile: NodeDecodeProfileSchema,
20511
+ /** Every stream ran on a hardware decoder (false = at least one in software). */
20512
+ hardware: /* @__PURE__ */ z.boolean(),
20513
+ decoder: /* @__PURE__ */ z.string()
20514
+ });
20515
+ var NodeCapacityLimitSchema = /* @__PURE__ */ z.enum(["decode", "detection"]);
20516
+ var NodeCapacityVerdictSchema = /* @__PURE__ */ z.object({
20517
+ nodeId: /* @__PURE__ */ z.string(),
20518
+ /** null = no fresh cell for a model a device runs now. */
20519
+ detection: /* @__PURE__ */ NodeDetectionCapacitySchema.nullable(),
20520
+ /** null = decode was not measured on this node. */
20521
+ decode: /* @__PURE__ */ NodeDecodeCapacitySchema.nullable(),
20522
+ /** The smaller of the measured planes; null when neither is measured. */
20523
+ capacity: /* @__PURE__ */ z.number().nullable(),
20524
+ /** Which plane limits; null unless BOTH are measured. A tie is `detection`. */
20525
+ limitedBy: /* @__PURE__ */ NodeCapacityLimitSchema.nullable(),
20526
+ /** Both planes measured and fresh. */
20527
+ complete: /* @__PURE__ */ z.boolean()
20528
+ });
20529
+ var GetNodeCapacityVerdictInputSchema = /* @__PURE__ */ z.object({ nodeId: /* @__PURE__ */ z.string().optional() });
20530
+ //#endregion
20244
20531
  //#region ../types/dist/esm/capabilities/pipeline-orchestrator.cap.mjs
20245
20532
  var CameraPipelineConfigSchema = /* @__PURE__ */ z.object({
20246
20533
  engine: /* @__PURE__ */ PipelineEngineChoiceSchema.optional(),
@@ -20923,6 +21210,7 @@ var pipelineOrchestratorCapability = {
20923
21210
  kind: "mutation",
20924
21211
  auth: "admin"
20925
21212
  }),
21213
+ /** Resume pipeline work that was paused for a storage migration. */
20926
21214
  resumeForStorageMigration: /* @__PURE__ */ method(StorageMigrationLeaseInputSchema, /* @__PURE__ */ z.object({ resumed: /* @__PURE__ */ z.literal(true) }), {
20927
21215
  kind: "mutation",
20928
21216
  auth: "admin"
@@ -21434,6 +21722,15 @@ var pipelineOrchestratorCapability = {
21434
21722
  getNodeBenchmarkCandidates: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ nodeId: /* @__PURE__ */ z.string() }), NodeBenchmarkCandidatesSchema, { auth: "admin" }),
21435
21723
  /** Node benchmark — stored results, newest first, each with its standing today. */
21436
21724
  listNodeBenchmarkResults: /* @__PURE__ */ method(ListNodeBenchmarkResultsInputSchema, /* @__PURE__ */ z.array(NodeBenchmarkResultViewSchema).readonly(), { auth: "admin" }),
21725
+ /**
21726
+ * Node capacity verdict — per node with any fresh measurement: the
21727
+ * detection capacity (the node total over its devices, each at the cell
21728
+ * for the model it runs now), the decode capacity, and the smaller of the
21729
+ * two with the plane that limits. The decode capacity is for the HEAVIEST
21730
+ * measured profile (the fewest streams), the one a node is sized for. A plane that was not measured is null,
21731
+ * never zero; `complete` is true only when both are measured and fresh.
21732
+ */
21733
+ getNodeCapacityVerdict: /* @__PURE__ */ method(GetNodeCapacityVerdictInputSchema, /* @__PURE__ */ z.array(NodeCapacityVerdictSchema).readonly(), { auth: "admin" }),
21437
21734
  /** Node benchmark — delete one result; Auto tune and the shares stop reading it. */
21438
21735
  deleteNodeBenchmarkResult: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ id: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.object({ deleted: /* @__PURE__ */ z.boolean() }), {
21439
21736
  kind: "mutation",
@@ -21508,6 +21805,8 @@ var pipelineOrchestratorCapability = {
21508
21805
  agentNodeId: /* @__PURE__ */ z.string().optional()
21509
21806
  }), CameraPipelineConfigSchema),
21510
21807
  /**
21808
+ * The per-camera function switches and whether each is on.
21809
+ *
21511
21810
  * @deprecated The aggregate switch group is being withdrawn
21512
21811
  * ([D113](../../../../docs/decisions/adr-0113.md)). Build nothing new on
21513
21812
  * this pair; read the authority directly.
@@ -21538,6 +21837,8 @@ var pipelineOrchestratorCapability = {
21538
21837
  */
21539
21838
  getCameraSwitches: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number() }), CameraSwitchGroupSchema, { role: "viewer" }),
21540
21839
  /**
21840
+ * Turn one of a camera's function switches on or off.
21841
+ *
21541
21842
  * @deprecated See {@link getCameraSwitches}. Write the authority — the
21542
21843
  * wrapper binding, `RecordingConfig.enabled`, the notification mute — not
21543
21844
  * this ([D113](../../../../docs/decisions/adr-0113.md)).
@@ -21729,6 +22030,7 @@ var plateGalleryCapability = {
21729
22030
  scope: "system",
21730
22031
  mode: "singleton",
21731
22032
  methods: {
22033
+ /** List recognised license plates, optionally for one camera, newest first. */
21732
22034
  listPlates: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
21733
22035
  deviceId: /* @__PURE__ */ z.number().int().optional(),
21734
22036
  limit: /* @__PURE__ */ z.number().int().positive().optional(),
@@ -21751,10 +22053,12 @@ var plateGalleryCapability = {
21751
22053
  */
21752
22054
  includeCrops: /* @__PURE__ */ z.boolean().optional()
21753
22055
  }).optional(), /* @__PURE__ */ z.array(PlateInfoSchema).readonly()),
22056
+ /** The plate read for a camera's track; null when none. */
21754
22057
  getPlateByTrack: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
21755
22058
  deviceId: /* @__PURE__ */ z.number().int(),
21756
22059
  trackId: /* @__PURE__ */ z.string()
21757
22060
  }), /* @__PURE__ */ PlateInfoSchema.nullable(), { role: "viewer" }),
22061
+ /** The media files (crops, frames) stored for one plate. */
21758
22062
  getPlateMedia: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ plateId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.array(MediaFileLiteSchema).readonly()),
21759
22063
  /** Proximity search: plates whose folded text is within `maxDistance` edits of `text`. */
21760
22064
  searchPlates: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
@@ -21778,10 +22082,12 @@ var plateGalleryCapability = {
21778
22082
  kind: "mutation",
21779
22083
  auth: "admin"
21780
22084
  }),
22085
+ /** Delete one recognised plate and its media. */
21781
22086
  deletePlate: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ plateId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.void(), {
21782
22087
  kind: "mutation",
21783
22088
  auth: "admin"
21784
22089
  }),
22090
+ /** List the vehicles (named groups of plates) in the gallery. */
21785
22091
  listVehicles: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
21786
22092
  /** Inline {@link VehicleSchema.coverBase64} on every row. Default
21787
22093
  * `false` — the vehicle twin of `faceGallery.listIdentities`'s
@@ -21789,10 +22095,12 @@ var plateGalleryCapability = {
21789
22095
  * INPUT field: stripped by the hub router until the train ships, which
21790
22096
  * resolves to `false` and is exactly the intended default. */
21791
22097
  includeCrops: /* @__PURE__ */ z.boolean().optional() }).optional(), /* @__PURE__ */ z.array(VehicleSchema).readonly()),
22098
+ /** Create a named vehicle. */
21792
22099
  createVehicle: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ name: /* @__PURE__ */ z.string().min(1) }), VehicleSchema, {
21793
22100
  kind: "mutation",
21794
22101
  auth: "admin"
21795
22102
  }),
22103
+ /** Rename a vehicle. */
21796
22104
  renameVehicle: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
21797
22105
  id: /* @__PURE__ */ z.string(),
21798
22106
  name: /* @__PURE__ */ z.string().min(1)
@@ -21800,11 +22108,14 @@ includeCrops: /* @__PURE__ */ z.boolean().optional() }).optional(), /* @__PURE__
21800
22108
  kind: "mutation",
21801
22109
  auth: "admin"
21802
22110
  }),
22111
+ /** Delete a vehicle. */
21803
22112
  deleteVehicle: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ id: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.void(), {
21804
22113
  kind: "mutation",
21805
22114
  auth: "admin"
21806
22115
  }),
22116
+ /** List the plate samples assigned to a vehicle. */
21807
22117
  listVehicleSamples: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ vehicleId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.array(VehicleSampleInfoSchema).readonly()),
22118
+ /** Remove one plate sample from a vehicle. */
21808
22119
  removeVehicleSample: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
21809
22120
  vehicleId: /* @__PURE__ */ z.string(),
21810
22121
  sampleId: /* @__PURE__ */ z.string()
@@ -21824,6 +22135,7 @@ includeCrops: /* @__PURE__ */ z.boolean().optional() }).optional(), /* @__PURE__
21824
22135
  kind: "mutation",
21825
22136
  auth: "admin"
21826
22137
  }),
22138
+ /** Assign a recognised plate to a vehicle. */
21827
22139
  assignPlate: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
21828
22140
  plateId: /* @__PURE__ */ z.string(),
21829
22141
  vehicleId: /* @__PURE__ */ z.string()
@@ -21831,10 +22143,12 @@ includeCrops: /* @__PURE__ */ z.boolean().optional() }).optional(), /* @__PURE__
21831
22143
  kind: "mutation",
21832
22144
  auth: "admin"
21833
22145
  }),
22146
+ /** Detach a recognised plate from its vehicle. */
21834
22147
  unassignPlate: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ plateId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.void(), {
21835
22148
  kind: "mutation",
21836
22149
  auth: "admin"
21837
22150
  }),
22151
+ /** Assign several plates to a vehicle; reports how many succeeded and which failed. */
21838
22152
  assignPlates: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
21839
22153
  plateIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).min(1),
21840
22154
  vehicleId: /* @__PURE__ */ z.string()
@@ -21845,6 +22159,7 @@ includeCrops: /* @__PURE__ */ z.boolean().optional() }).optional(), /* @__PURE__
21845
22159
  kind: "mutation",
21846
22160
  auth: "admin"
21847
22161
  }),
22162
+ /** Detach several plates from their vehicles; reports how many succeeded and which failed. */
21848
22163
  unassignPlates: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ plateIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).min(1) }), /* @__PURE__ */ z.object({
21849
22164
  unassigned: /* @__PURE__ */ z.number().int(),
21850
22165
  failed: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).readonly()
@@ -22337,7 +22652,9 @@ var privacyMaskCapability = {
22337
22652
  label: "Privacy Mask"
22338
22653
  } },
22339
22654
  methods: {
22655
+ /** The camera's privacy mask options and current mask. */
22340
22656
  getOptions: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number() }), PrivacyMaskOptionsSchema),
22657
+ /** Change the camera's privacy mask. */
22341
22658
  setMask: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
22342
22659
  deviceId: /* @__PURE__ */ z.number(),
22343
22660
  patch: PrivacyMaskPatchSchema
@@ -22632,10 +22949,12 @@ var ptzCapability = {
22632
22949
  order: 0
22633
22950
  } },
22634
22951
  methods: {
22952
+ /** Nudge the camera by a relative pan, tilt or zoom step. */
22635
22953
  move: /* @__PURE__ */ method(/* @__PURE__ */ PtzMoveCommandSchema.extend({ deviceId: /* @__PURE__ */ z.number() }), /* @__PURE__ */ z.void(), {
22636
22954
  kind: "mutation",
22637
22955
  notOperatorFacing: "a relative nudge from the live-view joystick; a fixed place is a preset"
22638
22956
  }),
22957
+ /** Move the camera continuously until stopped. */
22639
22958
  continuousMove: /* @__PURE__ */ method(/* @__PURE__ */ PtzMoveCommandSchema.extend({ deviceId: /* @__PURE__ */ z.number() }), /* @__PURE__ */ z.void(), {
22640
22959
  kind: "mutation",
22641
22960
  notOperatorFacing: "joystick motion held until released — continuous, not a discrete step"
@@ -22654,7 +22973,9 @@ var ptzCapability = {
22654
22973
  icon: "house"
22655
22974
  }]
22656
22975
  }),
22976
+ /** List the camera's PTZ presets. */
22657
22977
  getPresets: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number() }), /* @__PURE__ */ z.array(PtzPresetSchema)),
22978
+ /** Move the camera to a preset. */
22658
22979
  goToPreset: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
22659
22980
  deviceId: /* @__PURE__ */ z.number(),
22660
22981
  presetId: /* @__PURE__ */ z.string()
@@ -22678,6 +22999,7 @@ var ptzCapability = {
22678
22999
  }]
22679
23000
  }]
22680
23001
  }),
23002
+ /** Save the camera's current position as a named preset. */
22681
23003
  savePreset: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
22682
23004
  deviceId: /* @__PURE__ */ z.number(),
22683
23005
  presetId: /* @__PURE__ */ z.string(),
@@ -22707,6 +23029,7 @@ var ptzCapability = {
22707
23029
  }]
22708
23030
  }]
22709
23031
  }),
23032
+ /** Delete a PTZ preset. */
22710
23033
  deletePreset: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
22711
23034
  deviceId: /* @__PURE__ */ z.number(),
22712
23035
  presetId: /* @__PURE__ */ z.string()
@@ -22714,7 +23037,9 @@ var ptzCapability = {
22714
23037
  kind: "mutation",
22715
23038
  auth: "admin"
22716
23039
  }),
23040
+ /** What the camera's PTZ supports (axes, speeds, presets). */
22717
23041
  getOptions: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number() }), PtzOptionsSchema),
23042
+ /** Stop any PTZ movement. */
22718
23043
  stop: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number() }), /* @__PURE__ */ z.void(), {
22719
23044
  kind: "mutation",
22720
23045
  actions: [{
@@ -23044,7 +23369,9 @@ var rebootCapability = {
23044
23369
  DeviceType.Switch,
23045
23370
  DeviceType.Gateway
23046
23371
  ],
23047
- methods: { reboot: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() }), /* @__PURE__ */ z.object({ success: /* @__PURE__ */ z.literal(true) }), {
23372
+ methods: {
23373
+ /** Reboot the device. */
23374
+ reboot: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() }), /* @__PURE__ */ z.object({ success: /* @__PURE__ */ z.literal(true) }), {
23048
23375
  kind: "mutation",
23049
23376
  auth: "admin",
23050
23377
  actions: [{
@@ -23562,6 +23889,7 @@ var videoclipsCapability = {
23562
23889
  order: 100
23563
23890
  } },
23564
23891
  methods: {
23892
+ /** List a camera's clips in a time window, from every clip source. */
23565
23893
  listClips: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
23566
23894
  deviceId: /* @__PURE__ */ z.number(),
23567
23895
  since: /* @__PURE__ */ z.number(),
@@ -23620,6 +23948,7 @@ var videoclipsCapability = {
23620
23948
  kind: "query",
23621
23949
  auth: "protected"
23622
23950
  }),
23951
+ /** How to play one clip, at the requested quality. */
23623
23952
  getClipPlayback: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
23624
23953
  deviceId: /* @__PURE__ */ z.number(),
23625
23954
  clipId: /* @__PURE__ */ z.string(),
@@ -24212,6 +24541,7 @@ var recordingExportCapability = {
24212
24541
  kind: "query",
24213
24542
  auth: "protected"
24214
24543
  }),
24544
+ /** Fetch one footage export and its state. */
24215
24545
  getExport: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ exportId: /* @__PURE__ */ z.string() }), ExportRecordSchema, {
24216
24546
  role: "viewer",
24217
24547
  kind: "query",
@@ -24229,6 +24559,7 @@ var recordingExportCapability = {
24229
24559
  kind: "mutation",
24230
24560
  auth: "protected"
24231
24561
  }),
24562
+ /** A download link for a finished export. */
24232
24563
  getDownloadUrl: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ exportId: /* @__PURE__ */ z.string() }), ExportDownloadSchema, {
24233
24564
  role: "viewer",
24234
24565
  kind: "query",
@@ -24596,7 +24927,9 @@ var recordingOnboardCapability = {
24596
24927
  tab: "recording"
24597
24928
  } },
24598
24929
  methods: {
24930
+ /** The camera's onboard recording options and current settings. */
24599
24931
  getOptions: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number() }), RecordingOnboardOptionsSchema),
24932
+ /** Change the camera's onboard recording settings. */
24600
24933
  setSettings: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
24601
24934
  deviceId: /* @__PURE__ */ z.number(),
24602
24935
  settings: RecordingOnboardPatchSchema
@@ -25247,12 +25580,16 @@ var remoteCapability = {
25247
25580
  scope: "system",
25248
25581
  mode: "singleton",
25249
25582
  methods: {
25583
+ /** The remote-control button layout bound to a device. */
25250
25584
  getConfig: /* @__PURE__ */ method(deviceInput, RemoteConfigSchema, { auth: "admin" }),
25585
+ /** Save the remote-control button layout of a device. */
25251
25586
  setConfig: /* @__PURE__ */ method(/* @__PURE__ */ deviceInput.extend({ config: RemoteConfigSchema }), RemoteSetConfigResultSchema, {
25252
25587
  kind: "mutation",
25253
25588
  auth: "admin"
25254
25589
  }),
25590
+ /** List the commands a device's remote can send. */
25255
25591
  listCommands: /* @__PURE__ */ method(deviceInput, RemoteCommandListSchema, { auth: "protected" }),
25592
+ /** Send a remote button role to the device, optionally repeated. */
25256
25593
  sendCommand: /* @__PURE__ */ method(/* @__PURE__ */ deviceInput.extend({
25257
25594
  role: RemoteRoleSchema,
25258
25595
  /** Sends in a row (volume steps). */
@@ -25273,6 +25610,7 @@ var remoteCapability = {
25273
25610
  * media-player status's own composition (D967 amendment).
25274
25611
  */
25275
25612
  getAssumedStatus: /* @__PURE__ */ method(deviceInput, /* @__PURE__ */ MediaPlayerStatusSchema.nullable(), { auth: "protected" }),
25613
+ /** Send a media command (play, pause, volume, source, channel) to the device's remote. */
25276
25614
  sendMediaCommand: /* @__PURE__ */ method(/* @__PURE__ */ deviceInput.extend({
25277
25615
  command: RemoteMediaCommandSchema,
25278
25616
  muted: /* @__PURE__ */ z.boolean().optional(),
@@ -25391,7 +25729,9 @@ var remoteLayoutComponentsCapability = {
25391
25729
  name: "remote-layout-components",
25392
25730
  scope: "system",
25393
25731
  mode: "collection",
25394
- methods: { listComponents: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), /* @__PURE__ */ z.array(RemoteLayoutComponentSchema), { auth: "protected" }) },
25732
+ methods: {
25733
+ /** List the components offered by the remote layout editor's palette. */
25734
+ listComponents: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), /* @__PURE__ */ z.array(RemoteLayoutComponentSchema), { auth: "protected" }) },
25395
25735
  vocabulary: { notOperatorFacing: "the palette of the remote template editor — read-only data, never actuated" }
25396
25736
  };
25397
25737
  //#endregion
@@ -25422,7 +25762,9 @@ var resyncCapability = {
25422
25762
  DeviceType.Workload,
25423
25763
  DeviceType.WeatherStation
25424
25764
  ],
25425
- methods: { resync: /* @__PURE__ */ method(ResyncDeviceInputSchema, ResyncResultSchema, {
25765
+ methods: {
25766
+ /** Re-align a device with its upstream source. */
25767
+ resync: /* @__PURE__ */ method(ResyncDeviceInputSchema, ResyncResultSchema, {
25426
25768
  kind: "mutation",
25427
25769
  auth: "admin",
25428
25770
  notOperatorFacing: "device adoption — re-aligning a device with its source is an onboarding step, not an automation action"
@@ -25901,6 +26243,7 @@ var sceneMonitorCapability = {
25901
26243
  defaultActive: true,
25902
26244
  deviceTypes: [DeviceType.Camera],
25903
26245
  methods: {
26246
+ /** List the camera's scene monitors with their current state. */
25904
26247
  listScenes: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number() }), SceneMonitorStatusSchema),
25905
26248
  /**
25906
26249
  * The same answer, for a SET of cameras, in one round trip.
@@ -25918,6 +26261,7 @@ var sceneMonitorCapability = {
25918
26261
  * tell which two are missing, or that any are.
25919
26262
  */
25920
26263
  listScenesBatch: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.number()).min(1).max(200) }), /* @__PURE__ */ z.array(SceneMonitorStatusForDeviceSchema).readonly()),
26264
+ /** Create a scene monitor on a region of the camera frame. */
25921
26265
  createScene: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
25922
26266
  deviceId: /* @__PURE__ */ z.number(),
25923
26267
  label: /* @__PURE__ */ z.string(),
@@ -25933,6 +26277,7 @@ var sceneMonitorCapability = {
25933
26277
  kind: "mutation",
25934
26278
  auth: "admin"
25935
26279
  }),
26280
+ /** Change a scene monitor's label, region, trigger or enabled state. */
25936
26281
  updateScene: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
25937
26282
  deviceId: /* @__PURE__ */ z.number(),
25938
26283
  monitorId: /* @__PURE__ */ z.string(),
@@ -25960,6 +26305,7 @@ var sceneMonitorCapability = {
25960
26305
  kind: "mutation",
25961
26306
  auth: "admin"
25962
26307
  }),
26308
+ /** Delete a scene monitor. */
25963
26309
  deleteScene: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
25964
26310
  deviceId: /* @__PURE__ */ z.number(),
25965
26311
  monitorId: /* @__PURE__ */ z.string()
@@ -25967,6 +26313,7 @@ var sceneMonitorCapability = {
25967
26313
  kind: "mutation",
25968
26314
  auth: "admin"
25969
26315
  }),
26316
+ /** Capture a reference image of the region for one of the monitor's states. */
25970
26317
  captureReference: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
25971
26318
  deviceId: /* @__PURE__ */ z.number(),
25972
26319
  monitorId: /* @__PURE__ */ z.string(),
@@ -25980,6 +26327,7 @@ var sceneMonitorCapability = {
25980
26327
  kind: "mutation",
25981
26328
  auth: "admin"
25982
26329
  }),
26330
+ /** Delete one reference image of a state. */
25983
26331
  deleteReference: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
25984
26332
  deviceId: /* @__PURE__ */ z.number(),
25985
26333
  monitorId: /* @__PURE__ */ z.string(),
@@ -25989,6 +26337,7 @@ var sceneMonitorCapability = {
25989
26337
  kind: "mutation",
25990
26338
  auth: "admin"
25991
26339
  }),
26340
+ /** Re-evaluate a scene monitor immediately. */
25992
26341
  recheckNow: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
25993
26342
  deviceId: /* @__PURE__ */ z.number(),
25994
26343
  monitorId: /* @__PURE__ */ z.string()
@@ -26079,8 +26428,11 @@ var schedulersCapability = {
26079
26428
  scope: "system",
26080
26429
  mode: "singleton",
26081
26430
  methods: {
26431
+ /** List the schedulers. */
26082
26432
  list: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), /* @__PURE__ */ z.array(SchedulerSchema), { auth: "admin" }),
26433
+ /** Fetch one scheduler by id; null when absent. */
26083
26434
  get: /* @__PURE__ */ method(SchedulerIdInput, /* @__PURE__ */ z.object({ scheduler: /* @__PURE__ */ SchedulerSchema.nullable() }), { auth: "admin" }),
26435
+ /** Create or replace a scheduler. */
26084
26436
  create: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ scheduler: SchedulerInputSchema }), /* @__PURE__ */ z.object({ scheduler: SchedulerSchema }), {
26085
26437
  kind: "mutation",
26086
26438
  auth: "admin"
@@ -26093,6 +26445,7 @@ var schedulersCapability = {
26093
26445
  kind: "mutation",
26094
26446
  auth: "admin"
26095
26447
  }),
26448
+ /** Delete a scheduler. */
26096
26449
  delete: /* @__PURE__ */ method(SchedulerIdInput, /* @__PURE__ */ z.void(), {
26097
26450
  kind: "mutation",
26098
26451
  auth: "admin"
@@ -26128,6 +26481,7 @@ var schedulersCapability = {
26128
26481
  }), /* @__PURE__ */ z.object({ conflicts: /* @__PURE__ */ z.array(SchedulerConflictSchema) }), { auth: "admin" }),
26129
26482
  /** Where each scheduler's current hold stands. */
26130
26483
  getStatus: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), /* @__PURE__ */ z.array(SchedulerStatusSchema), { auth: "admin" }),
26484
+ /** The recent run traces of a scheduler. */
26131
26485
  getTraces: /* @__PURE__ */ method(SchedulerIdInput, /* @__PURE__ */ z.object({ traces: /* @__PURE__ */ z.array(AutomationRunTraceSchema) }), { auth: "admin" })
26132
26486
  },
26133
26487
  vocabulary: { notOperatorFacing: "time schedulers — authored on their own page, not device actions" }
@@ -26164,6 +26518,7 @@ var scriptRunnerCapability = {
26164
26518
  mode: "singleton",
26165
26519
  deviceTypes: [DeviceType.Script],
26166
26520
  methods: {
26521
+ /** Run the script, optionally with variables. */
26167
26522
  run: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
26168
26523
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
26169
26524
  /** Optional variables map — passed through to the upstream
@@ -26707,11 +27062,14 @@ var serverManagementCapability = {
26707
27062
  scope: "system",
26708
27063
  mode: "singleton",
26709
27064
  methods: {
27065
+ /** The node's running and installed server version and its update state. */
26710
27066
  getServerPackageStatus: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), ServerPackageStatusSchema, { auth: "admin" }),
27067
+ /** Check the registry for a newer server version for this node. */
26711
27068
  checkServerUpdate: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), ServerUpdateCheckResultSchema, {
26712
27069
  kind: "mutation",
26713
27070
  auth: "admin"
26714
27071
  }),
27072
+ /** Install a server version (latest when none is given) on this node and restart it. */
26715
27073
  applyServerUpdate: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
26716
27074
  /** Explicit target version; omitted = latest from the registry. */
26717
27075
  version: /* @__PURE__ */ z.string().optional(),
@@ -26739,6 +27097,7 @@ var serverManagementCapability = {
26739
27097
  kind: "mutation",
26740
27098
  auth: "admin"
26741
27099
  }),
27100
+ /** Return this node to its previously installed server version. */
26742
27101
  rollbackServerUpdate: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), ServerUpdateActionResultSchema, {
26743
27102
  kind: "mutation",
26744
27103
  auth: "admin"
@@ -27067,6 +27426,7 @@ var smtpProviderCapability = {
27067
27426
  internal: true,
27068
27427
  providerKind: "email",
27069
27428
  methods: {
27429
+ /** Send an email through this relay. */
27070
27430
  sendEmail: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
27071
27431
  instanceId: InstanceIdSchema,
27072
27432
  to: /* @__PURE__ */ z.union([EmailAddressSchema, /* @__PURE__ */ z.array(EmailAddressSchema).min(1)]),
@@ -27098,6 +27458,7 @@ var smtpProviderCapability = {
27098
27458
  auth: "admin",
27099
27459
  access: "create"
27100
27460
  }),
27461
+ /** The status of one SMTP relay. */
27101
27462
  getStatus: /* @__PURE__ */ method(RelayPinSchema, /* @__PURE__ */ z.object({
27102
27463
  /** True iff the addon has successfully verified the relay. */
27103
27464
  ready: /* @__PURE__ */ z.boolean(),
@@ -27276,7 +27637,9 @@ var streamParamsCapability = {
27276
27637
  tab: "streaming"
27277
27638
  } },
27278
27639
  methods: {
27640
+ /** The camera's stream profiles and their encoding options. */
27279
27641
  getOptions: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number() }), StreamParamsOptionsSchema),
27642
+ /** Change the encoding settings of one stream profile. */
27280
27643
  setProfile: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
27281
27644
  deviceId: /* @__PURE__ */ z.number(),
27282
27645
  profile: StreamProfileSchema,
@@ -27506,6 +27869,7 @@ var switchCapability = {
27506
27869
  DeviceType.Fan
27507
27870
  ],
27508
27871
  methods: {
27872
+ /** Turn the switch on or off. */
27509
27873
  setState: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
27510
27874
  deviceId: /* @__PURE__ */ z.number(),
27511
27875
  on: /* @__PURE__ */ z.boolean()
@@ -27536,12 +27900,15 @@ var switchCapability = {
27536
27900
  offeredWhen: SWITCH_SETTABLE_GATE
27537
27901
  }]
27538
27902
  }),
27903
+ /** The options the switch supports. */
27539
27904
  getOptions: /* @__PURE__ */ optionalMethod(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number() }), SwitchOptionsSchema, { auth: "protected" }),
27905
+ /** Power-cycle the device the switch powers. */
27540
27906
  powerCycle: /* @__PURE__ */ optionalMethod(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number() }), /* @__PURE__ */ z.void(), {
27541
27907
  kind: "mutation",
27542
27908
  auth: "protected",
27543
27909
  notOperatorFacing: "a power cycle is the forced restart of the device the switch powers (power-source), never a step of its own"
27544
27910
  }),
27911
+ /** Flip the switch to the opposite state. */
27545
27912
  toggle: /* @__PURE__ */ optionalMethod(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number() }), /* @__PURE__ */ z.void(), {
27546
27913
  kind: "mutation",
27547
27914
  auth: "protected",
@@ -28347,15 +28714,22 @@ var systemCapability = {
28347
28714
  scope: "system",
28348
28715
  mode: "singleton",
28349
28716
  methods: {
28717
+ /** Basic information about the system (version, platform, uptime). */
28350
28718
  info: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), SystemInfoSchema),
28719
+ /** The overall health status of the system. */
28351
28720
  health: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), HealthStatusSchema),
28721
+ /** Which features are enabled in this installation. */
28352
28722
  featureFlags: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), FeatureManifestSchema),
28723
+ /** The network addresses of this hub's interfaces. */
28353
28724
  networkAddresses: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.array(NetworkAddressSchema).readonly()),
28725
+ /** The analytics data retention settings. */
28354
28726
  getRetentionConfig: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.unknown().nullable(), { auth: "admin" }),
28727
+ /** Change the analytics data retention settings. */
28355
28728
  setRetentionConfig: /* @__PURE__ */ method(/* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.unknown()), /* @__PURE__ */ z.null(), {
28356
28729
  kind: "mutation",
28357
28730
  auth: "admin"
28358
28731
  }),
28732
+ /** Run the retention cleanup now instead of waiting for the schedule. */
28359
28733
  forceRetentionCleanup: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.void(), {
28360
28734
  kind: "mutation",
28361
28735
  auth: "admin"
@@ -29475,8 +29849,11 @@ var templateCapability = {
29475
29849
  scope: "system",
29476
29850
  mode: "collection",
29477
29851
  methods: {
29852
+ /** List the stored templates, optionally of one kind. */
29478
29853
  list: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ kind: /* @__PURE__ */ TemplateKindSchema.optional() }), /* @__PURE__ */ z.array(TemplateRecordSchema), { auth: "protected" }),
29854
+ /** Fetch one template by id; null when absent. */
29479
29855
  get: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ id: /* @__PURE__ */ z.string().min(1) }), /* @__PURE__ */ TemplateRecordSchema.nullable(), { auth: "protected" }),
29856
+ /** Create a template of a given kind with a name and payload. */
29480
29857
  create: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
29481
29858
  kind: TemplateKindSchema,
29482
29859
  name: /* @__PURE__ */ z.string().min(1).max(120),
@@ -29486,6 +29863,7 @@ var templateCapability = {
29486
29863
  kind: "mutation",
29487
29864
  auth: "admin"
29488
29865
  }),
29866
+ /** Change a template's name, payload or tags. */
29489
29867
  update: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
29490
29868
  id: /* @__PURE__ */ z.string().min(1),
29491
29869
  name: /* @__PURE__ */ z.string().min(1).max(120).optional(),
@@ -29495,6 +29873,7 @@ var templateCapability = {
29495
29873
  kind: "mutation",
29496
29874
  auth: "admin"
29497
29875
  }),
29876
+ /** Delete a template. */
29498
29877
  delete: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ id: /* @__PURE__ */ z.string().min(1) }), TemplateDeleteResultSchema, {
29499
29878
  kind: "mutation",
29500
29879
  auth: "admin"
@@ -29696,7 +30075,9 @@ var toastCapability = {
29696
30075
  name: "toast",
29697
30076
  scope: "system",
29698
30077
  mode: "singleton",
29699
- methods: { onToast: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), ToastSchema, { kind: "subscription" }) },
30078
+ methods: {
30079
+ /** Stream toast notifications from the hub to the admin UI. */
30080
+ onToast: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), ToastSchema, { kind: "subscription" }) },
29700
30081
  /** BIG PLAN 2: declarative mount hint — read by `@camstack/server/system` `buildCapRouters`. */
29701
30082
  mount: { kind: "server-provided" },
29702
30083
  vocabulary: { notOperatorFacing: NOT_A_DEVICE.UI_PLUMBING }
@@ -29916,6 +30297,7 @@ var trainingProviderCapability = {
29916
30297
  auth: "admin",
29917
30298
  timeoutMs: 30 * 6e4
29918
30299
  }),
30300
+ /** The status of a training job on the cloud provider. */
29919
30301
  getJob: /* @__PURE__ */ method(/* @__PURE__ */ z.object(JobRef), ProviderJobStatusSchema, {
29920
30302
  auth: "admin",
29921
30303
  timeoutMs: 6e4
@@ -30219,6 +30601,7 @@ var trainingCapability = {
30219
30601
  mode: "singleton",
30220
30602
  mount: { kind: "hub-only" },
30221
30603
  methods: {
30604
+ /** List the base models a training job can start from. */
30222
30605
  listBaseModels: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), /* @__PURE__ */ z.array(TrainingBaseModelSchema).readonly(), { auth: "admin" }),
30223
30606
  /** Split, estimate, defaults and any named refusal — nothing is started. */
30224
30607
  planJob: /* @__PURE__ */ method(TrainingJobRequestSchema, TrainingJobPlanSchema, {
@@ -30273,8 +30656,11 @@ var trainingCapability = {
30273
30656
  auth: "admin",
30274
30657
  timeoutMs: 12e4
30275
30658
  }),
30659
+ /** List the training jobs. */
30276
30660
  listJobs: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), /* @__PURE__ */ z.array(TrainingJobSchema).readonly(), { auth: "admin" }),
30661
+ /** Fetch one training job; null when unknown. */
30277
30662
  getJob: /* @__PURE__ */ method(IdInput, /* @__PURE__ */ TrainingJobSchema.nullable(), { auth: "admin" }),
30663
+ /** Cancel a training job. */
30278
30664
  cancelJob: /* @__PURE__ */ method(IdInput, TrainingJobSchema, {
30279
30665
  kind: "mutation",
30280
30666
  auth: "admin",
@@ -30377,7 +30763,9 @@ var updateCapability = {
30377
30763
  deviceNative: true,
30378
30764
  mode: "singleton",
30379
30765
  deviceTypes: [DeviceType.Update],
30380
- methods: { installUpdate: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.void(), {
30766
+ methods: {
30767
+ /** Install the available update. */
30768
+ installUpdate: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.void(), {
30381
30769
  kind: "mutation",
30382
30770
  auth: "admin",
30383
30771
  actions: [{
@@ -30491,6 +30879,7 @@ var userPasskeysCapability = {
30491
30879
  mode: "collection",
30492
30880
  internal: true,
30493
30881
  methods: {
30882
+ /** Start enrolling a passkey for a user and return the WebAuthn creation options for the browser. */
30494
30883
  beginRegistration: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
30495
30884
  userId: /* @__PURE__ */ z.string(),
30496
30885
  username: /* @__PURE__ */ z.string()
@@ -30499,6 +30888,7 @@ var userPasskeysCapability = {
30499
30888
  auth: "admin",
30500
30889
  access: "create"
30501
30890
  }),
30891
+ /** Verify the browser's registration response and store the new passkey under a label. */
30502
30892
  finishRegistration: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
30503
30893
  userId: /* @__PURE__ */ z.string(),
30504
30894
  /** RegistrationResponseJSON from the browser. */
@@ -30536,6 +30926,7 @@ var userPasskeysCapability = {
30536
30926
  access: "view",
30537
30927
  auth: "admin"
30538
30928
  }),
30929
+ /** Verify a passkey sign-in assertion for a known user. */
30539
30930
  finishAuthentication: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
30540
30931
  /** Required — the user the assertion belongs to (verified). */
30541
30932
  userId: /* @__PURE__ */ z.string(),
@@ -30546,11 +30937,13 @@ var userPasskeysCapability = {
30546
30937
  access: "view",
30547
30938
  auth: "admin"
30548
30939
  }),
30940
+ /** Start a passkey sign-in without naming the user and return the WebAuthn request options. */
30549
30941
  beginDiscoverableAuthentication: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), /* @__PURE__ */ z.object({ optionsJSON: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.unknown()) }), {
30550
30942
  kind: "mutation",
30551
30943
  access: "view",
30552
30944
  auth: "admin"
30553
30945
  }),
30946
+ /** Verify a discoverable passkey assertion and identify the user who owns the credential. */
30554
30947
  finishDiscoverableAuthentication: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
30555
30948
  /** AuthenticationResponseJSON from the browser. */
30556
30949
  response: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.unknown()) }), /* @__PURE__ */ z.object({
@@ -30561,7 +30954,9 @@ response: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z
30561
30954
  access: "view",
30562
30955
  auth: "admin"
30563
30956
  }),
30957
+ /** List the passkeys enrolled by a user. */
30564
30958
  listPasskeys: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ userId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.array(PasskeySummarySchema), { auth: "admin" }),
30959
+ /** Remove one enrolled passkey from a user. */
30565
30960
  removePasskey: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
30566
30961
  userId: /* @__PURE__ */ z.string(),
30567
30962
  credentialId: /* @__PURE__ */ z.string()
@@ -30570,7 +30965,9 @@ response: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z
30570
30965
  auth: "admin",
30571
30966
  access: "delete"
30572
30967
  }),
30968
+ /** Whether a user requires a second factor at sign-in. */
30573
30969
  getSecondFactorPreference: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ userId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.object({ enabled: /* @__PURE__ */ z.boolean() }), { auth: "admin" }),
30970
+ /** Turn the second-factor requirement on or off for a user. */
30574
30971
  setSecondFactorPreference: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
30575
30972
  userId: /* @__PURE__ */ z.string(),
30576
30973
  enabled: /* @__PURE__ */ z.boolean()
@@ -30640,6 +31037,7 @@ var vacuumControlCapability = {
30640
31037
  mode: "singleton",
30641
31038
  deviceTypes: [DeviceType.Vacuum],
30642
31039
  methods: {
31040
+ /** Start a cleaning run. */
30643
31041
  start: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() }), /* @__PURE__ */ z.void(), {
30644
31042
  kind: "mutation",
30645
31043
  auth: "protected",
@@ -30650,6 +31048,7 @@ var vacuumControlCapability = {
30650
31048
  icon: "play"
30651
31049
  }]
30652
31050
  }),
31051
+ /** Pause the cleaning run. */
30653
31052
  pause: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() }), /* @__PURE__ */ z.void(), {
30654
31053
  kind: "mutation",
30655
31054
  auth: "protected",
@@ -30660,6 +31059,7 @@ var vacuumControlCapability = {
30660
31059
  icon: "pause"
30661
31060
  }]
30662
31061
  }),
31062
+ /** Stop the cleaning run. */
30663
31063
  stop: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() }), /* @__PURE__ */ z.void(), {
30664
31064
  kind: "mutation",
30665
31065
  auth: "protected",
@@ -30670,6 +31070,7 @@ var vacuumControlCapability = {
30670
31070
  icon: "square"
30671
31071
  }]
30672
31072
  }),
31073
+ /** Send the vacuum back to its dock. */
30673
31074
  returnToBase: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() }), /* @__PURE__ */ z.void(), {
30674
31075
  kind: "mutation",
30675
31076
  auth: "protected",
@@ -30680,6 +31081,7 @@ var vacuumControlCapability = {
30680
31081
  icon: "house"
30681
31082
  }]
30682
31083
  }),
31084
+ /** Make the vacuum beep so it can be found. */
30683
31085
  locate: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() }), /* @__PURE__ */ z.void(), {
30684
31086
  kind: "mutation",
30685
31087
  auth: "protected",
@@ -30690,6 +31092,7 @@ var vacuumControlCapability = {
30690
31092
  icon: "map-pin"
30691
31093
  }]
30692
31094
  }),
31095
+ /** Set the suction (fan speed) level. */
30693
31096
  setFanSpeed: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
30694
31097
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
30695
31098
  speed: /* @__PURE__ */ z.string().min(1)
@@ -30832,6 +31235,7 @@ var valveCapability = {
30832
31235
  mode: "singleton",
30833
31236
  deviceTypes: [DeviceType.Valve],
30834
31237
  methods: {
31238
+ /** Open the valve. */
30835
31239
  open: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() }), /* @__PURE__ */ z.void(), {
30836
31240
  kind: "mutation",
30837
31241
  auth: "protected",
@@ -30846,6 +31250,7 @@ var valveCapability = {
30846
31250
  }
30847
31251
  }]
30848
31252
  }),
31253
+ /** Close the valve. */
30849
31254
  close: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() }), /* @__PURE__ */ z.void(), {
30850
31255
  kind: "mutation",
30851
31256
  auth: "protected",
@@ -30860,6 +31265,7 @@ var valveCapability = {
30860
31265
  }
30861
31266
  }]
30862
31267
  }),
31268
+ /** Stop the valve where it is. */
30863
31269
  stop: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() }), /* @__PURE__ */ z.void(), {
30864
31270
  kind: "mutation",
30865
31271
  auth: "protected",
@@ -30870,6 +31276,7 @@ var valveCapability = {
30870
31276
  icon: "square"
30871
31277
  }]
30872
31278
  }),
31279
+ /** Set the valve opening from 0 to 100. */
30873
31280
  setPosition: /* @__PURE__ */ optionalMethod(/* @__PURE__ */ z.object({
30874
31281
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
30875
31282
  position: /* @__PURE__ */ z.number().min(0).max(100)
@@ -31051,6 +31458,7 @@ var viewerUiCapability = {
31051
31458
  * user from loading the app.
31052
31459
  */
31053
31460
  getStaticDir: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), StaticDirOutputSchema, { auth: "admin" }),
31461
+ /** The version of the viewer web build served by the hub. */
31054
31462
  getVersion: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), VersionOutputSchema, { auth: "admin" })
31055
31463
  },
31056
31464
  vocabulary: { notOperatorFacing: NOT_A_DEVICE.UI_PLUMBING }
@@ -31111,6 +31519,7 @@ var waterHeaterCapability = {
31111
31519
  lastField: "lastActiveMode"
31112
31520
  },
31113
31521
  methods: {
31522
+ /** Set the water heater operation mode. */
31114
31523
  setOperationMode: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
31115
31524
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
31116
31525
  mode: /* @__PURE__ */ z.string().min(1)
@@ -31147,6 +31556,7 @@ var waterHeaterCapability = {
31147
31556
  }]
31148
31557
  }]
31149
31558
  }),
31559
+ /** Turn away mode on or off. */
31150
31560
  setAway: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
31151
31561
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
31152
31562
  on: /* @__PURE__ */ z.boolean()
@@ -31175,6 +31585,7 @@ var waterHeaterCapability = {
31175
31585
  args: { on: false }
31176
31586
  }]
31177
31587
  }),
31588
+ /** Set the target water temperature. */
31178
31589
  setTargetTemp: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
31179
31590
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
31180
31591
  temp: /* @__PURE__ */ z.number().finite()
@@ -32103,6 +32514,7 @@ var webrtcSessionCapability = {
32103
32514
  kind: "mutation",
32104
32515
  notOperatorFacing: "live-stream session plumbing driven by a viewer, never a discrete step"
32105
32516
  }),
32517
+ /** Pass the viewer's SDP answer to an open WebRTC session. */
32106
32518
  handleAnswer: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
32107
32519
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
32108
32520
  sessionId: /* @__PURE__ */ z.string(),
@@ -32146,6 +32558,7 @@ var webrtcSessionCapability = {
32146
32558
  })),
32147
32559
  done: /* @__PURE__ */ z.boolean()
32148
32560
  }), { kind: "query" }),
32561
+ /** Close a WebRTC session. */
32149
32562
  closeSession: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
32150
32563
  deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
32151
32564
  sessionId: /* @__PURE__ */ z.string()
@@ -32395,6 +32808,7 @@ var workloadCapability = {
32395
32808
  off: "stop"
32396
32809
  },
32397
32810
  methods: {
32811
+ /** Start the workload (VM, container or app). */
32398
32812
  start: /* @__PURE__ */ optionalMethod(WorkloadDeviceInputSchema, /* @__PURE__ */ z.void(), {
32399
32813
  kind: "mutation",
32400
32814
  auth: "protected",
@@ -32409,6 +32823,7 @@ var workloadCapability = {
32409
32823
  }
32410
32824
  }]
32411
32825
  }),
32826
+ /** Stop the workload gracefully. */
32412
32827
  stop: /* @__PURE__ */ optionalMethod(WorkloadDeviceInputSchema, /* @__PURE__ */ z.void(), {
32413
32828
  kind: "mutation",
32414
32829
  auth: "protected",
@@ -32423,6 +32838,7 @@ var workloadCapability = {
32423
32838
  }
32424
32839
  }]
32425
32840
  }),
32841
+ /** Restart the workload. */
32426
32842
  restart: /* @__PURE__ */ optionalMethod(WorkloadDeviceInputSchema, /* @__PURE__ */ z.void(), {
32427
32843
  kind: "mutation",
32428
32844
  auth: "protected",
@@ -32433,6 +32849,7 @@ var workloadCapability = {
32433
32849
  icon: "rotate-ccw"
32434
32850
  }]
32435
32851
  }),
32852
+ /** Pause the workload. */
32436
32853
  pause: /* @__PURE__ */ optionalMethod(WorkloadDeviceInputSchema, /* @__PURE__ */ z.void(), {
32437
32854
  kind: "mutation",
32438
32855
  auth: "protected",
@@ -32447,6 +32864,7 @@ var workloadCapability = {
32447
32864
  }
32448
32865
  }]
32449
32866
  }),
32867
+ /** Resume a paused workload. */
32450
32868
  resume: /* @__PURE__ */ optionalMethod(WorkloadDeviceInputSchema, /* @__PURE__ */ z.void(), {
32451
32869
  kind: "mutation",
32452
32870
  auth: "protected",
@@ -32461,6 +32879,7 @@ var workloadCapability = {
32461
32879
  }
32462
32880
  }]
32463
32881
  }),
32882
+ /** Stop the workload immediately without a graceful shutdown. */
32464
32883
  forceStop: /* @__PURE__ */ optionalMethod(WorkloadDeviceInputSchema, /* @__PURE__ */ z.void(), {
32465
32884
  kind: "mutation",
32466
32885
  auth: "admin",