# CamStack Capability API Reference > AUTO-GENERATED by `scripts/gen-api-reference.ts`. DO NOT EDIT BY HAND. > Re-run: `npm run docs:generate`. CI fails on drift (`npm run docs:check`). > > Every capability is codegen-mounted as a tRPC router. **tRPC path convention:** cap `kebab-name` → router `camelName`, method verbatim → `camelName.method` (e.g. `pipeline-orchestrator` → `pipelineOrchestrator.getGlobalStatus`). Device-scoped methods take `deviceId` in the input; cross-node calls may add an optional `nodeId` (routing). Named input/output shapes are defined once in [`api-schemas.md`](./api-schemas.md). > > Methods marked `(auto)` are framework-injected: `getStatus` when the cap declares `status`, and the three `getDeviceSettingsContribution` / `getDeviceLiveContribution` / `applyDeviceSettingsPatch` when it declares `exposesDeviceSettings: true`. **209 capabilities · 1501 methods.** ## Method index | tRPC path | kind | auth | capability | |---|---|---|---| | `accessories.getStatus` | query | protected | accessories (auto) | | `accessories.setChildHidden` | mutation | admin | accessories | | `actionSource.listActions` | query | admin | action-source | | `actionSource.runAction` | mutation | admin | action-source | | `actionSource.stopAction` | mutation | admin | action-source | | `actions.list` | query | admin | actions | | `actions.get` | query | protected | actions | | `actions.run` | mutation | protected | actions | | `actions.stop` | mutation | admin | actions | | `actions.getTraces` | query | admin | actions | | `actions.create` | mutation | admin | actions | | `actions.update` | mutation | admin | actions | | `actions.delete` | mutation | admin | actions | | `actions.listForCamera` | query | protected | actions | | `actions.getLinks` | query | admin | actions | | `actions.setLinks` | mutation | admin | actions | | `addonPages.listPages` | query | protected | addon-pages | | `addonPagesSource.listPages` | query | admin | addon-pages-source | | `addonRoutes.getRoutes` | query | admin | addon-routes | | `addonRoutes.invoke` | mutation | admin | addon-routes | | `addonSettings.getScopedSettings` | query | protected | addon-settings | | `addonSettings.listScopedSettings` | query | protected | addon-settings | | `addonSettings.updateScopedSettings` | mutation | admin | addon-settings | | `addonSettings.readScopedValues` | query | protected | addon-settings | | `addonSettings.getDeclaredSettingsKeys` | query | admin | addon-settings | | `addonSettings.unsetStoredSettingsKeys` | mutation | admin | addon-settings | | `addonSettings.getDeviceSettings` | query | protected | addon-settings | | `addonSettings.updateDeviceSettings` | mutation | admin | addon-settings | | `addonWidgets.listWidgets` | query | protected | addon-widgets | | `addonWidgetsSource.listWidgets` | query | admin | addon-widgets-source | | `addons.list` | query | protected | addons | | `addons.getLogs` | query | protected | addons | | `addons.listPackages` | query | protected | addons | | `addons.installPackage` | mutation | admin | addons | | `addons.uninstallPackage` | mutation | admin | addons | | `addons.listInstallations` | query | admin | addons | | `addons.reloadPackages` | mutation | admin | addons | | `addons.searchAvailable` | query | protected | addons | | `addons.listUpdates` | query | admin | addons | | `addons.updatePackage` | mutation | admin | addons | | `addons.rollbackPackage` | mutation | admin | addons | | `addons.forceRefresh` | mutation | admin | addons | | `addons.restartServer` | mutation | admin | addons | | `addons.getLastRestart` | query | admin | addons | | `addons.listFrameworkPackages` | query | admin | addons | | `addons.listCapabilityProviders` | query | protected | addons | | `addons.setCapabilityProviderEnabled` | mutation | admin | addons | | `addons.getVersions` | query | protected | addons | | `addons.getPackageDocs` | query | admin | addons | | `addons.restartAddon` | mutation | admin | addons | | `addons.retryLoad` | mutation | admin | addons | | `addons.getAutoUpdateSettings` | query | admin | addons | | `addons.setAutoUpdateSettings` | mutation | admin | addons | | `addons.getAddonAutoUpdate` | query | admin | addons | | `addons.setAddonAutoUpdate` | mutation | admin | addons | | `addons.applyAutoUpdateToAll` | mutation | admin | addons | | `addons.custom` | mutation | protected | addons | | `addons.startJob` | mutation | admin | addons | | `addons.getJob` | query | admin | addons | | `addons.listJobs` | query | admin | addons | | `addons.cancelJob` | mutation | admin | addons | | `addons.onAddonLogs` | subscription | protected | addons | | `adminUi.getStaticDir` | query | admin | admin-ui | | `adminUi.getVersion` | query | admin | admin-ui | | `airQualitySensor.getStatus` | query | protected | air-quality-sensor (auto) | | `alarmPanel.getStatus` | query | protected | alarm-panel (auto) | | `alarmPanel.trigger` | mutation | protected | alarm-panel | | `alarmPanel.disarm` | mutation | protected | alarm-panel | | `alarmPanel.arm` | mutation | protected | alarm-panel | | `alerts.emit` | mutation | protected | alerts | | `alerts.update` | mutation | protected | alerts | | `alerts.list` | query | protected | alerts | | `alerts.getUnreadCount` | query | protected | alerts | | `alerts.markRead` | mutation | protected | alerts | | `alerts.markAllRead` | mutation | protected | alerts | | `alerts.dismiss` | mutation | protected | alerts | | `ambientLightSensor.getStatus` | query | protected | ambient-light-sensor (auto) | | `audioAnalysis.getDeviceSettingsContribution` | query | protected | audio-analysis (auto) | | `audioAnalysis.getDeviceLiveContribution` | query | protected | audio-analysis (auto) | | `audioAnalysis.applyDeviceSettingsPatch` | mutation | admin | audio-analysis (auto) | | `audioAnalysis.resolveDeviceSettings` | query | protected | audio-analysis | | `audioAnalyzer.analyseChunk` | mutation | protected | audio-analyzer | | `audioAnalyzer.classify` | query | protected | audio-analyzer | | `audioAnalyzer.attachDevice` | mutation | protected | audio-analyzer | | `audioAnalyzer.detachDevice` | mutation | protected | audio-analyzer | | `audioAnalyzer.isReady` | query | protected | audio-analyzer | | `audioAnalyzer.dispose` | mutation | protected | audio-analyzer | | `audioAnalyzer.reprobeAudioEngine` | mutation | admin | audio-analyzer | | `audioCodec.listSupportedCodecs` | query | protected | audio-codec | | `audioCodec.canHandle` | query | protected | audio-codec | | `audioCodec.createDecodeSession` | mutation | protected | audio-codec | | `audioCodec.createEncodeSession` | mutation | protected | audio-codec | | `audioCodec.closeSession` | mutation | protected | audio-codec | | `audioCodec.pushEncodedFrame` | mutation | protected | audio-codec | | `audioCodec.pullPcm` | query | protected | audio-codec | | `audioCodec.pushPcm` | mutation | protected | audio-codec | | `audioCodec.pullEncoded` | query | protected | audio-codec | | `audioCodec.flushEncode` | mutation | protected | audio-codec | | `audioCodec.listActiveSessions` | query | protected | audio-codec | | `audioMetrics.getCurrentSnapshot` | query | protected | audio-metrics | | `audioMetrics.getHistory` | query | protected | audio-metrics | | `authProvider.validateCredentials` | mutation | admin | auth-provider | | `authProvider.getLoginUrl` | query | admin | auth-provider | | `authProvider.handleCallback` | mutation | admin | auth-provider | | `authProvider.validateToken` | query | admin | auth-provider | | `automationControl.getStatus` | query | protected | automation-control (auto) | | `automationControl.enable` | mutation | admin | automation-control | | `automationControl.disable` | mutation | admin | automation-control | | `automationControl.trigger` | mutation | admin | automation-control | | `backup.listDestinations` | query | admin | backup | | `backup.trigger` | mutation | admin | backup | | `backup.listRuns` | query | admin | backup | | `backup.cancel` | mutation | admin | backup | | `backup.list` | query | admin | backup | | `backup.listLocations` | query | admin | backup | | `backup.getEntries` | query | admin | backup | | `backup.restore` | mutation | admin | backup | | `backup.getEncryption` | query | admin | backup | | `backup.setupEncryption` | mutation | admin | backup | | `backup.disableEncryption` | mutation | admin | backup | | `backup.checkBackupKey` | mutation | admin | backup | | `backup.delete` | mutation | admin | backup | | `backup.listArchives` | query | admin | backup | | `backup.upsertDestinationPolicy` | mutation | admin | backup | | `backup.previewSchedule` | query | protected | backup | | `backup.listSchedules` | query | admin | backup | | `backup.listAvailableDatabases` | query | admin | backup | | `backup.upsertSchedule` | mutation | admin | backup | | `backup.deleteSchedule` | mutation | admin | backup | | `battery.getStatus` | query | protected | battery (auto) | | `battery.wakeForStream` | mutation | protected | battery | | `binary.getStatus` | query | protected | binary (auto) | | `boardKeySource.listSources` | query | admin | board-key-source | | `boardKeySource.listBoards` | query | admin | board-key-source | | `boardKeySource.getBoardKey` | query | admin | board-key-source | | `brightness.getStatus` | query | protected | brightness (auto) | | `brightness.setBrightness` | mutation | protected | brightness | | `broker.getStatus` | query | protected | broker | | `broker.getBrokerConfig` | query | admin | broker | | `broker.publish` | mutation | admin | broker | | `broker.subscribe` | mutation | admin | broker | | `broker.unsubscribe` | mutation | admin | broker | | `broker.getState` | query | admin | broker | | `button.press` | mutation | protected | button | | `calendarSource.listCalendars` | query | admin | calendar-source | | `calendarSource.listEvents` | query | admin | calendar-source | | `calendars.listCalendars` | query | admin | calendars | | `calendars.listEvents` | query | admin | calendars | | `calendars.getPreferences` | query | admin | calendars | | `calendars.setCalendarPreference` | mutation | admin | calendars | | `cameraCredentials.getStatus` | query | protected | camera-credentials (auto) | | `cameraCredentials.getCredentials` | query | admin | camera-credentials | | `cameraGridLayout.getDeviceSettingsContribution` | query | protected | camera-grid-layout (auto) | | `cameraGridLayout.getDeviceLiveContribution` | query | protected | camera-grid-layout (auto) | | `cameraGridLayout.applyDeviceSettingsPatch` | mutation | admin | camera-grid-layout (auto) | | `cameraGridLayout.getLayout` | query | admin | camera-grid-layout | | `cameraGridLayout.saveLayout` | mutation | admin | camera-grid-layout | | `cameraPipelineConfig.getDeviceSettingsContribution` | query | protected | camera-pipeline-config (auto) | | `cameraPipelineConfig.getDeviceLiveContribution` | query | protected | camera-pipeline-config (auto) | | `cameraPipelineConfig.applyDeviceSettingsPatch` | mutation | admin | camera-pipeline-config (auto) | | `cameraStreams.getCameraStreams` | query | protected | camera-streams | | `cameraStreams.getBrokerStreams` | query | protected | camera-streams | | `cameraStreams.getRtspEntries` | query | protected | camera-streams | | `cameraStreams.getProfileRtspEntries` | query | protected | camera-streams | | `cameraStreams.pickStream` | query | protected | camera-streams | | `carbonMonoxide.getStatus` | query | protected | carbon-monoxide (auto) | | `climateControl.getStatus` | query | protected | climate-control (auto) | | `climateControl.setMode` | mutation | protected | climate-control | | `climateControl.setTarget` | mutation | protected | climate-control | | `climateControl.setTargetRange` | mutation | protected | climate-control | | `climateControl.setTargetHumidity` | mutation | protected | climate-control | | `climateControl.setFanMode` | mutation | protected | climate-control | | `climateControl.setPreset` | mutation | protected | climate-control | | `climateControl.setSwingVertical` | mutation | protected | climate-control | | `climateControl.setSwingHorizontal` | mutation | protected | climate-control | | `clusterUpdate.previewClusterUpdate` | query | admin | cluster-update | | `clusterUpdate.startClusterUpdate` | mutation | admin | cluster-update | | `clusterUpdate.getClusterUpdateJob` | query | admin | cluster-update | | `color.getStatus` | query | protected | color (auto) | | `color.setColor` | mutation | protected | color | | `composer.applyBlocks` | mutation | admin | composer | | `composer.getStates` | query | admin | composer | | `connectivity.getStatus` | query | protected | connectivity (auto) | | `consumables.getStatus` | query | protected | consumables (auto) | | `consumables.reset` | mutation | admin | consumables | | `contact.getStatus` | query | protected | contact (auto) | | `control.getStatus` | query | protected | control (auto) | | `control.setValue` | mutation | protected | control | | `control.next` | mutation | protected | control | | `control.previous` | mutation | protected | control | | `control.first` | mutation | protected | control | | `control.last` | mutation | protected | control | | `coreBlocks.list` | query | admin | core-blocks | | `coreBlocks.get` | query | admin | core-blocks | | `coreBlocks.create` | mutation | admin | core-blocks | | `coreBlocks.update` | mutation | admin | core-blocks | | `coreBlocks.delete` | mutation | admin | core-blocks | | `coreBlocks.setEnabled` | mutation | admin | core-blocks | | `coreBlocks.restart` | mutation | admin | core-blocks | | `coreBlocks.compile` | mutation | admin | core-blocks | | `coreBlocks.getBlockSettings` | query | admin | core-blocks | | `coreBlocks.updateBlockSettings` | mutation | admin | core-blocks | | `coreBlocks.migrateRawSecrets` | mutation | admin | core-blocks | | `coreBlocks.getTypeDefs` | query | admin | core-blocks | | `coreBlocks.createComposition` | mutation | admin | core-blocks | | `coreBlocks.updateComposition` | mutation | admin | core-blocks | | `coreBlocks.getComposition` | query | admin | core-blocks | | `coreBlocks.listCompositions` | query | admin | core-blocks | | `coreBlocks.getCustomization` | query | admin | core-blocks | | `coreBlocks.listComposableCaps` | query | admin | core-blocks | | `coreBlocks.validateComposition` | mutation | admin | core-blocks | | `coreBlocks.proposeRunningThreshold` | query | admin | core-blocks | | `coreBlocks.reportAutomationRun` | mutation | admin | core-blocks | | `coreBlocks.getAutomationRunState` | query | admin | core-blocks | | `coreBlocks.getTraces` | query | admin | core-blocks | | `cover.getStatus` | query | protected | cover (auto) | | `cover.open` | mutation | protected | cover | | `cover.close` | mutation | protected | cover | | `cover.stop` | mutation | protected | cover | | `cover.setPosition` | mutation | protected | cover | | `cover.setTiltPosition` | mutation | protected | cover | | `customModelRegistry.listModels` | query | admin | custom-model-registry | | `customModelRegistry.importModelBundle` | mutation | admin | custom-model-registry | | `dataStoreProvider.getEngineInfo` | query | admin | data-store-provider | | `dataStoreProvider.get` | query | admin | data-store-provider | | `dataStoreProvider.set` | mutation | admin | data-store-provider | | `dataStoreProvider.query` | query | admin | data-store-provider | | `dataStoreProvider.insert` | mutation | admin | data-store-provider | | `dataStoreProvider.upsert` | mutation | admin | data-store-provider | | `dataStoreProvider.upsertMany` | mutation | admin | data-store-provider | | `dataStoreProvider.insertMany` | mutation | admin | data-store-provider | | `dataStoreProvider.transact` | mutation | admin | data-store-provider | | `dataStoreProvider.update` | mutation | admin | data-store-provider | | `dataStoreProvider.delete` | mutation | admin | data-store-provider | | `dataStoreProvider.deleteWhere` | mutation | admin | data-store-provider | | `dataStoreProvider.updateWhere` | mutation | admin | data-store-provider | | `dataStoreProvider.count` | query | admin | data-store-provider | | `dataStoreProvider.aggregate` | query | admin | data-store-provider | | `dataStoreProvider.histogram` | query | admin | data-store-provider | | `dataStoreProvider.isEmpty` | query | admin | data-store-provider | | `dataStoreProvider.declareCollection` | mutation | admin | data-store-provider | | `databaseSnapshot.listDatabases` | query | admin | database-snapshot | | `databaseSnapshot.writeSnapshot` | mutation | admin | database-snapshot | | `dayNight.getStatus` | query | protected | day-night (auto) | | `dayNight.getOptions` | query | protected | day-night | | `dayNight.setSettings` | mutation | admin | day-night | | `decoder.getInfo` | query | protected | decoder | | `decoder.reprobeHwaccel` | mutation | admin | decoder | | `detectionPipeline.getDeviceSettingsContribution` | query | protected | detection-pipeline (auto) | | `detectionPipeline.getDeviceLiveContribution` | query | protected | detection-pipeline (auto) | | `detectionPipeline.applyDeviceSettingsPatch` | mutation | admin | detection-pipeline (auto) | | `deviceAdminLink.getAdminLink` | query | admin | device-admin-link | | `deviceAdoption.getStatus` | query | protected | device-adoption (auto) | | `deviceAdoption.listCandidateFilters` | query | admin | device-adoption | | `deviceAdoption.listCandidates` | query | admin | device-adoption | | `deviceAdoption.getCandidate` | query | admin | device-adoption | | `deviceAdoption.refresh` | mutation | admin | device-adoption | | `deviceAdoption.adopt` | mutation | admin | device-adoption | | `deviceAdoption.release` | mutation | admin | device-adoption | | `deviceAdoption.resync` | mutation | admin | device-adoption | | `deviceCredentials.listDeviceCredentials` | query | admin | device-credentials | | `deviceCredentials.startEnrollment` | mutation | admin | device-credentials | | `deviceCredentials.revokeDeviceCredential` | mutation | admin | device-credentials | | `deviceCredentials.getDeviceCertificateSettings` | query | admin | device-credentials | | `deviceCredentials.setDeviceCertificateSettings` | mutation | admin | device-credentials | | `deviceCredentials.deleteDeviceCredential` | mutation | admin | device-credentials | | `deviceCredentials.getDeviceCaStatus` | query | admin | device-credentials | | `deviceCredentials.renameDeviceCredential` | mutation | admin | device-credentials | | `deviceExport.getStatus` | query | protected | device-export | | `deviceExport.getDeviceSettingsContribution` | query | protected | device-export (auto) | | `deviceExport.getDeviceLiveContribution` | query | protected | device-export (auto) | | `deviceExport.applyDeviceSettingsPatch` | mutation | admin | device-export (auto) | | `deviceExport.listInstances` | query | protected | device-export | | `deviceExport.listSupportedDeviceKinds` | query | protected | device-export | | `deviceExport.listExposedDevices` | query | protected | device-export | | `deviceExport.exposeDevice` | mutation | admin | device-export | | `deviceExport.unexposeDevice` | mutation | admin | device-export | | `deviceExport.setExposedName` | mutation | admin | device-export | | `deviceExport.listSupportedEntityKinds` | query | protected | device-export | | `deviceExport.listExposedEntities` | query | protected | device-export | | `deviceExport.exposeEntity` | mutation | admin | device-export | | `deviceExport.unexposeEntity` | mutation | admin | device-export | | `deviceExtension.listSources` | query | protected | device-extension | | `deviceExtension.listSlots` | query | protected | device-extension | | `deviceExtension.listCandidates` | query | protected | device-extension | | `deviceExtension.setSlot` | mutation | admin | device-extension | | `deviceHistory.listSeries` | query | protected | device-history | | `deviceHistory.listNodeSeries` | query | admin | device-history | | `deviceHistory.query` | query | protected | device-history | | `deviceHistory.queryNode` | query | admin | device-history | | `deviceHistory.queryMany` | query | admin | device-history | | `deviceHistory.declareSeries` | mutation | admin | device-history | | `deviceHistory.record` | mutation | admin | device-history | | `deviceHistory.recordBuckets` | mutation | admin | device-history | | `deviceHistory.getDeviceEnabled` | query | protected | device-history | | `deviceHistory.setDeviceEnabled` | mutation | admin | device-history | | `deviceHistory.getStatus` | query | admin | device-history | | `deviceHistory.listOrphanSeries` | query | admin | device-history | | `deviceHistory.deleteOrphanSeries` | mutation | admin | device-history | | `deviceManager.allocateDeviceId` | mutation | protected | device-manager | | `deviceManager.migrateDevice` | mutation | admin | device-manager | | `deviceManager.registerDevice` | mutation | protected | device-manager | | `deviceManager.removeDevice` | mutation | protected | device-manager | | `deviceManager.persistConfig` | mutation | admin | device-manager | | `deviceManager.loadConfig` | query | admin | device-manager | | `deviceManager.loadRuntimeState` | query | admin | device-manager | | `deviceManager.loadMeta` | query | protected | device-manager | | `deviceManager.setName` | mutation | admin | device-manager | | `deviceManager.setAlias` | mutation | admin | device-manager | | `deviceManager.renderDeviceTemplates` | query | admin | device-manager | | `deviceManager.checkDeviceTemplates` | query | admin | device-manager | | `deviceManager.setLocation` | mutation | admin | device-manager | | `deviceManager.setTags` | mutation | admin | device-manager | | `deviceManager.setType` | mutation | admin | device-manager | | `deviceManager.setIntegrationId` | mutation | admin | device-manager | | `deviceManager.setLinkDeviceId` | mutation | admin | device-manager | | `deviceManager.setPrimaryChildEntityId` | mutation | admin | device-manager | | `deviceManager.setChildLayout` | mutation | admin | device-manager | | `deviceManager.setPrimaryChildPreference` | mutation | admin | device-manager | | `deviceManager.setDisplay` | mutation | admin | device-manager | | `deviceManager.getRoleDisplayDefaults` | query | protected | device-manager | | `deviceManager.setRoleDisplayDefaults` | mutation | admin | device-manager | | `deviceManager.getWireableFields` | query | protected | device-manager | | `deviceManager.setRole` | mutation | admin | device-manager | | `deviceManager.applyInitialMeta` | mutation | admin | device-manager | | `deviceManager.setMetadata` | mutation | admin | device-manager | | `deviceManager.listLocations` | query | protected | device-manager | | `deviceManager.addLocation` | mutation | admin | device-manager | | `deviceManager.removeLocation` | mutation | admin | device-manager | | `deviceManager.renameLocation` | mutation | admin | device-manager | | `deviceManager.listLocationIcons` | query | protected | device-manager | | `deviceManager.setLocationIcon` | mutation | admin | device-manager | | `deviceManager.listLocationDescriptions` | query | protected | device-manager | | `deviceManager.setLocationDescription` | mutation | admin | device-manager | | `deviceManager.listSiteZones` | query | protected | device-manager | | `deviceManager.setSiteZone` | mutation | admin | device-manager | | `deviceManager.removeSiteZone` | mutation | admin | device-manager | | `deviceManager.renameSiteZone` | mutation | admin | device-manager | | `deviceManager.setLocationZone` | mutation | admin | device-manager | | `deviceManager.setDisabled` | mutation | admin | device-manager | | `deviceManager.listPersistedByAddon` | query | protected | device-manager | | `deviceManager.listAll` | query | protected | device-manager | | `deviceManager.search` | query | protected | device-manager | | `deviceManager.getDevice` | query | protected | device-manager | | `deviceManager.getChildren` | query | protected | device-manager | | `deviceManager.getChildrenBatch` | query | protected | device-manager | | `deviceManager.getLinkedDevices` | query | protected | device-manager | | `deviceManager.getLinkedDevicesBatch` | query | protected | device-manager | | `deviceManager.getStreamSources` | query | protected | device-manager | | `deviceManager.getConfigSchema` | query | protected | device-manager | | `deviceManager.getSettingsSchema` | query | protected | device-manager | | `deviceManager.updateConfig` | mutation | admin | device-manager | | `deviceManager.enable` | mutation | admin | device-manager | | `deviceManager.disable` | mutation | admin | device-manager | | `deviceManager.remove` | mutation | admin | device-manager | | `deviceManager.listDeletedSince` | query | admin | device-manager | | `deviceManager.cleanupDeletedDevicesData` | mutation | admin | device-manager | | `deviceManager.removeByIntegration` | mutation | admin | device-manager | | `deviceManager.getStreamProfileMap` | query | protected | device-manager | | `deviceManager.setStreamProfileMap` | mutation | admin | device-manager | | `deviceManager.probeStreams` | mutation | admin | device-manager | | `deviceManager.getBindings` | query | protected | device-manager | | `deviceManager.getBindingsBatch` | query | protected | device-manager | | `deviceManager.getAllBindings` | query | protected | device-manager | | `deviceManager.listDeviceIdsByCaps` | query | protected | device-manager | | `deviceManager.setWrapperActive` | mutation | admin | device-manager | | `deviceManager.getWrapperActivation` | query | protected | device-manager | | `deviceManager.listWrappersForCap` | query | protected | device-manager | | `deviceManager.listBindableCapsForDeviceType` | query | protected | device-manager | | `deviceManager.getDeviceSettingsAggregate` | query | protected | device-manager | | `deviceManager.getDeviceLiveInfoAggregate` | query | protected | device-manager | | `deviceManager.getDeviceAggregate` | query | protected | device-manager | | `deviceManager.runDeviceAction` | mutation | protected | device-manager | | `deviceManager.updateDeviceField` | mutation | admin | device-manager | | `deviceManager.updateDeviceFieldsBatch` | mutation | admin | device-manager | | `deviceManager.discoverDevices` | mutation | admin | device-manager | | `deviceManager.adoptDevice` | mutation | admin | device-manager | | `deviceManager.getCreationSchema` | query | protected | device-manager | | `deviceManager.createDevice` | mutation | admin | device-manager | | `deviceManager.testCreationField` | mutation | admin | device-manager | | `deviceManager.adoptionListCandidateFilters` | query | admin | device-manager | | `deviceManager.adoptionListCandidates` | query | admin | device-manager | | `deviceManager.adoptionRefresh` | mutation | admin | device-manager | | `deviceManager.adoptionAdopt` | mutation | admin | device-manager | | `deviceManager.adoptionRelease` | mutation | admin | device-manager | | `deviceManager.adoptionStartJob` | mutation | admin | device-manager | | `deviceManager.adoptionListJobs` | query | admin | device-manager | | `deviceManager.adoptionCancelJob` | mutation | admin | device-manager | | `deviceManager.adoptionResync` | mutation | admin | device-manager | | `deviceManager.discoveryProviders` | query | admin | device-manager | | `deviceManager.discoverAllProviders` | mutation | admin | device-manager | | `deviceManager.discoverProvider` | mutation | admin | device-manager | | `deviceManager.listDiscoveryProposals` | query | admin | device-manager | | `deviceManager.dismissDiscoveryProposal` | mutation | admin | device-manager | | `deviceManager.reportDiscoveryObservations` | mutation | admin | device-manager | | `deviceManager.runDiscoverySweep` | mutation | admin | device-manager | | `deviceManager.providerCreationType` | query | admin | device-manager | | `deviceManager.providerDiscoveryParamsSchema` | query | admin | device-manager | | `deviceManager.testField` | mutation | admin | device-manager | | `deviceManager.getDeviceStatusAggregate` | query | protected | device-manager | | `deviceManager.getDeviceStatusAggregateBatch` | query | protected | device-manager | | `deviceOps.getStreamSources` | query | protected | device-ops | | `deviceOps.getConfigEntries` | query | protected | device-ops | | `deviceOps.setConfig` | mutation | admin | device-ops | | `deviceOps.runAction` | mutation | protected | device-ops | | `deviceOps.removeDevice` | mutation | admin | device-ops | | `deviceOps.getSettingsSchema` | query | protected | device-ops | | `deviceOps.getRawState` | query | protected | device-ops | | `deviceProvider.start` | mutation | protected | device-provider | | `deviceProvider.stop` | mutation | protected | device-provider | | `deviceProvider.getStatus` | query | protected | device-provider | | `deviceProvider.getDevices` | query | protected | device-provider | | `deviceProvider.reloadDevice` | mutation | protected | device-provider | | `deviceProvider.supportsDiscovery` | query | protected | device-provider | | `deviceProvider.discoverDevices` | mutation | admin | device-provider | | `deviceProvider.getDiscoveryModes` | query | protected | device-provider | | `deviceProvider.classifyDiscoveryHits` | mutation | admin | device-provider | | `deviceProvider.getDiscoveryParamsSchema` | query | protected | device-provider | | `deviceProvider.getManualCreationType` | query | protected | device-provider | | `deviceProvider.adoptDiscoveredDevice` | mutation | admin | device-provider | | `deviceProvider.supportsManualCreation` | query | protected | device-provider | | `deviceProvider.getChildCreationSchema` | query | protected | device-provider | | `deviceProvider.createDevice` | mutation | admin | device-provider | | `deviceProvider.testCreationField` | mutation | admin | device-provider | | `deviceRemovalHook.onDeviceRemoved` | mutation | admin | device-removal-hook | | `deviceRemovalHook.listDeviceData` | query | admin | device-removal-hook | | `deviceRuns.listRuns` | query | protected | device-runs | | `deviceRuns.getRun` | query | protected | device-runs | | `deviceRuns.getCurrentRun` | query | protected | device-runs | | `deviceState.getSnapshot` | query | protected | device-state | | `deviceState.getCapSlice` | query | protected | device-state | | `deviceState.getAllSnapshots` | query | protected | device-state | | `deviceState.setCapSlice` | mutation | protected | device-state | | `deviceState.claimFields` | mutation | admin | device-state | | `deviceState.patchOwnedFields` | mutation | admin | device-state | | `deviceState.releaseClaim` | mutation | admin | device-state | | `deviceState.listClaims` | query | admin | device-state | | `deviceState.getNativeCapSlice` | query | admin | device-state | | `deviceStatus.getStatus` | query | protected | device-status (auto) | | `deviceTransitions.listTransitions` | query | protected | device-transitions | | `deviceTransitions.getTransition` | query | protected | device-transitions | | `deviceTransitions.listRecentTransitions` | query | admin | device-transitions | | `deviceTransitions.record` | mutation | admin | device-transitions | | `deviceTransitions.getStatus` | query | admin | device-transitions | | `dishwasher.getStatus` | query | protected | dishwasher (auto) | | `dishwasher.start` | mutation | protected | dishwasher | | `dishwasher.pause` | mutation | protected | dishwasher | | `dishwasher.resume` | mutation | protected | dishwasher | | `dishwasher.stop` | mutation | protected | dishwasher | | `dishwasher.setProgram` | mutation | protected | dishwasher | | `dishwasher.setPower` | mutation | protected | dishwasher | | `dishwasher.setHalfLoad` | mutation | protected | dishwasher | | `dishwasher.setHygienePlus` | mutation | protected | dishwasher | | `dishwasher.setExtraDry` | mutation | protected | dishwasher | | `dishwasher.setIntensiveZone` | mutation | protected | dishwasher | | `dishwasher.setVarioSpeedPlus` | mutation | protected | dishwasher | | `dishwasher.setChildLock` | mutation | protected | dishwasher | | `dishwasher.setOption` | mutation | protected | dishwasher | | `dishwasher.getOptions` | query | protected | dishwasher | | `displayPalette.getPalette` | query | protected | display-palette | | `displayPalette.listPresets` | query | protected | display-palette | | `displayPalette.setPalette` | mutation | admin | display-palette | | `doNotDisturb.getStatus` | query | protected | do-not-disturb (auto) | | `doNotDisturb.setEnabled` | mutation | protected | do-not-disturb | | `doorbell.getStatus` | query | protected | doorbell (auto) | | `embeddingEncoder.encode` | query | admin | embedding-encoder | | `embeddingEncoder.encodeText` | query | admin | embedding-encoder | | `embeddingEncoder.getInfo` | query | admin | embedding-encoder | | `embeddingEncoder.resetFailedModels` | mutation | admin | embedding-encoder | | `energySystem.getStatus` | query | protected | energy-system (auto) | | `enumSensor.getStatus` | query | protected | enum-sensor (auto) | | `error.getStatus` | query | protected | error (auto) | | `eventEmitter.getStatus` | query | protected | event-emitter (auto) | | `faceGallery.listIdentities` | query | protected | face-gallery | | `faceGallery.createIdentity` | mutation | admin | face-gallery | | `faceGallery.renameIdentity` | mutation | admin | face-gallery | | `faceGallery.deleteIdentity` | mutation | admin | face-gallery | | `faceGallery.listIdentitySamples` | query | protected | face-gallery | | `faceGallery.auditIdentitySamples` | query | admin | face-gallery | | `faceGallery.removeSample` | mutation | admin | face-gallery | | `faceGallery.moveIdentitySample` | mutation | admin | face-gallery | | `faceGallery.listRecentFaces` | query | protected | face-gallery | | `faceGallery.getFaceByTrack` | query | protected | face-gallery | | `faceGallery.getFaceMedia` | query | protected | face-gallery | | `faceGallery.assignFace` | mutation | admin | face-gallery | | `faceGallery.unassignFace` | mutation | admin | face-gallery | | `faceGallery.deleteFace` | mutation | admin | face-gallery | | `faceGallery.assignFaces` | mutation | admin | face-gallery | | `faceGallery.unassignFaces` | mutation | admin | face-gallery | | `faceGallery.suggestFaceClusters` | query | protected | face-gallery | | `failureContribution.list` | query | admin | failure-contribution | | `fanControl.getStatus` | query | protected | fan-control (auto) | | `fanControl.setPercentage` | mutation | protected | fan-control | | `fanControl.setPreset` | mutation | protected | fan-control | | `fanControl.setDirection` | mutation | protected | fan-control | | `fanControl.setOscillating` | mutation | protected | fan-control | | `fanControl.setOscillationAxis` | mutation | protected | fan-control | | `fanPresets.getPresets` | query | protected | fan-presets | | `fanPresets.setPresets` | mutation | admin | fan-presets | | `fanPresets.applyPreset` | mutation | protected | fan-presets | | `fanPresets.capturePreset` | query | protected | fan-presets | | `featureProbe.getStatus` | query | protected | feature-probe (auto) | | `filesystemBrowse.listAllowedRoots` | query | admin | filesystem-browse | | `filesystemBrowse.browse` | query | admin | filesystem-browse | | `filesystemBrowse.createDir` | mutation | admin | filesystem-browse | | `flood.getStatus` | query | protected | flood (auto) | | `gas.getStatus` | query | protected | gas (auto) | | `groupActive.getStatus` | query | protected | group-active (auto) | | `groupCommands.getStatus` | query | protected | group-commands (auto) | | `groupStatus.getStatus` | query | protected | group-status (auto) | | `heatPumpControl.setSilentMode` | mutation | protected | heat-pump-control | | `heatPumpControl.setAwayMode` | mutation | protected | heat-pump-control | | `heatPumpControl.setAdditionalHeaterMode` | mutation | protected | heat-pump-control | | `heatPumpControl.setHolidayMode` | mutation | protected | heat-pump-control | | `heatPumpControl.setCircuitOperationMode` | mutation | protected | heat-pump-control | | `heatPumpControl.setCircuitHeatCoolMode` | mutation | protected | heat-pump-control | | `heatPumpControl.setCircuitSummerWinter` | mutation | protected | heat-pump-control | | `heatPumpControl.setCircuitComfortSetpoint` | mutation | protected | heat-pump-control | | `heatPumpControl.setCircuitEcoSetpoint` | mutation | protected | heat-pump-control | | `heatPumpControl.setCircuitMaxFlowTemp` | mutation | protected | heat-pump-control | | `heatPumpControl.setDhwOperationMode` | mutation | protected | heat-pump-control | | `heatPumpControl.setDhwTemperatureLevel` | mutation | protected | heat-pump-control | | `heatPumpControl.setDhwChargeDuration` | mutation | protected | heat-pump-control | | `heatPumpControl.startExtraHotWater` | mutation | protected | heat-pump-control | | `heatPumpStatus.getStatus` | query | protected | heat-pump-status (auto) | | `heatingValve.getStatus` | query | protected | heating-valve (auto) | | `heroLayout.getHeroModel` | query | protected | hero-layout | | `heroLayout.getRowModels` | query | protected | hero-layout | | `heroLayout.getLayout` | query | protected | hero-layout | | `humidifier.getStatus` | query | protected | humidifier (auto) | | `humidifier.setOn` | mutation | protected | humidifier | | `humidifier.setTargetHumidity` | mutation | protected | humidifier | | `humidifier.setMode` | mutation | protected | humidifier | | `humiditySensor.getStatus` | query | protected | humidity-sensor (auto) | | `image.getStatus` | query | protected | image (auto) | | `imageSettings.getStatus` | query | protected | image-settings (auto) | | `imageSettings.getOptions` | query | protected | image-settings | | `imageSettings.setSettings` | mutation | admin | image-settings | | `integrationInstances.describe` | query | admin | integration-instances | | `integrationInstances.instanceFormSchema` | query | admin | integration-instances | | `integrationInstances.listInstances` | query | protected | integration-instances | | `integrationInstances.getInstance` | query | protected | integration-instances | | `integrationInstances.createInstance` | mutation | protected | integration-instances | | `integrationInstances.updateInstance` | mutation | protected | integration-instances | | `integrationInstances.setInstanceEnabled` | mutation | protected | integration-instances | | `integrationInstances.deleteInstance` | mutation | protected | integration-instances | | `integrationInstances.testInstance` | mutation | protected | integration-instances | | `integrations.list` | query | protected | integrations | | `integrations.get` | query | protected | integrations | | `integrations.getByAddonId` | query | protected | integrations | | `integrations.update` | mutation | admin | integrations | | `integrations.delete` | mutation | admin | integrations | | `integrations.getAvailableTypes` | query | admin | integrations | | `intercom.getStatus` | query | protected | intercom (auto) | | `intercom.startSession` | mutation | protected | intercom | | `intercom.handleAnswer` | mutation | protected | intercom | | `intercom.stopSession` | mutation | protected | intercom | | `intercom.startTalkSession` | mutation | protected | intercom | | `intercom.pushTalkAudio` | mutation | protected | intercom | | `intercom.endTalkSession` | mutation | protected | intercom | | `irTransmitter.send` | mutation | protected | ir-transmitter | | `irTransmitter.learn` | mutation | protected | ir-transmitter | | `irTransmitter.getInfo` | query | protected | ir-transmitter | | `keychain.put` | mutation | admin | keychain | | `keychain.resolve` | query | admin | keychain | | `keychain.delete` | mutation | admin | keychain | | `keychain.deleteDeviceScope` | mutation | admin | keychain | | `keychain.releaseRecordRefs` | mutation | admin | keychain | | `keychain.listMeta` | query | admin | keychain | | `keychain.getState` | query | admin | keychain | | `keychainAdmin.status` | query | admin | keychain-admin | | `keychainAdmin.listSecrets` | query | admin | keychain-admin | | `keychainAdmin.listAudit` | query | admin | keychain-admin | | `keychainAdmin.reveal` | mutation | admin | keychain-admin | | `keychainAdmin.setSystemSecret` | mutation | admin | keychain-admin | | `keychainAdmin.importSecret` | mutation | admin | keychain-admin | | `keychainAdmin.deleteOrphans` | mutation | admin | keychain-admin | | `keychainAdmin.rotateMasterKey` | mutation | admin | keychain-admin | | `keychainAdmin.purgeRetiredKeys` | mutation | admin | keychain-admin | | `keychainAdmin.downloadRecoveryKey` | mutation | admin | keychain-admin | | `keychainAdmin.resetKeychain` | mutation | admin | keychain-admin | | `keychainAdmin.resetReport` | query | admin | keychain-admin | | `keychainAdmin.acknowledgeReset` | mutation | admin | keychain-admin | | `lawnMowerControl.getStatus` | query | protected | lawn-mower-control (auto) | | `lawnMowerControl.startMowing` | mutation | protected | lawn-mower-control | | `lawnMowerControl.pause` | mutation | protected | lawn-mower-control | | `lawnMowerControl.dock` | mutation | protected | lawn-mower-control | | `llm.generate` | mutation | protected | llm | | `llm.generateVision` | mutation | protected | llm | | `llm.cancel` | mutation | protected | llm | | `llm.listModels` | mutation | admin | llm | | `llm.getDefaults` | query | protected | llm | | `llm.setDefault` | mutation | admin | llm | | `llm.getUsage` | query | protected | llm | | `llm.listModelCatalog` | query | protected | llm | | `llm.listRuntimeNodes` | query | protected | llm | | `llm.listNodeModels` | query | protected | llm | | `llm.resolveModelRef` | mutation | admin | llm | | `llm.installModel` | mutation | admin | llm | | `llm.deleteModel` | mutation | admin | llm | | `llm.getRuntimeStatus` | query | protected | llm | | `llm.startRuntime` | mutation | admin | llm | | `llm.stopRuntime` | mutation | admin | llm | | `llmRuntime.complete` | mutation | admin | llm-runtime | | `llmRuntime.ensureStarted` | mutation | admin | llm-runtime | | `llmRuntime.stop` | mutation | admin | llm-runtime | | `llmRuntime.status` | query | admin | llm-runtime | | `llmRuntime.installModel` | mutation | admin | llm-runtime | | `llmRuntime.deleteModel` | mutation | admin | llm-runtime | | `llmRuntime.listLocalModels` | query | admin | llm-runtime | | `llmRuntime.getDiskUsage` | query | admin | llm-runtime | | `llmRuntime.cancel` | mutation | admin | llm-runtime | | `llmRuntime.appleAvailability` | query | admin | llm-runtime | | `llmRuntime.completeApple` | mutation | admin | llm-runtime | | `loadContribution.list` | query | admin | load-contribution | | `localNetwork.list` | query | protected | local-network | | `localNetwork.getPreferred` | query | protected | local-network | | `localNetwork.getConnectionEndpoints` | query | protected | local-network | | `localNetwork.getNotificationEndpoint` | query | protected | local-network | | `localNetwork.setNotificationEndpoint` | mutation | protected | local-network | | `localNetwork.getViewerEndpoints` | query | protected | local-network | | `localNetwork.setViewerEndpoints` | mutation | protected | local-network | | `localNetwork.getAddresses` | query | protected | local-network | | `localNetwork.addCustomAddress` | mutation | admin | local-network | | `localNetwork.removeCustomAddress` | mutation | admin | local-network | | `localNetwork.setAddressRole` | mutation | admin | local-network | | `localNetwork.getHubAddresses` | query | protected | local-network | | `localNetwork.getAllowedAddresses` | query | protected | local-network | | `localNetwork.setAllowedAddresses` | mutation | protected | local-network | | `localNetwork.resetAllowlistToBestMatch` | mutation | protected | local-network | | `localNetwork.getTlsStatus` | query | protected | local-network | | `localNetwork.regenerateCertificate` | mutation | admin | local-network | | `localNetwork.uploadCertificate` | mutation | admin | local-network | | `localNetwork.downloadCa` | query | protected | local-network | | `localNetwork.useStoredUploadedCertificate` | mutation | admin | local-network | | `localNetwork.scanNetwork` | mutation | admin | local-network | | `localNetwork.getScanSubnets` | query | admin | local-network | | `localNetwork.setScanSubnets` | mutation | admin | local-network | | `localNetwork.revertToGeneratedCertificate` | mutation | admin | local-network | | `lockControl.getStatus` | query | protected | lock-control (auto) | | `lockControl.lock` | mutation | protected | lock-control | | `lockControl.unlock` | mutation | protected | lock-control | | `lockControl.open` | mutation | protected | lock-control | | `logChannels.list` | query | admin | log-channels | | `logChannels.apply` | mutation | admin | log-channels | | `logDestination.write` | mutation | admin | log-destination | | `logDestination.describeRead` | query | admin | log-destination | | `logDestination.read` | query | admin | log-destination | | `logDestination.cancelRead` | mutation | admin | log-destination | | `loginMethod.getLoginMethods` | query | admin | login-method | | `mediaPlayer.getStatus` | query | protected | media-player (auto) | | `mediaPlayer.turnOn` | mutation | protected | media-player | | `mediaPlayer.turnOff` | mutation | protected | media-player | | `mediaPlayer.volumeUp` | mutation | protected | media-player | | `mediaPlayer.volumeDown` | mutation | protected | media-player | | `mediaPlayer.channelUp` | mutation | protected | media-player | | `mediaPlayer.channelDown` | mutation | protected | media-player | | `mediaPlayer.play` | mutation | protected | media-player | | `mediaPlayer.pause` | mutation | protected | media-player | | `mediaPlayer.stop` | mutation | protected | media-player | | `mediaPlayer.next` | mutation | protected | media-player | | `mediaPlayer.previous` | mutation | protected | media-player | | `mediaPlayer.setVolume` | mutation | protected | media-player | | `mediaPlayer.setMute` | mutation | protected | media-player | | `mediaPlayer.setShuffle` | mutation | protected | media-player | | `mediaPlayer.setRepeat` | mutation | protected | media-player | | `mediaPlayer.selectSource` | mutation | protected | media-player | | `mediaPlayer.seek` | mutation | protected | media-player | | `mediaPlayer.playMedia` | mutation | protected | media-player | | `meshNetwork.getStatus` | query | protected | mesh-network | | `meshNetwork.join` | mutation | protected | mesh-network | | `meshNetwork.startLogin` | mutation | protected | mesh-network | | `meshNetwork.leave` | mutation | protected | mesh-network | | `meshNetwork.logout` | mutation | protected | mesh-network | | `meshNetwork.listPeers` | query | protected | mesh-network | | `meter.getStatus` | query | protected | meter (auto) | | `metricsProvider.collectSnapshot` | query | protected | metrics-provider | | `metricsProvider.getCached` | query | protected | metrics-provider | | `metricsProvider.getCurrent` | query | protected | metrics-provider | | `metricsProvider.getDiskSpace` | query | protected | metrics-provider | | `metricsProvider.getGpuInfo` | query | protected | metrics-provider | | `metricsProvider.getCpuTemperature` | query | protected | metrics-provider | | `metricsProvider.getProcessStats` | query | protected | metrics-provider | | `metricsProvider.listAddonInstances` | query | protected | metrics-provider | | `metricsProvider.getAddonStats` | query | protected | metrics-provider | | `metricsProvider.listNodeProcesses` | query | protected | metrics-provider | | `metricsProvider.getLoadSeries` | query | protected | metrics-provider | | `migrations.listLedger` | query | admin | migrations | | `migrations.listPending` | query | admin | migrations | | `migrations.dryRun` | query | admin | migrations | | `migrations.markFailed` | mutation | admin | migrations | | `migrations.retry` | mutation | admin | migrations | | `migrations.restorePreMigration` | mutation | admin | migrations | | `migrations.declareOwner` | mutation | admin | migrations | | `migrations.startMigration` | mutation | admin | migrations | | `migrations.finishMigration` | mutation | admin | migrations | | `migrations.readLegacyIntegrationRows` | query | admin | migrations | | `migrations.clearLegacyIntegrationRows` | mutation | admin | migrations | | `migrations.patchLegacyIntegrationRows` | mutation | admin | migrations | | `migrations.deleteLegacyIntegrationRowKeys` | mutation | admin | migrations | | `modelConvert.convert` | mutation | admin | model-convert | | `modelDistributor.distributeModel` | mutation | admin | model-distributor | | `motion.getStatus` | query | protected | motion (auto) | | `motion.isDetected` | query | protected | motion | | `motionDetection.getDeviceSettingsContribution` | query | protected | motion-detection (auto) | | `motionDetection.getDeviceLiveContribution` | query | protected | motion-detection (auto) | | `motionDetection.applyDeviceSettingsPatch` | mutation | admin | motion-detection (auto) | | `motionDetection.analyze` | mutation | protected | motion-detection | | `motionDetection.removeCamera` | mutation | protected | motion-detection | | `motionDetection.reset` | mutation | protected | motion-detection | | `motionTrigger.getStatus` | query | protected | motion-trigger (auto) | | `motionTrigger.setMotionTrigger` | mutation | protected | motion-trigger | | `motionZones.getStatus` | query | protected | motion-zones (auto) | | `motionZones.getOptions` | query | protected | motion-zones | | `motionZones.setZone` | mutation | admin | motion-zones | | `mqttBroker.getStatus` | query | protected | mqtt-broker | | `mqttBroker.listBrokers` | query | protected | mqtt-broker | | `mqttBroker.getBrokerConfig` | query | admin | mqtt-broker | | `mqttBroker.addBroker` | mutation | admin | mqtt-broker | | `mqttBroker.removeBroker` | mutation | admin | mqtt-broker | | `mqttBroker.startEmbeddedBroker` | mutation | admin | mqtt-broker | | `mqttBroker.stopEmbeddedBroker` | mutation | admin | mqtt-broker | | `nativeObjectDetection.getStatus` | query | protected | native-object-detection (auto) | | `nativeObjectDetection.getOptions` | query | protected | native-object-detection | | `nativeObjectDetection.setSettings` | mutation | admin | native-object-detection | | `nativeObjectDetection.setEnabled` | mutation | admin | native-object-detection | | `navigation.getStatus` | query | protected | navigation (auto) | | `navigation.move` | mutation | protected | navigation | | `navigation.stop` | mutation | protected | navigation | | `navigation.goToPoint` | mutation | protected | navigation | | `navigation.listActions` | query | protected | navigation | | `navigation.runAction` | mutation | protected | navigation | | `navigation.playSound` | mutation | protected | navigation | | `navigation.setLightOn` | mutation | protected | navigation | | `navigation.setLightMode` | mutation | protected | navigation | | `navigation.setLightLevel` | mutation | protected | navigation | | `navigation.getFeatures` | query | protected | navigation | | `networkAccess.start` | mutation | protected | network-access | | `networkAccess.stop` | mutation | protected | network-access | | `networkAccess.getEndpoint` | query | protected | network-access | | `networkAccess.getStatus` | query | protected | network-access | | `networkAccess.listEndpoints` | query | protected | network-access | | `networkLink.getStatus` | query | protected | network-link (auto) | | `networkQuality.getDeviceStats` | query | protected | network-quality | | `networkQuality.getAllStats` | query | protected | network-quality | | `networkQuality.reportClientStats` | mutation | protected | network-quality | | `nodeCertificates.getCertificates` | query | admin | node-certificates | | `nodeCertificates.prepareMeshRenewal` | mutation | admin | node-certificates | | `nodeCertificates.installMeshLeaf` | mutation | admin | node-certificates | | `nodeCertificates.confirmMeshLeaf` | mutation | admin | node-certificates | | `nodeCertificates.rollbackMeshLeaf` | mutation | admin | node-certificates | | `nodeCertificates.prepareHttpsCertificate` | mutation | admin | node-certificates | | `nodeCertificates.forgetHub` | mutation | admin | node-certificates | | `nodeCertificates.installHttpsCertificate` | mutation | admin | node-certificates | | `nodeRemovalHook.onNodeRemoved` | mutation | admin | node-removal-hook | | `nodes.topology` | query | admin | nodes | | `nodes.directory` | query | admin | nodes | | `nodes.deployAddon` | mutation | admin | nodes | | `nodes.undeployAddon` | mutation | admin | nodes | | `nodes.restartAddon` | mutation | admin | nodes | | `nodes.restartProcess` | mutation | admin | nodes | | `nodes.restartNode` | mutation | admin | nodes | | `nodes.shutdownNode` | mutation | admin | nodes | | `nodes.renameNode` | mutation | admin | nodes | | `nodes.clusterAddonStatus` | query | admin | nodes | | `nodes.getCapUsageGraph` | query | admin | nodes | | `nodes.getNodeAddons` | query | admin | nodes | | `nodes.setProcessLogLevel` | mutation | admin | nodes | | `nodes.executeQuery` | mutation | admin | nodes | | `notificationOutput.listTargetKinds` | query | protected | notification-output | | `notificationOutput.discoverTargets` | query | admin | notification-output | | `notificationOutput.probeTargetConfig` | mutation | admin | notification-output | | `notificationOutput.send` | mutation | admin | notification-output | | `notificationOutput.testTarget` | mutation | admin | notification-output | | `notificationRules.listRules` | query | admin | notification-rules | | `notificationRules.getRule` | query | admin | notification-rules | | `notificationRules.createRule` | mutation | admin | notification-rules | | `notificationRules.updateRule` | mutation | admin | notification-rules | | `notificationRules.deleteRule` | mutation | admin | notification-rules | | `notificationRules.setRuleEnabled` | mutation | admin | notification-rules | | `notificationRules.getClipRetentionAsks` | query | admin | notification-rules | | `notificationRules.listDeviceMutes` | query | admin | notification-rules | | `notificationRules.setDeviceMuted` | mutation | admin | notification-rules | | `notificationRules.testRule` | mutation | admin | notification-rules | | `notificationRules.previewStateSummary` | mutation | admin | notification-rules | | `notificationRules.getConditionCatalog` | query | protected | notification-rules | | `notificationRules.getTemplateCatalog` | query | protected | notification-rules | | `notificationRules.previewTemplate` | mutation | protected | notification-rules | | `notificationRules.getHistory` | query | admin | notification-rules | | `notificationRules.getRuleLastRuns` | query | admin | notification-rules | | `notificationRules.resolveArtifactUrl` | query | admin | notification-rules | | `notificationRules.listSnoozes` | query | protected | notification-rules | | `notificationRules.createSnooze` | mutation | protected | notification-rules | | `notificationRules.cancelSnooze` | mutation | protected | notification-rules | | `notificationRules.getAlarmConfig` | query | admin | notification-rules | | `notificationRules.setAlarmConfig` | mutation | admin | notification-rules | | `notificationRules.createAlarmProfile` | mutation | admin | notification-rules | | `notificationRules.renameAlarmProfile` | mutation | admin | notification-rules | | `notificationRules.deleteAlarmProfile` | mutation | admin | notification-rules | | `notificationRules.activateAlarmProfile` | mutation | admin | notification-rules | | `notificationRules.getAlarmSensors` | query | admin | notification-rules | | `notifier.getStatus` | query | protected | notifier (auto) | | `notifier.send` | mutation | admin | notifier | | `notifier.cancel` | mutation | admin | notifier | | `numericSensor.getStatus` | query | protected | numeric-sensor (auto) | | `oauthIntegration.getDescriptor` | query | admin | oauth-integration | | `osd.getStatus` | query | protected | osd (auto) | | `osd.setOverlay` | mutation | admin | osd | | `osdManager.getDeviceOsd` | query | admin | osd-manager | | `osdManager.getConditionSupport` | query | admin | osd-manager | | `osdManager.setSlotBinding` | mutation | admin | osd-manager | | `osdManager.clearSlotBinding` | mutation | admin | osd-manager | | `osdManager.setSlotCameraEnabled` | mutation | admin | osd-manager | | `osdManager.copyDeviceConfiguration` | mutation | admin | osd-manager | | `osdManager.previewSlot` | mutation | admin | osd-manager | | `osdManager.previewTemplate` | mutation | admin | osd-manager | | `osdManager.renderDevice` | mutation | admin | osd-manager | | `osdManager.listTemplates` | query | admin | osd-manager | | `osdManager.upsertTemplate` | mutation | admin | osd-manager | | `osdManager.deleteTemplate` | mutation | admin | osd-manager | | `petFeeder.getStatus` | query | protected | pet-feeder (auto) | | `petFeeder.feed` | mutation | protected | pet-feeder | | `petFeeder.cancelFeed` | mutation | protected | pet-feeder | | `petFeeder.callPet` | mutation | protected | pet-feeder | | `petFeeder.playSound` | mutation | protected | pet-feeder | | `petFeeder.resetDesiccant` | mutation | protected | pet-feeder | | `petFeeder.markFoodReplenished` | mutation | protected | pet-feeder | | `petFeeder.setChildLock` | mutation | protected | pet-feeder | | `petFeeder.setIndicatorLight` | mutation | protected | pet-feeder | | `petFeeder.setFeedSound` | mutation | protected | pet-feeder | | `petFeeder.setVolume` | mutation | protected | pet-feeder | | `petFountain.getStatus` | query | protected | pet-fountain (auto) | | `petFountain.setPump` | mutation | protected | pet-fountain | | `pipelineAnalytics.getDeviceSettingsContribution` | query | protected | pipeline-analytics (auto) | | `pipelineAnalytics.getDeviceLiveContribution` | query | protected | pipeline-analytics (auto) | | `pipelineAnalytics.applyDeviceSettingsPatch` | mutation | admin | pipeline-analytics (auto) | | `pipelineAnalytics.getActiveTracks` | query | protected | pipeline-analytics | | `pipelineAnalytics.getTrack` | query | protected | pipeline-analytics | | `pipelineAnalytics.listTracks` | query | protected | pipeline-analytics | | `pipelineAnalytics.listRecentTracks` | query | protected | pipeline-analytics | | `pipelineAnalytics.clearTracks` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.getMotionEvents` | query | protected | pipeline-analytics | | `pipelineAnalytics.getObjectEvents` | query | protected | pipeline-analytics | | `pipelineAnalytics.getAudioEvents` | query | protected | pipeline-analytics | | `pipelineAnalytics.listEventKinds` | query | protected | pipeline-analytics | | `pipelineAnalytics.listEventKindsBatch` | query | protected | pipeline-analytics | | `pipelineAnalytics.getSensorEvents` | query | protected | pipeline-analytics | | `pipelineAnalytics.getKeyEvents` | query | protected | pipeline-analytics | | `pipelineAnalytics.getKeyEventsBatch` | query | protected | pipeline-analytics | | `pipelineAnalytics.readLongTermSeries` | query | protected | pipeline-analytics | | `pipelineAnalytics.getEventDensity` | query | protected | pipeline-analytics | | `pipelineAnalytics.getEventDensityBatch` | query | protected | pipeline-analytics | | `pipelineAnalytics.pruneEventsBefore` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.pruneTracksBefore` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.wipeAllAnalytics` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.reconcileFromDisk` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.deleteTracks` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.setTrackFlags` | mutation | protected | pipeline-analytics | | `pipelineAnalytics.listArchivedDebugNotes` | query | protected | pipeline-analytics | | `pipelineAnalytics.setTrackRelation` | mutation | protected | pipeline-analytics | | `pipelineAnalytics.clearTrackRelation` | mutation | protected | pipeline-analytics | | `pipelineAnalytics.setTrackPurity` | mutation | protected | pipeline-analytics | | `pipelineAnalytics.listTrackRelations` | query | protected | pipeline-analytics | | `pipelineAnalytics.listBirthDecisions` | query | protected | pipeline-analytics | | `pipelineAnalytics.getEventStoreFootprint` | query | admin | pipeline-analytics | | `pipelineAnalytics.getEventMediaFootprintByKind` | query | admin | pipeline-analytics | | `pipelineAnalytics.pruneEvents` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.deleteDeviceEvents` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.pauseForStorageMigration` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.resumeForStorageMigration` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.refreshStorageLocationsForMigration` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.startStorageMigrationMove` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.getStorageMigrationMoveStatus` | query | admin | pipeline-analytics | | `pipelineAnalytics.cancelStorageMigrationMove` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.relocateMedia` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.countUnstampedEventMedia` | query | admin | pipeline-analytics | | `pipelineAnalytics.getMediaLocationCensus` | query | admin | pipeline-analytics | | `pipelineAnalytics.countRelocatableMedia` | query | admin | pipeline-analytics | | `pipelineAnalytics.listRelocateMediaJobs` | query | admin | pipeline-analytics | | `pipelineAnalytics.cancelRelocateMedia` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.listOpsLog` | query | admin | pipeline-analytics | | `pipelineAnalytics.reclaimDebugMedia` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.getMediaReclaimStatus` | query | admin | pipeline-analytics | | `pipelineAnalytics.getTrainingExportSummary` | query | admin | pipeline-analytics | | `pipelineAnalytics.getTrainingExportUrl` | query | admin | pipeline-analytics | | `pipelineAnalytics.listRetrainStaging` | query | admin | pipeline-analytics | | `pipelineAnalytics.listRetrainCorpusPage` | query | admin | pipeline-analytics | | `pipelineAnalytics.getRetrainCorpusKpi` | query | admin | pipeline-analytics | | `pipelineAnalytics.listRetrainFrames` | query | admin | pipeline-analytics | | `pipelineAnalytics.selectRetrainFrames` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.deselectRetrainFrame` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.getRetrainFrameImage` | query | admin | pipeline-analytics | | `pipelineAnalytics.proposeRetrainAnnotations` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.listRetrainAnnotations` | query | admin | pipeline-analytics | | `pipelineAnalytics.saveRetrainAnnotations` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.backfillRetrainOrigins` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.completeRetrainTrack` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.restageRetrainTrack` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.getRetrainExportUrl` | query | admin | pipeline-analytics | | `pipelineAnalytics.setRetrainFrameComplete` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.writeRetrainArchive` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.offerRetrainArchive` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.listRetrainAssistProfiles` | query | admin | pipeline-analytics | | `pipelineAnalytics.proposeRetrainAnnotationsWithLlm` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.createRetrainCollection` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.listRetrainCollections` | query | admin | pipeline-analytics | | `pipelineAnalytics.resolveRetrainTrainingCorpus` | query | admin | pipeline-analytics | | `pipelineAnalytics.renameRetrainCollection` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.deleteRetrainCollection` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.addRetrainFrameFromRecording` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.addRetrainFramesToCollection` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.removeRetrainFrameFromCollection` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.listRetrainCollectionFrames` | query | admin | pipeline-analytics | | `pipelineAnalytics.getEventMedia` | query | protected | pipeline-analytics | | `pipelineAnalytics.getTrackMedia` | query | protected | pipeline-analytics | | `pipelineAnalytics.listTrackMedia` | query | protected | pipeline-analytics | | `pipelineAnalytics.listEventMedia` | query | protected | pipeline-analytics | | `pipelineAnalytics.ownersWithMedia` | query | protected | pipeline-analytics | | `pipelineAnalytics.searchObjectEvents` | query | protected | pipeline-analytics | | `pipelineAnalytics.wipeObjectEmbeddings` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.rebuildObjectEmbeddings` | mutation | admin | pipeline-analytics | | `pipelineAnalytics.getObjectEmbeddingRebuildStatus` | query | protected | pipeline-analytics | | `pipelineExecutor.getAvailableEngines` | query | protected | pipeline-executor | | `pipelineExecutor.getSelectedEngine` | query | protected | pipeline-executor | | `pipelineExecutor.getEngineProvisioning` | query | protected | pipeline-executor | | `pipelineExecutor.getVideoPipelineSteps` | query | protected | pipeline-executor | | `pipelineExecutor.setVideoPipelineSteps` | mutation | admin | pipeline-executor | | `pipelineExecutor.getInferenceDeviceHealth` | query | protected | pipeline-executor | | `pipelineExecutor.rearmInferenceDevice` | mutation | admin | pipeline-executor | | `pipelineExecutor.getSchema` | query | protected | pipeline-executor | | `pipelineExecutor.getOrchestratorConfigSchema` | query | protected | pipeline-executor | | `pipelineExecutor.validatePipeline` | query | protected | pipeline-executor | | `pipelineExecutor.getCapabilities` | query | protected | pipeline-executor | | `pipelineExecutor.getAddonModels` | query | protected | pipeline-executor | | `pipelineExecutor.downloadModel` | mutation | protected | pipeline-executor | | `pipelineExecutor.deleteModel` | mutation | protected | pipeline-executor | | `pipelineExecutor.runPipeline` | mutation | protected | pipeline-executor | | `pipelineExecutor.runPipelineBatch` | mutation | protected | pipeline-executor | | `pipelineExecutor.cacheFrameInPool` | mutation | protected | pipeline-executor | | `pipelineExecutor.inferCached` | mutation | protected | pipeline-executor | | `pipelineExecutor.uncacheFrame` | mutation | protected | pipeline-executor | | `pipelineExecutor.getEffectiveTuning` | query | protected | pipeline-executor | | `pipelineExecutor.listLoadedEngines` | query | protected | pipeline-executor | | `pipelineExecutor.spinEngine` | mutation | admin | pipeline-executor | | `pipelineExecutor.killEngine` | mutation | admin | pipeline-executor | | `pipelineExecutor.listReferenceImages` | query | protected | pipeline-executor | | `pipelineExecutor.getReferenceImage` | query | protected | pipeline-executor | | `pipelineExecutor.getReferenceAudioFiles` | query | protected | pipeline-executor | | `pipelineExecutor.getReferenceAudio` | query | protected | pipeline-executor | | `pipelineExecutor.getAudioCapabilities` | query | protected | pipeline-executor | | `pipelineExecutor.runAudioTest` | mutation | protected | pipeline-executor | | `pipelineExecutor.getDetectionConfigSchema` | query | protected | pipeline-executor | | `pipelineOrchestrator.getDeviceSettingsContribution` | query | protected | pipeline-orchestrator (auto) | | `pipelineOrchestrator.getDeviceLiveContribution` | query | protected | pipeline-orchestrator (auto) | | `pipelineOrchestrator.applyDeviceSettingsPatch` | mutation | admin | pipeline-orchestrator (auto) | | `pipelineOrchestrator.requestOccupancyLook` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.pauseForStorageMigration` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.resumeForStorageMigration` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.assignPipeline` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.unassignPipeline` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.setPipelineDevicePin` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.getPipelineDevicePin` | query | protected | pipeline-orchestrator | | `pipelineOrchestrator.rebalance` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.getPipelineAssignments` | query | protected | pipeline-orchestrator | | `pipelineOrchestrator.getPipelineAssignment` | query | protected | pipeline-orchestrator | | `pipelineOrchestrator.getAgentLoad` | query | protected | pipeline-orchestrator | | `pipelineOrchestrator.getClusterModelChoice` | query | protected | pipeline-orchestrator | | `pipelineOrchestrator.getGlobalMetrics` | query | protected | pipeline-orchestrator | | `pipelineOrchestrator.getCameraMetrics` | query | protected | pipeline-orchestrator | | `pipelineOrchestrator.getCapabilityBindings` | query | protected | pipeline-orchestrator | | `pipelineOrchestrator.setCapabilityBinding` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.getIngestOwner` | query | protected | pipeline-orchestrator | | `pipelineOrchestrator.assignAudio` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.unassignAudio` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.getAudioAssignment` | query | protected | pipeline-orchestrator | | `pipelineOrchestrator.getAudioNodeLoad` | query | protected | pipeline-orchestrator | | `pipelineOrchestrator.getAudioAssignments` | query | protected | pipeline-orchestrator | | `pipelineOrchestrator.getAgentSettings` | query | protected | pipeline-orchestrator | | `pipelineOrchestrator.listAgentSettings` | query | protected | pipeline-orchestrator | | `pipelineOrchestrator.removeAgentSettings` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.setAgentMaxCameras` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.setAgentCapabilities` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.setAgentDecodeLimits` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.setAgentReachableHost` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.setAgentInferenceDevices` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.setNodeStepSettings` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.getNodeInferenceDevices` | query | protected | pipeline-orchestrator | | `pipelineOrchestrator.forgetInferenceDevice` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.resetNodePipelineDefaults` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.planAutoTune` | query | admin | pipeline-orchestrator | | `pipelineOrchestrator.applyAutoTune` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.setLoadBalancingShares` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.getPlacementStats` | query | admin | pipeline-orchestrator | | `pipelineOrchestrator.suggestShares` | query | admin | pipeline-orchestrator | | `pipelineOrchestrator.getEffectiveShares` | query | admin | pipeline-orchestrator | | `pipelineOrchestrator.setShareSource` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.getNodeBenchmarkPreflight` | query | admin | pipeline-orchestrator | | `pipelineOrchestrator.startNodeBenchmark` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.getNodeBenchmarkStatus` | query | admin | pipeline-orchestrator | | `pipelineOrchestrator.abortNodeBenchmark` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.getNodeBenchmarkCandidates` | query | admin | pipeline-orchestrator | | `pipelineOrchestrator.listNodeBenchmarkResults` | query | admin | pipeline-orchestrator | | `pipelineOrchestrator.deleteNodeBenchmarkResult` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.getCameraSettings` | query | protected | pipeline-orchestrator | | `pipelineOrchestrator.setCameraStepToggle` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.getCameraDetectionSource` | query | protected | pipeline-orchestrator | | `pipelineOrchestrator.setCameraDetectionSource` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.setCameraStepSettings` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.resolvePipeline` | query | protected | pipeline-orchestrator | | `pipelineOrchestrator.getCameraSwitches` | query | protected | pipeline-orchestrator | | `pipelineOrchestrator.setCameraSwitch` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.getCameraStatus` | query | protected | pipeline-orchestrator | | `pipelineOrchestrator.getCameraStatuses` | query | protected | pipeline-orchestrator | | `pipelineOrchestrator.setCameraSensors` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.reconcileFromDisk` | mutation | admin | pipeline-orchestrator | | `pipelineOrchestrator.getReconcileFromDiskStatus` | query | admin | pipeline-orchestrator | | `pipelineRunner.attachCamera` | mutation | protected | pipeline-runner | | `pipelineRunner.detachCamera` | mutation | protected | pipeline-runner | | `pipelineRunner.reportMotion` | mutation | protected | pipeline-runner | | `pipelineRunner.getLocalLoad` | query | protected | pipeline-runner | | `pipelineRunner.getLocalMetrics` | query | protected | pipeline-runner | | `pipelineRunner.getCameraMetrics` | query | protected | pipeline-runner | | `pipelineRunner.getAllCameraMetrics` | query | protected | pipeline-runner | | `pipelineRunner.getLocalCameras` | query | protected | pipeline-runner | | `pipelineRunner.requestOccupancyBurst` | mutation | admin | pipeline-runner | | `pipelineRunner.getNativeCrop` | query | protected | pipeline-runner | | `pipelineRunner.runDetailSubtree` | mutation | protected | pipeline-runner | | `pipelineRunner.runStatelessStep` | mutation | protected | pipeline-runner | | `pipelineRunner.parkTrackFrame` | mutation | protected | pipeline-runner | | `pipelineRunner.getParkedTrackFrame` | query | protected | pipeline-runner | | `pipelineRunner.releaseParkedTrackFrames` | mutation | protected | pipeline-runner | | `pipelineRunner.startNodeBench` | mutation | admin | pipeline-runner | | `pipelineRunner.getNodeBenchStatus` | query | admin | pipeline-runner | | `pipelineRunner.abortNodeBench` | mutation | admin | pipeline-runner | | `plateGallery.listPlates` | query | protected | plate-gallery | | `plateGallery.getPlateByTrack` | query | protected | plate-gallery | | `plateGallery.getPlateMedia` | query | protected | plate-gallery | | `plateGallery.searchPlates` | query | protected | plate-gallery | | `plateGallery.suggestPlateClusters` | query | protected | plate-gallery | | `plateGallery.correctPlateText` | mutation | admin | plate-gallery | | `plateGallery.deletePlate` | mutation | admin | plate-gallery | | `plateGallery.listVehicles` | query | protected | plate-gallery | | `plateGallery.createVehicle` | mutation | admin | plate-gallery | | `plateGallery.renameVehicle` | mutation | admin | plate-gallery | | `plateGallery.deleteVehicle` | mutation | admin | plate-gallery | | `plateGallery.listVehicleSamples` | query | protected | plate-gallery | | `plateGallery.removeVehicleSample` | mutation | admin | plate-gallery | | `plateGallery.moveVehicleSample` | mutation | admin | plate-gallery | | `plateGallery.assignPlate` | mutation | admin | plate-gallery | | `plateGallery.unassignPlate` | mutation | admin | plate-gallery | | `plateGallery.assignPlates` | mutation | admin | plate-gallery | | `plateGallery.unassignPlates` | mutation | admin | plate-gallery | | `platformProbe.getCapabilities` | query | protected | platform-probe | | `platformProbe.getHardware` | query | protected | platform-probe | | `platformProbe.resolveInferenceConfig` | query | protected | platform-probe | | `platformProbe.resolveHwAccel` | query | protected | platform-probe | | `platformProbe.rescanAccelerators` | mutation | admin | platform-probe | | `powerMeter.getStatus` | query | protected | power-meter (auto) | | `powerSource.getStatus` | query | protected | power-source | | `powerSource.powerOn` | mutation | protected | power-source | | `powerSource.powerOff` | mutation | protected | power-source | | `powerSource.forceRestart` | mutation | protected | power-source | | `presence.getStatus` | query | protected | presence (auto) | | `pressureSensor.getStatus` | query | protected | pressure-sensor (auto) | | `privacyMask.getStatus` | query | protected | privacy-mask (auto) | | `privacyMask.getOptions` | query | protected | privacy-mask | | `privacyMask.setMask` | mutation | admin | privacy-mask | | `privacyMask.setAudioEnabled` | mutation | admin | privacy-mask | | `ptz.getStatus` | query | protected | ptz (auto) | | `ptz.move` | mutation | protected | ptz | | `ptz.continuousMove` | mutation | protected | ptz | | `ptz.goHome` | mutation | protected | ptz | | `ptz.getPresets` | query | protected | ptz | | `ptz.goToPreset` | mutation | protected | ptz | | `ptz.savePreset` | mutation | admin | ptz | | `ptz.deletePreset` | mutation | admin | ptz | | `ptz.getOptions` | query | protected | ptz | | `ptz.stop` | mutation | protected | ptz | | `ptz.getHomePreset` | query | protected | ptz | | `ptz.setHomePreset` | mutation | admin | ptz | | `ptz.captureHomeHere` | mutation | admin | ptz | | `ptz.getHomeReturn` | query | protected | ptz | | `ptz.setHomeReturn` | mutation | admin | ptz | | `ptz.getPosition` | query | protected | ptz | | `ptz.setAutofocus` | mutation | protected | ptz | | `ptzAutotrack.getStatus` | query | protected | ptz-autotrack | | `ptzAutotrack.setEnabled` | mutation | protected | ptz-autotrack | | `ptzAutotrack.getSettings` | query | protected | ptz-autotrack | | `ptzAutotrack.setSettings` | mutation | protected | ptz-autotrack | | `pumpCycle.getStatus` | query | protected | pump-cycle (auto) | | `pumpCycle.setEnabled` | mutation | protected | pump-cycle | | `pumpCycle.setOnMinutes` | mutation | protected | pump-cycle | | `pumpCycle.setOffMinutes` | mutation | protected | pump-cycle | | `reboot.reboot` | mutation | admin | reboot | | `recordEntries.listEntryKinds` | query | admin | record-entries | | `recordEntries.listEntries` | query | admin | record-entries | | `recordEntries.putEntry` | mutation | admin | record-entries | | `recordEntries.deleteEntry` | mutation | admin | record-entries | | `recording.listSources` | query | protected | recording | | `recording.getAvailability` | query | protected | recording | | `recording.getDaysWithRecordings` | query | protected | recording | | `recording.getPlayback` | query | protected | recording | | `recording.getPlaybackOptions` | query | protected | recording | | `recordingArchive.getStatus` | query | protected | recording-archive (auto) | | `recordingArchive.getDeviceSettingsContribution` | query | protected | recording-archive (auto) | | `recordingArchive.getDeviceLiveContribution` | query | protected | recording-archive (auto) | | `recordingArchive.applyDeviceSettingsPatch` | mutation | admin | recording-archive (auto) | | `recordingArchive.getAvailabilityBatch` | query | protected | recording-archive | | `recordingArchive.getDaysWithRecordingsBatch` | query | protected | recording-archive | | `recordingArchive.getStorageUsage` | query | admin | recording-archive | | `recordingArchive.getDeviceConfig` | query | protected | recording-archive | | `recordingArchive.locateSegment` | query | admin | recording-archive | | `recordingArchive.readSegmentBytes` | query | admin | recording-archive | | `recordingArchive.readGopBytes` | query | admin | recording-archive | | `recordingArchive.readWindowBytes` | query | admin | recording-archive | | `recordingArchive.setDeviceConfig` | mutation | admin | recording-archive | | `recordingArchive.rescanStorage` | mutation | admin | recording-archive | | `recordingArchive.pruneFootage` | mutation | admin | recording-archive | | `recordingArchive.deleteFootprint` | mutation | admin | recording-archive | | `recordingArchive.listOpsLog` | query | admin | recording-archive | | `recordingArchive.renderGif` | mutation | admin | recording-archive | | `recordingArchive.renderClip` | mutation | admin | recording-archive | | `recordingArchive.pauseForStorageMigration` | mutation | admin | recording-archive | | `recordingArchive.resumeForStorageMigration` | mutation | admin | recording-archive | | `recordingArchive.refreshStorageLocationsForMigration` | mutation | admin | recording-archive | | `recordingArchive.startStorageMigrationMove` | mutation | admin | recording-archive | | `recordingArchive.getStorageMigrationMoveStatus` | query | admin | recording-archive | | `recordingArchive.cancelStorageMigrationMove` | mutation | admin | recording-archive | | `recordingArchive.relocateFootage` | mutation | admin | recording-archive | | `recordingArchive.listRelocateJobs` | query | admin | recording-archive | | `recordingArchive.getRelocateResidue` | query | admin | recording-archive | | `recordingArchive.reconcileLedgerAgainstDisk` | mutation | admin | recording-archive | | `recordingArchive.cancelRelocateJob` | mutation | admin | recording-archive | | `recordingArchive.planStorageRebalance` | query | admin | recording-archive | | `recordingArchive.startStorageRebalance` | mutation | admin | recording-archive | | `recordingArchive.getPlacement` | query | admin | recording-archive | | `recordingArchive.setDevicePlacement` | mutation | admin | recording-archive | | `recordingExport.createExport` | mutation | protected | recording-export | | `recordingExport.listExports` | query | protected | recording-export | | `recordingExport.getExport` | query | protected | recording-export | | `recordingExport.cancelExport` | mutation | protected | recording-export | | `recordingExport.deleteExport` | mutation | protected | recording-export | | `recordingExport.getDownloadUrl` | query | protected | recording-export | | `recordingExport.readExportBytes` | query | protected | recording-export | | `recordingOnboard.getStatus` | query | protected | recording-onboard (auto) | | `recordingOnboard.getOptions` | query | protected | recording-onboard | | `recordingOnboard.setSettings` | mutation | admin | recording-onboard | | `recordingSignal.getStatus` | query | protected | recording-signal | | `records.declareKinds` | mutation | admin | records | | `records.get` | query | admin | records | | `records.getMany` | query | admin | records | | `records.secretRefs` | query | admin | records | | `records.put` | mutation | admin | records | | `records.putMany` | mutation | admin | records | | `records.patch` | mutation | admin | records | | `records.delete` | mutation | admin | records | | `records.deleteMany` | mutation | admin | records | | `records.query` | query | admin | records | | `records.count` | query | admin | records | | `records.histogram` | query | admin | records | | `records.aggregate` | query | admin | records | | `records.deleteWhere` | mutation | admin | records | | `records.transact` | mutation | admin | records | | `records.deleteDevice` | mutation | admin | records | | `records.allocateId` | mutation | admin | records | | `remote.getConfig` | query | admin | remote | | `remote.setConfig` | mutation | admin | remote | | `remote.listCommands` | query | protected | remote | | `remote.sendCommand` | mutation | protected | remote | | `remote.getAssumedStatus` | query | protected | remote | | `remote.sendMediaCommand` | mutation | protected | remote | | `remoteLayoutComponents.listComponents` | query | protected | remote-layout-components | | `runningState.getStatus` | query | protected | running-state (auto) | | `sceneMonitor.getStatus` | query | protected | scene-monitor (auto) | | `sceneMonitor.listScenes` | query | protected | scene-monitor | | `sceneMonitor.listScenesBatch` | query | protected | scene-monitor | | `sceneMonitor.createScene` | mutation | admin | scene-monitor | | `sceneMonitor.updateScene` | mutation | admin | scene-monitor | | `sceneMonitor.deleteScene` | mutation | admin | scene-monitor | | `sceneMonitor.captureReference` | mutation | admin | scene-monitor | | `sceneMonitor.deleteReference` | mutation | admin | scene-monitor | | `sceneMonitor.recheckNow` | mutation | admin | scene-monitor | | `sceneMonitor.resetScene` | mutation | admin | scene-monitor | | `schedulers.list` | query | admin | schedulers | | `schedulers.get` | query | admin | schedulers | | `schedulers.create` | mutation | admin | schedulers | | `schedulers.update` | mutation | admin | schedulers | | `schedulers.delete` | mutation | admin | schedulers | | `schedulers.setEnabled` | mutation | admin | schedulers | | `schedulers.preview` | query | admin | schedulers | | `schedulers.conflicts` | query | admin | schedulers | | `schedulers.getStatus` | query | admin | schedulers | | `schedulers.getTraces` | query | admin | schedulers | | `scriptRunner.getStatus` | query | protected | script-runner (auto) | | `scriptRunner.run` | mutation | admin | script-runner | | `scriptRunner.stop` | mutation | admin | script-runner | | `serverManagement.getServerPackageStatus` | query | admin | server-management | | `serverManagement.checkServerUpdate` | mutation | admin | server-management | | `serverManagement.applyServerUpdate` | mutation | admin | server-management | | `serverManagement.installDesktopUpdate` | mutation | admin | server-management | | `serverManagement.rollbackServerUpdate` | mutation | admin | server-management | | `serverManagement.restartServer` | mutation | admin | server-management | | `serverManagement.getLaunchOverrides` | query | admin | server-management | | `serverManagement.setLaunchOverrides` | mutation | admin | server-management | | `settingsStore.get` | query | admin | settings-store | | `settingsStore.set` | mutation | admin | settings-store | | `settingsStore.query` | query | admin | settings-store | | `settingsStore.upsert` | mutation | admin | settings-store | | `settingsStore.upsertMany` | mutation | admin | settings-store | | `settingsStore.insert` | mutation | admin | settings-store | | `settingsStore.insertMany` | mutation | admin | settings-store | | `settingsStore.transact` | mutation | admin | settings-store | | `settingsStore.update` | mutation | admin | settings-store | | `settingsStore.delete` | mutation | admin | settings-store | | `settingsStore.deleteWhere` | mutation | admin | settings-store | | `settingsStore.updateWhere` | mutation | admin | settings-store | | `settingsStore.count` | query | admin | settings-store | | `settingsStore.aggregate` | query | admin | settings-store | | `settingsStore.histogram` | query | admin | settings-store | | `settingsStore.isEmpty` | query | admin | settings-store | | `settingsStore.declareCollection` | mutation | admin | settings-store | | `smoke.getStatus` | query | protected | smoke (auto) | | `smtpProvider.sendEmail` | mutation | admin | smtp-provider | | `smtpProvider.getStatus` | query | admin | smtp-provider | | `snapshot.getStatus` | query | protected | snapshot (auto) | | `snapshot.getDeviceSettingsContribution` | query | protected | snapshot (auto) | | `snapshot.getDeviceLiveContribution` | query | protected | snapshot (auto) | | `snapshot.applyDeviceSettingsPatch` | mutation | admin | snapshot (auto) | | `snapshot.getSnapshot` | query | protected | snapshot | | `snapshot.invalidateCache` | mutation | admin | snapshot | | `snapshot.getSnapshotOverview` | query | protected | snapshot | | `snapshot.getDebugState` | query | protected | snapshot | | `snapshot.getSnapshotLinks` | query | protected | snapshot | | `ssoBridge.signBridgeToken` | query | admin | sso-bridge | | `ssoBridge.verifyBridgeToken` | query | admin | sso-bridge | | `storage.resolve` | query | admin | storage | | `storage.write` | mutation | admin | storage | | `storage.read` | query | admin | storage | | `storage.exists` | query | admin | storage | | `storage.list` | query | admin | storage | | `storage.delete` | mutation | admin | storage | | `storage.getAvailableSpace` | query | protected | storage | | `storage.beginUpload` | mutation | admin | storage | | `storage.writeChunk` | mutation | admin | storage | | `storage.finalizeUpload` | mutation | admin | storage | | `storage.abortUpload` | mutation | admin | storage | | `storage.beginDownload` | mutation | admin | storage | | `storage.readChunk` | query | admin | storage | | `storage.endDownload` | mutation | admin | storage | | `storage.listLocations` | query | protected | storage | | `storage.listLocationDeclarations` | query | protected | storage | | `storage.listDrainProgress` | query | protected | storage | | `storageAdmin.listTables` | query | admin | storage-admin | | `storageAdmin.listKinds` | query | admin | storage-admin | | `storageAdmin.readRecords` | query | admin | storage-admin | | `storageAdmin.staleDataReport` | query | admin | storage-admin | | `storageAdmin.scanStaleData` | mutation | admin | storage-admin | | `storageAdmin.dropOrphanedKind` | mutation | admin | storage-admin | | `storageAdmin.unsetStaleSettingsKey` | mutation | admin | storage-admin | | `storageEvictable.getEvictableUsage` | query | admin | storage-evictable | | `storageEvictable.evict` | mutation | admin | storage-evictable | | `storageMigration.plan` | query | admin | storage-migration | | `storageMigration.start` | mutation | admin | storage-migration | | `storageMigration.status` | query | admin | storage-migration | | `storageMigration.cancel` | mutation | admin | storage-migration | | `storageMigration.movers` | query | admin | storage-migration | | `storageMigration.moverClearance` | query | admin | storage-migration | | `storageMigration.residue` | query | admin | storage-migration | | `storageMigration.drain` | mutation | admin | storage-migration | | `storageMigration.cleanupStart` | mutation | admin | storage-migration | | `storageMigration.cleanupStatus` | query | admin | storage-migration | | `storageMigration.cleanupCancel` | mutation | admin | storage-migration | | `storageMigration.history` | query | admin | storage-migration | | `storageOccupancy.getOccupancy` | query | admin | storage-occupancy | | `storageProvider.getProviderInfo` | query | admin | storage-provider | | `storageProvider.testLocation` | query | admin | storage-provider | | `storageProvider.resolve` | query | admin | storage-provider | | `storageProvider.write` | mutation | admin | storage-provider | | `storageProvider.read` | query | admin | storage-provider | | `storageProvider.exists` | query | admin | storage-provider | | `storageProvider.list` | query | admin | storage-provider | | `storageProvider.delete` | mutation | admin | storage-provider | | `storageProvider.getAvailableSpace` | query | admin | storage-provider | | `storageProvider.beginUpload` | mutation | admin | storage-provider | | `storageProvider.writeChunk` | mutation | admin | storage-provider | | `storageProvider.finalizeUpload` | mutation | admin | storage-provider | | `storageProvider.abortUpload` | mutation | admin | storage-provider | | `storageProvider.beginDownload` | mutation | admin | storage-provider | | `storageProvider.readChunk` | query | admin | storage-provider | | `storageProvider.endDownload` | mutation | admin | storage-provider | | `streamBroker.getDeviceSettingsContribution` | query | protected | stream-broker (auto) | | `streamBroker.getDeviceLiveContribution` | query | protected | stream-broker (auto) | | `streamBroker.applyDeviceSettingsPatch` | mutation | admin | stream-broker (auto) | | `streamBroker.reportStreamSignal` | mutation | protected | stream-broker | | `streamBroker.publishCameraStream` | mutation | admin | stream-broker | | `streamBroker.retractCameraStream` | mutation | admin | stream-broker | | `streamBroker.assignProfile` | mutation | admin | stream-broker | | `streamBroker.unassignProfile` | mutation | admin | stream-broker | | `streamBroker.forgetDeviceHardware` | mutation | admin | stream-broker | | `streamBroker.renderPreBufferClip` | mutation | admin | stream-broker | | `streamBroker.produceEventMedia` | mutation | admin | stream-broker | | `streamBroker.fetchEventMedia` | mutation | admin | stream-broker | | `streamBroker.listAllCameraStreams` | query | protected | stream-broker | | `streamBroker.listAllProfileSlots` | query | protected | stream-broker | | `streamBroker.getBrokerStats` | query | protected | stream-broker | | `streamBroker.probeStream` | mutation | admin | stream-broker | | `streamBroker.listClients` | query | protected | stream-broker | | `streamBroker.getLiveViewerCounts` | query | protected | stream-broker | | `streamBroker.killClient` | mutation | admin | stream-broker | | `streamBroker.restartProfile` | mutation | admin | stream-broker | | `streamBroker.getStreamUrl` | query | protected | stream-broker | | `streamBroker.getStreamWithCodec` | mutation | admin | stream-broker | | `streamBroker.releaseStreamWithCodec` | mutation | admin | stream-broker | | `streamBroker.acquireEgressTranscode` | mutation | admin | stream-broker | | `streamBroker.releaseEgressTranscode` | mutation | admin | stream-broker | | `streamBroker.subscribeAudioChunks` | mutation | protected | stream-broker | | `streamBroker.pullAudioChunks` | query | protected | stream-broker | | `streamBroker.unsubscribeAudioChunks` | mutation | protected | stream-broker | | `streamBroker.setPreBufferDuration` | mutation | admin | stream-broker | | `streamBroker.getPreBufferInfo` | query | protected | stream-broker | | `streamBroker.getRtspPort` | query | protected | stream-broker | | `streamBroker.getAllRtspEntries` | query | protected | stream-broker | | `streamBroker.getRtspEntry` | query | protected | stream-broker | | `streamBroker.regenerateRtspToken` | mutation | admin | stream-broker | | `streamBroker.setRtspEnabled` | mutation | admin | stream-broker | | `streamBroker.isRtspEnabled` | query | protected | stream-broker | | `streamBroker.getDeviceAudioMute` | query | protected | stream-broker | | `streamBroker.setDeviceAudioMute` | mutation | admin | stream-broker | | `streamCatalog.getCatalog` | query | protected | stream-catalog | | `streamParams.getStatus` | query | protected | stream-params (auto) | | `streamParams.getOptions` | query | protected | stream-params | | `streamParams.setProfile` | mutation | admin | stream-params | | `streamParams.getConfigSchema` | query | protected | stream-params | | `streamSignals.listSignals` | query | protected | stream-signals | | `switch.getStatus` | query | protected | switch (auto) | | `switch.setState` | mutation | protected | switch | | `switch.toggle` | mutation | protected | switch | | `system.info` | query | protected | system | | `system.health` | query | protected | system | | `system.featureFlags` | query | protected | system | | `system.networkAddresses` | query | protected | system | | `system.getRetentionConfig` | query | admin | system | | `system.setRetentionConfig` | mutation | admin | system | | `system.forceRetentionCleanup` | mutation | admin | system | | `system.getSiteLocation` | query | protected | system | | `system.setSiteLocation` | mutation | admin | system | | `system.detectSiteLocation` | mutation | admin | system | | `system.getRequestCensus` | query | admin | system | | `system.getLoadContributions` | query | admin | system | | `system.getFailureContributions` | query | admin | system | | `system.getLoggingSettings` | query | admin | system | | `system.setLoggingSettings` | mutation | admin | system | | `system.debugWatch` | mutation | admin | system | | `tags.list` | query | protected | tags | | `tags.setStyle` | mutation | admin | tags | | `tags.rename` | mutation | admin | tags | | `tags.remove` | mutation | admin | tags | | `tamper.getStatus` | query | protected | tamper (auto) | | `temperatureSensor.getStatus` | query | protected | temperature-sensor (auto) | | `template.list` | query | protected | template | | `template.get` | query | protected | template | | `template.create` | mutation | admin | template | | `template.update` | mutation | admin | template | | `template.delete` | mutation | admin | template | | `terminalSession.listProfiles` | query | admin | terminal-session | | `terminalSession.listLegacyCameras` | query | admin | terminal-session | | `terminalSession.adoptLegacyMonitor` | mutation | admin | terminal-session | | `terminalSession.listSessions` | query | admin | terminal-session | | `terminalSession.serverShellStatus` | query | admin | terminal-session | | `terminalSession.openSession` | mutation | admin | terminal-session | | `terminalSession.resize` | mutation | admin | terminal-session | | `terminalSession.pullOutput` | mutation | admin | terminal-session | | `terminalSession.writeInput` | mutation | admin | terminal-session | | `terminalSession.close` | mutation | admin | terminal-session | | `timedRun.getStatus` | query | protected | timed-run (auto) | | `timedRun.getOptions` | query | protected | timed-run | | `timedRun.setSettings` | mutation | admin | timed-run | | `timedRun.runFor` | mutation | protected | timed-run | | `timedRun.cancel` | mutation | protected | timed-run | | `toast.onToast` | subscription | protected | toast | | `training.listBaseModels` | query | admin | training | | `training.planJob` | query | admin | training | | `training.startJob` | mutation | admin | training | | `training.startJobBatch` | mutation | admin | training | | `training.listJobs` | query | admin | training | | `training.getJob` | query | admin | training | | `training.cancelJob` | mutation | admin | training | | `training.getJobResult` | query | admin | training | | `training.listCanaryTargets` | query | admin | training | | `training.registerResult` | mutation | admin | training | | `training.canaryResult` | mutation | admin | training | | `training.rollbackCanary` | mutation | admin | training | | `training.discardResult` | mutation | admin | training | | `trainingProvider.describe` | query | admin | training-provider | | `trainingProvider.describeTypes` | query | admin | training-provider | | `trainingProvider.listEntries` | query | admin | training-provider | | `trainingProvider.estimateJob` | query | admin | training-provider | | `trainingProvider.uploadDataset` | mutation | admin | training-provider | | `trainingProvider.submitJob` | mutation | admin | training-provider | | `trainingProvider.getJob` | query | admin | training-provider | | `trainingProvider.listJobEvents` | query | admin | training-provider | | `trainingProvider.cancelJob` | mutation | admin | training-provider | | `trainingProvider.readResult` | mutation | admin | training-provider | | `trainingProvider.offerArtifact` | mutation | admin | training-provider | | `trainingProvider.cleanupJob` | mutation | admin | training-provider | | `trainingProvider.listJobs` | query | admin | training-provider | | `turnProvider.getTurnServers` | query | protected | turn-provider | | `update.getStatus` | query | protected | update (auto) | | `update.installUpdate` | mutation | admin | update | | `userManagement.listUsers` | query | admin | user-management | | `userManagement.getAdminBootstrapStatus` | query | admin | user-management | | `userManagement.createUser` | mutation | admin | user-management | | `userManagement.updateUser` | mutation | admin | user-management | | `userManagement.deleteUser` | mutation | admin | user-management | | `userManagement.resetPassword` | mutation | admin | user-management | | `userManagement.setUserScopes` | mutation | admin | user-management | | `userManagement.validateCredentials` | mutation | protected | user-management | | `userManagement.setupTotp` | mutation | admin | user-management | | `userManagement.confirmTotp` | mutation | admin | user-management | | `userManagement.disableTotp` | mutation | admin | user-management | | `userManagement.getTotpStatus` | query | admin | user-management | | `userManagement.migrateRawSecrets` | mutation | admin | user-management | | `userManagement.verifyTotp` | mutation | protected | user-management | | `userManagement.oauthIssueCode` | mutation | protected | user-management | | `userManagement.oauthExchangeCode` | mutation | protected | user-management | | `userManagement.oauthRefresh` | mutation | protected | user-management | | `userManagement.oauthVerifyAccessToken` | query | protected | user-management | | `userManagement.listExternalIdentities` | query | admin | user-management | | `userManagement.findUserByExternalIdentity` | query | admin | user-management | | `userManagement.unlinkExternalIdentity` | mutation | admin | user-management | | `userManagement.listOauthSessions` | query | admin | user-management | | `userManagement.revokeOauthSession` | mutation | admin | user-management | | `userPasskeys.beginRegistration` | mutation | admin | user-passkeys | | `userPasskeys.finishRegistration` | mutation | admin | user-passkeys | | `userPasskeys.beginAuthentication` | mutation | admin | user-passkeys | | `userPasskeys.finishAuthentication` | mutation | admin | user-passkeys | | `userPasskeys.beginDiscoverableAuthentication` | mutation | admin | user-passkeys | | `userPasskeys.finishDiscoverableAuthentication` | mutation | admin | user-passkeys | | `userPasskeys.listPasskeys` | query | admin | user-passkeys | | `userPasskeys.removePasskey` | mutation | admin | user-passkeys | | `userPasskeys.getSecondFactorPreference` | query | admin | user-passkeys | | `userPasskeys.setSecondFactorPreference` | mutation | admin | user-passkeys | | `vacuumControl.getStatus` | query | protected | vacuum-control (auto) | | `vacuumControl.start` | mutation | protected | vacuum-control | | `vacuumControl.pause` | mutation | protected | vacuum-control | | `vacuumControl.stop` | mutation | protected | vacuum-control | | `vacuumControl.returnToBase` | mutation | protected | vacuum-control | | `vacuumControl.locate` | mutation | protected | vacuum-control | | `vacuumControl.setFanSpeed` | mutation | protected | vacuum-control | | `valve.getStatus` | query | protected | valve (auto) | | `valve.open` | mutation | protected | valve | | `valve.close` | mutation | protected | valve | | `valve.stop` | mutation | protected | valve | | `valve.setPosition` | mutation | protected | valve | | `vectorStore.declareIndex` | mutation | admin | vector-store | | `vectorStore.upsert` | mutation | admin | vector-store | | `vectorStore.query` | query | admin | vector-store | | `vectorStore.getByIds` | query | admin | vector-store | | `vectorStore.fetchByIds` | query | admin | vector-store | | `vectorStore.scan` | query | admin | vector-store | | `vectorStore.deleteByIds` | mutation | admin | vector-store | | `vectorStore.deleteByFilter` | mutation | admin | vector-store | | `vectorStore.stats` | query | admin | vector-store | | `vibration.getStatus` | query | protected | vibration (auto) | | `videoclips.listClips` | query | protected | videoclips | | `videoclips.listSources` | query | protected | videoclips | | `videoclips.getClipPlayback` | query | protected | videoclips | | `videoclips.readClipBytes` | query | protected | videoclips | | `videoclips.offerClipBytes` | query | protected | videoclips | | `videoclips.dialClipStream` | query | protected | videoclips | | `videoclips.getPlaybackOptions` | query | protected | videoclips | | `viewerUi.getStaticDir` | query | admin | viewer-ui | | `viewerUi.getVersion` | query | admin | viewer-ui | | `waterHeater.getStatus` | query | protected | water-heater (auto) | | `waterHeater.setOperationMode` | mutation | protected | water-heater | | `waterHeater.setAway` | mutation | protected | water-heater | | `waterHeater.setTargetTemp` | mutation | protected | water-heater | | `weather.getStatus` | query | protected | weather (auto) | | `weatherStation.getStatus` | query | protected | weather-station (auto) | | `webrtcSession.listStreams` | query | protected | webrtc-session | | `webrtcSession.createSession` | mutation | protected | webrtc-session | | `webrtcSession.handleOffer` | mutation | protected | webrtc-session | | `webrtcSession.handleAnswer` | mutation | protected | webrtc-session | | `webrtcSession.addIceCandidate` | mutation | protected | webrtc-session | | `webrtcSession.getIceCandidates` | query | protected | webrtc-session | | `webrtcSession.closeSession` | mutation | protected | webrtc-session | | `webrtcSession.hasAdaptiveBitrate` | query | protected | webrtc-session | | `webrtcSession.getSessionState` | query | protected | webrtc-session | | `webrtcSession.applyDownlinkProbe` | mutation | protected | webrtc-session | | `webrtcSession.getSessionDebug` | query | protected | webrtc-session | | `zoneAnalytics.getCurrentSnapshot` | query | protected | zone-analytics | | `zoneAnalytics.getCurrentSnapshotBatch` | query | protected | zone-analytics | | `zoneAnalytics.getZoneHistory` | query | protected | zone-analytics | | `zoneAnalytics.getCameraHistory` | query | protected | zone-analytics | | `zoneAnalytics.getUnzonedHistory` | query | protected | zone-analytics | | `zoneRules.listRules` | query | protected | zone-rules | | `zoneRules.setRules` | mutation | admin | zone-rules | | `zones.listZones` | query | protected | zones | | `zones.addZone` | mutation | admin | zones | | `zones.removeZone` | mutation | admin | zones | | `zones.updateZone` | mutation | admin | zones | --- ## Capabilities ### `accessories` → `accessories.*` - **Source:** `packages/types/src/capabilities/accessories.cap.ts:39` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `camera, switch, light, sensor, climate, cover, lock, fan, media-player, alarm-panel, generic` - **Archetypes:** status(command-driven) - **Provider interface:** `IAccessoriesProvider` - **Events:** `onAccessoriesChanged` → `{ deviceId: number; childDeviceIds: number[]; hiddenChildIds: number[] }` · `onChildVisibilityChanged` → `{ deviceId: number; childDeviceId: number; hidden: boolean }` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `accessories.getStatus` | query | protected | `{ deviceId: number }` | `AccessoriesStatusSchema` | | setChildHidden | `accessories.setChildHidden` | mutation | admin | `{ deviceId: number; childDeviceId: number; hidden: boolean }` | `void` | ### `action-source` → `actionSource.*` - **Source:** `packages/types/src/capabilities/action-source.cap.ts:23` - **Meta:** scope: `system` · mode: `collection` · mount: `collection` - **Archetypes:** — - **Provider interface:** `IActionSourceProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listActions | `actionSource.listActions` | query | admin | `{}` | `({ id: string; name: string; addonId: string; source: "internal" \| "addon"; readOnly: boolean; steps?: ({ kind: "wait"; seconds: number; if?: { kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number }; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: ({ path: string; equals: string \| number \| boolean })[] } \| { kind: "schedule"; id?: string; at?: { kind: "clock"; hh: number; mm: number } \| { kind: "sun"; event: "sunrise" \| "sunset" \| "dawn" \| "dusk"; offsetMin: number } \| { kind: "date"; local: string }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| { value: number; unit: string }; unit?: string; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "stationary-present"; deviceId: number; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "time-is"; between?: { from: {…} \| {…} \| {…}; to: {…} \| {…} \| {…} }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; else?: ({ kind: "wait"; seconds: number } \| { kind: "command"; target: { kind: "devices"; ids: number[] } \| { kind: "domain"; deviceType?: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; roomId?: string } \| { kind: "var"; name: string }; actionId: string; args?: Record; argUnits?: Record })[] } \| { kind: "command"; target: { kind: "devices"; ids: number[] } \| { kind: "domain"; deviceType?: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; roomId?: string } \| { kind: "var"; name: string }; actionId: string; args?: Record; argUnits?: Record; if?: { kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number }; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: ({ path: string; equals: string \| number \| boolean })[] } \| { kind: "schedule"; id?: string; at?: { kind: "clock"; hh: number; mm: number } \| { kind: "sun"; event: "sunrise" \| "sunset" \| "dawn" \| "dusk"; offsetMin: number } \| { kind: "date"; local: string }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| { value: number; unit: string }; unit?: string; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "stationary-present"; deviceId: number; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "time-is"; between?: { from: {…} \| {…} \| {…}; to: {…} \| {…} \| {…} }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; else?: ({ kind: "wait"; seconds: number } \| { kind: "command"; target: { kind: "devices"; ids: number[] } \| { kind: "domain"; deviceType?: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; roomId?: string } \| { kind: "var"; name: string }; actionId: string; args?: Record; argUnits?: Record })[] })[]; variables?: ({ name: string; label?: string; type: "string" \| "number" \| "boolean" \| "select"; required?: boolean; default?: string \| number \| boolean; options?: string[] })[]; minDelaySec?: number; tags?: string[]; status: { isRunning: boolean; lastRunAt: number \| null; lastError: string \| null } })[]` | | runAction | `actionSource.runAction` | mutation | admin | `{ actionId: string; variables?: Record }` | `void` | | stopAction | `actionSource.stopAction` | mutation | admin | `{ actionId: string }` | `void` | ### `actions` → `actions.*` - **Source:** `packages/types/src/capabilities/actions.cap.ts:51` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `IActionsProvider` - **Events:** `onRunChanged` → `{ actionId: string; runId: string; isRunning: boolean; outcome?: "ran" \| "skipped-trigger" \| "skipped-conditions" \| "skipped-cooldown" \| "skipped-overlap" \| "failed" \| "aborted"; lastRunAt: number \| null; lastError: string \| null }` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | list | `actions.list` | query | admin | `{}` | `({ id: string; name: string; addonId: string; source: "internal" \| "addon"; readOnly: boolean; steps?: ({ kind: "wait"; seconds: number; if?: { kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number }; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: ({ path: string; equals: string \| number \| boolean })[] } \| { kind: "schedule"; id?: string; at?: { kind: "clock"; hh: number; mm: number } \| { kind: "sun"; event: "sunrise" \| "sunset" \| "dawn" \| "dusk"; offsetMin: number } \| { kind: "date"; local: string }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| { value: number; unit: string }; unit?: string; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "stationary-present"; deviceId: number; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "time-is"; between?: { from: {…} \| {…} \| {…}; to: {…} \| {…} \| {…} }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; else?: ({ kind: "wait"; seconds: number } \| { kind: "command"; target: { kind: "devices"; ids: number[] } \| { kind: "domain"; deviceType?: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; roomId?: string } \| { kind: "var"; name: string }; actionId: string; args?: Record; argUnits?: Record })[] } \| { kind: "command"; target: { kind: "devices"; ids: number[] } \| { kind: "domain"; deviceType?: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; roomId?: string } \| { kind: "var"; name: string }; actionId: string; args?: Record; argUnits?: Record; if?: { kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number }; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: ({ path: string; equals: string \| number \| boolean })[] } \| { kind: "schedule"; id?: string; at?: { kind: "clock"; hh: number; mm: number } \| { kind: "sun"; event: "sunrise" \| "sunset" \| "dawn" \| "dusk"; offsetMin: number } \| { kind: "date"; local: string }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| { value: number; unit: string }; unit?: string; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "stationary-present"; deviceId: number; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "time-is"; between?: { from: {…} \| {…} \| {…}; to: {…} \| {…} \| {…} }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; else?: ({ kind: "wait"; seconds: number } \| { kind: "command"; target: { kind: "devices"; ids: number[] } \| { kind: "domain"; deviceType?: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; roomId?: string } \| { kind: "var"; name: string }; actionId: string; args?: Record; argUnits?: Record })[] })[]; variables?: ({ name: string; label?: string; type: "string" \| "number" \| "boolean" \| "select"; required?: boolean; default?: string \| number \| boolean; options?: string[] })[]; minDelaySec?: number; tags?: string[]; status: { isRunning: boolean; lastRunAt: number \| null; lastError: string \| null } })[]` | | get | `actions.get` | query | protected | `{ actionId: string; deviceId?: number }` | `{ action: { id: string; name: string; addonId: string; source: "internal" \| "addon"; readOnly: boolean; steps?: ({ kind: "wait"; seconds: number; if?: { kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; else?: ({ kind: "wait"; seconds: number } \| { kind: "command"; target: {…} \| {…} \| {…}; actionId: string; args?: Record; argUnits?: Record })[] } \| { kind: "command"; target: { kind: "devices"; ids: number[] } \| { kind: "domain"; deviceType?: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; roomId?: string } \| { kind: "var"; name: string }; actionId: string; args?: Record; argUnits?: Record; if?: { kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; else?: ({ kind: "wait"; seconds: number } \| { kind: "command"; target: {…} \| {…} \| {…}; actionId: string; args?: Record; argUnits?: Record })[] })[]; variables?: ({ name: string; label?: string; type: "string" \| "number" \| "boolean" \| "select"; required?: boolean; default?: string \| number \| boolean; options?: string[] })[]; minDelaySec?: number; tags?: string[]; status: { isRunning: boolean; lastRunAt: number \| null; lastError: string \| null } } \| null }` | | run | `actions.run` | mutation | protected | `{ actionId: string; variables?: Record; wait?: boolean; origin?: { blockId?: string }; deviceId?: number }` | `{ runId: string; outcome: "ran" \| "skipped-trigger" \| "skipped-conditions" \| "skipped-cooldown" \| "skipped-overlap" \| "failed" \| "aborted" \| "started" \| "timed-out"; message?: string }` | | stop | `actions.stop` | mutation | admin | `{ actionId: string }` | `void` | | getTraces | `actions.getTraces` | query | admin | `{ actionId: string }` | `{ traces: ({ runId: string; startedAt: number; endedAt: number; trigger: { kind: string; path?: string; outcome: "pass" \| "fail"; reason: string; vars: Record; hold?: { phase: "pending" \| "cancelled" \| "fired" \| "reseeded"; ms: number; mode: "held" \| "stable"; since?: number; deadline?: number } }; conditions: ({ path: string; kind: "all" \| "any" \| "not" \| "condition" \| "device-is" \| "expression" \| "stationary-present" \| "time-is" \| "triggered-by" \| "device-becomes" \| "device-event" \| "device-fired" \| "schedule" \| "interval" \| "manual" \| "detection" \| "stationary"; outcome: "pass" \| "fail" \| "not-evaluated"; reason: string; deviceId?: number; cap?: string; fieldPath?: string; operator?: string; expected?: string \| number \| boolean \| null \| (string \| number)[]; observed?: string \| number \| boolean \| null \| (string \| number)[] })[]; verdict?: { mode: { mode: "single" } \| { mode: "restart" } \| { mode: "queued"; max: number } \| { mode: "parallel"; max: number } \| { mode: "cooldown"; minutes: number }; decision: "run" \| "queued" \| "restart" \| "drop" \| "cooldown" \| "bypass"; reason: string }; steps: ({ path: string; kind: string; cap?: string; method?: string; actionId?: string; deviceId?: number; devices?: ({ deviceId: number; outcome: "ok" \| "error"; message?: string })[]; startedAt?: number; endedAt?: number; args?: Record; templates?: string[]; condition?: "true" \| "false" \| "unknown"; conditionReason?: string; outcome: "ok" \| "error" \| "not-run" \| "empty" \| "skipped" \| "failed-continued" \| "timed-out"; message?: string; else?: ({ path: string; kind: string; cap?: string; method?: string; actionId?: string; deviceId?: number; devices?: {…}[]; startedAt?: number; endedAt?: number; args?: Record; templates?: string[]; condition?: "true" \| "false" \| "unknown"; conditionReason?: string; outcome: "ok" \| "error" \| "not-run" \| "empty" \| "skipped" \| "failed-continued" \| "timed-out"; message?: string })[]; branch?: string; branchChecks?: ({ condition: "true" \| "false" \| "unknown"; conditionReason?: string })[]; iterations?: number; steps?: ({ path: string; kind: string; cap?: string; method?: string; actionId?: string; deviceId?: number; devices?: {…}[]; startedAt?: number; endedAt?: number; args?: Record; templates?: string[]; condition?: "true" \| "false" \| "unknown"; conditionReason?: string; outcome: "ok" \| "error" \| "not-run" \| "empty" \| "skipped" \| "failed-continued" \| "timed-out"; message?: string; branch?: string; branchChecks?: {…}[]; iterations?: number; steps?: {…}[] })[] })[]; outcome: "ran" \| "skipped-trigger" \| "skipped-conditions" \| "skipped-cooldown" \| "skipped-overlap" \| "failed" \| "aborted"; repeat: number; lastAt: number; scheduler?: "done" \| "missed" \| "inactive" \| "condition-false" \| "failed" \| "held" \| "gave-up" \| "overridden" \| "suspended-manual" })[] }` | | create | `actions.create` | mutation | admin | `{ action: { name: string; steps: ({ kind: "wait"; seconds: number; if?: { kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; else?: ({ kind: "wait"; seconds: number } \| { kind: "command"; target: {…} \| {…} \| {…}; actionId: string; args?: Record; argUnits?: Record })[] } \| { kind: "command"; target: { kind: "devices"; ids: number[] } \| { kind: "domain"; deviceType?: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; roomId?: string } \| { kind: "var"; name: string }; actionId: string; args?: Record; argUnits?: Record; if?: { kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; else?: ({ kind: "wait"; seconds: number } \| { kind: "command"; target: {…} \| {…} \| {…}; actionId: string; args?: Record; argUnits?: Record })[] })[]; variables?: ({ name: string; label?: string; type: "string" \| "number" \| "boolean" \| "select"; required?: boolean; default?: string \| number \| boolean; options?: string[] })[]; minDelaySec?: number; tags?: string[] } }` | `{ action: { id: string; name: string; addonId: string; source: "internal" \| "addon"; readOnly: boolean; steps?: ({ kind: "wait"; seconds: number; if?: { kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; else?: ({ kind: "wait"; seconds: number } \| { kind: "command"; target: {…} \| {…} \| {…}; actionId: string; args?: Record; argUnits?: Record })[] } \| { kind: "command"; target: { kind: "devices"; ids: number[] } \| { kind: "domain"; deviceType?: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; roomId?: string } \| { kind: "var"; name: string }; actionId: string; args?: Record; argUnits?: Record; if?: { kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; else?: ({ kind: "wait"; seconds: number } \| { kind: "command"; target: {…} \| {…} \| {…}; actionId: string; args?: Record; argUnits?: Record })[] })[]; variables?: ({ name: string; label?: string; type: "string" \| "number" \| "boolean" \| "select"; required?: boolean; default?: string \| number \| boolean; options?: string[] })[]; minDelaySec?: number; tags?: string[]; status: { isRunning: boolean; lastRunAt: number \| null; lastError: string \| null } }; warnings?: ({ path: string; deviceId?: number; field: string; value: number; assumedUnit: string; message: string })[] }` | | update | `actions.update` | mutation | admin | `{ actionId: string; action: { name?: string; steps?: ({ kind: "wait"; seconds: number; if?: { kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; else?: ({ kind: "wait"; seconds: number } \| { kind: "command"; target: {…} \| {…} \| {…}; actionId: string; args?: Record; argUnits?: Record })[] } \| { kind: "command"; target: { kind: "devices"; ids: number[] } \| { kind: "domain"; deviceType?: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; roomId?: string } \| { kind: "var"; name: string }; actionId: string; args?: Record; argUnits?: Record; if?: { kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; else?: ({ kind: "wait"; seconds: number } \| { kind: "command"; target: {…} \| {…} \| {…}; actionId: string; args?: Record; argUnits?: Record })[] })[]; variables?: ({ name: string; label?: string; type: "string" \| "number" \| "boolean" \| "select"; required?: boolean; default?: string \| number \| boolean; options?: string[] })[]; minDelaySec?: number; tags?: string[] } }` | `{ action: { id: string; name: string; addonId: string; source: "internal" \| "addon"; readOnly: boolean; steps?: ({ kind: "wait"; seconds: number; if?: { kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; else?: ({ kind: "wait"; seconds: number } \| { kind: "command"; target: {…} \| {…} \| {…}; actionId: string; args?: Record; argUnits?: Record })[] } \| { kind: "command"; target: { kind: "devices"; ids: number[] } \| { kind: "domain"; deviceType?: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; roomId?: string } \| { kind: "var"; name: string }; actionId: string; args?: Record; argUnits?: Record; if?: { kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; else?: ({ kind: "wait"; seconds: number } \| { kind: "command"; target: {…} \| {…} \| {…}; actionId: string; args?: Record; argUnits?: Record })[] })[]; variables?: ({ name: string; label?: string; type: "string" \| "number" \| "boolean" \| "select"; required?: boolean; default?: string \| number \| boolean; options?: string[] })[]; minDelaySec?: number; tags?: string[]; status: { isRunning: boolean; lastRunAt: number \| null; lastError: string \| null } }; warnings?: ({ path: string; deviceId?: number; field: string; value: number; assumedUnit: string; message: string })[] }` | | delete | `actions.delete` | mutation | admin | `{ actionId: string }` | `void` | | listForCamera | `actions.listForCamera` | query | protected | `{ deviceId: number }` | `({ id: string; name: string; addonId: string; source: "internal" \| "addon"; readOnly: boolean; steps?: ({ kind: "wait"; seconds: number; if?: { kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number }; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: ({ path: string; equals: string \| number \| boolean })[] } \| { kind: "schedule"; id?: string; at?: { kind: "clock"; hh: number; mm: number } \| { kind: "sun"; event: "sunrise" \| "sunset" \| "dawn" \| "dusk"; offsetMin: number } \| { kind: "date"; local: string }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| { value: number; unit: string }; unit?: string; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "stationary-present"; deviceId: number; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "time-is"; between?: { from: {…} \| {…} \| {…}; to: {…} \| {…} \| {…} }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; else?: ({ kind: "wait"; seconds: number } \| { kind: "command"; target: { kind: "devices"; ids: number[] } \| { kind: "domain"; deviceType?: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; roomId?: string } \| { kind: "var"; name: string }; actionId: string; args?: Record; argUnits?: Record })[] } \| { kind: "command"; target: { kind: "devices"; ids: number[] } \| { kind: "domain"; deviceType?: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; roomId?: string } \| { kind: "var"; name: string }; actionId: string; args?: Record; argUnits?: Record; if?: { kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number }; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: ({ path: string; equals: string \| number \| boolean })[] } \| { kind: "schedule"; id?: string; at?: { kind: "clock"; hh: number; mm: number } \| { kind: "sun"; event: "sunrise" \| "sunset" \| "dawn" \| "dusk"; offsetMin: number } \| { kind: "date"; local: string }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| { value: number; unit: string }; unit?: string; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "stationary-present"; deviceId: number; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "time-is"; between?: { from: {…} \| {…} \| {…}; to: {…} \| {…} \| {…} }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; else?: ({ kind: "wait"; seconds: number } \| { kind: "command"; target: { kind: "devices"; ids: number[] } \| { kind: "domain"; deviceType?: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; roomId?: string } \| { kind: "var"; name: string }; actionId: string; args?: Record; argUnits?: Record })[] })[]; variables?: ({ name: string; label?: string; type: "string" \| "number" \| "boolean" \| "select"; required?: boolean; default?: string \| number \| boolean; options?: string[] })[]; minDelaySec?: number; tags?: string[]; status: { isRunning: boolean; lastRunAt: number \| null; lastError: string \| null } })[]` | | getLinks | `actions.getLinks` | query | admin | `{ deviceId: number }` | `ActionLinksSchema` | | setLinks | `actions.setLinks` | mutation | admin | `ActionLinksSchema` | `ActionLinksSchema` | ### `addon-pages` → `addonPages.*` - **Source:** `packages/types/src/capabilities/addon-pages.cap.ts:40` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `IAddonPagesAggregatorProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listPages | `addonPages.listPages` | query | protected | `void` | `AddonPageInfoSchema[]` | ### `addon-pages-source` → `addonPagesSource.*` - **Source:** `packages/types/src/capabilities/addon-pages-source.cap.ts:51` - **Meta:** scope: `system` · mode: `collection` · mount: `collection` - **Archetypes:** internal - **Provider interface:** `IAddonPagesSourceProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listPages | `addonPagesSource.listPages` | query | admin | `void` | `AddonPageDeclarationSchema[]` | ### `addon-routes` → `addonRoutes.*` - **Source:** `packages/types/src/capabilities/addon-routes.cap.ts:56` - **Meta:** scope: `system` · mode: `collection` · mount: `skip` - **Archetypes:** internal - **Provider interface:** `IAddonRoutesProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getRoutes | `addonRoutes.getRoutes` | query | admin | `void` | `({ method: "GET" \| "POST" \| "PUT" \| "DELETE" \| "PATCH"; path: string; access?: "public" \| "authenticated" \| "admin"; description?: string; rateLimit?: "auth"; perInstance?: boolean })[]` | | invoke | `addonRoutes.invoke` | mutation | admin | `{ method: string; path: string; params: Record; query: Record; body: unknown; headers: Record; instanceId?: string; user?: { id: string; username: string; isAdmin: boolean }; scopedToken?: unknown }` | `{ status: number; headers: Record; redirectUrl: string \| null; body?: unknown; contentType?: string }` | ### `addon-settings` → `addonSettings.*` - **Source:** `packages/types/src/capabilities/addon-settings.cap.ts:87` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` · nodeIdMode: `data` - **Archetypes:** — - **Provider interface:** `IAddonSettingsProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getScopedSettings | `addonSettings.getScopedSettings` | query | protected | `{ addonId: string; cap: string; scope: "cluster" \| "device-defaults" \| "node"; nodeId?: string }` | `SettingsSchemaWithValuesSchema \| null` | | listScopedSettings | `addonSettings.listScopedSettings` | query | protected | `{ addonId: string; nodeId?: string }` | `({ cap: string; scope: "cluster" \| "device-defaults" \| "node"; sectionIds: string[] })[] \| null` | | updateScopedSettings | `addonSettings.updateScopedSettings` | mutation | admin | `{ addonId: string; cap: string; scope: "cluster" \| "device-defaults" \| "node"; nodeId?: string; patch: SettingsPatchSchema }` | `SettingsUpdateResultSchema` | | readScopedValues | `addonSettings.readScopedValues` | query | protected | `{ addonId: string; cap: string; scope: "cluster" \| "device-defaults" \| "node"; nodeId?: string }` | `Record \| null` | | getDeclaredSettingsKeys | `addonSettings.getDeclaredSettingsKeys` | query | admin | `{ addonId: string; nodeId?: string }` | `{ keys: string[] } \| null` | | unsetStoredSettingsKeys | `addonSettings.unsetStoredSettingsKeys` | mutation | admin | `{ addonId: string; nodeId?: string; keys: string[] }` | `{ removed: string[]; refused: ({ key: string; reason: string })[]; secretsCleared: number }` | | getDeviceSettings | `addonSettings.getDeviceSettings` | query | protected | `{ addonId: string; deviceId: number; nodeId?: string }` | `SettingsSchemaWithValuesSchema \| null` | | updateDeviceSettings | `addonSettings.updateDeviceSettings` | mutation | admin | `{ addonId: string; deviceId: number; nodeId?: string; patch: SettingsPatchSchema }` | `SettingsUpdateResultSchema` | ### `addon-widgets` → `addonWidgets.*` - **Source:** `packages/types/src/capabilities/addon-widgets.cap.ts:28` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `IAddonWidgetsAggregatorProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listWidgets | `addonWidgets.listWidgets` | query | protected | `void` | `EnrichedWidgetMetadataSchema[]` | ### `addon-widgets-source` → `addonWidgetsSource.*` - **Source:** `packages/types/src/capabilities/addon-widgets-source.cap.ts:142` - **Meta:** scope: `system` · mode: `collection` · mount: `collection` - **Archetypes:** internal - **Provider interface:** `IAddonWidgetsSourceProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listWidgets | `addonWidgetsSource.listWidgets` | query | admin | `void` | `WidgetMetadataSchema[]` | ### `addons` → `addons.*` - **Source:** `packages/types/src/capabilities/addons.cap.ts:366` - **Meta:** scope: `system` · mode: `singleton` · mount: `server-provided` · nodeIdMode: `data` - **Archetypes:** — - **Provider interface:** `IAddonsProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | list | `addons.list` | query | protected | `{ nodeId?: string }?` | `AddonListItemSchema[]` | | getLogs | `addons.getLogs` | query | protected | `{ addonId: string; limit?: number = 100; level?: "debug" \| "info" \| "warn" \| "error" }` | `unknown[]` | | listPackages | `addons.listPackages` | query | protected | `void` | `InstalledPackageSchema[]` | | installPackage | `addons.installPackage` | mutation | admin | `{ packageName: string; version?: string }` | `unknown` | | uninstallPackage | `addons.uninstallPackage` | mutation | admin | `{ packageName: string; nodeId?: string; everywhere?: boolean }` | `UninstallPackageResultSchema` | | listInstallations | `addons.listInstallations` | query | admin | `{ packageName?: string }` | `PackageInstallationsSchema` | | reloadPackages | `addons.reloadPackages` | mutation | admin | `void` | `unknown` | | searchAvailable | `addons.searchAvailable` | query | protected | `{ query?: string; capability?: string }` | `SearchResultSchema[]` | | listUpdates | `addons.listUpdates` | query | admin | `{ nodeId?: string }` | `PackageUpdateSchema[]` | | updatePackage | `addons.updatePackage` | mutation | admin | `{ name: string; version?: string; nodeId?: string }` | `unknown` | | rollbackPackage | `addons.rollbackPackage` | mutation | admin | `{ name: string }` | `{ rolledBackTo: string \| null }` | | forceRefresh | `addons.forceRefresh` | mutation | admin | `{ nodeId?: string }` | `unknown` | | restartServer | `addons.restartServer` | mutation | admin | `{ confirm: true }` | `unknown` | | getLastRestart | `addons.getLastRestart` | query | admin | `void` | `{ kind: "framework-update" \| "manual" \| "system" \| "framework-bulk-update"; packageName?: string; fromVersion?: string; toVersion?: string; requestedBy?: string; requestedAt: number } \| null` | | listFrameworkPackages | `addons.listFrameworkPackages` | query | admin | `void` | `({ packageName: string; currentVersion: string; latestVersion: string \| null; hasUpdate: boolean; description?: string; buildId: string \| null })[]` | | listCapabilityProviders | `addons.listCapabilityProviders` | query | protected | `{ capName: string }` | `({ addonId: string; mode: "singleton" \| "collection"; isActive: boolean })[]` | | setCapabilityProviderEnabled | `addons.setCapabilityProviderEnabled` | mutation | admin | `{ capName: string; addonId: string; enabled: boolean }` | `{ success: true }` | | getVersions | `addons.getVersions` | query | protected | `{ name: string }` | `PackageVersionInfoSchema[]` | | getPackageDocs | `addons.getPackageDocs` | query | admin | `{ name: string; version?: string }` | `{ name: string; version: string; readme: { status: "ok"; markdown: string } \| { status: "missing" } \| { status: "error"; message: string }; changelog: { status: "ok"; markdown: string } \| { status: "missing" } \| { status: "error"; message: string } }` | | restartAddon | `addons.restartAddon` | mutation | admin | `{ addonId: string }` | `unknown` | | retryLoad | `addons.retryLoad` | mutation | admin | `{ packageName: string }` | `{ success: true }` | | getAutoUpdateSettings | `addons.getAutoUpdateSettings` | query | admin | `void` | `AutoUpdateSettingsSchema` | | setAutoUpdateSettings | `addons.setAutoUpdateSettings` | mutation | admin | `{ channel: "off" \| "latest" \| "beta"; intervalSeconds?: number; updateCheckIntervalSeconds?: number }` | `unknown` | | getAddonAutoUpdate | `addons.getAddonAutoUpdate` | query | admin | `{ addonId: string }` | `AddonAutoUpdateSchema` | | setAddonAutoUpdate | `addons.setAddonAutoUpdate` | mutation | admin | `{ addonId: string; channel: AddonAutoUpdateSchema }` | `unknown` | | applyAutoUpdateToAll | `addons.applyAutoUpdateToAll` | mutation | admin | `{ channel: "off" \| "latest" \| "beta" }` | `{ success: true }` | | custom | `addons.custom` | mutation | protected | `CustomActionInputSchema` | `unknown` | | startJob | `addons.startJob` | mutation | admin | `{ kind: "install" \| "update" \| "uninstall" \| "restart"; targets: ({ name: string; version: string })[]; nodeIds?: string[] }` | `{ jobId: string }` | | getJob | `addons.getJob` | query | admin | `{ jobId: string }` | `{ jobId: string; kind: "install" \| "update" \| "uninstall" \| "restart"; createdAtMs: number; createdBy: string; scope: "single" \| "bulk" \| "cluster"; tasks: ({ taskId: string; nodeId: string; packageName: string; fromVersion: string \| null; toVersion: string; target: "framework" \| "addon"; phase: "queued" \| "fetching" \| "staged" \| "validating" \| "applying" \| "restarting" \| "applied" \| "done" \| "failed" \| "skipped"; stagedPath: string \| null; attempts: number; steps: ({ tsMs: number; nodeId: string; packageName: string; phase: "queued" \| "fetching" \| "staged" \| "validating" \| "applying" \| "restarting" \| "applied" \| "done" \| "failed" \| "skipped"; message: string })[]; error: string \| null; startedAtMs: number \| null; finishedAtMs: number \| null })[]; state: "running" \| "completed" \| "failed" \| "partially-failed" \| "cancelled"; schemaVersion: 1 } \| null` | | listJobs | `addons.listJobs` | query | admin | `{ activeOnly?: boolean }` | `({ jobId: string; kind: "install" \| "update" \| "uninstall" \| "restart"; createdAtMs: number; createdBy: string; scope: "single" \| "bulk" \| "cluster"; tasks: ({ taskId: string; nodeId: string; packageName: string; fromVersion: string \| null; toVersion: string; target: "framework" \| "addon"; phase: "queued" \| "fetching" \| "staged" \| "validating" \| "applying" \| "restarting" \| "applied" \| "done" \| "failed" \| "skipped"; stagedPath: string \| null; attempts: number; steps: ({ tsMs: number; nodeId: string; packageName: string; phase: "queued" \| "fetching" \| "staged" \| "validating" \| "applying" \| "restarting" \| "applied" \| "done" \| "failed" \| "skipped"; message: string })[]; error: string \| null; startedAtMs: number \| null; finishedAtMs: number \| null })[]; state: "running" \| "completed" \| "failed" \| "partially-failed" \| "cancelled"; schemaVersion: 1 })[]` | | cancelJob | `addons.cancelJob` | mutation | admin | `{ jobId: string }` | `{ cancelled: boolean }` | | onAddonLogs | `addons.onAddonLogs` | subscription | protected | `{ addonId: string; level?: "debug" \| "info" \| "warn" \| "error" }` | `LogStreamEntrySchema` | ### `admin-ui` → `adminUi.*` - **Source:** `packages/types/src/capabilities/admin-ui.cap.ts:8` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** internal - **Provider interface:** `IAdminUiProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStaticDir | `adminUi.getStaticDir` | query | admin | `void` | `{ staticDir: string }` | | getVersion | `adminUi.getVersion` | query | admin | `void` | `{ version: string }` | ### `air-quality-sensor` → `airQualitySensor.*` - **Source:** `packages/types/src/capabilities/air-quality-sensor.cap.ts:33` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `sensor` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IAirQualitySensorProvider` - **runtimeState:** `AirQualitySensorStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `airQualitySensor.getStatus` | query | protected | `{ deviceId: number }` | `AirQualitySensorStatusSchema` | ### `alarm-panel` → `alarmPanel.*` - **Source:** `packages/types/src/capabilities/alarm-panel.cap.ts:66` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `alarm-panel` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IAlarmPanelProvider` - **runtimeState:** `AlarmPanelStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `alarmPanel.getStatus` | query | protected | `{ deviceId: number }` | `AlarmPanelStatusSchema` | | trigger | `alarmPanel.trigger` | mutation | protected | `{ deviceId: number }` | `void` | | disarm | `alarmPanel.disarm` | mutation | protected | `{ deviceId: number; code?: string }` | `void` | | arm | `alarmPanel.arm` | mutation | protected | `{ deviceId: number; mode: AlarmArmModeSchema; code?: string }` | `void` | ### `alerts` → `alerts.*` - **Source:** `packages/types/src/capabilities/alerts.cap.ts:78` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `IAlertsProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | emit | `alerts.emit` | mutation | protected | `AlertSchema` | `void` | | update | `alerts.update` | mutation | protected | `{ alertId: string; patch: { id?: string; category?: string; severity?: AlertSeveritySchema; title?: string; message?: string; action?: { label: string; href?: string; invoke?: { addonId: string; action: string; input?: Record }; navigation?: "app" \| "server" }; status?: AlertStatusSchema; progress?: number; read?: boolean; createdAt?: number; updatedAt?: number; source?: AlertSourceSchema; metadata?: Record } }` | `void` | | list | `alerts.list` | query | protected | `{ unreadOnly?: boolean; limit?: number }?` | `AlertSchema[]` | | getUnreadCount | `alerts.getUnreadCount` | query | protected | `void` | `number` | | markRead | `alerts.markRead` | mutation | protected | `{ alertId: string }` | `void` | | markAllRead | `alerts.markAllRead` | mutation | protected | `void` | `void` | | dismiss | `alerts.dismiss` | mutation | protected | `{ alertId: string }` | `void` | ### `ambient-light-sensor` → `ambientLightSensor.*` - **Source:** `packages/types/src/capabilities/ambient-light-sensor.cap.ts:24` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `sensor` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IAmbientLightSensorProvider` - **runtimeState:** `AmbientLightSensorStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `ambientLightSensor.getStatus` | query | protected | `{ deviceId: number }` | `AmbientLightSensorStatusSchema` | ### `audio-analysis` → `audioAnalysis.*` - **Source:** `packages/types/src/capabilities/audio-analysis.cap.ts:28` - **Meta:** scope: `device` · mode: `singleton` · mount: `device-scoped` · deviceTypes: `camera` - **Archetypes:** exposesDeviceSettings · wrapper(defaultActive) - **Provider interface:** `IAudioAnalysisProvider` - **Events:** `onAudioLevel` → `{ deviceId: number; rms: number; dbfs: number }` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getDeviceSettingsContribution _(auto)_ | `audioAnalysis.getDeviceSettingsContribution` | query | protected | `{ deviceId: number }` | `{ tabs?: ({ id: string; label: string; icon: string; order?: number })[]; sections: ({ id: string; title: string; description?: string; style?: "card" \| "accordion"; defaultCollapsed?: boolean; columns?: 1 \| 2 \| 3 \| 4; tab?: string; location?: "settings" \| "top-tab" \| "hero"; order?: number; fields: any[] })[] } \| null` | | getDeviceLiveContribution _(auto)_ | `audioAnalysis.getDeviceLiveContribution` | query | protected | `{ deviceId: number }` | `{ tabs?: ({ id: string; label: string; icon: string; order?: number })[]; sections: ({ id: string; title: string; description?: string; style?: "card" \| "accordion"; defaultCollapsed?: boolean; columns?: 1 \| 2 \| 3 \| 4; tab?: string; location?: "settings" \| "top-tab" \| "hero"; order?: number; fields: any[] })[] } \| null` | | applyDeviceSettingsPatch _(auto)_ | `audioAnalysis.applyDeviceSettingsPatch` | mutation | admin | `{ deviceId: number; patch: Record }` | `{ success: true }` | | resolveDeviceSettings | `audioAnalysis.resolveDeviceSettings` | query | protected | `{ deviceId: number }` | `` | ### `audio-analyzer` → `audioAnalyzer.*` - **Source:** `packages/types/src/capabilities/audio-analyzer.cap.ts:145` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `IAudioAnalyzerProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | analyseChunk | `audioAnalyzer.analyseChunk` | mutation | protected | `{ chunk: AudioChunkInputSchema; settings: AudioAnalysisSettingsSchema }` | `AudioAnalysisResultSchema \| null` | | classify | `audioAnalyzer.classify` | query | protected | `AudioChunkInputSchema` | `AudioClassificationResultSchema` | | attachDevice | `audioAnalyzer.attachDevice` | mutation | protected | `AudioAttachDeviceInputSchema` | `AudioAttachDeviceResultSchema` | | detachDevice | `audioAnalyzer.detachDevice` | mutation | protected | `{ deviceId: number }` | `AudioDetachDeviceResultSchema` | | isReady | `audioAnalyzer.isReady` | query | protected | `void` | `boolean` | | dispose | `audioAnalyzer.dispose` | mutation | protected | `void` | `void` | | reprobeAudioEngine | `audioAnalyzer.reprobeAudioEngine` | mutation | admin | `void` | `{ backend: string }` | ### `audio-codec` → `audioCodec.*` - **Source:** `packages/types/src/capabilities/audio-codec.cap.ts:85` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` · preferredProvider: `decoder-nodeav` - **Archetypes:** — - **Provider interface:** `IAudioCodecCapProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listSupportedCodecs | `audioCodec.listSupportedCodecs` | query | protected | `void` | `AudioCodecInfoSchema[]` | | canHandle | `audioCodec.canHandle` | query | protected | `{ codec: string; kind: "decode" \| "encode" }` | `boolean` | | createDecodeSession | `audioCodec.createDecodeSession` | mutation | protected | `AudioDecodeSessionConfigSchema` | `{ sessionId: string; nodeId: string }` | | createEncodeSession | `audioCodec.createEncodeSession` | mutation | protected | `AudioEncodeSessionConfigSchema` | `{ sessionId: string; nodeId: string }` | | closeSession | `audioCodec.closeSession` | mutation | protected | `{ sessionId: string; nodeId?: string }` | `void` | | pushEncodedFrame | `audioCodec.pushEncodedFrame` | mutation | protected | `{ sessionId: string; nodeId?: string; data: ; pts?: number }` | `void` | | pullPcm | `audioCodec.pullPcm` | query | protected | `{ sessionId: string; nodeId?: string; maxCount?: number = 8 }` | `AudioPcmChunkSchema[]` | | pushPcm | `audioCodec.pushPcm` | mutation | protected | `{ sessionId: string; nodeId?: string; data: ; pts?: number }` | `void` | | pullEncoded | `audioCodec.pullEncoded` | query | protected | `{ sessionId: string; nodeId?: string; maxCount?: number = 8 }` | `AudioEncodedChunkSchema[]` | | flushEncode | `audioCodec.flushEncode` | mutation | protected | `{ sessionId: string; nodeId?: string }` | `AudioEncodedChunkSchema[]` | | listActiveSessions | `audioCodec.listActiveSessions` | query | protected | `void` | `({ sessionId: string; kind: "decode" \| "encode"; codec: string; sourceSampleRate: number; sourceChannels: number; targetSampleRate: number; targetChannels: number; format: PcmSampleFormatSchema; tag?: string; createdAtMs: number; lastActivityMs: number; framesIn: number; framesOut: number })[]` | ### `audio-metrics` → `audioMetrics.*` - **Source:** `packages/types/src/capabilities/audio-metrics.cap.ts:110` - **Meta:** scope: `device` · mode: `singleton` · mount: `singleton` · deviceTypes: `camera` - **Archetypes:** runtimeState - **Provider interface:** `IAudioMetricsProvider` - **runtimeState:** `AudioMetricsSnapshotSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getCurrentSnapshot | `audioMetrics.getCurrentSnapshot` | query | protected | `{ deviceId: number }` | `AudioMetricsSnapshotSchema \| null` | | getHistory | `audioMetrics.getHistory` | query | protected | `{ deviceId: number; windowSec?: number; sampleEveryMs?: number }` | `AudioMetricsHistorySchema` | ### `auth-provider` → `authProvider.*` - **Source:** `packages/types/src/capabilities/auth-provider.cap.ts:20` - **Meta:** scope: `system` · mode: `collection` · mount: `skip` - **Archetypes:** internal - **Provider interface:** `IAuthProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | validateCredentials | `authProvider.validateCredentials` | mutation | admin | `{ username: string; password: string }` | `AuthResultSchema \| null` | | getLoginUrl | `authProvider.getLoginUrl` | query | admin | `{ state: string }` | `string` | | handleCallback | `authProvider.handleCallback` | mutation | admin | `Record` | `AuthResultSchema` | | validateToken | `authProvider.validateToken` | query | admin | `{ token: string }` | `AuthResultSchema \| null` | ### `automation-control` → `automationControl.*` - **Source:** `packages/types/src/capabilities/automation-control.cap.ts:35` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `automation` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IAutomationControlProvider` - **runtimeState:** `AutomationControlStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `automationControl.getStatus` | query | protected | `{ deviceId: number }` | `AutomationControlStatusSchema` | | enable | `automationControl.enable` | mutation | admin | `{ deviceId: number }` | `void` | | disable | `automationControl.disable` | mutation | admin | `{ deviceId: number }` | `void` | | trigger | `automationControl.trigger` | mutation | admin | `{ deviceId: number; skipCondition?: boolean }` | `void` | ### `backup` → `backup.*` - **Source:** `packages/types/src/capabilities/backup.cap.ts:327` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `IBackupProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listDestinations | `backup.listDestinations` | query | admin | `void` | `BackupDestinationInfoSchema[]` | | trigger | `backup.trigger` | mutation | admin | `{ destinations?: string[]; locations?: string[]; label?: string; retentionCount?: number; databases?: DataStoreDatabaseSchema[] }?` | `BackupTriggerResultSchema` | | listRuns | `backup.listRuns` | query | admin | `void` | `BackupRunSchema[]` | | cancel | `backup.cancel` | mutation | admin | `{ runId: string }` | `{ cancelled: boolean }` | | list | `backup.list` | query | admin | `void` | `BackupEntrySchema[]` | | listLocations | `backup.listLocations` | query | admin | `void` | `LocationStatSchema[]` | | getEntries | `backup.getEntries` | query | admin | `{ destinationId: string; backupId: string }` | `ArchiveManifestSchema \| null` | | restore | `backup.restore` | mutation | admin | `{ destinationId: string; backupId: string; locations?: string[]; backupSecretKey?: string }` | `void` | | getEncryption | `backup.getEncryption` | query | admin | `void` | `BackupEncryptionStatusSchema` | | setupEncryption | `backup.setupEncryption` | mutation | admin | `{}` | `{ keyId: string; secretKey: string; publicKey: string; createdAt: number; replacedKeyId: string \| null }` | | disableEncryption | `backup.disableEncryption` | mutation | admin | `{}` | `{ disabledKeyId: string \| null }` | | checkBackupKey | `backup.checkBackupKey` | mutation | admin | `{ backupSecretKey: string }` | `{ valid: boolean; keyId: string \| null; known: boolean; active: boolean; error?: string }` | | delete | `backup.delete` | mutation | admin | `{ destinationId: string; backupId: string }` | `void` | | listArchives | `backup.listArchives` | query | admin | `{ destinationId: string }` | `({ id: string; filename: string; createdAt: number; sizeBytes: number; label?: string; locations: string[]; encryption?: BackupArchiveEncryptionSchema; databases?: DataStoreDatabaseSchema[] })[]` | | upsertDestinationPolicy | `backup.upsertDestinationPolicy` | mutation | admin | `{ locationId: string; enabled: boolean; retentionCount: number; label?: string }` | `void` | | previewSchedule | `backup.previewSchedule` | query | protected | `{ cron: string; count?: number }` | `{ ok: boolean; error?: string; nextRuns: number[] }` | | listSchedules | `backup.listSchedules` | query | admin | `void` | `({ id: string; label: string; cron: string; enabled: boolean; locationIds: string[]; retentionCount: number; dataSources?: string[]; databases?: DataStoreDatabaseSchema[]; lastAttemptAt?: number; lastSuccessAt?: number; lastError?: string; nextRunAt?: number })[]` | | listAvailableDatabases | `backup.listAvailableDatabases` | query | admin | `void` | `{ answered: boolean; databases: DataStoreDatabaseSchema[] }` | | upsertSchedule | `backup.upsertSchedule` | mutation | admin | `{ id?: string; label: string; cron: string; enabled: boolean; locationIds: string[]; retentionCount: number; dataSources?: string[]; databases?: DataStoreDatabaseSchema[] }` | `{ id: string; label: string; cron: string; enabled: boolean; locationIds: string[]; retentionCount: number; dataSources?: string[]; databases?: DataStoreDatabaseSchema[]; lastAttemptAt?: number; lastSuccessAt?: number; lastError?: string; nextRunAt?: number }` | | deleteSchedule | `backup.deleteSchedule` | mutation | admin | `{ id: string }` | `void` | ### `battery` → `battery.*` - **Source:** `packages/types/src/capabilities/battery.cap.ts:163` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `camera, sensor, button, switch, pet-feeder, container, climate, event-emitter` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IBatteryProvider` - **runtimeState:** `BatteryStatusSchema` - **Events:** `onStatusChanged` → `{ deviceId: number; status: BatteryStatusSchema }` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `battery.getStatus` | query | protected | `{ deviceId: number }` | `BatteryStatusSchema` | | wakeForStream | `battery.wakeForStream` | mutation | protected | `{ deviceId: number; timeoutMs?: number = 8000 }` | `{ awoke: boolean; durationMs: number }` | ### `binary` → `binary.*` - **Source:** `packages/types/src/capabilities/binary.cap.ts:25` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `sensor` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IBinaryProvider` - **runtimeState:** `BinaryStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `binary.getStatus` | query | protected | `{ deviceId: number }` | `BinaryStatusSchema` | ### `board-key-source` → `boardKeySource.*` - **Source:** `packages/types/src/capabilities/board-key-source.cap.ts:64` - **Meta:** scope: `system` · mode: `collection` · mount: `collection` - **Archetypes:** — - **Provider interface:** `IBoardKeySourceProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listSources | `boardKeySource.listSources` | query | admin | `void` | `({ sourceId: string; name: string })[]` | | listBoards | `boardKeySource.listBoards` | query | admin | `{ sourceId: string }` | `{ ok: true; boards: ({ configuration: string; name: string; address: string \| null })[] } \| { ok: false; reason: BoardKeyFailureReasonSchema; detail?: string }` | | getBoardKey | `boardKeySource.getBoardKey` | query | admin | `{ sourceId: string; configuration: string }` | `{ ok: true; key: string } \| { ok: false; reason: BoardKeyFailureReasonSchema; detail?: string }` | ### `brightness` → `brightness.*` - **Source:** `packages/types/src/capabilities/brightness.cap.ts:28` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `light` - **Archetypes:** status(command-driven) · runtimeState - **Provider interface:** `IBrightnessProvider` - **runtimeState:** `BrightnessStatusSchema` - **Events:** `onBrightnessChanged` → `{ deviceId: number; level: number; lastChangedAt: number }` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `brightness.getStatus` | query | protected | `{ deviceId: number }` | `BrightnessStatusSchema` | | setBrightness | `brightness.setBrightness` | mutation | protected | `{ deviceId: number; level: number }` | `void` | ### `broker` → `broker.*` - **Source:** `packages/types/src/capabilities/broker.cap.ts:78` - **Meta:** scope: `system` · mode: `collection` · mount: `collection` · providerKind: `broker` - **Archetypes:** status(poll) - **Provider interface:** `IBrokerProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus | `broker.getStatus` | query | protected | `void` | `BrokerRegistryStatusSchema` | | getBrokerConfig | `broker.getBrokerConfig` | query | admin | `{ id: string }` | `Record \| null` | | publish | `broker.publish` | mutation | admin | `BrokerPublishInputSchema` | `unknown` | | subscribe | `broker.subscribe` | mutation | admin | `BrokerSubscribeInputSchema` | `BrokerSubscribeResultSchema` | | unsubscribe | `broker.unsubscribe` | mutation | admin | `BrokerUnsubscribeInputSchema` | `void` | | getState | `broker.getState` | query | admin | `BrokerGetStateInputSchema` | `unknown \| null` | ### `button` → `button.*` - **Source:** `packages/types/src/capabilities/button.cap.ts:16` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `button` - **Archetypes:** — - **Provider interface:** `IButtonProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | press | `button.press` | mutation | protected | `{ deviceId: number }` | `void` | ### `calendar-source` → `calendarSource.*` - **Source:** `packages/types/src/capabilities/calendar-source.cap.ts:65` - **Meta:** scope: `system` · mode: `collection` · mount: `collection` · providerKind: `calendar` - **Archetypes:** internal - **Provider interface:** `ICalendarSourceProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listCalendars | `calendarSource.listCalendars` | query | admin | `void` | `CalendarInfoSchema[]` | | listEvents | `calendarSource.listEvents` | query | admin | `CalendarListEventsInputSchema` | `CalendarEventSchema[]` | ### `calendars` → `calendars.*` - **Source:** `packages/types/src/capabilities/calendars.cap.ts:71` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `ICalendarsProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listCalendars | `calendars.listCalendars` | query | admin | `void` | `CalendarEntrySchema[]` | | listEvents | `calendars.listEvents` | query | admin | `CalendarListEventsInputSchema` | `CalendarEventSchema[]` | | getPreferences | `calendars.getPreferences` | query | admin | `{}` | `CalendarPreferencesSchema` | | setCalendarPreference | `calendars.setCalendarPreference` | mutation | admin | `CalendarSetPreferenceInputSchema` | `CalendarPreferencesSchema` | ### `camera-credentials` → `cameraCredentials.*` - **Source:** `packages/types/src/capabilities/camera-credentials.cap.ts:77` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `camera` - **Archetypes:** status(command-driven) - **Provider interface:** `ICameraCredentialsProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `cameraCredentials.getStatus` | query | protected | `{ deviceId: number }` | `CameraCredentialsStatusSchema` | | getCredentials | `cameraCredentials.getCredentials` | query | admin | `{ deviceId: number }` | `CameraCredentialsSchema \| null` | ### `camera-grid-layout` → `cameraGridLayout.*` - **Source:** `packages/types/src/capabilities/camera-grid-layout.cap.ts:152` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `camera` - **Archetypes:** exposesDeviceSettings - **Provider interface:** `ICameraGridLayoutProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getDeviceSettingsContribution _(auto)_ | `cameraGridLayout.getDeviceSettingsContribution` | query | protected | `{ deviceId: number }` | `{ tabs?: ({ id: string; label: string; icon: string; order?: number })[]; sections: ({ id: string; title: string; description?: string; style?: "card" \| "accordion"; defaultCollapsed?: boolean; columns?: 1 \| 2 \| 3 \| 4; tab?: string; location?: "settings" \| "top-tab" \| "hero"; order?: number; fields: any[] })[] } \| null` | | getDeviceLiveContribution _(auto)_ | `cameraGridLayout.getDeviceLiveContribution` | query | protected | `{ deviceId: number }` | `{ tabs?: ({ id: string; label: string; icon: string; order?: number })[]; sections: ({ id: string; title: string; description?: string; style?: "card" \| "accordion"; defaultCollapsed?: boolean; columns?: 1 \| 2 \| 3 \| 4; tab?: string; location?: "settings" \| "top-tab" \| "hero"; order?: number; fields: any[] })[] } \| null` | | applyDeviceSettingsPatch _(auto)_ | `cameraGridLayout.applyDeviceSettingsPatch` | mutation | admin | `{ deviceId: number; patch: Record }` | `{ success: true }` | | getLayout | `cameraGridLayout.getLayout` | query | admin | `{ deviceId: number }` | `GridLayoutViewSchema \| null` | | saveLayout | `cameraGridLayout.saveLayout` | mutation | admin | `GridLayoutPatchSchema` | `GridLayoutViewSchema` | ### `camera-pipeline-config` → `cameraPipelineConfig.*` - **Source:** `packages/types/src/capabilities/camera-pipeline-config.cap.ts:34` - **Meta:** scope: `device` · mode: `singleton` · mount: `device-scoped` · deviceTypes: `camera` - **Archetypes:** exposesDeviceSettings · wrapper(defaultActive) - **Provider interface:** `ICameraPipelineConfigProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getDeviceSettingsContribution _(auto)_ | `cameraPipelineConfig.getDeviceSettingsContribution` | query | protected | `{ deviceId: number }` | `{ tabs?: ({ id: string; label: string; icon: string; order?: number })[]; sections: ({ id: string; title: string; description?: string; style?: "card" \| "accordion"; defaultCollapsed?: boolean; columns?: 1 \| 2 \| 3 \| 4; tab?: string; location?: "settings" \| "top-tab" \| "hero"; order?: number; fields: any[] })[] } \| null` | | getDeviceLiveContribution _(auto)_ | `cameraPipelineConfig.getDeviceLiveContribution` | query | protected | `{ deviceId: number }` | `{ tabs?: ({ id: string; label: string; icon: string; order?: number })[]; sections: ({ id: string; title: string; description?: string; style?: "card" \| "accordion"; defaultCollapsed?: boolean; columns?: 1 \| 2 \| 3 \| 4; tab?: string; location?: "settings" \| "top-tab" \| "hero"; order?: number; fields: any[] })[] } \| null` | | applyDeviceSettingsPatch _(auto)_ | `cameraPipelineConfig.applyDeviceSettingsPatch` | mutation | admin | `{ deviceId: number; patch: Record }` | `{ success: true }` | ### `camera-streams` → `cameraStreams.*` - **Source:** `packages/types/src/capabilities/camera-streams.cap.ts:211` - **Meta:** scope: `device` · mode: `singleton` · mount: `device-scoped` · deviceTypes: `camera` - **Archetypes:** runtimeState · wrapper(defaultActive) - **Provider interface:** `ICameraStreamsProvider` - **runtimeState:** `{ online: boolean; slotStatuses: { high?: ProfileSlotStatusSchema; mid?: ProfileSlotStatusSchema; low?: ProfileSlotStatusSchema }; slotErrors: { high?: string; mid?: string; low?: string }; lastChangedAt: number }` - **Events:** `onCamStreamsChanged` → `{ deviceId: number; camStreams: CameraStreamSchema[] }` · `onProfileSlotsChanged` → `{ deviceId: number; profileSlots: ProfileSlotSchema[] }` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getCameraStreams | `cameraStreams.getCameraStreams` | query | protected | `{ deviceId: number }` | `CameraStreamSchema[]` | | getBrokerStreams | `cameraStreams.getBrokerStreams` | query | protected | `{ deviceId: number }` | `ProfileSlotSchema[]` | | getRtspEntries | `cameraStreams.getRtspEntries` | query | protected | `{ deviceId: number; hostname?: string }` | `RtspRestreamEntrySchema[]` | | getProfileRtspEntries | `cameraStreams.getProfileRtspEntries` | query | protected | `{ deviceId: number; hostname?: string }` | `ProfileRtspEntrySchema[]` | | pickStream | `cameraStreams.pickStream` | query | protected | `{ deviceId: number; requirements: { acceptCodecs?: StreamCodecSchema[]; minHeight?: number; maxHeight?: number; minWidth?: number; excludeDerived?: boolean; requireSiblingCodec?: StreamCodecSchema[]; allowTranscode?: boolean; requireProfileBound?: boolean }; preferences?: { preferredProviders?: string[]; resolutionPreference?: "highest" \| "lowest"; targetHeight?: number } }` | `PickedCamStreamSchema \| null` | ### `carbon-monoxide` → `carbonMonoxide.*` - **Source:** `packages/types/src/capabilities/carbon-monoxide.cap.ts:18` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `sensor` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `ICarbonMonoxideProvider` - **runtimeState:** `CarbonMonoxideStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `carbonMonoxide.getStatus` | query | protected | `{ deviceId: number }` | `CarbonMonoxideStatusSchema` | ### `climate-control` → `climateControl.*` - **Source:** `packages/types/src/capabilities/climate-control.cap.ts:162` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `climate` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IClimateControlProvider` - **runtimeState:** `ClimateControlStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `climateControl.getStatus` | query | protected | `{ deviceId: number }` | `ClimateControlStatusSchema` | | setMode | `climateControl.setMode` | mutation | protected | `{ deviceId: number; mode: HvacModeSchema }` | `void` | | setTarget | `climateControl.setTarget` | mutation | protected | `{ deviceId: number; target: number }` | `void` | | setTargetRange | `climateControl.setTargetRange` | mutation | protected | `{ deviceId: number; targetLow: number; targetHigh: number }` | `void` | | setTargetHumidity | `climateControl.setTargetHumidity` | mutation | protected | `{ deviceId: number; targetHumidity: number }` | `void` | | setFanMode | `climateControl.setFanMode` | mutation | protected | `{ deviceId: number; fanMode: string }` | `void` | | setPreset | `climateControl.setPreset` | mutation | protected | `{ deviceId: number; preset: string }` | `void` | | setSwingVertical | `climateControl.setSwingVertical` | mutation | protected | `{ deviceId: number; on: boolean }` | `void` | | setSwingHorizontal | `climateControl.setSwingHorizontal` | mutation | protected | `{ deviceId: number; on: boolean }` | `void` | ### `cluster-update` → `clusterUpdate.*` - **Source:** `packages/types/src/capabilities/cluster-update.cap.ts:149` - **Meta:** scope: `system` · mode: `singleton` · mount: `server-provided` - **Archetypes:** — - **Provider interface:** `IClusterUpdateProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | previewClusterUpdate | `clusterUpdate.previewClusterUpdate` | query | admin | `ClusterUpdateOptionsSchema` | `ClusterUpdatePlanSchema` | | startClusterUpdate | `clusterUpdate.startClusterUpdate` | mutation | admin | `ClusterUpdateOptionsSchema` | `StartClusterUpdateResultSchema` | | getClusterUpdateJob | `clusterUpdate.getClusterUpdateJob` | query | admin | `{ jobId?: string }` | `ClusterUpdateJobSchema \| null` | ### `color` → `color.*` - **Source:** `packages/types/src/capabilities/color.cap.ts:80` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `light` - **Archetypes:** status(command-driven) · runtimeState - **Provider interface:** `IColorProvider` - **runtimeState:** `ColorStatusSchema` - **Events:** `onColorChanged` → `{ deviceId: number; mode: "rgb" \| "hsv" \| "mired"; rgb?: { r: number; g: number; b: number }; hsv?: { h: number; s: number; v: number }; colorTemperature?: number; lastChangedAt: number }` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `color.getStatus` | query | protected | `{ deviceId: number }` | `ColorStatusSchema` | | setColor | `color.setColor` | mutation | protected | `{ deviceId: number; color: { mode: "rgb"; rgb: { r: number; g: number; b: number } } \| { mode: "hsv"; hsv: { h: number; s: number; v: number } } \| { mode: "mired"; colorTemperature: number } }` | `void` | ### `composer` → `composer.*` - **Source:** `packages/types/src/capabilities/composer.cap.ts:96` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** internal - **Provider interface:** `IComposerProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | applyBlocks | `composer.applyBlocks` | mutation | admin | `ComposerApplyInputSchema` | `ComposerApplyResultSchema` | | getStates | `composer.getStates` | query | admin | `{ blockIds: string[] }` | `{ states: ({ blockId: string; deviceId: number \| null; status: "stopped" \| "starting" \| "running" \| "degraded" \| "incomplete" \| "failed"; reason?: string; fields: ({ cap: string; path: string; item?: { arrayPath: string; key: string; label: string; resettable?: boolean }; state: "fresh" \| "stale" \| "unavailable"; value: string \| number \| boolean \| null; reason?: string })[] })[] }` | ### `connectivity` → `connectivity.*` - **Source:** `packages/types/src/capabilities/connectivity.cap.ts:23` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `sensor` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IConnectivityProvider` - **runtimeState:** `ConnectivityStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `connectivity.getStatus` | query | protected | `{ deviceId: number }` | `ConnectivityStatusSchema` | ### `consumables` → `consumables.*` - **Source:** `packages/types/src/capabilities/consumables.cap.ts:249` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `camera, light, siren, switch, sensor, climate, button, event-emitter, update, generic, notifier, script, automation, lock, cover, valve, humidifier, water-heater, fan, media-player, alarm-panel, control, presence, weather, weather-station, vacuum, lawn-mower, container, image, pet-feeder, pet-fountain, dishwasher, washer, dryer, gateway, heat-pump, energy-system` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IConsumablesProvider` - **runtimeState:** `{ items: ConsumableItemSchema[]; lastChangedAt: number; lastFetchedAt: number }` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `consumables.getStatus` | query | protected | `{ deviceId: number }` | `ConsumablesStatusSchema` | | reset | `consumables.reset` | mutation | admin | `{ deviceId: number; key: string }` | `void` | ### `contact` → `contact.*` - **Source:** `packages/types/src/capabilities/contact.cap.ts:27` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `sensor` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IContactProvider` - **runtimeState:** `ContactStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `contact.getStatus` | query | protected | `{ deviceId: number }` | `ContactStatusSchema` | ### `control` → `control.*` - **Source:** `packages/types/src/capabilities/control.cap.ts:104` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `control` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IControlProvider` - **runtimeState:** `ControlStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `control.getStatus` | query | protected | `{ deviceId: number }` | `ControlStatusSchema` | | setValue | `control.setValue` | mutation | protected | `{ deviceId: number; control: { kind: "numeric"; value: number } \| { kind: "select"; value: string } \| { kind: "text"; value: string } \| { kind: "datetime"; value: string } }` | `void` | | next | `control.next` | mutation | protected | `{ deviceId: number; cycle?: boolean = true }` | `void` | | previous | `control.previous` | mutation | protected | `{ deviceId: number; cycle?: boolean = true }` | `void` | | first | `control.first` | mutation | protected | `{ deviceId: number }` | `void` | | last | `control.last` | mutation | protected | `{ deviceId: number }` | `void` | ### `core-blocks` → `coreBlocks.*` - **Source:** `packages/types/src/capabilities/core-blocks.cap.ts:405` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `ICoreBlocksProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | list | `coreBlocks.list` | query | admin | `{}` | `{ blocks: CoreBlockSchema[] }` | | get | `coreBlocks.get` | query | admin | `{ blockId: string }` | `{ block: CoreBlockSchema \| null }` | | create | `coreBlocks.create` | mutation | admin | `{ block: CoreBlockInputSchema }` | `{ block: CoreBlockSchema }` | | update | `coreBlocks.update` | mutation | admin | `{ blockId: string; block: { name?: string; code?: string; files?: CoreBlockFilesSchema; entry?: string; enabled?: boolean; placement?: CoreBlockPlacementSchema; integrationId?: string; settingsSchema?: ; tags?: string[] } }` | `{ block: CoreBlockSchema }` | | delete | `coreBlocks.delete` | mutation | admin | `{ blockId: string }` | `{ success: true }` | | setEnabled | `coreBlocks.setEnabled` | mutation | admin | `{ blockId: string; enabled: boolean }` | `{ block: CoreBlockSchema }` | | restart | `coreBlocks.restart` | mutation | admin | `{ blockId: string }` | `{ block: CoreBlockSchema }` | | compile | `coreBlocks.compile` | mutation | admin | `CoreBlockCompileInputSchema` | `CoreBlockCompileResultSchema` | | getBlockSettings | `coreBlocks.getBlockSettings` | query | admin | `{ blockId: string }` | `SettingsSchemaWithValuesSchema \| null` | | updateBlockSettings | `coreBlocks.updateBlockSettings` | mutation | admin | `{ blockId: string; patch: SettingsPatchSchema }` | `SettingsUpdateResultSchema` | | migrateRawSecrets | `coreBlocks.migrateRawSecrets` | mutation | admin | `RawSecretMigrationInputSchema` | `RawSecretMigrationReportSchema` | | getTypeDefs | `coreBlocks.getTypeDefs` | query | admin | `{}` | `{ libs: ({ filePath: string; content: string })[] }` | | createComposition | `coreBlocks.createComposition` | mutation | admin | `{ block: CompositionBlockInputSchema }` | `{ block: CoreBlockSchema }` | | updateComposition | `coreBlocks.updateComposition` | mutation | admin | `{ blockId: string; expectedUpdatedAt: number; block: { name?: string; enabled?: boolean; composition?: { target: { kind: "new"; type: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; role?: "siren" \| "floodlight" \| "spotlight" \| "pir-sensor" \| "chime" \| "autotrack" \| "nightvision" \| "privacy-mask" \| "doorbell" \| "cover-blind" \| "cover-shutter" \| "cover-awning" \| "cover-curtain" \| "cover-garage" \| "cover-gate" \| "cover-door" \| "cover-window" \| "binary-helper" \| "outlet" \| "switch-heater" \| "switch-fan" \| "switch-light" \| "climate-ac" \| "climate-thermostat" \| "climate-floor" \| "climate-radiator" \| "climate-heater" \| "climate-heat-pump-circuit" \| "motion-sensor" \| "contact-sensor" \| "leak-sensor" \| "smoke-sensor" \| "co-sensor" \| "gas-sensor" \| "tamper-sensor" \| "vibration-sensor" \| "connectivity-sensor" \| "sound-sensor" \| "binary-sensor" \| "temperature-sensor" \| "humidity-sensor" \| "ambient-light-sensor" \| "pressure-sensor" \| "wind-sensor" \| "rain-sensor" \| "uv-sensor" \| "solar-radiation-sensor" \| "soil-moisture-sensor" \| "power-sensor" \| "energy-sensor" \| "voltage-sensor" \| "current-sensor" \| "air-quality-sensor" \| "battery-sensor" \| "numeric-sensor" \| "enum-sensor" \| "datetime-sensor" \| "generic-sensor" \| "numeric-control" \| "select-control" \| "text-control" \| "datetime-control" \| "mobile-push-notifier" \| "messaging-notifier" \| "email-notifier" \| "generic-notifier" \| "ir-transmitter" } \| { kind: "existing"; device: {…} }; features: ({ kind: "fields"; cap: string; enabled?: boolean; fields: Record; items?: Record; commands?: Record } \| { kind: "passthrough"; cap: string; enabled?: boolean; source: {…} })[]; helper?: { kind: "group"; templateId: "temperature" \| "humidity" \| "pressure" \| "illuminance" \| "power" \| "energy" \| "battery" \| "numeric" \| "motion" \| "contact" \| "leak" \| "smoke" \| "occupancy" \| "binary" \| "switch" \| "light" \| "fan" \| "cover" \| "valve" \| "lock" \| "media-player" \| "climate"; aggregate: "mean" \| "median" \| "min" \| "max" \| "sum" \| "any" \| "all"; members: {…}[]; active?: "at-least-one" \| "all" } \| { kind: "statistic"; stat: "min" \| "max" \| "mean" \| "sum" \| "count" \| "change"; window: {…} \| {…}; source: {…} } \| { kind: "integral"; reset: "never" \| "daily" \| "weekly" \| "monthly"; output: "energy" \| "meter"; source: {…} } \| { kind: "threshold"; source: {…}; high: number; low: number; onForMs: number; offForMs: number } \| { kind: "arithmetic"; op: "sum" \| "difference" \| "ratio"; inputs: {…}[] } \| { kind: "expression"; expr: string; inputs: {…}[]; output: "number" \| "boolean" } \| { kind: "derivative"; window: {…}; per: "second" \| "minute" \| "hour"; source: {…} } } } }` | `{ block: CoreBlockSchema }` | | getComposition | `coreBlocks.getComposition` | query | admin | `{ blockId: string }` | `CompositionGetReadSchema` | | listCompositions | `coreBlocks.listCompositions` | query | admin | `{}` | `CompositionListReadSchema` | | getCustomization | `coreBlocks.getCustomization` | query | admin | `{ addonId: string; stableId: string }` | `CompositionCustomizationReadSchema` | | listComposableCaps | `coreBlocks.listComposableCaps` | query | admin | `{ deviceType: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system" }` | `{ caps: ({ cap: string; fields: ({ path: string; kind: "string" \| "number" \| "boolean" \| "enum"; nullable: boolean; required: boolean; enumValues?: string[] })[]; itemArray?: { path: string; keyField: string } })[] }` | | validateComposition | `coreBlocks.validateComposition` | mutation | admin | `{ composition: { target: { kind: "new"; type: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; role?: "siren" \| "floodlight" \| "spotlight" \| "pir-sensor" \| "chime" \| "autotrack" \| "nightvision" \| "privacy-mask" \| "doorbell" \| "cover-blind" \| "cover-shutter" \| "cover-awning" \| "cover-curtain" \| "cover-garage" \| "cover-gate" \| "cover-door" \| "cover-window" \| "binary-helper" \| "outlet" \| "switch-heater" \| "switch-fan" \| "switch-light" \| "climate-ac" \| "climate-thermostat" \| "climate-floor" \| "climate-radiator" \| "climate-heater" \| "climate-heat-pump-circuit" \| "motion-sensor" \| "contact-sensor" \| "leak-sensor" \| "smoke-sensor" \| "co-sensor" \| "gas-sensor" \| "tamper-sensor" \| "vibration-sensor" \| "connectivity-sensor" \| "sound-sensor" \| "binary-sensor" \| "temperature-sensor" \| "humidity-sensor" \| "ambient-light-sensor" \| "pressure-sensor" \| "wind-sensor" \| "rain-sensor" \| "uv-sensor" \| "solar-radiation-sensor" \| "soil-moisture-sensor" \| "power-sensor" \| "energy-sensor" \| "voltage-sensor" \| "current-sensor" \| "air-quality-sensor" \| "battery-sensor" \| "numeric-sensor" \| "enum-sensor" \| "datetime-sensor" \| "generic-sensor" \| "numeric-control" \| "select-control" \| "text-control" \| "datetime-control" \| "mobile-push-notifier" \| "messaging-notifier" \| "email-notifier" \| "generic-notifier" \| "ir-transmitter" } \| { kind: "existing"; device: { addonId: string; stableId: string } }; features: ({ kind: "fields"; cap: string; enabled?: boolean; fields: Record } \| { kind: "code"; code: string } \| { kind: "aggregate"; reducer: "mean" \| "median" \| "min" \| "max" \| "sum" \| "any" \| "all"; reads: {…}[]; activeWhen?: string[]; publish: "value" \| "included" \| "excluded" \| "total"; empty: "null" \| "omit" \| "offline" } \| { kind: "series"; read: {…}; publish: "value" \| "included" \| "excluded" \| "total"; empty: "null" \| "omit" \| "offline" }>; items?: Record; reset?: {…} }>; commands?: Record>> } \| { kind: "code"; code: string } \| { kind: "extension"; target: "remote" }> } \| { kind: "passthrough"; cap: string; enabled?: boolean; source: { addonId: string; stableId: string } })[]; helper?: { kind: "group"; templateId: "temperature" \| "humidity" \| "pressure" \| "illuminance" \| "power" \| "energy" \| "battery" \| "numeric" \| "motion" \| "contact" \| "leak" \| "smoke" \| "occupancy" \| "binary" \| "switch" \| "light" \| "fan" \| "cover" \| "valve" \| "lock" \| "media-player" \| "climate"; aggregate: "mean" \| "median" \| "min" \| "max" \| "sum" \| "any" \| "all"; members: ({ source: {…}; cap: string; fieldPath: string })[]; active?: "at-least-one" \| "all" } \| { kind: "statistic"; stat: "min" \| "max" \| "mean" \| "sum" \| "count" \| "change"; window: { kind: "rolling"; span: "1h" \| "24h" \| "2d" \| "7d" \| "30d" \| "custom"; customMinutes?: number } \| { kind: "calendar"; period: "today" \| "yesterday" \| "this-week" \| "this-month" }; source: { source: {…}; cap: string; fieldPath: string } } \| { kind: "integral"; reset: "never" \| "daily" \| "weekly" \| "monthly"; output: "energy" \| "meter"; source: { source: {…}; cap: string; fieldPath: string } } \| { kind: "threshold"; source: { source: {…}; cap: string; fieldPath: string }; high: number; low: number; onForMs: number; offForMs: number } \| { kind: "arithmetic"; op: "sum" \| "difference" \| "ratio"; inputs: ({ source: {…}; cap: string; fieldPath: string })[] } \| { kind: "expression"; expr: string; inputs: ({ name: string; member: {…} })[]; output: "number" \| "boolean" } \| { kind: "derivative"; window: { kind: "rolling"; span: "1h" \| "24h" \| "2d" \| "7d" \| "30d" \| "custom"; customMinutes?: number }; per: "second" \| "minute" \| "hour"; source: { source: {…}; cap: string; fieldPath: string } } }; blockId?: string }` | `{ ok: boolean; problems: ({ code: "reserved-variant" \| "unknown-capability" \| "not-composable" \| "wrong-device-type" \| "has-commands" \| "unknown-field" \| "nested-field" \| "missing-field" \| "kind-mismatch" \| "source-kind-mismatch" \| "may-be-null" \| "source-missing" \| "source-unreadable" \| "source-capability-missing" \| "source-field-unknown" \| "expression-invalid" \| "cycle" \| "duplicate-target" \| "not-item-array" \| "item-field-reserved" \| "target-missing" \| "target-unreadable" \| "not-replaceable" \| "native-capability-replace" \| "mixed-quantity" \| "helper-mismatch" \| "member-constraint" \| "retention" \| "command-method-unknown" \| "command-source-unknown" \| "command-input-unknown" \| "command-input-missing" \| "power-source-is-actuator"; path: string; message: string })[]; fields: ({ cap: string; path: string; item?: { arrayPath: string; key: string; label: string; resettable?: boolean }; featureIndex: number; kind: "string" \| "number" \| "boolean" \| "enum"; nullable: boolean; required: boolean; unavailable: "null" \| "offline" \| "unknown" \| "release" \| "omit"; role: "derived" \| "clock" \| "constant" \| "accumulator"; source: { source: { addonId: string; stableId: string }; cap: string; fieldPath: string; kind: "from" } \| { kind: "expression"; expr: string; bindings: Record } \| { kind: "code"; code: string } \| { kind: "aggregate"; reducer: "mean" \| "median" \| "min" \| "max" \| "sum" \| "any" \| "all"; reads: ({ source: {…}; cap: string; fieldPath: string })[]; activeWhen?: string[]; publish: "value" \| "included" \| "excluded" \| "total"; empty: "null" \| "omit" \| "offline" } \| { kind: "series"; read: { source: {…}; cap: string; fieldPath: string }; publish: "value" \| "included" \| "excluded" \| "total"; empty: "null" \| "omit" \| "offline" }; reads: ({ source: { addonId: string; stableId: string }; cap: string; fieldPath: string })[] })[]; features: ({ featureIndex: number; cap: string; mode: "new" \| "add" \| "replace" })[]; events: ({ featureIndex: number; cap: string; eventName: string; category: "system.boot" \| "system.addons-ready" \| "system.restarting" \| "system.restart-completed" \| "system.tls-cert-changed" \| "update.available" \| "system.ready-state" \| "addon.started" \| "addon.stopped" \| "addon.restarted" \| "addon.updated" \| "addon.installed" \| "addon.uninstalled" \| "addon.crashed" \| "addon.runner-failed" \| "addon.runner-refused" \| "process.state-changed" \| "system.runner-check" \| "alert.episode" \| "addon.error" \| "addon.page-ready" \| "addon.widget-ready" \| "addon.load-failed" \| "keychain.changed" \| "addon.load-recovered" \| "addon.unsupported-version" \| "addon.unsupported-resolved" \| "addon.retry-scheduled" \| "system.liveness-failed" \| "system.liveness-recovered" \| "addon.retry-attempting" \| "device.registered" \| "device.unregistered" \| "device.enabled" \| "device.disabled" \| "device.settings-updated" \| "device.bindings-changed" \| "device.meta-changed" \| "device.source-info-changed" \| "device.streams-registered" \| "device.provisioned" \| "device.ready" \| "integration.enabled" \| "integration.disabled" \| "integration.deleted" \| "broker.status-changed" \| "broker.message" \| "provider.started" \| "provider.stopped" \| "process.crashed" \| "process.restart_scheduled" \| "process.restarted" \| "storage.locations-changed" \| "recording.started" \| "recording.stopped" \| "recording.error" \| "recording.health.degraded" \| "recording.health.stalled" \| "recording.health.ok" \| "recording.storage.critical" \| "storage.location.low" \| "storage.location.critical" \| "storage.location.ok" \| "storage.drain.progress" \| "storage.drain.complete" \| "recording.segment.written" \| "recording.policy.fallback" \| "recording.retention.completed" \| "recording.export.progress" \| "recording.export.completed" \| "recording.export.failed" \| "detection.event" \| "session.track.new" \| "session.track.expired" \| "benchmark.progress" \| "platform-probe.phase" \| "pipeline.progress" \| "pipeline.trace" \| "pipeline.inference-result" \| "pipeline.camera-assigned" \| "pipeline.camera-unassigned" \| "pipeline.node-inference-unavailable" \| "pipeline.detection-blind" \| "pipeline.motion-noisy" \| "pipeline.motion-calm" \| "pipeline.package-llm-silent" \| "pipeline.package-llm-answered" \| "pipeline.camera-updated" \| "pipeline.ingest-owner-changed" \| "pipeline.runner-load-snapshot" \| "pipeline.camera-metrics-snapshot" \| "stream-broker.metrics-snapshot" \| "stream-broker.onCamStreamDemand" \| "stream-broker.onCamStreamIdle" \| "stream-broker.onRequestStreamSourceRefresh" \| "stream-params.changed" \| "device.state-changed" \| "device.command-settled" \| "device.native-shadow-changed" \| "zone-analytics.occupancy-changed" \| "battery.onStatusChanged" \| "network-link.onStatusChanged" \| "battery.onWakeStarted" \| "doorbell.onPressed" \| "running.started" \| "running.finished" \| "device-run.opened" \| "device-run.closed" \| "event-emitter.event" \| "pipeline.engine-metrics-snapshot" \| "pipeline.engine-provisioning" \| "cluster.topology-snapshot" \| "metrics.node-resources-snapshot" \| "metrics.node-processes-snapshot" \| "capability.binding-changed" \| "model.download.progress" \| "agent.registered" \| "agent.unregistered" \| "agent.online" \| "agent.offline" \| "worker.online" \| "worker.offline" \| "agent.task.dispatched" \| "agent.task.assigned" \| "agent.trpc.connected" \| "agent.ws.connected" \| "agent.ws.disconnected" \| "agent.backup.activated" \| "orchestration.settings-updated" \| "detection.motion-analysis" \| "detection.motion-zones-raw" \| "motion.on-motion-changed" \| "detection.result" \| "detection.raw" \| "detection.camera-native" \| "pipeline.audio-inference-result" \| "detection.phase-transition" \| "provider.motion" \| "provider.detection" \| "enrichment.embedding.stored" \| "enrichment.scene.state-changed" \| "enrichment.activity.summary" \| "pipeline-analytics.track-lifecycle" \| "pipeline-analytics.track-started" \| "pipeline-analytics.track-ended" \| "pipeline-analytics.detection-event" \| "pipeline-analytics.frame-tracked" \| "pipeline-analytics.stationary-changed" \| "pipeline-analytics.package-delivered" \| "pipeline-analytics.package-picked-up" \| "pipeline-analytics.face-gallery-changed" \| "pipeline-analytics.plate-gallery-changed" \| "camera-streams.onProfileSlotsChanged" \| "stream.online" \| "stream.offline" \| "network.tunnel.started" \| "network.tunnel.stopped" \| "network.local.changed" \| "network.mesh.changed" \| "backup.completed" \| "backup.run-completed" \| "backup.restored" \| "notification.dispatched" \| "notification.failed" \| "notification.rule-broken" \| "notification.rule-repaired" \| "migration.failed" \| "migration.applied" \| "device.updated" \| "device.online" \| "device.offline" \| "device.awake" \| "device.sleeping" \| "retention.cleanup" \| "addons.bulk-update-progress" \| "addons.job-progress" \| "addons.job-log" \| "accessories.onChildVisibilityChanged" \| "accessories.onAccessoriesChanged" \| "actions.onRunChanged" \| "model-convert.progress"; stateField: string; fieldKey: string })[] }` | | proposeRunningThreshold | `coreBlocks.proposeRunningThreshold` | query | admin | `{ deviceId: number; cap: string; fieldPath: string; deviceType?: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system" }` | `{ state: "proposal"; transform: { kind: "threshold"; comparison: "gte" \| "lte"; threshold: number; startDwellMs: number; stopDwellMs: number; minSamples?: number }; evidence: { tier: "raw" \| "5m"; spanMs: number; from: number; to: number; points: number; runsFound: number; pausesFound: number; longestPauseMs: number; pulsesFound: number; longestPulseMs: number; idleFloorW: number; noiseCeilingW: number; plateauW: number; replay: { intervals: number; extra: number; missed: number } }; confidence: "high" \| "medium" \| "low"; notes: string[] } \| { state: "insufficient"; reason: "no-history" \| "span-too-short" \| "truncated" \| "no-idle-floor" \| "no-runs" \| "no-separation"; evidence: { spanMs: number; points: number; runsFound: number }; fallback: { kind: "threshold"; comparison: "gte" \| "lte"; threshold: number; startDwellMs: number; stopDwellMs: number; minSamples?: number } }` | | reportAutomationRun | `coreBlocks.reportAutomationRun` | mutation | admin | `{ blockId: string; trace?: { runId: string; startedAt: number; endedAt: number; trigger: { kind: string; path?: string; outcome: "pass" \| "fail"; reason: string; vars: Record; hold?: { phase: "pending" \| "cancelled" \| "fired" \| "reseeded"; ms: number; mode: "held" \| "stable"; since?: number; deadline?: number } }; conditions: ({ path: string; kind: "all" \| "any" \| "not" \| "condition" \| "device-is" \| "expression" \| "stationary-present" \| "time-is" \| "triggered-by" \| "device-becomes" \| "device-event" \| "device-fired" \| "schedule" \| "interval" \| "manual" \| "detection" \| "stationary"; outcome: "pass" \| "fail" \| "not-evaluated"; reason: string; deviceId?: number; cap?: string; fieldPath?: string; operator?: string; expected?: string \| number \| boolean \| null \| (string \| number)[]; observed?: string \| number \| boolean \| null \| (string \| number)[] })[]; verdict?: { mode: { mode: "single" } \| { mode: "restart" } \| { mode: "queued"; max: number } \| { mode: "parallel"; max: number } \| { mode: "cooldown"; minutes: number }; decision: "run" \| "queued" \| "restart" \| "drop" \| "cooldown" \| "bypass"; reason: string }; steps: ({ path: string; kind: string; cap?: string; method?: string; actionId?: string; deviceId?: number; devices?: ({ deviceId: number; outcome: "ok" \| "error"; message?: string })[]; startedAt?: number; endedAt?: number; args?: Record; templates?: string[]; condition?: "true" \| "false" \| "unknown"; conditionReason?: string; outcome: "ok" \| "error" \| "not-run" \| "empty" \| "skipped" \| "failed-continued" \| "timed-out"; message?: string; else?: ({ path: string; kind: string; cap?: string; method?: string; actionId?: string; deviceId?: number; devices?: {…}[]; startedAt?: number; endedAt?: number; args?: Record; templates?: string[]; condition?: "true" \| "false" \| "unknown"; conditionReason?: string; outcome: "ok" \| "error" \| "not-run" \| "empty" \| "skipped" \| "failed-continued" \| "timed-out"; message?: string })[]; branch?: string; branchChecks?: ({ condition: "true" \| "false" \| "unknown"; conditionReason?: string })[]; iterations?: number; steps?: ({ path: string; kind: string; cap?: string; method?: string; actionId?: string; deviceId?: number; devices?: {…}[]; startedAt?: number; endedAt?: number; args?: Record; templates?: string[]; condition?: "true" \| "false" \| "unknown"; conditionReason?: string; outcome: "ok" \| "error" \| "not-run" \| "empty" \| "skipped" \| "failed-continued" \| "timed-out"; message?: string; branch?: string; branchChecks?: {…}[]; iterations?: number; steps?: {…}[] })[] })[]; outcome: "ran" \| "skipped-trigger" \| "skipped-conditions" \| "skipped-cooldown" \| "skipped-overlap" \| "failed" \| "aborted"; repeat: number; lastAt: number; scheduler?: "done" \| "missed" \| "inactive" \| "condition-false" \| "failed" \| "held" \| "gave-up" \| "overridden" \| "suspended-manual" }; runStartedAt?: number; keepTraces?: number }` | `void` | | getAutomationRunState | `coreBlocks.getAutomationRunState` | query | admin | `{ blockId: string }` | `{ version: 1; lastRunStartedAt: number \| null; traces: ({ runId: string; startedAt: number; endedAt: number; trigger: { kind: string; path?: string; outcome: "pass" \| "fail"; reason: string; vars: Record; hold?: { phase: "pending" \| "cancelled" \| "fired" \| "reseeded"; ms: number; mode: "held" \| "stable"; since?: number; deadline?: number } }; conditions: ({ path: string; kind: "all" \| "any" \| "not" \| "condition" \| "device-is" \| "expression" \| "stationary-present" \| "time-is" \| "triggered-by" \| "device-becomes" \| "device-event" \| "device-fired" \| "schedule" \| "interval" \| "manual" \| "detection" \| "stationary"; outcome: "pass" \| "fail" \| "not-evaluated"; reason: string; deviceId?: number; cap?: string; fieldPath?: string; operator?: string; expected?: string \| number \| boolean \| null \| (string \| number)[]; observed?: string \| number \| boolean \| null \| (string \| number)[] })[]; verdict?: { mode: { mode: "single" } \| { mode: "restart" } \| { mode: "queued"; max: number } \| { mode: "parallel"; max: number } \| { mode: "cooldown"; minutes: number }; decision: "run" \| "queued" \| "restart" \| "drop" \| "cooldown" \| "bypass"; reason: string }; steps: ({ path: string; kind: string; cap?: string; method?: string; actionId?: string; deviceId?: number; devices?: ({ deviceId: number; outcome: "ok" \| "error"; message?: string })[]; startedAt?: number; endedAt?: number; args?: Record; templates?: string[]; condition?: "true" \| "false" \| "unknown"; conditionReason?: string; outcome: "ok" \| "error" \| "not-run" \| "empty" \| "skipped" \| "failed-continued" \| "timed-out"; message?: string; else?: ({ path: string; kind: string; cap?: string; method?: string; actionId?: string; deviceId?: number; devices?: {…}[]; startedAt?: number; endedAt?: number; args?: Record; templates?: string[]; condition?: "true" \| "false" \| "unknown"; conditionReason?: string; outcome: "ok" \| "error" \| "not-run" \| "empty" \| "skipped" \| "failed-continued" \| "timed-out"; message?: string })[]; branch?: string; branchChecks?: ({ condition: "true" \| "false" \| "unknown"; conditionReason?: string })[]; iterations?: number; steps?: ({ path: string; kind: string; cap?: string; method?: string; actionId?: string; deviceId?: number; devices?: {…}[]; startedAt?: number; endedAt?: number; args?: Record; templates?: string[]; condition?: "true" \| "false" \| "unknown"; conditionReason?: string; outcome: "ok" \| "error" \| "not-run" \| "empty" \| "skipped" \| "failed-continued" \| "timed-out"; message?: string; branch?: string; branchChecks?: {…}[]; iterations?: number; steps?: {…}[] })[] })[]; outcome: "ran" \| "skipped-trigger" \| "skipped-conditions" \| "skipped-cooldown" \| "skipped-overlap" \| "failed" \| "aborted"; repeat: number; lastAt: number; scheduler?: "done" \| "missed" \| "inactive" \| "condition-false" \| "failed" \| "held" \| "gave-up" \| "overridden" \| "suspended-manual" })[] }` | | getTraces | `coreBlocks.getTraces` | query | admin | `{ blockId: string }` | `{ traces: ({ runId: string; startedAt: number; endedAt: number; trigger: { kind: string; path?: string; outcome: "pass" \| "fail"; reason: string; vars: Record; hold?: { phase: "pending" \| "cancelled" \| "fired" \| "reseeded"; ms: number; mode: "held" \| "stable"; since?: number; deadline?: number } }; conditions: ({ path: string; kind: "all" \| "any" \| "not" \| "condition" \| "device-is" \| "expression" \| "stationary-present" \| "time-is" \| "triggered-by" \| "device-becomes" \| "device-event" \| "device-fired" \| "schedule" \| "interval" \| "manual" \| "detection" \| "stationary"; outcome: "pass" \| "fail" \| "not-evaluated"; reason: string; deviceId?: number; cap?: string; fieldPath?: string; operator?: string; expected?: string \| number \| boolean \| null \| (string \| number)[]; observed?: string \| number \| boolean \| null \| (string \| number)[] })[]; verdict?: { mode: { mode: "single" } \| { mode: "restart" } \| { mode: "queued"; max: number } \| { mode: "parallel"; max: number } \| { mode: "cooldown"; minutes: number }; decision: "run" \| "queued" \| "restart" \| "drop" \| "cooldown" \| "bypass"; reason: string }; steps: ({ path: string; kind: string; cap?: string; method?: string; actionId?: string; deviceId?: number; devices?: ({ deviceId: number; outcome: "ok" \| "error"; message?: string })[]; startedAt?: number; endedAt?: number; args?: Record; templates?: string[]; condition?: "true" \| "false" \| "unknown"; conditionReason?: string; outcome: "ok" \| "error" \| "not-run" \| "empty" \| "skipped" \| "failed-continued" \| "timed-out"; message?: string; else?: ({ path: string; kind: string; cap?: string; method?: string; actionId?: string; deviceId?: number; devices?: {…}[]; startedAt?: number; endedAt?: number; args?: Record; templates?: string[]; condition?: "true" \| "false" \| "unknown"; conditionReason?: string; outcome: "ok" \| "error" \| "not-run" \| "empty" \| "skipped" \| "failed-continued" \| "timed-out"; message?: string })[]; branch?: string; branchChecks?: ({ condition: "true" \| "false" \| "unknown"; conditionReason?: string })[]; iterations?: number; steps?: ({ path: string; kind: string; cap?: string; method?: string; actionId?: string; deviceId?: number; devices?: {…}[]; startedAt?: number; endedAt?: number; args?: Record; templates?: string[]; condition?: "true" \| "false" \| "unknown"; conditionReason?: string; outcome: "ok" \| "error" \| "not-run" \| "empty" \| "skipped" \| "failed-continued" \| "timed-out"; message?: string; branch?: string; branchChecks?: {…}[]; iterations?: number; steps?: {…}[] })[] })[]; outcome: "ran" \| "skipped-trigger" \| "skipped-conditions" \| "skipped-cooldown" \| "skipped-overlap" \| "failed" \| "aborted"; repeat: number; lastAt: number; scheduler?: "done" \| "missed" \| "inactive" \| "condition-false" \| "failed" \| "held" \| "gave-up" \| "overridden" \| "suspended-manual" })[]; lastError: string \| null }` | ### `cover` → `cover.*` - **Source:** `packages/types/src/capabilities/cover.cap.ts:52` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `cover` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `ICoverProvider` - **runtimeState:** `CoverStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `cover.getStatus` | query | protected | `{ deviceId: number }` | `CoverStatusSchema` | | open | `cover.open` | mutation | protected | `{ deviceId: number }` | `void` | | close | `cover.close` | mutation | protected | `{ deviceId: number }` | `void` | | stop | `cover.stop` | mutation | protected | `{ deviceId: number }` | `void` | | setPosition | `cover.setPosition` | mutation | protected | `{ deviceId: number; position: number }` | `void` | | setTiltPosition | `cover.setTiltPosition` | mutation | protected | `{ deviceId: number; tiltPosition: number }` | `void` | ### `custom-model-registry` → `customModelRegistry.*` - **Source:** `packages/types/src/capabilities/custom-model-registry.cap.ts:93` - **Meta:** scope: `system` · mode: `collection` · mount: `collection` - **Archetypes:** internal - **Provider interface:** `ICustomModelRegistryProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listModels | `customModelRegistry.listModels` | query | admin | `void` | `CustomModelDescriptorSchema[]` | | importModelBundle | `customModelRegistry.importModelBundle` | mutation | admin | `ImportModelBundleInputSchema` | `ImportModelBundleResultSchema` | ### `data-store-provider` → `dataStoreProvider.*` - **Source:** `packages/types/src/capabilities/data-store-provider.cap.ts:77` - **Meta:** scope: `system` · mode: `collection` · mount: `collection` - **Archetypes:** internal - **Provider interface:** `IDataStoreProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getEngineInfo | `dataStoreProvider.getEngineInfo` | query | admin | `void` | `DataStoreEngineInfoSchema` | | get | `dataStoreProvider.get` | query | admin | `{ namespace?: string; collection: string; key: string }` | `unknown` | | set | `dataStoreProvider.set` | mutation | admin | `{ namespace?: string; collection: string; key: string; value: unknown }` | `void` | | query | `dataStoreProvider.query` | query | admin | `{ namespace?: string; collection: string; filter?: QueryFilterSchema; columns?: string[] }` | `SettingsRecordSchema[]` | | insert | `dataStoreProvider.insert` | mutation | admin | `{ namespace?: string; collection: string; record: { id?: string; data: Record } }` | `{ id: string \| number }` | | upsert | `dataStoreProvider.upsert` | mutation | admin | `{ namespace?: string; collection: string; conflict: string[]; record: BulkRecordSchema }` | `{ id: string \| number }` | | upsertMany | `dataStoreProvider.upsertMany` | mutation | admin | `{ namespace?: string; collection: string; conflict: string[]; records: BulkRecordSchema[] }` | `{ upserted: number }` | | insertMany | `dataStoreProvider.insertMany` | mutation | admin | `{ namespace?: string; collection: string; records: BulkRecordSchema[] }` | `{ inserted: number }` | | transact | `dataStoreProvider.transact` | mutation | admin | `{ namespace?: string; guard?: { collection: string; key: string; column: string; equals: unknown }; ops: ({ op: "deleteWhere"; collection: string; filter: MutationFilterSchema } \| { op: "insertMany"; collection: string; records: BulkRecordSchema[] } \| { op: "update"; collection: string; id: string; data: Record } \| { op: "upsertMany"; collection: string; conflict: string[]; records: BulkRecordSchema[] })[] }` | `{ applied: boolean; current?: unknown }` | | update | `dataStoreProvider.update` | mutation | admin | `{ namespace?: string; collection: string; id: string; data: Record }` | `void` | | delete | `dataStoreProvider.delete` | mutation | admin | `{ namespace?: string; collection: string; key: string }` | `void` | | deleteWhere | `dataStoreProvider.deleteWhere` | mutation | admin | `{ namespace?: string; collection: string; filter: MutationFilterSchema }` | `{ deleted: number }` | | updateWhere | `dataStoreProvider.updateWhere` | mutation | admin | `{ namespace?: string; collection: string; filter: MutationFilterSchema; data: Record }` | `{ updated: number }` | | count | `dataStoreProvider.count` | query | admin | `{ namespace?: string; collection: string; filter?: QueryFilterSchema }` | `number` | | aggregate | `dataStoreProvider.aggregate` | query | admin | `{ namespace?: string; collection: string; fields: ({ as: string; field: string; op: "sum" \| "min" \| "max" })[]; filter?: QueryFilterSchema }` | `{ count: number; values: Record }` | | histogram | `dataStoreProvider.histogram` | query | admin | `{ namespace?: string; collection: string; field: string; bucketSize: number; origin: number; filter?: QueryFilterSchema }` | `({ bucket: number; count: number })[]` | | isEmpty | `dataStoreProvider.isEmpty` | query | admin | `{ namespace?: string; collection: string }` | `boolean` | | declareCollection | `dataStoreProvider.declareCollection` | mutation | admin | `DeclareCollectionInputSchema` | `void` | ### `database-snapshot` → `databaseSnapshot.*` - **Source:** `packages/types/src/capabilities/database-snapshot.cap.ts:126` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** internal - **Provider interface:** `IDatabaseSnapshotProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listDatabases | `databaseSnapshot.listDatabases` | query | admin | `{}` | `DatabaseSnapshotTargetsSchema` | | writeSnapshot | `databaseSnapshot.writeSnapshot` | mutation | admin | `DatabaseSnapshotRequestSchema` | `DatabaseSnapshotWrittenSchema` | ### `day-night` → `dayNight.*` - **Source:** `packages/types/src/capabilities/day-night.cap.ts:84` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `camera` - **Archetypes:** status(poll) · runtimeState · deviceConfig(derived-form) - **Provider interface:** `IDayNightProvider` - **runtimeState:** `DayNightStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `dayNight.getStatus` | query | protected | `{ deviceId: number }` | `DayNightStatusSchema` | | getOptions | `dayNight.getOptions` | query | protected | `{ deviceId: number }` | `DayNightOptionsSchema` | | setSettings | `dayNight.setSettings` | mutation | admin | `{ deviceId: number; settings: DayNightSettingsPatchSchema }` | `void` | ### `decoder` → `decoder.*` - **Source:** `packages/types/src/capabilities/decoder.cap.ts:54` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` · preferredProvider: `decoder-nodeav` - **Archetypes:** — - **Provider interface:** `IDecoderCapProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getInfo | `decoder.getInfo` | query | protected | `void` | `{ id: string; name: string; hwaccel?: string; probedBestHwaccel?: string }` | | reprobeHwaccel | `decoder.reprobeHwaccel` | mutation | admin | `void` | `{ backend: string }` | ### `detection-pipeline` → `detectionPipeline.*` - **Source:** `packages/types/src/capabilities/detection-pipeline.cap.ts:27` - **Meta:** scope: `device` · mode: `singleton` · mount: `device-scoped` · deviceTypes: `camera` - **Archetypes:** exposesDeviceSettings · wrapper(defaultActive) - **Provider interface:** `IDetectionPipelineProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getDeviceSettingsContribution _(auto)_ | `detectionPipeline.getDeviceSettingsContribution` | query | protected | `{ deviceId: number }` | `{ tabs?: ({ id: string; label: string; icon: string; order?: number })[]; sections: ({ id: string; title: string; description?: string; style?: "card" \| "accordion"; defaultCollapsed?: boolean; columns?: 1 \| 2 \| 3 \| 4; tab?: string; location?: "settings" \| "top-tab" \| "hero"; order?: number; fields: any[] })[] } \| null` | | getDeviceLiveContribution _(auto)_ | `detectionPipeline.getDeviceLiveContribution` | query | protected | `{ deviceId: number }` | `{ tabs?: ({ id: string; label: string; icon: string; order?: number })[]; sections: ({ id: string; title: string; description?: string; style?: "card" \| "accordion"; defaultCollapsed?: boolean; columns?: 1 \| 2 \| 3 \| 4; tab?: string; location?: "settings" \| "top-tab" \| "hero"; order?: number; fields: any[] })[] } \| null` | | applyDeviceSettingsPatch _(auto)_ | `detectionPipeline.applyDeviceSettingsPatch` | mutation | admin | `{ deviceId: number; patch: Record }` | `{ success: true }` | ### `device-admin-link` → `deviceAdminLink.*` - **Source:** `packages/types/src/capabilities/device-admin-link.cap.ts:108` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` - **Archetypes:** — - **Provider interface:** `IDeviceAdminLinkProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getAdminLink | `deviceAdminLink.getAdminLink` | query | admin | `{ deviceId: number }` | `DeviceAdminLinkSchema \| null` | ### `device-adoption` → `deviceAdoption.*` - **Source:** `packages/types/src/capabilities/device-adoption.cap.ts:291` - **Meta:** scope: `system` · mode: `collection` · mount: `collection` - **Archetypes:** status(poll) - **Provider interface:** `IDeviceAdoptionProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `deviceAdoption.getStatus` | query | protected | `{ deviceId: number }` | `AdoptionStatusSchema` | | listCandidateFilters | `deviceAdoption.listCandidateFilters` | query | admin | `{ integrationId: string }` | `{ filters: AdoptionFilterSchema[] }` | | listCandidates | `deviceAdoption.listCandidates` | query | admin | `AdoptionListCandidatesInputSchema` | `AdoptionListCandidatesOutputSchema` | | getCandidate | `deviceAdoption.getCandidate` | query | admin | `AdoptionGetCandidateInputSchema` | `{ childNativeId: string; name: string; type: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; status: DiscoveredChildStatusSchema; metadata?: { model?: string; serialNumber?: string; uid?: string; rtspChannel?: number; isBattery?: boolean; isDoorbell?: boolean; isMultifocal?: boolean; externalLocation?: string; manufacturer?: string; integration?: string } = {}; alreadyAdopted: boolean; adoptedDeviceId: number \| null; capabilities?: string[]; features?: string[]; sourceInfo?: { id: string; system: string; uniqueId?: string; quantity?: "temperature" \| "pressure" \| "speed" \| "precipitation" \| "precipitation-rate" \| "length" \| "area" \| "illuminance" \| "irradiance" \| "power" \| "energy" \| "voltage" \| "current" \| "apparent-power" \| "humidity" \| "percentage" \| "concentration-volume" \| "concentration-mass" \| "concentration-ppb" \| "volume" \| "duration" \| "duration-ms" \| "information" \| "sound-level" \| "signal-level" \| "signal-ratio" \| "frequency" \| "colour-temperature" \| "angle" \| "bitrate" \| "rate" \| "mass" \| "index" \| "ratio" \| "count" \| "none" \| "device"; dateTimeShape?: "date" \| "time" \| "datetime"; raw?: Record }; children?: self[]; parentStableId?: string } \| null` | | refresh | `deviceAdoption.refresh` | mutation | admin | `{ integrationId: string }` | `AdoptionStatusSchema` | | adopt | `deviceAdoption.adopt` | mutation | admin | `AdoptionAdoptInputSchema` | `AdoptionAdoptResultSchema` | | release | `deviceAdoption.release` | mutation | admin | `AdoptionReleaseInputSchema` | `void` | | resync | `deviceAdoption.resync` | mutation | admin | `{ camDeviceId: number; resetToSource?: boolean }` | `{ changed: boolean; rebuiltChildren: number; removedChildren?: number }` | ### `device-credentials` → `deviceCredentials.*` - **Source:** `packages/types/src/capabilities/device-credentials.cap.ts:40` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `IDeviceCredentialsProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listDeviceCredentials | `deviceCredentials.listDeviceCredentials` | query | admin | `{ userId?: string; includeRevoked?: boolean = false }` | `({ id: string; userId: string; username: string \| null; deviceName: string; platform: "ios" \| "android" \| "web" \| "other"; enrolledVia: "qr" \| "self"; fingerprint: string; issuedAt: number; expiresAt: number; lastUsedAt: number \| null; lastUsedFrom: string \| null; revokedAt: number \| null; revokedBy: string \| null; status: "active" \| "expired" \| "revoked" })[]` | | startEnrollment | `deviceCredentials.startEnrollment` | mutation | admin | `{ userId: string; deviceName: string }` | `{ code: string; expiresAt: number; enrollUrl: string; hubOrigin: string \| null; hubOrigins: string[] }` | | revokeDeviceCredential | `deviceCredentials.revokeDeviceCredential` | mutation | admin | `{ id: string }` | `{ revoked: boolean; sessionsEnded: number; status: "active" \| "expired" \| "revoked" }` | | getDeviceCertificateSettings | `deviceCredentials.getDeviceCertificateSettings` | query | admin | `{}` | `DeviceCertificateSettingsSchema` | | setDeviceCertificateSettings | `deviceCredentials.setDeviceCertificateSettings` | mutation | admin | `DeviceCertificateSettingsSchema` | `DeviceCertificateSettingsSchema` | | deleteDeviceCredential | `deviceCredentials.deleteDeviceCredential` | mutation | admin | `{ id: string }` | `{ result: "deleted" \| "live" \| "unknown" }` | | getDeviceCaStatus | `deviceCredentials.getDeviceCaStatus` | query | admin | `{}` | `DeviceCaStatusSchema` | | renameDeviceCredential | `deviceCredentials.renameDeviceCredential` | mutation | admin | `{ id: string; deviceName: string }` | `{ renamed: boolean }` | ### `device-export` → `deviceExport.*` - **Source:** `packages/types/src/capabilities/device-export.cap.ts:218` - **Meta:** scope: `system` · mode: `collection` · mount: `collection` · providerKind: `device-export` - **Archetypes:** status(poll) · exposesDeviceSettings - **Provider interface:** `IDeviceExportProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus | `deviceExport.getStatus` | query | protected | `DeviceExportInstancePinSchema` | `DeviceExportStatusSchema` | | getDeviceSettingsContribution _(auto)_ | `deviceExport.getDeviceSettingsContribution` | query | protected | `{ deviceId: number }` | `{ tabs?: ({ id: string; label: string; icon: string; order?: number })[]; sections: ({ id: string; title: string; description?: string; style?: "card" \| "accordion"; defaultCollapsed?: boolean; columns?: 1 \| 2 \| 3 \| 4; tab?: string; location?: "settings" \| "top-tab" \| "hero"; order?: number; fields: any[] })[] } \| null` | | getDeviceLiveContribution _(auto)_ | `deviceExport.getDeviceLiveContribution` | query | protected | `{ deviceId: number }` | `{ tabs?: ({ id: string; label: string; icon: string; order?: number })[]; sections: ({ id: string; title: string; description?: string; style?: "card" \| "accordion"; defaultCollapsed?: boolean; columns?: 1 \| 2 \| 3 \| 4; tab?: string; location?: "settings" \| "top-tab" \| "hero"; order?: number; fields: any[] })[] } \| null` | | applyDeviceSettingsPatch _(auto)_ | `deviceExport.applyDeviceSettingsPatch` | mutation | admin | `{ deviceId: number; patch: Record }` | `{ success: true }` | | listInstances | `deviceExport.listInstances` | query | protected | `void` | `ExportInstanceSchema[]` | | listSupportedDeviceKinds | `deviceExport.listSupportedDeviceKinds` | query | protected | `DeviceExportInstancePinSchema` | `string[]` | | listExposedDevices | `deviceExport.listExposedDevices` | query | protected | `DeviceExportInstancePinSchema` | `ExposedDeviceSchema[]` | | exposeDevice | `deviceExport.exposeDevice` | mutation | admin | `DeviceExportExposeInputSchema` | `void` | | unexposeDevice | `deviceExport.unexposeDevice` | mutation | admin | `DeviceExportUnexposeInputSchema` | `void` | | setExposedName | `deviceExport.setExposedName` | mutation | admin | `DeviceExportSetExposedNameInputSchema` | `void` | | listSupportedEntityKinds | `deviceExport.listSupportedEntityKinds` | query | protected | `void` | `ExportEntityKindSchema[]` | | listExposedEntities | `deviceExport.listExposedEntities` | query | protected | `DeviceExportInstancePinSchema` | `ExposedEntitySchema[]` | | exposeEntity | `deviceExport.exposeEntity` | mutation | admin | `ExposeEntityInputSchema` | `void` | | unexposeEntity | `deviceExport.unexposeEntity` | mutation | admin | `UnexposeEntityInputSchema` | `void` | ### `device-extension` → `deviceExtension.*` - **Source:** `packages/types/src/capabilities/device-extension.cap.ts:195` - **Meta:** scope: `device` · mode: `collection` · mount: `device-scoped` · deviceTypes: `camera` - **Archetypes:** deviceConfig(widget) · wrapper(defaultActive) - **Provider interface:** `IDeviceExtensionProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listSources | `deviceExtension.listSources` | query | protected | `{ deviceId: number }` | `ExtensionSourceSchema[]` | | listSlots | `deviceExtension.listSlots` | query | protected | `{ deviceId: number }` | `ExtensionSlotRowSchema[]` | | listCandidates | `deviceExtension.listCandidates` | query | protected | `ExtensionSlotRefInputSchema` | `ExtensionCandidatesSchema` | | setSlot | `deviceExtension.setSlot` | mutation | admin | `ExtensionSetSlotInputSchema` | `ExtensionSetResultSchema` | ### `device-history` → `deviceHistory.*` - **Source:** `packages/types/src/capabilities/device-history.cap.ts:295` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `IDeviceHistoryProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listSeries | `deviceHistory.listSeries` | query | protected | `{ deviceId: number }` | `({ key: string; scope: string; kind: DeviceHistoryKindSchema; unit: string \| null; displayName: string; source: "cap" \| "addon" \| "derived"; values: string[] \| null; firstTs: number; lastTs: number })[]` | | listNodeSeries | `deviceHistory.listNodeSeries` | query | admin | `{ forNodeId: string }` | `({ key: string; scope: string; kind: DeviceHistoryKindSchema; unit: string \| null; displayName: string; source: "cap" \| "addon" \| "derived"; values: string[] \| null; firstTs: number; lastTs: number })[]` | | query | `deviceHistory.query` | query | protected | `{ deviceId: number; key: string; scope?: string; from: number; to: number; resolution?: DeviceHistoryResolutionSchema \| "auto" = "auto"; maxPoints?: number = 1000 }` | `{ resolution: DeviceHistoryResolutionSchema; series: ({ scope: string; before: { t: number; value: number \| null; state: string \| null } \| null; points: ({ t: number; samples: number; mean: number \| null; twMean: number \| null; min: number; max: number; last: number \| null; delta: number \| null; state: string \| null; states: Record \| null })[]; derivedFrom: string \| null })[]; truncated: boolean }` | | queryNode | `deviceHistory.queryNode` | query | admin | `{ forNodeId: string; key: string; scope?: string; from: number; to: number; resolution?: DeviceHistoryResolutionSchema \| "auto" = "auto"; maxPoints?: number = 1000 }` | `{ resolution: DeviceHistoryResolutionSchema; series: ({ scope: string; before: { t: number; value: number \| null; state: string \| null } \| null; points: ({ t: number; samples: number; mean: number \| null; twMean: number \| null; min: number; max: number; last: number \| null; delta: number \| null; state: string \| null; states: Record \| null })[]; derivedFrom: string \| null })[]; truncated: boolean }` | | queryMany | `deviceHistory.queryMany` | query | admin | `{ items: ({ deviceId: number; key: string; scope?: string } \| { forNodeId: string; key: string; scope?: string })[]; from: number; to: number; resolution?: DeviceHistoryResolutionSchema \| "auto" = "auto"; maxPoints?: number = 1000 }` | `{ results: ({ ok: true; result: { resolution: DeviceHistoryResolutionSchema; series: ({ scope: string; before: {…} \| null; points: {…}[]; derivedFrom: string \| null })[]; truncated: boolean } } \| { ok: false; error: string })[] }` | | declareSeries | `deviceHistory.declareSeries` | mutation | admin | `{ name: string; subjectKind: "device" \| "node"; kind: DeviceHistoryProducerKindSchema; unit?: string; displayName: string; ingest: "points" \| "buckets" }` | `{ key: string }` | | record | `deviceHistory.record` | mutation | admin | `{ points: ({ key: string; subject: DeviceHistorySubjectSchema; scope?: string = ""; ts: number; value: number })[] }` | `{ accepted: number; refused: ({ key: string; reason: DeviceHistoryRefusalReasonSchema; count: number })[] }` | | recordBuckets | `deviceHistory.recordBuckets` | mutation | admin | `{ buckets: ({ key: string; subject: DeviceHistorySubjectSchema; scope?: string = ""; bucketStart: number; samples: number; sum: number; min: number; max: number; last: number \| null; lastTs: number \| null })[] }` | `{ accepted: number; refused: ({ key: string; reason: DeviceHistoryRefusalReasonSchema; count: number })[] }` | | getDeviceEnabled | `deviceHistory.getDeviceEnabled` | query | protected | `{ deviceId: number }` | `{ enabled: boolean }` | | setDeviceEnabled | `deviceHistory.setDeviceEnabled` | mutation | admin | `{ deviceId: number; enabled: boolean }` | `{ enabled: boolean }` | | getStatus | `deviceHistory.getStatus` | query | admin | `{}` | `DeviceHistoryStatusSchema` | | listOrphanSeries | `deviceHistory.listOrphanSeries` | query | admin | `{}` | `{ series: ({ seriesId: number; deviceId: number; key: string; scope: string; displayName: string \| null; reason: DeviceHistoryOrphanReasonSchema; missingSince: number \| null; firstTs: number; lastTs: number; rows: { raw: number; 5m: number; 1h: number; 1d: number } })[]; truncated: boolean }` | | deleteOrphanSeries | `deviceHistory.deleteOrphanSeries` | mutation | admin | `{ seriesIds: number[] }` | `{ results: ({ seriesId: number; ok: true; deleted: { raw: number; 5m: number; 1h: number; 1d: number } } \| { seriesId: number; ok: false; reason: DeviceHistoryOrphanDeleteRefusalSchema })[] }` | ### `device-manager` → `deviceManager.*` - **Source:** `packages/types/src/capabilities/device-manager.cap.ts:542` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `IDeviceManagerProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | allocateDeviceId | `deviceManager.allocateDeviceId` | mutation | protected | `{ addonId: string; stableId: string }` | `{ id: number }` | | migrateDevice | `deviceManager.migrateDevice` | mutation | admin | `{ sourceId: number; targetId: number }` | `MigrateDeviceResultSchema` | | registerDevice | `deviceManager.registerDevice` | mutation | protected | `{ addonId: string; stableId: string; id: number; type: string; name: string; location?: string \| null; disabled?: boolean; parentDeviceId: number \| null; role?: string \| null; features?: string[]; config: Record; secretConfigPaths?: string[] }` | `void` | | removeDevice | `deviceManager.removeDevice` | mutation | protected | `{ deviceId: number }` | `void` | | persistConfig | `deviceManager.persistConfig` | mutation | admin | `{ deviceId: number; data: Record; secretConfigPaths?: string[] }` | `void` | | loadConfig | `deviceManager.loadConfig` | query | admin | `{ deviceId: number }` | `Record` | | loadRuntimeState | `deviceManager.loadRuntimeState` | query | admin | `{ deviceId: number }` | `Record` | | loadMeta | `deviceManager.loadMeta` | query | protected | `{ deviceId: number }` | `{ id: number; stableId: string; addonId: string; type: string; name: string; userNamed?: boolean; location: string \| null; tags?: string[]; disabled: boolean; parentDeviceId: number \| null; metadata?: Record \| null; sourceInfo?: { id: string; system: string; uniqueId?: string; quantity?: "temperature" \| "pressure" \| "speed" \| "precipitation" \| "precipitation-rate" \| "length" \| "area" \| "illuminance" \| "irradiance" \| "power" \| "energy" \| "voltage" \| "current" \| "apparent-power" \| "humidity" \| "percentage" \| "concentration-volume" \| "concentration-mass" \| "concentration-ppb" \| "volume" \| "duration" \| "duration-ms" \| "information" \| "sound-level" \| "signal-level" \| "signal-ratio" \| "frequency" \| "colour-temperature" \| "angle" \| "bitrate" \| "rate" \| "mass" \| "index" \| "ratio" \| "count" \| "none" \| "device"; dateTimeShape?: "date" \| "time" \| "datetime"; raw?: Record }; integrationId?: string; linkDeviceId?: number \| null; primaryChildEntityId?: string \| null; childLayout?: ({ childKey: string; section: string; order?: number; collapsed?: boolean })[]; primaryChildPreference?: string[]; role?: string \| null; display?: { icon?: string; label?: string; unit?: string; precision?: number; hidden?: boolean; perCap?: Record } } \| null` | | setName | `deviceManager.setName` | mutation | admin | `{ deviceId: number; name: string; stampUserNamed?: boolean }` | `void` | | setAlias | `deviceManager.setAlias` | mutation | admin | `{ deviceId: number; alias: string }` | `{ ok: true; alias: string } \| { ok: false; reason: "empty" \| "too-long" \| "grammar" \| "reserved" \| "taken"; takenBy?: number }` | | renderDeviceTemplates | `deviceManager.renderDeviceTemplates` | query | admin | `{ templates: string[]; allowedDeviceIds?: number[]; thisDevice?: { deviceId: number; values?: Record } }` | `{ results: ({ ok: true; text: string; trace: ({ ref: string; reason: "unknown-alias" \| "unknown-field" \| "no-field" \| "unavailable" })[] } \| { ok: false; refusal: { reason: "too-long" \| "syntax" \| "forbidden-syntax" \| "forbidden-member" \| "unknown-filter" \| "ambiguous-field" \| "busy" \| "budget-exceeded" \| "timeout" \| "output-too-large" \| "render-failed" \| "out-of-scope" \| "unavailable"; message: string }; trace: ({ ref: string; reason: "unknown-alias" \| "unknown-field" \| "no-field" \| "unavailable" })[] })[] }` | | checkDeviceTemplates | `deviceManager.checkDeviceTemplates` | query | admin | `{ templates: string[]; allowedDeviceIds?: number[]; thisDevice?: { deviceId: number; values?: Record } }` | `{ results: ({ ok: true; aliases: ({ alias: string; deviceId: number \| null; allowed: boolean; reads: string[] })[]; readsClock: boolean } \| { ok: false; refusal: { reason: "too-long" \| "syntax" \| "forbidden-syntax" \| "forbidden-member" \| "unknown-filter" \| "ambiguous-field" \| "busy" \| "budget-exceeded" \| "timeout" \| "output-too-large" \| "render-failed" \| "out-of-scope" \| "unavailable"; message: string } })[] }` | | setLocation | `deviceManager.setLocation` | mutation | admin | `{ deviceId: number; location: string \| null }` | `void` | | setTags | `deviceManager.setTags` | mutation | admin | `{ deviceId: number; tags: string[] }` | `void` | | setType | `deviceManager.setType` | mutation | admin | `{ deviceId: number; type: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system" }` | `void` | | setIntegrationId | `deviceManager.setIntegrationId` | mutation | admin | `{ deviceId: number; integrationId: string }` | `void` | | setLinkDeviceId | `deviceManager.setLinkDeviceId` | mutation | admin | `{ deviceId: number; linkDeviceId: number \| null }` | `void` | | setPrimaryChildEntityId | `deviceManager.setPrimaryChildEntityId` | mutation | admin | `{ deviceId: number; primaryChildEntityId: string \| null }` | `void` | | setChildLayout | `deviceManager.setChildLayout` | mutation | admin | `{ deviceId: number; childLayout: ({ childKey: string; section: string; order?: number; collapsed?: boolean })[] }` | `void` | | setPrimaryChildPreference | `deviceManager.setPrimaryChildPreference` | mutation | admin | `{ deviceId: number; primaryChildPreference: string[] }` | `void` | | setDisplay | `deviceManager.setDisplay` | mutation | admin | `{ deviceId: number; display: { icon?: string; label?: string; unit?: string; precision?: number; hidden?: boolean; perCap?: Record } \| null }` | `void` | | getRoleDisplayDefaults | `deviceManager.getRoleDisplayDefaults` | query | protected | `{}` | `{ defaults: Record }` | | setRoleDisplayDefaults | `deviceManager.setRoleDisplayDefaults` | mutation | admin | `{ defaults: Record }` | `void` | | getWireableFields | `deviceManager.getWireableFields` | query | protected | `{ deviceId: number; includeSynthesizable?: boolean }` | `{ caps: ({ cap: string; fields: ({ path: string; kind: "string" \| "number" \| "boolean" \| "enum" \| "union"; unionMembers?: ("string" \| "number" \| "boolean")[]; enumValues?: string[]; item?: boolean; quantity?: "temperature" \| "pressure" \| "speed" \| "precipitation" \| "precipitation-rate" \| "length" \| "area" \| "illuminance" \| "irradiance" \| "power" \| "energy" \| "voltage" \| "current" \| "apparent-power" \| "humidity" \| "percentage" \| "concentration-volume" \| "concentration-mass" \| "concentration-ppb" \| "volume" \| "duration" \| "duration-ms" \| "information" \| "sound-level" \| "signal-level" \| "signal-ratio" \| "frequency" \| "colour-temperature" \| "angle" \| "bitrate" \| "rate" \| "mass" \| "index" \| "ratio" \| "count" \| "none" \| "device" })[]; itemArray?: { path: string; keyField: string } })[] }` | | setRole | `deviceManager.setRole` | mutation | admin | `{ deviceId: number; role: string \| null }` | `void` | | applyInitialMeta | `deviceManager.applyInitialMeta` | mutation | admin | `{ deviceId: number; name?: string; location?: string \| null; tags?: string[]; type?: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; integrationId?: string; linkDeviceId?: number \| null; role?: string \| null }` | `void` | | setMetadata | `deviceManager.setMetadata` | mutation | admin | `{ deviceId: number; patch: Record }` | `void` | | listLocations | `deviceManager.listLocations` | query | protected | `void` | `string[]` | | addLocation | `deviceManager.addLocation` | mutation | admin | `{ name: string }` | `void` | | removeLocation | `deviceManager.removeLocation` | mutation | admin | `{ name: string; cascade?: boolean }` | `void` | | renameLocation | `deviceManager.renameLocation` | mutation | admin | `{ from: string; to: string }` | `{ moved: number }` | | listLocationIcons | `deviceManager.listLocationIcons` | query | protected | `void` | `({ locationKey: string; icon: })[]` | | setLocationIcon | `deviceManager.setLocationIcon` | mutation | admin | `{ location: string; icon: \| null }` | `void` | | listLocationDescriptions | `deviceManager.listLocationDescriptions` | query | protected | `void` | `({ locationKey: string; description: string })[]` | | setLocationDescription | `deviceManager.setLocationDescription` | mutation | admin | `{ location: string; description: string \| null }` | `void` | | listSiteZones | `deviceManager.listSiteZones` | query | protected | `void` | `({ zoneKey: string; label: string; icon: \| null; locationKeys: string[] })[]` | | setSiteZone | `deviceManager.setSiteZone` | mutation | admin | `{ name: string; icon?: \| null }` | `void` | | removeSiteZone | `deviceManager.removeSiteZone` | mutation | admin | `{ name: string }` | `void` | | renameSiteZone | `deviceManager.renameSiteZone` | mutation | admin | `{ from: string; to: string }` | `void` | | setLocationZone | `deviceManager.setLocationZone` | mutation | admin | `{ location: string; zone: string \| null }` | `void` | | setDisabled | `deviceManager.setDisabled` | mutation | admin | `{ deviceId: number; disabled: boolean }` | `void` | | listPersistedByAddon | `deviceManager.listPersistedByAddon` | query | protected | `{ addonId: string }` | `({ id: number; stableId: string; type: string; name: string; location: string \| null; tags?: string[]; disabled: boolean; parentDeviceId: number \| null; role?: string \| null })[]` | | listAll | `deviceManager.listAll` | query | protected | `{ addonId?: string; projection?: "full" \| "slim"; isCamera?: boolean; deviceIds?: number[] }` | `DeviceInfoSchema[]` | | search | `deviceManager.search` | query | protected | `DeviceSearchInputSchema` | `DeviceSearchResultSchema` | | getDevice | `deviceManager.getDevice` | query | protected | `{ deviceId: number }` | `DeviceInfoSchema \| null` | | getChildren | `deviceManager.getChildren` | query | protected | `{ parentDeviceId: number }` | `DeviceInfoSchema[]` | | getChildrenBatch | `deviceManager.getChildrenBatch` | query | protected | `{ parentDeviceIds: number[] }` | `Record` | | getLinkedDevices | `deviceManager.getLinkedDevices` | query | protected | `{ deviceId: number }` | `{ mode: LinkedDevicesModeSchema; devices: LinkedDeviceSchema[] }` | | getLinkedDevicesBatch | `deviceManager.getLinkedDevicesBatch` | query | protected | `{ deviceIds: number[] }` | `({ deviceId: number; mode: LinkedDevicesModeSchema; devices: LinkedDeviceSchema[] })[]` | | getStreamSources | `deviceManager.getStreamSources` | query | protected | `{ deviceId: number }` | `StreamSourceEntrySchema[]` | | getConfigSchema | `deviceManager.getConfigSchema` | query | protected | `{ deviceId: number }` | `ConfigEntrySchema[]` | | getSettingsSchema | `deviceManager.getSettingsSchema` | query | protected | `{ deviceId: number }` | `unknown \| null` | | updateConfig | `deviceManager.updateConfig` | mutation | admin | `{ deviceId: number; values: Record }` | `{ success: true }` | | enable | `deviceManager.enable` | mutation | admin | `{ deviceId: number }` | `{ success: true }` | | disable | `deviceManager.disable` | mutation | admin | `{ deviceId: number }` | `{ success: true }` | | remove | `deviceManager.remove` | mutation | admin | `{ deviceId: number }` | `{ success: true }` | | listDeletedSince | `deviceManager.listDeletedSince` | query | admin | `{ sinceMs: number }` | `DeviceTombstoneSchema[]` | | cleanupDeletedDevicesData | `deviceManager.cleanupDeletedDevicesData` | mutation | admin | `{ confirm: boolean }` | `CleanupDeletedDevicesResultSchema` | | removeByIntegration | `deviceManager.removeByIntegration` | mutation | admin | `{ integrationId: string }` | `{ removed: number }` | | getStreamProfileMap | `deviceManager.getStreamProfileMap` | query | protected | `{ deviceId: number }` | `Record` | | setStreamProfileMap | `deviceManager.setStreamProfileMap` | mutation | admin | `{ deviceId: number; profileMap: Record }` | `{ success: true }` | | probeStreams | `deviceManager.probeStreams` | mutation | admin | `{ deviceId: number }` | `({ streamId: string; width?: number; height?: number; codec?: string; fps?: number; bitrateKbps?: number })[]` | | getBindings | `deviceManager.getBindings` | query | protected | `{ deviceId: number }` | `{ deviceId: number; entries: ({ capName: string; kind: "native" \| "wrapped"; providerAddonId: string; providerNodeId: string; nativeAddonId: string; implementedMethods?: string[] })[] }` | | getBindingsBatch | `deviceManager.getBindingsBatch` | query | protected | `{ deviceIds: number[] }` | `({ deviceId: number; entries: ({ capName: string; kind: "native" \| "wrapped"; providerAddonId: string; providerNodeId: string; nativeAddonId: string; implementedMethods?: string[] })[] })[]` | | getAllBindings | `deviceManager.getAllBindings` | query | protected | `{}` | `({ deviceId: number; entries: ({ capName: string; kind: "native" \| "wrapped"; providerAddonId: string; providerNodeId: string; nativeAddonId: string; implementedMethods?: string[] })[] })[]` | | listDeviceIdsByCaps | `deviceManager.listDeviceIdsByCaps` | query | protected | `{ capNames: string[] }` | `number[]` | | setWrapperActive | `deviceManager.setWrapperActive` | mutation | admin | `{ deviceId: number; capName: string; wrapperAddonId: string; active: boolean }` | `void` | | getWrapperActivation | `deviceManager.getWrapperActivation` | query | protected | `{ deviceId: number; capName: string }` | `WrapperActivationReadSchema` | | listWrappersForCap | `deviceManager.listWrappersForCap` | query | protected | `{ capName: string }` | `string[]` | | listBindableCapsForDeviceType | `deviceManager.listBindableCapsForDeviceType` | query | protected | `{ deviceType: string }` | `({ capName: string; wrappers: string[] })[]` | | getDeviceSettingsAggregate | `deviceManager.getDeviceSettingsAggregate` | query | protected | `{ deviceId: number }` | `SettingsSchemaWithValuesSchema \| null` | | getDeviceLiveInfoAggregate | `deviceManager.getDeviceLiveInfoAggregate` | query | protected | `{ deviceId: number }` | `SettingsSchemaWithValuesSchema \| null` | | getDeviceAggregate | `deviceManager.getDeviceAggregate` | query | protected | `{ deviceId: number }` | `{ settings: SettingsSchemaWithValuesSchema \| null; live: SettingsSchemaWithValuesSchema \| null }` | | runDeviceAction | `deviceManager.runDeviceAction` | mutation | protected | `{ deviceId: number; action: string; input: unknown }` | `unknown` | | updateDeviceField | `deviceManager.updateDeviceField` | mutation | admin | `{ deviceId: number; writerCapName: string; writerAddonId: string; key: string; value: unknown }` | `{ success: true }` | | updateDeviceFieldsBatch | `deviceManager.updateDeviceFieldsBatch` | mutation | admin | `{ deviceId: number; changes: ({ writerCapName: string; writerAddonId: string; key: string; value: unknown })[] }` | `{ success: true; failures: ({ writerCapName: string; writerAddonId: string; error: string })[] }` | | discoverDevices | `deviceManager.discoverDevices` | mutation | admin | `{ addonId: string }` | `({ stableId: string; type: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; suggestedName: string; prefilledConfig: Record; sourceInfo?: { id: string; system: string; uniqueId?: string; quantity?: "temperature" \| "pressure" \| "speed" \| "precipitation" \| "precipitation-rate" \| "length" \| "area" \| "illuminance" \| "irradiance" \| "power" \| "energy" \| "voltage" \| "current" \| "apparent-power" \| "humidity" \| "percentage" \| "concentration-volume" \| "concentration-mass" \| "concentration-ppb" \| "volume" \| "duration" \| "duration-ms" \| "information" \| "sound-level" \| "signal-level" \| "signal-ratio" \| "frequency" \| "colour-temperature" \| "angle" \| "bitrate" \| "rate" \| "mass" \| "index" \| "ratio" \| "count" \| "none" \| "device"; dateTimeShape?: "date" \| "time" \| "datetime"; raw?: Record }; alreadyOnboarded?: boolean; onboardedDeviceId?: number; onboardedName?: string; setupIntegration?: boolean; parentStableId?: string; selectable?: boolean; needsParams?: string[] })[]` | | adoptDevice | `deviceManager.adoptDevice` | mutation | admin | `{ addonId: string; candidate: { stableId: string; type: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; suggestedName: string; prefilledConfig: Record; sourceInfo?: { id: string; system: string; uniqueId?: string; quantity?: "temperature" \| "pressure" \| "speed" \| "precipitation" \| "precipitation-rate" \| "length" \| "area" \| "illuminance" \| "irradiance" \| "power" \| "energy" \| "voltage" \| "current" \| "apparent-power" \| "humidity" \| "percentage" \| "concentration-volume" \| "concentration-mass" \| "concentration-ppb" \| "volume" \| "duration" \| "duration-ms" \| "information" \| "sound-level" \| "signal-level" \| "signal-ratio" \| "frequency" \| "colour-temperature" \| "angle" \| "bitrate" \| "rate" \| "mass" \| "index" \| "ratio" \| "count" \| "none" \| "device"; dateTimeShape?: "date" \| "time" \| "datetime"; raw?: Record }; alreadyOnboarded?: boolean; onboardedDeviceId?: number; onboardedName?: string; setupIntegration?: boolean; parentStableId?: string; selectable?: boolean; needsParams?: string[] }; integrationId?: string }` | `{ id: number; stableId: string; addonId: string; type: string; name: string; parentDeviceId: number \| null; online: boolean; features: string[]; config: Record; sourceInfo?: { id: string; system: string; uniqueId?: string; quantity?: "temperature" \| "pressure" \| "speed" \| "precipitation" \| "precipitation-rate" \| "length" \| "area" \| "illuminance" \| "irradiance" \| "power" \| "energy" \| "voltage" \| "current" \| "apparent-power" \| "humidity" \| "percentage" \| "concentration-volume" \| "concentration-mass" \| "concentration-ppb" \| "volume" \| "duration" \| "duration-ms" \| "information" \| "sound-level" \| "signal-level" \| "signal-ratio" \| "frequency" \| "colour-temperature" \| "angle" \| "bitrate" \| "rate" \| "mass" \| "index" \| "ratio" \| "count" \| "none" \| "device"; dateTimeShape?: "date" \| "time" \| "datetime"; raw?: Record } }` | | getCreationSchema | `deviceManager.getCreationSchema` | query | protected | `{ addonId: string; type: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; integrationId?: string }` | `unknown \| null` | | createDevice | `deviceManager.createDevice` | mutation | admin | `{ addonId: string; type: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; config: Record; integrationId?: string }` | `{ id: number; stableId: string; addonId: string; type: string; name: string; parentDeviceId: number \| null; online: boolean; features: string[]; config: Record; sourceInfo?: { id: string; system: string; uniqueId?: string; quantity?: "temperature" \| "pressure" \| "speed" \| "precipitation" \| "precipitation-rate" \| "length" \| "area" \| "illuminance" \| "irradiance" \| "power" \| "energy" \| "voltage" \| "current" \| "apparent-power" \| "humidity" \| "percentage" \| "concentration-volume" \| "concentration-mass" \| "concentration-ppb" \| "volume" \| "duration" \| "duration-ms" \| "information" \| "sound-level" \| "signal-level" \| "signal-ratio" \| "frequency" \| "colour-temperature" \| "angle" \| "bitrate" \| "rate" \| "mass" \| "index" \| "ratio" \| "count" \| "none" \| "device"; dateTimeShape?: "date" \| "time" \| "datetime"; raw?: Record } }` | | testCreationField | `deviceManager.testCreationField` | mutation | admin | `{ addonId: string; type: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; key: string; value: unknown; formValues?: Record }` | `{ status: "ok" \| "error"; labels?: string[]; error?: string }` | | adoptionListCandidateFilters | `deviceManager.adoptionListCandidateFilters` | query | admin | `{ addonId: string; integrationId: string }` | `{ filters: AdoptionFilterSchema[] }` | | adoptionListCandidates | `deviceManager.adoptionListCandidates` | query | admin | `{ integrationId: string; page?: number = 1; pageSize?: number = 50; filter?: string; filterText?: CandidateQueryFilterSchema; addonId: string }` | `AdoptionListCandidatesOutputSchema` | | adoptionRefresh | `deviceManager.adoptionRefresh` | mutation | admin | `{ addonId: string; integrationId: string }` | `AdoptionStatusSchema` | | adoptionAdopt | `deviceManager.adoptionAdopt` | mutation | admin | `{ integrationId: string; childNativeIds: string[]; filter?: string; importLocations?: boolean; perCandidate?: Record; addonId: string }` | `AdoptionAdoptResultSchema` | | adoptionRelease | `deviceManager.adoptionRelease` | mutation | admin | `{ integrationId: string; camDeviceId: number; addonId: string }` | `void` | | adoptionStartJob | `deviceManager.adoptionStartJob` | mutation | admin | `{ integrationId: string; childNativeIds: string[]; filter?: string; importLocations?: boolean; perCandidate?: Record; addonId: string }` | `{ jobId: string }` | | adoptionListJobs | `deviceManager.adoptionListJobs` | query | admin | `{ addonId: string; integrationId?: string }` | `({ jobId: string; addonId: string; integrationId: string; state: "running" \| "done" \| "failed" \| "cancelled"; total: number; processed: number; adopted: number; alreadyAdopted: number; failed: number; accessoriesCreated: number; currentChildNativeId: string \| null; results: ({ childNativeId: string; outcome: "adopted" \| "already-adopted" \| "failed" \| "cancelled"; parentDeviceId: number \| null; accessoryCount: number; error: string \| null })[]; startedAt: number; finishedAt: number \| null; error: string \| null })[]` | | adoptionCancelJob | `deviceManager.adoptionCancelJob` | mutation | admin | `{ jobId: string }` | `{ cancelled: boolean }` | | adoptionResync | `deviceManager.adoptionResync` | mutation | admin | `{ camDeviceId: number; resetToSource?: boolean }` | `{ changed: boolean; rebuiltChildren: number; removedChildren?: number }` | | discoveryProviders | `deviceManager.discoveryProviders` | query | admin | `{}` | `{ providers: ({ addonId: string; label: string })[] }` | | discoverAllProviders | `deviceManager.discoverAllProviders` | mutation | admin | `{ subnets?: string[] }` | `{ groups: ({ addonId: string; label: string; candidates: ({ stableId: string; type: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; suggestedName: string; prefilledConfig: Record; sourceInfo?: { id: string; system: string; uniqueId?: string; quantity?: "temperature" \| "pressure" \| "speed" \| "precipitation" \| "precipitation-rate" \| "length" \| "area" \| "illuminance" \| "irradiance" \| "power" \| "energy" \| "voltage" \| "current" \| "apparent-power" \| "humidity" \| "percentage" \| "concentration-volume" \| "concentration-mass" \| "concentration-ppb" \| "volume" \| "duration" \| "duration-ms" \| "information" \| "sound-level" \| "signal-level" \| "signal-ratio" \| "frequency" \| "colour-temperature" \| "angle" \| "bitrate" \| "rate" \| "mass" \| "index" \| "ratio" \| "count" \| "none" \| "device"; dateTimeShape?: "date" \| "time" \| "datetime"; raw?: Record }; alreadyOnboarded?: boolean; onboardedDeviceId?: number; onboardedName?: string; setupIntegration?: boolean; parentStableId?: string; selectable?: boolean; needsParams?: string[] })[]; error: string \| null })[] }` | | discoverProvider | `deviceManager.discoverProvider` | mutation | admin | `{ addonId: string; params?: Record; subnets?: string[] }` | `{ candidates: ({ stableId: string; type: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; suggestedName: string; prefilledConfig: Record; sourceInfo?: { id: string; system: string; uniqueId?: string; quantity?: "temperature" \| "pressure" \| "speed" \| "precipitation" \| "precipitation-rate" \| "length" \| "area" \| "illuminance" \| "irradiance" \| "power" \| "energy" \| "voltage" \| "current" \| "apparent-power" \| "humidity" \| "percentage" \| "concentration-volume" \| "concentration-mass" \| "concentration-ppb" \| "volume" \| "duration" \| "duration-ms" \| "information" \| "sound-level" \| "signal-level" \| "signal-ratio" \| "frequency" \| "colour-temperature" \| "angle" \| "bitrate" \| "rate" \| "mass" \| "index" \| "ratio" \| "count" \| "none" \| "device"; dateTimeShape?: "date" \| "time" \| "datetime"; raw?: Record }; alreadyOnboarded?: boolean; onboardedDeviceId?: number; onboardedName?: string; setupIntegration?: boolean; parentStableId?: string; selectable?: boolean; needsParams?: string[] })[] }` | | listDiscoveryProposals | `deviceManager.listDiscoveryProposals` | query | admin | `{}` | `{ proposals: DiscoveryProposalSchema[] }` | | dismissDiscoveryProposal | `deviceManager.dismissDiscoveryProposal` | mutation | admin | `{ id: string }` | `{ dismissed: boolean }` | | reportDiscoveryObservations | `deviceManager.reportDiscoveryObservations` | mutation | admin | `{ observations: DiscoveryObservationSchema[] }` | `{ proposed: number }` | | runDiscoverySweep | `deviceManager.runDiscoverySweep` | mutation | admin | `{}` | `{ providers: number; proposed: number }` | | providerCreationType | `deviceManager.providerCreationType` | query | admin | `{ addonId: string; integrationId?: string }` | `{ deviceType: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system" \| null }` | | providerDiscoveryParamsSchema | `deviceManager.providerDiscoveryParamsSchema` | query | admin | `{ addonId: string }` | `unknown` | | testField | `deviceManager.testField` | mutation | admin | `{ deviceId: number; key: string; value: unknown }` | `{ status: "ok" \| "error"; labels?: string[]; error?: string }` | | getDeviceStatusAggregate | `deviceManager.getDeviceStatusAggregate` | query | protected | `{ deviceId: number; caps?: string[] }` | `Record` | | getDeviceStatusAggregateBatch | `deviceManager.getDeviceStatusAggregateBatch` | query | protected | `{ deviceIds: number[]; caps?: string[] }` | `Record>` | ### `device-ops` → `deviceOps.*` - **Source:** `packages/types/src/capabilities/device-ops.cap.ts:49` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` - **Archetypes:** — - **Provider interface:** `IDeviceOpsProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStreamSources | `deviceOps.getStreamSources` | query | protected | `{ deviceId: number }` | `({ id: string; label: string; protocol: "rtsp" \| "rtmp" \| "annexb" \| "http-mjpeg" \| "webrtc" \| "custom"; url?: string; resolution?: { width: number; height: number }; fps?: number; bitrate?: number; codec?: string; profileHint?: CamProfileSchema; sdp?: string })[]` | | getConfigEntries | `deviceOps.getConfigEntries` | query | protected | `{ deviceId: number }` | `({ key: string; value: unknown })[]` | | setConfig | `deviceOps.setConfig` | mutation | admin | `{ deviceId: number; values: Record }` | `void` | | runAction | `deviceOps.runAction` | mutation | protected | `{ deviceId: number; action: string; input: unknown }` | `unknown` | | removeDevice | `deviceOps.removeDevice` | mutation | admin | `{ deviceId: number }` | `void` | | getSettingsSchema | `deviceOps.getSettingsSchema` | query | protected | `{ deviceId: number }` | `unknown \| null` | | getRawState | `deviceOps.getRawState` | query | protected | `{ deviceId: number }` | `RawStateResultSchema \| null` | ### `device-provider` → `deviceProvider.*` - **Source:** `packages/types/src/capabilities/device-provider.cap.ts:209` - **Meta:** scope: `system` · mode: `collection` · mount: `collection` - **Archetypes:** — - **Provider interface:** `IDeviceProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | start | `deviceProvider.start` | mutation | protected | `void` | `void` | | stop | `deviceProvider.stop` | mutation | protected | `void` | `void` | | getStatus | `deviceProvider.getStatus` | query | protected | `void` | `ProviderStatusSchema` | | getDevices | `deviceProvider.getDevices` | query | protected | `void` | `({ id: string; name: string; type: string })[]` | | reloadDevice | `deviceProvider.reloadDevice` | mutation | protected | `{ stableId: string }` | `{ deviceId: number }` | | supportsDiscovery | `deviceProvider.supportsDiscovery` | query | protected | `{}` | `boolean` | | discoverDevices | `deviceProvider.discoverDevices` | mutation | admin | `{ params?: Record }` | `({ stableId: string; type: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; suggestedName: string; prefilledConfig: Record; sourceInfo?: { id: string; system: string; uniqueId?: string; quantity?: "temperature" \| "pressure" \| "speed" \| "precipitation" \| "precipitation-rate" \| "length" \| "area" \| "illuminance" \| "irradiance" \| "power" \| "energy" \| "voltage" \| "current" \| "apparent-power" \| "humidity" \| "percentage" \| "concentration-volume" \| "concentration-mass" \| "concentration-ppb" \| "volume" \| "duration" \| "duration-ms" \| "information" \| "sound-level" \| "signal-level" \| "signal-ratio" \| "frequency" \| "colour-temperature" \| "angle" \| "bitrate" \| "rate" \| "mass" \| "index" \| "ratio" \| "count" \| "none" \| "device"; dateTimeShape?: "date" \| "time" \| "datetime"; raw?: Record }; alreadyOnboarded?: boolean; onboardedDeviceId?: number; onboardedName?: string; setupIntegration?: boolean; parentStableId?: string; selectable?: boolean; needsParams?: string[] })[]` | | getDiscoveryModes | `deviceProvider.getDiscoveryModes` | query | protected | `{}` | `DiscoveryModeSchema[]` | | classifyDiscoveryHits | `deviceProvider.classifyDiscoveryHits` | mutation | admin | `{ hits: DiscoveryHitSchema[]; params?: Record }` | `({ stableId: string; type: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; suggestedName: string; prefilledConfig: Record; sourceInfo?: { id: string; system: string; uniqueId?: string; quantity?: "temperature" \| "pressure" \| "speed" \| "precipitation" \| "precipitation-rate" \| "length" \| "area" \| "illuminance" \| "irradiance" \| "power" \| "energy" \| "voltage" \| "current" \| "apparent-power" \| "humidity" \| "percentage" \| "concentration-volume" \| "concentration-mass" \| "concentration-ppb" \| "volume" \| "duration" \| "duration-ms" \| "information" \| "sound-level" \| "signal-level" \| "signal-ratio" \| "frequency" \| "colour-temperature" \| "angle" \| "bitrate" \| "rate" \| "mass" \| "index" \| "ratio" \| "count" \| "none" \| "device"; dateTimeShape?: "date" \| "time" \| "datetime"; raw?: Record }; alreadyOnboarded?: boolean; onboardedDeviceId?: number; onboardedName?: string; setupIntegration?: boolean; parentStableId?: string; selectable?: boolean; needsParams?: string[] })[]` | | getDiscoveryParamsSchema | `deviceProvider.getDiscoveryParamsSchema` | query | protected | `{}` | `unknown` | | getManualCreationType | `deviceProvider.getManualCreationType` | query | protected | `{ integrationId?: string }` | `{ deviceType: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system" \| null }` | | adoptDiscoveredDevice | `deviceProvider.adoptDiscoveredDevice` | mutation | admin | `{ candidate: { stableId: string; type: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; suggestedName: string; prefilledConfig: Record; sourceInfo?: { id: string; system: string; uniqueId?: string; quantity?: "temperature" \| "pressure" \| "speed" \| "precipitation" \| "precipitation-rate" \| "length" \| "area" \| "illuminance" \| "irradiance" \| "power" \| "energy" \| "voltage" \| "current" \| "apparent-power" \| "humidity" \| "percentage" \| "concentration-volume" \| "concentration-mass" \| "concentration-ppb" \| "volume" \| "duration" \| "duration-ms" \| "information" \| "sound-level" \| "signal-level" \| "signal-ratio" \| "frequency" \| "colour-temperature" \| "angle" \| "bitrate" \| "rate" \| "mass" \| "index" \| "ratio" \| "count" \| "none" \| "device"; dateTimeShape?: "date" \| "time" \| "datetime"; raw?: Record }; alreadyOnboarded?: boolean; onboardedDeviceId?: number; onboardedName?: string; setupIntegration?: boolean; parentStableId?: string; selectable?: boolean; needsParams?: string[] }; integrationId?: string }` | `{ id: number; stableId: string; addonId: string; type: string; name: string; parentDeviceId: number \| null; online: boolean; features: string[]; config: Record; sourceInfo?: { id: string; system: string; uniqueId?: string; quantity?: "temperature" \| "pressure" \| "speed" \| "precipitation" \| "precipitation-rate" \| "length" \| "area" \| "illuminance" \| "irradiance" \| "power" \| "energy" \| "voltage" \| "current" \| "apparent-power" \| "humidity" \| "percentage" \| "concentration-volume" \| "concentration-mass" \| "concentration-ppb" \| "volume" \| "duration" \| "duration-ms" \| "information" \| "sound-level" \| "signal-level" \| "signal-ratio" \| "frequency" \| "colour-temperature" \| "angle" \| "bitrate" \| "rate" \| "mass" \| "index" \| "ratio" \| "count" \| "none" \| "device"; dateTimeShape?: "date" \| "time" \| "datetime"; raw?: Record } }` | | supportsManualCreation | `deviceProvider.supportsManualCreation` | query | protected | `{}` | `boolean` | | getChildCreationSchema | `deviceProvider.getChildCreationSchema` | query | protected | `{ type: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; integrationId?: string }` | `unknown` | | createDevice | `deviceProvider.createDevice` | mutation | admin | `{ type: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; config: Record; integrationId?: string }` | `{ id: number; stableId: string; addonId: string; type: string; name: string; parentDeviceId: number \| null; online: boolean; features: string[]; config: Record; sourceInfo?: { id: string; system: string; uniqueId?: string; quantity?: "temperature" \| "pressure" \| "speed" \| "precipitation" \| "precipitation-rate" \| "length" \| "area" \| "illuminance" \| "irradiance" \| "power" \| "energy" \| "voltage" \| "current" \| "apparent-power" \| "humidity" \| "percentage" \| "concentration-volume" \| "concentration-mass" \| "concentration-ppb" \| "volume" \| "duration" \| "duration-ms" \| "information" \| "sound-level" \| "signal-level" \| "signal-ratio" \| "frequency" \| "colour-temperature" \| "angle" \| "bitrate" \| "rate" \| "mass" \| "index" \| "ratio" \| "count" \| "none" \| "device"; dateTimeShape?: "date" \| "time" \| "datetime"; raw?: Record } }` | | testCreationField | `deviceProvider.testCreationField` | mutation | admin | `{ type: "camera" \| "light" \| "siren" \| "switch" \| "sensor" \| "climate" \| "button" \| "event-emitter" \| "update" \| "generic" \| "notifier" \| "script" \| "automation" \| "lock" \| "cover" \| "valve" \| "humidifier" \| "water-heater" \| "fan" \| "media-player" \| "alarm-panel" \| "control" \| "presence" \| "weather" \| "weather-station" \| "vacuum" \| "lawn-mower" \| "container" \| "image" \| "pet-feeder" \| "pet-fountain" \| "dishwasher" \| "washer" \| "dryer" \| "gateway" \| "heat-pump" \| "energy-system"; key: string; value: unknown; formValues?: Record }` | `{ status: "ok" \| "error"; labels?: string[]; error?: string }` | ### `device-removal-hook` → `deviceRemovalHook.*` - **Source:** `packages/types/src/capabilities/device-removal-hook.cap.ts:79` - **Meta:** scope: `system` · mode: `collection` · mount: `skip` - **Archetypes:** internal - **Provider interface:** `IDeviceRemovalHookProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | onDeviceRemoved | `deviceRemovalHook.onDeviceRemoved` | mutation | admin | `DeviceRemovedInputSchema` | `DeviceRemovedResultSchema` | | listDeviceData | `deviceRemovalHook.listDeviceData` | query | admin | `void` | `DeviceDataEntrySchema[]` | ### `device-runs` → `deviceRuns.*` - **Source:** `packages/types/src/capabilities/device-runs.cap.ts:105` - **Meta:** scope: `device` · mode: `singleton` · mount: `device-scoped` · deviceTypes: `washer, dryer, dishwasher` - **Archetypes:** wrapper(defaultActive) - **Provider interface:** `IDeviceRunsProvider` - **Events:** `onRunOpened` → `DeviceRunSchema` · `onRunClosed` → `DeviceRunSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listRuns | `deviceRuns.listRuns` | query | protected | `{ deviceId: number; outcome?: DeviceRunOutcomeSchema; atFrom?: number; atTo?: number; limit?: number = 50; cursor?: string }` | `{ runs: DeviceRunSchema[]; nextCursor: string \| null }` | | getRun | `deviceRuns.getRun` | query | protected | `{ deviceId: number; runId: string }` | `DeviceRunSchema \| null` | | getCurrentRun | `deviceRuns.getCurrentRun` | query | protected | `{ deviceId: number }` | `DeviceRunSchema \| null` | ### `device-state` → `deviceState.*` - **Source:** `packages/types/src/capabilities/device-state.cap.ts:84` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Events:** `onChanged` → `{ deviceId: number; capName: string; slice: Record }` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getSnapshot | `deviceState.getSnapshot` | query | protected | `{ deviceId: number }` | `Record>` | | getCapSlice | `deviceState.getCapSlice` | query | protected | `{ deviceId: number; capName: string }` | `Record \| null` | | getAllSnapshots | `deviceState.getAllSnapshots` | query | protected | `{}` | `Record>>` | | setCapSlice | `deviceState.setCapSlice` | mutation | protected | `{ deviceId: number; capName: string; slice: Record }` | `void` | | claimFields | `deviceState.claimFields` | mutation | admin | `{ deviceId: number; capName: string; owner: string; mode: FieldClaimModeSchema; fields: string[]; values: Record }` | `ClaimOutcomeSchema` | | patchOwnedFields | `deviceState.patchOwnedFields` | mutation | admin | `{ deviceId: number; capName: string; owner: string; values: Record }` | `ClaimOutcomeSchema` | | releaseClaim | `deviceState.releaseClaim` | mutation | admin | `{ deviceId: number; capName: string; owner: string }` | `ClaimOutcomeSchema` | | listClaims | `deviceState.listClaims` | query | admin | `{ ownerPrefix?: string }` | `ClaimsListingSchema` | | getNativeCapSlice | `deviceState.getNativeCapSlice` | query | admin | `{ deviceId: number; capName: string }` | `Record \| null` | ### `device-status` → `deviceStatus.*` - **Source:** `packages/types/src/capabilities/device-status.cap.ts:37` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IDeviceStatusProvider` - **runtimeState:** `DeviceStatusSchema` - **Events:** `onStatusChanged` → `{ deviceId: number; status: DeviceStatusSchema }` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `deviceStatus.getStatus` | query | protected | `{ deviceId: number }` | `DeviceStatusSchema` | ### `device-transitions` → `deviceTransitions.*` - **Source:** `packages/types/src/capabilities/device-transitions.cap.ts:62` - **Meta:** scope: `device` · mode: `singleton` · mount: `device-scoped` · deviceTypes: `camera, light, siren, switch, sensor, climate, button, event-emitter, update, generic, notifier, script, automation, lock, cover, valve, humidifier, water-heater, fan, media-player, alarm-panel, control, presence, weather, weather-station, vacuum, lawn-mower, image, pet-feeder, pet-fountain, dishwasher, washer, dryer, gateway, heat-pump, energy-system` - **Archetypes:** wrapper(defaultActive) - **Provider interface:** `IDeviceTransitionsProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listTransitions | `deviceTransitions.listTransitions` | query | protected | `{ deviceId: number; capName?: string; actorKind?: "user" \| "addon" \| "action" \| "scheduler" \| "composition" \| "node" \| "device"; outcome?: "confirmed" \| "device" \| "already" \| "unconfirmed" \| "failed"; atFrom?: number; atTo?: number; limit?: number = 50; cursor?: string }` | `{ transitions: ({ id: string; deviceId: number; at: number; capName: string; field: string; from: string \| number \| boolean \| null \| Record; to: string \| number \| boolean \| null \| Record; outcome: "confirmed" \| "device" \| "already" \| "unconfirmed" \| "failed"; actor: { kind: "user"; userId: string; username: string; credential: "session" \| "token" \| "integration"; credentialId?: string } \| { kind: "addon"; addonId: string; nodeId?: string } \| { kind: "action"; addonId: string; actionId: string; runId: string; automationId?: string } \| { kind: "scheduler"; addonId: string; schedulerId: string } \| { kind: "composition"; owner: string } \| { kind: "node"; nodeId: string } \| { kind: "device" }; command?: { commandId: string; method: string; args: Record; requestedAt: number; matchedAfterMs: number \| null; error?: string } })[]; nextCursor: string \| null }` | | getTransition | `deviceTransitions.getTransition` | query | protected | `{ deviceId: number; id: string }` | `{ id: string; deviceId: number; at: number; capName: string; field: string; from: string \| number \| boolean \| null \| Record; to: string \| number \| boolean \| null \| Record; outcome: "confirmed" \| "device" \| "already" \| "unconfirmed" \| "failed"; actor: { kind: "user"; userId: string; username: string; credential: "session" \| "token" \| "integration"; credentialId?: string } \| { kind: "addon"; addonId: string; nodeId?: string } \| { kind: "action"; addonId: string; actionId: string; runId: string; automationId?: string } \| { kind: "scheduler"; addonId: string; schedulerId: string } \| { kind: "composition"; owner: string } \| { kind: "node"; nodeId: string } \| { kind: "device" }; command?: { commandId: string; method: string; args: Record; requestedAt: number; matchedAfterMs: number \| null; error?: string } } \| null` | | listRecentTransitions | `deviceTransitions.listRecentTransitions` | query | admin | `{ actorKind?: "user" \| "addon" \| "action" \| "scheduler" \| "composition" \| "node" \| "device"; outcome?: "confirmed" \| "device" \| "already" \| "unconfirmed" \| "failed"; atFrom?: number; atTo?: number; limit?: number = 50; cursor?: string }` | `{ transitions: ({ id: string; deviceId: number; at: number; capName: string; field: string; from: string \| number \| boolean \| null \| Record; to: string \| number \| boolean \| null \| Record; outcome: "confirmed" \| "device" \| "already" \| "unconfirmed" \| "failed"; actor: { kind: "user"; userId: string; username: string; credential: "session" \| "token" \| "integration"; credentialId?: string } \| { kind: "addon"; addonId: string; nodeId?: string } \| { kind: "action"; addonId: string; actionId: string; runId: string; automationId?: string } \| { kind: "scheduler"; addonId: string; schedulerId: string } \| { kind: "composition"; owner: string } \| { kind: "node"; nodeId: string } \| { kind: "device" }; command?: { commandId: string; method: string; args: Record; requestedAt: number; matchedAfterMs: number \| null; error?: string } })[]; nextCursor: string \| null }` | | record | `deviceTransitions.record` | mutation | admin | `{ transitions: ({ id: string; deviceId: number; at: number; capName: string; field: string; from: string \| number \| boolean \| null \| Record; to: string \| number \| boolean \| null \| Record; outcome: "confirmed" \| "device" \| "already" \| "unconfirmed" \| "failed"; actor: { kind: "user"; userId: string; username: string; credential: "session" \| "token" \| "integration"; credentialId?: string } \| { kind: "addon"; addonId: string; nodeId?: string } \| { kind: "action"; addonId: string; actionId: string; runId: string; automationId?: string } \| { kind: "scheduler"; addonId: string; schedulerId: string } \| { kind: "composition"; owner: string } \| { kind: "node"; nodeId: string } \| { kind: "device" }; command?: { commandId: string; method: string; args: Record; requestedAt: number; matchedAfterMs: number \| null; error?: string } })[] }` | `TransitionRecordResultSchema` | | getStatus | `deviceTransitions.getStatus` | query | admin | `{}` | `TransitionsStatusSchema` | ### `dishwasher` → `dishwasher.*` - **Source:** `packages/types/src/capabilities/dishwasher.cap.ts:191` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `dishwasher` - **Archetypes:** status(poll) · runtimeState - **Provider interface:** `IDishwasherProvider` - **runtimeState:** `DishwasherStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `dishwasher.getStatus` | query | protected | `{ deviceId: number }` | `DishwasherStatusSchema` | | start | `dishwasher.start` | mutation | protected | `{ deviceId: number; program?: string; options?: Record }` | `void` | | pause | `dishwasher.pause` | mutation | protected | `{ deviceId: number }` | `void` | | resume | `dishwasher.resume` | mutation | protected | `{ deviceId: number }` | `void` | | stop | `dishwasher.stop` | mutation | protected | `{ deviceId: number }` | `void` | | setProgram | `dishwasher.setProgram` | mutation | protected | `{ deviceId: number; program: string }` | `void` | | setPower | `dishwasher.setPower` | mutation | protected | `{ deviceId: number; on: boolean }` | `void` | | setHalfLoad | `dishwasher.setHalfLoad` | mutation | protected | `{ deviceId: number; on: boolean }` | `void` | | setHygienePlus | `dishwasher.setHygienePlus` | mutation | protected | `{ deviceId: number; on: boolean }` | `void` | | setExtraDry | `dishwasher.setExtraDry` | mutation | protected | `{ deviceId: number; on: boolean }` | `void` | | setIntensiveZone | `dishwasher.setIntensiveZone` | mutation | protected | `{ deviceId: number; on: boolean }` | `void` | | setVarioSpeedPlus | `dishwasher.setVarioSpeedPlus` | mutation | protected | `{ deviceId: number; on: boolean }` | `void` | | setChildLock | `dishwasher.setChildLock` | mutation | protected | `{ deviceId: number; on: boolean }` | `void` | | setOption | `dishwasher.setOption` | mutation | protected | `{ deviceId: number; key: string; value: DishwasherValueSchema }` | `void` | | getOptions | `dishwasher.getOptions` | query | protected | `{ deviceId: number }` | `DishwasherOptionsSchema` | ### `display-palette` → `displayPalette.*` - **Source:** `packages/types/src/capabilities/display-palette.cap.ts:25` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `IDisplayPaletteProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getPalette | `displayPalette.getPalette` | query | protected | `void` | `{ status: "ready"; presetId: "camstack" \| "high-contrast" \| "okabe-ito"; customized: boolean; source: "stored" \| "unconfigured"; swatches: Record; fallbacks: string[] } \| { status: "unknown"; reason: string }` | | listPresets | `displayPalette.listPresets` | query | protected | `void` | `({ id: string; name: string; swatches: Record; fallbacks: string[] })[]` | | setPalette | `displayPalette.setPalette` | mutation | admin | `{ presetId: string } \| { presetId: string; overrides: Record }` | `{ status: "ready"; presetId: "camstack" \| "high-contrast" \| "okabe-ito"; customized: boolean; source: "stored" \| "unconfigured"; swatches: Record; fallbacks: string[] }` | ### `do-not-disturb` → `doNotDisturb.*` - **Source:** `packages/types/src/capabilities/do-not-disturb.cap.ts:23` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `media-player` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IDoNotDisturbProvider` - **runtimeState:** `DoNotDisturbStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `doNotDisturb.getStatus` | query | protected | `{ deviceId: number }` | `DoNotDisturbStatusSchema` | | setEnabled | `doNotDisturb.setEnabled` | mutation | protected | `{ deviceId: number; enabled: boolean }` | `void` | ### `doorbell` → `doorbell.*` - **Source:** `packages/types/src/capabilities/doorbell.cap.ts:74` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `button, camera` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IDoorbellProvider` - **runtimeState:** `DoorbellStatusSchema` - **Events:** `onPressed` → `DoorbellPressEventSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `doorbell.getStatus` | query | protected | `{ deviceId: number }` | `DoorbellStatusSchema` | ### `embedding-encoder` → `embeddingEncoder.*` - **Source:** `packages/types/src/capabilities/embedding-encoder.cap.ts:203` - **Meta:** scope: `system` · mode: `collection` · mount: `collection` - **Archetypes:** internal - **Provider interface:** `IEmbeddingEncoderProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | encode | `embeddingEncoder.encode` | query | admin | `{ crop: ; width: number; height: number }` | `EmbeddingResultSchema` | | encodeText | `embeddingEncoder.encodeText` | query | admin | `{ text: string; modelId?: string }` | `EmbeddingResultSchema` | | getInfo | `embeddingEncoder.getInfo` | query | admin | `void` | `EmbeddingInfoSchema` | | resetFailedModels | `embeddingEncoder.resetFailedModels` | mutation | admin | `{ modelId?: string }` | `{ cleared: string[]; nodeId: string }` | ### `energy-system` → `energySystem.*` - **Source:** `packages/types/src/capabilities/energy-system.cap.ts:108` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `energy-system` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IEnergySystemProvider` - **runtimeState:** `EnergySystemStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `energySystem.getStatus` | query | protected | `{ deviceId: number }` | `EnergySystemStatusSchema` | ### `enum-sensor` → `enumSensor.*` - **Source:** `packages/types/src/capabilities/enum-sensor.cap.ts:34` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `sensor` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IEnumSensorProvider` - **runtimeState:** `EnumSensorStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `enumSensor.getStatus` | query | protected | `{ deviceId: number }` | `EnumSensorStatusSchema` | ### `error` → `error.*` - **Source:** `packages/types/src/capabilities/error.cap.ts:54` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IErrorProvider` - **runtimeState:** `ErrorStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `error.getStatus` | query | protected | `{ deviceId: number }` | `ErrorStatusSchema` | ### `event-emitter` → `eventEmitter.*` - **Source:** `packages/types/src/capabilities/event-emitter.cap.ts:46` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `event-emitter` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IEventEmitterProvider` - **runtimeState:** `EventEmitterStatusSchema` - **Events:** `onEvent` → `EventFireSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `eventEmitter.getStatus` | query | protected | `{ deviceId: number }` | `EventEmitterStatusSchema` | ### `face-gallery` → `faceGallery.*` - **Source:** `packages/types/src/capabilities/face-gallery.cap.ts:217` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `IFaceGalleryProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listIdentities | `faceGallery.listIdentities` | query | protected | `{ includeCrops?: boolean }?` | `({ id: string; name: string; sampleCount: number; coverMediaId?: number; coverBase64?: string })[]` | | createIdentity | `faceGallery.createIdentity` | mutation | admin | `{ name: string }` | `{ id: string; name: string; sampleCount: number; coverMediaId?: number; coverBase64?: string }` | | renameIdentity | `faceGallery.renameIdentity` | mutation | admin | `{ id: string; name: string }` | `void` | | deleteIdentity | `faceGallery.deleteIdentity` | mutation | admin | `{ id: string }` | `void` | | listIdentitySamples | `faceGallery.listIdentitySamples` | query | protected | `{ identityId: string }` | `({ id: string; source: "detected" \| "photo"; addedAt: number; deviceId?: number; base64?: string; mediaId?: number; keyFrameMediaId?: number; faceBbox?: BoundingBoxSchema })[]` | | auditIdentitySamples | `faceGallery.auditIdentitySamples` | query | admin | `{ identityId: string }` | `{ identityId: string; name: string; modelId: string; totalSamples: number; comparableSamples: number; flagged: number; flagThreshold: number; rows: ({ sampleId: string; enrolledAt: number; deviceId?: number; source: "detected" \| "photo"; mediaId?: number; comparable: boolean; selfMean: number \| null; bestForeign?: { identityId: string; name: string; score: number }; suspicion: number })[] }` | | removeSample | `faceGallery.removeSample` | mutation | admin | `{ identityId: string; sampleId: string }` | `void` | | moveIdentitySample | `faceGallery.moveIdentitySample` | mutation | admin | `{ sampleId: string; toIdentityId: string }` | `void` | | listRecentFaces | `faceGallery.listRecentFaces` | query | protected | `{ deviceId?: number; deviceIds?: number[]; limit?: number; filter?: "unassigned" \| "recognized" \| "identified" \| "all"; since?: number; until?: number; sortBy?: "timestamp" \| "suggestionConfidence"; sortDirection?: "asc" \| "desc"; includeCrops?: boolean }?` | `({ faceId: string; deviceId: number; trackId: string; timestamp: number; recognizedIdentityId?: string; identityName?: string; assigned: boolean; base64?: string; cropUrl?: string; faceBbox?: BoundingBoxSchema; keyFrameMediaId?: number; bestMatchScore?: number; nativeFaceShortSidePx?: number; suggestedIdentityId?: string; suggestedMatchScore?: number })[]` | | getFaceByTrack | `faceGallery.getFaceByTrack` | query | protected | `{ deviceId: number; trackId: string }` | `{ faceId: string; deviceId: number; trackId: string; timestamp: number; recognizedIdentityId?: string; identityName?: string; assigned: boolean; base64?: string; cropUrl?: string; faceBbox?: BoundingBoxSchema; keyFrameMediaId?: number; bestMatchScore?: number; nativeFaceShortSidePx?: number; suggestedIdentityId?: string; suggestedMatchScore?: number } \| null` | | getFaceMedia | `faceGallery.getFaceMedia` | query | protected | `{ faceId: string }` | `({ mediaId: number; kind: string; url: string; sizeBytes: number; timestamp: number })[]` | | assignFace | `faceGallery.assignFace` | mutation | admin | `{ faceId: string; identityId: string }` | `void` | | unassignFace | `faceGallery.unassignFace` | mutation | admin | `{ faceId: string }` | `void` | | deleteFace | `faceGallery.deleteFace` | mutation | admin | `{ faceId: string }` | `void` | | assignFaces | `faceGallery.assignFaces` | mutation | admin | `{ faceIds: string[]; identityId: string }` | `{ assigned: number; failed: string[] }` | | unassignFaces | `faceGallery.unassignFaces` | mutation | admin | `{ faceIds: string[] }` | `{ unassigned: number; failed: string[] }` | | suggestFaceClusters | `faceGallery.suggestFaceClusters` | query | protected | `{ threshold?: number; minClusterSize?: number; maxClusters?: number; limit?: number; maxFacesScanned?: number }?` | `({ faceIds: string[]; representativeFaceId: string; size: number; cohesion: number })[]` | ### `failure-contribution` → `failureContribution.*` - **Source:** `packages/types/src/capabilities/failure-contribution.cap.ts:117` - **Meta:** scope: `system` · mode: `collection` · mount: `skip` - **Archetypes:** internal - **Provider interface:** `IFailureContributionProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | list | `failureContribution.list` | query | admin | `void` | `FailureContributionSchema[]` | ### `fan-control` → `fanControl.*` - **Source:** `packages/types/src/capabilities/fan-control.cap.ts:277` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `fan` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IFanControlProvider` - **runtimeState:** `FanControlStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `fanControl.getStatus` | query | protected | `{ deviceId: number }` | `FanControlStatusSchema` | | setPercentage | `fanControl.setPercentage` | mutation | protected | `{ deviceId: number; speed: number }` | `void` | | setPreset | `fanControl.setPreset` | mutation | protected | `{ deviceId: number; preset: string }` | `void` | | setDirection | `fanControl.setDirection` | mutation | protected | `{ deviceId: number; direction: FanDirectionSchema }` | `void` | | setOscillating | `fanControl.setOscillating` | mutation | protected | `{ deviceId: number; oscillating: boolean }` | `void` | | setOscillationAxis | `fanControl.setOscillationAxis` | mutation | protected | `SetOscillationAxisInputSchema` | `FanOscillationAxisResultSchema` | ### `fan-presets` → `fanPresets.*` - **Source:** `packages/types/src/capabilities/fan-presets.cap.ts:140` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `IFanPresetsProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getPresets | `fanPresets.getPresets` | query | protected | `{ deviceId: number }` | `FanPresetSchema[]` | | setPresets | `fanPresets.setPresets` | mutation | admin | `{ deviceId: number; presets: FanPresetSchema[] }` | `FanPresetsSetResultSchema` | | applyPreset | `fanPresets.applyPreset` | mutation | protected | `{ deviceId: number; presetId: string }` | `FanPresetApplyResultSchema` | | capturePreset | `fanPresets.capturePreset` | query | protected | `{ deviceId: number; fields?: FanCaptureFieldSchema[] }` | `FanPresetCaptureResultSchema` | ### `feature-probe` → `featureProbe.*` - **Source:** `packages/types/src/capabilities/feature-probe.cap.ts:66` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IFeatureProbeProvider` - **runtimeState:** `FeatureProbeStatusSchema` - **Events:** `onProbeChanged` → `{ deviceId: number; status: FeatureProbeStatusSchema }` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `featureProbe.getStatus` | query | protected | `{ deviceId: number }` | `FeatureProbeStatusSchema` | ### `filesystem-browse` → `filesystemBrowse.*` - **Source:** `packages/types/src/capabilities/filesystem-browse.cap.ts:25` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** internal - **Provider interface:** `IFilesystemBrowseProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listAllowedRoots | `filesystemBrowse.listAllowedRoots` | query | admin | `void` | `string[]` | | browse | `filesystemBrowse.browse` | query | admin | `{ path: string }` | `{ path: string; entries: ({ name: string; path: string })[]; freeBytes: number; totalBytes: number }` | | createDir | `filesystemBrowse.createDir` | mutation | admin | `{ path: string }` | `{ path: string }` | ### `flood` → `flood.*` - **Source:** `packages/types/src/capabilities/flood.cap.ts:23` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `sensor` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IFloodProvider` - **runtimeState:** `FloodStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `flood.getStatus` | query | protected | `{ deviceId: number }` | `FloodStatusSchema` | ### `gas` → `gas.*` - **Source:** `packages/types/src/capabilities/gas.cap.ts:19` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `sensor` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IGasProvider` - **runtimeState:** `GasStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `gas.getStatus` | query | protected | `{ deviceId: number }` | `GasStatusSchema` | ### `group-active` → `groupActive.*` - **Source:** `packages/types/src/capabilities/group-active.cap.ts:25` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `cover, valve, lock, media-player, climate` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IGroupActiveProvider` - **runtimeState:** `GroupActiveSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `groupActive.getStatus` | query | protected | `{ deviceId: number }` | `GroupActiveSchema` | ### `group-commands` → `groupCommands.*` - **Source:** `packages/types/src/capabilities/group-commands.cap.ts:38` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `switch, light, fan, cover, valve, lock, media-player, climate` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IGroupCommandsProvider` - **runtimeState:** `GroupCommandsSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `groupCommands.getStatus` | query | protected | `{ deviceId: number }` | `GroupCommandsSchema` | ### `group-status` → `groupStatus.*` - **Source:** `packages/types/src/capabilities/group-status.cap.ts:39` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `sensor, switch, light, fan, cover, valve, lock, media-player, climate` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IGroupStatusProvider` - **runtimeState:** `GroupStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `groupStatus.getStatus` | query | protected | `{ deviceId: number }` | `GroupStatusSchema` | ### `heat-pump-control` → `heatPumpControl.*` - **Source:** `packages/types/src/capabilities/heat-pump-control.cap.ts:56` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `heat-pump` - **Archetypes:** — - **Provider interface:** `IHeatPumpControlProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | setSilentMode | `heatPumpControl.setSilentMode` | mutation | protected | `{ deviceId: number; mode: string }` | `void` | | setAwayMode | `heatPumpControl.setAwayMode` | mutation | protected | `{ deviceId: number; mode: string }` | `void` | | setAdditionalHeaterMode | `heatPumpControl.setAdditionalHeaterMode` | mutation | protected | `{ deviceId: number; mode: string }` | `void` | | setHolidayMode | `heatPumpControl.setHolidayMode` | mutation | protected | `{ deviceId: number; mode: string }` | `void` | | setCircuitOperationMode | `heatPumpControl.setCircuitOperationMode` | mutation | protected | `{ deviceId: number; circuitId: string; mode: string }` | `void` | | setCircuitHeatCoolMode | `heatPumpControl.setCircuitHeatCoolMode` | mutation | protected | `{ deviceId: number; circuitId: string; mode: string }` | `void` | | setCircuitSummerWinter | `heatPumpControl.setCircuitSummerWinter` | mutation | protected | `{ deviceId: number; circuitId: string; mode: string }` | `void` | | setCircuitComfortSetpoint | `heatPumpControl.setCircuitComfortSetpoint` | mutation | protected | `{ deviceId: number; circuitId: string; temp: number }` | `void` | | setCircuitEcoSetpoint | `heatPumpControl.setCircuitEcoSetpoint` | mutation | protected | `{ deviceId: number; circuitId: string; temp: number }` | `void` | | setCircuitMaxFlowTemp | `heatPumpControl.setCircuitMaxFlowTemp` | mutation | protected | `{ deviceId: number; circuitId: string; temp: number }` | `void` | | setDhwOperationMode | `heatPumpControl.setDhwOperationMode` | mutation | protected | `{ deviceId: number; circuitId: string; mode: string }` | `void` | | setDhwTemperatureLevel | `heatPumpControl.setDhwTemperatureLevel` | mutation | protected | `{ deviceId: number; circuitId: string; level: string }` | `void` | | setDhwChargeDuration | `heatPumpControl.setDhwChargeDuration` | mutation | protected | `{ deviceId: number; circuitId: string; minutes: number }` | `void` | | startExtraHotWater | `heatPumpControl.startExtraHotWater` | mutation | protected | `{ deviceId: number; circuitId: string }` | `void` | ### `heat-pump-status` → `heatPumpStatus.*` - **Source:** `packages/types/src/capabilities/heat-pump-status.cap.ts:132` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `heat-pump` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IHeatPumpStatusProvider` - **runtimeState:** `HeatPumpStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `heatPumpStatus.getStatus` | query | protected | `{ deviceId: number }` | `HeatPumpStatusSchema` | ### `heating-valve` → `heatingValve.*` - **Source:** `packages/types/src/capabilities/heating-valve.cap.ts:16` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `climate` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IHeatingValveProvider` - **runtimeState:** `HeatingValveStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `heatingValve.getStatus` | query | protected | `{ deviceId: number }` | `HeatingValveStatusSchema` | ### `hero-layout` → `heroLayout.*` - **Source:** `packages/types/src/capabilities/hero-layout.cap.ts:39` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `IHeroLayoutProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getHeroModel | `heroLayout.getHeroModel` | query | protected | `{ deviceId: number; canActuate?: boolean }` | `{ deviceId: number; type: string; role: string \| null; name: string; state: "on" \| "off" \| "running" \| "idle" \| "standby" \| "alert" \| "offline" \| "unknown"; stateAssumed: boolean; look: { icon: ; tone: "success" \| "warning" \| "danger" \| "primary" \| "info" \| "muted"; background: "plain" \| "heat-rise" \| "cool-fall" \| "glow" \| "water" \| "drum" \| "sky" \| "mist" \| "alert-wash"; animation: "none" \| "pulse" \| "spin" \| "glow" \| "halo" \| "wave" \| "rise" \| "fall" \| "tumble" \| "equalizer" \| "blink" \| "breathe" }; background: { kind: "artwork"; url: string; fallback: { token: "plain" \| "heat-rise" \| "cool-fall" \| "glow" \| "water" \| "drum" \| "sky" \| "mist" \| "alert-wash"; animation: "none" \| "pulse" \| "spin" \| "glow" \| "halo" \| "wave" \| "rise" \| "fall" \| "tumble" \| "equalizer" \| "blink" \| "breathe" } } \| { kind: "state"; token: "plain" \| "heat-rise" \| "cool-fall" \| "glow" \| "water" \| "drum" \| "sky" \| "mist" \| "alert-wash"; animation: "none" \| "pulse" \| "spin" \| "glow" \| "halo" \| "wave" \| "rise" \| "fall" \| "tumble" \| "equalizer" \| "blink" \| "breathe" }; scene: { id: "ac" \| "thermostat" \| "heater" \| "heat-pump" \| "fan" \| "washer" \| "dryer" \| "dishwasher" \| "pet-fountain" \| "pet-feeder" \| "vacuum" \| "lawn-mower" \| "tv" \| "speaker" \| "camera" \| "light" \| "cover" \| "lock" \| "alarm" \| "siren" \| "sensor-sparkline" \| "contact" \| "presence" \| "weather" \| "plug" \| "button" \| "update" \| "control-dial" \| "event-stream" \| "gateway" \| "generic"; mode: "cool" \| "heat" \| "dry" \| "fan" \| "auto" \| "playing" \| "paused" \| "open" \| "closed" \| null; level: number \| null }; facts: ({ id: "power" \| "energy" \| "battery" \| "link" \| "phase" \| "remaining" \| "volume" \| "source" \| "consumables" \| "since" \| "speed" \| "progress" \| "level" \| "last-run" \| "event" \| "members" \| "failures" \| "reading" \| "climate" \| "temperature" \| "humidity" \| "pressure" \| "air-quality" \| "illuminance" \| "valve"; icon: \| null; text: { en: string; it: string }; tone: "success" \| "warning" \| "danger" \| "primary" \| "info" \| "muted" })[]; sideTiles: { left: ({ label: { en: string; it: string }; value: { en: string; it: string }; tone?: "success" \| "warning" \| "danger" \| "primary" \| "info" \| "muted"; at?: number })[]; right: ({ label: { en: string; it: string }; value: { en: string; it: string }; tone?: "success" \| "warning" \| "danger" \| "primary" \| "info" \| "muted"; at?: number })[] }; title: { en: string; it: string }; caption?: { en: string; it: string }; badges: ({ id: "battery" \| "network-link" \| "integration"; icon: ; tone: "success" \| "warning" \| "danger" \| "primary" \| "info" \| "muted"; value: number \| null; label: { en: string; it: string } })[]; remote: { commands: number \| null; open?: { id: string; label: { en: string; it: string }; icon: ; call: { cap: string; method: string; args: Record> }; emphasis: "primary" \| "normal"; confirm: "off-while-running" \| "unlock" \| "install" \| "press" \| null } } \| null; historyLabel: { en: string; it: string }; consumables: { items: ({ key: string; label: string; level: number \| null; needsAttention: boolean })[]; attention: number } \| null; consumption: { kind: "power"; watts: number; detail: ({ label: { en: string; it: string }; value: number \| string; unit: string \| null })[] } \| { kind: "running"; running: boolean \| null; since: number \| null; phase: string \| null; detail: ({ label: { en: string; it: string }; value: number \| string; unit: string \| null })[] } \| null; ownPower: { source: "switch" \| "media-player" \| "climate-control"; on: boolean \| null; assumed: boolean; turnOn: { id: string; label: { en: string; it: string }; icon: ; call: { cap: string; method: string; args: Record> }; emphasis: "primary" \| "normal"; confirm: "off-while-running" \| "unlock" \| "install" \| "press" \| null }; turnOff: { id: string; label: { en: string; it: string }; icon: ; call: { cap: string; method: string; args: Record> }; emphasis: "primary" \| "normal"; confirm: "off-while-running" \| "unlock" \| "install" \| "press" \| null } } \| null; timedRun: { activeUntil: number \| null; quickRun: TimedRunQuickRunSchema; run: { id: string; label: { en: string; it: string }; icon: ; call: { cap: string; method: string; args: Record> }; emphasis: "primary" \| "normal"; confirm: "off-while-running" \| "unlock" \| "install" \| "press" \| null }; cancel: { id: string; label: { en: string; it: string }; icon: ; call: { cap: string; method: string; args: Record> }; emphasis: "primary" \| "normal"; confirm: "off-while-running" \| "unlock" \| "install" \| "press" \| null }; remaining: number \| null } \| null; powerSupply: { on: boolean \| null; confirmOffWhileRunning: boolean; running: boolean \| null; powerOn: { id: string; label: { en: string; it: string }; icon: ; call: { cap: string; method: string; args: Record> }; emphasis: "primary" \| "normal"; confirm: "off-while-running" \| "unlock" \| "install" \| "press" \| null }; powerOff: { id: string; label: { en: string; it: string }; icon: ; call: { cap: string; method: string; args: Record> }; emphasis: "primary" \| "normal"; confirm: "off-while-running" \| "unlock" \| "install" \| "press" \| null }; restart: { id: string; label: { en: string; it: string }; icon: ; call: { cap: string; method: string; args: Record> }; emphasis: "primary" \| "normal"; confirm: "off-while-running" \| "unlock" \| "install" \| "press" \| null } } \| null; rows: ({ id: "progress" \| "run-for" \| "cycle" \| "program" \| "appliance-power" \| "now-playing" \| "playback" \| "volume" \| "source" \| "contact" \| "motion-trigger" \| "lock" \| "alarm" \| "fan" \| "vacuum" \| "vacuum-suction" \| "mower" \| "feeder" \| "fountain" \| "pump-cycle" \| "automation" \| "script" \| "do-not-disturb" \| "brightness" \| "color" \| "cover" \| "valve" \| "humidifier" \| "update" \| "button" \| "climate-mode" \| "climate-fan" \| "setpoint" \| "channel" \| "control" \| "circuit" \| "heat-pump-power" \| "system-mode"; placement?: "row" \| "scene"; label?: { en: string; it: string }; group?: { en: string; it: string }; pills?: ({ icon: \| null; text: { en: string; it: string }; tone: "success" \| "warning" \| "danger" \| "primary" \| "info" \| "muted" })[]; icon: ; status: { en: string; it: string } \| null; controls: ({ kind: "action"; action: { id: string; label: {…}; icon: ; call: {…}; emphasis: "primary" \| "normal"; confirm: "off-while-running" \| "unlock" \| "install" \| "press" \| null } } \| { kind: "toggle"; id: string; label: { en: string; it: string }; on: boolean \| null; turnOn: { id: string; label: {…}; icon: ; call: {…}; emphasis: "primary" \| "normal"; confirm: "off-while-running" \| "unlock" \| "install" \| "press" \| null }; turnOff: { id: string; label: {…}; icon: ; call: {…}; emphasis: "primary" \| "normal"; confirm: "off-while-running" \| "unlock" \| "install" \| "press" \| null } } \| { kind: "slider"; id: string; label: { en: string; it: string }; value: number \| null; min: number; max: number; step: number; unit: string; call: { cap: string; method: string; args: Record> }; valueArg: string } \| { kind: "picker"; id: string; label: { en: string; it: string }; current: string \| null; options: string[]; optionLabels?: Record; call: { cap: string; method: string; args: Record> }; valueArg: string } \| { kind: "number"; id: string; label: { en: string; it: string }; value: number \| null; step: number \| null; unit: string; call: { cap: string; method: string; args: Record> }; valueArg: string } \| { kind: "text"; id: string; label: { en: string; it: string }; value: string \| null; call: { cap: string; method: string; args: Record> }; valueArg: string })[]; progress?: number \| null })[]; measurement?: { quantity: "temperature" \| "humidity" \| "power" \| "contact" \| "text"; reading: { value: number; quantity: "temperature" \| "pressure" \| "speed" \| "precipitation" \| "precipitation-rate" \| "length" \| "area" \| "illuminance" \| "irradiance" \| "power" \| "energy" \| "voltage" \| "current" \| "apparent-power" \| "humidity" \| "percentage" \| "concentration-volume" \| "concentration-mass" \| "concentration-ppb" \| "volume" \| "duration" \| "duration-ms" \| "information" \| "sound-level" \| "signal-level" \| "signal-ratio" \| "frequency" \| "colour-temperature" \| "angle" \| "bitrate" \| "rate" \| "mass" \| "index" \| "ratio" \| "count" \| "none" \| "device" } \| null; icon: \| null; value: { en: string; it: string }; unit: string \| null; band: "hot" \| "mild" \| "cold" \| null; level: number \| null; word: { en: string; it: string }; tone: "success" \| "warning" \| "danger" \| "primary" \| "info" \| "muted"; since: number \| null; sinceKind: "updated" \| "changed"; historyKey: string \| null }; gated: string[]; provenance: ({ partId: string; cap: string })[] } \| null` | | getRowModels | `heroLayout.getRowModels` | query | protected | `{ deviceIds: number[]; canActuate?: boolean }` | `({ deviceId: number; name: string; type: string; state: "on" \| "off" \| "running" \| "idle" \| "standby" \| "alert" \| "offline" \| "unknown"; stateAssumed: boolean; look: { icon: ; tone: "success" \| "warning" \| "danger" \| "primary" \| "info" \| "muted"; background: "plain" \| "heat-rise" \| "cool-fall" \| "glow" \| "water" \| "drum" \| "sky" \| "mist" \| "alert-wash"; animation: "none" \| "pulse" \| "spin" \| "glow" \| "halo" \| "wave" \| "rise" \| "fall" \| "tumble" \| "equalizer" \| "blink" \| "breathe" }; scene: { id: "ac" \| "thermostat" \| "heater" \| "heat-pump" \| "fan" \| "washer" \| "dryer" \| "dishwasher" \| "pet-fountain" \| "pet-feeder" \| "vacuum" \| "lawn-mower" \| "tv" \| "speaker" \| "camera" \| "light" \| "cover" \| "lock" \| "alarm" \| "siren" \| "sensor-sparkline" \| "contact" \| "presence" \| "weather" \| "plug" \| "button" \| "update" \| "control-dial" \| "event-stream" \| "gateway" \| "generic"; mode: "cool" \| "heat" \| "dry" \| "fan" \| "auto" \| "playing" \| "paused" \| "open" \| "closed" \| null; level: number \| null }; statusLine: ({ en: string; it: string })[]; primary: { kind: "action"; action: { id: string; label: { en: string; it: string }; icon: ; call: { cap: string; method: string; args: Record> }; emphasis: "primary" \| "normal"; confirm: "off-while-running" \| "unlock" \| "install" \| "press" \| null } } \| { kind: "toggle"; id: string; label: { en: string; it: string }; on: boolean \| null; turnOn: { id: string; label: { en: string; it: string }; icon: ; call: { cap: string; method: string; args: Record> }; emphasis: "primary" \| "normal"; confirm: "off-while-running" \| "unlock" \| "install" \| "press" \| null }; turnOff: { id: string; label: { en: string; it: string }; icon: ; call: { cap: string; method: string; args: Record> }; emphasis: "primary" \| "normal"; confirm: "off-while-running" \| "unlock" \| "install" \| "press" \| null } } \| { kind: "slider"; id: string; label: { en: string; it: string }; value: number \| null; min: number; max: number; step: number; unit: string; call: { cap: string; method: string; args: Record> }; valueArg: string } \| { kind: "picker"; id: string; label: { en: string; it: string }; current: string \| null; options: string[]; optionLabels?: Record; call: { cap: string; method: string; args: Record> }; valueArg: string } \| { kind: "number"; id: string; label: { en: string; it: string }; value: number \| null; step: number \| null; unit: string; call: { cap: string; method: string; args: Record> }; valueArg: string } \| { kind: "text"; id: string; label: { en: string; it: string }; value: string \| null; call: { cap: string; method: string; args: Record> }; valueArg: string } \| null; timedRun: { id: "timed-run.run" \| "timed-run.cancel"; duration: number; unit: "min" \| "s" } \| null; extras?: ({ kind: "action"; action: { id: string; label: { en: string; it: string }; icon: ; call: { cap: string; method: string; args: Record> }; emphasis: "primary" \| "normal"; confirm: "off-while-running" \| "unlock" \| "install" \| "press" \| null } } \| { kind: "toggle"; id: string; label: { en: string; it: string }; on: boolean \| null; turnOn: { id: string; label: { en: string; it: string }; icon: ; call: { cap: string; method: string; args: Record> }; emphasis: "primary" \| "normal"; confirm: "off-while-running" \| "unlock" \| "install" \| "press" \| null }; turnOff: { id: string; label: { en: string; it: string }; icon: ; call: { cap: string; method: string; args: Record> }; emphasis: "primary" \| "normal"; confirm: "off-while-running" \| "unlock" \| "install" \| "press" \| null } } \| { kind: "slider"; id: string; label: { en: string; it: string }; value: number \| null; min: number; max: number; step: number; unit: string; call: { cap: string; method: string; args: Record> }; valueArg: string } \| { kind: "picker"; id: string; label: { en: string; it: string }; current: string \| null; options: string[]; optionLabels?: Record; call: { cap: string; method: string; args: Record> }; valueArg: string } \| { kind: "number"; id: string; label: { en: string; it: string }; value: number \| null; step: number \| null; unit: string; call: { cap: string; method: string; args: Record> }; valueArg: string } \| { kind: "text"; id: string; label: { en: string; it: string }; value: string \| null; call: { cap: string; method: string; args: Record> }; valueArg: string })[]; trailing: { id: "power" \| "energy" \| "battery" \| "link" \| "phase" \| "remaining" \| "volume" \| "source" \| "consumables" \| "since" \| "speed" \| "progress" \| "level" \| "last-run" \| "event" \| "members" \| "failures" \| "reading" \| "climate" \| "temperature" \| "humidity" \| "pressure" \| "air-quality" \| "illuminance" \| "valve"; icon: \| null; text: { en: string; it: string }; tone: "success" \| "warning" \| "danger" \| "primary" \| "info" \| "muted" } \| null; measurement?: { quantity: "temperature" \| "humidity" \| "power" \| "contact" \| "text"; reading: { value: number; quantity: "temperature" \| "pressure" \| "speed" \| "precipitation" \| "precipitation-rate" \| "length" \| "area" \| "illuminance" \| "irradiance" \| "power" \| "energy" \| "voltage" \| "current" \| "apparent-power" \| "humidity" \| "percentage" \| "concentration-volume" \| "concentration-mass" \| "concentration-ppb" \| "volume" \| "duration" \| "duration-ms" \| "information" \| "sound-level" \| "signal-level" \| "signal-ratio" \| "frequency" \| "colour-temperature" \| "angle" \| "bitrate" \| "rate" \| "mass" \| "index" \| "ratio" \| "count" \| "none" \| "device" } \| null; icon: \| null; value: { en: string; it: string }; unit: string \| null; band: "hot" \| "mild" \| "cold" \| null; level: number \| null; word: { en: string; it: string }; tone: "success" \| "warning" \| "danger" \| "primary" \| "info" \| "muted"; since: number \| null; sinceKind: "updated" \| "changed"; historyKey: string \| null } } \| null)[]` | | getLayout | `heroLayout.getLayout` | query | protected | `{ deviceType: string; role?: string \| null }` | `HeroLayoutRowsSchema` | ### `humidifier` → `humidifier.*` - **Source:** `packages/types/src/capabilities/humidifier.cap.ts:48` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `humidifier` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IHumidifierProvider` - **runtimeState:** `HumidifierStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `humidifier.getStatus` | query | protected | `{ deviceId: number }` | `HumidifierStatusSchema` | | setOn | `humidifier.setOn` | mutation | protected | `{ deviceId: number; on: boolean }` | `void` | | setTargetHumidity | `humidifier.setTargetHumidity` | mutation | protected | `{ deviceId: number; humidity: number }` | `void` | | setMode | `humidifier.setMode` | mutation | protected | `{ deviceId: number; mode: string }` | `void` | ### `humidity-sensor` → `humiditySensor.*` - **Source:** `packages/types/src/capabilities/humidity-sensor.cap.ts:29` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `sensor, climate` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IHumiditySensorProvider` - **runtimeState:** `HumiditySensorStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `humiditySensor.getStatus` | query | protected | `{ deviceId: number }` | `HumiditySensorStatusSchema` | ### `image` → `image.*` - **Source:** `packages/types/src/capabilities/image.cap.ts:31` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `image` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IImageProvider` - **runtimeState:** `ImageStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `image.getStatus` | query | protected | `{ deviceId: number }` | `ImageStatusSchema` | ### `image-settings` → `imageSettings.*` - **Source:** `packages/types/src/capabilities/image-settings.cap.ts:140` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `camera` - **Archetypes:** status(poll) · runtimeState · deviceConfig(derived-form) - **Provider interface:** `IImageSettingsProvider` - **runtimeState:** `ImageSettingsStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `imageSettings.getStatus` | query | protected | `{ deviceId: number }` | `ImageSettingsStatusSchema` | | getOptions | `imageSettings.getOptions` | query | protected | `{ deviceId: number }` | `ImageSettingsOptionsSchema` | | setSettings | `imageSettings.setSettings` | mutation | admin | `{ deviceId: number; settings: ImageSettingsPatchSchema }` | `void` | ### `integration-instances` → `integrationInstances.*` - **Source:** `packages/types/src/capabilities/integration-instances.cap.ts:222` - **Meta:** scope: `system` · mode: `collection` · mount: `collection` - **Archetypes:** — - **Provider interface:** `IIntegrationInstancesProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | describe | `integrationInstances.describe` | query | admin | `void` | `IntegrationInstanceDescriptionSchema` | | instanceFormSchema | `integrationInstances.instanceFormSchema` | query | admin | `{ id: string \| null; kind?: string; mode?: "standalone" \| "account" \| "broker"; candidateStableId?: string }` | `` | | listInstances | `integrationInstances.listInstances` | query | protected | `{}` | `IntegrationInstanceSchema[]` | | getInstance | `integrationInstances.getInstance` | query | protected | `{ id: string }` | `IntegrationInstanceSchema \| null` | | createInstance | `integrationInstances.createInstance` | mutation | protected | `{ id?: string; name: string; kind?: string; values?: Record; originStableId?: string; seed?: { info: Record } }` | `{ id: string }` | | updateInstance | `integrationInstances.updateInstance` | mutation | protected | `IntegrationInstancePatchSchema` | `{ ok: true }` | | setInstanceEnabled | `integrationInstances.setInstanceEnabled` | mutation | protected | `{ id: string; enabled: boolean }` | `{ ok: true }` | | deleteInstance | `integrationInstances.deleteInstance` | mutation | protected | `{ id: string }` | `{ ok: true }` | | testInstance | `integrationInstances.testInstance` | mutation | protected | `{ id: string \| null; values: Record; kind?: string }` | `TestConnectionResultSchema` | ### `integrations` → `integrations.*` - **Source:** `packages/types/src/capabilities/integrations.cap.ts:167` - **Meta:** scope: `system` · mode: `singleton` · mount: `server-provided` - **Archetypes:** — - **Provider interface:** `IIntegrationsProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | list | `integrations.list` | query | protected | `void` | `IntegrationWithStateSchema[]` | | get | `integrations.get` | query | protected | `{ id: string }` | `IntegrationWithStateSchema` | | getByAddonId | `integrations.getByAddonId` | query | protected | `{ addonId: string }` | `IntegrationLiteSchema \| null` | | update | `integrations.update` | mutation | admin | `UpdateIntegrationInputSchema` | `IntegrationLiteSchema` | | delete | `integrations.delete` | mutation | admin | `{ id: string }` | `DeleteIntegrationResultSchema` | | getAvailableTypes | `integrations.getAvailableTypes` | query | admin | `void` | `AvailableIntegrationTypeSchema[]` | ### `intercom` → `intercom.*` - **Source:** `packages/types/src/capabilities/intercom.cap.ts:65` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `camera` - **Archetypes:** status(command-driven) · runtimeState - **Provider interface:** `IIntercomProvider` - **runtimeState:** `IntercomStatusSchema` - **Events:** `onStatusChanged` → `{ deviceId: number; status: IntercomStatusSchema }` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `intercom.getStatus` | query | protected | `{ deviceId: number }` | `IntercomStatusSchema` | | startSession | `intercom.startSession` | mutation | protected | `{ deviceId: number }` | `{ sessionId: string; sdpOffer: string }` | | handleAnswer | `intercom.handleAnswer` | mutation | protected | `{ deviceId: number; sessionId: string; sdpAnswer: string }` | `void` | | stopSession | `intercom.stopSession` | mutation | protected | `{ deviceId: number; sessionId: string }` | `void` | | startTalkSession | `intercom.startTalkSession` | mutation | protected | `{ deviceId: number }` | `{ sessionId: string }` | | pushTalkAudio | `intercom.pushTalkAudio` | mutation | protected | `{ deviceId: number; audioBase64: string; codec?: "opus" \| "s16le" \| "g711ulaw" \| "g711alaw"; sampleRate?: number; channels?: number; sequenceNumber: number }` | `{ accepted: boolean }` | | endTalkSession | `intercom.endTalkSession` | mutation | protected | `{ deviceId: number }` | `void` | ### `ir-transmitter` → `irTransmitter.*` - **Source:** `packages/types/src/capabilities/ir-transmitter.cap.ts:141` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `generic` - **Archetypes:** runtimeState - **Provider interface:** `IIrTransmitterProvider` - **runtimeState:** `IrTransmitterRuntimeStateSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | send | `irTransmitter.send` | mutation | protected | `{ deviceId: number; timings?: number[]; native?: { format: "tuya"; code: string }; settings?: { carrierHz?: number; dutyCyclePercent?: number; repeat?: number; repeatDelayMs?: number } }` | `IrSendResultSchema` | | learn | `irTransmitter.learn` | mutation | protected | `{ deviceId: number; timeoutMs?: number = 20000 }` | `IrLearnResultSchema` | | getInfo | `irTransmitter.getInfo` | query | protected | `{ deviceId: number }` | `IrTransmitterInfoSchema` | ### `keychain` → `keychain.*` - **Source:** `packages/types/src/capabilities/keychain.cap.ts:98` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** internal - **Provider interface:** `IKeychainProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | put | `keychain.put` | mutation | admin | `{ ref: string; value: string }` | `{ ref: string; version: number }` | | resolve | `keychain.resolve` | query | admin | `{ refs: string[] }` | `KeychainResolveResultSchema` | | delete | `keychain.delete` | mutation | admin | `{ refs: string[] }` | `{ deleted: number }` | | deleteDeviceScope | `keychain.deleteDeviceScope` | mutation | admin | `{ deviceId: number }` | `{ refs: string[] }` | | releaseRecordRefs | `keychain.releaseRecordRefs` | mutation | admin | `{ refs: string[]; onBehalfOf: string }` | `{ released: number }` | | listMeta | `keychain.listMeta` | query | admin | `{}` | `KeychainSecretMetaSchema[]` | | getState | `keychain.getState` | query | admin | `{}` | `KeychainStateSchema` | ### `keychain-admin` → `keychainAdmin.*` - **Source:** `packages/types/src/capabilities/keychain-admin.cap.ts:158` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `IKeychainAdminProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | status | `keychainAdmin.status` | query | admin | `{}` | `KeychainStatusSchema` | | listSecrets | `keychainAdmin.listSecrets` | query | admin | `{}` | `KeychainAdminSecretSchema[]` | | listAudit | `keychainAdmin.listAudit` | query | admin | `{ limit?: number }` | `KeychainAuditEntrySchema[]` | | reveal | `keychainAdmin.reveal` | mutation | admin | `{ ref: string }` | `{ value: string; version: number }` | | setSystemSecret | `keychainAdmin.setSystemSecret` | mutation | admin | `{ name: SystemHeldSecretNameSchema; value: string }` | `{ ref: string; version: number }` | | importSecret | `keychainAdmin.importSecret` | mutation | admin | `{ ref: string; value: string }` | `{ ref: string; version: number }` | | deleteOrphans | `keychainAdmin.deleteOrphans` | mutation | admin | `{ refs: string[] }` | `{ deleted: string[]; kept: ({ ref: string; usage: KeychainSecretUsageSchema })[] }` | | rotateMasterKey | `keychainAdmin.rotateMasterKey` | mutation | admin | `{}` | `{ fingerprint: string; keySource: KeychainKeySourceSchema }` | | purgeRetiredKeys | `keychainAdmin.purgeRetiredKeys` | mutation | admin | `{}` | `{ purged: number }` | | downloadRecoveryKey | `keychainAdmin.downloadRecoveryKey` | mutation | admin | `{}` | `{ key: string; fingerprint: string; keySource: KeychainKeySourceSchema }` | | resetKeychain | `keychainAdmin.resetKeychain` | mutation | admin | `{ confirm: "RESET KEYCHAIN" }` | `{ archivedCollection: string \| null; archived: number }` | | resetReport | `keychainAdmin.resetReport` | query | admin | `{}` | `{ reset: KeychainResetRecordSchema \| null; pendingReentry: KeychainSecretMetaSchema[] }` | | acknowledgeReset | `keychainAdmin.acknowledgeReset` | mutation | admin | `{}` | `{ acknowledged: boolean }` | ### `lawn-mower-control` → `lawnMowerControl.*` - **Source:** `packages/types/src/capabilities/lawn-mower-control.cap.ts:49` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `lawn-mower` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `ILawnMowerControlProvider` - **runtimeState:** `LawnMowerControlStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `lawnMowerControl.getStatus` | query | protected | `{ deviceId: number }` | `LawnMowerControlStatusSchema` | | startMowing | `lawnMowerControl.startMowing` | mutation | protected | `{ deviceId: number }` | `void` | | pause | `lawnMowerControl.pause` | mutation | protected | `{ deviceId: number }` | `void` | | dock | `lawnMowerControl.dock` | mutation | protected | `{ deviceId: number }` | `void` | ### `llm` → `llm.*` - **Source:** `packages/types/src/capabilities/llm.cap.ts:341` - **Meta:** scope: `system` · mode: `collection` · mount: `collection` · nodeIdMode: `data` · providerKind: `ai` - **Archetypes:** — - **Provider interface:** `ILlmProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | generate | `llm.generate` | mutation | protected | `LlmGenerateBaseInputSchema` | `LlmGenerateResultSchema` | | generateVision | `llm.generateVision` | mutation | protected | `{ addonId?: string; profileId?: string; consumer: string; system?: string; prompt: string; jsonSchema?: Record; maxTokens?: number; temperature?: number; topP?: number; topK?: number; reasoningEffort?: "off" \| "low" \| "medium" \| "high"; timeoutMs?: number; retry?: LlmRetryPolicySchema; requestId?: string; images: LlmImageSchema[] }` | `LlmGenerateResultSchema` | | cancel | `llm.cancel` | mutation | protected | `{ addonId?: string; requestId: string }` | `void` | | listModels | `llm.listModels` | mutation | admin | `LlmListModelsInputSchema` | `LlmListModelsResultSchema` | | getDefaults | `llm.getDefaults` | query | protected | `{}` | `LlmDefaultSchema[]` | | setDefault | `llm.setDefault` | mutation | admin | `{ selector: LlmDefaultSelectorSchema; profileId: string \| null }` | `void` | | getUsage | `llm.getUsage` | query | protected | `{ since?: number; until?: number; consumer?: string; profileId?: string }` | `LlmUsageRollupSchema[]` | | listModelCatalog | `llm.listModelCatalog` | query | protected | `{}` | `ManagedModelCatalogEntrySchema[]` | | listRuntimeNodes | `llm.listRuntimeNodes` | query | protected | `{}` | `LlmRuntimeNodeSchema[]` | | listNodeModels | `llm.listNodeModels` | query | protected | `{ nodeId: string }` | `LlmNodeModelSchema[]` | | resolveModelRef | `llm.resolveModelRef` | mutation | admin | `{ ref: string; maxBytes?: number }` | `HfModelResolutionSchema` | | installModel | `llm.installModel` | mutation | admin | `{ nodeId: string; model: ManagedModelRefSchema }` | `void` | | deleteModel | `llm.deleteModel` | mutation | admin | `{ nodeId: string; file: string }` | `void` | | getRuntimeStatus | `llm.getRuntimeStatus` | query | protected | `{ addonId: string; profileId: string }` | `LlmRuntimeStatusSchema` | | startRuntime | `llm.startRuntime` | mutation | admin | `{ addonId: string; profileId: string }` | `LlmRuntimeStatusSchema` | | stopRuntime | `llm.stopRuntime` | mutation | admin | `{ addonId: string; profileId: string }` | `void` | ### `llm-runtime` → `llmRuntime.*` - **Source:** `packages/types/src/capabilities/llm-runtime.cap.ts:250` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** internal - **Provider interface:** `ILlmRuntimeProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | complete | `llmRuntime.complete` | mutation | admin | `LlmRuntimeCompleteInputSchema` | `LlmGenerateResultSchema` | | ensureStarted | `llmRuntime.ensureStarted` | mutation | admin | `{ runtime: ManagedRuntimeConfigSchema }` | `LlmRuntimeStatusSchema` | | stop | `llmRuntime.stop` | mutation | admin | `{}` | `void` | | status | `llmRuntime.status` | query | admin | `{}` | `LlmRuntimeStatusSchema` | | installModel | `llmRuntime.installModel` | mutation | admin | `{ model: ManagedModelRefSchema }` | `void` | | deleteModel | `llmRuntime.deleteModel` | mutation | admin | `{ file: string }` | `void` | | listLocalModels | `llmRuntime.listLocalModels` | query | admin | `{}` | `LlmNodeModelSchema[]` | | getDiskUsage | `llmRuntime.getDiskUsage` | query | admin | `{}` | `LlmRuntimeDiskUsageSchema` | | cancel | `llmRuntime.cancel` | mutation | admin | `LlmRuntimeCancelInputSchema` | `void` | | appleAvailability | `llmRuntime.appleAvailability` | query | admin | `{}` | `AppleFmAvailabilitySchema` | | completeApple | `llmRuntime.completeApple` | mutation | admin | `LlmRuntimeAppleCompleteInputSchema` | `LlmGenerateResultSchema` | ### `load-contribution` → `loadContribution.*` - **Source:** `packages/types/src/capabilities/load-contribution.cap.ts:154` - **Meta:** scope: `system` · mode: `collection` · mount: `skip` - **Archetypes:** internal - **Provider interface:** `ILoadContributionProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | list | `loadContribution.list` | query | admin | `void` | `LoadContributionSchema[]` | ### `local-network` → `localNetwork.*` - **Source:** `packages/types/src/capabilities/local-network.cap.ts:387` - **Meta:** scope: `system` · mode: `singleton` · mount: `hub-only` - **Archetypes:** — - **Provider interface:** `ILocalNetworkProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | list | `localNetwork.list` | query | protected | `void` | `{ interfaces: ({ name: string; family: "IPv4" \| "IPv6"; address: string; cidr: string; netmask: string; internal: boolean; mac: string; kind: "lan" \| "wifi" \| "docker" \| "vpn" \| "loopback" \| "other"; preferred: boolean; plausible: boolean; plausibleReason: string })[]; probedAt: number }` | | getPreferred | `localNetwork.getPreferred` | query | protected | `void` | `{ name: string; family: "IPv4" \| "IPv6"; address: string; cidr: string; netmask: string; internal: boolean; mac: string; kind: "lan" \| "wifi" \| "docker" \| "vpn" \| "loopback" \| "other"; preferred: boolean; plausible: boolean; plausibleReason: string } \| null` | | getConnectionEndpoints | `localNetwork.getConnectionEndpoints` | query | protected | `{ port?: number; includeLoopback?: boolean; ipv4Only?: boolean; scheme?: "http" \| "https"; includeAppLink?: boolean }` | `{ endpoints: ({ label: string; baseUrl: string; kind: "lan-ipv4" \| "lan-ipv6" \| "public" \| "loopback" \| "app-link" \| "custom"; interfaceKind: "lan" \| "wifi" \| "docker" \| "vpn" \| "other" \| "loopback" \| "public"; plausible: boolean; plausibleReason: string; priority: number; stable?: boolean })[]; localPort: { port: number; source: "server-config" \| "server-env" \| "caller-hint" \| "default" } }` | | getNotificationEndpoint | `localNetwork.getNotificationEndpoint` | query | protected | `void` | `{ baseUrl: string \| null; resolved: string \| null; appLinkHub: string \| null }` | | setNotificationEndpoint | `localNetwork.setNotificationEndpoint` | mutation | protected | `{ baseUrl: string \| null }` | `{ baseUrl: string \| null; resolved: string \| null; appLinkHub: string \| null }` | | getViewerEndpoints | `localNetwork.getViewerEndpoints` | query | protected | `void` | `{ baseUrls: string[]; resolved: string[] }` | | setViewerEndpoints | `localNetwork.setViewerEndpoints` | mutation | protected | `{ baseUrls: string[] }` | `{ baseUrls: string[]; resolved: string[] }` | | getAddresses | `localNetwork.getAddresses` | query | protected | `{ scheme?: "http" \| "https" }?` | `{ rows: ({ label: string; baseUrl: string; kind: "lan-ipv4" \| "lan-ipv6" \| "public" \| "loopback" \| "app-link" \| "custom"; interfaceKind: "lan" \| "wifi" \| "docker" \| "vpn" \| "other" \| "loopback" \| "public"; plausible: boolean; plausibleReason: string; priority: number; stable?: boolean; detected: boolean; custom: boolean; flags: HubAddressRoleSchema[]; inUse: HubAddressRoleSchema[]; eligible: HubAddressRoleSchema[] })[]; roles: { appConnections: { flagged: string[]; resolved: string[]; source: "flagged" \| "auto" \| "none" }; notificationTaps: { flagged: string \| null; resolved: string \| null; source: "flagged" \| "auto" \| "none" }; internal: { flagged: string \| null; resolved: string \| null; source: "flagged" \| "auto" \| "none" }; publicEndpoint: { flagged: string \| null; resolved: string \| null; source: "flagged" \| "auto" \| "none" } }; appLinkHub: string \| null; listenerOrigins?: string[] }` | | addCustomAddress | `localNetwork.addCustomAddress` | mutation | admin | `{ baseUrl: string; label: string }` | `{ rows: ({ label: string; baseUrl: string; kind: "lan-ipv4" \| "lan-ipv6" \| "public" \| "loopback" \| "app-link" \| "custom"; interfaceKind: "lan" \| "wifi" \| "docker" \| "vpn" \| "other" \| "loopback" \| "public"; plausible: boolean; plausibleReason: string; priority: number; stable?: boolean; detected: boolean; custom: boolean; flags: HubAddressRoleSchema[]; inUse: HubAddressRoleSchema[]; eligible: HubAddressRoleSchema[] })[]; roles: { appConnections: { flagged: string[]; resolved: string[]; source: "flagged" \| "auto" \| "none" }; notificationTaps: { flagged: string \| null; resolved: string \| null; source: "flagged" \| "auto" \| "none" }; internal: { flagged: string \| null; resolved: string \| null; source: "flagged" \| "auto" \| "none" }; publicEndpoint: { flagged: string \| null; resolved: string \| null; source: "flagged" \| "auto" \| "none" } }; appLinkHub: string \| null; listenerOrigins?: string[] }` | | removeCustomAddress | `localNetwork.removeCustomAddress` | mutation | admin | `{ baseUrl: string }` | `{ rows: ({ label: string; baseUrl: string; kind: "lan-ipv4" \| "lan-ipv6" \| "public" \| "loopback" \| "app-link" \| "custom"; interfaceKind: "lan" \| "wifi" \| "docker" \| "vpn" \| "other" \| "loopback" \| "public"; plausible: boolean; plausibleReason: string; priority: number; stable?: boolean; detected: boolean; custom: boolean; flags: HubAddressRoleSchema[]; inUse: HubAddressRoleSchema[]; eligible: HubAddressRoleSchema[] })[]; roles: { appConnections: { flagged: string[]; resolved: string[]; source: "flagged" \| "auto" \| "none" }; notificationTaps: { flagged: string \| null; resolved: string \| null; source: "flagged" \| "auto" \| "none" }; internal: { flagged: string \| null; resolved: string \| null; source: "flagged" \| "auto" \| "none" }; publicEndpoint: { flagged: string \| null; resolved: string \| null; source: "flagged" \| "auto" \| "none" } }; appLinkHub: string \| null; listenerOrigins?: string[] }` | | setAddressRole | `localNetwork.setAddressRole` | mutation | admin | `{ role: HubAddressRoleSchema; baseUrl: string \| null; enabled: boolean; acceptInsecureHttp?: boolean }` | `{ rows: ({ label: string; baseUrl: string; kind: "lan-ipv4" \| "lan-ipv6" \| "public" \| "loopback" \| "app-link" \| "custom"; interfaceKind: "lan" \| "wifi" \| "docker" \| "vpn" \| "other" \| "loopback" \| "public"; plausible: boolean; plausibleReason: string; priority: number; stable?: boolean; detected: boolean; custom: boolean; flags: HubAddressRoleSchema[]; inUse: HubAddressRoleSchema[]; eligible: HubAddressRoleSchema[] })[]; roles: { appConnections: { flagged: string[]; resolved: string[]; source: "flagged" \| "auto" \| "none" }; notificationTaps: { flagged: string \| null; resolved: string \| null; source: "flagged" \| "auto" \| "none" }; internal: { flagged: string \| null; resolved: string \| null; source: "flagged" \| "auto" \| "none" }; publicEndpoint: { flagged: string \| null; resolved: string \| null; source: "flagged" \| "auto" \| "none" } }; appLinkHub: string \| null; listenerOrigins?: string[] }` | | getHubAddresses | `localNetwork.getHubAddresses` | query | protected | `void` | `{ cluster: { override: string \| null; resolved: string \| null; source: "override" \| "auto" \| "none" }; browser: { override: string \| null; resolved: string \| null; source: "override" \| "auto" \| "none" } }` | | getAllowedAddresses | `localNetwork.getAllowedAddresses` | query | protected | `void` | `{ addresses: string[] }` | | setAllowedAddresses | `localNetwork.setAllowedAddresses` | mutation | protected | `{ addresses: string[] }` | `{ success: true }` | | resetAllowlistToBestMatch | `localNetwork.resetAllowlistToBestMatch` | mutation | protected | `void` | `{ addresses: string[] }` | | getTlsStatus | `localNetwork.getTlsStatus` | query | protected | `void` | `{ mode: "generated" \| "uploaded" \| "disabled"; leafFingerprintSha256: string \| null; caFingerprintSha256: string \| null; validTo: string \| null; sans: string[]; caCertPem: string \| null; reissueError: string \| null; restartRequired: boolean; caMissing: boolean; localCaConstrained: boolean \| null; caReplacedAt: string \| null; storedUpload: { leafFingerprintSha256: string; validTo: string; hasCa: boolean } \| null }` | | regenerateCertificate | `localNetwork.regenerateCertificate` | mutation | admin | `{ reason?: string }` | `{ mode: "generated" \| "uploaded" \| "disabled"; leafFingerprintSha256: string \| null; caFingerprintSha256: string \| null; validTo: string \| null; sans: string[]; caCertPem: string \| null; reissueError: string \| null; restartRequired: boolean; caMissing: boolean; localCaConstrained: boolean \| null; caReplacedAt: string \| null; storedUpload: { leafFingerprintSha256: string; validTo: string; hasCa: boolean } \| null }` | | uploadCertificate | `localNetwork.uploadCertificate` | mutation | admin | `{ certPem: string; keyPem: string; caPem?: string }` | `{ mode: "generated" \| "uploaded" \| "disabled"; leafFingerprintSha256: string \| null; caFingerprintSha256: string \| null; validTo: string \| null; sans: string[]; caCertPem: string \| null; reissueError: string \| null; restartRequired: boolean; caMissing: boolean; localCaConstrained: boolean \| null; caReplacedAt: string \| null; storedUpload: { leafFingerprintSha256: string; validTo: string; hasCa: boolean } \| null }` | | downloadCa | `localNetwork.downloadCa` | query | protected | `void` | `{ pem: string }` | | useStoredUploadedCertificate | `localNetwork.useStoredUploadedCertificate` | mutation | admin | `void` | `{ mode: "generated" \| "uploaded" \| "disabled"; leafFingerprintSha256: string \| null; caFingerprintSha256: string \| null; validTo: string \| null; sans: string[]; caCertPem: string \| null; reissueError: string \| null; restartRequired: boolean; caMissing: boolean; localCaConstrained: boolean \| null; caReplacedAt: string \| null; storedUpload: { leafFingerprintSha256: string; validTo: string; hasCa: boolean } \| null }` | | scanNetwork | `localNetwork.scanNetwork` | mutation | admin | `{ requests: ({ providerId: string; modes: DiscoveryModeSchema[] })[]; subnets?: string[] }` | `{ hits: ({ providerId: string; hit: DiscoveryHitSchema })[]; subnetsScanned: string[]; errors: ({ providerId?: string; mode?: string; message: string })[]; stats: { hostsProbed: number; hits: number; timeouts: number; byMode: Record } }` | | getScanSubnets | `localNetwork.getScanSubnets` | query | admin | `void` | `{ subnets: string[] }` | | setScanSubnets | `localNetwork.setScanSubnets` | mutation | admin | `{ subnets: string[] }` | `{ subnets: string[] }` | | revertToGeneratedCertificate | `localNetwork.revertToGeneratedCertificate` | mutation | admin | `void` | `{ mode: "generated" \| "uploaded" \| "disabled"; leafFingerprintSha256: string \| null; caFingerprintSha256: string \| null; validTo: string \| null; sans: string[]; caCertPem: string \| null; reissueError: string \| null; restartRequired: boolean; caMissing: boolean; localCaConstrained: boolean \| null; caReplacedAt: string \| null; storedUpload: { leafFingerprintSha256: string; validTo: string; hasCa: boolean } \| null }` | ### `lock-control` → `lockControl.*` - **Source:** `packages/types/src/capabilities/lock-control.cap.ts:85` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `lock` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `ILockControlProvider` - **runtimeState:** `LockControlStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `lockControl.getStatus` | query | protected | `{ deviceId: number }` | `LockControlStatusSchema` | | lock | `lockControl.lock` | mutation | protected | `{ deviceId: number; code?: string }` | `void` | | unlock | `lockControl.unlock` | mutation | protected | `{ deviceId: number; code?: string; confirm?: boolean }` | `void` | | open | `lockControl.open` | mutation | protected | `{ deviceId: number }` | `void` | ### `log-channels` → `logChannels.*` - **Source:** `packages/types/src/capabilities/log-channels.cap.ts:60` - **Meta:** scope: `system` · mode: `collection` · mount: `skip` - **Archetypes:** internal - **Provider interface:** `ILogChannelsProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | list | `logChannels.list` | query | admin | `void` | `({ name: string; description: string; defaultLevel: "info" \| "warn" \| "error"; perDevice: boolean; kind?: "diagnostic" \| "debug" = "diagnostic" })[]` | | apply | `logChannels.apply` | mutation | admin | `{ windows: ({ channel: string; armedUntilMs: number; deviceIds: number[] \| null })[] }` | `LogChannelApplyResultSchema` | ### `log-destination` → `logDestination.*` - **Source:** `packages/types/src/capabilities/log-destination.cap.ts:132` - **Meta:** scope: `system` · mode: `collection` · mount: `skip` - **Archetypes:** internal - **Provider interface:** `ILogDestinationProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | write | `logDestination.write` | mutation | admin | `LogEntrySchema` | `void` | | describeRead | `logDestination.describeRead` | query | admin | `{ instanceId?: string }` | `LogReadCapabilitiesSchema` | | read | `logDestination.read` | query | admin | `LogReadQuerySchema` | `LogReadResultSchema` | | cancelRead | `logDestination.cancelRead` | mutation | admin | `{ requestId: string }` | `{ cancelled: boolean }` | ### `login-method` → `loginMethod.*` - **Source:** `packages/types/src/capabilities/login-method.cap.ts:131` - **Meta:** scope: `system` · mode: `collection` · mount: `skip` - **Archetypes:** internal - **Provider interface:** `ILoginMethodProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getLoginMethods | `loginMethod.getLoginMethods` | query | admin | `void` | `LoginMethodContributionSchema[]` | ### `media-player` → `mediaPlayer.*` - **Source:** `packages/types/src/capabilities/media-player.cap.ts:150` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `media-player` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IMediaPlayerProvider` - **runtimeState:** `MediaPlayerStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `mediaPlayer.getStatus` | query | protected | `{ deviceId: number }` | `MediaPlayerStatusSchema` | | turnOn | `mediaPlayer.turnOn` | mutation | protected | `{ deviceId: number }` | `void` | | turnOff | `mediaPlayer.turnOff` | mutation | protected | `{ deviceId: number }` | `void` | | volumeUp | `mediaPlayer.volumeUp` | mutation | protected | `{ deviceId: number; steps?: number = 1 }` | `void` | | volumeDown | `mediaPlayer.volumeDown` | mutation | protected | `{ deviceId: number; steps?: number = 1 }` | `void` | | channelUp | `mediaPlayer.channelUp` | mutation | protected | `{ deviceId: number; steps?: number = 1 }` | `void` | | channelDown | `mediaPlayer.channelDown` | mutation | protected | `{ deviceId: number; steps?: number = 1 }` | `void` | | play | `mediaPlayer.play` | mutation | protected | `{ deviceId: number }` | `void` | | pause | `mediaPlayer.pause` | mutation | protected | `{ deviceId: number }` | `void` | | stop | `mediaPlayer.stop` | mutation | protected | `{ deviceId: number }` | `void` | | next | `mediaPlayer.next` | mutation | protected | `{ deviceId: number }` | `void` | | previous | `mediaPlayer.previous` | mutation | protected | `{ deviceId: number }` | `void` | | setVolume | `mediaPlayer.setVolume` | mutation | protected | `{ deviceId: number; volumeLevel: number }` | `void` | | setMute | `mediaPlayer.setMute` | mutation | protected | `{ deviceId: number; muted: boolean }` | `void` | | setShuffle | `mediaPlayer.setShuffle` | mutation | protected | `{ deviceId: number; shuffle: boolean }` | `void` | | setRepeat | `mediaPlayer.setRepeat` | mutation | protected | `{ deviceId: number; repeat: MediaPlayerRepeatSchema }` | `void` | | selectSource | `mediaPlayer.selectSource` | mutation | protected | `{ deviceId: number; source: string }` | `void` | | seek | `mediaPlayer.seek` | mutation | protected | `{ deviceId: number; position: number }` | `void` | | playMedia | `mediaPlayer.playMedia` | mutation | protected | `{ deviceId: number; mediaId: string; mediaType: string }` | `void` | ### `mesh-network` → `meshNetwork.*` - **Source:** `packages/types/src/capabilities/mesh-network.cap.ts:177` - **Meta:** scope: `system` · mode: `collection` · mount: `collection` · providerKind: `mesh` - **Archetypes:** — - **Provider interface:** `IMeshNetworkProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus | `meshNetwork.getStatus` | query | protected | `void` | `MeshStatusSchema` | | join | `meshNetwork.join` | mutation | protected | `{ authKey: string; hostname?: string }` | `{ joined: true }` | | startLogin | `meshNetwork.startLogin` | mutation | protected | `{ hostname?: string }` | `{ loginUrl: string }` | | leave | `meshNetwork.leave` | mutation | protected | `void` | `{ left: true }` | | logout | `meshNetwork.logout` | mutation | protected | `void` | `{ loggedOut: true }` | | listPeers | `meshNetwork.listPeers` | query | protected | `void` | `{ peers: MeshPeerSchema[] }` | ### `meter` → `meter.*` - **Source:** `packages/types/src/capabilities/meter.cap.ts:22` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `sensor` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IMeterProvider` - **runtimeState:** `MeterStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `meter.getStatus` | query | protected | `{ deviceId: number }` | `MeterStatusSchema` | ### `metrics-provider` → `metricsProvider.*` - **Source:** `packages/types/src/capabilities/metrics-provider.cap.ts:391` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `IMetricsProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | collectSnapshot | `metricsProvider.collectSnapshot` | query | protected | `void` | `{ cpu: { total: number; user: number; system: number; irq: number; nice: number; loadAvg: [number, number, number]; cores: number }; memory: { percent: number \| null; totalBytes: number; usedBytes: number \| null; availableBytes: number \| null; swapUsedBytes: number; swapTotalBytes: number }; gpu: { utilization: number; model: string; memoryUsedBytes: number; memoryTotalBytes: number; temperature: number \| null } \| null; network: { rxBytes: number; txBytes: number; rxPackets: number; txPackets: number; rxErrors: number; txErrors: number; timestampMs: number }; disk: { readBytes: number; writeBytes: number; readOps: number; writeOps: number; timestampMs: number }; pressure: { cpu: { some: { avg10: number; avg60: number; avg300: number }; full: { avg10: number; avg60: number; avg300: number } \| null } \| null; memory: { some: { avg10: number; avg60: number; avg300: number }; full: { avg10: number; avg60: number; avg300: number } \| null } \| null; io: { some: { avg10: number; avg60: number; avg300: number }; full: { avg10: number; avg60: number; avg300: number } \| null } \| null }; process: { openFds: number; threadCount: number; activeHandles: number; activeRequests: number }; cpuTemperature: number \| null; timestampMs: number }` | | getCached | `metricsProvider.getCached` | query | protected | `void` | `{ cpu: { total: number; user: number; system: number; irq: number; nice: number; loadAvg: [number, number, number]; cores: number }; memory: { percent: number \| null; totalBytes: number; usedBytes: number \| null; availableBytes: number \| null; swapUsedBytes: number; swapTotalBytes: number }; gpu: { utilization: number; model: string; memoryUsedBytes: number; memoryTotalBytes: number; temperature: number \| null } \| null; network: { rxBytes: number; txBytes: number; rxPackets: number; txPackets: number; rxErrors: number; txErrors: number; timestampMs: number }; disk: { readBytes: number; writeBytes: number; readOps: number; writeOps: number; timestampMs: number }; pressure: { cpu: { some: { avg10: number; avg60: number; avg300: number }; full: { avg10: number; avg60: number; avg300: number } \| null } \| null; memory: { some: { avg10: number; avg60: number; avg300: number }; full: { avg10: number; avg60: number; avg300: number } \| null } \| null; io: { some: { avg10: number; avg60: number; avg300: number }; full: { avg10: number; avg60: number; avg300: number } \| null } \| null }; process: { openFds: number; threadCount: number; activeHandles: number; activeRequests: number }; cpuTemperature: number \| null; timestampMs: number } \| null` | | getCurrent | `metricsProvider.getCurrent` | query | protected | `void` | `SystemMetricsSchema` | | getDiskSpace | `metricsProvider.getDiskSpace` | query | protected | `{ dirPath: string }` | `{ path: string; totalBytes: number; usedBytes: number; availableBytes: number; percent: number }` | | getGpuInfo | `metricsProvider.getGpuInfo` | query | protected | `void` | `{ utilization: number; model: string; memoryUsedBytes: number; memoryTotalBytes: number; temperature: number \| null } \| null` | | getCpuTemperature | `metricsProvider.getCpuTemperature` | query | protected | `void` | `number \| null` | | getProcessStats | `metricsProvider.getProcessStats` | query | protected | `{ pids: number[] }` | `({ pid: number; cpu: number; memory: number; privateBytes?: number; sharedBytes?: number })[]` | | listAddonInstances | `metricsProvider.listAddonInstances` | query | protected | `void` | `({ addonId: string; nodeId: string; role: "hub" \| "worker"; pid: number; state: "starting" \| "running" \| "stopping" \| "stopped" \| "crashed"; uptimeSec: number })[]` | | getAddonStats | `metricsProvider.getAddonStats` | query | protected | `{ addonId: string }` | `{ pid: number; cpu: number; memory: number; privateBytes?: number; sharedBytes?: number } \| null` | | listNodeProcesses | `metricsProvider.listNodeProcesses` | query | protected | `void` | `({ pid: number; ppid: number; pgid: number; classification: "root" \| "managed" \| "system"; addonId: string \| null; nodeId: string \| null; command: string; cpuPercent: number; memoryRssBytes: number; cpuMainPercent: number \| null; cpuGcPercent: number \| null; threadCount: number \| null; uptimeSec: number })[]` | | getLoadSeries | `metricsProvider.getLoadSeries` | query | protected | `{ forNodeId: string; sinceMs?: number; maxPoints?: number }` | `{ nodeId: string; series: ({ key: string; kind: "addon" \| "root" \| "unattributed"; points: ({ atMs: number; samples: number; cpuMainPercent: number \| null; cpuMainPercentMin: number \| null; cpuGcPercent: number \| null; cpuGcPercentMin: number \| null; cpuLifetimePercent: number; cpuLifetimePercentMin: number; memoryRssBytes: number; memoryRssBytesMin: number; processCount: number; processCountMin: number })[] })[]; containerMemory: ({ source: "cgroup-v2" \| "cgroup-v1"; currentBytes: number; limitBytes: number \| null; anonBytes: number \| null; fileBytes: number \| null; shmemBytes: number \| null; slabBytes: number \| null; gpuShmemBytes: number \| null; atMs: number })[]; bucketMs: number; retainedSamples: number; oldestAtMs: number \| null; cadenceMs: number; durable: boolean }` | ### `migrations` → `migrations.*` - **Source:** `packages/types/src/capabilities/migrations.cap.ts:28` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** internal - **Provider interface:** `IMigrationsProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listLedger | `migrations.listLedger` | query | admin | `{}` | `{ entries: ({ id: string; database: DataStoreDatabaseSchema; owner: string; level: "hub-store" \| "addon-state" \| "node-config" \| "viewer" \| "addon-internal"; seq: number; status: "applied" \| "failed" \| "blocked" \| "running" \| "held" \| "skipped-newer"; attempts: number; appliedAt: number \| null; codeVersion: string \| null; planSummary: Record \| null; progress: Record \| null; error: string \| null; reason: string \| null; nodeId: string \| null; bootId: string \| null; meta?: { id: string; owner: string; level: "hub-store" \| "addon-state" \| "node-config" \| "viewer" \| "addon-internal"; seq: number; dependsOn: string[]; store: "settings" \| "events" \| "history" \| "node-local" \| "addon-files"; scope: "cluster" \| "per-node"; onFailure: "block-owner" \| "tolerate"; bodyKind: "sql" \| "plan" \| "procedure"; description: string; fixtureMark: string }; ownerNotLoaded?: boolean })[] }` | | listPending | `migrations.listPending` | query | admin | `{ owner?: string }` | `{ pending: ({ meta: { id: string; owner: string; level: "hub-store" \| "addon-state" \| "node-config" \| "viewer" \| "addon-internal"; seq: number; dependsOn: string[]; store: "settings" \| "events" \| "history" \| "node-local" \| "addon-files"; scope: "cluster" \| "per-node"; onFailure: "block-owner" \| "tolerate"; bodyKind: "sql" \| "plan" \| "procedure"; description: string; fixtureMark: string }; database: DataStoreDatabaseSchema; state: "pending" \| "failed" \| "blocked" \| "held"; reason: string \| null })[] }` | | dryRun | `migrations.dryRun` | query | admin | `{ id: string }` | `{ id: string; ok: boolean; error: string \| null; rowsChanged: number; tables: ({ table: string; before: number; after: number })[] }` | | markFailed | `migrations.markFailed` | mutation | admin | `{ id: string; error: string }` | `{ id: string; database: DataStoreDatabaseSchema; owner: string; level: "hub-store" \| "addon-state" \| "node-config" \| "viewer" \| "addon-internal"; seq: number; status: "applied" \| "failed" \| "blocked" \| "running" \| "held" \| "skipped-newer"; attempts: number; appliedAt: number \| null; codeVersion: string \| null; planSummary: Record \| null; progress: Record \| null; error: string \| null; reason: string \| null; nodeId: string \| null; bootId: string \| null; meta?: { id: string; owner: string; level: "hub-store" \| "addon-state" \| "node-config" \| "viewer" \| "addon-internal"; seq: number; dependsOn: string[]; store: "settings" \| "events" \| "history" \| "node-local" \| "addon-files"; scope: "cluster" \| "per-node"; onFailure: "block-owner" \| "tolerate"; bodyKind: "sql" \| "plan" \| "procedure"; description: string; fixtureMark: string }; ownerNotLoaded?: boolean }` | | retry | `migrations.retry` | mutation | admin | `{ id: string }` | `{ entries: ({ id: string; database: DataStoreDatabaseSchema; owner: string; level: "hub-store" \| "addon-state" \| "node-config" \| "viewer" \| "addon-internal"; seq: number; status: "applied" \| "failed" \| "blocked" \| "running" \| "held" \| "skipped-newer"; attempts: number; appliedAt: number \| null; codeVersion: string \| null; planSummary: Record \| null; progress: Record \| null; error: string \| null; reason: string \| null; nodeId: string \| null; bootId: string \| null; meta?: { id: string; owner: string; level: "hub-store" \| "addon-state" \| "node-config" \| "viewer" \| "addon-internal"; seq: number; dependsOn: string[]; store: "settings" \| "events" \| "history" \| "node-local" \| "addon-files"; scope: "cluster" \| "per-node"; onFailure: "block-owner" \| "tolerate"; bodyKind: "sql" \| "plan" \| "procedure"; description: string; fixtureMark: string }; ownerNotLoaded?: boolean })[] }` | | restorePreMigration | `migrations.restorePreMigration` | mutation | admin | `{ database: DataStoreDatabaseSchema; snapshotId: string }` | `{ scheduled: boolean; held: string[]; restartRequired: boolean }` | | declareOwner | `migrations.declareOwner` | mutation | admin | `{ owner: string; metas: ({ id: string; owner: string; level: "hub-store" \| "addon-state" \| "node-config" \| "viewer" \| "addon-internal"; seq: number; dependsOn: string[]; store: "settings" \| "events" \| "history" \| "node-local" \| "addon-files"; scope: "cluster" \| "per-node"; onFailure: "block-owner" \| "tolerate"; bodyKind: "sql" \| "plan" \| "procedure"; description: string; fixtureMark: string })[]; retired?: string[] }` | `{ bootId: string; snapshot: "none" \| "written" \| "refused"; steps: ({ id: string; action: "run" \| "skip"; state: "pending" \| "applied" \| "failed" \| "blocked" \| "running" \| "held" \| "skipped-newer" })[]; migrationApi?: { version: number; methods: string[] } }` | | startMigration | `migrations.startMigration` | mutation | admin | `{ id: string }` | `{ proceed: boolean; state: "pending" \| "applied" \| "failed" \| "blocked" \| "running" \| "held" \| "skipped-newer"; reason: string \| null }` | | finishMigration | `migrations.finishMigration` | mutation | admin | `{ id: string; result: { kind: "plan"; plan: { edits: ({ op: "setKeys"; scope: string; values: Record; precondition?: string } \| { op: "deleteKeys"; scope: string; keys: string[]; precondition?: string } \| { op: "putRow"; table: string; key: Record; row: Record; precondition?: string } \| { op: "deleteRow"; table: string; key: Record; precondition?: string } \| { op: "upsertRecord"; kind: string; recordKey: string; value: unknown; precondition?: string } \| { op: "deleteRecord"; kind: string; recordKey: string; precondition?: string })[] } } \| { kind: "procedure"; result: { outcome: "done" \| "already-done"; summary: Record } } \| { kind: "failed"; error: string } }` | `{ status: "applied" \| "failed" \| "blocked" \| "running" \| "held" \| "skipped-newer"; error: string \| null; rowsChanged: number }` | | readLegacyIntegrationRows | `migrations.readLegacyIntegrationRows` | query | admin | `{ integrationId: string }` | `Record` | | clearLegacyIntegrationRows | `migrations.clearLegacyIntegrationRows` | mutation | admin | `{ integrationId: string }` | `{ rows: number; secrets: number }` | | patchLegacyIntegrationRows | `migrations.patchLegacyIntegrationRows` | mutation | admin | `{ integrationId: string; patch: Record }` | `{ written: boolean }` | | deleteLegacyIntegrationRowKeys | `migrations.deleteLegacyIntegrationRowKeys` | mutation | admin | `{ integrationId: string; keys: string[] }` | `{ present: boolean; removed: Record }` | ### `model-convert` → `modelConvert.*` - **Source:** `packages/types/src/capabilities/model-convert.cap.ts:19` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** internal - **Provider interface:** `IModelConvertProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | convert | `modelConvert.convert` | mutation | admin | `ModelConvertInputSchema` | `{ entry: { id: string; name: string; description: string; formats: { onnx?: { url: string; sizeMB: number; isDirectory?: boolean; files?: string[]; runtimes?: "python"[]; revision?: string }; coreml?: { url: string; sizeMB: number; isDirectory?: boolean; files?: string[]; runtimes?: "python"[]; revision?: string }; openvino?: { url: string; sizeMB: number; isDirectory?: boolean; files?: string[]; runtimes?: "python"[]; revision?: string }; tflite?: { url: string; sizeMB: number; isDirectory?: boolean; files?: string[]; runtimes?: "python"[]; revision?: string }; pt?: { url: string; sizeMB: number; isDirectory?: boolean; files?: string[]; runtimes?: "python"[]; revision?: string }; gguf?: { url: string; sizeMB: number; isDirectory?: boolean; files?: string[]; runtimes?: "python"[]; revision?: string } }; inputSize: { width: number; height: number }; inputChannels?: number; labels: ({ id: string; name: string; category?: string; description?: string; icon?: string })[]; inputLayout?: "nchw" \| "nhwc"; inputNormalization?: "zero-one" \| "imagenet" \| "none" \| "scrfd"; outputProbabilities?: boolean; preprocessMode?: "letterbox" \| "resize"; postprocessor?: ; defaultConfidence?: number; defaultClassFloors?: Record; gpuInferencePrecision?: "f32" \| "f16"; suppliedLabelFloors?: Record; faceAlignment?: boolean; extraFiles?: ({ url: string; filename: string; sizeMB: number })[]; legacy?: boolean; metrics?: { map50?: number; p95LatencyMs?: Record }; license?: pipe; group?: { family: string; tier: string; precision?: "fp32" \| "int8"; optimization?: "standard" \| "test"; resolution?: number }; provider?: "camstack" \| "frigate" \| "scrypted" \| "custom"; classMap?: { mapping: Record; preserveOriginal: boolean }; suppliesSteps?: ({ kind: "label"; stepId: "animal-classifier" \| "vehicle-classifier" \| "package-detection"; labelToEffect: Record; uncovered: string[] } \| { kind: "crop"; stepId: "plate-detection" \| "face-detection"; rootLabels: string[]; parentMacro: "vehicle" \| "person"; childClass: "plate" \| "face"; rootInputPx?: number } \| { kind: "mask"; stepId: "segmentation" })[]; clip?: { textModelId: string; embeddingDim: number; vectorIndex: string; tokenizerFile: string; contextLength: number; padId: number; searchMinScore: number } }; artifacts: ({ format: "onnx" \| "coreml" \| "openvino" \| "tflite" \| "pt" \| "gguf"; precision?: "fp16" \| "int8"; sizeMB: number; validated: boolean; files: string[] })[] }` | ### `model-distributor` → `modelDistributor.*` - **Source:** `packages/types/src/capabilities/model-distributor.cap.ts:39` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** internal - **Provider interface:** `IModelDistributorProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | distributeModel | `modelDistributor.distributeModel` | mutation | admin | `ModelDistributeInputSchema` | `ModelDistributeResultSchema` | ### `motion` → `motion.*` - **Source:** `packages/types/src/capabilities/motion.cap.ts:146` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `camera, sensor` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IMotionProvider` - **runtimeState:** `MotionStatusSchema` - **Events:** `onMotionChanged` → `MotionOnMotionChangedDataSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `motion.getStatus` | query | protected | `{ deviceId: number }` | `MotionStatusSchema` | | isDetected | `motion.isDetected` | query | protected | `{ deviceId: number }` | `boolean` | ### `motion-detection` → `motionDetection.*` - **Source:** `packages/types/src/capabilities/motion-detection.cap.ts:26` - **Meta:** scope: `device` · mode: `singleton` · mount: `device-scoped` · deviceTypes: `camera` - **Archetypes:** exposesDeviceSettings · wrapper(defaultActive) - **Provider interface:** `IMotionDetectionProvider` - **Events:** `onMotion` → `{ deviceId: number; detected: boolean; regionCount: number }` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getDeviceSettingsContribution _(auto)_ | `motionDetection.getDeviceSettingsContribution` | query | protected | `{ deviceId: number }` | `{ tabs?: ({ id: string; label: string; icon: string; order?: number })[]; sections: ({ id: string; title: string; description?: string; style?: "card" \| "accordion"; defaultCollapsed?: boolean; columns?: 1 \| 2 \| 3 \| 4; tab?: string; location?: "settings" \| "top-tab" \| "hero"; order?: number; fields: any[] })[] } \| null` | | getDeviceLiveContribution _(auto)_ | `motionDetection.getDeviceLiveContribution` | query | protected | `{ deviceId: number }` | `{ tabs?: ({ id: string; label: string; icon: string; order?: number })[]; sections: ({ id: string; title: string; description?: string; style?: "card" \| "accordion"; defaultCollapsed?: boolean; columns?: 1 \| 2 \| 3 \| 4; tab?: string; location?: "settings" \| "top-tab" \| "hero"; order?: number; fields: any[] })[] } \| null` | | applyDeviceSettingsPatch _(auto)_ | `motionDetection.applyDeviceSettingsPatch` | mutation | admin | `{ deviceId: number; patch: Record }` | `{ success: true }` | | analyze | `motionDetection.analyze` | mutation | protected | `{ deviceId: number; frame?: FrameInputSchema; frameHandle?: FrameHandleSchema }` | `MotionAnalysisResultSchema` | | removeCamera | `motionDetection.removeCamera` | mutation | protected | `{ deviceId: number }` | `void` | | reset | `motionDetection.reset` | mutation | protected | `void` | `void` | ### `motion-trigger` → `motionTrigger.*` - **Source:** `packages/types/src/capabilities/motion-trigger.cap.ts:50` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `light, siren, switch` - **Archetypes:** status(command-driven) · runtimeState - **Provider interface:** `IMotionTriggerProvider` - **runtimeState:** `MotionTriggerRuntimeStateSchema` - **Events:** `onMotionTriggerChanged` → `{ deviceId: number; enabled: boolean; lastChangedAt: number }` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `motionTrigger.getStatus` | query | protected | `{ deviceId: number }` | `MotionTriggerStatusSchema` | | setMotionTrigger | `motionTrigger.setMotionTrigger` | mutation | protected | `{ deviceId: number; enabled: boolean }` | `void` | ### `motion-zones` → `motionZones.*` - **Source:** `packages/types/src/capabilities/motion-zones.cap.ts:57` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `camera` - **Archetypes:** status(poll) · runtimeState · deviceConfig(widget) - **Provider interface:** `IMotionZonesProvider` - **runtimeState:** `MotionZoneStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `motionZones.getStatus` | query | protected | `{ deviceId: number }` | `MotionZoneStatusSchema` | | getOptions | `motionZones.getOptions` | query | protected | `{ deviceId: number }` | `MotionZoneOptionsSchema` | | setZone | `motionZones.setZone` | mutation | admin | `{ deviceId: number; patch: MotionZonePatchSchema }` | `void` | ### `mqtt-broker` → `mqttBroker.*` - **Source:** `packages/types/src/capabilities/mqtt-broker.cap.ts:120` - **Meta:** scope: `system` · mode: `collection` · mount: `collection` · providerKind: `broker` - **Archetypes:** status(poll) - **Provider interface:** `IMqttBrokerProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus | `mqttBroker.getStatus` | query | protected | `void` | `MqttBrokerStatusSchema` | | listBrokers | `mqttBroker.listBrokers` | query | protected | `void` | `MqttBrokerInfoSchema[]` | | getBrokerConfig | `mqttBroker.getBrokerConfig` | query | admin | `{ id: string }` | `BrokerConnectionDetailsSchema` | | addBroker | `mqttBroker.addBroker` | mutation | admin | `AddBrokerInputSchema` | `{ id: string }` | | removeBroker | `mqttBroker.removeBroker` | mutation | admin | `{ id: string }` | `void` | | startEmbeddedBroker | `mqttBroker.startEmbeddedBroker` | mutation | admin | `StartEmbeddedInputSchema` | `{ id: string; url: string }` | | stopEmbeddedBroker | `mqttBroker.stopEmbeddedBroker` | mutation | admin | `{ id: string }` | `void` | ### `native-object-detection` → `nativeObjectDetection.*` - **Source:** `packages/types/src/capabilities/native-object-detection.cap.ts:114` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `camera` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `INativeObjectDetectionProvider` - **runtimeState:** `NativeObjectDetectionRuntimeStateSchema` - **Events:** `onDetected` → `{ deviceId: number; detection: NativeDetectionSchema }` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `nativeObjectDetection.getStatus` | query | protected | `{ deviceId: number }` | `NativeObjectDetectionStatusSchema` | | getOptions | `nativeObjectDetection.getOptions` | query | protected | `{ deviceId: number }` | `NativeObjectDetectionOptionsSchema` | | setSettings | `nativeObjectDetection.setSettings` | mutation | admin | `{ deviceId: number; settings: NativeObjectDetectionSettingsPatchSchema }` | `void` | | setEnabled | `nativeObjectDetection.setEnabled` | mutation | admin | `{ deviceId: number; enabled: boolean }` | `void` | ### `navigation` → `navigation.*` - **Source:** `packages/types/src/capabilities/navigation.cap.ts:359` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `camera` - **Archetypes:** status(push) · runtimeState · deviceConfig(widget) - **Provider interface:** `INavigationProvider` - **runtimeState:** `NavigationRuntimeStateSchema` - **Events:** `onStatusChanged` → `{ deviceId: number; status: NavigationStatusSchema }` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `navigation.getStatus` | query | protected | `{ deviceId: number }` | `NavigationStatusSchema` | | move | `navigation.move` | mutation | protected | `{ pan?: number; tilt?: number; speed?: number; deviceId: number }` | `void` | | stop | `navigation.stop` | mutation | protected | `{ deviceId: number }` | `void` | | goToPoint | `navigation.goToPoint` | mutation | protected | `{ x: number; y: number; deviceId: number }` | `void` | | listActions | `navigation.listActions` | query | protected | `{ deviceId: number }` | `NavigationActionEntrySchema[]` | | runAction | `navigation.runAction` | mutation | protected | `{ deviceId: number; actionId: NavigationActionIdSchema }` | `void` | | playSound | `navigation.playSound` | mutation | protected | `{ deviceId: number; soundId: number }` | `void` | | setLightOn | `navigation.setLightOn` | mutation | protected | `{ deviceId: number; on: boolean }` | `void` | | setLightMode | `navigation.setLightMode` | mutation | protected | `{ deviceId: number; mode: NavigationLightModeSchema; level?: number }` | `void` | | setLightLevel | `navigation.setLightLevel` | mutation | protected | `{ deviceId: number; level: number }` | `void` | | getFeatures | `navigation.getFeatures` | query | protected | `{ deviceId: number }` | `NavigationFeaturesSchema` | ### `network-access` → `networkAccess.*` - **Source:** `packages/types/src/capabilities/network-access.cap.ts:63` - **Meta:** scope: `system` · mode: `collection` · mount: `collection` · providerKind: `ingress` - **Archetypes:** — - **Provider interface:** `INetworkAccessProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | start | `networkAccess.start` | mutation | protected | `void` | `NetworkEndpointSchema` | | stop | `networkAccess.stop` | mutation | protected | `void` | `void` | | getEndpoint | `networkAccess.getEndpoint` | query | protected | `void` | `NetworkEndpointSchema \| null` | | getStatus | `networkAccess.getStatus` | query | protected | `void` | `NetworkAccessStatusSchema` | | listEndpoints | `networkAccess.listEndpoints` | query | protected | `void` | `({ url: string; hostname: string; port: number; protocol: "http" \| "https"; stable?: boolean; id: string; label: string; mode?: string; sourcePort?: number })[]` | ### `network-link` → `networkLink.*` - **Source:** `packages/types/src/capabilities/network-link.cap.ts:79` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `camera, sensor, button, switch, light, lock, siren` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `INetworkLinkProvider` - **runtimeState:** `NetworkLinkStatusSchema` - **Events:** `onStatusChanged` → `{ deviceId: number; status: NetworkLinkStatusSchema }` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `networkLink.getStatus` | query | protected | `{ deviceId: number }` | `NetworkLinkStatusSchema` | ### `network-quality` → `networkQuality.*` - **Source:** `packages/types/src/capabilities/network-quality.cap.ts:47` - **Meta:** scope: `system` · mode: `singleton` · mount: `server-provided` - **Archetypes:** — - **Provider interface:** `INetworkQualityProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getDeviceStats | `networkQuality.getDeviceStats` | query | protected | `{ deviceId: number }` | `DeviceNetworkStatsSchema \| null` | | getAllStats | `networkQuality.getAllStats` | query | protected | `void` | `DeviceNetworkStatsSchema[]` | | reportClientStats | `networkQuality.reportClientStats` | mutation | protected | `{ deviceId: number; rttMs: number; jitterMs: number; estimatedBandwidthKbps: number; packetLossPercent: number; downlinkMbps?: number; downlinkAgeMs?: number }` | `void` | ### `node-certificates` → `nodeCertificates.*` - **Source:** `packages/types/src/capabilities/node-certificates.cap.ts:45` - **Meta:** scope: `system` · mode: `singleton` · mount: `skip` - **Archetypes:** internal - **Provider interface:** `INodeCertificatesProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getCertificates | `nodeCertificates.getCertificates` | query | admin | `{}` | `{ nodeId: string; mesh: MeshLeafInfoSchema \| null; https: NodeHttpsStateSchema }` | | prepareMeshRenewal | `nodeCertificates.prepareMeshRenewal` | mutation | admin | `{}` | `{ csrPem: string }` | | installMeshLeaf | `nodeCertificates.installMeshLeaf` | mutation | admin | `{ certPem: string; caCertPem: string; confirmWithinMs: number }` | `{ fingerprintSha256: string; serial: string }` | | confirmMeshLeaf | `nodeCertificates.confirmMeshLeaf` | mutation | admin | `{ fingerprintSha256: string }` | `{ confirmed: boolean }` | | rollbackMeshLeaf | `nodeCertificates.rollbackMeshLeaf` | mutation | admin | `{}` | `{ rolledBack: boolean }` | | prepareHttpsCertificate | `nodeCertificates.prepareHttpsCertificate` | mutation | admin | `{}` | `{ csrPem: string; hostnames: string[]; addresses: string[]; pinnedCaFingerprintSha256: string \| null }` | | forgetHub | `nodeCertificates.forgetHub` | mutation | admin | `{}` | `{ ok: true }` | | installHttpsCertificate | `nodeCertificates.installHttpsCertificate` | mutation | admin | `{ certPem: string; caCertPem: string; caRotation?: boolean }` | `HttpsLeafInfoSchema` | ### `node-removal-hook` → `nodeRemovalHook.*` - **Source:** `packages/types/src/capabilities/node-removal-hook.cap.ts:56` - **Meta:** scope: `system` · mode: `collection` · mount: `skip` - **Archetypes:** internal - **Provider interface:** `INodeRemovalHookProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | onNodeRemoved | `nodeRemovalHook.onNodeRemoved` | mutation | admin | `NodeRemovedInputSchema` | `NodeRemovedResultSchema` | ### `nodes` → `nodes.*` - **Source:** `packages/types/src/capabilities/nodes.cap.ts:220` - **Meta:** scope: `system` · mode: `singleton` · mount: `server-provided` · nodeIdMode: `data` - **Archetypes:** — - **Provider interface:** `INodesProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | topology | `nodes.topology` | query | admin | `void` | `TopologyNodeSchema[]` | | directory | `nodes.directory` | query | admin | `void` | `NodeDirectorySchema` | | deployAddon | `nodes.deployAddon` | mutation | admin | `{ nodeId: string; addonId: string }` | `{ success: boolean }` | | undeployAddon | `nodes.undeployAddon` | mutation | admin | `{ nodeId: string; addonId: string }` | `{ success: boolean }` | | restartAddon | `nodes.restartAddon` | mutation | admin | `{ nodeId: string; addonId: string }` | `{ success: boolean }` | | restartProcess | `nodes.restartProcess` | mutation | admin | `{ nodeId: string; processName: string }` | `{ success: boolean; reason?: string }` | | restartNode | `nodes.restartNode` | mutation | admin | `{ nodeId: string }` | `{ restarted: string[]; failed: string[] }` | | shutdownNode | `nodes.shutdownNode` | mutation | admin | `{ nodeId: string }` | `{ success: boolean }` | | renameNode | `nodes.renameNode` | mutation | admin | `{ nodeId: string; name: string }` | `{ nodeId: string; name: string }` | | clusterAddonStatus | `nodes.clusterAddonStatus` | query | admin | `void` | `Record` | | getCapUsageGraph | `nodes.getCapUsageGraph` | query | admin | `{ windowSeconds?: number = 60 }` | `({ callerAddonId: string; providerAddonId: string; capName: string; callsPerMin: number; lastCallAtMs: number })[]` | | getNodeAddons | `nodes.getNodeAddons` | query | admin | `{ nodeId: string }` | `({ id: string; status: string; version?: string; packageName?: string })[]` | | setProcessLogLevel | `nodes.setProcessLogLevel` | mutation | admin | `{ nodeId: string; level: string }` | `{ success: boolean }` | | executeQuery | `nodes.executeQuery` | mutation | admin | `{ nodeId: string; addonId: string; queryName: string; params?: Record }` | `unknown` | ### `notification-output` → `notificationOutput.*` - **Source:** `packages/types/src/capabilities/notification-output.cap.ts:441` - **Meta:** scope: `system` · mode: `collection` · mount: `collection` - **Archetypes:** — - **Provider interface:** `INotificationOutputProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listTargetKinds | `notificationOutput.listTargetKinds` | query | protected | `{}` | `TargetKindSchema[]` | | discoverTargets | `notificationOutput.discoverTargets` | query | admin | `{ kind: string; config?: Record; targetId?: string }` | `DiscoveredTargetSchema[]` | | probeTargetConfig | `notificationOutput.probeTargetConfig` | mutation | admin | `{ kind: string; config: Record; targetId?: string }` | `ProbeTargetConfigResultSchema` | | send | `notificationOutput.send` | mutation | admin | `{ targetId: string; notification: NotificationSchema }` | `SendResultSchema` | | testTarget | `notificationOutput.testTarget` | mutation | admin | `{ targetId: string; sample?: NotificationSchema }` | `SendResultSchema` | ### `notification-rules` → `notificationRules.*` - **Source:** `packages/types/src/capabilities/notification-rules.cap.ts:3369` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `INotificationRulesProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listRules | `notificationRules.listRules` | query | admin | `{}` | `{ rules: NcRuleSchema[] }` | | getRule | `notificationRules.getRule` | query | admin | `{ ruleId: string }` | `{ rule: NcRuleSchema \| null }` | | createRule | `notificationRules.createRule` | mutation | admin | `{ rule: NcRuleInputSchema }` | `{ rule: NcRuleSchema }` | | updateRule | `notificationRules.updateRule` | mutation | admin | `NcRuleUpdateInputSchema` | `{ rule: NcRuleSchema }` | | deleteRule | `notificationRules.deleteRule` | mutation | admin | `{ ruleId: string }` | `{ success: true }` | | setRuleEnabled | `notificationRules.setRuleEnabled` | mutation | admin | `{ ruleId: string; enabled: boolean }` | `{ success: true }` | | getClipRetentionAsks | `notificationRules.getClipRetentionAsks` | query | admin | `{}` | `NcClipRetentionPlanSchema` | | listDeviceMutes | `notificationRules.listDeviceMutes` | query | admin | `{}` | `{ mutedDeviceIds: number[] }` | | setDeviceMuted | `notificationRules.setDeviceMuted` | mutation | admin | `{ deviceId: number; muted: boolean }` | `{ success: true }` | | testRule | `notificationRules.testRule` | mutation | admin | `{ rule: NcRuleInputSchema; lookbackMinutes?: number = 60 }` | `{ results: NcTestResultSchema[] }` | | previewStateSummary | `notificationRules.previewStateSummary` | mutation | admin | `{ rule: NcRuleInputSchema }` | `NcStateSummaryPreviewSchema` | | getConditionCatalog | `notificationRules.getConditionCatalog` | query | protected | `{}` | `{ catalog: NcConditionDescriptorSchema[]; taxonomy?: { videoClasses: ({ kind: string; label: string; parentKind: string \| null })[]; audioKinds: ({ kind: string; label: string; parentKind: string \| null })[]; labels: ({ kind: string; label: string; parentKind: string \| null })[] } }` | | getTemplateCatalog | `notificationRules.getTemplateCatalog` | query | protected | `{}` | `{ vars: NcTemplateVarDescriptorSchema[]; defaults: NcTemplateDefaultSchema[] }` | | previewTemplate | `notificationRules.previewTemplate` | mutation | protected | `NcTemplatePreviewInputSchema` | `NcTemplatePreviewSchema` | | getHistory | `notificationRules.getHistory` | query | admin | `{ filter?: NcHistoryFilterSchema = {"limit":100} }` | `{ entries: NcHistoryEntrySchema[] }` | | getRuleLastRuns | `notificationRules.getRuleLastRuns` | query | admin | `{}` | `NcRuleLastRunsSchema` | | resolveArtifactUrl | `notificationRules.resolveArtifactUrl` | query | admin | `{ artifactId: string }` | `{ url: string \| null }` | | listSnoozes | `notificationRules.listSnoozes` | query | protected | `{}` | `{ snoozes: NcSnoozeSchema[] }` | | createSnooze | `notificationRules.createSnooze` | mutation | protected | `{ snooze: NcSnoozeInputSchema }` | `{ snooze: NcSnoozeSchema }` | | cancelSnooze | `notificationRules.cancelSnooze` | mutation | protected | `{ snoozeId: string }` | `{ success: true }` | | getAlarmConfig | `notificationRules.getAlarmConfig` | query | admin | `{}` | `NcAlarmConfigSchema` | | setAlarmConfig | `notificationRules.setAlarmConfig` | mutation | admin | `{ patch: NcAlarmSettingsPatchSchema }` | `NcAlarmConfigSchema` | | createAlarmProfile | `notificationRules.createAlarmProfile` | mutation | admin | `NcAlarmCreateProfileInputSchema` | `NcAlarmConfigSchema` | | renameAlarmProfile | `notificationRules.renameAlarmProfile` | mutation | admin | `NcAlarmRenameProfileInputSchema` | `NcAlarmConfigSchema` | | deleteAlarmProfile | `notificationRules.deleteAlarmProfile` | mutation | admin | `NcAlarmProfileIdInputSchema` | `NcAlarmConfigSchema` | | activateAlarmProfile | `notificationRules.activateAlarmProfile` | mutation | admin | `NcAlarmProfileIdInputSchema` | `NcAlarmConfigSchema` | | getAlarmSensors | `notificationRules.getAlarmSensors` | query | admin | `NcAlarmSensorsInputSchema` | `NcAlarmSensorsSchema` | ### `notifier` → `notifier.*` - **Source:** `packages/types/src/capabilities/notifier.cap.ts:109` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `notifier` - **Archetypes:** status(command-driven) · runtimeState - **Provider interface:** `INotifierProvider` - **runtimeState:** `NotifierStatusSchema` - **Events:** `onSent` → `{ deviceId: number; notificationId: string; success: boolean; error: string \| null; acceptedAt: number }` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `notifier.getStatus` | query | protected | `{ deviceId: number }` | `NotifierStatusSchema` | | send | `notifier.send` | mutation | admin | `{ deviceId: number; title?: string; body: string; image?: string; priority?: "min" \| "low" \| "normal" \| "high"; channel?: string; recipients?: string[]; actions?: ({ id: string; title: string; uri?: string(url); destructive?: boolean })[]; data?: Record }` | `{ notificationId: string; acceptedAt: number }` | | cancel | `notifier.cancel` | mutation | admin | `{ deviceId: number; notificationId: string }` | `void` | ### `numeric-sensor` → `numericSensor.*` - **Source:** `packages/types/src/capabilities/numeric-sensor.cap.ts:31` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `sensor` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `INumericSensorProvider` - **runtimeState:** `NumericSensorStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `numericSensor.getStatus` | query | protected | `{ deviceId: number }` | `NumericSensorStatusSchema` | ### `oauth-integration` → `oauthIntegration.*` - **Source:** `packages/types/src/capabilities/oauth-integration.cap.ts:146` - **Meta:** scope: `system` · mode: `collection` · mount: `collection` - **Archetypes:** internal - **Provider interface:** `IOauthIntegrationProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getDescriptor | `oauthIntegration.getDescriptor` | query | admin | `void` | `OauthIntegrationDescriptorSchema` | ### `osd` → `osd.*` - **Source:** `packages/types/src/capabilities/osd.cap.ts:68` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `camera` - **Archetypes:** status(command-driven) · settings(1 binding(s)) - **Provider interface:** `IOsdProvider` - **Events:** `onStatusChanged` → `{ deviceId: number; status: OsdStatusSchema }` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `osd.getStatus` | query | protected | `{ deviceId: number }` | `OsdStatusSchema` | | setOverlay | `osd.setOverlay` | mutation | admin | `{ deviceId: number; overlayId: string; patch: OsdOverlayPatchSchema }` | `void` | ### `osd-manager` → `osdManager.*` - **Source:** `packages/types/src/capabilities/osd-manager.cap.ts:149` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `IOsdManagerProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getDeviceOsd | `osdManager.getDeviceOsd` | query | admin | `{ deviceId: number }` | `{ supported: boolean; slots: OsdSlotViewSchema[] }` | | getConditionSupport | `osdManager.getConditionSupport` | query | admin | `{}` | `{ supported: string[]; catalog: NcConditionDescriptorSchema[] }` | | setSlotBinding | `osdManager.setSlotBinding` | mutation | admin | `{ deviceId: number; slotId: string; binding: OsdSlotBindingSchema }` | `{ slot: OsdSlotViewSchema; render: OsdRenderResultSchema }` | | clearSlotBinding | `osdManager.clearSlotBinding` | mutation | admin | `{ deviceId: number; slotId: string }` | `{ success: true }` | | setSlotCameraEnabled | `osdManager.setSlotCameraEnabled` | mutation | admin | `{ deviceId: number; slotId: string; enabled: boolean }` | `{ success: true }` | | copyDeviceConfiguration | `osdManager.copyDeviceConfiguration` | mutation | admin | `{ sourceDeviceId: number; targetDeviceId: number }` | `{ copied: number; skipped: number }` | | previewSlot | `osdManager.previewSlot` | mutation | admin | `{ deviceId: number; slotId: string; binding?: OsdSlotBindingSchema }` | `OsdRenderResultSchema` | | previewTemplate | `osdManager.previewTemplate` | mutation | admin | `{ deviceId: number; text: string }` | `OsdTemplatePreviewSchema` | | renderDevice | `osdManager.renderDevice` | mutation | admin | `{ deviceId: number }` | `{ results: OsdRenderResultSchema[] }` | | listTemplates | `osdManager.listTemplates` | query | admin | `{}` | `{ templates: OsdNamedTemplateSchema[] }` | | upsertTemplate | `osdManager.upsertTemplate` | mutation | admin | `{ template: OsdNamedTemplateSchema }` | `{ template: OsdNamedTemplateSchema }` | | deleteTemplate | `osdManager.deleteTemplate` | mutation | admin | `{ templateId: string }` | `{ success: true }` | ### `pet-feeder` → `petFeeder.*` - **Source:** `packages/types/src/capabilities/pet-feeder.cap.ts:138` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `pet-feeder` - **Archetypes:** status(poll) · runtimeState - **Provider interface:** `IPetFeederProvider` - **runtimeState:** `PetFeederStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `petFeeder.getStatus` | query | protected | `{ deviceId: number }` | `PetFeederStatusSchema` | | feed | `petFeeder.feed` | mutation | protected | `{ deviceId: number; grams?: number; hopper1?: number; hopper2?: number }` | `void` | | cancelFeed | `petFeeder.cancelFeed` | mutation | protected | `{ deviceId: number }` | `void` | | callPet | `petFeeder.callPet` | mutation | protected | `{ deviceId: number }` | `void` | | playSound | `petFeeder.playSound` | mutation | protected | `{ deviceId: number; soundId: number }` | `void` | | resetDesiccant | `petFeeder.resetDesiccant` | mutation | protected | `{ deviceId: number }` | `void` | | markFoodReplenished | `petFeeder.markFoodReplenished` | mutation | protected | `{ deviceId: number }` | `void` | | setChildLock | `petFeeder.setChildLock` | mutation | protected | `{ deviceId: number; on: boolean }` | `void` | | setIndicatorLight | `petFeeder.setIndicatorLight` | mutation | protected | `{ deviceId: number; on: boolean }` | `void` | | setFeedSound | `petFeeder.setFeedSound` | mutation | protected | `{ deviceId: number; on: boolean }` | `void` | | setVolume | `petFeeder.setVolume` | mutation | protected | `{ deviceId: number; level: number }` | `void` | ### `pet-fountain` → `petFountain.*` - **Source:** `packages/types/src/capabilities/pet-fountain.cap.ts:78` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `pet-fountain` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IPetFountainProvider` - **runtimeState:** `PetFountainStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `petFountain.getStatus` | query | protected | `{ deviceId: number }` | `PetFountainStatusSchema` | | setPump | `petFountain.setPump` | mutation | protected | `{ deviceId: number; on: boolean }` | `void` | ### `pipeline-analytics` → `pipelineAnalytics.*` - **Source:** `packages/types/src/capabilities/pipeline-analytics.cap.ts:2735` - **Meta:** scope: `device` · mode: `singleton` · mount: `device-scoped` · deviceTypes: `camera` - **Archetypes:** exposesDeviceSettings · wrapper(defaultActive) - **Provider interface:** `IPipelineAnalyticsProvider` - **Events:** `onFrameTracked` → `{ deviceId: number; timestamp: number; frameWidth: number; frameHeight: number; detections: ({ id: string; kind: "first-level" \| "detail"; macroClass: string; score: number; bbox: { x: number; y: number; width: number; height: number }; labels: ({ label: string; score: number })[]; parentId?: string })[] }` · `onTrackStarted` → `{ deviceId: number; trackId: string; className: string }` · `onTrackEnded` → `{ deviceId: number; trackId: string; className: string; durationMs: number }` · `onDetectionEvent` → `{ deviceId: number; kind: EventKindSchema; eventId: string; timestamp: number }` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getDeviceSettingsContribution _(auto)_ | `pipelineAnalytics.getDeviceSettingsContribution` | query | protected | `{ deviceId: number }` | `{ tabs?: ({ id: string; label: string; icon: string; order?: number })[]; sections: ({ id: string; title: string; description?: string; style?: "card" \| "accordion"; defaultCollapsed?: boolean; columns?: 1 \| 2 \| 3 \| 4; tab?: string; location?: "settings" \| "top-tab" \| "hero"; order?: number; fields: any[] })[] } \| null` | | getDeviceLiveContribution _(auto)_ | `pipelineAnalytics.getDeviceLiveContribution` | query | protected | `{ deviceId: number }` | `{ tabs?: ({ id: string; label: string; icon: string; order?: number })[]; sections: ({ id: string; title: string; description?: string; style?: "card" \| "accordion"; defaultCollapsed?: boolean; columns?: 1 \| 2 \| 3 \| 4; tab?: string; location?: "settings" \| "top-tab" \| "hero"; order?: number; fields: any[] })[] } \| null` | | applyDeviceSettingsPatch _(auto)_ | `pipelineAnalytics.applyDeviceSettingsPatch` | mutation | admin | `{ deviceId: number; patch: Record }` | `{ success: true }` | | getActiveTracks | `pipelineAnalytics.getActiveTracks` | query | protected | `{ deviceId: number }` | `TrackSchema[]` | | getTrack | `pipelineAnalytics.getTrack` | query | protected | `{ deviceId: number; trackId: string }` | `TrackSchema \| null` | | listTracks | `pipelineAnalytics.listTracks` | query | protected | `{ deviceId: number; since?: number; until?: number; limit?: number; zone?: TrackZoneFilterSchema; projection?: TrackProjectionSchema; includeStationary?: boolean; classes?: string[]; excludeSources?: TrackSourceSchema[] }` | `TrackSchema[]` | | listRecentTracks | `pipelineAnalytics.listRecentTracks` | query | protected | `RecentTracksQueryInput` | `RecentTracksPageSchema` | | clearTracks | `pipelineAnalytics.clearTracks` | mutation | admin | `{ deviceId: number }` | `void` | | getMotionEvents | `pipelineAnalytics.getMotionEvents` | query | protected | `{ deviceId: number; since?: number; until?: number; limit?: number = 1000; projection?: "full" \| "slim" }` | `MotionEventSchema[]` | | getObjectEvents | `pipelineAnalytics.getObjectEvents` | query | protected | `{ deviceId: number; since?: number; until?: number; limit?: number = 1000; projection?: "full" \| "slim"; classFilter?: string }` | `ObjectEventSchema[]` | | getAudioEvents | `pipelineAnalytics.getAudioEvents` | query | protected | `{ deviceId: number; since?: number; until?: number; limit?: number = 1000; projection?: "full" \| "slim" }` | `AudioEventSchema[]` | | listEventKinds | `pipelineAnalytics.listEventKinds` | query | protected | `{ deviceId: number }` | `EventKindDescriptorSchema[]` | | listEventKindsBatch | `pipelineAnalytics.listEventKindsBatch` | query | protected | `{ deviceIds: number[] }` | `EventKindsForDeviceSchema[]` | | getSensorEvents | `pipelineAnalytics.getSensorEvents` | query | protected | `{ deviceId: number; since?: number; until?: number; kinds?: string[]; limit?: number = 1000 }` | `SensorEventSchema[]` | | getKeyEvents | `pipelineAnalytics.getKeyEvents` | query | protected | `{ deviceId: number; since: number; until: number; limit?: number = 50; minImportance?: number; classFilter?: string }` | `KeyEventSchema[]` | | getKeyEventsBatch | `pipelineAnalytics.getKeyEventsBatch` | query | protected | `{ deviceIds: number[]; since: number; until: number; limit?: number = 50; minImportance?: number; classFilter?: string }` | `({ deviceId: number; events: KeyEventSchema[] })[]` | | readLongTermSeries | `pipelineAnalytics.readLongTermSeries` | query | protected | `{ deviceId: number; series: AnalyticsLtsSeriesSchema; scope?: string; from: number; to: number; limit?: number }` | `LtsBucketSchema[]` | | getEventDensity | `pipelineAnalytics.getEventDensity` | query | protected | `{ deviceId: number; since: number; until: number; bucketMs: number }` | `EventDensityBucketSchema[]` | | getEventDensityBatch | `pipelineAnalytics.getEventDensityBatch` | query | protected | `{ deviceIds: number[]; since: number; until: number; bucketMs: number }` | `EventDensityForDeviceSchema[]` | | pruneEventsBefore | `pipelineAnalytics.pruneEventsBefore` | mutation | admin | `{ deviceId: number; cutoffMs: number }` | `{ motion: number; object: number; audio: number }` | | pruneTracksBefore | `pipelineAnalytics.pruneTracksBefore` | mutation | admin | `{ deviceId: number; cutoffMs: number }` | `TrackCascadeCountsSchema` | | wipeAllAnalytics | `pipelineAnalytics.wipeAllAnalytics` | mutation | admin | `{ deviceId: number }` | `TrackCascadeCountsSchema` | | reconcileFromDisk | `pipelineAnalytics.reconcileFromDisk` | mutation | admin | `{ deviceId: number }` | `{ mediaDropped: number; tracks: number; events: number }` | | deleteTracks | `pipelineAnalytics.deleteTracks` | mutation | admin | `{ deviceId: number; trackIds: string[] }` | `{ deleted: number; failed: string[]; sparedMediaIds?: number[] }` | | setTrackFlags | `pipelineAnalytics.setTrackFlags` | mutation | protected | `{ deviceId: number; trackId: string; flags: TrackFlagsPatchSchema }` | `TrackFlagsSchema` | | listArchivedDebugNotes | `pipelineAnalytics.listArchivedDebugNotes` | query | protected | `{ deviceId?: number; limit?: number }` | `({ id: string; note: string; deviceId: number; sourceTrackId: string; archivedAt: number; trackStartedAt: number \| null; trackClass: string \| null; trackLabel: string \| null })[]` | | setTrackRelation | `pipelineAnalytics.setTrackRelation` | mutation | protected | `{ deviceId: number; trackId: string; otherTrackId: string; relation: "same-subject" \| "different-subjects"; presence?: "continuous"; trackSide?: "before" \| "after"; otherSide?: "before" \| "after" }` | `{ id: string; deviceId: number; leftTrackId: string; rightTrackId: string; leftSide: "before" \| "after" \| null; rightSide: "before" \| "after" \| null; relation: "same-subject" \| "different-subjects"; presence: "continuous" \| null; leftStartedAt: number \| null; rightStartedAt: number \| null; createdAt: number; updatedAt: number; author: string \| null }` | | clearTrackRelation | `pipelineAnalytics.clearTrackRelation` | mutation | protected | `{ deviceId: number; trackId: string; otherTrackId: string }` | `{ cleared: boolean }` | | setTrackPurity | `pipelineAnalytics.setTrackPurity` | mutation | protected | `{ deviceId: number; trackId: string; purity: "pure" \| "mixed" \| "not-a-subject"; switchAtMs?: number }` | `{ purity: { id: string; deviceId: number; sourceTrackId: string; purity: "mixed" \| "not-a-subject"; switchAtMs: number \| null; startedAt: number \| null; createdAt: number; updatedAt: number; author: string \| null } \| null }` | | listTrackRelations | `pipelineAnalytics.listTrackRelations` | query | protected | `{ deviceId: number; trackId?: string; since?: number; until?: number; limit?: number }` | `{ relations: ({ id: string; deviceId: number; leftTrackId: string; rightTrackId: string; leftSide: "before" \| "after" \| null; rightSide: "before" \| "after" \| null; relation: "same-subject" \| "different-subjects"; presence: "continuous" \| null; leftStartedAt: number \| null; rightStartedAt: number \| null; createdAt: number; updatedAt: number; author: string \| null })[]; purities: ({ id: string; deviceId: number; sourceTrackId: string; purity: "mixed" \| "not-a-subject"; switchAtMs: number \| null; startedAt: number \| null; createdAt: number; updatedAt: number; author: string \| null })[]; truncated: boolean }` | | listBirthDecisions | `pipelineAnalytics.listBirthDecisions` | query | protected | `{ deviceId?: number; since?: number; verdict?: "confirmed" \| "suppressed" \| "exhausted-fallback"; limit?: number }` | `({ id: string; at: number; deviceId: number; sourceTrackId: string; className: string; verdict: "confirmed" \| "suppressed" \| "exhausted-fallback"; reason: string \| null; cropSource?: "carried" \| "native" \| "fallback" \| null = null; attempts: number; deferredForMs: number; decidedOnCoastedFrame: boolean; birthEvidenceAvailable: boolean; decidedByBirthEvidence: boolean; bestScore: number \| null; appliedMinConfidence: number \| null; detectorModelId?: string \| null = null; detectorDeviceKey?: string \| null = null; detectorNodeId?: string \| null = null; firstSeen: number \| null; motionOnsetAt: number \| null; birthLatencyMs: number \| null; birthIndexInBurst: number \| null })[]` | | getEventStoreFootprint | `pipelineAnalytics.getEventStoreFootprint` | query | admin | `{}` | `{ totalRows: number; totalBytes: number; devices: ({ deviceId: number; rows: number; bytes: number })[] }` | | getEventMediaFootprintByKind | `pipelineAnalytics.getEventMediaFootprintByKind` | query | admin | `{ deviceId?: number }` | `{ totalRows: number; totalBytes: number; kinds: ({ kind: MediaFileKindEnum; rows: number; bytes: number })[]; unaccountedRows: number; unaccountedBytes: number }` | | pruneEvents | `pipelineAnalytics.pruneEvents` | mutation | admin | `{ olderThanMs: number; reason?: "retention" \| "quota" \| "manual" \| "operator" \| "maintenance" \| "orphaned-device" }` | `{ motion: number; object: number; audio: number }` | | deleteDeviceEvents | `pipelineAnalytics.deleteDeviceEvents` | mutation | admin | `{ deviceId: number }` | `{ motion: number; object: number; audio: number }` | | pauseForStorageMigration | `pipelineAnalytics.pauseForStorageMigration` | mutation | admin | `{ leaseId: string }` | `{ paused: true }` | | resumeForStorageMigration | `pipelineAnalytics.resumeForStorageMigration` | mutation | admin | `{ leaseId: string }` | `{ resumed: true }` | | refreshStorageLocationsForMigration | `pipelineAnalytics.refreshStorageLocationsForMigration` | mutation | admin | `{ leaseId: string }` | `{ refreshed: true }` | | startStorageMigrationMove | `pipelineAnalytics.startStorageMigrationMove` | mutation | admin | `{ toLocationId: string; fromLocationId?: string; throttleMbps?: number; mode?: "move" \| "seal" \| "gallery"; leaseId: string }` | `{ jobId: string }` | | getStorageMigrationMoveStatus | `pipelineAnalytics.getStorageMigrationMoveStatus` | query | admin | `{ jobId: string }` | `{ jobId: string; state: "queued" \| "running" \| "done" \| "failed" \| "cancelled"; fromLocationId: string; toLocationId: string; deviceId: number \| null; entities: string[]; filesMoved: number; bytesMoved: number; filesTotal: number \| null; rowsReconciled?: number; rowsForgotten?: number; startedAt: number; finishedAt: number \| null; error: string \| null } \| null` | | cancelStorageMigrationMove | `pipelineAnalytics.cancelStorageMigrationMove` | mutation | admin | `{ jobId: string }` | `{ cancelled: boolean }` | | relocateMedia | `pipelineAnalytics.relocateMedia` | mutation | admin | `{ toLocationId: string; fromLocationId?: string; throttleMbps?: number; mode?: "move" \| "seal" \| "gallery" }` | `{ jobId: string }` | | countUnstampedEventMedia | `pipelineAnalytics.countUnstampedEventMedia` | query | admin | `{}` | `{ media: { present: boolean; rows: number \| null }; retrainFrames: { present: boolean; rows: number \| null }; anyPresent: boolean; total: number \| null } \| null` | | getMediaLocationCensus | `pipelineAnalytics.getMediaLocationCensus` | query | admin | `{ locationIds: string[] }` | `{ locations: ({ locationId: string; rows: number; bytes: number })[]; unstamped: { rows: number; bytes: number }; unlisted: { rows: number; bytes: number }; total: { rows: number; bytes: number } }` | | countRelocatableMedia | `pipelineAnalytics.countRelocatableMedia` | query | admin | `{ toLocationId: string; fromLocationId?: string; mode?: "move" \| "seal" \| "gallery" }` | `{ rows: number } \| null` | | listRelocateMediaJobs | `pipelineAnalytics.listRelocateMediaJobs` | query | admin | `{}` | `({ jobId: string; state: "queued" \| "running" \| "done" \| "failed" \| "cancelled"; fromLocationId: string; toLocationId: string; deviceId: number \| null; entities: string[]; filesMoved: number; bytesMoved: number; filesTotal: number \| null; rowsReconciled?: number; rowsForgotten?: number; startedAt: number; finishedAt: number \| null; error: string \| null })[]` | | cancelRelocateMedia | `pipelineAnalytics.cancelRelocateMedia` | mutation | admin | `{ jobId: string }` | `{ cancelled: boolean }` | | listOpsLog | `pipelineAnalytics.listOpsLog` | query | admin | `{ deviceId?: number; limit?: number }` | `({ id: string; at: number; domain: "recording" \| "events"; op: "prune" \| "manual-delete" \| "rescan" \| "retention-run" \| "relocate" \| "orphan-audit"; reason: "retention" \| "quota" \| "manual" \| "operator" \| "maintenance" \| "orphaned-device"; deviceId: number \| null; nodeId: string; itemsAffected: number; bytesReclaimed: number; detail: string \| null; actor: string })[]` | | reclaimDebugMedia | `pipelineAnalytics.reclaimDebugMedia` | mutation | admin | `{ mode?: "report" \| "reclaim" = "report"; scopes?: ("motion-still" \| "track-filmstrip")[]; deviceIds?: number[]; restart?: boolean; pageSize?: number; maxRowsPerDevice?: number; maxReclaimPerDevice?: number; maxBytesPerRun?: number; budgetMinutes?: number; throttleBytesPerSec?: number; graceMinutes?: number }` | `{ started: boolean; alreadyRunning: boolean }` | | getMediaReclaimStatus | `pipelineAnalytics.getMediaReclaimStatus` | query | admin | `{}` | `{ running: boolean; mode: "report" \| "reclaim" \| null; totalExamined: number; totalEligible: number; totalReclaimed: number; totalBytesReclaimed: number; totalRefused: number; devicesDone: number; complete: boolean \| null; startedAtMs: number \| null; finishedAtMs: number \| null; error: string \| null }` | | getTrainingExportSummary | `pipelineAnalytics.getTrainingExportSummary` | query | admin | `{ deviceIds?: number[] }` | `TrainingExportSummarySchema` | | getTrainingExportUrl | `pipelineAnalytics.getTrainingExportUrl` | query | admin | `{ deviceIds?: number[] }` | `{ url: string }` | | listRetrainStaging | `pipelineAnalytics.listRetrainStaging` | query | admin | `{ deviceIds?: number[]; limit?: number }` | `RetrainTrackSchema[]` | | listRetrainCorpusPage | `pipelineAnalytics.listRetrainCorpusPage` | query | admin | `RetrainCorpusFilterSchema` | `RetrainCorpusPageSchema` | | getRetrainCorpusKpi | `pipelineAnalytics.getRetrainCorpusKpi` | query | admin | `{}` | `RetrainCorpusKpiSchema` | | listRetrainFrames | `pipelineAnalytics.listRetrainFrames` | query | admin | `{ trackId: string }` | `RetrainFrameListSchema` | | selectRetrainFrames | `pipelineAnalytics.selectRetrainFrames` | mutation | admin | `{ deviceId: number; trackId: string; mediaIds: number[] }` | `RetrainFrameSelectionSchema` | | deselectRetrainFrame | `pipelineAnalytics.deselectRetrainFrame` | mutation | admin | `{ deviceId: number; trackId?: string; frameId: string }` | `{ removed: boolean; removedAnnotations: number }` | | getRetrainFrameImage | `pipelineAnalytics.getRetrainFrameImage` | query | admin | `{ frameId: string }` | `{ base64: string; width: number; height: number }` | | proposeRetrainAnnotations | `pipelineAnalytics.proposeRetrainAnnotations` | mutation | admin | `{ deviceId: number; trackId?: string; frameId: string; subject: RetrainAssistSubjectSchema; nodeId?: string }` | `RetrainAssistResultSchema` | | listRetrainAnnotations | `pipelineAnalytics.listRetrainAnnotations` | query | admin | `{ trackId?: string; frameIds?: string[] }` | `RetrainAnnotationSchema[]` | | saveRetrainAnnotations | `pipelineAnalytics.saveRetrainAnnotations` | mutation | admin | `{ deviceId: number; trackId?: string; frameId: string; annotations: RetrainAnnotationDraftSchema[]; expectedRevision?: number; dismissed?: RetrainDismissedSchema[] }` | `RetrainAnnotationSchema[]` | | backfillRetrainOrigins | `pipelineAnalytics.backfillRetrainOrigins` | mutation | admin | `{ deviceId: number; trackId?: string; frameId: string; expectedRevision?: number; origins: ({ annotationId: string; origin: RetrainOriginSchema })[] }` | `{ updated: number; skipped: number; revision: number }` | | completeRetrainTrack | `pipelineAnalytics.completeRetrainTrack` | mutation | admin | `{ deviceId: number; trackId: string }` | `RetrainTransitionResultSchema` | | restageRetrainTrack | `pipelineAnalytics.restageRetrainTrack` | mutation | admin | `{ deviceId: number; trackId: string }` | `RetrainTransitionResultSchema` | | getRetrainExportUrl | `pipelineAnalytics.getRetrainExportUrl` | query | admin | `{ deviceIds?: number[]; frameIds?: string[]; collectionIds?: string[]; collectionId?: string; batchId?: string; completeOnly?: boolean; workState?: RetrainFrameWorkStateSchema; classes?: RetrainMacroClassSchema[]; layout?: RetrainExportLayoutSchema }` | `{ url: string }` | | setRetrainFrameComplete | `pipelineAnalytics.setRetrainFrameComplete` | mutation | admin | `{ deviceId: number; trackId?: string; frameId: string; complete: boolean }` | `RetrainFrameSchema` | | writeRetrainArchive | `pipelineAnalytics.writeRetrainArchive` | mutation | admin | `{ filter: RetrainExportFilterSchema; layout: RetrainExportLayoutSchema; target: RetrainArchiveTargetSchema }` | `RetrainArchiveResultSchema` | | offerRetrainArchive | `pipelineAnalytics.offerRetrainArchive` | mutation | admin | `{ filter: RetrainExportFilterSchema; layout: RetrainExportLayoutSchema }` | `{ ticket: { url: string; hostNodeId: string; expiresAtMs: number; declaredBytes: number \| null }; frames: number; annotations: number }` | | listRetrainAssistProfiles | `pipelineAnalytics.listRetrainAssistProfiles` | query | admin | `{}` | `RetrainAssistProfileSchema[]` | | proposeRetrainAnnotationsWithLlm | `pipelineAnalytics.proposeRetrainAnnotationsWithLlm` | mutation | admin | `{ deviceId: number; trackId?: string; frameId: string; profileId: string; classes: RetrainMacroClassSchema[]; boxes: ({ ref: string; bbox: { x: number; y: number; w: number; h: number }; macroClass: RetrainMacroClassSchema; label?: string })[]; allowCloud: boolean }` | `RetrainLlmAssistResultSchema` | | createRetrainCollection | `pipelineAnalytics.createRetrainCollection` | mutation | admin | `{ name: string }` | `RetrainCollectionCreateResultSchema` | | listRetrainCollections | `pipelineAnalytics.listRetrainCollections` | query | admin | `{}` | `RetrainCollectionSchema[]` | | resolveRetrainTrainingCorpus | `pipelineAnalytics.resolveRetrainTrainingCorpus` | query | admin | `RetrainTrainingCorpusSelectionSchema` | `RetrainTrainingCorpusResolveResultSchema` | | renameRetrainCollection | `pipelineAnalytics.renameRetrainCollection` | mutation | admin | `{ id: string; name: string }` | `RetrainCollectionRenameResultSchema` | | deleteRetrainCollection | `pipelineAnalytics.deleteRetrainCollection` | mutation | admin | `{ id: string }` | `{ deleted: boolean; removedFrames: number }` | | addRetrainFrameFromRecording | `pipelineAnalytics.addRetrainFrameFromRecording` | mutation | admin | `{ collectionId: string; deviceId: number; epochMs: number; verdictSubject?: RetrainVerdictSubjectSchema }` | `AddRetrainFrameFromRecordingResultSchema` | | addRetrainFramesToCollection | `pipelineAnalytics.addRetrainFramesToCollection` | mutation | admin | `{ collectionId: string; frameIds: string[] }` | `{ added: number; alreadyMember: number; unknownFrameIds: string[] }` | | removeRetrainFrameFromCollection | `pipelineAnalytics.removeRetrainFrameFromCollection` | mutation | admin | `{ collectionId: string; frameId: string }` | `{ removed: boolean; deletedFrame: boolean }` | | listRetrainCollectionFrames | `pipelineAnalytics.listRetrainCollectionFrames` | query | admin | `{ collectionId: string }` | `RetrainFrameSchema[]` | | getEventMedia | `pipelineAnalytics.getEventMedia` | query | protected | `{ ownerType: "motion" \| "object" \| "audio"; eventId: number; kind?: MediaFileKindEnum; deviceId: number }` | `MediaFileSchema[]` | | getTrackMedia | `pipelineAnalytics.getTrackMedia` | query | protected | `{ trackId: string; kinds?: MediaFileKindEnum[]; deviceId: number }` | `MediaFileSchema[]` | | listTrackMedia | `pipelineAnalytics.listTrackMedia` | query | protected | `{ trackId: string; deviceId: number }` | `MediaFileInfoSchema[]` | | listEventMedia | `pipelineAnalytics.listEventMedia` | query | protected | `{ ownerType: "motion" \| "object" \| "audio"; eventId: number; deviceId: number }` | `MediaFileInfoSchema[]` | | ownersWithMedia | `pipelineAnalytics.ownersWithMedia` | query | protected | `{ deviceId: number; ownerKind: "motion" \| "object" \| "audio" \| "track"; ownerIds: string[] }` | `string[]` | | searchObjectEvents | `pipelineAnalytics.searchObjectEvents` | query | protected | `{ text: string; deviceId?: number; since?: number; until?: number; classFilter?: string; limit?: number = 50; minScore?: number; strictness?: "loose" \| "balanced" \| "strict"; modelId?: string }` | `ScoredObjectEventSchema[]` | | wipeObjectEmbeddings | `pipelineAnalytics.wipeObjectEmbeddings` | mutation | admin | `{}` | `{ deleted: number; failedIndexes?: string[] }` | | rebuildObjectEmbeddings | `pipelineAnalytics.rebuildObjectEmbeddings` | mutation | admin | `{ deviceId?: number; since?: number; until?: number; maxTracks?: number; executeOnNodeId?: string; pacingMs?: number; force?: boolean }` | `{ started: boolean; alreadyRunning: boolean; refusal?: RebuildObjectEmbeddingsRefusalSchema; modelId?: string; index?: string }` | | getObjectEmbeddingRebuildStatus | `pipelineAnalytics.getObjectEmbeddingRebuildStatus` | query | protected | `{}` | `{ running: boolean; scanned: number; rebuilt: number; missingKeyFrame: number; missingEvent: number; missingBbox: number; boxSource: { subjectBox: number; positions: number; event: number; refused: number }; alreadyInSpace: number; force: boolean \| null; forcedInSpace: number; notRunnable: number; noCapableNode: number; failed: number; complete: boolean \| null; startedAtMs: number \| null; finishedAtMs: number \| null; error: string \| null; modelId: string \| null; index: string \| null }` | ### `pipeline-executor` → `pipelineExecutor.*` - **Source:** `packages/types/src/capabilities/pipeline-executor.cap.ts:433` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `IPipelineExecutorProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getAvailableEngines | `pipelineExecutor.getAvailableEngines` | query | protected | `void` | `PipelineEngineChoiceSchema[]` | | getSelectedEngine | `pipelineExecutor.getSelectedEngine` | query | protected | `void` | `PipelineEngineChoiceSchema` | | getEngineProvisioning | `pipelineExecutor.getEngineProvisioning` | query | protected | `{ nodeId: string }` | `{ runtimeId: "onnx" \| "openvino" \| "coreml" \| "edgetpu" \| null; device: string \| null; state: "idle" \| "installing" \| "verifying" \| "ready" \| "failed"; progress?: number; error?: string; nextRetryAt?: number; configIssues?: string[] }` | | getVideoPipelineSteps | `pipelineExecutor.getVideoPipelineSteps` | query | protected | `void` | `Record }>` | | setVideoPipelineSteps | `pipelineExecutor.setVideoPipelineSteps` | mutation | admin | `{ steps: Record }> }` | `{ success: true }` | | getInferenceDeviceHealth | `pipelineExecutor.getInferenceDeviceHealth` | query | protected | `{ nodeId: string }` | `{ unhealthy: ({ deviceKey: string; state: "failed" \| "backoff"; since: number; deaths: number; lastError: string })[] }` | | rearmInferenceDevice | `pipelineExecutor.rearmInferenceDevice` | mutation | admin | `{ nodeId: string; deviceKey: string }` | `{ rearmed: boolean }` | | getSchema | `pipelineExecutor.getSchema` | query | protected | `void` | `{ availableEngines: ({ engine: PipelineEngineChoiceSchema; devices: ({ id: string; label: string; description?: string })[]; defaultDevice: string })[]; selectedEngine: PipelineEngineChoiceSchema; slots: ({ id: "detector" \| "cropper" \| "classifier" \| "refiner" \| "audio-classifier"; label: string; priority: number; parentSlot: "detector" \| "cropper" \| "classifier" \| "refiner" \| "audio-classifier" \| null; addons: ({ id: string; name: string; slot: "detector" \| "cropper" \| "classifier" \| "refiner" \| "audio-classifier"; inputClasses: string[]; outputClasses: string[]; childSlots: ("detector" \| "cropper" \| "classifier" \| "refiner" \| "audio-classifier")[]; models: ({ id: string; name: string; formats: Record; group?: {…}; legacy?: boolean; provider?: "camstack" \| "frigate" \| "scrypted" \| "custom"; defaultConfidence?: number; suppliesSteps?: ({…} \| {…} \| {…})[] })[]; defaultModelId: string; defaultModelIdByFormat?: Record; enabledByDefault?: boolean; defaultConfidence: number; group?: string; configSchema?: [] })[] })[] }` | | getOrchestratorConfigSchema | `pipelineExecutor.getOrchestratorConfigSchema` | query | protected | `void` | `` | | validatePipeline | `pipelineExecutor.validatePipeline` | query | protected | `{ steps: ({ addonId: string; modelId?: string; enabled?: boolean = true; children?: self[]; settings?: Record; jumpDeviceKey?: string })[]; deviceKey?: string }` | `PipelineValidationResultSchema` | | getCapabilities | `pipelineExecutor.getCapabilities` | query | protected | `void` | `` | | getAddonModels | `pipelineExecutor.getAddonModels` | query | protected | `{ addonId: string }` | `` | | downloadModel | `pipelineExecutor.downloadModel` | mutation | protected | `{ addonId: string; modelId: string; format: "onnx" \| "coreml" \| "openvino" \| "tflite" \| "pt" \| "gguf" }` | `{ filePath: string; sizeMB: number; durationMs: number }` | | deleteModel | `pipelineExecutor.deleteModel` | mutation | protected | `{ addonId: string; modelId: string; format: "onnx" \| "coreml" \| "openvino" \| "tflite" \| "pt" \| "gguf" }` | `{ success: true }` | | runPipeline | `pipelineExecutor.runPipeline` | mutation | protected | `{ steps: ({ addonId: string; modelId?: string; enabled?: boolean = true; children?: self[]; settings?: Record; jumpDeviceKey?: string })[]; frame?: FrameInputSchema; frameRef?: { registryId: string; id: string; width: number; height: number; format: "rgb" \| "gray"; timestamp: number; capturedAt?: number }; frameHandle?: FrameHandleSchema; imageBase64?: string; image?: ; referenceImage?: string; deviceId?: number; sessionId?: string; plane?: "full" \| "frame"; deviceKey?: string; nativeCropRef?: NativeCropRefSchema; replay?: true; suppliedRoot?: SuppliedRootOutputSchema }` | `` | | runPipelineBatch | `pipelineExecutor.runPipelineBatch` | mutation | protected | `{ steps: ({ addonId: string; modelId?: string; enabled?: boolean = true; children?: self[]; settings?: Record; jumpDeviceKey?: string })[]; frames: FrameInputSchema[]; deviceId?: number; sessionId?: string; frameId?: number; deviceKey?: string }` | `{ results: [] }` | | cacheFrameInPool | `pipelineExecutor.cacheFrameInPool` | mutation | protected | `{ data: ; width: number; height: number; format: "rgb" \| "bgr" \| "gray" }` | `{ frameId: number; width: number; height: number }` | | inferCached | `pipelineExecutor.inferCached` | mutation | protected | `{ stepId: string; frameId: number; modelId: string }` | `Record` | | uncacheFrame | `pipelineExecutor.uncacheFrame` | mutation | protected | `{ frameId: number }` | `void` | | getEffectiveTuning | `pipelineExecutor.getEffectiveTuning` | query | protected | `{ deviceKey?: string }` | `EffectiveTuningSchema` | | listLoadedEngines | `pipelineExecutor.listLoadedEngines` | query | protected | `void` | `({ engineKey: string; engine: PipelineEngineChoiceSchema; modelsLoaded: string[]; inUseByCameras: number[]; kind: "runtime" \| "device-pool"; poolPid: number \| null; idleMs: number \| null; idleTtlMs: number \| null })[]` | | spinEngine | `pipelineExecutor.spinEngine` | mutation | admin | `{ engine: PipelineEngineChoiceSchema }` | `{ success: true }` | | killEngine | `pipelineExecutor.killEngine` | mutation | admin | `{ engine: PipelineEngineChoiceSchema; force?: boolean }` | `{ success: boolean; reason?: string }` | | listReferenceImages | `pipelineExecutor.listReferenceImages` | query | protected | `void` | `({ filename: string; stepIds?: string[] })[]` | | getReferenceImage | `pipelineExecutor.getReferenceImage` | query | protected | `{ filename: string }` | `{ base64: string; filename: string } \| null` | | getReferenceAudioFiles | `pipelineExecutor.getReferenceAudioFiles` | query | protected | `void` | `({ filename: string; sizeKb: number })[]` | | getReferenceAudio | `pipelineExecutor.getReferenceAudio` | query | protected | `{ filename: string }` | `{ base64: string } \| null` | | getAudioCapabilities | `pipelineExecutor.getAudioCapabilities` | query | protected | `void` | `{ activeBackend: string; availableBackends: ({ id: string; name: string; description: string; available: boolean; rawLabels?: string[] })[]; sampleRate: number; chunkDurationMs: number }` | | runAudioTest | `pipelineExecutor.runAudioTest` | mutation | protected | `{ addonId: string; modelId: string; filename?: string; settings?: Record }` | `{ success: boolean; error?: string; frame?: }` | | getDetectionConfigSchema | `pipelineExecutor.getDetectionConfigSchema` | query | protected | `void` | `` | ### `pipeline-orchestrator` → `pipelineOrchestrator.*` - **Source:** `packages/types/src/capabilities/pipeline-orchestrator.cap.ts:726` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` · nodeIdMode: `data` - **Archetypes:** exposesDeviceSettings - **Provider interface:** `IPipelineOrchestratorProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getDeviceSettingsContribution _(auto)_ | `pipelineOrchestrator.getDeviceSettingsContribution` | query | protected | `{ deviceId: number }` | `{ tabs?: ({ id: string; label: string; icon: string; order?: number })[]; sections: ({ id: string; title: string; description?: string; style?: "card" \| "accordion"; defaultCollapsed?: boolean; columns?: 1 \| 2 \| 3 \| 4; tab?: string; location?: "settings" \| "top-tab" \| "hero"; order?: number; fields: any[] })[] } \| null` | | getDeviceLiveContribution _(auto)_ | `pipelineOrchestrator.getDeviceLiveContribution` | query | protected | `{ deviceId: number }` | `{ tabs?: ({ id: string; label: string; icon: string; order?: number })[]; sections: ({ id: string; title: string; description?: string; style?: "card" \| "accordion"; defaultCollapsed?: boolean; columns?: 1 \| 2 \| 3 \| 4; tab?: string; location?: "settings" \| "top-tab" \| "hero"; order?: number; fields: any[] })[] } \| null` | | applyDeviceSettingsPatch _(auto)_ | `pipelineOrchestrator.applyDeviceSettingsPatch` | mutation | admin | `{ deviceId: number; patch: Record }` | `{ success: true }` | | requestOccupancyLook | `pipelineOrchestrator.requestOccupancyLook` | mutation | admin | `OccupancyLookRequestSchema` | `OccupancyLookAnswerSchema` | | pauseForStorageMigration | `pipelineOrchestrator.pauseForStorageMigration` | mutation | admin | `{ leaseId: string }` | `{ paused: true }` | | resumeForStorageMigration | `pipelineOrchestrator.resumeForStorageMigration` | mutation | admin | `{ leaseId: string }` | `{ resumed: true }` | | assignPipeline | `pipelineOrchestrator.assignPipeline` | mutation | admin | `{ deviceId: number; agentNodeId: string }` | `{ success: true }` | | unassignPipeline | `pipelineOrchestrator.unassignPipeline` | mutation | admin | `{ deviceId: number }` | `{ success: true }` | | setPipelineDevicePin | `pipelineOrchestrator.setPipelineDevicePin` | mutation | admin | `{ deviceId: number; deviceKey: string }` | `{ success: true }` | | getPipelineDevicePin | `pipelineOrchestrator.getPipelineDevicePin` | query | protected | `{ deviceId: number }` | `{ deviceKey: string \| null }` | | rebalance | `pipelineOrchestrator.rebalance` | mutation | admin | `void` | `{ migrated: number; skipped?: ({ deviceId: number; targetNodeId: string; reason: string })[] = [] }` | | getPipelineAssignments | `pipelineOrchestrator.getPipelineAssignments` | query | protected | `void` | `PipelineAssignmentSchema[]` | | getPipelineAssignment | `pipelineOrchestrator.getPipelineAssignment` | query | protected | `{ deviceId: number }` | `PipelineAssignmentSchema \| null` | | getAgentLoad | `pipelineOrchestrator.getAgentLoad` | query | protected | `void` | `AgentLoadSummarySchema[]` | | getClusterModelChoice | `pipelineOrchestrator.getClusterModelChoice` | query | protected | `{ stepId: string }` | `ClusterModelChoiceSchema` | | getGlobalMetrics | `pipelineOrchestrator.getGlobalMetrics` | query | protected | `void` | `GlobalMetricsSchema` | | getCameraMetrics | `pipelineOrchestrator.getCameraMetrics` | query | protected | `{ deviceId: number }` | `CameraMetricsSchema \| null` | | getCapabilityBindings | `pipelineOrchestrator.getCapabilityBindings` | query | protected | `{ nodeId: string }` | `CapabilityBindingsSchema` | | setCapabilityBinding | `pipelineOrchestrator.setCapabilityBinding` | mutation | admin | `{ nodeId: string; capName: string; addonId: string }` | `{ success: true }` | | getIngestOwner | `pipelineOrchestrator.getIngestOwner` | query | protected | `void` | `IngestOwnerSchema` | | assignAudio | `pipelineOrchestrator.assignAudio` | mutation | admin | `{ deviceId: number; nodeId: string }` | `{ success: true }` | | unassignAudio | `pipelineOrchestrator.unassignAudio` | mutation | admin | `{ deviceId: number }` | `{ success: true }` | | getAudioAssignment | `pipelineOrchestrator.getAudioAssignment` | query | protected | `{ deviceId: number }` | `{ nodeId: string; pinned: boolean; assignedAt: number } \| null` | | getAudioNodeLoad | `pipelineOrchestrator.getAudioNodeLoad` | query | protected | `void` | `({ nodeId: string; deviceCount: number })[]` | | getAudioAssignments | `pipelineOrchestrator.getAudioAssignments` | query | protected | `void` | `({ deviceId: number; nodeId: string; pinned: boolean; assignedAt: number })[]` | | getAgentSettings | `pipelineOrchestrator.getAgentSettings` | query | protected | `{ agentNodeId: string }` | `{ maxCameras?: number \| null = null; detectWeight?: number; detect?: boolean; decode?: boolean; audio?: boolean; ingest?: boolean; decodeBudgetMb?: number; maxLiveDecodeWorkers?: number; reachableHost?: string; color?: "node-a" \| "node-b" \| "node-c" \| "node-d" \| "node-e" \| "node-f" \| "node-g" \| "node-h"; stepSettings?: Record>; inferenceDevices?: Record; jumpDeviceKey?: string }> }> } \| null` | | listAgentSettings | `pipelineOrchestrator.listAgentSettings` | query | protected | `void` | `({ nodeId: string; settings: { maxCameras?: number \| null = null; detectWeight?: number; detect?: boolean; decode?: boolean; audio?: boolean; ingest?: boolean; decodeBudgetMb?: number; maxLiveDecodeWorkers?: number; reachableHost?: string; color?: "node-a" \| "node-b" \| "node-c" \| "node-d" \| "node-e" \| "node-f" \| "node-g" \| "node-h"; stepSettings?: Record>; inferenceDevices?: Record; jumpDeviceKey?: string }> }> } })[]` | | removeAgentSettings | `pipelineOrchestrator.removeAgentSettings` | mutation | admin | `{ agentNodeId: string }` | `{ success: boolean; removed: boolean }` | | setAgentMaxCameras | `pipelineOrchestrator.setAgentMaxCameras` | mutation | admin | `{ agentNodeId: string; maxCameras: number \| null }` | `{ success: true }` | | setAgentCapabilities | `pipelineOrchestrator.setAgentCapabilities` | mutation | admin | `{ agentNodeId: string; detect?: boolean \| null; audio?: boolean \| null; ingest?: boolean \| null }` | `{ success: true }` | | setAgentDecodeLimits | `pipelineOrchestrator.setAgentDecodeLimits` | mutation | admin | `{ agentNodeId: string; decodeBudgetMb?: number \| null; maxLiveDecodeWorkers?: number \| null }` | `{ success: true }` | | setAgentReachableHost | `pipelineOrchestrator.setAgentReachableHost` | mutation | admin | `{ agentNodeId: string; reachableHost?: string \| null; color?: "node-a" \| "node-b" \| "node-c" \| "node-d" \| "node-e" \| "node-f" \| "node-g" \| "node-h" \| null }` | `{ success: true }` | | setAgentInferenceDevices | `pipelineOrchestrator.setAgentInferenceDevices` | mutation | admin | `{ agentNodeId: string; inferenceDevices: Record; jumpDeviceKey?: string }> }> }` | `{ success: true }` | | setNodeStepSettings | `pipelineOrchestrator.setNodeStepSettings` | mutation | admin | `{ agentNodeId: string; addonId: string; settings: Record \| null }` | `{ success: true }` | | getNodeInferenceDevices | `pipelineOrchestrator.getNodeInferenceDevices` | query | protected | `{ nodeId: string }` | `{ nodeId: string; reachable: boolean; devices: ({ key: string; backend: string; device: string; format: "onnx" \| "coreml" \| "openvino" \| "tflite" \| "pt" \| "gguf"; available: boolean; presence?: "present" \| "absent" \| "unknown"; enabled: boolean; weight: number; maxSessions: number \| null; defaultModelId: string; steps?: Record; jumpDeviceKey?: string }>; exclusion: InferenceDeviceExclusionReasonSchema \| null })[] }` | | forgetInferenceDevice | `pipelineOrchestrator.forgetInferenceDevice` | mutation | admin | `{ agentNodeId: string; deviceKey: string }` | `{ success: true }` | | resetNodePipelineDefaults | `pipelineOrchestrator.resetNodePipelineDefaults` | mutation | admin | `{ agentNodeId: string }` | `{ success: true; effectiveModelId: string \| null }` | | planAutoTune | `pipelineOrchestrator.planAutoTune` | query | admin | `{ headroom?: number = 0.4; minSessionsPerDevice?: number = 2 }` | `{ planHash: string; family: "yolov9"; headroom: number; minSessionsPerDevice: number; cameraFps: number; generatedAt: number; nodes: ({ nodeId: string; reachable: boolean; hardwareClass: "intel-core-ultra" \| "intel-n-series" \| "apple-m-base" \| "apple-m-pro" \| "amd-phoenix" \| "unknown" \| null; cpuModel: string \| null; skipped: boolean; acceleratorModelId: string \| null; devices: ({ deviceKey: string; accelerator: "intel-npu" \| "intel-igpu" \| "amd-igpu" \| "amd-npu" \| "x86-cpu" \| "arm-cpu" \| "apple-ane" \| "coral" \| null; enabled: boolean; available: boolean; chosen: { modelId: string; p50Ms: number; fps: number; measured: boolean; source?: {…} \| {…} \| {…}; estimatedFrom?: "intel-core-ultra" \| "intel-n-series" \| "apple-m-base" \| "apple-m-pro" \| "amd-phoenix" \| "unknown"; capacitySessions: number; personRecall: number } \| null; kept?: "custom-pin"; reasons: ({ kind: "capacity"; sessions: number; minSessions: number } \| { kind: "tie-faster"; over: string; recallDelta: number } \| { kind: "stepped-down"; from: string; to: string; limitedBy: string } \| { kind: "no-fit-lightest"; sessions: number; minSessions: number } \| { kind: "derived-latency"; modelId: string } \| { kind: "cpu-device" } \| { kind: "device-disabled" } \| { kind: "device-unavailable" } \| { kind: "node-offline" } \| { kind: "no-hardware-facts" } \| { kind: "no-measured-data"; hardwareClass: "intel-core-ultra" \| "intel-n-series" \| "apple-m-base" \| "apple-m-pro" \| "amd-phoenix" \| "unknown" } \| { kind: "no-family-build"; format: "onnx" \| "coreml" \| "openvino" \| "tflite" \| "pt" \| "gguf" } \| { kind: "kept-custom-pin"; modelId: string; deviceKey: string })[] })[]; reasons: ({ kind: "capacity"; sessions: number; minSessions: number } \| { kind: "tie-faster"; over: string; recallDelta: number } \| { kind: "stepped-down"; from: string; to: string; limitedBy: string } \| { kind: "no-fit-lightest"; sessions: number; minSessions: number } \| { kind: "derived-latency"; modelId: string } \| { kind: "cpu-device" } \| { kind: "device-disabled" } \| { kind: "device-unavailable" } \| { kind: "node-offline" } \| { kind: "no-hardware-facts" } \| { kind: "no-measured-data"; hardwareClass: "intel-core-ultra" \| "intel-n-series" \| "apple-m-base" \| "apple-m-pro" \| "amd-phoenix" \| "unknown" } \| { kind: "no-family-build"; format: "onnx" \| "coreml" \| "openvino" \| "tflite" \| "pt" \| "gguf" } \| { kind: "kept-custom-pin"; modelId: string; deviceKey: string })[] })[]; nodeChanges: ({ nodeId: string; deviceKey: string; madeExplicit: boolean; modelPins: ({ stepId: string; before: string \| null; after: string \| null })[]; thresholds: ({ stepId: string; keys: string[] })[] })[]; warnings: ({ kind: "custom-pin-kept"; nodeId: string; deviceKey: string; modelId: string } \| { kind: "custom-registry-unreadable"; error: string })[] }` | | applyAutoTune | `pipelineOrchestrator.applyAutoTune` | mutation | admin | `{ planHash: string; headroom?: number = 0.4; minSessionsPerDevice?: number = 2 }` | `{ kind: "applied"; planHash: string; phases: ({ phase: "download" \| "node-models" \| "redispatch"; ok: boolean; detail: string })[] } \| { kind: "aborted"; phases: ({ phase: "download" \| "node-models" \| "redispatch"; ok: boolean; detail: string })[] } \| { kind: "stale"; plan: { planHash: string; family: "yolov9"; headroom: number; minSessionsPerDevice: number; cameraFps: number; generatedAt: number; nodes: ({ nodeId: string; reachable: boolean; hardwareClass: "intel-core-ultra" \| "intel-n-series" \| "apple-m-base" \| "apple-m-pro" \| "amd-phoenix" \| "unknown" \| null; cpuModel: string \| null; skipped: boolean; acceleratorModelId: string \| null; devices: ({ deviceKey: string; accelerator: "intel-npu" \| "intel-igpu" \| "amd-igpu" \| "amd-npu" \| "x86-cpu" \| "arm-cpu" \| "apple-ane" \| "coral" \| null; enabled: boolean; available: boolean; chosen: {…} \| null; kept?: "custom-pin"; reasons: ({…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…})[] })[]; reasons: ({ kind: "capacity"; sessions: number; minSessions: number } \| { kind: "tie-faster"; over: string; recallDelta: number } \| { kind: "stepped-down"; from: string; to: string; limitedBy: string } \| { kind: "no-fit-lightest"; sessions: number; minSessions: number } \| { kind: "derived-latency"; modelId: string } \| { kind: "cpu-device" } \| { kind: "device-disabled" } \| { kind: "device-unavailable" } \| { kind: "node-offline" } \| { kind: "no-hardware-facts" } \| { kind: "no-measured-data"; hardwareClass: "intel-core-ultra" \| "intel-n-series" \| "apple-m-base" \| "apple-m-pro" \| "amd-phoenix" \| "unknown" } \| { kind: "no-family-build"; format: "onnx" \| "coreml" \| "openvino" \| "tflite" \| "pt" \| "gguf" } \| { kind: "kept-custom-pin"; modelId: string; deviceKey: string })[] })[]; nodeChanges: ({ nodeId: string; deviceKey: string; madeExplicit: boolean; modelPins: ({ stepId: string; before: string \| null; after: string \| null })[]; thresholds: ({ stepId: string; keys: string[] })[] })[]; warnings: ({ kind: "custom-pin-kept"; nodeId: string; deviceKey: string; modelId: string } \| { kind: "custom-registry-unreadable"; error: string })[] } } \| { kind: "refused"; reason: "apply-in-progress" }` | | setLoadBalancingShares | `pipelineOrchestrator.setLoadBalancingShares` | mutation | admin | `{ nodes?: Record = {}; devices?: Record> = {} }` | `{ success: true }` | | getPlacementStats | `pipelineOrchestrator.getPlacementStats` | query | admin | `{ windowMs?: number = 3600000 }` | `{ policy: "least-loaded" \| "share"; windowMs: number; observedForMs: number; sessionsNow: number; clusterPeakSessions: number; nodes: ({ nodeId: string; sessionsNow: number; sessionsStarted: number; observedShare: number \| null; peakSessions: number; yieldsAway: number; devices: ({ deviceKey: string; sessionsNow: number; sessionsStarted: number; observedShare: number \| null })[] })[]; stalePins: ({ deviceId: number; deviceKey: string; reason: "disabled" \| "absent" })[] }` | | suggestShares | `pipelineOrchestrator.suggestShares` | query | admin | `{ headroom?: number = 0.4; source?: "hardware" \| "benchmark" = "hardware" }` | `{ headroom: number; source: "hardware" \| "benchmark"; cameraFps: number; minSessionsPerDevice: number; nodes: ({ nodeId: string; share: number \| null; capacitySessions: number; devices: ({ deviceKey: string; share: number; modelId: string \| null; fps: number \| null; measured: boolean; suggestedMaxSessions: number \| null })[]; skippedReason: string \| null; capacitySource: "hardware" \| "benchmark" \| null; capacityFallback: "no-benchmark-results" \| "partial-benchmark-results" \| null })[] }` | | getEffectiveShares | `pipelineOrchestrator.getEffectiveShares` | query | admin | `void` | `{ source: "hardware" \| "benchmark" \| "manual"; policy: "least-loaded" \| "share"; autoPending: boolean; computedAt: number \| null; trigger: string \| null; nodes: ({ nodeId: string; eligible: boolean; configuredPct: number; effectivePct: number; capacitySource: "hardware" \| "benchmark" \| null; capacityFallback: "no-benchmark-results" \| "partial-benchmark-results" \| null; devices: ({ deviceKey: string; eligible: boolean; configuredPct: number; effectivePct: number })[] })[]; nodeWeights: Record; deviceWeights: Record> }` | | setShareSource | `pipelineOrchestrator.setShareSource` | mutation | admin | `{ source: "hardware" \| "benchmark" \| "manual" }` | `{ success: true }` | | getNodeBenchmarkPreflight | `pipelineOrchestrator.getNodeBenchmarkPreflight` | query | admin | `{ nodeId: string; devices: ({ deviceKey: string; modelIds: string[] })[]; phases?: ("device" \| "pipeline")[] = ["device","pipeline"]; steps?: string[] = []; fpsPerStream?: number = 10; budgetMinutes?: number = 45; keepDownloadedModels?: boolean = false; acceptInsufficientHeadroom?: boolean = false }` | `{ nodeId: string; online: boolean; moving: ({ deviceId: number; placedOnNode: boolean; pinnedToNode: boolean })[]; staying: ({ deviceId: number; reason: "only-frame-source" })[]; estimatedDurationMs: number; budgetMs: number; phases: ("device" \| "pipeline")[]; steps: string[]; devices: ({ deviceKey: string; modelIds: string[] })[]; headroom: { sessionsNow: number; otherNodesCapacitySessions: number \| null }; refusals: ({ kind: "benchmark-active" \| "node-offline" \| "unknown-device" \| "no-phase" \| "insufficient-headroom"; detail: string; overridable: boolean })[]; canStart: boolean }` | | startNodeBenchmark | `pipelineOrchestrator.startNodeBenchmark` | mutation | admin | `{ nodeId: string; devices: ({ deviceKey: string; modelIds: string[] })[]; phases?: ("device" \| "pipeline")[] = ["device","pipeline"]; steps?: string[] = []; fpsPerStream?: number = 10; budgetMinutes?: number = 45; keepDownloadedModels?: boolean = false; acceptInsufficientHeadroom?: boolean = false }` | `{ kind: "started"; runId: string } \| { kind: "refused"; preflight: { nodeId: string; online: boolean; moving: ({ deviceId: number; placedOnNode: boolean; pinnedToNode: boolean })[]; staying: ({ deviceId: number; reason: "only-frame-source" })[]; estimatedDurationMs: number; budgetMs: number; phases: ("device" \| "pipeline")[]; steps: string[]; devices: ({ deviceKey: string; modelIds: string[] })[]; headroom: { sessionsNow: number; otherNodesCapacitySessions: number \| null }; refusals: ({ kind: "benchmark-active" \| "node-offline" \| "unknown-device" \| "no-phase" \| "insufficient-headroom"; detail: string; overridable: boolean })[]; canStart: boolean } }` | | getNodeBenchmarkStatus | `pipelineOrchestrator.getNodeBenchmarkStatus` | query | admin | `void` | `{ modeNodeId: string \| null; run: { runId: string; nodeId: string; state: "draining" \| "measuring" \| "restoring" \| "done" \| "failed" \| "aborted"; plan: { nodeId: string; devices: ({ deviceKey: string; modelIds: string[] })[]; phases?: ("device" \| "pipeline")[] = ["device","pipeline"]; steps?: string[] = []; fpsPerStream?: number = 10; budgetMinutes?: number = 45; keepDownloadedModels?: boolean = false; acceptInsufficientHeadroom?: boolean = false }; startedAtMs: number; deadlineAtMs: number; finishedAtMs: number \| null; endReason: "completed" \| "operator-abort" \| "deadline" \| "node-lost" \| "runner-lost" \| "hub-restart" \| "drain-timeout" \| "failed" \| null; error: string \| null; moved: number[]; staying: number[]; contaminated: boolean; progress: { phase: "preparing" \| "device" \| "pipeline" \| "cleanup"; deviceKey: string \| null; modelId: string \| null; load: number \| null; cellsDone: number; cellsTotal: number; message: string } \| null; resultIds: string[] } \| null }` | | abortNodeBenchmark | `pipelineOrchestrator.abortNodeBenchmark` | mutation | admin | `{ runId: string }` | `{ aborted: boolean }` | | getNodeBenchmarkCandidates | `pipelineOrchestrator.getNodeBenchmarkCandidates` | query | admin | `{ nodeId: string }` | `{ nodeId: string; reachable: boolean; devices: ({ deviceKey: string; enabled: boolean; available: boolean; suggested: string[]; all: string[]; currentModelId: string \| null })[]; steps: ({ id: string; name: string; slot: string })[] }` | | listNodeBenchmarkResults | `pipelineOrchestrator.listNodeBenchmarkResults` | query | admin | `{ nodeId?: string; deviceKey?: string }` | `({ id: string; runId: string; nodeId: string; cell: { phase: "device"; deviceKey: string; modelId: string; p50Ms: number; p95Ms: number; p99Ms: number; fps: number; kMax: number; limitedBy: "p95" \| "drops" \| "errors" \| "stall" \| "cpu" \| "ram" \| "none"; warmupMs: number; ramp: ({ load: number; pass: boolean; p95Ms: number; dropRatio: number; fps: number; cpuPct: number \| null; ramFreePct: number \| null; failReasons: string[] })[] } \| { phase: "pipeline"; deviceKey: string; modelId: string; steps: string[]; maxSessions: number; limitedBy: "p95" \| "drops" \| "errors" \| "stall" \| "cpu" \| "ram" \| "none"; stepsFired: string[]; warmupMs: number; ramp: ({ load: number; pass: boolean; p95Ms: number; dropRatio: number; fps: number; cpuPct: number \| null; ramFreePct: number \| null; failReasons: string[] })[] }; fpsPerStream: number; fingerprint: { pipelineVersion: string \| null; cpuModel: string \| null; ramGb: number \| null; os: string \| null; pools?: Record = {} } \| null; clip: { id: string; revision: string \| null; frames: number; width: number; height: number } \| null; contaminated: boolean; stayingCameras: number[]; partialRun: boolean; measuredAtMs: number; standing: "fresh" \| "stale" \| "superseded"; staleWhy: "age" \| "runtime" \| "pool-tuning" \| null })[]` | | deleteNodeBenchmarkResult | `pipelineOrchestrator.deleteNodeBenchmarkResult` | mutation | admin | `{ id: string }` | `{ deleted: boolean }` | | getCameraSettings | `pipelineOrchestrator.getCameraSettings` | query | protected | `{ deviceId: number }` | `{ stepToggles?: Record; stepSettings?: Record> } \| null` | | setCameraStepToggle | `pipelineOrchestrator.setCameraStepToggle` | mutation | admin | `{ deviceId: number; addonId: string; enabled: boolean \| null }` | `{ success: true }` | | getCameraDetectionSource | `pipelineOrchestrator.getCameraDetectionSource` | query | protected | `{ deviceId: number }` | `{ source: CameraDetectionSourceSchema; explicit: boolean; onboard: { available: boolean; geometry: "boxed" \| "while-streaming" \| "flag-only" \| "unknown" } }` | | setCameraDetectionSource | `pipelineOrchestrator.setCameraDetectionSource` | mutation | admin | `{ deviceId: number; source: CameraDetectionSourceSchema }` | `{ success: true }` | | setCameraStepSettings | `pipelineOrchestrator.setCameraStepSettings` | mutation | admin | `{ deviceId: number; addonId: string; settings: Record \| null }` | `{ success: true }` | | resolvePipeline | `pipelineOrchestrator.resolvePipeline` | query | protected | `{ deviceId: number; agentNodeId?: string }` | `{ engine?: PipelineEngineChoiceSchema; steps: ({ addonId: string; modelId?: string; enabled?: boolean = true; children?: self[]; settings?: Record; jumpDeviceKey?: string })[]; audio?: { engine?: PipelineEngineChoiceSchema; modelId?: string; enabled: boolean; settings?: Record } \| null }` | | getCameraSwitches | `pipelineOrchestrator.getCameraSwitches` | query | protected | `{ deviceId: number }` | `{ deviceId: number; switches: ({ id: "stream-broker" \| "object-detection" \| "privacy-mask" \| "device-audio" \| "broker-audio" \| "audio-analysis" \| "event-saving" \| "recording" \| "notifications"; label: string; costWhenOff: string; available: boolean; unavailableReason?: "no-provider" \| "source-unreachable" \| "device-disabled"; warning?: "no-privacy-zones"; enabled: boolean; authority: { kind: "device-disabled" } \| { kind: "wrapper-binding"; capName: string } \| { kind: "recording-config" } \| { kind: "notification-mute" } \| { kind: "camera-audio"; capName: string } \| { kind: "camera-mask"; capName: string } \| { kind: "broker-audio-mute" } })[]; fetchedAt: number }` | | setCameraSwitch | `pipelineOrchestrator.setCameraSwitch` | mutation | admin | `{ deviceId: number; switchId: "stream-broker" \| "object-detection" \| "privacy-mask" \| "device-audio" \| "broker-audio" \| "audio-analysis" \| "event-saving" \| "recording" \| "notifications"; enabled: boolean }` | `{ deviceId: number; switches: ({ id: "stream-broker" \| "object-detection" \| "privacy-mask" \| "device-audio" \| "broker-audio" \| "audio-analysis" \| "event-saving" \| "recording" \| "notifications"; label: string; costWhenOff: string; available: boolean; unavailableReason?: "no-provider" \| "source-unreachable" \| "device-disabled"; warning?: "no-privacy-zones"; enabled: boolean; authority: { kind: "device-disabled" } \| { kind: "wrapper-binding"; capName: string } \| { kind: "recording-config" } \| { kind: "notification-mute" } \| { kind: "camera-audio"; capName: string } \| { kind: "camera-mask"; capName: string } \| { kind: "broker-audio-mute" } })[]; fetchedAt: number }` | | getCameraStatus | `pipelineOrchestrator.getCameraStatus` | query | protected | `{ deviceId: number }` | `CameraStatusSchema` | | getCameraStatuses | `pipelineOrchestrator.getCameraStatuses` | query | protected | `{ deviceIds?: number[] }` | `CameraStatusSchema[]` | | setCameraSensors | `pipelineOrchestrator.setCameraSensors` | mutation | admin | `SetCameraSensorsInputSchema` | `{ success: true }` | | reconcileFromDisk | `pipelineOrchestrator.reconcileFromDisk` | mutation | admin | `void` | `DiskReconcileJobSchema` | | getReconcileFromDiskStatus | `pipelineOrchestrator.getReconcileFromDiskStatus` | query | admin | `void` | `DiskReconcileJobSchema` | ### `pipeline-runner` → `pipelineRunner.*` - **Source:** `packages/types/src/capabilities/pipeline-runner.cap.ts:1219` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `IPipelineRunnerProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | attachCamera | `pipelineRunner.attachCamera` | mutation | protected | `RunnerCameraConfigSchema` | `{ success: true }` | | detachCamera | `pipelineRunner.detachCamera` | mutation | protected | `{ deviceId: number }` | `{ success: true }` | | reportMotion | `pipelineRunner.reportMotion` | mutation | protected | `ReportMotionInputSchema` | `{ success: true }` | | getLocalLoad | `pipelineRunner.getLocalLoad` | query | protected | `void` | `RunnerLocalLoadSchema` | | getLocalMetrics | `pipelineRunner.getLocalMetrics` | query | protected | `void` | `RunnerLocalMetricsSchema` | | getCameraMetrics | `pipelineRunner.getCameraMetrics` | query | protected | `{ deviceId: number }` | `CameraMetricsSchema \| null` | | getAllCameraMetrics | `pipelineRunner.getAllCameraMetrics` | query | protected | `void` | `CameraMetricsWithDeviceIdSchema[]` | | getLocalCameras | `pipelineRunner.getLocalCameras` | query | protected | `void` | `number[]` | | requestOccupancyBurst | `pipelineRunner.requestOccupancyBurst` | mutation | admin | `{ deviceId: number; frames?: number; reason: string }` | `{ started: boolean; refusedBecause?: OccupancyBurstRefusalSchema }` | | getNativeCrop | `pipelineRunner.getNativeCrop` | query | protected | `{ handle: FrameHandleSchema; bbox: NativeCropBboxSchema; maxWidth?: number; acceptJpegBytes?: boolean; encodeJpeg?: boolean }` | `NativeCropResultSchema \| null` | | runDetailSubtree | `pipelineRunner.runDetailSubtree` | mutation | protected | `{ deviceId: number; frameHandle?: FrameHandleSchema; frameJpeg?: string; cropJpeg?: string; parent: { bbox: NativeCropBboxSchema; className: string }; steps?: string[]; supplied?: { stepId: string; modelId: string; boxes: ({ bbox: NativeCropBboxSchema; score: number })[] } }` | `{ details: ({ stepId: string; className: string; score: number; bbox?: NativeCropBboxSchema; embedding?: string; embeddingMagnitude?: number; embeddingModelId?: string; label?: string; labelTier?: 1 \| 2; labelModelId?: string; alignedCropJpeg?: string; nativeFaceShortSidePx?: number; landmarks?: ({ x: number; y: number })[] })[] } \| null` | | runStatelessStep | `pipelineRunner.runStatelessStep` | mutation | protected | `{ stepId: string; modelId: string; frameJpeg: string; bbox: NativeCropBboxSchema; className: string; sourceDeviceId: number }` | `{ kind: "ran"; nodeId: string; modelId: string; details: ({ stepId: string; className: string; score: number; bbox?: NativeCropBboxSchema; embedding?: string; embeddingMagnitude?: number; embeddingModelId?: string; label?: string; labelTier?: 1 \| 2; labelModelId?: string; alignedCropJpeg?: string; nativeFaceShortSidePx?: number; landmarks?: ({ x: number; y: number })[] })[] } \| { kind: "refused"; nodeId: string; reason: "unknown-step" \| "model-not-servable" \| "unreadable-frame" \| "execution-failed"; detail: string }` | | parkTrackFrame | `pipelineRunner.parkTrackFrame` | mutation | protected | `{ deviceId: number; trackId: string; kind: ParkedFrameKindSchema; handle: FrameHandleSchema; bbox: NativeCropBboxSchema; maxWidth?: number; timestamp: number }` | `ParkTrackFrameResultSchema` | | getParkedTrackFrame | `pipelineRunner.getParkedTrackFrame` | query | protected | `{ deviceId: number; trackId: string; kind: ParkedFrameKindSchema; acceptJpegBytes?: boolean }` | `ParkedTrackFrameSchema \| null` | | releaseParkedTrackFrames | `pipelineRunner.releaseParkedTrackFrames` | mutation | protected | `{ deviceId: number; trackId: string }` | `{ released: number }` | | startNodeBench | `pipelineRunner.startNodeBench` | mutation | admin | `{ runId: string; devices: ({ deviceKey: string; modelIds: string[] })[]; phases: ("device" \| "pipeline")[]; steps?: string[] = []; fpsPerStream: number; deadlineAtMs: number; settleSec?: number = 5; measureSec?: number = 20; keepDownloadedModels?: boolean = false }` | `{ accepted: true; runId: string }` | | getNodeBenchStatus | `pipelineRunner.getNodeBenchStatus` | query | admin | `{ runId: string }` | `{ runId: string; nodeId: string; state: "running" \| "done" \| "failed" \| "aborted"; progress: { phase: "preparing" \| "device" \| "pipeline" \| "cleanup"; deviceKey: string \| null; modelId: string \| null; load: number \| null; cellsDone: number; cellsTotal: number; message: string } \| null; cells: ({ phase: "device"; deviceKey: string; modelId: string; p50Ms: number; p95Ms: number; p99Ms: number; fps: number; kMax: number; limitedBy: "p95" \| "drops" \| "errors" \| "stall" \| "cpu" \| "ram" \| "none"; warmupMs: number; ramp: ({ load: number; pass: boolean; p95Ms: number; dropRatio: number; fps: number; cpuPct: number \| null; ramFreePct: number \| null; failReasons: string[] })[] } \| { phase: "pipeline"; deviceKey: string; modelId: string; steps: string[]; maxSessions: number; limitedBy: "p95" \| "drops" \| "errors" \| "stall" \| "cpu" \| "ram" \| "none"; stepsFired: string[]; warmupMs: number; ramp: ({ load: number; pass: boolean; p95Ms: number; dropRatio: number; fps: number; cpuPct: number \| null; ramFreePct: number \| null; failReasons: string[] })[] })[]; fingerprint: { pipelineVersion: string \| null; cpuModel: string \| null; ramGb: number \| null; os: string \| null; pools?: Record = {} } \| null; clip: { id: string; revision: string \| null; frames: number; width: number; height: number } \| null; activeCameraIds: number[]; deletedModels: string[]; error: string \| null; startedAtMs: number; finishedAtMs: number \| null } \| null` | | abortNodeBench | `pipelineRunner.abortNodeBench` | mutation | admin | `{ runId: string }` | `{ aborted: boolean }` | ### `plate-gallery` → `plateGallery.*` - **Source:** `packages/types/src/capabilities/plate-gallery.cap.ts:122` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `IPlateGalleryProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listPlates | `plateGallery.listPlates` | query | protected | `{ deviceId?: number; limit?: number; includeCrops?: boolean }?` | `({ plateId: string; deviceId: number; trackId: string; timestamp: number; text: string; score: number; corrected: boolean; recognizedVehicleId?: string; vehicleName?: string; assigned: boolean; plateBbox?: BoundingBoxSchema; keyFrameMediaId?: number; base64?: string; cropUrl?: string; cropMissReason?: string })[]` | | getPlateByTrack | `plateGallery.getPlateByTrack` | query | protected | `{ deviceId: number; trackId: string }` | `{ plateId: string; deviceId: number; trackId: string; timestamp: number; text: string; score: number; corrected: boolean; recognizedVehicleId?: string; vehicleName?: string; assigned: boolean; plateBbox?: BoundingBoxSchema; keyFrameMediaId?: number; base64?: string; cropUrl?: string; cropMissReason?: string } \| null` | | getPlateMedia | `plateGallery.getPlateMedia` | query | protected | `{ plateId: string }` | `({ mediaId: number; kind: string; url: string; sizeBytes: number; timestamp: number })[]` | | searchPlates | `plateGallery.searchPlates` | query | protected | `{ text: string; maxDistance?: number; limit?: number; includeCrops?: boolean }` | `({ plateId: string; deviceId: number; trackId: string; timestamp: number; text: string; score: number; corrected: boolean; recognizedVehicleId?: string; vehicleName?: string; assigned: boolean; plateBbox?: BoundingBoxSchema; keyFrameMediaId?: number; base64?: string; cropUrl?: string; cropMissReason?: string })[]` | | suggestPlateClusters | `plateGallery.suggestPlateClusters` | query | protected | `{ maxDistance?: number; minClusterSize?: number; limit?: number }?` | `({ plateIds: string[]; representativePlateId: string; representativeText: string; size: number; cohesion: number })[]` | | correctPlateText | `plateGallery.correctPlateText` | mutation | admin | `{ plateId: string; text: string }` | `void` | | deletePlate | `plateGallery.deletePlate` | mutation | admin | `{ plateId: string }` | `void` | | listVehicles | `plateGallery.listVehicles` | query | protected | `{ includeCrops?: boolean }?` | `({ id: string; name: string; sampleCount: number; coverMediaId?: number; coverBase64?: string })[]` | | createVehicle | `plateGallery.createVehicle` | mutation | admin | `{ name: string }` | `{ id: string; name: string; sampleCount: number; coverMediaId?: number; coverBase64?: string }` | | renameVehicle | `plateGallery.renameVehicle` | mutation | admin | `{ id: string; name: string }` | `void` | | deleteVehicle | `plateGallery.deleteVehicle` | mutation | admin | `{ id: string }` | `void` | | listVehicleSamples | `plateGallery.listVehicleSamples` | query | protected | `{ vehicleId: string }` | `({ id: string; text: string; score: number; addedAt: number; deviceId?: number; base64?: string; mediaId?: number; keyFrameMediaId?: number; plateBbox?: BoundingBoxSchema })[]` | | removeVehicleSample | `plateGallery.removeVehicleSample` | mutation | admin | `{ vehicleId: string; sampleId: string }` | `void` | | moveVehicleSample | `plateGallery.moveVehicleSample` | mutation | admin | `{ sampleId: string; toVehicleId: string }` | `void` | | assignPlate | `plateGallery.assignPlate` | mutation | admin | `{ plateId: string; vehicleId: string }` | `void` | | unassignPlate | `plateGallery.unassignPlate` | mutation | admin | `{ plateId: string }` | `void` | | assignPlates | `plateGallery.assignPlates` | mutation | admin | `{ plateIds: string[]; vehicleId: string }` | `{ assigned: number; failed: string[] }` | | unassignPlates | `plateGallery.unassignPlates` | mutation | admin | `{ plateIds: string[] }` | `{ unassigned: number; failed: string[] }` | ### `platform-probe` → `platformProbe.*` - **Source:** `packages/types/src/capabilities/platform-probe.cap.ts:209` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `IPlatformProbeProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getCapabilities | `platformProbe.getCapabilities` | query | protected | `void` | `{ hardware: { platform: "darwin" \| "linux" \| "win32"; arch: "arm64" \| "x64"; cpuModel: string; cpuCores: number; totalRAM_MB: number; availableRAM_MB: number; gpu: { type: "nvidia" \| "amd" \| "intel" \| "apple"; name: string; memoryMB?: number } \| null; npu: { type: "apple-ane" \| "intel-npu" \| "amd-xdna"; name?: string; generation?: "xdna1" \| "xdna2" } \| null; coral?: { type: "coral-edgetpu"; bus?: string; count?: number; units?: ({ bus: "usb" \| "pci"; count: number })[]; unavailable?: ({ bus: "usb" \| "pci"; count: number; reason: "driver-missing" \| "device-not-accessible" })[] } \| null; accelerators?: ({ deviceKey: string; fullDeviceName: pipe; executionUnits: pipe; clockMHz: pipe; gops: { int8: pipe; fp16: pipe } \| null; architecture: pipe; npuName: pipe; tops: pipe; vendor: pipe; webgpuArchitecture: pipe; webgpuDevice: pipe; computeUnits: pipe })[] }; scores: ({ runtime: "python"; backend: string; format: "onnx" \| "coreml" \| "openvino" \| "tflite"; score: number; reason: string; available: boolean })[]; bestScore: { runtime: "python"; backend: string; format: "onnx" \| "coreml" \| "openvino" \| "tflite"; score: number; reason: string; available: boolean }; pythonPath: string \| null; devices: ({ key: string; backend: string; device: string; format: "onnx" \| "coreml" \| "openvino" \| "tflite" \| "pt" \| "gguf"; runtime: "python"; score: number; available: boolean })[] }` | | getHardware | `platformProbe.getHardware` | query | protected | `void` | `{ platform: "darwin" \| "linux" \| "win32"; arch: "arm64" \| "x64"; cpuModel: string; cpuCores: number; totalRAM_MB: number; availableRAM_MB: number; gpu: { type: "nvidia" \| "amd" \| "intel" \| "apple"; name: string; memoryMB?: number } \| null; npu: { type: "apple-ane" \| "intel-npu" \| "amd-xdna"; name?: string; generation?: "xdna1" \| "xdna2" } \| null; coral?: { type: "coral-edgetpu"; bus?: string; count?: number; units?: ({ bus: "usb" \| "pci"; count: number })[]; unavailable?: ({ bus: "usb" \| "pci"; count: number; reason: "driver-missing" \| "device-not-accessible" })[] } \| null; accelerators?: ({ deviceKey: string; fullDeviceName: pipe; executionUnits: pipe; clockMHz: pipe; gops: { int8: pipe; fp16: pipe } \| null; architecture: pipe; npuName: pipe; tops: pipe; vendor: pipe; webgpuArchitecture: pipe; webgpuDevice: pipe; computeUnits: pipe })[] }` | | resolveInferenceConfig | `platformProbe.resolveInferenceConfig` | query | protected | `{ requirements: ({ modelId: string; name: string; minRAM_MB: number; accuracyScore: number; formats: string[] })[] }` | `{ modelId: string; runtime: "python"; backend: string; format: "onnx" \| "coreml" \| "openvino" \| "tflite" \| "pt" \| "gguf"; reason: string }` | | resolveHwAccel | `platformProbe.resolveHwAccel` | query | protected | `{ prefer?: "videotoolbox" \| "cuda" \| "nvdec" \| "vaapi" \| "qsv" \| "d3d11va" \| "dxva2" \| "amf" \| "vdpau" \| "drm" \| "coreml" \| "tensorrt" \| "openvino" \| "directml" \| "webgpu" \| "none" \| null }` | `{ preferred: string[]; rationale: string }` | | rescanAccelerators | `platformProbe.rescanAccelerators` | mutation | admin | `void` | `{ devices: ({ key: string; backend: string; device: string; format: "onnx" \| "coreml" \| "openvino" \| "tflite" \| "pt" \| "gguf"; runtime: "python"; score: number; available: boolean })[]; appeared: string[]; disappeared: string[]; usbBus: "observed" \| "unobservable"; decidedBy: "usb-ids" \| "pci" \| "delegate-fallback" \| "none" }` | ### `power-meter` → `powerMeter.*` - **Source:** `packages/types/src/capabilities/power-meter.cap.ts:116` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `sensor, switch, light, fan, climate, humidifier, water-heater, media-player, washer, dryer, dishwasher, vacuum, lawn-mower, pet-feeder` - **Archetypes:** status(push) · runtimeState · deviceConfig(widget) - **Provider interface:** `IPowerMeterProvider` - **runtimeState:** `PowerMeterStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `powerMeter.getStatus` | query | protected | `{ deviceId: number }` | `PowerMeterStatusSchema` | ### `power-source` → `powerSource.*` - **Source:** `packages/types/src/capabilities/power-source.cap.ts:140` - **Meta:** scope: `device` · mode: `singleton` · mount: `singleton` · deviceTypes: `gateway, camera, sensor, media-player, vacuum, generic, washer, dryer, dishwasher, pet-fountain, fan, humidifier, climate, water-heater` - **Archetypes:** runtimeState - **Provider interface:** `IPowerSourceProvider` - **runtimeState:** `PowerSourceStateSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus | `powerSource.getStatus` | query | protected | `{ deviceId: number }` | `PowerSourceInfoSchema` | | powerOn | `powerSource.powerOn` | mutation | protected | `{ deviceId: number }` | `PowerSourceActionResultSchema` | | powerOff | `powerSource.powerOff` | mutation | protected | `{ deviceId: number }` | `PowerSourceActionResultSchema` | | forceRestart | `powerSource.forceRestart` | mutation | protected | `{ deviceId: number }` | `PowerSourceActionResultSchema` | ### `presence` → `presence.*` - **Source:** `packages/types/src/capabilities/presence.cap.ts:48` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `presence` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IPresenceProvider` - **runtimeState:** `PresenceStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `presence.getStatus` | query | protected | `{ deviceId: number }` | `PresenceStatusSchema` | ### `pressure-sensor` → `pressureSensor.*` - **Source:** `packages/types/src/capabilities/pressure-sensor.cap.ts:27` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `sensor` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IPressureSensorProvider` - **runtimeState:** `PressureSensorStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `pressureSensor.getStatus` | query | protected | `{ deviceId: number }` | `PressureSensorStatusSchema` | ### `privacy-mask` → `privacyMask.*` - **Source:** `packages/types/src/capabilities/privacy-mask.cap.ts:131` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `camera` - **Archetypes:** status(poll) · runtimeState · deviceConfig(widget) - **Provider interface:** `IPrivacyMaskProvider` - **runtimeState:** `PrivacyMaskStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `privacyMask.getStatus` | query | protected | `{ deviceId: number }` | `PrivacyMaskStatusSchema` | | getOptions | `privacyMask.getOptions` | query | protected | `{ deviceId: number }` | `PrivacyMaskOptionsSchema` | | setMask | `privacyMask.setMask` | mutation | admin | `{ deviceId: number; patch: PrivacyMaskPatchSchema }` | `void` | | setAudioEnabled | `privacyMask.setAudioEnabled` | mutation | admin | `{ deviceId: number; enabled: boolean }` | `void` | ### `ptz` → `ptz.*` - **Source:** `packages/types/src/capabilities/ptz.cap.ts:196` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `camera` - **Archetypes:** status(command-driven) · deviceConfig(widget) - **Provider interface:** `IPtzProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `ptz.getStatus` | query | protected | `{ deviceId: number }` | `PtzStatusSchema` | | move | `ptz.move` | mutation | protected | `{ pan?: number; tilt?: number; zoom?: number; speed?: number; deviceId: number }` | `void` | | continuousMove | `ptz.continuousMove` | mutation | protected | `{ pan?: number; tilt?: number; zoom?: number; speed?: number; deviceId: number }` | `void` | | goHome | `ptz.goHome` | mutation | protected | `{ deviceId: number }` | `void` | | getPresets | `ptz.getPresets` | query | protected | `{ deviceId: number }` | `PtzPresetSchema[]` | | goToPreset | `ptz.goToPreset` | mutation | protected | `{ deviceId: number; presetId: string }` | `void` | | savePreset | `ptz.savePreset` | mutation | admin | `{ deviceId: number; presetId: string; name: string }` | `void` | | deletePreset | `ptz.deletePreset` | mutation | admin | `{ deviceId: number; presetId: string }` | `void` | | getOptions | `ptz.getOptions` | query | protected | `{ deviceId: number }` | `PtzOptionsSchema` | | stop | `ptz.stop` | mutation | protected | `{ deviceId: number }` | `void` | | getHomePreset | `ptz.getHomePreset` | query | protected | `{ deviceId: number }` | `PtzHomePresetSchema` | | setHomePreset | `ptz.setHomePreset` | mutation | admin | `{ deviceId: number; presetId: string \| null }` | `void` | | captureHomeHere | `ptz.captureHomeHere` | mutation | admin | `{ deviceId: number }` | `void` | | getHomeReturn | `ptz.getHomeReturn` | query | protected | `{ deviceId: number }` | `PtzHomeReturnSchema \| null` | | setHomeReturn | `ptz.setHomeReturn` | mutation | admin | `{ deviceId: number; enabled: boolean; seconds: number }` | `void` | | getPosition | `ptz.getPosition` | query | protected | `{ deviceId: number }` | `PtzPositionSchema` | | setAutofocus | `ptz.setAutofocus` | mutation | protected | `{ deviceId: number; enabled: boolean }` | `void` | ### `ptz-autotrack` → `ptzAutotrack.*` - **Source:** `packages/types/src/capabilities/ptz-autotrack.cap.ts:110` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `camera` - **Archetypes:** status(command-driven) · runtimeState · deviceConfig(widget) · wrapper - **Provider interface:** `IPtzAutotrackProvider` - **runtimeState:** `PtzAutotrackRuntimeStateSchema` - **Events:** `onStatusChanged` → `{ deviceId: number; status: PtzAutotrackStatusSchema }` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus | `ptzAutotrack.getStatus` | query | protected | `{ deviceId: number }` | `PtzAutotrackStatusSchema` | | setEnabled | `ptzAutotrack.setEnabled` | mutation | protected | `{ deviceId: number; enabled: boolean }` | `void` | | getSettings | `ptzAutotrack.getSettings` | query | protected | `{ deviceId: number }` | `PtzAutotrackSettingsSchema \| null` | | setSettings | `ptzAutotrack.setSettings` | mutation | protected | `{ deviceId: number; settings: { targetType?: string; stopDelaySeconds?: number; disappearDelaySeconds?: number } }` | `void` | ### `pump-cycle` → `pumpCycle.*` - **Source:** `packages/types/src/capabilities/pump-cycle.cap.ts:37` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `pet-fountain` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IPumpCycleProvider` - **runtimeState:** `PumpCycleStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `pumpCycle.getStatus` | query | protected | `{ deviceId: number }` | `PumpCycleStatusSchema` | | setEnabled | `pumpCycle.setEnabled` | mutation | protected | `{ deviceId: number; on: boolean }` | `void` | | setOnMinutes | `pumpCycle.setOnMinutes` | mutation | protected | `{ deviceId: number; minutes: number }` | `void` | | setOffMinutes | `pumpCycle.setOffMinutes` | mutation | protected | `{ deviceId: number; minutes: number }` | `void` | ### `reboot` → `reboot.*` - **Source:** `packages/types/src/capabilities/reboot.cap.ts:20` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `camera, sensor, switch, gateway` - **Archetypes:** — - **Provider interface:** `IRebootProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | reboot | `reboot.reboot` | mutation | admin | `{ deviceId: number }` | `{ success: true }` | ### `record-entries` → `recordEntries.*` - **Source:** `packages/types/src/capabilities/record-entries.cap.ts:47` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `IRecordEntriesProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listEntryKinds | `recordEntries.listEntryKinds` | query | admin | `{}` | `{ kinds: EntryKindInfoSchema[] }` | | listEntries | `recordEntries.listEntries` | query | admin | `{ owner: string; kind: string }` | `{ entries: EntryViewSchema[] }` | | putEntry | `recordEntries.putEntry` | mutation | admin | `{ owner: string; kind: string; id?: string; data: RecordBodySchema; ifRev?: number }` | `{ id: string; rev: number }` | | deleteEntry | `recordEntries.deleteEntry` | mutation | admin | `{ owner: string; kind: string; id: string }` | `{ deleted: boolean }` | ### `recording` → `recording.*` - **Source:** `packages/types/src/capabilities/recording.cap.ts:277` - **Meta:** scope: `device` · mode: `collection` · mount: `device-scoped` · deviceTypes: `camera` - **Archetypes:** wrapper(defaultActive) - **Provider interface:** `IRecordingProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listSources | `recording.listSources` | query | protected | `{ deviceId: number }` | `RecordingSourceSchema[]` | | getAvailability | `recording.getAvailability` | query | protected | `{ deviceId: number; provider: string; fromMs: number; toMs: number; profile?: string }` | `RecordingAvailabilitySchema` | | getDaysWithRecordings | `recording.getDaysWithRecordings` | query | protected | `{ deviceId: number; provider: string; fromMs: number; toMs: number; tzOffsetMinutes: number }` | `RecordingDaysSchema` | | getPlayback | `recording.getPlayback` | query | protected | `{ deviceId: number; provider: string; fromMs: number; toMs: number; profile?: CamProfileSchema }` | `RecordingPlaybackSchema` | | getPlaybackOptions | `recording.getPlaybackOptions` | query | protected | `{ deviceId: number; provider: string }` | `RecordingSourceOptionsSchema` | ### `recording-archive` → `recordingArchive.*` - **Source:** `packages/types/src/capabilities/recording-archive.cap.ts:452` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** status(command-driven) · exposesDeviceSettings - **Provider interface:** `IRecordingArchiveProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `recordingArchive.getStatus` | query | protected | `{ deviceId: number }` | `RecordingStatusSchema` | | getDeviceSettingsContribution _(auto)_ | `recordingArchive.getDeviceSettingsContribution` | query | protected | `{ deviceId: number }` | `{ tabs?: ({ id: string; label: string; icon: string; order?: number })[]; sections: ({ id: string; title: string; description?: string; style?: "card" \| "accordion"; defaultCollapsed?: boolean; columns?: 1 \| 2 \| 3 \| 4; tab?: string; location?: "settings" \| "top-tab" \| "hero"; order?: number; fields: any[] })[] } \| null` | | getDeviceLiveContribution _(auto)_ | `recordingArchive.getDeviceLiveContribution` | query | protected | `{ deviceId: number }` | `{ tabs?: ({ id: string; label: string; icon: string; order?: number })[]; sections: ({ id: string; title: string; description?: string; style?: "card" \| "accordion"; defaultCollapsed?: boolean; columns?: 1 \| 2 \| 3 \| 4; tab?: string; location?: "settings" \| "top-tab" \| "hero"; order?: number; fields: any[] })[] } \| null` | | applyDeviceSettingsPatch _(auto)_ | `recordingArchive.applyDeviceSettingsPatch` | mutation | admin | `{ deviceId: number; patch: Record }` | `{ success: true }` | | getAvailabilityBatch | `recordingArchive.getAvailabilityBatch` | query | protected | `{ deviceIds: number[]; fromMs: number; toMs: number }` | `RecordingAvailabilityForDeviceSchema[]` | | getDaysWithRecordingsBatch | `recordingArchive.getDaysWithRecordingsBatch` | query | protected | `{ deviceIds: number[]; fromMs: number; toMs: number; tzOffsetMinutes: number }` | `RecordingDaysForDeviceSchema[]` | | getStorageUsage | `recordingArchive.getStorageUsage` | query | admin | `{}` | `RecordingStorageUsageSchema` | | getDeviceConfig | `recordingArchive.getDeviceConfig` | query | protected | `{ deviceId: number }` | `{ enabled: boolean; mode?: CameraRecordingModeSchema; profiles?: CamProfileSchema[]; segmentSeconds?: number; bands?: ({ days: number[]; start: string; end: string; mode: "continuous" \| "events"; audio?: "on" \| "muted"; triggers?: { motion?: boolean; audioThresholdDbfs?: number; objectClasses?: ("person" \| "vehicle" \| "animal")[]; sensorDeviceIds?: number[] }; preBufferSec?: number; postBufferSec?: number })[] = []; deviceDecision?: boolean; retention?: { maxAgeDays?: number; maxSizeGb?: number } }` | | locateSegment | `recordingArchive.locateSegment` | query | admin | `{ deviceId: number; profile: string; epochMs: number }` | `LocateSegmentResultSchema` | | readSegmentBytes | `recordingArchive.readSegmentBytes` | query | admin | `{ deviceId: number; profile: string; startMs: number }` | `ReadSegmentBytesResultSchema` | | readGopBytes | `recordingArchive.readGopBytes` | query | admin | `{ deviceId: number; profile: string; startMs: number; epochMs: number }` | `ReadGopBytesResultSchema` | | readWindowBytes | `recordingArchive.readWindowBytes` | query | admin | `{ deviceId: number; profile: string; startMs: number; fromMs: number; toMs: number }` | `ReadWindowBytesResultSchema` | | setDeviceConfig | `recordingArchive.setDeviceConfig` | mutation | admin | `{ deviceId: number; config: { enabled: boolean; mode?: CameraRecordingModeSchema; profiles?: CamProfileSchema[]; segmentSeconds?: number; bands?: ({ days: number[]; start: string; end: string; mode: "continuous" \| "events"; audio?: "on" \| "muted"; triggers?: { motion?: boolean; audioThresholdDbfs?: number; objectClasses?: ("person" \| "vehicle" \| "animal")[]; sensorDeviceIds?: number[] }; preBufferSec?: number; postBufferSec?: number })[] = []; deviceDecision?: boolean; retention?: { maxAgeDays?: number; maxSizeGb?: number } } }` | `{ enabled: boolean; mode?: CameraRecordingModeSchema; profiles?: CamProfileSchema[]; segmentSeconds?: number; bands?: ({ days: number[]; start: string; end: string; mode: "continuous" \| "events"; audio?: "on" \| "muted"; triggers?: { motion?: boolean; audioThresholdDbfs?: number; objectClasses?: ("person" \| "vehicle" \| "animal")[]; sensorDeviceIds?: number[] }; preBufferSec?: number; postBufferSec?: number })[] = []; deviceDecision?: boolean; retention?: { maxAgeDays?: number; maxSizeGb?: number } }` | | rescanStorage | `recordingArchive.rescanStorage` | mutation | admin | `{ deviceId: number }` | `RecordingStatusSchema` | | pruneFootage | `recordingArchive.pruneFootage` | mutation | admin | `{ deviceId: number; reason?: "retention" \| "quota" \| "manual" \| "operator" \| "maintenance" \| "orphaned-device" }` | `{ floorMs: number \| null; deletedBuckets: number; reclaimedBytes: number }` | | deleteFootprint | `recordingArchive.deleteFootprint` | mutation | admin | `{ deviceId: number; fromMs?: number; toMs?: number }` | `{ deletedBuckets: number; reclaimedBytes: number }` | | listOpsLog | `recordingArchive.listOpsLog` | query | admin | `{ deviceId?: number; limit?: number }` | `({ id: string; at: number; domain: "recording" \| "events"; op: "prune" \| "manual-delete" \| "rescan" \| "retention-run" \| "relocate" \| "orphan-audit"; reason: "retention" \| "quota" \| "manual" \| "operator" \| "maintenance" \| "orphaned-device"; deviceId: number \| null; nodeId: string; itemsAffected: number; bytesReclaimed: number; detail: string \| null; actor: string })[]` | | renderGif | `recordingArchive.renderGif` | mutation | admin | `{ deviceId: number; aroundMs: number; preRollSec?: number = 2; postRollSec?: number = 5; maxWidth?: number = 480; fps?: number = 5 }` | `{ gifBase64: string; fromMs: number; toMs: number }` | | renderClip | `recordingArchive.renderClip` | mutation | admin | `{ deviceId: number; aroundMs: number; preRollSec?: number = 3; postRollSec?: number = 7; maxWidth?: number = 640 }` | `{ clipBase64: string; mime: string; fromMs: number; toMs: number; bytes: number }` | | pauseForStorageMigration | `recordingArchive.pauseForStorageMigration` | mutation | admin | `{ leaseId: string }` | `{ paused: true }` | | resumeForStorageMigration | `recordingArchive.resumeForStorageMigration` | mutation | admin | `{ leaseId: string }` | `{ resumed: true }` | | refreshStorageLocationsForMigration | `recordingArchive.refreshStorageLocationsForMigration` | mutation | admin | `{ leaseId: string }` | `{ refreshed: true }` | | startStorageMigrationMove | `recordingArchive.startStorageMigrationMove` | mutation | admin | `{ fromLocationId: string; toLocationId: string; entities?: "segments"[]; footageClass?: "recordings" \| "recordingsLow"; deviceId?: number; profiles?: string[]; throttleMbps?: number; sinceMs?: number; leaseId: string }` | `{ jobId: string }` | | getStorageMigrationMoveStatus | `recordingArchive.getStorageMigrationMoveStatus` | query | admin | `{ jobId: string }` | `{ jobId: string; state: "queued" \| "running" \| "done" \| "failed" \| "cancelled"; fromLocationId: string; toLocationId: string; deviceId: number \| null; entities: string[]; filesMoved: number; bytesMoved: number; filesTotal: number \| null; rowsReconciled?: number; rowsForgotten?: number; startedAt: number; finishedAt: number \| null; error: string \| null } \| null` | | cancelStorageMigrationMove | `recordingArchive.cancelStorageMigrationMove` | mutation | admin | `{ jobId: string }` | `{ cancelled: boolean }` | | relocateFootage | `recordingArchive.relocateFootage` | mutation | admin | `{ fromLocationId: string; toLocationId: string; entities?: "segments"[]; footageClass?: "recordings" \| "recordingsLow"; deviceId?: number; profiles?: string[]; throttleMbps?: number; sinceMs?: number }` | `{ jobId: string }` | | listRelocateJobs | `recordingArchive.listRelocateJobs` | query | admin | `{}` | `({ jobId: string; state: "queued" \| "running" \| "done" \| "failed" \| "cancelled"; fromLocationId: string; toLocationId: string; deviceId: number \| null; entities: string[]; filesMoved: number; bytesMoved: number; filesTotal: number \| null; rowsReconciled?: number; rowsForgotten?: number; startedAt: number; finishedAt: number \| null; error: string \| null })[]` | | getRelocateResidue | `recordingArchive.getRelocateResidue` | query | admin | `{ fromLocationId: string; footageClass?: "recordings" \| "recordingsLow" }` | `{ segments: number; bytes: number } \| null` | | reconcileLedgerAgainstDisk | `recordingArchive.reconcileLedgerAgainstDisk` | mutation | admin | `{ locationId: string; apply?: boolean; deviceId?: number; profiles?: string[] }` | `{ locationId: string; applied: boolean; refused: "location-unknown" \| "source-writable" \| "no-ledger" \| "archive-unreadable" \| "anchor-absent" \| "anchor-unreadable" \| "anchor-moved" \| null; archiveSegments: number \| null; archiveBytes: number \| null; hoursClaimed: number; hoursWalked: number; hoursMissing: number; listings: number; segmentsClaimed: number; ghostSegments: number; ghostBytes: number; ghostHoursWhole: number; forgottenSegments: number; forgottenBytes: number; orphanFiles: number; orphanSample: string[]; hoursSkipped: number; skippedByReason: { live-tail: number; listing-error: number; path-mismatch: number; durable-refused: number }; bounded: boolean; byDevice: ({ deviceId: number; hoursWalked: number; hoursMissing: number; ghostSegments: number; ghostBytes: number; forgottenSegments: number; orphanFiles: number })[] }` | | cancelRelocateJob | `recordingArchive.cancelRelocateJob` | mutation | admin | `{ jobId: string }` | `{ cancelled: boolean }` | | planStorageRebalance | `recordingArchive.planStorageRebalance` | query | admin | `RecordingRebalanceInputSchema` | `RecordingRebalancePlanSchema` | | startStorageRebalance | `recordingArchive.startStorageRebalance` | mutation | admin | `RecordingRebalanceInputSchema` | `RecordingRebalancePlanSchema` | | getPlacement | `recordingArchive.getPlacement` | query | admin | `{}` | `{ assignments: ({ deviceId: number; profile: string; locationId: string })[]; pins: ({ deviceId: number; locationId: string })[]; defaultLocations: Record }` | | setDevicePlacement | `recordingArchive.setDevicePlacement` | mutation | admin | `{ deviceId: number; locationId: string \| null }` | `{ ok: true }` | ### `recording-export` → `recordingExport.*` - **Source:** `packages/types/src/capabilities/recording-export.cap.ts:526` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `IRecordingExportProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | createExport | `recordingExport.createExport` | mutation | protected | `{ deviceId: number; profile?: string; profiles?: string[]; fromMs?: number; toMs?: number; subject?: ExportSubjectSchema; options: ExportOptionsSchema }` | `ExportRecordSchema` | | listExports | `recordingExport.listExports` | query | protected | `{ deviceId?: number }` | `ExportRecordSchema[]` | | getExport | `recordingExport.getExport` | query | protected | `{ exportId: string }` | `ExportRecordSchema` | | cancelExport | `recordingExport.cancelExport` | mutation | protected | `{ exportId: string }` | `ExportRecordSchema` | | deleteExport | `recordingExport.deleteExport` | mutation | protected | `{ exportId: string }` | `ExportRecordSchema` | | getDownloadUrl | `recordingExport.getDownloadUrl` | query | protected | `{ exportId: string }` | `ExportDownloadSchema` | | readExportBytes | `recordingExport.readExportBytes` | query | protected | `{ exportId: string }` | `ExportBytesSchema` | ### `recording-onboard` → `recordingOnboard.*` - **Source:** `packages/types/src/capabilities/recording-onboard.cap.ts:359` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `camera` - **Archetypes:** status(poll) · runtimeState · deviceConfig(derived-form) - **Provider interface:** `IRecordingOnboardProvider` - **runtimeState:** `RecordingOnboardStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `recordingOnboard.getStatus` | query | protected | `{ deviceId: number }` | `RecordingOnboardStatusSchema` | | getOptions | `recordingOnboard.getOptions` | query | protected | `{ deviceId: number }` | `RecordingOnboardOptionsSchema` | | setSettings | `recordingOnboard.setSettings` | mutation | admin | `{ deviceId: number; settings: RecordingOnboardPatchSchema }` | `void` | ### `recording-signal` → `recordingSignal.*` - **Source:** `packages/types/src/capabilities/recording-signal.cap.ts:53` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `camera` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IRecordingSignalProvider` - **runtimeState:** `RecordingSignalRuntimeStateSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus | `recordingSignal.getStatus` | query | protected | `{ deviceId: number }` | `RecordingSignalStatusSchema` | ### `records` → `records.*` - **Source:** `packages/types/src/capabilities/records.cap.ts:157` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** internal - **Provider interface:** `IRecordsProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | declareKinds | `records.declareKinds` | mutation | admin | `{ kinds: Record = {}; transactFamily?: string; entry?: { title: string; nameField: string; fields: Record } }> }` | `{ kinds: Record }` | | get | `records.get` | query | admin | `{ kind: string; id: string }` | `RecordViewSchema \| null` | | getMany | `records.getMany` | query | admin | `{ kind: string; ids: string[] }` | `RecordViewSchema[]` | | secretRefs | `records.secretRefs` | query | admin | `{ kind: string; ids: string[] }` | `RecordSecretRefsSchema` | | put | `records.put` | mutation | admin | `{ kind: string; record: RecordInputSchema; ifRev?: number }` | `{ rev: number; releasedRefs: string[] }` | | putMany | `records.putMany` | mutation | admin | `{ kind: string; records: RecordInputSchema[] }` | `{ count: number; releasedRefs: string[] }` | | patch | `records.patch` | mutation | admin | `{ kind: string; id: string; data: RecordBodySchema; at?: number \| null; expiresAt?: number \| null; ifRev?: number }` | `{ rev: number; releasedRefs: string[] }` | | delete | `records.delete` | mutation | admin | `{ kind: string; id: string }` | `{ deleted: boolean; secretRefs: string[] }` | | deleteMany | `records.deleteMany` | mutation | admin | `{ kind: string; ids: string[] }` | `{ deleted: number; secretRefs: string[] }` | | query | `records.query` | query | admin | `RecordQueryInputSchema` | `RecordQueryResultSchema` | | count | `records.count` | query | admin | `{ kind: string; deviceId?: number; atFrom?: number; atTo?: number; where?: RecordWhereSchema }` | `{ count: number }` | | histogram | `records.histogram` | query | admin | `{ kind: string; deviceId?: number; from: number; to: number; bucketMs: number }` | `{ buckets: ({ bucketStart: number; count: number })[] }` | | aggregate | `records.aggregate` | query | admin | `{ kind: string; op: "sum" \| "min" \| "max" \| "count"; field?: string; groupBy?: string; where?: RecordWhereSchema }` | `{ rows: ({ group: string \| number \| null; value: number \| null })[] }` | | deleteWhere | `records.deleteWhere` | mutation | admin | `{ kind: string; deviceId?: number; atBefore?: number; where?: RecordWhereSchema }` | `{ deleted: number; secretRefs: string[] }` | | transact | `records.transact` | mutation | admin | `{ ops: RecordTransactOpSchema[] }` | `{ results: ({ rev: number \| null; deleted: boolean })[]; releasedRefs: string[]; secretRefs: string[] }` | | deleteDevice | `records.deleteDevice` | mutation | admin | `{ deviceId: number; kinds?: string[] }` | `{ deleted: Record; secretRefs: string[] }` | | allocateId | `records.allocateId` | mutation | admin | `{ kind: string }` | `{ id: number }` | ### `remote` → `remote.*` - **Source:** `packages/types/src/capabilities/remote.cap.ts:149` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `IRemoteProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getConfig | `remote.getConfig` | query | admin | `{ deviceId: number }` | `{ layoutTemplateId: string \| null; defaultTransmitterId?: number \| null = null; bindings: Record; argUnits?: Record } }>; customButtons: ({ key: string; name: string })[]; sources?: ({ id: string; name: string; kind: "digits"; number: string } \| { id: string; name: string; kind: "sequence"; steps: string[] } \| { id: string; name: string; kind: "ir"; transmitterId?: number; payload: { kind: "raw"; timings: number[]; settings?: { carrierHz?: number; dutyCyclePercent?: number; repeat?: number; repeatDelayMs?: number } } \| { kind: "pronto"; code: string } \| { kind: "native"; format: "tuya"; code: string } })[] = []; stepDelayMs?: number = 500; refusedSources?: ({ index: number; id: string \| null; name: string \| null; reason: string })[] }` | | setConfig | `remote.setConfig` | mutation | admin | `{ deviceId: number; config: { layoutTemplateId: string \| null; defaultTransmitterId?: number \| null = null; bindings: Record; argUnits?: Record } }>; customButtons: ({ key: string; name: string })[]; sources?: ({ id: string; name: string; kind: "digits"; number: string } \| { id: string; name: string; kind: "sequence"; steps: string[] } \| { id: string; name: string; kind: "ir"; transmitterId?: number; payload: { kind: "raw"; timings: number[]; settings?: {…} } \| { kind: "pronto"; code: string } \| { kind: "native"; format: "tuya"; code: string } })[] = []; stepDelayMs?: number = 500; refusedSources?: ({ index: number; id: string \| null; name: string \| null; reason: string })[] } }` | `RemoteSetConfigResultSchema` | | listCommands | `remote.listCommands` | query | protected | `{ deviceId: number }` | `RemoteCommandListSchema` | | sendCommand | `remote.sendCommand` | mutation | protected | `{ deviceId: number; role: string; repeat?: number = 1 }` | `RemoteSendResultSchema` | | getAssumedStatus | `remote.getAssumedStatus` | query | protected | `{ deviceId: number }` | `MediaPlayerStatusSchema \| null` | | sendMediaCommand | `remote.sendMediaCommand` | mutation | protected | `{ deviceId: number; command: RemoteMediaCommandSchema; muted?: boolean; source?: string; mediaType?: string; mediaId?: string; repeat?: number = 1 }` | `RemoteMediaCommandResultSchema` | ### `remote-layout-components` → `remoteLayoutComponents.*` - **Source:** `packages/types/src/capabilities/remote-layout-components.cap.ts:16` - **Meta:** scope: `system` · mode: `collection` · mount: `collection` - **Archetypes:** — - **Provider interface:** `IRemoteLayoutComponentsProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listComponents | `remoteLayoutComponents.listComponents` | query | protected | `{}` | `({ id: string; name: string; nameI18n?: { en: string; it: string }; icon: string; category: "power" \| "navigation" \| "volume" \| "numbers" \| "media" \| "colour" \| "apps" \| "layout"; size: { rows: number; cols: number }; group: { frame: "none" \| "panel" \| "divider" \| "dpad" \| "rocker-v" \| "rocker-h" \| "keypad"; title?: string } \| null; buttons: ({ idSuffix: string; row: number; col: number; rowSpan: number; colSpan: number; role: string; icon?: string; label?: string; shape?: "rect" \| "rounded" \| "round" \| "pill"; tone?: "neutral" \| "accent" \| "danger" \| "red" \| "green" \| "yellow" \| "blue"; showLegend?: boolean })[] })[]` | ### `running-state` → `runningState.*` - **Source:** `packages/types/src/capabilities/running-state.cap.ts:114` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `camera, light, siren, switch, sensor, climate, button, event-emitter, update, generic, notifier, script, automation, lock, cover, valve, humidifier, water-heater, fan, media-player, alarm-panel, control, presence, weather, weather-station, vacuum, lawn-mower, container, image, pet-feeder, pet-fountain, dishwasher, washer, dryer, gateway, heat-pump, energy-system` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IRunningStateProvider` - **runtimeState:** `RunningStateStatusSchema` - **Events:** `onStarted` → `{ deviceId: number; since: number \| null; phase: string \| null }` · `onFinished` → `{ deviceId: number; since: number \| null; phase: string \| null }` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `runningState.getStatus` | query | protected | `{ deviceId: number }` | `RunningStateStatusSchema` | ### `scene-monitor` → `sceneMonitor.*` - **Source:** `packages/types/src/capabilities/scene-monitor.cap.ts:301` - **Meta:** scope: `device` · mode: `singleton` · mount: `device-scoped` · deviceTypes: `camera` - **Archetypes:** status(push) · runtimeState · wrapper(defaultActive) - **Provider interface:** `ISceneMonitorProvider` - **runtimeState:** `SceneMonitorStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `sceneMonitor.getStatus` | query | protected | `{ deviceId: number }` | `SceneMonitorStatusSchema` | | listScenes | `sceneMonitor.listScenes` | query | protected | `{ deviceId: number }` | `SceneMonitorStatusSchema` | | listScenesBatch | `sceneMonitor.listScenesBatch` | query | protected | `{ deviceIds: number[] }` | `SceneMonitorStatusForDeviceSchema[]` | | createScene | `sceneMonitor.createScene` | mutation | admin | `{ deviceId: number; label: string; roi: MaskRectShapeSchema; check: SceneCheckSchema; triggerMode?: "periodic" \| "on-motion" \| "both"; checkIntervalSec?: number }` | `SceneMonitorSchema` | | updateScene | `sceneMonitor.updateScene` | mutation | admin | `{ deviceId: number; monitorId: string; patch: { label?: string; roi?: MaskRectShapeSchema; enabled?: boolean; triggerMode?: "periodic" \| "on-motion" \| "both"; checkIntervalSec?: number; check?: SceneCheckSchema; emit?: "latched" \| "live"; quietSeconds?: number; minObservationSpacingSec?: number; anchorThreshold?: number; autoRestore?: boolean; onUncoveredCondition?: SceneUncoveredPolicySchema; confirm?: SceneConfirmSchema \| null } }` | `void` | | deleteScene | `sceneMonitor.deleteScene` | mutation | admin | `{ deviceId: number; monitorId: string }` | `void` | | captureReference | `sceneMonitor.captureReference` | mutation | admin | `{ deviceId: number; monitorId: string; stateId?: string; label?: string; condition?: string }` | `{ stateId: string; referenceCount: number }` | | deleteReference | `sceneMonitor.deleteReference` | mutation | admin | `{ deviceId: number; monitorId: string; stateId: string; index: number }` | `void` | | recheckNow | `sceneMonitor.recheckNow` | mutation | admin | `{ deviceId: number; monitorId: string }` | `void` | | resetScene | `sceneMonitor.resetScene` | mutation | admin | `{ deviceId: number; monitorId: string; recapture?: boolean }` | `void` | ### `schedulers` → `schedulers.*` - **Source:** `packages/types/src/capabilities/schedulers.cap.ts:25` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `ISchedulersProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | list | `schedulers.list` | query | admin | `{}` | `({ name: string; enabled?: boolean = true; activeWhen?: { kind: "all"; children: ({ kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number }; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: ({ path: string; equals: string \| number \| boolean })[] } \| { kind: "schedule"; id?: string; at?: { kind: "clock"; hh: number; mm: number } \| { kind: "sun"; event: "sunrise" \| "sunset" \| "dawn" \| "dusk"; offsetMin: number } \| { kind: "date"; local: string }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| { value: number; unit: string }; unit?: string; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "stationary-present"; deviceId: number; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "time-is"; between?: { from: {…} \| {…} \| {…}; to: {…} \| {…} \| {…} }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] })[] } \| { kind: "any"; children: ({ kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number }; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: ({ path: string; equals: string \| number \| boolean })[] } \| { kind: "schedule"; id?: string; at?: { kind: "clock"; hh: number; mm: number } \| { kind: "sun"; event: "sunrise" \| "sunset" \| "dawn" \| "dusk"; offsetMin: number } \| { kind: "date"; local: string }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| { value: number; unit: string }; unit?: string; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "stationary-present"; deviceId: number; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "time-is"; between?: { from: {…} \| {…} \| {…}; to: {…} \| {…} \| {…} }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] })[] } \| { kind: "not"; child: { kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number }; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: ({ path: string; equals: string \| number \| boolean })[] } \| { kind: "schedule"; id?: string; at?: { kind: "clock"; hh: number; mm: number } \| { kind: "sun"; event: "sunrise" \| "sunset" \| "dawn" \| "dusk"; offsetMin: number } \| { kind: "date"; local: string }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| { value: number; unit: string }; unit?: string; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "stationary-present"; deviceId: number; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "time-is"; between?: { from: {…} \| {…} \| {…}; to: {…} \| {…} \| {…} }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] } } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number }; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: ({ path: string; equals: string \| number \| boolean })[] } \| { kind: "schedule"; id?: string; at?: { kind: "clock"; hh: number; mm: number } \| { kind: "sun"; event: "sunrise" \| "sunset" \| "dawn" \| "dusk"; offsetMin: number } \| { kind: "date"; local: string }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({ macro: "animal"; label?: { kind: "sub-class"; className: string } } \| { macro: "person"; label?: { kind: "identity"; identityId: string; name: string } } \| { macro: "vehicle"; label?: { kind: "sub-class"; className: string } \| { kind: "plate"; text: string } } \| { macro: "package"; label?: { kind: "sub-class"; className: string } } \| { macro: "other"; className: string })[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({ macro: "animal"; label?: { kind: "sub-class"; className: string } } \| { macro: "person"; label?: { kind: "identity"; identityId: string; name: string } } \| { macro: "vehicle"; label?: { kind: "sub-class"; className: string } \| { kind: "plate"; text: string } } \| { macro: "package"; label?: { kind: "sub-class"; className: string } } \| { macro: "other"; className: string })[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| { value: number; unit: string }; unit?: string; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "stationary-present"; deviceId: number; subjects?: ({ macro: "animal"; label?: { kind: "sub-class"; className: string } } \| { macro: "person"; label?: { kind: "identity"; identityId: string; name: string } } \| { macro: "vehicle"; label?: { kind: "sub-class"; className: string } \| { kind: "plate"; text: string } } \| { macro: "package"; label?: { kind: "sub-class"; className: string } } \| { macro: "other"; className: string })[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "time-is"; between?: { from: { kind: "clock"; hh: number; mm: number } \| { kind: "sun"; event: "sunrise" \| "sunset" \| "dawn" \| "dusk"; offsetMin: number } \| { kind: "date"; local: string }; to: { kind: "clock"; hh: number; mm: number } \| { kind: "sun"; event: "sunrise" \| "sunset" \| "dawn" \| "dusk"; offsetMin: number } \| { kind: "date"; local: string } }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; priority?: number = 0; maxLateMs?: number = 600000; profiles: ({ id: string; name: string; enabled?: boolean = true; activeWhen?: { kind: "all"; children: ({ kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] })[] } \| { kind: "any"; children: ({ kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] })[] } \| { kind: "not"; child: { kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] } } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number }; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: ({ path: string; equals: string \| number \| boolean })[] } \| { kind: "schedule"; id?: string; at?: { kind: "clock"; hh: number; mm: number } \| { kind: "sun"; event: "sunrise" \| "sunset" \| "dawn" \| "dusk"; offsetMin: number } \| { kind: "date"; local: string }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| { value: number; unit: string }; unit?: string; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "stationary-present"; deviceId: number; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "time-is"; between?: { from: {…} \| {…} \| {…}; to: {…} \| {…} \| {…} }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; days: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; points: ({ id: string; at: { kind: "clock"; hh: number; mm: number } \| { kind: "sun"; event: "sunrise" \| "sunset" \| "dawn" \| "dusk"; offsetMin: number } \| { kind: "date"; local: string }; mode: "edge" \| "hold" \| "release"; steps?: ({ kind: "wait"; seconds: number; if?: {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…}; else?: ({…} \| {…})[] } \| { kind: "command"; target: {…} \| {…} \| {…}; actionId: string; args?: Record; argUnits?: Record; if?: {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…}; else?: ({…} \| {…})[] })[] = []; conditions?: { kind: "all"; children: ({…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…})[] } \| { kind: "any"; children: ({…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…})[] } \| { kind: "not"; child: {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; override?: { mode: "respect" } \| { mode: "reassert"; graceMs: number }; maxHoldAttempts?: number })[] })[]; tags?: string[]; id: string; createdAt: number; updatedAt: number })[]` | | get | `schedulers.get` | query | admin | `{ schedulerId: string }` | `{ scheduler: { name: string; enabled?: boolean = true; activeWhen?: { kind: "all"; children: ({ kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] })[] } \| { kind: "any"; children: ({ kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] })[] } \| { kind: "not"; child: { kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] } } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number }; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: ({ path: string; equals: string \| number \| boolean })[] } \| { kind: "schedule"; id?: string; at?: { kind: "clock"; hh: number; mm: number } \| { kind: "sun"; event: "sunrise" \| "sunset" \| "dawn" \| "dusk"; offsetMin: number } \| { kind: "date"; local: string }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| { value: number; unit: string }; unit?: string; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "stationary-present"; deviceId: number; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "time-is"; between?: { from: {…} \| {…} \| {…}; to: {…} \| {…} \| {…} }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; priority?: number = 0; maxLateMs?: number = 600000; profiles: ({ id: string; name: string; enabled?: boolean = true; activeWhen?: { kind: "all"; children: ({…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…})[] } \| { kind: "any"; children: ({…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…})[] } \| { kind: "not"; child: {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; days: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; points: ({ id: string; at: {…} \| {…} \| {…}; mode: "edge" \| "hold" \| "release"; steps?: ({…} \| {…})[] = []; conditions?: {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…}; override?: {…} \| {…}; maxHoldAttempts?: number })[] })[]; tags?: string[]; id: string; createdAt: number; updatedAt: number } \| null }` | | create | `schedulers.create` | mutation | admin | `{ scheduler: { name: string; enabled?: boolean = true; activeWhen?: { kind: "all"; children: ({ kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] })[] } \| { kind: "any"; children: ({ kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] })[] } \| { kind: "not"; child: { kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] } } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number }; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: ({ path: string; equals: string \| number \| boolean })[] } \| { kind: "schedule"; id?: string; at?: { kind: "clock"; hh: number; mm: number } \| { kind: "sun"; event: "sunrise" \| "sunset" \| "dawn" \| "dusk"; offsetMin: number } \| { kind: "date"; local: string }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| { value: number; unit: string }; unit?: string; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "stationary-present"; deviceId: number; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "time-is"; between?: { from: {…} \| {…} \| {…}; to: {…} \| {…} \| {…} }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; priority?: number = 0; maxLateMs?: number = 600000; profiles: ({ id: string; name: string; enabled?: boolean = true; activeWhen?: { kind: "all"; children: ({…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…})[] } \| { kind: "any"; children: ({…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…})[] } \| { kind: "not"; child: {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; days: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; points: ({ id: string; at: {…} \| {…} \| {…}; mode: "edge" \| "hold" \| "release"; steps?: ({…} \| {…})[] = []; conditions?: {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…}; override?: {…} \| {…}; maxHoldAttempts?: number })[] })[]; tags?: string[] } }` | `{ scheduler: { name: string; enabled?: boolean = true; activeWhen?: { kind: "all"; children: ({ kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] })[] } \| { kind: "any"; children: ({ kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] })[] } \| { kind: "not"; child: { kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] } } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number }; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: ({ path: string; equals: string \| number \| boolean })[] } \| { kind: "schedule"; id?: string; at?: { kind: "clock"; hh: number; mm: number } \| { kind: "sun"; event: "sunrise" \| "sunset" \| "dawn" \| "dusk"; offsetMin: number } \| { kind: "date"; local: string }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| { value: number; unit: string }; unit?: string; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "stationary-present"; deviceId: number; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "time-is"; between?: { from: {…} \| {…} \| {…}; to: {…} \| {…} \| {…} }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; priority?: number = 0; maxLateMs?: number = 600000; profiles: ({ id: string; name: string; enabled?: boolean = true; activeWhen?: { kind: "all"; children: ({…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…})[] } \| { kind: "any"; children: ({…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…})[] } \| { kind: "not"; child: {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; days: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; points: ({ id: string; at: {…} \| {…} \| {…}; mode: "edge" \| "hold" \| "release"; steps?: ({…} \| {…})[] = []; conditions?: {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…}; override?: {…} \| {…}; maxHoldAttempts?: number })[] })[]; tags?: string[]; id: string; createdAt: number; updatedAt: number } }` | | update | `schedulers.update` | mutation | admin | `{ schedulerId: string; scheduler: { name: string; enabled?: boolean = true; activeWhen?: { kind: "all"; children: ({ kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] })[] } \| { kind: "any"; children: ({ kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] })[] } \| { kind: "not"; child: { kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] } } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number }; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: ({ path: string; equals: string \| number \| boolean })[] } \| { kind: "schedule"; id?: string; at?: { kind: "clock"; hh: number; mm: number } \| { kind: "sun"; event: "sunrise" \| "sunset" \| "dawn" \| "dusk"; offsetMin: number } \| { kind: "date"; local: string }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| { value: number; unit: string }; unit?: string; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "stationary-present"; deviceId: number; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "time-is"; between?: { from: {…} \| {…} \| {…}; to: {…} \| {…} \| {…} }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; priority?: number = 0; maxLateMs?: number = 600000; profiles: ({ id: string; name: string; enabled?: boolean = true; activeWhen?: { kind: "all"; children: ({…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…})[] } \| { kind: "any"; children: ({…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…})[] } \| { kind: "not"; child: {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; days: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; points: ({ id: string; at: {…} \| {…} \| {…}; mode: "edge" \| "hold" \| "release"; steps?: ({…} \| {…})[] = []; conditions?: {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…}; override?: {…} \| {…}; maxHoldAttempts?: number })[] })[]; tags?: string[] } }` | `{ scheduler: { name: string; enabled?: boolean = true; activeWhen?: { kind: "all"; children: ({ kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] })[] } \| { kind: "any"; children: ({ kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] })[] } \| { kind: "not"; child: { kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] } } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number }; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: ({ path: string; equals: string \| number \| boolean })[] } \| { kind: "schedule"; id?: string; at?: { kind: "clock"; hh: number; mm: number } \| { kind: "sun"; event: "sunrise" \| "sunset" \| "dawn" \| "dusk"; offsetMin: number } \| { kind: "date"; local: string }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| { value: number; unit: string }; unit?: string; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "stationary-present"; deviceId: number; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "time-is"; between?: { from: {…} \| {…} \| {…}; to: {…} \| {…} \| {…} }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; priority?: number = 0; maxLateMs?: number = 600000; profiles: ({ id: string; name: string; enabled?: boolean = true; activeWhen?: { kind: "all"; children: ({…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…})[] } \| { kind: "any"; children: ({…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…})[] } \| { kind: "not"; child: {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; days: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; points: ({ id: string; at: {…} \| {…} \| {…}; mode: "edge" \| "hold" \| "release"; steps?: ({…} \| {…})[] = []; conditions?: {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…}; override?: {…} \| {…}; maxHoldAttempts?: number })[] })[]; tags?: string[]; id: string; createdAt: number; updatedAt: number } }` | | delete | `schedulers.delete` | mutation | admin | `{ schedulerId: string }` | `void` | | setEnabled | `schedulers.setEnabled` | mutation | admin | `{ schedulerId: string; profileId?: string; enabled: boolean }` | `{ scheduler: { name: string; enabled?: boolean = true; activeWhen?: { kind: "all"; children: ({ kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] })[] } \| { kind: "any"; children: ({ kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] })[] } \| { kind: "not"; child: { kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] } } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number }; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: ({ path: string; equals: string \| number \| boolean })[] } \| { kind: "schedule"; id?: string; at?: { kind: "clock"; hh: number; mm: number } \| { kind: "sun"; event: "sunrise" \| "sunset" \| "dawn" \| "dusk"; offsetMin: number } \| { kind: "date"; local: string }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| { value: number; unit: string }; unit?: string; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "stationary-present"; deviceId: number; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "time-is"; between?: { from: {…} \| {…} \| {…}; to: {…} \| {…} \| {…} }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; priority?: number = 0; maxLateMs?: number = 600000; profiles: ({ id: string; name: string; enabled?: boolean = true; activeWhen?: { kind: "all"; children: ({…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…})[] } \| { kind: "any"; children: ({…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…})[] } \| { kind: "not"; child: {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; days: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; points: ({ id: string; at: {…} \| {…} \| {…}; mode: "edge" \| "hold" \| "release"; steps?: ({…} \| {…})[] = []; conditions?: {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…}; override?: {…} \| {…}; maxHoldAttempts?: number })[] })[]; tags?: string[]; id: string; createdAt: number; updatedAt: number } }` | | preview | `schedulers.preview` | query | admin | `{ schedulerId: string; date?: string }` | `{ schedulerId: string; date: string; timeZone: string; idleReason: string \| null; profileId: string \| null; points: ({ pointId: string; mode: "edge" \| "hold" \| "release"; at: number \| null; until: number \| null; stepCount: number })[] }` | | conflicts | `schedulers.conflicts` | query | admin | `{ scheduler: { name: string; enabled?: boolean = true; activeWhen?: { kind: "all"; children: ({ kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] })[] } \| { kind: "any"; children: ({ kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] })[] } \| { kind: "not"; child: { kind: "all"; children: self[] } \| { kind: "any"; children: self[] } \| { kind: "not"; child: self } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] } } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number }; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: ({ path: string; equals: string \| number \| boolean })[] } \| { kind: "schedule"; id?: string; at?: { kind: "clock"; hh: number; mm: number } \| { kind: "sun"; event: "sunrise" \| "sunset" \| "dawn" \| "dusk"; offsetMin: number } \| { kind: "date"; local: string }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| { value: number; unit: string }; unit?: string; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "stationary-present"; deviceId: number; subjects?: ({ macro: "animal"; label?: {…} } \| { macro: "person"; label?: {…} } \| { macro: "vehicle"; label?: {…} \| {…} } \| { macro: "package"; label?: {…} } \| { macro: "other"; className: string })[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: { ms: number; mode: "held" \| "stable"; tolerance?: number } } \| { kind: "time-is"; between?: { from: {…} \| {…} \| {…}; to: {…} \| {…} \| {…} }; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; priority?: number = 0; maxLateMs?: number = 600000; profiles: ({ id: string; name: string; enabled?: boolean = true; activeWhen?: { kind: "all"; children: ({…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…})[] } \| { kind: "any"; children: ({…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…})[] } \| { kind: "not"; child: {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} } \| { kind: "device-becomes"; id?: string; deviceId: number; cap: string; fieldPath: string; becomes?: string \| number \| boolean; operator?: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "between" \| "outside"; value?: number \| string \| boolean \| number[]; for?: {…}; edge?: boolean; forMs?: number; debounceMs?: number } \| { kind: "device-event"; id?: string; category: string; deviceId?: number } \| { kind: "device-fired"; id?: string; deviceId: number; eventIds?: string[]; sourceIds?: string[]; kinds?: EventVocabularyKindSchema[]; match?: {…}[] } \| { kind: "schedule"; id?: string; at?: {…} \| {…} \| {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; cron?: string } \| { kind: "manual"; id?: string } \| { kind: "interval"; id?: string; minutes: number } \| { kind: "detection"; id?: string; subjects: ({…} \| {…} \| {…} \| {…} \| {…})[]; deviceIds: number[]; zones?: string[]; minScore?: number } \| { kind: "stationary"; id?: string; deviceIds: number[]; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; phase: "appeared" \| "departed" } \| { kind: "device-is"; deviceId: number; cap: string; fieldPath: string; operator: "eq" \| "ne" \| "gt" \| "gte" \| "lt" \| "lte" \| "contains" \| "in"; value: string \| number \| boolean \| (string \| number)[] \| {…}; unit?: string; for?: {…} } \| { kind: "stationary-present"; deviceId: number; subjects?: ({…} \| {…} \| {…} \| {…} \| {…})[]; zones?: string[]; minCount?: number } \| { kind: "expression"; expr: string; bindings: Record; for?: {…} } \| { kind: "time-is"; between?: {…}; days?: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[] } \| { kind: "triggered-by"; leafIds: string[] }; days: ("mon" \| "tue" \| "wed" \| "thu" \| "fri" \| "sat" \| "sun")[]; points: ({ id: string; at: {…} \| {…} \| {…}; mode: "edge" \| "hold" \| "release"; steps?: ({…} \| {…})[] = []; conditions?: {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…} \| {…}; override?: {…} \| {…}; maxHoldAttempts?: number })[] })[]; tags?: string[] }; schedulerId?: string }` | `{ conflicts: ({ deviceId: number; cap: string; field: string; mine: { profileId: string; pointId: string; value: string \| number \| boolean; priority: number }; other: { schedulerId: string; schedulerName: string; profileId: string; pointId: string; value: string \| number \| boolean; priority: number }; fromMinute: number; toMinute: number; winner: "mine" \| "other" \| "tie" })[] }` | | getStatus | `schedulers.getStatus` | query | admin | `{}` | `({ schedulerId: string; profileId: string \| null; hold: { pointId: string; until: number; suspendedInactive: boolean; targets: ({ deviceId: number; cap: string; field: string; status: "pending" \| "held" \| "suspended-manual" \| "gave-up" \| "overridden"; attempts: number })[] } \| null })[]` | | getTraces | `schedulers.getTraces` | query | admin | `{ schedulerId: string }` | `{ traces: ({ runId: string; startedAt: number; endedAt: number; trigger: { kind: string; path?: string; outcome: "pass" \| "fail"; reason: string; vars: Record; hold?: { phase: "pending" \| "cancelled" \| "fired" \| "reseeded"; ms: number; mode: "held" \| "stable"; since?: number; deadline?: number } }; conditions: ({ path: string; kind: "all" \| "any" \| "not" \| "condition" \| "device-is" \| "expression" \| "stationary-present" \| "time-is" \| "triggered-by" \| "device-becomes" \| "device-event" \| "device-fired" \| "schedule" \| "interval" \| "manual" \| "detection" \| "stationary"; outcome: "pass" \| "fail" \| "not-evaluated"; reason: string; deviceId?: number; cap?: string; fieldPath?: string; operator?: string; expected?: string \| number \| boolean \| null \| (string \| number)[]; observed?: string \| number \| boolean \| null \| (string \| number)[] })[]; verdict?: { mode: { mode: "single" } \| { mode: "restart" } \| { mode: "queued"; max: number } \| { mode: "parallel"; max: number } \| { mode: "cooldown"; minutes: number }; decision: "run" \| "queued" \| "restart" \| "drop" \| "cooldown" \| "bypass"; reason: string }; steps: ({ path: string; kind: string; cap?: string; method?: string; actionId?: string; deviceId?: number; devices?: ({ deviceId: number; outcome: "ok" \| "error"; message?: string })[]; startedAt?: number; endedAt?: number; args?: Record; templates?: string[]; condition?: "true" \| "false" \| "unknown"; conditionReason?: string; outcome: "ok" \| "error" \| "not-run" \| "empty" \| "skipped" \| "failed-continued" \| "timed-out"; message?: string; else?: ({ path: string; kind: string; cap?: string; method?: string; actionId?: string; deviceId?: number; devices?: {…}[]; startedAt?: number; endedAt?: number; args?: Record; templates?: string[]; condition?: "true" \| "false" \| "unknown"; conditionReason?: string; outcome: "ok" \| "error" \| "not-run" \| "empty" \| "skipped" \| "failed-continued" \| "timed-out"; message?: string })[]; branch?: string; branchChecks?: ({ condition: "true" \| "false" \| "unknown"; conditionReason?: string })[]; iterations?: number; steps?: ({ path: string; kind: string; cap?: string; method?: string; actionId?: string; deviceId?: number; devices?: {…}[]; startedAt?: number; endedAt?: number; args?: Record; templates?: string[]; condition?: "true" \| "false" \| "unknown"; conditionReason?: string; outcome: "ok" \| "error" \| "not-run" \| "empty" \| "skipped" \| "failed-continued" \| "timed-out"; message?: string; branch?: string; branchChecks?: {…}[]; iterations?: number; steps?: {…}[] })[] })[]; outcome: "ran" \| "skipped-trigger" \| "skipped-conditions" \| "skipped-cooldown" \| "skipped-overlap" \| "failed" \| "aborted"; repeat: number; lastAt: number; scheduler?: "done" \| "missed" \| "inactive" \| "condition-false" \| "failed" \| "held" \| "gave-up" \| "overridden" \| "suspended-manual" })[] }` | ### `script-runner` → `scriptRunner.*` - **Source:** `packages/types/src/capabilities/script-runner.cap.ts:33` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `script` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IScriptRunnerProvider` - **runtimeState:** `ScriptRunnerStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `scriptRunner.getStatus` | query | protected | `{ deviceId: number }` | `ScriptRunnerStatusSchema` | | run | `scriptRunner.run` | mutation | admin | `{ deviceId: number; variables?: Record }` | `void` | | stop | `scriptRunner.stop` | mutation | admin | `{ deviceId: number }` | `void` | ### `server-management` → `serverManagement.*` - **Source:** `packages/types/src/capabilities/server-management.cap.ts:480` - **Meta:** scope: `system` · mode: `singleton` · mount: `server-provided` - **Archetypes:** — - **Provider interface:** `IServerManagementProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getServerPackageStatus | `serverManagement.getServerPackageStatus` | query | admin | `void` | `ServerPackageStatusSchema` | | checkServerUpdate | `serverManagement.checkServerUpdate` | mutation | admin | `void` | `ServerUpdateCheckResultSchema` | | applyServerUpdate | `serverManagement.applyServerUpdate` | mutation | admin | `{ version?: string; acknowledgeRefusals?: boolean }` | `ServerUpdateActionResultSchema` | | installDesktopUpdate | `serverManagement.installDesktopUpdate` | mutation | admin | `void` | `InstallDesktopUpdateResultSchema` | | rollbackServerUpdate | `serverManagement.rollbackServerUpdate` | mutation | admin | `void` | `ServerUpdateActionResultSchema` | | restartServer | `serverManagement.restartServer` | mutation | admin | `void` | `ServerUpdateActionResultSchema` | | getLaunchOverrides | `serverManagement.getLaunchOverrides` | query | admin | `void` | `{ heapMb: number \| null; rssBudgetMb: number \| null }` | | setLaunchOverrides | `serverManagement.setLaunchOverrides` | mutation | admin | `{ heapMb: number \| null; rssBudgetMb?: number \| null }` | `{ heapMb: number \| null; rssBudgetMb: number \| null; restartRequired: boolean }` | ### `settings-store` → `settingsStore.*` - **Source:** `packages/types/src/capabilities/settings-store.cap.ts:240` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `ISettingsStoreProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | get | `settingsStore.get` | query | admin | `{ namespace?: string; collection: string; key: string }` | `unknown` | | set | `settingsStore.set` | mutation | admin | `{ namespace?: string; collection: string; key: string; value: unknown }` | `void` | | query | `settingsStore.query` | query | admin | `{ namespace?: string; collection: string; filter?: QueryFilterSchema; columns?: string[] }` | `SettingsRecordSchema[]` | | upsert | `settingsStore.upsert` | mutation | admin | `{ namespace?: string; collection: string; conflict: string[]; record: BulkRecordSchema }` | `{ id: string \| number }` | | upsertMany | `settingsStore.upsertMany` | mutation | admin | `{ namespace?: string; collection: string; conflict: string[]; records: BulkRecordSchema[] }` | `{ upserted: number }` | | insert | `settingsStore.insert` | mutation | admin | `{ namespace?: string; collection: string; record: { id?: string; data: Record } }` | `{ id: string \| number }` | | insertMany | `settingsStore.insertMany` | mutation | admin | `{ namespace?: string; collection: string; records: BulkRecordSchema[] }` | `{ inserted: number }` | | transact | `settingsStore.transact` | mutation | admin | `{ namespace?: string; guard?: { collection: string; key: string; column: string; equals: unknown }; ops: ({ op: "deleteWhere"; collection: string; filter: MutationFilterSchema } \| { op: "insertMany"; collection: string; records: BulkRecordSchema[] } \| { op: "update"; collection: string; id: string; data: Record } \| { op: "upsertMany"; collection: string; conflict: string[]; records: BulkRecordSchema[] })[] }` | `{ applied: boolean; current?: unknown }` | | update | `settingsStore.update` | mutation | admin | `{ namespace?: string; collection: string; id: string; data: Record }` | `void` | | delete | `settingsStore.delete` | mutation | admin | `{ namespace?: string; collection: string; key: string }` | `void` | | deleteWhere | `settingsStore.deleteWhere` | mutation | admin | `{ namespace?: string; collection: string; filter: MutationFilterSchema }` | `{ deleted: number }` | | updateWhere | `settingsStore.updateWhere` | mutation | admin | `{ namespace?: string; collection: string; filter: MutationFilterSchema; data: Record }` | `{ updated: number }` | | count | `settingsStore.count` | query | admin | `{ namespace?: string; collection: string; filter?: QueryFilterSchema }` | `number` | | aggregate | `settingsStore.aggregate` | query | admin | `{ namespace?: string; collection: string; fields: ({ as: string; field: string; op: "sum" \| "min" \| "max" })[]; filter?: QueryFilterSchema }` | `{ count: number; values: Record }` | | histogram | `settingsStore.histogram` | query | admin | `{ namespace?: string; collection: string; field: string; bucketSize: number; origin: number; filter?: QueryFilterSchema }` | `({ bucket: number; count: number })[]` | | isEmpty | `settingsStore.isEmpty` | query | admin | `{ namespace?: string; collection: string }` | `boolean` | | declareCollection | `settingsStore.declareCollection` | mutation | admin | `DeclareCollectionInputSchema` | `void` | ### `smoke` → `smoke.*` - **Source:** `packages/types/src/capabilities/smoke.cap.ts:23` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `sensor` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `ISmokeProvider` - **runtimeState:** `SmokeStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `smoke.getStatus` | query | protected | `{ deviceId: number }` | `SmokeStatusSchema` | ### `smtp-provider` → `smtpProvider.*` - **Source:** `packages/types/src/capabilities/smtp-provider.cap.ts:77` - **Meta:** scope: `system` · mode: `collection` · mount: `collection` · providerKind: `email` - **Archetypes:** internal - **Provider interface:** `ISmtpProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | sendEmail | `smtpProvider.sendEmail` | mutation | admin | `SendEmailInputSchema` | `SendEmailResultSchema` | | getStatus | `smtpProvider.getStatus` | query | admin | `{ instanceId?: string }` | `SmtpStatusSchema` | ### `snapshot` → `snapshot.*` - **Source:** `packages/types/src/capabilities/snapshot.cap.ts:60` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `camera` - **Archetypes:** status(poll) · exposesDeviceSettings · wrapper(defaultActive) | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `snapshot.getStatus` | query | protected | `{ deviceId: number }` | `{ lastCapturedAt: number \| null; cacheAgeMs: number \| null; lastBytes: number \| null; lastStreamId: string \| null }` | | getDeviceSettingsContribution _(auto)_ | `snapshot.getDeviceSettingsContribution` | query | protected | `{ deviceId: number }` | `{ tabs?: ({ id: string; label: string; icon: string; order?: number })[]; sections: ({ id: string; title: string; description?: string; style?: "card" \| "accordion"; defaultCollapsed?: boolean; columns?: 1 \| 2 \| 3 \| 4; tab?: string; location?: "settings" \| "top-tab" \| "hero"; order?: number; fields: any[] })[] } \| null` | | getDeviceLiveContribution _(auto)_ | `snapshot.getDeviceLiveContribution` | query | protected | `{ deviceId: number }` | `{ tabs?: ({ id: string; label: string; icon: string; order?: number })[]; sections: ({ id: string; title: string; description?: string; style?: "card" \| "accordion"; defaultCollapsed?: boolean; columns?: 1 \| 2 \| 3 \| 4; tab?: string; location?: "settings" \| "top-tab" \| "hero"; order?: number; fields: any[] })[] } \| null` | | applyDeviceSettingsPatch _(auto)_ | `snapshot.applyDeviceSettingsPatch` | mutation | admin | `{ deviceId: number; patch: Record }` | `{ success: true }` | | getSnapshot | `snapshot.getSnapshot` | query | protected | `{ deviceId: number; streamId?: string; force?: boolean }` | `SnapshotImageSchema \| null` | | invalidateCache | `snapshot.invalidateCache` | mutation | admin | `{ deviceId: number }` | `void` | | getSnapshotOverview | `snapshot.getSnapshotOverview` | query | protected | `{ deviceIds: number[] }` | `({ deviceId: number; lastCapturedAt: number \| null; cacheAgeMs: number \| null; etag: string \| null })[]` | | getDebugState | `snapshot.getDebugState` | query | protected | `{ deviceId: number }` | `{ battery: { sleeping: boolean; lastUpdated: number; lastContactAt?: number } \| null; state: { isBattery: boolean; reason: "disabled" \| "offline" \| "sleeping" \| "unreachable" \| "waking" \| null }; frame: { capturedAt: number \| null; ageMs: number \| null }; waking: boolean }` | | getSnapshotLinks | `snapshot.getSnapshotLinks` | query | protected | `{ targets: ({ deviceId: number; width?: number })[] }` | `({ deviceId: number; url: string \| null; capturedAt: number \| null; ageMs: number \| null; expiresAt: number \| null; width: number \| null; neverCaptured: boolean; sleeping: boolean; stateReason: "disabled" \| "offline" \| "sleeping" \| "unreachable" \| "waking" \| null; battery: boolean })[]` | ### `sso-bridge` → `ssoBridge.*` - **Source:** `packages/types/src/capabilities/sso-bridge.cap.ts:105` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** internal - **Provider interface:** `ISsoBridgeProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | signBridgeToken | `ssoBridge.signBridgeToken` | query | admin | `{ claims: SsoBridgeClaimsSchema; ttlSec?: number \| "never" }` | `{ token: string }` | | verifyBridgeToken | `ssoBridge.verifyBridgeToken` | query | admin | `{ token: string }` | `SsoBridgeClaimsSchema \| null` | ### `storage` → `storage.*` - **Source:** `packages/types/src/capabilities/storage.cap.ts:30` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `IStorageCapProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | resolve | `storage.resolve` | query | admin | `{ location: string \| string; relativePath: string }` | `string` | | write | `storage.write` | mutation | admin | `{ location: string \| string; relativePath: string; data: }` | `void` | | read | `storage.read` | query | admin | `{ location: string \| string; relativePath: string }` | `` | | exists | `storage.exists` | query | admin | `{ location: string \| string; relativePath: string }` | `boolean` | | list | `storage.list` | query | admin | `{ location: string \| string; prefix?: string }` | `string[]` | | delete | `storage.delete` | mutation | admin | `{ location: string \| string; relativePath: string }` | `void` | | getAvailableSpace | `storage.getAvailableSpace` | query | protected | `{ location: string \| string }` | `number \| null` | | beginUpload | `storage.beginUpload` | mutation | admin | `{ location: string \| string; relativePath: string; sizeBytes?: number }` | `{ uploadId: string }` | | writeChunk | `storage.writeChunk` | mutation | admin | `{ uploadId: string; offset: number; data: }` | `void` | | finalizeUpload | `storage.finalizeUpload` | mutation | admin | `{ uploadId: string }` | `void` | | abortUpload | `storage.abortUpload` | mutation | admin | `{ uploadId: string }` | `void` | | beginDownload | `storage.beginDownload` | mutation | admin | `{ location: string \| string; relativePath: string }` | `{ downloadId: string; sizeBytes: number }` | | readChunk | `storage.readChunk` | query | admin | `{ downloadId: string; offset: number; length: number }` | `` | | endDownload | `storage.endDownload` | mutation | admin | `{ downloadId: string }` | `void` | | listLocations | `storage.listLocations` | query | protected | `{ type?: string }` | `({ id: string; type: string; displayName: string; providerId: string; config: Record; nodeId?: string; isSystem?: boolean = false; enabled?: boolean; mode?: "active" \| "readonly" \| "drain" \| "disabled"; capacity?: { totalBytes: number; availableBytes: number } \| null; owned?: { bytes: number; measuredAtMs: number }; createdAt: number; updatedAt: number })[]` | | listLocationDeclarations | `storage.listLocationDeclarations` | query | protected | `void` | `({ id: string; displayName: string; description?: string; cardinality: "single" \| "multi"; access?: "local-path" \| "cap-mediated"; defaultsTo?: string; defaultRoot?: "data" \| "media" \| "backup" })[]` | | listDrainProgress | `storage.listDrainProgress` | query | protected | `void` | `({ locationId: string; startedAtMs: number; startBytes: number; bytesRemaining: number; drained: boolean; estimatedEmptyAtMs: number \| null })[]` | ### `storage-admin` → `storageAdmin.*` - **Source:** `packages/types/src/capabilities/storage-admin.cap.ts:106` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** internal - **Provider interface:** `IStorageAdminProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listTables | `storageAdmin.listTables` | query | admin | `{ ownerPrefix?: string }` | `{ tables: StorageTableSchema[] }` | | listKinds | `storageAdmin.listKinds` | query | admin | `{ owner?: string; counts?: boolean }` | `{ kinds: StorageKindSchema[] }` | | readRecords | `storageAdmin.readRecords` | query | admin | `{ kind: string; deviceId?: number; atFrom?: number; atTo?: number; where?: RecordWhereSchema; order?: "at" \| "id"; desc?: boolean; limit?: number = 100; cursor?: string; owner: string }` | `RecordQueryResultSchema` | | staleDataReport | `storageAdmin.staleDataReport` | query | admin | `{}` | `StaleDataReportSchema` | | scanStaleData | `storageAdmin.scanStaleData` | mutation | admin | `{}` | `StaleDataReportSchema` | | dropOrphanedKind | `storageAdmin.dropOrphanedKind` | mutation | admin | `{ owner: string; kind: string }` | `{ deleted: number; secretsReleased: number }` | | unsetStaleSettingsKey | `storageAdmin.unsetStaleSettingsKey` | mutation | admin | `{ addonId: string; key: string }` | `{ removed: boolean; secretsCleared: number }` | ### `storage-evictable` → `storageEvictable.*` - **Source:** `packages/types/src/capabilities/storage-evictable.cap.ts:34` - **Meta:** scope: `system` · mode: `collection` · mount: `collection` - **Archetypes:** internal - **Provider interface:** `IStorageEvictableProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getEvictableUsage | `storageEvictable.getEvictableUsage` | query | admin | `{ locationId: string }` | `{ bytes: number }` | | evict | `storageEvictable.evict` | mutation | admin | `{ locationId: string; targetBytes: number }` | `{ reclaimedBytes: number; exhausted: boolean }` | ### `storage-migration` → `storageMigration.*` - **Source:** `packages/types/src/capabilities/storage-migration.cap.ts:21` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `IStorageMigrationProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | plan | `storageMigration.plan` | query | admin | `{ destinations: { recordings?: string; recordingsLow?: string; eventMedia?: string; backups?: string; galleryMedia?: string }; sources?: { recordings?: string; recordingsLow?: string; eventMedia?: string; backups?: string; galleryMedia?: string }; throttleMbps?: number; mode?: "blocking" \| "nonBlocking" }` | `{ destinations: { recordings?: string; recordingsLow?: string; eventMedia?: string; backups?: string; galleryMedia?: string }; sources?: { recordings?: string; recordingsLow?: string; eventMedia?: string; backups?: string; galleryMedia?: string }; mode: "blocking" \| "nonBlocking"; moves: ({ storageClass: "recordings" \| "recordingsLow" \| "eventMedia" \| "backups" \| "galleryMedia"; fromLocationId: string; toLocationId: string; freezeSource?: boolean })[]; findings: ({ code: "sharesDeviceWithSource" \| "deviceIdentityUnknown" \| "unstampedEventMediaRows" \| "blockingOnly" \| "noMover"; storageClass: "recordings" \| "recordingsLow" \| "eventMedia" \| "backups" \| "galleryMedia"; message: string })[] }` | | start | `storageMigration.start` | mutation | admin | `{ destinations: { recordings?: string; recordingsLow?: string; eventMedia?: string; backups?: string; galleryMedia?: string }; sources?: { recordings?: string; recordingsLow?: string; eventMedia?: string; backups?: string; galleryMedia?: string }; throttleMbps?: number; mode?: "blocking" \| "nonBlocking" }` | `{ jobId: string }` | | status | `storageMigration.status` | query | admin | `{ jobId?: string }` | `{ jobId: string; phase: "planning" \| "sealing" \| "pausing" \| "moving" \| "draining" \| "verifying" \| "repointing" \| "refreshing" \| "resuming" \| "done" \| "failed" \| "cancelled"; mode: "blocking" \| "nonBlocking"; destinations: { recordings?: string; recordingsLow?: string; eventMedia?: string; backups?: string; galleryMedia?: string }; sources?: { recordings?: string; recordingsLow?: string; eventMedia?: string; backups?: string; galleryMedia?: string }; throttleMbps: number; moves: ({ storageClass: "recordings" \| "recordingsLow" \| "eventMedia" \| "backups" \| "galleryMedia"; fromLocationId: string; toLocationId: string; freezeSource?: boolean; moverJobId: string \| null; state: "queued" \| "running" \| "done" \| "failed" \| "cancelled" \| null; error: string \| null; progress: { filesMoved: number; filesTotal: number \| null; bytesMoved: number; rowsReconciled?: number; startedAt: number; observedAt: number } \| null })[]; pauseLeaseId: string \| null; pausedParticipants: ("pipeline" \| "recorder" \| "analytics")[]; repointed: boolean; cancelRequested: boolean; startedAt: number; updatedAt: number; finishedAt: number \| null; error: string \| null } \| null` | | cancel | `storageMigration.cancel` | mutation | admin | `{ jobId: string }` | `{ cancelled: boolean }` | | movers | `storageMigration.movers` | query | admin | `{}` | `({ lane: "footage" \| "media"; job: { jobId: string; state: "queued" \| "running" \| "done" \| "failed" \| "cancelled"; fromLocationId: string; toLocationId: string; deviceId: number \| null; entities: string[]; filesMoved: number; bytesMoved: number; filesTotal: number \| null; rowsReconciled?: number; rowsForgotten?: number; startedAt: number; finishedAt: number \| null; error: string \| null }; migrationJobId: string \| null; observedAt: number })[]` | | moverClearance | `storageMigration.moverClearance` | query | admin | `{ locationIds: string[] }` | `{ clear: boolean; repointLocationId?: string }` | | residue | `storageMigration.residue` | query | admin | `{}` | `({ storageClass: "recordings" \| "recordingsLow" \| "eventMedia" \| "backups" \| "galleryMedia"; fromLocationId: string; toLocationId: string; items: number \| null; bytes: number \| null })[]` | | drain | `storageMigration.drain` | mutation | admin | `{ classes: ("recordings" \| "recordingsLow" \| "eventMedia" \| "backups" \| "galleryMedia")[]; throttleMbps?: number }` | `{ jobId: string }` | | cleanupStart | `storageMigration.cleanupStart` | mutation | admin | `{ includeDebugMedia?: boolean }` | `{ jobId: string }` | | cleanupStatus | `storageMigration.cleanupStatus` | query | admin | `{ jobId?: string }` | `{ jobId: string; phase: "orphans" \| "debug-media" \| "ghost-ledger" \| "done" \| "failed" \| "cancelled"; includeDebugMedia: boolean; orphansReclaimed: number; orphanBytesReclaimed: number; debugMediaReclaimed: number; debugMediaBytesReclaimed: number; ghostsForgotten: number; ghostBytesForgotten: number; detail: string \| null; cancelRequested: boolean; startedAt: number; updatedAt: number; finishedAt: number \| null; error: string \| null } \| null` | | cleanupCancel | `storageMigration.cleanupCancel` | mutation | admin | `{ jobId: string }` | `{ cancelled: boolean }` | | history | `storageMigration.history` | query | admin | `{}` | `({ jobId: string; phase: "planning" \| "sealing" \| "pausing" \| "moving" \| "draining" \| "verifying" \| "repointing" \| "refreshing" \| "resuming" \| "done" \| "failed" \| "cancelled"; mode: "blocking" \| "nonBlocking"; destinations: { recordings?: string; recordingsLow?: string; eventMedia?: string; backups?: string; galleryMedia?: string }; sources?: { recordings?: string; recordingsLow?: string; eventMedia?: string; backups?: string; galleryMedia?: string }; throttleMbps: number; moves: ({ storageClass: "recordings" \| "recordingsLow" \| "eventMedia" \| "backups" \| "galleryMedia"; fromLocationId: string; toLocationId: string; freezeSource?: boolean; moverJobId: string \| null; state: "queued" \| "running" \| "done" \| "failed" \| "cancelled" \| null; error: string \| null; progress: { filesMoved: number; filesTotal: number \| null; bytesMoved: number; rowsReconciled?: number; startedAt: number; observedAt: number } \| null })[]; pauseLeaseId: string \| null; pausedParticipants: ("pipeline" \| "recorder" \| "analytics")[]; repointed: boolean; cancelRequested: boolean; startedAt: number; updatedAt: number; finishedAt: number \| null; error: string \| null })[]` | ### `storage-occupancy` → `storageOccupancy.*` - **Source:** `packages/types/src/capabilities/storage-occupancy.cap.ts:52` - **Meta:** scope: `system` · mode: `collection` · mount: `collection` - **Archetypes:** internal - **Provider interface:** `IStorageOccupancyProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getOccupancy | `storageOccupancy.getOccupancy` | query | admin | `{ locationIds: string[] }` | `StorageOccupancyReportSchema[]` | ### `storage-provider` → `storageProvider.*` - **Source:** `packages/types/src/capabilities/storage-provider.cap.ts:122` - **Meta:** scope: `system` · mode: `collection` · mount: `collection` - **Archetypes:** internal | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getProviderInfo | `storageProvider.getProviderInfo` | query | admin | `void` | `StorageProviderInfoSchema` | | testLocation | `storageProvider.testLocation` | query | admin | `{ config: Record }` | `StorageTestLocationResultSchema` | | resolve | `storageProvider.resolve` | query | admin | `{ location: { id: string; type: string; displayName: string; providerId: string; config: Record; nodeId?: string; isSystem?: boolean = false; enabled?: boolean; mode?: "active" \| "readonly" \| "drain" \| "disabled"; capacity?: { totalBytes: number; availableBytes: number } \| null; owned?: { bytes: number; measuredAtMs: number }; createdAt: number; updatedAt: number }; relativePath: string }` | `string` | | write | `storageProvider.write` | mutation | admin | `{ location: { id: string; type: string; displayName: string; providerId: string; config: Record; nodeId?: string; isSystem?: boolean = false; enabled?: boolean; mode?: "active" \| "readonly" \| "drain" \| "disabled"; capacity?: { totalBytes: number; availableBytes: number } \| null; owned?: { bytes: number; measuredAtMs: number }; createdAt: number; updatedAt: number }; relativePath: string; data: }` | `void` | | read | `storageProvider.read` | query | admin | `{ location: { id: string; type: string; displayName: string; providerId: string; config: Record; nodeId?: string; isSystem?: boolean = false; enabled?: boolean; mode?: "active" \| "readonly" \| "drain" \| "disabled"; capacity?: { totalBytes: number; availableBytes: number } \| null; owned?: { bytes: number; measuredAtMs: number }; createdAt: number; updatedAt: number }; relativePath: string }` | `` | | exists | `storageProvider.exists` | query | admin | `{ location: { id: string; type: string; displayName: string; providerId: string; config: Record; nodeId?: string; isSystem?: boolean = false; enabled?: boolean; mode?: "active" \| "readonly" \| "drain" \| "disabled"; capacity?: { totalBytes: number; availableBytes: number } \| null; owned?: { bytes: number; measuredAtMs: number }; createdAt: number; updatedAt: number }; relativePath: string }` | `boolean` | | list | `storageProvider.list` | query | admin | `{ location: { id: string; type: string; displayName: string; providerId: string; config: Record; nodeId?: string; isSystem?: boolean = false; enabled?: boolean; mode?: "active" \| "readonly" \| "drain" \| "disabled"; capacity?: { totalBytes: number; availableBytes: number } \| null; owned?: { bytes: number; measuredAtMs: number }; createdAt: number; updatedAt: number }; prefix?: string }` | `string[]` | | delete | `storageProvider.delete` | mutation | admin | `{ location: { id: string; type: string; displayName: string; providerId: string; config: Record; nodeId?: string; isSystem?: boolean = false; enabled?: boolean; mode?: "active" \| "readonly" \| "drain" \| "disabled"; capacity?: { totalBytes: number; availableBytes: number } \| null; owned?: { bytes: number; measuredAtMs: number }; createdAt: number; updatedAt: number }; relativePath: string }` | `void` | | getAvailableSpace | `storageProvider.getAvailableSpace` | query | admin | `{ location: { id: string; type: string; displayName: string; providerId: string; config: Record; nodeId?: string; isSystem?: boolean = false; enabled?: boolean; mode?: "active" \| "readonly" \| "drain" \| "disabled"; capacity?: { totalBytes: number; availableBytes: number } \| null; owned?: { bytes: number; measuredAtMs: number }; createdAt: number; updatedAt: number } }` | `number \| null` | | beginUpload | `storageProvider.beginUpload` | mutation | admin | `StorageBeginUploadInputSchema` | `StorageBeginUploadResultSchema` | | writeChunk | `storageProvider.writeChunk` | mutation | admin | `StorageWriteChunkInputSchema` | `void` | | finalizeUpload | `storageProvider.finalizeUpload` | mutation | admin | `StorageFinalizeUploadInputSchema` | `void` | | abortUpload | `storageProvider.abortUpload` | mutation | admin | `StorageAbortUploadInputSchema` | `void` | | beginDownload | `storageProvider.beginDownload` | mutation | admin | `StorageBeginDownloadInputSchema` | `StorageBeginDownloadResultSchema` | | readChunk | `storageProvider.readChunk` | query | admin | `StorageReadChunkInputSchema` | `` | | endDownload | `storageProvider.endDownload` | mutation | admin | `StorageEndDownloadInputSchema` | `void` | ### `stream-broker` → `streamBroker.*` - **Source:** `packages/types/src/capabilities/stream-broker.cap.ts:471` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** exposesDeviceSettings - **Provider interface:** `IStreamBrokerProvider` - **Events:** `onCamStreamDemand` → `{ deviceId: number; camStreamId: string; profile: CamProfileSchema }` · `onCamStreamIdle` → `{ deviceId: number; camStreamId: string }` · `onRequestStreamSourceRefresh` → `{ deviceId: number; camStreamId: string; brokerId: string }` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getDeviceSettingsContribution _(auto)_ | `streamBroker.getDeviceSettingsContribution` | query | protected | `{ deviceId: number }` | `{ tabs?: ({ id: string; label: string; icon: string; order?: number })[]; sections: ({ id: string; title: string; description?: string; style?: "card" \| "accordion"; defaultCollapsed?: boolean; columns?: 1 \| 2 \| 3 \| 4; tab?: string; location?: "settings" \| "top-tab" \| "hero"; order?: number; fields: any[] })[] } \| null` | | getDeviceLiveContribution _(auto)_ | `streamBroker.getDeviceLiveContribution` | query | protected | `{ deviceId: number }` | `{ tabs?: ({ id: string; label: string; icon: string; order?: number })[]; sections: ({ id: string; title: string; description?: string; style?: "card" \| "accordion"; defaultCollapsed?: boolean; columns?: 1 \| 2 \| 3 \| 4; tab?: string; location?: "settings" \| "top-tab" \| "hero"; order?: number; fields: any[] })[] } \| null` | | applyDeviceSettingsPatch _(auto)_ | `streamBroker.applyDeviceSettingsPatch` | mutation | admin | `{ deviceId: number; patch: Record }` | `{ success: true }` | | reportStreamSignal | `streamBroker.reportStreamSignal` | mutation | protected | `{ deviceId: number; code: string; at?: number }` | `{ accepted: boolean; reason: "woke" \| "hold-extended" \| "not-enabled" \| "no-consumer" \| "unknown-code" }` | | publishCameraStream | `streamBroker.publishCameraStream` | mutation | admin | `{ deviceId: number; camStreamId: string; kind: CamStreamKindSchema; url?: string; codec?: string; resolution?: CamStreamResolutionSchema; fps?: number; label?: string; deviceFeatures?: string[]; autoEligible?: boolean; profileHint?: CamProfileSchema; metadata?: Record; sourceCamStreamId?: string; encodeProfile?: { video: { codec: "h264" \| "h265" \| "copy"; profile?: "baseline" \| "main" \| "high"; level?: string; width?: number; height?: number; fps?: number; bitrateKbps?: number; gopFrames?: number; bf?: number; preset?: "ultrafast" \| "superfast" \| "veryfast" \| "faster" \| "fast" \| "medium"; tune?: "zerolatency" \| "film" \| "animation"; singleSlicePerFrame?: boolean }; audio: "passthrough" \| { codec: "opus" \| "aac" \| "pcmu" \| "pcma" \| "copy"; bitrateKbps?: number; sampleRateHz?: number; channels?: 1 \| 2 }; inputArgs?: string[]; outputArgs?: string[] } }` | `{ success: true }` | | retractCameraStream | `streamBroker.retractCameraStream` | mutation | admin | `{ deviceId: number; camStreamId: string }` | `{ success: true }` | | assignProfile | `streamBroker.assignProfile` | mutation | admin | `{ deviceId: number; profile: CamProfileSchema; camStreamId: string }` | `{ success: true }` | | unassignProfile | `streamBroker.unassignProfile` | mutation | admin | `{ deviceId: number; profile: CamProfileSchema }` | `{ success: true }` | | forgetDeviceHardware | `streamBroker.forgetDeviceHardware` | mutation | admin | `{ deviceId: number }` | `{ derivedStreamsDeleted: string[]; assignmentsPurged: boolean; probeSnapshotsDropped: number; rtspTokenRowsDeleted: number }` | | renderPreBufferClip | `streamBroker.renderPreBufferClip` | mutation | admin | `{ deviceId: number; profile?: CamProfileSchema; aroundMs: number; preRollSec?: number = 3; postRollSec?: number = 5; format?: "gif" \| "mp4" = "gif"; maxWidth?: number = 480; fps?: number = 5; speed?: number = 2 }` | `{ base64: string; mime: string; bytes: number; profile: CamProfileSchema; durationMs: number }` | | produceEventMedia | `streamBroker.produceEventMedia` | mutation | admin | `{ deviceId: number; profile?: CamProfileSchema; aroundMs: number; preSeconds?: number = 4; postSeconds?: number = 6; kinds?: EventMediaKindSchema[] = ["mp4"]; gifMaxWidth?: number = 640; gifFps?: number = 12; gifSpeed?: number = 4; speed?: number = 4 }` | `EventMediaProductionSchema` | | fetchEventMedia | `streamBroker.fetchEventMedia` | mutation | admin | `{ handle: string }` | `{ base64: string; mime: string; bytes: number } \| null` | | listAllCameraStreams | `streamBroker.listAllCameraStreams` | query | protected | `void` | `CameraStreamSchema[]` | | listAllProfileSlots | `streamBroker.listAllProfileSlots` | query | protected | `void` | `ProfileSlotSchema[]` | | getBrokerStats | `streamBroker.getBrokerStats` | query | protected | `{ brokerId: string }` | `BrokerStatsSchema` | | probeStream | `streamBroker.probeStream` | mutation | admin | `{ brokerId: string }` | `{ probed: boolean; summary: string }` | | listClients | `streamBroker.listClients` | query | protected | `{ brokerId: string }` | `BrokerClientsSchema` | | getLiveViewerCounts | `streamBroker.getLiveViewerCounts` | query | protected | `void` | `LiveViewerCountSchema[]` | | killClient | `streamBroker.killClient` | mutation | admin | `{ brokerId: string; channel: "rtsp" \| "audio"; handle: string }` | `{ killed: boolean }` | | restartProfile | `streamBroker.restartProfile` | mutation | admin | `{ deviceId: number; profile: CamProfileSchema }` | `{ success: boolean }` | | getStreamUrl | `streamBroker.getStreamUrl` | query | protected | `{ streamId: string; format: StreamFormatSchema }` | `{ url: string }` | | getStreamWithCodec | `streamBroker.getStreamWithCodec` | mutation | admin | `GetStreamWithCodecInputSchema` | `RtpSourceSchema` | | releaseStreamWithCodec | `streamBroker.releaseStreamWithCodec` | mutation | admin | `{ pipelineKey: string }` | `{ released: boolean; refcount: number }` | | acquireEgressTranscode | `streamBroker.acquireEgressTranscode` | mutation | admin | `EgressTranscodeRequestSchema` | `EgressTranscodeSchema` | | releaseEgressTranscode | `streamBroker.releaseEgressTranscode` | mutation | admin | `{ pipelineKey: string }` | `{ released: boolean; refcount: number }` | | subscribeAudioChunks | `streamBroker.subscribeAudioChunks` | mutation | protected | `SubscribeAudioChunksInputSchema` | `SubscribeAudioChunksResultSchema` | | pullAudioChunks | `streamBroker.pullAudioChunks` | query | protected | `{ subscriptionId: string; maxCount?: number = 8 }` | `DecodedAudioChunkSchema[]` | | unsubscribeAudioChunks | `streamBroker.unsubscribeAudioChunks` | mutation | protected | `{ subscriptionId: string }` | `{ released: boolean }` | | setPreBufferDuration | `streamBroker.setPreBufferDuration` | mutation | admin | `{ brokerId: string; seconds: number }` | `void` | | getPreBufferInfo | `streamBroker.getPreBufferInfo` | query | protected | `{ brokerId: string }` | `{ configuredSec: number; bufferedMs: number; packetCount: number }` | | getRtspPort | `streamBroker.getRtspPort` | query | protected | `void` | `number` | | getAllRtspEntries | `streamBroker.getAllRtspEntries` | query | protected | `{ hostname?: string }` | `RtspRestreamEntrySchema[]` | | getRtspEntry | `streamBroker.getRtspEntry` | query | protected | `{ brokerId: string; hostname?: string }` | `RtspRestreamEntrySchema \| null` | | regenerateRtspToken | `streamBroker.regenerateRtspToken` | mutation | admin | `{ brokerId: string }` | `string \| null` | | setRtspEnabled | `streamBroker.setRtspEnabled` | mutation | admin | `{ brokerId: string; enabled: boolean }` | `void` | | isRtspEnabled | `streamBroker.isRtspEnabled` | query | protected | `{ brokerId: string }` | `boolean` | | getDeviceAudioMute | `streamBroker.getDeviceAudioMute` | query | protected | `{ deviceId: number }` | `{ muted: boolean; appliedBrokers: number }` | | setDeviceAudioMute | `streamBroker.setDeviceAudioMute` | mutation | admin | `{ deviceId: number; muted: boolean }` | `{ muted: boolean; appliedBrokers: number }` | ### `stream-catalog` → `streamCatalog.*` - **Source:** `packages/types/src/capabilities/stream-catalog.cap.ts:95` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `camera` - **Archetypes:** runtimeState - **Provider interface:** `IStreamCatalogProvider` - **runtimeState:** `{ descriptors: CamStreamDescriptorSchema[]; lastFetchedAt: number }` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getCatalog | `streamCatalog.getCatalog` | query | protected | `{ deviceId: number }` | `CamStreamDescriptorSchema[]` | ### `stream-params` → `streamParams.*` - **Source:** `packages/types/src/capabilities/stream-params.cap.ts:94` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `camera` - **Archetypes:** status(poll) · runtimeState · deviceConfig(derived-form) - **Provider interface:** `IStreamParamsProvider` - **runtimeState:** `StreamParamsStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `streamParams.getStatus` | query | protected | `{ deviceId: number }` | `StreamParamsStatusSchema` | | getOptions | `streamParams.getOptions` | query | protected | `{ deviceId: number }` | `StreamParamsOptionsSchema` | | setProfile | `streamParams.setProfile` | mutation | admin | `{ deviceId: number; profile: StreamProfileSchema; patch: StreamProfilePatchSchema }` | `void` | | getConfigSchema | `streamParams.getConfigSchema` | query | protected | `{ deviceId: number }` | `unknown \| null` | ### `stream-signals` → `streamSignals.*` - **Source:** `packages/types/src/capabilities/stream-signals.cap.ts:62` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `camera, light, siren, switch, sensor, climate, button, event-emitter, update, generic, notifier, script, automation, lock, cover, valve, humidifier, water-heater, fan, media-player, alarm-panel, control, presence, weather, weather-station, vacuum, lawn-mower, container, image, pet-feeder, pet-fountain, dishwasher, washer, dryer, gateway, heat-pump, energy-system` - **Archetypes:** runtimeState - **Provider interface:** `IStreamSignalsProvider` - **runtimeState:** `StreamSignalsStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listSignals | `streamSignals.listSignals` | query | protected | `void` | `StreamSignalSchema[]` | ### `switch` → `switch.*` - **Source:** `packages/types/src/capabilities/switch.cap.ts:30` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `switch, siren, light, fan` - **Archetypes:** status(command-driven) · runtimeState · settings(1 binding(s)) - **Provider interface:** `ISwitchProvider` - **runtimeState:** `SwitchStatusSchema` - **Events:** `onStateChanged` → `{ deviceId: number; on: boolean \| null; lastChangedAt: number }` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `switch.getStatus` | query | protected | `{ deviceId: number }` | `SwitchStatusSchema` | | setState | `switch.setState` | mutation | protected | `{ deviceId: number; on: boolean }` | `void` | | toggle | `switch.toggle` | mutation | protected | `{ deviceId: number }` | `void` | ### `system` → `system.*` - **Source:** `packages/types/src/capabilities/system.cap.ts:609` - **Meta:** scope: `system` · mode: `singleton` · mount: `server-provided` - **Archetypes:** — - **Provider interface:** `ISystemProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | info | `system.info` | query | protected | `void` | `{ streaming: boolean; notifications: boolean; objectDetection: boolean; remoteAccess: boolean; agentCluster: boolean; smartHome: boolean; recordings: boolean; backup: boolean; repl: boolean; serverName: { name: string; isDefault: boolean } }` | | health | `system.health` | query | protected | `void` | `HealthStatusSchema` | | featureFlags | `system.featureFlags` | query | protected | `void` | `FeatureManifestSchema` | | networkAddresses | `system.networkAddresses` | query | protected | `void` | `NetworkAddressSchema[]` | | getRetentionConfig | `system.getRetentionConfig` | query | admin | `void` | `unknown \| null` | | setRetentionConfig | `system.setRetentionConfig` | mutation | admin | `Record` | `null` | | forceRetentionCleanup | `system.forceRetentionCleanup` | mutation | admin | `void` | `void` | | getSiteLocation | `system.getSiteLocation` | query | protected | `void` | `SiteLocationStatusSchema` | | setSiteLocation | `system.setSiteLocation` | mutation | admin | `{ latitude: number; longitude: number } \| null` | `SiteLocationStatusSchema` | | detectSiteLocation | `system.detectSiteLocation` | mutation | admin | `void` | `SiteLocationStatusSchema` | | getRequestCensus | `system.getRequestCensus` | query | admin | `void` | `RequestCensusStatusSchema` | | getLoadContributions | `system.getLoadContributions` | query | admin | `void` | `ReportedLoadContributionSchema[]` | | getFailureContributions | `system.getFailureContributions` | query | admin | `void` | `ReportedFailureContributionSchema[]` | | getLoggingSettings | `system.getLoggingSettings` | query | admin | `GetLoggingSettingsInputSchema` | `LoggingSettingsStateSchema` | | setLoggingSettings | `system.setLoggingSettings` | mutation | admin | `SetLoggingSettingsInputSchema` | `LoggingSettingsStateSchema` | | debugWatch | `system.debugWatch` | mutation | admin | `{ action: "list" \| "start" \| "rearm" \| "stop"; channels?: string[] = []; deviceIds?: number[] = [] }` | `{ nowMs: number; watches: ({ channel: string; deviceIds: number[]; startedAtMs: number; untilMs: number; capAtMs: number })[]; lapsed: string[] }` | ### `tags` → `tags.*` - **Source:** `packages/types/src/capabilities/tags.cap.ts:38` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `ITagsProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | list | `tags.list` | query | protected | `{}` | `TagEntrySchema[]` | | setStyle | `tags.setStyle` | mutation | admin | `{ name: string; color: "tag-a" \| "tag-b" \| "tag-c" \| "tag-d" \| "tag-e" \| "tag-f" \| "tag-g" \| "tag-h"; icon: }` | `void` | | rename | `tags.rename` | mutation | admin | `{ from: string; to: string }` | `{ updated: TagUsageCountsSchema }` | | remove | `tags.remove` | mutation | admin | `{ name: string }` | `{ updated: TagUsageCountsSchema }` | ### `tamper` → `tamper.*` - **Source:** `packages/types/src/capabilities/tamper.cap.ts:20` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `sensor` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `ITamperProvider` - **runtimeState:** `TamperStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `tamper.getStatus` | query | protected | `{ deviceId: number }` | `TamperStatusSchema` | ### `temperature-sensor` → `temperatureSensor.*` - **Source:** `packages/types/src/capabilities/temperature-sensor.cap.ts:31` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `sensor, climate` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `ITemperatureSensorProvider` - **runtimeState:** `TemperatureSensorStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `temperatureSensor.getStatus` | query | protected | `{ deviceId: number }` | `TemperatureSensorStatusSchema` | ### `template` → `template.*` - **Source:** `packages/types/src/capabilities/template.cap.ts:74` - **Meta:** scope: `system` · mode: `collection` · mount: `collection` - **Archetypes:** — - **Provider interface:** `ITemplateProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | list | `template.list` | query | protected | `{ kind?: "remote" \| "automation" }` | `TemplateRecordSchema[]` | | get | `template.get` | query | protected | `{ id: string }` | `TemplateRecordSchema \| null` | | create | `template.create` | mutation | admin | `{ kind: "remote" \| "automation"; name: string; payload: unknown; tags?: string[] }` | `TemplateWriteResultSchema` | | update | `template.update` | mutation | admin | `{ id: string; name?: string; payload?: unknown; tags?: string[] }` | `TemplateWriteResultSchema` | | delete | `template.delete` | mutation | admin | `{ id: string }` | `TemplateDeleteResultSchema` | ### `terminal-session` → `terminalSession.*` - **Source:** `packages/types/src/capabilities/terminal-session.cap.ts:139` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `ITerminalSessionProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listProfiles | `terminalSession.listProfiles` | query | admin | `void` | `TerminalProfileInfoSchema[]` | | listLegacyCameras | `terminalSession.listLegacyCameras` | query | admin | `void` | `TerminalLegacyCameraSchema[]` | | adoptLegacyMonitor | `terminalSession.adoptLegacyMonitor` | mutation | admin | `{ stableId: string; name?: string }` | `TerminalInstanceInfoSchema` | | listSessions | `terminalSession.listSessions` | query | admin | `void` | `TerminalSessionInfoSchema[]` | | serverShellStatus | `terminalSession.serverShellStatus` | query | admin | `void` | `{ nodeId: string; enabled: boolean; idleMinutes: number; refusal: { code: "server-shell-disabled"; nodeId: string; message: string } \| null }` | | openSession | `terminalSession.openSession` | mutation | admin | `{ profileId: string; cols: number; rows: number; executable?: string; args?: string[]; cwd?: string; environment?: string[] }` | `TerminalSessionInfoSchema` | | resize | `terminalSession.resize` | mutation | admin | `{ sessionId: string; cols: number; rows: number }` | `void` | | pullOutput | `terminalSession.pullOutput` | mutation | admin | `{ sessionId: string; afterSeq: number; waitMs?: number = 0; waitForOutput?: boolean }` | `TerminalOutputBatchSchema` | | writeInput | `terminalSession.writeInput` | mutation | admin | `{ sessionId: string; data: string }` | `void` | | close | `terminalSession.close` | mutation | admin | `{ sessionId: string }` | `void` | ### `timed-run` → `timedRun.*` - **Source:** `packages/types/src/capabilities/timed-run.cap.ts:185` - **Meta:** scope: `device` · mode: `singleton` · mount: `device-scoped` · deviceTypes: `switch, pet-fountain` - **Archetypes:** status(push) · runtimeState · deviceConfig(derived-form) · wrapper(defaultActive) - **Provider interface:** `ITimedRunProvider` - **runtimeState:** `TimedRunStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `timedRun.getStatus` | query | protected | `{ deviceId: number }` | `TimedRunStatusSchema` | | getOptions | `timedRun.getOptions` | query | protected | `{ deviceId: number }` | `TimedRunOptionsSchema` | | setSettings | `timedRun.setSettings` | mutation | admin | `{ deviceId: number; settings: TimedRunSettingsPatchSchema }` | `void` | | runFor | `timedRun.runFor` | mutation | protected | `{ deviceId: number; duration: number; unit: TimedRunUnitSchema }` | `TimedRunResultSchema` | | cancel | `timedRun.cancel` | mutation | protected | `{ deviceId: number }` | `void` | ### `toast` → `toast.*` - **Source:** `packages/types/src/capabilities/toast.cap.ts:35` - **Meta:** scope: `system` · mode: `singleton` · mount: `server-provided` - **Archetypes:** — - **Provider interface:** `IToastProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | onToast | `toast.onToast` | subscription | protected | `void` | `ToastSchema` | ### `training` → `training.*` - **Source:** `packages/types/src/capabilities/training.cap.ts:275` - **Meta:** scope: `system` · mode: `singleton` · mount: `hub-only` - **Archetypes:** — | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listBaseModels | `training.listBaseModels` | query | admin | `{}` | `TrainingBaseModelSchema[]` | | planJob | `training.planJob` | query | admin | `TrainingJobRequestSchema` | `TrainingJobPlanSchema` | | startJob | `training.startJob` | mutation | admin | `{ selection: TrainingCorpusSelectionSchema; entryId: string; gpuType: string; region: string; baseModelId: string; preset: TrainingPresetSchema; freeze: number \| null; holdoutCameras: number[] \| null; name: string; maxCostUsd: number; maxRuntimeSec: number; idempotencyKey: string }` | `{ kind: "started"; job: TrainingJobSchema } \| { kind: "refused"; reason: TrainingRefusalReasonSchema; detail: string }` | | startJobBatch | `training.startJobBatch` | mutation | admin | `{ selection: TrainingCorpusSelectionSchema; entryId: string; gpuType: string; region: string; preset: TrainingPresetSchema; freeze: number \| null; holdoutCameras: number[] \| null; baseModelIds: string[]; name: string; maxCostUsd: number; maxRuntimeSec: number; idempotencyKey: string }` | `{ kind: "started"; batchId: string; jobs: TrainingJobSchema[] } \| { kind: "refused"; reason: TrainingRefusalReasonSchema; detail: string }` | | listJobs | `training.listJobs` | query | admin | `{}` | `TrainingJobSchema[]` | | getJob | `training.getJob` | query | admin | `{ id: string }` | `TrainingJobSchema \| null` | | cancelJob | `training.cancelJob` | mutation | admin | `{ id: string }` | `TrainingJobSchema` | | getJobResult | `training.getJobResult` | query | admin | `{ id: string }` | `{ schema: "camstack.training-result/v1"; jobKey: string; status: "succeeded" \| "failed"; error: { stage: string; code: string; message: string } \| null; trainer: { version: string; revision: string }; toolchain: Record; dataset?: { versionId: string; annotationHash: string; sha256: string; frames: { train: number; val: number; holdout: number }; holdoutCameras: number[]; replayImages: number }; training?: { epochsRun: number; bestEpoch: number; bestMap50: number; bestMap50_95: number; seconds: number }; evaluation?: { holdoutFrames: number; baseline: { frames: number; classes: Record; recallByLight?: Record; fpByCamera?: Record; smallFound?: number; smallTotal?: number }> } \| null; candidate: { frames: number; classes: Record; recallByLight?: Record; fpByCamera?: Record; smallFound?: number; smallTotal?: number }> } \| null; candidateInt8: { frames: number; classes: Record; recallByLight?: Record; fpByCamera?: Record; smallFound?: number; smallTotal?: number }> } \| null; recallDeltaByCamera: Record> \| null; map50: Record }; floors?: { baseline: Record; candidate: Record; candidateInt8: Record \| null; notes: string[] }; int8?: { kept: boolean; map50Fp16: number \| null; map50Int8: number \| null; reason: string \| null }; exportsDropped?: ({ export: string; reason: string })[]; files?: ({ path: string; bytes: number; sha256: string; format: "onnx" \| "openvino" \| "coreml" \| "pt"; variant: "base" \| "int8" })[]; bundle?: { path: "bundle.tar"; bytes: number; sha256: string } \| null; catalogDraft?: { base: { id: string; name: string; description: string; labels: unknown[]; inputSize: { width: number; height: number }; preprocessMode: "letterbox"; defaultClassFloors: Record; formats: { onnx?: {…}; openvino?: {…}; coreml?: {…} } }; int8: { id: string; name: string; description: string; labels: unknown[]; inputSize: { width: number; height: number }; preprocessMode: "letterbox"; defaultClassFloors: Record; formats: { onnx?: {…}; openvino?: {…}; coreml?: {…} } } \| null } \| null; licence: string } \| null` | | listCanaryTargets | `training.listCanaryTargets` | query | admin | `void` | `TrainingCanaryTargetSchema[]` | | registerResult | `training.registerResult` | mutation | admin | `{ id: string; canaryAccelerators: TrainingAcceleratorRefSchema[] }` | `TrainingJobSchema` | | canaryResult | `training.canaryResult` | mutation | admin | `{ id: string; accelerators: TrainingAcceleratorRefSchema[] }` | `TrainingJobSchema` | | rollbackCanary | `training.rollbackCanary` | mutation | admin | `{ id: string }` | `TrainingJobSchema` | | discardResult | `training.discardResult` | mutation | admin | `{ id: string }` | `TrainingJobSchema` | ### `training-provider` → `trainingProvider.*` - **Source:** `packages/types/src/capabilities/training-provider.cap.ts:186` - **Meta:** scope: `system` · mode: `collection` · mount: `collection` - **Archetypes:** internal - **Provider interface:** `ITrainingCloudProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | describe | `trainingProvider.describe` | query | admin | `{}` | `TrainingProviderDescriptorSchema[]` | | describeTypes | `trainingProvider.describeTypes` | query | admin | `{}` | `TrainingProviderTypeSchema[]` | | listEntries | `trainingProvider.listEntries` | query | admin | `{}` | `TrainingProviderEntrySchema[]` | | estimateJob | `trainingProvider.estimateJob` | query | admin | `{ entryId: string; gpuType: string; region: string; datasetBytes: number; gpuSecondsLow: number; gpuSecondsHigh: number }` | `{ usdLow: number; usdHigh: number; notes: string[] }` | | uploadDataset | `trainingProvider.uploadDataset` | mutation | admin | `{ entryId: string; jobKey: string; ticket: { url: string; hostNodeId: string; expiresAtMs: number; declaredBytes: number \| null } }` | `{ bytes: number; sha256: string }` | | submitJob | `trainingProvider.submitJob` | mutation | admin | `{ entryId: string; jobKey: string; trainer: TrainerSourceRefSchema; jobSpecJson: string; gpuType: string; region: string; maxRuntimeSec: number }` | `ProviderJobStatusSchema` | | getJob | `trainingProvider.getJob` | query | admin | `{ entryId: string; jobKey: string }` | `ProviderJobStatusSchema` | | listJobEvents | `trainingProvider.listJobEvents` | query | admin | `{ entryId: string; jobKey: string; cursor?: string; max: number }` | `{ lines: TrainingLogLineSchema[]; cursor: string }` | | cancelJob | `trainingProvider.cancelJob` | mutation | admin | `{ entryId: string; jobKey: string }` | `{ ok: true }` | | readResult | `trainingProvider.readResult` | mutation | admin | `{ entryId: string; jobKey: string }` | `{ found: boolean; text?: string }` | | offerArtifact | `trainingProvider.offerArtifact` | mutation | admin | `{ entryId: string; jobKey: string; path: "bundle.tar" }` | `{ ticket: { url: string; hostNodeId: string; expiresAtMs: number; declaredBytes: number \| null } }` | | cleanupJob | `trainingProvider.cleanupJob` | mutation | admin | `{ entryId: string; jobKey: string }` | `{ deleted: string[] }` | | listJobs | `trainingProvider.listJobs` | query | admin | `{ entryId?: string }` | `ProviderJobStatusSchema[]` | ### `turn-provider` → `turnProvider.*` - **Source:** `packages/types/src/capabilities/turn-provider.cap.ts:28` - **Meta:** scope: `system` · mode: `collection` · mount: `collection` - **Archetypes:** — - **Provider interface:** `ITurnProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getTurnServers | `turnProvider.getTurnServers` | query | protected | `void` | `TurnServerSchema[]` | ### `update` → `update.*` - **Source:** `packages/types/src/capabilities/update.cap.ts:30` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `update` - **Archetypes:** status(poll) · runtimeState - **Provider interface:** `IUpdateProvider` - **runtimeState:** `UpdateStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `update.getStatus` | query | protected | `{ deviceId: number }` | `UpdateStatusSchema` | | installUpdate | `update.installUpdate` | mutation | admin | `void` | `void` | ### `user-management` → `userManagement.*` - **Source:** `packages/types/src/capabilities/user-management.cap.ts:116` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** — - **Provider interface:** `IUserManagementProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listUsers | `userManagement.listUsers` | query | admin | `void` | `UserSummarySchema[]` | | getAdminBootstrapStatus | `userManagement.getAdminBootstrapStatus` | query | admin | `void` | `{ defaultPasswordInUse: boolean }` | | createUser | `userManagement.createUser` | mutation | admin | `CreateUserInputSchema` | `UserSummarySchema` | | updateUser | `userManagement.updateUser` | mutation | admin | `UpdateUserInputSchema` | `{ success: true }` | | deleteUser | `userManagement.deleteUser` | mutation | admin | `{ id: string }` | `{ success: true }` | | resetPassword | `userManagement.resetPassword` | mutation | admin | `{ id: string; newPassword: string }` | `{ success: true }` | | setUserScopes | `userManagement.setUserScopes` | mutation | admin | `{ userId: string; scopes: ({ type: "viewer"; allow: "*" \| number[]; block: number[]; features: ("face-assignment" \| "plate-assignment" \| "retrain" \| "scenes")[] } \| pipe)[] }` | `{ success: true }` | | validateCredentials | `userManagement.validateCredentials` | mutation | protected | `{ username: string; password: string }` | `{ id: string; username: string; isAdmin?: boolean = false; allowedProviders: string[] \| "*"; allowedDevices: Record; scopes?: ({ type: "viewer"; allow: "*" \| number[]; block: number[]; features: ("face-assignment" \| "plate-assignment" \| "retrain" \| "scenes")[] } \| pipe)[] = []; totpEnabled?: boolean = false; createdAt: number; updatedAt: number; passwordHash: string } \| null` | | setupTotp | `userManagement.setupTotp` | mutation | admin | `{ userId: string }` | `{ secret: string; otpauthUrl: string }` | | confirmTotp | `userManagement.confirmTotp` | mutation | admin | `{ userId: string; code: string }` | `{ success: true }` | | disableTotp | `userManagement.disableTotp` | mutation | admin | `{ userId: string }` | `{ success: true }` | | getTotpStatus | `userManagement.getTotpStatus` | query | admin | `{ userId: string }` | `{ enabled: boolean; confirmedAt: number \| null }` | | migrateRawSecrets | `userManagement.migrateRawSecrets` | mutation | admin | `RawSecretMigrationInputSchema` | `RawSecretMigrationReportSchema` | | verifyTotp | `userManagement.verifyTotp` | mutation | protected | `{ userId: string; code: string }` | `{ valid: boolean }` | | oauthIssueCode | `userManagement.oauthIssueCode` | mutation | protected | `{ integrationId: string; instanceId?: string; userId: string; username: string; scopes: pipe[]; redirectUri: string; hubUrl: string; codeChallenge?: string; refreshTtlSec?: number \| "never" }` | `{ code: string }` | | oauthExchangeCode | `userManagement.oauthExchangeCode` | mutation | protected | `{ code: string; redirectUri: string; codeVerifier?: string }` | `{ accessToken: string; refreshToken: string; expiresIn: number } \| null` | | oauthRefresh | `userManagement.oauthRefresh` | mutation | protected | `{ refreshToken: string }` | `{ accessToken: string; refreshToken: string; expiresIn: number } \| null` | | oauthVerifyAccessToken | `userManagement.oauthVerifyAccessToken` | query | protected | `{ token: string }` | `{ userId: string; username: string; scopes: pipe[]; instanceId?: string } \| null` | | listExternalIdentities | `userManagement.listExternalIdentities` | query | admin | `{ userId: string }` | `ExternalIdentitySchema[]` | | findUserByExternalIdentity | `userManagement.findUserByExternalIdentity` | query | admin | `ExternalIdentityKeySchema` | `{ userId: string; issuer: string } \| null` | | unlinkExternalIdentity | `userManagement.unlinkExternalIdentity` | mutation | admin | `{ provider: string; subject: string; userId: string }` | `{ success: boolean }` | | listOauthSessions | `userManagement.listOauthSessions` | query | admin | `void` | `({ id: string; userId: string; username: string; integrationId: string; instanceId?: string \| null; scopes: pipe[]; createdAt: number; lastUsedAt: number; revokedAt: number \| null })[]` | | revokeOauthSession | `userManagement.revokeOauthSession` | mutation | admin | `{ id: string }` | `{ success: boolean }` | ### `user-passkeys` → `userPasskeys.*` - **Source:** `packages/types/src/capabilities/user-passkeys.cap.ts:69` - **Meta:** scope: `system` · mode: `collection` · mount: `collection` - **Archetypes:** internal - **Provider interface:** `IUserPasskeysProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | beginRegistration | `userPasskeys.beginRegistration` | mutation | admin | `{ userId: string; username: string }` | `{ optionsJSON: Record }` | | finishRegistration | `userPasskeys.finishRegistration` | mutation | admin | `{ userId: string; response: Record; label: string }` | `{ success: true; credentialId: string }` | | beginAuthentication | `userPasskeys.beginAuthentication` | mutation | admin | `{ userId?: string }` | `{ optionsJSON: Record }` | | finishAuthentication | `userPasskeys.finishAuthentication` | mutation | admin | `{ userId: string; response: Record }` | `{ verified: boolean }` | | beginDiscoverableAuthentication | `userPasskeys.beginDiscoverableAuthentication` | mutation | admin | `{}` | `{ optionsJSON: Record }` | | finishDiscoverableAuthentication | `userPasskeys.finishDiscoverableAuthentication` | mutation | admin | `{ response: Record }` | `{ verified: boolean; userId: string \| null }` | | listPasskeys | `userPasskeys.listPasskeys` | query | admin | `{ userId: string }` | `PasskeySummarySchema[]` | | removePasskey | `userPasskeys.removePasskey` | mutation | admin | `{ userId: string; credentialId: string }` | `{ success: true }` | | getSecondFactorPreference | `userPasskeys.getSecondFactorPreference` | query | admin | `{ userId: string }` | `{ enabled: boolean }` | | setSecondFactorPreference | `userPasskeys.setSecondFactorPreference` | mutation | admin | `{ userId: string; enabled: boolean }` | `{ success: true }` | ### `vacuum-control` → `vacuumControl.*` - **Source:** `packages/types/src/capabilities/vacuum-control.cap.ts:62` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `vacuum` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IVacuumControlProvider` - **runtimeState:** `VacuumControlStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `vacuumControl.getStatus` | query | protected | `{ deviceId: number }` | `VacuumControlStatusSchema` | | start | `vacuumControl.start` | mutation | protected | `{ deviceId: number }` | `void` | | pause | `vacuumControl.pause` | mutation | protected | `{ deviceId: number }` | `void` | | stop | `vacuumControl.stop` | mutation | protected | `{ deviceId: number }` | `void` | | returnToBase | `vacuumControl.returnToBase` | mutation | protected | `{ deviceId: number }` | `void` | | locate | `vacuumControl.locate` | mutation | protected | `{ deviceId: number }` | `void` | | setFanSpeed | `vacuumControl.setFanSpeed` | mutation | protected | `{ deviceId: number; speed: string }` | `void` | ### `valve` → `valve.*` - **Source:** `packages/types/src/capabilities/valve.cap.ts:45` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `valve` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IValveProvider` - **runtimeState:** `ValveStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `valve.getStatus` | query | protected | `{ deviceId: number }` | `ValveStatusSchema` | | open | `valve.open` | mutation | protected | `{ deviceId: number }` | `void` | | close | `valve.close` | mutation | protected | `{ deviceId: number }` | `void` | | stop | `valve.stop` | mutation | protected | `{ deviceId: number }` | `void` | | setPosition | `valve.setPosition` | mutation | protected | `{ deviceId: number; position: number }` | `void` | ### `vector-store` → `vectorStore.*` - **Source:** `packages/types/src/capabilities/vector-store.cap.ts:316` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** internal - **Provider interface:** `IVectorStoreProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | declareIndex | `vectorStore.declareIndex` | mutation | admin | `VectorDeclareIndexInputSchema` | `void` | | upsert | `vectorStore.upsert` | mutation | admin | `VectorUpsertInputSchema` | `VectorUpsertResultSchema` | | query | `vectorStore.query` | query | admin | `VectorQueryInputSchema` | `VectorQueryResultSchema` | | getByIds | `vectorStore.getByIds` | query | admin | `VectorGetInputSchema` | `VectorGetResultSchema` | | fetchByIds | `vectorStore.fetchByIds` | query | admin | `{ index: string; ids: string[] }` | `{ items: ({ id: string; vector: string; metadata: VectorMetadataSchema })[] }` | | scan | `vectorStore.scan` | query | admin | `{ index: string; cursor?: number = 0; limit: number }` | `{ items: ({ id: string; metadata: VectorMetadataSchema })[]; nextCursor: number \| null }` | | deleteByIds | `vectorStore.deleteByIds` | mutation | admin | `VectorDeleteInputSchema` | `VectorDeleteResultSchema` | | deleteByFilter | `vectorStore.deleteByFilter` | mutation | admin | `VectorDeleteByFilterInputSchema` | `VectorDeleteResultSchema` | | stats | `vectorStore.stats` | query | admin | `VectorStatsInputSchema` | `VectorStatsResultSchema` | ### `vibration` → `vibration.*` - **Source:** `packages/types/src/capabilities/vibration.cap.ts:18` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `sensor` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IVibrationProvider` - **runtimeState:** `VibrationStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `vibration.getStatus` | query | protected | `{ deviceId: number }` | `VibrationStatusSchema` | ### `videoclips` → `videoclips.*` - **Source:** `packages/types/src/capabilities/videoclips.cap.ts:771` - **Meta:** scope: `device` · mode: `collection` · mount: `device-scoped` · deviceTypes: `camera` - **Archetypes:** deviceConfig(widget) · wrapper(defaultActive) - **Provider interface:** `IVideoclipsProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listClips | `videoclips.listClips` | query | protected | `{ deviceId: number; since: number; until: number; limit?: number; provider: string }` | `ClipSchema[]` | | listSources | `videoclips.listSources` | query | protected | `{ deviceId: number }` | `ClipSourceSchema[]` | | getClipPlayback | `videoclips.getClipPlayback` | query | protected | `{ deviceId: number; clipId: string; profile?: CamProfileSchema }` | `ClipPlaybackSchema` | | readClipBytes | `videoclips.readClipBytes` | query | protected | `{ deviceId: number; clipId: string; provider: string; profile?: CamProfileSchema; maxBytes?: number; wake?: ClipWakeSchema }` | `ClipBytesSchema` | | offerClipBytes | `videoclips.offerClipBytes` | query | protected | `{ deviceId: number; clipId: string; provider: string; profile?: CamProfileSchema; maxBytes?: number; wake?: ClipWakeSchema }` | `ClipBytesOfferSchema` | | dialClipStream | `videoclips.dialClipStream` | query | protected | `{ deviceId: number; clipId: string; provider: string; profile?: CamProfileSchema; audio?: ClipStreamAudioSchema }` | `ClipStreamDialSchema` | | getPlaybackOptions | `videoclips.getPlaybackOptions` | query | protected | `{ deviceId: number; provider: string }` | `ClipPlaybackOptionsSchema` | ### `viewer-ui` → `viewerUi.*` - **Source:** `packages/types/src/capabilities/viewer-ui.cap.ts:15` - **Meta:** scope: `system` · mode: `singleton` · mount: `singleton` - **Archetypes:** internal - **Provider interface:** `IViewerUiProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStaticDir | `viewerUi.getStaticDir` | query | admin | `void` | `{ staticDir: string }` | | getVersion | `viewerUi.getVersion` | query | admin | `void` | `{ version: string }` | ### `water-heater` → `waterHeater.*` - **Source:** `packages/types/src/capabilities/water-heater.cap.ts:51` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `water-heater` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IWaterHeaterProvider` - **runtimeState:** `WaterHeaterStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `waterHeater.getStatus` | query | protected | `{ deviceId: number }` | `WaterHeaterStatusSchema` | | setOperationMode | `waterHeater.setOperationMode` | mutation | protected | `{ deviceId: number; mode: string }` | `void` | | setAway | `waterHeater.setAway` | mutation | protected | `{ deviceId: number; on: boolean }` | `void` | | setTargetTemp | `waterHeater.setTargetTemp` | mutation | protected | `{ deviceId: number; temp: number }` | `void` | ### `weather` → `weather.*` - **Source:** `packages/types/src/capabilities/weather.cap.ts:48` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `weather` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IWeatherProvider` - **runtimeState:** `WeatherStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `weather.getStatus` | query | protected | `{ deviceId: number }` | `WeatherStatusSchema` | ### `weather-station` → `weatherStation.*` - **Source:** `packages/types/src/capabilities/weather-station.cap.ts:186` - **Meta:** scope: `device` · mode: `singleton` · deviceNative: `true` · mount: `device-native` · deviceTypes: `weather-station` - **Archetypes:** status(push) · runtimeState - **Provider interface:** `IWeatherStationProvider` - **runtimeState:** `WeatherStationStatusSchema` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getStatus _(auto)_ | `weatherStation.getStatus` | query | protected | `{ deviceId: number }` | `WeatherStationStatusSchema` | ### `webrtc-session` → `webrtcSession.*` - **Source:** `packages/types/src/capabilities/webrtc-session.cap.ts:284` - **Meta:** scope: `device` · mode: `singleton` · mount: `server-provided` · preferredProvider: `stream-broker` · deviceTypes: `camera` - **Archetypes:** wrapper(defaultActive) - **Provider interface:** `IWebrtcSessionProvider` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listStreams | `webrtcSession.listStreams` | query | protected | `{ deviceId: number }` | `WebrtcStreamChoiceSchema[]` | | createSession | `webrtcSession.createSession` | mutation | protected | `{ deviceId: number; target: WebrtcStreamTargetSchema; hints?: webrtcClientHintsSchema; relayOnly?: boolean; consumerAttribution?: { kind: BrokerConsumerKindSchema; label?: string; media?: "audio" \| "video" \| "both"; targetCodec?: string; transport?: "passthrough" \| "repacketize" \| "transcode"; remoteAddr?: string; userAgent?: string; userId?: string; sessionId?: string; extra?: Record } }` | `{ sessionId: string; sdpOffer: string }` | | handleOffer | `webrtcSession.handleOffer` | mutation | protected | `{ deviceId: number; target?: WebrtcStreamTargetSchema; sdpOffer: string; sessionId?: string; relayOnly?: boolean; nonTrickle?: boolean; disableTurn?: boolean; disableIpv6?: boolean; consumerAttribution?: { kind: BrokerConsumerKindSchema; label?: string; media?: "audio" \| "video" \| "both"; targetCodec?: string; transport?: "passthrough" \| "repacketize" \| "transcode"; remoteAddr?: string; userAgent?: string; userId?: string; sessionId?: string; extra?: Record }; hints?: webrtcClientHintsSchema; talkback?: boolean }` | `{ sessionId: string; sdpAnswer: string }` | | handleAnswer | `webrtcSession.handleAnswer` | mutation | protected | `{ deviceId: number; sessionId: string; sdpAnswer: string }` | `void` | | addIceCandidate | `webrtcSession.addIceCandidate` | mutation | protected | `{ deviceId: number; sessionId: string; candidate: string; sdpMid?: string \| null; sdpMLineIndex?: number \| null }` | `void` | | getIceCandidates | `webrtcSession.getIceCandidates` | query | protected | `{ deviceId: number; sessionId: string }` | `{ candidates: ({ candidate: string; sdpMid: string \| null; sdpMLineIndex: number \| null })[]; done: boolean }` | | closeSession | `webrtcSession.closeSession` | mutation | protected | `{ deviceId: number; sessionId: string }` | `void` | | hasAdaptiveBitrate | `webrtcSession.hasAdaptiveBitrate` | query | protected | `{ deviceId: number; profile: CamProfileSchema }` | `boolean` | | getSessionState | `webrtcSession.getSessionState` | query | protected | `{ deviceId: number; sessionId: string }` | `{ pendingRenegotiation: { target: WebrtcStreamTargetSchema; epoch: number } \| null; alive: boolean }` | | applyDownlinkProbe | `webrtcSession.applyDownlinkProbe` | mutation | protected | `{ deviceId: number; sessionId: string; downlinkMbps: number }` | `{ outcome: "switching" \| "held"; tier: CamProfileSchema \| null; reason: string }` | | getSessionDebug | `webrtcSession.getSessionDebug` | query | protected | `{ deviceId: number; sessionId: string }` | `WebrtcSessionDebugSchema` | ### `zone-analytics` → `zoneAnalytics.*` - **Source:** `packages/types/src/capabilities/zone-analytics.cap.ts:203` - **Meta:** scope: `device` · mode: `singleton` · mount: `singleton` · deviceTypes: `camera` - **Archetypes:** runtimeState - **Provider interface:** `IZoneAnalyticsProvider` - **runtimeState:** `{ ts: number; frameWidth: number; frameHeight: number; zones: ZoneScopeBreakdownSchema[]; frame: PerScopeBreakdownSchema; unzoned: PerScopeBreakdownSchema; stationaryObjects?: StationaryObjectSchema[] }` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | getCurrentSnapshot | `zoneAnalytics.getCurrentSnapshot` | query | protected | `{ deviceId: number }` | `{ ts: number; frameWidth: number; frameHeight: number; zones: ZoneScopeBreakdownSchema[]; frame: PerScopeBreakdownSchema; unzoned: PerScopeBreakdownSchema; stationaryObjects?: StationaryObjectSchema[] } \| null` | | getCurrentSnapshotBatch | `zoneAnalytics.getCurrentSnapshotBatch` | query | protected | `{ deviceIds: number[] }` | `CameraOccupancySnapshotForDeviceSchema[]` | | getZoneHistory | `zoneAnalytics.getZoneHistory` | query | protected | `{ deviceId: number; zoneId: string; className?: string; from: number; to: number; resolution: HistoryResolutionEnum }` | `HistoryPointSchema[]` | | getCameraHistory | `zoneAnalytics.getCameraHistory` | query | protected | `{ deviceId: number; className?: string; from: number; to: number; resolution: HistoryResolutionEnum }` | `HistoryPointSchema[]` | | getUnzonedHistory | `zoneAnalytics.getUnzonedHistory` | query | protected | `{ deviceId: number; className?: string; from: number; to: number; resolution: HistoryResolutionEnum }` | `HistoryPointSchema[]` | ### `zone-rules` → `zoneRules.*` - **Source:** `packages/types/src/capabilities/zone-rules.cap.ts:36` - **Meta:** scope: `device` · mode: `singleton` · mount: `singleton` · deviceTypes: `camera` - **Archetypes:** runtimeState - **Provider interface:** `IZoneRulesProvider` - **runtimeState:** `{ motion: ZoneRuleSchema[]; detection: ZoneRuleSchema[]; package: ZoneRuleSchema[] }` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listRules | `zoneRules.listRules` | query | protected | `{ deviceId: number; stage: ZoneRuleStageEnum }` | `ZoneRuleSchema[]` | | setRules | `zoneRules.setRules` | mutation | admin | `{ deviceId: number; stage: ZoneRuleStageEnum; rules: ZoneRuleSchema[] }` | `void` | ### `zones` → `zones.*` - **Source:** `packages/types/src/capabilities/zones.cap.ts:66` - **Meta:** scope: `device` · mode: `singleton` · mount: `singleton` · deviceTypes: `camera` - **Archetypes:** runtimeState - **Provider interface:** `IZonesProvider` - **runtimeState:** `{ zones: ZoneSchema[] }` | Method | tRPC path | Kind | Auth | Input | Output | |---|---|---|---|---|---| | listZones | `zones.listZones` | query | protected | `{ deviceId: number }` | `ZoneSchema[]` | | addZone | `zones.addZone` | mutation | admin | `{ deviceId: number; zone: ZoneSchema }` | `void` | | removeZone | `zones.removeZone` | mutation | admin | `{ deviceId: number; zoneId: string }` | `void` | | updateZone | `zones.updateZone` | mutation | admin | `{ deviceId: number; zone: ZoneSchema }` | `void` |