UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

603 lines (602 loc) 25.7 kB
import { r as __exportAll } from "./chunk-CNf5ZN-e.js"; import { $ as ZodString, $n as uuid, $r as _property, $t as int, A as ZodJWT, An as preprocess, Ar as _coercedDate, At as boolean$1, B as ZodNull, Bn as stringbool, Br as _lte, Bt as discriminatedUnion, C as ZodExactOptional, Ci as config, Cn as nullish, Cr as iso_exports, Ct as _undefined, D as ZodIPv4, Dn as partialRecord, Dr as TimePrecision, Dt as base64, E as ZodGUID, En as optional, Er as toJSONSchema, Et as array, F as ZodMap, Fn as schemas_exports, Fr as _gte, Ft as cuid, G as ZodOptional, Gn as transform, Gr as _minSize, Gt as file, H as ZodNumber, Hn as superRefine, Hr as _maxSize, Ht as email, I as ZodNaN, In as set, Ir as _includes, It as cuid2, J as ZodPreprocess, Jn as uint64, Jr as _nonnegative, Jt as guid, K as ZodPipe, Kn as tuple, Kr as _multipleOf, Kt as float32, L as ZodNanoID, Ln as strictObject, Lr as _length, Lt as custom, M as ZodLazy, Mn as readonly, Mr as _coercedString, Mt as cidrv4, N as ZodLiteral, Nn as record, Nr as _endsWith, Nt as cidrv6, O as ZodIPv6, On as pipe, Or as _coercedBigint, Ot as base64url, P as ZodMAC, Pn as refine, Pr as _gt, Pt as codec, Q as ZodSet, Qn as url, Qr as _positive, Qt as httpUrl, R as ZodNever, Rn as string$1, Rr as _lowercase, Rt as date$1, S as ZodEnum, Si as NEVER, Sn as nullable, Sr as ZodISOTime, St as _null, T as ZodFunction, Tn as object, Tr as core_exports, Tt as any, U as ZodNumberFormat, Un as symbol, Ur as _mime, Ut as emoji, V as ZodNullable, Vn as success, Vr as _maxLength, Vt as e164, W as ZodObject, Wn as templateLiteral, Wr as _minLength, Wt as exactOptional, X as ZodReadonly, Xn as union, Xr as _normalize, Xt as hex, Y as ZodPromise, Yn as ulid, Yr as _nonpositive, Yt as hash, Z as ZodRecord, Zn as unknown, Zr as _overwrite, Zt as hostname, _ as ZodDefault, _i as prettifyError, _n as nan, _r as ZodError, _t as _catch, a as ZodBigInt, ai as _toUpperCase, an as ipv6, ar as decode, at as ZodTuple, b as ZodEmail, bi as util_exports, bn as never, br as ZodISODateTime, bt as _function, c as ZodCIDRv4, ci as $input, cn as keyof, cr as encodeAsync, ct as ZodURL, d as ZodCUID2, di as registry, dn as literal, dr as safeDecode, dt as ZodUnion, ei as _regex, en as int32, er as uuidv4, et as ZodStringFormat, f as ZodCatch, fi as locales_exports, fn as looseObject, fr as safeDecodeAsync, ft as ZodUnknown, g as ZodDate, gi as formatError, gn as meta, gr as safeParseAsync, gt as _ZodString, h as ZodCustomStringFormat, hi as flattenError, hn as map, hr as safeParse, ht as ZodXor, i as ZodBase64URL, ii as _toLowerCase, in as ipv4, ir as xor, it as ZodTransform, j as ZodKSUID, jn as promise, jr as _coercedNumber, jt as check, k as ZodIntersection, kn as prefault, kr as _coercedBoolean, kt as bigint$1, l as ZodCIDRv6, li as $output, ln as ksuid, lr as parse, lt as ZodUUID, m as ZodCustom, mi as regexes_exports, mn as mac, mr as safeEncodeAsync, mt as ZodXID, n as ZodArray, ni as _slugify, nn as intersection, nr as uuidv7, nt as ZodSymbol, o as ZodBigIntFormat, oi as _trim, on as json, or as decodeAsync, ot as ZodType, p as ZodCodec, pi as en_default, pn as looseRecord, pr as safeEncode, pt as ZodVoid, q as ZodPrefault, qn as uint32, qr as _negative, qt as float64, r as ZodBase64, ri as _startsWith, rn as invertCodec, rr as xid, rt as ZodTemplateLiteral, s as ZodBoolean, si as _uppercase, sn as jwt, sr as encode, st as ZodULID, t as ZodAny, ti as _size, tn as int64, tr as uuidv6, tt as ZodSuccess, u as ZodCUID, ui as globalRegistry, un as lazy, ur as parseAsync, ut as ZodUndefined, v as ZodDiscriminatedUnion, vi as treeifyError, vn as nanoid, vr as ZodRealError, vt as _default, w as ZodFile, wn as number$1, wr as checks_exports, wt as _void, x as ZodEmoji, xi as $brand, xn as nonoptional, xr as ZodISODuration, xt as _instanceof, y as ZodE164, yi as clone, yn as nativeEnum, yr as ZodISODate, yt as _enum, z as ZodNonOptional, zn as stringFormat, zr as _lt, zt as describe } from "./schemas-6cH6bZ7o.js"; import { i as setErrorMap, n as ZodIssueCode, r as getErrorMap, t as ZodFirstPartyTypeKind } from "./compat-B-THjfQ8.js"; //#region node_modules/zod/v4/classic/from-json-schema.js const z = { ...schemas_exports, ...checks_exports, iso: iso_exports }; const RECOGNIZED_KEYS = /*@__PURE__*/ new Set([ "$schema", "$ref", "$defs", "definitions", "$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor", "type", "enum", "const", "anyOf", "oneOf", "allOf", "not", "properties", "required", "additionalProperties", "patternProperties", "propertyNames", "minProperties", "maxProperties", "items", "prefixItems", "additionalItems", "minItems", "maxItems", "uniqueItems", "contains", "minContains", "maxContains", "minLength", "maxLength", "pattern", "format", "minimum", "maximum", "exclusiveMinimum", "exclusiveMaximum", "multipleOf", "description", "default", "contentEncoding", "contentMediaType", "contentSchema", "unevaluatedItems", "unevaluatedProperties", "if", "then", "else", "dependentSchemas", "dependentRequired", "nullable", "readOnly" ]); function detectVersion(schema, defaultTarget) { const $schema = schema.$schema; if ($schema === "https://json-schema.org/draft/2020-12/schema") return "draft-2020-12"; if ($schema === "http://json-schema.org/draft-07/schema#") return "draft-7"; if ($schema === "http://json-schema.org/draft-04/schema#") return "draft-4"; return defaultTarget ?? "draft-2020-12"; } function resolveRef(ref, ctx) { if (!ref.startsWith("#")) throw new Error("External $ref is not supported, only local refs (#/...) are allowed"); const path = ref.slice(1).split("/").filter(Boolean); if (path.length === 0) return ctx.rootSchema; const defsKey = ctx.version === "draft-2020-12" ? "$defs" : "definitions"; if (path[0] === defsKey) { const key = path[1]; if (!key || !ctx.defs[key]) throw new Error(`Reference not found: ${ref}`); return ctx.defs[key]; } throw new Error(`Reference not found: ${ref}`); } function convertBaseSchema(schema, ctx) { if (schema.not !== void 0) { if (typeof schema.not === "object" && Object.keys(schema.not).length === 0) return z.never(); throw new Error("not is not supported in Zod (except { not: {} } for never)"); } if (schema.unevaluatedItems !== void 0) throw new Error("unevaluatedItems is not supported"); if (schema.unevaluatedProperties !== void 0) throw new Error("unevaluatedProperties is not supported"); if (schema.if !== void 0 || schema.then !== void 0 || schema.else !== void 0) throw new Error("Conditional schemas (if/then/else) are not supported"); if (schema.dependentSchemas !== void 0 || schema.dependentRequired !== void 0) throw new Error("dependentSchemas and dependentRequired are not supported"); if (schema.$ref) { const refPath = schema.$ref; if (ctx.refs.has(refPath)) return ctx.refs.get(refPath); if (ctx.processing.has(refPath)) return z.lazy(() => { if (!ctx.refs.has(refPath)) throw new Error(`Circular reference not resolved: ${refPath}`); return ctx.refs.get(refPath); }); ctx.processing.add(refPath); const zodSchema = convertSchema(resolveRef(refPath, ctx), ctx); ctx.refs.set(refPath, zodSchema); ctx.processing.delete(refPath); return zodSchema; } if (schema.enum !== void 0) { const enumValues = schema.enum; if (ctx.version === "openapi-3.0" && schema.nullable === true && enumValues.length === 1 && enumValues[0] === null) return z.null(); if (enumValues.length === 0) return z.never(); if (enumValues.length === 1) return z.literal(enumValues[0]); if (enumValues.every((v) => typeof v === "string")) return z.enum(enumValues); const literalSchemas = enumValues.map((v) => z.literal(v)); if (literalSchemas.length < 2) return literalSchemas[0]; return z.union([ literalSchemas[0], literalSchemas[1], ...literalSchemas.slice(2) ]); } if (schema.const !== void 0) return z.literal(schema.const); const type = schema.type; if (Array.isArray(type)) { const typeSchemas = type.map((t) => { return convertBaseSchema({ ...schema, type: t }, ctx); }); if (typeSchemas.length === 0) return z.never(); if (typeSchemas.length === 1) return typeSchemas[0]; return z.union(typeSchemas); } if (!type) return z.any(); let zodSchema; switch (type) { case "string": { let stringSchema = z.string(); if (schema.format) { const format = schema.format; if (format === "email") stringSchema = stringSchema.check(z.email()); else if (format === "uri" || format === "uri-reference") stringSchema = stringSchema.check(z.url()); else if (format === "uuid" || format === "guid") stringSchema = stringSchema.check(z.uuid()); else if (format === "date-time") stringSchema = stringSchema.check(z.iso.datetime()); else if (format === "date") stringSchema = stringSchema.check(z.iso.date()); else if (format === "time") stringSchema = stringSchema.check(z.iso.time()); else if (format === "duration") stringSchema = stringSchema.check(z.iso.duration()); else if (format === "ipv4") stringSchema = stringSchema.check(z.ipv4()); else if (format === "ipv6") stringSchema = stringSchema.check(z.ipv6()); else if (format === "mac") stringSchema = stringSchema.check(z.mac()); else if (format === "cidr") stringSchema = stringSchema.check(z.cidrv4()); else if (format === "cidr-v6") stringSchema = stringSchema.check(z.cidrv6()); else if (format === "base64") stringSchema = stringSchema.check(z.base64()); else if (format === "base64url") stringSchema = stringSchema.check(z.base64url()); else if (format === "e164") stringSchema = stringSchema.check(z.e164()); else if (format === "jwt") stringSchema = stringSchema.check(z.jwt()); else if (format === "emoji") stringSchema = stringSchema.check(z.emoji()); else if (format === "nanoid") stringSchema = stringSchema.check(z.nanoid()); else if (format === "cuid") stringSchema = stringSchema.check(z.cuid()); else if (format === "cuid2") stringSchema = stringSchema.check(z.cuid2()); else if (format === "ulid") stringSchema = stringSchema.check(z.ulid()); else if (format === "xid") stringSchema = stringSchema.check(z.xid()); else if (format === "ksuid") stringSchema = stringSchema.check(z.ksuid()); } if (typeof schema.minLength === "number") stringSchema = stringSchema.min(schema.minLength); if (typeof schema.maxLength === "number") stringSchema = stringSchema.max(schema.maxLength); if (schema.pattern) stringSchema = stringSchema.regex(new RegExp(schema.pattern)); zodSchema = stringSchema; break; } case "number": case "integer": { let numberSchema = type === "integer" ? z.number().int() : z.number(); if (typeof schema.minimum === "number") numberSchema = numberSchema.min(schema.minimum); if (typeof schema.maximum === "number") numberSchema = numberSchema.max(schema.maximum); if (typeof schema.exclusiveMinimum === "number") numberSchema = numberSchema.gt(schema.exclusiveMinimum); else if (schema.exclusiveMinimum === true && typeof schema.minimum === "number") numberSchema = numberSchema.gt(schema.minimum); if (typeof schema.exclusiveMaximum === "number") numberSchema = numberSchema.lt(schema.exclusiveMaximum); else if (schema.exclusiveMaximum === true && typeof schema.maximum === "number") numberSchema = numberSchema.lt(schema.maximum); if (typeof schema.multipleOf === "number") numberSchema = numberSchema.multipleOf(schema.multipleOf); zodSchema = numberSchema; break; } case "boolean": zodSchema = z.boolean(); break; case "null": zodSchema = z.null(); break; case "object": { const shape = {}; const properties = schema.properties || {}; const requiredSet = new Set(schema.required || []); for (const [key, propSchema] of Object.entries(properties)) { const propZodSchema = convertSchema(propSchema, ctx); shape[key] = requiredSet.has(key) ? propZodSchema : propZodSchema.optional(); } if (schema.propertyNames) { const keySchema = convertSchema(schema.propertyNames, ctx); const valueSchema = schema.additionalProperties && typeof schema.additionalProperties === "object" ? convertSchema(schema.additionalProperties, ctx) : z.any(); if (Object.keys(shape).length === 0) { zodSchema = z.record(keySchema, valueSchema); break; } const objectSchema = z.object(shape).passthrough(); const recordSchema = z.looseRecord(keySchema, valueSchema); zodSchema = z.intersection(objectSchema, recordSchema); break; } if (schema.patternProperties) { const patternProps = schema.patternProperties; const patternKeys = Object.keys(patternProps); const looseRecords = []; for (const pattern of patternKeys) { const patternValue = convertSchema(patternProps[pattern], ctx); const keySchema = z.string().regex(new RegExp(pattern)); looseRecords.push(z.looseRecord(keySchema, patternValue)); } const schemasToIntersect = []; if (Object.keys(shape).length > 0) schemasToIntersect.push(z.object(shape).passthrough()); schemasToIntersect.push(...looseRecords); if (schemasToIntersect.length === 0) zodSchema = z.object({}).passthrough(); else if (schemasToIntersect.length === 1) zodSchema = schemasToIntersect[0]; else { let result = z.intersection(schemasToIntersect[0], schemasToIntersect[1]); for (let i = 2; i < schemasToIntersect.length; i++) result = z.intersection(result, schemasToIntersect[i]); zodSchema = result; } break; } const objectSchema = z.object(shape); if (schema.additionalProperties === false) zodSchema = objectSchema.strict(); else if (typeof schema.additionalProperties === "object") zodSchema = objectSchema.catchall(convertSchema(schema.additionalProperties, ctx)); else zodSchema = objectSchema.passthrough(); break; } case "array": { const prefixItems = schema.prefixItems; const items = schema.items; if (prefixItems && Array.isArray(prefixItems)) { const tupleItems = prefixItems.map((item) => convertSchema(item, ctx)); const rest = items && typeof items === "object" && !Array.isArray(items) ? convertSchema(items, ctx) : void 0; if (rest) zodSchema = z.tuple(tupleItems).rest(rest); else zodSchema = z.tuple(tupleItems); if (typeof schema.minItems === "number") zodSchema = zodSchema.check(z.minLength(schema.minItems)); if (typeof schema.maxItems === "number") zodSchema = zodSchema.check(z.maxLength(schema.maxItems)); } else if (Array.isArray(items)) { const tupleItems = items.map((item) => convertSchema(item, ctx)); const rest = schema.additionalItems && typeof schema.additionalItems === "object" ? convertSchema(schema.additionalItems, ctx) : void 0; if (rest) zodSchema = z.tuple(tupleItems).rest(rest); else zodSchema = z.tuple(tupleItems); if (typeof schema.minItems === "number") zodSchema = zodSchema.check(z.minLength(schema.minItems)); if (typeof schema.maxItems === "number") zodSchema = zodSchema.check(z.maxLength(schema.maxItems)); } else if (items !== void 0) { const element = convertSchema(items, ctx); let arraySchema = z.array(element); if (typeof schema.minItems === "number") arraySchema = arraySchema.min(schema.minItems); if (typeof schema.maxItems === "number") arraySchema = arraySchema.max(schema.maxItems); zodSchema = arraySchema; } else zodSchema = z.array(z.any()); break; } default: throw new Error(`Unsupported type: ${type}`); } return zodSchema; } function convertSchema(schema, ctx) { if (typeof schema === "boolean") return schema ? z.any() : z.never(); let baseSchema = convertBaseSchema(schema, ctx); const hasExplicitType = schema.type || schema.enum !== void 0 || schema.const !== void 0; if (schema.anyOf && Array.isArray(schema.anyOf)) { const options = schema.anyOf.map((s) => convertSchema(s, ctx)); const anyOfUnion = z.union(options); baseSchema = hasExplicitType ? z.intersection(baseSchema, anyOfUnion) : anyOfUnion; } if (schema.oneOf && Array.isArray(schema.oneOf)) { const options = schema.oneOf.map((s) => convertSchema(s, ctx)); const oneOfUnion = z.xor(options); baseSchema = hasExplicitType ? z.intersection(baseSchema, oneOfUnion) : oneOfUnion; } if (schema.allOf && Array.isArray(schema.allOf)) if (schema.allOf.length === 0) baseSchema = hasExplicitType ? baseSchema : z.any(); else { let result = hasExplicitType ? baseSchema : convertSchema(schema.allOf[0], ctx); const startIdx = hasExplicitType ? 0 : 1; for (let i = startIdx; i < schema.allOf.length; i++) result = z.intersection(result, convertSchema(schema.allOf[i], ctx)); baseSchema = result; } if (schema.nullable === true && ctx.version === "openapi-3.0") baseSchema = z.nullable(baseSchema); if (schema.readOnly === true) baseSchema = z.readonly(baseSchema); if (schema.default !== void 0) baseSchema = baseSchema.default(schema.default); const extraMeta = {}; for (const key of [ "$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor" ]) if (key in schema) extraMeta[key] = schema[key]; for (const key of [ "contentEncoding", "contentMediaType", "contentSchema" ]) if (key in schema) extraMeta[key] = schema[key]; for (const key of Object.keys(schema)) if (!RECOGNIZED_KEYS.has(key)) extraMeta[key] = schema[key]; if (Object.keys(extraMeta).length > 0) ctx.registry.add(baseSchema, extraMeta); if (schema.description) baseSchema = baseSchema.describe(schema.description); return baseSchema; } /** * Converts a JSON Schema to a Zod schema. This function should be considered semi-experimental. It's behavior is liable to change. */ function fromJSONSchema(schema, params) { if (typeof schema === "boolean") return schema ? z.any() : z.never(); let normalized; try { normalized = JSON.parse(JSON.stringify(schema)); } catch { throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas"); } const ctx = { version: detectVersion(normalized, params?.defaultTarget), defs: normalized.$defs || normalized.definitions || {}, refs: /* @__PURE__ */ new Map(), processing: /* @__PURE__ */ new Set(), rootSchema: normalized, registry: params?.registry ?? globalRegistry }; return convertSchema(normalized, ctx); } //#endregion //#region node_modules/zod/v4/classic/coerce.js var coerce_exports = /* @__PURE__ */ __exportAll({ bigint: () => bigint, boolean: () => boolean, date: () => date, number: () => number, string: () => string }); function string(params) { return _coercedString(ZodString, params); } function number(params) { return _coercedNumber(ZodNumber, params); } function boolean(params) { return _coercedBoolean(ZodBoolean, params); } function bigint(params) { return _coercedBigint(ZodBigInt, params); } function date(params) { return _coercedDate(ZodDate, params); } //#endregion //#region node_modules/zod/v4/classic/external.js var external_exports = /* @__PURE__ */ __exportAll({ $brand: () => $brand, $input: () => $input, $output: () => $output, NEVER: () => NEVER, TimePrecision: () => TimePrecision, ZodAny: () => ZodAny, ZodArray: () => ZodArray, ZodBase64: () => ZodBase64, ZodBase64URL: () => ZodBase64URL, ZodBigInt: () => ZodBigInt, ZodBigIntFormat: () => ZodBigIntFormat, ZodBoolean: () => ZodBoolean, ZodCIDRv4: () => ZodCIDRv4, ZodCIDRv6: () => ZodCIDRv6, ZodCUID: () => ZodCUID, ZodCUID2: () => ZodCUID2, ZodCatch: () => ZodCatch, ZodCodec: () => ZodCodec, ZodCustom: () => ZodCustom, ZodCustomStringFormat: () => ZodCustomStringFormat, ZodDate: () => ZodDate, ZodDefault: () => ZodDefault, ZodDiscriminatedUnion: () => ZodDiscriminatedUnion, ZodE164: () => ZodE164, ZodEmail: () => ZodEmail, ZodEmoji: () => ZodEmoji, ZodEnum: () => ZodEnum, ZodError: () => ZodError, ZodExactOptional: () => ZodExactOptional, ZodFile: () => ZodFile, ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind, ZodFunction: () => ZodFunction, ZodGUID: () => ZodGUID, ZodIPv4: () => ZodIPv4, ZodIPv6: () => ZodIPv6, ZodISODate: () => ZodISODate, ZodISODateTime: () => ZodISODateTime, ZodISODuration: () => ZodISODuration, ZodISOTime: () => ZodISOTime, ZodIntersection: () => ZodIntersection, ZodIssueCode: () => ZodIssueCode, ZodJWT: () => ZodJWT, ZodKSUID: () => ZodKSUID, ZodLazy: () => ZodLazy, ZodLiteral: () => ZodLiteral, ZodMAC: () => ZodMAC, ZodMap: () => ZodMap, ZodNaN: () => ZodNaN, ZodNanoID: () => ZodNanoID, ZodNever: () => ZodNever, ZodNonOptional: () => ZodNonOptional, ZodNull: () => ZodNull, ZodNullable: () => ZodNullable, ZodNumber: () => ZodNumber, ZodNumberFormat: () => ZodNumberFormat, ZodObject: () => ZodObject, ZodOptional: () => ZodOptional, ZodPipe: () => ZodPipe, ZodPrefault: () => ZodPrefault, ZodPreprocess: () => ZodPreprocess, ZodPromise: () => ZodPromise, ZodReadonly: () => ZodReadonly, ZodRealError: () => ZodRealError, ZodRecord: () => ZodRecord, ZodSet: () => ZodSet, ZodString: () => ZodString, ZodStringFormat: () => ZodStringFormat, ZodSuccess: () => ZodSuccess, ZodSymbol: () => ZodSymbol, ZodTemplateLiteral: () => ZodTemplateLiteral, ZodTransform: () => ZodTransform, ZodTuple: () => ZodTuple, ZodType: () => ZodType, ZodULID: () => ZodULID, ZodURL: () => ZodURL, ZodUUID: () => ZodUUID, ZodUndefined: () => ZodUndefined, ZodUnion: () => ZodUnion, ZodUnknown: () => ZodUnknown, ZodVoid: () => ZodVoid, ZodXID: () => ZodXID, ZodXor: () => ZodXor, _ZodString: () => _ZodString, _default: () => _default, _function: () => _function, any: () => any, array: () => array, base64: () => base64, base64url: () => base64url, bigint: () => bigint$1, boolean: () => boolean$1, catch: () => _catch, check: () => check, cidrv4: () => cidrv4, cidrv6: () => cidrv6, clone: () => clone, codec: () => codec, coerce: () => coerce_exports, config: () => config, core: () => core_exports, cuid: () => cuid, cuid2: () => cuid2, custom: () => custom, date: () => date$1, decode: () => decode, decodeAsync: () => decodeAsync, describe: () => describe, discriminatedUnion: () => discriminatedUnion, e164: () => e164, email: () => email, emoji: () => emoji, encode: () => encode, encodeAsync: () => encodeAsync, endsWith: () => _endsWith, enum: () => _enum, exactOptional: () => exactOptional, file: () => file, flattenError: () => flattenError, float32: () => float32, float64: () => float64, formatError: () => formatError, fromJSONSchema: () => fromJSONSchema, function: () => _function, getErrorMap: () => getErrorMap, globalRegistry: () => globalRegistry, gt: () => _gt, gte: () => _gte, guid: () => guid, hash: () => hash, hex: () => hex, hostname: () => hostname, httpUrl: () => httpUrl, includes: () => _includes, instanceof: () => _instanceof, int: () => int, int32: () => int32, int64: () => int64, intersection: () => intersection, invertCodec: () => invertCodec, ipv4: () => ipv4, ipv6: () => ipv6, iso: () => iso_exports, json: () => json, jwt: () => jwt, keyof: () => keyof, ksuid: () => ksuid, lazy: () => lazy, length: () => _length, literal: () => literal, locales: () => locales_exports, looseObject: () => looseObject, looseRecord: () => looseRecord, lowercase: () => _lowercase, lt: () => _lt, lte: () => _lte, mac: () => mac, map: () => map, maxLength: () => _maxLength, maxSize: () => _maxSize, meta: () => meta, mime: () => _mime, minLength: () => _minLength, minSize: () => _minSize, multipleOf: () => _multipleOf, nan: () => nan, nanoid: () => nanoid, nativeEnum: () => nativeEnum, negative: () => _negative, never: () => never, nonnegative: () => _nonnegative, nonoptional: () => nonoptional, nonpositive: () => _nonpositive, normalize: () => _normalize, null: () => _null, nullable: () => nullable, nullish: () => nullish, number: () => number$1, object: () => object, optional: () => optional, overwrite: () => _overwrite, parse: () => parse, parseAsync: () => parseAsync, partialRecord: () => partialRecord, pipe: () => pipe, positive: () => _positive, prefault: () => prefault, preprocess: () => preprocess, prettifyError: () => prettifyError, promise: () => promise, property: () => _property, readonly: () => readonly, record: () => record, refine: () => refine, regex: () => _regex, regexes: () => regexes_exports, registry: () => registry, safeDecode: () => safeDecode, safeDecodeAsync: () => safeDecodeAsync, safeEncode: () => safeEncode, safeEncodeAsync: () => safeEncodeAsync, safeParse: () => safeParse, safeParseAsync: () => safeParseAsync, set: () => set, setErrorMap: () => setErrorMap, size: () => _size, slugify: () => _slugify, startsWith: () => _startsWith, strictObject: () => strictObject, string: () => string$1, stringFormat: () => stringFormat, stringbool: () => stringbool, success: () => success, superRefine: () => superRefine, symbol: () => symbol, templateLiteral: () => templateLiteral, toJSONSchema: () => toJSONSchema, toLowerCase: () => _toLowerCase, toUpperCase: () => _toUpperCase, transform: () => transform, treeifyError: () => treeifyError, trim: () => _trim, tuple: () => tuple, uint32: () => uint32, uint64: () => uint64, ulid: () => ulid, undefined: () => _undefined, union: () => union, unknown: () => unknown, uppercase: () => _uppercase, url: () => url, util: () => util_exports, uuid: () => uuid, uuidv4: () => uuidv4, uuidv6: () => uuidv6, uuidv7: () => uuidv7, void: () => _void, xid: () => xid, xor: () => xor }); config(en_default()); //#endregion export { coerce_exports as n, fromJSONSchema as r, external_exports as t };