@valbuild/shared 0.64.0 → 0.65.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.
@@ -39,14 +39,336 @@ type CookieValue = EnableCookieValue | {
39
39
  };
40
40
  };
41
41
  export declare const Api: {
42
+ "/draft/enable": {
43
+ GET: {
44
+ req: {
45
+ query: {
46
+ redirect_to: z.ZodOptional<z.ZodString>;
47
+ };
48
+ cookies: {
49
+ val_session: z.ZodOptional<z.ZodString>;
50
+ };
51
+ };
52
+ res: z.ZodUnion<[z.ZodObject<{
53
+ status: z.ZodLiteral<401>;
54
+ json: z.ZodObject<{
55
+ message: z.ZodString;
56
+ }, "strip", z.ZodTypeAny, {
57
+ message: string;
58
+ }, {
59
+ message: string;
60
+ }>;
61
+ }, "strip", z.ZodTypeAny, {
62
+ status: 401;
63
+ json: {
64
+ message: string;
65
+ };
66
+ }, {
67
+ status: 401;
68
+ json: {
69
+ message: string;
70
+ };
71
+ }>, z.ZodObject<{
72
+ status: z.ZodLiteral<302>;
73
+ redirectTo: z.ZodString;
74
+ }, "strip", z.ZodTypeAny, {
75
+ status: 302;
76
+ redirectTo: string;
77
+ }, {
78
+ status: 302;
79
+ redirectTo: string;
80
+ }>, z.ZodObject<{
81
+ status: z.ZodLiteral<400>;
82
+ json: z.ZodObject<{
83
+ message: z.ZodString;
84
+ }, "strip", z.ZodTypeAny, {
85
+ message: string;
86
+ }, {
87
+ message: string;
88
+ }>;
89
+ }, "strip", z.ZodTypeAny, {
90
+ status: 400;
91
+ json: {
92
+ message: string;
93
+ };
94
+ }, {
95
+ status: 400;
96
+ json: {
97
+ message: string;
98
+ };
99
+ }>]>;
100
+ };
101
+ };
102
+ "/draft/disable": {
103
+ GET: {
104
+ req: {
105
+ query: {
106
+ redirect_to: z.ZodOptional<z.ZodString>;
107
+ };
108
+ cookies: {
109
+ val_session: z.ZodOptional<z.ZodString>;
110
+ };
111
+ };
112
+ res: z.ZodUnion<[z.ZodObject<{
113
+ status: z.ZodLiteral<401>;
114
+ json: z.ZodObject<{
115
+ message: z.ZodString;
116
+ }, "strip", z.ZodTypeAny, {
117
+ message: string;
118
+ }, {
119
+ message: string;
120
+ }>;
121
+ }, "strip", z.ZodTypeAny, {
122
+ status: 401;
123
+ json: {
124
+ message: string;
125
+ };
126
+ }, {
127
+ status: 401;
128
+ json: {
129
+ message: string;
130
+ };
131
+ }>, z.ZodObject<{
132
+ status: z.ZodLiteral<302>;
133
+ redirectTo: z.ZodString;
134
+ }, "strip", z.ZodTypeAny, {
135
+ status: 302;
136
+ redirectTo: string;
137
+ }, {
138
+ status: 302;
139
+ redirectTo: string;
140
+ }>, z.ZodObject<{
141
+ status: z.ZodLiteral<400>;
142
+ json: z.ZodObject<{
143
+ message: z.ZodString;
144
+ }, "strip", z.ZodTypeAny, {
145
+ message: string;
146
+ }, {
147
+ message: string;
148
+ }>;
149
+ }, "strip", z.ZodTypeAny, {
150
+ status: 400;
151
+ json: {
152
+ message: string;
153
+ };
154
+ }, {
155
+ status: 400;
156
+ json: {
157
+ message: string;
158
+ };
159
+ }>]>;
160
+ };
161
+ };
162
+ "/draft/stat": {
163
+ GET: {
164
+ req: {
165
+ cookies: {
166
+ val_session: z.ZodOptional<z.ZodString>;
167
+ };
168
+ };
169
+ res: z.ZodUnion<[z.ZodObject<{
170
+ status: z.ZodLiteral<401>;
171
+ json: z.ZodObject<{
172
+ message: z.ZodString;
173
+ }, "strip", z.ZodTypeAny, {
174
+ message: string;
175
+ }, {
176
+ message: string;
177
+ }>;
178
+ }, "strip", z.ZodTypeAny, {
179
+ status: 401;
180
+ json: {
181
+ message: string;
182
+ };
183
+ }, {
184
+ status: 401;
185
+ json: {
186
+ message: string;
187
+ };
188
+ }>, z.ZodObject<{
189
+ status: z.ZodLiteral<200>;
190
+ json: z.ZodObject<{
191
+ draftMode: z.ZodBoolean;
192
+ }, "strip", z.ZodTypeAny, {
193
+ draftMode: boolean;
194
+ }, {
195
+ draftMode: boolean;
196
+ }>;
197
+ }, "strip", z.ZodTypeAny, {
198
+ status: 200;
199
+ json: {
200
+ draftMode: boolean;
201
+ };
202
+ }, {
203
+ status: 200;
204
+ json: {
205
+ draftMode: boolean;
206
+ };
207
+ }>]>;
208
+ };
209
+ };
42
210
  "/enable": {
43
211
  GET: {
44
212
  req: {
45
213
  query: {
46
214
  redirect_to: z.ZodOptional<z.ZodString>;
47
215
  };
48
- };
49
- res: z.ZodUnion<[z.ZodObject<{
216
+ cookies: {
217
+ val_session: z.ZodOptional<z.ZodString>;
218
+ };
219
+ };
220
+ res: z.ZodUnion<[z.ZodObject<{
221
+ status: z.ZodLiteral<401>;
222
+ json: z.ZodObject<{
223
+ message: z.ZodString;
224
+ }, "strip", z.ZodTypeAny, {
225
+ message: string;
226
+ }, {
227
+ message: string;
228
+ }>;
229
+ }, "strip", z.ZodTypeAny, {
230
+ status: 401;
231
+ json: {
232
+ message: string;
233
+ };
234
+ }, {
235
+ status: 401;
236
+ json: {
237
+ message: string;
238
+ };
239
+ }>, z.ZodObject<{
240
+ status: z.ZodLiteral<302>;
241
+ redirectTo: z.ZodString;
242
+ cookies: z.ZodObject<{
243
+ val_enable: z.ZodObject<{
244
+ value: z.ZodLiteral<"true">;
245
+ options: z.ZodObject<{
246
+ httpOnly: z.ZodLiteral<false>;
247
+ sameSite: z.ZodLiteral<"lax">;
248
+ }, "strip", z.ZodTypeAny, {
249
+ httpOnly: false;
250
+ sameSite: "lax";
251
+ }, {
252
+ httpOnly: false;
253
+ sameSite: "lax";
254
+ }>;
255
+ }, "strip", z.ZodTypeAny, {
256
+ value: "true";
257
+ options: {
258
+ httpOnly: false;
259
+ sameSite: "lax";
260
+ };
261
+ }, {
262
+ value: "true";
263
+ options: {
264
+ httpOnly: false;
265
+ sameSite: "lax";
266
+ };
267
+ }>;
268
+ val_state: z.ZodObject<{
269
+ value: z.ZodString;
270
+ options: z.ZodObject<{
271
+ httpOnly: z.ZodLiteral<true>;
272
+ sameSite: z.ZodLiteral<"lax">;
273
+ expires: z.ZodType<Date, z.ZodTypeDef, Date>;
274
+ }, "strip", z.ZodTypeAny, {
275
+ httpOnly: true;
276
+ sameSite: "lax";
277
+ expires: Date;
278
+ }, {
279
+ httpOnly: true;
280
+ sameSite: "lax";
281
+ expires: Date;
282
+ }>;
283
+ }, "strip", z.ZodTypeAny, {
284
+ value: string;
285
+ options: {
286
+ httpOnly: true;
287
+ sameSite: "lax";
288
+ expires: Date;
289
+ };
290
+ }, {
291
+ value: string;
292
+ options: {
293
+ httpOnly: true;
294
+ sameSite: "lax";
295
+ expires: Date;
296
+ };
297
+ }>;
298
+ }, "strip", z.ZodTypeAny, {
299
+ val_enable: {
300
+ value: "true";
301
+ options: {
302
+ httpOnly: false;
303
+ sameSite: "lax";
304
+ };
305
+ };
306
+ val_state: {
307
+ value: string;
308
+ options: {
309
+ httpOnly: true;
310
+ sameSite: "lax";
311
+ expires: Date;
312
+ };
313
+ };
314
+ }, {
315
+ val_enable: {
316
+ value: "true";
317
+ options: {
318
+ httpOnly: false;
319
+ sameSite: "lax";
320
+ };
321
+ };
322
+ val_state: {
323
+ value: string;
324
+ options: {
325
+ httpOnly: true;
326
+ sameSite: "lax";
327
+ expires: Date;
328
+ };
329
+ };
330
+ }>;
331
+ }, "strip", z.ZodTypeAny, {
332
+ status: 302;
333
+ redirectTo: string;
334
+ cookies: {
335
+ val_enable: {
336
+ value: "true";
337
+ options: {
338
+ httpOnly: false;
339
+ sameSite: "lax";
340
+ };
341
+ };
342
+ val_state: {
343
+ value: string;
344
+ options: {
345
+ httpOnly: true;
346
+ sameSite: "lax";
347
+ expires: Date;
348
+ };
349
+ };
350
+ };
351
+ }, {
352
+ status: 302;
353
+ redirectTo: string;
354
+ cookies: {
355
+ val_enable: {
356
+ value: "true";
357
+ options: {
358
+ httpOnly: false;
359
+ sameSite: "lax";
360
+ };
361
+ };
362
+ val_state: {
363
+ value: string;
364
+ options: {
365
+ httpOnly: true;
366
+ sameSite: "lax";
367
+ expires: Date;
368
+ };
369
+ };
370
+ };
371
+ }>, z.ZodObject<{
50
372
  status: z.ZodLiteral<302>;
51
373
  redirectTo: z.ZodString;
52
374
  cookies: z.ZodObject<{
@@ -144,8 +466,30 @@ export declare const Api: {
144
466
  query: {
145
467
  redirect_to: z.ZodOptional<z.ZodString>;
146
468
  };
469
+ cookies: {
470
+ val_session: z.ZodOptional<z.ZodString>;
471
+ };
147
472
  };
148
473
  res: z.ZodUnion<[z.ZodObject<{
474
+ status: z.ZodLiteral<401>;
475
+ json: z.ZodObject<{
476
+ message: z.ZodString;
477
+ }, "strip", z.ZodTypeAny, {
478
+ message: string;
479
+ }, {
480
+ message: string;
481
+ }>;
482
+ }, "strip", z.ZodTypeAny, {
483
+ status: 401;
484
+ json: {
485
+ message: string;
486
+ };
487
+ }, {
488
+ status: 401;
489
+ json: {
490
+ message: string;
491
+ };
492
+ }>, z.ZodObject<{
149
493
  status: z.ZodLiteral<302>;
150
494
  redirectTo: z.ZodString;
151
495
  cookies: z.ZodObject<{
@@ -628,15 +972,7 @@ export declare const Api: {
628
972
  }>]>;
629
973
  }, "strip", z.ZodTypeAny, {
630
974
  message: string;
631
- details: (string | {
632
- reason: string;
633
- } | {
634
- sub: string;
635
- exp: number;
636
- token: string;
637
- org: string;
638
- project: string;
639
- }) & (string | {
975
+ details: string | {
640
976
  reason: string;
641
977
  } | {
642
978
  sub: string;
@@ -644,18 +980,10 @@ export declare const Api: {
644
980
  token: string;
645
981
  org: string;
646
982
  project: string;
647
- } | undefined);
983
+ };
648
984
  }, {
649
985
  message: string;
650
- details: (string | {
651
- reason: string;
652
- } | {
653
- sub: string;
654
- exp: number;
655
- token: string;
656
- org: string;
657
- project: string;
658
- }) & (string | {
986
+ details: string | {
659
987
  reason: string;
660
988
  } | {
661
989
  sub: string;
@@ -663,21 +991,13 @@ export declare const Api: {
663
991
  token: string;
664
992
  org: string;
665
993
  project: string;
666
- } | undefined);
994
+ };
667
995
  }>;
668
996
  }, "strip", z.ZodTypeAny, {
669
997
  status: 401;
670
998
  json: {
671
999
  message: string;
672
- details: (string | {
673
- reason: string;
674
- } | {
675
- sub: string;
676
- exp: number;
677
- token: string;
678
- org: string;
679
- project: string;
680
- }) & (string | {
1000
+ details: string | {
681
1001
  reason: string;
682
1002
  } | {
683
1003
  sub: string;
@@ -685,21 +1005,13 @@ export declare const Api: {
685
1005
  token: string;
686
1006
  org: string;
687
1007
  project: string;
688
- } | undefined);
1008
+ };
689
1009
  };
690
1010
  }, {
691
1011
  status: 401;
692
1012
  json: {
693
1013
  message: string;
694
- details: (string | {
695
- reason: string;
696
- } | {
697
- sub: string;
698
- exp: number;
699
- token: string;
700
- org: string;
701
- project: string;
702
- }) & (string | {
1014
+ details: string | {
703
1015
  reason: string;
704
1016
  } | {
705
1017
  sub: string;
@@ -707,7 +1019,7 @@ export declare const Api: {
707
1019
  token: string;
708
1020
  org: string;
709
1021
  project: string;
710
- } | undefined);
1022
+ };
711
1023
  };
712
1024
  }>, z.ZodObject<{
713
1025
  status: z.ZodLiteral<500>;
@@ -789,6 +1101,271 @@ export declare const Api: {
789
1101
  }>;
790
1102
  };
791
1103
  };
1104
+ "/stat": {
1105
+ POST: {
1106
+ req: {
1107
+ body: z.ZodNullable<z.ZodObject<{
1108
+ schemaSha: z.ZodString;
1109
+ baseSha: z.ZodString;
1110
+ patches: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1111
+ }, "strip", z.ZodTypeAny, {
1112
+ schemaSha: string;
1113
+ baseSha: string;
1114
+ patches?: string[] | undefined;
1115
+ }, {
1116
+ schemaSha: string;
1117
+ baseSha: string;
1118
+ patches?: string[] | undefined;
1119
+ }>>;
1120
+ cookies: {
1121
+ val_session: z.ZodOptional<z.ZodString>;
1122
+ };
1123
+ };
1124
+ res: z.ZodUnion<[z.ZodObject<{
1125
+ status: z.ZodLiteral<401>;
1126
+ json: z.ZodObject<{
1127
+ message: z.ZodString;
1128
+ }, "strip", z.ZodTypeAny, {
1129
+ message: string;
1130
+ }, {
1131
+ message: string;
1132
+ }>;
1133
+ }, "strip", z.ZodTypeAny, {
1134
+ status: 401;
1135
+ json: {
1136
+ message: string;
1137
+ };
1138
+ }, {
1139
+ status: 401;
1140
+ json: {
1141
+ message: string;
1142
+ };
1143
+ }>, z.ZodObject<{
1144
+ status: z.ZodLiteral<500>;
1145
+ json: z.ZodObject<{
1146
+ message: z.ZodString;
1147
+ }, "strip", z.ZodTypeAny, {
1148
+ message: string;
1149
+ }, {
1150
+ message: string;
1151
+ }>;
1152
+ }, "strip", z.ZodTypeAny, {
1153
+ status: 500;
1154
+ json: {
1155
+ message: string;
1156
+ };
1157
+ }, {
1158
+ status: 500;
1159
+ json: {
1160
+ message: string;
1161
+ };
1162
+ }>, z.ZodObject<{
1163
+ status: z.ZodLiteral<200>;
1164
+ json: z.ZodUnion<[z.ZodObject<{
1165
+ type: z.ZodUnion<[z.ZodLiteral<"request-again">, z.ZodLiteral<"no-change">, z.ZodLiteral<"did-change">]>;
1166
+ baseSha: z.ZodString;
1167
+ schemaSha: z.ZodString;
1168
+ patches: z.ZodArray<z.ZodEffects<z.ZodString, PatchId, string>, "many">;
1169
+ config: z.ZodObject<{
1170
+ project: z.ZodOptional<z.ZodString>;
1171
+ root: z.ZodOptional<z.ZodString>;
1172
+ files: z.ZodOptional<z.ZodObject<{
1173
+ directory: z.ZodString;
1174
+ }, "strip", z.ZodTypeAny, {
1175
+ directory: string;
1176
+ }, {
1177
+ directory: string;
1178
+ }>>;
1179
+ gitCommit: z.ZodOptional<z.ZodString>;
1180
+ gitBranch: z.ZodOptional<z.ZodString>;
1181
+ }, "strip", z.ZodTypeAny, {
1182
+ project?: string | undefined;
1183
+ root?: string | undefined;
1184
+ files?: {
1185
+ directory: string;
1186
+ } | undefined;
1187
+ gitCommit?: string | undefined;
1188
+ gitBranch?: string | undefined;
1189
+ }, {
1190
+ project?: string | undefined;
1191
+ root?: string | undefined;
1192
+ files?: {
1193
+ directory: string;
1194
+ } | undefined;
1195
+ gitCommit?: string | undefined;
1196
+ gitBranch?: string | undefined;
1197
+ }>;
1198
+ }, "strip", z.ZodTypeAny, {
1199
+ type: "request-again" | "no-change" | "did-change";
1200
+ schemaSha: string;
1201
+ baseSha: string;
1202
+ patches: PatchId[];
1203
+ config: {
1204
+ project?: string | undefined;
1205
+ root?: string | undefined;
1206
+ files?: {
1207
+ directory: string;
1208
+ } | undefined;
1209
+ gitCommit?: string | undefined;
1210
+ gitBranch?: string | undefined;
1211
+ };
1212
+ }, {
1213
+ type: "request-again" | "no-change" | "did-change";
1214
+ schemaSha: string;
1215
+ baseSha: string;
1216
+ patches: string[];
1217
+ config: {
1218
+ project?: string | undefined;
1219
+ root?: string | undefined;
1220
+ files?: {
1221
+ directory: string;
1222
+ } | undefined;
1223
+ gitCommit?: string | undefined;
1224
+ gitBranch?: string | undefined;
1225
+ };
1226
+ }>, z.ZodObject<{
1227
+ type: z.ZodLiteral<"use-websocket">;
1228
+ url: z.ZodString;
1229
+ nonce: z.ZodString;
1230
+ baseSha: z.ZodString;
1231
+ schemaSha: z.ZodString;
1232
+ commitSha: z.ZodString;
1233
+ patches: z.ZodArray<z.ZodEffects<z.ZodString, PatchId, string>, "many">;
1234
+ config: z.ZodObject<{
1235
+ project: z.ZodOptional<z.ZodString>;
1236
+ root: z.ZodOptional<z.ZodString>;
1237
+ files: z.ZodOptional<z.ZodObject<{
1238
+ directory: z.ZodString;
1239
+ }, "strip", z.ZodTypeAny, {
1240
+ directory: string;
1241
+ }, {
1242
+ directory: string;
1243
+ }>>;
1244
+ gitCommit: z.ZodOptional<z.ZodString>;
1245
+ gitBranch: z.ZodOptional<z.ZodString>;
1246
+ }, "strip", z.ZodTypeAny, {
1247
+ project?: string | undefined;
1248
+ root?: string | undefined;
1249
+ files?: {
1250
+ directory: string;
1251
+ } | undefined;
1252
+ gitCommit?: string | undefined;
1253
+ gitBranch?: string | undefined;
1254
+ }, {
1255
+ project?: string | undefined;
1256
+ root?: string | undefined;
1257
+ files?: {
1258
+ directory: string;
1259
+ } | undefined;
1260
+ gitCommit?: string | undefined;
1261
+ gitBranch?: string | undefined;
1262
+ }>;
1263
+ }, "strip", z.ZodTypeAny, {
1264
+ type: "use-websocket";
1265
+ schemaSha: string;
1266
+ baseSha: string;
1267
+ patches: PatchId[];
1268
+ config: {
1269
+ project?: string | undefined;
1270
+ root?: string | undefined;
1271
+ files?: {
1272
+ directory: string;
1273
+ } | undefined;
1274
+ gitCommit?: string | undefined;
1275
+ gitBranch?: string | undefined;
1276
+ };
1277
+ url: string;
1278
+ nonce: string;
1279
+ commitSha: string;
1280
+ }, {
1281
+ type: "use-websocket";
1282
+ schemaSha: string;
1283
+ baseSha: string;
1284
+ patches: string[];
1285
+ config: {
1286
+ project?: string | undefined;
1287
+ root?: string | undefined;
1288
+ files?: {
1289
+ directory: string;
1290
+ } | undefined;
1291
+ gitCommit?: string | undefined;
1292
+ gitBranch?: string | undefined;
1293
+ };
1294
+ url: string;
1295
+ nonce: string;
1296
+ commitSha: string;
1297
+ }>]>;
1298
+ }, "strip", z.ZodTypeAny, {
1299
+ status: 200;
1300
+ json: {
1301
+ type: "request-again" | "no-change" | "did-change";
1302
+ schemaSha: string;
1303
+ baseSha: string;
1304
+ patches: PatchId[];
1305
+ config: {
1306
+ project?: string | undefined;
1307
+ root?: string | undefined;
1308
+ files?: {
1309
+ directory: string;
1310
+ } | undefined;
1311
+ gitCommit?: string | undefined;
1312
+ gitBranch?: string | undefined;
1313
+ };
1314
+ } | {
1315
+ type: "use-websocket";
1316
+ schemaSha: string;
1317
+ baseSha: string;
1318
+ patches: PatchId[];
1319
+ config: {
1320
+ project?: string | undefined;
1321
+ root?: string | undefined;
1322
+ files?: {
1323
+ directory: string;
1324
+ } | undefined;
1325
+ gitCommit?: string | undefined;
1326
+ gitBranch?: string | undefined;
1327
+ };
1328
+ url: string;
1329
+ nonce: string;
1330
+ commitSha: string;
1331
+ };
1332
+ }, {
1333
+ status: 200;
1334
+ json: {
1335
+ type: "request-again" | "no-change" | "did-change";
1336
+ schemaSha: string;
1337
+ baseSha: string;
1338
+ patches: string[];
1339
+ config: {
1340
+ project?: string | undefined;
1341
+ root?: string | undefined;
1342
+ files?: {
1343
+ directory: string;
1344
+ } | undefined;
1345
+ gitCommit?: string | undefined;
1346
+ gitBranch?: string | undefined;
1347
+ };
1348
+ } | {
1349
+ type: "use-websocket";
1350
+ schemaSha: string;
1351
+ baseSha: string;
1352
+ patches: string[];
1353
+ config: {
1354
+ project?: string | undefined;
1355
+ root?: string | undefined;
1356
+ files?: {
1357
+ directory: string;
1358
+ } | undefined;
1359
+ gitCommit?: string | undefined;
1360
+ gitBranch?: string | undefined;
1361
+ };
1362
+ url: string;
1363
+ nonce: string;
1364
+ commitSha: string;
1365
+ };
1366
+ }>]>;
1367
+ };
1368
+ };
792
1369
  "/patches/~": {
793
1370
  DELETE: {
794
1371
  req: {
@@ -1173,6 +1750,44 @@ export declare const Api: {
1173
1750
  path?: string | undefined;
1174
1751
  }[];
1175
1752
  };
1753
+ }>, z.ZodObject<{
1754
+ status: z.ZodLiteral<500>;
1755
+ json: z.ZodObject<{
1756
+ message: z.ZodString;
1757
+ details: z.ZodArray<z.ZodObject<{
1758
+ message: z.ZodString;
1759
+ }, "strip", z.ZodTypeAny, {
1760
+ message: string;
1761
+ }, {
1762
+ message: string;
1763
+ }>, "many">;
1764
+ }, "strip", z.ZodTypeAny, {
1765
+ message: string;
1766
+ details: {
1767
+ message: string;
1768
+ }[];
1769
+ }, {
1770
+ message: string;
1771
+ details: {
1772
+ message: string;
1773
+ }[];
1774
+ }>;
1775
+ }, "strip", z.ZodTypeAny, {
1776
+ status: 500;
1777
+ json: {
1778
+ message: string;
1779
+ details: {
1780
+ message: string;
1781
+ }[];
1782
+ };
1783
+ }, {
1784
+ status: 500;
1785
+ json: {
1786
+ message: string;
1787
+ details: {
1788
+ message: string;
1789
+ }[];
1790
+ };
1176
1791
  }>, z.ZodObject<{
1177
1792
  status: z.ZodLiteral<200>;
1178
1793
  json: z.ZodObject<{
@@ -1200,13 +1815,13 @@ export declare const Api: {
1200
1815
  }>]>;
1201
1816
  };
1202
1817
  };
1203
- "/tree/~": {
1818
+ "/sources": {
1204
1819
  PUT: {
1205
1820
  req: {
1206
1821
  path: z.ZodOptional<z.ZodString>;
1207
1822
  body: z.ZodOptional<z.ZodObject<{
1208
1823
  patchIds: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, PatchId, string>, "many">>;
1209
- addPatch: z.ZodOptional<z.ZodObject<{
1824
+ addPatches: z.ZodOptional<z.ZodArray<z.ZodObject<{
1210
1825
  path: z.ZodEffects<z.ZodString, ModuleFilePath, string>;
1211
1826
  patch: z.ZodType<import("@valbuild/core/patch").Patch, z.ZodTypeDef, import("@valbuild/core/patch").Patch>;
1212
1827
  }, "strip", z.ZodTypeAny, {
@@ -1217,21 +1832,21 @@ export declare const Api: {
1217
1832
  }, {
1218
1833
  path: string;
1219
1834
  patch: import("@valbuild/core/patch").Patch;
1220
- }>>;
1835
+ }>, "many">>;
1221
1836
  }, "strip", z.ZodTypeAny, {
1222
1837
  patchIds?: PatchId[] | undefined;
1223
- addPatch?: {
1838
+ addPatches?: {
1224
1839
  path: string & {
1225
1840
  VAL_DATA_TYPE: "ModuleFilePath";
1226
1841
  };
1227
1842
  patch: import("@valbuild/core/patch").Patch;
1228
- } | undefined;
1843
+ }[] | undefined;
1229
1844
  }, {
1230
1845
  patchIds?: string[] | undefined;
1231
- addPatch?: {
1846
+ addPatches?: {
1232
1847
  path: string;
1233
1848
  patch: import("@valbuild/core/patch").Patch;
1234
- } | undefined;
1849
+ }[] | undefined;
1235
1850
  }>>;
1236
1851
  query: {
1237
1852
  validate_all: z.ZodOptional<z.ZodBoolean>;
@@ -1280,6 +1895,25 @@ export declare const Api: {
1280
1895
  json: {
1281
1896
  message: string;
1282
1897
  };
1898
+ }>, z.ZodObject<{
1899
+ status: z.ZodLiteral<409>;
1900
+ json: z.ZodObject<{
1901
+ message: z.ZodString;
1902
+ }, "strip", z.ZodTypeAny, {
1903
+ message: string;
1904
+ }, {
1905
+ message: string;
1906
+ }>;
1907
+ }, "strip", z.ZodTypeAny, {
1908
+ status: 409;
1909
+ json: {
1910
+ message: string;
1911
+ };
1912
+ }, {
1913
+ status: 409;
1914
+ json: {
1915
+ message: string;
1916
+ };
1283
1917
  }>, z.ZodObject<{
1284
1918
  status: z.ZodLiteral<500>;
1285
1919
  json: z.ZodObject<{
@@ -1302,62 +1936,42 @@ export declare const Api: {
1302
1936
  }>]>;
1303
1937
  }, "strip", z.ZodTypeAny, {
1304
1938
  message: string;
1305
- details: ({
1306
- message: string;
1307
- } | {
1308
- message: string;
1309
- path?: ModuleFilePath | undefined;
1310
- }[]) & ({
1939
+ details: {
1311
1940
  message: string;
1312
1941
  } | {
1313
1942
  message: string;
1314
1943
  path?: ModuleFilePath | undefined;
1315
- }[] | undefined);
1944
+ }[];
1316
1945
  }, {
1317
1946
  message: string;
1318
- details: ({
1319
- message: string;
1320
- } | {
1321
- message: string;
1322
- path?: string | undefined;
1323
- }[]) & ({
1947
+ details: {
1324
1948
  message: string;
1325
1949
  } | {
1326
1950
  message: string;
1327
1951
  path?: string | undefined;
1328
- }[] | undefined);
1952
+ }[];
1329
1953
  }>;
1330
1954
  }, "strip", z.ZodTypeAny, {
1331
1955
  status: 500;
1332
1956
  json: {
1333
1957
  message: string;
1334
- details: ({
1335
- message: string;
1336
- } | {
1337
- message: string;
1338
- path?: ModuleFilePath | undefined;
1339
- }[]) & ({
1958
+ details: {
1340
1959
  message: string;
1341
1960
  } | {
1342
1961
  message: string;
1343
1962
  path?: ModuleFilePath | undefined;
1344
- }[] | undefined);
1963
+ }[];
1345
1964
  };
1346
1965
  }, {
1347
1966
  status: 500;
1348
1967
  json: {
1349
1968
  message: string;
1350
- details: ({
1351
- message: string;
1352
- } | {
1353
- message: string;
1354
- path?: string | undefined;
1355
- }[]) & ({
1969
+ details: {
1356
1970
  message: string;
1357
1971
  } | {
1358
1972
  message: string;
1359
1973
  path?: string | undefined;
1360
- }[] | undefined);
1974
+ }[];
1361
1975
  };
1362
1976
  }>, z.ZodObject<{
1363
1977
  status: z.ZodLiteral<400>;
@@ -1409,6 +2023,79 @@ export declare const Api: {
1409
2023
  json: z.ZodObject<{
1410
2024
  type: z.ZodLiteral<"patch-error">;
1411
2025
  message: z.ZodString;
2026
+ schemaSha: z.ZodString;
2027
+ modules: z.ZodRecord<z.ZodEffects<z.ZodString, ModuleFilePath, string>, z.ZodObject<{
2028
+ source: z.ZodAny;
2029
+ patches: z.ZodOptional<z.ZodObject<{
2030
+ applied: z.ZodArray<z.ZodEffects<z.ZodString, PatchId, string>, "many">;
2031
+ skipped: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, PatchId, string>, "many">>;
2032
+ errors: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, PatchId, string>, z.ZodObject<{
2033
+ message: z.ZodString;
2034
+ }, "strip", z.ZodTypeAny, {
2035
+ message: string;
2036
+ }, {
2037
+ message: string;
2038
+ }>>>;
2039
+ }, "strip", z.ZodTypeAny, {
2040
+ applied: PatchId[];
2041
+ errors?: Partial<Record<PatchId, {
2042
+ message: string;
2043
+ }>> | undefined;
2044
+ skipped?: PatchId[] | undefined;
2045
+ }, {
2046
+ applied: string[];
2047
+ errors?: Record<string, {
2048
+ message: string;
2049
+ }> | undefined;
2050
+ skipped?: string[] | undefined;
2051
+ }>>;
2052
+ validationErrors: z.ZodOptional<z.ZodRecord<z.ZodType<import("@valbuild/core").SourcePath, z.ZodTypeDef, unknown>, z.ZodArray<z.ZodObject<{
2053
+ message: z.ZodString;
2054
+ value: z.ZodOptional<z.ZodUnknown>;
2055
+ fatal: z.ZodOptional<z.ZodBoolean>;
2056
+ fixes: z.ZodOptional<z.ZodArray<z.ZodType<"image:add-metadata" | "image:replace-metadata" | "file:add-metadata" | "file:check-metadata" | "fix:deprecated-richtext", z.ZodTypeDef, "image:add-metadata" | "image:replace-metadata" | "file:add-metadata" | "file:check-metadata" | "fix:deprecated-richtext">, "many">>;
2057
+ }, "strip", z.ZodTypeAny, {
2058
+ message: string;
2059
+ value?: unknown;
2060
+ fatal?: boolean | undefined;
2061
+ fixes?: ("image:add-metadata" | "image:replace-metadata" | "file:add-metadata" | "file:check-metadata" | "fix:deprecated-richtext")[] | undefined;
2062
+ }, {
2063
+ message: string;
2064
+ value?: unknown;
2065
+ fatal?: boolean | undefined;
2066
+ fixes?: ("image:add-metadata" | "image:replace-metadata" | "file:add-metadata" | "file:check-metadata" | "fix:deprecated-richtext")[] | undefined;
2067
+ }>, "many">>>;
2068
+ }, "strip", z.ZodTypeAny, {
2069
+ patches?: {
2070
+ applied: PatchId[];
2071
+ errors?: Partial<Record<PatchId, {
2072
+ message: string;
2073
+ }>> | undefined;
2074
+ skipped?: PatchId[] | undefined;
2075
+ } | undefined;
2076
+ source?: any;
2077
+ validationErrors?: Partial<Record<import("@valbuild/core").SourcePath, {
2078
+ message: string;
2079
+ value?: unknown;
2080
+ fatal?: boolean | undefined;
2081
+ fixes?: ("image:add-metadata" | "image:replace-metadata" | "file:add-metadata" | "file:check-metadata" | "fix:deprecated-richtext")[] | undefined;
2082
+ }[]>> | undefined;
2083
+ }, {
2084
+ patches?: {
2085
+ applied: string[];
2086
+ errors?: Record<string, {
2087
+ message: string;
2088
+ }> | undefined;
2089
+ skipped?: string[] | undefined;
2090
+ } | undefined;
2091
+ source?: any;
2092
+ validationErrors?: Record<unknown, {
2093
+ message: string;
2094
+ value?: unknown;
2095
+ fatal?: boolean | undefined;
2096
+ fixes?: ("image:add-metadata" | "image:replace-metadata" | "file:add-metadata" | "file:check-metadata" | "fix:deprecated-richtext")[] | undefined;
2097
+ }[]> | undefined;
2098
+ }>>;
1412
2099
  errors: z.ZodRecord<z.ZodEffects<z.ZodString, ModuleFilePath, string>, z.ZodArray<z.ZodObject<{
1413
2100
  patchId: z.ZodEffects<z.ZodString, PatchId, string>;
1414
2101
  skipped: z.ZodBoolean;
@@ -1423,67 +2110,135 @@ export declare const Api: {
1423
2110
  error: {
1424
2111
  message: string;
1425
2112
  };
2113
+ skipped: boolean;
1426
2114
  patchId: string & {
1427
2115
  VAL_DATA_TYPE: "PatchId";
1428
2116
  };
1429
- skipped: boolean;
1430
2117
  }, {
1431
2118
  error: {
1432
2119
  message: string;
1433
2120
  };
1434
- patchId: string;
1435
2121
  skipped: boolean;
2122
+ patchId: string;
1436
2123
  }>, "many">>;
1437
2124
  }, "strip", z.ZodTypeAny, {
1438
2125
  message: string;
1439
2126
  type: "patch-error";
2127
+ schemaSha: string;
1440
2128
  errors: Partial<Record<ModuleFilePath, {
1441
2129
  error: {
1442
2130
  message: string;
1443
2131
  };
2132
+ skipped: boolean;
1444
2133
  patchId: string & {
1445
2134
  VAL_DATA_TYPE: "PatchId";
1446
2135
  };
1447
- skipped: boolean;
1448
2136
  }[]>>;
2137
+ modules: Partial<Record<ModuleFilePath, {
2138
+ patches?: {
2139
+ applied: PatchId[];
2140
+ errors?: Partial<Record<PatchId, {
2141
+ message: string;
2142
+ }>> | undefined;
2143
+ skipped?: PatchId[] | undefined;
2144
+ } | undefined;
2145
+ source?: any;
2146
+ validationErrors?: Partial<Record<import("@valbuild/core").SourcePath, {
2147
+ message: string;
2148
+ value?: unknown;
2149
+ fatal?: boolean | undefined;
2150
+ fixes?: ("image:add-metadata" | "image:replace-metadata" | "file:add-metadata" | "file:check-metadata" | "fix:deprecated-richtext")[] | undefined;
2151
+ }[]>> | undefined;
2152
+ }>>;
1449
2153
  }, {
1450
2154
  message: string;
1451
2155
  type: "patch-error";
2156
+ schemaSha: string;
1452
2157
  errors: Record<string, {
1453
2158
  error: {
1454
2159
  message: string;
1455
2160
  };
1456
- patchId: string;
1457
2161
  skipped: boolean;
2162
+ patchId: string;
1458
2163
  }[]>;
2164
+ modules: Record<string, {
2165
+ patches?: {
2166
+ applied: string[];
2167
+ errors?: Record<string, {
2168
+ message: string;
2169
+ }> | undefined;
2170
+ skipped?: string[] | undefined;
2171
+ } | undefined;
2172
+ source?: any;
2173
+ validationErrors?: Record<unknown, {
2174
+ message: string;
2175
+ value?: unknown;
2176
+ fatal?: boolean | undefined;
2177
+ fixes?: ("image:add-metadata" | "image:replace-metadata" | "file:add-metadata" | "file:check-metadata" | "fix:deprecated-richtext")[] | undefined;
2178
+ }[]> | undefined;
2179
+ }>;
1459
2180
  }>;
1460
2181
  }, "strip", z.ZodTypeAny, {
1461
2182
  status: 400;
1462
2183
  json: {
1463
2184
  message: string;
1464
2185
  type: "patch-error";
2186
+ schemaSha: string;
1465
2187
  errors: Partial<Record<ModuleFilePath, {
1466
2188
  error: {
1467
2189
  message: string;
1468
2190
  };
2191
+ skipped: boolean;
1469
2192
  patchId: string & {
1470
2193
  VAL_DATA_TYPE: "PatchId";
1471
2194
  };
1472
- skipped: boolean;
1473
2195
  }[]>>;
2196
+ modules: Partial<Record<ModuleFilePath, {
2197
+ patches?: {
2198
+ applied: PatchId[];
2199
+ errors?: Partial<Record<PatchId, {
2200
+ message: string;
2201
+ }>> | undefined;
2202
+ skipped?: PatchId[] | undefined;
2203
+ } | undefined;
2204
+ source?: any;
2205
+ validationErrors?: Partial<Record<import("@valbuild/core").SourcePath, {
2206
+ message: string;
2207
+ value?: unknown;
2208
+ fatal?: boolean | undefined;
2209
+ fixes?: ("image:add-metadata" | "image:replace-metadata" | "file:add-metadata" | "file:check-metadata" | "fix:deprecated-richtext")[] | undefined;
2210
+ }[]>> | undefined;
2211
+ }>>;
1474
2212
  };
1475
2213
  }, {
1476
2214
  status: 400;
1477
2215
  json: {
1478
2216
  message: string;
1479
2217
  type: "patch-error";
2218
+ schemaSha: string;
1480
2219
  errors: Record<string, {
1481
2220
  error: {
1482
2221
  message: string;
1483
2222
  };
1484
- patchId: string;
1485
2223
  skipped: boolean;
2224
+ patchId: string;
1486
2225
  }[]>;
2226
+ modules: Record<string, {
2227
+ patches?: {
2228
+ applied: string[];
2229
+ errors?: Record<string, {
2230
+ message: string;
2231
+ }> | undefined;
2232
+ skipped?: string[] | undefined;
2233
+ } | undefined;
2234
+ source?: any;
2235
+ validationErrors?: Record<unknown, {
2236
+ message: string;
2237
+ value?: unknown;
2238
+ fatal?: boolean | undefined;
2239
+ fixes?: ("image:add-metadata" | "image:replace-metadata" | "file:add-metadata" | "file:check-metadata" | "fix:deprecated-richtext")[] | undefined;
2240
+ }[]> | undefined;
2241
+ }>;
1487
2242
  };
1488
2243
  }>, z.ZodObject<{
1489
2244
  status: z.ZodLiteral<200>;
@@ -1503,16 +2258,16 @@ export declare const Api: {
1503
2258
  }>>>;
1504
2259
  }, "strip", z.ZodTypeAny, {
1505
2260
  applied: PatchId[];
1506
- skipped?: PatchId[] | undefined;
1507
2261
  errors?: Partial<Record<PatchId, {
1508
2262
  message: string;
1509
2263
  }>> | undefined;
2264
+ skipped?: PatchId[] | undefined;
1510
2265
  }, {
1511
2266
  applied: string[];
1512
- skipped?: string[] | undefined;
1513
2267
  errors?: Record<string, {
1514
2268
  message: string;
1515
2269
  }> | undefined;
2270
+ skipped?: string[] | undefined;
1516
2271
  }>>;
1517
2272
  validationErrors: z.ZodOptional<z.ZodRecord<z.ZodType<import("@valbuild/core").SourcePath, z.ZodTypeDef, unknown>, z.ZodArray<z.ZodObject<{
1518
2273
  message: z.ZodString;
@@ -1531,14 +2286,14 @@ export declare const Api: {
1531
2286
  fixes?: ("image:add-metadata" | "image:replace-metadata" | "file:add-metadata" | "file:check-metadata" | "fix:deprecated-richtext")[] | undefined;
1532
2287
  }>, "many">>>;
1533
2288
  }, "strip", z.ZodTypeAny, {
1534
- source?: any;
1535
2289
  patches?: {
1536
2290
  applied: PatchId[];
1537
- skipped?: PatchId[] | undefined;
1538
2291
  errors?: Partial<Record<PatchId, {
1539
2292
  message: string;
1540
2293
  }>> | undefined;
2294
+ skipped?: PatchId[] | undefined;
1541
2295
  } | undefined;
2296
+ source?: any;
1542
2297
  validationErrors?: Partial<Record<import("@valbuild/core").SourcePath, {
1543
2298
  message: string;
1544
2299
  value?: unknown;
@@ -1546,14 +2301,14 @@ export declare const Api: {
1546
2301
  fixes?: ("image:add-metadata" | "image:replace-metadata" | "file:add-metadata" | "file:check-metadata" | "fix:deprecated-richtext")[] | undefined;
1547
2302
  }[]>> | undefined;
1548
2303
  }, {
1549
- source?: any;
1550
2304
  patches?: {
1551
2305
  applied: string[];
1552
- skipped?: string[] | undefined;
1553
2306
  errors?: Record<string, {
1554
2307
  message: string;
1555
2308
  }> | undefined;
2309
+ skipped?: string[] | undefined;
1556
2310
  } | undefined;
2311
+ source?: any;
1557
2312
  validationErrors?: Record<unknown, {
1558
2313
  message: string;
1559
2314
  value?: unknown;
@@ -1561,18 +2316,18 @@ export declare const Api: {
1561
2316
  fixes?: ("image:add-metadata" | "image:replace-metadata" | "file:add-metadata" | "file:check-metadata" | "fix:deprecated-richtext")[] | undefined;
1562
2317
  }[]> | undefined;
1563
2318
  }>>;
1564
- newPatchId: z.ZodOptional<z.ZodEffects<z.ZodString, PatchId, string>>;
2319
+ newPatchIds: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, PatchId, string>, "many">>;
1565
2320
  }, "strip", z.ZodTypeAny, {
1566
2321
  schemaSha: string;
1567
2322
  modules: Partial<Record<ModuleFilePath, {
1568
- source?: any;
1569
2323
  patches?: {
1570
2324
  applied: PatchId[];
1571
- skipped?: PatchId[] | undefined;
1572
2325
  errors?: Partial<Record<PatchId, {
1573
2326
  message: string;
1574
2327
  }>> | undefined;
2328
+ skipped?: PatchId[] | undefined;
1575
2329
  } | undefined;
2330
+ source?: any;
1576
2331
  validationErrors?: Partial<Record<import("@valbuild/core").SourcePath, {
1577
2332
  message: string;
1578
2333
  value?: unknown;
@@ -1580,18 +2335,18 @@ export declare const Api: {
1580
2335
  fixes?: ("image:add-metadata" | "image:replace-metadata" | "file:add-metadata" | "file:check-metadata" | "fix:deprecated-richtext")[] | undefined;
1581
2336
  }[]>> | undefined;
1582
2337
  }>>;
1583
- newPatchId?: PatchId | undefined;
2338
+ newPatchIds?: PatchId[] | undefined;
1584
2339
  }, {
1585
2340
  schemaSha: string;
1586
2341
  modules: Record<string, {
1587
- source?: any;
1588
2342
  patches?: {
1589
2343
  applied: string[];
1590
- skipped?: string[] | undefined;
1591
2344
  errors?: Record<string, {
1592
2345
  message: string;
1593
2346
  }> | undefined;
2347
+ skipped?: string[] | undefined;
1594
2348
  } | undefined;
2349
+ source?: any;
1595
2350
  validationErrors?: Record<unknown, {
1596
2351
  message: string;
1597
2352
  value?: unknown;
@@ -1599,21 +2354,21 @@ export declare const Api: {
1599
2354
  fixes?: ("image:add-metadata" | "image:replace-metadata" | "file:add-metadata" | "file:check-metadata" | "fix:deprecated-richtext")[] | undefined;
1600
2355
  }[]> | undefined;
1601
2356
  }>;
1602
- newPatchId?: string | undefined;
2357
+ newPatchIds?: string[] | undefined;
1603
2358
  }>;
1604
2359
  }, "strip", z.ZodTypeAny, {
1605
2360
  status: 200;
1606
2361
  json: {
1607
2362
  schemaSha: string;
1608
2363
  modules: Partial<Record<ModuleFilePath, {
1609
- source?: any;
1610
2364
  patches?: {
1611
2365
  applied: PatchId[];
1612
- skipped?: PatchId[] | undefined;
1613
2366
  errors?: Partial<Record<PatchId, {
1614
2367
  message: string;
1615
2368
  }>> | undefined;
2369
+ skipped?: PatchId[] | undefined;
1616
2370
  } | undefined;
2371
+ source?: any;
1617
2372
  validationErrors?: Partial<Record<import("@valbuild/core").SourcePath, {
1618
2373
  message: string;
1619
2374
  value?: unknown;
@@ -1621,21 +2376,21 @@ export declare const Api: {
1621
2376
  fixes?: ("image:add-metadata" | "image:replace-metadata" | "file:add-metadata" | "file:check-metadata" | "fix:deprecated-richtext")[] | undefined;
1622
2377
  }[]>> | undefined;
1623
2378
  }>>;
1624
- newPatchId?: PatchId | undefined;
2379
+ newPatchIds?: PatchId[] | undefined;
1625
2380
  };
1626
2381
  }, {
1627
2382
  status: 200;
1628
2383
  json: {
1629
2384
  schemaSha: string;
1630
2385
  modules: Record<string, {
1631
- source?: any;
1632
2386
  patches?: {
1633
2387
  applied: string[];
1634
- skipped?: string[] | undefined;
1635
2388
  errors?: Record<string, {
1636
2389
  message: string;
1637
2390
  }> | undefined;
2391
+ skipped?: string[] | undefined;
1638
2392
  } | undefined;
2393
+ source?: any;
1639
2394
  validationErrors?: Record<unknown, {
1640
2395
  message: string;
1641
2396
  value?: unknown;
@@ -1643,7 +2398,7 @@ export declare const Api: {
1643
2398
  fixes?: ("image:add-metadata" | "image:replace-metadata" | "file:add-metadata" | "file:check-metadata" | "fix:deprecated-richtext")[] | undefined;
1644
2399
  }[]> | undefined;
1645
2400
  }>;
1646
- newPatchId?: string | undefined;
2401
+ newPatchIds?: string[] | undefined;
1647
2402
  };
1648
2403
  }>]>;
1649
2404
  };
@@ -1690,6 +2445,30 @@ export declare const Api: {
1690
2445
  }, {
1691
2446
  status: 200;
1692
2447
  json: {};
2448
+ }>, z.ZodObject<{
2449
+ status: z.ZodLiteral<409>;
2450
+ json: z.ZodObject<{
2451
+ message: z.ZodString;
2452
+ isNotFastForward: z.ZodLiteral<true>;
2453
+ }, "strip", z.ZodTypeAny, {
2454
+ message: string;
2455
+ isNotFastForward: true;
2456
+ }, {
2457
+ message: string;
2458
+ isNotFastForward: true;
2459
+ }>;
2460
+ }, "strip", z.ZodTypeAny, {
2461
+ status: 409;
2462
+ json: {
2463
+ message: string;
2464
+ isNotFastForward: true;
2465
+ };
2466
+ }, {
2467
+ status: 409;
2468
+ json: {
2469
+ message: string;
2470
+ isNotFastForward: true;
2471
+ };
1693
2472
  }>, z.ZodObject<{
1694
2473
  status: z.ZodLiteral<400>;
1695
2474
  json: z.ZodObject<{
@@ -1732,16 +2511,7 @@ export declare const Api: {
1732
2511
  }>, "many">]>;
1733
2512
  }, "strip", z.ZodTypeAny, {
1734
2513
  message: string;
1735
- details: ({
1736
- message: string;
1737
- }[] | {
1738
- sourceFilePatchErrors: Partial<Record<ModuleFilePath, {
1739
- message: string;
1740
- }[]>>;
1741
- binaryFilePatchErrors: Record<string, {
1742
- message: string;
1743
- }>;
1744
- }) & ({
2514
+ details: {
1745
2515
  message: string;
1746
2516
  }[] | {
1747
2517
  sourceFilePatchErrors: Partial<Record<ModuleFilePath, {
@@ -1750,19 +2520,10 @@ export declare const Api: {
1750
2520
  binaryFilePatchErrors: Record<string, {
1751
2521
  message: string;
1752
2522
  }>;
1753
- } | undefined);
2523
+ };
1754
2524
  }, {
1755
2525
  message: string;
1756
- details: ({
1757
- message: string;
1758
- }[] | {
1759
- sourceFilePatchErrors: Record<string, {
1760
- message: string;
1761
- }[]>;
1762
- binaryFilePatchErrors: Record<string, {
1763
- message: string;
1764
- }>;
1765
- }) & ({
2526
+ details: {
1766
2527
  message: string;
1767
2528
  }[] | {
1768
2529
  sourceFilePatchErrors: Record<string, {
@@ -1771,22 +2532,13 @@ export declare const Api: {
1771
2532
  binaryFilePatchErrors: Record<string, {
1772
2533
  message: string;
1773
2534
  }>;
1774
- } | undefined);
2535
+ };
1775
2536
  }>;
1776
2537
  }, "strip", z.ZodTypeAny, {
1777
2538
  status: 400;
1778
2539
  json: {
1779
2540
  message: string;
1780
- details: ({
1781
- message: string;
1782
- }[] | {
1783
- sourceFilePatchErrors: Partial<Record<ModuleFilePath, {
1784
- message: string;
1785
- }[]>>;
1786
- binaryFilePatchErrors: Record<string, {
1787
- message: string;
1788
- }>;
1789
- }) & ({
2541
+ details: {
1790
2542
  message: string;
1791
2543
  }[] | {
1792
2544
  sourceFilePatchErrors: Partial<Record<ModuleFilePath, {
@@ -1795,22 +2547,13 @@ export declare const Api: {
1795
2547
  binaryFilePatchErrors: Record<string, {
1796
2548
  message: string;
1797
2549
  }>;
1798
- } | undefined);
2550
+ };
1799
2551
  };
1800
2552
  }, {
1801
2553
  status: 400;
1802
2554
  json: {
1803
2555
  message: string;
1804
- details: ({
1805
- message: string;
1806
- }[] | {
1807
- sourceFilePatchErrors: Record<string, {
1808
- message: string;
1809
- }[]>;
1810
- binaryFilePatchErrors: Record<string, {
1811
- message: string;
1812
- }>;
1813
- }) & ({
2556
+ details: {
1814
2557
  message: string;
1815
2558
  }[] | {
1816
2559
  sourceFilePatchErrors: Record<string, {
@@ -1819,7 +2562,7 @@ export declare const Api: {
1819
2562
  binaryFilePatchErrors: Record<string, {
1820
2563
  message: string;
1821
2564
  }>;
1822
- } | undefined);
2565
+ };
1823
2566
  };
1824
2567
  }>]>;
1825
2568
  };
@@ -1956,6 +2699,7 @@ export type ClientFetchErrors = {
1956
2699
  status: null;
1957
2700
  json: {
1958
2701
  type: "network_error";
2702
+ retryable: boolean;
1959
2703
  message: string;
1960
2704
  details: string;
1961
2705
  } | {