@valbuild/shared 0.145.1 → 0.146.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/declarations/src/internal/ApiRoutes.d.ts +73 -273
- package/dist/declarations/src/internal/chainHead.d.ts +5 -7
- package/dist/declarations/src/internal/index.d.ts +3 -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/proposalMerge/trees.d.ts +56 -0
- package/dist/declarations/src/internal/publish/contentApi.d.ts +0 -4
- 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 +537 -269
- package/internal/dist/valbuild-shared-internal.cjs.prod.js +537 -269
- package/internal/dist/valbuild-shared-internal.esm.js +532 -269
- package/package.json +1 -1
|
@@ -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>;
|
|
@@ -1330,8 +1152,7 @@ export declare const Api: {
|
|
|
1330
1152
|
req: {
|
|
1331
1153
|
body: z.ZodObject<{
|
|
1332
1154
|
message: z.ZodOptional<z.ZodString>;
|
|
1333
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1334
|
-
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
1155
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
1335
1156
|
expectedHeadCommitSha: z.ZodOptional<z.ZodString>;
|
|
1336
1157
|
}, z.core.$strip>;
|
|
1337
1158
|
cookies: {
|
|
@@ -1352,17 +1173,12 @@ export declare const Api: {
|
|
|
1352
1173
|
branch: z.ZodOptional<z.ZodString>;
|
|
1353
1174
|
binaryFilesUnread: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1354
1175
|
removed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1355
|
-
patchId: z.ZodString & z.ZodType<
|
|
1176
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
1356
1177
|
moduleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
1357
1178
|
message: z.ZodString;
|
|
1358
1179
|
}, z.core.$strip>>>;
|
|
1359
1180
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
1360
1181
|
}, 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
1182
|
}, z.core.$strip>, z.ZodObject<{
|
|
1367
1183
|
status: z.ZodLiteral<500>;
|
|
1368
1184
|
json: z.ZodObject<{
|
|
@@ -1384,9 +1200,6 @@ export declare const Api: {
|
|
|
1384
1200
|
}, z.core.$strip>, z.ZodObject<{
|
|
1385
1201
|
message: z.ZodString;
|
|
1386
1202
|
headMoved: z.ZodLiteral<true>;
|
|
1387
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1388
|
-
message: z.ZodString;
|
|
1389
|
-
patchGroupPublished: z.ZodLiteral<true>;
|
|
1390
1203
|
}, z.core.$strip>]>;
|
|
1391
1204
|
}, z.core.$strip>, z.ZodObject<{
|
|
1392
1205
|
status: z.ZodLiteral<400>;
|
|
@@ -1399,7 +1212,7 @@ export declare const Api: {
|
|
|
1399
1212
|
binaryFilePatchErrors: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1400
1213
|
message: z.ZodString;
|
|
1401
1214
|
}, z.core.$strip>>;
|
|
1402
|
-
unappliablePatches: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<
|
|
1215
|
+
unappliablePatches: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>, z.ZodObject<{
|
|
1403
1216
|
moduleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
1404
1217
|
message: z.ZodString;
|
|
1405
1218
|
}, z.core.$strip>>>;
|
|
@@ -1526,8 +1339,8 @@ export declare const Api: {
|
|
|
1526
1339
|
}, z.core.$strip>;
|
|
1527
1340
|
modules: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1528
1341
|
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<
|
|
1342
|
+
schema: z.ZodNullable<z.ZodType<SerializedSchemaT, unknown, z.core.$ZodTypeInternals<SerializedSchemaT, unknown>>>;
|
|
1343
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
1531
1344
|
changedPaths: z.ZodArray<z.ZodString>;
|
|
1532
1345
|
failures: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1533
1346
|
kind: z.ZodLiteral<"commit-not-found">;
|
|
@@ -1555,7 +1368,7 @@ export declare const Api: {
|
|
|
1555
1368
|
}, z.core.$strip>], "kind">>;
|
|
1556
1369
|
}, z.core.$strip>>;
|
|
1557
1370
|
patches: z.ZodArray<z.ZodObject<{
|
|
1558
|
-
patchId: z.ZodString & z.ZodType<
|
|
1371
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
1559
1372
|
moduleFilePath: z.ZodString;
|
|
1560
1373
|
patch: z.ZodUnknown;
|
|
1561
1374
|
authorId: z.ZodNullable<z.ZodString>;
|
|
@@ -1646,8 +1459,8 @@ export declare const Api: {
|
|
|
1646
1459
|
moduleFilePath: z.ZodString;
|
|
1647
1460
|
module: z.ZodNullable<z.ZodObject<{
|
|
1648
1461
|
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<
|
|
1462
|
+
schema: z.ZodNullable<z.ZodType<SerializedSchemaT, unknown, z.core.$ZodTypeInternals<SerializedSchemaT, unknown>>>;
|
|
1463
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
1651
1464
|
changedPaths: z.ZodArray<z.ZodString>;
|
|
1652
1465
|
failures: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1653
1466
|
kind: z.ZodLiteral<"commit-not-found">;
|
|
@@ -1798,11 +1611,7 @@ export declare const Api: {
|
|
|
1798
1611
|
req: {
|
|
1799
1612
|
path: z.ZodString;
|
|
1800
1613
|
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
|
-
})[]>>>;
|
|
1614
|
+
patch_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>, z.ZodTransform<any, any[]>>>;
|
|
1806
1615
|
remote: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
1807
1616
|
};
|
|
1808
1617
|
headers: {
|
|
@@ -1843,18 +1652,9 @@ export declare const Api: {
|
|
|
1843
1652
|
offset: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>, z.ZodTransform<number, string>>>;
|
|
1844
1653
|
limit: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>, z.ZodTransform<number, string>>>;
|
|
1845
1654
|
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
1655
|
};
|
|
1856
1656
|
cookies: {
|
|
1857
|
-
|
|
1657
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
1858
1658
|
};
|
|
1859
1659
|
};
|
|
1860
1660
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1908,7 +1708,7 @@ export declare const Api: {
|
|
|
1908
1708
|
POST: {
|
|
1909
1709
|
req: {
|
|
1910
1710
|
cookies: {
|
|
1911
|
-
|
|
1711
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
1912
1712
|
};
|
|
1913
1713
|
};
|
|
1914
1714
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1946,7 +1746,7 @@ export declare const Api: {
|
|
|
1946
1746
|
cursor_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
1947
1747
|
};
|
|
1948
1748
|
cookies: {
|
|
1949
|
-
|
|
1749
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
1950
1750
|
};
|
|
1951
1751
|
};
|
|
1952
1752
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1982,7 +1782,7 @@ export declare const Api: {
|
|
|
1982
1782
|
name: z.ZodString;
|
|
1983
1783
|
}, z.core.$strip>;
|
|
1984
1784
|
cookies: {
|
|
1985
|
-
|
|
1785
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
1986
1786
|
};
|
|
1987
1787
|
};
|
|
1988
1788
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2011,7 +1811,7 @@ export declare const Api: {
|
|
|
2011
1811
|
cursor_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
2012
1812
|
};
|
|
2013
1813
|
cookies: {
|
|
2014
|
-
|
|
1814
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
2015
1815
|
};
|
|
2016
1816
|
};
|
|
2017
1817
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2049,13 +1849,13 @@ export declare const Api: {
|
|
|
2049
1849
|
POST: {
|
|
2050
1850
|
req: {
|
|
2051
1851
|
body: z.ZodObject<{
|
|
2052
|
-
patchId: z.ZodString & z.ZodType<
|
|
1852
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
2053
1853
|
parentRef: z.ZodUnion<readonly [z.ZodObject<{
|
|
2054
1854
|
type: z.ZodLiteral<"head">;
|
|
2055
1855
|
headBaseSha: z.ZodString;
|
|
2056
1856
|
}, z.core.$strip>, z.ZodObject<{
|
|
2057
1857
|
type: z.ZodLiteral<"patch">;
|
|
2058
|
-
patchId: z.ZodString & z.ZodType<
|
|
1858
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
2059
1859
|
}, z.core.$strip>]>;
|
|
2060
1860
|
files: z.ZodArray<z.ZodObject<{
|
|
2061
1861
|
filePath: z.ZodString;
|
|
@@ -2064,7 +1864,7 @@ export declare const Api: {
|
|
|
2064
1864
|
}, z.core.$strip>>;
|
|
2065
1865
|
}, z.core.$strip>;
|
|
2066
1866
|
cookies: {
|
|
2067
|
-
|
|
1867
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
2068
1868
|
};
|
|
2069
1869
|
};
|
|
2070
1870
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2075,7 +1875,7 @@ export declare const Api: {
|
|
|
2075
1875
|
}, z.core.$strip>, z.ZodObject<{
|
|
2076
1876
|
status: z.ZodLiteral<200>;
|
|
2077
1877
|
json: z.ZodObject<{
|
|
2078
|
-
patchId: z.ZodString & z.ZodType<
|
|
1878
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
2079
1879
|
files: z.ZodArray<z.ZodObject<{
|
|
2080
1880
|
filePath: z.ZodString;
|
|
2081
1881
|
metadata: z.ZodObject<{
|
|
@@ -2110,7 +1910,7 @@ export declare const Api: {
|
|
|
2110
1910
|
contentType: z.ZodString;
|
|
2111
1911
|
}, z.core.$strip>;
|
|
2112
1912
|
cookies: {
|
|
2113
|
-
|
|
1913
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
2114
1914
|
};
|
|
2115
1915
|
};
|
|
2116
1916
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2135,7 +1935,7 @@ export declare const Api: {
|
|
|
2135
1935
|
GET: {
|
|
2136
1936
|
req: {
|
|
2137
1937
|
cookies: {
|
|
2138
|
-
|
|
1938
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
2139
1939
|
};
|
|
2140
1940
|
};
|
|
2141
1941
|
res: z.ZodObject<{
|
|
@@ -2159,7 +1959,7 @@ export declare const Api: {
|
|
|
2159
1959
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2160
1960
|
};
|
|
2161
1961
|
cookies: {
|
|
2162
|
-
|
|
1962
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
2163
1963
|
};
|
|
2164
1964
|
body: z.ZodUnknown;
|
|
2165
1965
|
};
|
|
@@ -2176,7 +1976,7 @@ export declare const Api: {
|
|
|
2176
1976
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2177
1977
|
};
|
|
2178
1978
|
cookies: {
|
|
2179
|
-
|
|
1979
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
2180
1980
|
};
|
|
2181
1981
|
body: z.ZodUnknown;
|
|
2182
1982
|
};
|
|
@@ -2193,7 +1993,7 @@ export declare const Api: {
|
|
|
2193
1993
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2194
1994
|
};
|
|
2195
1995
|
cookies: {
|
|
2196
|
-
|
|
1996
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
2197
1997
|
};
|
|
2198
1998
|
body: z.ZodUnknown;
|
|
2199
1999
|
};
|
|
@@ -2210,7 +2010,7 @@ export declare const Api: {
|
|
|
2210
2010
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2211
2011
|
};
|
|
2212
2012
|
cookies: {
|
|
2213
|
-
|
|
2013
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
2214
2014
|
};
|
|
2215
2015
|
body: z.ZodUnknown;
|
|
2216
2016
|
};
|