@camstack/types 1.2.316 → 1.2.318

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