@camstack/types 0.1.13 → 0.1.15
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/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 +280 -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/backup.cap.d.ts +48 -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 +177 -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/log-destination.cap.d.ts +70 -0
- package/dist/capabilities/log-destination.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/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.cap.d.ts +104 -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-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 +170 -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/enums/event-category.d.ts +327 -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 +13401 -3202
- 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 +257 -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 +80 -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 +86 -22
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12328 -436
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11952 -427
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces/addon.d.ts +678 -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 +117 -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 +159 -23
- package/dist/interfaces/capability.d.ts.map +1 -1
- package/dist/interfaces/config-ui.d.ts +609 -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.d.ts +123 -45
- 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 +7583 -0
- package/dist/node.js.map +1 -0
- package/dist/node.mjs +7534 -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,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Consumer-facing interface for the kernel-owned readiness registry.
|
|
3
|
+
*
|
|
4
|
+
* Implemented by `ReadinessRegistry` under
|
|
5
|
+
* `@camstack/types/readiness/readiness-registry.ts`. Exposed here as a
|
|
6
|
+
* narrow interface so `AddonContext.kernel.readinessRegistry` can be
|
|
7
|
+
* typed without pulling the full registry module into the addon
|
|
8
|
+
* interface file (avoids import cycles).
|
|
9
|
+
*
|
|
10
|
+
* Addons emit via the standalone `emitReadiness(bus, ...)` helper —
|
|
11
|
+
* they don't need a registry handle for that. The registry is
|
|
12
|
+
* purely a consumer primitive: `awaitReady` for one-shot waits and
|
|
13
|
+
* `onReadyState` for long-lived observers.
|
|
14
|
+
*/
|
|
15
|
+
import type { ReadinessScope, ReadinessState } from './event-bus.js';
|
|
16
|
+
export interface IReadinessTransition {
|
|
17
|
+
readonly capName: string;
|
|
18
|
+
readonly scope: ReadinessScope;
|
|
19
|
+
readonly state: ReadinessState;
|
|
20
|
+
readonly epoch: number;
|
|
21
|
+
readonly generation: string;
|
|
22
|
+
readonly sourceNodeId: string;
|
|
23
|
+
readonly ts: number;
|
|
24
|
+
readonly durationInPrevState: number;
|
|
25
|
+
}
|
|
26
|
+
export interface IReadinessRegistryRecord {
|
|
27
|
+
readonly capName: string;
|
|
28
|
+
readonly scope: ReadinessScope;
|
|
29
|
+
readonly state: ReadinessState;
|
|
30
|
+
readonly generation: string;
|
|
31
|
+
readonly epoch: number;
|
|
32
|
+
readonly lastChange: number;
|
|
33
|
+
/**
|
|
34
|
+
* Node that emitted the latest transition. Needed for `agent.offline`
|
|
35
|
+
* demux of `device`-scoped caps. For `node`-scoped caps this matches
|
|
36
|
+
* `scope.nodeId`.
|
|
37
|
+
*/
|
|
38
|
+
readonly sourceNodeId: string;
|
|
39
|
+
}
|
|
40
|
+
export interface IAwaitReadyOptions {
|
|
41
|
+
readonly timeoutMs?: number;
|
|
42
|
+
readonly signal?: AbortSignal;
|
|
43
|
+
}
|
|
44
|
+
export type IReadinessHandler = (transition: IReadinessTransition) => void;
|
|
45
|
+
export interface IReadinessRegistry<TCapName extends string = string> {
|
|
46
|
+
/** Current snapshot for a `(capName, scope)` pair, or `null` if never seen. */
|
|
47
|
+
get(capName: TCapName, scope: ReadinessScope): IReadinessRegistryRecord | null;
|
|
48
|
+
/**
|
|
49
|
+
* One-shot: resolves when the cap is `ready`. Reads the snapshot
|
|
50
|
+
* first — if already ready, resolves on next tick. Rejects with
|
|
51
|
+
* `ReadinessTimeoutError` after `timeoutMs` (default 30_000) or
|
|
52
|
+
* with the AbortSignal's reason on cancel.
|
|
53
|
+
*/
|
|
54
|
+
awaitReady(capName: TCapName, scope: ReadinessScope, opts?: IAwaitReadyOptions): Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* Observable: every transition (starting/ready/down) dispatches to
|
|
57
|
+
* `handler`. On subscribe the current state (if known) replays
|
|
58
|
+
* asynchronously as the initial transition. Returns unsubscribe.
|
|
59
|
+
*/
|
|
60
|
+
onReadyState(capName: TCapName, scope: ReadinessScope, handler: IReadinessHandler): () => void;
|
|
61
|
+
/**
|
|
62
|
+
* Hydrate the snapshot from an authoritative source (typically the
|
|
63
|
+
* hub's `$readiness.getSnapshot` action). Entries already present
|
|
64
|
+
* locally are skipped — live deltas always take precedence over the
|
|
65
|
+
* snapshot. For each newly added entry a one-shot transition is
|
|
66
|
+
* dispatched to matching subscriptions so pending `awaitReady`
|
|
67
|
+
* callers unblock without waiting for a fresh delta.
|
|
68
|
+
*/
|
|
69
|
+
hydrate(records: readonly IReadinessRegistryRecord[]): void;
|
|
70
|
+
/**
|
|
71
|
+
* Serializable snapshot for cross-process transport. Returned as an
|
|
72
|
+
* array (MsgPack-friendly) rather than the internal Map.
|
|
73
|
+
*/
|
|
74
|
+
getSnapshotForTransport(): readonly IReadinessRegistryRecord[];
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* A stable, cached reference to a capability that tracks readiness state.
|
|
78
|
+
* Obtained via `ctx.useCapability()` or `ctx.acquireCapability()`.
|
|
79
|
+
*
|
|
80
|
+
* The generic `T` is a phantom type documenting the expected provider interface.
|
|
81
|
+
*/
|
|
82
|
+
export interface ICapabilityHandle<T = unknown> {
|
|
83
|
+
readonly capName: string;
|
|
84
|
+
readonly scope: ReadinessScope;
|
|
85
|
+
readonly isReady: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Block until the capability is ready, or throw `CapabilityUnavailableError`
|
|
88
|
+
* on timeout.
|
|
89
|
+
*/
|
|
90
|
+
awaitReady(timeoutMs?: number): Promise<void>;
|
|
91
|
+
/**
|
|
92
|
+
* Execute `fn` with readiness gating. Blocks until ready, then calls `fn`.
|
|
93
|
+
* Preferred over `awaitReady() + fn()` because it re-gates after a
|
|
94
|
+
* down→ready cycle that may occur between the await and the call.
|
|
95
|
+
*/
|
|
96
|
+
call<R>(fn: () => Promise<R>, timeoutMs?: number): Promise<R>;
|
|
97
|
+
/** Unsubscribe from ReadinessRegistry. Called by AddonContextImpl on shutdown. */
|
|
98
|
+
dispose(): void;
|
|
99
|
+
readonly _provider: T;
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=readiness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file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AAK,EAAE,cAAc,GAAG,wBAAwB,GAAG,IAAI,CAAA;IAE9E;;;;;OAKG;IACH,UAAU,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,cAAc,EAAE,IAAI,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAE9F;;;;OAIG;IACH,YAAY,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,iBAAiB,GAAG,MAAM,IAAI,CAAA;IAE9F;;;;;;;OAOG;IACH,OAAO,CAAC,OAAO,EAAE,SAAS,wBAAwB,EAAE,GAAG,IAAI,CAAA;IAE3D;;;OAGG;IACH,uBAAuB,IAAI,SAAS,wBAAwB,EAAE,CAAA;CAC/D;AAED;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB,CAAC,CAAC,GAAG,OAAO;IAC5C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAA;IAC9B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IAEzB;;;OAGG;IACH,UAAU,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAE7C;;;;OAIG;IACH,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;IAE7D,kFAAkF;IAClF,OAAO,IAAI,IAAI,CAAA;IAGf,QAAQ,CAAC,SAAS,EAAE,CAAC,CAAA;CACtB"}
|
|
@@ -15,10 +15,10 @@ export interface RestreamerExposedResource {
|
|
|
15
15
|
export interface IRestreamer {
|
|
16
16
|
readonly id: string;
|
|
17
17
|
readonly name: string;
|
|
18
|
-
registerDevice(deviceId:
|
|
18
|
+
registerDevice(deviceId: number, streams: readonly RegisteredStream[]): Promise<void>;
|
|
19
19
|
pushPacket(streamId: string, packet: EncodedPacket): void;
|
|
20
|
-
unregisterDevice(deviceId:
|
|
21
|
-
getExposedResources(deviceId:
|
|
20
|
+
unregisterDevice(deviceId: number): Promise<void>;
|
|
21
|
+
getExposedResources(deviceId: number): readonly RestreamerExposedResource[];
|
|
22
22
|
proxyWhepOffer?(streamId: string, sdpOffer: string): Promise<string>;
|
|
23
23
|
}
|
|
24
24
|
//# sourceMappingURL=restreamer.d.ts.map
|
|
@@ -1,22 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* Scope restriction for a scoped token.
|
|
3
|
-
*/
|
|
4
|
-
export interface TokenScope {
|
|
5
|
-
readonly type: 'addon' | 'route-prefix' | 'capability';
|
|
6
|
-
readonly target: string;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* A per-user API token with restricted scopes.
|
|
10
|
-
*/
|
|
11
|
-
export interface ScopedToken {
|
|
12
|
-
readonly id: string;
|
|
13
|
-
readonly userId: string;
|
|
14
|
-
readonly name: string;
|
|
15
|
-
readonly tokenHash: string;
|
|
16
|
-
readonly tokenPrefix: string;
|
|
17
|
-
readonly scopes: TokenScope[];
|
|
18
|
-
readonly expiresAt?: number;
|
|
19
|
-
readonly lastUsedAt?: number;
|
|
20
|
-
readonly createdAt: number;
|
|
21
|
-
}
|
|
1
|
+
export { type TokenScope, type ScopedToken } from '../schemas/auth-records.js';
|
|
22
2
|
//# sourceMappingURL=scoped-token.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scoped-token.d.ts","sourceRoot":"","sources":["../../src/interfaces/scoped-token.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"scoped-token.d.ts","sourceRoot":"","sources":["../../src/interfaces/scoped-token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAA"}
|
|
@@ -1,11 +1,34 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Detection Analysis Pipeline --
|
|
3
|
-
*
|
|
2
|
+
* Detection Analysis Pipeline -- types for tracked detections, sub-detections,
|
|
3
|
+
* recognition results, and audio classification.
|
|
4
4
|
*/
|
|
5
|
-
import type { Detection } from './device-capabilities/object-detector.js';
|
|
6
5
|
import type { VideoFrame } from './camera-pipeline.js';
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
/**
|
|
7
|
+
* A single detection entry consumed by the analysis pipeline (tracking,
|
|
8
|
+
* zones, session aggregation).
|
|
9
|
+
*
|
|
10
|
+
* Intentionally DIFFERENT from `SpatialDetection` (the engine-level
|
|
11
|
+
* detector output in `types/detection.ts`):
|
|
12
|
+
* - `SpatialDetection` is raw model output: `{class, bbox:{x,y,w,h},
|
|
13
|
+
* landmarks?, mask?}`.
|
|
14
|
+
* - `AnalysisDetection` is the pipeline's view: tuple-bbox
|
|
15
|
+
* `[x1,y1,x2,y2]`, optional enrichment (`id`, `label`, `zones`,
|
|
16
|
+
* `previousZones`) added by upstream stages.
|
|
17
|
+
*
|
|
18
|
+
* Renamed from the ambiguous `Detection` on 2026-04-14 to disambiguate
|
|
19
|
+
* from the other Detection types in the codebase (`ObjectDetection`
|
|
20
|
+
* for UI payloads, `SpatialDetection` for engine output).
|
|
21
|
+
*/
|
|
22
|
+
export interface AnalysisDetection {
|
|
23
|
+
className: string;
|
|
24
|
+
score: number;
|
|
25
|
+
boundingBox?: [number, number, number, number];
|
|
26
|
+
id?: string;
|
|
27
|
+
label?: string;
|
|
28
|
+
labelScore?: number;
|
|
29
|
+
zones?: string[];
|
|
30
|
+
previousZones?: string[];
|
|
31
|
+
}
|
|
9
32
|
export declare const SUB_DETECTION_TYPES: readonly ["face", "plate"];
|
|
10
33
|
export type SubDetectionType = typeof SUB_DETECTION_TYPES[number];
|
|
11
34
|
export declare const RECOGNITION_TYPES: readonly ["face", "plate", "clip", "custom"];
|
|
@@ -14,14 +37,14 @@ export interface AnalysisContext {
|
|
|
14
37
|
readonly deviceId: string;
|
|
15
38
|
readonly frame: VideoFrame;
|
|
16
39
|
readonly timestamp: number;
|
|
17
|
-
readonly rawDetections: readonly
|
|
40
|
+
readonly rawDetections: readonly AnalysisDetection[];
|
|
18
41
|
readonly trackedDetections: readonly ServerTrackedDetection[];
|
|
19
42
|
readonly events: readonly AnalysisEvent[];
|
|
20
43
|
readonly metadata: Readonly<Record<string, unknown>>;
|
|
21
44
|
}
|
|
22
45
|
export interface ServerTrackedDetection {
|
|
23
46
|
readonly trackId: string;
|
|
24
|
-
readonly detection:
|
|
47
|
+
readonly detection: AnalysisDetection;
|
|
25
48
|
readonly crop?: Buffer;
|
|
26
49
|
readonly tracking: TrackingInfo;
|
|
27
50
|
readonly subDetections: readonly SubDetection[];
|
|
@@ -63,84 +86,4 @@ export interface AnalysisEvent {
|
|
|
63
86
|
readonly description: string;
|
|
64
87
|
readonly data: Readonly<Record<string, unknown>>;
|
|
65
88
|
}
|
|
66
|
-
export interface IAnalysisStage {
|
|
67
|
-
readonly id: string;
|
|
68
|
-
readonly name: string;
|
|
69
|
-
readonly priority: number;
|
|
70
|
-
enabled: boolean;
|
|
71
|
-
process(ctx: AnalysisContext): Promise<AnalysisContext>;
|
|
72
|
-
}
|
|
73
|
-
export interface ISubDetector {
|
|
74
|
-
readonly detectionType: SubDetectionType;
|
|
75
|
-
readonly targetClasses: readonly string[];
|
|
76
|
-
detect(crop: Buffer, cropWidth: number, cropHeight: number): Promise<SubDetection[]>;
|
|
77
|
-
}
|
|
78
|
-
export interface IFaceDetector extends ISubDetector {
|
|
79
|
-
readonly detectionType: 'face';
|
|
80
|
-
}
|
|
81
|
-
export interface IPlateDetector extends ISubDetector {
|
|
82
|
-
readonly detectionType: 'plate';
|
|
83
|
-
}
|
|
84
|
-
export interface IRecognizer {
|
|
85
|
-
readonly recognitionType: RecognitionType;
|
|
86
|
-
recognize(crop: Buffer, width: number, height: number): Promise<RecognitionResult | null>;
|
|
87
|
-
}
|
|
88
|
-
export interface IFaceRecognizer extends IRecognizer {
|
|
89
|
-
getEmbedding(crop: Buffer): Promise<Float32Array>;
|
|
90
|
-
registerKnown(label: string, embedding: Float32Array): void;
|
|
91
|
-
}
|
|
92
|
-
export interface IPlateRecognizer extends IRecognizer {
|
|
93
|
-
readonly recognitionType: 'plate';
|
|
94
|
-
}
|
|
95
|
-
export interface IAudioClassifier {
|
|
96
|
-
readonly ready: boolean;
|
|
97
|
-
initialize(): Promise<void>;
|
|
98
|
-
classify(audioSamples: Float32Array, sampleRate: number, topN?: number): Promise<readonly AudioClassification[]>;
|
|
99
|
-
release(): Promise<void>;
|
|
100
|
-
}
|
|
101
|
-
export interface AudioClassification {
|
|
102
|
-
readonly classIndex: number;
|
|
103
|
-
readonly className: string;
|
|
104
|
-
readonly score: number;
|
|
105
|
-
readonly isSurveillanceRelevant: boolean;
|
|
106
|
-
}
|
|
107
|
-
export interface IClassFilterStage extends IAnalysisStage {
|
|
108
|
-
readonly id: 'class-filter';
|
|
109
|
-
setConfig(deviceId: string, config: Record<string, unknown>): void;
|
|
110
|
-
getConfig(deviceId: string): Record<string, unknown>;
|
|
111
|
-
}
|
|
112
|
-
export interface ITrackerStage extends IAnalysisStage {
|
|
113
|
-
readonly id: 'tracker';
|
|
114
|
-
setConfig(deviceId: string, config: Record<string, unknown>): void;
|
|
115
|
-
getConfig(deviceId: string): Record<string, unknown>;
|
|
116
|
-
resetDevice(deviceId: string): void;
|
|
117
|
-
}
|
|
118
|
-
export interface ISubDetectionStage extends IAnalysisStage {
|
|
119
|
-
readonly id: 'sub-detection';
|
|
120
|
-
registerDetector(detector: ISubDetector): void;
|
|
121
|
-
}
|
|
122
|
-
export interface IRecognitionStage extends IAnalysisStage {
|
|
123
|
-
readonly id: 'recognition';
|
|
124
|
-
registerRecognizer(recognizer: IRecognizer): void;
|
|
125
|
-
}
|
|
126
|
-
export interface IZoneAnalysisStage extends IAnalysisStage {
|
|
127
|
-
readonly id: 'zone-analysis';
|
|
128
|
-
setConfig(deviceId: string, config: Record<string, unknown>): void;
|
|
129
|
-
}
|
|
130
|
-
export interface IEventGenerationStage extends IAnalysisStage {
|
|
131
|
-
readonly id: 'event-generation';
|
|
132
|
-
setConfig(deviceId: string, config: Record<string, unknown>): void;
|
|
133
|
-
}
|
|
134
|
-
export interface IObjectSnapshotStage extends IAnalysisStage {
|
|
135
|
-
readonly id: 'object-snapshot';
|
|
136
|
-
setConfig(deviceId: string, config: Record<string, unknown>): void;
|
|
137
|
-
}
|
|
138
|
-
export interface IAnalysisPipeline {
|
|
139
|
-
addStage(stage: IAnalysisStage): void;
|
|
140
|
-
removeStage(stageId: string): void;
|
|
141
|
-
getStages(): readonly IAnalysisStage[];
|
|
142
|
-
analyze(deviceId: string, frame: VideoFrame, rawDetections: Detection[]): Promise<AnalysisContext>;
|
|
143
|
-
}
|
|
144
|
-
export declare function createAnalysisContext(deviceId: string, frame: VideoFrame, rawDetections: Detection[]): AnalysisContext;
|
|
145
|
-
export declare function enrichContext(ctx: AnalysisContext, updates: Partial<Pick<AnalysisContext, 'trackedDetections' | 'events' | 'metadata'>>): AnalysisContext;
|
|
146
89
|
//# sourceMappingURL=server-analysis.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-analysis.d.ts","sourceRoot":"","sources":["../../src/interfaces/server-analysis.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"server-analysis.d.ts","sourceRoot":"","sources":["../../src/interfaces/server-analysis.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEtD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;IAC9C,EAAE,CAA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zB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAA;IAC/C,QAAQ,CAAC,SAAS,EAAE,sBAAsB,CAAA;IAC1C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;CACjD"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Each type maps to a logical category of files.
|
|
4
4
|
* A storage provider declares which location types it supports.
|
|
5
5
|
*/
|
|
6
|
-
export type StorageLocationType = 'recordings-high' | 'recordings-low' | 'recordings-clips' | 'event-images' | 'models' | 'addons-data' | 'cache' | 'logs';
|
|
6
|
+
export type StorageLocationType = 'data' | 'media' | 'recordings' | 'recordings-high' | 'recordings-low' | 'recordings-clips' | 'event-images' | 'models' | 'addons-data' | 'cache' | 'logs';
|
|
7
7
|
/** All location types as an array (for iteration) */
|
|
8
8
|
export declare const STORAGE_LOCATION_TYPES: readonly StorageLocationType[];
|
|
9
9
|
/** Default subdirectory names for filesystem storage */
|
|
@@ -13,60 +13,128 @@ export declare const DEFAULT_LOCATION_SUBDIRS: Readonly<Record<StorageLocationTy
|
|
|
13
13
|
* Multiple providers can coexist (local filesystem, NAS, S3, etc.).
|
|
14
14
|
* Each addon/system setting selects which provider to use per location type.
|
|
15
15
|
*/
|
|
16
|
+
export interface StorageResolveInput {
|
|
17
|
+
readonly location: StorageLocationType;
|
|
18
|
+
readonly relativePath: string;
|
|
19
|
+
}
|
|
20
|
+
export interface StorageWriteInput {
|
|
21
|
+
readonly location: StorageLocationType;
|
|
22
|
+
readonly relativePath: string;
|
|
23
|
+
readonly data: Buffer | NodeJS.ReadableStream;
|
|
24
|
+
}
|
|
25
|
+
export interface StorageReadInput {
|
|
26
|
+
readonly location: StorageLocationType;
|
|
27
|
+
readonly relativePath: string;
|
|
28
|
+
}
|
|
29
|
+
export interface StorageExistsInput {
|
|
30
|
+
readonly location: StorageLocationType;
|
|
31
|
+
readonly relativePath: string;
|
|
32
|
+
}
|
|
33
|
+
export interface StorageListInput {
|
|
34
|
+
readonly location: StorageLocationType;
|
|
35
|
+
readonly prefix?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface StorageDeleteInput {
|
|
38
|
+
readonly location: StorageLocationType;
|
|
39
|
+
readonly relativePath: string;
|
|
40
|
+
}
|
|
41
|
+
export interface StorageAvailableSpaceInput {
|
|
42
|
+
readonly location: StorageLocationType;
|
|
43
|
+
}
|
|
16
44
|
export interface IStorageProvider {
|
|
17
|
-
/** Unique provider ID (e.g., 'local', 'nas-synology', 's3-aws') */
|
|
18
45
|
readonly id: string;
|
|
19
|
-
/** Human-readable name (e.g., 'Local Filesystem', 'Synology NAS') */
|
|
20
46
|
readonly name: string;
|
|
21
|
-
/** Which location types this provider serves */
|
|
22
47
|
readonly supportedLocations: readonly StorageLocationType[];
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
exists(location: StorageLocationType, relativePath: string): Promise<boolean>;
|
|
31
|
-
/** List files/directories under a prefix within a location */
|
|
32
|
-
list(location: StorageLocationType, prefix?: string): Promise<readonly string[]>;
|
|
33
|
-
/** Delete a file */
|
|
34
|
-
delete(location: StorageLocationType, relativePath: string): Promise<void>;
|
|
35
|
-
/** Get available space in bytes, null if unknown (e.g., S3) */
|
|
36
|
-
getAvailableSpace(location: StorageLocationType): Promise<number | null>;
|
|
37
|
-
/** Lifecycle */
|
|
38
|
-
initialize(): Promise<void>;
|
|
39
|
-
shutdown(): Promise<void>;
|
|
48
|
+
resolve(input: StorageResolveInput): string;
|
|
49
|
+
write(input: StorageWriteInput): Promise<void>;
|
|
50
|
+
read(input: StorageReadInput): Promise<Buffer>;
|
|
51
|
+
exists(input: StorageExistsInput): Promise<boolean>;
|
|
52
|
+
list(input: StorageListInput): Promise<readonly string[]>;
|
|
53
|
+
delete(input: StorageDeleteInput): Promise<void>;
|
|
54
|
+
getAvailableSpace(input: StorageAvailableSpaceInput): Promise<number | null>;
|
|
40
55
|
}
|
|
41
56
|
/**
|
|
42
57
|
* All named collections that the settings backend manages.
|
|
43
58
|
* Each collection maps to a logical table/bucket in the backend.
|
|
44
59
|
*/
|
|
45
|
-
export type SettingsCollection = 'system-settings' | 'addon-settings' | 'provider-settings' | 'device-settings' | 'detection-events' | 'audio-levels' | 'track-trails' | 'recording-segments' | 'recording-thumbnails' | 'recording-policies' | 'recording-storage-config' | 'recording-cleanup-queue' | 'known-faces';
|
|
60
|
+
export type SettingsCollection = 'system-settings' | 'addon-settings' | 'provider-settings' | 'device-settings' | 'detection-events' | 'audio-levels' | 'track-trails' | 'recording-segments' | 'recording-thumbnails' | 'recording-policies' | 'recording-storage-config' | 'recording-cleanup-queue' | 'known-faces' | (string & {});
|
|
61
|
+
export interface SettingsGetInput {
|
|
62
|
+
readonly namespace?: string;
|
|
63
|
+
readonly collection: SettingsCollection;
|
|
64
|
+
readonly key: string;
|
|
65
|
+
}
|
|
66
|
+
export interface SettingsSetInput {
|
|
67
|
+
readonly namespace?: string;
|
|
68
|
+
readonly collection: SettingsCollection;
|
|
69
|
+
readonly key: string;
|
|
70
|
+
readonly value: unknown;
|
|
71
|
+
}
|
|
72
|
+
export interface SettingsQueryInput {
|
|
73
|
+
readonly namespace?: string;
|
|
74
|
+
readonly collection: SettingsCollection;
|
|
75
|
+
readonly filter?: QueryFilter;
|
|
76
|
+
}
|
|
77
|
+
export interface SettingsInsertInput<T extends object = Record<string, unknown>> {
|
|
78
|
+
readonly namespace?: string;
|
|
79
|
+
readonly collection: SettingsCollection;
|
|
80
|
+
readonly record: SettingsRecord<T>;
|
|
81
|
+
}
|
|
82
|
+
export interface SettingsUpdateInput {
|
|
83
|
+
readonly namespace?: string;
|
|
84
|
+
readonly collection: SettingsCollection;
|
|
85
|
+
readonly id: string;
|
|
86
|
+
readonly data: Record<string, unknown>;
|
|
87
|
+
}
|
|
88
|
+
export interface SettingsDeleteInput {
|
|
89
|
+
readonly namespace?: string;
|
|
90
|
+
readonly collection: SettingsCollection;
|
|
91
|
+
readonly key: string;
|
|
92
|
+
}
|
|
93
|
+
export interface SettingsCountInput {
|
|
94
|
+
readonly namespace?: string;
|
|
95
|
+
readonly collection: SettingsCollection;
|
|
96
|
+
readonly filter?: QueryFilter;
|
|
97
|
+
}
|
|
98
|
+
export interface SettingsIsEmptyInput {
|
|
99
|
+
readonly namespace?: string;
|
|
100
|
+
readonly collection: SettingsCollection;
|
|
101
|
+
}
|
|
46
102
|
/**
|
|
47
103
|
* Settings backend — persistent key-value and document storage.
|
|
48
104
|
* Default implementation: SQLite. Can be replaced by Postgres, etc.
|
|
105
|
+
* All methods use object-arg signatures for extensibility.
|
|
49
106
|
*/
|
|
50
107
|
export interface ISettingsBackend {
|
|
51
108
|
/** Get a single value by key from a collection */
|
|
52
|
-
get(
|
|
109
|
+
get(input: SettingsGetInput): Promise<unknown>;
|
|
53
110
|
/** Set a value by key in a collection (upsert) */
|
|
54
|
-
set(
|
|
111
|
+
set(input: SettingsSetInput): Promise<void>;
|
|
55
112
|
/** Get all entries matching an optional filter */
|
|
56
|
-
query
|
|
113
|
+
query<T extends object = Record<string, unknown>>(input: SettingsQueryInput): Promise<readonly SettingsRecord<T>[]>;
|
|
57
114
|
/** Insert a new record */
|
|
58
|
-
insert
|
|
115
|
+
insert<T extends object = Record<string, unknown>>(input: SettingsInsertInput<T>): Promise<void>;
|
|
59
116
|
/** Update an existing record by ID */
|
|
60
|
-
update(
|
|
117
|
+
update(input: SettingsUpdateInput): Promise<void>;
|
|
61
118
|
/** Delete a record by key/ID */
|
|
62
|
-
delete(
|
|
119
|
+
delete(input: SettingsDeleteInput): Promise<void>;
|
|
63
120
|
/** Count entries in a collection */
|
|
64
|
-
count(
|
|
121
|
+
count(input: SettingsCountInput): Promise<number>;
|
|
65
122
|
/** Check if a collection is empty (used for first-boot detection) */
|
|
66
|
-
isEmpty(
|
|
67
|
-
/**
|
|
68
|
-
|
|
69
|
-
|
|
123
|
+
isEmpty(input: SettingsIsEmptyInput): Promise<boolean>;
|
|
124
|
+
/**
|
|
125
|
+
* Declare a typed (SQL-backed) collection. After declaration, the
|
|
126
|
+
* standard `insert` / `update` / `delete` / `query` methods route to
|
|
127
|
+
* typed columns for this collection instead of the JSON-blob default.
|
|
128
|
+
* Idempotent — re-declaring the same shape is a no-op. Backends
|
|
129
|
+
* without typed-table support should implement this as a no-op so
|
|
130
|
+
* the cap contract stays uniform.
|
|
131
|
+
*/
|
|
132
|
+
declareCollection(input: {
|
|
133
|
+
namespace?: string;
|
|
134
|
+
collection: string;
|
|
135
|
+
columns: readonly import('../capabilities/settings-store.cap.js').CollectionColumn[];
|
|
136
|
+
indexes?: readonly import('../capabilities/settings-store.cap.js').CollectionIndex[];
|
|
137
|
+
}): Promise<void>;
|
|
70
138
|
/** Ensure a structured table exists (CREATE TABLE IF NOT EXISTS) */
|
|
71
139
|
ensureTable?(table: string, schema: TableSchema): Promise<void>;
|
|
72
140
|
/** Insert a row into a structured table */
|
|
@@ -82,9 +150,9 @@ export interface ISettingsBackend {
|
|
|
82
150
|
/** Count rows matching a filter */
|
|
83
151
|
tableCount?(table: string, filter?: Record<string, unknown>): Promise<number>;
|
|
84
152
|
}
|
|
85
|
-
export interface SettingsRecord {
|
|
153
|
+
export interface SettingsRecord<T extends object = Record<string, unknown>> {
|
|
86
154
|
readonly id: string;
|
|
87
|
-
readonly data:
|
|
155
|
+
readonly data: T;
|
|
88
156
|
}
|
|
89
157
|
export interface QueryFilter {
|
|
90
158
|
where?: Record<string, unknown>;
|
|
@@ -181,19 +249,21 @@ export interface EmbeddingFilter {
|
|
|
181
249
|
/** Filter by device */
|
|
182
250
|
readonly deviceId?: string;
|
|
183
251
|
}
|
|
184
|
-
/**
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
}
|
|
190
|
-
/** @deprecated Use SettingsRecord instead */
|
|
252
|
+
/**
|
|
253
|
+
* A document record in collection-based storage.
|
|
254
|
+
* Used by IStructuredStorage and ElementConfigStore.
|
|
255
|
+
* New code should prefer ISettingsBackend + SettingsRecord.
|
|
256
|
+
*/
|
|
191
257
|
export interface StorageRecord {
|
|
192
258
|
collection: string;
|
|
193
259
|
id: string;
|
|
194
260
|
data: Record<string, unknown>;
|
|
195
261
|
}
|
|
196
|
-
/**
|
|
262
|
+
/**
|
|
263
|
+
* Collection-based document storage (query, insert, update, delete).
|
|
264
|
+
* Used by ElementConfigStore and StorageManager shim layer.
|
|
265
|
+
* New code should prefer ISettingsBackend.
|
|
266
|
+
*/
|
|
197
267
|
export interface IStructuredStorage {
|
|
198
268
|
query(collection: string, filter?: QueryFilter): Promise<readonly StorageRecord[]>;
|
|
199
269
|
insert(record: StorageRecord): Promise<StorageRecord>;
|
|
@@ -201,7 +271,11 @@ export interface IStructuredStorage {
|
|
|
201
271
|
delete(collection: string, id: string): Promise<void>;
|
|
202
272
|
count(collection: string, filter?: QueryFilter): Promise<number>;
|
|
203
273
|
}
|
|
204
|
-
/**
|
|
274
|
+
/**
|
|
275
|
+
* File-based storage operations.
|
|
276
|
+
* Used by StorageManager and addons for media/model files.
|
|
277
|
+
* New code should prefer IStorageProvider.
|
|
278
|
+
*/
|
|
205
279
|
export interface IFileStorage {
|
|
206
280
|
readFile(path: string): Promise<Buffer>;
|
|
207
281
|
writeFile(path: string, data: Buffer): Promise<void>;
|
|
@@ -210,7 +284,11 @@ export interface IFileStorage {
|
|
|
210
284
|
getFileUrl(path: string): Promise<string>;
|
|
211
285
|
exists(path: string): Promise<boolean>;
|
|
212
286
|
}
|
|
213
|
-
/**
|
|
287
|
+
/**
|
|
288
|
+
* Combined storage location with optional structured + file storage.
|
|
289
|
+
* Used by StorageManager.getLocation() and ElementConfigStore.
|
|
290
|
+
* New code should prefer IStorageProvider + ISettingsBackend.
|
|
291
|
+
*/
|
|
214
292
|
export interface IStorageLocation {
|
|
215
293
|
structured?: IStructuredStorage;
|
|
216
294
|
files?: IFileStorage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/interfaces/storage.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAC3B,iBAAiB,GACjB,gBAAgB,GAChB,kBAAkB,GAClB,cAAc,GACd,QAAQ,GACR,aAAa,GACb,OAAO,GACP,MAAM,CAAA;AAEV,qDAAqD;AACrD,eAAO,MAAM,sBAAsB,EAAE,SAAS,mBAAmB,
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/interfaces/storage.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAC3B,MAAM,GACN,OAAO,GACP,YAAY,GACZ,iBAAiB,GACjB,gBAAgB,GAChB,kBAAkB,GAClB,cAAc,GACd,QAAQ,GACR,aAAa,GACb,OAAO,GACP,MAAM,CAAA;AAEV,qDAAqD;AACrD,eAAO,MAAM,sBAAsB,EAAE,SAAS,mBAAmB,EAYvD,CAAA;AAEV,wDAAwD;AACxD,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAYlF,CAAA;AAMD;;;;GAIG;AAGH,MAAM,WAAW,mBAAmB;IAAG,QAAQ,CAAC,QAAQ,EAAE,mBAAmB,CAAC;IAAC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;CAAE;AAC9G,MAAM,WAAW,iBAAiB;IAAG,QAAQ,CAAC,QAAQ,EAAE,mBAAmB,CAAC;IAAC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,cAAc,CAAA;CAAE;AAC3J,MAAM,WAAW,gBAAgB;IAAG,QAAQ,CAAC,QAAQ,EAAE,mBAAmB,CAAC;IAAC,QAAQ,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