cogsbox-shape 0.5.32 → 0.5.33

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.
@@ -147,39 +147,135 @@ declare const schemas: {
147
147
  };
148
148
  };
149
149
  };
150
- initialState: <TNewNext extends import("zod").ZodTypeAny, TDefaultNext>(schema: TNewNext | ((tools: {
151
- sql: import("zod").ZodNumber;
152
- }) => TNewNext), defaultValue: () => TDefaultNext) => {
153
- config: {
154
- sql: {
155
- type: "int";
156
- pk: true;
157
- };
158
- zodSqlSchema: import("zod").ZodNumber;
159
- zodNewSchema: TNewNext;
160
- initialValue: import("zod").TypeOf<TNewNext>;
161
- zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
162
- zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
163
- };
164
- validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
165
- sql: import("zod").ZodNumber;
166
- initialState: TNewNext;
167
- client: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
168
- }) => TValidationNext)) => {
150
+ initialState: {
151
+ <TDefaultNext>(defaultValue: () => TDefaultNext): {
169
152
  config: {
170
153
  sql: {
171
154
  type: "int";
172
155
  pk: true;
173
156
  };
174
157
  zodSqlSchema: import("zod").ZodNumber;
175
- zodNewSchema: TNewNext;
176
- initialValue: import("zod").TypeOf<TNewNext>;
177
- zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
178
- zodValidationSchema: TValidationNext;
158
+ zodNewSchema: import("zod").ZodNumber;
159
+ initialValue: TDefaultNext;
160
+ zodClientSchema: import("zod").ZodNumber;
161
+ zodValidationSchema: import("zod").ZodNumber;
162
+ };
163
+ validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
164
+ sql: import("zod").ZodNumber;
165
+ initialState: import("zod").ZodNumber;
166
+ client: import("zod").ZodNumber;
167
+ }) => TValidationNext)) => {
168
+ config: {
169
+ sql: {
170
+ type: "int";
171
+ pk: true;
172
+ };
173
+ zodSqlSchema: import("zod").ZodNumber;
174
+ zodNewSchema: import("zod").ZodNumber;
175
+ initialValue: TDefaultNext;
176
+ zodClientSchema: import("zod").ZodNumber;
177
+ zodValidationSchema: TValidationNext;
178
+ };
179
+ transform: (transforms: {
180
+ toClient: (dbValue: number) => number;
181
+ toDb: (clientValue: number) => number;
182
+ }) => {
183
+ config: {
184
+ sql: {
185
+ type: "int";
186
+ pk: true;
187
+ };
188
+ zodSqlSchema: import("zod").ZodNumber;
189
+ zodNewSchema: import("zod").ZodNumber;
190
+ initialValue: TDefaultNext;
191
+ zodClientSchema: import("zod").ZodNumber;
192
+ zodValidationSchema: TValidationNext;
193
+ } & {
194
+ transforms: {
195
+ toClient: (dbValue: number) => number;
196
+ toDb: (clientValue: number) => number;
197
+ };
198
+ };
199
+ };
200
+ };
201
+ client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
202
+ sql: import("zod").ZodNumber;
203
+ initialState: import("zod").ZodNumber;
204
+ }) => TClientNext)) => {
205
+ config: {
206
+ sql: {
207
+ type: "int";
208
+ pk: true;
209
+ };
210
+ zodSqlSchema: import("zod").ZodNumber;
211
+ zodNewSchema: import("zod").ZodNumber;
212
+ initialValue: TDefaultNext;
213
+ zodClientSchema: TClientNext;
214
+ zodValidationSchema: TClientNext;
215
+ };
216
+ validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
217
+ sql: import("zod").ZodNumber;
218
+ initialState: import("zod").ZodNumber;
219
+ client: TClientNext;
220
+ }) => TValidationNext)) => {
221
+ config: {
222
+ sql: {
223
+ type: "int";
224
+ pk: true;
225
+ };
226
+ zodSqlSchema: import("zod").ZodNumber;
227
+ zodNewSchema: import("zod").ZodNumber;
228
+ initialValue: TDefaultNext;
229
+ zodClientSchema: TClientNext;
230
+ zodValidationSchema: TValidationNext;
231
+ };
232
+ transform: (transforms: {
233
+ toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
234
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
235
+ }) => {
236
+ config: {
237
+ sql: {
238
+ type: "int";
239
+ pk: true;
240
+ };
241
+ zodSqlSchema: import("zod").ZodNumber;
242
+ zodNewSchema: import("zod").ZodNumber;
243
+ initialValue: TDefaultNext;
244
+ zodClientSchema: TClientNext;
245
+ zodValidationSchema: TValidationNext;
246
+ } & {
247
+ transforms: {
248
+ toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
249
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
250
+ };
251
+ };
252
+ };
253
+ };
254
+ transform: (transforms: {
255
+ toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
256
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
257
+ }) => {
258
+ config: {
259
+ sql: {
260
+ type: "int";
261
+ pk: true;
262
+ };
263
+ zodSqlSchema: import("zod").ZodNumber;
264
+ zodNewSchema: import("zod").ZodNumber;
265
+ initialValue: TDefaultNext;
266
+ zodClientSchema: TClientNext;
267
+ zodValidationSchema: TClientNext;
268
+ } & {
269
+ transforms: {
270
+ toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
271
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
272
+ };
273
+ };
274
+ };
179
275
  };
180
276
  transform: (transforms: {
181
- toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
182
- toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
277
+ toClient: (dbValue: number) => number;
278
+ toDb: (clientValue: number) => number;
183
279
  }) => {
184
280
  config: {
185
281
  sql: {
@@ -187,22 +283,21 @@ declare const schemas: {
187
283
  pk: true;
188
284
  };
189
285
  zodSqlSchema: import("zod").ZodNumber;
190
- zodNewSchema: TNewNext;
191
- initialValue: import("zod").TypeOf<TNewNext>;
192
- zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
193
- zodValidationSchema: TValidationNext;
286
+ zodNewSchema: import("zod").ZodNumber;
287
+ initialValue: TDefaultNext;
288
+ zodClientSchema: import("zod").ZodNumber;
289
+ zodValidationSchema: import("zod").ZodNumber;
194
290
  } & {
195
291
  transforms: {
196
- toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
197
- toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
292
+ toClient: (dbValue: number) => number;
293
+ toDb: (clientValue: number) => number;
198
294
  };
199
295
  };
200
296
  };
201
297
  };
202
- client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
298
+ <TNewNext extends import("zod").ZodTypeAny, TDefaultNext>(schema: TNewNext | ((tools: {
203
299
  sql: import("zod").ZodNumber;
204
- initialState: TNewNext;
205
- }) => TClientNext)) => {
300
+ }) => TNewNext), defaultValue: () => TDefaultNext): {
206
301
  config: {
207
302
  sql: {
208
303
  type: "int";
@@ -211,13 +306,13 @@ declare const schemas: {
211
306
  zodSqlSchema: import("zod").ZodNumber;
212
307
  zodNewSchema: TNewNext;
213
308
  initialValue: import("zod").TypeOf<TNewNext>;
214
- zodClientSchema: TClientNext;
215
- zodValidationSchema: TClientNext;
309
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
310
+ zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
216
311
  };
217
312
  validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
218
313
  sql: import("zod").ZodNumber;
219
314
  initialState: TNewNext;
220
- client: TClientNext;
315
+ client: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
221
316
  }) => TValidationNext)) => {
222
317
  config: {
223
318
  sql: {
@@ -227,9 +322,84 @@ declare const schemas: {
227
322
  zodSqlSchema: import("zod").ZodNumber;
228
323
  zodNewSchema: TNewNext;
229
324
  initialValue: import("zod").TypeOf<TNewNext>;
230
- zodClientSchema: TClientNext;
325
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
231
326
  zodValidationSchema: TValidationNext;
232
327
  };
328
+ transform: (transforms: {
329
+ toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
330
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
331
+ }) => {
332
+ config: {
333
+ sql: {
334
+ type: "int";
335
+ pk: true;
336
+ };
337
+ zodSqlSchema: import("zod").ZodNumber;
338
+ zodNewSchema: TNewNext;
339
+ initialValue: import("zod").TypeOf<TNewNext>;
340
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
341
+ zodValidationSchema: TValidationNext;
342
+ } & {
343
+ transforms: {
344
+ toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
345
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
346
+ };
347
+ };
348
+ };
349
+ };
350
+ client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
351
+ sql: import("zod").ZodNumber;
352
+ initialState: TNewNext;
353
+ }) => TClientNext)) => {
354
+ config: {
355
+ sql: {
356
+ type: "int";
357
+ pk: true;
358
+ };
359
+ zodSqlSchema: import("zod").ZodNumber;
360
+ zodNewSchema: TNewNext;
361
+ initialValue: import("zod").TypeOf<TNewNext>;
362
+ zodClientSchema: TClientNext;
363
+ zodValidationSchema: TClientNext;
364
+ };
365
+ validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
366
+ sql: import("zod").ZodNumber;
367
+ initialState: TNewNext;
368
+ client: TClientNext;
369
+ }) => TValidationNext)) => {
370
+ config: {
371
+ sql: {
372
+ type: "int";
373
+ pk: true;
374
+ };
375
+ zodSqlSchema: import("zod").ZodNumber;
376
+ zodNewSchema: TNewNext;
377
+ initialValue: import("zod").TypeOf<TNewNext>;
378
+ zodClientSchema: TClientNext;
379
+ zodValidationSchema: TValidationNext;
380
+ };
381
+ transform: (transforms: {
382
+ toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
383
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
384
+ }) => {
385
+ config: {
386
+ sql: {
387
+ type: "int";
388
+ pk: true;
389
+ };
390
+ zodSqlSchema: import("zod").ZodNumber;
391
+ zodNewSchema: TNewNext;
392
+ initialValue: import("zod").TypeOf<TNewNext>;
393
+ zodClientSchema: TClientNext;
394
+ zodValidationSchema: TValidationNext;
395
+ } & {
396
+ transforms: {
397
+ toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
398
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
399
+ };
400
+ };
401
+ };
402
+ };
233
403
  transform: (transforms: {
234
404
  toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
235
405
  toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
@@ -243,7 +413,7 @@ declare const schemas: {
243
413
  zodNewSchema: TNewNext;
244
414
  initialValue: import("zod").TypeOf<TNewNext>;
245
415
  zodClientSchema: TClientNext;
246
- zodValidationSchema: TValidationNext;
416
+ zodValidationSchema: TClientNext;
247
417
  } & {
248
418
  transforms: {
249
419
  toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
@@ -253,8 +423,8 @@ declare const schemas: {
253
423
  };
254
424
  };
255
425
  transform: (transforms: {
256
- toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
257
- toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
426
+ toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
427
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
258
428
  }) => {
259
429
  config: {
260
430
  sql: {
@@ -264,37 +434,16 @@ declare const schemas: {
264
434
  zodSqlSchema: import("zod").ZodNumber;
265
435
  zodNewSchema: TNewNext;
266
436
  initialValue: import("zod").TypeOf<TNewNext>;
267
- zodClientSchema: TClientNext;
268
- zodValidationSchema: TClientNext;
437
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
438
+ zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
269
439
  } & {
270
440
  transforms: {
271
- toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
272
- toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
441
+ toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
442
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
273
443
  };
274
444
  };
275
445
  };
276
446
  };
277
- transform: (transforms: {
278
- toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
279
- toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
280
- }) => {
281
- config: {
282
- sql: {
283
- type: "int";
284
- pk: true;
285
- };
286
- zodSqlSchema: import("zod").ZodNumber;
287
- zodNewSchema: TNewNext;
288
- initialValue: import("zod").TypeOf<TNewNext>;
289
- zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
290
- zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
291
- } & {
292
- transforms: {
293
- toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
294
- toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
295
- };
296
- };
297
- };
298
447
  };
299
448
  };
300
449
  firstname: {
@@ -409,14 +558,14 @@ declare const schemas: {
409
558
  pk: true;
410
559
  };
411
560
  zodSqlSchema: import("zod").ZodNumber;
412
- zodNewSchema: import("zod").ZodString;
561
+ zodNewSchema: import("zod").ZodNumber;
413
562
  initialValue: string;
414
- zodClientSchema: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>;
563
+ zodClientSchema: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodNumber]>;
415
564
  zodValidationSchema: import("zod").ZodString;
416
565
  } & {
417
566
  transforms: {
418
- toClient: (dbValue: number) => string | number;
419
- toDb: (clientValue: string | number) => number;
567
+ toClient: (dbValue: number) => number;
568
+ toDb: (clientValue: number) => number;
420
569
  };
421
570
  };
422
571
  } | {
@@ -565,39 +714,135 @@ declare const schemas: {
565
714
  };
566
715
  };
