@valbuild/shared 0.144.5 → 0.145.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,20 @@
1
1
  import { z } from "zod";
2
- import { type ModuleFilePath } from "@valbuild/core";
3
- declare const ModuleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
2
+ import { VAL_SESSION_COOKIE, VAL_STATE_COOKIE } from "./server/types.js";
3
+ /**
4
+ * Why Val Build refused a write for the project's plan, as data: the `error` of
5
+ * its 403 (`refusalError` in valbuild/home's `billing/projectLimits.ts`).
6
+ *
7
+ * Every field but `code` is optional and every field is a plain string, so a
8
+ * newer Val Build that adds a code or a fix still parses: the Studio says an
9
+ * unknown one with Billing beside it rather than failing to read the answer.
10
+ */
11
+ export declare const PlanRefusalError: z.ZodObject<{
12
+ code: z.ZodString;
13
+ fix: z.ZodOptional<z.ZodString>;
14
+ until: z.ZodOptional<z.ZodString>;
15
+ billingUrl: z.ZodOptional<z.ZodString>;
16
+ }, z.core.$strip>;
17
+ export type PlanRefusalErrorT = z.infer<typeof PlanRefusalError>;
4
18
  /**
5
19
  * The header a request to `/admin/proxy` must carry. A cross-site form or
6
20
  * `<img>` cannot set a custom header, so without it the proxy cannot be driven
@@ -19,7 +33,7 @@ export declare const PatchGroup: z.ZodObject<{
19
33
  authorId: z.ZodNullable<z.ZodString>;
20
34
  createdAt: z.ZodString;
21
35
  publishedAt: z.ZodNullable<z.ZodString>;
22
- patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
36
+ patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
23
37
  }, z.core.$strip>;
24
38
  export type PatchGroupT = z.infer<typeof PatchGroup>;
25
39
  declare const cookies: z.ZodUnion<readonly [z.ZodLiteral<"val_session">, z.ZodLiteral<"val_enable">, z.ZodLiteral<"val_state">]>;
@@ -54,7 +68,7 @@ export declare const Api: {
54
68
  redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
55
69
  };
56
70
  cookies: {
57
- val_session: z.ZodOptional<z.ZodString>;
71
+ [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
58
72
  };
59
73
  };
60
74
  res: z.ZodUnion<readonly [z.ZodObject<{
@@ -80,7 +94,7 @@ export declare const Api: {
80
94
  redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
81
95
  };
82
96
  cookies: {
83
- val_session: z.ZodOptional<z.ZodString>;
97
+ [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
84
98
  };
85
99
  };
86
100
  res: z.ZodUnion<readonly [z.ZodObject<{
@@ -103,7 +117,7 @@ export declare const Api: {
103
117
  GET: {
104
118
  req: {
105
119
  cookies: {
106
- val_session: z.ZodOptional<z.ZodString>;
120
+ [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
107
121
  };
108
122
  };
109
123
  res: z.ZodUnion<readonly [z.ZodObject<{
@@ -126,7 +140,7 @@ export declare const Api: {
126
140
  redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
127
141
  };
128
142
  cookies: {
129
- val_session: z.ZodOptional<z.ZodString>;
143
+ [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
130
144
  };
131
145
  };
132
146
  res: z.ZodUnion<readonly [z.ZodObject<{
@@ -138,14 +152,13 @@ export declare const Api: {
138
152
  status: z.ZodLiteral<302>;
139
153
  redirectTo: z.ZodString;
140
154
  cookies: z.ZodObject<{
141
- val_enable: z.ZodObject<{
155
+ [x: number]: z.ZodObject<{
142
156
  value: z.ZodLiteral<"true">;
143
157
  options: z.ZodObject<{
144
158
  httpOnly: z.ZodLiteral<false>;
145
159
  sameSite: z.ZodLiteral<"lax">;
146
160
  }, z.core.$strip>;
147
- }, z.core.$strip>;
148
- val_state: z.ZodObject<{
161
+ }, z.core.$strip> | z.ZodObject<{
149
162
  value: z.ZodString;
150
163
  options: z.ZodObject<{
151
164
  httpOnly: z.ZodLiteral<true>;
@@ -158,7 +171,7 @@ export declare const Api: {
158
171
  status: z.ZodLiteral<302>;
159
172
  redirectTo: z.ZodString;
160
173
  cookies: z.ZodObject<{
161
- val_enable: z.ZodObject<{
174
+ [x: number]: z.ZodObject<{
162
175
  value: z.ZodLiteral<"true">;
163
176
  options: z.ZodObject<{
164
177
  httpOnly: z.ZodLiteral<false>;
@@ -181,7 +194,7 @@ export declare const Api: {
181
194
  redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
182
195
  };
183
196
  cookies: {
184
- val_session: z.ZodOptional<z.ZodString>;
197
+ [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
185
198
  };
186
199
  };
187
200
  res: z.ZodUnion<readonly [z.ZodObject<{
@@ -193,7 +206,7 @@ export declare const Api: {
193
206
  status: z.ZodLiteral<302>;
194
207
  redirectTo: z.ZodString;
195
208
  cookies: z.ZodObject<{
196
- val_enable: z.ZodObject<{
209
+ [x: number]: z.ZodObject<{
197
210
  value: z.ZodLiteral<"false">;
198
211
  }, z.core.$strip>;
199
212
  }, z.core.$strip>;
@@ -216,14 +229,13 @@ export declare const Api: {
216
229
  status: z.ZodLiteral<302>;
217
230
  redirectTo: z.ZodString;
218
231
  cookies: z.ZodObject<{
219
- val_enable: z.ZodObject<{
232
+ [x: number]: z.ZodObject<{
220
233
  value: z.ZodLiteral<"true">;
221
234
  options: z.ZodObject<{
222
235
  httpOnly: z.ZodLiteral<false>;
223
236
  sameSite: z.ZodLiteral<"lax">;
224
237
  }, z.core.$strip>;
225
- }, z.core.$strip>;
226
- val_state: z.ZodObject<{
238
+ }, z.core.$strip> | z.ZodObject<{
227
239
  value: z.ZodString;
228
240
  options: z.ZodObject<{
229
241
  httpOnly: z.ZodLiteral<true>;
@@ -248,24 +260,22 @@ export declare const Api: {
248
260
  state: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
249
261
  };
250
262
  cookies: {
251
- val_state: z.ZodString;
263
+ [VAL_STATE_COOKIE]: z.ZodString;
252
264
  };
253
265
  };
254
266
  res: z.ZodObject<{
255
267
  status: z.ZodLiteral<302>;
256
268
  redirectTo: z.ZodString;
257
269
  cookies: z.ZodObject<{
258
- val_state: z.ZodObject<{
270
+ [x: number]: z.ZodObject<{
259
271
  value: z.ZodLiteral<null>;
260
- }, z.core.$strip>;
261
- val_enable: z.ZodOptional<z.ZodObject<{
272
+ }, z.core.$strip> | z.ZodOptional<z.ZodObject<{
262
273
  value: z.ZodLiteral<"true">;
263
274
  options: z.ZodObject<{
264
275
  httpOnly: z.ZodLiteral<false>;
265
276
  sameSite: z.ZodLiteral<"lax">;
266
277
  }, z.core.$strip>;
267
- }, z.core.$strip>>;
268
- val_session: z.ZodOptional<z.ZodObject<{
278
+ }, z.core.$strip>> | z.ZodOptional<z.ZodObject<{
269
279
  value: z.ZodString;
270
280
  options: z.ZodOptional<z.ZodObject<{
271
281
  httpOnly: z.ZodLiteral<true>;
@@ -289,17 +299,7 @@ export declare const Api: {
289
299
  res: z.ZodUnion<readonly [z.ZodObject<{
290
300
  status: z.ZodLiteral<200>;
291
301
  cookies: z.ZodObject<{
292
- val_session: z.ZodOptional<z.ZodObject<{
293
- value: z.ZodString;
294
- options: z.ZodOptional<z.ZodObject<{
295
- httpOnly: z.ZodLiteral<true>;
296
- sameSite: z.ZodLiteral<"strict">;
297
- path: z.ZodString;
298
- secure: z.ZodLiteral<true>;
299
- expires: z.ZodCustom<Date, Date>;
300
- }, z.core.$strip>>;
301
- }, z.core.$strip>>;
302
- val_state: z.ZodOptional<z.ZodObject<{
302
+ [x: number]: z.ZodOptional<z.ZodObject<{
303
303
  value: z.ZodString;
304
304
  options: z.ZodOptional<z.ZodObject<{
305
305
  httpOnly: z.ZodLiteral<true>;
@@ -314,17 +314,7 @@ export declare const Api: {
314
314
  status: z.ZodLiteral<302>;
315
315
  redirectTo: z.ZodString;
316
316
  cookies: z.ZodObject<{
317
- val_session: z.ZodOptional<z.ZodObject<{
318
- value: z.ZodString;
319
- options: z.ZodOptional<z.ZodObject<{
320
- httpOnly: z.ZodLiteral<true>;
321
- sameSite: z.ZodLiteral<"strict">;
322
- path: z.ZodString;
323
- secure: z.ZodLiteral<true>;
324
- expires: z.ZodCustom<Date, Date>;
325
- }, z.core.$strip>>;
326
- }, z.core.$strip>>;
327
- val_state: z.ZodOptional<z.ZodObject<{
317
+ [x: number]: z.ZodOptional<z.ZodObject<{
328
318
  value: z.ZodString;
329
319
  options: z.ZodOptional<z.ZodObject<{
330
320
  httpOnly: z.ZodLiteral<true>;
@@ -410,13 +400,13 @@ export declare const Api: {
410
400
  baseSha: z.ZodString;
411
401
  schemaSha: z.ZodString;
412
402
  sourcesSha: z.ZodString;
413
- patches: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
414
- appliedPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
415
- publishingPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
416
- heldBackPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
403
+ patches: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
404
+ appliedPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
405
+ publishingPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
406
+ heldBackPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
417
407
  headCommitSha: z.ZodOptional<z.ZodString>;
418
408
  removed: z.ZodOptional<z.ZodArray<z.ZodObject<{
419
- patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
409
+ patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
420
410
  reason: z.ZodString;
421
411
  }, z.core.$strip>>>;
422
412
  config: z.ZodObject<{
@@ -441,6 +431,7 @@ export declare const Api: {
441
431
  name: z.ZodString;
442
432
  branch: z.ZodString;
443
433
  }, z.core.$strip>>;
434
+ historyBranch: z.ZodOptional<z.ZodString>;
444
435
  }, z.core.$strip>, z.ZodObject<{
445
436
  type: z.ZodLiteral<"use-websocket">;
446
437
  url: z.ZodString;
@@ -449,19 +440,19 @@ export declare const Api: {
449
440
  schemaSha: z.ZodString;
450
441
  sourcesSha: z.ZodString;
451
442
  commitSha: z.ZodOptional<z.ZodString>;
452
- patches: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
453
- appliedPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
454
- publishingPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
455
- heldBackPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
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>>>>;
456
447
  headCommitSha: z.ZodOptional<z.ZodString>;
457
- headPatchId: z.ZodOptional<z.ZodNullable<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
448
+ headPatchId: z.ZodOptional<z.ZodNullable<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
458
449
  headVersion: z.ZodOptional<z.ZodNumber>;
459
450
  patchGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
460
451
  patchGroupId: z.ZodString;
461
452
  authorId: z.ZodNullable<z.ZodString>;
462
453
  createdAt: z.ZodString;
463
454
  publishedAt: z.ZodNullable<z.ZodString>;
464
- patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
455
+ patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
465
456
  }, z.core.$strip>>>;
466
457
  commits: z.ZodArray<z.ZodObject<{
467
458
  commitSha: z.ZodString;
@@ -501,6 +492,7 @@ export declare const Api: {
501
492
  name: z.ZodString;
502
493
  branch: z.ZodString;
503
494
  }, z.core.$strip>>;
495
+ historyBranch: z.ZodOptional<z.ZodString>;
504
496
  }, z.core.$strip>]>;
505
497
  }, z.core.$strip>]>;
506
498
  };
@@ -626,7 +618,7 @@ export declare const Api: {
626
618
  headBaseSha: z.ZodString;
627
619
  }, z.core.$strip>, z.ZodObject<{
628
620
  type: z.ZodLiteral<"patch">;
629
- patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
621
+ patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
630
622
  }, z.core.$strip>]>;
631
623
  filePath: z.ZodString;
632
624
  data: z.ZodAny;
@@ -644,7 +636,7 @@ export declare const Api: {
644
636
  status: z.ZodLiteral<200>;
645
637
  json: z.ZodObject<{
646
638
  filePath: z.ZodString;
647
- patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
639
+ patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
648
640
  }, z.core.$strip>;
649
641
  }, z.core.$strip>]>;
650
642
  };
@@ -735,10 +727,10 @@ export declare const Api: {
735
727
  DELETE: {
736
728
  req: {
737
729
  query: {
738
- id: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
730
+ id: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
739
731
  };
740
732
  body: z.ZodOptional<z.ZodObject<{
741
- unstagePatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
733
+ unstagePatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
742
734
  reportHeadVersion: z.ZodOptional<z.ZodLiteral<true>>;
743
735
  }, z.core.$strip>>;
744
736
  cookies: {
@@ -755,7 +747,7 @@ export declare const Api: {
755
747
  json: z.ZodObject<{
756
748
  message: z.ZodString;
757
749
  errors: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
758
- patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
750
+ patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
759
751
  message: z.ZodString;
760
752
  publishJobId: z.ZodOptional<z.ZodString>;
761
753
  }, z.core.$strip>, z.ZodObject<{
@@ -765,8 +757,8 @@ export declare const Api: {
765
757
  }, z.core.$strip>;
766
758
  }, z.core.$strip>, z.ZodObject<{
767
759
  status: z.ZodLiteral<200>;
768
- 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<{
769
- deleted: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
760
+ json: z.ZodUnion<readonly [z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>, z.ZodObject<{
761
+ deleted: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
770
762
  headVersion: z.ZodOptional<z.ZodNumber>;
771
763
  }, z.core.$strip>]>;
772
764
  }, z.core.$strip>]>;
@@ -779,16 +771,16 @@ export declare const Api: {
779
771
  headBaseSha: z.ZodString;
780
772
  }, z.core.$strip>, z.ZodObject<{
781
773
  type: z.ZodLiteral<"patch">;
782
- patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
774
+ patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
783
775
  }, z.core.$strip>]>;
784
776
  sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
785
777
  patches: z.ZodArray<z.ZodObject<{
786
778
  path: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
787
- patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
779
+ patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
788
780
  patch: z.ZodAny;
789
781
  }, z.core.$strip>>;
790
782
  patchGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
791
- withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
783
+ withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
792
784
  }, z.core.$strip>;
793
785
  cookies: {
794
786
  val_session: z.ZodOptional<z.ZodString>;
@@ -816,16 +808,38 @@ export declare const Api: {
816
808
  }, z.core.$strip>;
817
809
  }, z.core.$strip>>>;
818
810
  }, z.core.$strip>;
811
+ }, z.core.$strip>, z.ZodObject<{
812
+ status: z.ZodLiteral<403>;
813
+ json: z.ZodObject<{
814
+ type: z.ZodLiteral<"plan-refused">;
815
+ message: z.ZodString;
816
+ error: z.ZodObject<{
817
+ code: z.ZodString;
818
+ fix: z.ZodOptional<z.ZodString>;
819
+ until: z.ZodOptional<z.ZodString>;
820
+ billingUrl: z.ZodOptional<z.ZodString>;
821
+ }, z.core.$strip>;
822
+ newPatchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
823
+ parentRef: z.ZodUnion<readonly [z.ZodObject<{
824
+ type: z.ZodLiteral<"head">;
825
+ headBaseSha: z.ZodString;
826
+ }, z.core.$strip>, z.ZodObject<{
827
+ type: z.ZodLiteral<"patch">;
828
+ patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
829
+ }, z.core.$strip>]>;
830
+ patchGroupId: z.ZodOptional<z.ZodString>;
831
+ headVersion: z.ZodOptional<z.ZodNumber>;
832
+ }, z.core.$strip>;
819
833
  }, z.core.$strip>, z.ZodObject<{
820
834
  status: z.ZodLiteral<200>;
821
835
  json: z.ZodObject<{
822
- newPatchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
836
+ newPatchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
823
837
  parentRef: z.ZodUnion<readonly [z.ZodObject<{
824
838
  type: z.ZodLiteral<"head">;
825
839
  headBaseSha: z.ZodString;
826
840
  }, z.core.$strip>, z.ZodObject<{
827
841
  type: z.ZodLiteral<"patch">;
828
- patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
842
+ patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
829
843
  }, z.core.$strip>]>;
830
844
  patchGroupId: z.ZodOptional<z.ZodString>;
831
845
  headVersion: z.ZodOptional<z.ZodNumber>;
@@ -835,7 +849,7 @@ export declare const Api: {
835
849
  GET: {
836
850
  req: {
837
851
  query: {
838
- patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
852
+ patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
839
853
  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">>>;
840
854
  /**
841
855
  * Include the patch group annotation in the answer.
@@ -861,7 +875,7 @@ export declare const Api: {
861
875
  json: z.ZodObject<{
862
876
  message: z.ZodString;
863
877
  patchErrors: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
864
- patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
878
+ patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
865
879
  message: z.ZodString;
866
880
  publishJobId: z.ZodOptional<z.ZodString>;
867
881
  }, z.core.$strip>, z.ZodObject<{
@@ -914,7 +928,7 @@ export declare const Api: {
914
928
  nestedFilePath: z.ZodOptional<z.ZodArray<z.ZodString>>;
915
929
  metadata: z.ZodOptional<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
916
930
  }, z.core.$strict>], "op">>>;
917
- patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
931
+ patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
918
932
  createdAt: z.ZodString;
919
933
  authorId: z.ZodNullable<z.ZodString>;
920
934
  appliedAt: z.ZodNullable<z.ZodObject<{
@@ -927,13 +941,13 @@ export declare const Api: {
927
941
  authorId: z.ZodNullable<z.ZodString>;
928
942
  createdAt: z.ZodString;
929
943
  publishedAt: z.ZodNullable<z.ZodString>;
930
- patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
944
+ patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
931
945
  }, z.core.$strip>>>;
932
946
  baseSha: z.ZodString;
933
947
  error: z.ZodOptional<z.ZodObject<{
934
948
  message: z.ZodString;
935
949
  }, z.core.$strip>>;
936
- errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>, z.ZodObject<{
950
+ errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>, z.ZodObject<{
937
951
  message: z.ZodString;
938
952
  }, z.core.$strip>>>;
939
953
  }, z.core.$strip>;
@@ -945,8 +959,8 @@ export declare const Api: {
945
959
  req: {
946
960
  body: z.ZodObject<{
947
961
  patchGroupId: z.ZodOptional<z.ZodString>;
948
- patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
949
- withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
962
+ patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
963
+ withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
950
964
  }, z.core.$strip>;
951
965
  cookies: {
952
966
  val_session: z.ZodOptional<z.ZodString>;
@@ -976,7 +990,7 @@ export declare const Api: {
976
990
  status: z.ZodLiteral<200>;
977
991
  json: z.ZodObject<{
978
992
  patchGroupId: z.ZodNullable<z.ZodString>;
979
- patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
993
+ patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
980
994
  headVersion: z.ZodOptional<z.ZodNumber>;
981
995
  }, z.core.$strip>;
982
996
  }, z.core.$strip>]>;
@@ -985,8 +999,8 @@ export declare const Api: {
985
999
  req: {
986
1000
  body: z.ZodObject<{
987
1001
  patchGroupId: z.ZodOptional<z.ZodString>;
988
- patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
989
- withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
1002
+ patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
1003
+ withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
990
1004
  }, z.core.$strip>;
991
1005
  cookies: {
992
1006
  val_session: z.ZodOptional<z.ZodString>;
@@ -1016,7 +1030,7 @@ export declare const Api: {
1016
1030
  status: z.ZodLiteral<200>;
1017
1031
  json: z.ZodObject<{
1018
1032
  patchGroupId: z.ZodNullable<z.ZodString>;
1019
- patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
1033
+ patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
1020
1034
  headVersion: z.ZodOptional<z.ZodNumber>;
1021
1035
  }, z.core.$strip>;
1022
1036
  }, z.core.$strip>]>;
@@ -1055,7 +1069,7 @@ export declare const Api: {
1055
1069
  status: z.ZodLiteral<200>;
1056
1070
  json: z.ZodObject<{
1057
1071
  schemaSha: z.ZodString;
1058
- schemas: z.ZodRecord<z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>, z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
1072
+ schemas: z.ZodRecord<z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>, z.ZodType<SerializedSchemaT, unknown, z.core.$ZodTypeInternals<SerializedSchemaT, unknown>>>;
1059
1073
  }, z.core.$strip>;
1060
1074
  }, z.core.$strip>]>;
1061
1075
  };
@@ -1082,7 +1096,7 @@ export declare const Api: {
1082
1096
  * answer and is honoured as one: a group holding nothing renders
1083
1097
  * base.
1084
1098
  */
