import { StringEnum as PiStringEnum } from "@earendil-works/pi-ai"; import { Type } from "typebox"; // Pi 1.5 enums carry pi-schema types; retain inference inside TypeBox-built schemas. export function StringEnum(values: T) { return Type.Unsafe(PiStringEnum(values)); }