@camstack/types 0.1.13 → 0.1.15

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 (445) 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/capabilities/accessories.cap.d.ts +42 -0
  4. package/dist/capabilities/accessories.cap.d.ts.map +1 -0
  5. package/dist/capabilities/addon-pages-source.cap.d.ts +41 -0
  6. package/dist/capabilities/addon-pages-source.cap.d.ts.map +1 -0
  7. package/dist/capabilities/addon-pages.cap.d.ts +36 -0
  8. package/dist/capabilities/addon-pages.cap.d.ts.map +1 -0
  9. package/dist/capabilities/addon-routes.cap.d.ts +22 -0
  10. package/dist/capabilities/addon-routes.cap.d.ts.map +1 -0
  11. package/dist/capabilities/addon-settings.cap.d.ts +170 -0
  12. package/dist/capabilities/addon-settings.cap.d.ts.map +1 -0
  13. package/dist/capabilities/addon-widgets-source.cap.d.ts +103 -0
  14. package/dist/capabilities/addon-widgets-source.cap.d.ts.map +1 -0
  15. package/dist/capabilities/addon-widgets.cap.d.ts +98 -0
  16. package/dist/capabilities/addon-widgets.cap.d.ts.map +1 -0
  17. package/dist/capabilities/addons.cap.d.ts +280 -0
  18. package/dist/capabilities/addons.cap.d.ts.map +1 -0
  19. package/dist/capabilities/admin-ui.cap.d.ts +14 -0
  20. package/dist/capabilities/admin-ui.cap.d.ts.map +1 -0
  21. package/dist/capabilities/advanced-notifier.cap.d.ts +60 -0
  22. package/dist/capabilities/advanced-notifier.cap.d.ts.map +1 -0
  23. package/dist/capabilities/alerts.cap.d.ts +164 -0
  24. package/dist/capabilities/alerts.cap.d.ts.map +1 -0
  25. package/dist/capabilities/audio-analysis.cap.d.ts +46 -0
  26. package/dist/capabilities/audio-analysis.cap.d.ts.map +1 -0
  27. package/dist/capabilities/audio-analyzer.cap.d.ts +148 -0
  28. package/dist/capabilities/audio-analyzer.cap.d.ts.map +1 -0
  29. package/dist/capabilities/audio-codec.cap.d.ts +202 -0
  30. package/dist/capabilities/audio-codec.cap.d.ts.map +1 -0
  31. package/dist/capabilities/audio-metrics.cap.d.ts +174 -0
  32. package/dist/capabilities/audio-metrics.cap.d.ts.map +1 -0
  33. package/dist/capabilities/auth-provider.cap.d.ts +49 -0
  34. package/dist/capabilities/auth-provider.cap.d.ts.map +1 -0
  35. package/dist/capabilities/backup.cap.d.ts +48 -0
  36. package/dist/capabilities/backup.cap.d.ts.map +1 -0
  37. package/dist/capabilities/battery.cap.d.ts +85 -0
  38. package/dist/capabilities/battery.cap.d.ts.map +1 -0
  39. package/dist/capabilities/brightness.cap.d.ts +64 -0
  40. package/dist/capabilities/brightness.cap.d.ts.map +1 -0
  41. package/dist/capabilities/camera-credentials.cap.d.ts +102 -0
  42. package/dist/capabilities/camera-credentials.cap.d.ts.map +1 -0
  43. package/dist/capabilities/camera-streams.cap.d.ts +214 -0
  44. package/dist/capabilities/camera-streams.cap.d.ts.map +1 -0
  45. package/dist/capabilities/capability-definition.d.ts +474 -0
  46. package/dist/capabilities/capability-definition.d.ts.map +1 -0
  47. package/dist/capabilities/custom-actions.d.ts +47 -0
  48. package/dist/capabilities/custom-actions.d.ts.map +1 -0
  49. package/dist/capabilities/decoder.cap.d.ts +173 -0
  50. package/dist/capabilities/decoder.cap.d.ts.map +1 -0
  51. package/dist/capabilities/detection-pipeline.cap.d.ts +34 -0
  52. package/dist/capabilities/detection-pipeline.cap.d.ts.map +1 -0
  53. package/dist/capabilities/device-discovery.cap.d.ts +247 -0
  54. package/dist/capabilities/device-discovery.cap.d.ts.map +1 -0
  55. package/dist/capabilities/device-manager.cap.d.ts +709 -0
  56. package/dist/capabilities/device-manager.cap.d.ts.map +1 -0
  57. package/dist/capabilities/device-ops.cap.d.ts +87 -0
  58. package/dist/capabilities/device-ops.cap.d.ts.map +1 -0
  59. package/dist/capabilities/device-provider.cap.d.ts +151 -0
  60. package/dist/capabilities/device-provider.cap.d.ts.map +1 -0
  61. package/dist/capabilities/device-state.cap.d.ts +97 -0
  62. package/dist/capabilities/device-state.cap.d.ts.map +1 -0
  63. package/dist/capabilities/device-status.cap.d.ts +54 -0
  64. package/dist/capabilities/device-status.cap.d.ts.map +1 -0
  65. package/dist/capabilities/doorbell.cap.d.ts +62 -0
  66. package/dist/capabilities/doorbell.cap.d.ts.map +1 -0
  67. package/dist/capabilities/embedding-encoder.cap.d.ts +41 -0
  68. package/dist/capabilities/embedding-encoder.cap.d.ts.map +1 -0
  69. package/dist/capabilities/events.cap.d.ts +48 -0
  70. package/dist/capabilities/events.cap.d.ts.map +1 -0
  71. package/dist/capabilities/feature-probe.cap.d.ts +79 -0
  72. package/dist/capabilities/feature-probe.cap.d.ts.map +1 -0
  73. package/dist/capabilities/index.d.ts +177 -0
  74. package/dist/capabilities/index.d.ts.map +1 -0
  75. package/dist/capabilities/integrations.cap.d.ts +182 -0
  76. package/dist/capabilities/integrations.cap.d.ts.map +1 -0
  77. package/dist/capabilities/intercom.cap.d.ts +108 -0
  78. package/dist/capabilities/intercom.cap.d.ts.map +1 -0
  79. package/dist/capabilities/log-destination.cap.d.ts +70 -0
  80. package/dist/capabilities/log-destination.cap.d.ts.map +1 -0
  81. package/dist/capabilities/metrics-provider.cap.d.ts +522 -0
  82. package/dist/capabilities/metrics-provider.cap.d.ts.map +1 -0
  83. package/dist/capabilities/motion-detection.cap.d.ts +107 -0
  84. package/dist/capabilities/motion-detection.cap.d.ts.map +1 -0
  85. package/dist/capabilities/motion-trigger.cap.d.ts +78 -0
  86. package/dist/capabilities/motion-trigger.cap.d.ts.map +1 -0
  87. package/dist/capabilities/motion.cap.d.ts +122 -0
  88. package/dist/capabilities/motion.cap.d.ts.map +1 -0
  89. package/dist/capabilities/native-object-detection.cap.d.ts +127 -0
  90. package/dist/capabilities/native-object-detection.cap.d.ts.map +1 -0
  91. package/dist/capabilities/network-access.cap.d.ts +67 -0
  92. package/dist/capabilities/network-access.cap.d.ts.map +1 -0
  93. package/dist/capabilities/network-quality.cap.d.ts +95 -0
  94. package/dist/capabilities/network-quality.cap.d.ts.map +1 -0
  95. package/dist/capabilities/nodes.cap.d.ts +200 -0
  96. package/dist/capabilities/nodes.cap.d.ts.map +1 -0
  97. package/dist/capabilities/notification-output.cap.d.ts +44 -0
  98. package/dist/capabilities/notification-output.cap.d.ts.map +1 -0
  99. package/dist/capabilities/osd.cap.d.ts +236 -0
  100. package/dist/capabilities/osd.cap.d.ts.map +1 -0
  101. package/dist/capabilities/pipeline-analytics.cap.d.ts +501 -0
  102. package/dist/capabilities/pipeline-analytics.cap.d.ts.map +1 -0
  103. package/dist/capabilities/pipeline-executor.cap.d.ts +922 -0
  104. package/dist/capabilities/pipeline-executor.cap.d.ts.map +1 -0
  105. package/dist/capabilities/pipeline-orchestrator.cap.d.ts +793 -0
  106. package/dist/capabilities/pipeline-orchestrator.cap.d.ts.map +1 -0
  107. package/dist/capabilities/pipeline-runner.cap.d.ts +393 -0
  108. package/dist/capabilities/pipeline-runner.cap.d.ts.map +1 -0
  109. package/dist/capabilities/platform-probe.cap.d.ts +168 -0
  110. package/dist/capabilities/platform-probe.cap.d.ts.map +1 -0
  111. package/dist/capabilities/ptz-autotrack.cap.d.ts +188 -0
  112. package/dist/capabilities/ptz-autotrack.cap.d.ts.map +1 -0
  113. package/dist/capabilities/ptz.cap.d.ts +80 -0
  114. package/dist/capabilities/ptz.cap.d.ts.map +1 -0
  115. package/dist/capabilities/reboot.cap.d.ts +32 -0
  116. package/dist/capabilities/reboot.cap.d.ts.map +1 -0
  117. package/dist/capabilities/recording-engine.cap.d.ts +477 -0
  118. package/dist/capabilities/recording-engine.cap.d.ts.map +1 -0
  119. package/dist/capabilities/recording.cap.d.ts +43 -0
  120. package/dist/capabilities/recording.cap.d.ts.map +1 -0
  121. package/dist/capabilities/restreamer.cap.d.ts +51 -0
  122. package/dist/capabilities/restreamer.cap.d.ts.map +1 -0
  123. package/dist/capabilities/schemas/detection-shared.d.ts +63 -0
  124. package/dist/capabilities/schemas/detection-shared.d.ts.map +1 -0
  125. package/dist/capabilities/schemas/orchestrator-metrics.d.ts +44 -0
  126. package/dist/capabilities/schemas/orchestrator-metrics.d.ts.map +1 -0
  127. package/dist/capabilities/schemas/streaming-shared.d.ts +177 -0
  128. package/dist/capabilities/schemas/streaming-shared.d.ts.map +1 -0
  129. package/dist/capabilities/schemas/zone-rule.d.ts +74 -0
  130. package/dist/capabilities/schemas/zone-rule.d.ts.map +1 -0
  131. package/dist/capabilities/settings-store.cap.d.ts +198 -0
  132. package/dist/capabilities/settings-store.cap.d.ts.map +1 -0
  133. package/dist/capabilities/snapshot-provider.cap.d.ts +40 -0
  134. package/dist/capabilities/snapshot-provider.cap.d.ts.map +1 -0
  135. package/dist/capabilities/snapshot.cap.d.ts +78 -0
  136. package/dist/capabilities/snapshot.cap.d.ts.map +1 -0
  137. package/dist/capabilities/storage.cap.d.ts +104 -0
  138. package/dist/capabilities/storage.cap.d.ts.map +1 -0
  139. package/dist/capabilities/stream-broker.cap.d.ts +416 -0
  140. package/dist/capabilities/stream-broker.cap.d.ts.map +1 -0
  141. package/dist/capabilities/streaming-engine.cap.d.ts +58 -0
  142. package/dist/capabilities/streaming-engine.cap.d.ts.map +1 -0
  143. package/dist/capabilities/switch.cap.d.ts +66 -0
  144. package/dist/capabilities/switch.cap.d.ts.map +1 -0
  145. package/dist/capabilities/system.cap.d.ts +86 -0
  146. package/dist/capabilities/system.cap.d.ts.map +1 -0
  147. package/dist/capabilities/toast.cap.d.ts +56 -0
  148. package/dist/capabilities/toast.cap.d.ts.map +1 -0
  149. package/dist/capabilities/turn-provider.cap.d.ts +43 -0
  150. package/dist/capabilities/turn-provider.cap.d.ts.map +1 -0
  151. package/dist/capabilities/user-management.cap.d.ts +378 -0
  152. package/dist/capabilities/user-management.cap.d.ts.map +1 -0
  153. package/dist/capabilities/webrtc-session.cap.d.ts +181 -0
  154. package/dist/capabilities/webrtc-session.cap.d.ts.map +1 -0
  155. package/dist/capabilities/webrtc.cap.d.ts +72 -0
  156. package/dist/capabilities/webrtc.cap.d.ts.map +1 -0
  157. package/dist/capabilities/zone-analytics.cap.d.ts +213 -0
  158. package/dist/capabilities/zone-analytics.cap.d.ts.map +1 -0
  159. package/dist/capabilities/zone-rules.cap.d.ts +129 -0
  160. package/dist/capabilities/zone-rules.cap.d.ts.map +1 -0
  161. package/dist/capabilities/zones.cap.d.ts +151 -0
  162. package/dist/capabilities/zones.cap.d.ts.map +1 -0
  163. package/dist/catalogs/audio-classmap.d.ts +16 -0
  164. package/dist/catalogs/audio-classmap.d.ts.map +1 -0
  165. package/dist/catalogs/coco-classmap.d.ts.map +1 -1
  166. package/dist/constants.d.ts +50 -0
  167. package/dist/constants.d.ts.map +1 -1
  168. package/dist/deps/binary-downloader.d.ts +41 -0
  169. package/dist/deps/binary-downloader.d.ts.map +1 -0
  170. package/dist/deps/ffmpeg-downloader.d.ts +13 -0
  171. package/dist/deps/ffmpeg-downloader.d.ts.map +1 -0
  172. package/dist/deps/index.d.ts +4 -0
  173. package/dist/deps/index.d.ts.map +1 -0
  174. package/dist/deps/python-downloader.d.ts +34 -0
  175. package/dist/deps/python-downloader.d.ts.map +1 -0
  176. package/dist/device/accessory.d.ts +62 -0
  177. package/dist/device/accessory.d.ts.map +1 -0
  178. package/dist/device/base-device-provider.d.ts +170 -0
  179. package/dist/device/base-device-provider.d.ts.map +1 -0
  180. package/dist/device/base-device.d.ts +287 -0
  181. package/dist/device/base-device.d.ts.map +1 -0
  182. package/dist/device/camera-device.d.ts +49 -0
  183. package/dist/device/camera-device.d.ts.map +1 -0
  184. package/dist/device/device-binding.d.ts +23 -0
  185. package/dist/device/device-binding.d.ts.map +1 -0
  186. package/dist/device/device-config.d.ts +65 -0
  187. package/dist/device/device-config.d.ts.map +1 -0
  188. package/dist/device/device-context.d.ts +256 -0
  189. package/dist/device/device-context.d.ts.map +1 -0
  190. package/dist/device/device-management.d.ts +118 -0
  191. package/dist/device/device-management.d.ts.map +1 -0
  192. package/dist/device/device-profile.d.ts +161 -0
  193. package/dist/device/device-profile.d.ts.map +1 -0
  194. package/dist/device/device-runtime-state.d.ts +124 -0
  195. package/dist/device/device-runtime-state.d.ts.map +1 -0
  196. package/dist/device/device-state-handle.d.ts +161 -0
  197. package/dist/device/device-state-handle.d.ts.map +1 -0
  198. package/dist/device/device-type.d.ts +68 -0
  199. package/dist/device/device-type.d.ts.map +1 -0
  200. package/dist/device/device.d.ts +87 -0
  201. package/dist/device/device.d.ts.map +1 -0
  202. package/dist/device/features.d.ts +29 -0
  203. package/dist/device/features.d.ts.map +1 -0
  204. package/dist/device/index.d.ts +20 -0
  205. package/dist/device/index.d.ts.map +1 -0
  206. package/dist/device/runtime-state-helpers.d.ts +69 -0
  207. package/dist/device/runtime-state-helpers.d.ts.map +1 -0
  208. package/dist/device/system-mirror.d.ts +318 -0
  209. package/dist/device/system-mirror.d.ts.map +1 -0
  210. package/dist/device/zod-to-config-ui.d.ts +23 -0
  211. package/dist/device/zod-to-config-ui.d.ts.map +1 -0
  212. package/dist/enums/event-category.d.ts +327 -0
  213. package/dist/enums/event-category.d.ts.map +1 -0
  214. package/dist/enums/event-source-type.d.ts +8 -0
  215. package/dist/enums/event-source-type.d.ts.map +1 -0
  216. package/dist/enums/index.d.ts +3 -0
  217. package/dist/enums/index.d.ts.map +1 -0
  218. package/dist/generated/addon-api.d.ts +13401 -3202
  219. package/dist/generated/addon-api.d.ts.map +1 -1
  220. package/dist/generated/cap-status-types.d.ts +51 -0
  221. package/dist/generated/cap-status-types.d.ts.map +1 -0
  222. package/dist/generated/capability-router-map.d.ts +257 -0
  223. package/dist/generated/capability-router-map.d.ts.map +1 -0
  224. package/dist/generated/device-local-state.d.ts +82 -0
  225. package/dist/generated/device-local-state.d.ts.map +1 -0
  226. package/dist/generated/device-proxy.d.ts +146 -0
  227. package/dist/generated/device-proxy.d.ts.map +1 -0
  228. package/dist/generated/system-proxy.d.ts +80 -0
  229. package/dist/generated/system-proxy.d.ts.map +1 -0
  230. package/dist/helpers/bind-addon-actions.d.ts +19 -0
  231. package/dist/helpers/bind-addon-actions.d.ts.map +1 -0
  232. package/dist/index.d.ts +86 -22
  233. package/dist/index.d.ts.map +1 -1
  234. package/dist/index.js +12328 -436
  235. package/dist/index.js.map +1 -1
  236. package/dist/index.mjs +11952 -427
  237. package/dist/index.mjs.map +1 -1
  238. package/dist/interfaces/addon.d.ts +678 -132
  239. package/dist/interfaces/addon.d.ts.map +1 -1
  240. package/dist/interfaces/advanced-notifier.d.ts +3 -2
  241. package/dist/interfaces/advanced-notifier.d.ts.map +1 -1
  242. package/dist/interfaces/agent-protocol.d.ts +17 -173
  243. package/dist/interfaces/agent-protocol.d.ts.map +1 -1
  244. package/dist/interfaces/agent.d.ts +61 -0
  245. package/dist/interfaces/agent.d.ts.map +1 -1
  246. package/dist/interfaces/alerts.d.ts +14 -0
  247. package/dist/interfaces/alerts.d.ts.map +1 -0
  248. package/dist/interfaces/analysis-persistence.d.ts +37 -19
  249. package/dist/interfaces/analysis-persistence.d.ts.map +1 -1
  250. package/dist/interfaces/analysis.d.ts +33 -4
  251. package/dist/interfaces/analysis.d.ts.map +1 -1
  252. package/dist/interfaces/api-responses.d.ts +117 -0
  253. package/dist/interfaces/api-responses.d.ts.map +1 -0
  254. package/dist/interfaces/api-shared.d.ts +5 -79
  255. package/dist/interfaces/api-shared.d.ts.map +1 -1
  256. package/dist/interfaces/audio-analyzer.d.ts +49 -0
  257. package/dist/interfaces/audio-analyzer.d.ts.map +1 -0
  258. package/dist/interfaces/audio-codec.d.ts +123 -0
  259. package/dist/interfaces/audio-codec.d.ts.map +1 -0
  260. package/dist/interfaces/audio-inference-engine.d.ts +19 -0
  261. package/dist/interfaces/audio-inference-engine.d.ts.map +1 -0
  262. package/dist/interfaces/auth-provider.d.ts.map +1 -1
  263. package/dist/interfaces/auth.d.ts +4 -25
  264. package/dist/interfaces/auth.d.ts.map +1 -1
  265. package/dist/interfaces/camera-pipeline.d.ts +7 -20
  266. package/dist/interfaces/camera-pipeline.d.ts.map +1 -1
  267. package/dist/interfaces/capability.d.ts +159 -23
  268. package/dist/interfaces/capability.d.ts.map +1 -1
  269. package/dist/interfaces/config-ui.d.ts +609 -24
  270. package/dist/interfaces/config-ui.d.ts.map +1 -1
  271. package/dist/interfaces/context.d.ts +9 -4
  272. package/dist/interfaces/context.d.ts.map +1 -1
  273. package/dist/interfaces/decoder.d.ts +38 -3
  274. package/dist/interfaces/decoder.d.ts.map +1 -1
  275. package/dist/interfaces/detection-addon.d.ts +6 -6
  276. package/dist/interfaces/detection-addon.d.ts.map +1 -1
  277. package/dist/interfaces/device-capabilities/camera.d.ts +95 -18
  278. package/dist/interfaces/device-capabilities/camera.d.ts.map +1 -1
  279. package/dist/interfaces/device-capabilities/index.d.ts +0 -13
  280. package/dist/interfaces/device-capabilities/index.d.ts.map +1 -1
  281. package/dist/interfaces/device-provider.d.ts +18 -16
  282. package/dist/interfaces/device-provider.d.ts.map +1 -1
  283. package/dist/interfaces/device.d.ts +4 -21
  284. package/dist/interfaces/device.d.ts.map +1 -1
  285. package/dist/interfaces/embedding-encoder.d.ts +19 -0
  286. package/dist/interfaces/embedding-encoder.d.ts.map +1 -0
  287. package/dist/interfaces/engine-slots.d.ts +10 -0
  288. package/dist/interfaces/engine-slots.d.ts.map +1 -0
  289. package/dist/interfaces/event-bus.d.ts +710 -26
  290. package/dist/interfaces/event-bus.d.ts.map +1 -1
  291. package/dist/interfaces/inference-capabilities.d.ts +0 -17
  292. package/dist/interfaces/inference-capabilities.d.ts.map +1 -1
  293. package/dist/interfaces/inference-engine.d.ts +30 -10
  294. package/dist/interfaces/inference-engine.d.ts.map +1 -1
  295. package/dist/interfaces/integration-registry.d.ts +20 -20
  296. package/dist/interfaces/integration-registry.d.ts.map +1 -1
  297. package/dist/interfaces/kernel-abstractions.d.ts +83 -0
  298. package/dist/interfaces/kernel-abstractions.d.ts.map +1 -0
  299. package/dist/interfaces/logging.d.ts +89 -8
  300. package/dist/interfaces/logging.d.ts.map +1 -1
  301. package/dist/interfaces/metrics-provider.d.ts +17 -0
  302. package/dist/interfaces/metrics-provider.d.ts.map +1 -0
  303. package/dist/interfaces/network-quality.d.ts +4 -4
  304. package/dist/interfaces/network.d.ts +0 -16
  305. package/dist/interfaces/network.d.ts.map +1 -1
  306. package/dist/interfaces/notification.d.ts +1 -1
  307. package/dist/interfaces/pipeline-executor-capability.d.ts +200 -0
  308. package/dist/interfaces/pipeline-executor-capability.d.ts.map +1 -0
  309. package/dist/interfaces/pipeline-orchestrator-capability.d.ts +165 -0
  310. package/dist/interfaces/pipeline-orchestrator-capability.d.ts.map +1 -0
  311. package/dist/interfaces/pipeline-runner-capability.d.ts +147 -0
  312. package/dist/interfaces/pipeline-runner-capability.d.ts.map +1 -0
  313. package/dist/interfaces/pipeline-runner.d.ts +18 -2
  314. package/dist/interfaces/pipeline-runner.d.ts.map +1 -1
  315. package/dist/interfaces/platform.d.ts +1 -1
  316. package/dist/interfaces/platform.d.ts.map +1 -1
  317. package/dist/interfaces/queryable.d.ts +26 -0
  318. package/dist/interfaces/queryable.d.ts.map +1 -0
  319. package/dist/interfaces/raw-tensor-engine.d.ts +16 -0
  320. package/dist/interfaces/raw-tensor-engine.d.ts.map +1 -0
  321. package/dist/interfaces/readiness.d.ts +101 -0
  322. package/dist/interfaces/readiness.d.ts.map +1 -0
  323. package/dist/interfaces/repl.d.ts +1 -1
  324. package/dist/interfaces/restreamer.d.ts +3 -3
  325. package/dist/interfaces/scoped-token.d.ts +1 -21
  326. package/dist/interfaces/scoped-token.d.ts.map +1 -1
  327. package/dist/interfaces/server-analysis.d.ts +30 -87
  328. package/dist/interfaces/server-analysis.d.ts.map +1 -1
  329. package/dist/interfaces/storage.d.ts +123 -45
  330. package/dist/interfaces/storage.d.ts.map +1 -1
  331. package/dist/interfaces/stream-broker.d.ts +285 -17
  332. package/dist/interfaces/stream-broker.d.ts.map +1 -1
  333. package/dist/interfaces/webrtc-provider.d.ts +24 -0
  334. package/dist/interfaces/webrtc-provider.d.ts.map +1 -1
  335. package/dist/node.d.ts +6 -0
  336. package/dist/node.d.ts.map +1 -0
  337. package/dist/node.js +7583 -0
  338. package/dist/node.js.map +1 -0
  339. package/dist/node.mjs +7534 -0
  340. package/dist/node.mjs.map +1 -0
  341. package/dist/readiness/index.d.ts +3 -0
  342. package/dist/readiness/index.d.ts.map +1 -0
  343. package/dist/readiness/readiness-registry.d.ts +183 -0
  344. package/dist/readiness/readiness-registry.d.ts.map +1 -0
  345. package/dist/schemas/auth-records.d.ts +81 -0
  346. package/dist/schemas/auth-records.d.ts.map +1 -0
  347. package/dist/storage/filesystem-storage-provider.d.ts +37 -0
  348. package/dist/storage/filesystem-storage-provider.d.ts.map +1 -0
  349. package/dist/types/agent-pipeline-settings.d.ts +94 -0
  350. package/dist/types/agent-pipeline-settings.d.ts.map +1 -0
  351. package/dist/types/camera-pipeline.d.ts +58 -0
  352. package/dist/types/camera-pipeline.d.ts.map +1 -0
  353. package/dist/types/detection.d.ts +195 -38
  354. package/dist/types/detection.d.ts.map +1 -1
  355. package/dist/types/device-type.d.ts +4 -0
  356. package/dist/types/device-type.d.ts.map +1 -1
  357. package/dist/types/engine-output.d.ts +24 -0
  358. package/dist/types/engine-output.d.ts.map +1 -0
  359. package/dist/types/io.d.ts +57 -3
  360. package/dist/types/io.d.ts.map +1 -1
  361. package/dist/types/models.d.ts +3 -1
  362. package/dist/types/models.d.ts.map +1 -1
  363. package/dist/types/pipeline-schema.d.ts +15 -72
  364. package/dist/types/pipeline-schema.d.ts.map +1 -1
  365. package/dist/types/pipeline-step.d.ts +201 -0
  366. package/dist/types/pipeline-step.d.ts.map +1 -0
  367. package/dist/types/pipeline.d.ts +24 -1
  368. package/dist/types/pipeline.d.ts.map +1 -1
  369. package/dist/utils/element-config-store.d.ts +29 -0
  370. package/dist/utils/element-config-store.d.ts.map +1 -0
  371. package/dist/utils/err-msg.d.ts +7 -0
  372. package/dist/utils/err-msg.d.ts.map +1 -0
  373. package/dist/utils/json-safe.d.ts +33 -0
  374. package/dist/utils/json-safe.d.ts.map +1 -0
  375. package/dist/utils/mask-url.d.ts +10 -0
  376. package/dist/utils/mask-url.d.ts.map +1 -0
  377. package/dist/utils/ring-buffer.d.ts +16 -0
  378. package/dist/utils/ring-buffer.d.ts.map +1 -0
  379. package/dist/utils/run-inference-step.d.ts +26 -0
  380. package/dist/utils/run-inference-step.d.ts.map +1 -0
  381. package/dist/utils/runtime-mapping.d.ts +88 -0
  382. package/dist/utils/runtime-mapping.d.ts.map +1 -0
  383. package/dist/utils/zone-rule-eval.d.ts +47 -0
  384. package/dist/utils/zone-rule-eval.d.ts.map +1 -0
  385. package/package.json +11 -2
  386. package/dist/__tests__/addon-capability-provider.test.d.ts +0 -2
  387. package/dist/__tests__/addon-capability-provider.test.d.ts.map +0 -1
  388. package/dist/__tests__/addon-declaration.test.d.ts +0 -2
  389. package/dist/__tests__/addon-declaration.test.d.ts.map +0 -1
  390. package/dist/__tests__/capability.test.d.ts +0 -2
  391. package/dist/__tests__/capability.test.d.ts.map +0 -1
  392. package/dist/interfaces/addon-i18n.d.ts +0 -41
  393. package/dist/interfaces/addon-i18n.d.ts.map +0 -1
  394. package/dist/interfaces/classifier.d.ts +0 -8
  395. package/dist/interfaces/classifier.d.ts.map +0 -1
  396. package/dist/interfaces/cropper.d.ts +0 -8
  397. package/dist/interfaces/cropper.d.ts.map +0 -1
  398. package/dist/interfaces/detector.d.ts +0 -8
  399. package/dist/interfaces/detector.d.ts.map +0 -1
  400. package/dist/interfaces/device-capabilities/accessory.d.ts +0 -14
  401. package/dist/interfaces/device-capabilities/accessory.d.ts.map +0 -1
  402. package/dist/interfaces/device-capabilities/audio-detector.d.ts +0 -12
  403. package/dist/interfaces/device-capabilities/audio-detector.d.ts.map +0 -1
  404. package/dist/interfaces/device-capabilities/doorbell.d.ts +0 -10
  405. package/dist/interfaces/device-capabilities/doorbell.d.ts.map +0 -1
  406. package/dist/interfaces/device-capabilities/events.d.ts +0 -47
  407. package/dist/interfaces/device-capabilities/events.d.ts.map +0 -1
  408. package/dist/interfaces/device-capabilities/motion-sensor.d.ts +0 -7
  409. package/dist/interfaces/device-capabilities/motion-sensor.d.ts.map +0 -1
  410. package/dist/interfaces/device-capabilities/native-detection.d.ts +0 -14
  411. package/dist/interfaces/device-capabilities/native-detection.d.ts.map +0 -1
  412. package/dist/interfaces/device-capabilities/object-detector.d.ts +0 -59
  413. package/dist/interfaces/device-capabilities/object-detector.d.ts.map +0 -1
  414. package/dist/interfaces/device-capabilities/pan-tilt-zoom.d.ts +0 -29
  415. package/dist/interfaces/device-capabilities/pan-tilt-zoom.d.ts.map +0 -1
  416. package/dist/interfaces/device-capabilities/recording.d.ts +0 -18
  417. package/dist/interfaces/device-capabilities/recording.d.ts.map +0 -1
  418. package/dist/interfaces/device-capabilities/siren.d.ts +0 -8
  419. package/dist/interfaces/device-capabilities/siren.d.ts.map +0 -1
  420. package/dist/interfaces/device-capabilities/status-light.d.ts +0 -7
  421. package/dist/interfaces/device-capabilities/status-light.d.ts.map +0 -1
  422. package/dist/interfaces/device-capabilities/switch.d.ts +0 -8
  423. package/dist/interfaces/device-capabilities/switch.d.ts.map +0 -1
  424. package/dist/interfaces/device-capabilities/two-way-audio.d.ts +0 -8
  425. package/dist/interfaces/device-capabilities/two-way-audio.d.ts.map +0 -1
  426. package/dist/interfaces/device-capability.d.ts +0 -14
  427. package/dist/interfaces/device-capability.d.ts.map +0 -1
  428. package/dist/interfaces/model-catalog.d.ts +0 -25
  429. package/dist/interfaces/model-catalog.d.ts.map +0 -1
  430. package/dist/interfaces/refiner.d.ts +0 -8
  431. package/dist/interfaces/refiner.d.ts.map +0 -1
  432. package/dist/interfaces/repositories.d.ts +0 -20
  433. package/dist/interfaces/repositories.d.ts.map +0 -1
  434. package/dist/interfaces/scene-intelligence.d.ts +0 -21
  435. package/dist/interfaces/scene-intelligence.d.ts.map +0 -1
  436. package/dist/interfaces/storage-backend.d.ts +0 -27
  437. package/dist/interfaces/storage-backend.d.ts.map +0 -1
  438. package/dist/interfaces/worker-protocol.d.ts +0 -110
  439. package/dist/interfaces/worker-protocol.d.ts.map +0 -1
  440. package/dist/schemas/system-settings-schemas.d.ts +0 -27
  441. package/dist/schemas/system-settings-schemas.d.ts.map +0 -1
  442. package/dist/types/benchmark.d.ts +0 -112
  443. package/dist/types/benchmark.d.ts.map +0 -1
  444. package/dist/types/zones.d.ts +0 -48
  445. package/dist/types/zones.d.ts.map +0 -1