567
716
  };
568
- initialState: <TNewNext extends import("zod").ZodTypeAny, TDefaultNext>(schema: TNewNext | ((tools: {
569
- sql: import("zod").ZodString;
570
- }) => TNewNext), defaultValue: () => TDefaultNext) => {
571
- config: {
572
- sql: {
573
- type: "varchar";
574
- length: number;
575
- };
576
- zodSqlSchema: import("zod").ZodString;
577
- zodNewSchema: TNewNext;
578
- initialValue: import("zod").TypeOf<TNewNext>;
579
- zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
580
- zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
581
- };
582
- validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
583
- sql: import("zod").ZodString;
584
- initialState: TNewNext;
585
- client: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
586
- }) => TValidationNext)) => {
717
+ initialState: {
718
+ <TDefaultNext>(defaultValue: () => TDefaultNext): {
587
719
  config: {
588
720
  sql: {
589
721
  type: "varchar";
590
722
  length: number;
591
723
  };
592
724
  zodSqlSchema: import("zod").ZodString;
593
- zodNewSchema: TNewNext;
594
- initialValue: import("zod").TypeOf<TNewNext>;
595
- zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
596
- zodValidationSchema: TValidationNext;
725
+ zodNewSchema: import("zod").ZodString;
726
+ initialValue: TDefaultNext;
727
+ zodClientSchema: import("zod").ZodString;
728
+ zodValidationSchema: import("zod").ZodString;
729
+ };
730
+ validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
731
+ sql: import("zod").ZodString;
732
+ initialState: import("zod").ZodString;
733
+ client: import("zod").ZodString;
734
+ }) => TValidationNext)) => {
735
+ config: {
736
+ sql: {
737
+ type: "varchar";
738
+ length: number;
739
+ };
740
+ zodSqlSchema: import("zod").ZodString;
741
+ zodNewSchema: import("zod").ZodString;
742
+ initialValue: TDefaultNext;
743
+ zodClientSchema: import("zod").ZodString;
744
+ zodValidationSchema: TValidationNext;
745
+ };
746
+ transform: (transforms: {
747
+ toClient: (dbValue: string) => string;
748
+ toDb: (clientValue: string) => string;
749
+ }) => {
750
+ config: {
751
+ sql: {
752
+ type: "varchar";
753
+ length: number;
754
+ };
755
+ zodSqlSchema: import("zod").ZodString;
756
+ zodNewSchema: import("zod").ZodString;
757
+ initialValue: TDefaultNext;
758
+ zodClientSchema: import("zod").ZodString;
759
+ zodValidationSchema: TValidationNext;
760
+ } & {
761
+ transforms: {
762
+ toClient: (dbValue: string) => string;
763
+ toDb: (clientValue: string) => string;
764
+ };
765
+ };
766
+ };
767
+ };
768
+ client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
769
+ sql: import("zod").ZodString;
770
+ initialState: import("zod").ZodString;
771
+ }) => TClientNext)) => {
772
+ config: {
773
+ sql: {
774
+ type: "varchar";
775
+ length: number;
776
+ };
777
+ zodSqlSchema: import("zod").ZodString;
778
+ zodNewSchema: import("zod").ZodString;
779
+ initialValue: TDefaultNext;
780
+ zodClientSchema: TClientNext;
781
+ zodValidationSchema: TClientNext;
782
+ };
783
+ validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
784
+ sql: import("zod").ZodString;
785
+ initialState: import("zod").ZodString;
786
+ client: TClientNext;
787
+ }) => TValidationNext)) => {
788
+ config: {
789
+ sql: {
790
+ type: "varchar";
791
+ length: number;
792
+ };
793
+ zodSqlSchema: import("zod").ZodString;
794
+ zodNewSchema: import("zod").ZodString;
795
+ initialValue: TDefaultNext;
796
+ zodClientSchema: TClientNext;
797
+ zodValidationSchema: TValidationNext;
798
+ };
799
+ transform: (transforms: {
800
+ toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
801
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
802
+ }) => {
803
+ config: {
804
+ sql: {
805
+ type: "varchar";
806
+ length: number;
807
+ };
808
+ zodSqlSchema: import("zod").ZodString;
809
+ zodNewSchema: import("zod").ZodString;
810
+ initialValue: TDefaultNext;
811
+ zodClientSchema: TClientNext;
812
+ zodValidationSchema: TValidationNext;
813
+ } & {
814
+ transforms: {
815
+ toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
816
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
817
+ };
818
+ };
819
+ };
820
+ };
821
+ transform: (transforms: {
822
+ toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
823
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
824
+ }) => {
825
+ config: {
826
+ sql: {
827
+ type: "varchar";
828
+ length: number;
829
+ };
830
+ zodSqlSchema: import("zod").ZodString;
831
+ zodNewSchema: import("zod").ZodString;
832
+ initialValue: TDefaultNext;
833
+ zodClientSchema: TClientNext;
834
+ zodValidationSchema: TClientNext;
835
+ } & {
836
+ transforms: {
837
+ toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
838
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
839
+ };
840
+ };
841
+ };
597
842
  };
598
843
  transform: (transforms: {
599
- toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
600
- toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
844
+ toClient: (dbValue: string) => string;
845
+ toDb: (clientValue: string) => string;
601
846
  }) => {
602
847
  config: {
603
848
  sql: {
@@ -605,22 +850,21 @@ declare const schemas: {
605
850
  length: number;
606
851
  };
607
852
  zodSqlSchema: import("zod").ZodString;
608
- zodNewSchema: TNewNext;
609
- initialValue: import("zod").TypeOf<TNewNext>;
610
- zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
611
- zodValidationSchema: TValidationNext;
853
+ zodNewSchema: import("zod").ZodString;
854
+ initialValue: TDefaultNext;
855
+ zodClientSchema: import("zod").ZodString;
856
+ zodValidationSchema: import("zod").ZodString;
612
857
  } & {
613
858
  transforms: {
614
- toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
615
- toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
859
+ toClient: (dbValue: string) => string;
860
+ toDb: (clientValue: string) => string;
616
861
  };
617
862
  };
618
863
  };
619
864
  };
620
- client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
865
+ <TNewNext extends import("zod").ZodTypeAny, TDefaultNext>(schema: TNewNext | ((tools: {
621
866
  sql: import("zod").ZodString;
622
- initialState: TNewNext;
623
- }) => TClientNext)) => {
867
+ }) => TNewNext), defaultValue: () => TDefaultNext): {
624
868
  config: {
625
869
  sql: {
626
870
  type: "varchar";
@@ -629,14 +873,51 @@ declare const schemas: {
629
873
  zodSqlSchema: import("zod").ZodString;
630
874
  zodNewSchema: TNewNext;
631
875
  initialValue: import("zod").TypeOf<TNewNext>;
632
- zodClientSchema: TClientNext;
633
- zodValidationSchema: TClientNext;
876
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
877
+ zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
634
878
  };
635
879
  validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
636
880
  sql: import("zod").ZodString;
637
881
  initialState: TNewNext;
638
- client: TClientNext;
882
+ client: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
639
883
  }) => TValidationNext)) => {
884
+ config: {
885
+ sql: {
886
+ type: "varchar";
887
+ length: number;
888
+ };
889
+ zodSqlSchema: import("zod").ZodString;
890
+ zodNewSchema: TNewNext;
891
+ initialValue: import("zod").TypeOf<TNewNext>;
892
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
893
+ zodValidationSchema: TValidationNext;
894
+ };
895
+ transform: (transforms: {
896
+ toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
897
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
898
+ }) => {
899
+ config: {
900
+ sql: {
901
+ type: "varchar";
902
+ length: number;
903
+ };
904
+ zodSqlSchema: import("zod").ZodString;
905
+ zodNewSchema: TNewNext;
906
+ initialValue: import("zod").TypeOf<TNewNext>;
907
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
908
+ zodValidationSchema: TValidationNext;
909
+ } & {
910
+ transforms: {
911
+ toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
912
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
913
+ };
914
+ };
915
+ };
916
+ };
917
+ client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
918
+ sql: import("zod").ZodString;
919
+ initialState: TNewNext;
920
+ }) => TClientNext)) => {
640
921
  config: {
641
922
  sql: {
642
923
  type: "varchar";
@@ -646,7 +927,45 @@ declare const schemas: {
646
927
  zodNewSchema: TNewNext;
647
928
  initialValue: import("zod").TypeOf<TNewNext>;
648
929
  zodClientSchema: TClientNext;
649
- zodValidationSchema: TValidationNext;
930
+ zodValidationSchema: TClientNext;
931
+ };
932
+ validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
933
+ sql: import("zod").ZodString;
934
+ initialState: TNewNext;
935
+ client: TClientNext;
936
+ }) => TValidationNext)) => {
937
+ config: {
938
+ sql: {
939
+ type: "varchar";
940
+ length: number;
941
+ };
942
+ zodSqlSchema: import("zod").ZodString;
943
+ zodNewSchema: TNewNext;
944
+ initialValue: import("zod").TypeOf<TNewNext>;
945
+ zodClientSchema: TClientNext;
946
+ zodValidationSchema: TValidationNext;
947
+ };
948
+ transform: (transforms: {
949
+ toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
950
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
951
+ }) => {
952
+ config: {
953
+ sql: {
954
+ type: "varchar";
955
+ length: number;
956
+ };
957
+ zodSqlSchema: import("zod").ZodString;
958
+ zodNewSchema: TNewNext;
959
+ initialValue: import("zod").TypeOf<TNewNext>;
960
+ zodClientSchema: TClientNext;
961
+ zodValidationSchema: TValidationNext;
962
+ } & {
963
+ transforms: {
964
+ toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
965
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
966
+ };
967
+ };
968
+ };
650
969
  };
