@valbuild/shared 0.67.1 → 0.68.1
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/dist/declarations/src/internal/ApiRoutes.d.ts +564 -349
- package/dist/declarations/src/internal/index.d.ts +1 -1
- package/dist/declarations/src/internal/richtext/conversion/remirrorTypes.d.ts +336 -12
- package/dist/declarations/src/internal/zod/Patch.d.ts +23 -0
- package/internal/dist/valbuild-shared-internal.cjs.dev.js +223 -622
- package/internal/dist/valbuild-shared-internal.cjs.prod.js +223 -622
- package/internal/dist/valbuild-shared-internal.esm.js +219 -622
- package/package.json +2 -2
- package/dist/declarations/src/internal/ValCache.d.ts +0 -49
@@ -1,6 +1,5 @@
|
|
1
1
|
import { z } from "zod";
|
2
|
-
import { type ModuleFilePath
|
3
|
-
declare const PatchId: z.ZodEffects<z.ZodString, PatchId, string>;
|
2
|
+
import { type ModuleFilePath } from "@valbuild/core";
|
4
3
|
declare const ModuleFilePath: z.ZodEffects<z.ZodString, ModuleFilePath, string>;
|
5
4
|
declare const cookies: z.ZodUnion<[z.ZodLiteral<"val_session">, z.ZodLiteral<"val_enable">, z.ZodLiteral<"val_state">]>;
|
6
5
|
type Cookies = z.infer<typeof cookies>;
|
@@ -1165,7 +1164,7 @@ export declare const Api: {
|
|
1165
1164
|
type: z.ZodUnion<[z.ZodLiteral<"request-again">, z.ZodLiteral<"no-change">, z.ZodLiteral<"did-change">]>;
|
1166
1165
|
baseSha: z.ZodString;
|
1167
1166
|
schemaSha: z.ZodString;
|
1168
|
-
patches: z.ZodArray<z.ZodEffects<z.ZodString, PatchId, string>, "many">;
|
1167
|
+
patches: z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">;
|
1169
1168
|
config: z.ZodObject<{
|
1170
1169
|
project: z.ZodOptional<z.ZodString>;
|
1171
1170
|
root: z.ZodOptional<z.ZodString>;
|
@@ -1199,7 +1198,7 @@ export declare const Api: {
|
|
1199
1198
|
type: "request-again" | "no-change" | "did-change";
|
1200
1199
|
schemaSha: string;
|
1201
1200
|
baseSha: string;
|
1202
|
-
patches: PatchId[];
|
1201
|
+
patches: import("@valbuild/core").PatchId[];
|
1203
1202
|
config: {
|
1204
1203
|
project?: string | undefined;
|
1205
1204
|
root?: string | undefined;
|
@@ -1230,7 +1229,7 @@ export declare const Api: {
|
|
1230
1229
|
baseSha: z.ZodString;
|
1231
1230
|
schemaSha: z.ZodString;
|
1232
1231
|
commitSha: z.ZodString;
|
1233
|
-
patches: z.ZodArray<z.ZodEffects<z.ZodString, PatchId, string>, "many">;
|
1232
|
+
patches: z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">;
|
1234
1233
|
config: z.ZodObject<{
|
1235
1234
|
project: z.ZodOptional<z.ZodString>;
|
1236
1235
|
root: z.ZodOptional<z.ZodString>;
|
@@ -1264,7 +1263,7 @@ export declare const Api: {
|
|
1264
1263
|
type: "use-websocket";
|
1265
1264
|
schemaSha: string;
|
1266
1265
|
baseSha: string;
|
1267
|
-
patches: PatchId[];
|
1266
|
+
patches: import("@valbuild/core").PatchId[];
|
1268
1267
|
config: {
|
1269
1268
|
project?: string | undefined;
|
1270
1269
|
root?: string | undefined;
|
@@ -1301,7 +1300,7 @@ export declare const Api: {
|
|
1301
1300
|
type: "request-again" | "no-change" | "did-change";
|
1302
1301
|
schemaSha: string;
|
1303
1302
|
baseSha: string;
|
1304
|
-
patches: PatchId[];
|
1303
|
+
patches: import("@valbuild/core").PatchId[];
|
1305
1304
|
config: {
|
1306
1305
|
project?: string | undefined;
|
1307
1306
|
root?: string | undefined;
|
@@ -1315,7 +1314,7 @@ export declare const Api: {
|
|
1315
1314
|
type: "use-websocket";
|
1316
1315
|
schemaSha: string;
|
1317
1316
|
baseSha: string;
|
1318
|
-
patches: PatchId[];
|
1317
|
+
patches: import("@valbuild/core").PatchId[];
|
1319
1318
|
config: {
|
1320
1319
|
project?: string | undefined;
|
1321
1320
|
root?: string | undefined;
|
@@ -1366,11 +1365,11 @@ export declare const Api: {
|
|
1366
1365
|
}>]>;
|
1367
1366
|
};
|
1368
1367
|
};
|
1369
|
-
"/patches
|
1368
|
+
"/patches": {
|
1370
1369
|
DELETE: {
|
1371
1370
|
req: {
|
1372
1371
|
query: {
|
1373
|
-
id: z.ZodArray<z.ZodEffects<z.ZodString, PatchId, string>, "many">;
|
1372
|
+
id: z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">;
|
1374
1373
|
};
|
1375
1374
|
cookies: {
|
1376
1375
|
val_session: z.ZodOptional<z.ZodString>;
|
@@ -1399,56 +1398,337 @@ export declare const Api: {
|
|
1399
1398
|
status: z.ZodLiteral<500>;
|
1400
1399
|
json: z.ZodObject<{
|
1401
1400
|
message: z.ZodString;
|
1402
|
-
|
1401
|
+
errors: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
1402
|
+
patchId: z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>;
|
1403
1403
|
message: z.ZodString;
|
1404
1404
|
}, "strip", z.ZodTypeAny, {
|
1405
1405
|
message: string;
|
1406
|
+
patchId: string & {
|
1407
|
+
VAL_DATA_TYPE: "PatchId";
|
1408
|
+
};
|
1406
1409
|
}, {
|
1407
1410
|
message: string;
|
1408
|
-
|
1411
|
+
patchId: string;
|
1412
|
+
}>, z.ZodObject<{
|
1413
|
+
parentPatchId: z.ZodString;
|
1414
|
+
message: z.ZodString;
|
1415
|
+
}, "strip", z.ZodTypeAny, {
|
1416
|
+
message: string;
|
1417
|
+
parentPatchId: string;
|
1418
|
+
}, {
|
1419
|
+
message: string;
|
1420
|
+
parentPatchId: string;
|
1421
|
+
}>]>, "many">;
|
1409
1422
|
}, "strip", z.ZodTypeAny, {
|
1410
1423
|
message: string;
|
1411
|
-
|
1424
|
+
errors: ({
|
1412
1425
|
message: string;
|
1413
|
-
|
1426
|
+
patchId: string & {
|
1427
|
+
VAL_DATA_TYPE: "PatchId";
|
1428
|
+
};
|
1429
|
+
} | {
|
1430
|
+
message: string;
|
1431
|
+
parentPatchId: string;
|
1432
|
+
})[];
|
1414
1433
|
}, {
|
1415
1434
|
message: string;
|
1416
|
-
|
1435
|
+
errors: ({
|
1417
1436
|
message: string;
|
1418
|
-
|
1437
|
+
patchId: string;
|
1438
|
+
} | {
|
1439
|
+
message: string;
|
1440
|
+
parentPatchId: string;
|
1441
|
+
})[];
|
1419
1442
|
}>;
|
1420
1443
|
}, "strip", z.ZodTypeAny, {
|
1421
1444
|
status: 500;
|
1422
1445
|
json: {
|
1423
1446
|
message: string;
|
1424
|
-
|
1447
|
+
errors: ({
|
1425
1448
|
message: string;
|
1426
|
-
|
1449
|
+
patchId: string & {
|
1450
|
+
VAL_DATA_TYPE: "PatchId";
|
1451
|
+
};
|
1452
|
+
} | {
|
1453
|
+
message: string;
|
1454
|
+
parentPatchId: string;
|
1455
|
+
})[];
|
1427
1456
|
};
|
1428
1457
|
}, {
|
1429
1458
|
status: 500;
|
1430
1459
|
json: {
|
1431
1460
|
message: string;
|
1432
|
-
|
1461
|
+
errors: ({
|
1433
1462
|
message: string;
|
1434
|
-
|
1463
|
+
patchId: string;
|
1464
|
+
} | {
|
1465
|
+
message: string;
|
1466
|
+
parentPatchId: string;
|
1467
|
+
})[];
|
1435
1468
|
};
|
1436
1469
|
}>, z.ZodObject<{
|
1437
1470
|
status: z.ZodLiteral<200>;
|
1438
|
-
json: z.ZodArray<z.ZodEffects<z.ZodString, PatchId, string>, "many">;
|
1471
|
+
json: z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">;
|
1439
1472
|
}, "strip", z.ZodTypeAny, {
|
1440
1473
|
status: 200;
|
1441
|
-
json: PatchId[];
|
1474
|
+
json: import("@valbuild/core").PatchId[];
|
1442
1475
|
}, {
|
1443
1476
|
status: 200;
|
1444
1477
|
json: string[];
|
1445
1478
|
}>]>;
|
1446
1479
|
};
|
1480
|
+
PUT: {
|
1481
|
+
req: {
|
1482
|
+
body: z.ZodObject<{
|
1483
|
+
parentRef: z.ZodUnion<[z.ZodObject<{
|
1484
|
+
type: z.ZodLiteral<"head">;
|
1485
|
+
headBaseSha: z.ZodString;
|
1486
|
+
}, "strip", z.ZodTypeAny, {
|
1487
|
+
type: "head";
|
1488
|
+
headBaseSha: string;
|
1489
|
+
}, {
|
1490
|
+
type: "head";
|
1491
|
+
headBaseSha: string;
|
1492
|
+
}>, z.ZodObject<{
|
1493
|
+
type: z.ZodLiteral<"patch">;
|
1494
|
+
patchId: z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>;
|
1495
|
+
}, "strip", z.ZodTypeAny, {
|
1496
|
+
type: "patch";
|
1497
|
+
patchId: string & {
|
1498
|
+
VAL_DATA_TYPE: "PatchId";
|
1499
|
+
};
|
1500
|
+
}, {
|
1501
|
+
type: "patch";
|
1502
|
+
patchId: string;
|
1503
|
+
}>]>;
|
1504
|
+
patches: z.ZodArray<z.ZodObject<{
|
1505
|
+
path: z.ZodEffects<z.ZodString, ModuleFilePath, string>;
|
1506
|
+
patch: z.ZodType<import("@valbuild/core/patch").Patch, z.ZodTypeDef, import("@valbuild/core/patch").Patch>;
|
1507
|
+
}, "strip", z.ZodTypeAny, {
|
1508
|
+
path: string & {
|
1509
|
+
VAL_DATA_TYPE: "ModuleFilePath";
|
1510
|
+
};
|
1511
|
+
patch: import("@valbuild/core/patch").Patch;
|
1512
|
+
}, {
|
1513
|
+
path: string;
|
1514
|
+
patch: import("@valbuild/core/patch").Patch;
|
1515
|
+
}>, "many">;
|
1516
|
+
}, "strip", z.ZodTypeAny, {
|
1517
|
+
patches: {
|
1518
|
+
path: string & {
|
1519
|
+
VAL_DATA_TYPE: "ModuleFilePath";
|
1520
|
+
};
|
1521
|
+
patch: import("@valbuild/core/patch").Patch;
|
1522
|
+
}[];
|
1523
|
+
parentRef: {
|
1524
|
+
type: "head";
|
1525
|
+
headBaseSha: string;
|
1526
|
+
} | {
|
1527
|
+
type: "patch";
|
1528
|
+
patchId: string & {
|
1529
|
+
VAL_DATA_TYPE: "PatchId";
|
1530
|
+
};
|
1531
|
+
};
|
1532
|
+
}, {
|
1533
|
+
patches: {
|
1534
|
+
path: string;
|
1535
|
+
patch: import("@valbuild/core/patch").Patch;
|
1536
|
+
}[];
|
1537
|
+
parentRef: {
|
1538
|
+
type: "head";
|
1539
|
+
headBaseSha: string;
|
1540
|
+
} | {
|
1541
|
+
type: "patch";
|
1542
|
+
patchId: string;
|
1543
|
+
};
|
1544
|
+
}>;
|
1545
|
+
cookies: {
|
1546
|
+
val_session: z.ZodOptional<z.ZodString>;
|
1547
|
+
};
|
1548
|
+
};
|
1549
|
+
res: z.ZodUnion<[z.ZodObject<{
|
1550
|
+
status: z.ZodLiteral<401>;
|
1551
|
+
json: z.ZodObject<{
|
1552
|
+
message: z.ZodString;
|
1553
|
+
}, "strip", z.ZodTypeAny, {
|
1554
|
+
message: string;
|
1555
|
+
}, {
|
1556
|
+
message: string;
|
1557
|
+
}>;
|
1558
|
+
}, "strip", z.ZodTypeAny, {
|
1559
|
+
status: 401;
|
1560
|
+
json: {
|
1561
|
+
message: string;
|
1562
|
+
};
|
1563
|
+
}, {
|
1564
|
+
status: 401;
|
1565
|
+
json: {
|
1566
|
+
message: string;
|
1567
|
+
};
|
1568
|
+
}>, z.ZodObject<{
|
1569
|
+
status: z.ZodLiteral<409>;
|
1570
|
+
json: z.ZodObject<{
|
1571
|
+
type: z.ZodLiteral<"patch-head-conflict">;
|
1572
|
+
message: z.ZodString;
|
1573
|
+
}, "strip", z.ZodTypeAny, {
|
1574
|
+
message: string;
|
1575
|
+
type: "patch-head-conflict";
|
1576
|
+
}, {
|
1577
|
+
message: string;
|
1578
|
+
type: "patch-head-conflict";
|
1579
|
+
}>;
|
1580
|
+
}, "strip", z.ZodTypeAny, {
|
1581
|
+
status: 409;
|
1582
|
+
json: {
|
1583
|
+
message: string;
|
1584
|
+
type: "patch-head-conflict";
|
1585
|
+
};
|
1586
|
+
}, {
|
1587
|
+
status: 409;
|
1588
|
+
json: {
|
1589
|
+
message: string;
|
1590
|
+
type: "patch-head-conflict";
|
1591
|
+
};
|
1592
|
+
}>, z.ZodObject<{
|
1593
|
+
status: z.ZodLiteral<400>;
|
1594
|
+
json: z.ZodObject<{
|
1595
|
+
type: z.ZodLiteral<"patch-error">;
|
1596
|
+
message: z.ZodString;
|
1597
|
+
errors: z.ZodRecord<z.ZodEffects<z.ZodString, ModuleFilePath, string>, z.ZodArray<z.ZodObject<{
|
1598
|
+
error: z.ZodObject<{
|
1599
|
+
message: z.ZodString;
|
1600
|
+
}, "strip", z.ZodTypeAny, {
|
1601
|
+
message: string;
|
1602
|
+
}, {
|
1603
|
+
message: string;
|
1604
|
+
}>;
|
1605
|
+
}, "strip", z.ZodTypeAny, {
|
1606
|
+
error: {
|
1607
|
+
message: string;
|
1608
|
+
};
|
1609
|
+
}, {
|
1610
|
+
error: {
|
1611
|
+
message: string;
|
1612
|
+
};
|
1613
|
+
}>, "many">>;
|
1614
|
+
}, "strip", z.ZodTypeAny, {
|
1615
|
+
message: string;
|
1616
|
+
type: "patch-error";
|
1617
|
+
errors: Partial<Record<ModuleFilePath, {
|
1618
|
+
error: {
|
1619
|
+
message: string;
|
1620
|
+
};
|
1621
|
+
}[]>>;
|
1622
|
+
}, {
|
1623
|
+
message: string;
|
1624
|
+
type: "patch-error";
|
1625
|
+
errors: Record<string, {
|
1626
|
+
error: {
|
1627
|
+
message: string;
|
1628
|
+
};
|
1629
|
+
}[]>;
|
1630
|
+
}>;
|
1631
|
+
}, "strip", z.ZodTypeAny, {
|
1632
|
+
status: 400;
|
1633
|
+
json: {
|
1634
|
+
message: string;
|
1635
|
+
type: "patch-error";
|
1636
|
+
errors: Partial<Record<ModuleFilePath, {
|
1637
|
+
error: {
|
1638
|
+
message: string;
|
1639
|
+
};
|
1640
|
+
}[]>>;
|
1641
|
+
};
|
1642
|
+
}, {
|
1643
|
+
status: 400;
|
1644
|
+
json: {
|
1645
|
+
message: string;
|
1646
|
+
type: "patch-error";
|
1647
|
+
errors: Record<string, {
|
1648
|
+
error: {
|
1649
|
+
message: string;
|
1650
|
+
};
|
1651
|
+
}[]>;
|
1652
|
+
};
|
1653
|
+
}>, z.ZodObject<{
|
1654
|
+
status: z.ZodLiteral<200>;
|
1655
|
+
json: z.ZodObject<{
|
1656
|
+
newPatchIds: z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">;
|
1657
|
+
parentRef: z.ZodUnion<[z.ZodObject<{
|
1658
|
+
type: z.ZodLiteral<"head">;
|
1659
|
+
headBaseSha: z.ZodString;
|
1660
|
+
}, "strip", z.ZodTypeAny, {
|
1661
|
+
type: "head";
|
1662
|
+
headBaseSha: string;
|
1663
|
+
}, {
|
1664
|
+
type: "head";
|
1665
|
+
headBaseSha: string;
|
1666
|
+
}>, z.ZodObject<{
|
1667
|
+
type: z.ZodLiteral<"patch">;
|
1668
|
+
patchId: z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>;
|
1669
|
+
}, "strip", z.ZodTypeAny, {
|
1670
|
+
type: "patch";
|
1671
|
+
patchId: string & {
|
1672
|
+
VAL_DATA_TYPE: "PatchId";
|
1673
|
+
};
|
1674
|
+
}, {
|
1675
|
+
type: "patch";
|
1676
|
+
patchId: string;
|
1677
|
+
}>]>;
|
1678
|
+
}, "strip", z.ZodTypeAny, {
|
1679
|
+
parentRef: {
|
1680
|
+
type: "head";
|
1681
|
+
headBaseSha: string;
|
1682
|
+
} | {
|
1683
|
+
type: "patch";
|
1684
|
+
patchId: string & {
|
1685
|
+
VAL_DATA_TYPE: "PatchId";
|
1686
|
+
};
|
1687
|
+
};
|
1688
|
+
newPatchIds: import("@valbuild/core").PatchId[];
|
1689
|
+
}, {
|
1690
|
+
parentRef: {
|
1691
|
+
type: "head";
|
1692
|
+
headBaseSha: string;
|
1693
|
+
} | {
|
1694
|
+
type: "patch";
|
1695
|
+
patchId: string;
|
1696
|
+
};
|
1697
|
+
newPatchIds: string[];
|
1698
|
+
}>;
|
1699
|
+
}, "strip", z.ZodTypeAny, {
|
1700
|
+
status: 200;
|
1701
|
+
json: {
|
1702
|
+
parentRef: {
|
1703
|
+
type: "head";
|
1704
|
+
headBaseSha: string;
|
1705
|
+
} | {
|
1706
|
+
type: "patch";
|
1707
|
+
patchId: string & {
|
1708
|
+
VAL_DATA_TYPE: "PatchId";
|
1709
|
+
};
|
1710
|
+
};
|
1711
|
+
newPatchIds: import("@valbuild/core").PatchId[];
|
1712
|
+
};
|
1713
|
+
}, {
|
1714
|
+
status: 200;
|
1715
|
+
json: {
|
1716
|
+
parentRef: {
|
1717
|
+
type: "head";
|
1718
|
+
headBaseSha: string;
|
1719
|
+
} | {
|
1720
|
+
type: "patch";
|
1721
|
+
patchId: string;
|
1722
|
+
};
|
1723
|
+
newPatchIds: string[];
|
1724
|
+
};
|
1725
|
+
}>]>;
|
1726
|
+
};
|
1447
1727
|
GET: {
|
1448
1728
|
req: {
|
1449
1729
|
query: {
|
1450
1730
|
author: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
1451
|
-
patch_id: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, PatchId, string>, "many">>;
|
1731
|
+
patch_id: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">>;
|
1452
1732
|
module_file_path: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, ModuleFilePath, string>, "many">>;
|
1453
1733
|
omit_patch: z.ZodOptional<z.ZodBoolean>;
|
1454
1734
|
};
|
@@ -1479,46 +1759,119 @@ export declare const Api: {
|
|
1479
1759
|
status: z.ZodLiteral<500>;
|
1480
1760
|
json: z.ZodObject<{
|
1481
1761
|
message: z.ZodString;
|
1482
|
-
|
1762
|
+
patchErrors: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
1763
|
+
patchId: z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>;
|
1764
|
+
message: z.ZodString;
|
1765
|
+
}, "strip", z.ZodTypeAny, {
|
1766
|
+
message: string;
|
1767
|
+
patchId: string & {
|
1768
|
+
VAL_DATA_TYPE: "PatchId";
|
1769
|
+
};
|
1770
|
+
}, {
|
1771
|
+
message: string;
|
1772
|
+
patchId: string;
|
1773
|
+
}>, z.ZodObject<{
|
1774
|
+
parentPatchId: z.ZodString;
|
1483
1775
|
message: z.ZodString;
|
1484
1776
|
}, "strip", z.ZodTypeAny, {
|
1485
1777
|
message: string;
|
1778
|
+
parentPatchId: string;
|
1486
1779
|
}, {
|
1487
1780
|
message: string;
|
1488
|
-
|
1781
|
+
parentPatchId: string;
|
1782
|
+
}>]>, "many">;
|
1489
1783
|
}, "strip", z.ZodTypeAny, {
|
1490
1784
|
message: string;
|
1491
|
-
|
1785
|
+
patchErrors: ({
|
1492
1786
|
message: string;
|
1493
|
-
|
1787
|
+
patchId: string & {
|
1788
|
+
VAL_DATA_TYPE: "PatchId";
|
1789
|
+
};
|
1790
|
+
} | {
|
1791
|
+
message: string;
|
1792
|
+
parentPatchId: string;
|
1793
|
+
})[];
|
1494
1794
|
}, {
|
1495
1795
|
message: string;
|
1496
|
-
|
1796
|
+
patchErrors: ({
|
1497
1797
|
message: string;
|
1498
|
-
|
1798
|
+
patchId: string;
|
1799
|
+
} | {
|
1800
|
+
message: string;
|
1801
|
+
parentPatchId: string;
|
1802
|
+
})[];
|
1499
1803
|
}>;
|
1500
1804
|
}, "strip", z.ZodTypeAny, {
|
1501
1805
|
status: 500;
|
1502
1806
|
json: {
|
1503
1807
|
message: string;
|
1504
|
-
|
1808
|
+
patchErrors: ({
|
1505
1809
|
message: string;
|
1506
|
-
|
1810
|
+
patchId: string & {
|
1811
|
+
VAL_DATA_TYPE: "PatchId";
|
1812
|
+
};
|
1813
|
+
} | {
|
1814
|
+
message: string;
|
1815
|
+
parentPatchId: string;
|
1816
|
+
})[];
|
1507
1817
|
};
|
1508
1818
|
}, {
|
1509
1819
|
status: 500;
|
1510
1820
|
json: {
|
1511
1821
|
message: string;
|
1512
|
-
|
1822
|
+
patchErrors: ({
|
1823
|
+
message: string;
|
1824
|
+
patchId: string;
|
1825
|
+
} | {
|
1826
|
+
message: string;
|
1827
|
+
parentPatchId: string;
|
1828
|
+
})[];
|
1829
|
+
};
|
1830
|
+
}>, z.ZodObject<{
|
1831
|
+
status: z.ZodLiteral<500>;
|
1832
|
+
json: z.ZodObject<{
|
1833
|
+
message: z.ZodString;
|
1834
|
+
error: z.ZodObject<{
|
1835
|
+
message: z.ZodString;
|
1836
|
+
}, "strip", z.ZodTypeAny, {
|
1837
|
+
message: string;
|
1838
|
+
}, {
|
1513
1839
|
message: string;
|
1514
1840
|
}>;
|
1841
|
+
}, "strip", z.ZodTypeAny, {
|
1842
|
+
message: string;
|
1843
|
+
error: {
|
1844
|
+
message: string;
|
1845
|
+
};
|
1846
|
+
}, {
|
1847
|
+
message: string;
|
1848
|
+
error: {
|
1849
|
+
message: string;
|
1850
|
+
};
|
1851
|
+
}>;
|
1852
|
+
}, "strip", z.ZodTypeAny, {
|
1853
|
+
status: 500;
|
1854
|
+
json: {
|
1855
|
+
message: string;
|
1856
|
+
error: {
|
1857
|
+
message: string;
|
1858
|
+
};
|
1859
|
+
};
|
1860
|
+
}, {
|
1861
|
+
status: 500;
|
1862
|
+
json: {
|
1863
|
+
message: string;
|
1864
|
+
error: {
|
1865
|
+
message: string;
|
1866
|
+
};
|
1515
1867
|
};
|
1516
1868
|
}>, z.ZodObject<{
|
1517
1869
|
status: z.ZodLiteral<200>;
|
1518
1870
|
json: z.ZodObject<{
|
1519
|
-
patches: z.
|
1871
|
+
patches: z.ZodArray<z.ZodObject<{
|
1520
1872
|
path: z.ZodEffects<z.ZodString, ModuleFilePath, string>;
|
1521
1873
|
patch: z.ZodOptional<z.ZodType<import("@valbuild/core/patch").Patch, z.ZodTypeDef, import("@valbuild/core/patch").Patch>>;
|
1874
|
+
patchId: z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>;
|
1522
1875
|
createdAt: z.ZodString;
|
1523
1876
|
authorId: z.ZodNullable<z.ZodString>;
|
1524
1877
|
appliedAt: z.ZodNullable<z.ZodObject<{
|
@@ -1548,6 +1901,9 @@ export declare const Api: {
|
|
1548
1901
|
path: string & {
|
1549
1902
|
VAL_DATA_TYPE: "ModuleFilePath";
|
1550
1903
|
};
|
1904
|
+
patchId: string & {
|
1905
|
+
VAL_DATA_TYPE: "PatchId";
|
1906
|
+
};
|
1551
1907
|
createdAt: string;
|
1552
1908
|
authorId: string | null;
|
1553
1909
|
appliedAt: {
|
@@ -1560,6 +1916,7 @@ export declare const Api: {
|
|
1560
1916
|
patch?: import("@valbuild/core/patch").Patch | undefined;
|
1561
1917
|
}, {
|
1562
1918
|
path: string;
|
1919
|
+
patchId: string;
|
1563
1920
|
createdAt: string;
|
1564
1921
|
authorId: string | null;
|
1565
1922
|
appliedAt: {
|
@@ -1570,7 +1927,8 @@ export declare const Api: {
|
|
1570
1927
|
} | undefined;
|
1571
1928
|
} | null;
|
1572
1929
|
patch?: import("@valbuild/core/patch").Patch | undefined;
|
1573
|
-
}
|
1930
|
+
}>, "many">;
|
1931
|
+
baseSha: z.ZodString;
|
1574
1932
|
error: z.ZodOptional<z.ZodObject<{
|
1575
1933
|
message: z.ZodString;
|
1576
1934
|
}, "strip", z.ZodTypeAny, {
|
@@ -1578,7 +1936,7 @@ export declare const Api: {
|
|
1578
1936
|
}, {
|
1579
1937
|
message: string;
|
1580
1938
|
}>>;
|
1581
|
-
errors: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, PatchId, string>, z.ZodObject<{
|
1939
|
+
errors: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, z.ZodObject<{
|
1582
1940
|
message: z.ZodString;
|
1583
1941
|
}, "strip", z.ZodTypeAny, {
|
1584
1942
|
message: string;
|
@@ -1586,10 +1944,14 @@ export declare const Api: {
|
|
1586
1944
|
message: string;
|
1587
1945
|
}>>>;
|
1588
1946
|
}, "strip", z.ZodTypeAny, {
|
1589
|
-
|
1947
|
+
baseSha: string;
|
1948
|
+
patches: {
|
1590
1949
|
path: string & {
|
1591
1950
|
VAL_DATA_TYPE: "ModuleFilePath";
|
1592
1951
|
};
|
1952
|
+
patchId: string & {
|
1953
|
+
VAL_DATA_TYPE: "PatchId";
|
1954
|
+
};
|
1593
1955
|
createdAt: string;
|
1594
1956
|
authorId: string | null;
|
1595
1957
|
appliedAt: {
|
@@ -1600,16 +1962,18 @@ export declare const Api: {
|
|
1600
1962
|
} | undefined;
|
1601
1963
|
} | null;
|
1602
1964
|
patch?: import("@valbuild/core/patch").Patch | undefined;
|
1603
|
-
}
|
1965
|
+
}[];
|
1966
|
+
errors?: Partial<Record<import("@valbuild/core").PatchId, {
|
1967
|
+
message: string;
|
1968
|
+
}>> | undefined;
|
1604
1969
|
error?: {
|
1605
1970
|
message: string;
|
1606
1971
|
} | undefined;
|
1607
|
-
errors?: Partial<Record<PatchId, {
|
1608
|
-
message: string;
|
1609
|
-
}>> | undefined;
|
1610
1972
|
}, {
|
1611
|
-
|
1973
|
+
baseSha: string;
|
1974
|
+
patches: {
|
1612
1975
|
path: string;
|
1976
|
+
patchId: string;
|
1613
1977
|
createdAt: string;
|
1614
1978
|
authorId: string | null;
|
1615
1979
|
appliedAt: {
|
@@ -1620,21 +1984,25 @@ export declare const Api: {
|
|
1620
1984
|
} | undefined;
|
1621
1985
|
} | null;
|
1622
1986
|
patch?: import("@valbuild/core/patch").Patch | undefined;
|
1623
|
-
}
|
1624
|
-
error?: {
|
1625
|
-
message: string;
|
1626
|
-
} | undefined;
|
1987
|
+
}[];
|
1627
1988
|
errors?: Record<string, {
|
1628
1989
|
message: string;
|
1629
1990
|
}> | undefined;
|
1991
|
+
error?: {
|
1992
|
+
message: string;
|
1993
|
+
} | undefined;
|
1630
1994
|
}>;
|
1631
1995
|
}, "strip", z.ZodTypeAny, {
|
1632
1996
|
status: 200;
|
1633
1997
|
json: {
|
1634
|
-
|
1998
|
+
baseSha: string;
|
1999
|
+
patches: {
|
1635
2000
|
path: string & {
|
1636
2001
|
VAL_DATA_TYPE: "ModuleFilePath";
|
1637
2002
|
};
|
2003
|
+
patchId: string & {
|
2004
|
+
VAL_DATA_TYPE: "PatchId";
|
2005
|
+
};
|
1638
2006
|
createdAt: string;
|
1639
2007
|
authorId: string | null;
|
1640
2008
|
appliedAt: {
|
@@ -1645,19 +2013,21 @@ export declare const Api: {
|
|
1645
2013
|
} | undefined;
|
1646
2014
|
} | null;
|
1647
2015
|
patch?: import("@valbuild/core/patch").Patch | undefined;
|
1648
|
-
}
|
2016
|
+
}[];
|
2017
|
+
errors?: Partial<Record<import("@valbuild/core").PatchId, {
|
2018
|
+
message: string;
|
2019
|
+
}>> | undefined;
|
1649
2020
|
error?: {
|
1650
2021
|
message: string;
|
1651
2022
|
} | undefined;
|
1652
|
-
errors?: Partial<Record<PatchId, {
|
1653
|
-
message: string;
|
1654
|
-
}>> | undefined;
|
1655
2023
|
};
|
1656
2024
|
}, {
|
1657
2025
|
status: 200;
|
1658
2026
|
json: {
|
1659
|
-
|
2027
|
+
baseSha: string;
|
2028
|
+
patches: {
|
1660
2029
|
path: string;
|
2030
|
+
patchId: string;
|
1661
2031
|
createdAt: string;
|
1662
2032
|
authorId: string | null;
|
1663
2033
|
appliedAt: {
|
@@ -1668,13 +2038,13 @@ export declare const Api: {
|
|
1668
2038
|
} | undefined;
|
1669
2039
|
} | null;
|
1670
2040
|
patch?: import("@valbuild/core/patch").Patch | undefined;
|
1671
|
-
}
|
1672
|
-
error?: {
|
1673
|
-
message: string;
|
1674
|
-
} | undefined;
|
2041
|
+
}[];
|
1675
2042
|
errors?: Record<string, {
|
1676
2043
|
message: string;
|
1677
2044
|
}> | undefined;
|
2045
|
+
error?: {
|
2046
|
+
message: string;
|
2047
|
+
} | undefined;
|
1678
2048
|
};
|
1679
2049
|
}>]>;
|
1680
2050
|
};
|
@@ -1815,38 +2185,16 @@ export declare const Api: {
|
|
1815
2185
|
}>]>;
|
1816
2186
|
};
|
1817
2187
|
};
|
1818
|
-
"/sources": {
|
2188
|
+
"/sources/~": {
|
1819
2189
|
PUT: {
|
1820
2190
|
req: {
|
1821
2191
|
path: z.ZodOptional<z.ZodString>;
|
1822
2192
|
body: z.ZodOptional<z.ZodObject<{
|
1823
|
-
patchIds: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, PatchId, string>, "many">>;
|
1824
|
-
addPatches: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
1825
|
-
path: z.ZodEffects<z.ZodString, ModuleFilePath, string>;
|
1826
|
-
patch: z.ZodType<import("@valbuild/core/patch").Patch, z.ZodTypeDef, import("@valbuild/core/patch").Patch>;
|
1827
|
-
}, "strip", z.ZodTypeAny, {
|
1828
|
-
path: string & {
|
1829
|
-
VAL_DATA_TYPE: "ModuleFilePath";
|
1830
|
-
};
|
1831
|
-
patch: import("@valbuild/core/patch").Patch;
|
1832
|
-
}, {
|
1833
|
-
path: string;
|
1834
|
-
patch: import("@valbuild/core/patch").Patch;
|
1835
|
-
}>, "many">>;
|
2193
|
+
patchIds: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">>;
|
1836
2194
|
}, "strip", z.ZodTypeAny, {
|
1837
|
-
patchIds?: PatchId[] | undefined;
|
1838
|
-
addPatches?: {
|
1839
|
-
path: string & {
|
1840
|
-
VAL_DATA_TYPE: "ModuleFilePath";
|
1841
|
-
};
|
1842
|
-
patch: import("@valbuild/core/patch").Patch;
|
1843
|
-
}[] | undefined;
|
2195
|
+
patchIds?: import("@valbuild/core").PatchId[] | undefined;
|
1844
2196
|
}, {
|
1845
2197
|
patchIds?: string[] | undefined;
|
1846
|
-
addPatches?: {
|
1847
|
-
path: string;
|
1848
|
-
patch: import("@valbuild/core/patch").Patch;
|
1849
|
-
}[] | undefined;
|
1850
2198
|
}>>;
|
1851
2199
|
query: {
|
1852
2200
|
validate_all: z.ZodOptional<z.ZodBoolean>;
|
@@ -1895,25 +2243,6 @@ export declare const Api: {
|
|
1895
2243
|
json: {
|
1896
2244
|
message: string;
|
1897
2245
|
};
|
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
|
-
};
|
1917
2246
|
}>, z.ZodObject<{
|
1918
2247
|
status: z.ZodLiteral<500>;
|
1919
2248
|
json: z.ZodObject<{
|
@@ -1955,23 +2284,42 @@ export declare const Api: {
|
|
1955
2284
|
status: 500;
|
1956
2285
|
json: {
|
1957
2286
|
message: string;
|
1958
|
-
details: {
|
1959
|
-
message: string;
|
1960
|
-
} | {
|
1961
|
-
message: string;
|
1962
|
-
path?: ModuleFilePath | undefined;
|
1963
|
-
}[];
|
2287
|
+
details: {
|
2288
|
+
message: string;
|
2289
|
+
} | {
|
2290
|
+
message: string;
|
2291
|
+
path?: ModuleFilePath | undefined;
|
2292
|
+
}[];
|
2293
|
+
};
|
2294
|
+
}, {
|
2295
|
+
status: 500;
|
2296
|
+
json: {
|
2297
|
+
message: string;
|
2298
|
+
details: {
|
2299
|
+
message: string;
|
2300
|
+
} | {
|
2301
|
+
message: string;
|
2302
|
+
path?: string | undefined;
|
2303
|
+
}[];
|
2304
|
+
};
|
2305
|
+
}>, z.ZodObject<{
|
2306
|
+
status: z.ZodLiteral<409>;
|
2307
|
+
json: z.ZodObject<{
|
2308
|
+
message: z.ZodString;
|
2309
|
+
}, "strip", z.ZodTypeAny, {
|
2310
|
+
message: string;
|
2311
|
+
}, {
|
2312
|
+
message: string;
|
2313
|
+
}>;
|
2314
|
+
}, "strip", z.ZodTypeAny, {
|
2315
|
+
status: 409;
|
2316
|
+
json: {
|
2317
|
+
message: string;
|
1964
2318
|
};
|
1965
2319
|
}, {
|
1966
|
-
status:
|
2320
|
+
status: 409;
|
1967
2321
|
json: {
|
1968
2322
|
message: string;
|
1969
|
-
details: {
|
1970
|
-
message: string;
|
1971
|
-
} | {
|
1972
|
-
message: string;
|
1973
|
-
path?: string | undefined;
|
1974
|
-
}[];
|
1975
2323
|
};
|
1976
2324
|
}>, z.ZodObject<{
|
1977
2325
|
status: z.ZodLiteral<400>;
|
@@ -2019,17 +2367,15 @@ export declare const Api: {
|
|
2019
2367
|
}[];
|
2020
2368
|
};
|
2021
2369
|
}>, z.ZodObject<{
|
2022
|
-
status: z.ZodLiteral<
|
2370
|
+
status: z.ZodLiteral<200>;
|
2023
2371
|
json: z.ZodObject<{
|
2024
|
-
type: z.ZodLiteral<"patch-error">;
|
2025
|
-
message: z.ZodString;
|
2026
2372
|
schemaSha: z.ZodString;
|
2027
2373
|
modules: z.ZodRecord<z.ZodEffects<z.ZodString, ModuleFilePath, string>, z.ZodObject<{
|
2028
2374
|
source: z.ZodAny;
|
2029
2375
|
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<{
|
2376
|
+
applied: z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">;
|
2377
|
+
skipped: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">>;
|
2378
|
+
errors: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, z.ZodObject<{
|
2033
2379
|
message: z.ZodString;
|
2034
2380
|
}, "strip", z.ZodTypeAny, {
|
2035
2381
|
message: string;
|
@@ -2037,11 +2383,11 @@ export declare const Api: {
|
|
2037
2383
|
message: string;
|
2038
2384
|
}>>>;
|
2039
2385
|
}, "strip", z.ZodTypeAny, {
|
2040
|
-
applied: PatchId[];
|
2041
|
-
errors?: Partial<Record<PatchId, {
|
2386
|
+
applied: import("@valbuild/core").PatchId[];
|
2387
|
+
errors?: Partial<Record<import("@valbuild/core").PatchId, {
|
2042
2388
|
message: string;
|
2043
2389
|
}>> | undefined;
|
2044
|
-
skipped?: PatchId[] | undefined;
|
2390
|
+
skipped?: import("@valbuild/core").PatchId[] | undefined;
|
2045
2391
|
}, {
|
2046
2392
|
applied: string[];
|
2047
2393
|
errors?: Record<string, {
|
@@ -2067,11 +2413,11 @@ export declare const Api: {
|
|
2067
2413
|
}>, "many">>>;
|
2068
2414
|
}, "strip", z.ZodTypeAny, {
|
2069
2415
|
patches?: {
|
2070
|
-
applied: PatchId[];
|
2071
|
-
errors?: Partial<Record<PatchId, {
|
2416
|
+
applied: import("@valbuild/core").PatchId[];
|
2417
|
+
errors?: Partial<Record<import("@valbuild/core").PatchId, {
|
2072
2418
|
message: string;
|
2073
2419
|
}>> | undefined;
|
2074
|
-
skipped?: PatchId[] | undefined;
|
2420
|
+
skipped?: import("@valbuild/core").PatchId[] | undefined;
|
2075
2421
|
} | undefined;
|
2076
2422
|
source?: any;
|
2077
2423
|
validationErrors?: Partial<Record<import("@valbuild/core").SourcePath, {
|
@@ -2096,51 +2442,15 @@ export declare const Api: {
|
|
2096
2442
|
fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata")[] | undefined;
|
2097
2443
|
}[]> | undefined;
|
2098
2444
|
}>>;
|
2099
|
-
errors: z.ZodRecord<z.ZodEffects<z.ZodString, ModuleFilePath, string>, z.ZodArray<z.ZodObject<{
|
2100
|
-
patchId: z.ZodEffects<z.ZodString, PatchId, string>;
|
2101
|
-
skipped: z.ZodBoolean;
|
2102
|
-
error: z.ZodObject<{
|
2103
|
-
message: z.ZodString;
|
2104
|
-
}, "strip", z.ZodTypeAny, {
|
2105
|
-
message: string;
|
2106
|
-
}, {
|
2107
|
-
message: string;
|
2108
|
-
}>;
|
2109
|
-
}, "strip", z.ZodTypeAny, {
|
2110
|
-
error: {
|
2111
|
-
message: string;
|
2112
|
-
};
|
2113
|
-
skipped: boolean;
|
2114
|
-
patchId: string & {
|
2115
|
-
VAL_DATA_TYPE: "PatchId";
|
2116
|
-
};
|
2117
|
-
}, {
|
2118
|
-
error: {
|
2119
|
-
message: string;
|
2120
|
-
};
|
2121
|
-
skipped: boolean;
|
2122
|
-
patchId: string;
|
2123
|
-
}>, "many">>;
|
2124
2445
|
}, "strip", z.ZodTypeAny, {
|
2125
|
-
message: string;
|
2126
|
-
type: "patch-error";
|
2127
2446
|
schemaSha: string;
|
2128
|
-
errors: Partial<Record<ModuleFilePath, {
|
2129
|
-
error: {
|
2130
|
-
message: string;
|
2131
|
-
};
|
2132
|
-
skipped: boolean;
|
2133
|
-
patchId: string & {
|
2134
|
-
VAL_DATA_TYPE: "PatchId";
|
2135
|
-
};
|
2136
|
-
}[]>>;
|
2137
2447
|
modules: Partial<Record<ModuleFilePath, {
|
2138
2448
|
patches?: {
|
2139
|
-
applied: PatchId[];
|
2140
|
-
errors?: Partial<Record<PatchId, {
|
2449
|
+
applied: import("@valbuild/core").PatchId[];
|
2450
|
+
errors?: Partial<Record<import("@valbuild/core").PatchId, {
|
2141
2451
|
message: string;
|
2142
2452
|
}>> | undefined;
|
2143
|
-
skipped?: PatchId[] | undefined;
|
2453
|
+
skipped?: import("@valbuild/core").PatchId[] | undefined;
|
2144
2454
|
} | undefined;
|
2145
2455
|
source?: any;
|
2146
2456
|
validationErrors?: Partial<Record<import("@valbuild/core").SourcePath, {
|
@@ -2151,16 +2461,7 @@ export declare const Api: {
|
|
2151
2461
|
}[]>> | undefined;
|
2152
2462
|
}>>;
|
2153
2463
|
}, {
|
2154
|
-
message: string;
|
2155
|
-
type: "patch-error";
|
2156
2464
|
schemaSha: string;
|
2157
|
-
errors: Record<string, {
|
2158
|
-
error: {
|
2159
|
-
message: string;
|
2160
|
-
};
|
2161
|
-
skipped: boolean;
|
2162
|
-
patchId: string;
|
2163
|
-
}[]>;
|
2164
2465
|
modules: Record<string, {
|
2165
2466
|
patches?: {
|
2166
2467
|
applied: string[];
|
@@ -2179,27 +2480,16 @@ export declare const Api: {
|
|
2179
2480
|
}>;
|
2180
2481
|
}>;
|
2181
2482
|
}, "strip", z.ZodTypeAny, {
|
2182
|
-
status:
|
2483
|
+
status: 200;
|
2183
2484
|
json: {
|
2184
|
-
message: string;
|
2185
|
-
type: "patch-error";
|
2186
2485
|
schemaSha: string;
|
2187
|
-
errors: Partial<Record<ModuleFilePath, {
|
2188
|
-
error: {
|
2189
|
-
message: string;
|
2190
|
-
};
|
2191
|
-
skipped: boolean;
|
2192
|
-
patchId: string & {
|
2193
|
-
VAL_DATA_TYPE: "PatchId";
|
2194
|
-
};
|
2195
|
-
}[]>>;
|
2196
2486
|
modules: Partial<Record<ModuleFilePath, {
|
2197
2487
|
patches?: {
|
2198
|
-
applied: PatchId[];
|
2199
|
-
errors?: Partial<Record<PatchId, {
|
2488
|
+
applied: import("@valbuild/core").PatchId[];
|
2489
|
+
errors?: Partial<Record<import("@valbuild/core").PatchId, {
|
2200
2490
|
message: string;
|
2201
2491
|
}>> | undefined;
|
2202
|
-
skipped?: PatchId[] | undefined;
|
2492
|
+
skipped?: import("@valbuild/core").PatchId[] | undefined;
|
2203
2493
|
} | undefined;
|
2204
2494
|
source?: any;
|
2205
2495
|
validationErrors?: Partial<Record<import("@valbuild/core").SourcePath, {
|
@@ -2211,18 +2501,9 @@ export declare const Api: {
|
|
2211
2501
|
}>>;
|
2212
2502
|
};
|
2213
2503
|
}, {
|
2214
|
-
status:
|
2504
|
+
status: 200;
|
2215
2505
|
json: {
|
2216
|
-
message: string;
|
2217
|
-
type: "patch-error";
|
2218
2506
|
schemaSha: string;
|
2219
|
-
errors: Record<string, {
|
2220
|
-
error: {
|
2221
|
-
message: string;
|
2222
|
-
};
|
2223
|
-
skipped: boolean;
|
2224
|
-
patchId: string;
|
2225
|
-
}[]>;
|
2226
2507
|
modules: Record<string, {
|
2227
2508
|
patches?: {
|
2228
2509
|
applied: string[];
|
@@ -2240,176 +2521,91 @@ export declare const Api: {
|
|
2240
2521
|
}[]> | undefined;
|
2241
2522
|
}>;
|
2242
2523
|
};
|
2243
|
-
}
|
2524
|
+
}>]>;
|
2525
|
+
};
|
2526
|
+
};
|
2527
|
+
"/profiles": {
|
2528
|
+
GET: {
|
2529
|
+
req: {
|
2530
|
+
cookies: {
|
2531
|
+
val_session: z.ZodOptional<z.ZodString>;
|
2532
|
+
};
|
2533
|
+
};
|
2534
|
+
res: z.ZodObject<{
|
2244
2535
|
status: z.ZodLiteral<200>;
|
2245
2536
|
json: z.ZodObject<{
|
2246
|
-
|
2247
|
-
|
2248
|
-
|
2249
|
-
|
2250
|
-
|
2251
|
-
skipped: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, PatchId, string>, "many">>;
|
2252
|
-
errors: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, PatchId, string>, z.ZodObject<{
|
2253
|
-
message: z.ZodString;
|
2254
|
-
}, "strip", z.ZodTypeAny, {
|
2255
|
-
message: string;
|
2256
|
-
}, {
|
2257
|
-
message: string;
|
2258
|
-
}>>>;
|
2537
|
+
profiles: z.ZodArray<z.ZodObject<{
|
2538
|
+
profileId: z.ZodString;
|
2539
|
+
fullName: z.ZodString;
|
2540
|
+
avatar: z.ZodNullable<z.ZodObject<{
|
2541
|
+
url: z.ZodString;
|
2259
2542
|
}, "strip", z.ZodTypeAny, {
|
2260
|
-
|
2261
|
-
errors?: Partial<Record<PatchId, {
|
2262
|
-
message: string;
|
2263
|
-
}>> | undefined;
|
2264
|
-
skipped?: PatchId[] | undefined;
|
2543
|
+
url: string;
|
2265
2544
|
}, {
|
2266
|
-
|
2267
|
-
errors?: Record<string, {
|
2268
|
-
message: string;
|
2269
|
-
}> | undefined;
|
2270
|
-
skipped?: string[] | undefined;
|
2545
|
+
url: string;
|
2271
2546
|
}>>;
|
2272
|
-
validationErrors: z.ZodOptional<z.ZodRecord<z.ZodType<import("@valbuild/core").SourcePath, z.ZodTypeDef, unknown>, z.ZodArray<z.ZodObject<{
|
2273
|
-
message: z.ZodString;
|
2274
|
-
value: z.ZodOptional<z.ZodUnknown>;
|
2275
|
-
fatal: z.ZodOptional<z.ZodBoolean>;
|
2276
|
-
fixes: z.ZodOptional<z.ZodArray<z.ZodType<"image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata", z.ZodTypeDef, "image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata">, "many">>;
|
2277
|
-
}, "strip", z.ZodTypeAny, {
|
2278
|
-
message: string;
|
2279
|
-
value?: unknown;
|
2280
|
-
fatal?: boolean | undefined;
|
2281
|
-
fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata")[] | undefined;
|
2282
|
-
}, {
|
2283
|
-
message: string;
|
2284
|
-
value?: unknown;
|
2285
|
-
fatal?: boolean | undefined;
|
2286
|
-
fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata")[] | undefined;
|
2287
|
-
}>, "many">>>;
|
2288
2547
|
}, "strip", z.ZodTypeAny, {
|
2289
|
-
|
2290
|
-
|
2291
|
-
|
2292
|
-
|
2293
|
-
|
2294
|
-
skipped?: PatchId[] | undefined;
|
2295
|
-
} | undefined;
|
2296
|
-
source?: any;
|
2297
|
-
validationErrors?: Partial<Record<import("@valbuild/core").SourcePath, {
|
2298
|
-
message: string;
|
2299
|
-
value?: unknown;
|
2300
|
-
fatal?: boolean | undefined;
|
2301
|
-
fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata")[] | undefined;
|
2302
|
-
}[]>> | undefined;
|
2548
|
+
profileId: string;
|
2549
|
+
fullName: string;
|
2550
|
+
avatar: {
|
2551
|
+
url: string;
|
2552
|
+
} | null;
|
2303
2553
|
}, {
|
2304
|
-
|
2305
|
-
|
2306
|
-
|
2307
|
-
|
2308
|
-
|
2309
|
-
|
2310
|
-
} | undefined;
|
2311
|
-
source?: any;
|
2312
|
-
validationErrors?: Record<unknown, {
|
2313
|
-
message: string;
|
2314
|
-
value?: unknown;
|
2315
|
-
fatal?: boolean | undefined;
|
2316
|
-
fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata")[] | undefined;
|
2317
|
-
}[]> | undefined;
|
2318
|
-
}>>;
|
2319
|
-
newPatchIds: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, PatchId, string>, "many">>;
|
2554
|
+
profileId: string;
|
2555
|
+
fullName: string;
|
2556
|
+
avatar: {
|
2557
|
+
url: string;
|
2558
|
+
} | null;
|
2559
|
+
}>, "many">;
|
2320
2560
|
}, "strip", z.ZodTypeAny, {
|
2321
|
-
|
2322
|
-
|
2323
|
-
|
2324
|
-
|
2325
|
-
|
2326
|
-
|
2327
|
-
|
2328
|
-
skipped?: PatchId[] | undefined;
|
2329
|
-
} | undefined;
|
2330
|
-
source?: any;
|
2331
|
-
validationErrors?: Partial<Record<import("@valbuild/core").SourcePath, {
|
2332
|
-
message: string;
|
2333
|
-
value?: unknown;
|
2334
|
-
fatal?: boolean | undefined;
|
2335
|
-
fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata")[] | undefined;
|
2336
|
-
}[]>> | undefined;
|
2337
|
-
}>>;
|
2338
|
-
newPatchIds?: PatchId[] | undefined;
|
2561
|
+
profiles: {
|
2562
|
+
profileId: string;
|
2563
|
+
fullName: string;
|
2564
|
+
avatar: {
|
2565
|
+
url: string;
|
2566
|
+
} | null;
|
2567
|
+
}[];
|
2339
2568
|
}, {
|
2340
|
-
|
2341
|
-
|
2342
|
-
|
2343
|
-
|
2344
|
-
|
2345
|
-
|
2346
|
-
|
2347
|
-
skipped?: string[] | undefined;
|
2348
|
-
} | undefined;
|
2349
|
-
source?: any;
|
2350
|
-
validationErrors?: Record<unknown, {
|
2351
|
-
message: string;
|
2352
|
-
value?: unknown;
|
2353
|
-
fatal?: boolean | undefined;
|
2354
|
-
fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata")[] | undefined;
|
2355
|
-
}[]> | undefined;
|
2356
|
-
}>;
|
2357
|
-
newPatchIds?: string[] | undefined;
|
2569
|
+
profiles: {
|
2570
|
+
profileId: string;
|
2571
|
+
fullName: string;
|
2572
|
+
avatar: {
|
2573
|
+
url: string;
|
2574
|
+
} | null;
|
2575
|
+
}[];
|
2358
2576
|
}>;
|
2359
2577
|
}, "strip", z.ZodTypeAny, {
|
2360
2578
|
status: 200;
|
2361
2579
|
json: {
|
2362
|
-
|
2363
|
-
|
2364
|
-
|
2365
|
-
|
2366
|
-
|
2367
|
-
|
2368
|
-
|
2369
|
-
skipped?: PatchId[] | undefined;
|
2370
|
-
} | undefined;
|
2371
|
-
source?: any;
|
2372
|
-
validationErrors?: Partial<Record<import("@valbuild/core").SourcePath, {
|
2373
|
-
message: string;
|
2374
|
-
value?: unknown;
|
2375
|
-
fatal?: boolean | undefined;
|
2376
|
-
fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata")[] | undefined;
|
2377
|
-
}[]>> | undefined;
|
2378
|
-
}>>;
|
2379
|
-
newPatchIds?: PatchId[] | undefined;
|
2580
|
+
profiles: {
|
2581
|
+
profileId: string;
|
2582
|
+
fullName: string;
|
2583
|
+
avatar: {
|
2584
|
+
url: string;
|
2585
|
+
} | null;
|
2586
|
+
}[];
|
2380
2587
|
};
|
2381
2588
|
}, {
|
2382
2589
|
status: 200;
|
2383
2590
|
json: {
|
2384
|
-
|
2385
|
-
|
2386
|
-
|
2387
|
-
|
2388
|
-
|
2389
|
-
|
2390
|
-
|
2391
|
-
skipped?: string[] | undefined;
|
2392
|
-
} | undefined;
|
2393
|
-
source?: any;
|
2394
|
-
validationErrors?: Record<unknown, {
|
2395
|
-
message: string;
|
2396
|
-
value?: unknown;
|
2397
|
-
fatal?: boolean | undefined;
|
2398
|
-
fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata")[] | undefined;
|
2399
|
-
}[]> | undefined;
|
2400
|
-
}>;
|
2401
|
-
newPatchIds?: string[] | undefined;
|
2591
|
+
profiles: {
|
2592
|
+
profileId: string;
|
2593
|
+
fullName: string;
|
2594
|
+
avatar: {
|
2595
|
+
url: string;
|
2596
|
+
} | null;
|
2597
|
+
}[];
|
2402
2598
|
};
|
2403
|
-
}
|
2599
|
+
}>;
|
2404
2600
|
};
|
2405
2601
|
};
|
2406
2602
|
"/save": {
|
2407
2603
|
POST: {
|
2408
2604
|
req: {
|
2409
2605
|
body: z.ZodObject<{
|
2410
|
-
patchIds: z.ZodArray<z.ZodEffects<z.ZodString, PatchId, string>, "many">;
|
2606
|
+
patchIds: z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">;
|
2411
2607
|
}, "strip", z.ZodTypeAny, {
|
2412
|
-
patchIds: PatchId[];
|
2608
|
+
patchIds: import("@valbuild/core").PatchId[];
|
2413
2609
|
}, {
|
2414
2610
|
patchIds: string[];
|
2415
2611
|
}>;
|
@@ -2572,18 +2768,28 @@ export declare const Api: {
|
|
2572
2768
|
req: {
|
2573
2769
|
path: z.ZodString;
|
2574
2770
|
query: {
|
2575
|
-
patch_id: z.ZodOptional<z.ZodEffects<z.ZodString, PatchId, string>>;
|
2771
|
+
patch_id: z.ZodOptional<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>>;
|
2576
2772
|
};
|
2577
2773
|
};
|
2578
2774
|
res: z.ZodUnion<[z.ZodObject<{
|
2579
|
-
status: z.ZodLiteral<
|
2580
|
-
|
2775
|
+
status: z.ZodLiteral<401>;
|
2776
|
+
json: z.ZodObject<{
|
2777
|
+
message: z.ZodString;
|
2778
|
+
}, "strip", z.ZodTypeAny, {
|
2779
|
+
message: string;
|
2780
|
+
}, {
|
2781
|
+
message: string;
|
2782
|
+
}>;
|
2581
2783
|
}, "strip", z.ZodTypeAny, {
|
2582
|
-
status:
|
2583
|
-
|
2784
|
+
status: 401;
|
2785
|
+
json: {
|
2786
|
+
message: string;
|
2787
|
+
};
|
2584
2788
|
}, {
|
2585
|
-
status:
|
2586
|
-
|
2789
|
+
status: 401;
|
2790
|
+
json: {
|
2791
|
+
message: string;
|
2792
|
+
};
|
2587
2793
|
}>, z.ZodObject<{
|
2588
2794
|
status: z.ZodLiteral<404>;
|
2589
2795
|
json: z.ZodObject<{
|
@@ -2603,6 +2809,15 @@ export declare const Api: {
|
|
2603
2809
|
json: {
|
2604
2810
|
message: string;
|
2605
2811
|
};
|
2812
|
+
}>, z.ZodObject<{
|
2813
|
+
status: z.ZodLiteral<200>;
|
2814
|
+
body: z.ZodType<ReadableStream<unknown>, z.ZodTypeDef, ReadableStream<unknown>>;
|
2815
|
+
}, "strip", z.ZodTypeAny, {
|
2816
|
+
status: 200;
|
2817
|
+
body: ReadableStream<unknown>;
|
2818
|
+
}, {
|
2819
|
+
status: 200;
|
2820
|
+
body: ReadableStream<unknown>;
|
2606
2821
|
}>]>;
|
2607
2822
|
};
|
2608
2823
|
};
|