cogsbox-shape 0.5.7 → 0.5.9

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.
@@ -17,7 +17,7 @@ declare const schemas: {
17
17
  };
18
18
  defaultValue: number;
19
19
  client: <ClientType extends import("zod").ZodTypeAny, DefaultValue extends import("zod").TypeOf<ClientType>>(assert?: ClientType | ((tools: {
20
- zod: import("zod").ZodTypeAny;
20
+ zod: import("zod").ZodString;
21
21
  serverType?: never;
22
22
  }) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
23
23
  default: "CURRENT_TIMESTAMP";
@@ -27,27 +27,27 @@ declare const schemas: {
27
27
  type: "int";
28
28
  pk: true;
29
29
  };
30
- zodDbSchema: import("zod").ZodTypeAny;
31
- zodClientSchema: import("zod").ZodTypeAny;
30
+ zodDbSchema: any;
31
+ zodClientSchema: ClientType;
32
32
  jsonSchema: any;
33
33
  defaultValue: DefaultValue | (DefaultValue extends Date ? {
34
34
  default: "CURRENT_TIMESTAMP";
35
35
  defaultValue: Date;
36
36
  } : never);
37
37
  transform: (transforms: {
38
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
39
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
38
+ toClient: (dbValue: import("zod").TypeOf<any>) => import("zod").TypeOf<ClientType>;
39
+ toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<any>;
40
40
  }) => {
41
41
  sql: {
42
42
  type: "int";
43
43
  pk: true;
44
44
  };
45
- zodDbSchema: import("zod").ZodTypeAny;
46
- zodClientSchema: import("zod").ZodTypeAny;
45
+ zodDbSchema: any;
46
+ zodClientSchema: ClientType;
47
47
  jsonSchema: any;
48
48
  defaultValue: DefaultValue;
49
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
50
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
49
+ toClient: (dbValue: import("zod").TypeOf<any>) => import("zod").TypeOf<ClientType>;
50
+ toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<any>;
51
51
  transforms: {
52
52
  toClient: string;
53
53
  toDb: string;
@@ -63,7 +63,7 @@ declare const schemas: {
63
63
  };
64
64
  dbType: ServerType;
65
65
  zodDbSchema: ServerType;
66
- zodClientSchema: ServerType;
66
+ zodClientSchema: import("zod").ZodString;
67
67
  jsonSchema: import("zod-to-json-schema").JsonSchema7Type & {
68
68
  $schema?: string | undefined;
69
69
  definitions?: {
@@ -72,7 +72,7 @@ declare const schemas: {
72
72
  };
73
73
  defaultValue: import("zod").TypeOf<ServerType>;
74
74
  client: <ClientType extends import("zod").ZodTypeAny, DefaultValue extends import("zod").TypeOf<ClientType>>(assert?: ClientType | ((tools: {
75
- zod: import("zod").ZodTypeAny;
75
+ zod: import("zod").ZodString;
76
76
  serverType?: ServerType;
77
77
  }) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
78
78
  default: "CURRENT_TIMESTAMP";
@@ -82,27 +82,27 @@ declare const schemas: {
82
82
  type: "int";
83
83
  pk: true;
84
84
  };
85
- zodDbSchema: import("zod").ZodTypeAny;
86
- zodClientSchema: import("zod").ZodTypeAny;
85
+ zodDbSchema: any;
86
+ zodClientSchema: ClientType;
87
87
  jsonSchema: any;
88
88
  defaultValue: DefaultValue | (DefaultValue extends Date ? {
89
89
  default: "CURRENT_TIMESTAMP";
90
90
  defaultValue: Date;
91
91
  } : never);
92
92
  transform: (transforms: {
93
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
94
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
93
+ toClient: (dbValue: import("zod").TypeOf<any>) => import("zod").TypeOf<ClientType>;
94
+ toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<any>;
95
95
  }) => {
96
96
  sql: {
97
97
  type: "int";
98
98
  pk: true;
99
99
  };
100
- zodDbSchema: import("zod").ZodTypeAny;
101
- zodClientSchema: import("zod").ZodTypeAny;
100
+ zodDbSchema: any;
101
+ zodClientSchema: ClientType;
102
102
  jsonSchema: any;
103
103
  defaultValue: DefaultValue;
104
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
105
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
104
+ toClient: (dbValue: import("zod").TypeOf<any>) => import("zod").TypeOf<ClientType>;
105
+ toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<any>;
106
106
  transforms: {
107
107
  toClient: string;
108
108
  toDb: string;
@@ -127,7 +127,7 @@ declare const schemas: {
127
127
  };
128
128
  defaultValue: string;
129
129
  client: <ClientType extends import("zod").ZodTypeAny, DefaultValue extends import("zod").TypeOf<ClientType>>(assert?: ClientType | ((tools: {
130
- zod: import("zod").ZodTypeAny;
130
+ zod: import("zod").ZodString;
131
131
  serverType?: import("zod").ZodString;
132
132
  }) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
133
133
  default: "CURRENT_TIMESTAMP";
@@ -137,27 +137,27 @@ declare const schemas: {
137
137
  type: "varchar";
138
138
  length: number;
139
139
  };
140
- zodDbSchema: import("zod").ZodTypeAny;
141
- zodClientSchema: import("zod").ZodTypeAny;
140
+ zodDbSchema: any;
141
+ zodClientSchema: ClientType;
142
142
  jsonSchema: any;
143
143
  defaultValue: DefaultValue | (DefaultValue extends Date ? {
144
144
  default: "CURRENT_TIMESTAMP";
145
145
  defaultValue: Date;
146
146
  } : never);
147
147
  transform: (transforms: {
148
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
149
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
148
+ toClient: (dbValue: import("zod").TypeOf<any>) => import("zod").TypeOf<ClientType>;
149
+ toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<any>;
150
150
  }) => {
151
151
  sql: {
152
152
  type: "varchar";
153
153
  length: number;
154
154
  };
155
- zodDbSchema: import("zod").ZodTypeAny;
156
- zodClientSchema: import("zod").ZodTypeAny;
155
+ zodDbSchema: any;
156
+ zodClientSchema: ClientType;
157
157
  jsonSchema: any;
158
158
  defaultValue: DefaultValue;
159
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
160
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
159
+ toClient: (dbValue: import("zod").TypeOf<any>) => import("zod").TypeOf<ClientType>;
160
+ toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<any>;
161
161
  transforms: {
162
162
  toClient: string;
163
163
  toDb: string;
@@ -181,7 +181,7 @@ declare const schemas: {
181
181
  };
182
182
  defaultValue: string;
183
183
  client: <ClientType extends import("zod").ZodTypeAny, DefaultValue extends import("zod").TypeOf<ClientType>>(assert?: ClientType | ((tools: {
184
- zod: import("zod").ZodTypeAny;
184
+ zod: import("zod").ZodString;
185
185
  serverType?: import("zod").ZodString;
186
186
  }) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
187
187
  default: "CURRENT_TIMESTAMP";
@@ -191,27 +191,27 @@ declare const schemas: {
191
191
  type: "varchar";
192
192
  length: number;
193
193
  };
194
- zodDbSchema: import("zod").ZodTypeAny;
195
- zodClientSchema: import("zod").ZodTypeAny;
194
+ zodDbSchema: any;
195
+ zodClientSchema: ClientType;
196
196
  jsonSchema: any;
197
197
  defaultValue: DefaultValue | (DefaultValue extends Date ? {
198
198
  default: "CURRENT_TIMESTAMP";
199
199
  defaultValue: Date;
200
200
  } : never);
201
201
  transform: (transforms: {
202
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
203
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
202
+ toClient: (dbValue: import("zod").TypeOf<any>) => import("zod").TypeOf<ClientType>;
203
+ toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<any>;
204
204
  }) => {
205
205
  sql: {
206
206
  type: "varchar";
207
207
  length: number;
208
208
  };
209
- zodDbSchema: import("zod").ZodTypeAny;
210
- zodClientSchema: import("zod").ZodTypeAny;
209
+ zodDbSchema: any;
210
+ zodClientSchema: ClientType;
211
211
  jsonSchema: any;
212
212
  defaultValue: DefaultValue;
213
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
214
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
213
+ toClient: (dbValue: import("zod").TypeOf<any>) => import("zod").TypeOf<ClientType>;
214
+ toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<any>;
215
215
  transforms: {
216
216
  toClient: string;
217
217
  toDb: string;
@@ -235,7 +235,7 @@ declare const schemas: {
235
235
  };
236
236
  defaultValue: string;
237
237
  client: <ClientType extends import("zod").ZodTypeAny, DefaultValue extends import("zod").TypeOf<ClientType>>(assert?: ClientType | ((tools: {
238
- zod: import("zod").ZodTypeAny;
238
+ zod: import("zod").ZodString;
239
239
  serverType?: import("zod").ZodString;
240
240
  }) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
241
241
  default: "CURRENT_TIMESTAMP";
@@ -245,27 +245,27 @@ declare const schemas: {
245
245
  type: "varchar";
246
246
  length: number;
247
247
  };
248
- zodDbSchema: import("zod").ZodTypeAny;
249
- zodClientSchema: import("zod").ZodTypeAny;
248
+ zodDbSchema: any;
249
+ zodClientSchema: ClientType;
250
250
  jsonSchema: any;
251
251
  defaultValue: DefaultValue | (DefaultValue extends Date ? {
252
252
  default: "CURRENT_TIMESTAMP";
253
253
  defaultValue: Date;
254
254
  } : never);
255
255
  transform: (transforms: {
256
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
257
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
256
+ toClient: (dbValue: import("zod").TypeOf<any>) => import("zod").TypeOf<ClientType>;
257
+ toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<any>;
258
258
  }) => {
259
259
  sql: {
260
260
  type: "varchar";
261
261
  length: number;
262
262
  };
263
- zodDbSchema: import("zod").ZodTypeAny;
264
- zodClientSchema: import("zod").ZodTypeAny;
263
+ zodDbSchema: any;
264
+ zodClientSchema: ClientType;
265
265
  jsonSchema: any;
266
266
  defaultValue: DefaultValue;
267
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
268
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
267
+ toClient: (dbValue: import("zod").TypeOf<any>) => import("zod").TypeOf<ClientType>;
268
+ toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<any>;
269
269
  transforms: {
270
270
  toClient: string;
271
271
  toDb: string;
@@ -281,24 +281,24 @@ declare const schemas: {
281
281
  type: "int";
282
282
  pk: true;
283
283
  };
284
- zodDbSchema: import("zod").ZodTypeAny;
285
- zodClientSchema: import("zod").ZodTypeAny;
284
+ zodDbSchema: any;
285
+ zodClientSchema: import("zod").ZodString;
286
286
  jsonSchema: any;
287
- defaultValue: any;
287
+ defaultValue: string;
288
288
  transform: (transforms: {
289
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => any;
290
- toDb: (clientValue: any) => import("zod").TypeOf<import("zod").ZodTypeAny>;
289
+ toClient: (dbValue: import("zod").TypeOf<any>) => string;
290
+ toDb: (clientValue: string) => import("zod").TypeOf<any>;
291
291
  }) => {
292
292
  sql: {
293
293
  type: "int";
294
294
  pk: true;
295
295
  };
296
- zodDbSchema: import("zod").ZodTypeAny;
297
- zodClientSchema: import("zod").ZodTypeAny;
296
+ zodDbSchema: any;
297
+ zodClientSchema: import("zod").ZodString;
298
298
  jsonSchema: any;
299
- defaultValue: any;
300
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => any;
301
- toDb: (clientValue: any) => import("zod").TypeOf<import("zod").ZodTypeAny>;
299
+ defaultValue: string;
300
+ toClient: (dbValue: import("zod").TypeOf<any>) => string;
301
+ toDb: (clientValue: string) => import("zod").TypeOf<any>;
302
302
  transforms: {
303
303
  toClient: string;
304
304
  toDb: string;
@@ -320,7 +320,7 @@ declare const schemas: {
320
320
  };
321
321
  defaultValue: string;
322
322
  client: <ClientType extends import("zod").ZodTypeAny, DefaultValue extends import("zod").TypeOf<ClientType>>(assert?: ClientType | ((tools: {
323
- zod: import("zod").ZodTypeAny;
323
+ zod: import("zod").ZodString;
324
324
  serverType?: never;
325
325
  }) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
326
326
  default: "CURRENT_TIMESTAMP";
@@ -330,27 +330,27 @@ declare const schemas: {
330
330
  type: "varchar";
331
331
  length: number;
332
332
  };
333
- zodDbSchema: import("zod").ZodTypeAny;
334
- zodClientSchema: import("zod").ZodTypeAny;
333
+ zodDbSchema: any;
334
+ zodClientSchema: ClientType;
335
335
  jsonSchema: any;
336
336
  defaultValue: DefaultValue | (DefaultValue extends Date ? {
337
337
  default: "CURRENT_TIMESTAMP";
338
338
  defaultValue: Date;
339
339
  } : never);
340
340
  transform: (transforms: {
341
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
342
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
341
+ toClient: (dbValue: import("zod").TypeOf<any>) => import("zod").TypeOf<ClientType>;
342
+ toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<any>;
343
343
  }) => {
344
344
  sql: {
345
345
  type: "varchar";
346
346
  length: number;
347
347
  };
348
- zodDbSchema: import("zod").ZodTypeAny;
349
- zodClientSchema: import("zod").ZodTypeAny;
348
+ zodDbSchema: any;
349
+ zodClientSchema: ClientType;
350
350
  jsonSchema: any;
351
351
  defaultValue: DefaultValue;
352
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
353
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
352
+ toClient: (dbValue: import("zod").TypeOf<any>) => import("zod").TypeOf<ClientType>;
353
+ toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<any>;
354
354
  transforms: {
355
355
  toClient: string;
356
356
  toDb: string;
@@ -366,7 +366,7 @@ declare const schemas: {
366
366
  };
367
367
  dbType: ServerType;
368
368
  zodDbSchema: ServerType;
369
- zodClientSchema: ServerType;
369
+ zodClientSchema: import("zod").ZodString;
370
370
  jsonSchema: import("zod-to-json-schema").JsonSchema7Type & {
371
371
  $schema?: string | undefined;
372
372
  definitions?: {
@@ -375,7 +375,7 @@ declare const schemas: {
375
375
  };
376
376
  defaultValue: import("zod").TypeOf<ServerType>;
377
377
  client: <ClientType extends import("zod").ZodTypeAny, DefaultValue extends import("zod").TypeOf<ClientType>>(assert?: ClientType | ((tools: {
378
- zod: import("zod").ZodTypeAny;
378
+ zod: import("zod").ZodString;
379
379
  serverType?: ServerType;
380
380
  }) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
381
381
  default: "CURRENT_TIMESTAMP";
@@ -385,27 +385,27 @@ declare const schemas: {
385
385
  type: "varchar";
386
386
  length: number;
387
387
  };
388
- zodDbSchema: import("zod").ZodTypeAny;
389
- zodClientSchema: import("zod").ZodTypeAny;
388
+ zodDbSchema: any;
389
+ zodClientSchema: ClientType;
390
390
  jsonSchema: any;
391
391
  defaultValue: DefaultValue | (DefaultValue extends Date ? {
392
392
  default: "CURRENT_TIMESTAMP";
393
393
  defaultValue: Date;
394
394
  } : never);
395
395
  transform: (transforms: {
396
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
397
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
396
+ toClient: (dbValue: import("zod").TypeOf<any>) => import("zod").TypeOf<ClientType>;
397
+ toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<any>;
398
398
  }) => {
399
399
  sql: {
400
400
  type: "varchar";
401
401
  length: number;
402
402
  };
403
- zodDbSchema: import("zod").ZodTypeAny;
404
- zodClientSchema: import("zod").ZodTypeAny;
403
+ zodDbSchema: any;
404
+ zodClientSchema: ClientType;
405
405
  jsonSchema: any;
406
406
  defaultValue: DefaultValue;
407
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
408
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
407
+ toClient: (dbValue: import("zod").TypeOf<any>) => import("zod").TypeOf<ClientType>;
408
+ toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<any>;
409
409
  transforms: {
410
410
  toClient: string;
411
411
  toDb: string;
@@ -417,115 +417,38 @@ declare const schemas: {
417
417
  sql: {
418
418
  type: "int";
419
419
  };
420
- dbType: import("zod").ZodNumber;
421
- zodDbSchema: import("zod").ZodNumber;
422
- zodClientSchema: import("zod").ZodNumber;
423
- jsonSchema: import("zod-to-json-schema").JsonSchema7Type & {
424
- $schema?: string | undefined;
425
- definitions?: {
426
- [key: string]: import("zod-to-json-schema").JsonSchema7Type;
427
- } | undefined;
428
- };
429
- defaultValue: number;
430
- client: <ClientType extends import("zod").ZodTypeAny, DefaultValue extends import("zod").TypeOf<ClientType>>(assert?: ClientType | ((tools: {
431
- zod: import("zod").ZodTypeAny;
432
- serverType?: never;
433
- }) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
434
- default: "CURRENT_TIMESTAMP";
435
- defaultValue: Date;
436
- } : never) | undefined) => {
420
+ zodDbSchema: any;
421
+ zodClientSchema: import("zod").ZodString;
422
+ jsonSchema: any;
423
+ defaultValue: string;
424
+ transform: (transforms: {
425
+ toClient: (dbValue: import("zod").TypeOf<any>) => string;
426
+ toDb: (clientValue: string) => import("zod").TypeOf<any>;
427
+ }) => {
437
428
  sql: {
438
429
  type: "int";
439
430
  };
440
- zodDbSchema: import("zod").ZodTypeAny;
441
- zodClientSchema: import("zod").ZodTypeAny;
431
+ zodDbSchema: any;
432
+ zodClientSchema: import("zod").ZodString;
442
433
  jsonSchema: any;
443
- defaultValue: DefaultValue | (DefaultValue extends Date ? {
444
- default: "CURRENT_TIMESTAMP";
445
- defaultValue: Date;
446
- } : never);
447
- transform: (transforms: {
448
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
449
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
450
- }) => {
451
- sql: {
452
- type: "int";
453
- };
454
- zodDbSchema: import("zod").ZodTypeAny;
455
- zodClientSchema: import("zod").ZodTypeAny;
456
- jsonSchema: any;
457
- defaultValue: DefaultValue;
458
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
459
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
460
- transforms: {
461
- toClient: string;
462
- toDb: string;
463
- };
464
- };
465
- };
466
- db: <ServerType extends import("zod").ZodTypeAny>(assert: (tools: {
467
- zod: import("zod").ZodNumber;
468
- }) => ServerType) => {
469
- sql: {
470
- type: "int";
471
- };
472
- dbType: ServerType;
473
- zodDbSchema: ServerType;
474
- zodClientSchema: ServerType;
475
- jsonSchema: import("zod-to-json-schema").JsonSchema7Type & {
476
- $schema?: string | undefined;
477
- definitions?: {
478
- [key: string]: import("zod-to-json-schema").JsonSchema7Type;
479
- } | undefined;
480
- };
481
- defaultValue: import("zod").TypeOf<ServerType>;
482
- client: <ClientType extends import("zod").ZodTypeAny, DefaultValue extends import("zod").TypeOf<ClientType>>(assert?: ClientType | ((tools: {
483
- zod: import("zod").ZodTypeAny;
484
- serverType?: ServerType;
485
- }) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
486
- default: "CURRENT_TIMESTAMP";
487
- defaultValue: Date;
488
- } : never) | undefined) => {
489
- sql: {
490
- type: "int";
491
- };
492
- zodDbSchema: import("zod").ZodTypeAny;
493
- zodClientSchema: import("zod").ZodTypeAny;
494
- jsonSchema: any;
495
- defaultValue: DefaultValue | (DefaultValue extends Date ? {
496
- default: "CURRENT_TIMESTAMP";
497
- defaultValue: Date;
498
- } : never);
499
- transform: (transforms: {
500
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
501
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
502
- }) => {
503
- sql: {
504
- type: "int";
505
- };
506
- zodDbSchema: import("zod").ZodTypeAny;
507
- zodClientSchema: import("zod").ZodTypeAny;
508
- jsonSchema: any;
509
- defaultValue: DefaultValue;
510
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
511
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
512
- transforms: {
513
- toClient: string;
514
- toDb: string;
515
- };
516
- };
434
+ defaultValue: string;
435
+ toClient: (dbValue: import("zod").TypeOf<any>) => string;
436
+ toDb: (clientValue: string) => import("zod").TypeOf<any>;
437
+ transforms: {
438
+ toClient: string;
439
+ toDb: string;
517
440
  };
518
441
  };
519
442
  } | {
520
443
  sql: {
521
444
  type: "text";
522
445
  };
523
- zodDbSchema: import("zod").ZodTypeAny;
524
- zodClientSchema: import("zod").ZodTypeAny;
446
+ zodDbSchema: any;
447
+ zodClientSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
525
448
  jsonSchema: any;
526
449
  defaultValue: ("bald" | "fuzzy" | "fluffy" | "poof")[];
527
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => ("bald" | "fuzzy" | "fluffy" | "poof")[];
528
- toDb: (clientValue: ("bald" | "fuzzy" | "fluffy" | "poof")[]) => import("zod").TypeOf<import("zod").ZodTypeAny>;
450
+ toClient: (dbValue: import("zod").TypeOf<any>) => ("bald" | "fuzzy" | "fluffy" | "poof")[];
451
+ toDb: (clientValue: ("bald" | "fuzzy" | "fluffy" | "poof")[]) => import("zod").TypeOf<any>;
529
452
  transforms: {
530
453
  toClient: string;
531
454
  toDb: string;
@@ -534,12 +457,12 @@ declare const schemas: {
534
457
  sql: {
535
458
  type: "int";
536
459
  };
537
- zodDbSchema: import("zod").ZodTypeAny;
538
- zodClientSchema: import("zod").ZodTypeAny;
460
+ zodDbSchema: any;
461
+ zodClientSchema: import("zod").ZodBoolean;
539
462
  jsonSchema: any;
540
463
  defaultValue: boolean;
541
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => boolean;
542
- toDb: (clientValue: boolean) => import("zod").TypeOf<import("zod").ZodTypeAny>;
464
+ toClient: (dbValue: import("zod").TypeOf<any>) => boolean;
465
+ toDb: (clientValue: boolean) => import("zod").TypeOf<any>;
543
466
  transforms: {
544
467
  toClient: string;
545
468
  toDb: string;
@@ -552,24 +475,24 @@ declare const schemas: {
552
475
  type: "int";
553
476
  pk: true;
554
477
  };
555
- zodDbSchema: import("zod").ZodTypeAny;
556
- zodClientSchema: import("zod").ZodTypeAny;
478
+ zodDbSchema: any;
479
+ zodClientSchema: import("zod").ZodString;
557
480
  jsonSchema: any;
558
- defaultValue: any;
481
+ defaultValue: string;
559
482
  transform: (transforms: {
560
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => any;
561
- toDb: (clientValue: any) => import("zod").TypeOf<import("zod").ZodTypeAny>;
483
+ toClient: (dbValue: import("zod").TypeOf<any>) => string;
484
+ toDb: (clientValue: string) => import("zod").TypeOf<any>;
562
485
  }) => {
563
486
  sql: {
564
487
  type: "int";
565
488
  pk: true;
566
489
  };
567
- zodDbSchema: import("zod").ZodTypeAny;
568
- zodClientSchema: import("zod").ZodTypeAny;
490
+ zodDbSchema: any;
491
+ zodClientSchema: import("zod").ZodString;
569
492
  jsonSchema: any;
570
- defaultValue: any;
571
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => any;
572
- toDb: (clientValue: any) => import("zod").TypeOf<import("zod").ZodTypeAny>;
493
+ defaultValue: string;
494
+ toClient: (dbValue: import("zod").TypeOf<any>) => string;
495
+ toDb: (clientValue: string) => import("zod").TypeOf<any>;
573
496
  transforms: {
574
497
  toClient: string;
575
498
  toDb: string;
@@ -592,7 +515,7 @@ declare const schemas: {
592
515
  };
593
516
  defaultValue: string;
594
517
  client: <ClientType extends import("zod").ZodTypeAny, DefaultValue extends import("zod").TypeOf<ClientType>>(assert?: ClientType | ((tools: {
595
- zod: import("zod").ZodTypeAny;
518
+ zod: import("zod").ZodString;
596
519
  serverType?: never;
597
520
  }) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
598
521
  default: "CURRENT_TIMESTAMP";
@@ -602,27 +525,27 @@ declare const schemas: {
602
525
  type: "varchar";
603
526
  length: number;
604
527
  };
605
- zodDbSchema: import("zod").ZodTypeAny;
606
- zodClientSchema: import("zod").ZodTypeAny;
528
+ zodDbSchema: any;
529
+ zodClientSchema: ClientType;
607
530
  jsonSchema: any;
608
531
  defaultValue: DefaultValue | (DefaultValue extends Date ? {
609
532
  default: "CURRENT_TIMESTAMP";
610
533
  defaultValue: Date;
611
534
  } : never);
612
535
  transform: (transforms: {
613
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
614
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
536
+ toClient: (dbValue: import("zod").TypeOf<any>) => import("zod").TypeOf<ClientType>;
537
+ toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<any>;
615
538
  }) => {
616
539
  sql: {
617
540
  type: "varchar";
618
541
  length: number;
619
542
  };
620
- zodDbSchema: import("zod").ZodTypeAny;
621
- zodClientSchema: import("zod").ZodTypeAny;
543
+ zodDbSchema: any;
544
+ zodClientSchema: ClientType;
622
545
  jsonSchema: any;
623
546
  defaultValue: DefaultValue;
624
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
625
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
547
+ toClient: (dbValue: import("zod").TypeOf<any>) => import("zod").TypeOf<ClientType>;
548
+ toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<any>;
626
549
  transforms: {
627
550
  toClient: string;
628
551
  toDb: string;
@@ -638,7 +561,7 @@ declare const schemas: {
638
561
  };
639
562
  dbType: ServerType;
640
563
  zodDbSchema: ServerType;
641
- zodClientSchema: ServerType;
564
+ zodClientSchema: import("zod").ZodString;
642
565
  jsonSchema: import("zod-to-json-schema").JsonSchema7Type & {
643
566
  $schema?: string | undefined;
644
567
  definitions?: {
@@ -647,7 +570,7 @@ declare const schemas: {
647
570
  };
648
571
  defaultValue: import("zod").TypeOf<ServerType>;
649
572
  client: <ClientType extends import("zod").ZodTypeAny, DefaultValue extends import("zod").TypeOf<ClientType>>(assert?: ClientType | ((tools: {
650
- zod: import("zod").ZodTypeAny;
573
+ zod: import("zod").ZodString;
651
574
  serverType?: ServerType;
652
575
  }) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
653
576
  default: "CURRENT_TIMESTAMP";
@@ -657,27 +580,27 @@ declare const schemas: {
657
580
  type: "varchar";
658
581
  length: number;
659
582
  };
660
- zodDbSchema: import("zod").ZodTypeAny;
661
- zodClientSchema: import("zod").ZodTypeAny;
583
+ zodDbSchema: any;
584
+ zodClientSchema: ClientType;
662
585
  jsonSchema: any;
663
586
  defaultValue: DefaultValue | (DefaultValue extends Date ? {
664
587
  default: "CURRENT_TIMESTAMP";
665
588
  defaultValue: Date;
666
589
  } : never);
667
590
  transform: (transforms: {
668
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
669
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
591
+ toClient: (dbValue: import("zod").TypeOf<any>) => import("zod").TypeOf<ClientType>;
592
+ toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<any>;
670
593
  }) => {
671
594
  sql: {
672
595
  type: "varchar";
673
596
  length: number;
674
597
  };
675
- zodDbSchema: import("zod").ZodTypeAny;
676
- zodClientSchema: import("zod").ZodTypeAny;
598
+ zodDbSchema: any;
599
+ zodClientSchema: ClientType;
677
600
  jsonSchema: any;
678
601
  defaultValue: DefaultValue;
679
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
680
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
602
+ toClient: (dbValue: import("zod").TypeOf<any>) => import("zod").TypeOf<ClientType>;
603
+ toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<any>;
681
604
  transforms: {
682
605
  toClient: string;
683
606
  toDb: string;
@@ -690,103 +613,26 @@ declare const schemas: {
690
613
  sql: {
691
614
  type: "int";
692
615
  };
693
- dbType: import("zod").ZodNumber;
694
- zodDbSchema: import("zod").ZodNumber;
695
- zodClientSchema: import("zod").ZodNumber;
696
- jsonSchema: import("zod-to-json-schema").JsonSchema7Type & {
697
- $schema?: string | undefined;
698
- definitions?: {
699
- [key: string]: import("zod-to-json-schema").JsonSchema7Type;
700
- } | undefined;
701
- };
702
- defaultValue: number;
703
- client: <ClientType extends import("zod").ZodTypeAny, DefaultValue extends import("zod").TypeOf<ClientType>>(assert?: ClientType | ((tools: {
704
- zod: import("zod").ZodTypeAny;
705
- serverType?: never;
706
- }) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
707
- default: "CURRENT_TIMESTAMP";
708
- defaultValue: Date;
709
- } : never) | undefined) => {
616
+ zodDbSchema: any;
617
+ zodClientSchema: import("zod").ZodString;
618
+ jsonSchema: any;
619
+ defaultValue: string;
620
+ transform: (transforms: {
621
+ toClient: (dbValue: import("zod").TypeOf<any>) => string;
622
+ toDb: (clientValue: string) => import("zod").TypeOf<any>;
623
+ }) => {
710
624
  sql: {
711
625
  type: "int";
712
626
  };
713
- zodDbSchema: import("zod").ZodTypeAny;
714
- zodClientSchema: import("zod").ZodTypeAny;
627
+ zodDbSchema: any;
628
+ zodClientSchema: import("zod").ZodString;
715
629
  jsonSchema: any;
716
- defaultValue: DefaultValue | (DefaultValue extends Date ? {
717
- default: "CURRENT_TIMESTAMP";
718
- defaultValue: Date;
719
- } : never);
720
- transform: (transforms: {
721
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
722
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
723
- }) => {
724
- sql: {
725
- type: "int";
726
- };
727
- zodDbSchema: import("zod").ZodTypeAny;
728
- zodClientSchema: import("zod").ZodTypeAny;
729
- jsonSchema: any;
730
- defaultValue: DefaultValue;
731
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
732
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
733
- transforms: {
734
- toClient: string;
735
- toDb: string;
736
- };
737
- };
738
- };
739
- db: <ServerType extends import("zod").ZodTypeAny>(assert: (tools: {
740
- zod: import("zod").ZodNumber;
741
- }) => ServerType) => {
742
- sql: {
743
- type: "int";
744
- };
745
- dbType: ServerType;
746
- zodDbSchema: ServerType;
747
- zodClientSchema: ServerType;
748
- jsonSchema: import("zod-to-json-schema").JsonSchema7Type & {
749
- $schema?: string | undefined;
750
- definitions?: {
751
- [key: string]: import("zod-to-json-schema").JsonSchema7Type;
752
- } | undefined;
753
- };
754
- defaultValue: import("zod").TypeOf<ServerType>;
755
- client: <ClientType extends import("zod").ZodTypeAny, DefaultValue extends import("zod").TypeOf<ClientType>>(assert?: ClientType | ((tools: {
756
- zod: import("zod").ZodTypeAny;
757
- serverType?: ServerType;
758
- }) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
759
- default: "CURRENT_TIMESTAMP";
760
- defaultValue: Date;
761
- } : never) | undefined) => {
762
- sql: {
763
- type: "int";
764
- };
765
- zodDbSchema: import("zod").ZodTypeAny;
766
- zodClientSchema: import("zod").ZodTypeAny;
767
- jsonSchema: any;
768
- defaultValue: DefaultValue | (DefaultValue extends Date ? {
769
- default: "CURRENT_TIMESTAMP";
770
- defaultValue: Date;
771
- } : never);
772
- transform: (transforms: {
773
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
774
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
775
- }) => {
776
- sql: {
777
- type: "int";
778
- };
779
- zodDbSchema: import("zod").ZodTypeAny;
780
- zodClientSchema: import("zod").ZodTypeAny;
781
- jsonSchema: any;
782
- defaultValue: DefaultValue;
783
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
784
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
785
- transforms: {
786
- toClient: string;
787
- toDb: string;
788
- };
789
- };
630
+ defaultValue: string;
631
+ toClient: (dbValue: import("zod").TypeOf<any>) => string;
632
+ toDb: (clientValue: string) => import("zod").TypeOf<any>;
633
+ transforms: {
634
+ toClient: string;
635
+ toDb: string;
790
636
  };
791
637
  };
792
638
  };
@@ -794,12 +640,12 @@ declare const schemas: {
794
640
  sql: {
795
641
  type: "text";
796
642
  };
797
- zodDbSchema: import("zod").ZodTypeAny;
798
- zodClientSchema: import("zod").ZodTypeAny;
643
+ zodDbSchema: any;
644
+ zodClientSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
799
645
  jsonSchema: any;
800
646
  defaultValue: ("bald" | "fuzzy" | "fluffy" | "poof")[];
801
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => ("bald" | "fuzzy" | "fluffy" | "poof")[];
802
- toDb: (clientValue: ("bald" | "fuzzy" | "fluffy" | "poof")[]) => import("zod").TypeOf<import("zod").ZodTypeAny>;
647
+ toClient: (dbValue: import("zod").TypeOf<any>) => ("bald" | "fuzzy" | "fluffy" | "poof")[];
648
+ toDb: (clientValue: ("bald" | "fuzzy" | "fluffy" | "poof")[]) => import("zod").TypeOf<any>;
803
649
  transforms: {
804
650
  toClient: string;
805
651
  toDb: string;
@@ -809,12 +655,12 @@ declare const schemas: {
809
655
  sql: {
810
656
  type: "int";
811
657
  };
812
- zodDbSchema: import("zod").ZodTypeAny;
813
- zodClientSchema: import("zod").ZodTypeAny;
658
+ zodDbSchema: any;
659
+ zodClientSchema: import("zod").ZodBoolean;
814
660
  jsonSchema: any;
815
661
  defaultValue: boolean;
816
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => boolean;
817
- toDb: (clientValue: boolean) => import("zod").TypeOf<import("zod").ZodTypeAny>;
662
+ toClient: (dbValue: import("zod").TypeOf<any>) => boolean;
663
+ toDb: (clientValue: boolean) => import("zod").TypeOf<any>;
818
664
  transforms: {
819
665
  toClient: string;
820
666
  toDb: string;
@@ -831,24 +677,24 @@ declare const schemas: {
831
677
  type: "int";
832
678
  pk: true;
833
679
  };
834
- zodDbSchema: import("zod").ZodTypeAny;
835
- zodClientSchema: import("zod").ZodTypeAny;
680
+ zodDbSchema: any;
681
+ zodClientSchema: import("zod").ZodString;
836
682
  jsonSchema: any;
837
- defaultValue: any;
683
+ defaultValue: string;
838
684
  transform: (transforms: {
839
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => any;
840
- toDb: (clientValue: any) => import("zod").TypeOf<import("zod").ZodTypeAny>;
685
+ toClient: (dbValue: import("zod").TypeOf<any>) => string;
686
+ toDb: (clientValue: string) => import("zod").TypeOf<any>;
841
687
  }) => {
842
688
  sql: {
843
689
  type: "int";
844
690
  pk: true;
845
691
  };
846
- zodDbSchema: import("zod").ZodTypeAny;
847
- zodClientSchema: import("zod").ZodTypeAny;
692
+ zodDbSchema: any;
693
+ zodClientSchema: import("zod").ZodString;
848
694
  jsonSchema: any;
849
- defaultValue: any;
850
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => any;
851
- toDb: (clientValue: any) => import("zod").TypeOf<import("zod").ZodTypeAny>;
695
+ defaultValue: string;
696
+ toClient: (dbValue: import("zod").TypeOf<any>) => string;
697
+ toDb: (clientValue: string) => import("zod").TypeOf<any>;
852
698
  transforms: {
853
699
  toClient: string;
854
700
  toDb: string;
@@ -871,7 +717,7 @@ declare const schemas: {
871
717
  };
872
718
  defaultValue: string;
873
719
  client: <ClientType extends import("zod").ZodTypeAny, DefaultValue extends import("zod").TypeOf<ClientType>>(assert?: ClientType | ((tools: {
874
- zod: import("zod").ZodTypeAny;
720
+ zod: import("zod").ZodString;
875
721
  serverType?: never;
876
722
  }) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
877
723
  default: "CURRENT_TIMESTAMP";
@@ -881,27 +727,27 @@ declare const schemas: {
881
727
  type: "varchar";
882
728
  length: number;
883
729
  };
884
- zodDbSchema: import("zod").ZodTypeAny;
885
- zodClientSchema: import("zod").ZodTypeAny;
730
+ zodDbSchema: any;
731
+ zodClientSchema: ClientType;
886
732
  jsonSchema: any;
887
733
  defaultValue: DefaultValue | (DefaultValue extends Date ? {
888
734
  default: "CURRENT_TIMESTAMP";
889
735
  defaultValue: Date;
890
736
  } : never);
891
737
  transform: (transforms: {
892
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
893
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
738
+ toClient: (dbValue: import("zod").TypeOf<any>) => import("zod").TypeOf<ClientType>;
739
+ toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<any>;
894
740
  }) => {
895
741
  sql: {
896
742
  type: "varchar";
897
743
  length: number;
898
744
  };
899
- zodDbSchema: import("zod").ZodTypeAny;
900
- zodClientSchema: import("zod").ZodTypeAny;
745
+ zodDbSchema: any;
746
+ zodClientSchema: ClientType;
901
747
  jsonSchema: any;
902
748
  defaultValue: DefaultValue;
903
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
904
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
749
+ toClient: (dbValue: import("zod").TypeOf<any>) => import("zod").TypeOf<ClientType>;
750
+ toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<any>;
905
751
  transforms: {
906
752
  toClient: string;
907
753
  toDb: string;
@@ -917,7 +763,7 @@ declare const schemas: {
917
763
  };
918
764
  dbType: ServerType;
919
765
  zodDbSchema: ServerType;
920
- zodClientSchema: ServerType;
766
+ zodClientSchema: import("zod").ZodString;
921
767
  jsonSchema: import("zod-to-json-schema").JsonSchema7Type & {
922
768
  $schema?: string | undefined;
923
769
  definitions?: {
@@ -926,7 +772,7 @@ declare const schemas: {
926
772
  };
927
773
  defaultValue: import("zod").TypeOf<ServerType>;
928
774
  client: <ClientType extends import("zod").ZodTypeAny, DefaultValue extends import("zod").TypeOf<ClientType>>(assert?: ClientType | ((tools: {
929
- zod: import("zod").ZodTypeAny;
775
+ zod: import("zod").ZodString;
930
776
  serverType?: ServerType;
931
777
  }) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
932
778
  default: "CURRENT_TIMESTAMP";
@@ -936,27 +782,27 @@ declare const schemas: {
936
782
  type: "varchar";
937
783
  length: number;
938
784
  };
939
- zodDbSchema: import("zod").ZodTypeAny;
940
- zodClientSchema: import("zod").ZodTypeAny;
785
+ zodDbSchema: any;
786
+ zodClientSchema: ClientType;
941
787
  jsonSchema: any;
942
788
  defaultValue: DefaultValue | (DefaultValue extends Date ? {
943
789
  default: "CURRENT_TIMESTAMP";
944
790
  defaultValue: Date;
945
791
  } : never);
946
792
  transform: (transforms: {
947
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
948
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
793
+ toClient: (dbValue: import("zod").TypeOf<any>) => import("zod").TypeOf<ClientType>;
794
+ toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<any>;
949
795
  }) => {
950
796
  sql: {
951
797
  type: "varchar";
952
798
  length: number;
953
799
  };
954
- zodDbSchema: import("zod").ZodTypeAny;
955
- zodClientSchema: import("zod").ZodTypeAny;
800
+ zodDbSchema: any;
801
+ zodClientSchema: ClientType;
956
802
  jsonSchema: any;
957
803
  defaultValue: DefaultValue;
958
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
959
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
804
+ toClient: (dbValue: import("zod").TypeOf<any>) => import("zod").TypeOf<ClientType>;
805
+ toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<any>;
960
806
  transforms: {
961
807
  toClient: string;
962
808
  toDb: string;
@@ -969,103 +815,26 @@ declare const schemas: {
969
815
  sql: {
970
816
  type: "int";
971
817
  };
972
- dbType: import("zod").ZodNumber;
973
- zodDbSchema: import("zod").ZodNumber;
974
- zodClientSchema: import("zod").ZodNumber;
975
- jsonSchema: import("zod-to-json-schema").JsonSchema7Type & {
976
- $schema?: string | undefined;
977
- definitions?: {
978
- [key: string]: import("zod-to-json-schema").JsonSchema7Type;
979
- } | undefined;
980
- };
981
- defaultValue: number;
982
- client: <ClientType extends import("zod").ZodTypeAny, DefaultValue extends import("zod").TypeOf<ClientType>>(assert?: ClientType | ((tools: {
983
- zod: import("zod").ZodTypeAny;
984
- serverType?: never;
985
- }) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
986
- default: "CURRENT_TIMESTAMP";
987
- defaultValue: Date;
988
- } : never) | undefined) => {
818
+ zodDbSchema: any;
819
+ zodClientSchema: import("zod").ZodString;
820
+ jsonSchema: any;
821
+ defaultValue: string;
822
+ transform: (transforms: {
823
+ toClient: (dbValue: import("zod").TypeOf<any>) => string;
824
+ toDb: (clientValue: string) => import("zod").TypeOf<any>;
825
+ }) => {
989
826
  sql: {
990
827
  type: "int";
991
828
  };
992
- zodDbSchema: import("zod").ZodTypeAny;
993
- zodClientSchema: import("zod").ZodTypeAny;
829
+ zodDbSchema: any;
830
+ zodClientSchema: import("zod").ZodString;
994
831
  jsonSchema: any;
995
- defaultValue: DefaultValue | (DefaultValue extends Date ? {
996
- default: "CURRENT_TIMESTAMP";
997
- defaultValue: Date;
998
- } : never);
999
- transform: (transforms: {
1000
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
1001
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
1002
- }) => {
1003
- sql: {
1004
- type: "int";
1005
- };
1006
- zodDbSchema: import("zod").ZodTypeAny;
1007
- zodClientSchema: import("zod").ZodTypeAny;
1008
- jsonSchema: any;
1009
- defaultValue: DefaultValue;
1010
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
1011
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
1012
- transforms: {
1013
- toClient: string;
1014
- toDb: string;
1015
- };
1016
- };
1017
- };
1018
- db: <ServerType extends import("zod").ZodTypeAny>(assert: (tools: {
1019
- zod: import("zod").ZodNumber;
1020
- }) => ServerType) => {
1021
- sql: {
1022
- type: "int";
1023
- };
1024
- dbType: ServerType;
1025
- zodDbSchema: ServerType;
1026
- zodClientSchema: ServerType;
1027
- jsonSchema: import("zod-to-json-schema").JsonSchema7Type & {
1028
- $schema?: string | undefined;
1029
- definitions?: {
1030
- [key: string]: import("zod-to-json-schema").JsonSchema7Type;
1031
- } | undefined;
1032
- };
1033
- defaultValue: import("zod").TypeOf<ServerType>;
1034
- client: <ClientType extends import("zod").ZodTypeAny, DefaultValue extends import("zod").TypeOf<ClientType>>(assert?: ClientType | ((tools: {
1035
- zod: import("zod").ZodTypeAny;
1036
- serverType?: ServerType;
1037
- }) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
1038
- default: "CURRENT_TIMESTAMP";
1039
- defaultValue: Date;
1040
- } : never) | undefined) => {
1041
- sql: {
1042
- type: "int";
1043
- };
1044
- zodDbSchema: import("zod").ZodTypeAny;
1045
- zodClientSchema: import("zod").ZodTypeAny;
1046
- jsonSchema: any;
1047
- defaultValue: DefaultValue | (DefaultValue extends Date ? {
1048
- default: "CURRENT_TIMESTAMP";
1049
- defaultValue: Date;
1050
- } : never);
1051
- transform: (transforms: {
1052
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
1053
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
1054
- }) => {
1055
- sql: {
1056
- type: "int";
1057
- };
1058
- zodDbSchema: import("zod").ZodTypeAny;
1059
- zodClientSchema: import("zod").ZodTypeAny;
1060
- jsonSchema: any;
1061
- defaultValue: DefaultValue;
1062
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => import("zod").TypeOf<ClientType>;
1063
- toDb: (clientValue: import("zod").TypeOf<ClientType>) => import("zod").TypeOf<import("zod").ZodTypeAny>;
1064
- transforms: {
1065
- toClient: string;
1066
- toDb: string;
1067
- };
1068
- };
832
+ defaultValue: string;
833
+ toClient: (dbValue: import("zod").TypeOf<any>) => string;
834
+ toDb: (clientValue: string) => import("zod").TypeOf<any>;
835
+ transforms: {
836
+ toClient: string;
837
+ toDb: string;
1069
838
  };
1070
839
  };
1071
840
  };
@@ -1073,12 +842,12 @@ declare const schemas: {
1073
842
  sql: {
1074
843
  type: "text";
1075
844
  };
1076
- zodDbSchema: import("zod").ZodTypeAny;
1077
- zodClientSchema: import("zod").ZodTypeAny;
845
+ zodDbSchema: any;
846
+ zodClientSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
1078
847
  jsonSchema: any;
1079
848
  defaultValue: ("bald" | "fuzzy" | "fluffy" | "poof")[];
1080
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => ("bald" | "fuzzy" | "fluffy" | "poof")[];
1081
- toDb: (clientValue: ("bald" | "fuzzy" | "fluffy" | "poof")[]) => import("zod").TypeOf<import("zod").ZodTypeAny>;
849
+ toClient: (dbValue: import("zod").TypeOf<any>) => ("bald" | "fuzzy" | "fluffy" | "poof")[];
850
+ toDb: (clientValue: ("bald" | "fuzzy" | "fluffy" | "poof")[]) => import("zod").TypeOf<any>;
1082
851
  transforms: {
1083
852
  toClient: string;
1084
853
  toDb: string;
@@ -1088,12 +857,12 @@ declare const schemas: {
1088
857
  sql: {
1089
858
  type: "int";
1090
859
  };
1091
- zodDbSchema: import("zod").ZodTypeAny;
1092
- zodClientSchema: import("zod").ZodTypeAny;
860
+ zodDbSchema: any;
861
+ zodClientSchema: import("zod").ZodBoolean;
1093
862
  jsonSchema: any;
1094
863
  defaultValue: boolean;
1095
- toClient: (dbValue: import("zod").TypeOf<import("zod").ZodTypeAny>) => boolean;
1096
- toDb: (clientValue: boolean) => import("zod").TypeOf<import("zod").ZodTypeAny>;
864
+ toClient: (dbValue: import("zod").TypeOf<any>) => boolean;
865
+ toDb: (clientValue: boolean) => import("zod").TypeOf<any>;
1097
866
  transforms: {
1098
867
  toClient: string;
1099
868
  toDb: string;