@form-instant/react-resolver-zod 1.18.12 → 2.0.0-rc.1
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/components/FormInstantProvider.d.ts +10 -0
- package/dist/components/SchemaMapper.d.ts +24 -0
- package/dist/examples/completeExample.d.ts +6 -0
- package/dist/examples/fieldConfigExample.d.ts +158 -0
- package/dist/examples/formInstantExample.d.ts +6 -0
- package/dist/examples/legacyCompatibility.d.ts +30 -0
- package/dist/hooks/useSchemaMapping.d.ts +22 -0
- package/dist/hooks/useSchemaMetadata.d.ts +26 -0
- package/dist/hooks/useSchemaNavigation.d.ts +18 -0
- package/dist/index.d.ts +5 -6
- package/dist/index.js +2 -7
- package/dist/index.js.map +13 -0
- package/dist/types.d.ts +48 -0
- package/dist/utils/pathResolver.d.ts +26 -0
- package/dist/utils/schemaParser.d.ts +19 -0
- package/dist/utils/zodExtensions.d.ts +974 -0
- package/package.json +57 -58
- package/dist/context.d.ts +0 -2
- package/dist/funcs/default-values.d.ts +0 -4
- package/dist/funcs/field-config.d.ts +0 -11
- package/dist/funcs/field-type-inference.d.ts +0 -3
- package/dist/funcs/index.d.ts +0 -5
- package/dist/funcs/schema-parser.d.ts +0 -2
- package/dist/funcs/types.d.ts +0 -11
- package/dist/provider.d.ts +0 -6
- package/dist/react-resolver-zod.cjs.development.js +0 -416
- package/dist/react-resolver-zod.cjs.development.js.map +0 -1
- package/dist/react-resolver-zod.cjs.production.min.js +0 -2
- package/dist/react-resolver-zod.cjs.production.min.js.map +0 -1
- package/dist/react-resolver-zod.esm.js +0 -401
- package/dist/react-resolver-zod.esm.js.map +0 -1
- package/dist/type.d.ts +0 -2
- package/dist/useSchema.d.ts +0 -14
- /package/dist/{element.d.ts → components/FormInstantElement.d.ts} +0 -0
@@ -0,0 +1,974 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export interface BaseFieldConfigOptions {
|
3
|
+
[key: string]: any;
|
4
|
+
}
|
5
|
+
export type FieldConfigOptions<T = BaseFieldConfigOptions> = T & BaseFieldConfigOptions;
|
6
|
+
export declare function extendZodWithFieldConfig(): {
|
7
|
+
object: <T extends Readonly<{
|
8
|
+
[k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
9
|
+
}>>(shape: T) => z.ZodObject<{ -readonly [P in keyof T]: T[P]; }, z.core.$strip> & {
|
10
|
+
fieldConfig: <TConfig = BaseFieldConfigOptions>(config: FieldConfigOptions<TConfig>) => z.ZodObject<{ -readonly [P in keyof T]: T[P]; }, z.core.$strip>;
|
11
|
+
};
|
12
|
+
array: <T_1 extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>(element: T_1) => z.ZodArray<T_1> & {
|
13
|
+
fieldConfig: <TConfig_1 = BaseFieldConfigOptions>(config: FieldConfigOptions<TConfig_1>) => z.ZodArray<T_1>;
|
14
|
+
};
|
15
|
+
string: () => z.ZodString & {
|
16
|
+
fieldConfig: <TConfig_2 = BaseFieldConfigOptions>(config: FieldConfigOptions<TConfig_2>) => z.ZodString;
|
17
|
+
};
|
18
|
+
email: () => z.ZodString & {
|
19
|
+
fieldConfig: <TConfig_3 = BaseFieldConfigOptions>(config: FieldConfigOptions<TConfig_3>) => z.ZodString;
|
20
|
+
};
|
21
|
+
number: () => z.ZodNumber & {
|
22
|
+
fieldConfig: <TConfig_4 = BaseFieldConfigOptions>(config: FieldConfigOptions<TConfig_4>) => z.ZodNumber;
|
23
|
+
};
|
24
|
+
boolean: () => z.ZodBoolean & {
|
25
|
+
fieldConfig: <TConfig_5 = BaseFieldConfigOptions>(config: FieldConfigOptions<TConfig_5>) => z.ZodBoolean;
|
26
|
+
};
|
27
|
+
date: () => z.ZodDate & {
|
28
|
+
fieldConfig: <TConfig_6 = BaseFieldConfigOptions>(config: FieldConfigOptions<TConfig_6>) => z.ZodDate;
|
29
|
+
};
|
30
|
+
enum: <T_2 extends [string, ...string[]]>(values: T_2) => z.ZodEnum<{ [k_1 in T_2[number]]: k_1; } extends infer T_3 ? { [k in keyof T_3]: { [k_1 in T_2[number]]: k_1; }[k]; } : never> & {
|
31
|
+
fieldConfig: <TConfig_7 = BaseFieldConfigOptions>(config: FieldConfigOptions<TConfig_7>) => z.ZodEnum<{ [k_1 in T_2[number]]: k_1; } extends infer T_3 ? { [k in keyof T_3]: { [k_1 in T_2[number]]: k_1; }[k]; } : never>;
|
32
|
+
};
|
33
|
+
union: <T_4 extends [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, ...z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>[]]>(types: T_4) => z.ZodUnion<T_4> & {
|
34
|
+
fieldConfig: <TConfig_8 = BaseFieldConfigOptions>(config: FieldConfigOptions<TConfig_8>) => z.ZodUnion<T_4>;
|
35
|
+
};
|
36
|
+
optional: <T_5 extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>(schema: T_5) => z.ZodOptional<T_5>;
|
37
|
+
nullable: <T_6 extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>(schema: T_6) => z.ZodNullable<T_6>;
|
38
|
+
core: typeof z.core;
|
39
|
+
globalRegistry: z.core.$ZodRegistry<z.core.GlobalMeta, z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
40
|
+
registry: typeof z.core.registry;
|
41
|
+
config: typeof z.core.config;
|
42
|
+
function: typeof z.core.function;
|
43
|
+
$output: typeof z.core.$output;
|
44
|
+
$input: typeof z.core.$input;
|
45
|
+
$brand: typeof z.core.$brand;
|
46
|
+
clone: typeof z.core.util.clone;
|
47
|
+
regexes: typeof z.core.regexes;
|
48
|
+
treeifyError: typeof z.core.treeifyError;
|
49
|
+
prettifyError: typeof z.core.prettifyError;
|
50
|
+
formatError: typeof z.core.formatError;
|
51
|
+
flattenError: typeof z.core.flattenError;
|
52
|
+
toJSONSchema: typeof z.core.toJSONSchema;
|
53
|
+
TimePrecision: {
|
54
|
+
readonly Any: null;
|
55
|
+
readonly Minute: -1;
|
56
|
+
readonly Second: 0;
|
57
|
+
readonly Millisecond: 3;
|
58
|
+
readonly Microsecond: 6;
|
59
|
+
};
|
60
|
+
NEVER: never;
|
61
|
+
locales: typeof z.core.locales;
|
62
|
+
ZodISODateTime: z.core.$constructor<z.ZodISODateTime, z.core.$ZodISODateTimeDef>;
|
63
|
+
ZodISODate: z.core.$constructor<z.ZodISODate, z.core.$ZodStringFormatDef<"date">>;
|
64
|
+
ZodISOTime: z.core.$constructor<z.ZodISOTime, z.core.$ZodISOTimeDef>;
|
65
|
+
ZodISODuration: z.core.$constructor<z.ZodISODuration, z.core.$ZodStringFormatDef<"duration">>;
|
66
|
+
iso: typeof z.iso;
|
67
|
+
coerce: typeof z.coerce;
|
68
|
+
guid(params?: string | {
|
69
|
+
abort?: boolean | undefined;
|
70
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
71
|
+
message?: string | undefined;
|
72
|
+
} | undefined): z.ZodGUID;
|
73
|
+
uuid(params?: string | {
|
74
|
+
abort?: boolean | undefined;
|
75
|
+
version?: "v1" | "v2" | "v3" | "v4" | "v5" | "v6" | "v7" | "v8" | undefined;
|
76
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
77
|
+
message?: string | undefined;
|
78
|
+
} | undefined): z.ZodUUID;
|
79
|
+
uuidv4(params?: string | {
|
80
|
+
abort?: boolean | undefined;
|
81
|
+
version?: "v1" | "v2" | "v3" | "v4" | "v5" | "v6" | "v7" | "v8" | undefined;
|
82
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
83
|
+
message?: string | undefined;
|
84
|
+
} | undefined): z.ZodUUID;
|
85
|
+
uuidv6(params?: string | {
|
86
|
+
abort?: boolean | undefined;
|
87
|
+
version?: "v1" | "v2" | "v3" | "v4" | "v5" | "v6" | "v7" | "v8" | undefined;
|
88
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
89
|
+
message?: string | undefined;
|
90
|
+
} | undefined): z.ZodUUID;
|
91
|
+
uuidv7(params?: string | {
|
92
|
+
abort?: boolean | undefined;
|
93
|
+
version?: "v1" | "v2" | "v3" | "v4" | "v5" | "v6" | "v7" | "v8" | undefined;
|
94
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
95
|
+
message?: string | undefined;
|
96
|
+
} | undefined): z.ZodUUID;
|
97
|
+
url(params?: string | {
|
98
|
+
pattern?: RegExp | undefined;
|
99
|
+
abort?: boolean | undefined;
|
100
|
+
normalize?: boolean | undefined;
|
101
|
+
hostname?: RegExp | undefined;
|
102
|
+
protocol?: RegExp | undefined;
|
103
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
104
|
+
message?: string | undefined;
|
105
|
+
} | undefined): z.ZodURL;
|
106
|
+
emoji(params?: string | {
|
107
|
+
pattern?: RegExp | undefined;
|
108
|
+
abort?: boolean | undefined;
|
109
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
110
|
+
message?: string | undefined;
|
111
|
+
} | undefined): z.ZodEmoji;
|
112
|
+
nanoid(params?: string | {
|
113
|
+
pattern?: RegExp | undefined;
|
114
|
+
abort?: boolean | undefined;
|
115
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
116
|
+
message?: string | undefined;
|
117
|
+
} | undefined): z.ZodNanoID;
|
118
|
+
cuid(params?: string | {
|
119
|
+
pattern?: RegExp | undefined;
|
120
|
+
abort?: boolean | undefined;
|
121
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
122
|
+
message?: string | undefined;
|
123
|
+
} | undefined): z.ZodCUID;
|
124
|
+
cuid2(params?: string | {
|
125
|
+
pattern?: RegExp | undefined;
|
126
|
+
abort?: boolean | undefined;
|
127
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
128
|
+
message?: string | undefined;
|
129
|
+
} | undefined): z.ZodCUID2;
|
130
|
+
ulid(params?: string | {
|
131
|
+
pattern?: RegExp | undefined;
|
132
|
+
abort?: boolean | undefined;
|
133
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
134
|
+
message?: string | undefined;
|
135
|
+
} | undefined): z.ZodULID;
|
136
|
+
xid(params?: string | {
|
137
|
+
pattern?: RegExp | undefined;
|
138
|
+
abort?: boolean | undefined;
|
139
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
140
|
+
message?: string | undefined;
|
141
|
+
} | undefined): z.ZodXID;
|
142
|
+
ksuid(params?: string | {
|
143
|
+
pattern?: RegExp | undefined;
|
144
|
+
abort?: boolean | undefined;
|
145
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
146
|
+
message?: string | undefined;
|
147
|
+
} | undefined): z.ZodKSUID;
|
148
|
+
ipv4(params?: string | {
|
149
|
+
abort?: boolean | undefined;
|
150
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
151
|
+
message?: string | undefined;
|
152
|
+
} | undefined): z.ZodIPv4;
|
153
|
+
ipv6(params?: string | {
|
154
|
+
abort?: boolean | undefined;
|
155
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
156
|
+
message?: string | undefined;
|
157
|
+
} | undefined): z.ZodIPv6;
|
158
|
+
cidrv4(params?: string | {
|
159
|
+
abort?: boolean | undefined;
|
160
|
+
version?: "v4" | undefined;
|
161
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
162
|
+
message?: string | undefined;
|
163
|
+
} | undefined): z.ZodCIDRv4;
|
164
|
+
cidrv6(params?: string | {
|
165
|
+
abort?: boolean | undefined;
|
166
|
+
version?: "v6" | undefined;
|
167
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
168
|
+
message?: string | undefined;
|
169
|
+
} | undefined): z.ZodCIDRv6;
|
170
|
+
base64(params?: string | {
|
171
|
+
abort?: boolean | undefined;
|
172
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
173
|
+
message?: string | undefined;
|
174
|
+
} | undefined): z.ZodBase64;
|
175
|
+
base64url(params?: string | {
|
176
|
+
abort?: boolean | undefined;
|
177
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
178
|
+
message?: string | undefined;
|
179
|
+
} | undefined): z.ZodBase64URL;
|
180
|
+
e164(params?: string | {
|
181
|
+
pattern?: RegExp | undefined;
|
182
|
+
abort?: boolean | undefined;
|
183
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
184
|
+
message?: string | undefined;
|
185
|
+
} | undefined): z.ZodE164;
|
186
|
+
jwt(params?: string | {
|
187
|
+
abort?: boolean | undefined;
|
188
|
+
alg?: z.core.util.JWTAlgorithm | undefined;
|
189
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
190
|
+
message?: string | undefined;
|
191
|
+
} | undefined): z.ZodJWT;
|
192
|
+
stringFormat<Format extends string>(format: Format, fnOrRegex: RegExp | ((arg: string) => unknown), _params?: string | {
|
193
|
+
abort?: boolean | undefined;
|
194
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
195
|
+
message?: string | undefined;
|
196
|
+
} | undefined): z.ZodCustomStringFormat<Format>;
|
197
|
+
hostname(_params?: string | {
|
198
|
+
abort?: boolean | undefined;
|
199
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
200
|
+
message?: string | undefined;
|
201
|
+
} | undefined): z.ZodCustomStringFormat<"hostname">;
|
202
|
+
int(params?: string | {
|
203
|
+
abort?: boolean | undefined;
|
204
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidType<unknown> | z.core.$ZodIssueTooBig<"number"> | z.core.$ZodIssueTooSmall<"number">>> | undefined;
|
205
|
+
message?: string | undefined;
|
206
|
+
} | undefined): z.ZodInt;
|
207
|
+
float32(params?: string | {
|
208
|
+
abort?: boolean | undefined;
|
209
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidType<unknown> | z.core.$ZodIssueTooBig<"number"> | z.core.$ZodIssueTooSmall<"number">>> | undefined;
|
210
|
+
message?: string | undefined;
|
211
|
+
} | undefined): z.ZodFloat32;
|
212
|
+
float64(params?: string | {
|
213
|
+
abort?: boolean | undefined;
|
214
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidType<unknown> | z.core.$ZodIssueTooBig<"number"> | z.core.$ZodIssueTooSmall<"number">>> | undefined;
|
215
|
+
message?: string | undefined;
|
216
|
+
} | undefined): z.ZodFloat64;
|
217
|
+
int32(params?: string | {
|
218
|
+
abort?: boolean | undefined;
|
219
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidType<unknown> | z.core.$ZodIssueTooBig<"number"> | z.core.$ZodIssueTooSmall<"number">>> | undefined;
|
220
|
+
message?: string | undefined;
|
221
|
+
} | undefined): z.ZodInt32;
|
222
|
+
uint32(params?: string | {
|
223
|
+
abort?: boolean | undefined;
|
224
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidType<unknown> | z.core.$ZodIssueTooBig<"number"> | z.core.$ZodIssueTooSmall<"number">>> | undefined;
|
225
|
+
message?: string | undefined;
|
226
|
+
} | undefined): z.ZodUInt32;
|
227
|
+
bigint(params?: string | {
|
228
|
+
coerce?: boolean | undefined;
|
229
|
+
error?: string | z.core.$ZodErrorMap<z.core.$ZodIssueInvalidType<unknown>> | undefined;
|
230
|
+
message?: string | undefined;
|
231
|
+
} | undefined): z.ZodBigInt;
|
232
|
+
int64(params?: string | {
|
233
|
+
abort?: boolean | undefined;
|
234
|
+
when?: ((payload: z.core.ParsePayload<unknown>) => boolean) | undefined;
|
235
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidType<unknown> | z.core.$ZodIssueTooBig<"bigint"> | z.core.$ZodIssueTooSmall<"bigint">>> | undefined;
|
236
|
+
message?: string | undefined;
|
237
|
+
} | undefined): z.ZodBigIntFormat;
|
238
|
+
uint64(params?: string | {
|
239
|
+
abort?: boolean | undefined;
|
240
|
+
when?: ((payload: z.core.ParsePayload<unknown>) => boolean) | undefined;
|
241
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidType<unknown> | z.core.$ZodIssueTooBig<"bigint"> | z.core.$ZodIssueTooSmall<"bigint">>> | undefined;
|
242
|
+
message?: string | undefined;
|
243
|
+
} | undefined): z.ZodBigIntFormat;
|
244
|
+
symbol(params?: string | {
|
245
|
+
error?: string | z.core.$ZodErrorMap<z.core.$ZodIssueInvalidType<unknown>> | undefined;
|
246
|
+
message?: string | undefined;
|
247
|
+
} | undefined): z.ZodSymbol;
|
248
|
+
any(): z.ZodAny;
|
249
|
+
unknown(): z.ZodUnknown;
|
250
|
+
never(params?: string | {
|
251
|
+
error?: string | z.core.$ZodErrorMap<z.core.$ZodIssueInvalidType<unknown>> | undefined;
|
252
|
+
message?: string | undefined;
|
253
|
+
} | undefined): z.ZodNever;
|
254
|
+
keyof<T_7 extends z.ZodObject<z.core.$ZodLooseShape, z.core.$strip>>(schema: T_7): z.ZodEnum<{ [k_3 in Exclude<keyof T_7["_zod"]["output"], symbol>]: k_3; } extends infer T_8 ? { [k_2 in keyof T_8]: { [k_3 in Exclude<keyof T_7["_zod"]["output"], symbol>]: k_3; }[k_2]; } : never>;
|
255
|
+
strictObject<T_9 extends z.core.$ZodLooseShape>(shape: T_9, params?: string | {
|
256
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueUnrecognizedKeys | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
257
|
+
message?: string | undefined;
|
258
|
+
} | undefined): z.ZodObject<T_9, z.core.$strict>;
|
259
|
+
looseObject<T_10 extends z.core.$ZodLooseShape>(shape: T_10, params?: string | {
|
260
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueUnrecognizedKeys | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
261
|
+
message?: string | undefined;
|
262
|
+
} | undefined): z.ZodObject<T_10, z.core.$loose>;
|
263
|
+
discriminatedUnion<Types extends readonly [z.core.$ZodTypeDiscriminable, ...z.core.$ZodTypeDiscriminable[]], Disc extends string>(discriminator: Disc, options: Types, params?: string | {
|
264
|
+
unionFallback?: boolean | undefined;
|
265
|
+
error?: string | z.core.$ZodErrorMap<z.core.$ZodIssueInvalidUnion> | undefined;
|
266
|
+
message?: string | undefined;
|
267
|
+
} | undefined): z.ZodDiscriminatedUnion<Types, Disc>;
|
268
|
+
intersection<T_11 extends z.core.SomeType, U extends z.core.SomeType>(left: T_11, right: U): z.ZodIntersection<T_11, U>;
|
269
|
+
tuple<T_12 extends readonly [z.core.SomeType, ...z.core.SomeType[]]>(items: T_12, params?: string | {
|
270
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidType<unknown> | z.core.$ZodIssueTooBig<unknown[]> | z.core.$ZodIssueTooSmall<unknown[]>>> | undefined;
|
271
|
+
message?: string | undefined;
|
272
|
+
} | undefined): z.ZodTuple<T_12, null>;
|
273
|
+
tuple<T_13 extends readonly [z.core.SomeType, ...z.core.SomeType[]], Rest extends z.core.SomeType>(items: T_13, rest: Rest, params?: string | {
|
274
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidType<unknown> | z.core.$ZodIssueTooBig<unknown[]> | z.core.$ZodIssueTooSmall<unknown[]>>> | undefined;
|
275
|
+
message?: string | undefined;
|
276
|
+
} | undefined): z.ZodTuple<T_13, Rest>;
|
277
|
+
tuple(items: [], params?: string | {
|
278
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidType<unknown> | z.core.$ZodIssueTooBig<unknown[]> | z.core.$ZodIssueTooSmall<unknown[]>>> | undefined;
|
279
|
+
message?: string | undefined;
|
280
|
+
} | undefined): z.ZodTuple<[], null>;
|
281
|
+
record<Key extends z.core.$ZodRecordKey, Value extends z.core.SomeType>(keyType: Key, valueType: Value, params?: string | {
|
282
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidType<unknown> | z.core.$ZodIssueInvalidKey<Record<PropertyKey, unknown>>>> | undefined;
|
283
|
+
message?: string | undefined;
|
284
|
+
} | undefined): z.ZodRecord<Key, Value>;
|
285
|
+
partialRecord<Key_1 extends z.core.$ZodRecordKey, Value_1 extends z.core.SomeType>(keyType: Key_1, valueType: Value_1, params?: string | {
|
286
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidType<unknown> | z.core.$ZodIssueInvalidKey<Record<PropertyKey, unknown>>>> | undefined;
|
287
|
+
message?: string | undefined;
|
288
|
+
} | undefined): z.ZodRecord<Key_1 & z.core.$partial, Value_1>;
|
289
|
+
map<Key_2 extends z.core.SomeType, Value_2 extends z.core.SomeType>(keyType: Key_2, valueType: Value_2, params?: string | {
|
290
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidType<unknown> | z.core.$ZodIssueInvalidKey<unknown> | z.core.$ZodIssueInvalidElement<unknown>>> | undefined;
|
291
|
+
message?: string | undefined;
|
292
|
+
} | undefined): z.ZodMap<Key_2, Value_2>;
|
293
|
+
set<Value_3 extends z.core.SomeType>(valueType: Value_3, params?: string | {
|
294
|
+
error?: string | z.core.$ZodErrorMap<z.core.$ZodIssueInvalidType<unknown>> | undefined;
|
295
|
+
message?: string | undefined;
|
296
|
+
} | undefined): z.ZodSet<Value_3>;
|
297
|
+
nativeEnum<T_14 extends Readonly<Record<string, z.core.util.EnumValue>>>(entries: T_14, params?: string | {
|
298
|
+
error?: string | z.core.$ZodErrorMap<z.core.$ZodIssueInvalidValue<unknown>> | undefined;
|
299
|
+
message?: string | undefined;
|
300
|
+
} | undefined): z.ZodEnum<T_14>;
|
301
|
+
literal<const T_15 extends readonly z.core.util.Literal[]>(value: T_15, params?: string | {
|
302
|
+
error?: string | z.core.$ZodErrorMap<z.core.$ZodIssueInvalidValue<unknown>> | undefined;
|
303
|
+
message?: string | undefined;
|
304
|
+
} | undefined): z.ZodLiteral<T_15[number]>;
|
305
|
+
literal<const T_16 extends z.core.util.Literal>(value: T_16, params?: string | {
|
306
|
+
error?: string | z.core.$ZodErrorMap<z.core.$ZodIssueInvalidValue<unknown>> | undefined;
|
307
|
+
message?: string | undefined;
|
308
|
+
} | undefined): z.ZodLiteral<T_16>;
|
309
|
+
file(params?: string | {
|
310
|
+
error?: string | z.core.$ZodErrorMap<z.core.$ZodIssueInvalidType<unknown>> | undefined;
|
311
|
+
message?: string | undefined;
|
312
|
+
} | undefined): z.ZodFile;
|
313
|
+
transform<I = unknown, O = I>(fn: (input: I, ctx: z.core.ParsePayload<unknown>) => O): z.ZodTransform<Awaited<O>, I>;
|
314
|
+
nullish<T_17 extends z.core.SomeType>(innerType: T_17): z.ZodOptional<z.ZodNullable<T_17>>;
|
315
|
+
_default<T_18 extends z.core.SomeType>(innerType: T_18, defaultValue: z.core.util.NoUndefined<z.core.output<T_18>> | (() => z.core.util.NoUndefined<z.core.output<T_18>>)): z.ZodDefault<T_18>;
|
316
|
+
prefault<T_19 extends z.core.SomeType>(innerType: T_19, defaultValue: z.core.input<T_19> | (() => z.core.input<T_19>)): z.ZodPrefault<T_19>;
|
317
|
+
nonoptional<T_20 extends z.core.SomeType>(innerType: T_20, params?: string | {
|
318
|
+
error?: string | z.core.$ZodErrorMap<z.core.$ZodIssueInvalidType<unknown>> | undefined;
|
319
|
+
message?: string | undefined;
|
320
|
+
} | undefined): z.ZodNonOptional<T_20>;
|
321
|
+
success<T_21 extends z.core.SomeType>(innerType: T_21): z.ZodSuccess<T_21>;
|
322
|
+
nan(params?: string | {
|
323
|
+
error?: string | z.core.$ZodErrorMap<z.core.$ZodIssueInvalidType<unknown>> | undefined;
|
324
|
+
message?: string | undefined;
|
325
|
+
} | undefined): z.ZodNaN;
|
326
|
+
pipe<const A extends z.core.SomeType, B extends z.core.$ZodType<unknown, z.core.output<A>, z.core.$ZodTypeInternals<unknown, z.core.output<A>>> = z.core.$ZodType<unknown, z.core.output<A>, z.core.$ZodTypeInternals<unknown, z.core.output<A>>>>(in_: A, out: B | z.core.$ZodType<unknown, z.core.output<A>, z.core.$ZodTypeInternals<unknown, z.core.output<A>>>): z.ZodPipe<A, B>;
|
327
|
+
readonly<T_22 extends z.core.SomeType>(innerType: T_22): z.ZodReadonly<T_22>;
|
328
|
+
templateLiteral<const Parts extends z.core.$ZodTemplateLiteralPart[]>(parts: Parts, params?: string | {
|
329
|
+
format?: string | undefined;
|
330
|
+
error?: string | z.core.$ZodErrorMap<z.core.$ZodIssueInvalidType<unknown>> | undefined;
|
331
|
+
message?: string | undefined;
|
332
|
+
} | undefined): z.ZodTemplateLiteral<z.core.$PartsToTemplateLiteral<Parts>>;
|
333
|
+
lazy<T_23 extends z.core.SomeType>(getter: () => T_23): z.ZodLazy<T_23>;
|
334
|
+
promise<T_24 extends z.core.SomeType>(innerType: T_24): z.ZodPromise<T_24>;
|
335
|
+
check<O_1 = unknown>(fn: z.core.CheckFn<O_1>): z.core.$ZodCheck<O_1>;
|
336
|
+
custom<O_2>(fn?: ((data: unknown) => unknown) | undefined, _params?: string | {
|
337
|
+
path?: PropertyKey[] | undefined;
|
338
|
+
params?: Record<string, any> | undefined;
|
339
|
+
abort?: boolean | undefined;
|
340
|
+
when?: ((payload: z.core.ParsePayload<unknown>) => boolean) | undefined;
|
341
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssue>> | undefined;
|
342
|
+
message?: string | undefined;
|
343
|
+
} | undefined): z.ZodCustom<O_2, O_2>;
|
344
|
+
refine<T_25>(fn: (arg: NoInfer<T_25>) => unknown, _params?: string | {
|
345
|
+
path?: PropertyKey[] | undefined;
|
346
|
+
params?: Record<string, any> | undefined;
|
347
|
+
abort?: boolean | undefined;
|
348
|
+
when?: ((payload: z.core.ParsePayload<unknown>) => boolean) | undefined;
|
349
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssue>> | undefined;
|
350
|
+
message?: string | undefined;
|
351
|
+
} | undefined): z.core.$ZodCheck<T_25>;
|
352
|
+
superRefine<T_26>(fn: (arg: T_26, payload: z.core.$RefinementCtx<T_26>) => void | Promise<void>): z.core.$ZodCheck<T_26>;
|
353
|
+
json(params?: string | {
|
354
|
+
path?: PropertyKey[] | undefined;
|
355
|
+
params?: Record<string, any> | undefined;
|
356
|
+
abort?: boolean | undefined;
|
357
|
+
when?: ((payload: z.core.ParsePayload<unknown>) => boolean) | undefined;
|
358
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssue>> | undefined;
|
359
|
+
message?: string | undefined;
|
360
|
+
} | undefined): z.ZodJSONSchema;
|
361
|
+
preprocess<A_1, U_1 extends z.core.SomeType, B_1 = unknown>(fn: (arg: B_1, ctx: z.core.$RefinementCtx<unknown>) => A_1, schema: U_1): z.ZodPipe<z.ZodTransform<A_1, B_1>, U_1>;
|
362
|
+
ZodType: z.core.$constructor<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.core.$ZodTypeDef>;
|
363
|
+
_ZodString: z.core.$constructor<z._ZodString<z.core.$ZodStringInternals<unknown>>, z.core.$ZodStringDef>;
|
364
|
+
ZodString: z.core.$constructor<z.ZodString, z.core.$ZodStringDef>;
|
365
|
+
ZodStringFormat: z.core.$constructor<z.ZodStringFormat<string>, z.core.$ZodStringFormatDef<string>>;
|
366
|
+
ZodEmail: z.core.$constructor<z.ZodEmail, z.core.$ZodStringFormatDef<"email">>;
|
367
|
+
ZodGUID: z.core.$constructor<z.ZodGUID, z.core.$ZodStringFormatDef<"guid">>;
|
368
|
+
ZodUUID: z.core.$constructor<z.ZodUUID, z.core.$ZodUUIDDef>;
|
369
|
+
ZodURL: z.core.$constructor<z.ZodURL, z.core.$ZodURLDef>;
|
370
|
+
ZodEmoji: z.core.$constructor<z.ZodEmoji, z.core.$ZodStringFormatDef<"emoji">>;
|
371
|
+
ZodNanoID: z.core.$constructor<z.ZodNanoID, z.core.$ZodStringFormatDef<"nanoid">>;
|
372
|
+
ZodCUID: z.core.$constructor<z.ZodCUID, z.core.$ZodStringFormatDef<"cuid">>;
|
373
|
+
ZodCUID2: z.core.$constructor<z.ZodCUID2, z.core.$ZodStringFormatDef<"cuid2">>;
|
374
|
+
ZodULID: z.core.$constructor<z.ZodULID, z.core.$ZodStringFormatDef<"ulid">>;
|
375
|
+
ZodXID: z.core.$constructor<z.ZodXID, z.core.$ZodStringFormatDef<"xid">>;
|
376
|
+
ZodKSUID: z.core.$constructor<z.ZodKSUID, z.core.$ZodStringFormatDef<"ksuid">>;
|
377
|
+
ZodIPv4: z.core.$constructor<z.ZodIPv4, z.core.$ZodIPv4Def>;
|
378
|
+
ZodIPv6: z.core.$constructor<z.ZodIPv6, z.core.$ZodIPv6Def>;
|
379
|
+
ZodCIDRv4: z.core.$constructor<z.ZodCIDRv4, z.core.$ZodCIDRv4Def>;
|
380
|
+
ZodCIDRv6: z.core.$constructor<z.ZodCIDRv6, z.core.$ZodCIDRv6Def>;
|
381
|
+
ZodBase64: z.core.$constructor<z.ZodBase64, z.core.$ZodStringFormatDef<"base64">>;
|
382
|
+
ZodBase64URL: z.core.$constructor<z.ZodBase64URL, z.core.$ZodStringFormatDef<"base64url">>;
|
383
|
+
ZodE164: z.core.$constructor<z.ZodE164, z.core.$ZodStringFormatDef<"e164">>;
|
384
|
+
ZodJWT: z.core.$constructor<z.ZodJWT, z.core.$ZodJWTDef>;
|
385
|
+
ZodCustomStringFormat: z.core.$constructor<z.ZodCustomStringFormat<string>, z.core.$ZodCustomStringFormatDef<string>>;
|
386
|
+
ZodNumber: z.core.$constructor<z.ZodNumber, z.core.$ZodNumberDef>;
|
387
|
+
ZodNumberFormat: z.core.$constructor<z.ZodNumberFormat, z.core.$ZodNumberFormatDef>;
|
388
|
+
ZodBoolean: z.core.$constructor<z.ZodBoolean, z.core.$ZodBooleanDef>;
|
389
|
+
ZodBigInt: z.core.$constructor<z.ZodBigInt, z.core.$ZodBigIntDef>;
|
390
|
+
ZodBigIntFormat: z.core.$constructor<z.ZodBigIntFormat, z.core.$ZodBigIntFormatDef>;
|
391
|
+
ZodSymbol: z.core.$constructor<z.ZodSymbol, z.core.$ZodSymbolDef>;
|
392
|
+
ZodUndefined: z.core.$constructor<z.ZodUndefined, z.core.$ZodUndefinedDef>;
|
393
|
+
undefined: typeof z.undefined;
|
394
|
+
ZodNull: z.core.$constructor<z.ZodNull, z.core.$ZodNullDef>;
|
395
|
+
null: typeof z.null;
|
396
|
+
ZodAny: z.core.$constructor<z.ZodAny, z.core.$ZodAnyDef>;
|
397
|
+
ZodUnknown: z.core.$constructor<z.ZodUnknown, z.core.$ZodUnknownDef>;
|
398
|
+
ZodNever: z.core.$constructor<z.ZodNever, z.core.$ZodNeverDef>;
|
399
|
+
ZodVoid: z.core.$constructor<z.ZodVoid, z.core.$ZodVoidDef>;
|
400
|
+
void: typeof z.void;
|
401
|
+
ZodDate: z.core.$constructor<z.ZodDate, z.core.$ZodDateDef>;
|
402
|
+
ZodArray: z.core.$constructor<z.ZodArray<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodArrayDef<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
403
|
+
ZodObject: z.core.$constructor<z.ZodObject<z.core.$ZodLooseShape, z.core.$strip>, z.core.$ZodObjectDef<z.core.$ZodLooseShape>>;
|
404
|
+
ZodUnion: z.core.$constructor<z.ZodUnion<readonly z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>[]>, z.core.$ZodUnionDef<readonly z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>[]>>;
|
405
|
+
ZodDiscriminatedUnion: z.core.$constructor<z.ZodDiscriminatedUnion<readonly z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>[], string>, z.core.$ZodDiscriminatedUnionDef<readonly z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>[], string>>;
|
406
|
+
ZodIntersection: z.core.$constructor<z.ZodIntersection<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodIntersectionDef<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
407
|
+
ZodTuple: z.core.$constructor<z.ZodTuple<readonly z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>[], z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | null>, z.core.$ZodTupleDef<readonly z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>[], z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | null>>;
|
408
|
+
ZodRecord: z.core.$constructor<z.ZodRecord<z.core.$ZodRecordKey, z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodRecordDef<z.core.$ZodRecordKey, z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
409
|
+
ZodMap: z.core.$constructor<z.ZodMap<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodMapDef<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
410
|
+
ZodSet: z.core.$constructor<z.ZodSet<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodSetDef<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
411
|
+
ZodEnum: z.core.$constructor<z.ZodEnum<Readonly<Record<string, z.core.util.EnumValue>>>, z.core.$ZodEnumDef<Readonly<Record<string, z.core.util.EnumValue>>>>;
|
412
|
+
ZodLiteral: z.core.$constructor<z.ZodLiteral<z.core.util.Literal>, z.core.$ZodLiteralDef<z.core.util.Literal>>;
|
413
|
+
ZodFile: z.core.$constructor<z.ZodFile, z.core.$ZodFileDef>;
|
414
|
+
ZodTransform: z.core.$constructor<z.ZodTransform<unknown, unknown>, z.core.$ZodTransformDef>;
|
415
|
+
ZodOptional: z.core.$constructor<z.ZodOptional<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodOptionalDef<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
416
|
+
ZodNullable: z.core.$constructor<z.ZodNullable<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodNullableDef<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
417
|
+
ZodDefault: z.core.$constructor<z.ZodDefault<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodDefaultDef<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
418
|
+
ZodPrefault: z.core.$constructor<z.ZodPrefault<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodPrefaultDef<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
419
|
+
ZodNonOptional: z.core.$constructor<z.ZodNonOptional<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodNonOptionalDef<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
420
|
+
ZodSuccess: z.core.$constructor<z.ZodSuccess<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodSuccessDef<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
421
|
+
ZodCatch: z.core.$constructor<z.ZodCatch<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodCatchDef<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
422
|
+
catch: typeof z.catch;
|
423
|
+
ZodNaN: z.core.$constructor<z.ZodNaN, z.core.$ZodNaNDef>;
|
424
|
+
ZodPipe: z.core.$constructor<z.ZodPipe<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodPipeDef<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
425
|
+
ZodReadonly: z.core.$constructor<z.ZodReadonly<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodReadonlyDef<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
426
|
+
ZodTemplateLiteral: z.core.$constructor<z.ZodTemplateLiteral<string>, z.core.$ZodTemplateLiteralDef>;
|
427
|
+
ZodLazy: z.core.$constructor<z.ZodLazy<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodLazyDef<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
428
|
+
ZodPromise: z.core.$constructor<z.ZodPromise<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodPromiseDef<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
429
|
+
ZodCustom: z.core.$constructor<z.ZodCustom<unknown, unknown>, z.core.$ZodCustomDef<unknown>>;
|
430
|
+
instanceof: typeof z.instanceof;
|
431
|
+
stringbool: (_params?: string | z.core.$ZodStringBoolParams | undefined) => z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<boolean, string>>, z.ZodBoolean>;
|
432
|
+
lt: typeof z.core._lt;
|
433
|
+
lte: typeof z.core._lte;
|
434
|
+
gt: typeof z.core._gt;
|
435
|
+
gte: typeof z.core._gte;
|
436
|
+
positive: typeof z.core._positive;
|
437
|
+
negative: typeof z.core._negative;
|
438
|
+
nonpositive: typeof z.core._nonpositive;
|
439
|
+
nonnegative: typeof z.core._nonnegative;
|
440
|
+
multipleOf: typeof z.core._multipleOf;
|
441
|
+
maxSize: typeof z.core._maxSize;
|
442
|
+
minSize: typeof z.core._minSize;
|
443
|
+
size: typeof z.core._size;
|
444
|
+
maxLength: typeof z.core._maxLength;
|
445
|
+
minLength: typeof z.core._minLength;
|
446
|
+
length: typeof z.core._length;
|
447
|
+
regex: typeof z.core._regex;
|
448
|
+
lowercase: typeof z.core._lowercase;
|
449
|
+
uppercase: typeof z.core._uppercase;
|
450
|
+
includes: typeof z.core._includes;
|
451
|
+
startsWith: typeof z.core._startsWith;
|
452
|
+
endsWith: typeof z.core._endsWith;
|
453
|
+
property: typeof z.core._property;
|
454
|
+
mime: typeof z.core._mime;
|
455
|
+
overwrite: typeof z.core._overwrite;
|
456
|
+
normalize: typeof z.core._normalize;
|
457
|
+
trim: typeof z.core._trim;
|
458
|
+
toLowerCase: typeof z.core._toLowerCase;
|
459
|
+
toUpperCase: typeof z.core._toUpperCase;
|
460
|
+
ZodError: z.core.$constructor<z.ZodError<unknown>, z.core.$ZodIssue[]>;
|
461
|
+
ZodRealError: z.core.$constructor<z.ZodError<unknown>, z.core.$ZodIssue[]>;
|
462
|
+
parse: <T_27 extends z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>(schema: T_27, value: unknown, _ctx?: z.core.ParseContext<z.core.$ZodIssue> | undefined, _params?: {
|
463
|
+
callee?: z.core.util.AnyFunc | undefined;
|
464
|
+
Err?: z.core.$ZodErrorClass | undefined;
|
465
|
+
} | undefined) => z.core.output<T_27>;
|
466
|
+
parseAsync: <T_28 extends z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>(schema: T_28, value: unknown, _ctx?: z.core.ParseContext<z.core.$ZodIssue> | undefined, _params?: {
|
467
|
+
callee?: z.core.util.AnyFunc | undefined;
|
468
|
+
Err?: z.core.$ZodErrorClass | undefined;
|
469
|
+
} | undefined) => Promise<z.core.output<T_28>>;
|
470
|
+
safeParse: <T_29 extends z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>(schema: T_29, value: unknown, _ctx?: z.core.ParseContext<z.core.$ZodIssue> | undefined) => z.ZodSafeParseResult<z.core.output<T_29>>;
|
471
|
+
safeParseAsync: <T_30 extends z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>(schema: T_30, value: unknown, _ctx?: z.core.ParseContext<z.core.$ZodIssue> | undefined) => Promise<z.ZodSafeParseResult<z.core.output<T_30>>>;
|
472
|
+
setErrorMap(map: z.core.$ZodErrorMap<z.core.$ZodIssue>): void;
|
473
|
+
getErrorMap(): z.core.$ZodErrorMap<z.core.$ZodIssue> | undefined;
|
474
|
+
ZodIssueCode: {
|
475
|
+
readonly invalid_type: "invalid_type";
|
476
|
+
readonly too_big: "too_big";
|
477
|
+
readonly too_small: "too_small";
|
478
|
+
readonly invalid_format: "invalid_format";
|
479
|
+
readonly not_multiple_of: "not_multiple_of";
|
480
|
+
readonly unrecognized_keys: "unrecognized_keys";
|
481
|
+
readonly invalid_union: "invalid_union";
|
482
|
+
readonly invalid_key: "invalid_key";
|
483
|
+
readonly invalid_element: "invalid_element";
|
484
|
+
readonly invalid_value: "invalid_value";
|
485
|
+
readonly custom: "custom";
|
486
|
+
};
|
487
|
+
ZodFirstPartyTypeKind: typeof z.ZodFirstPartyTypeKind;
|
488
|
+
};
|
489
|
+
export declare const zExtended: {
|
490
|
+
object: <T extends Readonly<{
|
491
|
+
[k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
492
|
+
}>>(shape: T) => z.ZodObject<{ -readonly [P in keyof T]: T[P]; }, z.core.$strip> & {
|
493
|
+
fieldConfig: <TConfig = BaseFieldConfigOptions>(config: FieldConfigOptions<TConfig>) => z.ZodObject<{ -readonly [P in keyof T]: T[P]; }, z.core.$strip>;
|
494
|
+
};
|
495
|
+
array: <T_1 extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>(element: T_1) => z.ZodArray<T_1> & {
|
496
|
+
fieldConfig: <TConfig_1 = BaseFieldConfigOptions>(config: FieldConfigOptions<TConfig_1>) => z.ZodArray<T_1>;
|
497
|
+
};
|
498
|
+
string: () => z.ZodString & {
|
499
|
+
fieldConfig: <TConfig_2 = BaseFieldConfigOptions>(config: FieldConfigOptions<TConfig_2>) => z.ZodString;
|
500
|
+
};
|
501
|
+
email: () => z.ZodString & {
|
502
|
+
fieldConfig: <TConfig_3 = BaseFieldConfigOptions>(config: FieldConfigOptions<TConfig_3>) => z.ZodString;
|
503
|
+
};
|
504
|
+
number: () => z.ZodNumber & {
|
505
|
+
fieldConfig: <TConfig_4 = BaseFieldConfigOptions>(config: FieldConfigOptions<TConfig_4>) => z.ZodNumber;
|
506
|
+
};
|
507
|
+
boolean: () => z.ZodBoolean & {
|
508
|
+
fieldConfig: <TConfig_5 = BaseFieldConfigOptions>(config: FieldConfigOptions<TConfig_5>) => z.ZodBoolean;
|
509
|
+
};
|
510
|
+
date: () => z.ZodDate & {
|
511
|
+
fieldConfig: <TConfig_6 = BaseFieldConfigOptions>(config: FieldConfigOptions<TConfig_6>) => z.ZodDate;
|
512
|
+
};
|
513
|
+
enum: <T_2 extends [string, ...string[]]>(values: T_2) => z.ZodEnum<{ [k_1 in T_2[number]]: k_1; } extends infer T_3 ? { [k in keyof T_3]: { [k_1 in T_2[number]]: k_1; }[k]; } : never> & {
|
514
|
+
fieldConfig: <TConfig_7 = BaseFieldConfigOptions>(config: FieldConfigOptions<TConfig_7>) => z.ZodEnum<{ [k_1 in T_2[number]]: k_1; } extends infer T_3 ? { [k in keyof T_3]: { [k_1 in T_2[number]]: k_1; }[k]; } : never>;
|
515
|
+
};
|
516
|
+
union: <T_4 extends [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, ...z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>[]]>(types: T_4) => z.ZodUnion<T_4> & {
|
517
|
+
fieldConfig: <TConfig_8 = BaseFieldConfigOptions>(config: FieldConfigOptions<TConfig_8>) => z.ZodUnion<T_4>;
|
518
|
+
};
|
519
|
+
optional: <T_5 extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>(schema: T_5) => z.ZodOptional<T_5>;
|
520
|
+
nullable: <T_6 extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>(schema: T_6) => z.ZodNullable<T_6>;
|
521
|
+
core: typeof z.core;
|
522
|
+
globalRegistry: z.core.$ZodRegistry<z.core.GlobalMeta, z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
523
|
+
registry: typeof z.core.registry;
|
524
|
+
config: typeof z.core.config;
|
525
|
+
function: typeof z.core.function;
|
526
|
+
$output: typeof z.core.$output;
|
527
|
+
$input: typeof z.core.$input;
|
528
|
+
$brand: typeof z.core.$brand;
|
529
|
+
clone: typeof z.core.util.clone;
|
530
|
+
regexes: typeof z.core.regexes;
|
531
|
+
treeifyError: typeof z.core.treeifyError;
|
532
|
+
prettifyError: typeof z.core.prettifyError;
|
533
|
+
formatError: typeof z.core.formatError;
|
534
|
+
flattenError: typeof z.core.flattenError;
|
535
|
+
toJSONSchema: typeof z.core.toJSONSchema;
|
536
|
+
TimePrecision: {
|
537
|
+
readonly Any: null;
|
538
|
+
readonly Minute: -1;
|
539
|
+
readonly Second: 0;
|
540
|
+
readonly Millisecond: 3;
|
541
|
+
readonly Microsecond: 6;
|
542
|
+
};
|
543
|
+
NEVER: never;
|
544
|
+
locales: typeof z.core.locales;
|
545
|
+
ZodISODateTime: z.core.$constructor<z.ZodISODateTime, z.core.$ZodISODateTimeDef>;
|
546
|
+
ZodISODate: z.core.$constructor<z.ZodISODate, z.core.$ZodStringFormatDef<"date">>;
|
547
|
+
ZodISOTime: z.core.$constructor<z.ZodISOTime, z.core.$ZodISOTimeDef>;
|
548
|
+
ZodISODuration: z.core.$constructor<z.ZodISODuration, z.core.$ZodStringFormatDef<"duration">>;
|
549
|
+
iso: typeof z.iso;
|
550
|
+
coerce: typeof z.coerce;
|
551
|
+
guid(params?: string | {
|
552
|
+
abort?: boolean | undefined;
|
553
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
554
|
+
message?: string | undefined;
|
555
|
+
} | undefined): z.ZodGUID;
|
556
|
+
uuid(params?: string | {
|
557
|
+
abort?: boolean | undefined;
|
558
|
+
version?: "v1" | "v2" | "v3" | "v4" | "v5" | "v6" | "v7" | "v8" | undefined;
|
559
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
560
|
+
message?: string | undefined;
|
561
|
+
} | undefined): z.ZodUUID;
|
562
|
+
uuidv4(params?: string | {
|
563
|
+
abort?: boolean | undefined;
|
564
|
+
version?: "v1" | "v2" | "v3" | "v4" | "v5" | "v6" | "v7" | "v8" | undefined;
|
565
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
566
|
+
message?: string | undefined;
|
567
|
+
} | undefined): z.ZodUUID;
|
568
|
+
uuidv6(params?: string | {
|
569
|
+
abort?: boolean | undefined;
|
570
|
+
version?: "v1" | "v2" | "v3" | "v4" | "v5" | "v6" | "v7" | "v8" | undefined;
|
571
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
572
|
+
message?: string | undefined;
|
573
|
+
} | undefined): z.ZodUUID;
|
574
|
+
uuidv7(params?: string | {
|
575
|
+
abort?: boolean | undefined;
|
576
|
+
version?: "v1" | "v2" | "v3" | "v4" | "v5" | "v6" | "v7" | "v8" | undefined;
|
577
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
578
|
+
message?: string | undefined;
|
579
|
+
} | undefined): z.ZodUUID;
|
580
|
+
url(params?: string | {
|
581
|
+
pattern?: RegExp | undefined;
|
582
|
+
abort?: boolean | undefined;
|
583
|
+
normalize?: boolean | undefined;
|
584
|
+
hostname?: RegExp | undefined;
|
585
|
+
protocol?: RegExp | undefined;
|
586
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
587
|
+
message?: string | undefined;
|
588
|
+
} | undefined): z.ZodURL;
|
589
|
+
emoji(params?: string | {
|
590
|
+
pattern?: RegExp | undefined;
|
591
|
+
abort?: boolean | undefined;
|
592
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
593
|
+
message?: string | undefined;
|
594
|
+
} | undefined): z.ZodEmoji;
|
595
|
+
nanoid(params?: string | {
|
596
|
+
pattern?: RegExp | undefined;
|
597
|
+
abort?: boolean | undefined;
|
598
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
599
|
+
message?: string | undefined;
|
600
|
+
} | undefined): z.ZodNanoID;
|
601
|
+
cuid(params?: string | {
|
602
|
+
pattern?: RegExp | undefined;
|
603
|
+
abort?: boolean | undefined;
|
604
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
605
|
+
message?: string | undefined;
|
606
|
+
} | undefined): z.ZodCUID;
|
607
|
+
cuid2(params?: string | {
|
608
|
+
pattern?: RegExp | undefined;
|
609
|
+
abort?: boolean | undefined;
|
610
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
611
|
+
message?: string | undefined;
|
612
|
+
} | undefined): z.ZodCUID2;
|
613
|
+
ulid(params?: string | {
|
614
|
+
pattern?: RegExp | undefined;
|
615
|
+
abort?: boolean | undefined;
|
616
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
617
|
+
message?: string | undefined;
|
618
|
+
} | undefined): z.ZodULID;
|
619
|
+
xid(params?: string | {
|
620
|
+
pattern?: RegExp | undefined;
|
621
|
+
abort?: boolean | undefined;
|
622
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
623
|
+
message?: string | undefined;
|
624
|
+
} | undefined): z.ZodXID;
|
625
|
+
ksuid(params?: string | {
|
626
|
+
pattern?: RegExp | undefined;
|
627
|
+
abort?: boolean | undefined;
|
628
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
629
|
+
message?: string | undefined;
|
630
|
+
} | undefined): z.ZodKSUID;
|
631
|
+
ipv4(params?: string | {
|
632
|
+
abort?: boolean | undefined;
|
633
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
634
|
+
message?: string | undefined;
|
635
|
+
} | undefined): z.ZodIPv4;
|
636
|
+
ipv6(params?: string | {
|
637
|
+
abort?: boolean | undefined;
|
638
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
639
|
+
message?: string | undefined;
|
640
|
+
} | undefined): z.ZodIPv6;
|
641
|
+
cidrv4(params?: string | {
|
642
|
+
abort?: boolean | undefined;
|
643
|
+
version?: "v4" | undefined;
|
644
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
645
|
+
message?: string | undefined;
|
646
|
+
} | undefined): z.ZodCIDRv4;
|
647
|
+
cidrv6(params?: string | {
|
648
|
+
abort?: boolean | undefined;
|
649
|
+
version?: "v6" | undefined;
|
650
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
651
|
+
message?: string | undefined;
|
652
|
+
} | undefined): z.ZodCIDRv6;
|
653
|
+
base64(params?: string | {
|
654
|
+
abort?: boolean | undefined;
|
655
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
656
|
+
message?: string | undefined;
|
657
|
+
} | undefined): z.ZodBase64;
|
658
|
+
base64url(params?: string | {
|
659
|
+
abort?: boolean | undefined;
|
660
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
661
|
+
message?: string | undefined;
|
662
|
+
} | undefined): z.ZodBase64URL;
|
663
|
+
e164(params?: string | {
|
664
|
+
pattern?: RegExp | undefined;
|
665
|
+
abort?: boolean | undefined;
|
666
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
667
|
+
message?: string | undefined;
|
668
|
+
} | undefined): z.ZodE164;
|
669
|
+
jwt(params?: string | {
|
670
|
+
abort?: boolean | undefined;
|
671
|
+
alg?: z.core.util.JWTAlgorithm | undefined;
|
672
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
673
|
+
message?: string | undefined;
|
674
|
+
} | undefined): z.ZodJWT;
|
675
|
+
stringFormat<Format extends string>(format: Format, fnOrRegex: RegExp | ((arg: string) => unknown), _params?: string | {
|
676
|
+
abort?: boolean | undefined;
|
677
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
678
|
+
message?: string | undefined;
|
679
|
+
} | undefined): z.ZodCustomStringFormat<Format>;
|
680
|
+
hostname(_params?: string | {
|
681
|
+
abort?: boolean | undefined;
|
682
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidStringFormat | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
683
|
+
message?: string | undefined;
|
684
|
+
} | undefined): z.ZodCustomStringFormat<"hostname">;
|
685
|
+
int(params?: string | {
|
686
|
+
abort?: boolean | undefined;
|
687
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidType<unknown> | z.core.$ZodIssueTooBig<"number"> | z.core.$ZodIssueTooSmall<"number">>> | undefined;
|
688
|
+
message?: string | undefined;
|
689
|
+
} | undefined): z.ZodInt;
|
690
|
+
float32(params?: string | {
|
691
|
+
abort?: boolean | undefined;
|
692
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidType<unknown> | z.core.$ZodIssueTooBig<"number"> | z.core.$ZodIssueTooSmall<"number">>> | undefined;
|
693
|
+
message?: string | undefined;
|
694
|
+
} | undefined): z.ZodFloat32;
|
695
|
+
float64(params?: string | {
|
696
|
+
abort?: boolean | undefined;
|
697
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidType<unknown> | z.core.$ZodIssueTooBig<"number"> | z.core.$ZodIssueTooSmall<"number">>> | undefined;
|
698
|
+
message?: string | undefined;
|
699
|
+
} | undefined): z.ZodFloat64;
|
700
|
+
int32(params?: string | {
|
701
|
+
abort?: boolean | undefined;
|
702
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidType<unknown> | z.core.$ZodIssueTooBig<"number"> | z.core.$ZodIssueTooSmall<"number">>> | undefined;
|
703
|
+
message?: string | undefined;
|
704
|
+
} | undefined): z.ZodInt32;
|
705
|
+
uint32(params?: string | {
|
706
|
+
abort?: boolean | undefined;
|
707
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidType<unknown> | z.core.$ZodIssueTooBig<"number"> | z.core.$ZodIssueTooSmall<"number">>> | undefined;
|
708
|
+
message?: string | undefined;
|
709
|
+
} | undefined): z.ZodUInt32;
|
710
|
+
bigint(params?: string | {
|
711
|
+
coerce?: boolean | undefined;
|
712
|
+
error?: string | z.core.$ZodErrorMap<z.core.$ZodIssueInvalidType<unknown>> | undefined;
|
713
|
+
message?: string | undefined;
|
714
|
+
} | undefined): z.ZodBigInt;
|
715
|
+
int64(params?: string | {
|
716
|
+
abort?: boolean | undefined;
|
717
|
+
when?: ((payload: z.core.ParsePayload<unknown>) => boolean) | undefined;
|
718
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidType<unknown> | z.core.$ZodIssueTooBig<"bigint"> | z.core.$ZodIssueTooSmall<"bigint">>> | undefined;
|
719
|
+
message?: string | undefined;
|
720
|
+
} | undefined): z.ZodBigIntFormat;
|
721
|
+
uint64(params?: string | {
|
722
|
+
abort?: boolean | undefined;
|
723
|
+
when?: ((payload: z.core.ParsePayload<unknown>) => boolean) | undefined;
|
724
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidType<unknown> | z.core.$ZodIssueTooBig<"bigint"> | z.core.$ZodIssueTooSmall<"bigint">>> | undefined;
|
725
|
+
message?: string | undefined;
|
726
|
+
} | undefined): z.ZodBigIntFormat;
|
727
|
+
symbol(params?: string | {
|
728
|
+
error?: string | z.core.$ZodErrorMap<z.core.$ZodIssueInvalidType<unknown>> | undefined;
|
729
|
+
message?: string | undefined;
|
730
|
+
} | undefined): z.ZodSymbol;
|
731
|
+
any(): z.ZodAny;
|
732
|
+
unknown(): z.ZodUnknown;
|
733
|
+
never(params?: string | {
|
734
|
+
error?: string | z.core.$ZodErrorMap<z.core.$ZodIssueInvalidType<unknown>> | undefined;
|
735
|
+
message?: string | undefined;
|
736
|
+
} | undefined): z.ZodNever;
|
737
|
+
keyof<T_7 extends z.ZodObject<z.core.$ZodLooseShape, z.core.$strip>>(schema: T_7): z.ZodEnum<{ [k_3 in Exclude<keyof T_7["_zod"]["output"], symbol>]: k_3; } extends infer T_8 ? { [k_2 in keyof T_8]: { [k_3 in Exclude<keyof T_7["_zod"]["output"], symbol>]: k_3; }[k_2]; } : never>;
|
738
|
+
strictObject<T_9 extends z.core.$ZodLooseShape>(shape: T_9, params?: string | {
|
739
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueUnrecognizedKeys | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
740
|
+
message?: string | undefined;
|
741
|
+
} | undefined): z.ZodObject<T_9, z.core.$strict>;
|
742
|
+
looseObject<T_10 extends z.core.$ZodLooseShape>(shape: T_10, params?: string | {
|
743
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueUnrecognizedKeys | z.core.$ZodIssueInvalidType<unknown>>> | undefined;
|
744
|
+
message?: string | undefined;
|
745
|
+
} | undefined): z.ZodObject<T_10, z.core.$loose>;
|
746
|
+
discriminatedUnion<Types extends readonly [z.core.$ZodTypeDiscriminable, ...z.core.$ZodTypeDiscriminable[]], Disc extends string>(discriminator: Disc, options: Types, params?: string | {
|
747
|
+
unionFallback?: boolean | undefined;
|
748
|
+
error?: string | z.core.$ZodErrorMap<z.core.$ZodIssueInvalidUnion> | undefined;
|
749
|
+
message?: string | undefined;
|
750
|
+
} | undefined): z.ZodDiscriminatedUnion<Types, Disc>;
|
751
|
+
intersection<T_11 extends z.core.SomeType, U extends z.core.SomeType>(left: T_11, right: U): z.ZodIntersection<T_11, U>;
|
752
|
+
tuple<T_12 extends readonly [z.core.SomeType, ...z.core.SomeType[]]>(items: T_12, params?: string | {
|
753
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidType<unknown> | z.core.$ZodIssueTooBig<unknown[]> | z.core.$ZodIssueTooSmall<unknown[]>>> | undefined;
|
754
|
+
message?: string | undefined;
|
755
|
+
} | undefined): z.ZodTuple<T_12, null>;
|
756
|
+
tuple<T_13 extends readonly [z.core.SomeType, ...z.core.SomeType[]], Rest extends z.core.SomeType>(items: T_13, rest: Rest, params?: string | {
|
757
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidType<unknown> | z.core.$ZodIssueTooBig<unknown[]> | z.core.$ZodIssueTooSmall<unknown[]>>> | undefined;
|
758
|
+
message?: string | undefined;
|
759
|
+
} | undefined): z.ZodTuple<T_13, Rest>;
|
760
|
+
tuple(items: [], params?: string | {
|
761
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidType<unknown> | z.core.$ZodIssueTooBig<unknown[]> | z.core.$ZodIssueTooSmall<unknown[]>>> | undefined;
|
762
|
+
message?: string | undefined;
|
763
|
+
} | undefined): z.ZodTuple<[], null>;
|
764
|
+
record<Key extends z.core.$ZodRecordKey, Value extends z.core.SomeType>(keyType: Key, valueType: Value, params?: string | {
|
765
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidType<unknown> | z.core.$ZodIssueInvalidKey<Record<PropertyKey, unknown>>>> | undefined;
|
766
|
+
message?: string | undefined;
|
767
|
+
} | undefined): z.ZodRecord<Key, Value>;
|
768
|
+
partialRecord<Key_1 extends z.core.$ZodRecordKey, Value_1 extends z.core.SomeType>(keyType: Key_1, valueType: Value_1, params?: string | {
|
769
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidType<unknown> | z.core.$ZodIssueInvalidKey<Record<PropertyKey, unknown>>>> | undefined;
|
770
|
+
message?: string | undefined;
|
771
|
+
} | undefined): z.ZodRecord<Key_1 & z.core.$partial, Value_1>;
|
772
|
+
map<Key_2 extends z.core.SomeType, Value_2 extends z.core.SomeType>(keyType: Key_2, valueType: Value_2, params?: string | {
|
773
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssueInvalidType<unknown> | z.core.$ZodIssueInvalidKey<unknown> | z.core.$ZodIssueInvalidElement<unknown>>> | undefined;
|
774
|
+
message?: string | undefined;
|
775
|
+
} | undefined): z.ZodMap<Key_2, Value_2>;
|
776
|
+
set<Value_3 extends z.core.SomeType>(valueType: Value_3, params?: string | {
|
777
|
+
error?: string | z.core.$ZodErrorMap<z.core.$ZodIssueInvalidType<unknown>> | undefined;
|
778
|
+
message?: string | undefined;
|
779
|
+
} | undefined): z.ZodSet<Value_3>;
|
780
|
+
nativeEnum<T_14 extends Readonly<Record<string, z.core.util.EnumValue>>>(entries: T_14, params?: string | {
|
781
|
+
error?: string | z.core.$ZodErrorMap<z.core.$ZodIssueInvalidValue<unknown>> | undefined;
|
782
|
+
message?: string | undefined;
|
783
|
+
} | undefined): z.ZodEnum<T_14>;
|
784
|
+
literal<const T_15 extends readonly z.core.util.Literal[]>(value: T_15, params?: string | {
|
785
|
+
error?: string | z.core.$ZodErrorMap<z.core.$ZodIssueInvalidValue<unknown>> | undefined;
|
786
|
+
message?: string | undefined;
|
787
|
+
} | undefined): z.ZodLiteral<T_15[number]>;
|
788
|
+
literal<const T_16 extends z.core.util.Literal>(value: T_16, params?: string | {
|
789
|
+
error?: string | z.core.$ZodErrorMap<z.core.$ZodIssueInvalidValue<unknown>> | undefined;
|
790
|
+
message?: string | undefined;
|
791
|
+
} | undefined): z.ZodLiteral<T_16>;
|
792
|
+
file(params?: string | {
|
793
|
+
error?: string | z.core.$ZodErrorMap<z.core.$ZodIssueInvalidType<unknown>> | undefined;
|
794
|
+
message?: string | undefined;
|
795
|
+
} | undefined): z.ZodFile;
|
796
|
+
transform<I = unknown, O = I>(fn: (input: I, ctx: z.core.ParsePayload<unknown>) => O): z.ZodTransform<Awaited<O>, I>;
|
797
|
+
nullish<T_17 extends z.core.SomeType>(innerType: T_17): z.ZodOptional<z.ZodNullable<T_17>>;
|
798
|
+
_default<T_18 extends z.core.SomeType>(innerType: T_18, defaultValue: z.core.util.NoUndefined<z.core.output<T_18>> | (() => z.core.util.NoUndefined<z.core.output<T_18>>)): z.ZodDefault<T_18>;
|
799
|
+
prefault<T_19 extends z.core.SomeType>(innerType: T_19, defaultValue: z.core.input<T_19> | (() => z.core.input<T_19>)): z.ZodPrefault<T_19>;
|
800
|
+
nonoptional<T_20 extends z.core.SomeType>(innerType: T_20, params?: string | {
|
801
|
+
error?: string | z.core.$ZodErrorMap<z.core.$ZodIssueInvalidType<unknown>> | undefined;
|
802
|
+
message?: string | undefined;
|
803
|
+
} | undefined): z.ZodNonOptional<T_20>;
|
804
|
+
success<T_21 extends z.core.SomeType>(innerType: T_21): z.ZodSuccess<T_21>;
|
805
|
+
nan(params?: string | {
|
806
|
+
error?: string | z.core.$ZodErrorMap<z.core.$ZodIssueInvalidType<unknown>> | undefined;
|
807
|
+
message?: string | undefined;
|
808
|
+
} | undefined): z.ZodNaN;
|
809
|
+
pipe<const A extends z.core.SomeType, B extends z.core.$ZodType<unknown, z.core.output<A>, z.core.$ZodTypeInternals<unknown, z.core.output<A>>> = z.core.$ZodType<unknown, z.core.output<A>, z.core.$ZodTypeInternals<unknown, z.core.output<A>>>>(in_: A, out: B | z.core.$ZodType<unknown, z.core.output<A>, z.core.$ZodTypeInternals<unknown, z.core.output<A>>>): z.ZodPipe<A, B>;
|
810
|
+
readonly<T_22 extends z.core.SomeType>(innerType: T_22): z.ZodReadonly<T_22>;
|
811
|
+
templateLiteral<const Parts extends z.core.$ZodTemplateLiteralPart[]>(parts: Parts, params?: string | {
|
812
|
+
format?: string | undefined;
|
813
|
+
error?: string | z.core.$ZodErrorMap<z.core.$ZodIssueInvalidType<unknown>> | undefined;
|
814
|
+
message?: string | undefined;
|
815
|
+
} | undefined): z.ZodTemplateLiteral<z.core.$PartsToTemplateLiteral<Parts>>;
|
816
|
+
lazy<T_23 extends z.core.SomeType>(getter: () => T_23): z.ZodLazy<T_23>;
|
817
|
+
promise<T_24 extends z.core.SomeType>(innerType: T_24): z.ZodPromise<T_24>;
|
818
|
+
check<O_1 = unknown>(fn: z.core.CheckFn<O_1>): z.core.$ZodCheck<O_1>;
|
819
|
+
custom<O_2>(fn?: ((data: unknown) => unknown) | undefined, _params?: string | {
|
820
|
+
path?: PropertyKey[] | undefined;
|
821
|
+
params?: Record<string, any> | undefined;
|
822
|
+
abort?: boolean | undefined;
|
823
|
+
when?: ((payload: z.core.ParsePayload<unknown>) => boolean) | undefined;
|
824
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssue>> | undefined;
|
825
|
+
message?: string | undefined;
|
826
|
+
} | undefined): z.ZodCustom<O_2, O_2>;
|
827
|
+
refine<T_25>(fn: (arg: NoInfer<T_25>) => unknown, _params?: string | {
|
828
|
+
path?: PropertyKey[] | undefined;
|
829
|
+
params?: Record<string, any> | undefined;
|
830
|
+
abort?: boolean | undefined;
|
831
|
+
when?: ((payload: z.core.ParsePayload<unknown>) => boolean) | undefined;
|
832
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssue>> | undefined;
|
833
|
+
message?: string | undefined;
|
834
|
+
} | undefined): z.core.$ZodCheck<T_25>;
|
835
|
+
superRefine<T_26>(fn: (arg: T_26, payload: z.core.$RefinementCtx<T_26>) => void | Promise<void>): z.core.$ZodCheck<T_26>;
|
836
|
+
json(params?: string | {
|
837
|
+
path?: PropertyKey[] | undefined;
|
838
|
+
params?: Record<string, any> | undefined;
|
839
|
+
abort?: boolean | undefined;
|
840
|
+
when?: ((payload: z.core.ParsePayload<unknown>) => boolean) | undefined;
|
841
|
+
error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssue>> | undefined;
|
842
|
+
message?: string | undefined;
|
843
|
+
} | undefined): z.ZodJSONSchema;
|
844
|
+
preprocess<A_1, U_1 extends z.core.SomeType, B_1 = unknown>(fn: (arg: B_1, ctx: z.core.$RefinementCtx<unknown>) => A_1, schema: U_1): z.ZodPipe<z.ZodTransform<A_1, B_1>, U_1>;
|
845
|
+
ZodType: z.core.$constructor<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.core.$ZodTypeDef>;
|
846
|
+
_ZodString: z.core.$constructor<z._ZodString<z.core.$ZodStringInternals<unknown>>, z.core.$ZodStringDef>;
|
847
|
+
ZodString: z.core.$constructor<z.ZodString, z.core.$ZodStringDef>;
|
848
|
+
ZodStringFormat: z.core.$constructor<z.ZodStringFormat<string>, z.core.$ZodStringFormatDef<string>>;
|
849
|
+
ZodEmail: z.core.$constructor<z.ZodEmail, z.core.$ZodStringFormatDef<"email">>;
|
850
|
+
ZodGUID: z.core.$constructor<z.ZodGUID, z.core.$ZodStringFormatDef<"guid">>;
|
851
|
+
ZodUUID: z.core.$constructor<z.ZodUUID, z.core.$ZodUUIDDef>;
|
852
|
+
ZodURL: z.core.$constructor<z.ZodURL, z.core.$ZodURLDef>;
|
853
|
+
ZodEmoji: z.core.$constructor<z.ZodEmoji, z.core.$ZodStringFormatDef<"emoji">>;
|
854
|
+
ZodNanoID: z.core.$constructor<z.ZodNanoID, z.core.$ZodStringFormatDef<"nanoid">>;
|
855
|
+
ZodCUID: z.core.$constructor<z.ZodCUID, z.core.$ZodStringFormatDef<"cuid">>;
|
856
|
+
ZodCUID2: z.core.$constructor<z.ZodCUID2, z.core.$ZodStringFormatDef<"cuid2">>;
|
857
|
+
ZodULID: z.core.$constructor<z.ZodULID, z.core.$ZodStringFormatDef<"ulid">>;
|
858
|
+
ZodXID: z.core.$constructor<z.ZodXID, z.core.$ZodStringFormatDef<"xid">>;
|
859
|
+
ZodKSUID: z.core.$constructor<z.ZodKSUID, z.core.$ZodStringFormatDef<"ksuid">>;
|
860
|
+
ZodIPv4: z.core.$constructor<z.ZodIPv4, z.core.$ZodIPv4Def>;
|
861
|
+
ZodIPv6: z.core.$constructor<z.ZodIPv6, z.core.$ZodIPv6Def>;
|
862
|
+
ZodCIDRv4: z.core.$constructor<z.ZodCIDRv4, z.core.$ZodCIDRv4Def>;
|
863
|
+
ZodCIDRv6: z.core.$constructor<z.ZodCIDRv6, z.core.$ZodCIDRv6Def>;
|
864
|
+
ZodBase64: z.core.$constructor<z.ZodBase64, z.core.$ZodStringFormatDef<"base64">>;
|
865
|
+
ZodBase64URL: z.core.$constructor<z.ZodBase64URL, z.core.$ZodStringFormatDef<"base64url">>;
|
866
|
+
ZodE164: z.core.$constructor<z.ZodE164, z.core.$ZodStringFormatDef<"e164">>;
|
867
|
+
ZodJWT: z.core.$constructor<z.ZodJWT, z.core.$ZodJWTDef>;
|
868
|
+
ZodCustomStringFormat: z.core.$constructor<z.ZodCustomStringFormat<string>, z.core.$ZodCustomStringFormatDef<string>>;
|
869
|
+
ZodNumber: z.core.$constructor<z.ZodNumber, z.core.$ZodNumberDef>;
|
870
|
+
ZodNumberFormat: z.core.$constructor<z.ZodNumberFormat, z.core.$ZodNumberFormatDef>;
|
871
|
+
ZodBoolean: z.core.$constructor<z.ZodBoolean, z.core.$ZodBooleanDef>;
|
872
|
+
ZodBigInt: z.core.$constructor<z.ZodBigInt, z.core.$ZodBigIntDef>;
|
873
|
+
ZodBigIntFormat: z.core.$constructor<z.ZodBigIntFormat, z.core.$ZodBigIntFormatDef>;
|
874
|
+
ZodSymbol: z.core.$constructor<z.ZodSymbol, z.core.$ZodSymbolDef>;
|
875
|
+
ZodUndefined: z.core.$constructor<z.ZodUndefined, z.core.$ZodUndefinedDef>;
|
876
|
+
undefined: typeof z.undefined;
|
877
|
+
ZodNull: z.core.$constructor<z.ZodNull, z.core.$ZodNullDef>;
|
878
|
+
null: typeof z.null;
|
879
|
+
ZodAny: z.core.$constructor<z.ZodAny, z.core.$ZodAnyDef>;
|
880
|
+
ZodUnknown: z.core.$constructor<z.ZodUnknown, z.core.$ZodUnknownDef>;
|
881
|
+
ZodNever: z.core.$constructor<z.ZodNever, z.core.$ZodNeverDef>;
|
882
|
+
ZodVoid: z.core.$constructor<z.ZodVoid, z.core.$ZodVoidDef>;
|
883
|
+
void: typeof z.void;
|
884
|
+
ZodDate: z.core.$constructor<z.ZodDate, z.core.$ZodDateDef>;
|
885
|
+
ZodArray: z.core.$constructor<z.ZodArray<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodArrayDef<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
886
|
+
ZodObject: z.core.$constructor<z.ZodObject<z.core.$ZodLooseShape, z.core.$strip>, z.core.$ZodObjectDef<z.core.$ZodLooseShape>>;
|
887
|
+
ZodUnion: z.core.$constructor<z.ZodUnion<readonly z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>[]>, z.core.$ZodUnionDef<readonly z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>[]>>;
|
888
|
+
ZodDiscriminatedUnion: z.core.$constructor<z.ZodDiscriminatedUnion<readonly z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>[], string>, z.core.$ZodDiscriminatedUnionDef<readonly z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>[], string>>;
|
889
|
+
ZodIntersection: z.core.$constructor<z.ZodIntersection<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodIntersectionDef<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
890
|
+
ZodTuple: z.core.$constructor<z.ZodTuple<readonly z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>[], z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | null>, z.core.$ZodTupleDef<readonly z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>[], z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | null>>;
|
891
|
+
ZodRecord: z.core.$constructor<z.ZodRecord<z.core.$ZodRecordKey, z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodRecordDef<z.core.$ZodRecordKey, z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
892
|
+
ZodMap: z.core.$constructor<z.ZodMap<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodMapDef<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
893
|
+
ZodSet: z.core.$constructor<z.ZodSet<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodSetDef<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
894
|
+
ZodEnum: z.core.$constructor<z.ZodEnum<Readonly<Record<string, z.core.util.EnumValue>>>, z.core.$ZodEnumDef<Readonly<Record<string, z.core.util.EnumValue>>>>;
|
895
|
+
ZodLiteral: z.core.$constructor<z.ZodLiteral<z.core.util.Literal>, z.core.$ZodLiteralDef<z.core.util.Literal>>;
|
896
|
+
ZodFile: z.core.$constructor<z.ZodFile, z.core.$ZodFileDef>;
|
897
|
+
ZodTransform: z.core.$constructor<z.ZodTransform<unknown, unknown>, z.core.$ZodTransformDef>;
|
898
|
+
ZodOptional: z.core.$constructor<z.ZodOptional<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodOptionalDef<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
899
|
+
ZodNullable: z.core.$constructor<z.ZodNullable<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodNullableDef<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
900
|
+
ZodDefault: z.core.$constructor<z.ZodDefault<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodDefaultDef<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
901
|
+
ZodPrefault: z.core.$constructor<z.ZodPrefault<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodPrefaultDef<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
902
|
+
ZodNonOptional: z.core.$constructor<z.ZodNonOptional<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodNonOptionalDef<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
903
|
+
ZodSuccess: z.core.$constructor<z.ZodSuccess<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodSuccessDef<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
904
|
+
ZodCatch: z.core.$constructor<z.ZodCatch<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodCatchDef<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
905
|
+
catch: typeof z.catch;
|
906
|
+
ZodNaN: z.core.$constructor<z.ZodNaN, z.core.$ZodNaNDef>;
|
907
|
+
ZodPipe: z.core.$constructor<z.ZodPipe<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodPipeDef<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
908
|
+
ZodReadonly: z.core.$constructor<z.ZodReadonly<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodReadonlyDef<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
909
|
+
ZodTemplateLiteral: z.core.$constructor<z.ZodTemplateLiteral<string>, z.core.$ZodTemplateLiteralDef>;
|
910
|
+
ZodLazy: z.core.$constructor<z.ZodLazy<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodLazyDef<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
911
|
+
ZodPromise: z.core.$constructor<z.ZodPromise<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodPromiseDef<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
912
|
+
ZodCustom: z.core.$constructor<z.ZodCustom<unknown, unknown>, z.core.$ZodCustomDef<unknown>>;
|
913
|
+
instanceof: typeof z.instanceof;
|
914
|
+
stringbool: (_params?: string | z.core.$ZodStringBoolParams | undefined) => z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<boolean, string>>, z.ZodBoolean>;
|
915
|
+
lt: typeof z.core._lt;
|
916
|
+
lte: typeof z.core._lte;
|
917
|
+
gt: typeof z.core._gt;
|
918
|
+
gte: typeof z.core._gte;
|
919
|
+
positive: typeof z.core._positive;
|
920
|
+
negative: typeof z.core._negative;
|
921
|
+
nonpositive: typeof z.core._nonpositive;
|
922
|
+
nonnegative: typeof z.core._nonnegative;
|
923
|
+
multipleOf: typeof z.core._multipleOf;
|
924
|
+
maxSize: typeof z.core._maxSize;
|
925
|
+
minSize: typeof z.core._minSize;
|
926
|
+
size: typeof z.core._size;
|
927
|
+
maxLength: typeof z.core._maxLength;
|
928
|
+
minLength: typeof z.core._minLength;
|
929
|
+
length: typeof z.core._length;
|
930
|
+
regex: typeof z.core._regex;
|
931
|
+
lowercase: typeof z.core._lowercase;
|
932
|
+
uppercase: typeof z.core._uppercase;
|
933
|
+
includes: typeof z.core._includes;
|
934
|
+
startsWith: typeof z.core._startsWith;
|
935
|
+
endsWith: typeof z.core._endsWith;
|
936
|
+
property: typeof z.core._property;
|
937
|
+
mime: typeof z.core._mime;
|
938
|
+
overwrite: typeof z.core._overwrite;
|
939
|
+
normalize: typeof z.core._normalize;
|
940
|
+
trim: typeof z.core._trim;
|
941
|
+
toLowerCase: typeof z.core._toLowerCase;
|
942
|
+
toUpperCase: typeof z.core._toUpperCase;
|
943
|
+
ZodError: z.core.$constructor<z.ZodError<unknown>, z.core.$ZodIssue[]>;
|
944
|
+
ZodRealError: z.core.$constructor<z.ZodError<unknown>, z.core.$ZodIssue[]>;
|
945
|
+
parse: <T_27 extends z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>(schema: T_27, value: unknown, _ctx?: z.core.ParseContext<z.core.$ZodIssue> | undefined, _params?: {
|
946
|
+
callee?: z.core.util.AnyFunc | undefined;
|
947
|
+
Err?: z.core.$ZodErrorClass | undefined;
|
948
|
+
} | undefined) => z.core.output<T_27>;
|
949
|
+
parseAsync: <T_28 extends z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>(schema: T_28, value: unknown, _ctx?: z.core.ParseContext<z.core.$ZodIssue> | undefined, _params?: {
|
950
|
+
callee?: z.core.util.AnyFunc | undefined;
|
951
|
+
Err?: z.core.$ZodErrorClass | undefined;
|
952
|
+
} | undefined) => Promise<z.core.output<T_28>>;
|
953
|
+
safeParse: <T_29 extends z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>(schema: T_29, value: unknown, _ctx?: z.core.ParseContext<z.core.$ZodIssue> | undefined) => z.ZodSafeParseResult<z.core.output<T_29>>;
|
954
|
+
safeParseAsync: <T_30 extends z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>(schema: T_30, value: unknown, _ctx?: z.core.ParseContext<z.core.$ZodIssue> | undefined) => Promise<z.ZodSafeParseResult<z.core.output<T_30>>>;
|
955
|
+
setErrorMap(map: z.core.$ZodErrorMap<z.core.$ZodIssue>): void;
|
956
|
+
getErrorMap(): z.core.$ZodErrorMap<z.core.$ZodIssue> | undefined;
|
957
|
+
ZodIssueCode: {
|
958
|
+
readonly invalid_type: "invalid_type";
|
959
|
+
readonly too_big: "too_big";
|
960
|
+
readonly too_small: "too_small";
|
961
|
+
readonly invalid_format: "invalid_format";
|
962
|
+
readonly not_multiple_of: "not_multiple_of";
|
963
|
+
readonly unrecognized_keys: "unrecognized_keys";
|
964
|
+
readonly invalid_union: "invalid_union";
|
965
|
+
readonly invalid_key: "invalid_key";
|
966
|
+
readonly invalid_element: "invalid_element";
|
967
|
+
readonly invalid_value: "invalid_value";
|
968
|
+
readonly custom: "custom";
|
969
|
+
};
|
970
|
+
ZodFirstPartyTypeKind: typeof z.ZodFirstPartyTypeKind;
|
971
|
+
};
|
972
|
+
export { zExtended as z };
|
973
|
+
export declare function getFieldConfig<T = BaseFieldConfigOptions>(schema: z.ZodTypeAny): FieldConfigOptions<T> | undefined;
|
974
|
+
export declare function setFieldConfig<T = BaseFieldConfigOptions>(schema: z.ZodTypeAny, config: FieldConfigOptions<T>): z.ZodTypeAny;
|