651
970
  transform: (transforms: {
652
971
  toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
@@ -661,7 +980,7 @@ declare const schemas: {
661
980
  zodNewSchema: TNewNext;
662
981
  initialValue: import("zod").TypeOf<TNewNext>;
663
982
  zodClientSchema: TClientNext;
664
- zodValidationSchema: TValidationNext;
983
+ zodValidationSchema: TClientNext;
665
984
  } & {
666
985
  transforms: {
667
986
  toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
@@ -671,8 +990,8 @@ declare const schemas: {
671
990
  };
672
991
  };
673
992
  transform: (transforms: {
674
- toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
675
- toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
993
+ toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
994
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
676
995
  }) => {
677
996
  config: {
678
997
  sql: {
@@ -682,37 +1001,16 @@ declare const schemas: {
682
1001
  zodSqlSchema: import("zod").ZodString;
683
1002
  zodNewSchema: TNewNext;
684
1003
  initialValue: import("zod").TypeOf<TNewNext>;
685
- zodClientSchema: TClientNext;
686
- zodValidationSchema: TClientNext;
1004
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1005
+ zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
687
1006
  } & {
688
1007
  transforms: {
689
- toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
690
- toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
1008
+ toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
1009
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
691
1010
  };
692
1011
  };
693
1012
  };
694
1013
  };
695
- transform: (transforms: {
696
- toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
697
- toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
698
- }) => {
699
- config: {
700
- sql: {
701
- type: "varchar";
702
- length: number;
703
- };
704
- zodSqlSchema: import("zod").ZodString;
705
- zodNewSchema: TNewNext;
706
- initialValue: import("zod").TypeOf<TNewNext>;
707
- zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
708
- zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
709
- } & {
710
- transforms: {
711
- toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
712
- toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
713
- };
714
- };
715
- };
716
1014
  };
717
1015
  } | {
718
1016
  field: import("zod").ZodNumber;
@@ -863,39 +1161,135 @@ declare const schemas: {
863
1161
  };
864
1162
  };
865
1163
  };
866
- initialState: <TNewNext extends import("zod").ZodTypeAny, TDefaultNext>(schema: TNewNext | ((tools: {
867
- sql: import("zod").ZodNumber;
868
- }) => TNewNext), defaultValue: () => TDefaultNext) => {
869
- config: {
870
- sql: {
871
- type: "int";
872
- pk: true;
873
- };
874
- zodSqlSchema: import("zod").ZodNumber;
875
- zodNewSchema: TNewNext;
876
- initialValue: import("zod").TypeOf<TNewNext>;
877
- zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
878
- zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
879
- };
880
- validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
881
- sql: import("zod").ZodNumber;
882
- initialState: TNewNext;
883
- client: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
884
- }) => TValidationNext)) => {
1164
+ initialState: {
1165
+ <TDefaultNext>(defaultValue: () => TDefaultNext): {
885
1166
  config: {
886
1167
  sql: {
887
1168
  type: "int";
888
1169
  pk: true;
889
1170
  };
890
1171
  zodSqlSchema: import("zod").ZodNumber;
891
- zodNewSchema: TNewNext;
892
- initialValue: import("zod").TypeOf<TNewNext>;
893
- zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
894
- zodValidationSchema: TValidationNext;
1172
+ zodNewSchema: import("zod").ZodNumber;
1173
+ initialValue: TDefaultNext;
1174
+ zodClientSchema: import("zod").ZodNumber;
1175
+ zodValidationSchema: import("zod").ZodNumber;
1176
+ };
1177
+ validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
1178
+ sql: import("zod").ZodNumber;
1179
+ initialState: import("zod").ZodNumber;
1180
+ client: import("zod").ZodNumber;
1181
+ }) => TValidationNext)) => {
1182
+ config: {
1183
+ sql: {
1184
+ type: "int";
1185
+ pk: true;
1186
+ };
1187
+ zodSqlSchema: import("zod").ZodNumber;
1188
+ zodNewSchema: import("zod").ZodNumber;
1189
+ initialValue: TDefaultNext;
1190
+ zodClientSchema: import("zod").ZodNumber;
1191
+ zodValidationSchema: TValidationNext;
1192
+ };
1193
+ transform: (transforms: {
1194
+ toClient: (dbValue: number) => number;
1195
+ toDb: (clientValue: number) => number;
1196
+ }) => {
1197
+ config: {
1198
+ sql: {
1199
+ type: "int";
1200
+ pk: true;
1201
+ };
1202
+ zodSqlSchema: import("zod").ZodNumber;
1203
+ zodNewSchema: import("zod").ZodNumber;
1204
+ initialValue: TDefaultNext;
1205
+ zodClientSchema: import("zod").ZodNumber;
1206
+ zodValidationSchema: TValidationNext;
1207
+ } & {
1208
+ transforms: {
1209
+ toClient: (dbValue: number) => number;
1210
+ toDb: (clientValue: number) => number;
1211
+ };
1212
+ };
1213
+ };
1214
+ };
1215
+ client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
1216
+ sql: import("zod").ZodNumber;
1217
+ initialState: import("zod").ZodNumber;
1218
+ }) => TClientNext)) => {
1219
+ config: {
1220
+ sql: {
1221
+ type: "int";
1222
+ pk: true;
1223
+ };
1224
+ zodSqlSchema: import("zod").ZodNumber;
1225
+ zodNewSchema: import("zod").ZodNumber;
1226
+ initialValue: TDefaultNext;
1227
+ zodClientSchema: TClientNext;
1228
+ zodValidationSchema: TClientNext;
1229
+ };
1230
+ validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
1231
+ sql: import("zod").ZodNumber;
1232
+ initialState: import("zod").ZodNumber;
1233
+ client: TClientNext;
1234
+ }) => TValidationNext)) => {
1235
+ config: {
1236
+ sql: {
1237
+ type: "int";
1238
+ pk: true;
1239
+ };
1240
+ zodSqlSchema: import("zod").ZodNumber;
1241
+ zodNewSchema: import("zod").ZodNumber;
1242
+ initialValue: TDefaultNext;
1243
+ zodClientSchema: TClientNext;
1244
+ zodValidationSchema: TValidationNext;
1245
+ };
1246
+ transform: (transforms: {
1247
+ toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
1248
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
1249
+ }) => {
1250
+ config: {
1251
+ sql: {
1252
+ type: "int";
1253
+ pk: true;
1254
+ };
1255
+ zodSqlSchema: import("zod").ZodNumber;
1256
+ zodNewSchema: import("zod").ZodNumber;
1257
+ initialValue: TDefaultNext;
1258
+ zodClientSchema: TClientNext;
1259
+ zodValidationSchema: TValidationNext;
1260
+ } & {
1261
+ transforms: {
1262
+ toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
1263
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
1264
+ };
1265
+ };
1266
+ };
1267
+ };
1268
+ transform: (transforms: {
1269
+ toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
1270
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
1271
+ }) => {
1272
+ config: {
1273
+ sql: {
1274
+ type: "int";
1275
+ pk: true;
1276
+ };
1277
+ zodSqlSchema: import("zod").ZodNumber;
1278
+ zodNewSchema: import("zod").ZodNumber;
1279
+ initialValue: TDefaultNext;
1280
+ zodClientSchema: TClientNext;
1281
+ zodValidationSchema: TClientNext;
1282
+ } & {
1283
+ transforms: {
1284
+ toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
1285
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
1286
+ };
1287
+ };
1288
+ };
895
1289
  };
896
1290
  transform: (transforms: {
897
- toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
898
- toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
1291
+ toClient: (dbValue: number) => number;
1292
+ toDb: (clientValue: number) => number;
899
1293
  }) => {
900
1294
  config: {
901
1295
  sql: {
@@ -903,22 +1297,21 @@ declare const schemas: {
903
1297
  pk: true;
904
1298
  };
905
1299
  zodSqlSchema: import("zod").ZodNumber;
906
- zodNewSchema: TNewNext;
907
- initialValue: import("zod").TypeOf<TNewNext>;
908
- zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
909
- zodValidationSchema: TValidationNext;
1300
+ zodNewSchema: import("zod").ZodNumber;
1301
+ initialValue: TDefaultNext;
1302
+ zodClientSchema: import("zod").ZodNumber;
1303
+ zodValidationSchema: import("zod").ZodNumber;
910
1304
  } & {
911
1305
  transforms: {
912
- toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
913
- toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
1306
+ toClient: (dbValue: number) => number;
1307
+ toDb: (clientValue: number) => number;
914
1308
  };
915
1309
  };
916
1310
  };
917
1311
  };
918
- client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
1312
+ <TNewNext extends import("zod").ZodTypeAny, TDefaultNext>(schema: TNewNext | ((tools: {
919
1313
  sql: import("zod").ZodNumber;
920
- initialState: TNewNext;
921
- }) => TClientNext)) => {
1314
+ }) => TNewNext), defaultValue: () => TDefaultNext): {
922
1315
  config: {
923
1316
  sql: {
924
1317
  type: "int";
@@ -927,14 +1320,51 @@ declare const schemas: {
927
1320
  zodSqlSchema: import("zod").ZodNumber;
928
1321
  zodNewSchema: TNewNext;
929
1322
  initialValue: import("zod").TypeOf<TNewNext>;
930
- zodClientSchema: TClientNext;
931
- zodValidationSchema: TClientNext;
1323
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
1324
+ zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
1325
+ };
1326
+ validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
1327
+ sql: import("zod").ZodNumber;
1328
+ initialState: TNewNext;
1329
+ client: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
1330
+ }) => TValidationNext)) => {
1331
+ config: {
1332
+ sql: {
1333
+ type: "int";
1334
+ pk: true;
1335
+ };
1336
+ zodSqlSchema: import("zod").ZodNumber;
1337
+ zodNewSchema: TNewNext;
1338
+ initialValue: import("zod").TypeOf<TNewNext>;
1339
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
1340
+ zodValidationSchema: TValidationNext;
1341
+ };
1342
+ transform: (transforms: {
1343
+ toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
1344
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
1345
+ }) => {
1346
+ config: {
1347
+ sql: {
1348
+ type: "int";
1349
+ pk: true;
1350
+ };
1351
+ zodSqlSchema: import("zod").ZodNumber;
1352
+ zodNewSchema: TNewNext;
1353
+ initialValue: import("zod").TypeOf<TNewNext>;
1354
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
1355
+ zodValidationSchema: TValidationNext;
1356
+ } & {
1357
+ transforms: {
1358
+ toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
1359
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
1360
+ };
1361
+ };
1362
+ };
932
1363
  };
933
- validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
1364
+ client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
934
1365
  sql: import("zod").ZodNumber;
935
1366
  initialState: TNewNext;
936
- client: TClientNext;
937
- }) => TValidationNext)) => {
1367
+ }) => TClientNext)) => {
938
1368
  config: {
939
1369
  sql: {
940
1370
  type: "int";
@@ -944,7 +1374,45 @@ declare const schemas: {
944
1374
  zodNewSchema: TNewNext;
945
1375
  initialValue: import("zod").TypeOf<TNewNext>;
946
1376
  zodClientSchema: TClientNext;
947
- zodValidationSchema: TValidationNext;
1377
+ zodValidationSchema: TClientNext;
1378
+ };
1379
+ validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
1380
+ sql: import("zod").ZodNumber;
1381
+ initialState: TNewNext;
1382
+ client: TClientNext;
1383
+ }) => TValidationNext)) => {
1384
+ config: {
1385
+ sql: {
1386
+ type: "int";
1387
+ pk: true;
1388
+ };
1389
+ zodSqlSchema: import("zod").ZodNumber;
1390
+ zodNewSchema: TNewNext;
1391
+ initialValue: import("zod").TypeOf<TNewNext>;
1392
+ zodClientSchema: TClientNext;
1393
+ zodValidationSchema: TValidationNext;
1394
+ };
1395
+ transform: (transforms: {
1396
+ toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
1397
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
1398
+ }) => {
1399
+ config: {
1400
+ sql: {
1401
+ type: "int";
1402
+ pk: true;
1403
+ };
1404
+ zodSqlSchema: import("zod").ZodNumber;
1405
+ zodNewSchema: TNewNext;
1406
+ initialValue: import("zod").TypeOf<TNewNext>;
1407
+ zodClientSchema: TClientNext;
1408
+ zodValidationSchema: TValidationNext;
1409
+ } & {
1410
+ transforms: {
1411
+ toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
1412
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
1413
+ };
1414
+ };
1415
+ };
948
1416
  };
