"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.StringEnum = StringEnum;var _typebox = require("@sinclair/typebox"); /** * Creates a string enum schema compatible with Google's API and other providers * that don't support anyOf/const patterns. * * @example * const OperationSchema = StringEnum(["add", "subtract", "multiply", "divide"], { * description: "The operation to perform" * }); * * type Operation = Static; // "add" | "subtract" | "multiply" | "divide" */ function StringEnum(values, options) { return _typebox.Type.Unsafe({ type: "string", enum: values, ...(options?.description && { description: options.description }), ...(options?.default && { default: options.default }) }); } /* v9-aef2b482be1520e9 */