@camstack/types 0.1.14 → 0.1.16

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 (467) hide show
  1. package/dist/addon/base-addon.d.ts +262 -0
  2. package/dist/addon/base-addon.d.ts.map +1 -0
  3. package/dist/auth-records-BDg37fy9.mjs +8297 -0
  4. package/dist/auth-records-BDg37fy9.mjs.map +1 -0
  5. package/dist/auth-records-D5ZNaUos.js +8296 -0
  6. package/dist/auth-records-D5ZNaUos.js.map +1 -0
  7. package/dist/capabilities/accessories.cap.d.ts +42 -0
  8. package/dist/capabilities/accessories.cap.d.ts.map +1 -0
  9. package/dist/capabilities/addon-pages-source.cap.d.ts +41 -0
  10. package/dist/capabilities/addon-pages-source.cap.d.ts.map +1 -0
  11. package/dist/capabilities/addon-pages.cap.d.ts +36 -0
  12. package/dist/capabilities/addon-pages.cap.d.ts.map +1 -0
  13. package/dist/capabilities/addon-routes.cap.d.ts +22 -0
  14. package/dist/capabilities/addon-routes.cap.d.ts.map +1 -0
  15. package/dist/capabilities/addon-settings.cap.d.ts +170 -0
  16. package/dist/capabilities/addon-settings.cap.d.ts.map +1 -0
  17. package/dist/capabilities/addon-widgets-source.cap.d.ts +103 -0
  18. package/dist/capabilities/addon-widgets-source.cap.d.ts.map +1 -0
  19. package/dist/capabilities/addon-widgets.cap.d.ts +98 -0
  20. package/dist/capabilities/addon-widgets.cap.d.ts.map +1 -0
  21. package/dist/capabilities/addons.cap.d.ts +356 -0
  22. package/dist/capabilities/addons.cap.d.ts.map +1 -0
  23. package/dist/capabilities/admin-ui.cap.d.ts +14 -0
  24. package/dist/capabilities/admin-ui.cap.d.ts.map +1 -0
  25. package/dist/capabilities/advanced-notifier.cap.d.ts +60 -0
  26. package/dist/capabilities/advanced-notifier.cap.d.ts.map +1 -0
  27. package/dist/capabilities/alerts.cap.d.ts +164 -0
  28. package/dist/capabilities/alerts.cap.d.ts.map +1 -0
  29. package/dist/capabilities/audio-analysis.cap.d.ts +46 -0
  30. package/dist/capabilities/audio-analysis.cap.d.ts.map +1 -0
  31. package/dist/capabilities/audio-analyzer.cap.d.ts +148 -0
  32. package/dist/capabilities/audio-analyzer.cap.d.ts.map +1 -0
  33. package/dist/capabilities/audio-codec.cap.d.ts +202 -0
  34. package/dist/capabilities/audio-codec.cap.d.ts.map +1 -0
  35. package/dist/capabilities/audio-metrics.cap.d.ts +174 -0
  36. package/dist/capabilities/audio-metrics.cap.d.ts.map +1 -0
  37. package/dist/capabilities/auth-provider.cap.d.ts +49 -0
  38. package/dist/capabilities/auth-provider.cap.d.ts.map +1 -0
  39. package/dist/capabilities/authentication.cap.d.ts +83 -0
  40. package/dist/capabilities/authentication.cap.d.ts.map +1 -0
  41. package/dist/capabilities/backup.cap.d.ts +269 -0
  42. package/dist/capabilities/backup.cap.d.ts.map +1 -0
  43. package/dist/capabilities/battery.cap.d.ts +85 -0
  44. package/dist/capabilities/battery.cap.d.ts.map +1 -0
  45. package/dist/capabilities/brightness.cap.d.ts +64 -0
  46. package/dist/capabilities/brightness.cap.d.ts.map +1 -0
  47. package/dist/capabilities/camera-credentials.cap.d.ts +102 -0
  48. package/dist/capabilities/camera-credentials.cap.d.ts.map +1 -0
  49. package/dist/capabilities/camera-streams.cap.d.ts +214 -0
  50. package/dist/capabilities/camera-streams.cap.d.ts.map +1 -0
  51. package/dist/capabilities/capability-definition.d.ts +474 -0
  52. package/dist/capabilities/capability-definition.d.ts.map +1 -0
  53. package/dist/capabilities/custom-actions.d.ts +47 -0
  54. package/dist/capabilities/custom-actions.d.ts.map +1 -0
  55. package/dist/capabilities/decoder.cap.d.ts +173 -0
  56. package/dist/capabilities/decoder.cap.d.ts.map +1 -0
  57. package/dist/capabilities/detection-pipeline.cap.d.ts +34 -0
  58. package/dist/capabilities/detection-pipeline.cap.d.ts.map +1 -0
  59. package/dist/capabilities/device-discovery.cap.d.ts +247 -0
  60. package/dist/capabilities/device-discovery.cap.d.ts.map +1 -0
  61. package/dist/capabilities/device-manager.cap.d.ts +709 -0
  62. package/dist/capabilities/device-manager.cap.d.ts.map +1 -0
  63. package/dist/capabilities/device-ops.cap.d.ts +87 -0
  64. package/dist/capabilities/device-ops.cap.d.ts.map +1 -0
  65. package/dist/capabilities/device-provider.cap.d.ts +151 -0
  66. package/dist/capabilities/device-provider.cap.d.ts.map +1 -0
  67. package/dist/capabilities/device-state.cap.d.ts +97 -0
  68. package/dist/capabilities/device-state.cap.d.ts.map +1 -0
  69. package/dist/capabilities/device-status.cap.d.ts +54 -0
  70. package/dist/capabilities/device-status.cap.d.ts.map +1 -0
  71. package/dist/capabilities/doorbell.cap.d.ts +62 -0
  72. package/dist/capabilities/doorbell.cap.d.ts.map +1 -0
  73. package/dist/capabilities/embedding-encoder.cap.d.ts +41 -0
  74. package/dist/capabilities/embedding-encoder.cap.d.ts.map +1 -0
  75. package/dist/capabilities/events.cap.d.ts +48 -0
  76. package/dist/capabilities/events.cap.d.ts.map +1 -0
  77. package/dist/capabilities/feature-probe.cap.d.ts +79 -0
  78. package/dist/capabilities/feature-probe.cap.d.ts.map +1 -0
  79. package/dist/capabilities/index.d.ts +191 -0
  80. package/dist/capabilities/index.d.ts.map +1 -0
  81. package/dist/capabilities/integrations.cap.d.ts +182 -0
  82. package/dist/capabilities/integrations.cap.d.ts.map +1 -0
  83. package/dist/capabilities/intercom.cap.d.ts +108 -0
  84. package/dist/capabilities/intercom.cap.d.ts.map +1 -0
  85. package/dist/capabilities/local-network.cap.d.ts +216 -0
  86. package/dist/capabilities/local-network.cap.d.ts.map +1 -0
  87. package/dist/capabilities/log-destination.cap.d.ts +70 -0
  88. package/dist/capabilities/log-destination.cap.d.ts.map +1 -0
  89. package/dist/capabilities/mesh-network.cap.d.ts +160 -0
  90. package/dist/capabilities/mesh-network.cap.d.ts.map +1 -0
  91. package/dist/capabilities/mesh-orchestrator.cap.d.ts +96 -0
  92. package/dist/capabilities/mesh-orchestrator.cap.d.ts.map +1 -0
  93. package/dist/capabilities/metrics-provider.cap.d.ts +522 -0
  94. package/dist/capabilities/metrics-provider.cap.d.ts.map +1 -0
  95. package/dist/capabilities/motion-detection.cap.d.ts +107 -0
  96. package/dist/capabilities/motion-detection.cap.d.ts.map +1 -0
  97. package/dist/capabilities/motion-trigger.cap.d.ts +78 -0
  98. package/dist/capabilities/motion-trigger.cap.d.ts.map +1 -0
  99. package/dist/capabilities/motion.cap.d.ts +122 -0
  100. package/dist/capabilities/motion.cap.d.ts.map +1 -0
  101. package/dist/capabilities/native-object-detection.cap.d.ts +127 -0
  102. package/dist/capabilities/native-object-detection.cap.d.ts.map +1 -0
  103. package/dist/capabilities/network-access.cap.d.ts +67 -0
  104. package/dist/capabilities/network-access.cap.d.ts.map +1 -0
  105. package/dist/capabilities/network-quality.cap.d.ts +95 -0
  106. package/dist/capabilities/network-quality.cap.d.ts.map +1 -0
  107. package/dist/capabilities/nodes.cap.d.ts +200 -0
  108. package/dist/capabilities/nodes.cap.d.ts.map +1 -0
  109. package/dist/capabilities/notification-output.cap.d.ts +44 -0
  110. package/dist/capabilities/notification-output.cap.d.ts.map +1 -0
  111. package/dist/capabilities/osd.cap.d.ts +236 -0
  112. package/dist/capabilities/osd.cap.d.ts.map +1 -0
  113. package/dist/capabilities/pipeline-analytics.cap.d.ts +501 -0
  114. package/dist/capabilities/pipeline-analytics.cap.d.ts.map +1 -0
  115. package/dist/capabilities/pipeline-executor.cap.d.ts +922 -0
  116. package/dist/capabilities/pipeline-executor.cap.d.ts.map +1 -0
  117. package/dist/capabilities/pipeline-orchestrator.cap.d.ts +793 -0
  118. package/dist/capabilities/pipeline-orchestrator.cap.d.ts.map +1 -0
  119. package/dist/capabilities/pipeline-runner.cap.d.ts +393 -0
  120. package/dist/capabilities/pipeline-runner.cap.d.ts.map +1 -0
  121. package/dist/capabilities/platform-probe.cap.d.ts +168 -0
  122. package/dist/capabilities/platform-probe.cap.d.ts.map +1 -0
  123. package/dist/capabilities/ptz-autotrack.cap.d.ts +188 -0
  124. package/dist/capabilities/ptz-autotrack.cap.d.ts.map +1 -0
  125. package/dist/capabilities/ptz.cap.d.ts +80 -0
  126. package/dist/capabilities/ptz.cap.d.ts.map +1 -0
  127. package/dist/capabilities/reboot.cap.d.ts +32 -0
  128. package/dist/capabilities/reboot.cap.d.ts.map +1 -0
  129. package/dist/capabilities/recording-engine.cap.d.ts +477 -0
  130. package/dist/capabilities/recording-engine.cap.d.ts.map +1 -0
  131. package/dist/capabilities/recording.cap.d.ts +43 -0
  132. package/dist/capabilities/recording.cap.d.ts.map +1 -0
  133. package/dist/capabilities/remote-access.cap.d.ts +103 -0
  134. package/dist/capabilities/remote-access.cap.d.ts.map +1 -0
  135. package/dist/capabilities/restreamer.cap.d.ts +51 -0
  136. package/dist/capabilities/restreamer.cap.d.ts.map +1 -0
  137. package/dist/capabilities/schemas/detection-shared.d.ts +63 -0
  138. package/dist/capabilities/schemas/detection-shared.d.ts.map +1 -0
  139. package/dist/capabilities/schemas/orchestrator-metrics.d.ts +44 -0
  140. package/dist/capabilities/schemas/orchestrator-metrics.d.ts.map +1 -0
  141. package/dist/capabilities/schemas/streaming-shared.d.ts +177 -0
  142. package/dist/capabilities/schemas/streaming-shared.d.ts.map +1 -0
  143. package/dist/capabilities/schemas/zone-rule.d.ts +74 -0
  144. package/dist/capabilities/schemas/zone-rule.d.ts.map +1 -0
  145. package/dist/capabilities/settings-store.cap.d.ts +198 -0
  146. package/dist/capabilities/settings-store.cap.d.ts.map +1 -0
  147. package/dist/capabilities/snapshot-provider.cap.d.ts +40 -0
  148. package/dist/capabilities/snapshot-provider.cap.d.ts.map +1 -0
  149. package/dist/capabilities/snapshot.cap.d.ts +78 -0
  150. package/dist/capabilities/snapshot.cap.d.ts.map +1 -0
  151. package/dist/capabilities/storage-provider.cap.d.ts +432 -0
  152. package/dist/capabilities/storage-provider.cap.d.ts.map +1 -0
  153. package/dist/capabilities/storage.cap.d.ts +367 -0
  154. package/dist/capabilities/storage.cap.d.ts.map +1 -0
  155. package/dist/capabilities/stream-broker.cap.d.ts +416 -0
  156. package/dist/capabilities/stream-broker.cap.d.ts.map +1 -0
  157. package/dist/capabilities/streaming-engine.cap.d.ts +58 -0
  158. package/dist/capabilities/streaming-engine.cap.d.ts.map +1 -0
  159. package/dist/capabilities/switch.cap.d.ts +66 -0
  160. package/dist/capabilities/switch.cap.d.ts.map +1 -0
  161. package/dist/capabilities/system.cap.d.ts +86 -0
  162. package/dist/capabilities/system.cap.d.ts.map +1 -0
  163. package/dist/capabilities/toast.cap.d.ts +56 -0
  164. package/dist/capabilities/toast.cap.d.ts.map +1 -0
  165. package/dist/capabilities/turn-orchestrator.cap.d.ts +74 -0
  166. package/dist/capabilities/turn-orchestrator.cap.d.ts.map +1 -0
  167. package/dist/capabilities/turn-provider.cap.d.ts +43 -0
  168. package/dist/capabilities/turn-provider.cap.d.ts.map +1 -0
  169. package/dist/capabilities/user-management.cap.d.ts +378 -0
  170. package/dist/capabilities/user-management.cap.d.ts.map +1 -0
  171. package/dist/capabilities/webrtc-session.cap.d.ts +181 -0
  172. package/dist/capabilities/webrtc-session.cap.d.ts.map +1 -0
  173. package/dist/capabilities/webrtc.cap.d.ts +72 -0
  174. package/dist/capabilities/webrtc.cap.d.ts.map +1 -0
  175. package/dist/capabilities/zone-analytics.cap.d.ts +213 -0
  176. package/dist/capabilities/zone-analytics.cap.d.ts.map +1 -0
  177. package/dist/capabilities/zone-rules.cap.d.ts +129 -0
  178. package/dist/capabilities/zone-rules.cap.d.ts.map +1 -0
  179. package/dist/capabilities/zones.cap.d.ts +151 -0
  180. package/dist/capabilities/zones.cap.d.ts.map +1 -0
  181. package/dist/catalogs/audio-classmap.d.ts +16 -0
  182. package/dist/catalogs/audio-classmap.d.ts.map +1 -0
  183. package/dist/catalogs/coco-classmap.d.ts.map +1 -1
  184. package/dist/constants.d.ts +50 -0
  185. package/dist/constants.d.ts.map +1 -1
  186. package/dist/deps/binary-downloader.d.ts +41 -0
  187. package/dist/deps/binary-downloader.d.ts.map +1 -0
  188. package/dist/deps/ffmpeg-downloader.d.ts +13 -0
  189. package/dist/deps/ffmpeg-downloader.d.ts.map +1 -0
  190. package/dist/deps/index.d.ts +4 -0
  191. package/dist/deps/index.d.ts.map +1 -0
  192. package/dist/deps/python-downloader.d.ts +34 -0
  193. package/dist/deps/python-downloader.d.ts.map +1 -0
  194. package/dist/device/accessory.d.ts +62 -0
  195. package/dist/device/accessory.d.ts.map +1 -0
  196. package/dist/device/base-device-provider.d.ts +178 -0
  197. package/dist/device/base-device-provider.d.ts.map +1 -0
  198. package/dist/device/base-device.d.ts +287 -0
  199. package/dist/device/base-device.d.ts.map +1 -0
  200. package/dist/device/camera-device.d.ts +49 -0
  201. package/dist/device/camera-device.d.ts.map +1 -0
  202. package/dist/device/device-binding.d.ts +23 -0
  203. package/dist/device/device-binding.d.ts.map +1 -0
  204. package/dist/device/device-config.d.ts +65 -0
  205. package/dist/device/device-config.d.ts.map +1 -0
  206. package/dist/device/device-context.d.ts +256 -0
  207. package/dist/device/device-context.d.ts.map +1 -0
  208. package/dist/device/device-management.d.ts +118 -0
  209. package/dist/device/device-management.d.ts.map +1 -0
  210. package/dist/device/device-profile.d.ts +161 -0
  211. package/dist/device/device-profile.d.ts.map +1 -0
  212. package/dist/device/device-runtime-state.d.ts +124 -0
  213. package/dist/device/device-runtime-state.d.ts.map +1 -0
  214. package/dist/device/device-state-handle.d.ts +161 -0
  215. package/dist/device/device-state-handle.d.ts.map +1 -0
  216. package/dist/device/device-type.d.ts +68 -0
  217. package/dist/device/device-type.d.ts.map +1 -0
  218. package/dist/device/device.d.ts +87 -0
  219. package/dist/device/device.d.ts.map +1 -0
  220. package/dist/device/features.d.ts +29 -0
  221. package/dist/device/features.d.ts.map +1 -0
  222. package/dist/device/index.d.ts +20 -0
  223. package/dist/device/index.d.ts.map +1 -0
  224. package/dist/device/runtime-state-helpers.d.ts +69 -0
  225. package/dist/device/runtime-state-helpers.d.ts.map +1 -0
  226. package/dist/device/system-mirror.d.ts +318 -0
  227. package/dist/device/system-mirror.d.ts.map +1 -0
  228. package/dist/device/zod-to-config-ui.d.ts +23 -0
  229. package/dist/device/zod-to-config-ui.d.ts.map +1 -0
  230. package/dist/disposer-chain.d.ts +32 -0
  231. package/dist/disposer-chain.d.ts.map +1 -0
  232. package/dist/enums/event-category.d.ts +361 -0
  233. package/dist/enums/event-category.d.ts.map +1 -0
  234. package/dist/enums/event-source-type.d.ts +8 -0
  235. package/dist/enums/event-source-type.d.ts.map +1 -0
  236. package/dist/enums/index.d.ts +3 -0
  237. package/dist/enums/index.d.ts.map +1 -0
  238. package/dist/generated/addon-api.d.ts +14604 -3217
  239. package/dist/generated/addon-api.d.ts.map +1 -1
  240. package/dist/generated/cap-status-types.d.ts +51 -0
  241. package/dist/generated/cap-status-types.d.ts.map +1 -0
  242. package/dist/generated/capability-router-map.d.ts +278 -0
  243. package/dist/generated/capability-router-map.d.ts.map +1 -0
  244. package/dist/generated/device-local-state.d.ts +82 -0
  245. package/dist/generated/device-local-state.d.ts.map +1 -0
  246. package/dist/generated/device-proxy.d.ts +146 -0
  247. package/dist/generated/device-proxy.d.ts.map +1 -0
  248. package/dist/generated/system-proxy.d.ts +92 -0
  249. package/dist/generated/system-proxy.d.ts.map +1 -0
  250. package/dist/helpers/bind-addon-actions.d.ts +19 -0
  251. package/dist/helpers/bind-addon-actions.d.ts.map +1 -0
  252. package/dist/index.d.ts +91 -22
  253. package/dist/index.d.ts.map +1 -1
  254. package/dist/index.js +4843 -477
  255. package/dist/index.js.map +1 -1
  256. package/dist/index.mjs +4832 -415
  257. package/dist/index.mjs.map +1 -1
  258. package/dist/interfaces/addon.d.ts +760 -132
  259. package/dist/interfaces/addon.d.ts.map +1 -1
  260. package/dist/interfaces/advanced-notifier.d.ts +3 -2
  261. package/dist/interfaces/advanced-notifier.d.ts.map +1 -1
  262. package/dist/interfaces/agent-protocol.d.ts +17 -173
  263. package/dist/interfaces/agent-protocol.d.ts.map +1 -1
  264. package/dist/interfaces/agent.d.ts +61 -0
  265. package/dist/interfaces/agent.d.ts.map +1 -1
  266. package/dist/interfaces/alerts.d.ts +14 -0
  267. package/dist/interfaces/alerts.d.ts.map +1 -0
  268. package/dist/interfaces/analysis-persistence.d.ts +37 -19
  269. package/dist/interfaces/analysis-persistence.d.ts.map +1 -1
  270. package/dist/interfaces/analysis.d.ts +33 -4
  271. package/dist/interfaces/analysis.d.ts.map +1 -1
  272. package/dist/interfaces/api-responses.d.ts +124 -0
  273. package/dist/interfaces/api-responses.d.ts.map +1 -0
  274. package/dist/interfaces/api-shared.d.ts +5 -79
  275. package/dist/interfaces/api-shared.d.ts.map +1 -1
  276. package/dist/interfaces/audio-analyzer.d.ts +49 -0
  277. package/dist/interfaces/audio-analyzer.d.ts.map +1 -0
  278. package/dist/interfaces/audio-codec.d.ts +123 -0
  279. package/dist/interfaces/audio-codec.d.ts.map +1 -0
  280. package/dist/interfaces/audio-inference-engine.d.ts +19 -0
  281. package/dist/interfaces/audio-inference-engine.d.ts.map +1 -0
  282. package/dist/interfaces/auth-provider.d.ts.map +1 -1
  283. package/dist/interfaces/auth.d.ts +4 -25
  284. package/dist/interfaces/auth.d.ts.map +1 -1
  285. package/dist/interfaces/camera-pipeline.d.ts +7 -20
  286. package/dist/interfaces/camera-pipeline.d.ts.map +1 -1
  287. package/dist/interfaces/capability.d.ts +171 -24
  288. package/dist/interfaces/capability.d.ts.map +1 -1
  289. package/dist/interfaces/config-ui.d.ts +746 -24
  290. package/dist/interfaces/config-ui.d.ts.map +1 -1
  291. package/dist/interfaces/context.d.ts +9 -4
  292. package/dist/interfaces/context.d.ts.map +1 -1
  293. package/dist/interfaces/decoder.d.ts +38 -3
  294. package/dist/interfaces/decoder.d.ts.map +1 -1
  295. package/dist/interfaces/detection-addon.d.ts +6 -6
  296. package/dist/interfaces/detection-addon.d.ts.map +1 -1
  297. package/dist/interfaces/device-capabilities/camera.d.ts +95 -18
  298. package/dist/interfaces/device-capabilities/camera.d.ts.map +1 -1
  299. package/dist/interfaces/device-capabilities/index.d.ts +0 -13
  300. package/dist/interfaces/device-capabilities/index.d.ts.map +1 -1
  301. package/dist/interfaces/device-provider.d.ts +18 -16
  302. package/dist/interfaces/device-provider.d.ts.map +1 -1
  303. package/dist/interfaces/device.d.ts +4 -21
  304. package/dist/interfaces/device.d.ts.map +1 -1
  305. package/dist/interfaces/embedding-encoder.d.ts +19 -0
  306. package/dist/interfaces/embedding-encoder.d.ts.map +1 -0
  307. package/dist/interfaces/engine-slots.d.ts +10 -0
  308. package/dist/interfaces/engine-slots.d.ts.map +1 -0
  309. package/dist/interfaces/event-bus.d.ts +710 -26
  310. package/dist/interfaces/event-bus.d.ts.map +1 -1
  311. package/dist/interfaces/inference-capabilities.d.ts +0 -17
  312. package/dist/interfaces/inference-capabilities.d.ts.map +1 -1
  313. package/dist/interfaces/inference-engine.d.ts +30 -10
  314. package/dist/interfaces/inference-engine.d.ts.map +1 -1
  315. package/dist/interfaces/integration-registry.d.ts +20 -20
  316. package/dist/interfaces/integration-registry.d.ts.map +1 -1
  317. package/dist/interfaces/kernel-abstractions.d.ts +83 -0
  318. package/dist/interfaces/kernel-abstractions.d.ts.map +1 -0
  319. package/dist/interfaces/logging.d.ts +89 -8
  320. package/dist/interfaces/logging.d.ts.map +1 -1
  321. package/dist/interfaces/metrics-provider.d.ts +17 -0
  322. package/dist/interfaces/metrics-provider.d.ts.map +1 -0
  323. package/dist/interfaces/network-quality.d.ts +4 -4
  324. package/dist/interfaces/network.d.ts +0 -16
  325. package/dist/interfaces/network.d.ts.map +1 -1
  326. package/dist/interfaces/notification.d.ts +1 -1
  327. package/dist/interfaces/pipeline-executor-capability.d.ts +200 -0
  328. package/dist/interfaces/pipeline-executor-capability.d.ts.map +1 -0
  329. package/dist/interfaces/pipeline-orchestrator-capability.d.ts +165 -0
  330. package/dist/interfaces/pipeline-orchestrator-capability.d.ts.map +1 -0
  331. package/dist/interfaces/pipeline-runner-capability.d.ts +147 -0
  332. package/dist/interfaces/pipeline-runner-capability.d.ts.map +1 -0
  333. package/dist/interfaces/pipeline-runner.d.ts +18 -2
  334. package/dist/interfaces/pipeline-runner.d.ts.map +1 -1
  335. package/dist/interfaces/platform.d.ts +1 -1
  336. package/dist/interfaces/platform.d.ts.map +1 -1
  337. package/dist/interfaces/queryable.d.ts +26 -0
  338. package/dist/interfaces/queryable.d.ts.map +1 -0
  339. package/dist/interfaces/raw-tensor-engine.d.ts +16 -0
  340. package/dist/interfaces/raw-tensor-engine.d.ts.map +1 -0
  341. package/dist/interfaces/readiness.d.ts +101 -0
  342. package/dist/interfaces/readiness.d.ts.map +1 -0
  343. package/dist/interfaces/repl.d.ts +1 -1
  344. package/dist/interfaces/restreamer.d.ts +3 -3
  345. package/dist/interfaces/scoped-token.d.ts +1 -21
  346. package/dist/interfaces/scoped-token.d.ts.map +1 -1
  347. package/dist/interfaces/server-analysis.d.ts +30 -87
  348. package/dist/interfaces/server-analysis.d.ts.map +1 -1
  349. package/dist/interfaces/storage-location.d.ts +120 -0
  350. package/dist/interfaces/storage-location.d.ts.map +1 -0
  351. package/dist/interfaces/storage.d.ts +124 -50
  352. package/dist/interfaces/storage.d.ts.map +1 -1
  353. package/dist/interfaces/stream-broker.d.ts +285 -17
  354. package/dist/interfaces/stream-broker.d.ts.map +1 -1
  355. package/dist/interfaces/webrtc-provider.d.ts +24 -0
  356. package/dist/interfaces/webrtc-provider.d.ts.map +1 -1
  357. package/dist/node.d.ts +6 -0
  358. package/dist/node.d.ts.map +1 -0
  359. package/dist/node.js +481 -0
  360. package/dist/node.js.map +1 -0
  361. package/dist/node.mjs +443 -0
  362. package/dist/node.mjs.map +1 -0
  363. package/dist/readiness/index.d.ts +3 -0
  364. package/dist/readiness/index.d.ts.map +1 -0
  365. package/dist/readiness/readiness-registry.d.ts +183 -0
  366. package/dist/readiness/readiness-registry.d.ts.map +1 -0
  367. package/dist/schemas/auth-records.d.ts +81 -0
  368. package/dist/schemas/auth-records.d.ts.map +1 -0
  369. package/dist/storage/filesystem-storage-provider.d.ts +37 -0
  370. package/dist/storage/filesystem-storage-provider.d.ts.map +1 -0
  371. package/dist/types/agent-pipeline-settings.d.ts +94 -0
  372. package/dist/types/agent-pipeline-settings.d.ts.map +1 -0
  373. package/dist/types/camera-pipeline.d.ts +58 -0
  374. package/dist/types/camera-pipeline.d.ts.map +1 -0
  375. package/dist/types/detection.d.ts +195 -38
  376. package/dist/types/detection.d.ts.map +1 -1
  377. package/dist/types/device-type.d.ts +4 -0
  378. package/dist/types/device-type.d.ts.map +1 -1
  379. package/dist/types/engine-output.d.ts +24 -0
  380. package/dist/types/engine-output.d.ts.map +1 -0
  381. package/dist/types/io.d.ts +57 -3
  382. package/dist/types/io.d.ts.map +1 -1
  383. package/dist/types/models.d.ts +3 -1
  384. package/dist/types/models.d.ts.map +1 -1
  385. package/dist/types/pipeline-schema.d.ts +15 -72
  386. package/dist/types/pipeline-schema.d.ts.map +1 -1
  387. package/dist/types/pipeline-step.d.ts +201 -0
  388. package/dist/types/pipeline-step.d.ts.map +1 -0
  389. package/dist/types/pipeline.d.ts +24 -1
  390. package/dist/types/pipeline.d.ts.map +1 -1
  391. package/dist/utils/element-config-store.d.ts +29 -0
  392. package/dist/utils/element-config-store.d.ts.map +1 -0
  393. package/dist/utils/err-msg.d.ts +7 -0
  394. package/dist/utils/err-msg.d.ts.map +1 -0
  395. package/dist/utils/json-safe.d.ts +33 -0
  396. package/dist/utils/json-safe.d.ts.map +1 -0
  397. package/dist/utils/mask-url.d.ts +10 -0
  398. package/dist/utils/mask-url.d.ts.map +1 -0
  399. package/dist/utils/ring-buffer.d.ts +16 -0
  400. package/dist/utils/ring-buffer.d.ts.map +1 -0
  401. package/dist/utils/run-inference-step.d.ts +26 -0
  402. package/dist/utils/run-inference-step.d.ts.map +1 -0
  403. package/dist/utils/runtime-mapping.d.ts +88 -0
  404. package/dist/utils/runtime-mapping.d.ts.map +1 -0
  405. package/dist/utils/zone-rule-eval.d.ts +47 -0
  406. package/dist/utils/zone-rule-eval.d.ts.map +1 -0
  407. package/package.json +11 -2
  408. package/dist/__tests__/addon-capability-provider.test.d.ts +0 -2
  409. package/dist/__tests__/addon-capability-provider.test.d.ts.map +0 -1
  410. package/dist/__tests__/addon-declaration.test.d.ts +0 -2
  411. package/dist/__tests__/addon-declaration.test.d.ts.map +0 -1
  412. package/dist/__tests__/capability.test.d.ts +0 -2
  413. package/dist/__tests__/capability.test.d.ts.map +0 -1
  414. package/dist/interfaces/addon-i18n.d.ts +0 -41
  415. package/dist/interfaces/addon-i18n.d.ts.map +0 -1
  416. package/dist/interfaces/classifier.d.ts +0 -8
  417. package/dist/interfaces/classifier.d.ts.map +0 -1
  418. package/dist/interfaces/cropper.d.ts +0 -8
  419. package/dist/interfaces/cropper.d.ts.map +0 -1
  420. package/dist/interfaces/detector.d.ts +0 -8
  421. package/dist/interfaces/detector.d.ts.map +0 -1
  422. package/dist/interfaces/device-capabilities/accessory.d.ts +0 -14
  423. package/dist/interfaces/device-capabilities/accessory.d.ts.map +0 -1
  424. package/dist/interfaces/device-capabilities/audio-detector.d.ts +0 -12
  425. package/dist/interfaces/device-capabilities/audio-detector.d.ts.map +0 -1
  426. package/dist/interfaces/device-capabilities/doorbell.d.ts +0 -10
  427. package/dist/interfaces/device-capabilities/doorbell.d.ts.map +0 -1
  428. package/dist/interfaces/device-capabilities/events.d.ts +0 -47
  429. package/dist/interfaces/device-capabilities/events.d.ts.map +0 -1
  430. package/dist/interfaces/device-capabilities/motion-sensor.d.ts +0 -7
  431. package/dist/interfaces/device-capabilities/motion-sensor.d.ts.map +0 -1
  432. package/dist/interfaces/device-capabilities/native-detection.d.ts +0 -14
  433. package/dist/interfaces/device-capabilities/native-detection.d.ts.map +0 -1
  434. package/dist/interfaces/device-capabilities/object-detector.d.ts +0 -59
  435. package/dist/interfaces/device-capabilities/object-detector.d.ts.map +0 -1
  436. package/dist/interfaces/device-capabilities/pan-tilt-zoom.d.ts +0 -29
  437. package/dist/interfaces/device-capabilities/pan-tilt-zoom.d.ts.map +0 -1
  438. package/dist/interfaces/device-capabilities/recording.d.ts +0 -18
  439. package/dist/interfaces/device-capabilities/recording.d.ts.map +0 -1
  440. package/dist/interfaces/device-capabilities/siren.d.ts +0 -8
  441. package/dist/interfaces/device-capabilities/siren.d.ts.map +0 -1
  442. package/dist/interfaces/device-capabilities/status-light.d.ts +0 -7
  443. package/dist/interfaces/device-capabilities/status-light.d.ts.map +0 -1
  444. package/dist/interfaces/device-capabilities/switch.d.ts +0 -8
  445. package/dist/interfaces/device-capabilities/switch.d.ts.map +0 -1
  446. package/dist/interfaces/device-capabilities/two-way-audio.d.ts +0 -8
  447. package/dist/interfaces/device-capabilities/two-way-audio.d.ts.map +0 -1
  448. package/dist/interfaces/device-capability.d.ts +0 -14
  449. package/dist/interfaces/device-capability.d.ts.map +0 -1
  450. package/dist/interfaces/model-catalog.d.ts +0 -25
  451. package/dist/interfaces/model-catalog.d.ts.map +0 -1
  452. package/dist/interfaces/refiner.d.ts +0 -8
  453. package/dist/interfaces/refiner.d.ts.map +0 -1
  454. package/dist/interfaces/repositories.d.ts +0 -20
  455. package/dist/interfaces/repositories.d.ts.map +0 -1
  456. package/dist/interfaces/scene-intelligence.d.ts +0 -21
  457. package/dist/interfaces/scene-intelligence.d.ts.map +0 -1
  458. package/dist/interfaces/storage-backend.d.ts +0 -27
  459. package/dist/interfaces/storage-backend.d.ts.map +0 -1
  460. package/dist/interfaces/worker-protocol.d.ts +0 -110
  461. package/dist/interfaces/worker-protocol.d.ts.map +0 -1
  462. package/dist/schemas/system-settings-schemas.d.ts +0 -27
  463. package/dist/schemas/system-settings-schemas.d.ts.map +0 -1
  464. package/dist/types/benchmark.d.ts +0 -112
  465. package/dist/types/benchmark.d.ts.map +0 -1
  466. package/dist/types/zones.d.ts +0 -48
  467. package/dist/types/zones.d.ts.map +0 -1
