@blaxel/core 0.3.26-preview.311 → 0.3.26-preview.313
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/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/client/sdk.gen.js +2 -2
- package/dist/cjs/common/settings.js +2 -2
- package/dist/cjs/sandbox/client/sdk.gen.js +44 -11
- package/dist/cjs/sandbox/filesystem/filesystem.js +1 -1
- package/dist/cjs/types/client/sdk.gen.d.ts +5 -2
- package/dist/cjs/types/client/types.gen.d.ts +80 -7
- package/dist/cjs/types/sandbox/client/sdk.gen.d.ts +34 -13
- package/dist/cjs/types/sandbox/client/types.gen.d.ts +66 -13
- package/dist/cjs-browser/.tsbuildinfo +1 -1
- package/dist/cjs-browser/client/sdk.gen.js +2 -2
- package/dist/cjs-browser/common/settings.js +2 -2
- package/dist/cjs-browser/sandbox/client/sdk.gen.js +44 -11
- package/dist/cjs-browser/sandbox/filesystem/filesystem.js +1 -1
- package/dist/cjs-browser/types/client/sdk.gen.d.ts +5 -2
- package/dist/cjs-browser/types/client/types.gen.d.ts +80 -7
- package/dist/cjs-browser/types/sandbox/client/sdk.gen.d.ts +34 -13
- package/dist/cjs-browser/types/sandbox/client/types.gen.d.ts +66 -13
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/client/sdk.gen.js +2 -2
- package/dist/esm/common/settings.js +2 -2
- package/dist/esm/sandbox/client/sdk.gen.js +42 -10
- package/dist/esm/sandbox/filesystem/filesystem.js +1 -1
- package/dist/esm-browser/.tsbuildinfo +1 -1
- package/dist/esm-browser/client/sdk.gen.js +2 -2
- package/dist/esm-browser/common/settings.js +2 -2
- package/dist/esm-browser/sandbox/client/sdk.gen.js +42 -10
- package/dist/esm-browser/sandbox/filesystem/filesystem.js +1 -1
- package/package.json +1 -1
|
@@ -51,6 +51,9 @@ export type ArchiveManifest = {
|
|
|
51
51
|
};
|
|
52
52
|
export type ContentSearchMatch = {
|
|
53
53
|
column: number;
|
|
54
|
+
/**
|
|
55
|
+
* The matching line with up to contextLines lines before and after it, newline-separated; omitted when contextLines is 0
|
|
56
|
+
*/
|
|
54
57
|
context?: string;
|
|
55
58
|
line: number;
|
|
56
59
|
path: string;
|
|
@@ -278,11 +281,17 @@ export type FuzzySearchResponse = {
|
|
|
278
281
|
};
|
|
279
282
|
export type HealthResponse = {
|
|
280
283
|
arch: string;
|
|
284
|
+
/**
|
|
285
|
+
* Build time in RFC 3339 (UTC), or "unknown" for builds without it
|
|
286
|
+
*/
|
|
281
287
|
buildTime: string;
|
|
282
288
|
gitCommit: string;
|
|
283
289
|
goVersion: string;
|
|
284
290
|
lastUpgrade: UpgradeStatus;
|
|
285
291
|
os: string;
|
|
292
|
+
/**
|
|
293
|
+
* API start time in RFC 3339
|
|
294
|
+
*/
|
|
286
295
|
startedAt: string;
|
|
287
296
|
status: string;
|
|
288
297
|
upgradeCount: number;
|
|
@@ -344,6 +353,9 @@ export type PortMonitorRequest = {
|
|
|
344
353
|
callback?: string;
|
|
345
354
|
};
|
|
346
355
|
export type ProcessLogs = {
|
|
356
|
+
/**
|
|
357
|
+
* Concatenation of the returned stdout followed by the returned stderr. Output from the two streams is not interleaved.
|
|
358
|
+
*/
|
|
347
359
|
logs: string;
|
|
348
360
|
stderr: string;
|
|
349
361
|
stdout: string;
|
|
@@ -377,6 +389,9 @@ export type ProcessRequest = {
|
|
|
377
389
|
};
|
|
378
390
|
export type ProcessResponse = {
|
|
379
391
|
command: string;
|
|
392
|
+
/**
|
|
393
|
+
* Completion time, same format as startedAt. Empty string while the process runs
|
|
394
|
+
*/
|
|
380
395
|
completedAt: string;
|
|
381
396
|
exitCode: number;
|
|
382
397
|
/**
|
|
@@ -389,6 +404,9 @@ export type ProcessResponse = {
|
|
|
389
404
|
pid: string;
|
|
390
405
|
restartCount?: number;
|
|
391
406
|
restartOnFailure?: boolean;
|
|
407
|
+
/**
|
|
408
|
+
* Start time as an HTTP date (RFC 1123, e.g. Wed, 01 Jan 2023 12:00:00 GMT)
|
|
409
|
+
*/
|
|
392
410
|
startedAt: string;
|
|
393
411
|
status: 'failed' | 'killed' | 'stopped' | 'running' | 'completed';
|
|
394
412
|
stderr: string;
|
|
@@ -578,7 +596,7 @@ export type PostArchiveExportErrors = {
|
|
|
578
596
|
*/
|
|
579
597
|
400: ErrorResponse;
|
|
580
598
|
/**
|
|
581
|
-
* An export is already in progress
|
|
599
|
+
* An export is already in progress, or the sandbox is frozen for a restore
|
|
582
600
|
*/
|
|
583
601
|
409: ErrorResponse;
|
|
584
602
|
/**
|
|
@@ -858,6 +876,10 @@ export type GetFilesystemContentSearchByPathData = {
|
|
|
858
876
|
* Comma-separated directory names to skip (default: node_modules,vendor,.git,dist,build,target,__pycache__,.venv,.next,coverage)
|
|
859
877
|
*/
|
|
860
878
|
excludeDirs?: string;
|
|
879
|
+
/**
|
|
880
|
+
* Lines to include before and after each match in its context field (default: 0, max: 20; invalid values count as 0)
|
|
881
|
+
*/
|
|
882
|
+
contextLines?: number;
|
|
861
883
|
};
|
|
862
884
|
url: '/filesystem-content-search/{path}';
|
|
863
885
|
};
|
|
@@ -1143,12 +1165,16 @@ export type GetFilesystemSearchByPathData = {
|
|
|
1143
1165
|
path: string;
|
|
1144
1166
|
};
|
|
1145
1167
|
query?: {
|
|
1168
|
+
/**
|
|
1169
|
+
* Fuzzy pattern matched against each relative path (e.g., mngo for src/main.go). When omitted, the search path itself is used as the pattern.
|
|
1170
|
+
*/
|
|
1171
|
+
query?: string;
|
|
1146
1172
|
/**
|
|
1147
1173
|
* Maximum number of results to return (default: 20)
|
|
1148
1174
|
*/
|
|
1149
1175
|
maxResults?: number;
|
|
1150
1176
|
/**
|
|
1151
|
-
*
|
|
1177
|
+
* Accepted for compatibility but currently ignored; use filesystem-find for glob filtering
|
|
1152
1178
|
*/
|
|
1153
1179
|
patterns?: string;
|
|
1154
1180
|
/**
|
|
@@ -1226,7 +1252,7 @@ export type GetFilesystemByPathData = {
|
|
|
1226
1252
|
body?: never;
|
|
1227
1253
|
path: {
|
|
1228
1254
|
/**
|
|
1229
|
-
* File or directory path
|
|
1255
|
+
* File or directory path. Relative paths are resolved against the filesystem working directory. For example, with a working directory of /app, GET /filesystem/workspace resolves to /app/workspace. To access the absolute path /workspace over HTTP, encode its leading slash as %2F: GET /filesystem/%2Fworkspace. The double-slash form GET /filesystem//workspace also addresses /workspace.
|
|
1230
1256
|
*/
|
|
1231
1257
|
path: string;
|
|
1232
1258
|
};
|
|
@@ -1260,6 +1286,23 @@ export type GetFilesystemByPathResponses = {
|
|
|
1260
1286
|
200: Directory | FileWithContent | (Blob | File);
|
|
1261
1287
|
};
|
|
1262
1288
|
export type GetFilesystemByPathResponse = GetFilesystemByPathResponses[keyof GetFilesystemByPathResponses];
|
|
1289
|
+
export type HeadFilesystemByPathData = {
|
|
1290
|
+
body?: never;
|
|
1291
|
+
path: {
|
|
1292
|
+
/**
|
|
1293
|
+
* File or directory path
|
|
1294
|
+
*/
|
|
1295
|
+
path: string;
|
|
1296
|
+
};
|
|
1297
|
+
query?: never;
|
|
1298
|
+
url: '/filesystem/{path}';
|
|
1299
|
+
};
|
|
1300
|
+
export type HeadFilesystemByPathResponses = {
|
|
1301
|
+
/**
|
|
1302
|
+
* Path metadata (X-File-Type is set only when stat succeeds)
|
|
1303
|
+
*/
|
|
1304
|
+
200: unknown;
|
|
1305
|
+
};
|
|
1263
1306
|
export type PutFilesystemByPathData = {
|
|
1264
1307
|
/**
|
|
1265
1308
|
* File or directory details
|
|
@@ -1364,7 +1407,7 @@ export type GetFilesystemTreeByPathResponses = {
|
|
|
1364
1407
|
/**
|
|
1365
1408
|
* Directory tree
|
|
1366
1409
|
*/
|
|
1367
|
-
200: Directory
|
|
1410
|
+
200: Directory;
|
|
1368
1411
|
};
|
|
1369
1412
|
export type GetFilesystemTreeByPathResponse = GetFilesystemTreeByPathResponses[keyof GetFilesystemTreeByPathResponses];
|
|
1370
1413
|
export type PutFilesystemTreeByPathData = {
|
|
@@ -1400,7 +1443,7 @@ export type PutFilesystemTreeByPathResponses = {
|
|
|
1400
1443
|
/**
|
|
1401
1444
|
* Updated directory tree
|
|
1402
1445
|
*/
|
|
1403
|
-
200: Directory
|
|
1446
|
+
200: Directory;
|
|
1404
1447
|
};
|
|
1405
1448
|
export type PutFilesystemTreeByPathResponse = PutFilesystemTreeByPathResponses[keyof PutFilesystemTreeByPathResponses];
|
|
1406
1449
|
export type GetHealthData = {
|
|
@@ -1651,7 +1694,7 @@ export type DeleteProcessByIdentifierErrors = {
|
|
|
1651
1694
|
export type DeleteProcessByIdentifierError = DeleteProcessByIdentifierErrors[keyof DeleteProcessByIdentifierErrors];
|
|
1652
1695
|
export type DeleteProcessByIdentifierResponses = {
|
|
1653
1696
|
/**
|
|
1654
|
-
* Process
|
|
1697
|
+
* Process stop requested
|
|
1655
1698
|
*/
|
|
1656
1699
|
200: SuccessResponse;
|
|
1657
1700
|
};
|
|
@@ -1709,7 +1752,7 @@ export type DeleteProcessByIdentifierKillErrors = {
|
|
|
1709
1752
|
export type DeleteProcessByIdentifierKillError = DeleteProcessByIdentifierKillErrors[keyof DeleteProcessByIdentifierKillErrors];
|
|
1710
1753
|
export type DeleteProcessByIdentifierKillResponses = {
|
|
1711
1754
|
/**
|
|
1712
|
-
* Process
|
|
1755
|
+
* Process kill requested
|
|
1713
1756
|
*/
|
|
1714
1757
|
200: SuccessResponse;
|
|
1715
1758
|
};
|
|
@@ -1749,6 +1792,12 @@ export type GetProcessByIdentifierLogsResponses = {
|
|
|
1749
1792
|
export type GetProcessByIdentifierLogsResponse = GetProcessByIdentifierLogsResponses[keyof GetProcessByIdentifierLogsResponses];
|
|
1750
1793
|
export type GetProcessByIdentifierLogsStreamData = {
|
|
1751
1794
|
body?: never;
|
|
1795
|
+
headers?: {
|
|
1796
|
+
/**
|
|
1797
|
+
* Explicit application/x-ndjson opts into structured records; absent or wildcard Accept retains text/plain. Supported explicit media types honor q weights, preferring NDJSON on a tie.
|
|
1798
|
+
*/
|
|
1799
|
+
Accept?: string;
|
|
1800
|
+
};
|
|
1752
1801
|
path: {
|
|
1753
1802
|
/**
|
|
1754
1803
|
* Process identifier (PID or name)
|
|
@@ -1759,14 +1808,18 @@ export type GetProcessByIdentifierLogsStreamData = {
|
|
|
1759
1808
|
url: '/process/{identifier}/logs/stream';
|
|
1760
1809
|
};
|
|
1761
1810
|
export type GetProcessByIdentifierLogsStreamErrors = {
|
|
1811
|
+
/**
|
|
1812
|
+
* Invalid process identifier
|
|
1813
|
+
*/
|
|
1814
|
+
400: ErrorResponse;
|
|
1762
1815
|
/**
|
|
1763
1816
|
* Process not found
|
|
1764
1817
|
*/
|
|
1765
1818
|
404: ErrorResponse;
|
|
1766
1819
|
/**
|
|
1767
|
-
*
|
|
1820
|
+
* Structured history unavailable for this older process
|
|
1768
1821
|
*/
|
|
1769
|
-
|
|
1822
|
+
409: ErrorResponse;
|
|
1770
1823
|
/**
|
|
1771
1824
|
* Internal server error
|
|
1772
1825
|
*/
|
|
@@ -1775,7 +1828,7 @@ export type GetProcessByIdentifierLogsStreamErrors = {
|
|
|
1775
1828
|
export type GetProcessByIdentifierLogsStreamError = GetProcessByIdentifierLogsStreamErrors[keyof GetProcessByIdentifierLogsStreamErrors];
|
|
1776
1829
|
export type GetProcessByIdentifierLogsStreamResponses = {
|
|
1777
1830
|
/**
|
|
1778
|
-
*
|
|
1831
|
+
* Process output as prefixed text or NDJSON records
|
|
1779
1832
|
*/
|
|
1780
1833
|
200: string;
|
|
1781
1834
|
};
|
|
@@ -1880,13 +1933,13 @@ export type GetWatchFilesystemByPathData = {
|
|
|
1880
1933
|
body?: never;
|
|
1881
1934
|
path: {
|
|
1882
1935
|
/**
|
|
1883
|
-
* Directory path to watch
|
|
1936
|
+
* Directory path to watch (append ** to watch subdirectories)
|
|
1884
1937
|
*/
|
|
1885
1938
|
path: string;
|
|
1886
1939
|
};
|
|
1887
1940
|
query?: {
|
|
1888
1941
|
/**
|
|
1889
|
-
*
|
|
1942
|
+
* Comma-separated substrings; events whose full path contains one are skipped
|
|
1890
1943
|
*/
|
|
1891
1944
|
ignore?: string;
|
|
1892
1945
|
};
|
|
@@ -1905,7 +1958,7 @@ export type GetWatchFilesystemByPathErrors = {
|
|
|
1905
1958
|
export type GetWatchFilesystemByPathError = GetWatchFilesystemByPathErrors[keyof GetWatchFilesystemByPathErrors];
|
|
1906
1959
|
export type GetWatchFilesystemByPathResponses = {
|
|
1907
1960
|
/**
|
|
1908
|
-
*
|
|
1961
|
+
* JSON lines stream of change events
|
|
1909
1962
|
*/
|
|
1910
1963
|
200: string;
|
|
1911
1964
|
};
|