@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,83 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
/**
|
|
4
|
+
* Authentication-provider summary metadata. Drives the admin UI's
|
|
5
|
+
* "Authentication Providers" page and the login screen's provider
|
|
6
|
+
* picker (Google / Microsoft / SAML / etc. buttons next to the
|
|
7
|
+
* username/password form).
|
|
8
|
+
*
|
|
9
|
+
* Keep the shape lean: the admin UI doesn't render runtime
|
|
10
|
+
* credentials, only enough to identify the provider and its UX
|
|
11
|
+
* affordances. Per-provider config still lives in the addon's own
|
|
12
|
+
* settings panel.
|
|
13
|
+
*/
|
|
14
|
+
declare const AuthProviderInfoSchema: z.ZodObject<{
|
|
15
|
+
addonId: z.ZodString;
|
|
16
|
+
displayName: z.ZodString;
|
|
17
|
+
kind: z.ZodEnum<{
|
|
18
|
+
other: "other";
|
|
19
|
+
local: "local";
|
|
20
|
+
oidc: "oidc";
|
|
21
|
+
saml: "saml";
|
|
22
|
+
ldap: "ldap";
|
|
23
|
+
}>;
|
|
24
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
25
|
+
hasRedirectFlow: z.ZodBoolean;
|
|
26
|
+
hasCredentialFlow: z.ZodBoolean;
|
|
27
|
+
status: z.ZodOptional<z.ZodString>;
|
|
28
|
+
enabled: z.ZodBoolean;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export type AuthProviderInfo = z.infer<typeof AuthProviderInfoSchema>;
|
|
31
|
+
/**
|
|
32
|
+
* `authentication` — singleton facade over the `auth-provider`
|
|
33
|
+
* collection. Consumed by:
|
|
34
|
+
* - Login page (enumerate provider buttons)
|
|
35
|
+
* - Admin UI Authentication page (list/configure/enable/disable)
|
|
36
|
+
*
|
|
37
|
+
* Mirrors the pattern of `backup` (singleton facade over the
|
|
38
|
+
* `backup-destination` collection) — UI consumers don't need to know
|
|
39
|
+
* about individual `auth-provider` providers; they call this and
|
|
40
|
+
* receive a curated view.
|
|
41
|
+
*
|
|
42
|
+
* The actual login flow still goes through the `auth-provider`
|
|
43
|
+
* collection (validateCredentials / getLoginUrl / handleCallback);
|
|
44
|
+
* this cap only listing/orchestration.
|
|
45
|
+
*/
|
|
46
|
+
export declare const authenticationCapability: {
|
|
47
|
+
readonly name: "authentication";
|
|
48
|
+
readonly scope: "system";
|
|
49
|
+
readonly mode: "singleton";
|
|
50
|
+
readonly methods: {
|
|
51
|
+
/** All registered auth providers, both enabled and disabled. */
|
|
52
|
+
readonly listProviders: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
53
|
+
addonId: z.ZodString;
|
|
54
|
+
displayName: z.ZodString;
|
|
55
|
+
kind: z.ZodEnum<{
|
|
56
|
+
other: "other";
|
|
57
|
+
local: "local";
|
|
58
|
+
oidc: "oidc";
|
|
59
|
+
saml: "saml";
|
|
60
|
+
ldap: "ldap";
|
|
61
|
+
}>;
|
|
62
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
63
|
+
hasRedirectFlow: z.ZodBoolean;
|
|
64
|
+
hasCredentialFlow: z.ZodBoolean;
|
|
65
|
+
status: z.ZodOptional<z.ZodString>;
|
|
66
|
+
enabled: z.ZodBoolean;
|
|
67
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
68
|
+
/**
|
|
69
|
+
* Toggle a provider's enabled flag. Disabled providers stay
|
|
70
|
+
* registered but aren't surfaced on the login page. The orchestrator
|
|
71
|
+
* persists the state in `addon-settings` so it survives restarts.
|
|
72
|
+
*/
|
|
73
|
+
readonly setProviderEnabled: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
74
|
+
addonId: z.ZodString;
|
|
75
|
+
enabled: z.ZodBoolean;
|
|
76
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
77
|
+
success: z.ZodLiteral<true>;
|
|
78
|
+
}, z.core.$strip>, "mutation">;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
export type IAuthenticationProvider = InferProvider<typeof authenticationCapability>;
|
|
82
|
+
export { AuthProviderInfoSchema };
|
|
83
|
+
//# sourceMappingURL=authentication.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authentication.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/authentication.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAElG;;;;;;;;;;GAUG;AACH,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;iBA2B1B,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAErE;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,wBAAwB;;;;;QAKjC,gEAAgE;;;;;;;;;;;;;;;;;QAEhE;;;;WAIG;;;;;;;;CAOkC,CAAA;AAEzC,MAAM,MAAM,uBAAuB,GAAG,aAAa,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAEpF,OAAO,EAAE,sBAAsB,EAAE,CAAA"}
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
/**
|
|
4
|
+
* Per-destination metadata returned by `backup-destination.listDestinations`.
|
|
5
|
+
* Defined here (not in `backup-destination.cap.ts`) because both caps need
|
|
6
|
+
* it and `backup` is the foundation — the destination cap imports from us.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Provider-side destination metadata. The addon returns a SHORT id
|
|
10
|
+
* (`subId`) — orchestrator-internal-only routing prepends the addon's
|
|
11
|
+
* manifest id to produce the externally-visible globally-unique id.
|
|
12
|
+
*
|
|
13
|
+
* Why split: the addon shouldn't have to know its own manifest id.
|
|
14
|
+
* That id is owned by `package.json` and the kernel's registry; making
|
|
15
|
+
* the addon repeat it leaks framework state into addon code and
|
|
16
|
+
* breaks if the manifest is ever renamed.
|
|
17
|
+
*/
|
|
18
|
+
declare const BackupSubDestinationInfoSchema: z.ZodObject<{
|
|
19
|
+
subId: z.ZodString;
|
|
20
|
+
displayName: z.ZodString;
|
|
21
|
+
description: z.ZodOptional<z.ZodString>;
|
|
22
|
+
kind: z.ZodString;
|
|
23
|
+
triggerSupported: z.ZodBoolean;
|
|
24
|
+
restoreSupported: z.ZodBoolean;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
/**
|
|
27
|
+
* Orchestrator-side destination metadata. The orchestrator computes
|
|
28
|
+
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
29
|
+
* (admin UI, restore flow) see one canonical key.
|
|
30
|
+
*
|
|
31
|
+
* Phase 4 (admin UI redesign) adds the per-destination policy fields
|
|
32
|
+
* (`enabled`, `retentionCount`, `label`) so the destinations table can
|
|
33
|
+
* render the joined view without a follow-up round-trip. The backend
|
|
34
|
+
* already joins these in `listDestinations` — we now surface them on
|
|
35
|
+
* the wire.
|
|
36
|
+
*
|
|
37
|
+
* `lastSuccessAt` / `lastSuccessSizeBytes` are computed from each
|
|
38
|
+
* location's `manifests.json` (newest archive). Optional — locations
|
|
39
|
+
* with no archives yet leave them undefined.
|
|
40
|
+
*/
|
|
41
|
+
declare const BackupDestinationInfoSchema: z.ZodObject<{
|
|
42
|
+
subId: z.ZodString;
|
|
43
|
+
displayName: z.ZodString;
|
|
44
|
+
description: z.ZodOptional<z.ZodString>;
|
|
45
|
+
kind: z.ZodString;
|
|
46
|
+
triggerSupported: z.ZodBoolean;
|
|
47
|
+
restoreSupported: z.ZodBoolean;
|
|
48
|
+
id: z.ZodString;
|
|
49
|
+
addonId: z.ZodString;
|
|
50
|
+
enabled: z.ZodBoolean;
|
|
51
|
+
retentionCount: z.ZodNumber;
|
|
52
|
+
label: z.ZodOptional<z.ZodString>;
|
|
53
|
+
lastSuccessAt: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
lastSuccessSizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
55
|
+
cron: z.ZodOptional<z.ZodString>;
|
|
56
|
+
nextRunAt: z.ZodOptional<z.ZodNumber>;
|
|
57
|
+
lastRunAt: z.ZodOptional<z.ZodNumber>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
/**
|
|
60
|
+
* Per-archive entry returned by `backup.listArchives({ destinationId })`.
|
|
61
|
+
* Same shape the destination drill-in renders. Sourced from the per-
|
|
62
|
+
* location `manifests.json` (no per-archive tarball read required).
|
|
63
|
+
*/
|
|
64
|
+
declare const BackupArchiveEntrySchema: z.ZodObject<{
|
|
65
|
+
id: z.ZodString;
|
|
66
|
+
filename: z.ZodString;
|
|
67
|
+
createdAt: z.ZodNumber;
|
|
68
|
+
sizeBytes: z.ZodNumber;
|
|
69
|
+
label: z.ZodOptional<z.ZodString>;
|
|
70
|
+
locations: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
declare const BackupEntrySchema: z.ZodObject<{
|
|
73
|
+
id: z.ZodString;
|
|
74
|
+
destinationId: z.ZodOptional<z.ZodString>;
|
|
75
|
+
label: z.ZodOptional<z.ZodString>;
|
|
76
|
+
createdAt: z.ZodNumber;
|
|
77
|
+
sizeBytes: z.ZodNumber;
|
|
78
|
+
locations: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
79
|
+
}, z.core.$strip>;
|
|
80
|
+
declare const ArchiveEntrySchema: z.ZodObject<{
|
|
81
|
+
path: z.ZodString;
|
|
82
|
+
kind: z.ZodEnum<{
|
|
83
|
+
file: "file";
|
|
84
|
+
dir: "dir";
|
|
85
|
+
symlink: "symlink";
|
|
86
|
+
}>;
|
|
87
|
+
sizeBytes: z.ZodNumber;
|
|
88
|
+
mtime: z.ZodNumber;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
declare const ArchiveManifestSchema: z.ZodObject<{
|
|
91
|
+
archiveVersion: z.ZodLiteral<1>;
|
|
92
|
+
createdAt: z.ZodNumber;
|
|
93
|
+
dataDir: z.ZodString;
|
|
94
|
+
locations: z.ZodArray<z.ZodString>;
|
|
95
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
96
|
+
path: z.ZodString;
|
|
97
|
+
kind: z.ZodEnum<{
|
|
98
|
+
file: "file";
|
|
99
|
+
dir: "dir";
|
|
100
|
+
symlink: "symlink";
|
|
101
|
+
}>;
|
|
102
|
+
sizeBytes: z.ZodNumber;
|
|
103
|
+
mtime: z.ZodNumber;
|
|
104
|
+
}, z.core.$strip>>;
|
|
105
|
+
totalBytes: z.ZodNumber;
|
|
106
|
+
totalFiles: z.ZodNumber;
|
|
107
|
+
}, z.core.$strip>;
|
|
108
|
+
declare const LocationStatSchema: z.ZodObject<{
|
|
109
|
+
name: z.ZodString;
|
|
110
|
+
sizeBytes: z.ZodNumber;
|
|
111
|
+
fileCount: z.ZodNumber;
|
|
112
|
+
present: z.ZodBoolean;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
/**
|
|
115
|
+
* backup — singleton capability for backup management.
|
|
116
|
+
*
|
|
117
|
+
* Implemented by `local-backup` addon. Future providers (S3, rsync)
|
|
118
|
+
* can replace it by registering the same capability.
|
|
119
|
+
*/
|
|
120
|
+
export declare const backupCapability: {
|
|
121
|
+
readonly name: "backup";
|
|
122
|
+
readonly scope: "system";
|
|
123
|
+
readonly mode: "singleton";
|
|
124
|
+
readonly methods: {
|
|
125
|
+
/**
|
|
126
|
+
* Flat aggregate of every destination across every registered
|
|
127
|
+
* `backup-destination` provider. This is the orchestrator-side
|
|
128
|
+
* surface; it expands per-addon `listDestinations()` results into
|
|
129
|
+
* one list the UI can render directly.
|
|
130
|
+
*/
|
|
131
|
+
readonly listDestinations: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
132
|
+
subId: z.ZodString;
|
|
133
|
+
displayName: z.ZodString;
|
|
134
|
+
description: z.ZodOptional<z.ZodString>;
|
|
135
|
+
kind: z.ZodString;
|
|
136
|
+
triggerSupported: z.ZodBoolean;
|
|
137
|
+
restoreSupported: z.ZodBoolean;
|
|
138
|
+
id: z.ZodString;
|
|
139
|
+
addonId: z.ZodString;
|
|
140
|
+
enabled: z.ZodBoolean;
|
|
141
|
+
retentionCount: z.ZodNumber;
|
|
142
|
+
label: z.ZodOptional<z.ZodString>;
|
|
143
|
+
lastSuccessAt: z.ZodOptional<z.ZodNumber>;
|
|
144
|
+
lastSuccessSizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
145
|
+
cron: z.ZodOptional<z.ZodString>;
|
|
146
|
+
nextRunAt: z.ZodOptional<z.ZodNumber>;
|
|
147
|
+
lastRunAt: z.ZodOptional<z.ZodNumber>;
|
|
148
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
149
|
+
/**
|
|
150
|
+
* Trigger a backup. Without `destinations` the orchestrator fans
|
|
151
|
+
* out to every destination flagged as enabled in the routing
|
|
152
|
+
* config; with it, only the listed addons receive the archive.
|
|
153
|
+
*/
|
|
154
|
+
readonly trigger: import("./capability-definition.js").CapabilityMethodSchema<z.ZodOptional<z.ZodObject<{
|
|
155
|
+
destinations: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
156
|
+
locations: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
157
|
+
label: z.ZodOptional<z.ZodString>;
|
|
158
|
+
}, z.core.$strip>>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
159
|
+
id: z.ZodString;
|
|
160
|
+
destinationId: z.ZodOptional<z.ZodString>;
|
|
161
|
+
label: z.ZodOptional<z.ZodString>;
|
|
162
|
+
createdAt: z.ZodNumber;
|
|
163
|
+
sizeBytes: z.ZodNumber;
|
|
164
|
+
locations: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
165
|
+
}, z.core.$strip>>>, "mutation">;
|
|
166
|
+
/** Union of every destination's archives, each tagged with `destinationId`. */
|
|
167
|
+
readonly list: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
168
|
+
id: z.ZodString;
|
|
169
|
+
destinationId: z.ZodOptional<z.ZodString>;
|
|
170
|
+
label: z.ZodOptional<z.ZodString>;
|
|
171
|
+
createdAt: z.ZodNumber;
|
|
172
|
+
sizeBytes: z.ZodNumber;
|
|
173
|
+
locations: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
174
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
175
|
+
/**
|
|
176
|
+
* Pre-backup snapshot of the well-known locations on disk — sizes
|
|
177
|
+
* + file counts. Powers the opt-in checklist that lets the
|
|
178
|
+
* operator pick which subsections of state get archived.
|
|
179
|
+
*/
|
|
180
|
+
readonly listLocations: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
181
|
+
name: z.ZodString;
|
|
182
|
+
sizeBytes: z.ZodNumber;
|
|
183
|
+
fileCount: z.ZodNumber;
|
|
184
|
+
present: z.ZodBoolean;
|
|
185
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
186
|
+
/**
|
|
187
|
+
* Read the embedded `.camstack-backup-manifest.json` from a
|
|
188
|
+
* previously-created archive. The manifest carries the full
|
|
189
|
+
* file/dir listing with sizes + mtimes — the readdir snapshot
|
|
190
|
+
* the UI shows in the "Contents" panel. Returns `null` when the
|
|
191
|
+
* archive predates manifests (created before this feature
|
|
192
|
+
* shipped).
|
|
193
|
+
*/
|
|
194
|
+
readonly getEntries: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
195
|
+
destinationId: z.ZodString;
|
|
196
|
+
backupId: z.ZodString;
|
|
197
|
+
}, z.core.$strip>, z.ZodNullable<z.ZodObject<{
|
|
198
|
+
archiveVersion: z.ZodLiteral<1>;
|
|
199
|
+
createdAt: z.ZodNumber;
|
|
200
|
+
dataDir: z.ZodString;
|
|
201
|
+
locations: z.ZodArray<z.ZodString>;
|
|
202
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
203
|
+
path: z.ZodString;
|
|
204
|
+
kind: z.ZodEnum<{
|
|
205
|
+
file: "file";
|
|
206
|
+
dir: "dir";
|
|
207
|
+
symlink: "symlink";
|
|
208
|
+
}>;
|
|
209
|
+
sizeBytes: z.ZodNumber;
|
|
210
|
+
mtime: z.ZodNumber;
|
|
211
|
+
}, z.core.$strip>>;
|
|
212
|
+
totalBytes: z.ZodNumber;
|
|
213
|
+
totalFiles: z.ZodNumber;
|
|
214
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
215
|
+
readonly restore: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
216
|
+
destinationId: z.ZodString;
|
|
217
|
+
backupId: z.ZodString;
|
|
218
|
+
locations: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
219
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
220
|
+
readonly delete: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
221
|
+
destinationId: z.ZodString;
|
|
222
|
+
backupId: z.ZodString;
|
|
223
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
224
|
+
/**
|
|
225
|
+
* List archives at a single destination. Reads the per-location
|
|
226
|
+
* `manifests.json` and returns one entry per archive (newest
|
|
227
|
+
* first). Powers the destinations-table drill-in in admin UI.
|
|
228
|
+
*/
|
|
229
|
+
readonly listArchives: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
230
|
+
destinationId: z.ZodString;
|
|
231
|
+
}, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
232
|
+
id: z.ZodString;
|
|
233
|
+
filename: z.ZodString;
|
|
234
|
+
createdAt: z.ZodNumber;
|
|
235
|
+
sizeBytes: z.ZodNumber;
|
|
236
|
+
label: z.ZodOptional<z.ZodString>;
|
|
237
|
+
locations: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
238
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
239
|
+
/**
|
|
240
|
+
* Upsert a per-destination policy row. The `locationId` MUST be
|
|
241
|
+
* the id of an existing `backups`-typed `StorageLocation`. Used
|
|
242
|
+
* by the admin-UI destinations table (enable toggle + retention
|
|
243
|
+
* input + optional label).
|
|
244
|
+
*/
|
|
245
|
+
readonly upsertDestinationPolicy: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
246
|
+
locationId: z.ZodString;
|
|
247
|
+
enabled: z.ZodBoolean;
|
|
248
|
+
retentionCount: z.ZodNumber;
|
|
249
|
+
label: z.ZodOptional<z.ZodString>;
|
|
250
|
+
cron: z.ZodOptional<z.ZodString>;
|
|
251
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
252
|
+
/**
|
|
253
|
+
* Validate a cron expression and peek the next N firing times.
|
|
254
|
+
* Used by the admin-UI CronEditor to render a live "next-run"
|
|
255
|
+
* preview as the operator edits the pattern.
|
|
256
|
+
*/
|
|
257
|
+
readonly previewSchedule: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
258
|
+
cron: z.ZodString;
|
|
259
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
260
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
261
|
+
ok: z.ZodBoolean;
|
|
262
|
+
error: z.ZodOptional<z.ZodString>;
|
|
263
|
+
nextRuns: z.ZodReadonly<z.ZodArray<z.ZodNumber>>;
|
|
264
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
export type IBackupProvider = InferProvider<typeof backupCapability>;
|
|
268
|
+
export { BackupEntrySchema, BackupSubDestinationInfoSchema, BackupDestinationInfoSchema, BackupArchiveEntrySchema, ArchiveEntrySchema, ArchiveManifestSchema, LocationStatSchema, };
|
|
269
|
+
//# sourceMappingURL=backup.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backup.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/backup.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAElG;;;;GAIG;AACH;;;;;;;;;GASG;AACH,QAAA,MAAM,8BAA8B;;;;;;;iBAalC,CAAA;AAEF;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;iBAwB/B,CAAA;AAEF;;;;GAIG;AACH,QAAA,MAAM,wBAAwB;;;;;;;iBAQ5B,CAAA;AAEF,QAAA,MAAM,iBAAiB;;;;;;;iBAQrB,CAAA;AAEF,QAAA,MAAM,kBAAkB;;;;;;;;;iBAKtB,CAAA;AAEF,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;iBAQzB,CAAA;AAEF,QAAA,MAAM,kBAAkB;;;;;iBAKtB,CAAA;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;;;;;QAKzB;;;;;WAKG;;;;;;;;;;;;;;;;;;;QAMH;;;;WAIG;;;;;;;;;;;;;QAWH,+EAA+E;;;;;;;;;QAE/E;;;;WAIG;;;;;;;QAEH;;;;;;;WAOG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA2BH;;;;WAIG;;;;;;;;;;;QAMH;;;;;WAKG;;;;;;;;QAmBH;;;;WAIG;;;;;;;;;;CAakC,CAAA;AAEzC,MAAM,MAAM,eAAe,GAAG,aAAa,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAEpE,OAAO,EACL,iBAAiB,EACjB,8BAA8B,EAC9B,2BAA2B,EAC3B,wBAAwB,EACxB,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,GACnB,CAAA"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
import { DeviceType } from '../device/device-type.js';
|
|
4
|
+
/**
|
|
5
|
+
* Battery status snapshot. Emitted by providers whose device is
|
|
6
|
+
* battery-operated (cameras with `DeviceFeature.BatteryOperated`,
|
|
7
|
+
* future sensor/button accessories). Consumers build their own "low
|
|
8
|
+
* battery" alerting on top — the cap deliberately does NOT enforce a
|
|
9
|
+
* threshold.
|
|
10
|
+
*/
|
|
11
|
+
export declare const BatteryStatusSchema: z.ZodObject<{
|
|
12
|
+
percentage: z.ZodNumber;
|
|
13
|
+
charging: z.ZodEnum<{
|
|
14
|
+
none: "none";
|
|
15
|
+
dc: "dc";
|
|
16
|
+
solar: "solar";
|
|
17
|
+
}>;
|
|
18
|
+
sleeping: z.ZodBoolean;
|
|
19
|
+
lastUpdated: z.ZodNumber;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export type BatteryStatus = z.infer<typeof BatteryStatusSchema>;
|
|
22
|
+
export declare const batteryCapability: {
|
|
23
|
+
readonly name: "battery";
|
|
24
|
+
readonly scope: "device";
|
|
25
|
+
readonly mode: "singleton";
|
|
26
|
+
readonly deviceTypes: readonly [DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch];
|
|
27
|
+
readonly methods: {};
|
|
28
|
+
readonly events: {
|
|
29
|
+
/**
|
|
30
|
+
* Emitted whenever the cached status changes (firmware push OR
|
|
31
|
+
* poll observes a delta). The DeviceEventPropagator mirrors this
|
|
32
|
+
* event on the parent chain — subscribing to a camera's source
|
|
33
|
+
* receives battery events from child accessories automatically.
|
|
34
|
+
*/
|
|
35
|
+
readonly onStatusChanged: {
|
|
36
|
+
readonly data: z.ZodObject<{
|
|
37
|
+
deviceId: z.ZodNumber;
|
|
38
|
+
status: z.ZodObject<{
|
|
39
|
+
percentage: z.ZodNumber;
|
|
40
|
+
charging: z.ZodEnum<{
|
|
41
|
+
none: "none";
|
|
42
|
+
dc: "dc";
|
|
43
|
+
solar: "solar";
|
|
44
|
+
}>;
|
|
45
|
+
sleeping: z.ZodBoolean;
|
|
46
|
+
lastUpdated: z.ZodNumber;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
readonly status: {
|
|
52
|
+
readonly schema: z.ZodObject<{
|
|
53
|
+
percentage: z.ZodNumber;
|
|
54
|
+
charging: z.ZodEnum<{
|
|
55
|
+
none: "none";
|
|
56
|
+
dc: "dc";
|
|
57
|
+
solar: "solar";
|
|
58
|
+
}>;
|
|
59
|
+
sleeping: z.ZodBoolean;
|
|
60
|
+
lastUpdated: z.ZodNumber;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
readonly kind: "push";
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Runtime-state slice — every provider that registers this cap
|
|
66
|
+
* stores the same shape under `device.runtimeState[battery]`.
|
|
67
|
+
* Cross-provider uniformity: a Reolink Argus, a Frigate sensor
|
|
68
|
+
* proxy, an ONVIF battery cam all read/write the same keys.
|
|
69
|
+
* Consumers (BatteryBadge, snapshot wrapper sleep gate) read once
|
|
70
|
+
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
71
|
+
* the underlying driver.
|
|
72
|
+
*/
|
|
73
|
+
readonly runtimeState: z.ZodObject<{
|
|
74
|
+
percentage: z.ZodNumber;
|
|
75
|
+
charging: z.ZodEnum<{
|
|
76
|
+
none: "none";
|
|
77
|
+
dc: "dc";
|
|
78
|
+
solar: "solar";
|
|
79
|
+
}>;
|
|
80
|
+
sleeping: z.ZodBoolean;
|
|
81
|
+
lastUpdated: z.ZodNumber;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
};
|
|
84
|
+
export type IBatteryProvider = InferProvider<typeof batteryCapability>;
|
|
85
|
+
//# sourceMappingURL=battery.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"battery.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/battery.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAA6B,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1F,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAErD;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;iBAkB9B,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE/D,eAAO,MAAM,iBAAiB;;;;;;;QAO1B;;;;;WAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUL;;;;;;;;OAQG;;;;;;;;;;;CAEoC,CAAA;AAEzC,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAAC,OAAO,iBAAiB,CAAC,CAAA"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
import { DeviceType } from '../device/device-type.js';
|
|
4
|
+
/**
|
|
5
|
+
* Dimmable-light brightness control. Co-exists with `switch` on the
|
|
6
|
+
* same device — the switch toggles on/off, this cap sets the level
|
|
7
|
+
* applied when the light is on. Modeled after Scrypted's `Brightness`
|
|
8
|
+
* interface so drivers can map their per-vendor dim controls cleanly.
|
|
9
|
+
*
|
|
10
|
+
* The cap is intentionally minimal: a single `setBrightness({deviceId,
|
|
11
|
+
* percentage})` mutation plus the auto-injected `getStatus`. Drivers
|
|
12
|
+
* that expose richer controls (color temperature, scenes, schedules)
|
|
13
|
+
* should surface those via the device's `getSettingsUISchema()`
|
|
14
|
+
* instead of bloating this cap.
|
|
15
|
+
*/
|
|
16
|
+
export declare const BrightnessStatusSchema: z.ZodObject<{
|
|
17
|
+
percentage: z.ZodNumber;
|
|
18
|
+
lastChangedAt: z.ZodNumber;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export type BrightnessStatus = z.infer<typeof BrightnessStatusSchema>;
|
|
21
|
+
export declare const brightnessCapability: {
|
|
22
|
+
readonly name: "brightness";
|
|
23
|
+
readonly scope: "device";
|
|
24
|
+
readonly mode: "singleton";
|
|
25
|
+
readonly deviceTypes: readonly [DeviceType.Light];
|
|
26
|
+
readonly methods: {
|
|
27
|
+
readonly setBrightness: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
28
|
+
deviceId: z.ZodNumber;
|
|
29
|
+
percentage: z.ZodNumber;
|
|
30
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
31
|
+
};
|
|
32
|
+
readonly events: {
|
|
33
|
+
/**
|
|
34
|
+
* Emitted whenever the brightness changes — operator action OR
|
|
35
|
+
* firmware push. Subscribers (UI sliders, automation engines) react
|
|
36
|
+
* without polling.
|
|
37
|
+
*/
|
|
38
|
+
readonly onBrightnessChanged: {
|
|
39
|
+
readonly data: z.ZodObject<{
|
|
40
|
+
deviceId: z.ZodNumber;
|
|
41
|
+
percentage: z.ZodNumber;
|
|
42
|
+
lastChangedAt: z.ZodNumber;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
readonly status: {
|
|
47
|
+
readonly schema: z.ZodObject<{
|
|
48
|
+
percentage: z.ZodNumber;
|
|
49
|
+
lastChangedAt: z.ZodNumber;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
readonly kind: "command-driven";
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Runtime-state slice — the last applied brightness level, mirrored
|
|
55
|
+
* by the kernel. Read via `device.state.brightness.value` so UI
|
|
56
|
+
* sliders surface the current level without polling the provider.
|
|
57
|
+
*/
|
|
58
|
+
readonly runtimeState: z.ZodObject<{
|
|
59
|
+
percentage: z.ZodNumber;
|
|
60
|
+
lastChangedAt: z.ZodNumber;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
};
|
|
63
|
+
export type IBrightnessProvider = InferProvider<typeof brightnessCapability>;
|
|
64
|
+
//# sourceMappingURL=brightness.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brightness.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/brightness.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;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB;;;iBAKjC,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAErE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;QAgB7B;;;;WAIG;;;;;;;;;;;;;;;;IAWL;;;;OAIG;;;;;CAEoC,CAAA;AAEzC,MAAM,MAAM,mBAAmB,GAAG,aAAa,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
import { DeviceType } from '../device/device-type.js';
|
|
4
|
+
/**
|
|
5
|
+
* camera-credentials — device-scoped cap exposing the camera's network
|
|
6
|
+
* + auth surface in a vendor-neutral shape.
|
|
7
|
+
*
|
|
8
|
+
* Why it exists: cross-vendor wrappers (the planned ONVIF generic addon
|
|
9
|
+
* for PTZ / intercom / events; future homekit / mqtt bridges) need the
|
|
10
|
+
* camera's IP + port + creds without each wrapper re-implementing
|
|
11
|
+
* vendor-specific config-blob extraction. With this cap, every camera
|
|
12
|
+
* provider returns a uniform CameraCredentials and consumers stay
|
|
13
|
+
* vendor-agnostic.
|
|
14
|
+
*
|
|
15
|
+
* Implementations:
|
|
16
|
+
* - Each camera-providing addon registers this cap natively per
|
|
17
|
+
* device (Reolink, Hikvision, RTSP, Frigate, ONVIF self).
|
|
18
|
+
* - Returns a snapshot from the persisted device config blob — no
|
|
19
|
+
* extra round-trip to the camera, no probing.
|
|
20
|
+
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
21
|
+
* leak through user-scoped paths.
|
|
22
|
+
*
|
|
23
|
+
* Sensitive data handling:
|
|
24
|
+
* - getCredentials returns the full snapshot to admin callers only.
|
|
25
|
+
* - Wrappers are expected to use the value to construct a per-call
|
|
26
|
+
* client and NOT to log / event-bus-emit the password field.
|
|
27
|
+
* - The cap status payload (mirrored to runtime-state) carries
|
|
28
|
+
* non-sensitive metadata only — host + ports + protocol hints. The
|
|
29
|
+
* password / username live on `getCredentials` exclusively.
|
|
30
|
+
*
|
|
31
|
+
* See `docs/onvif-generic-addon-plan.md` for the consuming wrapper
|
|
32
|
+
* design.
|
|
33
|
+
*/
|
|
34
|
+
export declare const CameraCredentialsSchema: z.ZodObject<{
|
|
35
|
+
host: z.ZodString;
|
|
36
|
+
port: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
onvifPort: z.ZodOptional<z.ZodNumber>;
|
|
38
|
+
rtspPort: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
https: z.ZodOptional<z.ZodBoolean>;
|
|
40
|
+
username: z.ZodOptional<z.ZodString>;
|
|
41
|
+
password: z.ZodOptional<z.ZodString>;
|
|
42
|
+
onvifProfile: z.ZodOptional<z.ZodString>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
export type CameraCredentials = z.infer<typeof CameraCredentialsSchema>;
|
|
45
|
+
/**
|
|
46
|
+
* Non-sensitive camera-credentials status — host + ports + protocol
|
|
47
|
+
* hints only. Mirrors what shows up in the bindings UI / device
|
|
48
|
+
* aggregate. The full credentials (with password) are exposed only via
|
|
49
|
+
* `getCredentials` to admin callers.
|
|
50
|
+
*/
|
|
51
|
+
export declare const CameraCredentialsStatusSchema: z.ZodObject<{
|
|
52
|
+
host: z.ZodString;
|
|
53
|
+
port: z.ZodNullable<z.ZodNumber>;
|
|
54
|
+
onvifPort: z.ZodNullable<z.ZodNumber>;
|
|
55
|
+
rtspPort: z.ZodNullable<z.ZodNumber>;
|
|
56
|
+
https: z.ZodNullable<z.ZodBoolean>;
|
|
57
|
+
hasUsername: z.ZodBoolean;
|
|
58
|
+
hasPassword: z.ZodBoolean;
|
|
59
|
+
onvifProfile: z.ZodNullable<z.ZodString>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
export type CameraCredentialsStatus = z.infer<typeof CameraCredentialsStatusSchema>;
|
|
62
|
+
export declare const cameraCredentialsCapability: {
|
|
63
|
+
readonly name: "camera-credentials";
|
|
64
|
+
readonly scope: "device";
|
|
65
|
+
readonly mode: "singleton";
|
|
66
|
+
readonly deviceTypes: readonly [DeviceType.Camera];
|
|
67
|
+
readonly methods: {
|
|
68
|
+
/**
|
|
69
|
+
* Return the camera's full credential bundle for admin consumers.
|
|
70
|
+
* Each provider implementation returns a snapshot of its persisted
|
|
71
|
+
* config — no I/O to the camera. Returns null when the device is
|
|
72
|
+
* not owned by this addon (deviceId mismatch).
|
|
73
|
+
*/
|
|
74
|
+
readonly getCredentials: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
75
|
+
deviceId: z.ZodNumber;
|
|
76
|
+
}, z.core.$strip>, z.ZodNullable<z.ZodObject<{
|
|
77
|
+
host: z.ZodString;
|
|
78
|
+
port: z.ZodOptional<z.ZodNumber>;
|
|
79
|
+
onvifPort: z.ZodOptional<z.ZodNumber>;
|
|
80
|
+
rtspPort: z.ZodOptional<z.ZodNumber>;
|
|
81
|
+
https: z.ZodOptional<z.ZodBoolean>;
|
|
82
|
+
username: z.ZodOptional<z.ZodString>;
|
|
83
|
+
password: z.ZodOptional<z.ZodString>;
|
|
84
|
+
onvifProfile: z.ZodOptional<z.ZodString>;
|
|
85
|
+
}, z.core.$strip>>, "query">;
|
|
86
|
+
};
|
|
87
|
+
readonly status: {
|
|
88
|
+
readonly schema: z.ZodObject<{
|
|
89
|
+
host: z.ZodString;
|
|
90
|
+
port: z.ZodNullable<z.ZodNumber>;
|
|
91
|
+
onvifPort: z.ZodNullable<z.ZodNumber>;
|
|
92
|
+
rtspPort: z.ZodNullable<z.ZodNumber>;
|
|
93
|
+
https: z.ZodNullable<z.ZodBoolean>;
|
|
94
|
+
hasUsername: z.ZodBoolean;
|
|
95
|
+
hasPassword: z.ZodBoolean;
|
|
96
|
+
onvifProfile: z.ZodNullable<z.ZodString>;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
readonly kind: "command-driven";
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
export type ICameraCredentialsProvider = InferProvider<typeof cameraCredentialsCapability>;
|
|
102
|
+
//# sourceMappingURL=camera-credentials.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"camera-credentials.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/camera-credentials.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;iBAiBlC,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAEvE;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;iBASxC,CAAA;AAEF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA;AAEnF,eAAO,MAAM,2BAA2B;;;;;;QAMpC;;;;;WAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWkC,CAAA;AAEzC,MAAM,MAAM,0BAA0B,GAAG,aAAa,CAAC,OAAO,2BAA2B,CAAC,CAAA"}
|