import { oneOf, type Schema } from "@earendil-works/pi-schema"; // Keep the explicit string type for providers that require typed enums. export function StringEnum(values: T): Schema { return { ...oneOf(values), type: "string" }; }