@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,78 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
import { DeviceType } from '../device/device-type.js';
|
|
4
|
+
/**
|
|
5
|
+
* Motion-trigger toggle for accessory devices.
|
|
6
|
+
*
|
|
7
|
+
* "Motion trigger" means: when the parent camera detects motion, the
|
|
8
|
+
* accessory activates automatically. The cap exposes a single boolean
|
|
9
|
+
* — `enabled` — that drivers map to the vendor-specific firmware
|
|
10
|
+
* action (Reolink: `setSirenOnMotion`, `setFloodlightOnMotion`; ONVIF
|
|
11
|
+
* relay: schedule binding; …).
|
|
12
|
+
*
|
|
13
|
+
* The accessory still has its own `switch` cap for direct on/off; this
|
|
14
|
+
* cap is independent. Toggling motion-trigger on does NOT necessarily
|
|
15
|
+
* toggle the switch on — it just instructs the firmware to flip the
|
|
16
|
+
* switch when motion fires.
|
|
17
|
+
*
|
|
18
|
+
* Driver-specific knobs (motion duration window, brightness while
|
|
19
|
+
* triggered, schedule windows) live in the device's
|
|
20
|
+
* `getSettingsUISchema()` instead of bloating this cap — same
|
|
21
|
+
* principle as `switch` and `brightness` keeping their surface
|
|
22
|
+
* minimal.
|
|
23
|
+
*/
|
|
24
|
+
export declare const MotionTriggerStatusSchema: z.ZodObject<{
|
|
25
|
+
enabled: z.ZodBoolean;
|
|
26
|
+
lastChangedAt: z.ZodNumber;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export type MotionTriggerStatus = z.infer<typeof MotionTriggerStatusSchema>;
|
|
29
|
+
/**
|
|
30
|
+
* Persistent slice mirrored across restarts. The provider writes here
|
|
31
|
+
* on every successful firmware fetch / setMotionTrigger push; the cap
|
|
32
|
+
* router and admin-ui hero read straight from this snapshot via
|
|
33
|
+
* `device.state.motionTrigger.value` instead of re-issuing a firmware
|
|
34
|
+
* round-trip on every UI mount. `lastFetchedAt` lets the framework
|
|
35
|
+
* helper (`createRuntimeStateBridge`) stale-check before deciding
|
|
36
|
+
* whether to refresh from the camera.
|
|
37
|
+
*/
|
|
38
|
+
export declare const MotionTriggerRuntimeStateSchema: z.ZodObject<{
|
|
39
|
+
enabled: z.ZodBoolean;
|
|
40
|
+
lastChangedAt: z.ZodNumber;
|
|
41
|
+
lastFetchedAt: z.ZodNumber;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export type MotionTriggerRuntimeState = z.infer<typeof MotionTriggerRuntimeStateSchema>;
|
|
44
|
+
export declare const motionTriggerCapability: {
|
|
45
|
+
readonly name: "motion-trigger";
|
|
46
|
+
readonly scope: "device";
|
|
47
|
+
readonly mode: "singleton";
|
|
48
|
+
readonly deviceTypes: readonly [DeviceType.Light, DeviceType.Siren, DeviceType.Switch];
|
|
49
|
+
readonly methods: {
|
|
50
|
+
readonly setMotionTrigger: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
51
|
+
deviceId: z.ZodNumber;
|
|
52
|
+
enabled: z.ZodBoolean;
|
|
53
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
54
|
+
};
|
|
55
|
+
readonly events: {
|
|
56
|
+
readonly onMotionTriggerChanged: {
|
|
57
|
+
readonly data: z.ZodObject<{
|
|
58
|
+
deviceId: z.ZodNumber;
|
|
59
|
+
enabled: z.ZodBoolean;
|
|
60
|
+
lastChangedAt: z.ZodNumber;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
readonly status: {
|
|
65
|
+
readonly schema: z.ZodObject<{
|
|
66
|
+
enabled: z.ZodBoolean;
|
|
67
|
+
lastChangedAt: z.ZodNumber;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
readonly kind: "command-driven";
|
|
70
|
+
};
|
|
71
|
+
readonly runtimeState: z.ZodObject<{
|
|
72
|
+
enabled: z.ZodBoolean;
|
|
73
|
+
lastChangedAt: z.ZodNumber;
|
|
74
|
+
lastFetchedAt: z.ZodNumber;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
};
|
|
77
|
+
export type IMotionTriggerProvider = InferProvider<typeof motionTriggerCapability>;
|
|
78
|
+
//# sourceMappingURL=motion-trigger.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"motion-trigger.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/motion-trigger.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAClG,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAErD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,yBAAyB;;;iBAIpC,CAAA;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAE3E;;;;;;;;GAQG;AACH,eAAO,MAAM,+BAA+B;;;;iBAG1C,CAAA;AAEF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAEvF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BK,CAAA;AAEzC,MAAM,MAAM,sBAAsB,GAAG,aAAa,CAAC,OAAO,uBAAuB,CAAC,CAAA"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
import { DeviceType } from '../device/device-type.js';
|
|
4
|
+
/**
|
|
5
|
+
* Hardware / firmware motion sensor cap — binary detected state plus
|
|
6
|
+
* a timestamp of the last observation. Distinct from
|
|
7
|
+
* `motion-detection.cap.ts` which owns the LOCAL ML motion pipeline;
|
|
8
|
+
* `motion` is the lightweight readout from on-camera motion (Reolink
|
|
9
|
+
* `GetMdState`, Baichuan push `type: motion`, ONVIF analytics).
|
|
10
|
+
*
|
|
11
|
+
* Native-motion providers also fan out to `detection.camera-native`
|
|
12
|
+
* with `source: 'onboard'` so cross-cutting system services
|
|
13
|
+
* (alert-center, advanced-notifier) can subscribe once and receive
|
|
14
|
+
* motion from every camera.
|
|
15
|
+
*/
|
|
16
|
+
export declare const MotionStatusSchema: z.ZodObject<{
|
|
17
|
+
detected: z.ZodBoolean;
|
|
18
|
+
lastDetectedAt: z.ZodNullable<z.ZodNumber>;
|
|
19
|
+
autoClearAfterMs: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export type MotionStatus = z.infer<typeof MotionStatusSchema>;
|
|
22
|
+
/**
|
|
23
|
+
* Payload of `motion.onMotionChanged` event + the corresponding bus
|
|
24
|
+
* event `EventCategory.MotionOnMotionChanged`. Single source of truth
|
|
25
|
+
* — both the cap event surface and the bus payload type alias to this
|
|
26
|
+
* schema.
|
|
27
|
+
*/
|
|
28
|
+
export declare const MotionOnMotionChangedDataSchema: z.ZodObject<{
|
|
29
|
+
deviceId: z.ZodNumber;
|
|
30
|
+
detected: z.ZodBoolean;
|
|
31
|
+
timestamp: z.ZodNumber;
|
|
32
|
+
source: z.ZodEnum<{
|
|
33
|
+
onboard: "onboard";
|
|
34
|
+
analyzer: "analyzer";
|
|
35
|
+
}>;
|
|
36
|
+
regions: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
37
|
+
bbox: z.ZodObject<{
|
|
38
|
+
x: z.ZodNumber;
|
|
39
|
+
y: z.ZodNumber;
|
|
40
|
+
w: z.ZodNumber;
|
|
41
|
+
h: z.ZodNumber;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
pixelCount: z.ZodNumber;
|
|
44
|
+
intensity: z.ZodNumber;
|
|
45
|
+
}, z.core.$strip>>>>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
export type MotionOnMotionChangedData = z.infer<typeof MotionOnMotionChangedDataSchema>;
|
|
48
|
+
export declare const motionCapability: {
|
|
49
|
+
readonly name: "motion";
|
|
50
|
+
readonly scope: "device";
|
|
51
|
+
readonly mode: "singleton";
|
|
52
|
+
readonly deviceTypes: readonly [DeviceType.Camera, DeviceType.Sensor];
|
|
53
|
+
readonly methods: {
|
|
54
|
+
/**
|
|
55
|
+
* Pull the current motion state synchronously. Convenience shortcut
|
|
56
|
+
* for consumers that don't need the full status object; equivalent
|
|
57
|
+
* to `getStatus()?.detected ?? false`. Will likely be folded into
|
|
58
|
+
* `getStatus` once the auto-injected status surface lands in every
|
|
59
|
+
* consumer.
|
|
60
|
+
*/
|
|
61
|
+
readonly isDetected: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
62
|
+
deviceId: z.ZodNumber;
|
|
63
|
+
}, z.core.$strip>, z.ZodBoolean, import("./capability-definition.js").CapabilityMethodKind>;
|
|
64
|
+
};
|
|
65
|
+
readonly events: {
|
|
66
|
+
/**
|
|
67
|
+
* Fires every time the runner transitions a camera between
|
|
68
|
+
* `watching` and `active` phases. `source` carries which motion
|
|
69
|
+
* path drove the transition; `regions` is populated only for
|
|
70
|
+
* `source: 'analyzer'` (frame-diff regions from the ML motion
|
|
71
|
+
* detector) — onboard sources don't carry per-frame regions
|
|
72
|
+
* here (camera-provided zones / AI metadata live in dedicated
|
|
73
|
+
* channels: `detection.camera-native`, future zone capability).
|
|
74
|
+
*
|
|
75
|
+
* Consumers that want all motion pushes (even with `detected`
|
|
76
|
+
* unchanged) should subscribe to the status subscription via
|
|
77
|
+
* `device-manager.subscribeDeviceStatusAggregate` instead.
|
|
78
|
+
*/
|
|
79
|
+
readonly onMotionChanged: {
|
|
80
|
+
readonly data: z.ZodObject<{
|
|
81
|
+
deviceId: z.ZodNumber;
|
|
82
|
+
detected: z.ZodBoolean;
|
|
83
|
+
timestamp: z.ZodNumber;
|
|
84
|
+
source: z.ZodEnum<{
|
|
85
|
+
onboard: "onboard";
|
|
86
|
+
analyzer: "analyzer";
|
|
87
|
+
}>;
|
|
88
|
+
regions: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
89
|
+
bbox: z.ZodObject<{
|
|
90
|
+
x: z.ZodNumber;
|
|
91
|
+
y: z.ZodNumber;
|
|
92
|
+
w: z.ZodNumber;
|
|
93
|
+
h: z.ZodNumber;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
pixelCount: z.ZodNumber;
|
|
96
|
+
intensity: z.ZodNumber;
|
|
97
|
+
}, z.core.$strip>>>>;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
readonly status: {
|
|
102
|
+
readonly schema: z.ZodObject<{
|
|
103
|
+
detected: z.ZodBoolean;
|
|
104
|
+
lastDetectedAt: z.ZodNullable<z.ZodNumber>;
|
|
105
|
+
autoClearAfterMs: z.ZodNullable<z.ZodNumber>;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
readonly kind: "push";
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Runtime-state slice — the last observed motion snapshot, mirrored
|
|
111
|
+
* by the kernel and readable cross-process via
|
|
112
|
+
* `device.state.motion.value`. Reads never invoke the provider, so
|
|
113
|
+
* UIs and other addons can poll the cached state safely.
|
|
114
|
+
*/
|
|
115
|
+
readonly runtimeState: z.ZodObject<{
|
|
116
|
+
detected: z.ZodBoolean;
|
|
117
|
+
lastDetectedAt: z.ZodNullable<z.ZodNumber>;
|
|
118
|
+
autoClearAfterMs: z.ZodNullable<z.ZodNumber>;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
};
|
|
121
|
+
export type IMotionProvider = InferProvider<typeof motionCapability>;
|
|
122
|
+
//# sourceMappingURL=motion.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"motion.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/motion.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAClG,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAIrD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kBAAkB;;;;iBAU7B,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAE7D;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;iBAM1C,CAAA;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAEvF,eAAO,MAAM,gBAAgB;;;;;;QAMzB;;;;;;WAMG;;;;;;QAOH;;;;;;;;;;;;WAYG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAOL;;;;;OAKG;;;;;;CAEoC,CAAA;AAEzC,MAAM,MAAM,eAAe,GAAG,aAAa,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
import { DeviceType } from '../device/device-type.js';
|
|
4
|
+
/**
|
|
5
|
+
* On-camera AI object detection cap. Surfaces per-device the classes
|
|
6
|
+
* the firmware can detect and the last-seen instance of each. The
|
|
7
|
+
* provider also fan-outs these to the global `detection.camera-native`
|
|
8
|
+
* event bus with `source: 'onboard'` so cross-cutting system services
|
|
9
|
+
* (alert-center, advanced-notifier, recording-engine) can subscribe
|
|
10
|
+
* once and receive events from every camera.
|
|
11
|
+
*
|
|
12
|
+
* Distinct from `motion-detection` (ML pipeline) and `motion` (hardware
|
|
13
|
+
* PIR or firmware motion pulse): this cap is specifically the AI
|
|
14
|
+
* classifier output coming FROM the camera, not the local pipeline.
|
|
15
|
+
*/
|
|
16
|
+
export declare const NativeObjectClassEnum: z.ZodEnum<{
|
|
17
|
+
person: "person";
|
|
18
|
+
vehicle: "vehicle";
|
|
19
|
+
animal: "animal";
|
|
20
|
+
face: "face";
|
|
21
|
+
other: "other";
|
|
22
|
+
package: "package";
|
|
23
|
+
}>;
|
|
24
|
+
export type NativeObjectClass = z.infer<typeof NativeObjectClassEnum>;
|
|
25
|
+
export declare const NativeDetectionSchema: z.ZodObject<{
|
|
26
|
+
class: z.ZodEnum<{
|
|
27
|
+
person: "person";
|
|
28
|
+
vehicle: "vehicle";
|
|
29
|
+
animal: "animal";
|
|
30
|
+
face: "face";
|
|
31
|
+
other: "other";
|
|
32
|
+
package: "package";
|
|
33
|
+
}>;
|
|
34
|
+
timestamp: z.ZodNumber;
|
|
35
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export type NativeDetection = z.infer<typeof NativeDetectionSchema>;
|
|
38
|
+
export declare const NativeObjectDetectionStatusSchema: z.ZodObject<{
|
|
39
|
+
lastByClass: z.ZodRecord<z.ZodEnum<{
|
|
40
|
+
person: "person";
|
|
41
|
+
vehicle: "vehicle";
|
|
42
|
+
animal: "animal";
|
|
43
|
+
face: "face";
|
|
44
|
+
other: "other";
|
|
45
|
+
package: "package";
|
|
46
|
+
}>, z.ZodNullable<z.ZodObject<{
|
|
47
|
+
class: z.ZodEnum<{
|
|
48
|
+
person: "person";
|
|
49
|
+
vehicle: "vehicle";
|
|
50
|
+
animal: "animal";
|
|
51
|
+
face: "face";
|
|
52
|
+
other: "other";
|
|
53
|
+
package: "package";
|
|
54
|
+
}>;
|
|
55
|
+
timestamp: z.ZodNumber;
|
|
56
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
57
|
+
}, z.core.$strip>>>;
|
|
58
|
+
supportedClasses: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
59
|
+
person: "person";
|
|
60
|
+
vehicle: "vehicle";
|
|
61
|
+
animal: "animal";
|
|
62
|
+
face: "face";
|
|
63
|
+
other: "other";
|
|
64
|
+
package: "package";
|
|
65
|
+
}>>>;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
export type NativeObjectDetectionStatus = z.infer<typeof NativeObjectDetectionStatusSchema>;
|
|
68
|
+
export declare const nativeObjectDetectionCapability: {
|
|
69
|
+
readonly name: "native-object-detection";
|
|
70
|
+
readonly scope: "device";
|
|
71
|
+
readonly mode: "singleton";
|
|
72
|
+
readonly deviceTypes: readonly [DeviceType.Camera];
|
|
73
|
+
readonly methods: {};
|
|
74
|
+
readonly events: {
|
|
75
|
+
readonly onDetected: {
|
|
76
|
+
readonly data: z.ZodObject<{
|
|
77
|
+
deviceId: z.ZodNumber;
|
|
78
|
+
detection: z.ZodObject<{
|
|
79
|
+
class: z.ZodEnum<{
|
|
80
|
+
person: "person";
|
|
81
|
+
vehicle: "vehicle";
|
|
82
|
+
animal: "animal";
|
|
83
|
+
face: "face";
|
|
84
|
+
other: "other";
|
|
85
|
+
package: "package";
|
|
86
|
+
}>;
|
|
87
|
+
timestamp: z.ZodNumber;
|
|
88
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
}, z.core.$strip>;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
readonly status: {
|
|
94
|
+
readonly schema: z.ZodObject<{
|
|
95
|
+
lastByClass: z.ZodRecord<z.ZodEnum<{
|
|
96
|
+
person: "person";
|
|
97
|
+
vehicle: "vehicle";
|
|
98
|
+
animal: "animal";
|
|
99
|
+
face: "face";
|
|
100
|
+
other: "other";
|
|
101
|
+
package: "package";
|
|
102
|
+
}>, z.ZodNullable<z.ZodObject<{
|
|
103
|
+
class: z.ZodEnum<{
|
|
104
|
+
person: "person";
|
|
105
|
+
vehicle: "vehicle";
|
|
106
|
+
animal: "animal";
|
|
107
|
+
face: "face";
|
|
108
|
+
other: "other";
|
|
109
|
+
package: "package";
|
|
110
|
+
}>;
|
|
111
|
+
timestamp: z.ZodNumber;
|
|
112
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
113
|
+
}, z.core.$strip>>>;
|
|
114
|
+
supportedClasses: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
115
|
+
person: "person";
|
|
116
|
+
vehicle: "vehicle";
|
|
117
|
+
animal: "animal";
|
|
118
|
+
face: "face";
|
|
119
|
+
other: "other";
|
|
120
|
+
package: "package";
|
|
121
|
+
}>>>;
|
|
122
|
+
}, z.core.$strip>;
|
|
123
|
+
readonly kind: "push";
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
export type INativeObjectDetectionProvider = InferProvider<typeof nativeObjectDetectionCapability>;
|
|
127
|
+
//# sourceMappingURL=native-object-detection.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-object-detection.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/native-object-detection.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAA6B,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1F,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAErD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB;;;;;;;EAEhC,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAErE,eAAO,MAAM,qBAAqB;;;;;;;;;;;iBAKhC,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEnE,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQ5C,CAAA;AAEF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AAE3F,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBH,CAAA;AAEzC,MAAM,MAAM,8BAA8B,GAAG,aAAa,CAAC,OAAO,+BAA+B,CAAC,CAAA"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
declare const NetworkEndpointSchema: z.ZodObject<{
|
|
4
|
+
url: z.ZodString;
|
|
5
|
+
hostname: z.ZodString;
|
|
6
|
+
port: z.ZodNumber;
|
|
7
|
+
protocol: z.ZodEnum<{
|
|
8
|
+
http: "http";
|
|
9
|
+
https: "https";
|
|
10
|
+
}>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const NetworkAccessStatusSchema: z.ZodObject<{
|
|
13
|
+
connected: z.ZodBoolean;
|
|
14
|
+
endpoint: z.ZodNullable<z.ZodObject<{
|
|
15
|
+
url: z.ZodString;
|
|
16
|
+
hostname: z.ZodString;
|
|
17
|
+
port: z.ZodNumber;
|
|
18
|
+
protocol: z.ZodEnum<{
|
|
19
|
+
http: "http";
|
|
20
|
+
https: "https";
|
|
21
|
+
}>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
error: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export declare const networkAccessCapability: {
|
|
26
|
+
readonly name: "network-access";
|
|
27
|
+
readonly scope: "system";
|
|
28
|
+
readonly mode: "collection";
|
|
29
|
+
readonly internal: true;
|
|
30
|
+
readonly methods: {
|
|
31
|
+
readonly start: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
|
|
32
|
+
url: z.ZodString;
|
|
33
|
+
hostname: z.ZodString;
|
|
34
|
+
port: z.ZodNumber;
|
|
35
|
+
protocol: z.ZodEnum<{
|
|
36
|
+
http: "http";
|
|
37
|
+
https: "https";
|
|
38
|
+
}>;
|
|
39
|
+
}, z.core.$strip>, "mutation">;
|
|
40
|
+
readonly stop: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodVoid, "mutation">;
|
|
41
|
+
readonly getEndpoint: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodNullable<z.ZodObject<{
|
|
42
|
+
url: z.ZodString;
|
|
43
|
+
hostname: z.ZodString;
|
|
44
|
+
port: z.ZodNumber;
|
|
45
|
+
protocol: z.ZodEnum<{
|
|
46
|
+
http: "http";
|
|
47
|
+
https: "https";
|
|
48
|
+
}>;
|
|
49
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
50
|
+
readonly getStatus: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
|
|
51
|
+
connected: z.ZodBoolean;
|
|
52
|
+
endpoint: z.ZodNullable<z.ZodObject<{
|
|
53
|
+
url: z.ZodString;
|
|
54
|
+
hostname: z.ZodString;
|
|
55
|
+
port: z.ZodNumber;
|
|
56
|
+
protocol: z.ZodEnum<{
|
|
57
|
+
http: "http";
|
|
58
|
+
https: "https";
|
|
59
|
+
}>;
|
|
60
|
+
}, z.core.$strip>>;
|
|
61
|
+
error: z.ZodOptional<z.ZodString>;
|
|
62
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
export type INetworkAccessProvider = InferProvider<typeof networkAccessCapability>;
|
|
66
|
+
export { NetworkEndpointSchema, NetworkAccessStatusSchema };
|
|
67
|
+
//# sourceMappingURL=network-access.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"network-access.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/network-access.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAElG,QAAA,MAAM,qBAAqB;;;;;;;;iBAKzB,CAAA;AAEF,QAAA,MAAM,yBAAyB;;;;;;;;;;;;iBAI7B,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWK,CAAA;AAEzC,MAAM,MAAM,sBAAsB,GAAG,aAAa,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAElF,OAAO,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,CAAA"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
/**
|
|
4
|
+
* network-quality — system-scoped singleton capability tracking RTT,
|
|
5
|
+
* jitter, and observed/peak bandwidth per device + per client.
|
|
6
|
+
*
|
|
7
|
+
* Implementation lives in the server's `NetworkQualityService` (thin
|
|
8
|
+
* wrapper over the shared `NetworkQualityTracker` from `@camstack/core`).
|
|
9
|
+
* The provider is registered from `trpc.router.ts` against the existing
|
|
10
|
+
* service instance — no addon owns this state.
|
|
11
|
+
*
|
|
12
|
+
* Phase E of the API consolidation: previously a hand-written core
|
|
13
|
+
* router. Cap conversion lets the same codegen pipeline produce both
|
|
14
|
+
* the tRPC router and the canonical UI hooks
|
|
15
|
+
* (`useNetworkQualityGetDeviceStats`, …).
|
|
16
|
+
*/
|
|
17
|
+
declare const StreamNetworkStatsSchema: z.ZodObject<{
|
|
18
|
+
nominalBitrateKbps: z.ZodNumber;
|
|
19
|
+
observedBitrateKbps: z.ZodNumber;
|
|
20
|
+
peakBitrateKbps: z.ZodNumber;
|
|
21
|
+
packetLossPercent: z.ZodNumber;
|
|
22
|
+
lastUpdated: z.ZodNumber;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const ClientNetworkStatsSchema: z.ZodObject<{
|
|
25
|
+
rttMs: z.ZodNumber;
|
|
26
|
+
jitterMs: z.ZodNumber;
|
|
27
|
+
estimatedBandwidthKbps: z.ZodNumber;
|
|
28
|
+
lastUpdated: z.ZodNumber;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
declare const DeviceNetworkStatsSchema: z.ZodObject<{
|
|
31
|
+
deviceId: z.ZodNumber;
|
|
32
|
+
streams: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
33
|
+
nominalBitrateKbps: z.ZodNumber;
|
|
34
|
+
observedBitrateKbps: z.ZodNumber;
|
|
35
|
+
peakBitrateKbps: z.ZodNumber;
|
|
36
|
+
packetLossPercent: z.ZodNumber;
|
|
37
|
+
lastUpdated: z.ZodNumber;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
client: z.ZodOptional<z.ZodObject<{
|
|
40
|
+
rttMs: z.ZodNumber;
|
|
41
|
+
jitterMs: z.ZodNumber;
|
|
42
|
+
estimatedBandwidthKbps: z.ZodNumber;
|
|
43
|
+
lastUpdated: z.ZodNumber;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
export declare const networkQualityCapability: {
|
|
47
|
+
readonly name: "network-quality";
|
|
48
|
+
readonly scope: "system";
|
|
49
|
+
readonly mode: "singleton";
|
|
50
|
+
readonly methods: {
|
|
51
|
+
readonly getDeviceStats: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
52
|
+
deviceId: z.ZodNumber;
|
|
53
|
+
}, z.core.$strip>, z.ZodNullable<z.ZodObject<{
|
|
54
|
+
deviceId: z.ZodNumber;
|
|
55
|
+
streams: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
56
|
+
nominalBitrateKbps: z.ZodNumber;
|
|
57
|
+
observedBitrateKbps: z.ZodNumber;
|
|
58
|
+
peakBitrateKbps: z.ZodNumber;
|
|
59
|
+
packetLossPercent: z.ZodNumber;
|
|
60
|
+
lastUpdated: z.ZodNumber;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
client: z.ZodOptional<z.ZodObject<{
|
|
63
|
+
rttMs: z.ZodNumber;
|
|
64
|
+
jitterMs: z.ZodNumber;
|
|
65
|
+
estimatedBandwidthKbps: z.ZodNumber;
|
|
66
|
+
lastUpdated: z.ZodNumber;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
69
|
+
readonly getAllStats: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
70
|
+
deviceId: z.ZodNumber;
|
|
71
|
+
streams: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
72
|
+
nominalBitrateKbps: z.ZodNumber;
|
|
73
|
+
observedBitrateKbps: z.ZodNumber;
|
|
74
|
+
peakBitrateKbps: z.ZodNumber;
|
|
75
|
+
packetLossPercent: z.ZodNumber;
|
|
76
|
+
lastUpdated: z.ZodNumber;
|
|
77
|
+
}, z.core.$strip>>;
|
|
78
|
+
client: z.ZodOptional<z.ZodObject<{
|
|
79
|
+
rttMs: z.ZodNumber;
|
|
80
|
+
jitterMs: z.ZodNumber;
|
|
81
|
+
estimatedBandwidthKbps: z.ZodNumber;
|
|
82
|
+
lastUpdated: z.ZodNumber;
|
|
83
|
+
}, z.core.$strip>>;
|
|
84
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
85
|
+
readonly reportClientStats: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
86
|
+
deviceId: z.ZodNumber;
|
|
87
|
+
rttMs: z.ZodNumber;
|
|
88
|
+
jitterMs: z.ZodNumber;
|
|
89
|
+
estimatedBandwidthKbps: z.ZodNumber;
|
|
90
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
export type INetworkQualityProvider = InferProvider<typeof networkQualityCapability>;
|
|
94
|
+
export { StreamNetworkStatsSchema, ClientNetworkStatsSchema, DeviceNetworkStatsSchema, };
|
|
95
|
+
//# sourceMappingURL=network-quality.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"network-quality.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/network-quality.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAElG;;;;;;;;;;;;;GAaG;AAEH,QAAA,MAAM,wBAAwB;;;;;;iBAM5B,CAAA;AAEF,QAAA,MAAM,wBAAwB;;;;;iBAK5B,CAAA;AAEF,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;iBAI5B,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBI,CAAA;AAEzC,MAAM,MAAM,uBAAuB,GAAG,aAAa,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAEpF,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,GACzB,CAAA"}
|