@valbuild/shared 0.145.1 → 0.146.2
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 +46 -0
- package/dist/declarations/src/internal/ApiRoutes.d.ts +130 -273
- package/dist/declarations/src/internal/chainHead.d.ts +5 -7
- package/dist/declarations/src/internal/index.d.ts +4 -0
- package/dist/declarations/src/internal/patchSets/PatchSets.d.ts +75 -0
- package/dist/declarations/src/internal/patchSets/schemaTypesOfPath.d.ts +5 -0
- package/dist/declarations/src/internal/patchSets/selectionClosure.d.ts +23 -0
- package/dist/declarations/src/internal/proposalMerge/trees.d.ts +56 -0
- package/dist/declarations/src/internal/publish/contentApi.d.ts +10 -4
- package/dist/declarations/src/internal/resolveSchemaSourceFixes.d.ts +3 -2
- package/dist/declarations/src/internal/server/requestScopedMemo.d.ts +10 -8
- 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 +0 -1
- package/dist/declarations/src/internal/zod/SerializedSchema.d.ts +1 -1
- package/internal/dist/valbuild-shared-internal.cjs.dev.js +770 -274
- package/internal/dist/valbuild-shared-internal.cjs.prod.js +770 -274
- package/internal/dist/valbuild-shared-internal.esm.js +763 -274
- package/package.json +2 -2
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import {
|
|
3
|
-
declare const ModuleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
2
|
+
import { VAL_SESSION_COOKIE, VAL_STATE_COOKIE } from "./server/types.js";
|
|
4
3
|
/**
|
|
5
4
|
* Why Val Build refused a write for the project's plan, as data: the `error` of
|
|
6
5
|
* its 403 (`refusalError` in valbuild/home's `billing/projectLimits.ts`).
|
|
@@ -22,21 +21,6 @@ export type PlanRefusalErrorT = z.infer<typeof PlanRefusalError>;
|
|
|
22
21
|
* with the editor's cookie from another site.
|
|
23
22
|
*/
|
|
24
23
|
export declare const VAL_STUDIO_HEADER = "x-val-studio";
|
|
25
|
-
/**
|
|
26
|
-
* A patch group: the set of patches one user has chosen to publish.
|
|
27
|
-
*
|
|
28
|
-
* Not a patch *set* — a patch set is computed from the schema and says which
|
|
29
|
-
* patches must move together; a patch group is curated and says which ones this
|
|
30
|
-
* user wants live. See `docs/independent-publish/PLAN.md`.
|
|
31
|
-
*/
|
|
32
|
-
export declare const PatchGroup: z.ZodObject<{
|
|
33
|
-
patchGroupId: z.ZodString;
|
|
34
|
-
authorId: z.ZodNullable<z.ZodString>;
|
|
35
|
-
createdAt: z.ZodString;
|
|
36
|
-
publishedAt: z.ZodNullable<z.ZodString>;
|
|
37
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
38
|
-
}, z.core.$strip>;
|
|
39
|
-
export type PatchGroupT = z.infer<typeof PatchGroup>;
|
|
40
24
|
declare const cookies: z.ZodUnion<readonly [z.ZodLiteral<"val_session">, z.ZodLiteral<"val_enable">, z.ZodLiteral<"val_state">]>;
|
|
41
25
|
type Cookies = z.infer<typeof cookies>;
|
|
42
26
|
declare const enableCookieValue: z.ZodObject<{
|
|
@@ -69,7 +53,7 @@ export declare const Api: {
|
|
|
69
53
|
redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
70
54
|
};
|
|
71
55
|
cookies: {
|
|
72
|
-
|
|
56
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
73
57
|
};
|
|
74
58
|
};
|
|
75
59
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -95,7 +79,7 @@ export declare const Api: {
|
|
|
95
79
|
redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
96
80
|
};
|
|
97
81
|
cookies: {
|
|
98
|
-
|
|
82
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
99
83
|
};
|
|
100
84
|
};
|
|
101
85
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -118,7 +102,7 @@ export declare const Api: {
|
|
|
118
102
|
GET: {
|
|
119
103
|
req: {
|
|
120
104
|
cookies: {
|
|
121
|
-
|
|
105
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
122
106
|
};
|
|
123
107
|
};
|
|
124
108
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -141,7 +125,7 @@ export declare const Api: {
|
|
|
141
125
|
redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
142
126
|
};
|
|
143
127
|
cookies: {
|
|
144
|
-
|
|
128
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
145
129
|
};
|
|
146
130
|
};
|
|
147
131
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -153,14 +137,13 @@ export declare const Api: {
|
|
|
153
137
|
status: z.ZodLiteral<302>;
|
|
154
138
|
redirectTo: z.ZodString;
|
|
155
139
|
cookies: z.ZodObject<{
|
|
156
|
-
|
|
140
|
+
[x: number]: z.ZodObject<{
|
|
157
141
|
value: z.ZodLiteral<"true">;
|
|
158
142
|
options: z.ZodObject<{
|
|
159
143
|
httpOnly: z.ZodLiteral<false>;
|
|
160
144
|
sameSite: z.ZodLiteral<"lax">;
|
|
161
145
|
}, z.core.$strip>;
|
|
162
|
-
}, z.core.$strip
|
|
163
|
-
val_state: z.ZodObject<{
|
|
146
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
164
147
|
value: z.ZodString;
|
|
165
148
|
options: z.ZodObject<{
|
|
166
149
|
httpOnly: z.ZodLiteral<true>;
|
|
@@ -173,7 +156,7 @@ export declare const Api: {
|
|
|
173
156
|
status: z.ZodLiteral<302>;
|
|
174
157
|
redirectTo: z.ZodString;
|
|
175
158
|
cookies: z.ZodObject<{
|
|
176
|
-
|
|
159
|
+
[x: number]: z.ZodObject<{
|
|
177
160
|
value: z.ZodLiteral<"true">;
|
|
178
161
|
options: z.ZodObject<{
|
|
179
162
|
httpOnly: z.ZodLiteral<false>;
|
|
@@ -196,7 +179,7 @@ export declare const Api: {
|
|
|
196
179
|
redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
197
180
|
};
|
|
198
181
|
cookies: {
|
|
199
|
-
|
|
182
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
200
183
|
};
|
|
201
184
|
};
|
|
202
185
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -208,7 +191,7 @@ export declare const Api: {
|
|
|
208
191
|
status: z.ZodLiteral<302>;
|
|
209
192
|
redirectTo: z.ZodString;
|
|
210
193
|
cookies: z.ZodObject<{
|
|
211
|
-
|
|
194
|
+
[x: number]: z.ZodObject<{
|
|
212
195
|
value: z.ZodLiteral<"false">;
|
|
213
196
|
}, z.core.$strip>;
|
|
214
197
|
}, z.core.$strip>;
|
|
@@ -231,14 +214,13 @@ export declare const Api: {
|
|
|
231
214
|
status: z.ZodLiteral<302>;
|
|
232
215
|
redirectTo: z.ZodString;
|
|
233
216
|
cookies: z.ZodObject<{
|
|
234
|
-
|
|
217
|
+
[x: number]: z.ZodObject<{
|
|
235
218
|
value: z.ZodLiteral<"true">;
|
|
236
219
|
options: z.ZodObject<{
|
|
237
220
|
httpOnly: z.ZodLiteral<false>;
|
|
238
221
|
sameSite: z.ZodLiteral<"lax">;
|
|
239
222
|
}, z.core.$strip>;
|
|
240
|
-
}, z.core.$strip
|
|
241
|
-
val_state: z.ZodObject<{
|
|
223
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
242
224
|
value: z.ZodString;
|
|
243
225
|
options: z.ZodObject<{
|
|
244
226
|
httpOnly: z.ZodLiteral<true>;
|
|
@@ -263,24 +245,22 @@ export declare const Api: {
|
|
|
263
245
|
state: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
264
246
|
};
|
|
265
247
|
cookies: {
|
|
266
|
-
|
|
248
|
+
[VAL_STATE_COOKIE]: z.ZodString;
|
|
267
249
|
};
|
|
268
250
|
};
|
|
269
251
|
res: z.ZodObject<{
|
|
270
252
|
status: z.ZodLiteral<302>;
|
|
271
253
|
redirectTo: z.ZodString;
|
|
272
254
|
cookies: z.ZodObject<{
|
|
273
|
-
|
|
255
|
+
[x: number]: z.ZodObject<{
|
|
274
256
|
value: z.ZodLiteral<null>;
|
|
275
|
-
}, z.core.$strip
|
|
276
|
-
val_enable: z.ZodOptional<z.ZodObject<{
|
|
257
|
+
}, z.core.$strip> | z.ZodOptional<z.ZodObject<{
|
|
277
258
|
value: z.ZodLiteral<"true">;
|
|
278
259
|
options: z.ZodObject<{
|
|
279
260
|
httpOnly: z.ZodLiteral<false>;
|
|
280
261
|
sameSite: z.ZodLiteral<"lax">;
|
|
281
262
|
}, z.core.$strip>;
|
|
282
|
-
}, z.core.$strip
|
|
283
|
-
val_session: z.ZodOptional<z.ZodObject<{
|
|
263
|
+
}, z.core.$strip>> | z.ZodOptional<z.ZodObject<{
|
|
284
264
|
value: z.ZodString;
|
|
285
265
|
options: z.ZodOptional<z.ZodObject<{
|
|
286
266
|
httpOnly: z.ZodLiteral<true>;
|
|
@@ -304,17 +284,7 @@ export declare const Api: {
|
|
|
304
284
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
305
285
|
status: z.ZodLiteral<200>;
|
|
306
286
|
cookies: z.ZodObject<{
|
|
307
|
-
|
|
308
|
-
value: z.ZodString;
|
|
309
|
-
options: z.ZodOptional<z.ZodObject<{
|
|
310
|
-
httpOnly: z.ZodLiteral<true>;
|
|
311
|
-
sameSite: z.ZodLiteral<"strict">;
|
|
312
|
-
path: z.ZodString;
|
|
313
|
-
secure: z.ZodLiteral<true>;
|
|
314
|
-
expires: z.ZodCustom<Date, Date>;
|
|
315
|
-
}, z.core.$strip>>;
|
|
316
|
-
}, z.core.$strip>>;
|
|
317
|
-
val_state: z.ZodOptional<z.ZodObject<{
|
|
287
|
+
[x: number]: z.ZodOptional<z.ZodObject<{
|
|
318
288
|
value: z.ZodString;
|
|
319
289
|
options: z.ZodOptional<z.ZodObject<{
|
|
320
290
|
httpOnly: z.ZodLiteral<true>;
|
|
@@ -329,17 +299,7 @@ export declare const Api: {
|
|
|
329
299
|
status: z.ZodLiteral<302>;
|
|
330
300
|
redirectTo: z.ZodString;
|
|
331
301
|
cookies: z.ZodObject<{
|
|
332
|
-
|
|
333
|
-
value: z.ZodString;
|
|
334
|
-
options: z.ZodOptional<z.ZodObject<{
|
|
335
|
-
httpOnly: z.ZodLiteral<true>;
|
|
336
|
-
sameSite: z.ZodLiteral<"strict">;
|
|
337
|
-
path: z.ZodString;
|
|
338
|
-
secure: z.ZodLiteral<true>;
|
|
339
|
-
expires: z.ZodCustom<Date, Date>;
|
|
340
|
-
}, z.core.$strip>>;
|
|
341
|
-
}, z.core.$strip>>;
|
|
342
|
-
val_state: z.ZodOptional<z.ZodObject<{
|
|
302
|
+
[x: number]: z.ZodOptional<z.ZodObject<{
|
|
343
303
|
value: z.ZodString;
|
|
344
304
|
options: z.ZodOptional<z.ZodObject<{
|
|
345
305
|
httpOnly: z.ZodLiteral<true>;
|
|
@@ -425,13 +385,13 @@ export declare const Api: {
|
|
|
425
385
|
baseSha: z.ZodString;
|
|
426
386
|
schemaSha: z.ZodString;
|
|
427
387
|
sourcesSha: z.ZodString;
|
|
428
|
-
patches: z.ZodArray<z.ZodString & z.ZodType<
|
|
429
|
-
appliedPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
430
|
-
publishingPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
431
|
-
heldBackPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
388
|
+
patches: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
389
|
+
appliedPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
|
|
390
|
+
publishingPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
|
|
391
|
+
heldBackPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
|
|
432
392
|
headCommitSha: z.ZodOptional<z.ZodString>;
|
|
433
393
|
removed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
434
|
-
patchId: z.ZodString & z.ZodType<
|
|
394
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
435
395
|
reason: z.ZodString;
|
|
436
396
|
}, z.core.$strip>>>;
|
|
437
397
|
config: z.ZodObject<{
|
|
@@ -465,20 +425,13 @@ export declare const Api: {
|
|
|
465
425
|
schemaSha: z.ZodString;
|
|
466
426
|
sourcesSha: z.ZodString;
|
|
467
427
|
commitSha: z.ZodOptional<z.ZodString>;
|
|
468
|
-
patches: z.ZodArray<z.ZodString & z.ZodType<
|
|
469
|
-
appliedPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
470
|
-
publishingPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
471
|
-
heldBackPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
428
|
+
patches: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
429
|
+
appliedPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
|
|
430
|
+
publishingPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
|
|
431
|
+
heldBackPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
|
|
472
432
|
headCommitSha: z.ZodOptional<z.ZodString>;
|
|
473
|
-
headPatchId: z.ZodOptional<z.ZodNullable<z.ZodString & z.ZodType<
|
|
433
|
+
headPatchId: z.ZodOptional<z.ZodNullable<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
|
|
474
434
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
475
|
-
patchGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
476
|
-
patchGroupId: z.ZodString;
|
|
477
|
-
authorId: z.ZodNullable<z.ZodString>;
|
|
478
|
-
createdAt: z.ZodString;
|
|
479
|
-
publishedAt: z.ZodNullable<z.ZodString>;
|
|
480
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
481
|
-
}, z.core.$strip>>>;
|
|
482
435
|
commits: z.ZodArray<z.ZodObject<{
|
|
483
436
|
commitSha: z.ZodString;
|
|
484
437
|
clientCommitSha: z.ZodNullable<z.ZodString>;
|
|
@@ -643,7 +596,7 @@ export declare const Api: {
|
|
|
643
596
|
headBaseSha: z.ZodString;
|
|
644
597
|
}, z.core.$strip>, z.ZodObject<{
|
|
645
598
|
type: z.ZodLiteral<"patch">;
|
|
646
|
-
patchId: z.ZodString & z.ZodType<
|
|
599
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
647
600
|
}, z.core.$strip>]>;
|
|
648
601
|
filePath: z.ZodString;
|
|
649
602
|
data: z.ZodAny;
|
|
@@ -661,7 +614,7 @@ export declare const Api: {
|
|
|
661
614
|
status: z.ZodLiteral<200>;
|
|
662
615
|
json: z.ZodObject<{
|
|
663
616
|
filePath: z.ZodString;
|
|
664
|
-
patchId: z.ZodString & z.ZodType<
|
|
617
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
665
618
|
}, z.core.$strip>;
|
|
666
619
|
}, z.core.$strip>]>;
|
|
667
620
|
};
|
|
@@ -752,10 +705,9 @@ export declare const Api: {
|
|
|
752
705
|
DELETE: {
|
|
753
706
|
req: {
|
|
754
707
|
query: {
|
|
755
|
-
id: z.ZodArray<z.ZodString & z.ZodType<
|
|
708
|
+
id: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
756
709
|
};
|
|
757
710
|
body: z.ZodOptional<z.ZodObject<{
|
|
758
|
-
unstagePatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
759
711
|
reportHeadVersion: z.ZodOptional<z.ZodLiteral<true>>;
|
|
760
712
|
}, z.core.$strip>>;
|
|
761
713
|
cookies: {
|
|
@@ -772,7 +724,7 @@ export declare const Api: {
|
|
|
772
724
|
json: z.ZodObject<{
|
|
773
725
|
message: z.ZodString;
|
|
774
726
|
errors: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
775
|
-
patchId: z.ZodString & z.ZodType<
|
|
727
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
776
728
|
message: z.ZodString;
|
|
777
729
|
publishJobId: z.ZodOptional<z.ZodString>;
|
|
778
730
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -782,8 +734,8 @@ export declare const Api: {
|
|
|
782
734
|
}, z.core.$strip>;
|
|
783
735
|
}, z.core.$strip>, z.ZodObject<{
|
|
784
736
|
status: z.ZodLiteral<200>;
|
|
785
|
-
json: z.ZodUnion<readonly [z.ZodArray<z.ZodString & z.ZodType<
|
|
786
|
-
deleted: z.ZodArray<z.ZodString & z.ZodType<
|
|
737
|
+
json: z.ZodUnion<readonly [z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>, z.ZodObject<{
|
|
738
|
+
deleted: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
787
739
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
788
740
|
}, z.core.$strip>]>;
|
|
789
741
|
}, z.core.$strip>]>;
|
|
@@ -796,16 +748,14 @@ export declare const Api: {
|
|
|
796
748
|
headBaseSha: z.ZodString;
|
|
797
749
|
}, z.core.$strip>, z.ZodObject<{
|
|
798
750
|
type: z.ZodLiteral<"patch">;
|
|
799
|
-
patchId: z.ZodString & z.ZodType<
|
|
751
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
800
752
|
}, z.core.$strip>]>;
|
|
801
753
|
sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
802
754
|
patches: z.ZodArray<z.ZodObject<{
|
|
803
755
|
path: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
804
|
-
patchId: z.ZodString & z.ZodType<
|
|
756
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
805
757
|
patch: z.ZodAny;
|
|
806
758
|
}, z.core.$strip>>;
|
|
807
|
-
patchGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
808
|
-
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
809
759
|
}, z.core.$strip>;
|
|
810
760
|
cookies: {
|
|
811
761
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -844,29 +794,27 @@ export declare const Api: {
|
|
|
844
794
|
until: z.ZodOptional<z.ZodString>;
|
|
845
795
|
billingUrl: z.ZodOptional<z.ZodString>;
|
|
846
796
|
}, z.core.$strip>;
|
|
847
|
-
newPatchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
797
|
+
newPatchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
848
798
|
parentRef: z.ZodUnion<readonly [z.ZodObject<{
|
|
849
799
|
type: z.ZodLiteral<"head">;
|
|
850
800
|
headBaseSha: z.ZodString;
|
|
851
801
|
}, z.core.$strip>, z.ZodObject<{
|
|
852
802
|
type: z.ZodLiteral<"patch">;
|
|
853
|
-
patchId: z.ZodString & z.ZodType<
|
|
803
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
854
804
|
}, z.core.$strip>]>;
|
|
855
|
-
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
856
805
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
857
806
|
}, z.core.$strip>;
|
|
858
807
|
}, z.core.$strip>, z.ZodObject<{
|
|
859
808
|
status: z.ZodLiteral<200>;
|
|
860
809
|
json: z.ZodObject<{
|
|
861
|
-
newPatchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
810
|
+
newPatchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
862
811
|
parentRef: z.ZodUnion<readonly [z.ZodObject<{
|
|
863
812
|
type: z.ZodLiteral<"head">;
|
|
864
813
|
headBaseSha: z.ZodString;
|
|
865
814
|
}, z.core.$strip>, z.ZodObject<{
|
|
866
815
|
type: z.ZodLiteral<"patch">;
|
|
867
|
-
patchId: z.ZodString & z.ZodType<
|
|
816
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
868
817
|
}, z.core.$strip>]>;
|
|
869
|
-
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
870
818
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
871
819
|
}, z.core.$strip>;
|
|
872
820
|
}, z.core.$strip>]>;
|
|
@@ -874,17 +822,8 @@ export declare const Api: {
|
|
|
874
822
|
GET: {
|
|
875
823
|
req: {
|
|
876
824
|
query: {
|
|
877
|
-
patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
825
|
+
patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
|
|
878
826
|
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">>>;
|
|
879
|
-
/**
|
|
880
|
-
* Include the patch group annotation in the answer.
|
|
881
|
-
*
|
|
882
|
-
* Off by default because the client CHUNKS this request — a long
|
|
883
|
-
* chain is several round trips — and the groups are a property of the
|
|
884
|
-
* branch, identical in every chunk. Asking on each one is N identical
|
|
885
|
-
* lookups against the content API to learn the same thing.
|
|
886
|
-
*/
|
|
887
|
-
include_patch_groups: 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">>>;
|
|
888
827
|
};
|
|
889
828
|
cookies: {
|
|
890
829
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -900,7 +839,7 @@ export declare const Api: {
|
|
|
900
839
|
json: z.ZodObject<{
|
|
901
840
|
message: z.ZodString;
|
|
902
841
|
patchErrors: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
903
|
-
patchId: z.ZodString & z.ZodType<
|
|
842
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
904
843
|
message: z.ZodString;
|
|
905
844
|
publishJobId: z.ZodOptional<z.ZodString>;
|
|
906
845
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -953,114 +892,24 @@ export declare const Api: {
|
|
|
953
892
|
nestedFilePath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
954
893
|
metadata: z.ZodOptional<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
|
|
955
894
|
}, z.core.$strict>], "op">>>;
|
|
956
|
-
patchId: z.ZodString & z.ZodType<
|
|
895
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
957
896
|
createdAt: z.ZodString;
|
|
958
897
|
authorId: z.ZodNullable<z.ZodString>;
|
|
959
898
|
appliedAt: z.ZodNullable<z.ZodObject<{
|
|
960
899
|
commitSha: z.ZodString;
|
|
961
900
|
}, z.core.$strip>>;
|
|
962
|
-
patchGroupIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
963
901
|
}, z.core.$strip>>;
|
|
964
|
-
patchGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
965
|
-
patchGroupId: z.ZodString;
|
|
966
|
-
authorId: z.ZodNullable<z.ZodString>;
|
|
967
|
-
createdAt: z.ZodString;
|
|
968
|
-
publishedAt: z.ZodNullable<z.ZodString>;
|
|
969
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
970
|
-
}, z.core.$strip>>>;
|
|
971
902
|
baseSha: z.ZodString;
|
|
972
903
|
error: z.ZodOptional<z.ZodObject<{
|
|
973
904
|
message: z.ZodString;
|
|
974
905
|
}, z.core.$strip>>;
|
|
975
|
-
errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<
|
|
906
|
+
errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>, z.ZodObject<{
|
|
976
907
|
message: z.ZodString;
|
|
977
908
|
}, z.core.$strip>>>;
|
|
978
909
|
}, z.core.$strip>;
|
|
979
910
|
}, z.core.$strip>]>;
|
|
980
911
|
};
|
|
981
912
|
};
|
|
982
|
-
"/patch-groups/~/patches": {
|
|
983
|
-
PUT: {
|
|
984
|
-
req: {
|
|
985
|
-
body: z.ZodObject<{
|
|
986
|
-
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
987
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
988
|
-
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
989
|
-
}, z.core.$strip>;
|
|
990
|
-
cookies: {
|
|
991
|
-
val_session: z.ZodOptional<z.ZodString>;
|
|
992
|
-
};
|
|
993
|
-
};
|
|
994
|
-
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
995
|
-
status: z.ZodLiteral<401>;
|
|
996
|
-
json: z.ZodObject<{
|
|
997
|
-
message: z.ZodString;
|
|
998
|
-
}, z.core.$strip>;
|
|
999
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1000
|
-
status: z.ZodLiteral<403>;
|
|
1001
|
-
json: z.ZodObject<{
|
|
1002
|
-
message: z.ZodString;
|
|
1003
|
-
}, z.core.$strip>;
|
|
1004
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1005
|
-
status: z.ZodLiteral<409>;
|
|
1006
|
-
json: z.ZodObject<{
|
|
1007
|
-
message: z.ZodString;
|
|
1008
|
-
}, z.core.$strip>;
|
|
1009
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1010
|
-
status: z.ZodLiteral<500>;
|
|
1011
|
-
json: z.ZodObject<{
|
|
1012
|
-
message: z.ZodString;
|
|
1013
|
-
}, z.core.$strip>;
|
|
1014
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1015
|
-
status: z.ZodLiteral<200>;
|
|
1016
|
-
json: z.ZodObject<{
|
|
1017
|
-
patchGroupId: z.ZodNullable<z.ZodString>;
|
|
1018
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1019
|
-
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
1020
|
-
}, z.core.$strip>;
|
|
1021
|
-
}, z.core.$strip>]>;
|
|
1022
|
-
};
|
|
1023
|
-
DELETE: {
|
|
1024
|
-
req: {
|
|
1025
|
-
body: z.ZodObject<{
|
|
1026
|
-
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
1027
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1028
|
-
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
1029
|
-
}, z.core.$strip>;
|
|
1030
|
-
cookies: {
|
|
1031
|
-
val_session: z.ZodOptional<z.ZodString>;
|
|
1032
|
-
};
|
|
1033
|
-
};
|
|
1034
|
-
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
1035
|
-
status: z.ZodLiteral<401>;
|
|
1036
|
-
json: z.ZodObject<{
|
|
1037
|
-
message: z.ZodString;
|
|
1038
|
-
}, z.core.$strip>;
|
|
1039
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1040
|
-
status: z.ZodLiteral<403>;
|
|
1041
|
-
json: z.ZodObject<{
|
|
1042
|
-
message: z.ZodString;
|
|
1043
|
-
}, z.core.$strip>;
|
|
1044
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1045
|
-
status: z.ZodLiteral<409>;
|
|
1046
|
-
json: z.ZodObject<{
|
|
1047
|
-
message: z.ZodString;
|
|
1048
|
-
}, z.core.$strip>;
|
|
1049
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1050
|
-
status: z.ZodLiteral<500>;
|
|
1051
|
-
json: z.ZodObject<{
|
|
1052
|
-
message: z.ZodString;
|
|
1053
|
-
}, z.core.$strip>;
|
|
1054
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1055
|
-
status: z.ZodLiteral<200>;
|
|
1056
|
-
json: z.ZodObject<{
|
|
1057
|
-
patchGroupId: z.ZodNullable<z.ZodString>;
|
|
1058
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1059
|
-
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
1060
|
-
}, z.core.$strip>;
|
|
1061
|
-
}, z.core.$strip>]>;
|
|
1062
|
-
};
|
|
1063
|
-
};
|
|
1064
913
|
"/schema": {
|
|
1065
914
|
GET: {
|
|
1066
915
|
req: {
|
|
@@ -1094,7 +943,7 @@ export declare const Api: {
|
|
|
1094
943
|
status: z.ZodLiteral<200>;
|
|
1095
944
|
json: z.ZodObject<{
|
|
1096
945
|
schemaSha: z.ZodString;
|
|
1097
|
-
schemas: z.ZodRecord<z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>, z.ZodType<
|
|
946
|
+
schemas: z.ZodRecord<z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>, z.ZodType<SerializedSchemaT, unknown, z.core.$ZodTypeInternals<SerializedSchemaT, unknown>>>;
|
|
1098
947
|
}, z.core.$strip>;
|
|
1099
948
|
}, z.core.$strip>]>;
|
|
1100
949
|
};
|
|
@@ -1108,33 +957,6 @@ export declare const Api: {
|
|
|
1108
957
|
validate_binary_files: 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">>>;
|
|
1109
958
|
exclude_patches: 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">>>;
|
|
1110
959
|
apply_patches: 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">>>;
|
|
1111
|
-
/**
|
|
1112
|
-
* Apply ONLY these patches, rather than everything pending.
|
|
1113
|
-
*
|
|
1114
|
-
* This is what makes a draft-mode render match the caller's staged
|
|
1115
|
-
* view. Without it `/sources/~` replays every pending patch on the
|
|
1116
|
-
* branch, so a server-rendered preview shows other people's
|
|
1117
|
-
* unpublished work — the one thing independent publish is for.
|
|
1118
|
-
*
|
|
1119
|
-
* Omitted means everything pending, which is the behaviour every
|
|
1120
|
-
* existing caller has and must keep. An EMPTY array is a different
|
|
1121
|
-
* answer and is honoured as one: a group holding nothing renders
|
|
1122
|
-
* base.
|
|
1123
|
-
*/
|
|
1124
|
-
patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
1125
|
-
/**
|
|
1126
|
-
* Apply only the patches in the CALLER'S OWN patch groups.
|
|
1127
|
-
*
|
|
1128
|
-
* The server resolves them from the session, so a draft render does
|
|
1129
|
-
* not have to know its own group ids — which it cannot, since it has
|
|
1130
|
-
* no client state. This is what makes `fetchVal` in draft mode show
|
|
1131
|
-
* the person their own staged work rather than everybody's.
|
|
1132
|
-
*
|
|
1133
|
-
* Ignored when `patch_id` is given: an explicit list is a caller that
|
|
1134
|
-
* already knows what it wants, and silently intersecting the two
|
|
1135
|
-
* would make the narrower one invisible.
|
|
1136
|
-
*/
|
|
1137
|
-
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">>>;
|
|
1138
960
|
};
|
|
1139
961
|
cookies: {
|
|
1140
962
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -1185,9 +1007,9 @@ export declare const Api: {
|
|
|
1185
1007
|
source: z.ZodOptional<z.ZodAny>;
|
|
1186
1008
|
baseSource: z.ZodOptional<z.ZodAny>;
|
|
1187
1009
|
patches: z.ZodOptional<z.ZodObject<{
|
|
1188
|
-
applied: z.ZodArray<z.ZodString & z.ZodType<
|
|
1189
|
-
skipped: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
1190
|
-
errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<
|
|
1010
|
+
applied: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
1011
|
+
skipped: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
|
|
1012
|
+
errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>, z.ZodObject<{
|
|
1191
1013
|
message: z.ZodString;
|
|
1192
1014
|
}, z.core.$strip>>>;
|
|
1193
1015
|
}, z.core.$strip>>;
|
|
@@ -1208,7 +1030,7 @@ export declare const Api: {
|
|
|
1208
1030
|
body: z.ZodObject<{
|
|
1209
1031
|
jobId: z.ZodString;
|
|
1210
1032
|
tab: z.ZodString;
|
|
1211
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1033
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
1212
1034
|
}, z.core.$strip>;
|
|
1213
1035
|
cookies: {
|
|
1214
1036
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -1325,13 +1147,69 @@ export declare const Api: {
|
|
|
1325
1147
|
}, z.core.$strip>]>;
|
|
1326
1148
|
};
|
|
1327
1149
|
};
|
|
1150
|
+
/**
|
|
1151
|
+
* Publish selected (`docs/plans/remove-patch-groups.md`, Phase 4), its first
|
|
1152
|
+
* half, on the site's own server: the changes picked in Review, already
|
|
1153
|
+
* closed into whole patch sets (`selectionClosure`), moved into a proposal
|
|
1154
|
+
* of kind `publish` and saved there -- prepared over the site's head, which
|
|
1155
|
+
* the proposal is based on, so a publish landing in between is refused
|
|
1156
|
+
* rather than reverted. The second half is that proposal's Publish, pressed
|
|
1157
|
+
* as any proposal's is (`publishProposal`); this server answers its checks
|
|
1158
|
+
* and press with what the merge moves, as the proposal's own address would.
|
|
1159
|
+
*/
|
|
1160
|
+
"/publish-selected": {
|
|
1161
|
+
POST: {
|
|
1162
|
+
req: {
|
|
1163
|
+
body: z.ZodObject<{
|
|
1164
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
1165
|
+
displayName: z.ZodString;
|
|
1166
|
+
requestId: z.ZodString;
|
|
1167
|
+
}, z.core.$strip>;
|
|
1168
|
+
cookies: {
|
|
1169
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
1170
|
+
};
|
|
1171
|
+
};
|
|
1172
|
+
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
1173
|
+
status: z.ZodLiteral<401>;
|
|
1174
|
+
json: z.ZodObject<{
|
|
1175
|
+
message: z.ZodString;
|
|
1176
|
+
}, z.core.$strip>;
|
|
1177
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1178
|
+
status: z.ZodLiteral<400>;
|
|
1179
|
+
json: z.ZodObject<{
|
|
1180
|
+
message: z.ZodString;
|
|
1181
|
+
}, z.core.$strip>;
|
|
1182
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1183
|
+
status: z.ZodLiteral<409>;
|
|
1184
|
+
json: z.ZodObject<{
|
|
1185
|
+
message: z.ZodString;
|
|
1186
|
+
headMoved: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1187
|
+
}, z.core.$strip>;
|
|
1188
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1189
|
+
status: z.ZodLiteral<500>;
|
|
1190
|
+
json: z.ZodObject<{
|
|
1191
|
+
message: z.ZodString;
|
|
1192
|
+
}, z.core.$strip>;
|
|
1193
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1194
|
+
status: z.ZodLiteral<502>;
|
|
1195
|
+
json: z.ZodObject<{
|
|
1196
|
+
message: z.ZodString;
|
|
1197
|
+
proposal: z.ZodString;
|
|
1198
|
+
}, z.core.$strip>;
|
|
1199
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1200
|
+
status: z.ZodLiteral<200>;
|
|
1201
|
+
json: z.ZodObject<{
|
|
1202
|
+
proposal: z.ZodString;
|
|
1203
|
+
}, z.core.$strip>;
|
|
1204
|
+
}, z.core.$strip>]>;
|
|
1205
|
+
};
|
|
1206
|
+
};
|
|
1328
1207
|
"/save": {
|
|
1329
1208
|
POST: {
|
|
1330
1209
|
req: {
|
|
1331
1210
|
body: z.ZodObject<{
|
|
1332
1211
|
message: z.ZodOptional<z.ZodString>;
|
|
1333
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1334
|
-
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
1212
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
1335
1213
|
expectedHeadCommitSha: z.ZodOptional<z.ZodString>;
|
|
1336
1214
|
}, z.core.$strip>;
|
|
1337
1215
|
cookies: {
|
|
@@ -1352,17 +1230,12 @@ export declare const Api: {
|
|
|
1352
1230
|
branch: z.ZodOptional<z.ZodString>;
|
|
1353
1231
|
binaryFilesUnread: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1354
1232
|
removed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1355
|
-
patchId: z.ZodString & z.ZodType<
|
|
1233
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
1356
1234
|
moduleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
1357
1235
|
message: z.ZodString;
|
|
1358
1236
|
}, z.core.$strip>>>;
|
|
1359
1237
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
1360
1238
|
}, z.core.$strip>;
|
|
1361
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1362
|
-
status: z.ZodLiteral<403>;
|
|
1363
|
-
json: z.ZodObject<{
|
|
1364
|
-
message: z.ZodString;
|
|
1365
|
-
}, z.core.$strip>;
|
|
1366
1239
|
}, z.core.$strip>, z.ZodObject<{
|
|
1367
1240
|
status: z.ZodLiteral<500>;
|
|
1368
1241
|
json: z.ZodObject<{
|
|
@@ -1384,9 +1257,6 @@ export declare const Api: {
|
|
|
1384
1257
|
}, z.core.$strip>, z.ZodObject<{
|
|
1385
1258
|
message: z.ZodString;
|
|
1386
1259
|
headMoved: z.ZodLiteral<true>;
|
|
1387
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1388
|
-
message: z.ZodString;
|
|
1389
|
-
patchGroupPublished: z.ZodLiteral<true>;
|
|
1390
1260
|
}, z.core.$strip>]>;
|
|
1391
1261
|
}, z.core.$strip>, z.ZodObject<{
|
|
1392
1262
|
status: z.ZodLiteral<400>;
|
|
@@ -1399,7 +1269,7 @@ export declare const Api: {
|
|
|
1399
1269
|
binaryFilePatchErrors: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1400
1270
|
message: z.ZodString;
|
|
1401
1271
|
}, z.core.$strip>>;
|
|
1402
|
-
unappliablePatches: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<
|
|
1272
|
+
unappliablePatches: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>, z.ZodObject<{
|
|
1403
1273
|
moduleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
1404
1274
|
message: z.ZodString;
|
|
1405
1275
|
}, z.core.$strip>>>;
|
|
@@ -1526,8 +1396,8 @@ export declare const Api: {
|
|
|
1526
1396
|
}, z.core.$strip>;
|
|
1527
1397
|
modules: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1528
1398
|
source: z.ZodNullable<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
|
|
1529
|
-
schema: z.ZodNullable<z.ZodType<
|
|
1530
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1399
|
+
schema: z.ZodNullable<z.ZodType<SerializedSchemaT, unknown, z.core.$ZodTypeInternals<SerializedSchemaT, unknown>>>;
|
|
1400
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
1531
1401
|
changedPaths: z.ZodArray<z.ZodString>;
|
|
1532
1402
|
failures: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1533
1403
|
kind: z.ZodLiteral<"commit-not-found">;
|
|
@@ -1555,7 +1425,7 @@ export declare const Api: {
|
|
|
1555
1425
|
}, z.core.$strip>], "kind">>;
|
|
1556
1426
|
}, z.core.$strip>>;
|
|
1557
1427
|
patches: z.ZodArray<z.ZodObject<{
|
|
1558
|
-
patchId: z.ZodString & z.ZodType<
|
|
1428
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
1559
1429
|
moduleFilePath: z.ZodString;
|
|
1560
1430
|
patch: z.ZodUnknown;
|
|
1561
1431
|
authorId: z.ZodNullable<z.ZodString>;
|
|
@@ -1646,8 +1516,8 @@ export declare const Api: {
|
|
|
1646
1516
|
moduleFilePath: z.ZodString;
|
|
1647
1517
|
module: z.ZodNullable<z.ZodObject<{
|
|
1648
1518
|
source: z.ZodNullable<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
|
|
1649
|
-
schema: z.ZodNullable<z.ZodType<
|
|
1650
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1519
|
+
schema: z.ZodNullable<z.ZodType<SerializedSchemaT, unknown, z.core.$ZodTypeInternals<SerializedSchemaT, unknown>>>;
|
|
1520
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
1651
1521
|
changedPaths: z.ZodArray<z.ZodString>;
|
|
1652
1522
|
failures: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1653
1523
|
kind: z.ZodLiteral<"commit-not-found">;
|
|
@@ -1798,11 +1668,7 @@ export declare const Api: {
|
|
|
1798
1668
|
req: {
|
|
1799
1669
|
path: z.ZodString;
|
|
1800
1670
|
query: {
|
|
1801
|
-
patch_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString & z.ZodType<
|
|
1802
|
-
VAL_DATA_TYPE: "PatchId";
|
|
1803
|
-
}, (string & {
|
|
1804
|
-
VAL_DATA_TYPE: "PatchId";
|
|
1805
|
-
})[]>>>;
|
|
1671
|
+
patch_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>, z.ZodTransform<any, any[]>>>;
|
|
1806
1672
|
remote: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
1807
1673
|
};
|
|
1808
1674
|
headers: {
|
|
@@ -1843,18 +1709,9 @@ export declare const Api: {
|
|
|
1843
1709
|
offset: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>, z.ZodTransform<number, string>>>;
|
|
1844
1710
|
limit: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>, z.ZodTransform<number, string>>>;
|
|
1845
1711
|
apply_patches: 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">>>;
|
|
1846
|
-
/**
|
|
1847
|
-
* The caller's own staged work, and nobody else's.
|
|
1848
|
-
*
|
|
1849
|
-
* The same flag `/sources/~` takes, and for the same reason — a draft
|
|
1850
|
-
* page renders both, so a scoped module beside an unscoped
|
|
1851
|
-
* `jsonValues` entry showed one person's view and everybody's pending
|
|
1852
|
-
* work on the same screen.
|
|
1853
|
-
*/
|
|
1854
|
-
own_patch_groups_only: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>> & z.ZodType<"true" | "false", string[], z.core.$ZodTypeInternals<"true" | "false", string[]>>, z.ZodTransform<boolean, "true" | "false">>>;
|
|
1855
1712
|
};
|
|
1856
1713
|
cookies: {
|
|
1857
|
-
|
|
1714
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
1858
1715
|
};
|
|
1859
1716
|
};
|
|
1860
1717
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1908,7 +1765,7 @@ export declare const Api: {
|
|
|
1908
1765
|
POST: {
|
|
1909
1766
|
req: {
|
|
1910
1767
|
cookies: {
|
|
1911
|
-
|
|
1768
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
1912
1769
|
};
|
|
1913
1770
|
};
|
|
1914
1771
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1946,7 +1803,7 @@ export declare const Api: {
|
|
|
1946
1803
|
cursor_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
1947
1804
|
};
|
|
1948
1805
|
cookies: {
|
|
1949
|
-
|
|
1806
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
1950
1807
|
};
|
|
1951
1808
|
};
|
|
1952
1809
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1982,7 +1839,7 @@ export declare const Api: {
|
|
|
1982
1839
|
name: z.ZodString;
|
|
1983
1840
|
}, z.core.$strip>;
|
|
1984
1841
|
cookies: {
|
|
1985
|
-
|
|
1842
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
1986
1843
|
};
|
|
1987
1844
|
};
|
|
1988
1845
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2011,7 +1868,7 @@ export declare const Api: {
|
|
|
2011
1868
|
cursor_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
2012
1869
|
};
|
|
2013
1870
|
cookies: {
|
|
2014
|
-
|
|
1871
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
2015
1872
|
};
|
|
2016
1873
|
};
|
|
2017
1874
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2049,13 +1906,13 @@ export declare const Api: {
|
|
|
2049
1906
|
POST: {
|
|
2050
1907
|
req: {
|
|
2051
1908
|
body: z.ZodObject<{
|
|
2052
|
-
patchId: z.ZodString & z.ZodType<
|
|
1909
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
2053
1910
|
parentRef: z.ZodUnion<readonly [z.ZodObject<{
|
|
2054
1911
|
type: z.ZodLiteral<"head">;
|
|
2055
1912
|
headBaseSha: z.ZodString;
|
|
2056
1913
|
}, z.core.$strip>, z.ZodObject<{
|
|
2057
1914
|
type: z.ZodLiteral<"patch">;
|
|
2058
|
-
patchId: z.ZodString & z.ZodType<
|
|
1915
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
2059
1916
|
}, z.core.$strip>]>;
|
|
2060
1917
|
files: z.ZodArray<z.ZodObject<{
|
|
2061
1918
|
filePath: z.ZodString;
|
|
@@ -2064,7 +1921,7 @@ export declare const Api: {
|
|
|
2064
1921
|
}, z.core.$strip>>;
|
|
2065
1922
|
}, z.core.$strip>;
|
|
2066
1923
|
cookies: {
|
|
2067
|
-
|
|
1924
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
2068
1925
|
};
|
|
2069
1926
|
};
|
|
2070
1927
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2075,7 +1932,7 @@ export declare const Api: {
|
|
|
2075
1932
|
}, z.core.$strip>, z.ZodObject<{
|
|
2076
1933
|
status: z.ZodLiteral<200>;
|
|
2077
1934
|
json: z.ZodObject<{
|
|
2078
|
-
patchId: z.ZodString & z.ZodType<
|
|
1935
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
2079
1936
|
files: z.ZodArray<z.ZodObject<{
|
|
2080
1937
|
filePath: z.ZodString;
|
|
2081
1938
|
metadata: z.ZodObject<{
|
|
@@ -2110,7 +1967,7 @@ export declare const Api: {
|
|
|
2110
1967
|
contentType: z.ZodString;
|
|
2111
1968
|
}, z.core.$strip>;
|
|
2112
1969
|
cookies: {
|
|
2113
|
-
|
|
1970
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
2114
1971
|
};
|
|
2115
1972
|
};
|
|
2116
1973
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2135,7 +1992,7 @@ export declare const Api: {
|
|
|
2135
1992
|
GET: {
|
|
2136
1993
|
req: {
|
|
2137
1994
|
cookies: {
|
|
2138
|
-
|
|
1995
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
2139
1996
|
};
|
|
2140
1997
|
};
|
|
2141
1998
|
res: z.ZodObject<{
|
|
@@ -2159,7 +2016,7 @@ export declare const Api: {
|
|
|
2159
2016
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2160
2017
|
};
|
|
2161
2018
|
cookies: {
|
|
2162
|
-
|
|
2019
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
2163
2020
|
};
|
|
2164
2021
|
body: z.ZodUnknown;
|
|
2165
2022
|
};
|
|
@@ -2176,7 +2033,7 @@ export declare const Api: {
|
|
|
2176
2033
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2177
2034
|
};
|
|
2178
2035
|
cookies: {
|
|
2179
|
-
|
|
2036
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
2180
2037
|
};
|
|
2181
2038
|
body: z.ZodUnknown;
|
|
2182
2039
|
};
|
|
@@ -2193,7 +2050,7 @@ export declare const Api: {
|
|
|
2193
2050
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2194
2051
|
};
|
|
2195
2052
|
cookies: {
|
|
2196
|
-
|
|
2053
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
2197
2054
|
};
|
|
2198
2055
|
body: z.ZodUnknown;
|
|
2199
2056
|
};
|
|
@@ -2210,7 +2067,7 @@ export declare const Api: {
|
|
|
2210
2067
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2211
2068
|
};
|
|
2212
2069
|
cookies: {
|
|
2213
|
-
|
|
2070
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
2214
2071
|
};
|
|
2215
2072
|
body: z.ZodUnknown;
|
|
2216
2073
|
};
|