unplugin-cloudflare-tunnel 0.1.0 → 0.1.2

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.
@@ -1,702 +0,0 @@
1
- //#region node_modules/zod/v4/core/json-schema.d.cts
2
- type _JSONSchema = boolean | JSONSchema;
3
- type JSONSchema = {
4
- [k: string]: unknown;
5
- $schema?: "https://json-schema.org/draft/2020-12/schema" | "http://json-schema.org/draft-07/schema#" | "http://json-schema.org/draft-04/schema#";
6
- $id?: string;
7
- $anchor?: string;
8
- $ref?: string;
9
- $dynamicRef?: string;
10
- $dynamicAnchor?: string;
11
- $vocabulary?: Record<string, boolean>;
12
- $comment?: string;
13
- $defs?: Record<string, JSONSchema>;
14
- type?: "object" | "array" | "string" | "number" | "boolean" | "null" | "integer";
15
- additionalItems?: _JSONSchema;
16
- unevaluatedItems?: _JSONSchema;
17
- prefixItems?: _JSONSchema[];
18
- items?: _JSONSchema | _JSONSchema[];
19
- contains?: _JSONSchema;
20
- additionalProperties?: _JSONSchema;
21
- unevaluatedProperties?: _JSONSchema;
22
- properties?: Record<string, _JSONSchema>;
23
- patternProperties?: Record<string, _JSONSchema>;
24
- dependentSchemas?: Record<string, _JSONSchema>;
25
- propertyNames?: _JSONSchema;
26
- if?: _JSONSchema;
27
- then?: _JSONSchema;
28
- else?: _JSONSchema;
29
- allOf?: JSONSchema[];
30
- anyOf?: JSONSchema[];
31
- oneOf?: JSONSchema[];
32
- not?: _JSONSchema;
33
- multipleOf?: number;
34
- maximum?: number;
35
- exclusiveMaximum?: number | boolean;
36
- minimum?: number;
37
- exclusiveMinimum?: number | boolean;
38
- maxLength?: number;
39
- minLength?: number;
40
- pattern?: string;
41
- maxItems?: number;
42
- minItems?: number;
43
- uniqueItems?: boolean;
44
- maxContains?: number;
45
- minContains?: number;
46
- maxProperties?: number;
47
- minProperties?: number;
48
- required?: string[];
49
- dependentRequired?: Record<string, string[]>;
50
- enum?: Array<string | number | boolean | null>;
51
- const?: string | number | boolean | null;
52
- id?: string;
53
- title?: string;
54
- description?: string;
55
- default?: unknown;
56
- deprecated?: boolean;
57
- readOnly?: boolean;
58
- writeOnly?: boolean;
59
- nullable?: boolean;
60
- examples?: unknown[];
61
- format?: string;
62
- contentMediaType?: string;
63
- contentEncoding?: string;
64
- contentSchema?: JSONSchema;
65
- _prefault?: unknown;
66
- };
67
- type BaseSchema = JSONSchema;
68
- //#endregion
69
- //#region node_modules/zod/v4/core/standard-schema.d.cts
70
- /** The Standard interface. */
71
- interface StandardTypedV1<Input = unknown, Output = Input> {
72
- /** The Standard properties. */
73
- readonly "~standard": StandardTypedV1.Props<Input, Output>;
74
- }
75
- declare namespace StandardTypedV1 {
76
- /** The Standard properties interface. */
77
- interface Props<Input = unknown, Output = Input> {
78
- /** The version number of the standard. */
79
- readonly version: 1;
80
- /** The vendor name of the schema library. */
81
- readonly vendor: string;
82
- /** Inferred types associated with the schema. */
83
- readonly types?: Types<Input, Output> | undefined;
84
- }
85
- /** The Standard types interface. */
86
- interface Types<Input = unknown, Output = Input> {
87
- /** The input type of the schema. */
88
- readonly input: Input;
89
- /** The output type of the schema. */
90
- readonly output: Output;
91
- }
92
- /** Infers the input type of a Standard. */
93
- type InferInput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["input"];
94
- /** Infers the output type of a Standard. */
95
- type InferOutput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["output"];
96
- }
97
- /** The Standard Schema interface. */
98
- interface StandardSchemaV1<Input = unknown, Output = Input> {
99
- /** The Standard Schema properties. */
100
- readonly "~standard": StandardSchemaV1.Props<Input, Output>;
101
- }
102
- declare namespace StandardSchemaV1 {
103
- /** The Standard Schema properties interface. */
104
- interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<Input, Output> {
105
- /** Validates unknown input values. */
106
- readonly validate: (value: unknown, options?: StandardSchemaV1.Options | undefined) => Result<Output> | Promise<Result<Output>>;
107
- }
108
- /** The result interface of the validate function. */
109
- type Result<Output> = SuccessResult<Output> | FailureResult;
110
- /** The result interface if validation succeeds. */
111
- interface SuccessResult<Output> {
112
- /** The typed output value. */
113
- readonly value: Output;
114
- /** The absence of issues indicates success. */
115
- readonly issues?: undefined;
116
- }
117
- interface Options {
118
- /** Implicit support for additional vendor-specific parameters, if needed. */
119
- readonly libraryOptions?: Record<string, unknown> | undefined;
120
- }
121
- /** The result interface if validation fails. */
122
- interface FailureResult {
123
- /** The issues of failed validation. */
124
- readonly issues: ReadonlyArray<Issue>;
125
- }
126
- /** The issue interface of the failure output. */
127
- interface Issue {
128
- /** The error message of the issue. */
129
- readonly message: string;
130
- /** The path of the issue, if any. */
131
- readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
132
- }
133
- /** The path segment interface of the issue. */
134
- interface PathSegment {
135
- /** The key representing a path segment. */
136
- readonly key: PropertyKey;
137
- }
138
- /** The Standard types interface. */
139
- interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<Input, Output> {}
140
- /** Infers the input type of a Standard. */
141
- type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>;
142
- /** Infers the output type of a Standard. */
143
- type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
144
- }
145
- //#endregion
146
- //#region node_modules/zod/v4/core/registries.d.cts
147
- declare const $output: unique symbol;
148
- type $output = typeof $output;
149
- declare const $input: unique symbol;
150
- type $input = typeof $input;
151
- 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;
152
- type MetadataType = object | undefined;
153
- declare class $ZodRegistry<Meta extends MetadataType = MetadataType, Schema extends $ZodType = $ZodType> {
154
- _meta: Meta;
155
- _schema: Schema;
156
- _map: WeakMap<Schema, $replace<Meta, Schema>>;
157
- _idmap: Map<string, Schema>;
158
- add<S extends Schema>(schema: S, ..._meta: undefined extends Meta ? [$replace<Meta, S>?] : [$replace<Meta, S>]): this;
159
- clear(): this;
160
- remove(schema: Schema): this;
161
- get<S extends Schema>(schema: S): $replace<Meta, S> | undefined;
162
- has(schema: Schema): boolean;
163
- }
164
- //#endregion
165
- //#region node_modules/zod/v4/core/to-json-schema.d.cts
166
- type Processor<T extends $ZodType = $ZodType> = (schema: T, ctx: ToJSONSchemaContext, json: BaseSchema, params: ProcessParams) => void;
167
- interface ProcessParams {
168
- schemaPath: $ZodType[];
169
- path: (string | number)[];
170
- }
171
- interface Seen {
172
- /** JSON Schema result for this Zod schema */
173
- schema: BaseSchema;
174
- /** A cached version of the schema that doesn't get overwritten during ref resolution */
175
- def?: BaseSchema;
176
- defId?: string | undefined;
177
- /** Number of times this schema was encountered during traversal */
178
- count: number;
179
- /** Cycle path */
180
- cycle?: (string | number)[] | undefined;
181
- isParent?: boolean | undefined;
182
- /** Schema to inherit JSON Schema properties from (set by processor for wrappers) */
183
- ref?: $ZodType | null;
184
- /** JSON Schema property path for this schema */
185
- path?: (string | number)[] | undefined;
186
- }
187
- interface ToJSONSchemaContext {
188
- processors: Record<string, Processor>;
189
- metadataRegistry: $ZodRegistry<Record<string, any>>;
190
- target: "draft-04" | "draft-07" | "draft-2020-12" | "openapi-3.0" | ({} & string);
191
- unrepresentable: "throw" | "any";
192
- override: (ctx: {
193
- zodSchema: $ZodType;
194
- jsonSchema: BaseSchema;
195
- path: (string | number)[];
196
- }) => void;
197
- io: "input" | "output";
198
- counter: number;
199
- seen: Map<$ZodType, Seen>;
200
- cycles: "ref" | "throw";
201
- reused: "ref" | "inline";
202
- external?: {
203
- registry: $ZodRegistry<{
204
- id?: string | undefined;
205
- }>;
206
- uri?: ((id: string) => string) | undefined;
207
- defs: Record<string, BaseSchema>;
208
- } | undefined;
209
- }
210
- //#endregion
211
- //#region node_modules/zod/v4/core/util.d.cts
212
- type IsAny<T> = 0 extends 1 & T ? true : false;
213
- type Omit$1<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
214
- type MakePartial<T, K extends keyof T> = Omit$1<T, K> & InexactPartial<Pick<T, K>>;
215
- type LoosePartial<T extends object> = InexactPartial<T> & {
216
- [k: string]: unknown;
217
- };
218
- type InexactPartial<T> = { [P in keyof T]?: T[P] | undefined };
219
- type Identity<T> = T;
220
- type Flatten<T> = Identity<{ [k in keyof T]: T[k] }>;
221
- type Prettify<T> = { [K in keyof T]: T[K] } & {};
222
- type AnyFunc = (...args: any[]) => any;
223
- type MaybeAsync<T> = T | Promise<T>;
224
- type Primitive = string | number | symbol | bigint | boolean | null | undefined;
225
- type SafeParseResult<T> = SafeParseSuccess<T> | SafeParseError<T>;
226
- type SafeParseSuccess<T> = {
227
- success: true;
228
- data: T;
229
- error?: never;
230
- };
231
- type SafeParseError<T> = {
232
- success: false;
233
- data?: never;
234
- error: $ZodError<T>;
235
- };
236
- type PropValues = Record<string, Set<Primitive>>;
237
- type PrimitiveSet = Set<Primitive>;
238
- declare abstract class Class {
239
- constructor(..._args: any[]);
240
- }
241
- //#endregion
242
- //#region node_modules/zod/v4/core/versions.d.cts
243
- declare const version: {
244
- readonly major: 4;
245
- readonly minor: 3;
246
- readonly patch: number;
247
- };
248
- //#endregion
249
- //#region node_modules/zod/v4/core/schemas.d.cts
250
- interface ParseContext<T extends $ZodIssueBase = never> {
251
- /** Customize error messages. */
252
- readonly error?: $ZodErrorMap<T>;
253
- /** Include the `input` field in issue objects. Default `false`. */
254
- readonly reportInput?: boolean;
255
- /** Skip eval-based fast path. Default `false`. */
256
- readonly jitless?: boolean;
257
- }
258
- /** @internal */
259
- interface ParseContextInternal<T extends $ZodIssueBase = never> extends ParseContext<T> {
260
- readonly async?: boolean | undefined;
261
- readonly direction?: "forward" | "backward";
262
- readonly skipChecks?: boolean;
263
- }
264
- interface ParsePayload<T = unknown> {
265
- value: T;
266
- issues: $ZodRawIssue[];
267
- /** A may to mark a whole payload as aborted. Used in codecs/pipes. */
268
- aborted?: boolean;
269
- }
270
- type CheckFn<T> = (input: ParsePayload<T>) => MaybeAsync<void>;
271
- interface $ZodTypeDef {
272
- type: "string" | "number" | "int" | "boolean" | "bigint" | "symbol" | "null" | "undefined" | "void" | "never" | "any" | "unknown" | "date" | "object" | "record" | "file" | "array" | "tuple" | "union" | "intersection" | "map" | "set" | "enum" | "literal" | "nullable" | "optional" | "nonoptional" | "success" | "transform" | "default" | "prefault" | "catch" | "nan" | "pipe" | "readonly" | "template_literal" | "promise" | "lazy" | "function" | "custom";
273
- error?: $ZodErrorMap<never> | undefined;
274
- checks?: $ZodCheck<never>[];
275
- }
276
- interface _$ZodTypeInternals {
277
- /** The `@zod/core` version of this schema */
278
- version: typeof version;
279
- /** Schema definition. */
280
- def: $ZodTypeDef;
281
- /** @internal Randomly generated ID for this schema. */
282
- /** @internal List of deferred initializers. */
283
- deferred: AnyFunc[] | undefined;
284
- /** @internal Parses input and runs all checks (refinements). */
285
- run(payload: ParsePayload<any>, ctx: ParseContextInternal): MaybeAsync<ParsePayload>;
286
- /** @internal Parses input, doesn't run checks. */
287
- parse(payload: ParsePayload<any>, ctx: ParseContextInternal): MaybeAsync<ParsePayload>;
288
- /** @internal Stores identifiers for the set of traits implemented by this schema. */
289
- traits: Set<string>;
290
- /** @internal Indicates that a schema output type should be considered optional inside objects.
291
- * @default Required
292
- */
293
- /** @internal */
294
- optin?: "optional" | undefined;
295
- /** @internal */
296
- optout?: "optional" | undefined;
297
- /** @internal The set of literal values that will pass validation. Must be an exhaustive set. Used to determine optionality in z.record().
298
- *
299
- * Defined on: enum, const, literal, null, undefined
300
- * Passthrough: optional, nullable, branded, default, catch, pipe
301
- * Todo: unions?
302
- */
303
- values?: PrimitiveSet | undefined;
304
- /** Default value bubbled up from */
305
- /** @internal A set of literal discriminators used for the fast path in discriminated unions. */
306
- propValues?: PropValues | undefined;
307
- /** @internal This flag indicates that a schema validation can be represented with a regular expression. Used to determine allowable schemas in z.templateLiteral(). */
308
- pattern: RegExp | undefined;
309
- /** @internal The constructor function of this schema. */
310
- constr: new (def: any) => $ZodType;
311
- /** @internal A catchall object for bag metadata related to this schema. Commonly modified by checks using `onattach`. */
312
- bag: Record<string, unknown>;
313
- /** @internal The set of issues this schema might throw during type checking. */
314
- isst: $ZodIssueBase;
315
- /** @internal Subject to change, not a public API. */
316
- processJSONSchema?: ((ctx: ToJSONSchemaContext, json: BaseSchema, params: ProcessParams) => void) | undefined;
317
- /** An optional method used to override `toJSONSchema` logic. */
318
- toJSONSchema?: () => unknown;
319
- /** @internal The parent of this schema. Only set during certain clone operations. */
320
- parent?: $ZodType | undefined;
321
- }
322
- /** @internal */
323
- interface $ZodTypeInternals<out O = unknown, out I = unknown> extends _$ZodTypeInternals {
324
- /** @internal The inferred output type */
325
- output: O;
326
- /** @internal The inferred input type */
327
- input: I;
328
- }
329
- type $ZodStandardSchema<T> = StandardSchemaV1.Props<input<T>, output<T>>;
330
- type SomeType$1 = {
331
- _zod: _$ZodTypeInternals;
332
- };
333
- interface $ZodType<O = unknown, I = unknown, Internals extends $ZodTypeInternals<O, I> = $ZodTypeInternals<O, I>> {
334
- _zod: Internals;
335
- "~standard": $ZodStandardSchema<this>;
336
- }
337
- interface _$ZodType<T extends $ZodTypeInternals = $ZodTypeInternals> extends $ZodType<T["output"], T["input"], T> {}
338
- declare const $ZodType: $constructor<$ZodType>;
339
- interface $ZodStringDef extends $ZodTypeDef {
340
- type: "string";
341
- coerce?: boolean;
342
- checks?: $ZodCheck<string>[];
343
- }
344
- interface $ZodStringInternals<Input> extends $ZodTypeInternals<string, Input> {
345
- def: $ZodStringDef;
346
- /** @deprecated Internal API, use with caution (not deprecated) */
347
- pattern: RegExp;
348
- /** @deprecated Internal API, use with caution (not deprecated) */
349
- isst: $ZodIssueInvalidType;
350
- bag: LoosePartial<{
351
- minimum: number;
352
- maximum: number;
353
- patterns: Set<RegExp>;
354
- format: string;
355
- contentEncoding: string;
356
- }>;
357
- }
358
- interface $ZodString<Input = unknown> extends _$ZodType<$ZodStringInternals<Input>> {}
359
- declare const $ZodString: $constructor<$ZodString>;
360
- interface $ZodNumberDef extends $ZodTypeDef {
361
- type: "number";
362
- coerce?: boolean;
363
- }
364
- interface $ZodNumberInternals<Input = unknown> extends $ZodTypeInternals<number, Input> {
365
- def: $ZodNumberDef;
366
- /** @deprecated Internal API, use with caution (not deprecated) */
367
- pattern: RegExp;
368
- /** @deprecated Internal API, use with caution (not deprecated) */
369
- isst: $ZodIssueInvalidType;
370
- bag: LoosePartial<{
371
- minimum: number;
372
- maximum: number;
373
- exclusiveMinimum: number;
374
- exclusiveMaximum: number;
375
- format: string;
376
- pattern: RegExp;
377
- }>;
378
- }
379
- interface $ZodNumber<Input = unknown> extends $ZodType {
380
- _zod: $ZodNumberInternals<Input>;
381
- }
382
- declare const $ZodNumber: $constructor<$ZodNumber>;
383
- interface $ZodBooleanDef extends $ZodTypeDef {
384
- type: "boolean";
385
- coerce?: boolean;
386
- checks?: $ZodCheck<boolean>[];
387
- }
388
- interface $ZodBooleanInternals<T = unknown> extends $ZodTypeInternals<boolean, T> {
389
- pattern: RegExp;
390
- def: $ZodBooleanDef;
391
- isst: $ZodIssueInvalidType;
392
- }
393
- interface $ZodUnknownDef extends $ZodTypeDef {
394
- type: "unknown";
395
- }
396
- interface $ZodUnknownInternals extends $ZodTypeInternals<unknown, unknown> {
397
- def: $ZodUnknownDef;
398
- isst: never;
399
- }
400
- interface $ZodArrayDef<T extends SomeType$1 = $ZodType> extends $ZodTypeDef {
401
- type: "array";
402
- element: T;
403
- }
404
- interface $ZodArrayInternals<T extends SomeType$1 = $ZodType> extends _$ZodTypeInternals {
405
- def: $ZodArrayDef<T>;
406
- isst: $ZodIssueInvalidType;
407
- output: output<T>[];
408
- input: input<T>[];
409
- }
410
- interface $ZodArray<T extends SomeType$1 = $ZodType> extends $ZodType<any, any, $ZodArrayInternals<T>> {}
411
- declare const $ZodArray: $constructor<$ZodArray>;
412
- type OptionalOutSchema = {
413
- _zod: {
414
- optout: "optional";
415
- };
416
- };
417
- type OptionalInSchema = {
418
- _zod: {
419
- optin: "optional";
420
- };
421
- };
422
- type $InferObjectOutput<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? IsAny<T[keyof T]> extends true ? Record<string, unknown> : Record<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>;
423
- type $InferObjectInput<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? IsAny<T[keyof T]> extends true ? Record<string, unknown> : Record<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>;
424
- type $ZodObjectConfig = {
425
- out: Record<string, unknown>;
426
- in: Record<string, unknown>;
427
- };
428
- type $strip = {
429
- out: {};
430
- in: {};
431
- };
432
- type $ZodShape = Readonly<{
433
- [k: string]: $ZodType;
434
- }>;
435
- interface $ZodObjectDef<Shape extends $ZodShape = $ZodShape> extends $ZodTypeDef {
436
- type: "object";
437
- shape: Shape;
438
- catchall?: $ZodType | undefined;
439
- }
440
- interface $ZodObjectInternals< /** @ts-ignore Cast variance */out Shape extends $ZodShape = $ZodShape, out Config extends $ZodObjectConfig = $ZodObjectConfig> extends _$ZodTypeInternals {
441
- def: $ZodObjectDef<Shape>;
442
- config: Config;
443
- isst: $ZodIssueInvalidType | $ZodIssueUnrecognizedKeys;
444
- propValues: PropValues;
445
- output: $InferObjectOutput<Shape, Config["out"]>;
446
- input: $InferObjectInput<Shape, Config["in"]>;
447
- optin?: "optional" | undefined;
448
- optout?: "optional" | undefined;
449
- }
450
- type $ZodLooseShape = Record<string, any>;
451
- interface $ZodObject< /** @ts-ignore Cast variance */out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Params extends $ZodObjectConfig = $ZodObjectConfig> extends $ZodType<any, any, $ZodObjectInternals<Shape, Params>> {}
452
- declare const $ZodObject: $constructor<$ZodObject>;
453
- interface $ZodOptionalDef<T extends SomeType$1 = $ZodType> extends $ZodTypeDef {
454
- type: "optional";
455
- innerType: T;
456
- }
457
- interface $ZodOptionalInternals<T extends SomeType$1 = $ZodType> extends $ZodTypeInternals<output<T> | undefined, input<T> | undefined> {
458
- def: $ZodOptionalDef<T>;
459
- optin: "optional";
460
- optout: "optional";
461
- isst: never;
462
- values: T["_zod"]["values"];
463
- pattern: T["_zod"]["pattern"];
464
- }
465
- interface $ZodOptional<T extends SomeType$1 = $ZodType> extends $ZodType {
466
- _zod: $ZodOptionalInternals<T>;
467
- }
468
- declare const $ZodOptional: $constructor<$ZodOptional>;
469
- interface $ZodNullableDef<T extends SomeType$1 = $ZodType> extends $ZodTypeDef {
470
- type: "nullable";
471
- innerType: T;
472
- }
473
- interface $ZodNullableInternals<T extends SomeType$1 = $ZodType> extends $ZodTypeInternals<output<T> | null, input<T> | null> {
474
- def: $ZodNullableDef<T>;
475
- optin: T["_zod"]["optin"];
476
- optout: T["_zod"]["optout"];
477
- isst: never;
478
- values: T["_zod"]["values"];
479
- pattern: T["_zod"]["pattern"];
480
- }
481
- //#endregion
482
- //#region node_modules/zod/v4/core/checks.d.cts
483
- interface $ZodCheckDef {
484
- check: string;
485
- error?: $ZodErrorMap<never> | undefined;
486
- /** If true, no later checks will be executed if this check fails. Default `false`. */
487
- abort?: boolean | undefined;
488
- /** If provided, this check will only be executed if the function returns `true`. Defaults to `payload => z.util.isAborted(payload)`. */
489
- when?: ((payload: ParsePayload) => boolean) | undefined;
490
- }
491
- interface $ZodCheckInternals<T> {
492
- def: $ZodCheckDef;
493
- /** The set of issues this check might throw. */
494
- issc?: $ZodIssueBase;
495
- check(payload: ParsePayload<T>): MaybeAsync<void>;
496
- onattach: ((schema: $ZodType) => void)[];
497
- }
498
- interface $ZodCheck<in T = never> {
499
- _zod: $ZodCheckInternals<T>;
500
- }
501
- declare const $ZodCheck: $constructor<$ZodCheck<any>>;
502
- type $ZodStringFormats = "email" | "url" | "emoji" | "uuid" | "guid" | "nanoid" | "cuid" | "cuid2" | "ulid" | "xid" | "ksuid" | "datetime" | "date" | "time" | "duration" | "ipv4" | "ipv6" | "cidrv4" | "cidrv6" | "base64" | "base64url" | "json_string" | "e164" | "lowercase" | "uppercase" | "regex" | "jwt" | "starts_with" | "ends_with" | "includes";
503
- //#endregion
504
- //#region node_modules/zod/v4/core/errors.d.cts
505
- interface $ZodIssueBase {
506
- readonly code?: string;
507
- readonly input?: unknown;
508
- readonly path: PropertyKey[];
509
- readonly message: string;
510
- }
511
- type $ZodInvalidTypeExpected = "string" | "number" | "int" | "boolean" | "bigint" | "symbol" | "undefined" | "null" | "never" | "void" | "date" | "array" | "object" | "tuple" | "record" | "map" | "set" | "file" | "nonoptional" | "nan" | "function" | (string & {});
512
- interface $ZodIssueInvalidType<Input = unknown> extends $ZodIssueBase {
513
- readonly code: "invalid_type";
514
- readonly expected: $ZodInvalidTypeExpected;
515
- readonly input?: Input;
516
- }
517
- interface $ZodIssueTooBig<Input = unknown> extends $ZodIssueBase {
518
- readonly code: "too_big";
519
- readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
520
- readonly maximum: number | bigint;
521
- readonly inclusive?: boolean;
522
- readonly exact?: boolean;
523
- readonly input?: Input;
524
- }
525
- interface $ZodIssueTooSmall<Input = unknown> extends $ZodIssueBase {
526
- readonly code: "too_small";
527
- readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
528
- readonly minimum: number | bigint;
529
- /** True if the allowable range includes the minimum */
530
- readonly inclusive?: boolean;
531
- /** True if the allowed value is fixed (e.g.` z.length(5)`), not a range (`z.minLength(5)`) */
532
- readonly exact?: boolean;
533
- readonly input?: Input;
534
- }
535
- interface $ZodIssueInvalidStringFormat extends $ZodIssueBase {
536
- readonly code: "invalid_format";
537
- readonly format: $ZodStringFormats | (string & {});
538
- readonly pattern?: string;
539
- readonly input?: string;
540
- }
541
- interface $ZodIssueNotMultipleOf<Input extends number | bigint = number | bigint> extends $ZodIssueBase {
542
- readonly code: "not_multiple_of";
543
- readonly divisor: number;
544
- readonly input?: Input;
545
- }
546
- interface $ZodIssueUnrecognizedKeys extends $ZodIssueBase {
547
- readonly code: "unrecognized_keys";
548
- readonly keys: string[];
549
- readonly input?: Record<string, unknown>;
550
- }
551
- interface $ZodIssueInvalidUnionNoMatch extends $ZodIssueBase {
552
- readonly code: "invalid_union";
553
- readonly errors: $ZodIssue[][];
554
- readonly input?: unknown;
555
- readonly discriminator?: string | undefined;
556
- readonly inclusive?: true;
557
- }
558
- interface $ZodIssueInvalidUnionMultipleMatch extends $ZodIssueBase {
559
- readonly code: "invalid_union";
560
- readonly errors: [];
561
- readonly input?: unknown;
562
- readonly discriminator?: string | undefined;
563
- readonly inclusive: false;
564
- }
565
- type $ZodIssueInvalidUnion = $ZodIssueInvalidUnionNoMatch | $ZodIssueInvalidUnionMultipleMatch;
566
- interface $ZodIssueInvalidKey<Input = unknown> extends $ZodIssueBase {
567
- readonly code: "invalid_key";
568
- readonly origin: "map" | "record";
569
- readonly issues: $ZodIssue[];
570
- readonly input?: Input;
571
- }
572
- interface $ZodIssueInvalidElement<Input = unknown> extends $ZodIssueBase {
573
- readonly code: "invalid_element";
574
- readonly origin: "map" | "set";
575
- readonly key: unknown;
576
- readonly issues: $ZodIssue[];
577
- readonly input?: Input;
578
- }
579
- interface $ZodIssueInvalidValue<Input = unknown> extends $ZodIssueBase {
580
- readonly code: "invalid_value";
581
- readonly values: Primitive[];
582
- readonly input?: Input;
583
- }
584
- interface $ZodIssueCustom extends $ZodIssueBase {
585
- readonly code: "custom";
586
- readonly params?: Record<string, any> | undefined;
587
- readonly input?: unknown;
588
- }
589
- type $ZodIssue = $ZodIssueInvalidType | $ZodIssueTooBig | $ZodIssueTooSmall | $ZodIssueInvalidStringFormat | $ZodIssueNotMultipleOf | $ZodIssueUnrecognizedKeys | $ZodIssueInvalidUnion | $ZodIssueInvalidKey | $ZodIssueInvalidElement | $ZodIssueInvalidValue | $ZodIssueCustom;
590
- type $ZodInternalIssue<T extends $ZodIssueBase = $ZodIssue> = T extends any ? RawIssue<T> : never;
591
- type RawIssue<T extends $ZodIssueBase> = T extends any ? Flatten<MakePartial<T, "message" | "path"> & {
592
- /** The input data */readonly input: unknown; /** The schema or check that originated this issue. */
593
- readonly inst?: $ZodType | $ZodCheck; /** If `true`, Zod will continue executing checks/refinements after this issue. */
594
- readonly continue?: boolean | undefined;
595
- } & Record<string, unknown>> : never;
596
- type $ZodRawIssue<T extends $ZodIssueBase = $ZodIssue> = $ZodInternalIssue<T>;
597
- interface $ZodErrorMap<T extends $ZodIssueBase = $ZodIssue> {
598
- (issue: $ZodRawIssue<T>): {
599
- message: string;
600
- } | string | undefined | null;
601
- }
602
- interface $ZodError<T = unknown> extends Error {
603
- type: T;
604
- issues: $ZodIssue[];
605
- _zod: {
606
- output: T;
607
- def: $ZodIssue[];
608
- };
609
- stack?: string;
610
- name: string;
611
- }
612
- declare const $ZodError: $constructor<$ZodError>;
613
- //#endregion
614
- //#region node_modules/zod/v4/core/core.d.cts
615
- type ZodTrait = {
616
- _zod: {
617
- def: any;
618
- [k: string]: any;
619
- };
620
- };
621
- interface $constructor<T extends ZodTrait, D = T["_zod"]["def"]> {
622
- new (def: D): T;
623
- init(inst: T, def: D): asserts inst is T;
624
- }
625
- declare function $constructor<T extends ZodTrait, D = T["_zod"]["def"]>(name: string, initializer: (inst: T, def: D) => void, params?: {
626
- Parent?: typeof Class;
627
- }): $constructor<T, D>;
628
- declare const $brand: unique symbol;
629
- type $brand<T extends string | number | symbol = string | number | symbol> = {
630
- [$brand]: { [k in T]: true };
631
- };
632
- type $ZodBranded<T extends SomeType$1, Brand extends string | number | symbol, Dir extends "in" | "out" | "inout" = "out"> = T & (Dir extends "inout" ? {
633
- _zod: {
634
- input: input<T> & $brand<Brand>;
635
- output: output<T> & $brand<Brand>;
636
- };
637
- } : Dir extends "in" ? {
638
- _zod: {
639
- input: input<T> & $brand<Brand>;
640
- };
641
- } : {
642
- _zod: {
643
- output: output<T> & $brand<Brand>;
644
- };
645
- });
646
- type input<T> = T extends {
647
- _zod: {
648
- input: any;
649
- };
650
- } ? T["_zod"]["input"] : unknown;
651
- type output<T> = T extends {
652
- _zod: {
653
- output: any;
654
- };
655
- } ? T["_zod"]["output"] : unknown;
656
- //#endregion
657
- //#region node_modules/zod/v4/mini/schemas.d.cts
658
- type SomeType = SomeType$1;
659
- interface ZodMiniType<out Output = unknown, out Input = unknown, out Internals extends $ZodTypeInternals<Output, Input> = $ZodTypeInternals<Output, Input>> extends $ZodType<Output, Input, Internals> {
660
- type: Internals["def"]["type"];
661
- check(...checks: (CheckFn<output<this>> | $ZodCheck<output<this>>)[]): this;
662
- with(...checks: (CheckFn<output<this>> | $ZodCheck<output<this>>)[]): this;
663
- clone(def?: Internals["def"], params?: {
664
- parent: boolean;
665
- }): this;
666
- 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;
667
- brand<T extends PropertyKey = PropertyKey, Dir extends "in" | "out" | "inout" = "out">(value?: T): PropertyKey extends T ? this : $ZodBranded<this, T, Dir>;
668
- def: Internals["def"];
669
- parse(data: unknown, params?: ParseContext<$ZodIssue>): output<this>;
670
- safeParse(data: unknown, params?: ParseContext<$ZodIssue>): SafeParseResult<output<this>>;
671
- parseAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<output<this>>;
672
- safeParseAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<SafeParseResult<output<this>>>;
673
- apply<T>(fn: (schema: this) => T): T;
674
- }
675
- interface _ZodMiniType<out Internals extends $ZodTypeInternals = $ZodTypeInternals> extends ZodMiniType<any, any, Internals> {}
676
- declare const ZodMiniType: $constructor<ZodMiniType>;
677
- interface _ZodMiniString<T extends $ZodStringInternals<unknown> = $ZodStringInternals<unknown>> extends _ZodMiniType<T>, $ZodString<T["input"]> {
678
- _zod: T;
679
- }
680
- interface ZodMiniString<Input = unknown> extends _ZodMiniString<$ZodStringInternals<Input>>, $ZodString<Input> {}
681
- declare const ZodMiniString: $constructor<ZodMiniString>;
682
- interface _ZodMiniNumber<T extends $ZodNumberInternals<unknown> = $ZodNumberInternals<unknown>> extends _ZodMiniType<T>, $ZodNumber<T["input"]> {
683
- _zod: T;
684
- }
685
- interface ZodMiniNumber<Input = unknown> extends _ZodMiniNumber<$ZodNumberInternals<Input>>, $ZodNumber<Input> {}
686
- declare const ZodMiniNumber: $constructor<ZodMiniNumber>;
687
- interface ZodMiniBoolean<T = unknown> extends _ZodMiniType<$ZodBooleanInternals<T>> {}
688
- declare const ZodMiniBoolean: $constructor<ZodMiniBoolean>;
689
- interface ZodMiniUnknown extends _ZodMiniType<$ZodUnknownInternals> {}
690
- declare const ZodMiniUnknown: $constructor<ZodMiniUnknown>;
691
- interface ZodMiniArray<T extends SomeType = $ZodType> extends _ZodMiniType<$ZodArrayInternals<T>>, $ZodArray<T> {}
692
- declare const ZodMiniArray: $constructor<ZodMiniArray>;
693
- interface ZodMiniObject< /** @ts-ignore Cast variance */out Shape extends $ZodShape = $ZodShape, out Config extends $ZodObjectConfig = $strip> extends ZodMiniType<any, any, $ZodObjectInternals<Shape, Config>>, $ZodObject<Shape, Config> {
694
- shape: Shape;
695
- }
696
- declare const ZodMiniObject: $constructor<ZodMiniObject>;
697
- interface ZodMiniOptional<T extends SomeType = $ZodType> extends _ZodMiniType<$ZodOptionalInternals<T>>, $ZodOptional<T> {}
698
- declare const ZodMiniOptional: $constructor<ZodMiniOptional>;
699
- interface ZodMiniNullable<T extends SomeType = $ZodType> extends _ZodMiniType<$ZodNullableInternals<T>> {}
700
- declare const ZodMiniNullable: $constructor<ZodMiniNullable>;
701
- //#endregion
702
- export { ZodMiniObject as a, ZodMiniUnknown as c, ZodMiniNumber as i, output as l, ZodMiniBoolean as n, ZodMiniOptional as o, ZodMiniNullable as r, ZodMiniString as s, ZodMiniArray as t, $strip as u };