@valbuild/shared 0.143.0 → 0.144.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/dist/declarations/src/internal/ApiRoutes.d.ts +78 -107
- package/dist/declarations/src/internal/aiTools/aiImageToolPatches.d.ts +1 -1
- package/dist/declarations/src/internal/index.d.ts +1 -0
- package/dist/declarations/src/internal/publish/contentApi.d.ts +6 -0
- package/dist/declarations/src/internal/richtext/richTextImages.d.ts +21 -0
- package/dist/declarations/src/internal/server/types.d.ts +3 -3
- package/dist/declarations/src/internal/validation/partitionValidationErrors.d.ts +2 -1
- package/dist/declarations/src/internal/zod/History.d.ts +3 -3
- 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 +126 -67
- package/internal/dist/valbuild-shared-internal.cjs.prod.js +126 -67
- package/internal/dist/valbuild-shared-internal.esm.js +125 -68
- package/package.json +2 -2
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import {
|
|
3
|
-
declare const ModuleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
2
|
+
import { VAL_SESSION_COOKIE, VAL_STATE_COOKIE } from "./server/types.js";
|
|
4
3
|
/**
|
|
5
4
|
* The header a request to `/admin/proxy` must carry. A cross-site form or
|
|
6
5
|
* `<img>` cannot set a custom header, so without it the proxy cannot be driven
|
|
@@ -19,7 +18,7 @@ export declare const PatchGroup: z.ZodObject<{
|
|
|
19
18
|
authorId: z.ZodNullable<z.ZodString>;
|
|
20
19
|
createdAt: z.ZodString;
|
|
21
20
|
publishedAt: z.ZodNullable<z.ZodString>;
|
|
22
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
21
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
23
22
|
}, z.core.$strip>;
|
|
24
23
|
export type PatchGroupT = z.infer<typeof PatchGroup>;
|
|
25
24
|
declare const cookies: z.ZodUnion<readonly [z.ZodLiteral<"val_session">, z.ZodLiteral<"val_enable">, z.ZodLiteral<"val_state">]>;
|
|
@@ -54,7 +53,7 @@ export declare const Api: {
|
|
|
54
53
|
redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
55
54
|
};
|
|
56
55
|
cookies: {
|
|
57
|
-
|
|
56
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
58
57
|
};
|
|
59
58
|
};
|
|
60
59
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -80,7 +79,7 @@ export declare const Api: {
|
|
|
80
79
|
redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
81
80
|
};
|
|
82
81
|
cookies: {
|
|
83
|
-
|
|
82
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
84
83
|
};
|
|
85
84
|
};
|
|
86
85
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -103,7 +102,7 @@ export declare const Api: {
|
|
|
103
102
|
GET: {
|
|
104
103
|
req: {
|
|
105
104
|
cookies: {
|
|
106
|
-
|
|
105
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
107
106
|
};
|
|
108
107
|
};
|
|
109
108
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -126,7 +125,7 @@ export declare const Api: {
|
|
|
126
125
|
redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
127
126
|
};
|
|
128
127
|
cookies: {
|
|
129
|
-
|
|
128
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
130
129
|
};
|
|
131
130
|
};
|
|
132
131
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -138,14 +137,13 @@ export declare const Api: {
|
|
|
138
137
|
status: z.ZodLiteral<302>;
|
|
139
138
|
redirectTo: z.ZodString;
|
|
140
139
|
cookies: z.ZodObject<{
|
|
141
|
-
|
|
140
|
+
[x: number]: z.ZodObject<{
|
|
142
141
|
value: z.ZodLiteral<"true">;
|
|
143
142
|
options: z.ZodObject<{
|
|
144
143
|
httpOnly: z.ZodLiteral<false>;
|
|
145
144
|
sameSite: z.ZodLiteral<"lax">;
|
|
146
145
|
}, z.core.$strip>;
|
|
147
|
-
}, z.core.$strip
|
|
148
|
-
val_state: z.ZodObject<{
|
|
146
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
149
147
|
value: z.ZodString;
|
|
150
148
|
options: z.ZodObject<{
|
|
151
149
|
httpOnly: z.ZodLiteral<true>;
|
|
@@ -158,7 +156,7 @@ export declare const Api: {
|
|
|
158
156
|
status: z.ZodLiteral<302>;
|
|
159
157
|
redirectTo: z.ZodString;
|
|
160
158
|
cookies: z.ZodObject<{
|
|
161
|
-
|
|
159
|
+
[x: number]: z.ZodObject<{
|
|
162
160
|
value: z.ZodLiteral<"true">;
|
|
163
161
|
options: z.ZodObject<{
|
|
164
162
|
httpOnly: z.ZodLiteral<false>;
|
|
@@ -181,7 +179,7 @@ export declare const Api: {
|
|
|
181
179
|
redirect_to: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
182
180
|
};
|
|
183
181
|
cookies: {
|
|
184
|
-
|
|
182
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
185
183
|
};
|
|
186
184
|
};
|
|
187
185
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -193,7 +191,7 @@ export declare const Api: {
|
|
|
193
191
|
status: z.ZodLiteral<302>;
|
|
194
192
|
redirectTo: z.ZodString;
|
|
195
193
|
cookies: z.ZodObject<{
|
|
196
|
-
|
|
194
|
+
[x: number]: z.ZodObject<{
|
|
197
195
|
value: z.ZodLiteral<"false">;
|
|
198
196
|
}, z.core.$strip>;
|
|
199
197
|
}, z.core.$strip>;
|
|
@@ -216,14 +214,13 @@ export declare const Api: {
|
|
|
216
214
|
status: z.ZodLiteral<302>;
|
|
217
215
|
redirectTo: z.ZodString;
|
|
218
216
|
cookies: z.ZodObject<{
|
|
219
|
-
|
|
217
|
+
[x: number]: z.ZodObject<{
|
|
220
218
|
value: z.ZodLiteral<"true">;
|
|
221
219
|
options: z.ZodObject<{
|
|
222
220
|
httpOnly: z.ZodLiteral<false>;
|
|
223
221
|
sameSite: z.ZodLiteral<"lax">;
|
|
224
222
|
}, z.core.$strip>;
|
|
225
|
-
}, z.core.$strip
|
|
226
|
-
val_state: z.ZodObject<{
|
|
223
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
227
224
|
value: z.ZodString;
|
|
228
225
|
options: z.ZodObject<{
|
|
229
226
|
httpOnly: z.ZodLiteral<true>;
|
|
@@ -248,24 +245,22 @@ export declare const Api: {
|
|
|
248
245
|
state: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
249
246
|
};
|
|
250
247
|
cookies: {
|
|
251
|
-
|
|
248
|
+
[VAL_STATE_COOKIE]: z.ZodString;
|
|
252
249
|
};
|
|
253
250
|
};
|
|
254
251
|
res: z.ZodObject<{
|
|
255
252
|
status: z.ZodLiteral<302>;
|
|
256
253
|
redirectTo: z.ZodString;
|
|
257
254
|
cookies: z.ZodObject<{
|
|
258
|
-
|
|
255
|
+
[x: number]: z.ZodObject<{
|
|
259
256
|
value: z.ZodLiteral<null>;
|
|
260
|
-
}, z.core.$strip
|
|
261
|
-
val_enable: z.ZodOptional<z.ZodObject<{
|
|
257
|
+
}, z.core.$strip> | z.ZodOptional<z.ZodObject<{
|
|
262
258
|
value: z.ZodLiteral<"true">;
|
|
263
259
|
options: z.ZodObject<{
|
|
264
260
|
httpOnly: z.ZodLiteral<false>;
|
|
265
261
|
sameSite: z.ZodLiteral<"lax">;
|
|
266
262
|
}, z.core.$strip>;
|
|
267
|
-
}, z.core.$strip
|
|
268
|
-
val_session: z.ZodOptional<z.ZodObject<{
|
|
263
|
+
}, z.core.$strip>> | z.ZodOptional<z.ZodObject<{
|
|
269
264
|
value: z.ZodString;
|
|
270
265
|
options: z.ZodOptional<z.ZodObject<{
|
|
271
266
|
httpOnly: z.ZodLiteral<true>;
|
|
@@ -289,17 +284,7 @@ export declare const Api: {
|
|
|
289
284
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
290
285
|
status: z.ZodLiteral<200>;
|
|
291
286
|
cookies: z.ZodObject<{
|
|
292
|
-
|
|
293
|
-
value: z.ZodString;
|
|
294
|
-
options: z.ZodOptional<z.ZodObject<{
|
|
295
|
-
httpOnly: z.ZodLiteral<true>;
|
|
296
|
-
sameSite: z.ZodLiteral<"strict">;
|
|
297
|
-
path: z.ZodString;
|
|
298
|
-
secure: z.ZodLiteral<true>;
|
|
299
|
-
expires: z.ZodCustom<Date, Date>;
|
|
300
|
-
}, z.core.$strip>>;
|
|
301
|
-
}, z.core.$strip>>;
|
|
302
|
-
val_state: z.ZodOptional<z.ZodObject<{
|
|
287
|
+
[x: number]: z.ZodOptional<z.ZodObject<{
|
|
303
288
|
value: z.ZodString;
|
|
304
289
|
options: z.ZodOptional<z.ZodObject<{
|
|
305
290
|
httpOnly: z.ZodLiteral<true>;
|
|
@@ -314,17 +299,7 @@ export declare const Api: {
|
|
|
314
299
|
status: z.ZodLiteral<302>;
|
|
315
300
|
redirectTo: z.ZodString;
|
|
316
301
|
cookies: z.ZodObject<{
|
|
317
|
-
|
|
318
|
-
value: z.ZodString;
|
|
319
|
-
options: z.ZodOptional<z.ZodObject<{
|
|
320
|
-
httpOnly: z.ZodLiteral<true>;
|
|
321
|
-
sameSite: z.ZodLiteral<"strict">;
|
|
322
|
-
path: z.ZodString;
|
|
323
|
-
secure: z.ZodLiteral<true>;
|
|
324
|
-
expires: z.ZodCustom<Date, Date>;
|
|
325
|
-
}, z.core.$strip>>;
|
|
326
|
-
}, z.core.$strip>>;
|
|
327
|
-
val_state: z.ZodOptional<z.ZodObject<{
|
|
302
|
+
[x: number]: z.ZodOptional<z.ZodObject<{
|
|
328
303
|
value: z.ZodString;
|
|
329
304
|
options: z.ZodOptional<z.ZodObject<{
|
|
330
305
|
httpOnly: z.ZodLiteral<true>;
|
|
@@ -410,12 +385,12 @@ export declare const Api: {
|
|
|
410
385
|
baseSha: z.ZodString;
|
|
411
386
|
schemaSha: z.ZodString;
|
|
412
387
|
sourcesSha: z.ZodString;
|
|
413
|
-
patches: z.ZodArray<z.ZodString & z.ZodType<
|
|
414
|
-
appliedPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
415
|
-
publishingPatches: 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>>>>;
|
|
416
391
|
headCommitSha: z.ZodOptional<z.ZodString>;
|
|
417
392
|
removed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
418
|
-
patchId: z.ZodString & z.ZodType<
|
|
393
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
419
394
|
reason: z.ZodString;
|
|
420
395
|
}, z.core.$strip>>>;
|
|
421
396
|
config: z.ZodObject<{
|
|
@@ -448,18 +423,18 @@ export declare const Api: {
|
|
|
448
423
|
schemaSha: z.ZodString;
|
|
449
424
|
sourcesSha: z.ZodString;
|
|
450
425
|
commitSha: z.ZodOptional<z.ZodString>;
|
|
451
|
-
patches: z.ZodArray<z.ZodString & z.ZodType<
|
|
452
|
-
appliedPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
453
|
-
publishingPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
426
|
+
patches: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
427
|
+
appliedPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
|
|
428
|
+
publishingPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
|
|
454
429
|
headCommitSha: z.ZodOptional<z.ZodString>;
|
|
455
|
-
headPatchId: z.ZodOptional<z.ZodNullable<z.ZodString & z.ZodType<
|
|
430
|
+
headPatchId: z.ZodOptional<z.ZodNullable<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
|
|
456
431
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
457
432
|
patchGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
458
433
|
patchGroupId: z.ZodString;
|
|
459
434
|
authorId: z.ZodNullable<z.ZodString>;
|
|
460
435
|
createdAt: z.ZodString;
|
|
461
436
|
publishedAt: z.ZodNullable<z.ZodString>;
|
|
462
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
437
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
463
438
|
}, z.core.$strip>>>;
|
|
464
439
|
commits: z.ZodArray<z.ZodObject<{
|
|
465
440
|
commitSha: z.ZodString;
|
|
@@ -624,7 +599,7 @@ export declare const Api: {
|
|
|
624
599
|
headBaseSha: z.ZodString;
|
|
625
600
|
}, z.core.$strip>, z.ZodObject<{
|
|
626
601
|
type: z.ZodLiteral<"patch">;
|
|
627
|
-
patchId: z.ZodString & z.ZodType<
|
|
602
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
628
603
|
}, z.core.$strip>]>;
|
|
629
604
|
filePath: z.ZodString;
|
|
630
605
|
data: z.ZodAny;
|
|
@@ -642,7 +617,7 @@ export declare const Api: {
|
|
|
642
617
|
status: z.ZodLiteral<200>;
|
|
643
618
|
json: z.ZodObject<{
|
|
644
619
|
filePath: z.ZodString;
|
|
645
|
-
patchId: z.ZodString & z.ZodType<
|
|
620
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
646
621
|
}, z.core.$strip>;
|
|
647
622
|
}, z.core.$strip>]>;
|
|
648
623
|
};
|
|
@@ -733,10 +708,10 @@ export declare const Api: {
|
|
|
733
708
|
DELETE: {
|
|
734
709
|
req: {
|
|
735
710
|
query: {
|
|
736
|
-
id: z.ZodArray<z.ZodString & z.ZodType<
|
|
711
|
+
id: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
737
712
|
};
|
|
738
713
|
body: z.ZodOptional<z.ZodObject<{
|
|
739
|
-
unstagePatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
714
|
+
unstagePatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
|
|
740
715
|
reportHeadVersion: z.ZodOptional<z.ZodLiteral<true>>;
|
|
741
716
|
}, z.core.$strip>>;
|
|
742
717
|
cookies: {
|
|
@@ -753,7 +728,7 @@ export declare const Api: {
|
|
|
753
728
|
json: z.ZodObject<{
|
|
754
729
|
message: z.ZodString;
|
|
755
730
|
errors: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
756
|
-
patchId: z.ZodString & z.ZodType<
|
|
731
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
757
732
|
message: z.ZodString;
|
|
758
733
|
}, z.core.$strip>, z.ZodObject<{
|
|
759
734
|
parentPatchId: z.ZodString;
|
|
@@ -762,8 +737,8 @@ export declare const Api: {
|
|
|
762
737
|
}, z.core.$strip>;
|
|
763
738
|
}, z.core.$strip>, z.ZodObject<{
|
|
764
739
|
status: z.ZodLiteral<200>;
|
|
765
|
-
json: z.ZodUnion<readonly [z.ZodArray<z.ZodString & z.ZodType<
|
|
766
|
-
deleted: z.ZodArray<z.ZodString & z.ZodType<
|
|
740
|
+
json: z.ZodUnion<readonly [z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>, z.ZodObject<{
|
|
741
|
+
deleted: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
767
742
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
768
743
|
}, z.core.$strip>]>;
|
|
769
744
|
}, z.core.$strip>]>;
|
|
@@ -776,16 +751,16 @@ export declare const Api: {
|
|
|
776
751
|
headBaseSha: z.ZodString;
|
|
777
752
|
}, z.core.$strip>, z.ZodObject<{
|
|
778
753
|
type: z.ZodLiteral<"patch">;
|
|
779
|
-
patchId: z.ZodString & z.ZodType<
|
|
754
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
780
755
|
}, z.core.$strip>]>;
|
|
781
756
|
sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
782
757
|
patches: z.ZodArray<z.ZodObject<{
|
|
783
758
|
path: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
784
|
-
patchId: z.ZodString & z.ZodType<
|
|
759
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
785
760
|
patch: z.ZodAny;
|
|
786
761
|
}, z.core.$strip>>;
|
|
787
762
|
patchGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
788
|
-
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
763
|
+
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
|
|
789
764
|
}, z.core.$strip>;
|
|
790
765
|
cookies: {
|
|
791
766
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -816,13 +791,13 @@ export declare const Api: {
|
|
|
816
791
|
}, z.core.$strip>, z.ZodObject<{
|
|
817
792
|
status: z.ZodLiteral<200>;
|
|
818
793
|
json: z.ZodObject<{
|
|
819
|
-
newPatchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
794
|
+
newPatchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
820
795
|
parentRef: z.ZodUnion<readonly [z.ZodObject<{
|
|
821
796
|
type: z.ZodLiteral<"head">;
|
|
822
797
|
headBaseSha: z.ZodString;
|
|
823
798
|
}, z.core.$strip>, z.ZodObject<{
|
|
824
799
|
type: z.ZodLiteral<"patch">;
|
|
825
|
-
patchId: z.ZodString & z.ZodType<
|
|
800
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
826
801
|
}, z.core.$strip>]>;
|
|
827
802
|
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
828
803
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
@@ -832,7 +807,7 @@ export declare const Api: {
|
|
|
832
807
|
GET: {
|
|
833
808
|
req: {
|
|
834
809
|
query: {
|
|
835
|
-
patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
810
|
+
patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
|
|
836
811
|
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">>>;
|
|
837
812
|
/**
|
|
838
813
|
* Include the patch group annotation in the answer.
|
|
@@ -858,7 +833,7 @@ export declare const Api: {
|
|
|
858
833
|
json: z.ZodObject<{
|
|
859
834
|
message: z.ZodString;
|
|
860
835
|
patchErrors: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
861
|
-
patchId: z.ZodString & z.ZodType<
|
|
836
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
862
837
|
message: z.ZodString;
|
|
863
838
|
}, z.core.$strip>, z.ZodObject<{
|
|
864
839
|
parentPatchId: z.ZodString;
|
|
@@ -910,7 +885,7 @@ export declare const Api: {
|
|
|
910
885
|
nestedFilePath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
911
886
|
metadata: z.ZodOptional<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
|
|
912
887
|
}, z.core.$strict>], "op">>>;
|
|
913
|
-
patchId: z.ZodString & z.ZodType<
|
|
888
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
914
889
|
createdAt: z.ZodString;
|
|
915
890
|
authorId: z.ZodNullable<z.ZodString>;
|
|
916
891
|
appliedAt: z.ZodNullable<z.ZodObject<{
|
|
@@ -923,13 +898,13 @@ export declare const Api: {
|
|
|
923
898
|
authorId: z.ZodNullable<z.ZodString>;
|
|
924
899
|
createdAt: z.ZodString;
|
|
925
900
|
publishedAt: z.ZodNullable<z.ZodString>;
|
|
926
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
901
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
927
902
|
}, z.core.$strip>>>;
|
|
928
903
|
baseSha: z.ZodString;
|
|
929
904
|
error: z.ZodOptional<z.ZodObject<{
|
|
930
905
|
message: z.ZodString;
|
|
931
906
|
}, z.core.$strip>>;
|
|
932
|
-
errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<
|
|
907
|
+
errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>, z.ZodObject<{
|
|
933
908
|
message: z.ZodString;
|
|
934
909
|
}, z.core.$strip>>>;
|
|
935
910
|
}, z.core.$strip>;
|
|
@@ -941,8 +916,8 @@ export declare const Api: {
|
|
|
941
916
|
req: {
|
|
942
917
|
body: z.ZodObject<{
|
|
943
918
|
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
944
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
945
|
-
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
919
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
920
|
+
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
|
|
946
921
|
}, z.core.$strip>;
|
|
947
922
|
cookies: {
|
|
948
923
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -972,7 +947,7 @@ export declare const Api: {
|
|
|
972
947
|
status: z.ZodLiteral<200>;
|
|
973
948
|
json: z.ZodObject<{
|
|
974
949
|
patchGroupId: z.ZodNullable<z.ZodString>;
|
|
975
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
950
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
976
951
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
977
952
|
}, z.core.$strip>;
|
|
978
953
|
}, z.core.$strip>]>;
|
|
@@ -981,8 +956,8 @@ export declare const Api: {
|
|
|
981
956
|
req: {
|
|
982
957
|
body: z.ZodObject<{
|
|
983
958
|
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
984
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
985
|
-
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
959
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
960
|
+
withPatchIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
|
|
986
961
|
}, z.core.$strip>;
|
|
987
962
|
cookies: {
|
|
988
963
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -1012,7 +987,7 @@ export declare const Api: {
|
|
|
1012
987
|
status: z.ZodLiteral<200>;
|
|
1013
988
|
json: z.ZodObject<{
|
|
1014
989
|
patchGroupId: z.ZodNullable<z.ZodString>;
|
|
1015
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
990
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
1016
991
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
1017
992
|
}, z.core.$strip>;
|
|
1018
993
|
}, z.core.$strip>]>;
|
|
@@ -1078,7 +1053,7 @@ export declare const Api: {
|
|
|
1078
1053
|
* answer and is honoured as one: a group holding nothing renders
|
|
1079
1054
|
* base.
|
|
1080
1055
|
*/
|
|
1081
|
-
patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
1056
|
+
patch_id: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
|
|
1082
1057
|
/**
|
|
1083
1058
|
* Apply only the patches in the CALLER'S OWN patch groups.
|
|
1084
1059
|
*
|
|
@@ -1142,9 +1117,9 @@ export declare const Api: {
|
|
|
1142
1117
|
source: z.ZodOptional<z.ZodAny>;
|
|
1143
1118
|
baseSource: z.ZodOptional<z.ZodAny>;
|
|
1144
1119
|
patches: z.ZodOptional<z.ZodObject<{
|
|
1145
|
-
applied: z.ZodArray<z.ZodString & z.ZodType<
|
|
1146
|
-
skipped: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
1147
|
-
errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<
|
|
1120
|
+
applied: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
1121
|
+
skipped: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>>;
|
|
1122
|
+
errors: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>, z.ZodObject<{
|
|
1148
1123
|
message: z.ZodString;
|
|
1149
1124
|
}, z.core.$strip>>>;
|
|
1150
1125
|
}, z.core.$strip>>;
|
|
@@ -1165,7 +1140,7 @@ export declare const Api: {
|
|
|
1165
1140
|
body: z.ZodObject<{
|
|
1166
1141
|
jobId: z.ZodString;
|
|
1167
1142
|
tab: z.ZodString;
|
|
1168
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1143
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
1169
1144
|
}, z.core.$strip>;
|
|
1170
1145
|
cookies: {
|
|
1171
1146
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -1287,7 +1262,7 @@ export declare const Api: {
|
|
|
1287
1262
|
req: {
|
|
1288
1263
|
body: z.ZodObject<{
|
|
1289
1264
|
message: z.ZodOptional<z.ZodString>;
|
|
1290
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1265
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
1291
1266
|
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
1292
1267
|
expectedHeadCommitSha: z.ZodOptional<z.ZodString>;
|
|
1293
1268
|
}, z.core.$strip>;
|
|
@@ -1309,7 +1284,7 @@ export declare const Api: {
|
|
|
1309
1284
|
branch: z.ZodOptional<z.ZodString>;
|
|
1310
1285
|
binaryFilesUnread: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1311
1286
|
removed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1312
|
-
patchId: z.ZodString & z.ZodType<
|
|
1287
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
1313
1288
|
moduleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
1314
1289
|
message: z.ZodString;
|
|
1315
1290
|
}, z.core.$strip>>>;
|
|
@@ -1356,7 +1331,7 @@ export declare const Api: {
|
|
|
1356
1331
|
binaryFilePatchErrors: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1357
1332
|
message: z.ZodString;
|
|
1358
1333
|
}, z.core.$strip>>;
|
|
1359
|
-
unappliablePatches: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<
|
|
1334
|
+
unappliablePatches: z.ZodOptional<z.ZodRecord<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>, z.ZodObject<{
|
|
1360
1335
|
moduleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
1361
1336
|
message: z.ZodString;
|
|
1362
1337
|
}, z.core.$strip>>>;
|
|
@@ -1484,7 +1459,7 @@ export declare const Api: {
|
|
|
1484
1459
|
modules: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1485
1460
|
source: z.ZodNullable<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
|
|
1486
1461
|
schema: z.ZodNullable<z.ZodType<SerializedSchemaT, unknown, z.core.$ZodTypeInternals<SerializedSchemaT, unknown>>>;
|
|
1487
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1462
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
1488
1463
|
changedPaths: z.ZodArray<z.ZodString>;
|
|
1489
1464
|
failures: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1490
1465
|
kind: z.ZodLiteral<"commit-not-found">;
|
|
@@ -1512,7 +1487,7 @@ export declare const Api: {
|
|
|
1512
1487
|
}, z.core.$strip>], "kind">>;
|
|
1513
1488
|
}, z.core.$strip>>;
|
|
1514
1489
|
patches: z.ZodArray<z.ZodObject<{
|
|
1515
|
-
patchId: z.ZodString & z.ZodType<
|
|
1490
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
1516
1491
|
moduleFilePath: z.ZodString;
|
|
1517
1492
|
patch: z.ZodUnknown;
|
|
1518
1493
|
authorId: z.ZodNullable<z.ZodString>;
|
|
@@ -1604,7 +1579,7 @@ export declare const Api: {
|
|
|
1604
1579
|
module: z.ZodNullable<z.ZodObject<{
|
|
1605
1580
|
source: z.ZodNullable<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
|
|
1606
1581
|
schema: z.ZodNullable<z.ZodType<SerializedSchemaT, unknown, z.core.$ZodTypeInternals<SerializedSchemaT, unknown>>>;
|
|
1607
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1582
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
1608
1583
|
changedPaths: z.ZodArray<z.ZodString>;
|
|
1609
1584
|
failures: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1610
1585
|
kind: z.ZodLiteral<"commit-not-found">;
|
|
@@ -1755,11 +1730,7 @@ export declare const Api: {
|
|
|
1755
1730
|
req: {
|
|
1756
1731
|
path: z.ZodString;
|
|
1757
1732
|
query: {
|
|
1758
|
-
patch_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString & z.ZodType<
|
|
1759
|
-
VAL_DATA_TYPE: "PatchId";
|
|
1760
|
-
}, (string & {
|
|
1761
|
-
VAL_DATA_TYPE: "PatchId";
|
|
1762
|
-
})[]>>>;
|
|
1733
|
+
patch_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>, z.ZodTransform<any, any[]>>>;
|
|
1763
1734
|
remote: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
1764
1735
|
};
|
|
1765
1736
|
headers: {
|
|
@@ -1811,7 +1782,7 @@ export declare const Api: {
|
|
|
1811
1782
|
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">>>;
|
|
1812
1783
|
};
|
|
1813
1784
|
cookies: {
|
|
1814
|
-
|
|
1785
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
1815
1786
|
};
|
|
1816
1787
|
};
|
|
1817
1788
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1865,7 +1836,7 @@ export declare const Api: {
|
|
|
1865
1836
|
POST: {
|
|
1866
1837
|
req: {
|
|
1867
1838
|
cookies: {
|
|
1868
|
-
|
|
1839
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
1869
1840
|
};
|
|
1870
1841
|
};
|
|
1871
1842
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1903,7 +1874,7 @@ export declare const Api: {
|
|
|
1903
1874
|
cursor_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
1904
1875
|
};
|
|
1905
1876
|
cookies: {
|
|
1906
|
-
|
|
1877
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
1907
1878
|
};
|
|
1908
1879
|
};
|
|
1909
1880
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1939,7 +1910,7 @@ export declare const Api: {
|
|
|
1939
1910
|
name: z.ZodString;
|
|
1940
1911
|
}, z.core.$strip>;
|
|
1941
1912
|
cookies: {
|
|
1942
|
-
|
|
1913
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
1943
1914
|
};
|
|
1944
1915
|
};
|
|
1945
1916
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1968,7 +1939,7 @@ export declare const Api: {
|
|
|
1968
1939
|
cursor_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
1969
1940
|
};
|
|
1970
1941
|
cookies: {
|
|
1971
|
-
|
|
1942
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
1972
1943
|
};
|
|
1973
1944
|
};
|
|
1974
1945
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2006,13 +1977,13 @@ export declare const Api: {
|
|
|
2006
1977
|
POST: {
|
|
2007
1978
|
req: {
|
|
2008
1979
|
body: z.ZodObject<{
|
|
2009
|
-
patchId: z.ZodString & z.ZodType<
|
|
1980
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
2010
1981
|
parentRef: z.ZodUnion<readonly [z.ZodObject<{
|
|
2011
1982
|
type: z.ZodLiteral<"head">;
|
|
2012
1983
|
headBaseSha: z.ZodString;
|
|
2013
1984
|
}, z.core.$strip>, z.ZodObject<{
|
|
2014
1985
|
type: z.ZodLiteral<"patch">;
|
|
2015
|
-
patchId: z.ZodString & z.ZodType<
|
|
1986
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
2016
1987
|
}, z.core.$strip>]>;
|
|
2017
1988
|
files: z.ZodArray<z.ZodObject<{
|
|
2018
1989
|
filePath: z.ZodString;
|
|
@@ -2021,7 +1992,7 @@ export declare const Api: {
|
|
|
2021
1992
|
}, z.core.$strip>>;
|
|
2022
1993
|
}, z.core.$strip>;
|
|
2023
1994
|
cookies: {
|
|
2024
|
-
|
|
1995
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
2025
1996
|
};
|
|
2026
1997
|
};
|
|
2027
1998
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2032,7 +2003,7 @@ export declare const Api: {
|
|
|
2032
2003
|
}, z.core.$strip>, z.ZodObject<{
|
|
2033
2004
|
status: z.ZodLiteral<200>;
|
|
2034
2005
|
json: z.ZodObject<{
|
|
2035
|
-
patchId: z.ZodString & z.ZodType<
|
|
2006
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
2036
2007
|
files: z.ZodArray<z.ZodObject<{
|
|
2037
2008
|
filePath: z.ZodString;
|
|
2038
2009
|
metadata: z.ZodObject<{
|
|
@@ -2067,7 +2038,7 @@ export declare const Api: {
|
|
|
2067
2038
|
contentType: z.ZodString;
|
|
2068
2039
|
}, z.core.$strip>;
|
|
2069
2040
|
cookies: {
|
|
2070
|
-
|
|
2041
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
2071
2042
|
};
|
|
2072
2043
|
};
|
|
2073
2044
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2092,7 +2063,7 @@ export declare const Api: {
|
|
|
2092
2063
|
GET: {
|
|
2093
2064
|
req: {
|
|
2094
2065
|
cookies: {
|
|
2095
|
-
|
|
2066
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
2096
2067
|
};
|
|
2097
2068
|
};
|
|
2098
2069
|
res: z.ZodObject<{
|
|
@@ -2116,7 +2087,7 @@ export declare const Api: {
|
|
|
2116
2087
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2117
2088
|
};
|
|
2118
2089
|
cookies: {
|
|
2119
|
-
|
|
2090
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
2120
2091
|
};
|
|
2121
2092
|
body: z.ZodUnknown;
|
|
2122
2093
|
};
|
|
@@ -2133,7 +2104,7 @@ export declare const Api: {
|
|
|
2133
2104
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2134
2105
|
};
|
|
2135
2106
|
cookies: {
|
|
2136
|
-
|
|
2107
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
2137
2108
|
};
|
|
2138
2109
|
body: z.ZodUnknown;
|
|
2139
2110
|
};
|
|
@@ -2150,7 +2121,7 @@ export declare const Api: {
|
|
|
2150
2121
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2151
2122
|
};
|
|
2152
2123
|
cookies: {
|
|
2153
|
-
|
|
2124
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
2154
2125
|
};
|
|
2155
2126
|
body: z.ZodUnknown;
|
|
2156
2127
|
};
|
|
@@ -2167,7 +2138,7 @@ export declare const Api: {
|
|
|
2167
2138
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2168
2139
|
};
|
|
2169
2140
|
cookies: {
|
|
2170
|
-
|
|
2141
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
2171
2142
|
};
|
|
2172
2143
|
body: z.ZodUnknown;
|
|
2173
2144
|
};
|
|
@@ -40,7 +40,7 @@ export type ResolveResult = {
|
|
|
40
40
|
* Walks `schema` along `path`, returning a structured result:
|
|
41
41
|
* - `leaf`: walked the full path; resolved schema at the end.
|
|
42
42
|
* - `richtext`: hit a richtext mid-walk; richtext is the resolved schema.
|
|
43
|
-
* - `gallery-traversed`: hit an `s.
|
|
43
|
+
* - `gallery-traversed`: hit an `s.imagedir()` record and walked past it (i.e. the
|
|
44
44
|
* path tries to address an entry inside the gallery — a clue the AI should
|
|
45
45
|
* have used the gallery tool instead).
|
|
46
46
|
* - `unresolved`: the path could not be walked.
|