@valbuild/shared 0.74.0 → 0.75.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/dist/declarations/src/internal/ApiRoutes.d.ts +303 -31
- package/dist/declarations/src/internal/SharedValConfig.d.ts +9 -0
- package/dist/declarations/src/internal/ValClient.d.ts +2 -1
- package/dist/declarations/src/internal/index.d.ts +4 -0
- package/dist/declarations/src/internal/listeners.d.ts +2 -0
- package/dist/declarations/src/internal/zod/ValCommit.d.ts +27 -0
- package/dist/declarations/src/internal/zod/ValDeployment.d.ts +21 -0
- package/internal/dist/valbuild-shared-internal.cjs.dev.js +137 -23
- package/internal/dist/valbuild-shared-internal.cjs.prod.js +137 -23
- package/internal/dist/valbuild-shared-internal.esm.js +133 -24
- package/package.json +2 -2
@@ -1022,41 +1022,203 @@ export declare const Api: {
|
|
1022
1022
|
};
|
1023
1023
|
"/logout": {
|
1024
1024
|
GET: {
|
1025
|
-
req: {
|
1026
|
-
|
1025
|
+
req: {
|
1026
|
+
query: {
|
1027
|
+
redirect_to: z.ZodOptional<z.ZodString>;
|
1028
|
+
};
|
1029
|
+
};
|
1030
|
+
res: z.ZodUnion<[z.ZodObject<{
|
1027
1031
|
status: z.ZodLiteral<200>;
|
1028
1032
|
cookies: z.ZodObject<{
|
1029
|
-
[x: number]: z.ZodObject<{
|
1030
|
-
value: z.
|
1033
|
+
[x: number]: z.ZodOptional<z.ZodObject<{
|
1034
|
+
value: z.ZodString;
|
1035
|
+
options: z.ZodOptional<z.ZodObject<{
|
1036
|
+
httpOnly: z.ZodLiteral<true>;
|
1037
|
+
sameSite: z.ZodLiteral<"strict">;
|
1038
|
+
path: z.ZodString;
|
1039
|
+
secure: z.ZodLiteral<true>;
|
1040
|
+
expires: z.ZodType<Date, z.ZodTypeDef, Date>;
|
1041
|
+
}, "strip", z.ZodTypeAny, {
|
1042
|
+
path: string;
|
1043
|
+
httpOnly: true;
|
1044
|
+
sameSite: "strict";
|
1045
|
+
expires: Date;
|
1046
|
+
secure: true;
|
1047
|
+
}, {
|
1048
|
+
path: string;
|
1049
|
+
httpOnly: true;
|
1050
|
+
sameSite: "strict";
|
1051
|
+
expires: Date;
|
1052
|
+
secure: true;
|
1053
|
+
}>>;
|
1031
1054
|
}, "strip", z.ZodTypeAny, {
|
1032
|
-
value:
|
1055
|
+
value: string;
|
1056
|
+
options?: {
|
1057
|
+
path: string;
|
1058
|
+
httpOnly: true;
|
1059
|
+
sameSite: "strict";
|
1060
|
+
expires: Date;
|
1061
|
+
secure: true;
|
1062
|
+
} | undefined;
|
1033
1063
|
}, {
|
1034
|
-
value:
|
1035
|
-
|
1064
|
+
value: string;
|
1065
|
+
options?: {
|
1066
|
+
path: string;
|
1067
|
+
httpOnly: true;
|
1068
|
+
sameSite: "strict";
|
1069
|
+
expires: Date;
|
1070
|
+
secure: true;
|
1071
|
+
} | undefined;
|
1072
|
+
}>>;
|
1036
1073
|
}, "strip", z.ZodTypeAny, {
|
1037
1074
|
[x: number]: {
|
1038
|
-
value:
|
1039
|
-
|
1075
|
+
value: string;
|
1076
|
+
options?: {
|
1077
|
+
path: string;
|
1078
|
+
httpOnly: true;
|
1079
|
+
sameSite: "strict";
|
1080
|
+
expires: Date;
|
1081
|
+
secure: true;
|
1082
|
+
} | undefined;
|
1083
|
+
} | undefined;
|
1040
1084
|
}, {
|
1041
1085
|
[x: number]: {
|
1042
|
-
value:
|
1043
|
-
|
1086
|
+
value: string;
|
1087
|
+
options?: {
|
1088
|
+
path: string;
|
1089
|
+
httpOnly: true;
|
1090
|
+
sameSite: "strict";
|
1091
|
+
expires: Date;
|
1092
|
+
secure: true;
|
1093
|
+
} | undefined;
|
1094
|
+
} | undefined;
|
1044
1095
|
}>;
|
1045
1096
|
}, "strip", z.ZodTypeAny, {
|
1046
1097
|
status: 200;
|
1047
1098
|
cookies: {
|
1048
1099
|
[x: number]: {
|
1049
|
-
value:
|
1050
|
-
|
1100
|
+
value: string;
|
1101
|
+
options?: {
|
1102
|
+
path: string;
|
1103
|
+
httpOnly: true;
|
1104
|
+
sameSite: "strict";
|
1105
|
+
expires: Date;
|
1106
|
+
secure: true;
|
1107
|
+
} | undefined;
|
1108
|
+
} | undefined;
|
1051
1109
|
};
|
1052
1110
|
}, {
|
1053
1111
|
status: 200;
|
1054
1112
|
cookies: {
|
1055
1113
|
[x: number]: {
|
1056
|
-
value:
|
1057
|
-
|
1114
|
+
value: string;
|
1115
|
+
options?: {
|
1116
|
+
path: string;
|
1117
|
+
httpOnly: true;
|
1118
|
+
sameSite: "strict";
|
1119
|
+
expires: Date;
|
1120
|
+
secure: true;
|
1121
|
+
} | undefined;
|
1122
|
+
} | undefined;
|
1058
1123
|
};
|
1059
|
-
}
|
1124
|
+
}>, z.ZodObject<{
|
1125
|
+
status: z.ZodLiteral<302>;
|
1126
|
+
redirectTo: z.ZodString;
|
1127
|
+
cookies: z.ZodObject<{
|
1128
|
+
[x: number]: z.ZodOptional<z.ZodObject<{
|
1129
|
+
value: z.ZodString;
|
1130
|
+
options: z.ZodOptional<z.ZodObject<{
|
1131
|
+
httpOnly: z.ZodLiteral<true>;
|
1132
|
+
sameSite: z.ZodLiteral<"strict">;
|
1133
|
+
path: z.ZodString;
|
1134
|
+
secure: z.ZodLiteral<true>;
|
1135
|
+
expires: z.ZodType<Date, z.ZodTypeDef, Date>;
|
1136
|
+
}, "strip", z.ZodTypeAny, {
|
1137
|
+
path: string;
|
1138
|
+
httpOnly: true;
|
1139
|
+
sameSite: "strict";
|
1140
|
+
expires: Date;
|
1141
|
+
secure: true;
|
1142
|
+
}, {
|
1143
|
+
path: string;
|
1144
|
+
httpOnly: true;
|
1145
|
+
sameSite: "strict";
|
1146
|
+
expires: Date;
|
1147
|
+
secure: true;
|
1148
|
+
}>>;
|
1149
|
+
}, "strip", z.ZodTypeAny, {
|
1150
|
+
value: string;
|
1151
|
+
options?: {
|
1152
|
+
path: string;
|
1153
|
+
httpOnly: true;
|
1154
|
+
sameSite: "strict";
|
1155
|
+
expires: Date;
|
1156
|
+
secure: true;
|
1157
|
+
} | undefined;
|
1158
|
+
}, {
|
1159
|
+
value: string;
|
1160
|
+
options?: {
|
1161
|
+
path: string;
|
1162
|
+
httpOnly: true;
|
1163
|
+
sameSite: "strict";
|
1164
|
+
expires: Date;
|
1165
|
+
secure: true;
|
1166
|
+
} | undefined;
|
1167
|
+
}>>;
|
1168
|
+
}, "strip", z.ZodTypeAny, {
|
1169
|
+
[x: number]: {
|
1170
|
+
value: string;
|
1171
|
+
options?: {
|
1172
|
+
path: string;
|
1173
|
+
httpOnly: true;
|
1174
|
+
sameSite: "strict";
|
1175
|
+
expires: Date;
|
1176
|
+
secure: true;
|
1177
|
+
} | undefined;
|
1178
|
+
} | undefined;
|
1179
|
+
}, {
|
1180
|
+
[x: number]: {
|
1181
|
+
value: string;
|
1182
|
+
options?: {
|
1183
|
+
path: string;
|
1184
|
+
httpOnly: true;
|
1185
|
+
sameSite: "strict";
|
1186
|
+
expires: Date;
|
1187
|
+
secure: true;
|
1188
|
+
} | undefined;
|
1189
|
+
} | undefined;
|
1190
|
+
}>;
|
1191
|
+
}, "strip", z.ZodTypeAny, {
|
1192
|
+
status: 302;
|
1193
|
+
redirectTo: string;
|
1194
|
+
cookies: {
|
1195
|
+
[x: number]: {
|
1196
|
+
value: string;
|
1197
|
+
options?: {
|
1198
|
+
path: string;
|
1199
|
+
httpOnly: true;
|
1200
|
+
sameSite: "strict";
|
1201
|
+
expires: Date;
|
1202
|
+
secure: true;
|
1203
|
+
} | undefined;
|
1204
|
+
} | undefined;
|
1205
|
+
};
|
1206
|
+
}, {
|
1207
|
+
status: 302;
|
1208
|
+
redirectTo: string;
|
1209
|
+
cookies: {
|
1210
|
+
[x: number]: {
|
1211
|
+
value: string;
|
1212
|
+
options?: {
|
1213
|
+
path: string;
|
1214
|
+
httpOnly: true;
|
1215
|
+
sameSite: "strict";
|
1216
|
+
expires: Date;
|
1217
|
+
secure: true;
|
1218
|
+
} | undefined;
|
1219
|
+
} | undefined;
|
1220
|
+
};
|
1221
|
+
}>]>;
|
1060
1222
|
};
|
1061
1223
|
};
|
1062
1224
|
"/remote/settings": {
|
@@ -1183,14 +1345,17 @@ export declare const Api: {
|
|
1183
1345
|
POST: {
|
1184
1346
|
req: {
|
1185
1347
|
body: z.ZodNullable<z.ZodObject<{
|
1348
|
+
sourcesSha: z.ZodString;
|
1186
1349
|
schemaSha: z.ZodString;
|
1187
1350
|
baseSha: z.ZodString;
|
1188
1351
|
patches: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
1189
1352
|
}, "strip", z.ZodTypeAny, {
|
1353
|
+
sourcesSha: string;
|
1190
1354
|
schemaSha: string;
|
1191
1355
|
baseSha: string;
|
1192
1356
|
patches?: string[] | undefined;
|
1193
1357
|
}, {
|
1358
|
+
sourcesSha: string;
|
1194
1359
|
schemaSha: string;
|
1195
1360
|
baseSha: string;
|
1196
1361
|
patches?: string[] | undefined;
|
@@ -1262,6 +1427,7 @@ export declare const Api: {
|
|
1262
1427
|
type: z.ZodUnion<[z.ZodLiteral<"request-again">, z.ZodLiteral<"no-change">, z.ZodLiteral<"did-change">]>;
|
1263
1428
|
baseSha: z.ZodString;
|
1264
1429
|
schemaSha: z.ZodString;
|
1430
|
+
sourcesSha: z.ZodString;
|
1265
1431
|
patches: z.ZodArray<z.ZodEffects<z.ZodString, PatchIdT, string>, "many">;
|
1266
1432
|
config: z.ZodObject<{
|
1267
1433
|
project: z.ZodOptional<z.ZodString>;
|
@@ -1292,10 +1458,12 @@ export declare const Api: {
|
|
1292
1458
|
gitCommit?: string | undefined;
|
1293
1459
|
gitBranch?: string | undefined;
|
1294
1460
|
}>;
|
1295
|
-
|
1461
|
+
profileId: z.ZodNullable<z.ZodString>;
|
1462
|
+
mode: z.ZodUnion<[z.ZodLiteral<"http">, z.ZodLiteral<"fs">]>;
|
1296
1463
|
}, "strip", z.ZodTypeAny, {
|
1297
1464
|
type: "request-again" | "no-change" | "did-change";
|
1298
|
-
mode: "
|
1465
|
+
mode: "http" | "fs";
|
1466
|
+
sourcesSha: string;
|
1299
1467
|
schemaSha: string;
|
1300
1468
|
baseSha: string;
|
1301
1469
|
patches: PatchIdT[];
|
@@ -1308,9 +1476,11 @@ export declare const Api: {
|
|
1308
1476
|
gitCommit?: string | undefined;
|
1309
1477
|
gitBranch?: string | undefined;
|
1310
1478
|
};
|
1479
|
+
profileId: string | null;
|
1311
1480
|
}, {
|
1312
1481
|
type: "request-again" | "no-change" | "did-change";
|
1313
|
-
mode: "
|
1482
|
+
mode: "http" | "fs";
|
1483
|
+
sourcesSha: string;
|
1314
1484
|
schemaSha: string;
|
1315
1485
|
baseSha: string;
|
1316
1486
|
patches: string[];
|
@@ -1323,14 +1493,41 @@ export declare const Api: {
|
|
1323
1493
|
gitCommit?: string | undefined;
|
1324
1494
|
gitBranch?: string | undefined;
|
1325
1495
|
};
|
1496
|
+
profileId: string | null;
|
1326
1497
|
}>, z.ZodObject<{
|
1327
1498
|
type: z.ZodLiteral<"use-websocket">;
|
1328
1499
|
url: z.ZodString;
|
1329
1500
|
nonce: z.ZodString;
|
1330
1501
|
baseSha: z.ZodString;
|
1331
1502
|
schemaSha: z.ZodString;
|
1503
|
+
sourcesSha: z.ZodString;
|
1332
1504
|
commitSha: z.ZodString;
|
1333
1505
|
patches: z.ZodArray<z.ZodEffects<z.ZodString, PatchIdT, string>, "many">;
|
1506
|
+
commits: z.ZodArray<z.ZodObject<{
|
1507
|
+
commitSha: z.ZodString;
|
1508
|
+
clientCommitSha: z.ZodString;
|
1509
|
+
parentCommitSha: z.ZodString;
|
1510
|
+
branch: z.ZodString;
|
1511
|
+
creator: z.ZodString;
|
1512
|
+
createdAt: z.ZodString;
|
1513
|
+
commitMessage: z.ZodNullable<z.ZodString>;
|
1514
|
+
}, "strip", z.ZodTypeAny, {
|
1515
|
+
commitSha: string;
|
1516
|
+
clientCommitSha: string;
|
1517
|
+
parentCommitSha: string;
|
1518
|
+
branch: string;
|
1519
|
+
creator: string;
|
1520
|
+
createdAt: string;
|
1521
|
+
commitMessage: string | null;
|
1522
|
+
}, {
|
1523
|
+
commitSha: string;
|
1524
|
+
clientCommitSha: string;
|
1525
|
+
parentCommitSha: string;
|
1526
|
+
branch: string;
|
1527
|
+
creator: string;
|
1528
|
+
createdAt: string;
|
1529
|
+
commitMessage: string | null;
|
1530
|
+
}>, "many">;
|
1334
1531
|
config: z.ZodObject<{
|
1335
1532
|
project: z.ZodOptional<z.ZodString>;
|
1336
1533
|
root: z.ZodOptional<z.ZodString>;
|
@@ -1360,10 +1557,12 @@ export declare const Api: {
|
|
1360
1557
|
gitCommit?: string | undefined;
|
1361
1558
|
gitBranch?: string | undefined;
|
1362
1559
|
}>;
|
1363
|
-
|
1560
|
+
profileId: z.ZodNullable<z.ZodString>;
|
1561
|
+
mode: z.ZodUnion<[z.ZodLiteral<"http">, z.ZodLiteral<"fs">]>;
|
1364
1562
|
}, "strip", z.ZodTypeAny, {
|
1365
1563
|
type: "use-websocket";
|
1366
|
-
mode: "
|
1564
|
+
mode: "http" | "fs";
|
1565
|
+
sourcesSha: string;
|
1367
1566
|
schemaSha: string;
|
1368
1567
|
baseSha: string;
|
1369
1568
|
patches: PatchIdT[];
|
@@ -1376,12 +1575,23 @@ export declare const Api: {
|
|
1376
1575
|
gitCommit?: string | undefined;
|
1377
1576
|
gitBranch?: string | undefined;
|
1378
1577
|
};
|
1578
|
+
profileId: string | null;
|
1379
1579
|
url: string;
|
1380
1580
|
nonce: string;
|
1381
1581
|
commitSha: string;
|
1582
|
+
commits: {
|
1583
|
+
commitSha: string;
|
1584
|
+
clientCommitSha: string;
|
1585
|
+
parentCommitSha: string;
|
1586
|
+
branch: string;
|
1587
|
+
creator: string;
|
1588
|
+
createdAt: string;
|
1589
|
+
commitMessage: string | null;
|
1590
|
+
}[];
|
1382
1591
|
}, {
|
1383
1592
|
type: "use-websocket";
|
1384
|
-
mode: "
|
1593
|
+
mode: "http" | "fs";
|
1594
|
+
sourcesSha: string;
|
1385
1595
|
schemaSha: string;
|
1386
1596
|
baseSha: string;
|
1387
1597
|
patches: string[];
|
@@ -1394,15 +1604,26 @@ export declare const Api: {
|
|
1394
1604
|
gitCommit?: string | undefined;
|
1395
1605
|
gitBranch?: string | undefined;
|
1396
1606
|
};
|
1607
|
+
profileId: string | null;
|
1397
1608
|
url: string;
|
1398
1609
|
nonce: string;
|
1399
1610
|
commitSha: string;
|
1611
|
+
commits: {
|
1612
|
+
commitSha: string;
|
1613
|
+
clientCommitSha: string;
|
1614
|
+
parentCommitSha: string;
|
1615
|
+
branch: string;
|
1616
|
+
creator: string;
|
1617
|
+
createdAt: string;
|
1618
|
+
commitMessage: string | null;
|
1619
|
+
}[];
|
1400
1620
|
}>]>;
|
1401
1621
|
}, "strip", z.ZodTypeAny, {
|
1402
1622
|
status: 200;
|
1403
1623
|
json: {
|
1404
1624
|
type: "request-again" | "no-change" | "did-change";
|
1405
|
-
mode: "
|
1625
|
+
mode: "http" | "fs";
|
1626
|
+
sourcesSha: string;
|
1406
1627
|
schemaSha: string;
|
1407
1628
|
baseSha: string;
|
1408
1629
|
patches: PatchIdT[];
|
@@ -1415,9 +1636,11 @@ export declare const Api: {
|
|
1415
1636
|
gitCommit?: string | undefined;
|
1416
1637
|
gitBranch?: string | undefined;
|
1417
1638
|
};
|
1639
|
+
profileId: string | null;
|
1418
1640
|
} | {
|
1419
1641
|
type: "use-websocket";
|
1420
|
-
mode: "
|
1642
|
+
mode: "http" | "fs";
|
1643
|
+
sourcesSha: string;
|
1421
1644
|
schemaSha: string;
|
1422
1645
|
baseSha: string;
|
1423
1646
|
patches: PatchIdT[];
|
@@ -1430,15 +1653,26 @@ export declare const Api: {
|
|
1430
1653
|
gitCommit?: string | undefined;
|
1431
1654
|
gitBranch?: string | undefined;
|
1432
1655
|
};
|
1656
|
+
profileId: string | null;
|
1433
1657
|
url: string;
|
1434
1658
|
nonce: string;
|
1435
1659
|
commitSha: string;
|
1660
|
+
commits: {
|
1661
|
+
commitSha: string;
|
1662
|
+
clientCommitSha: string;
|
1663
|
+
parentCommitSha: string;
|
1664
|
+
branch: string;
|
1665
|
+
creator: string;
|
1666
|
+
createdAt: string;
|
1667
|
+
commitMessage: string | null;
|
1668
|
+
}[];
|
1436
1669
|
};
|
1437
1670
|
}, {
|
1438
1671
|
status: 200;
|
1439
1672
|
json: {
|
1440
1673
|
type: "request-again" | "no-change" | "did-change";
|
1441
|
-
mode: "
|
1674
|
+
mode: "http" | "fs";
|
1675
|
+
sourcesSha: string;
|
1442
1676
|
schemaSha: string;
|
1443
1677
|
baseSha: string;
|
1444
1678
|
patches: string[];
|
@@ -1451,9 +1685,11 @@ export declare const Api: {
|
|
1451
1685
|
gitCommit?: string | undefined;
|
1452
1686
|
gitBranch?: string | undefined;
|
1453
1687
|
};
|
1688
|
+
profileId: string | null;
|
1454
1689
|
} | {
|
1455
1690
|
type: "use-websocket";
|
1456
|
-
mode: "
|
1691
|
+
mode: "http" | "fs";
|
1692
|
+
sourcesSha: string;
|
1457
1693
|
schemaSha: string;
|
1458
1694
|
baseSha: string;
|
1459
1695
|
patches: string[];
|
@@ -1466,9 +1702,19 @@ export declare const Api: {
|
|
1466
1702
|
gitCommit?: string | undefined;
|
1467
1703
|
gitBranch?: string | undefined;
|
1468
1704
|
};
|
1705
|
+
profileId: string | null;
|
1469
1706
|
url: string;
|
1470
1707
|
nonce: string;
|
1471
1708
|
commitSha: string;
|
1709
|
+
commits: {
|
1710
|
+
commitSha: string;
|
1711
|
+
clientCommitSha: string;
|
1712
|
+
parentCommitSha: string;
|
1713
|
+
branch: string;
|
1714
|
+
creator: string;
|
1715
|
+
createdAt: string;
|
1716
|
+
commitMessage: string | null;
|
1717
|
+
}[];
|
1472
1718
|
};
|
1473
1719
|
}>]>;
|
1474
1720
|
};
|
@@ -1603,17 +1849,21 @@ export declare const Api: {
|
|
1603
1849
|
}>]>;
|
1604
1850
|
patches: z.ZodArray<z.ZodObject<{
|
1605
1851
|
path: z.ZodEffects<z.ZodString, ModuleFilePath, string>;
|
1852
|
+
patchId: z.ZodEffects<z.ZodString, PatchIdT, string>;
|
1606
1853
|
patch: z.ZodType<PatchT, z.ZodTypeDef, PatchT>;
|
1607
1854
|
}, "strip", z.ZodTypeAny, {
|
1608
1855
|
path?: any;
|
1856
|
+
patchId?: any;
|
1609
1857
|
patch?: any;
|
1610
1858
|
}, {
|
1611
1859
|
path: string;
|
1860
|
+
patchId: string;
|
1612
1861
|
patch?: any;
|
1613
1862
|
}>, "many">;
|
1614
1863
|
}, "strip", z.ZodTypeAny, {
|
1615
1864
|
patches: {
|
1616
1865
|
path?: any;
|
1866
|
+
patchId?: any;
|
1617
1867
|
patch?: any;
|
1618
1868
|
}[];
|
1619
1869
|
parentRef: {
|
@@ -1626,6 +1876,7 @@ export declare const Api: {
|
|
1626
1876
|
}, {
|
1627
1877
|
patches: {
|
1628
1878
|
path: string;
|
1879
|
+
patchId: string;
|
1629
1880
|
patch?: any;
|
1630
1881
|
}[];
|
1631
1882
|
parentRef: {
|
@@ -1972,8 +2223,8 @@ export declare const Api: {
|
|
1972
2223
|
patch?: any;
|
1973
2224
|
}, {
|
1974
2225
|
path: string;
|
1975
|
-
patchId: string;
|
1976
2226
|
createdAt: string;
|
2227
|
+
patchId: string;
|
1977
2228
|
authorId: string | null;
|
1978
2229
|
appliedAt: {
|
1979
2230
|
commitSha: string;
|
@@ -2017,8 +2268,8 @@ export declare const Api: {
|
|
2017
2268
|
baseSha: string;
|
2018
2269
|
patches: {
|
2019
2270
|
path: string;
|
2020
|
-
patchId: string;
|
2021
2271
|
createdAt: string;
|
2272
|
+
patchId: string;
|
2022
2273
|
authorId: string | null;
|
2023
2274
|
appliedAt: {
|
2024
2275
|
commitSha: string;
|
@@ -2059,8 +2310,8 @@ export declare const Api: {
|
|
2059
2310
|
baseSha: string;
|
2060
2311
|
patches: {
|
2061
2312
|
path: string;
|
2062
|
-
patchId: string;
|
2063
2313
|
createdAt: string;
|
2314
|
+
patchId: string;
|
2064
2315
|
authorId: string | null;
|
2065
2316
|
appliedAt: {
|
2066
2317
|
commitSha: string;
|
@@ -2218,7 +2469,6 @@ export declare const Api: {
|
|
2218
2469
|
req: {
|
2219
2470
|
path: z.ZodOptional<z.ZodString>;
|
2220
2471
|
query: {
|
2221
|
-
validate_all: z.ZodOptional<z.ZodBoolean>;
|
2222
2472
|
validate_sources: z.ZodOptional<z.ZodBoolean>;
|
2223
2473
|
validate_binary_files: z.ZodOptional<z.ZodBoolean>;
|
2224
2474
|
};
|
@@ -2391,6 +2641,7 @@ export declare const Api: {
|
|
2391
2641
|
status: z.ZodLiteral<200>;
|
2392
2642
|
json: z.ZodObject<{
|
2393
2643
|
schemaSha: z.ZodString;
|
2644
|
+
sourcesSha: z.ZodString;
|
2394
2645
|
modules: z.ZodRecord<z.ZodEffects<z.ZodString, ModuleFilePath, string>, z.ZodObject<{
|
2395
2646
|
source: z.ZodAny;
|
2396
2647
|
patches: z.ZodOptional<z.ZodObject<{
|
@@ -2464,6 +2715,7 @@ export declare const Api: {
|
|
2464
2715
|
}[]> | undefined;
|
2465
2716
|
}>>;
|
2466
2717
|
}, "strip", z.ZodTypeAny, {
|
2718
|
+
sourcesSha: string;
|
2467
2719
|
schemaSha: string;
|
2468
2720
|
modules: Record<ModuleFilePath, {
|
2469
2721
|
patches?: {
|
@@ -2482,6 +2734,7 @@ export declare const Api: {
|
|
2482
2734
|
}[]> | undefined;
|
2483
2735
|
}>;
|
2484
2736
|
}, {
|
2737
|
+
sourcesSha: string;
|
2485
2738
|
schemaSha: string;
|
2486
2739
|
modules: Record<string, {
|
2487
2740
|
patches?: {
|
@@ -2503,6 +2756,7 @@ export declare const Api: {
|
|
2503
2756
|
}, "strip", z.ZodTypeAny, {
|
2504
2757
|
status: 200;
|
2505
2758
|
json: {
|
2759
|
+
sourcesSha: string;
|
2506
2760
|
schemaSha: string;
|
2507
2761
|
modules: Record<ModuleFilePath, {
|
2508
2762
|
patches?: {
|
@@ -2524,6 +2778,7 @@ export declare const Api: {
|
|
2524
2778
|
}, {
|
2525
2779
|
status: 200;
|
2526
2780
|
json: {
|
2781
|
+
sourcesSha: string;
|
2527
2782
|
schemaSha: string;
|
2528
2783
|
modules: Record<string, {
|
2529
2784
|
patches?: {
|
@@ -2577,6 +2832,7 @@ export declare const Api: {
|
|
2577
2832
|
profiles: z.ZodArray<z.ZodObject<{
|
2578
2833
|
profileId: z.ZodString;
|
2579
2834
|
fullName: z.ZodString;
|
2835
|
+
email: z.ZodOptional<z.ZodString>;
|
2580
2836
|
avatar: z.ZodNullable<z.ZodObject<{
|
2581
2837
|
url: z.ZodString;
|
2582
2838
|
}, "strip", z.ZodTypeAny, {
|
@@ -2590,12 +2846,14 @@ export declare const Api: {
|
|
2590
2846
|
avatar: {
|
2591
2847
|
url: string;
|
2592
2848
|
} | null;
|
2849
|
+
email?: string | undefined;
|
2593
2850
|
}, {
|
2594
2851
|
profileId: string;
|
2595
2852
|
fullName: string;
|
2596
2853
|
avatar: {
|
2597
2854
|
url: string;
|
2598
2855
|
} | null;
|
2856
|
+
email?: string | undefined;
|
2599
2857
|
}>, "many">;
|
2600
2858
|
}, "strip", z.ZodTypeAny, {
|
2601
2859
|
profiles: {
|
@@ -2604,6 +2862,7 @@ export declare const Api: {
|
|
2604
2862
|
avatar: {
|
2605
2863
|
url: string;
|
2606
2864
|
} | null;
|
2865
|
+
email?: string | undefined;
|
2607
2866
|
}[];
|
2608
2867
|
}, {
|
2609
2868
|
profiles: {
|
@@ -2612,6 +2871,7 @@ export declare const Api: {
|
|
2612
2871
|
avatar: {
|
2613
2872
|
url: string;
|
2614
2873
|
} | null;
|
2874
|
+
email?: string | undefined;
|
2615
2875
|
}[];
|
2616
2876
|
}>;
|
2617
2877
|
}, "strip", z.ZodTypeAny, {
|
@@ -2623,6 +2883,7 @@ export declare const Api: {
|
|
2623
2883
|
avatar: {
|
2624
2884
|
url: string;
|
2625
2885
|
} | null;
|
2886
|
+
email?: string | undefined;
|
2626
2887
|
}[];
|
2627
2888
|
};
|
2628
2889
|
}, {
|
@@ -2634,6 +2895,7 @@ export declare const Api: {
|
|
2634
2895
|
avatar: {
|
2635
2896
|
url: string;
|
2636
2897
|
} | null;
|
2898
|
+
email?: string | undefined;
|
2637
2899
|
}[];
|
2638
2900
|
};
|
2639
2901
|
}>]>;
|
@@ -3038,6 +3300,13 @@ export type ClientFetchErrors = {
|
|
3038
3300
|
method: string;
|
3039
3301
|
path: string;
|
3040
3302
|
};
|
3303
|
+
} | {
|
3304
|
+
status: 413;
|
3305
|
+
json: {
|
3306
|
+
message: string;
|
3307
|
+
method: string;
|
3308
|
+
path: string;
|
3309
|
+
};
|
3041
3310
|
} | {
|
3042
3311
|
status: 500;
|
3043
3312
|
json: {
|
@@ -3070,7 +3339,10 @@ export type UrlOf<Api extends ApiGuard> = <Route extends keyof Api | "/val", Met
|
|
3070
3339
|
query: {
|
3071
3340
|
[key in keyof Endpoint["req"]["query"]]: z.infer<Endpoint["req"]["query"][key]>;
|
3072
3341
|
}
|
3073
|
-
] : [
|
3342
|
+
] : [
|
3343
|
+
route: `/api/val${Route & string}`,
|
3344
|
+
query: {}
|
3345
|
+
]) => string;
|
3074
3346
|
export type Api = {
|
3075
3347
|
[Route in keyof typeof Api]: {
|
3076
3348
|
[Method in keyof (typeof Api)[Route]]: (typeof Api)[Route][Method] extends ApiEndpoint ? (typeof Api)[Route][Method] : never;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { ValConfig } from "@valbuild/core";
|
2
|
+
import { z } from "zod";
|
3
|
+
export declare const SharedValConfig: z.ZodSchema<ValConfig & {
|
4
|
+
contentHostUrl?: string;
|
5
|
+
}>;
|
6
|
+
/**
|
7
|
+
* Config that is shared between the client and server.
|
8
|
+
*/
|
9
|
+
export type SharedValConfig = z.infer<typeof SharedValConfig>;
|
@@ -1,3 +1,4 @@
|
|
1
1
|
import { Api, ClientOf } from "./ApiRoutes.js";
|
2
|
+
import { SharedValConfig } from "./SharedValConfig.js";
|
2
3
|
export type ValClient = ClientOf<Api>;
|
3
|
-
export declare const createValClient: (host: string) => ValClient;
|
4
|
+
export declare const createValClient: (host: string, config: SharedValConfig | null) => ValClient;
|
@@ -4,3 +4,7 @@ export * from "./ValClient.js";
|
|
4
4
|
export * from "./ValUrls.js";
|
5
5
|
export * from "./ApiRoutes.js";
|
6
6
|
export * from "./zod/Patch.js";
|
7
|
+
export * from "./listeners.js";
|
8
|
+
export * from "./SharedValConfig.js";
|
9
|
+
export * from "./zod/ValCommit.js";
|
10
|
+
export * from "./zod/ValDeployment.js";
|