@camstack/types 0.1.14 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon/base-addon.d.ts +262 -0
- package/dist/addon/base-addon.d.ts.map +1 -0
- package/dist/auth-records-BDg37fy9.mjs +8297 -0
- package/dist/auth-records-BDg37fy9.mjs.map +1 -0
- package/dist/auth-records-D5ZNaUos.js +8296 -0
- package/dist/auth-records-D5ZNaUos.js.map +1 -0
- package/dist/capabilities/accessories.cap.d.ts +42 -0
- package/dist/capabilities/accessories.cap.d.ts.map +1 -0
- package/dist/capabilities/addon-pages-source.cap.d.ts +41 -0
- package/dist/capabilities/addon-pages-source.cap.d.ts.map +1 -0
- package/dist/capabilities/addon-pages.cap.d.ts +36 -0
- package/dist/capabilities/addon-pages.cap.d.ts.map +1 -0
- package/dist/capabilities/addon-routes.cap.d.ts +22 -0
- package/dist/capabilities/addon-routes.cap.d.ts.map +1 -0
- package/dist/capabilities/addon-settings.cap.d.ts +170 -0
- package/dist/capabilities/addon-settings.cap.d.ts.map +1 -0
- package/dist/capabilities/addon-widgets-source.cap.d.ts +103 -0
- package/dist/capabilities/addon-widgets-source.cap.d.ts.map +1 -0
- package/dist/capabilities/addon-widgets.cap.d.ts +98 -0
- package/dist/capabilities/addon-widgets.cap.d.ts.map +1 -0
- package/dist/capabilities/addons.cap.d.ts +356 -0
- package/dist/capabilities/addons.cap.d.ts.map +1 -0
- package/dist/capabilities/admin-ui.cap.d.ts +14 -0
- package/dist/capabilities/admin-ui.cap.d.ts.map +1 -0
- package/dist/capabilities/advanced-notifier.cap.d.ts +60 -0
- package/dist/capabilities/advanced-notifier.cap.d.ts.map +1 -0
- package/dist/capabilities/alerts.cap.d.ts +164 -0
- package/dist/capabilities/alerts.cap.d.ts.map +1 -0
- package/dist/capabilities/audio-analysis.cap.d.ts +46 -0
- package/dist/capabilities/audio-analysis.cap.d.ts.map +1 -0
- package/dist/capabilities/audio-analyzer.cap.d.ts +148 -0
- package/dist/capabilities/audio-analyzer.cap.d.ts.map +1 -0
- package/dist/capabilities/audio-codec.cap.d.ts +202 -0
- package/dist/capabilities/audio-codec.cap.d.ts.map +1 -0
- package/dist/capabilities/audio-metrics.cap.d.ts +174 -0
- package/dist/capabilities/audio-metrics.cap.d.ts.map +1 -0
- package/dist/capabilities/auth-provider.cap.d.ts +49 -0
- package/dist/capabilities/auth-provider.cap.d.ts.map +1 -0
- package/dist/capabilities/authentication.cap.d.ts +83 -0
- package/dist/capabilities/authentication.cap.d.ts.map +1 -0
- package/dist/capabilities/backup.cap.d.ts +269 -0
- package/dist/capabilities/backup.cap.d.ts.map +1 -0
- package/dist/capabilities/battery.cap.d.ts +85 -0
- package/dist/capabilities/battery.cap.d.ts.map +1 -0
- package/dist/capabilities/brightness.cap.d.ts +64 -0
- package/dist/capabilities/brightness.cap.d.ts.map +1 -0
- package/dist/capabilities/camera-credentials.cap.d.ts +102 -0
- package/dist/capabilities/camera-credentials.cap.d.ts.map +1 -0
- package/dist/capabilities/camera-streams.cap.d.ts +214 -0
- package/dist/capabilities/camera-streams.cap.d.ts.map +1 -0
- package/dist/capabilities/capability-definition.d.ts +474 -0
- package/dist/capabilities/capability-definition.d.ts.map +1 -0
- package/dist/capabilities/custom-actions.d.ts +47 -0
- package/dist/capabilities/custom-actions.d.ts.map +1 -0
- package/dist/capabilities/decoder.cap.d.ts +173 -0
- package/dist/capabilities/decoder.cap.d.ts.map +1 -0
- package/dist/capabilities/detection-pipeline.cap.d.ts +34 -0
- package/dist/capabilities/detection-pipeline.cap.d.ts.map +1 -0
- package/dist/capabilities/device-discovery.cap.d.ts +247 -0
- package/dist/capabilities/device-discovery.cap.d.ts.map +1 -0
- package/dist/capabilities/device-manager.cap.d.ts +709 -0
- package/dist/capabilities/device-manager.cap.d.ts.map +1 -0
- package/dist/capabilities/device-ops.cap.d.ts +87 -0
- package/dist/capabilities/device-ops.cap.d.ts.map +1 -0
- package/dist/capabilities/device-provider.cap.d.ts +151 -0
- package/dist/capabilities/device-provider.cap.d.ts.map +1 -0
- package/dist/capabilities/device-state.cap.d.ts +97 -0
- package/dist/capabilities/device-state.cap.d.ts.map +1 -0
- package/dist/capabilities/device-status.cap.d.ts +54 -0
- package/dist/capabilities/device-status.cap.d.ts.map +1 -0
- package/dist/capabilities/doorbell.cap.d.ts +62 -0
- package/dist/capabilities/doorbell.cap.d.ts.map +1 -0
- package/dist/capabilities/embedding-encoder.cap.d.ts +41 -0
- package/dist/capabilities/embedding-encoder.cap.d.ts.map +1 -0
- package/dist/capabilities/events.cap.d.ts +48 -0
- package/dist/capabilities/events.cap.d.ts.map +1 -0
- package/dist/capabilities/feature-probe.cap.d.ts +79 -0
- package/dist/capabilities/feature-probe.cap.d.ts.map +1 -0
- package/dist/capabilities/index.d.ts +191 -0
- package/dist/capabilities/index.d.ts.map +1 -0
- package/dist/capabilities/integrations.cap.d.ts +182 -0
- package/dist/capabilities/integrations.cap.d.ts.map +1 -0
- package/dist/capabilities/intercom.cap.d.ts +108 -0
- package/dist/capabilities/intercom.cap.d.ts.map +1 -0
- package/dist/capabilities/local-network.cap.d.ts +216 -0
- package/dist/capabilities/local-network.cap.d.ts.map +1 -0
- package/dist/capabilities/log-destination.cap.d.ts +70 -0
- package/dist/capabilities/log-destination.cap.d.ts.map +1 -0
- package/dist/capabilities/mesh-network.cap.d.ts +160 -0
- package/dist/capabilities/mesh-network.cap.d.ts.map +1 -0
- package/dist/capabilities/mesh-orchestrator.cap.d.ts +96 -0
- package/dist/capabilities/mesh-orchestrator.cap.d.ts.map +1 -0
- package/dist/capabilities/metrics-provider.cap.d.ts +522 -0
- package/dist/capabilities/metrics-provider.cap.d.ts.map +1 -0
- package/dist/capabilities/motion-detection.cap.d.ts +107 -0
- package/dist/capabilities/motion-detection.cap.d.ts.map +1 -0
- package/dist/capabilities/motion-trigger.cap.d.ts +78 -0
- package/dist/capabilities/motion-trigger.cap.d.ts.map +1 -0
- package/dist/capabilities/motion.cap.d.ts +122 -0
- package/dist/capabilities/motion.cap.d.ts.map +1 -0
- package/dist/capabilities/native-object-detection.cap.d.ts +127 -0
- package/dist/capabilities/native-object-detection.cap.d.ts.map +1 -0
- package/dist/capabilities/network-access.cap.d.ts +67 -0
- package/dist/capabilities/network-access.cap.d.ts.map +1 -0
- package/dist/capabilities/network-quality.cap.d.ts +95 -0
- package/dist/capabilities/network-quality.cap.d.ts.map +1 -0
- package/dist/capabilities/nodes.cap.d.ts +200 -0
- package/dist/capabilities/nodes.cap.d.ts.map +1 -0
- package/dist/capabilities/notification-output.cap.d.ts +44 -0
- package/dist/capabilities/notification-output.cap.d.ts.map +1 -0
- package/dist/capabilities/osd.cap.d.ts +236 -0
- package/dist/capabilities/osd.cap.d.ts.map +1 -0
- package/dist/capabilities/pipeline-analytics.cap.d.ts +501 -0
- package/dist/capabilities/pipeline-analytics.cap.d.ts.map +1 -0
- package/dist/capabilities/pipeline-executor.cap.d.ts +922 -0
- package/dist/capabilities/pipeline-executor.cap.d.ts.map +1 -0
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +793 -0
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts.map +1 -0
- package/dist/capabilities/pipeline-runner.cap.d.ts +393 -0
- package/dist/capabilities/pipeline-runner.cap.d.ts.map +1 -0
- package/dist/capabilities/platform-probe.cap.d.ts +168 -0
- package/dist/capabilities/platform-probe.cap.d.ts.map +1 -0
- package/dist/capabilities/ptz-autotrack.cap.d.ts +188 -0
- package/dist/capabilities/ptz-autotrack.cap.d.ts.map +1 -0
- package/dist/capabilities/ptz.cap.d.ts +80 -0
- package/dist/capabilities/ptz.cap.d.ts.map +1 -0
- package/dist/capabilities/reboot.cap.d.ts +32 -0
- package/dist/capabilities/reboot.cap.d.ts.map +1 -0
- package/dist/capabilities/recording-engine.cap.d.ts +477 -0
- package/dist/capabilities/recording-engine.cap.d.ts.map +1 -0
- package/dist/capabilities/recording.cap.d.ts +43 -0
- package/dist/capabilities/recording.cap.d.ts.map +1 -0
- package/dist/capabilities/remote-access.cap.d.ts +103 -0
- package/dist/capabilities/remote-access.cap.d.ts.map +1 -0
- package/dist/capabilities/restreamer.cap.d.ts +51 -0
- package/dist/capabilities/restreamer.cap.d.ts.map +1 -0
- package/dist/capabilities/schemas/detection-shared.d.ts +63 -0
- package/dist/capabilities/schemas/detection-shared.d.ts.map +1 -0
- package/dist/capabilities/schemas/orchestrator-metrics.d.ts +44 -0
- package/dist/capabilities/schemas/orchestrator-metrics.d.ts.map +1 -0
- package/dist/capabilities/schemas/streaming-shared.d.ts +177 -0
- package/dist/capabilities/schemas/streaming-shared.d.ts.map +1 -0
- package/dist/capabilities/schemas/zone-rule.d.ts +74 -0
- package/dist/capabilities/schemas/zone-rule.d.ts.map +1 -0
- package/dist/capabilities/settings-store.cap.d.ts +198 -0
- package/dist/capabilities/settings-store.cap.d.ts.map +1 -0
- package/dist/capabilities/snapshot-provider.cap.d.ts +40 -0
- package/dist/capabilities/snapshot-provider.cap.d.ts.map +1 -0
- package/dist/capabilities/snapshot.cap.d.ts +78 -0
- package/dist/capabilities/snapshot.cap.d.ts.map +1 -0
- package/dist/capabilities/storage-provider.cap.d.ts +432 -0
- package/dist/capabilities/storage-provider.cap.d.ts.map +1 -0
- package/dist/capabilities/storage.cap.d.ts +367 -0
- package/dist/capabilities/storage.cap.d.ts.map +1 -0
- package/dist/capabilities/stream-broker.cap.d.ts +416 -0
- package/dist/capabilities/stream-broker.cap.d.ts.map +1 -0
- package/dist/capabilities/streaming-engine.cap.d.ts +58 -0
- package/dist/capabilities/streaming-engine.cap.d.ts.map +1 -0
- package/dist/capabilities/switch.cap.d.ts +66 -0
- package/dist/capabilities/switch.cap.d.ts.map +1 -0
- package/dist/capabilities/system.cap.d.ts +86 -0
- package/dist/capabilities/system.cap.d.ts.map +1 -0
- package/dist/capabilities/toast.cap.d.ts +56 -0
- package/dist/capabilities/toast.cap.d.ts.map +1 -0
- package/dist/capabilities/turn-orchestrator.cap.d.ts +74 -0
- package/dist/capabilities/turn-orchestrator.cap.d.ts.map +1 -0
- package/dist/capabilities/turn-provider.cap.d.ts +43 -0
- package/dist/capabilities/turn-provider.cap.d.ts.map +1 -0
- package/dist/capabilities/user-management.cap.d.ts +378 -0
- package/dist/capabilities/user-management.cap.d.ts.map +1 -0
- package/dist/capabilities/webrtc-session.cap.d.ts +181 -0
- package/dist/capabilities/webrtc-session.cap.d.ts.map +1 -0
- package/dist/capabilities/webrtc.cap.d.ts +72 -0
- package/dist/capabilities/webrtc.cap.d.ts.map +1 -0
- package/dist/capabilities/zone-analytics.cap.d.ts +213 -0
- package/dist/capabilities/zone-analytics.cap.d.ts.map +1 -0
- package/dist/capabilities/zone-rules.cap.d.ts +129 -0
- package/dist/capabilities/zone-rules.cap.d.ts.map +1 -0
- package/dist/capabilities/zones.cap.d.ts +151 -0
- package/dist/capabilities/zones.cap.d.ts.map +1 -0
- package/dist/catalogs/audio-classmap.d.ts +16 -0
- package/dist/catalogs/audio-classmap.d.ts.map +1 -0
- package/dist/catalogs/coco-classmap.d.ts.map +1 -1
- package/dist/constants.d.ts +50 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/deps/binary-downloader.d.ts +41 -0
- package/dist/deps/binary-downloader.d.ts.map +1 -0
- package/dist/deps/ffmpeg-downloader.d.ts +13 -0
- package/dist/deps/ffmpeg-downloader.d.ts.map +1 -0
- package/dist/deps/index.d.ts +4 -0
- package/dist/deps/index.d.ts.map +1 -0
- package/dist/deps/python-downloader.d.ts +34 -0
- package/dist/deps/python-downloader.d.ts.map +1 -0
- package/dist/device/accessory.d.ts +62 -0
- package/dist/device/accessory.d.ts.map +1 -0
- package/dist/device/base-device-provider.d.ts +178 -0
- package/dist/device/base-device-provider.d.ts.map +1 -0
- package/dist/device/base-device.d.ts +287 -0
- package/dist/device/base-device.d.ts.map +1 -0
- package/dist/device/camera-device.d.ts +49 -0
- package/dist/device/camera-device.d.ts.map +1 -0
- package/dist/device/device-binding.d.ts +23 -0
- package/dist/device/device-binding.d.ts.map +1 -0
- package/dist/device/device-config.d.ts +65 -0
- package/dist/device/device-config.d.ts.map +1 -0
- package/dist/device/device-context.d.ts +256 -0
- package/dist/device/device-context.d.ts.map +1 -0
- package/dist/device/device-management.d.ts +118 -0
- package/dist/device/device-management.d.ts.map +1 -0
- package/dist/device/device-profile.d.ts +161 -0
- package/dist/device/device-profile.d.ts.map +1 -0
- package/dist/device/device-runtime-state.d.ts +124 -0
- package/dist/device/device-runtime-state.d.ts.map +1 -0
- package/dist/device/device-state-handle.d.ts +161 -0
- package/dist/device/device-state-handle.d.ts.map +1 -0
- package/dist/device/device-type.d.ts +68 -0
- package/dist/device/device-type.d.ts.map +1 -0
- package/dist/device/device.d.ts +87 -0
- package/dist/device/device.d.ts.map +1 -0
- package/dist/device/features.d.ts +29 -0
- package/dist/device/features.d.ts.map +1 -0
- package/dist/device/index.d.ts +20 -0
- package/dist/device/index.d.ts.map +1 -0
- package/dist/device/runtime-state-helpers.d.ts +69 -0
- package/dist/device/runtime-state-helpers.d.ts.map +1 -0
- package/dist/device/system-mirror.d.ts +318 -0
- package/dist/device/system-mirror.d.ts.map +1 -0
- package/dist/device/zod-to-config-ui.d.ts +23 -0
- package/dist/device/zod-to-config-ui.d.ts.map +1 -0
- package/dist/disposer-chain.d.ts +32 -0
- package/dist/disposer-chain.d.ts.map +1 -0
- package/dist/enums/event-category.d.ts +361 -0
- package/dist/enums/event-category.d.ts.map +1 -0
- package/dist/enums/event-source-type.d.ts +8 -0
- package/dist/enums/event-source-type.d.ts.map +1 -0
- package/dist/enums/index.d.ts +3 -0
- package/dist/enums/index.d.ts.map +1 -0
- package/dist/generated/addon-api.d.ts +14604 -3217
- package/dist/generated/addon-api.d.ts.map +1 -1
- package/dist/generated/cap-status-types.d.ts +51 -0
- package/dist/generated/cap-status-types.d.ts.map +1 -0
- package/dist/generated/capability-router-map.d.ts +278 -0
- package/dist/generated/capability-router-map.d.ts.map +1 -0
- package/dist/generated/device-local-state.d.ts +82 -0
- package/dist/generated/device-local-state.d.ts.map +1 -0
- package/dist/generated/device-proxy.d.ts +146 -0
- package/dist/generated/device-proxy.d.ts.map +1 -0
- package/dist/generated/system-proxy.d.ts +92 -0
- package/dist/generated/system-proxy.d.ts.map +1 -0
- package/dist/helpers/bind-addon-actions.d.ts +19 -0
- package/dist/helpers/bind-addon-actions.d.ts.map +1 -0
- package/dist/index.d.ts +91 -22
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4843 -477
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4832 -415
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces/addon.d.ts +760 -132
- package/dist/interfaces/addon.d.ts.map +1 -1
- package/dist/interfaces/advanced-notifier.d.ts +3 -2
- package/dist/interfaces/advanced-notifier.d.ts.map +1 -1
- package/dist/interfaces/agent-protocol.d.ts +17 -173
- package/dist/interfaces/agent-protocol.d.ts.map +1 -1
- package/dist/interfaces/agent.d.ts +61 -0
- package/dist/interfaces/agent.d.ts.map +1 -1
- package/dist/interfaces/alerts.d.ts +14 -0
- package/dist/interfaces/alerts.d.ts.map +1 -0
- package/dist/interfaces/analysis-persistence.d.ts +37 -19
- package/dist/interfaces/analysis-persistence.d.ts.map +1 -1
- package/dist/interfaces/analysis.d.ts +33 -4
- package/dist/interfaces/analysis.d.ts.map +1 -1
- package/dist/interfaces/api-responses.d.ts +124 -0
- package/dist/interfaces/api-responses.d.ts.map +1 -0
- package/dist/interfaces/api-shared.d.ts +5 -79
- package/dist/interfaces/api-shared.d.ts.map +1 -1
- package/dist/interfaces/audio-analyzer.d.ts +49 -0
- package/dist/interfaces/audio-analyzer.d.ts.map +1 -0
- package/dist/interfaces/audio-codec.d.ts +123 -0
- package/dist/interfaces/audio-codec.d.ts.map +1 -0
- package/dist/interfaces/audio-inference-engine.d.ts +19 -0
- package/dist/interfaces/audio-inference-engine.d.ts.map +1 -0
- package/dist/interfaces/auth-provider.d.ts.map +1 -1
- package/dist/interfaces/auth.d.ts +4 -25
- package/dist/interfaces/auth.d.ts.map +1 -1
- package/dist/interfaces/camera-pipeline.d.ts +7 -20
- package/dist/interfaces/camera-pipeline.d.ts.map +1 -1
- package/dist/interfaces/capability.d.ts +171 -24
- package/dist/interfaces/capability.d.ts.map +1 -1
- package/dist/interfaces/config-ui.d.ts +746 -24
- package/dist/interfaces/config-ui.d.ts.map +1 -1
- package/dist/interfaces/context.d.ts +9 -4
- package/dist/interfaces/context.d.ts.map +1 -1
- package/dist/interfaces/decoder.d.ts +38 -3
- package/dist/interfaces/decoder.d.ts.map +1 -1
- package/dist/interfaces/detection-addon.d.ts +6 -6
- package/dist/interfaces/detection-addon.d.ts.map +1 -1
- package/dist/interfaces/device-capabilities/camera.d.ts +95 -18
- package/dist/interfaces/device-capabilities/camera.d.ts.map +1 -1
- package/dist/interfaces/device-capabilities/index.d.ts +0 -13
- package/dist/interfaces/device-capabilities/index.d.ts.map +1 -1
- package/dist/interfaces/device-provider.d.ts +18 -16
- package/dist/interfaces/device-provider.d.ts.map +1 -1
- package/dist/interfaces/device.d.ts +4 -21
- package/dist/interfaces/device.d.ts.map +1 -1
- package/dist/interfaces/embedding-encoder.d.ts +19 -0
- package/dist/interfaces/embedding-encoder.d.ts.map +1 -0
- package/dist/interfaces/engine-slots.d.ts +10 -0
- package/dist/interfaces/engine-slots.d.ts.map +1 -0
- package/dist/interfaces/event-bus.d.ts +710 -26
- package/dist/interfaces/event-bus.d.ts.map +1 -1
- package/dist/interfaces/inference-capabilities.d.ts +0 -17
- package/dist/interfaces/inference-capabilities.d.ts.map +1 -1
- package/dist/interfaces/inference-engine.d.ts +30 -10
- package/dist/interfaces/inference-engine.d.ts.map +1 -1
- package/dist/interfaces/integration-registry.d.ts +20 -20
- package/dist/interfaces/integration-registry.d.ts.map +1 -1
- package/dist/interfaces/kernel-abstractions.d.ts +83 -0
- package/dist/interfaces/kernel-abstractions.d.ts.map +1 -0
- package/dist/interfaces/logging.d.ts +89 -8
- package/dist/interfaces/logging.d.ts.map +1 -1
- package/dist/interfaces/metrics-provider.d.ts +17 -0
- package/dist/interfaces/metrics-provider.d.ts.map +1 -0
- package/dist/interfaces/network-quality.d.ts +4 -4
- package/dist/interfaces/network.d.ts +0 -16
- package/dist/interfaces/network.d.ts.map +1 -1
- package/dist/interfaces/notification.d.ts +1 -1
- package/dist/interfaces/pipeline-executor-capability.d.ts +200 -0
- package/dist/interfaces/pipeline-executor-capability.d.ts.map +1 -0
- package/dist/interfaces/pipeline-orchestrator-capability.d.ts +165 -0
- package/dist/interfaces/pipeline-orchestrator-capability.d.ts.map +1 -0
- package/dist/interfaces/pipeline-runner-capability.d.ts +147 -0
- package/dist/interfaces/pipeline-runner-capability.d.ts.map +1 -0
- package/dist/interfaces/pipeline-runner.d.ts +18 -2
- package/dist/interfaces/pipeline-runner.d.ts.map +1 -1
- package/dist/interfaces/platform.d.ts +1 -1
- package/dist/interfaces/platform.d.ts.map +1 -1
- package/dist/interfaces/queryable.d.ts +26 -0
- package/dist/interfaces/queryable.d.ts.map +1 -0
- package/dist/interfaces/raw-tensor-engine.d.ts +16 -0
- package/dist/interfaces/raw-tensor-engine.d.ts.map +1 -0
- package/dist/interfaces/readiness.d.ts +101 -0
- package/dist/interfaces/readiness.d.ts.map +1 -0
- package/dist/interfaces/repl.d.ts +1 -1
- package/dist/interfaces/restreamer.d.ts +3 -3
- package/dist/interfaces/scoped-token.d.ts +1 -21
- package/dist/interfaces/scoped-token.d.ts.map +1 -1
- package/dist/interfaces/server-analysis.d.ts +30 -87
- package/dist/interfaces/server-analysis.d.ts.map +1 -1
- package/dist/interfaces/storage-location.d.ts +120 -0
- package/dist/interfaces/storage-location.d.ts.map +1 -0
- package/dist/interfaces/storage.d.ts +124 -50
- package/dist/interfaces/storage.d.ts.map +1 -1
- package/dist/interfaces/stream-broker.d.ts +285 -17
- package/dist/interfaces/stream-broker.d.ts.map +1 -1
- package/dist/interfaces/webrtc-provider.d.ts +24 -0
- package/dist/interfaces/webrtc-provider.d.ts.map +1 -1
- package/dist/node.d.ts +6 -0
- package/dist/node.d.ts.map +1 -0
- package/dist/node.js +481 -0
- package/dist/node.js.map +1 -0
- package/dist/node.mjs +443 -0
- package/dist/node.mjs.map +1 -0
- package/dist/readiness/index.d.ts +3 -0
- package/dist/readiness/index.d.ts.map +1 -0
- package/dist/readiness/readiness-registry.d.ts +183 -0
- package/dist/readiness/readiness-registry.d.ts.map +1 -0
- package/dist/schemas/auth-records.d.ts +81 -0
- package/dist/schemas/auth-records.d.ts.map +1 -0
- package/dist/storage/filesystem-storage-provider.d.ts +37 -0
- package/dist/storage/filesystem-storage-provider.d.ts.map +1 -0
- package/dist/types/agent-pipeline-settings.d.ts +94 -0
- package/dist/types/agent-pipeline-settings.d.ts.map +1 -0
- package/dist/types/camera-pipeline.d.ts +58 -0
- package/dist/types/camera-pipeline.d.ts.map +1 -0
- package/dist/types/detection.d.ts +195 -38
- package/dist/types/detection.d.ts.map +1 -1
- package/dist/types/device-type.d.ts +4 -0
- package/dist/types/device-type.d.ts.map +1 -1
- package/dist/types/engine-output.d.ts +24 -0
- package/dist/types/engine-output.d.ts.map +1 -0
- package/dist/types/io.d.ts +57 -3
- package/dist/types/io.d.ts.map +1 -1
- package/dist/types/models.d.ts +3 -1
- package/dist/types/models.d.ts.map +1 -1
- package/dist/types/pipeline-schema.d.ts +15 -72
- package/dist/types/pipeline-schema.d.ts.map +1 -1
- package/dist/types/pipeline-step.d.ts +201 -0
- package/dist/types/pipeline-step.d.ts.map +1 -0
- package/dist/types/pipeline.d.ts +24 -1
- package/dist/types/pipeline.d.ts.map +1 -1
- package/dist/utils/element-config-store.d.ts +29 -0
- package/dist/utils/element-config-store.d.ts.map +1 -0
- package/dist/utils/err-msg.d.ts +7 -0
- package/dist/utils/err-msg.d.ts.map +1 -0
- package/dist/utils/json-safe.d.ts +33 -0
- package/dist/utils/json-safe.d.ts.map +1 -0
- package/dist/utils/mask-url.d.ts +10 -0
- package/dist/utils/mask-url.d.ts.map +1 -0
- package/dist/utils/ring-buffer.d.ts +16 -0
- package/dist/utils/ring-buffer.d.ts.map +1 -0
- package/dist/utils/run-inference-step.d.ts +26 -0
- package/dist/utils/run-inference-step.d.ts.map +1 -0
- package/dist/utils/runtime-mapping.d.ts +88 -0
- package/dist/utils/runtime-mapping.d.ts.map +1 -0
- package/dist/utils/zone-rule-eval.d.ts +47 -0
- package/dist/utils/zone-rule-eval.d.ts.map +1 -0
- package/package.json +11 -2
- package/dist/__tests__/addon-capability-provider.test.d.ts +0 -2
- package/dist/__tests__/addon-capability-provider.test.d.ts.map +0 -1
- package/dist/__tests__/addon-declaration.test.d.ts +0 -2
- package/dist/__tests__/addon-declaration.test.d.ts.map +0 -1
- package/dist/__tests__/capability.test.d.ts +0 -2
- package/dist/__tests__/capability.test.d.ts.map +0 -1
- package/dist/interfaces/addon-i18n.d.ts +0 -41
- package/dist/interfaces/addon-i18n.d.ts.map +0 -1
- package/dist/interfaces/classifier.d.ts +0 -8
- package/dist/interfaces/classifier.d.ts.map +0 -1
- package/dist/interfaces/cropper.d.ts +0 -8
- package/dist/interfaces/cropper.d.ts.map +0 -1
- package/dist/interfaces/detector.d.ts +0 -8
- package/dist/interfaces/detector.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/accessory.d.ts +0 -14
- package/dist/interfaces/device-capabilities/accessory.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/audio-detector.d.ts +0 -12
- package/dist/interfaces/device-capabilities/audio-detector.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/doorbell.d.ts +0 -10
- package/dist/interfaces/device-capabilities/doorbell.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/events.d.ts +0 -47
- package/dist/interfaces/device-capabilities/events.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/motion-sensor.d.ts +0 -7
- package/dist/interfaces/device-capabilities/motion-sensor.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/native-detection.d.ts +0 -14
- package/dist/interfaces/device-capabilities/native-detection.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/object-detector.d.ts +0 -59
- package/dist/interfaces/device-capabilities/object-detector.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/pan-tilt-zoom.d.ts +0 -29
- package/dist/interfaces/device-capabilities/pan-tilt-zoom.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/recording.d.ts +0 -18
- package/dist/interfaces/device-capabilities/recording.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/siren.d.ts +0 -8
- package/dist/interfaces/device-capabilities/siren.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/status-light.d.ts +0 -7
- package/dist/interfaces/device-capabilities/status-light.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/switch.d.ts +0 -8
- package/dist/interfaces/device-capabilities/switch.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/two-way-audio.d.ts +0 -8
- package/dist/interfaces/device-capabilities/two-way-audio.d.ts.map +0 -1
- package/dist/interfaces/device-capability.d.ts +0 -14
- package/dist/interfaces/device-capability.d.ts.map +0 -1
- package/dist/interfaces/model-catalog.d.ts +0 -25
- package/dist/interfaces/model-catalog.d.ts.map +0 -1
- package/dist/interfaces/refiner.d.ts +0 -8
- package/dist/interfaces/refiner.d.ts.map +0 -1
- package/dist/interfaces/repositories.d.ts +0 -20
- package/dist/interfaces/repositories.d.ts.map +0 -1
- package/dist/interfaces/scene-intelligence.d.ts +0 -21
- package/dist/interfaces/scene-intelligence.d.ts.map +0 -1
- package/dist/interfaces/storage-backend.d.ts +0 -27
- package/dist/interfaces/storage-backend.d.ts.map +0 -1
- package/dist/interfaces/worker-protocol.d.ts +0 -110
- package/dist/interfaces/worker-protocol.d.ts.map +0 -1
- package/dist/schemas/system-settings-schemas.d.ts +0 -27
- package/dist/schemas/system-settings-schemas.d.ts.map +0 -1
- package/dist/types/benchmark.d.ts +0 -112
- package/dist/types/benchmark.d.ts.map +0 -1
- package/dist/types/zones.d.ts +0 -48
- package/dist/types/zones.d.ts.map +0 -1
|
@@ -0,0 +1,416 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
import type { IStreamBroker } from '../interfaces/stream-broker.js';
|
|
4
|
+
/**
|
|
5
|
+
* Per-broker RTSP restream entry. The broker exposes the public RTSP
|
|
6
|
+
* restream URL for every active profile slot — consumers read the URL
|
|
7
|
+
* here instead of constructing it from broker internals.
|
|
8
|
+
*/
|
|
9
|
+
declare const RtspRestreamEntrySchema: z.ZodObject<{
|
|
10
|
+
brokerId: z.ZodString;
|
|
11
|
+
url: z.ZodString;
|
|
12
|
+
mutedUrl: z.ZodString;
|
|
13
|
+
enabled: z.ZodBoolean;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
/**
|
|
16
|
+
* Individual-client shapes for the `listClients` roster. One row per
|
|
17
|
+
* consumer of the chosen broker slot (profile) — RTSP sessions,
|
|
18
|
+
* decoded-frame subscribers, audio chunks.
|
|
19
|
+
*/
|
|
20
|
+
export declare const BrokerRtspClientSchema: z.ZodObject<{
|
|
21
|
+
sessionId: z.ZodString;
|
|
22
|
+
remoteAddr: z.ZodString;
|
|
23
|
+
playing: z.ZodBoolean;
|
|
24
|
+
muted: z.ZodBoolean;
|
|
25
|
+
connectedAt: z.ZodNumber;
|
|
26
|
+
lastRtpAt: z.ZodNumber;
|
|
27
|
+
bytesSent: z.ZodNumber;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export declare const BrokerDecodedClientSchema: z.ZodObject<{
|
|
30
|
+
tag: z.ZodString;
|
|
31
|
+
subscribedAt: z.ZodNumber;
|
|
32
|
+
maxFps: z.ZodNumber;
|
|
33
|
+
framesDelivered: z.ZodNumber;
|
|
34
|
+
framesDropped: z.ZodNumber;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
export declare const BrokerAudioClientSchema: z.ZodObject<{
|
|
37
|
+
tag: z.ZodString;
|
|
38
|
+
subscribedAt: z.ZodNumber;
|
|
39
|
+
chunksDelivered: z.ZodNumber;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export declare const BrokerClientsSchema: z.ZodObject<{
|
|
42
|
+
rtsp: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
43
|
+
sessionId: z.ZodString;
|
|
44
|
+
remoteAddr: z.ZodString;
|
|
45
|
+
playing: z.ZodBoolean;
|
|
46
|
+
muted: z.ZodBoolean;
|
|
47
|
+
connectedAt: z.ZodNumber;
|
|
48
|
+
lastRtpAt: z.ZodNumber;
|
|
49
|
+
bytesSent: z.ZodNumber;
|
|
50
|
+
}, z.core.$strip>>>;
|
|
51
|
+
decoded: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
52
|
+
tag: z.ZodString;
|
|
53
|
+
subscribedAt: z.ZodNumber;
|
|
54
|
+
maxFps: z.ZodNumber;
|
|
55
|
+
framesDelivered: z.ZodNumber;
|
|
56
|
+
framesDropped: z.ZodNumber;
|
|
57
|
+
}, z.core.$strip>>>;
|
|
58
|
+
audio: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
59
|
+
tag: z.ZodString;
|
|
60
|
+
subscribedAt: z.ZodNumber;
|
|
61
|
+
chunksDelivered: z.ZodNumber;
|
|
62
|
+
}, z.core.$strip>>>;
|
|
63
|
+
pipeClients: z.ZodNumber;
|
|
64
|
+
encodedSubscribers: z.ZodNumber;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
export type BrokerRtspClient = z.infer<typeof BrokerRtspClientSchema>;
|
|
67
|
+
export type BrokerDecodedClient = z.infer<typeof BrokerDecodedClientSchema>;
|
|
68
|
+
export type BrokerAudioClient = z.infer<typeof BrokerAudioClientSchema>;
|
|
69
|
+
export type BrokerClients = z.infer<typeof BrokerClientsSchema>;
|
|
70
|
+
/**
|
|
71
|
+
* Reason rendered by the broker's placeholder image while no live RTP
|
|
72
|
+
* is flowing. Each value maps 1:1 to a pre-encoded H.264 keyframe in
|
|
73
|
+
* `addon-stream-broker/.../placeholder-frames.ts`. Keep aligned with
|
|
74
|
+
* `PlaceholderKind` over there — the union here is the public surface
|
|
75
|
+
* (cap input + provider type) and is the single source of truth.
|
|
76
|
+
*/
|
|
77
|
+
export declare const PlaceholderReasonSchema: z.ZodEnum<{
|
|
78
|
+
disabled: "disabled";
|
|
79
|
+
reconnecting: "reconnecting";
|
|
80
|
+
sleeping: "sleeping";
|
|
81
|
+
offline: "offline";
|
|
82
|
+
waking: "waking";
|
|
83
|
+
}>;
|
|
84
|
+
export type PlaceholderReason = z.infer<typeof PlaceholderReasonSchema>;
|
|
85
|
+
/**
|
|
86
|
+
* Stream broker — system-wide singleton cap.
|
|
87
|
+
*
|
|
88
|
+
* Owns two registries per device:
|
|
89
|
+
* - `cameraStreams`: the pool of physical streams published by device
|
|
90
|
+
* providers (and potentially third-party addons, e.g. an RTMP
|
|
91
|
+
* discovery addon). Ephemeral: each provider re-publishes in its
|
|
92
|
+
* own `onInitialize`.
|
|
93
|
+
* - `profileMap`: persistent operator-intent mapping
|
|
94
|
+
* `{high?, mid?, low?} -> camStreamId`. Persisted in the broker's
|
|
95
|
+
* own storage, not in `device.config`.
|
|
96
|
+
*
|
|
97
|
+
* Up to 3 brokers per device keyed `${deviceId}/${profile}`. Each
|
|
98
|
+
* broker ingests from the URL of the cam stream currently assigned via
|
|
99
|
+
* `profileMap[profile]`. Changing the assignment tears down the broker
|
|
100
|
+
* and rebuilds it against the new source — stream id seen by consumers
|
|
101
|
+
* never changes.
|
|
102
|
+
*
|
|
103
|
+
* Per-device reads (what's published, what's assigned) live on the
|
|
104
|
+
* device-scoped `camera-streams` cap, surfaced via `fetchDevice()`. The
|
|
105
|
+
* methods below are either mutations or system-wide dumps.
|
|
106
|
+
*/
|
|
107
|
+
export declare const streamBrokerCapability: {
|
|
108
|
+
readonly name: "stream-broker";
|
|
109
|
+
readonly scope: "system";
|
|
110
|
+
readonly mode: "singleton";
|
|
111
|
+
readonly exposesDeviceSettings: true;
|
|
112
|
+
readonly methods: {
|
|
113
|
+
/**
|
|
114
|
+
* Register a physical camera stream as an input option. Idempotent
|
|
115
|
+
* for (deviceId, camStreamId) — re-publishing updates metadata
|
|
116
|
+
* without disturbing profile assignments. The provider calls this
|
|
117
|
+
* in `onInitialize` for each stream it offers. Third-party addons
|
|
118
|
+
* may also publish (e.g. an RTMP discovery layer) — camstack has
|
|
119
|
+
* no notion of "owner" beyond the (deviceId, camStreamId) key.
|
|
120
|
+
*/
|
|
121
|
+
readonly publishCameraStream: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
122
|
+
deviceId: z.ZodNumber;
|
|
123
|
+
camStreamId: z.ZodString;
|
|
124
|
+
kind: z.ZodEnum<{
|
|
125
|
+
"pull-rtsp": "pull-rtsp";
|
|
126
|
+
"pull-rtmp": "pull-rtmp";
|
|
127
|
+
"pull-http": "pull-http";
|
|
128
|
+
"pull-rfc4571": "pull-rfc4571";
|
|
129
|
+
"push-annexb": "push-annexb";
|
|
130
|
+
}>;
|
|
131
|
+
url: z.ZodOptional<z.ZodString>;
|
|
132
|
+
codec: z.ZodOptional<z.ZodString>;
|
|
133
|
+
resolution: z.ZodOptional<z.ZodObject<{
|
|
134
|
+
width: z.ZodNumber;
|
|
135
|
+
height: z.ZodNumber;
|
|
136
|
+
}, z.core.$strip>>;
|
|
137
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
138
|
+
label: z.ZodOptional<z.ZodString>;
|
|
139
|
+
deviceFeatures: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
140
|
+
autoEligible: z.ZodOptional<z.ZodBoolean>;
|
|
141
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
142
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
143
|
+
success: z.ZodLiteral<true>;
|
|
144
|
+
}, z.core.$strip>, "mutation">;
|
|
145
|
+
readonly retractCameraStream: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
146
|
+
deviceId: z.ZodNumber;
|
|
147
|
+
camStreamId: z.ZodString;
|
|
148
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
149
|
+
success: z.ZodLiteral<true>;
|
|
150
|
+
}, z.core.$strip>, "mutation">;
|
|
151
|
+
/**
|
|
152
|
+
* Assign a cam stream to a profile slot. Tears down any existing
|
|
153
|
+
* broker for that slot and rebuilds against the new source. Persists
|
|
154
|
+
* the choice — survives reboots.
|
|
155
|
+
*/
|
|
156
|
+
readonly assignProfile: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
157
|
+
deviceId: z.ZodNumber;
|
|
158
|
+
profile: z.ZodEnum<{
|
|
159
|
+
high: "high";
|
|
160
|
+
mid: "mid";
|
|
161
|
+
low: "low";
|
|
162
|
+
}>;
|
|
163
|
+
camStreamId: z.ZodString;
|
|
164
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
165
|
+
success: z.ZodLiteral<true>;
|
|
166
|
+
}, z.core.$strip>, "mutation">;
|
|
167
|
+
readonly unassignProfile: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
168
|
+
deviceId: z.ZodNumber;
|
|
169
|
+
profile: z.ZodEnum<{
|
|
170
|
+
high: "high";
|
|
171
|
+
mid: "mid";
|
|
172
|
+
low: "low";
|
|
173
|
+
}>;
|
|
174
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
175
|
+
success: z.ZodLiteral<true>;
|
|
176
|
+
}, z.core.$strip>, "mutation">;
|
|
177
|
+
/**
|
|
178
|
+
* Full dump of every published cam stream across every device.
|
|
179
|
+
* For dashboards and cross-device tooling; per-device reads go
|
|
180
|
+
* through the `camera-streams` cap on the device proxy.
|
|
181
|
+
*/
|
|
182
|
+
readonly listAllCameraStreams: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
183
|
+
camStreamId: z.ZodString;
|
|
184
|
+
deviceId: z.ZodNumber;
|
|
185
|
+
kind: z.ZodEnum<{
|
|
186
|
+
"pull-rtsp": "pull-rtsp";
|
|
187
|
+
"pull-rtmp": "pull-rtmp";
|
|
188
|
+
"pull-http": "pull-http";
|
|
189
|
+
"pull-rfc4571": "pull-rfc4571";
|
|
190
|
+
"push-annexb": "push-annexb";
|
|
191
|
+
}>;
|
|
192
|
+
url: z.ZodOptional<z.ZodString>;
|
|
193
|
+
codec: z.ZodOptional<z.ZodString>;
|
|
194
|
+
resolution: z.ZodOptional<z.ZodObject<{
|
|
195
|
+
width: z.ZodNumber;
|
|
196
|
+
height: z.ZodNumber;
|
|
197
|
+
}, z.core.$strip>>;
|
|
198
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
199
|
+
label: z.ZodOptional<z.ZodString>;
|
|
200
|
+
deviceFeatures: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
201
|
+
autoEligible: z.ZodOptional<z.ZodBoolean>;
|
|
202
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
203
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
204
|
+
readonly listAllProfileSlots: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
205
|
+
deviceId: z.ZodNumber;
|
|
206
|
+
profile: z.ZodEnum<{
|
|
207
|
+
high: "high";
|
|
208
|
+
mid: "mid";
|
|
209
|
+
low: "low";
|
|
210
|
+
}>;
|
|
211
|
+
brokerId: z.ZodString;
|
|
212
|
+
sourceCamStreamId: z.ZodNullable<z.ZodString>;
|
|
213
|
+
status: z.ZodEnum<{
|
|
214
|
+
error: "error";
|
|
215
|
+
streaming: "streaming";
|
|
216
|
+
idle: "idle";
|
|
217
|
+
connecting: "connecting";
|
|
218
|
+
unassigned: "unassigned";
|
|
219
|
+
}>;
|
|
220
|
+
resolution: z.ZodOptional<z.ZodObject<{
|
|
221
|
+
width: z.ZodNumber;
|
|
222
|
+
height: z.ZodNumber;
|
|
223
|
+
}, z.core.$strip>>;
|
|
224
|
+
codec: z.ZodOptional<z.ZodString>;
|
|
225
|
+
preBufferSec: z.ZodOptional<z.ZodNumber>;
|
|
226
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
227
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
228
|
+
readonly getBrokerStats: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
229
|
+
brokerId: z.ZodString;
|
|
230
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
231
|
+
status: z.ZodEnum<{
|
|
232
|
+
error: "error";
|
|
233
|
+
streaming: "streaming";
|
|
234
|
+
stopped: "stopped";
|
|
235
|
+
idle: "idle";
|
|
236
|
+
connecting: "connecting";
|
|
237
|
+
}>;
|
|
238
|
+
inputFps: z.ZodNumber;
|
|
239
|
+
decodeFps: z.ZodNumber;
|
|
240
|
+
encodedSubscribers: z.ZodNumber;
|
|
241
|
+
decodedSubscribers: z.ZodNumber;
|
|
242
|
+
uptimeMs: z.ZodNumber;
|
|
243
|
+
bitrateKbps: z.ZodNumber;
|
|
244
|
+
idrIntervalMs: z.ZodNumber;
|
|
245
|
+
codec: z.ZodOptional<z.ZodString>;
|
|
246
|
+
totalBytes: z.ZodNumber;
|
|
247
|
+
packetCount: z.ZodNumber;
|
|
248
|
+
rtspClients: z.ZodNumber;
|
|
249
|
+
pipeClients: z.ZodNumber;
|
|
250
|
+
preBufferSec: z.ZodNumber;
|
|
251
|
+
preBufferMs: z.ZodNumber;
|
|
252
|
+
preBufferPackets: z.ZodNumber;
|
|
253
|
+
decoderNodeId: z.ZodNullable<z.ZodString>;
|
|
254
|
+
audio: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
255
|
+
codec: z.ZodString;
|
|
256
|
+
sampleRate: z.ZodNumber;
|
|
257
|
+
channels: z.ZodNumber;
|
|
258
|
+
supported: z.ZodBoolean;
|
|
259
|
+
}, z.core.$strip>>>;
|
|
260
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
261
|
+
readonly listClients: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
262
|
+
brokerId: z.ZodString;
|
|
263
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
264
|
+
rtsp: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
265
|
+
sessionId: z.ZodString;
|
|
266
|
+
remoteAddr: z.ZodString;
|
|
267
|
+
playing: z.ZodBoolean;
|
|
268
|
+
muted: z.ZodBoolean;
|
|
269
|
+
connectedAt: z.ZodNumber;
|
|
270
|
+
lastRtpAt: z.ZodNumber;
|
|
271
|
+
bytesSent: z.ZodNumber;
|
|
272
|
+
}, z.core.$strip>>>;
|
|
273
|
+
decoded: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
274
|
+
tag: z.ZodString;
|
|
275
|
+
subscribedAt: z.ZodNumber;
|
|
276
|
+
maxFps: z.ZodNumber;
|
|
277
|
+
framesDelivered: z.ZodNumber;
|
|
278
|
+
framesDropped: z.ZodNumber;
|
|
279
|
+
}, z.core.$strip>>>;
|
|
280
|
+
audio: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
281
|
+
tag: z.ZodString;
|
|
282
|
+
subscribedAt: z.ZodNumber;
|
|
283
|
+
chunksDelivered: z.ZodNumber;
|
|
284
|
+
}, z.core.$strip>>>;
|
|
285
|
+
pipeClients: z.ZodNumber;
|
|
286
|
+
encodedSubscribers: z.ZodNumber;
|
|
287
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
288
|
+
readonly killClient: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
289
|
+
brokerId: z.ZodString;
|
|
290
|
+
channel: z.ZodEnum<{
|
|
291
|
+
audio: "audio";
|
|
292
|
+
rtsp: "rtsp";
|
|
293
|
+
decoded: "decoded";
|
|
294
|
+
}>;
|
|
295
|
+
handle: z.ZodString;
|
|
296
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
297
|
+
killed: z.ZodBoolean;
|
|
298
|
+
}, z.core.$strip>, "mutation">;
|
|
299
|
+
/** Rebuild the broker for a profile slot in place (re-dial source). */
|
|
300
|
+
readonly restartProfile: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
301
|
+
deviceId: z.ZodNumber;
|
|
302
|
+
profile: z.ZodEnum<{
|
|
303
|
+
high: "high";
|
|
304
|
+
mid: "mid";
|
|
305
|
+
low: "low";
|
|
306
|
+
}>;
|
|
307
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
308
|
+
success: z.ZodBoolean;
|
|
309
|
+
}, z.core.$strip>, "mutation">;
|
|
310
|
+
readonly getStreamUrl: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
311
|
+
streamId: z.ZodString;
|
|
312
|
+
format: z.ZodEnum<{
|
|
313
|
+
rtsp: "rtsp";
|
|
314
|
+
webrtc: "webrtc";
|
|
315
|
+
hls: "hls";
|
|
316
|
+
mjpeg: "mjpeg";
|
|
317
|
+
}>;
|
|
318
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
319
|
+
url: z.ZodString;
|
|
320
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
321
|
+
/**
|
|
322
|
+
* Return the live IStreamBroker instance for a given brokerId. Same
|
|
323
|
+
* LOCAL-ONLY contract as before: callers (pipeline-runner) must be
|
|
324
|
+
* co-located. BrokerId is `${deviceId}/${camStreamId}` — profile
|
|
325
|
+
* lookup goes through `assignments` if a caller starts from a
|
|
326
|
+
* profile.
|
|
327
|
+
*/
|
|
328
|
+
readonly getBroker: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
329
|
+
brokerId: z.ZodString;
|
|
330
|
+
}, z.core.$strip>, z.ZodCustom<IStreamBroker | null, IStreamBroker | null>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
331
|
+
readonly setPreBufferDuration: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
332
|
+
brokerId: z.ZodString;
|
|
333
|
+
seconds: z.ZodNumber;
|
|
334
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
335
|
+
readonly getPreBufferInfo: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
336
|
+
brokerId: z.ZodString;
|
|
337
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
338
|
+
configuredSec: z.ZodNumber;
|
|
339
|
+
bufferedMs: z.ZodNumber;
|
|
340
|
+
packetCount: z.ZodNumber;
|
|
341
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
342
|
+
readonly getRtspPort: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodNumber, import("./capability-definition.js").CapabilityMethodKind>;
|
|
343
|
+
readonly getAllRtspEntries: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
344
|
+
hostname: z.ZodOptional<z.ZodString>;
|
|
345
|
+
}, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
346
|
+
brokerId: z.ZodString;
|
|
347
|
+
url: z.ZodString;
|
|
348
|
+
mutedUrl: z.ZodString;
|
|
349
|
+
enabled: z.ZodBoolean;
|
|
350
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
351
|
+
readonly getRtspEntry: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
352
|
+
brokerId: z.ZodString;
|
|
353
|
+
hostname: z.ZodOptional<z.ZodString>;
|
|
354
|
+
}, z.core.$strip>, z.ZodNullable<z.ZodObject<{
|
|
355
|
+
brokerId: z.ZodString;
|
|
356
|
+
url: z.ZodString;
|
|
357
|
+
mutedUrl: z.ZodString;
|
|
358
|
+
enabled: z.ZodBoolean;
|
|
359
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
360
|
+
readonly regenerateRtspToken: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
361
|
+
brokerId: z.ZodString;
|
|
362
|
+
}, z.core.$strip>, z.ZodNullable<z.ZodString>, "mutation">;
|
|
363
|
+
readonly setRtspEnabled: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
364
|
+
brokerId: z.ZodString;
|
|
365
|
+
enabled: z.ZodBoolean;
|
|
366
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
367
|
+
readonly isRtspEnabled: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
368
|
+
brokerId: z.ZodString;
|
|
369
|
+
}, z.core.$strip>, z.ZodBoolean, import("./capability-definition.js").CapabilityMethodKind>;
|
|
370
|
+
};
|
|
371
|
+
readonly events: {
|
|
372
|
+
/**
|
|
373
|
+
* Emitted when a profile starts consuming a push-kind cam stream.
|
|
374
|
+
* Push-kind providers (e.g. Reolink Baichuan native streams)
|
|
375
|
+
* subscribe and begin emitting packets only on demand — battery
|
|
376
|
+
* cams stay asleep until someone actually watches.
|
|
377
|
+
*/
|
|
378
|
+
readonly onCamStreamDemand: import("./capability-definition.js").CapabilityEventSchema<z.ZodObject<{
|
|
379
|
+
deviceId: z.ZodNumber;
|
|
380
|
+
camStreamId: z.ZodString;
|
|
381
|
+
profile: z.ZodEnum<{
|
|
382
|
+
high: "high";
|
|
383
|
+
mid: "mid";
|
|
384
|
+
low: "low";
|
|
385
|
+
}>;
|
|
386
|
+
}, z.core.$strip>>;
|
|
387
|
+
/**
|
|
388
|
+
* Emitted when the last profile consuming a push-kind cam stream
|
|
389
|
+
* releases it. Providers tear down upstream connections on this
|
|
390
|
+
* signal.
|
|
391
|
+
*/
|
|
392
|
+
readonly onCamStreamIdle: import("./capability-definition.js").CapabilityEventSchema<z.ZodObject<{
|
|
393
|
+
deviceId: z.ZodNumber;
|
|
394
|
+
camStreamId: z.ZodString;
|
|
395
|
+
}, z.core.$strip>>;
|
|
396
|
+
/**
|
|
397
|
+
* Emitted by a broker that failed to dial a managed-loopback
|
|
398
|
+
* source (today: `pull-rfc4571`). The publisher's transport (e.g.
|
|
399
|
+
* the Reolink lib's RFC 4571 TCP server) idle-tears-down after
|
|
400
|
+
* ~15s with no clients and may rebind to a different port on
|
|
401
|
+
* recreate, leaving the URL the broker has cached stale. The owning
|
|
402
|
+
* camera provider re-runs its publish pipeline on receipt — that
|
|
403
|
+
* call self-heals the loopback server (`ensureRfc4571Server`) and
|
|
404
|
+
* `publishCameraStream` propagates the fresh URL back into the
|
|
405
|
+
* broker's source resolver.
|
|
406
|
+
*/
|
|
407
|
+
readonly onRequestStreamSourceRefresh: import("./capability-definition.js").CapabilityEventSchema<z.ZodObject<{
|
|
408
|
+
deviceId: z.ZodNumber;
|
|
409
|
+
camStreamId: z.ZodString;
|
|
410
|
+
brokerId: z.ZodString;
|
|
411
|
+
}, z.core.$strip>>;
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
export type IStreamBrokerProvider = InferProvider<typeof streamBrokerCapability>;
|
|
415
|
+
export { RtspRestreamEntrySchema };
|
|
416
|
+
//# sourceMappingURL=stream-broker.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stream-broker.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/stream-broker.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAA4C,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAMzG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAEnE;;;;GAIG;AACH,QAAA,MAAM,uBAAuB;;;;;iBAK3B,CAAA;AAEF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;iBAQjC,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;;iBAMpC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;iBAIlC,CAAA;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;iBAM9B,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AACrE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAC3E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AACvE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE/D;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB;;;;;;EAMlC,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAEvE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,sBAAsB;;;;;;QAO/B;;;;;;;WAOG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAkDH;;;;WAIG;;;;;;;;;;;;;;;;;;;;;;QAoBH;;;;WAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA4BH,uEAAuE;;;;;;;;;;;;;;;;;;;;;;QAiBvE;;;;;;WAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA2CH;;;;;WAKG;;;;;;;;;;QAMH;;;;WAIG;;;;;QAKH;;;;;;;;;;WAUG;;;;;;;CAOkC,CAAA;AAEzC,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAEhF,OAAO,EAAE,uBAAuB,EAAE,CAAA"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
declare const StreamFormatSchema: z.ZodEnum<{
|
|
4
|
+
rtsp: "rtsp";
|
|
5
|
+
webrtc: "webrtc";
|
|
6
|
+
hls: "hls";
|
|
7
|
+
mjpeg: "mjpeg";
|
|
8
|
+
}>;
|
|
9
|
+
declare const StreamInfoSchema: z.ZodObject<{
|
|
10
|
+
streamId: z.ZodString;
|
|
11
|
+
format: z.ZodEnum<{
|
|
12
|
+
rtsp: "rtsp";
|
|
13
|
+
webrtc: "webrtc";
|
|
14
|
+
hls: "hls";
|
|
15
|
+
mjpeg: "mjpeg";
|
|
16
|
+
}>;
|
|
17
|
+
url: z.ZodNullable<z.ZodString>;
|
|
18
|
+
active: z.ZodBoolean;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export declare const streamingEngineCapability: {
|
|
21
|
+
readonly name: "streaming-engine";
|
|
22
|
+
readonly scope: "system";
|
|
23
|
+
readonly mode: "singleton";
|
|
24
|
+
readonly internal: true;
|
|
25
|
+
readonly methods: {
|
|
26
|
+
readonly registerStream: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
27
|
+
streamId: z.ZodString;
|
|
28
|
+
sourceUrl: z.ZodString;
|
|
29
|
+
codec: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
31
|
+
readonly unregisterStream: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
32
|
+
streamId: z.ZodString;
|
|
33
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
34
|
+
readonly getStreamUrl: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
35
|
+
streamId: z.ZodString;
|
|
36
|
+
format: z.ZodEnum<{
|
|
37
|
+
rtsp: "rtsp";
|
|
38
|
+
webrtc: "webrtc";
|
|
39
|
+
hls: "hls";
|
|
40
|
+
mjpeg: "mjpeg";
|
|
41
|
+
}>;
|
|
42
|
+
}, z.core.$strip>, z.ZodNullable<z.ZodString>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
43
|
+
readonly listStreams: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodArray<z.ZodObject<{
|
|
44
|
+
streamId: z.ZodString;
|
|
45
|
+
format: z.ZodEnum<{
|
|
46
|
+
rtsp: "rtsp";
|
|
47
|
+
webrtc: "webrtc";
|
|
48
|
+
hls: "hls";
|
|
49
|
+
mjpeg: "mjpeg";
|
|
50
|
+
}>;
|
|
51
|
+
url: z.ZodNullable<z.ZodString>;
|
|
52
|
+
active: z.ZodBoolean;
|
|
53
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export type IStreamingEngineProvider = InferProvider<typeof streamingEngineCapability>;
|
|
57
|
+
export { StreamFormatSchema, StreamInfoSchema };
|
|
58
|
+
//# sourceMappingURL=streaming-engine.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"streaming-engine.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/streaming-engine.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAElG,QAAA,MAAM,kBAAkB;;;;;EAA6C,CAAA;AAErE,QAAA,MAAM,gBAAgB;;;;;;;;;;iBAKpB,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBG,CAAA;AAEzC,MAAM,MAAM,wBAAwB,GAAG,aAAa,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAEtF,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
import { DeviceType } from '../device/device-type.js';
|
|
4
|
+
/**
|
|
5
|
+
* Generic on/off switch cap for accessory children (siren, floodlight,
|
|
6
|
+
* spotlight, PIR toggle, chime silencer, autotrack enable, …). The cap
|
|
7
|
+
* owns ONLY the boolean state — driver-specific settings (brightness,
|
|
8
|
+
* sensitivity, schedule, duration) live on the device's own
|
|
9
|
+
* `getSettingsUISchema()` surface.
|
|
10
|
+
*/
|
|
11
|
+
export declare const SwitchStatusSchema: z.ZodObject<{
|
|
12
|
+
on: z.ZodBoolean;
|
|
13
|
+
lastChangedAt: z.ZodNumber;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export type SwitchStatus = z.infer<typeof SwitchStatusSchema>;
|
|
16
|
+
export declare const switchCapability: {
|
|
17
|
+
readonly name: "switch";
|
|
18
|
+
readonly scope: "device";
|
|
19
|
+
readonly mode: "singleton";
|
|
20
|
+
readonly deviceTypes: readonly [DeviceType.Switch, DeviceType.Siren, DeviceType.Light];
|
|
21
|
+
readonly methods: {
|
|
22
|
+
readonly setState: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
23
|
+
deviceId: z.ZodNumber;
|
|
24
|
+
on: z.ZodBoolean;
|
|
25
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
26
|
+
};
|
|
27
|
+
readonly events: {
|
|
28
|
+
readonly onStateChanged: {
|
|
29
|
+
readonly data: z.ZodObject<{
|
|
30
|
+
deviceId: z.ZodNumber;
|
|
31
|
+
on: z.ZodBoolean;
|
|
32
|
+
lastChangedAt: z.ZodNumber;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
readonly status: {
|
|
37
|
+
readonly schema: z.ZodObject<{
|
|
38
|
+
on: z.ZodBoolean;
|
|
39
|
+
lastChangedAt: z.ZodNumber;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
readonly kind: "command-driven";
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Runtime-state slice — the last applied on/off state, mirrored by
|
|
45
|
+
* the kernel. Read via `device.state.switch.value`; UI toggles do
|
|
46
|
+
* not need to re-query the provider after a setState mutation.
|
|
47
|
+
*/
|
|
48
|
+
readonly runtimeState: z.ZodObject<{
|
|
49
|
+
on: z.ZodBoolean;
|
|
50
|
+
lastChangedAt: z.ZodNumber;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
readonly settings: {
|
|
53
|
+
readonly bindings: readonly [{
|
|
54
|
+
readonly kind: "scalar";
|
|
55
|
+
readonly statusPath: "on";
|
|
56
|
+
readonly method: "setState";
|
|
57
|
+
readonly valueArg: "on";
|
|
58
|
+
readonly field: {
|
|
59
|
+
readonly label: "On";
|
|
60
|
+
readonly kind: "boolean";
|
|
61
|
+
};
|
|
62
|
+
}];
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
export type ISwitchProvider = InferProvider<typeof switchCapability>;
|
|
66
|
+
//# sourceMappingURL=switch.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/switch.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAClG,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAErD;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB;;;iBAI7B,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAE7D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;IAuB3B;;;;OAIG;;;;;;;;;;;;;;;;;CAWoC,CAAA;AAEzC,MAAM,MAAM,eAAe,GAAG,aAAa,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
/**
|
|
4
|
+
* system — system-scoped singleton capability exposing hub-level
|
|
5
|
+
* health, feature flags, network interface enumeration, and the
|
|
6
|
+
* analytics-suite retention controls.
|
|
7
|
+
*
|
|
8
|
+
* Implementation lives in the server's `FeatureService` plus the
|
|
9
|
+
* `analysis-data-persistence` singleton (provided by
|
|
10
|
+
* `addon-analytics-suite`). The provider is registered from
|
|
11
|
+
* `trpc.router.ts` against the existing services — no addon owns
|
|
12
|
+
* this surface end-to-end.
|
|
13
|
+
*
|
|
14
|
+
* Phase E of the API consolidation: previously a hand-written core
|
|
15
|
+
* router. Cap conversion lets the canonical hooks
|
|
16
|
+
* (`useSystemInfo`, `useSystemHealth`, `useSystemNetworkAddresses`,
|
|
17
|
+
* `useSystemGetRetentionConfig`, `useSystemSetRetentionConfig`,
|
|
18
|
+
* `useSystemForceRetentionCleanup`) flow through the same codegen
|
|
19
|
+
* as every other cap.
|
|
20
|
+
*/
|
|
21
|
+
declare const FeatureManifestSchema: z.ZodObject<{
|
|
22
|
+
streaming: z.ZodBoolean;
|
|
23
|
+
notifications: z.ZodBoolean;
|
|
24
|
+
objectDetection: z.ZodBoolean;
|
|
25
|
+
remoteAccess: z.ZodBoolean;
|
|
26
|
+
agentCluster: z.ZodBoolean;
|
|
27
|
+
smartHome: z.ZodBoolean;
|
|
28
|
+
recordings: z.ZodBoolean;
|
|
29
|
+
backup: z.ZodBoolean;
|
|
30
|
+
repl: z.ZodBoolean;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
declare const HealthStatusSchema: z.ZodObject<{
|
|
33
|
+
status: z.ZodLiteral<"ok">;
|
|
34
|
+
uptime: z.ZodNumber;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
declare const NetworkAddressSchema: z.ZodObject<{
|
|
37
|
+
name: z.ZodString;
|
|
38
|
+
address: z.ZodString;
|
|
39
|
+
family: z.ZodString;
|
|
40
|
+
internal: z.ZodBoolean;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
export declare const systemCapability: {
|
|
43
|
+
readonly name: "system";
|
|
44
|
+
readonly scope: "system";
|
|
45
|
+
readonly mode: "singleton";
|
|
46
|
+
readonly methods: {
|
|
47
|
+
readonly info: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
|
|
48
|
+
streaming: z.ZodBoolean;
|
|
49
|
+
notifications: z.ZodBoolean;
|
|
50
|
+
objectDetection: z.ZodBoolean;
|
|
51
|
+
remoteAccess: z.ZodBoolean;
|
|
52
|
+
agentCluster: z.ZodBoolean;
|
|
53
|
+
smartHome: z.ZodBoolean;
|
|
54
|
+
recordings: z.ZodBoolean;
|
|
55
|
+
backup: z.ZodBoolean;
|
|
56
|
+
repl: z.ZodBoolean;
|
|
57
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
58
|
+
readonly health: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
|
|
59
|
+
status: z.ZodLiteral<"ok">;
|
|
60
|
+
uptime: z.ZodNumber;
|
|
61
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
62
|
+
readonly featureFlags: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
|
|
63
|
+
streaming: z.ZodBoolean;
|
|
64
|
+
notifications: z.ZodBoolean;
|
|
65
|
+
objectDetection: z.ZodBoolean;
|
|
66
|
+
remoteAccess: z.ZodBoolean;
|
|
67
|
+
agentCluster: z.ZodBoolean;
|
|
68
|
+
smartHome: z.ZodBoolean;
|
|
69
|
+
recordings: z.ZodBoolean;
|
|
70
|
+
backup: z.ZodBoolean;
|
|
71
|
+
repl: z.ZodBoolean;
|
|
72
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
73
|
+
readonly networkAddresses: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
74
|
+
name: z.ZodString;
|
|
75
|
+
address: z.ZodString;
|
|
76
|
+
family: z.ZodString;
|
|
77
|
+
internal: z.ZodBoolean;
|
|
78
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
79
|
+
readonly getRetentionConfig: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodNullable<z.ZodUnknown>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
80
|
+
readonly setRetentionConfig: import("./capability-definition.js").CapabilityMethodSchema<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull, "mutation">;
|
|
81
|
+
readonly forceRetentionCleanup: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodVoid, "mutation">;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
export type ISystemProvider = InferProvider<typeof systemCapability>;
|
|
85
|
+
export { FeatureManifestSchema, HealthStatusSchema, NetworkAddressSchema, };
|
|
86
|
+
//# sourceMappingURL=system.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/system.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAElG;;;;;;;;;;;;;;;;;GAiBG;AAEH,QAAA,MAAM,qBAAqB;;;;;;;;;;iBAUzB,CAAA;AAEF,QAAA,MAAM,kBAAkB;;;iBAGtB,CAAA;AAEF,QAAA,MAAM,oBAAoB;;;;;iBAKxB,CAAA;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBY,CAAA;AAEzC,MAAM,MAAM,eAAe,GAAG,aAAa,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAEpE,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,GACrB,CAAA"}
|