@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,148 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
declare const AudioAnalysisResultSchema: z.ZodObject<{
|
|
4
|
+
level: z.ZodObject<{
|
|
5
|
+
rms: z.ZodNumber;
|
|
6
|
+
dbfs: z.ZodNumber;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
classification: z.ZodOptional<z.ZodObject<{
|
|
9
|
+
labels: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
10
|
+
className: z.ZodString;
|
|
11
|
+
originalClass: z.ZodOptional<z.ZodString>;
|
|
12
|
+
score: z.ZodNumber;
|
|
13
|
+
}, z.core.$strip>>>;
|
|
14
|
+
inferenceMs: z.ZodNumber;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
timestamp: z.ZodNumber;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const AudioAnalysisSettingsSchema: z.ZodObject<{
|
|
19
|
+
minConfidence: z.ZodDefault<z.ZodNumber>;
|
|
20
|
+
allowedClasses: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
declare const AudioClassificationResultSchema: z.ZodObject<{
|
|
23
|
+
labels: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
24
|
+
className: z.ZodString;
|
|
25
|
+
originalClass: z.ZodOptional<z.ZodString>;
|
|
26
|
+
score: z.ZodNumber;
|
|
27
|
+
}, z.core.$strip>>>;
|
|
28
|
+
rawLabels: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
29
|
+
className: z.ZodString;
|
|
30
|
+
originalClass: z.ZodOptional<z.ZodString>;
|
|
31
|
+
score: z.ZodNumber;
|
|
32
|
+
}, z.core.$strip>>>>;
|
|
33
|
+
inferenceMs: z.ZodNumber;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
/**
|
|
36
|
+
* audio-analyzer — system-scoped compute cap.
|
|
37
|
+
*
|
|
38
|
+
* Owns the engine lifecycle (isReady / dispose), the stateless
|
|
39
|
+
* `analyseChunk` call and the `classify` method. Per-device settings,
|
|
40
|
+
* device-settings contribution and the `onAudioLevel` event live on the
|
|
41
|
+
* paired `audio-analysis` cap (device-scoped, singleton, wrapper
|
|
42
|
+
* defaultActive) so every camera gets its own bindings row and per-device
|
|
43
|
+
* toggle. Pairing mirrors `stream-broker` (system) + `camera-streams`
|
|
44
|
+
* (device) + `webrtc-session` (device) — single addon registers both.
|
|
45
|
+
*/
|
|
46
|
+
/**
|
|
47
|
+
* Operator-facing audio-backend choice. 'auto' defers to the addon's
|
|
48
|
+
* platform heuristic (Apple SoundAnalysis on macOS, YAMNet elsewhere).
|
|
49
|
+
*/
|
|
50
|
+
export declare const AUDIO_BACKEND_CHOICES: readonly [{
|
|
51
|
+
readonly value: "auto";
|
|
52
|
+
readonly label: "Auto (platform default)";
|
|
53
|
+
}, {
|
|
54
|
+
readonly value: "apple-soundanalysis";
|
|
55
|
+
readonly label: "Apple SoundAnalysis (macOS 12+)";
|
|
56
|
+
}, {
|
|
57
|
+
readonly value: "yamnet-onnx";
|
|
58
|
+
readonly label: "YAMNet ONNX (cross-platform)";
|
|
59
|
+
}];
|
|
60
|
+
export type AudioBackendChoice = typeof AUDIO_BACKEND_CHOICES[number]['value'];
|
|
61
|
+
/**
|
|
62
|
+
* Shared shape of the audio-analyzer addon's global settings.
|
|
63
|
+
* `audioBackend` = operator choice (wins); `probedBestAudioBackend`
|
|
64
|
+
* = hint refreshed by `reprobeAudioEngine`. `selectedAudioModel`
|
|
65
|
+
* replaces the orchestrator's legacy
|
|
66
|
+
* `AgentPipelineSettings.audio.modelId`.
|
|
67
|
+
*
|
|
68
|
+
* NOTE — enable/disable is NOT stored here:
|
|
69
|
+
* - per-device: `audio-analysis` wrapper cap + `setWrapperActive`
|
|
70
|
+
* (binding system — the canonical gate).
|
|
71
|
+
* - cluster-wide: `addonDefaults['audio-classifier'].enabled` on
|
|
72
|
+
* the pipeline-orchestrator; drives whether the audio step
|
|
73
|
+
* appears in the resolved tree at all.
|
|
74
|
+
*/
|
|
75
|
+
export interface AudioAnalyzerGlobalConfig {
|
|
76
|
+
readonly audioBackend: AudioBackendChoice;
|
|
77
|
+
readonly probedBestAudioBackend: string;
|
|
78
|
+
readonly selectedAudioModel: string;
|
|
79
|
+
}
|
|
80
|
+
export declare const DEFAULT_AUDIO_ANALYZER_CONFIG: AudioAnalyzerGlobalConfig;
|
|
81
|
+
export declare const audioAnalyzerCapability: {
|
|
82
|
+
readonly name: "audio-analyzer";
|
|
83
|
+
readonly scope: "system";
|
|
84
|
+
readonly mode: "singleton";
|
|
85
|
+
readonly methods: {
|
|
86
|
+
readonly analyseChunk: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
87
|
+
chunk: z.ZodObject<{
|
|
88
|
+
data: z.ZodCustom<Float32Array<ArrayBuffer>, Float32Array<ArrayBuffer>>;
|
|
89
|
+
sampleRate: z.ZodNumber;
|
|
90
|
+
channels: z.ZodNumber;
|
|
91
|
+
timestamp: z.ZodNumber;
|
|
92
|
+
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
settings: z.ZodObject<{
|
|
95
|
+
minConfidence: z.ZodDefault<z.ZodNumber>;
|
|
96
|
+
allowedClasses: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
}, z.core.$strip>, z.ZodNullable<z.ZodObject<{
|
|
99
|
+
level: z.ZodObject<{
|
|
100
|
+
rms: z.ZodNumber;
|
|
101
|
+
dbfs: z.ZodNumber;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
classification: z.ZodOptional<z.ZodObject<{
|
|
104
|
+
labels: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
105
|
+
className: z.ZodString;
|
|
106
|
+
originalClass: z.ZodOptional<z.ZodString>;
|
|
107
|
+
score: z.ZodNumber;
|
|
108
|
+
}, z.core.$strip>>>;
|
|
109
|
+
inferenceMs: z.ZodNumber;
|
|
110
|
+
}, z.core.$strip>>;
|
|
111
|
+
timestamp: z.ZodNumber;
|
|
112
|
+
}, z.core.$strip>>, "mutation">;
|
|
113
|
+
readonly classify: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
114
|
+
data: z.ZodCustom<Float32Array<ArrayBuffer>, Float32Array<ArrayBuffer>>;
|
|
115
|
+
sampleRate: z.ZodNumber;
|
|
116
|
+
channels: z.ZodNumber;
|
|
117
|
+
timestamp: z.ZodNumber;
|
|
118
|
+
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
119
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
120
|
+
labels: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
121
|
+
className: z.ZodString;
|
|
122
|
+
originalClass: z.ZodOptional<z.ZodString>;
|
|
123
|
+
score: z.ZodNumber;
|
|
124
|
+
}, z.core.$strip>>>;
|
|
125
|
+
rawLabels: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
126
|
+
className: z.ZodString;
|
|
127
|
+
originalClass: z.ZodOptional<z.ZodString>;
|
|
128
|
+
score: z.ZodNumber;
|
|
129
|
+
}, z.core.$strip>>>>;
|
|
130
|
+
inferenceMs: z.ZodNumber;
|
|
131
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
132
|
+
readonly isReady: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodBoolean, import("./capability-definition.js").CapabilityMethodKind>;
|
|
133
|
+
readonly dispose: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodVoid, "mutation">;
|
|
134
|
+
/**
|
|
135
|
+
* Re-run the host platform-probe for the audio backend and persist
|
|
136
|
+
* the detected value into `probedBestAudioBackend`. Replaces the
|
|
137
|
+
* orchestrator's legacy `AgentPipelineSettings.audio.engine` —
|
|
138
|
+
* audio-analyzer now owns the choice. Operator `audioBackend` is
|
|
139
|
+
* not touched; only the probed-best hint.
|
|
140
|
+
*/
|
|
141
|
+
readonly reprobeAudioEngine: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
|
|
142
|
+
backend: z.ZodString;
|
|
143
|
+
}, z.core.$strip>, "mutation">;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
export type IAudioAnalyzerProvider = InferProvider<typeof audioAnalyzerCapability>;
|
|
147
|
+
export { AudioAnalysisResultSchema, AudioAnalysisSettingsSchema, AudioClassificationResultSchema };
|
|
148
|
+
//# sourceMappingURL=audio-analyzer.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-analyzer.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/audio-analyzer.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAGlG,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;iBAO7B,CAAA;AAEF,QAAA,MAAM,2BAA2B;;;iBAG/B,CAAA;AAIF,QAAA,MAAM,+BAA+B;;;;;;;;;;;;iBAWnC,CAAA;AAEF;;;;;;;;;;GAUG;AACH;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;EAIxB,CAAA;AAEV,MAAM,MAAM,kBAAkB,GAAG,OAAO,qBAAqB,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;AAE9E;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,YAAY,EAAE,kBAAkB,CAAA;IACzC,QAAQ,CAAC,sBAAsB,EAAE,MAAM,CAAA;IACvC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAA;CACpC;AAED,eAAO,MAAM,6BAA6B,EAAE,yBAI3C,CAAA;AAED,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAiBhC;;;;;;WAMG;;;;;CAOkC,CAAA;AAEzC,MAAM,MAAM,sBAAsB,GAAG,aAAa,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAElF,OAAO,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,+BAA+B,EAAE,CAAA"}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
declare const PcmSampleFormatSchema: z.ZodEnum<{
|
|
4
|
+
f32le: "f32le";
|
|
5
|
+
s16le: "s16le";
|
|
6
|
+
}>;
|
|
7
|
+
declare const AudioCodecInfoSchema: z.ZodObject<{
|
|
8
|
+
codec: z.ZodString;
|
|
9
|
+
canDecode: z.ZodBoolean;
|
|
10
|
+
canEncode: z.ZodBoolean;
|
|
11
|
+
label: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const AudioDecodeSessionConfigSchema: z.ZodObject<{
|
|
14
|
+
codec: z.ZodString;
|
|
15
|
+
sourceSampleRate: z.ZodNumber;
|
|
16
|
+
sourceChannels: z.ZodNumber;
|
|
17
|
+
extraData: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
18
|
+
targetSampleRate: z.ZodNumber;
|
|
19
|
+
targetChannels: z.ZodNumber;
|
|
20
|
+
targetFormat: z.ZodOptional<z.ZodEnum<{
|
|
21
|
+
f32le: "f32le";
|
|
22
|
+
s16le: "s16le";
|
|
23
|
+
}>>;
|
|
24
|
+
idleMs: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
declare const AudioEncodeSessionConfigSchema: z.ZodObject<{
|
|
28
|
+
codec: z.ZodString;
|
|
29
|
+
sourceSampleRate: z.ZodNumber;
|
|
30
|
+
sourceChannels: z.ZodNumber;
|
|
31
|
+
sourceFormat: z.ZodOptional<z.ZodEnum<{
|
|
32
|
+
f32le: "f32le";
|
|
33
|
+
s16le: "s16le";
|
|
34
|
+
}>>;
|
|
35
|
+
targetSampleRate: z.ZodNumber;
|
|
36
|
+
targetChannels: z.ZodNumber;
|
|
37
|
+
bitrateKbps: z.ZodOptional<z.ZodNumber>;
|
|
38
|
+
idleMs: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
declare const AudioPcmChunkSchema: z.ZodObject<{
|
|
42
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
43
|
+
sampleRate: z.ZodNumber;
|
|
44
|
+
channels: z.ZodNumber;
|
|
45
|
+
format: z.ZodEnum<{
|
|
46
|
+
f32le: "f32le";
|
|
47
|
+
s16le: "s16le";
|
|
48
|
+
}>;
|
|
49
|
+
pts: z.ZodNumber;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
declare const AudioEncodedChunkSchema: z.ZodObject<{
|
|
52
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
53
|
+
codec: z.ZodString;
|
|
54
|
+
pts: z.ZodNumber;
|
|
55
|
+
frameComplete: z.ZodBoolean;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
/**
|
|
58
|
+
* audio-codec — bidirectional PCM ↔ encoded audio I/O box.
|
|
59
|
+
*
|
|
60
|
+
* Independent per-consumer sessions. The provider runs decode + resample
|
|
61
|
+
* (or resample + encode) inside the session so a 16kHz mono ASA
|
|
62
|
+
* subscriber and a 48kHz stereo WebRTC subscriber on the same source
|
|
63
|
+
* stream don't share resamplers.
|
|
64
|
+
*
|
|
65
|
+
* Singleton on each node. Decoder and encoder live in the same provider
|
|
66
|
+
* because they share the underlying libav contexts (node-av today,
|
|
67
|
+
* pluggable later) — operators always install one or the other together.
|
|
68
|
+
*/
|
|
69
|
+
export declare const audioCodecCapability: {
|
|
70
|
+
readonly name: "audio-codec";
|
|
71
|
+
readonly scope: "system";
|
|
72
|
+
readonly mode: "singleton";
|
|
73
|
+
readonly methods: {
|
|
74
|
+
/** Probe the local runtime and return the supported codec matrix. */
|
|
75
|
+
readonly listSupportedCodecs: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
76
|
+
codec: z.ZodString;
|
|
77
|
+
canDecode: z.ZodBoolean;
|
|
78
|
+
canEncode: z.ZodBoolean;
|
|
79
|
+
label: z.ZodOptional<z.ZodString>;
|
|
80
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
81
|
+
/** Cheap predicate — does the runtime support `(codec, kind)`? */
|
|
82
|
+
readonly canHandle: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
83
|
+
codec: z.ZodString;
|
|
84
|
+
kind: z.ZodEnum<{
|
|
85
|
+
decode: "decode";
|
|
86
|
+
encode: "encode";
|
|
87
|
+
}>;
|
|
88
|
+
}, z.core.$strip>, z.ZodBoolean, import("./capability-definition.js").CapabilityMethodKind>;
|
|
89
|
+
readonly createDecodeSession: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
90
|
+
codec: z.ZodString;
|
|
91
|
+
sourceSampleRate: z.ZodNumber;
|
|
92
|
+
sourceChannels: z.ZodNumber;
|
|
93
|
+
extraData: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
94
|
+
targetSampleRate: z.ZodNumber;
|
|
95
|
+
targetChannels: z.ZodNumber;
|
|
96
|
+
targetFormat: z.ZodOptional<z.ZodEnum<{
|
|
97
|
+
f32le: "f32le";
|
|
98
|
+
s16le: "s16le";
|
|
99
|
+
}>>;
|
|
100
|
+
idleMs: z.ZodOptional<z.ZodNumber>;
|
|
101
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
102
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
103
|
+
sessionId: z.ZodString;
|
|
104
|
+
nodeId: z.ZodString;
|
|
105
|
+
}, z.core.$strip>, "mutation">;
|
|
106
|
+
readonly createEncodeSession: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
107
|
+
codec: z.ZodString;
|
|
108
|
+
sourceSampleRate: z.ZodNumber;
|
|
109
|
+
sourceChannels: z.ZodNumber;
|
|
110
|
+
sourceFormat: z.ZodOptional<z.ZodEnum<{
|
|
111
|
+
f32le: "f32le";
|
|
112
|
+
s16le: "s16le";
|
|
113
|
+
}>>;
|
|
114
|
+
targetSampleRate: z.ZodNumber;
|
|
115
|
+
targetChannels: z.ZodNumber;
|
|
116
|
+
bitrateKbps: z.ZodOptional<z.ZodNumber>;
|
|
117
|
+
idleMs: z.ZodOptional<z.ZodNumber>;
|
|
118
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
119
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
120
|
+
sessionId: z.ZodString;
|
|
121
|
+
nodeId: z.ZodString;
|
|
122
|
+
}, z.core.$strip>, "mutation">;
|
|
123
|
+
readonly closeSession: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
124
|
+
sessionId: z.ZodString;
|
|
125
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
126
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
127
|
+
/** Push one encoded audio frame into a decode session. */
|
|
128
|
+
readonly pushEncodedFrame: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
129
|
+
sessionId: z.ZodString;
|
|
130
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
131
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
132
|
+
pts: z.ZodOptional<z.ZodNumber>;
|
|
133
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
134
|
+
/** Pull up to `maxCount` PCM chunks from a decode session. */
|
|
135
|
+
readonly pullPcm: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
136
|
+
sessionId: z.ZodString;
|
|
137
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
138
|
+
maxCount: z.ZodDefault<z.ZodNumber>;
|
|
139
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
140
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
141
|
+
sampleRate: z.ZodNumber;
|
|
142
|
+
channels: z.ZodNumber;
|
|
143
|
+
format: z.ZodEnum<{
|
|
144
|
+
f32le: "f32le";
|
|
145
|
+
s16le: "s16le";
|
|
146
|
+
}>;
|
|
147
|
+
pts: z.ZodNumber;
|
|
148
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
149
|
+
/** Push one PCM chunk into an encode session. */
|
|
150
|
+
readonly pushPcm: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
151
|
+
sessionId: z.ZodString;
|
|
152
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
153
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
154
|
+
pts: z.ZodOptional<z.ZodNumber>;
|
|
155
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
156
|
+
/** Pull up to `maxCount` encoded chunks from an encode session. */
|
|
157
|
+
readonly pullEncoded: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
158
|
+
sessionId: z.ZodString;
|
|
159
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
160
|
+
maxCount: z.ZodDefault<z.ZodNumber>;
|
|
161
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
162
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
163
|
+
codec: z.ZodString;
|
|
164
|
+
pts: z.ZodNumber;
|
|
165
|
+
frameComplete: z.ZodBoolean;
|
|
166
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
167
|
+
/** Flush any pending encoded output (call before close on graceful tear). */
|
|
168
|
+
readonly flushEncode: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
169
|
+
sessionId: z.ZodString;
|
|
170
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
171
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
172
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
173
|
+
codec: z.ZodString;
|
|
174
|
+
pts: z.ZodNumber;
|
|
175
|
+
frameComplete: z.ZodBoolean;
|
|
176
|
+
}, z.core.$strip>>, "mutation">;
|
|
177
|
+
readonly listActiveSessions: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
178
|
+
sessionId: z.ZodString;
|
|
179
|
+
kind: z.ZodEnum<{
|
|
180
|
+
decode: "decode";
|
|
181
|
+
encode: "encode";
|
|
182
|
+
}>;
|
|
183
|
+
codec: z.ZodString;
|
|
184
|
+
sourceSampleRate: z.ZodNumber;
|
|
185
|
+
sourceChannels: z.ZodNumber;
|
|
186
|
+
targetSampleRate: z.ZodNumber;
|
|
187
|
+
targetChannels: z.ZodNumber;
|
|
188
|
+
format: z.ZodEnum<{
|
|
189
|
+
f32le: "f32le";
|
|
190
|
+
s16le: "s16le";
|
|
191
|
+
}>;
|
|
192
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
193
|
+
createdAtMs: z.ZodNumber;
|
|
194
|
+
lastActivityMs: z.ZodNumber;
|
|
195
|
+
framesIn: z.ZodNumber;
|
|
196
|
+
framesOut: z.ZodNumber;
|
|
197
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
export type IAudioCodecCapProvider = InferProvider<typeof audioCodecCapability>;
|
|
201
|
+
export { AudioCodecInfoSchema, AudioDecodeSessionConfigSchema, AudioEncodeSessionConfigSchema, AudioPcmChunkSchema, AudioEncodedChunkSchema, PcmSampleFormatSchema, };
|
|
202
|
+
//# sourceMappingURL=audio-codec.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-codec.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/audio-codec.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAIlG,QAAA,MAAM,qBAAqB;;;EAA6B,CAAA;AAExD,QAAA,MAAM,oBAAoB;;;;;iBAKxB,CAAA;AAEF,QAAA,MAAM,8BAA8B;;;;;;;;;;;;;iBAUlC,CAAA;AAEF,QAAA,MAAM,8BAA8B;;;;;;;;;;;;;iBAUlC,CAAA;AAEF,QAAA,MAAM,mBAAmB;;;;;;;;;iBAMvB,CAAA;AAEF,QAAA,MAAM,uBAAuB;;;;;iBAK3B,CAAA;AAoBF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,oBAAoB;;;;;QAM7B,qEAAqE;;;;;;;QAGrE,kEAAkE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAgClE,0DAA0D;;;;;;;QAa1D,8DAA8D;;;;;;;;;;;;;;;QAW9D,iDAAiD;;;;;;;QAajD,mEAAmE;;;;;;;;;;;QAUnE,6EAA6E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAaxC,CAAA;AAEzC,MAAM,MAAM,sBAAsB,GAAG,aAAa,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAE/E,OAAO,EACL,oBAAoB,EACpB,8BAA8B,EAC9B,8BAA8B,EAC9B,mBAAmB,EACnB,uBAAuB,EACvB,qBAAqB,GACtB,CAAA"}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
import { DeviceType } from '../device/device-type.js';
|
|
4
|
+
/**
|
|
5
|
+
* Per-class audio metrics aggregated over a sliding window.
|
|
6
|
+
*/
|
|
7
|
+
declare const AudioClassSummarySchema: z.ZodObject<{
|
|
8
|
+
className: z.ZodString;
|
|
9
|
+
hits: z.ZodNumber;
|
|
10
|
+
avgScore: z.ZodNumber;
|
|
11
|
+
peakScore: z.ZodNumber;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
/**
|
|
14
|
+
* Per-camera audio metrics snapshot — emitted by the analytics frame
|
|
15
|
+
* handler on every `pipeline.audio-inference-result` event and
|
|
16
|
+
* mirrored into the `audio-metrics` device-state slice. Symmetric
|
|
17
|
+
* with `zone-analytics` snapshots for video — every consumer
|
|
18
|
+
* (admin UI panel, automations, alert rules) reads via the
|
|
19
|
+
* canonical `device.state.audioMetrics.value` reactive handle.
|
|
20
|
+
*
|
|
21
|
+
* Aggregates are computed over a rolling `windowSec` window
|
|
22
|
+
* (default 60s). Past that window, classes drop out of `byClass`
|
|
23
|
+
* and the level history shifts forward.
|
|
24
|
+
*/
|
|
25
|
+
declare const AudioMetricsSnapshotSchema: z.ZodObject<{
|
|
26
|
+
ts: z.ZodNumber;
|
|
27
|
+
windowSec: z.ZodNumber;
|
|
28
|
+
level: z.ZodObject<{
|
|
29
|
+
rms: z.ZodNumber;
|
|
30
|
+
dbfs: z.ZodNumber;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
peakDbfs: z.ZodNumber;
|
|
33
|
+
avgDbfs: z.ZodNumber;
|
|
34
|
+
current: z.ZodNullable<z.ZodObject<{
|
|
35
|
+
className: z.ZodString;
|
|
36
|
+
score: z.ZodNumber;
|
|
37
|
+
timestamp: z.ZodNumber;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
byClass: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
40
|
+
className: z.ZodString;
|
|
41
|
+
hits: z.ZodNumber;
|
|
42
|
+
avgScore: z.ZodNumber;
|
|
43
|
+
peakScore: z.ZodNumber;
|
|
44
|
+
}, z.core.$strip>>>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
export type AudioMetricsSnapshot = z.infer<typeof AudioMetricsSnapshotSchema>;
|
|
47
|
+
export type AudioClassSummary = z.infer<typeof AudioClassSummarySchema>;
|
|
48
|
+
/**
|
|
49
|
+
* One sample on the audio-metrics history time-series. Captures the
|
|
50
|
+
* subset of the live snapshot useful for charting: dB level, peak/avg
|
|
51
|
+
* over the rolling window, and the dominant above-threshold class
|
|
52
|
+
* (when any). Per-class hit breakdown lives on the snapshot but is
|
|
53
|
+
* elided from the history sample to keep the buffer compact —
|
|
54
|
+
* consumers needing class drill-down should pull `getCurrentSnapshot`.
|
|
55
|
+
*/
|
|
56
|
+
declare const AudioMetricsHistoryPointSchema: z.ZodObject<{
|
|
57
|
+
ts: z.ZodNumber;
|
|
58
|
+
dbfs: z.ZodNullable<z.ZodNumber>;
|
|
59
|
+
peakDbfs: z.ZodNumber;
|
|
60
|
+
avgDbfs: z.ZodNumber;
|
|
61
|
+
topClass: z.ZodNullable<z.ZodString>;
|
|
62
|
+
topScore: z.ZodNullable<z.ZodNumber>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
export type AudioMetricsHistoryPoint = z.infer<typeof AudioMetricsHistoryPointSchema>;
|
|
65
|
+
/**
|
|
66
|
+
* Audio-metrics history payload — a series of `AudioMetricsHistoryPoint`
|
|
67
|
+
* samples capped at `maxPoints` (default 1024). When the requested
|
|
68
|
+
* `windowSec / sampleEveryMs` would exceed the cap, the provider
|
|
69
|
+
* subsamples by bucketed averaging and reports the effective sample
|
|
70
|
+
* spacing on `effectiveSampleEveryMs` so the UI can label the x-axis.
|
|
71
|
+
*/
|
|
72
|
+
declare const AudioMetricsHistorySchema: z.ZodObject<{
|
|
73
|
+
points: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
74
|
+
ts: z.ZodNumber;
|
|
75
|
+
dbfs: z.ZodNullable<z.ZodNumber>;
|
|
76
|
+
peakDbfs: z.ZodNumber;
|
|
77
|
+
avgDbfs: z.ZodNumber;
|
|
78
|
+
topClass: z.ZodNullable<z.ZodString>;
|
|
79
|
+
topScore: z.ZodNullable<z.ZodNumber>;
|
|
80
|
+
}, z.core.$strip>>>;
|
|
81
|
+
effectiveSampleEveryMs: z.ZodNumber;
|
|
82
|
+
windowMsActual: z.ZodNumber;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
export type AudioMetricsHistory = z.infer<typeof AudioMetricsHistorySchema>;
|
|
85
|
+
/**
|
|
86
|
+
* Audio Metrics capability — sliding-window aggregates over the
|
|
87
|
+
* pipeline audio inference results. Hosted by `addon-pipeline-analytics`
|
|
88
|
+
* (same addon that owns `zone-analytics`); the runtime-state slice
|
|
89
|
+
* gives operators a live read on dB level + dominant classes without
|
|
90
|
+
* a custom event subscription.
|
|
91
|
+
*/
|
|
92
|
+
export declare const audioMetricsCapability: {
|
|
93
|
+
readonly name: "audio-metrics";
|
|
94
|
+
readonly scope: "device";
|
|
95
|
+
readonly mode: "singleton";
|
|
96
|
+
readonly deviceTypes: readonly [DeviceType.Camera];
|
|
97
|
+
readonly methods: {
|
|
98
|
+
/** Latest snapshot for this device. Null until the analytics
|
|
99
|
+
* pipeline has processed at least one audio window. */
|
|
100
|
+
readonly getCurrentSnapshot: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
101
|
+
deviceId: z.ZodNumber;
|
|
102
|
+
}, z.core.$strip>, z.ZodNullable<z.ZodObject<{
|
|
103
|
+
ts: z.ZodNumber;
|
|
104
|
+
windowSec: z.ZodNumber;
|
|
105
|
+
level: z.ZodObject<{
|
|
106
|
+
rms: z.ZodNumber;
|
|
107
|
+
dbfs: z.ZodNumber;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
peakDbfs: z.ZodNumber;
|
|
110
|
+
avgDbfs: z.ZodNumber;
|
|
111
|
+
current: z.ZodNullable<z.ZodObject<{
|
|
112
|
+
className: z.ZodString;
|
|
113
|
+
score: z.ZodNumber;
|
|
114
|
+
timestamp: z.ZodNumber;
|
|
115
|
+
}, z.core.$strip>>;
|
|
116
|
+
byClass: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
117
|
+
className: z.ZodString;
|
|
118
|
+
hits: z.ZodNumber;
|
|
119
|
+
avgScore: z.ZodNumber;
|
|
120
|
+
peakScore: z.ZodNumber;
|
|
121
|
+
}, z.core.$strip>>>;
|
|
122
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
123
|
+
/**
|
|
124
|
+
* Time-series view of recent audio-metrics samples. The provider
|
|
125
|
+
* keeps an in-memory ring of ~1Hz samples (matching the slice-
|
|
126
|
+
* write rate) capped at `MAX_HISTORY_POINTS_KEPT` (provider-side).
|
|
127
|
+
* `windowSec` selects how far back to read; `sampleEveryMs`
|
|
128
|
+
* downsamples by bucketed averaging when finer than the kept
|
|
129
|
+
* granularity. Empty `points` array on freshly-booted providers
|
|
130
|
+
* with no audio yet — same convention as `getCurrentSnapshot`.
|
|
131
|
+
*/
|
|
132
|
+
readonly getHistory: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
133
|
+
deviceId: z.ZodNumber;
|
|
134
|
+
windowSec: z.ZodOptional<z.ZodNumber>;
|
|
135
|
+
sampleEveryMs: z.ZodOptional<z.ZodNumber>;
|
|
136
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
137
|
+
points: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
138
|
+
ts: z.ZodNumber;
|
|
139
|
+
dbfs: z.ZodNullable<z.ZodNumber>;
|
|
140
|
+
peakDbfs: z.ZodNumber;
|
|
141
|
+
avgDbfs: z.ZodNumber;
|
|
142
|
+
topClass: z.ZodNullable<z.ZodString>;
|
|
143
|
+
topScore: z.ZodNullable<z.ZodNumber>;
|
|
144
|
+
}, z.core.$strip>>>;
|
|
145
|
+
effectiveSampleEveryMs: z.ZodNumber;
|
|
146
|
+
windowMsActual: z.ZodNumber;
|
|
147
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
148
|
+
};
|
|
149
|
+
/** Reactive runtime-state mirror — live `device.state.audioMetrics.value`. */
|
|
150
|
+
readonly runtimeState: z.ZodObject<{
|
|
151
|
+
ts: z.ZodNumber;
|
|
152
|
+
windowSec: z.ZodNumber;
|
|
153
|
+
level: z.ZodObject<{
|
|
154
|
+
rms: z.ZodNumber;
|
|
155
|
+
dbfs: z.ZodNumber;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
peakDbfs: z.ZodNumber;
|
|
158
|
+
avgDbfs: z.ZodNumber;
|
|
159
|
+
current: z.ZodNullable<z.ZodObject<{
|
|
160
|
+
className: z.ZodString;
|
|
161
|
+
score: z.ZodNumber;
|
|
162
|
+
timestamp: z.ZodNumber;
|
|
163
|
+
}, z.core.$strip>>;
|
|
164
|
+
byClass: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
165
|
+
className: z.ZodString;
|
|
166
|
+
hits: z.ZodNumber;
|
|
167
|
+
avgScore: z.ZodNumber;
|
|
168
|
+
peakScore: z.ZodNumber;
|
|
169
|
+
}, z.core.$strip>>>;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
};
|
|
172
|
+
export type IAudioMetricsProvider = InferProvider<typeof audioMetricsCapability>;
|
|
173
|
+
export { AudioMetricsSnapshotSchema, AudioClassSummarySchema, AudioMetricsHistoryPointSchema, AudioMetricsHistorySchema, };
|
|
174
|
+
//# sourceMappingURL=audio-metrics.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-metrics.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/audio-metrics.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;;GAEG;AACH,QAAA,MAAM,uBAAuB;;;;;iBAQ3B,CAAA;AAEF;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;iBAuB9B,CAAA;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAC7E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAEvE;;;;;;;GAOG;AACH,QAAA,MAAM,8BAA8B;;;;;;;iBAelC,CAAA;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAErF;;;;;;GAMG;AACH,QAAA,MAAM,yBAAyB;;;;;;;;;;;iBAO7B,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAE3E;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB;;;;;;QAM/B;gEACwD;;;;;;;;;;;;;;;;;;;;;;;;QAKxD;;;;;;;;WAQG;;;;;;;;;;;;;;;;;;IAgBL,8EAA8E;;;;;;;;;;;;;;;;;;;;;;CAEvC,CAAA;AAEzC,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAEhF,OAAO,EACL,0BAA0B,EAC1B,uBAAuB,EACvB,8BAA8B,EAC9B,yBAAyB,GAC1B,CAAA"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
declare const AuthResultSchema: z.ZodObject<{
|
|
4
|
+
userId: z.ZodString;
|
|
5
|
+
username: z.ZodString;
|
|
6
|
+
email: z.ZodOptional<z.ZodString>;
|
|
7
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
8
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const authProviderCapability: {
|
|
11
|
+
readonly name: "auth-provider";
|
|
12
|
+
readonly scope: "system";
|
|
13
|
+
readonly mode: "collection";
|
|
14
|
+
readonly internal: true;
|
|
15
|
+
readonly methods: {
|
|
16
|
+
readonly validateCredentials: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
17
|
+
username: z.ZodString;
|
|
18
|
+
password: z.ZodString;
|
|
19
|
+
}, z.core.$strip>, z.ZodNullable<z.ZodObject<{
|
|
20
|
+
userId: z.ZodString;
|
|
21
|
+
username: z.ZodString;
|
|
22
|
+
email: z.ZodOptional<z.ZodString>;
|
|
23
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
24
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
25
|
+
}, z.core.$strip>>, "mutation">;
|
|
26
|
+
readonly getLoginUrl: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
27
|
+
state: z.ZodString;
|
|
28
|
+
}, z.core.$strip>, z.ZodString, import("./capability-definition.js").CapabilityMethodKind>;
|
|
29
|
+
readonly handleCallback: import("./capability-definition.js").CapabilityMethodSchema<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodObject<{
|
|
30
|
+
userId: z.ZodString;
|
|
31
|
+
username: z.ZodString;
|
|
32
|
+
email: z.ZodOptional<z.ZodString>;
|
|
33
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
34
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
35
|
+
}, z.core.$strip>, "mutation">;
|
|
36
|
+
readonly validateToken: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
37
|
+
token: z.ZodString;
|
|
38
|
+
}, z.core.$strip>, z.ZodNullable<z.ZodObject<{
|
|
39
|
+
userId: z.ZodString;
|
|
40
|
+
username: z.ZodString;
|
|
41
|
+
email: z.ZodOptional<z.ZodString>;
|
|
42
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
43
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
44
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export type IAuthProvider = InferProvider<typeof authProviderCapability>;
|
|
48
|
+
export { AuthResultSchema };
|
|
49
|
+
//# sourceMappingURL=auth-provider.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-provider.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/auth-provider.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAElG,QAAA,MAAM,gBAAgB;;;;;;iBAMpB,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAeM,CAAA;AAEzC,MAAM,MAAM,aAAa,GAAG,aAAa,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAExE,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
|