@valbuild/shared 0.150.11 → 0.150.13

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,5 +1,6 @@
1
1
  import { z } from "zod";
2
- import { VAL_SESSION_COOKIE, VAL_STATE_COOKIE } from "./server/types.js";
2
+ import { type ModuleFilePath } from "@valbuild/core";
3
+ declare const ModuleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
3
4
  /**
4
5
  * Why Val Build refused a write for the project's plan, as data: the `error` of
5
6
  * its 403 (`refusalError` in valbuild/home's `billing/projectLimits.ts`).
@@ -89,7 +90,7 @@ export declare const Api: {
89
90
  redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
90
91
  };
91
92
  cookies: {
92
- [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
93
+ val_session: z.ZodOptional<z.ZodString>;
93
94
  };
94
95
  };
95
96
  res: z.ZodUnion<readonly [z.ZodObject<{
@@ -115,7 +116,7 @@ export declare const Api: {
115
116
  redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
116
117
  };
117
118
  cookies: {
118
- [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
119
+ val_session: z.ZodOptional<z.ZodString>;
119
120
  };
120
121
  };
121
122
  res: z.ZodUnion<readonly [z.ZodObject<{
@@ -156,7 +157,7 @@ export declare const Api: {
156
157
  GET: {
157
158
  req: {
158
159
  cookies: {
159
- [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
160
+ val_session: z.ZodOptional<z.ZodString>;
160
161
  };
161
162
  };
162
163
  res: z.ZodUnion<readonly [z.ZodObject<{
@@ -179,7 +180,7 @@ export declare const Api: {
179
180
  redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
180
181
  };
181
182
  cookies: {
182
- [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
183
+ val_session: z.ZodOptional<z.ZodString>;
183
184
  };
184
185
  };
185
186
  res: z.ZodUnion<readonly [z.ZodObject<{
@@ -191,13 +192,14 @@ export declare const Api: {
191
192
  status: z.ZodLiteral<302>;
192
193
  redirectTo: z.ZodString;
193
194
  cookies: z.ZodObject<{
194
- [x: number]: z.ZodObject<{
195
+ val_enable: z.ZodObject<{
195
196
  value: z.ZodLiteral<"true">;
196
197
  options: z.ZodObject<{
197
198
  httpOnly: z.ZodLiteral<false>;
198
199
  sameSite: z.ZodLiteral<"lax">;
199
200
  }, z.core.$strip>;
200
- }, z.core.$strip> | z.ZodObject<{
201
+ }, z.core.$strip>;
202
+ val_state: z.ZodObject<{
201
203
  value: z.ZodString;
202
204
  options: z.ZodObject<{
203
205
  httpOnly: z.ZodLiteral<true>;
@@ -210,7 +212,7 @@ export declare const Api: {
210
212
  status: z.ZodLiteral<302>;
211
213
  redirectTo: z.ZodString;
212
214
  cookies: z.ZodObject<{
213
- [x: number]: z.ZodObject<{
215
+ val_enable: z.ZodObject<{
214
216
  value: z.ZodLiteral<"true">;
215
217
  options: z.ZodObject<{
216
218
  httpOnly: z.ZodLiteral<false>;
@@ -233,7 +235,7 @@ export declare const Api: {
233
235
  redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
234
236
  };
235
237
  cookies: {
236
- [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
238
+ val_session: z.ZodOptional<z.ZodString>;
237
239
  };
238
240
  };
239
241
  res: z.ZodUnion<readonly [z.ZodObject<{
@@ -245,7 +247,7 @@ export declare const Api: {
245
247
  status: z.ZodLiteral<302>;
246
248
  redirectTo: z.ZodString;
247
249
  cookies: z.ZodObject<{
248
- [x: number]: z.ZodObject<{
250
+ val_enable: z.ZodObject<{
249
251
  value: z.ZodLiteral<"false">;
250
252
  }, z.core.$strip>;
251
253
  }, z.core.$strip>;
@@ -268,13 +270,14 @@ export declare const Api: {
268
270
  status: z.ZodLiteral<302>;
269
271
  redirectTo: z.ZodString;
270
272
  cookies: z.ZodObject<{
271
- [x: number]: z.ZodObject<{
273
+ val_enable: z.ZodObject<{
272
274
  value: z.ZodLiteral<"true">;
273
275
  options: z.ZodObject<{
274
276
  httpOnly: z.ZodLiteral<false>;
275
277
  sameSite: z.ZodLiteral<"lax">;
276
278
  }, z.core.$strip>;
277
- }, z.core.$strip> | z.ZodObject<{
279
+ }, z.core.$strip>;
280
+ val_state: z.ZodObject<{
278
281
  value: z.ZodString;
279
282
  options: z.ZodObject<{
280
283
  httpOnly: z.ZodLiteral<true>;
@@ -299,22 +302,24 @@ export declare const Api: {
299
302
  state: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
300
303
  };
301
304
  cookies: {
302
- [VAL_STATE_COOKIE]: z.ZodString;
305
+ val_state: z.ZodString;
303
306
  };
304
307
  };
305
308
  res: z.ZodObject<{
306
309
  status: z.ZodLiteral<302>;
307
310
  redirectTo: z.ZodString;
308
311
  cookies: z.ZodObject<{
309
- [x: number]: z.ZodObject<{
312
+ val_state: z.ZodObject<{
310
313
  value: z.ZodLiteral<null>;
311
- }, z.core.$strip> | z.ZodOptional<z.ZodObject<{
314
+ }, z.core.$strip>;
315
+ val_enable: z.ZodOptional<z.ZodObject<{
312
316
  value: z.ZodLiteral<"true">;
313
317
  options: z.ZodObject<{
314
318
  httpOnly: z.ZodLiteral<false>;
315
319
  sameSite: z.ZodLiteral<"lax">;
316
320
  }, z.core.$strip>;
317
- }, z.core.$strip>> | z.ZodOptional<z.ZodObject<{
321
+ }, z.core.$strip>>;
322
+ val_session: z.ZodOptional<z.ZodObject<{
318
323
  value: z.ZodString;
319
324
  options: z.ZodOptional<z.ZodObject<{
320
325
  httpOnly: z.ZodLiteral<true>;
@@ -338,7 +343,17 @@ export declare const Api: {
338
343
  res: z.ZodUnion<readonly [z.ZodObject<{
339
344
  status: z.ZodLiteral<200>;
340
345
  cookies: z.ZodObject<{
341
- [x: number]: z.ZodOptional<z.ZodObject<{
346
+ val_session: z.ZodOptional<z.ZodObject<{
347
+ value: z.ZodString;
348
+ options: z.ZodOptional<z.ZodObject<{
349
+ httpOnly: z.ZodLiteral<true>;
350
+ sameSite: z.ZodLiteral<"strict">;
351
+ path: z.ZodString;
352
+ secure: z.ZodLiteral<true>;
353
+ expires: z.ZodCustom<Date, Date>;
354
+ }, z.core.$strip>>;
355
+ }, z.core.$strip>>;
356
+ val_state: z.ZodOptional<z.ZodObject<{
342
357
  value: z.ZodString;
343
358
  options: z.ZodOptional<z.ZodObject<{
344
359
  httpOnly: z.ZodLiteral<true>;
@@ -353,7 +368,17 @@ export declare const Api: {
353
368
  status: z.ZodLiteral<302>;
354
369
  redirectTo: z.ZodString;
355
370
  cookies: z.ZodObject<{
356
- [x: number]: z.ZodOptional<z.ZodObject<{
371
+ val_session: z.ZodOptional<z.ZodObject<{
372
+ value: z.ZodString;
373
+ options: z.ZodOptional<z.ZodObject<{
374
+ httpOnly: z.ZodLiteral<true>;
375
+ sameSite: z.ZodLiteral<"strict">;
376
+ path: z.ZodString;
377
+ secure: z.ZodLiteral<true>;
378
+ expires: z.ZodCustom<Date, Date>;
379
+ }, z.core.$strip>>;
380
+ }, z.core.$strip>>;
381
+ val_state: z.ZodOptional<z.ZodObject<{
357
382
  value: z.ZodString;
358
383
  options: z.ZodOptional<z.ZodObject<{
359
384
  httpOnly: z.ZodLiteral<true>;
@@ -404,6 +429,40 @@ export declare const Api: {
404
429
  }, z.core.$strip>]>;
405
430
  };
406
431
  };
432
+ /**
433
+ * The versions of Val's packages the server runs, for the list at the foot
434
+ * of the Studio's account panel.
435
+ */
436
+ "/versions": {
437
+ GET: {
438
+ req: {
439
+ cookies: {
440
+ val_session: z.ZodOptional<z.ZodString>;
441
+ };
442
+ };
443
+ res: z.ZodUnion<readonly [z.ZodObject<{
444
+ status: z.ZodLiteral<200>;
445
+ json: z.ZodObject<{
446
+ framework: z.ZodNullable<z.ZodObject<{
447
+ name: z.ZodUnion<readonly [z.ZodLiteral<"next">, z.ZodLiteral<"tanstack">]>;
448
+ version: z.ZodString;
449
+ }, z.core.$strip>>;
450
+ core: z.ZodString;
451
+ server: z.ZodString;
452
+ }, z.core.$strip>;
453
+ }, z.core.$strip>, z.ZodObject<{
454
+ status: z.ZodLiteral<401>;
455
+ json: z.ZodObject<{
456
+ message: z.ZodString;
457
+ }, z.core.$strip>;
458
+ }, z.core.$strip>, z.ZodObject<{
459
+ status: z.ZodLiteral<404>;
460
+ json: z.ZodObject<{
461
+ message: z.ZodString;
462
+ }, z.core.$strip>;
463
+ }, z.core.$strip>]>;
464
+ };
465
+ };
407
466
  "/stat": {
408
467
  POST: {
409
468
  req: {
@@ -440,13 +499,13 @@ export declare const Api: {
440
499
  baseSha: z.ZodString;
441
500
  schemaSha: z.ZodString;
442
501
  sourcesSha: z.ZodString;
443
- patches: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
444
- appliedPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
445
- publishingPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
446
- heldBackPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
502
+ patches: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
503
+ appliedPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
504
+ publishingPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
505
+ heldBackPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
447
506
  headCommitSha: z.ZodOptional<z.ZodString>;
448
507
  removed: z.ZodOptional<z.ZodArray<z.ZodObject<{
449
- patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
508
+ patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
450
509
  reason: z.ZodString;
451
510
  }, z.core.$strip>>>;
452
511
  config: z.ZodObject<{
@@ -480,12 +539,12 @@ export declare const Api: {
480
539
  schemaSha: z.ZodString;
481
540
  sourcesSha: z.ZodString;
482
541
  commitSha: z.ZodOptional<z.ZodString>;
483
- patches: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
484
- appliedPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
485
- publishingPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
486
- heldBackPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
542
+ patches: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
543
+ appliedPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
544
+ publishingPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
545
+ heldBackPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
487
546
  headCommitSha: z.ZodOptional<z.ZodString>;
488
- headPatchId: z.ZodOptional<z.ZodNullable<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
547
+ headPatchId: z.ZodOptional<z.ZodNullable<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
489
548
  headVersion: z.ZodOptional<z.ZodNumber>;
490
549
  commits: z.ZodArray<z.ZodObject<{
491
550
  commitSha: z.ZodString;
@@ -651,7 +710,7 @@ export declare const Api: {
651
710
  headBaseSha: z.ZodString;
652
711
  }, z.core.$strip>, z.ZodObject<{
653
712
  type: z.ZodLiteral<"patch">;
654
- patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
713
+ patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
655
714
  }, z.core.$strip>]>;
656
715
  filePath: z.ZodString;
657
716
  data: z.ZodAny;
@@ -669,7 +728,7 @@ export declare const Api: {
669
728
  status: z.ZodLiteral<200>;
670
729
  json: z.ZodObject<{
671
730
  filePath: z.ZodString;
672
- patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
731
+ patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
673
732
  }, z.core.$strip>;
674
733
  }, z.core.$strip>]>;
675
734
  };
@@ -760,7 +819,7 @@ export declare const Api: {
760
819
  DELETE: {
761
820
  req: {
762
821
  query: {
763
- id: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
822
+ id: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
764
823
  };
765
824
  body: z.ZodOptional<z.ZodObject<{
766
825
  reportHeadVersion: z.ZodOptional<z.ZodLiteral<true>>;
@@ -779,7 +838,7 @@ export declare const Api: {
779
838
  json: z.ZodObject<{
780
839
  message: z.ZodString;
781
840
  errors: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
782
- patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
841
+ patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
783
842
  message: z.ZodString;
784
843
  publishJobId: z.ZodOptional<z.ZodString>;
785
844
  }, z.core.$strip>, z.ZodObject<{
@@ -789,8 +848,8 @@ export declare const Api: {
789
848
  }, z.core.$strip>;
790
849
  }, z.core.$strip>, z.ZodObject<{
791
850
  status: z.ZodLiteral<200>;
792
- json: z.ZodUnion<readonly [z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>, z.ZodObject<{
793
- deleted: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
851
+ json: z.ZodUnion<readonly [z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>, z.ZodObject<{
852
+ deleted: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
794
853
  headVersion: z.ZodOptional<z.ZodNumber>;
795
854
  }, z.core.$strip>]>;
796
855
  }, z.core.$strip>]>;
@@ -803,12 +862,12 @@ export declare const Api: {
803
862
  headBaseSha: z.ZodString;
804
863
  }, z.core.$strip>, z.ZodObject<{
805
864
  type: z.ZodLiteral<"patch">;
806
- patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
865
+ patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
807
866
  }, z.core.$strip>]>;
808
867
  sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
809
868
  patches: z.ZodArray<z.ZodObject<{
810
869
  path: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
811
- patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
870
+ patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
812
871
  patch: z.ZodAny;
813
872
  }, z.core.$strip>>;
814
873
  }, z.core.$strip>;
@@ -849,26 +908,26 @@ export declare const Api: {
849
908
  until: z.ZodOptional<z.ZodString>;
850
909
  billingUrl: z.ZodOptional<z.ZodString>;
851
910
  }, z.core.$strip>;
852
- newPatchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
911
+ newPatchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
853
912
  parentRef: z.ZodUnion<readonly [z.ZodObject<{
854
913
  type: z.ZodLiteral<"head">;
855
914
  headBaseSha: z.ZodString;
856
915
  }, z.core.$strip>, z.ZodObject<{
857
916
  type: z.ZodLiteral<"patch">;
858
- patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
917
+ patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
859
918
  }, z.core.$strip>]>;
860
919
  headVersion: z.ZodOptional<z.ZodNumber>;
861
920
  }, z.core.$strip>;
862
921
  }, z.core.$strip>, z.ZodObject<{
863
922
  status: z.ZodLiteral<200>;
864
923
  json: z.ZodObject<{
865
- newPatchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
924
+ newPatchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
866
925
  parentRef: z.ZodUnion<readonly [z.ZodObject<{
867
926
  type: z.ZodLiteral<"head">;
868
927
  headBaseSha: z.ZodString;
869
928
  }, z.core.$strip>, z.ZodObject<{
870
929
  type: z.ZodLiteral<"patch">;
871
- patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
930
+ patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
872
931
  }, z.core.$strip>]>;
873
932
  headVersion: z.ZodOptional<z.ZodNumber>;
874
933
  }, z.core.$strip>;
@@ -877,7 +936,7 @@ export declare const Api: {
877
936
  GET: {
878
937
  req: {
879
938
  query: {
880
- patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
939
+ patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
881
940
  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">>>;
882
941
  };
883
942
  cookies: {
@@ -894,7 +953,7 @@ export declare const Api: {
894
953
  json: z.ZodObject<{
895
954
  message: z.ZodString;
896
955
  patchErrors: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
897
- patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
956
+ patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
898
957
  message: z.ZodString;
899
958
  publishJobId: z.ZodOptional<z.ZodString>;
900
959
  }, z.core.$strip>, z.ZodObject<{
@@ -918,14 +977,14 @@ export declare const Api: {
918
977
  patch: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
919
978
  op: z.ZodLiteral<"add">;
920
979
  path: z.ZodArray<z.ZodString>;
921
- value: z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>;
980
+ value: z.ZodType<import("@valbuild/core/patch").JSONValue, unknown, z.core.$ZodTypeInternals<import("@valbuild/core/patch").JSONValue, unknown>>;
922
981
  }, z.core.$strict>, z.ZodObject<{
923
982
  op: z.ZodLiteral<"remove">;
924
983
  path: z.ZodTuple<[z.ZodString], z.ZodString>;
925
984
  }, z.core.$strict>, z.ZodObject<{
926
985
  op: z.ZodLiteral<"replace">;
927
986
  path: z.ZodArray<z.ZodString>;
928
- value: z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>;
987
+ value: z.ZodType<import("@valbuild/core/patch").JSONValue, unknown, z.core.$ZodTypeInternals<import("@valbuild/core/patch").JSONValue, unknown>>;
929
988
  }, z.core.$strict>, z.ZodObject<{
930
989
  op: z.ZodLiteral<"move">;
931
990
  from: z.ZodTuple<[z.ZodString], z.ZodString>;
@@ -937,17 +996,17 @@ export declare const Api: {
937
996
  }, z.core.$strict>, z.ZodObject<{
938
997
  op: z.ZodLiteral<"test">;
939
998
  path: z.ZodArray<z.ZodString>;
940
- value: z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>;
999
+ value: z.ZodType<import("@valbuild/core/patch").JSONValue, unknown, z.core.$ZodTypeInternals<import("@valbuild/core/patch").JSONValue, unknown>>;
941
1000
  }, z.core.$strict>, z.ZodObject<{
942
1001
  op: z.ZodLiteral<"file">;
943
1002
  path: z.ZodArray<z.ZodString>;
944
1003
  filePath: z.ZodString;
945
- value: z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>;
1004
+ value: z.ZodType<import("@valbuild/core/patch").JSONValue, unknown, z.core.$ZodTypeInternals<import("@valbuild/core/patch").JSONValue, unknown>>;
946
1005
  remote: z.ZodBoolean;
947
1006
  nestedFilePath: z.ZodOptional<z.ZodArray<z.ZodString>>;
948
- metadata: z.ZodOptional<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
1007
+ metadata: z.ZodOptional<z.ZodType<import("@valbuild/core/patch").JSONValue, unknown, z.core.$ZodTypeInternals<import("@valbuild/core/patch").JSONValue, unknown>>>;
949
1008
  }, z.core.$strict>], "op">>>;
950
- patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
1009
+ patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
951
1010
  createdAt: z.ZodString;
952
1011
  authorId: z.ZodNullable<z.ZodString>;
953
1012
  appliedAt: z.ZodNullable<z.ZodObject<{
@@ -958,7 +1017,7 @@ export declare const Api: {
958
1017
  error: z.ZodOptional<z.ZodObject<{
959
1018
  message: z.ZodString;
960
1019
  }, z.core.$strip>>;
961
- errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>, z.ZodObject<{
1020
+ errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>, z.ZodObject<{
962
1021
  message: z.ZodString;
963
1022
  }, z.core.$strip>>>;
964
1023
  }, z.core.$strip>;
@@ -998,7 +1057,7 @@ export declare const Api: {
998
1057
  status: z.ZodLiteral<200>;
999
1058
  json: z.ZodObject<{
1000
1059
  schemaSha: z.ZodString;
1001
- schemas: z.ZodRecord<z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>, z.ZodType<SerializedSchemaT, unknown, z.core.$ZodTypeInternals<SerializedSchemaT, unknown>>>;
1060
+ 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>>>;
1002
1061
  }, z.core.$strip>;
1003
1062
  }, z.core.$strip>]>;
1004
1063
  };
@@ -1062,9 +1121,9 @@ export declare const Api: {
1062
1121
  source: z.ZodOptional<z.ZodAny>;
1063
1122
  baseSource: z.ZodOptional<z.ZodAny>;
1064
1123
  patches: z.ZodOptional<z.ZodObject<{
1065
- applied: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
1066
- skipped: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
1067
- errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>, z.ZodObject<{
1124
+ applied: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
1125
+ skipped: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
1126
+ errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>, z.ZodObject<{
1068
1127
  message: z.ZodString;
1069
1128
  }, z.core.$strip>>>;
1070
1129
  }, z.core.$strip>>;
@@ -1072,7 +1131,7 @@ export declare const Api: {
1072
1131
  message: z.ZodString;
1073
1132
  value: z.ZodOptional<z.ZodUnknown>;
1074
1133
  fatal: z.ZodOptional<z.ZodBoolean>;
1075
- fixes: z.ZodOptional<z.ZodArray<z.ZodType<ValidationFix, unknown, z.core.$ZodTypeInternals<ValidationFix, unknown>>>>;
1134
+ fixes: z.ZodOptional<z.ZodArray<z.ZodType<"image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "images:check-remote" | "images:upload-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "files:check-remote" | "files:upload-remote" | "video:add-metadata" | "video:upload-remote" | "video:download-remote" | "videos:add-metadata" | "videos:check-remote" | "videos:upload-remote" | "keyof:check-keys" | "image:check-gallery" | "file:check-gallery" | "video:check-gallery" | "router:check-route" | "locale:check-locale" | "router:check-locale-param" | "images:check-unique-folder" | "files:check-unique-folder" | "images:check-all-files" | "files:check-all-files" | "videos:check-unique-folder" | "videos:check-all-files" | "jsonValues:extract-entry" | "record:fill-keys" | "external:upload" | "view:check-module" | "remote:rewrite-host", unknown, z.core.$ZodTypeInternals<"image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "images:check-remote" | "images:upload-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "files:check-remote" | "files:upload-remote" | "video:add-metadata" | "video:upload-remote" | "video:download-remote" | "videos:add-metadata" | "videos:check-remote" | "videos:upload-remote" | "keyof:check-keys" | "image:check-gallery" | "file:check-gallery" | "video:check-gallery" | "router:check-route" | "locale:check-locale" | "router:check-locale-param" | "images:check-unique-folder" | "files:check-unique-folder" | "images:check-all-files" | "files:check-all-files" | "videos:check-unique-folder" | "videos:check-all-files" | "jsonValues:extract-entry" | "record:fill-keys" | "external:upload" | "view:check-module" | "remote:rewrite-host", unknown>>>>;
1076
1135
  }, z.core.$strip>>>>;
1077
1136
  }, z.core.$strip>>;
1078
1137
  }, z.core.$strip>;
@@ -1089,7 +1148,7 @@ export declare const Api: {
1089
1148
  req: {
1090
1149
  body: z.ZodObject<{
1091
1150
  moduleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
1092
- patchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
1151
+ patchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
1093
1152
  }, z.core.$strip>;
1094
1153
  cookies: {
1095
1154
  val_session: z.ZodOptional<z.ZodString>;
@@ -1123,14 +1182,14 @@ export declare const Api: {
1123
1182
  message: z.ZodString;
1124
1183
  value: z.ZodOptional<z.ZodUnknown>;
1125
1184
  fatal: z.ZodOptional<z.ZodBoolean>;
1126
- fixes: z.ZodOptional<z.ZodArray<z.ZodType<ValidationFix, unknown, z.core.$ZodTypeInternals<ValidationFix, unknown>>>>;
1185
+ fixes: z.ZodOptional<z.ZodArray<z.ZodType<"image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "images:check-remote" | "images:upload-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "files:check-remote" | "files:upload-remote" | "video:add-metadata" | "video:upload-remote" | "video:download-remote" | "videos:add-metadata" | "videos:check-remote" | "videos:upload-remote" | "keyof:check-keys" | "image:check-gallery" | "file:check-gallery" | "video:check-gallery" | "router:check-route" | "locale:check-locale" | "router:check-locale-param" | "images:check-unique-folder" | "files:check-unique-folder" | "images:check-all-files" | "files:check-all-files" | "videos:check-unique-folder" | "videos:check-all-files" | "jsonValues:extract-entry" | "record:fill-keys" | "external:upload" | "view:check-module" | "remote:rewrite-host", unknown, z.core.$ZodTypeInternals<"image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "images:check-remote" | "images:upload-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "files:check-remote" | "files:upload-remote" | "video:add-metadata" | "video:upload-remote" | "video:download-remote" | "videos:add-metadata" | "videos:check-remote" | "videos:upload-remote" | "keyof:check-keys" | "image:check-gallery" | "file:check-gallery" | "video:check-gallery" | "router:check-route" | "locale:check-locale" | "router:check-locale-param" | "images:check-unique-folder" | "files:check-unique-folder" | "images:check-all-files" | "files:check-all-files" | "videos:check-unique-folder" | "videos:check-all-files" | "jsonValues:extract-entry" | "record:fill-keys" | "external:upload" | "view:check-module" | "remote:rewrite-host", unknown>>>>;
1127
1186
  }, z.core.$strip>>>;
1128
1187
  invalidSource: z.ZodOptional<z.ZodString>;
1129
1188
  remoteHosts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1130
1189
  host: z.ZodString;
1131
1190
  status: z.ZodUnion<readonly [z.ZodLiteral<"missing">, z.ZodLiteral<"unreachable">]>;
1132
1191
  details: z.ZodString;
1133
- sourcePaths: z.ZodArray<z.ZodType<SourcePathT, unknown, z.core.$ZodTypeInternals<SourcePathT, unknown>>>;
1192
+ sourcePaths: z.ZodArray<z.ZodType<import("@valbuild/core").SourcePath, unknown, z.core.$ZodTypeInternals<import("@valbuild/core").SourcePath, unknown>>>;
1134
1193
  }, z.core.$strip>>>;
1135
1194
  }, z.core.$strip>;
1136
1195
  }, z.core.$strip>]>;
@@ -1147,9 +1206,9 @@ export declare const Api: {
1147
1206
  req: {
1148
1207
  body: z.ZodObject<{
1149
1208
  moduleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
1150
- sourcePath: z.ZodType<SourcePathT, unknown, z.core.$ZodTypeInternals<SourcePathT, unknown>>;
1151
- fix: z.ZodType<ValidationFix, unknown, z.core.$ZodTypeInternals<ValidationFix, unknown>>;
1152
- patchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
1209
+ sourcePath: z.ZodType<import("@valbuild/core").SourcePath, unknown, z.core.$ZodTypeInternals<import("@valbuild/core").SourcePath, unknown>>;
1210
+ fix: z.ZodType<"image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "images:check-remote" | "images:upload-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "files:check-remote" | "files:upload-remote" | "video:add-metadata" | "video:upload-remote" | "video:download-remote" | "videos:add-metadata" | "videos:check-remote" | "videos:upload-remote" | "keyof:check-keys" | "image:check-gallery" | "file:check-gallery" | "video:check-gallery" | "router:check-route" | "locale:check-locale" | "router:check-locale-param" | "images:check-unique-folder" | "files:check-unique-folder" | "images:check-all-files" | "files:check-all-files" | "videos:check-unique-folder" | "videos:check-all-files" | "jsonValues:extract-entry" | "record:fill-keys" | "external:upload" | "view:check-module" | "remote:rewrite-host", unknown, z.core.$ZodTypeInternals<"image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "images:check-remote" | "images:upload-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "files:check-remote" | "files:upload-remote" | "video:add-metadata" | "video:upload-remote" | "video:download-remote" | "videos:add-metadata" | "videos:check-remote" | "videos:upload-remote" | "keyof:check-keys" | "image:check-gallery" | "file:check-gallery" | "video:check-gallery" | "router:check-route" | "locale:check-locale" | "router:check-locale-param" | "images:check-unique-folder" | "files:check-unique-folder" | "images:check-all-files" | "files:check-all-files" | "videos:check-unique-folder" | "videos:check-all-files" | "jsonValues:extract-entry" | "record:fill-keys" | "external:upload" | "view:check-module" | "remote:rewrite-host", unknown>>;
1211
+ patchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
1153
1212
  }, z.core.$strip>;
1154
1213
  cookies: {
1155
1214
  val_session: z.ZodOptional<z.ZodString>;
@@ -1186,14 +1245,14 @@ export declare const Api: {
1186
1245
  patch: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1187
1246
  op: z.ZodLiteral<"add">;
1188
1247
  path: z.ZodArray<z.ZodString>;
1189
- value: z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>;
1248
+ value: z.ZodType<import("@valbuild/core/patch").JSONValue, unknown, z.core.$ZodTypeInternals<import("@valbuild/core/patch").JSONValue, unknown>>;
1190
1249
  }, z.core.$strict>, z.ZodObject<{
1191
1250
  op: z.ZodLiteral<"remove">;
1192
1251
  path: z.ZodTuple<[z.ZodString], z.ZodString>;
1193
1252
  }, z.core.$strict>, z.ZodObject<{
1194
1253
  op: z.ZodLiteral<"replace">;
1195
1254
  path: z.ZodArray<z.ZodString>;
1196
- value: z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>;
1255
+ value: z.ZodType<import("@valbuild/core/patch").JSONValue, unknown, z.core.$ZodTypeInternals<import("@valbuild/core/patch").JSONValue, unknown>>;
1197
1256
  }, z.core.$strict>, z.ZodObject<{
1198
1257
  op: z.ZodLiteral<"move">;
1199
1258
  from: z.ZodTuple<[z.ZodString], z.ZodString>;
@@ -1205,21 +1264,21 @@ export declare const Api: {
1205
1264
  }, z.core.$strict>, z.ZodObject<{
1206
1265
  op: z.ZodLiteral<"test">;
1207
1266
  path: z.ZodArray<z.ZodString>;
1208
- value: z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>;
1267
+ value: z.ZodType<import("@valbuild/core/patch").JSONValue, unknown, z.core.$ZodTypeInternals<import("@valbuild/core/patch").JSONValue, unknown>>;
1209
1268
  }, z.core.$strict>, z.ZodObject<{
1210
1269
  op: z.ZodLiteral<"file">;
1211
1270
  path: z.ZodArray<z.ZodString>;
1212
1271
  filePath: z.ZodString;
1213
- value: z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>;
1272
+ value: z.ZodType<import("@valbuild/core/patch").JSONValue, unknown, z.core.$ZodTypeInternals<import("@valbuild/core/patch").JSONValue, unknown>>;
1214
1273
  remote: z.ZodBoolean;
1215
1274
  nestedFilePath: z.ZodOptional<z.ZodArray<z.ZodString>>;
1216
- metadata: z.ZodOptional<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
1275
+ metadata: z.ZodOptional<z.ZodType<import("@valbuild/core/patch").JSONValue, unknown, z.core.$ZodTypeInternals<import("@valbuild/core/patch").JSONValue, unknown>>>;
1217
1276
  }, z.core.$strict>], "op">>;
1218
1277
  remainingErrors: z.ZodArray<z.ZodObject<{
1219
1278
  message: z.ZodString;
1220
1279
  value: z.ZodOptional<z.ZodUnknown>;
1221
1280
  fatal: z.ZodOptional<z.ZodBoolean>;
1222
- fixes: z.ZodOptional<z.ZodArray<z.ZodType<ValidationFix, unknown, z.core.$ZodTypeInternals<ValidationFix, unknown>>>>;
1281
+ fixes: z.ZodOptional<z.ZodArray<z.ZodType<"image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "images:check-remote" | "images:upload-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "files:check-remote" | "files:upload-remote" | "video:add-metadata" | "video:upload-remote" | "video:download-remote" | "videos:add-metadata" | "videos:check-remote" | "videos:upload-remote" | "keyof:check-keys" | "image:check-gallery" | "file:check-gallery" | "video:check-gallery" | "router:check-route" | "locale:check-locale" | "router:check-locale-param" | "images:check-unique-folder" | "files:check-unique-folder" | "images:check-all-files" | "files:check-all-files" | "videos:check-unique-folder" | "videos:check-all-files" | "jsonValues:extract-entry" | "record:fill-keys" | "external:upload" | "view:check-module" | "remote:rewrite-host", unknown, z.core.$ZodTypeInternals<"image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "images:check-remote" | "images:upload-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "files:check-remote" | "files:upload-remote" | "video:add-metadata" | "video:upload-remote" | "video:download-remote" | "videos:add-metadata" | "videos:check-remote" | "videos:upload-remote" | "keyof:check-keys" | "image:check-gallery" | "file:check-gallery" | "video:check-gallery" | "router:check-route" | "locale:check-locale" | "router:check-locale-param" | "images:check-unique-folder" | "files:check-unique-folder" | "images:check-all-files" | "files:check-all-files" | "videos:check-unique-folder" | "videos:check-all-files" | "jsonValues:extract-entry" | "record:fill-keys" | "external:upload" | "view:check-module" | "remote:rewrite-host", unknown>>>>;
1223
1282
  sourcePath: z.ZodOptional<z.ZodString>;
1224
1283
  }, z.core.$strip>>;
1225
1284
  }, z.core.$strip>;
@@ -1232,7 +1291,7 @@ export declare const Api: {
1232
1291
  body: z.ZodObject<{
1233
1292
  jobId: z.ZodString;
1234
1293
  tab: z.ZodString;
1235
- patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
1294
+ patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
1236
1295
  }, z.core.$strip>;
1237
1296
  cookies: {
1238
1297
  val_session: z.ZodOptional<z.ZodString>;
@@ -1363,7 +1422,7 @@ export declare const Api: {
1363
1422
  POST: {
1364
1423
  req: {
1365
1424
  body: z.ZodObject<{
1366
- patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
1425
+ patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
1367
1426
  displayName: z.ZodString;
1368
1427
  requestId: z.ZodString;
1369
1428
  }, z.core.$strip>;
@@ -1411,7 +1470,7 @@ export declare const Api: {
1411
1470
  req: {
1412
1471
  body: z.ZodObject<{
1413
1472
  message: z.ZodOptional<z.ZodString>;
1414
- patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
1473
+ patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
1415
1474
  expectedHeadCommitSha: z.ZodOptional<z.ZodString>;
1416
1475
  }, z.core.$strip>;
1417
1476
  cookies: {
@@ -1432,7 +1491,7 @@ export declare const Api: {
1432
1491
  branch: z.ZodOptional<z.ZodString>;
1433
1492
  binaryFilesUnread: z.ZodOptional<z.ZodArray<z.ZodString>>;
1434
1493
  removed: z.ZodOptional<z.ZodArray<z.ZodObject<{
1435
- patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
1494
+ patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
1436
1495
  moduleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
1437
1496
  message: z.ZodString;
1438
1497
  }, z.core.$strip>>>;
@@ -1471,7 +1530,7 @@ export declare const Api: {
1471
1530
  binaryFilePatchErrors: z.ZodRecord<z.ZodString, z.ZodObject<{
1472
1531
  message: z.ZodString;
1473
1532
  }, z.core.$strip>>;
1474
- unappliablePatches: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>, z.ZodObject<{
1533
+ unappliablePatches: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>, z.ZodObject<{
1475
1534
  moduleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
1476
1535
  message: z.ZodString;
1477
1536
  }, z.core.$strip>>>;
@@ -1597,9 +1656,9 @@ export declare const Api: {
1597
1656
  hasArchive: z.ZodBoolean;
1598
1657
  }, z.core.$strip>;
1599
1658
  modules: z.ZodRecord<z.ZodString, z.ZodObject<{
1600
- source: z.ZodNullable<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
1601
- schema: z.ZodNullable<z.ZodType<SerializedSchemaT, unknown, z.core.$ZodTypeInternals<SerializedSchemaT, unknown>>>;
1602
- patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
1659
+ source: z.ZodNullable<z.ZodType<import("@valbuild/core/patch").JSONValue, unknown, z.core.$ZodTypeInternals<import("@valbuild/core/patch").JSONValue, unknown>>>;
1660
+ schema: z.ZodNullable<z.ZodType<import("@valbuild/core").SerializedSchema, unknown, z.core.$ZodTypeInternals<import("@valbuild/core").SerializedSchema, unknown>>>;
1661
+ patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
1603
1662
  changedPaths: z.ZodArray<z.ZodString>;
1604
1663
  failures: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1605
1664
  kind: z.ZodLiteral<"commit-not-found">;
@@ -1627,7 +1686,7 @@ export declare const Api: {
1627
1686
  }, z.core.$strip>], "kind">>;
1628
1687
  }, z.core.$strip>>;
1629
1688
  patches: z.ZodArray<z.ZodObject<{
1630
- patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
1689
+ patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
1631
1690
  moduleFilePath: z.ZodString;
1632
1691
  patch: z.ZodUnknown;
1633
1692
  authorId: z.ZodNullable<z.ZodString>;
@@ -1717,9 +1776,9 @@ export declare const Api: {
1717
1776
  json: z.ZodObject<{
1718
1777
  moduleFilePath: z.ZodString;
1719
1778
  module: z.ZodNullable<z.ZodObject<{
1720
- source: z.ZodNullable<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
1721
- schema: z.ZodNullable<z.ZodType<SerializedSchemaT, unknown, z.core.$ZodTypeInternals<SerializedSchemaT, unknown>>>;
1722
- patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
1779
+ source: z.ZodNullable<z.ZodType<import("@valbuild/core/patch").JSONValue, unknown, z.core.$ZodTypeInternals<import("@valbuild/core/patch").JSONValue, unknown>>>;
1780
+ schema: z.ZodNullable<z.ZodType<import("@valbuild/core").SerializedSchema, unknown, z.core.$ZodTypeInternals<import("@valbuild/core").SerializedSchema, unknown>>>;
1781
+ patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
1723
1782
  changedPaths: z.ZodArray<z.ZodString>;
1724
1783
  failures: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1725
1784
  kind: z.ZodLiteral<"commit-not-found">;
@@ -1870,7 +1929,11 @@ export declare const Api: {
1870
1929
  req: {
1871
1930
  path: z.ZodString;
1872
1931
  query: {
1873
- patch_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>, z.ZodTransform<any, any[]>>>;
1932
+ 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 & {
1933
+ VAL_DATA_TYPE: "PatchId";
1934
+ }, (string & {
1935
+ VAL_DATA_TYPE: "PatchId";
1936
+ })[]>>>;
1874
1937
  remote: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
1875
1938
  };
1876
1939
  headers: {
@@ -1913,7 +1976,7 @@ export declare const Api: {
1913
1976
  apply_patches: 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">>>;
1914
1977
  };
1915
1978
  cookies: {
1916
- [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
1979
+ val_session: z.ZodOptional<z.ZodString>;
1917
1980
  };
1918
1981
  };
1919
1982
  res: z.ZodUnion<readonly [z.ZodObject<{
@@ -1967,7 +2030,7 @@ export declare const Api: {
1967
2030
  POST: {
1968
2031
  req: {
1969
2032
  cookies: {
1970
- [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
2033
+ val_session: z.ZodOptional<z.ZodString>;
1971
2034
  };
1972
2035
  };
1973
2036
  res: z.ZodUnion<readonly [z.ZodObject<{
@@ -2011,7 +2074,7 @@ export declare const Api: {
2011
2074
  proposal: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
2012
2075
  };
2013
2076
  cookies: {
2014
- [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
2077
+ val_session: z.ZodOptional<z.ZodString>;
2015
2078
  };
2016
2079
  };
2017
2080
  res: z.ZodUnion<readonly [z.ZodObject<{
@@ -2048,7 +2111,7 @@ export declare const Api: {
2048
2111
  name: z.ZodString;
2049
2112
  }, z.core.$strip>;
2050
2113
  cookies: {
2051
- [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
2114
+ val_session: z.ZodOptional<z.ZodString>;
2052
2115
  };
2053
2116
  };
2054
2117
  res: z.ZodUnion<readonly [z.ZodObject<{
@@ -2077,7 +2140,7 @@ export declare const Api: {
2077
2140
  cursor_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
2078
2141
  };
2079
2142
  cookies: {
2080
- [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
2143
+ val_session: z.ZodOptional<z.ZodString>;
2081
2144
  };
2082
2145
  };
2083
2146
  res: z.ZodUnion<readonly [z.ZodObject<{
@@ -2123,13 +2186,13 @@ export declare const Api: {
2123
2186
  POST: {
2124
2187
  req: {
2125
2188
  body: z.ZodObject<{
2126
- patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
2189
+ patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
2127
2190
  parentRef: z.ZodUnion<readonly [z.ZodObject<{
2128
2191
  type: z.ZodLiteral<"head">;
2129
2192
  headBaseSha: z.ZodString;
2130
2193
  }, z.core.$strip>, z.ZodObject<{
2131
2194
  type: z.ZodLiteral<"patch">;
2132
- patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
2195
+ patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
2133
2196
  }, z.core.$strip>]>;
2134
2197
  files: z.ZodArray<z.ZodObject<{
2135
2198
  filePath: z.ZodString;
@@ -2138,7 +2201,7 @@ export declare const Api: {
2138
2201
  }, z.core.$strip>>;
2139
2202
  }, z.core.$strip>;
2140
2203
  cookies: {
2141
- [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
2204
+ val_session: z.ZodOptional<z.ZodString>;
2142
2205
  };
2143
2206
  };
2144
2207
  res: z.ZodUnion<readonly [z.ZodObject<{
@@ -2149,7 +2212,7 @@ export declare const Api: {
2149
2212
  }, z.core.$strip>, z.ZodObject<{
2150
2213
  status: z.ZodLiteral<200>;
2151
2214
  json: z.ZodObject<{
2152
- patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
2215
+ patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
2153
2216
  files: z.ZodArray<z.ZodObject<{
2154
2217
  filePath: z.ZodString;
2155
2218
  metadata: z.ZodObject<{
@@ -2185,7 +2248,7 @@ export declare const Api: {
2185
2248
  contentType: z.ZodString;
2186
2249
  }, z.core.$strip>;
2187
2250
  cookies: {
2188
- [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
2251
+ val_session: z.ZodOptional<z.ZodString>;
2189
2252
  };
2190
2253
  };
2191
2254
  res: z.ZodUnion<readonly [z.ZodObject<{
@@ -2210,7 +2273,7 @@ export declare const Api: {
2210
2273
  GET: {
2211
2274
  req: {
2212
2275
  cookies: {
2213
- [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
2276
+ val_session: z.ZodOptional<z.ZodString>;
2214
2277
  };
2215
2278
  };
2216
2279
  res: z.ZodObject<{
@@ -2234,7 +2297,7 @@ export declare const Api: {
2234
2297
  "x-val-studio": z.ZodOptional<z.ZodString>;
2235
2298
  };
2236
2299
  cookies: {
2237
- [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
2300
+ val_session: z.ZodOptional<z.ZodString>;
2238
2301
  };
2239
2302
  body: z.ZodUnknown;
2240
2303
  };
@@ -2251,7 +2314,7 @@ export declare const Api: {
2251
2314
  "x-val-studio": z.ZodOptional<z.ZodString>;
2252
2315
  };
2253
2316
  cookies: {
2254
- [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
2317
+ val_session: z.ZodOptional<z.ZodString>;
2255
2318
  };
2256
2319
  body: z.ZodUnknown;
2257
2320
  };
@@ -2268,7 +2331,7 @@ export declare const Api: {
2268
2331
  "x-val-studio": z.ZodOptional<z.ZodString>;
2269
2332
  };
2270
2333
  cookies: {
2271
- [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
2334
+ val_session: z.ZodOptional<z.ZodString>;
2272
2335
  };
2273
2336
  body: z.ZodUnknown;
2274
2337
  };
@@ -2285,7 +2348,7 @@ export declare const Api: {
2285
2348
  "x-val-studio": z.ZodOptional<z.ZodString>;
2286
2349
  };
2287
2350
  cookies: {
2288
- [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
2351
+ val_session: z.ZodOptional<z.ZodString>;
2289
2352
  };
2290
2353
  body: z.ZodUnknown;
2291
2354
  };