@camstack/types 1.2.315 → 1.2.317

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.
@@ -0,0 +1,859 @@
1
+ /**
2
+ * The wire shapes of the Best settings plan and apply (D745), used by the
3
+ * `pipeline-orchestrator` cap. The recommender's own types
4
+ * (`recommend.ts`, `demand.ts`) are the TS face of the same data; these
5
+ * schemas are what crosses the cap boundary.
6
+ */
7
+ import { z } from 'zod';
8
+ export declare const HardwareClassIdSchema: z.ZodEnum<{
9
+ unknown: "unknown";
10
+ "intel-core-ultra": "intel-core-ultra";
11
+ "intel-n-series": "intel-n-series";
12
+ "apple-m-base": "apple-m-base";
13
+ "apple-m-pro": "apple-m-pro";
14
+ }>;
15
+ export declare const AcceleratorKindSchema: z.ZodEnum<{
16
+ "apple-ane": "apple-ane";
17
+ "intel-npu": "intel-npu";
18
+ "intel-igpu": "intel-igpu";
19
+ "x86-cpu": "x86-cpu";
20
+ "arm-cpu": "arm-cpu";
21
+ coral: "coral";
22
+ }>;
23
+ export declare const RecommendationReasonSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
24
+ kind: z.ZodLiteral<"fits">;
25
+ utilisation: z.ZodNumber;
26
+ }, z.core.$strip>, z.ZodObject<{
27
+ kind: z.ZodLiteral<"tie-faster">;
28
+ over: z.ZodString;
29
+ recallDelta: z.ZodNumber;
30
+ }, z.core.$strip>, z.ZodObject<{
31
+ kind: z.ZodLiteral<"stepped-down">;
32
+ from: z.ZodString;
33
+ to: z.ZodString;
34
+ limitedBy: z.ZodString;
35
+ }, z.core.$strip>, z.ZodObject<{
36
+ kind: z.ZodLiteral<"no-fit-lightest">;
37
+ utilisation: z.ZodNumber;
38
+ }, z.core.$strip>, z.ZodObject<{
39
+ kind: z.ZodLiteral<"derived-latency">;
40
+ modelId: z.ZodString;
41
+ }, z.core.$strip>, z.ZodObject<{
42
+ kind: z.ZodLiteral<"estimated-load">;
43
+ observedForMs: z.ZodNullable<z.ZodNumber>;
44
+ }, z.core.$strip>, z.ZodObject<{
45
+ kind: z.ZodLiteral<"cpu-device">;
46
+ }, z.core.$strip>, z.ZodObject<{
47
+ kind: z.ZodLiteral<"coral-untouched">;
48
+ }, z.core.$strip>, z.ZodObject<{
49
+ kind: z.ZodLiteral<"device-disabled">;
50
+ }, z.core.$strip>, z.ZodObject<{
51
+ kind: z.ZodLiteral<"device-unavailable">;
52
+ }, z.core.$strip>, z.ZodObject<{
53
+ kind: z.ZodLiteral<"node-offline">;
54
+ }, z.core.$strip>, z.ZodObject<{
55
+ kind: z.ZodLiteral<"no-hardware-facts">;
56
+ }, z.core.$strip>, z.ZodObject<{
57
+ kind: z.ZodLiteral<"no-measured-data">;
58
+ hardwareClass: z.ZodEnum<{
59
+ unknown: "unknown";
60
+ "intel-core-ultra": "intel-core-ultra";
61
+ "intel-n-series": "intel-n-series";
62
+ "apple-m-base": "apple-m-base";
63
+ "apple-m-pro": "apple-m-pro";
64
+ }>;
65
+ }, z.core.$strip>, z.ZodObject<{
66
+ kind: z.ZodLiteral<"no-family-build">;
67
+ format: z.ZodEnum<{
68
+ onnx: "onnx";
69
+ coreml: "coreml";
70
+ openvino: "openvino";
71
+ tflite: "tflite";
72
+ pt: "pt";
73
+ gguf: "gguf";
74
+ }>;
75
+ }, z.core.$strip>], "kind">;
76
+ export declare const DeviceDemandSchema: z.ZodObject<{
77
+ nodeId: z.ZodString;
78
+ deviceKey: z.ZodString;
79
+ demandFps: z.ZodNumber;
80
+ maxCameraFps: z.ZodNumber;
81
+ alwaysOnCameras: z.ZodNumber;
82
+ onMotionSessions: z.ZodNumber;
83
+ onMotionSource: z.ZodEnum<{
84
+ none: "none";
85
+ "observed-24h": "observed-24h";
86
+ estimate: "estimate";
87
+ }>;
88
+ observedForMs: z.ZodNullable<z.ZodNumber>;
89
+ }, z.core.$strip>;
90
+ export declare const DeviceModelChoiceSchema: z.ZodObject<{
91
+ modelId: z.ZodString;
92
+ p50Ms: z.ZodNumber;
93
+ fps: z.ZodNumber;
94
+ measured: z.ZodBoolean;
95
+ utilisation: z.ZodNumber;
96
+ personRecall: z.ZodNumber;
97
+ }, z.core.$strip>;
98
+ export declare const DeviceRecommendationSchema: z.ZodObject<{
99
+ deviceKey: z.ZodString;
100
+ accelerator: z.ZodNullable<z.ZodEnum<{
101
+ "apple-ane": "apple-ane";
102
+ "intel-npu": "intel-npu";
103
+ "intel-igpu": "intel-igpu";
104
+ "x86-cpu": "x86-cpu";
105
+ "arm-cpu": "arm-cpu";
106
+ coral: "coral";
107
+ }>>;
108
+ enabled: z.ZodBoolean;
109
+ available: z.ZodBoolean;
110
+ demand: z.ZodNullable<z.ZodObject<{
111
+ nodeId: z.ZodString;
112
+ deviceKey: z.ZodString;
113
+ demandFps: z.ZodNumber;
114
+ maxCameraFps: z.ZodNumber;
115
+ alwaysOnCameras: z.ZodNumber;
116
+ onMotionSessions: z.ZodNumber;
117
+ onMotionSource: z.ZodEnum<{
118
+ none: "none";
119
+ "observed-24h": "observed-24h";
120
+ estimate: "estimate";
121
+ }>;
122
+ observedForMs: z.ZodNullable<z.ZodNumber>;
123
+ }, z.core.$strip>>;
124
+ chosen: z.ZodNullable<z.ZodObject<{
125
+ modelId: z.ZodString;
126
+ p50Ms: z.ZodNumber;
127
+ fps: z.ZodNumber;
128
+ measured: z.ZodBoolean;
129
+ utilisation: z.ZodNumber;
130
+ personRecall: z.ZodNumber;
131
+ }, z.core.$strip>>;
132
+ reasons: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
133
+ kind: z.ZodLiteral<"fits">;
134
+ utilisation: z.ZodNumber;
135
+ }, z.core.$strip>, z.ZodObject<{
136
+ kind: z.ZodLiteral<"tie-faster">;
137
+ over: z.ZodString;
138
+ recallDelta: z.ZodNumber;
139
+ }, z.core.$strip>, z.ZodObject<{
140
+ kind: z.ZodLiteral<"stepped-down">;
141
+ from: z.ZodString;
142
+ to: z.ZodString;
143
+ limitedBy: z.ZodString;
144
+ }, z.core.$strip>, z.ZodObject<{
145
+ kind: z.ZodLiteral<"no-fit-lightest">;
146
+ utilisation: z.ZodNumber;
147
+ }, z.core.$strip>, z.ZodObject<{
148
+ kind: z.ZodLiteral<"derived-latency">;
149
+ modelId: z.ZodString;
150
+ }, z.core.$strip>, z.ZodObject<{
151
+ kind: z.ZodLiteral<"estimated-load">;
152
+ observedForMs: z.ZodNullable<z.ZodNumber>;
153
+ }, z.core.$strip>, z.ZodObject<{
154
+ kind: z.ZodLiteral<"cpu-device">;
155
+ }, z.core.$strip>, z.ZodObject<{
156
+ kind: z.ZodLiteral<"coral-untouched">;
157
+ }, z.core.$strip>, z.ZodObject<{
158
+ kind: z.ZodLiteral<"device-disabled">;
159
+ }, z.core.$strip>, z.ZodObject<{
160
+ kind: z.ZodLiteral<"device-unavailable">;
161
+ }, z.core.$strip>, z.ZodObject<{
162
+ kind: z.ZodLiteral<"node-offline">;
163
+ }, z.core.$strip>, z.ZodObject<{
164
+ kind: z.ZodLiteral<"no-hardware-facts">;
165
+ }, z.core.$strip>, z.ZodObject<{
166
+ kind: z.ZodLiteral<"no-measured-data">;
167
+ hardwareClass: z.ZodEnum<{
168
+ unknown: "unknown";
169
+ "intel-core-ultra": "intel-core-ultra";
170
+ "intel-n-series": "intel-n-series";
171
+ "apple-m-base": "apple-m-base";
172
+ "apple-m-pro": "apple-m-pro";
173
+ }>;
174
+ }, z.core.$strip>, z.ZodObject<{
175
+ kind: z.ZodLiteral<"no-family-build">;
176
+ format: z.ZodEnum<{
177
+ onnx: "onnx";
178
+ coreml: "coreml";
179
+ openvino: "openvino";
180
+ tflite: "tflite";
181
+ pt: "pt";
182
+ gguf: "gguf";
183
+ }>;
184
+ }, z.core.$strip>], "kind">>>;
185
+ }, z.core.$strip>;
186
+ export declare const NodeRecommendationSchema: z.ZodObject<{
187
+ nodeId: z.ZodString;
188
+ reachable: z.ZodBoolean;
189
+ hardwareClass: z.ZodNullable<z.ZodEnum<{
190
+ unknown: "unknown";
191
+ "intel-core-ultra": "intel-core-ultra";
192
+ "intel-n-series": "intel-n-series";
193
+ "apple-m-base": "apple-m-base";
194
+ "apple-m-pro": "apple-m-pro";
195
+ }>>;
196
+ cpuModel: z.ZodNullable<z.ZodString>;
197
+ skipped: z.ZodBoolean;
198
+ acceleratorModelId: z.ZodNullable<z.ZodString>;
199
+ devices: z.ZodReadonly<z.ZodArray<z.ZodObject<{
200
+ deviceKey: z.ZodString;
201
+ accelerator: z.ZodNullable<z.ZodEnum<{
202
+ "apple-ane": "apple-ane";
203
+ "intel-npu": "intel-npu";
204
+ "intel-igpu": "intel-igpu";
205
+ "x86-cpu": "x86-cpu";
206
+ "arm-cpu": "arm-cpu";
207
+ coral: "coral";
208
+ }>>;
209
+ enabled: z.ZodBoolean;
210
+ available: z.ZodBoolean;
211
+ demand: z.ZodNullable<z.ZodObject<{
212
+ nodeId: z.ZodString;
213
+ deviceKey: z.ZodString;
214
+ demandFps: z.ZodNumber;
215
+ maxCameraFps: z.ZodNumber;
216
+ alwaysOnCameras: z.ZodNumber;
217
+ onMotionSessions: z.ZodNumber;
218
+ onMotionSource: z.ZodEnum<{
219
+ none: "none";
220
+ "observed-24h": "observed-24h";
221
+ estimate: "estimate";
222
+ }>;
223
+ observedForMs: z.ZodNullable<z.ZodNumber>;
224
+ }, z.core.$strip>>;
225
+ chosen: z.ZodNullable<z.ZodObject<{
226
+ modelId: z.ZodString;
227
+ p50Ms: z.ZodNumber;
228
+ fps: z.ZodNumber;
229
+ measured: z.ZodBoolean;
230
+ utilisation: z.ZodNumber;
231
+ personRecall: z.ZodNumber;
232
+ }, z.core.$strip>>;
233
+ reasons: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
234
+ kind: z.ZodLiteral<"fits">;
235
+ utilisation: z.ZodNumber;
236
+ }, z.core.$strip>, z.ZodObject<{
237
+ kind: z.ZodLiteral<"tie-faster">;
238
+ over: z.ZodString;
239
+ recallDelta: z.ZodNumber;
240
+ }, z.core.$strip>, z.ZodObject<{
241
+ kind: z.ZodLiteral<"stepped-down">;
242
+ from: z.ZodString;
243
+ to: z.ZodString;
244
+ limitedBy: z.ZodString;
245
+ }, z.core.$strip>, z.ZodObject<{
246
+ kind: z.ZodLiteral<"no-fit-lightest">;
247
+ utilisation: z.ZodNumber;
248
+ }, z.core.$strip>, z.ZodObject<{
249
+ kind: z.ZodLiteral<"derived-latency">;
250
+ modelId: z.ZodString;
251
+ }, z.core.$strip>, z.ZodObject<{
252
+ kind: z.ZodLiteral<"estimated-load">;
253
+ observedForMs: z.ZodNullable<z.ZodNumber>;
254
+ }, z.core.$strip>, z.ZodObject<{
255
+ kind: z.ZodLiteral<"cpu-device">;
256
+ }, z.core.$strip>, z.ZodObject<{
257
+ kind: z.ZodLiteral<"coral-untouched">;
258
+ }, z.core.$strip>, z.ZodObject<{
259
+ kind: z.ZodLiteral<"device-disabled">;
260
+ }, z.core.$strip>, z.ZodObject<{
261
+ kind: z.ZodLiteral<"device-unavailable">;
262
+ }, z.core.$strip>, z.ZodObject<{
263
+ kind: z.ZodLiteral<"node-offline">;
264
+ }, z.core.$strip>, z.ZodObject<{
265
+ kind: z.ZodLiteral<"no-hardware-facts">;
266
+ }, z.core.$strip>, z.ZodObject<{
267
+ kind: z.ZodLiteral<"no-measured-data">;
268
+ hardwareClass: z.ZodEnum<{
269
+ unknown: "unknown";
270
+ "intel-core-ultra": "intel-core-ultra";
271
+ "intel-n-series": "intel-n-series";
272
+ "apple-m-base": "apple-m-base";
273
+ "apple-m-pro": "apple-m-pro";
274
+ }>;
275
+ }, z.core.$strip>, z.ZodObject<{
276
+ kind: z.ZodLiteral<"no-family-build">;
277
+ format: z.ZodEnum<{
278
+ onnx: "onnx";
279
+ coreml: "coreml";
280
+ openvino: "openvino";
281
+ tflite: "tflite";
282
+ pt: "pt";
283
+ gguf: "gguf";
284
+ }>;
285
+ }, z.core.$strip>], "kind">>>;
286
+ }, z.core.$strip>>>;
287
+ reasons: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
288
+ kind: z.ZodLiteral<"fits">;
289
+ utilisation: z.ZodNumber;
290
+ }, z.core.$strip>, z.ZodObject<{
291
+ kind: z.ZodLiteral<"tie-faster">;
292
+ over: z.ZodString;
293
+ recallDelta: z.ZodNumber;
294
+ }, z.core.$strip>, z.ZodObject<{
295
+ kind: z.ZodLiteral<"stepped-down">;
296
+ from: z.ZodString;
297
+ to: z.ZodString;
298
+ limitedBy: z.ZodString;
299
+ }, z.core.$strip>, z.ZodObject<{
300
+ kind: z.ZodLiteral<"no-fit-lightest">;
301
+ utilisation: z.ZodNumber;
302
+ }, z.core.$strip>, z.ZodObject<{
303
+ kind: z.ZodLiteral<"derived-latency">;
304
+ modelId: z.ZodString;
305
+ }, z.core.$strip>, z.ZodObject<{
306
+ kind: z.ZodLiteral<"estimated-load">;
307
+ observedForMs: z.ZodNullable<z.ZodNumber>;
308
+ }, z.core.$strip>, z.ZodObject<{
309
+ kind: z.ZodLiteral<"cpu-device">;
310
+ }, z.core.$strip>, z.ZodObject<{
311
+ kind: z.ZodLiteral<"coral-untouched">;
312
+ }, z.core.$strip>, z.ZodObject<{
313
+ kind: z.ZodLiteral<"device-disabled">;
314
+ }, z.core.$strip>, z.ZodObject<{
315
+ kind: z.ZodLiteral<"device-unavailable">;
316
+ }, z.core.$strip>, z.ZodObject<{
317
+ kind: z.ZodLiteral<"node-offline">;
318
+ }, z.core.$strip>, z.ZodObject<{
319
+ kind: z.ZodLiteral<"no-hardware-facts">;
320
+ }, z.core.$strip>, z.ZodObject<{
321
+ kind: z.ZodLiteral<"no-measured-data">;
322
+ hardwareClass: z.ZodEnum<{
323
+ unknown: "unknown";
324
+ "intel-core-ultra": "intel-core-ultra";
325
+ "intel-n-series": "intel-n-series";
326
+ "apple-m-base": "apple-m-base";
327
+ "apple-m-pro": "apple-m-pro";
328
+ }>;
329
+ }, z.core.$strip>, z.ZodObject<{
330
+ kind: z.ZodLiteral<"no-family-build">;
331
+ format: z.ZodEnum<{
332
+ onnx: "onnx";
333
+ coreml: "coreml";
334
+ openvino: "openvino";
335
+ tflite: "tflite";
336
+ pt: "pt";
337
+ gguf: "gguf";
338
+ }>;
339
+ }, z.core.$strip>], "kind">>>;
340
+ }, z.core.$strip>;
341
+ export declare const ModelPinChangeSchema: z.ZodObject<{
342
+ stepId: z.ZodString;
343
+ before: z.ZodNullable<z.ZodString>;
344
+ after: z.ZodNullable<z.ZodString>;
345
+ }, z.core.$strip>;
346
+ export declare const NodeDeviceChangeSchema: z.ZodObject<{
347
+ nodeId: z.ZodString;
348
+ deviceKey: z.ZodString;
349
+ madeExplicit: z.ZodBoolean;
350
+ modelPins: z.ZodReadonly<z.ZodArray<z.ZodObject<{
351
+ stepId: z.ZodString;
352
+ before: z.ZodNullable<z.ZodString>;
353
+ after: z.ZodNullable<z.ZodString>;
354
+ }, z.core.$strip>>>;
355
+ thresholds: z.ZodReadonly<z.ZodArray<z.ZodObject<{
356
+ stepId: z.ZodString;
357
+ keys: z.ZodReadonly<z.ZodArray<z.ZodString>>;
358
+ }, z.core.$strip>>>;
359
+ }, z.core.$strip>;
360
+ export declare const CameraOverrideClearSchema: z.ZodObject<{
361
+ deviceId: z.ZodNumber;
362
+ source: z.ZodEnum<{
363
+ "step-override": "step-override";
364
+ wholesale: "wholesale";
365
+ }>;
366
+ nodeId: z.ZodString;
367
+ deviceKey: z.ZodNullable<z.ZodString>;
368
+ stepId: z.ZodString;
369
+ modelIdBefore: z.ZodNullable<z.ZodString>;
370
+ keys: z.ZodReadonly<z.ZodArray<z.ZodString>>;
371
+ }, z.core.$strip>;
372
+ export declare const DetectorStoreClearSchema: z.ZodObject<{
373
+ deviceId: z.ZodNumber;
374
+ keys: z.ZodReadonly<z.ZodArray<z.ZodString>>;
375
+ }, z.core.$strip>;
376
+ export declare const BestSettingsWarningSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
377
+ kind: z.ZodLiteral<"detector-store-cluster-wide">;
378
+ skippedNodes: z.ZodReadonly<z.ZodArray<z.ZodString>>;
379
+ }, z.core.$strip>, z.ZodObject<{
380
+ kind: z.ZodLiteral<"detector-store-unreadable">;
381
+ error: z.ZodString;
382
+ }, z.core.$strip>, z.ZodObject<{
383
+ kind: z.ZodLiteral<"coral-enabled">;
384
+ nodeId: z.ZodString;
385
+ deviceKey: z.ZodString;
386
+ }, z.core.$strip>], "kind">;
387
+ export declare const BestSettingsOptionsSchema: z.ZodObject<{
388
+ headroom: z.ZodDefault<z.ZodNumber>;
389
+ }, z.core.$strip>;
390
+ export declare const BestSettingsPlanSchema: z.ZodObject<{
391
+ planHash: z.ZodString;
392
+ family: z.ZodLiteral<"yolov9">;
393
+ headroom: z.ZodNumber;
394
+ generatedAt: z.ZodNumber;
395
+ nodes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
396
+ nodeId: z.ZodString;
397
+ reachable: z.ZodBoolean;
398
+ hardwareClass: z.ZodNullable<z.ZodEnum<{
399
+ unknown: "unknown";
400
+ "intel-core-ultra": "intel-core-ultra";
401
+ "intel-n-series": "intel-n-series";
402
+ "apple-m-base": "apple-m-base";
403
+ "apple-m-pro": "apple-m-pro";
404
+ }>>;
405
+ cpuModel: z.ZodNullable<z.ZodString>;
406
+ skipped: z.ZodBoolean;
407
+ acceleratorModelId: z.ZodNullable<z.ZodString>;
408
+ devices: z.ZodReadonly<z.ZodArray<z.ZodObject<{
409
+ deviceKey: z.ZodString;
410
+ accelerator: z.ZodNullable<z.ZodEnum<{
411
+ "apple-ane": "apple-ane";
412
+ "intel-npu": "intel-npu";
413
+ "intel-igpu": "intel-igpu";
414
+ "x86-cpu": "x86-cpu";
415
+ "arm-cpu": "arm-cpu";
416
+ coral: "coral";
417
+ }>>;
418
+ enabled: z.ZodBoolean;
419
+ available: z.ZodBoolean;
420
+ demand: z.ZodNullable<z.ZodObject<{
421
+ nodeId: z.ZodString;
422
+ deviceKey: z.ZodString;
423
+ demandFps: z.ZodNumber;
424
+ maxCameraFps: z.ZodNumber;
425
+ alwaysOnCameras: z.ZodNumber;
426
+ onMotionSessions: z.ZodNumber;
427
+ onMotionSource: z.ZodEnum<{
428
+ none: "none";
429
+ "observed-24h": "observed-24h";
430
+ estimate: "estimate";
431
+ }>;
432
+ observedForMs: z.ZodNullable<z.ZodNumber>;
433
+ }, z.core.$strip>>;
434
+ chosen: z.ZodNullable<z.ZodObject<{
435
+ modelId: z.ZodString;
436
+ p50Ms: z.ZodNumber;
437
+ fps: z.ZodNumber;
438
+ measured: z.ZodBoolean;
439
+ utilisation: z.ZodNumber;
440
+ personRecall: z.ZodNumber;
441
+ }, z.core.$strip>>;
442
+ reasons: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
443
+ kind: z.ZodLiteral<"fits">;
444
+ utilisation: z.ZodNumber;
445
+ }, z.core.$strip>, z.ZodObject<{
446
+ kind: z.ZodLiteral<"tie-faster">;
447
+ over: z.ZodString;
448
+ recallDelta: z.ZodNumber;
449
+ }, z.core.$strip>, z.ZodObject<{
450
+ kind: z.ZodLiteral<"stepped-down">;
451
+ from: z.ZodString;
452
+ to: z.ZodString;
453
+ limitedBy: z.ZodString;
454
+ }, z.core.$strip>, z.ZodObject<{
455
+ kind: z.ZodLiteral<"no-fit-lightest">;
456
+ utilisation: z.ZodNumber;
457
+ }, z.core.$strip>, z.ZodObject<{
458
+ kind: z.ZodLiteral<"derived-latency">;
459
+ modelId: z.ZodString;
460
+ }, z.core.$strip>, z.ZodObject<{
461
+ kind: z.ZodLiteral<"estimated-load">;
462
+ observedForMs: z.ZodNullable<z.ZodNumber>;
463
+ }, z.core.$strip>, z.ZodObject<{
464
+ kind: z.ZodLiteral<"cpu-device">;
465
+ }, z.core.$strip>, z.ZodObject<{
466
+ kind: z.ZodLiteral<"coral-untouched">;
467
+ }, z.core.$strip>, z.ZodObject<{
468
+ kind: z.ZodLiteral<"device-disabled">;
469
+ }, z.core.$strip>, z.ZodObject<{
470
+ kind: z.ZodLiteral<"device-unavailable">;
471
+ }, z.core.$strip>, z.ZodObject<{
472
+ kind: z.ZodLiteral<"node-offline">;
473
+ }, z.core.$strip>, z.ZodObject<{
474
+ kind: z.ZodLiteral<"no-hardware-facts">;
475
+ }, z.core.$strip>, z.ZodObject<{
476
+ kind: z.ZodLiteral<"no-measured-data">;
477
+ hardwareClass: z.ZodEnum<{
478
+ unknown: "unknown";
479
+ "intel-core-ultra": "intel-core-ultra";
480
+ "intel-n-series": "intel-n-series";
481
+ "apple-m-base": "apple-m-base";
482
+ "apple-m-pro": "apple-m-pro";
483
+ }>;
484
+ }, z.core.$strip>, z.ZodObject<{
485
+ kind: z.ZodLiteral<"no-family-build">;
486
+ format: z.ZodEnum<{
487
+ onnx: "onnx";
488
+ coreml: "coreml";
489
+ openvino: "openvino";
490
+ tflite: "tflite";
491
+ pt: "pt";
492
+ gguf: "gguf";
493
+ }>;
494
+ }, z.core.$strip>], "kind">>>;
495
+ }, z.core.$strip>>>;
496
+ reasons: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
497
+ kind: z.ZodLiteral<"fits">;
498
+ utilisation: z.ZodNumber;
499
+ }, z.core.$strip>, z.ZodObject<{
500
+ kind: z.ZodLiteral<"tie-faster">;
501
+ over: z.ZodString;
502
+ recallDelta: z.ZodNumber;
503
+ }, z.core.$strip>, z.ZodObject<{
504
+ kind: z.ZodLiteral<"stepped-down">;
505
+ from: z.ZodString;
506
+ to: z.ZodString;
507
+ limitedBy: z.ZodString;
508
+ }, z.core.$strip>, z.ZodObject<{
509
+ kind: z.ZodLiteral<"no-fit-lightest">;
510
+ utilisation: z.ZodNumber;
511
+ }, z.core.$strip>, z.ZodObject<{
512
+ kind: z.ZodLiteral<"derived-latency">;
513
+ modelId: z.ZodString;
514
+ }, z.core.$strip>, z.ZodObject<{
515
+ kind: z.ZodLiteral<"estimated-load">;
516
+ observedForMs: z.ZodNullable<z.ZodNumber>;
517
+ }, z.core.$strip>, z.ZodObject<{
518
+ kind: z.ZodLiteral<"cpu-device">;
519
+ }, z.core.$strip>, z.ZodObject<{
520
+ kind: z.ZodLiteral<"coral-untouched">;
521
+ }, z.core.$strip>, z.ZodObject<{
522
+ kind: z.ZodLiteral<"device-disabled">;
523
+ }, z.core.$strip>, z.ZodObject<{
524
+ kind: z.ZodLiteral<"device-unavailable">;
525
+ }, z.core.$strip>, z.ZodObject<{
526
+ kind: z.ZodLiteral<"node-offline">;
527
+ }, z.core.$strip>, z.ZodObject<{
528
+ kind: z.ZodLiteral<"no-hardware-facts">;
529
+ }, z.core.$strip>, z.ZodObject<{
530
+ kind: z.ZodLiteral<"no-measured-data">;
531
+ hardwareClass: z.ZodEnum<{
532
+ unknown: "unknown";
533
+ "intel-core-ultra": "intel-core-ultra";
534
+ "intel-n-series": "intel-n-series";
535
+ "apple-m-base": "apple-m-base";
536
+ "apple-m-pro": "apple-m-pro";
537
+ }>;
538
+ }, z.core.$strip>, z.ZodObject<{
539
+ kind: z.ZodLiteral<"no-family-build">;
540
+ format: z.ZodEnum<{
541
+ onnx: "onnx";
542
+ coreml: "coreml";
543
+ openvino: "openvino";
544
+ tflite: "tflite";
545
+ pt: "pt";
546
+ gguf: "gguf";
547
+ }>;
548
+ }, z.core.$strip>], "kind">>>;
549
+ }, z.core.$strip>>>;
550
+ nodeChanges: z.ZodReadonly<z.ZodArray<z.ZodObject<{
551
+ nodeId: z.ZodString;
552
+ deviceKey: z.ZodString;
553
+ madeExplicit: z.ZodBoolean;
554
+ modelPins: z.ZodReadonly<z.ZodArray<z.ZodObject<{
555
+ stepId: z.ZodString;
556
+ before: z.ZodNullable<z.ZodString>;
557
+ after: z.ZodNullable<z.ZodString>;
558
+ }, z.core.$strip>>>;
559
+ thresholds: z.ZodReadonly<z.ZodArray<z.ZodObject<{
560
+ stepId: z.ZodString;
561
+ keys: z.ZodReadonly<z.ZodArray<z.ZodString>>;
562
+ }, z.core.$strip>>>;
563
+ }, z.core.$strip>>>;
564
+ cameraClears: z.ZodReadonly<z.ZodArray<z.ZodObject<{
565
+ deviceId: z.ZodNumber;
566
+ source: z.ZodEnum<{
567
+ "step-override": "step-override";
568
+ wholesale: "wholesale";
569
+ }>;
570
+ nodeId: z.ZodString;
571
+ deviceKey: z.ZodNullable<z.ZodString>;
572
+ stepId: z.ZodString;
573
+ modelIdBefore: z.ZodNullable<z.ZodString>;
574
+ keys: z.ZodReadonly<z.ZodArray<z.ZodString>>;
575
+ }, z.core.$strip>>>;
576
+ detectorStoreClears: z.ZodReadonly<z.ZodArray<z.ZodObject<{
577
+ deviceId: z.ZodNumber;
578
+ keys: z.ZodReadonly<z.ZodArray<z.ZodString>>;
579
+ }, z.core.$strip>>>;
580
+ warnings: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
581
+ kind: z.ZodLiteral<"detector-store-cluster-wide">;
582
+ skippedNodes: z.ZodReadonly<z.ZodArray<z.ZodString>>;
583
+ }, z.core.$strip>, z.ZodObject<{
584
+ kind: z.ZodLiteral<"detector-store-unreadable">;
585
+ error: z.ZodString;
586
+ }, z.core.$strip>, z.ZodObject<{
587
+ kind: z.ZodLiteral<"coral-enabled">;
588
+ nodeId: z.ZodString;
589
+ deviceKey: z.ZodString;
590
+ }, z.core.$strip>], "kind">>>;
591
+ }, z.core.$strip>;
592
+ export declare const BestSettingsApplyInputSchema: z.ZodObject<{
593
+ planHash: z.ZodString;
594
+ headroom: z.ZodDefault<z.ZodNumber>;
595
+ }, z.core.$strip>;
596
+ export declare const BestSettingsPhaseResultSchema: z.ZodObject<{
597
+ phase: z.ZodEnum<{
598
+ download: "download";
599
+ "camera-overrides": "camera-overrides";
600
+ "detector-thresholds": "detector-thresholds";
601
+ "node-models": "node-models";
602
+ redispatch: "redispatch";
603
+ }>;
604
+ ok: z.ZodBoolean;
605
+ detail: z.ZodString;
606
+ }, z.core.$strip>;
607
+ export declare const BestSettingsApplyResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
608
+ kind: z.ZodLiteral<"applied">;
609
+ planHash: z.ZodString;
610
+ phases: z.ZodReadonly<z.ZodArray<z.ZodObject<{
611
+ phase: z.ZodEnum<{
612
+ download: "download";
613
+ "camera-overrides": "camera-overrides";
614
+ "detector-thresholds": "detector-thresholds";
615
+ "node-models": "node-models";
616
+ redispatch: "redispatch";
617
+ }>;
618
+ ok: z.ZodBoolean;
619
+ detail: z.ZodString;
620
+ }, z.core.$strip>>>;
621
+ }, z.core.$strip>, z.ZodObject<{
622
+ kind: z.ZodLiteral<"aborted">;
623
+ phases: z.ZodReadonly<z.ZodArray<z.ZodObject<{
624
+ phase: z.ZodEnum<{
625
+ download: "download";
626
+ "camera-overrides": "camera-overrides";
627
+ "detector-thresholds": "detector-thresholds";
628
+ "node-models": "node-models";
629
+ redispatch: "redispatch";
630
+ }>;
631
+ ok: z.ZodBoolean;
632
+ detail: z.ZodString;
633
+ }, z.core.$strip>>>;
634
+ }, z.core.$strip>, z.ZodObject<{
635
+ kind: z.ZodLiteral<"stale">;
636
+ plan: z.ZodObject<{
637
+ planHash: z.ZodString;
638
+ family: z.ZodLiteral<"yolov9">;
639
+ headroom: z.ZodNumber;
640
+ generatedAt: z.ZodNumber;
641
+ nodes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
642
+ nodeId: z.ZodString;
643
+ reachable: z.ZodBoolean;
644
+ hardwareClass: z.ZodNullable<z.ZodEnum<{
645
+ unknown: "unknown";
646
+ "intel-core-ultra": "intel-core-ultra";
647
+ "intel-n-series": "intel-n-series";
648
+ "apple-m-base": "apple-m-base";
649
+ "apple-m-pro": "apple-m-pro";
650
+ }>>;
651
+ cpuModel: z.ZodNullable<z.ZodString>;
652
+ skipped: z.ZodBoolean;
653
+ acceleratorModelId: z.ZodNullable<z.ZodString>;
654
+ devices: z.ZodReadonly<z.ZodArray<z.ZodObject<{
655
+ deviceKey: z.ZodString;
656
+ accelerator: z.ZodNullable<z.ZodEnum<{
657
+ "apple-ane": "apple-ane";
658
+ "intel-npu": "intel-npu";
659
+ "intel-igpu": "intel-igpu";
660
+ "x86-cpu": "x86-cpu";
661
+ "arm-cpu": "arm-cpu";
662
+ coral: "coral";
663
+ }>>;
664
+ enabled: z.ZodBoolean;
665
+ available: z.ZodBoolean;
666
+ demand: z.ZodNullable<z.ZodObject<{
667
+ nodeId: z.ZodString;
668
+ deviceKey: z.ZodString;
669
+ demandFps: z.ZodNumber;
670
+ maxCameraFps: z.ZodNumber;
671
+ alwaysOnCameras: z.ZodNumber;
672
+ onMotionSessions: z.ZodNumber;
673
+ onMotionSource: z.ZodEnum<{
674
+ none: "none";
675
+ "observed-24h": "observed-24h";
676
+ estimate: "estimate";
677
+ }>;
678
+ observedForMs: z.ZodNullable<z.ZodNumber>;
679
+ }, z.core.$strip>>;
680
+ chosen: z.ZodNullable<z.ZodObject<{
681
+ modelId: z.ZodString;
682
+ p50Ms: z.ZodNumber;
683
+ fps: z.ZodNumber;
684
+ measured: z.ZodBoolean;
685
+ utilisation: z.ZodNumber;
686
+ personRecall: z.ZodNumber;
687
+ }, z.core.$strip>>;
688
+ reasons: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
689
+ kind: z.ZodLiteral<"fits">;
690
+ utilisation: z.ZodNumber;
691
+ }, z.core.$strip>, z.ZodObject<{
692
+ kind: z.ZodLiteral<"tie-faster">;
693
+ over: z.ZodString;
694
+ recallDelta: z.ZodNumber;
695
+ }, z.core.$strip>, z.ZodObject<{
696
+ kind: z.ZodLiteral<"stepped-down">;
697
+ from: z.ZodString;
698
+ to: z.ZodString;
699
+ limitedBy: z.ZodString;
700
+ }, z.core.$strip>, z.ZodObject<{
701
+ kind: z.ZodLiteral<"no-fit-lightest">;
702
+ utilisation: z.ZodNumber;
703
+ }, z.core.$strip>, z.ZodObject<{
704
+ kind: z.ZodLiteral<"derived-latency">;
705
+ modelId: z.ZodString;
706
+ }, z.core.$strip>, z.ZodObject<{
707
+ kind: z.ZodLiteral<"estimated-load">;
708
+ observedForMs: z.ZodNullable<z.ZodNumber>;
709
+ }, z.core.$strip>, z.ZodObject<{
710
+ kind: z.ZodLiteral<"cpu-device">;
711
+ }, z.core.$strip>, z.ZodObject<{
712
+ kind: z.ZodLiteral<"coral-untouched">;
713
+ }, z.core.$strip>, z.ZodObject<{
714
+ kind: z.ZodLiteral<"device-disabled">;
715
+ }, z.core.$strip>, z.ZodObject<{
716
+ kind: z.ZodLiteral<"device-unavailable">;
717
+ }, z.core.$strip>, z.ZodObject<{
718
+ kind: z.ZodLiteral<"node-offline">;
719
+ }, z.core.$strip>, z.ZodObject<{
720
+ kind: z.ZodLiteral<"no-hardware-facts">;
721
+ }, z.core.$strip>, z.ZodObject<{
722
+ kind: z.ZodLiteral<"no-measured-data">;
723
+ hardwareClass: z.ZodEnum<{
724
+ unknown: "unknown";
725
+ "intel-core-ultra": "intel-core-ultra";
726
+ "intel-n-series": "intel-n-series";
727
+ "apple-m-base": "apple-m-base";
728
+ "apple-m-pro": "apple-m-pro";
729
+ }>;
730
+ }, z.core.$strip>, z.ZodObject<{
731
+ kind: z.ZodLiteral<"no-family-build">;
732
+ format: z.ZodEnum<{
733
+ onnx: "onnx";
734
+ coreml: "coreml";
735
+ openvino: "openvino";
736
+ tflite: "tflite";
737
+ pt: "pt";
738
+ gguf: "gguf";
739
+ }>;
740
+ }, z.core.$strip>], "kind">>>;
741
+ }, z.core.$strip>>>;
742
+ reasons: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
743
+ kind: z.ZodLiteral<"fits">;
744
+ utilisation: z.ZodNumber;
745
+ }, z.core.$strip>, z.ZodObject<{
746
+ kind: z.ZodLiteral<"tie-faster">;
747
+ over: z.ZodString;
748
+ recallDelta: z.ZodNumber;
749
+ }, z.core.$strip>, z.ZodObject<{
750
+ kind: z.ZodLiteral<"stepped-down">;
751
+ from: z.ZodString;
752
+ to: z.ZodString;
753
+ limitedBy: z.ZodString;
754
+ }, z.core.$strip>, z.ZodObject<{
755
+ kind: z.ZodLiteral<"no-fit-lightest">;
756
+ utilisation: z.ZodNumber;
757
+ }, z.core.$strip>, z.ZodObject<{
758
+ kind: z.ZodLiteral<"derived-latency">;
759
+ modelId: z.ZodString;
760
+ }, z.core.$strip>, z.ZodObject<{
761
+ kind: z.ZodLiteral<"estimated-load">;
762
+ observedForMs: z.ZodNullable<z.ZodNumber>;
763
+ }, z.core.$strip>, z.ZodObject<{
764
+ kind: z.ZodLiteral<"cpu-device">;
765
+ }, z.core.$strip>, z.ZodObject<{
766
+ kind: z.ZodLiteral<"coral-untouched">;
767
+ }, z.core.$strip>, z.ZodObject<{
768
+ kind: z.ZodLiteral<"device-disabled">;
769
+ }, z.core.$strip>, z.ZodObject<{
770
+ kind: z.ZodLiteral<"device-unavailable">;
771
+ }, z.core.$strip>, z.ZodObject<{
772
+ kind: z.ZodLiteral<"node-offline">;
773
+ }, z.core.$strip>, z.ZodObject<{
774
+ kind: z.ZodLiteral<"no-hardware-facts">;
775
+ }, z.core.$strip>, z.ZodObject<{
776
+ kind: z.ZodLiteral<"no-measured-data">;
777
+ hardwareClass: z.ZodEnum<{
778
+ unknown: "unknown";
779
+ "intel-core-ultra": "intel-core-ultra";
780
+ "intel-n-series": "intel-n-series";
781
+ "apple-m-base": "apple-m-base";
782
+ "apple-m-pro": "apple-m-pro";
783
+ }>;
784
+ }, z.core.$strip>, z.ZodObject<{
785
+ kind: z.ZodLiteral<"no-family-build">;
786
+ format: z.ZodEnum<{
787
+ onnx: "onnx";
788
+ coreml: "coreml";
789
+ openvino: "openvino";
790
+ tflite: "tflite";
791
+ pt: "pt";
792
+ gguf: "gguf";
793
+ }>;
794
+ }, z.core.$strip>], "kind">>>;
795
+ }, z.core.$strip>>>;
796
+ nodeChanges: z.ZodReadonly<z.ZodArray<z.ZodObject<{
797
+ nodeId: z.ZodString;
798
+ deviceKey: z.ZodString;
799
+ madeExplicit: z.ZodBoolean;
800
+ modelPins: z.ZodReadonly<z.ZodArray<z.ZodObject<{
801
+ stepId: z.ZodString;
802
+ before: z.ZodNullable<z.ZodString>;
803
+ after: z.ZodNullable<z.ZodString>;
804
+ }, z.core.$strip>>>;
805
+ thresholds: z.ZodReadonly<z.ZodArray<z.ZodObject<{
806
+ stepId: z.ZodString;
807
+ keys: z.ZodReadonly<z.ZodArray<z.ZodString>>;
808
+ }, z.core.$strip>>>;
809
+ }, z.core.$strip>>>;
810
+ cameraClears: z.ZodReadonly<z.ZodArray<z.ZodObject<{
811
+ deviceId: z.ZodNumber;
812
+ source: z.ZodEnum<{
813
+ "step-override": "step-override";
814
+ wholesale: "wholesale";
815
+ }>;
816
+ nodeId: z.ZodString;
817
+ deviceKey: z.ZodNullable<z.ZodString>;
818
+ stepId: z.ZodString;
819
+ modelIdBefore: z.ZodNullable<z.ZodString>;
820
+ keys: z.ZodReadonly<z.ZodArray<z.ZodString>>;
821
+ }, z.core.$strip>>>;
822
+ detectorStoreClears: z.ZodReadonly<z.ZodArray<z.ZodObject<{
823
+ deviceId: z.ZodNumber;
824
+ keys: z.ZodReadonly<z.ZodArray<z.ZodString>>;
825
+ }, z.core.$strip>>>;
826
+ warnings: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
827
+ kind: z.ZodLiteral<"detector-store-cluster-wide">;
828
+ skippedNodes: z.ZodReadonly<z.ZodArray<z.ZodString>>;
829
+ }, z.core.$strip>, z.ZodObject<{
830
+ kind: z.ZodLiteral<"detector-store-unreadable">;
831
+ error: z.ZodString;
832
+ }, z.core.$strip>, z.ZodObject<{
833
+ kind: z.ZodLiteral<"coral-enabled">;
834
+ nodeId: z.ZodString;
835
+ deviceKey: z.ZodString;
836
+ }, z.core.$strip>], "kind">>>;
837
+ }, z.core.$strip>;
838
+ }, z.core.$strip>, z.ZodObject<{
839
+ kind: z.ZodLiteral<"refused">;
840
+ reason: z.ZodEnum<{
841
+ "apply-in-progress": "apply-in-progress";
842
+ }>;
843
+ }, z.core.$strip>], "kind">;
844
+ export type BestSettingsPlan = z.infer<typeof BestSettingsPlanSchema>;
845
+ export type BestSettingsOptions = z.infer<typeof BestSettingsOptionsSchema>;
846
+ export type BestSettingsApplyInput = z.infer<typeof BestSettingsApplyInputSchema>;
847
+ export type BestSettingsApplyResult = z.infer<typeof BestSettingsApplyResultSchema>;
848
+ export type BestSettingsPhaseResult = z.infer<typeof BestSettingsPhaseResultSchema>;
849
+ export type BestSettingsWarning = z.infer<typeof BestSettingsWarningSchema>;
850
+ export type DetectorStoreClear = z.infer<typeof DetectorStoreClearSchema>;
851
+ export type BestSettingsCameraOverrideClear = z.infer<typeof CameraOverrideClearSchema>;
852
+ export type BestSettingsNodeDeviceChange = z.infer<typeof NodeDeviceChangeSchema>;
853
+ export type HardwareClassId = z.infer<typeof HardwareClassIdSchema>;
854
+ export type AcceleratorKind = z.infer<typeof AcceleratorKindSchema>;
855
+ export type RecommendationReason = z.infer<typeof RecommendationReasonSchema>;
856
+ export type DeviceDemand = z.infer<typeof DeviceDemandSchema>;
857
+ export type DeviceModelChoice = z.infer<typeof DeviceModelChoiceSchema>;
858
+ export type DeviceRecommendation = z.infer<typeof DeviceRecommendationSchema>;
859
+ export type NodeRecommendation = z.infer<typeof NodeRecommendationSchema>;