@camstack/types 1.2.400 → 1.2.402
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/addon.js +1 -71
- package/dist/addon.mjs +1 -71
- package/dist/capabilities/addon-settings.cap.d.ts +5 -0
- package/dist/capabilities/capability-definition.d.ts +42 -1
- package/dist/capabilities/consumables.cap.d.ts +187 -14
- package/dist/capabilities/core-blocks.cap.d.ts +1 -0
- package/dist/capabilities/device-history.cap.d.ts +148 -0
- package/dist/capabilities/device-manager.cap.d.ts +4 -0
- package/dist/capabilities/dishwasher.cap.d.ts +3 -38
- package/dist/capabilities/index.d.ts +7 -7
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +28 -0
- package/dist/capabilities/platform-probe.cap.d.ts +74 -0
- package/dist/capabilities/vacuum-control.cap.d.ts +5 -141
- package/dist/client.js +19 -4
- package/dist/client.mjs +19 -4
- package/dist/generated/addon-api.d.ts +28 -0
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/history-catalog.d.ts +8 -2
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +420 -129
- package/dist/index.mjs +407 -128
- package/dist/interfaces/config-ui.d.ts +4 -2
- package/dist/pipeline/load-balancing/effective-shares.d.ts +6 -0
- package/dist/pipeline/load-balancing/share-election.d.ts +46 -0
- package/dist/{sleep-DJFUfKvA.mjs → sleep-CUp20JkO.mjs} +10 -2
- package/dist/{sleep-CD18m9HF.js → sleep-DVovpDRU.js} +15 -1
- package/package.json +1 -1
|
@@ -17,14 +17,9 @@ import { DeviceType } from '../device/device-type.js';
|
|
|
17
17
|
* validates it against the vacuum's own list. `locate` triggers the
|
|
18
18
|
* find-me chirp; `returnToBase` sends it home.
|
|
19
19
|
*
|
|
20
|
-
*
|
|
21
|
-
* `
|
|
22
|
-
*
|
|
23
|
-
* SHOULD populate whichever tanks the hardware has — leave a field `null`
|
|
24
|
-
* only when the device has no such tank at all, and use a `TankStatus`
|
|
25
|
-
* with both inner fields `null` when the tank exists but its level is
|
|
26
|
-
* currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
|
|
27
|
-
* so the HA provider leaves all four `null`.
|
|
20
|
+
* Tanks (clean water, dirty water, detergent, dust bin) are NOT here: they
|
|
21
|
+
* are `supply` / `waste` items of the device's `consumables` cap, like every
|
|
22
|
+
* other device's consumables (D915).
|
|
28
23
|
*/
|
|
29
24
|
export declare const VacuumStateSchema: z.ZodEnum<{
|
|
30
25
|
cleaning: "cleaning";
|
|
@@ -36,22 +31,6 @@ export declare const VacuumStateSchema: z.ZodEnum<{
|
|
|
36
31
|
returning: "returning";
|
|
37
32
|
}>;
|
|
38
33
|
export type VacuumState = z.infer<typeof VacuumStateSchema>;
|
|
39
|
-
/**
|
|
40
|
-
* One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
|
|
41
|
-
* detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
|
|
42
|
-
* a discrete `status` (binary-style hardware), or both. Both `null` means the
|
|
43
|
-
* level is currently unknown; the OWNING field being `null` means the
|
|
44
|
-
* hardware has no such tank at all.
|
|
45
|
-
*/
|
|
46
|
-
export declare const TankStatusSchema: z.ZodObject<{
|
|
47
|
-
level: z.ZodNullable<z.ZodNumber>;
|
|
48
|
-
status: z.ZodNullable<z.ZodEnum<{
|
|
49
|
-
full: "full";
|
|
50
|
-
low: "low";
|
|
51
|
-
ok: "ok";
|
|
52
|
-
}>>;
|
|
53
|
-
}, z.core.$strip>;
|
|
54
|
-
export type TankStatus = z.infer<typeof TankStatusSchema>;
|
|
55
34
|
export declare const VacuumControlStatusSchema: z.ZodObject<{
|
|
56
35
|
state: z.ZodEnum<{
|
|
57
36
|
cleaning: "cleaning";
|
|
@@ -65,38 +44,6 @@ export declare const VacuumControlStatusSchema: z.ZodObject<{
|
|
|
65
44
|
batteryLevel: z.ZodNullable<z.ZodNumber>;
|
|
66
45
|
fanSpeed: z.ZodNullable<z.ZodString>;
|
|
67
46
|
availableFanSpeeds: z.ZodArray<z.ZodString>;
|
|
68
|
-
cleanWater: z.ZodNullable<z.ZodObject<{
|
|
69
|
-
level: z.ZodNullable<z.ZodNumber>;
|
|
70
|
-
status: z.ZodNullable<z.ZodEnum<{
|
|
71
|
-
full: "full";
|
|
72
|
-
low: "low";
|
|
73
|
-
ok: "ok";
|
|
74
|
-
}>>;
|
|
75
|
-
}, z.core.$strip>>;
|
|
76
|
-
dirtyWater: z.ZodNullable<z.ZodObject<{
|
|
77
|
-
level: z.ZodNullable<z.ZodNumber>;
|
|
78
|
-
status: z.ZodNullable<z.ZodEnum<{
|
|
79
|
-
full: "full";
|
|
80
|
-
low: "low";
|
|
81
|
-
ok: "ok";
|
|
82
|
-
}>>;
|
|
83
|
-
}, z.core.$strip>>;
|
|
84
|
-
detergent: z.ZodNullable<z.ZodObject<{
|
|
85
|
-
level: z.ZodNullable<z.ZodNumber>;
|
|
86
|
-
status: z.ZodNullable<z.ZodEnum<{
|
|
87
|
-
full: "full";
|
|
88
|
-
low: "low";
|
|
89
|
-
ok: "ok";
|
|
90
|
-
}>>;
|
|
91
|
-
}, z.core.$strip>>;
|
|
92
|
-
dustBin: z.ZodNullable<z.ZodObject<{
|
|
93
|
-
level: z.ZodNullable<z.ZodNumber>;
|
|
94
|
-
status: z.ZodNullable<z.ZodEnum<{
|
|
95
|
-
full: "full";
|
|
96
|
-
low: "low";
|
|
97
|
-
ok: "ok";
|
|
98
|
-
}>>;
|
|
99
|
-
}, z.core.$strip>>;
|
|
100
47
|
progressPercent: z.ZodNullable<z.ZodNumber>;
|
|
101
48
|
errorCode: z.ZodNullable<z.ZodNumber>;
|
|
102
49
|
errorLabel: z.ZodNullable<z.ZodString>;
|
|
@@ -144,38 +91,6 @@ export declare const vacuumControlCapability: {
|
|
|
144
91
|
batteryLevel: z.ZodNullable<z.ZodNumber>;
|
|
145
92
|
fanSpeed: z.ZodNullable<z.ZodString>;
|
|
146
93
|
availableFanSpeeds: z.ZodArray<z.ZodString>;
|
|
147
|
-
cleanWater: z.ZodNullable<z.ZodObject<{
|
|
148
|
-
level: z.ZodNullable<z.ZodNumber>;
|
|
149
|
-
status: z.ZodNullable<z.ZodEnum<{
|
|
150
|
-
full: "full";
|
|
151
|
-
low: "low";
|
|
152
|
-
ok: "ok";
|
|
153
|
-
}>>;
|
|
154
|
-
}, z.core.$strip>>;
|
|
155
|
-
dirtyWater: z.ZodNullable<z.ZodObject<{
|
|
156
|
-
level: z.ZodNullable<z.ZodNumber>;
|
|
157
|
-
status: z.ZodNullable<z.ZodEnum<{
|
|
158
|
-
full: "full";
|
|
159
|
-
low: "low";
|
|
160
|
-
ok: "ok";
|
|
161
|
-
}>>;
|
|
162
|
-
}, z.core.$strip>>;
|
|
163
|
-
detergent: z.ZodNullable<z.ZodObject<{
|
|
164
|
-
level: z.ZodNullable<z.ZodNumber>;
|
|
165
|
-
status: z.ZodNullable<z.ZodEnum<{
|
|
166
|
-
full: "full";
|
|
167
|
-
low: "low";
|
|
168
|
-
ok: "ok";
|
|
169
|
-
}>>;
|
|
170
|
-
}, z.core.$strip>>;
|
|
171
|
-
dustBin: z.ZodNullable<z.ZodObject<{
|
|
172
|
-
level: z.ZodNullable<z.ZodNumber>;
|
|
173
|
-
status: z.ZodNullable<z.ZodEnum<{
|
|
174
|
-
full: "full";
|
|
175
|
-
low: "low";
|
|
176
|
-
ok: "ok";
|
|
177
|
-
}>>;
|
|
178
|
-
}, z.core.$strip>>;
|
|
179
94
|
progressPercent: z.ZodNullable<z.ZodNumber>;
|
|
180
95
|
errorCode: z.ZodNullable<z.ZodNumber>;
|
|
181
96
|
errorLabel: z.ZodNullable<z.ZodString>;
|
|
@@ -200,38 +115,6 @@ export declare const vacuumControlCapability: {
|
|
|
200
115
|
batteryLevel: z.ZodNullable<z.ZodNumber>;
|
|
201
116
|
fanSpeed: z.ZodNullable<z.ZodString>;
|
|
202
117
|
availableFanSpeeds: z.ZodArray<z.ZodString>;
|
|
203
|
-
cleanWater: z.ZodNullable<z.ZodObject<{
|
|
204
|
-
level: z.ZodNullable<z.ZodNumber>;
|
|
205
|
-
status: z.ZodNullable<z.ZodEnum<{
|
|
206
|
-
full: "full";
|
|
207
|
-
low: "low";
|
|
208
|
-
ok: "ok";
|
|
209
|
-
}>>;
|
|
210
|
-
}, z.core.$strip>>;
|
|
211
|
-
dirtyWater: z.ZodNullable<z.ZodObject<{
|
|
212
|
-
level: z.ZodNullable<z.ZodNumber>;
|
|
213
|
-
status: z.ZodNullable<z.ZodEnum<{
|
|
214
|
-
full: "full";
|
|
215
|
-
low: "low";
|
|
216
|
-
ok: "ok";
|
|
217
|
-
}>>;
|
|
218
|
-
}, z.core.$strip>>;
|
|
219
|
-
detergent: z.ZodNullable<z.ZodObject<{
|
|
220
|
-
level: z.ZodNullable<z.ZodNumber>;
|
|
221
|
-
status: z.ZodNullable<z.ZodEnum<{
|
|
222
|
-
full: "full";
|
|
223
|
-
low: "low";
|
|
224
|
-
ok: "ok";
|
|
225
|
-
}>>;
|
|
226
|
-
}, z.core.$strip>>;
|
|
227
|
-
dustBin: z.ZodNullable<z.ZodObject<{
|
|
228
|
-
level: z.ZodNullable<z.ZodNumber>;
|
|
229
|
-
status: z.ZodNullable<z.ZodEnum<{
|
|
230
|
-
full: "full";
|
|
231
|
-
low: "low";
|
|
232
|
-
ok: "ok";
|
|
233
|
-
}>>;
|
|
234
|
-
}, z.core.$strip>>;
|
|
235
118
|
progressPercent: z.ZodNullable<z.ZodNumber>;
|
|
236
119
|
errorCode: z.ZodNullable<z.ZodNumber>;
|
|
237
120
|
errorLabel: z.ZodNullable<z.ZodString>;
|
|
@@ -245,7 +128,8 @@ export declare const vacuumControlCapability: {
|
|
|
245
128
|
*/
|
|
246
129
|
readonly durability: 'session';
|
|
247
130
|
/**
|
|
248
|
-
* History (D850): recorded series.
|
|
131
|
+
* History (D850): recorded series. The tanks moved to `consumables` (D915), whose
|
|
132
|
+
* items are keyed by runtime ids and record no history.
|
|
249
133
|
*/
|
|
250
134
|
readonly history: {
|
|
251
135
|
readonly fields: {
|
|
@@ -254,26 +138,6 @@ export declare const vacuumControlCapability: {
|
|
|
254
138
|
readonly unit: '%';
|
|
255
139
|
readonly deadband: 2;
|
|
256
140
|
};
|
|
257
|
-
readonly 'cleanWater.level': {
|
|
258
|
-
readonly kind: 'gauge';
|
|
259
|
-
readonly unit: '%';
|
|
260
|
-
readonly deadband: 2;
|
|
261
|
-
};
|
|
262
|
-
readonly 'dirtyWater.level': {
|
|
263
|
-
readonly kind: 'gauge';
|
|
264
|
-
readonly unit: '%';
|
|
265
|
-
readonly deadband: 2;
|
|
266
|
-
};
|
|
267
|
-
readonly 'detergent.level': {
|
|
268
|
-
readonly kind: 'gauge';
|
|
269
|
-
readonly unit: '%';
|
|
270
|
-
readonly deadband: 2;
|
|
271
|
-
};
|
|
272
|
-
readonly 'dustBin.level': {
|
|
273
|
-
readonly kind: 'gauge';
|
|
274
|
-
readonly unit: '%';
|
|
275
|
-
readonly deadband: 2;
|
|
276
|
-
};
|
|
277
141
|
};
|
|
278
142
|
};
|
|
279
143
|
};
|
package/dist/client.js
CHANGED
|
@@ -967,7 +967,11 @@ var ContributionSectionSchema = zod.z.object({
|
|
|
967
967
|
zod.z.literal(4)
|
|
968
968
|
]).optional(),
|
|
969
969
|
tab: zod.z.string().optional(),
|
|
970
|
-
location: zod.z.enum([
|
|
970
|
+
location: zod.z.enum([
|
|
971
|
+
"settings",
|
|
972
|
+
"top-tab",
|
|
973
|
+
"hero"
|
|
974
|
+
]).optional(),
|
|
971
975
|
order: zod.z.number().optional(),
|
|
972
976
|
fields: zod.z.array(zod.z.any())
|
|
973
977
|
});
|
|
@@ -25313,6 +25317,13 @@ var TopologyNodeSchema = zod.z.object({
|
|
|
25313
25317
|
cpuModel: zod.z.string().nullable(),
|
|
25314
25318
|
cpuCores: zod.z.number(),
|
|
25315
25319
|
memoryMB: zod.z.number(),
|
|
25320
|
+
/**
|
|
25321
|
+
* The inference RUNTIMES installed on the node (`pythonRuntimes`: onnx,
|
|
25322
|
+
* openvino, edgetpu …) — not its devices. An installed runtime says nothing
|
|
25323
|
+
* about whether its hardware is there (a Coral delegate stays installed
|
|
25324
|
+
* after the stick leaves, D919); the live device set is
|
|
25325
|
+
* `pipelineOrchestrator.getNodeInferenceDevices`.
|
|
25326
|
+
*/
|
|
25316
25327
|
engines: zod.z.array(zod.z.string()).readonly(),
|
|
25317
25328
|
isHub: zod.z.boolean(),
|
|
25318
25329
|
isOnline: zod.z.boolean(),
|
|
@@ -27823,7 +27834,9 @@ function createSystemProxy(api) {
|
|
|
27823
27834
|
declareSeries: (input) => dispatch("deviceHistory", "declareSeries", "mutation", input),
|
|
27824
27835
|
record: (input) => dispatch("deviceHistory", "record", "mutation", input),
|
|
27825
27836
|
recordBuckets: (input) => dispatch("deviceHistory", "recordBuckets", "mutation", input),
|
|
27826
|
-
getStatus: (input) => dispatch("deviceHistory", "getStatus", "query", input)
|
|
27837
|
+
getStatus: (input) => dispatch("deviceHistory", "getStatus", "query", input),
|
|
27838
|
+
listOrphanSeries: (input) => dispatch("deviceHistory", "listOrphanSeries", "query", input),
|
|
27839
|
+
deleteOrphanSeries: (input) => dispatch("deviceHistory", "deleteOrphanSeries", "mutation", input)
|
|
27827
27840
|
},
|
|
27828
27841
|
deviceManager: {
|
|
27829
27842
|
allocateDeviceId: (input) => dispatch("deviceManager", "allocateDeviceId", "mutation", input),
|
|
@@ -28163,6 +28176,7 @@ function createSystemProxy(api) {
|
|
|
28163
28176
|
setAgentReachableHost: (input) => dispatch("pipelineOrchestrator", "setAgentReachableHost", "mutation", input),
|
|
28164
28177
|
setAgentInferenceDevices: (input) => dispatch("pipelineOrchestrator", "setAgentInferenceDevices", "mutation", input),
|
|
28165
28178
|
getNodeInferenceDevices: (input) => dispatch("pipelineOrchestrator", "getNodeInferenceDevices", "query", input),
|
|
28179
|
+
forgetInferenceDevice: (input) => dispatch("pipelineOrchestrator", "forgetInferenceDevice", "mutation", input),
|
|
28166
28180
|
resetNodePipelineDefaults: (input) => dispatch("pipelineOrchestrator", "resetNodePipelineDefaults", "mutation", input),
|
|
28167
28181
|
planAutoTune: (input) => dispatch("pipelineOrchestrator", "planAutoTune", "query", input),
|
|
28168
28182
|
applyAutoTune: (input) => dispatch("pipelineOrchestrator", "applyAutoTune", "mutation", input),
|
|
@@ -30368,17 +30382,18 @@ var NC_TEMPLATE_VARS = [
|
|
|
30368
30382
|
{
|
|
30369
30383
|
name: "item",
|
|
30370
30384
|
label: "Consumable",
|
|
30385
|
+
description: "The device's own name for the item: a filter, a brush, the salt, a tank.",
|
|
30371
30386
|
example: "Filtro",
|
|
30372
30387
|
group: "system",
|
|
30373
30388
|
families: ["rule"],
|
|
30374
30389
|
fields: [...RULE_TEXT],
|
|
30375
30390
|
kinds: ["system"],
|
|
30376
|
-
systemEventKinds: [...CONSUMABLE]
|
|
30391
|
+
systemEventKinds: [...CONSUMABLE, ...TANK]
|
|
30377
30392
|
},
|
|
30378
30393
|
{
|
|
30379
30394
|
name: "tank",
|
|
30380
30395
|
label: "Tank",
|
|
30381
|
-
description: "Which tank:
|
|
30396
|
+
description: "Which tank, as a stable token: cleanWater, dirtyWater, detergent, dustBin, or the device key of any other supply (salt, rinse aid).",
|
|
30382
30397
|
example: "clean water",
|
|
30383
30398
|
group: "system",
|
|
30384
30399
|
families: ["rule"],
|
package/dist/client.mjs
CHANGED
|
@@ -966,7 +966,11 @@ var ContributionSectionSchema = z.object({
|
|
|
966
966
|
z.literal(4)
|
|
967
967
|
]).optional(),
|
|
968
968
|
tab: z.string().optional(),
|
|
969
|
-
location: z.enum([
|
|
969
|
+
location: z.enum([
|
|
970
|
+
"settings",
|
|
971
|
+
"top-tab",
|
|
972
|
+
"hero"
|
|
973
|
+
]).optional(),
|
|
970
974
|
order: z.number().optional(),
|
|
971
975
|
fields: z.array(z.any())
|
|
972
976
|
});
|
|
@@ -25312,6 +25316,13 @@ var TopologyNodeSchema = z.object({
|
|
|
25312
25316
|
cpuModel: z.string().nullable(),
|
|
25313
25317
|
cpuCores: z.number(),
|
|
25314
25318
|
memoryMB: z.number(),
|
|
25319
|
+
/**
|
|
25320
|
+
* The inference RUNTIMES installed on the node (`pythonRuntimes`: onnx,
|
|
25321
|
+
* openvino, edgetpu …) — not its devices. An installed runtime says nothing
|
|
25322
|
+
* about whether its hardware is there (a Coral delegate stays installed
|
|
25323
|
+
* after the stick leaves, D919); the live device set is
|
|
25324
|
+
* `pipelineOrchestrator.getNodeInferenceDevices`.
|
|
25325
|
+
*/
|
|
25315
25326
|
engines: z.array(z.string()).readonly(),
|
|
25316
25327
|
isHub: z.boolean(),
|
|
25317
25328
|
isOnline: z.boolean(),
|
|
@@ -27822,7 +27833,9 @@ function createSystemProxy(api) {
|
|
|
27822
27833
|
declareSeries: (input) => dispatch("deviceHistory", "declareSeries", "mutation", input),
|
|
27823
27834
|
record: (input) => dispatch("deviceHistory", "record", "mutation", input),
|
|
27824
27835
|
recordBuckets: (input) => dispatch("deviceHistory", "recordBuckets", "mutation", input),
|
|
27825
|
-
getStatus: (input) => dispatch("deviceHistory", "getStatus", "query", input)
|
|
27836
|
+
getStatus: (input) => dispatch("deviceHistory", "getStatus", "query", input),
|
|
27837
|
+
listOrphanSeries: (input) => dispatch("deviceHistory", "listOrphanSeries", "query", input),
|
|
27838
|
+
deleteOrphanSeries: (input) => dispatch("deviceHistory", "deleteOrphanSeries", "mutation", input)
|
|
27826
27839
|
},
|
|
27827
27840
|
deviceManager: {
|
|
27828
27841
|
allocateDeviceId: (input) => dispatch("deviceManager", "allocateDeviceId", "mutation", input),
|
|
@@ -28162,6 +28175,7 @@ function createSystemProxy(api) {
|
|
|
28162
28175
|
setAgentReachableHost: (input) => dispatch("pipelineOrchestrator", "setAgentReachableHost", "mutation", input),
|
|
28163
28176
|
setAgentInferenceDevices: (input) => dispatch("pipelineOrchestrator", "setAgentInferenceDevices", "mutation", input),
|
|
28164
28177
|
getNodeInferenceDevices: (input) => dispatch("pipelineOrchestrator", "getNodeInferenceDevices", "query", input),
|
|
28178
|
+
forgetInferenceDevice: (input) => dispatch("pipelineOrchestrator", "forgetInferenceDevice", "mutation", input),
|
|
28165
28179
|
resetNodePipelineDefaults: (input) => dispatch("pipelineOrchestrator", "resetNodePipelineDefaults", "mutation", input),
|
|
28166
28180
|
planAutoTune: (input) => dispatch("pipelineOrchestrator", "planAutoTune", "query", input),
|
|
28167
28181
|
applyAutoTune: (input) => dispatch("pipelineOrchestrator", "applyAutoTune", "mutation", input),
|
|
@@ -30367,17 +30381,18 @@ var NC_TEMPLATE_VARS = [
|
|
|
30367
30381
|
{
|
|
30368
30382
|
name: "item",
|
|
30369
30383
|
label: "Consumable",
|
|
30384
|
+
description: "The device's own name for the item: a filter, a brush, the salt, a tank.",
|
|
30370
30385
|
example: "Filtro",
|
|
30371
30386
|
group: "system",
|
|
30372
30387
|
families: ["rule"],
|
|
30373
30388
|
fields: [...RULE_TEXT],
|
|
30374
30389
|
kinds: ["system"],
|
|
30375
|
-
systemEventKinds: [...CONSUMABLE]
|
|
30390
|
+
systemEventKinds: [...CONSUMABLE, ...TANK]
|
|
30376
30391
|
},
|
|
30377
30392
|
{
|
|
30378
30393
|
name: "tank",
|
|
30379
30394
|
label: "Tank",
|
|
30380
|
-
description: "Which tank:
|
|
30395
|
+
description: "Which tank, as a stable token: cleanWater, dirtyWater, detergent, dustBin, or the device key of any other supply (salt, rinse aid).",
|
|
30381
30396
|
example: "clean water",
|
|
30382
30397
|
group: "system",
|
|
30383
30398
|
families: ["rule"],
|
|
@@ -2449,6 +2449,20 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
2449
2449
|
output: z.infer<typeof deviceHistoryCapability.methods.getStatus.output>;
|
|
2450
2450
|
meta: object;
|
|
2451
2451
|
}>;
|
|
2452
|
+
listOrphanSeries: TRPCQueryProcedure<{
|
|
2453
|
+
input: {
|
|
2454
|
+
[x: string]: unknown;
|
|
2455
|
+
} & z.input<typeof deviceHistoryCapability.methods.listOrphanSeries.input>;
|
|
2456
|
+
output: z.infer<typeof deviceHistoryCapability.methods.listOrphanSeries.output>;
|
|
2457
|
+
meta: object;
|
|
2458
|
+
}>;
|
|
2459
|
+
deleteOrphanSeries: TRPCMutationProcedure<{
|
|
2460
|
+
input: {
|
|
2461
|
+
[x: string]: unknown;
|
|
2462
|
+
} & z.input<typeof deviceHistoryCapability.methods.deleteOrphanSeries.input>;
|
|
2463
|
+
output: z.infer<typeof deviceHistoryCapability.methods.deleteOrphanSeries.output>;
|
|
2464
|
+
meta: object;
|
|
2465
|
+
}>;
|
|
2452
2466
|
}>>;
|
|
2453
2467
|
deviceManager: TRPCBuiltRouter<{
|
|
2454
2468
|
ctx: TrpcContext;
|
|
@@ -7258,6 +7272,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
7258
7272
|
output: z.infer<typeof pipelineOrchestratorCapability.methods.getNodeInferenceDevices.output>;
|
|
7259
7273
|
meta: object;
|
|
7260
7274
|
}>;
|
|
7275
|
+
forgetInferenceDevice: TRPCMutationProcedure<{
|
|
7276
|
+
input: {
|
|
7277
|
+
[x: string]: unknown;
|
|
7278
|
+
} & z.input<typeof pipelineOrchestratorCapability.methods.forgetInferenceDevice.input>;
|
|
7279
|
+
output: z.infer<typeof pipelineOrchestratorCapability.methods.forgetInferenceDevice.output>;
|
|
7280
|
+
meta: object;
|
|
7281
|
+
}>;
|
|
7261
7282
|
resetNodePipelineDefaults: TRPCMutationProcedure<{
|
|
7262
7283
|
input: {
|
|
7263
7284
|
[x: string]: unknown;
|
|
@@ -7763,6 +7784,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
7763
7784
|
output: z.infer<typeof platformProbeCapability.methods.resolveHwAccel.output>;
|
|
7764
7785
|
meta: object;
|
|
7765
7786
|
}>;
|
|
7787
|
+
rescanAccelerators: TRPCMutationProcedure<{
|
|
7788
|
+
input: {
|
|
7789
|
+
nodeId?: string | undefined;
|
|
7790
|
+
} | undefined;
|
|
7791
|
+
output: z.infer<typeof platformProbeCapability.methods.rescanAccelerators.output>;
|
|
7792
|
+
meta: object;
|
|
7793
|
+
}>;
|
|
7766
7794
|
}>>;
|
|
7767
7795
|
powerMeter: TRPCBuiltRouter<{
|
|
7768
7796
|
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, 73 caps with
|
|
8
|
+
* Coverage: 1 advance-derived caps, 73 caps with 363 state leaves.
|
|
9
9
|
*/
|
|
10
10
|
/** A bindable scalar in a capability's runtime state. */
|
|
11
11
|
export interface CapStateLeaf {
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
import type { CapabilityHistoryField } from '../capabilities/capability-definition.js';
|
|
1
|
+
import type { CapabilityHistoryField, CapabilityHistoryItems } from '../capabilities/capability-definition.js';
|
|
2
2
|
/**
|
|
3
3
|
* Cap history catalog, projected from every `*.cap.ts` `history` block.
|
|
4
|
-
* 40 caps with series (
|
|
4
|
+
* 40 caps with series (73 series), 30 caps answered `'none'`.
|
|
5
5
|
* Field keys are `runtimeState` paths (`a.b` into fixed objects only).
|
|
6
6
|
*/
|
|
7
7
|
export declare const HISTORY_CATALOG: Readonly<Record<string, Readonly<Record<string, CapabilityHistoryField>>>>;
|
|
8
|
+
/**
|
|
9
|
+
* Keyed-array series (D917), projected from every `history.items` block:
|
|
10
|
+
* 1 caps (3 item fields). The item key is the series SCOPE;
|
|
11
|
+
* the series key is `cap:<capName>.<path>[].<field>`.
|
|
12
|
+
*/
|
|
13
|
+
export declare const HISTORY_ITEM_CATALOG: Readonly<Record<string, CapabilityHistoryItems>>;
|
|
8
14
|
/** Caps that declared `history: 'none'`, sorted. */
|
|
9
15
|
export declare const HISTORY_NONE_CAPS: readonly string[];
|
|
10
16
|
/** The series specs of `capName`; empty for a `'none'` cap or an unknown one. */
|
|
@@ -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: 1384 method paths across 179 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
12
12
|
export interface MethodAccessRecord {
|
|
@@ -78,7 +78,7 @@ export interface SystemProxy {
|
|
|
78
78
|
readonly deviceAdoption: Pick<InferProvider<typeof deviceAdoptionCapability>, 'listCandidateFilters' | 'listCandidates' | 'getCandidate' | 'refresh' | 'adopt' | 'release' | 'resync'>;
|
|
79
79
|
readonly deviceCredentials: Pick<InferProvider<typeof deviceCredentialsCapability>, 'listDeviceCredentials' | 'startEnrollment' | 'revokeDeviceCredential' | 'getDeviceCertificateSettings' | 'setDeviceCertificateSettings' | 'deleteDeviceCredential' | 'getDeviceCaStatus' | 'renameDeviceCredential'>;
|
|
80
80
|
readonly deviceExport: Pick<InferProvider<typeof deviceExportCapability>, 'getStatus' | 'listSupportedDeviceKinds' | 'listExposedDevices' | 'exposeDevice' | 'unexposeDevice'>;
|
|
81
|
-
readonly deviceHistory: Pick<InferProvider<typeof deviceHistoryCapability>, 'listNodeSeries' | 'queryNode' | 'queryMany' | 'declareSeries' | 'record' | 'recordBuckets' | 'getStatus'>;
|
|
81
|
+
readonly deviceHistory: Pick<InferProvider<typeof deviceHistoryCapability>, 'listNodeSeries' | 'queryNode' | 'queryMany' | 'declareSeries' | 'record' | 'recordBuckets' | 'getStatus' | 'listOrphanSeries' | 'deleteOrphanSeries'>;
|
|
82
82
|
readonly deviceManager: Pick<InferProvider<typeof deviceManagerCapability>, 'allocateDeviceId' | 'migrateDevice' | 'registerDevice' | 'removeDevice' | 'persistConfig' | 'getRoleDisplayDefaults' | 'setRoleDisplayDefaults' | 'listLocations' | 'addLocation' | 'removeLocation' | 'renameLocation' | 'listLocationIcons' | 'setLocationIcon' | 'listLocationDescriptions' | 'setLocationDescription' | 'listSiteZones' | 'setSiteZone' | 'removeSiteZone' | 'renameSiteZone' | 'setLocationZone' | 'listPersistedByAddon' | 'listAll' | 'getChildren' | 'getChildrenBatch' | 'getLinkedDevicesBatch' | 'listDeletedSince' | 'cleanupDeletedDevicesData' | 'removeByIntegration' | 'getBindingsBatch' | 'getAllBindings' | 'listDeviceIdsByCaps' | 'listWrappersForCap' | 'listBindableCapsForDeviceType' | 'discoverDevices' | 'adoptDevice' | 'getCreationSchema' | 'createDevice' | 'testCreationField' | 'adoptionListCandidateFilters' | 'adoptionListCandidates' | 'adoptionRefresh' | 'adoptionAdopt' | 'adoptionRelease' | 'adoptionStartJob' | 'adoptionListJobs' | 'adoptionCancelJob' | 'adoptionResync' | 'discoveryProviders' | 'discoverAllProviders' | 'discoverProvider' | 'providerCreationType' | 'providerDiscoveryParamsSchema' | 'getDeviceStatusAggregateBatch'>;
|
|
83
83
|
readonly deviceProvider: Pick<InferProvider<typeof deviceProviderCapability>, 'start' | 'stop' | 'getStatus' | 'getDevices' | 'reloadDevice' | 'supportsDiscovery' | 'discoverDevices' | 'getDiscoveryParamsSchema' | 'getManualCreationType' | 'adoptDiscoveredDevice' | 'supportsManualCreation' | 'getChildCreationSchema' | 'createDevice' | 'testCreationField'>;
|
|
84
84
|
readonly deviceState: Pick<InferProvider<typeof deviceStateCapability>, 'getAllSnapshots' | 'listClaims'>;
|
|
@@ -98,7 +98,7 @@ export interface SystemProxy {
|
|
|
98
98
|
readonly oidcConnections: Pick<InferProvider<typeof oidcConnectionsCapability>, 'connectionFormSchema' | 'listConnections' | 'createConnection' | 'updateConnection' | 'deleteConnection'>;
|
|
99
99
|
readonly osdManager: Pick<InferProvider<typeof osdManagerCapability>, 'getConditionSupport' | 'copyDeviceConfiguration' | 'listTemplates' | 'upsertTemplate' | 'deleteTemplate'>;
|
|
100
100
|
readonly pipelineExecutor: Pick<InferProvider<typeof pipelineExecutorCapability>, 'getAvailableEngines' | 'getSelectedEngine' | 'getDefaultSteps' | 'getEngineProvisioning' | 'getVideoPipelineSteps' | 'setVideoPipelineSteps' | 'clearDeviceOverrides' | 'clearModelBoundDeviceOverrides' | 'getInferenceDeviceHealth' | 'rearmInferenceDevice' | 'getSchema' | 'getGlobalSteps' | 'getGlobalPipelineConfig' | 'getOrchestratorConfigSchema' | 'validatePipeline' | 'getCapabilities' | 'getAddonModels' | 'downloadModel' | 'deleteModel' | 'cacheFrameInPool' | 'inferCached' | 'uncacheFrame' | 'getEffectiveTuning' | 'listLoadedEngines' | 'spinEngine' | 'killEngine' | 'listReferenceImages' | 'getReferenceImage' | 'getReferenceAudioFiles' | 'getReferenceAudio' | 'getAudioCapabilities' | 'runAudioTest' | 'getDetectionConfigSchema'>;
|
|
101
|
-
readonly pipelineOrchestrator: Pick<InferProvider<typeof pipelineOrchestratorCapability>, 'requestOccupancyLook' | 'pauseForStorageMigration' | 'resumeForStorageMigration' | 'rebalance' | 'getPipelineAssignments' | 'getAgentLoad' | 'getClusterModelChoice' | 'getGlobalMetrics' | 'getCapabilityBindings' | 'setCapabilityBinding' | 'getIngestOwner' | 'getAudioNodeLoad' | 'getAudioAssignments' | 'getAgentSettings' | 'listAgentSettings' | 'removeAgentSettings' | 'setAgentMaxCameras' | 'setAgentCapabilities' | 'setAgentDecodeLimits' | 'setAgentReachableHost' | 'setAgentInferenceDevices' | 'getNodeInferenceDevices' | 'resetNodePipelineDefaults' | 'planAutoTune' | 'applyAutoTune' | 'setLoadBalancingShares' | 'getPlacementStats' | 'suggestShares' | 'getEffectiveShares' | 'setShareSource' | 'getNodeBenchmarkPreflight' | 'startNodeBenchmark' | 'getNodeBenchmarkStatus' | 'abortNodeBenchmark' | 'getNodeBenchmarkCandidates' | 'listNodeBenchmarkResults' | 'deleteNodeBenchmarkResult' | 'getCameraStatuses' | 'setCameraSensors' | 'reconcileFromDisk' | 'getReconcileFromDiskStatus'>;
|
|
101
|
+
readonly pipelineOrchestrator: Pick<InferProvider<typeof pipelineOrchestratorCapability>, 'requestOccupancyLook' | 'pauseForStorageMigration' | 'resumeForStorageMigration' | 'rebalance' | 'getPipelineAssignments' | 'getAgentLoad' | 'getClusterModelChoice' | 'getGlobalMetrics' | 'getCapabilityBindings' | 'setCapabilityBinding' | 'getIngestOwner' | 'getAudioNodeLoad' | 'getAudioAssignments' | 'getAgentSettings' | 'listAgentSettings' | 'removeAgentSettings' | 'setAgentMaxCameras' | 'setAgentCapabilities' | 'setAgentDecodeLimits' | 'setAgentReachableHost' | 'setAgentInferenceDevices' | 'getNodeInferenceDevices' | 'forgetInferenceDevice' | 'resetNodePipelineDefaults' | 'planAutoTune' | 'applyAutoTune' | 'setLoadBalancingShares' | 'getPlacementStats' | 'suggestShares' | 'getEffectiveShares' | 'setShareSource' | 'getNodeBenchmarkPreflight' | 'startNodeBenchmark' | 'getNodeBenchmarkStatus' | 'abortNodeBenchmark' | 'getNodeBenchmarkCandidates' | 'listNodeBenchmarkResults' | 'deleteNodeBenchmarkResult' | 'getCameraStatuses' | 'setCameraSensors' | 'reconcileFromDisk' | 'getReconcileFromDiskStatus'>;
|
|
102
102
|
readonly pipelineRunner: Pick<InferProvider<typeof pipelineRunnerCapability>, 'attachCamera' | 'reportMotion' | 'getLocalLoad' | 'getLocalMetrics' | 'getAllCameraMetrics' | 'getLocalCameras' | 'getNativeCrop' | 'runStatelessStep' | 'startNodeBench' | 'getNodeBenchStatus' | 'abortNodeBench'>;
|
|
103
103
|
readonly plateGallery: Pick<InferProvider<typeof plateGalleryCapability>, 'getPlateMedia' | 'searchPlates' | 'suggestPlateClusters' | 'correctPlateText' | 'deletePlate' | 'listVehicles' | 'createVehicle' | 'renameVehicle' | 'deleteVehicle' | 'listVehicleSamples' | 'removeVehicleSample' | 'assignPlate' | 'unassignPlate' | 'assignPlates' | 'unassignPlates'>;
|
|
104
104
|
readonly recordEntries: Pick<InferProvider<typeof recordEntriesCapability>, 'listEntryKinds' | 'listEntries' | 'putEntry' | 'deleteEntry'>;
|
package/dist/index.d.ts
CHANGED
|
@@ -246,7 +246,7 @@ export { CAP_PROVIDER_KIND_MAP, getCapsByProviderKind, PROVIDER_KIND_CAP_NAMES,
|
|
|
246
246
|
export type { RuntimeStatePolicy } from './generated/runtime-state-durability.js';
|
|
247
247
|
export { isRestoredCap, RESTORED_CAP_NAMES, RUNTIME_STATE_POLICY, runtimeStatePolicyFor, } from './generated/runtime-state-durability.js';
|
|
248
248
|
export { BucketAccumulator, bucketStartOf, type ClosedHistoryBucket, HISTORY_BUCKET_MS, MAX_REQUEUED_BUCKETS_PER_SERIES, } from './history/bucket-accumulator.js';
|
|
249
|
-
export { HISTORY_CATALOG, HISTORY_NONE_CAPS, historyFieldsFor, } from './generated/history-catalog.js';
|
|
249
|
+
export { HISTORY_CATALOG, HISTORY_ITEM_CATALOG, HISTORY_NONE_CAPS, historyFieldsFor, } from './generated/history-catalog.js';
|
|
250
250
|
export type { ScopePresetId, ScopePresetSpec } from './generated/scope-presets.js';
|
|
251
251
|
export { SCOPE_PRESETS } from './generated/scope-presets.js';
|
|
252
252
|
export type { SystemProxy } from './generated/system-proxy.js';
|