@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
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import type { BoundingBox, Landmark, FrameInput } from './io.js';
|
|
2
|
-
import type { DetectionZoneMembership } from './zones.js';
|
|
1
|
+
import type { BoundingBox as EngineBoundingBox, Landmark, FrameInput } from './io.js';
|
|
3
2
|
export interface SpatialDetection {
|
|
4
3
|
readonly class: string;
|
|
5
4
|
readonly originalClass: string;
|
|
6
5
|
readonly score: number;
|
|
7
|
-
readonly bbox:
|
|
6
|
+
readonly bbox: EngineBoundingBox;
|
|
8
7
|
readonly landmarks?: readonly Landmark[];
|
|
9
8
|
readonly mask?: Uint8Array;
|
|
10
9
|
readonly maskWidth?: number;
|
|
@@ -12,7 +11,7 @@ export interface SpatialDetection {
|
|
|
12
11
|
}
|
|
13
12
|
export interface CropInput {
|
|
14
13
|
readonly frame: FrameInput;
|
|
15
|
-
readonly roi:
|
|
14
|
+
readonly roi: EngineBoundingBox;
|
|
16
15
|
readonly parentDetection: SpatialDetection;
|
|
17
16
|
}
|
|
18
17
|
export interface Classification {
|
|
@@ -45,49 +44,207 @@ export interface RefinerOutput {
|
|
|
45
44
|
readonly inferenceMs: number;
|
|
46
45
|
readonly modelId: string;
|
|
47
46
|
}
|
|
48
|
-
/**
|
|
49
|
-
export
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
47
|
+
/** Axis-aligned bounding box in absolute pixel coordinates of the source frame. */
|
|
48
|
+
export interface DetectionBoundingBox {
|
|
49
|
+
readonly x: number;
|
|
50
|
+
readonly y: number;
|
|
51
|
+
readonly width: number;
|
|
52
|
+
readonly height: number;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* A single enriched label attached to a detection.
|
|
56
|
+
*
|
|
57
|
+
* - In `Detection.labels[]` it represents an enrichment that "won" on this
|
|
58
|
+
* detection (either produced directly on it, or inherited from a child
|
|
59
|
+
* detail in the same frame).
|
|
60
|
+
* - In `DetectionDebug.alternateLabels[source][]` it represents one
|
|
61
|
+
* candidate from a top-N ranked list.
|
|
62
|
+
*/
|
|
63
|
+
export interface ScoredLabel {
|
|
53
64
|
readonly label: string;
|
|
54
|
-
/** Confidence of the classification */
|
|
55
65
|
readonly score: number;
|
|
56
|
-
/**
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
+
/**
|
|
67
|
+
* When this label was inherited from a child detail (e.g. a person
|
|
68
|
+
* carrying a recognized face name), this is the child detection's id.
|
|
69
|
+
* Omitted on own enrichments — the label already lives on the entry
|
|
70
|
+
* that carries it.
|
|
71
|
+
*/
|
|
72
|
+
readonly detectionId?: string;
|
|
73
|
+
}
|
|
74
|
+
/** What kind of entry a detection is at the root of `detections[]`. */
|
|
75
|
+
export type DetectionKind = 'first-level' | 'detail' | 'audio';
|
|
76
|
+
/** First-level macro classes produced by object detectors. */
|
|
77
|
+
export type FirstLevelMacro = 'person' | 'vehicle' | 'animal';
|
|
78
|
+
/** Detail macro classes produced by crop+recognize steps. */
|
|
79
|
+
export type DetailMacro = 'face' | 'plate';
|
|
80
|
+
/**
|
|
81
|
+
* Macro class carried at the root of each Detection entry. Kept as an
|
|
82
|
+
* extensible string union so future detectors (e.g. a custom
|
|
83
|
+
* `first-level-fire` classifier) can plug in without a type change.
|
|
84
|
+
*/
|
|
85
|
+
export type MacroClass = FirstLevelMacro | DetailMacro | 'audio' | string;
|
|
86
|
+
/** Tracker-enriched info attached to first-level detections only. */
|
|
87
|
+
export interface TrackInfo {
|
|
88
|
+
readonly trackId: string;
|
|
89
|
+
readonly moving?: boolean;
|
|
90
|
+
/** Pixels per second in frame coordinates. */
|
|
91
|
+
readonly speedPx?: number;
|
|
92
|
+
/** IDs of zones the bbox overlaps at this frame. */
|
|
93
|
+
readonly zones?: readonly string[];
|
|
94
|
+
/** Wall-clock timestamp (ms) when the track was first seen. */
|
|
95
|
+
readonly firstSeenMs?: number;
|
|
96
|
+
/** Wall-clock timestamp (ms) of the last update on this track. */
|
|
97
|
+
readonly lastSeenMs?: number;
|
|
98
|
+
}
|
|
99
|
+
/** Per-detection debug bag — populated only when detection debug is enabled. */
|
|
100
|
+
export interface DetectionDebug {
|
|
101
|
+
/** Latency of each step that touched this detection (source → ms). */
|
|
102
|
+
readonly stepLatencyMs?: Readonly<Record<string, number>>;
|
|
103
|
+
/** Model id used by each step that touched this detection (source → modelId). */
|
|
104
|
+
readonly modelIds?: Readonly<Record<string, string>>;
|
|
105
|
+
/** How the step read the image — full frame or cropped ROI. */
|
|
106
|
+
readonly extractMode?: 'full-frame' | 'crop-roi';
|
|
107
|
+
/**
|
|
108
|
+
* Raw detector class before any macro mapping. Present only when it
|
|
109
|
+
* differs from `macroClass` (e.g. object-detection returned `'dog'`,
|
|
110
|
+
* mapped to `macroClass: 'animal'`).
|
|
111
|
+
*/
|
|
66
112
|
readonly originalClass?: string;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
113
|
+
/**
|
|
114
|
+
* Full top-N ranked alternatives per source (classifier / recognizer).
|
|
115
|
+
* The winner of each list already appears in `detection.labels[]` —
|
|
116
|
+
* this field surfaces the rest for the benchmark UI and debug inspectors.
|
|
117
|
+
*/
|
|
118
|
+
readonly alternateLabels?: Readonly<Record<string, readonly ScoredLabel[]>>;
|
|
119
|
+
/** Base64 binary segmentation mask (when a seg/refiner step produced one). */
|
|
72
120
|
readonly mask?: string;
|
|
73
121
|
readonly maskWidth?: number;
|
|
74
122
|
readonly maskHeight?: number;
|
|
75
|
-
/**
|
|
76
|
-
readonly children?: readonly PipelineDetection[];
|
|
77
|
-
readonly zones?: readonly DetectionZoneMembership[];
|
|
123
|
+
/** Id of the embedding stored by face/voice/plate recognition, when any. */
|
|
78
124
|
readonly embeddingId?: string;
|
|
79
125
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
126
|
+
/** Per-step timing in a frame-level debug bag. Aggregate across all the detections. */
|
|
127
|
+
export interface FrameStepTiming {
|
|
128
|
+
/** Step addon id. */
|
|
129
|
+
readonly source: string;
|
|
130
|
+
/** Model id used during this frame. */
|
|
131
|
+
readonly modelId?: string;
|
|
132
|
+
/** Total wall-clock latency contributed by this step to the frame. */
|
|
83
133
|
readonly ms: number;
|
|
84
|
-
|
|
134
|
+
/** How many detections this step contributed (for per-step throughput). */
|
|
135
|
+
readonly detectionCount?: number;
|
|
136
|
+
}
|
|
137
|
+
/** Per-frame debug bag — populated only when detection debug is enabled. */
|
|
138
|
+
export interface FrameDebug {
|
|
139
|
+
/** Sum of all step latencies for this frame (not wall-clock). */
|
|
140
|
+
readonly totalInferenceMs?: number;
|
|
141
|
+
/** Flat list of per-step timings. */
|
|
142
|
+
readonly stepTimings?: readonly FrameStepTiming[];
|
|
143
|
+
/** Engine descriptor — e.g. `'python/coreml'`. */
|
|
144
|
+
readonly engine?: string;
|
|
145
|
+
/** Pipeline template id in use (for comparing across runs). */
|
|
146
|
+
readonly pipelineId?: string;
|
|
147
|
+
/** JPEG → dimensions probe + buffer alloc (benchmark / reference-image paths only). */
|
|
148
|
+
readonly decodeMs?: number;
|
|
149
|
+
/** Per-run setup: step conversion, engine factory init, model load, tree build. */
|
|
150
|
+
readonly setupMs?: number;
|
|
151
|
+
/** Total wall-clock of runPipeline from entry to return — includes decode, setup, inference, progress emit. */
|
|
152
|
+
readonly wallMs?: number;
|
|
153
|
+
/** Residual = wallMs - (decodeMs + setupMs + totalInferenceMs). Surfaces tRPC / IPC / overhead. */
|
|
154
|
+
readonly overheadMs?: number;
|
|
155
|
+
/** Python-pool preprocess wall (PIL resize + tensor pack). Excludes IPC + window-accumulator wait. */
|
|
156
|
+
readonly preprocessMs?: number;
|
|
157
|
+
/** Python-pool predict wall (model.predict only). Pure ANE/CoreML/ORT execute time. */
|
|
158
|
+
readonly predictMs?: number;
|
|
159
|
+
/** Window-accumulator batch size used for the predict call (1 = no batching, N = N frames coalesced). */
|
|
160
|
+
readonly batchSize?: number;
|
|
161
|
+
}
|
|
162
|
+
/** Common shape shared by every entry in `FrameResult.detections` / `AudioResult.detections`. */
|
|
163
|
+
export interface DetectionBase {
|
|
164
|
+
readonly id: string;
|
|
165
|
+
readonly kind: DetectionKind;
|
|
166
|
+
readonly macroClass: MacroClass;
|
|
167
|
+
/** Score of the macro class itself (from the detector that emitted this entry). */
|
|
168
|
+
readonly score: number;
|
|
169
|
+
/**
|
|
170
|
+
* Enrichment labels — each with its own score. Ordered:
|
|
171
|
+
* (1) catena di enricher diretti sulla detection,
|
|
172
|
+
* (2) labels ereditate dai children details (in ordine di apparizione).
|
|
173
|
+
* Lo score preserva il valore prodotto dall'enricher originale anche
|
|
174
|
+
* quando la label è ereditata.
|
|
175
|
+
*/
|
|
176
|
+
readonly labels: readonly ScoredLabel[];
|
|
177
|
+
readonly track?: TrackInfo;
|
|
178
|
+
readonly debug?: DetectionDebug;
|
|
179
|
+
}
|
|
180
|
+
/** Object detection (first-level person/vehicle/animal OR detail face/plate). */
|
|
181
|
+
export interface ObjectDetection extends DetectionBase {
|
|
182
|
+
readonly kind: 'first-level' | 'detail';
|
|
183
|
+
/** Absolute pixel coordinates in the source frame. */
|
|
184
|
+
readonly bbox: DetectionBoundingBox;
|
|
185
|
+
/**
|
|
186
|
+
* For details (face, plate): id of the first-level parent entry in
|
|
187
|
+
* the same frame. Allows the UI to correlate a face crop back to the
|
|
188
|
+
* person box (or a plate back to the vehicle box).
|
|
189
|
+
*/
|
|
190
|
+
readonly parentId?: string;
|
|
191
|
+
}
|
|
192
|
+
/** Audio detection — flat, time-localised within the window. */
|
|
193
|
+
export interface AudioDetection extends DetectionBase {
|
|
194
|
+
readonly kind: 'audio';
|
|
195
|
+
readonly startMs: number;
|
|
196
|
+
readonly endMs: number;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Union of every possible detection entry at the root of a result payload.
|
|
200
|
+
*
|
|
201
|
+
* Named `DetectionEntry` rather than `Detection` because the
|
|
202
|
+
* device-capabilities namespace already exports a different `Detection`
|
|
203
|
+
* interface for Scrypted-style object detectors. The two live in
|
|
204
|
+
* separate files but both are re-exported at the package root, so
|
|
205
|
+
* keeping names distinct avoids an import-level collision.
|
|
206
|
+
*/
|
|
207
|
+
export type DetectionEntry = ObjectDetection | AudioDetection;
|
|
208
|
+
/**
|
|
209
|
+
* Per-frame pipeline result — the canonical container emitted by
|
|
210
|
+
* `pipelineExecutor.runPipeline` (one-shot benchmark + runtime dispatch)
|
|
211
|
+
* and by the live video pipeline. Carries only `ObjectDetection` entries
|
|
212
|
+
* (video has no audio events).
|
|
213
|
+
*/
|
|
214
|
+
export interface FrameResult {
|
|
215
|
+
readonly kind: 'frame';
|
|
216
|
+
readonly frameId: string;
|
|
217
|
+
readonly deviceId: number;
|
|
218
|
+
/** Wall-clock timestamp (ms) of frame capture / emission. */
|
|
219
|
+
readonly timestamp: number;
|
|
220
|
+
readonly width: number;
|
|
221
|
+
readonly height: number;
|
|
222
|
+
readonly detections: readonly ObjectDetection[];
|
|
223
|
+
readonly debug?: FrameDebug;
|
|
85
224
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
225
|
+
/**
|
|
226
|
+
* Per-audio-window pipeline result — the canonical container emitted by
|
|
227
|
+
* the audio pipeline. Carries only `AudioDetection` entries plus optional
|
|
228
|
+
* window-level level metrics.
|
|
229
|
+
*/
|
|
230
|
+
export interface AudioResult {
|
|
231
|
+
readonly kind: 'audio-window';
|
|
232
|
+
readonly windowId: string;
|
|
233
|
+
readonly deviceId: number;
|
|
234
|
+
/** Wall-clock timestamp (ms) of the window start. */
|
|
235
|
+
readonly timestamp: number;
|
|
236
|
+
/** Offset (ms) of the window start inside the source audio stream. */
|
|
237
|
+
readonly startMs: number;
|
|
238
|
+
/** Offset (ms) of the window end inside the source audio stream. */
|
|
239
|
+
readonly endMs: number;
|
|
240
|
+
/** Aggregate audio level metrics (RMS / dBFS), independent from detections. */
|
|
241
|
+
readonly level?: {
|
|
242
|
+
readonly rms: number;
|
|
243
|
+
readonly dbfs: number;
|
|
244
|
+
};
|
|
245
|
+
readonly detections: readonly AudioDetection[];
|
|
246
|
+
readonly debug?: FrameDebug;
|
|
92
247
|
}
|
|
248
|
+
/** Discriminated union of every top-level pipeline result payload shape. */
|
|
249
|
+
export type PipelineFrameResult = FrameResult | AudioResult;
|
|
93
250
|
//# sourceMappingURL=detection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detection.d.ts","sourceRoot":"","sources":["../../src/types/detection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"detection.d.ts","sourceRoot":"","sources":["../../src/types/detection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,IAAI,iBAAiB,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAOrF,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAA;IAChC,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,QAAQ,EAAE,CAAA;IACxC,QAAQ,CAAC,IAAI,CAAC,EAAE,UAAU,CAAA;IAC1B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAC7B;AAED,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAA;IAC1B,QAAQ,CAAC,GAAG,EAAE,iBAAiB,CAAA;IAC/B,QAAQ,CAAC,eAAe,EAAE,gBAAgB,CAAA;CAC3C;AAED,MAAM,WAAW,cAA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ts","sourceRoot":"","sources":["../../src/types/device-type.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,UAAU,EAAE,cAAc,CAE/D,CAAA"}
|
|
1
|
+
{"version":3,"file":"device-type.d.ts","sourceRoot":"","sources":["../../src/types/device-type.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,oBAAY,UAAU;IACpB,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,UAAU,EAAE,cAAc,CAE/D,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface LetterboxMeta {
|
|
2
|
+
readonly scale: number;
|
|
3
|
+
readonly padX: number;
|
|
4
|
+
readonly padY: number;
|
|
5
|
+
readonly originalWidth: number;
|
|
6
|
+
readonly originalHeight: number;
|
|
7
|
+
}
|
|
8
|
+
export interface EngineOutput {
|
|
9
|
+
readonly tensor?: Float32Array;
|
|
10
|
+
readonly tensors?: Record<string, Float32Array>;
|
|
11
|
+
readonly structured?: Record<string, unknown>;
|
|
12
|
+
readonly letterbox?: LetterboxMeta;
|
|
13
|
+
readonly inferenceMs: number;
|
|
14
|
+
}
|
|
15
|
+
export interface ModelInputMeta {
|
|
16
|
+
readonly inputSize: {
|
|
17
|
+
readonly width: number;
|
|
18
|
+
readonly height: number;
|
|
19
|
+
};
|
|
20
|
+
readonly inputNormalization: 'zero-one' | 'imagenet' | 'none';
|
|
21
|
+
readonly inputLayout: 'nchw' | 'nhwc';
|
|
22
|
+
readonly preprocessMode: 'letterbox' | 'resize';
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=engine-output.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engine-output.d.ts","sourceRoot":"","sources":["../../src/types/engine-output.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAA;CAChC;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAA;IAC9B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;IAC/C,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC7C,QAAQ,CAAC,SAAS,CAAC,EAAE,aAAa,CAAA;IAClC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAC7B;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,SAAS,EAAE;QAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAA;IACvE,QAAQ,CAAC,kBAAkB,EAAE,UAAU,GAAG,UAAU,GAAG,MAAM,CAAA;IAC7D,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAA;IACrC,QAAQ,CAAC,cAAc,EAAE,WAAW,GAAG,QAAQ,CAAA;CAChD"}
|
package/dist/types/io.d.ts
CHANGED
|
@@ -9,17 +9,71 @@ export interface Landmark {
|
|
|
9
9
|
readonly y: number;
|
|
10
10
|
readonly label?: string;
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Canonical pixel/frame format identifier used throughout the streaming +
|
|
14
|
+
* detection pipeline.
|
|
15
|
+
*
|
|
16
|
+
* - `jpeg` — encoded JPEG bytes (decoder-side `sharp` encode)
|
|
17
|
+
* - `rgb` — packed RGB24 (3 bytes/pixel, planar order R,G,B)
|
|
18
|
+
* - `bgr` — packed BGR24 (3 bytes/pixel, planar order B,G,R)
|
|
19
|
+
* - `yuv420` — planar YUV 4:2:0 (1.5 bytes/pixel)
|
|
20
|
+
* - `gray` — single-channel 8-bit luminance (1 byte/pixel)
|
|
21
|
+
*
|
|
22
|
+
* Single source of truth: matches `FrameFormatSchema` in
|
|
23
|
+
* `capabilities/schemas/detection-shared.ts`.
|
|
24
|
+
*/
|
|
25
|
+
export type FrameFormat = 'jpeg' | 'rgb' | 'bgr' | 'yuv420' | 'gray';
|
|
26
|
+
/** Subset of `FrameFormat` accepted by the raw inference fast path. */
|
|
27
|
+
export type RawFrameFormat = Exclude<FrameFormat, 'jpeg' | 'yuv420'>;
|
|
12
28
|
export interface FrameInput {
|
|
13
|
-
readonly data:
|
|
14
|
-
readonly format:
|
|
29
|
+
readonly data: Uint8Array;
|
|
30
|
+
readonly format: FrameFormat;
|
|
15
31
|
readonly width: number;
|
|
16
32
|
readonly height: number;
|
|
17
33
|
readonly timestamp: number;
|
|
18
34
|
}
|
|
19
35
|
export interface AudioChunkInput {
|
|
20
|
-
readonly
|
|
36
|
+
readonly [key: string]: unknown;
|
|
37
|
+
readonly data: Float32Array<ArrayBuffer>;
|
|
21
38
|
readonly sampleRate: number;
|
|
22
39
|
readonly channels: number;
|
|
23
40
|
readonly timestamp: number;
|
|
41
|
+
readonly deviceId?: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Classification result for an audio chunk.
|
|
45
|
+
* Mirrors `SpatialDetection` (class + originalClass): `className` is the
|
|
46
|
+
* primary display class (macro or raw depending on how it was produced),
|
|
47
|
+
* `originalClass` is the raw backend label that was actually emitted.
|
|
48
|
+
* Both values are kept so downstream consumers — especially the UI — can
|
|
49
|
+
* render and filter consistently regardless of the classMode.
|
|
50
|
+
*/
|
|
51
|
+
export interface AudioClassificationEntry {
|
|
52
|
+
readonly className: string;
|
|
53
|
+
readonly originalClass?: string;
|
|
54
|
+
readonly score: number;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Complete result of audio analysis on a single chunk.
|
|
58
|
+
* Produced by the addon, consumed by detection-wiring for EventBus emission.
|
|
59
|
+
*/
|
|
60
|
+
export interface AudioAnalysisResult {
|
|
61
|
+
/** Audio level metrics — always present */
|
|
62
|
+
readonly level: {
|
|
63
|
+
readonly rms: number;
|
|
64
|
+
readonly dbfs: number;
|
|
65
|
+
};
|
|
66
|
+
/** Classification results — present only if classifier is enabled and produced results */
|
|
67
|
+
readonly classification?: {
|
|
68
|
+
readonly labels: readonly AudioClassificationEntry[];
|
|
69
|
+
readonly inferenceMs: number;
|
|
70
|
+
};
|
|
71
|
+
/** Chunk timestamp from the stream */
|
|
72
|
+
readonly timestamp: number;
|
|
73
|
+
}
|
|
74
|
+
/** Settings for audio analysis filtering (passed to the addon) */
|
|
75
|
+
export interface AudioAnalysisSettings {
|
|
76
|
+
readonly minConfidence: number;
|
|
77
|
+
readonly allowedClasses: string[];
|
|
24
78
|
}
|
|
25
79
|
//# sourceMappingURL=io.d.ts.map
|
package/dist/types/io.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"io.d.ts","sourceRoot":"","sources":["../../src/types/io.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;IAClB,QAA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M,GAAG,OAAO,CAAA;IAC/B,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC,WAAW,CAAC,CAAA;IACxC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAC3B;AAMD;;;;;;;GAOG;AACH,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAA;IAC/B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACvB;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,2CAA2C;IAC3C,QAAQ,CAAC,KAAK,EAAE;QACd,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;QACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KACtB,CAAA;IACD,0FAA0F;IAC1F,QAAQ,CAAC,cAAc,CAAC,EAAE;QACxB,QAAQ,CAAC,MAAM,EAAE,SAAS,wBAAwB,EAAE,CAAA;QACpD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;KAC7B,CAAA;IACD,sCAAsC;IACtC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAC3B;AAED,kEAAkE;AAClE,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,cAAc,EAAE,MAAM,EAAE,CAAA;CAClC"}
|
package/dist/types/models.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { LabelDefinition, ClassMapDefinition } from './labels.js';
|
|
2
|
-
export
|
|
2
|
+
export declare const MODEL_FORMATS: readonly ["onnx", "coreml", "openvino", "tflite", "pt"];
|
|
3
|
+
export type ModelFormat = (typeof MODEL_FORMATS)[number];
|
|
3
4
|
export type ModelOutputFormat = 'yolo' | 'ssd' | 'embedding' | 'classification' | 'ocr' | 'segmentation';
|
|
4
5
|
export interface ModelFormatEntry {
|
|
5
6
|
readonly url: string;
|
|
@@ -36,6 +37,7 @@ export interface ModelCatalogEntry {
|
|
|
36
37
|
readonly labels: readonly LabelDefinition[];
|
|
37
38
|
readonly inputLayout?: 'nchw' | 'nhwc';
|
|
38
39
|
readonly inputNormalization?: 'zero-one' | 'imagenet' | 'none';
|
|
40
|
+
readonly preprocessMode?: 'letterbox' | 'resize';
|
|
39
41
|
/**
|
|
40
42
|
* Auxiliary files required at runtime (labels JSON, charset dict, etc.).
|
|
41
43
|
* Downloaded into the same modelsDir alongside the model file.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/types/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAEtE,
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/types/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAEtE,eAAO,MAAM,aAAa,yDAA0D,CAAA;AACpF,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAA;AACxD,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,KAAK,GAAG,WAAW,GAAG,gBAAgB,GAAG,KAAK,GAAG,cAAc,CAAA;AAExG,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,6FAA6F;IAC7F,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAA;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,SA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
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
readonly defaultRuntime: string;
|
|
17
|
-
/** Best backend for this addon on this agent — resolved by PlatformScorer */
|
|
18
|
-
readonly defaultBackend: string;
|
|
19
|
-
}
|
|
20
|
-
export interface PipelineModelOption {
|
|
21
|
-
readonly id: string;
|
|
22
|
-
readonly name: string;
|
|
23
|
-
readonly formats: Partial<Readonly<Record<ModelFormat, {
|
|
24
|
-
downloaded: boolean;
|
|
25
|
-
sizeMB: number;
|
|
26
|
-
}>>>;
|
|
27
|
-
}
|
|
28
|
-
export interface PipelineSlotSchema {
|
|
29
|
-
readonly id: PipelineSlot;
|
|
30
|
-
readonly label: string;
|
|
31
|
-
readonly priority: number;
|
|
32
|
-
/** Which slot is the parent (null for root detectors) */
|
|
33
|
-
readonly parentSlot: PipelineSlot | null;
|
|
34
|
-
readonly addons: readonly PipelineAddonSchema[];
|
|
35
|
-
}
|
|
36
|
-
export interface PipelineSchema {
|
|
37
|
-
readonly slots: readonly PipelineSlotSchema[];
|
|
38
|
-
}
|
|
39
|
-
/** A fully-resolved pipeline step with all defaults from PlatformScorer */
|
|
40
|
-
export interface PipelineDefaultStep {
|
|
41
|
-
readonly addonId: string;
|
|
42
|
-
readonly addonName: string;
|
|
43
|
-
readonly slot: PipelineSlot;
|
|
44
|
-
readonly inputClasses: readonly string[];
|
|
45
|
-
readonly outputClasses: readonly string[];
|
|
46
|
-
readonly enabled: boolean;
|
|
47
|
-
readonly agentId: string;
|
|
48
|
-
readonly runtime: string;
|
|
49
|
-
readonly backend: string;
|
|
50
|
-
readonly modelId: string;
|
|
51
|
-
readonly confidence: number;
|
|
52
|
-
readonly classFilters: readonly string[];
|
|
53
|
-
readonly children: readonly PipelineDefaultStep[];
|
|
54
|
-
}
|
|
55
|
-
export interface PipelineTemplateStep {
|
|
56
|
-
readonly addonId: string;
|
|
57
|
-
readonly enabled: boolean;
|
|
58
|
-
readonly agentId: string;
|
|
59
|
-
readonly runtime: string;
|
|
60
|
-
readonly backend: string;
|
|
61
|
-
readonly modelId: string;
|
|
62
|
-
readonly confidence: number;
|
|
63
|
-
readonly classFilters: readonly string[];
|
|
64
|
-
readonly children: readonly PipelineTemplateStep[];
|
|
65
|
-
}
|
|
66
|
-
export interface PipelineTemplate {
|
|
67
|
-
readonly id: string;
|
|
68
|
-
readonly name: string;
|
|
69
|
-
readonly createdAt: string;
|
|
70
|
-
readonly updatedAt: string;
|
|
71
|
-
readonly steps: readonly PipelineTemplateStep[];
|
|
72
|
-
}
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
import type { PipelineSchemaSchema, PipelineAddonSchemaSchema, PipelineSlotSchemaSchema, PipelineModelOptionSchema, AvailableEngineSchema, PipelineTemplateSchema, PipelineTemplateStepSchema } from '../capabilities/pipeline-executor.cap.js';
|
|
3
|
+
import type { PipelineDefaultStepOutput } from '../capabilities/pipeline-executor.cap.js';
|
|
4
|
+
export type PipelineAddonSchema = z.infer<typeof PipelineAddonSchemaSchema>;
|
|
5
|
+
export type PipelineModelOption = z.infer<typeof PipelineModelOptionSchema>;
|
|
6
|
+
export type PipelineSlotSchema = z.infer<typeof PipelineSlotSchemaSchema>;
|
|
7
|
+
export type AvailableEngine = z.infer<typeof AvailableEngineSchema>;
|
|
8
|
+
export type PipelineSchema = z.infer<typeof PipelineSchemaSchema>;
|
|
9
|
+
/**
|
|
10
|
+
* A fully-resolved pipeline step.
|
|
11
|
+
* Runtime/backend are NOT per-step — they come from PipelineConfig.engine.
|
|
12
|
+
*/
|
|
13
|
+
export type PipelineDefaultStep = PipelineDefaultStepOutput;
|
|
14
|
+
export type PipelineTemplateStep = z.infer<typeof PipelineTemplateStepSchema>;
|
|
15
|
+
export type PipelineTemplate = z.infer<typeof PipelineTemplateSchema>;
|
|
73
16
|
export interface TemplateValidationResult {
|
|
74
17
|
readonly valid: boolean;
|
|
75
18
|
readonly steps: readonly PipelineTemplateStep[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline-schema.d.ts","sourceRoot":"","sources":["../../src/types/pipeline-schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pipeline-schema.d.ts","sourceRoot":"","sources":["../../src/types/pipeline-schema.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAC5B,OAAO,KAAK,EACV,oBAAoB,EACpB,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,EACzB,qBAAqB,EACrB,sBAAsB,EACtB,0BAA0B,EAC3B,MAAM,0CAA0C,CAAA;AACjD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAA;AAIzF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAC3E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAC3E,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AACzE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AACnE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAIjE;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,yBAAyB,CAAA;AAI3D,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAI7E,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAIrE,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,KAAK,EAAE,SAAS,oBAAoB,EAAE,CAAA;IAC/C,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;CACrC"}
|