@valbuild/shared 0.91.4 → 0.92.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,33 +1,15 @@
1
1
  import { z } from "zod";
2
2
  import { type ModuleFilePath } from "@valbuild/core";
3
- declare const ModuleFilePath: z.ZodEffects<z.ZodString, ModuleFilePath, string>;
4
- declare const cookies: z.ZodUnion<[z.ZodLiteral<"val_session">, z.ZodLiteral<"val_enable">, z.ZodLiteral<"val_state">]>;
3
+ declare const ModuleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
4
+ declare const cookies: z.ZodUnion<readonly [z.ZodLiteral<"val_session">, z.ZodLiteral<"val_enable">, z.ZodLiteral<"val_state">]>;
5
5
  type Cookies = z.infer<typeof cookies>;
6
6
  declare const enableCookieValue: z.ZodObject<{
7
7
  value: z.ZodLiteral<"true">;
8
8
  options: z.ZodObject<{
9
9
  httpOnly: z.ZodLiteral<false>;
10
10
  sameSite: z.ZodLiteral<"lax">;
11
- }, "strip", z.ZodTypeAny, {
12
- httpOnly: false;
13
- sameSite: "lax";
14
- }, {
15
- httpOnly: false;
16
- sameSite: "lax";
17
- }>;
18
- }, "strip", z.ZodTypeAny, {
19
- value: "true";
20
- options: {
21
- httpOnly: false;
22
- sameSite: "lax";
23
- };
24
- }, {
25
- value: "true";
26
- options: {
27
- httpOnly: false;
28
- sameSite: "lax";
29
- };
30
- }>;
11
+ }, z.core.$strip>;
12
+ }, z.core.$strip>;
31
13
  type EnableCookieValue = z.infer<typeof enableCookieValue>;
32
14
  type CookieValue = EnableCookieValue | {
33
15
  value: "false" | string | null;
@@ -42,120 +24,52 @@ export declare const Api: {
42
24
  GET: {
43
25
  req: {
44
26
  query: {
45
- redirect_to: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string, string[]>>;
27
+ redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
46
28
  };
47
29
  cookies: {
48
30
  val_session: z.ZodOptional<z.ZodString>;
49
31
  };
50
32
  };
51
- res: z.ZodUnion<[z.ZodObject<{
33
+ res: z.ZodUnion<readonly [z.ZodObject<{
52
34
  status: z.ZodLiteral<401>;
53
35
  json: z.ZodObject<{
54
36
  message: z.ZodString;
55
- }, "strip", z.ZodTypeAny, {
56
- message: string;
57
- }, {
58
- message: string;
59
- }>;
60
- }, "strip", z.ZodTypeAny, {
61
- status: 401;
62
- json: {
63
- message: string;
64
- };
65
- }, {
66
- status: 401;
67
- json: {
68
- message: string;
69
- };
70
- }>, z.ZodObject<{
37
+ }, z.core.$strip>;
38
+ }, z.core.$strip>, z.ZodObject<{
71
39
  status: z.ZodLiteral<302>;
72
40
  redirectTo: z.ZodString;
73
- }, "strip", z.ZodTypeAny, {
74
- status: 302;
75
- redirectTo: string;
76
- }, {
77
- status: 302;
78
- redirectTo: string;
79
- }>, z.ZodObject<{
41
+ }, z.core.$strip>, z.ZodObject<{
80
42
  status: z.ZodLiteral<400>;
81
43
  json: z.ZodObject<{
82
44
  message: z.ZodString;
83
- }, "strip", z.ZodTypeAny, {
84
- message: string;
85
- }, {
86
- message: string;
87
- }>;
88
- }, "strip", z.ZodTypeAny, {
89
- status: 400;
90
- json: {
91
- message: string;
92
- };
93
- }, {
94
- status: 400;
95
- json: {
96
- message: string;
97
- };
98
- }>]>;
45
+ }, z.core.$strip>;
46
+ }, z.core.$strip>]>;
99
47
  };
100
48
  };
101
49
  "/draft/disable": {
102
50
  GET: {
103
51
  req: {
104
52
  query: {
105
- redirect_to: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string, string[]>>;
53
+ redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
106
54
  };
107
55
  cookies: {
108
56
  val_session: z.ZodOptional<z.ZodString>;
109
57
  };
110
58
  };
111
- res: z.ZodUnion<[z.ZodObject<{
59
+ res: z.ZodUnion<readonly [z.ZodObject<{
112
60
  status: z.ZodLiteral<401>;
113
61
  json: z.ZodObject<{
114
62
  message: z.ZodString;
115
- }, "strip", z.ZodTypeAny, {
116
- message: string;
117
- }, {
118
- message: string;
119
- }>;
120
- }, "strip", z.ZodTypeAny, {
121
- status: 401;
122
- json: {
123
- message: string;
124
- };
125
- }, {
126
- status: 401;
127
- json: {
128
- message: string;
129
- };
130
- }>, z.ZodObject<{
63
+ }, z.core.$strip>;
64
+ }, z.core.$strip>, z.ZodObject<{
131
65
  status: z.ZodLiteral<302>;
132
66
  redirectTo: z.ZodString;
133
- }, "strip", z.ZodTypeAny, {
134
- status: 302;
135
- redirectTo: string;
136
- }, {
137
- status: 302;
138
- redirectTo: string;
139
- }>, z.ZodObject<{
67
+ }, z.core.$strip>, z.ZodObject<{
140
68
  status: z.ZodLiteral<400>;
141
69
  json: z.ZodObject<{
142
70
  message: z.ZodString;
143
- }, "strip", z.ZodTypeAny, {
144
- message: string;
145
- }, {
146
- message: string;
147
- }>;
148
- }, "strip", z.ZodTypeAny, {
149
- status: 400;
150
- json: {
151
- message: string;
152
- };
153
- }, {
154
- status: 400;
155
- json: {
156
- message: string;
157
- };
158
- }>]>;
71
+ }, z.core.$strip>;
72
+ }, z.core.$strip>]>;
159
73
  };
160
74
  };
161
75
  "/draft/stat": {
@@ -165,77 +79,35 @@ export declare const Api: {
165
79
  val_session: z.ZodOptional<z.ZodString>;
166
80
  };
167
81
  };
168
- res: z.ZodUnion<[z.ZodObject<{
82
+ res: z.ZodUnion<readonly [z.ZodObject<{
169
83
  status: z.ZodLiteral<401>;
170
84
  json: z.ZodObject<{
171
85
  message: z.ZodString;
172
- }, "strip", z.ZodTypeAny, {
173
- message: string;
174
- }, {
175
- message: string;
176
- }>;
177
- }, "strip", z.ZodTypeAny, {
178
- status: 401;
179
- json: {
180
- message: string;
181
- };
182
- }, {
183
- status: 401;
184
- json: {
185
- message: string;
186
- };
187
- }>, z.ZodObject<{
86
+ }, z.core.$strip>;
87
+ }, z.core.$strip>, z.ZodObject<{
188
88
  status: z.ZodLiteral<200>;
189
89
  json: z.ZodObject<{
190
90
  draftMode: z.ZodBoolean;
191
- }, "strip", z.ZodTypeAny, {
192
- draftMode: boolean;
193
- }, {
194
- draftMode: boolean;
195
- }>;
196
- }, "strip", z.ZodTypeAny, {
197
- status: 200;
198
- json: {
199
- draftMode: boolean;
200
- };
201
- }, {
202
- status: 200;
203
- json: {
204
- draftMode: boolean;
205
- };
206
- }>]>;
91
+ }, z.core.$strip>;
92
+ }, z.core.$strip>]>;
207
93
  };
208
94
  };
209
95
  "/enable": {
210
96
  GET: {
211
97
  req: {
212
98
  query: {
213
- redirect_to: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string, string[]>>;
99
+ redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
214
100
  };
215
101
  cookies: {
216
102
  val_session: z.ZodOptional<z.ZodString>;
217
103
  };
218
104
  };
219
- res: z.ZodUnion<[z.ZodObject<{
105
+ res: z.ZodUnion<readonly [z.ZodObject<{
220
106
  status: z.ZodLiteral<401>;
221
107
  json: z.ZodObject<{
222
108
  message: z.ZodString;
223
- }, "strip", z.ZodTypeAny, {
224
- message: string;
225
- }, {
226
- message: string;
227
- }>;
228
- }, "strip", z.ZodTypeAny, {
229
- status: 401;
230
- json: {
231
- message: string;
232
- };
233
- }, {
234
- status: 401;
235
- json: {
236
- message: string;
237
- };
238
- }>, z.ZodObject<{
109
+ }, z.core.$strip>;
110
+ }, z.core.$strip>, z.ZodObject<{
239
111
  status: z.ZodLiteral<302>;
240
112
  redirectTo: z.ZodString;
241
113
  cookies: z.ZodObject<{
@@ -244,130 +116,18 @@ export declare const Api: {
244
116
  options: z.ZodObject<{
245
117
  httpOnly: z.ZodLiteral<false>;
246
118
  sameSite: z.ZodLiteral<"lax">;
247
- }, "strip", z.ZodTypeAny, {
248
- httpOnly: false;
249
- sameSite: "lax";
250
- }, {
251
- httpOnly: false;
252
- sameSite: "lax";
253
- }>;
254
- }, "strip", z.ZodTypeAny, {
255
- value: "true";
256
- options: {
257
- httpOnly: false;
258
- sameSite: "lax";
259
- };
260
- }, {
261
- value: "true";
262
- options: {
263
- httpOnly: false;
264
- sameSite: "lax";
265
- };
266
- }>;
119
+ }, z.core.$strip>;
120
+ }, z.core.$strip>;
267
121
  val_state: z.ZodObject<{
268
122
  value: z.ZodString;
269
123
  options: z.ZodObject<{
270
124
  httpOnly: z.ZodLiteral<true>;
271
125
  sameSite: z.ZodLiteral<"lax">;
272
- expires: z.ZodType<Date, z.ZodTypeDef, Date>;
273
- }, "strip", z.ZodTypeAny, {
274
- httpOnly: true;
275
- sameSite: "lax";
276
- expires: Date;
277
- }, {
278
- httpOnly: true;
279
- sameSite: "lax";
280
- expires: Date;
281
- }>;
282
- }, "strip", z.ZodTypeAny, {
283
- value: string;
284
- options: {
285
- httpOnly: true;
286
- sameSite: "lax";
287
- expires: Date;
288
- };
289
- }, {
290
- value: string;
291
- options: {
292
- httpOnly: true;
293
- sameSite: "lax";
294
- expires: Date;
295
- };
296
- }>;
297
- }, "strip", z.ZodTypeAny, {
298
- val_enable: {
299
- value: "true";
300
- options: {
301
- httpOnly: false;
302
- sameSite: "lax";
303
- };
304
- };
305
- val_state: {
306
- value: string;
307
- options: {
308
- httpOnly: true;
309
- sameSite: "lax";
310
- expires: Date;
311
- };
312
- };
313
- }, {
314
- val_enable: {
315
- value: "true";
316
- options: {
317
- httpOnly: false;
318
- sameSite: "lax";
319
- };
320
- };
321
- val_state: {
322
- value: string;
323
- options: {
324
- httpOnly: true;
325
- sameSite: "lax";
326
- expires: Date;
327
- };
328
- };
329
- }>;
330
- }, "strip", z.ZodTypeAny, {
331
- status: 302;
332
- redirectTo: string;
333
- cookies: {
334
- val_enable: {
335
- value: "true";
336
- options: {
337
- httpOnly: false;
338
- sameSite: "lax";
339
- };
340
- };
341
- val_state: {
342
- value: string;
343
- options: {
344
- httpOnly: true;
345
- sameSite: "lax";
346
- expires: Date;
347
- };
348
- };
349
- };
350
- }, {
351
- status: 302;
352
- redirectTo: string;
353
- cookies: {
354
- val_enable: {
355
- value: "true";
356
- options: {
357
- httpOnly: false;
358
- sameSite: "lax";
359
- };
360
- };
361
- val_state: {
362
- value: string;
363
- options: {
364
- httpOnly: true;
365
- sameSite: "lax";
366
- expires: Date;
367
- };
368
- };
369
- };
370
- }>, z.ZodObject<{
126
+ expires: z.ZodCustom<Date, Date>;
127
+ }, z.core.$strip>;
128
+ }, z.core.$strip>;
129
+ }, z.core.$strip>;
130
+ }, z.core.$strip>, z.ZodObject<{
371
131
  status: z.ZodLiteral<302>;
372
132
  redirectTo: z.ZodString;
373
133
  cookies: z.ZodObject<{
@@ -376,184 +136,56 @@ export declare const Api: {
376
136
  options: z.ZodObject<{
377
137
  httpOnly: z.ZodLiteral<false>;
378
138
  sameSite: z.ZodLiteral<"lax">;
379
- }, "strip", z.ZodTypeAny, {
380
- httpOnly: false;
381
- sameSite: "lax";
382
- }, {
383
- httpOnly: false;
384
- sameSite: "lax";
385
- }>;
386
- }, "strip", z.ZodTypeAny, {
387
- value: "true";
388
- options: {
389
- httpOnly: false;
390
- sameSite: "lax";
391
- };
392
- }, {
393
- value: "true";
394
- options: {
395
- httpOnly: false;
396
- sameSite: "lax";
397
- };
398
- }>;
399
- }, "strip", z.ZodTypeAny, {
400
- val_enable: {
401
- value: "true";
402
- options: {
403
- httpOnly: false;
404
- sameSite: "lax";
405
- };
406
- };
407
- }, {
408
- val_enable: {
409
- value: "true";
410
- options: {
411
- httpOnly: false;
412
- sameSite: "lax";
413
- };
414
- };
415
- }>;
416
- }, "strip", z.ZodTypeAny, {
417
- status: 302;
418
- redirectTo: string;
419
- cookies: {
420
- val_enable: {
421
- value: "true";
422
- options: {
423
- httpOnly: false;
424
- sameSite: "lax";
425
- };
426
- };
427
- };
428
- }, {
429
- status: 302;
430
- redirectTo: string;
431
- cookies: {
432
- val_enable: {
433
- value: "true";
434
- options: {
435
- httpOnly: false;
436
- sameSite: "lax";
437
- };
438
- };
439
- };
440
- }>, z.ZodObject<{
139
+ }, z.core.$strip>;
140
+ }, z.core.$strip>;
141
+ }, z.core.$strip>;
142
+ }, z.core.$strip>, z.ZodObject<{
441
143
  status: z.ZodLiteral<400>;
442
144
  json: z.ZodObject<{
443
145
  message: z.ZodString;
444
- }, "strip", z.ZodTypeAny, {
445
- message: string;
446
- }, {
447
- message: string;
448
- }>;
449
- }, "strip", z.ZodTypeAny, {
450
- status: 400;
451
- json: {
452
- message: string;
453
- };
454
- }, {
455
- status: 400;
456
- json: {
457
- message: string;
458
- };
459
- }>]>;
146
+ }, z.core.$strip>;
147
+ }, z.core.$strip>]>;
460
148
  };
461
149
  };
462
150
  "/disable": {
463
151
  GET: {
464
152
  req: {
465
153
  query: {
466
- redirect_to: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string, string[]>>;
154
+ redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
467
155
  };
468
156
  cookies: {
469
157
  val_session: z.ZodOptional<z.ZodString>;
470
158
  };
471
159
  };
472
- res: z.ZodUnion<[z.ZodObject<{
160
+ res: z.ZodUnion<readonly [z.ZodObject<{
473
161
  status: z.ZodLiteral<401>;
474
162
  json: z.ZodObject<{
475
163
  message: z.ZodString;
476
- }, "strip", z.ZodTypeAny, {
477
- message: string;
478
- }, {
479
- message: string;
480
- }>;
481
- }, "strip", z.ZodTypeAny, {
482
- status: 401;
483
- json: {
484
- message: string;
485
- };
486
- }, {
487
- status: 401;
488
- json: {
489
- message: string;
490
- };
491
- }>, z.ZodObject<{
164
+ }, z.core.$strip>;
165
+ }, z.core.$strip>, z.ZodObject<{
492
166
  status: z.ZodLiteral<302>;
493
167
  redirectTo: z.ZodString;
494
168
  cookies: z.ZodObject<{
495
169
  val_enable: z.ZodObject<{
496
170
  value: z.ZodLiteral<"false">;
497
- }, "strip", z.ZodTypeAny, {
498
- value: "false";
499
- }, {
500
- value: "false";
501
- }>;
502
- }, "strip", z.ZodTypeAny, {
503
- val_enable: {
504
- value: "false";
505
- };
506
- }, {
507
- val_enable: {
508
- value: "false";
509
- };
510
- }>;
511
- }, "strip", z.ZodTypeAny, {
512
- status: 302;
513
- redirectTo: string;
514
- cookies: {
515
- val_enable: {
516
- value: "false";
517
- };
518
- };
519
- }, {
520
- status: 302;
521
- redirectTo: string;
522
- cookies: {
523
- val_enable: {
524
- value: "false";
525
- };
526
- };
527
- }>, z.ZodObject<{
171
+ }, z.core.$strip>;
172
+ }, z.core.$strip>;
173
+ }, z.core.$strip>, z.ZodObject<{
528
174
  status: z.ZodLiteral<400>;
529
175
  json: z.ZodObject<{
530
176
  message: z.ZodString;
531
- }, "strip", z.ZodTypeAny, {
532
- message: string;
533
- }, {
534
- message: string;
535
- }>;
536
- }, "strip", z.ZodTypeAny, {
537
- status: 400;
538
- json: {
539
- message: string;
540
- };
541
- }, {
542
- status: 400;
543
- json: {
544
- message: string;
545
- };
546
- }>]>;
177
+ }, z.core.$strip>;
178
+ }, z.core.$strip>]>;
547
179
  };
