@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,188 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
import { DeviceType } from '../device/device-type.js';
|
|
4
|
+
export declare const PtzAutotrackSettingsSchema: z.ZodObject<{
|
|
5
|
+
targetType: z.ZodString;
|
|
6
|
+
stopDelaySeconds: z.ZodNumber;
|
|
7
|
+
disappearDelaySeconds: z.ZodNumber;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export type PtzAutotrackSettings = z.infer<typeof PtzAutotrackSettingsSchema>;
|
|
10
|
+
/**
|
|
11
|
+
* One option the camera advertises as a valid `targetType`. Drivers
|
|
12
|
+
* harvest this from their probe data; the UI renders these as the
|
|
13
|
+
* `targetType` select options. Empty array = the camera doesn't
|
|
14
|
+
* expose a target-type selector (auto-only).
|
|
15
|
+
*
|
|
16
|
+
* The `value` is the canonical wire string the cap accepts in
|
|
17
|
+
* `setSettings({targetType})` — drivers use it verbatim when pushing
|
|
18
|
+
* to firmware. The `label` is operator-facing English (translated
|
|
19
|
+
* client-side if the UI supports i18n).
|
|
20
|
+
*/
|
|
21
|
+
export declare const PtzAutotrackTargetOptionSchema: z.ZodObject<{
|
|
22
|
+
value: z.ZodString;
|
|
23
|
+
label: z.ZodString;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export type PtzAutotrackTargetOption = z.infer<typeof PtzAutotrackTargetOptionSchema>;
|
|
26
|
+
export declare const PtzAutotrackStatusSchema: z.ZodObject<{
|
|
27
|
+
enabled: z.ZodBoolean;
|
|
28
|
+
lastChangedAt: z.ZodNumber;
|
|
29
|
+
currentSettings: z.ZodNullable<z.ZodObject<{
|
|
30
|
+
targetType: z.ZodString;
|
|
31
|
+
stopDelaySeconds: z.ZodNumber;
|
|
32
|
+
disappearDelaySeconds: z.ZodNumber;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
supportedTargetTypes: z.ZodArray<z.ZodObject<{
|
|
35
|
+
value: z.ZodString;
|
|
36
|
+
label: z.ZodString;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
export type PtzAutotrackStatus = z.infer<typeof PtzAutotrackStatusSchema>;
|
|
40
|
+
/**
|
|
41
|
+
* Runtime-state slice owned by this cap. Persists the last-known
|
|
42
|
+
* camera-derived snapshot across restarts, so cold-start callers
|
|
43
|
+
* have a meaningful baseline even before the first refresh round-trip.
|
|
44
|
+
*
|
|
45
|
+
* Adds `lastFetchedAt` on top of the status shape so the framework
|
|
46
|
+
* (or the provider) can stale-check before deciding whether to
|
|
47
|
+
* round-trip the camera again.
|
|
48
|
+
*/
|
|
49
|
+
export declare const PtzAutotrackRuntimeStateSchema: z.ZodObject<{
|
|
50
|
+
enabled: z.ZodBoolean;
|
|
51
|
+
lastChangedAt: z.ZodNumber;
|
|
52
|
+
currentSettings: z.ZodNullable<z.ZodObject<{
|
|
53
|
+
targetType: z.ZodString;
|
|
54
|
+
stopDelaySeconds: z.ZodNumber;
|
|
55
|
+
disappearDelaySeconds: z.ZodNumber;
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
supportedTargetTypes: z.ZodArray<z.ZodObject<{
|
|
58
|
+
value: z.ZodString;
|
|
59
|
+
label: z.ZodString;
|
|
60
|
+
}, z.core.$strip>>;
|
|
61
|
+
lastFetchedAt: z.ZodNumber;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
export type PtzAutotrackRuntimeState = z.infer<typeof PtzAutotrackRuntimeStateSchema>;
|
|
64
|
+
export declare const ptzAutotrackCapability: {
|
|
65
|
+
readonly name: "ptz-autotrack";
|
|
66
|
+
readonly scope: "device";
|
|
67
|
+
readonly mode: "singleton";
|
|
68
|
+
readonly deviceTypes: readonly [DeviceType.Camera];
|
|
69
|
+
readonly methods: {
|
|
70
|
+
/**
|
|
71
|
+
* Read the current on/off state + last-applied settings.
|
|
72
|
+
* Drivers may serve from a cache + refresh on a schedule —
|
|
73
|
+
* callers should NOT poll faster than ~5s.
|
|
74
|
+
*/
|
|
75
|
+
readonly getStatus: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
76
|
+
deviceId: z.ZodNumber;
|
|
77
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
78
|
+
enabled: z.ZodBoolean;
|
|
79
|
+
lastChangedAt: z.ZodNumber;
|
|
80
|
+
currentSettings: z.ZodNullable<z.ZodObject<{
|
|
81
|
+
targetType: z.ZodString;
|
|
82
|
+
stopDelaySeconds: z.ZodNumber;
|
|
83
|
+
disappearDelaySeconds: z.ZodNumber;
|
|
84
|
+
}, z.core.$strip>>;
|
|
85
|
+
supportedTargetTypes: z.ZodArray<z.ZodObject<{
|
|
86
|
+
value: z.ZodString;
|
|
87
|
+
label: z.ZodString;
|
|
88
|
+
}, z.core.$strip>>;
|
|
89
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
90
|
+
/**
|
|
91
|
+
* Arm or disarm autotrack. Resolves once the camera has
|
|
92
|
+
* acknowledged the transition; the `onStatusChanged` event
|
|
93
|
+
* fires shortly after with the live state.
|
|
94
|
+
*/
|
|
95
|
+
readonly setEnabled: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
96
|
+
deviceId: z.ZodNumber;
|
|
97
|
+
enabled: z.ZodBoolean;
|
|
98
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
99
|
+
/**
|
|
100
|
+
* Read settings (target type + delays). Mirrors the
|
|
101
|
+
* `getStatus().currentSettings` payload but exposes it as a
|
|
102
|
+
* standalone read for callers that want settings without the
|
|
103
|
+
* status surface around them. `null` until the driver has
|
|
104
|
+
* harvested the firmware state at least once.
|
|
105
|
+
*/
|
|
106
|
+
readonly getSettings: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
107
|
+
deviceId: z.ZodNumber;
|
|
108
|
+
}, z.core.$strip>, z.ZodNullable<z.ZodObject<{
|
|
109
|
+
targetType: z.ZodString;
|
|
110
|
+
stopDelaySeconds: z.ZodNumber;
|
|
111
|
+
disappearDelaySeconds: z.ZodNumber;
|
|
112
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
113
|
+
/**
|
|
114
|
+
* Update one or more settings. Partial — keys that aren't
|
|
115
|
+
* supplied keep their last persisted value. The driver is
|
|
116
|
+
* responsible for clamping vendor-specific ranges if narrower
|
|
117
|
+
* than the cross-vendor max declared on the schema.
|
|
118
|
+
*/
|
|
119
|
+
readonly setSettings: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
120
|
+
deviceId: z.ZodNumber;
|
|
121
|
+
settings: z.ZodObject<{
|
|
122
|
+
targetType: z.ZodOptional<z.ZodString>;
|
|
123
|
+
stopDelaySeconds: z.ZodOptional<z.ZodNumber>;
|
|
124
|
+
disappearDelaySeconds: z.ZodOptional<z.ZodNumber>;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
127
|
+
};
|
|
128
|
+
readonly events: {
|
|
129
|
+
readonly onStatusChanged: {
|
|
130
|
+
readonly data: z.ZodObject<{
|
|
131
|
+
deviceId: z.ZodNumber;
|
|
132
|
+
status: z.ZodObject<{
|
|
133
|
+
enabled: z.ZodBoolean;
|
|
134
|
+
lastChangedAt: z.ZodNumber;
|
|
135
|
+
currentSettings: z.ZodNullable<z.ZodObject<{
|
|
136
|
+
targetType: z.ZodString;
|
|
137
|
+
stopDelaySeconds: z.ZodNumber;
|
|
138
|
+
disappearDelaySeconds: z.ZodNumber;
|
|
139
|
+
}, z.core.$strip>>;
|
|
140
|
+
supportedTargetTypes: z.ZodArray<z.ZodObject<{
|
|
141
|
+
value: z.ZodString;
|
|
142
|
+
label: z.ZodString;
|
|
143
|
+
}, z.core.$strip>>;
|
|
144
|
+
}, z.core.$strip>;
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
readonly status: {
|
|
149
|
+
readonly schema: z.ZodObject<{
|
|
150
|
+
enabled: z.ZodBoolean;
|
|
151
|
+
lastChangedAt: z.ZodNumber;
|
|
152
|
+
currentSettings: z.ZodNullable<z.ZodObject<{
|
|
153
|
+
targetType: z.ZodString;
|
|
154
|
+
stopDelaySeconds: z.ZodNumber;
|
|
155
|
+
disappearDelaySeconds: z.ZodNumber;
|
|
156
|
+
}, z.core.$strip>>;
|
|
157
|
+
supportedTargetTypes: z.ZodArray<z.ZodObject<{
|
|
158
|
+
value: z.ZodString;
|
|
159
|
+
label: z.ZodString;
|
|
160
|
+
}, z.core.$strip>>;
|
|
161
|
+
}, z.core.$strip>;
|
|
162
|
+
readonly kind: "command-driven";
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* Persistent slice mirrored across restarts. The provider writes
|
|
166
|
+
* here on every successful firmware fetch / settings push;
|
|
167
|
+
* `getStatus` and `getSettings` then read this snapshot synchronously
|
|
168
|
+
* with a stale-driven async refresh in the background. Keeps the
|
|
169
|
+
* fetch / cache / fallback logic out of the four cap methods —
|
|
170
|
+
* they become trampolines over `runtimeState`.
|
|
171
|
+
*/
|
|
172
|
+
readonly runtimeState: z.ZodObject<{
|
|
173
|
+
enabled: z.ZodBoolean;
|
|
174
|
+
lastChangedAt: z.ZodNumber;
|
|
175
|
+
currentSettings: z.ZodNullable<z.ZodObject<{
|
|
176
|
+
targetType: z.ZodString;
|
|
177
|
+
stopDelaySeconds: z.ZodNumber;
|
|
178
|
+
disappearDelaySeconds: z.ZodNumber;
|
|
179
|
+
}, z.core.$strip>>;
|
|
180
|
+
supportedTargetTypes: z.ZodArray<z.ZodObject<{
|
|
181
|
+
value: z.ZodString;
|
|
182
|
+
label: z.ZodString;
|
|
183
|
+
}, z.core.$strip>>;
|
|
184
|
+
lastFetchedAt: z.ZodNumber;
|
|
185
|
+
}, z.core.$strip>;
|
|
186
|
+
};
|
|
187
|
+
export type IPtzAutotrackProvider = InferProvider<typeof ptzAutotrackCapability>;
|
|
188
|
+
//# sourceMappingURL=ptz-autotrack.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ptz-autotrack.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/ptz-autotrack.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;AAwCrD,eAAO,MAAM,0BAA0B;;;;iBAIrC,CAAA;AAEF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAE7E;;;;;;;;;;GAUG;AACH,eAAO,MAAM,8BAA8B;;;iBAGzC,CAAA;AAEF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAErF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;iBAkBnC,CAAA;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAEzE;;;;;;;;GAQG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;iBAGzC,CAAA;AAEF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAErF,eAAO,MAAM,sBAAsB;;;;;;QAM/B;;;;WAIG;;;;;;;;;;;;;;;;QAKH;;;;WAIG;;;;;QAMH;;;;;;WAMG;;;;;;;;QAKH;;;;;WAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoBL;;;;;;;OAOG;;;;;;;;;;;;;;;CAEoC,CAAA;AAEzC,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC,OAAO,sBAAsB,CAAC,CAAA"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
import { DeviceType } from '../device/device-type.js';
|
|
4
|
+
declare const PtzPresetSchema: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const PtzPositionSchema: z.ZodObject<{
|
|
9
|
+
pan: z.ZodNumber;
|
|
10
|
+
tilt: z.ZodNumber;
|
|
11
|
+
zoom: z.ZodNumber;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const PtzMoveCommandSchema: z.ZodObject<{
|
|
14
|
+
pan: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
tilt: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
zoom: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export declare const ptzCapability: {
|
|
20
|
+
readonly name: "ptz";
|
|
21
|
+
readonly scope: "device";
|
|
22
|
+
readonly mode: "singleton";
|
|
23
|
+
readonly deviceTypes: readonly [DeviceType.Camera];
|
|
24
|
+
readonly methods: {
|
|
25
|
+
readonly move: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
26
|
+
pan: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
tilt: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
zoom: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
deviceId: z.ZodNumber;
|
|
31
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
32
|
+
readonly continuousMove: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
33
|
+
pan: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
tilt: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
zoom: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
deviceId: z.ZodNumber;
|
|
38
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
39
|
+
readonly stop: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
40
|
+
deviceId: z.ZodNumber;
|
|
41
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
42
|
+
readonly getPresets: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
43
|
+
deviceId: z.ZodNumber;
|
|
44
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
45
|
+
id: z.ZodString;
|
|
46
|
+
name: z.ZodString;
|
|
47
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
48
|
+
readonly goToPreset: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
49
|
+
deviceId: z.ZodNumber;
|
|
50
|
+
presetId: z.ZodString;
|
|
51
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
52
|
+
readonly goHome: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
53
|
+
deviceId: z.ZodNumber;
|
|
54
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
55
|
+
/**
|
|
56
|
+
* Pull the current PTZ position. Redundant with the auto-injected
|
|
57
|
+
* `getStatus` method (see `status` below); kept for callers that
|
|
58
|
+
* haven't migrated. Will be folded into `getStatus` in a future
|
|
59
|
+
* cleanup pass once all consumers use the typed status surface.
|
|
60
|
+
*/
|
|
61
|
+
readonly getPosition: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
62
|
+
deviceId: z.ZodNumber;
|
|
63
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
64
|
+
pan: z.ZodNumber;
|
|
65
|
+
tilt: z.ZodNumber;
|
|
66
|
+
zoom: z.ZodNumber;
|
|
67
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
68
|
+
};
|
|
69
|
+
readonly status: {
|
|
70
|
+
readonly schema: z.ZodObject<{
|
|
71
|
+
pan: z.ZodNumber;
|
|
72
|
+
tilt: z.ZodNumber;
|
|
73
|
+
zoom: z.ZodNumber;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
readonly kind: "command-driven";
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
export type IPtzProvider = InferProvider<typeof ptzCapability>;
|
|
79
|
+
export { PtzPresetSchema, PtzPositionSchema, PtzMoveCommandSchema };
|
|
80
|
+
//# sourceMappingURL=ptz.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ptz.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/ptz.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,QAAA,MAAM,eAAe;;;iBAAiD,CAAA;AACtE,QAAA,MAAM,iBAAiB;;;;iBAAoE,CAAA;AAC3F,QAAA,MAAM,oBAAoB;;;;;iBAKxB,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAmCtB;;;;;WAKG;;;;;;;;;;;;;;;;;CAUkC,CAAA;AAEzC,MAAM,MAAM,YAAY,GAAG,aAAa,CAAC,OAAO,aAAa,CAAC,CAAA;AAC9D,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
import { DeviceType } from '../device/device-type.js';
|
|
4
|
+
/**
|
|
5
|
+
* reboot — device-scoped capability for "soft" device reboots (firmware
|
|
6
|
+
* reboot via vendor protocol; cameras, NVRs, doorbells). Surfaces a
|
|
7
|
+
* single mutation so the UI can offer a confirm-and-reboot button for
|
|
8
|
+
* any device whose driver advertises `DeviceFeature.Rebootable`.
|
|
9
|
+
*
|
|
10
|
+
* Implementation contract: the driver SHOULD return only after the
|
|
11
|
+
* remote acknowledges the request (camera will go offline shortly
|
|
12
|
+
* after). Wrappers in the addon should NOT block on the device coming
|
|
13
|
+
* back online — operators read the device-online indicator for that.
|
|
14
|
+
*
|
|
15
|
+
* Errors propagate verbatim: a 401 from the camera surfaces as a tRPC
|
|
16
|
+
* error to the UI, which renders it next to the button.
|
|
17
|
+
*/
|
|
18
|
+
export declare const rebootCapability: {
|
|
19
|
+
readonly name: "reboot";
|
|
20
|
+
readonly scope: "device";
|
|
21
|
+
readonly mode: "singleton";
|
|
22
|
+
readonly deviceTypes: readonly [DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch];
|
|
23
|
+
readonly methods: {
|
|
24
|
+
readonly reboot: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
25
|
+
deviceId: z.ZodNumber;
|
|
26
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
+
success: z.ZodLiteral<true>;
|
|
28
|
+
}, z.core.$strip>, "mutation">;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export type IRebootProvider = InferProvider<typeof rebootCapability>;
|
|
32
|
+
//# sourceMappingURL=reboot.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reboot.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/reboot.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;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;CAYY,CAAA;AAEzC,MAAM,MAAM,eAAe,GAAG,aAAa,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
|