@camstack/types 1.2.429 → 1.2.431
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/addon.js +4 -3
- package/dist/addon.mjs +4 -3
- package/dist/automation/action.d.ts +210 -0
- package/dist/automation/condition-eval.d.ts +64 -0
- package/dist/automation/detection-trigger.d.ts +66 -0
- package/dist/automation/index.d.ts +12 -2
- package/dist/automation/recipe.d.ts +103 -1
- package/dist/automation/run-gate.d.ts +43 -0
- package/dist/automation/step-runner.d.ts +82 -0
- package/dist/automation/trace.d.ts +325 -0
- package/dist/capabilities/action-source.cap.d.ts +74 -0
- package/dist/capabilities/actions.cap.d.ts +459 -0
- package/dist/capabilities/core-blocks.cap.d.ts +761 -0
- package/dist/capabilities/index.d.ts +5 -1
- package/dist/client.js +73 -49
- package/dist/client.mjs +73 -49
- package/dist/enums/event-category.d.ts +5 -0
- package/dist/enums.js +1 -1
- package/dist/enums.mjs +1 -1
- package/dist/{event-category-Ave2VSxY.js → event-category-BhzwWQCH.js} +5 -0
- package/dist/{event-category-CT-hz5Rb.mjs → event-category-hdMR7CTW.mjs} +5 -0
- package/dist/generated/addon-api.d.ts +135 -0
- package/dist/generated/capability-router-map.d.ts +10 -4
- package/dist/generated/collection-array-methods.d.ts +1 -1
- package/dist/generated/device-proxy.d.ts +2 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +2 -2
- package/dist/generated/system-proxy.d.ts +5 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.js +2849 -579
- package/dist/index.mjs +2792 -580
- package/dist/interfaces/config-ui.d.ts +7 -0
- package/dist/{sleep-hRhTSDlN.js → sleep-5zRztaHa.js} +12 -2
- package/dist/{sleep-BE7IAR2p.mjs → sleep-BHjNez61.mjs} +12 -2
- package/dist/vendor-login-proxy/index.d.ts +2 -0
- package/dist/vendor-login-proxy/login-proxy.d.ts +55 -0
- package/dist/vendor-login-proxy/url-rewrite.d.ts +68 -0
- package/package.json +1 -1
|
@@ -151,6 +151,8 @@ export { type AirQualitySensorStatus, AirQualitySensorStatusSchema, airQualitySe
|
|
|
151
151
|
export { type AlarmArmMode, AlarmArmModeSchema, type AlarmPanelStatus, AlarmPanelStatusSchema, type AlarmState, AlarmStateSchema, alarmPanelCapability, type IAlarmPanelProvider, } from './alarm-panel.cap.js';
|
|
152
152
|
export { type AmbientLightSensorStatus, AmbientLightSensorStatusSchema, ambientLightSensorCapability, type IAmbientLightSensorProvider, } from './ambient-light-sensor.cap.js';
|
|
153
153
|
export { type AudioClassSummary, AudioClassSummarySchema, type AudioMetricsHistory, type AudioMetricsHistoryPoint, AudioMetricsHistoryPointSchema, AudioMetricsHistorySchema, type AudioMetricsSnapshot, AudioMetricsSnapshotSchema, audioMetricsCapability, type IAudioMetricsProvider, } from './audio-metrics.cap.js';
|
|
154
|
+
export { actionSourceCapability, type IActionSourceProvider, } from './action-source.cap.js';
|
|
155
|
+
export { type ActionLinks, ActionLinksSchema, actionsCapability, type IActionsProvider, } from './actions.cap.js';
|
|
154
156
|
export { type AutomationControlStatus, AutomationControlStatusSchema, automationControlCapability, type IAutomationControlProvider, } from './automation-control.cap.js';
|
|
155
157
|
export { type BatteryStatus, BatteryStatusSchema, batteryCapability, type IBatteryProvider, } from './battery.cap.js';
|
|
156
158
|
export { type BinaryStatus, BinaryStatusSchema, binaryCapability, type IBinaryProvider, } from './binary.cap.js';
|
|
@@ -278,6 +280,8 @@ import type { audioAnalyzerCapability } from './audio-analyzer.cap.js';
|
|
|
278
280
|
import type { audioCodecCapability } from './audio-codec.cap.js';
|
|
279
281
|
import type { audioMetricsCapability } from './audio-metrics.cap.js';
|
|
280
282
|
import type { authProviderCapability } from './auth-provider.cap.js';
|
|
283
|
+
import type { actionSourceCapability } from './action-source.cap.js';
|
|
284
|
+
import type { actionsCapability } from './actions.cap.js';
|
|
281
285
|
import type { automationControlCapability } from './automation-control.cap.js';
|
|
282
286
|
import type { backupCapability } from './backup.cap.js';
|
|
283
287
|
import type { batteryCapability } from './battery.cap.js';
|
|
@@ -445,6 +449,6 @@ import type { trainingProviderCapability } from './training-provider.cap.js';
|
|
|
445
449
|
import type { zoneAnalyticsCapability } from './zone-analytics.cap.js';
|
|
446
450
|
import type { zoneRulesCapability } from './zone-rules.cap.js';
|
|
447
451
|
import type { zonesCapability } from './zones.cap.js';
|
|
448
|
-
type AnyCapability = typeof streamSignalsCapability | typeof addonSettingsCapability | typeof alertsCapability | typeof storageCapability | typeof storageMigrationCapability | typeof storageProviderCapability | typeof storageEvictableCapability | typeof storageOccupancyCapability | typeof filesystemBrowseCapability | typeof backupCapability | typeof terminalSessionCapability | typeof settingsStoreCapability | typeof dataStoreProviderCapability | typeof databaseSnapshotCapability | typeof storageAdminCapability | typeof recordsCapability | typeof recordEntriesCapability | typeof deviceHistoryCapability | typeof keychainCapability | typeof keychainAdminCapability | typeof deviceCredentialsCapability | typeof nodeCertificatesCapability | typeof logChannelsCapability | typeof logDestinationCapability | typeof loadContributionCapability | typeof failureContributionCapability | typeof deviceRemovalHookCapability | typeof adminUiCapability | typeof viewerUiCapability | typeof ssoBridgeCapability | typeof userPasskeysCapability | typeof smtpProviderCapability | typeof mqttBrokerCapability | typeof brokerCapability | typeof deviceAdoptionCapability | typeof deviceAdminLinkCapability | typeof deviceExportCapability | typeof addonPagesCapability | typeof addonPagesSourceCapability | typeof addonWidgetsCapability | typeof addonWidgetsSourceCapability | typeof customModelRegistryCapability | typeof modelDistributorCapability | typeof modelConvertCapability | typeof addonRoutesCapability | typeof streamBrokerCapability | typeof decoderCapability | typeof webrtcSessionCapability | typeof cameraStreamsCapability | typeof calendarSourceCapability | typeof calendarsCapability | typeof motionDetectionCapability | typeof pipelineExecutorCapability | typeof detectionPipelineCapability | typeof cameraPipelineConfigCapability | typeof pipelineRunnerCapability | typeof pipelineOrchestratorCapability | typeof audioAnalyzerCapability | typeof audioAnalysisCapability | typeof audioCodecCapability | typeof embeddingEncoderCapability | typeof vectorStoreCapability | typeof deviceProviderCapability | typeof deviceManagerCapability | typeof deviceStateCapability | typeof authProviderCapability | typeof loginMethodCapability | typeof networkAccessCapability | typeof turnProviderCapability | typeof snapshotCapability | typeof llmCapability | typeof llmRuntimeCapability | typeof notificationOutputCapability | typeof composerCapability | typeof coreBlocksCapability | typeof notificationRulesCapability | typeof pipelineAnalyticsCapability | typeof metricsProviderCapability | typeof ptzCapability | typeof ptzAutotrackCapability | typeof navigationCapability | typeof consumablesCapability | typeof connectionTestCapability | typeof runningStateCapability | typeof rebootCapability | typeof deviceDiscoveryCapability | typeof brightnessCapability | typeof colorCapability | typeof climateControlCapability | typeof coverCapability | typeof valveCapability | typeof humidifierCapability | typeof waterHeaterCapability | typeof weatherCapability | typeof imageCapability | typeof lockControlCapability | typeof vacuumControlCapability | typeof petFeederCapability | typeof lawnMowerControlCapability | typeof fanControlCapability | typeof controlCapability | typeof notifierCapability | typeof mediaPlayerCapability | typeof meterCapability | typeof alarmPanelCapability | typeof presenceCapability | typeof scriptRunnerCapability | typeof automationControlCapability | typeof motionTriggerCapability | typeof zonesCapability | typeof zoneRulesCapability | typeof trainingCapability | typeof trainingProviderCapability | typeof zoneAnalyticsCapability | typeof audioMetricsCapability | typeof motionCapability | typeof contactCapability | typeof floodCapability | typeof smokeCapability | typeof carbonMonoxideCapability | typeof gasCapability | typeof groupActiveCapability | typeof groupCommandsCapability | typeof groupStatusCapability | typeof tamperCapability | typeof vibrationCapability | typeof connectivityCapability | typeof binaryCapability | typeof temperatureSensorCapability | typeof heatingValveCapability | typeof humiditySensorCapability | typeof ambientLightSensorCapability | typeof pressureSensorCapability | typeof powerMeterCapability | typeof airQualitySensorCapability | typeof numericSensorCapability | typeof enumSensorCapability | typeof recordingCapability | typeof recordingArchiveCapability | typeof recordingExportCapability | typeof recordingSignalCapability | typeof deviceOpsCapability | typeof displayPaletteCapability | typeof platformProbeCapability | typeof localNetworkCapability | typeof meshNetworkCapability | typeof userManagementCapability | typeof systemCapability | typeof networkQualityCapability | typeof toastCapability | typeof nodesCapability | typeof serverManagementCapability | typeof integrationsCapability | typeof addonsCapability | typeof oauthIntegrationCapability | typeof oidcConnectionsCapability | typeof streamParamsCapability | typeof streamCatalogCapability | typeof motionZonesCapability | typeof cameraGridLayoutCapability | typeof sceneMonitorCapability | typeof privacyMaskCapability | typeof dayNightCapability | typeof recordingOnboardCapability | typeof imageSettingsCapability | typeof osdCapability | typeof osdManagerCapability | typeof accessoriesCapability | typeof batteryCapability | typeof networkLinkCapability | typeof buttonCapability | typeof cameraCredentialsCapability | typeof deviceStatusCapability | typeof doorbellCapability | typeof eventEmitterCapability | typeof faceGalleryCapability | typeof featureProbeCapability | typeof intercomCapability | typeof nativeObjectDetectionCapability | typeof plateGalleryCapability | typeof switchCapability | typeof updateCapability | typeof videoclipsCapability | typeof deviceExtensionCapability | typeof dishwasherCapability;
|
|
452
|
+
type AnyCapability = typeof streamSignalsCapability | typeof addonSettingsCapability | typeof alertsCapability | typeof storageCapability | typeof storageMigrationCapability | typeof storageProviderCapability | typeof storageEvictableCapability | typeof storageOccupancyCapability | typeof filesystemBrowseCapability | typeof backupCapability | typeof terminalSessionCapability | typeof settingsStoreCapability | typeof dataStoreProviderCapability | typeof databaseSnapshotCapability | typeof storageAdminCapability | typeof recordsCapability | typeof recordEntriesCapability | typeof deviceHistoryCapability | typeof keychainCapability | typeof keychainAdminCapability | typeof deviceCredentialsCapability | typeof nodeCertificatesCapability | typeof logChannelsCapability | typeof logDestinationCapability | typeof loadContributionCapability | typeof failureContributionCapability | typeof deviceRemovalHookCapability | typeof adminUiCapability | typeof viewerUiCapability | typeof ssoBridgeCapability | typeof userPasskeysCapability | typeof smtpProviderCapability | typeof mqttBrokerCapability | typeof brokerCapability | typeof deviceAdoptionCapability | typeof deviceAdminLinkCapability | typeof deviceExportCapability | typeof addonPagesCapability | typeof addonPagesSourceCapability | typeof addonWidgetsCapability | typeof addonWidgetsSourceCapability | typeof customModelRegistryCapability | typeof modelDistributorCapability | typeof modelConvertCapability | typeof addonRoutesCapability | typeof streamBrokerCapability | typeof decoderCapability | typeof webrtcSessionCapability | typeof cameraStreamsCapability | typeof calendarSourceCapability | typeof calendarsCapability | typeof motionDetectionCapability | typeof pipelineExecutorCapability | typeof detectionPipelineCapability | typeof cameraPipelineConfigCapability | typeof pipelineRunnerCapability | typeof pipelineOrchestratorCapability | typeof audioAnalyzerCapability | typeof audioAnalysisCapability | typeof audioCodecCapability | typeof embeddingEncoderCapability | typeof vectorStoreCapability | typeof deviceProviderCapability | typeof deviceManagerCapability | typeof deviceStateCapability | typeof authProviderCapability | typeof loginMethodCapability | typeof networkAccessCapability | typeof turnProviderCapability | typeof snapshotCapability | typeof llmCapability | typeof llmRuntimeCapability | typeof notificationOutputCapability | typeof composerCapability | typeof coreBlocksCapability | typeof notificationRulesCapability | typeof pipelineAnalyticsCapability | typeof metricsProviderCapability | typeof ptzCapability | typeof ptzAutotrackCapability | typeof navigationCapability | typeof consumablesCapability | typeof connectionTestCapability | typeof runningStateCapability | typeof rebootCapability | typeof deviceDiscoveryCapability | typeof brightnessCapability | typeof colorCapability | typeof climateControlCapability | typeof coverCapability | typeof valveCapability | typeof humidifierCapability | typeof waterHeaterCapability | typeof weatherCapability | typeof imageCapability | typeof lockControlCapability | typeof vacuumControlCapability | typeof petFeederCapability | typeof lawnMowerControlCapability | typeof fanControlCapability | typeof controlCapability | typeof notifierCapability | typeof mediaPlayerCapability | typeof meterCapability | typeof alarmPanelCapability | typeof presenceCapability | typeof scriptRunnerCapability | typeof actionSourceCapability | typeof actionsCapability | typeof automationControlCapability | typeof motionTriggerCapability | typeof zonesCapability | typeof zoneRulesCapability | typeof trainingCapability | typeof trainingProviderCapability | typeof zoneAnalyticsCapability | typeof audioMetricsCapability | typeof motionCapability | typeof contactCapability | typeof floodCapability | typeof smokeCapability | typeof carbonMonoxideCapability | typeof gasCapability | typeof groupActiveCapability | typeof groupCommandsCapability | typeof groupStatusCapability | typeof tamperCapability | typeof vibrationCapability | typeof connectivityCapability | typeof binaryCapability | typeof temperatureSensorCapability | typeof heatingValveCapability | typeof humiditySensorCapability | typeof ambientLightSensorCapability | typeof pressureSensorCapability | typeof powerMeterCapability | typeof airQualitySensorCapability | typeof numericSensorCapability | typeof enumSensorCapability | typeof recordingCapability | typeof recordingArchiveCapability | typeof recordingExportCapability | typeof recordingSignalCapability | typeof deviceOpsCapability | typeof displayPaletteCapability | typeof platformProbeCapability | typeof localNetworkCapability | typeof meshNetworkCapability | typeof userManagementCapability | typeof systemCapability | typeof networkQualityCapability | typeof toastCapability | typeof nodesCapability | typeof serverManagementCapability | typeof integrationsCapability | typeof addonsCapability | typeof oauthIntegrationCapability | typeof oidcConnectionsCapability | typeof streamParamsCapability | typeof streamCatalogCapability | typeof motionZonesCapability | typeof cameraGridLayoutCapability | typeof sceneMonitorCapability | typeof privacyMaskCapability | typeof dayNightCapability | typeof recordingOnboardCapability | typeof imageSettingsCapability | typeof osdCapability | typeof osdManagerCapability | typeof accessoriesCapability | typeof batteryCapability | typeof networkLinkCapability | typeof buttonCapability | typeof cameraCredentialsCapability | typeof deviceStatusCapability | typeof doorbellCapability | typeof eventEmitterCapability | typeof faceGalleryCapability | typeof featureProbeCapability | typeof intercomCapability | typeof nativeObjectDetectionCapability | typeof plateGalleryCapability | typeof switchCapability | typeof updateCapability | typeof videoclipsCapability | typeof deviceExtensionCapability | typeof dishwasherCapability;
|
|
449
453
|
export type CapabilityName = AnyCapability['name'];
|
|
450
454
|
export type ITypedReadinessRegistry = IReadinessRegistry<CapabilityName>;
|
package/dist/client.js
CHANGED
|
@@ -989,6 +989,54 @@ var SOURCE_CAP_ACTIVE_FIELD = {
|
|
|
989
989
|
vibration: "detected",
|
|
990
990
|
tamper: "tampered"
|
|
991
991
|
};
|
|
992
|
+
//#endregion
|
|
993
|
+
//#region src/catalogs/coco-classmap.ts
|
|
994
|
+
var MACRO_LABELS = [
|
|
995
|
+
{
|
|
996
|
+
id: "person",
|
|
997
|
+
name: "Person"
|
|
998
|
+
},
|
|
999
|
+
{
|
|
1000
|
+
id: "vehicle",
|
|
1001
|
+
name: "Vehicle"
|
|
1002
|
+
},
|
|
1003
|
+
{
|
|
1004
|
+
id: "animal",
|
|
1005
|
+
name: "Animal"
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
id: "package",
|
|
1009
|
+
name: "Package"
|
|
1010
|
+
}
|
|
1011
|
+
];
|
|
1012
|
+
new Set(MACRO_LABELS.map((l) => l.id));
|
|
1013
|
+
var COCO_TO_MACRO = {
|
|
1014
|
+
mapping: {
|
|
1015
|
+
person: "person",
|
|
1016
|
+
bicycle: "vehicle",
|
|
1017
|
+
car: "vehicle",
|
|
1018
|
+
motorcycle: "vehicle",
|
|
1019
|
+
airplane: "vehicle",
|
|
1020
|
+
bus: "vehicle",
|
|
1021
|
+
train: "vehicle",
|
|
1022
|
+
truck: "vehicle",
|
|
1023
|
+
boat: "vehicle",
|
|
1024
|
+
bird: "animal",
|
|
1025
|
+
cat: "animal",
|
|
1026
|
+
dog: "animal",
|
|
1027
|
+
horse: "animal",
|
|
1028
|
+
sheep: "animal",
|
|
1029
|
+
cow: "animal",
|
|
1030
|
+
elephant: "animal",
|
|
1031
|
+
bear: "animal",
|
|
1032
|
+
zebra: "animal",
|
|
1033
|
+
giraffe: "animal",
|
|
1034
|
+
suitcase: "package",
|
|
1035
|
+
backpack: "package",
|
|
1036
|
+
handbag: "package"
|
|
1037
|
+
},
|
|
1038
|
+
preserveOriginal: false
|
|
1039
|
+
};
|
|
992
1040
|
zod.z.object({
|
|
993
1041
|
field: zod.z.string().min(1),
|
|
994
1042
|
on: zod.z.literal("advance")
|
|
@@ -21503,54 +21551,6 @@ method(zod.z.object({}), zod.z.array(TargetKindSchema)), method(zod.z.object({})
|
|
|
21503
21551
|
auth: "admin"
|
|
21504
21552
|
});
|
|
21505
21553
|
//#endregion
|
|
21506
|
-
//#region src/catalogs/coco-classmap.ts
|
|
21507
|
-
var MACRO_LABELS = [
|
|
21508
|
-
{
|
|
21509
|
-
id: "person",
|
|
21510
|
-
name: "Person"
|
|
21511
|
-
},
|
|
21512
|
-
{
|
|
21513
|
-
id: "vehicle",
|
|
21514
|
-
name: "Vehicle"
|
|
21515
|
-
},
|
|
21516
|
-
{
|
|
21517
|
-
id: "animal",
|
|
21518
|
-
name: "Animal"
|
|
21519
|
-
},
|
|
21520
|
-
{
|
|
21521
|
-
id: "package",
|
|
21522
|
-
name: "Package"
|
|
21523
|
-
}
|
|
21524
|
-
];
|
|
21525
|
-
new Set(MACRO_LABELS.map((l) => l.id));
|
|
21526
|
-
var COCO_TO_MACRO = {
|
|
21527
|
-
mapping: {
|
|
21528
|
-
person: "person",
|
|
21529
|
-
bicycle: "vehicle",
|
|
21530
|
-
car: "vehicle",
|
|
21531
|
-
motorcycle: "vehicle",
|
|
21532
|
-
airplane: "vehicle",
|
|
21533
|
-
bus: "vehicle",
|
|
21534
|
-
train: "vehicle",
|
|
21535
|
-
truck: "vehicle",
|
|
21536
|
-
boat: "vehicle",
|
|
21537
|
-
bird: "animal",
|
|
21538
|
-
cat: "animal",
|
|
21539
|
-
dog: "animal",
|
|
21540
|
-
horse: "animal",
|
|
21541
|
-
sheep: "animal",
|
|
21542
|
-
cow: "animal",
|
|
21543
|
-
elephant: "animal",
|
|
21544
|
-
bear: "animal",
|
|
21545
|
-
zebra: "animal",
|
|
21546
|
-
giraffe: "animal",
|
|
21547
|
-
suitcase: "package",
|
|
21548
|
-
backpack: "package",
|
|
21549
|
-
handbag: "package"
|
|
21550
|
-
},
|
|
21551
|
-
preserveOriginal: false
|
|
21552
|
-
};
|
|
21553
|
-
//#endregion
|
|
21554
21554
|
//#region src/catalogs/audio-classmap.ts
|
|
21555
21555
|
var AUDIO_MACRO_LABELS = [
|
|
21556
21556
|
{
|
|
@@ -27214,6 +27214,12 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
27214
27214
|
removeZone: (input) => dispatch("zones", "zones", "removeZone", "mutation", input),
|
|
27215
27215
|
updateZone: (input) => dispatch("zones", "zones", "updateZone", "mutation", input)
|
|
27216
27216
|
};
|
|
27217
|
+
const actionsInterface = {
|
|
27218
|
+
get: (input) => dispatchSystem("actions", "get", "query", input),
|
|
27219
|
+
run: (input) => dispatchSystem("actions", "run", "mutation", input),
|
|
27220
|
+
listForCamera: (input) => dispatchSystem("actions", "listForCamera", "query", input),
|
|
27221
|
+
getLinks: (input) => dispatchSystem("actions", "getLinks", "query", input)
|
|
27222
|
+
};
|
|
27217
27223
|
const addonSettingsInterface = {
|
|
27218
27224
|
getDeviceSettings: (input) => dispatchSystem("addonSettings", "getDeviceSettings", "query", input),
|
|
27219
27225
|
updateDeviceSettings: (input) => dispatchSystem("addonSettings", "updateDeviceSettings", "mutation", input)
|
|
@@ -27549,6 +27555,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
27549
27555
|
...bound("zone-analytics") ? { zoneAnalytics: zoneAnalyticsInterface } : {},
|
|
27550
27556
|
...bound("zone-rules") ? { zoneRules: zoneRulesInterface } : {},
|
|
27551
27557
|
...bound("zones") ? { zones: zonesInterface } : {},
|
|
27558
|
+
actions: actionsInterface,
|
|
27552
27559
|
addonSettings: addonSettingsInterface,
|
|
27553
27560
|
audioAnalyzer: audioAnalyzerInterface,
|
|
27554
27561
|
deviceAdoption: deviceAdoptionInterface,
|
|
@@ -28251,6 +28258,20 @@ function createSystemProxy(api) {
|
|
|
28251
28258
|
return invokeTrpcLeaf(api, capProp, method, kind, input, push);
|
|
28252
28259
|
}
|
|
28253
28260
|
return {
|
|
28261
|
+
actions: {
|
|
28262
|
+
list: (input) => dispatch("actions", "list", "query", input),
|
|
28263
|
+
stop: (input) => dispatch("actions", "stop", "mutation", input),
|
|
28264
|
+
getTraces: (input) => dispatch("actions", "getTraces", "query", input),
|
|
28265
|
+
create: (input) => dispatch("actions", "create", "mutation", input),
|
|
28266
|
+
update: (input) => dispatch("actions", "update", "mutation", input),
|
|
28267
|
+
delete: (input) => dispatch("actions", "delete", "mutation", input),
|
|
28268
|
+
setLinks: (input) => dispatch("actions", "setLinks", "mutation", input)
|
|
28269
|
+
},
|
|
28270
|
+
actionSource: {
|
|
28271
|
+
listActions: (input) => dispatch("actionSource", "listActions", "query", input),
|
|
28272
|
+
runAction: (input) => dispatch("actionSource", "runAction", "mutation", input),
|
|
28273
|
+
stopAction: (input) => dispatch("actionSource", "stopAction", "mutation", input)
|
|
28274
|
+
},
|
|
28254
28275
|
addonPages: { listPages: (input) => dispatch("addonPages", "listPages", "query", input) },
|
|
28255
28276
|
addons: {
|
|
28256
28277
|
list: (input) => dispatch("addons", "list", "query", input),
|
|
@@ -28394,7 +28415,10 @@ function createSystemProxy(api) {
|
|
|
28394
28415
|
listCompositions: (input) => dispatch("coreBlocks", "listCompositions", "query", input),
|
|
28395
28416
|
getCustomization: (input) => dispatch("coreBlocks", "getCustomization", "query", input),
|
|
28396
28417
|
listComposableCaps: (input) => dispatch("coreBlocks", "listComposableCaps", "query", input),
|
|
28397
|
-
validateComposition: (input) => dispatch("coreBlocks", "validateComposition", "mutation", input)
|
|
28418
|
+
validateComposition: (input) => dispatch("coreBlocks", "validateComposition", "mutation", input),
|
|
28419
|
+
reportAutomationRun: (input) => dispatch("coreBlocks", "reportAutomationRun", "mutation", input),
|
|
28420
|
+
getAutomationRunState: (input) => dispatch("coreBlocks", "getAutomationRunState", "query", input),
|
|
28421
|
+
getTraces: (input) => dispatch("coreBlocks", "getTraces", "query", input)
|
|
28398
28422
|
},
|
|
28399
28423
|
decoder: {
|
|
28400
28424
|
getInfo: (input) => dispatch("decoder", "getInfo", "query", input),
|
package/dist/client.mjs
CHANGED
|
@@ -988,6 +988,54 @@ var SOURCE_CAP_ACTIVE_FIELD = {
|
|
|
988
988
|
vibration: "detected",
|
|
989
989
|
tamper: "tampered"
|
|
990
990
|
};
|
|
991
|
+
//#endregion
|
|
992
|
+
//#region src/catalogs/coco-classmap.ts
|
|
993
|
+
var MACRO_LABELS = [
|
|
994
|
+
{
|
|
995
|
+
id: "person",
|
|
996
|
+
name: "Person"
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
id: "vehicle",
|
|
1000
|
+
name: "Vehicle"
|
|
1001
|
+
},
|
|
1002
|
+
{
|
|
1003
|
+
id: "animal",
|
|
1004
|
+
name: "Animal"
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
id: "package",
|
|
1008
|
+
name: "Package"
|
|
1009
|
+
}
|
|
1010
|
+
];
|
|
1011
|
+
new Set(MACRO_LABELS.map((l) => l.id));
|
|
1012
|
+
var COCO_TO_MACRO = {
|
|
1013
|
+
mapping: {
|
|
1014
|
+
person: "person",
|
|
1015
|
+
bicycle: "vehicle",
|
|
1016
|
+
car: "vehicle",
|
|
1017
|
+
motorcycle: "vehicle",
|
|
1018
|
+
airplane: "vehicle",
|
|
1019
|
+
bus: "vehicle",
|
|
1020
|
+
train: "vehicle",
|
|
1021
|
+
truck: "vehicle",
|
|
1022
|
+
boat: "vehicle",
|
|
1023
|
+
bird: "animal",
|
|
1024
|
+
cat: "animal",
|
|
1025
|
+
dog: "animal",
|
|
1026
|
+
horse: "animal",
|
|
1027
|
+
sheep: "animal",
|
|
1028
|
+
cow: "animal",
|
|
1029
|
+
elephant: "animal",
|
|
1030
|
+
bear: "animal",
|
|
1031
|
+
zebra: "animal",
|
|
1032
|
+
giraffe: "animal",
|
|
1033
|
+
suitcase: "package",
|
|
1034
|
+
backpack: "package",
|
|
1035
|
+
handbag: "package"
|
|
1036
|
+
},
|
|
1037
|
+
preserveOriginal: false
|
|
1038
|
+
};
|
|
991
1039
|
z.object({
|
|
992
1040
|
field: z.string().min(1),
|
|
993
1041
|
on: z.literal("advance")
|
|
@@ -21502,54 +21550,6 @@ method(z.object({}), z.array(TargetKindSchema)), method(z.object({}), z.array(Ta
|
|
|
21502
21550
|
auth: "admin"
|
|
21503
21551
|
});
|
|
21504
21552
|
//#endregion
|
|
21505
|
-
//#region src/catalogs/coco-classmap.ts
|
|
21506
|
-
var MACRO_LABELS = [
|
|
21507
|
-
{
|
|
21508
|
-
id: "person",
|
|
21509
|
-
name: "Person"
|
|
21510
|
-
},
|
|
21511
|
-
{
|
|
21512
|
-
id: "vehicle",
|
|
21513
|
-
name: "Vehicle"
|
|
21514
|
-
},
|
|
21515
|
-
{
|
|
21516
|
-
id: "animal",
|
|
21517
|
-
name: "Animal"
|
|
21518
|
-
},
|
|
21519
|
-
{
|
|
21520
|
-
id: "package",
|
|
21521
|
-
name: "Package"
|
|
21522
|
-
}
|
|
21523
|
-
];
|
|
21524
|
-
new Set(MACRO_LABELS.map((l) => l.id));
|
|
21525
|
-
var COCO_TO_MACRO = {
|
|
21526
|
-
mapping: {
|
|
21527
|
-
person: "person",
|
|
21528
|
-
bicycle: "vehicle",
|
|
21529
|
-
car: "vehicle",
|
|
21530
|
-
motorcycle: "vehicle",
|
|
21531
|
-
airplane: "vehicle",
|
|
21532
|
-
bus: "vehicle",
|
|
21533
|
-
train: "vehicle",
|
|
21534
|
-
truck: "vehicle",
|
|
21535
|
-
boat: "vehicle",
|
|
21536
|
-
bird: "animal",
|
|
21537
|
-
cat: "animal",
|
|
21538
|
-
dog: "animal",
|
|
21539
|
-
horse: "animal",
|
|
21540
|
-
sheep: "animal",
|
|
21541
|
-
cow: "animal",
|
|
21542
|
-
elephant: "animal",
|
|
21543
|
-
bear: "animal",
|
|
21544
|
-
zebra: "animal",
|
|
21545
|
-
giraffe: "animal",
|
|
21546
|
-
suitcase: "package",
|
|
21547
|
-
backpack: "package",
|
|
21548
|
-
handbag: "package"
|
|
21549
|
-
},
|
|
21550
|
-
preserveOriginal: false
|
|
21551
|
-
};
|
|
21552
|
-
//#endregion
|
|
21553
21553
|
//#region src/catalogs/audio-classmap.ts
|
|
21554
21554
|
var AUDIO_MACRO_LABELS = [
|
|
21555
21555
|
{
|
|
@@ -27213,6 +27213,12 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
27213
27213
|
removeZone: (input) => dispatch("zones", "zones", "removeZone", "mutation", input),
|
|
27214
27214
|
updateZone: (input) => dispatch("zones", "zones", "updateZone", "mutation", input)
|
|
27215
27215
|
};
|
|
27216
|
+
const actionsInterface = {
|
|
27217
|
+
get: (input) => dispatchSystem("actions", "get", "query", input),
|
|
27218
|
+
run: (input) => dispatchSystem("actions", "run", "mutation", input),
|
|
27219
|
+
listForCamera: (input) => dispatchSystem("actions", "listForCamera", "query", input),
|
|
27220
|
+
getLinks: (input) => dispatchSystem("actions", "getLinks", "query", input)
|
|
27221
|
+
};
|
|
27216
27222
|
const addonSettingsInterface = {
|
|
27217
27223
|
getDeviceSettings: (input) => dispatchSystem("addonSettings", "getDeviceSettings", "query", input),
|
|
27218
27224
|
updateDeviceSettings: (input) => dispatchSystem("addonSettings", "updateDeviceSettings", "mutation", input)
|
|
@@ -27548,6 +27554,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
27548
27554
|
...bound("zone-analytics") ? { zoneAnalytics: zoneAnalyticsInterface } : {},
|
|
27549
27555
|
...bound("zone-rules") ? { zoneRules: zoneRulesInterface } : {},
|
|
27550
27556
|
...bound("zones") ? { zones: zonesInterface } : {},
|
|
27557
|
+
actions: actionsInterface,
|
|
27551
27558
|
addonSettings: addonSettingsInterface,
|
|
27552
27559
|
audioAnalyzer: audioAnalyzerInterface,
|
|
27553
27560
|
deviceAdoption: deviceAdoptionInterface,
|
|
@@ -28250,6 +28257,20 @@ function createSystemProxy(api) {
|
|
|
28250
28257
|
return invokeTrpcLeaf(api, capProp, method, kind, input, push);
|
|
28251
28258
|
}
|
|
28252
28259
|
return {
|
|
28260
|
+
actions: {
|
|
28261
|
+
list: (input) => dispatch("actions", "list", "query", input),
|
|
28262
|
+
stop: (input) => dispatch("actions", "stop", "mutation", input),
|
|
28263
|
+
getTraces: (input) => dispatch("actions", "getTraces", "query", input),
|
|
28264
|
+
create: (input) => dispatch("actions", "create", "mutation", input),
|
|
28265
|
+
update: (input) => dispatch("actions", "update", "mutation", input),
|
|
28266
|
+
delete: (input) => dispatch("actions", "delete", "mutation", input),
|
|
28267
|
+
setLinks: (input) => dispatch("actions", "setLinks", "mutation", input)
|
|
28268
|
+
},
|
|
28269
|
+
actionSource: {
|
|
28270
|
+
listActions: (input) => dispatch("actionSource", "listActions", "query", input),
|
|
28271
|
+
runAction: (input) => dispatch("actionSource", "runAction", "mutation", input),
|
|
28272
|
+
stopAction: (input) => dispatch("actionSource", "stopAction", "mutation", input)
|
|
28273
|
+
},
|
|
28253
28274
|
addonPages: { listPages: (input) => dispatch("addonPages", "listPages", "query", input) },
|
|
28254
28275
|
addons: {
|
|
28255
28276
|
list: (input) => dispatch("addons", "list", "query", input),
|
|
@@ -28393,7 +28414,10 @@ function createSystemProxy(api) {
|
|
|
28393
28414
|
listCompositions: (input) => dispatch("coreBlocks", "listCompositions", "query", input),
|
|
28394
28415
|
getCustomization: (input) => dispatch("coreBlocks", "getCustomization", "query", input),
|
|
28395
28416
|
listComposableCaps: (input) => dispatch("coreBlocks", "listComposableCaps", "query", input),
|
|
28396
|
-
validateComposition: (input) => dispatch("coreBlocks", "validateComposition", "mutation", input)
|
|
28417
|
+
validateComposition: (input) => dispatch("coreBlocks", "validateComposition", "mutation", input),
|
|
28418
|
+
reportAutomationRun: (input) => dispatch("coreBlocks", "reportAutomationRun", "mutation", input),
|
|
28419
|
+
getAutomationRunState: (input) => dispatch("coreBlocks", "getAutomationRunState", "query", input),
|
|
28420
|
+
getTraces: (input) => dispatch("coreBlocks", "getTraces", "query", input)
|
|
28397
28421
|
},
|
|
28398
28422
|
decoder: {
|
|
28399
28423
|
getInfo: (input) => dispatch("decoder", "getInfo", "query", input),
|
|
@@ -761,6 +761,11 @@ export declare enum EventCategory {
|
|
|
761
761
|
* Payload: `{ deviceId, childDeviceIds, hiddenChildIds }`.
|
|
762
762
|
*/
|
|
763
763
|
AccessoriesChanged = "accessories.onAccessoriesChanged",
|
|
764
|
+
/**
|
|
765
|
+
* An action run started or ended. Emitted by the `actions` surface.
|
|
766
|
+
* Payload: `ActionRunChanged` (`{ actionId, runId, isRunning, outcome?, lastRunAt, lastError }`).
|
|
767
|
+
*/
|
|
768
|
+
ActionsRunChanged = "actions.onRunChanged",
|
|
764
769
|
/**
|
|
765
770
|
* Progress update from a running model conversion job.
|
|
766
771
|
* Payload: `{ kind: 'model-convert', phase, sessionId?, pct?, detail? }`.
|
package/dist/enums.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_event_category = require("./event-category-
|
|
2
|
+
const require_event_category = require("./event-category-BhzwWQCH.js");
|
|
3
3
|
//#region src/enums/event-source-type.ts
|
|
4
4
|
var EventSourceType = /* @__PURE__ */ function(EventSourceType) {
|
|
5
5
|
EventSourceType["Addon"] = "addon";
|
package/dist/enums.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as EventCategory } from "./event-category-
|
|
1
|
+
import { t as EventCategory } from "./event-category-hdMR7CTW.mjs";
|
|
2
2
|
//#region src/enums/event-source-type.ts
|
|
3
3
|
var EventSourceType = /* @__PURE__ */ function(EventSourceType) {
|
|
4
4
|
EventSourceType["Addon"] = "addon";
|
|
@@ -763,6 +763,11 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
763
763
|
*/
|
|
764
764
|
EventCategory["AccessoriesChanged"] = "accessories.onAccessoriesChanged";
|
|
765
765
|
/**
|
|
766
|
+
* An action run started or ended. Emitted by the `actions` surface.
|
|
767
|
+
* Payload: `ActionRunChanged` (`{ actionId, runId, isRunning, outcome?, lastRunAt, lastError }`).
|
|
768
|
+
*/
|
|
769
|
+
EventCategory["ActionsRunChanged"] = "actions.onRunChanged";
|
|
770
|
+
/**
|
|
766
771
|
* Progress update from a running model conversion job.
|
|
767
772
|
* Payload: `{ kind: 'model-convert', phase, sessionId?, pct?, detail? }`.
|
|
768
773
|
* Emitted by `addon-model-studio` on the converting node.
|
|
@@ -763,6 +763,11 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
763
763
|
*/
|
|
764
764
|
EventCategory["AccessoriesChanged"] = "accessories.onAccessoriesChanged";
|
|
765
765
|
/**
|
|
766
|
+
* An action run started or ended. Emitted by the `actions` surface.
|
|
767
|
+
* Payload: `ActionRunChanged` (`{ actionId, runId, isRunning, outcome?, lastRunAt, lastError }`).
|
|
768
|
+
*/
|
|
769
|
+
EventCategory["ActionsRunChanged"] = "actions.onRunChanged";
|
|
770
|
+
/**
|
|
766
771
|
* Progress update from a running model conversion job.
|
|
767
772
|
* Payload: `{ kind: 'model-convert', phase, sessionId?, pct?, detail? }`.
|
|
768
773
|
* Emitted by `addon-model-studio` on the converting node.
|
|
@@ -3,6 +3,8 @@ import type { TRPCBuiltRouter, TRPCDecorateCreateRouterOptions, TRPCQueryProcedu
|
|
|
3
3
|
import type { Router as TrpcCoreRouter } from '@trpc/server/unstable-core-do-not-import';
|
|
4
4
|
import type { z } from 'zod';
|
|
5
5
|
import type { accessoriesCapability } from '../capabilities/accessories.cap.js';
|
|
6
|
+
import type { actionSourceCapability } from '../capabilities/action-source.cap.js';
|
|
7
|
+
import type { actionsCapability } from '../capabilities/actions.cap.js';
|
|
6
8
|
import type { addonPagesSourceCapability } from '../capabilities/addon-pages-source.cap.js';
|
|
7
9
|
import type { addonPagesCapability } from '../capabilities/addon-pages.cap.js';
|
|
8
10
|
import type { addonSettingsCapability } from '../capabilities/addon-settings.cap.js';
|
|
@@ -187,6 +189,118 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
187
189
|
meta: object;
|
|
188
190
|
}>;
|
|
189
191
|
}>>;
|
|
192
|
+
actionSource: TRPCBuiltRouter<{
|
|
193
|
+
ctx: TrpcContext;
|
|
194
|
+
meta: object;
|
|
195
|
+
errorShape: AugmentedErrorShape;
|
|
196
|
+
transformer: true;
|
|
197
|
+
}, TRPCDecorateCreateRouterOptions<{
|
|
198
|
+
listActions: TRPCQueryProcedure<{
|
|
199
|
+
input: {
|
|
200
|
+
[x: string]: unknown;
|
|
201
|
+
} & z.input<typeof actionSourceCapability.methods.listActions.input>;
|
|
202
|
+
output: z.infer<typeof actionSourceCapability.methods.listActions.output>;
|
|
203
|
+
meta: object;
|
|
204
|
+
}>;
|
|
205
|
+
runAction: TRPCMutationProcedure<{
|
|
206
|
+
input: {
|
|
207
|
+
[x: string]: unknown;
|
|
208
|
+
} & z.input<typeof actionSourceCapability.methods.runAction.input>;
|
|
209
|
+
output: z.infer<typeof actionSourceCapability.methods.runAction.output>;
|
|
210
|
+
meta: object;
|
|
211
|
+
}>;
|
|
212
|
+
stopAction: TRPCMutationProcedure<{
|
|
213
|
+
input: {
|
|
214
|
+
[x: string]: unknown;
|
|
215
|
+
} & z.input<typeof actionSourceCapability.methods.stopAction.input>;
|
|
216
|
+
output: z.infer<typeof actionSourceCapability.methods.stopAction.output>;
|
|
217
|
+
meta: object;
|
|
218
|
+
}>;
|
|
219
|
+
}>>;
|
|
220
|
+
actions: TRPCBuiltRouter<{
|
|
221
|
+
ctx: TrpcContext;
|
|
222
|
+
meta: object;
|
|
223
|
+
errorShape: AugmentedErrorShape;
|
|
224
|
+
transformer: true;
|
|
225
|
+
}, TRPCDecorateCreateRouterOptions<{
|
|
226
|
+
list: TRPCQueryProcedure<{
|
|
227
|
+
input: {
|
|
228
|
+
[x: string]: unknown;
|
|
229
|
+
} & z.input<typeof actionsCapability.methods.list.input>;
|
|
230
|
+
output: z.infer<typeof actionsCapability.methods.list.output>;
|
|
231
|
+
meta: object;
|
|
232
|
+
}>;
|
|
233
|
+
get: TRPCQueryProcedure<{
|
|
234
|
+
input: {
|
|
235
|
+
[x: string]: unknown;
|
|
236
|
+
} & z.input<typeof actionsCapability.methods.get.input>;
|
|
237
|
+
output: z.infer<typeof actionsCapability.methods.get.output>;
|
|
238
|
+
meta: object;
|
|
239
|
+
}>;
|
|
240
|
+
run: TRPCMutationProcedure<{
|
|
241
|
+
input: {
|
|
242
|
+
[x: string]: unknown;
|
|
243
|
+
} & z.input<typeof actionsCapability.methods.run.input>;
|
|
244
|
+
output: z.infer<typeof actionsCapability.methods.run.output>;
|
|
245
|
+
meta: object;
|
|
246
|
+
}>;
|
|
247
|
+
stop: TRPCMutationProcedure<{
|
|
248
|
+
input: {
|
|
249
|
+
[x: string]: unknown;
|
|
250
|
+
} & z.input<typeof actionsCapability.methods.stop.input>;
|
|
251
|
+
output: z.infer<typeof actionsCapability.methods.stop.output>;
|
|
252
|
+
meta: object;
|
|
253
|
+
}>;
|
|
254
|
+
getTraces: TRPCQueryProcedure<{
|
|
255
|
+
input: {
|
|
256
|
+
[x: string]: unknown;
|
|
257
|
+
} & z.input<typeof actionsCapability.methods.getTraces.input>;
|
|
258
|
+
output: z.infer<typeof actionsCapability.methods.getTraces.output>;
|
|
259
|
+
meta: object;
|
|
260
|
+
}>;
|
|
261
|
+
create: TRPCMutationProcedure<{
|
|
262
|
+
input: {
|
|
263
|
+
[x: string]: unknown;
|
|
264
|
+
} & z.input<typeof actionsCapability.methods.create.input>;
|
|
265
|
+
output: z.infer<typeof actionsCapability.methods.create.output>;
|
|
266
|
+
meta: object;
|
|
267
|
+
}>;
|
|
268
|
+
update: TRPCMutationProcedure<{
|
|
269
|
+
input: {
|
|
270
|
+
[x: string]: unknown;
|
|
271
|
+
} & z.input<typeof actionsCapability.methods.update.input>;
|
|
272
|
+
output: z.infer<typeof actionsCapability.methods.update.output>;
|
|
273
|
+
meta: object;
|
|
274
|
+
}>;
|
|
275
|
+
delete: TRPCMutationProcedure<{
|
|
276
|
+
input: {
|
|
277
|
+
[x: string]: unknown;
|
|
278
|
+
} & z.input<typeof actionsCapability.methods.delete.input>;
|
|
279
|
+
output: z.infer<typeof actionsCapability.methods.delete.output>;
|
|
280
|
+
meta: object;
|
|
281
|
+
}>;
|
|
282
|
+
listForCamera: TRPCQueryProcedure<{
|
|
283
|
+
input: {
|
|
284
|
+
[x: string]: unknown;
|
|
285
|
+
} & z.input<typeof actionsCapability.methods.listForCamera.input>;
|
|
286
|
+
output: z.infer<typeof actionsCapability.methods.listForCamera.output>;
|
|
287
|
+
meta: object;
|
|
288
|
+
}>;
|
|
289
|
+
getLinks: TRPCQueryProcedure<{
|
|
290
|
+
input: {
|
|
291
|
+
[x: string]: unknown;
|
|
292
|
+
} & z.input<typeof actionsCapability.methods.getLinks.input>;
|
|
293
|
+
output: z.infer<typeof actionsCapability.methods.getLinks.output>;
|
|
294
|
+
meta: object;
|
|
295
|
+
}>;
|
|
296
|
+
setLinks: TRPCMutationProcedure<{
|
|
297
|
+
input: {
|
|
298
|
+
[x: string]: unknown;
|
|
299
|
+
} & z.input<typeof actionsCapability.methods.setLinks.input>;
|
|
300
|
+
output: z.infer<typeof actionsCapability.methods.setLinks.output>;
|
|
301
|
+
meta: object;
|
|
302
|
+
}>;
|
|
303
|
+
}>>;
|
|
190
304
|
addonPages: TRPCBuiltRouter<{
|
|
191
305
|
ctx: TrpcContext;
|
|
192
306
|
meta: object;
|
|
@@ -1787,6 +1901,27 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
1787
1901
|
output: z.infer<typeof coreBlocksCapability.methods.validateComposition.output>;
|
|
1788
1902
|
meta: object;
|
|
1789
1903
|
}>;
|
|
1904
|
+
reportAutomationRun: TRPCMutationProcedure<{
|
|
1905
|
+
input: {
|
|
1906
|
+
[x: string]: unknown;
|
|
1907
|
+
} & z.input<typeof coreBlocksCapability.methods.reportAutomationRun.input>;
|
|
1908
|
+
output: z.infer<typeof coreBlocksCapability.methods.reportAutomationRun.output>;
|
|
1909
|
+
meta: object;
|
|
1910
|
+
}>;
|
|
1911
|
+
getAutomationRunState: TRPCQueryProcedure<{
|
|
1912
|
+
input: {
|
|
1913
|
+
[x: string]: unknown;
|
|
1914
|
+
} & z.input<typeof coreBlocksCapability.methods.getAutomationRunState.input>;
|
|
1915
|
+
output: z.infer<typeof coreBlocksCapability.methods.getAutomationRunState.output>;
|
|
1916
|
+
meta: object;
|
|
1917
|
+
}>;
|
|
1918
|
+
getTraces: TRPCQueryProcedure<{
|
|
1919
|
+
input: {
|
|
1920
|
+
[x: string]: unknown;
|
|
1921
|
+
} & z.input<typeof coreBlocksCapability.methods.getTraces.input>;
|
|
1922
|
+
output: z.infer<typeof coreBlocksCapability.methods.getTraces.output>;
|
|
1923
|
+
meta: object;
|
|
1924
|
+
}>;
|
|
1790
1925
|
}>>;
|
|
1791
1926
|
cover: TRPCBuiltRouter<{
|
|
1792
1927
|
ctx: TrpcContext;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { accessoriesCapability } from '../capabilities/accessories.cap.js';
|
|
2
|
+
export { actionSourceCapability } from '../capabilities/action-source.cap.js';
|
|
3
|
+
export { actionsCapability } from '../capabilities/actions.cap.js';
|
|
2
4
|
export { addonPagesCapability } from '../capabilities/addon-pages.cap.js';
|
|
3
5
|
export { addonPagesSourceCapability } from '../capabilities/addon-pages-source.cap.js';
|
|
4
6
|
export { addonRoutesCapability } from '../capabilities/addon-routes.cap.js';
|
|
@@ -185,6 +187,8 @@ export { zoneRulesCapability } from '../capabilities/zone-rules.cap.js';
|
|
|
185
187
|
export { zonesCapability } from '../capabilities/zones.cap.js';
|
|
186
188
|
export declare const CAPABILITY_NAMES: {
|
|
187
189
|
readonly accessories: 'accessories';
|
|
190
|
+
readonly actionSource: 'action-source';
|
|
191
|
+
readonly actions: 'actions';
|
|
188
192
|
readonly addonPages: 'addon-pages';
|
|
189
193
|
readonly addonPagesSource: 'addon-pages-source';
|
|
190
194
|
readonly addonRoutes: 'addon-routes';
|
|
@@ -384,6 +388,8 @@ export declare const CAPABILITY_ROUTER_KEYS: ReadonlyArray<{
|
|
|
384
388
|
*/
|
|
385
389
|
export interface CapabilityRouterMap<TRouter = unknown> {
|
|
386
390
|
readonly accessories: TRouter;
|
|
391
|
+
readonly actionSource: TRouter;
|
|
392
|
+
readonly actions: TRouter;
|
|
387
393
|
readonly addonPages: TRouter;
|
|
388
394
|
readonly addonPagesSource: TRouter;
|
|
389
395
|
readonly addonRoutes: TRouter;
|
|
@@ -569,12 +575,12 @@ export interface CapabilityRouterMap<TRouter = unknown> {
|
|
|
569
575
|
readonly zoneRules: TRouter;
|
|
570
576
|
readonly zones: TRouter;
|
|
571
577
|
}
|
|
572
|
-
/** Capability names whose mode is `singleton` (
|
|
573
|
-
export declare const SINGLETON_CAPABILITY_NAMES: readonly ['accessories', 'addon-pages', 'addon-settings', 'addon-widgets', 'addons', 'admin-ui', 'air-quality-sensor', 'alarm-panel', 'alerts', 'ambient-light-sensor', 'audio-analysis', 'audio-analyzer', 'audio-codec', 'audio-metrics', 'automation-control', 'backup', 'battery', 'binary', 'brightness', 'button', 'calendars', 'camera-credentials', 'camera-grid-layout', 'camera-pipeline-config', 'camera-streams', 'carbon-monoxide', 'climate-control', 'color', 'composer', 'connectivity', 'consumables', 'contact', 'control', 'core-blocks', 'cover', 'database-snapshot', 'day-night', 'decoder', 'detection-pipeline', 'device-admin-link', 'device-credentials', 'device-discovery', 'device-history', 'device-manager', 'device-ops', 'device-state', 'device-status', 'dishwasher', 'display-palette', 'doorbell', 'enum-sensor', 'event-emitter', 'face-gallery', 'fan-control', 'feature-probe', 'filesystem-browse', 'flood', 'gas', 'group-active', 'group-commands', 'group-status', 'heating-valve', 'humidifier', 'humidity-sensor', 'image', 'image-settings', 'integrations', 'intercom', 'keychain', 'keychain-admin', 'lawn-mower-control', 'llm-runtime', 'local-network', 'lock-control', 'media-player', 'meter', 'metrics-provider', 'model-convert', 'model-distributor', 'motion', 'motion-detection', 'motion-trigger', 'motion-zones', 'native-object-detection', 'navigation', 'network-link', 'network-quality', 'node-certificates', 'nodes', 'notification-rules', 'notifier', 'numeric-sensor', 'oidc-connections', 'osd', 'osd-manager', 'pet-feeder', 'pipeline-analytics', 'pipeline-executor', 'pipeline-orchestrator', 'pipeline-runner', 'plate-gallery', 'platform-probe', 'power-meter', 'presence', 'pressure-sensor', 'privacy-mask', 'ptz', 'ptz-autotrack', 'reboot', 'record-entries', 'recording-archive', 'recording-export', 'recording-onboard', 'recording-signal', 'records', 'running-state', 'scene-monitor', 'script-runner', 'server-management', 'settings-store', 'smoke', 'snapshot', 'sso-bridge', 'storage', 'storage-admin', 'storage-migration', 'stream-broker', 'stream-catalog', 'stream-params', 'stream-signals', 'switch', 'system', 'tamper', 'temperature-sensor', 'terminal-session', 'toast', 'training', 'update', 'user-management', 'vacuum-control', 'valve', 'vector-store', 'vibration', 'viewer-ui', 'water-heater', 'weather', 'webrtc-session', 'zone-analytics', 'zone-rules', 'zones'];
|
|
578
|
+
/** Capability names whose mode is `singleton` (151 caps). */
|
|
579
|
+
export declare const SINGLETON_CAPABILITY_NAMES: readonly ['accessories', 'actions', 'addon-pages', 'addon-settings', 'addon-widgets', 'addons', 'admin-ui', 'air-quality-sensor', 'alarm-panel', 'alerts', 'ambient-light-sensor', 'audio-analysis', 'audio-analyzer', 'audio-codec', 'audio-metrics', 'automation-control', 'backup', 'battery', 'binary', 'brightness', 'button', 'calendars', 'camera-credentials', 'camera-grid-layout', 'camera-pipeline-config', 'camera-streams', 'carbon-monoxide', 'climate-control', 'color', 'composer', 'connectivity', 'consumables', 'contact', 'control', 'core-blocks', 'cover', 'database-snapshot', 'day-night', 'decoder', 'detection-pipeline', 'device-admin-link', 'device-credentials', 'device-discovery', 'device-history', 'device-manager', 'device-ops', 'device-state', 'device-status', 'dishwasher', 'display-palette', 'doorbell', 'enum-sensor', 'event-emitter', 'face-gallery', 'fan-control', 'feature-probe', 'filesystem-browse', 'flood', 'gas', 'group-active', 'group-commands', 'group-status', 'heating-valve', 'humidifier', 'humidity-sensor', 'image', 'image-settings', 'integrations', 'intercom', 'keychain', 'keychain-admin', 'lawn-mower-control', 'llm-runtime', 'local-network', 'lock-control', 'media-player', 'meter', 'metrics-provider', 'model-convert', 'model-distributor', 'motion', 'motion-detection', 'motion-trigger', 'motion-zones', 'native-object-detection', 'navigation', 'network-link', 'network-quality', 'node-certificates', 'nodes', 'notification-rules', 'notifier', 'numeric-sensor', 'oidc-connections', 'osd', 'osd-manager', 'pet-feeder', 'pipeline-analytics', 'pipeline-executor', 'pipeline-orchestrator', 'pipeline-runner', 'plate-gallery', 'platform-probe', 'power-meter', 'presence', 'pressure-sensor', 'privacy-mask', 'ptz', 'ptz-autotrack', 'reboot', 'record-entries', 'recording-archive', 'recording-export', 'recording-onboard', 'recording-signal', 'records', 'running-state', 'scene-monitor', 'script-runner', 'server-management', 'settings-store', 'smoke', 'snapshot', 'sso-bridge', 'storage', 'storage-admin', 'storage-migration', 'stream-broker', 'stream-catalog', 'stream-params', 'stream-signals', 'switch', 'system', 'tamper', 'temperature-sensor', 'terminal-session', 'toast', 'training', 'update', 'user-management', 'vacuum-control', 'valve', 'vector-store', 'vibration', 'viewer-ui', 'water-heater', 'weather', 'webrtc-session', 'zone-analytics', 'zone-rules', 'zones'];
|
|
574
580
|
/** Union of singleton capability names (literal string union). */
|
|
575
581
|
export type SingletonCapabilityName = typeof SINGLETON_CAPABILITY_NAMES[number];
|
|
576
|
-
/** Capability names whose mode is `collection` (
|
|
577
|
-
export declare const COLLECTION_CAPABILITY_NAMES: readonly ['addon-pages-source', 'addon-routes', 'addon-widgets-source', 'auth-provider', 'broker', 'calendar-source', 'connection-test', 'custom-model-registry', 'data-store-provider', 'device-adoption', 'device-export', 'device-extension', 'device-provider', 'device-removal-hook', 'embedding-encoder', 'failure-contribution', 'llm', 'load-contribution', 'log-channels', 'log-destination', 'login-method', 'mesh-network', 'mqtt-broker', 'network-access', 'notification-output', 'oauth-integration', 'recording', 'smtp-provider', 'storage-evictable', 'storage-occupancy', 'storage-provider', 'training-provider', 'turn-provider', 'user-passkeys', 'videoclips'];
|
|
582
|
+
/** Capability names whose mode is `collection` (36 caps). */
|
|
583
|
+
export declare const COLLECTION_CAPABILITY_NAMES: readonly ['action-source', 'addon-pages-source', 'addon-routes', 'addon-widgets-source', 'auth-provider', 'broker', 'calendar-source', 'connection-test', 'custom-model-registry', 'data-store-provider', 'device-adoption', 'device-export', 'device-extension', 'device-provider', 'device-removal-hook', 'embedding-encoder', 'failure-contribution', 'llm', 'load-contribution', 'log-channels', 'log-destination', 'login-method', 'mesh-network', 'mqtt-broker', 'network-access', 'notification-output', 'oauth-integration', 'recording', 'smtp-provider', 'storage-evictable', 'storage-occupancy', 'storage-provider', 'training-provider', 'turn-provider', 'user-passkeys', 'videoclips'];
|
|
578
584
|
/** Union of collection capability names (literal string union). */
|
|
579
585
|
export type CollectionCapabilityName = typeof COLLECTION_CAPABILITY_NAMES[number];
|
|
580
586
|
/** Capability mode lookup at runtime — mirrors the `.cap.ts` definitions. */
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* barrel (`ALL_CAPABILITY_DEFINITIONS`), which would cost ~144MB RSS per
|
|
9
9
|
* forked runner. See docs/decisions/adr-0028.md.
|
|
10
10
|
*
|
|
11
|
-
* Coverage:
|
|
11
|
+
* Coverage: 27 collection caps, 45 array methods.
|
|
12
12
|
*/
|
|
13
13
|
export declare const COLLECTION_ARRAY_METHODS: Readonly<Record<string, readonly string[]>>;
|
|
14
14
|
/**
|