@@ -0,0 +1,86 @@
1
+ import { z } from 'zod';
2
+ import { type InferProvider } from './capability-definition.js';
3
+ /**
4
+ * system — system-scoped singleton capability exposing hub-level
5
+ * health, feature flags, network interface enumeration, and the
6
+ * analytics-suite retention controls.
7
+ *
8
+ * Implementation lives in the server's `FeatureService` plus the
9
+ * `analysis-data-persistence` singleton (provided by
10
+ * `addon-analytics-suite`). The provider is registered from
11
+ * `trpc.router.ts` against the existing services — no addon owns
12
+ * this surface end-to-end.
13
+ *
14
+ * Phase E of the API consolidation: previously a hand-written core
15
+ * router. Cap conversion lets the canonical hooks
16
+ * (`useSystemInfo`, `useSystemHealth`, `useSystemNetworkAddresses`,
17
+ * `useSystemGetRetentionConfig`, `useSystemSetRetentionConfig`,
18
+ * `useSystemForceRetentionCleanup`) flow through the same codegen
19
+ * as every other cap.
20
+ */
21
+ declare const FeatureManifestSchema: z.ZodObject<{
22
+ streaming: z.ZodBoolean;
23
+ notifications: z.ZodBoolean;
24
+ objectDetection: z.ZodBoolean;
25
+ remoteAccess: z.ZodBoolean;
26
+ agentCluster: z.ZodBoolean;
27
+ smartHome: z.ZodBoolean;
28
+ recordings: z.ZodBoolean;
29
+ backup: z.ZodBoolean;
30
+ repl: z.ZodBoolean;
31
+ }, z.core.$strip>;
32
+ declare const HealthStatusSchema: z.ZodObject<{
33
+ status: z.ZodLiteral<"ok">;
34
+ uptime: z.ZodNumber;
35
+ }, z.core.$strip>;
36
+ declare const NetworkAddressSchema: z.ZodObject<{
37
+ name: z.ZodString;
38
+ address: z.ZodString;
39
+ family: z.ZodString;
40
+ internal: z.ZodBoolean;
41
+ }, z.core.$strip>;
42
+ export declare const systemCapability: {
43
+ readonly name: "system";
44
+ readonly scope: "system";
45
+ readonly mode: "singleton";
46
+ readonly methods: {
47
+ readonly info: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
48
+ streaming: z.ZodBoolean;
49
+ notifications: z.ZodBoolean;
50
+ objectDetection: z.ZodBoolean;
51
+ remoteAccess: z.ZodBoolean;
52
+ agentCluster: z.ZodBoolean;
53
+ smartHome: z.ZodBoolean;
54
+ recordings: z.ZodBoolean;
55
+ backup: z.ZodBoolean;
56
+ repl: z.ZodBoolean;
57
+ }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
58
+ readonly health: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
59
+ status: z.ZodLiteral<"ok">;
60
+ uptime: z.ZodNumber;
61
+ }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
62
+ readonly featureFlags: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
63
+ streaming: z.ZodBoolean;
64
+ notifications: z.ZodBoolean;
65
+ objectDetection: z.ZodBoolean;
66
+ remoteAccess: z.ZodBoolean;
67
+ agentCluster: z.ZodBoolean;
68
+ smartHome: z.ZodBoolean;
69
+ recordings: z.ZodBoolean;
70
+ backup: z.ZodBoolean;
71
+ repl: z.ZodBoolean;
72
+ }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
73
+ readonly networkAddresses: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
74
+ name: z.ZodString;
75
+ address: z.ZodString;
76
+ family: z.ZodString;
77
+ internal: z.ZodBoolean;
78
+ }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
79
+ readonly getRetentionConfig: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodNullable<z.ZodUnknown>, import("./capability-definition.js").CapabilityMethodKind>;
80
+ readonly setRetentionConfig: import("./capability-definition.js").CapabilityMethodSchema<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull, "mutation">;
81
+ readonly forceRetentionCleanup: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodVoid, "mutation">;
82
+ };
83
+ };
84
+ export type ISystemProvider = InferProvider<typeof systemCapability>;
85
+ export { FeatureManifestSchema, HealthStatusSchema, NetworkAddressSchema, };
86
+ //# sourceMappingURL=system.cap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/system.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAElG;;;;;;;;;;;;;;;;;GAiBG;AAEH,QAAA,MAAM,qBAAqB;;;;;;;;;;iBAUzB,CAAA;AAEF,QAAA,MAAM,kBAAkB;;;iBAGtB,CAAA;AAEF,QAAA,MAAM,oBAAoB;;;;;iBAKxB,CAAA;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBY,CAAA;AAEzC,MAAM,MAAM,eAAe,GAAG,aAAa,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAEpE,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,GACrB,CAAA"}
@@ -0,0 +1,56 @@
1
+ import { z } from 'zod';
2
+ import { type InferProvider } from './capability-definition.js';
3
+ /**
4
+ * toast — system-scoped singleton capability that streams toast
5
+ * notifications from the hub to connected admin-UI clients.
6
+ *
7
+ * Single push subscription (`onToast`). The provider lives in the
8
+ * server's `ToastService` (always available after boot) and is
9
+ * registered from `trpc.router.ts` against that service. No addon
10
+ * owns this state — toasts are server-broadcasted side-effects of
11
+ * other admin actions.
12
+ *
13
+ * Phase E of the API consolidation: previously a hand-written core
14
+ * router (re-introduced after a brief detour as a cap years ago).
15
+ * Cap conversion unifies the codegen pipeline so admin-ui consumers
16
+ * pick up the standard `useToastOnToast` hook through the same
17
+ * generator that emits every other system-cap subscription wrapper.
18
+ */
19
+ declare const ToastSchema: z.ZodObject<{
20
+ title: z.ZodString;
21
+ message: z.ZodString;
22
+ severity: z.ZodEnum<{
23
+ info: "info";
24
+ warning: "warning";
25
+ critical: "critical";
26
+ }>;
27
+ duration: z.ZodOptional<z.ZodNumber>;
28
+ action: z.ZodOptional<z.ZodObject<{
29
+ label: z.ZodString;
30
+ url: z.ZodString;
31
+ }, z.core.$strip>>;
32
+ }, z.core.$strip>;
33
+ export declare const toastCapability: {
34
+ readonly name: "toast";
35
+ readonly scope: "system";
36
+ readonly mode: "singleton";
37
+ readonly methods: {
38
+ readonly onToast: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
39
+ title: z.ZodString;
40
+ message: z.ZodString;
41
+ severity: z.ZodEnum<{
42
+ info: "info";
43
+ warning: "warning";
44
+ critical: "critical";
45
+ }>;
46
+ duration: z.ZodOptional<z.ZodNumber>;
47
+ action: z.ZodOptional<z.ZodObject<{
48
+ label: z.ZodString;
49
+ url: z.ZodString;
50
+ }, z.core.$strip>>;
51
+ }, z.core.$strip>, "subscription">;
52
+ };
53
+ };
54
+ export type IToastProvider = InferProvider<typeof toastCapability>;
55
+ export { ToastSchema };
56
+ //# sourceMappingURL=toast.cap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/toast.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAElG;;;;;;;;;;;;;;;GAeG;AAEH,QAAA,MAAM,WAAW;;;;;;;;;;;;;iBAWf,CAAA;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;CAOa,CAAA;AAEzC,MAAM,MAAM,cAAc,GAAG,aAAa,CAAC,OAAO,eAAe,CAAC,CAAA;AAElE,OAAO,EAAE,WAAW,EAAE,CAAA"}
@@ -0,0 +1,43 @@
1
+ import { z } from 'zod';
2
+ import { type InferProvider } from './capability-definition.js';
3
+ /**
4
+ * A single ICE TURN/STUN server entry, shape compatible with
5
+ * `RTCIceServer` in the WebRTC spec.
6
+ */
7
+ declare const TurnServerSchema: z.ZodObject<{
8
+ urls: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
9
+ username: z.ZodOptional<z.ZodString>;
10
+ credential: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>;
12
+ /**
13
+ * turn-provider — system collection of TURN/STUN server providers.
14
+ *
15
+ * Consumed by `webrtc` providers (e.g. addon-go2rtc) when building the
16
+ * ICE server list for an offer. Multiple providers can coexist
17
+ * (Cloudflare, self-hosted coturn, Twilio, etc.) — the webrtc layer
18
+ * concatenates servers from all registered implementations.
19
+ *
20
+ * Exposed over tRPC so that out-of-process addons (forked workers or
21
+ * remote agents) can also enumerate available TURN servers without
22
+ * requiring in-process access to the capability registry.
23
+ */
24
+ export declare const turnProviderCapability: {
25
+ readonly name: "turn-provider";
26
+ readonly scope: "system";
27
+ readonly mode: "collection";
28
+ readonly methods: {
29
+ /**
30
+ * Return the current list of TURN/STUN servers with credentials.
31
+ * Implementations may fetch fresh short-lived credentials on each call
32
+ * (e.g. Cloudflare API) — consumers SHOULD call this per-session.
33
+ */
34
+ readonly getTurnServers: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
35
+ urls: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
36
+ username: z.ZodOptional<z.ZodString>;
37
+ credential: z.ZodOptional<z.ZodString>;
38
+ }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
39
+ };
40
+ };
41
+ export type ITurnProvider = InferProvider<typeof turnProviderCapability>;
42
+ export { TurnServerSchema };
43
+ //# sourceMappingURL=turn-provider.cap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"turn-provider.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/turn-provider.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAElG;;;GAGG;AACH,QAAA,MAAM,gBAAgB;;;;iBAKpB,CAAA;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB;;;;;QAK/B;;;;WAIG;;;;;;;CAMkC,CAAA;AAEzC,MAAM,MAAM,aAAa,GAAG,aAAa,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAExE,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
@@ -0,0 +1,378 @@
1
+ import { z } from 'zod';
2
+ import { type InferProvider } from './capability-definition.js';
3
+ declare const UserSummarySchema: z.ZodObject<{
4
+ id: z.ZodString;
5
+ username: z.ZodString;
6
+ role: z.ZodEnum<{
7
+ admin: "admin";
8
+ viewer: "viewer";
9
+ super_admin: "super_admin";
10
+ agent: "agent";
11
+ }>;
12
+ allowedProviders: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>;
13
+ allowedDevices: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>;
14
+ createdAt: z.ZodNumber;
15
+ updatedAt: z.ZodNumber;
16
+ }, z.core.$strip>;
17
+ declare const CreateUserInputSchema: z.ZodObject<{
18
+ username: z.ZodString;
19
+ password: z.ZodString;
20
+ role: z.ZodEnum<{
21
+ admin: "admin";
22
+ viewer: "viewer";
23
+ super_admin: "super_admin";
24
+ agent: "agent";
25
+ }>;
26
+ allowedProviders: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>;
27
+ allowedDevices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>>;
28
+ }, z.core.$strip>;
29
+ declare const UpdateUserInputSchema: z.ZodObject<{
30
+ id: z.ZodString;
31
+ role: z.ZodOptional<z.ZodEnum<{
32
+ admin: "admin";
33
+ viewer: "viewer";
34
+ super_admin: "super_admin";
35
+ agent: "agent";
36
+ }>>;
37
+ allowedProviders: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>;
38
+ allowedDevices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>>;
39
+ }, z.core.$strip>;
40
+ declare const ApiKeySummarySchema: z.ZodObject<{
41
+ id: z.ZodString;
42
+ label: z.ZodString;
43
+ role: z.ZodEnum<{
44
+ admin: "admin";
45
+ viewer: "viewer";
46
+ super_admin: "super_admin";
47
+ agent: "agent";
48
+ }>;
49
+ allowedProviders: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>;
50
+ allowedDevices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>>;
51
+ tokenPrefix: z.ZodString;
52
+ createdAt: z.ZodNumber;
53
+ lastUsedAt: z.ZodOptional<z.ZodNumber>;
54
+ }, z.core.$strip>;
55
+ declare const CreateApiKeyInputSchema: z.ZodObject<{
56
+ label: z.ZodString;
57
+ role: z.ZodEnum<{
58
+ admin: "admin";
59
+ viewer: "viewer";
60
+ super_admin: "super_admin";
61
+ agent: "agent";
62
+ }>;
63
+ allowedProviders: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>;
64
+ allowedDevices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>>;
65
+ }, z.core.$strip>;
66
+ declare const CreateApiKeyResultSchema: z.ZodObject<{
67
+ token: z.ZodString;
68
+ record: z.ZodObject<{
69
+ id: z.ZodString;
70
+ label: z.ZodString;
71
+ role: z.ZodEnum<{
72
+ admin: "admin";
73
+ viewer: "viewer";
74
+ super_admin: "super_admin";
75
+ agent: "agent";
76
+ }>;
77
+ allowedProviders: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>;
78
+ allowedDevices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>>;
79
+ tokenPrefix: z.ZodString;
80
+ createdAt: z.ZodNumber;
81
+ lastUsedAt: z.ZodOptional<z.ZodNumber>;
82
+ }, z.core.$strip>;
83
+ }, z.core.$strip>;
84
+ declare const ScopedTokenSummarySchema: z.ZodObject<{
85
+ id: z.ZodString;
86
+ userId: z.ZodString;
87
+ name: z.ZodString;
88
+ tokenPrefix: z.ZodString;
89
+ scopes: z.ZodArray<z.ZodObject<{
90
+ type: z.ZodEnum<{
91
+ addon: "addon";
92
+ capability: "capability";
93
+ "route-prefix": "route-prefix";
94
+ }>;
95
+ target: z.ZodString;
96
+ }, z.core.$strip>>;
97
+ expiresAt: z.ZodOptional<z.ZodNumber>;
98
+ lastUsedAt: z.ZodOptional<z.ZodNumber>;
99
+ createdAt: z.ZodNumber;
100
+ }, z.core.$strip>;
101
+ declare const CreateScopedTokenInputSchema: z.ZodObject<{
102
+ name: z.ZodString;
103
+ scopes: z.ZodArray<z.ZodObject<{
104
+ type: z.ZodEnum<{
105
+ addon: "addon";
106
+ capability: "capability";
107
+ "route-prefix": "route-prefix";
108
+ }>;
109
+ target: z.ZodString;
110
+ }, z.core.$strip>>;
111
+ expiresAt: z.ZodOptional<z.ZodNumber>;
112
+ }, z.core.$strip>;
113
+ declare const CreateScopedTokenResultSchema: z.ZodObject<{
114
+ token: z.ZodString;
115
+ record: z.ZodObject<{
116
+ id: z.ZodString;
117
+ userId: z.ZodString;
118
+ name: z.ZodString;
119
+ tokenPrefix: z.ZodString;
120
+ scopes: z.ZodArray<z.ZodObject<{
121
+ type: z.ZodEnum<{
122
+ addon: "addon";
123
+ capability: "capability";
124
+ "route-prefix": "route-prefix";
125
+ }>;
126
+ target: z.ZodString;
127
+ }, z.core.$strip>>;
128
+ expiresAt: z.ZodOptional<z.ZodNumber>;
129
+ lastUsedAt: z.ZodOptional<z.ZodNumber>;
130
+ createdAt: z.ZodNumber;
131
+ }, z.core.$strip>;
132
+ }, z.core.$strip>;
133
+ /**
134
+ * user-management — singleton capability for user accounts, API keys,
135
+ * and scoped tokens.
136
+ *
137
+ * Implemented by the `local-auth` addon. Covers all CRUD operations
138
+ * that were previously hand-written in `users.router.ts` and
139
+ * `scoped-tokens.router.ts`.
140
+ *
141
+ * Login/logout/me stay in the server's core auth router because they
142
+ * depend on JWT signing (a server-level concern, not an addon concern).
143
+ *
144
+ * Extension: the `auth-provider` capability (collection) provides
145
+ * pluggable authentication mechanisms (local password, OIDC, etc.).
146
+ * The server's login flow delegates to `auth-provider.validateCredentials()`
147
+ * and then signs the JWT.
148
+ */
149
+ export declare const userManagementCapability: {
150
+ readonly name: "user-management";
151
+ readonly scope: "system";
152
+ readonly mode: "singleton";
153
+ readonly methods: {
154
+ readonly listUsers: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodArray<z.ZodObject<{
155
+ id: z.ZodString;
156
+ username: z.ZodString;
157
+ role: z.ZodEnum<{
158
+ admin: "admin";
159
+ viewer: "viewer";
160
+ super_admin: "super_admin";
161
+ agent: "agent";
162
+ }>;
163
+ allowedProviders: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>;
164
+ allowedDevices: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>;
165
+ createdAt: z.ZodNumber;
166
+ updatedAt: z.ZodNumber;
167
+ }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
168
+ readonly createUser: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
169
+ username: z.ZodString;
170
+ password: z.ZodString;
171
+ role: z.ZodEnum<{
172
+ admin: "admin";
173
+ viewer: "viewer";
174
+ super_admin: "super_admin";
175
+ agent: "agent";
176
+ }>;
177
+ allowedProviders: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>;
178
+ allowedDevices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>>;
179
+ }, z.core.$strip>, z.ZodObject<{
180
+ id: z.ZodString;
181
+ username: z.ZodString;
182
+ role: z.ZodEnum<{
183
+ admin: "admin";
184
+ viewer: "viewer";
185
+ super_admin: "super_admin";
186
+ agent: "agent";
187
+ }>;
188
+ allowedProviders: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>;
189
+ allowedDevices: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>;
190
+ createdAt: z.ZodNumber;
191
+ updatedAt: z.ZodNumber;
192
+ }, z.core.$strip>, "mutation">;
193
+ readonly updateUser: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
194
+ id: z.ZodString;
195
+ role: z.ZodOptional<z.ZodEnum<{
196
+ admin: "admin";
197
+ viewer: "viewer";
198
+ super_admin: "super_admin";
199
+ agent: "agent";
200
+ }>>;
201
+ allowedProviders: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>;
202
+ allowedDevices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>>;
203
+ }, z.core.$strip>, z.ZodObject<{
204
+ success: z.ZodLiteral<true>;
205
+ }, z.core.$strip>, "mutation">;
206
+ readonly deleteUser: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
207
+ id: z.ZodString;
208
+ }, z.core.$strip>, z.ZodObject<{
209
+ success: z.ZodLiteral<true>;
210
+ }, z.core.$strip>, "mutation">;
211
+ readonly resetPassword: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
212
+ id: z.ZodString;
213
+ newPassword: z.ZodString;
214
+ }, z.core.$strip>, z.ZodObject<{
215
+ success: z.ZodLiteral<true>;
216
+ }, z.core.$strip>, "mutation">;
217
+ readonly validateCredentials: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
218
+ username: z.ZodString;
219
+ password: z.ZodString;
220
+ }, z.core.$strip>, z.ZodNullable<z.ZodObject<{
221
+ id: z.ZodString;
222
+ username: z.ZodString;
223
+ role: z.ZodEnum<{
224
+ admin: "admin";
225
+ viewer: "viewer";
226
+ super_admin: "super_admin";
227
+ agent: "agent";
228
+ }>;
229
+ allowedProviders: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>;
230
+ allowedDevices: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>;
231
+ createdAt: z.ZodNumber;
232
+ updatedAt: z.ZodNumber;
233
+ passwordHash: z.ZodString;
234
+ }, z.core.$strip>>, "mutation">;
235
+ readonly listApiKeys: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodArray<z.ZodObject<{
236
+ id: z.ZodString;
237
+ label: z.ZodString;
238
+ role: z.ZodEnum<{
239
+ admin: "admin";
240
+ viewer: "viewer";
241
+ super_admin: "super_admin";
242
+ agent: "agent";
243
+ }>;
244
+ allowedProviders: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>;
245
+ allowedDevices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>>;
246
+ tokenPrefix: z.ZodString;
247
+ createdAt: z.ZodNumber;
248
+ lastUsedAt: z.ZodOptional<z.ZodNumber>;
249
+ }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
250
+ readonly createApiKey: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
251
+ label: z.ZodString;
252
+ role: z.ZodEnum<{
253
+ admin: "admin";
254
+ viewer: "viewer";
255
+ super_admin: "super_admin";
256
+ agent: "agent";
257
+ }>;
258
+ allowedProviders: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>;
259
+ allowedDevices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>>;
260
+ }, z.core.$strip>, z.ZodObject<{
261
+ token: z.ZodString;
262
+ record: z.ZodObject<{
263
+ id: z.ZodString;
264
+ label: z.ZodString;
265
+ role: z.ZodEnum<{
266
+ admin: "admin";
267
+ viewer: "viewer";
268
+ super_admin: "super_admin";
269
+ agent: "agent";
270
+ }>;
271
+ allowedProviders: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>;
272
+ allowedDevices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>>;
273
+ tokenPrefix: z.ZodString;
274
+ createdAt: z.ZodNumber;
275
+ lastUsedAt: z.ZodOptional<z.ZodNumber>;
276
+ }, z.core.$strip>;
277
+ }, z.core.$strip>, "mutation">;
278
+ readonly revokeApiKey: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
279
+ id: z.ZodString;
280
+ }, z.core.$strip>, z.ZodObject<{
281
+ success: z.ZodLiteral<true>;
282
+ }, z.core.$strip>, "mutation">;
283
+ readonly validateApiKey: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
284
+ token: z.ZodString;
285
+ }, z.core.$strip>, z.ZodNullable<z.ZodObject<{
286
+ id: z.ZodString;
287
+ label: z.ZodString;
288
+ role: z.ZodEnum<{
289
+ admin: "admin";
290
+ viewer: "viewer";
291
+ super_admin: "super_admin";
292
+ agent: "agent";
293
+ }>;
294
+ allowedProviders: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>;
295
+ allowedDevices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"*">]>>>;
296
+ tokenPrefix: z.ZodString;
297
+ createdAt: z.ZodNumber;
298
+ lastUsedAt: z.ZodOptional<z.ZodNumber>;
299
+ }, z.core.$strip>>, "mutation">;
300
+ readonly createScopedToken: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
301
+ name: z.ZodString;
302
+ scopes: z.ZodArray<z.ZodObject<{
303
+ type: z.ZodEnum<{
304
+ addon: "addon";
305
+ capability: "capability";
306
+ "route-prefix": "route-prefix";
307
+ }>;
308
+ target: z.ZodString;
309
+ }, z.core.$strip>>;
310
+ expiresAt: z.ZodOptional<z.ZodNumber>;
311
+ }, z.core.$strip>, z.ZodObject<{
312
+ token: z.ZodString;
313
+ record: z.ZodObject<{
314
+ id: z.ZodString;
315
+ userId: z.ZodString;
316
+ name: z.ZodString;
317
+ tokenPrefix: z.ZodString;
318
+ scopes: z.ZodArray<z.ZodObject<{
319
+ type: z.ZodEnum<{
320
+ addon: "addon";
321
+ capability: "capability";
322
+ "route-prefix": "route-prefix";
323
+ }>;
324
+ target: z.ZodString;
325
+ }, z.core.$strip>>;
326
+ expiresAt: z.ZodOptional<z.ZodNumber>;
327
+ lastUsedAt: z.ZodOptional<z.ZodNumber>;
328
+ createdAt: z.ZodNumber;
329
+ }, z.core.$strip>;
330
+ }, z.core.$strip>, "mutation">;
331
+ readonly revokeScopedToken: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
332
+ id: z.ZodString;
333
+ }, z.core.$strip>, z.ZodObject<{
334
+ success: z.ZodLiteral<true>;
335
+ }, z.core.$strip>, "mutation">;
336
+ readonly validateScopedToken: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
337
+ token: z.ZodString;
338
+ }, z.core.$strip>, z.ZodNullable<z.ZodObject<{
339
+ id: z.ZodString;
340
+ userId: z.ZodString;
341
+ name: z.ZodString;
342
+ tokenPrefix: z.ZodString;
343
+ scopes: z.ZodArray<z.ZodObject<{
344
+ type: z.ZodEnum<{
345
+ addon: "addon";
346
+ capability: "capability";
347
+ "route-prefix": "route-prefix";
348
+ }>;
349
+ target: z.ZodString;
350
+ }, z.core.$strip>>;
351
+ expiresAt: z.ZodOptional<z.ZodNumber>;
352
+ lastUsedAt: z.ZodOptional<z.ZodNumber>;
353
+ createdAt: z.ZodNumber;
354
+ }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
355
+ readonly listScopedTokens: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
356
+ userId: z.ZodString;
357
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
358
+ id: z.ZodString;
359
+ userId: z.ZodString;
360
+ name: z.ZodString;
361
+ tokenPrefix: z.ZodString;
362
+ scopes: z.ZodArray<z.ZodObject<{
363
+ type: z.ZodEnum<{
364
+ addon: "addon";
365
+ capability: "capability";
366
+ "route-prefix": "route-prefix";
367
+ }>;
368
+ target: z.ZodString;
369
+ }, z.core.$strip>>;
370
+ expiresAt: z.ZodOptional<z.ZodNumber>;
371
+ lastUsedAt: z.ZodOptional<z.ZodNumber>;
372
+ createdAt: z.ZodNumber;
373
+ }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
374
+ };
375
+ };
376
+ export type IUserManagementProvider = InferProvider<typeof userManagementCapability>;
377
+ export { UserSummarySchema, CreateUserInputSchema, UpdateUserInputSchema, ApiKeySummarySchema, CreateApiKeyInputSchema, CreateApiKeyResultSchema, ScopedTokenSummarySchema, CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, };
378
+ //# sourceMappingURL=user-management.cap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-management.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/user-management.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAIlG,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;iBAQrB,CAAA;AAEF,QAAA,MAAM,qBAAqB;;;;;;;;;;;iBAMzB,CAAA;AAEF,QAAA,MAAM,qBAAqB;;;;;;;;;;iBAKzB,CAAA;AAEF,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;iBASvB,CAAA;AAEF,QAAA,MAAM,uBAAuB;;;;;;;;;;iBAK3B,CAAA;AAEF,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;iBAG5B,CAAA;AAOF,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;iBAS5B,CAAA;AAEF,QAAA,MAAM,4BAA4B;;;;;;;;;;;iBAIhC,CAAA;AAEF,QAAA,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;iBAGjC,CAAA;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCI,CAAA;AAEzC,MAAM,MAAM,uBAAuB,GAAG,aAAa,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAEpF,OAAO,EACL,iBAAiB,EAAE,qBAAqB,EAAE,qBAAqB,EAC/D,mBAAmB,EAAE,uBAAuB,EAAE,wBAAwB,EACtE,wBAAwB,EAAE,4BAA4B,EAAE,6BAA6B,GACtF,CAAA"}