/home/techb158/balavpn.abdallabala.com/node_modules/zod/v4/core
NameSizeModeActions
api.cjs264650666editdlrm
api.d.cts294450666editdlrm
api.d.ts294400666editdlrm
api.js229830666editdlrm
checks.cjs210980666editdlrm
checks.d.cts127820666editdlrm
checks.d.ts127780666editdlrm
checks.js195440666editdlrm
core.cjs23090666editdlrm
core.d.cts18110666editdlrm
core.d.ts18080666editdlrm
core.js20850666editdlrm
doc.cjs11990666editdlrm
doc.d.cts3530666editdlrm
doc.d.ts3530666editdlrm
doc.js10880666editdlrm
errors.cjs76500666editdlrm
errors.d.cts78930666editdlrm
errors.d.ts78890666editdlrm
errors.js63160666editdlrm
function.cjs40120666editdlrm
function.d.cts35970666editdlrm
function.d.ts35930666editdlrm
function.js27170666editdlrm
index.cjs21630666editdlrm
index.d.cts5140666editdlrm
index.d.ts4990666editdlrm
index.js4990666editdlrm
json-schema.cjs770666editdlrm
json-schema.d.cts26760666editdlrm
json-schema.d.ts26760666editdlrm
json-schema.js110666editdlrm
parse.cjs39570666editdlrm
parse.d.cts15050666editdlrm
parse.d.ts15010666editdlrm
parse.js25520666editdlrm
regexes.cjs70620666editdlrm
regexes.d.cts27620666editdlrm
regexes.d.ts27620666editdlrm
regexes.js64110666editdlrm
registries.cjs16760666editdlrm
registries.d.cts16460666editdlrm
registries.d.ts16440666editdlrm
registries.js14850666editdlrm
schemas.cjs648430666editdlrm
schemas.d.cts446980666editdlrm
schemas.d.ts446910666editdlrm
schemas.js626520666editdlrm
standard-schema.cjs770666editdlrm
standard-schema.d.cts24030666editdlrm
standard-schema.d.ts24030666editdlrm
standard-schema.js110666editdlrm
to-json-schema.cjs359100666editdlrm
to-json-schema.d.cts37290666editdlrm
to-json-schema.d.ts37260666editdlrm
to-json-schema.js356870666editdlrm
util.cjs164380666editdlrm
util.d.cts107500666editdlrm
util.d.ts107460666editdlrm
util.js150040666editdlrm
versions.cjs1680666editdlrm
versions.d.cts1090666editdlrm
versions.d.ts1090666editdlrm
versions.js700666editdlrm
Edit: /home/techb158/balavpn.abdallabala.com/node_modules/zod/v4/core/to-json-schema.d.cts (3729B)
import type * as JSONSchema from "./json-schema.cjs"; import { $ZodRegistry } from "./registries.cjs"; import type * as schemas from "./schemas.cjs"; interface JSONSchemaGeneratorParams { /** A registry used to look up metadata for each schema. Any schema with an `id` property will be extracted as a $def. * @default globalRegistry */ metadata?: $ZodRegistry>; /** The JSON Schema version to target. * - `"draft-2020-12"` — Default. JSON Schema Draft 2020-12 * - `"draft-7"` — JSON Schema Draft 7 */ target?: "draft-7" | "draft-2020-12"; /** How to handle unrepresentable types. * - `"throw"` — Default. Unrepresentable types throw an error * - `"any"` — Unrepresentable types become `{}` */ unrepresentable?: "throw" | "any"; /** Arbitrary custom logic that can be used to modify the generated JSON Schema. */ override?: (ctx: { zodSchema: schemas.$ZodTypes; jsonSchema: JSONSchema.BaseSchema; path: (string | number)[]; }) => void; /** Whether to extract the `"input"` or `"output"` type. Relevant to transforms, Error converting schema to JSONz, defaults, coerced primitives, etc. * - `"output"` — Default. Convert the output schema. * - `"input"` — Convert the input schema. */ io?: "input" | "output"; } interface ProcessParams { schemaPath: schemas.$ZodType[]; path: (string | number)[]; } interface EmitParams { /** How to handle cycles. * - `"ref"` — Default. Cycles will be broken using $defs * - `"throw"` — Cycles will throw an error if encountered */ cycles?: "ref" | "throw"; reused?: "ref" | "inline"; external?: { /** */ registry: $ZodRegistry<{ id?: string | undefined; }>; uri?: ((id: string) => string) | undefined; defs: Record; } | undefined; } interface Seen { /** JSON Schema result for this Zod schema */ schema: JSONSchema.BaseSchema; /** A cached version of the schema that doesn't get overwritten during ref resolution */ def?: JSONSchema.BaseSchema; defId?: string | undefined; /** Number of times this schema was encountered during traversal */ count: number; /** Cycle path */ cycle?: (string | number)[] | undefined; isParent?: boolean | undefined; ref?: schemas.$ZodType | undefined | null; /** JSON Schema property path for this schema */ path?: (string | number)[] | undefined; } export declare class JSONSchemaGenerator { metadataRegistry: $ZodRegistry>; target: "draft-7" | "draft-2020-12"; unrepresentable: "throw" | "any"; override: (ctx: { zodSchema: schemas.$ZodTypes; jsonSchema: JSONSchema.BaseSchema; path: (string | number)[]; }) => void; io: "input" | "output"; counter: number; seen: Map; constructor(params?: JSONSchemaGeneratorParams); process(schema: schemas.$ZodType, _params?: ProcessParams): JSONSchema.BaseSchema; emit(schema: schemas.$ZodType, _params?: EmitParams): JSONSchema.BaseSchema; } interface ToJSONSchemaParams extends Omit { } interface RegistryToJSONSchemaParams extends Omit { uri?: (id: string) => string; } export declare function toJSONSchema(schema: schemas.$ZodType, _params?: ToJSONSchemaParams): JSONSchema.BaseSchema; export declare function toJSONSchema(registry: $ZodRegistry<{ id?: string | undefined; }>, _params?: RegistryToJSONSchemaParams): { schemas: Record; }; export {};