@camstack/types 1.2.75 → 1.2.77
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.d.ts +19 -18
- package/dist/addon.js +59 -56
- package/dist/addon.mjs +59 -57
- package/dist/capabilities/alerts.cap.d.ts +5 -5
- package/dist/capabilities/battery.cap.d.ts +8 -4
- package/dist/capabilities/custom-model-registry.cap.d.ts +4 -4
- package/dist/capabilities/decoder.cap.d.ts +2 -2
- package/dist/capabilities/face-gallery.cap.d.ts +1 -1
- package/dist/capabilities/index.d.ts +3 -3
- package/dist/capabilities/lawn-mower-control.cap.d.ts +4 -4
- package/dist/capabilities/llm-runtime.cap.d.ts +121 -3
- package/dist/capabilities/llm.cap.d.ts +189 -4
- package/dist/capabilities/metrics-provider.cap.d.ts +2 -2
- package/dist/capabilities/model-convert.cap.d.ts +6 -6
- package/dist/capabilities/model-distributor.cap.d.ts +4 -4
- package/dist/capabilities/notification-output.cap.d.ts +9 -9
- package/dist/capabilities/notification-rules.cap.d.ts +11 -11
- package/dist/capabilities/oauth-integration.cap.d.ts +2 -2
- package/dist/capabilities/osd-manager.cap.d.ts +6 -6
- package/dist/capabilities/pipeline-analytics.cap.d.ts +39 -39
- package/dist/capabilities/pipeline-executor.cap.d.ts +7 -7
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +6 -6
- package/dist/capabilities/pipeline-runner.cap.d.ts +2 -0
- package/dist/capabilities/platform-probe.cap.d.ts +2 -2
- package/dist/capabilities/recording.cap.d.ts +3 -3
- package/dist/capabilities/sso-bridge.cap.d.ts +3 -3
- package/dist/capabilities/stream-broker.cap.d.ts +6 -6
- package/dist/capabilities/stream-catalog.cap.d.ts +93 -0
- package/dist/capabilities/user-management.cap.d.ts +20 -20
- package/dist/device/base-device-provider.d.ts +9 -0
- package/dist/device/battery-presence.d.ts +84 -0
- package/dist/encode-profile.d.ts +2 -2
- package/dist/generated/addon-api.d.ts +15 -8
- package/dist/generated/device-local-state.d.ts +3 -0
- package/dist/generated/device-proxy.d.ts +1 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/runtime-state-durability.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +309 -9
- package/dist/index.mjs +303 -10
- package/dist/interfaces/recording-config.d.ts +2 -2
- package/dist/interfaces/stream-broker.d.ts +9 -1
- package/dist/{sleep-B-mRsuDp.js → sleep-CoL-9qhR.js} +43 -0
- package/dist/{sleep-CQayd2Su.mjs → sleep-DlC2kJYf.mjs} +38 -1
- package/dist/types/models.d.ts +7 -7
- package/dist/util/boot-recovery-backoff.d.ts +26 -0
- package/package.json +1 -1
|
@@ -140,8 +140,8 @@ declare const PipelineModelOptionSchema: z.ZodObject<{
|
|
|
140
140
|
int8: "int8";
|
|
141
141
|
}>>;
|
|
142
142
|
optimization: z.ZodOptional<z.ZodEnum<{
|
|
143
|
-
standard: "standard";
|
|
144
143
|
fast: "fast";
|
|
144
|
+
standard: "standard";
|
|
145
145
|
}>>;
|
|
146
146
|
resolution: z.ZodOptional<z.ZodNumber>;
|
|
147
147
|
}, z.core.$strip>>;
|
|
@@ -181,8 +181,8 @@ declare const PipelineAddonSchemaSchema: z.ZodObject<{
|
|
|
181
181
|
int8: "int8";
|
|
182
182
|
}>>;
|
|
183
183
|
optimization: z.ZodOptional<z.ZodEnum<{
|
|
184
|
-
standard: "standard";
|
|
185
184
|
fast: "fast";
|
|
185
|
+
standard: "standard";
|
|
186
186
|
}>>;
|
|
187
187
|
resolution: z.ZodOptional<z.ZodNumber>;
|
|
188
188
|
}, z.core.$strip>>;
|
|
@@ -247,8 +247,8 @@ declare const PipelineSlotSchemaSchema: z.ZodObject<{
|
|
|
247
247
|
int8: "int8";
|
|
248
248
|
}>>;
|
|
249
249
|
optimization: z.ZodOptional<z.ZodEnum<{
|
|
250
|
-
standard: "standard";
|
|
251
250
|
fast: "fast";
|
|
251
|
+
standard: "standard";
|
|
252
252
|
}>>;
|
|
253
253
|
resolution: z.ZodOptional<z.ZodNumber>;
|
|
254
254
|
}, z.core.$strip>>;
|
|
@@ -355,8 +355,8 @@ declare const PipelineSchemaSchema: z.ZodObject<{
|
|
|
355
355
|
int8: "int8";
|
|
356
356
|
}>>;
|
|
357
357
|
optimization: z.ZodOptional<z.ZodEnum<{
|
|
358
|
-
standard: "standard";
|
|
359
358
|
fast: "fast";
|
|
359
|
+
standard: "standard";
|
|
360
360
|
}>>;
|
|
361
361
|
resolution: z.ZodOptional<z.ZodNumber>;
|
|
362
362
|
}, z.core.$strip>>;
|
|
@@ -383,9 +383,9 @@ declare const EngineProvisioningSchema: z.ZodObject<{
|
|
|
383
383
|
state: z.ZodEnum<{
|
|
384
384
|
failed: "failed";
|
|
385
385
|
idle: "idle";
|
|
386
|
-
ready: "ready";
|
|
387
386
|
installing: "installing";
|
|
388
387
|
verifying: "verifying";
|
|
388
|
+
ready: "ready";
|
|
389
389
|
}>;
|
|
390
390
|
progress: z.ZodOptional<z.ZodNumber>;
|
|
391
391
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -532,9 +532,9 @@ export declare const pipelineExecutorCapability: {
|
|
|
532
532
|
state: z.ZodEnum<{
|
|
533
533
|
failed: "failed";
|
|
534
534
|
idle: "idle";
|
|
535
|
-
ready: "ready";
|
|
536
535
|
installing: "installing";
|
|
537
536
|
verifying: "verifying";
|
|
537
|
+
ready: "ready";
|
|
538
538
|
}>;
|
|
539
539
|
progress: z.ZodOptional<z.ZodNumber>;
|
|
540
540
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -666,8 +666,8 @@ export declare const pipelineExecutorCapability: {
|
|
|
666
666
|
int8: "int8";
|
|
667
667
|
}>>;
|
|
668
668
|
optimization: z.ZodOptional<z.ZodEnum<{
|
|
669
|
-
standard: "standard";
|
|
670
669
|
fast: "fast";
|
|
670
|
+
standard: "standard";
|
|
671
671
|
}>>;
|
|
672
672
|
resolution: z.ZodOptional<z.ZodNumber>;
|
|
673
673
|
}, z.core.$strip>>;
|
|
@@ -267,18 +267,18 @@ declare const CameraMotionStatusSchema: z.ZodObject<{
|
|
|
267
267
|
declare const CameraDetectionProvisioningStateSchema: z.ZodEnum<{
|
|
268
268
|
failed: "failed";
|
|
269
269
|
idle: "idle";
|
|
270
|
-
ready: "ready";
|
|
271
270
|
installing: "installing";
|
|
272
271
|
verifying: "verifying";
|
|
272
|
+
ready: "ready";
|
|
273
273
|
}>;
|
|
274
274
|
/** Detection provisioning sub-block. */
|
|
275
275
|
declare const CameraDetectionProvisioningSchema: z.ZodObject<{
|
|
276
276
|
state: z.ZodEnum<{
|
|
277
277
|
failed: "failed";
|
|
278
278
|
idle: "idle";
|
|
279
|
-
ready: "ready";
|
|
280
279
|
installing: "installing";
|
|
281
280
|
verifying: "verifying";
|
|
281
|
+
ready: "ready";
|
|
282
282
|
}>;
|
|
283
283
|
error: z.ZodOptional<z.ZodString>;
|
|
284
284
|
}, z.core.$strip>;
|
|
@@ -308,9 +308,9 @@ declare const CameraDetectionStatusSchema: z.ZodObject<{
|
|
|
308
308
|
state: z.ZodEnum<{
|
|
309
309
|
failed: "failed";
|
|
310
310
|
idle: "idle";
|
|
311
|
-
ready: "ready";
|
|
312
311
|
installing: "installing";
|
|
313
312
|
verifying: "verifying";
|
|
313
|
+
ready: "ready";
|
|
314
314
|
}>;
|
|
315
315
|
error: z.ZodOptional<z.ZodString>;
|
|
316
316
|
}, z.core.$strip>;
|
|
@@ -467,9 +467,9 @@ declare const CameraStatusSchema: z.ZodObject<{
|
|
|
467
467
|
state: z.ZodEnum<{
|
|
468
468
|
failed: "failed";
|
|
469
469
|
idle: "idle";
|
|
470
|
-
ready: "ready";
|
|
471
470
|
installing: "installing";
|
|
472
471
|
verifying: "verifying";
|
|
472
|
+
ready: "ready";
|
|
473
473
|
}>;
|
|
474
474
|
error: z.ZodOptional<z.ZodString>;
|
|
475
475
|
}, z.core.$strip>;
|
|
@@ -1381,9 +1381,9 @@ export declare const pipelineOrchestratorCapability: {
|
|
|
1381
1381
|
state: z.ZodEnum<{
|
|
1382
1382
|
failed: "failed";
|
|
1383
1383
|
idle: "idle";
|
|
1384
|
-
ready: "ready";
|
|
1385
1384
|
installing: "installing";
|
|
1386
1385
|
verifying: "verifying";
|
|
1386
|
+
ready: "ready";
|
|
1387
1387
|
}>;
|
|
1388
1388
|
error: z.ZodOptional<z.ZodString>;
|
|
1389
1389
|
}, z.core.$strip>;
|
|
@@ -1516,9 +1516,9 @@ export declare const pipelineOrchestratorCapability: {
|
|
|
1516
1516
|
state: z.ZodEnum<{
|
|
1517
1517
|
failed: "failed";
|
|
1518
1518
|
idle: "idle";
|
|
1519
|
-
ready: "ready";
|
|
1520
1519
|
installing: "installing";
|
|
1521
1520
|
verifying: "verifying";
|
|
1521
|
+
ready: "ready";
|
|
1522
1522
|
}>;
|
|
1523
1523
|
error: z.ZodOptional<z.ZodString>;
|
|
1524
1524
|
}, z.core.$strip>;
|
|
@@ -208,6 +208,7 @@ declare const RunnerCameraConfigSchema: z.ZodObject<{
|
|
|
208
208
|
}>>;
|
|
209
209
|
motionCooldownMs: z.ZodDefault<z.ZodNumber>;
|
|
210
210
|
maxSessionHoldMs: z.ZodOptional<z.ZodNumber>;
|
|
211
|
+
audioMotionWindowMs: z.ZodOptional<z.ZodNumber>;
|
|
211
212
|
motionFps: z.ZodDefault<z.ZodNumber>;
|
|
212
213
|
detectionFps: z.ZodDefault<z.ZodNumber>;
|
|
213
214
|
motionStreamId: z.ZodString;
|
|
@@ -340,6 +341,7 @@ export declare const pipelineRunnerCapability: {
|
|
|
340
341
|
}>>;
|
|
341
342
|
motionCooldownMs: z.ZodDefault<z.ZodNumber>;
|
|
342
343
|
maxSessionHoldMs: z.ZodOptional<z.ZodNumber>;
|
|
344
|
+
audioMotionWindowMs: z.ZodOptional<z.ZodNumber>;
|
|
343
345
|
motionFps: z.ZodDefault<z.ZodNumber>;
|
|
344
346
|
detectionFps: z.ZodDefault<z.ZodNumber>;
|
|
345
347
|
motionStreamId: z.ZodString;
|
|
@@ -274,13 +274,13 @@ export declare const platformProbeCapability: {
|
|
|
274
274
|
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
275
275
|
readonly resolveHwAccel: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
276
276
|
prefer: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
277
|
-
coreml: "coreml";
|
|
278
|
-
openvino: "openvino";
|
|
279
277
|
none: "none";
|
|
280
278
|
videotoolbox: "videotoolbox";
|
|
281
279
|
vaapi: "vaapi";
|
|
282
280
|
qsv: "qsv";
|
|
283
281
|
cuda: "cuda";
|
|
282
|
+
coreml: "coreml";
|
|
283
|
+
openvino: "openvino";
|
|
284
284
|
tensorrt: "tensorrt";
|
|
285
285
|
nvdec: "nvdec";
|
|
286
286
|
d3d11va: "d3d11va";
|
|
@@ -306,10 +306,10 @@ export declare const recordingCapability: {
|
|
|
306
306
|
maxSizeGb: z.ZodOptional<z.ZodNumber>;
|
|
307
307
|
}, z.core.$strip>>;
|
|
308
308
|
scrubThumbnails: z.ZodOptional<z.ZodEnum<{
|
|
309
|
-
standard: "standard";
|
|
310
309
|
high: "high";
|
|
311
310
|
low: "low";
|
|
312
311
|
max: "max";
|
|
312
|
+
standard: "standard";
|
|
313
313
|
minimal: "minimal";
|
|
314
314
|
}>>;
|
|
315
315
|
}, z.core.$strict>, "query">;
|
|
@@ -387,10 +387,10 @@ export declare const recordingCapability: {
|
|
|
387
387
|
maxSizeGb: z.ZodOptional<z.ZodNumber>;
|
|
388
388
|
}, z.core.$strip>>;
|
|
389
389
|
scrubThumbnails: z.ZodOptional<z.ZodEnum<{
|
|
390
|
-
standard: "standard";
|
|
391
390
|
high: "high";
|
|
392
391
|
low: "low";
|
|
393
392
|
max: "max";
|
|
393
|
+
standard: "standard";
|
|
394
394
|
minimal: "minimal";
|
|
395
395
|
}>>;
|
|
396
396
|
}, z.core.$strict>;
|
|
@@ -427,10 +427,10 @@ export declare const recordingCapability: {
|
|
|
427
427
|
maxSizeGb: z.ZodOptional<z.ZodNumber>;
|
|
428
428
|
}, z.core.$strip>>;
|
|
429
429
|
scrubThumbnails: z.ZodOptional<z.ZodEnum<{
|
|
430
|
-
standard: "standard";
|
|
431
430
|
high: "high";
|
|
432
431
|
low: "low";
|
|
433
432
|
max: "max";
|
|
433
|
+
standard: "standard";
|
|
434
434
|
minimal: "minimal";
|
|
435
435
|
}>>;
|
|
436
436
|
}, z.core.$strict>, "mutation">;
|
|
@@ -58,7 +58,7 @@ declare const SsoBridgeClaimsSchema: z.ZodObject<{
|
|
|
58
58
|
ids: z.ZodArray<z.ZodNumber>;
|
|
59
59
|
}, z.core.$strip>, z.ZodObject<{
|
|
60
60
|
kind: z.ZodLiteral<"types">;
|
|
61
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../
|
|
61
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
62
62
|
}, z.core.$strip>, z.ZodObject<{
|
|
63
63
|
kind: z.ZodLiteral<"locations">;
|
|
64
64
|
locations: z.ZodArray<z.ZodString>;
|
|
@@ -128,7 +128,7 @@ export declare const ssoBridgeCapability: {
|
|
|
128
128
|
ids: z.ZodArray<z.ZodNumber>;
|
|
129
129
|
}, z.core.$strip>, z.ZodObject<{
|
|
130
130
|
kind: z.ZodLiteral<"types">;
|
|
131
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../
|
|
131
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
132
132
|
}, z.core.$strip>, z.ZodObject<{
|
|
133
133
|
kind: z.ZodLiteral<"locations">;
|
|
134
134
|
locations: z.ZodArray<z.ZodString>;
|
|
@@ -197,7 +197,7 @@ export declare const ssoBridgeCapability: {
|
|
|
197
197
|
ids: z.ZodArray<z.ZodNumber>;
|
|
198
198
|
}, z.core.$strip>, z.ZodObject<{
|
|
199
199
|
kind: z.ZodLiteral<"types">;
|
|
200
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../
|
|
200
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
201
201
|
}, z.core.$strip>, z.ZodObject<{
|
|
202
202
|
kind: z.ZodLiteral<"locations">;
|
|
203
203
|
locations: z.ZodArray<z.ZodString>;
|
|
@@ -407,11 +407,11 @@ export declare const EgressEncodeSchema: z.ZodObject<{
|
|
|
407
407
|
gopFrames: z.ZodOptional<z.ZodNumber>;
|
|
408
408
|
bf: z.ZodOptional<z.ZodNumber>;
|
|
409
409
|
preset: z.ZodOptional<z.ZodEnum<{
|
|
410
|
-
fast: "fast";
|
|
411
410
|
ultrafast: "ultrafast";
|
|
412
411
|
superfast: "superfast";
|
|
413
412
|
veryfast: "veryfast";
|
|
414
413
|
faster: "faster";
|
|
414
|
+
fast: "fast";
|
|
415
415
|
medium: "medium";
|
|
416
416
|
}>>;
|
|
417
417
|
tune: z.ZodOptional<z.ZodEnum<{
|
|
@@ -478,11 +478,11 @@ export declare const EgressTranscodeRequestSchema: z.ZodObject<{
|
|
|
478
478
|
gopFrames: z.ZodOptional<z.ZodNumber>;
|
|
479
479
|
bf: z.ZodOptional<z.ZodNumber>;
|
|
480
480
|
preset: z.ZodOptional<z.ZodEnum<{
|
|
481
|
-
fast: "fast";
|
|
482
481
|
ultrafast: "ultrafast";
|
|
483
482
|
superfast: "superfast";
|
|
484
483
|
veryfast: "veryfast";
|
|
485
484
|
faster: "faster";
|
|
485
|
+
fast: "fast";
|
|
486
486
|
medium: "medium";
|
|
487
487
|
}>>;
|
|
488
488
|
tune: z.ZodOptional<z.ZodEnum<{
|
|
@@ -507,8 +507,8 @@ export declare const EgressTranscodeRequestSchema: z.ZodObject<{
|
|
|
507
507
|
nv12: "nv12";
|
|
508
508
|
}>>;
|
|
509
509
|
decodeHwAccel: z.ZodOptional<z.ZodEnum<{
|
|
510
|
-
none: "none";
|
|
511
510
|
auto: "auto";
|
|
511
|
+
none: "none";
|
|
512
512
|
videotoolbox: "videotoolbox";
|
|
513
513
|
vaapi: "vaapi";
|
|
514
514
|
qsv: "qsv";
|
|
@@ -585,11 +585,11 @@ export declare const streamBrokerCapability: {
|
|
|
585
585
|
gopFrames: z.ZodOptional<z.ZodNumber>;
|
|
586
586
|
bf: z.ZodOptional<z.ZodNumber>;
|
|
587
587
|
preset: z.ZodOptional<z.ZodEnum<{
|
|
588
|
-
fast: "fast";
|
|
589
588
|
ultrafast: "ultrafast";
|
|
590
589
|
superfast: "superfast";
|
|
591
590
|
veryfast: "veryfast";
|
|
592
591
|
faster: "faster";
|
|
592
|
+
fast: "fast";
|
|
593
593
|
medium: "medium";
|
|
594
594
|
}>>;
|
|
595
595
|
tune: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1100,11 +1100,11 @@ export declare const streamBrokerCapability: {
|
|
|
1100
1100
|
gopFrames: z.ZodOptional<z.ZodNumber>;
|
|
1101
1101
|
bf: z.ZodOptional<z.ZodNumber>;
|
|
1102
1102
|
preset: z.ZodOptional<z.ZodEnum<{
|
|
1103
|
-
fast: "fast";
|
|
1104
1103
|
ultrafast: "ultrafast";
|
|
1105
1104
|
superfast: "superfast";
|
|
1106
1105
|
veryfast: "veryfast";
|
|
1107
1106
|
faster: "faster";
|
|
1107
|
+
fast: "fast";
|
|
1108
1108
|
medium: "medium";
|
|
1109
1109
|
}>>;
|
|
1110
1110
|
tune: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1129,8 +1129,8 @@ export declare const streamBrokerCapability: {
|
|
|
1129
1129
|
nv12: "nv12";
|
|
1130
1130
|
}>>;
|
|
1131
1131
|
decodeHwAccel: z.ZodOptional<z.ZodEnum<{
|
|
1132
|
-
none: "none";
|
|
1133
1132
|
auto: "auto";
|
|
1133
|
+
none: "none";
|
|
1134
1134
|
videotoolbox: "videotoolbox";
|
|
1135
1135
|
vaapi: "vaapi";
|
|
1136
1136
|
qsv: "qsv";
|
|
@@ -49,6 +49,56 @@ export type CamStreamDescriptor = z.infer<typeof CamStreamDescriptorSchema>;
|
|
|
49
49
|
* set of stream descriptors it can offer for the device, synchronously, so the
|
|
50
50
|
* broker can reconcile its registry against the authoritative provider state.
|
|
51
51
|
*/
|
|
52
|
+
/**
|
|
53
|
+
* The catalog as a DURABLE fact rather than a live answer.
|
|
54
|
+
*
|
|
55
|
+
* A battery camera's descriptors are profile-stable — they change when the
|
|
56
|
+
* operator rewrites an encoder profile, not minute to minute — but building
|
|
57
|
+
* them costs a Baichuan login, which on a sleeping Argus IS a wake. So the
|
|
58
|
+
* provider is allowed to build them exactly once per profile and must serve
|
|
59
|
+
* every later pull from a cache.
|
|
60
|
+
*
|
|
61
|
+
* Holding that cache only in RAM is what turned a restart into an outage. The
|
|
62
|
+
* runner comes back with the camera asleep, `buildStreamCatalogUncached`
|
|
63
|
+
* correctly refuses to wake it, the pull answers `[]`, the broker has no
|
|
64
|
+
* cam-stream entry to build a broker from, and `webrtcSession.handleOffer`
|
|
65
|
+
* fails with a flat "No broker for stream" — for as long as the camera sleeps,
|
|
66
|
+
* which on a battery cam is most of the day. The camera was fine. The stream
|
|
67
|
+
* was unreachable because the process had forgotten what the camera offers.
|
|
68
|
+
*
|
|
69
|
+
* Declaring it here puts it in `device-runtime-state`, the kernel's canonical
|
|
70
|
+
* declared collection, with the same `restored` durability `battery` uses for
|
|
71
|
+
* the same reason: the last known value is the only value there is while the
|
|
72
|
+
* device is asleep. The broker's brokers are therefore always DEFINABLE — it
|
|
73
|
+
* is the DIAL that wakes a camera, never the catalog (D173).
|
|
74
|
+
*/
|
|
75
|
+
declare const StreamCatalogStateSchema: z.ZodObject<{
|
|
76
|
+
descriptors: z.ZodArray<z.ZodObject<{
|
|
77
|
+
camStreamId: z.ZodString;
|
|
78
|
+
kind: z.ZodEnum<{
|
|
79
|
+
"pull-rtsp": "pull-rtsp";
|
|
80
|
+
"pull-rtmp": "pull-rtmp";
|
|
81
|
+
"pull-http": "pull-http";
|
|
82
|
+
"pull-flv": "pull-flv";
|
|
83
|
+
"pull-rfc4571": "pull-rfc4571";
|
|
84
|
+
"push-annexb": "push-annexb";
|
|
85
|
+
derived: "derived";
|
|
86
|
+
}>;
|
|
87
|
+
url: z.ZodOptional<z.ZodString>;
|
|
88
|
+
codec: z.ZodOptional<z.ZodString>;
|
|
89
|
+
resolution: z.ZodOptional<z.ZodObject<{
|
|
90
|
+
width: z.ZodNumber;
|
|
91
|
+
height: z.ZodNumber;
|
|
92
|
+
}, z.core.$strip>>;
|
|
93
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
94
|
+
label: z.ZodOptional<z.ZodString>;
|
|
95
|
+
deviceFeatures: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
96
|
+
autoEligible: z.ZodOptional<z.ZodBoolean>;
|
|
97
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
98
|
+
}, z.core.$strip>>;
|
|
99
|
+
lastFetchedAt: z.ZodNumber;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
export type StreamCatalogState = z.infer<typeof StreamCatalogStateSchema>;
|
|
52
102
|
export declare const streamCatalogCapability: {
|
|
53
103
|
readonly name: "stream-catalog";
|
|
54
104
|
readonly scope: "device";
|
|
@@ -82,5 +132,48 @@ export declare const streamCatalogCapability: {
|
|
|
82
132
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
83
133
|
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
84
134
|
};
|
|
135
|
+
readonly runtimeState: z.ZodObject<{
|
|
136
|
+
descriptors: z.ZodArray<z.ZodObject<{
|
|
137
|
+
camStreamId: z.ZodString;
|
|
138
|
+
kind: z.ZodEnum<{
|
|
139
|
+
"pull-rtsp": "pull-rtsp";
|
|
140
|
+
"pull-rtmp": "pull-rtmp";
|
|
141
|
+
"pull-http": "pull-http";
|
|
142
|
+
"pull-flv": "pull-flv";
|
|
143
|
+
"pull-rfc4571": "pull-rfc4571";
|
|
144
|
+
"push-annexb": "push-annexb";
|
|
145
|
+
derived: "derived";
|
|
146
|
+
}>;
|
|
147
|
+
url: z.ZodOptional<z.ZodString>;
|
|
148
|
+
codec: z.ZodOptional<z.ZodString>;
|
|
149
|
+
resolution: z.ZodOptional<z.ZodObject<{
|
|
150
|
+
width: z.ZodNumber;
|
|
151
|
+
height: z.ZodNumber;
|
|
152
|
+
}, z.core.$strip>>;
|
|
153
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
154
|
+
label: z.ZodOptional<z.ZodString>;
|
|
155
|
+
deviceFeatures: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
156
|
+
autoEligible: z.ZodOptional<z.ZodBoolean>;
|
|
157
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
158
|
+
}, z.core.$strip>>;
|
|
159
|
+
lastFetchedAt: z.ZodNumber;
|
|
160
|
+
}, z.core.$strip>;
|
|
161
|
+
/**
|
|
162
|
+
* Runtime-state durability: **restored** — see the schema doc. A cold
|
|
163
|
+
* catalog on a sleeping battery camera is not a slow first frame, it is a
|
|
164
|
+
* camera that cannot be watched at all until it happens to wake.
|
|
165
|
+
*
|
|
166
|
+
* Churn is nil by construction: the slice is written only by a SUCCESSFUL
|
|
167
|
+
* build, and a build only runs when there is no cached copy (or the copy is
|
|
168
|
+
* a day old and the camera is awake anyway).
|
|
169
|
+
*
|
|
170
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
171
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
172
|
+
*/
|
|
173
|
+
readonly durability: "restored";
|
|
174
|
+
/** Clock field: written, but excluded from the compare that decides whether
|
|
175
|
+
* persisting is worth a SQLite commit — the descriptors are the value. */
|
|
176
|
+
readonly volatileStateFields: readonly ["lastFetchedAt"];
|
|
85
177
|
};
|
|
86
178
|
export type IStreamCatalogProvider = InferNativeProvider<typeof streamCatalogCapability>;
|
|
179
|
+
export {};
|
|
@@ -42,7 +42,7 @@ declare const UserSummarySchema: z.ZodObject<{
|
|
|
42
42
|
ids: z.ZodArray<z.ZodNumber>;
|
|
43
43
|
}, z.core.$strip>, z.ZodObject<{
|
|
44
44
|
kind: z.ZodLiteral<"types">;
|
|
45
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../
|
|
45
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
46
46
|
}, z.core.$strip>, z.ZodObject<{
|
|
47
47
|
kind: z.ZodLiteral<"locations">;
|
|
48
48
|
locations: z.ZodArray<z.ZodString>;
|
|
@@ -100,7 +100,7 @@ declare const CreateUserInputSchema: z.ZodObject<{
|
|
|
100
100
|
ids: z.ZodArray<z.ZodNumber>;
|
|
101
101
|
}, z.core.$strip>, z.ZodObject<{
|
|
102
102
|
kind: z.ZodLiteral<"types">;
|
|
103
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../
|
|
103
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
104
104
|
}, z.core.$strip>, z.ZodObject<{
|
|
105
105
|
kind: z.ZodLiteral<"locations">;
|
|
106
106
|
locations: z.ZodArray<z.ZodString>;
|
|
@@ -154,7 +154,7 @@ declare const UpdateUserInputSchema: z.ZodObject<{
|
|
|
154
154
|
ids: z.ZodArray<z.ZodNumber>;
|
|
155
155
|
}, z.core.$strip>, z.ZodObject<{
|
|
156
156
|
kind: z.ZodLiteral<"types">;
|
|
157
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../
|
|
157
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
158
158
|
}, z.core.$strip>, z.ZodObject<{
|
|
159
159
|
kind: z.ZodLiteral<"locations">;
|
|
160
160
|
locations: z.ZodArray<z.ZodString>;
|
|
@@ -237,7 +237,7 @@ declare const ScopedTokenSummarySchema: z.ZodObject<{
|
|
|
237
237
|
ids: z.ZodArray<z.ZodNumber>;
|
|
238
238
|
}, z.core.$strip>, z.ZodObject<{
|
|
239
239
|
kind: z.ZodLiteral<"types">;
|
|
240
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../
|
|
240
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
241
241
|
}, z.core.$strip>, z.ZodObject<{
|
|
242
242
|
kind: z.ZodLiteral<"locations">;
|
|
243
243
|
locations: z.ZodArray<z.ZodString>;
|
|
@@ -292,7 +292,7 @@ declare const CreateScopedTokenInputSchema: z.ZodObject<{
|
|
|
292
292
|
ids: z.ZodArray<z.ZodNumber>;
|
|
293
293
|
}, z.core.$strip>, z.ZodObject<{
|
|
294
294
|
kind: z.ZodLiteral<"types">;
|
|
295
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../
|
|
295
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
296
296
|
}, z.core.$strip>, z.ZodObject<{
|
|
297
297
|
kind: z.ZodLiteral<"locations">;
|
|
298
298
|
locations: z.ZodArray<z.ZodString>;
|
|
@@ -349,7 +349,7 @@ declare const CreateScopedTokenResultSchema: z.ZodObject<{
|
|
|
349
349
|
ids: z.ZodArray<z.ZodNumber>;
|
|
350
350
|
}, z.core.$strip>, z.ZodObject<{
|
|
351
351
|
kind: z.ZodLiteral<"types">;
|
|
352
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../
|
|
352
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
353
353
|
}, z.core.$strip>, z.ZodObject<{
|
|
354
354
|
kind: z.ZodLiteral<"locations">;
|
|
355
355
|
locations: z.ZodArray<z.ZodString>;
|
|
@@ -407,7 +407,7 @@ declare const OauthSessionSummarySchema: z.ZodObject<{
|
|
|
407
407
|
ids: z.ZodArray<z.ZodNumber>;
|
|
408
408
|
}, z.core.$strip>, z.ZodObject<{
|
|
409
409
|
kind: z.ZodLiteral<"types">;
|
|
410
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../
|
|
410
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
411
411
|
}, z.core.$strip>, z.ZodObject<{
|
|
412
412
|
kind: z.ZodLiteral<"locations">;
|
|
413
413
|
locations: z.ZodArray<z.ZodString>;
|
|
@@ -480,7 +480,7 @@ export declare const userManagementCapability: {
|
|
|
480
480
|
ids: z.ZodArray<z.ZodNumber>;
|
|
481
481
|
}, z.core.$strip>, z.ZodObject<{
|
|
482
482
|
kind: z.ZodLiteral<"types">;
|
|
483
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../
|
|
483
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
484
484
|
}, z.core.$strip>, z.ZodObject<{
|
|
485
485
|
kind: z.ZodLiteral<"locations">;
|
|
486
486
|
locations: z.ZodArray<z.ZodString>;
|
|
@@ -538,7 +538,7 @@ export declare const userManagementCapability: {
|
|
|
538
538
|
ids: z.ZodArray<z.ZodNumber>;
|
|
539
539
|
}, z.core.$strip>, z.ZodObject<{
|
|
540
540
|
kind: z.ZodLiteral<"types">;
|
|
541
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../
|
|
541
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
542
542
|
}, z.core.$strip>, z.ZodObject<{
|
|
543
543
|
kind: z.ZodLiteral<"locations">;
|
|
544
544
|
locations: z.ZodArray<z.ZodString>;
|
|
@@ -592,7 +592,7 @@ export declare const userManagementCapability: {
|
|
|
592
592
|
ids: z.ZodArray<z.ZodNumber>;
|
|
593
593
|
}, z.core.$strip>, z.ZodObject<{
|
|
594
594
|
kind: z.ZodLiteral<"types">;
|
|
595
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../
|
|
595
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
596
596
|
}, z.core.$strip>, z.ZodObject<{
|
|
597
597
|
kind: z.ZodLiteral<"locations">;
|
|
598
598
|
locations: z.ZodArray<z.ZodString>;
|
|
@@ -649,7 +649,7 @@ export declare const userManagementCapability: {
|
|
|
649
649
|
ids: z.ZodArray<z.ZodNumber>;
|
|
650
650
|
}, z.core.$strip>, z.ZodObject<{
|
|
651
651
|
kind: z.ZodLiteral<"types">;
|
|
652
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../
|
|
652
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
653
653
|
}, z.core.$strip>, z.ZodObject<{
|
|
654
654
|
kind: z.ZodLiteral<"locations">;
|
|
655
655
|
locations: z.ZodArray<z.ZodString>;
|
|
@@ -713,7 +713,7 @@ export declare const userManagementCapability: {
|
|
|
713
713
|
ids: z.ZodArray<z.ZodNumber>;
|
|
714
714
|
}, z.core.$strip>, z.ZodObject<{
|
|
715
715
|
kind: z.ZodLiteral<"types">;
|
|
716
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../
|
|
716
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
717
717
|
}, z.core.$strip>, z.ZodObject<{
|
|
718
718
|
kind: z.ZodLiteral<"locations">;
|
|
719
719
|
locations: z.ZodArray<z.ZodString>;
|
|
@@ -773,7 +773,7 @@ export declare const userManagementCapability: {
|
|
|
773
773
|
ids: z.ZodArray<z.ZodNumber>;
|
|
774
774
|
}, z.core.$strip>, z.ZodObject<{
|
|
775
775
|
kind: z.ZodLiteral<"types">;
|
|
776
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../
|
|
776
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
777
777
|
}, z.core.$strip>, z.ZodObject<{
|
|
778
778
|
kind: z.ZodLiteral<"locations">;
|
|
779
779
|
locations: z.ZodArray<z.ZodString>;
|
|
@@ -874,7 +874,7 @@ export declare const userManagementCapability: {
|
|
|
874
874
|
ids: z.ZodArray<z.ZodNumber>;
|
|
875
875
|
}, z.core.$strip>, z.ZodObject<{
|
|
876
876
|
kind: z.ZodLiteral<"types">;
|
|
877
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../
|
|
877
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
878
878
|
}, z.core.$strip>, z.ZodObject<{
|
|
879
879
|
kind: z.ZodLiteral<"locations">;
|
|
880
880
|
locations: z.ZodArray<z.ZodString>;
|
|
@@ -930,7 +930,7 @@ export declare const userManagementCapability: {
|
|
|
930
930
|
ids: z.ZodArray<z.ZodNumber>;
|
|
931
931
|
}, z.core.$strip>, z.ZodObject<{
|
|
932
932
|
kind: z.ZodLiteral<"types">;
|
|
933
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../
|
|
933
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
934
934
|
}, z.core.$strip>, z.ZodObject<{
|
|
935
935
|
kind: z.ZodLiteral<"locations">;
|
|
936
936
|
locations: z.ZodArray<z.ZodString>;
|
|
@@ -995,7 +995,7 @@ export declare const userManagementCapability: {
|
|
|
995
995
|
ids: z.ZodArray<z.ZodNumber>;
|
|
996
996
|
}, z.core.$strip>, z.ZodObject<{
|
|
997
997
|
kind: z.ZodLiteral<"types">;
|
|
998
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../
|
|
998
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
999
999
|
}, z.core.$strip>, z.ZodObject<{
|
|
1000
1000
|
kind: z.ZodLiteral<"locations">;
|
|
1001
1001
|
locations: z.ZodArray<z.ZodString>;
|
|
@@ -1054,7 +1054,7 @@ export declare const userManagementCapability: {
|
|
|
1054
1054
|
ids: z.ZodArray<z.ZodNumber>;
|
|
1055
1055
|
}, z.core.$strip>, z.ZodObject<{
|
|
1056
1056
|
kind: z.ZodLiteral<"types">;
|
|
1057
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../
|
|
1057
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
1058
1058
|
}, z.core.$strip>, z.ZodObject<{
|
|
1059
1059
|
kind: z.ZodLiteral<"locations">;
|
|
1060
1060
|
locations: z.ZodArray<z.ZodString>;
|
|
@@ -1139,7 +1139,7 @@ export declare const userManagementCapability: {
|
|
|
1139
1139
|
ids: z.ZodArray<z.ZodNumber>;
|
|
1140
1140
|
}, z.core.$strip>, z.ZodObject<{
|
|
1141
1141
|
kind: z.ZodLiteral<"types">;
|
|
1142
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../
|
|
1142
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
1143
1143
|
}, z.core.$strip>, z.ZodObject<{
|
|
1144
1144
|
kind: z.ZodLiteral<"locations">;
|
|
1145
1145
|
locations: z.ZodArray<z.ZodString>;
|
|
@@ -1215,7 +1215,7 @@ export declare const userManagementCapability: {
|
|
|
1215
1215
|
ids: z.ZodArray<z.ZodNumber>;
|
|
1216
1216
|
}, z.core.$strip>, z.ZodObject<{
|
|
1217
1217
|
kind: z.ZodLiteral<"types">;
|
|
1218
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../
|
|
1218
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
1219
1219
|
}, z.core.$strip>, z.ZodObject<{
|
|
1220
1220
|
kind: z.ZodLiteral<"locations">;
|
|
1221
1221
|
locations: z.ZodArray<z.ZodString>;
|
|
@@ -1269,7 +1269,7 @@ export declare const userManagementCapability: {
|
|
|
1269
1269
|
ids: z.ZodArray<z.ZodNumber>;
|
|
1270
1270
|
}, z.core.$strip>, z.ZodObject<{
|
|
1271
1271
|
kind: z.ZodLiteral<"types">;
|
|
1272
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../
|
|
1272
|
+
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
1273
1273
|
}, z.core.$strip>, z.ZodObject<{
|
|
1274
1274
|
kind: z.ZodLiteral<"locations">;
|
|
1275
1275
|
locations: z.ZodArray<z.ZodString>;
|
|
@@ -146,6 +146,15 @@ export declare abstract class BaseDeviceProvider<TConfig extends object = Record
|
|
|
146
146
|
value: unknown;
|
|
147
147
|
formValues?: Record<string, unknown>;
|
|
148
148
|
}): Promise<FieldProbeResult>;
|
|
149
|
+
/**
|
|
150
|
+
* Top-level devices restored at once in {@link onRestoreDevices}.
|
|
151
|
+
*
|
|
152
|
+
* Four covers the fleets this ships to without turning a boot into a burst a
|
|
153
|
+
* camera NVR answers with a refusal. A provider whose upstream is a single
|
|
154
|
+
* session with a serial command channel (a Baichuan hub, an NVR that
|
|
155
|
+
* serialises ISAPI) should lower it; nothing needs to raise it.
|
|
156
|
+
*/
|
|
157
|
+
protected readonly restoreConcurrency: number;
|
|
149
158
|
restoreDevices(savedDevices: readonly SavedDevice[]): Promise<void>;
|
|
150
159
|
/**
|
|
151
160
|
* Concrete device classes this provider can spawn, keyed by
|