@valbuild/shared 0.150.12 → 0.150.16
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 +31 -0
- package/client/dist/valbuild-shared-client.cjs.dev.js +2 -1
- package/client/dist/valbuild-shared-client.cjs.prod.js +2 -1
- package/client/dist/valbuild-shared-client.esm.js +1 -1
- package/dist/declarations/src/client/index.d.ts +1 -0
- package/dist/declarations/src/internal/ApiRoutes.d.ts +375 -94
- package/dist/declarations/src/internal/aiTools/toolNames.d.ts +1 -1
- package/dist/declarations/src/internal/index.d.ts +3 -0
- package/dist/declarations/src/internal/localeAt.d.ts +86 -1
- package/dist/declarations/src/internal/localeRelocation.d.ts +46 -0
- package/dist/declarations/src/internal/pageScreenshot.d.ts +40 -0
- package/dist/declarations/src/internal/server/types.d.ts +3 -3
- package/dist/declarations/src/internal/sketchpad/sketchFormat.d.ts +118 -0
- package/dist/declarations/src/internal/valCanvasProtocol.d.ts +21 -0
- package/dist/declarations/src/internal/zod/History.d.ts +7 -7
- package/dist/declarations/src/internal/zod/Patch.d.ts +1 -0
- package/dist/declarations/src/internal/zod/SerializedSchema.d.ts +20 -2
- package/dist/{getSitemapTree-97b3166f.esm.js → getSitemapTree-7c848c94.esm.js} +137 -2
- package/dist/{getSitemapTree-5354ce90.cjs.prod.js → getSitemapTree-97713490.cjs.prod.js} +155 -1
- package/dist/{getSitemapTree-d934ff9c.cjs.dev.js → getSitemapTree-98642b57.cjs.dev.js} +155 -1
- package/internal/dist/valbuild-shared-internal.cjs.dev.js +837 -15
- package/internal/dist/valbuild-shared-internal.cjs.prod.js +837 -15
- package/internal/dist/valbuild-shared-internal.esm.js +821 -17
- package/package.json +2 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import {
|
|
2
|
+
import { type ModuleFilePath } from "@valbuild/core";
|
|
3
|
+
declare const ModuleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
3
4
|
/**
|
|
4
5
|
* Why Val Build refused a write for the project's plan, as data: the `error` of
|
|
5
6
|
* its 403 (`refusalError` in valbuild/home's `billing/projectLimits.ts`).
|
|
@@ -81,6 +82,43 @@ export declare const AnalyticsBeacon: z.ZodObject<{
|
|
|
81
82
|
viewed: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
82
83
|
}, z.core.$strip>;
|
|
83
84
|
export type AnalyticsBeacon = z.infer<typeof AnalyticsBeacon>;
|
|
85
|
+
/**
|
|
86
|
+
* A Sketchpad, as the server keeps it: a rough page written in the strict
|
|
87
|
+
* format of `sketchpad/sketchFormat.ts`, owned by the project and nothing
|
|
88
|
+
* else. Not by an AI session -- the assistant that made it remembers its id,
|
|
89
|
+
* and any chat can read it again -- and not by a page: `page` is a label for
|
|
90
|
+
* which page it is about, and can be changed or cleared.
|
|
91
|
+
*
|
|
92
|
+
* `version` goes up by one on every change, and a change names the version
|
|
93
|
+
* it was made against, so two writers cannot overwrite each other unseen.
|
|
94
|
+
*/
|
|
95
|
+
export declare const Sketchpad: z.ZodObject<{
|
|
96
|
+
id: z.ZodString;
|
|
97
|
+
page: z.ZodNullable<z.ZodString>;
|
|
98
|
+
title: z.ZodNullable<z.ZodString>;
|
|
99
|
+
text: z.ZodString;
|
|
100
|
+
version: z.ZodNumber;
|
|
101
|
+
archived: z.ZodBoolean;
|
|
102
|
+
createdAt: z.ZodString;
|
|
103
|
+
updatedAt: z.ZodString;
|
|
104
|
+
createdBy: z.ZodNullable<z.ZodString>;
|
|
105
|
+
updatedBy: z.ZodNullable<z.ZodString>;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
export type SketchpadT = z.infer<typeof Sketchpad>;
|
|
108
|
+
export declare const SketchpadSummary: z.ZodObject<{
|
|
109
|
+
id: z.ZodString;
|
|
110
|
+
title: z.ZodNullable<z.ZodString>;
|
|
111
|
+
page: z.ZodNullable<z.ZodString>;
|
|
112
|
+
version: z.ZodNumber;
|
|
113
|
+
createdAt: z.ZodString;
|
|
114
|
+
updatedAt: z.ZodString;
|
|
115
|
+
archived: z.ZodBoolean;
|
|
116
|
+
createdBy: z.ZodNullable<z.ZodString>;
|
|
117
|
+
updatedBy: z.ZodNullable<z.ZodString>;
|
|
118
|
+
}, z.core.$strip>;
|
|
119
|
+
export type SketchpadSummaryT = z.infer<typeof SketchpadSummary>;
|
|
120
|
+
/** The most text a sketchpad holds, in UTF-8 bytes: a page, not a site. */
|
|
121
|
+
export declare const SKETCHPAD_MAX_TEXT_LENGTH: number;
|
|
84
122
|
export declare const Api: {
|
|
85
123
|
"/draft/enable": {
|
|
86
124
|
GET: {
|
|
@@ -89,7 +127,7 @@ export declare const Api: {
|
|
|
89
127
|
redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
90
128
|
};
|
|
91
129
|
cookies: {
|
|
92
|
-
|
|
130
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
93
131
|
};
|
|
94
132
|
};
|
|
95
133
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -115,7 +153,7 @@ export declare const Api: {
|
|
|
115
153
|
redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
116
154
|
};
|
|
117
155
|
cookies: {
|
|
118
|
-
|
|
156
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
119
157
|
};
|
|
120
158
|
};
|
|
121
159
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -156,7 +194,7 @@ export declare const Api: {
|
|
|
156
194
|
GET: {
|
|
157
195
|
req: {
|
|
158
196
|
cookies: {
|
|
159
|
-
|
|
197
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
160
198
|
};
|
|
161
199
|
};
|
|
162
200
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -179,7 +217,7 @@ export declare const Api: {
|
|
|
179
217
|
redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
180
218
|
};
|
|
181
219
|
cookies: {
|
|
182
|
-
|
|
220
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
183
221
|
};
|
|
184
222
|
};
|
|
185
223
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -191,13 +229,14 @@ export declare const Api: {
|
|
|
191
229
|
status: z.ZodLiteral<302>;
|
|
192
230
|
redirectTo: z.ZodString;
|
|
193
231
|
cookies: z.ZodObject<{
|
|
194
|
-
|
|
232
|
+
val_enable: z.ZodObject<{
|
|
195
233
|
value: z.ZodLiteral<"true">;
|
|
196
234
|
options: z.ZodObject<{
|
|
197
235
|
httpOnly: z.ZodLiteral<false>;
|
|
198
236
|
sameSite: z.ZodLiteral<"lax">;
|
|
199
237
|
}, z.core.$strip>;
|
|
200
|
-
}, z.core.$strip
|
|
238
|
+
}, z.core.$strip>;
|
|
239
|
+
val_state: z.ZodObject<{
|
|
201
240
|
value: z.ZodString;
|
|
202
241
|
options: z.ZodObject<{
|
|
203
242
|
httpOnly: z.ZodLiteral<true>;
|
|
@@ -210,7 +249,7 @@ export declare const Api: {
|
|
|
210
249
|
status: z.ZodLiteral<302>;
|
|
211
250
|
redirectTo: z.ZodString;
|
|
212
251
|
cookies: z.ZodObject<{
|
|
213
|
-
|
|
252
|
+
val_enable: z.ZodObject<{
|
|
214
253
|
value: z.ZodLiteral<"true">;
|
|
215
254
|
options: z.ZodObject<{
|
|
216
255
|
httpOnly: z.ZodLiteral<false>;
|
|
@@ -233,7 +272,7 @@ export declare const Api: {
|
|
|
233
272
|
redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
234
273
|
};
|
|
235
274
|
cookies: {
|
|
236
|
-
|
|
275
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
237
276
|
};
|
|
238
277
|
};
|
|
239
278
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -245,7 +284,7 @@ export declare const Api: {
|
|
|
245
284
|
status: z.ZodLiteral<302>;
|
|
246
285
|
redirectTo: z.ZodString;
|
|
247
286
|
cookies: z.ZodObject<{
|
|
248
|
-
|
|
287
|
+
val_enable: z.ZodObject<{
|
|
249
288
|
value: z.ZodLiteral<"false">;
|
|
250
289
|
}, z.core.$strip>;
|
|
251
290
|
}, z.core.$strip>;
|
|
@@ -268,13 +307,14 @@ export declare const Api: {
|
|
|
268
307
|
status: z.ZodLiteral<302>;
|
|
269
308
|
redirectTo: z.ZodString;
|
|
270
309
|
cookies: z.ZodObject<{
|
|
271
|
-
|
|
310
|
+
val_enable: z.ZodObject<{
|
|
272
311
|
value: z.ZodLiteral<"true">;
|
|
273
312
|
options: z.ZodObject<{
|
|
274
313
|
httpOnly: z.ZodLiteral<false>;
|
|
275
314
|
sameSite: z.ZodLiteral<"lax">;
|
|
276
315
|
}, z.core.$strip>;
|
|
277
|
-
}, z.core.$strip
|
|
316
|
+
}, z.core.$strip>;
|
|
317
|
+
val_state: z.ZodObject<{
|
|
278
318
|
value: z.ZodString;
|
|
279
319
|
options: z.ZodObject<{
|
|
280
320
|
httpOnly: z.ZodLiteral<true>;
|
|
@@ -299,22 +339,24 @@ export declare const Api: {
|
|
|
299
339
|
state: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
300
340
|
};
|
|
301
341
|
cookies: {
|
|
302
|
-
|
|
342
|
+
val_state: z.ZodString;
|
|
303
343
|
};
|
|
304
344
|
};
|
|
305
345
|
res: z.ZodObject<{
|
|
306
346
|
status: z.ZodLiteral<302>;
|
|
307
347
|
redirectTo: z.ZodString;
|
|
308
348
|
cookies: z.ZodObject<{
|
|
309
|
-
|
|
349
|
+
val_state: z.ZodObject<{
|
|
310
350
|
value: z.ZodLiteral<null>;
|
|
311
|
-
}, z.core.$strip
|
|
351
|
+
}, z.core.$strip>;
|
|
352
|
+
val_enable: z.ZodOptional<z.ZodObject<{
|
|
312
353
|
value: z.ZodLiteral<"true">;
|
|
313
354
|
options: z.ZodObject<{
|
|
314
355
|
httpOnly: z.ZodLiteral<false>;
|
|
315
356
|
sameSite: z.ZodLiteral<"lax">;
|
|
316
357
|
}, z.core.$strip>;
|
|
317
|
-
}, z.core.$strip
|
|
358
|
+
}, z.core.$strip>>;
|
|
359
|
+
val_session: z.ZodOptional<z.ZodObject<{
|
|
318
360
|
value: z.ZodString;
|
|
319
361
|
options: z.ZodOptional<z.ZodObject<{
|
|
320
362
|
httpOnly: z.ZodLiteral<true>;
|
|
@@ -338,7 +380,17 @@ export declare const Api: {
|
|
|
338
380
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
339
381
|
status: z.ZodLiteral<200>;
|
|
340
382
|
cookies: z.ZodObject<{
|
|
341
|
-
|
|
383
|
+
val_session: z.ZodOptional<z.ZodObject<{
|
|
384
|
+
value: z.ZodString;
|
|
385
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
386
|
+
httpOnly: z.ZodLiteral<true>;
|
|
387
|
+
sameSite: z.ZodLiteral<"strict">;
|
|
388
|
+
path: z.ZodString;
|
|
389
|
+
secure: z.ZodLiteral<true>;
|
|
390
|
+
expires: z.ZodCustom<Date, Date>;
|
|
391
|
+
}, z.core.$strip>>;
|
|
392
|
+
}, z.core.$strip>>;
|
|
393
|
+
val_state: z.ZodOptional<z.ZodObject<{
|
|
342
394
|
value: z.ZodString;
|
|
343
395
|
options: z.ZodOptional<z.ZodObject<{
|
|
344
396
|
httpOnly: z.ZodLiteral<true>;
|
|
@@ -353,7 +405,17 @@ export declare const Api: {
|
|
|
353
405
|
status: z.ZodLiteral<302>;
|
|
354
406
|
redirectTo: z.ZodString;
|
|
355
407
|
cookies: z.ZodObject<{
|
|
356
|
-
|
|
408
|
+
val_session: z.ZodOptional<z.ZodObject<{
|
|
409
|
+
value: z.ZodString;
|
|
410
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
411
|
+
httpOnly: z.ZodLiteral<true>;
|
|
412
|
+
sameSite: z.ZodLiteral<"strict">;
|
|
413
|
+
path: z.ZodString;
|
|
414
|
+
secure: z.ZodLiteral<true>;
|
|
415
|
+
expires: z.ZodCustom<Date, Date>;
|
|
416
|
+
}, z.core.$strip>>;
|
|
417
|
+
}, z.core.$strip>>;
|
|
418
|
+
val_state: z.ZodOptional<z.ZodObject<{
|
|
357
419
|
value: z.ZodString;
|
|
358
420
|
options: z.ZodOptional<z.ZodObject<{
|
|
359
421
|
httpOnly: z.ZodLiteral<true>;
|
|
@@ -474,13 +536,13 @@ export declare const Api: {
|
|
|
474
536
|
baseSha: z.ZodString;
|
|
475
537
|
schemaSha: z.ZodString;
|
|
476
538
|
sourcesSha: z.ZodString;
|
|
477
|
-
patches: z.ZodArray<z.ZodString & z.ZodType<
|
|
478
|
-
appliedPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
479
|
-
publishingPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
480
|
-
heldBackPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
539
|
+
patches: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
540
|
+
appliedPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
541
|
+
publishingPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
542
|
+
heldBackPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
481
543
|
headCommitSha: z.ZodOptional<z.ZodString>;
|
|
482
544
|
removed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
483
|
-
patchId: z.ZodString & z.ZodType<
|
|
545
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
484
546
|
reason: z.ZodString;
|
|
485
547
|
}, z.core.$strip>>>;
|
|
486
548
|
config: z.ZodObject<{
|
|
@@ -514,12 +576,12 @@ export declare const Api: {
|
|
|
514
576
|
schemaSha: z.ZodString;
|
|
515
577
|
sourcesSha: z.ZodString;
|
|
516
578
|
commitSha: z.ZodOptional<z.ZodString>;
|
|
517
|
-
patches: z.ZodArray<z.ZodString & z.ZodType<
|
|
518
|
-
appliedPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
519
|
-
publishingPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
520
|
-
heldBackPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
579
|
+
patches: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
580
|
+
appliedPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
581
|
+
publishingPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
582
|
+
heldBackPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
521
583
|
headCommitSha: z.ZodOptional<z.ZodString>;
|
|
522
|
-
headPatchId: z.ZodOptional<z.ZodNullable<z.ZodString & z.ZodType<
|
|
584
|
+
headPatchId: z.ZodOptional<z.ZodNullable<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
523
585
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
524
586
|
commits: z.ZodArray<z.ZodObject<{
|
|
525
587
|
commitSha: z.ZodString;
|
|
@@ -675,6 +737,221 @@ export declare const Api: {
|
|
|
675
737
|
}, z.core.$strip>;
|
|
676
738
|
};
|
|
677
739
|
};
|
|
740
|
+
/**
|
|
741
|
+
* The project's sketchpads: list them, or make one. See `Sketchpad`.
|
|
742
|
+
* Making one answers with its id, which is what an assistant keeps to
|
|
743
|
+
* read and change it later.
|
|
744
|
+
*/
|
|
745
|
+
"/sketchpads": {
|
|
746
|
+
GET: {
|
|
747
|
+
req: {
|
|
748
|
+
query: {
|
|
749
|
+
/** `exclude` (the default), `include`, or `only`. */
|
|
750
|
+
archived: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
751
|
+
/** Only those about this page. */
|
|
752
|
+
page: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
753
|
+
};
|
|
754
|
+
cookies: {
|
|
755
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
756
|
+
};
|
|
757
|
+
};
|
|
758
|
+
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
759
|
+
status: z.ZodLiteral<401>;
|
|
760
|
+
json: z.ZodObject<{
|
|
761
|
+
message: z.ZodString;
|
|
762
|
+
}, z.core.$strip>;
|
|
763
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
764
|
+
status: z.ZodLiteral<400>;
|
|
765
|
+
json: z.ZodObject<{
|
|
766
|
+
message: z.ZodString;
|
|
767
|
+
}, z.core.$strip>;
|
|
768
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
769
|
+
status: z.ZodLiteral<500>;
|
|
770
|
+
json: z.ZodObject<{
|
|
771
|
+
message: z.ZodString;
|
|
772
|
+
}, z.core.$strip>;
|
|
773
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
774
|
+
status: z.ZodLiteral<200>;
|
|
775
|
+
json: z.ZodObject<{
|
|
776
|
+
sketchpads: z.ZodArray<z.ZodObject<{
|
|
777
|
+
id: z.ZodString;
|
|
778
|
+
title: z.ZodNullable<z.ZodString>;
|
|
779
|
+
page: z.ZodNullable<z.ZodString>;
|
|
780
|
+
version: z.ZodNumber;
|
|
781
|
+
createdAt: z.ZodString;
|
|
782
|
+
updatedAt: z.ZodString;
|
|
783
|
+
archived: z.ZodBoolean;
|
|
784
|
+
createdBy: z.ZodNullable<z.ZodString>;
|
|
785
|
+
updatedBy: z.ZodNullable<z.ZodString>;
|
|
786
|
+
}, z.core.$strip>>;
|
|
787
|
+
}, z.core.$strip>;
|
|
788
|
+
}, z.core.$strip>]>;
|
|
789
|
+
};
|
|
790
|
+
POST: {
|
|
791
|
+
req: {
|
|
792
|
+
body: z.ZodObject<{
|
|
793
|
+
text: z.ZodString;
|
|
794
|
+
page: z.ZodNullable<z.ZodString>;
|
|
795
|
+
}, z.core.$strip>;
|
|
796
|
+
cookies: {
|
|
797
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
798
|
+
};
|
|
799
|
+
};
|
|
800
|
+
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
801
|
+
status: z.ZodLiteral<401>;
|
|
802
|
+
json: z.ZodObject<{
|
|
803
|
+
message: z.ZodString;
|
|
804
|
+
}, z.core.$strip>;
|
|
805
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
806
|
+
status: z.ZodLiteral<400>;
|
|
807
|
+
json: z.ZodObject<{
|
|
808
|
+
message: z.ZodString;
|
|
809
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
810
|
+
line: z.ZodNumber;
|
|
811
|
+
message: z.ZodString;
|
|
812
|
+
}, z.core.$strip>>>;
|
|
813
|
+
}, z.core.$strip>;
|
|
814
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
815
|
+
status: z.ZodLiteral<500>;
|
|
816
|
+
json: z.ZodObject<{
|
|
817
|
+
message: z.ZodString;
|
|
818
|
+
}, z.core.$strip>;
|
|
819
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
820
|
+
status: z.ZodLiteral<201>;
|
|
821
|
+
json: z.ZodObject<{
|
|
822
|
+
sketchpad: z.ZodObject<{
|
|
823
|
+
id: z.ZodString;
|
|
824
|
+
page: z.ZodNullable<z.ZodString>;
|
|
825
|
+
title: z.ZodNullable<z.ZodString>;
|
|
826
|
+
text: z.ZodString;
|
|
827
|
+
version: z.ZodNumber;
|
|
828
|
+
archived: z.ZodBoolean;
|
|
829
|
+
createdAt: z.ZodString;
|
|
830
|
+
updatedAt: z.ZodString;
|
|
831
|
+
createdBy: z.ZodNullable<z.ZodString>;
|
|
832
|
+
updatedBy: z.ZodNullable<z.ZodString>;
|
|
833
|
+
}, z.core.$strip>;
|
|
834
|
+
}, z.core.$strip>;
|
|
835
|
+
}, z.core.$strip>]>;
|
|
836
|
+
};
|
|
837
|
+
};
|
|
838
|
+
/** One sketchpad: read it, or change its text, its page or whether it is archived. */
|
|
839
|
+
"/sketchpad": {
|
|
840
|
+
GET: {
|
|
841
|
+
req: {
|
|
842
|
+
query: {
|
|
843
|
+
id: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>;
|
|
844
|
+
};
|
|
845
|
+
cookies: {
|
|
846
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
847
|
+
};
|
|
848
|
+
};
|
|
849
|
+
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
850
|
+
status: z.ZodLiteral<401>;
|
|
851
|
+
json: z.ZodObject<{
|
|
852
|
+
message: z.ZodString;
|
|
853
|
+
}, z.core.$strip>;
|
|
854
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
855
|
+
status: z.ZodLiteral<404>;
|
|
856
|
+
json: z.ZodObject<{
|
|
857
|
+
message: z.ZodString;
|
|
858
|
+
}, z.core.$strip>;
|
|
859
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
860
|
+
status: z.ZodLiteral<500>;
|
|
861
|
+
json: z.ZodObject<{
|
|
862
|
+
message: z.ZodString;
|
|
863
|
+
}, z.core.$strip>;
|
|
864
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
865
|
+
status: z.ZodLiteral<200>;
|
|
866
|
+
json: z.ZodObject<{
|
|
867
|
+
sketchpad: z.ZodObject<{
|
|
868
|
+
id: z.ZodString;
|
|
869
|
+
page: z.ZodNullable<z.ZodString>;
|
|
870
|
+
title: z.ZodNullable<z.ZodString>;
|
|
871
|
+
text: z.ZodString;
|
|
872
|
+
version: z.ZodNumber;
|
|
873
|
+
archived: z.ZodBoolean;
|
|
874
|
+
createdAt: z.ZodString;
|
|
875
|
+
updatedAt: z.ZodString;
|
|
876
|
+
createdBy: z.ZodNullable<z.ZodString>;
|
|
877
|
+
updatedBy: z.ZodNullable<z.ZodString>;
|
|
878
|
+
}, z.core.$strip>;
|
|
879
|
+
}, z.core.$strip>;
|
|
880
|
+
}, z.core.$strip>]>;
|
|
881
|
+
};
|
|
882
|
+
PATCH: {
|
|
883
|
+
req: {
|
|
884
|
+
body: z.ZodObject<{
|
|
885
|
+
id: z.ZodString;
|
|
886
|
+
baseVersion: z.ZodNumber;
|
|
887
|
+
text: z.ZodOptional<z.ZodString>;
|
|
888
|
+
page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
889
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
890
|
+
}, z.core.$strip>;
|
|
891
|
+
cookies: {
|
|
892
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
893
|
+
};
|
|
894
|
+
};
|
|
895
|
+
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
896
|
+
status: z.ZodLiteral<401>;
|
|
897
|
+
json: z.ZodObject<{
|
|
898
|
+
message: z.ZodString;
|
|
899
|
+
}, z.core.$strip>;
|
|
900
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
901
|
+
status: z.ZodLiteral<404>;
|
|
902
|
+
json: z.ZodObject<{
|
|
903
|
+
message: z.ZodString;
|
|
904
|
+
}, z.core.$strip>;
|
|
905
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
906
|
+
status: z.ZodLiteral<400>;
|
|
907
|
+
json: z.ZodObject<{
|
|
908
|
+
message: z.ZodString;
|
|
909
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
910
|
+
line: z.ZodNumber;
|
|
911
|
+
message: z.ZodString;
|
|
912
|
+
}, z.core.$strip>>>;
|
|
913
|
+
}, z.core.$strip>;
|
|
914
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
915
|
+
status: z.ZodLiteral<409>;
|
|
916
|
+
json: z.ZodObject<{
|
|
917
|
+
message: z.ZodString;
|
|
918
|
+
sketchpad: z.ZodObject<{
|
|
919
|
+
id: z.ZodString;
|
|
920
|
+
page: z.ZodNullable<z.ZodString>;
|
|
921
|
+
title: z.ZodNullable<z.ZodString>;
|
|
922
|
+
text: z.ZodString;
|
|
923
|
+
version: z.ZodNumber;
|
|
924
|
+
archived: z.ZodBoolean;
|
|
925
|
+
createdAt: z.ZodString;
|
|
926
|
+
updatedAt: z.ZodString;
|
|
927
|
+
createdBy: z.ZodNullable<z.ZodString>;
|
|
928
|
+
updatedBy: z.ZodNullable<z.ZodString>;
|
|
929
|
+
}, z.core.$strip>;
|
|
930
|
+
}, z.core.$strip>;
|
|
931
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
932
|
+
status: z.ZodLiteral<500>;
|
|
933
|
+
json: z.ZodObject<{
|
|
934
|
+
message: z.ZodString;
|
|
935
|
+
}, z.core.$strip>;
|
|
936
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
937
|
+
status: z.ZodLiteral<200>;
|
|
938
|
+
json: z.ZodObject<{
|
|
939
|
+
sketchpad: z.ZodObject<{
|
|
940
|
+
id: z.ZodString;
|
|
941
|
+
page: z.ZodNullable<z.ZodString>;
|
|
942
|
+
title: z.ZodNullable<z.ZodString>;
|
|
943
|
+
text: z.ZodString;
|
|
944
|
+
version: z.ZodNumber;
|
|
945
|
+
archived: z.ZodBoolean;
|
|
946
|
+
createdAt: z.ZodString;
|
|
947
|
+
updatedAt: z.ZodString;
|
|
948
|
+
createdBy: z.ZodNullable<z.ZodString>;
|
|
949
|
+
updatedBy: z.ZodNullable<z.ZodString>;
|
|
950
|
+
}, z.core.$strip>;
|
|
951
|
+
}, z.core.$strip>;
|
|
952
|
+
}, z.core.$strip>]>;
|
|
953
|
+
};
|
|
954
|
+
};
|
|
678
955
|
"/upload/patches": {
|
|
679
956
|
POST: {
|
|
680
957
|
req: {
|
|
@@ -685,7 +962,7 @@ export declare const Api: {
|
|
|
685
962
|
headBaseSha: z.ZodString;
|
|
686
963
|
}, z.core.$strip>, z.ZodObject<{
|
|
687
964
|
type: z.ZodLiteral<"patch">;
|
|
688
|
-
patchId: z.ZodString & z.ZodType<
|
|
965
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
689
966
|
}, z.core.$strip>]>;
|
|
690
967
|
filePath: z.ZodString;
|
|
691
968
|
data: z.ZodAny;
|
|
@@ -703,7 +980,7 @@ export declare const Api: {
|
|
|
703
980
|
status: z.ZodLiteral<200>;
|
|
704
981
|
json: z.ZodObject<{
|
|
705
982
|
filePath: z.ZodString;
|
|
706
|
-
patchId: z.ZodString & z.ZodType<
|
|
983
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
707
984
|
}, z.core.$strip>;
|
|
708
985
|
}, z.core.$strip>]>;
|
|
709
986
|
};
|
|
@@ -794,7 +1071,7 @@ export declare const Api: {
|
|
|
794
1071
|
DELETE: {
|
|
795
1072
|
req: {
|
|
796
1073
|
query: {
|
|
797
|
-
id: z.ZodArray<z.ZodString & z.ZodType<
|
|
1074
|
+
id: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
798
1075
|
};
|
|
799
1076
|
body: z.ZodOptional<z.ZodObject<{
|
|
800
1077
|
reportHeadVersion: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -813,7 +1090,7 @@ export declare const Api: {
|
|
|
813
1090
|
json: z.ZodObject<{
|
|
814
1091
|
message: z.ZodString;
|
|
815
1092
|
errors: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
816
|
-
patchId: z.ZodString & z.ZodType<
|
|
1093
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
817
1094
|
message: z.ZodString;
|
|
818
1095
|
publishJobId: z.ZodOptional<z.ZodString>;
|
|
819
1096
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -823,8 +1100,8 @@ export declare const Api: {
|
|
|
823
1100
|
}, z.core.$strip>;
|
|
824
1101
|
}, z.core.$strip>, z.ZodObject<{
|
|
825
1102
|
status: z.ZodLiteral<200>;
|
|
826
|
-
json: z.ZodUnion<readonly [z.ZodArray<z.ZodString & z.ZodType<
|
|
827
|
-
deleted: z.ZodArray<z.ZodString & z.ZodType<
|
|
1103
|
+
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<{
|
|
1104
|
+
deleted: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
828
1105
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
829
1106
|
}, z.core.$strip>]>;
|
|
830
1107
|
}, z.core.$strip>]>;
|
|
@@ -837,12 +1114,12 @@ export declare const Api: {
|
|
|
837
1114
|
headBaseSha: z.ZodString;
|
|
838
1115
|
}, z.core.$strip>, z.ZodObject<{
|
|
839
1116
|
type: z.ZodLiteral<"patch">;
|
|
840
|
-
patchId: z.ZodString & z.ZodType<
|
|
1117
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
841
1118
|
}, z.core.$strip>]>;
|
|
842
1119
|
sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
843
1120
|
patches: z.ZodArray<z.ZodObject<{
|
|
844
1121
|
path: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
845
|
-
patchId: z.ZodString & z.ZodType<
|
|
1122
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
846
1123
|
patch: z.ZodAny;
|
|
847
1124
|
}, z.core.$strip>>;
|
|
848
1125
|
}, z.core.$strip>;
|
|
@@ -883,26 +1160,26 @@ export declare const Api: {
|
|
|
883
1160
|
until: z.ZodOptional<z.ZodString>;
|
|
884
1161
|
billingUrl: z.ZodOptional<z.ZodString>;
|
|
885
1162
|
}, z.core.$strip>;
|
|
886
|
-
newPatchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1163
|
+
newPatchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
887
1164
|
parentRef: z.ZodUnion<readonly [z.ZodObject<{
|
|
888
1165
|
type: z.ZodLiteral<"head">;
|
|
889
1166
|
headBaseSha: z.ZodString;
|
|
890
1167
|
}, z.core.$strip>, z.ZodObject<{
|
|
891
1168
|
type: z.ZodLiteral<"patch">;
|
|
892
|
-
patchId: z.ZodString & z.ZodType<
|
|
1169
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
893
1170
|
}, z.core.$strip>]>;
|
|
894
1171
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
895
1172
|
}, z.core.$strip>;
|
|
896
1173
|
}, z.core.$strip>, z.ZodObject<{
|
|
897
1174
|
status: z.ZodLiteral<200>;
|
|
898
1175
|
json: z.ZodObject<{
|
|
899
|
-
newPatchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1176
|
+
newPatchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
900
1177
|
parentRef: z.ZodUnion<readonly [z.ZodObject<{
|
|
901
1178
|
type: z.ZodLiteral<"head">;
|
|
902
1179
|
headBaseSha: z.ZodString;
|
|
903
1180
|
}, z.core.$strip>, z.ZodObject<{
|
|
904
1181
|
type: z.ZodLiteral<"patch">;
|
|
905
|
-
patchId: z.ZodString & z.ZodType<
|
|
1182
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
906
1183
|
}, z.core.$strip>]>;
|
|
907
1184
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
908
1185
|
}, z.core.$strip>;
|
|
@@ -911,7 +1188,7 @@ export declare const Api: {
|
|
|
911
1188
|
GET: {
|
|
912
1189
|
req: {
|
|
913
1190
|
query: {
|
|
914
|
-
patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
1191
|
+
patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
915
1192
|
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">>>;
|
|
916
1193
|
};
|
|
917
1194
|
cookies: {
|
|
@@ -928,7 +1205,7 @@ export declare const Api: {
|
|
|
928
1205
|
json: z.ZodObject<{
|
|
929
1206
|
message: z.ZodString;
|
|
930
1207
|
patchErrors: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
931
|
-
patchId: z.ZodString & z.ZodType<
|
|
1208
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
932
1209
|
message: z.ZodString;
|
|
933
1210
|
publishJobId: z.ZodOptional<z.ZodString>;
|
|
934
1211
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -952,14 +1229,14 @@ export declare const Api: {
|
|
|
952
1229
|
patch: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
953
1230
|
op: z.ZodLiteral<"add">;
|
|
954
1231
|
path: z.ZodArray<z.ZodString>;
|
|
955
|
-
value: z.ZodType<
|
|
1232
|
+
value: z.ZodType<import("@valbuild/core/patch").JSONValue, unknown, z.core.$ZodTypeInternals<import("@valbuild/core/patch").JSONValue, unknown>>;
|
|
956
1233
|
}, z.core.$strict>, z.ZodObject<{
|
|
957
1234
|
op: z.ZodLiteral<"remove">;
|
|
958
1235
|
path: z.ZodTuple<[z.ZodString], z.ZodString>;
|
|
959
1236
|
}, z.core.$strict>, z.ZodObject<{
|
|
960
1237
|
op: z.ZodLiteral<"replace">;
|
|
961
1238
|
path: z.ZodArray<z.ZodString>;
|
|
962
|
-
value: z.ZodType<
|
|
1239
|
+
value: z.ZodType<import("@valbuild/core/patch").JSONValue, unknown, z.core.$ZodTypeInternals<import("@valbuild/core/patch").JSONValue, unknown>>;
|
|
963
1240
|
}, z.core.$strict>, z.ZodObject<{
|
|
964
1241
|
op: z.ZodLiteral<"move">;
|
|
965
1242
|
from: z.ZodTuple<[z.ZodString], z.ZodString>;
|
|
@@ -971,17 +1248,17 @@ export declare const Api: {
|
|
|
971
1248
|
}, z.core.$strict>, z.ZodObject<{
|
|
972
1249
|
op: z.ZodLiteral<"test">;
|
|
973
1250
|
path: z.ZodArray<z.ZodString>;
|
|
974
|
-
value: z.ZodType<
|
|
1251
|
+
value: z.ZodType<import("@valbuild/core/patch").JSONValue, unknown, z.core.$ZodTypeInternals<import("@valbuild/core/patch").JSONValue, unknown>>;
|
|
975
1252
|
}, z.core.$strict>, z.ZodObject<{
|
|
976
1253
|
op: z.ZodLiteral<"file">;
|
|
977
1254
|
path: z.ZodArray<z.ZodString>;
|
|
978
1255
|
filePath: z.ZodString;
|
|
979
|
-
value: z.ZodType<
|
|
1256
|
+
value: z.ZodType<import("@valbuild/core/patch").JSONValue, unknown, z.core.$ZodTypeInternals<import("@valbuild/core/patch").JSONValue, unknown>>;
|
|
980
1257
|
remote: z.ZodBoolean;
|
|
981
1258
|
nestedFilePath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
982
|
-
metadata: z.ZodOptional<z.ZodType<
|
|
1259
|
+
metadata: z.ZodOptional<z.ZodType<import("@valbuild/core/patch").JSONValue, unknown, z.core.$ZodTypeInternals<import("@valbuild/core/patch").JSONValue, unknown>>>;
|
|
983
1260
|
}, z.core.$strict>], "op">>>;
|
|
984
|
-
patchId: z.ZodString & z.ZodType<
|
|
1261
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
985
1262
|
createdAt: z.ZodString;
|
|
986
1263
|
authorId: z.ZodNullable<z.ZodString>;
|
|
987
1264
|
appliedAt: z.ZodNullable<z.ZodObject<{
|
|
@@ -992,7 +1269,7 @@ export declare const Api: {
|
|
|
992
1269
|
error: z.ZodOptional<z.ZodObject<{
|
|
993
1270
|
message: z.ZodString;
|
|
994
1271
|
}, z.core.$strip>>;
|
|
995
|
-
errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<
|
|
1272
|
+
errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>, z.ZodObject<{
|
|
996
1273
|
message: z.ZodString;
|
|
997
1274
|
}, z.core.$strip>>>;
|
|
998
1275
|
}, z.core.$strip>;
|
|
@@ -1032,7 +1309,7 @@ export declare const Api: {
|
|
|
1032
1309
|
status: z.ZodLiteral<200>;
|
|
1033
1310
|
json: z.ZodObject<{
|
|
1034
1311
|
schemaSha: z.ZodString;
|
|
1035
|
-
schemas: z.ZodRecord<z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>, z.ZodType<
|
|
1312
|
+
schemas: z.ZodRecord<z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>, z.ZodType<import("@valbuild/core").SerializedSchema, unknown, z.core.$ZodTypeInternals<import("@valbuild/core").SerializedSchema, unknown>>>;
|
|
1036
1313
|
}, z.core.$strip>;
|
|
1037
1314
|
}, z.core.$strip>]>;
|
|
1038
1315
|
};
|
|
@@ -1096,9 +1373,9 @@ export declare const Api: {
|
|
|
1096
1373
|
source: z.ZodOptional<z.ZodAny>;
|
|
1097
1374
|
baseSource: z.ZodOptional<z.ZodAny>;
|
|
1098
1375
|
patches: z.ZodOptional<z.ZodObject<{
|
|
1099
|
-
applied: z.ZodArray<z.ZodString & z.ZodType<
|
|
1100
|
-
skipped: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
1101
|
-
errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<
|
|
1376
|
+
applied: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1377
|
+
skipped: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
1378
|
+
errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>, z.ZodObject<{
|
|
1102
1379
|
message: z.ZodString;
|
|
1103
1380
|
}, z.core.$strip>>>;
|
|
1104
1381
|
}, z.core.$strip>>;
|
|
@@ -1106,7 +1383,7 @@ export declare const Api: {
|
|
|
1106
1383
|
message: z.ZodString;
|
|
1107
1384
|
value: z.ZodOptional<z.ZodUnknown>;
|
|
1108
1385
|
fatal: z.ZodOptional<z.ZodBoolean>;
|
|
1109
|
-
fixes: z.ZodOptional<z.ZodArray<z.ZodType<
|
|
1386
|
+
fixes: z.ZodOptional<z.ZodArray<z.ZodType<"image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "images:check-remote" | "images:upload-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "files:check-remote" | "files:upload-remote" | "video:add-metadata" | "video:upload-remote" | "video:download-remote" | "videos:add-metadata" | "videos:check-remote" | "videos:upload-remote" | "keyof:check-keys" | "image:check-gallery" | "file:check-gallery" | "video:check-gallery" | "router:check-route" | "locale:check-locale" | "router:check-locale-param" | "images:check-unique-folder" | "files:check-unique-folder" | "images:check-all-files" | "files:check-all-files" | "videos:check-unique-folder" | "videos:check-all-files" | "jsonValues:extract-entry" | "record:fill-keys" | "external:upload" | "view:check-module" | "remote:rewrite-host", unknown, z.core.$ZodTypeInternals<"image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "images:check-remote" | "images:upload-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "files:check-remote" | "files:upload-remote" | "video:add-metadata" | "video:upload-remote" | "video:download-remote" | "videos:add-metadata" | "videos:check-remote" | "videos:upload-remote" | "keyof:check-keys" | "image:check-gallery" | "file:check-gallery" | "video:check-gallery" | "router:check-route" | "locale:check-locale" | "router:check-locale-param" | "images:check-unique-folder" | "files:check-unique-folder" | "images:check-all-files" | "files:check-all-files" | "videos:check-unique-folder" | "videos:check-all-files" | "jsonValues:extract-entry" | "record:fill-keys" | "external:upload" | "view:check-module" | "remote:rewrite-host", unknown>>>>;
|
|
1110
1387
|
}, z.core.$strip>>>>;
|
|
1111
1388
|
}, z.core.$strip>>;
|
|
1112
1389
|
}, z.core.$strip>;
|
|
@@ -1123,7 +1400,7 @@ export declare const Api: {
|
|
|
1123
1400
|
req: {
|
|
1124
1401
|
body: z.ZodObject<{
|
|
1125
1402
|
moduleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
1126
|
-
patchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
1403
|
+
patchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
1127
1404
|
}, z.core.$strip>;
|
|
1128
1405
|
cookies: {
|
|
1129
1406
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -1157,14 +1434,14 @@ export declare const Api: {
|
|
|
1157
1434
|
message: z.ZodString;
|
|
1158
1435
|
value: z.ZodOptional<z.ZodUnknown>;
|
|
1159
1436
|
fatal: z.ZodOptional<z.ZodBoolean>;
|
|
1160
|
-
fixes: z.ZodOptional<z.ZodArray<z.ZodType<
|
|
1437
|
+
fixes: z.ZodOptional<z.ZodArray<z.ZodType<"image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "images:check-remote" | "images:upload-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "files:check-remote" | "files:upload-remote" | "video:add-metadata" | "video:upload-remote" | "video:download-remote" | "videos:add-metadata" | "videos:check-remote" | "videos:upload-remote" | "keyof:check-keys" | "image:check-gallery" | "file:check-gallery" | "video:check-gallery" | "router:check-route" | "locale:check-locale" | "router:check-locale-param" | "images:check-unique-folder" | "files:check-unique-folder" | "images:check-all-files" | "files:check-all-files" | "videos:check-unique-folder" | "videos:check-all-files" | "jsonValues:extract-entry" | "record:fill-keys" | "external:upload" | "view:check-module" | "remote:rewrite-host", unknown, z.core.$ZodTypeInternals<"image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "images:check-remote" | "images:upload-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "files:check-remote" | "files:upload-remote" | "video:add-metadata" | "video:upload-remote" | "video:download-remote" | "videos:add-metadata" | "videos:check-remote" | "videos:upload-remote" | "keyof:check-keys" | "image:check-gallery" | "file:check-gallery" | "video:check-gallery" | "router:check-route" | "locale:check-locale" | "router:check-locale-param" | "images:check-unique-folder" | "files:check-unique-folder" | "images:check-all-files" | "files:check-all-files" | "videos:check-unique-folder" | "videos:check-all-files" | "jsonValues:extract-entry" | "record:fill-keys" | "external:upload" | "view:check-module" | "remote:rewrite-host", unknown>>>>;
|
|
1161
1438
|
}, z.core.$strip>>>;
|
|
1162
1439
|
invalidSource: z.ZodOptional<z.ZodString>;
|
|
1163
1440
|
remoteHosts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1164
1441
|
host: z.ZodString;
|
|
1165
1442
|
status: z.ZodUnion<readonly [z.ZodLiteral<"missing">, z.ZodLiteral<"unreachable">]>;
|
|
1166
1443
|
details: z.ZodString;
|
|
1167
|
-
sourcePaths: z.ZodArray<z.ZodType<
|
|
1444
|
+
sourcePaths: z.ZodArray<z.ZodType<import("@valbuild/core").SourcePath, unknown, z.core.$ZodTypeInternals<import("@valbuild/core").SourcePath, unknown>>>;
|
|
1168
1445
|
}, z.core.$strip>>>;
|
|
1169
1446
|
}, z.core.$strip>;
|
|
1170
1447
|
}, z.core.$strip>]>;
|
|
@@ -1181,9 +1458,9 @@ export declare const Api: {
|
|
|
1181
1458
|
req: {
|
|
1182
1459
|
body: z.ZodObject<{
|
|
1183
1460
|
moduleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
1184
|
-
sourcePath: z.ZodType<
|
|
1185
|
-
fix: z.ZodType<
|
|
1186
|
-
patchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
1461
|
+
sourcePath: z.ZodType<import("@valbuild/core").SourcePath, unknown, z.core.$ZodTypeInternals<import("@valbuild/core").SourcePath, unknown>>;
|
|
1462
|
+
fix: z.ZodType<"image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "images:check-remote" | "images:upload-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "files:check-remote" | "files:upload-remote" | "video:add-metadata" | "video:upload-remote" | "video:download-remote" | "videos:add-metadata" | "videos:check-remote" | "videos:upload-remote" | "keyof:check-keys" | "image:check-gallery" | "file:check-gallery" | "video:check-gallery" | "router:check-route" | "locale:check-locale" | "router:check-locale-param" | "images:check-unique-folder" | "files:check-unique-folder" | "images:check-all-files" | "files:check-all-files" | "videos:check-unique-folder" | "videos:check-all-files" | "jsonValues:extract-entry" | "record:fill-keys" | "external:upload" | "view:check-module" | "remote:rewrite-host", unknown, z.core.$ZodTypeInternals<"image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "images:check-remote" | "images:upload-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "files:check-remote" | "files:upload-remote" | "video:add-metadata" | "video:upload-remote" | "video:download-remote" | "videos:add-metadata" | "videos:check-remote" | "videos:upload-remote" | "keyof:check-keys" | "image:check-gallery" | "file:check-gallery" | "video:check-gallery" | "router:check-route" | "locale:check-locale" | "router:check-locale-param" | "images:check-unique-folder" | "files:check-unique-folder" | "images:check-all-files" | "files:check-all-files" | "videos:check-unique-folder" | "videos:check-all-files" | "jsonValues:extract-entry" | "record:fill-keys" | "external:upload" | "view:check-module" | "remote:rewrite-host", unknown>>;
|
|
1463
|
+
patchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
|
|
1187
1464
|
}, z.core.$strip>;
|
|
1188
1465
|
cookies: {
|
|
1189
1466
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -1220,14 +1497,14 @@ export declare const Api: {
|
|
|
1220
1497
|
patch: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1221
1498
|
op: z.ZodLiteral<"add">;
|
|
1222
1499
|
path: z.ZodArray<z.ZodString>;
|
|
1223
|
-
value: z.ZodType<
|
|
1500
|
+
value: z.ZodType<import("@valbuild/core/patch").JSONValue, unknown, z.core.$ZodTypeInternals<import("@valbuild/core/patch").JSONValue, unknown>>;
|
|
1224
1501
|
}, z.core.$strict>, z.ZodObject<{
|
|
1225
1502
|
op: z.ZodLiteral<"remove">;
|
|
1226
1503
|
path: z.ZodTuple<[z.ZodString], z.ZodString>;
|
|
1227
1504
|
}, z.core.$strict>, z.ZodObject<{
|
|
1228
1505
|
op: z.ZodLiteral<"replace">;
|
|
1229
1506
|
path: z.ZodArray<z.ZodString>;
|
|
1230
|
-
value: z.ZodType<
|
|
1507
|
+
value: z.ZodType<import("@valbuild/core/patch").JSONValue, unknown, z.core.$ZodTypeInternals<import("@valbuild/core/patch").JSONValue, unknown>>;
|
|
1231
1508
|
}, z.core.$strict>, z.ZodObject<{
|
|
1232
1509
|
op: z.ZodLiteral<"move">;
|
|
1233
1510
|
from: z.ZodTuple<[z.ZodString], z.ZodString>;
|
|
@@ -1239,21 +1516,21 @@ export declare const Api: {
|
|
|
1239
1516
|
}, z.core.$strict>, z.ZodObject<{
|
|
1240
1517
|
op: z.ZodLiteral<"test">;
|
|
1241
1518
|
path: z.ZodArray<z.ZodString>;
|
|
1242
|
-
value: z.ZodType<
|
|
1519
|
+
value: z.ZodType<import("@valbuild/core/patch").JSONValue, unknown, z.core.$ZodTypeInternals<import("@valbuild/core/patch").JSONValue, unknown>>;
|
|
1243
1520
|
}, z.core.$strict>, z.ZodObject<{
|
|
1244
1521
|
op: z.ZodLiteral<"file">;
|
|
1245
1522
|
path: z.ZodArray<z.ZodString>;
|
|
1246
1523
|
filePath: z.ZodString;
|
|
1247
|
-
value: z.ZodType<
|
|
1524
|
+
value: z.ZodType<import("@valbuild/core/patch").JSONValue, unknown, z.core.$ZodTypeInternals<import("@valbuild/core/patch").JSONValue, unknown>>;
|
|
1248
1525
|
remote: z.ZodBoolean;
|
|
1249
1526
|
nestedFilePath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1250
|
-
metadata: z.ZodOptional<z.ZodType<
|
|
1527
|
+
metadata: z.ZodOptional<z.ZodType<import("@valbuild/core/patch").JSONValue, unknown, z.core.$ZodTypeInternals<import("@valbuild/core/patch").JSONValue, unknown>>>;
|
|
1251
1528
|
}, z.core.$strict>], "op">>;
|
|
1252
1529
|
remainingErrors: z.ZodArray<z.ZodObject<{
|
|
1253
1530
|
message: z.ZodString;
|
|
1254
1531
|
value: z.ZodOptional<z.ZodUnknown>;
|
|
1255
1532
|
fatal: z.ZodOptional<z.ZodBoolean>;
|
|
1256
|
-
fixes: z.ZodOptional<z.ZodArray<z.ZodType<
|
|
1533
|
+
fixes: z.ZodOptional<z.ZodArray<z.ZodType<"image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "images:check-remote" | "images:upload-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "files:check-remote" | "files:upload-remote" | "video:add-metadata" | "video:upload-remote" | "video:download-remote" | "videos:add-metadata" | "videos:check-remote" | "videos:upload-remote" | "keyof:check-keys" | "image:check-gallery" | "file:check-gallery" | "video:check-gallery" | "router:check-route" | "locale:check-locale" | "router:check-locale-param" | "images:check-unique-folder" | "files:check-unique-folder" | "images:check-all-files" | "files:check-all-files" | "videos:check-unique-folder" | "videos:check-all-files" | "jsonValues:extract-entry" | "record:fill-keys" | "external:upload" | "view:check-module" | "remote:rewrite-host", unknown, z.core.$ZodTypeInternals<"image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "images:check-remote" | "images:upload-remote" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "files:check-remote" | "files:upload-remote" | "video:add-metadata" | "video:upload-remote" | "video:download-remote" | "videos:add-metadata" | "videos:check-remote" | "videos:upload-remote" | "keyof:check-keys" | "image:check-gallery" | "file:check-gallery" | "video:check-gallery" | "router:check-route" | "locale:check-locale" | "router:check-locale-param" | "images:check-unique-folder" | "files:check-unique-folder" | "images:check-all-files" | "files:check-all-files" | "videos:check-unique-folder" | "videos:check-all-files" | "jsonValues:extract-entry" | "record:fill-keys" | "external:upload" | "view:check-module" | "remote:rewrite-host", unknown>>>>;
|
|
1257
1534
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1258
1535
|
}, z.core.$strip>>;
|
|
1259
1536
|
}, z.core.$strip>;
|
|
@@ -1266,7 +1543,7 @@ export declare const Api: {
|
|
|
1266
1543
|
body: z.ZodObject<{
|
|
1267
1544
|
jobId: z.ZodString;
|
|
1268
1545
|
tab: z.ZodString;
|
|
1269
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1546
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1270
1547
|
}, z.core.$strip>;
|
|
1271
1548
|
cookies: {
|
|
1272
1549
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -1397,7 +1674,7 @@ export declare const Api: {
|
|
|
1397
1674
|
POST: {
|
|
1398
1675
|
req: {
|
|
1399
1676
|
body: z.ZodObject<{
|
|
1400
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1677
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1401
1678
|
displayName: z.ZodString;
|
|
1402
1679
|
requestId: z.ZodString;
|
|
1403
1680
|
}, z.core.$strip>;
|
|
@@ -1445,7 +1722,7 @@ export declare const Api: {
|
|
|
1445
1722
|
req: {
|
|
1446
1723
|
body: z.ZodObject<{
|
|
1447
1724
|
message: z.ZodOptional<z.ZodString>;
|
|
1448
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1725
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1449
1726
|
expectedHeadCommitSha: z.ZodOptional<z.ZodString>;
|
|
1450
1727
|
}, z.core.$strip>;
|
|
1451
1728
|
cookies: {
|
|
@@ -1466,7 +1743,7 @@ export declare const Api: {
|
|
|
1466
1743
|
branch: z.ZodOptional<z.ZodString>;
|
|
1467
1744
|
binaryFilesUnread: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1468
1745
|
removed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1469
|
-
patchId: z.ZodString & z.ZodType<
|
|
1746
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
1470
1747
|
moduleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
1471
1748
|
message: z.ZodString;
|
|
1472
1749
|
}, z.core.$strip>>>;
|
|
@@ -1505,7 +1782,7 @@ export declare const Api: {
|
|
|
1505
1782
|
binaryFilePatchErrors: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1506
1783
|
message: z.ZodString;
|
|
1507
1784
|
}, z.core.$strip>>;
|
|
1508
|
-
unappliablePatches: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<
|
|
1785
|
+
unappliablePatches: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>, z.ZodObject<{
|
|
1509
1786
|
moduleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
1510
1787
|
message: z.ZodString;
|
|
1511
1788
|
}, z.core.$strip>>>;
|
|
@@ -1631,9 +1908,9 @@ export declare const Api: {
|
|
|
1631
1908
|
hasArchive: z.ZodBoolean;
|
|
1632
1909
|
}, z.core.$strip>;
|
|
1633
1910
|
modules: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1634
|
-
source: z.ZodNullable<z.ZodType<
|
|
1635
|
-
schema: z.ZodNullable<z.ZodType<
|
|
1636
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1911
|
+
source: z.ZodNullable<z.ZodType<import("@valbuild/core/patch").JSONValue, unknown, z.core.$ZodTypeInternals<import("@valbuild/core/patch").JSONValue, unknown>>>;
|
|
1912
|
+
schema: z.ZodNullable<z.ZodType<import("@valbuild/core").SerializedSchema, unknown, z.core.$ZodTypeInternals<import("@valbuild/core").SerializedSchema, unknown>>>;
|
|
1913
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1637
1914
|
changedPaths: z.ZodArray<z.ZodString>;
|
|
1638
1915
|
failures: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1639
1916
|
kind: z.ZodLiteral<"commit-not-found">;
|
|
@@ -1661,7 +1938,7 @@ export declare const Api: {
|
|
|
1661
1938
|
}, z.core.$strip>], "kind">>;
|
|
1662
1939
|
}, z.core.$strip>>;
|
|
1663
1940
|
patches: z.ZodArray<z.ZodObject<{
|
|
1664
|
-
patchId: z.ZodString & z.ZodType<
|
|
1941
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
1665
1942
|
moduleFilePath: z.ZodString;
|
|
1666
1943
|
patch: z.ZodUnknown;
|
|
1667
1944
|
authorId: z.ZodNullable<z.ZodString>;
|
|
@@ -1751,9 +2028,9 @@ export declare const Api: {
|
|
|
1751
2028
|
json: z.ZodObject<{
|
|
1752
2029
|
moduleFilePath: z.ZodString;
|
|
1753
2030
|
module: z.ZodNullable<z.ZodObject<{
|
|
1754
|
-
source: z.ZodNullable<z.ZodType<
|
|
1755
|
-
schema: z.ZodNullable<z.ZodType<
|
|
1756
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
2031
|
+
source: z.ZodNullable<z.ZodType<import("@valbuild/core/patch").JSONValue, unknown, z.core.$ZodTypeInternals<import("@valbuild/core/patch").JSONValue, unknown>>>;
|
|
2032
|
+
schema: z.ZodNullable<z.ZodType<import("@valbuild/core").SerializedSchema, unknown, z.core.$ZodTypeInternals<import("@valbuild/core").SerializedSchema, unknown>>>;
|
|
2033
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
|
|
1757
2034
|
changedPaths: z.ZodArray<z.ZodString>;
|
|
1758
2035
|
failures: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1759
2036
|
kind: z.ZodLiteral<"commit-not-found">;
|
|
@@ -1904,7 +2181,11 @@ export declare const Api: {
|
|
|
1904
2181
|
req: {
|
|
1905
2182
|
path: z.ZodString;
|
|
1906
2183
|
query: {
|
|
1907
|
-
patch_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString & z.ZodType<
|
|
2184
|
+
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 & {
|
|
2185
|
+
VAL_DATA_TYPE: "PatchId";
|
|
2186
|
+
}, (string & {
|
|
2187
|
+
VAL_DATA_TYPE: "PatchId";
|
|
2188
|
+
})[]>>>;
|
|
1908
2189
|
remote: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
1909
2190
|
};
|
|
1910
2191
|
headers: {
|
|
@@ -1947,7 +2228,7 @@ export declare const Api: {
|
|
|
1947
2228
|
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">>>;
|
|
1948
2229
|
};
|
|
1949
2230
|
cookies: {
|
|
1950
|
-
|
|
2231
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
1951
2232
|
};
|
|
1952
2233
|
};
|
|
1953
2234
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2001,7 +2282,7 @@ export declare const Api: {
|
|
|
2001
2282
|
POST: {
|
|
2002
2283
|
req: {
|
|
2003
2284
|
cookies: {
|
|
2004
|
-
|
|
2285
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2005
2286
|
};
|
|
2006
2287
|
};
|
|
2007
2288
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2045,7 +2326,7 @@ export declare const Api: {
|
|
|
2045
2326
|
proposal: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
2046
2327
|
};
|
|
2047
2328
|
cookies: {
|
|
2048
|
-
|
|
2329
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2049
2330
|
};
|
|
2050
2331
|
};
|
|
2051
2332
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2082,7 +2363,7 @@ export declare const Api: {
|
|
|
2082
2363
|
name: z.ZodString;
|
|
2083
2364
|
}, z.core.$strip>;
|
|
2084
2365
|
cookies: {
|
|
2085
|
-
|
|
2366
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2086
2367
|
};
|
|
2087
2368
|
};
|
|
2088
2369
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2111,7 +2392,7 @@ export declare const Api: {
|
|
|
2111
2392
|
cursor_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
2112
2393
|
};
|
|
2113
2394
|
cookies: {
|
|
2114
|
-
|
|
2395
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2115
2396
|
};
|
|
2116
2397
|
};
|
|
2117
2398
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2157,13 +2438,13 @@ export declare const Api: {
|
|
|
2157
2438
|
POST: {
|
|
2158
2439
|
req: {
|
|
2159
2440
|
body: z.ZodObject<{
|
|
2160
|
-
patchId: z.ZodString & z.ZodType<
|
|
2441
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
2161
2442
|
parentRef: z.ZodUnion<readonly [z.ZodObject<{
|
|
2162
2443
|
type: z.ZodLiteral<"head">;
|
|
2163
2444
|
headBaseSha: z.ZodString;
|
|
2164
2445
|
}, z.core.$strip>, z.ZodObject<{
|
|
2165
2446
|
type: z.ZodLiteral<"patch">;
|
|
2166
|
-
patchId: z.ZodString & z.ZodType<
|
|
2447
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
2167
2448
|
}, z.core.$strip>]>;
|
|
2168
2449
|
files: z.ZodArray<z.ZodObject<{
|
|
2169
2450
|
filePath: z.ZodString;
|
|
@@ -2172,7 +2453,7 @@ export declare const Api: {
|
|
|
2172
2453
|
}, z.core.$strip>>;
|
|
2173
2454
|
}, z.core.$strip>;
|
|
2174
2455
|
cookies: {
|
|
2175
|
-
|
|
2456
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2176
2457
|
};
|
|
2177
2458
|
};
|
|
2178
2459
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2183,7 +2464,7 @@ export declare const Api: {
|
|
|
2183
2464
|
}, z.core.$strip>, z.ZodObject<{
|
|
2184
2465
|
status: z.ZodLiteral<200>;
|
|
2185
2466
|
json: z.ZodObject<{
|
|
2186
|
-
patchId: z.ZodString & z.ZodType<
|
|
2467
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
2187
2468
|
files: z.ZodArray<z.ZodObject<{
|
|
2188
2469
|
filePath: z.ZodString;
|
|
2189
2470
|
metadata: z.ZodObject<{
|
|
@@ -2219,7 +2500,7 @@ export declare const Api: {
|
|
|
2219
2500
|
contentType: z.ZodString;
|
|
2220
2501
|
}, z.core.$strip>;
|
|
2221
2502
|
cookies: {
|
|
2222
|
-
|
|
2503
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2223
2504
|
};
|
|
2224
2505
|
};
|
|
2225
2506
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2244,7 +2525,7 @@ export declare const Api: {
|
|
|
2244
2525
|
GET: {
|
|
2245
2526
|
req: {
|
|
2246
2527
|
cookies: {
|
|
2247
|
-
|
|
2528
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2248
2529
|
};
|
|
2249
2530
|
};
|
|
2250
2531
|
res: z.ZodObject<{
|
|
@@ -2268,7 +2549,7 @@ export declare const Api: {
|
|
|
2268
2549
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2269
2550
|
};
|
|
2270
2551
|
cookies: {
|
|
2271
|
-
|
|
2552
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2272
2553
|
};
|
|
2273
2554
|
body: z.ZodUnknown;
|
|
2274
2555
|
};
|
|
@@ -2285,7 +2566,7 @@ export declare const Api: {
|
|
|
2285
2566
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2286
2567
|
};
|
|
2287
2568
|
cookies: {
|
|
2288
|
-
|
|
2569
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2289
2570
|
};
|
|
2290
2571
|
body: z.ZodUnknown;
|
|
2291
2572
|
};
|
|
@@ -2302,7 +2583,7 @@ export declare const Api: {
|
|
|
2302
2583
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2303
2584
|
};
|
|
2304
2585
|
cookies: {
|
|
2305
|
-
|
|
2586
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2306
2587
|
};
|
|
2307
2588
|
body: z.ZodUnknown;
|
|
2308
2589
|
};
|
|
@@ -2319,7 +2600,7 @@ export declare const Api: {
|
|
|
2319
2600
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2320
2601
|
};
|
|
2321
2602
|
cookies: {
|
|
2322
|
-
|
|
2603
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
2323
2604
|
};
|
|
2324
2605
|
body: z.ZodUnknown;
|
|
2325
2606
|
};
|