@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
optional description?: string;kind
ts
kind: ValueKind;labels?
ts
optional labels?: Readonly<Record<string, string>>;max?
ts
optional max?: number;min?
ts
optional min?: number;name
ts
name: string;optional?
ts
optional optional?: boolean;step?
ts
optional step?: number;values?
ts
optional values?: readonly (string | number)[];