949
1417
  transform: (transforms: {
950
1418
  toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
@@ -959,7 +1427,7 @@ declare const schemas: {
959
1427
  zodNewSchema: TNewNext;
960
1428
  initialValue: import("zod").TypeOf<TNewNext>;
961
1429
  zodClientSchema: TClientNext;
962
- zodValidationSchema: TValidationNext;
1430
+ zodValidationSchema: TClientNext;
963
1431
  } & {
964
1432
  transforms: {
965
1433
  toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
@@ -969,8 +1437,8 @@ declare const schemas: {
969
1437
  };
970
1438
  };
971
1439
  transform: (transforms: {
972
- toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
973
- toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
1440
+ toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
1441
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
974
1442
  }) => {
975
1443
  config: {
976
1444
  sql: {
@@ -980,37 +1448,16 @@ declare const schemas: {
980
1448
  zodSqlSchema: import("zod").ZodNumber;
981
1449
  zodNewSchema: TNewNext;
982
1450
  initialValue: import("zod").TypeOf<TNewNext>;
983
- zodClientSchema: TClientNext;
984
- zodValidationSchema: TClientNext;
1451
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
1452
+ zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
985
1453
  } & {
986
1454
  transforms: {
987
- toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
988
- toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
1455
+ toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
1456
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
989
1457
  };
990
1458
  };
991
1459
  };
992
1460
  };
993
- transform: (transforms: {
994
- toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
995
- toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
996
- }) => {
997
- config: {
998
- sql: {
999
- type: "int";
1000
- pk: true;
1001
- };
1002
- zodSqlSchema: import("zod").ZodNumber;
1003
- zodNewSchema: TNewNext;
1004
- initialValue: import("zod").TypeOf<TNewNext>;
1005
- zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
1006
- zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
1007
- } & {
1008
- transforms: {
1009
- toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
1010
- toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
1011
- };
1012
- };
1013
- };
1014
1461
  };
1015
1462
  };
1016
1463
  } | {
@@ -1055,14 +1502,14 @@ declare const schemas: {
1055
1502
  pk: true;
1056
1503
  };
1057
1504
  zodSqlSchema: import("zod").ZodNumber;
1058
- zodNewSchema: import("zod").ZodString;
1505
+ zodNewSchema: import("zod").ZodNumber;
1059
1506
  initialValue: string;
1060
- zodClientSchema: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>;
1507
+ zodClientSchema: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodNumber]>;
1061
1508
  zodValidationSchema: import("zod").ZodString;
1062
1509
  } & {
1063
1510
  transforms: {
1064
- toClient: (dbValue: number) => string | number;
1065
- toDb: (clientValue: string | number) => number;
1511
+ toClient: (dbValue: number) => number;
1512
+ toDb: (clientValue: number) => number;
1066
1513
  };
1067
1514
  };
1068
1515
  };
@@ -1141,15 +1588,206 @@ declare const schemas: {
1141
1588
  type: "varchar";
1142
1589
  length: number;
1143
1590
  };
1144
- zodSqlSchema: import("zod").ZodString;
1145
- zodNewSchema: import("zod").ZodString;
1146
- initialValue: string;
1147
- zodClientSchema: TClientNext;
1148
- zodValidationSchema: TValidationNext;
1591
+ zodSqlSchema: import("zod").ZodString;
1592
+ zodNewSchema: import("zod").ZodString;
1593
+ initialValue: string;
1594
+ zodClientSchema: TClientNext;
1595
+ zodValidationSchema: TValidationNext;
1596
+ };
1597
+ transform: (transforms: {
1598
+ toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
1599
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
1600
+ }) => {
1601
+ config: {
1602
+ sql: {
1603
+ type: "varchar";
1604
+ length: number;
1605
+ };
1606
+ zodSqlSchema: import("zod").ZodString;
1607
+ zodNewSchema: import("zod").ZodString;
1608
+ initialValue: string;
1609
+ zodClientSchema: TClientNext;
1610
+ zodValidationSchema: TValidationNext;
1611
+ } & {
1612
+ transforms: {
1613
+ toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
1614
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
1615
+ };
1616
+ };
1617
+ };
1618
+ };
1619
+ transform: (transforms: {
1620
+ toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
1621
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
1622
+ }) => {
1623
+ config: {
1624
+ sql: {
1625
+ type: "varchar";
1626
+ length: number;
1627
+ };
1628
+ zodSqlSchema: import("zod").ZodString;
1629
+ zodNewSchema: import("zod").ZodString;
1630
+ initialValue: string;
1631
+ zodClientSchema: TClientNext;
1632
+ zodValidationSchema: TClientNext;
1633
+ } & {
1634
+ transforms: {
1635
+ toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
1636
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
1637
+ };
1638
+ };
1639
+ };
1640
+ };
1641
+ transform: (transforms: {
1642
+ toClient: (dbValue: string) => string;
1643
+ toDb: (clientValue: string) => string;
1644
+ }) => {
1645
+ config: {
1646
+ sql: {
1647
+ type: "varchar";
1648
+ length: number;
1649
+ };
1650
+ zodSqlSchema: import("zod").ZodString;
1651
+ zodNewSchema: import("zod").ZodString;
1652
+ initialValue: string;
1653
+ zodClientSchema: import("zod").ZodString;
1654
+ zodValidationSchema: import("zod").ZodString;
1655
+ } & {
1656
+ transforms: {
1657
+ toClient: (dbValue: string) => string;
1658
+ toDb: (clientValue: string) => string;
1659
+ };
1660
+ };
1661
+ };
1662
+ initialState: {
1663
+ <TDefaultNext>(defaultValue: () => TDefaultNext): {
1664
+ config: {
1665
+ sql: {
1666
+ type: "varchar";
1667
+ length: number;
1668
+ };
1669
+ zodSqlSchema: import("zod").ZodString;
1670
+ zodNewSchema: import("zod").ZodString;
1671
+ initialValue: TDefaultNext;
1672
+ zodClientSchema: import("zod").ZodString;
1673
+ zodValidationSchema: import("zod").ZodString;
1674
+ };
1675
+ validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
1676
+ sql: import("zod").ZodString;
1677
+ initialState: import("zod").ZodString;
1678
+ client: import("zod").ZodString;
1679
+ }) => TValidationNext)) => {
1680
+ config: {
1681
+ sql: {
1682
+ type: "varchar";
1683
+ length: number;
1684
+ };
1685
+ zodSqlSchema: import("zod").ZodString;
1686
+ zodNewSchema: import("zod").ZodString;
1687
+ initialValue: TDefaultNext;
1688
+ zodClientSchema: import("zod").ZodString;
1689
+ zodValidationSchema: TValidationNext;
1690
+ };
1691
+ transform: (transforms: {
1692
+ toClient: (dbValue: string) => string;
1693
+ toDb: (clientValue: string) => string;
1694
+ }) => {
1695
+ config: {
1696
+ sql: {
1697
+ type: "varchar";
1698
+ length: number;
1699
+ };
1700
+ zodSqlSchema: import("zod").ZodString;
1701
+ zodNewSchema: import("zod").ZodString;
1702
+ initialValue: TDefaultNext;
1703
+ zodClientSchema: import("zod").ZodString;
1704
+ zodValidationSchema: TValidationNext;
1705
+ } & {
1706
+ transforms: {
1707
+ toClient: (dbValue: string) => string;
1708
+ toDb: (clientValue: string) => string;
1709
+ };
1710
+ };
1711
+ };
1712
+ };
1713
+ client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
1714
+ sql: import("zod").ZodString;
1715
+ initialState: import("zod").ZodString;
1716
+ }) => TClientNext)) => {
1717
+ config: {
1718
+ sql: {
1719
+ type: "varchar";
1720
+ length: number;
1721
+ };
1722
+ zodSqlSchema: import("zod").ZodString;
1723
+ zodNewSchema: import("zod").ZodString;
1724
+ initialValue: TDefaultNext;
1725
+ zodClientSchema: TClientNext;
1726
+ zodValidationSchema: TClientNext;
1727
+ };
1728
+ validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
1729
+ sql: import("zod").ZodString;
1730
+ initialState: import("zod").ZodString;
1731
+ client: TClientNext;
1732
+ }) => TValidationNext)) => {
1733
+ config: {
1734
+ sql: {
1735
+ type: "varchar";
1736
+ length: number;
1737
+ };
1738
+ zodSqlSchema: import("zod").ZodString;
1739
+ zodNewSchema: import("zod").ZodString;
1740
+ initialValue: TDefaultNext;
1741
+ zodClientSchema: TClientNext;
1742
+ zodValidationSchema: TValidationNext;
1743
+ };
1744
+ transform: (transforms: {
1745
+ toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
1746
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
1747
+ }) => {
1748
+ config: {
1749
+ sql: {
1750
+ type: "varchar";
1751
+ length: number;
1752
+ };
1753
+ zodSqlSchema: import("zod").ZodString;
1754
+ zodNewSchema: import("zod").ZodString;
1755
+ initialValue: TDefaultNext;
1756
+ zodClientSchema: TClientNext;
1757
+ zodValidationSchema: TValidationNext;
1758
+ } & {
1759
+ transforms: {
1760
+ toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
1761
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
1762
+ };
1763
+ };
1764
+ };
1765
+ };
1766
+ transform: (transforms: {
1767
+ toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
1768
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
1769
+ }) => {
1770
+ config: {
1771
+ sql: {
1772
+ type: "varchar";
1773
+ length: number;
1774
+ };
1775
+ zodSqlSchema: import("zod").ZodString;
1776
+ zodNewSchema: import("zod").ZodString;
1777
+ initialValue: TDefaultNext;
1778
+ zodClientSchema: TClientNext;
1779
+ zodValidationSchema: TClientNext;
1780
+ } & {
1781
+ transforms: {
1782
+ toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
1783
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
1784
+ };
1785
+ };
1786
+ };
1149
1787
  };
1150
1788
  transform: (transforms: {
1151
- toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
1152
- toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
1789
+ toClient: (dbValue: string) => string;
1790
+ toDb: (clientValue: string) => string;
1153
1791
  }) => {
1154
1792
  config: {
1155
1793
  sql: {
@@ -1158,79 +1796,20 @@ declare const schemas: {
1158
1796
  };
1159
1797
  zodSqlSchema: import("zod").ZodString;
1160
1798
  zodNewSchema: import("zod").ZodString;
1161
- initialValue: string;
1162
- zodClientSchema: TClientNext;
1163
- zodValidationSchema: TValidationNext;
1799
+ initialValue: TDefaultNext;
1800
+ zodClientSchema: import("zod").ZodString;
1801
+ zodValidationSchema: import("zod").ZodString;
1164
1802
  } & {
1165
1803
  transforms: {
1166
- toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
1167
- toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
1804
+ toClient: (dbValue: string) => string;
1805
+ toDb: (clientValue: string) => string;
1168
1806
  };
1169
1807
  };
1170
1808
  };
1171
1809
  };