548
180
  };
549
181
  "/authorize": {
550
182
  GET: {
551
183
  req: {
552
184
  query: {
553
- redirect_to: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string, string[]>>;
185
+ redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
554
186
  };
555
187
  };
556
- res: z.ZodUnion<[z.ZodObject<{
188
+ res: z.ZodUnion<readonly [z.ZodObject<{
557
189
  status: z.ZodLiteral<302>;
558
190
  redirectTo: z.ZodString;
559
191
  cookies: z.ZodObject<{
@@ -562,157 +194,31 @@ export declare const Api: {
562
194
  options: z.ZodObject<{
563
195
  httpOnly: z.ZodLiteral<false>;
564
196
  sameSite: z.ZodLiteral<"lax">;
565
- }, "strip", z.ZodTypeAny, {
566
- httpOnly: false;
567
- sameSite: "lax";
568
- }, {
569
- httpOnly: false;
570
- sameSite: "lax";
571
- }>;
572
- }, "strip", z.ZodTypeAny, {
573
- value: "true";
574
- options: {
575
- httpOnly: false;
576
- sameSite: "lax";
577
- };
578
- }, {
579
- value: "true";
580
- options: {
581
- httpOnly: false;
582
- sameSite: "lax";
583
- };
584
- }>;
197
+ }, z.core.$strip>;
198
+ }, z.core.$strip>;
585
199
  val_state: z.ZodObject<{
586
200
  value: z.ZodString;
587
201
  options: z.ZodObject<{
588
202
  httpOnly: z.ZodLiteral<true>;
589
203
  sameSite: z.ZodLiteral<"lax">;
590
- expires: z.ZodType<Date, z.ZodTypeDef, Date>;
591
- }, "strip", z.ZodTypeAny, {
592
- httpOnly: true;
593
- sameSite: "lax";
594
- expires: Date;
595
- }, {
596
- httpOnly: true;
597
- sameSite: "lax";
598
- expires: Date;
599
- }>;
600
- }, "strip", z.ZodTypeAny, {
601
- value: string;
602
- options: {
603
- httpOnly: true;
604
- sameSite: "lax";
605
- expires: Date;
606
- };
607
- }, {
608
- value: string;
609
- options: {
610
- httpOnly: true;
611
- sameSite: "lax";
612
- expires: Date;
613
- };
614
- }>;
615
- }, "strip", z.ZodTypeAny, {
616
- val_enable: {
617
- value: "true";
618
- options: {
619
- httpOnly: false;
620
- sameSite: "lax";
621
- };
622
- };
623
- val_state: {
624
- value: string;
625
- options: {
626
- httpOnly: true;
627
- sameSite: "lax";
628
- expires: Date;
629
- };
630
- };
631
- }, {
632
- val_enable: {
633
- value: "true";
634
- options: {
635
- httpOnly: false;
636
- sameSite: "lax";
637
- };
638
- };
639
- val_state: {
640
- value: string;
641
- options: {
642
- httpOnly: true;
643
- sameSite: "lax";
644
- expires: Date;
645
- };
646
- };
647
- }>;
648
- }, "strip", z.ZodTypeAny, {
649
- status: 302;
650
- redirectTo: string;
651
- cookies: {
652
- val_enable: {
653
- value: "true";
654
- options: {
655
- httpOnly: false;
656
- sameSite: "lax";
657
- };
658
- };
659
- val_state: {
660
- value: string;
661
- options: {
662
- httpOnly: true;
663
- sameSite: "lax";
664
- expires: Date;
665
- };
666
- };
667
- };
668
- }, {
669
- status: 302;
670
- redirectTo: string;
671
- cookies: {
672
- val_enable: {
673
- value: "true";
674
- options: {
675
- httpOnly: false;
676
- sameSite: "lax";
677
- };
678
- };
679
- val_state: {
680
- value: string;
681
- options: {
682
- httpOnly: true;
683
- sameSite: "lax";
684
- expires: Date;
685
- };
686
- };
687
- };
688
- }>, z.ZodObject<{
204
+ expires: z.ZodCustom<Date, Date>;
205
+ }, z.core.$strip>;
206
+ }, z.core.$strip>;
207
+ }, z.core.$strip>;
208
+ }, z.core.$strip>, z.ZodObject<{
689
209
  status: z.ZodLiteral<400>;
690
210
  json: z.ZodObject<{
691
211
  message: z.ZodString;
692
- }, "strip", z.ZodTypeAny, {
693
- message: string;
694
- }, {
695
- message: string;
696
- }>;
697
- }, "strip", z.ZodTypeAny, {
698
- status: 400;
699
- json: {
700
- message: string;
701
- };
702
- }, {
703
- status: 400;
704
- json: {
705
- message: string;
706
- };
707
- }>]>;
212
+ }, z.core.$strip>;
213
+ }, z.core.$strip>]>;
708
214
  };
709
215
  };
710
216
  "/callback": {
711
217
  GET: {
712
218
  req: {
713
219
  query: {
714
- code: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string, string[]>>;
715
- state: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string, string[]>>;
220
+ code: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
221
+ state: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
716
222
  };
717
223
  cookies: {
718
224
  val_state: z.ZodString;
@@ -724,36 +230,14 @@ export declare const Api: {
724
230
  cookies: z.ZodObject<{
725
231
  val_state: z.ZodObject<{
726
232
  value: z.ZodLiteral<null>;
727
- }, "strip", z.ZodTypeAny, {
728
- value: null;
729
- }, {
730
- value: null;
731
- }>;
233
+ }, z.core.$strip>;
732
234
  val_enable: z.ZodOptional<z.ZodObject<{
733
235
  value: z.ZodLiteral<"true">;
734
236
  options: z.ZodObject<{
735
237
  httpOnly: z.ZodLiteral<false>;
736
238
  sameSite: z.ZodLiteral<"lax">;
737
- }, "strip", z.ZodTypeAny, {
738
- httpOnly: false;
739
- sameSite: "lax";
740
- }, {
741
- httpOnly: false;
742
- sameSite: "lax";
743
- }>;
744
- }, "strip", z.ZodTypeAny, {
745
- value: "true";
746
- options: {
747
- httpOnly: false;
748
- sameSite: "lax";
749
- };
750
- }, {
751
- value: "true";
752
- options: {
753
- httpOnly: false;
754
- sameSite: "lax";
755
- };
756
- }>>;
239
+ }, z.core.$strip>;
240
+ }, z.core.$strip>>;
757
241
  val_session: z.ZodOptional<z.ZodObject<{
758
242
  value: z.ZodString;
759
243
  options: z.ZodOptional<z.ZodObject<{
@@ -761,133 +245,11 @@ export declare const Api: {
761
245
  sameSite: z.ZodLiteral<"strict">;
762
246
  path: z.ZodString;
763
247
  secure: z.ZodLiteral<true>;
764
- expires: z.ZodType<Date, z.ZodTypeDef, Date>;
765
- }, "strip", z.ZodTypeAny, {
766
- path: string;
767
- httpOnly: true;
768
- sameSite: "strict";
769
- expires: Date;
770
- secure: true;
771
- }, {
772
- path: string;
773
- httpOnly: true;
774
- sameSite: "strict";
775
- expires: Date;
776
- secure: true;
777
- }>>;
778
- }, "strip", z.ZodTypeAny, {
779
- value: string;
780
- options?: {
781
- path: string;
782
- httpOnly: true;
783
- sameSite: "strict";
784
- expires: Date;
785
- secure: true;
786
- } | undefined;
787
- }, {
788
- value: string;
789
- options?: {
790
- path: string;
791
- httpOnly: true;
792
- sameSite: "strict";
793
- expires: Date;
794
- secure: true;
795
- } | undefined;
796
- }>>;
797
- }, "strip", z.ZodTypeAny, {
798
- val_state: {
799
- value: null;
800
- };
801
- val_enable?: {
802
- value: "true";
803
- options: {
804
- httpOnly: false;
805
- sameSite: "lax";
806
- };
807
- } | undefined;
808
- val_session?: {
809
- value: string;
810
- options?: {
811
- path: string;
812
- httpOnly: true;
813
- sameSite: "strict";
814
- expires: Date;
815
- secure: true;
816
- } | undefined;
817
- } | undefined;
818
- }, {
819
- val_state: {
820
- value: null;
821
- };
822
- val_enable?: {
823
- value: "true";
824
- options: {
825
- httpOnly: false;
826
- sameSite: "lax";
827
- };
828
- } | undefined;
829
- val_session?: {
830
- value: string;
831
- options?: {
832
- path: string;
833
- httpOnly: true;
834
- sameSite: "strict";
835
- expires: Date;
836
- secure: true;
837
- } | undefined;
838
- } | undefined;
839
- }>;
840
- }, "strip", z.ZodTypeAny, {
841
- status: 302;
842
- redirectTo: string;
843
- cookies: {
844
- val_state: {
845
- value: null;
846
- };
847
- val_enable?: {
848
- value: "true";
849
- options: {
850
- httpOnly: false;
851
- sameSite: "lax";
852
- };
853
- } | undefined;
854
- val_session?: {
855
- value: string;
856
- options?: {
857
- path: string;
858
- httpOnly: true;
859
- sameSite: "strict";
860
- expires: Date;
861
- secure: true;
862
- } | undefined;
863
- } | undefined;
864
- };
865
- }, {
866
- status: 302;
867
- redirectTo: string;
868
- cookies: {
869
- val_state: {
870
- value: null;
871
- };
872
- val_enable?: {
873
- value: "true";
874
- options: {
875
- httpOnly: false;
876
- sameSite: "lax";
877
- };
878
- } | undefined;
879
- val_session?: {
880
- value: string;
881
- options?: {
882
- path: string;
883
- httpOnly: true;
884
- sameSite: "strict";
885
- expires: Date;
886
- secure: true;
887
- } | undefined;
888
- } | undefined;
889
- };
890
- }>;
248
+ expires: z.ZodCustom<Date, Date>;
249
+ }, z.core.$strip>>;
250
+ }, z.core.$strip>>;
251
+ }, z.core.$strip>;
252
+ }, z.core.$strip>;
891
253
  };
892
254
  };
893
255
  "/session": {
@@ -897,159 +259,47 @@ export declare const Api: {
897
259
  val_session: z.ZodOptional<z.ZodString>;
898
260
  };
899
261
  };
900
- res: z.ZodUnion<[z.ZodObject<{
262
+ res: z.ZodUnion<readonly [z.ZodObject<{
901
263
  status: z.ZodLiteral<200>;
902
264
  json: z.ZodObject<{
903
- mode: z.ZodUnion<[z.ZodLiteral<"local">, z.ZodLiteral<"proxy">]>;
265
+ mode: z.ZodUnion<readonly [z.ZodLiteral<"local">, z.ZodLiteral<"proxy">]>;
904
266
  enabled: z.ZodBoolean;
905
- }, "strip", z.ZodTypeAny, {
906
- mode: "local" | "proxy";
907
- enabled: boolean;
908
- }, {
909
- mode: "local" | "proxy";
910
- enabled: boolean;
911
- }>;
912
- }, "strip", z.ZodTypeAny, {
913
- status: 200;
914
- json: {
915
- mode: "local" | "proxy";
916
- enabled: boolean;
917
- };
918
- }, {
919
- status: 200;
920
- json: {
921
- mode: "local" | "proxy";
922
- enabled: boolean;
923
- };
924
- }>, z.ZodObject<{
925
- status: z.ZodUnion<[z.ZodLiteral<400>, z.ZodLiteral<401>, z.ZodLiteral<403>, z.ZodLiteral<404>, z.ZodLiteral<500>, z.ZodLiteral<501>]>;
267
+ }, z.core.$strip>;
268
+ }, z.core.$strip>, z.ZodObject<{
269
+ status: z.ZodUnion<readonly [z.ZodLiteral<400>, z.ZodLiteral<401>, z.ZodLiteral<403>, z.ZodLiteral<404>, z.ZodLiteral<500>, z.ZodLiteral<501>]>;
926
270
  json: z.ZodObject<{
927
271
  message: z.ZodString;
928
- }, "strip", z.ZodTypeAny, {
929
- message: string;
930
- }, {
931
- message: string;
932
- }>;
933
- }, "strip", z.ZodTypeAny, {
934
- status: 400 | 401 | 403 | 404 | 500 | 501;
935
- json: {
936
- message: string;
937
- };
938
- }, {
939
- status: 400 | 401 | 403 | 404 | 500 | 501;
940
- json: {
941
- message: string;
942
- };
943
- }>, z.ZodObject<{
272
+ }, z.core.$strip>;
273
+ }, z.core.$strip>, z.ZodObject<{
944
274
  status: z.ZodLiteral<401>;
945
275
  json: z.ZodObject<{
946
276
  message: z.ZodString;
947
- details: z.ZodUnion<[z.ZodString, z.ZodObject<{
277
+ details: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
948
278
  reason: z.ZodString;
949
- }, "strip", z.ZodTypeAny, {
950
- reason: string;
951
- }, {
952
- reason: string;
953
- }>, z.ZodObject<{
279
+ }, z.core.$strip>, z.ZodObject<{
954
280
  sub: z.ZodString;
955
281
  exp: z.ZodNumber;
956
282
  token: z.ZodString;
957
283
  org: z.ZodString;
958
284
  project: z.ZodString;
959
- }, "strip", z.ZodTypeAny, {
960
- sub: string;
961
- exp: number;
962
- token: string;
963
- org: string;
964
- project: string;
965
- }, {
966
- sub: string;
967
- exp: number;
968
- token: string;
969
- org: string;
970
- project: string;
971
- }>]>;
972
- }, "strip", z.ZodTypeAny, {
973
- message: string;
974
- details: string | {
975
- reason: string;
976
- } | {
977
- sub: string;
978
- exp: number;
979
- token: string;
980
- org: string;
981
- project: string;
982
- };
983
- }, {
984
- message: string;
985
- details: string | {
986
- reason: string;
987
- } | {
988
- sub: string;
989
- exp: number;
990
- token: string;
991
- org: string;
992
- project: string;
993
- };
994
- }>;
995
- }, "strip", z.ZodTypeAny, {
996
- status: 401;
997
- json: {
998
- message: string;
999
- details: string | {
1000
- reason: string;
1001
- } | {
1002
- sub: string;
1003
- exp: number;
1004
- token: string;
1005
- org: string;
1006
- project: string;
1007
- };
1008
- };
1009
- }, {
1010
- status: 401;
1011
- json: {
1012
- message: string;
1013
- details: string | {
1014
- reason: string;
1015
- } | {
1016
- sub: string;
1017
- exp: number;
1018
- token: string;
1019
- org: string;
1020
- project: string;
1021
- };
1022
- };
1023
- }>, z.ZodObject<{
285
+ }, z.core.$strip>]>;
286
+ }, z.core.$strip>;
287
+ }, z.core.$strip>, z.ZodObject<{
1024
288
  status: z.ZodLiteral<500>;
1025
289
  json: z.ZodObject<{
1026
290
  message: z.ZodString;
1027
- }, "strip", z.ZodTypeAny, {
1028
- message: string;
1029
- }, {
1030
- message: string;
1031
- }>;
1032
- }, "strip", z.ZodTypeAny, {
1033
- status: 500;
1034
- json: {
1035
- message: string;
1036
- };
1037
- }, {
1038
- status: 500;
1039
- json: {
1040
- message: string;
1041
- };
1042
- }>]>;
291
+ }, z.core.$strip>;
292
+ }, z.core.$strip>]>;
1043
293
  };
1044
294
  };
