@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,356 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
/**
|
|
4
|
+
* addons — system-scoped singleton capability for addon package
|
|
5
|
+
* management (install, update, configure, restart) and per-addon log
|
|
6
|
+
* streaming.
|
|
7
|
+
*
|
|
8
|
+
* Implementation lives in the server's `AddonRegistryService`,
|
|
9
|
+
* `AddonPackageService`, and `LoggingService`. The provider is
|
|
10
|
+
* registered from `trpc.router.ts` against those services — no addon
|
|
11
|
+
* owns this surface end-to-end (it manages addons themselves).
|
|
12
|
+
*
|
|
13
|
+
* Phase E of the API consolidation: previously a hand-written core
|
|
14
|
+
* router. Cap conversion lets `useAddonsList`, `useAddonsInstallPackage`,
|
|
15
|
+
* `useAddonsOnAddonLogs`, etc. flow through the same codegen pipeline
|
|
16
|
+
* as every other cap.
|
|
17
|
+
*/
|
|
18
|
+
declare const LogLevelSchema: z.ZodEnum<{
|
|
19
|
+
info: "info";
|
|
20
|
+
error: "error";
|
|
21
|
+
debug: "debug";
|
|
22
|
+
warn: "warn";
|
|
23
|
+
}>;
|
|
24
|
+
declare const ChannelSchema: z.ZodEnum<{
|
|
25
|
+
off: "off";
|
|
26
|
+
latest: "latest";
|
|
27
|
+
beta: "beta";
|
|
28
|
+
}>;
|
|
29
|
+
declare const ChannelWithInheritSchema: z.ZodEnum<{
|
|
30
|
+
off: "off";
|
|
31
|
+
latest: "latest";
|
|
32
|
+
beta: "beta";
|
|
33
|
+
inherit: "inherit";
|
|
34
|
+
}>;
|
|
35
|
+
declare const AddonListItemSchema: z.ZodObject<{
|
|
36
|
+
manifest: z.ZodObject<{
|
|
37
|
+
id: z.ZodString;
|
|
38
|
+
name: z.ZodOptional<z.ZodString>;
|
|
39
|
+
version: z.ZodOptional<z.ZodString>;
|
|
40
|
+
description: z.ZodOptional<z.ZodString>;
|
|
41
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
42
|
+
color: z.ZodOptional<z.ZodString>;
|
|
43
|
+
capabilities: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodUnknown>>>;
|
|
44
|
+
packageName: z.ZodString;
|
|
45
|
+
packageVersion: z.ZodString;
|
|
46
|
+
packageDisplayName: z.ZodOptional<z.ZodString>;
|
|
47
|
+
bundle: z.ZodOptional<z.ZodObject<{
|
|
48
|
+
displayName: z.ZodString;
|
|
49
|
+
description: z.ZodOptional<z.ZodString>;
|
|
50
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
protected: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
+
removable: z.ZodOptional<z.ZodBoolean>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
declaration: z.ZodOptional<z.ZodUnknown>;
|
|
56
|
+
source: z.ZodString;
|
|
57
|
+
installSource: z.ZodOptional<z.ZodString>;
|
|
58
|
+
process: z.ZodOptional<z.ZodObject<{
|
|
59
|
+
pid: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
mode: z.ZodString;
|
|
61
|
+
state: z.ZodString;
|
|
62
|
+
}, z.core.$strip>>;
|
|
63
|
+
hasBackup: z.ZodOptional<z.ZodBoolean>;
|
|
64
|
+
health: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
65
|
+
phase: z.ZodEnum<{
|
|
66
|
+
pending: "pending";
|
|
67
|
+
healthy: "healthy";
|
|
68
|
+
failed: "failed";
|
|
69
|
+
}>;
|
|
70
|
+
retryCount: z.ZodNumber;
|
|
71
|
+
firstFailureAt: z.ZodNullable<z.ZodNumber>;
|
|
72
|
+
lastAttemptAt: z.ZodNullable<z.ZodNumber>;
|
|
73
|
+
lastError: z.ZodNullable<z.ZodObject<{
|
|
74
|
+
message: z.ZodString;
|
|
75
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
76
|
+
}, z.core.$strip>>;
|
|
77
|
+
nextRetryAt: z.ZodNullable<z.ZodNumber>;
|
|
78
|
+
alertEmitted: z.ZodBoolean;
|
|
79
|
+
retrying: z.ZodBoolean;
|
|
80
|
+
inGracePeriod: z.ZodBoolean;
|
|
81
|
+
}, z.core.$strip>>>;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
declare const InstalledPackageSchema: z.ZodObject<{
|
|
84
|
+
name: z.ZodString;
|
|
85
|
+
version: z.ZodString;
|
|
86
|
+
dir: z.ZodString;
|
|
87
|
+
installSource: z.ZodOptional<z.ZodString>;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
declare const PackageUpdateSchema: z.ZodObject<{
|
|
90
|
+
name: z.ZodString;
|
|
91
|
+
currentVersion: z.ZodString;
|
|
92
|
+
latestVersion: z.ZodString;
|
|
93
|
+
category: z.ZodEnum<{
|
|
94
|
+
addon: "addon";
|
|
95
|
+
core: "core";
|
|
96
|
+
}>;
|
|
97
|
+
requiresRestart: z.ZodBoolean;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
declare const PackageVersionInfoSchema: z.ZodObject<{
|
|
100
|
+
version: z.ZodString;
|
|
101
|
+
publishedAt: z.ZodString;
|
|
102
|
+
deprecated: z.ZodOptional<z.ZodString>;
|
|
103
|
+
distTags: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
declare const SearchResultSchema: z.ZodObject<{
|
|
106
|
+
name: z.ZodString;
|
|
107
|
+
version: z.ZodString;
|
|
108
|
+
description: z.ZodString;
|
|
109
|
+
keywords: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
110
|
+
publishedAt: z.ZodString;
|
|
111
|
+
author: z.ZodString;
|
|
112
|
+
installed: z.ZodBoolean;
|
|
113
|
+
installedVersion: z.ZodOptional<z.ZodString>;
|
|
114
|
+
}, z.core.$strip>;
|
|
115
|
+
declare const AutoUpdateSettingsSchema: z.ZodObject<{
|
|
116
|
+
channel: z.ZodEnum<{
|
|
117
|
+
off: "off";
|
|
118
|
+
latest: "latest";
|
|
119
|
+
beta: "beta";
|
|
120
|
+
}>;
|
|
121
|
+
intervalSeconds: z.ZodNumber;
|
|
122
|
+
}, z.core.$strip>;
|
|
123
|
+
declare const AddonAutoUpdateSchema: z.ZodEnum<{
|
|
124
|
+
off: "off";
|
|
125
|
+
latest: "latest";
|
|
126
|
+
beta: "beta";
|
|
127
|
+
inherit: "inherit";
|
|
128
|
+
}>;
|
|
129
|
+
declare const LogStreamEntrySchema: z.ZodObject<{
|
|
130
|
+
timestamp: z.ZodString;
|
|
131
|
+
level: z.ZodString;
|
|
132
|
+
message: z.ZodString;
|
|
133
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
134
|
+
}, z.core.$strip>;
|
|
135
|
+
declare const CustomActionInputSchema: z.ZodObject<{
|
|
136
|
+
addonId: z.ZodString;
|
|
137
|
+
action: z.ZodString;
|
|
138
|
+
input: z.ZodUnknown;
|
|
139
|
+
}, z.core.$strip>;
|
|
140
|
+
export declare const addonsCapability: {
|
|
141
|
+
readonly name: "addons";
|
|
142
|
+
readonly scope: "system";
|
|
143
|
+
readonly mode: "singleton";
|
|
144
|
+
readonly methods: {
|
|
145
|
+
readonly list: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
146
|
+
manifest: z.ZodObject<{
|
|
147
|
+
id: z.ZodString;
|
|
148
|
+
name: z.ZodOptional<z.ZodString>;
|
|
149
|
+
version: z.ZodOptional<z.ZodString>;
|
|
150
|
+
description: z.ZodOptional<z.ZodString>;
|
|
151
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
152
|
+
color: z.ZodOptional<z.ZodString>;
|
|
153
|
+
capabilities: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodUnknown>>>;
|
|
154
|
+
packageName: z.ZodString;
|
|
155
|
+
packageVersion: z.ZodString;
|
|
156
|
+
packageDisplayName: z.ZodOptional<z.ZodString>;
|
|
157
|
+
bundle: z.ZodOptional<z.ZodObject<{
|
|
158
|
+
displayName: z.ZodString;
|
|
159
|
+
description: z.ZodOptional<z.ZodString>;
|
|
160
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
161
|
+
}, z.core.$strip>>;
|
|
162
|
+
protected: z.ZodOptional<z.ZodBoolean>;
|
|
163
|
+
removable: z.ZodOptional<z.ZodBoolean>;
|
|
164
|
+
}, z.core.$strip>;
|
|
165
|
+
declaration: z.ZodOptional<z.ZodUnknown>;
|
|
166
|
+
source: z.ZodString;
|
|
167
|
+
installSource: z.ZodOptional<z.ZodString>;
|
|
168
|
+
process: z.ZodOptional<z.ZodObject<{
|
|
169
|
+
pid: z.ZodOptional<z.ZodNumber>;
|
|
170
|
+
mode: z.ZodString;
|
|
171
|
+
state: z.ZodString;
|
|
172
|
+
}, z.core.$strip>>;
|
|
173
|
+
hasBackup: z.ZodOptional<z.ZodBoolean>;
|
|
174
|
+
health: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
175
|
+
phase: z.ZodEnum<{
|
|
176
|
+
pending: "pending";
|
|
177
|
+
healthy: "healthy";
|
|
178
|
+
failed: "failed";
|
|
179
|
+
}>;
|
|
180
|
+
retryCount: z.ZodNumber;
|
|
181
|
+
firstFailureAt: z.ZodNullable<z.ZodNumber>;
|
|
182
|
+
lastAttemptAt: z.ZodNullable<z.ZodNumber>;
|
|
183
|
+
lastError: z.ZodNullable<z.ZodObject<{
|
|
184
|
+
message: z.ZodString;
|
|
185
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
186
|
+
}, z.core.$strip>>;
|
|
187
|
+
nextRetryAt: z.ZodNullable<z.ZodNumber>;
|
|
188
|
+
alertEmitted: z.ZodBoolean;
|
|
189
|
+
retrying: z.ZodBoolean;
|
|
190
|
+
inGracePeriod: z.ZodBoolean;
|
|
191
|
+
}, z.core.$strip>>>;
|
|
192
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
193
|
+
readonly getLogs: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
194
|
+
addonId: z.ZodString;
|
|
195
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
196
|
+
level: z.ZodOptional<z.ZodEnum<{
|
|
197
|
+
info: "info";
|
|
198
|
+
error: "error";
|
|
199
|
+
debug: "debug";
|
|
200
|
+
warn: "warn";
|
|
201
|
+
}>>;
|
|
202
|
+
}, z.core.$strip>, z.ZodArray<z.ZodUnknown>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
203
|
+
readonly listPackages: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
204
|
+
name: z.ZodString;
|
|
205
|
+
version: z.ZodString;
|
|
206
|
+
dir: z.ZodString;
|
|
207
|
+
installSource: z.ZodOptional<z.ZodString>;
|
|
208
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
209
|
+
readonly installPackage: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
210
|
+
packageName: z.ZodString;
|
|
211
|
+
version: z.ZodOptional<z.ZodString>;
|
|
212
|
+
}, z.core.$strip>, z.ZodUnknown, "mutation">;
|
|
213
|
+
readonly installFromWorkspace: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
214
|
+
packageName: z.ZodString;
|
|
215
|
+
}, z.core.$strip>, z.ZodUnknown, "mutation">;
|
|
216
|
+
readonly isWorkspaceAvailable: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodBoolean, import("./capability-definition.js").CapabilityMethodKind>;
|
|
217
|
+
readonly listWorkspacePackages: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodUnknown>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
218
|
+
readonly uninstallPackage: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
219
|
+
packageName: z.ZodString;
|
|
220
|
+
}, z.core.$strip>, z.ZodUnknown, "mutation">;
|
|
221
|
+
readonly reloadPackages: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodUnknown, "mutation">;
|
|
222
|
+
readonly searchAvailable: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
223
|
+
query: z.ZodOptional<z.ZodString>;
|
|
224
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
225
|
+
name: z.ZodString;
|
|
226
|
+
version: z.ZodString;
|
|
227
|
+
description: z.ZodString;
|
|
228
|
+
keywords: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
229
|
+
publishedAt: z.ZodString;
|
|
230
|
+
author: z.ZodString;
|
|
231
|
+
installed: z.ZodBoolean;
|
|
232
|
+
installedVersion: z.ZodOptional<z.ZodString>;
|
|
233
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
234
|
+
readonly listUpdates: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
235
|
+
name: z.ZodString;
|
|
236
|
+
currentVersion: z.ZodString;
|
|
237
|
+
latestVersion: z.ZodString;
|
|
238
|
+
category: z.ZodEnum<{
|
|
239
|
+
addon: "addon";
|
|
240
|
+
core: "core";
|
|
241
|
+
}>;
|
|
242
|
+
requiresRestart: z.ZodBoolean;
|
|
243
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
244
|
+
readonly updatePackage: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
245
|
+
name: z.ZodString;
|
|
246
|
+
version: z.ZodOptional<z.ZodString>;
|
|
247
|
+
}, z.core.$strip>, z.ZodUnknown, "mutation">;
|
|
248
|
+
/**
|
|
249
|
+
* Roll back an addon to the version it had before the most recent
|
|
250
|
+
* `updatePackage` call. The backup directory pointer is kept in the
|
|
251
|
+
* central addon manifest until the post-update health-check
|
|
252
|
+
* confirms the new install works (then it's cleared automatically),
|
|
253
|
+
* so this only succeeds when the most recent update either failed
|
|
254
|
+
* its restart or the user explicitly wants to revert.
|
|
255
|
+
*
|
|
256
|
+
* Returns `{ rolledBackTo: <version> }` on success, or
|
|
257
|
+
* `{ rolledBackTo: null }` when there's no backup to roll back to
|
|
258
|
+
* (caller can show a "no backup available" UI).
|
|
259
|
+
*/
|
|
260
|
+
readonly rollbackPackage: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
261
|
+
name: z.ZodString;
|
|
262
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
263
|
+
rolledBackTo: z.ZodNullable<z.ZodString>;
|
|
264
|
+
}, z.core.$strip>, "mutation">;
|
|
265
|
+
readonly forceRefresh: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodUnknown, "mutation">;
|
|
266
|
+
readonly restartServer: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
267
|
+
confirm: z.ZodLiteral<true>;
|
|
268
|
+
}, z.core.$strip>, z.ZodUnknown, "mutation">;
|
|
269
|
+
readonly getVersions: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
270
|
+
name: z.ZodString;
|
|
271
|
+
}, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
272
|
+
version: z.ZodString;
|
|
273
|
+
publishedAt: z.ZodString;
|
|
274
|
+
deprecated: z.ZodOptional<z.ZodString>;
|
|
275
|
+
distTags: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
276
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
277
|
+
readonly restartAddon: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
278
|
+
addonId: z.ZodString;
|
|
279
|
+
}, z.core.$strip>, z.ZodUnknown, "mutation">;
|
|
280
|
+
/**
|
|
281
|
+
* Force-retry a failed addon NOW. Resets the retry counter so the
|
|
282
|
+
* next failure starts from the 60s interval again. Used by the
|
|
283
|
+
* "Retry now" button in the Addons admin page row + AlertCenter
|
|
284
|
+
* alert action. Idempotent on healthy addons (no-op).
|
|
285
|
+
*/
|
|
286
|
+
readonly retryLoad: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
287
|
+
packageName: z.ZodString;
|
|
288
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
289
|
+
success: z.ZodLiteral<true>;
|
|
290
|
+
}, z.core.$strip>, "mutation">;
|
|
291
|
+
readonly getAutoUpdateSettings: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
|
|
292
|
+
channel: z.ZodEnum<{
|
|
293
|
+
off: "off";
|
|
294
|
+
latest: "latest";
|
|
295
|
+
beta: "beta";
|
|
296
|
+
}>;
|
|
297
|
+
intervalSeconds: z.ZodNumber;
|
|
298
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
299
|
+
readonly setAutoUpdateSettings: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
300
|
+
channel: z.ZodEnum<{
|
|
301
|
+
off: "off";
|
|
302
|
+
latest: "latest";
|
|
303
|
+
beta: "beta";
|
|
304
|
+
}>;
|
|
305
|
+
intervalSeconds: z.ZodOptional<z.ZodNumber>;
|
|
306
|
+
}, z.core.$strip>, z.ZodUnknown, "mutation">;
|
|
307
|
+
readonly getAddonAutoUpdate: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
308
|
+
addonId: z.ZodString;
|
|
309
|
+
}, z.core.$strip>, z.ZodEnum<{
|
|
310
|
+
off: "off";
|
|
311
|
+
latest: "latest";
|
|
312
|
+
beta: "beta";
|
|
313
|
+
inherit: "inherit";
|
|
314
|
+
}>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
315
|
+
readonly setAddonAutoUpdate: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
316
|
+
addonId: z.ZodString;
|
|
317
|
+
channel: z.ZodEnum<{
|
|
318
|
+
off: "off";
|
|
319
|
+
latest: "latest";
|
|
320
|
+
beta: "beta";
|
|
321
|
+
inherit: "inherit";
|
|
322
|
+
}>;
|
|
323
|
+
}, z.core.$strip>, z.ZodUnknown, "mutation">;
|
|
324
|
+
readonly applyAutoUpdateToAll: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
325
|
+
channel: z.ZodEnum<{
|
|
326
|
+
off: "off";
|
|
327
|
+
latest: "latest";
|
|
328
|
+
beta: "beta";
|
|
329
|
+
}>;
|
|
330
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
331
|
+
success: z.ZodLiteral<true>;
|
|
332
|
+
}, z.core.$strip>, "mutation">;
|
|
333
|
+
readonly custom: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
334
|
+
addonId: z.ZodString;
|
|
335
|
+
action: z.ZodString;
|
|
336
|
+
input: z.ZodUnknown;
|
|
337
|
+
}, z.core.$strip>, z.ZodUnknown, "mutation">;
|
|
338
|
+
readonly onAddonLogs: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
339
|
+
addonId: z.ZodString;
|
|
340
|
+
level: z.ZodOptional<z.ZodEnum<{
|
|
341
|
+
info: "info";
|
|
342
|
+
error: "error";
|
|
343
|
+
debug: "debug";
|
|
344
|
+
warn: "warn";
|
|
345
|
+
}>>;
|
|
346
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
347
|
+
timestamp: z.ZodString;
|
|
348
|
+
level: z.ZodString;
|
|
349
|
+
message: z.ZodString;
|
|
350
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
351
|
+
}, z.core.$strip>, "subscription">;
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
export type IAddonsProvider = InferProvider<typeof addonsCapability>;
|
|
355
|
+
export { AddonListItemSchema, InstalledPackageSchema, PackageUpdateSchema, PackageVersionInfoSchema, SearchResultSchema, AutoUpdateSettingsSchema, AddonAutoUpdateSchema, LogStreamEntrySchema, CustomActionInputSchema, LogLevelSchema, ChannelSchema, ChannelWithInheritSchema, };
|
|
356
|
+
//# sourceMappingURL=addons.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addons.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/addons.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAElG;;;;;;;;;;;;;;GAcG;AAYH,QAAA,MAAM,cAAc;;;;;EAA6C,CAAA;AACjE,QAAA,MAAM,aAAa;;;;EAAoC,CAAA;AACvD,QAAA,MAAM,wBAAwB;;;;;EAA+C,CAAA;AAiE7E,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAevB,CAAA;AAEF,QAAA,MAAM,sBAAsB;;;;;iBAK1B,CAAA;AAEF,QAAA,MAAM,mBAAmB;;;;;;;;;iBAMvB,CAAA;AAEF,QAAA,MAAM,wBAAwB;;;;;iBAK5B,CAAA;AAEF,QAAA,MAAM,kBAAkB;;;;;;;;;iBAStB,CAAA;AAEF,QAAA,MAAM,wBAAwB;;;;;;;iBAG5B,CAAA;AAEF,QAAA,MAAM,qBAAqB;;;;;EAA2B,CAAA;AAQtD,QAAA,MAAM,oBAAoB;;;;;iBAKxB,CAAA;AAQF,QAAA,MAAM,uBAAuB;;;;iBAI3B,CAAA;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA2DzB;;;;;;;;;;;WAWG;;;;;;;;;;;;;;;;;;;;;QAsBH;;;;;WAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDkC,CAAA;AAEzC,MAAM,MAAM,eAAe,GAAG,aAAa,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAEpE,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,mBAAmB,EACnB,wBAAwB,EACxB,kBAAkB,EAClB,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,cAAc,EACd,aAAa,EACb,wBAAwB,GACzB,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
export declare const adminUiCapability: {
|
|
4
|
+
readonly name: "admin-ui";
|
|
5
|
+
readonly scope: "system";
|
|
6
|
+
readonly mode: "singleton";
|
|
7
|
+
readonly internal: true;
|
|
8
|
+
readonly methods: {
|
|
9
|
+
readonly getStaticDir: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodString, import("./capability-definition.js").CapabilityMethodKind>;
|
|
10
|
+
readonly getVersion: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodString, import("./capability-definition.js").CapabilityMethodKind>;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export type IAdminUiProvider = InferProvider<typeof adminUiCapability>;
|
|
14
|
+
//# sourceMappingURL=admin-ui.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-ui.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/admin-ui.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAElG,eAAO,MAAM,iBAAiB;;;;;;;;;CASW,CAAA;AAEzC,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAAC,OAAO,iBAAiB,CAAC,CAAA"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
declare const NotificationRuleSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
enabled: z.ZodBoolean;
|
|
7
|
+
conditions: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
8
|
+
actions: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const NotificationHistoryEntrySchema: z.ZodObject<{
|
|
11
|
+
id: z.ZodString;
|
|
12
|
+
ruleId: z.ZodString;
|
|
13
|
+
timestamp: z.ZodNumber;
|
|
14
|
+
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
success: z.ZodBoolean;
|
|
16
|
+
error: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export declare const advancedNotifierCapability: {
|
|
19
|
+
readonly name: "advanced-notifier";
|
|
20
|
+
readonly scope: "system";
|
|
21
|
+
readonly mode: "singleton";
|
|
22
|
+
readonly internal: true;
|
|
23
|
+
readonly methods: {
|
|
24
|
+
readonly getRules: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
25
|
+
id: z.ZodString;
|
|
26
|
+
name: z.ZodString;
|
|
27
|
+
enabled: z.ZodBoolean;
|
|
28
|
+
conditions: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
29
|
+
actions: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
30
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
31
|
+
readonly upsertRule: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
32
|
+
id: z.ZodString;
|
|
33
|
+
name: z.ZodString;
|
|
34
|
+
enabled: z.ZodBoolean;
|
|
35
|
+
conditions: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
36
|
+
actions: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
37
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
38
|
+
readonly deleteRule: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
39
|
+
ruleId: z.ZodString;
|
|
40
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
41
|
+
readonly testRule: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
42
|
+
ruleId: z.ZodString;
|
|
43
|
+
lookbackMinutes: z.ZodNumber;
|
|
44
|
+
}, z.core.$strip>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, "mutation">;
|
|
45
|
+
readonly getHistory: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
46
|
+
ruleId: z.ZodOptional<z.ZodString>;
|
|
47
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
49
|
+
id: z.ZodString;
|
|
50
|
+
ruleId: z.ZodString;
|
|
51
|
+
timestamp: z.ZodNumber;
|
|
52
|
+
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
success: z.ZodBoolean;
|
|
54
|
+
error: z.ZodOptional<z.ZodString>;
|
|
55
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
export type IAdvancedNotifierProvider = InferProvider<typeof advancedNotifierCapability>;
|
|
59
|
+
export { NotificationRuleSchema, NotificationHistoryEntrySchema };
|
|
60
|
+
//# sourceMappingURL=advanced-notifier.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"advanced-notifier.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/advanced-notifier.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAElG,QAAA,MAAM,sBAAsB;;;;;;iBAM1B,CAAA;AAEF,QAAA,MAAM,8BAA8B;;;;;;;iBAOlC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBE,CAAA;AAEzC,MAAM,MAAM,yBAAyB,GAAG,aAAa,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAExF,OAAO,EAAE,sBAAsB,EAAE,8BAA8B,EAAE,CAAA"}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Alerts capability — collection-based internal alert system.
|
|
3
|
+
*
|
|
4
|
+
* Multiple providers can register. Each provider filters by EventBus category
|
|
5
|
+
* and creates/updates alerts. The built-in Alert Center addon persists alerts
|
|
6
|
+
* in the DB and serves them to the admin UI.
|
|
7
|
+
*/
|
|
8
|
+
import { z } from 'zod';
|
|
9
|
+
import { type InferProvider } from './capability-definition.js';
|
|
10
|
+
export declare const AlertSeveritySchema: z.ZodEnum<{
|
|
11
|
+
info: "info";
|
|
12
|
+
error: "error";
|
|
13
|
+
success: "success";
|
|
14
|
+
warning: "warning";
|
|
15
|
+
}>;
|
|
16
|
+
export declare const AlertStatusSchema: z.ZodEnum<{
|
|
17
|
+
active: "active";
|
|
18
|
+
failed: "failed";
|
|
19
|
+
"in-progress": "in-progress";
|
|
20
|
+
completed: "completed";
|
|
21
|
+
dismissed: "dismissed";
|
|
22
|
+
}>;
|
|
23
|
+
export declare const AlertSourceSchema: z.ZodObject<{
|
|
24
|
+
type: z.ZodString;
|
|
25
|
+
id: z.ZodString;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
export declare const AlertSchema: z.ZodObject<{
|
|
28
|
+
id: z.ZodString;
|
|
29
|
+
category: z.ZodString;
|
|
30
|
+
severity: z.ZodEnum<{
|
|
31
|
+
info: "info";
|
|
32
|
+
error: "error";
|
|
33
|
+
success: "success";
|
|
34
|
+
warning: "warning";
|
|
35
|
+
}>;
|
|
36
|
+
title: z.ZodString;
|
|
37
|
+
message: z.ZodString;
|
|
38
|
+
status: z.ZodEnum<{
|
|
39
|
+
active: "active";
|
|
40
|
+
failed: "failed";
|
|
41
|
+
"in-progress": "in-progress";
|
|
42
|
+
completed: "completed";
|
|
43
|
+
dismissed: "dismissed";
|
|
44
|
+
}>;
|
|
45
|
+
progress: z.ZodOptional<z.ZodNumber>;
|
|
46
|
+
read: z.ZodBoolean;
|
|
47
|
+
createdAt: z.ZodNumber;
|
|
48
|
+
updatedAt: z.ZodNumber;
|
|
49
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
50
|
+
type: z.ZodString;
|
|
51
|
+
id: z.ZodString;
|
|
52
|
+
}, z.core.$strip>>;
|
|
53
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
export type AlertSeverity = z.infer<typeof AlertSeveritySchema>;
|
|
56
|
+
export type AlertStatus = z.infer<typeof AlertStatusSchema>;
|
|
57
|
+
export type Alert = z.infer<typeof AlertSchema>;
|
|
58
|
+
export declare const alertsCapability: {
|
|
59
|
+
readonly name: "alerts";
|
|
60
|
+
readonly scope: "system";
|
|
61
|
+
readonly mode: "singleton";
|
|
62
|
+
readonly methods: {
|
|
63
|
+
readonly emit: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
64
|
+
id: z.ZodString;
|
|
65
|
+
category: z.ZodString;
|
|
66
|
+
severity: z.ZodEnum<{
|
|
67
|
+
info: "info";
|
|
68
|
+
error: "error";
|
|
69
|
+
success: "success";
|
|
70
|
+
warning: "warning";
|
|
71
|
+
}>;
|
|
72
|
+
title: z.ZodString;
|
|
73
|
+
message: z.ZodString;
|
|
74
|
+
status: z.ZodEnum<{
|
|
75
|
+
active: "active";
|
|
76
|
+
failed: "failed";
|
|
77
|
+
"in-progress": "in-progress";
|
|
78
|
+
completed: "completed";
|
|
79
|
+
dismissed: "dismissed";
|
|
80
|
+
}>;
|
|
81
|
+
progress: z.ZodOptional<z.ZodNumber>;
|
|
82
|
+
read: z.ZodBoolean;
|
|
83
|
+
createdAt: z.ZodNumber;
|
|
84
|
+
updatedAt: z.ZodNumber;
|
|
85
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
86
|
+
type: z.ZodString;
|
|
87
|
+
id: z.ZodString;
|
|
88
|
+
}, z.core.$strip>>;
|
|
89
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
90
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
91
|
+
readonly update: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
92
|
+
alertId: z.ZodString;
|
|
93
|
+
patch: z.ZodObject<{
|
|
94
|
+
id: z.ZodOptional<z.ZodString>;
|
|
95
|
+
category: z.ZodOptional<z.ZodString>;
|
|
96
|
+
severity: z.ZodOptional<z.ZodEnum<{
|
|
97
|
+
info: "info";
|
|
98
|
+
error: "error";
|
|
99
|
+
success: "success";
|
|
100
|
+
warning: "warning";
|
|
101
|
+
}>>;
|
|
102
|
+
title: z.ZodOptional<z.ZodString>;
|
|
103
|
+
message: z.ZodOptional<z.ZodString>;
|
|
104
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
105
|
+
active: "active";
|
|
106
|
+
failed: "failed";
|
|
107
|
+
"in-progress": "in-progress";
|
|
108
|
+
completed: "completed";
|
|
109
|
+
dismissed: "dismissed";
|
|
110
|
+
}>>;
|
|
111
|
+
progress: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
112
|
+
read: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
114
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
115
|
+
source: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
116
|
+
type: z.ZodString;
|
|
117
|
+
id: z.ZodString;
|
|
118
|
+
}, z.core.$strip>>>;
|
|
119
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
122
|
+
readonly list: import("./capability-definition.js").CapabilityMethodSchema<z.ZodOptional<z.ZodObject<{
|
|
123
|
+
unreadOnly: z.ZodOptional<z.ZodBoolean>;
|
|
124
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
125
|
+
}, z.core.$strip>>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
126
|
+
id: z.ZodString;
|
|
127
|
+
category: z.ZodString;
|
|
128
|
+
severity: z.ZodEnum<{
|
|
129
|
+
info: "info";
|
|
130
|
+
error: "error";
|
|
131
|
+
success: "success";
|
|
132
|
+
warning: "warning";
|
|
133
|
+
}>;
|
|
134
|
+
title: z.ZodString;
|
|
135
|
+
message: z.ZodString;
|
|
136
|
+
status: z.ZodEnum<{
|
|
137
|
+
active: "active";
|
|
138
|
+
failed: "failed";
|
|
139
|
+
"in-progress": "in-progress";
|
|
140
|
+
completed: "completed";
|
|
141
|
+
dismissed: "dismissed";
|
|
142
|
+
}>;
|
|
143
|
+
progress: z.ZodOptional<z.ZodNumber>;
|
|
144
|
+
read: z.ZodBoolean;
|
|
145
|
+
createdAt: z.ZodNumber;
|
|
146
|
+
updatedAt: z.ZodNumber;
|
|
147
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
148
|
+
type: z.ZodString;
|
|
149
|
+
id: z.ZodString;
|
|
150
|
+
}, z.core.$strip>>;
|
|
151
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
152
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
153
|
+
readonly getUnreadCount: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodNumber, import("./capability-definition.js").CapabilityMethodKind>;
|
|
154
|
+
readonly markRead: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
155
|
+
alertId: z.ZodString;
|
|
156
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
157
|
+
readonly markAllRead: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodVoid, "mutation">;
|
|
158
|
+
readonly dismiss: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
159
|
+
alertId: z.ZodString;
|
|
160
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
export type IAlertsProvider = InferProvider<typeof alertsCapability>;
|
|
164
|
+
//# sourceMappingURL=alerts.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alerts.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/alerts.cap.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAIlG,eAAO,MAAM,mBAAmB;;;;;EAAkD,CAAA;AAElF,eAAO,MAAM,iBAAiB;;;;;;EAAwE,CAAA;AAEtG,eAAO,MAAM,iBAAiB;;;iBAG5B,CAAA;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAatB,CAAA;AAIF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAC/D,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAC3D,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAA;AAI/C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBY,CAAA;AAEzC,MAAM,MAAM,eAAe,GAAG,aAAa,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
import { DeviceType } from '../device/device-type.js';
|
|
4
|
+
import type { AudioAnalysisSettings } from '../types/io.js';
|
|
5
|
+
/**
|
|
6
|
+
* audio-analysis — device-scoped facade over the system `audio-analyzer`.
|
|
7
|
+
*
|
|
8
|
+
* Pairs with `audio-analyzer` (system, singleton) the way `camera-streams`
|
|
9
|
+
* pairs with `stream-broker`: the system cap owns the compute path
|
|
10
|
+
* (`processChunk`, engine lifecycle) while `audio-analysis` exposes the
|
|
11
|
+
* per-device surface — settings resolution, device-settings contribution,
|
|
12
|
+
* audio-level events — and is the binding row every camera sees in the
|
|
13
|
+
* device-manager bindings UI.
|
|
14
|
+
*
|
|
15
|
+
* Registered as a wrapper with `defaultActive: true` by `addon-audio-analysis`
|
|
16
|
+
* so every camera picks up audio analysis automatically; operators can
|
|
17
|
+
* disable per-device via `device-manager.setWrapperActive` when they don't
|
|
18
|
+
* want a given camera to be analysed (e.g. muted / motion-only cams).
|
|
19
|
+
*/
|
|
20
|
+
export declare const audioAnalysisCapability: {
|
|
21
|
+
readonly name: "audio-analysis";
|
|
22
|
+
readonly scope: "device";
|
|
23
|
+
readonly mode: "singleton";
|
|
24
|
+
readonly deviceTypes: readonly [DeviceType.Camera];
|
|
25
|
+
readonly exposesDeviceSettings: true;
|
|
26
|
+
readonly methods: {
|
|
27
|
+
/**
|
|
28
|
+
* Resolve per-device audio analysis settings (minConfidence,
|
|
29
|
+
* allowedClasses) from the addon settings store for a given camera.
|
|
30
|
+
* Orchestrator callers use this before handing chunks to
|
|
31
|
+
* `audio-analyzer.processChunk`.
|
|
32
|
+
*/
|
|
33
|
+
readonly resolveDeviceSettings: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
34
|
+
deviceId: z.ZodNumber;
|
|
35
|
+
}, z.core.$strip>, z.ZodCustom<AudioAnalysisSettings | null, AudioAnalysisSettings | null>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
36
|
+
};
|
|
37
|
+
readonly events: {
|
|
38
|
+
readonly onAudioLevel: import("./capability-definition.js").CapabilityEventSchema<z.ZodObject<{
|
|
39
|
+
deviceId: z.ZodNumber;
|
|
40
|
+
rms: z.ZodNumber;
|
|
41
|
+
dbfs: z.ZodNumber;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export type IAudioAnalysisProvider = InferProvider<typeof audioAnalysisCapability>;
|
|
46
|
+
//# sourceMappingURL=audio-analysis.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-analysis.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/audio-analysis.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAA4C,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AACzG,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AAE3D;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,uBAAuB;;;;;;;QAOhC;;;;;WAKG;;;;;;;;;;;;CAakC,CAAA;AAEzC,MAAM,MAAM,sBAAsB,GAAG,aAAa,CAAC,OAAO,uBAAuB,CAAC,CAAA"}
|