1172
- transform: (transforms: {
1173
- toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
1174
- toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
1175
- }) => {
1176
- config: {
1177
- sql: {
1178
- type: "varchar";
1179
- length: number;
1180
- };
1181
- zodSqlSchema: import("zod").ZodString;
1182
- zodNewSchema: import("zod").ZodString;
1183
- initialValue: string;
1184
- zodClientSchema: TClientNext;
1185
- zodValidationSchema: TClientNext;
1186
- } & {
1187
- transforms: {
1188
- toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
1189
- toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
1190
- };
1191
- };
1192
- };
1193
- };
1194
- transform: (transforms: {
1195
- toClient: (dbValue: string) => string;
1196
- toDb: (clientValue: string) => string;
1197
- }) => {
1198
- config: {
1199
- sql: {
1200
- type: "varchar";
1201
- length: number;
1202
- };
1203
- zodSqlSchema: import("zod").ZodString;
1204
- zodNewSchema: import("zod").ZodString;
1205
- initialValue: string;
1206
- zodClientSchema: import("zod").ZodString;
1207
- zodValidationSchema: import("zod").ZodString;
1208
- } & {
1209
- transforms: {
1210
- toClient: (dbValue: string) => string;
1211
- toDb: (clientValue: string) => string;
1212
- };
1213
- };
1214
- };
1215
- initialState: <TNewNext extends import("zod").ZodTypeAny, TDefaultNext>(schema: TNewNext | ((tools: {
1216
- sql: import("zod").ZodString;
1217
- }) => TNewNext), defaultValue: () => TDefaultNext) => {
1218
- config: {
1219
- sql: {
1220
- type: "varchar";
1221
- length: number;
1222
- };
1223
- zodSqlSchema: import("zod").ZodString;
1224
- zodNewSchema: TNewNext;
1225
- initialValue: import("zod").TypeOf<TNewNext>;
1226
- zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1227
- zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1228
- };
1229
- validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
1810
+ <TNewNext extends import("zod").ZodTypeAny, TDefaultNext>(schema: TNewNext | ((tools: {
1230
1811
  sql: import("zod").ZodString;
1231
- initialState: TNewNext;
1232
- client: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1233
- }) => TValidationNext)) => {
1812
+ }) => TNewNext), defaultValue: () => TDefaultNext): {
1234
1813
  config: {
1235
1814
  sql: {
1236
1815
  type: "varchar";
@@ -1240,12 +1819,13 @@ declare const schemas: {
1240
1819
  zodNewSchema: TNewNext;
1241
1820
  initialValue: import("zod").TypeOf<TNewNext>;
1242
1821
  zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1243
- zodValidationSchema: TValidationNext;
1822
+ zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1244
1823
  };
1245
- transform: (transforms: {
1246
- toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
1247
- toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
1248
- }) => {
1824
+ validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
1825
+ sql: import("zod").ZodString;
1826
+ initialState: TNewNext;
1827
+ client: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1828
+ }) => TValidationNext)) => {
1249
1829
  config: {
1250
1830
  sql: {
1251
1831
  type: "varchar";
@@ -1256,34 +1836,33 @@ declare const schemas: {
1256
1836
  initialValue: import("zod").TypeOf<TNewNext>;
1257
1837
  zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1258
1838
  zodValidationSchema: TValidationNext;
1259
- } & {
1260
- transforms: {
1261
- toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
1262
- toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
1263
- };
1264
1839
  };
1265
- };
1266
- };
1267
- client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
1268
- sql: import("zod").ZodString;
1269
- initialState: TNewNext;
1270
- }) => TClientNext)) => {
1271
- config: {
1272
- sql: {
1273
- type: "varchar";
1274
- length: number;
1840
+ transform: (transforms: {
1841
+ toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
1842
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
1843
+ }) => {
1844
+ config: {
1845
+ sql: {
1846
+ type: "varchar";
1847
+ length: number;
1848
+ };
1849
+ zodSqlSchema: import("zod").ZodString;
1850
+ zodNewSchema: TNewNext;
1851
+ initialValue: import("zod").TypeOf<TNewNext>;
1852
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1853
+ zodValidationSchema: TValidationNext;
1854
+ } & {
1855
+ transforms: {
1856
+ toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
1857
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
1858
+ };
1859
+ };
1275
1860
  };
1276
- zodSqlSchema: import("zod").ZodString;
1277
- zodNewSchema: TNewNext;
1278
- initialValue: import("zod").TypeOf<TNewNext>;
1279
- zodClientSchema: TClientNext;
1280
- zodValidationSchema: TClientNext;
1281
1861
  };
1282
- validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
1862
+ client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
1283
1863
  sql: import("zod").ZodString;
1284
1864
  initialState: TNewNext;
1285
- client: TClientNext;
1286
- }) => TValidationNext)) => {
1865
+ }) => TClientNext)) => {
1287
1866
  config: {
1288
1867
  sql: {
1289
1868
  type: "varchar";
@@ -1293,7 +1872,45 @@ declare const schemas: {
1293
1872
  zodNewSchema: TNewNext;
1294
1873
  initialValue: import("zod").TypeOf<TNewNext>;
1295
1874
  zodClientSchema: TClientNext;
1296
- zodValidationSchema: TValidationNext;
1875
+ zodValidationSchema: TClientNext;
1876
+ };
1877
+ validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
1878
+ sql: import("zod").ZodString;
1879
+ initialState: TNewNext;
1880
+ client: TClientNext;
1881
+ }) => TValidationNext)) => {
1882
+ config: {
1883
+ sql: {
1884
+ type: "varchar";
1885
+ length: number;
1886
+ };
1887
+ zodSqlSchema: import("zod").ZodString;
1888
+ zodNewSchema: TNewNext;
1889
+ initialValue: import("zod").TypeOf<TNewNext>;
1890
+ zodClientSchema: TClientNext;
1891
+ zodValidationSchema: TValidationNext;
1892
+ };
1893
+ transform: (transforms: {
1894
+ toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
1895
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
1896
+ }) => {
1897
+ config: {
1898
+ sql: {
1899
+ type: "varchar";
1900
+ length: number;
1901
+ };
1902
+ zodSqlSchema: import("zod").ZodString;
1903
+ zodNewSchema: TNewNext;
1904
+ initialValue: import("zod").TypeOf<TNewNext>;
1905
+ zodClientSchema: TClientNext;
1906
+ zodValidationSchema: TValidationNext;
1907
+ } & {
1908
+ transforms: {
1909
+ toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
1910
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
1911
+ };
1912
+ };
1913
+ };
1297
1914
  };
1298
1915
  transform: (transforms: {
1299
1916
  toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
@@ -1308,7 +1925,7 @@ declare const schemas: {
1308
1925
  zodNewSchema: TNewNext;
1309
1926
  initialValue: import("zod").TypeOf<TNewNext>;
1310
1927
  zodClientSchema: TClientNext;
1311
- zodValidationSchema: TValidationNext;
1928
+ zodValidationSchema: TClientNext;
1312
1929
  } & {
1313
1930
  transforms: {
1314
1931
  toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
@@ -1318,8 +1935,8 @@ declare const schemas: {
1318
1935
  };
1319
1936
  };
1320
1937
  transform: (transforms: {
1321
- toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
1322
- toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
1938
+ toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
1939
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
1323
1940
  }) => {
1324
1941
  config: {
1325
1942
  sql: {
@@ -1329,37 +1946,16 @@ declare const schemas: {
1329
1946
  zodSqlSchema: import("zod").ZodString;
1330
1947
  zodNewSchema: TNewNext;
1331
1948
  initialValue: import("zod").TypeOf<TNewNext>;
1332
- zodClientSchema: TClientNext;
1333
- zodValidationSchema: TClientNext;
1949
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1950
+ zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1334
1951
  } & {
1335
1952
  transforms: {
1336
- toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
1337
- toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
1953
+ toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
1954
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
1338
1955
  };
1339
1956
  };
1340
1957
  };
1341
1958
  };
1342
- transform: (transforms: {
1343
- toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
1344
- toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
1345
- }) => {
1346
- config: {
1347
- sql: {
1348
- type: "varchar";
1349
- length: number;
1350
- };
1351
- zodSqlSchema: import("zod").ZodString;
1352
- zodNewSchema: TNewNext;
1353
- initialValue: import("zod").TypeOf<TNewNext>;
1354
- zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1355
- zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1356
- } & {
1357
- transforms: {
1358
- toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
1359
- toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
1360
- };
1361
- };
1362
- };
1363
1959
  };
1364
1960
  };
1365
1961
  userId: {
@@ -1511,39 +2107,135 @@ declare const schemas: {
1511
2107
  };
1512
2108
  };
1513
2109
  };
1514
- initialState: <TNewNext extends import("zod").ZodTypeAny, TDefaultNext>(schema: TNewNext | ((tools: {
1515
- sql: import("zod").ZodNumber;
1516
- }) => TNewNext), defaultValue: () => TDefaultNext) => {
1517
- config: {
1518
- sql: {
1519
- type: "int";
1520
- pk: true;
1521
- };
1522
- zodSqlSchema: import("zod").ZodNumber;
1523
- zodNewSchema: TNewNext;
1524
- initialValue: import("zod").TypeOf<TNewNext>;
1525
- zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
1526
- zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
1527
- };
1528
- validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
1529
- sql: import("zod").ZodNumber;
1530
- initialState: TNewNext;
1531
- client: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
1532
- }) => TValidationNext)) => {
2110
+ initialState: {
2111
+ <TDefaultNext>(defaultValue: () => TDefaultNext): {
1533
2112
  config: {
1534
2113
  sql: {
1535
2114
  type: "int";
1536
2115
  pk: true;
1537
2116
  };
1538
- zodSqlSchema: import("zod").ZodNumber;
1539
- zodNewSchema: TNewNext;
1540
- initialValue: import("zod").TypeOf<TNewNext>;
1541
- zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
1542
- zodValidationSchema: TValidationNext;
2117
+ zodSqlSchema: import("zod").ZodNumber;
2118
+ zodNewSchema: import("zod").ZodNumber;
2119
+ initialValue: TDefaultNext;
2120
+ zodClientSchema: import("zod").ZodNumber;
2121
+ zodValidationSchema: import("zod").ZodNumber;
2122
+ };
2123
+ validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
2124
+ sql: import("zod").ZodNumber;
2125
+ initialState: import("zod").ZodNumber;
2126
+ client: import("zod").ZodNumber;
2127
+ }) => TValidationNext)) => {
2128
+ config: {
2129
+ sql: {
2130
+ type: "int";
2131
+ pk: true;
2132
+ };
2133
+ zodSqlSchema: import("zod").ZodNumber;
2134
+ zodNewSchema: import("zod").ZodNumber;
2135
+ initialValue: TDefaultNext;
2136
+ zodClientSchema: import("zod").ZodNumber;
2137
+ zodValidationSchema: TValidationNext;
2138
+ };
2139
+ transform: (transforms: {
2140
+ toClient: (dbValue: number) => number;
2141
+ toDb: (clientValue: number) => number;
2142
+ }) => {
2143
+ config: {
2144
+ sql: {
2145
+ type: "int";
2146
+ pk: true;
2147
+ };
2148
+ zodSqlSchema: import("zod").ZodNumber;
2149
+ zodNewSchema: import("zod").ZodNumber;
2150
+ initialValue: TDefaultNext;
2151
+ zodClientSchema: import("zod").ZodNumber;
2152
+ zodValidationSchema: TValidationNext;
2153
+ } & {
2154
+ transforms: {
2155
+ toClient: (dbValue: number) => number;
2156
+ toDb: (clientValue: number) => number;
2157
+ };
2158
+ };
2159
+ };
2160
+ };
2161
+ client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
2162
+ sql: import("zod").ZodNumber;
2163
+ initialState: import("zod").ZodNumber;
2164
+ }) => TClientNext)) => {
2165
+ config: {
2166
+ sql: {
2167
+ type: "int";
2168
+ pk: true;
2169
+ };
2170
+ zodSqlSchema: import("zod").ZodNumber;
2171
+ zodNewSchema: import("zod").ZodNumber;
2172
+ initialValue: TDefaultNext;
2173
+ zodClientSchema: TClientNext;
2174
+ zodValidationSchema: TClientNext;
2175
+ };
2176
+ validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
2177
+ sql: import("zod").ZodNumber;
2178
+ initialState: import("zod").ZodNumber;
2179
+ client: TClientNext;
2180
+ }) => TValidationNext)) => {
2181
+ config: {
2182
+ sql: {
2183
+ type: "int";
2184
+ pk: true;
2185
+ };
2186
+ zodSqlSchema: import("zod").ZodNumber;
2187
+ zodNewSchema: import("zod").ZodNumber;
2188
+ initialValue: TDefaultNext;
2189
+ zodClientSchema: TClientNext;
2190
+ zodValidationSchema: TValidationNext;
2191
+ };
2192
+ transform: (transforms: {
2193
+ toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
2194
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
2195
+ }) => {
2196
+ config: {
2197
+ sql: {
2198
+ type: "int";
2199
+ pk: true;
2200
+ };
2201
+ zodSqlSchema: import("zod").ZodNumber;
2202
+ zodNewSchema: import("zod").ZodNumber;
2203
+ initialValue: TDefaultNext;
2204
+ zodClientSchema: TClientNext;
2205
+ zodValidationSchema: TValidationNext;
2206
+ } & {
2207
+ transforms: {
2208
+ toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
2209
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
2210
+ };
2211
+ };
2212
+ };
2213
+ };
2214
+ transform: (transforms: {
2215
+ toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
2216
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
2217
+ }) => {
2218
+ config: {
2219
+ sql: {
2220
+ type: "int";
2221
+ pk: true;
2222
+ };
2223
+ zodSqlSchema: import("zod").ZodNumber;
2224
+ zodNewSchema: import("zod").ZodNumber;
2225
+ initialValue: TDefaultNext;
2226
+ zodClientSchema: TClientNext;
2227
+ zodValidationSchema: TClientNext;
2228
+ } & {
2229
+ transforms: {
2230
+ toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
2231
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
2232
+ };
2233
+ };
2234
+ };
1543
2235
  };
