@mega-yfue/eufy-sdk / CapabilityDescriptor
Interface: CapabilityDescriptor
What one capability exposes on a device — the join of its bound object and its own declaration.
Properties
accessor?
accessor?: string;The fluent accessor this capability is reached under: dev[accessor]().
Absent for a capability with nothing to bind — one whose whole surface is inbound events, so it declares no members and no actions() and therefore has no object to reach. Such a capability is described for its events alone; every other field is empty.
actions
actions: readonly ActionDescriptor[];The installed actions that carry a description.
capability
capability: Capability;events
events: readonly string[];The semantic event names this capability emits.
reads
reads: readonly ReadDescriptor[];The reads INSTALLED on this device, never the theoretical set.
undescribedActions
undescribedActions: readonly string[];Installed, callable actions with no description — usable, but not auto-offerable. Published rather than hidden so the gap is visible instead of looking like the action doesn't exist.