1045
295
  "/logout": {
1046
296
  GET: {
1047
297
  req: {
1048
298
  query: {
1049
- redirect_to: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string, string[]>>;
299
+ redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
1050
300
  };
1051
301
  };
1052
- res: z.ZodUnion<[z.ZodObject<{
302
+ res: z.ZodUnion<readonly [z.ZodObject<{
1053
303
  status: z.ZodLiteral<200>;
1054
304
  cookies: z.ZodObject<{
1055
305
  val_session: z.ZodOptional<z.ZodObject<{
@@ -1059,39 +309,9 @@ export declare const Api: {
1059
309
  sameSite: z.ZodLiteral<"strict">;
1060
310
  path: z.ZodString;
1061
311
  secure: z.ZodLiteral<true>;
1062
- expires: z.ZodType<Date, z.ZodTypeDef, Date>;
1063
- }, "strip", z.ZodTypeAny, {
1064
- path: string;
1065
- httpOnly: true;
1066
- sameSite: "strict";
1067
- expires: Date;
1068
- secure: true;
1069
- }, {
1070
- path: string;
1071
- httpOnly: true;
1072
- sameSite: "strict";
1073
- expires: Date;
1074
- secure: true;
1075
- }>>;
1076
- }, "strip", z.ZodTypeAny, {
1077
- value: string;
1078
- options?: {
1079
- path: string;
1080
- httpOnly: true;
1081
- sameSite: "strict";
1082
- expires: Date;
1083
- secure: true;
1084
- } | undefined;
1085
- }, {
1086
- value: string;
1087
- options?: {
1088
- path: string;
1089
- httpOnly: true;
1090
- sameSite: "strict";
1091
- expires: Date;
1092
- secure: true;
1093
- } | undefined;
1094
- }>>;
312
+ expires: z.ZodCustom<Date, Date>;
313
+ }, z.core.$strip>>;
314
+ }, z.core.$strip>>;
1095
315
  val_state: z.ZodOptional<z.ZodObject<{
1096
316
  value: z.ZodString;
1097
317
  options: z.ZodOptional<z.ZodObject<{
@@ -1099,131 +319,11 @@ export declare const Api: {
1099
319
  sameSite: z.ZodLiteral<"strict">;
1100
320
  path: z.ZodString;
1101
321
  secure: z.ZodLiteral<true>;
1102
- expires: z.ZodType<Date, z.ZodTypeDef, Date>;
1103
- }, "strip", z.ZodTypeAny, {
1104
- path: string;
1105
- httpOnly: true;
1106
- sameSite: "strict";
1107
- expires: Date;
1108
- secure: true;
1109
- }, {
1110
- path: string;
1111
- httpOnly: true;
1112
- sameSite: "strict";
1113
- expires: Date;
1114
- secure: true;
1115
- }>>;
1116
- }, "strip", z.ZodTypeAny, {
1117
- value: string;
1118
- options?: {
1119
- path: string;
1120
- httpOnly: true;
1121
- sameSite: "strict";
1122
- expires: Date;
1123
- secure: true;
1124
- } | undefined;
1125
- }, {
1126
- value: string;
1127
- options?: {
1128
- path: string;
1129
- httpOnly: true;
1130
- sameSite: "strict";
1131
- expires: Date;
1132
- secure: true;
1133
- } | undefined;
1134
- }>>;
1135
- }, "strip", z.ZodTypeAny, {
1136
- val_state?: {
1137
- value: string;
1138
- options?: {
1139
- path: string;
1140
- httpOnly: true;
1141
- sameSite: "strict";
1142
- expires: Date;
1143
- secure: true;
1144
- } | undefined;
1145
- } | undefined;
1146
- val_session?: {
1147
- value: string;
1148
- options?: {
1149
- path: string;
1150
- httpOnly: true;
1151
- sameSite: "strict";
1152
- expires: Date;
1153
- secure: true;
1154
- } | undefined;
1155
- } | undefined;
1156
- }, {
1157
- val_state?: {
1158
- value: string;
1159
- options?: {
1160
- path: string;
1161
- httpOnly: true;
1162
- sameSite: "strict";
1163
- expires: Date;
1164
- secure: true;
1165
- } | undefined;
1166
- } | undefined;
1167
- val_session?: {
1168
- value: string;
1169
- options?: {
1170
- path: string;
1171
- httpOnly: true;
1172
- sameSite: "strict";
1173
- expires: Date;
1174
- secure: true;
1175
- } | undefined;
1176
- } | undefined;
1177
- }>;
1178
- }, "strip", z.ZodTypeAny, {
1179
- status: 200;
1180
- cookies: {
1181
- val_state?: {
1182
- value: string;
1183
- options?: {
1184
- path: string;
1185
- httpOnly: true;
1186
- sameSite: "strict";
1187
- expires: Date;
1188
- secure: true;
1189
- } | undefined;
1190
- } | undefined;
1191
- val_session?: {
1192
- value: string;
1193
- options?: {
1194
- path: string;
1195
- httpOnly: true;
1196
- sameSite: "strict";
1197
- expires: Date;
1198
- secure: true;
1199
- } | undefined;
1200
- } | undefined;
1201
- };
1202
- }, {
1203
- status: 200;
1204
- cookies: {
1205
- val_state?: {
1206
- value: string;
1207
- options?: {
1208
- path: string;
1209
- httpOnly: true;
1210
- sameSite: "strict";
1211
- expires: Date;
1212
- secure: true;
1213
- } | undefined;
1214
- } | undefined;
1215
- val_session?: {
1216
- value: string;
1217
- options?: {
1218
- path: string;
1219
- httpOnly: true;
1220
- sameSite: "strict";
1221
- expires: Date;
1222
- secure: true;
1223
- } | undefined;
1224
- } | undefined;
1225
- };
1226
- }>, z.ZodObject<{
322
+ expires: z.ZodCustom<Date, Date>;
323
+ }, z.core.$strip>>;
324
+ }, z.core.$strip>>;
325
+ }, z.core.$strip>;
326
+ }, z.core.$strip>, z.ZodObject<{
1227
327
  status: z.ZodLiteral<302>;
1228
328
  redirectTo: z.ZodString;
1229
329
  cookies: z.ZodObject<{
@@ -1234,39 +334,9 @@ export declare const Api: {
1234
334
  sameSite: z.ZodLiteral<"strict">;
1235
335
  path: z.ZodString;
1236
336
  secure: z.ZodLiteral<true>;
1237
- expires: z.ZodType<Date, z.ZodTypeDef, Date>;
1238
- }, "strip", z.ZodTypeAny, {
1239
- path: string;
1240
- httpOnly: true;
1241
- sameSite: "strict";
1242
- expires: Date;
1243
- secure: true;
1244
- }, {
1245
- path: string;
1246
- httpOnly: true;
1247
- sameSite: "strict";
1248
- expires: Date;
1249
- secure: true;
1250
- }>>;
1251
- }, "strip", z.ZodTypeAny, {
1252
- value: string;
1253
- options?: {
1254
- path: string;
1255
- httpOnly: true;
1256
- sameSite: "strict";
1257
- expires: Date;
1258
- secure: true;
1259
- } | undefined;
1260
- }, {
1261
- value: string;
1262
- options?: {
1263
- path: string;
1264
- httpOnly: true;
1265
- sameSite: "strict";
1266
- expires: Date;
1267
- secure: true;
1268
- } | undefined;
1269
- }>>;
337
+ expires: z.ZodCustom<Date, Date>;
338
+ }, z.core.$strip>>;
339
+ }, z.core.$strip>>;
1270
340
  val_state: z.ZodOptional<z.ZodObject<{
1271
341
  value: z.ZodString;
1272
342
  options: z.ZodOptional<z.ZodObject<{
@@ -1274,133 +344,11 @@ export declare const Api: {
1274
344
  sameSite: z.ZodLiteral<"strict">;
1275
345
  path: z.ZodString;
1276
346
  secure: z.ZodLiteral<true>;
1277
- expires: z.ZodType<Date, z.ZodTypeDef, Date>;
1278
- }, "strip", z.ZodTypeAny, {
1279
- path: string;
1280
- httpOnly: true;
1281
- sameSite: "strict";
1282
- expires: Date;
1283
- secure: true;
1284
- }, {
1285
- path: string;
1286
- httpOnly: true;
1287
- sameSite: "strict";
1288
- expires: Date;
1289
- secure: true;
1290
- }>>;
1291
- }, "strip", z.ZodTypeAny, {
1292
- value: string;
1293
- options?: {
1294
- path: string;
1295
- httpOnly: true;
1296
- sameSite: "strict";
1297
- expires: Date;
1298
- secure: true;
1299
- } | undefined;
1300
- }, {
1301
- value: string;
1302
- options?: {
1303
- path: string;
1304
- httpOnly: true;
1305
- sameSite: "strict";
1306
- expires: Date;
1307
- secure: true;
1308
- } | undefined;
1309
- }>>;
1310
- }, "strip", z.ZodTypeAny, {
1311
- val_state?: {
1312
- value: string;
1313
- options?: {
1314
- path: string;
1315
- httpOnly: true;
1316
- sameSite: "strict";
1317
- expires: Date;
1318
- secure: true;
1319
- } | undefined;
1320
- } | undefined;
1321
- val_session?: {
1322
- value: string;
1323
- options?: {
1324
- path: string;
1325
- httpOnly: true;
1326
- sameSite: "strict";
1327
- expires: Date;
1328
- secure: true;
1329
- } | undefined;
1330
- } | undefined;
1331
- }, {
1332
- val_state?: {
1333
- value: string;
1334
- options?: {
1335
- path: string;
1336
- httpOnly: true;
1337
- sameSite: "strict";
1338
- expires: Date;
1339
- secure: true;
1340
- } | undefined;
1341
- } | undefined;
1342
- val_session?: {
1343
- value: string;
1344
- options?: {
1345
- path: string;
1346
- httpOnly: true;
1347
- sameSite: "strict";
1348
- expires: Date;
1349
- secure: true;
1350
- } | undefined;
1351
- } | undefined;
1352
- }>;
1353
- }, "strip", z.ZodTypeAny, {
1354
- status: 302;
1355
- redirectTo: string;
1356
- cookies: {
1357
- val_state?: {
1358
- value: string;
1359
- options?: {
1360
- path: string;
1361
- httpOnly: true;
1362
- sameSite: "strict";
1363
- expires: Date;
1364
- secure: true;
1365
- } | undefined;
1366
- } | undefined;
1367
- val_session?: {
1368
- value: string;
1369
- options?: {
1370
- path: string;
1371
- httpOnly: true;
1372
- sameSite: "strict";
1373
- expires: Date;
1374
- secure: true;
1375
- } | undefined;
1376
- } | undefined;
1377
- };
1378
- }, {
1379
- status: 302;
1380
- redirectTo: string;
1381
- cookies: {
1382
- val_state?: {
1383
- value: string;
1384
- options?: {
1385
- path: string;
1386
- httpOnly: true;
1387
- sameSite: "strict";
1388
- expires: Date;
1389
- secure: true;
1390
- } | undefined;
1391
- } | undefined;
1392
- val_session?: {
1393
- value: string;
1394
- options?: {
1395
- path: string;
1396
- httpOnly: true;
1397
- sameSite: "strict";
1398
- expires: Date;
1399
- secure: true;
1400
- } | undefined;
1401
- } | undefined;
1402
- };
1403
- }>]>;
347
+ expires: z.ZodCustom<Date, Date>;
348
+ }, z.core.$strip>>;
349
+ }, z.core.$strip>>;
350
+ }, z.core.$strip>;
351
+ }, z.core.$strip>]>;
1404
352
  };
1405
353
  };
1406
354
  "/remote/settings": {
@@ -1410,117 +358,33 @@ export declare const Api: {
1410
358
  val_session: z.ZodOptional<z.ZodString>;
1411
359
  };
1412
360
  };
1413
- res: z.ZodUnion<[z.ZodObject<{
361
+ res: z.ZodUnion<readonly [z.ZodObject<{
1414
362
  status: z.ZodLiteral<200>;
1415
363
  json: z.ZodObject<{
1416
364
  publicProjectId: z.ZodString;
1417
365
  coreVersion: z.ZodString;
1418
366
  remoteFileBuckets: z.ZodArray<z.ZodObject<{
1419
367
  bucket: z.ZodString;
1420
- }, "strip", z.ZodTypeAny, {
1421
- bucket: string;
1422
- }, {
1423
- bucket: string;
1424
- }>, "many">;
1425
- }, "strip", z.ZodTypeAny, {
1426
- publicProjectId: string;
1427
- coreVersion: string;
1428
- remoteFileBuckets: {
1429
- bucket: string;
1430
- }[];
1431
- }, {
1432
- publicProjectId: string;
1433
- coreVersion: string;
1434
- remoteFileBuckets: {
1435
- bucket: string;
1436
- }[];
1437
- }>;
1438
- }, "strip", z.ZodTypeAny, {
1439
- status: 200;
1440
- json: {
1441
- publicProjectId: string;
1442
- coreVersion: string;
1443
- remoteFileBuckets: {
1444
- bucket: string;
1445
- }[];
1446
- };
1447
- }, {
1448
- status: 200;
1449
- json: {
1450
- publicProjectId: string;
1451
- coreVersion: string;
1452
- remoteFileBuckets: {
1453
- bucket: string;
1454
- }[];
1455
- };
1456
- }>, z.ZodObject<{
368
+ }, z.core.$strip>>;
369
+ }, z.core.$strip>;
370
+ }, z.core.$strip>, z.ZodObject<{
1457
371
  status: z.ZodLiteral<400>;
1458
372
  json: z.ZodObject<{
1459
- errorCode: z.ZodUnion<[z.ZodLiteral<"project-not-configured">, z.ZodLiteral<"error-could-not-get-settings">, z.ZodLiteral<"project-not-configured">, z.ZodLiteral<"pat-error">, z.ZodLiteral<"api-key-missing">]>;
373
+ errorCode: z.ZodUnion<readonly [z.ZodLiteral<"project-not-configured">, z.ZodLiteral<"error-could-not-get-settings">, z.ZodLiteral<"project-not-configured">, z.ZodLiteral<"pat-error">, z.ZodLiteral<"api-key-missing">]>;
1460
374
  message: z.ZodString;
1461
- }, "strip", z.ZodTypeAny, {
1462
- message: string;
1463
- errorCode: "project-not-configured" | "error-could-not-get-settings" | "pat-error" | "api-key-missing";
1464
- }, {
1465
- message: string;
1466
- errorCode: "project-not-configured" | "error-could-not-get-settings" | "pat-error" | "api-key-missing";
1467
- }>;
1468
- }, "strip", z.ZodTypeAny, {
1469
- status: 400;
1470
- json: {
1471
- message: string;
1472
- errorCode: "project-not-configured" | "error-could-not-get-settings" | "pat-error" | "api-key-missing";
1473
- };
1474
- }, {
1475
- status: 400;
1476
- json: {
1477
- message: string;
1478
- errorCode: "project-not-configured" | "error-could-not-get-settings" | "pat-error" | "api-key-missing";
1479
- };
1480
- }>, z.ZodObject<{
375
+ }, z.core.$strip>;
376
+ }, z.core.$strip>, z.ZodObject<{
1481
377
  status: z.ZodLiteral<401>;
1482
378
  json: z.ZodObject<{
1483
379
  errorCode: z.ZodOptional<z.ZodLiteral<"unauthorized">>;
1484
380
  message: z.ZodString;
1485
- }, "strip", z.ZodTypeAny, {
1486
- message: string;
1487
- errorCode?: "unauthorized" | undefined;
1488
- }, {
1489
- message: string;
1490
- errorCode?: "unauthorized" | undefined;
1491
- }>;
1492
- }, "strip", z.ZodTypeAny, {
1493
- status: 401;
1494
- json: {
1495
- message: string;
1496
- errorCode?: "unauthorized" | undefined;
1497
- };
1498
- }, {
1499
- status: 401;
1500
- json: {
1501
- message: string;
1502
- errorCode?: "unauthorized" | undefined;
1503
- };
1504
- }>, z.ZodObject<{
381
+ }, z.core.$strip>;
382
+ }, z.core.$strip>, z.ZodObject<{
1505
383
  status: z.ZodLiteral<500>;
1506
384
  json: z.ZodObject<{
1507
385
  message: z.ZodString;
1508
- }, "strip", z.ZodTypeAny, {
1509
- message: string;
1510
- }, {
1511
- message: string;
1512
- }>;
1513
- }, "strip", z.ZodTypeAny, {
1514
- status: 500;
1515
- json: {
1516
- message: string;
1517
- };
1518
- }, {
1519
- status: 500;
1520
- json: {
1521
- message: string;
1522
- };
1523
- }>]>;
386
+ }, z.core.$strip>;
387
+ }, z.core.$strip>]>;
1524
388
  };
1525
389
  };
