@morlay/session-rdb 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,10 @@ import { KvUnit } from "@deepseek-ai/dsh-storage";
6
6
  import { Context, Service } from "@deepseek-ai/cordis";
7
7
  import { SessionId as SessionId$1 } from "@deepseek-ai/dsh-session/types";
8
8
  import { Volatile } from "@deepseek-ai/cosmokit";
9
- //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/json-schema.d.cts
9
+ declare namespace json_schema_d_exports {
10
+ export { ArraySchema, BaseSchema, BooleanSchema, IntegerSchema, JSONSchema, NullSchema, NumberSchema, ObjectSchema, Schema$1 as Schema, SchemaType, StringSchema, _JSONSchema };
11
+ }
12
+ type Schema$1 = ObjectSchema | ArraySchema | StringSchema | NumberSchema | IntegerSchema | BooleanSchema | NullSchema;
10
13
  type _JSONSchema = boolean | JSONSchema;
11
14
  type SchemaType = "object" | "array" | "string" | "number" | "boolean" | "null" | "integer";
12
15
  type JSONSchema = {
@@ -74,6 +77,27 @@ type JSONSchema = {
74
77
  _prefault?: unknown;
75
78
  };
76
79
  type BaseSchema = JSONSchema;
80
+ interface ObjectSchema extends JSONSchema {
81
+ type: "object";
82
+ }
83
+ interface ArraySchema extends JSONSchema {
84
+ type: "array";
85
+ }
86
+ interface StringSchema extends JSONSchema {
87
+ type: "string";
88
+ }
89
+ interface NumberSchema extends JSONSchema {
90
+ type: "number";
91
+ }
92
+ interface IntegerSchema extends JSONSchema {
93
+ type: "integer";
94
+ }
95
+ interface BooleanSchema extends JSONSchema {
96
+ type: "boolean";
97
+ }
98
+ interface NullSchema extends JSONSchema {
99
+ type: "null";
100
+ }
77
101
  //#endregion
78
102
  //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/standard-schema.d.cts
79
103
  /** The Standard interface. */
@@ -193,13 +217,14 @@ declare namespace StandardJSONSchemaV1 {
193
217
  type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
194
218
  }
195
219
  interface StandardSchemaWithJSONProps<Input = unknown, Output = Input> extends StandardSchemaV1.Props<Input, Output>, StandardJSONSchemaV1.Props<Input, Output> {}
196
- //#endregion
197
- //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/registries.d.cts
220
+ declare namespace registries_d_exports {
221
+ export { $ZodRegistry, $input, $output, $replace, GlobalMeta, JSONSchemaMeta, globalRegistry, registry };
222
+ }
198
223
  declare const $output: unique symbol;
199
224
  type $output = typeof $output;
200
225
  declare const $input: unique symbol;
201
226
  type $input = typeof $input;
202
- type $replace<Meta, S extends $ZodType> = Meta extends $output ? output<S> : Meta extends $input ? input<S> : Meta extends (infer M)[] ? $replace<M, S>[] : Meta extends ((...args: infer P) => infer R) ? (...args: { [K in keyof P]: $replace<P[K], S>; }) => $replace<R, S> : Meta extends object ? { [K in keyof Meta]: $replace<Meta[K], S>; } : Meta;
227
+ type $replace<Meta, S extends $ZodType> = Meta extends $output ? output$1<S> : Meta extends $input ? input$1<S> : Meta extends (infer M)[] ? $replace<M, S>[] : Meta extends ((...args: infer P) => infer R) ? (...args: { [K in keyof P]: $replace<P[K], S>; }) => $replace<R, S> : Meta extends object ? { [K in keyof Meta]: $replace<Meta[K], S>; } : Meta;
203
228
  type MetadataType = object | undefined;
204
229
  declare class $ZodRegistry<Meta extends MetadataType = MetadataType, Schema extends $ZodType = $ZodType> {
205
230
  _meta: Meta;
@@ -220,6 +245,8 @@ interface JSONSchemaMeta {
220
245
  [k: string]: unknown;
221
246
  }
222
247
  interface GlobalMeta extends JSONSchemaMeta {}
248
+ declare function registry<T extends MetadataType = MetadataType, S extends $ZodType = $ZodType>(): $ZodRegistry<T, S>;
249
+ declare const globalRegistry: $ZodRegistry<GlobalMeta>;
223
250
  //#endregion
224
251
  //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/to-json-schema.d.cts
225
252
  type Processor<T extends $ZodType = $ZodType> = (schema: T, ctx: ToJSONSchemaContext, json: BaseSchema, params: ProcessParams) => void;
@@ -275,6 +302,12 @@ interface JSONSchemaGeneratorParams {
275
302
  * Parameters for the toJSONSchema function.
276
303
  */
277
304
  type ToJSONSchemaParams = Omit<JSONSchemaGeneratorParams, "processors" | "external">;
305
+ /**
306
+ * Parameters for the toJSONSchema function when passing a registry.
307
+ */
308
+ interface RegistryToJSONSchemaParams extends ToJSONSchemaParams {
309
+ uri?: (id: string) => string;
310
+ }
278
311
  interface ProcessParams {
279
312
  schemaPath: $ZodType[];
280
313
  path: (string | number)[];
@@ -338,24 +371,81 @@ interface ToJSONSchemaContext {
338
371
  defs: Record<string, BaseSchema>;
339
372
  } | undefined;
340
373
  }
341
- type ZodStandardSchemaWithJSON$1<T> = StandardSchemaWithJSONProps<input<T>, output<T>>;
374
+ declare function initializeContext(params: JSONSchemaGeneratorParams): ToJSONSchemaContext;
375
+ /**
376
+ * Applies the `unrepresentable` setting at a site that has no JSON Schema equivalent. Throws
377
+ * `message` unless the setting (or the handler's return value) says otherwise. Returns `true` if a
378
+ * custom JSON Schema was written into `json`, in which case the caller must not write its own.
379
+ */
380
+ declare function handleUnrepresentable(schema: $ZodType, ctx: ToJSONSchemaContext, json: BaseSchema, params: ProcessParams, message: string): boolean;
381
+ declare function processSchema<T extends $ZodType>(schema: T, ctx: ToJSONSchemaContext, _params?: ProcessParams): BaseSchema;
382
+ declare function extractDefs<T extends $ZodType>(ctx: ToJSONSchemaContext, schema: T): void;
383
+ declare function finalize<T extends $ZodType>(ctx: ToJSONSchemaContext, schema: T): ZodStandardJSONSchemaPayload<T>;
384
+ type ZodStandardSchemaWithJSON$1<T> = StandardSchemaWithJSONProps<input$1<T>, output$1<T>>;
342
385
  interface ZodStandardJSONSchemaPayload<T> extends BaseSchema {
343
386
  "~standard": ZodStandardSchemaWithJSON$1<T>;
344
387
  }
345
- //#endregion
346
- //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/util.d.cts
388
+ /**
389
+ * Creates a toJSONSchema method for a schema instance.
390
+ * This encapsulates the logic of initializing context, processing, extracting defs, and finalizing.
391
+ */
392
+ declare const createToJSONSchemaMethod: <T extends $ZodType>(schema: T, processors?: Record<string, Processor>) => (params?: ToJSONSchemaParams) => ZodStandardJSONSchemaPayload<T>;
393
+ /**
394
+ * Creates a toJSONSchema method for a schema instance.
395
+ * This encapsulates the logic of initializing context, processing, extracting defs, and finalizing.
396
+ */
397
+ type StandardJSONSchemaMethodParams = Parameters<StandardJSONSchemaV1["~standard"]["jsonSchema"]["input"]>[0];
398
+ declare const createStandardJSONSchemaMethod: <T extends $ZodType>(schema: T, io: "input" | "output", processors?: Record<string, Processor>) => (params?: StandardJSONSchemaMethodParams) => BaseSchema;
399
+ declare namespace util_d_exports {
400
+ export { AnyFunc, AssertEqual, AssertExtends, AssertNotEqual, BIGINT_FORMAT_RANGES, BuiltIn, CONSTANT_CATCH, Class, CleanKey, Constructor, EmptyObject, EmptyToNever, EnumLike, EnumValue, Exactly, Extend, ExtractIndexSignature, Flatten, FromCleanMap, HasLength, HasSize, HashAlgorithm, HashEncoding, HashFormat, IPVersion, Identity, InexactPartial, IsAny, IsProp, JSONType, JWTAlgorithm, KeyOf, Keys, KeysArray, KeysEnum, Literal, LiteralArray, LoosePartial, MakePartial, MakeReadonly, MakeRequired, Mapped, Mask, MaybeAsync, MimeTypes, NUMBER_FORMAT_RANGES, NoNever, NoNeverKeys, NoUndefined, Normalize, Numeric, Omit$1 as Omit, OmitIndexSignature, OmitKeys, ParsedTypes, Prettify, Primitive, PrimitiveArray, PrimitiveSet, PropValues, ProtoOf, SafeParseError, SafeParseResult, SafeParseSuccess, SchemaClass, ShapeGetter, SomeObject, ToCleanMap, ToEnum, TupleItems, Whatever, Widen, Writeable, aborted, allowsEval, assert, assertEqual, assertIs, assertNever, assertNotEqual, assignProp, attachSchema, base64ToUint8Array, base64urlToUint8Array, cached, captureStackTrace, cleanEnum, cleanRegex, clone, cloneDef, codePointLength, constantCatch, createTransparentProxy, defineLazy, defineLazyInternal, derived, esc, escapeRegex, explicitlyAborted, extend, finalizeIssue, floatSafeRemainder, getElementAtPath, getEnumValues, getLengthableOrigin, getParsedType, getSizableOrigin, hexToUint8Array, hide, installLazyProp, isObject, isPlainObject, issue, joinValues, jsonStringifyReplacer, members, merge, mergeDefs, normalizeParams, nullish$1 as nullish, numKeys, objectClone, omit, optionalKeys, own, parsedType, partial, pick, prefixIssues, primitiveTypes, promiseAllObject, propertyKeyTypes, randomString, rawShape, required, safeExtend, shallowClone, slugify, stringifyPrimitive, toZod, uint8ArrayToBase64, uint8ArrayToBase64url, uint8ArrayToHex, unwrapMessage };
401
+ }
402
+ type JSONType = string | number | boolean | null | JSONType[] | {
403
+ [key: string]: JSONType;
404
+ };
347
405
  type JWTAlgorithm = "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | (string & {});
406
+ type HashAlgorithm = "md5" | "sha1" | "sha256" | "sha384" | "sha512";
407
+ type HashEncoding = "hex" | "base64" | "base64url";
408
+ type HashFormat = `${HashAlgorithm}_${HashEncoding}`;
409
+ type IPVersion = "v4" | "v6";
348
410
  type MimeTypes = "application/json" | "application/xml" | "application/x-www-form-urlencoded" | "application/javascript" | "application/pdf" | "application/zip" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/octet-stream" | "application/graphql" | "text/html" | "text/plain" | "text/css" | "text/javascript" | "text/csv" | "image/png" | "image/jpeg" | "image/gif" | "image/svg+xml" | "image/webp" | "audio/mpeg" | "audio/ogg" | "audio/wav" | "audio/webm" | "video/mp4" | "video/webm" | "video/ogg" | "font/woff" | "font/woff2" | "font/ttf" | "font/otf" | "multipart/form-data" | (string & {});
411
+ type ParsedTypes = "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "file" | "date" | "array" | "map" | "set" | "nan" | "null" | "promise";
412
+ type AssertEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends (<V>() => V extends U ? 1 : 2) ? true : false;
413
+ type AssertNotEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends (<V>() => V extends U ? 1 : 2) ? false : true;
414
+ type AssertExtends<T, U> = T extends U ? T : never;
415
+ type ToZodMismatch<T, S extends $ZodType> = {
416
+ "types do not match": {
417
+ expected: T;
418
+ received: S["_zod"]["output"];
419
+ };
420
+ };
421
+ type ToZodKeyMismatch<Expected, Received> = $ZodType & {
422
+ "types do not match": {
423
+ expected: Expected;
424
+ received: Received;
425
+ };
426
+ };
427
+ declare const toZodDummy: unique symbol;
428
+ type ToZodNormalize<T> = [T] extends [(...args: any[]) => any] ? T : [T] extends [object] ? { [K in keyof T]: ToZodNormalize<T[K]>; } : T | typeof toZodDummy;
429
+ type ToZodEqual<Output, T> = AssertEqual<Output, T> extends true ? true : IsAny<Output> extends true ? false : IsAny<T> extends true ? false : AssertEqual<ToZodNormalize<Output>, ToZodNormalize<T>>;
430
+ type ToZodShape<Shape, T> = { [K in keyof Shape]: Shape[K] extends $ZodType ? K extends keyof T ? ToZodEqual<Shape[K]["_zod"]["output"], T[K]> extends true ? Shape[K] : ToZodKeyMismatch<T[K], Shape[K]["_zod"]["output"]> : ToZodKeyMismatch<never, Shape[K]["_zod"]["output"]> : Shape[K]; } & { [K in Exclude<keyof T, keyof Shape>]: ToZodKeyMismatch<T[K], never>; };
431
+ type ToZodExpand<X> = { [K in keyof X]: X[K]; } & {};
432
+ type ToZodTarget<S extends $ZodType, T> = S extends $ZodObject<infer Shape, infer Config> ? T extends object ? AssertEqual<ToZodExpand<ToZodShape<Shape, T>>, ToZodExpand<Shape>> extends true ? S & ToZodMismatch<T, S> : $ZodObject<ToZodExpand<ToZodShape<Shape, T>>, Config> : S & ToZodMismatch<T, S> : S & ToZodMismatch<T, S>;
349
433
  type IsAny<T> = 0 extends 1 & T ? true : false;
350
434
  type Omit$1<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
435
+ type OmitKeys<T, K extends string> = Pick<T, Exclude<keyof T, K>>;
351
436
  type MakePartial<T, K extends keyof T> = Omit$1<T, K> & InexactPartial<Pick<T, K>>;
437
+ type MakeRequired<T, K extends keyof T> = Omit$1<T, K> & Required<Pick<T, K>>;
438
+ type Exactly<T, X> = T & Record<Exclude<keyof X, keyof T>, never>;
352
439
  type NoUndefined<T> = T extends undefined ? never : T;
440
+ type Whatever = {} | undefined | null;
441
+ type Widen<T> = T extends string ? string : T extends number ? number : T extends boolean ? boolean : T extends bigint ? bigint : T;
353
442
  type LoosePartial<T extends object> = InexactPartial<T> & {
354
443
  [k: string]: unknown;
355
444
  };
356
445
  type Mask<Keys extends PropertyKey> = { [K in Keys]?: true; };
357
446
  type Writeable<T> = { -readonly [P in keyof T]: T[P]; } & {};
358
447
  type InexactPartial<T> = { [P in keyof T]?: T[P] | undefined; };
448
+ type EmptyObject = Record<string, never>;
359
449
  type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | {
360
450
  readonly [Symbol.toStringTag]: string;
361
451
  } | Date | Error | Generator | Promise<unknown> | RegExp;
@@ -363,28 +453,179 @@ type MakeReadonly<T> = T extends Map<infer K, infer V> ? ReadonlyMap<K, V> : T e
363
453
  type SomeObject = Record<PropertyKey, any>;
364
454
  type Identity<T> = T;
365
455
  type Flatten<T> = Identity<{ [k in keyof T]: T[k]; }>;
456
+ type Mapped<T> = { [k in keyof T]: T[k]; };
366
457
  type Prettify<T> = { [K in keyof T]: T[K]; } & {};
458
+ type NoNeverKeys<T> = { [k in keyof T]: [T[k]] extends [never] ? never : k; }[keyof T];
459
+ type NoNever<T> = Identity<{ [k in NoNeverKeys<T>]: k extends keyof T ? T[k] : never; }>;
367
460
  type Extend<A extends SomeObject, B extends SomeObject> = Flatten<keyof A & keyof B extends never ? A & B : { [K in keyof A as K extends keyof B ? never : K]: A[K]; } & { [K in keyof B]: B[K]; }>;
368
461
  type TupleItems = ReadonlyArray<SomeType>;
369
462
  type AnyFunc = (...args: any[]) => any;
463
+ type IsProp<T, K extends keyof T> = T[K] extends AnyFunc ? never : K;
370
464
  type MaybeAsync<T> = T | Promise<T>;
465
+ type KeyOf<T> = keyof OmitIndexSignature<T>;
466
+ type OmitIndexSignature<T> = { [K in keyof T as string extends K ? never : K extends string ? K : never]: T[K]; };
467
+ type ExtractIndexSignature<T> = { [K in keyof T as string extends K ? K : K extends string ? never : K]: T[K]; };
468
+ type Keys<T extends object> = keyof OmitIndexSignature<T>;
469
+ type SchemaClass<T extends SomeType> = {
470
+ new (def: T["_zod"]["def"]): T;
471
+ };
371
472
  type EnumValue = string | number;
372
473
  type EnumLike = Readonly<Record<string, EnumValue>>;
373
474
  type ToEnum<T extends EnumValue> = Flatten<{ [k in T]: k; }>;
475
+ type KeysEnum<T extends object> = ToEnum<Exclude<keyof T, symbol>>;
476
+ type KeysArray<T extends object> = Flatten<(keyof T & string)[]>;
374
477
  type Literal = string | number | bigint | boolean | null | undefined;
478
+ type LiteralArray = Array<Literal>;
375
479
  type Primitive = string | number | symbol | bigint | boolean | null | undefined;
480
+ type PrimitiveArray = Array<Primitive>;
481
+ type HasSize = {
482
+ size: number;
483
+ };
376
484
  type HasLength = {
377
485
  length: number;
378
486
  };
379
487
  type Numeric = number | bigint | Date;
488
+ type SafeParseResult<T> = SafeParseSuccess<T> | SafeParseError<T>;
489
+ type SafeParseSuccess<T> = {
490
+ success: true;
491
+ data: T;
492
+ error?: never;
493
+ };
494
+ type SafeParseError<T> = {
495
+ success: false;
496
+ data?: never;
497
+ error: $ZodError<T>;
498
+ };
380
499
  type PropValues = Record<string, Set<Primitive>>;
381
500
  type PrimitiveSet = Set<Primitive>;
501
+ declare function assertEqual<A, B>(val: AssertEqual<A, B>): AssertEqual<A, B>;
502
+ declare function assertNotEqual<A, B>(val: AssertNotEqual<A, B>): AssertNotEqual<A, B>;
503
+ declare function toZod<T>(): <S extends $ZodType>(schema: ToZodEqual<S["_zod"]["output"], T> extends true ? S : ToZodTarget<S, T>) => S;
504
+ declare function assertIs<T>(_arg: T): void;
505
+ declare function assertNever(_x: never): never;
506
+ declare function assert<T>(_: any): asserts _ is T;
507
+ declare function getEnumValues(entries: EnumLike): EnumValue[];
508
+ declare function joinValues<T extends Primitive[]>(array: T, separator?: string): string;
509
+ declare function jsonStringifyReplacer(_: string, value: any): any;
510
+ declare function cached<T>(getter: () => T): {
511
+ value: T;
512
+ };
513
+ declare function nullish$1(input: any): boolean;
514
+ declare function cleanRegex(source: string): string;
515
+ declare function floatSafeRemainder(val: number, step: number): number;
516
+ declare function defineLazy<T, K extends keyof T>(object: T, key: K, getter: () => T[K]): void;
517
+ declare function objectClone(obj: object): any;
518
+ declare function assignProp<T extends object, K extends PropertyKey>(target: T, prop: K, value: K extends keyof T ? T[K] : any): void;
519
+ /** A def's `shape` accessor, carrying whichever object it currently answers from. */
520
+ interface ShapeGetter {
521
+ (): Record<PropertyKey, any>;
522
+ raw: Record<PropertyKey, any>;
523
+ }
524
+ /**
525
+ * Whichever object a def's `shape` currently answers from: the one the caller passed until the first read, the frozen copy after it.
526
+ *
527
+ * Its keys and descriptors read without invoking anything, which is what lets a discriminated union check its discriminator, and the cycle walk read a shape, without resolving a getter that references the schema being constructed. A def that answers `shape` from an accessor of its own has none.
528
+ */
529
+ declare function rawShape(def: any): Record<PropertyKey, any> | undefined;
530
+ declare function mergeDefs(...defs: Record<string, any>[]): any;
531
+ declare function cloneDef(schema: $ZodType): any;
532
+ declare function getElementAtPath(obj: any, path: (string | number)[] | null | undefined): any;
533
+ declare function promiseAllObject<T extends object>(promisesObj: T): Promise<{ [k in keyof T]: Awaited<T[k]>; }>;
534
+ declare function randomString(length?: number): string;
535
+ declare function esc(str: string): string;
536
+ declare function slugify(input: string): string;
537
+ declare const captureStackTrace: (targetObject: object, constructorOpt?: Function) => void;
538
+ declare function isObject(data: any): data is Record<PropertyKey, unknown>;
539
+ declare const allowsEval: {
540
+ value: boolean;
541
+ };
542
+ declare function isPlainObject(o: any): o is Record<PropertyKey, unknown>;
543
+ declare function shallowClone(o: any): any;
544
+ declare function numKeys(data: any): number;
545
+ declare const getParsedType: (data: any) => ParsedTypes;
546
+ declare const propertyKeyTypes: Set<string>;
547
+ declare const primitiveTypes: Set<string>;
548
+ declare function escapeRegex(str: string): string;
549
+ declare function clone<T extends $ZodType>(inst: T, def?: T["_zod"]["def"], params?: {
550
+ parent: boolean;
551
+ }): T;
382
552
  type EmptyToNever<T> = keyof T extends never ? never : T;
553
+ type Normalize<T> = T extends undefined ? never : T extends Record<any, any> ? Flatten<{ [k in keyof Omit$1<T, "error" | "message">]: T[k]; } & ("error" extends keyof T ? {
554
+ error?: Exclude<T["error"], string>;
555
+ } : unknown)> : never;
556
+ declare function normalizeParams<T>(_params: T): Normalize<T>;
557
+ declare function createTransparentProxy<T extends object>(getter: () => T): T;
558
+ declare function stringifyPrimitive(value: any): string;
559
+ declare function optionalKeys(shape: $ZodShape): string[];
560
+ type CleanKey<T extends PropertyKey> = T extends `?${infer K}` ? K : T extends `${infer K}?` ? K : T;
561
+ type ToCleanMap<T extends $ZodLooseShape> = { [k in keyof T]: k extends `?${infer K}` ? K : k extends `${infer K}?` ? K : k; };
562
+ type FromCleanMap<T extends $ZodLooseShape> = { [k in keyof T as k extends `?${infer K}` ? K : k extends `${infer K}?` ? K : k]: k; };
563
+ declare const NUMBER_FORMAT_RANGES: Record<$ZodNumberFormats, [number, number]>;
564
+ declare const BIGINT_FORMAT_RANGES: Record<$ZodBigIntFormats, [bigint, bigint]>;
565
+ declare function pick(schema: $ZodObject, mask: Record<string, unknown>): any;
566
+ declare function omit(schema: $ZodObject, mask: object): any;
567
+ declare function extend(schema: $ZodObject, shape: $ZodShape): any;
568
+ declare function safeExtend(schema: $ZodObject, shape: $ZodShape): any;
569
+ declare function merge(a: $ZodObject, b: $ZodObject): any;
570
+ declare function partial(Class: SchemaClass<$ZodOptional> | null, schema: $ZodObject, mask: object | undefined, name?: string): any;
571
+ declare function required(Class: SchemaClass<$ZodNonOptional>, schema: $ZodObject, mask: object | undefined): any;
572
+ type Constructor<T, Def extends any[] = any[]> = new (...args: Def) => T;
573
+ declare function aborted(x: ParsePayload, startIndex?: number): boolean;
574
+ declare function explicitlyAborted(x: ParsePayload, startIndex?: number): boolean;
575
+ declare function prefixIssues(path: PropertyKey, issues: $ZodRawIssue[]): $ZodRawIssue[];
576
+ declare function unwrapMessage(message: string | {
577
+ message: string;
578
+ } | undefined | null): string | undefined;
579
+ declare function attachSchema(issues: $ZodRawIssue[], start: number, inst: $ZodType): void;
580
+ declare function finalizeIssue(iss: $ZodRawIssue, ctx: ParseContextInternal | undefined, config: $ZodConfig): $ZodIssue;
581
+ declare function getSizableOrigin(input: any): "set" | "map" | "file" | "unknown";
582
+ declare function codePointLength(str: string): number;
583
+ declare function getLengthableOrigin(input: any): "array" | "string" | "unknown";
584
+ declare function parsedType(data: unknown): $ZodInvalidTypeExpected;
585
+ declare function issue(_iss: string, input: any, inst: any): $ZodRawIssue;
586
+ declare function issue(_iss: $ZodRawIssue): $ZodRawIssue;
587
+ declare function cleanEnum(obj: Record<string, EnumValue>): EnumValue[];
588
+ declare function base64ToUint8Array(base64: string): InstanceType<typeof Uint8Array>;
589
+ declare function uint8ArrayToBase64(bytes: Uint8Array): string;
590
+ declare function base64urlToUint8Array(base64url: string): InstanceType<typeof Uint8Array>;
591
+ declare function uint8ArrayToBase64url(bytes: Uint8Array): string;
592
+ declare function hexToUint8Array(hex: string): InstanceType<typeof Uint8Array>;
593
+ declare function uint8ArrayToHex(bytes: Uint8Array): string;
383
594
  declare abstract class Class {
384
595
  constructor(..._args: any[]);
385
596
  }
597
+ /**
598
+ * Installs a trait's members on its prototype. Each value builds that member for the instance on first read; the built value shadows the accessor as an own property, so a detached `const { parse } = schema` keeps working.
599
+ *
600
+ * Call this from a `proto` initializer, which runs once per prototype — never per instance.
601
+ */
602
+ declare function members(proto: object, table: object): void;
603
+ /** Shadows a prototype member with an own value, so a getter that builds from the instance runs once. */
604
+ declare function own<T>(inst: object, key: PropertyKey, value: T, enumerable?: boolean): T;
605
+ /** Like {@link own}, for a member that was never an own data property and has to stay out of `Object.keys`. */
606
+ declare function hide<T>(inst: object, key: PropertyKey, value: T): T;
607
+ /** Adds members a table derives from the instance: each builds on first read and shadows as own data, and assignment shadows the same way, as when these were own properties. */
608
+ declare function derived<T>(computes: { [K in keyof T]?: (inst: T) => T[K]; }, table: ProtoOf<T>): ProtoOf<T>;
386
609
  /** A trait's prototype members: a partial view of its own interface, with `this` typed as the instance. */
387
610
  type ProtoOf<T> = { [K in keyof T]?: (T[K] extends ((...args: infer A) => infer R) ? (...args: A) => R : T[K]) | undefined; } & ThisType<T>;
611
+ /**
612
+ * Installs a lazily-derived internal on the `_zod` prototype of `inst`'s
613
+ * constructor, computed from the internals object itself and cached there on
614
+ * first read. One accessor per constructor rather than one per instance.
615
+ */
616
+ declare function defineLazyInternal<T extends {
617
+ _zod: any;
618
+ }>(inst: T, key: string, compute: (zod: T["_zod"]) => unknown): void;
619
+ /**
620
+ * Installs `key` on `inst`'s prototype, computed by `make` on first read and cached there as an own
621
+ * data property. One accessor per constructor rather than one per instance, because an own accessor
622
+ * puts every instance after the first into v8 dictionary mode. The key doubles as the sentinel.
623
+ */
624
+ declare function installLazyProp(inst: object, key: string, make: (self: any) => unknown, enumerable: boolean): void;
625
+ /** Marks the thunk `_catch` synthesises for a constant catch value. `Function.length` cannot tell that thunk from a user callback — rest and defaulted parameters both report arity 0 — and a user callback reads `ctx.error`, whose issues only finalize correctly against the caller's per-parse error map. Provenance can say what arity cannot. A plain string key rather than `Symbol.for`, whose call at module scope no bundler can prove pure — the same shape that anchored `urlCanParse` into every build. */
626
+ declare const CONSTANT_CATCH = "~constantCatch";
627
+ /** Wraps a constant catch value in a thunk tagged with {@link CONSTANT_CATCH}. */
628
+ declare function constantCatch<T>(value: T): () => T;
388
629
  //#endregion
389
630
  //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/versions.d.cts
390
631
  declare const version: {
@@ -392,8 +633,9 @@ declare const version: {
392
633
  readonly minor: 6;
393
634
  readonly patch: number;
394
635
  };
395
- //#endregion
396
- //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/schemas.d.cts
636
+ declare namespace schemas_d_exports$1 {
637
+ export { $DiscriminatedOption, $DiscriminatorValue, $InferEnumInput, $InferEnumOutput, $InferInnerFunctionType, $InferInnerFunctionTypeAsync, $InferObjectInput, $InferObjectOutput, $InferOuterFunctionType, $InferOuterFunctionTypeAsync, $InferTupleInputType, $InferTupleOutputType, $InferUnionInput, $InferUnionOutput, $InferZodRecordInput, $InferZodRecordOutput, $PartsToTemplateLiteral, $ZodAny, $ZodAnyDef, $ZodAnyInternals, $ZodArray, $ZodArrayDef, $ZodArrayInternals, $ZodBase64, $ZodBase64Def, $ZodBase64Internals, $ZodBase64URL, $ZodBase64URLDef, $ZodBase64URLInternals, $ZodBigInt, $ZodBigIntDef, $ZodBigIntFormat, $ZodBigIntFormatDef, $ZodBigIntFormatInternals, $ZodBigIntInternals, $ZodBoolean, $ZodBooleanDef, $ZodBooleanInternals, $ZodCIDRv4, $ZodCIDRv4Def, $ZodCIDRv4Internals, $ZodCIDRv6, $ZodCIDRv6Def, $ZodCIDRv6Internals, $ZodCUID, $ZodCUID2, $ZodCUID2Def, $ZodCUID2Internals, $ZodCUIDDef, $ZodCUIDInternals, $ZodCatch, $ZodCatchCtx, $ZodCatchDef, $ZodCatchInternals, $ZodCodec, $ZodCodecDef, $ZodCodecInternals, $ZodCreditCard, $ZodCreditCardDef, $ZodCreditCardInternals, $ZodCustom, $ZodCustomDef, $ZodCustomInternals, $ZodCustomStringFormat, $ZodCustomStringFormatDef, $ZodCustomStringFormatInternals, $ZodDate, $ZodDateDef, $ZodDateInternals, $ZodDefault, $ZodDefaultDef, $ZodDefaultInternals, $ZodDiscriminatedUnion, $ZodDiscriminatedUnionDef, $ZodDiscriminatedUnionInternals, $ZodE164, $ZodE164Def, $ZodE164Internals, $ZodEmail, $ZodEmailDef, $ZodEmailInternals, $ZodEmoji, $ZodEmojiDef, $ZodEmojiInternals, $ZodEnum, $ZodEnumDef, $ZodEnumInternals, $ZodExactOptional, $ZodExactOptionalDef, $ZodExactOptionalInternals, $ZodFile, $ZodFileDef, $ZodFileInternals, $ZodFunction, $ZodFunctionArgs, $ZodFunctionDef, $ZodFunctionIn, $ZodFunctionInternals, $ZodFunctionOut, $ZodFunctionParams, $ZodGUID, $ZodGUIDDef, $ZodGUIDInternals, $ZodIBAN, $ZodIBANDef, $ZodIBANInternals, $ZodIPv4, $ZodIPv4Def, $ZodIPv4Internals, $ZodIPv6, $ZodIPv6Def, $ZodIPv6Internals, $ZodISODate, $ZodISODateDef, $ZodISODateInternals, $ZodISODateTime, $ZodISODateTimeDef, $ZodISODateTimeInternals, $ZodISODuration, $ZodISODurationDef, $ZodISODurationInternals, $ZodISOTime, $ZodISOTimeDef, $ZodISOTimeInternals, $ZodIntersection, $ZodIntersectionDef, $ZodIntersectionInternals, $ZodJWT, $ZodJWTDef, $ZodJWTInternals, $ZodKSUID, $ZodKSUIDDef, $ZodKSUIDInternals, $ZodLazy, $ZodLazyDef, $ZodLazyInternals, $ZodLiteral, $ZodLiteralDef, $ZodLiteralInternals, $ZodLooseShape, $ZodMAC, $ZodMACDef, $ZodMACInternals, $ZodMap, $ZodMapDef, $ZodMapInternals, $ZodMemoizer, $ZodNaN, $ZodNaNDef, $ZodNaNInternals, $ZodNanoID, $ZodNanoIDDef, $ZodNanoIDInternals, $ZodNever, $ZodNeverDef, $ZodNeverInternals, $ZodNonOptional, $ZodNonOptionalDef, $ZodNonOptionalInternals, $ZodNull, $ZodNullDef, $ZodNullInternals, $ZodNullable, $ZodNullableDef, $ZodNullableInternals, $ZodNumber, $ZodNumberDef, $ZodNumberFormat, $ZodNumberFormatDef, $ZodNumberFormatInternals, $ZodNumberInternals, $ZodObject, $ZodObjectConfig, $ZodObjectDef, $ZodObjectInternals, $ZodObjectJIT, $ZodOptional, $ZodOptionalDef, $ZodOptionalInternals, $ZodPipe, $ZodPipeDef, $ZodPipeInternals, $ZodPrefault, $ZodPrefaultDef, $ZodPrefaultInternals, $ZodPreprocess, $ZodPreprocessDef, $ZodPreprocessInternals, $ZodPromise, $ZodPromiseDef, $ZodPromiseInternals, $ZodReadonly, $ZodReadonlyDef, $ZodReadonlyInternals, $ZodRecord, $ZodRecordDef, $ZodRecordInternals, $ZodRecordKey, $ZodSet, $ZodSetDef, $ZodSetInternals, $ZodShape, $ZodStandardSchema, $ZodString, $ZodStringDef, $ZodStringFormat, $ZodStringFormatDef, $ZodStringFormatInternals, $ZodStringFormatTypes, $ZodStringInternals, $ZodSuccess, $ZodSuccessDef, $ZodSuccessInternals, $ZodSymbol, $ZodSymbolDef, $ZodSymbolInternals, $ZodTemplateLiteral, $ZodTemplateLiteralDef, $ZodTemplateLiteralInternals, $ZodTemplateLiteralPart, $ZodTransform, $ZodTransformDef, $ZodTransformInternals, $ZodTuple, $ZodTupleDef, $ZodTupleInternals, $ZodType, $ZodTypeDef, $ZodTypeInternals, $ZodTypes, $ZodULID, $ZodULIDDef, $ZodULIDInternals, $ZodURL, $ZodURLDef, $ZodURLInternals, $ZodUUID, $ZodUUIDDef, $ZodUUIDInternals, $ZodUndefined, $ZodUndefinedDef, $ZodUndefinedInternals, $ZodUnion, $ZodUnionDef, $ZodUnionInternals, $ZodUnknown, $ZodUnknownDef, $ZodUnknownInternals, $ZodVoid, $ZodVoidDef, $ZodVoidInternals, $ZodXID, $ZodXIDDef, $ZodXIDInternals, $ZodXor, $ZodXorInternals, $catchall, $loose, $partial, $strict, $strip, CheckFn, ConcatenateTupleOfStrings, ConvertPartsToStringTuple, File, ParseContext, ParseContextInternal, ParsePayload, SomeType, ToTemplateLiteral, URL_BAD_FORMAT, URL_UNPARSEABLE, _$ZodType, _$ZodTypeInternals, base64Charset, base64urlCharset, canParseURL, clone, getDiscriminatedOption, isValidBase64, isValidBase64URL, isValidCIDRv6, isValidCreditCard, isValidIBAN, isValidIPv6, isValidJWT, mergeValues, parseURLObject, standardProps, stripTabAndNewline, urlHostnameOk, urlProtocolOk, validateURL };
638
+ }
397
639
  interface ParseContext<T extends $ZodIssueBase = never> {
398
640
  /** Customize error messages. */
399
641
  readonly error?: $ZodErrorMap<T>;
@@ -410,6 +652,12 @@ interface ParseContextInternal<T extends $ZodIssueBase = never> extends ParseCon
410
652
  /** Set only by `validate`/`validateAsync`. A container may stop before its next child, never inside one, so a map entry and a tuple's fixed items parse whole. */
411
653
  readonly abortEarly?: boolean;
412
654
  }
655
+ /** Gives a container cycle support: `attach` wraps its parse, and `alloc` registers the object it builds into before any child is parsed so a reference back to the same input resolves to it. */
656
+ interface $ZodMemoizer {
657
+ attach(inst: $ZodType): void;
658
+ guard(inst: $ZodType): void;
659
+ alloc<T extends object>(inst: $ZodType, payload: ParsePayload, empty: T, ctx: ParseContextInternal): T;
660
+ }
413
661
  interface ParsePayload<T = unknown> {
414
662
  value: T;
415
663
  issues: $ZodRawIssue[];
@@ -483,7 +731,7 @@ interface $ZodTypeInternals<out O = unknown, out I = unknown> extends _$ZodTypeI
483
731
  /** @internal The inferred input type */
484
732
  input: I;
485
733
  }
486
- type $ZodStandardSchema<T> = StandardSchemaV1.Props<input<T>, output<T>>;
734
+ type $ZodStandardSchema<T> = StandardSchemaV1.Props<input$1<T>, output$1<T>>;
487
735
  type SomeType = {
488
736
  _zod: _$ZodTypeInternals;
489
737
  };
@@ -493,6 +741,7 @@ interface $ZodType<O = unknown, I = unknown, Internals extends $ZodTypeInternals
493
741
  }
494
742
  interface _$ZodType<T extends $ZodTypeInternals = $ZodTypeInternals> extends $ZodType<T["output"], T["input"], T> {}
495
743
  declare const $ZodType: $constructor<$ZodType>;
744
+ declare function standardProps(inst: $ZodType): StandardSchemaV1.Props<any, any>;
496
745
  interface $ZodStringDef extends $ZodTypeDef {
497
746
  type: "string";
498
747
  coerce?: boolean;
@@ -524,6 +773,7 @@ interface $ZodStringFormat<Format extends string = string> extends $ZodType {
524
773
  _zod: $ZodStringFormatInternals<Format>;
525
774
  }
526
775
  declare const $ZodStringFormat: $constructor<$ZodStringFormat>;
776
+ interface $ZodGUIDDef extends $ZodStringFormatDef<"guid"> {}
527
777
  interface $ZodGUIDInternals extends $ZodStringFormatInternals<"guid"> {}
528
778
  interface $ZodGUID extends $ZodType {
529
779
  _zod: $ZodGUIDInternals;
@@ -539,6 +789,7 @@ interface $ZodUUID extends $ZodType {
539
789
  _zod: $ZodUUIDInternals;
540
790
  }
541
791
  declare const $ZodUUID: $constructor<$ZodUUID>;
792
+ interface $ZodEmailDef extends $ZodStringFormatDef<"email"> {}
542
793
  interface $ZodEmailInternals extends $ZodStringFormatInternals<"email"> {}
543
794
  interface $ZodEmail extends $ZodType {
544
795
  _zod: $ZodEmailInternals;
@@ -555,7 +806,20 @@ interface $ZodURLInternals extends $ZodStringFormatInternals<"url"> {
555
806
  interface $ZodURL extends $ZodType {
556
807
  _zod: $ZodURLInternals;
557
808
  }
809
+ /** The `://` guard rejected the input before the URL constructor saw it. */
810
+ declare const URL_BAD_FORMAT = 1;
811
+ /** The URL parser rejected the input. */
812
+ declare const URL_UNPARSEABLE = 2;
813
+ declare function canParseURL(input: string): boolean;
814
+ declare function validateURL(trimmed: string, def: Pick<$ZodURLDef, "protocol" | "hostname" | "normalize">): URL | true | typeof URL_BAD_FORMAT | typeof URL_UNPARSEABLE;
815
+ /** Parses a URL while preserving the non-normalizing HTTP guard. */
816
+ declare function parseURLObject(trimmed: string, def: Pick<$ZodURLDef, "protocol" | "normalize">): URL | typeof URL_BAD_FORMAT | typeof URL_UNPARSEABLE;
817
+ /** The URL parser deletes every ASCII tab, LF and CR from its input before it parses, so `new URL("https://exa\nmple.com")` reports on `example.com`. Applying the same deletion to the returned value closes the half of that divergence which can move the host; the parser's other rewrite, stripping C0 controls at the edges, cannot. */
818
+ declare function stripTabAndNewline(value: string): string;
819
+ declare function urlHostnameOk(url: URL, hostname: RegExp): boolean;
820
+ declare function urlProtocolOk(url: URL, protocol: RegExp): boolean;
558
821
  declare const $ZodURL: $constructor<$ZodURL>;
822
+ interface $ZodEmojiDef extends $ZodStringFormatDef<"emoji"> {}
559
823
  interface $ZodEmojiInternals extends $ZodStringFormatInternals<"emoji"> {}
560
824
  interface $ZodEmoji extends $ZodType {
561
825
  _zod: $ZodEmojiInternals;
@@ -571,6 +835,12 @@ interface $ZodNanoID extends $ZodType {
571
835
  _zod: $ZodNanoIDInternals;
572
836
  }
573
837
  declare const $ZodNanoID: $constructor<$ZodNanoID>;
838
+ /**
839
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
840
+ * (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
841
+ * See https://github.com/paralleldrive/cuid.
842
+ */
843
+ interface $ZodCUIDDef extends $ZodStringFormatDef<"cuid"> {}
574
844
  /**
575
845
  * @deprecated CUID v1 is deprecated by its authors due to information leakage
576
846
  * (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
@@ -591,21 +861,25 @@ interface $ZodCUID extends $ZodType {
591
861
  * See https://github.com/paralleldrive/cuid.
592
862
  */
593
863
  declare const $ZodCUID: $constructor<$ZodCUID>;
864
+ interface $ZodCUID2Def extends $ZodStringFormatDef<"cuid2"> {}
594
865
  interface $ZodCUID2Internals extends $ZodStringFormatInternals<"cuid2"> {}
595
866
  interface $ZodCUID2 extends $ZodType {
596
867
  _zod: $ZodCUID2Internals;
597
868
  }
598
869
  declare const $ZodCUID2: $constructor<$ZodCUID2>;
870
+ interface $ZodULIDDef extends $ZodStringFormatDef<"ulid"> {}
599
871
  interface $ZodULIDInternals extends $ZodStringFormatInternals<"ulid"> {}
600
872
  interface $ZodULID extends $ZodType {
601
873
  _zod: $ZodULIDInternals;
602
874
  }
603
875
  declare const $ZodULID: $constructor<$ZodULID>;
876
+ interface $ZodXIDDef extends $ZodStringFormatDef<"xid"> {}
604
877
  interface $ZodXIDInternals extends $ZodStringFormatInternals<"xid"> {}
605
878
  interface $ZodXID extends $ZodType {
606
879
  _zod: $ZodXIDInternals;
607
880
  }
608
881
  declare const $ZodXID: $constructor<$ZodXID>;
882
+ interface $ZodKSUIDDef extends $ZodStringFormatDef<"ksuid"> {}
609
883
  interface $ZodKSUIDInternals extends $ZodStringFormatInternals<"ksuid"> {}
610
884
  interface $ZodKSUID extends $ZodType {
611
885
  _zod: $ZodKSUIDInternals;
@@ -623,6 +897,7 @@ interface $ZodISODateTime extends $ZodType {
623
897
  _zod: $ZodISODateTimeInternals;
624
898
  }
625
899
  declare const $ZodISODateTime: $constructor<$ZodISODateTime>;
900
+ interface $ZodISODateDef extends $ZodStringFormatDef<"date"> {}
626
901
  interface $ZodISODateInternals extends $ZodStringFormatInternals<"date"> {}
627
902
  interface $ZodISODate extends $ZodType {
628
903
  _zod: $ZodISODateInternals;
@@ -638,6 +913,7 @@ interface $ZodISOTime extends $ZodType {
638
913
  _zod: $ZodISOTimeInternals;
639
914
  }
640
915
  declare const $ZodISOTime: $constructor<$ZodISOTime>;
916
+ interface $ZodISODurationDef extends $ZodStringFormatDef<"duration"> {}
641
917
  interface $ZodISODurationInternals extends $ZodStringFormatInternals<"duration"> {}
642
918
  interface $ZodISODuration extends $ZodType {
643
919
  _zod: $ZodISODurationInternals;
@@ -662,7 +938,18 @@ interface $ZodIPv6Internals extends $ZodStringFormatInternals<"ipv6"> {
662
938
  interface $ZodIPv6 extends $ZodType {
663
939
  _zod: $ZodIPv6Internals;
664
940
  }
941
+ declare function isValidIPv6(value: string): boolean;
665
942
  declare const $ZodIPv6: $constructor<$ZodIPv6>;
943
+ interface $ZodMACDef extends $ZodStringFormatDef<"mac"> {
944
+ delimiter?: string;
945
+ }
946
+ interface $ZodMACInternals extends $ZodStringFormatInternals<"mac"> {
947
+ def: $ZodMACDef;
948
+ }
949
+ interface $ZodMAC extends $ZodType {
950
+ _zod: $ZodMACInternals;
951
+ }
952
+ declare const $ZodMAC: $constructor<$ZodMAC>;
666
953
  interface $ZodCIDRv4Def extends $ZodStringFormatDef<"cidrv4"> {
667
954
  version?: "v4";
668
955
  }
@@ -682,22 +969,49 @@ interface $ZodCIDRv6Internals extends $ZodStringFormatInternals<"cidrv6"> {
682
969
  interface $ZodCIDRv6 extends $ZodType {
683
970
  _zod: $ZodCIDRv6Internals;
684
971
  }
972
+ declare function isValidCIDRv6(value: string): boolean;
685
973
  declare const $ZodCIDRv6: $constructor<$ZodCIDRv6>;
974
+ declare function isValidBase64(data: string): boolean;
975
+ interface $ZodBase64Def extends $ZodStringFormatDef<"base64"> {}
686
976
  interface $ZodBase64Internals extends $ZodStringFormatInternals<"base64"> {}
687
977
  interface $ZodBase64 extends $ZodType {
688
978
  _zod: $ZodBase64Internals;
689
979
  }
980
+ declare const base64Charset: RegExp;
690
981
  declare const $ZodBase64: $constructor<$ZodBase64>;
982
+ declare const base64urlCharset: RegExp;
983
+ declare function isValidBase64URL(data: string): boolean;
984
+ interface $ZodBase64URLDef extends $ZodStringFormatDef<"base64url"> {}
691
985
  interface $ZodBase64URLInternals extends $ZodStringFormatInternals<"base64url"> {}
692
986
  interface $ZodBase64URL extends $ZodType {
693
987
  _zod: $ZodBase64URLInternals;
694
988
  }
695
989
  declare const $ZodBase64URL: $constructor<$ZodBase64URL>;
990
+ interface $ZodE164Def extends $ZodStringFormatDef<"e164"> {}
696
991
  interface $ZodE164Internals extends $ZodStringFormatInternals<"e164"> {}
697
992
  interface $ZodE164 extends $ZodType {
698
993
  _zod: $ZodE164Internals;
699
994
  }
700
995
  declare const $ZodE164: $constructor<$ZodE164>;
996
+ declare function isValidCreditCard(input: string): boolean;
997
+ interface $ZodCreditCardDef extends $ZodStringFormatDef<"credit_card"> {}
998
+ interface $ZodCreditCardInternals extends $ZodStringFormatInternals<"credit_card"> {
999
+ def: $ZodCreditCardDef;
1000
+ }
1001
+ interface $ZodCreditCard extends $ZodType {
1002
+ _zod: $ZodCreditCardInternals;
1003
+ }
1004
+ declare const $ZodCreditCard: $constructor<$ZodCreditCard>;
1005
+ declare function isValidIBAN(input: string): boolean;
1006
+ interface $ZodIBANDef extends $ZodStringFormatDef<"iban"> {}
1007
+ interface $ZodIBANInternals extends $ZodStringFormatInternals<"iban"> {
1008
+ def: $ZodIBANDef;
1009
+ }
1010
+ interface $ZodIBAN extends $ZodType {
1011
+ _zod: $ZodIBANInternals;
1012
+ }
1013
+ declare const $ZodIBAN: $constructor<$ZodIBAN>;
1014
+ declare function isValidJWT(token: string, algorithm?: JWTAlgorithm | null): boolean;
701
1015
  interface $ZodJWTDef extends $ZodStringFormatDef<"jwt"> {
702
1016
  alg?: JWTAlgorithm | undefined;
703
1017
  }
@@ -708,6 +1022,16 @@ interface $ZodJWT extends $ZodType {
708
1022
  _zod: $ZodJWTInternals;
709
1023
  }
710
1024
  declare const $ZodJWT: $constructor<$ZodJWT>;
1025
+ interface $ZodCustomStringFormatDef<Format extends string = string> extends $ZodStringFormatDef<Format> {
1026
+ fn: (val: string) => unknown;
1027
+ }
1028
+ interface $ZodCustomStringFormatInternals<Format extends string = string> extends $ZodStringFormatInternals<Format> {
1029
+ def: $ZodCustomStringFormatDef<Format>;
1030
+ }
1031
+ interface $ZodCustomStringFormat<Format extends string = string> extends $ZodStringFormat<Format> {
1032
+ _zod: $ZodCustomStringFormatInternals<Format>;
1033
+ }
1034
+ declare const $ZodCustomStringFormat: $constructor<$ZodCustomStringFormat>;
711
1035
  interface $ZodNumberDef extends $ZodTypeDef {
712
1036
  type: "number";
713
1037
  coerce?: boolean;
@@ -731,6 +1055,15 @@ interface $ZodNumber<Input = unknown> extends $ZodType {
731
1055
  _zod: $ZodNumberInternals<Input>;
732
1056
  }
733
1057
  declare const $ZodNumber: $constructor<$ZodNumber>;
1058
+ interface $ZodNumberFormatDef<Format extends $ZodNumberFormats = $ZodNumberFormats> extends $ZodNumberDef, $ZodCheckNumberFormatDef<Format> {}
1059
+ interface $ZodNumberFormatInternals<Format extends $ZodNumberFormats = $ZodNumberFormats> extends $ZodNumberInternals<number>, $ZodCheckNumberFormatInternals<Format> {
1060
+ def: $ZodNumberFormatDef<Format>;
1061
+ isst: $ZodIssueInvalidType;
1062
+ }
1063
+ interface $ZodNumberFormat<Format extends $ZodNumberFormats = $ZodNumberFormats> extends $ZodType {
1064
+ _zod: $ZodNumberFormatInternals<Format>;
1065
+ }
1066
+ declare const $ZodNumberFormat: $constructor<$ZodNumberFormat>;
734
1067
  interface $ZodBooleanDef extends $ZodTypeDef {
735
1068
  type: "boolean";
736
1069
  coerce?: boolean;
@@ -764,6 +1097,16 @@ interface $ZodBigInt<T = unknown> extends $ZodType {
764
1097
  _zod: $ZodBigIntInternals<T>;
765
1098
  }
766
1099
  declare const $ZodBigInt: $constructor<$ZodBigInt>;
1100
+ interface $ZodBigIntFormatDef<Format extends $ZodBigIntFormats = $ZodBigIntFormats> extends $ZodBigIntDef, $ZodCheckBigIntFormatDef<Format> {
1101
+ check: "bigint_format";
1102
+ }
1103
+ interface $ZodBigIntFormatInternals<Format extends $ZodBigIntFormats = $ZodBigIntFormats> extends $ZodBigIntInternals<bigint>, $ZodCheckBigIntFormatInternals<Format> {
1104
+ def: $ZodBigIntFormatDef<Format>;
1105
+ }
1106
+ interface $ZodBigIntFormat<Format extends $ZodBigIntFormats = $ZodBigIntFormats> extends $ZodType {
1107
+ _zod: $ZodBigIntFormatInternals<Format>;
1108
+ }
1109
+ declare const $ZodBigIntFormat: $constructor<$ZodBigIntFormat>;
767
1110
  interface $ZodSymbolDef extends $ZodTypeDef {
768
1111
  type: "symbol";
769
1112
  }
@@ -869,8 +1212,8 @@ interface $ZodArrayDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
869
1212
  interface $ZodArrayInternals<T extends SomeType = $ZodType> extends _$ZodTypeInternals {
870
1213
  def: $ZodArrayDef<T>;
871
1214
  isst: $ZodIssueInvalidType;
872
- output: output<T>[];
873
- input: input<T>[];
1215
+ output: output$1<T>[];
1216
+ input: input$1<T>[];
874
1217
  }
875
1218
  interface $ZodArray<T extends SomeType = $ZodType> extends $ZodType<any, any, $ZodArrayInternals<T>> {}
876
1219
  declare const $ZodArray: $constructor<$ZodArray>;
@@ -884,8 +1227,8 @@ type OptionalInSchema = {
884
1227
  optin: "optional" | "defaulted";
885
1228
  };
886
1229
  };
887
- type $InferObjectOutput<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? IsAny<T[keyof T]> extends true ? Record<string, unknown> : { [k in string]: output<T[keyof T]>; } : keyof (T & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T as T[k] extends OptionalOutSchema ? never : k]: T[k]["_zod"]["output"]; } & { -readonly [k in keyof T as T[k] extends OptionalOutSchema ? k : never]?: T[k]["_zod"]["output"]; } & Extra>;
888
- type $InferObjectInput<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? IsAny<T[keyof T]> extends true ? Record<string, unknown> : { [k in string]: input<T[keyof T]>; } : keyof (T & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T as T[k] extends OptionalInSchema ? never : k]: T[k]["_zod"]["input"]; } & { -readonly [k in keyof T as T[k] extends OptionalInSchema ? k : never]?: T[k]["_zod"]["input"]; } & Extra>;
1230
+ type $InferObjectOutput<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? IsAny<T[keyof T]> extends true ? Record<string, unknown> : { [k in string]: output$1<T[keyof T]>; } : keyof (T & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T as T[k] extends OptionalOutSchema ? never : k]: T[k]["_zod"]["output"]; } & { -readonly [k in keyof T as T[k] extends OptionalOutSchema ? k : never]?: T[k]["_zod"]["output"]; } & Extra>;
1231
+ type $InferObjectInput<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? IsAny<T[keyof T]> extends true ? Record<string, unknown> : { [k in string]: input$1<T[keyof T]>; } : keyof (T & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T as T[k] extends OptionalInSchema ? never : k]: T[k]["_zod"]["input"]; } & { -readonly [k in keyof T as T[k] extends OptionalInSchema ? k : never]?: T[k]["_zod"]["input"]; } & Extra>;
889
1232
  type $ZodObjectConfig = {
890
1233
  out: Record<string, unknown>;
891
1234
  in: Record<string, unknown>;
@@ -904,10 +1247,10 @@ type $strip = {
904
1247
  };
905
1248
  type $catchall<T extends SomeType> = {
906
1249
  out: {
907
- [k: string]: output<T>;
1250
+ [k: string]: output$1<T>;
908
1251
  };
909
1252
  in: {
910
- [k: string]: input<T>;
1253
+ [k: string]: input$1<T>;
911
1254
  };
912
1255
  };
913
1256
  type $ZodShape = Readonly<{
@@ -935,8 +1278,9 @@ interface $ZodObject<
935
1278
  /** @ts-ignore Cast variance */
936
1279
  out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Params extends $ZodObjectConfig = $ZodObjectConfig> extends $ZodType<any, any, $ZodObjectInternals<Shape, Params>> {}
937
1280
  declare const $ZodObject: $constructor<$ZodObject>;
938
- type $InferUnionOutput<T extends SomeType> = T extends any ? output<T> : never;
939
- type $InferUnionInput<T extends SomeType> = T extends any ? input<T> : never;
1281
+ declare const $ZodObjectJIT: $constructor<$ZodObject>;
1282
+ type $InferUnionOutput<T extends SomeType> = T extends any ? output$1<T> : never;
1283
+ type $InferUnionInput<T extends SomeType> = T extends any ? input$1<T> : never;
940
1284
  interface $ZodUnionDef<Options extends readonly SomeType[] = readonly $ZodType[]> extends $ZodTypeDef {
941
1285
  type: "union";
942
1286
  options: Options;
@@ -958,6 +1302,11 @@ interface $ZodUnion<T extends readonly SomeType[] = readonly $ZodType[]> extends
958
1302
  _zod: $ZodUnionInternals<T>;
959
1303
  }
960
1304
  declare const $ZodUnion: $constructor<$ZodUnion>;
1305
+ interface $ZodXorInternals<T extends readonly SomeType[] = readonly $ZodType[]> extends $ZodUnionInternals<T> {}
1306
+ interface $ZodXor<T extends readonly SomeType[] = readonly $ZodType[]> extends $ZodType<any, any, $ZodXorInternals<T>> {
1307
+ _zod: $ZodXorInternals<T>;
1308
+ }
1309
+ declare const $ZodXor: $constructor<$ZodXor>;
961
1310
  interface $ZodDiscriminatedUnionDef<Options extends readonly SomeType[] = readonly $ZodType[], Disc extends string = string> extends $ZodUnionDef<Options> {
962
1311
  discriminator: Disc;
963
1312
  unionFallback?: boolean;
@@ -969,6 +1318,20 @@ interface $ZodDiscriminatedUnionInternals<Options extends readonly SomeType[] =
969
1318
  optionsMap: Map<Primitive, $ZodType | null>;
970
1319
  }>;
971
1320
  }
1321
+ /** The discriminator values a member of `Options` can declare. An omittable discriminator contributes `undefined`, matching what `propValues` claims for it. */
1322
+ type $DiscriminatorValue<Options extends readonly SomeType[], Disc extends string> = { [I in keyof Options]: Options[I] extends {
1323
+ _zod: {
1324
+ output: infer Out;
1325
+ };
1326
+ } ? Disc extends keyof Out ? Out[Disc] : never : never; }[number];
1327
+ /** The member of `Options` that declares `V`. */
1328
+ type $DiscriminatedOption<Options extends readonly SomeType[], Disc extends string, V> = { [I in keyof Options]: Options[I] extends {
1329
+ _zod: {
1330
+ output: infer Out;
1331
+ };
1332
+ } ? Disc extends keyof Out ? V extends Out[Disc] ? Options[I] : never : never : never; }[number];
1333
+ /** Returns the option whose discriminator claims `value`, or throws if ambiguous. */
1334
+ declare function getDiscriminatedOption<Options extends readonly SomeType[], Disc extends string, const V extends $DiscriminatorValue<Options, Disc>>(union: $ZodDiscriminatedUnion<Options, Disc>, value: V): $DiscriminatedOption<Options, Disc, V>;
972
1335
  interface $ZodDiscriminatedUnion<Options extends readonly SomeType[] = readonly $ZodType[], Disc extends string = string> extends $ZodType {
973
1336
  _zod: $ZodDiscriminatedUnionInternals<Options, Disc>;
974
1337
  }
@@ -983,24 +1346,31 @@ interface $ZodIntersectionInternals<A extends SomeType = $ZodType, B extends Som
983
1346
  isst: never;
984
1347
  optin: A["_zod"]["optin"] | B["_zod"]["optin"];
985
1348
  optout: A["_zod"]["optout"] | B["_zod"]["optout"];
986
- output: output<A> & output<B>;
987
- input: input<A> & input<B>;
1349
+ output: output$1<A> & output$1<B>;
1350
+ input: input$1<A> & input$1<B>;
988
1351
  }
989
1352
  interface $ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
990
1353
  _zod: $ZodIntersectionInternals<A, B>;
991
1354
  }
992
1355
  declare const $ZodIntersection: $constructor<$ZodIntersection>;
1356
+ declare function mergeValues(a: any, b: any): {
1357
+ valid: true;
1358
+ data: any;
1359
+ } | {
1360
+ valid: false;
1361
+ mergeErrorPath: (string | number)[];
1362
+ };
993
1363
  interface $ZodTupleDef<T extends TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends $ZodTypeDef {
994
1364
  type: "tuple";
995
1365
  items: T;
996
1366
  rest: Rest;
997
1367
  }
998
- type $InferTupleInputType<T extends TupleItems, Rest extends SomeType | null> = [...TupleInputTypeWithOptionals<T>, ...(Rest extends SomeType ? input<Rest>[] : [])];
999
- type TupleInputTypeNoOptionals<T extends TupleItems> = { [k in keyof T]: input<T[k]>; };
1000
- type TupleInputTypeWithOptionals<T extends TupleItems> = T extends readonly [...infer Prefix extends SomeType[], infer Tail extends SomeType] ? Tail["_zod"]["optin"] extends "optional" | "defaulted" ? [...TupleInputTypeWithOptionals<Prefix>, input<Tail>?] : TupleInputTypeNoOptionals<T> : [];
1001
- type $InferTupleOutputType<T extends TupleItems, Rest extends SomeType | null> = [...TupleOutputTypeWithOptionals<T>, ...(Rest extends SomeType ? output<Rest>[] : [])];
1002
- type TupleOutputTypeNoOptionals<T extends TupleItems> = { [k in keyof T]: output<T[k]>; };
1003
- type TupleOutputTypeWithOptionals<T extends TupleItems> = T extends readonly [...infer Prefix extends SomeType[], infer Tail extends SomeType] ? Tail["_zod"]["optout"] extends "optional" ? [...TupleOutputTypeWithOptionals<Prefix>, output<Tail>?] : TupleOutputTypeNoOptionals<T> : [];
1368
+ type $InferTupleInputType<T extends TupleItems, Rest extends SomeType | null> = [...TupleInputTypeWithOptionals<T>, ...(Rest extends SomeType ? input$1<Rest>[] : [])];
1369
+ type TupleInputTypeNoOptionals<T extends TupleItems> = { [k in keyof T]: input$1<T[k]>; };
1370
+ type TupleInputTypeWithOptionals<T extends TupleItems> = T extends readonly [...infer Prefix extends SomeType[], infer Tail extends SomeType] ? Tail["_zod"]["optin"] extends "optional" | "defaulted" ? [...TupleInputTypeWithOptionals<Prefix>, input$1<Tail>?] : TupleInputTypeNoOptionals<T> : [];
1371
+ type $InferTupleOutputType<T extends TupleItems, Rest extends SomeType | null> = [...TupleOutputTypeWithOptionals<T>, ...(Rest extends SomeType ? output$1<Rest>[] : [])];
1372
+ type TupleOutputTypeNoOptionals<T extends TupleItems> = { [k in keyof T]: output$1<T[k]>; };
1373
+ type TupleOutputTypeWithOptionals<T extends TupleItems> = T extends readonly [...infer Prefix extends SomeType[], infer Tail extends SomeType] ? Tail["_zod"]["optout"] extends "optional" ? [...TupleOutputTypeWithOptionals<Prefix>, output$1<Tail>?] : TupleOutputTypeNoOptionals<T> : [];
1004
1374
  interface $ZodTupleInternals<T extends TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends _$ZodTypeInternals {
1005
1375
  def: $ZodTupleDef<T, Rest>;
1006
1376
  isst: $ZodIssueInvalidType | $ZodIssueTooBig<unknown[]> | $ZodIssueTooSmall<unknown[]>;
@@ -1020,8 +1390,8 @@ interface $ZodRecordDef<Key extends $ZodRecordKey = $ZodRecordKey, Value extends
1020
1390
  mode?: "strict" | "loose";
1021
1391
  partial?: boolean;
1022
1392
  }
1023
- type $InferZodRecordOutput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<output<Key>, output<Value>>> : Record<output<Key>, output<Value>>;
1024
- type $InferZodRecordInput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<input<Key> & PropertyKey, input<Value>>> : [Value] extends [OptionalInSchema] ? Partial<Record<input<Key> & PropertyKey, input<Value>>> : Record<input<Key> & PropertyKey, input<Value>>;
1393
+ type $InferZodRecordOutput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<output$1<Key>, output$1<Value>>> : Record<output$1<Key>, output$1<Value>>;
1394
+ type $InferZodRecordInput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<input$1<Key> & PropertyKey, input$1<Value>>> : [Value] extends [OptionalInSchema] ? Partial<Record<input$1<Key> & PropertyKey, input$1<Value>>> : Record<input$1<Key> & PropertyKey, input$1<Value>>;
1025
1395
  interface $ZodRecordInternals<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeInternals<$InferZodRecordOutput<Key, Value>, $InferZodRecordInput<Key, Value>> {
1026
1396
  def: $ZodRecordDef<Key, Value>;
1027
1397
  isst: $ZodIssueInvalidType | $ZodIssueInvalidKey<Record<PropertyKey, unknown>>;
@@ -1040,7 +1410,7 @@ interface $ZodMapDef<Key extends SomeType = $ZodType, Value extends SomeType = $
1040
1410
  keyType: Key;
1041
1411
  valueType: Value;
1042
1412
  }
1043
- interface $ZodMapInternals<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodTypeInternals<Map<output<Key>, output<Value>>, Map<input<Key>, input<Value>>> {
1413
+ interface $ZodMapInternals<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodTypeInternals<Map<output$1<Key>, output$1<Value>>, Map<input$1<Key>, input$1<Value>>> {
1044
1414
  def: $ZodMapDef<Key, Value>;
1045
1415
  isst: $ZodIssueInvalidType | $ZodIssueInvalidKey | $ZodIssueInvalidElement<unknown>;
1046
1416
  optin?: "optional" | undefined;
@@ -1054,7 +1424,7 @@ interface $ZodSetDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1054
1424
  type: "set";
1055
1425
  valueType: T;
1056
1426
  }
1057
- interface $ZodSetInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<Set<output<T>>, Set<input<T>>> {
1427
+ interface $ZodSetInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<Set<output$1<T>>, Set<input$1<T>>> {
1058
1428
  def: $ZodSetDef<T>;
1059
1429
  isst: $ZodIssueInvalidType;
1060
1430
  optin?: "optional" | undefined;
@@ -1138,7 +1508,7 @@ interface $ZodOptionalDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1138
1508
  type: "optional";
1139
1509
  innerType: T;
1140
1510
  }
1141
- interface $ZodOptionalInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T> | undefined, input<T> | undefined> {
1511
+ interface $ZodOptionalInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output$1<T> | undefined, input$1<T> | undefined> {
1142
1512
  def: $ZodOptionalDef<T>;
1143
1513
  optin: "optional" | "defaulted";
1144
1514
  optout: "optional";
@@ -1153,8 +1523,8 @@ declare const $ZodOptional: $constructor<$ZodOptional>;
1153
1523
  interface $ZodExactOptionalDef<T extends SomeType = $ZodType> extends $ZodOptionalDef<T> {}
1154
1524
  interface $ZodExactOptionalInternals<T extends SomeType = $ZodType> extends $ZodOptionalInternals<T> {
1155
1525
  def: $ZodExactOptionalDef<T>;
1156
- output: output<T>;
1157
- input: input<T>;
1526
+ output: output$1<T>;
1527
+ input: input$1<T>;
1158
1528
  }
1159
1529
  interface $ZodExactOptional<T extends SomeType = $ZodType> extends $ZodType {
1160
1530
  _zod: $ZodExactOptionalInternals<T>;
@@ -1164,7 +1534,7 @@ interface $ZodNullableDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1164
1534
  type: "nullable";
1165
1535
  innerType: T;
1166
1536
  }
1167
- interface $ZodNullableInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T> | null, input<T> | null> {
1537
+ interface $ZodNullableInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output$1<T> | null, input$1<T> | null> {
1168
1538
  def: $ZodNullableDef<T>;
1169
1539
  optin: T["_zod"]["optin"];
1170
1540
  optout: T["_zod"]["optout"];
@@ -1180,9 +1550,9 @@ interface $ZodDefaultDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1180
1550
  type: "default";
1181
1551
  innerType: T;
1182
1552
  /** The default value. May be a getter. */
1183
- defaultValue: NoUndefined<output<T>>;
1553
+ defaultValue: NoUndefined<output$1<T>>;
1184
1554
  }
1185
- interface $ZodDefaultInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T>>, input<T> | undefined> {
1555
+ interface $ZodDefaultInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output$1<T>>, input$1<T> | undefined> {
1186
1556
  def: $ZodDefaultDef<T>;
1187
1557
  optin: "defaulted";
1188
1558
  optout?: "optional" | undefined;
@@ -1197,9 +1567,9 @@ interface $ZodPrefaultDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1197
1567
  type: "prefault";
1198
1568
  innerType: T;
1199
1569
  /** The default value. May be a getter. */
1200
- defaultValue: input<T>;
1570
+ defaultValue: input$1<T>;
1201
1571
  }
1202
- interface $ZodPrefaultInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T>, input<T> | undefined> {
1572
+ interface $ZodPrefaultInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output$1<T>, input$1<T> | undefined> {
1203
1573
  def: $ZodPrefaultDef<T>;
1204
1574
  optin: "defaulted";
1205
1575
  optout?: "optional" | undefined;
@@ -1214,7 +1584,7 @@ interface $ZodNonOptionalDef<T extends SomeType = $ZodType> extends $ZodTypeDef
1214
1584
  type: "nonoptional";
1215
1585
  innerType: T;
1216
1586
  }
1217
- interface $ZodNonOptionalInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T>>, NoUndefined<input<T>>> {
1587
+ interface $ZodNonOptionalInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output$1<T>>, NoUndefined<input$1<T>>> {
1218
1588
  def: $ZodNonOptionalDef<T>;
1219
1589
  isst: $ZodIssueInvalidType;
1220
1590
  values: T["_zod"]["values"];
@@ -1229,7 +1599,7 @@ interface $ZodSuccessDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1229
1599
  type: "success";
1230
1600
  innerType: T;
1231
1601
  }
1232
- interface $ZodSuccessInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<boolean, input<T>> {
1602
+ interface $ZodSuccessInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<boolean, input$1<T>> {
1233
1603
  def: $ZodSuccessDef<T>;
1234
1604
  isst: never;
1235
1605
  optin: T["_zod"]["optin"];
@@ -1252,7 +1622,7 @@ interface $ZodCatchDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1252
1622
  innerType: T;
1253
1623
  catchValue: (ctx: $ZodCatchCtx) => unknown;
1254
1624
  }
1255
- interface $ZodCatchInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T>, input<T>> {
1625
+ interface $ZodCatchInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output$1<T>, input$1<T>> {
1256
1626
  def: $ZodCatchDef<T>;
1257
1627
  optin: T["_zod"]["optin"];
1258
1628
  optout: T["_zod"]["optout"];
@@ -1279,11 +1649,11 @@ interface $ZodPipeDef<A extends SomeType = $ZodType, B extends SomeType = $ZodTy
1279
1649
  in: A;
1280
1650
  out: B;
1281
1651
  /** Only defined inside $ZodCodec instances. */
1282
- transform?: (value: output<A>, payload: ParsePayload<output<A>>) => MaybeAsync<input<B>>;
1652
+ transform?: (value: output$1<A>, payload: ParsePayload<output$1<A>>) => MaybeAsync<input$1<B>>;
1283
1653
  /** Only defined inside $ZodCodec instances. */
1284
- reverseTransform?: (value: input<B>, payload: ParsePayload<input<B>>) => MaybeAsync<output<A>>;
1654
+ reverseTransform?: (value: input$1<B>, payload: ParsePayload<input$1<B>>) => MaybeAsync<output$1<A>>;
1285
1655
  }
1286
- interface $ZodPipeInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeInternals<output<B>, input<A>> {
1656
+ interface $ZodPipeInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeInternals<output$1<B>, input$1<A>> {
1287
1657
  def: $ZodPipeDef<A, B>;
1288
1658
  isst: never;
1289
1659
  values: A["_zod"]["values"];
@@ -1295,11 +1665,40 @@ interface $ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType>
1295
1665
  _zod: $ZodPipeInternals<A, B>;
1296
1666
  }
1297
1667
  declare const $ZodPipe: $constructor<$ZodPipe>;
1668
+ interface $ZodCodecDef<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodPipeDef<A, B> {
1669
+ transform: (value: output$1<A>, payload: ParsePayload<output$1<A>>) => MaybeAsync<input$1<B>>;
1670
+ reverseTransform: (value: input$1<B>, payload: ParsePayload<input$1<B>>) => MaybeAsync<output$1<A>>;
1671
+ }
1672
+ interface $ZodCodecInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeInternals<output$1<B>, input$1<A>> {
1673
+ def: $ZodCodecDef<A, B>;
1674
+ isst: never;
1675
+ values: A["_zod"]["values"];
1676
+ optin: A["_zod"]["optin"];
1677
+ optout: B["_zod"]["optout"];
1678
+ propValues: A["_zod"]["propValues"];
1679
+ }
1680
+ interface $ZodCodec<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
1681
+ _zod: $ZodCodecInternals<A, B>;
1682
+ }
1683
+ declare const $ZodCodec: $constructor<$ZodCodec>;
1684
+ interface $ZodPreprocessDef<B extends SomeType = $ZodType, I = unknown> extends $ZodPipeDef<$ZodTransform<unknown, I>, B> {
1685
+ in: $ZodTransform<unknown, I>;
1686
+ out: B;
1687
+ }
1688
+ interface $ZodPreprocessInternals<B extends SomeType = $ZodType, I = unknown> extends $ZodPipeInternals<$ZodTransform<unknown, I>, B> {
1689
+ def: $ZodPreprocessDef<B, I>;
1690
+ optin: B["_zod"]["optin"];
1691
+ optout: B["_zod"]["optout"];
1692
+ }
1693
+ interface $ZodPreprocess<B extends SomeType = $ZodType, I = unknown> extends $ZodPipe<$ZodTransform<unknown, I>, B> {
1694
+ _zod: $ZodPreprocessInternals<B, I>;
1695
+ }
1696
+ declare const $ZodPreprocess: $constructor<$ZodPreprocess>;
1298
1697
  interface $ZodReadonlyDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1299
1698
  type: "readonly";
1300
1699
  innerType: T;
1301
1700
  }
1302
- interface $ZodReadonlyInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<MakeReadonly<output<T>>, MakeReadonly<input<T>>> {
1701
+ interface $ZodReadonlyInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<MakeReadonly<output$1<T>>, MakeReadonly<input$1<T>>> {
1303
1702
  def: $ZodReadonlyDef<T>;
1304
1703
  optin: T["_zod"]["optin"];
1305
1704
  optout: T["_zod"]["optout"];
@@ -1332,14 +1731,20 @@ interface SchemaPart extends $ZodType {
1332
1731
  _zod: SchemaPartInternals;
1333
1732
  }
1334
1733
  type $ZodTemplateLiteralPart = LiteralPart | SchemaPart;
1734
+ type UndefinedToEmptyString<T> = T extends undefined ? "" : T;
1735
+ type AppendToTemplateLiteral<Template extends string, Suffix extends LiteralPart | $ZodType> = Suffix extends LiteralPart ? `${Template}${UndefinedToEmptyString<Suffix>}` : Suffix extends $ZodType ? `${Template}${output$1<Suffix> extends (infer T extends LiteralPart) ? UndefinedToEmptyString<T> : never}` : never;
1736
+ type ConcatenateTupleOfStrings<T extends string[]> = T extends [infer First extends string, ...infer Rest extends string[]] ? Rest extends string[] ? First extends "" ? ConcatenateTupleOfStrings<Rest> : `${First}${ConcatenateTupleOfStrings<Rest>}` : never : "";
1737
+ type ConvertPartsToStringTuple<Parts extends $ZodTemplateLiteralPart[]> = { [K in keyof Parts]: Parts[K] extends LiteralPart ? `${UndefinedToEmptyString<Parts[K]>}` : Parts[K] extends $ZodType ? `${output$1<Parts[K]> extends (infer T extends LiteralPart) ? UndefinedToEmptyString<T> : never}` : never; };
1738
+ type ToTemplateLiteral<Parts extends $ZodTemplateLiteralPart[]> = ConcatenateTupleOfStrings<ConvertPartsToStringTuple<Parts>>;
1739
+ type $PartsToTemplateLiteral<Parts extends $ZodTemplateLiteralPart[]> = [] extends Parts ? `` : Parts extends [...infer Rest, infer Last extends $ZodTemplateLiteralPart] ? Rest extends $ZodTemplateLiteralPart[] ? AppendToTemplateLiteral<$PartsToTemplateLiteral<Rest>, Last> : never : never;
1335
1740
  declare const $ZodTemplateLiteral: $constructor<$ZodTemplateLiteral>;
1336
1741
  type $ZodFunctionArgs = $ZodType<unknown[], unknown[]>;
1337
1742
  type $ZodFunctionIn = $ZodFunctionArgs;
1338
1743
  type $ZodFunctionOut = $ZodType;
1339
- type $InferInnerFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : output<Args>) => input<Returns>;
1340
- type $InferInnerFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : output<Args>) => MaybeAsync<input<Returns>>;
1341
- type $InferOuterFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : input<Args>) => output<Returns>;
1342
- type $InferOuterFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : input<Args>) => Promise<output<Returns>>;
1744
+ type $InferInnerFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : output$1<Args>) => input$1<Returns>;
1745
+ type $InferInnerFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : output$1<Args>) => MaybeAsync<input$1<Returns>>;
1746
+ type $InferOuterFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : input$1<Args>) => output$1<Returns>;
1747
+ type $InferOuterFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : input$1<Args>) => Promise<output$1<Returns>>;
1343
1748
  interface $ZodFunctionDef<In extends $ZodFunctionIn = $ZodFunctionIn, Out extends $ZodFunctionOut = $ZodFunctionOut> extends $ZodTypeDef {
1344
1749
  type: "function";
1345
1750
  input: In;
@@ -1361,12 +1766,16 @@ interface $ZodFunction<Args extends $ZodFunctionIn = $ZodFunctionIn, Returns ext
1361
1766
  input(...args: any[]): $ZodFunction<any, Returns>;
1362
1767
  output<NewReturns extends $ZodType>(output: NewReturns): $ZodFunction<Args, NewReturns>;
1363
1768
  }
1769
+ interface $ZodFunctionParams<I extends $ZodFunctionIn, O extends $ZodType> {
1770
+ input?: I;
1771
+ output?: O;
1772
+ }
1364
1773
  declare const $ZodFunction: $constructor<$ZodFunction>;
1365
1774
  interface $ZodPromiseDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1366
1775
  type: "promise";
1367
1776
  innerType: T;
1368
1777
  }
1369
- interface $ZodPromiseInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<Promise<output<T>>, MaybeAsync<input<T>>> {
1778
+ interface $ZodPromiseInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<Promise<output$1<T>>, MaybeAsync<input$1<T>>> {
1370
1779
  def: $ZodPromiseDef<T>;
1371
1780
  isst: never;
1372
1781
  }
@@ -1378,7 +1787,7 @@ interface $ZodLazyDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1378
1787
  type: "lazy";
1379
1788
  getter: () => T;
1380
1789
  }
1381
- interface $ZodLazyInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T>, input<T>> {
1790
+ interface $ZodLazyInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output$1<T>, input$1<T>> {
1382
1791
  def: $ZodLazyDef<T>;
1383
1792
  isst: never;
1384
1793
  /** Auto-cached way to retrieve the inner schema */
@@ -1413,8 +1822,10 @@ interface $ZodCustom<O = unknown, I = unknown> extends $ZodType {
1413
1822
  }
1414
1823
  declare const $ZodCustom: $constructor<$ZodCustom>;
1415
1824
  type $ZodTypes = $ZodString | $ZodNumber | $ZodBigInt | $ZodBoolean | $ZodDate | $ZodSymbol | $ZodUndefined | $ZodNullable | $ZodNull | $ZodAny | $ZodUnknown | $ZodNever | $ZodVoid | $ZodArray | $ZodObject | $ZodUnion | $ZodIntersection | $ZodTuple | $ZodRecord | $ZodMap | $ZodSet | $ZodLiteral | $ZodEnum | $ZodFunction | $ZodPromise | $ZodLazy | $ZodOptional | $ZodDefault | $ZodPrefault | $ZodTemplateLiteral | $ZodCustom | $ZodTransform | $ZodNonOptional | $ZodReadonly | $ZodNaN | $ZodPipe | $ZodSuccess | $ZodCatch | $ZodFile;
1416
- //#endregion
1417
- //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/checks.d.cts
1825
+ type $ZodStringFormatTypes = $ZodGUID | $ZodUUID | $ZodEmail | $ZodURL | $ZodEmoji | $ZodNanoID | $ZodCUID | $ZodCUID2 | $ZodULID | $ZodXID | $ZodKSUID | $ZodISODateTime | $ZodISODate | $ZodISOTime | $ZodISODuration | $ZodIPv4 | $ZodIPv6 | $ZodMAC | $ZodCIDRv4 | $ZodCIDRv6 | $ZodBase64 | $ZodBase64URL | $ZodE164 | $ZodCreditCard | $ZodIBAN | $ZodJWT | $ZodCustomStringFormat<"hex"> | $ZodCustomStringFormat<HashFormat> | $ZodCustomStringFormat<"hostname"> | $ZodCustomStringFormat<"currency_code">;
1826
+ declare namespace checks_d_exports {
1827
+ export { $ZodBigIntFormats, $ZodCheck, $ZodCheckBigIntFormat, $ZodCheckBigIntFormatDef, $ZodCheckBigIntFormatInternals, $ZodCheckDef, $ZodCheckEndsWith, $ZodCheckEndsWithDef, $ZodCheckEndsWithInternals, $ZodCheckGreaterThan, $ZodCheckGreaterThanDef, $ZodCheckGreaterThanInternals, $ZodCheckIncludes, $ZodCheckIncludesDef, $ZodCheckIncludesInternals, $ZodCheckInternals, $ZodCheckLengthEquals, $ZodCheckLengthEqualsDef, $ZodCheckLengthEqualsInternals, $ZodCheckLessThan, $ZodCheckLessThanDef, $ZodCheckLessThanInternals, $ZodCheckLowerCase, $ZodCheckLowerCaseDef, $ZodCheckLowerCaseInternals, $ZodCheckMaxLength, $ZodCheckMaxLengthDef, $ZodCheckMaxLengthInternals, $ZodCheckMaxSize, $ZodCheckMaxSizeDef, $ZodCheckMaxSizeInternals, $ZodCheckMimeType, $ZodCheckMimeTypeDef, $ZodCheckMimeTypeInternals, $ZodCheckMinLength, $ZodCheckMinLengthDef, $ZodCheckMinLengthInternals, $ZodCheckMinSize, $ZodCheckMinSizeDef, $ZodCheckMinSizeInternals, $ZodCheckMultipleOf, $ZodCheckMultipleOfDef, $ZodCheckMultipleOfInternals, $ZodCheckNumberFormat, $ZodCheckNumberFormatDef, $ZodCheckNumberFormatInternals, $ZodCheckOverwrite, $ZodCheckOverwriteDef, $ZodCheckOverwriteInternals, $ZodCheckProperties, $ZodCheckPropertiesDef, $ZodCheckPropertiesInput, $ZodCheckPropertiesInternals, $ZodCheckProperty, $ZodCheckPropertyDef, $ZodCheckPropertyInternals, $ZodCheckRegex, $ZodCheckRegexDef, $ZodCheckRegexInternals, $ZodCheckSizeEquals, $ZodCheckSizeEqualsDef, $ZodCheckSizeEqualsInternals, $ZodCheckStartsWith, $ZodCheckStartsWithDef, $ZodCheckStartsWithInternals, $ZodCheckStringFormat, $ZodCheckStringFormatDef, $ZodCheckStringFormatInternals, $ZodCheckUpperCase, $ZodCheckUpperCaseDef, $ZodCheckUpperCaseInternals, $ZodChecks, $ZodNumberFormats, $ZodStringFormatChecks, $ZodStringFormats };
1828
+ }
1418
1829
  interface $ZodCheckDef {
1419
1830
  check: string;
1420
1831
  error?: $ZodErrorMap<never> | undefined;
@@ -1485,6 +1896,55 @@ interface $ZodCheckNumberFormat<Format extends $ZodNumberFormats = $ZodNumberFor
1485
1896
  _zod: $ZodCheckNumberFormatInternals<Format>;
1486
1897
  }
1487
1898
  declare const $ZodCheckNumberFormat: $constructor<$ZodCheckNumberFormat>;
1899
+ type $ZodBigIntFormats = "int64" | "uint64";
1900
+ interface $ZodCheckBigIntFormatDef<Format extends $ZodBigIntFormats = $ZodBigIntFormats> extends $ZodCheckDef {
1901
+ check: "bigint_format";
1902
+ format: Format;
1903
+ }
1904
+ interface $ZodCheckBigIntFormatInternals<Format extends $ZodBigIntFormats = $ZodBigIntFormats> extends $ZodCheckInternals<bigint> {
1905
+ def: $ZodCheckBigIntFormatDef<Format>;
1906
+ issc: $ZodIssueTooBig<"bigint"> | $ZodIssueTooSmall<"bigint">;
1907
+ }
1908
+ interface $ZodCheckBigIntFormat<Format extends $ZodBigIntFormats = $ZodBigIntFormats> extends $ZodCheck<bigint> {
1909
+ _zod: $ZodCheckBigIntFormatInternals<Format>;
1910
+ }
1911
+ declare const $ZodCheckBigIntFormat: $constructor<$ZodCheckBigIntFormat>;
1912
+ interface $ZodCheckMaxSizeDef extends $ZodCheckDef {
1913
+ check: "max_size";
1914
+ maximum: number;
1915
+ }
1916
+ interface $ZodCheckMaxSizeInternals<T extends HasSize = HasSize> extends $ZodCheckInternals<T> {
1917
+ def: $ZodCheckMaxSizeDef;
1918
+ issc: $ZodIssueTooBig<T>;
1919
+ }
1920
+ interface $ZodCheckMaxSize<T extends HasSize = HasSize> extends $ZodCheck<T> {
1921
+ _zod: $ZodCheckMaxSizeInternals<T>;
1922
+ }
1923
+ declare const $ZodCheckMaxSize: $constructor<$ZodCheckMaxSize>;
1924
+ interface $ZodCheckMinSizeDef extends $ZodCheckDef {
1925
+ check: "min_size";
1926
+ minimum: number;
1927
+ }
1928
+ interface $ZodCheckMinSizeInternals<T extends HasSize = HasSize> extends $ZodCheckInternals<T> {
1929
+ def: $ZodCheckMinSizeDef;
1930
+ issc: $ZodIssueTooSmall<T>;
1931
+ }
1932
+ interface $ZodCheckMinSize<T extends HasSize = HasSize> extends $ZodCheck<T> {
1933
+ _zod: $ZodCheckMinSizeInternals<T>;
1934
+ }
1935
+ declare const $ZodCheckMinSize: $constructor<$ZodCheckMinSize>;
1936
+ interface $ZodCheckSizeEqualsDef extends $ZodCheckDef {
1937
+ check: "size_equals";
1938
+ size: number;
1939
+ }
1940
+ interface $ZodCheckSizeEqualsInternals<T extends HasSize = HasSize> extends $ZodCheckInternals<T> {
1941
+ def: $ZodCheckSizeEqualsDef;
1942
+ issc: $ZodIssueTooBig<T> | $ZodIssueTooSmall<T>;
1943
+ }
1944
+ interface $ZodCheckSizeEquals<T extends HasSize = HasSize> extends $ZodCheck<T> {
1945
+ _zod: $ZodCheckSizeEqualsInternals<T>;
1946
+ }
1947
+ declare const $ZodCheckSizeEquals: $constructor<$ZodCheckSizeEquals>;
1488
1948
  interface $ZodCheckMaxLengthDef extends $ZodCheckDef {
1489
1949
  check: "max_length";
1490
1950
  maximum: number;
@@ -1531,6 +1991,10 @@ interface $ZodCheckStringFormatInternals extends $ZodCheckInternals<string> {
1531
1991
  def: $ZodCheckStringFormatDef;
1532
1992
  issc: $ZodIssueInvalidStringFormat;
1533
1993
  }
1994
+ interface $ZodCheckStringFormat extends $ZodCheck<string> {
1995
+ _zod: $ZodCheckStringFormatInternals;
1996
+ }
1997
+ declare const $ZodCheckStringFormat: $constructor<$ZodCheckStringFormat>;
1534
1998
  interface $ZodCheckRegexDef extends $ZodCheckStringFormatDef {
1535
1999
  format: "regex";
1536
2000
  pattern: RegExp;
@@ -1595,8 +2059,62 @@ interface $ZodCheckEndsWith extends $ZodCheckInternals<string> {
1595
2059
  _zod: $ZodCheckEndsWithInternals;
1596
2060
  }
1597
2061
  declare const $ZodCheckEndsWith: $constructor<$ZodCheckEndsWith>;
1598
- //#endregion
1599
- //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/errors.d.cts
2062
+ interface $ZodCheckPropertyDef extends $ZodCheckDef {
2063
+ check: "property";
2064
+ property: string;
2065
+ schema: $ZodType;
2066
+ }
2067
+ interface $ZodCheckPropertyInternals<T extends object = object> extends $ZodCheckInternals<T> {
2068
+ def: $ZodCheckPropertyDef;
2069
+ issc: $ZodIssue;
2070
+ }
2071
+ interface $ZodCheckProperty<T extends object = object> extends $ZodCheck<T> {
2072
+ _zod: $ZodCheckPropertyInternals<T>;
2073
+ }
2074
+ declare const $ZodCheckProperty: $constructor<$ZodCheckProperty>;
2075
+ interface $ZodCheckPropertiesDef<Shape extends $ZodShape = $ZodShape> extends $ZodCheckDef {
2076
+ check: "properties";
2077
+ shape: Shape;
2078
+ }
2079
+ type $ZodCheckPropertiesInput<Shape extends $ZodShape = $ZodShape> = { -readonly [k in keyof Shape]: Widen<input$1<Shape[k]>>; };
2080
+ interface $ZodCheckPropertiesInternals<Shape extends $ZodShape = $ZodShape> extends $ZodCheckInternals<$ZodCheckPropertiesInput<Shape>> {
2081
+ def: $ZodCheckPropertiesDef<Shape>;
2082
+ issc: $ZodIssue;
2083
+ }
2084
+ interface $ZodCheckProperties<Shape extends $ZodShape = $ZodShape> extends $ZodCheck<$ZodCheckPropertiesInput<Shape>> {
2085
+ _zod: $ZodCheckPropertiesInternals<Shape>;
2086
+ [Symbol.iterator](): Iterator<this>;
2087
+ }
2088
+ declare const $ZodCheckProperties: $constructor<$ZodCheckProperties>;
2089
+ interface $ZodCheckMimeTypeDef extends $ZodCheckDef {
2090
+ check: "mime_type";
2091
+ mime: MimeTypes[];
2092
+ }
2093
+ interface $ZodCheckMimeTypeInternals<T extends File = File> extends $ZodCheckInternals<T> {
2094
+ def: $ZodCheckMimeTypeDef;
2095
+ issc: $ZodIssueInvalidValue;
2096
+ }
2097
+ interface $ZodCheckMimeType<T extends File = File> extends $ZodCheck<T> {
2098
+ _zod: $ZodCheckMimeTypeInternals<T>;
2099
+ }
2100
+ declare const $ZodCheckMimeType: $constructor<$ZodCheckMimeType>;
2101
+ interface $ZodCheckOverwriteDef<T = unknown> extends $ZodCheckDef {
2102
+ check: "overwrite";
2103
+ tx(value: T): T;
2104
+ }
2105
+ interface $ZodCheckOverwriteInternals<T = unknown> extends $ZodCheckInternals<T> {
2106
+ def: $ZodCheckOverwriteDef<T>;
2107
+ issc: never;
2108
+ }
2109
+ interface $ZodCheckOverwrite<T = unknown> extends $ZodCheck<T> {
2110
+ _zod: $ZodCheckOverwriteInternals<T>;
2111
+ }
2112
+ declare const $ZodCheckOverwrite: $constructor<$ZodCheckOverwrite>;
2113
+ type $ZodChecks = $ZodCheckLessThan | $ZodCheckGreaterThan | $ZodCheckMultipleOf | $ZodCheckNumberFormat | $ZodCheckBigIntFormat | $ZodCheckMaxSize | $ZodCheckMinSize | $ZodCheckSizeEquals | $ZodCheckMaxLength | $ZodCheckMinLength | $ZodCheckLengthEquals | $ZodCheckStringFormat | $ZodCheckProperty | $ZodCheckMimeType | $ZodCheckOverwrite;
2114
+ type $ZodStringFormatChecks = $ZodCheckRegex | $ZodCheckLowerCase | $ZodCheckUpperCase | $ZodCheckIncludes | $ZodCheckStartsWith | $ZodCheckEndsWith | $ZodStringFormatTypes;
2115
+ declare namespace errors_d_exports {
2116
+ export { $ZodError, $ZodErrorMap, $ZodErrorTree, $ZodFlattenedError, $ZodFormattedError, $ZodInternalIssue, $ZodInvalidTypeExpected, $ZodIssue, $ZodIssueBase, $ZodIssueCode, $ZodIssueCustom, $ZodIssueInvalidElement, $ZodIssueInvalidKey, $ZodIssueInvalidStringFormat, $ZodIssueInvalidType, $ZodIssueInvalidUnion, $ZodIssueInvalidValue, $ZodIssueNotMultipleOf, $ZodIssueStringCommonFormats, $ZodIssueStringEndsWith, $ZodIssueStringIncludes, $ZodIssueStringInvalidJWT, $ZodIssueStringInvalidRegex, $ZodIssueStringStartsWith, $ZodIssueTooBig, $ZodIssueTooSmall, $ZodIssueUnrecognizedKeys, $ZodRawIssue, $ZodRealError, $ZodStringFormatIssues, flattenError, formatError, prettifyError, toDotPath, treeifyError };
2117
+ }
1600
2118
  interface $ZodIssueBase {
1601
2119
  readonly code?: string;
1602
2120
  readonly input?: unknown;
@@ -1684,7 +2202,32 @@ interface $ZodIssueCustom extends $ZodIssueBase {
1684
2202
  readonly params?: Record<string, any> | undefined;
1685
2203
  readonly input?: unknown;
1686
2204
  }
2205
+ interface $ZodIssueStringCommonFormats extends $ZodIssueInvalidStringFormat {
2206
+ format: Exclude<$ZodStringFormats, "regex" | "jwt" | "starts_with" | "ends_with" | "includes">;
2207
+ }
2208
+ interface $ZodIssueStringInvalidRegex extends $ZodIssueInvalidStringFormat {
2209
+ format: "regex";
2210
+ pattern: string;
2211
+ }
2212
+ interface $ZodIssueStringInvalidJWT extends $ZodIssueInvalidStringFormat {
2213
+ format: "jwt";
2214
+ algorithm?: string;
2215
+ }
2216
+ interface $ZodIssueStringStartsWith extends $ZodIssueInvalidStringFormat {
2217
+ format: "starts_with";
2218
+ prefix: string;
2219
+ }
2220
+ interface $ZodIssueStringEndsWith extends $ZodIssueInvalidStringFormat {
2221
+ format: "ends_with";
2222
+ suffix: string;
2223
+ }
2224
+ interface $ZodIssueStringIncludes extends $ZodIssueInvalidStringFormat {
2225
+ format: "includes";
2226
+ includes: string;
2227
+ }
2228
+ type $ZodStringFormatIssues = $ZodIssueStringCommonFormats | $ZodIssueStringInvalidRegex | $ZodIssueStringInvalidJWT | $ZodIssueStringStartsWith | $ZodIssueStringEndsWith | $ZodIssueStringIncludes;
1687
2229
  type $ZodIssue = $ZodIssueInvalidType | $ZodIssueTooBig | $ZodIssueTooSmall | $ZodIssueInvalidStringFormat | $ZodIssueNotMultipleOf | $ZodIssueUnrecognizedKeys | $ZodIssueInvalidUnion | $ZodIssueInvalidKey | $ZodIssueInvalidElement | $ZodIssueInvalidValue | $ZodIssueCustom;
2230
+ type $ZodIssueCode = $ZodIssue["code"];
1688
2231
  type $ZodInternalIssue<T extends $ZodIssueBase = $ZodIssue> = T extends any ? RawIssue$1<T> : never;
1689
2232
  type RawIssue$1<T extends $ZodIssueBase> = T extends any ? Flatten<MakePartial<T, "message" | "path"> & {
1690
2233
  /** The input data */
@@ -1713,19 +2256,76 @@ interface $ZodError<T = unknown> extends Error {
1713
2256
  name: string;
1714
2257
  }
1715
2258
  declare const $ZodError: $constructor<$ZodError>;
2259
+ interface $ZodRealError<T = any> extends $ZodError<T> {}
2260
+ declare const $ZodRealError: $constructor<$ZodRealError>;
1716
2261
  type $ZodFlattenedError<T, U = string> = _FlattenedError<T, U>;
1717
2262
  type _FlattenedError<T, U = string> = {
1718
2263
  formErrors: U[];
1719
2264
  fieldErrors: { [P in keyof T]?: U[]; };
1720
2265
  };
2266
+ declare function flattenError<T>(error: $ZodError<T>): _FlattenedError<T>;
2267
+ declare function flattenError<T, U>(error: $ZodError<T>, mapper?: (issue: $ZodIssue) => U): _FlattenedError<T, U>;
1721
2268
  type _ZodFormattedError<T, U = string> = T extends [any, ...any[]] ? { [K in keyof T]?: $ZodFormattedError<T[K], U>; } : T extends any[] ? {
1722
2269
  [k: number]: $ZodFormattedError<T[number], U>;
1723
2270
  } : T extends object ? Flatten<{ [K in keyof T]?: $ZodFormattedError<T[K], U>; }> : any;
1724
2271
  type $ZodFormattedError<T, U = string> = {
1725
2272
  _errors: U[];
1726
2273
  } & Flatten<_ZodFormattedError<T, U>>;
1727
- //#endregion
1728
- //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/core.d.cts
2274
+ declare function formatError<T>(error: $ZodError<T>): $ZodFormattedError<T>;
2275
+ declare function formatError<T, U>(error: $ZodError<T>, mapper?: (issue: $ZodIssue) => U): $ZodFormattedError<T, U>;
2276
+ type $ZodErrorTree<T, U = string> = T extends Primitive ? {
2277
+ errors: U[];
2278
+ } : T extends [any, ...any[]] ? {
2279
+ errors: U[];
2280
+ items?: { [K in keyof T]?: $ZodErrorTree<T[K], U>; };
2281
+ } : T extends any[] ? {
2282
+ errors: U[];
2283
+ items?: Array<$ZodErrorTree<T[number], U>>;
2284
+ } : T extends object ? {
2285
+ errors: U[];
2286
+ properties?: { [K in keyof T]?: $ZodErrorTree<T[K], U>; };
2287
+ } : {
2288
+ errors: U[];
2289
+ };
2290
+ declare function treeifyError<T>(error: $ZodError<T>): $ZodErrorTree<T>;
2291
+ declare function treeifyError<T, U>(error: $ZodError<T>, mapper?: (issue: $ZodIssue) => U): $ZodErrorTree<T, U>;
2292
+ /** Format a ZodError as a human-readable string in the following form.
2293
+ *
2294
+ * From
2295
+ *
2296
+ * ```ts
2297
+ * ZodError {
2298
+ * issues: [
2299
+ * {
2300
+ * expected: 'string',
2301
+ * code: 'invalid_type',
2302
+ * path: [ 'username' ],
2303
+ * message: 'Invalid input: expected string'
2304
+ * },
2305
+ * {
2306
+ * expected: 'number',
2307
+ * code: 'invalid_type',
2308
+ * path: [ 'favoriteNumbers', 1 ],
2309
+ * message: 'Invalid input: expected number'
2310
+ * }
2311
+ * ];
2312
+ * }
2313
+ * ```
2314
+ *
2315
+ * to
2316
+ *
2317
+ * ```
2318
+ * username
2319
+ * ✖ Expected number, received string at "username
2320
+ * favoriteNumbers[0]
2321
+ * ✖ Invalid input: expected number
2322
+ * ```
2323
+ */
2324
+ declare function toDotPath(_path: readonly (string | number | symbol | StandardSchemaV1.PathSegment)[]): string;
2325
+ declare function prettifyError(error: StandardSchemaV1.FailureResult): string;
2326
+ declare namespace core_d_exports {
2327
+ export { $ZodAsyncError, $ZodBranded, $ZodConfig, $ZodEncodeError, $ZodNarrow, $brand, $constructor, $constructorParams, NEVER, config, globalConfig, output$1 as infer, input$1 as input, output$1 as output };
2328
+ }
1729
2329
  type ZodTrait = {
1730
2330
  _zod: {
1731
2331
  def: any;
@@ -1739,6 +2339,8 @@ interface $constructor<T extends ZodTrait, D = T["_zod"]["def"]> {
1739
2339
  interface $constructorParams {
1740
2340
  Parent?: typeof Class;
1741
2341
  }
2342
+ /** A special constant with type `never` */
2343
+ declare const NEVER: never;
1742
2344
  declare function $constructor<T extends ZodTrait, D = T["_zod"]["def"]>(name: string, initializer: (inst: T, def: D) => void,
1743
2345
  /** This trait's members, installed once on every prototype that composes it. They cannot be declared in the initializer above: that runs per instance, and the prototype is shared. */
1744
2346
  proto?: ProtoOf<T>, params?: $constructorParams): $constructor<T, D>;
@@ -1748,28 +2350,613 @@ type $brand<T extends string | number | symbol = string | number | symbol> = {
1748
2350
  };
1749
2351
  type $ZodBranded<T extends SomeType, Brand extends string | number | symbol, Dir extends "in" | "out" | "inout" = "out"> = T & (Dir extends "inout" ? {
1750
2352
  _zod: {
1751
- input: input<T> & $brand<Brand>;
1752
- output: output<T> & $brand<Brand>;
2353
+ input: input$1<T> & $brand<Brand>;
2354
+ output: output$1<T> & $brand<Brand>;
1753
2355
  };
1754
2356
  } : Dir extends "in" ? {
1755
2357
  _zod: {
1756
- input: input<T> & $brand<Brand>;
2358
+ input: input$1<T> & $brand<Brand>;
1757
2359
  };
1758
2360
  } : {
1759
2361
  _zod: {
1760
- output: output<T> & $brand<Brand>;
2362
+ output: output$1<T> & $brand<Brand>;
1761
2363
  };
1762
2364
  });
1763
- type input<T> = T extends {
2365
+ type $ZodNarrow<T extends SomeType, Out> = T & {
2366
+ _zod: {
2367
+ output: Out;
2368
+ };
2369
+ };
2370
+ declare class $ZodAsyncError extends Error {
2371
+ constructor();
2372
+ }
2373
+ declare class $ZodEncodeError extends Error {
2374
+ constructor(name: string);
2375
+ }
2376
+ type input$1<T> = T extends {
1764
2377
  _zod: {
1765
2378
  input: any;
1766
2379
  };
1767
2380
  } ? T["_zod"]["input"] : unknown;
1768
- type output<T> = T extends {
2381
+ type output$1<T> = T extends {
1769
2382
  _zod: {
1770
2383
  output: any;
1771
2384
  };
1772
2385
  } ? T["_zod"]["output"] : unknown;
2386
+ interface $ZodConfig {
2387
+ /** Custom error map. Overrides `config().localeError`. */
2388
+ customError?: $ZodErrorMap | undefined;
2389
+ /** Localized error map. Lowest priority. */
2390
+ localeError?: $ZodErrorMap | undefined;
2391
+ /** Disable JIT schema compilation. Useful in environments that disallow `eval`. */
2392
+ jitless?: boolean | undefined;
2393
+ /** Enables parsing input that contains reference cycles. Read when a schema is constructed. */
2394
+ memoizer?: $ZodMemoizer | undefined;
2395
+ /**
2396
+ * Internal: post-processor invoked on every freshly-constructed schema
2397
+ * instance, after init and deferred fns run. Set by `import "zod/compile"`
2398
+ * to install AOT compilation. Not part of the public API.
2399
+ * @internal
2400
+ */
2401
+ postProcessor?: ((inst: any) => void) | undefined;
2402
+ }
2403
+ declare const globalConfig: $ZodConfig;
2404
+ declare function config(newConfig?: Partial<$ZodConfig>): $ZodConfig;
2405
+ //#endregion
2406
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/parse.d.cts
2407
+ type $ZodErrorClass = {
2408
+ new (issues: $ZodIssue[]): $ZodError;
2409
+ };
2410
+ type $ParseParams = {
2411
+ callee?: AnyFunc;
2412
+ Err?: $ZodErrorClass | undefined;
2413
+ };
2414
+ type $Parse = <T extends $ZodType>(schema: T, value: unknown, _ctx?: ParseContext<$ZodIssue>, _params?: $ParseParams) => output$1<T>;
2415
+ declare const _parse: (_Err: $ZodErrorClass) => $Parse;
2416
+ declare const parse$1: $Parse;
2417
+ type $ParseAsync = <T extends $ZodType>(schema: T, value: unknown, _ctx?: ParseContext<$ZodIssue>, _params?: $ParseParams) => Promise<output$1<T>>;
2418
+ declare const _parseAsync: (_Err: $ZodErrorClass) => $ParseAsync;
2419
+ declare const parseAsync$1: $ParseAsync;
2420
+ type $SafeParse = <T extends $ZodType>(schema: T, value: unknown, _ctx?: ParseContext<$ZodIssue>) => SafeParseResult<output$1<T>>;
2421
+ declare const _safeParse: (_Err: $ZodErrorClass) => $SafeParse;
2422
+ declare const safeParse$1: $SafeParse;
2423
+ type $SafeParseAsync = <T extends $ZodType>(schema: T, value: unknown, _ctx?: ParseContext<$ZodIssue>) => Promise<SafeParseResult<output$1<T>>>;
2424
+ declare const _safeParseAsync: (_Err: $ZodErrorClass) => $SafeParseAsync;
2425
+ declare const safeParseAsync$1: $SafeParseAsync;
2426
+ type $Validate = <T extends $ZodType>(schema: T, value: unknown, _ctx?: ParseContext<$ZodIssue>) => value is input$1<T>;
2427
+ declare const validate: $Validate;
2428
+ type $ValidateAsync = <T extends $ZodType>(schema: T, value: unknown, _ctx?: ParseContext<$ZodIssue>) => Promise<boolean>;
2429
+ declare const validateAsync: $ValidateAsync;
2430
+ type $Encode = <T extends $ZodType>(schema: T, value: output$1<T>, _ctx?: ParseContext<$ZodIssue>, _params?: $ParseParams) => input$1<T>;
2431
+ declare const _encode: (_Err: $ZodErrorClass) => $Encode;
2432
+ declare const encode$1: $Encode;
2433
+ type $Decode = <T extends $ZodType>(schema: T, value: input$1<T>, _ctx?: ParseContext<$ZodIssue>, _params?: $ParseParams) => output$1<T>;
2434
+ declare const _decode: (_Err: $ZodErrorClass) => $Decode;
2435
+ declare const decode$1: $Decode;
2436
+ type $EncodeAsync = <T extends $ZodType>(schema: T, value: output$1<T>, _ctx?: ParseContext<$ZodIssue>, _params?: $ParseParams) => Promise<input$1<T>>;
2437
+ declare const _encodeAsync: (_Err: $ZodErrorClass) => $EncodeAsync;
2438
+ declare const encodeAsync$1: $EncodeAsync;
2439
+ type $DecodeAsync = <T extends $ZodType>(schema: T, value: input$1<T>, _ctx?: ParseContext<$ZodIssue>, _params?: $ParseParams) => Promise<output$1<T>>;
2440
+ declare const _decodeAsync: (_Err: $ZodErrorClass) => $DecodeAsync;
2441
+ declare const decodeAsync$1: $DecodeAsync;
2442
+ type $SafeEncode = <T extends $ZodType>(schema: T, value: output$1<T>, _ctx?: ParseContext<$ZodIssue>) => SafeParseResult<input$1<T>>;
2443
+ declare const _safeEncode: (_Err: $ZodErrorClass) => $SafeEncode;
2444
+ declare const safeEncode$1: $SafeEncode;
2445
+ type $SafeDecode = <T extends $ZodType>(schema: T, value: input$1<T>, _ctx?: ParseContext<$ZodIssue>) => SafeParseResult<output$1<T>>;
2446
+ declare const _safeDecode: (_Err: $ZodErrorClass) => $SafeDecode;
2447
+ declare const safeDecode$1: $SafeDecode;
2448
+ type $SafeEncodeAsync = <T extends $ZodType>(schema: T, value: output$1<T>, _ctx?: ParseContext<$ZodIssue>) => Promise<SafeParseResult<input$1<T>>>;
2449
+ declare const _safeEncodeAsync: (_Err: $ZodErrorClass) => $SafeEncodeAsync;
2450
+ declare const safeEncodeAsync$1: $SafeEncodeAsync;
2451
+ type $SafeDecodeAsync = <T extends $ZodType>(schema: T, value: input$1<T>, _ctx?: ParseContext<$ZodIssue>) => Promise<SafeParseResult<output$1<T>>>;
2452
+ declare const _safeDecodeAsync: (_Err: $ZodErrorClass) => $SafeDecodeAsync;
2453
+ declare const safeDecodeAsync$1: $SafeDecodeAsync;
2454
+ //#endregion
2455
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/memoizer.d.cts
2456
+ declare class $ZodCyclicError extends Error {
2457
+ constructor();
2458
+ }
2459
+ /**
2460
+ * Whether one parse can re-enter this schema, i.e. its subtree contains a cycle.
2461
+ * Exported for `z.compile`, which refuses to compile such a schema: cycle
2462
+ * breaking is driven from here off state keyed on the parse context, and a
2463
+ * generated fast path has no context to key on.
2464
+ */
2465
+ declare function isRecursiveSchema(inst: $ZodType): boolean;
2466
+ /** The memoizer that gives containers cycle support. `zod` installs it by default; `zod/mini` opts in with `config({ memoizer: memoizer() })`. */
2467
+ declare function memoizer(): $ZodMemoizer;
2468
+ /** Whether this value is a node a back-edge resolved to before it finished. */
2469
+ declare function isBackEdge(ctx: object, value: unknown): boolean;
2470
+ declare namespace regexes_d_exports {
2471
+ export { anyString, base64$1 as base64, base64url$1 as base64url, bigint$2 as bigint, boolean$2 as boolean, browserEmail, cidrv4$1 as cidrv4, cidrv6$1 as cidrv6, creditCard$1 as creditCard, cuid$1 as cuid, cuid2$1 as cuid2, currencyCode$1 as currencyCode, date$3 as date, datetime$1 as datetime, domain, duration$1 as duration, e164$1 as e164, email$1 as email, emoji$1 as emoji, extendedDuration, guid$1 as guid, hex$1 as hex, hostname$1 as hostname, html5Email, httpProtocol, iban$1 as iban, idnEmail, integer, ipv4$1 as ipv4, ipv6$1 as ipv6, ksuid$1 as ksuid, lowercase, mac$1 as mac, md5_base64, md5_base64url, md5_hex, nanoid$1 as nanoid, nanoidOfLength, _null$2 as null, number$2 as number, rfc5322Email, sha1_base64, sha1_base64url, sha1_hex, sha256_base64, sha256_base64url, sha256_hex, sha384_base64, sha384_base64url, sha384_hex, sha512_base64, sha512_base64url, sha512_hex, string$2 as string, time$1 as time, ulid$1 as ulid, _undefined$2 as undefined, unicodeEmail, uppercase, uuid$1 as uuid, uuid4, uuid6, uuid7, xid$1 as xid };
2472
+ }
2473
+ /**
2474
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
2475
+ * (timestamps embedded in the id). Use {@link cuid2} instead.
2476
+ * See https://github.com/paralleldrive/cuid.
2477
+ */
2478
+ declare const cuid$1: RegExp;
2479
+ declare const cuid2$1: RegExp;
2480
+ declare const ulid$1: RegExp;
2481
+ declare const xid$1: RegExp;
2482
+ declare const ksuid$1: RegExp;
2483
+ declare const nanoid$1: RegExp;
2484
+ declare function nanoidOfLength(length: number): RegExp;
2485
+ /** ISO 8601-1 duration regex. Does not support the 8601-2 extensions like negative durations or fractional/negative components. */
2486
+ declare const duration$1: RegExp;
2487
+ /** Implements ISO 8601-2 extensions like explicit +- prefixes, mixing weeks with other units, and fractional/negative components. */
2488
+ declare const extendedDuration: RegExp;
2489
+ /** A regex for any UUID-like identifier: 8-4-4-4-12 hex pattern */
2490
+ declare const guid$1: RegExp;
2491
+ /** Returns a regex for validating an RFC 9562/4122 UUID.
2492
+ *
2493
+ * @param version Optionally specify a version 1-8. If no version is specified, all versions are supported. */
2494
+ declare const uuid$1: (version?: number | undefined) => RegExp;
2495
+ declare const uuid4: RegExp;
2496
+ declare const uuid6: RegExp;
2497
+ declare const uuid7: RegExp;
2498
+ /** Practical email validation */
2499
+ declare const email$1: RegExp;
2500
+ /** Equivalent to the HTML5 input[type=email] validation implemented by browsers. Source: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/email */
2501
+ declare const html5Email: RegExp;
2502
+ /** The classic emailregex.com regex for RFC 5322-compliant emails */
2503
+ declare const rfc5322Email: RegExp;
2504
+ /** A loose regex that allows Unicode characters, enforces length limits, and that's about it. */
2505
+ declare const unicodeEmail: RegExp;
2506
+ declare const idnEmail: RegExp;
2507
+ declare const browserEmail: RegExp;
2508
+ declare function emoji$1(): RegExp;
2509
+ declare const ipv4$1: RegExp;
2510
+ declare const ipv6$1: RegExp;
2511
+ declare const mac$1: (delimiter?: string) => RegExp;
2512
+ declare const cidrv4$1: RegExp;
2513
+ declare const cidrv6$1: RegExp;
2514
+ declare const base64$1: RegExp;
2515
+ declare const base64url$1: RegExp;
2516
+ declare const hostname$1: RegExp;
2517
+ declare const domain: RegExp;
2518
+ declare const httpProtocol: RegExp;
2519
+ declare const e164$1: RegExp;
2520
+ declare const creditCard$1: RegExp;
2521
+ declare const currencyCode$1: RegExp;
2522
+ declare const iban$1: RegExp;
2523
+ declare const date$3: RegExp;
2524
+ declare function time$1(args: {
2525
+ precision?: number | null;
2526
+ }): RegExp;
2527
+ declare function datetime$1(args: {
2528
+ precision?: number | null;
2529
+ offset?: boolean;
2530
+ local?: boolean;
2531
+ }): RegExp;
2532
+ declare const anyString: RegExp;
2533
+ declare const string$2: (params?: {
2534
+ minimum?: number | undefined;
2535
+ maximum?: number | undefined;
2536
+ }) => RegExp;
2537
+ declare const bigint$2: RegExp;
2538
+ declare const integer: RegExp;
2539
+ declare const number$2: RegExp;
2540
+ declare const boolean$2: RegExp;
2541
+ declare const _null$2: RegExp;
2542
+ declare const _undefined$2: RegExp;
2543
+ declare const lowercase: RegExp;
2544
+ declare const uppercase: RegExp;
2545
+ declare const hex$1: RegExp;
2546
+ declare const md5_hex: RegExp;
2547
+ declare const md5_base64: RegExp;
2548
+ declare const md5_base64url: RegExp;
2549
+ declare const sha1_hex: RegExp;
2550
+ declare const sha1_base64: RegExp;
2551
+ declare const sha1_base64url: RegExp;
2552
+ declare const sha256_hex: RegExp;
2553
+ declare const sha256_base64: RegExp;
2554
+ declare const sha256_base64url: RegExp;
2555
+ declare const sha384_hex: RegExp;
2556
+ declare const sha384_base64: RegExp;
2557
+ declare const sha384_base64url: RegExp;
2558
+ declare const sha512_hex: RegExp;
2559
+ declare const sha512_base64: RegExp;
2560
+ declare const sha512_base64url: RegExp;
2561
+ //#endregion
2562
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ar.d.cts
2563
+ declare function _default$64(): {
2564
+ localeError: $ZodErrorMap;
2565
+ };
2566
+ //#endregion
2567
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/az.d.cts
2568
+ declare function _default$63(): {
2569
+ localeError: $ZodErrorMap;
2570
+ };
2571
+ //#endregion
2572
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/be.d.cts
2573
+ declare function _default$62(): {
2574
+ localeError: $ZodErrorMap;
2575
+ };
2576
+ //#endregion
2577
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/bg.d.cts
2578
+ declare function _default$61(): {
2579
+ localeError: $ZodErrorMap;
2580
+ };
2581
+ //#endregion
2582
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/bn.d.cts
2583
+ declare function _default$60(): {
2584
+ localeError: $ZodErrorMap;
2585
+ };
2586
+ //#endregion
2587
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ca.d.cts
2588
+ declare function _default$59(): {
2589
+ localeError: $ZodErrorMap;
2590
+ };
2591
+ //#endregion
2592
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ckb.d.cts
2593
+ declare function _default$58(): {
2594
+ localeError: $ZodErrorMap;
2595
+ };
2596
+ //#endregion
2597
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/cs.d.cts
2598
+ declare function _default$57(): {
2599
+ localeError: $ZodErrorMap;
2600
+ };
2601
+ //#endregion
2602
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/da.d.cts
2603
+ declare function _default$56(): {
2604
+ localeError: $ZodErrorMap;
2605
+ };
2606
+ //#endregion
2607
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/de.d.cts
2608
+ declare function _default$55(): {
2609
+ localeError: $ZodErrorMap;
2610
+ };
2611
+ //#endregion
2612
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/el.d.cts
2613
+ declare function _default$54(): {
2614
+ localeError: $ZodErrorMap;
2615
+ };
2616
+ //#endregion
2617
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/en.d.cts
2618
+ declare function _default$53(): {
2619
+ localeError: $ZodErrorMap;
2620
+ };
2621
+ //#endregion
2622
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/eo.d.cts
2623
+ declare function _default$52(): {
2624
+ localeError: $ZodErrorMap;
2625
+ };
2626
+ //#endregion
2627
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/es.d.cts
2628
+ declare function _default$51(): {
2629
+ localeError: $ZodErrorMap;
2630
+ };
2631
+ //#endregion
2632
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/fa.d.cts
2633
+ declare function _default$50(): {
2634
+ localeError: $ZodErrorMap;
2635
+ };
2636
+ //#endregion
2637
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/fi.d.cts
2638
+ declare function _default$49(): {
2639
+ localeError: $ZodErrorMap;
2640
+ };
2641
+ //#endregion
2642
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/fr.d.cts
2643
+ declare function _default$48(): {
2644
+ localeError: $ZodErrorMap;
2645
+ };
2646
+ //#endregion
2647
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/fr-CA.d.cts
2648
+ declare function _default$47(): {
2649
+ localeError: $ZodErrorMap;
2650
+ };
2651
+ //#endregion
2652
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/gu.d.cts
2653
+ declare function _default$46(): {
2654
+ localeError: $ZodErrorMap;
2655
+ };
2656
+ //#endregion
2657
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/he.d.cts
2658
+ declare function _default$45(): {
2659
+ localeError: $ZodErrorMap;
2660
+ };
2661
+ //#endregion
2662
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/hi.d.cts
2663
+ declare function _default$44(): {
2664
+ localeError: $ZodErrorMap;
2665
+ };
2666
+ //#endregion
2667
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/hr.d.cts
2668
+ declare function _default$43(): {
2669
+ localeError: $ZodErrorMap;
2670
+ };
2671
+ //#endregion
2672
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/hu.d.cts
2673
+ declare function _default$42(): {
2674
+ localeError: $ZodErrorMap;
2675
+ };
2676
+ //#endregion
2677
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/hy.d.cts
2678
+ declare function _default$41(): {
2679
+ localeError: $ZodErrorMap;
2680
+ };
2681
+ //#endregion
2682
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/id.d.cts
2683
+ declare function _default$40(): {
2684
+ localeError: $ZodErrorMap;
2685
+ };
2686
+ //#endregion
2687
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/is.d.cts
2688
+ declare function _default$39(): {
2689
+ localeError: $ZodErrorMap;
2690
+ };
2691
+ //#endregion
2692
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/it.d.cts
2693
+ declare function _default$38(): {
2694
+ localeError: $ZodErrorMap;
2695
+ };
2696
+ //#endregion
2697
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ja.d.cts
2698
+ declare function _default$37(): {
2699
+ localeError: $ZodErrorMap;
2700
+ };
2701
+ //#endregion
2702
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ka.d.cts
2703
+ declare function _default$36(): {
2704
+ localeError: $ZodErrorMap;
2705
+ };
2706
+ //#endregion
2707
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/kh.d.cts
2708
+ declare function _default$35(): {
2709
+ localeError: $ZodErrorMap;
2710
+ };
2711
+ //#endregion
2712
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/km.d.cts
2713
+ declare function _default$34(): {
2714
+ localeError: $ZodErrorMap;
2715
+ };
2716
+ //#endregion
2717
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/kn.d.cts
2718
+ declare function _default$33(): {
2719
+ localeError: $ZodErrorMap;
2720
+ };
2721
+ //#endregion
2722
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ko.d.cts
2723
+ declare function _default$32(): {
2724
+ localeError: $ZodErrorMap;
2725
+ };
2726
+ //#endregion
2727
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/lt.d.cts
2728
+ declare function _default$31(): {
2729
+ localeError: $ZodErrorMap;
2730
+ };
2731
+ //#endregion
2732
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/mk.d.cts
2733
+ declare function _default$30(): {
2734
+ localeError: $ZodErrorMap;
2735
+ };
2736
+ //#endregion
2737
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ms.d.cts
2738
+ declare function _default$29(): {
2739
+ localeError: $ZodErrorMap;
2740
+ };
2741
+ //#endregion
2742
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ne.d.cts
2743
+ declare function _default$28(): {
2744
+ localeError: $ZodErrorMap;
2745
+ };
2746
+ //#endregion
2747
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/nl.d.cts
2748
+ declare function _default$27(): {
2749
+ localeError: $ZodErrorMap;
2750
+ };
2751
+ //#endregion
2752
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/nn.d.cts
2753
+ declare function _default$26(): {
2754
+ localeError: $ZodErrorMap;
2755
+ };
2756
+ //#endregion
2757
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/no.d.cts
2758
+ declare function _default$25(): {
2759
+ localeError: $ZodErrorMap;
2760
+ };
2761
+ //#endregion
2762
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ota.d.cts
2763
+ declare function _default$24(): {
2764
+ localeError: $ZodErrorMap;
2765
+ };
2766
+ //#endregion
2767
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ps.d.cts
2768
+ declare function _default$23(): {
2769
+ localeError: $ZodErrorMap;
2770
+ };
2771
+ //#endregion
2772
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/pl.d.cts
2773
+ declare function _default$22(): {
2774
+ localeError: $ZodErrorMap;
2775
+ };
2776
+ //#endregion
2777
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/pt.d.cts
2778
+ declare function _default$21(): {
2779
+ localeError: $ZodErrorMap;
2780
+ };
2781
+ //#endregion
2782
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/pt-BR.d.cts
2783
+ declare function _default$20(): {
2784
+ localeError: $ZodErrorMap;
2785
+ };
2786
+ //#endregion
2787
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ro.d.cts
2788
+ declare function _default$19(): {
2789
+ localeError: $ZodErrorMap;
2790
+ };
2791
+ //#endregion
2792
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ru.d.cts
2793
+ declare function _default$18(): {
2794
+ localeError: $ZodErrorMap;
2795
+ };
2796
+ //#endregion
2797
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/sk.d.cts
2798
+ declare function _default$17(): {
2799
+ localeError: $ZodErrorMap;
2800
+ };
2801
+ //#endregion
2802
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/sl.d.cts
2803
+ declare function _default$16(): {
2804
+ localeError: $ZodErrorMap;
2805
+ };
2806
+ //#endregion
2807
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/sv.d.cts
2808
+ declare function _default$15(): {
2809
+ localeError: $ZodErrorMap;
2810
+ };
2811
+ //#endregion
2812
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ta.d.cts
2813
+ declare function _default$14(): {
2814
+ localeError: $ZodErrorMap;
2815
+ };
2816
+ //#endregion
2817
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/tg.d.cts
2818
+ declare function _default$13(): {
2819
+ localeError: $ZodErrorMap;
2820
+ };
2821
+ //#endregion
2822
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/th.d.cts
2823
+ declare function _default$12(): {
2824
+ localeError: $ZodErrorMap;
2825
+ };
2826
+ //#endregion
2827
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/tk.d.cts
2828
+ declare function _default$11(): {
2829
+ localeError: $ZodErrorMap;
2830
+ };
2831
+ //#endregion
2832
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/tr.d.cts
2833
+ declare function _default$10(): {
2834
+ localeError: $ZodErrorMap;
2835
+ };
2836
+ //#endregion
2837
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ua.d.cts
2838
+ declare function _default$9(): {
2839
+ localeError: $ZodErrorMap;
2840
+ };
2841
+ //#endregion
2842
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/uk.d.cts
2843
+ declare function _default$8(): {
2844
+ localeError: $ZodErrorMap;
2845
+ };
2846
+ //#endregion
2847
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ur.d.cts
2848
+ declare function _default$7(): {
2849
+ localeError: $ZodErrorMap;
2850
+ };
2851
+ //#endregion
2852
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/uz.d.cts
2853
+ declare function _default$6(): {
2854
+ localeError: $ZodErrorMap;
2855
+ };
2856
+ //#endregion
2857
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/vi.d.cts
2858
+ declare function _default$5(): {
2859
+ localeError: $ZodErrorMap;
2860
+ };
2861
+ //#endregion
2862
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/zh-CN.d.cts
2863
+ declare function _default$4(): {
2864
+ localeError: $ZodErrorMap;
2865
+ };
2866
+ //#endregion
2867
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/zh-TW.d.cts
2868
+ declare function _default$3(): {
2869
+ localeError: $ZodErrorMap;
2870
+ };
2871
+ //#endregion
2872
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/yo.d.cts
2873
+ declare function _default$2(): {
2874
+ localeError: $ZodErrorMap;
2875
+ };
2876
+ declare namespace index_d_exports$1 {
2877
+ export { _default$64 as ar, _default$63 as az, _default$62 as be, _default$61 as bg, _default$60 as bn, _default$59 as ca, _default$58 as ckb, _default$57 as cs, _default$56 as da, _default$55 as de, _default$54 as el, _default$53 as en, _default$52 as eo, _default$51 as es, _default$50 as fa, _default$49 as fi, _default$48 as fr, _default$47 as frCA, _default$46 as gu, _default$45 as he, _default$44 as hi, _default$43 as hr, _default$42 as hu, _default$41 as hy, _default$40 as id, _default$39 as is, _default$38 as it, _default$37 as ja, _default$36 as ka, _default$35 as kh, _default$34 as km, _default$33 as kn, _default$32 as ko, _default$31 as lt, _default$30 as mk, _default$29 as ms, _default$28 as ne, _default$27 as nl, _default$26 as nn, _default$25 as no, _default$24 as ota, _default$22 as pl, _default$23 as ps, _default$21 as pt, _default$20 as ptBR, _default$19 as ro, _default$18 as ru, _default$17 as sk, _default$16 as sl, _default$15 as sv, _default$14 as ta, _default$13 as tg, _default$12 as th, _default$11 as tk, _default$10 as tr, _default$9 as ua, _default$8 as uk, _default$7 as ur, _default$6 as uz, _default$5 as vi, _default$2 as yo, _default$4 as zhCN, _default$3 as zhTW };
2878
+ }
2879
+ //#endregion
2880
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/doc.d.cts
2881
+ type ModeWriter = (doc: Doc, modes: {
2882
+ execution: "sync" | "async";
2883
+ }) => void;
2884
+ declare class Doc {
2885
+ args: string[];
2886
+ /** Bindings the compiled function closes over, by name. */
2887
+ closed: Record<string, unknown>;
2888
+ content: string[];
2889
+ indent: number;
2890
+ constructor(args?: string[], closed?: Record<string, unknown>);
2891
+ indented(fn: (doc: Doc) => void): void;
2892
+ write(fn: ModeWriter): void;
2893
+ write(line: string): void;
2894
+ compile(): any;
2895
+ }
2896
+ //#endregion
2897
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/compile.d.cts
2898
+ /** @internal Sentinel the compiled fast path returns when validation fails. */
2899
+ declare const INVALID: unique symbol;
2900
+ /** @internal */
2901
+ type INVALID = typeof INVALID;
2902
+ interface CompileFnOptions {
2903
+ debug?: boolean | undefined;
2904
+ /** Emit a validator instead of a parser: skip building the output value where nothing reads it. */
2905
+ assertOnly?: boolean | undefined;
2906
+ }
2907
+ type CompiledFn<T> = ((input: unknown) => T | INVALID) & {
2908
+ code?: string | undefined;
2909
+ /** False when this function's INVALID does not strictly mean "the runtime would reject". */
2910
+ definite?: boolean | undefined;
2911
+ };
2912
+ /** Raised when the schema contains async refinements or transforms. Surfaces only under `compile(schema, { strict: true })`. */
2913
+ declare class ZodCompileAsyncError extends Error {
2914
+ constructor(message?: string);
2915
+ }
2916
+ /**
2917
+ * Raised when the schema contains a feature whose semantics the fast path
2918
+ * can't fully model. Both the shim in `zod/compile` and the default
2919
+ * `compile()` fall back to the runtime parser for that schema; only
2920
+ * `compile(schema, { strict: true })` lets it surface.
2921
+ */
2922
+ declare class ZodCompileUnsupportedError extends Error {
2923
+ /** Whether a container may absorb this refusal by running the child through the runtime (see `compileChild`). False when running only that node on the runtime is not equivalent to running the whole parse there — a runtime island gets no parse context, so a node that *consumes* issues rather than propagating them would finalize them against the wrong error map and still succeed. */
2924
+ readonly islandable: boolean;
2925
+ constructor(feature: string, islandable?: boolean);
2926
+ }
2927
+ interface CompileOptions {
2928
+ /** Throw the refusal instead of returning the schema uncompiled. */
2929
+ strict?: boolean | undefined;
2930
+ }
2931
+ /**
2932
+ * AOT-compile a Zod schema. Returns a clone whose `_zod.run` calls a generated
2933
+ * fast path first and falls back to the original runtime parser on failure.
2934
+ *
2935
+ * - Forward direction only. Backward (encode), async, and `skipChecks` paths
2936
+ * bypass the fast path and use the runtime directly.
2937
+ * - Never throws. A schema the fast path can't model is returned unchanged and
2938
+ * keeps using the runtime parser. Pass `{ strict: true }` to get the refusal
2939
+ * as a thrown `ZodCompileUnsupportedError` / `ZodCompileAsyncError` instead.
2940
+ * - The original schema is unchanged. The clone shares children by reference.
2941
+ */
2942
+ declare function compile<T extends SomeType>(schema: T, options?: CompileOptions): T;
2943
+ /**
2944
+ * Install an already-generated parser as a schema's fast path. Returns a clone; the original is
2945
+ * unchanged.
2946
+ *
2947
+ * The parser takes the input and returns the parsed value, or `INVALID` to hand the parse to the
2948
+ * runtime. It must be synchronous and forward-direction, and it must build fresh output rather than
2949
+ * return its input — Zod cannot check either, and a wrong *success* is returned to the caller as-is.
2950
+ *
2951
+ * `compile()` is the ordinary entry point. This is for a build-time or native compiler that produces
2952
+ * a parser where `new Function` is unavailable.
2953
+ */
2954
+ declare function withParser<T extends SomeType>(schema: T, parser: (input: unknown) => output$1<T> | INVALID): T;
2955
+ /**
2956
+ * @internal Generate the standalone compiled function: a parser by default, a validator under
2957
+ * `assertOnly`. Returns the parsed value, `true` where nothing reads the output, or `INVALID`. Consumers use `compile()`.
2958
+ */
2959
+ declare function compileFn<T extends SomeType>(schema: T, options?: CompileFnOptions): CompiledFn<output$1<T>>;
1773
2960
  //#endregion
1774
2961
  //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/api.d.cts
1775
2962
  type Params<T extends $ZodType | $ZodCheck, IssueTypes extends $ZodIssueBase, OmitKeys extends keyof T["_zod"]["def"] = never> = Flatten<Partial<EmptyToNever<Omit<T["_zod"]["def"], OmitKeys> & ([IssueTypes] extends [never] ? {} : {
@@ -1782,52 +2969,283 @@ type TypeParams<T extends $ZodType = $ZodType & {
1782
2969
  }, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "checks" | "error"> = never> = Params<T, NonNullable<T["_zod"]["isst"]>, "type" | "checks" | "error" | AlsoOmit>;
1783
2970
  type CheckParams<T extends $ZodCheck = $ZodCheck // & { _issc: never },
1784
2971
  , AlsoOmit extends Exclude<keyof T["_zod"]["def"], "check" | "error"> = never> = Params<T, NonNullable<T["_zod"]["issc"]>, "check" | "error" | AlsoOmit>;
2972
+ type StringFormatParams<T extends $ZodStringFormat = $ZodStringFormat, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "coerce" | "checks" | "error" | "check" | "format"> = never> = Params<T, NonNullable<T["_zod"]["isst"] | T["_zod"]["issc"]>, "type" | "coerce" | "checks" | "error" | "check" | "format" | AlsoOmit>;
1785
2973
  type CheckStringFormatParams<T extends $ZodStringFormat = $ZodStringFormat, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "coerce" | "checks" | "error" | "check" | "format"> = never> = Params<T, NonNullable<T["_zod"]["issc"]>, "type" | "coerce" | "checks" | "error" | "check" | "format" | AlsoOmit>;
1786
2974
  type CheckTypeParams<T extends $ZodType & $ZodCheck = $ZodType & $ZodCheck, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "checks" | "error" | "check"> = never> = Params<T, NonNullable<T["_zod"]["isst"] | T["_zod"]["issc"]>, "type" | "checks" | "error" | "check" | AlsoOmit>;
2975
+ type $ZodStringParams = TypeParams<$ZodString<string>, "coerce"> & {
2976
+ checks?: readonly $ZodCheck<string>[];
2977
+ };
2978
+ declare function _string<T extends $ZodString>(Class: SchemaClass<T>, params?: string | $ZodStringParams): T;
2979
+ declare function _coercedString<T extends $ZodString>(Class: SchemaClass<T>, params?: string | $ZodStringParams): T;
2980
+ type $ZodStringFormatParams = CheckTypeParams<$ZodStringFormat, "format" | "coerce" | "when" | "pattern">;
2981
+ type $ZodCheckStringFormatParams = CheckParams<$ZodCheckStringFormat, "format">;
2982
+ type $ZodEmailParams = StringFormatParams<$ZodEmail, "when">;
1787
2983
  type $ZodCheckEmailParams = CheckStringFormatParams<$ZodEmail, "when">;
2984
+ declare function _email<T extends $ZodEmail>(Class: SchemaClass<T>, params?: string | $ZodEmailParams | $ZodCheckEmailParams): T;
2985
+ type $ZodGUIDParams = StringFormatParams<$ZodGUID, "pattern" | "when">;
1788
2986
  type $ZodCheckGUIDParams = CheckStringFormatParams<$ZodGUID, "pattern" | "when">;
2987
+ declare function _guid<T extends $ZodGUID>(Class: SchemaClass<T>, params?: string | $ZodGUIDParams | $ZodCheckGUIDParams): T;
2988
+ type $ZodUUIDParams = StringFormatParams<$ZodUUID, "pattern" | "when">;
1789
2989
  type $ZodCheckUUIDParams = CheckStringFormatParams<$ZodUUID, "pattern" | "when">;
2990
+ declare function _uuid<T extends $ZodUUID>(Class: SchemaClass<T>, params?: string | $ZodUUIDParams | $ZodCheckUUIDParams): T;
2991
+ type $ZodUUIDv4Params = StringFormatParams<$ZodUUID, "pattern" | "when">;
2992
+ type $ZodCheckUUIDv4Params = CheckStringFormatParams<$ZodUUID, "pattern" | "when">;
2993
+ declare function _uuidv4<T extends $ZodUUID>(Class: SchemaClass<T>, params?: string | $ZodUUIDv4Params | $ZodCheckUUIDv4Params): T;
2994
+ type $ZodUUIDv6Params = StringFormatParams<$ZodUUID, "pattern" | "when">;
2995
+ type $ZodCheckUUIDv6Params = CheckStringFormatParams<$ZodUUID, "pattern" | "when">;
2996
+ declare function _uuidv6<T extends $ZodUUID>(Class: SchemaClass<T>, params?: string | $ZodUUIDv6Params | $ZodCheckUUIDv6Params): T;
2997
+ type $ZodUUIDv7Params = StringFormatParams<$ZodUUID, "pattern" | "when">;
2998
+ type $ZodCheckUUIDv7Params = CheckStringFormatParams<$ZodUUID, "pattern" | "when">;
2999
+ declare function _uuidv7<T extends $ZodUUID>(Class: SchemaClass<T>, params?: string | $ZodUUIDv7Params | $ZodCheckUUIDv7Params): T;
3000
+ type $ZodURLParams = StringFormatParams<$ZodURL, "when">;
1790
3001
  type $ZodCheckURLParams = CheckStringFormatParams<$ZodURL, "when">;
3002
+ declare function _url<T extends $ZodURL>(Class: SchemaClass<T>, params?: string | $ZodURLParams | $ZodCheckURLParams): T;
3003
+ type $ZodEmojiParams = StringFormatParams<$ZodEmoji, "when">;
1791
3004
  type $ZodCheckEmojiParams = CheckStringFormatParams<$ZodEmoji, "when">;
3005
+ declare function _emoji<T extends $ZodEmoji>(Class: SchemaClass<T>, params?: string | $ZodEmojiParams | $ZodCheckEmojiParams): T;
3006
+ type $ZodNanoIDParams = StringFormatParams<$ZodNanoID, "when" | "pattern">;
1792
3007
  type $ZodCheckNanoIDParams = CheckStringFormatParams<$ZodNanoID, "when" | "pattern">;
3008
+ declare function _nanoid<T extends $ZodNanoID>(Class: SchemaClass<T>, params?: string | $ZodNanoIDParams | $ZodCheckNanoIDParams): T;
3009
+ /**
3010
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
3011
+ * (timestamps embedded in the id). Use {@link _cuid2} instead.
3012
+ * See https://github.com/paralleldrive/cuid.
3013
+ */
3014
+ type $ZodCUIDParams = StringFormatParams<$ZodCUID, "when">;
1793
3015
  /**
1794
3016
  * @deprecated CUID v1 is deprecated by its authors due to information leakage
1795
3017
  * (timestamps embedded in the id). Use {@link _cuid2} instead.
1796
3018
  * See https://github.com/paralleldrive/cuid.
1797
3019
  */
1798
3020
  type $ZodCheckCUIDParams = CheckStringFormatParams<$ZodCUID, "when">;
3021
+ /**
3022
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
3023
+ * (timestamps embedded in the id). Use {@link _cuid2} instead.
3024
+ * See https://github.com/paralleldrive/cuid.
3025
+ */
3026
+ declare function _cuid<T extends $ZodCUID>(Class: SchemaClass<T>, params?: string | $ZodCUIDParams | $ZodCheckCUIDParams): T;
3027
+ type $ZodCUID2Params = StringFormatParams<$ZodCUID2, "when">;
1799
3028
  type $ZodCheckCUID2Params = CheckStringFormatParams<$ZodCUID2, "when">;
3029
+ declare function _cuid2<T extends $ZodCUID2>(Class: SchemaClass<T>, params?: string | $ZodCUID2Params | $ZodCheckCUID2Params): T;
3030
+ type $ZodULIDParams = StringFormatParams<$ZodULID, "when">;
1800
3031
  type $ZodCheckULIDParams = CheckStringFormatParams<$ZodULID, "when">;
3032
+ declare function _ulid<T extends $ZodULID>(Class: SchemaClass<T>, params?: string | $ZodULIDParams | $ZodCheckULIDParams): T;
3033
+ type $ZodXIDParams = StringFormatParams<$ZodXID, "when">;
1801
3034
  type $ZodCheckXIDParams = CheckStringFormatParams<$ZodXID, "when">;
3035
+ declare function _xid<T extends $ZodXID>(Class: SchemaClass<T>, params?: string | $ZodXIDParams | $ZodCheckXIDParams): T;
3036
+ type $ZodKSUIDParams = StringFormatParams<$ZodKSUID, "when">;
1802
3037
  type $ZodCheckKSUIDParams = CheckStringFormatParams<$ZodKSUID, "when">;
3038
+ declare function _ksuid<T extends $ZodKSUID>(Class: SchemaClass<T>, params?: string | $ZodKSUIDParams | $ZodCheckKSUIDParams): T;
3039
+ type $ZodIPv4Params = StringFormatParams<$ZodIPv4, "pattern" | "when" | "version">;
1803
3040
  type $ZodCheckIPv4Params = CheckStringFormatParams<$ZodIPv4, "pattern" | "when" | "version">;
3041
+ declare function _ipv4<T extends $ZodIPv4>(Class: SchemaClass<T>, params?: string | $ZodIPv4Params | $ZodCheckIPv4Params): T;
3042
+ type $ZodIPv6Params = StringFormatParams<$ZodIPv6, "pattern" | "when" | "version">;
1804
3043
  type $ZodCheckIPv6Params = CheckStringFormatParams<$ZodIPv6, "pattern" | "when" | "version">;
3044
+ declare function _ipv6<T extends $ZodIPv6>(Class: SchemaClass<T>, params?: string | $ZodIPv6Params | $ZodCheckIPv6Params): T;
3045
+ type $ZodMACParams = StringFormatParams<$ZodMAC, "pattern" | "when">;
3046
+ type $ZodCheckMACParams = CheckStringFormatParams<$ZodMAC, "pattern" | "when">;
3047
+ declare function _mac<T extends $ZodMAC>(Class: SchemaClass<T>, params?: string | $ZodMACParams | $ZodCheckMACParams): T;
3048
+ type $ZodCIDRv4Params = StringFormatParams<$ZodCIDRv4, "pattern" | "when">;
1805
3049
  type $ZodCheckCIDRv4Params = CheckStringFormatParams<$ZodCIDRv4, "pattern" | "when">;
3050
+ declare function _cidrv4<T extends $ZodCIDRv4>(Class: SchemaClass<T>, params?: string | $ZodCIDRv4Params | $ZodCheckCIDRv4Params): T;
3051
+ type $ZodCIDRv6Params = StringFormatParams<$ZodCIDRv6, "pattern" | "when">;
1806
3052
  type $ZodCheckCIDRv6Params = CheckStringFormatParams<$ZodCIDRv6, "pattern" | "when">;
3053
+ declare function _cidrv6<T extends $ZodCIDRv6>(Class: SchemaClass<T>, params?: string | $ZodCIDRv6Params | $ZodCheckCIDRv6Params): T;
3054
+ type $ZodBase64Params = StringFormatParams<$ZodBase64, "pattern" | "when">;
1807
3055
  type $ZodCheckBase64Params = CheckStringFormatParams<$ZodBase64, "pattern" | "when">;
3056
+ declare function _base64<T extends $ZodBase64>(Class: SchemaClass<T>, params?: string | $ZodBase64Params | $ZodCheckBase64Params): T;
3057
+ type $ZodBase64URLParams = StringFormatParams<$ZodBase64URL, "pattern" | "when">;
1808
3058
  type $ZodCheckBase64URLParams = CheckStringFormatParams<$ZodBase64URL, "pattern" | "when">;
3059
+ declare function _base64url<T extends $ZodBase64URL>(Class: SchemaClass<T>, params?: string | $ZodBase64URLParams | $ZodCheckBase64URLParams): T;
3060
+ type $ZodE164Params = StringFormatParams<$ZodE164, "when">;
1809
3061
  type $ZodCheckE164Params = CheckStringFormatParams<$ZodE164, "when">;
3062
+ declare function _e164<T extends $ZodE164>(Class: SchemaClass<T>, params?: string | $ZodE164Params | $ZodCheckE164Params): T;
3063
+ type $ZodCreditCardParams = StringFormatParams<$ZodCreditCard, "pattern" | "when">;
3064
+ type $ZodCheckCreditCardParams = CheckStringFormatParams<$ZodCreditCard, "pattern" | "when">;
3065
+ declare function _creditCard<T extends $ZodCreditCard>(Class: SchemaClass<T>, params?: string | $ZodCreditCardParams | $ZodCheckCreditCardParams): T;
3066
+ type $ZodIBANParams = StringFormatParams<$ZodIBAN, "pattern" | "when">;
3067
+ type $ZodCheckIBANParams = CheckStringFormatParams<$ZodIBAN, "pattern" | "when">;
3068
+ declare function _iban<T extends $ZodIBAN>(Class: SchemaClass<T>, params?: string | $ZodIBANParams | $ZodCheckIBANParams): T;
3069
+ type $ZodJWTParams = StringFormatParams<$ZodJWT, "pattern" | "when">;
1810
3070
  type $ZodCheckJWTParams = CheckStringFormatParams<$ZodJWT, "pattern" | "when">;
3071
+ declare function _jwt<T extends $ZodJWT>(Class: SchemaClass<T>, params?: string | $ZodJWTParams | $ZodCheckJWTParams): T;
3072
+ declare const TimePrecision: {
3073
+ readonly Any: null;
3074
+ readonly Minute: -1;
3075
+ readonly Second: 0;
3076
+ readonly Millisecond: 3;
3077
+ readonly Microsecond: 6;
3078
+ };
3079
+ type $ZodISODateTimeParams = StringFormatParams<$ZodISODateTime, "pattern" | "when">;
1811
3080
  type $ZodCheckISODateTimeParams = CheckStringFormatParams<$ZodISODateTime, "pattern" | "when">;
3081
+ declare function _isoDateTime<T extends $ZodISODateTime>(Class: SchemaClass<T>, params?: string | $ZodISODateTimeParams | $ZodCheckISODateTimeParams): T;
3082
+ type $ZodISODateParams = StringFormatParams<$ZodISODate, "pattern" | "when">;
1812
3083
  type $ZodCheckISODateParams = CheckStringFormatParams<$ZodISODate, "pattern" | "when">;
3084
+ declare function _isoDate<T extends $ZodISODate>(Class: SchemaClass<T>, params?: string | $ZodISODateParams | $ZodCheckISODateParams): T;
3085
+ type $ZodISOTimeParams = StringFormatParams<$ZodISOTime, "pattern" | "when">;
1813
3086
  type $ZodCheckISOTimeParams = CheckStringFormatParams<$ZodISOTime, "pattern" | "when">;
3087
+ declare function _isoTime<T extends $ZodISOTime>(Class: SchemaClass<T>, params?: string | $ZodISOTimeParams | $ZodCheckISOTimeParams): T;
3088
+ type $ZodISODurationParams = StringFormatParams<$ZodISODuration, "when">;
1814
3089
  type $ZodCheckISODurationParams = CheckStringFormatParams<$ZodISODuration, "when">;
3090
+ declare function _isoDuration<T extends $ZodISODuration>(Class: SchemaClass<T>, params?: string | $ZodISODurationParams | $ZodCheckISODurationParams): T;
3091
+ type $ZodNumberParams = TypeParams<$ZodNumber<number>, "coerce"> & {
3092
+ checks?: readonly $ZodCheck<number>[];
3093
+ };
3094
+ type $ZodNumberFormatParams = CheckTypeParams<$ZodNumberFormat, "format" | "coerce">;
1815
3095
  type $ZodCheckNumberFormatParams = CheckParams<$ZodCheckNumberFormat, "format" | "when">;
3096
+ declare function _number<T extends $ZodNumber>(Class: SchemaClass<T>, params?: string | $ZodNumberParams): T;
3097
+ declare function _coercedNumber<T extends $ZodNumber>(Class: SchemaClass<T>, params?: string | $ZodNumberParams): T;
3098
+ declare function _int<T extends $ZodNumberFormat>(Class: SchemaClass<T>, params?: string | $ZodCheckNumberFormatParams): T;
3099
+ declare function _float32<T extends $ZodNumberFormat>(Class: SchemaClass<T>, params?: string | $ZodCheckNumberFormatParams): T;
3100
+ declare function _float64<T extends $ZodNumberFormat>(Class: SchemaClass<T>, params?: string | $ZodCheckNumberFormatParams): T;
3101
+ declare function _int32<T extends $ZodNumberFormat>(Class: SchemaClass<T>, params?: string | $ZodCheckNumberFormatParams): T;
3102
+ declare function _uint32<T extends $ZodNumberFormat>(Class: SchemaClass<T>, params?: string | $ZodCheckNumberFormatParams): T;
3103
+ type $ZodBooleanParams = TypeParams<$ZodBoolean<boolean>, "coerce">;
3104
+ declare function _boolean<T extends $ZodBoolean>(Class: SchemaClass<T>, params?: string | $ZodBooleanParams): T;
3105
+ declare function _coercedBoolean<T extends $ZodBoolean>(Class: SchemaClass<T>, params?: string | $ZodBooleanParams): T;
3106
+ type $ZodBigIntParams = TypeParams<$ZodBigInt<bigint>>;
3107
+ type $ZodBigIntFormatParams = CheckTypeParams<$ZodBigIntFormat, "format" | "coerce">;
3108
+ type $ZodCheckBigIntFormatParams = CheckParams<$ZodCheckBigIntFormat, "format" | "when">;
3109
+ declare function _bigint<T extends $ZodBigInt>(Class: SchemaClass<T>, params?: string | $ZodBigIntParams): T;
3110
+ declare function _coercedBigint<T extends $ZodBigInt>(Class: SchemaClass<T>, params?: string | $ZodBigIntParams): T;
3111
+ declare function _int64<T extends $ZodBigIntFormat>(Class: SchemaClass<T>, params?: string | $ZodBigIntFormatParams): T;
3112
+ declare function _uint64<T extends $ZodBigIntFormat>(Class: SchemaClass<T>, params?: string | $ZodBigIntFormatParams): T;
3113
+ type $ZodSymbolParams = TypeParams<$ZodSymbol>;
3114
+ declare function _symbol<T extends $ZodSymbol>(Class: SchemaClass<T>, params?: string | $ZodSymbolParams): T;
3115
+ type $ZodUndefinedParams = TypeParams<$ZodUndefined>;
3116
+ declare function _undefined$1<T extends $ZodUndefined>(Class: SchemaClass<T>, params?: string | $ZodUndefinedParams): T;
3117
+ type $ZodNullParams = TypeParams<$ZodNull>;
3118
+ declare function _null$1<T extends $ZodNull>(Class: SchemaClass<T>, params?: string | $ZodNullParams): T;
3119
+ type $ZodAnyParams = TypeParams<$ZodAny>;
3120
+ declare function _any<T extends $ZodAny>(Class: SchemaClass<T>): T;
3121
+ type $ZodUnknownParams = TypeParams<$ZodUnknown>;
3122
+ declare function _unknown<T extends $ZodUnknown>(Class: SchemaClass<T>): T;
3123
+ type $ZodNeverParams = TypeParams<$ZodNever>;
3124
+ declare function _never<T extends $ZodNever>(Class: SchemaClass<T>, params?: string | $ZodNeverParams): T;
3125
+ type $ZodVoidParams = TypeParams<$ZodVoid>;
3126
+ declare function _void$1<T extends $ZodVoid>(Class: SchemaClass<T>, params?: string | $ZodVoidParams): T;
3127
+ type $ZodDateParams = TypeParams<$ZodDate, "coerce">;
3128
+ declare function _date<T extends $ZodDate>(Class: SchemaClass<T>, params?: string | $ZodDateParams): T;
3129
+ declare function _coercedDate<T extends $ZodDate>(Class: SchemaClass<T>, params?: string | $ZodDateParams): T;
3130
+ type $ZodNaNParams = TypeParams<$ZodNaN>;
3131
+ declare function _nan<T extends $ZodNaN>(Class: SchemaClass<T>, params?: string | $ZodNaNParams): T;
1816
3132
  type $ZodCheckLessThanParams = CheckParams<$ZodCheckLessThan, "inclusive" | "value" | "when">;
3133
+ declare function _lt(value: Numeric, params?: string | $ZodCheckLessThanParams): $ZodCheckLessThan<Numeric>;
3134
+ declare function _lte(value: Numeric, params?: string | $ZodCheckLessThanParams): $ZodCheckLessThan<Numeric>;
1817
3135
  type $ZodCheckGreaterThanParams = CheckParams<$ZodCheckGreaterThan, "inclusive" | "value" | "when">;
3136
+ declare function _gt(value: Numeric, params?: string | $ZodCheckGreaterThanParams): $ZodCheckGreaterThan;
3137
+ declare function _gte(value: Numeric, params?: string | $ZodCheckGreaterThanParams): $ZodCheckGreaterThan;
3138
+ declare function _positive(params?: string | $ZodCheckGreaterThanParams): $ZodCheckGreaterThan;
3139
+ declare function _negative(params?: string | $ZodCheckLessThanParams): $ZodCheckLessThan;
3140
+ declare function _nonpositive(params?: string | $ZodCheckLessThanParams): $ZodCheckLessThan;
3141
+ declare function _nonnegative(params?: string | $ZodCheckGreaterThanParams): $ZodCheckGreaterThan;
1818
3142
  type $ZodCheckMultipleOfParams = CheckParams<$ZodCheckMultipleOf, "value" | "when">;
3143
+ declare function _multipleOf(value: number | bigint, params?: string | $ZodCheckMultipleOfParams): $ZodCheckMultipleOf;
3144
+ type $ZodCheckMaxSizeParams = CheckParams<$ZodCheckMaxSize, "maximum" | "when">;
3145
+ declare function _maxSize(maximum: number, params?: string | $ZodCheckMaxSizeParams): $ZodCheckMaxSize<HasSize>;
3146
+ type $ZodCheckMinSizeParams = CheckParams<$ZodCheckMinSize, "minimum" | "when">;
3147
+ declare function _minSize(minimum: number, params?: string | $ZodCheckMinSizeParams): $ZodCheckMinSize<HasSize>;
3148
+ type $ZodCheckSizeEqualsParams = CheckParams<$ZodCheckSizeEquals, "size" | "when">;
3149
+ declare function _size(size: number, params?: string | $ZodCheckSizeEqualsParams): $ZodCheckSizeEquals<HasSize>;
1819
3150
  type $ZodCheckMaxLengthParams = CheckParams<$ZodCheckMaxLength, "maximum" | "when">;
3151
+ declare function _maxLength(maximum: number, params?: string | $ZodCheckMaxLengthParams): $ZodCheckMaxLength<HasLength>;
1820
3152
  type $ZodCheckMinLengthParams = CheckParams<$ZodCheckMinLength, "minimum" | "when">;
3153
+ declare function _minLength(minimum: number, params?: string | $ZodCheckMinLengthParams): $ZodCheckMinLength<HasLength>;
1821
3154
  type $ZodCheckLengthEqualsParams = CheckParams<$ZodCheckLengthEquals, "length" | "when">;
3155
+ declare function _length(length: number, params?: string | $ZodCheckLengthEqualsParams): $ZodCheckLengthEquals<HasLength>;
1822
3156
  type $ZodCheckRegexParams = CheckParams<$ZodCheckRegex, "format" | "pattern" | "when">;
3157
+ declare function _regex(pattern: RegExp, params?: string | $ZodCheckRegexParams): $ZodCheckRegex;
1823
3158
  type $ZodCheckLowerCaseParams = CheckParams<$ZodCheckLowerCase, "format" | "when">;
3159
+ declare function _lowercase(params?: string | $ZodCheckLowerCaseParams): $ZodCheckLowerCase;
1824
3160
  type $ZodCheckUpperCaseParams = CheckParams<$ZodCheckUpperCase, "format" | "when">;
3161
+ declare function _uppercase(params?: string | $ZodCheckUpperCaseParams): $ZodCheckUpperCase;
1825
3162
  type $ZodCheckIncludesParams = CheckParams<$ZodCheckIncludes, "includes" | "format" | "when" | "pattern">;
3163
+ declare function _includes(includes: string, params?: string | $ZodCheckIncludesParams): $ZodCheckIncludes;
1826
3164
  type $ZodCheckStartsWithParams = CheckParams<$ZodCheckStartsWith, "prefix" | "format" | "when" | "pattern">;
3165
+ declare function _startsWith(prefix: string, params?: string | $ZodCheckStartsWithParams): $ZodCheckStartsWith;
1827
3166
  type $ZodCheckEndsWithParams = CheckParams<$ZodCheckEndsWith, "suffix" | "format" | "pattern" | "when">;
3167
+ declare function _endsWith(suffix: string, params?: string | $ZodCheckEndsWithParams): $ZodCheckEndsWith;
3168
+ type $ZodCheckPropertyParams = CheckParams<$ZodCheckProperty, "property" | "schema" | "when">;
3169
+ declare function _property<K extends string, T extends $ZodType>(property: K, schema: T, params?: string | $ZodCheckPropertyParams): $ZodCheckProperty<{ [k in K]: Widen<input$1<T>>; }>;
3170
+ type $ZodCheckPropertiesParams = CheckParams<$ZodCheckProperties, "shape" | "when">;
3171
+ declare function _properties<Shape extends $ZodShape>(shape: Shape, params?: string | $ZodCheckPropertiesParams): $ZodCheckProperties<Shape>;
3172
+ type $ZodCheckMimeTypeParams = CheckParams<$ZodCheckMimeType, "mime" | "when">;
3173
+ declare function _mime(types: MimeTypes[], params?: string | $ZodCheckMimeTypeParams): $ZodCheckMimeType;
3174
+ declare function _overwrite<T>(tx: (input: T) => T): $ZodCheckOverwrite<T>;
3175
+ declare function _normalize(form?: "NFC" | "NFD" | "NFKC" | "NFKD" | (string & {})): $ZodCheckOverwrite<string>;
3176
+ declare function _trim(): $ZodCheckOverwrite<string>;
3177
+ declare function _toLowerCase(): $ZodCheckOverwrite<string>;
3178
+ declare function _toUpperCase(): $ZodCheckOverwrite<string>;
3179
+ declare function _slugify(): $ZodCheckOverwrite<string>;
3180
+ type $ZodArrayParams = TypeParams<$ZodArray, "element">;
3181
+ declare function _array<T extends $ZodType>(Class: SchemaClass<$ZodArray>, element: T, params?: string | $ZodArrayParams): $ZodArray<T>;
3182
+ type $ZodObjectParams = TypeParams<$ZodObject, "shape" | "catchall">;
3183
+ type $ZodUnionParams = TypeParams<$ZodUnion, "options">;
3184
+ declare function _union<const T extends readonly $ZodObject[]>(Class: SchemaClass<$ZodUnion>, options: T, params?: string | $ZodUnionParams): $ZodUnion<T>;
3185
+ type $ZodXorParams = TypeParams<$ZodXor, "options">;
3186
+ declare function _xor<const T extends readonly $ZodObject[]>(Class: SchemaClass<$ZodXor>, options: T, params?: string | $ZodXorParams): $ZodXor<T>;
3187
+ interface $ZodTypeDiscriminableInternals<_Disc extends string = string> extends _$ZodTypeInternals {
3188
+ propValues: PropValues;
3189
+ }
3190
+ interface $ZodTypeDiscriminable<_Disc extends string = string> extends SomeType {
3191
+ _zod: $ZodTypeDiscriminableInternals;
3192
+ }
3193
+ type $ZodDiscriminatedUnionParams = TypeParams<$ZodDiscriminatedUnion, "options" | "discriminator">;
3194
+ declare function _discriminatedUnion<Types extends [$ZodTypeDiscriminable, ...$ZodTypeDiscriminable[]], Disc extends string>(Class: SchemaClass<$ZodDiscriminatedUnion>, discriminator: Disc, options: Types, params?: string | $ZodDiscriminatedUnionParams): $ZodDiscriminatedUnion<Types, Disc>;
3195
+ type $ZodIntersectionParams = TypeParams<$ZodIntersection, "left" | "right">;
3196
+ declare function _intersection<T extends $ZodObject, U extends $ZodObject>(Class: SchemaClass<$ZodIntersection>, left: T, right: U): $ZodIntersection<T, U>;
3197
+ type $ZodTupleParams = TypeParams<$ZodTuple, "items" | "rest">;
3198
+ declare function _tuple<T extends readonly [$ZodType, ...$ZodType[]]>(Class: SchemaClass<$ZodTuple>, items: T, params?: string | $ZodTupleParams): $ZodTuple<T, null>;
3199
+ declare function _tuple<T extends readonly [$ZodType, ...$ZodType[]], Rest extends $ZodType>(Class: SchemaClass<$ZodTuple>, items: T, rest: Rest, params?: string | $ZodTupleParams): $ZodTuple<T, Rest>;
3200
+ type $ZodRecordParams = TypeParams<$ZodRecord, "keyType" | "valueType" | "partial">;
3201
+ declare function _record<Key extends $ZodRecordKey, Value extends $ZodObject>(Class: SchemaClass<$ZodRecord>, keyType: Key, valueType: Value, params?: string | $ZodRecordParams): $ZodRecord<Key, Value>;
3202
+ type $ZodMapParams = TypeParams<$ZodMap, "keyType" | "valueType">;
3203
+ declare function _map<Key extends $ZodObject, Value extends $ZodObject>(Class: SchemaClass<$ZodMap>, keyType: Key, valueType: Value, params?: string | $ZodMapParams): $ZodMap<Key, Value>;
3204
+ type $ZodSetParams = TypeParams<$ZodSet, "valueType">;
3205
+ declare function _set<Value extends $ZodObject>(Class: SchemaClass<$ZodSet>, valueType: Value, params?: string | $ZodSetParams): $ZodSet<Value>;
1828
3206
  type $ZodEnumParams = TypeParams<$ZodEnum, "entries">;
3207
+ declare function _enum$1<const T extends string[]>(Class: SchemaClass<$ZodEnum>, values: T, params?: string | $ZodEnumParams): $ZodEnum<ToEnum<T[number]>>;
3208
+ declare function _enum$1<T extends EnumLike>(Class: SchemaClass<$ZodEnum>, entries: T, params?: string | $ZodEnumParams): $ZodEnum<T>;
3209
+ /** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead.
3210
+ *
3211
+ * ```ts
3212
+ * enum Colors { red, green, blue }
3213
+ * z.enum(Colors);
3214
+ * ```
3215
+ */
3216
+ declare function _nativeEnum<T extends EnumLike>(Class: SchemaClass<$ZodEnum>, entries: T, params?: string | $ZodEnumParams): $ZodEnum<T>;
3217
+ type $ZodLiteralParams = TypeParams<$ZodLiteral, "values">;
3218
+ declare function _literal<const T extends Array<Literal>>(Class: SchemaClass<$ZodLiteral>, value: T, params?: string | $ZodLiteralParams): $ZodLiteral<T[number]>;
3219
+ declare function _literal<const T extends Literal>(Class: SchemaClass<$ZodLiteral>, value: T, params?: string | $ZodLiteralParams): $ZodLiteral<T>;
3220
+ type $ZodFileParams = TypeParams<$ZodFile>;
3221
+ declare function _file(Class: SchemaClass<$ZodFile>, params?: string | $ZodFileParams): $ZodFile;
3222
+ type $ZodTransformParams = TypeParams<$ZodTransform, "transform">;
3223
+ declare function _transform<I = unknown, O = I>(Class: SchemaClass<$ZodTransform>, fn: (input: I, ctx?: ParsePayload) => O): $ZodTransform<Awaited<O>, I>;
3224
+ type $ZodOptionalParams = TypeParams<$ZodOptional, "innerType">;
3225
+ declare function _optional<T extends $ZodObject>(Class: SchemaClass<$ZodOptional>, innerType: T): $ZodOptional<T>;
3226
+ type $ZodNullableParams = TypeParams<$ZodNullable, "innerType">;
3227
+ declare function _nullable<T extends $ZodObject>(Class: SchemaClass<$ZodNullable>, innerType: T): $ZodNullable<T>;
3228
+ type $ZodDefaultParams = TypeParams<$ZodDefault, "innerType" | "defaultValue">;
3229
+ declare function _default$1<T extends $ZodObject>(Class: SchemaClass<$ZodDefault>, innerType: T, defaultValue: NoUndefined<output$1<T>> | (() => NoUndefined<output$1<T>>)): $ZodDefault<T>;
1829
3230
  type $ZodNonOptionalParams = TypeParams<$ZodNonOptional, "innerType">;
3231
+ declare function _nonoptional<T extends $ZodObject>(Class: SchemaClass<$ZodNonOptional>, innerType: T, params?: string | $ZodNonOptionalParams): $ZodNonOptional<T>;
3232
+ type $ZodSuccessParams = TypeParams<$ZodSuccess, "innerType">;
3233
+ declare function _success<T extends $ZodObject>(Class: SchemaClass<$ZodSuccess>, innerType: T): $ZodSuccess<T>;
3234
+ type $ZodCatchParams = TypeParams<$ZodCatch, "innerType" | "catchValue">;
3235
+ declare function _catch$1<T extends $ZodObject>(Class: SchemaClass<$ZodCatch>, innerType: T, catchValue: output$1<T> | ((ctx: $ZodCatchCtx) => output$1<T>)): $ZodCatch<T>;
3236
+ type $ZodPipeParams = TypeParams<$ZodPipe, "in" | "out">;
3237
+ declare function _pipe<const A extends $ZodType, B extends $ZodType<unknown, output$1<A>> = $ZodType<unknown, output$1<A>>>(Class: SchemaClass<$ZodPipe>, in_: A, out: B | $ZodType<unknown, output$1<A>>): $ZodPipe<A, B>;
3238
+ type $ZodReadonlyParams = TypeParams<$ZodReadonly, "innerType">;
3239
+ declare function _readonly<T extends $ZodObject>(Class: SchemaClass<$ZodReadonly>, innerType: T): $ZodReadonly<T>;
3240
+ type $ZodTemplateLiteralParams = TypeParams<$ZodTemplateLiteral, "parts">;
3241
+ declare function _templateLiteral<const Parts extends $ZodTemplateLiteralPart[]>(Class: SchemaClass<$ZodTemplateLiteral>, parts: Parts, params?: string | $ZodTemplateLiteralParams): $ZodTemplateLiteral<$PartsToTemplateLiteral<Parts>>;
3242
+ type $ZodLazyParams = TypeParams<$ZodLazy, "getter">;
3243
+ declare function _lazy<T extends $ZodType>(Class: SchemaClass<$ZodLazy>, getter: () => T): $ZodLazy<T>;
3244
+ type $ZodPromiseParams = TypeParams<$ZodPromise, "innerType">;
3245
+ declare function _promise<T extends $ZodObject>(Class: SchemaClass<$ZodPromise>, innerType: T): $ZodPromise<T>;
1830
3246
  type $ZodCustomParams = CheckTypeParams<$ZodCustom, "fn">;
3247
+ declare function _custom<O = unknown, I = O>(Class: SchemaClass<$ZodCustom>, fn: (data: O) => unknown, _params: string | $ZodCustomParams | undefined): $ZodCustom<O, I>;
3248
+ declare function _refine<O = unknown, I = O>(Class: SchemaClass<$ZodCustom>, fn: (data: O) => unknown, _params: string | $ZodCustomParams | undefined): $ZodCustom<O, I>;
1831
3249
  type $ZodSuperRefineIssue<T extends $ZodIssueBase = $ZodIssue> = T extends any ? RawIssue<T> : never;
1832
3250
  type RawIssue<T extends $ZodIssueBase> = T extends any ? Flatten<MakePartial<T, "message" | "path"> & {
1833
3251
  /** The schema or check that originated this issue. */
@@ -1842,8 +3260,103 @@ interface $ZodSuperRefineParams {
1842
3260
  /** If provided, the refinement runs only when this returns `true`. By default, it is skipped if prior parsing produced aborting issues. */
1843
3261
  when?: ((payload: ParsePayload) => boolean) | undefined;
1844
3262
  }
3263
+ declare function _superRefine<T>(fn: (arg: T, payload: $RefinementCtx<T>) => void | Promise<void>, params?: $ZodSuperRefineParams): $ZodCheck<T>;
3264
+ declare function _check<O = unknown>(fn: CheckFn<O>, params?: string | $ZodCustomParams): $ZodCheck<O>;
3265
+ declare function describe$1<T>(description: string): $ZodCheck<T>;
3266
+ declare function meta$1<T>(metadata: GlobalMeta): $ZodCheck<T>;
3267
+ interface $ZodStringBoolParams extends TypeParams {
3268
+ truthy?: string[];
3269
+ falsy?: string[];
3270
+ /**
3271
+ * Options: `"sensitive"`, `"insensitive"`
3272
+ *
3273
+ * @default `"insensitive"`
3274
+ */
3275
+ case?: "sensitive" | "insensitive" | undefined;
3276
+ }
3277
+ declare function _stringbool(Classes: {
3278
+ Codec?: typeof $ZodCodec;
3279
+ Boolean?: typeof $ZodBoolean;
3280
+ String?: typeof $ZodString;
3281
+ }, _params?: string | $ZodStringBoolParams): $ZodCodec<$ZodString, $ZodBoolean>;
3282
+ declare function _stringFormat<Format extends string>(Class: typeof $ZodCustomStringFormat, format: Format, fnOrRegex: ((arg: string) => MaybeAsync<unknown>) | RegExp, _params?: string | $ZodStringFormatParams): $ZodCustomStringFormat<Format>;
3283
+ //#endregion
3284
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/json-schema-processors.d.cts
3285
+ declare function toJSONSchema<T extends $ZodType>(schema: T, params?: ToJSONSchemaParams): ZodStandardJSONSchemaPayload<T>;
3286
+ declare function toJSONSchema(registry: $ZodRegistry<{
3287
+ id?: string | undefined;
3288
+ }>, params?: RegistryToJSONSchemaParams): {
3289
+ schemas: Record<string, ZodStandardJSONSchemaPayload<$ZodType>>;
3290
+ };
3291
+ //#endregion
3292
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/json-schema-generator.d.cts
3293
+ /**
3294
+ * Parameters for the emit method of JSONSchemaGenerator.
3295
+ * @deprecated Use toJSONSchema function instead
3296
+ */
3297
+ type EmitParams = Pick<JSONSchemaGeneratorParams, "cycles" | "reused" | "external">;
3298
+ /**
3299
+ * Parameters for JSONSchemaGenerator constructor.
3300
+ * @deprecated Use toJSONSchema function instead
3301
+ */
3302
+ type JSONSchemaGeneratorConstructorParams = Pick<JSONSchemaGeneratorParams, "metadata" | "target" | "unrepresentable" | "override" | "io">;
3303
+ /**
3304
+ * Legacy class-based interface for JSON Schema generation.
3305
+ * This class wraps the new functional implementation to provide backward compatibility.
3306
+ *
3307
+ * @deprecated Use the `toJSONSchema` function instead for new code.
3308
+ *
3309
+ * @example
3310
+ * ```typescript
3311
+ * // Legacy usage (still supported)
3312
+ * const gen = new JSONSchemaGenerator({ target: "draft-07" });
3313
+ * gen.process(schema);
3314
+ * const result = gen.emit(schema);
3315
+ *
3316
+ * // Preferred modern usage
3317
+ * const result = toJSONSchema(schema, { target: "draft-07" });
3318
+ * ```
3319
+ */
3320
+ declare class JSONSchemaGenerator {
3321
+ private ctx;
3322
+ /** @deprecated Access via ctx instead */
3323
+ get metadataRegistry(): $ZodRegistry<Record<string, any>>;
3324
+ /** @deprecated Access via ctx instead */
3325
+ get target(): ({} & string) | "draft-2020-12" | "draft-07" | "openapi-3.0" | "draft-04";
3326
+ /** @deprecated Access via ctx instead */
3327
+ get unrepresentable(): ToJSONSchemaContext["unrepresentable"];
3328
+ /** @deprecated Access via ctx instead */
3329
+ get override(): (ctx: {
3330
+ zodSchema: $ZodType;
3331
+ jsonSchema: BaseSchema;
3332
+ path: (string | number)[];
3333
+ }) => void;
3334
+ /** @deprecated Access via ctx instead */
3335
+ get io(): "input" | "output";
3336
+ /** @deprecated Access via ctx instead */
3337
+ get counter(): number;
3338
+ set counter(value: number);
3339
+ /** @deprecated Access via ctx instead */
3340
+ get seen(): Map<$ZodType, Seen>;
3341
+ constructor(params?: JSONSchemaGeneratorConstructorParams);
3342
+ /**
3343
+ * Process a schema to prepare it for JSON Schema generation.
3344
+ * This must be called before emit().
3345
+ */
3346
+ process(schema: $ZodType, _params?: ProcessParams): BaseSchema;
3347
+ /**
3348
+ * Emit the final JSON Schema after processing.
3349
+ * Must call process() first.
3350
+ */
3351
+ emit(schema: $ZodType, _params?: EmitParams): BaseSchema;
3352
+ }
3353
+ declare namespace index_d_exports {
3354
+ export { $Decode, $DecodeAsync, $DiscriminatedOption, $DiscriminatorValue, $Encode, $EncodeAsync, $InferEnumInput, $InferEnumOutput, $InferInnerFunctionType, $InferInnerFunctionTypeAsync, $InferObjectInput, $InferObjectOutput, $InferOuterFunctionType, $InferOuterFunctionTypeAsync, $InferTupleInputType, $InferTupleOutputType, $InferUnionInput, $InferUnionOutput, $InferZodRecordInput, $InferZodRecordOutput, $Parse, $ParseAsync, $PartsToTemplateLiteral, $RefinementCtx, $SafeDecode, $SafeDecodeAsync, $SafeEncode, $SafeEncodeAsync, $SafeParse, $SafeParseAsync, $Validate, $ValidateAsync, $ZodAny, $ZodAnyDef, $ZodAnyInternals, $ZodAnyParams, $ZodArray, $ZodArrayDef, $ZodArrayInternals, $ZodArrayParams, $ZodAsyncError, $ZodBase64, $ZodBase64Def, $ZodBase64Internals, $ZodBase64Params, $ZodBase64URL, $ZodBase64URLDef, $ZodBase64URLInternals, $ZodBase64URLParams, $ZodBigInt, $ZodBigIntDef, $ZodBigIntFormat, $ZodBigIntFormatDef, $ZodBigIntFormatInternals, $ZodBigIntFormatParams, $ZodBigIntFormats, $ZodBigIntInternals, $ZodBigIntParams, $ZodBoolean, $ZodBooleanDef, $ZodBooleanInternals, $ZodBooleanParams, $ZodBranded, $ZodCIDRv4, $ZodCIDRv4Def, $ZodCIDRv4Internals, $ZodCIDRv4Params, $ZodCIDRv6, $ZodCIDRv6Def, $ZodCIDRv6Internals, $ZodCIDRv6Params, $ZodCUID, $ZodCUID2, $ZodCUID2Def, $ZodCUID2Internals, $ZodCUID2Params, $ZodCUIDDef, $ZodCUIDInternals, $ZodCUIDParams, $ZodCatch, $ZodCatchCtx, $ZodCatchDef, $ZodCatchInternals, $ZodCatchParams, $ZodCheck, $ZodCheckBase64Params, $ZodCheckBase64URLParams, $ZodCheckBigIntFormat, $ZodCheckBigIntFormatDef, $ZodCheckBigIntFormatInternals, $ZodCheckBigIntFormatParams, $ZodCheckCIDRv4Params, $ZodCheckCIDRv6Params, $ZodCheckCUID2Params, $ZodCheckCUIDParams, $ZodCheckCreditCardParams, $ZodCheckDef, $ZodCheckE164Params, $ZodCheckEmailParams, $ZodCheckEmojiParams, $ZodCheckEndsWith, $ZodCheckEndsWithDef, $ZodCheckEndsWithInternals, $ZodCheckEndsWithParams, $ZodCheckGUIDParams, $ZodCheckGreaterThan, $ZodCheckGreaterThanDef, $ZodCheckGreaterThanInternals, $ZodCheckGreaterThanParams, $ZodCheckIBANParams, $ZodCheckIPv4Params, $ZodCheckIPv6Params, $ZodCheckISODateParams, $ZodCheckISODateTimeParams, $ZodCheckISODurationParams, $ZodCheckISOTimeParams, $ZodCheckIncludes, $ZodCheckIncludesDef, $ZodCheckIncludesInternals, $ZodCheckIncludesParams, $ZodCheckInternals, $ZodCheckJWTParams, $ZodCheckKSUIDParams, $ZodCheckLengthEquals, $ZodCheckLengthEqualsDef, $ZodCheckLengthEqualsInternals, $ZodCheckLengthEqualsParams, $ZodCheckLessThan, $ZodCheckLessThanDef, $ZodCheckLessThanInternals, $ZodCheckLessThanParams, $ZodCheckLowerCase, $ZodCheckLowerCaseDef, $ZodCheckLowerCaseInternals, $ZodCheckLowerCaseParams, $ZodCheckMACParams, $ZodCheckMaxLength, $ZodCheckMaxLengthDef, $ZodCheckMaxLengthInternals, $ZodCheckMaxLengthParams, $ZodCheckMaxSize, $ZodCheckMaxSizeDef, $ZodCheckMaxSizeInternals, $ZodCheckMaxSizeParams, $ZodCheckMimeType, $ZodCheckMimeTypeDef, $ZodCheckMimeTypeInternals, $ZodCheckMimeTypeParams, $ZodCheckMinLength, $ZodCheckMinLengthDef, $ZodCheckMinLengthInternals, $ZodCheckMinLengthParams, $ZodCheckMinSize, $ZodCheckMinSizeDef, $ZodCheckMinSizeInternals, $ZodCheckMinSizeParams, $ZodCheckMultipleOf, $ZodCheckMultipleOfDef, $ZodCheckMultipleOfInternals, $ZodCheckMultipleOfParams, $ZodCheckNanoIDParams, $ZodCheckNumberFormat, $ZodCheckNumberFormatDef, $ZodCheckNumberFormatInternals, $ZodCheckNumberFormatParams, $ZodCheckOverwrite, $ZodCheckOverwriteDef, $ZodCheckOverwriteInternals, $ZodCheckProperties, $ZodCheckPropertiesDef, $ZodCheckPropertiesInput, $ZodCheckPropertiesInternals, $ZodCheckPropertiesParams, $ZodCheckProperty, $ZodCheckPropertyDef, $ZodCheckPropertyInternals, $ZodCheckPropertyParams, $ZodCheckRegex, $ZodCheckRegexDef, $ZodCheckRegexInternals, $ZodCheckRegexParams, $ZodCheckSizeEquals, $ZodCheckSizeEqualsDef, $ZodCheckSizeEqualsInternals, $ZodCheckSizeEqualsParams, $ZodCheckStartsWith, $ZodCheckStartsWithDef, $ZodCheckStartsWithInternals, $ZodCheckStartsWithParams, $ZodCheckStringFormat, $ZodCheckStringFormatDef, $ZodCheckStringFormatInternals, $ZodCheckStringFormatParams, $ZodCheckULIDParams, $ZodCheckURLParams, $ZodCheckUUIDParams, $ZodCheckUUIDv4Params, $ZodCheckUUIDv6Params, $ZodCheckUUIDv7Params, $ZodCheckUpperCase, $ZodCheckUpperCaseDef, $ZodCheckUpperCaseInternals, $ZodCheckUpperCaseParams, $ZodCheckXIDParams, $ZodChecks, $ZodCodec, $ZodCodecDef, $ZodCodecInternals, $ZodConfig, $ZodCreditCard, $ZodCreditCardDef, $ZodCreditCardInternals, $ZodCreditCardParams, $ZodCustom, $ZodCustomDef, $ZodCustomInternals, $ZodCustomParams, $ZodCustomStringFormat, $ZodCustomStringFormatDef, $ZodCustomStringFormatInternals, $ZodCyclicError, $ZodDate, $ZodDateDef, $ZodDateInternals, $ZodDateParams, $ZodDefault, $ZodDefaultDef, $ZodDefaultInternals, $ZodDefaultParams, $ZodDiscriminatedUnion, $ZodDiscriminatedUnionDef, $ZodDiscriminatedUnionInternals, $ZodDiscriminatedUnionParams, $ZodE164, $ZodE164Def, $ZodE164Internals, $ZodE164Params, $ZodEmail, $ZodEmailDef, $ZodEmailInternals, $ZodEmailParams, $ZodEmoji, $ZodEmojiDef, $ZodEmojiInternals, $ZodEmojiParams, $ZodEncodeError, $ZodEnum, $ZodEnumDef, $ZodEnumInternals, $ZodEnumParams, $ZodError, $ZodErrorClass, $ZodErrorMap, $ZodErrorTree, $ZodExactOptional, $ZodExactOptionalDef, $ZodExactOptionalInternals, $ZodFile, $ZodFileDef, $ZodFileInternals, $ZodFileParams, $ZodFlattenedError, $ZodFormattedError, $ZodFunction, $ZodFunctionArgs, $ZodFunctionDef, $ZodFunctionIn, $ZodFunctionInternals, $ZodFunctionOut, $ZodFunctionParams, $ZodGUID, $ZodGUIDDef, $ZodGUIDInternals, $ZodGUIDParams, $ZodIBAN, $ZodIBANDef, $ZodIBANInternals, $ZodIBANParams, $ZodIPv4, $ZodIPv4Def, $ZodIPv4Internals, $ZodIPv4Params, $ZodIPv6, $ZodIPv6Def, $ZodIPv6Internals, $ZodIPv6Params, $ZodISODate, $ZodISODateDef, $ZodISODateInternals, $ZodISODateParams, $ZodISODateTime, $ZodISODateTimeDef, $ZodISODateTimeInternals, $ZodISODateTimeParams, $ZodISODuration, $ZodISODurationDef, $ZodISODurationInternals, $ZodISODurationParams, $ZodISOTime, $ZodISOTimeDef, $ZodISOTimeInternals, $ZodISOTimeParams, $ZodInternalIssue, $ZodIntersection, $ZodIntersectionDef, $ZodIntersectionInternals, $ZodIntersectionParams, $ZodInvalidTypeExpected, $ZodIssue, $ZodIssueBase, $ZodIssueCode, $ZodIssueCustom, $ZodIssueInvalidElement, $ZodIssueInvalidKey, $ZodIssueInvalidStringFormat, $ZodIssueInvalidType, $ZodIssueInvalidUnion, $ZodIssueInvalidValue, $ZodIssueNotMultipleOf, $ZodIssueStringCommonFormats, $ZodIssueStringEndsWith, $ZodIssueStringIncludes, $ZodIssueStringInvalidJWT, $ZodIssueStringInvalidRegex, $ZodIssueStringStartsWith, $ZodIssueTooBig, $ZodIssueTooSmall, $ZodIssueUnrecognizedKeys, $ZodJWT, $ZodJWTDef, $ZodJWTInternals, $ZodJWTParams, $ZodKSUID, $ZodKSUIDDef, $ZodKSUIDInternals, $ZodKSUIDParams, $ZodLazy, $ZodLazyDef, $ZodLazyInternals, $ZodLazyParams, $ZodLiteral, $ZodLiteralDef, $ZodLiteralInternals, $ZodLiteralParams, $ZodLooseShape, $ZodMAC, $ZodMACDef, $ZodMACInternals, $ZodMACParams, $ZodMap, $ZodMapDef, $ZodMapInternals, $ZodMapParams, $ZodMemoizer, $ZodNaN, $ZodNaNDef, $ZodNaNInternals, $ZodNaNParams, $ZodNanoID, $ZodNanoIDDef, $ZodNanoIDInternals, $ZodNanoIDParams, $ZodNarrow, $ZodNever, $ZodNeverDef, $ZodNeverInternals, $ZodNeverParams, $ZodNonOptional, $ZodNonOptionalDef, $ZodNonOptionalInternals, $ZodNonOptionalParams, $ZodNull, $ZodNullDef, $ZodNullInternals, $ZodNullParams, $ZodNullable, $ZodNullableDef, $ZodNullableInternals, $ZodNullableParams, $ZodNumber, $ZodNumberDef, $ZodNumberFormat, $ZodNumberFormatDef, $ZodNumberFormatInternals, $ZodNumberFormatParams, $ZodNumberFormats, $ZodNumberInternals, $ZodNumberParams, $ZodObject, $ZodObjectConfig, $ZodObjectDef, $ZodObjectInternals, $ZodObjectJIT, $ZodObjectParams, $ZodOptional, $ZodOptionalDef, $ZodOptionalInternals, $ZodOptionalParams, $ZodPipe, $ZodPipeDef, $ZodPipeInternals, $ZodPipeParams, $ZodPrefault, $ZodPrefaultDef, $ZodPrefaultInternals, $ZodPreprocess, $ZodPreprocessDef, $ZodPreprocessInternals, $ZodPromise, $ZodPromiseDef, $ZodPromiseInternals, $ZodPromiseParams, $ZodRawIssue, $ZodReadonly, $ZodReadonlyDef, $ZodReadonlyInternals, $ZodReadonlyParams, $ZodRealError, $ZodRecord, $ZodRecordDef, $ZodRecordInternals, $ZodRecordKey, $ZodRecordParams, $ZodRegistry, $ZodSet, $ZodSetDef, $ZodSetInternals, $ZodSetParams, $ZodShape, $ZodStandardSchema, $ZodString, $ZodStringBoolParams, $ZodStringDef, $ZodStringFormat, $ZodStringFormatChecks, $ZodStringFormatDef, $ZodStringFormatInternals, $ZodStringFormatIssues, $ZodStringFormatParams, $ZodStringFormatTypes, $ZodStringFormats, $ZodStringInternals, $ZodStringParams, $ZodSuccess, $ZodSuccessDef, $ZodSuccessInternals, $ZodSuccessParams, $ZodSuperRefineIssue, $ZodSuperRefineParams, $ZodSymbol, $ZodSymbolDef, $ZodSymbolInternals, $ZodSymbolParams, $ZodTemplateLiteral, $ZodTemplateLiteralDef, $ZodTemplateLiteralInternals, $ZodTemplateLiteralParams, $ZodTemplateLiteralPart, $ZodTransform, $ZodTransformDef, $ZodTransformInternals, $ZodTransformParams, $ZodTuple, $ZodTupleDef, $ZodTupleInternals, $ZodTupleParams, $ZodType, $ZodTypeDef, $ZodTypeDiscriminable, $ZodTypeDiscriminableInternals, $ZodTypeInternals, $ZodTypes, $ZodULID, $ZodULIDDef, $ZodULIDInternals, $ZodULIDParams, $ZodURL, $ZodURLDef, $ZodURLInternals, $ZodURLParams, $ZodUUID, $ZodUUIDDef, $ZodUUIDInternals, $ZodUUIDParams, $ZodUUIDv4Params, $ZodUUIDv6Params, $ZodUUIDv7Params, $ZodUndefined, $ZodUndefinedDef, $ZodUndefinedInternals, $ZodUndefinedParams, $ZodUnion, $ZodUnionDef, $ZodUnionInternals, $ZodUnionParams, $ZodUnknown, $ZodUnknownDef, $ZodUnknownInternals, $ZodUnknownParams, $ZodVoid, $ZodVoidDef, $ZodVoidInternals, $ZodVoidParams, $ZodXID, $ZodXIDDef, $ZodXIDInternals, $ZodXIDParams, $ZodXor, $ZodXorInternals, $ZodXorParams, $brand, $catchall, $constructor, $constructorParams, $input, $loose, $output, $partial, $replace, $strict, $strip, CheckFn, CheckParams, CheckStringFormatParams, CheckTypeParams, CompileOptions, ConcatenateTupleOfStrings, ConvertPartsToStringTuple, Doc, File, GlobalMeta, INVALID, json_schema_d_exports as JSONSchema, JSONSchemaGenerator, JSONSchemaGeneratorParams, JSONSchemaMeta, NEVER, Params, ParseContext, ParseContextInternal, ParsePayload, ProcessParams, Processor, RegistryToJSONSchemaParams, Seen, SomeType, StringFormatParams, TimePrecision, ToJSONSchemaContext, ToJSONSchemaParams, ToTemplateLiteral, TypeParams, URL_BAD_FORMAT, URL_UNPARSEABLE, UnrepresentableHandler, ZodCompileAsyncError, ZodCompileUnsupportedError, ZodStandardJSONSchemaPayload, ZodStandardSchemaWithJSON$1 as ZodStandardSchemaWithJSON, _$ZodType, _$ZodTypeInternals, _any, _array, _base64, _base64url, _bigint, _boolean, _catch$1 as _catch, _check, _cidrv4, _cidrv6, _coercedBigint, _coercedBoolean, _coercedDate, _coercedNumber, _coercedString, _creditCard, _cuid, _cuid2, _custom, _date, _decode, _decodeAsync, _default$1 as _default, _discriminatedUnion, _e164, _email, _emoji, _encode, _encodeAsync, _endsWith, _enum$1 as _enum, _file, _float32, _float64, _gt, _gte, _guid, _iban, _includes, _int, _int32, _int64, _intersection, _ipv4, _ipv6, _isoDate, _isoDateTime, _isoDuration, _isoTime, _jwt, _ksuid, _lazy, _length, _literal, _lowercase, _lt, _lte, _mac, _map, _lte as _max, _maxLength, _maxSize, _mime, _gte as _min, _minLength, _minSize, _multipleOf, _nan, _nanoid, _nativeEnum, _negative, _never, _nonnegative, _nonoptional, _nonpositive, _normalize, _null$1 as _null, _nullable, _number, _optional, _overwrite, _parse, _parseAsync, _pipe, _positive, _promise, _properties, _property, _readonly, _record, _refine, _regex, _safeDecode, _safeDecodeAsync, _safeEncode, _safeEncodeAsync, _safeParse, _safeParseAsync, _set, _size, _slugify, _startsWith, _string, _stringFormat, _stringbool, _success, _superRefine, _symbol, _templateLiteral, _toLowerCase, _toUpperCase, _transform, _trim, _tuple, _uint32, _uint64, _ulid, _undefined$1 as _undefined, _union, _unknown, _uppercase, _url, _uuid, _uuidv4, _uuidv6, _uuidv7, _void$1 as _void, _xid, _xor, base64Charset, base64urlCharset, canParseURL, clone, compile, compileFn, config, createStandardJSONSchemaMethod, createToJSONSchemaMethod, decode$1 as decode, decodeAsync$1 as decodeAsync, describe$1 as describe, encode$1 as encode, encodeAsync$1 as encodeAsync, extractDefs, finalize, flattenError, formatError, getDiscriminatedOption, globalConfig, globalRegistry, handleUnrepresentable, output$1 as infer, initializeContext, input$1 as input, isBackEdge, isRecursiveSchema, isValidBase64, isValidBase64URL, isValidCIDRv6, isValidCreditCard, isValidIBAN, isValidIPv6, isValidJWT, index_d_exports$1 as locales, memoizer, mergeValues, meta$1 as meta, output$1 as output, parse$1 as parse, parseAsync$1 as parseAsync, parseURLObject, prettifyError, processSchema as process, processSchema, regexes_d_exports as regexes, registry, safeDecode$1 as safeDecode, safeDecodeAsync$1 as safeDecodeAsync, safeEncode$1 as safeEncode, safeEncodeAsync$1 as safeEncodeAsync, safeParse$1 as safeParse, safeParseAsync$1 as safeParseAsync, standardProps, stripTabAndNewline, toDotPath, toJSONSchema, toZod, treeifyError, urlHostnameOk, urlProtocolOk, util_d_exports as util, validate, validateAsync, validateURL, version, withParser };
3355
+ }
1845
3356
  //#endregion
1846
3357
  //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/errors.d.cts
3358
+ /** @deprecated Use `z.core.$ZodIssue` from `@zod/core` instead, especially if you are building a library on top of Zod. */
3359
+ type ZodIssue = $ZodIssue;
1847
3360
  /** An Error-like class used to store Zod validation issues. */
1848
3361
  interface ZodError<T = unknown> extends $ZodError<T> {
1849
3362
  /** @deprecated Use the `z.treeifyError(err)` function instead. */
@@ -1860,8 +3373,18 @@ interface ZodError<T = unknown> extends $ZodError<T> {
1860
3373
  isEmpty: boolean;
1861
3374
  }
1862
3375
  declare const ZodError: $constructor<ZodError>;
1863
- //#endregion
1864
- //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/parse.d.cts
3376
+ declare const ZodRealError: $constructor<ZodError>;
3377
+ /** @deprecated Use `z.core.$ZodFlattenedError` instead. */
3378
+ type ZodFlattenedError<T, U = string> = $ZodFlattenedError<T, U>;
3379
+ /** @deprecated Use `z.core.$ZodFormattedError` instead. */
3380
+ type ZodFormattedError<T, U = string> = $ZodFormattedError<T, U>;
3381
+ /** @deprecated Use `z.core.$ZodErrorMap` instead. */
3382
+ type ZodErrorMap<T extends $ZodIssueBase = $ZodIssue> = $ZodErrorMap<T>;
3383
+ /** @deprecated Use `z.core.$ZodRawIssue` instead. */
3384
+ type IssueData = $ZodRawIssue;
3385
+ declare namespace parse_d_exports {
3386
+ export { ZodSafeParseError, ZodSafeParseResult, ZodSafeParseSuccess, decode, decodeAsync, encode, encodeAsync, parse, parseAsync, safeDecode, safeDecodeAsync, safeEncode, safeEncodeAsync, safeParse, safeParseAsync, validate, validateAsync };
3387
+ }
1865
3388
  type ZodSafeParseResult<T> = ZodSafeParseSuccess<T> | ZodSafeParseError<T>;
1866
3389
  type ZodSafeParseSuccess<T> = {
1867
3390
  success: true;
@@ -1873,9 +3396,40 @@ type ZodSafeParseError<T> = {
1873
3396
  data?: never;
1874
3397
  error: ZodError<T>;
1875
3398
  };
1876
- //#endregion
1877
- //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/schemas.d.cts
1878
- type ZodStandardSchemaWithJSON<T> = StandardSchemaWithJSONProps<input<T>, output<T>>;
3399
+ declare const parse: <T extends $ZodType>(schema: T, value: unknown, _ctx?: ParseContext<$ZodIssue>, _params?: {
3400
+ callee?: AnyFunc;
3401
+ Err?: $ZodErrorClass;
3402
+ }) => output$1<T>;
3403
+ declare const parseAsync: <T extends $ZodType>(schema: T, value: unknown, _ctx?: ParseContext<$ZodIssue>, _params?: {
3404
+ callee?: AnyFunc;
3405
+ Err?: $ZodErrorClass;
3406
+ }) => Promise<output$1<T>>;
3407
+ declare const safeParse: <T extends $ZodType>(schema: T, value: unknown, _ctx?: ParseContext<$ZodIssue>) => ZodSafeParseResult<output$1<T>>;
3408
+ declare const safeParseAsync: <T extends $ZodType>(schema: T, value: unknown, _ctx?: ParseContext<$ZodIssue>) => Promise<ZodSafeParseResult<output$1<T>>>;
3409
+ declare const encode: <T extends $ZodType>(schema: T, value: output$1<T>, _ctx?: ParseContext<$ZodIssue>, _params?: {
3410
+ callee?: AnyFunc;
3411
+ Err?: $ZodErrorClass;
3412
+ }) => input$1<T>;
3413
+ declare const decode: <T extends $ZodType>(schema: T, value: input$1<T>, _ctx?: ParseContext<$ZodIssue>, _params?: {
3414
+ callee?: AnyFunc;
3415
+ Err?: $ZodErrorClass;
3416
+ }) => output$1<T>;
3417
+ declare const encodeAsync: <T extends $ZodType>(schema: T, value: output$1<T>, _ctx?: ParseContext<$ZodIssue>, _params?: {
3418
+ callee?: AnyFunc;
3419
+ Err?: $ZodErrorClass;
3420
+ }) => Promise<input$1<T>>;
3421
+ declare const decodeAsync: <T extends $ZodType>(schema: T, value: input$1<T>, _ctx?: ParseContext<$ZodIssue>, _params?: {
3422
+ callee?: AnyFunc;
3423
+ Err?: $ZodErrorClass;
3424
+ }) => Promise<output$1<T>>;
3425
+ declare const safeEncode: <T extends $ZodType>(schema: T, value: output$1<T>, _ctx?: ParseContext<$ZodIssue>) => ZodSafeParseResult<input$1<T>>;
3426
+ declare const safeDecode: <T extends $ZodType>(schema: T, value: input$1<T>, _ctx?: ParseContext<$ZodIssue>) => ZodSafeParseResult<output$1<T>>;
3427
+ declare const safeEncodeAsync: <T extends $ZodType>(schema: T, value: output$1<T>, _ctx?: ParseContext<$ZodIssue>) => Promise<ZodSafeParseResult<input$1<T>>>;
3428
+ declare const safeDecodeAsync: <T extends $ZodType>(schema: T, value: input$1<T>, _ctx?: ParseContext<$ZodIssue>) => Promise<ZodSafeParseResult<output$1<T>>>;
3429
+ declare namespace schemas_d_exports {
3430
+ export { SafeExtendShape, ZodAny, ZodArray, ZodBase64, ZodBase64URL, ZodBigInt, ZodBigIntFormat, ZodBoolean, ZodCIDRv4, ZodCIDRv6, ZodCUID, ZodCUID2, ZodCatch, ZodCodec, ZodCreditCard, ZodCustom, ZodCustomStringFormat, ZodDate, ZodDefault, ZodDiscriminatedUnion, ZodE164, ZodEmail, ZodEmoji, ZodEnum, ZodExactOptional, ZodFile, ZodFloat32, ZodFloat64, ZodFunction, ZodGUID, ZodIBAN, ZodIPv4, ZodIPv6, ZodISODate, ZodISODateTime, ZodISODuration, ZodISOTime, ZodInstanceOf, ZodInt, ZodInt32, ZodInt64, ZodIntersection, ZodJSONSchema, ZodJSONSchemaInternals, ZodJWT, ZodKSUID, ZodLazy, ZodLiteral, ZodMAC, ZodMap, ZodNaN, ZodNanoID, ZodNever, ZodNonOptional, ZodNull, ZodNullable, ZodNumber, ZodNumberFormat, ZodObject, ZodOptional, ZodPipe, ZodPrefault, ZodPreprocess, ZodPromise, ZodReadonly, ZodRecord, ZodSet, ZodStandardSchemaWithJSON, ZodString, ZodStringFormat, ZodSuccess, ZodSymbol, ZodTemplateLiteral, ZodTransform, ZodTuple, ZodType, ZodUInt32, ZodUInt64, ZodULID, ZodURL, ZodUUID, ZodUndefined, ZodUnion, ZodUnknown, ZodVoid, ZodXID, ZodXor, _ZodBigInt, _ZodBoolean, _ZodDate, _ZodNumber, _ZodString, _ZodType, _default, _function, any, array, base64, base64url, bigint$1 as bigint, boolean$1 as boolean, _catch as catch, check, cidrv4, cidrv6, codec, creditCard, cuid, cuid2, currencyCode, custom, date$2 as date, describe, discriminatedUnion, e164, email, emoji, _enum as enum, exactOptional, file, float32, float64, _function as function, guid, hash, hex, hostname, httpUrl, iban, _instanceof as instanceof, int, int32, int64, intersection, invertCodec, ipv4, ipv6, json, jwt, keyof, ksuid, lazy, literal, looseObject, looseRecord, mac, map, meta, nan, nanoid, nativeEnum, never, nonoptional, _null as null, nullable, nullish, number$1 as number, object, optional, partialRecord, pipe, prefault, preprocess, promise, readonly, record, refine, set, strictObject, string$1 as string, stringFormat, stringbool, success, superRefine, symbol, templateLiteral, transform, tuple, uint32, uint64, ulid, _undefined as undefined, union, unknown, url, uuid, uuidv4, uuidv6, uuidv7, _void as void, xid, xor };
3431
+ }
3432
+ type ZodStandardSchemaWithJSON<T> = StandardSchemaWithJSONProps<input$1<T>, output$1<T>>;
1879
3433
  interface ZodType<out Output = unknown, out Input = unknown, out Internals extends $ZodTypeInternals<Output, Input> = $ZodTypeInternals<Output, Input>> extends $ZodType<Output, Input, Internals> {
1880
3434
  def: Internals["def"];
1881
3435
  type: Internals["def"]["type"];
@@ -1888,47 +3442,47 @@ interface ZodType<out Output = unknown, out Input = unknown, out Internals exten
1888
3442
  "~standard": ZodStandardSchemaWithJSON<this>;
1889
3443
  /** Converts this schema to a JSON Schema representation. */
1890
3444
  toJSONSchema(params?: ToJSONSchemaParams): ZodStandardJSONSchemaPayload<this>;
1891
- check(...checks: (CheckFn<output<this>> | $ZodCheck<output<this>>)[]): this;
1892
- with(...checks: (CheckFn<output<this>> | $ZodCheck<output<this>>)[]): this;
3445
+ check(...checks: (CheckFn<output$1<this>> | $ZodCheck<output$1<this>>)[]): this;
3446
+ with(...checks: (CheckFn<output$1<this>> | $ZodCheck<output$1<this>>)[]): this;
1893
3447
  clone(def?: Internals["def"], params?: {
1894
3448
  parent: boolean;
1895
3449
  }): this;
1896
3450
  register<R extends $ZodRegistry>(registry: R, ...meta: this extends R["_schema"] ? undefined extends R["_meta"] ? [$replace<R["_meta"], this>?] : [$replace<R["_meta"], this>] : ["Incompatible schema"]): this;
1897
3451
  brand<T extends PropertyKey = PropertyKey, Dir extends "in" | "out" | "inout" = "out">(value?: T): PropertyKey extends T ? this : $ZodBranded<this, T, Dir>;
1898
- parse(data: unknown, params?: ParseContext<$ZodIssue>): output<this>;
1899
- safeParse(data: unknown, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<output<this>>;
1900
- parseAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<output<this>>;
1901
- safeParseAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<output<this>>>;
1902
- spa: (data: unknown, params?: ParseContext<$ZodIssue>) => Promise<ZodSafeParseResult<output<this>>>;
1903
- validate(data: unknown, params?: ParseContext<$ZodIssue>): data is input<this>;
3452
+ parse(data: unknown, params?: ParseContext<$ZodIssue>): output$1<this>;
3453
+ safeParse(data: unknown, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<output$1<this>>;
3454
+ parseAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<output$1<this>>;
3455
+ safeParseAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<output$1<this>>>;
3456
+ spa: (data: unknown, params?: ParseContext<$ZodIssue>) => Promise<ZodSafeParseResult<output$1<this>>>;
3457
+ validate(data: unknown, params?: ParseContext<$ZodIssue>): data is input$1<this>;
1904
3458
  validateAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<boolean>;
1905
- encode(data: output<this>, params?: ParseContext<$ZodIssue>): input<this>;
1906
- decode(data: input<this>, params?: ParseContext<$ZodIssue>): output<this>;
1907
- encodeAsync(data: output<this>, params?: ParseContext<$ZodIssue>): Promise<input<this>>;
1908
- decodeAsync(data: input<this>, params?: ParseContext<$ZodIssue>): Promise<output<this>>;
1909
- safeEncode(data: output<this>, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<input<this>>;
1910
- safeDecode(data: input<this>, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<output<this>>;
1911
- safeEncodeAsync(data: output<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<input<this>>>;
1912
- safeDecodeAsync(data: input<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<output<this>>>;
1913
- refine<Ch extends (arg: output<this>) => unknown | Promise<unknown>>(check: Ch, params?: string | $ZodCustomParams): Ch extends ((arg: any) => arg is infer R) ? this & ZodType<R, input<this>> : this;
1914
- superRefine(refinement: (arg: output<this>, ctx: $RefinementCtx<output<this>>) => void | Promise<void>, params?: $ZodSuperRefineParams): this;
1915
- overwrite(fn: (x: output<this>) => output<this>): this;
3459
+ encode(data: output$1<this>, params?: ParseContext<$ZodIssue>): input$1<this>;
3460
+ decode(data: input$1<this>, params?: ParseContext<$ZodIssue>): output$1<this>;
3461
+ encodeAsync(data: output$1<this>, params?: ParseContext<$ZodIssue>): Promise<input$1<this>>;
3462
+ decodeAsync(data: input$1<this>, params?: ParseContext<$ZodIssue>): Promise<output$1<this>>;
3463
+ safeEncode(data: output$1<this>, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<input$1<this>>;
3464
+ safeDecode(data: input$1<this>, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<output$1<this>>;
3465
+ safeEncodeAsync(data: output$1<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<input$1<this>>>;
3466
+ safeDecodeAsync(data: input$1<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<output$1<this>>>;
3467
+ refine<Ch extends (arg: output$1<this>) => unknown | Promise<unknown>>(check: Ch, params?: string | $ZodCustomParams): Ch extends ((arg: any) => arg is infer R) ? this & ZodType<R, input$1<this>> : this;
3468
+ superRefine(refinement: (arg: output$1<this>, ctx: $RefinementCtx<output$1<this>>) => void | Promise<void>, params?: $ZodSuperRefineParams): this;
3469
+ overwrite(fn: (x: output$1<this>) => output$1<this>): this;
1916
3470
  optional(): ZodOptional<this>;
1917
3471
  exactOptional(): ZodExactOptional<this>;
1918
3472
  nonoptional(params?: string | $ZodNonOptionalParams): ZodNonOptional<this>;
1919
3473
  nullable(): ZodNullable<this>;
1920
3474
  nullish(): ZodOptional<ZodNullable<this>>;
1921
- default(def: NoUndefined<output<this>>): ZodDefault<this>;
1922
- default(def: () => NoUndefined<output<this>>): ZodDefault<this>;
1923
- prefault(def: () => input<this>): ZodPrefault<this>;
1924
- prefault(def: input<this>): ZodPrefault<this>;
3475
+ default(def: NoUndefined<output$1<this>>): ZodDefault<this>;
3476
+ default(def: () => NoUndefined<output$1<this>>): ZodDefault<this>;
3477
+ prefault(def: () => input$1<this>): ZodPrefault<this>;
3478
+ prefault(def: input$1<this>): ZodPrefault<this>;
1925
3479
  array(): ZodArray<this>;
1926
3480
  or<T extends SomeType>(option: T): ZodUnion<[this, T]>;
1927
3481
  and<T extends SomeType>(incoming: T): ZodIntersection<this, T>;
1928
- transform<NewOut>(transform: (arg: output<this>, ctx: $RefinementCtx<output<this>>) => NewOut | Promise<NewOut>): ZodPipe<this, ZodTransform<Awaited<NewOut>, output<this>>>;
1929
- catch(def: output<this>): ZodCatch<this>;
1930
- catch(def: (ctx: $ZodCatchCtx) => output<this>): ZodCatch<this>;
1931
- pipe<T extends $ZodType<any, output<this>>>(target: T | $ZodType<any, output<this>>): ZodPipe<this, T>;
3482
+ transform<NewOut>(transform: (arg: output$1<this>, ctx: $RefinementCtx<output$1<this>>) => NewOut | Promise<NewOut>): ZodPipe<this, ZodTransform<Awaited<NewOut>, output$1<this>>>;
3483
+ catch(def: output$1<this>): ZodCatch<this>;
3484
+ catch(def: (ctx: $ZodCatchCtx) => output$1<this>): ZodCatch<this>;
3485
+ pipe<T extends $ZodType<any, output$1<this>>>(target: T | $ZodType<any, output$1<this>>): ZodPipe<this, T>;
1932
3486
  readonly(): ZodReadonly<this>;
1933
3487
  /** Returns a new instance that has been registered in `z.globalRegistry` with the specified description */
1934
3488
  describe(description: string): this;
@@ -2041,6 +3595,169 @@ interface ZodString extends _ZodString<$ZodStringInternals<string>> {
2041
3595
  duration(params?: string | $ZodCheckISODurationParams): this;
2042
3596
  }
2043
3597
  declare const ZodString: $constructor<ZodString>;
3598
+ declare function string$1(params?: string | $ZodStringParams): ZodString;
3599
+ declare function string$1<T extends string>(params?: string | $ZodStringParams): $ZodType<T, T>;
3600
+ interface ZodStringFormat<Format extends string = string> extends _ZodString<$ZodStringFormatInternals<Format>> {}
3601
+ declare const ZodStringFormat: $constructor<ZodStringFormat>;
3602
+ interface ZodISODateTime extends ZodStringFormat {
3603
+ _zod: $ZodISODateTimeInternals;
3604
+ }
3605
+ declare const ZodISODateTime: $constructor<ZodISODateTime>;
3606
+ interface ZodISODate extends ZodStringFormat {
3607
+ _zod: $ZodISODateInternals;
3608
+ }
3609
+ declare const ZodISODate: $constructor<ZodISODate>;
3610
+ interface ZodISOTime extends ZodStringFormat {
3611
+ _zod: $ZodISOTimeInternals;
3612
+ }
3613
+ declare const ZodISOTime: $constructor<ZodISOTime>;
3614
+ interface ZodISODuration extends ZodStringFormat {
3615
+ _zod: $ZodISODurationInternals;
3616
+ }
3617
+ declare const ZodISODuration: $constructor<ZodISODuration>;
3618
+ interface ZodEmail extends ZodStringFormat<"email"> {
3619
+ _zod: $ZodEmailInternals;
3620
+ }
3621
+ declare const ZodEmail: $constructor<ZodEmail>;
3622
+ declare function email(params?: string | $ZodEmailParams): ZodEmail;
3623
+ interface ZodGUID extends ZodStringFormat<"guid"> {
3624
+ _zod: $ZodGUIDInternals;
3625
+ }
3626
+ declare const ZodGUID: $constructor<ZodGUID>;
3627
+ declare function guid(params?: string | $ZodGUIDParams): ZodGUID;
3628
+ interface ZodUUID extends ZodStringFormat<"uuid"> {
3629
+ _zod: $ZodUUIDInternals;
3630
+ }
3631
+ declare const ZodUUID: $constructor<ZodUUID>;
3632
+ declare function uuid(params?: string | $ZodUUIDParams): ZodUUID;
3633
+ declare function uuidv4(params?: string | $ZodUUIDv4Params): ZodUUID;
3634
+ declare function uuidv6(params?: string | $ZodUUIDv6Params): ZodUUID;
3635
+ declare function uuidv7(params?: string | $ZodUUIDv7Params): ZodUUID;
3636
+ interface ZodURL extends ZodStringFormat<"url"> {
3637
+ _zod: $ZodURLInternals;
3638
+ }
3639
+ declare const ZodURL: $constructor<ZodURL>;
3640
+ declare function url(params?: string | $ZodURLParams): ZodURL;
3641
+ declare function httpUrl(params?: string | Omit<$ZodURLParams, "protocol" | "hostname">): ZodURL;
3642
+ interface ZodEmoji extends ZodStringFormat<"emoji"> {
3643
+ _zod: $ZodEmojiInternals;
3644
+ }
3645
+ declare const ZodEmoji: $constructor<ZodEmoji>;
3646
+ declare function emoji(params?: string | $ZodEmojiParams): ZodEmoji;
3647
+ interface ZodNanoID extends ZodStringFormat<"nanoid"> {
3648
+ _zod: $ZodNanoIDInternals;
3649
+ }
3650
+ declare const ZodNanoID: $constructor<ZodNanoID>;
3651
+ declare function nanoid(params?: string | $ZodNanoIDParams): ZodNanoID;
3652
+ /**
3653
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
3654
+ * (timestamps embedded in the id). Use {@link ZodCUID2} instead.
3655
+ * See https://github.com/paralleldrive/cuid.
3656
+ */
3657
+ interface ZodCUID extends ZodStringFormat<"cuid"> {
3658
+ _zod: $ZodCUIDInternals;
3659
+ }
3660
+ /**
3661
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
3662
+ * (timestamps embedded in the id). Use {@link ZodCUID2} instead.
3663
+ * See https://github.com/paralleldrive/cuid.
3664
+ */
3665
+ declare const ZodCUID: $constructor<ZodCUID>;
3666
+ /**
3667
+ * Validates a CUID v1 string.
3668
+ *
3669
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
3670
+ * (timestamps embedded in the id). Use {@link cuid2 | `z.cuid2()`} instead.
3671
+ * See https://github.com/paralleldrive/cuid.
3672
+ */
3673
+ declare function cuid(params?: string | $ZodCUIDParams): ZodCUID;
3674
+ interface ZodCUID2 extends ZodStringFormat<"cuid2"> {
3675
+ _zod: $ZodCUID2Internals;
3676
+ }
3677
+ declare const ZodCUID2: $constructor<ZodCUID2>;
3678
+ declare function cuid2(params?: string | $ZodCUID2Params): ZodCUID2;
3679
+ interface ZodULID extends ZodStringFormat<"ulid"> {
3680
+ _zod: $ZodULIDInternals;
3681
+ }
3682
+ declare const ZodULID: $constructor<ZodULID>;
3683
+ declare function ulid(params?: string | $ZodULIDParams): ZodULID;
3684
+ interface ZodXID extends ZodStringFormat<"xid"> {
3685
+ _zod: $ZodXIDInternals;
3686
+ }
3687
+ declare const ZodXID: $constructor<ZodXID>;
3688
+ declare function xid(params?: string | $ZodXIDParams): ZodXID;
3689
+ interface ZodKSUID extends ZodStringFormat<"ksuid"> {
3690
+ _zod: $ZodKSUIDInternals;
3691
+ }
3692
+ declare const ZodKSUID: $constructor<ZodKSUID>;
3693
+ declare function ksuid(params?: string | $ZodKSUIDParams): ZodKSUID;
3694
+ interface ZodIPv4 extends ZodStringFormat<"ipv4"> {
3695
+ _zod: $ZodIPv4Internals;
3696
+ }
3697
+ declare const ZodIPv4: $constructor<ZodIPv4>;
3698
+ declare function ipv4(params?: string | $ZodIPv4Params): ZodIPv4;
3699
+ interface ZodMAC extends ZodStringFormat<"mac"> {
3700
+ _zod: $ZodMACInternals;
3701
+ }
3702
+ declare const ZodMAC: $constructor<ZodMAC>;
3703
+ declare function mac(params?: string | $ZodMACParams): ZodMAC;
3704
+ interface ZodIPv6 extends ZodStringFormat<"ipv6"> {
3705
+ _zod: $ZodIPv6Internals;
3706
+ }
3707
+ declare const ZodIPv6: $constructor<ZodIPv6>;
3708
+ declare function ipv6(params?: string | $ZodIPv6Params): ZodIPv6;
3709
+ interface ZodCIDRv4 extends ZodStringFormat<"cidrv4"> {
3710
+ _zod: $ZodCIDRv4Internals;
3711
+ }
3712
+ declare const ZodCIDRv4: $constructor<ZodCIDRv4>;
3713
+ declare function cidrv4(params?: string | $ZodCIDRv4Params): ZodCIDRv4;
3714
+ interface ZodCIDRv6 extends ZodStringFormat<"cidrv6"> {
3715
+ _zod: $ZodCIDRv6Internals;
3716
+ }
3717
+ declare const ZodCIDRv6: $constructor<ZodCIDRv6>;
3718
+ declare function cidrv6(params?: string | $ZodCIDRv6Params): ZodCIDRv6;
3719
+ interface ZodBase64 extends ZodStringFormat<"base64"> {
3720
+ _zod: $ZodBase64Internals;
3721
+ }
3722
+ declare const ZodBase64: $constructor<ZodBase64>;
3723
+ declare function base64(params?: string | $ZodBase64Params): ZodBase64;
3724
+ interface ZodBase64URL extends ZodStringFormat<"base64url"> {
3725
+ _zod: $ZodBase64URLInternals;
3726
+ }
3727
+ declare const ZodBase64URL: $constructor<ZodBase64URL>;
3728
+ declare function base64url(params?: string | $ZodBase64URLParams): ZodBase64URL;
3729
+ interface ZodE164 extends ZodStringFormat<"e164"> {
3730
+ _zod: $ZodE164Internals;
3731
+ }
3732
+ declare const ZodE164: $constructor<ZodE164>;
3733
+ declare function e164(params?: string | $ZodE164Params): ZodE164;
3734
+ interface ZodCreditCard extends ZodStringFormat<"credit_card"> {
3735
+ _zod: $ZodCreditCardInternals;
3736
+ }
3737
+ declare const ZodCreditCard: $constructor<ZodCreditCard>;
3738
+ declare function creditCard(params?: string | $ZodCreditCardParams): ZodCreditCard;
3739
+ interface ZodIBAN extends ZodStringFormat<"iban"> {
3740
+ _zod: $ZodIBANInternals;
3741
+ }
3742
+ declare const ZodIBAN: $constructor<ZodIBAN>;
3743
+ declare function iban(params?: string | $ZodIBANParams): ZodIBAN;
3744
+ interface ZodJWT extends ZodStringFormat<"jwt"> {
3745
+ _zod: $ZodJWTInternals;
3746
+ }
3747
+ declare const ZodJWT: $constructor<ZodJWT>;
3748
+ declare function jwt(params?: string | $ZodJWTParams): ZodJWT;
3749
+ interface ZodCustomStringFormat<Format extends string = string> extends ZodStringFormat<Format>, $ZodCustomStringFormat<Format> {
3750
+ _zod: $ZodCustomStringFormatInternals<Format>;
3751
+ "~standard": ZodStandardSchemaWithJSON<this>;
3752
+ }
3753
+ declare const ZodCustomStringFormat: $constructor<ZodCustomStringFormat>;
3754
+ declare function stringFormat<Format extends string>(format: Format, fnOrRegex: ((arg: string) => MaybeAsync<unknown>) | RegExp, _params?: string | $ZodStringFormatParams): ZodCustomStringFormat<Format>;
3755
+ declare function hostname(_params?: string | $ZodStringFormatParams): ZodCustomStringFormat<"hostname">;
3756
+ declare function hex(_params?: string | $ZodStringFormatParams): ZodCustomStringFormat<"hex">;
3757
+ declare function currencyCode(_params?: string | $ZodStringFormatParams): ZodCustomStringFormat<"currency_code">;
3758
+ declare function hash<Alg extends HashAlgorithm, Enc extends HashEncoding = "hex">(alg: Alg, params?: {
3759
+ enc?: Enc;
3760
+ } & $ZodStringFormatParams): ZodCustomStringFormat<`${Alg}_${Enc}`>;
2044
3761
  interface _ZodNumber<Internals extends $ZodNumberInternals = $ZodNumberInternals> extends _ZodType<Internals> {
2045
3762
  gt(value: number, params?: string | $ZodCheckGreaterThanParams): this;
2046
3763
  /** Identical to .min() */
@@ -2073,9 +3790,86 @@ interface _ZodNumber<Internals extends $ZodNumberInternals = $ZodNumberInternals
2073
3790
  }
2074
3791
  interface ZodNumber extends _ZodNumber<$ZodNumberInternals<number>> {}
2075
3792
  declare const ZodNumber: $constructor<ZodNumber>;
3793
+ declare function number$1(params?: string | $ZodNumberParams): ZodNumber;
3794
+ interface ZodNumberFormat<Format extends $ZodNumberFormats = $ZodNumberFormats> extends ZodNumber {
3795
+ _zod: $ZodNumberFormatInternals<Format>;
3796
+ }
3797
+ declare const ZodNumberFormat: $constructor<ZodNumberFormat>;
3798
+ interface ZodInt extends ZodNumberFormat<"safeint"> {}
3799
+ declare function int(params?: string | $ZodCheckNumberFormatParams): ZodInt;
3800
+ interface ZodFloat32 extends ZodNumberFormat<"float32"> {}
3801
+ declare function float32(params?: string | $ZodCheckNumberFormatParams): ZodFloat32;
3802
+ interface ZodFloat64 extends ZodNumberFormat<"float64"> {}
3803
+ declare function float64(params?: string | $ZodCheckNumberFormatParams): ZodFloat64;
3804
+ interface ZodInt32 extends ZodNumberFormat<"int32"> {}
3805
+ declare function int32(params?: string | $ZodCheckNumberFormatParams): ZodInt32;
3806
+ interface ZodUInt32 extends ZodNumberFormat<"uint32"> {}
3807
+ declare function uint32(params?: string | $ZodCheckNumberFormatParams): ZodUInt32;
2076
3808
  interface _ZodBoolean<T extends $ZodBooleanInternals = $ZodBooleanInternals> extends _ZodType<T> {}
2077
3809
  interface ZodBoolean extends _ZodBoolean<$ZodBooleanInternals<boolean>> {}
2078
3810
  declare const ZodBoolean: $constructor<ZodBoolean>;
3811
+ declare function boolean$1(params?: string | $ZodBooleanParams): ZodBoolean;
3812
+ interface _ZodBigInt<T extends $ZodBigIntInternals = $ZodBigIntInternals> extends _ZodType<T> {
3813
+ gte(value: bigint, params?: string | $ZodCheckGreaterThanParams): this;
3814
+ /** Alias of `.gte()` */
3815
+ min(value: bigint, params?: string | $ZodCheckGreaterThanParams): this;
3816
+ gt(value: bigint, params?: string | $ZodCheckGreaterThanParams): this;
3817
+ /** Alias of `.lte()` */
3818
+ lte(value: bigint, params?: string | $ZodCheckLessThanParams): this;
3819
+ max(value: bigint, params?: string | $ZodCheckLessThanParams): this;
3820
+ lt(value: bigint, params?: string | $ZodCheckLessThanParams): this;
3821
+ positive(params?: string | $ZodCheckGreaterThanParams): this;
3822
+ negative(params?: string | $ZodCheckLessThanParams): this;
3823
+ nonpositive(params?: string | $ZodCheckLessThanParams): this;
3824
+ nonnegative(params?: string | $ZodCheckGreaterThanParams): this;
3825
+ multipleOf(value: bigint, params?: string | $ZodCheckMultipleOfParams): this;
3826
+ minValue: bigint | null;
3827
+ maxValue: bigint | null;
3828
+ format: string | null;
3829
+ }
3830
+ interface ZodBigInt extends _ZodBigInt<$ZodBigIntInternals<bigint>> {}
3831
+ declare const ZodBigInt: $constructor<ZodBigInt>;
3832
+ declare function bigint$1(params?: string | $ZodBigIntParams): ZodBigInt;
3833
+ interface ZodBigIntFormat<Format extends $ZodBigIntFormats = $ZodBigIntFormats> extends ZodBigInt {
3834
+ _zod: $ZodBigIntFormatInternals<Format>;
3835
+ }
3836
+ declare const ZodBigIntFormat: $constructor<ZodBigIntFormat>;
3837
+ interface ZodInt64 extends ZodBigIntFormat<"int64"> {}
3838
+ declare function int64(params?: string | $ZodBigIntFormatParams): ZodInt64;
3839
+ interface ZodUInt64 extends ZodBigIntFormat<"uint64"> {}
3840
+ declare function uint64(params?: string | $ZodBigIntFormatParams): ZodUInt64;
3841
+ interface ZodSymbol extends _ZodType<$ZodSymbolInternals> {}
3842
+ declare const ZodSymbol: $constructor<ZodSymbol>;
3843
+ declare function symbol(params?: string | $ZodSymbolParams): ZodSymbol;
3844
+ interface ZodUndefined extends _ZodType<$ZodUndefinedInternals> {}
3845
+ declare const ZodUndefined: $constructor<ZodUndefined>;
3846
+ declare function _undefined(params?: string | $ZodUndefinedParams): ZodUndefined;
3847
+ interface ZodNull extends _ZodType<$ZodNullInternals> {}
3848
+ declare const ZodNull: $constructor<ZodNull>;
3849
+ declare function _null(params?: string | $ZodNullParams): ZodNull;
3850
+ interface ZodAny extends _ZodType<$ZodAnyInternals> {}
3851
+ declare const ZodAny: $constructor<ZodAny>;
3852
+ declare function any(): ZodAny;
3853
+ interface ZodUnknown extends _ZodType<$ZodUnknownInternals> {}
3854
+ declare const ZodUnknown: $constructor<ZodUnknown>;
3855
+ declare function unknown(): ZodUnknown;
3856
+ interface ZodNever extends _ZodType<$ZodNeverInternals> {}
3857
+ declare const ZodNever: $constructor<ZodNever>;
3858
+ declare function never(params?: string | $ZodNeverParams): ZodNever;
3859
+ interface ZodVoid extends _ZodType<$ZodVoidInternals> {}
3860
+ declare const ZodVoid: $constructor<ZodVoid>;
3861
+ declare function _void(params?: string | $ZodVoidParams): ZodVoid;
3862
+ interface _ZodDate<T extends $ZodDateInternals = $ZodDateInternals> extends _ZodType<T> {
3863
+ min(value: number | Date, params?: string | $ZodCheckGreaterThanParams): this;
3864
+ max(value: number | Date, params?: string | $ZodCheckLessThanParams): this;
3865
+ /** @deprecated Not recommended. */
3866
+ minDate: Date | null;
3867
+ /** @deprecated Not recommended. */
3868
+ maxDate: Date | null;
3869
+ }
3870
+ interface ZodDate extends _ZodDate<$ZodDateInternals<Date>> {}
3871
+ declare const ZodDate: $constructor<ZodDate>;
3872
+ declare function date$2(params?: string | $ZodDateParams): ZodDate;
2079
3873
  interface ZodArray<T extends SomeType = $ZodType> extends _ZodType<$ZodArrayInternals<T>>, $ZodArray<T> {
2080
3874
  element: T;
2081
3875
  min(minLength: number, params?: string | $ZodCheckMinLengthParams): this;
@@ -2086,7 +3880,9 @@ interface ZodArray<T extends SomeType = $ZodType> extends _ZodType<$ZodArrayInte
2086
3880
  "~standard": ZodStandardSchemaWithJSON<this>;
2087
3881
  }
2088
3882
  declare const ZodArray: $constructor<ZodArray>;
2089
- type SafeExtendShape<Base extends $ZodShape, Ext extends $ZodLooseShape> = { [K in keyof Ext]: K extends keyof Base ? output<Ext[K]> extends output<Base[K]> ? input<Ext[K]> extends input<Base[K]> ? Ext[K] : never : never : Ext[K]; };
3883
+ declare function array<T extends SomeType>(element: T, params?: string | $ZodArrayParams): ZodArray<T>;
3884
+ declare function keyof<T extends ZodObject>(schema: T): ZodEnum<KeysEnum<T["_zod"]["output"]>>;
3885
+ type SafeExtendShape<Base extends $ZodShape, Ext extends $ZodLooseShape> = { [K in keyof Ext]: K extends keyof Base ? output$1<Ext[K]> extends output$1<Base[K]> ? input$1<Ext[K]> extends input$1<Base[K]> ? Ext[K] : never : never : Ext[K]; };
2090
3886
  interface ZodObject<
2091
3887
  /** @ts-ignore Cast variance */
2092
3888
  out Shape extends $ZodShape = $ZodLooseShape, out Config extends $ZodObjectConfig = $strip> extends _ZodType<$ZodObjectInternals<Shape, Config>>, $ZodObject<Shape, Config> {
@@ -2119,21 +3915,74 @@ out Shape extends $ZodShape = $ZodLooseShape, out Config extends $ZodObjectConfi
2119
3915
  required<M extends Mask<keyof Shape>>(mask: M & Record<Exclude<keyof M, keyof Shape>, never>): ZodObject<{ -readonly [k in keyof Shape]: k extends keyof M ? ZodNonOptional<Shape[k]> : Shape[k]; }, Config>;
2120
3916
  }
2121
3917
  declare const ZodObject: $constructor<ZodObject>;
3918
+ declare function object<T extends $ZodLooseShape = Partial<Record<never, SomeType>>>(shape?: T, params?: string | $ZodObjectParams): ZodObject<Writeable<T>, $strip>;
3919
+ declare function strictObject<T extends $ZodLooseShape>(shape: T, params?: string | $ZodObjectParams): ZodObject<Writeable<T>, $strict>;
3920
+ declare function looseObject<T extends $ZodLooseShape>(shape: T, params?: string | $ZodObjectParams): ZodObject<Writeable<T>, $loose>;
2122
3921
  interface ZodUnion<T extends readonly SomeType[] = readonly $ZodType[]> extends _ZodType<$ZodUnionInternals<T>>, $ZodUnion<T> {
2123
3922
  "~standard": ZodStandardSchemaWithJSON<this>;
2124
3923
  options: T;
2125
3924
  }
2126
3925
  declare const ZodUnion: $constructor<ZodUnion>;
3926
+ declare function union<const T extends readonly SomeType[]>(options: T, params?: string | $ZodUnionParams): ZodUnion<T>;
3927
+ interface ZodXor<T extends readonly SomeType[] = readonly $ZodType[]> extends _ZodType<$ZodXorInternals<T>>, $ZodXor<T> {
3928
+ "~standard": ZodStandardSchemaWithJSON<this>;
3929
+ options: T;
3930
+ }
3931
+ declare const ZodXor: $constructor<ZodXor>;
3932
+ /** Creates an exclusive union (XOR) where exactly one option must match.
3933
+ * Unlike regular unions that succeed when any option matches, xor fails if
3934
+ * zero or more than one option matches the input. */
3935
+ declare function xor<const T extends readonly SomeType[]>(options: T, params?: string | $ZodXorParams): ZodXor<T>;
2127
3936
  interface ZodDiscriminatedUnion<Options extends readonly SomeType[] = readonly $ZodType[], Disc extends string = string> extends ZodUnion<Options>, $ZodDiscriminatedUnion<Options, Disc> {
2128
3937
  "~standard": ZodStandardSchemaWithJSON<this>;
2129
3938
  _zod: $ZodDiscriminatedUnionInternals<Options, Disc>;
2130
3939
  def: $ZodDiscriminatedUnionDef<Options, Disc>;
2131
3940
  }
2132
3941
  declare const ZodDiscriminatedUnion: $constructor<ZodDiscriminatedUnion>;
3942
+ declare function discriminatedUnion<Types extends readonly [$ZodTypeDiscriminable, ...$ZodTypeDiscriminable[]], Disc extends string>(discriminator: Disc, options: Types, params?: string | $ZodDiscriminatedUnionParams): ZodDiscriminatedUnion<Types, Disc>;
2133
3943
  interface ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _ZodType<$ZodIntersectionInternals<A, B>>, $ZodIntersection<A, B> {
2134
3944
  "~standard": ZodStandardSchemaWithJSON<this>;
2135
3945
  }
2136
3946
  declare const ZodIntersection: $constructor<ZodIntersection>;
3947
+ declare function intersection<T extends SomeType, U extends SomeType>(left: T, right: U): ZodIntersection<T, U>;
3948
+ interface ZodTuple<T extends TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends _ZodType<$ZodTupleInternals<T, Rest>>, $ZodTuple<T, Rest> {
3949
+ "~standard": ZodStandardSchemaWithJSON<this>;
3950
+ rest<Rest extends SomeType = $ZodType>(rest: Rest): ZodTuple<T, Rest>;
3951
+ partial(): ZodTuple<{ -readonly [k in keyof T]: ZodOptional<T[k]>; }, Rest>;
3952
+ }
3953
+ declare const ZodTuple: $constructor<ZodTuple>;
3954
+ declare function tuple<T extends readonly [SomeType, ...SomeType[]]>(items: T, params?: string | $ZodTupleParams): ZodTuple<T, null>;
3955
+ declare function tuple<T extends readonly [SomeType, ...SomeType[]], Rest extends SomeType>(items: T, rest: Rest, params?: string | $ZodTupleParams): ZodTuple<T, Rest>;
3956
+ declare function tuple(items: [], params?: string | $ZodTupleParams): ZodTuple<[], null>;
3957
+ interface ZodRecord<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends _ZodType<$ZodRecordInternals<Key, Value>>, $ZodRecord<Key, Value> {
3958
+ "~standard": ZodStandardSchemaWithJSON<this>;
3959
+ keyType: Key;
3960
+ valueType: Value;
3961
+ }
3962
+ declare const ZodRecord: $constructor<ZodRecord>;
3963
+ declare function record<Key extends $ZodRecordKey, Value extends SomeType>(keyType: Key, valueType: Value, params?: string | $ZodRecordParams): ZodRecord<Key, Value>;
3964
+ declare function partialRecord<Key extends $ZodRecordKey, Value extends SomeType>(keyType: Key, valueType: Value, params?: string | $ZodRecordParams): ZodRecord<Key & $partial, Value>;
3965
+ declare function looseRecord<Key extends $ZodRecordKey, Value extends SomeType>(keyType: Key, valueType: Value, params?: string | $ZodRecordParams): ZodRecord<Key, Value>;
3966
+ interface ZodMap<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends _ZodType<$ZodMapInternals<Key, Value>>, $ZodMap<Key, Value> {
3967
+ "~standard": ZodStandardSchemaWithJSON<this>;
3968
+ keyType: Key;
3969
+ valueType: Value;
3970
+ min(minSize: number, params?: string | $ZodCheckMinSizeParams): this;
3971
+ nonempty(params?: string | $ZodCheckMinSizeParams): this;
3972
+ max(maxSize: number, params?: string | $ZodCheckMaxSizeParams): this;
3973
+ size(size: number, params?: string | $ZodCheckSizeEqualsParams): this;
3974
+ }
3975
+ declare const ZodMap: $constructor<ZodMap>;
3976
+ declare function map<Key extends SomeType, Value extends SomeType>(keyType: Key, valueType: Value, params?: string | $ZodMapParams): ZodMap<Key, Value>;
3977
+ interface ZodSet<T extends SomeType = $ZodType> extends _ZodType<$ZodSetInternals<T>>, $ZodSet<T> {
3978
+ "~standard": ZodStandardSchemaWithJSON<this>;
3979
+ min(minSize: number, params?: string | $ZodCheckMinSizeParams): this;
3980
+ nonempty(params?: string | $ZodCheckMinSizeParams): this;
3981
+ max(maxSize: number, params?: string | $ZodCheckMaxSizeParams): this;
3982
+ size(size: number, params?: string | $ZodCheckSizeEqualsParams): this;
3983
+ }
3984
+ declare const ZodSet: $constructor<ZodSet>;
3985
+ declare function set<Value extends SomeType>(valueType: Value, params?: string | $ZodSetParams): ZodSet<Value>;
2137
3986
  interface ZodEnum<
2138
3987
  /** @ts-ignore Cast variance */
2139
3988
  out T extends EnumLike = EnumLike> extends _ZodType<$ZodEnumInternals<T>>, $ZodEnum<T> {
@@ -2144,6 +3993,16 @@ out T extends EnumLike = EnumLike> extends _ZodType<$ZodEnumInternals<T>>, $ZodE
2144
3993
  exclude<const U extends readonly (keyof T)[]>(values: U, params?: string | $ZodEnumParams): ZodEnum<Flatten<Omit<T, U[number]>>>;
2145
3994
  }
2146
3995
  declare const ZodEnum: $constructor<ZodEnum>;
3996
+ declare function _enum<const T extends readonly string[]>(values: T, params?: string | $ZodEnumParams): ZodEnum<ToEnum<T[number]>>;
3997
+ declare function _enum<const T extends EnumLike>(entries: T, params?: string | $ZodEnumParams): ZodEnum<T>;
3998
+ /** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead.
3999
+ *
4000
+ * ```ts
4001
+ * enum Colors { red, green, blue }
4002
+ * z.enum(Colors);
4003
+ * ```
4004
+ */
4005
+ declare function nativeEnum<T extends EnumLike>(entries: T, params?: string | $ZodEnumParams): ZodEnum<T>;
2147
4006
  interface ZodLiteral<T extends Literal = Literal> extends _ZodType<$ZodLiteralInternals<T>>, $ZodLiteral<T> {
2148
4007
  "~standard": ZodStandardSchemaWithJSON<this>;
2149
4008
  values: Set<T>;
@@ -2151,25 +4010,40 @@ interface ZodLiteral<T extends Literal = Literal> extends _ZodType<$ZodLiteralIn
2151
4010
  value: T;
2152
4011
  }
2153
4012
  declare const ZodLiteral: $constructor<ZodLiteral>;
4013
+ declare function literal<const T extends ReadonlyArray<Literal>>(value: T, params?: string | $ZodLiteralParams): ZodLiteral<T[number]>;
4014
+ declare function literal<const T extends Literal>(value: T, params?: string | $ZodLiteralParams): ZodLiteral<T>;
4015
+ interface ZodFile extends _ZodType<$ZodFileInternals>, $ZodFile {
4016
+ "~standard": ZodStandardSchemaWithJSON<this>;
4017
+ min(size: number, params?: string | $ZodCheckMinSizeParams): this;
4018
+ max(size: number, params?: string | $ZodCheckMaxSizeParams): this;
4019
+ mime(types: MimeTypes | Array<MimeTypes>, params?: string | $ZodCheckMimeTypeParams): this;
4020
+ }
4021
+ declare const ZodFile: $constructor<ZodFile>;
4022
+ declare function file(params?: string | $ZodFileParams): ZodFile;
2154
4023
  interface ZodTransform<O = unknown, I = unknown> extends _ZodType<$ZodTransformInternals<O, I>>, $ZodTransform<O, I> {
2155
4024
  "~standard": ZodStandardSchemaWithJSON<this>;
2156
4025
  }
2157
4026
  declare const ZodTransform: $constructor<ZodTransform>;
4027
+ declare function transform<I = unknown, O = I>(fn: (input: I, ctx: $RefinementCtx) => O): ZodTransform<Awaited<O>, I>;
2158
4028
  interface ZodOptional<T extends SomeType = $ZodType> extends _ZodType<$ZodOptionalInternals<T>>, $ZodOptional<T> {
2159
4029
  "~standard": ZodStandardSchemaWithJSON<this>;
2160
4030
  unwrap(): T;
2161
4031
  }
2162
4032
  declare const ZodOptional: $constructor<ZodOptional>;
4033
+ declare function optional<T extends SomeType>(innerType: T): ZodOptional<T>;
2163
4034
  interface ZodExactOptional<T extends SomeType = $ZodType> extends _ZodType<$ZodExactOptionalInternals<T>>, $ZodExactOptional<T> {
2164
4035
  "~standard": ZodStandardSchemaWithJSON<this>;
2165
4036
  unwrap(): T;
2166
4037
  }
2167
4038
  declare const ZodExactOptional: $constructor<ZodExactOptional>;
4039
+ declare function exactOptional<T extends SomeType>(innerType: T): ZodExactOptional<T>;
2168
4040
  interface ZodNullable<T extends SomeType = $ZodType> extends _ZodType<$ZodNullableInternals<T>>, $ZodNullable<T> {
2169
4041
  "~standard": ZodStandardSchemaWithJSON<this>;
2170
4042
  unwrap(): T;
2171
4043
  }
2172
4044
  declare const ZodNullable: $constructor<ZodNullable>;
4045
+ declare function nullable<T extends SomeType>(innerType: T): ZodNullable<T>;
4046
+ declare function nullish<T extends SomeType>(innerType: T): ZodOptional<ZodNullable<T>>;
2173
4047
  interface ZodDefault<T extends SomeType = $ZodType> extends _ZodType<$ZodDefaultInternals<T>>, $ZodDefault<T> {
2174
4048
  "~standard": ZodStandardSchemaWithJSON<this>;
2175
4049
  unwrap(): T;
@@ -2177,16 +4051,25 @@ interface ZodDefault<T extends SomeType = $ZodType> extends _ZodType<$ZodDefault
2177
4051
  removeDefault(): T;
2178
4052
  }
2179
4053
  declare const ZodDefault: $constructor<ZodDefault>;
4054
+ declare function _default<T extends SomeType>(innerType: T, defaultValue: NoUndefined<output$1<T>> | (() => NoUndefined<output$1<T>>)): ZodDefault<T>;
2180
4055
  interface ZodPrefault<T extends SomeType = $ZodType> extends _ZodType<$ZodPrefaultInternals<T>>, $ZodPrefault<T> {
2181
4056
  "~standard": ZodStandardSchemaWithJSON<this>;
2182
4057
  unwrap(): T;
2183
4058
  }
2184
4059
  declare const ZodPrefault: $constructor<ZodPrefault>;
4060
+ declare function prefault<T extends SomeType>(innerType: T, defaultValue: input$1<T> | (() => input$1<T>)): ZodPrefault<T>;
2185
4061
  interface ZodNonOptional<T extends SomeType = $ZodType> extends _ZodType<$ZodNonOptionalInternals<T>>, $ZodNonOptional<T> {
2186
4062
  "~standard": ZodStandardSchemaWithJSON<this>;
2187
4063
  unwrap(): T;
2188
4064
  }
2189
4065
  declare const ZodNonOptional: $constructor<ZodNonOptional>;
4066
+ declare function nonoptional<T extends SomeType>(innerType: T, params?: string | $ZodNonOptionalParams): ZodNonOptional<T>;
4067
+ interface ZodSuccess<T extends SomeType = $ZodType> extends _ZodType<$ZodSuccessInternals<T>>, $ZodSuccess<T> {
4068
+ "~standard": ZodStandardSchemaWithJSON<this>;
4069
+ unwrap(): T;
4070
+ }
4071
+ declare const ZodSuccess: $constructor<ZodSuccess>;
4072
+ declare function success<T extends SomeType>(innerType: T): ZodSuccess<T>;
2190
4073
  interface ZodCatch<T extends SomeType = $ZodType> extends _ZodType<$ZodCatchInternals<T>>, $ZodCatch<T> {
2191
4074
  "~standard": ZodStandardSchemaWithJSON<this>;
2192
4075
  unwrap(): T;
@@ -2194,17 +4077,207 @@ interface ZodCatch<T extends SomeType = $ZodType> extends _ZodType<$ZodCatchInte
2194
4077
  removeCatch(): T;
2195
4078
  }
2196
4079
  declare const ZodCatch: $constructor<ZodCatch>;
4080
+ declare function _catch<T extends SomeType>(innerType: T, catchValue: output$1<T> | ((ctx: $ZodCatchCtx) => output$1<T>)): ZodCatch<T>;
4081
+ interface ZodNaN extends _ZodType<$ZodNaNInternals>, $ZodNaN {
4082
+ "~standard": ZodStandardSchemaWithJSON<this>;
4083
+ }
4084
+ declare const ZodNaN: $constructor<ZodNaN>;
4085
+ declare function nan(params?: string | $ZodNaNParams): ZodNaN;
2197
4086
  interface ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _ZodType<$ZodPipeInternals<A, B>>, $ZodPipe<A, B> {
2198
4087
  "~standard": ZodStandardSchemaWithJSON<this>;
2199
4088
  in: A;
2200
4089
  out: B;
2201
4090
  }
2202
4091
  declare const ZodPipe: $constructor<ZodPipe>;
4092
+ declare function pipe<const A extends SomeType, B extends $ZodType<unknown, output$1<A>> = $ZodType<unknown, output$1<A>>>(in_: A, out: B | $ZodType<unknown, output$1<A>>): ZodPipe<A, B>;
4093
+ interface ZodCodec<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends ZodPipe<A, B>, $ZodCodec<A, B> {
4094
+ "~standard": ZodStandardSchemaWithJSON<this>;
4095
+ _zod: $ZodCodecInternals<A, B>;
4096
+ def: $ZodCodecDef<A, B>;
4097
+ }
4098
+ declare const ZodCodec: $constructor<ZodCodec>;
4099
+ declare function codec<const A extends SomeType, B extends SomeType = $ZodType>(in_: A, out: B, params: {
4100
+ decode: (value: output$1<A>, payload: ParsePayload<output$1<A>>) => MaybeAsync<input$1<B>>;
4101
+ encode: (value: input$1<B>, payload: ParsePayload<input$1<B>>) => MaybeAsync<output$1<A>>;
4102
+ }): ZodCodec<A, B>;
4103
+ declare function invertCodec<A extends SomeType, B extends SomeType>(codec: ZodCodec<A, B>): ZodCodec<B, A>;
4104
+ interface ZodPreprocess<B extends SomeType = $ZodType, I = unknown> extends ZodPipe<$ZodTransform<unknown, I>, B>, $ZodPreprocess<B, I> {
4105
+ "~standard": ZodStandardSchemaWithJSON<this>;
4106
+ _zod: $ZodPreprocessInternals<B, I>;
4107
+ def: $ZodPreprocessDef<B, I>;
4108
+ }
4109
+ declare const ZodPreprocess: $constructor<ZodPreprocess>;
2203
4110
  interface ZodReadonly<T extends SomeType = $ZodType> extends _ZodType<$ZodReadonlyInternals<T>>, $ZodReadonly<T> {
2204
4111
  "~standard": ZodStandardSchemaWithJSON<this>;
2205
4112
  unwrap(): T;
2206
4113
  }
2207
4114
  declare const ZodReadonly: $constructor<ZodReadonly>;
4115
+ declare function readonly<T extends SomeType>(innerType: T): ZodReadonly<T>;
4116
+ interface ZodTemplateLiteral<Template extends string = string> extends _ZodType<$ZodTemplateLiteralInternals<Template>>, $ZodTemplateLiteral<Template> {
4117
+ "~standard": ZodStandardSchemaWithJSON<this>;
4118
+ }
4119
+ declare const ZodTemplateLiteral: $constructor<ZodTemplateLiteral>;
4120
+ declare function templateLiteral<const Parts extends $ZodTemplateLiteralPart[]>(parts: Parts, params?: string | $ZodTemplateLiteralParams): ZodTemplateLiteral<$PartsToTemplateLiteral<Parts>>;
4121
+ interface ZodLazy<T extends SomeType = $ZodType> extends _ZodType<$ZodLazyInternals<T>>, $ZodLazy<T> {
4122
+ "~standard": ZodStandardSchemaWithJSON<this>;
4123
+ unwrap(): T;
4124
+ }
4125
+ declare const ZodLazy: $constructor<ZodLazy>;
4126
+ declare function lazy<T extends SomeType>(getter: () => T): ZodLazy<T>;
4127
+ interface ZodPromise<T extends SomeType = $ZodType> extends _ZodType<$ZodPromiseInternals<T>>, $ZodPromise<T> {
4128
+ "~standard": ZodStandardSchemaWithJSON<this>;
4129
+ unwrap(): T;
4130
+ }
4131
+ declare const ZodPromise: $constructor<ZodPromise>;
4132
+ declare function promise<T extends SomeType>(innerType: T): ZodPromise<T>;
4133
+ interface ZodFunction<Args extends $ZodFunctionIn = $ZodFunctionIn, Returns extends $ZodFunctionOut = $ZodFunctionOut> extends _ZodType<$ZodFunctionInternals<Args, Returns>>, $ZodFunction<Args, Returns> {
4134
+ "~standard": ZodStandardSchemaWithJSON<this>;
4135
+ _def: $ZodFunctionDef<Args, Returns>;
4136
+ _input: $InferInnerFunctionType<Args, Returns>;
4137
+ _output: $InferOuterFunctionType<Args, Returns>;
4138
+ input<const Items extends TupleItems, const Rest extends $ZodFunctionOut = $ZodFunctionOut>(args: Items, rest?: Rest): ZodFunction<$ZodTuple<Items, Rest>, Returns>;
4139
+ input<NewArgs extends $ZodFunctionIn>(args: NewArgs): ZodFunction<NewArgs, Returns>;
4140
+ input(...args: any[]): ZodFunction<any, Returns>;
4141
+ output<NewReturns extends $ZodType>(output: NewReturns): ZodFunction<Args, NewReturns>;
4142
+ }
4143
+ declare const ZodFunction: $constructor<ZodFunction>;
4144
+ declare function _function(): ZodFunction;
4145
+ declare function _function<const In extends ReadonlyArray<$ZodType>>(params: {
4146
+ input: In;
4147
+ }): ZodFunction<ZodTuple<In, null>, $ZodFunctionOut>;
4148
+ declare function _function<const In extends ReadonlyArray<$ZodType>, const Out extends $ZodFunctionOut = $ZodFunctionOut>(params: {
4149
+ input: In;
4150
+ output: Out;
4151
+ }): ZodFunction<ZodTuple<In, null>, Out>;
4152
+ declare function _function<const In extends $ZodFunctionIn = $ZodFunctionIn>(params: {
4153
+ input: In;
4154
+ }): ZodFunction<In, $ZodFunctionOut>;
4155
+ declare function _function<const Out extends $ZodFunctionOut = $ZodFunctionOut>(params: {
4156
+ output: Out;
4157
+ }): ZodFunction<$ZodFunctionIn, Out>;
4158
+ declare function _function<In extends $ZodFunctionIn = $ZodFunctionIn, Out extends $ZodType = $ZodType>(params?: {
4159
+ input: In;
4160
+ output: Out;
4161
+ }): ZodFunction<In, Out>;
4162
+ interface ZodCustom<O = unknown, I = unknown> extends _ZodType<$ZodCustomInternals<O, I>>, $ZodCustom<O, I> {
4163
+ "~standard": ZodStandardSchemaWithJSON<this>;
4164
+ }
4165
+ declare const ZodCustom: $constructor<ZodCustom>;
4166
+ declare function check<O = unknown>(fn: CheckFn<O>): $ZodCheck<O>;
4167
+ declare function custom<O>(fn?: (data: unknown) => unknown, _params?: string | $ZodCustomParams | undefined): ZodCustom<O, O>;
4168
+ declare function refine<T>(fn: (arg: NoInfer<T>) => MaybeAsync<unknown>, _params?: string | $ZodCustomParams): $ZodCheck<T>;
4169
+ declare function superRefine<T>(fn: (arg: T, payload: $RefinementCtx<T>) => void | Promise<void>, params?: $ZodSuperRefineParams): $ZodCheck<T>;
4170
+ declare const describe: typeof describe$1;
4171
+ declare const meta: typeof meta$1;
4172
+ type ZodInstanceOfParams = Params<ZodCustom, $ZodIssueCustom, "type" | "check" | "checks" | "fn" | "abort" | "error" | "params" | "path">;
4173
+ interface ZodInstanceOf<T = unknown> extends ZodCustom<T, T> {
4174
+ properties<Shape extends { [k in keyof T as T[k] extends Function ? never : k]?: $ZodType<unknown, T[k]>; }>(shape: Shape, params?: string | $ZodCheckPropertiesParams): ZodInstanceOf<T & $InferObjectInput<Shape, {}>>;
4175
+ }
4176
+ declare const ZodInstanceOf: $constructor<ZodInstanceOf>;
4177
+ declare function _instanceof<T extends typeof Class>(cls: T, params?: ZodInstanceOfParams): ZodInstanceOf<InstanceType<T>>;
4178
+ declare const stringbool: (_params?: string | $ZodStringBoolParams) => ZodCodec<ZodString, ZodBoolean>;
4179
+ type _ZodJSONSchema = ZodUnion<[ZodString, ZodNumber, ZodBoolean, ZodNull, ZodArray<ZodJSONSchema>, ZodRecord<ZodString, ZodJSONSchema>]>;
4180
+ type _ZodJSONSchemaInternals = _ZodJSONSchema["_zod"];
4181
+ interface ZodJSONSchemaInternals extends _ZodJSONSchemaInternals {
4182
+ output: JSONType;
4183
+ input: JSONType;
4184
+ }
4185
+ interface ZodJSONSchema extends _ZodJSONSchema {
4186
+ _zod: ZodJSONSchemaInternals;
4187
+ }
4188
+ declare function json(params?: string | $ZodCustomParams): ZodJSONSchema;
4189
+ declare function preprocess<A, U extends SomeType, B = unknown>(fn: (arg: B, ctx: $RefinementCtx) => A, schema: U): ZodPreprocess<U, B>;
4190
+ //#endregion
4191
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/compat.d.cts
4192
+ /** @deprecated Use `z.output<T>` instead. */
4193
+ type TypeOf<T> = output$1<T>;
4194
+ /** @deprecated Use `z.output<T>` instead. */
4195
+ type Infer<T> = output$1<T>;
4196
+ /** @deprecated Use `z.core.$ZodTypes` instead */
4197
+ type ZodFirstPartySchemaTypes = $ZodTypes;
4198
+ /** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
4199
+ declare const ZodIssueCode: {
4200
+ readonly invalid_type: "invalid_type";
4201
+ readonly too_big: "too_big";
4202
+ readonly too_small: "too_small";
4203
+ readonly invalid_format: "invalid_format";
4204
+ readonly not_multiple_of: "not_multiple_of";
4205
+ readonly unrecognized_keys: "unrecognized_keys";
4206
+ readonly invalid_union: "invalid_union";
4207
+ readonly invalid_key: "invalid_key";
4208
+ readonly invalid_element: "invalid_element";
4209
+ readonly invalid_value: "invalid_value";
4210
+ readonly custom: "custom";
4211
+ };
4212
+ /** @deprecated Use `z.core.$ZodFlattenedError<z.output<T>>` instead; it takes an inferred type, not a schema. */
4213
+ type inferFlattenedErrors<T extends $ZodType, U = string> = $ZodFlattenedError<output$1<T>, U>;
4214
+ /** @deprecated Use `z.core.$ZodFormattedError<z.output<T>>` instead; it takes an inferred type, not a schema. */
4215
+ type inferFormattedError<T extends $ZodType<any, any>, U = string> = $ZodFormattedError<output$1<T>, U>;
4216
+ /** Use `z.$brand` instead */
4217
+ type BRAND$1<T extends string | number | symbol = string | number | symbol> = {
4218
+ [$brand]: { [k in T]: true; };
4219
+ };
4220
+ /** @deprecated Use `z.config(params)` instead. */
4221
+ declare function setErrorMap(map: $ZodErrorMap): void;
4222
+ /** @deprecated Use `z.config()` instead. */
4223
+ declare function getErrorMap(): $ZodErrorMap<$ZodIssue> | undefined;
4224
+ /** @deprecated Use z.ZodType (without generics) instead. */
4225
+ type ZodTypeAny<Output = unknown, Input = unknown, Internals extends $ZodTypeInternals<Output, Input> = $ZodTypeInternals<Output, Input>> = ZodType<Output, Input, Internals>;
4226
+ /** @deprecated Use `z.ZodType` */
4227
+ type ZodSchema<Output = unknown, Input = unknown, Internals extends $ZodTypeInternals<Output, Input> = $ZodTypeInternals<Output, Input>> = ZodType<Output, Input, Internals>;
4228
+ /** @deprecated Use `z.ZodType` */
4229
+ type Schema<Output = unknown, Input = unknown, Internals extends $ZodTypeInternals<Output, Input> = $ZodTypeInternals<Output, Input>> = ZodType<Output, Input, Internals>;
4230
+ /** Included for Zod 3 compatibility */
4231
+ type ZodRawShape = $ZodShape;
4232
+ /** @deprecated Do not use. Stub definition, only included for zod-to-json-schema compatibility. */
4233
+ declare enum ZodFirstPartyTypeKind {}
4234
+ //#endregion
4235
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/from-json-schema.d.cts
4236
+ type JSONSchemaVersion = "draft-2020-12" | "draft-7" | "draft-4" | "openapi-3.0";
4237
+ interface FromJSONSchemaParams {
4238
+ defaultTarget?: JSONSchemaVersion;
4239
+ registry?: $ZodRegistry<any>;
4240
+ }
4241
+ /**
4242
+ * Converts a JSON Schema to a Zod schema. This function should be considered semi-experimental. It's behavior is liable to change. */
4243
+ declare function fromJSONSchema(schema: JSONSchema | boolean, params?: FromJSONSchemaParams): ZodType;
4244
+ //#endregion
4245
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/deep-partial.d.cts
4246
+ /** Distributes `.partial()` through every object in a schema type, preserving the wrappers around them. */
4247
+ type DeepPartial<T extends SomeType> = T extends ZodObject<infer Shape, infer Config> ? ZodObject<{ -readonly [K in keyof Shape]: ZodOptional<DeepPartial<Shape[K]>>; }, Config> : T extends ZodDiscriminatedUnion<infer Options, any> ? ZodUnion<{ -readonly [I in keyof Options]: Options[I] extends SomeType ? DeepPartial<Options[I]> : Options[I]; }> : T extends ZodUnion<infer Options> ? ZodUnion<{ -readonly [I in keyof Options]: Options[I] extends SomeType ? DeepPartial<Options[I]> : Options[I]; }> : T extends ZodArray<infer El> ? ZodArray<DeepPartial<El>> : T extends ZodTuple<infer Items, infer Rest> ? ZodTuple<{ -readonly [K in keyof Items]: Items[K] extends SomeType ? DeepPartial<Items[K]> : Items[K]; }, Rest extends SomeType ? DeepPartial<Rest> : Rest> : T extends ZodIntersection<infer A, infer B> ? ZodIntersection<DeepPartial<A>, DeepPartial<B>> : T extends ZodRecord<infer K, infer V> ? ZodRecord<K, DeepPartial<V>> : T extends ZodMap<infer K, infer V> ? ZodMap<K, DeepPartial<V>> : T extends ZodSet<infer El> ? ZodSet<DeepPartial<El>> : T extends ZodOptional<infer Inner> ? ZodOptional<DeepPartial<Inner>> : T extends ZodNullable<infer Inner> ? ZodNullable<DeepPartial<Inner>> : T extends ZodDefault<infer Inner> ? ZodDefault<DeepPartial<Inner>> : T extends ZodPrefault<infer Inner> ? ZodPrefault<DeepPartial<Inner>> : T extends ZodNonOptional<infer Inner> ? ZodNonOptional<DeepPartial<Inner>> : T extends ZodCatch<infer Inner> ? ZodCatch<DeepPartial<Inner>> : T extends ZodReadonly<infer Inner> ? ZodReadonly<DeepPartial<Inner>> : T extends ZodSuccess<infer Inner> ? ZodSuccess<DeepPartial<Inner>> : T extends ZodPromise<infer Inner> ? ZodPromise<DeepPartial<Inner>> : T extends ZodCodec<infer A, infer B> ? ZodCodec<DeepPartial<A>, DeepPartial<B>> : T extends ZodPreprocess<infer B> ? ZodPreprocess<DeepPartial<B>> : T extends ZodPipe<infer A, infer B> ? ZodPipe<DeepPartial<A>, DeepPartial<B>> : T extends ZodLazy<infer Inner> ? ZodLazy<DeepPartial<Inner>> : T;
4248
+ /** Returns a copy of the schema with every nested object's properties made optional. */
4249
+ declare function deepPartial<T extends SomeType>(schema: T): DeepPartial<T>;
4250
+ //#endregion
4251
+ //#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/in-out.d.cts
4252
+ type input<T> = input$1<T>;
4253
+ type output<T> = output$1<T>;
4254
+ /** Returns a copy of the schema with every pipe replaced by its input side. A codec's checks are dropped: they constrain the decoded value the input side never produces. */
4255
+ declare function input<T extends $ZodType>(schema: T): ZodType<input$1<T>, input$1<T>>;
4256
+ /** Returns a copy of the schema with every pipe replaced by its output side, carrying over the pipe's own checks. */
4257
+ declare function output<T extends $ZodType>(schema: T): ZodType<output$1<T>, output$1<T>>;
4258
+ declare namespace iso_d_exports {
4259
+ export { ZodISODate, ZodISODateTime, ZodISODuration, ZodISOTime, date$1 as date, datetime, duration, time };
4260
+ }
4261
+ declare function datetime(params?: string | $ZodISODateTimeParams): ZodISODateTime;
4262
+ declare function date$1(params?: string | $ZodISODateParams): ZodISODate;
4263
+ declare function time(params?: string | $ZodISOTimeParams): ZodISOTime;
4264
+ declare function duration(params?: string | $ZodISODurationParams): ZodISODuration;
4265
+ declare namespace coerce_d_exports {
4266
+ export { ZodCoercedBigInt, ZodCoercedBoolean, ZodCoercedDate, ZodCoercedNumber, ZodCoercedString, bigint, boolean, date, number, string };
4267
+ }
4268
+ interface ZodCoercedString<T = unknown> extends _ZodString<$ZodStringInternals<T>> {}
4269
+ declare function string<T = unknown>(params?: string | $ZodStringParams): ZodCoercedString<T>;
4270
+ interface ZodCoercedNumber<T = unknown> extends _ZodNumber<$ZodNumberInternals<T>> {}
4271
+ declare function number<T = unknown>(params?: string | $ZodNumberParams): ZodCoercedNumber<T>;
4272
+ interface ZodCoercedBoolean<T = unknown> extends _ZodBoolean<$ZodBooleanInternals<T>> {}
4273
+ declare function boolean<T = unknown>(params?: string | $ZodBooleanParams): ZodCoercedBoolean<T>;
4274
+ interface ZodCoercedBigInt<T = unknown> extends _ZodBigInt<$ZodBigIntInternals<T>> {}
4275
+ declare function bigint<T = unknown>(params?: string | $ZodBigIntParams): ZodCoercedBigInt<T>;
4276
+ interface ZodCoercedDate<T = unknown> extends _ZodDate<$ZodDateInternals<T>> {}
4277
+ declare function date<T = unknown>(params?: string | $ZodDateParams): ZodCoercedDate<T>;
4278
+ declare namespace external_d_exports {
4279
+ export { $brand, $input, $output, BRAND$1 as BRAND, CompileOptions, GlobalMeta, INVALID, Infer, IssueData, JSONType, NEVER, $RefinementCtx as RefinementCtx, SafeExtendShape, Schema, TimePrecision, TypeOf, ZodAny, ZodArray, ZodBase64, ZodBase64URL, ZodBigInt, ZodBigIntFormat, ZodBoolean, ZodCIDRv4, ZodCIDRv6, ZodCUID, ZodCUID2, ZodCatch, ZodCodec, ZodCoercedBigInt, ZodCoercedBoolean, ZodCoercedDate, ZodCoercedNumber, ZodCoercedString, ZodCompileAsyncError, ZodCompileUnsupportedError, ZodCreditCard, ZodCustom, ZodCustomStringFormat, ZodDate, ZodDefault, ZodDiscriminatedUnion, ZodE164, ZodEmail, ZodEmoji, ZodEnum, ZodError, ZodErrorMap, ZodExactOptional, ZodFile, ZodFirstPartySchemaTypes, ZodFirstPartyTypeKind, ZodFlattenedError, ZodFloat32, ZodFloat64, ZodFormattedError, ZodFunction, ZodGUID, ZodIBAN, ZodIPv4, ZodIPv6, ZodISODate, ZodISODateTime, ZodISODuration, ZodISOTime, ZodInstanceOf, ZodInt, ZodInt32, ZodInt64, ZodIntersection, ZodIssue, ZodIssueCode, ZodJSONSchema, ZodJSONSchemaInternals, ZodJWT, ZodKSUID, ZodLazy, ZodLiteral, ZodMAC, ZodMap, ZodNaN, ZodNanoID, ZodNever, ZodNonOptional, ZodNull, ZodNullable, ZodNumber, ZodNumberFormat, ZodObject, ZodOptional, ZodPipe, ZodPrefault, ZodPreprocess, ZodPromise, ZodRawShape, ZodReadonly, ZodRealError, ZodRecord, ZodSafeParseError, ZodSafeParseResult, ZodSafeParseSuccess, ZodSchema, ZodSet, ZodStandardSchemaWithJSON, ZodString, ZodStringFormat, ZodSuccess, ZodSymbol, ZodTemplateLiteral, ZodTransform, ZodTuple, ZodType, ZodTypeAny, ZodUInt32, ZodUInt64, ZodULID, ZodURL, ZodUUID, ZodUndefined, ZodUnion, ZodUnknown, ZodVoid, ZodXID, ZodXor, _ZodBigInt, _ZodBoolean, _ZodDate, _ZodNumber, _ZodString, _ZodType, _default, _function, any, array, base64, base64url, bigint$1 as bigint, boolean$1 as boolean, _catch as catch, check, cidrv4, cidrv6, clone, codec, coerce_d_exports as coerce, compile, config, index_d_exports as core, creditCard, cuid, cuid2, currencyCode, custom, date$2 as date, decode, decodeAsync, deepPartial, describe, discriminatedUnion, e164, email, emoji, encode, encodeAsync, _endsWith as endsWith, _enum as enum, exactOptional, file, flattenError, float32, float64, formatError, fromJSONSchema, _function as function, getDiscriminatedOption, getErrorMap, globalRegistry, _gt as gt, _gte as gte, guid, hash, hex, hostname, httpUrl, iban, _includes as includes, output$1 as infer, inferFlattenedErrors, inferFormattedError, input, _instanceof as instanceof, int, int32, int64, intersection, invertCodec, ipv4, ipv6, iso_d_exports as iso, json, jwt, keyof, ksuid, lazy, _length as length, literal, index_d_exports$1 as locales, looseObject, looseRecord, _lowercase as lowercase, _lt as lt, _lte as lte, mac, map, _maxLength as maxLength, _maxSize as maxSize, memoizer, meta, _mime as mime, _minLength as minLength, _minSize as minSize, _multipleOf as multipleOf, nan, nanoid, nativeEnum, _negative as negative, never, _nonnegative as nonnegative, nonoptional, _nonpositive as nonpositive, _normalize as normalize, _null as null, nullable, nullish, number$1 as number, object, optional, output, _overwrite as overwrite, parse, parseAsync, partialRecord, pipe, _positive as positive, prefault, preprocess, prettifyError, promise, _properties as properties, _property as property, readonly, record, refine, _regex as regex, regexes_d_exports as regexes, registry, safeDecode, safeDecodeAsync, safeEncode, safeEncodeAsync, safeParse, safeParseAsync, set, setErrorMap, _size as size, _slugify as slugify, _startsWith as startsWith, strictObject, string$1 as string, stringFormat, stringbool, success, superRefine, symbol, templateLiteral, toJSONSchema, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, toZod, transform, treeifyError, _trim as trim, tuple, uint32, uint64, ulid, _undefined as undefined, union, unknown, _uppercase as uppercase, url, util_d_exports as util, uuid, uuidv4, uuidv6, uuidv7, validate, validateAsync, _void as void, withParser, xid, xor };
4280
+ }
2208
4281
  //#endregion
2209
4282
  //#region ../../../vendor/deepseek-harness/packages/session/session-projection/lib/types/types.d.ts
2210
4283
  /**
@@ -2863,7 +4936,7 @@ declare const checkpointIdentity: ZodObject<{
2863
4936
  inheritedEventCount: ZodOptional<ZodPipe<ZodNumber, ZodTransform<SessionLogOffset, number>>>;
2864
4937
  }, $strip>;
2865
4938
  /** The identity fields a record is bound to, inferred from {@link checkpointIdentity}. */
2866
- type CheckpointIdentity = output<typeof checkpointIdentity>;
4939
+ type CheckpointIdentity = output$1<typeof checkpointIdentity>;
2867
4940
  //#endregion
2868
4941
  //#region ../../../vendor/deepseek-harness/packages/session/session-projection-cache/lib/types/index.d.ts
2869
4942
  declare module '@deepseek-ai/cordis' {
@@ -3163,7 +5236,7 @@ declare const workspaceRecord: ZodObject<{
3163
5236
  updatedAt: ZodString;
3164
5237
  }, $strip>;
3165
5238
  /** One stored workspace record, inferred from {@link workspaceRecord}. */
3166
- type WorkspaceRecord = output<typeof workspaceRecord>;
5239
+ type WorkspaceRecord = output$1<typeof workspaceRecord>;
3167
5240
  /**
3168
5241
  * Durable registry state. `initialized` distinguishes a valid empty registry
3169
5242
  * from one that still needs the header-only history bootstrap;
@@ -3191,7 +5264,7 @@ declare const workspaceDomainState: ZodObject<{
3191
5264
  }, $strip>], "operation">>;
3192
5265
  }, $strip>;
3193
5266
  /** Durable registry state inferred from {@link workspaceDomainState}. */
3194
- type WorkspaceDomainState = output<typeof workspaceDomainState>;
5267
+ type WorkspaceDomainState = output$1<typeof workspaceDomainState>;
3195
5268
  //#endregion
3196
5269
  //#region ../../../vendor/deepseek-harness/packages/workspace/workspace/lib/types/index.d.ts
3197
5270
  /** Identifies one workspace record (see `src/types.ts` for the brand rationale). */