@valbuild/shared 0.145.0 → 0.145.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/declarations/src/internal/ApiRoutes.d.ts +114 -85
- package/dist/declarations/src/internal/publish/contentApi.d.ts +17 -3
- package/dist/declarations/src/internal/publish/protocol.d.ts +10 -0
- package/dist/declarations/src/internal/server/types.d.ts +3 -3
- package/dist/declarations/src/internal/zod/History.d.ts +5 -5
- package/dist/declarations/src/internal/zod/Patch.d.ts +1 -0
- package/dist/declarations/src/internal/zod/SerializedSchema.d.ts +1 -1
- package/internal/dist/valbuild-shared-internal.cjs.dev.js +14 -1
- package/internal/dist/valbuild-shared-internal.cjs.prod.js +14 -1
- package/internal/dist/valbuild-shared-internal.esm.js +14 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @valbuild/shared
|
|
2
2
|
|
|
3
|
+
## 0.145.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#860](https://github.com/valbuild/val/pull/860) [`a45f595`](https://github.com/valbuild/val/commit/a45f595a5e20b009d4110bbef8ebdc08b2d731d7) Thanks [@freekh](https://github.com/freekh)! - `val publish` and the Studio now tell Val Build which version of the platform's React and TanStack a build was made against. If the platform is updated while a build is running — a project's CI can take several minutes — that build is no longer published onto a platform it was never checked against: the publish stops with a message saying the platform was updated and to build again, and the next build is checked against what it will run on. A build published with `val publish --artifacts` was made elsewhere and does not say, and publishes as before.
|
|
8
|
+
|
|
3
9
|
## 0.145.0
|
|
4
10
|
|
|
5
11
|
### Minor 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
|
* 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`).
|
|
@@ -33,7 +34,7 @@ export declare const PatchGroup: z.ZodObject<{
|
|
|
33
34
|
authorId: z.ZodNullable<z.ZodString>;
|
|
34
35
|
createdAt: z.ZodString;
|
|
35
36
|
publishedAt: z.ZodNullable<z.ZodString>;
|
|
36
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
37
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
37
38
|
}, z.core.$strip>;
|
|
38
39
|
export type PatchGroupT = z.infer<typeof PatchGroup>;
|
|
39
40
|
declare const cookies: z.ZodUnion<readonly [z.ZodLiteral<"val_session">, z.ZodLiteral<"val_enable">, z.ZodLiteral<"val_state">]>;
|
|
@@ -68,7 +69,7 @@ export declare const Api: {
|
|
|
68
69
|
redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
69
70
|
};
|
|
70
71
|
cookies: {
|
|
71
|
-
|
|
72
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
72
73
|
};
|
|
73
74
|
};
|
|
74
75
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -94,7 +95,7 @@ export declare const Api: {
|
|
|
94
95
|
redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
95
96
|
};
|
|
96
97
|
cookies: {
|
|
97
|
-
|
|
98
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
98
99
|
};
|
|
99
100
|
};
|
|
100
101
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -117,7 +118,7 @@ export declare const Api: {
|
|
|
117
118
|
GET: {
|
|
118
119
|
req: {
|
|
119
120
|
cookies: {
|
|
120
|
-
|
|
121
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
121
122
|
};
|
|
122
123
|
};
|
|
123
124
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -140,7 +141,7 @@ export declare const Api: {
|
|
|
140
141
|
redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
141
142
|
};
|
|
142
143
|
cookies: {
|
|
143
|
-
|
|
144
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
144
145
|
};
|
|
145
146
|
};
|
|
146
147
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -152,13 +153,14 @@ export declare const Api: {
|
|
|
152
153
|
status: z.ZodLiteral<302>;
|
|
153
154
|
redirectTo: z.ZodString;
|
|
154
155
|
cookies: z.ZodObject<{
|
|
155
|
-
|
|
156
|
+
val_enable: z.ZodObject<{
|
|
156
157
|
value: z.ZodLiteral<"true">;
|
|
157
158
|
options: z.ZodObject<{
|
|
158
159
|
httpOnly: z.ZodLiteral<false>;
|
|
159
160
|
sameSite: z.ZodLiteral<"lax">;
|
|
160
161
|
}, z.core.$strip>;
|
|
161
|
-
}, z.core.$strip
|
|
162
|
+
}, z.core.$strip>;
|
|
163
|
+
val_state: z.ZodObject<{
|
|
162
164
|
value: z.ZodString;
|
|
163
165
|
options: z.ZodObject<{
|
|
164
166
|
httpOnly: z.ZodLiteral<true>;
|
|
@@ -171,7 +173,7 @@ export declare const Api: {
|
|
|
171
173
|
status: z.ZodLiteral<302>;
|
|
172
174
|
redirectTo: z.ZodString;
|
|
173
175
|
cookies: z.ZodObject<{
|
|
174
|
-
|
|
176
|
+
val_enable: z.ZodObject<{
|
|
175
177
|
value: z.ZodLiteral<"true">;
|
|
176
178
|
options: z.ZodObject<{
|
|
177
179
|
httpOnly: z.ZodLiteral<false>;
|
|
@@ -194,7 +196,7 @@ export declare const Api: {
|
|
|
194
196
|
redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
195
197
|
};
|
|
196
198
|
cookies: {
|
|
197
|
-
|
|
199
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
198
200
|
};
|
|
199
201
|
};
|
|
200
202
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -206,7 +208,7 @@ export declare const Api: {
|
|
|
206
208
|
status: z.ZodLiteral<302>;
|
|
207
209
|
redirectTo: z.ZodString;
|
|
208
210
|
cookies: z.ZodObject<{
|
|
209
|
-
|
|
211
|
+
val_enable: z.ZodObject<{
|
|
210
212
|
value: z.ZodLiteral<"false">;
|
|
211
213
|
}, z.core.$strip>;
|
|
212
214
|
}, z.core.$strip>;
|
|
@@ -229,13 +231,14 @@ export declare const Api: {
|
|
|
229
231
|
status: z.ZodLiteral<302>;
|
|
230
232
|
redirectTo: z.ZodString;
|
|
231
233
|
cookies: z.ZodObject<{
|
|
232
|
-
|
|
234
|
+
val_enable: z.ZodObject<{
|
|
233
235
|
value: z.ZodLiteral<"true">;
|
|
234
236
|
options: z.ZodObject<{
|
|
235
237
|
httpOnly: z.ZodLiteral<false>;
|
|
236
238
|
sameSite: z.ZodLiteral<"lax">;
|
|
237
239
|
}, z.core.$strip>;
|
|
238
|
-
}, z.core.$strip
|
|
240
|
+
}, z.core.$strip>;
|
|
241
|
+
val_state: z.ZodObject<{
|
|
239
242
|
value: z.ZodString;
|
|
240
243
|
options: z.ZodObject<{
|
|
241
244
|
httpOnly: z.ZodLiteral<true>;
|
|
@@ -260,22 +263,24 @@ export declare const Api: {
|
|
|
260
263
|
state: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
261
264
|
};
|
|
262
265
|
cookies: {
|
|
263
|
-
|
|
266
|
+
val_state: z.ZodString;
|
|
264
267
|
};
|
|
265
268
|
};
|
|
266
269
|
res: z.ZodObject<{
|
|
267
270
|
status: z.ZodLiteral<302>;
|
|
268
271
|
redirectTo: z.ZodString;
|
|
269
272
|
cookies: z.ZodObject<{
|
|
270
|
-
|
|
273
|
+
val_state: z.ZodObject<{
|
|
271
274
|
value: z.ZodLiteral<null>;
|
|
272
|
-
}, z.core.$strip
|
|
275
|
+
}, z.core.$strip>;
|
|
276
|
+
val_enable: z.ZodOptional<z.ZodObject<{
|
|
273
277
|
value: z.ZodLiteral<"true">;
|
|
274
278
|
options: z.ZodObject<{
|
|
275
279
|
httpOnly: z.ZodLiteral<false>;
|
|
276
280
|
sameSite: z.ZodLiteral<"lax">;
|
|
277
281
|
}, z.core.$strip>;
|
|
278
|
-
}, z.core.$strip
|
|
282
|
+
}, z.core.$strip>>;
|
|
283
|
+
val_session: z.ZodOptional<z.ZodObject<{
|
|
279
284
|
value: z.ZodString;
|
|
280
285
|
options: z.ZodOptional<z.ZodObject<{
|
|
281
286
|
httpOnly: z.ZodLiteral<true>;
|
|
@@ -299,7 +304,17 @@ export declare const Api: {
|
|
|
299
304
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
300
305
|
status: z.ZodLiteral<200>;
|
|
301
306
|
cookies: z.ZodObject<{
|
|
302
|
-
|
|
307
|
+
val_session: z.ZodOptional<z.ZodObject<{
|
|
308
|
+
value: z.ZodString;
|
|
309
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
310
|
+
httpOnly: z.ZodLiteral<true>;
|
|
311
|
+
sameSite: z.ZodLiteral<"strict">;
|
|
312
|
+
path: z.ZodString;
|
|
313
|
+
secure: z.ZodLiteral<true>;
|
|
314
|
+
expires: z.ZodCustom<Date, Date>;
|
|
315
|
+
}, z.core.$strip>>;
|
|
316
|
+
}, z.core.$strip>>;
|
|
317
|
+
val_state: z.ZodOptional<z.ZodObject<{
|
|
303
318
|
value: z.ZodString;
|
|
304
319
|
options: z.ZodOptional<z.ZodObject<{
|
|
305
320
|
httpOnly: z.ZodLiteral<true>;
|
|
@@ -314,7 +329,17 @@ export declare const Api: {
|
|
|
314
329
|
status: z.ZodLiteral<302>;
|
|
315
330
|
redirectTo: z.ZodString;
|
|
316
331
|
cookies: z.ZodObject<{
|
|
317
|
-
|
|
332
|
+
val_session: z.ZodOptional<z.ZodObject<{
|
|
333
|
+
value: z.ZodString;
|
|
334
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
335
|
+
httpOnly: z.ZodLiteral<true>;
|
|
336
|
+
sameSite: z.ZodLiteral<"strict">;
|
|
337
|
+
path: z.ZodString;
|
|
338
|
+
secure: z.ZodLiteral<true>;
|
|
339
|
+
expires: z.ZodCustom<Date, Date>;
|
|
340
|
+
}, z.core.$strip>>;
|
|
341
|
+
}, z.core.$strip>>;
|
|
342
|
+
val_state: z.ZodOptional<z.ZodObject<{
|
|
318
343
|
value: z.ZodString;
|
|
319
344
|
options: z.ZodOptional<z.ZodObject<{
|
|
320
345
|
httpOnly: z.ZodLiteral<true>;
|
|
@@ -400,13 +425,13 @@ export declare const Api: {
|
|
|
400
425
|
baseSha: z.ZodString;
|
|
401
426
|
schemaSha: z.ZodString;
|
|
402
427
|
sourcesSha: z.ZodString;
|
|
403
|
-
patches: z.ZodArray<z.ZodString & z.ZodType<
|
|
404
|
-
appliedPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
405
|
-
publishingPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
406
|
-
heldBackPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
428
|
+
patches: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
429
|
+
appliedPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
430
|
+
publishingPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
431
|
+
heldBackPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
407
432
|
headCommitSha: z.ZodOptional<z.ZodString>;
|
|
408
433
|
removed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
409
|
-
patchId: z.ZodString & z.ZodType<
|
|
434
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
410
435
|
reason: z.ZodString;
|
|
411
436
|
}, z.core.$strip>>>;
|
|
412
437
|
config: z.ZodObject<{
|
|
@@ -440,19 +465,19 @@ export declare const Api: {
|
|
|
440
465
|
schemaSha: z.ZodString;
|
|
441
466
|
sourcesSha: z.ZodString;
|
|
442
467
|
commitSha: z.ZodOptional<z.ZodString>;
|
|
443
|
-
patches: z.ZodArray<z.ZodString & z.ZodType<
|
|
444
|
-
appliedPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
445
|
-
publishingPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
446
|
-
heldBackPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
468
|
+
patches: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
469
|
+
appliedPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
470
|
+
publishingPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
471
|
+
heldBackPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
447
472
|
headCommitSha: z.ZodOptional<z.ZodString>;
|
|
448
|
-
headPatchId: z.ZodOptional<z.ZodNullable<z.ZodString & z.ZodType<
|
|
473
|
+
headPatchId: z.ZodOptional<z.ZodNullable<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
449
474
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
450
475
|
patchGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
451
476
|
patchGroupId: z.ZodString;
|
|
452
477
|
authorId: z.ZodNullable<z.ZodString>;
|
|
453
478
|
createdAt: z.ZodString;
|
|
454
479
|
publishedAt: z.ZodNullable<z.ZodString>;
|
|
455
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
480
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
456
481
|
}, z.core.$strip>>>;
|
|
457
482
|
commits: z.ZodArray<z.ZodObject<{
|
|
458
483
|
commitSha: z.ZodString;
|
|
@@ -618,7 +643,7 @@ export declare const Api: {
|
|
|
618
643
|
headBaseSha: z.ZodString;
|
|
619
644
|
}, z.core.$strip>, z.ZodObject<{
|
|
620
645
|
type: z.ZodLiteral<"patch">;
|
|
621
|
-
patchId: z.ZodString & z.ZodType<
|
|
646
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
622
647
|
}, z.core.$strip>]>;
|
|
623
648
|
filePath: z.ZodString;
|
|
624
649
|
data: z.ZodAny;
|
|
@@ -636,7 +661,7 @@ export declare const Api: {
|
|
|
636
661
|
status: z.ZodLiteral<200>;
|
|
637
662
|
json: z.ZodObject<{
|
|
638
663
|
filePath: z.ZodString;
|
|
639
|
-
patchId: z.ZodString & z.ZodType<
|
|
664
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
640
665
|
}, z.core.$strip>;
|
|
641
666
|
}, z.core.$strip>]>;
|
|
642
667
|
};
|
|
@@ -727,10 +752,10 @@ export declare const Api: {
|
|
|
727
752
|
DELETE: {
|
|
728
753
|
req: {
|
|
729
754
|
query: {
|
|
730
|
-
id: z.ZodArray<z.ZodString & z.ZodType<
|
|
755
|
+
id: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
731
756
|
};
|
|
732
757
|
body: z.ZodOptional<z.ZodObject<{
|
|
733
|
-
unstagePatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
758
|
+
unstagePatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
734
759
|
reportHeadVersion: z.ZodOptional<z.ZodLiteral<true>>;
|
|
735
760
|
}, z.core.$strip>>;
|
|
736
761
|
cookies: {
|
|
@@ -747,7 +772,7 @@ export declare const Api: {
|
|
|
747
772
|
json: z.ZodObject<{
|
|
748
773
|
message: z.ZodString;
|
|
749
774
|
errors: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
750
|
-
patchId: z.ZodString & z.ZodType<
|
|
775
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
751
776
|
message: z.ZodString;
|
|
752
777
|
publishJobId: z.ZodOptional<z.ZodString>;
|
|
753
778
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -757,8 +782,8 @@ export declare const Api: {
|
|
|
757
782
|
}, z.core.$strip>;
|
|
758
783
|
}, z.core.$strip>, z.ZodObject<{
|
|
759
784
|
status: z.ZodLiteral<200>;
|
|
760
|
-
json: z.ZodUnion<readonly [z.ZodArray<z.ZodString & z.ZodType<
|
|
761
|
-
deleted: z.ZodArray<z.ZodString & z.ZodType<
|
|
785
|
+
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<{
|
|
786
|
+
deleted: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
762
787
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
763
788
|
}, z.core.$strip>]>;
|
|
764
789
|
}, z.core.$strip>]>;
|
|
@@ -771,16 +796,16 @@ export declare const Api: {
|
|
|
771
796
|
headBaseSha: z.ZodString;
|
|
772
797
|
}, z.core.$strip>, z.ZodObject<{
|
|
773
798
|
type: z.ZodLiteral<"patch">;
|
|
774
|
-
patchId: z.ZodString & z.ZodType<
|
|
799
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
775
800
|
}, z.core.$strip>]>;
|
|
776
801
|
sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
777
802
|
patches: z.ZodArray<z.ZodObject<{
|
|
778
803
|
path: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
779
|
-
patchId: z.ZodString & z.ZodType<
|
|
804
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
780
805
|
patch: z.ZodAny;
|
|
781
806
|
}, z.core.$strip>>;
|
|
782
807
|
patchGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
783
|
-
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
808
|
+
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
784
809
|
}, z.core.$strip>;
|
|
785
810
|
cookies: {
|
|
786
811
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -819,13 +844,13 @@ export declare const Api: {
|
|
|
819
844
|
until: z.ZodOptional<z.ZodString>;
|
|
820
845
|
billingUrl: z.ZodOptional<z.ZodString>;
|
|
821
846
|
}, z.core.$strip>;
|
|
822
|
-
newPatchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
847
|
+
newPatchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
823
848
|
parentRef: z.ZodUnion<readonly [z.ZodObject<{
|
|
824
849
|
type: z.ZodLiteral<"head">;
|
|
825
850
|
headBaseSha: z.ZodString;
|
|
826
851
|
}, z.core.$strip>, z.ZodObject<{
|
|
827
852
|
type: z.ZodLiteral<"patch">;
|
|
828
|
-
patchId: z.ZodString & z.ZodType<
|
|
853
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
829
854
|
}, z.core.$strip>]>;
|
|
830
855
|
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
831
856
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
@@ -833,13 +858,13 @@ export declare const Api: {
|
|
|
833
858
|
}, z.core.$strip>, z.ZodObject<{
|
|
834
859
|
status: z.ZodLiteral<200>;
|
|
835
860
|
json: z.ZodObject<{
|
|
836
|
-
newPatchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
861
|
+
newPatchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
837
862
|
parentRef: z.ZodUnion<readonly [z.ZodObject<{
|
|
838
863
|
type: z.ZodLiteral<"head">;
|
|
839
864
|
headBaseSha: z.ZodString;
|
|
840
865
|
}, z.core.$strip>, z.ZodObject<{
|
|
841
866
|
type: z.ZodLiteral<"patch">;
|
|
842
|
-
patchId: z.ZodString & z.ZodType<
|
|
867
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
843
868
|
}, z.core.$strip>]>;
|
|
844
869
|
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
845
870
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
@@ -849,7 +874,7 @@ export declare const Api: {
|
|
|
849
874
|
GET: {
|
|
850
875
|
req: {
|
|
851
876
|
query: {
|
|
852
|
-
patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
877
|
+
patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
853
878
|
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">>>;
|
|
854
879
|
/**
|
|
855
880
|
* Include the patch group annotation in the answer.
|
|
@@ -875,7 +900,7 @@ export declare const Api: {
|
|
|
875
900
|
json: z.ZodObject<{
|
|
876
901
|
message: z.ZodString;
|
|
877
902
|
patchErrors: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
878
|
-
patchId: z.ZodString & z.ZodType<
|
|
903
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
879
904
|
message: z.ZodString;
|
|
880
905
|
publishJobId: z.ZodOptional<z.ZodString>;
|
|
881
906
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -928,7 +953,7 @@ export declare const Api: {
|
|
|
928
953
|
nestedFilePath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
929
954
|
metadata: z.ZodOptional<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
|
|
930
955
|
}, z.core.$strict>], "op">>>;
|
|
931
|
-
patchId: z.ZodString & z.ZodType<
|
|
956
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
932
957
|
createdAt: z.ZodString;
|
|
933
958
|
authorId: z.ZodNullable<z.ZodString>;
|
|
934
959
|
appliedAt: z.ZodNullable<z.ZodObject<{
|
|
@@ -941,13 +966,13 @@ export declare const Api: {
|
|
|
941
966
|
authorId: z.ZodNullable<z.ZodString>;
|
|
942
967
|
createdAt: z.ZodString;
|
|
943
968
|
publishedAt: z.ZodNullable<z.ZodString>;
|
|
944
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
969
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
945
970
|
}, z.core.$strip>>>;
|
|
946
971
|
baseSha: z.ZodString;
|
|
947
972
|
error: z.ZodOptional<z.ZodObject<{
|
|
948
973
|
message: z.ZodString;
|
|
949
974
|
}, z.core.$strip>>;
|
|
950
|
-
errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<
|
|
975
|
+
errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>, z.ZodObject<{
|
|
951
976
|
message: z.ZodString;
|
|
952
977
|
}, z.core.$strip>>>;
|
|
953
978
|
}, z.core.$strip>;
|
|
@@ -959,8 +984,8 @@ export declare const Api: {
|
|
|
959
984
|
req: {
|
|
960
985
|
body: z.ZodObject<{
|
|
961
986
|
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
962
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
963
|
-
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
987
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
988
|
+
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
964
989
|
}, z.core.$strip>;
|
|
965
990
|
cookies: {
|
|
966
991
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -990,7 +1015,7 @@ export declare const Api: {
|
|
|
990
1015
|
status: z.ZodLiteral<200>;
|
|
991
1016
|
json: z.ZodObject<{
|
|
992
1017
|
patchGroupId: z.ZodNullable<z.ZodString>;
|
|
993
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1018
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
994
1019
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
995
1020
|
}, z.core.$strip>;
|
|
996
1021
|
}, z.core.$strip>]>;
|
|
@@ -999,8 +1024,8 @@ export declare const Api: {
|
|
|
999
1024
|
req: {
|
|
1000
1025
|
body: z.ZodObject<{
|
|
1001
1026
|
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
1002
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1003
|
-
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
1027
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1028
|
+
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
1004
1029
|
}, z.core.$strip>;
|
|
1005
1030
|
cookies: {
|
|
1006
1031
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -1030,7 +1055,7 @@ export declare const Api: {
|
|
|
1030
1055
|
status: z.ZodLiteral<200>;
|
|
1031
1056
|
json: z.ZodObject<{
|
|
1032
1057
|
patchGroupId: z.ZodNullable<z.ZodString>;
|
|
1033
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1058
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1034
1059
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
1035
1060
|
}, z.core.$strip>;
|
|
1036
1061
|
}, z.core.$strip>]>;
|
|
@@ -1069,7 +1094,7 @@ export declare const Api: {
|
|
|
1069
1094
|
status: z.ZodLiteral<200>;
|
|
1070
1095
|
json: z.ZodObject<{
|
|
1071
1096
|
schemaSha: z.ZodString;
|
|
1072
|
-
schemas: z.ZodRecord<z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>, z.ZodType<
|
|
1097
|
+
schemas: z.ZodRecord<z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>, z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
1073
1098
|
}, z.core.$strip>;
|
|
1074
1099
|
}, z.core.$strip>]>;
|
|
1075
1100
|
};
|
|
@@ -1096,7 +1121,7 @@ export declare const Api: {
|
|
|
1096
1121
|
* answer and is honoured as one: a group holding nothing renders
|
|
1097
1122
|
* base.
|
|
1098
1123
|
*/
|
|
1099
|
-
patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
1124
|
+
patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
1100
1125
|
/**
|
|
1101
1126
|
* Apply only the patches in the CALLER'S OWN patch groups.
|
|
1102
1127
|
*
|
|
@@ -1160,9 +1185,9 @@ export declare const Api: {
|
|
|
1160
1185
|
source: z.ZodOptional<z.ZodAny>;
|
|
1161
1186
|
baseSource: z.ZodOptional<z.ZodAny>;
|
|
1162
1187
|
patches: z.ZodOptional<z.ZodObject<{
|
|
1163
|
-
applied: z.ZodArray<z.ZodString & z.ZodType<
|
|
1164
|
-
skipped: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
1165
|
-
errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<
|
|
1188
|
+
applied: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1189
|
+
skipped: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
1190
|
+
errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>, z.ZodObject<{
|
|
1166
1191
|
message: z.ZodString;
|
|
1167
1192
|
}, z.core.$strip>>>;
|
|
1168
1193
|
}, z.core.$strip>>;
|
|
@@ -1183,7 +1208,7 @@ export declare const Api: {
|
|
|
1183
1208
|
body: z.ZodObject<{
|
|
1184
1209
|
jobId: z.ZodString;
|
|
1185
1210
|
tab: z.ZodString;
|
|
1186
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1211
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1187
1212
|
}, z.core.$strip>;
|
|
1188
1213
|
cookies: {
|
|
1189
1214
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -1305,7 +1330,7 @@ export declare const Api: {
|
|
|
1305
1330
|
req: {
|
|
1306
1331
|
body: z.ZodObject<{
|
|
1307
1332
|
message: z.ZodOptional<z.ZodString>;
|
|
1308
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1333
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1309
1334
|
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
1310
1335
|
expectedHeadCommitSha: z.ZodOptional<z.ZodString>;
|
|
1311
1336
|
}, z.core.$strip>;
|
|
@@ -1327,7 +1352,7 @@ export declare const Api: {
|
|
|
1327
1352
|
branch: z.ZodOptional<z.ZodString>;
|
|
1328
1353
|
binaryFilesUnread: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1329
1354
|
removed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1330
|
-
patchId: z.ZodString & z.ZodType<
|
|
1355
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
1331
1356
|
moduleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
1332
1357
|
message: z.ZodString;
|
|
1333
1358
|
}, z.core.$strip>>>;
|
|
@@ -1374,7 +1399,7 @@ export declare const Api: {
|
|
|
1374
1399
|
binaryFilePatchErrors: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1375
1400
|
message: z.ZodString;
|
|
1376
1401
|
}, z.core.$strip>>;
|
|
1377
|
-
unappliablePatches: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<
|
|
1402
|
+
unappliablePatches: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>, z.ZodObject<{
|
|
1378
1403
|
moduleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
1379
1404
|
message: z.ZodString;
|
|
1380
1405
|
}, z.core.$strip>>>;
|
|
@@ -1501,8 +1526,8 @@ export declare const Api: {
|
|
|
1501
1526
|
}, z.core.$strip>;
|
|
1502
1527
|
modules: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1503
1528
|
source: z.ZodNullable<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
|
|
1504
|
-
schema: z.ZodNullable<z.ZodType<
|
|
1505
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1529
|
+
schema: z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
1530
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1506
1531
|
changedPaths: z.ZodArray<z.ZodString>;
|
|
1507
1532
|
failures: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1508
1533
|
kind: z.ZodLiteral<"commit-not-found">;
|
|
@@ -1530,7 +1555,7 @@ export declare const Api: {
|
|
|
1530
1555
|
}, z.core.$strip>], "kind">>;
|
|
1531
1556
|
}, z.core.$strip>>;
|
|
1532
1557
|
patches: z.ZodArray<z.ZodObject<{
|
|
1533
|
-
patchId: z.ZodString & z.ZodType<
|
|
1558
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
1534
1559
|
moduleFilePath: z.ZodString;
|
|
1535
1560
|
patch: z.ZodUnknown;
|
|
1536
1561
|
authorId: z.ZodNullable<z.ZodString>;
|
|
@@ -1621,8 +1646,8 @@ export declare const Api: {
|
|
|
1621
1646
|
moduleFilePath: z.ZodString;
|
|
1622
1647
|
module: z.ZodNullable<z.ZodObject<{
|
|
1623
1648
|
source: z.ZodNullable<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
|
|
1624
|
-
schema: z.ZodNullable<z.ZodType<
|
|
1625
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1649
|
+
schema: z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
1650
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1626
1651
|
changedPaths: z.ZodArray<z.ZodString>;
|
|
1627
1652
|
failures: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1628
1653
|
kind: z.ZodLiteral<"commit-not-found">;
|
|
@@ -1773,7 +1798,11 @@ export declare const Api: {
|
|
|
1773
1798
|
req: {
|
|
1774
1799
|
path: z.ZodString;
|
|
1775
1800
|
query: {
|
|
1776
|
-
patch_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString & z.ZodType<
|
|
1801
|
+
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 & {
|
|
1802
|
+
VAL_DATA_TYPE: "PatchId";
|
|
1803
|
+
}, (string & {
|
|
1804
|
+
VAL_DATA_TYPE: "PatchId";
|
|
1805
|
+
})[]>>>;
|
|
1777
1806
|
remote: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
1778
1807
|
};
|
|
1779
1808
|
headers: {
|
|
@@ -1825,7 +1854,7 @@ export declare const Api: {
|
|
|
1825
1854
|
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">>>;
|
|
1826
1855
|
};
|
|
1827
1856
|
cookies: {
|
|
1828
|
-
|
|
1857
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
1829
1858
|
};
|
|
1830
1859
|
};
|
|
1831
1860
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1879,7 +1908,7 @@ export declare const Api: {
|
|
|
1879
1908
|
POST: {
|
|
1880
1909
|
req: {
|
|
1881
1910
|
cookies: {
|
|
1882
|
-
|
|
1911
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
1883
1912
|
};
|
|
1884
1913
|
};
|
|
1885
1914
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1917,7 +1946,7 @@ export declare const Api: {
|
|
|
1917
1946
|
cursor_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
1918
1947
|
};
|
|
1919
1948
|
cookies: {
|
|
1920
|
-
|
|
1949
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
1921
1950
|
};
|
|
1922
1951
|
};
|
|
1923
1952
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1953,7 +1982,7 @@ export declare const Api: {
|
|
|
1953
1982
|
name: z.ZodString;
|
|
1954
1983
|
}, z.core.$strip>;
|
|
1955
1984
|
cookies: {
|
|
1956
|
-
|
|
1985
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
1957
1986
|
};
|
|
1958
1987
|
};
|
|
1959
1988
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1982,7 +2011,7 @@ export declare const Api: {
|
|
|
1982
2011
|
cursor_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
1983
2012
|
};
|
|
1984
2013
|
cookies: {
|
|
1985
|
-
|
|
2014
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
1986
2015
|
};
|
|
1987
2016
|
};
|
|
1988
2017
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2020,13 +2049,13 @@ export declare const Api: {
|
|
|
2020
2049
|
POST: {
|
|
2021
2050
|
req: {
|
|
2022
2051
|
body: z.ZodObject<{
|
|
2023
|
-
patchId: z.ZodString & z.ZodType<
|
|
2052
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
2024
2053
|
parentRef: z.ZodUnion<readonly [z.ZodObject<{
|
|
2025
2054
|
type: z.ZodLiteral<"head">;
|
|
2026
2055
|
headBaseSha: z.ZodString;
|
|
2027
2056
|
}, z.core.$strip>, z.ZodObject<{
|
|
2028
2057
|
type: z.ZodLiteral<"patch">;
|
|
2029
|
-
patchId: z.ZodString & z.ZodType<
|
|
2058
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
2030
2059
|
}, z.core.$strip>]>;
|
|
2031
2060
|
files: z.ZodArray<z.ZodObject<{
|
|
2032
2061
|
filePath: z.ZodString;
|
|
@@ -2035,7 +2064,7 @@ export declare const Api: {
|
|
|
2035
2064
|
}, z.core.$strip>>;
|
|
2036
2065
|
}, z.core.$strip>;
|
|
2037
2066
|
cookies: {
|
|
2038
|
-
|
|
2067
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2039
2068
|
};
|
|
2040
2069
|
};
|
|
2041
2070
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2046,7 +2075,7 @@ export declare const Api: {
|
|
|
2046
2075
|
}, z.core.$strip>, z.ZodObject<{
|
|
2047
2076
|
status: z.ZodLiteral<200>;
|
|
2048
2077
|
json: z.ZodObject<{
|
|
2049
|
-
patchId: z.ZodString & z.ZodType<
|
|
2078
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
2050
2079
|
files: z.ZodArray<z.ZodObject<{
|
|
2051
2080
|
filePath: z.ZodString;
|
|
2052
2081
|
metadata: z.ZodObject<{
|
|
@@ -2081,7 +2110,7 @@ export declare const Api: {
|
|
|
2081
2110
|
contentType: z.ZodString;
|
|
2082
2111
|
}, z.core.$strip>;
|
|
2083
2112
|
cookies: {
|
|
2084
|
-
|
|
2113
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2085
2114
|
};
|
|
2086
2115
|
};
|
|
2087
2116
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2106,7 +2135,7 @@ export declare const Api: {
|
|
|
2106
2135
|
GET: {
|
|
2107
2136
|
req: {
|
|
2108
2137
|
cookies: {
|
|
2109
|
-
|
|
2138
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2110
2139
|
};
|
|
2111
2140
|
};
|
|
2112
2141
|
res: z.ZodObject<{
|
|
@@ -2130,7 +2159,7 @@ export declare const Api: {
|
|
|
2130
2159
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2131
2160
|
};
|
|
2132
2161
|
cookies: {
|
|
2133
|
-
|
|
2162
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2134
2163
|
};
|
|
2135
2164
|
body: z.ZodUnknown;
|
|
2136
2165
|
};
|
|
@@ -2147,7 +2176,7 @@ export declare const Api: {
|
|
|
2147
2176
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2148
2177
|
};
|
|
2149
2178
|
cookies: {
|
|
2150
|
-
|
|
2179
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2151
2180
|
};
|
|
2152
2181
|
body: z.ZodUnknown;
|
|
2153
2182
|
};
|
|
@@ -2164,7 +2193,7 @@ export declare const Api: {
|
|
|
2164
2193
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2165
2194
|
};
|
|
2166
2195
|
cookies: {
|
|
2167
|
-
|
|
2196
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2168
2197
|
};
|
|
2169
2198
|
body: z.ZodUnknown;
|
|
2170
2199
|
};
|
|
@@ -2181,7 +2210,7 @@ export declare const Api: {
|
|
|
2181
2210
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2182
2211
|
};
|
|
2183
2212
|
cookies: {
|
|
2184
|
-
|
|
2213
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2185
2214
|
};
|
|
2186
2215
|
body: z.ZodUnknown;
|
|
2187
2216
|
};
|
|
@@ -50,9 +50,11 @@ export type ContentPublishApi = {
|
|
|
50
50
|
*
|
|
51
51
|
* ## What is deliberately not here
|
|
52
52
|
*
|
|
53
|
-
* No loader URL, no `
|
|
54
|
-
*
|
|
55
|
-
*
|
|
53
|
+
* No loader URL, no `x-platform-project`. This service holds the operator
|
|
54
|
+
* relationship with the build platform and calls it; a publisher talks to
|
|
55
|
+
* this API and nothing else. A publisher does say which base layer it built
|
|
56
|
+
* against (`baseRev` below) -- a fact about its build, which this service
|
|
57
|
+
* forwards -- but never addresses the platform itself. The one exception is the presigned
|
|
56
58
|
* upload URL, which points at object storage -- bytes do not travel through
|
|
57
59
|
* here.
|
|
58
60
|
*
|
|
@@ -73,6 +75,18 @@ export type ContentPublishApi = {
|
|
|
73
75
|
branch: string | null;
|
|
74
76
|
/** Which dependency layer this was built against, sent or not. */
|
|
75
77
|
layerRev: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* Which BASE layer -- the platform's React and TanStack -- this was
|
|
80
|
+
* built against: `base.rev` of the build target the build used.
|
|
81
|
+
*
|
|
82
|
+
* Content forwards it to the build platform as the build's own, and
|
|
83
|
+
* the platform refuses a new build whose base layer it no longer
|
|
84
|
+
* serves: one deployed while the build ran, which the build's layer
|
|
85
|
+
* was never checked against. Left out when it is not known -- a build
|
|
86
|
+
* made elsewhere and published with `--artifacts` -- which publishes
|
|
87
|
+
* as every build did before.
|
|
88
|
+
*/
|
|
89
|
+
baseRev?: string | null;
|
|
76
90
|
/**
|
|
77
91
|
* Whether the app links its own CSS.
|
|
78
92
|
*
|
|
@@ -88,6 +88,11 @@ declare const buildTargetResponse: z.ZodObject<{
|
|
|
88
88
|
flightServer: z.ZodString;
|
|
89
89
|
serverFnBase: z.ZodString;
|
|
90
90
|
}, z.core.$strip>;
|
|
91
|
+
pins: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
92
|
+
exports: z.ZodOptional<z.ZodObject<{
|
|
93
|
+
worker: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
94
|
+
browser: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
95
|
+
}, z.core.$strip>>;
|
|
91
96
|
}, z.core.$strip>;
|
|
92
97
|
project: z.ZodObject<{
|
|
93
98
|
rev: z.ZodNullable<z.ZodString>;
|
|
@@ -177,6 +182,11 @@ declare const updateTargetResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
177
182
|
flightServer: z.ZodString;
|
|
178
183
|
serverFnBase: z.ZodString;
|
|
179
184
|
}, z.core.$strip>;
|
|
185
|
+
pins: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
186
|
+
exports: z.ZodOptional<z.ZodObject<{
|
|
187
|
+
worker: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
188
|
+
browser: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
189
|
+
}, z.core.$strip>>;
|
|
180
190
|
}, z.core.$strip>;
|
|
181
191
|
project: z.ZodObject<{
|
|
182
192
|
rev: z.ZodNullable<z.ZodString>;
|
|
@@ -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;
|
|
@@ -65,8 +65,8 @@ export declare const BinaryFileRef: z.ZodObject<{
|
|
|
65
65
|
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
|
-
schema: z.ZodNullable<z.ZodType<
|
|
69
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
68
|
+
schema: z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
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">;
|
|
@@ -110,8 +110,8 @@ export declare const HistoricalPatchSet: z.ZodObject<{
|
|
|
110
110
|
}, z.core.$strip>;
|
|
111
111
|
modules: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
112
112
|
source: z.ZodNullable<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
|
|
113
|
-
schema: z.ZodNullable<z.ZodType<
|
|
114
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
113
|
+
schema: z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
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>;
|
|
@@ -7861,7 +7861,20 @@ var buildTargetResponse = zod.z.object({
|
|
|
7861
7861
|
rscRuntimePath: zod.z.string(),
|
|
7862
7862
|
flightServer: zod.z.string(),
|
|
7863
7863
|
serverFnBase: zod.z.string()
|
|
7864
|
-
})
|
|
7864
|
+
}),
|
|
7865
|
+
/*
|
|
7866
|
+
* What the base layer is built from and what its chunks export, which
|
|
7867
|
+
* `val publish` checks a project's layer against (`BuildTarget.base` in
|
|
7868
|
+
* @valbuild/tanstack-build). Declared, because `z.object` DROPS a key it
|
|
7869
|
+
* does not name: left out, they never reached the build, and every
|
|
7870
|
+
* publish skipped both checks while saying the platform had not sent them.
|
|
7871
|
+
* Optional, for a platform that predates them.
|
|
7872
|
+
*/
|
|
7873
|
+
pins: zod.z.record(zod.z.string(), zod.z.string()).optional(),
|
|
7874
|
+
exports: zod.z.object({
|
|
7875
|
+
worker: zod.z.record(zod.z.string(), zod.z.array(zod.z.string())),
|
|
7876
|
+
browser: zod.z.record(zod.z.string(), zod.z.array(zod.z.string()))
|
|
7877
|
+
}).optional()
|
|
7865
7878
|
}),
|
|
7866
7879
|
project: zod.z.object({
|
|
7867
7880
|
rev: zod.z.string().nullable(),
|
|
@@ -7861,7 +7861,20 @@ var buildTargetResponse = zod.z.object({
|
|
|
7861
7861
|
rscRuntimePath: zod.z.string(),
|
|
7862
7862
|
flightServer: zod.z.string(),
|
|
7863
7863
|
serverFnBase: zod.z.string()
|
|
7864
|
-
})
|
|
7864
|
+
}),
|
|
7865
|
+
/*
|
|
7866
|
+
* What the base layer is built from and what its chunks export, which
|
|
7867
|
+
* `val publish` checks a project's layer against (`BuildTarget.base` in
|
|
7868
|
+
* @valbuild/tanstack-build). Declared, because `z.object` DROPS a key it
|
|
7869
|
+
* does not name: left out, they never reached the build, and every
|
|
7870
|
+
* publish skipped both checks while saying the platform had not sent them.
|
|
7871
|
+
* Optional, for a platform that predates them.
|
|
7872
|
+
*/
|
|
7873
|
+
pins: zod.z.record(zod.z.string(), zod.z.string()).optional(),
|
|
7874
|
+
exports: zod.z.object({
|
|
7875
|
+
worker: zod.z.record(zod.z.string(), zod.z.array(zod.z.string())),
|
|
7876
|
+
browser: zod.z.record(zod.z.string(), zod.z.array(zod.z.string()))
|
|
7877
|
+
}).optional()
|
|
7865
7878
|
}),
|
|
7866
7879
|
project: zod.z.object({
|
|
7867
7880
|
rev: zod.z.string().nullable(),
|
|
@@ -7854,7 +7854,20 @@ var buildTargetResponse = z.object({
|
|
|
7854
7854
|
rscRuntimePath: z.string(),
|
|
7855
7855
|
flightServer: z.string(),
|
|
7856
7856
|
serverFnBase: z.string()
|
|
7857
|
-
})
|
|
7857
|
+
}),
|
|
7858
|
+
/*
|
|
7859
|
+
* What the base layer is built from and what its chunks export, which
|
|
7860
|
+
* `val publish` checks a project's layer against (`BuildTarget.base` in
|
|
7861
|
+
* @valbuild/tanstack-build). Declared, because `z.object` DROPS a key it
|
|
7862
|
+
* does not name: left out, they never reached the build, and every
|
|
7863
|
+
* publish skipped both checks while saying the platform had not sent them.
|
|
7864
|
+
* Optional, for a platform that predates them.
|
|
7865
|
+
*/
|
|
7866
|
+
pins: z.record(z.string(), z.string()).optional(),
|
|
7867
|
+
exports: z.object({
|
|
7868
|
+
worker: z.record(z.string(), z.array(z.string())),
|
|
7869
|
+
browser: z.record(z.string(), z.array(z.string()))
|
|
7870
|
+
}).optional()
|
|
7858
7871
|
}),
|
|
7859
7872
|
project: z.object({
|
|
7860
7873
|
rev: z.string().nullable(),
|