1526
390
  "/stat": {
@@ -1530,153 +394,47 @@ export declare const Api: {
1530
394
  sourcesSha: z.ZodString;
1531
395
  schemaSha: z.ZodString;
1532
396
  baseSha: z.ZodString;
1533
- patches: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1534
- }, "strip", z.ZodTypeAny, {
1535
- sourcesSha: string;
1536
- schemaSha: string;
1537
- baseSha: string;
1538
- patches?: string[] | undefined;
1539
- }, {
1540
- sourcesSha: string;
1541
- schemaSha: string;
1542
- baseSha: string;
1543
- patches?: string[] | undefined;
1544
- }>>;
397
+ patches: z.ZodOptional<z.ZodArray<z.ZodString>>;
398
+ }, z.core.$strip>>;
1545
399
  cookies: {
1546
400
  val_session: z.ZodOptional<z.ZodString>;
1547
401
  };
1548
402
  };
1549
- res: z.ZodUnion<[z.ZodObject<{
403
+ res: z.ZodUnion<readonly [z.ZodObject<{
1550
404
  status: z.ZodLiteral<401>;
1551
405
  json: z.ZodObject<{
1552
406
  message: z.ZodString;
1553
- }, "strip", z.ZodTypeAny, {
1554
- message: string;
1555
- }, {
1556
- message: string;
1557
- }>;
1558
- }, "strip", z.ZodTypeAny, {
1559
- status: 401;
1560
- json: {
1561
- message: string;
1562
- };
1563
- }, {
1564
- status: 401;
1565
- json: {
1566
- message: string;
1567
- };
1568
- }>, z.ZodObject<{
407
+ }, z.core.$strip>;
408
+ }, z.core.$strip>, z.ZodObject<{
1569
409
  status: z.ZodLiteral<500>;
1570
410
  json: z.ZodObject<{
1571
411
  message: z.ZodString;
1572
- }, "strip", z.ZodTypeAny, {
1573
- message: string;
1574
- }, {
1575
- message: string;
1576
- }>;
1577
- }, "strip", z.ZodTypeAny, {
1578
- status: 500;
1579
- json: {
1580
- message: string;
1581
- };
1582
- }, {
1583
- status: 500;
1584
- json: {
1585
- message: string;
1586
- };
1587
- }>, z.ZodObject<{
412
+ }, z.core.$strip>;
413
+ }, z.core.$strip>, z.ZodObject<{
1588
414
  status: z.ZodLiteral<503>;
1589
415
  json: z.ZodObject<{
1590
416
  message: z.ZodString;
1591
- }, "strip", z.ZodTypeAny, {
1592
- message: string;
1593
- }, {
1594
- message: string;
1595
- }>;
1596
- }, "strip", z.ZodTypeAny, {
1597
- status: 503;
1598
- json: {
1599
- message: string;
1600
- };
1601
- }, {
1602
- status: 503;
1603
- json: {
1604
- message: string;
1605
- };
1606
- }>, z.ZodObject<{
417
+ }, z.core.$strip>;
418
+ }, z.core.$strip>, z.ZodObject<{
1607
419
  status: z.ZodLiteral<200>;
1608
- json: z.ZodUnion<[z.ZodObject<{
1609
- type: z.ZodUnion<[z.ZodLiteral<"request-again">, z.ZodLiteral<"no-change">, z.ZodLiteral<"did-change">]>;
420
+ json: z.ZodUnion<readonly [z.ZodObject<{
421
+ type: z.ZodUnion<readonly [z.ZodLiteral<"request-again">, z.ZodLiteral<"no-change">, z.ZodLiteral<"did-change">]>;
1610
422
  baseSha: z.ZodString;
1611
423
  schemaSha: z.ZodString;
1612
424
  sourcesSha: z.ZodString;
1613
- patches: z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">;
425
+ patches: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
1614
426
  config: z.ZodObject<{
1615
427
  project: z.ZodOptional<z.ZodString>;
1616
428
  root: z.ZodOptional<z.ZodString>;
1617
429
  files: z.ZodOptional<z.ZodObject<{
1618
430
  directory: z.ZodString;
1619
- }, "strip", z.ZodTypeAny, {
1620
- directory: string;
1621
- }, {
1622
- directory: string;
1623
- }>>;
431
+ }, z.core.$strip>>;
1624
432
  gitCommit: z.ZodOptional<z.ZodString>;
1625
433
  gitBranch: z.ZodOptional<z.ZodString>;
1626
- }, "strip", z.ZodTypeAny, {
1627
- project?: string | undefined;
1628
- root?: string | undefined;
1629
- files?: {
1630
- directory: string;
1631
- } | undefined;
1632
- gitCommit?: string | undefined;
1633
- gitBranch?: string | undefined;
1634
- }, {
1635
- project?: string | undefined;
1636
- root?: string | undefined;
1637
- files?: {
1638
- directory: string;
1639
- } | undefined;
1640
- gitCommit?: string | undefined;
1641
- gitBranch?: string | undefined;
1642
- }>;
434
+ }, z.core.$strip>;
1643
435
  profileId: z.ZodNullable<z.ZodString>;
1644
- mode: z.ZodUnion<[z.ZodLiteral<"http">, z.ZodLiteral<"fs">]>;
1645
- }, "strip", z.ZodTypeAny, {
1646
- type: "request-again" | "no-change" | "did-change";
1647
- mode: "http" | "fs";
1648
- sourcesSha: string;
1649
- schemaSha: string;
1650
- baseSha: string;
1651
- patches: import("@valbuild/core").PatchId[];
1652
- config: {
1653
- project?: string | undefined;
1654
- root?: string | undefined;
1655
- files?: {
1656
- directory: string;
1657
- } | undefined;
1658
- gitCommit?: string | undefined;
1659
- gitBranch?: string | undefined;
1660
- };
1661
- profileId: string | null;
1662
- }, {
1663
- type: "request-again" | "no-change" | "did-change";
1664
- mode: "http" | "fs";
1665
- sourcesSha: string;
1666
- schemaSha: string;
1667
- baseSha: string;
1668
- patches: string[];
1669
- config: {
1670
- project?: string | undefined;
1671
- root?: string | undefined;
1672
- files?: {
1673
- directory: string;
1674
- } | undefined;
1675
- gitCommit?: string | undefined;
1676
- gitBranch?: string | undefined;
1677
- };
1678
- profileId: string | null;
1679
- }>, z.ZodObject<{
436
+ mode: z.ZodUnion<readonly [z.ZodLiteral<"http">, z.ZodLiteral<"fs">]>;
437
+ }, z.core.$strip>, z.ZodObject<{
1680
438
  type: z.ZodLiteral<"use-websocket">;
1681
439
  url: z.ZodString;
1682
440
  nonce: z.ZodString;
@@ -1684,7 +442,7 @@ export declare const Api: {
1684
442
  schemaSha: z.ZodString;
1685
443
  sourcesSha: z.ZodString;
1686
444
  commitSha: z.ZodString;
1687
- patches: z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">;
445
+ patches: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
1688
446
  commits: z.ZodArray<z.ZodObject<{
1689
447
  commitSha: z.ZodString;
1690
448
  clientCommitSha: z.ZodString;
@@ -1693,212 +451,20 @@ export declare const Api: {
1693
451
  creator: z.ZodString;
1694
452
  createdAt: z.ZodString;
1695
453
  commitMessage: z.ZodNullable<z.ZodString>;
1696
- }, "strip", z.ZodTypeAny, {
1697
- commitSha: string;
1698
- clientCommitSha: string;
1699
- parentCommitSha: string;
1700
- branch: string;
1701
- creator: string;
1702
- createdAt: string;
1703
- commitMessage: string | null;
1704
- }, {
1705
- commitSha: string;
1706
- clientCommitSha: string;
1707
- parentCommitSha: string;
1708
- branch: string;
1709
- creator: string;
1710
- createdAt: string;
1711
- commitMessage: string | null;
1712
- }>, "many">;
454
+ }, z.core.$strip>>;
1713
455
  config: z.ZodObject<{
1714
456
  project: z.ZodOptional<z.ZodString>;
1715
457
  root: z.ZodOptional<z.ZodString>;
1716
458
  files: z.ZodOptional<z.ZodObject<{
1717
459
  directory: z.ZodString;
1718
- }, "strip", z.ZodTypeAny, {
1719
- directory: string;
1720
- }, {
1721
- directory: string;
1722
- }>>;
460
+ }, z.core.$strip>>;
1723
461
  gitCommit: z.ZodOptional<z.ZodString>;
1724
462
  gitBranch: z.ZodOptional<z.ZodString>;
1725
- }, "strip", z.ZodTypeAny, {
1726
- project?: string | undefined;
1727
- root?: string | undefined;
1728
- files?: {
1729
- directory: string;
1730
- } | undefined;
1731
- gitCommit?: string | undefined;
1732
- gitBranch?: string | undefined;
1733
- }, {
1734
- project?: string | undefined;
1735
- root?: string | undefined;
1736
- files?: {
1737
- directory: string;
1738
- } | undefined;
1739
- gitCommit?: string | undefined;
1740
- gitBranch?: string | undefined;
1741
- }>;
463
+ }, z.core.$strip>;
1742
464
  profileId: z.ZodNullable<z.ZodString>;
1743
- mode: z.ZodUnion<[z.ZodLiteral<"http">, z.ZodLiteral<"fs">]>;
1744
- }, "strip", z.ZodTypeAny, {
1745
- type: "use-websocket";
1746
- mode: "http" | "fs";
1747
- sourcesSha: string;
1748
- schemaSha: string;
1749
- baseSha: string;
1750
- patches: import("@valbuild/core").PatchId[];
1751
- config: {
1752
- project?: string | undefined;
1753
- root?: string | undefined;
1754
- files?: {
1755
- directory: string;
1756
- } | undefined;
1757
- gitCommit?: string | undefined;
1758
- gitBranch?: string | undefined;
1759
- };
1760
- profileId: string | null;
1761
- url: string;
1762
- nonce: string;
1763
- commitSha: string;
1764
- commits: {
1765
- commitSha: string;
1766
- clientCommitSha: string;
1767
- parentCommitSha: string;
1768
- branch: string;
1769
- creator: string;
1770
- createdAt: string;
1771
- commitMessage: string | null;
1772
- }[];
1773
- }, {
1774
- type: "use-websocket";
1775
- mode: "http" | "fs";
1776
- sourcesSha: string;
1777
- schemaSha: string;
1778
- baseSha: string;
1779
- patches: string[];
1780
- config: {
1781
- project?: string | undefined;
1782
- root?: string | undefined;
1783
- files?: {
1784
- directory: string;
1785
- } | undefined;
1786
- gitCommit?: string | undefined;
1787
- gitBranch?: string | undefined;
1788
- };
1789
- profileId: string | null;
1790
- url: string;
1791
- nonce: string;
1792
- commitSha: string;
1793
- commits: {
1794
- commitSha: string;
1795
- clientCommitSha: string;
1796
- parentCommitSha: string;
1797
- branch: string;
1798
- creator: string;
1799
- createdAt: string;
1800
- commitMessage: string | null;
1801
- }[];
1802
- }>]>;
1803
- }, "strip", z.ZodTypeAny, {
1804
- status: 200;
1805
- json: {
1806
- type: "request-again" | "no-change" | "did-change";
1807
- mode: "http" | "fs";
1808
- sourcesSha: string;
1809
- schemaSha: string;
1810
- baseSha: string;
1811
- patches: import("@valbuild/core").PatchId[];
1812
- config: {
1813
- project?: string | undefined;
1814
- root?: string | undefined;
1815
- files?: {
1816
- directory: string;
1817
- } | undefined;
1818
- gitCommit?: string | undefined;
1819
- gitBranch?: string | undefined;
1820
- };
1821
- profileId: string | null;
1822
- } | {
1823
- type: "use-websocket";
1824
- mode: "http" | "fs";
1825
- sourcesSha: string;
1826
- schemaSha: string;
1827
- baseSha: string;
1828
- patches: import("@valbuild/core").PatchId[];
1829
- config: {
1830
- project?: string | undefined;
1831
- root?: string | undefined;
1832
- files?: {
1833
- directory: string;
1834
- } | undefined;
1835
- gitCommit?: string | undefined;
1836
- gitBranch?: string | undefined;
1837
- };
1838
- profileId: string | null;
1839
- url: string;
1840
- nonce: string;
1841
- commitSha: string;
1842
- commits: {
1843
- commitSha: string;
1844
- clientCommitSha: string;
1845
- parentCommitSha: string;
1846
- branch: string;
1847
- creator: string;
1848
- createdAt: string;
1849
- commitMessage: string | null;
1850
- }[];
1851
- };
1852
- }, {
1853
- status: 200;
1854
- json: {
1855
- type: "request-again" | "no-change" | "did-change";
1856
- mode: "http" | "fs";
1857
- sourcesSha: string;
1858
- schemaSha: string;
1859
- baseSha: string;
1860
- patches: string[];
1861
- config: {
1862
- project?: string | undefined;
1863
- root?: string | undefined;
1864
- files?: {
1865
- directory: string;
1866
- } | undefined;
1867
- gitCommit?: string | undefined;
1868
- gitBranch?: string | undefined;
1869
- };
1870
- profileId: string | null;
1871
- } | {
1872
- type: "use-websocket";
1873
- mode: "http" | "fs";
1874
- sourcesSha: string;
1875
- schemaSha: string;
1876
- baseSha: string;
1877
- patches: string[];
1878
- config: {
1879
- project?: string | undefined;
1880
- root?: string | undefined;
1881
- files?: {
1882
- directory: string;
1883
- } | undefined;
1884
- gitCommit?: string | undefined;
1885
- gitBranch?: string | undefined;
1886
- };
1887
- profileId: string | null;
1888
- url: string;
1889
- nonce: string;
1890
- commitSha: string;
1891
- commits: {
1892
- commitSha: string;
1893
- clientCommitSha: string;
1894
- parentCommitSha: string;
1895
- branch: string;
1896
- creator: string;
1897
- createdAt: string;
1898
- commitMessage: string | null;
1899
- }[];
1900
- };
1901
- }>]>;
465
+ mode: z.ZodUnion<readonly [z.ZodLiteral<"http">, z.ZodLiteral<"fs">]>;
466
+ }, z.core.$strip>]>;
467
+ }, z.core.$strip>]>;
1902
468
  };
1903
469
  };
1904
470
  "/upload/patches": {
@@ -1906,110 +472,32 @@ export declare const Api: {
1906
472
  req: {
1907
473
  path: z.ZodOptional<z.ZodString>;
1908
474
  body: z.ZodObject<{
1909
- parentRef: z.ZodUnion<[z.ZodObject<{
475
+ parentRef: z.ZodUnion<readonly [z.ZodObject<{
1910
476
  type: z.ZodLiteral<"head">;
1911
477
  headBaseSha: z.ZodString;
1912
- }, "strip", z.ZodTypeAny, {
1913
- type: "head";
1914
- headBaseSha: string;
1915
- }, {
1916
- type: "head";
1917
- headBaseSha: string;
1918
- }>, z.ZodObject<{
478
+ }, z.core.$strip>, z.ZodObject<{
1919
479
  type: z.ZodLiteral<"patch">;
1920
- patchId: z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>;
1921
- }, "strip", z.ZodTypeAny, {
1922
- type: "patch";
1923
- patchId: string & {
1924
- VAL_DATA_TYPE: "PatchId";
1925
- };
1926
- }, {
1927
- type: "patch";
1928
- patchId: string;
1929
- }>]>;
480
+ patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
481
+ }, z.core.$strip>]>;
1930
482
  filePath: z.ZodString;
1931
483
  data: z.ZodAny;
1932
- type: z.ZodUnion<[z.ZodLiteral<"file">, z.ZodLiteral<"image">]>;
484
+ type: z.ZodUnion<readonly [z.ZodLiteral<"file">, z.ZodLiteral<"image">]>;
1933
485
  metadata: z.ZodAny;
1934
486
  remote: z.ZodBoolean;
1935
- }, "strip", z.ZodTypeAny, {
1936
- remote: boolean;
1937
- type: "file" | "image";
1938
- parentRef: {
1939
- type: "head";
1940
- headBaseSha: string;
1941
- } | {
1942
- type: "patch";
1943
- patchId: string & {
1944
- VAL_DATA_TYPE: "PatchId";
1945
- };
1946
- };
1947
- filePath: string;
1948
- data?: any;
1949
- metadata?: any;
1950
- }, {
1951
- remote: boolean;
1952
- type: "file" | "image";
1953
- parentRef: {
1954
- type: "head";
1955
- headBaseSha: string;
1956
- } | {
1957
- type: "patch";
1958
- patchId: string;
1959
- };
1960
- filePath: string;
1961
- data?: any;
1962
- metadata?: any;
1963
- }>;
487
+ }, z.core.$strip>;
1964
488
  };
1965
- res: z.ZodUnion<[z.ZodObject<{
489
+ res: z.ZodUnion<readonly [z.ZodObject<{
1966
490
  status: z.ZodLiteral<400>;
1967
491
  json: z.ZodObject<{
1968
492
  message: z.ZodString;
1969
- }, "strip", z.ZodTypeAny, {
1970
- message: string;
1971
- }, {
1972
- message: string;
1973
- }>;
1974
- }, "strip", z.ZodTypeAny, {
1975
- status: 400;
1976
- json: {
1977
- message: string;
1978
- };
1979
- }, {
1980
- status: 400;
1981
- json: {
1982
- message: string;
1983
- };
1984
- }>, z.ZodObject<{
493
+ }, z.core.$strip>;
494
+ }, z.core.$strip>, z.ZodObject<{
1985
495
  status: z.ZodLiteral<200>;
1986
496
  json: z.ZodObject<{
1987
497
  filePath: z.ZodString;
1988
- patchId: z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>;
1989
- }, "strip", z.ZodTypeAny, {
1990
- patchId: string & {
1991
- VAL_DATA_TYPE: "PatchId";
1992
- };
1993
- filePath: string;
1994
- }, {
1995
- patchId: string;
1996
- filePath: string;
1997
- }>;
1998
- }, "strip", z.ZodTypeAny, {
1999
- status: 200;
2000
- json: {
2001
- patchId: string & {
2002
- VAL_DATA_TYPE: "PatchId";
2003
- };
2004
- filePath: string;
2005
- };
2006
- }, {
2007
- status: 200;
2008
- json: {
2009
- patchId: string;
2010
- filePath: string;
2011
- };
2012
- }>]>;
498
+ patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
499
+ }, z.core.$strip>;
500
+ }, z.core.$strip>]>;
2013
501
  };