@@ -0,0 +1,216 @@
1
+ /**
2
+ * local-network — hub-only singleton.
3
+ *
4
+ * Enumerates the host's network interfaces and ranks them so that:
5
+ *
6
+ * • Addons that need a "where do we listen / point a tunnel at" answer
7
+ * (cloudflare-tunnel, ngrok, RTSP restream, cluster join URL, TLS
8
+ * cert SAN) consume `getPreferred()` instead of hard-coding
9
+ * `localhost`. Critical for docker-sidecar setups where the addon
10
+ * process needs the container's eth0 (not 127.0.0.1).
11
+ *
12
+ * • The SDK (mobile / web client) consumes `getConnectionEndpoints()`
13
+ * to receive an ordered list of candidate base URLs it should race
14
+ * on connect — LAN IPv4 first (lowest latency when on same network),
15
+ * then public hostname (if a tunnel is up), then IPv6. The SDK can
16
+ * race them with short timeouts and stick with the winner for the
17
+ * session.
18
+ *
19
+ * Why hub-only: agents are not directly addressable by the operator's
20
+ * clients — they reverse-connect to the hub. Exposing their interfaces
21
+ * via the same surface would leak internal topology with no upside.
22
+ *
23
+ * Implementation in `@camstack/core/builtins/local-network/`.
24
+ */
25
+ import { z } from 'zod';
26
+ import { type InferProvider } from './capability-definition.js';
27
+ declare const LocalInterfaceSchema: z.ZodObject<{
28
+ name: z.ZodString;
29
+ family: z.ZodEnum<{
30
+ IPv4: "IPv4";
31
+ IPv6: "IPv6";
32
+ }>;
33
+ address: z.ZodString;
34
+ cidr: z.ZodString;
35
+ netmask: z.ZodString;
36
+ internal: z.ZodBoolean;
37
+ mac: z.ZodString;
38
+ kind: z.ZodEnum<{
39
+ other: "other";
40
+ lan: "lan";
41
+ vpn: "vpn";
42
+ wifi: "wifi";
43
+ docker: "docker";
44
+ loopback: "loopback";
45
+ }>;
46
+ preferred: z.ZodBoolean;
47
+ plausible: z.ZodBoolean;
48
+ plausibleReason: z.ZodString;
49
+ }, z.core.$strip>;
50
+ /**
51
+ * Candidate base URL for the SDK to race on connect. Order matters —
52
+ * the SDK should attempt these top-to-bottom with a short per-candidate
53
+ * timeout (e.g. 1500ms) and cache the winner for the session.
54
+ */
55
+ declare const ConnectionEndpointSchema: z.ZodObject<{
56
+ label: z.ZodString;
57
+ baseUrl: z.ZodString;
58
+ kind: z.ZodEnum<{
59
+ public: "public";
60
+ loopback: "loopback";
61
+ "lan-ipv4": "lan-ipv4";
62
+ "lan-ipv6": "lan-ipv6";
63
+ }>;
64
+ interfaceKind: z.ZodEnum<{
65
+ public: "public";
66
+ other: "other";
67
+ lan: "lan";
68
+ vpn: "vpn";
69
+ wifi: "wifi";
70
+ docker: "docker";
71
+ loopback: "loopback";
72
+ }>;
73
+ plausible: z.ZodBoolean;
74
+ plausibleReason: z.ZodString;
75
+ priority: z.ZodNumber;
76
+ }, z.core.$strip>;
77
+ export declare const localNetworkCapability: {
78
+ readonly name: "local-network";
79
+ readonly scope: "system";
80
+ readonly mode: "singleton";
81
+ readonly methods: {
82
+ /** Return the current interface snapshot. */
83
+ readonly list: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
84
+ interfaces: z.ZodReadonly<z.ZodArray<z.ZodObject<{
85
+ name: z.ZodString;
86
+ family: z.ZodEnum<{
87
+ IPv4: "IPv4";
88
+ IPv6: "IPv6";
89
+ }>;
90
+ address: z.ZodString;
91
+ cidr: z.ZodString;
92
+ netmask: z.ZodString;
93
+ internal: z.ZodBoolean;
94
+ mac: z.ZodString;
95
+ kind: z.ZodEnum<{
96
+ other: "other";
97
+ lan: "lan";
98
+ vpn: "vpn";
99
+ wifi: "wifi";
100
+ docker: "docker";
101
+ loopback: "loopback";
102
+ }>;
103
+ preferred: z.ZodBoolean;
104
+ plausible: z.ZodBoolean;
105
+ plausibleReason: z.ZodString;
106
+ }, z.core.$strip>>>;
107
+ probedAt: z.ZodNumber;
108
+ }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
109
+ /**
110
+ * Auto-selected outbound interface. Heuristic:
111
+ * 1. Skip internal / link-local / 169.254.*.
112
+ * 2. Prefer LAN/wifi (real Ethernet) over docker/vpn.
113
+ * 3. IPv4 wins over IPv6 (compat with legacy consumers).
114
+ * 4. Tie-break on lowest CIDR mask (most-specific subnet).
115
+ * Returns `null` only when the host has zero non-loopback addresses.
116
+ * Honours `getAllowedAddresses()` — if the operator pinned an
117
+ * allowlist, only those addresses are candidates.
118
+ */
119
+ readonly getPreferred: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodNullable<z.ZodObject<{
120
+ name: z.ZodString;
121
+ family: z.ZodEnum<{
122
+ IPv4: "IPv4";
123
+ IPv6: "IPv6";
124
+ }>;
125
+ address: z.ZodString;
126
+ cidr: z.ZodString;
127
+ netmask: z.ZodString;
128
+ internal: z.ZodBoolean;
129
+ mac: z.ZodString;
130
+ kind: z.ZodEnum<{
131
+ other: "other";
132
+ lan: "lan";
133
+ vpn: "vpn";
134
+ wifi: "wifi";
135
+ docker: "docker";
136
+ loopback: "loopback";
137
+ }>;
138
+ preferred: z.ZodBoolean;
139
+ plausible: z.ZodBoolean;
140
+ plausibleReason: z.ZodString;
141
+ }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
142
+ /**
143
+ * Ordered candidate base URLs the SDK should try on connect.
144
+ * Includes LAN IPs (one per non-internal interface), the public
145
+ * tunnel hostname (when active), and loopback as a last-resort
146
+ * fallback. Filterable by `includeLoopback` / `ipv4Only`.
147
+ * Honours `getAllowedAddresses()` when set — addresses outside
148
+ * the allowlist are dropped (the public tunnel + loopback are
149
+ * always included as escape hatches).
150
+ */
151
+ readonly getConnectionEndpoints: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
152
+ port: z.ZodNumber;
153
+ includeLoopback: z.ZodOptional<z.ZodBoolean>;
154
+ ipv4Only: z.ZodOptional<z.ZodBoolean>;
155
+ scheme: z.ZodOptional<z.ZodEnum<{
156
+ http: "http";
157
+ https: "https";
158
+ }>>;
159
+ }, z.core.$strip>, z.ZodObject<{
160
+ endpoints: z.ZodReadonly<z.ZodArray<z.ZodObject<{
161
+ label: z.ZodString;
162
+ baseUrl: z.ZodString;
163
+ kind: z.ZodEnum<{
164
+ public: "public";
165
+ loopback: "loopback";
166
+ "lan-ipv4": "lan-ipv4";
167
+ "lan-ipv6": "lan-ipv6";
168
+ }>;
169
+ interfaceKind: z.ZodEnum<{
170
+ public: "public";
171
+ other: "other";
172
+ lan: "lan";
173
+ vpn: "vpn";
174
+ wifi: "wifi";
175
+ docker: "docker";
176
+ loopback: "loopback";
177
+ }>;
178
+ plausible: z.ZodBoolean;
179
+ plausibleReason: z.ZodString;
180
+ priority: z.ZodNumber;
181
+ }, z.core.$strip>>>;
182
+ }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
183
+ /**
184
+ * Read the operator's allowlist. Empty = "auto" (no filter). Used
185
+ * by the admin UI's address selector to seed its checkbox state.
186
+ */
187
+ readonly getAllowedAddresses: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
188
+ addresses: z.ZodReadonly<z.ZodArray<z.ZodString>>;
189
+ }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
190
+ /**
191
+ * Replace the allowlist atomically. Persisted via the addon store
192
+ * (kernel-managed) so it survives restarts. Pass `[]` to revert to
193
+ * auto mode.
194
+ */
195
+ readonly setAllowedAddresses: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
196
+ addresses: z.ZodReadonly<z.ZodArray<z.ZodString>>;
197
+ }, z.core.$strip>, z.ZodObject<{
198
+ success: z.ZodLiteral<true>;
199
+ }, z.core.$strip>, "mutation">;
200
+ /**
201
+ * Re-run the boot heuristic over the current interface snapshot
202
+ * and atomically replace the allowlist with the result. Useful
203
+ * after a major network change (new dock, new VPN, IP rebound)
204
+ * when the operator wants to wipe their manual edits and start
205
+ * over from the auto-detected best matches.
206
+ */
207
+ readonly resetAllowlistToBestMatch: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
208
+ addresses: z.ZodReadonly<z.ZodArray<z.ZodString>>;
209
+ }, z.core.$strip>, "mutation">;
210
+ };
211
+ };
212
+ export type ILocalNetworkProvider = InferProvider<typeof localNetworkCapability>;
213
+ export type LocalInterface = z.infer<typeof LocalInterfaceSchema>;
214
+ export type ConnectionEndpoint = z.infer<typeof ConnectionEndpointSchema>;
215
+ export {};
216
+ //# sourceMappingURL=local-network.cap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local-network.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/local-network.cap.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAYlG,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;iBAoCxB,CAAA;AAUF;;;;GAIG;AACH,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;iBAmC5B,CAAA;AAgBF,eAAO,MAAM,sBAAsB;;;;;QAK/B,6CAA6C;;;;;;;;;;;;;;;;;;;;;;;;;;;QAG7C;;;;;;;;;WASG;;;;;;;;;;;;;;;;;;;;;;;;QAGH;;;;;;;;WAQG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAoBH;;;WAGG;;;;QAGH;;;;WAIG;;;;;;QAOH;;;;;;WAMG;;;;;CAOkC,CAAA;AAEzC,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAChF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AACjE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA"}
@@ -0,0 +1,70 @@
1
+ import { z } from 'zod';
2
+ import { type InferProvider } from './capability-definition.js';
3
+ declare const LogLevelSchema: z.ZodEnum<{
4
+ info: "info";
5
+ error: "error";
6
+ debug: "debug";
7
+ warn: "warn";
8
+ }>;
9
+ declare const LogEntrySchema: z.ZodObject<{
10
+ timestamp: z.ZodDate;
11
+ level: z.ZodEnum<{
12
+ info: "info";
13
+ error: "error";
14
+ debug: "debug";
15
+ warn: "warn";
16
+ }>;
17
+ scope: z.ZodArray<z.ZodString>;
18
+ message: z.ZodString;
19
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
20
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
21
+ }, z.core.$strip>;
22
+ export declare const logDestinationCapability: {
23
+ readonly name: "log-destination";
24
+ readonly scope: "system";
25
+ readonly mode: "collection";
26
+ readonly internal: true;
27
+ readonly methods: {
28
+ readonly write: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
29
+ timestamp: z.ZodDate;
30
+ level: z.ZodEnum<{
31
+ info: "info";
32
+ error: "error";
33
+ debug: "debug";
34
+ warn: "warn";
35
+ }>;
36
+ scope: z.ZodArray<z.ZodString>;
37
+ message: z.ZodString;
38
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
39
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
40
+ }, z.core.$strip>, z.ZodVoid, "mutation">;
41
+ readonly query: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
42
+ scope: z.ZodOptional<z.ZodArray<z.ZodString>>;
43
+ level: z.ZodOptional<z.ZodEnum<{
44
+ info: "info";
45
+ error: "error";
46
+ debug: "debug";
47
+ warn: "warn";
48
+ }>>;
49
+ since: z.ZodOptional<z.ZodDate>;
50
+ until: z.ZodOptional<z.ZodDate>;
51
+ limit: z.ZodOptional<z.ZodNumber>;
52
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
53
+ }, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
54
+ timestamp: z.ZodDate;
55
+ level: z.ZodEnum<{
56
+ info: "info";
57
+ error: "error";
58
+ debug: "debug";
59
+ warn: "warn";
60
+ }>;
61
+ scope: z.ZodArray<z.ZodString>;
62
+ message: z.ZodString;
63
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
64
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
65
+ }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
66
+ };
67
+ };
68
+ export type ILogDestinationProvider = InferProvider<typeof logDestinationCapability>;
69
+ export { LogEntrySchema, LogLevelSchema };
70
+ //# sourceMappingURL=log-destination.cap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"log-destination.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/log-destination.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAElG,QAAA,MAAM,cAAc;;;;;EAA6C,CAAA;AAEjE,QAAA,MAAM,cAAc;;;;;;;;;;;;iBAOlB,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBI,CAAA;AAEzC,MAAM,MAAM,uBAAuB,GAAG,aAAa,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAEpF,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,CAAA"}
@@ -0,0 +1,160 @@
1
+ /**
2
+ * mesh-network — collection cap for mesh-VPN providers.
3
+ *
4
+ * Different shape from `network-access` (public tunnels):
5
+ *
6
+ * • `network-access` exposes ONE public URL the operator hands to
7
+ * external clients. start/stop spawns a single edge process.
8
+ *
9
+ * • `mesh-network` joins the host into a private mesh (Tailscale,
10
+ * Headscale, ZeroTier). The result is one or more *private*
11
+ * endpoints (mesh IP `100.x.x.x`, MagicDNS hostname) reachable
12
+ * only by peers on the same mesh. Optionally, providers that
13
+ * support it (Tailscale Funnel / Serve) also expose a public
14
+ * ingress for select ports.
15
+ *
16
+ * Singleton facade lives in `mesh-orchestrator.cap.ts`.
17
+ */
18
+ import { z } from 'zod';
19
+ import { type InferProvider } from './capability-definition.js';
20
+ /**
21
+ * A reachable endpoint on the mesh. A single provider may expose
22
+ * multiple (mesh IP + MagicDNS hostname + Funnel public URL).
23
+ */
24
+ declare const MeshEndpointSchema: z.ZodObject<{
25
+ id: z.ZodString;
26
+ label: z.ZodString;
27
+ scope: z.ZodEnum<{
28
+ public: "public";
29
+ mesh: "mesh";
30
+ }>;
31
+ url: z.ZodString;
32
+ hostname: z.ZodString;
33
+ port: z.ZodNumber;
34
+ protocol: z.ZodEnum<{
35
+ http: "http";
36
+ https: "https";
37
+ }>;
38
+ }, z.core.$strip>;
39
+ export type MeshEndpoint = z.infer<typeof MeshEndpointSchema>;
40
+ declare const MeshPeerSchema: z.ZodObject<{
41
+ id: z.ZodString;
42
+ hostname: z.ZodString;
43
+ addresses: z.ZodReadonly<z.ZodArray<z.ZodString>>;
44
+ os: z.ZodOptional<z.ZodString>;
45
+ online: z.ZodBoolean;
46
+ lastSeenMs: z.ZodNumber;
47
+ isSelf: z.ZodBoolean;
48
+ }, z.core.$strip>;
49
+ export type MeshPeer = z.infer<typeof MeshPeerSchema>;
50
+ declare const MeshStatusSchema: z.ZodObject<{
51
+ joined: z.ZodBoolean;
52
+ meshIp: z.ZodString;
53
+ magicDnsHostname: z.ZodString;
54
+ peerCount: z.ZodNumber;
55
+ endpoints: z.ZodReadonly<z.ZodArray<z.ZodObject<{
56
+ id: z.ZodString;
57
+ label: z.ZodString;
58
+ scope: z.ZodEnum<{
59
+ public: "public";
60
+ mesh: "mesh";
61
+ }>;
62
+ url: z.ZodString;
63
+ hostname: z.ZodString;
64
+ port: z.ZodNumber;
65
+ protocol: z.ZodEnum<{
66
+ http: "http";
67
+ https: "https";
68
+ }>;
69
+ }, z.core.$strip>>>;
70
+ error: z.ZodOptional<z.ZodString>;
71
+ }, z.core.$strip>;
72
+ export type MeshStatus = z.infer<typeof MeshStatusSchema>;
73
+ /**
74
+ * `mesh-network` — per-provider implementation. Tailscale registers
75
+ * one (and only one) entry. Future Headscale / ZeroTier addons would
76
+ * register their own entries.
77
+ */
78
+ export declare const meshNetworkCapability: {
79
+ readonly name: "mesh-network";
80
+ readonly scope: "system";
81
+ readonly mode: "collection";
82
+ readonly methods: {
83
+ /** Return the current join state + endpoints + peer count. Cheap
84
+ * poll-target — admin UI hits this every few seconds. */
85
+ readonly getStatus: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
86
+ joined: z.ZodBoolean;
87
+ meshIp: z.ZodString;
88
+ magicDnsHostname: z.ZodString;
89
+ peerCount: z.ZodNumber;
90
+ endpoints: z.ZodReadonly<z.ZodArray<z.ZodObject<{
91
+ id: z.ZodString;
92
+ label: z.ZodString;
93
+ scope: z.ZodEnum<{
94
+ public: "public";
95
+ mesh: "mesh";
96
+ }>;
97
+ url: z.ZodString;
98
+ hostname: z.ZodString;
99
+ port: z.ZodNumber;
100
+ protocol: z.ZodEnum<{
101
+ http: "http";
102
+ https: "https";
103
+ }>;
104
+ }, z.core.$strip>>>;
105
+ error: z.ZodOptional<z.ZodString>;
106
+ }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
107
+ /**
108
+ * Join the host to the provider's mesh using a one-time auth key
109
+ * (generated by the operator in the provider's admin dashboard).
110
+ * Implementations should be idempotent — re-calling with the same
111
+ * key while already joined is a no-op + success.
112
+ */
113
+ readonly join: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
114
+ authKey: z.ZodString;
115
+ hostname: z.ZodOptional<z.ZodString>;
116
+ }, z.core.$strip>, z.ZodObject<{
117
+ joined: z.ZodLiteral<true>;
118
+ }, z.core.$strip>, "mutation">;
119
+ /** Leave the mesh. After this the meshIp/magicDnsHostname/etc.
120
+ * vanish until the next `join`. */
121
+ readonly leave: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
122
+ left: z.ZodLiteral<true>;
123
+ }, z.core.$strip>, "mutation">;
124
+ /** Enumerate every peer the daemon currently knows about. */
125
+ readonly listPeers: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
126
+ peers: z.ZodReadonly<z.ZodArray<z.ZodObject<{
127
+ id: z.ZodString;
128
+ hostname: z.ZodString;
129
+ addresses: z.ZodReadonly<z.ZodArray<z.ZodString>>;
130
+ os: z.ZodOptional<z.ZodString>;
131
+ online: z.ZodBoolean;
132
+ lastSeenMs: z.ZodNumber;
133
+ isSelf: z.ZodBoolean;
134
+ }, z.core.$strip>>>;
135
+ }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
136
+ /**
137
+ * Toggle the public ingress (e.g. Tailscale Funnel) that maps a
138
+ * local port to the open internet via the provider's edge. Idempotent.
139
+ */
140
+ readonly setPublicIngress: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
141
+ enabled: z.ZodBoolean;
142
+ port: z.ZodOptional<z.ZodNumber>;
143
+ }, z.core.$strip>, z.ZodObject<{
144
+ success: z.ZodLiteral<true>;
145
+ }, z.core.$strip>, "mutation">;
146
+ /**
147
+ * Toggle the in-mesh HTTPS ingress (e.g. Tailscale Serve) so peers
148
+ * inside the mesh hit a valid TLS endpoint instead of the raw IP.
149
+ */
150
+ readonly setMeshIngress: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
151
+ enabled: z.ZodBoolean;
152
+ port: z.ZodOptional<z.ZodNumber>;
153
+ }, z.core.$strip>, z.ZodObject<{
154
+ success: z.ZodLiteral<true>;
155
+ }, z.core.$strip>, "mutation">;
156
+ };
157
+ };
158
+ export type IMeshNetworkProvider = InferProvider<typeof meshNetworkCapability>;
159
+ export {};
160
+ //# sourceMappingURL=mesh-network.cap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mesh-network.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/mesh-network.cap.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAElG;;;GAGG;AACH,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;iBAmBtB,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAE7D,QAAA,MAAM,cAAc;;;;;;;;iBAelB,CAAA;AAEF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAErD,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;iBAapB,CAAA;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAmBzD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;;;;;QAK9B;kEAC0D;;;;;;;;;;;;;;;;;;;;;;;QAG1D;;;;;WAKG;;;;;;;QAaH;4CACoC;;;;QAOpC,6DAA6D;;;;;;;;;;;;QAK7D;;;WAGG;;;;;;;QAOH;;;WAGG;;;;;;;;CAOkC,CAAA;AAEzC,MAAM,MAAM,oBAAoB,GAAG,aAAa,CAAC,OAAO,qBAAqB,CAAC,CAAA"}
@@ -0,0 +1,96 @@
1
+ /**
2
+ * mesh-orchestrator — singleton facade over the `mesh-network`
3
+ * collection. Mirrors the `remote-access` / `turn-orchestrator`
4
+ * pattern: the admin UI talks to ONE cap, the cap walks the
5
+ * collection and aggregates per-provider status.
6
+ */
7
+ import { z } from 'zod';
8
+ import { type InferProvider } from './capability-definition.js';
9
+ declare const MeshProviderInfoSchema: z.ZodObject<{
10
+ addonId: z.ZodString;
11
+ displayName: z.ZodString;
12
+ kind: z.ZodEnum<{
13
+ other: "other";
14
+ tailscale: "tailscale";
15
+ headscale: "headscale";
16
+ zerotier: "zerotier";
17
+ }>;
18
+ joined: z.ZodBoolean;
19
+ meshIp: z.ZodString;
20
+ magicDnsHostname: z.ZodString;
21
+ peerCount: z.ZodNumber;
22
+ endpoints: z.ZodReadonly<z.ZodArray<z.ZodObject<{
23
+ id: z.ZodString;
24
+ label: z.ZodString;
25
+ scope: z.ZodEnum<{
26
+ public: "public";
27
+ mesh: "mesh";
28
+ }>;
29
+ url: z.ZodString;
30
+ hostname: z.ZodString;
31
+ port: z.ZodNumber;
32
+ protocol: z.ZodEnum<{
33
+ http: "http";
34
+ https: "https";
35
+ }>;
36
+ }, z.core.$strip>>>;
37
+ error: z.ZodOptional<z.ZodString>;
38
+ }, z.core.$strip>;
39
+ export type MeshProviderInfo = z.infer<typeof MeshProviderInfoSchema>;
40
+ export declare const meshOrchestratorCapability: {
41
+ readonly name: "mesh-orchestrator";
42
+ readonly scope: "system";
43
+ readonly mode: "singleton";
44
+ readonly methods: {
45
+ /** All registered mesh-network providers + live status. */
46
+ readonly listProviders: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
47
+ addonId: z.ZodString;
48
+ displayName: z.ZodString;
49
+ kind: z.ZodEnum<{
50
+ other: "other";
51
+ tailscale: "tailscale";
52
+ headscale: "headscale";
53
+ zerotier: "zerotier";
54
+ }>;
55
+ joined: z.ZodBoolean;
56
+ meshIp: z.ZodString;
57
+ magicDnsHostname: z.ZodString;
58
+ peerCount: z.ZodNumber;
59
+ endpoints: z.ZodReadonly<z.ZodArray<z.ZodObject<{
60
+ id: z.ZodString;
61
+ label: z.ZodString;
62
+ scope: z.ZodEnum<{
63
+ public: "public";
64
+ mesh: "mesh";
65
+ }>;
66
+ url: z.ZodString;
67
+ hostname: z.ZodString;
68
+ port: z.ZodNumber;
69
+ protocol: z.ZodEnum<{
70
+ http: "http";
71
+ https: "https";
72
+ }>;
73
+ }, z.core.$strip>>>;
74
+ error: z.ZodOptional<z.ZodString>;
75
+ }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
76
+ /**
77
+ * Join the mesh of a specific provider. Per-provider config still
78
+ * lives on its settings panel; the orchestrator forwards.
79
+ */
80
+ readonly joinProvider: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
81
+ addonId: z.ZodString;
82
+ authKey: z.ZodString;
83
+ hostname: z.ZodOptional<z.ZodString>;
84
+ }, z.core.$strip>, z.ZodObject<{
85
+ joined: z.ZodLiteral<true>;
86
+ }, z.core.$strip>, "mutation">;
87
+ readonly leaveProvider: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
88
+ addonId: z.ZodString;
89
+ }, z.core.$strip>, z.ZodObject<{
90
+ success: z.ZodLiteral<true>;
91
+ }, z.core.$strip>, "mutation">;
92
+ };
93
+ };
94
+ export type IMeshOrchestrator = InferProvider<typeof meshOrchestratorCapability>;
95
+ export {};
96
+ //# sourceMappingURL=mesh-orchestrator.cap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mesh-orchestrator.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/mesh-orchestrator.cap.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAYlG,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmB1B,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAErE,eAAO,MAAM,0BAA0B;;;;;QAKnC,2DAA2D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAE3D;;;WAGG;;;;;;;;;;;;;;CAgBkC,CAAA;AAEzC,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC,OAAO,0BAA0B,CAAC,CAAA"}