Skip to content

ampControlPanelProfileSchema

const ampControlPanelProfileSchema: ZodObject<{ backgroundColor: ZodOptional<ZodString>; controls: ZodArray<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; }>, "many">; face: ZodOptional<ZodEnum<["front", "top"]>>; }, "strict", ZodTypeAny, { backgroundColor?: string; controls: object[]; face?: "top" | "front"; }, { backgroundColor?: string; controls: object[]; face?: "top" | "front"; }>

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