2014
502
  };
2015
503
  "/direct-file-upload-settings": {
@@ -2019,739 +507,206 @@ export declare const Api: {
2019
507
  val_session: z.ZodOptional<z.ZodString>;
2020
508
  };
2021
509
  };
2022
- res: z.ZodUnion<[z.ZodObject<{
510
+ res: z.ZodUnion<readonly [z.ZodObject<{
2023
511
  status: z.ZodLiteral<400>;
2024
512
  json: z.ZodObject<{
2025
513
  message: z.ZodString;
2026
- }, "strip", z.ZodTypeAny, {
2027
- message: string;
2028
- }, {
2029
- message: string;
2030
- }>;
2031
- }, "strip", z.ZodTypeAny, {
2032
- status: 400;
2033
- json: {
2034
- message: string;
2035
- };
2036
- }, {
2037
- status: 400;
2038
- json: {
2039
- message: string;
2040
- };
2041
- }>, z.ZodObject<{
514
+ }, z.core.$strip>;
515
+ }, z.core.$strip>, z.ZodObject<{
2042
516
  status: z.ZodLiteral<401>;
2043
517
  json: z.ZodObject<{
2044
518
  message: z.ZodString;
2045
- }, "strip", z.ZodTypeAny, {
2046
- message: string;
2047
- }, {
2048
- message: string;
2049
- }>;
2050
- }, "strip", z.ZodTypeAny, {
2051
- status: 401;
2052
- json: {
2053
- message: string;
2054
- };
2055
- }, {
2056
- status: 401;
2057
- json: {
2058
- message: string;
2059
- };
2060
- }>, z.ZodObject<{
519
+ }, z.core.$strip>;
520
+ }, z.core.$strip>, z.ZodObject<{
2061
521
  status: z.ZodLiteral<500>;
2062
522
  json: z.ZodObject<{
2063
523
  message: z.ZodString;
2064
- }, "strip", z.ZodTypeAny, {
2065
- message: string;
2066
- }, {
2067
- message: string;
2068
- }>;
2069
- }, "strip", z.ZodTypeAny, {
2070
- status: 500;
2071
- json: {
2072
- message: string;
2073
- };
2074
- }, {
2075
- status: 500;
2076
- json: {
2077
- message: string;
2078
- };
2079
- }>, z.ZodObject<{
524
+ }, z.core.$strip>;
525
+ }, z.core.$strip>, z.ZodObject<{
2080
526
  status: z.ZodLiteral<200>;
2081
527
  json: z.ZodObject<{
2082
528
  nonce: z.ZodNullable<z.ZodString>;
2083
529
  baseUrl: z.ZodString;
2084
- }, "strip", z.ZodTypeAny, {
2085
- nonce: string | null;
2086
- baseUrl: string;
2087
- }, {
2088
- nonce: string | null;
2089
- baseUrl: string;
2090
- }>;
2091
- }, "strip", z.ZodTypeAny, {
2092
- status: 200;
2093
- json: {
2094
- nonce: string | null;
2095
- baseUrl: string;
2096
- };
2097
- }, {
2098
- status: 200;
2099
- json: {
2100
- nonce: string | null;
2101
- baseUrl: string;
2102
- };
2103
- }>]>;
530
+ }, z.core.$strip>;
531
+ }, z.core.$strip>]>;
2104
532
  };
2105
533
  };
2106
534
  "/patches": {
2107
535
  DELETE: {
2108
536
  req: {
2109
537
  query: {
2110
- id: z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">;
538
+ id: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
2111
539
  };
2112
540
  cookies: {
2113
541
  val_session: z.ZodOptional<z.ZodString>;
2114
542
  };
2115
543
  };
2116
- res: z.ZodUnion<[z.ZodObject<{
544
+ res: z.ZodUnion<readonly [z.ZodObject<{
2117
545
  status: z.ZodLiteral<401>;
2118
546
  json: z.ZodObject<{
2119
547
  message: z.ZodString;
2120
- }, "strip", z.ZodTypeAny, {
2121
- message: string;
2122
- }, {
2123
- message: string;
2124
- }>;
2125
- }, "strip", z.ZodTypeAny, {
2126
- status: 401;
2127
- json: {
2128
- message: string;
2129
- };
2130
- }, {
2131
- status: 401;
2132
- json: {
2133
- message: string;
2134
- };
2135
- }>, z.ZodObject<{
548
+ }, z.core.$strip>;
549
+ }, z.core.$strip>, z.ZodObject<{
2136
550
  status: z.ZodLiteral<500>;
2137
551
  json: z.ZodObject<{
2138
552
  message: z.ZodString;
2139
- errors: z.ZodArray<z.ZodUnion<[z.ZodObject<{
2140
- patchId: z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>;
553
+ errors: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
554
+ patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
2141
555
  message: z.ZodString;
2142
- }, "strip", z.ZodTypeAny, {
2143
- message: string;
2144
- patchId: string & {
2145
- VAL_DATA_TYPE: "PatchId";
2146
- };
2147
- }, {
2148
- message: string;
2149
- patchId: string;
2150
- }>, z.ZodObject<{
556
+ }, z.core.$strip>, z.ZodObject<{
2151
557
  parentPatchId: z.ZodString;
2152
558
  message: z.ZodString;
2153
- }, "strip", z.ZodTypeAny, {
2154
- message: string;
2155
- parentPatchId: string;
2156
- }, {
2157
- message: string;
2158
- parentPatchId: string;
2159
- }>]>, "many">;
2160
- }, "strip", z.ZodTypeAny, {
2161
- message: string;
2162
- errors: ({
2163
- message: string;
2164
- patchId: string & {
2165
- VAL_DATA_TYPE: "PatchId";
2166
- };
2167
- } | {
2168
- message: string;
2169
- parentPatchId: string;
2170
- })[];
2171
- }, {
2172
- message: string;
2173
- errors: ({
2174
- message: string;
2175
- patchId: string;
2176
- } | {
2177
- message: string;
2178
- parentPatchId: string;
2179
- })[];
2180
- }>;
2181
- }, "strip", z.ZodTypeAny, {
2182
- status: 500;
2183
- json: {
2184
- message: string;
2185
- errors: ({
2186
- message: string;
2187
- patchId: string & {
2188
- VAL_DATA_TYPE: "PatchId";
2189
- };
2190
- } | {
2191
- message: string;
2192
- parentPatchId: string;
2193
- })[];
2194
- };
2195
- }, {
2196
- status: 500;
2197
- json: {
2198
- message: string;
2199
- errors: ({
2200
- message: string;
2201
- patchId: string;
2202
- } | {
2203
- message: string;
2204
- parentPatchId: string;
2205
- })[];
2206
- };
2207
- }>, z.ZodObject<{
559
+ }, z.core.$strip>]>>;
560
+ }, z.core.$strip>;
561
+ }, z.core.$strip>, z.ZodObject<{
2208
562
  status: z.ZodLiteral<200>;
2209
- json: z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">;
2210
- }, "strip", z.ZodTypeAny, {
2211
- status: 200;
2212
- json: import("@valbuild/core").PatchId[];
2213
- }, {
2214
- status: 200;
2215
- json: string[];
2216
- }>]>;
563
+ json: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
564
+ }, z.core.$strip>]>;
2217
565
  };
2218
566
  PUT: {
2219
567
  req: {
2220
568
  body: z.ZodObject<{
2221
- parentRef: z.ZodUnion<[z.ZodObject<{
569
+ parentRef: z.ZodUnion<readonly [z.ZodObject<{
2222
570
  type: z.ZodLiteral<"head">;
2223
571
  headBaseSha: z.ZodString;
2224
- }, "strip", z.ZodTypeAny, {
2225
- type: "head";
2226
- headBaseSha: string;
2227
- }, {
2228
- type: "head";
2229
- headBaseSha: string;
2230
- }>, z.ZodObject<{
572
+ }, z.core.$strip>, z.ZodObject<{
2231
573
  type: z.ZodLiteral<"patch">;
2232
- patchId: z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>;
2233
- }, "strip", z.ZodTypeAny, {
2234
- type: "patch";
2235
- patchId: string & {
2236
- VAL_DATA_TYPE: "PatchId";
2237
- };
2238
- }, {
2239
- type: "patch";
2240
- patchId: string;
2241
- }>]>;
574
+ patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
575
+ }, z.core.$strip>]>;
2242
576
  patches: z.ZodArray<z.ZodObject<{
2243
- path: z.ZodEffects<z.ZodString, ModuleFilePath, string>;
2244
- patchId: z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>;
577
+ path: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
578
+ patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
2245
579
  patch: z.ZodAny;
2246
- }, "strip", z.ZodTypeAny, {
2247
- path: string & {
2248
- VAL_DATA_TYPE: "ModuleFilePath";
2249
- };
2250
- patchId: string & {
2251
- VAL_DATA_TYPE: "PatchId";
2252
- };
2253
- patch?: any;
2254
- }, {
2255
- path: string;
2256
- patchId: string;
2257
- patch?: any;
2258
- }>, "many">;
2259
- }, "strip", z.ZodTypeAny, {
2260
- patches: {
2261
- path: string & {
2262
- VAL_DATA_TYPE: "ModuleFilePath";
2263
- };
2264
- patchId: string & {
2265
- VAL_DATA_TYPE: "PatchId";
2266
- };
2267
- patch?: any;
2268
- }[];
2269
- parentRef: {
2270
- type: "head";
2271
- headBaseSha: string;
2272
- } | {
2273
- type: "patch";
2274
- patchId: string & {
2275
- VAL_DATA_TYPE: "PatchId";
2276
- };
2277
- };
2278
- }, {
2279
- patches: {
2280
- path: string;
2281
- patchId: string;
2282
- patch?: any;
2283
- }[];
2284
- parentRef: {
2285
- type: "head";
2286
- headBaseSha: string;
2287
- } | {
2288
- type: "patch";
2289
- patchId: string;
2290
- };
2291
- }>;
580
+ }, z.core.$strip>>;
581
+ }, z.core.$strip>;
2292
582
  cookies: {
2293
583
  val_session: z.ZodOptional<z.ZodString>;
2294
584
  };
2295
585
  };
2296
- res: z.ZodUnion<[z.ZodObject<{
586
+ res: z.ZodUnion<readonly [z.ZodObject<{
2297
587
  status: z.ZodLiteral<401>;
2298
588
  json: z.ZodObject<{
2299
589
  message: z.ZodString;
2300
- }, "strip", z.ZodTypeAny, {
2301
- message: string;
2302
- }, {
2303
- message: string;
2304
- }>;
2305
- }, "strip", z.ZodTypeAny, {
2306
- status: 401;
2307
- json: {
2308
- message: string;
2309
- };
2310
- }, {
2311
- status: 401;
2312
- json: {
2313
- message: string;
2314
- };
2315
- }>, z.ZodObject<{
590
+ }, z.core.$strip>;
591
+ }, z.core.$strip>, z.ZodObject<{
2316
592
  status: z.ZodLiteral<409>;
2317
593
  json: z.ZodObject<{
2318
594
  type: z.ZodLiteral<"patch-head-conflict">;
2319
595
  message: z.ZodString;
2320
- }, "strip", z.ZodTypeAny, {
2321
- message: string;
2322
- type: "patch-head-conflict";
2323
- }, {
2324
- message: string;
2325
- type: "patch-head-conflict";
2326
- }>;
2327
- }, "strip", z.ZodTypeAny, {
2328
- status: 409;
2329
- json: {
2330
- message: string;
2331
- type: "patch-head-conflict";
2332
- };
2333
- }, {
2334
- status: 409;
2335
- json: {
2336
- message: string;
2337
- type: "patch-head-conflict";
2338
- };
2339
- }>, z.ZodObject<{
596
+ }, z.core.$strip>;
597
+ }, z.core.$strip>, z.ZodObject<{
2340
598
  status: z.ZodLiteral<400>;
2341
599
  json: z.ZodObject<{
2342
600
  type: z.ZodLiteral<"patch-error">;
2343
601
  message: z.ZodString;
2344
- errors: z.ZodRecord<z.ZodEffects<z.ZodString, ModuleFilePath, string>, z.ZodArray<z.ZodObject<{
602
+ errors: z.ZodRecord<z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>, z.ZodArray<z.ZodObject<{
2345
603
  error: z.ZodObject<{
2346
604
  message: z.ZodString;
2347
- }, "strip", z.ZodTypeAny, {
2348
- message: string;
2349
- }, {
2350
- message: string;
2351
- }>;
2352
- }, "strip", z.ZodTypeAny, {
2353
- error: {
2354
- message: string;
2355
- };
2356
- }, {
2357
- error: {
2358
- message: string;
2359
- };
2360
- }>, "many">>;
2361
- }, "strip", z.ZodTypeAny, {
2362
- message: string;
2363
- type: "patch-error";
2364
- errors: Partial<Record<ModuleFilePath, {
2365
- error: {
2366
- message: string;
2367
- };
2368
- }[]>>;
2369
- }, {
2370
- message: string;
2371
- type: "patch-error";
2372
- errors: Record<string, {
2373
- error: {
2374
- message: string;
2375
- };
2376
- }[]>;
2377
- }>;
2378
- }, "strip", z.ZodTypeAny, {
2379
- status: 400;
2380
- json: {
2381
- message: string;
2382
- type: "patch-error";
2383
- errors: Partial<Record<ModuleFilePath, {
2384
- error: {
2385
- message: string;
2386
- };
2387
- }[]>>;
2388
- };
2389
- }, {
2390
- status: 400;
2391
- json: {
2392
- message: string;
2393
- type: "patch-error";
2394
- errors: Record<string, {
2395
- error: {
2396
- message: string;
2397
- };
2398
- }[]>;
2399
- };
2400
- }>, z.ZodObject<{
605
+ }, z.core.$strip>;
606
+ }, z.core.$strip>>>;
607
+ }, z.core.$strip>;
608
+ }, z.core.$strip>, z.ZodObject<{
2401
609
  status: z.ZodLiteral<200>;
2402
610
  json: z.ZodObject<{
2403
- newPatchIds: z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">;
2404
- parentRef: z.ZodUnion<[z.ZodObject<{
611
+ newPatchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
612
+ parentRef: z.ZodUnion<readonly [z.ZodObject<{
2405
613
  type: z.ZodLiteral<"head">;
2406
614
  headBaseSha: z.ZodString;
2407
- }, "strip", z.ZodTypeAny, {
2408
- type: "head";
2409
- headBaseSha: string;
2410
- }, {
2411
- type: "head";
2412
- headBaseSha: string;
2413
- }>, z.ZodObject<{
615
+ }, z.core.$strip>, z.ZodObject<{
2414
616
  type: z.ZodLiteral<"patch">;
2415
- patchId: z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>;
2416
- }, "strip", z.ZodTypeAny, {
2417
- type: "patch";
2418
- patchId: string & {
2419
- VAL_DATA_TYPE: "PatchId";
2420
- };
2421
- }, {
2422
- type: "patch";
2423
- patchId: string;
2424
- }>]>;
2425
- }, "strip", z.ZodTypeAny, {
2426
- parentRef: {
2427
- type: "head";
2428
- headBaseSha: string;
2429
- } | {
2430
- type: "patch";
2431
- patchId: string & {
2432
- VAL_DATA_TYPE: "PatchId";
2433
- };
2434
- };
2435
- newPatchIds: import("@valbuild/core").PatchId[];
2436
- }, {
2437
- parentRef: {
2438
- type: "head";
2439
- headBaseSha: string;
2440
- } | {
2441
- type: "patch";
2442
- patchId: string;
2443
- };
2444
- newPatchIds: string[];
2445
- }>;
2446
- }, "strip", z.ZodTypeAny, {
2447
- status: 200;
2448
- json: {
2449
- parentRef: {
2450
- type: "head";
2451
- headBaseSha: string;
2452
- } | {
2453
- type: "patch";
2454
- patchId: string & {
2455
- VAL_DATA_TYPE: "PatchId";
2456
- };
2457
- };
2458
- newPatchIds: import("@valbuild/core").PatchId[];
2459
- };
2460
- }, {
2461
- status: 200;
2462
- json: {
2463
- parentRef: {
2464
- type: "head";
2465
- headBaseSha: string;
2466
- } | {
2467
- type: "patch";
2468
- patchId: string;
2469
- };
2470
- newPatchIds: string[];
2471
- };
2472
- }>]>;
617
+ patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
618
+ }, z.core.$strip>]>;
619
+ }, z.core.$strip>;
620
+ }, z.core.$strip>]>;
2473
621
  };
