@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.
- package/dist/addon/base-addon.d.ts +262 -0
- package/dist/addon/base-addon.d.ts.map +1 -0
- package/dist/auth-records-BDg37fy9.mjs +8297 -0
- package/dist/auth-records-BDg37fy9.mjs.map +1 -0
- package/dist/auth-records-D5ZNaUos.js +8296 -0
- package/dist/auth-records-D5ZNaUos.js.map +1 -0
- package/dist/capabilities/accessories.cap.d.ts +42 -0
- package/dist/capabilities/accessories.cap.d.ts.map +1 -0
- package/dist/capabilities/addon-pages-source.cap.d.ts +41 -0
- package/dist/capabilities/addon-pages-source.cap.d.ts.map +1 -0
- package/dist/capabilities/addon-pages.cap.d.ts +36 -0
- package/dist/capabilities/addon-pages.cap.d.ts.map +1 -0
- package/dist/capabilities/addon-routes.cap.d.ts +22 -0
- package/dist/capabilities/addon-routes.cap.d.ts.map +1 -0
- package/dist/capabilities/addon-settings.cap.d.ts +170 -0
- package/dist/capabilities/addon-settings.cap.d.ts.map +1 -0
- package/dist/capabilities/addon-widgets-source.cap.d.ts +103 -0
- package/dist/capabilities/addon-widgets-source.cap.d.ts.map +1 -0
- package/dist/capabilities/addon-widgets.cap.d.ts +98 -0
- package/dist/capabilities/addon-widgets.cap.d.ts.map +1 -0
- package/dist/capabilities/addons.cap.d.ts +356 -0
- package/dist/capabilities/addons.cap.d.ts.map +1 -0
- package/dist/capabilities/admin-ui.cap.d.ts +14 -0
- package/dist/capabilities/admin-ui.cap.d.ts.map +1 -0
- package/dist/capabilities/advanced-notifier.cap.d.ts +60 -0
- package/dist/capabilities/advanced-notifier.cap.d.ts.map +1 -0
- package/dist/capabilities/alerts.cap.d.ts +164 -0
- package/dist/capabilities/alerts.cap.d.ts.map +1 -0
- package/dist/capabilities/audio-analysis.cap.d.ts +46 -0
- package/dist/capabilities/audio-analysis.cap.d.ts.map +1 -0
- package/dist/capabilities/audio-analyzer.cap.d.ts +148 -0
- package/dist/capabilities/audio-analyzer.cap.d.ts.map +1 -0
- package/dist/capabilities/audio-codec.cap.d.ts +202 -0
- package/dist/capabilities/audio-codec.cap.d.ts.map +1 -0
- package/dist/capabilities/audio-metrics.cap.d.ts +174 -0
- package/dist/capabilities/audio-metrics.cap.d.ts.map +1 -0
- package/dist/capabilities/auth-provider.cap.d.ts +49 -0
- package/dist/capabilities/auth-provider.cap.d.ts.map +1 -0
- package/dist/capabilities/authentication.cap.d.ts +83 -0
- package/dist/capabilities/authentication.cap.d.ts.map +1 -0
- package/dist/capabilities/backup.cap.d.ts +269 -0
- package/dist/capabilities/backup.cap.d.ts.map +1 -0
- package/dist/capabilities/battery.cap.d.ts +85 -0
- package/dist/capabilities/battery.cap.d.ts.map +1 -0
- package/dist/capabilities/brightness.cap.d.ts +64 -0
- package/dist/capabilities/brightness.cap.d.ts.map +1 -0
- package/dist/capabilities/camera-credentials.cap.d.ts +102 -0
- package/dist/capabilities/camera-credentials.cap.d.ts.map +1 -0
- package/dist/capabilities/camera-streams.cap.d.ts +214 -0
- package/dist/capabilities/camera-streams.cap.d.ts.map +1 -0
- package/dist/capabilities/capability-definition.d.ts +474 -0
- package/dist/capabilities/capability-definition.d.ts.map +1 -0
- package/dist/capabilities/custom-actions.d.ts +47 -0
- package/dist/capabilities/custom-actions.d.ts.map +1 -0
- package/dist/capabilities/decoder.cap.d.ts +173 -0
- package/dist/capabilities/decoder.cap.d.ts.map +1 -0
- package/dist/capabilities/detection-pipeline.cap.d.ts +34 -0
- package/dist/capabilities/detection-pipeline.cap.d.ts.map +1 -0
- package/dist/capabilities/device-discovery.cap.d.ts +247 -0
- package/dist/capabilities/device-discovery.cap.d.ts.map +1 -0
- package/dist/capabilities/device-manager.cap.d.ts +709 -0
- package/dist/capabilities/device-manager.cap.d.ts.map +1 -0
- package/dist/capabilities/device-ops.cap.d.ts +87 -0
- package/dist/capabilities/device-ops.cap.d.ts.map +1 -0
- package/dist/capabilities/device-provider.cap.d.ts +151 -0
- package/dist/capabilities/device-provider.cap.d.ts.map +1 -0
- package/dist/capabilities/device-state.cap.d.ts +97 -0
- package/dist/capabilities/device-state.cap.d.ts.map +1 -0
- package/dist/capabilities/device-status.cap.d.ts +54 -0
- package/dist/capabilities/device-status.cap.d.ts.map +1 -0
- package/dist/capabilities/doorbell.cap.d.ts +62 -0
- package/dist/capabilities/doorbell.cap.d.ts.map +1 -0
- package/dist/capabilities/embedding-encoder.cap.d.ts +41 -0
- package/dist/capabilities/embedding-encoder.cap.d.ts.map +1 -0
- package/dist/capabilities/events.cap.d.ts +48 -0
- package/dist/capabilities/events.cap.d.ts.map +1 -0
- package/dist/capabilities/feature-probe.cap.d.ts +79 -0
- package/dist/capabilities/feature-probe.cap.d.ts.map +1 -0
- package/dist/capabilities/index.d.ts +191 -0
- package/dist/capabilities/index.d.ts.map +1 -0
- package/dist/capabilities/integrations.cap.d.ts +182 -0
- package/dist/capabilities/integrations.cap.d.ts.map +1 -0
- package/dist/capabilities/intercom.cap.d.ts +108 -0
- package/dist/capabilities/intercom.cap.d.ts.map +1 -0
- package/dist/capabilities/local-network.cap.d.ts +216 -0
- package/dist/capabilities/local-network.cap.d.ts.map +1 -0
- package/dist/capabilities/log-destination.cap.d.ts +70 -0
- package/dist/capabilities/log-destination.cap.d.ts.map +1 -0
- package/dist/capabilities/mesh-network.cap.d.ts +160 -0
- package/dist/capabilities/mesh-network.cap.d.ts.map +1 -0
- package/dist/capabilities/mesh-orchestrator.cap.d.ts +96 -0
- package/dist/capabilities/mesh-orchestrator.cap.d.ts.map +1 -0
- package/dist/capabilities/metrics-provider.cap.d.ts +522 -0
- package/dist/capabilities/metrics-provider.cap.d.ts.map +1 -0
- package/dist/capabilities/motion-detection.cap.d.ts +107 -0
- package/dist/capabilities/motion-detection.cap.d.ts.map +1 -0
- package/dist/capabilities/motion-trigger.cap.d.ts +78 -0
- package/dist/capabilities/motion-trigger.cap.d.ts.map +1 -0
- package/dist/capabilities/motion.cap.d.ts +122 -0
- package/dist/capabilities/motion.cap.d.ts.map +1 -0
- package/dist/capabilities/native-object-detection.cap.d.ts +127 -0
- package/dist/capabilities/native-object-detection.cap.d.ts.map +1 -0
- package/dist/capabilities/network-access.cap.d.ts +67 -0
- package/dist/capabilities/network-access.cap.d.ts.map +1 -0
- package/dist/capabilities/network-quality.cap.d.ts +95 -0
- package/dist/capabilities/network-quality.cap.d.ts.map +1 -0
- package/dist/capabilities/nodes.cap.d.ts +200 -0
- package/dist/capabilities/nodes.cap.d.ts.map +1 -0
- package/dist/capabilities/notification-output.cap.d.ts +44 -0
- package/dist/capabilities/notification-output.cap.d.ts.map +1 -0
- package/dist/capabilities/osd.cap.d.ts +236 -0
- package/dist/capabilities/osd.cap.d.ts.map +1 -0
- package/dist/capabilities/pipeline-analytics.cap.d.ts +501 -0
- package/dist/capabilities/pipeline-analytics.cap.d.ts.map +1 -0
- package/dist/capabilities/pipeline-executor.cap.d.ts +922 -0
- package/dist/capabilities/pipeline-executor.cap.d.ts.map +1 -0
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +793 -0
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts.map +1 -0
- package/dist/capabilities/pipeline-runner.cap.d.ts +393 -0
- package/dist/capabilities/pipeline-runner.cap.d.ts.map +1 -0
- package/dist/capabilities/platform-probe.cap.d.ts +168 -0
- package/dist/capabilities/platform-probe.cap.d.ts.map +1 -0
- package/dist/capabilities/ptz-autotrack.cap.d.ts +188 -0
- package/dist/capabilities/ptz-autotrack.cap.d.ts.map +1 -0
- package/dist/capabilities/ptz.cap.d.ts +80 -0
- package/dist/capabilities/ptz.cap.d.ts.map +1 -0
- package/dist/capabilities/reboot.cap.d.ts +32 -0
- package/dist/capabilities/reboot.cap.d.ts.map +1 -0
- package/dist/capabilities/recording-engine.cap.d.ts +477 -0
- package/dist/capabilities/recording-engine.cap.d.ts.map +1 -0
- package/dist/capabilities/recording.cap.d.ts +43 -0
- package/dist/capabilities/recording.cap.d.ts.map +1 -0
- package/dist/capabilities/remote-access.cap.d.ts +103 -0
- package/dist/capabilities/remote-access.cap.d.ts.map +1 -0
- package/dist/capabilities/restreamer.cap.d.ts +51 -0
- package/dist/capabilities/restreamer.cap.d.ts.map +1 -0
- package/dist/capabilities/schemas/detection-shared.d.ts +63 -0
- package/dist/capabilities/schemas/detection-shared.d.ts.map +1 -0
- package/dist/capabilities/schemas/orchestrator-metrics.d.ts +44 -0
- package/dist/capabilities/schemas/orchestrator-metrics.d.ts.map +1 -0
- package/dist/capabilities/schemas/streaming-shared.d.ts +177 -0
- package/dist/capabilities/schemas/streaming-shared.d.ts.map +1 -0
- package/dist/capabilities/schemas/zone-rule.d.ts +74 -0
- package/dist/capabilities/schemas/zone-rule.d.ts.map +1 -0
- package/dist/capabilities/settings-store.cap.d.ts +198 -0
- package/dist/capabilities/settings-store.cap.d.ts.map +1 -0
- package/dist/capabilities/snapshot-provider.cap.d.ts +40 -0
- package/dist/capabilities/snapshot-provider.cap.d.ts.map +1 -0
- package/dist/capabilities/snapshot.cap.d.ts +78 -0
- package/dist/capabilities/snapshot.cap.d.ts.map +1 -0
- package/dist/capabilities/storage-provider.cap.d.ts +432 -0
- package/dist/capabilities/storage-provider.cap.d.ts.map +1 -0
- package/dist/capabilities/storage.cap.d.ts +367 -0
- package/dist/capabilities/storage.cap.d.ts.map +1 -0
- package/dist/capabilities/stream-broker.cap.d.ts +416 -0
- package/dist/capabilities/stream-broker.cap.d.ts.map +1 -0
- package/dist/capabilities/streaming-engine.cap.d.ts +58 -0
- package/dist/capabilities/streaming-engine.cap.d.ts.map +1 -0
- package/dist/capabilities/switch.cap.d.ts +66 -0
- package/dist/capabilities/switch.cap.d.ts.map +1 -0
- package/dist/capabilities/system.cap.d.ts +86 -0
- package/dist/capabilities/system.cap.d.ts.map +1 -0
- package/dist/capabilities/toast.cap.d.ts +56 -0
- package/dist/capabilities/toast.cap.d.ts.map +1 -0
- package/dist/capabilities/turn-orchestrator.cap.d.ts +74 -0
- package/dist/capabilities/turn-orchestrator.cap.d.ts.map +1 -0
- package/dist/capabilities/turn-provider.cap.d.ts +43 -0
- package/dist/capabilities/turn-provider.cap.d.ts.map +1 -0
- package/dist/capabilities/user-management.cap.d.ts +378 -0
- package/dist/capabilities/user-management.cap.d.ts.map +1 -0
- package/dist/capabilities/webrtc-session.cap.d.ts +181 -0
- package/dist/capabilities/webrtc-session.cap.d.ts.map +1 -0
- package/dist/capabilities/webrtc.cap.d.ts +72 -0
- package/dist/capabilities/webrtc.cap.d.ts.map +1 -0
- package/dist/capabilities/zone-analytics.cap.d.ts +213 -0
- package/dist/capabilities/zone-analytics.cap.d.ts.map +1 -0
- package/dist/capabilities/zone-rules.cap.d.ts +129 -0
- package/dist/capabilities/zone-rules.cap.d.ts.map +1 -0
- package/dist/capabilities/zones.cap.d.ts +151 -0
- package/dist/capabilities/zones.cap.d.ts.map +1 -0
- package/dist/catalogs/audio-classmap.d.ts +16 -0
- package/dist/catalogs/audio-classmap.d.ts.map +1 -0
- package/dist/catalogs/coco-classmap.d.ts.map +1 -1
- package/dist/constants.d.ts +50 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/deps/binary-downloader.d.ts +41 -0
- package/dist/deps/binary-downloader.d.ts.map +1 -0
- package/dist/deps/ffmpeg-downloader.d.ts +13 -0
- package/dist/deps/ffmpeg-downloader.d.ts.map +1 -0
- package/dist/deps/index.d.ts +4 -0
- package/dist/deps/index.d.ts.map +1 -0
- package/dist/deps/python-downloader.d.ts +34 -0
- package/dist/deps/python-downloader.d.ts.map +1 -0
- package/dist/device/accessory.d.ts +62 -0
- package/dist/device/accessory.d.ts.map +1 -0
- package/dist/device/base-device-provider.d.ts +178 -0
- package/dist/device/base-device-provider.d.ts.map +1 -0
- package/dist/device/base-device.d.ts +287 -0
- package/dist/device/base-device.d.ts.map +1 -0
- package/dist/device/camera-device.d.ts +49 -0
- package/dist/device/camera-device.d.ts.map +1 -0
- package/dist/device/device-binding.d.ts +23 -0
- package/dist/device/device-binding.d.ts.map +1 -0
- package/dist/device/device-config.d.ts +65 -0
- package/dist/device/device-config.d.ts.map +1 -0
- package/dist/device/device-context.d.ts +256 -0
- package/dist/device/device-context.d.ts.map +1 -0
- package/dist/device/device-management.d.ts +118 -0
- package/dist/device/device-management.d.ts.map +1 -0
- package/dist/device/device-profile.d.ts +161 -0
- package/dist/device/device-profile.d.ts.map +1 -0
- package/dist/device/device-runtime-state.d.ts +124 -0
- package/dist/device/device-runtime-state.d.ts.map +1 -0
- package/dist/device/device-state-handle.d.ts +161 -0
- package/dist/device/device-state-handle.d.ts.map +1 -0
- package/dist/device/device-type.d.ts +68 -0
- package/dist/device/device-type.d.ts.map +1 -0
- package/dist/device/device.d.ts +87 -0
- package/dist/device/device.d.ts.map +1 -0
- package/dist/device/features.d.ts +29 -0
- package/dist/device/features.d.ts.map +1 -0
- package/dist/device/index.d.ts +20 -0
- package/dist/device/index.d.ts.map +1 -0
- package/dist/device/runtime-state-helpers.d.ts +69 -0
- package/dist/device/runtime-state-helpers.d.ts.map +1 -0
- package/dist/device/system-mirror.d.ts +318 -0
- package/dist/device/system-mirror.d.ts.map +1 -0
- package/dist/device/zod-to-config-ui.d.ts +23 -0
- package/dist/device/zod-to-config-ui.d.ts.map +1 -0
- package/dist/disposer-chain.d.ts +32 -0
- package/dist/disposer-chain.d.ts.map +1 -0
- package/dist/enums/event-category.d.ts +361 -0
- package/dist/enums/event-category.d.ts.map +1 -0
- package/dist/enums/event-source-type.d.ts +8 -0
- package/dist/enums/event-source-type.d.ts.map +1 -0
- package/dist/enums/index.d.ts +3 -0
- package/dist/enums/index.d.ts.map +1 -0
- package/dist/generated/addon-api.d.ts +14604 -3217
- package/dist/generated/addon-api.d.ts.map +1 -1
- package/dist/generated/cap-status-types.d.ts +51 -0
- package/dist/generated/cap-status-types.d.ts.map +1 -0
- package/dist/generated/capability-router-map.d.ts +278 -0
- package/dist/generated/capability-router-map.d.ts.map +1 -0
- package/dist/generated/device-local-state.d.ts +82 -0
- package/dist/generated/device-local-state.d.ts.map +1 -0
- package/dist/generated/device-proxy.d.ts +146 -0
- package/dist/generated/device-proxy.d.ts.map +1 -0
- package/dist/generated/system-proxy.d.ts +92 -0
- package/dist/generated/system-proxy.d.ts.map +1 -0
- package/dist/helpers/bind-addon-actions.d.ts +19 -0
- package/dist/helpers/bind-addon-actions.d.ts.map +1 -0
- package/dist/index.d.ts +91 -22
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4843 -477
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4832 -415
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces/addon.d.ts +760 -132
- package/dist/interfaces/addon.d.ts.map +1 -1
- package/dist/interfaces/advanced-notifier.d.ts +3 -2
- package/dist/interfaces/advanced-notifier.d.ts.map +1 -1
- package/dist/interfaces/agent-protocol.d.ts +17 -173
- package/dist/interfaces/agent-protocol.d.ts.map +1 -1
- package/dist/interfaces/agent.d.ts +61 -0
- package/dist/interfaces/agent.d.ts.map +1 -1
- package/dist/interfaces/alerts.d.ts +14 -0
- package/dist/interfaces/alerts.d.ts.map +1 -0
- package/dist/interfaces/analysis-persistence.d.ts +37 -19
- package/dist/interfaces/analysis-persistence.d.ts.map +1 -1
- package/dist/interfaces/analysis.d.ts +33 -4
- package/dist/interfaces/analysis.d.ts.map +1 -1
- package/dist/interfaces/api-responses.d.ts +124 -0
- package/dist/interfaces/api-responses.d.ts.map +1 -0
- package/dist/interfaces/api-shared.d.ts +5 -79
- package/dist/interfaces/api-shared.d.ts.map +1 -1
- package/dist/interfaces/audio-analyzer.d.ts +49 -0
- package/dist/interfaces/audio-analyzer.d.ts.map +1 -0
- package/dist/interfaces/audio-codec.d.ts +123 -0
- package/dist/interfaces/audio-codec.d.ts.map +1 -0
- package/dist/interfaces/audio-inference-engine.d.ts +19 -0
- package/dist/interfaces/audio-inference-engine.d.ts.map +1 -0
- package/dist/interfaces/auth-provider.d.ts.map +1 -1
- package/dist/interfaces/auth.d.ts +4 -25
- package/dist/interfaces/auth.d.ts.map +1 -1
- package/dist/interfaces/camera-pipeline.d.ts +7 -20
- package/dist/interfaces/camera-pipeline.d.ts.map +1 -1
- package/dist/interfaces/capability.d.ts +171 -24
- package/dist/interfaces/capability.d.ts.map +1 -1
- package/dist/interfaces/config-ui.d.ts +746 -24
- package/dist/interfaces/config-ui.d.ts.map +1 -1
- package/dist/interfaces/context.d.ts +9 -4
- package/dist/interfaces/context.d.ts.map +1 -1
- package/dist/interfaces/decoder.d.ts +38 -3
- package/dist/interfaces/decoder.d.ts.map +1 -1
- package/dist/interfaces/detection-addon.d.ts +6 -6
- package/dist/interfaces/detection-addon.d.ts.map +1 -1
- package/dist/interfaces/device-capabilities/camera.d.ts +95 -18
- package/dist/interfaces/device-capabilities/camera.d.ts.map +1 -1
- package/dist/interfaces/device-capabilities/index.d.ts +0 -13
- package/dist/interfaces/device-capabilities/index.d.ts.map +1 -1
- package/dist/interfaces/device-provider.d.ts +18 -16
- package/dist/interfaces/device-provider.d.ts.map +1 -1
- package/dist/interfaces/device.d.ts +4 -21
- package/dist/interfaces/device.d.ts.map +1 -1
- package/dist/interfaces/embedding-encoder.d.ts +19 -0
- package/dist/interfaces/embedding-encoder.d.ts.map +1 -0
- package/dist/interfaces/engine-slots.d.ts +10 -0
- package/dist/interfaces/engine-slots.d.ts.map +1 -0
- package/dist/interfaces/event-bus.d.ts +710 -26
- package/dist/interfaces/event-bus.d.ts.map +1 -1
- package/dist/interfaces/inference-capabilities.d.ts +0 -17
- package/dist/interfaces/inference-capabilities.d.ts.map +1 -1
- package/dist/interfaces/inference-engine.d.ts +30 -10
- package/dist/interfaces/inference-engine.d.ts.map +1 -1
- package/dist/interfaces/integration-registry.d.ts +20 -20
- package/dist/interfaces/integration-registry.d.ts.map +1 -1
- package/dist/interfaces/kernel-abstractions.d.ts +83 -0
- package/dist/interfaces/kernel-abstractions.d.ts.map +1 -0
- package/dist/interfaces/logging.d.ts +89 -8
- package/dist/interfaces/logging.d.ts.map +1 -1
- package/dist/interfaces/metrics-provider.d.ts +17 -0
- package/dist/interfaces/metrics-provider.d.ts.map +1 -0
- package/dist/interfaces/network-quality.d.ts +4 -4
- package/dist/interfaces/network.d.ts +0 -16
- package/dist/interfaces/network.d.ts.map +1 -1
- package/dist/interfaces/notification.d.ts +1 -1
- package/dist/interfaces/pipeline-executor-capability.d.ts +200 -0
- package/dist/interfaces/pipeline-executor-capability.d.ts.map +1 -0
- package/dist/interfaces/pipeline-orchestrator-capability.d.ts +165 -0
- package/dist/interfaces/pipeline-orchestrator-capability.d.ts.map +1 -0
- package/dist/interfaces/pipeline-runner-capability.d.ts +147 -0
- package/dist/interfaces/pipeline-runner-capability.d.ts.map +1 -0
- package/dist/interfaces/pipeline-runner.d.ts +18 -2
- package/dist/interfaces/pipeline-runner.d.ts.map +1 -1
- package/dist/interfaces/platform.d.ts +1 -1
- package/dist/interfaces/platform.d.ts.map +1 -1
- package/dist/interfaces/queryable.d.ts +26 -0
- package/dist/interfaces/queryable.d.ts.map +1 -0
- package/dist/interfaces/raw-tensor-engine.d.ts +16 -0
- package/dist/interfaces/raw-tensor-engine.d.ts.map +1 -0
- package/dist/interfaces/readiness.d.ts +101 -0
- package/dist/interfaces/readiness.d.ts.map +1 -0
- package/dist/interfaces/repl.d.ts +1 -1
- package/dist/interfaces/restreamer.d.ts +3 -3
- package/dist/interfaces/scoped-token.d.ts +1 -21
- package/dist/interfaces/scoped-token.d.ts.map +1 -1
- package/dist/interfaces/server-analysis.d.ts +30 -87
- package/dist/interfaces/server-analysis.d.ts.map +1 -1
- package/dist/interfaces/storage-location.d.ts +120 -0
- package/dist/interfaces/storage-location.d.ts.map +1 -0
- package/dist/interfaces/storage.d.ts +124 -50
- package/dist/interfaces/storage.d.ts.map +1 -1
- package/dist/interfaces/stream-broker.d.ts +285 -17
- package/dist/interfaces/stream-broker.d.ts.map +1 -1
- package/dist/interfaces/webrtc-provider.d.ts +24 -0
- package/dist/interfaces/webrtc-provider.d.ts.map +1 -1
- package/dist/node.d.ts +6 -0
- package/dist/node.d.ts.map +1 -0
- package/dist/node.js +481 -0
- package/dist/node.js.map +1 -0
- package/dist/node.mjs +443 -0
- package/dist/node.mjs.map +1 -0
- package/dist/readiness/index.d.ts +3 -0
- package/dist/readiness/index.d.ts.map +1 -0
- package/dist/readiness/readiness-registry.d.ts +183 -0
- package/dist/readiness/readiness-registry.d.ts.map +1 -0
- package/dist/schemas/auth-records.d.ts +81 -0
- package/dist/schemas/auth-records.d.ts.map +1 -0
- package/dist/storage/filesystem-storage-provider.d.ts +37 -0
- package/dist/storage/filesystem-storage-provider.d.ts.map +1 -0
- package/dist/types/agent-pipeline-settings.d.ts +94 -0
- package/dist/types/agent-pipeline-settings.d.ts.map +1 -0
- package/dist/types/camera-pipeline.d.ts +58 -0
- package/dist/types/camera-pipeline.d.ts.map +1 -0
- package/dist/types/detection.d.ts +195 -38
- package/dist/types/detection.d.ts.map +1 -1
- package/dist/types/device-type.d.ts +4 -0
- package/dist/types/device-type.d.ts.map +1 -1
- package/dist/types/engine-output.d.ts +24 -0
- package/dist/types/engine-output.d.ts.map +1 -0
- package/dist/types/io.d.ts +57 -3
- package/dist/types/io.d.ts.map +1 -1
- package/dist/types/models.d.ts +3 -1
- package/dist/types/models.d.ts.map +1 -1
- package/dist/types/pipeline-schema.d.ts +15 -72
- package/dist/types/pipeline-schema.d.ts.map +1 -1
- package/dist/types/pipeline-step.d.ts +201 -0
- package/dist/types/pipeline-step.d.ts.map +1 -0
- package/dist/types/pipeline.d.ts +24 -1
- package/dist/types/pipeline.d.ts.map +1 -1
- package/dist/utils/element-config-store.d.ts +29 -0
- package/dist/utils/element-config-store.d.ts.map +1 -0
- package/dist/utils/err-msg.d.ts +7 -0
- package/dist/utils/err-msg.d.ts.map +1 -0
- package/dist/utils/json-safe.d.ts +33 -0
- package/dist/utils/json-safe.d.ts.map +1 -0
- package/dist/utils/mask-url.d.ts +10 -0
- package/dist/utils/mask-url.d.ts.map +1 -0
- package/dist/utils/ring-buffer.d.ts +16 -0
- package/dist/utils/ring-buffer.d.ts.map +1 -0
- package/dist/utils/run-inference-step.d.ts +26 -0
- package/dist/utils/run-inference-step.d.ts.map +1 -0
- package/dist/utils/runtime-mapping.d.ts +88 -0
- package/dist/utils/runtime-mapping.d.ts.map +1 -0
- package/dist/utils/zone-rule-eval.d.ts +47 -0
- package/dist/utils/zone-rule-eval.d.ts.map +1 -0
- package/package.json +11 -2
- package/dist/__tests__/addon-capability-provider.test.d.ts +0 -2
- package/dist/__tests__/addon-capability-provider.test.d.ts.map +0 -1
- package/dist/__tests__/addon-declaration.test.d.ts +0 -2
- package/dist/__tests__/addon-declaration.test.d.ts.map +0 -1
- package/dist/__tests__/capability.test.d.ts +0 -2
- package/dist/__tests__/capability.test.d.ts.map +0 -1
- package/dist/interfaces/addon-i18n.d.ts +0 -41
- package/dist/interfaces/addon-i18n.d.ts.map +0 -1
- package/dist/interfaces/classifier.d.ts +0 -8
- package/dist/interfaces/classifier.d.ts.map +0 -1
- package/dist/interfaces/cropper.d.ts +0 -8
- package/dist/interfaces/cropper.d.ts.map +0 -1
- package/dist/interfaces/detector.d.ts +0 -8
- package/dist/interfaces/detector.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/accessory.d.ts +0 -14
- package/dist/interfaces/device-capabilities/accessory.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/audio-detector.d.ts +0 -12
- package/dist/interfaces/device-capabilities/audio-detector.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/doorbell.d.ts +0 -10
- package/dist/interfaces/device-capabilities/doorbell.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/events.d.ts +0 -47
- package/dist/interfaces/device-capabilities/events.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/motion-sensor.d.ts +0 -7
- package/dist/interfaces/device-capabilities/motion-sensor.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/native-detection.d.ts +0 -14
- package/dist/interfaces/device-capabilities/native-detection.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/object-detector.d.ts +0 -59
- package/dist/interfaces/device-capabilities/object-detector.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/pan-tilt-zoom.d.ts +0 -29
- package/dist/interfaces/device-capabilities/pan-tilt-zoom.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/recording.d.ts +0 -18
- package/dist/interfaces/device-capabilities/recording.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/siren.d.ts +0 -8
- package/dist/interfaces/device-capabilities/siren.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/status-light.d.ts +0 -7
- package/dist/interfaces/device-capabilities/status-light.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/switch.d.ts +0 -8
- package/dist/interfaces/device-capabilities/switch.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/two-way-audio.d.ts +0 -8
- package/dist/interfaces/device-capabilities/two-way-audio.d.ts.map +0 -1
- package/dist/interfaces/device-capability.d.ts +0 -14
- package/dist/interfaces/device-capability.d.ts.map +0 -1
- package/dist/interfaces/model-catalog.d.ts +0 -25
- package/dist/interfaces/model-catalog.d.ts.map +0 -1
- package/dist/interfaces/refiner.d.ts +0 -8
- package/dist/interfaces/refiner.d.ts.map +0 -1
- package/dist/interfaces/repositories.d.ts +0 -20
- package/dist/interfaces/repositories.d.ts.map +0 -1
- package/dist/interfaces/scene-intelligence.d.ts +0 -21
- package/dist/interfaces/scene-intelligence.d.ts.map +0 -1
- package/dist/interfaces/storage-backend.d.ts +0 -27
- package/dist/interfaces/storage-backend.d.ts.map +0 -1
- package/dist/interfaces/worker-protocol.d.ts +0 -110
- package/dist/interfaces/worker-protocol.d.ts.map +0 -1
- package/dist/schemas/system-settings-schemas.d.ts +0 -27
- package/dist/schemas/system-settings-schemas.d.ts.map +0 -1
- package/dist/types/benchmark.d.ts +0 -112
- package/dist/types/benchmark.d.ts.map +0 -1
- package/dist/types/zones.d.ts +0 -48
- package/dist/types/zones.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device-manager.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/device-manager.cap.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAA;AAUvE;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;iBA2B3B,CAAA;AAEF,eAAO,MAAM,iBAAiB;;;;iBAI5B,CAAA;AAEF,OAAO,EAAE,uBAAuB,EAAE,CAAA;AAElC,eAAO,MAAM,oBAAoB;;;;;;;;;iBAc/B,CAAA;AAEF;;;6EAG6E;AAC7E,eAAO,MAAM,gBAAgB;;;;;;;;;;iBAU3B,CAAA;AAgBF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;iBAyBtC,CAAA;AAEF,eAAO,MAAM,yBAAyB;;iBAEpC,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;iBAG3C,CAAA;AAIF,eAAO,MAAM,uBAAuB;;;;;QAOhC;;;6EAGqE;;;;;;;QAOrE,+FAA+F;;;;;;;;;;;;;;QAG/F,6FAA6F;;;;QAG7F,uEAAuE;;;;;QAGvE,kEAAkE;;;;QAMlE,iEAAiE;;;;QAMjE;;;kDAG0C;;;;;;;;;;;;;;QAM1C;6DACqD;;;;;QAOrD;yBACiB;;;;;QAOjB;;;;+DAIuD;;;;;QAUvD;;;;;0EAKkE;;QAMlE;;8CAEsC;;;;QAOtC;;;;yEAIiE;;;;;QAOjE;6DACqD;;;;;QAOrD,6DAA6D;;;;;;;;;;;;;QAQ7D,wEAAwE;;;;;;;;;;;;;;;;;;;QAMxE,+CAA+C;;;;;;;;;;;;;;;;;;;QAM/C,+DAA+D;;;;;;;;;;;;;;;;;;;QAQ/D,8CAA8C;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAM9C,mEAAmE;;;;;;;;QAMnE,+EAA+E;;;;QAQ/E,mDAAmD;;;;;;;QAUnD,8DAA8D;;;;;;QAO9D,gEAAgE;;;;;;QAOhE,qGAAqG;;;;;;QASrG,iGAAiG;;;;QAMjG,wFAAwF;;;;;;;QAUxF,oGAAoG;;;;;;;;;;;QASpG;;;;WAIG;;;;;;;;;;;;;;;;QAeH;;;;;;;WAOG;;;;;;;;;;;;;;QAeH;;;;WAIG;;;;;;;QAYH;;;;;WAKG;;;;QAMH;;;;;;;;WAQG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAoCH;;;;;;;WAOG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAmBH;;;;;;WAMG;;;;;;;;;;;;;;;;;QA4BH,2DAA2D;;;;;;;;;QAO3D,oEAAoE;;;;;;;;;;;;;;;;;;;;QAUpE;;;WAGG;;;;;QASH,8DAA8D;;;;;;;;;;;;;;;;QAW9D;;;;;;;WAOG;;;;;;;;;;;;;;;QAaH;;;WAGG;;;;;;;;;;;;;QAWH;;;;;;;;;;;;;;;;;;WAkBG;;;;;;CASkC,CAAA;AAEzC,MAAM,MAAM,sBAAsB,GAAG,OAAO,4BAA4B,EAAE,aAAa,CAAC,OAAO,uBAAuB,CAAC,CAAA;AACvH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
export declare const deviceOpsCapability: {
|
|
4
|
+
readonly name: "device-ops";
|
|
5
|
+
readonly scope: "device";
|
|
6
|
+
readonly mode: "singleton";
|
|
7
|
+
readonly methods: {
|
|
8
|
+
/**
|
|
9
|
+
* Return stream sources for camera-like devices. Non-camera devices
|
|
10
|
+
* return an empty array (the bridge did the same; preserved for compat).
|
|
11
|
+
*/
|
|
12
|
+
readonly getStreamSources: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
13
|
+
deviceId: z.ZodNumber;
|
|
14
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
15
|
+
id: z.ZodString;
|
|
16
|
+
label: z.ZodString;
|
|
17
|
+
protocol: z.ZodEnum<{
|
|
18
|
+
custom: "custom";
|
|
19
|
+
rtsp: "rtsp";
|
|
20
|
+
rtmp: "rtmp";
|
|
21
|
+
webrtc: "webrtc";
|
|
22
|
+
annexb: "annexb";
|
|
23
|
+
"http-mjpeg": "http-mjpeg";
|
|
24
|
+
}>;
|
|
25
|
+
url: z.ZodOptional<z.ZodString>;
|
|
26
|
+
resolution: z.ZodOptional<z.ZodObject<{
|
|
27
|
+
width: z.ZodNumber;
|
|
28
|
+
height: z.ZodNumber;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
bitrate: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
codec: z.ZodOptional<z.ZodString>;
|
|
33
|
+
profileHint: z.ZodOptional<z.ZodEnum<{
|
|
34
|
+
high: "high";
|
|
35
|
+
mid: "mid";
|
|
36
|
+
low: "low";
|
|
37
|
+
}>>;
|
|
38
|
+
sdp: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
40
|
+
/**
|
|
41
|
+
* Return the device's config entries (key + current value). Used by
|
|
42
|
+
* the device-manager aggregator when reading the driver's schema+values.
|
|
43
|
+
*/
|
|
44
|
+
readonly getConfigEntries: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
45
|
+
deviceId: z.ZodNumber;
|
|
46
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
47
|
+
key: z.ZodString;
|
|
48
|
+
value: z.ZodUnknown;
|
|
49
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
50
|
+
/**
|
|
51
|
+
* Bulk-apply a config patch via `IDevice.config.setAll`. Covers the
|
|
52
|
+
* updateConfig / setStreamProfileMap / enable-as-config paths from
|
|
53
|
+
* the old bridge.
|
|
54
|
+
*/
|
|
55
|
+
readonly setConfig: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
56
|
+
deviceId: z.ZodNumber;
|
|
57
|
+
values: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
58
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
59
|
+
/**
|
|
60
|
+
* Invoke `IDevice.removeDevice()` so the driver can release resources
|
|
61
|
+
* (close sockets, stop background tasks, …). The device-manager still
|
|
62
|
+
* performs its own persistence cleanup before/after this call.
|
|
63
|
+
*/
|
|
64
|
+
readonly removeDevice: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
65
|
+
deviceId: z.ZodNumber;
|
|
66
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
67
|
+
/**
|
|
68
|
+
* Build the ConfigUISchema (FormBuilder input shape) from the device's
|
|
69
|
+
* Zod config schema. Runs on the worker that owns the IDevice so the
|
|
70
|
+
* Zod types stay local (they're function references, not
|
|
71
|
+
* serializable). Returns a fully JSON-serializable schema with
|
|
72
|
+
* sections/fields the admin UI renders directly.
|
|
73
|
+
*
|
|
74
|
+
* Needed because the hub-side `device-manager.getSettingsSchema`
|
|
75
|
+
* couldn't reach forked-worker devices — it had no registry entry
|
|
76
|
+
* and no cross-process lookup, so the UI silently rendered an empty
|
|
77
|
+
* settings panel for every worker-owned device.
|
|
78
|
+
*
|
|
79
|
+
* Returns `null` when the device isn't found on this worker.
|
|
80
|
+
*/
|
|
81
|
+
readonly getSettingsSchema: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
82
|
+
deviceId: z.ZodNumber;
|
|
83
|
+
}, z.core.$strip>, z.ZodNullable<z.ZodUnknown>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
export type IDeviceOpsProvider = InferProvider<typeof deviceOpsCapability>;
|
|
87
|
+
//# sourceMappingURL=device-ops.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device-ops.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/device-ops.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAqClG,eAAO,MAAM,mBAAmB;;;;;QAK5B;;;WAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAMH;;;WAGG;;;;;;;QAMH;;;;WAIG;;;;;QAUH;;;;WAIG;;;;QAOH;;;;;;;;;;;;;WAaG;;;;;CAMkC,CAAA;AAEzC,MAAM,MAAM,kBAAkB,GAAG,aAAa,CAAC,OAAO,mBAAmB,CAAC,CAAA"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
import { DeviceType } from '../device/device-type.js';
|
|
4
|
+
declare const ProviderStatusSchema: z.ZodObject<{
|
|
5
|
+
connected: z.ZodBoolean;
|
|
6
|
+
deviceCount: z.ZodNumber;
|
|
7
|
+
error: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const DiscoveredDeviceSchema: z.ZodObject<{
|
|
10
|
+
externalId: z.ZodString;
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
type: z.ZodString;
|
|
13
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
/**
|
|
16
|
+
* Candidate handed back from discovery and accepted by
|
|
17
|
+
* `adoptDiscoveredDevice`. Shape mirrors the in-process
|
|
18
|
+
* `DiscoveredDevice` interface used by `DeviceDiscovery`.
|
|
19
|
+
*/
|
|
20
|
+
declare const DiscoveryCandidateSchema: z.ZodObject<{
|
|
21
|
+
stableId: z.ZodString;
|
|
22
|
+
type: z.ZodEnum<typeof DeviceType>;
|
|
23
|
+
suggestedName: z.ZodString;
|
|
24
|
+
prefilledConfig: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
/**
|
|
27
|
+
* Flat device summary returned by `createDevice` / `adoptDiscoveredDevice`.
|
|
28
|
+
* Mirrors `toDeviceShape()` output in `device-management.router.ts` so the
|
|
29
|
+
* tRPC layer can pass it through without reshaping.
|
|
30
|
+
*/
|
|
31
|
+
declare const DeviceSummarySchema: z.ZodObject<{
|
|
32
|
+
id: z.ZodNumber;
|
|
33
|
+
stableId: z.ZodString;
|
|
34
|
+
addonId: z.ZodString;
|
|
35
|
+
type: z.ZodString;
|
|
36
|
+
name: z.ZodString;
|
|
37
|
+
parentDeviceId: z.ZodNullable<z.ZodNumber>;
|
|
38
|
+
online: z.ZodBoolean;
|
|
39
|
+
features: z.ZodArray<z.ZodString>;
|
|
40
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
/**
|
|
43
|
+
* Result of a live field test (e.g. probing an RTSP URL during device
|
|
44
|
+
* creation). Matches the UI-side `FieldProbeResult` in
|
|
45
|
+
* `interfaces/config-ui.ts` — the admin `FormBuilder` renders the
|
|
46
|
+
* returned `labels` as chips next to the input.
|
|
47
|
+
*/
|
|
48
|
+
declare const FieldProbeResultSchema: z.ZodObject<{
|
|
49
|
+
status: z.ZodEnum<{
|
|
50
|
+
error: "error";
|
|
51
|
+
ok: "ok";
|
|
52
|
+
}>;
|
|
53
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
54
|
+
error: z.ZodOptional<z.ZodString>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
export declare const deviceProviderCapability: {
|
|
57
|
+
readonly name: "device-provider";
|
|
58
|
+
readonly scope: "system";
|
|
59
|
+
readonly mode: "collection";
|
|
60
|
+
readonly methods: {
|
|
61
|
+
readonly start: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodVoid, "mutation">;
|
|
62
|
+
readonly stop: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodVoid, "mutation">;
|
|
63
|
+
readonly getStatus: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
|
|
64
|
+
connected: z.ZodBoolean;
|
|
65
|
+
deviceCount: z.ZodNumber;
|
|
66
|
+
error: z.ZodOptional<z.ZodString>;
|
|
67
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
68
|
+
readonly getDevices: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodArray<z.ZodObject<{
|
|
69
|
+
id: z.ZodString;
|
|
70
|
+
name: z.ZodString;
|
|
71
|
+
type: z.ZodString;
|
|
72
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
73
|
+
readonly supportsDiscovery: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodBoolean, import("./capability-definition.js").CapabilityMethodKind>;
|
|
74
|
+
readonly discoverDevices: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
75
|
+
stableId: z.ZodString;
|
|
76
|
+
type: z.ZodEnum<typeof DeviceType>;
|
|
77
|
+
suggestedName: z.ZodString;
|
|
78
|
+
prefilledConfig: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
79
|
+
}, z.core.$strip>>, "mutation">;
|
|
80
|
+
readonly adoptDiscoveredDevice: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
81
|
+
candidate: z.ZodObject<{
|
|
82
|
+
stableId: z.ZodString;
|
|
83
|
+
type: z.ZodEnum<typeof DeviceType>;
|
|
84
|
+
suggestedName: z.ZodString;
|
|
85
|
+
prefilledConfig: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
88
|
+
id: z.ZodNumber;
|
|
89
|
+
stableId: z.ZodString;
|
|
90
|
+
addonId: z.ZodString;
|
|
91
|
+
type: z.ZodString;
|
|
92
|
+
name: z.ZodString;
|
|
93
|
+
parentDeviceId: z.ZodNullable<z.ZodNumber>;
|
|
94
|
+
online: z.ZodBoolean;
|
|
95
|
+
features: z.ZodArray<z.ZodString>;
|
|
96
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
97
|
+
}, z.core.$strip>, "mutation">;
|
|
98
|
+
readonly supportsManualCreation: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodBoolean, import("./capability-definition.js").CapabilityMethodKind>;
|
|
99
|
+
/**
|
|
100
|
+
* Fetch the creation form schema for a given DeviceType. Returns
|
|
101
|
+
* `null` when the provider does not support manually creating
|
|
102
|
+
* devices of that type. The output is a `ConfigUISchema` — the
|
|
103
|
+
* router type-asserts it at the boundary.
|
|
104
|
+
*/
|
|
105
|
+
readonly getChildCreationSchema: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
106
|
+
type: z.ZodEnum<typeof DeviceType>;
|
|
107
|
+
}, z.core.$strip>, z.ZodUnknown, import("./capability-definition.js").CapabilityMethodKind>;
|
|
108
|
+
readonly createDevice: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
109
|
+
type: z.ZodEnum<typeof DeviceType>;
|
|
110
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
111
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
112
|
+
id: z.ZodNumber;
|
|
113
|
+
stableId: z.ZodString;
|
|
114
|
+
addonId: z.ZodString;
|
|
115
|
+
type: z.ZodString;
|
|
116
|
+
name: z.ZodString;
|
|
117
|
+
parentDeviceId: z.ZodNullable<z.ZodNumber>;
|
|
118
|
+
online: z.ZodBoolean;
|
|
119
|
+
features: z.ZodArray<z.ZodString>;
|
|
120
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
121
|
+
}, z.core.$strip>, "mutation">;
|
|
122
|
+
/**
|
|
123
|
+
* Test a single field in the creation form before the device has
|
|
124
|
+
* been persisted. Typical use: probing an RTSP URL entered by the
|
|
125
|
+
* user. Providers that don't support field probing return
|
|
126
|
+
* `{ success: true, message: 'Field test not supported' }`.
|
|
127
|
+
*
|
|
128
|
+
* `formValues` is the live snapshot of every field in the form at
|
|
129
|
+
* the moment the user clicked Test — useful for probes that depend
|
|
130
|
+
* on multiple fields together (e.g. Reolink autodetect needs host
|
|
131
|
+
* + credentials + UID + transport mode in a single call). Optional
|
|
132
|
+
* for backwards compatibility; providers free to ignore it.
|
|
133
|
+
*/
|
|
134
|
+
readonly testCreationField: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
135
|
+
type: z.ZodEnum<typeof DeviceType>;
|
|
136
|
+
key: z.ZodString;
|
|
137
|
+
value: z.ZodUnknown;
|
|
138
|
+
formValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
139
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
140
|
+
status: z.ZodEnum<{
|
|
141
|
+
error: "error";
|
|
142
|
+
ok: "ok";
|
|
143
|
+
}>;
|
|
144
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
145
|
+
error: z.ZodOptional<z.ZodString>;
|
|
146
|
+
}, z.core.$strip>, "mutation">;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
export type IDeviceProvider = InferProvider<typeof deviceProviderCapability>;
|
|
150
|
+
export { ProviderStatusSchema, DiscoveredDeviceSchema, DiscoveryCandidateSchema, DeviceSummarySchema, FieldProbeResultSchema, };
|
|
151
|
+
//# sourceMappingURL=device-provider.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device-provider.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/device-provider.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAClG,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAErD,QAAA,MAAM,oBAAoB;;;;iBAIxB,CAAA;AAEF,QAAA,MAAM,sBAAsB;;;;;iBAK1B,CAAA;AAEF;;;;GAIG;AACH,QAAA,MAAM,wBAAwB;;;;;iBAK5B,CAAA;AAEF;;;;GAIG;AACH,QAAA,MAAM,mBAAmB;;;;;;;;;;iBAUvB,CAAA;AAEF;;;;;GAKG;AACH,QAAA,MAAM,sBAAsB;;;;;;;iBAI1B,CAAA;AAYF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA8BjC;;;;;WAKG;;;;;;;;;;;;;;;;;;QAaH;;;;;;;;;;;WAWG;;;;;;;;;;;;;;;CAYkC,CAAA;AAEzC,MAAM,MAAM,eAAe,GAAG,aAAa,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAE5E,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,mBAAmB,EACnB,sBAAsB,GACvB,CAAA"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* `deviceState` — generic, cap-agnostic surface for cross-process
|
|
4
|
+
* access to per-device runtime state. Read pendant for every cap's
|
|
5
|
+
* runtime-state slice + the canonical write entrypoint. Mirrors the
|
|
6
|
+
* in-process `BaseDevice.runtimeState` API:
|
|
7
|
+
*
|
|
8
|
+
* - `getSnapshot({deviceId})` → full `Record<capName, slice>`.
|
|
9
|
+
* - `getCapSlice({deviceId, capName})` → one slice.
|
|
10
|
+
* - `setCapSlice({deviceId, capName, slice})` → unified single-slice
|
|
11
|
+
* write. Hub validates (when a cap schema is registered),
|
|
12
|
+
* persists to disk (debounced), updates the mirror, and emits
|
|
13
|
+
* `onChanged` for that cap.
|
|
14
|
+
* - `onChanged` event → fires on every slice change.
|
|
15
|
+
*
|
|
16
|
+
* Drivers don't implement this cap directly — the kernel auto-mounts
|
|
17
|
+
* a singleton provider against `device-manager`'s in-hub mirror.
|
|
18
|
+
* Every `setCapState` call on a `BaseDevice.runtimeState` ultimately
|
|
19
|
+
* routes through `setCapSlice` (single cross-layer entrypoint) so
|
|
20
|
+
* UIs / addons subscribe to a single event channel for every
|
|
21
|
+
* cap-state change; per-cap events (`battery.onStatusChanged`, …)
|
|
22
|
+
* remain available for typed consumers but no longer have to be
|
|
23
|
+
* defined on every new cap with runtime state.
|
|
24
|
+
*/
|
|
25
|
+
export declare const deviceStateCapability: {
|
|
26
|
+
readonly name: "device-state";
|
|
27
|
+
readonly scope: "system";
|
|
28
|
+
readonly mode: "singleton";
|
|
29
|
+
readonly methods: {
|
|
30
|
+
/** Full state snapshot for one device. Empty object if no
|
|
31
|
+
* cap-keyed slice has been written yet. */
|
|
32
|
+
readonly getSnapshot: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
33
|
+
deviceId: z.ZodNumber;
|
|
34
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
35
|
+
/** Single cap slice. Returns null when the slice hasn't been
|
|
36
|
+
* written or the device isn't registered. */
|
|
37
|
+
readonly getCapSlice: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
38
|
+
deviceId: z.ZodNumber;
|
|
39
|
+
capName: z.ZodString;
|
|
40
|
+
}, z.core.$strip>, z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
41
|
+
/**
|
|
42
|
+
* Whole-system snapshot — every device's full state in one
|
|
43
|
+
* payload. Used by `SystemManager` for warm-boot: a single
|
|
44
|
+
* round-trip populates the client mirror so every subsequent
|
|
45
|
+
* `sm.getDeviceById(id).state.<cap>.value` is sync. Empty inner
|
|
46
|
+
* record for devices that haven't emitted any slice yet.
|
|
47
|
+
*/
|
|
48
|
+
readonly getAllSnapshots: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
49
|
+
/**
|
|
50
|
+
* Canonical cross-layer WRITE for one cap-keyed slice. Used by
|
|
51
|
+
* everyone who needs to publish runtime state for a device:
|
|
52
|
+
* device providers (via `BaseDevice.runtimeState.setCapState`
|
|
53
|
+
* which delegates here), system-scope addons (e.g. the pipeline
|
|
54
|
+
* runner writing the `motion` slice on phase transitions), and
|
|
55
|
+
* direct cap-router callers in tests.
|
|
56
|
+
*
|
|
57
|
+
* Behavior on the hub:
|
|
58
|
+
* 1. Resolve the device — throws if unknown.
|
|
59
|
+
* 2. Diff the slice against the current mirror (no-op on
|
|
60
|
+
* identical writes — saves disk and event churn).
|
|
61
|
+
* 3. Update the mirror in place.
|
|
62
|
+
* 4. Persist the full per-device blob to disk (debounced).
|
|
63
|
+
* 5. Emit `onChanged` for this cap so subscribers (UI mirror,
|
|
64
|
+
* SystemManager, per-cap typed listeners) refresh.
|
|
65
|
+
*
|
|
66
|
+
* Schema validation is the caller's responsibility — callers
|
|
67
|
+
* going through `BaseDevice.runtimeState.setCapState` get the
|
|
68
|
+
* cap's `runtimeState` schema enforced in-process before the
|
|
69
|
+
* write reaches here. Direct callers should validate against
|
|
70
|
+
* the cap's schema themselves.
|
|
71
|
+
*
|
|
72
|
+
* No `patch` variant — for shallow merges read the slice via
|
|
73
|
+
* `getCapSlice` first, merge, and write. The single-writer
|
|
74
|
+
* conventions on each cap make atomic-merge semantics
|
|
75
|
+
* unnecessary in practice.
|
|
76
|
+
*/
|
|
77
|
+
readonly setCapSlice: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
78
|
+
deviceId: z.ZodNumber;
|
|
79
|
+
capName: z.ZodString;
|
|
80
|
+
slice: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
81
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
82
|
+
};
|
|
83
|
+
readonly events: {
|
|
84
|
+
/**
|
|
85
|
+
* Fires whenever a cap-keyed slice changes. Per-event payload
|
|
86
|
+
* carries the slice that changed — subscribers can render off
|
|
87
|
+
* the payload alone without re-querying. Filterable by `deviceId`
|
|
88
|
+
* via the standard `EventFilter` helpers.
|
|
89
|
+
*/
|
|
90
|
+
readonly onChanged: import("./capability-definition.js").CapabilityEventSchema<z.ZodObject<{
|
|
91
|
+
deviceId: z.ZodNumber;
|
|
92
|
+
capName: z.ZodString;
|
|
93
|
+
slice: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
94
|
+
}, z.core.$strip>>;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
//# sourceMappingURL=device-state.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device-state.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/device-state.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,qBAAqB;;;;;QAK9B;oDAC4C;;;;QAK5C;sDAC8C;;;;;QAK9C;;;;;;WAMG;;QAMH;;;;;;;;;;;;;;;;;;;;;;;;;;;WA2BG;;;;;;;;QAYH;;;;;WAKG;;;;;;;CAOkC,CAAA"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
/**
|
|
4
|
+
* Generic device-level status snapshot. Auto-registered by `BaseDevice`
|
|
5
|
+
* for every device, regardless of provider — the kernel needs a uniform
|
|
6
|
+
* cap-keyed slice for the basic device flags every consumer expects to
|
|
7
|
+
* read across processes (the `online` flag in particular). Driver-specific
|
|
8
|
+
* caps (`battery`, `doorbell`, …) carry their domain-specific state on
|
|
9
|
+
* their own slices.
|
|
10
|
+
*
|
|
11
|
+
* Pattern is identical to `battery`: schema-bearing `runtimeState`,
|
|
12
|
+
* empty `methods`, single change event. Reads land at
|
|
13
|
+
* `runtimeState.getCapState('device-status')`; writes at
|
|
14
|
+
* `runtimeState.setCapState('device-status', …)`. Cross-process
|
|
15
|
+
* consumers reach the same data via the `device-state` cap router
|
|
16
|
+
* (`getCapSlice({deviceId, capName: 'device-status'})`).
|
|
17
|
+
*/
|
|
18
|
+
export declare const DeviceStatusSchema: z.ZodObject<{
|
|
19
|
+
online: z.ZodBoolean;
|
|
20
|
+
lastChangedAt: z.ZodNumber;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export type DeviceStatus = z.infer<typeof DeviceStatusSchema>;
|
|
23
|
+
export declare const deviceStatusCapability: {
|
|
24
|
+
readonly name: "device-status";
|
|
25
|
+
readonly scope: "device";
|
|
26
|
+
readonly mode: "singleton";
|
|
27
|
+
readonly methods: {};
|
|
28
|
+
readonly events: {
|
|
29
|
+
/** Emitted when `online` transitions. Mirrors the semantics of
|
|
30
|
+
* `battery.onStatusChanged`. */
|
|
31
|
+
readonly onStatusChanged: {
|
|
32
|
+
readonly data: z.ZodObject<{
|
|
33
|
+
deviceId: z.ZodNumber;
|
|
34
|
+
status: z.ZodObject<{
|
|
35
|
+
online: z.ZodBoolean;
|
|
36
|
+
lastChangedAt: z.ZodNumber;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
readonly status: {
|
|
42
|
+
readonly schema: z.ZodObject<{
|
|
43
|
+
online: z.ZodBoolean;
|
|
44
|
+
lastChangedAt: z.ZodNumber;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
readonly kind: "push";
|
|
47
|
+
};
|
|
48
|
+
readonly runtimeState: z.ZodObject<{
|
|
49
|
+
online: z.ZodBoolean;
|
|
50
|
+
lastChangedAt: z.ZodNumber;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
};
|
|
53
|
+
export type IDeviceStatusProvider = InferProvider<typeof deviceStatusCapability>;
|
|
54
|
+
//# sourceMappingURL=device-status.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device-status.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/device-status.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAA6B,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE1F;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB;;;iBAY7B,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAE7D,eAAO,MAAM,sBAAsB;;;;;;QAM/B;yCACiC;;;;;;;;;;;;;;;;;;;;;;CAWI,CAAA;AAEzC,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC,OAAO,sBAAsB,CAAC,CAAA"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
import { DeviceType } from '../device/device-type.js';
|
|
4
|
+
/**
|
|
5
|
+
* Doorbell button cap. Installed on a `DeviceType.Button` accessory
|
|
6
|
+
* with `role: DeviceRole.Doorbell`. Emits an `onPressed` event every
|
|
7
|
+
* time the firmware pushes a ring; status tracks the last press and
|
|
8
|
+
* a pressCount since start (diagnostic).
|
|
9
|
+
*
|
|
10
|
+
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
11
|
+
* — subscribers listening at the camera level receive ring events
|
|
12
|
+
* with `via[]` populated. No code on the parent needed.
|
|
13
|
+
*/
|
|
14
|
+
export declare const DoorbellStatusSchema: z.ZodObject<{
|
|
15
|
+
lastPressedAt: z.ZodNullable<z.ZodNumber>;
|
|
16
|
+
pressCountSinceStart: z.ZodNumber;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export type DoorbellStatus = z.infer<typeof DoorbellStatusSchema>;
|
|
19
|
+
export declare const DoorbellPressEventSchema: z.ZodObject<{
|
|
20
|
+
deviceId: z.ZodNumber;
|
|
21
|
+
timestamp: z.ZodNumber;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export type DoorbellPressEvent = z.infer<typeof DoorbellPressEventSchema>;
|
|
24
|
+
export declare const doorbellCapability: {
|
|
25
|
+
readonly name: "doorbell";
|
|
26
|
+
readonly scope: "device";
|
|
27
|
+
readonly mode: "singleton";
|
|
28
|
+
readonly deviceTypes: readonly [DeviceType.Button];
|
|
29
|
+
readonly methods: {};
|
|
30
|
+
readonly events: {
|
|
31
|
+
/**
|
|
32
|
+
* Fires once per physical press. Reolink delivers via Baichuan
|
|
33
|
+
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
34
|
+
* release/duration — it's a pulse.
|
|
35
|
+
*/
|
|
36
|
+
readonly onPressed: {
|
|
37
|
+
readonly data: z.ZodObject<{
|
|
38
|
+
deviceId: z.ZodNumber;
|
|
39
|
+
timestamp: z.ZodNumber;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
readonly status: {
|
|
44
|
+
readonly schema: z.ZodObject<{
|
|
45
|
+
lastPressedAt: z.ZodNullable<z.ZodNumber>;
|
|
46
|
+
pressCountSinceStart: z.ZodNumber;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
readonly kind: "push";
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
52
|
+
* Mirrored by the kernel and readable via
|
|
53
|
+
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
54
|
+
* without subscribing.
|
|
55
|
+
*/
|
|
56
|
+
readonly runtimeState: z.ZodObject<{
|
|
57
|
+
lastPressedAt: z.ZodNullable<z.ZodNumber>;
|
|
58
|
+
pressCountSinceStart: z.ZodNumber;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
};
|
|
61
|
+
export type IDoorbellProvider = InferProvider<typeof doorbellCapability>;
|
|
62
|
+
//# sourceMappingURL=doorbell.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doorbell.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/doorbell.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAA6B,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1F,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAErD;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB;;;iBAK/B,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEjE,eAAO,MAAM,wBAAwB;;;iBAGnC,CAAA;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAEzE,eAAO,MAAM,kBAAkB;;;;;;;QAO3B;;;;WAIG;;;;;;;;;;;;;;;IAOL;;;;;OAKG;;;;;CAEoC,CAAA;AAEzC,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC,OAAO,kBAAkB,CAAC,CAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
declare const EmbeddingResultSchema: z.ZodObject<{
|
|
4
|
+
embedding: z.ZodArray<z.ZodNumber>;
|
|
5
|
+
dimensions: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const EmbeddingInfoSchema: z.ZodObject<{
|
|
8
|
+
modelId: z.ZodString;
|
|
9
|
+
dimensions: z.ZodNumber;
|
|
10
|
+
inputSize: z.ZodNumber;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export declare const embeddingEncoderCapability: {
|
|
13
|
+
readonly name: "embedding-encoder";
|
|
14
|
+
readonly scope: "system";
|
|
15
|
+
readonly mode: "collection";
|
|
16
|
+
readonly internal: true;
|
|
17
|
+
readonly methods: {
|
|
18
|
+
readonly encode: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
19
|
+
crop: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
20
|
+
width: z.ZodNumber;
|
|
21
|
+
height: z.ZodNumber;
|
|
22
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
+
embedding: z.ZodArray<z.ZodNumber>;
|
|
24
|
+
dimensions: z.ZodNumber;
|
|
25
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
26
|
+
readonly encodeText: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
27
|
+
text: z.ZodString;
|
|
28
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
+
embedding: z.ZodArray<z.ZodNumber>;
|
|
30
|
+
dimensions: z.ZodNumber;
|
|
31
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
32
|
+
readonly getInfo: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
|
|
33
|
+
modelId: z.ZodString;
|
|
34
|
+
dimensions: z.ZodNumber;
|
|
35
|
+
inputSize: z.ZodNumber;
|
|
36
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export type IEmbeddingEncoderProvider = InferProvider<typeof embeddingEncoderCapability>;
|
|
40
|
+
export { EmbeddingResultSchema, EmbeddingInfoSchema };
|
|
41
|
+
//# sourceMappingURL=embedding-encoder.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embedding-encoder.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/embedding-encoder.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAElG,QAAA,MAAM,qBAAqB;;;iBAGzB,CAAA;AAEF,QAAA,MAAM,mBAAmB;;;;iBAIvB,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;CAaE,CAAA;AAEzC,MAAM,MAAM,yBAAyB,GAAG,aAAa,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAExF,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,CAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
import { DeviceType } from '../device/device-type.js';
|
|
4
|
+
declare const EventItemSchema: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
type: z.ZodString;
|
|
7
|
+
timestamp: z.ZodNumber;
|
|
8
|
+
label: z.ZodOptional<z.ZodString>;
|
|
9
|
+
thumbnailUrl: z.ZodOptional<z.ZodString>;
|
|
10
|
+
clipUrl: z.ZodOptional<z.ZodString>;
|
|
11
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export declare const eventsCapability: {
|
|
14
|
+
readonly name: "events";
|
|
15
|
+
readonly scope: "device";
|
|
16
|
+
readonly mode: "singleton";
|
|
17
|
+
readonly deviceTypes: readonly [DeviceType.Camera];
|
|
18
|
+
readonly methods: {
|
|
19
|
+
readonly getEvents: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
20
|
+
deviceId: z.ZodNumber;
|
|
21
|
+
from: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
to: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
25
|
+
id: z.ZodString;
|
|
26
|
+
type: z.ZodString;
|
|
27
|
+
timestamp: z.ZodNumber;
|
|
28
|
+
label: z.ZodOptional<z.ZodString>;
|
|
29
|
+
thumbnailUrl: z.ZodOptional<z.ZodString>;
|
|
30
|
+
clipUrl: z.ZodOptional<z.ZodString>;
|
|
31
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
32
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
33
|
+
readonly getEventThumbnail: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
34
|
+
deviceId: z.ZodNumber;
|
|
35
|
+
eventId: z.ZodString;
|
|
36
|
+
}, z.core.$strip>, z.ZodNullable<z.ZodObject<{
|
|
37
|
+
base64: z.ZodString;
|
|
38
|
+
contentType: z.ZodString;
|
|
39
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
40
|
+
readonly getEventClipUrl: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
41
|
+
deviceId: z.ZodNumber;
|
|
42
|
+
eventId: z.ZodString;
|
|
43
|
+
}, z.core.$strip>, z.ZodNullable<z.ZodString>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export type IEventsProvider = InferProvider<typeof eventsCapability>;
|
|
47
|
+
export { EventItemSchema };
|
|
48
|
+
//# sourceMappingURL=events.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/events.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAClG,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAErD,QAAA,MAAM,eAAe;;;;;;;;iBAQnB,CAAA;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBY,CAAA;AAEzC,MAAM,MAAM,eAAe,GAAG,aAAa,CAAC,OAAO,gBAAgB,CAAC,CAAA;AACpE,OAAO,EAAE,eAAe,EAAE,CAAA"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
/**
|
|
4
|
+
* Per-device feature/identity probe slice. Holds the runtime-resolved
|
|
5
|
+
* truth about what a device CAN do — which the kernel uses to:
|
|
6
|
+
* 1. Reconcile accessory children (hub-children spawn siren/floodlight/PIR
|
|
7
|
+
* based on what the firmware actually advertises).
|
|
8
|
+
* 2. Compute the public `features: DeviceFeature[]` array surfaced via
|
|
9
|
+
* `device-manager.listAll`.
|
|
10
|
+
* 3. Decide which optional caps (PTZ, intercom, doorbell, battery, …)
|
|
11
|
+
* to register on the device's capability surface.
|
|
12
|
+
*
|
|
13
|
+
* Auto-registered by `BaseDevice` for every device. Drivers populate the
|
|
14
|
+
* slice from `onProbe()` (kernel calls it once after register, before
|
|
15
|
+
* accessory reconciliation). Consumers read via:
|
|
16
|
+
* `runtimeState.getCapState<FeatureProbeStatus>('feature-probe')`
|
|
17
|
+
*
|
|
18
|
+
* `flags` is an open record so each driver carries its own keys without
|
|
19
|
+
* a centralized schema bottleneck — Reolink writes `hasPtz/hasIntercom`,
|
|
20
|
+
* Hikvision writes `hasSupplementalLight/hasAlarmIo`, etc.
|
|
21
|
+
*
|
|
22
|
+
* Replaces the older driver-local `deviceCache.has*` blob: the per-device
|
|
23
|
+
* config is for operator-edited overrides + UI snapshots; runtime probe
|
|
24
|
+
* results belong in runtime-state where the kernel handles persistence,
|
|
25
|
+
* cross-process mirroring, and reactive updates.
|
|
26
|
+
*/
|
|
27
|
+
export declare const FeatureProbeStatusSchema: z.ZodObject<{
|
|
28
|
+
flags: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
29
|
+
deviceType: z.ZodNullable<z.ZodString>;
|
|
30
|
+
model: z.ZodNullable<z.ZodString>;
|
|
31
|
+
channelCount: z.ZodNullable<z.ZodNumber>;
|
|
32
|
+
lastProbedAt: z.ZodNumber;
|
|
33
|
+
lastFetchedAt: z.ZodNumber;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
export type FeatureProbeStatus = z.infer<typeof FeatureProbeStatusSchema>;
|
|
36
|
+
export declare const featureProbeCapability: {
|
|
37
|
+
readonly name: "feature-probe";
|
|
38
|
+
readonly scope: "device";
|
|
39
|
+
readonly mode: "singleton";
|
|
40
|
+
readonly methods: {};
|
|
41
|
+
readonly events: {
|
|
42
|
+
/** Fires whenever a fresh probe completes (kernel-driven `reprobe()`
|
|
43
|
+
* or driver-initiated re-detect after a state change). */
|
|
44
|
+
readonly onProbeChanged: {
|
|
45
|
+
readonly data: z.ZodObject<{
|
|
46
|
+
deviceId: z.ZodNumber;
|
|
47
|
+
status: z.ZodObject<{
|
|
48
|
+
flags: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
49
|
+
deviceType: z.ZodNullable<z.ZodString>;
|
|
50
|
+
model: z.ZodNullable<z.ZodString>;
|
|
51
|
+
channelCount: z.ZodNullable<z.ZodNumber>;
|
|
52
|
+
lastProbedAt: z.ZodNumber;
|
|
53
|
+
lastFetchedAt: z.ZodNumber;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
readonly status: {
|
|
59
|
+
readonly schema: z.ZodObject<{
|
|
60
|
+
flags: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
61
|
+
deviceType: z.ZodNullable<z.ZodString>;
|
|
62
|
+
model: z.ZodNullable<z.ZodString>;
|
|
63
|
+
channelCount: z.ZodNullable<z.ZodNumber>;
|
|
64
|
+
lastProbedAt: z.ZodNumber;
|
|
65
|
+
lastFetchedAt: z.ZodNumber;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
readonly kind: "push";
|
|
68
|
+
};
|
|
69
|
+
readonly runtimeState: z.ZodObject<{
|
|
70
|
+
flags: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
71
|
+
deviceType: z.ZodNullable<z.ZodString>;
|
|
72
|
+
model: z.ZodNullable<z.ZodString>;
|
|
73
|
+
channelCount: z.ZodNullable<z.ZodNumber>;
|
|
74
|
+
lastProbedAt: z.ZodNumber;
|
|
75
|
+
lastFetchedAt: z.ZodNumber;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
};
|
|
78
|
+
export type IFeatureProbeProvider = InferProvider<typeof featureProbeCapability>;
|
|
79
|
+
//# sourceMappingURL=feature-probe.cap.d.ts.map
|