@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,200 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
/**
|
|
4
|
+
* nodes — system-scoped singleton capability for cluster topology
|
|
5
|
+
* queries and remote addon lifecycle operations.
|
|
6
|
+
*
|
|
7
|
+
* Implementation lives in the server's `AgentRegistryService`,
|
|
8
|
+
* `MoleculerService`, and `AddonRegistryService`. The provider is
|
|
9
|
+
* registered from `trpc.router.ts` against those services — no addon
|
|
10
|
+
* owns the cluster topology view.
|
|
11
|
+
*
|
|
12
|
+
* Phase E of the API consolidation: previously a hand-written core
|
|
13
|
+
* router. Cap conversion lets `useNodesTopology`, `useNodesRestartNode`,
|
|
14
|
+
* etc. flow through the same codegen pipeline as every other cap.
|
|
15
|
+
*/
|
|
16
|
+
declare const TopologyServiceSchema: z.ZodObject<{
|
|
17
|
+
addonId: z.ZodString;
|
|
18
|
+
capabilities: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
19
|
+
status: z.ZodString;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const TopologyProcessSchema: z.ZodObject<{
|
|
22
|
+
pid: z.ZodNumber;
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
state: z.ZodString;
|
|
25
|
+
cpuPercent: z.ZodNumber;
|
|
26
|
+
memoryRss: z.ZodNumber;
|
|
27
|
+
uptimeSeconds: z.ZodNumber;
|
|
28
|
+
services: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
29
|
+
addonId: z.ZodString;
|
|
30
|
+
capabilities: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
31
|
+
status: z.ZodString;
|
|
32
|
+
}, z.core.$strip>>>;
|
|
33
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
declare const TopologyNodeSchema: z.ZodObject<{
|
|
36
|
+
id: z.ZodString;
|
|
37
|
+
name: z.ZodString;
|
|
38
|
+
hostname: z.ZodString;
|
|
39
|
+
platform: z.ZodString;
|
|
40
|
+
arch: z.ZodString;
|
|
41
|
+
cpuModel: z.ZodNullable<z.ZodString>;
|
|
42
|
+
cpuCores: z.ZodNumber;
|
|
43
|
+
memoryMB: z.ZodNumber;
|
|
44
|
+
engines: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
45
|
+
isHub: z.ZodBoolean;
|
|
46
|
+
isOnline: z.ZodBoolean;
|
|
47
|
+
cpuPercent: z.ZodNumber;
|
|
48
|
+
memoryPercent: z.ZodNumber;
|
|
49
|
+
uptime: z.ZodNumber;
|
|
50
|
+
lastSeen: z.ZodString;
|
|
51
|
+
localIps: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
52
|
+
addons: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
53
|
+
id: z.ZodString;
|
|
54
|
+
capabilities: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
55
|
+
status: z.ZodString;
|
|
56
|
+
}, z.core.$strip>>>;
|
|
57
|
+
processes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
58
|
+
pid: z.ZodNumber;
|
|
59
|
+
name: z.ZodString;
|
|
60
|
+
state: z.ZodString;
|
|
61
|
+
cpuPercent: z.ZodNumber;
|
|
62
|
+
memoryRss: z.ZodNumber;
|
|
63
|
+
uptimeSeconds: z.ZodNumber;
|
|
64
|
+
services: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
65
|
+
addonId: z.ZodString;
|
|
66
|
+
capabilities: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
67
|
+
status: z.ZodString;
|
|
68
|
+
}, z.core.$strip>>>;
|
|
69
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
70
|
+
}, z.core.$strip>>>;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
declare const ClusterAddonNodeDeploymentSchema: z.ZodObject<{
|
|
73
|
+
nodeId: z.ZodString;
|
|
74
|
+
name: z.ZodString;
|
|
75
|
+
version: z.ZodString;
|
|
76
|
+
status: z.ZodString;
|
|
77
|
+
synced: z.ZodBoolean;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
declare const ClusterAddonStatusEntrySchema: z.ZodObject<{
|
|
80
|
+
hubVersion: z.ZodString;
|
|
81
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
82
|
+
nodeId: z.ZodString;
|
|
83
|
+
name: z.ZodString;
|
|
84
|
+
version: z.ZodString;
|
|
85
|
+
status: z.ZodString;
|
|
86
|
+
synced: z.ZodBoolean;
|
|
87
|
+
}, z.core.$strip>>;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
export declare const nodesCapability: {
|
|
90
|
+
readonly name: "nodes";
|
|
91
|
+
readonly scope: "system";
|
|
92
|
+
readonly mode: "singleton";
|
|
93
|
+
readonly methods: {
|
|
94
|
+
readonly topology: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
95
|
+
id: z.ZodString;
|
|
96
|
+
name: z.ZodString;
|
|
97
|
+
hostname: z.ZodString;
|
|
98
|
+
platform: z.ZodString;
|
|
99
|
+
arch: z.ZodString;
|
|
100
|
+
cpuModel: z.ZodNullable<z.ZodString>;
|
|
101
|
+
cpuCores: z.ZodNumber;
|
|
102
|
+
memoryMB: z.ZodNumber;
|
|
103
|
+
engines: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
104
|
+
isHub: z.ZodBoolean;
|
|
105
|
+
isOnline: z.ZodBoolean;
|
|
106
|
+
cpuPercent: z.ZodNumber;
|
|
107
|
+
memoryPercent: z.ZodNumber;
|
|
108
|
+
uptime: z.ZodNumber;
|
|
109
|
+
lastSeen: z.ZodString;
|
|
110
|
+
localIps: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
111
|
+
addons: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
112
|
+
id: z.ZodString;
|
|
113
|
+
capabilities: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
114
|
+
status: z.ZodString;
|
|
115
|
+
}, z.core.$strip>>>;
|
|
116
|
+
processes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
117
|
+
pid: z.ZodNumber;
|
|
118
|
+
name: z.ZodString;
|
|
119
|
+
state: z.ZodString;
|
|
120
|
+
cpuPercent: z.ZodNumber;
|
|
121
|
+
memoryRss: z.ZodNumber;
|
|
122
|
+
uptimeSeconds: z.ZodNumber;
|
|
123
|
+
services: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
124
|
+
addonId: z.ZodString;
|
|
125
|
+
capabilities: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
126
|
+
status: z.ZodString;
|
|
127
|
+
}, z.core.$strip>>>;
|
|
128
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
129
|
+
}, z.core.$strip>>>;
|
|
130
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
131
|
+
readonly deployAddon: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
132
|
+
nodeId: z.ZodString;
|
|
133
|
+
addonId: z.ZodString;
|
|
134
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
135
|
+
success: z.ZodBoolean;
|
|
136
|
+
}, z.core.$strip>, "mutation">;
|
|
137
|
+
readonly undeployAddon: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
138
|
+
nodeId: z.ZodString;
|
|
139
|
+
addonId: z.ZodString;
|
|
140
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
141
|
+
success: z.ZodBoolean;
|
|
142
|
+
}, z.core.$strip>, "mutation">;
|
|
143
|
+
readonly restartAddon: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
144
|
+
nodeId: z.ZodString;
|
|
145
|
+
addonId: z.ZodString;
|
|
146
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
147
|
+
success: z.ZodBoolean;
|
|
148
|
+
}, z.core.$strip>, "mutation">;
|
|
149
|
+
readonly restartProcess: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
150
|
+
nodeId: z.ZodString;
|
|
151
|
+
processName: z.ZodString;
|
|
152
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
153
|
+
success: z.ZodBoolean;
|
|
154
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
155
|
+
}, z.core.$strip>, "mutation">;
|
|
156
|
+
readonly restartNode: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
157
|
+
nodeId: z.ZodString;
|
|
158
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
159
|
+
restarted: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
160
|
+
failed: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
161
|
+
}, z.core.$strip>, "mutation">;
|
|
162
|
+
readonly shutdownNode: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
163
|
+
nodeId: z.ZodString;
|
|
164
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
165
|
+
success: z.ZodBoolean;
|
|
166
|
+
}, z.core.$strip>, "mutation">;
|
|
167
|
+
readonly renameNode: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
168
|
+
nodeId: z.ZodString;
|
|
169
|
+
name: z.ZodString;
|
|
170
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
171
|
+
nodeId: z.ZodString;
|
|
172
|
+
name: z.ZodString;
|
|
173
|
+
}, z.core.$strip>, "mutation">;
|
|
174
|
+
readonly clusterAddonStatus: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
175
|
+
hubVersion: z.ZodString;
|
|
176
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
177
|
+
nodeId: z.ZodString;
|
|
178
|
+
name: z.ZodString;
|
|
179
|
+
version: z.ZodString;
|
|
180
|
+
status: z.ZodString;
|
|
181
|
+
synced: z.ZodBoolean;
|
|
182
|
+
}, z.core.$strip>>;
|
|
183
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
184
|
+
readonly setProcessLogLevel: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
185
|
+
nodeId: z.ZodString;
|
|
186
|
+
level: z.ZodString;
|
|
187
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
188
|
+
success: z.ZodBoolean;
|
|
189
|
+
}, z.core.$strip>, "mutation">;
|
|
190
|
+
readonly executeQuery: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
191
|
+
nodeId: z.ZodString;
|
|
192
|
+
addonId: z.ZodString;
|
|
193
|
+
queryName: z.ZodString;
|
|
194
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
195
|
+
}, z.core.$strip>, z.ZodUnknown, "mutation">;
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
export type INodesProvider = InferProvider<typeof nodesCapability>;
|
|
199
|
+
export { TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, ClusterAddonStatusEntrySchema, ClusterAddonNodeDeploymentSchema, };
|
|
200
|
+
//# sourceMappingURL=nodes.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodes.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/nodes.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAElG;;;;;;;;;;;;GAYG;AAIH,QAAA,MAAM,qBAAqB;;;;iBAIzB,CAAA;AAEF,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;iBASzB,CAAA;AAEF,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyBtB,CAAA;AAIF,QAAA,MAAM,gCAAgC;;;;;;iBAMpC,CAAA;AAEF,QAAA,MAAM,6BAA6B;;;;;;;;;iBAGjC,CAAA;AA0BF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+Da,CAAA;AAEzC,MAAM,MAAM,cAAc,GAAG,aAAa,CAAC,OAAO,eAAe,CAAC,CAAA;AAElE,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,6BAA6B,EAC7B,gCAAgC,GACjC,CAAA"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
declare const NotificationSchema: z.ZodObject<{
|
|
4
|
+
title: z.ZodString;
|
|
5
|
+
body: z.ZodString;
|
|
6
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
7
|
+
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
eventId: z.ZodOptional<z.ZodString>;
|
|
9
|
+
priority: z.ZodDefault<z.ZodEnum<{
|
|
10
|
+
high: "high";
|
|
11
|
+
low: "low";
|
|
12
|
+
normal: "normal";
|
|
13
|
+
critical: "critical";
|
|
14
|
+
}>>;
|
|
15
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export declare const notificationOutputCapability: {
|
|
18
|
+
readonly name: "notification-output";
|
|
19
|
+
readonly scope: "system";
|
|
20
|
+
readonly mode: "collection";
|
|
21
|
+
readonly methods: {
|
|
22
|
+
readonly send: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
23
|
+
title: z.ZodString;
|
|
24
|
+
body: z.ZodString;
|
|
25
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
26
|
+
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
eventId: z.ZodOptional<z.ZodString>;
|
|
28
|
+
priority: z.ZodDefault<z.ZodEnum<{
|
|
29
|
+
high: "high";
|
|
30
|
+
low: "low";
|
|
31
|
+
normal: "normal";
|
|
32
|
+
critical: "critical";
|
|
33
|
+
}>>;
|
|
34
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
35
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
36
|
+
readonly sendTest: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
|
|
37
|
+
success: z.ZodBoolean;
|
|
38
|
+
error: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>, "mutation">;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export type INotificationOutputProvider = InferProvider<typeof notificationOutputCapability>;
|
|
43
|
+
export { NotificationSchema };
|
|
44
|
+
//# sourceMappingURL=notification-output.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-output.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/notification-output.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;;;;;;;;;;;;;iBAQtB,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;CAYA,CAAA;AAEzC,MAAM,MAAM,2BAA2B,GAAG,aAAa,CAAC,OAAO,4BAA4B,CAAC,CAAA;AAE5F,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
|
|
@@ -0,0 +1,236 @@
|
|
|
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-screen-display (video overlay) cap. Each camera exposes
|
|
6
|
+
* a firmware-defined list of overlays (channel name, timestamp,
|
|
7
|
+
* watermark, logo, …); the cap models them as a homogeneous array of
|
|
8
|
+
* descriptors so the admin UI can render them with zero per-firmware
|
|
9
|
+
* code.
|
|
10
|
+
*/
|
|
11
|
+
export declare const OsdOverlayKindEnum: z.ZodEnum<{
|
|
12
|
+
timestamp: "timestamp";
|
|
13
|
+
text: "text";
|
|
14
|
+
watermark: "watermark";
|
|
15
|
+
}>;
|
|
16
|
+
export type OsdOverlayKind = z.infer<typeof OsdOverlayKindEnum>;
|
|
17
|
+
export declare const OsdPositionEnum: z.ZodEnum<{
|
|
18
|
+
custom: "custom";
|
|
19
|
+
"top-left": "top-left";
|
|
20
|
+
"top-center": "top-center";
|
|
21
|
+
"top-right": "top-right";
|
|
22
|
+
"bottom-left": "bottom-left";
|
|
23
|
+
"bottom-center": "bottom-center";
|
|
24
|
+
"bottom-right": "bottom-right";
|
|
25
|
+
}>;
|
|
26
|
+
export type OsdPosition = z.infer<typeof OsdPositionEnum>;
|
|
27
|
+
export declare const OsdOverlaySchema: z.ZodObject<{
|
|
28
|
+
id: z.ZodString;
|
|
29
|
+
kind: z.ZodEnum<{
|
|
30
|
+
timestamp: "timestamp";
|
|
31
|
+
text: "text";
|
|
32
|
+
watermark: "watermark";
|
|
33
|
+
}>;
|
|
34
|
+
enabled: z.ZodBoolean;
|
|
35
|
+
text: z.ZodOptional<z.ZodString>;
|
|
36
|
+
position: z.ZodOptional<z.ZodEnum<{
|
|
37
|
+
custom: "custom";
|
|
38
|
+
"top-left": "top-left";
|
|
39
|
+
"top-center": "top-center";
|
|
40
|
+
"top-right": "top-right";
|
|
41
|
+
"bottom-left": "bottom-left";
|
|
42
|
+
"bottom-center": "bottom-center";
|
|
43
|
+
"bottom-right": "bottom-right";
|
|
44
|
+
}>>;
|
|
45
|
+
availablePositions: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
46
|
+
custom: "custom";
|
|
47
|
+
"top-left": "top-left";
|
|
48
|
+
"top-center": "top-center";
|
|
49
|
+
"top-right": "top-right";
|
|
50
|
+
"bottom-left": "bottom-left";
|
|
51
|
+
"bottom-center": "bottom-center";
|
|
52
|
+
"bottom-right": "bottom-right";
|
|
53
|
+
}>>>;
|
|
54
|
+
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
export type OsdOverlay = z.infer<typeof OsdOverlaySchema>;
|
|
57
|
+
export declare const OsdStatusSchema: z.ZodObject<{
|
|
58
|
+
overlays: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
59
|
+
id: z.ZodString;
|
|
60
|
+
kind: z.ZodEnum<{
|
|
61
|
+
timestamp: "timestamp";
|
|
62
|
+
text: "text";
|
|
63
|
+
watermark: "watermark";
|
|
64
|
+
}>;
|
|
65
|
+
enabled: z.ZodBoolean;
|
|
66
|
+
text: z.ZodOptional<z.ZodString>;
|
|
67
|
+
position: z.ZodOptional<z.ZodEnum<{
|
|
68
|
+
custom: "custom";
|
|
69
|
+
"top-left": "top-left";
|
|
70
|
+
"top-center": "top-center";
|
|
71
|
+
"top-right": "top-right";
|
|
72
|
+
"bottom-left": "bottom-left";
|
|
73
|
+
"bottom-center": "bottom-center";
|
|
74
|
+
"bottom-right": "bottom-right";
|
|
75
|
+
}>>;
|
|
76
|
+
availablePositions: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
77
|
+
custom: "custom";
|
|
78
|
+
"top-left": "top-left";
|
|
79
|
+
"top-center": "top-center";
|
|
80
|
+
"top-right": "top-right";
|
|
81
|
+
"bottom-left": "bottom-left";
|
|
82
|
+
"bottom-center": "bottom-center";
|
|
83
|
+
"bottom-right": "bottom-right";
|
|
84
|
+
}>>>;
|
|
85
|
+
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
86
|
+
}, z.core.$strip>>>;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
export type OsdStatus = z.infer<typeof OsdStatusSchema>;
|
|
89
|
+
declare const OsdOverlayPatchSchema: z.ZodObject<{
|
|
90
|
+
enabled: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
91
|
+
text: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
92
|
+
position: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
93
|
+
custom: "custom";
|
|
94
|
+
"top-left": "top-left";
|
|
95
|
+
"top-center": "top-center";
|
|
96
|
+
"top-right": "top-right";
|
|
97
|
+
"bottom-left": "bottom-left";
|
|
98
|
+
"bottom-center": "bottom-center";
|
|
99
|
+
"bottom-right": "bottom-right";
|
|
100
|
+
}>>>;
|
|
101
|
+
}, z.core.$strip>;
|
|
102
|
+
export declare const osdCapability: {
|
|
103
|
+
readonly name: "osd";
|
|
104
|
+
readonly scope: "device";
|
|
105
|
+
readonly mode: "singleton";
|
|
106
|
+
readonly deviceTypes: readonly [DeviceType.Camera];
|
|
107
|
+
readonly methods: {
|
|
108
|
+
/**
|
|
109
|
+
* Patch a single overlay by id. Provider handles read-modify-write
|
|
110
|
+
* against firmware APIs that require the full object (Reolink
|
|
111
|
+
* `SetOsd`). Omitted patch keys are preserved. Successful
|
|
112
|
+
* completion triggers `onStatusChanged`.
|
|
113
|
+
*/
|
|
114
|
+
readonly setOverlay: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
115
|
+
deviceId: z.ZodNumber;
|
|
116
|
+
overlayId: z.ZodString;
|
|
117
|
+
patch: z.ZodObject<{
|
|
118
|
+
enabled: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
119
|
+
text: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
120
|
+
position: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
121
|
+
custom: "custom";
|
|
122
|
+
"top-left": "top-left";
|
|
123
|
+
"top-center": "top-center";
|
|
124
|
+
"top-right": "top-right";
|
|
125
|
+
"bottom-left": "bottom-left";
|
|
126
|
+
"bottom-center": "bottom-center";
|
|
127
|
+
"bottom-right": "bottom-right";
|
|
128
|
+
}>>>;
|
|
129
|
+
}, z.core.$strip>;
|
|
130
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
131
|
+
};
|
|
132
|
+
readonly events: {
|
|
133
|
+
readonly onStatusChanged: {
|
|
134
|
+
readonly data: z.ZodObject<{
|
|
135
|
+
deviceId: z.ZodNumber;
|
|
136
|
+
status: z.ZodObject<{
|
|
137
|
+
overlays: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
138
|
+
id: z.ZodString;
|
|
139
|
+
kind: z.ZodEnum<{
|
|
140
|
+
timestamp: "timestamp";
|
|
141
|
+
text: "text";
|
|
142
|
+
watermark: "watermark";
|
|
143
|
+
}>;
|
|
144
|
+
enabled: z.ZodBoolean;
|
|
145
|
+
text: z.ZodOptional<z.ZodString>;
|
|
146
|
+
position: z.ZodOptional<z.ZodEnum<{
|
|
147
|
+
custom: "custom";
|
|
148
|
+
"top-left": "top-left";
|
|
149
|
+
"top-center": "top-center";
|
|
150
|
+
"top-right": "top-right";
|
|
151
|
+
"bottom-left": "bottom-left";
|
|
152
|
+
"bottom-center": "bottom-center";
|
|
153
|
+
"bottom-right": "bottom-right";
|
|
154
|
+
}>>;
|
|
155
|
+
availablePositions: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
156
|
+
custom: "custom";
|
|
157
|
+
"top-left": "top-left";
|
|
158
|
+
"top-center": "top-center";
|
|
159
|
+
"top-right": "top-right";
|
|
160
|
+
"bottom-left": "bottom-left";
|
|
161
|
+
"bottom-center": "bottom-center";
|
|
162
|
+
"bottom-right": "bottom-right";
|
|
163
|
+
}>>>;
|
|
164
|
+
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
165
|
+
}, z.core.$strip>>>;
|
|
166
|
+
}, z.core.$strip>;
|
|
167
|
+
}, z.core.$strip>;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
readonly status: {
|
|
171
|
+
readonly schema: z.ZodObject<{
|
|
172
|
+
overlays: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
173
|
+
id: z.ZodString;
|
|
174
|
+
kind: z.ZodEnum<{
|
|
175
|
+
timestamp: "timestamp";
|
|
176
|
+
text: "text";
|
|
177
|
+
watermark: "watermark";
|
|
178
|
+
}>;
|
|
179
|
+
enabled: z.ZodBoolean;
|
|
180
|
+
text: z.ZodOptional<z.ZodString>;
|
|
181
|
+
position: z.ZodOptional<z.ZodEnum<{
|
|
182
|
+
custom: "custom";
|
|
183
|
+
"top-left": "top-left";
|
|
184
|
+
"top-center": "top-center";
|
|
185
|
+
"top-right": "top-right";
|
|
186
|
+
"bottom-left": "bottom-left";
|
|
187
|
+
"bottom-center": "bottom-center";
|
|
188
|
+
"bottom-right": "bottom-right";
|
|
189
|
+
}>>;
|
|
190
|
+
availablePositions: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
191
|
+
custom: "custom";
|
|
192
|
+
"top-left": "top-left";
|
|
193
|
+
"top-center": "top-center";
|
|
194
|
+
"top-right": "top-right";
|
|
195
|
+
"bottom-left": "bottom-left";
|
|
196
|
+
"bottom-center": "bottom-center";
|
|
197
|
+
"bottom-right": "bottom-right";
|
|
198
|
+
}>>>;
|
|
199
|
+
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
200
|
+
}, z.core.$strip>>>;
|
|
201
|
+
}, z.core.$strip>;
|
|
202
|
+
readonly kind: "command-driven";
|
|
203
|
+
};
|
|
204
|
+
readonly settings: {
|
|
205
|
+
readonly bindings: readonly [{
|
|
206
|
+
readonly kind: "array";
|
|
207
|
+
readonly statusPath: "overlays";
|
|
208
|
+
readonly idField: "id";
|
|
209
|
+
readonly method: "setOverlay";
|
|
210
|
+
readonly idArg: "overlayId";
|
|
211
|
+
readonly patchArg: "patch";
|
|
212
|
+
readonly sectionId: "osd";
|
|
213
|
+
readonly sectionTitle: "Video overlays";
|
|
214
|
+
readonly itemFields: {
|
|
215
|
+
readonly enabled: {
|
|
216
|
+
readonly label: (o: Record<string, unknown>) => string;
|
|
217
|
+
readonly kind: "boolean";
|
|
218
|
+
};
|
|
219
|
+
readonly text: {
|
|
220
|
+
readonly label: (o: Record<string, unknown>) => string;
|
|
221
|
+
readonly kind: "text";
|
|
222
|
+
readonly when: (o: Record<string, unknown>) => boolean;
|
|
223
|
+
};
|
|
224
|
+
readonly position: {
|
|
225
|
+
readonly label: (o: Record<string, unknown>) => string;
|
|
226
|
+
readonly kind: "select";
|
|
227
|
+
readonly options: (o: Record<string, unknown>) => readonly string[];
|
|
228
|
+
readonly when: (o: Record<string, unknown>) => boolean;
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
}];
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
export type IOsdProvider = InferProvider<typeof osdCapability>;
|
|
235
|
+
export { OsdOverlayPatchSchema };
|
|
236
|
+
//# sourceMappingURL=osd.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"osd.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/osd.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;AAEH,eAAO,MAAM,kBAAkB;;;;EAA6C,CAAA;AAC5E,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAE/D,eAAO,MAAM,eAAe;;;;;;;;EAI1B,CAAA;AACF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AAEzD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgB3B,CAAA;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAEzD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAE1B,CAAA;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AAEvD,QAAA,MAAM,qBAAqB;;;;;;;;;;;;iBAIf,CAAA;AAEZ,eAAO,MAAM,aAAa;;;;;;QAMtB;;;;;WAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDkC,CAAA;AAEzC,MAAM,MAAM,YAAY,GAAG,aAAa,CAAC,OAAO,aAAa,CAAC,CAAA;AAC9D,OAAO,EAAE,qBAAqB,EAAE,CAAA"}
|