@camstack/types 1.2.129 → 1.2.131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +4 -2
- package/dist/addon.mjs +4 -2
- package/dist/capabilities/index.d.ts +3 -3
- package/dist/capabilities/pipeline-analytics.cap.d.ts +151 -0
- package/dist/capabilities/recording.cap.d.ts +64 -0
- package/dist/capabilities/scene-monitor.cap.d.ts +233 -0
- package/dist/capabilities/storage-migration.cap.d.ts +1 -0
- package/dist/capabilities/zone-analytics.cap.d.ts +122 -2
- package/dist/generated/addon-api.d.ts +42 -0
- package/dist/generated/cap-input-defaults.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +2 -2
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.js +358 -2
- package/dist/index.mjs +351 -3
- package/dist/interfaces/relocate.d.ts +109 -0
- package/dist/{sleep-BS40IUZZ.mjs → sleep-BBI0PDUc.mjs} +5 -0
- package/dist/{sleep-D5821NGq.js → sleep-CqVyhcl-.js} +5 -0
- package/package.json +1 -1
|
@@ -40,6 +40,7 @@ export declare const RelocateJobSchema: z.ZodObject<{
|
|
|
40
40
|
bytesMoved: z.ZodNumber;
|
|
41
41
|
filesTotal: z.ZodNullable<z.ZodNumber>;
|
|
42
42
|
rowsReconciled: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
rowsForgotten: z.ZodOptional<z.ZodNumber>;
|
|
43
44
|
startedAt: z.ZodNumber;
|
|
44
45
|
finishedAt: z.ZodNullable<z.ZodNumber>;
|
|
45
46
|
error: z.ZodNullable<z.ZodString>;
|
|
@@ -549,6 +550,7 @@ export declare const StorageMigrationMoverSchema: z.ZodObject<{
|
|
|
549
550
|
bytesMoved: z.ZodNumber;
|
|
550
551
|
filesTotal: z.ZodNullable<z.ZodNumber>;
|
|
551
552
|
rowsReconciled: z.ZodOptional<z.ZodNumber>;
|
|
553
|
+
rowsForgotten: z.ZodOptional<z.ZodNumber>;
|
|
552
554
|
startedAt: z.ZodNumber;
|
|
553
555
|
finishedAt: z.ZodNullable<z.ZodNumber>;
|
|
554
556
|
error: z.ZodNullable<z.ZodString>;
|
|
@@ -626,6 +628,113 @@ export declare const RelocateResidueSchema: z.ZodNullable<z.ZodObject<{
|
|
|
626
628
|
bytes: z.ZodNumber;
|
|
627
629
|
}, z.core.$strip>>;
|
|
628
630
|
export type RelocateResidue = z.infer<typeof RelocateResidueSchema>;
|
|
631
|
+
/**
|
|
632
|
+
* Ask one location whether its durable hour rows describe the disk — the walk
|
|
633
|
+
* (D319).
|
|
634
|
+
*
|
|
635
|
+
* `apply` DEFAULTS TO FALSE and that default is the product: the operator's
|
|
636
|
+
* missing tool is the question, and the dry run is how they sanity-check the
|
|
637
|
+
* destructive run before authorising it.
|
|
638
|
+
*/
|
|
639
|
+
export declare const LedgerWalkInputSchema: z.ZodObject<{
|
|
640
|
+
locationId: z.ZodString;
|
|
641
|
+
apply: z.ZodOptional<z.ZodBoolean>;
|
|
642
|
+
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
643
|
+
profiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
644
|
+
}, z.core.$strip>;
|
|
645
|
+
export type LedgerWalkInput = z.infer<typeof LedgerWalkInputSchema>;
|
|
646
|
+
/** Why a whole walk did nothing. Every one leaves the ledger untouched. */
|
|
647
|
+
export declare const LedgerWalkRefusalSchema: z.ZodEnum<{
|
|
648
|
+
"location-unknown": "location-unknown";
|
|
649
|
+
"source-writable": "source-writable";
|
|
650
|
+
"no-ledger": "no-ledger";
|
|
651
|
+
"archive-unreadable": "archive-unreadable";
|
|
652
|
+
"anchor-absent": "anchor-absent";
|
|
653
|
+
"anchor-unreadable": "anchor-unreadable";
|
|
654
|
+
"anchor-moved": "anchor-moved";
|
|
655
|
+
}>;
|
|
656
|
+
export type LedgerWalkRefusal = z.infer<typeof LedgerWalkRefusalSchema>;
|
|
657
|
+
/** Why one hour was left exactly as it was found. */
|
|
658
|
+
export declare const LedgerWalkSkipReasonSchema: z.ZodEnum<{
|
|
659
|
+
"live-tail": "live-tail";
|
|
660
|
+
"listing-error": "listing-error";
|
|
661
|
+
"path-mismatch": "path-mismatch";
|
|
662
|
+
"durable-refused": "durable-refused";
|
|
663
|
+
}>;
|
|
664
|
+
export type LedgerWalkSkipReason = z.infer<typeof LedgerWalkSkipReasonSchema>;
|
|
665
|
+
/** Every skip reason, always present, always a number — so a reason that never
|
|
666
|
+
* fired reports as zero rather than absent and the report shape is constant
|
|
667
|
+
* between passes. Spelled out rather than `z.record` for exactly that. */
|
|
668
|
+
export declare const LedgerWalkSkipCountsSchema: z.ZodObject<{
|
|
669
|
+
'live-tail': z.ZodNumber;
|
|
670
|
+
'listing-error': z.ZodNumber;
|
|
671
|
+
'path-mismatch': z.ZodNumber;
|
|
672
|
+
'durable-refused': z.ZodNumber;
|
|
673
|
+
}, z.core.$strip>;
|
|
674
|
+
export type LedgerWalkSkipCounts = z.infer<typeof LedgerWalkSkipCountsSchema>;
|
|
675
|
+
/** One camera's share of a walk, so a report names cameras and not rows. */
|
|
676
|
+
export declare const LedgerWalkDeviceReportSchema: z.ZodObject<{
|
|
677
|
+
deviceId: z.ZodNumber;
|
|
678
|
+
hoursWalked: z.ZodNumber;
|
|
679
|
+
hoursMissing: z.ZodNumber;
|
|
680
|
+
ghostSegments: z.ZodNumber;
|
|
681
|
+
ghostBytes: z.ZodNumber;
|
|
682
|
+
forgottenSegments: z.ZodNumber;
|
|
683
|
+
orphanFiles: z.ZodNumber;
|
|
684
|
+
}, z.core.$strip>;
|
|
685
|
+
export type LedgerWalkDeviceReport = z.infer<typeof LedgerWalkDeviceReportSchema>;
|
|
686
|
+
/**
|
|
687
|
+
* What one walk claimed, listed, found and (only when armed) forgot.
|
|
688
|
+
*
|
|
689
|
+
* `archiveSegments` is the **M** and `segmentsClaimed` the **N** (D295), so a
|
|
690
|
+
* walk that saw a fraction of the location is visible in its own report rather
|
|
691
|
+
* than in the absence of one.
|
|
692
|
+
*/
|
|
693
|
+
export declare const LedgerWalkReportSchema: z.ZodObject<{
|
|
694
|
+
locationId: z.ZodString;
|
|
695
|
+
applied: z.ZodBoolean;
|
|
696
|
+
refused: z.ZodNullable<z.ZodEnum<{
|
|
697
|
+
"location-unknown": "location-unknown";
|
|
698
|
+
"source-writable": "source-writable";
|
|
699
|
+
"no-ledger": "no-ledger";
|
|
700
|
+
"archive-unreadable": "archive-unreadable";
|
|
701
|
+
"anchor-absent": "anchor-absent";
|
|
702
|
+
"anchor-unreadable": "anchor-unreadable";
|
|
703
|
+
"anchor-moved": "anchor-moved";
|
|
704
|
+
}>>;
|
|
705
|
+
archiveSegments: z.ZodNullable<z.ZodNumber>;
|
|
706
|
+
archiveBytes: z.ZodNullable<z.ZodNumber>;
|
|
707
|
+
hoursClaimed: z.ZodNumber;
|
|
708
|
+
hoursWalked: z.ZodNumber;
|
|
709
|
+
hoursMissing: z.ZodNumber;
|
|
710
|
+
listings: z.ZodNumber;
|
|
711
|
+
segmentsClaimed: z.ZodNumber;
|
|
712
|
+
ghostSegments: z.ZodNumber;
|
|
713
|
+
ghostBytes: z.ZodNumber;
|
|
714
|
+
ghostHoursWhole: z.ZodNumber;
|
|
715
|
+
forgottenSegments: z.ZodNumber;
|
|
716
|
+
forgottenBytes: z.ZodNumber;
|
|
717
|
+
orphanFiles: z.ZodNumber;
|
|
718
|
+
orphanSample: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
719
|
+
hoursSkipped: z.ZodNumber;
|
|
720
|
+
skippedByReason: z.ZodObject<{
|
|
721
|
+
'live-tail': z.ZodNumber;
|
|
722
|
+
'listing-error': z.ZodNumber;
|
|
723
|
+
'path-mismatch': z.ZodNumber;
|
|
724
|
+
'durable-refused': z.ZodNumber;
|
|
725
|
+
}, z.core.$strip>;
|
|
726
|
+
bounded: z.ZodBoolean;
|
|
727
|
+
byDevice: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
728
|
+
deviceId: z.ZodNumber;
|
|
729
|
+
hoursWalked: z.ZodNumber;
|
|
730
|
+
hoursMissing: z.ZodNumber;
|
|
731
|
+
ghostSegments: z.ZodNumber;
|
|
732
|
+
ghostBytes: z.ZodNumber;
|
|
733
|
+
forgottenSegments: z.ZodNumber;
|
|
734
|
+
orphanFiles: z.ZodNumber;
|
|
735
|
+
}, z.core.$strip>>>;
|
|
736
|
+
}, z.core.$strip>;
|
|
737
|
+
export type LedgerWalkReport = z.infer<typeof LedgerWalkReportSchema>;
|
|
629
738
|
/** How many rows a media pass would still act on against a given target — the
|
|
630
739
|
* media lane's denominator AND its residue, from ONE derivation so the two can
|
|
631
740
|
* never disagree. `null` = the count could not be taken. */
|
|
@@ -3428,6 +3428,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3428
3428
|
listEventKindsBatch: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "listEventKindsBatch", "query", input),
|
|
3429
3429
|
getSensorEvents: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getSensorEvents", "query", input),
|
|
3430
3430
|
getKeyEvents: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getKeyEvents", "query", input),
|
|
3431
|
+
getKeyEventsBatch: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getKeyEventsBatch", "query", input),
|
|
3431
3432
|
getEventDensity: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getEventDensity", "query", input),
|
|
3432
3433
|
pruneEventsBefore: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "pruneEventsBefore", "mutation", input),
|
|
3433
3434
|
pruneTracksBefore: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "pruneTracksBefore", "mutation", input),
|
|
@@ -3451,6 +3452,8 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3451
3452
|
listRelocateMediaJobs: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "listRelocateMediaJobs", "query", input),
|
|
3452
3453
|
cancelRelocateMedia: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "cancelRelocateMedia", "mutation", input),
|
|
3453
3454
|
listOpsLog: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "listOpsLog", "query", input),
|
|
3455
|
+
reclaimDebugMedia: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "reclaimDebugMedia", "mutation", input),
|
|
3456
|
+
getMediaReclaimStatus: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getMediaReclaimStatus", "query", input),
|
|
3454
3457
|
getTrainingExportSummary: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getTrainingExportSummary", "query", input),
|
|
3455
3458
|
getTrainingExportUrl: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getTrainingExportUrl", "query", input),
|
|
3456
3459
|
listRetrainStaging: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "listRetrainStaging", "query", input),
|
|
@@ -3509,6 +3512,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3509
3512
|
reboot: { reboot: (input) => dispatch("reboot", "reboot", "reboot", "mutation", input) },
|
|
3510
3513
|
sceneMonitor: {
|
|
3511
3514
|
listScenes: (input) => dispatch("scene-monitor", "sceneMonitor", "listScenes", "query", input),
|
|
3515
|
+
listScenesBatch: (input) => dispatch("scene-monitor", "sceneMonitor", "listScenesBatch", "query", input),
|
|
3512
3516
|
createScene: (input) => dispatch("scene-monitor", "sceneMonitor", "createScene", "mutation", input),
|
|
3513
3517
|
updateScene: (input) => dispatch("scene-monitor", "sceneMonitor", "updateScene", "mutation", input),
|
|
3514
3518
|
deleteScene: (input) => dispatch("scene-monitor", "sceneMonitor", "deleteScene", "mutation", input),
|
|
@@ -3593,6 +3597,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3593
3597
|
},
|
|
3594
3598
|
zoneAnalytics: {
|
|
3595
3599
|
getCurrentSnapshot: (input) => dispatch("zone-analytics", "zoneAnalytics", "getCurrentSnapshot", "query", input),
|
|
3600
|
+
getCurrentSnapshotBatch: (input) => dispatch("zone-analytics", "zoneAnalytics", "getCurrentSnapshotBatch", "query", input),
|
|
3596
3601
|
getZoneHistory: (input) => dispatch("zone-analytics", "zoneAnalytics", "getZoneHistory", "query", input),
|
|
3597
3602
|
getCameraHistory: (input) => dispatch("zone-analytics", "zoneAnalytics", "getCameraHistory", "query", input),
|
|
3598
3603
|
getUnzonedHistory: (input) => dispatch("zone-analytics", "zoneAnalytics", "getUnzonedHistory", "query", input)
|
|
@@ -3428,6 +3428,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3428
3428
|
listEventKindsBatch: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "listEventKindsBatch", "query", input),
|
|
3429
3429
|
getSensorEvents: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getSensorEvents", "query", input),
|
|
3430
3430
|
getKeyEvents: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getKeyEvents", "query", input),
|
|
3431
|
+
getKeyEventsBatch: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getKeyEventsBatch", "query", input),
|
|
3431
3432
|
getEventDensity: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getEventDensity", "query", input),
|
|
3432
3433
|
pruneEventsBefore: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "pruneEventsBefore", "mutation", input),
|
|
3433
3434
|
pruneTracksBefore: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "pruneTracksBefore", "mutation", input),
|
|
@@ -3451,6 +3452,8 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3451
3452
|
listRelocateMediaJobs: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "listRelocateMediaJobs", "query", input),
|
|
3452
3453
|
cancelRelocateMedia: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "cancelRelocateMedia", "mutation", input),
|
|
3453
3454
|
listOpsLog: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "listOpsLog", "query", input),
|
|
3455
|
+
reclaimDebugMedia: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "reclaimDebugMedia", "mutation", input),
|
|
3456
|
+
getMediaReclaimStatus: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getMediaReclaimStatus", "query", input),
|
|
3454
3457
|
getTrainingExportSummary: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getTrainingExportSummary", "query", input),
|
|
3455
3458
|
getTrainingExportUrl: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getTrainingExportUrl", "query", input),
|
|
3456
3459
|
listRetrainStaging: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "listRetrainStaging", "query", input),
|
|
@@ -3509,6 +3512,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3509
3512
|
reboot: { reboot: (input) => dispatch("reboot", "reboot", "reboot", "mutation", input) },
|
|
3510
3513
|
sceneMonitor: {
|
|
3511
3514
|
listScenes: (input) => dispatch("scene-monitor", "sceneMonitor", "listScenes", "query", input),
|
|
3515
|
+
listScenesBatch: (input) => dispatch("scene-monitor", "sceneMonitor", "listScenesBatch", "query", input),
|
|
3512
3516
|
createScene: (input) => dispatch("scene-monitor", "sceneMonitor", "createScene", "mutation", input),
|
|
3513
3517
|
updateScene: (input) => dispatch("scene-monitor", "sceneMonitor", "updateScene", "mutation", input),
|
|
3514
3518
|
deleteScene: (input) => dispatch("scene-monitor", "sceneMonitor", "deleteScene", "mutation", input),
|
|
@@ -3593,6 +3597,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3593
3597
|
},
|
|
3594
3598
|
zoneAnalytics: {
|
|
3595
3599
|
getCurrentSnapshot: (input) => dispatch("zone-analytics", "zoneAnalytics", "getCurrentSnapshot", "query", input),
|
|
3600
|
+
getCurrentSnapshotBatch: (input) => dispatch("zone-analytics", "zoneAnalytics", "getCurrentSnapshotBatch", "query", input),
|
|
3596
3601
|
getZoneHistory: (input) => dispatch("zone-analytics", "zoneAnalytics", "getZoneHistory", "query", input),
|
|
3597
3602
|
getCameraHistory: (input) => dispatch("zone-analytics", "zoneAnalytics", "getCameraHistory", "query", input),
|
|
3598
3603
|
getUnzonedHistory: (input) => dispatch("zone-analytics", "zoneAnalytics", "getUnzonedHistory", "query", input)
|