@north-light/api 0.3.494 → 0.3.495
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/api/contract.d.ts +1 -1
- package/dist/api/contract.js +1 -1
- package/dist/api/dto/limits.d.ts +15 -1
- package/package.json +1 -1
package/dist/api/contract.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** The contract level this build serves and requires. Written by `scripts/contract.mjs release`; never edit by hand. */
|
|
2
|
-
export declare const CONTRACT_LEVEL = "1.
|
|
2
|
+
export declare const CONTRACT_LEVEL = "1.15";
|
|
3
3
|
/** Request header naming the one contract level the caller needs, e.g. `1.3`. Optional: absent means no check. */
|
|
4
4
|
export declare const REQUIRED_CONTRACT_HEADER = "Crouter-Required-Contract";
|
|
5
5
|
/** Response header listing the contract levels the server serves, comma-separated, one per major, e.g. `1.3`. */
|
package/dist/api/contract.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
//
|
|
13
13
|
// PURITY (spec §3.1): Node built-ins + `src/api/*` only.
|
|
14
14
|
/** The contract level this build serves and requires. Written by `scripts/contract.mjs release`; never edit by hand. */
|
|
15
|
-
export const CONTRACT_LEVEL = '1.
|
|
15
|
+
export const CONTRACT_LEVEL = '1.15';
|
|
16
16
|
/** Request header naming the one contract level the caller needs, e.g. `1.3`. Optional: absent means no check. */
|
|
17
17
|
export const REQUIRED_CONTRACT_HEADER = 'Crouter-Required-Contract';
|
|
18
18
|
/** Response header listing the contract levels the server serves, comma-separated, one per major, e.g. `1.3`. */
|
package/dist/api/dto/limits.d.ts
CHANGED
|
@@ -5,9 +5,21 @@ export interface AppLimitsDTO {
|
|
|
5
5
|
disk_bytes: number | null;
|
|
6
6
|
memory_source: 'default' | 'override';
|
|
7
7
|
disk_source: 'default' | 'override';
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Bytes under the app's folder: the project quota's count when disk quota is on, otherwise a
|
|
10
|
+
* directory walk (up to a minute old). Null when the host has no launcher, the walk has not finished or failed, or the app has no folder yet.
|
|
11
|
+
*/
|
|
9
12
|
disk_used_bytes: number | null;
|
|
10
13
|
}
|
|
14
|
+
/** The runtime's data volume and what fills it. Absent when the host has no launcher. */
|
|
15
|
+
export interface DataDiskDTO {
|
|
16
|
+
total_bytes: number;
|
|
17
|
+
used_bytes: number;
|
|
18
|
+
/** Bytes under the person's /user folder, or null when it could not be measured. */
|
|
19
|
+
user_bytes: number | null;
|
|
20
|
+
/** Bytes under the runtime directory (canvas, logs, limits state), or null when it could not be measured. */
|
|
21
|
+
runtime_bytes: number | null;
|
|
22
|
+
}
|
|
11
23
|
export interface LimitsDTO {
|
|
12
24
|
/** False when this host cannot enforce the limit; `reason` says why. Caps are still recorded. */
|
|
13
25
|
memory_enforced: boolean;
|
|
@@ -15,6 +27,8 @@ export interface LimitsDTO {
|
|
|
15
27
|
disk_enforced: boolean;
|
|
16
28
|
disk_reason: string | null;
|
|
17
29
|
apps: AppLimitsDTO[];
|
|
30
|
+
/** Present when the host measures its data volume. */
|
|
31
|
+
data_disk?: DataDiskDTO;
|
|
18
32
|
}
|
|
19
33
|
/** `PUT /v1/limits/apps/{app}`: omitted fields stay as they were. A value is a byte count or `unlimited`. */
|
|
20
34
|
export interface SetAppLimitsRequest {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@north-light/api",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.495",
|
|
4
4
|
"description": "Typed crtrd /v1 API contract — DTOs, route builders, the error contract, the CrtrClient, and the command-plugin manifest format. Zero runtime dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/api/index.js",
|