@cloudflare/vite-plugin 2.0.0-rc.1 → 2.0.0-rc.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.
package/dist/index.d.mts CHANGED
@@ -1,9 +1,3094 @@
1
+ /// <reference types="node" />
2
+ import { URL as URL$1, URLSearchParams } from "node:url";
3
+ import { IpcNetConnectOpts, Socket, TcpNetConnectOpts } from "node:net";
4
+ import { Duplex, Readable, Writable } from "node:stream";
5
+ import { EventEmitter } from "node:events";
6
+ import { Blob, File } from "node:buffer";
7
+ import { ConnectionOptions, TLSSocket } from "node:tls";
1
8
  import * as vite from "vite";
2
- import { ParsedCloudflareConfig, ParsedWorkerConfig } from "@cloudflare/config";
3
- import { CompatDate } from "@cloudflare/workers-utils";
4
-
9
+ //#region ../config/dist/public-BCKAFHC6.d.mts
10
+ //#endregion
11
+ //#region src/bindings.d.ts
12
+ /** Options that control a binding during local development. */
13
+ interface BindingDevOptions {
14
+ /** Whether the binding should connect to the remote resource. */
15
+ remote?: boolean;
16
+ }
17
+ type SendEmailDestinationOptions = {
18
+ /** If this binding should be restricted to a specific verified address. */
19
+ destinationAddress: string;
20
+ allowedDestinationAddresses?: never;
21
+ } | {
22
+ destinationAddress?: never;
23
+ /** If this binding should be restricted to a set of verified addresses. */
24
+ allowedDestinationAddresses: string[];
25
+ } | {
26
+ destinationAddress?: never;
27
+ allowedDestinationAddresses?: never;
28
+ };
29
+ type SendEmailBindingOptions = SendEmailDestinationOptions & {
30
+ /** If this binding should be restricted to a set of sender addresses. */
31
+ allowedSenderAddresses?: string[];
32
+ /** Options that only apply during local development. */
33
+ dev?: BindingDevOptions;
34
+ };
35
+ /**
36
+ * Binding for sending email from inside the Worker.
37
+ *
38
+ * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#email-bindings
39
+ */
40
+ type SendEmailBinding = SendEmailBindingOptions & {
41
+ type: "send-email";
42
+ };
43
+ type VpcNetworkBindingOptions = {
44
+ /** The tunnel ID of the Cloudflare Tunnel to route traffic through. Mutually exclusive with `networkId`. */
45
+ tunnelId: string;
46
+ networkId?: never;
47
+ /** Options that only apply during local development. */
48
+ dev?: BindingDevOptions;
49
+ } | {
50
+ tunnelId?: never;
51
+ /** The network ID to route traffic through. Mutually exclusive with `tunnelId`. */
52
+ networkId: string;
53
+ /** Options that only apply during local development. */
54
+ dev?: BindingDevOptions;
55
+ };
56
+ /** Binding to a VPC network. */
57
+ type VpcNetworkBinding = VpcNetworkBindingOptions & {
58
+ type: "vpc-network";
59
+ };
60
+ //#endregion
61
+ //#region ../../node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/json-schema.d.cts
62
+ type _JSONSchema = boolean | JSONSchema;
63
+ type SchemaType = "object" | "array" | "string" | "number" | "boolean" | "null" | "integer";
64
+ type JSONSchema = {
65
+ [k: string]: unknown;
66
+ $schema?: "https://json-schema.org/draft/2020-12/schema" | "http://json-schema.org/draft-07/schema#" | "http://json-schema.org/draft-04/schema#";
67
+ $id?: string;
68
+ $anchor?: string;
69
+ $ref?: string;
70
+ $dynamicRef?: string;
71
+ $dynamicAnchor?: string;
72
+ $vocabulary?: Record<string, boolean>;
73
+ $comment?: string;
74
+ $defs?: Record<string, JSONSchema>;
75
+ type?: SchemaType | SchemaType[];
76
+ additionalItems?: _JSONSchema;
77
+ unevaluatedItems?: _JSONSchema;
78
+ prefixItems?: _JSONSchema[];
79
+ items?: _JSONSchema | _JSONSchema[];
80
+ contains?: _JSONSchema;
81
+ additionalProperties?: _JSONSchema;
82
+ unevaluatedProperties?: _JSONSchema;
83
+ properties?: Record<string, _JSONSchema>;
84
+ patternProperties?: Record<string, _JSONSchema>;
85
+ dependentSchemas?: Record<string, _JSONSchema>;
86
+ propertyNames?: _JSONSchema;
87
+ if?: _JSONSchema;
88
+ then?: _JSONSchema;
89
+ else?: _JSONSchema;
90
+ allOf?: JSONSchema[];
91
+ anyOf?: JSONSchema[];
92
+ oneOf?: JSONSchema[];
93
+ not?: _JSONSchema;
94
+ multipleOf?: number;
95
+ maximum?: number;
96
+ exclusiveMaximum?: number | boolean;
97
+ minimum?: number;
98
+ exclusiveMinimum?: number | boolean;
99
+ maxLength?: number;
100
+ minLength?: number;
101
+ pattern?: string;
102
+ maxItems?: number;
103
+ minItems?: number;
104
+ uniqueItems?: boolean;
105
+ maxContains?: number;
106
+ minContains?: number;
107
+ maxProperties?: number;
108
+ minProperties?: number;
109
+ required?: string[];
110
+ dependentRequired?: Record<string, string[]>;
111
+ enum?: Array<string | number | boolean | null>;
112
+ const?: string | number | boolean | null;
113
+ id?: string;
114
+ title?: string;
115
+ description?: string;
116
+ default?: unknown;
117
+ deprecated?: boolean;
118
+ readOnly?: boolean;
119
+ writeOnly?: boolean;
120
+ nullable?: boolean;
121
+ examples?: unknown[];
122
+ format?: string;
123
+ contentMediaType?: string;
124
+ contentEncoding?: string;
125
+ contentSchema?: JSONSchema;
126
+ _prefault?: unknown;
127
+ };
128
+ type BaseSchema = JSONSchema;
129
+ //#endregion
130
+ //#region ../../node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/standard-schema.d.cts
131
+ /** The Standard interface. */
132
+ interface StandardTypedV1<Input = unknown, Output = Input> {
133
+ /** The Standard properties. */
134
+ readonly "~standard": StandardTypedV1.Props<Input, Output>;
135
+ }
136
+ declare namespace StandardTypedV1 {
137
+ /** The Standard properties interface. */
138
+ interface Props<Input = unknown, Output = Input> {
139
+ /** The version number of the standard. */
140
+ readonly version: 1;
141
+ /** The vendor name of the schema library. */
142
+ readonly vendor: string;
143
+ /** Inferred types associated with the schema. */
144
+ readonly types?: Types<Input, Output> | undefined;
145
+ }
146
+ /** The Standard types interface. */
147
+ interface Types<Input = unknown, Output = Input> {
148
+ /** The input type of the schema. */
149
+ readonly input: Input;
150
+ /** The output type of the schema. */
151
+ readonly output: Output;
152
+ }
153
+ /** Infers the input type of a Standard. */
154
+ type InferInput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["input"];
155
+ /** Infers the output type of a Standard. */
156
+ type InferOutput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["output"];
157
+ }
158
+ /** The Standard Schema interface. */
159
+ interface StandardSchemaV1<Input = unknown, Output = Input> {
160
+ /** The Standard Schema properties. */
161
+ readonly "~standard": StandardSchemaV1.Props<Input, Output>;
162
+ }
163
+ declare namespace StandardSchemaV1 {
164
+ /** The Standard Schema properties interface. */
165
+ interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<Input, Output> {
166
+ /** Validates unknown input values. */
167
+ readonly validate: (value: unknown, options?: StandardSchemaV1.Options | undefined) => Result<Output> | Promise<Result<Output>>;
168
+ }
169
+ /** The result interface of the validate function. */
170
+ type Result<Output> = SuccessResult<Output> | FailureResult;
171
+ /** The result interface if validation succeeds. */
172
+ interface SuccessResult<Output> {
173
+ /** The typed output value. */
174
+ readonly value: Output;
175
+ /** The absence of issues indicates success. */
176
+ readonly issues?: undefined;
177
+ }
178
+ interface Options {
179
+ /** Implicit support for additional vendor-specific parameters, if needed. */
180
+ readonly libraryOptions?: Record<string, unknown> | undefined;
181
+ }
182
+ /** The result interface if validation fails. */
183
+ interface FailureResult {
184
+ /** The issues of failed validation. */
185
+ readonly issues: ReadonlyArray<Issue>;
186
+ }
187
+ /** The issue interface of the failure output. */
188
+ interface Issue {
189
+ /** The error message of the issue. */
190
+ readonly message: string;
191
+ /** The path of the issue, if any. */
192
+ readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
193
+ }
194
+ /** The path segment interface of the issue. */
195
+ interface PathSegment {
196
+ /** The key representing a path segment. */
197
+ readonly key: PropertyKey;
198
+ }
199
+ /** The Standard types interface. */
200
+ interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<Input, Output> {}
201
+ /** Infers the input type of a Standard. */
202
+ type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>;
203
+ /** Infers the output type of a Standard. */
204
+ type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
205
+ }
206
+ /** The Standard JSON Schema interface. */
207
+ interface StandardJSONSchemaV1<Input = unknown, Output = Input> {
208
+ /** The Standard JSON Schema properties. */
209
+ readonly "~standard": StandardJSONSchemaV1.Props<Input, Output>;
210
+ }
211
+ declare namespace StandardJSONSchemaV1 {
212
+ /** The Standard JSON Schema properties interface. */
213
+ interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<Input, Output> {
214
+ /** Methods for generating the input/output JSON Schema. */
215
+ readonly jsonSchema: Converter;
216
+ }
217
+ /** The Standard JSON Schema converter interface. */
218
+ interface Converter {
219
+ /** Converts the input type to JSON Schema. May throw if conversion is not supported. */
220
+ readonly input: (options: StandardJSONSchemaV1.Options) => Record<string, unknown>;
221
+ /** Converts the output type to JSON Schema. May throw if conversion is not supported. */
222
+ readonly output: (options: StandardJSONSchemaV1.Options) => Record<string, unknown>;
223
+ }
224
+ /** The target version of the generated JSON Schema.
225
+ *
226
+ * It is *strongly recommended* that implementers support `"draft-2020-12"` and `"draft-07"`, as they are both in wide use.
227
+ *
228
+ * The `"openapi-3.0"` target is intended as a standardized specifier for OpenAPI 3.0 which is a superset of JSON Schema `"draft-04"`.
229
+ *
230
+ * All other targets can be implemented on a best-effort basis. Libraries should throw if they don't support a specified target.
231
+ */
232
+ type Target = "draft-2020-12" | "draft-07" | "openapi-3.0" | ({} & string);
233
+ /** The options for the input/output methods. */
234
+ interface Options {
235
+ /** Specifies the target version of the generated JSON Schema. Support for all versions is on a best-effort basis. If a given version is not supported, the library should throw. */
236
+ readonly target: Target;
237
+ /** Implicit support for additional vendor-specific parameters, if needed. */
238
+ readonly libraryOptions?: Record<string, unknown> | undefined;
239
+ }
240
+ /** The Standard types interface. */
241
+ interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<Input, Output> {}
242
+ /** Infers the input type of a Standard. */
243
+ type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>;
244
+ /** Infers the output type of a Standard. */
245
+ type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
246
+ }
247
+ interface StandardSchemaWithJSONProps<Input = unknown, Output = Input> extends StandardSchemaV1.Props<Input, Output>, StandardJSONSchemaV1.Props<Input, Output> {}
248
+ //#endregion
249
+ //#region ../../node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/registries.d.cts
250
+ declare const $output: unique symbol;
251
+ type $output = typeof $output;
252
+ declare const $input: unique symbol;
253
+ type $input = typeof $input;
254
+ 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;
255
+ type MetadataType = object | undefined;
256
+ declare class $ZodRegistry<Meta extends MetadataType = MetadataType, Schema extends $ZodType = $ZodType> {
257
+ _meta: Meta;
258
+ _schema: Schema;
259
+ _map: WeakMap<Schema, $replace<Meta, Schema>>;
260
+ _idmap: Map<string, Schema>;
261
+ add<S extends Schema>(schema: S, ..._meta: undefined extends Meta ? [$replace<Meta, S>?] : [$replace<Meta, S>]): this;
262
+ clear(): this;
263
+ remove(schema: Schema): this;
264
+ get<S extends Schema>(schema: S): $replace<Meta, S> | undefined;
265
+ has(schema: Schema): boolean;
266
+ }
267
+ interface JSONSchemaMeta {
268
+ id?: string | undefined;
269
+ title?: string | undefined;
270
+ description?: string | undefined;
271
+ deprecated?: boolean | undefined;
272
+ [k: string]: unknown;
273
+ }
274
+ interface GlobalMeta extends JSONSchemaMeta {}
275
+ //#endregion
276
+ //#region ../../node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/to-json-schema.d.cts
277
+ type Processor<T extends $ZodType = $ZodType> = (schema: T, ctx: ToJSONSchemaContext, json: BaseSchema, params: ProcessParams) => void;
278
+ /**
279
+ * Called for each schema that has no JSON Schema equivalent. Return a JSON Schema to use in its
280
+ * place, `"any"` to fall back to the `unrepresentable: "any"` behavior, or `"throw"`/`undefined` to
281
+ * throw the default error. Throwing from the handler propagates, so custom errors work too.
282
+ */
283
+ type UnrepresentableHandler<T extends $ZodType = $ZodType> = (ctx: {
284
+ zodSchema: T;
285
+ path: (string | number)[];
286
+ /** The error Zod would throw. Distinguishes sites that share a `zodSchema`, e.g. an `undefined`
287
+ * vs a `bigint` member of the same literal. */
288
+ message: string;
289
+ }) => BaseSchema | "throw" | "any" | undefined;
290
+ interface JSONSchemaGeneratorParams {
291
+ processors: Record<string, Processor>;
292
+ /** A registry used to look up metadata for each schema. Any schema with an `id` property will be extracted as a $def.
293
+ * @default globalRegistry */
294
+ metadata?: $ZodRegistry<Record<string, any>>;
295
+ /** The JSON Schema version to target.
296
+ * - `"draft-2020-12"` — Default. JSON Schema Draft 2020-12
297
+ * - `"draft-07"` — JSON Schema Draft 7
298
+ * - `"draft-04"` — JSON Schema Draft 4
299
+ * - `"openapi-3.0"` — OpenAPI 3.0 Schema Object */
300
+ target?: "draft-04" | "draft-07" | "draft-2020-12" | "openapi-3.0" | ({} & string) | undefined;
301
+ /** How to handle unrepresentable types.
302
+ * - `"throw"` — Default. Unrepresentable types throw an error
303
+ * - `"any"` — Unrepresentable types become `{}`
304
+ * - A function — called once per unrepresentable schema; see {@link UnrepresentableHandler}. */
305
+ unrepresentable?: "throw" | "any" | UnrepresentableHandler<$ZodTypes>;
306
+ /** Arbitrary custom logic that can be used to modify the generated JSON Schema. */
307
+ override?: (ctx: {
308
+ zodSchema: $ZodTypes;
309
+ jsonSchema: BaseSchema;
310
+ path: (string | number)[];
311
+ }) => void;
312
+ /** Whether to extract the `"input"` or `"output"` type. Relevant to transforms, defaults, coerced primitives, etc.
313
+ * - `"output"` — Default. Convert the output schema.
314
+ * - `"input"` — Convert the input schema. */
315
+ io?: "input" | "output";
316
+ cycles?: "ref" | "throw";
317
+ reused?: "ref" | "inline";
318
+ external?: {
319
+ registry: $ZodRegistry<{
320
+ id?: string | undefined;
321
+ }>;
322
+ uri?: ((id: string) => string) | undefined;
323
+ defs: Record<string, BaseSchema>;
324
+ } | undefined;
325
+ }
326
+ /**
327
+ * Parameters for the toJSONSchema function.
328
+ */
329
+ type ToJSONSchemaParams = Omit<JSONSchemaGeneratorParams, "processors" | "external">;
330
+ interface ProcessParams {
331
+ schemaPath: $ZodType[];
332
+ path: (string | number)[];
333
+ }
334
+ interface Seen {
335
+ /** JSON Schema result for this Zod schema */
336
+ schema: BaseSchema;
337
+ /** A cached version of the schema that doesn't get overwritten during ref resolution */
338
+ def?: BaseSchema;
339
+ defId?: string | undefined;
340
+ /** Number of times this schema was encountered during traversal */
341
+ count: number;
342
+ /** Cycle path */
343
+ cycle?: (string | number)[] | undefined;
344
+ isParent?: boolean | undefined;
345
+ /** Schema to inherit JSON Schema properties from (set by processor for wrappers) */
346
+ ref?: $ZodType | null;
347
+ /** JSON Schema property path for this schema */
348
+ path?: (string | number)[] | undefined;
349
+ }
350
+ interface ToJSONSchemaContext {
351
+ processors: Record<string, Processor>;
352
+ metadataRegistry: $ZodRegistry<Record<string, any>>;
353
+ target: "draft-04" | "draft-07" | "draft-2020-12" | "openapi-3.0" | ({} & string);
354
+ unrepresentable: "throw" | "any" | UnrepresentableHandler;
355
+ override: (ctx: {
356
+ zodSchema: $ZodType;
357
+ jsonSchema: BaseSchema;
358
+ path: (string | number)[];
359
+ }) => void;
360
+ io: "input" | "output";
361
+ counter: number;
362
+ seen: Map<$ZodType, Seen>;
363
+ /** Registry conversions share one `seen` map across every emitted schema. These hold the
364
+ * `external` the whole-map passes below last ran for, so the passes are not repeated once per
365
+ * schema — and still re-run if the map grows or `external` is swapped. `sharedEmitDoneFor`
366
+ * covers both passes in `finalize`: the ref flattening and the `$defs` build.
367
+ *
368
+ * The passes are valid only while nothing they read has changed, so both are cleared in
369
+ * `processSchema()` when the map grows, and in `JSONSchemaGenerator.emit()`, which can also change
370
+ * the `cycles` and `reused` they branch on.
371
+ *
372
+ * One case is deliberately not covered: an `override` callback that writes to
373
+ * `metadataRegistry` mid-conversion. It runs inside `finalize`, so a registry conversion has
374
+ * nowhere left to clear the guards, and later schemas keep the ids the first pass saw. That
375
+ * output was never coherent — before this, whether a shared subschema was inlined or extracted
376
+ * depended on which registry entry happened to be emitted when the callback fired. */
377
+ sharedDefsExtractedFor?: ToJSONSchemaContext["external"];
378
+ sharedEmitDoneFor?: ToJSONSchemaContext["external"];
379
+ cycles: "ref" | "throw";
380
+ reused: "ref" | "inline";
381
+ /** The `allOf` array of each intersection encountered during traversal, innermost first. `finalize` folds every emitted object holding one; see `foldIntersection`. */
382
+ intersections: BaseSchema[][];
383
+ /** Rewrites a processor deferred to `finalize`, where the flatten has resolved every ref and the union branches are in place. */
384
+ deferred: (() => void)[];
385
+ external?: {
386
+ registry: $ZodRegistry<{
387
+ id?: string | undefined;
388
+ }>;
389
+ uri?: ((id: string) => string) | undefined;
390
+ defs: Record<string, BaseSchema>;
391
+ } | undefined;
392
+ }
393
+ type ZodStandardSchemaWithJSON$1<T> = StandardSchemaWithJSONProps<input$1<T>, output$1<T>>;
394
+ interface ZodStandardJSONSchemaPayload<T> extends BaseSchema {
395
+ "~standard": ZodStandardSchemaWithJSON$1<T>;
396
+ }
397
+ //#endregion
398
+ //#region ../../node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/util.d.cts
399
+ type JSONType = string | number | boolean | null | JSONType[] | {
400
+ [key: string]: JSONType;
401
+ };
402
+ type JWTAlgorithm = "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | (string & {});
403
+ 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 & {});
404
+ type IsAny<T> = 0 extends 1 & T ? true : false;
405
+ type Omit$1<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
406
+ type MakePartial<T, K extends keyof T> = Omit$1<T, K> & InexactPartial<Pick<T, K>>;
407
+ type NoUndefined<T> = T extends undefined ? never : T;
408
+ type LoosePartial<T extends object> = InexactPartial<T> & {
409
+ [k: string]: unknown;
410
+ };
411
+ type Mask<Keys extends PropertyKey> = { [K in Keys]?: true; };
412
+ type Writeable<T> = { -readonly [P in keyof T]: T[P]; } & {};
413
+ type InexactPartial<T> = { [P in keyof T]?: T[P] | undefined; };
414
+ type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | {
415
+ readonly [Symbol.toStringTag]: string;
416
+ } | Date | Error | Generator | Promise<unknown> | RegExp;
417
+ type MakeReadonly<T> = T extends Map<infer K, infer V> ? ReadonlyMap<K, V> : T extends Set<infer V> ? ReadonlySet<V> : T extends [infer Head, ...infer Tail] ? readonly [Head, ...Tail] : T extends Array<infer V> ? ReadonlyArray<V> : T extends BuiltIn ? T : Readonly<T>;
418
+ type SomeObject = Record<PropertyKey, any>;
419
+ type Identity<T> = T;
420
+ type Flatten<T> = Identity<{ [k in keyof T]: T[k]; }>;
421
+ type Prettify<T> = { [K in keyof T]: T[K]; } & {};
422
+ 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]; }>;
423
+ type TupleItems = ReadonlyArray<SomeType>;
424
+ type AnyFunc = (...args: any[]) => any;
425
+ type MaybeAsync<T> = T | Promise<T>;
426
+ type EnumValue = string | number;
427
+ type EnumLike = Readonly<Record<string, EnumValue>>;
428
+ type ToEnum<T extends EnumValue> = Flatten<{ [k in T]: k; }>;
429
+ type Literal = string | number | bigint | boolean | null | undefined;
430
+ type Primitive = string | number | symbol | bigint | boolean | null | undefined;
431
+ type HasLength = {
432
+ length: number;
433
+ };
434
+ type Numeric = number | bigint | Date;
435
+ type PropValues = Record<string, Set<Primitive>>;
436
+ type PrimitiveSet = Set<Primitive>;
437
+ type EmptyToNever<T> = keyof T extends never ? never : T;
438
+ declare abstract class Class {
439
+ constructor(..._args: any[]);
440
+ }
441
+ /** A trait's prototype members: a partial view of its own interface, with `this` typed as the instance. */
442
+ type ProtoOf<T> = { [K in keyof T]?: (T[K] extends ((...args: infer A) => infer R) ? (...args: A) => R : T[K]) | undefined; } & ThisType<T>;
443
+ //#endregion
444
+ //#region ../../node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/versions.d.cts
445
+ declare const version$1: {
446
+ readonly major: 4;
447
+ readonly minor: 6;
448
+ readonly patch: number;
449
+ };
450
+ //#endregion
451
+ //#region ../../node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/schemas.d.cts
452
+ interface ParseContext<T extends $ZodIssueBase = never> {
453
+ /** Customize error messages. */
454
+ readonly error?: $ZodErrorMap<T>;
455
+ /** Include the `input` field in issue objects. Default `false`. */
456
+ readonly reportInput?: boolean;
457
+ /** Skip eval-based fast path. Default `false`. */
458
+ readonly jitless?: boolean;
459
+ }
460
+ /** @internal */
461
+ interface ParseContextInternal<T extends $ZodIssueBase = never> extends ParseContext<T> {
462
+ readonly async?: boolean | undefined;
463
+ readonly direction?: "forward" | "backward";
464
+ readonly skipChecks?: boolean;
465
+ /** 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. */
466
+ readonly abortEarly?: boolean;
467
+ }
468
+ interface ParsePayload<T = unknown> {
469
+ value: T;
470
+ issues: $ZodRawIssue[];
471
+ /** A way to mark a whole payload as aborted. Used in codecs/pipes. */
472
+ aborted?: boolean;
473
+ /** @internal Set when the value came from a repeat visit to a node still being
474
+ * parsed. Its checks run on the node itself, against the finished value. */
475
+ memo?: boolean | undefined;
476
+ }
477
+ type CheckFn<T> = (input: ParsePayload<T>) => MaybeAsync<void>;
478
+ interface $ZodTypeDef {
479
+ 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";
480
+ error?: $ZodErrorMap<never> | undefined;
481
+ checks?: $ZodCheck<never>[];
482
+ }
483
+ interface _$ZodTypeInternals {
484
+ /** The `@zod/core` version of this schema */
485
+ version: typeof version$1;
486
+ /** Schema definition. */
487
+ def: $ZodTypeDef;
488
+ /** @internal Randomly generated ID for this schema. */
489
+ /** @internal List of deferred initializers. */
490
+ deferred: AnyFunc[] | undefined;
491
+ /** @internal Parses input and runs all checks (refinements). */
492
+ run(payload: ParsePayload<any>, ctx: ParseContextInternal): MaybeAsync<ParsePayload>;
493
+ /** @internal Parses input, doesn't run checks. */
494
+ parse(payload: ParsePayload<any>, ctx: ParseContextInternal): MaybeAsync<ParsePayload>;
495
+ /** @internal Stores identifiers for the set of traits implemented by this schema. */
496
+ traits: Set<string>;
497
+ /** @internal Indicates that a schema output type should be considered optional inside objects.
498
+ * @default Required
499
+ */
500
+ /** @internal Three rungs, each strictly stronger than the last:
501
+ * undefined — required; the container may not omit this slot
502
+ * "optional" — the container may omit it; nothing is supplied in its place
503
+ * "defaulted" — the container may omit it AND this schema substitutes a value
504
+ * Consumers asking "may the slot be absent?" test `!== undefined`.
505
+ * $ZodOptional asks the stronger question and tests `=== "defaulted"`. */
506
+ optin?: "optional" | "defaulted" | undefined;
507
+ /** @internal */
508
+ optout?: "optional" | undefined;
509
+ /** @internal The set of literal values that will pass validation. Must be an exhaustive set. Used to determine optionality in z.record().
510
+ *
511
+ * Defined on: enum, const, literal, null, undefined
512
+ * Passthrough: optional, nullable, branded, default, catch, pipe
513
+ * Todo: unions?
514
+ */
515
+ values?: PrimitiveSet | undefined;
516
+ /** Default value bubbled up from */
517
+ /** @internal A set of literal discriminators used for the fast path in discriminated unions. */
518
+ propValues?: PropValues | undefined;
519
+ /** @internal This flag indicates that a schema validation can be represented with a regular expression. Used to determine allowable schemas in z.templateLiteral(). */
520
+ pattern: RegExp | undefined;
521
+ /** @internal The constructor function of this schema. */
522
+ constr: new (def: any) => $ZodType;
523
+ /** @internal A catchall object for bag metadata related to this schema. Commonly modified by checks using `onattach`. */
524
+ bag: Record<string, unknown>;
525
+ /** @internal The set of issues this schema might throw during type checking. */
526
+ isst: $ZodIssueBase;
527
+ /** @internal Subject to change, not a public API. */
528
+ processJSONSchema?: ((ctx: ToJSONSchemaContext, json: BaseSchema, params: ProcessParams) => void) | undefined;
529
+ /** An optional method used to override `toJSONSchema` logic. */
530
+ toJSONSchema?: () => unknown;
531
+ /** @internal The parent of this schema. Only set during certain clone operations. */
532
+ parent?: $ZodType | undefined;
533
+ }
534
+ /** @internal */
535
+ interface $ZodTypeInternals<out O = unknown, out I = unknown> extends _$ZodTypeInternals {
536
+ /** @internal The inferred output type */
537
+ output: O;
538
+ /** @internal The inferred input type */
539
+ input: I;
540
+ }
541
+ type $ZodStandardSchema<T> = StandardSchemaV1.Props<input$1<T>, output$1<T>>;
542
+ type SomeType = {
543
+ _zod: _$ZodTypeInternals;
544
+ };
545
+ interface $ZodType<O = unknown, I = unknown, Internals extends $ZodTypeInternals<O, I> = $ZodTypeInternals<O, I>> {
546
+ _zod: Internals;
547
+ "~standard": $ZodStandardSchema<this>;
548
+ }
549
+ interface _$ZodType<T extends $ZodTypeInternals = $ZodTypeInternals> extends $ZodType<T["output"], T["input"], T> {}
550
+ declare const $ZodType: $constructor<$ZodType>;
551
+ interface $ZodStringDef extends $ZodTypeDef {
552
+ type: "string";
553
+ coerce?: boolean;
554
+ checks?: $ZodCheck<string>[];
555
+ }
556
+ interface $ZodStringInternals<Input> extends $ZodTypeInternals<string, Input> {
557
+ def: $ZodStringDef;
558
+ /** @deprecated Internal API, use with caution (not deprecated) */
559
+ pattern: RegExp;
560
+ /** @deprecated Internal API, use with caution (not deprecated) */
561
+ isst: $ZodIssueInvalidType;
562
+ bag: LoosePartial<{
563
+ minimum: number;
564
+ maximum: number;
565
+ patterns: Set<RegExp>;
566
+ format: string;
567
+ contentEncoding: string;
568
+ /** the pattern admits strings its `format` keyword forbids, so `toJSONSchema` must not emit it */
569
+ laxFormat: boolean;
570
+ }>;
571
+ }
572
+ interface $ZodString<Input = unknown> extends _$ZodType<$ZodStringInternals<Input>> {}
573
+ declare const $ZodString: $constructor<$ZodString>;
574
+ interface $ZodStringFormatDef<Format extends string = string> extends $ZodStringDef, $ZodCheckStringFormatDef<Format> {}
575
+ interface $ZodStringFormatInternals<Format extends string = string> extends $ZodStringInternals<string>, $ZodCheckStringFormatInternals {
576
+ def: $ZodStringFormatDef<Format>;
577
+ }
578
+ interface $ZodStringFormat<Format extends string = string> extends $ZodType {
579
+ _zod: $ZodStringFormatInternals<Format>;
580
+ }
581
+ declare const $ZodStringFormat: $constructor<$ZodStringFormat>;
582
+ interface $ZodGUIDInternals extends $ZodStringFormatInternals<"guid"> {}
583
+ interface $ZodGUID extends $ZodType {
584
+ _zod: $ZodGUIDInternals;
585
+ }
586
+ declare const $ZodGUID: $constructor<$ZodGUID>;
587
+ interface $ZodUUIDDef extends $ZodStringFormatDef<"uuid"> {
588
+ version?: "v1" | "v2" | "v3" | "v4" | "v5" | "v6" | "v7" | "v8";
589
+ }
590
+ interface $ZodUUIDInternals extends $ZodStringFormatInternals<"uuid"> {
591
+ def: $ZodUUIDDef;
592
+ }
593
+ interface $ZodUUID extends $ZodType {
594
+ _zod: $ZodUUIDInternals;
595
+ }
596
+ declare const $ZodUUID: $constructor<$ZodUUID>;
597
+ interface $ZodEmailInternals extends $ZodStringFormatInternals<"email"> {}
598
+ interface $ZodEmail extends $ZodType {
599
+ _zod: $ZodEmailInternals;
600
+ }
601
+ declare const $ZodEmail: $constructor<$ZodEmail>;
602
+ interface $ZodURLDef extends $ZodStringFormatDef<"url"> {
603
+ hostname?: RegExp | undefined;
604
+ protocol?: RegExp | undefined;
605
+ normalize?: boolean | undefined;
606
+ }
607
+ interface $ZodURLInternals extends $ZodStringFormatInternals<"url"> {
608
+ def: $ZodURLDef;
609
+ }
610
+ interface $ZodURL extends $ZodType {
611
+ _zod: $ZodURLInternals;
612
+ }
613
+ declare const $ZodURL: $constructor<$ZodURL>;
614
+ interface $ZodEmojiInternals extends $ZodStringFormatInternals<"emoji"> {}
615
+ interface $ZodEmoji extends $ZodType {
616
+ _zod: $ZodEmojiInternals;
617
+ }
618
+ declare const $ZodEmoji: $constructor<$ZodEmoji>;
619
+ interface $ZodNanoIDDef extends $ZodStringFormatDef<"nanoid"> {
620
+ length?: number | undefined;
621
+ }
622
+ interface $ZodNanoIDInternals extends $ZodStringFormatInternals<"nanoid"> {
623
+ def: $ZodNanoIDDef;
624
+ }
625
+ interface $ZodNanoID extends $ZodType {
626
+ _zod: $ZodNanoIDInternals;
627
+ }
628
+ declare const $ZodNanoID: $constructor<$ZodNanoID>;
629
+ /**
630
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
631
+ * (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
632
+ * See https://github.com/paralleldrive/cuid.
633
+ */
634
+ interface $ZodCUIDInternals extends $ZodStringFormatInternals<"cuid"> {}
635
+ /**
636
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
637
+ * (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
638
+ * See https://github.com/paralleldrive/cuid.
639
+ */
640
+ interface $ZodCUID extends $ZodType {
641
+ _zod: $ZodCUIDInternals;
642
+ }
643
+ /**
644
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
645
+ * (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
646
+ * See https://github.com/paralleldrive/cuid.
647
+ */
648
+ declare const $ZodCUID: $constructor<$ZodCUID>;
649
+ interface $ZodCUID2Internals extends $ZodStringFormatInternals<"cuid2"> {}
650
+ interface $ZodCUID2 extends $ZodType {
651
+ _zod: $ZodCUID2Internals;
652
+ }
653
+ declare const $ZodCUID2: $constructor<$ZodCUID2>;
654
+ interface $ZodULIDInternals extends $ZodStringFormatInternals<"ulid"> {}
655
+ interface $ZodULID extends $ZodType {
656
+ _zod: $ZodULIDInternals;
657
+ }
658
+ declare const $ZodULID: $constructor<$ZodULID>;
659
+ interface $ZodXIDInternals extends $ZodStringFormatInternals<"xid"> {}
660
+ interface $ZodXID extends $ZodType {
661
+ _zod: $ZodXIDInternals;
662
+ }
663
+ declare const $ZodXID: $constructor<$ZodXID>;
664
+ interface $ZodKSUIDInternals extends $ZodStringFormatInternals<"ksuid"> {}
665
+ interface $ZodKSUID extends $ZodType {
666
+ _zod: $ZodKSUIDInternals;
667
+ }
668
+ declare const $ZodKSUID: $constructor<$ZodKSUID>;
669
+ interface $ZodISODateTimeDef extends $ZodStringFormatDef<"datetime"> {
670
+ precision: number | null;
671
+ offset: boolean;
672
+ local: boolean;
673
+ }
674
+ interface $ZodISODateTimeInternals extends $ZodStringFormatInternals {
675
+ def: $ZodISODateTimeDef;
676
+ }
677
+ interface $ZodISODateTime extends $ZodType {
678
+ _zod: $ZodISODateTimeInternals;
679
+ }
680
+ declare const $ZodISODateTime: $constructor<$ZodISODateTime>;
681
+ interface $ZodISODateInternals extends $ZodStringFormatInternals<"date"> {}
682
+ interface $ZodISODate extends $ZodType {
683
+ _zod: $ZodISODateInternals;
684
+ }
685
+ declare const $ZodISODate: $constructor<$ZodISODate>;
686
+ interface $ZodISOTimeDef extends $ZodStringFormatDef<"time"> {
687
+ precision?: number | null;
688
+ }
689
+ interface $ZodISOTimeInternals extends $ZodStringFormatInternals<"time"> {
690
+ def: $ZodISOTimeDef;
691
+ }
692
+ interface $ZodISOTime extends $ZodType {
693
+ _zod: $ZodISOTimeInternals;
694
+ }
695
+ declare const $ZodISOTime: $constructor<$ZodISOTime>;
696
+ interface $ZodISODurationInternals extends $ZodStringFormatInternals<"duration"> {}
697
+ interface $ZodISODuration extends $ZodType {
698
+ _zod: $ZodISODurationInternals;
699
+ }
700
+ declare const $ZodISODuration: $constructor<$ZodISODuration>;
701
+ interface $ZodIPv4Def extends $ZodStringFormatDef<"ipv4"> {
702
+ version?: "v4";
703
+ }
704
+ interface $ZodIPv4Internals extends $ZodStringFormatInternals<"ipv4"> {
705
+ def: $ZodIPv4Def;
706
+ }
707
+ interface $ZodIPv4 extends $ZodType {
708
+ _zod: $ZodIPv4Internals;
709
+ }
710
+ declare const $ZodIPv4: $constructor<$ZodIPv4>;
711
+ interface $ZodIPv6Def extends $ZodStringFormatDef<"ipv6"> {
712
+ version?: "v6";
713
+ }
714
+ interface $ZodIPv6Internals extends $ZodStringFormatInternals<"ipv6"> {
715
+ def: $ZodIPv6Def;
716
+ }
717
+ interface $ZodIPv6 extends $ZodType {
718
+ _zod: $ZodIPv6Internals;
719
+ }
720
+ declare const $ZodIPv6: $constructor<$ZodIPv6>;
721
+ interface $ZodCIDRv4Def extends $ZodStringFormatDef<"cidrv4"> {
722
+ version?: "v4";
723
+ }
724
+ interface $ZodCIDRv4Internals extends $ZodStringFormatInternals<"cidrv4"> {
725
+ def: $ZodCIDRv4Def;
726
+ }
727
+ interface $ZodCIDRv4 extends $ZodType {
728
+ _zod: $ZodCIDRv4Internals;
729
+ }
730
+ declare const $ZodCIDRv4: $constructor<$ZodCIDRv4>;
731
+ interface $ZodCIDRv6Def extends $ZodStringFormatDef<"cidrv6"> {
732
+ version?: "v6";
733
+ }
734
+ interface $ZodCIDRv6Internals extends $ZodStringFormatInternals<"cidrv6"> {
735
+ def: $ZodCIDRv6Def;
736
+ }
737
+ interface $ZodCIDRv6 extends $ZodType {
738
+ _zod: $ZodCIDRv6Internals;
739
+ }
740
+ declare const $ZodCIDRv6: $constructor<$ZodCIDRv6>;
741
+ interface $ZodBase64Internals extends $ZodStringFormatInternals<"base64"> {}
742
+ interface $ZodBase64 extends $ZodType {
743
+ _zod: $ZodBase64Internals;
744
+ }
745
+ declare const $ZodBase64: $constructor<$ZodBase64>;
746
+ interface $ZodBase64URLInternals extends $ZodStringFormatInternals<"base64url"> {}
747
+ interface $ZodBase64URL extends $ZodType {
748
+ _zod: $ZodBase64URLInternals;
749
+ }
750
+ declare const $ZodBase64URL: $constructor<$ZodBase64URL>;
751
+ interface $ZodE164Internals extends $ZodStringFormatInternals<"e164"> {}
752
+ interface $ZodE164 extends $ZodType {
753
+ _zod: $ZodE164Internals;
754
+ }
755
+ declare const $ZodE164: $constructor<$ZodE164>;
756
+ interface $ZodJWTDef extends $ZodStringFormatDef<"jwt"> {
757
+ alg?: JWTAlgorithm | undefined;
758
+ }
759
+ interface $ZodJWTInternals extends $ZodStringFormatInternals<"jwt"> {
760
+ def: $ZodJWTDef;
761
+ }
762
+ interface $ZodJWT extends $ZodType {
763
+ _zod: $ZodJWTInternals;
764
+ }
765
+ declare const $ZodJWT: $constructor<$ZodJWT>;
766
+ interface $ZodNumberDef extends $ZodTypeDef {
767
+ type: "number";
768
+ coerce?: boolean;
769
+ }
770
+ interface $ZodNumberInternals<Input = unknown> extends $ZodTypeInternals<number, Input> {
771
+ def: $ZodNumberDef;
772
+ /** @deprecated Internal API, use with caution (not deprecated) */
773
+ pattern: RegExp;
774
+ /** @deprecated Internal API, use with caution (not deprecated) */
775
+ isst: $ZodIssueInvalidType;
776
+ bag: LoosePartial<{
777
+ minimum: number;
778
+ maximum: number;
779
+ exclusiveMinimum: number;
780
+ exclusiveMaximum: number;
781
+ format: string;
782
+ pattern: RegExp;
783
+ }>;
784
+ }
785
+ interface $ZodNumber<Input = unknown> extends $ZodType {
786
+ _zod: $ZodNumberInternals<Input>;
787
+ }
788
+ declare const $ZodNumber: $constructor<$ZodNumber>;
789
+ interface $ZodBooleanDef extends $ZodTypeDef {
790
+ type: "boolean";
791
+ coerce?: boolean;
792
+ checks?: $ZodCheck<boolean>[];
793
+ }
794
+ interface $ZodBooleanInternals<T = unknown> extends $ZodTypeInternals<boolean, T> {
795
+ pattern: RegExp;
796
+ def: $ZodBooleanDef;
797
+ isst: $ZodIssueInvalidType;
798
+ }
799
+ interface $ZodBoolean<T = unknown> extends $ZodType {
800
+ _zod: $ZodBooleanInternals<T>;
801
+ }
802
+ declare const $ZodBoolean: $constructor<$ZodBoolean>;
803
+ interface $ZodBigIntDef extends $ZodTypeDef {
804
+ type: "bigint";
805
+ coerce?: boolean;
806
+ }
807
+ interface $ZodBigIntInternals<T = unknown> extends $ZodTypeInternals<bigint, T> {
808
+ pattern: RegExp;
809
+ /** @internal Internal API, use with caution */
810
+ def: $ZodBigIntDef;
811
+ isst: $ZodIssueInvalidType;
812
+ bag: LoosePartial<{
813
+ minimum: bigint;
814
+ maximum: bigint;
815
+ format: string;
816
+ }>;
817
+ }
818
+ interface $ZodBigInt<T = unknown> extends $ZodType {
819
+ _zod: $ZodBigIntInternals<T>;
820
+ }
821
+ declare const $ZodBigInt: $constructor<$ZodBigInt>;
822
+ interface $ZodSymbolDef extends $ZodTypeDef {
823
+ type: "symbol";
824
+ }
825
+ interface $ZodSymbolInternals extends $ZodTypeInternals<symbol, symbol> {
826
+ def: $ZodSymbolDef;
827
+ isst: $ZodIssueInvalidType;
828
+ }
829
+ interface $ZodSymbol extends $ZodType {
830
+ _zod: $ZodSymbolInternals;
831
+ }
832
+ declare const $ZodSymbol: $constructor<$ZodSymbol>;
833
+ interface $ZodUndefinedDef extends $ZodTypeDef {
834
+ type: "undefined";
835
+ }
836
+ interface $ZodUndefinedInternals extends $ZodTypeInternals<undefined, undefined> {
837
+ pattern: RegExp;
838
+ def: $ZodUndefinedDef;
839
+ values: PrimitiveSet;
840
+ isst: $ZodIssueInvalidType;
841
+ }
842
+ interface $ZodUndefined extends $ZodType {
843
+ _zod: $ZodUndefinedInternals;
844
+ }
845
+ declare const $ZodUndefined: $constructor<$ZodUndefined>;
846
+ interface $ZodNullDef extends $ZodTypeDef {
847
+ type: "null";
848
+ }
849
+ interface $ZodNullInternals extends $ZodTypeInternals<null, null> {
850
+ pattern: RegExp;
851
+ def: $ZodNullDef;
852
+ values: PrimitiveSet;
853
+ isst: $ZodIssueInvalidType;
854
+ }
855
+ interface $ZodNull extends $ZodType {
856
+ _zod: $ZodNullInternals;
857
+ }
858
+ declare const $ZodNull: $constructor<$ZodNull>;
859
+ interface $ZodAnyDef extends $ZodTypeDef {
860
+ type: "any";
861
+ }
862
+ interface $ZodAnyInternals extends $ZodTypeInternals<any, any> {
863
+ def: $ZodAnyDef;
864
+ isst: never;
865
+ }
866
+ interface $ZodAny extends $ZodType {
867
+ _zod: $ZodAnyInternals;
868
+ }
869
+ declare const $ZodAny: $constructor<$ZodAny>;
870
+ interface $ZodUnknownDef extends $ZodTypeDef {
871
+ type: "unknown";
872
+ }
873
+ interface $ZodUnknownInternals extends $ZodTypeInternals<unknown, unknown> {
874
+ def: $ZodUnknownDef;
875
+ isst: never;
876
+ }
877
+ interface $ZodUnknown extends $ZodType {
878
+ _zod: $ZodUnknownInternals;
879
+ }
880
+ declare const $ZodUnknown: $constructor<$ZodUnknown>;
881
+ interface $ZodNeverDef extends $ZodTypeDef {
882
+ type: "never";
883
+ }
884
+ interface $ZodNeverInternals extends $ZodTypeInternals<never, never> {
885
+ def: $ZodNeverDef;
886
+ isst: $ZodIssueInvalidType;
887
+ }
888
+ interface $ZodNever extends $ZodType {
889
+ _zod: $ZodNeverInternals;
890
+ }
891
+ declare const $ZodNever: $constructor<$ZodNever>;
892
+ interface $ZodVoidDef extends $ZodTypeDef {
893
+ type: "void";
894
+ }
895
+ interface $ZodVoidInternals extends $ZodTypeInternals<void, void> {
896
+ def: $ZodVoidDef;
897
+ isst: $ZodIssueInvalidType;
898
+ }
899
+ interface $ZodVoid extends $ZodType {
900
+ _zod: $ZodVoidInternals;
901
+ }
902
+ declare const $ZodVoid: $constructor<$ZodVoid>;
903
+ interface $ZodDateDef extends $ZodTypeDef {
904
+ type: "date";
905
+ coerce?: boolean;
906
+ }
907
+ interface $ZodDateInternals<T = unknown> extends $ZodTypeInternals<Date, T> {
908
+ def: $ZodDateDef;
909
+ isst: $ZodIssueInvalidType;
910
+ bag: LoosePartial<{
911
+ minimum: Date;
912
+ maximum: Date;
913
+ format: string;
914
+ }>;
915
+ }
916
+ interface $ZodDate<T = unknown> extends $ZodType {
917
+ _zod: $ZodDateInternals<T>;
918
+ }
919
+ declare const $ZodDate: $constructor<$ZodDate>;
920
+ interface $ZodArrayDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
921
+ type: "array";
922
+ element: T;
923
+ }
924
+ interface $ZodArrayInternals<T extends SomeType = $ZodType> extends _$ZodTypeInternals {
925
+ def: $ZodArrayDef<T>;
926
+ isst: $ZodIssueInvalidType;
927
+ output: output$1<T>[];
928
+ input: input$1<T>[];
929
+ }
930
+ interface $ZodArray<T extends SomeType = $ZodType> extends $ZodType<any, any, $ZodArrayInternals<T>> {}
931
+ declare const $ZodArray: $constructor<$ZodArray>;
932
+ type OptionalOutSchema = {
933
+ _zod: {
934
+ optout: "optional";
935
+ };
936
+ };
937
+ type OptionalInSchema = {
938
+ _zod: {
939
+ optin: "optional" | "defaulted";
940
+ };
941
+ };
942
+ 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>;
943
+ 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>;
944
+ type $ZodObjectConfig = {
945
+ out: Record<string, unknown>;
946
+ in: Record<string, unknown>;
947
+ };
948
+ type $loose = {
949
+ out: Record<string, unknown>;
950
+ in: Record<string, unknown>;
951
+ };
952
+ type $strict = {
953
+ out: {};
954
+ in: {};
955
+ };
956
+ type $strip = {
957
+ out: {};
958
+ in: {};
959
+ };
960
+ type $catchall<T extends SomeType> = {
961
+ out: {
962
+ [k: string]: output$1<T>;
963
+ };
964
+ in: {
965
+ [k: string]: input$1<T>;
966
+ };
967
+ };
968
+ type $ZodShape = Readonly<{
969
+ [k: string]: $ZodType;
970
+ }>;
971
+ interface $ZodObjectDef<Shape extends $ZodShape = $ZodShape> extends $ZodTypeDef {
972
+ type: "object";
973
+ shape: Shape;
974
+ catchall?: $ZodType | undefined;
975
+ }
976
+ interface $ZodObjectInternals<
977
+ /** @ts-ignore Cast variance */
978
+ out Shape extends $ZodShape = $ZodShape, out Config extends $ZodObjectConfig = $ZodObjectConfig> extends _$ZodTypeInternals {
979
+ def: $ZodObjectDef<Shape>;
980
+ config: Config;
981
+ isst: $ZodIssueInvalidType | $ZodIssueUnrecognizedKeys;
982
+ propValues: PropValues;
983
+ output: $InferObjectOutput<Shape, Config["out"]>;
984
+ input: $InferObjectInput<Shape, Config["in"]>;
985
+ optin?: "optional" | undefined;
986
+ optout?: "optional" | undefined;
987
+ }
988
+ type $ZodLooseShape = Record<string, any>;
989
+ interface $ZodObject<
990
+ /** @ts-ignore Cast variance */
991
+ out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Params extends $ZodObjectConfig = $ZodObjectConfig> extends $ZodType<any, any, $ZodObjectInternals<Shape, Params>> {}
992
+ declare const $ZodObject: $constructor<$ZodObject>;
993
+ type $InferUnionOutput<T extends SomeType> = T extends any ? output$1<T> : never;
994
+ type $InferUnionInput<T extends SomeType> = T extends any ? input$1<T> : never;
995
+ interface $ZodUnionDef<Options extends readonly SomeType[] = readonly $ZodType[]> extends $ZodTypeDef {
996
+ type: "union";
997
+ options: Options;
998
+ inclusive?: boolean;
999
+ }
1000
+ type IsOptionalIn<T extends SomeType> = T extends OptionalInSchema ? true : false;
1001
+ type IsOptionalOut<T extends SomeType> = T extends OptionalOutSchema ? true : false;
1002
+ interface $ZodUnionInternals<T extends readonly SomeType[] = readonly $ZodType[]> extends _$ZodTypeInternals {
1003
+ def: $ZodUnionDef<T>;
1004
+ isst: $ZodIssueInvalidUnion;
1005
+ pattern: T[number]["_zod"]["pattern"];
1006
+ values: T[number]["_zod"]["values"];
1007
+ output: $InferUnionOutput<T[number]>;
1008
+ input: $InferUnionInput<T[number]>;
1009
+ optin: IsOptionalIn<T[number]> extends false ? "optional" | "defaulted" | undefined : "optional" | "defaulted";
1010
+ optout: IsOptionalOut<T[number]> extends false ? "optional" | undefined : "optional";
1011
+ }
1012
+ interface $ZodUnion<T extends readonly SomeType[] = readonly $ZodType[]> extends $ZodType<any, any, $ZodUnionInternals<T>> {
1013
+ _zod: $ZodUnionInternals<T>;
1014
+ }
1015
+ declare const $ZodUnion: $constructor<$ZodUnion>;
1016
+ interface $ZodDiscriminatedUnionDef<Options extends readonly SomeType[] = readonly $ZodType[], Disc extends string = string> extends $ZodUnionDef<Options> {
1017
+ discriminator: Disc;
1018
+ unionFallback?: boolean;
1019
+ }
1020
+ interface $ZodDiscriminatedUnionInternals<Options extends readonly SomeType[] = readonly $ZodType[], Disc extends string = string> extends $ZodUnionInternals<Options> {
1021
+ def: $ZodDiscriminatedUnionDef<Options, Disc>;
1022
+ propValues: PropValues;
1023
+ bag: LoosePartial<{
1024
+ optionsMap: Map<Primitive, $ZodType | null>;
1025
+ }>;
1026
+ }
1027
+ interface $ZodDiscriminatedUnion<Options extends readonly SomeType[] = readonly $ZodType[], Disc extends string = string> extends $ZodType {
1028
+ _zod: $ZodDiscriminatedUnionInternals<Options, Disc>;
1029
+ }
1030
+ declare const $ZodDiscriminatedUnion: $constructor<$ZodDiscriminatedUnion>;
1031
+ interface $ZodIntersectionDef<Left extends SomeType = $ZodType, Right extends SomeType = $ZodType> extends $ZodTypeDef {
1032
+ type: "intersection";
1033
+ left: Left;
1034
+ right: Right;
1035
+ }
1036
+ interface $ZodIntersectionInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _$ZodTypeInternals {
1037
+ def: $ZodIntersectionDef<A, B>;
1038
+ isst: never;
1039
+ optin: A["_zod"]["optin"] | B["_zod"]["optin"];
1040
+ optout: A["_zod"]["optout"] | B["_zod"]["optout"];
1041
+ output: output$1<A> & output$1<B>;
1042
+ input: input$1<A> & input$1<B>;
1043
+ }
1044
+ interface $ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
1045
+ _zod: $ZodIntersectionInternals<A, B>;
1046
+ }
1047
+ declare const $ZodIntersection: $constructor<$ZodIntersection>;
1048
+ interface $ZodTupleDef<T extends TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends $ZodTypeDef {
1049
+ type: "tuple";
1050
+ items: T;
1051
+ rest: Rest;
1052
+ }
1053
+ type $InferTupleInputType<T extends TupleItems, Rest extends SomeType | null> = [...TupleInputTypeWithOptionals<T>, ...(Rest extends SomeType ? input$1<Rest>[] : [])];
1054
+ type TupleInputTypeNoOptionals<T extends TupleItems> = { [k in keyof T]: input$1<T[k]>; };
1055
+ 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> : [];
1056
+ type $InferTupleOutputType<T extends TupleItems, Rest extends SomeType | null> = [...TupleOutputTypeWithOptionals<T>, ...(Rest extends SomeType ? output$1<Rest>[] : [])];
1057
+ type TupleOutputTypeNoOptionals<T extends TupleItems> = { [k in keyof T]: output$1<T[k]>; };
1058
+ 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> : [];
1059
+ interface $ZodTupleInternals<T extends TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends _$ZodTypeInternals {
1060
+ def: $ZodTupleDef<T, Rest>;
1061
+ isst: $ZodIssueInvalidType | $ZodIssueTooBig<unknown[]> | $ZodIssueTooSmall<unknown[]>;
1062
+ output: $InferTupleOutputType<T, Rest>;
1063
+ input: $InferTupleInputType<T, Rest>;
1064
+ }
1065
+ interface $ZodTuple<T extends TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends $ZodType {
1066
+ _zod: $ZodTupleInternals<T, Rest>;
1067
+ }
1068
+ declare const $ZodTuple: $constructor<$ZodTuple>;
1069
+ type $ZodRecordKey = $ZodType<string | number | symbol, unknown>;
1070
+ interface $ZodRecordDef<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeDef {
1071
+ type: "record";
1072
+ keyType: Key;
1073
+ valueType: Value;
1074
+ /** @default "strict" - errors on keys not matching keyType. "loose" passes through non-matching keys unchanged. */
1075
+ mode?: "strict" | "loose";
1076
+ partial?: boolean;
1077
+ }
1078
+ 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>>;
1079
+ 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>>;
1080
+ interface $ZodRecordInternals<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeInternals {
1081
+ def: $ZodRecordDef<Key, Value>;
1082
+ output: $InferZodRecordOutput<Key, Value>;
1083
+ input: $InferZodRecordInput<Key, Value>;
1084
+ isst: $ZodIssueInvalidType | $ZodIssueInvalidKey<Record<PropertyKey, unknown>>;
1085
+ optin?: "optional" | undefined;
1086
+ optout?: "optional" | undefined;
1087
+ }
1088
+ type $partial = {
1089
+ "~~partial": true;
1090
+ };
1091
+ interface $ZodRecord<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodType {
1092
+ _zod: $ZodRecordInternals<Key, Value>;
1093
+ }
1094
+ declare const $ZodRecord: $constructor<$ZodRecord>;
1095
+ interface $ZodMapDef<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodTypeDef {
1096
+ type: "map";
1097
+ keyType: Key;
1098
+ valueType: Value;
1099
+ }
1100
+ 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>>> {
1101
+ def: $ZodMapDef<Key, Value>;
1102
+ isst: $ZodIssueInvalidType | $ZodIssueInvalidKey | $ZodIssueInvalidElement<unknown>;
1103
+ optin?: "optional" | undefined;
1104
+ optout?: "optional" | undefined;
1105
+ }
1106
+ interface $ZodMap<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodType {
1107
+ _zod: $ZodMapInternals<Key, Value>;
1108
+ }
1109
+ declare const $ZodMap: $constructor<$ZodMap>;
1110
+ interface $ZodSetDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1111
+ type: "set";
1112
+ valueType: T;
1113
+ }
1114
+ interface $ZodSetInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<Set<output$1<T>>, Set<input$1<T>>> {
1115
+ def: $ZodSetDef<T>;
1116
+ isst: $ZodIssueInvalidType;
1117
+ optin?: "optional" | undefined;
1118
+ optout?: "optional" | undefined;
1119
+ }
1120
+ interface $ZodSet<T extends SomeType = $ZodType> extends $ZodType {
1121
+ _zod: $ZodSetInternals<T>;
1122
+ }
1123
+ declare const $ZodSet: $constructor<$ZodSet>;
1124
+ type $InferEnumOutput<T extends EnumLike> = T[keyof T] & {};
1125
+ type $InferEnumInput<T extends EnumLike> = T[keyof T] & {};
1126
+ interface $ZodEnumDef<T extends EnumLike = EnumLike> extends $ZodTypeDef {
1127
+ type: "enum";
1128
+ entries: T;
1129
+ }
1130
+ interface $ZodEnumInternals<
1131
+ /** @ts-ignore Cast variance */
1132
+ out T extends EnumLike = EnumLike> extends $ZodTypeInternals<$InferEnumOutput<T>, $InferEnumInput<T>> {
1133
+ def: $ZodEnumDef<T>;
1134
+ /** @deprecated Internal API, use with caution (not deprecated) */
1135
+ values: PrimitiveSet;
1136
+ /** @deprecated Internal API, use with caution (not deprecated) */
1137
+ pattern: RegExp;
1138
+ isst: $ZodIssueInvalidValue;
1139
+ }
1140
+ interface $ZodEnum<T extends EnumLike = EnumLike> extends $ZodType {
1141
+ _zod: $ZodEnumInternals<T>;
1142
+ }
1143
+ declare const $ZodEnum: $constructor<$ZodEnum>;
1144
+ interface $ZodLiteralDef<T extends Literal> extends $ZodTypeDef {
1145
+ type: "literal";
1146
+ values: T[];
1147
+ }
1148
+ interface $ZodLiteralInternals<T extends Literal = Literal> extends $ZodTypeInternals<T, T> {
1149
+ def: $ZodLiteralDef<T>;
1150
+ values: Set<T>;
1151
+ pattern: RegExp;
1152
+ isst: $ZodIssueInvalidValue;
1153
+ }
1154
+ interface $ZodLiteral<T extends Literal = Literal> extends $ZodType {
1155
+ _zod: $ZodLiteralInternals<T>;
1156
+ }
1157
+ declare const $ZodLiteral: $constructor<$ZodLiteral>;
1158
+ type _File = typeof globalThis extends {
1159
+ File: infer F extends new (...args: any[]) => any;
1160
+ } ? InstanceType<F> : {};
1161
+ /** Do not reference this directly. */
1162
+ interface File$1 extends _File {
1163
+ readonly type: string;
1164
+ readonly size: number;
1165
+ }
1166
+ interface $ZodFileDef extends $ZodTypeDef {
1167
+ type: "file";
1168
+ }
1169
+ interface $ZodFileInternals extends $ZodTypeInternals<File$1, File$1> {
1170
+ def: $ZodFileDef;
1171
+ isst: $ZodIssueInvalidType;
1172
+ bag: LoosePartial<{
1173
+ minimum: number;
1174
+ maximum: number;
1175
+ mime: MimeTypes[];
1176
+ }>;
1177
+ }
1178
+ interface $ZodFile extends $ZodType {
1179
+ _zod: $ZodFileInternals;
1180
+ }
1181
+ declare const $ZodFile: $constructor<$ZodFile>;
1182
+ interface $ZodTransformDef extends $ZodTypeDef {
1183
+ type: "transform";
1184
+ transform: (input: unknown, payload: ParsePayload<unknown>) => MaybeAsync<unknown>;
1185
+ }
1186
+ interface $ZodTransformInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I> {
1187
+ def: $ZodTransformDef;
1188
+ isst: never;
1189
+ }
1190
+ interface $ZodTransform<O = unknown, I = unknown> extends $ZodType {
1191
+ _zod: $ZodTransformInternals<O, I>;
1192
+ }
1193
+ declare const $ZodTransform: $constructor<$ZodTransform>;
1194
+ interface $ZodOptionalDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1195
+ type: "optional";
1196
+ innerType: T;
1197
+ }
1198
+ interface $ZodOptionalInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output$1<T> | undefined, input$1<T> | undefined> {
1199
+ def: $ZodOptionalDef<T>;
1200
+ optin: "optional" | "defaulted";
1201
+ optout: "optional";
1202
+ isst: never;
1203
+ values: T["_zod"]["values"];
1204
+ pattern: T["_zod"]["pattern"];
1205
+ }
1206
+ interface $ZodOptional<T extends SomeType = $ZodType> extends $ZodType {
1207
+ _zod: $ZodOptionalInternals<T>;
1208
+ }
1209
+ declare const $ZodOptional: $constructor<$ZodOptional>;
1210
+ interface $ZodExactOptionalDef<T extends SomeType = $ZodType> extends $ZodOptionalDef<T> {}
1211
+ interface $ZodExactOptionalInternals<T extends SomeType = $ZodType> extends $ZodOptionalInternals<T> {
1212
+ def: $ZodExactOptionalDef<T>;
1213
+ output: output$1<T>;
1214
+ input: input$1<T>;
1215
+ }
1216
+ interface $ZodExactOptional<T extends SomeType = $ZodType> extends $ZodType {
1217
+ _zod: $ZodExactOptionalInternals<T>;
1218
+ }
1219
+ declare const $ZodExactOptional: $constructor<$ZodExactOptional>;
1220
+ interface $ZodNullableDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1221
+ type: "nullable";
1222
+ innerType: T;
1223
+ }
1224
+ interface $ZodNullableInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output$1<T> | null, input$1<T> | null> {
1225
+ def: $ZodNullableDef<T>;
1226
+ optin: T["_zod"]["optin"];
1227
+ optout: T["_zod"]["optout"];
1228
+ isst: never;
1229
+ values: T["_zod"]["values"];
1230
+ pattern: T["_zod"]["pattern"];
1231
+ }
1232
+ interface $ZodNullable<T extends SomeType = $ZodType> extends $ZodType {
1233
+ _zod: $ZodNullableInternals<T>;
1234
+ }
1235
+ declare const $ZodNullable: $constructor<$ZodNullable>;
1236
+ interface $ZodDefaultDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1237
+ type: "default";
1238
+ innerType: T;
1239
+ /** The default value. May be a getter. */
1240
+ defaultValue: NoUndefined<output$1<T>>;
1241
+ }
1242
+ interface $ZodDefaultInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output$1<T>>, input$1<T> | undefined> {
1243
+ def: $ZodDefaultDef<T>;
1244
+ optin: "defaulted";
1245
+ optout?: "optional" | undefined;
1246
+ isst: never;
1247
+ values: T["_zod"]["values"];
1248
+ }
1249
+ interface $ZodDefault<T extends SomeType = $ZodType> extends $ZodType {
1250
+ _zod: $ZodDefaultInternals<T>;
1251
+ }
1252
+ declare const $ZodDefault: $constructor<$ZodDefault>;
1253
+ interface $ZodPrefaultDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1254
+ type: "prefault";
1255
+ innerType: T;
1256
+ /** The default value. May be a getter. */
1257
+ defaultValue: input$1<T>;
1258
+ }
1259
+ interface $ZodPrefaultInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output$1<T>, input$1<T> | undefined> {
1260
+ def: $ZodPrefaultDef<T>;
1261
+ optin: "defaulted";
1262
+ optout?: "optional" | undefined;
1263
+ isst: never;
1264
+ values: T["_zod"]["values"];
1265
+ }
1266
+ interface $ZodPrefault<T extends SomeType = $ZodType> extends $ZodType {
1267
+ _zod: $ZodPrefaultInternals<T>;
1268
+ }
1269
+ declare const $ZodPrefault: $constructor<$ZodPrefault>;
1270
+ interface $ZodNonOptionalDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1271
+ type: "nonoptional";
1272
+ innerType: T;
1273
+ }
1274
+ interface $ZodNonOptionalInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output$1<T>>, NoUndefined<input$1<T>>> {
1275
+ def: $ZodNonOptionalDef<T>;
1276
+ isst: $ZodIssueInvalidType;
1277
+ values: T["_zod"]["values"];
1278
+ optin: "optional" | undefined;
1279
+ optout: "optional" | undefined;
1280
+ }
1281
+ interface $ZodNonOptional<T extends SomeType = $ZodType> extends $ZodType {
1282
+ _zod: $ZodNonOptionalInternals<T>;
1283
+ }
1284
+ declare const $ZodNonOptional: $constructor<$ZodNonOptional>;
1285
+ interface $ZodSuccessDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1286
+ type: "success";
1287
+ innerType: T;
1288
+ }
1289
+ interface $ZodSuccessInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<boolean, input$1<T>> {
1290
+ def: $ZodSuccessDef<T>;
1291
+ isst: never;
1292
+ optin: T["_zod"]["optin"];
1293
+ optout: "optional" | undefined;
1294
+ }
1295
+ interface $ZodSuccess<T extends SomeType = $ZodType> extends $ZodType {
1296
+ _zod: $ZodSuccessInternals<T>;
1297
+ }
1298
+ declare const $ZodSuccess: $constructor<$ZodSuccess>;
1299
+ interface $ZodCatchCtx extends ParsePayload {
1300
+ /** @deprecated Use `ctx.issues` */
1301
+ error: {
1302
+ issues: $ZodIssue[];
1303
+ };
1304
+ /** @deprecated Use `ctx.value` */
1305
+ input: unknown;
1306
+ }
1307
+ interface $ZodCatchDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1308
+ type: "catch";
1309
+ innerType: T;
1310
+ catchValue: (ctx: $ZodCatchCtx) => unknown;
1311
+ }
1312
+ interface $ZodCatchInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output$1<T>, input$1<T>> {
1313
+ def: $ZodCatchDef<T>;
1314
+ optin: T["_zod"]["optin"];
1315
+ optout: T["_zod"]["optout"];
1316
+ isst: never;
1317
+ values: T["_zod"]["values"];
1318
+ }
1319
+ interface $ZodCatch<T extends SomeType = $ZodType> extends $ZodType {
1320
+ _zod: $ZodCatchInternals<T>;
1321
+ }
1322
+ declare const $ZodCatch: $constructor<$ZodCatch>;
1323
+ interface $ZodNaNDef extends $ZodTypeDef {
1324
+ type: "nan";
1325
+ }
1326
+ interface $ZodNaNInternals extends $ZodTypeInternals<number, number> {
1327
+ def: $ZodNaNDef;
1328
+ isst: $ZodIssueInvalidType;
1329
+ }
1330
+ interface $ZodNaN extends $ZodType {
1331
+ _zod: $ZodNaNInternals;
1332
+ }
1333
+ declare const $ZodNaN: $constructor<$ZodNaN>;
1334
+ interface $ZodPipeDef<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeDef {
1335
+ type: "pipe";
1336
+ in: A;
1337
+ out: B;
1338
+ /** Only defined inside $ZodCodec instances. */
1339
+ transform?: (value: output$1<A>, payload: ParsePayload<output$1<A>>) => MaybeAsync<input$1<B>>;
1340
+ /** Only defined inside $ZodCodec instances. */
1341
+ reverseTransform?: (value: input$1<B>, payload: ParsePayload<input$1<B>>) => MaybeAsync<output$1<A>>;
1342
+ }
1343
+ interface $ZodPipeInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeInternals<output$1<B>, input$1<A>> {
1344
+ def: $ZodPipeDef<A, B>;
1345
+ isst: never;
1346
+ values: A["_zod"]["values"];
1347
+ optin: A["_zod"]["optin"];
1348
+ optout: B["_zod"]["optout"];
1349
+ propValues: A["_zod"]["propValues"];
1350
+ }
1351
+ interface $ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
1352
+ _zod: $ZodPipeInternals<A, B>;
1353
+ }
1354
+ declare const $ZodPipe: $constructor<$ZodPipe>;
1355
+ interface $ZodReadonlyDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1356
+ type: "readonly";
1357
+ innerType: T;
1358
+ }
1359
+ interface $ZodReadonlyInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<MakeReadonly<output$1<T>>, MakeReadonly<input$1<T>>> {
1360
+ def: $ZodReadonlyDef<T>;
1361
+ optin: T["_zod"]["optin"];
1362
+ optout: T["_zod"]["optout"];
1363
+ isst: never;
1364
+ propValues: T["_zod"]["propValues"];
1365
+ values: T["_zod"]["values"];
1366
+ }
1367
+ interface $ZodReadonly<T extends SomeType = $ZodType> extends $ZodType {
1368
+ _zod: $ZodReadonlyInternals<T>;
1369
+ }
1370
+ declare const $ZodReadonly: $constructor<$ZodReadonly>;
1371
+ interface $ZodTemplateLiteralDef extends $ZodTypeDef {
1372
+ type: "template_literal";
1373
+ parts: $ZodTemplateLiteralPart[];
1374
+ format?: string | undefined;
1375
+ }
1376
+ interface $ZodTemplateLiteralInternals<Template extends string = string> extends $ZodTypeInternals<Template, Template> {
1377
+ pattern: RegExp;
1378
+ def: $ZodTemplateLiteralDef;
1379
+ isst: $ZodIssueInvalidType;
1380
+ }
1381
+ interface $ZodTemplateLiteral<Template extends string = string> extends $ZodType {
1382
+ _zod: $ZodTemplateLiteralInternals<Template>;
1383
+ }
1384
+ type LiteralPart = Exclude<Literal, symbol>;
1385
+ interface SchemaPartInternals extends $ZodTypeInternals<LiteralPart, LiteralPart> {
1386
+ pattern: RegExp;
1387
+ }
1388
+ interface SchemaPart extends $ZodType {
1389
+ _zod: SchemaPartInternals;
1390
+ }
1391
+ type $ZodTemplateLiteralPart = LiteralPart | SchemaPart;
1392
+ declare const $ZodTemplateLiteral: $constructor<$ZodTemplateLiteral>;
1393
+ type $ZodFunctionArgs = $ZodType<unknown[], unknown[]>;
1394
+ type $ZodFunctionIn = $ZodFunctionArgs;
1395
+ type $ZodFunctionOut = $ZodType;
1396
+ type $InferInnerFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : output$1<Args>) => input$1<Returns>;
1397
+ type $InferInnerFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : output$1<Args>) => MaybeAsync<input$1<Returns>>;
1398
+ type $InferOuterFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : input$1<Args>) => output$1<Returns>;
1399
+ type $InferOuterFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : input$1<Args>) => Promise<output$1<Returns>>;
1400
+ interface $ZodFunctionDef<In extends $ZodFunctionIn = $ZodFunctionIn, Out extends $ZodFunctionOut = $ZodFunctionOut> extends $ZodTypeDef {
1401
+ type: "function";
1402
+ input: In;
1403
+ output: Out;
1404
+ }
1405
+ interface $ZodFunctionInternals<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> extends $ZodTypeInternals<$InferOuterFunctionType<Args, Returns>, $InferInnerFunctionType<Args, Returns>> {
1406
+ def: $ZodFunctionDef<Args, Returns>;
1407
+ isst: $ZodIssueInvalidType;
1408
+ }
1409
+ interface $ZodFunction<Args extends $ZodFunctionIn = $ZodFunctionIn, Returns extends $ZodFunctionOut = $ZodFunctionOut> extends $ZodType<any, any, $ZodFunctionInternals<Args, Returns>> {
1410
+ /** @deprecated */
1411
+ _def: $ZodFunctionDef<Args, Returns>;
1412
+ _input: $InferInnerFunctionType<Args, Returns>;
1413
+ _output: $InferOuterFunctionType<Args, Returns>;
1414
+ implement<F extends $InferInnerFunctionType<Args, Returns>>(func: F): (...args: Parameters<this["_output"]>) => ReturnType<F> extends ReturnType<this["_output"]> ? ReturnType<F> : ReturnType<this["_output"]>;
1415
+ implementAsync<F extends $InferInnerFunctionTypeAsync<Args, Returns>>(func: F): F extends $InferOuterFunctionTypeAsync<Args, Returns> ? F : $InferOuterFunctionTypeAsync<Args, Returns>;
1416
+ input<const Items extends TupleItems, const Rest extends $ZodFunctionOut = $ZodFunctionOut>(args: Items, rest?: Rest): $ZodFunction<$ZodTuple<Items, Rest>, Returns>;
1417
+ input<NewArgs extends $ZodFunctionIn>(args: NewArgs): $ZodFunction<NewArgs, Returns>;
1418
+ input(...args: any[]): $ZodFunction<any, Returns>;
1419
+ output<NewReturns extends $ZodType>(output: NewReturns): $ZodFunction<Args, NewReturns>;
1420
+ }
1421
+ declare const $ZodFunction: $constructor<$ZodFunction>;
1422
+ interface $ZodPromiseDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1423
+ type: "promise";
1424
+ innerType: T;
1425
+ }
1426
+ interface $ZodPromiseInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<Promise<output$1<T>>, MaybeAsync<input$1<T>>> {
1427
+ def: $ZodPromiseDef<T>;
1428
+ isst: never;
1429
+ }
1430
+ interface $ZodPromise<T extends SomeType = $ZodType> extends $ZodType {
1431
+ _zod: $ZodPromiseInternals<T>;
1432
+ }
1433
+ declare const $ZodPromise: $constructor<$ZodPromise>;
1434
+ interface $ZodLazyDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1435
+ type: "lazy";
1436
+ getter: () => T;
1437
+ }
1438
+ interface $ZodLazyInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output$1<T>, input$1<T>> {
1439
+ def: $ZodLazyDef<T>;
1440
+ isst: never;
1441
+ /** Auto-cached way to retrieve the inner schema */
1442
+ innerType: T;
1443
+ pattern: T["_zod"]["pattern"];
1444
+ propValues: T["_zod"]["propValues"];
1445
+ optin: T["_zod"]["optin"];
1446
+ optout: T["_zod"]["optout"];
1447
+ }
1448
+ interface $ZodLazy<T extends SomeType = $ZodType> extends $ZodType {
1449
+ _zod: $ZodLazyInternals<T>;
1450
+ }
1451
+ declare const $ZodLazy: $constructor<$ZodLazy>;
1452
+ interface $ZodCustomDef<O = unknown> extends $ZodTypeDef, $ZodCheckDef {
1453
+ type: "custom";
1454
+ check: "custom";
1455
+ path?: PropertyKey[] | undefined;
1456
+ error?: $ZodErrorMap | undefined;
1457
+ params?: Record<string, any> | undefined;
1458
+ fn: (arg: O) => unknown;
1459
+ }
1460
+ interface $ZodCustomInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I>, $ZodCheckInternals<O> {
1461
+ def: $ZodCustomDef;
1462
+ issc: $ZodIssue;
1463
+ isst: never;
1464
+ bag: LoosePartial<{
1465
+ Class: typeof Class;
1466
+ }>;
1467
+ }
1468
+ interface $ZodCustom<O = unknown, I = unknown> extends $ZodType {
1469
+ _zod: $ZodCustomInternals<O, I>;
1470
+ }
1471
+ declare const $ZodCustom: $constructor<$ZodCustom>;
1472
+ 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;
1473
+ //#endregion
1474
+ //#region ../../node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/checks.d.cts
1475
+ interface $ZodCheckDef {
1476
+ check: string;
1477
+ error?: $ZodErrorMap<never> | undefined;
1478
+ /** If true, no later checks will be executed if this check fails. Default `false`. */
1479
+ abort?: boolean | undefined;
1480
+ /** If provided, the check runs only when this returns `true`. By default, it is skipped if prior parsing produced aborting issues. */
1481
+ when?: ((payload: ParsePayload) => boolean) | undefined;
1482
+ }
1483
+ interface $ZodCheckInternals<T> {
1484
+ def: $ZodCheckDef;
1485
+ /** The set of issues this check might throw. */
1486
+ issc?: $ZodIssueBase;
1487
+ check(payload: ParsePayload<T>): MaybeAsync<void>;
1488
+ onattach: ((schema: $ZodType) => void)[];
1489
+ }
1490
+ interface $ZodCheck<in T = never> {
1491
+ _zod: $ZodCheckInternals<T>;
1492
+ }
1493
+ declare const $ZodCheck: $constructor<$ZodCheck<any>>;
1494
+ interface $ZodCheckLessThanDef extends $ZodCheckDef {
1495
+ check: "less_than";
1496
+ value: Numeric;
1497
+ inclusive: boolean;
1498
+ }
1499
+ interface $ZodCheckLessThanInternals<T extends Numeric = Numeric> extends $ZodCheckInternals<T> {
1500
+ def: $ZodCheckLessThanDef;
1501
+ issc: $ZodIssueTooBig<T>;
1502
+ }
1503
+ interface $ZodCheckLessThan<T extends Numeric = Numeric> extends $ZodCheck<T> {
1504
+ _zod: $ZodCheckLessThanInternals<T>;
1505
+ }
1506
+ declare const $ZodCheckLessThan: $constructor<$ZodCheckLessThan>;
1507
+ interface $ZodCheckGreaterThanDef extends $ZodCheckDef {
1508
+ check: "greater_than";
1509
+ value: Numeric;
1510
+ inclusive: boolean;
1511
+ }
1512
+ interface $ZodCheckGreaterThanInternals<T extends Numeric = Numeric> extends $ZodCheckInternals<T> {
1513
+ def: $ZodCheckGreaterThanDef;
1514
+ issc: $ZodIssueTooSmall<T>;
1515
+ }
1516
+ interface $ZodCheckGreaterThan<T extends Numeric = Numeric> extends $ZodCheck<T> {
1517
+ _zod: $ZodCheckGreaterThanInternals<T>;
1518
+ }
1519
+ declare const $ZodCheckGreaterThan: $constructor<$ZodCheckGreaterThan>;
1520
+ interface $ZodCheckMultipleOfDef<T extends number | bigint = number | bigint> extends $ZodCheckDef {
1521
+ check: "multiple_of";
1522
+ value: T;
1523
+ }
1524
+ interface $ZodCheckMultipleOfInternals<T extends number | bigint = number | bigint> extends $ZodCheckInternals<T> {
1525
+ def: $ZodCheckMultipleOfDef<T>;
1526
+ issc: $ZodIssueNotMultipleOf;
1527
+ }
1528
+ interface $ZodCheckMultipleOf<T extends number | bigint = number | bigint> extends $ZodCheck<T> {
1529
+ _zod: $ZodCheckMultipleOfInternals<T>;
1530
+ }
1531
+ declare const $ZodCheckMultipleOf: $constructor<$ZodCheckMultipleOf<number | bigint>>;
1532
+ type $ZodNumberFormats = "int32" | "uint32" | "float32" | "float64" | "safeint";
1533
+ interface $ZodCheckNumberFormatDef<Format extends $ZodNumberFormats = $ZodNumberFormats> extends $ZodCheckDef {
1534
+ check: "number_format";
1535
+ format: Format;
1536
+ }
1537
+ interface $ZodCheckNumberFormatInternals<Format extends $ZodNumberFormats = $ZodNumberFormats> extends $ZodCheckInternals<number> {
1538
+ def: $ZodCheckNumberFormatDef<Format>;
1539
+ issc: $ZodIssueInvalidType | $ZodIssueTooBig<"number"> | $ZodIssueTooSmall<"number">;
1540
+ }
1541
+ interface $ZodCheckNumberFormat<Format extends $ZodNumberFormats = $ZodNumberFormats> extends $ZodCheck<number> {
1542
+ _zod: $ZodCheckNumberFormatInternals<Format>;
1543
+ }
1544
+ declare const $ZodCheckNumberFormat: $constructor<$ZodCheckNumberFormat>;
1545
+ interface $ZodCheckMaxLengthDef extends $ZodCheckDef {
1546
+ check: "max_length";
1547
+ maximum: number;
1548
+ }
1549
+ interface $ZodCheckMaxLengthInternals<T extends HasLength = HasLength> extends $ZodCheckInternals<T> {
1550
+ def: $ZodCheckMaxLengthDef;
1551
+ issc: $ZodIssueTooBig<T>;
1552
+ }
1553
+ interface $ZodCheckMaxLength<T extends HasLength = HasLength> extends $ZodCheck<T> {
1554
+ _zod: $ZodCheckMaxLengthInternals<T>;
1555
+ }
1556
+ declare const $ZodCheckMaxLength: $constructor<$ZodCheckMaxLength>;
1557
+ interface $ZodCheckMinLengthDef extends $ZodCheckDef {
1558
+ check: "min_length";
1559
+ minimum: number;
1560
+ }
1561
+ interface $ZodCheckMinLengthInternals<T extends HasLength = HasLength> extends $ZodCheckInternals<T> {
1562
+ def: $ZodCheckMinLengthDef;
1563
+ issc: $ZodIssueTooSmall<T>;
1564
+ }
1565
+ interface $ZodCheckMinLength<T extends HasLength = HasLength> extends $ZodCheck<T> {
1566
+ _zod: $ZodCheckMinLengthInternals<T>;
1567
+ }
1568
+ declare const $ZodCheckMinLength: $constructor<$ZodCheckMinLength>;
1569
+ interface $ZodCheckLengthEqualsDef extends $ZodCheckDef {
1570
+ check: "length_equals";
1571
+ length: number;
1572
+ }
1573
+ interface $ZodCheckLengthEqualsInternals<T extends HasLength = HasLength> extends $ZodCheckInternals<T> {
1574
+ def: $ZodCheckLengthEqualsDef;
1575
+ issc: $ZodIssueTooBig<T> | $ZodIssueTooSmall<T>;
1576
+ }
1577
+ interface $ZodCheckLengthEquals<T extends HasLength = HasLength> extends $ZodCheck<T> {
1578
+ _zod: $ZodCheckLengthEqualsInternals<T>;
1579
+ }
1580
+ declare const $ZodCheckLengthEquals: $constructor<$ZodCheckLengthEquals>;
1581
+ 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" | "credit_card" | "iban" | "lowercase" | "uppercase" | "regex" | "jwt" | "starts_with" | "ends_with" | "includes";
1582
+ interface $ZodCheckStringFormatDef<Format extends string = string> extends $ZodCheckDef {
1583
+ check: "string_format";
1584
+ format: Format;
1585
+ pattern?: RegExp | undefined;
1586
+ }
1587
+ interface $ZodCheckStringFormatInternals extends $ZodCheckInternals<string> {
1588
+ def: $ZodCheckStringFormatDef;
1589
+ issc: $ZodIssueInvalidStringFormat;
1590
+ }
1591
+ interface $ZodCheckRegexDef extends $ZodCheckStringFormatDef {
1592
+ format: "regex";
1593
+ pattern: RegExp;
1594
+ }
1595
+ interface $ZodCheckRegexInternals extends $ZodCheckInternals<string> {
1596
+ def: $ZodCheckRegexDef;
1597
+ issc: $ZodIssueInvalidStringFormat;
1598
+ }
1599
+ interface $ZodCheckRegex extends $ZodCheck<string> {
1600
+ _zod: $ZodCheckRegexInternals;
1601
+ }
1602
+ declare const $ZodCheckRegex: $constructor<$ZodCheckRegex>;
1603
+ interface $ZodCheckLowerCaseDef extends $ZodCheckStringFormatDef<"lowercase"> {}
1604
+ interface $ZodCheckLowerCaseInternals extends $ZodCheckInternals<string> {
1605
+ def: $ZodCheckLowerCaseDef;
1606
+ issc: $ZodIssueInvalidStringFormat;
1607
+ }
1608
+ interface $ZodCheckLowerCase extends $ZodCheck<string> {
1609
+ _zod: $ZodCheckLowerCaseInternals;
1610
+ }
1611
+ declare const $ZodCheckLowerCase: $constructor<$ZodCheckLowerCase>;
1612
+ interface $ZodCheckUpperCaseDef extends $ZodCheckStringFormatDef<"uppercase"> {}
1613
+ interface $ZodCheckUpperCaseInternals extends $ZodCheckInternals<string> {
1614
+ def: $ZodCheckUpperCaseDef;
1615
+ issc: $ZodIssueInvalidStringFormat;
1616
+ }
1617
+ interface $ZodCheckUpperCase extends $ZodCheck<string> {
1618
+ _zod: $ZodCheckUpperCaseInternals;
1619
+ }
1620
+ declare const $ZodCheckUpperCase: $constructor<$ZodCheckUpperCase>;
1621
+ interface $ZodCheckIncludesDef extends $ZodCheckStringFormatDef<"includes"> {
1622
+ includes: string;
1623
+ position?: number | undefined;
1624
+ }
1625
+ interface $ZodCheckIncludesInternals extends $ZodCheckInternals<string> {
1626
+ def: $ZodCheckIncludesDef;
1627
+ issc: $ZodIssueInvalidStringFormat;
1628
+ }
1629
+ interface $ZodCheckIncludes extends $ZodCheck<string> {
1630
+ _zod: $ZodCheckIncludesInternals;
1631
+ }
1632
+ declare const $ZodCheckIncludes: $constructor<$ZodCheckIncludes>;
1633
+ interface $ZodCheckStartsWithDef extends $ZodCheckStringFormatDef<"starts_with"> {
1634
+ prefix: string;
1635
+ }
1636
+ interface $ZodCheckStartsWithInternals extends $ZodCheckInternals<string> {
1637
+ def: $ZodCheckStartsWithDef;
1638
+ issc: $ZodIssueInvalidStringFormat;
1639
+ }
1640
+ interface $ZodCheckStartsWith extends $ZodCheck<string> {
1641
+ _zod: $ZodCheckStartsWithInternals;
1642
+ }
1643
+ declare const $ZodCheckStartsWith: $constructor<$ZodCheckStartsWith>;
1644
+ interface $ZodCheckEndsWithDef extends $ZodCheckStringFormatDef<"ends_with"> {
1645
+ suffix: string;
1646
+ }
1647
+ interface $ZodCheckEndsWithInternals extends $ZodCheckInternals<string> {
1648
+ def: $ZodCheckEndsWithDef;
1649
+ issc: $ZodIssueInvalidStringFormat;
1650
+ }
1651
+ interface $ZodCheckEndsWith extends $ZodCheckInternals<string> {
1652
+ _zod: $ZodCheckEndsWithInternals;
1653
+ }
1654
+ declare const $ZodCheckEndsWith: $constructor<$ZodCheckEndsWith>;
1655
+ //#endregion
1656
+ //#region ../../node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/errors.d.cts
1657
+ interface $ZodIssueBase {
1658
+ readonly code?: string;
1659
+ readonly input?: unknown;
1660
+ readonly path: PropertyKey[];
1661
+ readonly message: string;
1662
+ }
1663
+ type $ZodInvalidTypeExpected = "string" | "number" | "int" | "boolean" | "bigint" | "symbol" | "undefined" | "null" | "never" | "void" | "date" | "array" | "object" | "tuple" | "record" | "map" | "set" | "file" | "nonoptional" | "nan" | "function" | (string & {});
1664
+ interface $ZodIssueInvalidType<Input = unknown> extends $ZodIssueBase {
1665
+ readonly code: "invalid_type";
1666
+ readonly expected: $ZodInvalidTypeExpected;
1667
+ readonly input?: Input;
1668
+ }
1669
+ interface $ZodIssueTooBig<Input = unknown> extends $ZodIssueBase {
1670
+ readonly code: "too_big";
1671
+ readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
1672
+ readonly maximum: number | bigint;
1673
+ readonly inclusive?: boolean;
1674
+ readonly exact?: boolean;
1675
+ readonly input?: Input;
1676
+ }
1677
+ interface $ZodIssueTooSmall<Input = unknown> extends $ZodIssueBase {
1678
+ readonly code: "too_small";
1679
+ readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
1680
+ readonly minimum: number | bigint;
1681
+ /** True if the allowable range includes the minimum */
1682
+ readonly inclusive?: boolean;
1683
+ /** True if the allowed value is fixed (e.g.` z.length(5)`), not a range (`z.minLength(5)`) */
1684
+ readonly exact?: boolean;
1685
+ readonly input?: Input;
1686
+ }
1687
+ interface $ZodIssueInvalidStringFormat extends $ZodIssueBase {
1688
+ readonly code: "invalid_format";
1689
+ readonly format: $ZodStringFormats | (string & {});
1690
+ readonly pattern?: string;
1691
+ readonly input?: string;
1692
+ }
1693
+ interface $ZodIssueNotMultipleOf<Input extends number | bigint = number | bigint> extends $ZodIssueBase {
1694
+ readonly code: "not_multiple_of";
1695
+ readonly divisor: number;
1696
+ readonly input?: Input;
1697
+ }
1698
+ interface $ZodIssueUnrecognizedKeys extends $ZodIssueBase {
1699
+ readonly code: "unrecognized_keys";
1700
+ readonly keys: string[];
1701
+ readonly input?: Record<string, unknown>;
1702
+ }
1703
+ interface $ZodIssueInvalidUnionNoMatch extends $ZodIssueBase {
1704
+ readonly code: "invalid_union";
1705
+ readonly errors: $ZodIssue[][];
1706
+ readonly input?: unknown;
1707
+ readonly discriminator?: string | undefined;
1708
+ readonly options?: Primitive[];
1709
+ readonly inclusive?: true;
1710
+ }
1711
+ interface $ZodIssueInvalidUnionMultipleMatch extends $ZodIssueBase {
1712
+ readonly code: "invalid_union";
1713
+ readonly errors: [];
1714
+ readonly input?: unknown;
1715
+ readonly discriminator?: string | undefined;
1716
+ readonly inclusive: false;
1717
+ /** Indices of the options that matched */
1718
+ readonly matches: number[];
1719
+ }
1720
+ type $ZodIssueInvalidUnion = $ZodIssueInvalidUnionNoMatch | $ZodIssueInvalidUnionMultipleMatch;
1721
+ interface $ZodIssueInvalidKey<Input = unknown> extends $ZodIssueBase {
1722
+ readonly code: "invalid_key";
1723
+ readonly origin: "map" | "record";
1724
+ readonly issues: $ZodIssue[];
1725
+ readonly input?: Input;
1726
+ }
1727
+ interface $ZodIssueInvalidElement<Input = unknown> extends $ZodIssueBase {
1728
+ readonly code: "invalid_element";
1729
+ readonly origin: "map" | "set";
1730
+ readonly key: unknown;
1731
+ readonly issues: $ZodIssue[];
1732
+ readonly input?: Input;
1733
+ }
1734
+ interface $ZodIssueInvalidValue<Input = unknown> extends $ZodIssueBase {
1735
+ readonly code: "invalid_value";
1736
+ readonly values: Primitive[];
1737
+ readonly input?: Input;
1738
+ }
1739
+ interface $ZodIssueCustom extends $ZodIssueBase {
1740
+ readonly code: "custom";
1741
+ readonly params?: Record<string, any> | undefined;
1742
+ readonly input?: unknown;
1743
+ }
1744
+ type $ZodIssue = $ZodIssueInvalidType | $ZodIssueTooBig | $ZodIssueTooSmall | $ZodIssueInvalidStringFormat | $ZodIssueNotMultipleOf | $ZodIssueUnrecognizedKeys | $ZodIssueInvalidUnion | $ZodIssueInvalidKey | $ZodIssueInvalidElement | $ZodIssueInvalidValue | $ZodIssueCustom;
1745
+ type $ZodInternalIssue<T extends $ZodIssueBase = $ZodIssue> = T extends any ? RawIssue$1<T> : never;
1746
+ type RawIssue$1<T extends $ZodIssueBase> = T extends any ? Flatten<MakePartial<T, "message" | "path"> & {
1747
+ /** The input data */
1748
+ readonly input: unknown;
1749
+ /** The schema or check that originated this issue. */
1750
+ readonly inst?: $ZodType | $ZodCheck;
1751
+ /** The schema that owns the issue. Equal to `inst` when a schema originated the issue, and the schema the check was attached to when a check did. */
1752
+ readonly schema?: $ZodType | undefined;
1753
+ /** If `true`, Zod will continue executing checks/refinements after this issue. */
1754
+ readonly continue?: boolean | undefined;
1755
+ } & Record<string, unknown>> : never;
1756
+ type $ZodRawIssue<T extends $ZodIssueBase = $ZodIssue> = $ZodInternalIssue<T>;
1757
+ interface $ZodErrorMap<T extends $ZodIssueBase = $ZodIssue> {
1758
+ (issue: $ZodRawIssue<T>): {
1759
+ message: string;
1760
+ } | string | undefined | null;
1761
+ }
1762
+ interface $ZodError<T = unknown> extends Error {
1763
+ type: T;
1764
+ issues: $ZodIssue[];
1765
+ _zod: {
1766
+ output: T;
1767
+ def: $ZodIssue[];
1768
+ };
1769
+ stack?: string;
1770
+ name: string;
1771
+ }
1772
+ declare const $ZodError: $constructor<$ZodError>;
1773
+ type $ZodFlattenedError<T, U = string> = _FlattenedError<T, U>;
1774
+ type _FlattenedError<T, U = string> = {
1775
+ formErrors: U[];
1776
+ fieldErrors: { [P in keyof T]?: U[]; };
1777
+ };
1778
+ type _ZodFormattedError<T, U = string> = T extends [any, ...any[]] ? { [K in keyof T]?: $ZodFormattedError<T[K], U>; } : T extends any[] ? {
1779
+ [k: number]: $ZodFormattedError<T[number], U>;
1780
+ } : T extends object ? Flatten<{ [K in keyof T]?: $ZodFormattedError<T[K], U>; }> : any;
1781
+ type $ZodFormattedError<T, U = string> = {
1782
+ _errors: U[];
1783
+ } & Flatten<_ZodFormattedError<T, U>>;
1784
+ //#endregion
1785
+ //#region ../../node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/core.d.cts
1786
+ type ZodTrait = {
1787
+ _zod: {
1788
+ def: any;
1789
+ [k: string]: any;
1790
+ };
1791
+ };
1792
+ interface $constructor<T extends ZodTrait, D = T["_zod"]["def"]> {
1793
+ new (def: D): T;
1794
+ init(inst: T, def: D): asserts inst is T;
1795
+ }
1796
+ interface $constructorParams {
1797
+ Parent?: typeof Class;
1798
+ }
1799
+ declare function $constructor<T extends ZodTrait, D = T["_zod"]["def"]>(name: string, initializer: (inst: T, def: D) => void,
1800
+ /** 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. */
1801
+ proto?: ProtoOf<T>, params?: $constructorParams): $constructor<T, D>;
1802
+ declare const $brand: unique symbol;
1803
+ type $brand<T extends string | number | symbol = string | number | symbol> = {
1804
+ [$brand]: { [k in T]: true; };
1805
+ };
1806
+ type $ZodBranded<T extends SomeType, Brand extends string | number | symbol, Dir extends "in" | "out" | "inout" = "out"> = T & (Dir extends "inout" ? {
1807
+ _zod: {
1808
+ input: input$1<T> & $brand<Brand>;
1809
+ output: output$1<T> & $brand<Brand>;
1810
+ };
1811
+ } : Dir extends "in" ? {
1812
+ _zod: {
1813
+ input: input$1<T> & $brand<Brand>;
1814
+ };
1815
+ } : {
1816
+ _zod: {
1817
+ output: output$1<T> & $brand<Brand>;
1818
+ };
1819
+ });
1820
+ type input$1<T> = T extends {
1821
+ _zod: {
1822
+ input: any;
1823
+ };
1824
+ } ? T["_zod"]["input"] : unknown;
1825
+ type output$1<T> = T extends {
1826
+ _zod: {
1827
+ output: any;
1828
+ };
1829
+ } ? T["_zod"]["output"] : unknown;
1830
+ //#endregion
1831
+ //#region ../../node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/api.d.cts
1832
+ 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] ? {} : {
1833
+ error?: string | $ZodErrorMap<IssueTypes> | undefined;
1834
+ /** @deprecated This parameter is deprecated. Use `error` instead. */
1835
+ message?: string | undefined;
1836
+ })>>>;
1837
+ type TypeParams<T extends $ZodType = $ZodType & {
1838
+ _isst: never;
1839
+ }, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "checks" | "error"> = never> = Params<T, NonNullable<T["_zod"]["isst"]>, "type" | "checks" | "error" | AlsoOmit>;
1840
+ type CheckParams<T extends $ZodCheck = $ZodCheck // & { _issc: never },
1841
+ , AlsoOmit extends Exclude<keyof T["_zod"]["def"], "check" | "error"> = never> = Params<T, NonNullable<T["_zod"]["issc"]>, "check" | "error" | AlsoOmit>;
1842
+ 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>;
1843
+ 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>;
1844
+ type $ZodCheckEmailParams = CheckStringFormatParams<$ZodEmail, "when">;
1845
+ type $ZodCheckGUIDParams = CheckStringFormatParams<$ZodGUID, "pattern" | "when">;
1846
+ type $ZodCheckUUIDParams = CheckStringFormatParams<$ZodUUID, "pattern" | "when">;
1847
+ type $ZodCheckURLParams = CheckStringFormatParams<$ZodURL, "when">;
1848
+ type $ZodCheckEmojiParams = CheckStringFormatParams<$ZodEmoji, "when">;
1849
+ type $ZodCheckNanoIDParams = CheckStringFormatParams<$ZodNanoID, "when" | "pattern">;
1850
+ /**
1851
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
1852
+ * (timestamps embedded in the id). Use {@link _cuid2} instead.
1853
+ * See https://github.com/paralleldrive/cuid.
1854
+ */
1855
+ type $ZodCheckCUIDParams = CheckStringFormatParams<$ZodCUID, "when">;
1856
+ type $ZodCheckCUID2Params = CheckStringFormatParams<$ZodCUID2, "when">;
1857
+ type $ZodCheckULIDParams = CheckStringFormatParams<$ZodULID, "when">;
1858
+ type $ZodCheckXIDParams = CheckStringFormatParams<$ZodXID, "when">;
1859
+ type $ZodCheckKSUIDParams = CheckStringFormatParams<$ZodKSUID, "when">;
1860
+ type $ZodCheckIPv4Params = CheckStringFormatParams<$ZodIPv4, "pattern" | "when" | "version">;
1861
+ type $ZodCheckIPv6Params = CheckStringFormatParams<$ZodIPv6, "pattern" | "when" | "version">;
1862
+ type $ZodCheckCIDRv4Params = CheckStringFormatParams<$ZodCIDRv4, "pattern" | "when">;
1863
+ type $ZodCheckCIDRv6Params = CheckStringFormatParams<$ZodCIDRv6, "pattern" | "when">;
1864
+ type $ZodCheckBase64Params = CheckStringFormatParams<$ZodBase64, "pattern" | "when">;
1865
+ type $ZodCheckBase64URLParams = CheckStringFormatParams<$ZodBase64URL, "pattern" | "when">;
1866
+ type $ZodCheckE164Params = CheckStringFormatParams<$ZodE164, "when">;
1867
+ type $ZodCheckJWTParams = CheckStringFormatParams<$ZodJWT, "pattern" | "when">;
1868
+ type $ZodCheckISODateTimeParams = CheckStringFormatParams<$ZodISODateTime, "pattern" | "when">;
1869
+ type $ZodCheckISODateParams = CheckStringFormatParams<$ZodISODate, "pattern" | "when">;
1870
+ type $ZodCheckISOTimeParams = CheckStringFormatParams<$ZodISOTime, "pattern" | "when">;
1871
+ type $ZodCheckISODurationParams = CheckStringFormatParams<$ZodISODuration, "when">;
1872
+ type $ZodCheckNumberFormatParams = CheckParams<$ZodCheckNumberFormat, "format" | "when">;
1873
+ type $ZodCheckLessThanParams = CheckParams<$ZodCheckLessThan, "inclusive" | "value" | "when">;
1874
+ type $ZodCheckGreaterThanParams = CheckParams<$ZodCheckGreaterThan, "inclusive" | "value" | "when">;
1875
+ type $ZodCheckMultipleOfParams = CheckParams<$ZodCheckMultipleOf, "value" | "when">;
1876
+ type $ZodCheckMaxLengthParams = CheckParams<$ZodCheckMaxLength, "maximum" | "when">;
1877
+ type $ZodCheckMinLengthParams = CheckParams<$ZodCheckMinLength, "minimum" | "when">;
1878
+ type $ZodCheckLengthEqualsParams = CheckParams<$ZodCheckLengthEquals, "length" | "when">;
1879
+ type $ZodCheckRegexParams = CheckParams<$ZodCheckRegex, "format" | "pattern" | "when">;
1880
+ type $ZodCheckLowerCaseParams = CheckParams<$ZodCheckLowerCase, "format" | "when">;
1881
+ type $ZodCheckUpperCaseParams = CheckParams<$ZodCheckUpperCase, "format" | "when">;
1882
+ type $ZodCheckIncludesParams = CheckParams<$ZodCheckIncludes, "includes" | "format" | "when" | "pattern">;
1883
+ type $ZodCheckStartsWithParams = CheckParams<$ZodCheckStartsWith, "prefix" | "format" | "when" | "pattern">;
1884
+ type $ZodCheckEndsWithParams = CheckParams<$ZodCheckEndsWith, "suffix" | "format" | "pattern" | "when">;
1885
+ type $ZodEnumParams = TypeParams<$ZodEnum, "entries">;
1886
+ type $ZodNonOptionalParams = TypeParams<$ZodNonOptional, "innerType">;
1887
+ type $ZodCustomParams = CheckTypeParams<$ZodCustom, "fn">;
1888
+ type $ZodSuperRefineIssue<T extends $ZodIssueBase = $ZodIssue> = T extends any ? RawIssue<T> : never;
1889
+ type RawIssue<T extends $ZodIssueBase> = T extends any ? Flatten<MakePartial<T, "message" | "path"> & {
1890
+ /** The schema or check that originated this issue. */
1891
+ readonly inst?: $ZodType | $ZodCheck;
1892
+ /** If `true`, Zod will execute subsequent checks/refinements instead of immediately aborting */
1893
+ readonly continue?: boolean | undefined;
1894
+ } & Record<string, unknown>> : never;
1895
+ interface $RefinementCtx<T = unknown> extends ParsePayload<T> {
1896
+ addIssue(arg: string | $ZodSuperRefineIssue): void;
1897
+ }
1898
+ interface $ZodSuperRefineParams {
1899
+ /** If provided, the refinement runs only when this returns `true`. By default, it is skipped if prior parsing produced aborting issues. */
1900
+ when?: ((payload: ParsePayload) => boolean) | undefined;
1901
+ }
1902
+ //#endregion
1903
+ //#region ../../node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/classic/errors.d.cts
1904
+ /** An Error-like class used to store Zod validation issues. */
1905
+ interface ZodError<T = unknown> extends $ZodError<T> {
1906
+ /** @deprecated Use the `z.treeifyError(err)` function instead. */
1907
+ format(): $ZodFormattedError<T>;
1908
+ format<U>(mapper: (issue: $ZodIssue) => U): $ZodFormattedError<T, U>;
1909
+ /** @deprecated Use the `z.treeifyError(err)` function instead. */
1910
+ flatten(): $ZodFlattenedError<T>;
1911
+ flatten<U>(mapper: (issue: $ZodIssue) => U): $ZodFlattenedError<T, U>;
1912
+ /** @deprecated Push directly to `.issues` instead. */
1913
+ addIssue(issue: $ZodIssue): void;
1914
+ /** @deprecated Push directly to `.issues` instead. */
1915
+ addIssues(issues: $ZodIssue[]): void;
1916
+ /** @deprecated Check `err.issues.length === 0` instead. */
1917
+ isEmpty: boolean;
1918
+ }
1919
+ declare const ZodError: $constructor<ZodError>;
1920
+ //#endregion
1921
+ //#region ../../node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/classic/parse.d.cts
1922
+ type ZodSafeParseResult<T> = ZodSafeParseSuccess<T> | ZodSafeParseError<T>;
1923
+ type ZodSafeParseSuccess<T> = {
1924
+ success: true;
1925
+ data: T;
1926
+ error?: never;
1927
+ };
1928
+ type ZodSafeParseError<T> = {
1929
+ success: false;
1930
+ data?: never;
1931
+ error: ZodError<T>;
1932
+ };
1933
+ //#endregion
1934
+ //#region ../../node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/classic/schemas.d.cts
1935
+ type ZodStandardSchemaWithJSON<T> = StandardSchemaWithJSONProps<input$1<T>, output$1<T>>;
1936
+ interface ZodType<out Output = unknown, out Input = unknown, out Internals extends $ZodTypeInternals<Output, Input> = $ZodTypeInternals<Output, Input>> extends $ZodType<Output, Input, Internals> {
1937
+ def: Internals["def"];
1938
+ type: Internals["def"]["type"];
1939
+ /** @deprecated Use `.def` instead. */
1940
+ _def: Internals["def"];
1941
+ /** @deprecated Use `z.output<typeof schema>` instead. */
1942
+ _output: Internals["output"];
1943
+ /** @deprecated Use `z.input<typeof schema>` instead. */
1944
+ _input: Internals["input"];
1945
+ "~standard": ZodStandardSchemaWithJSON<this>;
1946
+ /** Converts this schema to a JSON Schema representation. */
1947
+ toJSONSchema(params?: ToJSONSchemaParams): ZodStandardJSONSchemaPayload<this>;
1948
+ check(...checks: (CheckFn<output$1<this>> | $ZodCheck<output$1<this>>)[]): this;
1949
+ with(...checks: (CheckFn<output$1<this>> | $ZodCheck<output$1<this>>)[]): this;
1950
+ clone(def?: Internals["def"], params?: {
1951
+ parent: boolean;
1952
+ }): this;
1953
+ 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;
1954
+ brand<T extends PropertyKey = PropertyKey, Dir extends "in" | "out" | "inout" = "out">(value?: T): PropertyKey extends T ? this : $ZodBranded<this, T, Dir>;
1955
+ parse(data: unknown, params?: ParseContext<$ZodIssue>): output$1<this>;
1956
+ safeParse(data: unknown, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<output$1<this>>;
1957
+ parseAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<output$1<this>>;
1958
+ safeParseAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<output$1<this>>>;
1959
+ spa: (data: unknown, params?: ParseContext<$ZodIssue>) => Promise<ZodSafeParseResult<output$1<this>>>;
1960
+ validate(data: unknown, params?: ParseContext<$ZodIssue>): data is input$1<this>;
1961
+ validateAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<boolean>;
1962
+ encode(data: output$1<this>, params?: ParseContext<$ZodIssue>): input$1<this>;
1963
+ decode(data: input$1<this>, params?: ParseContext<$ZodIssue>): output$1<this>;
1964
+ encodeAsync(data: output$1<this>, params?: ParseContext<$ZodIssue>): Promise<input$1<this>>;
1965
+ decodeAsync(data: input$1<this>, params?: ParseContext<$ZodIssue>): Promise<output$1<this>>;
1966
+ safeEncode(data: output$1<this>, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<input$1<this>>;
1967
+ safeDecode(data: input$1<this>, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<output$1<this>>;
1968
+ safeEncodeAsync(data: output$1<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<input$1<this>>>;
1969
+ safeDecodeAsync(data: input$1<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<output$1<this>>>;
1970
+ 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;
1971
+ superRefine(refinement: (arg: output$1<this>, ctx: $RefinementCtx<output$1<this>>) => void | Promise<void>, params?: $ZodSuperRefineParams): this;
1972
+ overwrite(fn: (x: output$1<this>) => output$1<this>): this;
1973
+ optional(): ZodOptional<this>;
1974
+ exactOptional(): ZodExactOptional<this>;
1975
+ nonoptional(params?: string | $ZodNonOptionalParams): ZodNonOptional<this>;
1976
+ nullable(): ZodNullable<this>;
1977
+ nullish(): ZodOptional<ZodNullable<this>>;
1978
+ default(def: NoUndefined<output$1<this>>): ZodDefault<this>;
1979
+ default(def: () => NoUndefined<output$1<this>>): ZodDefault<this>;
1980
+ prefault(def: () => input$1<this>): ZodPrefault<this>;
1981
+ prefault(def: input$1<this>): ZodPrefault<this>;
1982
+ array(): ZodArray<this>;
1983
+ or<T extends SomeType>(option: T): ZodUnion<[this, T]>;
1984
+ and<T extends SomeType>(incoming: T): ZodIntersection<this, T>;
1985
+ transform<NewOut>(transform: (arg: output$1<this>, ctx: $RefinementCtx<output$1<this>>) => NewOut | Promise<NewOut>): ZodPipe<this, ZodTransform<Awaited<NewOut>, output$1<this>>>;
1986
+ catch(def: output$1<this>): ZodCatch<this>;
1987
+ catch(def: (ctx: $ZodCatchCtx) => output$1<this>): ZodCatch<this>;
1988
+ pipe<T extends $ZodType<any, output$1<this>>>(target: T | $ZodType<any, output$1<this>>): ZodPipe<this, T>;
1989
+ readonly(): ZodReadonly<this>;
1990
+ /** Returns a new instance that has been registered in `z.globalRegistry` with the specified description */
1991
+ describe(description: string): this;
1992
+ description?: string;
1993
+ /** Returns the metadata associated with this instance in `z.globalRegistry` */
1994
+ meta(): $replace<GlobalMeta, this> | undefined;
1995
+ /** Returns a new instance that has been registered in `z.globalRegistry` with the specified metadata */
1996
+ meta(data: $replace<GlobalMeta, this>): this;
1997
+ /** @deprecated Try safe-parsing `undefined` (this is what `isOptional` does internally):
1998
+ *
1999
+ * ```ts
2000
+ * const schema = z.string().optional();
2001
+ * const isOptional = schema.safeParse(undefined).success; // true
2002
+ * ```
2003
+ */
2004
+ isOptional(): boolean;
2005
+ /**
2006
+ * @deprecated Try safe-parsing `null` (this is what `isNullable` does internally):
2007
+ *
2008
+ * ```ts
2009
+ * const schema = z.string().nullable();
2010
+ * const isNullable = schema.safeParse(null).success; // true
2011
+ * ```
2012
+ */
2013
+ isNullable(): boolean;
2014
+ apply<T, TArgs extends unknown[] = []>(fn: (schema: this, ...args: TArgs) => T, ...args: TArgs): T;
2015
+ }
2016
+ interface _ZodType<out Internals extends $ZodTypeInternals = $ZodTypeInternals> extends ZodType<any, any, Internals> {}
2017
+ declare const ZodType: $constructor<ZodType>;
2018
+ interface _ZodString<T extends $ZodStringInternals<unknown> = $ZodStringInternals<unknown>> extends _ZodType<T> {
2019
+ format: string | null;
2020
+ minLength: number | null;
2021
+ maxLength: number | null;
2022
+ regex(regex: RegExp, params?: string | $ZodCheckRegexParams): this;
2023
+ includes(value: string, params?: string | $ZodCheckIncludesParams): this;
2024
+ startsWith(value: string, params?: string | $ZodCheckStartsWithParams): this;
2025
+ endsWith(value: string, params?: string | $ZodCheckEndsWithParams): this;
2026
+ min(minLength: number, params?: string | $ZodCheckMinLengthParams): this;
2027
+ max(maxLength: number, params?: string | $ZodCheckMaxLengthParams): this;
2028
+ length(len: number, params?: string | $ZodCheckLengthEqualsParams): this;
2029
+ nonempty(params?: string | $ZodCheckMinLengthParams): this;
2030
+ lowercase(params?: string | $ZodCheckLowerCaseParams): this;
2031
+ uppercase(params?: string | $ZodCheckUpperCaseParams): this;
2032
+ trim(): this;
2033
+ normalize(form?: "NFC" | "NFD" | "NFKC" | "NFKD" | (string & {})): this;
2034
+ toLowerCase(): this;
2035
+ toUpperCase(): this;
2036
+ slugify(): this;
2037
+ }
2038
+ /** @internal */
2039
+ declare const _ZodString: $constructor<_ZodString>;
2040
+ interface ZodString extends _ZodString<$ZodStringInternals<string>> {
2041
+ /** @deprecated Use `z.email()` instead. */
2042
+ email(params?: string | $ZodCheckEmailParams): this;
2043
+ /** @deprecated Use `z.url()` instead. */
2044
+ url(params?: string | $ZodCheckURLParams): this;
2045
+ /** @deprecated Use `z.jwt()` instead. */
2046
+ jwt(params?: string | $ZodCheckJWTParams): this;
2047
+ /** @deprecated Use `z.emoji()` instead. */
2048
+ emoji(params?: string | $ZodCheckEmojiParams): this;
2049
+ /** @deprecated Use `z.guid()` instead. */
2050
+ guid(params?: string | $ZodCheckGUIDParams): this;
2051
+ /** @deprecated Use `z.uuid()` instead. */
2052
+ uuid(params?: string | $ZodCheckUUIDParams): this;
2053
+ /** @deprecated Use `z.uuid()` instead. */
2054
+ uuidv4(params?: string | $ZodCheckUUIDParams): this;
2055
+ /** @deprecated Use `z.uuid()` instead. */
2056
+ uuidv6(params?: string | $ZodCheckUUIDParams): this;
2057
+ /** @deprecated Use `z.uuid()` instead. */
2058
+ uuidv7(params?: string | $ZodCheckUUIDParams): this;
2059
+ /** @deprecated Use `z.nanoid()` instead. */
2060
+ nanoid(params?: string | $ZodCheckNanoIDParams): this;
2061
+ /** @deprecated Use `z.guid()` instead. */
2062
+ guid(params?: string | $ZodCheckGUIDParams): this;
2063
+ /**
2064
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
2065
+ * (timestamps embedded in the id). Use `z.cuid2()` instead.
2066
+ * See https://github.com/paralleldrive/cuid.
2067
+ */
2068
+ cuid(params?: string | $ZodCheckCUIDParams): this;
2069
+ /** @deprecated Use `z.cuid2()` instead. */
2070
+ cuid2(params?: string | $ZodCheckCUID2Params): this;
2071
+ /** @deprecated Use `z.ulid()` instead. */
2072
+ ulid(params?: string | $ZodCheckULIDParams): this;
2073
+ /** @deprecated Use `z.base64()` instead. */
2074
+ base64(params?: string | $ZodCheckBase64Params): this;
2075
+ /** @deprecated Use `z.base64url()` instead. */
2076
+ base64url(params?: string | $ZodCheckBase64URLParams): this;
2077
+ /** @deprecated Use `z.xid()` instead. */
2078
+ xid(params?: string | $ZodCheckXIDParams): this;
2079
+ /** @deprecated Use `z.ksuid()` instead. */
2080
+ ksuid(params?: string | $ZodCheckKSUIDParams): this;
2081
+ /** @deprecated Use `z.ipv4()` instead. */
2082
+ ipv4(params?: string | $ZodCheckIPv4Params): this;
2083
+ /** @deprecated Use `z.ipv6()` instead. */
2084
+ ipv6(params?: string | $ZodCheckIPv6Params): this;
2085
+ /** @deprecated Use `z.cidrv4()` instead. */
2086
+ cidrv4(params?: string | $ZodCheckCIDRv4Params): this;
2087
+ /** @deprecated Use `z.cidrv6()` instead. */
2088
+ cidrv6(params?: string | $ZodCheckCIDRv6Params): this;
2089
+ /** @deprecated Use `z.e164()` instead. */
2090
+ e164(params?: string | $ZodCheckE164Params): this;
2091
+ /** @deprecated Use `z.iso.datetime()` instead. */
2092
+ datetime(params?: string | $ZodCheckISODateTimeParams): this;
2093
+ /** @deprecated Use `z.iso.date()` instead. */
2094
+ date(params?: string | $ZodCheckISODateParams): this;
2095
+ /** @deprecated Use `z.iso.time()` instead. */
2096
+ time(params?: string | $ZodCheckISOTimeParams): this;
2097
+ /** @deprecated Use `z.iso.duration()` instead. */
2098
+ duration(params?: string | $ZodCheckISODurationParams): this;
2099
+ }
2100
+ declare const ZodString: $constructor<ZodString>;
2101
+ interface _ZodNumber<Internals extends $ZodNumberInternals = $ZodNumberInternals> extends _ZodType<Internals> {
2102
+ gt(value: number, params?: string | $ZodCheckGreaterThanParams): this;
2103
+ /** Identical to .min() */
2104
+ gte(value: number, params?: string | $ZodCheckGreaterThanParams): this;
2105
+ min(value: number, params?: string | $ZodCheckGreaterThanParams): this;
2106
+ lt(value: number, params?: string | $ZodCheckLessThanParams): this;
2107
+ /** Identical to .max() */
2108
+ lte(value: number, params?: string | $ZodCheckLessThanParams): this;
2109
+ max(value: number, params?: string | $ZodCheckLessThanParams): this;
2110
+ /** Consider `z.int()` instead. This API is considered *legacy*; it will never be removed but a better alternative exists. */
2111
+ int(params?: string | $ZodCheckNumberFormatParams): this;
2112
+ /** @deprecated This is now identical to `.int()`. Only numbers in the safe integer range are accepted. */
2113
+ safe(params?: string | $ZodCheckNumberFormatParams): this;
2114
+ positive(params?: string | $ZodCheckGreaterThanParams): this;
2115
+ nonnegative(params?: string | $ZodCheckGreaterThanParams): this;
2116
+ negative(params?: string | $ZodCheckLessThanParams): this;
2117
+ nonpositive(params?: string | $ZodCheckLessThanParams): this;
2118
+ multipleOf(value: number, params?: string | $ZodCheckMultipleOfParams): this;
2119
+ /** @deprecated Use `.multipleOf()` instead. */
2120
+ step(value: number, params?: string | $ZodCheckMultipleOfParams): this;
2121
+ /** @deprecated In v4 and later, z.number() does not allow infinite values by default. This is a no-op. */
2122
+ finite(params?: unknown): this;
2123
+ minValue: number | null;
2124
+ maxValue: number | null;
2125
+ /** @deprecated Check the `format` property instead. */
2126
+ isInt: boolean;
2127
+ /** @deprecated Number schemas no longer accept infinite values, so this always returns `true`. */
2128
+ isFinite: boolean;
2129
+ format: string | null;
2130
+ }
2131
+ interface ZodNumber extends _ZodNumber<$ZodNumberInternals<number>> {}
2132
+ declare const ZodNumber: $constructor<ZodNumber>;
2133
+ interface _ZodBoolean<T extends $ZodBooleanInternals = $ZodBooleanInternals> extends _ZodType<T> {}
2134
+ interface ZodBoolean extends _ZodBoolean<$ZodBooleanInternals<boolean>> {}
2135
+ declare const ZodBoolean: $constructor<ZodBoolean>;
2136
+ interface ZodNull extends _ZodType<$ZodNullInternals> {}
2137
+ declare const ZodNull: $constructor<ZodNull>;
2138
+ interface ZodUnknown extends _ZodType<$ZodUnknownInternals> {}
2139
+ declare const ZodUnknown: $constructor<ZodUnknown>;
2140
+ interface ZodNever extends _ZodType<$ZodNeverInternals> {}
2141
+ declare const ZodNever: $constructor<ZodNever>;
2142
+ interface ZodArray<T extends SomeType = $ZodType> extends _ZodType<$ZodArrayInternals<T>>, $ZodArray<T> {
2143
+ element: T;
2144
+ min(minLength: number, params?: string | $ZodCheckMinLengthParams): this;
2145
+ nonempty(params?: string | $ZodCheckMinLengthParams): this;
2146
+ max(maxLength: number, params?: string | $ZodCheckMaxLengthParams): this;
2147
+ length(len: number, params?: string | $ZodCheckLengthEqualsParams): this;
2148
+ unwrap(): T;
2149
+ "~standard": ZodStandardSchemaWithJSON<this>;
2150
+ }
2151
+ declare const ZodArray: $constructor<ZodArray>;
2152
+ 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]; };
2153
+ interface ZodObject<
2154
+ /** @ts-ignore Cast variance */
2155
+ out Shape extends $ZodShape = $ZodLooseShape, out Config extends $ZodObjectConfig = $strip> extends _ZodType<$ZodObjectInternals<Shape, Config>>, $ZodObject<Shape, Config> {
2156
+ "~standard": ZodStandardSchemaWithJSON<this>;
2157
+ shape: Shape;
2158
+ keyof(): ZodEnum<ToEnum<keyof Shape & string>>;
2159
+ /** Define a schema to validate all unrecognized keys. This overrides the existing strict/loose behavior. */
2160
+ catchall<T extends SomeType>(schema: T): ZodObject<Shape, $catchall<T>>;
2161
+ /** @deprecated Use `z.looseObject()` or `.loose()` instead. */
2162
+ passthrough(): ZodObject<Shape, $loose>;
2163
+ /** Consider `z.looseObject(A.shape)` instead */
2164
+ loose(): ZodObject<Shape, $loose>;
2165
+ /** Consider `z.strictObject(A.shape)` instead */
2166
+ strict(): ZodObject<Shape, $strict>;
2167
+ /** This is the default behavior. This method call is likely unnecessary. */
2168
+ strip(): ZodObject<Shape, $strip>;
2169
+ extend<U extends $ZodLooseShape>(shape: U): ZodObject<Extend<Shape, Writeable<U>>, Config>;
2170
+ safeExtend<U extends $ZodLooseShape>(shape: SafeExtendShape<Shape, U> & Partial<Record<keyof Shape, SomeType>>): ZodObject<Extend<Shape, Writeable<U>>, Config>;
2171
+ /**
2172
+ * @deprecated Use [`A.extend(B.shape)`](https://zod.dev/api?id=extend) instead.
2173
+ */
2174
+ merge<U extends ZodObject>(other: U): ZodObject<Extend<Shape, U["shape"]>, U["_zod"]["config"]>;
2175
+ pick<M extends Mask<keyof Shape>>(mask: M & Record<Exclude<keyof M, keyof Shape>, never>): ZodObject<Flatten<Pick<Shape, Extract<keyof Shape, keyof M>>>, Config>;
2176
+ omit<M extends Mask<keyof Shape>>(mask: M & Record<Exclude<keyof M, keyof Shape>, never>): ZodObject<Flatten<Omit<Shape, Extract<keyof Shape, keyof M>>>, Config>;
2177
+ partial(): ZodObject<{ -readonly [k in keyof Shape]: ZodOptional<Shape[k]>; }, Config>;
2178
+ partial<M extends Mask<keyof Shape>>(mask: M & Record<Exclude<keyof M, keyof Shape>, never>): ZodObject<{ -readonly [k in keyof Shape]: k extends keyof M ? ZodOptional<Shape[k]> : Shape[k]; }, Config>;
2179
+ exactPartial(): ZodObject<{ -readonly [k in keyof Shape]: ZodExactOptional<Shape[k]>; }, Config>;
2180
+ exactPartial<M extends Mask<keyof Shape>>(mask: M & Record<Exclude<keyof M, keyof Shape>, never>): ZodObject<{ -readonly [k in keyof Shape]: k extends keyof M ? ZodExactOptional<Shape[k]> : Shape[k]; }, Config>;
2181
+ required(): ZodObject<{ -readonly [k in keyof Shape]: ZodNonOptional<Shape[k]>; }, Config>;
2182
+ 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>;
2183
+ }
2184
+ declare const ZodObject: $constructor<ZodObject>;
2185
+ interface ZodUnion<T extends readonly SomeType[] = readonly $ZodType[]> extends _ZodType<$ZodUnionInternals<T>>, $ZodUnion<T> {
2186
+ "~standard": ZodStandardSchemaWithJSON<this>;
2187
+ options: T;
2188
+ }
2189
+ declare const ZodUnion: $constructor<ZodUnion>;
2190
+ interface ZodDiscriminatedUnion<Options extends readonly SomeType[] = readonly $ZodType[], Disc extends string = string> extends ZodUnion<Options>, $ZodDiscriminatedUnion<Options, Disc> {
2191
+ "~standard": ZodStandardSchemaWithJSON<this>;
2192
+ _zod: $ZodDiscriminatedUnionInternals<Options, Disc>;
2193
+ def: $ZodDiscriminatedUnionDef<Options, Disc>;
2194
+ }
2195
+ declare const ZodDiscriminatedUnion: $constructor<ZodDiscriminatedUnion>;
2196
+ interface ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _ZodType<$ZodIntersectionInternals<A, B>>, $ZodIntersection<A, B> {
2197
+ "~standard": ZodStandardSchemaWithJSON<this>;
2198
+ }
2199
+ declare const ZodIntersection: $constructor<ZodIntersection>;
2200
+ interface ZodRecord<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends _ZodType<$ZodRecordInternals<Key, Value>>, $ZodRecord<Key, Value> {
2201
+ "~standard": ZodStandardSchemaWithJSON<this>;
2202
+ keyType: Key;
2203
+ valueType: Value;
2204
+ }
2205
+ declare const ZodRecord: $constructor<ZodRecord>;
2206
+ interface ZodEnum<
2207
+ /** @ts-ignore Cast variance */
2208
+ out T extends EnumLike = EnumLike> extends _ZodType<$ZodEnumInternals<T>>, $ZodEnum<T> {
2209
+ "~standard": ZodStandardSchemaWithJSON<this>;
2210
+ enum: T;
2211
+ options: Array<T[keyof T]>;
2212
+ extract<const U extends readonly (keyof T)[]>(values: U, params?: string | $ZodEnumParams): ZodEnum<Flatten<Pick<T, U[number]>>>;
2213
+ exclude<const U extends readonly (keyof T)[]>(values: U, params?: string | $ZodEnumParams): ZodEnum<Flatten<Omit<T, U[number]>>>;
2214
+ }
2215
+ declare const ZodEnum: $constructor<ZodEnum>;
2216
+ interface ZodLiteral<T extends Literal = Literal> extends _ZodType<$ZodLiteralInternals<T>>, $ZodLiteral<T> {
2217
+ "~standard": ZodStandardSchemaWithJSON<this>;
2218
+ values: Set<T>;
2219
+ /** @legacy Use `.values` instead. Accessing this property will throw an error if the literal accepts multiple values. */
2220
+ value: T;
2221
+ }
2222
+ declare const ZodLiteral: $constructor<ZodLiteral>;
2223
+ interface ZodTransform<O = unknown, I = unknown> extends _ZodType<$ZodTransformInternals<O, I>>, $ZodTransform<O, I> {
2224
+ "~standard": ZodStandardSchemaWithJSON<this>;
2225
+ }
2226
+ declare const ZodTransform: $constructor<ZodTransform>;
2227
+ interface ZodOptional<T extends SomeType = $ZodType> extends _ZodType<$ZodOptionalInternals<T>>, $ZodOptional<T> {
2228
+ "~standard": ZodStandardSchemaWithJSON<this>;
2229
+ unwrap(): T;
2230
+ }
2231
+ declare const ZodOptional: $constructor<ZodOptional>;
2232
+ interface ZodExactOptional<T extends SomeType = $ZodType> extends _ZodType<$ZodExactOptionalInternals<T>>, $ZodExactOptional<T> {
2233
+ "~standard": ZodStandardSchemaWithJSON<this>;
2234
+ unwrap(): T;
2235
+ }
2236
+ declare const ZodExactOptional: $constructor<ZodExactOptional>;
2237
+ interface ZodNullable<T extends SomeType = $ZodType> extends _ZodType<$ZodNullableInternals<T>>, $ZodNullable<T> {
2238
+ "~standard": ZodStandardSchemaWithJSON<this>;
2239
+ unwrap(): T;
2240
+ }
2241
+ declare const ZodNullable: $constructor<ZodNullable>;
2242
+ interface ZodDefault<T extends SomeType = $ZodType> extends _ZodType<$ZodDefaultInternals<T>>, $ZodDefault<T> {
2243
+ "~standard": ZodStandardSchemaWithJSON<this>;
2244
+ unwrap(): T;
2245
+ /** @deprecated Use `.unwrap()` instead. */
2246
+ removeDefault(): T;
2247
+ }
2248
+ declare const ZodDefault: $constructor<ZodDefault>;
2249
+ interface ZodPrefault<T extends SomeType = $ZodType> extends _ZodType<$ZodPrefaultInternals<T>>, $ZodPrefault<T> {
2250
+ "~standard": ZodStandardSchemaWithJSON<this>;
2251
+ unwrap(): T;
2252
+ }
2253
+ declare const ZodPrefault: $constructor<ZodPrefault>;
2254
+ interface ZodNonOptional<T extends SomeType = $ZodType> extends _ZodType<$ZodNonOptionalInternals<T>>, $ZodNonOptional<T> {
2255
+ "~standard": ZodStandardSchemaWithJSON<this>;
2256
+ unwrap(): T;
2257
+ }
2258
+ declare const ZodNonOptional: $constructor<ZodNonOptional>;
2259
+ interface ZodCatch<T extends SomeType = $ZodType> extends _ZodType<$ZodCatchInternals<T>>, $ZodCatch<T> {
2260
+ "~standard": ZodStandardSchemaWithJSON<this>;
2261
+ unwrap(): T;
2262
+ /** @deprecated Use `.unwrap()` instead. */
2263
+ removeCatch(): T;
2264
+ }
2265
+ declare const ZodCatch: $constructor<ZodCatch>;
2266
+ interface ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _ZodType<$ZodPipeInternals<A, B>>, $ZodPipe<A, B> {
2267
+ "~standard": ZodStandardSchemaWithJSON<this>;
2268
+ in: A;
2269
+ out: B;
2270
+ }
2271
+ declare const ZodPipe: $constructor<ZodPipe>;
2272
+ interface ZodReadonly<T extends SomeType = $ZodType> extends _ZodType<$ZodReadonlyInternals<T>>, $ZodReadonly<T> {
2273
+ "~standard": ZodStandardSchemaWithJSON<this>;
2274
+ unwrap(): T;
2275
+ }
2276
+ declare const ZodReadonly: $constructor<ZodReadonly>;
2277
+ interface ZodTemplateLiteral<Template extends string = string> extends _ZodType<$ZodTemplateLiteralInternals<Template>>, $ZodTemplateLiteral<Template> {
2278
+ "~standard": ZodStandardSchemaWithJSON<this>;
2279
+ }
2280
+ declare const ZodTemplateLiteral: $constructor<ZodTemplateLiteral>;
2281
+ type _ZodJSONSchema = ZodUnion<[ZodString, ZodNumber, ZodBoolean, ZodNull, ZodArray<ZodJSONSchema>, ZodRecord<ZodString, ZodJSONSchema>]>;
2282
+ type _ZodJSONSchemaInternals = _ZodJSONSchema["_zod"];
2283
+ interface ZodJSONSchemaInternals extends _ZodJSONSchemaInternals {
2284
+ output: JSONType;
2285
+ input: JSONType;
2286
+ }
2287
+ interface ZodJSONSchema extends _ZodJSONSchema {
2288
+ _zod: ZodJSONSchemaInternals;
2289
+ }
2290
+ //#endregion
2291
+ //#region ../../node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/classic/in-out.d.cts
2292
+ type input<T> = input$1<T>;
2293
+ type output<T> = output$1<T>;
2294
+ /** 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. */
2295
+ declare function input<T extends $ZodType>(schema: T): ZodType<input$1<T>, input$1<T>>;
2296
+ /** Returns a copy of the schema with every pipe replaced by its output side, carrying over the pipe's own checks. */
2297
+ declare function output<T extends $ZodType>(schema: T): ZodType<output$1<T>, output$1<T>>;
2298
+ //#endregion
2299
+ //#region ../config/dist/index.d.mts
2300
+ declare const KnownBindingSchema: ZodDiscriminatedUnion<[ZodObject<{
2301
+ type: ZodLiteral<"agent-memory">;
2302
+ namespace: ZodString;
2303
+ dev: ZodOptional<ZodObject<{
2304
+ remote: ZodOptional<ZodBoolean>;
2305
+ }, $strict>>;
2306
+ }, $strict>, ZodObject<{
2307
+ type: ZodLiteral<"ai">;
2308
+ dev: ZodOptional<ZodObject<{
2309
+ remote: ZodOptional<ZodBoolean>;
2310
+ }, $strict>>;
2311
+ }, $strict>, ZodObject<{
2312
+ type: ZodLiteral<"ai-search">;
2313
+ name: ZodString;
2314
+ dev: ZodOptional<ZodObject<{
2315
+ remote: ZodOptional<ZodBoolean>;
2316
+ }, $strict>>;
2317
+ }, $strict>, ZodObject<{
2318
+ type: ZodLiteral<"ai-search-namespace">;
2319
+ namespace: ZodString;
2320
+ dev: ZodOptional<ZodObject<{
2321
+ remote: ZodOptional<ZodBoolean>;
2322
+ }, $strict>>;
2323
+ }, $strict>, ZodObject<{
2324
+ type: ZodLiteral<"analytics-engine-dataset">;
2325
+ name: ZodOptional<ZodString>;
2326
+ dev: ZodOptional<ZodObject<{
2327
+ remote: ZodOptional<ZodBoolean>;
2328
+ }, $strict>>;
2329
+ }, $strict>, ZodObject<{
2330
+ type: ZodLiteral<"artifacts">;
2331
+ namespace: ZodString;
2332
+ dev: ZodOptional<ZodObject<{
2333
+ remote: ZodOptional<ZodBoolean>;
2334
+ }, $strict>>;
2335
+ }, $strict>, ZodObject<{
2336
+ type: ZodLiteral<"assets">;
2337
+ }, $strict>, ZodObject<{
2338
+ type: ZodLiteral<"browser">;
2339
+ dev: ZodOptional<ZodObject<{
2340
+ remote: ZodOptional<ZodBoolean>;
2341
+ }, $strict>>;
2342
+ }, $strict>, ZodObject<{
2343
+ type: ZodLiteral<"analytics-sql">;
2344
+ dev: ZodOptional<ZodObject<{
2345
+ remote: ZodOptional<ZodBoolean>;
2346
+ }, $strict>>;
2347
+ }, $strict>, ZodObject<{
2348
+ type: ZodLiteral<"d1">;
2349
+ name: ZodOptional<ZodString>;
2350
+ id: ZodOptional<ZodString>;
2351
+ jurisdiction: ZodOptional<ZodString>;
2352
+ dev: ZodOptional<ZodObject<{
2353
+ remote: ZodOptional<ZodBoolean>;
2354
+ }, $strict>>;
2355
+ }, $strict>, ZodObject<{
2356
+ type: ZodLiteral<"dispatch-namespace">;
2357
+ namespace: ZodOptional<ZodString>;
2358
+ outbound: ZodOptional<ZodObject<{
2359
+ worker: ZodString;
2360
+ parameters: ZodOptional<ZodArray<ZodString>>;
2361
+ }, $strict>>;
2362
+ dev: ZodOptional<ZodObject<{
2363
+ remote: ZodOptional<ZodBoolean>;
2364
+ }, $strict>>;
2365
+ }, $strict>, ZodObject<{
2366
+ type: ZodLiteral<"durable-object">;
2367
+ worker: ZodString;
2368
+ exportName: ZodString;
2369
+ }, $strict>, ZodObject<{
2370
+ type: ZodLiteral<"flagship">;
2371
+ id: ZodOptional<ZodString>;
2372
+ dev: ZodOptional<ZodObject<{
2373
+ remote: ZodOptional<ZodBoolean>;
2374
+ }, $strict>>;
2375
+ }, $strict>, ZodObject<{
2376
+ type: ZodLiteral<"hyperdrive">;
2377
+ id: ZodString;
2378
+ dev: ZodOptional<ZodObject<{
2379
+ remote: ZodOptional<ZodBoolean>;
2380
+ connectionString: ZodOptional<ZodString>;
2381
+ }, $strict>>;
2382
+ }, $strict>, ZodObject<{
2383
+ type: ZodLiteral<"images">;
2384
+ dev: ZodOptional<ZodObject<{
2385
+ remote: ZodOptional<ZodBoolean>;
2386
+ }, $strict>>;
2387
+ }, $strict>, ZodObject<{
2388
+ type: ZodLiteral<"json">;
2389
+ value: ZodJSONSchema;
2390
+ }, $strict>, ZodObject<{
2391
+ type: ZodLiteral<"kv">;
2392
+ id: ZodOptional<ZodString>;
2393
+ dev: ZodOptional<ZodObject<{
2394
+ remote: ZodOptional<ZodBoolean>;
2395
+ }, $strict>>;
2396
+ }, $strict>, ZodObject<{
2397
+ type: ZodLiteral<"logfwdr">;
2398
+ destination: ZodString;
2399
+ }, $strict>, ZodObject<{
2400
+ type: ZodLiteral<"media">;
2401
+ dev: ZodOptional<ZodObject<{
2402
+ remote: ZodOptional<ZodBoolean>;
2403
+ }, $strict>>;
2404
+ }, $strict>, ZodObject<{
2405
+ type: ZodLiteral<"mtls-certificate">;
2406
+ id: ZodString;
2407
+ dev: ZodOptional<ZodObject<{
2408
+ remote: ZodOptional<ZodBoolean>;
2409
+ }, $strict>>;
2410
+ }, $strict>, ZodObject<{
2411
+ type: ZodLiteral<"pipeline">;
2412
+ name: ZodOptional<ZodNever>;
2413
+ streamId: ZodString;
2414
+ dev: ZodOptional<ZodObject<{
2415
+ remote: ZodOptional<ZodBoolean>;
2416
+ }, $strict>>;
2417
+ }, $strict>, ZodObject<{
2418
+ type: ZodLiteral<"k2">;
2419
+ stream: ZodOptional<ZodNever>;
2420
+ id: ZodString;
2421
+ dev: ZodOptional<ZodObject<{
2422
+ remote: ZodOptional<ZodBoolean>;
2423
+ }, $strict>>;
2424
+ }, $strict>, ZodObject<{
2425
+ type: ZodLiteral<"queue">;
2426
+ name: ZodOptional<ZodString>;
2427
+ deliveryDelay: ZodOptional<ZodNumber>;
2428
+ dev: ZodOptional<ZodObject<{
2429
+ remote: ZodOptional<ZodBoolean>;
2430
+ }, $strict>>;
2431
+ }, $strict>, ZodObject<{
2432
+ type: ZodLiteral<"rate-limit">;
2433
+ namespace: ZodString;
2434
+ simple: ZodObject<{
2435
+ limit: ZodNumber;
2436
+ period: ZodUnion<readonly [ZodLiteral<10>, ZodLiteral<60>]>;
2437
+ }, $strict>;
2438
+ }, $strict>, ZodObject<{
2439
+ type: ZodLiteral<"r2">;
2440
+ name: ZodOptional<ZodString>;
2441
+ jurisdiction: ZodOptional<ZodString>;
2442
+ dev: ZodOptional<ZodObject<{
2443
+ remote: ZodOptional<ZodBoolean>;
2444
+ experimentalS3Credentials: ZodOptional<ZodObject<{
2445
+ accessKeyId: ZodString;
2446
+ secretAccessKey: ZodString;
2447
+ }, $strip>>;
2448
+ }, $strict>>;
2449
+ }, $strict>, ZodObject<{
2450
+ type: ZodLiteral<"secret">;
2451
+ }, $strict>, ZodObject<{
2452
+ type: ZodLiteral<"secrets-store-secret">;
2453
+ storeId: ZodString;
2454
+ secretName: ZodString;
2455
+ }, $strict>, ZodObject<{
2456
+ type: ZodLiteral<"send-email">;
2457
+ destinationAddress: ZodOptional<ZodString>;
2458
+ allowedDestinationAddresses: ZodOptional<ZodArray<ZodString>>;
2459
+ allowedSenderAddresses: ZodOptional<ZodArray<ZodString>>;
2460
+ dev: ZodOptional<ZodObject<{
2461
+ remote: ZodOptional<ZodBoolean>;
2462
+ }, $strict>>;
2463
+ }, $strict> & ZodType<SendEmailBinding, {
2464
+ type: "send-email";
2465
+ destinationAddress?: string | undefined;
2466
+ allowedDestinationAddresses?: string[] | undefined;
2467
+ allowedSenderAddresses?: string[] | undefined;
2468
+ dev?: {
2469
+ remote?: boolean | undefined;
2470
+ } | undefined;
2471
+ }, $ZodTypeInternals<SendEmailBinding, {
2472
+ type: "send-email";
2473
+ destinationAddress?: string | undefined;
2474
+ allowedDestinationAddresses?: string[] | undefined;
2475
+ allowedSenderAddresses?: string[] | undefined;
2476
+ dev?: {
2477
+ remote?: boolean | undefined;
2478
+ } | undefined;
2479
+ }>>, ZodObject<{
2480
+ type: ZodLiteral<"stream">;
2481
+ dev: ZodOptional<ZodObject<{
2482
+ remote: ZodOptional<ZodBoolean>;
2483
+ }, $strict>>;
2484
+ }, $strict>, ZodObject<{
2485
+ type: ZodLiteral<"text">;
2486
+ value: ZodString;
2487
+ }, $strict>, ZodObject<{
2488
+ type: ZodLiteral<"vectorize">;
2489
+ name: ZodString;
2490
+ dev: ZodOptional<ZodObject<{
2491
+ remote: ZodOptional<ZodBoolean>;
2492
+ }, $strict>>;
2493
+ }, $strict>, ZodObject<{
2494
+ type: ZodLiteral<"version-metadata">;
2495
+ }, $strict>, ZodObject<{
2496
+ type: ZodLiteral<"vpc-service">;
2497
+ id: ZodString;
2498
+ dev: ZodOptional<ZodObject<{
2499
+ remote: ZodOptional<ZodBoolean>;
2500
+ }, $strict>>;
2501
+ }, $strict>, ZodObject<{
2502
+ type: ZodLiteral<"vpc-network">;
2503
+ tunnelId: ZodOptional<ZodString>;
2504
+ networkId: ZodOptional<ZodString>;
2505
+ dev: ZodOptional<ZodObject<{
2506
+ remote: ZodOptional<ZodBoolean>;
2507
+ }, $strict>>;
2508
+ }, $strict> & ZodType<VpcNetworkBinding, {
2509
+ type: "vpc-network";
2510
+ tunnelId?: string | undefined;
2511
+ networkId?: string | undefined;
2512
+ dev?: {
2513
+ remote?: boolean | undefined;
2514
+ } | undefined;
2515
+ }, $ZodTypeInternals<VpcNetworkBinding, {
2516
+ type: "vpc-network";
2517
+ tunnelId?: string | undefined;
2518
+ networkId?: string | undefined;
2519
+ dev?: {
2520
+ remote?: boolean | undefined;
2521
+ } | undefined;
2522
+ }>>, ZodObject<{
2523
+ type: ZodLiteral<"worker">;
2524
+ worker: ZodString;
2525
+ exportName: ZodOptional<ZodString>;
2526
+ props: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
2527
+ dev: ZodOptional<ZodObject<{
2528
+ remote: ZodOptional<ZodBoolean>;
2529
+ }, $strict>>;
2530
+ }, $strict>, ZodObject<{
2531
+ type: ZodLiteral<"worker-loader">;
2532
+ }, $strict>, ZodObject<{
2533
+ type: ZodLiteral<"workflow">;
2534
+ name: ZodString;
2535
+ worker: ZodString;
2536
+ exportName: ZodString;
2537
+ }, $strict>], "type">;
2538
+ declare const UnsafeBindingSchema: ZodObject<{
2539
+ type: ZodTemplateLiteral<`unsafe:${string}`>;
2540
+ dev: ZodOptional<ZodObject<{
2541
+ plugin: ZodObject<{
2542
+ package: ZodString;
2543
+ name: ZodString;
2544
+ }, $strict>;
2545
+ options: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
2546
+ }, $strict>>;
2547
+ }, $loose>;
2548
+ type BindingInput = input<typeof KnownBindingSchema> | input<typeof UnsafeBindingSchema>;
2549
+ type BindingOutput = output<typeof KnownBindingSchema> | output<typeof UnsafeBindingSchema>;
2550
+ /**
2551
+ * Worker schema — parses Worker definitions from user-authored
2552
+ * `cloudflare.config.ts` files, after the config loader has resolved
2553
+ * `defineWorker()` references and module entrypoints. Adds an optional string
2554
+ * `entrypoint` field to the base schema.
2555
+ */
2556
+ declare const WorkerConfigSchema: ZodObject<{
2557
+ name: ZodString;
2558
+ compatibilityDate: ZodString;
2559
+ compatibilityFlags: ZodOptional<ZodArray<ZodString>>;
2560
+ assets: ZodOptional<ZodObject<{
2561
+ htmlHandling: ZodOptional<ZodEnum<{
2562
+ "auto-trailing-slash": "auto-trailing-slash";
2563
+ "drop-trailing-slash": "drop-trailing-slash";
2564
+ "force-trailing-slash": "force-trailing-slash";
2565
+ none: "none";
2566
+ }>>;
2567
+ notFoundHandling: ZodOptional<ZodEnum<{
2568
+ none: "none";
2569
+ "single-page-application": "single-page-application";
2570
+ "404-page": "404-page";
2571
+ }>>;
2572
+ basePath: ZodOptional<ZodString>;
2573
+ runWorkerFirst: ZodOptional<ZodUnion<readonly [ZodArray<ZodString>, ZodBoolean]>>;
2574
+ }, $strict>>;
2575
+ domains: ZodOptional<ZodArray<ZodUnion<readonly [ZodString, ZodObject<{
2576
+ hostname: ZodString;
2577
+ production: ZodBoolean;
2578
+ previews: ZodBoolean;
2579
+ }, $strict>]>>>;
2580
+ triggers: ZodOptional<ZodArray<ZodDiscriminatedUnion<[ZodObject<{
2581
+ type: ZodLiteral<"email">;
2582
+ addresses: ZodArray<ZodString>;
2583
+ }, $strict>, ZodObject<{
2584
+ type: ZodLiteral<"fetch">;
2585
+ pattern: ZodString;
2586
+ zone: ZodOptional<ZodString>;
2587
+ }, $strict>, ZodObject<{
2588
+ type: ZodLiteral<"queue">;
2589
+ name: ZodString;
2590
+ deadLetterQueue: ZodOptional<ZodString>;
2591
+ maxBatchSize: ZodOptional<ZodNumber>;
2592
+ maxBatchTimeout: ZodOptional<ZodNumber>;
2593
+ maxConcurrency: ZodOptional<ZodNumber>;
2594
+ maxRetries: ZodOptional<ZodNumber>;
2595
+ retryDelay: ZodOptional<ZodNumber>;
2596
+ visibilityTimeoutMs: ZodOptional<ZodNumber>;
2597
+ }, $strict>, ZodObject<{
2598
+ type: ZodLiteral<"scheduled">;
2599
+ schedule: ZodString;
2600
+ }, $strict>, ZodDiscriminatedUnion<[ZodObject<{
2601
+ type: ZodLiteral<"connect">;
2602
+ protocol: ZodLiteral<"tcp">;
2603
+ port: ZodNumber;
2604
+ address: ZodOptional<ZodString>;
2605
+ }, $strict>, ZodObject<{
2606
+ type: ZodLiteral<"connect">;
2607
+ protocol: ZodLiteral<"udp">;
2608
+ port: ZodNumber;
2609
+ address: ZodOptional<ZodString>;
2610
+ idleTimeoutMs: ZodOptional<ZodNumber>;
2611
+ maxPendingBytes: ZodOptional<ZodNumber>;
2612
+ }, $strict>], "protocol">], "type">>>;
2613
+ tailConsumers: ZodOptional<ZodArray<ZodObject<{
2614
+ worker: ZodString;
2615
+ }, $strict>>>;
2616
+ cache: ZodOptional<ZodObject<{
2617
+ enabled: ZodBoolean;
2618
+ crossVersionCache: ZodOptional<ZodBoolean>;
2619
+ }, $strict>>;
2620
+ placement: ZodOptional<ZodUnion<readonly [ZodObject<{
2621
+ mode: ZodEnum<{
2622
+ off: "off";
2623
+ smart: "smart";
2624
+ }>;
2625
+ hint: ZodOptional<ZodString>;
2626
+ }, $strict>, ZodObject<{
2627
+ mode: ZodOptional<ZodLiteral<"targeted">>;
2628
+ region: ZodString;
2629
+ }, $strict>, ZodObject<{
2630
+ mode: ZodOptional<ZodLiteral<"targeted">>;
2631
+ host: ZodString;
2632
+ }, $strict>, ZodObject<{
2633
+ mode: ZodOptional<ZodLiteral<"targeted">>;
2634
+ hostname: ZodString;
2635
+ }, $strict>]>>;
2636
+ limits: ZodOptional<ZodObject<{
2637
+ cpuMs: ZodOptional<ZodNumber>;
2638
+ subrequests: ZodOptional<ZodNumber>;
2639
+ }, $strict>>;
2640
+ logpush: ZodOptional<ZodBoolean>;
2641
+ observability: ZodOptional<ZodObject<{
2642
+ enabled: ZodOptional<ZodBoolean>;
2643
+ headSamplingRate: ZodOptional<ZodNumber>;
2644
+ redactQueryString: ZodOptional<ZodBoolean>;
2645
+ issues: ZodOptional<ZodObject<{
2646
+ enabled: ZodOptional<ZodBoolean>;
2647
+ }, $strict>>;
2648
+ logs: ZodOptional<ZodObject<{
2649
+ enabled: ZodOptional<ZodBoolean>;
2650
+ headSamplingRate: ZodOptional<ZodNumber>;
2651
+ invocationLogs: ZodOptional<ZodBoolean>;
2652
+ persist: ZodOptional<ZodBoolean>;
2653
+ destinations: ZodOptional<ZodArray<ZodString>>;
2654
+ }, $strict>>;
2655
+ traces: ZodOptional<ZodObject<{
2656
+ enabled: ZodOptional<ZodBoolean>;
2657
+ headSamplingRate: ZodOptional<ZodNumber>;
2658
+ persist: ZodOptional<ZodBoolean>;
2659
+ destinations: ZodOptional<ZodArray<ZodString>>;
2660
+ }, $strict>>;
2661
+ }, $strict>>;
2662
+ access: ZodOptional<ZodObject<{
2663
+ dev: ZodOptional<ZodObject<{
2664
+ aud: ZodString;
2665
+ identity: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
2666
+ }, $strict>>;
2667
+ }, $strict>>;
2668
+ workersDev: ZodOptional<ZodBoolean>;
2669
+ previewUrls: ZodOptional<ZodBoolean>;
2670
+ experimental: ZodOptional<ZodObject<{
2671
+ streamingTailConsumers: ZodOptional<ZodArray<ZodObject<{
2672
+ worker: ZodString;
2673
+ }, $strict>>>;
2674
+ firstPartyWorker: ZodOptional<ZodBoolean>;
2675
+ }, $strict>>;
2676
+ unsafe: ZodOptional<ZodObject<{
2677
+ metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
2678
+ capnp: ZodOptional<ZodUnion<readonly [ZodObject<{
2679
+ basePath: ZodString;
2680
+ sourceSchemas: ZodArray<ZodString>;
2681
+ compiledSchema: ZodOptional<ZodNever>;
2682
+ }, $strict>, ZodObject<{
2683
+ basePath: ZodOptional<ZodNever>;
2684
+ sourceSchemas: ZodOptional<ZodNever>;
2685
+ compiledSchema: ZodString;
2686
+ }, $strict>]>>;
2687
+ }, $strict>>;
2688
+ env: ZodOptional<ZodRecord<ZodString, ZodType<BindingOutput, BindingInput, $ZodTypeInternals<BindingOutput, BindingInput>>>>;
2689
+ exports: ZodOptional<ZodRecord<ZodString, ZodUnion<readonly [ZodObject<{
2690
+ type: ZodLiteral<"durable-object">;
2691
+ state: ZodOptional<ZodLiteral<"created">>;
2692
+ container: ZodOptional<ZodString>;
2693
+ storage: ZodLiteral<"sqlite">;
2694
+ }, $strict>, ZodObject<{
2695
+ type: ZodLiteral<"durable-object">;
2696
+ state: ZodOptional<ZodLiteral<"created">>;
2697
+ storage: ZodLiteral<"legacy-kv">;
2698
+ }, $strict>, ZodObject<{
2699
+ type: ZodLiteral<"durable-object">;
2700
+ state: ZodLiteral<"deleted">;
2701
+ }, $strict>, ZodObject<{
2702
+ type: ZodLiteral<"durable-object">;
2703
+ state: ZodLiteral<"renamed">;
2704
+ renamedTo: ZodString;
2705
+ }, $strict>, ZodObject<{
2706
+ type: ZodLiteral<"durable-object">;
2707
+ state: ZodLiteral<"transferred">;
2708
+ transferredTo: ZodString;
2709
+ }, $strict>, ZodObject<{
2710
+ type: ZodLiteral<"durable-object">;
2711
+ state: ZodLiteral<"expecting-transfer">;
2712
+ transferFrom: ZodString;
2713
+ container: ZodOptional<ZodString>;
2714
+ storage: ZodLiteral<"sqlite">;
2715
+ }, $strict>, ZodObject<{
2716
+ type: ZodLiteral<"durable-object">;
2717
+ state: ZodLiteral<"expecting-transfer">;
2718
+ transferFrom: ZodString;
2719
+ storage: ZodLiteral<"legacy-kv">;
2720
+ }, $strict>, ZodObject<{
2721
+ type: ZodLiteral<"worker">;
2722
+ cache: ZodOptional<ZodObject<{
2723
+ enabled: ZodBoolean;
2724
+ }, $strict>>;
2725
+ }, $strict>, ZodObject<{
2726
+ type: ZodLiteral<"workflow">;
2727
+ events: ZodOptional<ZodArray<ZodObject<{
2728
+ type: ZodEnum<{
2729
+ "cf.artifacts.repo.created": "cf.artifacts.repo.created";
2730
+ "cf.artifacts.repo.deleted": "cf.artifacts.repo.deleted";
2731
+ "cf.artifacts.repo.forked": "cf.artifacts.repo.forked";
2732
+ "cf.artifacts.repo.imported": "cf.artifacts.repo.imported";
2733
+ "cf.artifacts.repo.pushed": "cf.artifacts.repo.pushed";
2734
+ "cf.artifacts.repo.cloned": "cf.artifacts.repo.cloned";
2735
+ "cf.artifacts.repo.fetched": "cf.artifacts.repo.fetched";
2736
+ "cf.artifacts.repo.token.created": "cf.artifacts.repo.token.created";
2737
+ "cf.artifacts.repo.token.revoked": "cf.artifacts.repo.token.revoked";
2738
+ }>;
2739
+ filter: ZodOptional<ZodObject<{
2740
+ namespace: ZodOptional<ZodString>;
2741
+ repoName: ZodOptional<ZodString>;
2742
+ }, $strict>>;
2743
+ }, $strict>>>;
2744
+ name: ZodString;
2745
+ limits: ZodOptional<ZodObject<{
2746
+ steps: ZodOptional<ZodNumber>;
2747
+ }, $strict>>;
2748
+ concurrency: ZodOptional<ZodObject<{
2749
+ limit: ZodOptional<ZodNumber>;
2750
+ }, $strict>>;
2751
+ schedules: ZodOptional<ZodUnion<readonly [ZodString, ZodArray<ZodString>]>>;
2752
+ defaultRetention: ZodOptional<ZodObject<{
2753
+ successRetention: ZodOptional<ZodUnion<readonly [ZodNumber, ZodString]>>;
2754
+ errorRetention: ZodOptional<ZodUnion<readonly [ZodNumber, ZodString]>>;
2755
+ }, $strict>>;
2756
+ jurisdiction: ZodOptional<ZodEnum<{
2757
+ eu: "eu";
2758
+ fedramp: "fedramp";
2759
+ us: "us";
2760
+ }>>;
2761
+ }, $strict>]>>>;
2762
+ entrypoint: ZodOptional<ZodString>;
2763
+ }, $strict>;
2764
+ type ParsedWorkerConfig = output<typeof WorkerConfigSchema>;
2765
+ /** The resolved project configuration, including relationships between resources. */
2766
+ declare const CloudflareConfigSchema: ZodObject<{
2767
+ worker: ZodOptional<ZodObject<{
2768
+ name: ZodString;
2769
+ compatibilityDate: ZodString;
2770
+ compatibilityFlags: ZodOptional<ZodArray<ZodString>>;
2771
+ assets: ZodOptional<ZodObject<{
2772
+ htmlHandling: ZodOptional<ZodEnum<{
2773
+ "auto-trailing-slash": "auto-trailing-slash";
2774
+ "drop-trailing-slash": "drop-trailing-slash";
2775
+ "force-trailing-slash": "force-trailing-slash";
2776
+ none: "none";
2777
+ }>>;
2778
+ notFoundHandling: ZodOptional<ZodEnum<{
2779
+ none: "none";
2780
+ "single-page-application": "single-page-application";
2781
+ "404-page": "404-page";
2782
+ }>>;
2783
+ basePath: ZodOptional<ZodString>;
2784
+ runWorkerFirst: ZodOptional<ZodUnion<readonly [ZodArray<ZodString>, ZodBoolean]>>;
2785
+ }, $strict>>;
2786
+ domains: ZodOptional<ZodArray<ZodUnion<readonly [ZodString, ZodObject<{
2787
+ hostname: ZodString;
2788
+ production: ZodBoolean;
2789
+ previews: ZodBoolean;
2790
+ }, $strict>]>>>;
2791
+ triggers: ZodOptional<ZodArray<ZodDiscriminatedUnion<[ZodObject<{
2792
+ type: ZodLiteral<"email">;
2793
+ addresses: ZodArray<ZodString>;
2794
+ }, $strict>, ZodObject<{
2795
+ type: ZodLiteral<"fetch">;
2796
+ pattern: ZodString;
2797
+ zone: ZodOptional<ZodString>;
2798
+ }, $strict>, ZodObject<{
2799
+ type: ZodLiteral<"queue">;
2800
+ name: ZodString;
2801
+ deadLetterQueue: ZodOptional<ZodString>;
2802
+ maxBatchSize: ZodOptional<ZodNumber>;
2803
+ maxBatchTimeout: ZodOptional<ZodNumber>;
2804
+ maxConcurrency: ZodOptional<ZodNumber>;
2805
+ maxRetries: ZodOptional<ZodNumber>;
2806
+ retryDelay: ZodOptional<ZodNumber>;
2807
+ visibilityTimeoutMs: ZodOptional<ZodNumber>;
2808
+ }, $strict>, ZodObject<{
2809
+ type: ZodLiteral<"scheduled">;
2810
+ schedule: ZodString;
2811
+ }, $strict>, ZodDiscriminatedUnion<[ZodObject<{
2812
+ type: ZodLiteral<"connect">;
2813
+ protocol: ZodLiteral<"tcp">;
2814
+ port: ZodNumber;
2815
+ address: ZodOptional<ZodString>;
2816
+ }, $strict>, ZodObject<{
2817
+ type: ZodLiteral<"connect">;
2818
+ protocol: ZodLiteral<"udp">;
2819
+ port: ZodNumber;
2820
+ address: ZodOptional<ZodString>;
2821
+ idleTimeoutMs: ZodOptional<ZodNumber>;
2822
+ maxPendingBytes: ZodOptional<ZodNumber>;
2823
+ }, $strict>], "protocol">], "type">>>;
2824
+ tailConsumers: ZodOptional<ZodArray<ZodObject<{
2825
+ worker: ZodString;
2826
+ }, $strict>>>;
2827
+ cache: ZodOptional<ZodObject<{
2828
+ enabled: ZodBoolean;
2829
+ crossVersionCache: ZodOptional<ZodBoolean>;
2830
+ }, $strict>>;
2831
+ placement: ZodOptional<ZodUnion<readonly [ZodObject<{
2832
+ mode: ZodEnum<{
2833
+ off: "off";
2834
+ smart: "smart";
2835
+ }>;
2836
+ hint: ZodOptional<ZodString>;
2837
+ }, $strict>, ZodObject<{
2838
+ mode: ZodOptional<ZodLiteral<"targeted">>;
2839
+ region: ZodString;
2840
+ }, $strict>, ZodObject<{
2841
+ mode: ZodOptional<ZodLiteral<"targeted">>;
2842
+ host: ZodString;
2843
+ }, $strict>, ZodObject<{
2844
+ mode: ZodOptional<ZodLiteral<"targeted">>;
2845
+ hostname: ZodString;
2846
+ }, $strict>]>>;
2847
+ limits: ZodOptional<ZodObject<{
2848
+ cpuMs: ZodOptional<ZodNumber>;
2849
+ subrequests: ZodOptional<ZodNumber>;
2850
+ }, $strict>>;
2851
+ logpush: ZodOptional<ZodBoolean>;
2852
+ observability: ZodOptional<ZodObject<{
2853
+ enabled: ZodOptional<ZodBoolean>;
2854
+ headSamplingRate: ZodOptional<ZodNumber>;
2855
+ redactQueryString: ZodOptional<ZodBoolean>;
2856
+ issues: ZodOptional<ZodObject<{
2857
+ enabled: ZodOptional<ZodBoolean>;
2858
+ }, $strict>>;
2859
+ logs: ZodOptional<ZodObject<{
2860
+ enabled: ZodOptional<ZodBoolean>;
2861
+ headSamplingRate: ZodOptional<ZodNumber>;
2862
+ invocationLogs: ZodOptional<ZodBoolean>;
2863
+ persist: ZodOptional<ZodBoolean>;
2864
+ destinations: ZodOptional<ZodArray<ZodString>>;
2865
+ }, $strict>>;
2866
+ traces: ZodOptional<ZodObject<{
2867
+ enabled: ZodOptional<ZodBoolean>;
2868
+ headSamplingRate: ZodOptional<ZodNumber>;
2869
+ persist: ZodOptional<ZodBoolean>;
2870
+ destinations: ZodOptional<ZodArray<ZodString>>;
2871
+ }, $strict>>;
2872
+ }, $strict>>;
2873
+ access: ZodOptional<ZodObject<{
2874
+ dev: ZodOptional<ZodObject<{
2875
+ aud: ZodString;
2876
+ identity: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
2877
+ }, $strict>>;
2878
+ }, $strict>>;
2879
+ workersDev: ZodOptional<ZodBoolean>;
2880
+ previewUrls: ZodOptional<ZodBoolean>;
2881
+ experimental: ZodOptional<ZodObject<{
2882
+ streamingTailConsumers: ZodOptional<ZodArray<ZodObject<{
2883
+ worker: ZodString;
2884
+ }, $strict>>>;
2885
+ firstPartyWorker: ZodOptional<ZodBoolean>;
2886
+ }, $strict>>;
2887
+ unsafe: ZodOptional<ZodObject<{
2888
+ metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
2889
+ capnp: ZodOptional<ZodUnion<readonly [ZodObject<{
2890
+ basePath: ZodString;
2891
+ sourceSchemas: ZodArray<ZodString>;
2892
+ compiledSchema: ZodOptional<ZodNever>;
2893
+ }, $strict>, ZodObject<{
2894
+ basePath: ZodOptional<ZodNever>;
2895
+ sourceSchemas: ZodOptional<ZodNever>;
2896
+ compiledSchema: ZodString;
2897
+ }, $strict>]>>;
2898
+ }, $strict>>;
2899
+ env: ZodOptional<ZodRecord<ZodString, ZodType<BindingOutput, BindingInput, $ZodTypeInternals<BindingOutput, BindingInput>>>>;
2900
+ exports: ZodOptional<ZodRecord<ZodString, ZodUnion<readonly [ZodObject<{
2901
+ type: ZodLiteral<"durable-object">;
2902
+ state: ZodOptional<ZodLiteral<"created">>;
2903
+ container: ZodOptional<ZodString>;
2904
+ storage: ZodLiteral<"sqlite">;
2905
+ }, $strict>, ZodObject<{
2906
+ type: ZodLiteral<"durable-object">;
2907
+ state: ZodOptional<ZodLiteral<"created">>;
2908
+ storage: ZodLiteral<"legacy-kv">;
2909
+ }, $strict>, ZodObject<{
2910
+ type: ZodLiteral<"durable-object">;
2911
+ state: ZodLiteral<"deleted">;
2912
+ }, $strict>, ZodObject<{
2913
+ type: ZodLiteral<"durable-object">;
2914
+ state: ZodLiteral<"renamed">;
2915
+ renamedTo: ZodString;
2916
+ }, $strict>, ZodObject<{
2917
+ type: ZodLiteral<"durable-object">;
2918
+ state: ZodLiteral<"transferred">;
2919
+ transferredTo: ZodString;
2920
+ }, $strict>, ZodObject<{
2921
+ type: ZodLiteral<"durable-object">;
2922
+ state: ZodLiteral<"expecting-transfer">;
2923
+ transferFrom: ZodString;
2924
+ container: ZodOptional<ZodString>;
2925
+ storage: ZodLiteral<"sqlite">;
2926
+ }, $strict>, ZodObject<{
2927
+ type: ZodLiteral<"durable-object">;
2928
+ state: ZodLiteral<"expecting-transfer">;
2929
+ transferFrom: ZodString;
2930
+ storage: ZodLiteral<"legacy-kv">;
2931
+ }, $strict>, ZodObject<{
2932
+ type: ZodLiteral<"worker">;
2933
+ cache: ZodOptional<ZodObject<{
2934
+ enabled: ZodBoolean;
2935
+ }, $strict>>;
2936
+ }, $strict>, ZodObject<{
2937
+ type: ZodLiteral<"workflow">;
2938
+ events: ZodOptional<ZodArray<ZodObject<{
2939
+ type: ZodEnum<{
2940
+ "cf.artifacts.repo.created": "cf.artifacts.repo.created";
2941
+ "cf.artifacts.repo.deleted": "cf.artifacts.repo.deleted";
2942
+ "cf.artifacts.repo.forked": "cf.artifacts.repo.forked";
2943
+ "cf.artifacts.repo.imported": "cf.artifacts.repo.imported";
2944
+ "cf.artifacts.repo.pushed": "cf.artifacts.repo.pushed";
2945
+ "cf.artifacts.repo.cloned": "cf.artifacts.repo.cloned";
2946
+ "cf.artifacts.repo.fetched": "cf.artifacts.repo.fetched";
2947
+ "cf.artifacts.repo.token.created": "cf.artifacts.repo.token.created";
2948
+ "cf.artifacts.repo.token.revoked": "cf.artifacts.repo.token.revoked";
2949
+ }>;
2950
+ filter: ZodOptional<ZodObject<{
2951
+ namespace: ZodOptional<ZodString>;
2952
+ repoName: ZodOptional<ZodString>;
2953
+ }, $strict>>;
2954
+ }, $strict>>>;
2955
+ name: ZodString;
2956
+ limits: ZodOptional<ZodObject<{
2957
+ steps: ZodOptional<ZodNumber>;
2958
+ }, $strict>>;
2959
+ concurrency: ZodOptional<ZodObject<{
2960
+ limit: ZodOptional<ZodNumber>;
2961
+ }, $strict>>;
2962
+ schedules: ZodOptional<ZodUnion<readonly [ZodString, ZodArray<ZodString>]>>;
2963
+ defaultRetention: ZodOptional<ZodObject<{
2964
+ successRetention: ZodOptional<ZodUnion<readonly [ZodNumber, ZodString]>>;
2965
+ errorRetention: ZodOptional<ZodUnion<readonly [ZodNumber, ZodString]>>;
2966
+ }, $strict>>;
2967
+ jurisdiction: ZodOptional<ZodEnum<{
2968
+ eu: "eu";
2969
+ fedramp: "fedramp";
2970
+ us: "us";
2971
+ }>>;
2972
+ }, $strict>]>>>;
2973
+ entrypoint: ZodOptional<ZodString>;
2974
+ }, $strict>>;
2975
+ containers: ZodOptional<ZodArray<ZodUnion<readonly [ZodObject<{
2976
+ name: ZodString;
2977
+ unsafe: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
2978
+ ssh: ZodOptional<ZodObject<{
2979
+ enabled: ZodBoolean;
2980
+ port: ZodOptional<ZodNumber>;
2981
+ }, $strict>>;
2982
+ authorizedKeys: ZodOptional<ZodArray<ZodObject<{
2983
+ name: ZodString;
2984
+ publicKey: ZodString;
2985
+ }, $strict>>>;
2986
+ observability: ZodOptional<ZodUnion<readonly [ZodObject<{
2987
+ enabled: ZodOptional<ZodBoolean>;
2988
+ logs: ZodOptional<ZodObject<{
2989
+ enabled: ZodOptional<ZodBoolean>;
2990
+ }, $strict>>;
2991
+ targetInstancePercentage: ZodOptional<ZodNumber>;
2992
+ }, $strict>, ZodObject<{
2993
+ enabled: ZodOptional<ZodBoolean>;
2994
+ logs: ZodOptional<ZodObject<{
2995
+ enabled: ZodOptional<ZodBoolean>;
2996
+ }, $strict>>;
2997
+ targetInstanceCount: ZodOptional<ZodNumber>;
2998
+ }, $strict>]>>;
2999
+ maxInstances: ZodOptional<ZodNumber>;
3000
+ instanceType: ZodOptional<ZodUnion<readonly [ZodEnum<{
3001
+ basic: "basic";
3002
+ lite: "lite";
3003
+ "standard-1": "standard-1";
3004
+ "standard-2": "standard-2";
3005
+ "standard-3": "standard-3";
3006
+ "standard-4": "standard-4";
3007
+ }>, ZodObject<{
3008
+ vcpu: ZodOptional<ZodNumber>;
3009
+ memoryMib: ZodOptional<ZodNumber>;
3010
+ diskMb: ZodOptional<ZodNumber>;
3011
+ }, $strict>]>>;
3012
+ schedulingPolicy: ZodOptional<ZodEnum<{
3013
+ default: "default";
3014
+ regional: "regional";
3015
+ }>>;
3016
+ constraints: ZodOptional<ZodObject<{
3017
+ regions: ZodOptional<ZodArray<ZodEnum<{
3018
+ ENAM: "ENAM";
3019
+ WNAM: "WNAM";
3020
+ EEUR: "EEUR";
3021
+ WEUR: "WEUR";
3022
+ APAC: "APAC";
3023
+ SAM: "SAM";
3024
+ ME: "ME";
3025
+ OC: "OC";
3026
+ AFR: "AFR";
3027
+ }>>>;
3028
+ jurisdiction: ZodOptional<ZodEnum<{
3029
+ eu: "eu";
3030
+ fedramp: "fedramp";
3031
+ us: "us";
3032
+ }>>;
3033
+ }, $strict>>;
3034
+ rollout: ZodOptional<ZodObject<{
3035
+ kind: ZodOptional<ZodEnum<{
3036
+ none: "none";
3037
+ "full-auto": "full-auto";
3038
+ "full-manual": "full-manual";
3039
+ }>>;
3040
+ stepPercentage: ZodOptional<ZodUnion<readonly [ZodNumber, ZodArray<ZodNumber>]>>;
3041
+ activeGracePeriod: ZodOptional<ZodNumber>;
3042
+ }, $strict>>;
3043
+ image: ZodUnion<readonly [ZodObject<{
3044
+ dockerfile: ZodString;
3045
+ buildContext: ZodOptional<ZodString>;
3046
+ buildVars: ZodOptional<ZodRecord<ZodString, ZodString>>;
3047
+ }, $strict>, ZodObject<{
3048
+ reference: ZodString;
3049
+ }, $strict>]>;
3050
+ }, $strict>, ZodObject<{
3051
+ name: ZodString;
3052
+ unsafe: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
3053
+ ssh: ZodOptional<ZodObject<{
3054
+ enabled: ZodBoolean;
3055
+ port: ZodOptional<ZodNumber>;
3056
+ }, $strict>>;
3057
+ authorizedKeys: ZodOptional<ZodArray<ZodObject<{
3058
+ name: ZodString;
3059
+ publicKey: ZodString;
3060
+ }, $strict>>>;
3061
+ schedulingPolicy: ZodLiteral<"durable-object">;
3062
+ observability: ZodOptional<ZodObject<{
3063
+ enabled: ZodOptional<ZodBoolean>;
3064
+ logs: ZodOptional<ZodObject<{
3065
+ enabled: ZodOptional<ZodBoolean>;
3066
+ }, $strict>>;
3067
+ }, $strict>>;
3068
+ images: ZodOptional<ZodRecord<ZodString, ZodUnion<readonly [ZodObject<{
3069
+ dockerfile: ZodString;
3070
+ buildContext: ZodOptional<ZodString>;
3071
+ buildVars: ZodOptional<ZodRecord<ZodString, ZodString>>;
3072
+ }, $strict>, ZodObject<{
3073
+ reference: ZodString;
3074
+ }, $strict>]>>>;
3075
+ }, $strict>]>>>;
3076
+ accountId: ZodOptional<ZodString>;
3077
+ complianceRegion: ZodOptional<ZodEnum<{
3078
+ public: "public";
3079
+ "fedramp-high": "fedramp-high";
3080
+ }>>;
3081
+ }, $strict>;
3082
+ type ParsedCloudflareConfig = output<typeof CloudflareConfigSchema>;
3083
+ //#endregion
3084
+ //#region ../../node_modules/.pnpm/undici@7.30.1/node_modules/undici/types/formdata.d.ts
3085
+ declare module 'node:buffer' {
3086
+ interface File {
3087
+ readonly [Symbol.toStringTag]: string;
3088
+ }
3089
+ }
3090
+ //#endregion
5
3091
  //#region src/plugin-config.d.ts
6
-
7
3092
  /** Parsed configuration with the entry Worker required by the Vite plugin. */
8
3093
  type CloudflareConfig = Omit<ParsedCloudflareConfig, "worker"> & {
9
3094
  worker: ParsedWorkerConfig;
@@ -95,6 +3180,868 @@ interface PluginConfig extends EntryWorkerOptions {
95
3180
  experimental?: Experimental;
96
3181
  }
97
3182
  //#endregion
3183
+ //#region ../workers-utils/dist/compatibility-date.d.mts
3184
+ //#region src/compatibility-date.d.ts
3185
+ type YYYY = `${number}${number}${number}${number}`;
3186
+ type MM = `${number}${number}`;
3187
+ type DD = `${number}${number}`;
3188
+ /**
3189
+ * Represents a valid compatibility date, a string such as `2025-09-27`
3190
+ */
3191
+ type CompatDate = `${YYYY}-${MM}-${DD}`;
3192
+ //#endregion
3193
+ //#region ../../node_modules/.pnpm/undici@7.30.1/node_modules/undici/types/utility.d.ts
3194
+ type AutocompletePrimitiveBaseType<T> = T extends string ? string : T extends number ? number : T extends boolean ? boolean : never;
3195
+ type Autocomplete<T> = T | (AutocompletePrimitiveBaseType<T> & Record<never, never>);
3196
+ //#endregion
3197
+ //#region ../../node_modules/.pnpm/undici@7.30.1/node_modules/undici/types/header.d.ts
3198
+ /**
3199
+ * The header type declaration of `undici`.
3200
+ */
3201
+ type IncomingHttpHeaders = Record<string, string | string[] | undefined>;
3202
+ type HeaderNames = Autocomplete<'Accept' | 'Accept-CH' | 'Accept-Charset' | 'Accept-Encoding' | 'Accept-Language' | 'Accept-Patch' | 'Accept-Post' | 'Accept-Ranges' | 'Access-Control-Allow-Credentials' | 'Access-Control-Allow-Headers' | 'Access-Control-Allow-Methods' | 'Access-Control-Allow-Origin' | 'Access-Control-Expose-Headers' | 'Access-Control-Max-Age' | 'Access-Control-Request-Headers' | 'Access-Control-Request-Method' | 'Age' | 'Allow' | 'Alt-Svc' | 'Alt-Used' | 'Authorization' | 'Cache-Control' | 'Clear-Site-Data' | 'Connection' | 'Content-Disposition' | 'Content-Encoding' | 'Content-Language' | 'Content-Length' | 'Content-Location' | 'Content-Range' | 'Content-Security-Policy' | 'Content-Security-Policy-Report-Only' | 'Content-Type' | 'Cookie' | 'Cross-Origin-Embedder-Policy' | 'Cross-Origin-Opener-Policy' | 'Cross-Origin-Resource-Policy' | 'Date' | 'Device-Memory' | 'ETag' | 'Expect' | 'Expect-CT' | 'Expires' | 'Forwarded' | 'From' | 'Host' | 'If-Match' | 'If-Modified-Since' | 'If-None-Match' | 'If-Range' | 'If-Unmodified-Since' | 'Keep-Alive' | 'Last-Modified' | 'Link' | 'Location' | 'Max-Forwards' | 'Origin' | 'Permissions-Policy' | 'Priority' | 'Proxy-Authenticate' | 'Proxy-Authorization' | 'Range' | 'Referer' | 'Referrer-Policy' | 'Retry-After' | 'Sec-Fetch-Dest' | 'Sec-Fetch-Mode' | 'Sec-Fetch-Site' | 'Sec-Fetch-User' | 'Sec-Purpose' | 'Sec-WebSocket-Accept' | 'Server' | 'Server-Timing' | 'Service-Worker-Navigation-Preload' | 'Set-Cookie' | 'SourceMap' | 'Strict-Transport-Security' | 'TE' | 'Timing-Allow-Origin' | 'Trailer' | 'Transfer-Encoding' | 'Upgrade' | 'Upgrade-Insecure-Requests' | 'User-Agent' | 'Vary' | 'Via' | 'WWW-Authenticate' | 'X-Content-Type-Options' | 'X-Frame-Options'>;
3203
+ type IANARegisteredMimeType = Autocomplete<'audio/aac' | 'video/x-msvideo' | 'image/avif' | 'video/av1' | 'application/octet-stream' | 'image/bmp' | 'text/css' | 'text/csv' | 'application/vnd.ms-fontobject' | 'application/epub+zip' | 'image/gif' | 'application/gzip' | 'text/html' | 'image/x-icon' | 'text/calendar' | 'image/jpeg' | 'text/javascript' | 'application/json' | 'application/ld+json' | 'audio/x-midi' | 'audio/mpeg' | 'video/mp4' | 'video/mpeg' | 'audio/ogg' | 'video/ogg' | 'application/ogg' | 'audio/opus' | 'font/otf' | 'application/pdf' | 'image/png' | 'application/rtf' | 'image/svg+xml' | 'image/tiff' | 'video/mp2t' | 'font/ttf' | 'text/plain' | 'application/wasm' | 'video/webm' | 'audio/webm' | 'image/webp' | 'font/woff' | 'font/woff2' | 'application/xhtml+xml' | 'application/xml' | 'application/zip' | 'video/3gpp' | 'video/3gpp2' | 'model/gltf+json' | 'model/gltf-binary'>;
3204
+ type KnownHeaderValues = {
3205
+ 'content-type': IANARegisteredMimeType;
3206
+ };
3207
+ type HeaderRecord = { [K in HeaderNames | Lowercase<HeaderNames>]?: Lowercase<K> extends keyof KnownHeaderValues ? KnownHeaderValues[Lowercase<K>] : string; };
3208
+ //#endregion
3209
+ //#region ../../node_modules/.pnpm/undici@7.30.1/node_modules/undici/types/readable.d.ts
3210
+ declare class BodyReadable extends Readable {
3211
+ constructor(opts: {
3212
+ resume: (this: Readable, size: number) => void | null;
3213
+ abort: () => void | null;
3214
+ contentType?: string;
3215
+ contentLength?: number;
3216
+ highWaterMark?: number;
3217
+ });
3218
+ /** Consumes and returns the body as a string
3219
+ * https://fetch.spec.whatwg.org/#dom-body-text
3220
+ */
3221
+ text(): Promise<string>;
3222
+ /** Consumes and returns the body as a JavaScript Object
3223
+ * https://fetch.spec.whatwg.org/#dom-body-json
3224
+ */
3225
+ json(): Promise<unknown>;
3226
+ /** Consumes and returns the body as a Blob
3227
+ * https://fetch.spec.whatwg.org/#dom-body-blob
3228
+ */
3229
+ blob(): Promise<Blob>;
3230
+ /** Consumes and returns the body as an Uint8Array
3231
+ * https://fetch.spec.whatwg.org/#dom-body-bytes
3232
+ */
3233
+ bytes(): Promise<Uint8Array>;
3234
+ /** Consumes and returns the body as an ArrayBuffer
3235
+ * https://fetch.spec.whatwg.org/#dom-body-arraybuffer
3236
+ */
3237
+ arrayBuffer(): Promise<ArrayBuffer>;
3238
+ /** Not implemented
3239
+ *
3240
+ * https://fetch.spec.whatwg.org/#dom-body-formdata
3241
+ */
3242
+ formData(): Promise<never>;
3243
+ /** Returns true if the body is not null and the body has been consumed
3244
+ *
3245
+ * Otherwise, returns false
3246
+ *
3247
+ * https://fetch.spec.whatwg.org/#dom-body-bodyused
3248
+ */
3249
+ readonly bodyUsed: boolean;
3250
+ /**
3251
+ * If body is null, it should return null as the body
3252
+ *
3253
+ * If body is not null, should return the body as a ReadableStream
3254
+ *
3255
+ * https://fetch.spec.whatwg.org/#dom-body-body
3256
+ */
3257
+ readonly body: never | undefined;
3258
+ /** Dumps the response body by reading `limit` number of bytes.
3259
+ * @param opts.limit Number of bytes to read (optional) - Default: 131072
3260
+ * @param opts.signal AbortSignal to cancel the operation (optional)
3261
+ */
3262
+ dump(opts?: {
3263
+ limit: number;
3264
+ signal?: AbortSignal;
3265
+ }): Promise<void>;
3266
+ }
3267
+ //#endregion
3268
+ //#region ../../node_modules/.pnpm/undici@7.30.1/node_modules/undici/types/fetch.d.ts
3269
+ type BodyInit = ArrayBuffer | AsyncIterable<Uint8Array> | Blob | FormData | Iterable<Uint8Array> | NodeJS.ArrayBufferView | URLSearchParams | null | string;
3270
+ interface SpecIterator<T, TReturn = any, TNext = undefined> {
3271
+ next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
3272
+ }
3273
+ interface SpecIteratorObject<T, TReturn = undefined, TNext = unknown> extends SpecIterator<T, TReturn, TNext> {
3274
+ [Symbol.iterator](): SpecIteratorObject<T, TReturn, TNext>;
3275
+ map<U>(callbackfn: (value: T, index: number) => U): SpecIteratorObject<U>;
3276
+ filter<S extends T>(predicate: (value: T, index: number) => value is S): SpecIteratorObject<S>;
3277
+ filter(predicate: (value: T, index: number) => unknown): SpecIteratorObject<T>;
3278
+ take(limit: number): SpecIteratorObject<T>;
3279
+ drop(count: number): SpecIteratorObject<T>;
3280
+ flatMap<U>(callbackfn: (value: T, index: number) => Iterator<U> | Iterable<U>): SpecIteratorObject<U>;
3281
+ reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => T): T;
3282
+ reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => T, initialValue: T): T;
3283
+ reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number) => U, initialValue: U): U;
3284
+ toArray(): T[];
3285
+ forEach(callbackfn: (value: T, index: number) => void): void;
3286
+ some(predicate: (value: T, index: number) => unknown): boolean;
3287
+ every(predicate: (value: T, index: number) => unknown): boolean;
3288
+ find<S extends T>(predicate: (value: T, index: number) => value is S): S | undefined;
3289
+ find(predicate: (value: T, index: number) => unknown): T | undefined;
3290
+ readonly [Symbol.toStringTag]: string;
3291
+ }
3292
+ interface SpecIterableIterator<T> extends SpecIteratorObject<T> {
3293
+ [Symbol.iterator](): SpecIterableIterator<T>;
3294
+ }
3295
+ interface SpecIterable<T> {
3296
+ [Symbol.iterator](): SpecIterableIterator<T>;
3297
+ }
3298
+ type HeadersInit = [string, string][] | HeaderRecord | Headers;
3299
+ declare class Headers implements SpecIterable<[string, string]> {
3300
+ constructor(init?: HeadersInit);
3301
+ readonly append: (name: string, value: string) => void;
3302
+ readonly delete: (name: string) => void;
3303
+ readonly get: (name: string) => string | null;
3304
+ readonly has: (name: string) => boolean;
3305
+ readonly set: (name: string, value: string) => void;
3306
+ readonly getSetCookie: () => string[];
3307
+ readonly forEach: (callbackfn: (value: string, key: string, iterable: Headers) => void, thisArg?: unknown) => void;
3308
+ readonly keys: () => SpecIterableIterator<string>;
3309
+ readonly values: () => SpecIterableIterator<string>;
3310
+ readonly entries: () => SpecIterableIterator<[string, string]>;
3311
+ readonly [Symbol.iterator]: () => SpecIterableIterator<[string, string]>;
3312
+ }
3313
+ //#endregion
3314
+ //#region ../../node_modules/.pnpm/undici@7.30.1/node_modules/undici/types/formdata.d.ts
3315
+ declare module 'node:buffer' {
3316
+ interface File {
3317
+ readonly [Symbol.toStringTag]: string;
3318
+ }
3319
+ }
3320
+ /**
3321
+ * A `string` or `File` that represents a single value from a set of `FormData` key-value pairs.
3322
+ */
3323
+ declare type FormDataEntryValue = string | File;
3324
+ /**
3325
+ * Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using fetch().
3326
+ */
3327
+ declare class FormData {
3328
+ /**
3329
+ * Appends a new value onto an existing key inside a FormData object,
3330
+ * or adds the key if it does not already exist.
3331
+ *
3332
+ * The difference between `set()` and `append()` is that if the specified key already exists, `set()` will overwrite all existing values with the new one, whereas `append()` will append the new value onto the end of the existing set of values.
3333
+ *
3334
+ * @param name The name of the field whose data is contained in `value`.
3335
+ * @param value The field's value. This can be [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob)
3336
+ or [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File). If none of these are specified the value is converted to a string.
3337
+ * @param fileName The filename reported to the server, when a Blob or File is passed as the second parameter. The default filename for Blob objects is "blob". The default filename for File objects is the file's filename.
3338
+ */
3339
+ append(name: string, value: unknown, fileName?: string): void;
3340
+ /**
3341
+ * Set a new value for an existing key inside FormData,
3342
+ * or add the new field if it does not already exist.
3343
+ *
3344
+ * @param name The name of the field whose data is contained in `value`.
3345
+ * @param value The field's value. This can be [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob)
3346
+ or [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File). If none of these are specified the value is converted to a string.
3347
+ * @param fileName The filename reported to the server, when a Blob or File is passed as the second parameter. The default filename for Blob objects is "blob". The default filename for File objects is the file's filename.
3348
+ *
3349
+ */
3350
+ set(name: string, value: unknown, fileName?: string): void;
3351
+ /**
3352
+ * Returns the first value associated with a given key from within a `FormData` object.
3353
+ * If you expect multiple values and want all of them, use the `getAll()` method instead.
3354
+ *
3355
+ * @param {string} name A name of the value you want to retrieve.
3356
+ *
3357
+ * @returns A `FormDataEntryValue` containing the value. If the key doesn't exist, the method returns null.
3358
+ */
3359
+ get(name: string): FormDataEntryValue | null;
3360
+ /**
3361
+ * Returns all the values associated with a given key from within a `FormData` object.
3362
+ *
3363
+ * @param {string} name A name of the value you want to retrieve.
3364
+ *
3365
+ * @returns An array of `FormDataEntryValue` whose key matches the value passed in the `name` parameter. If the key doesn't exist, the method returns an empty list.
3366
+ */
3367
+ getAll(name: string): FormDataEntryValue[];
3368
+ /**
3369
+ * Returns a boolean stating whether a `FormData` object contains a certain key.
3370
+ *
3371
+ * @param name A string representing the name of the key you want to test for.
3372
+ *
3373
+ * @return A boolean value.
3374
+ */
3375
+ has(name: string): boolean;
3376
+ /**
3377
+ * Deletes a key and its value(s) from a `FormData` object.
3378
+ *
3379
+ * @param name The name of the key you want to delete.
3380
+ */
3381
+ delete(name: string): void;
3382
+ /**
3383
+ * Executes given callback function for each field of the FormData instance
3384
+ */
3385
+ forEach: (callbackfn: (value: FormDataEntryValue, key: string, iterable: FormData) => void, thisArg?: unknown) => void;
3386
+ /**
3387
+ * Returns an [`iterator`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) allowing to go through all keys contained in this `FormData` object.
3388
+ * Each key is a `string`.
3389
+ */
3390
+ keys: () => SpecIterableIterator<string>;
3391
+ /**
3392
+ * Returns an [`iterator`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) allowing to go through all values contained in this object `FormData` object.
3393
+ * Each value is a [`FormDataValue`](https://developer.mozilla.org/en-US/docs/Web/API/FormDataEntryValue).
3394
+ */
3395
+ values: () => SpecIterableIterator<FormDataEntryValue>;
3396
+ /**
3397
+ * Returns an [`iterator`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) allowing to go through the `FormData` key/value pairs.
3398
+ * The key of each pair is a string; the value is a [`FormDataValue`](https://developer.mozilla.org/en-US/docs/Web/API/FormDataEntryValue).
3399
+ */
3400
+ entries: () => SpecIterableIterator<[string, FormDataEntryValue]>;
3401
+ /**
3402
+ * An alias for FormData#entries()
3403
+ */
3404
+ [Symbol.iterator]: () => SpecIterableIterator<[string, FormDataEntryValue]>;
3405
+ readonly [Symbol.toStringTag]: string;
3406
+ }
3407
+ //#endregion
3408
+ //#region ../../node_modules/.pnpm/undici@7.30.1/node_modules/undici/types/connector.d.ts
3409
+ declare function buildConnector(options?: buildConnector.BuildOptions): buildConnector.connector;
3410
+ declare namespace buildConnector {
3411
+ export type BuildOptions = (ConnectionOptions | TcpNetConnectOpts | IpcNetConnectOpts) & {
3412
+ allowH2?: boolean;
3413
+ maxCachedSessions?: number | null;
3414
+ socketPath?: string | null;
3415
+ timeout?: number | null;
3416
+ port?: number;
3417
+ keepAlive?: boolean | null;
3418
+ keepAliveInitialDelay?: number | null;
3419
+ typeOfService?: number | null;
3420
+ };
3421
+ export interface Options {
3422
+ hostname: string;
3423
+ host?: string;
3424
+ protocol: string;
3425
+ port: string;
3426
+ servername?: string;
3427
+ localAddress?: string | null;
3428
+ socketPath?: string | null;
3429
+ httpSocket?: Socket;
3430
+ }
3431
+ export type Callback = (...args: CallbackArgs) => void;
3432
+ type CallbackArgs = [null, Socket | TLSSocket] | [Error, null];
3433
+ export interface connector {
3434
+ (options: buildConnector.Options, callback: buildConnector.Callback): void;
3435
+ }
3436
+ }
3437
+ //#endregion
3438
+ //#region ../../node_modules/.pnpm/undici@7.30.1/node_modules/undici/types/client-stats.d.ts
3439
+ declare class ClientStats {
3440
+ constructor(pool: Client);
3441
+ /** If socket has open connection. */
3442
+ connected: boolean;
3443
+ /** Number of open socket connections in this client that do not have an active request. */
3444
+ pending: number;
3445
+ /** Number of currently active requests of this client. */
3446
+ running: number;
3447
+ /** Number of active, pending, or queued requests of this client. */
3448
+ size: number;
3449
+ }
3450
+ //#endregion
3451
+ //#region ../../node_modules/.pnpm/undici@7.30.1/node_modules/undici/types/client.d.ts
3452
+ type ClientConnectOptions = Omit<Dispatcher.ConnectOptions, 'origin'>;
3453
+ /**
3454
+ * A basic HTTP/1.1 client, mapped on top a single TCP/TLS connection. Pipelining is disabled by default.
3455
+ */
3456
+ declare class Client extends Dispatcher {
3457
+ constructor(url: string | URL$1, options?: Client.Options);
3458
+ /** Property to get and set the pipelining factor. */
3459
+ pipelining: number;
3460
+ /** `true` after `client.close()` has been called. */
3461
+ closed: boolean;
3462
+ /** `true` after `client.destroyed()` has been called or `client.close()` has been called and the client shutdown has completed. */
3463
+ destroyed: boolean;
3464
+ /** Aggregate stats for a Client. */
3465
+ readonly stats: ClientStats;
3466
+ // Override dispatcher APIs.
3467
+ override connect(options: ClientConnectOptions): Promise<Dispatcher.ConnectData>;
3468
+ override connect(options: ClientConnectOptions, callback: (err: Error | null, data: Dispatcher.ConnectData) => void): void;
3469
+ }
3470
+ declare namespace Client {
3471
+ export interface OptionsInterceptors {
3472
+ Client: readonly Dispatcher.DispatchInterceptor[];
3473
+ }
3474
+ export interface Options {
3475
+ /** TODO */
3476
+ interceptors?: OptionsInterceptors;
3477
+ /** The maximum length of request headers in bytes. Default: Node.js' `--max-http-header-size` or `16384` (16KiB). */
3478
+ maxHeaderSize?: number;
3479
+ /** The amount of time, in milliseconds, the parser will wait to receive the complete HTTP headers (Node 14 and above only). Default: `300e3` milliseconds (300s). */
3480
+ headersTimeout?: number;
3481
+ /** @deprecated unsupported socketTimeout, use headersTimeout & bodyTimeout instead */
3482
+ socketTimeout?: never;
3483
+ /** @deprecated unsupported requestTimeout, use headersTimeout & bodyTimeout instead */
3484
+ requestTimeout?: never;
3485
+ /** TODO */
3486
+ connectTimeout?: number;
3487
+ /** The timeout after which a request will time out, in milliseconds. Monitors time between receiving body data. Use `0` to disable it entirely. Default: `300e3` milliseconds (300s). */
3488
+ bodyTimeout?: number;
3489
+ /** @deprecated unsupported idleTimeout, use keepAliveTimeout instead */
3490
+ idleTimeout?: never;
3491
+ /** @deprecated unsupported keepAlive, use pipelining=0 instead */
3492
+ keepAlive?: never;
3493
+ /** the timeout, in milliseconds, after which a socket without active requests will time out. Monitors time between activity on a connected socket. This value may be overridden by *keep-alive* hints from the server. Default: `4e3` milliseconds (4s). */
3494
+ keepAliveTimeout?: number;
3495
+ /** @deprecated unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead */
3496
+ maxKeepAliveTimeout?: never;
3497
+ /** the maximum allowed `idleTimeout`, in milliseconds, when overridden by *keep-alive* hints from the server. Default: `600e3` milliseconds (10min). */
3498
+ keepAliveMaxTimeout?: number;
3499
+ /** A number of milliseconds subtracted from server *keep-alive* hints when overriding `idleTimeout` to account for timing inaccuracies caused by e.g. transport latency. Default: `1e3` milliseconds (1s). */
3500
+ keepAliveTimeoutThreshold?: number;
3501
+ /** TODO */
3502
+ socketPath?: string;
3503
+ /** The amount of concurrent requests to be sent over the single TCP/TLS connection according to [RFC7230](https://tools.ietf.org/html/rfc7230#section-6.3.2). Default: `1`. */
3504
+ pipelining?: number;
3505
+ /** @deprecated use the connect option instead */
3506
+ tls?: never;
3507
+ /** If `true`, an error is thrown when the request content-length header doesn't match the length of the request body. Default: `true`. */
3508
+ strictContentLength?: boolean;
3509
+ /** TODO */
3510
+ maxCachedSessions?: number;
3511
+ /** TODO */
3512
+ connect?: Partial<buildConnector.BuildOptions> | buildConnector.connector;
3513
+ /** TODO */
3514
+ maxRequestsPerClient?: number;
3515
+ /** TODO */
3516
+ localAddress?: string;
3517
+ /** Max response body size in bytes, -1 is disabled */
3518
+ maxResponseSize?: number;
3519
+ /** Enables a family autodetection algorithm that loosely implements section 5 of RFC 8305. */
3520
+ autoSelectFamily?: boolean;
3521
+ /** The amount of time in milliseconds to wait for a connection attempt to finish before trying the next address when using the `autoSelectFamily` option. */
3522
+ autoSelectFamilyAttemptTimeout?: number;
3523
+ /**
3524
+ * @description Enables support for H2 if the server has assigned bigger priority to it through ALPN negotiation.
3525
+ * @default false
3526
+ */
3527
+ allowH2?: boolean;
3528
+ /**
3529
+ * @description Dictates the maximum number of concurrent streams for a single H2 session. It can be overridden by a SETTINGS remote frame.
3530
+ * @default 100
3531
+ */
3532
+ maxConcurrentStreams?: number;
3533
+ /**
3534
+ * @description Sets the HTTP/2 stream-level flow-control window size (SETTINGS_INITIAL_WINDOW_SIZE).
3535
+ * @default 262144
3536
+ */
3537
+ initialWindowSize?: number;
3538
+ /**
3539
+ * @description Sets the HTTP/2 connection-level flow-control window size (ClientHttp2Session.setLocalWindowSize).
3540
+ * @default 524288
3541
+ */
3542
+ connectionWindowSize?: number;
3543
+ /**
3544
+ * @description Time interval between PING frames dispatch
3545
+ * @default 60000
3546
+ */
3547
+ pingInterval?: number;
3548
+ /** WebSocket-specific configuration options. */
3549
+ webSocket?: WebSocketOptions;
3550
+ /** EventSource-specific configuration options. */
3551
+ eventSource?: EventSourceOptions;
3552
+ }
3553
+ export interface SocketInfo {
3554
+ localAddress?: string;
3555
+ localPort?: number;
3556
+ remoteAddress?: string;
3557
+ remotePort?: number;
3558
+ remoteFamily?: string;
3559
+ timeout?: number;
3560
+ bytesWritten?: number;
3561
+ bytesRead?: number;
3562
+ }
3563
+ export interface WebSocketOptions {
3564
+ /**
3565
+ * Maximum number of fragments in a message. Set to 0 to disable the limit.
3566
+ * @default 131072
3567
+ */
3568
+ maxFragments?: number;
3569
+ /**
3570
+ * Maximum allowed payload size in bytes for WebSocket messages.
3571
+ * Applied to uncompressed messages, compressed frame payloads, and decompressed (permessage-deflate) messages.
3572
+ * Set to 0 to disable the limit.
3573
+ * @default 134217728 (128 MB)
3574
+ */
3575
+ maxPayloadSize?: number;
3576
+ }
3577
+ export interface EventSourceOptions {
3578
+ /**
3579
+ * Maximum total bytes of data and metadata field values retained for a
3580
+ * pending EventSource event. Each unfinished line is separately bounded
3581
+ * to this value plus seven syntax bytes. The number of data lines per
3582
+ * event and buffered input chunks are each limited to
3583
+ * min(131072, max(1024, floor(maxEventSize / 128))).
3584
+ * Set to 0 to disable these limits.
3585
+ * @default buffer.kStringMaxLength
3586
+ */
3587
+ maxEventSize?: number;
3588
+ }
3589
+ }
3590
+ //#endregion
3591
+ //#region ../../node_modules/.pnpm/undici@7.30.1/node_modules/undici/types/errors.d.ts
3592
+ declare namespace Errors {
3593
+ export class UndiciError extends Error {
3594
+ name: string;
3595
+ code: string;
3596
+ }
3597
+ /** Connect timeout error. */
3598
+ export class ConnectTimeoutError extends UndiciError {
3599
+ name: 'ConnectTimeoutError';
3600
+ code: 'UND_ERR_CONNECT_TIMEOUT';
3601
+ }
3602
+ /** A header exceeds the `headersTimeout` option. */
3603
+ export class HeadersTimeoutError extends UndiciError {
3604
+ name: 'HeadersTimeoutError';
3605
+ code: 'UND_ERR_HEADERS_TIMEOUT';
3606
+ }
3607
+ /** Headers overflow error. */
3608
+ export class HeadersOverflowError extends UndiciError {
3609
+ name: 'HeadersOverflowError';
3610
+ code: 'UND_ERR_HEADERS_OVERFLOW';
3611
+ }
3612
+ /** A body exceeds the `bodyTimeout` option. */
3613
+ export class BodyTimeoutError extends UndiciError {
3614
+ name: 'BodyTimeoutError';
3615
+ code: 'UND_ERR_BODY_TIMEOUT';
3616
+ }
3617
+ export class ResponseError extends UndiciError {
3618
+ constructor(message: string, code: number, options: {
3619
+ headers?: IncomingHttpHeaders | string[] | null;
3620
+ body?: null | Record<string, any> | string;
3621
+ });
3622
+ name: 'ResponseError';
3623
+ code: 'UND_ERR_RESPONSE';
3624
+ statusCode: number;
3625
+ body: null | Record<string, any> | string;
3626
+ headers: IncomingHttpHeaders | string[] | null;
3627
+ }
3628
+ /** Passed an invalid argument. */
3629
+ export class InvalidArgumentError extends UndiciError {
3630
+ name: 'InvalidArgumentError';
3631
+ code: 'UND_ERR_INVALID_ARG';
3632
+ }
3633
+ /** Returned an invalid value. */
3634
+ export class InvalidReturnValueError extends UndiciError {
3635
+ name: 'InvalidReturnValueError';
3636
+ code: 'UND_ERR_INVALID_RETURN_VALUE';
3637
+ }
3638
+ /** The request has been aborted by the user. */
3639
+ export class RequestAbortedError extends UndiciError {
3640
+ name: 'AbortError';
3641
+ code: 'UND_ERR_ABORTED';
3642
+ }
3643
+ /** Expected error with reason. */
3644
+ export class InformationalError extends UndiciError {
3645
+ name: 'InformationalError';
3646
+ code: 'UND_ERR_INFO';
3647
+ }
3648
+ /** Request body length does not match content-length header. */
3649
+ export class RequestContentLengthMismatchError extends UndiciError {
3650
+ name: 'RequestContentLengthMismatchError';
3651
+ code: 'UND_ERR_REQ_CONTENT_LENGTH_MISMATCH';
3652
+ }
3653
+ /** Response body length does not match content-length header. */
3654
+ export class ResponseContentLengthMismatchError extends UndiciError {
3655
+ name: 'ResponseContentLengthMismatchError';
3656
+ code: 'UND_ERR_RES_CONTENT_LENGTH_MISMATCH';
3657
+ }
3658
+ /** Trying to use a destroyed client. */
3659
+ export class ClientDestroyedError extends UndiciError {
3660
+ name: 'ClientDestroyedError';
3661
+ code: 'UND_ERR_DESTROYED';
3662
+ }
3663
+ /** Trying to use a closed client. */
3664
+ export class ClientClosedError extends UndiciError {
3665
+ name: 'ClientClosedError';
3666
+ code: 'UND_ERR_CLOSED';
3667
+ }
3668
+ /** There is an error with the socket. */
3669
+ export class SocketError extends UndiciError {
3670
+ name: 'SocketError';
3671
+ code: 'UND_ERR_SOCKET';
3672
+ socket: Client.SocketInfo | null;
3673
+ }
3674
+ /** Encountered unsupported functionality. */
3675
+ export class NotSupportedError extends UndiciError {
3676
+ name: 'NotSupportedError';
3677
+ code: 'UND_ERR_NOT_SUPPORTED';
3678
+ }
3679
+ /** No upstream has been added to the BalancedPool. */
3680
+ export class BalancedPoolMissingUpstreamError extends UndiciError {
3681
+ name: 'MissingUpstreamError';
3682
+ code: 'UND_ERR_BPL_MISSING_UPSTREAM';
3683
+ }
3684
+ export class HTTPParserError extends UndiciError {
3685
+ name: 'HTTPParserError';
3686
+ code: string;
3687
+ }
3688
+ /** The response exceed the length allowed. */
3689
+ export class ResponseExceededMaxSizeError extends UndiciError {
3690
+ name: 'ResponseExceededMaxSizeError';
3691
+ code: 'UND_ERR_RES_EXCEEDED_MAX_SIZE';
3692
+ }
3693
+ export class RequestRetryError extends UndiciError {
3694
+ constructor(message: string, statusCode: number, headers?: IncomingHttpHeaders | string[] | null, body?: null | Record<string, any> | string);
3695
+ name: 'RequestRetryError';
3696
+ code: 'UND_ERR_REQ_RETRY';
3697
+ statusCode: number;
3698
+ data: {
3699
+ count: number;
3700
+ };
3701
+ headers: Record<string, string | string[]>;
3702
+ }
3703
+ export class SecureProxyConnectionError extends UndiciError {
3704
+ constructor(cause?: Error, message?: string, options?: Record<any, any>);
3705
+ name: 'SecureProxyConnectionError';
3706
+ code: 'UND_ERR_PRX_TLS';
3707
+ }
3708
+ export class MaxOriginsReachedError extends UndiciError {
3709
+ name: 'MaxOriginsReachedError';
3710
+ code: 'UND_ERR_MAX_ORIGINS_REACHED';
3711
+ }
3712
+ /** SOCKS5 proxy related error. */
3713
+ export class Socks5ProxyError extends UndiciError {
3714
+ constructor(message?: string, code?: string);
3715
+ name: 'Socks5ProxyError';
3716
+ code: string;
3717
+ }
3718
+ /** WebSocket decompressed message exceeded maximum size. */
3719
+ export class MessageSizeExceededError extends UndiciError {
3720
+ name: 'MessageSizeExceededError';
3721
+ code: 'UND_ERR_WS_MESSAGE_SIZE_EXCEEDED';
3722
+ }
3723
+ }
3724
+ //#endregion
3725
+ //#region ../../node_modules/.pnpm/undici@7.30.1/node_modules/undici/types/dispatcher.d.ts
3726
+ type AbortSignal$1 = unknown;
3727
+ type UndiciHeaders = Record<string, string | string[]> | IncomingHttpHeaders | string[] | Iterable<[string, string | string[] | undefined]> | null;
3728
+ /** Dispatcher is the core API used to dispatch requests. */
3729
+ declare class Dispatcher extends EventEmitter {
3730
+ /** Dispatches a request. This API is expected to evolve through semver-major versions and is less stable than the preceding higher level APIs. It is primarily intended for library developers who implement higher level APIs on top of this. */
3731
+ dispatch(options: Dispatcher.DispatchOptions, handler: Dispatcher.DispatchHandler): boolean;
3732
+ /** Starts two-way communications with the requested resource. */
3733
+ connect<TOpaque = null>(options: Dispatcher.ConnectOptions<TOpaque>, callback: (err: Error | null, data: Dispatcher.ConnectData<TOpaque>) => void): void;
3734
+ connect<TOpaque = null>(options: Dispatcher.ConnectOptions<TOpaque>): Promise<Dispatcher.ConnectData<TOpaque>>;
3735
+ /** Compose a chain of dispatchers */
3736
+ compose(dispatchers: Dispatcher.DispatcherComposeInterceptor[]): Dispatcher.ComposedDispatcher;
3737
+ compose(...dispatchers: Dispatcher.DispatcherComposeInterceptor[]): Dispatcher.ComposedDispatcher;
3738
+ /** Performs an HTTP request. */
3739
+ request<TOpaque = null>(options: Dispatcher.RequestOptions<TOpaque>, callback: (err: Error | null, data: Dispatcher.ResponseData<TOpaque>) => void): void;
3740
+ request<TOpaque = null>(options: Dispatcher.RequestOptions<TOpaque>): Promise<Dispatcher.ResponseData<TOpaque>>;
3741
+ /** For easy use with `stream.pipeline`. */
3742
+ pipeline<TOpaque = null>(options: Dispatcher.PipelineOptions<TOpaque>, handler: Dispatcher.PipelineHandler<TOpaque>): Duplex;
3743
+ /** A faster version of `Dispatcher.request`. */
3744
+ stream<TOpaque = null>(options: Dispatcher.RequestOptions<TOpaque>, factory: Dispatcher.StreamFactory<TOpaque>, callback: (err: Error | null, data: Dispatcher.StreamData<TOpaque>) => void): void;
3745
+ stream<TOpaque = null>(options: Dispatcher.RequestOptions<TOpaque>, factory: Dispatcher.StreamFactory<TOpaque>): Promise<Dispatcher.StreamData<TOpaque>>;
3746
+ /** Upgrade to a different protocol. */
3747
+ upgrade(options: Dispatcher.UpgradeOptions, callback: (err: Error | null, data: Dispatcher.UpgradeData) => void): void;
3748
+ upgrade(options: Dispatcher.UpgradeOptions): Promise<Dispatcher.UpgradeData>;
3749
+ /** Closes the client and gracefully waits for enqueued requests to complete before invoking the callback (or returning a promise if no callback is provided). */
3750
+ close(callback: () => void): void;
3751
+ close(): Promise<void>;
3752
+ /** Destroy the client abruptly with the given err. All the pending and running requests will be asynchronously aborted and error. Waits until socket is closed before invoking the callback (or returning a promise if no callback is provided). Since this operation is asynchronously dispatched there might still be some progress on dispatched requests. */
3753
+ destroy(err: Error | null, callback: () => void): void;
3754
+ destroy(callback: () => void): void;
3755
+ destroy(err: Error | null): Promise<void>;
3756
+ destroy(): Promise<void>;
3757
+ on(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
3758
+ on(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
3759
+ on(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
3760
+ on(eventName: 'drain', callback: (origin: URL$1) => void): this;
3761
+ once(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
3762
+ once(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
3763
+ once(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
3764
+ once(eventName: 'drain', callback: (origin: URL$1) => void): this;
3765
+ off(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
3766
+ off(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
3767
+ off(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
3768
+ off(eventName: 'drain', callback: (origin: URL$1) => void): this;
3769
+ addListener(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
3770
+ addListener(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
3771
+ addListener(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
3772
+ addListener(eventName: 'drain', callback: (origin: URL$1) => void): this;
3773
+ removeListener(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
3774
+ removeListener(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
3775
+ removeListener(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
3776
+ removeListener(eventName: 'drain', callback: (origin: URL$1) => void): this;
3777
+ prependListener(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
3778
+ prependListener(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
3779
+ prependListener(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
3780
+ prependListener(eventName: 'drain', callback: (origin: URL$1) => void): this;
3781
+ prependOnceListener(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
3782
+ prependOnceListener(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
3783
+ prependOnceListener(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
3784
+ prependOnceListener(eventName: 'drain', callback: (origin: URL$1) => void): this;
3785
+ listeners(eventName: 'connect'): ((origin: URL$1, targets: readonly Dispatcher[]) => void)[];
3786
+ listeners(eventName: 'disconnect'): ((origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
3787
+ listeners(eventName: 'connectionError'): ((origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
3788
+ listeners(eventName: 'drain'): ((origin: URL$1) => void)[];
3789
+ rawListeners(eventName: 'connect'): ((origin: URL$1, targets: readonly Dispatcher[]) => void)[];
3790
+ rawListeners(eventName: 'disconnect'): ((origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
3791
+ rawListeners(eventName: 'connectionError'): ((origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
3792
+ rawListeners(eventName: 'drain'): ((origin: URL$1) => void)[];
3793
+ emit(eventName: 'connect', origin: URL$1, targets: readonly Dispatcher[]): boolean;
3794
+ emit(eventName: 'disconnect', origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError): boolean;
3795
+ emit(eventName: 'connectionError', origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError): boolean;
3796
+ emit(eventName: 'drain', origin: URL$1): boolean;
3797
+ }
3798
+ declare namespace Dispatcher {
3799
+ export interface ComposedDispatcher extends Dispatcher {}
3800
+ export type Dispatch = Dispatcher['dispatch'];
3801
+ export type DispatcherComposeInterceptor = (dispatch: Dispatch) => Dispatch;
3802
+ export interface DispatchOptions {
3803
+ origin?: string | URL$1;
3804
+ path: string;
3805
+ method: HttpMethod;
3806
+ /** Default: `null` */
3807
+ body?: string | Buffer | Uint8Array | Readable | null | FormData;
3808
+ /** Default: `null` */
3809
+ headers?: UndiciHeaders;
3810
+ /** Query string params to be embedded in the request URL. Default: `null` */
3811
+ query?: Record<string, any>;
3812
+ /** Whether the requests can be safely retried or not. If `false` the request won't be sent until all preceding requests in the pipeline have completed. Default: `true` if `method` is `HEAD` or `GET`. */
3813
+ idempotent?: boolean;
3814
+ /** Whether the response is expected to take a long time and would end up blocking the pipeline. When this is set to `true` further pipelining will be avoided on the same connection until headers have been received. Defaults to `method !== 'HEAD'`. */
3815
+ blocking?: boolean;
3816
+ /** The IP Type of Service (ToS) value for the request socket. Must be an integer between 0 and 255. Default: `0` */
3817
+ typeOfService?: number | null;
3818
+ /** Upgrade the request. Should be used to specify the kind of upgrade i.e. `'Websocket'`. Default: `method === 'CONNECT' || null`. */
3819
+ upgrade?: boolean | string | null;
3820
+ /** The amount of time, in milliseconds, the parser will wait to receive the complete HTTP headers. Defaults to 300 seconds. */
3821
+ headersTimeout?: number | null;
3822
+ /** The timeout after which a request will time out, in milliseconds. Monitors time between receiving body data. Use 0 to disable it entirely. Defaults to 300 seconds. */
3823
+ bodyTimeout?: number | null;
3824
+ /** Whether the request should stablish a keep-alive or not. Default `false` */
3825
+ reset?: boolean;
3826
+ /** Whether Undici should throw an error upon receiving a 4xx or 5xx response from the server. Defaults to false */
3827
+ throwOnError?: boolean;
3828
+ /** For H2, it appends the expect: 100-continue header, and halts the request body until a 100-continue is received from the remote server */
3829
+ expectContinue?: boolean;
3830
+ }
3831
+ export interface ConnectOptions<TOpaque = null> {
3832
+ origin: string | URL$1;
3833
+ path: string;
3834
+ /** Default: `null` */
3835
+ headers?: UndiciHeaders;
3836
+ /** Default: `null` */
3837
+ signal?: AbortSignal$1 | EventEmitter | null;
3838
+ /** This argument parameter is passed through to `ConnectData` */
3839
+ opaque?: TOpaque;
3840
+ /** Default: `null` */
3841
+ responseHeaders?: 'raw' | null;
3842
+ }
3843
+ export interface RequestOptions<TOpaque = null> extends DispatchOptions {
3844
+ /** Default: `null` */
3845
+ opaque?: TOpaque;
3846
+ /** Default: `null` */
3847
+ signal?: AbortSignal$1 | EventEmitter | null;
3848
+ /** Default: `null` */
3849
+ onInfo?: (info: {
3850
+ statusCode: number;
3851
+ headers: Record<string, string | string[]>;
3852
+ }) => void;
3853
+ /** Default: `null` */
3854
+ responseHeaders?: 'raw' | null;
3855
+ /** Default: `64 KiB` */
3856
+ highWaterMark?: number;
3857
+ }
3858
+ export interface PipelineOptions<TOpaque = null> extends RequestOptions<TOpaque> {
3859
+ /** `true` if the `handler` will return an object stream. Default: `false` */
3860
+ objectMode?: boolean;
3861
+ }
3862
+ export interface UpgradeOptions {
3863
+ path: string;
3864
+ /** Default: `'GET'` */
3865
+ method?: string;
3866
+ /** Default: `null` */
3867
+ headers?: UndiciHeaders;
3868
+ /** A string of comma separated protocols, in descending preference order. Default: `'Websocket'` */
3869
+ protocol?: string;
3870
+ /** Default: `null` */
3871
+ signal?: AbortSignal$1 | EventEmitter | null;
3872
+ /** Default: `null` */
3873
+ responseHeaders?: 'raw' | null;
3874
+ }
3875
+ export interface ConnectData<TOpaque = null> {
3876
+ statusCode: number;
3877
+ headers: IncomingHttpHeaders;
3878
+ socket: Duplex;
3879
+ opaque: TOpaque;
3880
+ }
3881
+ export interface ResponseData<TOpaque = null> {
3882
+ statusCode: number;
3883
+ statusText: string;
3884
+ headers: IncomingHttpHeaders;
3885
+ body: BodyReadable & BodyMixin;
3886
+ trailers: Record<string, string>;
3887
+ opaque: TOpaque;
3888
+ context: object;
3889
+ }
3890
+ export interface PipelineHandlerData<TOpaque = null> {
3891
+ statusCode: number;
3892
+ headers: IncomingHttpHeaders;
3893
+ opaque: TOpaque;
3894
+ body: BodyReadable;
3895
+ context: object;
3896
+ }
3897
+ export interface StreamData<TOpaque = null> {
3898
+ opaque: TOpaque;
3899
+ trailers: Record<string, string>;
3900
+ }
3901
+ export interface UpgradeData<TOpaque = null> {
3902
+ headers: IncomingHttpHeaders;
3903
+ socket: Duplex;
3904
+ opaque: TOpaque;
3905
+ }
3906
+ export interface StreamFactoryData<TOpaque = null> {
3907
+ statusCode: number;
3908
+ headers: IncomingHttpHeaders;
3909
+ opaque: TOpaque;
3910
+ context: object;
3911
+ }
3912
+ export type StreamFactory<TOpaque = null> = (data: StreamFactoryData<TOpaque>) => Writable;
3913
+ export interface DispatchController {
3914
+ get aborted(): boolean;
3915
+ get paused(): boolean;
3916
+ get reason(): Error | null;
3917
+ rawHeaders?: Buffer[] | string[] | IncomingHttpHeaders | null;
3918
+ rawTrailers?: Buffer[] | string[] | IncomingHttpHeaders | null;
3919
+ abort(reason: Error): void;
3920
+ pause(): void;
3921
+ resume(): void;
3922
+ }
3923
+ export interface DispatchHandler {
3924
+ onRequestStart?(controller: DispatchController, context: any): void;
3925
+ onRequestUpgrade?(controller: DispatchController, statusCode: number, headers: IncomingHttpHeaders, socket: Duplex): void;
3926
+ onResponseStart?(controller: DispatchController, statusCode: number, headers: IncomingHttpHeaders, statusMessage?: string): void;
3927
+ onResponseData?(controller: DispatchController, chunk: Buffer): void;
3928
+ onResponseEnd?(controller: DispatchController, trailers: IncomingHttpHeaders): void;
3929
+ onResponseError?(controller: DispatchController, error: Error): void;
3930
+ /** Invoked before request is dispatched on socket. May be invoked multiple times when a request is retried when the request at the head of the pipeline fails. */
3931
+ /** @deprecated */
3932
+ onConnect?(abort: (err?: Error) => void): void;
3933
+ /** Invoked when an error has occurred. */
3934
+ /** @deprecated */
3935
+ onError?(err: Error): void;
3936
+ /** Invoked when request is upgraded either due to a `Upgrade` header or `CONNECT` method. */
3937
+ /** @deprecated */
3938
+ onUpgrade?(statusCode: number, headers: Buffer[] | string[] | null, socket: Duplex): void;
3939
+ /** Invoked when response is received, before headers have been read. **/
3940
+ /** @deprecated */
3941
+ onResponseStarted?(): void;
3942
+ /** Invoked when statusCode and headers have been received. May be invoked multiple times due to 1xx informational headers. */
3943
+ /** @deprecated */
3944
+ onHeaders?(statusCode: number, headers: Buffer[], resume: () => void, statusText: string): boolean;
3945
+ /** Invoked when response payload data is received. */
3946
+ /** @deprecated */
3947
+ onData?(chunk: Buffer): boolean;
3948
+ /** Invoked when response payload and trailers have been received and the request has completed. */
3949
+ /** @deprecated */
3950
+ onComplete?(trailers: string[] | null): void;
3951
+ /** Invoked when a body chunk is sent to the server. May be invoked multiple times for chunked requests */
3952
+ /** @deprecated */
3953
+ onBodySent?(chunkSize: number, totalBytesSent: number): void;
3954
+ }
3955
+ export type PipelineHandler<TOpaque = null> = (data: PipelineHandlerData<TOpaque>) => Readable;
3956
+ export type HttpMethod = Autocomplete<'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH'>;
3957
+ /**
3958
+ * @link https://fetch.spec.whatwg.org/#body-mixin
3959
+ */
3960
+ interface BodyMixin {
3961
+ readonly body?: never;
3962
+ readonly bodyUsed: boolean;
3963
+ arrayBuffer(): Promise<ArrayBuffer>;
3964
+ blob(): Promise<Blob>;
3965
+ bytes(): Promise<Uint8Array>;
3966
+ formData(): Promise<never>;
3967
+ json(): Promise<unknown>;
3968
+ text(): Promise<string>;
3969
+ }
3970
+ export interface DispatchInterceptor {
3971
+ (dispatch: Dispatch): Dispatch;
3972
+ }
3973
+ }
3974
+ //#endregion
3975
+ //#region ../../node_modules/.pnpm/undici@7.30.1/node_modules/undici/types/mock-interceptor.d.ts
3976
+ /** The scope associated with a mock dispatch. */
3977
+ declare class MockScope<TData extends object = object> {
3978
+ constructor(mockDispatch: MockInterceptor.MockDispatch<TData>);
3979
+ /** Delay a reply by a set amount of time in ms. */
3980
+ delay(waitInMs: number): MockScope<TData>;
3981
+ /** Persist the defined mock data for the associated reply. It will return the defined mock data indefinitely. */
3982
+ persist(): MockScope<TData>;
3983
+ /** Define a reply for a set amount of matching requests. */
3984
+ times(repeatTimes: number): MockScope<TData>;
3985
+ }
3986
+ /** The interceptor for a Mock. */
3987
+ declare class MockInterceptor {
3988
+ constructor(options: MockInterceptor.Options, mockDispatches: MockInterceptor.MockDispatch[]);
3989
+ /** Mock an undici request with the defined reply. */
3990
+ reply<TData extends object = object>(replyOptionsCallback: MockInterceptor.MockReplyOptionsCallback<TData>): MockScope<TData>;
3991
+ reply<TData extends object = object>(statusCode: number, data?: TData | Buffer | string | MockInterceptor.MockResponseDataHandler<TData>, responseOptions?: MockInterceptor.MockResponseOptions): MockScope<TData>;
3992
+ /** Mock an undici request by throwing the defined reply error. */
3993
+ replyWithError<TError extends Error = Error>(error: TError): MockScope;
3994
+ /** Set default reply headers on the interceptor for subsequent mocked replies. */
3995
+ defaultReplyHeaders(headers: IncomingHttpHeaders): MockInterceptor;
3996
+ /** Set default reply trailers on the interceptor for subsequent mocked replies. */
3997
+ defaultReplyTrailers(trailers: Record<string, string>): MockInterceptor;
3998
+ /** Set automatically calculated content-length header on subsequent mocked replies. */
3999
+ replyContentLength(): MockInterceptor;
4000
+ }
4001
+ declare namespace MockInterceptor {
4002
+ /** MockInterceptor options. */
4003
+ export interface Options {
4004
+ /** Path to intercept on. */
4005
+ path: string | RegExp | ((path: string) => boolean);
4006
+ /** Method to intercept on. Defaults to GET. */
4007
+ method?: string | RegExp | ((method: string) => boolean);
4008
+ /** Body to intercept on. */
4009
+ body?: string | RegExp | ((body: string) => boolean);
4010
+ /** Headers to intercept on. */
4011
+ headers?: Record<string, string | RegExp | ((body: string) => boolean)> | ((headers: Record<string, string>) => boolean);
4012
+ /** Query params to intercept on */
4013
+ query?: Record<string, any>;
4014
+ }
4015
+ export interface MockDispatch<TData extends object = object, TError extends Error = Error> extends Options {
4016
+ times: number | null;
4017
+ persist: boolean;
4018
+ consumed: boolean;
4019
+ data: MockDispatchData<TData, TError>;
4020
+ }
4021
+ export interface MockDispatchData<TData extends object = object, TError extends Error = Error> extends MockResponseOptions {
4022
+ error: TError | null;
4023
+ statusCode?: number;
4024
+ data?: TData | string;
4025
+ }
4026
+ export interface MockResponseOptions {
4027
+ headers?: IncomingHttpHeaders;
4028
+ trailers?: Record<string, string>;
4029
+ }
4030
+ export interface MockResponseCallbackOptions {
4031
+ path: string;
4032
+ method: string;
4033
+ headers?: Headers | Record<string, string>;
4034
+ origin?: string;
4035
+ body?: BodyInit | Dispatcher.DispatchOptions['body'] | null;
4036
+ }
4037
+ export type MockResponseDataHandler<TData extends object = object> = (opts: MockResponseCallbackOptions) => TData | Buffer | string;
4038
+ export type MockReplyOptionsCallback<TData extends object = object> = (opts: MockResponseCallbackOptions) => {
4039
+ statusCode: number;
4040
+ data?: TData | Buffer | string;
4041
+ responseOptions?: MockResponseOptions;
4042
+ };
4043
+ }
4044
+ //#endregion
98
4045
  //#region src/index.d.ts
99
4046
  /**
100
4047
  * @deprecated Set a compatibility date explicitly instead (as `YYYY-MM-DD`)