1544
2236
  transform: (transforms: {
1545
- toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
1546
- toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
2237
+ toClient: (dbValue: number) => number;
2238
+ toDb: (clientValue: number) => number;
1547
2239
  }) => {
1548
2240
  config: {
1549
2241
  sql: {
@@ -1551,22 +2243,21 @@ declare const schemas: {
1551
2243
  pk: true;
1552
2244
  };
1553
2245
  zodSqlSchema: import("zod").ZodNumber;
1554
- zodNewSchema: TNewNext;
1555
- initialValue: import("zod").TypeOf<TNewNext>;
1556
- zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
1557
- zodValidationSchema: TValidationNext;
2246
+ zodNewSchema: import("zod").ZodNumber;
2247
+ initialValue: TDefaultNext;
2248
+ zodClientSchema: import("zod").ZodNumber;
2249
+ zodValidationSchema: import("zod").ZodNumber;
1558
2250
  } & {
1559
2251
  transforms: {
1560
- toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
1561
- toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
2252
+ toClient: (dbValue: number) => number;
2253
+ toDb: (clientValue: number) => number;
1562
2254
  };
1563
2255
  };
1564
2256
  };
1565
2257
  };
1566
- client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
2258
+ <TNewNext extends import("zod").ZodTypeAny, TDefaultNext>(schema: TNewNext | ((tools: {
1567
2259
  sql: import("zod").ZodNumber;
1568
- initialState: TNewNext;
1569
- }) => TClientNext)) => {
2260
+ }) => TNewNext), defaultValue: () => TDefaultNext): {
1570
2261
  config: {
1571
2262
  sql: {
1572
2263
  type: "int";
@@ -1575,13 +2266,13 @@ declare const schemas: {
1575
2266
  zodSqlSchema: import("zod").ZodNumber;
1576
2267
  zodNewSchema: TNewNext;
1577
2268
  initialValue: import("zod").TypeOf<TNewNext>;
1578
- zodClientSchema: TClientNext;
1579
- zodValidationSchema: TClientNext;
2269
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
2270
+ zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
1580
2271
  };
1581
2272
  validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
1582
2273
  sql: import("zod").ZodNumber;
1583
2274
  initialState: TNewNext;
1584
- client: TClientNext;
2275
+ client: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
1585
2276
  }) => TValidationNext)) => {
1586
2277
  config: {
1587
2278
  sql: {
@@ -1591,9 +2282,84 @@ declare const schemas: {
1591
2282
  zodSqlSchema: import("zod").ZodNumber;
1592
2283
  zodNewSchema: TNewNext;
1593
2284
  initialValue: import("zod").TypeOf<TNewNext>;
1594
- zodClientSchema: TClientNext;
2285
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
1595
2286
  zodValidationSchema: TValidationNext;
1596
2287
  };
2288
+ transform: (transforms: {
2289
+ toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
2290
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
2291
+ }) => {
2292
+ config: {
2293
+ sql: {
2294
+ type: "int";
2295
+ pk: true;
2296
+ };
2297
+ zodSqlSchema: import("zod").ZodNumber;
2298
+ zodNewSchema: TNewNext;
2299
+ initialValue: import("zod").TypeOf<TNewNext>;
2300
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
2301
+ zodValidationSchema: TValidationNext;
2302
+ } & {
2303
+ transforms: {
2304
+ toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
2305
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
2306
+ };
2307
+ };
2308
+ };
2309
+ };
2310
+ client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
2311
+ sql: import("zod").ZodNumber;
2312
+ initialState: TNewNext;
2313
+ }) => TClientNext)) => {
2314
+ config: {
2315
+ sql: {
2316
+ type: "int";
2317
+ pk: true;
2318
+ };
2319
+ zodSqlSchema: import("zod").ZodNumber;
2320
+ zodNewSchema: TNewNext;
2321
+ initialValue: import("zod").TypeOf<TNewNext>;
2322
+ zodClientSchema: TClientNext;
2323
+ zodValidationSchema: TClientNext;
2324
+ };
2325
+ validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
2326
+ sql: import("zod").ZodNumber;
2327
+ initialState: TNewNext;
2328
+ client: TClientNext;
2329
+ }) => TValidationNext)) => {
2330
+ config: {
2331
+ sql: {
2332
+ type: "int";
2333
+ pk: true;
2334
+ };
2335
+ zodSqlSchema: import("zod").ZodNumber;
2336
+ zodNewSchema: TNewNext;
2337
+ initialValue: import("zod").TypeOf<TNewNext>;
2338
+ zodClientSchema: TClientNext;
2339
+ zodValidationSchema: TValidationNext;
2340
+ };
2341
+ transform: (transforms: {
2342
+ toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
2343
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
2344
+ }) => {
2345
+ config: {
2346
+ sql: {
2347
+ type: "int";
2348
+ pk: true;
2349
+ };
2350
+ zodSqlSchema: import("zod").ZodNumber;
2351
+ zodNewSchema: TNewNext;
2352
+ initialValue: import("zod").TypeOf<TNewNext>;
2353
+ zodClientSchema: TClientNext;
2354
+ zodValidationSchema: TValidationNext;
2355
+ } & {
2356
+ transforms: {
2357
+ toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
2358
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
2359
+ };
2360
+ };
2361
+ };
2362
+ };
1597
2363
  transform: (transforms: {
1598
2364
  toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
1599
2365
  toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
@@ -1607,7 +2373,7 @@ declare const schemas: {
1607
2373
  zodNewSchema: TNewNext;
1608
2374
  initialValue: import("zod").TypeOf<TNewNext>;
1609
2375
  zodClientSchema: TClientNext;
1610
- zodValidationSchema: TValidationNext;
2376
+ zodValidationSchema: TClientNext;
1611
2377
  } & {
1612
2378
  transforms: {
1613
2379
  toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
@@ -1617,8 +2383,8 @@ declare const schemas: {
1617
2383
  };
1618
2384
  };
1619
2385
  transform: (transforms: {
1620
- toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
1621
- toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
2386
+ toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
2387
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
1622
2388
  }) => {
1623
2389
  config: {
1624
2390
  sql: {
@@ -1628,37 +2394,16 @@ declare const schemas: {
1628
2394
  zodSqlSchema: import("zod").ZodNumber;
1629
2395
  zodNewSchema: TNewNext;
1630
2396
  initialValue: import("zod").TypeOf<TNewNext>;
1631
- zodClientSchema: TClientNext;
1632
- zodValidationSchema: TClientNext;
2397
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
2398
+ zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
1633
2399
  } & {
1634
2400
  transforms: {
1635
- toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
1636
- toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
2401
+ toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
2402
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
1637
2403
  };
1638
2404
  };
1639
2405
  };
1640
2406
  };
1641
- transform: (transforms: {
1642
- toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
1643
- toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
1644
- }) => {
1645
- config: {
1646
- sql: {
1647
- type: "int";
1648
- pk: true;
1649
- };
1650
- zodSqlSchema: import("zod").ZodNumber;
1651
- zodNewSchema: TNewNext;
1652
- initialValue: import("zod").TypeOf<TNewNext>;
1653
- zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
1654
- zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
1655
- } & {
1656
- transforms: {
1657
- toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
1658
- toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
1659
- };
1660
- };
1661
- };
1662
2407
  };
1663
2408
  };
1664
2409
  };
@@ -1709,14 +2454,14 @@ declare const schemas: {
1709
2454
  pk: true;
1710
2455
  };
1711
2456
  zodSqlSchema: import("zod").ZodNumber;
1712
- zodNewSchema: import("zod").ZodString;
2457
+ zodNewSchema: import("zod").ZodNumber;
1713
2458
  initialValue: string;
1714
- zodClientSchema: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>;
2459
+ zodClientSchema: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodNumber]>;
1715
2460
  zodValidationSchema: import("zod").ZodString;
1716
2461
  } & {
1717
2462
  transforms: {
1718
- toClient: (dbValue: number) => string | number;
1719
- toDb: (clientValue: string | number) => number;
2463
+ toClient: (dbValue: number) => number;
2464
+ toDb: (clientValue: number) => number;
1720
2465
  };
1721
2466
  };
1722
2467
  };
@@ -1866,39 +2611,135 @@ declare const schemas: {
1866
2611
  };
1867
2612
  };
1868
2613
  };
1869
- initialState: <TNewNext extends import("zod").ZodTypeAny, TDefaultNext>(schema: TNewNext | ((tools: {
1870
- sql: import("zod").ZodString;
1871
- }) => TNewNext), defaultValue: () => TDefaultNext) => {
1872
- config: {
1873
- sql: {
1874
- type: "varchar";
1875
- length: number;
1876
- };
1877
- zodSqlSchema: import("zod").ZodString;
1878
- zodNewSchema: TNewNext;
1879
- initialValue: import("zod").TypeOf<TNewNext>;
1880
- zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1881
- zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1882
- };
1883
- validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
1884
- sql: import("zod").ZodString;
1885
- initialState: TNewNext;
1886
- client: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1887
- }) => TValidationNext)) => {
2614
+ initialState: {
2615
+ <TDefaultNext>(defaultValue: () => TDefaultNext): {
1888
2616
  config: {
1889
2617
  sql: {
1890
2618
  type: "varchar";
1891
2619
  length: number;
1892
2620
  };
1893
- zodSqlSchema: import("zod").ZodString;
1894
- zodNewSchema: TNewNext;
1895
- initialValue: import("zod").TypeOf<TNewNext>;
1896
- zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1897
- zodValidationSchema: TValidationNext;
2621
+ zodSqlSchema: import("zod").ZodString;
2622
+ zodNewSchema: import("zod").ZodString;
2623
+ initialValue: TDefaultNext;
2624
+ zodClientSchema: import("zod").ZodString;
2625
+ zodValidationSchema: import("zod").ZodString;
2626
+ };
2627
+ validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
2628
+ sql: import("zod").ZodString;
2629
+ initialState: import("zod").ZodString;
2630
+ client: import("zod").ZodString;
2631
+ }) => TValidationNext)) => {
2632
+ config: {
2633
+ sql: {
2634
+ type: "varchar";
2635
+ length: number;
2636
+ };
2637
+ zodSqlSchema: import("zod").ZodString;
2638
+ zodNewSchema: import("zod").ZodString;
2639
+ initialValue: TDefaultNext;
2640
+ zodClientSchema: import("zod").ZodString;
2641
+ zodValidationSchema: TValidationNext;
2642
+ };
2643
+ transform: (transforms: {
2644
+ toClient: (dbValue: string) => string;
2645
+ toDb: (clientValue: string) => string;
2646
+ }) => {
2647
+ config: {
2648
+ sql: {
2649
+ type: "varchar";
2650
+ length: number;
2651
+ };
2652
+ zodSqlSchema: import("zod").ZodString;
2653
+ zodNewSchema: import("zod").ZodString;
2654
+ initialValue: TDefaultNext;
2655
+ zodClientSchema: import("zod").ZodString;
2656
+ zodValidationSchema: TValidationNext;
2657
+ } & {
2658
+ transforms: {
2659
+ toClient: (dbValue: string) => string;
2660
+ toDb: (clientValue: string) => string;
2661
+ };
2662
+ };
2663
+ };
2664
+ };
2665
+ client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
2666
+ sql: import("zod").ZodString;
2667
+ initialState: import("zod").ZodString;
2668
+ }) => TClientNext)) => {
2669
+ config: {
2670
+ sql: {
2671
+ type: "varchar";
2672
+ length: number;
2673
+ };
2674
+ zodSqlSchema: import("zod").ZodString;
2675
+ zodNewSchema: import("zod").ZodString;
2676
+ initialValue: TDefaultNext;
2677
+ zodClientSchema: TClientNext;
2678
+ zodValidationSchema: TClientNext;
2679
+ };
2680
+ validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
2681
+ sql: import("zod").ZodString;
2682
+ initialState: import("zod").ZodString;
2683
+ client: TClientNext;
2684
+ }) => TValidationNext)) => {
2685
+ config: {
2686
+ sql: {
2687
+ type: "varchar";
2688
+ length: number;
2689
+ };
2690
+ zodSqlSchema: import("zod").ZodString;
2691
+ zodNewSchema: import("zod").ZodString;
2692
+ initialValue: TDefaultNext;
2693
+ zodClientSchema: TClientNext;
2694
+ zodValidationSchema: TValidationNext;
2695
+ };
2696
+ transform: (transforms: {
2697
+ toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
2698
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
2699
+ }) => {
2700
+ config: {
2701
+ sql: {
2702
+ type: "varchar";
2703
+ length: number;
2704
+ };
2705
+ zodSqlSchema: import("zod").ZodString;
2706
+ zodNewSchema: import("zod").ZodString;
2707
+ initialValue: TDefaultNext;
2708
+ zodClientSchema: TClientNext;
2709
+ zodValidationSchema: TValidationNext;
2710
+ } & {
2711
+ transforms: {
2712
+ toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
2713
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
2714
+ };
2715
+ };
2716
+ };
2717
+ };
2718
+ transform: (transforms: {
2719
+ toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
2720
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
2721
+ }) => {
2722
+ config: {
2723
+ sql: {
2724
+ type: "varchar";
2725
+ length: number;
2726
+ };
2727
+ zodSqlSchema: import("zod").ZodString;
2728
+ zodNewSchema: import("zod").ZodString;
2729
+ initialValue: TDefaultNext;
2730
+ zodClientSchema: TClientNext;
2731
+ zodValidationSchema: TClientNext;
2732
+ } & {
2733
+ transforms: {
2734
+ toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
2735
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
2736
+ };
2737
+ };
2738
+ };
1898
2739
  };
