@valbuild/shared 0.144.4 → 0.144.5
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 +10 -0
- package/dist/declarations/src/internal/ApiRoutes.d.ts +114 -81
- 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 +18 -1
- package/internal/dist/valbuild-shared-internal.cjs.prod.js +18 -1
- package/internal/dist/valbuild-shared-internal.esm.js +18 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @valbuild/shared
|
|
2
2
|
|
|
3
|
+
## 0.144.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#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.
|
|
8
|
+
|
|
9
|
+
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.
|
|
10
|
+
|
|
11
|
+
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.
|
|
12
|
+
|
|
3
13
|
## 0.144.4
|
|
4
14
|
|
|
5
15
|
### 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<{
|
|
@@ -423,18 +449,19 @@ export declare const Api: {
|
|
|
423
449
|
schemaSha: z.ZodString;
|
|
424
450
|
sourcesSha: z.ZodString;
|
|
425
451
|
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<
|
|
452
|
+
patches: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
453
|
+
appliedPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
454
|
+
publishingPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
455
|
+
heldBackPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
429
456
|
headCommitSha: z.ZodOptional<z.ZodString>;
|
|
430
|
-
headPatchId: z.ZodOptional<z.ZodNullable<z.ZodString & z.ZodType<
|
|
457
|
+
headPatchId: z.ZodOptional<z.ZodNullable<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
431
458
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
432
459
|
patchGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
433
460
|
patchGroupId: z.ZodString;
|
|
434
461
|
authorId: z.ZodNullable<z.ZodString>;
|
|
435
462
|
createdAt: z.ZodString;
|
|
436
463
|
publishedAt: z.ZodNullable<z.ZodString>;
|
|
437
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
464
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
438
465
|
}, z.core.$strip>>>;
|
|
439
466
|
commits: z.ZodArray<z.ZodObject<{
|
|
440
467
|
commitSha: z.ZodString;
|
|
@@ -599,7 +626,7 @@ export declare const Api: {
|
|
|
599
626
|
headBaseSha: z.ZodString;
|
|
600
627
|
}, z.core.$strip>, z.ZodObject<{
|
|
601
628
|
type: z.ZodLiteral<"patch">;
|
|
602
|
-
patchId: z.ZodString & z.ZodType<
|
|
629
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
603
630
|
}, z.core.$strip>]>;
|
|
604
631
|
filePath: z.ZodString;
|
|
605
632
|
data: z.ZodAny;
|
|
@@ -617,7 +644,7 @@ export declare const Api: {
|
|
|
617
644
|
status: z.ZodLiteral<200>;
|
|
618
645
|
json: z.ZodObject<{
|
|
619
646
|
filePath: z.ZodString;
|
|
620
|
-
patchId: z.ZodString & z.ZodType<
|
|
647
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
621
648
|
}, z.core.$strip>;
|
|
622
649
|
}, z.core.$strip>]>;
|
|
623
650
|
};
|
|
@@ -708,10 +735,10 @@ export declare const Api: {
|
|
|
708
735
|
DELETE: {
|
|
709
736
|
req: {
|
|
710
737
|
query: {
|
|
711
|
-
id: z.ZodArray<z.ZodString & z.ZodType<
|
|
738
|
+
id: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
712
739
|
};
|
|
713
740
|
body: z.ZodOptional<z.ZodObject<{
|
|
714
|
-
unstagePatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
741
|
+
unstagePatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
715
742
|
reportHeadVersion: z.ZodOptional<z.ZodLiteral<true>>;
|
|
716
743
|
}, z.core.$strip>>;
|
|
717
744
|
cookies: {
|
|
@@ -728,8 +755,9 @@ export declare const Api: {
|
|
|
728
755
|
json: z.ZodObject<{
|
|
729
756
|
message: z.ZodString;
|
|
730
757
|
errors: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
731
|
-
patchId: z.ZodString & z.ZodType<
|
|
758
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
732
759
|
message: z.ZodString;
|
|
760
|
+
publishJobId: z.ZodOptional<z.ZodString>;
|
|
733
761
|
}, z.core.$strip>, z.ZodObject<{
|
|
734
762
|
parentPatchId: z.ZodString;
|
|
735
763
|
message: z.ZodString;
|
|
@@ -737,8 +765,8 @@ export declare const Api: {
|
|
|
737
765
|
}, z.core.$strip>;
|
|
738
766
|
}, z.core.$strip>, z.ZodObject<{
|
|
739
767
|
status: z.ZodLiteral<200>;
|
|
740
|
-
json: z.ZodUnion<readonly [z.ZodArray<z.ZodString & z.ZodType<
|
|
741
|
-
deleted: z.ZodArray<z.ZodString & z.ZodType<
|
|
768
|
+
json: z.ZodUnion<readonly [z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>, z.ZodObject<{
|
|
769
|
+
deleted: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
742
770
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
743
771
|
}, z.core.$strip>]>;
|
|
744
772
|
}, z.core.$strip>]>;
|
|
@@ -751,16 +779,16 @@ export declare const Api: {
|
|
|
751
779
|
headBaseSha: z.ZodString;
|
|
752
780
|
}, z.core.$strip>, z.ZodObject<{
|
|
753
781
|
type: z.ZodLiteral<"patch">;
|
|
754
|
-
patchId: z.ZodString & z.ZodType<
|
|
782
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
755
783
|
}, z.core.$strip>]>;
|
|
756
784
|
sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
757
785
|
patches: z.ZodArray<z.ZodObject<{
|
|
758
786
|
path: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
759
|
-
patchId: z.ZodString & z.ZodType<
|
|
787
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
760
788
|
patch: z.ZodAny;
|
|
761
789
|
}, z.core.$strip>>;
|
|
762
790
|
patchGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
763
|
-
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
791
|
+
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
764
792
|
}, z.core.$strip>;
|
|
765
793
|
cookies: {
|
|
766
794
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -791,13 +819,13 @@ export declare const Api: {
|
|
|
791
819
|
}, z.core.$strip>, z.ZodObject<{
|
|
792
820
|
status: z.ZodLiteral<200>;
|
|
793
821
|
json: z.ZodObject<{
|
|
794
|
-
newPatchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
822
|
+
newPatchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
795
823
|
parentRef: z.ZodUnion<readonly [z.ZodObject<{
|
|
796
824
|
type: z.ZodLiteral<"head">;
|
|
797
825
|
headBaseSha: z.ZodString;
|
|
798
826
|
}, z.core.$strip>, z.ZodObject<{
|
|
799
827
|
type: z.ZodLiteral<"patch">;
|
|
800
|
-
patchId: z.ZodString & z.ZodType<
|
|
828
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
801
829
|
}, z.core.$strip>]>;
|
|
802
830
|
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
803
831
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
@@ -807,7 +835,7 @@ export declare const Api: {
|
|
|
807
835
|
GET: {
|
|
808
836
|
req: {
|
|
809
837
|
query: {
|
|
810
|
-
patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
838
|
+
patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
811
839
|
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
840
|
/**
|
|
813
841
|
* Include the patch group annotation in the answer.
|
|
@@ -833,8 +861,9 @@ export declare const Api: {
|
|
|
833
861
|
json: z.ZodObject<{
|
|
834
862
|
message: z.ZodString;
|
|
835
863
|
patchErrors: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
836
|
-
patchId: z.ZodString & z.ZodType<
|
|
864
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
837
865
|
message: z.ZodString;
|
|
866
|
+
publishJobId: z.ZodOptional<z.ZodString>;
|
|
838
867
|
}, z.core.$strip>, z.ZodObject<{
|
|
839
868
|
parentPatchId: z.ZodString;
|
|
840
869
|
message: z.ZodString;
|
|
@@ -885,7 +914,7 @@ export declare const Api: {
|
|
|
885
914
|
nestedFilePath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
886
915
|
metadata: z.ZodOptional<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
|
|
887
916
|
}, z.core.$strict>], "op">>>;
|
|
888
|
-
patchId: z.ZodString & z.ZodType<
|
|
917
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
889
918
|
createdAt: z.ZodString;
|
|
890
919
|
authorId: z.ZodNullable<z.ZodString>;
|
|
891
920
|
appliedAt: z.ZodNullable<z.ZodObject<{
|
|
@@ -898,13 +927,13 @@ export declare const Api: {
|
|
|
898
927
|
authorId: z.ZodNullable<z.ZodString>;
|
|
899
928
|
createdAt: z.ZodString;
|
|
900
929
|
publishedAt: z.ZodNullable<z.ZodString>;
|
|
901
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
930
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
902
931
|
}, z.core.$strip>>>;
|
|
903
932
|
baseSha: z.ZodString;
|
|
904
933
|
error: z.ZodOptional<z.ZodObject<{
|
|
905
934
|
message: z.ZodString;
|
|
906
935
|
}, z.core.$strip>>;
|
|
907
|
-
errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<
|
|
936
|
+
errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>, z.ZodObject<{
|
|
908
937
|
message: z.ZodString;
|
|
909
938
|
}, z.core.$strip>>>;
|
|
910
939
|
}, z.core.$strip>;
|
|
@@ -916,8 +945,8 @@ export declare const Api: {
|
|
|
916
945
|
req: {
|
|
917
946
|
body: z.ZodObject<{
|
|
918
947
|
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
919
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
920
|
-
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
948
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
949
|
+
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
921
950
|
}, z.core.$strip>;
|
|
922
951
|
cookies: {
|
|
923
952
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -947,7 +976,7 @@ export declare const Api: {
|
|
|
947
976
|
status: z.ZodLiteral<200>;
|
|
948
977
|
json: z.ZodObject<{
|
|
949
978
|
patchGroupId: z.ZodNullable<z.ZodString>;
|
|
950
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
979
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
951
980
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
952
981
|
}, z.core.$strip>;
|
|
953
982
|
}, z.core.$strip>]>;
|
|
@@ -956,8 +985,8 @@ export declare const Api: {
|
|
|
956
985
|
req: {
|
|
957
986
|
body: z.ZodObject<{
|
|
958
987
|
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
959
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
960
|
-
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
988
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
989
|
+
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
961
990
|
}, z.core.$strip>;
|
|
962
991
|
cookies: {
|
|
963
992
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -987,7 +1016,7 @@ export declare const Api: {
|
|
|
987
1016
|
status: z.ZodLiteral<200>;
|
|
988
1017
|
json: z.ZodObject<{
|
|
989
1018
|
patchGroupId: z.ZodNullable<z.ZodString>;
|
|
990
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1019
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
991
1020
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
992
1021
|
}, z.core.$strip>;
|
|
993
1022
|
}, z.core.$strip>]>;
|
|
@@ -1026,7 +1055,7 @@ export declare const Api: {
|
|
|
1026
1055
|
status: z.ZodLiteral<200>;
|
|
1027
1056
|
json: z.ZodObject<{
|
|
1028
1057
|
schemaSha: z.ZodString;
|
|
1029
|
-
schemas: z.ZodRecord<z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>, z.ZodType<
|
|
1058
|
+
schemas: z.ZodRecord<z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>, z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
1030
1059
|
}, z.core.$strip>;
|
|
1031
1060
|
}, z.core.$strip>]>;
|
|
1032
1061
|
};
|
|
@@ -1053,7 +1082,7 @@ export declare const Api: {
|
|
|
1053
1082
|
* answer and is honoured as one: a group holding nothing renders
|
|
1054
1083
|
* base.
|
|
1055
1084
|
*/
|
|
1056
|
-
patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
1085
|
+
patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
1057
1086
|
/**
|
|
1058
1087
|
* Apply only the patches in the CALLER'S OWN patch groups.
|
|
1059
1088
|
*
|
|
@@ -1117,9 +1146,9 @@ export declare const Api: {
|
|
|
1117
1146
|
source: z.ZodOptional<z.ZodAny>;
|
|
1118
1147
|
baseSource: z.ZodOptional<z.ZodAny>;
|
|
1119
1148
|
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<
|
|
1149
|
+
applied: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1150
|
+
skipped: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
1151
|
+
errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>, z.ZodObject<{
|
|
1123
1152
|
message: z.ZodString;
|
|
1124
1153
|
}, z.core.$strip>>>;
|
|
1125
1154
|
}, z.core.$strip>>;
|
|
@@ -1140,7 +1169,7 @@ export declare const Api: {
|
|
|
1140
1169
|
body: z.ZodObject<{
|
|
1141
1170
|
jobId: z.ZodString;
|
|
1142
1171
|
tab: z.ZodString;
|
|
1143
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1172
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1144
1173
|
}, z.core.$strip>;
|
|
1145
1174
|
cookies: {
|
|
1146
1175
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -1262,7 +1291,7 @@ export declare const Api: {
|
|
|
1262
1291
|
req: {
|
|
1263
1292
|
body: z.ZodObject<{
|
|
1264
1293
|
message: z.ZodOptional<z.ZodString>;
|
|
1265
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1294
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1266
1295
|
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
1267
1296
|
expectedHeadCommitSha: z.ZodOptional<z.ZodString>;
|
|
1268
1297
|
}, z.core.$strip>;
|
|
@@ -1284,7 +1313,7 @@ export declare const Api: {
|
|
|
1284
1313
|
branch: z.ZodOptional<z.ZodString>;
|
|
1285
1314
|
binaryFilesUnread: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1286
1315
|
removed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1287
|
-
patchId: z.ZodString & z.ZodType<
|
|
1316
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
1288
1317
|
moduleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
1289
1318
|
message: z.ZodString;
|
|
1290
1319
|
}, z.core.$strip>>>;
|
|
@@ -1331,7 +1360,7 @@ export declare const Api: {
|
|
|
1331
1360
|
binaryFilePatchErrors: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1332
1361
|
message: z.ZodString;
|
|
1333
1362
|
}, z.core.$strip>>;
|
|
1334
|
-
unappliablePatches: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<
|
|
1363
|
+
unappliablePatches: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>, z.ZodObject<{
|
|
1335
1364
|
moduleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
1336
1365
|
message: z.ZodString;
|
|
1337
1366
|
}, z.core.$strip>>>;
|
|
@@ -1458,8 +1487,8 @@ export declare const Api: {
|
|
|
1458
1487
|
}, z.core.$strip>;
|
|
1459
1488
|
modules: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1460
1489
|
source: z.ZodNullable<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
|
|
1461
|
-
schema: z.ZodNullable<z.ZodType<
|
|
1462
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1490
|
+
schema: z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
1491
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1463
1492
|
changedPaths: z.ZodArray<z.ZodString>;
|
|
1464
1493
|
failures: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1465
1494
|
kind: z.ZodLiteral<"commit-not-found">;
|
|
@@ -1487,7 +1516,7 @@ export declare const Api: {
|
|
|
1487
1516
|
}, z.core.$strip>], "kind">>;
|
|
1488
1517
|
}, z.core.$strip>>;
|
|
1489
1518
|
patches: z.ZodArray<z.ZodObject<{
|
|
1490
|
-
patchId: z.ZodString & z.ZodType<
|
|
1519
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
1491
1520
|
moduleFilePath: z.ZodString;
|
|
1492
1521
|
patch: z.ZodUnknown;
|
|
1493
1522
|
authorId: z.ZodNullable<z.ZodString>;
|
|
@@ -1578,8 +1607,8 @@ export declare const Api: {
|
|
|
1578
1607
|
moduleFilePath: z.ZodString;
|
|
1579
1608
|
module: z.ZodNullable<z.ZodObject<{
|
|
1580
1609
|
source: z.ZodNullable<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
|
|
1581
|
-
schema: z.ZodNullable<z.ZodType<
|
|
1582
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1610
|
+
schema: z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
1611
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1583
1612
|
changedPaths: z.ZodArray<z.ZodString>;
|
|
1584
1613
|
failures: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1585
1614
|
kind: z.ZodLiteral<"commit-not-found">;
|
|
@@ -1730,7 +1759,11 @@ export declare const Api: {
|
|
|
1730
1759
|
req: {
|
|
1731
1760
|
path: z.ZodString;
|
|
1732
1761
|
query: {
|
|
1733
|
-
patch_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString & z.ZodType<
|
|
1762
|
+
patch_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>, z.ZodTransform<string & {
|
|
1763
|
+
VAL_DATA_TYPE: "PatchId";
|
|
1764
|
+
}, (string & {
|
|
1765
|
+
VAL_DATA_TYPE: "PatchId";
|
|
1766
|
+
})[]>>>;
|
|
1734
1767
|
remote: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
1735
1768
|
};
|
|
1736
1769
|
headers: {
|
|
@@ -1782,7 +1815,7 @@ export declare const Api: {
|
|
|
1782
1815
|
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
1816
|
};
|
|
1784
1817
|
cookies: {
|
|
1785
|
-
|
|
1818
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
1786
1819
|
};
|
|
1787
1820
|
};
|
|
1788
1821
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1836,7 +1869,7 @@ export declare const Api: {
|
|
|
1836
1869
|
POST: {
|
|
1837
1870
|
req: {
|
|
1838
1871
|
cookies: {
|
|
1839
|
-
|
|
1872
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
1840
1873
|
};
|
|
1841
1874
|
};
|
|
1842
1875
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1874,7 +1907,7 @@ export declare const Api: {
|
|
|
1874
1907
|
cursor_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
1875
1908
|
};
|
|
1876
1909
|
cookies: {
|
|
1877
|
-
|
|
1910
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
1878
1911
|
};
|
|
1879
1912
|
};
|
|
1880
1913
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1910,7 +1943,7 @@ export declare const Api: {
|
|
|
1910
1943
|
name: z.ZodString;
|
|
1911
1944
|
}, z.core.$strip>;
|
|
1912
1945
|
cookies: {
|
|
1913
|
-
|
|
1946
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
1914
1947
|
};
|
|
1915
1948
|
};
|
|
1916
1949
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1939,7 +1972,7 @@ export declare const Api: {
|
|
|
1939
1972
|
cursor_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
1940
1973
|
};
|
|
1941
1974
|
cookies: {
|
|
1942
|
-
|
|
1975
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
1943
1976
|
};
|
|
1944
1977
|
};
|
|
1945
1978
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1977,13 +2010,13 @@ export declare const Api: {
|
|
|
1977
2010
|
POST: {
|
|
1978
2011
|
req: {
|
|
1979
2012
|
body: z.ZodObject<{
|
|
1980
|
-
patchId: z.ZodString & z.ZodType<
|
|
2013
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
1981
2014
|
parentRef: z.ZodUnion<readonly [z.ZodObject<{
|
|
1982
2015
|
type: z.ZodLiteral<"head">;
|
|
1983
2016
|
headBaseSha: z.ZodString;
|
|
1984
2017
|
}, z.core.$strip>, z.ZodObject<{
|
|
1985
2018
|
type: z.ZodLiteral<"patch">;
|
|
1986
|
-
patchId: z.ZodString & z.ZodType<
|
|
2019
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
1987
2020
|
}, z.core.$strip>]>;
|
|
1988
2021
|
files: z.ZodArray<z.ZodObject<{
|
|
1989
2022
|
filePath: z.ZodString;
|
|
@@ -1992,7 +2025,7 @@ export declare const Api: {
|
|
|
1992
2025
|
}, z.core.$strip>>;
|
|
1993
2026
|
}, z.core.$strip>;
|
|
1994
2027
|
cookies: {
|
|
1995
|
-
|
|
2028
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
1996
2029
|
};
|
|
1997
2030
|
};
|
|
1998
2031
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2003,7 +2036,7 @@ export declare const Api: {
|
|
|
2003
2036
|
}, z.core.$strip>, z.ZodObject<{
|
|
2004
2037
|
status: z.ZodLiteral<200>;
|
|
2005
2038
|
json: z.ZodObject<{
|
|
2006
|
-
patchId: z.ZodString & z.ZodType<
|
|
2039
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
2007
2040
|
files: z.ZodArray<z.ZodObject<{
|
|
2008
2041
|
filePath: z.ZodString;
|
|
2009
2042
|
metadata: z.ZodObject<{
|
|
@@ -2038,7 +2071,7 @@ export declare const Api: {
|
|
|
2038
2071
|
contentType: z.ZodString;
|
|
2039
2072
|
}, z.core.$strip>;
|
|
2040
2073
|
cookies: {
|
|
2041
|
-
|
|
2074
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2042
2075
|
};
|
|
2043
2076
|
};
|
|
2044
2077
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2063,7 +2096,7 @@ export declare const Api: {
|
|
|
2063
2096
|
GET: {
|
|
2064
2097
|
req: {
|
|
2065
2098
|
cookies: {
|
|
2066
|
-
|
|
2099
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2067
2100
|
};
|
|
2068
2101
|
};
|
|
2069
2102
|
res: z.ZodObject<{
|
|
@@ -2087,7 +2120,7 @@ export declare const Api: {
|
|
|
2087
2120
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2088
2121
|
};
|
|
2089
2122
|
cookies: {
|
|
2090
|
-
|
|
2123
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2091
2124
|
};
|
|
2092
2125
|
body: z.ZodUnknown;
|
|
2093
2126
|
};
|
|
@@ -2104,7 +2137,7 @@ export declare const Api: {
|
|
|
2104
2137
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2105
2138
|
};
|
|
2106
2139
|
cookies: {
|
|
2107
|
-
|
|
2140
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2108
2141
|
};
|
|
2109
2142
|
body: z.ZodUnknown;
|
|
2110
2143
|
};
|
|
@@ -2121,7 +2154,7 @@ export declare const Api: {
|
|
|
2121
2154
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2122
2155
|
};
|
|
2123
2156
|
cookies: {
|
|
2124
|
-
|
|
2157
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2125
2158
|
};
|
|
2126
2159
|
body: z.ZodUnknown;
|
|
2127
2160
|
};
|
|
@@ -2138,7 +2171,7 @@ export declare const Api: {
|
|
|
2138
2171
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2139
2172
|
};
|
|
2140
2173
|
cookies: {
|
|
2141
|
-
|
|
2174
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2142
2175
|
};
|
|
2143
2176
|
body: z.ZodUnknown;
|
|
2144
2177
|
};
|
|
@@ -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>;
|
|
@@ -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
|
*
|
|
@@ -2185,6 +2196,12 @@ var Api = {
|
|
|
2185
2196
|
* answer: a job that ends without sealing gives them back.
|
|
2186
2197
|
*/
|
|
2187
2198
|
publishingPatches: zod.z.array(PatchId).optional(),
|
|
2199
|
+
/*
|
|
2200
|
+
* Of `patches`, the ones a publish that failed on its content
|
|
2201
|
+
* holds back from later publishes, until Try again or Discard.
|
|
2202
|
+
* The Studio does not count these as ready to publish.
|
|
2203
|
+
*/
|
|
2204
|
+
heldBackPatches: zod.z.array(PatchId).optional(),
|
|
2188
2205
|
/**
|
|
2189
2206
|
* The newest commit, which is the PUBLISH head.
|
|
2190
2207
|
*
|
|
@@ -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
|
*
|
|
@@ -2185,6 +2196,12 @@ var Api = {
|
|
|
2185
2196
|
* answer: a job that ends without sealing gives them back.
|
|
2186
2197
|
*/
|
|
2187
2198
|
publishingPatches: zod.z.array(PatchId).optional(),
|
|
2199
|
+
/*
|
|
2200
|
+
* Of `patches`, the ones a publish that failed on its content
|
|
2201
|
+
* holds back from later publishes, until Try again or Discard.
|
|
2202
|
+
* The Studio does not count these as ready to publish.
|
|
2203
|
+
*/
|
|
2204
|
+
heldBackPatches: zod.z.array(PatchId).optional(),
|
|
2188
2205
|
/**
|
|
2189
2206
|
* The newest commit, which is the PUBLISH head.
|
|
2190
2207
|
*
|
|
@@ -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
|
*
|
|
@@ -2178,6 +2189,12 @@ var Api = {
|
|
|
2178
2189
|
* answer: a job that ends without sealing gives them back.
|
|
2179
2190
|
*/
|
|
2180
2191
|
publishingPatches: z.array(PatchId).optional(),
|
|
2192
|
+
/*
|
|
2193
|
+
* Of `patches`, the ones a publish that failed on its content
|
|
2194
|
+
* holds back from later publishes, until Try again or Discard.
|
|
2195
|
+
* The Studio does not count these as ready to publish.
|
|
2196
|
+
*/
|
|
2197
|
+
heldBackPatches: z.array(PatchId).optional(),
|
|
2181
2198
|
/**
|
|
2182
2199
|
* The newest commit, which is the PUBLISH head.
|
|
2183
2200
|
*
|