1085
- patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
1099
+ patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
1086
1100
  /**
1087
1101
  * Apply only the patches in the CALLER'S OWN patch groups.
1088
1102
  *
@@ -1146,9 +1160,9 @@ export declare const Api: {
1146
1160
  source: z.ZodOptional<z.ZodAny>;
1147
1161
  baseSource: z.ZodOptional<z.ZodAny>;
1148
1162
  patches: z.ZodOptional<z.ZodObject<{
1149
- applied: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
1150
- skipped: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
1151
- errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>, z.ZodObject<{
1163
+ applied: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
1164
+ skipped: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
1165
+ errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>, z.ZodObject<{
1152
1166
  message: z.ZodString;
1153
1167
  }, z.core.$strip>>>;
1154
1168
  }, z.core.$strip>>;
@@ -1169,7 +1183,7 @@ export declare const Api: {
1169
1183
  body: z.ZodObject<{
1170
1184
  jobId: z.ZodString;
1171
1185
  tab: z.ZodString;
1172
- patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
1186
+ patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
1173
1187
  }, z.core.$strip>;
1174
1188
  cookies: {
1175
1189
  val_session: z.ZodOptional<z.ZodString>;
@@ -1291,7 +1305,7 @@ export declare const Api: {
1291
1305
  req: {
1292
1306
  body: z.ZodObject<{
1293
1307
  message: z.ZodOptional<z.ZodString>;
1294
- patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
1308
+ patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
1295
1309
  patchGroupId: z.ZodOptional<z.ZodString>;
1296
1310
  expectedHeadCommitSha: z.ZodOptional<z.ZodString>;
1297
1311
  }, z.core.$strip>;
@@ -1313,7 +1327,7 @@ export declare const Api: {
1313
1327
  branch: z.ZodOptional<z.ZodString>;
1314
1328
  binaryFilesUnread: z.ZodOptional<z.ZodArray<z.ZodString>>;
1315
1329
  removed: z.ZodOptional<z.ZodArray<z.ZodObject<{
1316
- patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
1330
+ patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
1317
1331
  moduleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
1318
1332
  message: z.ZodString;
1319
1333
  }, z.core.$strip>>>;
@@ -1360,7 +1374,7 @@ export declare const Api: {
1360
1374
  binaryFilePatchErrors: z.ZodRecord<z.ZodString, z.ZodObject<{
1361
1375
  message: z.ZodString;
1362
1376
  }, z.core.$strip>>;
1363
- unappliablePatches: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>, z.ZodObject<{
1377
+ unappliablePatches: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>, z.ZodObject<{
1364
1378
  moduleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
1365
1379
  message: z.ZodString;
1366
1380
  }, z.core.$strip>>>;
@@ -1487,8 +1501,8 @@ export declare const Api: {
1487
1501
  }, z.core.$strip>;
1488
1502
  modules: z.ZodRecord<z.ZodString, z.ZodObject<{
1489
1503
  source: z.ZodNullable<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
1490
- schema: z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
1491
- patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
1504
+ schema: z.ZodNullable<z.ZodType<SerializedSchemaT, unknown, z.core.$ZodTypeInternals<SerializedSchemaT, unknown>>>;
1505
+ patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
1492
1506
  changedPaths: z.ZodArray<z.ZodString>;
1493
1507
  failures: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1494
1508
  kind: z.ZodLiteral<"commit-not-found">;
@@ -1516,7 +1530,7 @@ export declare const Api: {
1516
1530
  }, z.core.$strip>], "kind">>;
1517
1531
  }, z.core.$strip>>;
1518
1532
  patches: z.ZodArray<z.ZodObject<{
1519
- patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
1533
+ patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
1520
1534
  moduleFilePath: z.ZodString;
1521
1535
  patch: z.ZodUnknown;
1522
1536
  authorId: z.ZodNullable<z.ZodString>;
@@ -1607,8 +1621,8 @@ export declare const Api: {
1607
1621
  moduleFilePath: z.ZodString;
1608
1622
  module: z.ZodNullable<z.ZodObject<{
1609
1623
  source: z.ZodNullable<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
1610
- schema: z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
1611
- patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
1624
+ schema: z.ZodNullable<z.ZodType<SerializedSchemaT, unknown, z.core.$ZodTypeInternals<SerializedSchemaT, unknown>>>;
1625
+ patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
1612
1626
  changedPaths: z.ZodArray<z.ZodString>;
1613
1627
  failures: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1614
1628
  kind: z.ZodLiteral<"commit-not-found">;
@@ -1759,11 +1773,7 @@ export declare const Api: {
1759
1773
  req: {
1760
1774
  path: z.ZodString;
1761
1775
  query: {
1762
- 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 & {
1763
- VAL_DATA_TYPE: "PatchId";
1764
- }, (string & {
1765
- VAL_DATA_TYPE: "PatchId";
1766
- })[]>>>;
1776
+ patch_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>, z.ZodTransform<any, any[]>>>;
1767
1777
  remote: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
1768
1778
  };
1769
1779
  headers: {
@@ -1815,7 +1825,7 @@ export declare const Api: {
1815
1825
  own_patch_groups_only: 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">>>;
1816
1826
  };
1817
1827
  cookies: {
1818
- val_session: z.ZodOptional<z.ZodString>;
1828
+ [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
1819
1829
  };
1820
1830
  };
1821
1831
  res: z.ZodUnion<readonly [z.ZodObject<{
@@ -1869,7 +1879,7 @@ export declare const Api: {
1869
1879
  POST: {
1870
1880
  req: {
1871
1881
  cookies: {
1872
- val_session: z.ZodOptional<z.ZodString>;
1882
+ [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
1873
1883
  };
1874
1884
  };
1875
1885
  res: z.ZodUnion<readonly [z.ZodObject<{
@@ -1907,7 +1917,7 @@ export declare const Api: {
1907
1917
  cursor_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
1908
1918
  };
1909
1919
  cookies: {
1910
- val_session: z.ZodOptional<z.ZodString>;
1920
+ [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
1911
1921
  };
1912
1922
  };
1913
1923
  res: z.ZodUnion<readonly [z.ZodObject<{
@@ -1943,7 +1953,7 @@ export declare const Api: {
1943
1953
  name: z.ZodString;
1944
1954
  }, z.core.$strip>;
1945
1955
  cookies: {
1946
- val_session: z.ZodOptional<z.ZodString>;
1956
+ [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
1947
1957
  };
1948
1958
  };
1949
1959
  res: z.ZodUnion<readonly [z.ZodObject<{
@@ -1972,7 +1982,7 @@ export declare const Api: {
1972
1982
  cursor_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
1973
1983
  };
1974
1984
  cookies: {
1975
- val_session: z.ZodOptional<z.ZodString>;
1985
+ [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
1976
1986
  };
1977
1987
  };
1978
1988
  res: z.ZodUnion<readonly [z.ZodObject<{
@@ -2010,13 +2020,13 @@ export declare const Api: {
2010
2020
  POST: {
2011
2021
  req: {
2012
2022
  body: z.ZodObject<{
2013
- patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
2023
+ patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
2014
2024
  parentRef: z.ZodUnion<readonly [z.ZodObject<{
2015
2025
  type: z.ZodLiteral<"head">;
2016
2026
  headBaseSha: z.ZodString;
2017
2027
  }, z.core.$strip>, z.ZodObject<{
2018
2028
  type: z.ZodLiteral<"patch">;
2019
- patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
2029
+ patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
2020
2030
  }, z.core.$strip>]>;
2021
2031
  files: z.ZodArray<z.ZodObject<{
2022
2032
  filePath: z.ZodString;
@@ -2025,7 +2035,7 @@ export declare const Api: {
2025
2035
  }, z.core.$strip>>;
2026
2036
  }, z.core.$strip>;
2027
2037
  cookies: {
2028
- val_session: z.ZodOptional<z.ZodString>;
2038
+ [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
2029
2039
  };
2030
2040
  };
2031
2041
  res: z.ZodUnion<readonly [z.ZodObject<{
@@ -2036,7 +2046,7 @@ export declare const Api: {
2036
2046
  }, z.core.$strip>, z.ZodObject<{
2037
2047
  status: z.ZodLiteral<200>;
2038
2048
  json: z.ZodObject<{
2039
- patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
2049
+ patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
2040
2050
  files: z.ZodArray<z.ZodObject<{
2041
2051
  filePath: z.ZodString;
2042
2052
  metadata: z.ZodObject<{
@@ -2071,7 +2081,7 @@ export declare const Api: {
2071
2081
  contentType: z.ZodString;
2072
2082
  }, z.core.$strip>;
2073
2083
  cookies: {
2074
- val_session: z.ZodOptional<z.ZodString>;
2084
+ [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
2075
2085
  };
2076
2086
  };
2077
2087
  res: z.ZodUnion<readonly [z.ZodObject<{
@@ -2096,7 +2106,7 @@ export declare const Api: {
2096
2106
  GET: {
2097
2107
  req: {
2098
2108
  cookies: {
2099
- val_session: z.ZodOptional<z.ZodString>;
2109
+ [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
2100
2110
  };
2101
2111
  };
2102
2112
  res: z.ZodObject<{
@@ -2120,7 +2130,7 @@ export declare const Api: {
2120
2130
  "x-val-studio": z.ZodOptional<z.ZodString>;
2121
2131
  };
2122
2132
  cookies: {
2123
- val_session: z.ZodOptional<z.ZodString>;
2133
+ [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
2124
2134
  };
2125
2135
  body: z.ZodUnknown;
2126
2136
  };
@@ -2137,7 +2147,7 @@ export declare const Api: {
2137
2147
  "x-val-studio": z.ZodOptional<z.ZodString>;
2138
2148
  };
2139
2149
  cookies: {
2140
- val_session: z.ZodOptional<z.ZodString>;
2150
+ [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
2141
2151
  };
2142
2152
  body: z.ZodUnknown;
2143
2153
  };
@@ -2154,7 +2164,7 @@ export declare const Api: {
2154
2164
  "x-val-studio": z.ZodOptional<z.ZodString>;
2155
2165
  };
2156
2166
  cookies: {
2157
- val_session: z.ZodOptional<z.ZodString>;
2167
+ [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
2158
2168
  };
2159
2169
  body: z.ZodUnknown;
2160
2170
  };
@@ -2171,7 +2181,7 @@ export declare const Api: {
2171
2181
  "x-val-studio": z.ZodOptional<z.ZodString>;
2172
2182
  };
2173
2183
  cookies: {
2174
- val_session: z.ZodOptional<z.ZodString>;
2184
+ [VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
2175
2185
  };
2176
2186
  body: z.ZodUnknown;
2177
2187
  };