@valbuild/shared 0.140.2 → 0.142.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +74 -0
- package/dist/declarations/src/internal/ApiRoutes.d.ts +196 -120
- package/dist/declarations/src/internal/server/types.d.ts +3 -3
- package/dist/declarations/src/internal/zod/History.d.ts +7 -7
- package/dist/declarations/src/internal/zod/Patch.d.ts +0 -1
- package/dist/declarations/src/internal/zod/SerializedSchema.d.ts +18 -21
- package/internal/dist/valbuild-shared-internal.cjs.dev.js +188 -16
- package/internal/dist/valbuild-shared-internal.cjs.prod.js +188 -16
- package/internal/dist/valbuild-shared-internal.esm.js +186 -17
- 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,19 +385,19 @@ 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<{
|
|
422
397
|
project: z.ZodOptional<z.ZodString>;
|
|
423
398
|
root: z.ZodOptional<z.ZodString>;
|
|
424
399
|
files: z.ZodOptional<z.ZodObject<{
|
|
425
|
-
|
|
400
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
426
401
|
}, z.core.$strip>>;
|
|
427
402
|
gitCommit: z.ZodOptional<z.ZodString>;
|
|
428
403
|
gitBranch: z.ZodOptional<z.ZodString>;
|
|
@@ -436,6 +411,10 @@ export declare const Api: {
|
|
|
436
411
|
code: z.ZodLiteral<"no-base">;
|
|
437
412
|
message: z.ZodString;
|
|
438
413
|
}, z.core.$strip>>;
|
|
414
|
+
proposal: z.ZodOptional<z.ZodObject<{
|
|
415
|
+
name: z.ZodString;
|
|
416
|
+
branch: z.ZodString;
|
|
417
|
+
}, z.core.$strip>>;
|
|
439
418
|
}, z.core.$strip>, z.ZodObject<{
|
|
440
419
|
type: z.ZodLiteral<"use-websocket">;
|
|
441
420
|
url: z.ZodString;
|
|
@@ -444,18 +423,18 @@ export declare const Api: {
|
|
|
444
423
|
schemaSha: z.ZodString;
|
|
445
424
|
sourcesSha: z.ZodString;
|
|
446
425
|
commitSha: z.ZodOptional<z.ZodString>;
|
|
447
|
-
patches: z.ZodArray<z.ZodString & z.ZodType<
|
|
448
|
-
appliedPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
449
|
-
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>>>>;
|
|
450
429
|
headCommitSha: z.ZodOptional<z.ZodString>;
|
|
451
|
-
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>>>>;
|
|
452
431
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
453
432
|
patchGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
454
433
|
patchGroupId: z.ZodString;
|
|
455
434
|
authorId: z.ZodNullable<z.ZodString>;
|
|
456
435
|
createdAt: z.ZodString;
|
|
457
436
|
publishedAt: z.ZodNullable<z.ZodString>;
|
|
458
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
437
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
459
438
|
}, z.core.$strip>>>;
|
|
460
439
|
commits: z.ZodArray<z.ZodObject<{
|
|
461
440
|
commitSha: z.ZodString;
|
|
@@ -478,7 +457,7 @@ export declare const Api: {
|
|
|
478
457
|
project: z.ZodOptional<z.ZodString>;
|
|
479
458
|
root: z.ZodOptional<z.ZodString>;
|
|
480
459
|
files: z.ZodOptional<z.ZodObject<{
|
|
481
|
-
|
|
460
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
482
461
|
}, z.core.$strip>>;
|
|
483
462
|
gitCommit: z.ZodOptional<z.ZodString>;
|
|
484
463
|
gitBranch: z.ZodOptional<z.ZodString>;
|
|
@@ -491,6 +470,10 @@ export declare const Api: {
|
|
|
491
470
|
code: z.ZodLiteral<"no-base">;
|
|
492
471
|
message: z.ZodString;
|
|
493
472
|
}, z.core.$strip>>;
|
|
473
|
+
proposal: z.ZodOptional<z.ZodObject<{
|
|
474
|
+
name: z.ZodString;
|
|
475
|
+
branch: z.ZodString;
|
|
476
|
+
}, z.core.$strip>>;
|
|
494
477
|
}, z.core.$strip>]>;
|
|
495
478
|
}, z.core.$strip>]>;
|
|
496
479
|
};
|
|
@@ -552,6 +535,60 @@ export declare const Api: {
|
|
|
552
535
|
}, z.core.$strip>;
|
|
553
536
|
};
|
|
554
537
|
};
|
|
538
|
+
/**
|
|
539
|
+
* The content service's proposals API, reached through this deployment:
|
|
540
|
+
* list, open, read, rename, close, reopen and retry a setup
|
|
541
|
+
* (valbuild/home `docs/proposals.md`, Flow B).
|
|
542
|
+
*
|
|
543
|
+
* The same arrangement as `/publish-api`, for the same reasons: the browser
|
|
544
|
+
* holds a session for this origin and no credential content accepts, so
|
|
545
|
+
* this server checks the session, sends the project's key with the person's
|
|
546
|
+
* profile id beside it -- a proposal is opened, renamed and closed by
|
|
547
|
+
* somebody -- and carries content's status and body back unread. The sub-path
|
|
548
|
+
* is content's, after `/proposals`; `ValOpsHttp.proposalsApi` holds the
|
|
549
|
+
* allow list. A save is not here: it is `/save`, which a proposal's server
|
|
550
|
+
* sends to the proposal's own route.
|
|
551
|
+
*/
|
|
552
|
+
"/proposals-api": {
|
|
553
|
+
GET: {
|
|
554
|
+
req: {
|
|
555
|
+
path: z.ZodOptional<z.ZodString>;
|
|
556
|
+
cookies: {
|
|
557
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
res: z.ZodObject<{
|
|
561
|
+
status: z.ZodNumber;
|
|
562
|
+
json: z.ZodUnknown;
|
|
563
|
+
}, z.core.$strip>;
|
|
564
|
+
};
|
|
565
|
+
POST: {
|
|
566
|
+
req: {
|
|
567
|
+
path: z.ZodOptional<z.ZodString>;
|
|
568
|
+
body: z.ZodOptional<z.ZodUnknown>;
|
|
569
|
+
cookies: {
|
|
570
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
571
|
+
};
|
|
572
|
+
};
|
|
573
|
+
res: z.ZodObject<{
|
|
574
|
+
status: z.ZodNumber;
|
|
575
|
+
json: z.ZodUnknown;
|
|
576
|
+
}, z.core.$strip>;
|
|
577
|
+
};
|
|
578
|
+
PATCH: {
|
|
579
|
+
req: {
|
|
580
|
+
path: z.ZodOptional<z.ZodString>;
|
|
581
|
+
body: z.ZodOptional<z.ZodUnknown>;
|
|
582
|
+
cookies: {
|
|
583
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
584
|
+
};
|
|
585
|
+
};
|
|
586
|
+
res: z.ZodObject<{
|
|
587
|
+
status: z.ZodNumber;
|
|
588
|
+
json: z.ZodUnknown;
|
|
589
|
+
}, z.core.$strip>;
|
|
590
|
+
};
|
|
591
|
+
};
|
|
555
592
|
"/upload/patches": {
|
|
556
593
|
POST: {
|
|
557
594
|
req: {
|
|
@@ -562,7 +599,7 @@ export declare const Api: {
|
|
|
562
599
|
headBaseSha: z.ZodString;
|
|
563
600
|
}, z.core.$strip>, z.ZodObject<{
|
|
564
601
|
type: z.ZodLiteral<"patch">;
|
|
565
|
-
patchId: z.ZodString & z.ZodType<
|
|
602
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
566
603
|
}, z.core.$strip>]>;
|
|
567
604
|
filePath: z.ZodString;
|
|
568
605
|
data: z.ZodAny;
|
|
@@ -580,7 +617,7 @@ export declare const Api: {
|
|
|
580
617
|
status: z.ZodLiteral<200>;
|
|
581
618
|
json: z.ZodObject<{
|
|
582
619
|
filePath: z.ZodString;
|
|
583
|
-
patchId: z.ZodString & z.ZodType<
|
|
620
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
584
621
|
}, z.core.$strip>;
|
|
585
622
|
}, z.core.$strip>]>;
|
|
586
623
|
};
|
|
@@ -671,10 +708,10 @@ export declare const Api: {
|
|
|
671
708
|
DELETE: {
|
|
672
709
|
req: {
|
|
673
710
|
query: {
|
|
674
|
-
id: z.ZodArray<z.ZodString & z.ZodType<
|
|
711
|
+
id: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
675
712
|
};
|
|
676
713
|
body: z.ZodOptional<z.ZodObject<{
|
|
677
|
-
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>>>>;
|
|
678
715
|
reportHeadVersion: z.ZodOptional<z.ZodLiteral<true>>;
|
|
679
716
|
}, z.core.$strip>>;
|
|
680
717
|
cookies: {
|
|
@@ -691,7 +728,7 @@ export declare const Api: {
|
|
|
691
728
|
json: z.ZodObject<{
|
|
692
729
|
message: z.ZodString;
|
|
693
730
|
errors: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
694
|
-
patchId: z.ZodString & z.ZodType<
|
|
731
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
695
732
|
message: z.ZodString;
|
|
696
733
|
}, z.core.$strip>, z.ZodObject<{
|
|
697
734
|
parentPatchId: z.ZodString;
|
|
@@ -700,8 +737,8 @@ export declare const Api: {
|
|
|
700
737
|
}, z.core.$strip>;
|
|
701
738
|
}, z.core.$strip>, z.ZodObject<{
|
|
702
739
|
status: z.ZodLiteral<200>;
|
|
703
|
-
json: z.ZodUnion<readonly [z.ZodArray<z.ZodString & z.ZodType<
|
|
704
|
-
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>>>;
|
|
705
742
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
706
743
|
}, z.core.$strip>]>;
|
|
707
744
|
}, z.core.$strip>]>;
|
|
@@ -714,16 +751,16 @@ export declare const Api: {
|
|
|
714
751
|
headBaseSha: z.ZodString;
|
|
715
752
|
}, z.core.$strip>, z.ZodObject<{
|
|
716
753
|
type: z.ZodLiteral<"patch">;
|
|
717
|
-
patchId: z.ZodString & z.ZodType<
|
|
754
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
718
755
|
}, z.core.$strip>]>;
|
|
719
756
|
sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
720
757
|
patches: z.ZodArray<z.ZodObject<{
|
|
721
758
|
path: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
722
|
-
patchId: z.ZodString & z.ZodType<
|
|
759
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
723
760
|
patch: z.ZodAny;
|
|
724
761
|
}, z.core.$strip>>;
|
|
725
762
|
patchGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
726
|
-
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>>>>;
|
|
727
764
|
}, z.core.$strip>;
|
|
728
765
|
cookies: {
|
|
729
766
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -754,13 +791,13 @@ export declare const Api: {
|
|
|
754
791
|
}, z.core.$strip>, z.ZodObject<{
|
|
755
792
|
status: z.ZodLiteral<200>;
|
|
756
793
|
json: z.ZodObject<{
|
|
757
|
-
newPatchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
794
|
+
newPatchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
758
795
|
parentRef: z.ZodUnion<readonly [z.ZodObject<{
|
|
759
796
|
type: z.ZodLiteral<"head">;
|
|
760
797
|
headBaseSha: z.ZodString;
|
|
761
798
|
}, z.core.$strip>, z.ZodObject<{
|
|
762
799
|
type: z.ZodLiteral<"patch">;
|
|
763
|
-
patchId: z.ZodString & z.ZodType<
|
|
800
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
764
801
|
}, z.core.$strip>]>;
|
|
765
802
|
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
766
803
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
@@ -770,7 +807,7 @@ export declare const Api: {
|
|
|
770
807
|
GET: {
|
|
771
808
|
req: {
|
|
772
809
|
query: {
|
|
773
|
-
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>>>>;
|
|
774
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">>>;
|
|
775
812
|
/**
|
|
776
813
|
* Include the patch group annotation in the answer.
|
|
@@ -796,7 +833,7 @@ export declare const Api: {
|
|
|
796
833
|
json: z.ZodObject<{
|
|
797
834
|
message: z.ZodString;
|
|
798
835
|
patchErrors: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
799
|
-
patchId: z.ZodString & z.ZodType<
|
|
836
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
800
837
|
message: z.ZodString;
|
|
801
838
|
}, z.core.$strip>, z.ZodObject<{
|
|
802
839
|
parentPatchId: z.ZodString;
|
|
@@ -819,14 +856,14 @@ export declare const Api: {
|
|
|
819
856
|
patch: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
820
857
|
op: z.ZodLiteral<"add">;
|
|
821
858
|
path: z.ZodArray<z.ZodString>;
|
|
822
|
-
value: z.ZodType<
|
|
859
|
+
value: z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>;
|
|
823
860
|
}, z.core.$strict>, z.ZodObject<{
|
|
824
861
|
op: z.ZodLiteral<"remove">;
|
|
825
862
|
path: z.ZodTuple<[z.ZodString], z.ZodString>;
|
|
826
863
|
}, z.core.$strict>, z.ZodObject<{
|
|
827
864
|
op: z.ZodLiteral<"replace">;
|
|
828
865
|
path: z.ZodArray<z.ZodString>;
|
|
829
|
-
value: z.ZodType<
|
|
866
|
+
value: z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>;
|
|
830
867
|
}, z.core.$strict>, z.ZodObject<{
|
|
831
868
|
op: z.ZodLiteral<"move">;
|
|
832
869
|
from: z.ZodTuple<[z.ZodString], z.ZodString>;
|
|
@@ -838,17 +875,17 @@ export declare const Api: {
|
|
|
838
875
|
}, z.core.$strict>, z.ZodObject<{
|
|
839
876
|
op: z.ZodLiteral<"test">;
|
|
840
877
|
path: z.ZodArray<z.ZodString>;
|
|
841
|
-
value: z.ZodType<
|
|
878
|
+
value: z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>;
|
|
842
879
|
}, z.core.$strict>, z.ZodObject<{
|
|
843
880
|
op: z.ZodLiteral<"file">;
|
|
844
881
|
path: z.ZodArray<z.ZodString>;
|
|
845
882
|
filePath: z.ZodString;
|
|
846
|
-
value: z.ZodType<
|
|
883
|
+
value: z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>;
|
|
847
884
|
remote: z.ZodBoolean;
|
|
848
885
|
nestedFilePath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
849
|
-
metadata: z.ZodOptional<z.ZodType<
|
|
886
|
+
metadata: z.ZodOptional<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
|
|
850
887
|
}, z.core.$strict>], "op">>>;
|
|
851
|
-
patchId: z.ZodString & z.ZodType<
|
|
888
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
852
889
|
createdAt: z.ZodString;
|
|
853
890
|
authorId: z.ZodNullable<z.ZodString>;
|
|
854
891
|
appliedAt: z.ZodNullable<z.ZodObject<{
|
|
@@ -861,13 +898,13 @@ export declare const Api: {
|
|
|
861
898
|
authorId: z.ZodNullable<z.ZodString>;
|
|
862
899
|
createdAt: z.ZodString;
|
|
863
900
|
publishedAt: z.ZodNullable<z.ZodString>;
|
|
864
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
901
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
865
902
|
}, z.core.$strip>>>;
|
|
866
903
|
baseSha: z.ZodString;
|
|
867
904
|
error: z.ZodOptional<z.ZodObject<{
|
|
868
905
|
message: z.ZodString;
|
|
869
906
|
}, z.core.$strip>>;
|
|
870
|
-
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<{
|
|
871
908
|
message: z.ZodString;
|
|
872
909
|
}, z.core.$strip>>>;
|
|
873
910
|
}, z.core.$strip>;
|
|
@@ -879,8 +916,8 @@ export declare const Api: {
|
|
|
879
916
|
req: {
|
|
880
917
|
body: z.ZodObject<{
|
|
881
918
|
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
882
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
883
|
-
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>>>>;
|
|
884
921
|
}, z.core.$strip>;
|
|
885
922
|
cookies: {
|
|
886
923
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -910,7 +947,7 @@ export declare const Api: {
|
|
|
910
947
|
status: z.ZodLiteral<200>;
|
|
911
948
|
json: z.ZodObject<{
|
|
912
949
|
patchGroupId: z.ZodNullable<z.ZodString>;
|
|
913
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
950
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
914
951
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
915
952
|
}, z.core.$strip>;
|
|
916
953
|
}, z.core.$strip>]>;
|
|
@@ -919,8 +956,8 @@ export declare const Api: {
|
|
|
919
956
|
req: {
|
|
920
957
|
body: z.ZodObject<{
|
|
921
958
|
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
922
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
923
|
-
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>>>>;
|
|
924
961
|
}, z.core.$strip>;
|
|
925
962
|
cookies: {
|
|
926
963
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -950,7 +987,7 @@ export declare const Api: {
|
|
|
950
987
|
status: z.ZodLiteral<200>;
|
|
951
988
|
json: z.ZodObject<{
|
|
952
989
|
patchGroupId: z.ZodNullable<z.ZodString>;
|
|
953
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
990
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
954
991
|
headVersion: z.ZodOptional<z.ZodNumber>;
|
|
955
992
|
}, z.core.$strip>;
|
|
956
993
|
}, z.core.$strip>]>;
|
|
@@ -989,7 +1026,7 @@ export declare const Api: {
|
|
|
989
1026
|
status: z.ZodLiteral<200>;
|
|
990
1027
|
json: z.ZodObject<{
|
|
991
1028
|
schemaSha: z.ZodString;
|
|
992
|
-
schemas: z.ZodRecord<z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>, z.ZodType<
|
|
1029
|
+
schemas: z.ZodRecord<z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>, z.ZodType<SerializedSchemaT, unknown, z.core.$ZodTypeInternals<SerializedSchemaT, unknown>>>;
|
|
993
1030
|
}, z.core.$strip>;
|
|
994
1031
|
}, z.core.$strip>]>;
|
|
995
1032
|
};
|
|
@@ -1016,7 +1053,7 @@ export declare const Api: {
|
|
|
1016
1053
|
* answer and is honoured as one: a group holding nothing renders
|
|
1017
1054
|
* base.
|
|
1018
1055
|
*/
|
|
1019
|
-
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>>>>;
|
|
1020
1057
|
/**
|
|
1021
1058
|
* Apply only the patches in the CALLER'S OWN patch groups.
|
|
1022
1059
|
*
|
|
@@ -1080,9 +1117,9 @@ export declare const Api: {
|
|
|
1080
1117
|
source: z.ZodOptional<z.ZodAny>;
|
|
1081
1118
|
baseSource: z.ZodOptional<z.ZodAny>;
|
|
1082
1119
|
patches: z.ZodOptional<z.ZodObject<{
|
|
1083
|
-
applied: z.ZodArray<z.ZodString & z.ZodType<
|
|
1084
|
-
skipped: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<
|
|
1085
|
-
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<{
|
|
1086
1123
|
message: z.ZodString;
|
|
1087
1124
|
}, z.core.$strip>>>;
|
|
1088
1125
|
}, z.core.$strip>>;
|
|
@@ -1090,7 +1127,7 @@ export declare const Api: {
|
|
|
1090
1127
|
message: z.ZodString;
|
|
1091
1128
|
value: z.ZodOptional<z.ZodUnknown>;
|
|
1092
1129
|
fatal: z.ZodOptional<z.ZodBoolean>;
|
|
1093
|
-
fixes: z.ZodOptional<z.ZodArray<z.ZodType<
|
|
1130
|
+
fixes: z.ZodOptional<z.ZodArray<z.ZodType<ValidationFix, unknown, z.core.$ZodTypeInternals<ValidationFix, unknown>>>>;
|
|
1094
1131
|
}, z.core.$strip>>>>;
|
|
1095
1132
|
}, z.core.$strip>>;
|
|
1096
1133
|
}, z.core.$strip>;
|
|
@@ -1103,7 +1140,7 @@ export declare const Api: {
|
|
|
1103
1140
|
body: z.ZodObject<{
|
|
1104
1141
|
jobId: z.ZodString;
|
|
1105
1142
|
tab: z.ZodString;
|
|
1106
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1143
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
1107
1144
|
}, z.core.$strip>;
|
|
1108
1145
|
cookies: {
|
|
1109
1146
|
val_session: z.ZodOptional<z.ZodString>;
|
|
@@ -1156,6 +1193,38 @@ export declare const Api: {
|
|
|
1156
1193
|
}, z.core.$strip>]>;
|
|
1157
1194
|
};
|
|
1158
1195
|
};
|
|
1196
|
+
/**
|
|
1197
|
+
* In a proposal: the SITE's Source for every module the proposal has saved,
|
|
1198
|
+
* as the build it is based on has it. What Compare with the site diffs the
|
|
1199
|
+
* proposal against -- saved and unsaved alike -- because the Studio's own
|
|
1200
|
+
* base Source there is the proposal's last save. 404 anywhere that is not a
|
|
1201
|
+
* proposal's address. valbuild/home `docs/proposals.md`.
|
|
1202
|
+
*/
|
|
1203
|
+
"/proposal-site-sources": {
|
|
1204
|
+
GET: {
|
|
1205
|
+
req: {
|
|
1206
|
+
cookies: {
|
|
1207
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
1208
|
+
};
|
|
1209
|
+
};
|
|
1210
|
+
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
1211
|
+
status: z.ZodLiteral<401>;
|
|
1212
|
+
json: z.ZodObject<{
|
|
1213
|
+
message: z.ZodString;
|
|
1214
|
+
}, z.core.$strip>;
|
|
1215
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1216
|
+
status: z.ZodLiteral<404>;
|
|
1217
|
+
json: z.ZodObject<{
|
|
1218
|
+
message: z.ZodString;
|
|
1219
|
+
}, z.core.$strip>;
|
|
1220
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1221
|
+
status: z.ZodLiteral<200>;
|
|
1222
|
+
json: z.ZodObject<{
|
|
1223
|
+
modules: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1224
|
+
}, z.core.$strip>;
|
|
1225
|
+
}, z.core.$strip>]>;
|
|
1226
|
+
};
|
|
1227
|
+
};
|
|
1159
1228
|
"/profiles": {
|
|
1160
1229
|
GET: {
|
|
1161
1230
|
req: {
|
|
@@ -1193,7 +1262,7 @@ export declare const Api: {
|
|
|
1193
1262
|
req: {
|
|
1194
1263
|
body: z.ZodObject<{
|
|
1195
1264
|
message: z.ZodOptional<z.ZodString>;
|
|
1196
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1265
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
1197
1266
|
patchGroupId: z.ZodOptional<z.ZodString>;
|
|
1198
1267
|
expectedHeadCommitSha: z.ZodOptional<z.ZodString>;
|
|
1199
1268
|
}, z.core.$strip>;
|
|
@@ -1215,7 +1284,7 @@ export declare const Api: {
|
|
|
1215
1284
|
branch: z.ZodOptional<z.ZodString>;
|
|
1216
1285
|
binaryFilesUnread: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1217
1286
|
removed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1218
|
-
patchId: z.ZodString & z.ZodType<
|
|
1287
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
1219
1288
|
moduleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
1220
1289
|
message: z.ZodString;
|
|
1221
1290
|
}, z.core.$strip>>>;
|
|
@@ -1262,7 +1331,7 @@ export declare const Api: {
|
|
|
1262
1331
|
binaryFilePatchErrors: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1263
1332
|
message: z.ZodString;
|
|
1264
1333
|
}, z.core.$strip>>;
|
|
1265
|
-
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<{
|
|
1266
1335
|
moduleFilePath: z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>;
|
|
1267
1336
|
message: z.ZodString;
|
|
1268
1337
|
}, z.core.$strip>>>;
|
|
@@ -1388,9 +1457,9 @@ export declare const Api: {
|
|
|
1388
1457
|
hasArchive: z.ZodBoolean;
|
|
1389
1458
|
}, z.core.$strip>;
|
|
1390
1459
|
modules: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1391
|
-
source: z.ZodNullable<z.ZodType<
|
|
1392
|
-
schema: z.ZodNullable<z.ZodType<
|
|
1393
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1460
|
+
source: z.ZodNullable<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
|
|
1461
|
+
schema: z.ZodNullable<z.ZodType<SerializedSchemaT, unknown, z.core.$ZodTypeInternals<SerializedSchemaT, unknown>>>;
|
|
1462
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
1394
1463
|
changedPaths: z.ZodArray<z.ZodString>;
|
|
1395
1464
|
failures: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1396
1465
|
kind: z.ZodLiteral<"commit-not-found">;
|
|
@@ -1418,7 +1487,7 @@ export declare const Api: {
|
|
|
1418
1487
|
}, z.core.$strip>], "kind">>;
|
|
1419
1488
|
}, z.core.$strip>>;
|
|
1420
1489
|
patches: z.ZodArray<z.ZodObject<{
|
|
1421
|
-
patchId: z.ZodString & z.ZodType<
|
|
1490
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
1422
1491
|
moduleFilePath: z.ZodString;
|
|
1423
1492
|
patch: z.ZodUnknown;
|
|
1424
1493
|
authorId: z.ZodNullable<z.ZodString>;
|
|
@@ -1508,9 +1577,9 @@ export declare const Api: {
|
|
|
1508
1577
|
json: z.ZodObject<{
|
|
1509
1578
|
moduleFilePath: z.ZodString;
|
|
1510
1579
|
module: z.ZodNullable<z.ZodObject<{
|
|
1511
|
-
source: z.ZodNullable<z.ZodType<
|
|
1512
|
-
schema: z.ZodNullable<z.ZodType<
|
|
1513
|
-
patchIds: z.ZodArray<z.ZodString & z.ZodType<
|
|
1580
|
+
source: z.ZodNullable<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
|
|
1581
|
+
schema: z.ZodNullable<z.ZodType<SerializedSchemaT, unknown, z.core.$ZodTypeInternals<SerializedSchemaT, unknown>>>;
|
|
1582
|
+
patchIds: z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>;
|
|
1514
1583
|
changedPaths: z.ZodArray<z.ZodString>;
|
|
1515
1584
|
failures: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1516
1585
|
kind: z.ZodLiteral<"commit-not-found">;
|
|
@@ -1661,13 +1730,12 @@ export declare const Api: {
|
|
|
1661
1730
|
req: {
|
|
1662
1731
|
path: z.ZodString;
|
|
1663
1732
|
query: {
|
|
1664
|
-
patch_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString & z.ZodType<
|
|
1665
|
-
VAL_DATA_TYPE: "PatchId";
|
|
1666
|
-
}, (string & {
|
|
1667
|
-
VAL_DATA_TYPE: "PatchId";
|
|
1668
|
-
})[]>>>;
|
|
1733
|
+
patch_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>>, z.ZodTransform<any, any[]>>>;
|
|
1669
1734
|
remote: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
1670
1735
|
};
|
|
1736
|
+
headers: {
|
|
1737
|
+
range: z.ZodOptional<z.ZodString>;
|
|
1738
|
+
};
|
|
1671
1739
|
};
|
|
1672
1740
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
1673
1741
|
status: z.ZodLiteral<401>;
|
|
@@ -1682,6 +1750,14 @@ export declare const Api: {
|
|
|
1682
1750
|
}, z.core.$strip>, z.ZodObject<{
|
|
1683
1751
|
status: z.ZodLiteral<200>;
|
|
1684
1752
|
body: z.ZodCustom<import("node:stream/web").ReadableStream<unknown>, import("node:stream/web").ReadableStream<unknown>>;
|
|
1753
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1754
|
+
status: z.ZodLiteral<206>;
|
|
1755
|
+
body: z.ZodCustom<import("node:stream/web").ReadableStream<unknown>, import("node:stream/web").ReadableStream<unknown>>;
|
|
1756
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1757
|
+
status: z.ZodLiteral<416>;
|
|
1758
|
+
json: z.ZodObject<{
|
|
1759
|
+
message: z.ZodString;
|
|
1760
|
+
}, z.core.$strip>;
|
|
1685
1761
|
}, z.core.$strip>]>;
|
|
1686
1762
|
};
|
|
1687
1763
|
};
|
|
@@ -1706,7 +1782,7 @@ export declare const Api: {
|
|
|
1706
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">>>;
|
|
1707
1783
|
};
|
|
1708
1784
|
cookies: {
|
|
1709
|
-
|
|
1785
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
1710
1786
|
};
|
|
1711
1787
|
};
|
|
1712
1788
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1760,7 +1836,7 @@ export declare const Api: {
|
|
|
1760
1836
|
POST: {
|
|
1761
1837
|
req: {
|
|
1762
1838
|
cookies: {
|
|
1763
|
-
|
|
1839
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
1764
1840
|
};
|
|
1765
1841
|
};
|
|
1766
1842
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1798,7 +1874,7 @@ export declare const Api: {
|
|
|
1798
1874
|
cursor_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
1799
1875
|
};
|
|
1800
1876
|
cookies: {
|
|
1801
|
-
|
|
1877
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
1802
1878
|
};
|
|
1803
1879
|
};
|
|
1804
1880
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1834,7 +1910,7 @@ export declare const Api: {
|
|
|
1834
1910
|
name: z.ZodString;
|
|
1835
1911
|
}, z.core.$strip>;
|
|
1836
1912
|
cookies: {
|
|
1837
|
-
|
|
1913
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
1838
1914
|
};
|
|
1839
1915
|
};
|
|
1840
1916
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1863,7 +1939,7 @@ export declare const Api: {
|
|
|
1863
1939
|
cursor_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
1864
1940
|
};
|
|
1865
1941
|
cookies: {
|
|
1866
|
-
|
|
1942
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
1867
1943
|
};
|
|
1868
1944
|
};
|
|
1869
1945
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1901,13 +1977,13 @@ export declare const Api: {
|
|
|
1901
1977
|
POST: {
|
|
1902
1978
|
req: {
|
|
1903
1979
|
body: z.ZodObject<{
|
|
1904
|
-
patchId: z.ZodString & z.ZodType<
|
|
1980
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
1905
1981
|
parentRef: z.ZodUnion<readonly [z.ZodObject<{
|
|
1906
1982
|
type: z.ZodLiteral<"head">;
|
|
1907
1983
|
headBaseSha: z.ZodString;
|
|
1908
1984
|
}, z.core.$strip>, z.ZodObject<{
|
|
1909
1985
|
type: z.ZodLiteral<"patch">;
|
|
1910
|
-
patchId: z.ZodString & z.ZodType<
|
|
1986
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
1911
1987
|
}, z.core.$strip>]>;
|
|
1912
1988
|
files: z.ZodArray<z.ZodObject<{
|
|
1913
1989
|
filePath: z.ZodString;
|
|
@@ -1916,7 +1992,7 @@ export declare const Api: {
|
|
|
1916
1992
|
}, z.core.$strip>>;
|
|
1917
1993
|
}, z.core.$strip>;
|
|
1918
1994
|
cookies: {
|
|
1919
|
-
|
|
1995
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
1920
1996
|
};
|
|
1921
1997
|
};
|
|
1922
1998
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1927,7 +2003,7 @@ export declare const Api: {
|
|
|
1927
2003
|
}, z.core.$strip>, z.ZodObject<{
|
|
1928
2004
|
status: z.ZodLiteral<200>;
|
|
1929
2005
|
json: z.ZodObject<{
|
|
1930
|
-
patchId: z.ZodString & z.ZodType<
|
|
2006
|
+
patchId: z.ZodString & z.ZodType<PatchIdT, string, z.core.$ZodTypeInternals<PatchIdT, string>>;
|
|
1931
2007
|
files: z.ZodArray<z.ZodObject<{
|
|
1932
2008
|
filePath: z.ZodString;
|
|
1933
2009
|
metadata: z.ZodObject<{
|
|
@@ -1962,7 +2038,7 @@ export declare const Api: {
|
|
|
1962
2038
|
contentType: z.ZodString;
|
|
1963
2039
|
}, z.core.$strip>;
|
|
1964
2040
|
cookies: {
|
|
1965
|
-
|
|
2041
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
1966
2042
|
};
|
|
1967
2043
|
};
|
|
1968
2044
|
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1987,7 +2063,7 @@ export declare const Api: {
|
|
|
1987
2063
|
GET: {
|
|
1988
2064
|
req: {
|
|
1989
2065
|
cookies: {
|
|
1990
|
-
|
|
2066
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
1991
2067
|
};
|
|
1992
2068
|
};
|
|
1993
2069
|
res: z.ZodObject<{
|
|
@@ -2011,7 +2087,7 @@ export declare const Api: {
|
|
|
2011
2087
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2012
2088
|
};
|
|
2013
2089
|
cookies: {
|
|
2014
|
-
|
|
2090
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
2015
2091
|
};
|
|
2016
2092
|
body: z.ZodUnknown;
|
|
2017
2093
|
};
|
|
@@ -2028,7 +2104,7 @@ export declare const Api: {
|
|
|
2028
2104
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2029
2105
|
};
|
|
2030
2106
|
cookies: {
|
|
2031
|
-
|
|
2107
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
2032
2108
|
};
|
|
2033
2109
|
body: z.ZodUnknown;
|
|
2034
2110
|
};
|
|
@@ -2045,7 +2121,7 @@ export declare const Api: {
|
|
|
2045
2121
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2046
2122
|
};
|
|
2047
2123
|
cookies: {
|
|
2048
|
-
|
|
2124
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
2049
2125
|
};
|
|
2050
2126
|
body: z.ZodUnknown;
|
|
2051
2127
|
};
|
|
@@ -2062,7 +2138,7 @@ export declare const Api: {
|
|
|
2062
2138
|
"x-val-studio": z.ZodOptional<z.ZodString>;
|
|
2063
2139
|
};
|
|
2064
2140
|
cookies: {
|
|
2065
|
-
|
|
2141
|
+
[VAL_SESSION_COOKIE]: z.ZodOptional<z.ZodString>;
|
|
2066
2142
|
};
|
|
2067
2143
|
body: z.ZodUnknown;
|
|
2068
2144
|
};
|