@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,709 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Device Manager capability — hub-side singleton that unifies device persistence,
|
|
3
|
+
* live registry access, and all management operations into a single tRPC surface.
|
|
4
|
+
*
|
|
5
|
+
* Replaces:
|
|
6
|
+
* - `device-persistence` capability (persistence methods absorbed here)
|
|
7
|
+
* - `device-management.router.ts` (deleted in Phase 2)
|
|
8
|
+
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
9
|
+
*
|
|
10
|
+
* All device provider addons (rtsp, onvif, frigate, …) are hub-local: they may
|
|
11
|
+
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
12
|
+
* - No nodeId routing needed — this is a pure hub singleton.
|
|
13
|
+
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
14
|
+
* - No shadow registry or cross-node aggregation required.
|
|
15
|
+
*
|
|
16
|
+
* Forked workers register devices back to the hub via `ctx.devices`
|
|
17
|
+
* (DeviceManagerApi → ctx.api.deviceManager.registerDevice), same as today.
|
|
18
|
+
*/
|
|
19
|
+
import { z } from 'zod';
|
|
20
|
+
import { DeviceType } from '../device/device-type.js';
|
|
21
|
+
import { StreamSourceEntrySchema } from './schemas/streaming-shared.js';
|
|
22
|
+
/**
|
|
23
|
+
* Serializable projection of a live IDevice.
|
|
24
|
+
* Returned by listAll, getDevice, getChildren.
|
|
25
|
+
* Live methods (getStreamSources, getConfigSchema) are separate calls.
|
|
26
|
+
*/
|
|
27
|
+
export declare const DeviceInfoSchema: z.ZodObject<{
|
|
28
|
+
id: z.ZodNumber;
|
|
29
|
+
stableId: z.ZodString;
|
|
30
|
+
addonId: z.ZodString;
|
|
31
|
+
type: z.ZodEnum<typeof DeviceType>;
|
|
32
|
+
name: z.ZodString;
|
|
33
|
+
location: z.ZodNullable<z.ZodString>;
|
|
34
|
+
disabled: z.ZodBoolean;
|
|
35
|
+
parentDeviceId: z.ZodNullable<z.ZodNumber>;
|
|
36
|
+
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
online: z.ZodBoolean;
|
|
38
|
+
features: z.ZodArray<z.ZodString>;
|
|
39
|
+
isCamera: z.ZodBoolean;
|
|
40
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
41
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export declare const ConfigEntrySchema: z.ZodObject<{
|
|
44
|
+
key: z.ZodString;
|
|
45
|
+
value: z.ZodUnknown;
|
|
46
|
+
description: z.ZodOptional<z.ZodString>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
export { StreamSourceEntrySchema };
|
|
49
|
+
export declare const SavedDeviceRowSchema: z.ZodObject<{
|
|
50
|
+
id: z.ZodNumber;
|
|
51
|
+
stableId: z.ZodString;
|
|
52
|
+
type: z.ZodString;
|
|
53
|
+
name: z.ZodString;
|
|
54
|
+
location: z.ZodNullable<z.ZodString>;
|
|
55
|
+
disabled: z.ZodBoolean;
|
|
56
|
+
parentDeviceId: z.ZodNullable<z.ZodNumber>;
|
|
57
|
+
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
/** Operator-organisational meta surface — populated by the kernel
|
|
60
|
+
* on `DeviceContext.deviceMeta` so `BaseDevice` can resolve
|
|
61
|
+
* `name` / `location` / `disabled` without subclass schema duplication.
|
|
62
|
+
* Mirrors `DeviceMeta` in `device-management.ts` for the cap wire shape. */
|
|
63
|
+
export declare const DeviceMetaSchema: z.ZodObject<{
|
|
64
|
+
id: z.ZodNumber;
|
|
65
|
+
stableId: z.ZodString;
|
|
66
|
+
addonId: z.ZodString;
|
|
67
|
+
type: z.ZodString;
|
|
68
|
+
name: z.ZodString;
|
|
69
|
+
location: z.ZodNullable<z.ZodString>;
|
|
70
|
+
disabled: z.ZodBoolean;
|
|
71
|
+
parentDeviceId: z.ZodNullable<z.ZodNumber>;
|
|
72
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
export declare const DeviceRegisterPayloadSchema: z.ZodObject<{
|
|
75
|
+
addonId: z.ZodString;
|
|
76
|
+
stableId: z.ZodString;
|
|
77
|
+
id: z.ZodNumber;
|
|
78
|
+
type: z.ZodString;
|
|
79
|
+
name: z.ZodString;
|
|
80
|
+
location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
81
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
82
|
+
parentDeviceId: z.ZodNullable<z.ZodNumber>;
|
|
83
|
+
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
84
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
85
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
export declare const DeviceRemovePayloadSchema: z.ZodObject<{
|
|
88
|
+
deviceId: z.ZodNumber;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
export declare const DevicePersistConfigPayloadSchema: z.ZodObject<{
|
|
91
|
+
deviceId: z.ZodNumber;
|
|
92
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
export declare const deviceManagerCapability: {
|
|
95
|
+
readonly name: "device-manager";
|
|
96
|
+
readonly scope: "system";
|
|
97
|
+
readonly mode: "singleton";
|
|
98
|
+
readonly methods: {
|
|
99
|
+
/** Reserve (or re-resolve) a progressive numeric id for `(addonId, stableId)`.
|
|
100
|
+
* Idempotent: returns the existing id if one is already persisted for the
|
|
101
|
+
* pair. Callers invoke this before `registerDevice` so the live IDevice
|
|
102
|
+
* can bind `id` at construction time through `DeviceContext.id`. */
|
|
103
|
+
readonly allocateDeviceId: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
104
|
+
addonId: z.ZodString;
|
|
105
|
+
stableId: z.ZodString;
|
|
106
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
107
|
+
id: z.ZodNumber;
|
|
108
|
+
}, z.core.$strip>, "mutation">;
|
|
109
|
+
/** Register a device in the DB + in-memory registry. Called by DeviceManagerApi.register(). */
|
|
110
|
+
readonly registerDevice: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
111
|
+
addonId: z.ZodString;
|
|
112
|
+
stableId: z.ZodString;
|
|
113
|
+
id: z.ZodNumber;
|
|
114
|
+
type: z.ZodString;
|
|
115
|
+
name: z.ZodString;
|
|
116
|
+
location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
118
|
+
parentDeviceId: z.ZodNullable<z.ZodNumber>;
|
|
119
|
+
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
120
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
121
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
122
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
123
|
+
/** Remove a device from the DB + in-memory registry. Called by DeviceManagerApi.remove(). */
|
|
124
|
+
readonly removeDevice: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
125
|
+
deviceId: z.ZodNumber;
|
|
126
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
127
|
+
/** Persist device config blob. Called by DeviceConfig.set/setAll(). */
|
|
128
|
+
readonly persistConfig: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
129
|
+
deviceId: z.ZodNumber;
|
|
130
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
131
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
132
|
+
/** Load persisted config for a device. Called at restore time. */
|
|
133
|
+
readonly loadConfig: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
134
|
+
deviceId: z.ZodNumber;
|
|
135
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
136
|
+
/** Load persisted runtime state. Called at device adopt time. */
|
|
137
|
+
readonly loadRuntimeState: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
138
|
+
deviceId: z.ZodNumber;
|
|
139
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
140
|
+
/** Load operator-organisational meta surface for a device. Called by
|
|
141
|
+
* the kernel proxy to populate `DeviceContext.deviceMeta` before
|
|
142
|
+
* the device class constructor runs. Returns `null` when the id
|
|
143
|
+
* doesn't resolve to a persisted row. */
|
|
144
|
+
readonly loadMeta: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
145
|
+
deviceId: z.ZodNumber;
|
|
146
|
+
}, z.core.$strip>, z.ZodNullable<z.ZodObject<{
|
|
147
|
+
id: z.ZodNumber;
|
|
148
|
+
stableId: z.ZodString;
|
|
149
|
+
addonId: z.ZodString;
|
|
150
|
+
type: z.ZodString;
|
|
151
|
+
name: z.ZodString;
|
|
152
|
+
location: z.ZodNullable<z.ZodString>;
|
|
153
|
+
disabled: z.ZodBoolean;
|
|
154
|
+
parentDeviceId: z.ZodNullable<z.ZodNumber>;
|
|
155
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
156
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
157
|
+
/** Update the operator-edited display name. Persists to the meta
|
|
158
|
+
* row + emits `EventCategory.DeviceMetaChanged`. */
|
|
159
|
+
readonly setName: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
160
|
+
deviceId: z.ZodNumber;
|
|
161
|
+
name: z.ZodString;
|
|
162
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
163
|
+
/** Update the operator-organisational location label. `null`
|
|
164
|
+
* clears it. */
|
|
165
|
+
readonly setLocation: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
166
|
+
deviceId: z.ZodNumber;
|
|
167
|
+
location: z.ZodNullable<z.ZodString>;
|
|
168
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
169
|
+
/** Patch the device's hardware-identity metadata blob. Merges
|
|
170
|
+
* `patch` over the current blob (shallow). Value `null` for a
|
|
171
|
+
* given key removes that key. Drivers populate factual fields
|
|
172
|
+
* on first probe (model / firmware / mac / sn / uid); operators
|
|
173
|
+
* can override or augment via the Device Info tab. */
|
|
174
|
+
readonly setMetadata: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
175
|
+
deviceId: z.ZodNumber;
|
|
176
|
+
patch: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
177
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
178
|
+
/** Operator-curated location registry. Returns the union of:
|
|
179
|
+
* (1) labels persisted in the registry via `addLocation`, and
|
|
180
|
+
* (2) labels currently in use on at least one device's
|
|
181
|
+
* `meta.location` field.
|
|
182
|
+
* Sorted case-insensitively + deduped + trimmed of empty strings.
|
|
183
|
+
* Drives the autocomplete in the Device Info location editor. */
|
|
184
|
+
readonly listLocations: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodArray<z.ZodString>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
185
|
+
/** Add a label to the curated location registry. No-op when the
|
|
186
|
+
* label (case-insensitive, trimmed) is already present. Empty
|
|
187
|
+
* / whitespace-only inputs throw. */
|
|
188
|
+
readonly addLocation: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
189
|
+
name: z.ZodString;
|
|
190
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
191
|
+
/** Remove a label from the curated registry. Devices that still
|
|
192
|
+
* reference this label keep their `meta.location` value — the
|
|
193
|
+
* registry is purely a suggestion list. To purge from devices,
|
|
194
|
+
* iterate them and call `setLocation(deviceId, null)`
|
|
195
|
+
* separately (or pass `cascade: true` to do it in one shot). */
|
|
196
|
+
readonly removeLocation: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
197
|
+
name: z.ZodString;
|
|
198
|
+
cascade: z.ZodOptional<z.ZodBoolean>;
|
|
199
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
200
|
+
/** Soft-disable / re-enable the device. Drivers consult
|
|
201
|
+
* `BaseDevice.disabled` to gate lifecycle hooks. */
|
|
202
|
+
readonly setDisabled: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
203
|
+
deviceId: z.ZodNumber;
|
|
204
|
+
disabled: z.ZodBoolean;
|
|
205
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
206
|
+
/** List persisted devices for an addon (DB, for restore). */
|
|
207
|
+
readonly listPersistedByAddon: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
208
|
+
addonId: z.ZodString;
|
|
209
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
210
|
+
id: z.ZodNumber;
|
|
211
|
+
stableId: z.ZodString;
|
|
212
|
+
type: z.ZodString;
|
|
213
|
+
name: z.ZodString;
|
|
214
|
+
location: z.ZodNullable<z.ZodString>;
|
|
215
|
+
disabled: z.ZodBoolean;
|
|
216
|
+
parentDeviceId: z.ZodNullable<z.ZodNumber>;
|
|
217
|
+
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
218
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
219
|
+
/** List all devices (live registry), optionally filtered by addonId. */
|
|
220
|
+
readonly listAll: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
221
|
+
addonId: z.ZodOptional<z.ZodString>;
|
|
222
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
223
|
+
id: z.ZodNumber;
|
|
224
|
+
stableId: z.ZodString;
|
|
225
|
+
addonId: z.ZodString;
|
|
226
|
+
type: z.ZodEnum<typeof DeviceType>;
|
|
227
|
+
name: z.ZodString;
|
|
228
|
+
location: z.ZodNullable<z.ZodString>;
|
|
229
|
+
disabled: z.ZodBoolean;
|
|
230
|
+
parentDeviceId: z.ZodNullable<z.ZodNumber>;
|
|
231
|
+
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
232
|
+
online: z.ZodBoolean;
|
|
233
|
+
features: z.ZodArray<z.ZodString>;
|
|
234
|
+
isCamera: z.ZodBoolean;
|
|
235
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
236
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
237
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
238
|
+
/** Get a single device by numeric deviceId. */
|
|
239
|
+
readonly getDevice: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
240
|
+
deviceId: z.ZodNumber;
|
|
241
|
+
}, z.core.$strip>, z.ZodNullable<z.ZodObject<{
|
|
242
|
+
id: z.ZodNumber;
|
|
243
|
+
stableId: z.ZodString;
|
|
244
|
+
addonId: z.ZodString;
|
|
245
|
+
type: z.ZodEnum<typeof DeviceType>;
|
|
246
|
+
name: z.ZodString;
|
|
247
|
+
location: z.ZodNullable<z.ZodString>;
|
|
248
|
+
disabled: z.ZodBoolean;
|
|
249
|
+
parentDeviceId: z.ZodNullable<z.ZodNumber>;
|
|
250
|
+
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
251
|
+
online: z.ZodBoolean;
|
|
252
|
+
features: z.ZodArray<z.ZodString>;
|
|
253
|
+
isCamera: z.ZodBoolean;
|
|
254
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
255
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
256
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
257
|
+
/** List children of a parent device (by parent numeric id). */
|
|
258
|
+
readonly getChildren: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
259
|
+
parentDeviceId: z.ZodNumber;
|
|
260
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
261
|
+
id: z.ZodNumber;
|
|
262
|
+
stableId: z.ZodString;
|
|
263
|
+
addonId: z.ZodString;
|
|
264
|
+
type: z.ZodEnum<typeof DeviceType>;
|
|
265
|
+
name: z.ZodString;
|
|
266
|
+
location: z.ZodNullable<z.ZodString>;
|
|
267
|
+
disabled: z.ZodBoolean;
|
|
268
|
+
parentDeviceId: z.ZodNullable<z.ZodNumber>;
|
|
269
|
+
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
270
|
+
online: z.ZodBoolean;
|
|
271
|
+
features: z.ZodArray<z.ZodString>;
|
|
272
|
+
isCamera: z.ZodBoolean;
|
|
273
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
274
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
275
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
276
|
+
/** Get stream sources for a camera device. */
|
|
277
|
+
readonly getStreamSources: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
278
|
+
deviceId: z.ZodNumber;
|
|
279
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
280
|
+
id: z.ZodString;
|
|
281
|
+
label: z.ZodString;
|
|
282
|
+
protocol: z.ZodEnum<{
|
|
283
|
+
custom: "custom";
|
|
284
|
+
rtsp: "rtsp";
|
|
285
|
+
rtmp: "rtmp";
|
|
286
|
+
webrtc: "webrtc";
|
|
287
|
+
annexb: "annexb";
|
|
288
|
+
"http-mjpeg": "http-mjpeg";
|
|
289
|
+
}>;
|
|
290
|
+
url: z.ZodOptional<z.ZodString>;
|
|
291
|
+
resolution: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
292
|
+
width: z.ZodNumber;
|
|
293
|
+
height: z.ZodNumber;
|
|
294
|
+
}, z.core.$strip>>>;
|
|
295
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
296
|
+
bitrate: z.ZodOptional<z.ZodNumber>;
|
|
297
|
+
codec: z.ZodOptional<z.ZodString>;
|
|
298
|
+
profileHint: z.ZodOptional<z.ZodEnum<{
|
|
299
|
+
high: "high";
|
|
300
|
+
mid: "mid";
|
|
301
|
+
low: "low";
|
|
302
|
+
}>>;
|
|
303
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
304
|
+
/** Get config entries (key + value + description) for a device. */
|
|
305
|
+
readonly getConfigSchema: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
306
|
+
deviceId: z.ZodNumber;
|
|
307
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
308
|
+
key: z.ZodString;
|
|
309
|
+
value: z.ZodUnknown;
|
|
310
|
+
description: z.ZodOptional<z.ZodString>;
|
|
311
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
312
|
+
/** Get the ConfigUISchema for a device's settings (for admin UI rendering). */
|
|
313
|
+
readonly getSettingsSchema: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
314
|
+
deviceId: z.ZodNumber;
|
|
315
|
+
}, z.core.$strip>, z.ZodNullable<z.ZodUnknown>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
316
|
+
/** Update device config values (partial merge). */
|
|
317
|
+
readonly updateConfig: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
318
|
+
deviceId: z.ZodNumber;
|
|
319
|
+
values: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
320
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
321
|
+
success: z.ZodLiteral<true>;
|
|
322
|
+
}, z.core.$strip>, "mutation">;
|
|
323
|
+
/** Enable a device (writes enabled=true to device config). */
|
|
324
|
+
readonly enable: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
325
|
+
deviceId: z.ZodNumber;
|
|
326
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
327
|
+
success: z.ZodLiteral<true>;
|
|
328
|
+
}, z.core.$strip>, "mutation">;
|
|
329
|
+
/** Disable a device (writes enabled=false to device config). */
|
|
330
|
+
readonly disable: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
331
|
+
deviceId: z.ZodNumber;
|
|
332
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
333
|
+
success: z.ZodLiteral<true>;
|
|
334
|
+
}, z.core.$strip>, "mutation">;
|
|
335
|
+
/** Remove a device and all children: calls device.removeDevice() then removes from registry + DB. */
|
|
336
|
+
readonly remove: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
337
|
+
deviceId: z.ZodNumber;
|
|
338
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
339
|
+
success: z.ZodLiteral<true>;
|
|
340
|
+
}, z.core.$strip>, "mutation">;
|
|
341
|
+
/** Get quality→streamId mapping for a camera. Derived from profileHint if not explicitly set. */
|
|
342
|
+
readonly getStreamProfileMap: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
343
|
+
deviceId: z.ZodNumber;
|
|
344
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
345
|
+
/** Persist quality→streamId mapping in device config under reserved key _profileMap. */
|
|
346
|
+
readonly setStreamProfileMap: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
347
|
+
deviceId: z.ZodNumber;
|
|
348
|
+
profileMap: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
|
|
349
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
350
|
+
success: z.ZodLiteral<true>;
|
|
351
|
+
}, z.core.$strip>, "mutation">;
|
|
352
|
+
/** Run ffprobe on each stream source URL and return metadata. No-op if stream probe unavailable. */
|
|
353
|
+
readonly probeStreams: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
354
|
+
deviceId: z.ZodNumber;
|
|
355
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
356
|
+
streamId: z.ZodString;
|
|
357
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
358
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
359
|
+
codec: z.ZodOptional<z.ZodString>;
|
|
360
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
361
|
+
bitrateKbps: z.ZodOptional<z.ZodNumber>;
|
|
362
|
+
}, z.core.$strip>>, "mutation">;
|
|
363
|
+
/**
|
|
364
|
+
* Return the per-capability binding map for a device. Each entry lists the
|
|
365
|
+
* currently-active provider (native or wrapper) + the underlying native
|
|
366
|
+
* addon id, so consumers can decide routing without re-running discovery.
|
|
367
|
+
*/
|
|
368
|
+
readonly getBindings: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
369
|
+
deviceId: z.ZodNumber;
|
|
370
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
371
|
+
deviceId: z.ZodNumber;
|
|
372
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
373
|
+
capName: z.ZodString;
|
|
374
|
+
kind: z.ZodEnum<{
|
|
375
|
+
native: "native";
|
|
376
|
+
wrapped: "wrapped";
|
|
377
|
+
}>;
|
|
378
|
+
providerAddonId: z.ZodString;
|
|
379
|
+
providerNodeId: z.ZodString;
|
|
380
|
+
nativeAddonId: z.ZodString;
|
|
381
|
+
}, z.core.$strip>>;
|
|
382
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
383
|
+
/**
|
|
384
|
+
* Return the binding map for every device known to the hub. Used by
|
|
385
|
+
* `SystemManager` warm-boot: a single round-trip resolves the
|
|
386
|
+
* routing for the entire fleet so subsequent `sm.getDeviceById(id)`
|
|
387
|
+
* calls are sync. Bindings change rarely (only on wrapper toggle or
|
|
388
|
+
* device add/remove) — clients invalidate via the
|
|
389
|
+
* `capability.binding-changed` event.
|
|
390
|
+
*/
|
|
391
|
+
readonly getAllBindings: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
392
|
+
deviceId: z.ZodNumber;
|
|
393
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
394
|
+
capName: z.ZodString;
|
|
395
|
+
kind: z.ZodEnum<{
|
|
396
|
+
native: "native";
|
|
397
|
+
wrapped: "wrapped";
|
|
398
|
+
}>;
|
|
399
|
+
providerAddonId: z.ZodString;
|
|
400
|
+
providerNodeId: z.ZodString;
|
|
401
|
+
nativeAddonId: z.ZodString;
|
|
402
|
+
}, z.core.$strip>>;
|
|
403
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
404
|
+
/**
|
|
405
|
+
* Activate (or deactivate) a wrapper addon for a (device, cap) pair.
|
|
406
|
+
* Persists the binding via ctx.settings. active=false clears the wrapper
|
|
407
|
+
* (falls back to native if registered).
|
|
408
|
+
*/
|
|
409
|
+
readonly setWrapperActive: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
410
|
+
deviceId: z.ZodNumber;
|
|
411
|
+
capName: z.ZodString;
|
|
412
|
+
wrapperAddonId: z.ZodString;
|
|
413
|
+
active: z.ZodBoolean;
|
|
414
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
415
|
+
/**
|
|
416
|
+
* Return the addon ids that declared a wrapper provider for `capName`.
|
|
417
|
+
* Backs the device-bindings UI's wrapper-picker dropdown. Entries are
|
|
418
|
+
* sourced from `CapabilityRegistry.wrapperProviders`, populated at
|
|
419
|
+
* `ProviderRegistration.kind === 'wrapper'` time.
|
|
420
|
+
*/
|
|
421
|
+
readonly listWrappersForCap: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
422
|
+
capName: z.ZodString;
|
|
423
|
+
}, z.core.$strip>, z.ZodArray<z.ZodString>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
424
|
+
/**
|
|
425
|
+
* Return every device-scoped capability name that applies to a
|
|
426
|
+
* deviceType (scope:'device' + deviceTypes includes the given type),
|
|
427
|
+
* paired with the wrappers that can provide it. Backs the device
|
|
428
|
+
* bindings UI so it can show rows for bindable caps even when no
|
|
429
|
+
* native is registered yet — the user can still activate a wrapper
|
|
430
|
+
* to light the cap up (e.g. snapshot via ffmpeg fallback for a camera
|
|
431
|
+
* without `snapshotUrl`).
|
|
432
|
+
*/
|
|
433
|
+
readonly listBindableCapsForDeviceType: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
434
|
+
deviceType: z.ZodString;
|
|
435
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
436
|
+
capName: z.ZodString;
|
|
437
|
+
wrappers: z.ZodArray<z.ZodString>;
|
|
438
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
439
|
+
readonly getDeviceSettingsAggregate: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
440
|
+
deviceId: z.ZodNumber;
|
|
441
|
+
}, z.core.$strip>, z.ZodNullable<z.ZodObject<{
|
|
442
|
+
tabs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
443
|
+
id: z.ZodString;
|
|
444
|
+
label: z.ZodString;
|
|
445
|
+
icon: z.ZodString;
|
|
446
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
447
|
+
}, z.core.$strip>>>;
|
|
448
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
449
|
+
id: z.ZodString;
|
|
450
|
+
title: z.ZodString;
|
|
451
|
+
description: z.ZodOptional<z.ZodString>;
|
|
452
|
+
style: z.ZodOptional<z.ZodEnum<{
|
|
453
|
+
card: "card";
|
|
454
|
+
accordion: "accordion";
|
|
455
|
+
}>>;
|
|
456
|
+
defaultCollapsed: z.ZodOptional<z.ZodBoolean>;
|
|
457
|
+
columns: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>;
|
|
458
|
+
tab: z.ZodOptional<z.ZodString>;
|
|
459
|
+
location: z.ZodOptional<z.ZodEnum<{
|
|
460
|
+
settings: "settings";
|
|
461
|
+
"top-tab": "top-tab";
|
|
462
|
+
}>>;
|
|
463
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
464
|
+
fields: z.ZodArray<z.ZodAny>;
|
|
465
|
+
}, z.core.$strip>>;
|
|
466
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
467
|
+
readonly getDeviceLiveInfoAggregate: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
468
|
+
deviceId: z.ZodNumber;
|
|
469
|
+
}, z.core.$strip>, z.ZodNullable<z.ZodObject<{
|
|
470
|
+
tabs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
471
|
+
id: z.ZodString;
|
|
472
|
+
label: z.ZodString;
|
|
473
|
+
icon: z.ZodString;
|
|
474
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
475
|
+
}, z.core.$strip>>>;
|
|
476
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
477
|
+
id: z.ZodString;
|
|
478
|
+
title: z.ZodString;
|
|
479
|
+
description: z.ZodOptional<z.ZodString>;
|
|
480
|
+
style: z.ZodOptional<z.ZodEnum<{
|
|
481
|
+
card: "card";
|
|
482
|
+
accordion: "accordion";
|
|
483
|
+
}>>;
|
|
484
|
+
defaultCollapsed: z.ZodOptional<z.ZodBoolean>;
|
|
485
|
+
columns: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>;
|
|
486
|
+
tab: z.ZodOptional<z.ZodString>;
|
|
487
|
+
location: z.ZodOptional<z.ZodEnum<{
|
|
488
|
+
settings: "settings";
|
|
489
|
+
"top-tab": "top-tab";
|
|
490
|
+
}>>;
|
|
491
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
492
|
+
fields: z.ZodArray<z.ZodAny>;
|
|
493
|
+
}, z.core.$strip>>;
|
|
494
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
495
|
+
/**
|
|
496
|
+
* Unified entry point — returns both settings + live in a single call
|
|
497
|
+
* so the admin UI pulls the whole device-details panel with one round-
|
|
498
|
+
* trip instead of firing two parallel queries. The `live` field is the
|
|
499
|
+
* polled portion; the UI re-fetches the whole aggregate at the live
|
|
500
|
+
* cadence and uses the `settings` slice verbatim until the user
|
|
501
|
+
* writes through `updateDeviceFieldsBatch`.
|
|
502
|
+
*/
|
|
503
|
+
readonly getDeviceAggregate: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
504
|
+
deviceId: z.ZodNumber;
|
|
505
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
506
|
+
settings: z.ZodNullable<z.ZodObject<{
|
|
507
|
+
tabs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
508
|
+
id: z.ZodString;
|
|
509
|
+
label: z.ZodString;
|
|
510
|
+
icon: z.ZodString;
|
|
511
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
512
|
+
}, z.core.$strip>>>;
|
|
513
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
514
|
+
id: z.ZodString;
|
|
515
|
+
title: z.ZodString;
|
|
516
|
+
description: z.ZodOptional<z.ZodString>;
|
|
517
|
+
style: z.ZodOptional<z.ZodEnum<{
|
|
518
|
+
card: "card";
|
|
519
|
+
accordion: "accordion";
|
|
520
|
+
}>>;
|
|
521
|
+
defaultCollapsed: z.ZodOptional<z.ZodBoolean>;
|
|
522
|
+
columns: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>;
|
|
523
|
+
tab: z.ZodOptional<z.ZodString>;
|
|
524
|
+
location: z.ZodOptional<z.ZodEnum<{
|
|
525
|
+
settings: "settings";
|
|
526
|
+
"top-tab": "top-tab";
|
|
527
|
+
}>>;
|
|
528
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
529
|
+
fields: z.ZodArray<z.ZodAny>;
|
|
530
|
+
}, z.core.$strip>>;
|
|
531
|
+
}, z.core.$strip>>;
|
|
532
|
+
live: z.ZodNullable<z.ZodObject<{
|
|
533
|
+
tabs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
534
|
+
id: z.ZodString;
|
|
535
|
+
label: z.ZodString;
|
|
536
|
+
icon: z.ZodString;
|
|
537
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
538
|
+
}, z.core.$strip>>>;
|
|
539
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
540
|
+
id: z.ZodString;
|
|
541
|
+
title: z.ZodString;
|
|
542
|
+
description: z.ZodOptional<z.ZodString>;
|
|
543
|
+
style: z.ZodOptional<z.ZodEnum<{
|
|
544
|
+
card: "card";
|
|
545
|
+
accordion: "accordion";
|
|
546
|
+
}>>;
|
|
547
|
+
defaultCollapsed: z.ZodOptional<z.ZodBoolean>;
|
|
548
|
+
columns: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>;
|
|
549
|
+
tab: z.ZodOptional<z.ZodString>;
|
|
550
|
+
location: z.ZodOptional<z.ZodEnum<{
|
|
551
|
+
settings: "settings";
|
|
552
|
+
"top-tab": "top-tab";
|
|
553
|
+
}>>;
|
|
554
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
555
|
+
fields: z.ZodArray<z.ZodAny>;
|
|
556
|
+
}, z.core.$strip>>;
|
|
557
|
+
}, z.core.$strip>>;
|
|
558
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
559
|
+
readonly updateDeviceField: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
560
|
+
deviceId: z.ZodNumber;
|
|
561
|
+
writerCapName: z.ZodString;
|
|
562
|
+
writerAddonId: z.ZodString;
|
|
563
|
+
key: z.ZodString;
|
|
564
|
+
value: z.ZodUnknown;
|
|
565
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
566
|
+
success: z.ZodLiteral<true>;
|
|
567
|
+
}, z.core.$strip>, "mutation">;
|
|
568
|
+
/**
|
|
569
|
+
* Batched counterpart of `updateDeviceField` — the admin UI groups
|
|
570
|
+
* per-provider changes so a single round-trip triggers at most one
|
|
571
|
+
* `applyDeviceSettingsPatch` per `(capName, addonId)` tuple. Per-patch
|
|
572
|
+
* failures are reported in `failures[]` without aborting the others;
|
|
573
|
+
* consumers inspect the list and surface targeted errors.
|
|
574
|
+
*/
|
|
575
|
+
readonly updateDeviceFieldsBatch: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
576
|
+
deviceId: z.ZodNumber;
|
|
577
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
578
|
+
writerCapName: z.ZodString;
|
|
579
|
+
writerAddonId: z.ZodString;
|
|
580
|
+
key: z.ZodString;
|
|
581
|
+
value: z.ZodUnknown;
|
|
582
|
+
}, z.core.$strip>>;
|
|
583
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
584
|
+
success: z.ZodLiteral<true>;
|
|
585
|
+
failures: z.ZodArray<z.ZodObject<{
|
|
586
|
+
writerCapName: z.ZodString;
|
|
587
|
+
writerAddonId: z.ZodString;
|
|
588
|
+
error: z.ZodString;
|
|
589
|
+
}, z.core.$strip>>;
|
|
590
|
+
}, z.core.$strip>, "mutation">;
|
|
591
|
+
/** Trigger device discovery on a device-provider addon. */
|
|
592
|
+
readonly discoverDevices: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
593
|
+
addonId: z.ZodString;
|
|
594
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
595
|
+
stableId: z.ZodString;
|
|
596
|
+
type: z.ZodEnum<typeof DeviceType>;
|
|
597
|
+
suggestedName: z.ZodString;
|
|
598
|
+
prefilledConfig: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
599
|
+
}, z.core.$strip>>, "mutation">;
|
|
600
|
+
/** Adopt a discovered device via the device-provider capability. */
|
|
601
|
+
readonly adoptDevice: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
602
|
+
addonId: z.ZodString;
|
|
603
|
+
candidate: z.ZodObject<{
|
|
604
|
+
stableId: z.ZodString;
|
|
605
|
+
type: z.ZodEnum<typeof DeviceType>;
|
|
606
|
+
suggestedName: z.ZodString;
|
|
607
|
+
prefilledConfig: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
608
|
+
}, z.core.$strip>;
|
|
609
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
610
|
+
id: z.ZodNumber;
|
|
611
|
+
stableId: z.ZodString;
|
|
612
|
+
addonId: z.ZodString;
|
|
613
|
+
type: z.ZodString;
|
|
614
|
+
name: z.ZodString;
|
|
615
|
+
parentDeviceId: z.ZodNullable<z.ZodNumber>;
|
|
616
|
+
online: z.ZodBoolean;
|
|
617
|
+
features: z.ZodArray<z.ZodString>;
|
|
618
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
619
|
+
}, z.core.$strip>, "mutation">;
|
|
620
|
+
/**
|
|
621
|
+
* Get the creation form schema (ConfigUISchema) for a device type from a provider.
|
|
622
|
+
* Returns null when the provider does not support manual creation.
|
|
623
|
+
*/
|
|
624
|
+
readonly getCreationSchema: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
625
|
+
addonId: z.ZodString;
|
|
626
|
+
type: z.ZodEnum<typeof DeviceType>;
|
|
627
|
+
}, z.core.$strip>, z.ZodNullable<z.ZodUnknown>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
628
|
+
/** Create a new device via the device-provider capability. */
|
|
629
|
+
readonly createDevice: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
630
|
+
addonId: z.ZodString;
|
|
631
|
+
type: z.ZodEnum<typeof DeviceType>;
|
|
632
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
633
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
634
|
+
id: z.ZodNumber;
|
|
635
|
+
stableId: z.ZodString;
|
|
636
|
+
addonId: z.ZodString;
|
|
637
|
+
type: z.ZodString;
|
|
638
|
+
name: z.ZodString;
|
|
639
|
+
parentDeviceId: z.ZodNullable<z.ZodNumber>;
|
|
640
|
+
online: z.ZodBoolean;
|
|
641
|
+
features: z.ZodArray<z.ZodString>;
|
|
642
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
643
|
+
}, z.core.$strip>, "mutation">;
|
|
644
|
+
/**
|
|
645
|
+
* Test a single form field value during device creation (no device
|
|
646
|
+
* exists yet). `formValues` carries the live snapshot of every
|
|
647
|
+
* field in the form so probes that depend on multiple fields (e.g.
|
|
648
|
+
* Reolink autodetect needs host + credentials + UID together) can
|
|
649
|
+
* run without a separate round-trip per field. Optional for
|
|
650
|
+
* backwards compatibility.
|
|
651
|
+
*/
|
|
652
|
+
readonly testCreationField: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
653
|
+
addonId: z.ZodString;
|
|
654
|
+
type: z.ZodEnum<typeof DeviceType>;
|
|
655
|
+
key: z.ZodString;
|
|
656
|
+
value: z.ZodUnknown;
|
|
657
|
+
formValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
658
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
659
|
+
status: z.ZodEnum<{
|
|
660
|
+
error: "error";
|
|
661
|
+
ok: "ok";
|
|
662
|
+
}>;
|
|
663
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
664
|
+
error: z.ZodOptional<z.ZodString>;
|
|
665
|
+
}, z.core.$strip>, "mutation">;
|
|
666
|
+
/**
|
|
667
|
+
* Test a field value on an existing device (e.g. probe an RTSP URL).
|
|
668
|
+
* Routes through the device-provider for the owning addon.
|
|
669
|
+
*/
|
|
670
|
+
readonly testField: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
671
|
+
deviceId: z.ZodNumber;
|
|
672
|
+
key: z.ZodString;
|
|
673
|
+
value: z.ZodUnknown;
|
|
674
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
675
|
+
status: z.ZodEnum<{
|
|
676
|
+
error: "error";
|
|
677
|
+
ok: "ok";
|
|
678
|
+
}>;
|
|
679
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
680
|
+
error: z.ZodOptional<z.ZodString>;
|
|
681
|
+
}, z.core.$strip>, "mutation">;
|
|
682
|
+
/**
|
|
683
|
+
* Aggregate status snapshot across every cap registered for a
|
|
684
|
+
* device. Returns a flat map `{ capName: status | null }` where
|
|
685
|
+
* `status` is whatever `capDef.status.schema` validates to — or
|
|
686
|
+
* `null` when no provider for that cap is registered on the
|
|
687
|
+
* device, or the provider returned null, or the returned value
|
|
688
|
+
* failed validation.
|
|
689
|
+
*
|
|
690
|
+
* `caps` is a positional tuple of cap names. The runtime only
|
|
691
|
+
* returns entries for caps that are KNOWN to the system (validated
|
|
692
|
+
* against `CAP_NAMES_WITH_STATUS` at call time); unknown names are
|
|
693
|
+
* silently skipped. The client-side hook narrows the return type
|
|
694
|
+
* using `CapStatusTypeMap` so the TS-inferred shape matches the
|
|
695
|
+
* runtime shape.
|
|
696
|
+
*
|
|
697
|
+
* When `caps` is omitted, the server returns status for EVERY
|
|
698
|
+
* registered cap on the device. Use this only for debug / overview
|
|
699
|
+
* pages — it's O(N caps) per call.
|
|
700
|
+
*/
|
|
701
|
+
readonly getDeviceStatusAggregate: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
702
|
+
deviceId: z.ZodNumber;
|
|
703
|
+
caps: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
704
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodUnknown>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
705
|
+
};
|
|
706
|
+
};
|
|
707
|
+
export type IDeviceManagerProvider = import('./capability-definition.js').InferProvider<typeof deviceManagerCapability>;
|
|
708
|
+
export type DeviceInfo = z.infer<typeof DeviceInfoSchema>;
|
|
709
|
+
//# sourceMappingURL=device-manager.cap.d.ts.map
|