@lizard-build/sdk 0.1.68 → 0.1.69
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/index.d.mts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1494,12 +1494,16 @@ interface WorkspaceLimits {
|
|
|
1494
1494
|
maxCpuVcpus: number | null;
|
|
1495
1495
|
/** Memory (MB) its apps and databases may be using right now (measured). */
|
|
1496
1496
|
maxMemoryMb: number | null;
|
|
1497
|
+
/** SSD (GB) its databases and volumes may hold (measured: data written, not sizes asked for). */
|
|
1498
|
+
maxDiskGb: number | null;
|
|
1497
1499
|
}
|
|
1498
1500
|
interface WorkspaceUsage {
|
|
1499
1501
|
runningSandboxes: number;
|
|
1500
1502
|
/** Measured, all regions, its apps and databases. */
|
|
1501
1503
|
cpuVcpus: number;
|
|
1502
1504
|
memoryMb: number;
|
|
1505
|
+
/** SSD (GB) its databases and volumes hold, last measurement of each. */
|
|
1506
|
+
diskGb: number;
|
|
1503
1507
|
/** Unix ms of the oldest reading in the sum; null when nothing was measured. */
|
|
1504
1508
|
measuredAt: number | null;
|
|
1505
1509
|
}
|
|
@@ -1587,9 +1591,12 @@ declare class WorkspacesAPI {
|
|
|
1587
1591
|
* not their configured limits). While at or over a cap, deploys, redeploys, restarts,
|
|
1588
1592
|
* scale-ups, new databases and resumes there fail with HTTP 429 `WORKSPACE_USAGE_LIMIT`;
|
|
1589
1593
|
* services already running keep running.
|
|
1594
|
+
* - `maxDiskGb`: the SSD its databases and volumes hold (measured, not their sizes). While at
|
|
1595
|
+
* or over it, new volumes, volume growth, new databases and template deploys fail with
|
|
1596
|
+
* HTTP 429 `WORKSPACE_USAGE_LIMIT`; data already written stays.
|
|
1590
1597
|
*
|
|
1591
1598
|
* ```ts
|
|
1592
|
-
* await lizard.workspaces.setLimits(ws.id, { maxRunningSandboxes: 5, maxCpuVcpus: 2, maxMemoryMb: 4096 })
|
|
1599
|
+
* await lizard.workspaces.setLimits(ws.id, { maxRunningSandboxes: 5, maxCpuVcpus: 2, maxMemoryMb: 4096, maxDiskGb: 20 })
|
|
1593
1600
|
* ```
|
|
1594
1601
|
*/
|
|
1595
1602
|
setLimits(id: string, limits: Partial<WorkspaceLimits>): Promise<WorkspaceLimitsInfo>;
|
|
@@ -2274,6 +2281,7 @@ declare class LimitExceededError extends LizardError {
|
|
|
2274
2281
|
runningSandboxes: number;
|
|
2275
2282
|
cpuVcpus: number;
|
|
2276
2283
|
memoryMb: number;
|
|
2284
|
+
diskGb?: number;
|
|
2277
2285
|
measuredAt: number | null;
|
|
2278
2286
|
};
|
|
2279
2287
|
/** `WORKSPACE_USAGE_LIMIT`: the workspace's limits. */
|
|
@@ -2281,6 +2289,7 @@ declare class LimitExceededError extends LizardError {
|
|
|
2281
2289
|
maxRunningSandboxes: number | null;
|
|
2282
2290
|
maxCpuVcpus: number | null;
|
|
2283
2291
|
maxMemoryMb: number | null;
|
|
2292
|
+
maxDiskGb?: number | null;
|
|
2284
2293
|
};
|
|
2285
2294
|
constructor(message?: string);
|
|
2286
2295
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1494,12 +1494,16 @@ interface WorkspaceLimits {
|
|
|
1494
1494
|
maxCpuVcpus: number | null;
|
|
1495
1495
|
/** Memory (MB) its apps and databases may be using right now (measured). */
|
|
1496
1496
|
maxMemoryMb: number | null;
|
|
1497
|
+
/** SSD (GB) its databases and volumes may hold (measured: data written, not sizes asked for). */
|
|
1498
|
+
maxDiskGb: number | null;
|
|
1497
1499
|
}
|
|
1498
1500
|
interface WorkspaceUsage {
|
|
1499
1501
|
runningSandboxes: number;
|
|
1500
1502
|
/** Measured, all regions, its apps and databases. */
|
|
1501
1503
|
cpuVcpus: number;
|
|
1502
1504
|
memoryMb: number;
|
|
1505
|
+
/** SSD (GB) its databases and volumes hold, last measurement of each. */
|
|
1506
|
+
diskGb: number;
|
|
1503
1507
|
/** Unix ms of the oldest reading in the sum; null when nothing was measured. */
|
|
1504
1508
|
measuredAt: number | null;
|
|
1505
1509
|
}
|
|
@@ -1587,9 +1591,12 @@ declare class WorkspacesAPI {
|
|
|
1587
1591
|
* not their configured limits). While at or over a cap, deploys, redeploys, restarts,
|
|
1588
1592
|
* scale-ups, new databases and resumes there fail with HTTP 429 `WORKSPACE_USAGE_LIMIT`;
|
|
1589
1593
|
* services already running keep running.
|
|
1594
|
+
* - `maxDiskGb`: the SSD its databases and volumes hold (measured, not their sizes). While at
|
|
1595
|
+
* or over it, new volumes, volume growth, new databases and template deploys fail with
|
|
1596
|
+
* HTTP 429 `WORKSPACE_USAGE_LIMIT`; data already written stays.
|
|
1590
1597
|
*
|
|
1591
1598
|
* ```ts
|
|
1592
|
-
* await lizard.workspaces.setLimits(ws.id, { maxRunningSandboxes: 5, maxCpuVcpus: 2, maxMemoryMb: 4096 })
|
|
1599
|
+
* await lizard.workspaces.setLimits(ws.id, { maxRunningSandboxes: 5, maxCpuVcpus: 2, maxMemoryMb: 4096, maxDiskGb: 20 })
|
|
1593
1600
|
* ```
|
|
1594
1601
|
*/
|
|
1595
1602
|
setLimits(id: string, limits: Partial<WorkspaceLimits>): Promise<WorkspaceLimitsInfo>;
|
|
@@ -2274,6 +2281,7 @@ declare class LimitExceededError extends LizardError {
|
|
|
2274
2281
|
runningSandboxes: number;
|
|
2275
2282
|
cpuVcpus: number;
|
|
2276
2283
|
memoryMb: number;
|
|
2284
|
+
diskGb?: number;
|
|
2277
2285
|
measuredAt: number | null;
|
|
2278
2286
|
};
|
|
2279
2287
|
/** `WORKSPACE_USAGE_LIMIT`: the workspace's limits. */
|
|
@@ -2281,6 +2289,7 @@ declare class LimitExceededError extends LizardError {
|
|
|
2281
2289
|
maxRunningSandboxes: number | null;
|
|
2282
2290
|
maxCpuVcpus: number | null;
|
|
2283
2291
|
maxMemoryMb: number | null;
|
|
2292
|
+
maxDiskGb?: number | null;
|
|
2284
2293
|
};
|
|
2285
2294
|
constructor(message?: string);
|
|
2286
2295
|
}
|
package/dist/index.js
CHANGED
|
@@ -1786,9 +1786,12 @@ var WorkspacesAPI = class {
|
|
|
1786
1786
|
* not their configured limits). While at or over a cap, deploys, redeploys, restarts,
|
|
1787
1787
|
* scale-ups, new databases and resumes there fail with HTTP 429 `WORKSPACE_USAGE_LIMIT`;
|
|
1788
1788
|
* services already running keep running.
|
|
1789
|
+
* - `maxDiskGb`: the SSD its databases and volumes hold (measured, not their sizes). While at
|
|
1790
|
+
* or over it, new volumes, volume growth, new databases and template deploys fail with
|
|
1791
|
+
* HTTP 429 `WORKSPACE_USAGE_LIMIT`; data already written stays.
|
|
1789
1792
|
*
|
|
1790
1793
|
* ```ts
|
|
1791
|
-
* await lizard.workspaces.setLimits(ws.id, { maxRunningSandboxes: 5, maxCpuVcpus: 2, maxMemoryMb: 4096 })
|
|
1794
|
+
* await lizard.workspaces.setLimits(ws.id, { maxRunningSandboxes: 5, maxCpuVcpus: 2, maxMemoryMb: 4096, maxDiskGb: 20 })
|
|
1792
1795
|
* ```
|
|
1793
1796
|
*/
|
|
1794
1797
|
setLimits(id, limits) {
|
package/dist/index.mjs
CHANGED
|
@@ -1732,9 +1732,12 @@ var WorkspacesAPI = class {
|
|
|
1732
1732
|
* not their configured limits). While at or over a cap, deploys, redeploys, restarts,
|
|
1733
1733
|
* scale-ups, new databases and resumes there fail with HTTP 429 `WORKSPACE_USAGE_LIMIT`;
|
|
1734
1734
|
* services already running keep running.
|
|
1735
|
+
* - `maxDiskGb`: the SSD its databases and volumes hold (measured, not their sizes). While at
|
|
1736
|
+
* or over it, new volumes, volume growth, new databases and template deploys fail with
|
|
1737
|
+
* HTTP 429 `WORKSPACE_USAGE_LIMIT`; data already written stays.
|
|
1735
1738
|
*
|
|
1736
1739
|
* ```ts
|
|
1737
|
-
* await lizard.workspaces.setLimits(ws.id, { maxRunningSandboxes: 5, maxCpuVcpus: 2, maxMemoryMb: 4096 })
|
|
1740
|
+
* await lizard.workspaces.setLimits(ws.id, { maxRunningSandboxes: 5, maxCpuVcpus: 2, maxMemoryMb: 4096, maxDiskGb: 20 })
|
|
1738
1741
|
* ```
|
|
1739
1742
|
*/
|
|
1740
1743
|
setLimits(id, limits) {
|
package/package.json
CHANGED