2474
622
  GET: {
2475
623
  req: {
2476
624
  query: {
2477
- patch_id: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">>;
2478
- exclude_patch_ops: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string, string[]>, string, string[]>, boolean, string[]>>;
625
+ patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
626
+ exclude_patch_ops: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>> & z.ZodType<"true" | "false", string[], z.core.$ZodTypeInternals<"true" | "false", string[]>>, z.ZodTransform<boolean, "true" | "false">>>;
2479
627
  };
2480
628
  cookies: {
2481
629
  val_session: z.ZodOptional<z.ZodString>;
2482
630
  };
2483
631
  };
2484
- res: z.ZodUnion<[z.ZodObject<{
632
+ res: z.ZodUnion<readonly [z.ZodObject<{
2485
633
  status: z.ZodLiteral<401>;
2486
634
  json: z.ZodObject<{
2487
635
  message: z.ZodString;
2488
- }, "strip", z.ZodTypeAny, {
2489
- message: string;
2490
- }, {
2491
- message: string;
2492
- }>;
2493
- }, "strip", z.ZodTypeAny, {
2494
- status: 401;
2495
- json: {
2496
- message: string;
2497
- };
2498
- }, {
2499
- status: 401;
2500
- json: {
2501
- message: string;
2502
- };
2503
- }>, z.ZodObject<{
636
+ }, z.core.$strip>;
637
+ }, z.core.$strip>, z.ZodObject<{
2504
638
  status: z.ZodLiteral<500>;
2505
639
  json: z.ZodObject<{
2506
640
  message: z.ZodString;
2507
- patchErrors: z.ZodArray<z.ZodUnion<[z.ZodObject<{
2508
- patchId: z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>;
641
+ patchErrors: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
642
+ patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
2509
643
  message: z.ZodString;
2510
- }, "strip", z.ZodTypeAny, {
2511
- message: string;
2512
- patchId: string & {
2513
- VAL_DATA_TYPE: "PatchId";
2514
- };
2515
- }, {
2516
- message: string;
2517
- patchId: string;
2518
- }>, z.ZodObject<{
644
+ }, z.core.$strip>, z.ZodObject<{
2519
645
  parentPatchId: z.ZodString;
2520
646
  message: z.ZodString;
2521
- }, "strip", z.ZodTypeAny, {
2522
- message: string;
2523
- parentPatchId: string;
2524
- }, {
2525
- message: string;
2526
- parentPatchId: string;
2527
- }>]>, "many">;
2528
- }, "strip", z.ZodTypeAny, {
2529
- message: string;
2530
- patchErrors: ({
2531
- message: string;
2532
- patchId: string & {
2533
- VAL_DATA_TYPE: "PatchId";
2534
- };
2535
- } | {
2536
- message: string;
2537
- parentPatchId: string;
2538
- })[];
2539
- }, {
2540
- message: string;
2541
- patchErrors: ({
2542
- message: string;
2543
- patchId: string;
2544
- } | {
2545
- message: string;
2546
- parentPatchId: string;
2547
- })[];
2548
- }>;
2549
- }, "strip", z.ZodTypeAny, {
2550
- status: 500;
2551
- json: {
2552
- message: string;
2553
- patchErrors: ({
2554
- message: string;
2555
- patchId: string & {
2556
- VAL_DATA_TYPE: "PatchId";
2557
- };
2558
- } | {
2559
- message: string;
2560
- parentPatchId: string;
2561
- })[];
2562
- };
2563
- }, {
2564
- status: 500;
2565
- json: {
2566
- message: string;
2567
- patchErrors: ({
2568
- message: string;
2569
- patchId: string;
2570
- } | {
2571
- message: string;
2572
- parentPatchId: string;
2573
- })[];
2574
- };
2575
- }>, z.ZodObject<{
647
+ }, z.core.$strip>]>>;
648
+ }, z.core.$strip>;
649
+ }, z.core.$strip>, z.ZodObject<{
2576
650
  status: z.ZodLiteral<500>;
2577
651
  json: z.ZodObject<{
2578
652
  message: z.ZodString;
2579
653
  error: z.ZodObject<{
2580
654
  message: z.ZodString;
2581
- }, "strip", z.ZodTypeAny, {
2582
- message: string;
2583
- }, {
2584
- message: string;
2585
- }>;
2586
- }, "strip", z.ZodTypeAny, {
2587
- message: string;
2588
- error: {
2589
- message: string;
2590
- };
2591
- }, {
2592
- message: string;
2593
- error: {
2594
- message: string;
2595
- };
2596
- }>;
2597
- }, "strip", z.ZodTypeAny, {
2598
- status: 500;
2599
- json: {
2600
- message: string;
2601
- error: {
2602
- message: string;
2603
- };
2604
- };
2605
- }, {
2606
- status: 500;
2607
- json: {
2608
- message: string;
2609
- error: {
2610
- message: string;
2611
- };
2612
- };
2613
- }>, z.ZodObject<{
655
+ }, z.core.$strip>;
656
+ }, z.core.$strip>;
657
+ }, z.core.$strip>, z.ZodObject<{
2614
658
  status: z.ZodLiteral<200>;
2615
659
  json: z.ZodObject<{
2616
660
  patches: z.ZodArray<z.ZodObject<{
2617
- path: z.ZodEffects<z.ZodString, ModuleFilePath, string>;
2618
- patch: z.ZodOptional<z.ZodType<import("@valbuild/core/patch").Patch, z.ZodTypeDef, import("@valbuild/core/patch").Patch>>;
2619
- patchId: z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>;
661
+ path: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
662
+ patch: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
663
+ op: z.ZodLiteral<"add">;
664
+ path: z.ZodArray<z.ZodString>;
665
+ value: z.ZodType<import("@valbuild/core/patch").JSONValue, unknown, z.core.$ZodTypeInternals<import("@valbuild/core/patch").JSONValue, unknown>>;
666
+ }, z.core.$strict>, z.ZodObject<{
667
+ op: z.ZodLiteral<"remove">;
668
+ path: z.ZodTuple<[z.ZodString], z.ZodString>;
669
+ }, z.core.$strict>, z.ZodObject<{
670
+ op: z.ZodLiteral<"replace">;
671
+ path: z.ZodArray<z.ZodString>;
672
+ value: z.ZodType<import("@valbuild/core/patch").JSONValue, unknown, z.core.$ZodTypeInternals<import("@valbuild/core/patch").JSONValue, unknown>>;
673
+ }, z.core.$strict>, z.ZodObject<{
674
+ op: z.ZodLiteral<"move">;
675
+ from: z.ZodTuple<[z.ZodString], z.ZodString>;
676
+ path: z.ZodArray<z.ZodString>;
677
+ }, z.core.$strict>, z.ZodObject<{
678
+ op: z.ZodLiteral<"copy">;
679
+ from: z.ZodArray<z.ZodString>;
680
+ path: z.ZodArray<z.ZodString>;
681
+ }, z.core.$strict>, z.ZodObject<{
682
+ op: z.ZodLiteral<"test">;
683
+ path: z.ZodArray<z.ZodString>;
684
+ value: z.ZodType<import("@valbuild/core/patch").JSONValue, unknown, z.core.$ZodTypeInternals<import("@valbuild/core/patch").JSONValue, unknown>>;
685
+ }, z.core.$strict>, z.ZodObject<{
686
+ op: z.ZodLiteral<"file">;
687
+ path: z.ZodArray<z.ZodString>;
688
+ filePath: z.ZodString;
689
+ value: z.ZodType<import("@valbuild/core/patch").JSONValue, unknown, z.core.$ZodTypeInternals<import("@valbuild/core/patch").JSONValue, unknown>>;
690
+ remote: z.ZodBoolean;
691
+ nestedFilePath: z.ZodOptional<z.ZodArray<z.ZodString>>;
692
+ metadata: z.ZodOptional<z.ZodType<import("@valbuild/core/patch").JSONValue, unknown, z.core.$ZodTypeInternals<import("@valbuild/core/patch").JSONValue, unknown>>>;
693
+ }, z.core.$strict>], "op">>>;
694
+ patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
2620
695
  createdAt: z.ZodString;
2621
696
  authorId: z.ZodNullable<z.ZodString>;
2622
697
  appliedAt: z.ZodNullable<z.ZodObject<{
2623
698
  commitSha: z.ZodString;
2624
- }, "strip", z.ZodTypeAny, {
2625
- commitSha: string;
2626
- }, {
2627
- commitSha: string;
2628
- }>>;
2629
- }, "strip", z.ZodTypeAny, {
2630
- path: string & {
2631
- VAL_DATA_TYPE: "ModuleFilePath";
2632
- };
2633
- createdAt: string;
2634
- patchId: string & {
2635
- VAL_DATA_TYPE: "PatchId";
2636
- };
2637
- authorId: string | null;
2638
- appliedAt: {
2639
- commitSha: string;
2640
- } | null;
2641
- patch?: import("@valbuild/core/patch").Patch | undefined;
2642
- }, {
2643
- path: string;
2644
- createdAt: string;
2645
- patchId: string;
2646
- authorId: string | null;
2647
- appliedAt: {
2648
- commitSha: string;
2649
- } | null;
2650
- patch?: import("@valbuild/core/patch").Patch | undefined;
2651
- }>, "many">;
699
+ }, z.core.$strip>>;
700
+ }, z.core.$strip>>;
2652
701
  baseSha: z.ZodString;
2653
702
  error: z.ZodOptional<z.ZodObject<{
2654
703
  message: z.ZodString;
2655
- }, "strip", z.ZodTypeAny, {
2656
- message: string;
2657
- }, {
2658
- message: string;
2659
- }>>;
2660
- errors: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, z.ZodObject<{
704
+ }, z.core.$strip>>;
705
+ errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>, z.ZodObject<{
2661
706
  message: z.ZodString;
2662
- }, "strip", z.ZodTypeAny, {
2663
- message: string;
2664
- }, {
2665
- message: string;
2666
- }>>>;
2667
- }, "strip", z.ZodTypeAny, {
2668
- baseSha: string;
2669
- patches: {
2670
- path: string & {
2671
- VAL_DATA_TYPE: "ModuleFilePath";
2672
- };
2673
- createdAt: string;
2674
- patchId: string & {
2675
- VAL_DATA_TYPE: "PatchId";
2676
- };
2677
- authorId: string | null;
2678
- appliedAt: {
2679
- commitSha: string;
2680
- } | null;
2681
- patch?: import("@valbuild/core/patch").Patch | undefined;
2682
- }[];
2683
- errors?: Partial<Record<import("@valbuild/core").PatchId, {
2684
- message: string;
2685
- }>> | undefined;
2686
- error?: {
2687
- message: string;
2688
- } | undefined;
2689
- }, {
2690
- baseSha: string;
2691
- patches: {
2692
- path: string;
2693
- createdAt: string;
2694
- patchId: string;
2695
- authorId: string | null;
2696
- appliedAt: {
2697
- commitSha: string;
2698
- } | null;
2699
- patch?: import("@valbuild/core/patch").Patch | undefined;
2700
- }[];
2701
- errors?: Record<string, {
2702
- message: string;
2703
- }> | undefined;
2704
- error?: {
2705
- message: string;
2706
- } | undefined;
2707
- }>;
2708
- }, "strip", z.ZodTypeAny, {
2709
- status: 200;
2710
- json: {
2711
- baseSha: string;
2712
- patches: {
2713
- path: string & {
2714
- VAL_DATA_TYPE: "ModuleFilePath";
2715
- };
2716
- createdAt: string;
2717
- patchId: string & {
2718
- VAL_DATA_TYPE: "PatchId";
2719
- };
2720
- authorId: string | null;
2721
- appliedAt: {
2722
- commitSha: string;
2723
- } | null;
2724
- patch?: import("@valbuild/core/patch").Patch | undefined;
2725
- }[];
2726
- errors?: Partial<Record<import("@valbuild/core").PatchId, {
2727
- message: string;
2728
- }>> | undefined;
2729
- error?: {
2730
- message: string;
2731
- } | undefined;
2732
- };
2733
- }, {
2734
- status: 200;
2735
- json: {
2736
- baseSha: string;
2737
- patches: {
2738
- path: string;
2739
- createdAt: string;
2740
- patchId: string;
2741
- authorId: string | null;
2742
- appliedAt: {
2743
- commitSha: string;
2744
- } | null;
2745
- patch?: import("@valbuild/core/patch").Patch | undefined;
2746
- }[];
2747
- errors?: Record<string, {
2748
- message: string;
2749
- }> | undefined;
2750
- error?: {
2751
- message: string;
2752
- } | undefined;
2753
- };
2754
- }>]>;
707
+ }, z.core.$strip>>>;
708
+ }, z.core.$strip>;
709
+ }, z.core.$strip>]>;
2755
710
  };
2756
711
  };
2757
712
  "/schema": {
@@ -2761,133 +716,35 @@ export declare const Api: {
2761
716
  val_session: z.ZodOptional<z.ZodString>;
2762
717
  };
2763
718
  };
2764
- res: z.ZodUnion<[z.ZodObject<{
719
+ res: z.ZodUnion<readonly [z.ZodObject<{
2765
720
  status: z.ZodLiteral<401>;
2766
721
  json: z.ZodObject<{
2767
722
  message: z.ZodString;
2768
- }, "strip", z.ZodTypeAny, {
2769
- message: string;
2770
- }, {
2771
- message: string;
2772
- }>;
2773
- }, "strip", z.ZodTypeAny, {
2774
- status: 401;
2775
- json: {
2776
- message: string;
2777
- };
2778
- }, {
2779
- status: 401;
2780
- json: {
2781
- message: string;
2782
- };
2783
- }>, z.ZodObject<{
723
+ }, z.core.$strip>;
724
+ }, z.core.$strip>, z.ZodObject<{
2784
725
  status: z.ZodLiteral<500>;
2785
726
  json: z.ZodObject<{
2786
727
  message: z.ZodString;
2787
728
  details: z.ZodArray<z.ZodObject<{
2788
729
  message: z.ZodString;
2789
- path: z.ZodOptional<z.ZodEffects<z.ZodString, ModuleFilePath, string>>;
2790
- }, "strip", z.ZodTypeAny, {
2791
- message: string;
2792
- path?: ModuleFilePath | undefined;
2793
- }, {
2794
- message: string;
2795
- path?: string | undefined;
2796
- }>, "many">;
2797
- }, "strip", z.ZodTypeAny, {
2798
- message: string;
2799
- details: {
2800
- message: string;
2801
- path?: ModuleFilePath | undefined;
2802
- }[];
2803
- }, {
2804
- message: string;
2805
- details: {
2806
- message: string;
2807
- path?: string | undefined;
2808
- }[];
2809
- }>;
2810
- }, "strip", z.ZodTypeAny, {
2811
- status: 500;
2812
- json: {
2813
- message: string;
2814
- details: {
2815
- message: string;
2816
- path?: ModuleFilePath | undefined;
2817
- }[];
2818
- };
2819
- }, {
2820
- status: 500;
2821
- json: {
2822
- message: string;
2823
- details: {
2824
- message: string;
2825
- path?: string | undefined;
2826
- }[];
2827
- };
2828
- }>, z.ZodObject<{
730
+ path: z.ZodOptional<z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>>;
731
+ }, z.core.$strip>>;
732
+ }, z.core.$strip>;
733
+ }, z.core.$strip>, z.ZodObject<{
2829
734
  status: z.ZodLiteral<500>;
2830
735
  json: z.ZodObject<{
2831
736
  message: z.ZodString;
2832
737
  details: z.ZodArray<z.ZodObject<{
2833
738
  message: z.ZodString;
2834
- }, "strip", z.ZodTypeAny, {
2835
- message: string;
2836
- }, {
2837
- message: string;
2838
- }>, "many">;
2839
- }, "strip", z.ZodTypeAny, {
2840
- message: string;
2841
- details: {
2842
- message: string;
2843
- }[];
2844
- }, {
2845
- message: string;
2846
- details: {
2847
- message: string;
2848
- }[];
2849
- }>;
2850
- }, "strip", z.ZodTypeAny, {
2851
- status: 500;
2852
- json: {
2853
- message: string;
2854
- details: {
2855
- message: string;
2856
- }[];
2857
- };
2858
- }, {
2859
- status: 500;
2860
- json: {
2861
- message: string;
2862
- details: {
2863
- message: string;
2864
- }[];
2865
- };
2866
- }>, z.ZodObject<{
739
+ }, z.core.$strip>>;
740
+ }, z.core.$strip>;
741
+ }, z.core.$strip>, z.ZodObject<{
2867
742
  status: z.ZodLiteral<200>;
2868
743
  json: z.ZodObject<{
2869
744
  schemaSha: z.ZodString;
2870
- schemas: z.ZodRecord<z.ZodEffects<z.ZodString, ModuleFilePath, string>, z.ZodType<import("@valbuild/core").SerializedSchema, z.ZodTypeDef, unknown>>;
2871
- }, "strip", z.ZodTypeAny, {
2872
- schemaSha: string;
2873
- schemas: Partial<Record<ModuleFilePath, import("@valbuild/core").SerializedSchema>>;
2874
- }, {
2875
- schemaSha: string;
2876
- schemas: Record<string, unknown>;
2877
- }>;
2878
- }, "strip", z.ZodTypeAny, {
2879
- status: 200;
2880
- json: {
2881
- schemaSha: string;
2882
- schemas: Partial<Record<ModuleFilePath, import("@valbuild/core").SerializedSchema>>;
2883
- };
2884
- }, {
2885
- status: 200;
2886
- json: {
2887
- schemaSha: string;
2888
- schemas: Record<string, unknown>;
2889
- };
2890
- }>]>;
745
+ schemas: z.ZodRecord<z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>, z.ZodType<import("@valbuild/core").SerializedSchema, unknown, z.core.$ZodTypeInternals<import("@valbuild/core").SerializedSchema, unknown>>>;
746
+ }, z.core.$strip>;
747
+ }, z.core.$strip>]>;
2891
748
  };
