@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
@@ -1,10 +1,9 @@
1
- import type { BoundingBox, Landmark, FrameInput } from './io.js';
2
- import type { DetectionZoneMembership } from './zones.js';
1
+ import type { BoundingBox as EngineBoundingBox, Landmark, FrameInput } from './io.js';
3
2
  export interface SpatialDetection {
4
3
  readonly class: string;
5
4
  readonly originalClass: string;
6
5
  readonly score: number;
7
- readonly bbox: BoundingBox;
6
+ readonly bbox: EngineBoundingBox;
8
7
  readonly landmarks?: readonly Landmark[];
9
8
  readonly mask?: Uint8Array;
10
9
  readonly maskWidth?: number;
@@ -12,7 +11,7 @@ export interface SpatialDetection {
12
11
  }
13
12
  export interface CropInput {
14
13
  readonly frame: FrameInput;
15
- readonly roi: BoundingBox;
14
+ readonly roi: EngineBoundingBox;
16
15
  readonly parentDetection: SpatialDetection;
17
16
  }
18
17
  export interface Classification {
@@ -45,49 +44,207 @@ export interface RefinerOutput {
45
44
  readonly inferenceMs: number;
46
45
  readonly modelId: string;
47
46
  }
48
- /** Origin type of a label what kind of pipeline step produced it */
49
- export type LabelOrigin = 'classification' | 'face' | 'plate' | 'recognition' | 'unknown';
50
- /** A label produced by any classifier/recognizer step in the pipeline */
51
- export interface LabelData {
52
- /** The classification/recognition result (e.g., "Sunbird", "EA0202AA", "Dodge Journey SUV 2012") */
47
+ /** Axis-aligned bounding box in absolute pixel coordinates of the source frame. */
48
+ export interface DetectionBoundingBox {
49
+ readonly x: number;
50
+ readonly y: number;
51
+ readonly width: number;
52
+ readonly height: number;
53
+ }
54
+ /**
55
+ * A single enriched label attached to a detection.
56
+ *
57
+ * - In `Detection.labels[]` it represents an enrichment that "won" on this
58
+ * detection (either produced directly on it, or inherited from a child
59
+ * detail in the same frame).
60
+ * - In `DetectionDebug.alternateLabels[source][]` it represents one
61
+ * candidate from a top-N ranked list.
62
+ */
63
+ export interface ScoredLabel {
53
64
  readonly label: string;
54
- /** Confidence of the classification */
55
65
  readonly score: number;
56
- /** Bounding box of the source region this label applies to [x1, y1, x2, y2] */
57
- readonly box: readonly [number, number, number, number];
58
- /** Source addon that produced this label */
59
- readonly addonId: string;
60
- /** Origin type — what kind of step produced this label */
61
- readonly origin: LabelOrigin;
62
- }
63
- /** A detection produced by the pipeline executor with accumulated labels */
64
- export interface PipelineDetection {
65
- readonly className: string;
66
+ /**
67
+ * When this label was inherited from a child detail (e.g. a person
68
+ * carrying a recognized face name), this is the child detection's id.
69
+ * Omitted on own enrichments — the label already lives on the entry
70
+ * that carries it.
71
+ */
72
+ readonly detectionId?: string;
73
+ }
74
+ /** What kind of entry a detection is at the root of `detections[]`. */
75
+ export type DetectionKind = 'first-level' | 'detail' | 'audio';
76
+ /** First-level macro classes produced by object detectors. */
77
+ export type FirstLevelMacro = 'person' | 'vehicle' | 'animal';
78
+ /** Detail macro classes produced by crop+recognize steps. */
79
+ export type DetailMacro = 'face' | 'plate';
80
+ /**
81
+ * Macro class carried at the root of each Detection entry. Kept as an
82
+ * extensible string union so future detectors (e.g. a custom
83
+ * `first-level-fire` classifier) can plug in without a type change.
84
+ */
85
+ export type MacroClass = FirstLevelMacro | DetailMacro | 'audio' | string;
86
+ /** Tracker-enriched info attached to first-level detections only. */
87
+ export interface TrackInfo {
88
+ readonly trackId: string;
89
+ readonly moving?: boolean;
90
+ /** Pixels per second in frame coordinates. */
91
+ readonly speedPx?: number;
92
+ /** IDs of zones the bbox overlaps at this frame. */
93
+ readonly zones?: readonly string[];
94
+ /** Wall-clock timestamp (ms) when the track was first seen. */
95
+ readonly firstSeenMs?: number;
96
+ /** Wall-clock timestamp (ms) of the last update on this track. */
97
+ readonly lastSeenMs?: number;
98
+ }
99
+ /** Per-detection debug bag — populated only when detection debug is enabled. */
100
+ export interface DetectionDebug {
101
+ /** Latency of each step that touched this detection (source → ms). */
102
+ readonly stepLatencyMs?: Readonly<Record<string, number>>;
103
+ /** Model id used by each step that touched this detection (source → modelId). */
104
+ readonly modelIds?: Readonly<Record<string, string>>;
105
+ /** How the step read the image — full frame or cropped ROI. */
106
+ readonly extractMode?: 'full-frame' | 'crop-roi';
107
+ /**
108
+ * Raw detector class before any macro mapping. Present only when it
109
+ * differs from `macroClass` (e.g. object-detection returned `'dog'`,
110
+ * mapped to `macroClass: 'animal'`).
111
+ */
66
112
  readonly originalClass?: string;
67
- readonly confidence: number;
68
- readonly bbox: readonly [number, number, number, number];
69
- /** Accumulated labels from all classifier/recognizer steps in the pipeline */
70
- readonly labelsData: readonly LabelData[];
71
- /** Base64-encoded binary segmentation mask (when using -seg models or refiner) */
113
+ /**
114
+ * Full top-N ranked alternatives per source (classifier / recognizer).
115
+ * The winner of each list already appears in `detection.labels[]`
116
+ * this field surfaces the rest for the benchmark UI and debug inspectors.
117
+ */
118
+ readonly alternateLabels?: Readonly<Record<string, readonly ScoredLabel[]>>;
119
+ /** Base64 binary segmentation mask (when a seg/refiner step produced one). */
72
120
  readonly mask?: string;
73
121
  readonly maskWidth?: number;
74
122
  readonly maskHeight?: number;
75
- /** Sub-detections from cropper steps (face bbox, plate bbox) for debug */
76
- readonly children?: readonly PipelineDetection[];
77
- readonly zones?: readonly DetectionZoneMembership[];
123
+ /** Id of the embedding stored by face/voice/plate recognition, when any. */
78
124
  readonly embeddingId?: string;
79
125
  }
80
- export interface PipelineStepTiming {
81
- readonly addonId: string;
82
- readonly modelId: string;
126
+ /** Per-step timing in a frame-level debug bag. Aggregate across all the detections. */
127
+ export interface FrameStepTiming {
128
+ /** Step addon id. */
129
+ readonly source: string;
130
+ /** Model id used during this frame. */
131
+ readonly modelId?: string;
132
+ /** Total wall-clock latency contributed by this step to the frame. */
83
133
  readonly ms: number;
84
- readonly detections: number;
134
+ /** How many detections this step contributed (for per-step throughput). */
135
+ readonly detectionCount?: number;
136
+ }
137
+ /** Per-frame debug bag — populated only when detection debug is enabled. */
138
+ export interface FrameDebug {
139
+ /** Sum of all step latencies for this frame (not wall-clock). */
140
+ readonly totalInferenceMs?: number;
141
+ /** Flat list of per-step timings. */
142
+ readonly stepTimings?: readonly FrameStepTiming[];
143
+ /** Engine descriptor — e.g. `'python/coreml'`. */
144
+ readonly engine?: string;
145
+ /** Pipeline template id in use (for comparing across runs). */
146
+ readonly pipelineId?: string;
147
+ /** JPEG → dimensions probe + buffer alloc (benchmark / reference-image paths only). */
148
+ readonly decodeMs?: number;
149
+ /** Per-run setup: step conversion, engine factory init, model load, tree build. */
150
+ readonly setupMs?: number;
151
+ /** Total wall-clock of runPipeline from entry to return — includes decode, setup, inference, progress emit. */
152
+ readonly wallMs?: number;
153
+ /** Residual = wallMs - (decodeMs + setupMs + totalInferenceMs). Surfaces tRPC / IPC / overhead. */
154
+ readonly overheadMs?: number;
155
+ /** Python-pool preprocess wall (PIL resize + tensor pack). Excludes IPC + window-accumulator wait. */
156
+ readonly preprocessMs?: number;
157
+ /** Python-pool predict wall (model.predict only). Pure ANE/CoreML/ORT execute time. */
158
+ readonly predictMs?: number;
159
+ /** Window-accumulator batch size used for the predict call (1 = no batching, N = N frames coalesced). */
160
+ readonly batchSize?: number;
161
+ }
162
+ /** Common shape shared by every entry in `FrameResult.detections` / `AudioResult.detections`. */
163
+ export interface DetectionBase {
164
+ readonly id: string;
165
+ readonly kind: DetectionKind;
166
+ readonly macroClass: MacroClass;
167
+ /** Score of the macro class itself (from the detector that emitted this entry). */
168
+ readonly score: number;
169
+ /**
170
+ * Enrichment labels — each with its own score. Ordered:
171
+ * (1) catena di enricher diretti sulla detection,
172
+ * (2) labels ereditate dai children details (in ordine di apparizione).
173
+ * Lo score preserva il valore prodotto dall'enricher originale anche
174
+ * quando la label è ereditata.
175
+ */
176
+ readonly labels: readonly ScoredLabel[];
177
+ readonly track?: TrackInfo;
178
+ readonly debug?: DetectionDebug;
179
+ }
180
+ /** Object detection (first-level person/vehicle/animal OR detail face/plate). */
181
+ export interface ObjectDetection extends DetectionBase {
182
+ readonly kind: 'first-level' | 'detail';
183
+ /** Absolute pixel coordinates in the source frame. */
184
+ readonly bbox: DetectionBoundingBox;
185
+ /**
186
+ * For details (face, plate): id of the first-level parent entry in
187
+ * the same frame. Allows the UI to correlate a face crop back to the
188
+ * person box (or a plate back to the vehicle box).
189
+ */
190
+ readonly parentId?: string;
191
+ }
192
+ /** Audio detection — flat, time-localised within the window. */
193
+ export interface AudioDetection extends DetectionBase {
194
+ readonly kind: 'audio';
195
+ readonly startMs: number;
196
+ readonly endMs: number;
197
+ }
198
+ /**
199
+ * Union of every possible detection entry at the root of a result payload.
200
+ *
201
+ * Named `DetectionEntry` rather than `Detection` because the
202
+ * device-capabilities namespace already exports a different `Detection`
203
+ * interface for Scrypted-style object detectors. The two live in
204
+ * separate files but both are re-exported at the package root, so
205
+ * keeping names distinct avoids an import-level collision.
206
+ */
207
+ export type DetectionEntry = ObjectDetection | AudioDetection;
208
+ /**
209
+ * Per-frame pipeline result — the canonical container emitted by
210
+ * `pipelineExecutor.runPipeline` (one-shot benchmark + runtime dispatch)
211
+ * and by the live video pipeline. Carries only `ObjectDetection` entries
212
+ * (video has no audio events).
213
+ */
214
+ export interface FrameResult {
215
+ readonly kind: 'frame';
216
+ readonly frameId: string;
217
+ readonly deviceId: number;
218
+ /** Wall-clock timestamp (ms) of frame capture / emission. */
219
+ readonly timestamp: number;
220
+ readonly width: number;
221
+ readonly height: number;
222
+ readonly detections: readonly ObjectDetection[];
223
+ readonly debug?: FrameDebug;
85
224
  }
86
- export interface PipelineRunResult {
87
- readonly detections: readonly PipelineDetection[];
88
- readonly stepTimings: readonly PipelineStepTiming[];
89
- readonly totalMs: number;
90
- readonly imageWidth: number;
91
- readonly imageHeight: number;
225
+ /**
226
+ * Per-audio-window pipeline result — the canonical container emitted by
227
+ * the audio pipeline. Carries only `AudioDetection` entries plus optional
228
+ * window-level level metrics.
229
+ */
230
+ export interface AudioResult {
231
+ readonly kind: 'audio-window';
232
+ readonly windowId: string;
233
+ readonly deviceId: number;
234
+ /** Wall-clock timestamp (ms) of the window start. */
235
+ readonly timestamp: number;
236
+ /** Offset (ms) of the window start inside the source audio stream. */
237
+ readonly startMs: number;
238
+ /** Offset (ms) of the window end inside the source audio stream. */
239
+ readonly endMs: number;
240
+ /** Aggregate audio level metrics (RMS / dBFS), independent from detections. */
241
+ readonly level?: {
242
+ readonly rms: number;
243
+ readonly dbfs: number;
244
+ };
245
+ readonly detections: readonly AudioDetection[];
246
+ readonly debug?: FrameDebug;
92
247
  }
248
+ /** Discriminated union of every top-level pipeline result payload shape. */
249
+ export type PipelineFrameResult = FrameResult | AudioResult;
93
250
  //# sourceMappingURL=detection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"detection.d.ts","sourceRoot":"","sources":["../../src/types/detection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAChE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAA;AAEzD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAA;IAC1B,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,QAAQ,EAAE,CAAA;IACxC,QAAQ,CAAC,IAAI,CAAC,EAAE,UAAU,CAAA;IAC1B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAC7B;AAED,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAA;IAC1B,QAAQ,CAAC,GAAG,EAAE,WAAW,CAAA;IACzB,QAAQ,CAAC,eAAe,EAAE,gBAAgB,CAAA;CAC3C;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,SAAS,CAAC,EAAE,YAAY,CAAA;IACjC,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,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E,MAAM,CAAA;IACvB,QAAQ,CAAC,UAAU,EAAE,SAAS,eAAe,EAAE,CAAA;IAC/C,QAAQ,CAAC,KAAK,CAAC,EAAE,UAAU,CAAA;CAC5B;AAED;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAA;IAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,qDAAqD;IACrD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,sEAAsE;IACtE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,oEAAoE;IACpE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,+EAA+E;IAC/E,QAAQ,CAAC,KAAK,CAAC,EAAE;QACf,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;QACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KACtB,CAAA;IACD,QAAQ,CAAC,UAAU,EAAE,SAAS,cAAc,EAAE,CAAA;IAC9C,QAAQ,CAAC,KAAK,CAAC,EAAE,UAAU,CAAA;CAC5B;AAED,4EAA4E;AAC5E,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG,WAAW,CAAA"}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @deprecated Use DeviceType from '@camstack/types/device' instead.
3
+ * This file is kept for backwards compatibility during migration.
4
+ */
1
5
  export declare enum DeviceType {
2
6
  Camera = "camera"
3
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"device-type.d.ts","sourceRoot":"","sources":["../../src/types/device-type.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,UAAU,EAAE,cAAc,CAE/D,CAAA"}
1
+ {"version":3,"file":"device-type.d.ts","sourceRoot":"","sources":["../../src/types/device-type.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,oBAAY,UAAU;IACpB,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,UAAU,EAAE,cAAc,CAE/D,CAAA"}
@@ -0,0 +1,24 @@
1
+ export interface LetterboxMeta {
2
+ readonly scale: number;
3
+ readonly padX: number;
4
+ readonly padY: number;
5
+ readonly originalWidth: number;
6
+ readonly originalHeight: number;
7
+ }
8
+ export interface EngineOutput {
9
+ readonly tensor?: Float32Array;
10
+ readonly tensors?: Record<string, Float32Array>;
11
+ readonly structured?: Record<string, unknown>;
12
+ readonly letterbox?: LetterboxMeta;
13
+ readonly inferenceMs: number;
14
+ }
15
+ export interface ModelInputMeta {
16
+ readonly inputSize: {
17
+ readonly width: number;
18
+ readonly height: number;
19
+ };
20
+ readonly inputNormalization: 'zero-one' | 'imagenet' | 'none';
21
+ readonly inputLayout: 'nchw' | 'nhwc';
22
+ readonly preprocessMode: 'letterbox' | 'resize';
23
+ }
24
+ //# sourceMappingURL=engine-output.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engine-output.d.ts","sourceRoot":"","sources":["../../src/types/engine-output.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAA;CAChC;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAA;IAC9B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;IAC/C,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC7C,QAAQ,CAAC,SAAS,CAAC,EAAE,aAAa,CAAA;IAClC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAC7B;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,SAAS,EAAE;QAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAA;IACvE,QAAQ,CAAC,kBAAkB,EAAE,UAAU,GAAG,UAAU,GAAG,MAAM,CAAA;IAC7D,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAA;IACrC,QAAQ,CAAC,cAAc,EAAE,WAAW,GAAG,QAAQ,CAAA;CAChD"}
@@ -9,17 +9,71 @@ export interface Landmark {
9
9
  readonly y: number;
10
10
  readonly label?: string;
11
11
  }
12
+ /**
13
+ * Canonical pixel/frame format identifier used throughout the streaming +
14
+ * detection pipeline.
15
+ *
16
+ * - `jpeg` — encoded JPEG bytes (decoder-side `sharp` encode)
17
+ * - `rgb` — packed RGB24 (3 bytes/pixel, planar order R,G,B)
18
+ * - `bgr` — packed BGR24 (3 bytes/pixel, planar order B,G,R)
19
+ * - `yuv420` — planar YUV 4:2:0 (1.5 bytes/pixel)
20
+ * - `gray` — single-channel 8-bit luminance (1 byte/pixel)
21
+ *
22
+ * Single source of truth: matches `FrameFormatSchema` in
23
+ * `capabilities/schemas/detection-shared.ts`.
24
+ */
25
+ export type FrameFormat = 'jpeg' | 'rgb' | 'bgr' | 'yuv420' | 'gray';
26
+ /** Subset of `FrameFormat` accepted by the raw inference fast path. */
27
+ export type RawFrameFormat = Exclude<FrameFormat, 'jpeg' | 'yuv420'>;
12
28
  export interface FrameInput {
13
- readonly data: Buffer;
14
- readonly format: 'jpeg' | 'rgb' | 'yuv420';
29
+ readonly data: Uint8Array;
30
+ readonly format: FrameFormat;
15
31
  readonly width: number;
16
32
  readonly height: number;
17
33
  readonly timestamp: number;
18
34
  }
19
35
  export interface AudioChunkInput {
20
- readonly data: Float32Array;
36
+ readonly [key: string]: unknown;
37
+ readonly data: Float32Array<ArrayBuffer>;
21
38
  readonly sampleRate: number;
22
39
  readonly channels: number;
23
40
  readonly timestamp: number;
41
+ readonly deviceId?: number;
42
+ }
43
+ /**
44
+ * Classification result for an audio chunk.
45
+ * Mirrors `SpatialDetection` (class + originalClass): `className` is the
46
+ * primary display class (macro or raw depending on how it was produced),
47
+ * `originalClass` is the raw backend label that was actually emitted.
48
+ * Both values are kept so downstream consumers — especially the UI — can
49
+ * render and filter consistently regardless of the classMode.
50
+ */
51
+ export interface AudioClassificationEntry {
52
+ readonly className: string;
53
+ readonly originalClass?: string;
54
+ readonly score: number;
55
+ }
56
+ /**
57
+ * Complete result of audio analysis on a single chunk.
58
+ * Produced by the addon, consumed by detection-wiring for EventBus emission.
59
+ */
60
+ export interface AudioAnalysisResult {
61
+ /** Audio level metrics — always present */
62
+ readonly level: {
63
+ readonly rms: number;
64
+ readonly dbfs: number;
65
+ };
66
+ /** Classification results — present only if classifier is enabled and produced results */
67
+ readonly classification?: {
68
+ readonly labels: readonly AudioClassificationEntry[];
69
+ readonly inferenceMs: number;
70
+ };
71
+ /** Chunk timestamp from the stream */
72
+ readonly timestamp: number;
73
+ }
74
+ /** Settings for audio analysis filtering (passed to the addon) */
75
+ export interface AudioAnalysisSettings {
76
+ readonly minConfidence: number;
77
+ readonly allowedClasses: string[];
24
78
  }
25
79
  //# sourceMappingURL=io.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"io.d.ts","sourceRoot":"","sources":["../../src/types/io.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAA;IAC1C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAC3B;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;IAC3B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAC3B"}
1
+ {"version":3,"file":"io.d.ts","sourceRoot":"","sources":["../../src/types/io.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,QAAQ;IACvB,QA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AAE,MAAM,CAAA;QACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KACtB,CAAA;IACD,0FAA0F;IAC1F,QAAQ,CAAC,cAAc,CAAC,EAAE;QACxB,QAAQ,CAAC,MAAM,EAAE,SAAS,wBAAwB,EAAE,CAAA;QACpD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;KAC7B,CAAA;IACD,sCAAsC;IACtC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAC3B;AAED,kEAAkE;AAClE,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,cAAc,EAAE,MAAM,EAAE,CAAA;CAClC"}
@@ -1,5 +1,6 @@
1
1
  import type { LabelDefinition, ClassMapDefinition } from './labels.js';
2
- export type ModelFormat = 'onnx' | 'coreml' | 'openvino' | 'tflite' | 'pt';
2
+ export declare const MODEL_FORMATS: readonly ["onnx", "coreml", "openvino", "tflite", "pt"];
3
+ export type ModelFormat = (typeof MODEL_FORMATS)[number];
3
4
  export type ModelOutputFormat = 'yolo' | 'ssd' | 'embedding' | 'classification' | 'ocr' | 'segmentation';
4
5
  export interface ModelFormatEntry {
5
6
  readonly url: string;
@@ -36,6 +37,7 @@ export interface ModelCatalogEntry {
36
37
  readonly labels: readonly LabelDefinition[];
37
38
  readonly inputLayout?: 'nchw' | 'nhwc';
38
39
  readonly inputNormalization?: 'zero-one' | 'imagenet' | 'none';
40
+ readonly preprocessMode?: 'letterbox' | 'resize';
39
41
  /**
40
42
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
41
43
  * Downloaded into the same modelsDir alongside the model file.
@@ -1 +1 @@
1
- {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/types/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAEtE,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,QAAQ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CAAA;IAChC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CAClE;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAA;IAChC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAA;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,SAAS,EAAE;QAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAA;IACvE,QAAQ,CAAC,MAAM,EAAE,SAAS,eAAe,EAAE,CAAA;IAC3C,QAAQ,CAAC,QAAQ,CAAC,EAAE,kBAAkB,CAAA;IACtC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,MAAM,CAAA;IAC9D,QAAQ,CAAC,YAAY,EAAE,iBAAiB,CAAA;CACzC"}
@@ -1,75 +1,18 @@
1
- import type { PipelineSlot } from './pipeline.js';
2
- import type { ModelFormat } from './models.js';
3
- export interface PipelineAddonSchema {
4
- readonly id: string;
5
- readonly name: string;
6
- readonly slot: PipelineSlot;
7
- readonly inputClasses: readonly string[];
8
- readonly outputClasses: readonly string[];
9
- /** Which child slots this addon can host (e.g. detector hosts cropper/classifier) */
10
- readonly childSlots: readonly PipelineSlot[];
11
- /** Available models with download status per format */
12
- readonly models: readonly PipelineModelOption[];
13
- readonly defaultModelId: string;
14
- readonly defaultConfidence: number;
15
- /** Best runtime for this addon on this agent — resolved by PlatformScorer */
16
- readonly defaultRuntime: string;
17
- /** Best backend for this addon on this agent — resolved by PlatformScorer */
18
- readonly defaultBackend: string;
19
- }
20
- export interface PipelineModelOption {
21
- readonly id: string;
22
- readonly name: string;
23
- readonly formats: Partial<Readonly<Record<ModelFormat, {
24
- downloaded: boolean;
25
- sizeMB: number;
26
- }>>>;
27
- }
28
- export interface PipelineSlotSchema {
29
- readonly id: PipelineSlot;
30
- readonly label: string;
31
- readonly priority: number;
32
- /** Which slot is the parent (null for root detectors) */
33
- readonly parentSlot: PipelineSlot | null;
34
- readonly addons: readonly PipelineAddonSchema[];
35
- }
36
- export interface PipelineSchema {
37
- readonly slots: readonly PipelineSlotSchema[];
38
- }
39
- /** A fully-resolved pipeline step with all defaults from PlatformScorer */
40
- export interface PipelineDefaultStep {
41
- readonly addonId: string;
42
- readonly addonName: string;
43
- readonly slot: PipelineSlot;
44
- readonly inputClasses: readonly string[];
45
- readonly outputClasses: readonly string[];
46
- readonly enabled: boolean;
47
- readonly agentId: string;
48
- readonly runtime: string;
49
- readonly backend: string;
50
- readonly modelId: string;
51
- readonly confidence: number;
52
- readonly classFilters: readonly string[];
53
- readonly children: readonly PipelineDefaultStep[];
54
- }
55
- export interface PipelineTemplateStep {
56
- readonly addonId: string;
57
- readonly enabled: boolean;
58
- readonly agentId: string;
59
- readonly runtime: string;
60
- readonly backend: string;
61
- readonly modelId: string;
62
- readonly confidence: number;
63
- readonly classFilters: readonly string[];
64
- readonly children: readonly PipelineTemplateStep[];
65
- }
66
- export interface PipelineTemplate {
67
- readonly id: string;
68
- readonly name: string;
69
- readonly createdAt: string;
70
- readonly updatedAt: string;
71
- readonly steps: readonly PipelineTemplateStep[];
72
- }
1
+ import type { z } from 'zod';
2
+ import type { PipelineSchemaSchema, PipelineAddonSchemaSchema, PipelineSlotSchemaSchema, PipelineModelOptionSchema, AvailableEngineSchema, PipelineTemplateSchema, PipelineTemplateStepSchema } from '../capabilities/pipeline-executor.cap.js';
3
+ import type { PipelineDefaultStepOutput } from '../capabilities/pipeline-executor.cap.js';
4
+ export type PipelineAddonSchema = z.infer<typeof PipelineAddonSchemaSchema>;
5
+ export type PipelineModelOption = z.infer<typeof PipelineModelOptionSchema>;
6
+ export type PipelineSlotSchema = z.infer<typeof PipelineSlotSchemaSchema>;
7
+ export type AvailableEngine = z.infer<typeof AvailableEngineSchema>;
8
+ export type PipelineSchema = z.infer<typeof PipelineSchemaSchema>;
9
+ /**
10
+ * A fully-resolved pipeline step.
11
+ * Runtime/backend are NOT per-step they come from PipelineConfig.engine.
12
+ */
13
+ export type PipelineDefaultStep = PipelineDefaultStepOutput;
14
+ export type PipelineTemplateStep = z.infer<typeof PipelineTemplateStepSchema>;
15
+ export type PipelineTemplate = z.infer<typeof PipelineTemplateSchema>;
73
16
  export interface TemplateValidationResult {
74
17
  readonly valid: boolean;
75
18
  readonly steps: readonly PipelineTemplateStep[];
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline-schema.d.ts","sourceRoot":"","sources":["../../src/types/pipeline-schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAI9C,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;IAC3B,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAA;IACxC,QAAQ,CAAC,aAAa,EAAE,SAAS,MAAM,EAAE,CAAA;IACzC,qFAAqF;IACrF,QAAQ,CAAC,UAAU,EAAE,SAAS,YAAY,EAAE,CAAA;IAC5C,uDAAuD;IACvD,QAAQ,CAAC,MAAM,EAAE,SAAS,mBAAmB,EAAE,CAAA;IAC/C,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAA;IAC/B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAA;IAClC,6EAA6E;IAC7E,QAAQ,CAAC,cAAc,EAAE,MA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