@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,173 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
import type { HwAccelBackend } from '../interfaces/addon.js';
|
|
4
|
+
import { DecoderSessionConfigSchema } from '../interfaces/stream-broker.js';
|
|
5
|
+
/**
|
|
6
|
+
* Operator-facing hwaccel selection — wins over `probedBestHwaccel`
|
|
7
|
+
* when concrete; `'auto'` defers to the session's local resolver
|
|
8
|
+
* (`ctx.kernel.hwaccel`) which probes the host. Shared across every
|
|
9
|
+
* decoder addon (node-av, ffmpeg, …) so UI + settings + sessions all
|
|
10
|
+
* speak the same vocabulary.
|
|
11
|
+
*/
|
|
12
|
+
export type HwAccelChoice = 'auto' | 'none' | HwAccelBackend;
|
|
13
|
+
/**
|
|
14
|
+
* Stable UI option list for the `hwaccel` setting. Decoder addons
|
|
15
|
+
* reuse this for `globalSettingsSchema()` so the dropdown is
|
|
16
|
+
* identical everywhere. Order: auto → off → common backends by
|
|
17
|
+
* platform affinity (macOS, NVIDIA, Intel/AMD, Windows, Linux).
|
|
18
|
+
*/
|
|
19
|
+
export declare const HWACCEL_OPTIONS: ReadonlyArray<{
|
|
20
|
+
value: HwAccelChoice;
|
|
21
|
+
label: string;
|
|
22
|
+
}>;
|
|
23
|
+
/**
|
|
24
|
+
* Shared shape of a decoder addon's global settings. Every decoder
|
|
25
|
+
* owns its own instance (node-av, ffmpeg, future backends) — they
|
|
26
|
+
* don't share a store, but they share this config shape.
|
|
27
|
+
*/
|
|
28
|
+
export interface DecoderHwAccelConfig {
|
|
29
|
+
readonly hwaccel: HwAccelChoice;
|
|
30
|
+
readonly probedBestHwaccel: string;
|
|
31
|
+
}
|
|
32
|
+
export declare const DEFAULT_DECODER_HWACCEL_CONFIG: DecoderHwAccelConfig;
|
|
33
|
+
export declare const decoderCapability: {
|
|
34
|
+
readonly name: "decoder";
|
|
35
|
+
readonly scope: "system";
|
|
36
|
+
readonly mode: "singleton";
|
|
37
|
+
readonly methods: {
|
|
38
|
+
readonly supportsCodec: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
39
|
+
codec: z.ZodString;
|
|
40
|
+
}, z.core.$strip>, z.ZodBoolean, import("./capability-definition.js").CapabilityMethodKind>;
|
|
41
|
+
readonly getInfo: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
|
|
42
|
+
id: z.ZodString;
|
|
43
|
+
name: z.ZodString;
|
|
44
|
+
isPullMode: z.ZodOptional<z.ZodBoolean>;
|
|
45
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
46
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
47
|
+
readonly createSession: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
48
|
+
codec: z.ZodString;
|
|
49
|
+
maxFps: z.ZodDefault<z.ZodNumber>;
|
|
50
|
+
outputFormat: z.ZodDefault<z.ZodEnum<{
|
|
51
|
+
jpeg: "jpeg";
|
|
52
|
+
rgb: "rgb";
|
|
53
|
+
bgr: "bgr";
|
|
54
|
+
yuv420: "yuv420";
|
|
55
|
+
gray: "gray";
|
|
56
|
+
}>>;
|
|
57
|
+
scale: z.ZodDefault<z.ZodNumber>;
|
|
58
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
59
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
61
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
62
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
+
sessionId: z.ZodString;
|
|
64
|
+
nodeId: z.ZodString;
|
|
65
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
66
|
+
readonly destroySession: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
67
|
+
sessionId: z.ZodString;
|
|
68
|
+
}, z.core.$strip>, z.ZodVoid, import("./capability-definition.js").CapabilityMethodKind>;
|
|
69
|
+
readonly pushPacket: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
70
|
+
sessionId: z.ZodString;
|
|
71
|
+
packet: z.ZodObject<{
|
|
72
|
+
type: z.ZodEnum<{
|
|
73
|
+
audio: "audio";
|
|
74
|
+
video: "video";
|
|
75
|
+
}>;
|
|
76
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
77
|
+
pts: z.ZodNumber;
|
|
78
|
+
dts: z.ZodNumber;
|
|
79
|
+
keyframe: z.ZodBoolean;
|
|
80
|
+
codec: z.ZodString;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
}, z.core.$strip>, z.ZodVoid, import("./capability-definition.js").CapabilityMethodKind>;
|
|
83
|
+
readonly openStream: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
84
|
+
sessionId: z.ZodString;
|
|
85
|
+
url: z.ZodString;
|
|
86
|
+
}, z.core.$strip>, z.ZodVoid, import("./capability-definition.js").CapabilityMethodKind>;
|
|
87
|
+
readonly pullFrames: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
88
|
+
sessionId: z.ZodString;
|
|
89
|
+
maxCount: z.ZodDefault<z.ZodNumber>;
|
|
90
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
91
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
92
|
+
width: z.ZodNumber;
|
|
93
|
+
height: z.ZodNumber;
|
|
94
|
+
format: z.ZodEnum<{
|
|
95
|
+
jpeg: "jpeg";
|
|
96
|
+
rgb: "rgb";
|
|
97
|
+
bgr: "bgr";
|
|
98
|
+
yuv420: "yuv420";
|
|
99
|
+
gray: "gray";
|
|
100
|
+
}>;
|
|
101
|
+
timestamp: z.ZodNumber;
|
|
102
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
103
|
+
readonly updateConfig: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
104
|
+
sessionId: z.ZodString;
|
|
105
|
+
config: z.ZodObject<{
|
|
106
|
+
codec: z.ZodOptional<z.ZodString>;
|
|
107
|
+
maxFps: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
108
|
+
outputFormat: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
109
|
+
jpeg: "jpeg";
|
|
110
|
+
rgb: "rgb";
|
|
111
|
+
bgr: "bgr";
|
|
112
|
+
yuv420: "yuv420";
|
|
113
|
+
gray: "gray";
|
|
114
|
+
}>>>;
|
|
115
|
+
scale: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
116
|
+
width: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
117
|
+
height: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
118
|
+
deviceId: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
119
|
+
tag: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
}, z.core.$strip>, z.ZodVoid, import("./capability-definition.js").CapabilityMethodKind>;
|
|
122
|
+
readonly getStats: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
123
|
+
sessionId: z.ZodString;
|
|
124
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
125
|
+
inputFps: z.ZodNumber;
|
|
126
|
+
outputFps: z.ZodNumber;
|
|
127
|
+
avgDecodeTimeMs: z.ZodNumber;
|
|
128
|
+
droppedFrames: z.ZodNumber;
|
|
129
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
130
|
+
readonly listActiveSessions: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
131
|
+
sessionId: z.ZodString;
|
|
132
|
+
codec: z.ZodString;
|
|
133
|
+
outputFormat: z.ZodString;
|
|
134
|
+
createdAtMs: z.ZodNumber;
|
|
135
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
136
|
+
/**
|
|
137
|
+
* Re-run the host platform-probe for the decoder's hwaccel backend
|
|
138
|
+
* and write the detected value into the addon's own global
|
|
139
|
+
* settings (`probedBestHwaccel`). Replaces the legacy per-agent
|
|
140
|
+
* `pipeline-orchestrator.reprobeAgentHwAccel` — each decoder addon
|
|
141
|
+
* now owns its own probe.
|
|
142
|
+
*
|
|
143
|
+
* Returns the backend the probe picked (`'none'` = software-only
|
|
144
|
+
* host, otherwise one of `HwAccelBackend`). The operator's
|
|
145
|
+
* `hwaccel` setting (auto / none / backend) is not touched; only
|
|
146
|
+
* the `probedBestHwaccel` hint.
|
|
147
|
+
*/
|
|
148
|
+
readonly reprobeHwaccel: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
|
|
149
|
+
backend: z.ZodString;
|
|
150
|
+
}, z.core.$strip>, "mutation">;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
export type IDecoderCapProvider = InferProvider<typeof decoderCapability>;
|
|
154
|
+
/**
|
|
155
|
+
* Pure cap-only view of the decoder provider.
|
|
156
|
+
*
|
|
157
|
+
* For the in-process interface with live `createSession()`, `id`, `name`,
|
|
158
|
+
* `priority`, `isPullMode` fields, consumers should import
|
|
159
|
+
* `IDecoderProvider` from `@camstack/types/interfaces/decoder` — that
|
|
160
|
+
* remains the canonical in-process contract the broker + tests depend
|
|
161
|
+
* on. The live `createSession()` + session object cannot cross process
|
|
162
|
+
* boundaries and will need a session-id based cap API (Phase 4, decoder
|
|
163
|
+
* forkable work) — tracked separately, not in scope for session 5
|
|
164
|
+
* Sprint A.
|
|
165
|
+
*
|
|
166
|
+
* Prior to session 5 this alias used to extend the inferred cap type
|
|
167
|
+
* with the live fields, creating a hybrid interface. No consumer ever
|
|
168
|
+
* referenced `IDecoderProviderV2` — the broker, tests, and addon
|
|
169
|
+
* implementations all imported `IDecoderProvider` directly. The
|
|
170
|
+
* extension was therefore dead code and is removed here.
|
|
171
|
+
*/
|
|
172
|
+
export { DecoderSessionConfigSchema };
|
|
173
|
+
//# sourceMappingURL=decoder.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decoder.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/decoder.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAClG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,EACL,0BAA0B,EAE3B,MAAM,gCAAgC,CAAA;AAMvC;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,cAAc,CAAA;AAE5D;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,aAAa,CAAC;IAAE,KAAK,EAAE,aAAa,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAalF,CAAA;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAA;IAC/B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAA;CACnC;AAED,eAAO,MAAM,8BAA8B,EAAE,oBAG5C,CAAA;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA+D1B;;;;;;;;;;;WAWG;;;;;CAOkC,CAAA;AAEzC,MAAM,MAAM,mBAAmB,GAAG,aAAa,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAEzE;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,0BAA0B,EAAE,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type InferProvider } from './capability-definition.js';
|
|
2
|
+
import { DeviceType } from '../device/device-type.js';
|
|
3
|
+
/**
|
|
4
|
+
* detection-pipeline — device-scoped facade over the system
|
|
5
|
+
* `pipeline-executor`.
|
|
6
|
+
*
|
|
7
|
+
* Pairs with `pipeline-executor` (system, singleton) the way
|
|
8
|
+
* `audio-analysis` pairs with `audio-analyzer`: the system cap owns the
|
|
9
|
+
* engine lifecycle (engines, templates, models, runPipeline) while
|
|
10
|
+
* `detection-pipeline` is the per-camera binding row in the
|
|
11
|
+
* device-manager UI.
|
|
12
|
+
*
|
|
13
|
+
* Registered as a wrapper with `defaultActive: true` by
|
|
14
|
+
* `addon-detection-pipeline` so every camera opts into detection
|
|
15
|
+
* automatically. Operators disable per-device via
|
|
16
|
+
* `device-manager.setWrapperActive` — replaces the legacy
|
|
17
|
+
* `pipelineEnabled` / `disableInference` flags previously stored in the
|
|
18
|
+
* orchestrator's device-settings.
|
|
19
|
+
*
|
|
20
|
+
* `exposesDeviceSettings: true` is intentional — the three
|
|
21
|
+
* DeviceSettingsContribution methods auto-added to the provider
|
|
22
|
+
* interface serve the per-device detection settings panel in the admin
|
|
23
|
+
* UI (model selection, class filters, confidence thresholds).
|
|
24
|
+
*/
|
|
25
|
+
export declare const detectionPipelineCapability: {
|
|
26
|
+
readonly name: "detection-pipeline";
|
|
27
|
+
readonly scope: "device";
|
|
28
|
+
readonly mode: "singleton";
|
|
29
|
+
readonly deviceTypes: readonly [DeviceType.Camera];
|
|
30
|
+
readonly exposesDeviceSettings: true;
|
|
31
|
+
readonly methods: {};
|
|
32
|
+
};
|
|
33
|
+
export type IDetectionPipelineProvider = InferProvider<typeof detectionPipelineCapability>;
|
|
34
|
+
//# sourceMappingURL=detection-pipeline.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detection-pipeline.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/detection-pipeline.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1F,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAErD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,2BAA2B;;;;;;;CAOC,CAAA;AAEzC,MAAM,MAAM,0BAA0B,GAAG,aAAa,CAAC,OAAO,2BAA2B,CAAC,CAAA"}
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider, type InferNativeProvider } from './capability-definition.js';
|
|
3
|
+
import { DeviceType } from '../device/device-type.js';
|
|
4
|
+
/**
|
|
5
|
+
* device-discovery — device-scoped capability for parents that host /
|
|
6
|
+
* enumerate child devices (Reolink Hub / NVR, ONVIF gateway, future
|
|
7
|
+
* integrations). Mirrors Scrypted's `DeviceDiscovery` interface
|
|
8
|
+
* (`scrypted-reolink-native/src/nvr.ts:42-44`): the parent advertises
|
|
9
|
+
* a list of discoverable children, and the operator promotes a subset
|
|
10
|
+
* to real devices via `adoptDevice`. Child lifecycle (kernel device
|
|
11
|
+
* create/remove, parent reference) is owned by the framework so a
|
|
12
|
+
* single shared `<DiscoveryPanel />` can drive any integration.
|
|
13
|
+
*
|
|
14
|
+
* Boundaries:
|
|
15
|
+
* - The cap exposes ENUMERATION + ADOPT/RELEASE only. The protocol
|
|
16
|
+
* used to discover children (CGI poll, mDNS, push from hub, ...)
|
|
17
|
+
* is the integration's business; results land in `runtimeState`
|
|
18
|
+
* so the panel can render without a fresh round-trip.
|
|
19
|
+
* - `childNativeId` is integration-defined and must be stable across
|
|
20
|
+
* reboots so re-discovery doesn't duplicate adopted children.
|
|
21
|
+
* - `adoptDevice` returns the new `deviceId` so the UI can navigate
|
|
22
|
+
* directly to the freshly-created child's settings page.
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* Status enum for a discovered device. Mirrors the Reolink simpleEvent
|
|
26
|
+
* lifecycle (`online` / `sleeping` / `offline`) — generic enough for
|
|
27
|
+
* battery cams, awake cams, and unreachable cams alike.
|
|
28
|
+
*/
|
|
29
|
+
export declare const DiscoveredChildStatusSchema: z.ZodEnum<{
|
|
30
|
+
unknown: "unknown";
|
|
31
|
+
sleeping: "sleeping";
|
|
32
|
+
offline: "offline";
|
|
33
|
+
online: "online";
|
|
34
|
+
}>;
|
|
35
|
+
export type DiscoveredChildStatus = z.infer<typeof DiscoveredChildStatusSchema>;
|
|
36
|
+
/**
|
|
37
|
+
* Single discovered child entry. `metadata` is integration-defined
|
|
38
|
+
* but intentionally typed as a closed shape with the most-common
|
|
39
|
+
* camera knobs — keeps the panel renderer dumb without forcing every
|
|
40
|
+
* integration to invent a custom UI.
|
|
41
|
+
*/
|
|
42
|
+
export declare const DiscoveredChildDeviceSchema: z.ZodObject<{
|
|
43
|
+
childNativeId: z.ZodString;
|
|
44
|
+
name: z.ZodString;
|
|
45
|
+
type: z.ZodEnum<typeof DeviceType>;
|
|
46
|
+
status: z.ZodEnum<{
|
|
47
|
+
unknown: "unknown";
|
|
48
|
+
sleeping: "sleeping";
|
|
49
|
+
offline: "offline";
|
|
50
|
+
online: "online";
|
|
51
|
+
}>;
|
|
52
|
+
metadata: z.ZodDefault<z.ZodObject<{
|
|
53
|
+
model: z.ZodOptional<z.ZodString>;
|
|
54
|
+
serialNumber: z.ZodOptional<z.ZodString>;
|
|
55
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
56
|
+
rtspChannel: z.ZodOptional<z.ZodNumber>;
|
|
57
|
+
isBattery: z.ZodOptional<z.ZodBoolean>;
|
|
58
|
+
isDoorbell: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
+
isMultifocal: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
}, z.core.$strip>>;
|
|
61
|
+
alreadyAdopted: z.ZodBoolean;
|
|
62
|
+
adoptedDeviceId: z.ZodNullable<z.ZodNumber>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
export type DiscoveredChildDevice = z.infer<typeof DiscoveredChildDeviceSchema>;
|
|
65
|
+
/**
|
|
66
|
+
* Status block — populated by the integration after each
|
|
67
|
+
* `refreshDiscovery` (or push-driven update). The runtime-state slice
|
|
68
|
+
* is what the panel reads via the per-device proxy; `getStatus`
|
|
69
|
+
* returns the same payload via the codegen'd auto-injection.
|
|
70
|
+
*/
|
|
71
|
+
export declare const DeviceDiscoveryStatusSchema: z.ZodObject<{
|
|
72
|
+
discovered: z.ZodArray<z.ZodObject<{
|
|
73
|
+
childNativeId: z.ZodString;
|
|
74
|
+
name: z.ZodString;
|
|
75
|
+
type: z.ZodEnum<typeof DeviceType>;
|
|
76
|
+
status: z.ZodEnum<{
|
|
77
|
+
unknown: "unknown";
|
|
78
|
+
sleeping: "sleeping";
|
|
79
|
+
offline: "offline";
|
|
80
|
+
online: "online";
|
|
81
|
+
}>;
|
|
82
|
+
metadata: z.ZodDefault<z.ZodObject<{
|
|
83
|
+
model: z.ZodOptional<z.ZodString>;
|
|
84
|
+
serialNumber: z.ZodOptional<z.ZodString>;
|
|
85
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
86
|
+
rtspChannel: z.ZodOptional<z.ZodNumber>;
|
|
87
|
+
isBattery: z.ZodOptional<z.ZodBoolean>;
|
|
88
|
+
isDoorbell: z.ZodOptional<z.ZodBoolean>;
|
|
89
|
+
isMultifocal: z.ZodOptional<z.ZodBoolean>;
|
|
90
|
+
}, z.core.$strip>>;
|
|
91
|
+
alreadyAdopted: z.ZodBoolean;
|
|
92
|
+
adoptedDeviceId: z.ZodNullable<z.ZodNumber>;
|
|
93
|
+
}, z.core.$strip>>;
|
|
94
|
+
lastDiscoveryAt: z.ZodNullable<z.ZodNumber>;
|
|
95
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
export type DeviceDiscoveryStatus = z.infer<typeof DeviceDiscoveryStatusSchema>;
|
|
98
|
+
export declare const deviceDiscoveryCapability: {
|
|
99
|
+
readonly name: "device-discovery";
|
|
100
|
+
readonly scope: "device";
|
|
101
|
+
readonly mode: "singleton";
|
|
102
|
+
readonly deviceTypes: readonly [DeviceType.Hub];
|
|
103
|
+
readonly status: {
|
|
104
|
+
readonly schema: z.ZodObject<{
|
|
105
|
+
discovered: z.ZodArray<z.ZodObject<{
|
|
106
|
+
childNativeId: z.ZodString;
|
|
107
|
+
name: z.ZodString;
|
|
108
|
+
type: z.ZodEnum<typeof DeviceType>;
|
|
109
|
+
status: z.ZodEnum<{
|
|
110
|
+
unknown: "unknown";
|
|
111
|
+
sleeping: "sleeping";
|
|
112
|
+
offline: "offline";
|
|
113
|
+
online: "online";
|
|
114
|
+
}>;
|
|
115
|
+
metadata: z.ZodDefault<z.ZodObject<{
|
|
116
|
+
model: z.ZodOptional<z.ZodString>;
|
|
117
|
+
serialNumber: z.ZodOptional<z.ZodString>;
|
|
118
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
119
|
+
rtspChannel: z.ZodOptional<z.ZodNumber>;
|
|
120
|
+
isBattery: z.ZodOptional<z.ZodBoolean>;
|
|
121
|
+
isDoorbell: z.ZodOptional<z.ZodBoolean>;
|
|
122
|
+
isMultifocal: z.ZodOptional<z.ZodBoolean>;
|
|
123
|
+
}, z.core.$strip>>;
|
|
124
|
+
alreadyAdopted: z.ZodBoolean;
|
|
125
|
+
adoptedDeviceId: z.ZodNullable<z.ZodNumber>;
|
|
126
|
+
}, z.core.$strip>>;
|
|
127
|
+
lastDiscoveryAt: z.ZodNullable<z.ZodNumber>;
|
|
128
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
129
|
+
}, z.core.$strip>;
|
|
130
|
+
readonly kind: "poll";
|
|
131
|
+
};
|
|
132
|
+
readonly runtimeState: z.ZodObject<{
|
|
133
|
+
discovered: z.ZodArray<z.ZodObject<{
|
|
134
|
+
childNativeId: z.ZodString;
|
|
135
|
+
name: z.ZodString;
|
|
136
|
+
type: z.ZodEnum<typeof DeviceType>;
|
|
137
|
+
status: z.ZodEnum<{
|
|
138
|
+
unknown: "unknown";
|
|
139
|
+
sleeping: "sleeping";
|
|
140
|
+
offline: "offline";
|
|
141
|
+
online: "online";
|
|
142
|
+
}>;
|
|
143
|
+
metadata: z.ZodDefault<z.ZodObject<{
|
|
144
|
+
model: z.ZodOptional<z.ZodString>;
|
|
145
|
+
serialNumber: z.ZodOptional<z.ZodString>;
|
|
146
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
147
|
+
rtspChannel: z.ZodOptional<z.ZodNumber>;
|
|
148
|
+
isBattery: z.ZodOptional<z.ZodBoolean>;
|
|
149
|
+
isDoorbell: z.ZodOptional<z.ZodBoolean>;
|
|
150
|
+
isMultifocal: z.ZodOptional<z.ZodBoolean>;
|
|
151
|
+
}, z.core.$strip>>;
|
|
152
|
+
alreadyAdopted: z.ZodBoolean;
|
|
153
|
+
adoptedDeviceId: z.ZodNullable<z.ZodNumber>;
|
|
154
|
+
}, z.core.$strip>>;
|
|
155
|
+
lastDiscoveryAt: z.ZodNullable<z.ZodNumber>;
|
|
156
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
157
|
+
lastFetchedAt: z.ZodNumber;
|
|
158
|
+
}, z.core.$strip>;
|
|
159
|
+
readonly methods: {
|
|
160
|
+
/**
|
|
161
|
+
* Snapshot of the current `discovered` list. Returns the
|
|
162
|
+
* runtime-state cache — call `refreshDiscovery` first if a
|
|
163
|
+
* fresh round-trip to the source is required.
|
|
164
|
+
*/
|
|
165
|
+
readonly listDiscovered: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
166
|
+
deviceId: z.ZodNumber;
|
|
167
|
+
}, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
168
|
+
childNativeId: z.ZodString;
|
|
169
|
+
name: z.ZodString;
|
|
170
|
+
type: z.ZodEnum<typeof DeviceType>;
|
|
171
|
+
status: z.ZodEnum<{
|
|
172
|
+
unknown: "unknown";
|
|
173
|
+
sleeping: "sleeping";
|
|
174
|
+
offline: "offline";
|
|
175
|
+
online: "online";
|
|
176
|
+
}>;
|
|
177
|
+
metadata: z.ZodDefault<z.ZodObject<{
|
|
178
|
+
model: z.ZodOptional<z.ZodString>;
|
|
179
|
+
serialNumber: z.ZodOptional<z.ZodString>;
|
|
180
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
181
|
+
rtspChannel: z.ZodOptional<z.ZodNumber>;
|
|
182
|
+
isBattery: z.ZodOptional<z.ZodBoolean>;
|
|
183
|
+
isDoorbell: z.ZodOptional<z.ZodBoolean>;
|
|
184
|
+
isMultifocal: z.ZodOptional<z.ZodBoolean>;
|
|
185
|
+
}, z.core.$strip>>;
|
|
186
|
+
alreadyAdopted: z.ZodBoolean;
|
|
187
|
+
adoptedDeviceId: z.ZodNullable<z.ZodNumber>;
|
|
188
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
189
|
+
/**
|
|
190
|
+
* Force the integration to re-enumerate and update the
|
|
191
|
+
* runtime-state slice. Returns the freshly-enumerated list (also
|
|
192
|
+
* available via `listDiscovered` post-call).
|
|
193
|
+
*/
|
|
194
|
+
readonly refreshDiscovery: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
195
|
+
deviceId: z.ZodNumber;
|
|
196
|
+
}, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
197
|
+
childNativeId: z.ZodString;
|
|
198
|
+
name: z.ZodString;
|
|
199
|
+
type: z.ZodEnum<typeof DeviceType>;
|
|
200
|
+
status: z.ZodEnum<{
|
|
201
|
+
unknown: "unknown";
|
|
202
|
+
sleeping: "sleeping";
|
|
203
|
+
offline: "offline";
|
|
204
|
+
online: "online";
|
|
205
|
+
}>;
|
|
206
|
+
metadata: z.ZodDefault<z.ZodObject<{
|
|
207
|
+
model: z.ZodOptional<z.ZodString>;
|
|
208
|
+
serialNumber: z.ZodOptional<z.ZodString>;
|
|
209
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
210
|
+
rtspChannel: z.ZodOptional<z.ZodNumber>;
|
|
211
|
+
isBattery: z.ZodOptional<z.ZodBoolean>;
|
|
212
|
+
isDoorbell: z.ZodOptional<z.ZodBoolean>;
|
|
213
|
+
isMultifocal: z.ZodOptional<z.ZodBoolean>;
|
|
214
|
+
}, z.core.$strip>>;
|
|
215
|
+
alreadyAdopted: z.ZodBoolean;
|
|
216
|
+
adoptedDeviceId: z.ZodNullable<z.ZodNumber>;
|
|
217
|
+
}, z.core.$strip>>>, "mutation">;
|
|
218
|
+
/**
|
|
219
|
+
* Promote a discovered entry to a real child device. The framework
|
|
220
|
+
* creates the child via `kernel.devices.create()` with
|
|
221
|
+
* `parentDeviceId = parent.id` and seeds the child's config from
|
|
222
|
+
* `childInitialConfig` (driver-defined; usually carries channel +
|
|
223
|
+
* uid + parent reference). Returns the kernel-assigned numeric id.
|
|
224
|
+
*/
|
|
225
|
+
readonly adoptDevice: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
226
|
+
deviceId: z.ZodNumber;
|
|
227
|
+
childNativeId: z.ZodString;
|
|
228
|
+
name: z.ZodOptional<z.ZodString>;
|
|
229
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
230
|
+
deviceId: z.ZodNumber;
|
|
231
|
+
stableId: z.ZodString;
|
|
232
|
+
}, z.core.$strip>, "mutation">;
|
|
233
|
+
/**
|
|
234
|
+
* Inverse of `adoptDevice`: removes the child device from the
|
|
235
|
+
* kernel registry. The discovered entry remains in the
|
|
236
|
+
* enumeration (status updates resume) so the operator can re-adopt
|
|
237
|
+
* it later without a fresh refresh.
|
|
238
|
+
*/
|
|
239
|
+
readonly releaseDevice: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
240
|
+
deviceId: z.ZodNumber;
|
|
241
|
+
childDeviceId: z.ZodNumber;
|
|
242
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
export type IDeviceDiscoveryProvider = InferProvider<typeof deviceDiscoveryCapability>;
|
|
246
|
+
export type IDeviceDiscoveryNativeProvider = InferNativeProvider<typeof deviceDiscoveryCapability>;
|
|
247
|
+
//# sourceMappingURL=device-discovery.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device-discovery.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/device-discovery.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,KAAK,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAC5H,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAErD;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;;;;EAAuD,CAAA;AAC/F,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAE/E;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;iBA2BtC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAE/E;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;iBAMtC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAE/E,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAiBlC;;;;WAIG;;;;;;;;;;;;;;;;;;;;;;;;;QAKH;;;;WAIG;;;;;;;;;;;;;;;;;;;;;;;;;QAMH;;;;;;WAMG;;;;;;;;;QAcH;;;;;WAKG;;;;;;CAUkC,CAAA;AAEzC,MAAM,MAAM,wBAAwB,GAAG,aAAa,CAAC,OAAO,yBAAyB,CAAC,CAAA;AACtF,MAAM,MAAM,8BAA8B,GAAG,mBAAmB,CAAC,OAAO,yBAAyB,CAAC,CAAA"}
|