@miroir-framework/jzod-ts 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,397 +1,397 @@
1
- import { ZodType, z } from "zod";
2
- declare const jzodRootSchema: z.ZodObject<{
3
- optional: z.ZodOptional<z.ZodBoolean>;
4
- }, "strict", z.ZodTypeAny, {
5
- optional?: boolean | undefined;
6
- }, {
7
- optional?: boolean | undefined;
8
- }>;
9
- type JzodRoot = z.infer<typeof jzodRootSchema>;
10
- export declare const jzodEnumAttributeTypesSchema: z.ZodEnum<["any", "bigint", "boolean", "date", "never", "null", "number", "string", "uuid", "undefined", "unknown", "void"]>;
11
- export type JzodEnumTypes = z.infer<typeof jzodEnumAttributeTypesSchema>;
12
- export declare const jzodEnumElementTypesSchema: z.ZodEnum<["array", "enum", "function", "lazy", "literal", "intersection", "map", "object", "promise", "record", "schemaReference", "set", "simpleType", "tuple", "union"]>;
13
- export type JzodEnumElementTypes = z.infer<typeof jzodEnumElementTypesSchema>;
14
- export interface JzodArray extends JzodRoot {
15
- optional?: boolean;
16
- nullable?: boolean;
17
- extra?: {
18
- [k: string]: any;
19
- };
20
- type: 'array';
21
- definition: JzodElement;
22
- }
23
- export declare const jzodArraySchema: z.ZodType<JzodArray>;
24
- export declare const jzodAttributeDateValidationsSchema: z.ZodObject<{
25
- extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
26
- type: z.ZodEnum<["min", "max"]>;
27
- parameter: z.ZodAny;
28
- }, "strict", z.ZodTypeAny, {
29
- type: "min" | "max";
30
- extra?: Record<string, any> | undefined;
31
- parameter?: any;
32
- }, {
33
- type: "min" | "max";
34
- extra?: Record<string, any> | undefined;
35
- parameter?: any;
36
- }>;
37
- export type JzodAttributeDateValidations = z.infer<typeof jzodAttributeDateValidationsSchema>;
38
- export declare const jzodAttributeNumberValidationsSchema: z.ZodObject<{
39
- extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
40
- type: z.ZodEnum<["gt", "gte", "lt", "lte", "int", "positive", "nonpositive", "negative", "nonnegative", "multipleOf", "finite", "safe"]>;
41
- parameter: z.ZodAny;
42
- }, "strict", z.ZodTypeAny, {
43
- type: "multipleOf" | "gt" | "gte" | "lt" | "lte" | "int" | "positive" | "nonpositive" | "negative" | "nonnegative" | "finite" | "safe";
44
- extra?: Record<string, any> | undefined;
45
- parameter?: any;
46
- }, {
47
- type: "multipleOf" | "gt" | "gte" | "lt" | "lte" | "int" | "positive" | "nonpositive" | "negative" | "nonnegative" | "finite" | "safe";
48
- extra?: Record<string, any> | undefined;
49
- parameter?: any;
50
- }>;
51
- export type JzodAttributeNumberValidations = z.infer<typeof jzodAttributeNumberValidationsSchema>;
52
- export declare const jzodAttributeStringValidationsSchema: z.ZodObject<{
53
- extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
54
- type: z.ZodEnum<["max", "min", "length", "email", "url", "emoji", "uuid", "cuid", "cuid2", "ulid", "regex", "includes", "startsWith", "endsWith", "datetime", "ip"]>;
55
- parameter: z.ZodAny;
56
- }, "strict", z.ZodTypeAny, {
57
- type: "length" | "includes" | "uuid" | "min" | "max" | "email" | "url" | "emoji" | "cuid" | "cuid2" | "ulid" | "regex" | "startsWith" | "endsWith" | "datetime" | "ip";
58
- extra?: Record<string, any> | undefined;
59
- parameter?: any;
60
- }, {
61
- type: "length" | "includes" | "uuid" | "min" | "max" | "email" | "url" | "emoji" | "cuid" | "cuid2" | "ulid" | "regex" | "startsWith" | "endsWith" | "datetime" | "ip";
62
- extra?: Record<string, any> | undefined;
63
- parameter?: any;
64
- }>;
65
- export type JzodAttributeStringValidations = z.infer<typeof jzodAttributeStringValidationsSchema>;
66
- export declare const jzodAttributeDateWithValidationsSchema: z.ZodObject<{
67
- optional: z.ZodOptional<z.ZodBoolean>;
68
- nullable: z.ZodOptional<z.ZodBoolean>;
69
- extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
70
- coerce: z.ZodOptional<z.ZodBoolean>;
71
- type: z.ZodLiteral<"simpleType">;
72
- definition: z.ZodLiteral<"date">;
73
- validations: z.ZodArray<z.ZodObject<{
74
- extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
75
- type: z.ZodEnum<["min", "max"]>;
76
- parameter: z.ZodAny;
77
- }, "strict", z.ZodTypeAny, {
78
- type: "min" | "max";
79
- extra?: Record<string, any> | undefined;
80
- parameter?: any;
81
- }, {
82
- type: "min" | "max";
83
- extra?: Record<string, any> | undefined;
84
- parameter?: any;
85
- }>, "many">;
86
- }, "strict", z.ZodTypeAny, {
87
- type: "simpleType";
88
- definition: "date";
89
- validations: {
90
- type: "min" | "max";
91
- extra?: Record<string, any> | undefined;
92
- parameter?: any;
93
- }[];
94
- optional?: boolean | undefined;
95
- nullable?: boolean | undefined;
96
- extra?: Record<string, any> | undefined;
97
- coerce?: boolean | undefined;
98
- }, {
99
- type: "simpleType";
100
- definition: "date";
101
- validations: {
102
- type: "min" | "max";
103
- extra?: Record<string, any> | undefined;
104
- parameter?: any;
105
- }[];
106
- optional?: boolean | undefined;
107
- nullable?: boolean | undefined;
108
- extra?: Record<string, any> | undefined;
109
- coerce?: boolean | undefined;
110
- }>;
111
- export type JzodAttributeDateWithValidations = z.infer<typeof jzodAttributeDateWithValidationsSchema>;
112
- export declare const jzodAttributeNumberWithValidationsSchema: z.ZodObject<{
113
- optional: z.ZodOptional<z.ZodBoolean>;
114
- nullable: z.ZodOptional<z.ZodBoolean>;
115
- extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
116
- coerce: z.ZodOptional<z.ZodBoolean>;
117
- type: z.ZodLiteral<"simpleType">;
118
- definition: z.ZodLiteral<"number">;
119
- validations: z.ZodArray<z.ZodObject<{
120
- extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
121
- type: z.ZodEnum<["gt", "gte", "lt", "lte", "int", "positive", "nonpositive", "negative", "nonnegative", "multipleOf", "finite", "safe"]>;
122
- parameter: z.ZodAny;
123
- }, "strict", z.ZodTypeAny, {
124
- type: "multipleOf" | "gt" | "gte" | "lt" | "lte" | "int" | "positive" | "nonpositive" | "negative" | "nonnegative" | "finite" | "safe";
125
- extra?: Record<string, any> | undefined;
126
- parameter?: any;
127
- }, {
128
- type: "multipleOf" | "gt" | "gte" | "lt" | "lte" | "int" | "positive" | "nonpositive" | "negative" | "nonnegative" | "finite" | "safe";
129
- extra?: Record<string, any> | undefined;
130
- parameter?: any;
131
- }>, "many">;
132
- }, "strict", z.ZodTypeAny, {
133
- type: "simpleType";
134
- definition: "number";
135
- validations: {
136
- type: "multipleOf" | "gt" | "gte" | "lt" | "lte" | "int" | "positive" | "nonpositive" | "negative" | "nonnegative" | "finite" | "safe";
137
- extra?: Record<string, any> | undefined;
138
- parameter?: any;
139
- }[];
140
- optional?: boolean | undefined;
141
- nullable?: boolean | undefined;
142
- extra?: Record<string, any> | undefined;
143
- coerce?: boolean | undefined;
144
- }, {
145
- type: "simpleType";
146
- definition: "number";
147
- validations: {
148
- type: "multipleOf" | "gt" | "gte" | "lt" | "lte" | "int" | "positive" | "nonpositive" | "negative" | "nonnegative" | "finite" | "safe";
149
- extra?: Record<string, any> | undefined;
150
- parameter?: any;
151
- }[];
152
- optional?: boolean | undefined;
153
- nullable?: boolean | undefined;
154
- extra?: Record<string, any> | undefined;
155
- coerce?: boolean | undefined;
156
- }>;
157
- export type JzodAttributeNumberWithValidations = z.infer<typeof jzodAttributeNumberWithValidationsSchema>;
158
- export declare const jzodAttributeStringWithValidationsSchema: z.ZodObject<{
159
- optional: z.ZodOptional<z.ZodBoolean>;
160
- nullable: z.ZodOptional<z.ZodBoolean>;
161
- extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
162
- coerce: z.ZodOptional<z.ZodBoolean>;
163
- type: z.ZodLiteral<"simpleType">;
164
- definition: z.ZodLiteral<"string">;
165
- validations: z.ZodArray<z.ZodObject<{
166
- extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
167
- type: z.ZodEnum<["max", "min", "length", "email", "url", "emoji", "uuid", "cuid", "cuid2", "ulid", "regex", "includes", "startsWith", "endsWith", "datetime", "ip"]>;
168
- parameter: z.ZodAny;
169
- }, "strict", z.ZodTypeAny, {
170
- type: "length" | "includes" | "uuid" | "min" | "max" | "email" | "url" | "emoji" | "cuid" | "cuid2" | "ulid" | "regex" | "startsWith" | "endsWith" | "datetime" | "ip";
171
- extra?: Record<string, any> | undefined;
172
- parameter?: any;
173
- }, {
174
- type: "length" | "includes" | "uuid" | "min" | "max" | "email" | "url" | "emoji" | "cuid" | "cuid2" | "ulid" | "regex" | "startsWith" | "endsWith" | "datetime" | "ip";
175
- extra?: Record<string, any> | undefined;
176
- parameter?: any;
177
- }>, "many">;
178
- }, "strict", z.ZodTypeAny, {
179
- type: "simpleType";
180
- definition: "string";
181
- validations: {
182
- type: "length" | "includes" | "uuid" | "min" | "max" | "email" | "url" | "emoji" | "cuid" | "cuid2" | "ulid" | "regex" | "startsWith" | "endsWith" | "datetime" | "ip";
183
- extra?: Record<string, any> | undefined;
184
- parameter?: any;
185
- }[];
186
- optional?: boolean | undefined;
187
- nullable?: boolean | undefined;
188
- extra?: Record<string, any> | undefined;
189
- coerce?: boolean | undefined;
190
- }, {
191
- type: "simpleType";
192
- definition: "string";
193
- validations: {
194
- type: "length" | "includes" | "uuid" | "min" | "max" | "email" | "url" | "emoji" | "cuid" | "cuid2" | "ulid" | "regex" | "startsWith" | "endsWith" | "datetime" | "ip";
195
- extra?: Record<string, any> | undefined;
196
- parameter?: any;
197
- }[];
198
- optional?: boolean | undefined;
199
- nullable?: boolean | undefined;
200
- extra?: Record<string, any> | undefined;
201
- coerce?: boolean | undefined;
202
- }>;
203
- export type JzodAttributeStringWithValidations = z.infer<typeof jzodAttributeStringWithValidationsSchema>;
204
- export declare const jzodAttributeSchema: z.ZodObject<{
205
- optional: z.ZodOptional<z.ZodBoolean>;
206
- nullable: z.ZodOptional<z.ZodBoolean>;
207
- extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
208
- coerce: z.ZodOptional<z.ZodBoolean>;
209
- type: z.ZodLiteral<"simpleType">;
210
- definition: z.ZodLazy<z.ZodEnum<["any", "bigint", "boolean", "date", "never", "null", "number", "string", "uuid", "undefined", "unknown", "void"]>>;
211
- }, "strict", z.ZodTypeAny, {
212
- type: "simpleType";
213
- definition: "string" | "number" | "bigint" | "boolean" | "undefined" | "any" | "date" | "never" | "null" | "uuid" | "unknown" | "void";
214
- optional?: boolean | undefined;
215
- nullable?: boolean | undefined;
216
- extra?: Record<string, any> | undefined;
217
- coerce?: boolean | undefined;
218
- }, {
219
- type: "simpleType";
220
- definition: "string" | "number" | "bigint" | "boolean" | "undefined" | "any" | "date" | "never" | "null" | "uuid" | "unknown" | "void";
221
- optional?: boolean | undefined;
222
- nullable?: boolean | undefined;
223
- extra?: Record<string, any> | undefined;
224
- coerce?: boolean | undefined;
225
- }>;
226
- export type JzodAttribute = z.infer<typeof jzodAttributeSchema>;
227
- export type JzodElement = JzodArray | JzodAttribute | JzodAttributeDateWithValidations | JzodAttributeNumberWithValidations | JzodAttributeStringWithValidations | JzodEnum | JzodFunction | JzodLazy | JzodLiteral | JzodIntersection | JzodMap | JzodRecord | JzodObject | JzodPromise | JzodReference | JzodSet | JzodTuple | JzodUnion;
228
- export declare const jzodElementSchema: z.ZodType<JzodElement>;
229
- export declare const jzodEnumSchema: z.ZodObject<{
230
- optional: z.ZodOptional<z.ZodBoolean>;
231
- nullable: z.ZodOptional<z.ZodBoolean>;
232
- extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
233
- type: z.ZodLiteral<"enum">;
234
- definition: z.ZodArray<z.ZodString, "many">;
235
- }, "strict", z.ZodTypeAny, {
236
- type: "enum";
237
- definition: string[];
238
- optional?: boolean | undefined;
239
- nullable?: boolean | undefined;
240
- extra?: Record<string, any> | undefined;
241
- }, {
242
- type: "enum";
243
- definition: string[];
244
- optional?: boolean | undefined;
245
- nullable?: boolean | undefined;
246
- extra?: Record<string, any> | undefined;
247
- }>;
248
- export type JzodEnum = z.infer<typeof jzodEnumSchema>;
249
- export interface JzodFunction {
250
- extra?: {
251
- [k: string]: any;
252
- };
253
- type: 'function';
254
- definition: {
255
- args: JzodElement[];
256
- returns?: JzodElement;
257
- };
258
- }
259
- export declare const jzodFunctionSchema: ZodType<JzodFunction>;
260
- export declare const jzodLazySchema: z.ZodObject<{
261
- type: z.ZodLiteral<"lazy">;
262
- extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
263
- definition: ZodType<JzodFunction, z.ZodTypeDef, JzodFunction>;
264
- }, "strict", z.ZodTypeAny, {
265
- type: "lazy";
266
- definition: JzodFunction;
267
- extra?: Record<string, any> | undefined;
268
- }, {
269
- type: "lazy";
270
- definition: JzodFunction;
271
- extra?: Record<string, any> | undefined;
272
- }>;
273
- export type JzodLazy = z.infer<typeof jzodLazySchema>;
274
- export declare const jzodLiteralSchema: z.ZodObject<{
275
- optional: z.ZodOptional<z.ZodBoolean>;
276
- nullable: z.ZodOptional<z.ZodBoolean>;
277
- extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
278
- type: z.ZodLiteral<"literal">;
279
- definition: z.ZodString;
280
- }, "strict", z.ZodTypeAny, {
281
- type: "literal";
282
- definition: string;
283
- optional?: boolean | undefined;
284
- nullable?: boolean | undefined;
285
- extra?: Record<string, any> | undefined;
286
- }, {
287
- type: "literal";
288
- definition: string;
289
- optional?: boolean | undefined;
290
- nullable?: boolean | undefined;
291
- extra?: Record<string, any> | undefined;
292
- }>;
293
- export type JzodLiteral = z.infer<typeof jzodLiteralSchema>;
294
- export interface JzodIntersection {
295
- optional?: boolean;
296
- nullable?: boolean;
297
- extra?: {
298
- [k: string]: any;
299
- };
300
- type: 'intersection';
301
- definition: {
302
- left: JzodElement;
303
- right: JzodElement;
304
- };
305
- }
306
- export declare const jzodIntersectionSchema: z.ZodType<JzodIntersection>;
307
- export interface JzodMap extends JzodRoot {
308
- optional?: boolean;
309
- nullable?: boolean;
310
- extra?: {
311
- [k: string]: any;
312
- };
313
- type: 'map';
314
- definition: [JzodElement, JzodElement];
315
- }
316
- export declare const jzodMapSchema: z.ZodType<JzodMap>;
317
- export interface JzodObject extends JzodRoot {
318
- optional?: boolean;
319
- nullable?: boolean;
320
- extend?: JzodReference | JzodObject;
321
- extra?: {
322
- [k: string]: any;
323
- };
324
- type: "object";
325
- nonStrict?: boolean;
326
- definition: {
327
- [attributeName: string]: JzodElement;
328
- };
329
- }
330
- export declare const jzodObjectSchema: z.ZodType<JzodObject>;
331
- export interface JzodPromise extends JzodRoot {
332
- extra?: {
333
- [k: string]: any;
334
- };
335
- type: 'promise';
336
- definition: JzodElement;
337
- }
338
- export declare const jzodPromiseSchema: z.ZodType<JzodPromise>;
339
- export interface JzodRecord {
340
- optional?: boolean;
341
- nullable?: boolean;
342
- extra?: {
343
- [k: string]: any;
344
- };
345
- type: 'record';
346
- definition: JzodElement;
347
- }
348
- export declare const jzodRecordSchema: z.ZodType<JzodRecord>;
349
- export interface JzodReference {
350
- optional?: boolean;
351
- nullable?: boolean;
352
- extra?: {
353
- [k: string]: any;
354
- };
355
- context?: {
356
- [attributeName: string]: JzodElement;
357
- };
358
- type: 'schemaReference';
359
- definition: {
360
- eager?: boolean;
361
- relativePath?: string;
362
- absolutePath?: string;
363
- };
364
- }
365
- export declare const jzodReferenceSchema: ZodType<JzodReference>;
366
- export interface JzodSet extends JzodRoot {
367
- optional?: boolean;
368
- nullable?: boolean;
369
- extra?: {
370
- [k: string]: any;
371
- };
372
- type: 'set';
373
- definition: JzodElement;
374
- }
375
- export declare const jzodSetSchema: z.ZodType<JzodSet>;
376
- export interface JzodTuple {
377
- optional?: boolean;
378
- nullable?: boolean;
379
- extra?: {
380
- [k: string]: any;
381
- };
382
- type: 'tuple';
383
- definition: JzodElement[];
384
- }
385
- export declare const jzodTupleSchema: z.ZodType<JzodTuple>;
386
- export interface JzodUnion {
387
- optional?: boolean;
388
- nullable?: boolean;
389
- extra?: {
390
- [k: string]: any;
391
- };
392
- type: "union";
393
- discriminator?: string;
394
- definition: JzodElement[];
395
- }
396
- export declare const jzodUnionSchema: z.ZodType<JzodUnion>;
397
- export {};
1
+ import { ZodType, z } from "zod";
2
+ declare const jzodRootSchema: z.ZodObject<{
3
+ optional: z.ZodOptional<z.ZodBoolean>;
4
+ }, "strict", z.ZodTypeAny, {
5
+ optional?: boolean | undefined;
6
+ }, {
7
+ optional?: boolean | undefined;
8
+ }>;
9
+ type JzodRoot = z.infer<typeof jzodRootSchema>;
10
+ export declare const jzodEnumAttributeTypesSchema: z.ZodEnum<["any", "bigint", "boolean", "date", "never", "null", "number", "string", "uuid", "undefined", "unknown", "void"]>;
11
+ export type JzodEnumTypes = z.infer<typeof jzodEnumAttributeTypesSchema>;
12
+ export declare const jzodEnumElementTypesSchema: z.ZodEnum<["array", "enum", "function", "lazy", "literal", "intersection", "map", "object", "promise", "record", "schemaReference", "set", "simpleType", "tuple", "union"]>;
13
+ export type JzodEnumElementTypes = z.infer<typeof jzodEnumElementTypesSchema>;
14
+ export interface JzodArray extends JzodRoot {
15
+ optional?: boolean;
16
+ nullable?: boolean;
17
+ extra?: {
18
+ [k: string]: any;
19
+ };
20
+ type: 'array';
21
+ definition: JzodElement;
22
+ }
23
+ export declare const jzodArraySchema: z.ZodType<JzodArray>;
24
+ export declare const jzodAttributeDateValidationsSchema: z.ZodObject<{
25
+ extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
26
+ type: z.ZodEnum<["min", "max"]>;
27
+ parameter: z.ZodAny;
28
+ }, "strict", z.ZodTypeAny, {
29
+ type: "min" | "max";
30
+ extra?: Record<string, any> | undefined;
31
+ parameter?: any;
32
+ }, {
33
+ type: "min" | "max";
34
+ extra?: Record<string, any> | undefined;
35
+ parameter?: any;
36
+ }>;
37
+ export type JzodAttributeDateValidations = z.infer<typeof jzodAttributeDateValidationsSchema>;
38
+ export declare const jzodAttributeNumberValidationsSchema: z.ZodObject<{
39
+ extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
40
+ type: z.ZodEnum<["gt", "gte", "lt", "lte", "int", "positive", "nonpositive", "negative", "nonnegative", "multipleOf", "finite", "safe"]>;
41
+ parameter: z.ZodAny;
42
+ }, "strict", z.ZodTypeAny, {
43
+ type: "multipleOf" | "gt" | "gte" | "lt" | "lte" | "int" | "positive" | "nonpositive" | "negative" | "nonnegative" | "finite" | "safe";
44
+ extra?: Record<string, any> | undefined;
45
+ parameter?: any;
46
+ }, {
47
+ type: "multipleOf" | "gt" | "gte" | "lt" | "lte" | "int" | "positive" | "nonpositive" | "negative" | "nonnegative" | "finite" | "safe";
48
+ extra?: Record<string, any> | undefined;
49
+ parameter?: any;
50
+ }>;
51
+ export type JzodAttributeNumberValidations = z.infer<typeof jzodAttributeNumberValidationsSchema>;
52
+ export declare const jzodAttributeStringValidationsSchema: z.ZodObject<{
53
+ extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
54
+ type: z.ZodEnum<["max", "min", "length", "email", "url", "emoji", "uuid", "cuid", "cuid2", "ulid", "regex", "includes", "startsWith", "endsWith", "datetime", "ip"]>;
55
+ parameter: z.ZodAny;
56
+ }, "strict", z.ZodTypeAny, {
57
+ type: "length" | "includes" | "uuid" | "min" | "max" | "email" | "url" | "emoji" | "cuid" | "cuid2" | "ulid" | "regex" | "startsWith" | "endsWith" | "datetime" | "ip";
58
+ extra?: Record<string, any> | undefined;
59
+ parameter?: any;
60
+ }, {
61
+ type: "length" | "includes" | "uuid" | "min" | "max" | "email" | "url" | "emoji" | "cuid" | "cuid2" | "ulid" | "regex" | "startsWith" | "endsWith" | "datetime" | "ip";
62
+ extra?: Record<string, any> | undefined;
63
+ parameter?: any;
64
+ }>;
65
+ export type JzodAttributeStringValidations = z.infer<typeof jzodAttributeStringValidationsSchema>;
66
+ export declare const jzodAttributeDateWithValidationsSchema: z.ZodObject<{
67
+ optional: z.ZodOptional<z.ZodBoolean>;
68
+ nullable: z.ZodOptional<z.ZodBoolean>;
69
+ extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
70
+ coerce: z.ZodOptional<z.ZodBoolean>;
71
+ type: z.ZodLiteral<"simpleType">;
72
+ definition: z.ZodLiteral<"date">;
73
+ validations: z.ZodArray<z.ZodObject<{
74
+ extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
75
+ type: z.ZodEnum<["min", "max"]>;
76
+ parameter: z.ZodAny;
77
+ }, "strict", z.ZodTypeAny, {
78
+ type: "min" | "max";
79
+ extra?: Record<string, any> | undefined;
80
+ parameter?: any;
81
+ }, {
82
+ type: "min" | "max";
83
+ extra?: Record<string, any> | undefined;
84
+ parameter?: any;
85
+ }>, "many">;
86
+ }, "strict", z.ZodTypeAny, {
87
+ type: "simpleType";
88
+ definition: "date";
89
+ validations: {
90
+ type: "min" | "max";
91
+ extra?: Record<string, any> | undefined;
92
+ parameter?: any;
93
+ }[];
94
+ optional?: boolean | undefined;
95
+ nullable?: boolean | undefined;
96
+ extra?: Record<string, any> | undefined;
97
+ coerce?: boolean | undefined;
98
+ }, {
99
+ type: "simpleType";
100
+ definition: "date";
101
+ validations: {
102
+ type: "min" | "max";
103
+ extra?: Record<string, any> | undefined;
104
+ parameter?: any;
105
+ }[];
106
+ optional?: boolean | undefined;
107
+ nullable?: boolean | undefined;
108
+ extra?: Record<string, any> | undefined;
109
+ coerce?: boolean | undefined;
110
+ }>;
111
+ export type JzodAttributeDateWithValidations = z.infer<typeof jzodAttributeDateWithValidationsSchema>;
112
+ export declare const jzodAttributeNumberWithValidationsSchema: z.ZodObject<{
113
+ optional: z.ZodOptional<z.ZodBoolean>;
114
+ nullable: z.ZodOptional<z.ZodBoolean>;
115
+ extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
116
+ coerce: z.ZodOptional<z.ZodBoolean>;
117
+ type: z.ZodLiteral<"simpleType">;
118
+ definition: z.ZodLiteral<"number">;
119
+ validations: z.ZodArray<z.ZodObject<{
120
+ extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
121
+ type: z.ZodEnum<["gt", "gte", "lt", "lte", "int", "positive", "nonpositive", "negative", "nonnegative", "multipleOf", "finite", "safe"]>;
122
+ parameter: z.ZodAny;
123
+ }, "strict", z.ZodTypeAny, {
124
+ type: "multipleOf" | "gt" | "gte" | "lt" | "lte" | "int" | "positive" | "nonpositive" | "negative" | "nonnegative" | "finite" | "safe";
125
+ extra?: Record<string, any> | undefined;
126
+ parameter?: any;
127
+ }, {
128
+ type: "multipleOf" | "gt" | "gte" | "lt" | "lte" | "int" | "positive" | "nonpositive" | "negative" | "nonnegative" | "finite" | "safe";
129
+ extra?: Record<string, any> | undefined;
130
+ parameter?: any;
131
+ }>, "many">;
132
+ }, "strict", z.ZodTypeAny, {
133
+ type: "simpleType";
134
+ definition: "number";
135
+ validations: {
136
+ type: "multipleOf" | "gt" | "gte" | "lt" | "lte" | "int" | "positive" | "nonpositive" | "negative" | "nonnegative" | "finite" | "safe";
137
+ extra?: Record<string, any> | undefined;
138
+ parameter?: any;
139
+ }[];
140
+ optional?: boolean | undefined;
141
+ nullable?: boolean | undefined;
142
+ extra?: Record<string, any> | undefined;
143
+ coerce?: boolean | undefined;
144
+ }, {
145
+ type: "simpleType";
146
+ definition: "number";
147
+ validations: {
148
+ type: "multipleOf" | "gt" | "gte" | "lt" | "lte" | "int" | "positive" | "nonpositive" | "negative" | "nonnegative" | "finite" | "safe";
149
+ extra?: Record<string, any> | undefined;
150
+ parameter?: any;
151
+ }[];
152
+ optional?: boolean | undefined;
153
+ nullable?: boolean | undefined;
154
+ extra?: Record<string, any> | undefined;
155
+ coerce?: boolean | undefined;
156
+ }>;
157
+ export type JzodAttributeNumberWithValidations = z.infer<typeof jzodAttributeNumberWithValidationsSchema>;
158
+ export declare const jzodAttributeStringWithValidationsSchema: z.ZodObject<{
159
+ optional: z.ZodOptional<z.ZodBoolean>;
160
+ nullable: z.ZodOptional<z.ZodBoolean>;
161
+ extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
162
+ coerce: z.ZodOptional<z.ZodBoolean>;
163
+ type: z.ZodLiteral<"simpleType">;
164
+ definition: z.ZodLiteral<"string">;
165
+ validations: z.ZodArray<z.ZodObject<{
166
+ extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
167
+ type: z.ZodEnum<["max", "min", "length", "email", "url", "emoji", "uuid", "cuid", "cuid2", "ulid", "regex", "includes", "startsWith", "endsWith", "datetime", "ip"]>;
168
+ parameter: z.ZodAny;
169
+ }, "strict", z.ZodTypeAny, {
170
+ type: "length" | "includes" | "uuid" | "min" | "max" | "email" | "url" | "emoji" | "cuid" | "cuid2" | "ulid" | "regex" | "startsWith" | "endsWith" | "datetime" | "ip";
171
+ extra?: Record<string, any> | undefined;
172
+ parameter?: any;
173
+ }, {
174
+ type: "length" | "includes" | "uuid" | "min" | "max" | "email" | "url" | "emoji" | "cuid" | "cuid2" | "ulid" | "regex" | "startsWith" | "endsWith" | "datetime" | "ip";
175
+ extra?: Record<string, any> | undefined;
176
+ parameter?: any;
177
+ }>, "many">;
178
+ }, "strict", z.ZodTypeAny, {
179
+ type: "simpleType";
180
+ definition: "string";
181
+ validations: {
182
+ type: "length" | "includes" | "uuid" | "min" | "max" | "email" | "url" | "emoji" | "cuid" | "cuid2" | "ulid" | "regex" | "startsWith" | "endsWith" | "datetime" | "ip";
183
+ extra?: Record<string, any> | undefined;
184
+ parameter?: any;
185
+ }[];
186
+ optional?: boolean | undefined;
187
+ nullable?: boolean | undefined;
188
+ extra?: Record<string, any> | undefined;
189
+ coerce?: boolean | undefined;
190
+ }, {
191
+ type: "simpleType";
192
+ definition: "string";
193
+ validations: {
194
+ type: "length" | "includes" | "uuid" | "min" | "max" | "email" | "url" | "emoji" | "cuid" | "cuid2" | "ulid" | "regex" | "startsWith" | "endsWith" | "datetime" | "ip";
195
+ extra?: Record<string, any> | undefined;
196
+ parameter?: any;
197
+ }[];
198
+ optional?: boolean | undefined;
199
+ nullable?: boolean | undefined;
200
+ extra?: Record<string, any> | undefined;
201
+ coerce?: boolean | undefined;
202
+ }>;
203
+ export type JzodAttributeStringWithValidations = z.infer<typeof jzodAttributeStringWithValidationsSchema>;
204
+ export declare const jzodAttributeSchema: z.ZodObject<{
205
+ optional: z.ZodOptional<z.ZodBoolean>;
206
+ nullable: z.ZodOptional<z.ZodBoolean>;
207
+ extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
208
+ coerce: z.ZodOptional<z.ZodBoolean>;
209
+ type: z.ZodLiteral<"simpleType">;
210
+ definition: z.ZodLazy<z.ZodEnum<["any", "bigint", "boolean", "date", "never", "null", "number", "string", "uuid", "undefined", "unknown", "void"]>>;
211
+ }, "strict", z.ZodTypeAny, {
212
+ type: "simpleType";
213
+ definition: "string" | "number" | "bigint" | "boolean" | "undefined" | "any" | "date" | "never" | "null" | "uuid" | "unknown" | "void";
214
+ optional?: boolean | undefined;
215
+ nullable?: boolean | undefined;
216
+ extra?: Record<string, any> | undefined;
217
+ coerce?: boolean | undefined;
218
+ }, {
219
+ type: "simpleType";
220
+ definition: "string" | "number" | "bigint" | "boolean" | "undefined" | "any" | "date" | "never" | "null" | "uuid" | "unknown" | "void";
221
+ optional?: boolean | undefined;
222
+ nullable?: boolean | undefined;
223
+ extra?: Record<string, any> | undefined;
224
+ coerce?: boolean | undefined;
225
+ }>;
226
+ export type JzodAttribute = z.infer<typeof jzodAttributeSchema>;
227
+ export type JzodElement = JzodArray | JzodAttribute | JzodAttributeDateWithValidations | JzodAttributeNumberWithValidations | JzodAttributeStringWithValidations | JzodEnum | JzodFunction | JzodLazy | JzodLiteral | JzodIntersection | JzodMap | JzodRecord | JzodObject | JzodPromise | JzodReference | JzodSet | JzodTuple | JzodUnion;
228
+ export declare const jzodElementSchema: z.ZodType<JzodElement>;
229
+ export declare const jzodEnumSchema: z.ZodObject<{
230
+ optional: z.ZodOptional<z.ZodBoolean>;
231
+ nullable: z.ZodOptional<z.ZodBoolean>;
232
+ extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
233
+ type: z.ZodLiteral<"enum">;
234
+ definition: z.ZodArray<z.ZodString, "many">;
235
+ }, "strict", z.ZodTypeAny, {
236
+ type: "enum";
237
+ definition: string[];
238
+ optional?: boolean | undefined;
239
+ nullable?: boolean | undefined;
240
+ extra?: Record<string, any> | undefined;
241
+ }, {
242
+ type: "enum";
243
+ definition: string[];
244
+ optional?: boolean | undefined;
245
+ nullable?: boolean | undefined;
246
+ extra?: Record<string, any> | undefined;
247
+ }>;
248
+ export type JzodEnum = z.infer<typeof jzodEnumSchema>;
249
+ export interface JzodFunction {
250
+ extra?: {
251
+ [k: string]: any;
252
+ };
253
+ type: 'function';
254
+ definition: {
255
+ args: JzodElement[];
256
+ returns?: JzodElement;
257
+ };
258
+ }
259
+ export declare const jzodFunctionSchema: ZodType<JzodFunction>;
260
+ export declare const jzodLazySchema: z.ZodObject<{
261
+ type: z.ZodLiteral<"lazy">;
262
+ extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
263
+ definition: ZodType<JzodFunction, z.ZodTypeDef, JzodFunction>;
264
+ }, "strict", z.ZodTypeAny, {
265
+ type: "lazy";
266
+ definition: JzodFunction;
267
+ extra?: Record<string, any> | undefined;
268
+ }, {
269
+ type: "lazy";
270
+ definition: JzodFunction;
271
+ extra?: Record<string, any> | undefined;
272
+ }>;
273
+ export type JzodLazy = z.infer<typeof jzodLazySchema>;
274
+ export declare const jzodLiteralSchema: z.ZodObject<{
275
+ optional: z.ZodOptional<z.ZodBoolean>;
276
+ nullable: z.ZodOptional<z.ZodBoolean>;
277
+ extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
278
+ type: z.ZodLiteral<"literal">;
279
+ definition: z.ZodString;
280
+ }, "strict", z.ZodTypeAny, {
281
+ type: "literal";
282
+ definition: string;
283
+ optional?: boolean | undefined;
284
+ nullable?: boolean | undefined;
285
+ extra?: Record<string, any> | undefined;
286
+ }, {
287
+ type: "literal";
288
+ definition: string;
289
+ optional?: boolean | undefined;
290
+ nullable?: boolean | undefined;
291
+ extra?: Record<string, any> | undefined;
292
+ }>;
293
+ export type JzodLiteral = z.infer<typeof jzodLiteralSchema>;
294
+ export interface JzodIntersection {
295
+ optional?: boolean;
296
+ nullable?: boolean;
297
+ extra?: {
298
+ [k: string]: any;
299
+ };
300
+ type: 'intersection';
301
+ definition: {
302
+ left: JzodElement;
303
+ right: JzodElement;
304
+ };
305
+ }
306
+ export declare const jzodIntersectionSchema: z.ZodType<JzodIntersection>;
307
+ export interface JzodMap extends JzodRoot {
308
+ optional?: boolean;
309
+ nullable?: boolean;
310
+ extra?: {
311
+ [k: string]: any;
312
+ };
313
+ type: 'map';
314
+ definition: [JzodElement, JzodElement];
315
+ }
316
+ export declare const jzodMapSchema: z.ZodType<JzodMap>;
317
+ export interface JzodObject extends JzodRoot {
318
+ optional?: boolean;
319
+ nullable?: boolean;
320
+ extend?: JzodReference | JzodObject;
321
+ extra?: {
322
+ [k: string]: any;
323
+ };
324
+ type: "object";
325
+ nonStrict?: boolean;
326
+ definition: {
327
+ [attributeName: string]: JzodElement;
328
+ };
329
+ }
330
+ export declare const jzodObjectSchema: z.ZodType<JzodObject>;
331
+ export interface JzodPromise extends JzodRoot {
332
+ extra?: {
333
+ [k: string]: any;
334
+ };
335
+ type: 'promise';
336
+ definition: JzodElement;
337
+ }
338
+ export declare const jzodPromiseSchema: z.ZodType<JzodPromise>;
339
+ export interface JzodRecord {
340
+ optional?: boolean;
341
+ nullable?: boolean;
342
+ extra?: {
343
+ [k: string]: any;
344
+ };
345
+ type: 'record';
346
+ definition: JzodElement;
347
+ }
348
+ export declare const jzodRecordSchema: z.ZodType<JzodRecord>;
349
+ export interface JzodReference {
350
+ optional?: boolean;
351
+ nullable?: boolean;
352
+ extra?: {
353
+ [k: string]: any;
354
+ };
355
+ context?: {
356
+ [attributeName: string]: JzodElement;
357
+ };
358
+ type: 'schemaReference';
359
+ definition: {
360
+ eager?: boolean;
361
+ relativePath?: string;
362
+ absolutePath?: string;
363
+ };
364
+ }
365
+ export declare const jzodReferenceSchema: ZodType<JzodReference>;
366
+ export interface JzodSet extends JzodRoot {
367
+ optional?: boolean;
368
+ nullable?: boolean;
369
+ extra?: {
370
+ [k: string]: any;
371
+ };
372
+ type: 'set';
373
+ definition: JzodElement;
374
+ }
375
+ export declare const jzodSetSchema: z.ZodType<JzodSet>;
376
+ export interface JzodTuple {
377
+ optional?: boolean;
378
+ nullable?: boolean;
379
+ extra?: {
380
+ [k: string]: any;
381
+ };
382
+ type: 'tuple';
383
+ definition: JzodElement[];
384
+ }
385
+ export declare const jzodTupleSchema: z.ZodType<JzodTuple>;
386
+ export interface JzodUnion {
387
+ optional?: boolean;
388
+ nullable?: boolean;
389
+ extra?: {
390
+ [k: string]: any;
391
+ };
392
+ type: "union";
393
+ discriminator?: string;
394
+ definition: JzodElement[];
395
+ }
396
+ export declare const jzodUnionSchema: z.ZodType<JzodUnion>;
397
+ export {};