@valbuild/shared 0.72.4 → 0.73.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/declarations/src/internal/ApiRoutes.d.ts +318 -261
- package/dist/declarations/src/internal/richtext/conversion/remirrorToRichTextSource.d.ts +9 -2
- package/dist/declarations/src/internal/server/types.d.ts +3 -3
- package/dist/declarations/src/internal/zod/Patch.d.ts +0 -1
- package/internal/dist/valbuild-shared-internal.cjs.dev.js +122 -56
- package/internal/dist/valbuild-shared-internal.cjs.prod.js +122 -56
- package/internal/dist/valbuild-shared-internal.esm.js +123 -57
- package/package.json +2 -2
@@ -1,6 +1,4 @@
|
|
1
1
|
import { z } from "zod";
|
2
|
-
import { type ModuleFilePath } from "@valbuild/core";
|
3
|
-
declare const ModuleFilePath: z.ZodEffects<z.ZodString, ModuleFilePath, string>;
|
4
2
|
declare const cookies: z.ZodUnion<[z.ZodLiteral<"val_session">, z.ZodLiteral<"val_enable">, z.ZodLiteral<"val_state">]>;
|
5
3
|
type Cookies = z.infer<typeof cookies>;
|
6
4
|
declare const enableCookieValue: z.ZodObject<{
|
@@ -45,7 +43,7 @@ export declare const Api: {
|
|
45
43
|
redirect_to: z.ZodOptional<z.ZodString>;
|
46
44
|
};
|
47
45
|
cookies: {
|
48
|
-
|
46
|
+
[x: number]: z.ZodOptional<z.ZodString>;
|
49
47
|
};
|
50
48
|
};
|
51
49
|
res: z.ZodUnion<[z.ZodObject<{
|
@@ -105,7 +103,7 @@ export declare const Api: {
|
|
105
103
|
redirect_to: z.ZodOptional<z.ZodString>;
|
106
104
|
};
|
107
105
|
cookies: {
|
108
|
-
|
106
|
+
[x: number]: z.ZodOptional<z.ZodString>;
|
109
107
|
};
|
110
108
|
};
|
111
109
|
res: z.ZodUnion<[z.ZodObject<{
|
@@ -162,7 +160,7 @@ export declare const Api: {
|
|
162
160
|
GET: {
|
163
161
|
req: {
|
164
162
|
cookies: {
|
165
|
-
|
163
|
+
[x: number]: z.ZodOptional<z.ZodString>;
|
166
164
|
};
|
167
165
|
};
|
168
166
|
res: z.ZodUnion<[z.ZodObject<{
|
@@ -213,7 +211,7 @@ export declare const Api: {
|
|
213
211
|
redirect_to: z.ZodOptional<z.ZodString>;
|
214
212
|
};
|
215
213
|
cookies: {
|
216
|
-
|
214
|
+
[x: number]: z.ZodOptional<z.ZodString>;
|
217
215
|
};
|
218
216
|
};
|
219
217
|
res: z.ZodUnion<[z.ZodObject<{
|
@@ -239,7 +237,7 @@ export declare const Api: {
|
|
239
237
|
status: z.ZodLiteral<302>;
|
240
238
|
redirectTo: z.ZodString;
|
241
239
|
cookies: z.ZodObject<{
|
242
|
-
|
240
|
+
[x: number]: z.ZodObject<{
|
243
241
|
value: z.ZodLiteral<"true">;
|
244
242
|
options: z.ZodObject<{
|
245
243
|
httpOnly: z.ZodLiteral<false>;
|
@@ -263,8 +261,7 @@ export declare const Api: {
|
|
263
261
|
httpOnly: false;
|
264
262
|
sameSite: "lax";
|
265
263
|
};
|
266
|
-
}
|
267
|
-
val_state: z.ZodObject<{
|
264
|
+
}> | z.ZodObject<{
|
268
265
|
value: z.ZodString;
|
269
266
|
options: z.ZodObject<{
|
270
267
|
httpOnly: z.ZodLiteral<true>;
|
@@ -295,14 +292,13 @@ export declare const Api: {
|
|
295
292
|
};
|
296
293
|
}>;
|
297
294
|
}, "strip", z.ZodTypeAny, {
|
298
|
-
|
295
|
+
[x: number]: {
|
299
296
|
value: "true";
|
300
297
|
options: {
|
301
298
|
httpOnly: false;
|
302
299
|
sameSite: "lax";
|
303
300
|
};
|
304
|
-
}
|
305
|
-
val_state: {
|
301
|
+
} | {
|
306
302
|
value: string;
|
307
303
|
options: {
|
308
304
|
httpOnly: true;
|
@@ -311,14 +307,13 @@ export declare const Api: {
|
|
311
307
|
};
|
312
308
|
};
|
313
309
|
}, {
|
314
|
-
|
310
|
+
[x: number]: {
|
315
311
|
value: "true";
|
316
312
|
options: {
|
317
313
|
httpOnly: false;
|
318
314
|
sameSite: "lax";
|
319
315
|
};
|
320
|
-
}
|
321
|
-
val_state: {
|
316
|
+
} | {
|
322
317
|
value: string;
|
323
318
|
options: {
|
324
319
|
httpOnly: true;
|
@@ -331,14 +326,13 @@ export declare const Api: {
|
|
331
326
|
status: 302;
|
332
327
|
redirectTo: string;
|
333
328
|
cookies: {
|
334
|
-
|
329
|
+
[x: number]: {
|
335
330
|
value: "true";
|
336
331
|
options: {
|
337
332
|
httpOnly: false;
|
338
333
|
sameSite: "lax";
|
339
334
|
};
|
340
|
-
}
|
341
|
-
val_state: {
|
335
|
+
} | {
|
342
336
|
value: string;
|
343
337
|
options: {
|
344
338
|
httpOnly: true;
|
@@ -351,14 +345,13 @@ export declare const Api: {
|
|
351
345
|
status: 302;
|
352
346
|
redirectTo: string;
|
353
347
|
cookies: {
|
354
|
-
|
348
|
+
[x: number]: {
|
355
349
|
value: "true";
|
356
350
|
options: {
|
357
351
|
httpOnly: false;
|
358
352
|
sameSite: "lax";
|
359
353
|
};
|
360
|
-
}
|
361
|
-
val_state: {
|
354
|
+
} | {
|
362
355
|
value: string;
|
363
356
|
options: {
|
364
357
|
httpOnly: true;
|
@@ -371,7 +364,7 @@ export declare const Api: {
|
|
371
364
|
status: z.ZodLiteral<302>;
|
372
365
|
redirectTo: z.ZodString;
|
373
366
|
cookies: z.ZodObject<{
|
374
|
-
|
367
|
+
[x: number]: z.ZodObject<{
|
375
368
|
value: z.ZodLiteral<"true">;
|
376
369
|
options: z.ZodObject<{
|
377
370
|
httpOnly: z.ZodLiteral<false>;
|
@@ -397,7 +390,7 @@ export declare const Api: {
|
|
397
390
|
};
|
398
391
|
}>;
|
399
392
|
}, "strip", z.ZodTypeAny, {
|
400
|
-
|
393
|
+
[x: number]: {
|
401
394
|
value: "true";
|
402
395
|
options: {
|
403
396
|
httpOnly: false;
|
@@ -405,7 +398,7 @@ export declare const Api: {
|
|
405
398
|
};
|
406
399
|
};
|
407
400
|
}, {
|
408
|
-
|
401
|
+
[x: number]: {
|
409
402
|
value: "true";
|
410
403
|
options: {
|
411
404
|
httpOnly: false;
|
@@ -417,7 +410,7 @@ export declare const Api: {
|
|
417
410
|
status: 302;
|
418
411
|
redirectTo: string;
|
419
412
|
cookies: {
|
420
|
-
|
413
|
+
[x: number]: {
|
421
414
|
value: "true";
|
422
415
|
options: {
|
423
416
|
httpOnly: false;
|
@@ -429,7 +422,7 @@ export declare const Api: {
|
|
429
422
|
status: 302;
|
430
423
|
redirectTo: string;
|
431
424
|
cookies: {
|
432
|
-
|
425
|
+
[x: number]: {
|
433
426
|
value: "true";
|
434
427
|
options: {
|
435
428
|
httpOnly: false;
|
@@ -466,7 +459,7 @@ export declare const Api: {
|
|
466
459
|
redirect_to: z.ZodOptional<z.ZodString>;
|
467
460
|
};
|
468
461
|
cookies: {
|
469
|
-
|
462
|
+
[x: number]: z.ZodOptional<z.ZodString>;
|
470
463
|
};
|
471
464
|
};
|
472
465
|
res: z.ZodUnion<[z.ZodObject<{
|
@@ -492,7 +485,7 @@ export declare const Api: {
|
|
492
485
|
status: z.ZodLiteral<302>;
|
493
486
|
redirectTo: z.ZodString;
|
494
487
|
cookies: z.ZodObject<{
|
495
|
-
|
488
|
+
[x: number]: z.ZodObject<{
|
496
489
|
value: z.ZodLiteral<"false">;
|
497
490
|
}, "strip", z.ZodTypeAny, {
|
498
491
|
value: "false";
|
@@ -500,11 +493,11 @@ export declare const Api: {
|
|
500
493
|
value: "false";
|
501
494
|
}>;
|
502
495
|
}, "strip", z.ZodTypeAny, {
|
503
|
-
|
496
|
+
[x: number]: {
|
504
497
|
value: "false";
|
505
498
|
};
|
506
499
|
}, {
|
507
|
-
|
500
|
+
[x: number]: {
|
508
501
|
value: "false";
|
509
502
|
};
|
510
503
|
}>;
|
@@ -512,7 +505,7 @@ export declare const Api: {
|
|
512
505
|
status: 302;
|
513
506
|
redirectTo: string;
|
514
507
|
cookies: {
|
515
|
-
|
508
|
+
[x: number]: {
|
516
509
|
value: "false";
|
517
510
|
};
|
518
511
|
};
|
@@ -520,7 +513,7 @@ export declare const Api: {
|
|
520
513
|
status: 302;
|
521
514
|
redirectTo: string;
|
522
515
|
cookies: {
|
523
|
-
|
516
|
+
[x: number]: {
|
524
517
|
value: "false";
|
525
518
|
};
|
526
519
|
};
|
@@ -557,7 +550,7 @@ export declare const Api: {
|
|
557
550
|
status: z.ZodLiteral<302>;
|
558
551
|
redirectTo: z.ZodString;
|
559
552
|
cookies: z.ZodObject<{
|
560
|
-
|
553
|
+
[x: number]: z.ZodObject<{
|
561
554
|
value: z.ZodLiteral<"true">;
|
562
555
|
options: z.ZodObject<{
|
563
556
|
httpOnly: z.ZodLiteral<false>;
|
@@ -581,8 +574,7 @@ export declare const Api: {
|
|
581
574
|
httpOnly: false;
|
582
575
|
sameSite: "lax";
|
583
576
|
};
|
584
|
-
}
|
585
|
-
val_state: z.ZodObject<{
|
577
|
+
}> | z.ZodObject<{
|
586
578
|
value: z.ZodString;
|
587
579
|
options: z.ZodObject<{
|
588
580
|
httpOnly: z.ZodLiteral<true>;
|
@@ -613,14 +605,13 @@ export declare const Api: {
|
|
613
605
|
};
|
614
606
|
}>;
|
615
607
|
}, "strip", z.ZodTypeAny, {
|
616
|
-
|
608
|
+
[x: number]: {
|
617
609
|
value: "true";
|
618
610
|
options: {
|
619
611
|
httpOnly: false;
|
620
612
|
sameSite: "lax";
|
621
613
|
};
|
622
|
-
}
|
623
|
-
val_state: {
|
614
|
+
} | {
|
624
615
|
value: string;
|
625
616
|
options: {
|
626
617
|
httpOnly: true;
|
@@ -629,14 +620,13 @@ export declare const Api: {
|
|
629
620
|
};
|
630
621
|
};
|
631
622
|
}, {
|
632
|
-
|
623
|
+
[x: number]: {
|
633
624
|
value: "true";
|
634
625
|
options: {
|
635
626
|
httpOnly: false;
|
636
627
|
sameSite: "lax";
|
637
628
|
};
|
638
|
-
}
|
639
|
-
val_state: {
|
629
|
+
} | {
|
640
630
|
value: string;
|
641
631
|
options: {
|
642
632
|
httpOnly: true;
|
@@ -649,14 +639,13 @@ export declare const Api: {
|
|
649
639
|
status: 302;
|
650
640
|
redirectTo: string;
|
651
641
|
cookies: {
|
652
|
-
|
642
|
+
[x: number]: {
|
653
643
|
value: "true";
|
654
644
|
options: {
|
655
645
|
httpOnly: false;
|
656
646
|
sameSite: "lax";
|
657
647
|
};
|
658
|
-
}
|
659
|
-
val_state: {
|
648
|
+
} | {
|
660
649
|
value: string;
|
661
650
|
options: {
|
662
651
|
httpOnly: true;
|
@@ -669,14 +658,13 @@ export declare const Api: {
|
|
669
658
|
status: 302;
|
670
659
|
redirectTo: string;
|
671
660
|
cookies: {
|
672
|
-
|
661
|
+
[x: number]: {
|
673
662
|
value: "true";
|
674
663
|
options: {
|
675
664
|
httpOnly: false;
|
676
665
|
sameSite: "lax";
|
677
666
|
};
|
678
|
-
}
|
679
|
-
val_state: {
|
667
|
+
} | {
|
680
668
|
value: string;
|
681
669
|
options: {
|
682
670
|
httpOnly: true;
|
@@ -715,21 +703,14 @@ export declare const Api: {
|
|
715
703
|
state: z.ZodOptional<z.ZodString>;
|
716
704
|
};
|
717
705
|
cookies: {
|
718
|
-
|
706
|
+
[x: number]: z.ZodString;
|
719
707
|
};
|
720
708
|
};
|
721
709
|
res: z.ZodObject<{
|
722
710
|
status: z.ZodLiteral<302>;
|
723
711
|
redirectTo: z.ZodString;
|
724
712
|
cookies: z.ZodObject<{
|
725
|
-
|
726
|
-
value: z.ZodLiteral<null>;
|
727
|
-
}, "strip", z.ZodTypeAny, {
|
728
|
-
value: null;
|
729
|
-
}, {
|
730
|
-
value: null;
|
731
|
-
}>;
|
732
|
-
val_enable: z.ZodOptional<z.ZodObject<{
|
713
|
+
[x: number]: z.ZodOptional<z.ZodObject<{
|
733
714
|
value: z.ZodLiteral<"true">;
|
734
715
|
options: z.ZodObject<{
|
735
716
|
httpOnly: z.ZodLiteral<false>;
|
@@ -753,8 +734,13 @@ export declare const Api: {
|
|
753
734
|
httpOnly: false;
|
754
735
|
sameSite: "lax";
|
755
736
|
};
|
756
|
-
}
|
757
|
-
|
737
|
+
}>> | z.ZodObject<{
|
738
|
+
value: z.ZodLiteral<null>;
|
739
|
+
}, "strip", z.ZodTypeAny, {
|
740
|
+
value: null;
|
741
|
+
}, {
|
742
|
+
value: null;
|
743
|
+
}> | z.ZodOptional<z.ZodObject<{
|
758
744
|
value: z.ZodString;
|
759
745
|
options: z.ZodOptional<z.ZodObject<{
|
760
746
|
httpOnly: z.ZodLiteral<true>;
|
@@ -795,17 +781,15 @@ export declare const Api: {
|
|
795
781
|
} | undefined;
|
796
782
|
}>>;
|
797
783
|
}, "strip", z.ZodTypeAny, {
|
798
|
-
|
799
|
-
value: null;
|
800
|
-
};
|
801
|
-
val_enable?: {
|
784
|
+
[x: number]: {
|
802
785
|
value: "true";
|
803
786
|
options: {
|
804
787
|
httpOnly: false;
|
805
788
|
sameSite: "lax";
|
806
789
|
};
|
807
|
-
} |
|
808
|
-
|
790
|
+
} | {
|
791
|
+
value: null;
|
792
|
+
} | {
|
809
793
|
value: string;
|
810
794
|
options?: {
|
811
795
|
path: string;
|
@@ -816,17 +800,15 @@ export declare const Api: {
|
|
816
800
|
} | undefined;
|
817
801
|
} | undefined;
|
818
802
|
}, {
|
819
|
-
|
820
|
-
value: null;
|
821
|
-
};
|
822
|
-
val_enable?: {
|
803
|
+
[x: number]: {
|
823
804
|
value: "true";
|
824
805
|
options: {
|
825
806
|
httpOnly: false;
|
826
807
|
sameSite: "lax";
|
827
808
|
};
|
828
|
-
} |
|
829
|
-
|
809
|
+
} | {
|
810
|
+
value: null;
|
811
|
+
} | {
|
830
812
|
value: string;
|
831
813
|
options?: {
|
832
814
|
path: string;
|
@@ -841,17 +823,15 @@ export declare const Api: {
|
|
841
823
|
status: 302;
|
842
824
|
redirectTo: string;
|
843
825
|
cookies: {
|
844
|
-
|
845
|
-
value: null;
|
846
|
-
};
|
847
|
-
val_enable?: {
|
826
|
+
[x: number]: {
|
848
827
|
value: "true";
|
849
828
|
options: {
|
850
829
|
httpOnly: false;
|
851
830
|
sameSite: "lax";
|
852
831
|
};
|
853
|
-
} |
|
854
|
-
|
832
|
+
} | {
|
833
|
+
value: null;
|
834
|
+
} | {
|
855
835
|
value: string;
|
856
836
|
options?: {
|
857
837
|
path: string;
|
@@ -866,17 +846,15 @@ export declare const Api: {
|
|
866
846
|
status: 302;
|
867
847
|
redirectTo: string;
|
868
848
|
cookies: {
|
869
|
-
|
870
|
-
value: null;
|
871
|
-
};
|
872
|
-
val_enable?: {
|
849
|
+
[x: number]: {
|
873
850
|
value: "true";
|
874
851
|
options: {
|
875
852
|
httpOnly: false;
|
876
853
|
sameSite: "lax";
|
877
854
|
};
|
878
|
-
} |
|
879
|
-
|
855
|
+
} | {
|
856
|
+
value: null;
|
857
|
+
} | {
|
880
858
|
value: string;
|
881
859
|
options?: {
|
882
860
|
path: string;
|
@@ -1048,14 +1026,7 @@ export declare const Api: {
|
|
1048
1026
|
res: z.ZodObject<{
|
1049
1027
|
status: z.ZodLiteral<200>;
|
1050
1028
|
cookies: z.ZodObject<{
|
1051
|
-
|
1052
|
-
value: z.ZodLiteral<null>;
|
1053
|
-
}, "strip", z.ZodTypeAny, {
|
1054
|
-
value: null;
|
1055
|
-
}, {
|
1056
|
-
value: null;
|
1057
|
-
}>;
|
1058
|
-
val_state: z.ZodObject<{
|
1029
|
+
[x: number]: z.ZodObject<{
|
1059
1030
|
value: z.ZodLiteral<null>;
|
1060
1031
|
}, "strip", z.ZodTypeAny, {
|
1061
1032
|
value: null;
|
@@ -1063,43 +1034,151 @@ export declare const Api: {
|
|
1063
1034
|
value: null;
|
1064
1035
|
}>;
|
1065
1036
|
}, "strip", z.ZodTypeAny, {
|
1066
|
-
|
1067
|
-
value: null;
|
1068
|
-
};
|
1069
|
-
val_session: {
|
1037
|
+
[x: number]: {
|
1070
1038
|
value: null;
|
1071
1039
|
};
|
1072
1040
|
}, {
|
1073
|
-
|
1074
|
-
value: null;
|
1075
|
-
};
|
1076
|
-
val_session: {
|
1041
|
+
[x: number]: {
|
1077
1042
|
value: null;
|
1078
1043
|
};
|
1079
1044
|
}>;
|
1080
1045
|
}, "strip", z.ZodTypeAny, {
|
1081
1046
|
status: 200;
|
1082
1047
|
cookies: {
|
1083
|
-
|
1084
|
-
value: null;
|
1085
|
-
};
|
1086
|
-
val_session: {
|
1048
|
+
[x: number]: {
|
1087
1049
|
value: null;
|
1088
1050
|
};
|
1089
1051
|
};
|
1090
1052
|
}, {
|
1091
1053
|
status: 200;
|
1092
1054
|
cookies: {
|
1093
|
-
|
1094
|
-
value: null;
|
1095
|
-
};
|
1096
|
-
val_session: {
|
1055
|
+
[x: number]: {
|
1097
1056
|
value: null;
|
1098
1057
|
};
|
1099
1058
|
};
|
1100
1059
|
}>;
|
1101
1060
|
};
|
1102
1061
|
};
|
1062
|
+
"/remote/settings": {
|
1063
|
+
GET: {
|
1064
|
+
req: {
|
1065
|
+
cookies: {
|
1066
|
+
val_session: z.ZodOptional<z.ZodString>;
|
1067
|
+
};
|
1068
|
+
};
|
1069
|
+
res: z.ZodUnion<[z.ZodObject<{
|
1070
|
+
status: z.ZodLiteral<200>;
|
1071
|
+
json: z.ZodObject<{
|
1072
|
+
publicProjectId: z.ZodString;
|
1073
|
+
coreVersion: z.ZodString;
|
1074
|
+
remoteFileBuckets: z.ZodArray<z.ZodObject<{
|
1075
|
+
bucket: z.ZodString;
|
1076
|
+
}, "strip", z.ZodTypeAny, {
|
1077
|
+
bucket: string;
|
1078
|
+
}, {
|
1079
|
+
bucket: string;
|
1080
|
+
}>, "many">;
|
1081
|
+
}, "strip", z.ZodTypeAny, {
|
1082
|
+
publicProjectId: string;
|
1083
|
+
coreVersion: string;
|
1084
|
+
remoteFileBuckets: {
|
1085
|
+
bucket: string;
|
1086
|
+
}[];
|
1087
|
+
}, {
|
1088
|
+
publicProjectId: string;
|
1089
|
+
coreVersion: string;
|
1090
|
+
remoteFileBuckets: {
|
1091
|
+
bucket: string;
|
1092
|
+
}[];
|
1093
|
+
}>;
|
1094
|
+
}, "strip", z.ZodTypeAny, {
|
1095
|
+
status: 200;
|
1096
|
+
json: {
|
1097
|
+
publicProjectId: string;
|
1098
|
+
coreVersion: string;
|
1099
|
+
remoteFileBuckets: {
|
1100
|
+
bucket: string;
|
1101
|
+
}[];
|
1102
|
+
};
|
1103
|
+
}, {
|
1104
|
+
status: 200;
|
1105
|
+
json: {
|
1106
|
+
publicProjectId: string;
|
1107
|
+
coreVersion: string;
|
1108
|
+
remoteFileBuckets: {
|
1109
|
+
bucket: string;
|
1110
|
+
}[];
|
1111
|
+
};
|
1112
|
+
}>, z.ZodObject<{
|
1113
|
+
status: z.ZodLiteral<400>;
|
1114
|
+
json: z.ZodObject<{
|
1115
|
+
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">]>;
|
1116
|
+
message: z.ZodString;
|
1117
|
+
}, "strip", z.ZodTypeAny, {
|
1118
|
+
message: string;
|
1119
|
+
errorCode: "project-not-configured" | "error-could-not-get-settings" | "pat-error" | "api-key-missing";
|
1120
|
+
}, {
|
1121
|
+
message: string;
|
1122
|
+
errorCode: "project-not-configured" | "error-could-not-get-settings" | "pat-error" | "api-key-missing";
|
1123
|
+
}>;
|
1124
|
+
}, "strip", z.ZodTypeAny, {
|
1125
|
+
status: 400;
|
1126
|
+
json: {
|
1127
|
+
message: string;
|
1128
|
+
errorCode: "project-not-configured" | "error-could-not-get-settings" | "pat-error" | "api-key-missing";
|
1129
|
+
};
|
1130
|
+
}, {
|
1131
|
+
status: 400;
|
1132
|
+
json: {
|
1133
|
+
message: string;
|
1134
|
+
errorCode: "project-not-configured" | "error-could-not-get-settings" | "pat-error" | "api-key-missing";
|
1135
|
+
};
|
1136
|
+
}>, z.ZodObject<{
|
1137
|
+
status: z.ZodLiteral<401>;
|
1138
|
+
json: z.ZodObject<{
|
1139
|
+
errorCode: z.ZodOptional<z.ZodLiteral<"unauthorized">>;
|
1140
|
+
message: z.ZodString;
|
1141
|
+
}, "strip", z.ZodTypeAny, {
|
1142
|
+
message: string;
|
1143
|
+
errorCode?: "unauthorized" | undefined;
|
1144
|
+
}, {
|
1145
|
+
message: string;
|
1146
|
+
errorCode?: "unauthorized" | undefined;
|
1147
|
+
}>;
|
1148
|
+
}, "strip", z.ZodTypeAny, {
|
1149
|
+
status: 401;
|
1150
|
+
json: {
|
1151
|
+
message: string;
|
1152
|
+
errorCode?: "unauthorized" | undefined;
|
1153
|
+
};
|
1154
|
+
}, {
|
1155
|
+
status: 401;
|
1156
|
+
json: {
|
1157
|
+
message: string;
|
1158
|
+
errorCode?: "unauthorized" | undefined;
|
1159
|
+
};
|
1160
|
+
}>, z.ZodObject<{
|
1161
|
+
status: z.ZodLiteral<500>;
|
1162
|
+
json: z.ZodObject<{
|
1163
|
+
message: z.ZodString;
|
1164
|
+
}, "strip", z.ZodTypeAny, {
|
1165
|
+
message: string;
|
1166
|
+
}, {
|
1167
|
+
message: string;
|
1168
|
+
}>;
|
1169
|
+
}, "strip", z.ZodTypeAny, {
|
1170
|
+
status: 500;
|
1171
|
+
json: {
|
1172
|
+
message: string;
|
1173
|
+
};
|
1174
|
+
}, {
|
1175
|
+
status: 500;
|
1176
|
+
json: {
|
1177
|
+
message: string;
|
1178
|
+
};
|
1179
|
+
}>]>;
|
1180
|
+
};
|
1181
|
+
};
|
1103
1182
|
"/stat": {
|
1104
1183
|
POST: {
|
1105
1184
|
req: {
|
@@ -1183,7 +1262,7 @@ export declare const Api: {
|
|
1183
1262
|
type: z.ZodUnion<[z.ZodLiteral<"request-again">, z.ZodLiteral<"no-change">, z.ZodLiteral<"did-change">]>;
|
1184
1263
|
baseSha: z.ZodString;
|
1185
1264
|
schemaSha: z.ZodString;
|
1186
|
-
patches: z.ZodArray<z.ZodEffects<z.ZodString,
|
1265
|
+
patches: z.ZodArray<z.ZodEffects<z.ZodString, PatchIdT, string>, "many">;
|
1187
1266
|
config: z.ZodObject<{
|
1188
1267
|
project: z.ZodOptional<z.ZodString>;
|
1189
1268
|
root: z.ZodOptional<z.ZodString>;
|
@@ -1219,7 +1298,7 @@ export declare const Api: {
|
|
1219
1298
|
mode: "unknown" | "http" | "fs";
|
1220
1299
|
schemaSha: string;
|
1221
1300
|
baseSha: string;
|
1222
|
-
patches:
|
1301
|
+
patches: PatchIdT[];
|
1223
1302
|
config: {
|
1224
1303
|
project?: string | undefined;
|
1225
1304
|
root?: string | undefined;
|
@@ -1251,7 +1330,7 @@ export declare const Api: {
|
|
1251
1330
|
baseSha: z.ZodString;
|
1252
1331
|
schemaSha: z.ZodString;
|
1253
1332
|
commitSha: z.ZodString;
|
1254
|
-
patches: z.ZodArray<z.ZodEffects<z.ZodString,
|
1333
|
+
patches: z.ZodArray<z.ZodEffects<z.ZodString, PatchIdT, string>, "many">;
|
1255
1334
|
config: z.ZodObject<{
|
1256
1335
|
project: z.ZodOptional<z.ZodString>;
|
1257
1336
|
root: z.ZodOptional<z.ZodString>;
|
@@ -1287,7 +1366,7 @@ export declare const Api: {
|
|
1287
1366
|
mode: "unknown" | "http" | "fs";
|
1288
1367
|
schemaSha: string;
|
1289
1368
|
baseSha: string;
|
1290
|
-
patches:
|
1369
|
+
patches: PatchIdT[];
|
1291
1370
|
config: {
|
1292
1371
|
project?: string | undefined;
|
1293
1372
|
root?: string | undefined;
|
@@ -1326,7 +1405,7 @@ export declare const Api: {
|
|
1326
1405
|
mode: "unknown" | "http" | "fs";
|
1327
1406
|
schemaSha: string;
|
1328
1407
|
baseSha: string;
|
1329
|
-
patches:
|
1408
|
+
patches: PatchIdT[];
|
1330
1409
|
config: {
|
1331
1410
|
project?: string | undefined;
|
1332
1411
|
root?: string | undefined;
|
@@ -1341,7 +1420,7 @@ export declare const Api: {
|
|
1341
1420
|
mode: "unknown" | "http" | "fs";
|
1342
1421
|
schemaSha: string;
|
1343
1422
|
baseSha: string;
|
1344
|
-
patches:
|
1423
|
+
patches: PatchIdT[];
|
1345
1424
|
config: {
|
1346
1425
|
project?: string | undefined;
|
1347
1426
|
root?: string | undefined;
|
@@ -1398,7 +1477,7 @@ export declare const Api: {
|
|
1398
1477
|
DELETE: {
|
1399
1478
|
req: {
|
1400
1479
|
query: {
|
1401
|
-
id: z.ZodArray<z.ZodEffects<z.ZodString,
|
1480
|
+
id: z.ZodArray<z.ZodEffects<z.ZodString, PatchIdT, string>, "many">;
|
1402
1481
|
};
|
1403
1482
|
cookies: {
|
1404
1483
|
val_session: z.ZodOptional<z.ZodString>;
|
@@ -1428,13 +1507,11 @@ export declare const Api: {
|
|
1428
1507
|
json: z.ZodObject<{
|
1429
1508
|
message: z.ZodString;
|
1430
1509
|
errors: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
1431
|
-
patchId: z.ZodEffects<z.ZodString,
|
1510
|
+
patchId: z.ZodEffects<z.ZodString, PatchIdT, string>;
|
1432
1511
|
message: z.ZodString;
|
1433
1512
|
}, "strip", z.ZodTypeAny, {
|
1434
1513
|
message: string;
|
1435
|
-
patchId
|
1436
|
-
VAL_DATA_TYPE: "PatchId";
|
1437
|
-
};
|
1514
|
+
patchId?: any;
|
1438
1515
|
}, {
|
1439
1516
|
message: string;
|
1440
1517
|
patchId: string;
|
@@ -1452,9 +1529,7 @@ export declare const Api: {
|
|
1452
1529
|
message: string;
|
1453
1530
|
errors: ({
|
1454
1531
|
message: string;
|
1455
|
-
patchId
|
1456
|
-
VAL_DATA_TYPE: "PatchId";
|
1457
|
-
};
|
1532
|
+
patchId?: any;
|
1458
1533
|
} | {
|
1459
1534
|
message: string;
|
1460
1535
|
parentPatchId: string;
|
@@ -1475,9 +1550,7 @@ export declare const Api: {
|
|
1475
1550
|
message: string;
|
1476
1551
|
errors: ({
|
1477
1552
|
message: string;
|
1478
|
-
patchId
|
1479
|
-
VAL_DATA_TYPE: "PatchId";
|
1480
|
-
};
|
1553
|
+
patchId?: any;
|
1481
1554
|
} | {
|
1482
1555
|
message: string;
|
1483
1556
|
parentPatchId: string;
|
@@ -1497,10 +1570,10 @@ export declare const Api: {
|
|
1497
1570
|
};
|
1498
1571
|
}>, z.ZodObject<{
|
1499
1572
|
status: z.ZodLiteral<200>;
|
1500
|
-
json: z.ZodArray<z.ZodEffects<z.ZodString,
|
1573
|
+
json: z.ZodArray<z.ZodEffects<z.ZodString, PatchIdT, string>, "many">;
|
1501
1574
|
}, "strip", z.ZodTypeAny, {
|
1502
1575
|
status: 200;
|
1503
|
-
json:
|
1576
|
+
json: PatchIdT[];
|
1504
1577
|
}, {
|
1505
1578
|
status: 200;
|
1506
1579
|
json: string[];
|
@@ -1520,48 +1593,40 @@ export declare const Api: {
|
|
1520
1593
|
headBaseSha: string;
|
1521
1594
|
}>, z.ZodObject<{
|
1522
1595
|
type: z.ZodLiteral<"patch">;
|
1523
|
-
patchId: z.ZodEffects<z.ZodString,
|
1596
|
+
patchId: z.ZodEffects<z.ZodString, PatchIdT, string>;
|
1524
1597
|
}, "strip", z.ZodTypeAny, {
|
1525
1598
|
type: "patch";
|
1526
|
-
patchId
|
1527
|
-
VAL_DATA_TYPE: "PatchId";
|
1528
|
-
};
|
1599
|
+
patchId?: any;
|
1529
1600
|
}, {
|
1530
1601
|
type: "patch";
|
1531
1602
|
patchId: string;
|
1532
1603
|
}>]>;
|
1533
1604
|
patches: z.ZodArray<z.ZodObject<{
|
1534
1605
|
path: z.ZodEffects<z.ZodString, ModuleFilePath, string>;
|
1535
|
-
patch: z.ZodType<
|
1606
|
+
patch: z.ZodType<PatchT, z.ZodTypeDef, PatchT>;
|
1536
1607
|
}, "strip", z.ZodTypeAny, {
|
1537
|
-
path
|
1538
|
-
|
1539
|
-
};
|
1540
|
-
patch: import("@valbuild/core/patch").Patch;
|
1608
|
+
path?: any;
|
1609
|
+
patch?: any;
|
1541
1610
|
}, {
|
1542
1611
|
path: string;
|
1543
|
-
patch
|
1612
|
+
patch?: any;
|
1544
1613
|
}>, "many">;
|
1545
1614
|
}, "strip", z.ZodTypeAny, {
|
1546
1615
|
patches: {
|
1547
|
-
path
|
1548
|
-
|
1549
|
-
};
|
1550
|
-
patch: import("@valbuild/core/patch").Patch;
|
1616
|
+
path?: any;
|
1617
|
+
patch?: any;
|
1551
1618
|
}[];
|
1552
1619
|
parentRef: {
|
1553
1620
|
type: "head";
|
1554
1621
|
headBaseSha: string;
|
1555
1622
|
} | {
|
1556
1623
|
type: "patch";
|
1557
|
-
patchId
|
1558
|
-
VAL_DATA_TYPE: "PatchId";
|
1559
|
-
};
|
1624
|
+
patchId?: any;
|
1560
1625
|
};
|
1561
1626
|
}, {
|
1562
1627
|
patches: {
|
1563
1628
|
path: string;
|
1564
|
-
patch
|
1629
|
+
patch?: any;
|
1565
1630
|
}[];
|
1566
1631
|
parentRef: {
|
1567
1632
|
type: "head";
|
@@ -1643,11 +1708,11 @@ export declare const Api: {
|
|
1643
1708
|
}, "strip", z.ZodTypeAny, {
|
1644
1709
|
message: string;
|
1645
1710
|
type: "patch-error";
|
1646
|
-
errors:
|
1711
|
+
errors: Record<ModuleFilePath, {
|
1647
1712
|
error: {
|
1648
1713
|
message: string;
|
1649
1714
|
};
|
1650
|
-
}[]
|
1715
|
+
}[]>;
|
1651
1716
|
}, {
|
1652
1717
|
message: string;
|
1653
1718
|
type: "patch-error";
|
@@ -1662,11 +1727,11 @@ export declare const Api: {
|
|
1662
1727
|
json: {
|
1663
1728
|
message: string;
|
1664
1729
|
type: "patch-error";
|
1665
|
-
errors:
|
1730
|
+
errors: Record<ModuleFilePath, {
|
1666
1731
|
error: {
|
1667
1732
|
message: string;
|
1668
1733
|
};
|
1669
|
-
}[]
|
1734
|
+
}[]>;
|
1670
1735
|
};
|
1671
1736
|
}, {
|
1672
1737
|
status: 400;
|
@@ -1682,7 +1747,7 @@ export declare const Api: {
|
|
1682
1747
|
}>, z.ZodObject<{
|
1683
1748
|
status: z.ZodLiteral<200>;
|
1684
1749
|
json: z.ZodObject<{
|
1685
|
-
newPatchIds: z.ZodArray<z.ZodEffects<z.ZodString,
|
1750
|
+
newPatchIds: z.ZodArray<z.ZodEffects<z.ZodString, PatchIdT, string>, "many">;
|
1686
1751
|
parentRef: z.ZodUnion<[z.ZodObject<{
|
1687
1752
|
type: z.ZodLiteral<"head">;
|
1688
1753
|
headBaseSha: z.ZodString;
|
@@ -1694,12 +1759,10 @@ export declare const Api: {
|
|
1694
1759
|
headBaseSha: string;
|
1695
1760
|
}>, z.ZodObject<{
|
1696
1761
|
type: z.ZodLiteral<"patch">;
|
1697
|
-
patchId: z.ZodEffects<z.ZodString,
|
1762
|
+
patchId: z.ZodEffects<z.ZodString, PatchIdT, string>;
|
1698
1763
|
}, "strip", z.ZodTypeAny, {
|
1699
1764
|
type: "patch";
|
1700
|
-
patchId
|
1701
|
-
VAL_DATA_TYPE: "PatchId";
|
1702
|
-
};
|
1765
|
+
patchId?: any;
|
1703
1766
|
}, {
|
1704
1767
|
type: "patch";
|
1705
1768
|
patchId: string;
|
@@ -1710,11 +1773,9 @@ export declare const Api: {
|
|
1710
1773
|
headBaseSha: string;
|
1711
1774
|
} | {
|
1712
1775
|
type: "patch";
|
1713
|
-
patchId
|
1714
|
-
VAL_DATA_TYPE: "PatchId";
|
1715
|
-
};
|
1776
|
+
patchId?: any;
|
1716
1777
|
};
|
1717
|
-
newPatchIds:
|
1778
|
+
newPatchIds: PatchIdT[];
|
1718
1779
|
}, {
|
1719
1780
|
parentRef: {
|
1720
1781
|
type: "head";
|
@@ -1733,11 +1794,9 @@ export declare const Api: {
|
|
1733
1794
|
headBaseSha: string;
|
1734
1795
|
} | {
|
1735
1796
|
type: "patch";
|
1736
|
-
patchId
|
1737
|
-
VAL_DATA_TYPE: "PatchId";
|
1738
|
-
};
|
1797
|
+
patchId?: any;
|
1739
1798
|
};
|
1740
|
-
newPatchIds:
|
1799
|
+
newPatchIds: PatchIdT[];
|
1741
1800
|
};
|
1742
1801
|
}, {
|
1743
1802
|
status: 200;
|
@@ -1756,7 +1815,7 @@ export declare const Api: {
|
|
1756
1815
|
GET: {
|
1757
1816
|
req: {
|
1758
1817
|
query: {
|
1759
|
-
patch_id: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString,
|
1818
|
+
patch_id: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, PatchIdT, string>, "many">>;
|
1760
1819
|
exclude_patch_ops: z.ZodOptional<z.ZodBoolean>;
|
1761
1820
|
};
|
1762
1821
|
cookies: {
|
@@ -1787,13 +1846,11 @@ export declare const Api: {
|
|
1787
1846
|
json: z.ZodObject<{
|
1788
1847
|
message: z.ZodString;
|
1789
1848
|
patchErrors: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
1790
|
-
patchId: z.ZodEffects<z.ZodString,
|
1849
|
+
patchId: z.ZodEffects<z.ZodString, PatchIdT, string>;
|
1791
1850
|
message: z.ZodString;
|
1792
1851
|
}, "strip", z.ZodTypeAny, {
|
1793
1852
|
message: string;
|
1794
|
-
patchId
|
1795
|
-
VAL_DATA_TYPE: "PatchId";
|
1796
|
-
};
|
1853
|
+
patchId?: any;
|
1797
1854
|
}, {
|
1798
1855
|
message: string;
|
1799
1856
|
patchId: string;
|
@@ -1811,9 +1868,7 @@ export declare const Api: {
|
|
1811
1868
|
message: string;
|
1812
1869
|
patchErrors: ({
|
1813
1870
|
message: string;
|
1814
|
-
patchId
|
1815
|
-
VAL_DATA_TYPE: "PatchId";
|
1816
|
-
};
|
1871
|
+
patchId?: any;
|
1817
1872
|
} | {
|
1818
1873
|
message: string;
|
1819
1874
|
parentPatchId: string;
|
@@ -1834,9 +1889,7 @@ export declare const Api: {
|
|
1834
1889
|
message: string;
|
1835
1890
|
patchErrors: ({
|
1836
1891
|
message: string;
|
1837
|
-
patchId
|
1838
|
-
VAL_DATA_TYPE: "PatchId";
|
1839
|
-
};
|
1892
|
+
patchId?: any;
|
1840
1893
|
} | {
|
1841
1894
|
message: string;
|
1842
1895
|
parentPatchId: string;
|
@@ -1897,8 +1950,8 @@ export declare const Api: {
|
|
1897
1950
|
json: z.ZodObject<{
|
1898
1951
|
patches: z.ZodArray<z.ZodObject<{
|
1899
1952
|
path: z.ZodEffects<z.ZodString, ModuleFilePath, string>;
|
1900
|
-
patch: z.ZodOptional<z.ZodType<
|
1901
|
-
patchId: z.ZodEffects<z.ZodString,
|
1953
|
+
patch: z.ZodOptional<z.ZodType<PatchT, z.ZodTypeDef, PatchT>>;
|
1954
|
+
patchId: z.ZodEffects<z.ZodString, PatchIdT, string>;
|
1902
1955
|
createdAt: z.ZodString;
|
1903
1956
|
authorId: z.ZodNullable<z.ZodString>;
|
1904
1957
|
appliedAt: z.ZodNullable<z.ZodObject<{
|
@@ -1909,18 +1962,14 @@ export declare const Api: {
|
|
1909
1962
|
commitSha: string;
|
1910
1963
|
}>>;
|
1911
1964
|
}, "strip", z.ZodTypeAny, {
|
1912
|
-
path: string & {
|
1913
|
-
VAL_DATA_TYPE: "ModuleFilePath";
|
1914
|
-
};
|
1915
|
-
patchId: string & {
|
1916
|
-
VAL_DATA_TYPE: "PatchId";
|
1917
|
-
};
|
1918
1965
|
createdAt: string;
|
1919
1966
|
authorId: string | null;
|
1920
1967
|
appliedAt: {
|
1921
1968
|
commitSha: string;
|
1922
1969
|
} | null;
|
1923
|
-
|
1970
|
+
path?: any;
|
1971
|
+
patchId?: any;
|
1972
|
+
patch?: any;
|
1924
1973
|
}, {
|
1925
1974
|
path: string;
|
1926
1975
|
patchId: string;
|
@@ -1929,7 +1978,7 @@ export declare const Api: {
|
|
1929
1978
|
appliedAt: {
|
1930
1979
|
commitSha: string;
|
1931
1980
|
} | null;
|
1932
|
-
patch?:
|
1981
|
+
patch?: any;
|
1933
1982
|
}>, "many">;
|
1934
1983
|
baseSha: z.ZodString;
|
1935
1984
|
error: z.ZodOptional<z.ZodObject<{
|
@@ -1939,7 +1988,7 @@ export declare const Api: {
|
|
1939
1988
|
}, {
|
1940
1989
|
message: string;
|
1941
1990
|
}>>;
|
1942
|
-
errors: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString,
|
1991
|
+
errors: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, PatchIdT, string>, z.ZodObject<{
|
1943
1992
|
message: z.ZodString;
|
1944
1993
|
}, "strip", z.ZodTypeAny, {
|
1945
1994
|
message: string;
|
@@ -1949,22 +1998,18 @@ export declare const Api: {
|
|
1949
1998
|
}, "strip", z.ZodTypeAny, {
|
1950
1999
|
baseSha: string;
|
1951
2000
|
patches: {
|
1952
|
-
path: string & {
|
1953
|
-
VAL_DATA_TYPE: "ModuleFilePath";
|
1954
|
-
};
|
1955
|
-
patchId: string & {
|
1956
|
-
VAL_DATA_TYPE: "PatchId";
|
1957
|
-
};
|
1958
2001
|
createdAt: string;
|
1959
2002
|
authorId: string | null;
|
1960
2003
|
appliedAt: {
|
1961
2004
|
commitSha: string;
|
1962
2005
|
} | null;
|
1963
|
-
|
2006
|
+
path?: any;
|
2007
|
+
patchId?: any;
|
2008
|
+
patch?: any;
|
1964
2009
|
}[];
|
1965
|
-
errors?:
|
2010
|
+
errors?: Record<PatchIdT, {
|
1966
2011
|
message: string;
|
1967
|
-
}
|
2012
|
+
}> | undefined;
|
1968
2013
|
error?: {
|
1969
2014
|
message: string;
|
1970
2015
|
} | undefined;
|
@@ -1978,7 +2023,7 @@ export declare const Api: {
|
|
1978
2023
|
appliedAt: {
|
1979
2024
|
commitSha: string;
|
1980
2025
|
} | null;
|
1981
|
-
patch?:
|
2026
|
+
patch?: any;
|
1982
2027
|
}[];
|
1983
2028
|
errors?: Record<string, {
|
1984
2029
|
message: string;
|
@@ -1992,22 +2037,18 @@ export declare const Api: {
|
|
1992
2037
|
json: {
|
1993
2038
|
baseSha: string;
|
1994
2039
|
patches: {
|
1995
|
-
path: string & {
|
1996
|
-
VAL_DATA_TYPE: "ModuleFilePath";
|
1997
|
-
};
|
1998
|
-
patchId: string & {
|
1999
|
-
VAL_DATA_TYPE: "PatchId";
|
2000
|
-
};
|
2001
2040
|
createdAt: string;
|
2002
2041
|
authorId: string | null;
|
2003
2042
|
appliedAt: {
|
2004
2043
|
commitSha: string;
|
2005
2044
|
} | null;
|
2006
|
-
|
2045
|
+
path?: any;
|
2046
|
+
patchId?: any;
|
2047
|
+
patch?: any;
|
2007
2048
|
}[];
|
2008
|
-
errors?:
|
2049
|
+
errors?: Record<PatchIdT, {
|
2009
2050
|
message: string;
|
2010
|
-
}
|
2051
|
+
}> | undefined;
|
2011
2052
|
error?: {
|
2012
2053
|
message: string;
|
2013
2054
|
} | undefined;
|
@@ -2024,7 +2065,7 @@ export declare const Api: {
|
|
2024
2065
|
appliedAt: {
|
2025
2066
|
commitSha: string;
|
2026
2067
|
} | null;
|
2027
|
-
patch?:
|
2068
|
+
patch?: any;
|
2028
2069
|
}[];
|
2029
2070
|
errors?: Record<string, {
|
2030
2071
|
message: string;
|
@@ -2071,7 +2112,7 @@ export declare const Api: {
|
|
2071
2112
|
path: z.ZodOptional<z.ZodEffects<z.ZodString, ModuleFilePath, string>>;
|
2072
2113
|
}, "strip", z.ZodTypeAny, {
|
2073
2114
|
message: string;
|
2074
|
-
path?:
|
2115
|
+
path?: any;
|
2075
2116
|
}, {
|
2076
2117
|
message: string;
|
2077
2118
|
path?: string | undefined;
|
@@ -2080,7 +2121,7 @@ export declare const Api: {
|
|
2080
2121
|
message: string;
|
2081
2122
|
details: {
|
2082
2123
|
message: string;
|
2083
|
-
path?:
|
2124
|
+
path?: any;
|
2084
2125
|
}[];
|
2085
2126
|
}, {
|
2086
2127
|
message: string;
|
@@ -2095,7 +2136,7 @@ export declare const Api: {
|
|
2095
2136
|
message: string;
|
2096
2137
|
details: {
|
2097
2138
|
message: string;
|
2098
|
-
path?:
|
2139
|
+
path?: any;
|
2099
2140
|
}[];
|
2100
2141
|
};
|
2101
2142
|
}, {
|
@@ -2149,10 +2190,10 @@ export declare const Api: {
|
|
2149
2190
|
status: z.ZodLiteral<200>;
|
2150
2191
|
json: z.ZodObject<{
|
2151
2192
|
schemaSha: z.ZodString;
|
2152
|
-
schemas: z.ZodRecord<z.ZodEffects<z.ZodString, ModuleFilePath, string>, z.ZodType<
|
2193
|
+
schemas: z.ZodRecord<z.ZodEffects<z.ZodString, ModuleFilePath, string>, z.ZodType<SerializedSchemaT, z.ZodTypeDef, unknown>>;
|
2153
2194
|
}, "strip", z.ZodTypeAny, {
|
2154
2195
|
schemaSha: string;
|
2155
|
-
schemas:
|
2196
|
+
schemas: Record<ModuleFilePath, SerializedSchemaT>;
|
2156
2197
|
}, {
|
2157
2198
|
schemaSha: string;
|
2158
2199
|
schemas: Record<string, unknown>;
|
@@ -2161,7 +2202,7 @@ export declare const Api: {
|
|
2161
2202
|
status: 200;
|
2162
2203
|
json: {
|
2163
2204
|
schemaSha: string;
|
2164
|
-
schemas:
|
2205
|
+
schemas: Record<ModuleFilePath, SerializedSchemaT>;
|
2165
2206
|
};
|
2166
2207
|
}, {
|
2167
2208
|
status: 200;
|
@@ -2232,7 +2273,7 @@ export declare const Api: {
|
|
2232
2273
|
path: z.ZodOptional<z.ZodEffects<z.ZodString, ModuleFilePath, string>>;
|
2233
2274
|
}, "strip", z.ZodTypeAny, {
|
2234
2275
|
message: string;
|
2235
|
-
path?:
|
2276
|
+
path?: any;
|
2236
2277
|
}, {
|
2237
2278
|
message: string;
|
2238
2279
|
path?: string | undefined;
|
@@ -2249,7 +2290,7 @@ export declare const Api: {
|
|
2249
2290
|
message: string;
|
2250
2291
|
} | {
|
2251
2292
|
message: string;
|
2252
|
-
path?:
|
2293
|
+
path?: any;
|
2253
2294
|
}[];
|
2254
2295
|
}, {
|
2255
2296
|
message: string;
|
@@ -2268,7 +2309,7 @@ export declare const Api: {
|
|
2268
2309
|
message: string;
|
2269
2310
|
} | {
|
2270
2311
|
message: string;
|
2271
|
-
path?:
|
2312
|
+
path?: any;
|
2272
2313
|
}[];
|
2273
2314
|
};
|
2274
2315
|
}, {
|
@@ -2310,7 +2351,7 @@ export declare const Api: {
|
|
2310
2351
|
path: z.ZodOptional<z.ZodEffects<z.ZodString, ModuleFilePath, string>>;
|
2311
2352
|
}, "strip", z.ZodTypeAny, {
|
2312
2353
|
message: string;
|
2313
|
-
path?:
|
2354
|
+
path?: any;
|
2314
2355
|
}, {
|
2315
2356
|
message: string;
|
2316
2357
|
path?: string | undefined;
|
@@ -2319,7 +2360,7 @@ export declare const Api: {
|
|
2319
2360
|
message: string;
|
2320
2361
|
details: {
|
2321
2362
|
message: string;
|
2322
|
-
path?:
|
2363
|
+
path?: any;
|
2323
2364
|
}[];
|
2324
2365
|
}, {
|
2325
2366
|
message: string;
|
@@ -2334,7 +2375,7 @@ export declare const Api: {
|
|
2334
2375
|
message: string;
|
2335
2376
|
details: {
|
2336
2377
|
message: string;
|
2337
|
-
path?:
|
2378
|
+
path?: any;
|
2338
2379
|
}[];
|
2339
2380
|
};
|
2340
2381
|
}, {
|
@@ -2353,9 +2394,9 @@ export declare const Api: {
|
|
2353
2394
|
modules: z.ZodRecord<z.ZodEffects<z.ZodString, ModuleFilePath, string>, z.ZodObject<{
|
2354
2395
|
source: z.ZodAny;
|
2355
2396
|
patches: z.ZodOptional<z.ZodObject<{
|
2356
|
-
applied: z.ZodArray<z.ZodEffects<z.ZodString,
|
2357
|
-
skipped: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString,
|
2358
|
-
errors: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString,
|
2397
|
+
applied: z.ZodArray<z.ZodEffects<z.ZodString, PatchIdT, string>, "many">;
|
2398
|
+
skipped: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, PatchIdT, string>, "many">>;
|
2399
|
+
errors: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, PatchIdT, string>, z.ZodObject<{
|
2359
2400
|
message: z.ZodString;
|
2360
2401
|
}, "strip", z.ZodTypeAny, {
|
2361
2402
|
message: string;
|
@@ -2363,11 +2404,11 @@ export declare const Api: {
|
|
2363
2404
|
message: string;
|
2364
2405
|
}>>>;
|
2365
2406
|
}, "strip", z.ZodTypeAny, {
|
2366
|
-
applied:
|
2367
|
-
errors?:
|
2407
|
+
applied: PatchIdT[];
|
2408
|
+
errors?: Record<PatchIdT, {
|
2368
2409
|
message: string;
|
2369
|
-
}
|
2370
|
-
skipped?:
|
2410
|
+
}> | undefined;
|
2411
|
+
skipped?: PatchIdT[] | undefined;
|
2371
2412
|
}, {
|
2372
2413
|
applied: string[];
|
2373
2414
|
errors?: Record<string, {
|
@@ -2379,32 +2420,32 @@ export declare const Api: {
|
|
2379
2420
|
message: z.ZodString;
|
2380
2421
|
value: z.ZodOptional<z.ZodUnknown>;
|
2381
2422
|
fatal: z.ZodOptional<z.ZodBoolean>;
|
2382
|
-
fixes: z.ZodOptional<z.ZodArray<z.ZodType<
|
2423
|
+
fixes: z.ZodOptional<z.ZodArray<z.ZodType<ValidationFix, z.ZodTypeDef, ValidationFix>, "many">>;
|
2383
2424
|
}, "strip", z.ZodTypeAny, {
|
2384
2425
|
message: string;
|
2385
2426
|
value?: unknown;
|
2386
2427
|
fatal?: boolean | undefined;
|
2387
|
-
fixes?:
|
2428
|
+
fixes?: ValidationFix[] | undefined;
|
2388
2429
|
}, {
|
2389
2430
|
message: string;
|
2390
2431
|
value?: unknown;
|
2391
2432
|
fatal?: boolean | undefined;
|
2392
|
-
fixes?:
|
2433
|
+
fixes?: ValidationFix[] | undefined;
|
2393
2434
|
}>, "many">>>;
|
2394
2435
|
}, "strip", z.ZodTypeAny, {
|
2395
2436
|
patches?: {
|
2396
|
-
applied:
|
2397
|
-
errors?:
|
2437
|
+
applied: PatchIdT[];
|
2438
|
+
errors?: Record<PatchIdT, {
|
2398
2439
|
message: string;
|
2399
|
-
}
|
2400
|
-
skipped?:
|
2440
|
+
}> | undefined;
|
2441
|
+
skipped?: PatchIdT[] | undefined;
|
2401
2442
|
} | undefined;
|
2402
2443
|
source?: any;
|
2403
2444
|
validationErrors?: Record<string, {
|
2404
2445
|
message: string;
|
2405
2446
|
value?: unknown;
|
2406
2447
|
fatal?: boolean | undefined;
|
2407
|
-
fixes?:
|
2448
|
+
fixes?: ValidationFix[] | undefined;
|
2408
2449
|
}[]> | undefined;
|
2409
2450
|
}, {
|
2410
2451
|
patches?: {
|
@@ -2419,27 +2460,27 @@ export declare const Api: {
|
|
2419
2460
|
message: string;
|
2420
2461
|
value?: unknown;
|
2421
2462
|
fatal?: boolean | undefined;
|
2422
|
-
fixes?:
|
2463
|
+
fixes?: ValidationFix[] | undefined;
|
2423
2464
|
}[]> | undefined;
|
2424
2465
|
}>>;
|
2425
2466
|
}, "strip", z.ZodTypeAny, {
|
2426
2467
|
schemaSha: string;
|
2427
|
-
modules:
|
2468
|
+
modules: Record<ModuleFilePath, {
|
2428
2469
|
patches?: {
|
2429
|
-
applied:
|
2430
|
-
errors?:
|
2470
|
+
applied: PatchIdT[];
|
2471
|
+
errors?: Record<PatchIdT, {
|
2431
2472
|
message: string;
|
2432
|
-
}
|
2433
|
-
skipped?:
|
2473
|
+
}> | undefined;
|
2474
|
+
skipped?: PatchIdT[] | undefined;
|
2434
2475
|
} | undefined;
|
2435
2476
|
source?: any;
|
2436
2477
|
validationErrors?: Record<string, {
|
2437
2478
|
message: string;
|
2438
2479
|
value?: unknown;
|
2439
2480
|
fatal?: boolean | undefined;
|
2440
|
-
fixes?:
|
2481
|
+
fixes?: ValidationFix[] | undefined;
|
2441
2482
|
}[]> | undefined;
|
2442
|
-
}
|
2483
|
+
}>;
|
2443
2484
|
}, {
|
2444
2485
|
schemaSha: string;
|
2445
2486
|
modules: Record<string, {
|
@@ -2455,7 +2496,7 @@ export declare const Api: {
|
|
2455
2496
|
message: string;
|
2456
2497
|
value?: unknown;
|
2457
2498
|
fatal?: boolean | undefined;
|
2458
|
-
fixes?:
|
2499
|
+
fixes?: ValidationFix[] | undefined;
|
2459
2500
|
}[]> | undefined;
|
2460
2501
|
}>;
|
2461
2502
|
}>;
|
@@ -2463,22 +2504,22 @@ export declare const Api: {
|
|
2463
2504
|
status: 200;
|
2464
2505
|
json: {
|
2465
2506
|
schemaSha: string;
|
2466
|
-
modules:
|
2507
|
+
modules: Record<ModuleFilePath, {
|
2467
2508
|
patches?: {
|
2468
|
-
applied:
|
2469
|
-
errors?:
|
2509
|
+
applied: PatchIdT[];
|
2510
|
+
errors?: Record<PatchIdT, {
|
2470
2511
|
message: string;
|
2471
|
-
}
|
2472
|
-
skipped?:
|
2512
|
+
}> | undefined;
|
2513
|
+
skipped?: PatchIdT[] | undefined;
|
2473
2514
|
} | undefined;
|
2474
2515
|
source?: any;
|
2475
2516
|
validationErrors?: Record<string, {
|
2476
2517
|
message: string;
|
2477
2518
|
value?: unknown;
|
2478
2519
|
fatal?: boolean | undefined;
|
2479
|
-
fixes?:
|
2520
|
+
fixes?: ValidationFix[] | undefined;
|
2480
2521
|
}[]> | undefined;
|
2481
|
-
}
|
2522
|
+
}>;
|
2482
2523
|
};
|
2483
2524
|
}, {
|
2484
2525
|
status: 200;
|
@@ -2497,7 +2538,7 @@ export declare const Api: {
|
|
2497
2538
|
message: string;
|
2498
2539
|
value?: unknown;
|
2499
2540
|
fatal?: boolean | undefined;
|
2500
|
-
fixes?:
|
2541
|
+
fixes?: ValidationFix[] | undefined;
|
2501
2542
|
}[]> | undefined;
|
2502
2543
|
}>;
|
2503
2544
|
};
|
@@ -2602,7 +2643,7 @@ export declare const Api: {
|
|
2602
2643
|
GET: {
|
2603
2644
|
req: {
|
2604
2645
|
query: {
|
2605
|
-
patch_id: z.ZodArray<z.ZodEffects<z.ZodString,
|
2646
|
+
patch_id: z.ZodArray<z.ZodEffects<z.ZodString, PatchIdT, string>, "many">;
|
2606
2647
|
};
|
2607
2648
|
cookies: {
|
2608
2649
|
val_session: z.ZodOptional<z.ZodString>;
|
@@ -2649,12 +2690,12 @@ export declare const Api: {
|
|
2649
2690
|
}>, z.ZodObject<{
|
2650
2691
|
status: z.ZodLiteral<200>;
|
2651
2692
|
json: z.ZodObject<{
|
2652
|
-
patchIds: z.ZodArray<z.ZodEffects<z.ZodString,
|
2693
|
+
patchIds: z.ZodArray<z.ZodEffects<z.ZodString, PatchIdT, string>, "many">;
|
2653
2694
|
baseSha: z.ZodString;
|
2654
2695
|
commitSummary: z.ZodNullable<z.ZodString>;
|
2655
2696
|
}, "strip", z.ZodTypeAny, {
|
2656
2697
|
baseSha: string;
|
2657
|
-
patchIds:
|
2698
|
+
patchIds: PatchIdT[];
|
2658
2699
|
commitSummary: string | null;
|
2659
2700
|
}, {
|
2660
2701
|
baseSha: string;
|
@@ -2665,7 +2706,7 @@ export declare const Api: {
|
|
2665
2706
|
status: 200;
|
2666
2707
|
json: {
|
2667
2708
|
baseSha: string;
|
2668
|
-
patchIds:
|
2709
|
+
patchIds: PatchIdT[];
|
2669
2710
|
commitSummary: string | null;
|
2670
2711
|
};
|
2671
2712
|
}, {
|
@@ -2683,9 +2724,9 @@ export declare const Api: {
|
|
2683
2724
|
req: {
|
2684
2725
|
body: z.ZodObject<{
|
2685
2726
|
message: z.ZodOptional<z.ZodString>;
|
2686
|
-
patchIds: z.ZodArray<z.ZodEffects<z.ZodString,
|
2727
|
+
patchIds: z.ZodArray<z.ZodEffects<z.ZodString, PatchIdT, string>, "many">;
|
2687
2728
|
}, "strip", z.ZodTypeAny, {
|
2688
|
-
patchIds:
|
2729
|
+
patchIds: PatchIdT[];
|
2689
2730
|
message?: string | undefined;
|
2690
2731
|
}, {
|
2691
2732
|
patchIds: string[];
|
@@ -2749,7 +2790,7 @@ export declare const Api: {
|
|
2749
2790
|
};
|
2750
2791
|
}>, z.ZodObject<{
|
2751
2792
|
status: z.ZodLiteral<400>;
|
2752
|
-
json: z.ZodObject<{
|
2793
|
+
json: z.ZodUnion<[z.ZodObject<{
|
2753
2794
|
message: z.ZodString;
|
2754
2795
|
details: z.ZodUnion<[z.ZodObject<{
|
2755
2796
|
sourceFilePatchErrors: z.ZodRecord<z.ZodEffects<z.ZodString, ModuleFilePath, string>, z.ZodArray<z.ZodObject<{
|
@@ -2767,9 +2808,9 @@ export declare const Api: {
|
|
2767
2808
|
message: string;
|
2768
2809
|
}>>;
|
2769
2810
|
}, "strip", z.ZodTypeAny, {
|
2770
|
-
sourceFilePatchErrors:
|
2811
|
+
sourceFilePatchErrors: Record<ModuleFilePath, {
|
2771
2812
|
message: string;
|
2772
|
-
}[]
|
2813
|
+
}[]>;
|
2773
2814
|
binaryFilePatchErrors: Record<string, {
|
2774
2815
|
message: string;
|
2775
2816
|
}>;
|
@@ -2792,9 +2833,9 @@ export declare const Api: {
|
|
2792
2833
|
details: {
|
2793
2834
|
message: string;
|
2794
2835
|
}[] | {
|
2795
|
-
sourceFilePatchErrors:
|
2836
|
+
sourceFilePatchErrors: Record<ModuleFilePath, {
|
2796
2837
|
message: string;
|
2797
|
-
}[]
|
2838
|
+
}[]>;
|
2798
2839
|
binaryFilePatchErrors: Record<string, {
|
2799
2840
|
message: string;
|
2800
2841
|
}>;
|
@@ -2811,7 +2852,16 @@ export declare const Api: {
|
|
2811
2852
|
message: string;
|
2812
2853
|
}>;
|
2813
2854
|
};
|
2814
|
-
}
|
2855
|
+
}>, z.ZodObject<{
|
2856
|
+
message: z.ZodString;
|
2857
|
+
errorCode: z.ZodUnion<[z.ZodLiteral<"project-not-configured">, z.ZodLiteral<"pat-error">]>;
|
2858
|
+
}, "strip", z.ZodTypeAny, {
|
2859
|
+
message: string;
|
2860
|
+
errorCode: "project-not-configured" | "pat-error";
|
2861
|
+
}, {
|
2862
|
+
message: string;
|
2863
|
+
errorCode: "project-not-configured" | "pat-error";
|
2864
|
+
}>]>;
|
2815
2865
|
}, "strip", z.ZodTypeAny, {
|
2816
2866
|
status: 400;
|
2817
2867
|
json: {
|
@@ -2819,13 +2869,16 @@ export declare const Api: {
|
|
2819
2869
|
details: {
|
2820
2870
|
message: string;
|
2821
2871
|
}[] | {
|
2822
|
-
sourceFilePatchErrors:
|
2872
|
+
sourceFilePatchErrors: Record<ModuleFilePath, {
|
2823
2873
|
message: string;
|
2824
|
-
}[]
|
2874
|
+
}[]>;
|
2825
2875
|
binaryFilePatchErrors: Record<string, {
|
2826
2876
|
message: string;
|
2827
2877
|
}>;
|
2828
2878
|
};
|
2879
|
+
} | {
|
2880
|
+
message: string;
|
2881
|
+
errorCode: "project-not-configured" | "pat-error";
|
2829
2882
|
};
|
2830
2883
|
}, {
|
2831
2884
|
status: 400;
|
@@ -2841,6 +2894,9 @@ export declare const Api: {
|
|
2841
2894
|
message: string;
|
2842
2895
|
}>;
|
2843
2896
|
};
|
2897
|
+
} | {
|
2898
|
+
message: string;
|
2899
|
+
errorCode: "project-not-configured" | "pat-error";
|
2844
2900
|
};
|
2845
2901
|
}>]>;
|
2846
2902
|
};
|
@@ -2850,7 +2906,8 @@ export declare const Api: {
|
|
2850
2906
|
req: {
|
2851
2907
|
path: z.ZodString;
|
2852
2908
|
query: {
|
2853
|
-
patch_id: z.ZodOptional<z.ZodEffects<z.ZodString,
|
2909
|
+
patch_id: z.ZodOptional<z.ZodEffects<z.ZodString, PatchIdT, string>>;
|
2910
|
+
remote: z.ZodOptional<z.ZodString>;
|
2854
2911
|
};
|
2855
2912
|
};
|
2856
2913
|
res: z.ZodUnion<[z.ZodObject<{
|