2892
749
  };
2893
750
  "/sources/~": {
@@ -2895,342 +752,72 @@ export declare const Api: {
2895
752
  req: {
2896
753
  path: z.ZodOptional<z.ZodString>;
2897
754
  query: {
2898
- validate_sources: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string, string[]>, string, string[]>, boolean, string[]>>;
2899
- validate_binary_files: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string, string[]>, string, string[]>, boolean, string[]>>;
755
+ validate_sources: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>> & z.ZodType<"true" | "false", string[], z.core.$ZodTypeInternals<"true" | "false", string[]>>, z.ZodTransform<boolean, "true" | "false">>>;
756
+ validate_binary_files: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>> & z.ZodType<"true" | "false", string[], z.core.$ZodTypeInternals<"true" | "false", string[]>>, z.ZodTransform<boolean, "true" | "false">>>;
2900
757
  };
2901
758
  cookies: {
2902
759
  val_session: z.ZodOptional<z.ZodString>;
2903
760
  };
2904
761
  };
2905
- res: z.ZodUnion<[z.ZodObject<{
762
+ res: z.ZodUnion<readonly [z.ZodObject<{
2906
763
  status: z.ZodLiteral<401>;
2907
764
  json: z.ZodObject<{
2908
765
  message: z.ZodString;
2909
- }, "strip", z.ZodTypeAny, {
2910
- message: string;
2911
- }, {
2912
- message: string;
2913
- }>;
2914
- }, "strip", z.ZodTypeAny, {
2915
- status: 401;
2916
- json: {
2917
- message: string;
2918
- };
2919
- }, {
2920
- status: 401;
2921
- json: {
2922
- message: string;
2923
- };
2924
- }>, z.ZodObject<{
766
+ }, z.core.$strip>;
767
+ }, z.core.$strip>, z.ZodObject<{
2925
768
  status: z.ZodLiteral<401>;
2926
769
  json: z.ZodObject<{
2927
770
  message: z.ZodString;
2928
- }, "strip", z.ZodTypeAny, {
2929
- message: string;
2930
- }, {
2931
- message: string;
2932
- }>;
2933
- }, "strip", z.ZodTypeAny, {
2934
- status: 401;
2935
- json: {
2936
- message: string;
2937
- };
2938
- }, {
2939
- status: 401;
2940
- json: {
2941
- message: string;
2942
- };
2943
- }>, z.ZodObject<{
771
+ }, z.core.$strip>;
772
+ }, z.core.$strip>, z.ZodObject<{
2944
773
  status: z.ZodLiteral<500>;
2945
774
  json: z.ZodObject<{
2946
775
  message: z.ZodString;
2947
- details: z.ZodUnion<[z.ZodArray<z.ZodObject<{
776
+ details: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
2948
777
  message: z.ZodString;
2949
- path: z.ZodOptional<z.ZodEffects<z.ZodString, ModuleFilePath, string>>;
2950
- }, "strip", z.ZodTypeAny, {
2951
- message: string;
2952
- path?: ModuleFilePath | undefined;
2953
- }, {
2954
- message: string;
2955
- path?: string | undefined;
2956
- }>, "many">, z.ZodObject<{
778
+ path: z.ZodOptional<z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>>;
779
+ }, z.core.$strip>>, z.ZodObject<{
2957
780
  message: z.ZodString;
2958
- }, "strip", z.ZodTypeAny, {
2959
- message: string;
2960
- }, {
2961
- message: string;
2962
- }>]>;
2963
- }, "strip", z.ZodTypeAny, {
2964
- message: string;
2965
- details: {
2966
- message: string;
2967
- } | {
2968
- message: string;
2969
- path?: ModuleFilePath | undefined;
2970
- }[];
2971
- }, {
2972
- message: string;
2973
- details: {
2974
- message: string;
2975
- } | {
2976
- message: string;
2977
- path?: string | undefined;
2978
- }[];
2979
- }>;
2980
- }, "strip", z.ZodTypeAny, {
2981
- status: 500;
2982
- json: {
2983
- message: string;
2984
- details: {
2985
- message: string;
2986
- } | {
2987
- message: string;
2988
- path?: ModuleFilePath | undefined;
2989
- }[];
2990
- };
2991
- }, {
2992
- status: 500;
2993
- json: {
2994
- message: string;
2995
- details: {
2996
- message: string;
2997
- } | {
2998
- message: string;
2999
- path?: string | undefined;
3000
- }[];
3001
- };
3002
- }>, z.ZodObject<{
781
+ }, z.core.$strip>]>;
782
+ }, z.core.$strip>;
783
+ }, z.core.$strip>, z.ZodObject<{
3003
784
  status: z.ZodLiteral<409>;
3004
785
  json: z.ZodObject<{
3005
786
  message: z.ZodString;
3006
- }, "strip", z.ZodTypeAny, {
3007
- message: string;
3008
- }, {
3009
- message: string;
3010
- }>;
3011
- }, "strip", z.ZodTypeAny, {
3012
- status: 409;
3013
- json: {
3014
- message: string;
3015
- };
3016
- }, {
3017
- status: 409;
3018
- json: {
3019
- message: string;
3020
- };
3021
- }>, z.ZodObject<{
787
+ }, z.core.$strip>;
788
+ }, z.core.$strip>, z.ZodObject<{
3022
789
  status: z.ZodLiteral<400>;
3023
790
  json: z.ZodObject<{
3024
791
  message: z.ZodString;
3025
792
  details: z.ZodArray<z.ZodObject<{
3026
793
  message: z.ZodString;
3027
- path: z.ZodOptional<z.ZodEffects<z.ZodString, ModuleFilePath, string>>;
3028
- }, "strip", z.ZodTypeAny, {
3029
- message: string;
3030
- path?: ModuleFilePath | undefined;
3031
- }, {
3032
- message: string;
3033
- path?: string | undefined;
3034
- }>, "many">;
3035
- }, "strip", z.ZodTypeAny, {
3036
- message: string;
3037
- details: {
3038
- message: string;
3039
- path?: ModuleFilePath | undefined;
3040
- }[];
3041
- }, {
3042
- message: string;
3043
- details: {
3044
- message: string;
3045
- path?: string | undefined;
3046
- }[];
3047
- }>;
3048
- }, "strip", z.ZodTypeAny, {
3049
- status: 400;
3050
- json: {
3051
- message: string;
3052
- details: {
3053
- message: string;
3054
- path?: ModuleFilePath | undefined;
3055
- }[];
3056
- };
3057
- }, {
3058
- status: 400;
3059
- json: {
3060
- message: string;
3061
- details: {
3062
- message: string;
3063
- path?: string | undefined;
3064
- }[];
3065
- };
3066
- }>, z.ZodObject<{
794
+ path: z.ZodOptional<z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>>;
795
+ }, z.core.$strip>>;
796
+ }, z.core.$strip>;
797
+ }, z.core.$strip>, z.ZodObject<{
3067
798
  status: z.ZodLiteral<200>;
3068
799
  json: z.ZodObject<{
3069
800
  schemaSha: z.ZodString;
3070
801
  sourcesSha: z.ZodString;
3071
- modules: z.ZodRecord<z.ZodEffects<z.ZodString, ModuleFilePath, string>, z.ZodObject<{
3072
- render: z.ZodAny;
3073
- source: z.ZodAny;
802
+ modules: z.ZodRecord<z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>, z.ZodObject<{
803
+ render: z.ZodOptional<z.ZodAny>;
804
+ source: z.ZodOptional<z.ZodAny>;
3074
805
  patches: z.ZodOptional<z.ZodObject<{
3075
- applied: z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">;
3076
- skipped: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">>;
3077
- errors: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, z.ZodObject<{
806
+ applied: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
807
+ skipped: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
808
+ errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>, z.ZodObject<{
3078
809
  message: z.ZodString;
3079
- }, "strip", z.ZodTypeAny, {
3080
- message: string;
3081
- }, {
3082
- message: string;
3083
- }>>>;
3084
- }, "strip", z.ZodTypeAny, {
3085
- applied: import("@valbuild/core").PatchId[];
3086
- errors?: Partial<Record<import("@valbuild/core").PatchId, {
3087
- message: string;
3088
- }>> | undefined;
3089
- skipped?: import("@valbuild/core").PatchId[] | undefined;
3090
- }, {
3091
- applied: string[];
3092
- errors?: Record<string, {
3093
- message: string;
3094
- }> | undefined;
3095
- skipped?: string[] | undefined;
3096
- }>>;
810
+ }, z.core.$strip>>>;
811
+ }, z.core.$strip>>;
3097
812
  validationErrors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
3098
813
  message: z.ZodString;
3099
814
  value: z.ZodOptional<z.ZodUnknown>;
3100
815
  fatal: z.ZodOptional<z.ZodBoolean>;
3101
- fixes: z.ZodOptional<z.ZodArray<z.ZodType<"image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "keyof:check-keys" | "router:check-route", z.ZodTypeDef, "image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "keyof:check-keys" | "router:check-route">, "many">>;
3102
- }, "strip", z.ZodTypeAny, {
3103
- message: string;
3104
- value?: unknown;
3105
- fatal?: boolean | undefined;
3106
- fixes?: ("image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "keyof:check-keys" | "router:check-route")[] | undefined;
3107
- }, {
3108
- message: string;
3109
- value?: unknown;
3110
- fatal?: boolean | undefined;
3111
- fixes?: ("image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "keyof:check-keys" | "router:check-route")[] | undefined;
3112
- }>, "many">>>;
3113
- }, "strip", z.ZodTypeAny, {
3114
- patches?: {
3115
- applied: import("@valbuild/core").PatchId[];
3116
- errors?: Partial<Record<import("@valbuild/core").PatchId, {
3117
- message: string;
3118
- }>> | undefined;
3119
- skipped?: import("@valbuild/core").PatchId[] | undefined;
3120
- } | undefined;
3121
- render?: any;
3122
- source?: any;
3123
- validationErrors?: Record<string, {
3124
- message: string;
3125
- value?: unknown;
3126
- fatal?: boolean | undefined;
3127
- fixes?: ("image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "keyof:check-keys" | "router:check-route")[] | undefined;
3128
- }[]> | undefined;
3129
- }, {
3130
- patches?: {
3131
- applied: string[];
3132
- errors?: Record<string, {
3133
- message: string;
3134
- }> | undefined;
3135
- skipped?: string[] | undefined;
3136
- } | undefined;
3137
- render?: any;
3138
- source?: any;
3139
- validationErrors?: Record<string, {
3140
- message: string;
3141
- value?: unknown;
3142
- fatal?: boolean | undefined;
3143
- fixes?: ("image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "keyof:check-keys" | "router:check-route")[] | undefined;
3144
- }[]> | undefined;
3145
- }>>;
3146
- }, "strip", z.ZodTypeAny, {
3147
- sourcesSha: string;
3148
- schemaSha: string;
3149
- modules: Partial<Record<ModuleFilePath, {
3150
- patches?: {
3151
- applied: import("@valbuild/core").PatchId[];
3152
- errors?: Partial<Record<import("@valbuild/core").PatchId, {
3153
- message: string;
3154
- }>> | undefined;
3155
- skipped?: import("@valbuild/core").PatchId[] | undefined;
3156
- } | undefined;
3157
- render?: any;
3158
- source?: any;
3159
- validationErrors?: Record<string, {
3160
- message: string;
3161
- value?: unknown;
3162
- fatal?: boolean | undefined;
3163
- fixes?: ("image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "keyof:check-keys" | "router:check-route")[] | undefined;
3164
- }[]> | undefined;
3165
- }>>;
3166
- }, {
3167
- sourcesSha: string;
3168
- schemaSha: string;
3169
- modules: Record<string, {
3170
- patches?: {
3171
- applied: string[];
3172
- errors?: Record<string, {
3173
- message: string;
3174
- }> | undefined;
3175
- skipped?: string[] | undefined;
3176
- } | undefined;
3177
- render?: any;
3178
- source?: any;
3179
- validationErrors?: Record<string, {
3180
- message: string;
3181
- value?: unknown;
3182
- fatal?: boolean | undefined;
3183
- fixes?: ("image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "keyof:check-keys" | "router:check-route")[] | undefined;
3184
- }[]> | undefined;
3185
- }>;
3186
- }>;
3187
- }, "strip", z.ZodTypeAny, {
3188
- status: 200;
3189
- json: {
3190
- sourcesSha: string;
3191
- schemaSha: string;
3192
- modules: Partial<Record<ModuleFilePath, {
3193
- patches?: {
3194
- applied: import("@valbuild/core").PatchId[];
3195
- errors?: Partial<Record<import("@valbuild/core").PatchId, {
3196
- message: string;
3197
- }>> | undefined;
3198
- skipped?: import("@valbuild/core").PatchId[] | undefined;
3199
- } | undefined;
3200
- render?: any;
3201
- source?: any;
3202
- validationErrors?: Record<string, {
3203
- message: string;
3204
- value?: unknown;
3205
- fatal?: boolean | undefined;
3206
- fixes?: ("image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "keyof:check-keys" | "router:check-route")[] | undefined;
3207
- }[]> | undefined;
3208
- }>>;
3209
- };
3210
- }, {
3211
- status: 200;
3212
- json: {
3213
- sourcesSha: string;
3214
- schemaSha: string;
3215
- modules: Record<string, {
3216
- patches?: {
3217
- applied: string[];
3218
- errors?: Record<string, {
3219
- message: string;
3220
- }> | undefined;
3221
- skipped?: string[] | undefined;
3222
- } | undefined;
3223
- render?: any;
3224
- source?: any;
3225
- validationErrors?: Record<string, {
3226
- message: string;
3227
- value?: unknown;
3228
- fatal?: boolean | undefined;
3229
- fixes?: ("image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "keyof:check-keys" | "router:check-route")[] | undefined;
3230
- }[]> | undefined;
3231
- }>;
3232
- };
3233
- }>]>;
816
+ fixes: z.ZodOptional<z.ZodArray<z.ZodType<"image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "keyof:check-keys" | "router:check-route", unknown, z.core.$ZodTypeInternals<"image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "keyof:check-keys" | "router:check-route", unknown>>>>;
817
+ }, z.core.$strip>>>>;
818
+ }, z.core.$strip>>;
819
+ }, z.core.$strip>;
820
+ }, z.core.$strip>]>;
3234
821
  };
3235
822
  };
3236
823
  "/profiles": {
@@ -3240,26 +827,12 @@ export declare const Api: {
3240
827
  val_session: z.ZodOptional<z.ZodString>;
3241
828
  };
3242
829
  };
