@valbuild/shared 0.142.0 → 0.143.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.
- package/CHANGELOG.md +7 -0
- package/dist/declarations/src/internal/ApiRoutes.d.ts +107 -78
- package/dist/declarations/src/internal/server/types.d.ts +3 -3
- package/dist/declarations/src/internal/zod/History.d.ts +3 -3
- package/dist/declarations/src/internal/zod/Patch.d.ts +1 -0
- package/dist/declarations/src/internal/zod/SerializedSchema.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @valbuild/shared
|
|
2
2
|
|
|
3
|
+
## 0.143.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`f7c25bd`](https://github.com/valbuild/val/commit/f7c25bd4b44c288db8e5ab914e6d8a72c0216ba5), [`729c4ed`](https://github.com/valbuild/val/commit/729c4edfa28f5a2942c435ccf225e65858b080cc)]:
|
|
8
|
+
- @valbuild/core@0.143.0
|
|
9
|
+
|
|
3
10
|
## 0.142.0
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import {
|
|
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
|
* The header a request to `/admin/proxy` must carry. A cross-site form or
|
|
5
6
|
* `<img>` cannot set a custom header, so without it the proxy cannot be driven
|
|
@@ -18,7 +19,7 @@ export declare const PatchGroup: z.ZodObject<{
|
|
|
18
19
|
authorId: z.ZodNullable<z.ZodString>;
|
|
19
20
|
createdAt: z.ZodString;
|
|
20
21
|
publishedAt: z.ZodNullable<z.ZodString>;
|
|
21
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
22
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
22
23
|
}, z.core.$strip>;
|
|
23
24
|
export type PatchGroupT = z.infer<typeof PatchGroup>;
|
|
24
25
|
declare const cookies: z.ZodUnion<readonly [z.ZodLiteral<"val_session">, z.ZodLiteral<"val_enable">, z.ZodLiteral<"val_state">]>;
|
|
@@ -53,7 +54,7 @@ export declare const Api: {
|
|
|
53
54
|
redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
54
55
|
};
|
|
55
56
|
cookies: {
|
|
56
|
-
|
|
57
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
57
58
|
};
|
|
58
59
|
};
|
|
59
60
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -79,7 +80,7 @@ export declare const Api: {
|
|
|
79
80
|
redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
80
81
|
};
|
|
81
82
|
cookies: {
|
|
82
|
-
|
|
83
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
83
84
|
};
|
|
84
85
|
};
|
|
85
86
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -102,7 +103,7 @@ export declare const Api: {
|
|
|
102
103
|
GET: {
|
|
103
104
|
req: {
|
|
104
105
|
cookies: {
|
|
105
|
-
|
|
106
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
106
107
|
};
|
|
107
108
|
};
|
|
108
109
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -125,7 +126,7 @@ export declare const Api: {
|
|
|
125
126
|
redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
126
127
|
};
|
|
127
128
|
cookies: {
|
|
128
|
-
|
|
129
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
129
130
|
};
|
|
130
131
|
};
|
|
131
132
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -137,13 +138,14 @@ export declare const Api: {
|
|
|
137
138
|
status: z.ZodLiteral<302>;
|
|
138
139
|
redirectTo: z.ZodString;
|
|
139
140
|
cookies: z.ZodObject<{
|
|
140
|
-
|
|
141
|
+
val_enable: z.ZodObject<{
|
|
141
142
|
value: z.ZodLiteral<"true">;
|
|
142
143
|
options: z.ZodObject<{
|
|
143
144
|
httpOnly: z.ZodLiteral<false>;
|
|
144
145
|
sameSite: z.ZodLiteral<"lax">;
|
|
145
146
|
}, z.core.$strip>;
|
|
146
|
-
}, z.core.$strip
|
|
147
|
+
}, z.core.$strip>;
|
|
148
|
+
val_state: z.ZodObject<{
|
|
147
149
|
value: z.ZodString;
|
|
148
150
|
options: z.ZodObject<{
|
|
149
151
|
httpOnly: z.ZodLiteral<true>;
|
|
@@ -156,7 +158,7 @@ export declare const Api: {
|
|
|
156
158
|
status: z.ZodLiteral<302>;
|
|
157
159
|
redirectTo: z.ZodString;
|
|
158
160
|
cookies: z.ZodObject<{
|
|
159
|
-
|
|
161
|
+
val_enable: z.ZodObject<{
|
|
160
162
|
value: z.ZodLiteral<"true">;
|
|
161
163
|
options: z.ZodObject<{
|
|
162
164
|
httpOnly: z.ZodLiteral<false>;
|
|
@@ -179,7 +181,7 @@ export declare const Api: {
|
|
|
179
181
|
redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
180
182
|
};
|
|
181
183
|
cookies: {
|
|
182
|
-
|
|
184
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
183
185
|
};
|
|
184
186
|
};
|
|
185
187
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -191,7 +193,7 @@ export declare const Api: {
|
|
|
191
193
|
status: z.ZodLiteral<302>;
|
|
192
194
|
redirectTo: z.ZodString;
|
|
193
195
|
cookies: z.ZodObject<{
|
|
194
|
-
|
|
196
|
+
val_enable: z.ZodObject<{
|
|
195
197
|
value: z.ZodLiteral<"false">;
|
|
196
198
|
}, z.core.$strip>;
|
|
197
199
|
}, z.core.$strip>;
|
|
@@ -214,13 +216,14 @@ export declare const Api: {
|
|
|
214
216
|
status: z.ZodLiteral<302>;
|
|
215
217
|
redirectTo: z.ZodString;
|
|
216
218
|
cookies: z.ZodObject<{
|
|
217
|
-
|
|
219
|
+
val_enable: z.ZodObject<{
|
|
218
220
|
value: z.ZodLiteral<"true">;
|
|
219
221
|
options: z.ZodObject<{
|
|
220
222
|
httpOnly: z.ZodLiteral<false>;
|
|
221
223
|
sameSite: z.ZodLiteral<"lax">;
|
|
222
224
|
}, z.core.$strip>;
|
|
223
|
-
}, z.core.$strip
|
|
225
|
+
}, z.core.$strip>;
|
|
226
|
+
val_state: z.ZodObject<{
|
|
224
227
|
value: z.ZodString;
|
|
225
228
|
options: z.ZodObject<{
|
|
226
229
|
httpOnly: z.ZodLiteral<true>;
|
|
@@ -245,22 +248,24 @@ export declare const Api: {
|
|
|
245
248
|
state: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
246
249
|
};
|
|
247
250
|
cookies: {
|
|
248
|
-
|
|
251
|
+
val_state: z.ZodString;
|
|
249
252
|
};
|
|
250
253
|
};
|
|
251
254
|
res: z.ZodObject<{
|
|
252
255
|
status: z.ZodLiteral<302>;
|
|
253
256
|
redirectTo: z.ZodString;
|
|
254
257
|
cookies: z.ZodObject<{
|
|
255
|
-
|
|
258
|
+
val_state: z.ZodObject<{
|
|
256
259
|
value: z.ZodLiteral<null>;
|
|
257
|
-
}, z.core.$strip
|
|
260
|
+
}, z.core.$strip>;
|
|
261
|
+
val_enable: z.ZodOptional<z.ZodObject<{
|
|
258
262
|
value: z.ZodLiteral<"true">;
|
|
259
263
|
options: z.ZodObject<{
|
|
260
264
|
httpOnly: z.ZodLiteral<false>;
|
|
261
265
|
sameSite: z.ZodLiteral<"lax">;
|
|
262
266
|
}, z.core.$strip>;
|
|
263
|
-
}, z.core.$strip
|
|
267
|
+
}, z.core.$strip>>;
|
|
268
|
+
val_session: z.ZodOptional<z.ZodObject<{
|
|
264
269
|
value: z.ZodString;
|
|
265
270
|
options: z.ZodOptional<z.ZodObject<{
|
|
266
271
|
httpOnly: z.ZodLiteral<true>;
|
|
@@ -284,7 +289,17 @@ export declare const Api: {
|
|
|
284
289
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
285
290
|
status: z.ZodLiteral<200>;
|
|
286
291
|
cookies: z.ZodObject<{
|
|
287
|
-
|
|
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<{
|
|
288
303
|
value: z.ZodString;
|
|
289
304
|
options: z.ZodOptional<z.ZodObject<{
|
|
290
305
|
httpOnly: z.ZodLiteral<true>;
|
|
@@ -299,7 +314,17 @@ export declare const Api: {
|
|
|
299
314
|
status: z.ZodLiteral<302>;
|
|
300
315
|
redirectTo: z.ZodString;
|
|
301
316
|
cookies: z.ZodObject<{
|
|
302
|
-
|
|
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<{
|
|
303
328
|
value: z.ZodString;
|
|
304
329
|
options: z.ZodOptional<z.ZodObject<{
|
|
305
330
|
httpOnly: z.ZodLiteral<true>;
|
|
@@ -385,12 +410,12 @@ export declare const Api: {
|
|
|
385
410
|
baseSha: z.ZodString;
|
|
386
411
|
schemaSha: z.ZodString;
|
|
387
412
|
sourcesSha: z.ZodString;
|
|
388
|
-
patches: z.ZodArray<z.ZodString & z.ZodType<
|
|
389
|
-
appliedPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
390
|
-
publishingPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
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>>>>;
|
|
391
416
|
headCommitSha: z.ZodOptional<z.ZodString>;
|
|
392
417
|
removed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
393
|
-
patchId: z.ZodString & z.ZodType<
|
|
418
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
394
419
|
reason: z.ZodString;
|
|
395
420
|
}, z.core.$strip>>>;
|
|
396
421
|
config: z.ZodObject<{
|
|
@@ -423,18 +448,18 @@ export declare const Api: {
|
|
|
423
448
|
schemaSha: z.ZodString;
|
|
424
449
|
sourcesSha: z.ZodString;
|
|
425
450
|
commitSha: z.ZodOptional<z.ZodString>;
|
|
426
|
-
patches: z.ZodArray<z.ZodString & z.ZodType<
|
|
427
|
-
appliedPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
428
|
-
publishingPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
451
|
+
patches: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
452
|
+
appliedPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
453
|
+
publishingPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
429
454
|
headCommitSha: z.ZodOptional<z.ZodString>;
|
|
430
|
-
headPatchId: z.ZodOptional<z.ZodNullable<z.ZodString & z.ZodType<
|
|
455
|
+
headPatchId: z.ZodOptional<z.ZodNullable<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
431
456
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
432
457
|
patchGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
433
458
|
patchGroupId: z.ZodString;
|
|
434
459
|
authorId: z.ZodNullable<z.ZodString>;
|
|
435
460
|
createdAt: z.ZodString;
|
|
436
461
|
publishedAt: z.ZodNullable<z.ZodString>;
|
|
437
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
462
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
438
463
|
}, z.core.$strip>>>;
|
|
439
464
|
commits: z.ZodArray<z.ZodObject<{
|
|
440
465
|
commitSha: z.ZodString;
|
|
@@ -599,7 +624,7 @@ export declare const Api: {
|
|
|
599
624
|
headBaseSha: z.ZodString;
|
|
600
625
|
}, z.core.$strip>, z.ZodObject<{
|
|
601
626
|
type: z.ZodLiteral<"patch">;
|
|
602
|
-
patchId: z.ZodString & z.ZodType<
|
|
627
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
603
628
|
}, z.core.$strip>]>;
|
|
604
629
|
filePath: z.ZodString;
|
|
605
630
|
data: z.ZodAny;
|
|
@@ -617,7 +642,7 @@ export declare const Api: {
|
|
|
617
642
|
status: z.ZodLiteral<200>;
|
|
618
643
|
json: z.ZodObject<{
|
|
619
644
|
filePath: z.ZodString;
|
|
620
|
-
patchId: z.ZodString & z.ZodType<
|
|
645
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
621
646
|
}, z.core.$strip>;
|
|
622
647
|
}, z.core.$strip>]>;
|
|
623
648
|
};
|
|
@@ -708,10 +733,10 @@ export declare const Api: {
|
|
|
708
733
|
DELETE: {
|
|
709
734
|
req: {
|
|
710
735
|
query: {
|
|
711
|
-
id: z.ZodArray<z.ZodString & z.ZodType<
|
|
736
|
+
id: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
712
737
|
};
|
|
713
738
|
body: z.ZodOptional<z.ZodObject<{
|
|
714
|
-
unstagePatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
739
|
+
unstagePatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
715
740
|
reportHeadVersion: z.ZodOptional<z.ZodLiteral<true>>;
|
|
716
741
|
}, z.core.$strip>>;
|
|
717
742
|
cookies: {
|
|
@@ -728,7 +753,7 @@ export declare const Api: {
|
|
|
728
753
|
json: z.ZodObject<{
|
|
729
754
|
message: z.ZodString;
|
|
730
755
|
errors: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
731
|
-
patchId: z.ZodString & z.ZodType<
|
|
756
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
732
757
|
message: z.ZodString;
|
|
733
758
|
}, z.core.$strip>, z.ZodObject<{
|
|
734
759
|
parentPatchId: z.ZodString;
|
|
@@ -737,8 +762,8 @@ export declare const Api: {
|
|
|
737
762
|
}, z.core.$strip>;
|
|
738
763
|
}, z.core.$strip>, z.ZodObject<{
|
|
739
764
|
status: z.ZodLiteral<200>;
|
|
740
|
-
json: z.ZodUnion<readonly [z.ZodArray<z.ZodString & z.ZodType<
|
|
741
|
-
deleted: z.ZodArray<z.ZodString & z.ZodType<
|
|
765
|
+
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<{
|
|
766
|
+
deleted: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
742
767
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
743
768
|
}, z.core.$strip>]>;
|
|
744
769
|
}, z.core.$strip>]>;
|
|
@@ -751,16 +776,16 @@ export declare const Api: {
|
|
|
751
776
|
headBaseSha: z.ZodString;
|
|
752
777
|
}, z.core.$strip>, z.ZodObject<{
|
|
753
778
|
type: z.ZodLiteral<"patch">;
|
|
754
|
-
patchId: z.ZodString & z.ZodType<
|
|
779
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
755
780
|
}, z.core.$strip>]>;
|
|
756
781
|
sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
757
782
|
patches: z.ZodArray<z.ZodObject<{
|
|
758
783
|
path: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
759
|
-
patchId: z.ZodString & z.ZodType<
|
|
784
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
760
785
|
patch: z.ZodAny;
|
|
761
786
|
}, z.core.$strip>>;
|
|
762
787
|
patchGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
763
|
-
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
788
|
+
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
764
789
|
}, z.core.$strip>;
|
|
765
790
|
cookies: {
|
|
766
791
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -791,13 +816,13 @@ export declare const Api: {
|
|
|
791
816
|
}, z.core.$strip>, z.ZodObject<{
|
|
792
817
|
status: z.ZodLiteral<200>;
|
|
793
818
|
json: z.ZodObject<{
|
|
794
|
-
newPatchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
819
|
+
newPatchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
795
820
|
parentRef: z.ZodUnion<readonly [z.ZodObject<{
|
|
796
821
|
type: z.ZodLiteral<"head">;
|
|
797
822
|
headBaseSha: z.ZodString;
|
|
798
823
|
}, z.core.$strip>, z.ZodObject<{
|
|
799
824
|
type: z.ZodLiteral<"patch">;
|
|
800
|
-
patchId: z.ZodString & z.ZodType<
|
|
825
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
801
826
|
}, z.core.$strip>]>;
|
|
802
827
|
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
803
828
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
@@ -807,7 +832,7 @@ export declare const Api: {
|
|
|
807
832
|
GET: {
|
|
808
833
|
req: {
|
|
809
834
|
query: {
|
|
810
|
-
patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
835
|
+
patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
811
836
|
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">>>;
|
|
812
837
|
/**
|
|
813
838
|
* Include the patch group annotation in the answer.
|
|
@@ -833,7 +858,7 @@ export declare const Api: {
|
|
|
833
858
|
json: z.ZodObject<{
|
|
834
859
|
message: z.ZodString;
|
|
835
860
|
patchErrors: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
836
|
-
patchId: z.ZodString & z.ZodType<
|
|
861
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
837
862
|
message: z.ZodString;
|
|
838
863
|
}, z.core.$strip>, z.ZodObject<{
|
|
839
864
|
parentPatchId: z.ZodString;
|
|
@@ -885,7 +910,7 @@ export declare const Api: {
|
|
|
885
910
|
nestedFilePath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
886
911
|
metadata: z.ZodOptional<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
|
|
887
912
|
}, z.core.$strict>], "op">>>;
|
|
888
|
-
patchId: z.ZodString & z.ZodType<
|
|
913
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
889
914
|
createdAt: z.ZodString;
|
|
890
915
|
authorId: z.ZodNullable<z.ZodString>;
|
|
891
916
|
appliedAt: z.ZodNullable<z.ZodObject<{
|
|
@@ -898,13 +923,13 @@ export declare const Api: {
|
|
|
898
923
|
authorId: z.ZodNullable<z.ZodString>;
|
|
899
924
|
createdAt: z.ZodString;
|
|
900
925
|
publishedAt: z.ZodNullable<z.ZodString>;
|
|
901
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
926
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
902
927
|
}, z.core.$strip>>>;
|
|
903
928
|
baseSha: z.ZodString;
|
|
904
929
|
error: z.ZodOptional<z.ZodObject<{
|
|
905
930
|
message: z.ZodString;
|
|
906
931
|
}, z.core.$strip>>;
|
|
907
|
-
errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<
|
|
932
|
+
errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>, z.ZodObject<{
|
|
908
933
|
message: z.ZodString;
|
|
909
934
|
}, z.core.$strip>>>;
|
|
910
935
|
}, z.core.$strip>;
|
|
@@ -916,8 +941,8 @@ export declare const Api: {
|
|
|
916
941
|
req: {
|
|
917
942
|
body: z.ZodObject<{
|
|
918
943
|
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
919
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
920
|
-
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
944
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
945
|
+
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
921
946
|
}, z.core.$strip>;
|
|
922
947
|
cookies: {
|
|
923
948
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -947,7 +972,7 @@ export declare const Api: {
|
|
|
947
972
|
status: z.ZodLiteral<200>;
|
|
948
973
|
json: z.ZodObject<{
|
|
949
974
|
patchGroupId: z.ZodNullable<z.ZodString>;
|
|
950
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
975
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
951
976
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
952
977
|
}, z.core.$strip>;
|
|
953
978
|
}, z.core.$strip>]>;
|
|
@@ -956,8 +981,8 @@ export declare const Api: {
|
|
|
956
981
|
req: {
|
|
957
982
|
body: z.ZodObject<{
|
|
958
983
|
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
959
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
960
|
-
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
984
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
985
|
+
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
961
986
|
}, z.core.$strip>;
|
|
962
987
|
cookies: {
|
|
963
988
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -987,7 +1012,7 @@ export declare const Api: {
|
|
|
987
1012
|
status: z.ZodLiteral<200>;
|
|
988
1013
|
json: z.ZodObject<{
|
|
989
1014
|
patchGroupId: z.ZodNullable<z.ZodString>;
|
|
990
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1015
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
991
1016
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
992
1017
|
}, z.core.$strip>;
|
|
993
1018
|
}, z.core.$strip>]>;
|
|
@@ -1053,7 +1078,7 @@ export declare const Api: {
|
|
|
1053
1078
|
* answer and is honoured as one: a group holding nothing renders
|
|
1054
1079
|
* base.
|
|
1055
1080
|
*/
|
|
1056
|
-
patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
1081
|
+
patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
1057
1082
|
/**
|
|
1058
1083
|
* Apply only the patches in the CALLER'S OWN patch groups.
|
|
1059
1084
|
*
|
|
@@ -1117,9 +1142,9 @@ export declare const Api: {
|
|
|
1117
1142
|
source: z.ZodOptional<z.ZodAny>;
|
|
1118
1143
|
baseSource: z.ZodOptional<z.ZodAny>;
|
|
1119
1144
|
patches: z.ZodOptional<z.ZodObject<{
|
|
1120
|
-
applied: z.ZodArray<z.ZodString & z.ZodType<
|
|
1121
|
-
skipped: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
1122
|
-
errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<
|
|
1145
|
+
applied: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1146
|
+
skipped: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
1147
|
+
errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>, z.ZodObject<{
|
|
1123
1148
|
message: z.ZodString;
|
|
1124
1149
|
}, z.core.$strip>>>;
|
|
1125
1150
|
}, z.core.$strip>>;
|
|
@@ -1140,7 +1165,7 @@ export declare const Api: {
|
|
|
1140
1165
|
body: z.ZodObject<{
|
|
1141
1166
|
jobId: z.ZodString;
|
|
1142
1167
|
tab: z.ZodString;
|
|
1143
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1168
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1144
1169
|
}, z.core.$strip>;
|
|
1145
1170
|
cookies: {
|
|
1146
1171
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -1262,7 +1287,7 @@ export declare const Api: {
|
|
|
1262
1287
|
req: {
|
|
1263
1288
|
body: z.ZodObject<{
|
|
1264
1289
|
message: z.ZodOptional<z.ZodString>;
|
|
1265
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1290
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1266
1291
|
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
1267
1292
|
expectedHeadCommitSha: z.ZodOptional<z.ZodString>;
|
|
1268
1293
|
}, z.core.$strip>;
|
|
@@ -1284,7 +1309,7 @@ export declare const Api: {
|
|
|
1284
1309
|
branch: z.ZodOptional<z.ZodString>;
|
|
1285
1310
|
binaryFilesUnread: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1286
1311
|
removed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1287
|
-
patchId: z.ZodString & z.ZodType<
|
|
1312
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
1288
1313
|
moduleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
1289
1314
|
message: z.ZodString;
|
|
1290
1315
|
}, z.core.$strip>>>;
|
|
@@ -1331,7 +1356,7 @@ export declare const Api: {
|
|
|
1331
1356
|
binaryFilePatchErrors: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1332
1357
|
message: z.ZodString;
|
|
1333
1358
|
}, z.core.$strip>>;
|
|
1334
|
-
unappliablePatches: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<
|
|
1359
|
+
unappliablePatches: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>, z.ZodObject<{
|
|
1335
1360
|
moduleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
1336
1361
|
message: z.ZodString;
|
|
1337
1362
|
}, z.core.$strip>>>;
|
|
@@ -1459,7 +1484,7 @@ export declare const Api: {
|
|
|
1459
1484
|
modules: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1460
1485
|
source: z.ZodNullable<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
|
|
1461
1486
|
schema: z.ZodNullable<z.ZodType<SerializedSchemaT, unknown, z.core.$ZodTypeInternals<SerializedSchemaT, unknown>>>;
|
|
1462
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1487
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1463
1488
|
changedPaths: z.ZodArray<z.ZodString>;
|
|
1464
1489
|
failures: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1465
1490
|
kind: z.ZodLiteral<"commit-not-found">;
|
|
@@ -1487,7 +1512,7 @@ export declare const Api: {
|
|
|
1487
1512
|
}, z.core.$strip>], "kind">>;
|
|
1488
1513
|
}, z.core.$strip>>;
|
|
1489
1514
|
patches: z.ZodArray<z.ZodObject<{
|
|
1490
|
-
patchId: z.ZodString & z.ZodType<
|
|
1515
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
1491
1516
|
moduleFilePath: z.ZodString;
|
|
1492
1517
|
patch: z.ZodUnknown;
|
|
1493
1518
|
authorId: z.ZodNullable<z.ZodString>;
|
|
@@ -1579,7 +1604,7 @@ export declare const Api: {
|
|
|
1579
1604
|
module: z.ZodNullable<z.ZodObject<{
|
|
1580
1605
|
source: z.ZodNullable<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
|
|
1581
1606
|
schema: z.ZodNullable<z.ZodType<SerializedSchemaT, unknown, z.core.$ZodTypeInternals<SerializedSchemaT, unknown>>>;
|
|
1582
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1607
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1583
1608
|
changedPaths: z.ZodArray<z.ZodString>;
|
|
1584
1609
|
failures: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1585
1610
|
kind: z.ZodLiteral<"commit-not-found">;
|
|
@@ -1730,7 +1755,11 @@ export declare const Api: {
|
|
|
1730
1755
|
req: {
|
|
1731
1756
|
path: z.ZodString;
|
|
1732
1757
|
query: {
|
|
1733
|
-
patch_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString & z.ZodType<
|
|
1758
|
+
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 & {
|
|
1759
|
+
VAL_DATA_TYPE: "PatchId";
|
|
1760
|
+
}, (string & {
|
|
1761
|
+
VAL_DATA_TYPE: "PatchId";
|
|
1762
|
+
})[]>>>;
|
|
1734
1763
|
remote: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
1735
1764
|
};
|
|
1736
1765
|
headers: {
|
|
@@ -1782,7 +1811,7 @@ export declare const Api: {
|
|
|
1782
1811
|
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">>>;
|
|
1783
1812
|
};
|
|
1784
1813
|
cookies: {
|
|
1785
|
-
|
|
1814
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
1786
1815
|
};
|
|
1787
1816
|
};
|
|
1788
1817
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1836,7 +1865,7 @@ export declare const Api: {
|
|
|
1836
1865
|
POST: {
|
|
1837
1866
|
req: {
|
|
1838
1867
|
cookies: {
|
|
1839
|
-
|
|
1868
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
1840
1869
|
};
|
|
1841
1870
|
};
|
|
1842
1871
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1874,7 +1903,7 @@ export declare const Api: {
|
|
|
1874
1903
|
cursor_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
1875
1904
|
};
|
|
1876
1905
|
cookies: {
|
|
1877
|
-
|
|
1906
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
1878
1907
|
};
|
|
1879
1908
|
};
|
|
1880
1909
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1910,7 +1939,7 @@ export declare const Api: {
|
|
|
1910
1939
|
name: z.ZodString;
|
|
1911
1940
|
}, z.core.$strip>;
|
|
1912
1941
|
cookies: {
|
|
1913
|
-
|
|
1942
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
1914
1943
|
};
|
|
1915
1944
|
};
|
|
1916
1945
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1939,7 +1968,7 @@ export declare const Api: {
|
|
|
1939
1968
|
cursor_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
1940
1969
|
};
|
|
1941
1970
|
cookies: {
|
|
1942
|
-
|
|
1971
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
1943
1972
|
};
|
|
1944
1973
|
};
|
|
1945
1974
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1977,13 +2006,13 @@ export declare const Api: {
|
|
|
1977
2006
|
POST: {
|
|
1978
2007
|
req: {
|
|
1979
2008
|
body: z.ZodObject<{
|
|
1980
|
-
patchId: z.ZodString & z.ZodType<
|
|
2009
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
1981
2010
|
parentRef: z.ZodUnion<readonly [z.ZodObject<{
|
|
1982
2011
|
type: z.ZodLiteral<"head">;
|
|
1983
2012
|
headBaseSha: z.ZodString;
|
|
1984
2013
|
}, z.core.$strip>, z.ZodObject<{
|
|
1985
2014
|
type: z.ZodLiteral<"patch">;
|
|
1986
|
-
patchId: z.ZodString & z.ZodType<
|
|
2015
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
1987
2016
|
}, z.core.$strip>]>;
|
|
1988
2017
|
files: z.ZodArray<z.ZodObject<{
|
|
1989
2018
|
filePath: z.ZodString;
|
|
@@ -1992,7 +2021,7 @@ export declare const Api: {
|
|
|
1992
2021
|
}, z.core.$strip>>;
|
|
1993
2022
|
}, z.core.$strip>;
|
|
1994
2023
|
cookies: {
|
|
1995
|
-
|
|
2024
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
1996
2025
|
};
|
|
1997
2026
|
};
|
|
1998
2027
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2003,7 +2032,7 @@ export declare const Api: {
|
|
|
2003
2032
|
}, z.core.$strip>, z.ZodObject<{
|
|
2004
2033
|
status: z.ZodLiteral<200>;
|
|
2005
2034
|
json: z.ZodObject<{
|
|
2006
|
-
patchId: z.ZodString & z.ZodType<
|
|
2035
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
2007
2036
|
files: z.ZodArray<z.ZodObject<{
|
|
2008
2037
|
filePath: z.ZodString;
|
|
2009
2038
|
metadata: z.ZodObject<{
|
|
@@ -2038,7 +2067,7 @@ export declare const Api: {
|
|
|
2038
2067
|
contentType: z.ZodString;
|
|
2039
2068
|
}, z.core.$strip>;
|
|
2040
2069
|
cookies: {
|
|
2041
|
-
|
|
2070
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2042
2071
|
};
|
|
2043
2072
|
};
|
|
2044
2073
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2063,7 +2092,7 @@ export declare const Api: {
|
|
|
2063
2092
|
GET: {
|
|
2064
2093
|
req: {
|
|
2065
2094
|
cookies: {
|
|
2066
|
-
|
|
2095
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2067
2096
|
};
|
|
2068
2097
|
};
|
|
2069
2098
|
res: z.ZodObject<{
|
|
@@ -2087,7 +2116,7 @@ export declare const Api: {
|
|
|
2087
2116
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2088
2117
|
};
|
|
2089
2118
|
cookies: {
|
|
2090
|
-
|
|
2119
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2091
2120
|
};
|
|
2092
2121
|
body: z.ZodUnknown;
|
|
2093
2122
|
};
|
|
@@ -2104,7 +2133,7 @@ export declare const Api: {
|
|
|
2104
2133
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2105
2134
|
};
|
|
2106
2135
|
cookies: {
|
|
2107
|
-
|
|
2136
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2108
2137
|
};
|
|
2109
2138
|
body: z.ZodUnknown;
|
|
2110
2139
|
};
|
|
@@ -2121,7 +2150,7 @@ export declare const Api: {
|
|
|
2121
2150
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2122
2151
|
};
|
|
2123
2152
|
cookies: {
|
|
2124
|
-
|
|
2153
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2125
2154
|
};
|
|
2126
2155
|
body: z.ZodUnknown;
|
|
2127
2156
|
};
|
|
@@ -2138,7 +2167,7 @@ export declare const Api: {
|
|
|
2138
2167
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2139
2168
|
};
|
|
2140
2169
|
cookies: {
|
|
2141
|
-
|
|
2170
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2142
2171
|
};
|
|
2143
2172
|
body: z.ZodUnknown;
|
|
2144
2173
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Json } from "@valbuild/core";
|
|
2
|
-
export declare const VAL_SESSION_COOKIE:
|
|
3
|
-
export declare const VAL_STATE_COOKIE:
|
|
4
|
-
export declare const VAL_ENABLE_COOKIE_NAME:
|
|
2
|
+
export declare const VAL_SESSION_COOKIE: "val_session";
|
|
3
|
+
export declare const VAL_STATE_COOKIE: "val_state";
|
|
4
|
+
export declare const VAL_ENABLE_COOKIE_NAME: "val_enable";
|
|
5
5
|
export type VAL_SESSION_COOKIE = typeof VAL_SESSION_COOKIE;
|
|
6
6
|
export type VAL_STATE_COOKIE = typeof VAL_STATE_COOKIE;
|
|
7
7
|
export type VAL_ENABLE_COOKIE_NAME = typeof VAL_ENABLE_COOKIE_NAME;
|
|
@@ -66,7 +66,7 @@ export type BinaryFileRef = z.infer<typeof BinaryFileRef>;
|
|
|
66
66
|
export declare const HistoricalModule: z.ZodObject<{
|
|
67
67
|
source: z.ZodNullable<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
|
|
68
68
|
schema: z.ZodNullable<z.ZodType<SerializedSchemaT, unknown, z.core.$ZodTypeInternals<SerializedSchemaT, unknown>>>;
|
|
69
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
69
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
70
70
|
changedPaths: z.ZodArray<z.ZodString>;
|
|
71
71
|
failures: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
72
72
|
kind: z.ZodLiteral<"commit-not-found">;
|
|
@@ -111,7 +111,7 @@ export declare const HistoricalPatchSet: z.ZodObject<{
|
|
|
111
111
|
modules: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
112
112
|
source: z.ZodNullable<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
|
|
113
113
|
schema: z.ZodNullable<z.ZodType<SerializedSchemaT, unknown, z.core.$ZodTypeInternals<SerializedSchemaT, unknown>>>;
|
|
114
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
114
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
115
115
|
changedPaths: z.ZodArray<z.ZodString>;
|
|
116
116
|
failures: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
117
117
|
kind: z.ZodLiteral<"commit-not-found">;
|
|
@@ -139,7 +139,7 @@ export declare const HistoricalPatchSet: z.ZodObject<{
|
|
|
139
139
|
}, z.core.$strip>], "kind">>;
|
|
140
140
|
}, z.core.$strip>>;
|
|
141
141
|
patches: z.ZodArray<z.ZodObject<{
|
|
142
|
-
patchId: z.ZodString & z.ZodType<
|
|
142
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
143
143
|
moduleFilePath: z.ZodString;
|
|
144
144
|
patch: z.ZodUnknown;
|
|
145
145
|
authorId: z.ZodNullable<z.ZodString>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { JSONValue as JSONValueT, PatchJSON as PatchJSONT, PatchBlock as PatchBlockT, ParentRef as ParentRefT } from "@valbuild/core/patch";
|
|
2
|
+
import type { PatchId as PatchIdT } from "@valbuild/core";
|
|
2
3
|
import { z } from "zod";
|
|
3
4
|
/**
|
|
4
5
|
* JSON, recursively — the shape of a Source over the wire.
|
|
@@ -83,7 +83,7 @@ export declare const SerializedSettingsSchema: z.ZodType<SerializedSettingsSchem
|
|
|
83
83
|
*/
|
|
84
84
|
export declare const SerializedValViewSchema: z.ZodObject<{
|
|
85
85
|
type: z.ZodLiteral<"view">;
|
|
86
|
-
moduleFilePath: z.ZodType<
|
|
86
|
+
moduleFilePath: z.ZodType<import("@valbuild/core").ModuleFilePath, unknown, z.core.$ZodTypeInternals<import("@valbuild/core").ModuleFilePath, unknown>>;
|
|
87
87
|
opt: z.ZodLiteral<false>;
|
|
88
88
|
readonly: z.ZodOptional<z.ZodBoolean>;
|
|
89
89
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valbuild/shared",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.143.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Val shared types and utilities",
|
|
6
6
|
"repository": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"flexsearch": "^0.8.212",
|
|
38
38
|
"zod": "^4.4.3",
|
|
39
39
|
"zod-validation-error": "^5.0.0",
|
|
40
|
-
"@valbuild/core": "0.
|
|
40
|
+
"@valbuild/core": "0.143.0"
|
|
41
41
|
},
|
|
42
42
|
"files": [
|
|
43
43
|
"CHANGELOG.md",
|