Skip to content

@mega-yfue/eufy-sdk / ActionArgSpec

Interface: ActionArgSpec ​

One argument a described action accepts, in the same value vocabulary the reads use (ValueKind).

A numeric range belongs here as min/max/step, and must be the SAME constant the action clamps with: a retyped range is a drift bug no test can catch, since both copies stay individually valid.

values/labels publish a fixed option set for an argument whose domain the schema cannot otherwise reach. A kind: "enum" argument normally omits both: it belongs to a control whose property already publishes its enumValues, and declaring the same set twice can only drift from it.

Properties ​

description? ​

ts
description?: string;

kind ​

ts
kind: ValueKind;

labels? ​

ts
labels?: Readonly<Record<string, string>>;

max? ​

ts
max?: number;

min? ​

ts
min?: number;

name ​

ts
name: string;

optional? ​

ts
optional?: boolean;

step? ​

ts
step?: number;

values? ​

ts
values?: readonly (string | number)[];

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations, Anker eufy, or eufy. "Anker eufy", "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.