@valbuild/shared 0.144.4 → 0.144.9
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 +20 -0
- package/dist/declarations/src/internal/ApiRoutes.d.ts +113 -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/internal/dist/valbuild-shared-internal.cjs.dev.js +32 -3
- package/internal/dist/valbuild-shared-internal.cjs.prod.js +32 -3
- package/internal/dist/valbuild-shared-internal.esm.js +32 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @valbuild/shared
|
|
2
2
|
|
|
3
|
+
## 0.144.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#846](https://github.com/valbuild/val/pull/846) [`c44b561`](https://github.com/valbuild/val/commit/c44b5611cf9e557b6b744704703dbff0cb8b23b0) Thanks [@freekh](https://github.com/freekh)! - History is shown for projects hosted by Val Build and inside a proposal, where it lists the proposal's own saves. On the site of a project with proposals, a restore — one field, one module, or "Put everything back" — opens a new proposal with the restored values in it, so it is reviewed there before it is published.
|
|
8
|
+
|
|
9
|
+
History also reads a hosted project's first commit, which has no parent: "Go back to this point" failed on it.
|
|
10
|
+
|
|
11
|
+
"Go back to this point" on the site brings back the code as well as the content: the proposal it opens stages the files of the build the site served then, and serves that build at once.
|
|
12
|
+
|
|
13
|
+
## 0.144.5
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [#839](https://github.com/valbuild/val/pull/839) [`39e8db3`](https://github.com/valbuild/val/commit/39e8db34cf56c6c43ffff0d3acfe8e0839fa55a9) Thanks [@freekh](https://github.com/freekh)! - A publish that breaks a page no longer stops everyone else publishing. On val.build, the changes it had are held back: the Publish button says how many, and publishes go without them until someone presses Try again or Discard on the failed publish.
|
|
18
|
+
|
|
19
|
+
Publish can be pressed while this tab is still building the last publish. The new publish waits its turn and is built when the current one ends.
|
|
20
|
+
|
|
21
|
+
Discarding a change that is being published now says so, instead of failing silently. From there you can cancel the publish, which then discards the change, or wait for the publish to end.
|
|
22
|
+
|
|
3
23
|
## 0.144.4
|
|
4
24
|
|
|
5
25
|
### 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,13 @@ 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>>>>;
|
|
416
|
+
heldBackPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
391
417
|
headCommitSha: z.ZodOptional<z.ZodString>;
|
|
392
418
|
removed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
393
|
-
patchId: z.ZodString & z.ZodType<
|
|
419
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
394
420
|
reason: z.ZodString;
|
|
395
421
|
}, z.core.$strip>>>;
|
|
396
422
|
config: z.ZodObject<{
|
|
@@ -415,6 +441,7 @@ export declare const Api: {
|
|
|
415
441
|
name: z.ZodString;
|
|
416
442
|
branch: z.ZodString;
|
|
417
443
|
}, z.core.$strip>>;
|
|
444
|
+
historyBranch: z.ZodOptional<z.ZodString>;
|
|
418
445
|
}, z.core.$strip>, z.ZodObject<{
|
|
419
446
|
type: z.ZodLiteral<"use-websocket">;
|
|
420
447
|
url: z.ZodString;
|
|
@@ -423,18 +450,19 @@ export declare const Api: {
|
|
|
423
450
|
schemaSha: z.ZodString;
|
|
424
451
|
sourcesSha: z.ZodString;
|
|
425
452
|
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<
|
|
453
|
+
patches: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
454
|
+
appliedPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
455
|
+
publishingPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
456
|
+
heldBackPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
429
457
|
headCommitSha: z.ZodOptional<z.ZodString>;
|
|
430
|
-
headPatchId: z.ZodOptional<z.ZodNullable<z.ZodString & z.ZodType<
|
|
458
|
+
headPatchId: z.ZodOptional<z.ZodNullable<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
431
459
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
432
460
|
patchGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
433
461
|
patchGroupId: z.ZodString;
|
|
434
462
|
authorId: z.ZodNullable<z.ZodString>;
|
|
435
463
|
createdAt: z.ZodString;
|
|
436
464
|
publishedAt: z.ZodNullable<z.ZodString>;
|
|
437
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
465
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
438
466
|
}, z.core.$strip>>>;
|
|
439
467
|
commits: z.ZodArray<z.ZodObject<{
|
|
440
468
|
commitSha: z.ZodString;
|
|
@@ -474,6 +502,7 @@ export declare const Api: {
|
|
|
474
502
|
name: z.ZodString;
|
|
475
503
|
branch: z.ZodString;
|
|
476
504
|
}, z.core.$strip>>;
|
|
505
|
+
historyBranch: z.ZodOptional<z.ZodString>;
|
|
477
506
|
}, z.core.$strip>]>;
|
|
478
507
|
}, z.core.$strip>]>;
|
|
479
508
|
};
|
|
@@ -599,7 +628,7 @@ export declare const Api: {
|
|
|
599
628
|
headBaseSha: z.ZodString;
|
|
600
629
|
}, z.core.$strip>, z.ZodObject<{
|
|
601
630
|
type: z.ZodLiteral<"patch">;
|
|
602
|
-
patchId: z.ZodString & z.ZodType<
|
|
631
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
603
632
|
}, z.core.$strip>]>;
|
|
604
633
|
filePath: z.ZodString;
|
|
605
634
|
data: z.ZodAny;
|
|
@@ -617,7 +646,7 @@ export declare const Api: {
|
|
|
617
646
|
status: z.ZodLiteral<200>;
|
|
618
647
|
json: z.ZodObject<{
|
|
619
648
|
filePath: z.ZodString;
|
|
620
|
-
patchId: z.ZodString & z.ZodType<
|
|
649
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
621
650
|
}, z.core.$strip>;
|
|
622
651
|
}, z.core.$strip>]>;
|
|
623
652
|
};
|
|
@@ -708,10 +737,10 @@ export declare const Api: {
|
|
|
708
737
|
DELETE: {
|
|
709
738
|
req: {
|
|
710
739
|
query: {
|
|
711
|
-
id: z.ZodArray<z.ZodString & z.ZodType<
|
|
740
|
+
id: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
712
741
|
};
|
|
713
742
|
body: z.ZodOptional<z.ZodObject<{
|
|
714
|
-
unstagePatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
743
|
+
unstagePatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
715
744
|
reportHeadVersion: z.ZodOptional<z.ZodLiteral<true>>;
|
|
716
745
|
}, z.core.$strip>>;
|
|
717
746
|
cookies: {
|
|
@@ -728,8 +757,9 @@ export declare const Api: {
|
|
|
728
757
|
json: z.ZodObject<{
|
|
729
758
|
message: z.ZodString;
|
|
730
759
|
errors: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
731
|
-
patchId: z.ZodString & z.ZodType<
|
|
760
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
732
761
|
message: z.ZodString;
|
|
762
|
+
publishJobId: z.ZodOptional<z.ZodString>;
|
|
733
763
|
}, z.core.$strip>, z.ZodObject<{
|
|
734
764
|
parentPatchId: z.ZodString;
|
|
735
765
|
message: z.ZodString;
|
|
@@ -737,8 +767,8 @@ export declare const Api: {
|
|
|
737
767
|
}, z.core.$strip>;
|
|
738
768
|
}, z.core.$strip>, z.ZodObject<{
|
|
739
769
|
status: z.ZodLiteral<200>;
|
|
740
|
-
json: z.ZodUnion<readonly [z.ZodArray<z.ZodString & z.ZodType<
|
|
741
|
-
deleted: z.ZodArray<z.ZodString & z.ZodType<
|
|
770
|
+
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<{
|
|
771
|
+
deleted: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
742
772
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
743
773
|
}, z.core.$strip>]>;
|
|
744
774
|
}, z.core.$strip>]>;
|
|
@@ -751,16 +781,16 @@ export declare const Api: {
|
|
|
751
781
|
headBaseSha: z.ZodString;
|
|
752
782
|
}, z.core.$strip>, z.ZodObject<{
|
|
753
783
|
type: z.ZodLiteral<"patch">;
|
|
754
|
-
patchId: z.ZodString & z.ZodType<
|
|
784
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
755
785
|
}, z.core.$strip>]>;
|
|
756
786
|
sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
757
787
|
patches: z.ZodArray<z.ZodObject<{
|
|
758
788
|
path: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
759
|
-
patchId: z.ZodString & z.ZodType<
|
|
789
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
760
790
|
patch: z.ZodAny;
|
|
761
791
|
}, z.core.$strip>>;
|
|
762
792
|
patchGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
763
|
-
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
793
|
+
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
764
794
|
}, z.core.$strip>;
|
|
765
795
|
cookies: {
|
|
766
796
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -791,13 +821,13 @@ export declare const Api: {
|
|
|
791
821
|
}, z.core.$strip>, z.ZodObject<{
|
|
792
822
|
status: z.ZodLiteral<200>;
|
|
793
823
|
json: z.ZodObject<{
|
|
794
|
-
newPatchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
824
|
+
newPatchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
795
825
|
parentRef: z.ZodUnion<readonly [z.ZodObject<{
|
|
796
826
|
type: z.ZodLiteral<"head">;
|
|
797
827
|
headBaseSha: z.ZodString;
|
|
798
828
|
}, z.core.$strip>, z.ZodObject<{
|
|
799
829
|
type: z.ZodLiteral<"patch">;
|
|
800
|
-
patchId: z.ZodString & z.ZodType<
|
|
830
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
801
831
|
}, z.core.$strip>]>;
|
|
802
832
|
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
803
833
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
@@ -807,7 +837,7 @@ export declare const Api: {
|
|
|
807
837
|
GET: {
|
|
808
838
|
req: {
|
|
809
839
|
query: {
|
|
810
|
-
patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
840
|
+
patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
811
841
|
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
842
|
/**
|
|
813
843
|
* Include the patch group annotation in the answer.
|
|
@@ -833,8 +863,9 @@ export declare const Api: {
|
|
|
833
863
|
json: z.ZodObject<{
|
|
834
864
|
message: z.ZodString;
|
|
835
865
|
patchErrors: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
836
|
-
patchId: z.ZodString & z.ZodType<
|
|
866
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
837
867
|
message: z.ZodString;
|
|
868
|
+
publishJobId: z.ZodOptional<z.ZodString>;
|
|
838
869
|
}, z.core.$strip>, z.ZodObject<{
|
|
839
870
|
parentPatchId: z.ZodString;
|
|
840
871
|
message: z.ZodString;
|
|
@@ -885,7 +916,7 @@ export declare const Api: {
|
|
|
885
916
|
nestedFilePath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
886
917
|
metadata: z.ZodOptional<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
|
|
887
918
|
}, z.core.$strict>], "op">>>;
|
|
888
|
-
patchId: z.ZodString & z.ZodType<
|
|
919
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
889
920
|
createdAt: z.ZodString;
|
|
890
921
|
authorId: z.ZodNullable<z.ZodString>;
|
|
891
922
|
appliedAt: z.ZodNullable<z.ZodObject<{
|
|
@@ -898,13 +929,13 @@ export declare const Api: {
|
|
|
898
929
|
authorId: z.ZodNullable<z.ZodString>;
|
|
899
930
|
createdAt: z.ZodString;
|
|
900
931
|
publishedAt: z.ZodNullable<z.ZodString>;
|
|
901
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
932
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
902
933
|
}, z.core.$strip>>>;
|
|
903
934
|
baseSha: z.ZodString;
|
|
904
935
|
error: z.ZodOptional<z.ZodObject<{
|
|
905
936
|
message: z.ZodString;
|
|
906
937
|
}, z.core.$strip>>;
|
|
907
|
-
errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<
|
|
938
|
+
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
939
|
message: z.ZodString;
|
|
909
940
|
}, z.core.$strip>>>;
|
|
910
941
|
}, z.core.$strip>;
|
|
@@ -916,8 +947,8 @@ export declare const Api: {
|
|
|
916
947
|
req: {
|
|
917
948
|
body: z.ZodObject<{
|
|
918
949
|
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
919
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
920
|
-
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
950
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
951
|
+
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
921
952
|
}, z.core.$strip>;
|
|
922
953
|
cookies: {
|
|
923
954
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -947,7 +978,7 @@ export declare const Api: {
|
|
|
947
978
|
status: z.ZodLiteral<200>;
|
|
948
979
|
json: z.ZodObject<{
|
|
949
980
|
patchGroupId: z.ZodNullable<z.ZodString>;
|
|
950
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
981
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
951
982
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
952
983
|
}, z.core.$strip>;
|
|
953
984
|
}, z.core.$strip>]>;
|
|
@@ -956,8 +987,8 @@ export declare const Api: {
|
|
|
956
987
|
req: {
|
|
957
988
|
body: z.ZodObject<{
|
|
958
989
|
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
959
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
960
|
-
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
990
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
991
|
+
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
961
992
|
}, z.core.$strip>;
|
|
962
993
|
cookies: {
|
|
963
994
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -987,7 +1018,7 @@ export declare const Api: {
|
|
|
987
1018
|
status: z.ZodLiteral<200>;
|
|
988
1019
|
json: z.ZodObject<{
|
|
989
1020
|
patchGroupId: z.ZodNullable<z.ZodString>;
|
|
990
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1021
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
991
1022
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
992
1023
|
}, z.core.$strip>;
|
|
993
1024
|
}, z.core.$strip>]>;
|
|
@@ -1053,7 +1084,7 @@ export declare const Api: {
|
|
|
1053
1084
|
* answer and is honoured as one: a group holding nothing renders
|
|
1054
1085
|
* base.
|
|
1055
1086
|
*/
|
|
1056
|
-
patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
1087
|
+
patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
1057
1088
|
/**
|
|
1058
1089
|
* Apply only the patches in the CALLER'S OWN patch groups.
|
|
1059
1090
|
*
|
|
@@ -1117,9 +1148,9 @@ export declare const Api: {
|
|
|
1117
1148
|
source: z.ZodOptional<z.ZodAny>;
|
|
1118
1149
|
baseSource: z.ZodOptional<z.ZodAny>;
|
|
1119
1150
|
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<
|
|
1151
|
+
applied: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1152
|
+
skipped: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
1153
|
+
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
1154
|
message: z.ZodString;
|
|
1124
1155
|
}, z.core.$strip>>>;
|
|
1125
1156
|
}, z.core.$strip>>;
|
|
@@ -1140,7 +1171,7 @@ export declare const Api: {
|
|
|
1140
1171
|
body: z.ZodObject<{
|
|
1141
1172
|
jobId: z.ZodString;
|
|
1142
1173
|
tab: z.ZodString;
|
|
1143
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1174
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1144
1175
|
}, z.core.$strip>;
|
|
1145
1176
|
cookies: {
|
|
1146
1177
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -1262,7 +1293,7 @@ export declare const Api: {
|
|
|
1262
1293
|
req: {
|
|
1263
1294
|
body: z.ZodObject<{
|
|
1264
1295
|
message: z.ZodOptional<z.ZodString>;
|
|
1265
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1296
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1266
1297
|
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
1267
1298
|
expectedHeadCommitSha: z.ZodOptional<z.ZodString>;
|
|
1268
1299
|
}, z.core.$strip>;
|
|
@@ -1284,7 +1315,7 @@ export declare const Api: {
|
|
|
1284
1315
|
branch: z.ZodOptional<z.ZodString>;
|
|
1285
1316
|
binaryFilesUnread: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1286
1317
|
removed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1287
|
-
patchId: z.ZodString & z.ZodType<
|
|
1318
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
1288
1319
|
moduleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
1289
1320
|
message: z.ZodString;
|
|
1290
1321
|
}, z.core.$strip>>>;
|
|
@@ -1331,7 +1362,7 @@ export declare const Api: {
|
|
|
1331
1362
|
binaryFilePatchErrors: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1332
1363
|
message: z.ZodString;
|
|
1333
1364
|
}, z.core.$strip>>;
|
|
1334
|
-
unappliablePatches: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<
|
|
1365
|
+
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
1366
|
moduleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
1336
1367
|
message: z.ZodString;
|
|
1337
1368
|
}, z.core.$strip>>>;
|
|
@@ -1459,7 +1490,7 @@ export declare const Api: {
|
|
|
1459
1490
|
modules: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1460
1491
|
source: z.ZodNullable<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
|
|
1461
1492
|
schema: z.ZodNullable<z.ZodType<SerializedSchemaT, unknown, z.core.$ZodTypeInternals<SerializedSchemaT, unknown>>>;
|
|
1462
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1493
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1463
1494
|
changedPaths: z.ZodArray<z.ZodString>;
|
|
1464
1495
|
failures: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1465
1496
|
kind: z.ZodLiteral<"commit-not-found">;
|
|
@@ -1487,7 +1518,7 @@ export declare const Api: {
|
|
|
1487
1518
|
}, z.core.$strip>], "kind">>;
|
|
1488
1519
|
}, z.core.$strip>>;
|
|
1489
1520
|
patches: z.ZodArray<z.ZodObject<{
|
|
1490
|
-
patchId: z.ZodString & z.ZodType<
|
|
1521
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
1491
1522
|
moduleFilePath: z.ZodString;
|
|
1492
1523
|
patch: z.ZodUnknown;
|
|
1493
1524
|
authorId: z.ZodNullable<z.ZodString>;
|
|
@@ -1579,7 +1610,7 @@ export declare const Api: {
|
|
|
1579
1610
|
module: z.ZodNullable<z.ZodObject<{
|
|
1580
1611
|
source: z.ZodNullable<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
|
|
1581
1612
|
schema: z.ZodNullable<z.ZodType<SerializedSchemaT, unknown, z.core.$ZodTypeInternals<SerializedSchemaT, unknown>>>;
|
|
1582
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1613
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1583
1614
|
changedPaths: z.ZodArray<z.ZodString>;
|
|
1584
1615
|
failures: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1585
1616
|
kind: z.ZodLiteral<"commit-not-found">;
|
|
@@ -1730,7 +1761,11 @@ export declare const Api: {
|
|
|
1730
1761
|
req: {
|
|
1731
1762
|
path: z.ZodString;
|
|
1732
1763
|
query: {
|
|
1733
|
-
patch_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString & z.ZodType<
|
|
1764
|
+
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 & {
|
|
1765
|
+
VAL_DATA_TYPE: "PatchId";
|
|
1766
|
+
}, (string & {
|
|
1767
|
+
VAL_DATA_TYPE: "PatchId";
|
|
1768
|
+
})[]>>>;
|
|
1734
1769
|
remote: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
1735
1770
|
};
|
|
1736
1771
|
headers: {
|
|
@@ -1782,7 +1817,7 @@ export declare const Api: {
|
|
|
1782
1817
|
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
1818
|
};
|
|
1784
1819
|
cookies: {
|
|
1785
|
-
|
|
1820
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
1786
1821
|
};
|
|
1787
1822
|
};
|
|
1788
1823
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1836,7 +1871,7 @@ export declare const Api: {
|
|
|
1836
1871
|
POST: {
|
|
1837
1872
|
req: {
|
|
1838
1873
|
cookies: {
|
|
1839
|
-
|
|
1874
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
1840
1875
|
};
|
|
1841
1876
|
};
|
|
1842
1877
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1874,7 +1909,7 @@ export declare const Api: {
|
|
|
1874
1909
|
cursor_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
1875
1910
|
};
|
|
1876
1911
|
cookies: {
|
|
1877
|
-
|
|
1912
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
1878
1913
|
};
|
|
1879
1914
|
};
|
|
1880
1915
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1910,7 +1945,7 @@ export declare const Api: {
|
|
|
1910
1945
|
name: z.ZodString;
|
|
1911
1946
|
}, z.core.$strip>;
|
|
1912
1947
|
cookies: {
|
|
1913
|
-
|
|
1948
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
1914
1949
|
};
|
|
1915
1950
|
};
|
|
1916
1951
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1939,7 +1974,7 @@ export declare const Api: {
|
|
|
1939
1974
|
cursor_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
1940
1975
|
};
|
|
1941
1976
|
cookies: {
|
|
1942
|
-
|
|
1977
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
1943
1978
|
};
|
|
1944
1979
|
};
|
|
1945
1980
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1977,13 +2012,13 @@ export declare const Api: {
|
|
|
1977
2012
|
POST: {
|
|
1978
2013
|
req: {
|
|
1979
2014
|
body: z.ZodObject<{
|
|
1980
|
-
patchId: z.ZodString & z.ZodType<
|
|
2015
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
1981
2016
|
parentRef: z.ZodUnion<readonly [z.ZodObject<{
|
|
1982
2017
|
type: z.ZodLiteral<"head">;
|
|
1983
2018
|
headBaseSha: z.ZodString;
|
|
1984
2019
|
}, z.core.$strip>, z.ZodObject<{
|
|
1985
2020
|
type: z.ZodLiteral<"patch">;
|
|
1986
|
-
patchId: z.ZodString & z.ZodType<
|
|
2021
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
1987
2022
|
}, z.core.$strip>]>;
|
|
1988
2023
|
files: z.ZodArray<z.ZodObject<{
|
|
1989
2024
|
filePath: z.ZodString;
|
|
@@ -1992,7 +2027,7 @@ export declare const Api: {
|
|
|
1992
2027
|
}, z.core.$strip>>;
|
|
1993
2028
|
}, z.core.$strip>;
|
|
1994
2029
|
cookies: {
|
|
1995
|
-
|
|
2030
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
1996
2031
|
};
|
|
1997
2032
|
};
|
|
1998
2033
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2003,7 +2038,7 @@ export declare const Api: {
|
|
|
2003
2038
|
}, z.core.$strip>, z.ZodObject<{
|
|
2004
2039
|
status: z.ZodLiteral<200>;
|
|
2005
2040
|
json: z.ZodObject<{
|
|
2006
|
-
patchId: z.ZodString & z.ZodType<
|
|
2041
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
2007
2042
|
files: z.ZodArray<z.ZodObject<{
|
|
2008
2043
|
filePath: z.ZodString;
|
|
2009
2044
|
metadata: z.ZodObject<{
|
|
@@ -2038,7 +2073,7 @@ export declare const Api: {
|
|
|
2038
2073
|
contentType: z.ZodString;
|
|
2039
2074
|
}, z.core.$strip>;
|
|
2040
2075
|
cookies: {
|
|
2041
|
-
|
|
2076
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2042
2077
|
};
|
|
2043
2078
|
};
|
|
2044
2079
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2063,7 +2098,7 @@ export declare const Api: {
|
|
|
2063
2098
|
GET: {
|
|
2064
2099
|
req: {
|
|
2065
2100
|
cookies: {
|
|
2066
|
-
|
|
2101
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2067
2102
|
};
|
|
2068
2103
|
};
|
|
2069
2104
|
res: z.ZodObject<{
|
|
@@ -2087,7 +2122,7 @@ export declare const Api: {
|
|
|
2087
2122
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2088
2123
|
};
|
|
2089
2124
|
cookies: {
|
|
2090
|
-
|
|
2125
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2091
2126
|
};
|
|
2092
2127
|
body: z.ZodUnknown;
|
|
2093
2128
|
};
|
|
@@ -2104,7 +2139,7 @@ export declare const Api: {
|
|
|
2104
2139
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2105
2140
|
};
|
|
2106
2141
|
cookies: {
|
|
2107
|
-
|
|
2142
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2108
2143
|
};
|
|
2109
2144
|
body: z.ZodUnknown;
|
|
2110
2145
|
};
|
|
@@ -2121,7 +2156,7 @@ export declare const Api: {
|
|
|
2121
2156
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2122
2157
|
};
|
|
2123
2158
|
cookies: {
|
|
2124
|
-
|
|
2159
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2125
2160
|
};
|
|
2126
2161
|
body: z.ZodUnknown;
|
|
2127
2162
|
};
|
|
@@ -2138,7 +2173,7 @@ export declare const Api: {
|
|
|
2138
2173
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2139
2174
|
};
|
|
2140
2175
|
cookies: {
|
|
2141
|
-
|
|
2176
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2142
2177
|
};
|
|
2143
2178
|
body: z.ZodUnknown;
|
|
2144
2179
|
};
|
|
@@ -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>;
|
|
@@ -1725,7 +1725,12 @@ var PatchGroup = zod.z.object({
|
|
|
1725
1725
|
});
|
|
1726
1726
|
var GenericPatchError = zod.z.union([zod.z.object({
|
|
1727
1727
|
patchId: PatchId,
|
|
1728
|
-
message: zod.z.string()
|
|
1728
|
+
message: zod.z.string(),
|
|
1729
|
+
/**
|
|
1730
|
+
* The publish job that holds the patch, when that is why it was not
|
|
1731
|
+
* deleted. Optional: only a discard of a change being published says it.
|
|
1732
|
+
*/
|
|
1733
|
+
publishJobId: zod.z.string().optional()
|
|
1729
1734
|
}), zod.z.object({
|
|
1730
1735
|
parentPatchId: zod.z.string(),
|
|
1731
1736
|
message: zod.z.string()
|
|
@@ -2083,6 +2088,12 @@ var Api = {
|
|
|
2083
2088
|
* answer: a job that ends without sealing gives them back.
|
|
2084
2089
|
*/
|
|
2085
2090
|
publishingPatches: zod.z.array(PatchId).optional(),
|
|
2091
|
+
/*
|
|
2092
|
+
* Of `patches`, the ones a publish that failed on its content
|
|
2093
|
+
* holds back from later publishes, until Try again or Discard.
|
|
2094
|
+
* The Studio does not count these as ready to publish.
|
|
2095
|
+
*/
|
|
2096
|
+
heldBackPatches: zod.z.array(PatchId).optional(),
|
|
2086
2097
|
/**
|
|
2087
2098
|
* The newest commit, which is the PUBLISH head.
|
|
2088
2099
|
*
|
|
@@ -2145,7 +2156,13 @@ var Api = {
|
|
|
2145
2156
|
* on the site. What the Studio's switcher says it is in, and
|
|
2146
2157
|
* where its Save goes (valbuild/home `docs/proposals.md`).
|
|
2147
2158
|
*/
|
|
2148
|
-
proposal: StatProposal.optional()
|
|
2159
|
+
proposal: StatProposal.optional(),
|
|
2160
|
+
/**
|
|
2161
|
+
* The branch History lists: the proposal's in a proposal, else
|
|
2162
|
+
* the git mirror's or the one content reports for the project.
|
|
2163
|
+
* Absent where there is no history to show.
|
|
2164
|
+
*/
|
|
2165
|
+
historyBranch: zod.z.string().optional()
|
|
2149
2166
|
}), zod.z.object({
|
|
2150
2167
|
type: zod.z.literal("use-websocket"),
|
|
2151
2168
|
url: zod.z.string(),
|
|
@@ -2185,6 +2202,12 @@ var Api = {
|
|
|
2185
2202
|
* answer: a job that ends without sealing gives them back.
|
|
2186
2203
|
*/
|
|
2187
2204
|
publishingPatches: zod.z.array(PatchId).optional(),
|
|
2205
|
+
/*
|
|
2206
|
+
* Of `patches`, the ones a publish that failed on its content
|
|
2207
|
+
* holds back from later publishes, until Try again or Discard.
|
|
2208
|
+
* The Studio does not count these as ready to publish.
|
|
2209
|
+
*/
|
|
2210
|
+
heldBackPatches: zod.z.array(PatchId).optional(),
|
|
2188
2211
|
/**
|
|
2189
2212
|
* The newest commit, which is the PUBLISH head.
|
|
2190
2213
|
*
|
|
@@ -2269,7 +2292,13 @@ var Api = {
|
|
|
2269
2292
|
* on the site. What the Studio's switcher says it is in, and
|
|
2270
2293
|
* where its Save goes (valbuild/home `docs/proposals.md`).
|
|
2271
2294
|
*/
|
|
2272
|
-
proposal: StatProposal.optional()
|
|
2295
|
+
proposal: StatProposal.optional(),
|
|
2296
|
+
/**
|
|
2297
|
+
* The branch History lists: the proposal's in a proposal, else
|
|
2298
|
+
* the git mirror's or the one content reports for the project.
|
|
2299
|
+
* Absent where there is no history to show.
|
|
2300
|
+
*/
|
|
2301
|
+
historyBranch: zod.z.string().optional()
|
|
2273
2302
|
})])
|
|
2274
2303
|
})])
|
|
2275
2304
|
}
|
|
@@ -1725,7 +1725,12 @@ var PatchGroup = zod.z.object({
|
|
|
1725
1725
|
});
|
|
1726
1726
|
var GenericPatchError = zod.z.union([zod.z.object({
|
|
1727
1727
|
patchId: PatchId,
|
|
1728
|
-
message: zod.z.string()
|
|
1728
|
+
message: zod.z.string(),
|
|
1729
|
+
/**
|
|
1730
|
+
* The publish job that holds the patch, when that is why it was not
|
|
1731
|
+
* deleted. Optional: only a discard of a change being published says it.
|
|
1732
|
+
*/
|
|
1733
|
+
publishJobId: zod.z.string().optional()
|
|
1729
1734
|
}), zod.z.object({
|
|
1730
1735
|
parentPatchId: zod.z.string(),
|
|
1731
1736
|
message: zod.z.string()
|
|
@@ -2083,6 +2088,12 @@ var Api = {
|
|
|
2083
2088
|
* answer: a job that ends without sealing gives them back.
|
|
2084
2089
|
*/
|
|
2085
2090
|
publishingPatches: zod.z.array(PatchId).optional(),
|
|
2091
|
+
/*
|
|
2092
|
+
* Of `patches`, the ones a publish that failed on its content
|
|
2093
|
+
* holds back from later publishes, until Try again or Discard.
|
|
2094
|
+
* The Studio does not count these as ready to publish.
|
|
2095
|
+
*/
|
|
2096
|
+
heldBackPatches: zod.z.array(PatchId).optional(),
|
|
2086
2097
|
/**
|
|
2087
2098
|
* The newest commit, which is the PUBLISH head.
|
|
2088
2099
|
*
|
|
@@ -2145,7 +2156,13 @@ var Api = {
|
|
|
2145
2156
|
* on the site. What the Studio's switcher says it is in, and
|
|
2146
2157
|
* where its Save goes (valbuild/home `docs/proposals.md`).
|
|
2147
2158
|
*/
|
|
2148
|
-
proposal: StatProposal.optional()
|
|
2159
|
+
proposal: StatProposal.optional(),
|
|
2160
|
+
/**
|
|
2161
|
+
* The branch History lists: the proposal's in a proposal, else
|
|
2162
|
+
* the git mirror's or the one content reports for the project.
|
|
2163
|
+
* Absent where there is no history to show.
|
|
2164
|
+
*/
|
|
2165
|
+
historyBranch: zod.z.string().optional()
|
|
2149
2166
|
}), zod.z.object({
|
|
2150
2167
|
type: zod.z.literal("use-websocket"),
|
|
2151
2168
|
url: zod.z.string(),
|
|
@@ -2185,6 +2202,12 @@ var Api = {
|
|
|
2185
2202
|
* answer: a job that ends without sealing gives them back.
|
|
2186
2203
|
*/
|
|
2187
2204
|
publishingPatches: zod.z.array(PatchId).optional(),
|
|
2205
|
+
/*
|
|
2206
|
+
* Of `patches`, the ones a publish that failed on its content
|
|
2207
|
+
* holds back from later publishes, until Try again or Discard.
|
|
2208
|
+
* The Studio does not count these as ready to publish.
|
|
2209
|
+
*/
|
|
2210
|
+
heldBackPatches: zod.z.array(PatchId).optional(),
|
|
2188
2211
|
/**
|
|
2189
2212
|
* The newest commit, which is the PUBLISH head.
|
|
2190
2213
|
*
|
|
@@ -2269,7 +2292,13 @@ var Api = {
|
|
|
2269
2292
|
* on the site. What the Studio's switcher says it is in, and
|
|
2270
2293
|
* where its Save goes (valbuild/home `docs/proposals.md`).
|
|
2271
2294
|
*/
|
|
2272
|
-
proposal: StatProposal.optional()
|
|
2295
|
+
proposal: StatProposal.optional(),
|
|
2296
|
+
/**
|
|
2297
|
+
* The branch History lists: the proposal's in a proposal, else
|
|
2298
|
+
* the git mirror's or the one content reports for the project.
|
|
2299
|
+
* Absent where there is no history to show.
|
|
2300
|
+
*/
|
|
2301
|
+
historyBranch: zod.z.string().optional()
|
|
2273
2302
|
})])
|
|
2274
2303
|
})])
|
|
2275
2304
|
}
|
|
@@ -1718,7 +1718,12 @@ var PatchGroup = z.object({
|
|
|
1718
1718
|
});
|
|
1719
1719
|
var GenericPatchError = z.union([z.object({
|
|
1720
1720
|
patchId: PatchId,
|
|
1721
|
-
message: z.string()
|
|
1721
|
+
message: z.string(),
|
|
1722
|
+
/**
|
|
1723
|
+
* The publish job that holds the patch, when that is why it was not
|
|
1724
|
+
* deleted. Optional: only a discard of a change being published says it.
|
|
1725
|
+
*/
|
|
1726
|
+
publishJobId: z.string().optional()
|
|
1722
1727
|
}), z.object({
|
|
1723
1728
|
parentPatchId: z.string(),
|
|
1724
1729
|
message: z.string()
|
|
@@ -2076,6 +2081,12 @@ var Api = {
|
|
|
2076
2081
|
* answer: a job that ends without sealing gives them back.
|
|
2077
2082
|
*/
|
|
2078
2083
|
publishingPatches: z.array(PatchId).optional(),
|
|
2084
|
+
/*
|
|
2085
|
+
* Of `patches`, the ones a publish that failed on its content
|
|
2086
|
+
* holds back from later publishes, until Try again or Discard.
|
|
2087
|
+
* The Studio does not count these as ready to publish.
|
|
2088
|
+
*/
|
|
2089
|
+
heldBackPatches: z.array(PatchId).optional(),
|
|
2079
2090
|
/**
|
|
2080
2091
|
* The newest commit, which is the PUBLISH head.
|
|
2081
2092
|
*
|
|
@@ -2138,7 +2149,13 @@ var Api = {
|
|
|
2138
2149
|
* on the site. What the Studio's switcher says it is in, and
|
|
2139
2150
|
* where its Save goes (valbuild/home `docs/proposals.md`).
|
|
2140
2151
|
*/
|
|
2141
|
-
proposal: StatProposal.optional()
|
|
2152
|
+
proposal: StatProposal.optional(),
|
|
2153
|
+
/**
|
|
2154
|
+
* The branch History lists: the proposal's in a proposal, else
|
|
2155
|
+
* the git mirror's or the one content reports for the project.
|
|
2156
|
+
* Absent where there is no history to show.
|
|
2157
|
+
*/
|
|
2158
|
+
historyBranch: z.string().optional()
|
|
2142
2159
|
}), z.object({
|
|
2143
2160
|
type: z.literal("use-websocket"),
|
|
2144
2161
|
url: z.string(),
|
|
@@ -2178,6 +2195,12 @@ var Api = {
|
|
|
2178
2195
|
* answer: a job that ends without sealing gives them back.
|
|
2179
2196
|
*/
|
|
2180
2197
|
publishingPatches: z.array(PatchId).optional(),
|
|
2198
|
+
/*
|
|
2199
|
+
* Of `patches`, the ones a publish that failed on its content
|
|
2200
|
+
* holds back from later publishes, until Try again or Discard.
|
|
2201
|
+
* The Studio does not count these as ready to publish.
|
|
2202
|
+
*/
|
|
2203
|
+
heldBackPatches: z.array(PatchId).optional(),
|
|
2181
2204
|
/**
|
|
2182
2205
|
* The newest commit, which is the PUBLISH head.
|
|
2183
2206
|
*
|
|
@@ -2262,7 +2285,13 @@ var Api = {
|
|
|
2262
2285
|
* on the site. What the Studio's switcher says it is in, and
|
|
2263
2286
|
* where its Save goes (valbuild/home `docs/proposals.md`).
|
|
2264
2287
|
*/
|
|
2265
|
-
proposal: StatProposal.optional()
|
|
2288
|
+
proposal: StatProposal.optional(),
|
|
2289
|
+
/**
|
|
2290
|
+
* The branch History lists: the proposal's in a proposal, else
|
|
2291
|
+
* the git mirror's or the one content reports for the project.
|
|
2292
|
+
* Absent where there is no history to show.
|
|
2293
|
+
*/
|
|
2294
|
+
historyBranch: z.string().optional()
|
|
2266
2295
|
})])
|
|
2267
2296
|
})])
|
|
2268
2297
|
}
|