@camstack/types 1.2.566 → 1.2.568
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/CHANGELOG.md +19 -0
- package/dist/addon.js +14 -4
- package/dist/addon.mjs +14 -4
- package/dist/capabilities/climate-control.cap.d.ts +48 -0
- package/dist/capabilities/control-select-navigation.d.ts +59 -0
- package/dist/capabilities/control.cap.d.ts +32 -0
- package/dist/capabilities/core-blocks.cap.d.ts +11 -0
- package/dist/capabilities/index.d.ts +2 -1
- package/dist/capabilities/notification-rules.cap.d.ts +46 -0
- package/dist/capabilities/osd-manager.cap.d.ts +12 -0
- package/dist/client.js +55 -4
- package/dist/client.mjs +55 -4
- package/dist/enums/event-category.d.ts +12 -0
- package/dist/enums.js +1 -1
- package/dist/enums.mjs +1 -1
- package/dist/{event-category-Dv-Gcv1f.mjs → event-category-Dhcd0TRH.mjs} +12 -0
- package/dist/{event-category-Ps2LC8dN.js → event-category-d9kiqCqC.js} +12 -0
- package/dist/generated/addon-api.d.ts +28 -0
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/cap-input-defaults.d.ts +1 -1
- package/dist/generated/collection-array-methods.d.ts +1 -1
- package/dist/generated/customize-catalog.d.ts +54 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +1 -1
- package/dist/index.js +369 -16
- package/dist/index.mjs +367 -17
- package/dist/{sleep-mEzgbYFJ.js → sleep-BTb3-IPb.js} +87 -1
- package/dist/{sleep-B5XPl2YP.mjs → sleep-DEd_klYQ.mjs} +87 -1
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -23335,6 +23335,8 @@ var NcSystemEventKindSchema = zod.z.enum([
|
|
|
23335
23335
|
"storage-location-low",
|
|
23336
23336
|
"storage-location-critical",
|
|
23337
23337
|
"storage-location-ok",
|
|
23338
|
+
"storage-drain-progress",
|
|
23339
|
+
"storage-drain-complete",
|
|
23338
23340
|
"addon-crash-loop",
|
|
23339
23341
|
"addon-update-available",
|
|
23340
23342
|
"server-update-available",
|
|
@@ -27607,6 +27609,10 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
27607
27609
|
const contactInterface = { getStatus: (input) => dispatch("contact", "contact", "getStatus", "query", input) };
|
|
27608
27610
|
const controlInterface = {
|
|
27609
27611
|
setValue: (input) => dispatch("control", "control", "setValue", "mutation", input),
|
|
27612
|
+
next: (input) => dispatch("control", "control", "next", "mutation", input),
|
|
27613
|
+
previous: (input) => dispatch("control", "control", "previous", "mutation", input),
|
|
27614
|
+
first: (input) => dispatch("control", "control", "first", "mutation", input),
|
|
27615
|
+
last: (input) => dispatch("control", "control", "last", "mutation", input),
|
|
27610
27616
|
getStatus: (input) => dispatch("control", "control", "getStatus", "query", input)
|
|
27611
27617
|
};
|
|
27612
27618
|
const coverInterface = {
|
|
@@ -30347,7 +30353,7 @@ function systemEventFilterApplies(kind, filter) {
|
|
|
30347
30353
|
switch (filter) {
|
|
30348
30354
|
case "deviceIds": return kind.startsWith("device-") || kind.startsWith("stream-") || kind === "detection-blind" || kind.startsWith("motion-") || kind.startsWith("package-llm-") || kind.startsWith("recording-") || kind === "alarm-triggered";
|
|
30349
30355
|
case "deviceTypes": return kind.startsWith("device-") || kind === "detection-blind" || kind.startsWith("motion-") || kind.startsWith("package-llm-");
|
|
30350
|
-
case "nodeIds": return kind.startsWith("node-") || kind === "addon-crash-loop" || kind === "addon-update-available" || kind === "addon-updated" || kind === "server-update-available" || kind === "wrapper-update-available" || kind === "server-updated" || kind.startsWith("storage-location-") || kind.startsWith("alert-");
|
|
30356
|
+
case "nodeIds": return kind.startsWith("node-") || kind === "addon-crash-loop" || kind === "addon-update-available" || kind === "addon-updated" || kind === "server-update-available" || kind === "wrapper-update-available" || kind === "server-updated" || kind.startsWith("storage-location-") || kind.startsWith("storage-drain-") || kind.startsWith("alert-");
|
|
30351
30357
|
case "packageNames": return kind.endsWith("update-available") || kind === "addon-updated" || kind === "node-updating" || kind === "server-updated";
|
|
30352
30358
|
case "consumableLowPercent": return NC_CONSUMABLE_SYSTEM_EVENT_KINDS.includes(kind);
|
|
30353
30359
|
case "commandActions":
|
|
@@ -30435,6 +30441,8 @@ var NC_SYSTEM_EVENT_FAMILY = {
|
|
|
30435
30441
|
"storage-location-low": "system",
|
|
30436
30442
|
"storage-location-critical": "system",
|
|
30437
30443
|
"storage-location-ok": "system",
|
|
30444
|
+
"storage-drain-progress": "system",
|
|
30445
|
+
"storage-drain-complete": "system",
|
|
30438
30446
|
"alarm-triggered": "alarm",
|
|
30439
30447
|
"alarm-armed": "alarm",
|
|
30440
30448
|
"alarm-disarmed": "alarm",
|
|
@@ -30591,6 +30599,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
30591
30599
|
"storage-location-ok"
|
|
30592
30600
|
]
|
|
30593
30601
|
},
|
|
30602
|
+
{
|
|
30603
|
+
id: "storage-drain",
|
|
30604
|
+
family: "system",
|
|
30605
|
+
label: "Storage drain progress",
|
|
30606
|
+
kinds: ["storage-drain-progress", "storage-drain-complete"]
|
|
30607
|
+
},
|
|
30594
30608
|
{
|
|
30595
30609
|
id: "alerts",
|
|
30596
30610
|
family: "system",
|
|
@@ -31512,6 +31526,7 @@ var ALERT_EPISODE = [
|
|
|
31512
31526
|
"alert-error",
|
|
31513
31527
|
"alert-critical-resolved"
|
|
31514
31528
|
];
|
|
31529
|
+
var STORAGE_DRAIN = ["storage-drain-progress", "storage-drain-complete"];
|
|
31515
31530
|
var DEVICE_ATTENTION = ["device-attention-required", "device-attention-resolved"];
|
|
31516
31531
|
var UPDATES = [
|
|
31517
31532
|
"addon-update-available",
|
|
@@ -32156,6 +32171,7 @@ var NC_TEMPLATE_VARS = [
|
|
|
32156
32171
|
"storage-location-low",
|
|
32157
32172
|
"storage-location-critical",
|
|
32158
32173
|
"storage-location-ok",
|
|
32174
|
+
...STORAGE_DRAIN,
|
|
32159
32175
|
...ALERT_EPISODE
|
|
32160
32176
|
]
|
|
32161
32177
|
},
|
|
@@ -32179,6 +32195,7 @@ var NC_TEMPLATE_VARS = [
|
|
|
32179
32195
|
"storage-location-low",
|
|
32180
32196
|
"storage-location-critical",
|
|
32181
32197
|
"storage-location-ok",
|
|
32198
|
+
...STORAGE_DRAIN,
|
|
32182
32199
|
...ALERT_EPISODE
|
|
32183
32200
|
]
|
|
32184
32201
|
},
|
|
@@ -32344,7 +32361,8 @@ var NC_TEMPLATE_VARS = [
|
|
|
32344
32361
|
systemEventKinds: [
|
|
32345
32362
|
"storage-location-low",
|
|
32346
32363
|
"storage-location-critical",
|
|
32347
|
-
"storage-location-ok"
|
|
32364
|
+
"storage-location-ok",
|
|
32365
|
+
...STORAGE_DRAIN
|
|
32348
32366
|
]
|
|
32349
32367
|
},
|
|
32350
32368
|
{
|
|
@@ -32358,9 +32376,40 @@ var NC_TEMPLATE_VARS = [
|
|
|
32358
32376
|
systemEventKinds: [
|
|
32359
32377
|
"storage-location-low",
|
|
32360
32378
|
"storage-location-critical",
|
|
32361
|
-
"storage-location-ok"
|
|
32379
|
+
"storage-location-ok",
|
|
32380
|
+
...STORAGE_DRAIN
|
|
32362
32381
|
]
|
|
32363
32382
|
},
|
|
32383
|
+
{
|
|
32384
|
+
name: "bytesRemainingGb",
|
|
32385
|
+
label: "Bytes remaining (GB)",
|
|
32386
|
+
example: "42.3",
|
|
32387
|
+
group: "system",
|
|
32388
|
+
families: ["rule"],
|
|
32389
|
+
fields: [...RULE_TEXT],
|
|
32390
|
+
kinds: ["system"],
|
|
32391
|
+
systemEventKinds: ["storage-drain-progress"]
|
|
32392
|
+
},
|
|
32393
|
+
{
|
|
32394
|
+
name: "rateGbPerDay",
|
|
32395
|
+
label: "Drain rate (GB/day)",
|
|
32396
|
+
example: "1.20",
|
|
32397
|
+
group: "system",
|
|
32398
|
+
families: ["rule"],
|
|
32399
|
+
fields: [...RULE_TEXT],
|
|
32400
|
+
kinds: ["system"],
|
|
32401
|
+
systemEventKinds: ["storage-drain-progress"]
|
|
32402
|
+
},
|
|
32403
|
+
{
|
|
32404
|
+
name: "etaDate",
|
|
32405
|
+
label: "Estimated empty date",
|
|
32406
|
+
example: "2026-12-01",
|
|
32407
|
+
group: "system",
|
|
32408
|
+
families: ["rule"],
|
|
32409
|
+
fields: [...RULE_TEXT],
|
|
32410
|
+
kinds: ["system"],
|
|
32411
|
+
systemEventKinds: ["storage-drain-progress"]
|
|
32412
|
+
},
|
|
32364
32413
|
{
|
|
32365
32414
|
name: "freePercent",
|
|
32366
32415
|
label: "Free space (%)",
|
|
@@ -32795,7 +32844,9 @@ var NC_TEMPLATE_HELD_BACK_SYSTEM_EVENT_KINDS = [
|
|
|
32795
32844
|
"rule-repaired",
|
|
32796
32845
|
"package-llm-silent",
|
|
32797
32846
|
"package-llm-answered",
|
|
32798
|
-
"device-command"
|
|
32847
|
+
"device-command",
|
|
32848
|
+
"storage-drain-progress",
|
|
32849
|
+
"storage-drain-complete"
|
|
32799
32850
|
];
|
|
32800
32851
|
/**
|
|
32801
32852
|
* Is this descriptor held back from the SERVED catalog as a whole (D647)?
|
package/dist/client.mjs
CHANGED
|
@@ -23334,6 +23334,8 @@ var NcSystemEventKindSchema = z.enum([
|
|
|
23334
23334
|
"storage-location-low",
|
|
23335
23335
|
"storage-location-critical",
|
|
23336
23336
|
"storage-location-ok",
|
|
23337
|
+
"storage-drain-progress",
|
|
23338
|
+
"storage-drain-complete",
|
|
23337
23339
|
"addon-crash-loop",
|
|
23338
23340
|
"addon-update-available",
|
|
23339
23341
|
"server-update-available",
|
|
@@ -27606,6 +27608,10 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
27606
27608
|
const contactInterface = { getStatus: (input) => dispatch("contact", "contact", "getStatus", "query", input) };
|
|
27607
27609
|
const controlInterface = {
|
|
27608
27610
|
setValue: (input) => dispatch("control", "control", "setValue", "mutation", input),
|
|
27611
|
+
next: (input) => dispatch("control", "control", "next", "mutation", input),
|
|
27612
|
+
previous: (input) => dispatch("control", "control", "previous", "mutation", input),
|
|
27613
|
+
first: (input) => dispatch("control", "control", "first", "mutation", input),
|
|
27614
|
+
last: (input) => dispatch("control", "control", "last", "mutation", input),
|
|
27609
27615
|
getStatus: (input) => dispatch("control", "control", "getStatus", "query", input)
|
|
27610
27616
|
};
|
|
27611
27617
|
const coverInterface = {
|
|
@@ -30346,7 +30352,7 @@ function systemEventFilterApplies(kind, filter) {
|
|
|
30346
30352
|
switch (filter) {
|
|
30347
30353
|
case "deviceIds": return kind.startsWith("device-") || kind.startsWith("stream-") || kind === "detection-blind" || kind.startsWith("motion-") || kind.startsWith("package-llm-") || kind.startsWith("recording-") || kind === "alarm-triggered";
|
|
30348
30354
|
case "deviceTypes": return kind.startsWith("device-") || kind === "detection-blind" || kind.startsWith("motion-") || kind.startsWith("package-llm-");
|
|
30349
|
-
case "nodeIds": return kind.startsWith("node-") || kind === "addon-crash-loop" || kind === "addon-update-available" || kind === "addon-updated" || kind === "server-update-available" || kind === "wrapper-update-available" || kind === "server-updated" || kind.startsWith("storage-location-") || kind.startsWith("alert-");
|
|
30355
|
+
case "nodeIds": return kind.startsWith("node-") || kind === "addon-crash-loop" || kind === "addon-update-available" || kind === "addon-updated" || kind === "server-update-available" || kind === "wrapper-update-available" || kind === "server-updated" || kind.startsWith("storage-location-") || kind.startsWith("storage-drain-") || kind.startsWith("alert-");
|
|
30350
30356
|
case "packageNames": return kind.endsWith("update-available") || kind === "addon-updated" || kind === "node-updating" || kind === "server-updated";
|
|
30351
30357
|
case "consumableLowPercent": return NC_CONSUMABLE_SYSTEM_EVENT_KINDS.includes(kind);
|
|
30352
30358
|
case "commandActions":
|
|
@@ -30434,6 +30440,8 @@ var NC_SYSTEM_EVENT_FAMILY = {
|
|
|
30434
30440
|
"storage-location-low": "system",
|
|
30435
30441
|
"storage-location-critical": "system",
|
|
30436
30442
|
"storage-location-ok": "system",
|
|
30443
|
+
"storage-drain-progress": "system",
|
|
30444
|
+
"storage-drain-complete": "system",
|
|
30437
30445
|
"alarm-triggered": "alarm",
|
|
30438
30446
|
"alarm-armed": "alarm",
|
|
30439
30447
|
"alarm-disarmed": "alarm",
|
|
@@ -30590,6 +30598,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
30590
30598
|
"storage-location-ok"
|
|
30591
30599
|
]
|
|
30592
30600
|
},
|
|
30601
|
+
{
|
|
30602
|
+
id: "storage-drain",
|
|
30603
|
+
family: "system",
|
|
30604
|
+
label: "Storage drain progress",
|
|
30605
|
+
kinds: ["storage-drain-progress", "storage-drain-complete"]
|
|
30606
|
+
},
|
|
30593
30607
|
{
|
|
30594
30608
|
id: "alerts",
|
|
30595
30609
|
family: "system",
|
|
@@ -31511,6 +31525,7 @@ var ALERT_EPISODE = [
|
|
|
31511
31525
|
"alert-error",
|
|
31512
31526
|
"alert-critical-resolved"
|
|
31513
31527
|
];
|
|
31528
|
+
var STORAGE_DRAIN = ["storage-drain-progress", "storage-drain-complete"];
|
|
31514
31529
|
var DEVICE_ATTENTION = ["device-attention-required", "device-attention-resolved"];
|
|
31515
31530
|
var UPDATES = [
|
|
31516
31531
|
"addon-update-available",
|
|
@@ -32155,6 +32170,7 @@ var NC_TEMPLATE_VARS = [
|
|
|
32155
32170
|
"storage-location-low",
|
|
32156
32171
|
"storage-location-critical",
|
|
32157
32172
|
"storage-location-ok",
|
|
32173
|
+
...STORAGE_DRAIN,
|
|
32158
32174
|
...ALERT_EPISODE
|
|
32159
32175
|
]
|
|
32160
32176
|
},
|
|
@@ -32178,6 +32194,7 @@ var NC_TEMPLATE_VARS = [
|
|
|
32178
32194
|
"storage-location-low",
|
|
32179
32195
|
"storage-location-critical",
|
|
32180
32196
|
"storage-location-ok",
|
|
32197
|
+
...STORAGE_DRAIN,
|
|
32181
32198
|
...ALERT_EPISODE
|
|
32182
32199
|
]
|
|
32183
32200
|
},
|
|
@@ -32343,7 +32360,8 @@ var NC_TEMPLATE_VARS = [
|
|
|
32343
32360
|
systemEventKinds: [
|
|
32344
32361
|
"storage-location-low",
|
|
32345
32362
|
"storage-location-critical",
|
|
32346
|
-
"storage-location-ok"
|
|
32363
|
+
"storage-location-ok",
|
|
32364
|
+
...STORAGE_DRAIN
|
|
32347
32365
|
]
|
|
32348
32366
|
},
|
|
32349
32367
|
{
|
|
@@ -32357,9 +32375,40 @@ var NC_TEMPLATE_VARS = [
|
|
|
32357
32375
|
systemEventKinds: [
|
|
32358
32376
|
"storage-location-low",
|
|
32359
32377
|
"storage-location-critical",
|
|
32360
|
-
"storage-location-ok"
|
|
32378
|
+
"storage-location-ok",
|
|
32379
|
+
...STORAGE_DRAIN
|
|
32361
32380
|
]
|
|
32362
32381
|
},
|
|
32382
|
+
{
|
|
32383
|
+
name: "bytesRemainingGb",
|
|
32384
|
+
label: "Bytes remaining (GB)",
|
|
32385
|
+
example: "42.3",
|
|
32386
|
+
group: "system",
|
|
32387
|
+
families: ["rule"],
|
|
32388
|
+
fields: [...RULE_TEXT],
|
|
32389
|
+
kinds: ["system"],
|
|
32390
|
+
systemEventKinds: ["storage-drain-progress"]
|
|
32391
|
+
},
|
|
32392
|
+
{
|
|
32393
|
+
name: "rateGbPerDay",
|
|
32394
|
+
label: "Drain rate (GB/day)",
|
|
32395
|
+
example: "1.20",
|
|
32396
|
+
group: "system",
|
|
32397
|
+
families: ["rule"],
|
|
32398
|
+
fields: [...RULE_TEXT],
|
|
32399
|
+
kinds: ["system"],
|
|
32400
|
+
systemEventKinds: ["storage-drain-progress"]
|
|
32401
|
+
},
|
|
32402
|
+
{
|
|
32403
|
+
name: "etaDate",
|
|
32404
|
+
label: "Estimated empty date",
|
|
32405
|
+
example: "2026-12-01",
|
|
32406
|
+
group: "system",
|
|
32407
|
+
families: ["rule"],
|
|
32408
|
+
fields: [...RULE_TEXT],
|
|
32409
|
+
kinds: ["system"],
|
|
32410
|
+
systemEventKinds: ["storage-drain-progress"]
|
|
32411
|
+
},
|
|
32363
32412
|
{
|
|
32364
32413
|
name: "freePercent",
|
|
32365
32414
|
label: "Free space (%)",
|
|
@@ -32794,7 +32843,9 @@ var NC_TEMPLATE_HELD_BACK_SYSTEM_EVENT_KINDS = [
|
|
|
32794
32843
|
"rule-repaired",
|
|
32795
32844
|
"package-llm-silent",
|
|
32796
32845
|
"package-llm-answered",
|
|
32797
|
-
"device-command"
|
|
32846
|
+
"device-command",
|
|
32847
|
+
"storage-drain-progress",
|
|
32848
|
+
"storage-drain-complete"
|
|
32798
32849
|
];
|
|
32799
32850
|
/**
|
|
32800
32851
|
* Is this descriptor held back from the SERVED catalog as a whole (D647)?
|
|
@@ -271,6 +271,18 @@ export declare enum EventCategory {
|
|
|
271
271
|
StorageLocationCritical = "storage.location.critical",
|
|
272
272
|
/** Recovery from low/critical on a storage location. */
|
|
273
273
|
StorageLocationOk = "storage.location.ok",
|
|
274
|
+
/**
|
|
275
|
+
* A `drain` location's regular progress ping (#538) — location id + name,
|
|
276
|
+
* bytes remaining, the observed cede rate and the estimated empty date, or
|
|
277
|
+
* `null` fields when the occupancy read that sweep failed (D393: never
|
|
278
|
+
* folded to 0). Cadence is the named constant
|
|
279
|
+
* `DRAIN_PROGRESS_EVENT_INTERVAL_MS` (15 min) plus once on drain start — no
|
|
280
|
+
* operator knob. Telemetry (D8): a lost tick is a stale progress bar the
|
|
281
|
+
* next sweep corrects.
|
|
282
|
+
*/
|
|
283
|
+
StorageDrainProgress = "storage.drain.progress",
|
|
284
|
+
/** Fires once when a draining location reaches zero evictable bytes. */
|
|
285
|
+
StorageDrainComplete = "storage.drain.complete",
|
|
274
286
|
RecordingSegmentWritten = "recording.segment.written",
|
|
275
287
|
RecordingPolicyFallback = "recording.policy.fallback",
|
|
276
288
|
RecordingRetentionCompleted = "recording.retention.completed",
|
package/dist/enums.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_event_category = require("./event-category-
|
|
2
|
+
const require_event_category = require("./event-category-d9kiqCqC.js");
|
|
3
3
|
//#region src/enums/event-source-type.ts
|
|
4
4
|
var EventSourceType = /* @__PURE__ */ function(EventSourceType) {
|
|
5
5
|
EventSourceType["Addon"] = "addon";
|
package/dist/enums.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as EventCategory } from "./event-category-
|
|
1
|
+
import { t as EventCategory } from "./event-category-Dhcd0TRH.mjs";
|
|
2
2
|
//#region src/enums/event-source-type.ts
|
|
3
3
|
var EventSourceType = /* @__PURE__ */ function(EventSourceType) {
|
|
4
4
|
EventSourceType["Addon"] = "addon";
|
|
@@ -272,6 +272,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
272
272
|
EventCategory["StorageLocationCritical"] = "storage.location.critical";
|
|
273
273
|
/** Recovery from low/critical on a storage location. */
|
|
274
274
|
EventCategory["StorageLocationOk"] = "storage.location.ok";
|
|
275
|
+
/**
|
|
276
|
+
* A `drain` location's regular progress ping (#538) — location id + name,
|
|
277
|
+
* bytes remaining, the observed cede rate and the estimated empty date, or
|
|
278
|
+
* `null` fields when the occupancy read that sweep failed (D393: never
|
|
279
|
+
* folded to 0). Cadence is the named constant
|
|
280
|
+
* `DRAIN_PROGRESS_EVENT_INTERVAL_MS` (15 min) plus once on drain start — no
|
|
281
|
+
* operator knob. Telemetry (D8): a lost tick is a stale progress bar the
|
|
282
|
+
* next sweep corrects.
|
|
283
|
+
*/
|
|
284
|
+
EventCategory["StorageDrainProgress"] = "storage.drain.progress";
|
|
285
|
+
/** Fires once when a draining location reaches zero evictable bytes. */
|
|
286
|
+
EventCategory["StorageDrainComplete"] = "storage.drain.complete";
|
|
275
287
|
EventCategory["RecordingSegmentWritten"] = "recording.segment.written";
|
|
276
288
|
EventCategory["RecordingPolicyFallback"] = "recording.policy.fallback";
|
|
277
289
|
EventCategory["RecordingRetentionCompleted"] = "recording.retention.completed";
|
|
@@ -272,6 +272,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
272
272
|
EventCategory["StorageLocationCritical"] = "storage.location.critical";
|
|
273
273
|
/** Recovery from low/critical on a storage location. */
|
|
274
274
|
EventCategory["StorageLocationOk"] = "storage.location.ok";
|
|
275
|
+
/**
|
|
276
|
+
* A `drain` location's regular progress ping (#538) — location id + name,
|
|
277
|
+
* bytes remaining, the observed cede rate and the estimated empty date, or
|
|
278
|
+
* `null` fields when the occupancy read that sweep failed (D393: never
|
|
279
|
+
* folded to 0). Cadence is the named constant
|
|
280
|
+
* `DRAIN_PROGRESS_EVENT_INTERVAL_MS` (15 min) plus once on drain start — no
|
|
281
|
+
* operator knob. Telemetry (D8): a lost tick is a stale progress bar the
|
|
282
|
+
* next sweep corrects.
|
|
283
|
+
*/
|
|
284
|
+
EventCategory["StorageDrainProgress"] = "storage.drain.progress";
|
|
285
|
+
/** Fires once when a draining location reaches zero evictable bytes. */
|
|
286
|
+
EventCategory["StorageDrainComplete"] = "storage.drain.complete";
|
|
275
287
|
EventCategory["RecordingSegmentWritten"] = "recording.segment.written";
|
|
276
288
|
EventCategory["RecordingPolicyFallback"] = "recording.policy.fallback";
|
|
277
289
|
EventCategory["RecordingRetentionCompleted"] = "recording.retention.completed";
|
|
@@ -1742,6 +1742,34 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
1742
1742
|
output: z.infer<typeof controlCapability.methods.setValue.output>;
|
|
1743
1743
|
meta: object;
|
|
1744
1744
|
}>;
|
|
1745
|
+
next: TRPCMutationProcedure<{
|
|
1746
|
+
input: {
|
|
1747
|
+
[x: string]: unknown;
|
|
1748
|
+
} & z.input<typeof controlCapability.methods.next.input>;
|
|
1749
|
+
output: z.infer<typeof controlCapability.methods.next.output>;
|
|
1750
|
+
meta: object;
|
|
1751
|
+
}>;
|
|
1752
|
+
previous: TRPCMutationProcedure<{
|
|
1753
|
+
input: {
|
|
1754
|
+
[x: string]: unknown;
|
|
1755
|
+
} & z.input<typeof controlCapability.methods.previous.input>;
|
|
1756
|
+
output: z.infer<typeof controlCapability.methods.previous.output>;
|
|
1757
|
+
meta: object;
|
|
1758
|
+
}>;
|
|
1759
|
+
first: TRPCMutationProcedure<{
|
|
1760
|
+
input: {
|
|
1761
|
+
[x: string]: unknown;
|
|
1762
|
+
} & z.input<typeof controlCapability.methods.first.input>;
|
|
1763
|
+
output: z.infer<typeof controlCapability.methods.first.output>;
|
|
1764
|
+
meta: object;
|
|
1765
|
+
}>;
|
|
1766
|
+
last: TRPCMutationProcedure<{
|
|
1767
|
+
input: {
|
|
1768
|
+
[x: string]: unknown;
|
|
1769
|
+
} & z.input<typeof controlCapability.methods.last.input>;
|
|
1770
|
+
output: z.infer<typeof controlCapability.methods.last.output>;
|
|
1771
|
+
meta: object;
|
|
1772
|
+
}>;
|
|
1745
1773
|
}>>;
|
|
1746
1774
|
coreBlocks: TRPCBuiltRouter<{
|
|
1747
1775
|
ctx: TrpcContext;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* `ALL_CAPABILITY_DEFINITIONS` (the whole Zod schema graph, ~+100 MB heap per
|
|
6
6
|
* runner). See docs/decisions/adr-0028.md.
|
|
7
7
|
*
|
|
8
|
-
* Coverage: 1 advance-derived caps, 84 caps with
|
|
8
|
+
* Coverage: 1 advance-derived caps, 84 caps with 419 state leaves, 15 caps with a declared method timeout.
|
|
9
9
|
*/
|
|
10
10
|
/** A bindable scalar in a capability's runtime state. */
|
|
11
11
|
export interface CapStateLeaf {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* Plain data, zero Zod: a forked runner must not import the schema barrel
|
|
12
12
|
* (~144MB RSS per runner — D28).
|
|
13
13
|
*
|
|
14
|
-
* Coverage:
|
|
14
|
+
* Coverage: 35 caps, 87 methods with defaults.
|
|
15
15
|
*/
|
|
16
16
|
export declare const CAP_INPUT_DEFAULTS: Readonly<Record<string, Readonly<Record<string, Readonly<Record<string, unknown>>>>>>;
|
|
17
17
|
/**
|
|
@@ -21,7 +21,7 @@ export declare function isCollectionArrayMethodName(capName: string, method: str
|
|
|
21
21
|
* Per capability, the methods declared `optionalMethod` — the ones whose
|
|
22
22
|
* ABSENCE on a provider is a fact about that provider, not a bug.
|
|
23
23
|
*
|
|
24
|
-
* Coverage:
|
|
24
|
+
* Coverage: 12 caps, 49 methods.
|
|
25
25
|
*/
|
|
26
26
|
export declare const PROVIDER_OPTIONAL_METHODS: Readonly<Record<string, readonly string[]>>;
|
|
27
27
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DeviceType } from '../device/device-type.js';
|
|
2
2
|
/**
|
|
3
3
|
* Customize catalog, projected from every `*.cap.ts` `customize` block.
|
|
4
|
-
*
|
|
4
|
+
* 12 caps. Field keys are `runtimeState` paths. No Zod.
|
|
5
5
|
*/
|
|
6
6
|
export declare const CAP_CUSTOMIZE_CATALOG: {
|
|
7
7
|
readonly battery: {
|
|
@@ -51,6 +51,59 @@ export declare const CAP_CUSTOMIZE_CATALOG: {
|
|
|
51
51
|
}];
|
|
52
52
|
}];
|
|
53
53
|
};
|
|
54
|
+
readonly 'climate-control': {
|
|
55
|
+
readonly version: 1;
|
|
56
|
+
readonly targets: readonly [{
|
|
57
|
+
readonly id: 'room-temperature';
|
|
58
|
+
readonly cardinality: 'scalar';
|
|
59
|
+
readonly deviceTypes: readonly [DeviceType.Climate];
|
|
60
|
+
readonly apply: 'replace';
|
|
61
|
+
readonly vocabularyCap: 'climate-control';
|
|
62
|
+
readonly vocabularyStateField: 'currentTemp';
|
|
63
|
+
readonly sources: readonly [{
|
|
64
|
+
readonly kind: 'numeric';
|
|
65
|
+
readonly transformKinds: readonly ["identity"];
|
|
66
|
+
readonly transforms: readonly [{
|
|
67
|
+
readonly kind: 'identity';
|
|
68
|
+
}];
|
|
69
|
+
}];
|
|
70
|
+
readonly sourceReport: {
|
|
71
|
+
readonly status: 'assignment-status';
|
|
72
|
+
};
|
|
73
|
+
readonly advancedExpression: false;
|
|
74
|
+
readonly path: 'currentTemp';
|
|
75
|
+
readonly valueKind: 'number';
|
|
76
|
+
readonly nullable: true;
|
|
77
|
+
}, {
|
|
78
|
+
readonly id: 'room-humidity';
|
|
79
|
+
readonly cardinality: 'scalar';
|
|
80
|
+
readonly deviceTypes: readonly [DeviceType.Climate];
|
|
81
|
+
readonly apply: 'replace';
|
|
82
|
+
readonly vocabularyCap: 'climate-control';
|
|
83
|
+
readonly vocabularyStateField: 'currentHumidity';
|
|
84
|
+
readonly sources: readonly [{
|
|
85
|
+
readonly kind: 'numeric';
|
|
86
|
+
readonly transformKinds: readonly ["identity"];
|
|
87
|
+
readonly transforms: readonly [{
|
|
88
|
+
readonly kind: 'identity';
|
|
89
|
+
}];
|
|
90
|
+
}];
|
|
91
|
+
readonly sourceReport: {
|
|
92
|
+
readonly status: 'assignment-status';
|
|
93
|
+
};
|
|
94
|
+
readonly advancedExpression: false;
|
|
95
|
+
readonly path: 'currentHumidity';
|
|
96
|
+
readonly valueKind: 'number';
|
|
97
|
+
readonly nullable: true;
|
|
98
|
+
}];
|
|
99
|
+
readonly overridable: readonly [{
|
|
100
|
+
readonly path: 'currentTemp';
|
|
101
|
+
readonly by: 'room-temperature';
|
|
102
|
+
}, {
|
|
103
|
+
readonly path: 'currentHumidity';
|
|
104
|
+
readonly by: 'room-humidity';
|
|
105
|
+
}];
|
|
106
|
+
};
|
|
54
107
|
readonly consumables: {
|
|
55
108
|
readonly version: 1;
|
|
56
109
|
readonly targets: readonly [{
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* scope+access check inside `protectedProcedure` (see
|
|
7
7
|
* `server/backend/src/api/trpc/trpc.middleware.ts`).
|
|
8
8
|
*
|
|
9
|
-
* Coverage:
|
|
9
|
+
* Coverage: 1491 method paths across 206 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { MethodRole } from '../auth/viewer-access.js';
|
|
12
12
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* system-scope cap that takes a deviceId was previously never device-filtered
|
|
7
7
|
* — see the generator header).
|
|
8
8
|
*
|
|
9
|
-
* Coverage:
|
|
9
|
+
* Coverage: 621 methods carry a device reference, of which
|
|
10
10
|
* 196 are on SYSTEM-scope caps.
|
|
11
11
|
*
|
|
12
12
|
* Top-level fields, number arrays, and one-level arrays of objects carrying
|