Skip to content

ampControlProfileSchema

const ampControlProfileSchema: ZodObject<{ color: ZodOptional<ZodString>; id: ZodString; kind: ZodEnum<["knob", "switch", "led"]>; label: ZodString; labelColor: ZodOptional<ZodString>; position: ZodOptional<ZodObject<{ xRatio: ZodNumber; yRatio: ZodNumber; }, "strict", ZodTypeAny, { xRatio: number; yRatio: number; }, { xRatio: number; yRatio: number; }>>; statusColor: ZodOptional<ZodString>; value: ZodOptional<ZodNumber>; }, "strict", ZodTypeAny, { color?: string; id: string; kind: "led" | "switch" | "knob"; label: string; labelColor?: string; position?: { xRatio: number; yRatio: number; }; statusColor?: string; value?: number; }, { color?: string; id: string; kind: "led" | "switch" | "knob"; label: string; labelColor?: string; position?: { xRatio: number; yRatio: number; }; statusColor?: string; value?: number; }>

Defined in: packages/core/src/profiles.ts:32