3243
- res: z.ZodUnion<[z.ZodObject<{
830
+ res: z.ZodUnion<readonly [z.ZodObject<{
3244
831
  status: z.ZodLiteral<401>;
3245
832
  json: z.ZodObject<{
3246
833
  message: z.ZodString;
3247
- }, "strip", z.ZodTypeAny, {
3248
- message: string;
3249
- }, {
3250
- message: string;
3251
- }>;
3252
- }, "strip", z.ZodTypeAny, {
3253
- status: 401;
3254
- json: {
3255
- message: string;
3256
- };
3257
- }, {
3258
- status: 401;
3259
- json: {
3260
- message: string;
3261
- };
3262
- }>, z.ZodObject<{
834
+ }, z.core.$strip>;
835
+ }, z.core.$strip>, z.ZodObject<{
3263
836
  status: z.ZodLiteral<200>;
3264
837
  json: z.ZodObject<{
3265
838
  profiles: z.ZodArray<z.ZodObject<{
@@ -3268,150 +841,40 @@ export declare const Api: {
3268
841
  email: z.ZodOptional<z.ZodString>;
3269
842
  avatar: z.ZodNullable<z.ZodObject<{
3270
843
  url: z.ZodString;
3271
- }, "strip", z.ZodTypeAny, {
3272
- url: string;
3273
- }, {
3274
- url: string;
3275
- }>>;
3276
- }, "strip", z.ZodTypeAny, {
3277
- profileId: string;
3278
- fullName: string;
3279
- avatar: {
3280
- url: string;
3281
- } | null;
3282
- email?: string | undefined;
3283
- }, {
3284
- profileId: string;
3285
- fullName: string;
3286
- avatar: {
3287
- url: string;
3288
- } | null;
3289
- email?: string | undefined;
3290
- }>, "many">;
3291
- }, "strip", z.ZodTypeAny, {
3292
- profiles: {
3293
- profileId: string;
3294
- fullName: string;
3295
- avatar: {
3296
- url: string;
3297
- } | null;
3298
- email?: string | undefined;
3299
- }[];
3300
- }, {
3301
- profiles: {
3302
- profileId: string;
3303
- fullName: string;
3304
- avatar: {
3305
- url: string;
3306
- } | null;
3307
- email?: string | undefined;
3308
- }[];
3309
- }>;
3310
- }, "strip", z.ZodTypeAny, {
3311
- status: 200;
3312
- json: {
3313
- profiles: {
3314
- profileId: string;
3315
- fullName: string;
3316
- avatar: {
3317
- url: string;
3318
- } | null;
3319
- email?: string | undefined;
3320
- }[];
3321
- };
3322
- }, {
3323
- status: 200;
3324
- json: {
3325
- profiles: {
3326
- profileId: string;
3327
- fullName: string;
3328
- avatar: {
3329
- url: string;
3330
- } | null;
3331
- email?: string | undefined;
3332
- }[];
3333
- };
3334
- }>]>;
844
+ }, z.core.$strip>>;
845
+ }, z.core.$strip>>;
846
+ }, z.core.$strip>;
847
+ }, z.core.$strip>]>;
3335
848
  };
3336
849
  };
3337
850
  "/commit-summary": {
3338
851
  GET: {
3339
852
  req: {
3340
853
  query: {
3341
- patch_id: z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">;
854
+ patch_id: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
3342
855
  };
3343
856
  cookies: {
3344
857
  val_session: z.ZodOptional<z.ZodString>;
3345
858
  };
3346
859
  };
3347
- res: z.ZodUnion<[z.ZodObject<{
860
+ res: z.ZodUnion<readonly [z.ZodObject<{
3348
861
  status: z.ZodLiteral<401>;
3349
862
  json: z.ZodObject<{
3350
863
  message: z.ZodString;
3351
- }, "strip", z.ZodTypeAny, {
3352
- message: string;
3353
- }, {
3354
- message: string;
3355
- }>;
3356
- }, "strip", z.ZodTypeAny, {
3357
- status: 401;
3358
- json: {
3359
- message: string;
3360
- };
3361
- }, {
3362
- status: 401;
3363
- json: {
3364
- message: string;
3365
- };
3366
- }>, z.ZodObject<{
864
+ }, z.core.$strip>;
865
+ }, z.core.$strip>, z.ZodObject<{
3367
866
  status: z.ZodLiteral<400>;
3368
867
  json: z.ZodObject<{
3369
868
  message: z.ZodString;
3370
- }, "strip", z.ZodTypeAny, {
3371
- message: string;
3372
- }, {
3373
- message: string;
3374
- }>;
3375
- }, "strip", z.ZodTypeAny, {
3376
- status: 400;
3377
- json: {
3378
- message: string;
3379
- };
3380
- }, {
3381
- status: 400;
3382
- json: {
3383
- message: string;
3384
- };
3385
- }>, z.ZodObject<{
869
+ }, z.core.$strip>;
870
+ }, z.core.$strip>, z.ZodObject<{
3386
871
  status: z.ZodLiteral<200>;
3387
872
  json: z.ZodObject<{
3388
- patchIds: z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">;
873
+ patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
3389
874
  baseSha: z.ZodString;
3390
875
  commitSummary: z.ZodNullable<z.ZodString>;
3391
- }, "strip", z.ZodTypeAny, {
3392
- baseSha: string;
3393
- patchIds: import("@valbuild/core").PatchId[];
3394
- commitSummary: string | null;
3395
- }, {
3396
- baseSha: string;
3397
- patchIds: string[];
3398
- commitSummary: string | null;
3399
- }>;
3400
- }, "strip", z.ZodTypeAny, {
3401
- status: 200;
3402
- json: {
3403
- baseSha: string;
3404
- patchIds: import("@valbuild/core").PatchId[];
3405
- commitSummary: string | null;
3406
- };
3407
- }, {
3408
- status: 200;
3409
- json: {
3410
- baseSha: string;
3411
- patchIds: string[];
3412
- commitSummary: string | null;
3413
- };
3414
- }>]>;
876
+ }, z.core.$strip>;
877
+ }, z.core.$strip>]>;
3415
878
  };
3416
879
  };
3417
880
  "/save": {
@@ -3419,181 +882,45 @@ export declare const Api: {
3419
882
  req: {
3420
883
  body: z.ZodObject<{
3421
884
  message: z.ZodOptional<z.ZodString>;
3422
- patchIds: z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">;
3423
- }, "strip", z.ZodTypeAny, {
3424
- patchIds: import("@valbuild/core").PatchId[];
3425
- message?: string | undefined;
3426
- }, {
3427
- patchIds: string[];
3428
- message?: string | undefined;
3429
- }>;
885
+ patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
886
+ }, z.core.$strip>;
3430
887
  cookies: {
3431
888
  val_session: z.ZodOptional<z.ZodString>;
3432
889
  };
3433
890
  };
3434
- res: z.ZodUnion<[z.ZodObject<{
891
+ res: z.ZodUnion<readonly [z.ZodObject<{
3435
892
  status: z.ZodLiteral<401>;
3436
893
  json: z.ZodObject<{
3437
894
  message: z.ZodString;
3438
- }, "strip", z.ZodTypeAny, {
3439
- message: string;
3440
- }, {
3441
- message: string;
3442
- }>;
3443
- }, "strip", z.ZodTypeAny, {
3444
- status: 401;
3445
- json: {
3446
- message: string;
3447
- };
3448
- }, {
3449
- status: 401;
3450
- json: {
3451
- message: string;
3452
- };
3453
- }>, z.ZodObject<{
895
+ }, z.core.$strip>;
896
+ }, z.core.$strip>, z.ZodObject<{
3454
897
  status: z.ZodLiteral<200>;
3455
- json: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
3456
- }, "strip", z.ZodTypeAny, {
3457
- status: 200;
3458
- json: {};
3459
- }, {
3460
- status: 200;
3461
- json: {};
3462
- }>, z.ZodObject<{
898
+ json: z.ZodObject<{}, z.core.$strip>;
899
+ }, z.core.$strip>, z.ZodObject<{
3463
900
  status: z.ZodLiteral<409>;
3464
901
  json: z.ZodObject<{
3465
902
  message: z.ZodString;
3466
903
  isNotFastForward: z.ZodLiteral<true>;
3467
- }, "strip", z.ZodTypeAny, {
3468
- message: string;
3469
- isNotFastForward: true;
3470
- }, {
3471
- message: string;
3472
- isNotFastForward: true;
3473
- }>;
3474
- }, "strip", z.ZodTypeAny, {
3475
- status: 409;
3476
- json: {
3477
- message: string;
3478
- isNotFastForward: true;
3479
- };
3480
- }, {
3481
- status: 409;
3482
- json: {
3483
- message: string;
3484
- isNotFastForward: true;
3485
- };
3486
- }>, z.ZodObject<{
904
+ }, z.core.$strip>;
905
+ }, z.core.$strip>, z.ZodObject<{
3487
906
  status: z.ZodLiteral<400>;
3488
- json: z.ZodUnion<[z.ZodObject<{
907
+ json: z.ZodUnion<readonly [z.ZodObject<{
3489
908
  message: z.ZodString;
3490
- details: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
3491
- sourceFilePatchErrors: z.ZodRecord<z.ZodEffects<z.ZodString, ModuleFilePath, string>, z.ZodArray<z.ZodObject<{
909
+ details: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
910
+ sourceFilePatchErrors: z.ZodRecord<z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>, z.ZodArray<z.ZodObject<{
3492
911
  message: z.ZodString;
3493
- }, "strip", z.ZodTypeAny, {
3494
- message: string;
3495
- }, {
3496
- message: string;
3497
- }>, "many">>;
912
+ }, z.core.$strip>>>;
3498
913
  binaryFilePatchErrors: z.ZodRecord<z.ZodString, z.ZodObject<{
3499
914
  message: z.ZodString;
3500
- }, "strip", z.ZodTypeAny, {
3501
- message: string;
3502
- }, {
3503
- message: string;
3504
- }>>;
3505
- }, "strip", z.ZodTypeAny, {
3506
- sourceFilePatchErrors: Partial<Record<ModuleFilePath, {
3507
- message: string;
3508
- }[]>>;
3509
- binaryFilePatchErrors: Record<string, {
3510
- message: string;
3511
- }>;
3512
- }, {
3513
- sourceFilePatchErrors: Record<string, {
3514
- message: string;
3515
- }[]>;
3516
- binaryFilePatchErrors: Record<string, {
3517
- message: string;
3518
- }>;
3519
- }>, z.ZodArray<z.ZodObject<{
915
+ }, z.core.$strip>>;
916
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
3520
917
  message: z.ZodString;
3521
- }, "strip", z.ZodTypeAny, {
3522
- message: string;
3523
- }, {
3524
- message: string;
3525
- }>, "many">]>>;
3526
- }, "strip", z.ZodTypeAny, {
3527
- message: string;
3528
- details?: {
3529
- message: string;
3530
- }[] | {
3531
- sourceFilePatchErrors: Partial<Record<ModuleFilePath, {
3532
- message: string;
3533
- }[]>>;
3534
- binaryFilePatchErrors: Record<string, {
3535
- message: string;
3536
- }>;
3537
- } | undefined;
3538
- }, {
3539
- message: string;
3540
- details?: {
3541
- message: string;
3542
- }[] | {
3543
- sourceFilePatchErrors: Record<string, {
3544
- message: string;
3545
- }[]>;
3546
- binaryFilePatchErrors: Record<string, {
3547
- message: string;
3548
- }>;
3549
- } | undefined;
3550
- }>, z.ZodObject<{
918
+ }, z.core.$strip>>]>>;
919
+ }, z.core.$strip>, z.ZodObject<{
3551
920
  message: z.ZodString;
3552
- errorCode: z.ZodUnion<[z.ZodLiteral<"project-not-configured">, z.ZodLiteral<"pat-error">]>;
3553
- }, "strip", z.ZodTypeAny, {
3554
- message: string;
3555
- errorCode: "project-not-configured" | "pat-error";
3556
- }, {
3557
- message: string;
3558
- errorCode: "project-not-configured" | "pat-error";
3559
- }>]>;
3560
- }, "strip", z.ZodTypeAny, {
3561
- status: 400;
3562
- json: {
3563
- message: string;
3564
- details?: {
3565
- message: string;
3566
- }[] | {
3567
- sourceFilePatchErrors: Partial<Record<ModuleFilePath, {
3568
- message: string;
3569
- }[]>>;
3570
- binaryFilePatchErrors: Record<string, {
3571
- message: string;
3572
- }>;
3573
- } | undefined;
3574
- } | {
3575
- message: string;
3576
- errorCode: "project-not-configured" | "pat-error";
3577
- };
3578
- }, {
3579
- status: 400;
3580
- json: {
3581
- message: string;
3582
- details?: {
3583
- message: string;
3584
- }[] | {
3585
- sourceFilePatchErrors: Record<string, {
3586
- message: string;
3587
- }[]>;
3588
- binaryFilePatchErrors: Record<string, {
3589
- message: string;
3590
- }>;
3591
- } | undefined;
3592
- } | {
3593
- message: string;
3594
- errorCode: "project-not-configured" | "pat-error";
3595
- };
3596
- }>]>;
921
+ errorCode: z.ZodUnion<readonly [z.ZodLiteral<"project-not-configured">, z.ZodLiteral<"pat-error">]>;
922
+ }, z.core.$strip>]>;
923
+ }, z.core.$strip>]>;
3597
924
  };
3598
925
  };
3599
926
  "/files": {
@@ -3601,58 +928,28 @@ export declare const Api: {
3601
928
  req: {
3602
929
  path: z.ZodString;
3603
930
  query: {
3604
- patch_id: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">, import("@valbuild/core").PatchId, string[]>>;
3605
- remote: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string, string[]>>;
931
+ patch_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>, z.ZodTransform<string & {
932
+ VAL_DATA_TYPE: "PatchId";
933
+ }, (string & {
934
+ VAL_DATA_TYPE: "PatchId";
935
+ })[]>>>;
936
+ remote: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
3606
937
  };
3607
938
  };
3608
- res: z.ZodUnion<[z.ZodObject<{
939
+ res: z.ZodUnion<readonly [z.ZodObject<{
3609
940
  status: z.ZodLiteral<401>;
3610
941
  json: z.ZodObject<{
3611
942
  message: z.ZodString;
3612
- }, "strip", z.ZodTypeAny, {
3613
- message: string;
3614
- }, {
3615
- message: string;
3616
- }>;
3617
- }, "strip", z.ZodTypeAny, {
3618
- status: 401;
3619
- json: {
3620
- message: string;
3621
- };
3622
- }, {
3623
- status: 401;
3624
- json: {
3625
- message: string;
3626
- };
3627
- }>, z.ZodObject<{
943
+ }, z.core.$strip>;
944
+ }, z.core.$strip>, z.ZodObject<{
3628
945
  status: z.ZodLiteral<404>;
3629
946
  json: z.ZodObject<{
3630
947
  message: z.ZodString;
3631
- }, "strip", z.ZodTypeAny, {
3632
- message: string;
3633
- }, {
3634
- message: string;
3635
- }>;
3636
- }, "strip", z.ZodTypeAny, {
3637
- status: 404;
3638
- json: {
3639
- message: string;
3640
- };
3641
- }, {
3642
- status: 404;
3643
- json: {
3644
- message: string;
3645
- };
3646
- }>, z.ZodObject<{
948
+ }, z.core.$strip>;
949
+ }, z.core.$strip>, z.ZodObject<{
3647
950
  status: z.ZodLiteral<200>;
3648
- body: z.ZodType<ReadableStream<unknown>, z.ZodTypeDef, ReadableStream<unknown>>;
3649
- }, "strip", z.ZodTypeAny, {
3650
- status: 200;
3651
- body: ReadableStream<unknown>;
3652
- }, {
3653
- status: 200;
3654
- body: ReadableStream<unknown>;
3655
- }>]>;
951
+ body: z.ZodCustom<import("node:stream/web").ReadableStream<unknown>, import("node:stream/web").ReadableStream<unknown>>;
952
+ }, z.core.$strip>]>;
3656
953
  };
3657
954
  };
3658
955
  };
@@ -3686,7 +983,7 @@ export type ApiEndpoint = {
3686
983
  req: {
3687
984
  path?: z.ZodString | z.ZodOptional<z.ZodString>;
3688
985
  body?: z.ZodTypeAny;
3689
- query?: Record<string, z.ZodSchema<ValidQueryParamTypes, z.ZodTypeDef, string[] | undefined>>;
986
+ query?: Record<string, z.ZodSchema<ValidQueryParamTypes, string[] | undefined>>;
3690
987
  cookies?: Record<string, z.ZodSchema<string | undefined>>;
3691
988
  };
3692
989
  res: z.ZodSchema<{