1899
2740
  transform: (transforms: {
1900
- toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
1901
- toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
2741
+ toClient: (dbValue: string) => string;
2742
+ toDb: (clientValue: string) => string;
1902
2743
  }) => {
1903
2744
  config: {
1904
2745
  sql: {
@@ -1906,22 +2747,21 @@ declare const schemas: {
1906
2747
  length: number;
1907
2748
  };
1908
2749
  zodSqlSchema: import("zod").ZodString;
1909
- zodNewSchema: TNewNext;
1910
- initialValue: import("zod").TypeOf<TNewNext>;
1911
- zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1912
- zodValidationSchema: TValidationNext;
2750
+ zodNewSchema: import("zod").ZodString;
2751
+ initialValue: TDefaultNext;
2752
+ zodClientSchema: import("zod").ZodString;
2753
+ zodValidationSchema: import("zod").ZodString;
1913
2754
  } & {
1914
2755
  transforms: {
1915
- toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
1916
- toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
2756
+ toClient: (dbValue: string) => string;
2757
+ toDb: (clientValue: string) => string;
1917
2758
  };
1918
2759
  };
1919
2760
  };
1920
2761
  };
1921
- client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
2762
+ <TNewNext extends import("zod").ZodTypeAny, TDefaultNext>(schema: TNewNext | ((tools: {
1922
2763
  sql: import("zod").ZodString;
1923
- initialState: TNewNext;
1924
- }) => TClientNext)) => {
2764
+ }) => TNewNext), defaultValue: () => TDefaultNext): {
1925
2765
  config: {
1926
2766
  sql: {
1927
2767
  type: "varchar";
@@ -1930,13 +2770,13 @@ declare const schemas: {
1930
2770
  zodSqlSchema: import("zod").ZodString;
1931
2771
  zodNewSchema: TNewNext;
1932
2772
  initialValue: import("zod").TypeOf<TNewNext>;
1933
- zodClientSchema: TClientNext;
1934
- zodValidationSchema: TClientNext;
2773
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
2774
+ zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1935
2775
  };
1936
2776
  validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
1937
2777
  sql: import("zod").ZodString;
1938
2778
  initialState: TNewNext;
1939
- client: TClientNext;
2779
+ client: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1940
2780
  }) => TValidationNext)) => {
1941
2781
  config: {
1942
2782
  sql: {
@@ -1946,9 +2786,84 @@ declare const schemas: {
1946
2786
  zodSqlSchema: import("zod").ZodString;
1947
2787
  zodNewSchema: TNewNext;
1948
2788
  initialValue: import("zod").TypeOf<TNewNext>;
1949
- zodClientSchema: TClientNext;
2789
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1950
2790
  zodValidationSchema: TValidationNext;
1951
2791
  };
2792
+ transform: (transforms: {
2793
+ toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
2794
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
2795
+ }) => {
2796
+ config: {
2797
+ sql: {
2798
+ type: "varchar";
2799
+ length: number;
2800
+ };
2801
+ zodSqlSchema: import("zod").ZodString;
2802
+ zodNewSchema: TNewNext;
2803
+ initialValue: import("zod").TypeOf<TNewNext>;
2804
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
2805
+ zodValidationSchema: TValidationNext;
2806
+ } & {
2807
+ transforms: {
2808
+ toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
2809
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
2810
+ };
2811
+ };
2812
+ };
2813
+ };
2814
+ client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
2815
+ sql: import("zod").ZodString;
2816
+ initialState: TNewNext;
2817
+ }) => TClientNext)) => {
2818
+ config: {
2819
+ sql: {
2820
+ type: "varchar";
2821
+ length: number;
2822
+ };
2823
+ zodSqlSchema: import("zod").ZodString;
2824
+ zodNewSchema: TNewNext;
2825
+ initialValue: import("zod").TypeOf<TNewNext>;
2826
+ zodClientSchema: TClientNext;
2827
+ zodValidationSchema: TClientNext;
2828
+ };
2829
+ validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
2830
+ sql: import("zod").ZodString;
2831
+ initialState: TNewNext;
2832
+ client: TClientNext;
2833
+ }) => TValidationNext)) => {
2834
+ config: {
2835
+ sql: {
2836
+ type: "varchar";
2837
+ length: number;
2838
+ };
2839
+ zodSqlSchema: import("zod").ZodString;
2840
+ zodNewSchema: TNewNext;
2841
+ initialValue: import("zod").TypeOf<TNewNext>;
2842
+ zodClientSchema: TClientNext;
2843
+ zodValidationSchema: TValidationNext;
2844
+ };
2845
+ transform: (transforms: {
2846
+ toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
2847
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
2848
+ }) => {
2849
+ config: {
2850
+ sql: {
2851
+ type: "varchar";
2852
+ length: number;
2853
+ };
2854
+ zodSqlSchema: import("zod").ZodString;
2855
+ zodNewSchema: TNewNext;
2856
+ initialValue: import("zod").TypeOf<TNewNext>;
2857
+ zodClientSchema: TClientNext;
2858
+ zodValidationSchema: TValidationNext;
2859
+ } & {
2860
+ transforms: {
2861
+ toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
2862
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
2863
+ };
2864
+ };
2865
+ };
2866
+ };
1952
2867
  transform: (transforms: {
1953
2868
  toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
1954
2869
  toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
@@ -1962,7 +2877,7 @@ declare const schemas: {
1962
2877
  zodNewSchema: TNewNext;
1963
2878
  initialValue: import("zod").TypeOf<TNewNext>;
1964
2879
  zodClientSchema: TClientNext;
1965
- zodValidationSchema: TValidationNext;
2880
+ zodValidationSchema: TClientNext;
1966
2881
  } & {
1967
2882
  transforms: {
1968
2883
  toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
@@ -1972,8 +2887,8 @@ declare const schemas: {
1972
2887
  };
1973
2888
  };
1974
2889
  transform: (transforms: {
1975
- toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
1976
- toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
2890
+ toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
2891
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
1977
2892
  }) => {
1978
2893
  config: {
1979
2894
  sql: {
@@ -1983,37 +2898,16 @@ declare const schemas: {
1983
2898
  zodSqlSchema: import("zod").ZodString;
1984
2899
  zodNewSchema: TNewNext;
1985
2900
  initialValue: import("zod").TypeOf<TNewNext>;
1986
- zodClientSchema: TClientNext;
1987
- zodValidationSchema: TClientNext;
2901
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
2902
+ zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1988
2903
  } & {
1989
2904
  transforms: {
1990
- toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
1991
- toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
2905
+ toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
2906
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
1992
2907
  };
1993
2908
  };
1994
2909
  };
1995
2910
  };
1996
- transform: (transforms: {
1997
- toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
1998
- toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
1999
- }) => {
2000
- config: {
2001
- sql: {
2002
- type: "varchar";
2003
- length: number;
2004
- };
2005
- zodSqlSchema: import("zod").ZodString;
2006
- zodNewSchema: TNewNext;
2007
- initialValue: import("zod").TypeOf<TNewNext>;
2008
- zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
2009
- zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
2010
- } & {
2011
- transforms: {
2012
- toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
2013
- toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
2014
- };
2015
- };
2016
- };
2017
2911
  };
2018
2912
  };
2019
2913
  userId: {
@@ -2111,79 +3005,211 @@ declare const schemas: {
2111
3005
  };
2112
3006
  zodSqlSchema: import("zod").ZodNumber;
2113
3007
  zodNewSchema: import("zod").ZodNumber;
2114
- initialValue: number;
3008
+ initialValue: number;
3009
+ zodClientSchema: TClientNext;
3010
+ zodValidationSchema: TValidationNext;
3011
+ } & {
3012
+ transforms: {
3013
+ toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
3014
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
3015
+ };
3016
+ };
3017
+ };
3018
+ };
3019
+ transform: (transforms: {
3020
+ toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
3021
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
3022
+ }) => {
3023
+ config: {
3024
+ sql: {
3025
+ type: "int";
3026
+ pk: true;
3027
+ };
3028
+ zodSqlSchema: import("zod").ZodNumber;
3029
+ zodNewSchema: import("zod").ZodNumber;
3030
+ initialValue: number;
3031
+ zodClientSchema: TClientNext;
3032
+ zodValidationSchema: TClientNext;
3033
+ } & {
3034
+ transforms: {
3035
+ toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
3036
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
3037
+ };
3038
+ };
3039
+ };
3040
+ };
3041
+ transform: (transforms: {
3042
+ toClient: (dbValue: number) => number;
3043
+ toDb: (clientValue: number) => number;
3044
+ }) => {
3045
+ config: {
3046
+ sql: {
3047
+ type: "int";
3048
+ pk: true;
3049
+ };
3050
+ zodSqlSchema: import("zod").ZodNumber;
3051
+ zodNewSchema: import("zod").ZodNumber;
3052
+ initialValue: number;
3053
+ zodClientSchema: import("zod").ZodNumber;
3054
+ zodValidationSchema: import("zod").ZodNumber;
3055
+ } & {
3056
+ transforms: {
3057
+ toClient: (dbValue: number) => number;
3058
+ toDb: (clientValue: number) => number;
3059
+ };
3060
+ };
3061
+ };
3062
+ initialState: {
3063
+ <TDefaultNext>(defaultValue: () => TDefaultNext): {
3064
+ config: {
3065
+ sql: {
3066
+ type: "int";
3067
+ pk: true;
3068
+ };
3069
+ zodSqlSchema: import("zod").ZodNumber;
3070
+ zodNewSchema: import("zod").ZodNumber;
3071
+ initialValue: TDefaultNext;
3072
+ zodClientSchema: import("zod").ZodNumber;
3073
+ zodValidationSchema: import("zod").ZodNumber;
3074
+ };
3075
+ validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
3076
+ sql: import("zod").ZodNumber;
3077
+ initialState: import("zod").ZodNumber;
3078
+ client: import("zod").ZodNumber;
3079
+ }) => TValidationNext)) => {
3080
+ config: {
3081
+ sql: {
3082
+ type: "int";
3083
+ pk: true;
3084
+ };
3085
+ zodSqlSchema: import("zod").ZodNumber;
3086
+ zodNewSchema: import("zod").ZodNumber;
3087
+ initialValue: TDefaultNext;
3088
+ zodClientSchema: import("zod").ZodNumber;
3089
+ zodValidationSchema: TValidationNext;
3090
+ };
3091
+ transform: (transforms: {
3092
+ toClient: (dbValue: number) => number;
3093
+ toDb: (clientValue: number) => number;
3094
+ }) => {
3095
+ config: {
3096
+ sql: {
3097
+ type: "int";
3098
+ pk: true;
3099
+ };
3100
+ zodSqlSchema: import("zod").ZodNumber;
3101
+ zodNewSchema: import("zod").ZodNumber;
3102
+ initialValue: TDefaultNext;
3103
+ zodClientSchema: import("zod").ZodNumber;
3104
+ zodValidationSchema: TValidationNext;
3105
+ } & {
3106
+ transforms: {
3107
+ toClient: (dbValue: number) => number;
3108
+ toDb: (clientValue: number) => number;
3109
+ };
3110
+ };
3111
+ };
3112
+ };
3113
+ client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
3114
+ sql: import("zod").ZodNumber;
3115
+ initialState: import("zod").ZodNumber;
3116
+ }) => TClientNext)) => {
3117
+ config: {
3118
+ sql: {
3119
+ type: "int";
3120
+ pk: true;
3121
+ };
3122
+ zodSqlSchema: import("zod").ZodNumber;
3123
+ zodNewSchema: import("zod").ZodNumber;
3124
+ initialValue: TDefaultNext;
2115
3125
  zodClientSchema: TClientNext;
2116
- zodValidationSchema: TValidationNext;
2117
- } & {
2118
- transforms: {
3126
+ zodValidationSchema: TClientNext;
3127
+ };
3128
+ validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
3129
+ sql: import("zod").ZodNumber;
3130
+ initialState: import("zod").ZodNumber;
3131
+ client: TClientNext;
3132
+ }) => TValidationNext)) => {
3133
+ config: {
3134
+ sql: {
3135
+ type: "int";
3136
+ pk: true;
3137
+ };
3138
+ zodSqlSchema: import("zod").ZodNumber;
3139
+ zodNewSchema: import("zod").ZodNumber;
3140
+ initialValue: TDefaultNext;
3141
+ zodClientSchema: TClientNext;
3142
+ zodValidationSchema: TValidationNext;
3143
+ };
3144
+ transform: (transforms: {
2119
3145
  toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
2120
3146
  toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
3147
+ }) => {
3148
+ config: {
3149
+ sql: {
3150
+ type: "int";
3151
+ pk: true;
3152
+ };
3153
+ zodSqlSchema: import("zod").ZodNumber;
3154
+ zodNewSchema: import("zod").ZodNumber;
3155
+ initialValue: TDefaultNext;
3156
+ zodClientSchema: TClientNext;
3157
+ zodValidationSchema: TValidationNext;
3158
+ } & {
3159
+ transforms: {
3160
+ toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
3161
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
3162
+ };
3163
+ };
2121
3164
  };
2122
3165
  };
2123
- };
2124
- };
2125
- transform: (transforms: {
2126
- toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
2127
- toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
2128
- }) => {
2129
- config: {
2130
- sql: {
2131
- type: "int";
2132
- pk: true;
2133
- };
2134
- zodSqlSchema: import("zod").ZodNumber;
2135
- zodNewSchema: import("zod").ZodNumber;
2136
- initialValue: number;
2137
- zodClientSchema: TClientNext;
2138
- zodValidationSchema: TClientNext;
2139
- } & {
2140
- transforms: {
3166
+ transform: (transforms: {
2141
3167
  toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
2142
3168
  toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
3169
+ }) => {
3170
+ config: {
3171
+ sql: {
3172
+ type: "int";
3173
+ pk: true;
3174
+ };
3175
+ zodSqlSchema: import("zod").ZodNumber;
3176
+ zodNewSchema: import("zod").ZodNumber;
3177
+ initialValue: TDefaultNext;
3178
+ zodClientSchema: TClientNext;
3179
+ zodValidationSchema: TClientNext;
3180
+ } & {
3181
+ transforms: {
3182
+ toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
3183
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
3184
+ };
3185
+ };
2143
3186
  };
2144
3187
  };
2145
- };
2146
- };
2147
- transform: (transforms: {
2148
- toClient: (dbValue: number) => number;
2149
- toDb: (clientValue: number) => number;
2150
- }) => {
2151
- config: {
2152
- sql: {
2153
- type: "int";
2154
- pk: true;
2155
- };
2156
- zodSqlSchema: import("zod").ZodNumber;
2157
- zodNewSchema: import("zod").ZodNumber;
2158
- initialValue: number;
2159
- zodClientSchema: import("zod").ZodNumber;
2160
- zodValidationSchema: import("zod").ZodNumber;
2161
- } & {
2162
- transforms: {
3188
+ transform: (transforms: {
2163
3189
  toClient: (dbValue: number) => number;
2164
3190
  toDb: (clientValue: number) => number;
3191
+ }) => {
3192
+ config: {
3193
+ sql: {
3194
+ type: "int";
3195
+ pk: true;
3196
+ };
3197
+ zodSqlSchema: import("zod").ZodNumber;
3198
+ zodNewSchema: import("zod").ZodNumber;
3199
+ initialValue: TDefaultNext;
3200
+ zodClientSchema: import("zod").ZodNumber;
3201
+ zodValidationSchema: import("zod").ZodNumber;
3202
+ } & {
3203
+ transforms: {
3204
+ toClient: (dbValue: number) => number;
3205
+ toDb: (clientValue: number) => number;
3206
+ };
3207
+ };
2165
3208
  };
2166
3209
  };
2167
- };
2168
- initialState: <TNewNext extends import("zod").ZodTypeAny, TDefaultNext>(schema: TNewNext | ((tools: {
2169
- sql: import("zod").ZodNumber;
2170
- }) => TNewNext), defaultValue: () => TDefaultNext) => {
2171
- config: {
2172
- sql: {
2173
- type: "int";
2174
- pk: true;
2175
- };
2176
- zodSqlSchema: import("zod").ZodNumber;
2177
- zodNewSchema: TNewNext;
2178
- initialValue: import("zod").TypeOf<TNewNext>;
2179
- zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
2180
- zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
2181
- };
2182
- validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
3210
+ <TNewNext extends import("zod").ZodTypeAny, TDefaultNext>(schema: TNewNext | ((tools: {
2183
3211
  sql: import("zod").ZodNumber;
2184
- initialState: TNewNext;
2185
- client: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
2186
- }) => TValidationNext)) => {
3212
+ }) => TNewNext), defaultValue: () => TDefaultNext): {
2187
3213
  config: {
2188
3214
  sql: {
2189
3215
  type: "int";
@@ -2193,12 +3219,13 @@ declare const schemas: {
2193
3219
  zodNewSchema: TNewNext;
2194
3220
  initialValue: import("zod").TypeOf<TNewNext>;
2195
3221
  zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
2196
- zodValidationSchema: TValidationNext;
3222
+ zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
2197
3223
  };
2198
- transform: (transforms: {
2199
- toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
2200
- toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
2201
- }) => {
3224
+ validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
3225
+ sql: import("zod").ZodNumber;
3226
+ initialState: TNewNext;
3227
+ client: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
3228
+ }) => TValidationNext)) => {
2202
3229
  config: {
2203
3230
  sql: {
2204
3231
  type: "int";
@@ -2209,34 +3236,33 @@ declare const schemas: {
2209
3236
  initialValue: import("zod").TypeOf<TNewNext>;
2210
3237
  zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
2211
3238
  zodValidationSchema: TValidationNext;
2212
- } & {
2213
- transforms: {
2214
- toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
2215
- toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
2216
- };
2217
3239
  };
2218
- };
2219
- };
2220
- client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
2221
- sql: import("zod").ZodNumber;
2222
- initialState: TNewNext;
2223
- }) => TClientNext)) => {
2224
- config: {
2225
- sql: {
2226
- type: "int";
2227
- pk: true;
3240
+ transform: (transforms: {
3241
+ toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
3242
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
3243
+ }) => {
3244
+ config: {
3245
+ sql: {
3246
+ type: "int";
3247
+ pk: true;
3248
+ };
3249
+ zodSqlSchema: import("zod").ZodNumber;
3250
+ zodNewSchema: TNewNext;
3251
+ initialValue: import("zod").TypeOf<TNewNext>;
3252
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
3253
+ zodValidationSchema: TValidationNext;
3254
+ } & {
3255
+ transforms: {
3256
+ toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
3257
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
3258
+ };
3259
+ };
2228
3260
  };
2229
- zodSqlSchema: import("zod").ZodNumber;
2230
- zodNewSchema: TNewNext;
2231
- initialValue: import("zod").TypeOf<TNewNext>;
2232
- zodClientSchema: TClientNext;
2233
- zodValidationSchema: TClientNext;
2234
3261
  };
2235
- validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
3262
+ client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
2236
3263
  sql: import("zod").ZodNumber;
2237
3264
  initialState: TNewNext;
2238
- client: TClientNext;
2239
- }) => TValidationNext)) => {
3265
+ }) => TClientNext)) => {
2240
3266
  config: {
2241
3267
  sql: {
2242
3268
  type: "int";
@@ -2246,7 +3272,45 @@ declare const schemas: {
2246
3272
  zodNewSchema: TNewNext;
2247
3273
  initialValue: import("zod").TypeOf<TNewNext>;
2248
3274
  zodClientSchema: TClientNext;
2249
- zodValidationSchema: TValidationNext;
3275
+ zodValidationSchema: TClientNext;
3276
+ };
3277
+ validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
3278
+ sql: import("zod").ZodNumber;
3279
+ initialState: TNewNext;
3280
+ client: TClientNext;
3281
+ }) => TValidationNext)) => {
3282
+ config: {
3283
+ sql: {
3284
+ type: "int";
3285
+ pk: true;
3286
+ };
3287
+ zodSqlSchema: import("zod").ZodNumber;
3288
+ zodNewSchema: TNewNext;
3289
+ initialValue: import("zod").TypeOf<TNewNext>;
3290
+ zodClientSchema: TClientNext;
3291
+ zodValidationSchema: TValidationNext;
3292
+ };
3293
+ transform: (transforms: {
3294
+ toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
3295
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
3296
+ }) => {
3297
+ config: {
3298
+ sql: {
3299
+ type: "int";
3300
+ pk: true;
3301
+ };
3302
+ zodSqlSchema: import("zod").ZodNumber;
3303
+ zodNewSchema: TNewNext;
3304
+ initialValue: import("zod").TypeOf<TNewNext>;
3305
+ zodClientSchema: TClientNext;
3306
+ zodValidationSchema: TValidationNext;
3307
+ } & {
3308
+ transforms: {
3309
+ toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
3310
+ toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
3311
+ };
3312
+ };
3313
+ };
2250
3314
  };
2251
3315
  transform: (transforms: {
2252
3316
  toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
@@ -2261,7 +3325,7 @@ declare const schemas: {
2261
3325
  zodNewSchema: TNewNext;
2262
3326
  initialValue: import("zod").TypeOf<TNewNext>;
2263
3327
  zodClientSchema: TClientNext;
2264
- zodValidationSchema: TValidationNext;
3328
+ zodValidationSchema: TClientNext;
2265
3329
  } & {
2266
3330
  transforms: {
2267
3331
  toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
@@ -2271,8 +3335,8 @@ declare const schemas: {
2271
3335
  };
2272
3336
  };
2273
3337
  transform: (transforms: {
2274
- toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
2275
- toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
3338
+ toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
3339
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
2276
3340
  }) => {
2277
3341
  config: {
2278
3342
  sql: {
@@ -2282,37 +3346,16 @@ declare const schemas: {
2282
3346
  zodSqlSchema: import("zod").ZodNumber;
2283
3347
  zodNewSchema: TNewNext;
2284
3348
  initialValue: import("zod").TypeOf<TNewNext>;
2285
- zodClientSchema: TClientNext;
2286
- zodValidationSchema: TClientNext;
3349
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
3350
+ zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
2287
3351
  } & {
2288
3352
  transforms: {
2289
- toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
2290
- toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
3353
+ toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
3354
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
2291
3355
  };
2292
3356
  };
2293
3357
  };
2294
3358
  };
2295
- transform: (transforms: {
2296
- toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
2297
- toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
2298
- }) => {
2299
- config: {
2300
- sql: {
2301
- type: "int";
2302
- pk: true;
2303
- };
2304
- zodSqlSchema: import("zod").ZodNumber;
2305
- zodNewSchema: TNewNext;
2306
- initialValue: import("zod").TypeOf<TNewNext>;
2307
- zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
2308
- zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
2309
- } & {
2310
- transforms: {
2311
- toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
2312
- toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
2313
- };
2314
- };
2315
- };
2316
3359
  };
2317
3360
  };
2318
3361
  };