@camstack/types 1.2.275 → 1.2.277

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_sleep = require("./sleep-WOeeZ4FU.js");
2
+ const require_sleep = require("./sleep-DCbD8sdg.js");
3
3
  const require_event_category = require("./event-category-MbnB-6AN.js");
4
4
  const require_err_msg = require("./err-msg-Dx2Kor0g.js");
5
5
  //#region src/generated/cap-input-defaults.ts
package/dist/addon.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { At as normalizeAddonInitResult, B as nodePin, Ct as PEER_BYTES_STALL_MS, D as adminUiCapability, Et as DATAPLANE_SECRET_HEADER, N as expandCapMethods, Ot as DisposerChain, Pt as emitReadiness, S as DEVICE_CHILDREN_BATCH_MAX, St as PEER_BYTES_MAX_OUTSTANDING, T as describeCustomActions, U as ReadinessRegistry, V as readNodePin, W as ReadinessTimeoutError, a as asJsonObject, b as deviceOpsCapability, d as BOOT_RECOVERY_BACKOFF_MS, f as DEVICE_SCOPED_CAPS, h as createEventBusSliceSource, kt as BaseAddon, m as createDeviceProxy, p as isDeviceScopedCap, q as scopeKey, s as asString, t as sleep, u as parseJsonUnknown, wt as PEER_BYTES_TICKET_TTL_MS, x as viewerUiCapability, xt as PEER_BYTES_CHUNK_BYTES } from "./sleep-C-v96WpE.mjs";
1
+ import { At as normalizeAddonInitResult, B as nodePin, Ct as PEER_BYTES_STALL_MS, D as adminUiCapability, Et as DATAPLANE_SECRET_HEADER, N as expandCapMethods, Ot as DisposerChain, Pt as emitReadiness, S as DEVICE_CHILDREN_BATCH_MAX, St as PEER_BYTES_MAX_OUTSTANDING, T as describeCustomActions, U as ReadinessRegistry, V as readNodePin, W as ReadinessTimeoutError, a as asJsonObject, b as deviceOpsCapability, d as BOOT_RECOVERY_BACKOFF_MS, f as DEVICE_SCOPED_CAPS, h as createEventBusSliceSource, kt as BaseAddon, m as createDeviceProxy, p as isDeviceScopedCap, q as scopeKey, s as asString, t as sleep, u as parseJsonUnknown, wt as PEER_BYTES_TICKET_TTL_MS, x as viewerUiCapability, xt as PEER_BYTES_CHUNK_BYTES } from "./sleep-gU6hqv4_.mjs";
2
2
  import { t as EventCategory } from "./event-category-C5xZWqz6.mjs";
3
3
  import { a as DeviceType, t as errMsg } from "./err-msg-DX6i_MY4.mjs";
4
4
  //#region src/generated/cap-input-defaults.ts
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { type Composition } from '../composition/composition.js';
3
+ import { DeviceType } from '../device/device-type.js';
3
4
  import { type InferProvider } from './capability-definition.js';
4
5
  /**
5
6
  * core-blocks — user-authored TypeScript, stored in the kernel and executed in
@@ -131,7 +132,7 @@ export declare const CoreBlockSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject
131
132
  composition: z.ZodObject<{
132
133
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
133
134
  kind: z.ZodLiteral<"new">;
134
- type: z.ZodEnum<typeof import("../index.js").DeviceType>;
135
+ type: z.ZodEnum<typeof DeviceType>;
135
136
  role: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceRole>>;
136
137
  }, z.core.$strip>, z.ZodObject<{
137
138
  kind: z.ZodLiteral<"existing">;
@@ -240,7 +241,7 @@ export declare const CompositionBlockInputSchema: z.ZodObject<{
240
241
  composition: z.ZodObject<{
241
242
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
242
243
  kind: z.ZodLiteral<"new">;
243
- type: z.ZodEnum<typeof import("../index.js").DeviceType>;
244
+ type: z.ZodEnum<typeof DeviceType>;
244
245
  role: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceRole>>;
245
246
  }, z.core.$strip>, z.ZodObject<{
246
247
  kind: z.ZodLiteral<"existing">;
@@ -401,7 +402,7 @@ export declare const CoreBlockSchema: z.ZodObject<{
401
402
  composition: z.ZodObject<{
402
403
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
403
404
  kind: z.ZodLiteral<"new">;
404
- type: z.ZodEnum<typeof import("../index.js").DeviceType>;
405
+ type: z.ZodEnum<typeof DeviceType>;
405
406
  role: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceRole>>;
406
407
  }, z.core.$strip>, z.ZodObject<{
407
408
  kind: z.ZodLiteral<"existing">;
@@ -601,7 +602,7 @@ export declare const CompositionViewSchema: z.ZodObject<{
601
602
  composition: z.ZodObject<{
602
603
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
603
604
  kind: z.ZodLiteral<"new">;
604
- type: z.ZodEnum<typeof import("../index.js").DeviceType>;
605
+ type: z.ZodEnum<typeof DeviceType>;
605
606
  role: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceRole>>;
606
607
  }, z.core.$strip>, z.ZodObject<{
607
608
  kind: z.ZodLiteral<"existing">;
@@ -799,7 +800,7 @@ export declare const CompositionListReadSchema: z.ZodDiscriminatedUnion<[z.ZodOb
799
800
  composition: z.ZodObject<{
800
801
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
801
802
  kind: z.ZodLiteral<"new">;
802
- type: z.ZodEnum<typeof import("../index.js").DeviceType>;
803
+ type: z.ZodEnum<typeof DeviceType>;
803
804
  role: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceRole>>;
804
805
  }, z.core.$strip>, z.ZodObject<{
805
806
  kind: z.ZodLiteral<"existing">;
@@ -1001,7 +1002,7 @@ export declare const CompositionGetReadSchema: z.ZodDiscriminatedUnion<[z.ZodObj
1001
1002
  composition: z.ZodObject<{
1002
1003
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
1003
1004
  kind: z.ZodLiteral<"new">;
1004
- type: z.ZodEnum<typeof import("../index.js").DeviceType>;
1005
+ type: z.ZodEnum<typeof DeviceType>;
1005
1006
  role: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceRole>>;
1006
1007
  }, z.core.$strip>, z.ZodObject<{
1007
1008
  kind: z.ZodLiteral<"existing">;
@@ -1204,7 +1205,7 @@ export declare const CompositionCustomizationReadSchema: z.ZodDiscriminatedUnion
1204
1205
  composition: z.ZodObject<{
1205
1206
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
1206
1207
  kind: z.ZodLiteral<"new">;
1207
- type: z.ZodEnum<typeof import("../index.js").DeviceType>;
1208
+ type: z.ZodEnum<typeof DeviceType>;
1208
1209
  role: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceRole>>;
1209
1210
  }, z.core.$strip>, z.ZodObject<{
1210
1211
  kind: z.ZodLiteral<"existing">;
@@ -1417,7 +1418,7 @@ export declare const coreBlocksCapability: {
1417
1418
  composition: z.ZodObject<{
1418
1419
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
1419
1420
  kind: z.ZodLiteral<"new">;
1420
- type: z.ZodEnum<typeof import("../index.js").DeviceType>;
1421
+ type: z.ZodEnum<typeof DeviceType>;
1421
1422
  role: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceRole>>;
1422
1423
  }, z.core.$strip>, z.ZodObject<{
1423
1424
  kind: z.ZodLiteral<"existing">;
@@ -1580,7 +1581,7 @@ export declare const coreBlocksCapability: {
1580
1581
  composition: z.ZodObject<{
1581
1582
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
1582
1583
  kind: z.ZodLiteral<"new">;
1583
- type: z.ZodEnum<typeof import("../index.js").DeviceType>;
1584
+ type: z.ZodEnum<typeof DeviceType>;
1584
1585
  role: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceRole>>;
1585
1586
  }, z.core.$strip>, z.ZodObject<{
1586
1587
  kind: z.ZodLiteral<"existing">;
@@ -1754,7 +1755,7 @@ export declare const coreBlocksCapability: {
1754
1755
  composition: z.ZodObject<{
1755
1756
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
1756
1757
  kind: z.ZodLiteral<"new">;
1757
- type: z.ZodEnum<typeof import("../index.js").DeviceType>;
1758
+ type: z.ZodEnum<typeof DeviceType>;
1758
1759
  role: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceRole>>;
1759
1760
  }, z.core.$strip>, z.ZodObject<{
1760
1761
  kind: z.ZodLiteral<"existing">;
@@ -1926,7 +1927,7 @@ export declare const coreBlocksCapability: {
1926
1927
  composition: z.ZodObject<{
1927
1928
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
1928
1929
  kind: z.ZodLiteral<"new">;
1929
- type: z.ZodEnum<typeof import("../index.js").DeviceType>;
1930
+ type: z.ZodEnum<typeof DeviceType>;
1930
1931
  role: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceRole>>;
1931
1932
  }, z.core.$strip>, z.ZodObject<{
1932
1933
  kind: z.ZodLiteral<"existing">;
@@ -2097,7 +2098,7 @@ export declare const coreBlocksCapability: {
2097
2098
  composition: z.ZodObject<{
2098
2099
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
2099
2100
  kind: z.ZodLiteral<"new">;
2100
- type: z.ZodEnum<typeof import("../index.js").DeviceType>;
2101
+ type: z.ZodEnum<typeof DeviceType>;
2101
2102
  role: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceRole>>;
2102
2103
  }, z.core.$strip>, z.ZodObject<{
2103
2104
  kind: z.ZodLiteral<"existing">;
@@ -2273,7 +2274,7 @@ export declare const coreBlocksCapability: {
2273
2274
  composition: z.ZodObject<{
2274
2275
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
2275
2276
  kind: z.ZodLiteral<"new">;
2276
- type: z.ZodEnum<typeof import("../index.js").DeviceType>;
2277
+ type: z.ZodEnum<typeof DeviceType>;
2277
2278
  role: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceRole>>;
2278
2279
  }, z.core.$strip>, z.ZodObject<{
2279
2280
  kind: z.ZodLiteral<"existing">;
@@ -2407,7 +2408,7 @@ export declare const coreBlocksCapability: {
2407
2408
  composition: z.ZodObject<{
2408
2409
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
2409
2410
  kind: z.ZodLiteral<"new">;
2410
- type: z.ZodEnum<typeof import("../index.js").DeviceType>;
2411
+ type: z.ZodEnum<typeof DeviceType>;
2411
2412
  role: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceRole>>;
2412
2413
  }, z.core.$strip>, z.ZodObject<{
2413
2414
  kind: z.ZodLiteral<"existing">;
@@ -2566,7 +2567,7 @@ export declare const coreBlocksCapability: {
2566
2567
  composition: z.ZodObject<{
2567
2568
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
2568
2569
  kind: z.ZodLiteral<"new">;
2569
- type: z.ZodEnum<typeof import("../index.js").DeviceType>;
2570
+ type: z.ZodEnum<typeof DeviceType>;
2570
2571
  role: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceRole>>;
2571
2572
  }, z.core.$strip>, z.ZodObject<{
2572
2573
  kind: z.ZodLiteral<"existing">;
@@ -2677,7 +2678,7 @@ export declare const coreBlocksCapability: {
2677
2678
  composition: z.ZodOptional<z.ZodObject<{
2678
2679
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
2679
2680
  kind: z.ZodLiteral<"new">;
2680
- type: z.ZodEnum<typeof import("../index.js").DeviceType>;
2681
+ type: z.ZodEnum<typeof DeviceType>;
2681
2682
  role: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceRole>>;
2682
2683
  }, z.core.$strip>, z.ZodObject<{
2683
2684
  kind: z.ZodLiteral<"existing">;
@@ -2836,7 +2837,7 @@ export declare const coreBlocksCapability: {
2836
2837
  composition: z.ZodObject<{
2837
2838
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
2838
2839
  kind: z.ZodLiteral<"new">;
2839
- type: z.ZodEnum<typeof import("../index.js").DeviceType>;
2840
+ type: z.ZodEnum<typeof DeviceType>;
2840
2841
  role: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceRole>>;
2841
2842
  }, z.core.$strip>, z.ZodObject<{
2842
2843
  kind: z.ZodLiteral<"existing">;
@@ -3004,7 +3005,7 @@ export declare const coreBlocksCapability: {
3004
3005
  composition: z.ZodObject<{
3005
3006
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
3006
3007
  kind: z.ZodLiteral<"new">;
3007
- type: z.ZodEnum<typeof import("../index.js").DeviceType>;
3008
+ type: z.ZodEnum<typeof DeviceType>;
3008
3009
  role: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceRole>>;
3009
3010
  }, z.core.$strip>, z.ZodObject<{
3010
3011
  kind: z.ZodLiteral<"existing">;
@@ -3205,7 +3206,7 @@ export declare const coreBlocksCapability: {
3205
3206
  composition: z.ZodObject<{
3206
3207
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
3207
3208
  kind: z.ZodLiteral<"new">;
3208
- type: z.ZodEnum<typeof import("../index.js").DeviceType>;
3209
+ type: z.ZodEnum<typeof DeviceType>;
3209
3210
  role: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceRole>>;
3210
3211
  }, z.core.$strip>, z.ZodObject<{
3211
3212
  kind: z.ZodLiteral<"existing">;
@@ -3413,7 +3414,7 @@ export declare const coreBlocksCapability: {
3413
3414
  composition: z.ZodObject<{
3414
3415
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
3415
3416
  kind: z.ZodLiteral<"new">;
3416
- type: z.ZodEnum<typeof import("../index.js").DeviceType>;
3417
+ type: z.ZodEnum<typeof DeviceType>;
3417
3418
  role: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceRole>>;
3418
3419
  }, z.core.$strip>, z.ZodObject<{
3419
3420
  kind: z.ZodLiteral<"existing">;
@@ -3546,6 +3547,36 @@ export declare const coreBlocksCapability: {
3546
3547
  state: z.ZodLiteral<"not-loaded">;
3547
3548
  reason: z.ZodString;
3548
3549
  }, z.core.$strip>], "state">, import("./capability-definition.js").CapabilityMethodKind>;
3550
+ /**
3551
+ * The capabilities a composition may BUILD on a device of `deviceType`
3552
+ * (a new device, or added to an existing one), with their fields — the
3553
+ * editor's feature list and the presets' availability (G2, D676). Built
3554
+ * from the validator's own blockers; a replace of a BOUND cap is not
3555
+ * listed here (the device's bindings say what it has).
3556
+ */
3557
+ readonly listComposableCaps: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
3558
+ deviceType: z.ZodEnum<typeof DeviceType>;
3559
+ }, z.core.$strip>, z.ZodObject<{
3560
+ caps: z.ZodArray<z.ZodObject<{
3561
+ cap: z.ZodString;
3562
+ fields: z.ZodArray<z.ZodObject<{
3563
+ path: z.ZodString;
3564
+ kind: z.ZodEnum<{
3565
+ string: "string";
3566
+ number: "number";
3567
+ boolean: "boolean";
3568
+ enum: "enum";
3569
+ }>;
3570
+ nullable: z.ZodBoolean;
3571
+ required: z.ZodBoolean;
3572
+ enumValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
3573
+ }, z.core.$strip>>;
3574
+ itemArray: z.ZodOptional<z.ZodObject<{
3575
+ path: z.ZodString;
3576
+ keyField: z.ZodString;
3577
+ }, z.core.$strip>>;
3578
+ }, z.core.$strip>>;
3579
+ }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
3549
3580
  /**
3550
3581
  * Validate without saving — the same verdict the save reaches. A mutation
3551
3582
  * for its body size; it writes nothing, so its access is `view`.
@@ -3554,7 +3585,7 @@ export declare const coreBlocksCapability: {
3554
3585
  composition: z.ZodObject<{
3555
3586
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
3556
3587
  kind: z.ZodLiteral<"new">;
3557
- type: z.ZodEnum<typeof import("../index.js").DeviceType>;
3588
+ type: z.ZodEnum<typeof DeviceType>;
3558
3589
  role: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceRole>>;
3559
3590
  }, z.core.$strip>, z.ZodObject<{
3560
3591
  kind: z.ZodLiteral<"existing">;
@@ -88,8 +88,8 @@ export { type IOauthIntegrationProvider, type OauthIntegrationDescriptor, OauthI
88
88
  export { AnalyticsLtsSeriesSchema, type AudioEvent, type AudioEventDraft, AudioEventSchema, type DetectionSource, DetectionSourceSchema, EVENT_DENSITY_BATCH_MAX, type EventDensityBucket, EventDensityBucketSchema, type EventDensityForDevice, EventDensityForDeviceSchema, type EventKind, type EventKindCategory, EventKindCategorySchema, type EventKindDescriptor, EventKindDescriptorSchema, type EventKindIcon, EventKindIconSchema, EventKindSchema, type EventKindsForDevice, EventKindsForDeviceSchema, type EventMediaKindBreakdown, type EventMediaKindFootprint, type EventPruneCounts, type EventStoreDeviceFootprint, type EventStoreFootprint, type IPipelineAnalyticsProvider, type KeyEvent, KeyEventSchema, type KeyEventsForDevice, type LabelAttribution, LabelAttributionSchema, type LabelTier, LabelTierSchema, LTS_SCOPE_CLASS_SEPARATOR, type LtsBucket, LtsBucketSchema, MAX_TRACK_DEBUG_NOTE_LEN, type MediaFile, type MediaFileBytes, type MediaFileInfo, MediaFileInfoSchema, type MediaFileKind, MediaFileKindEnum, type MediaFileRef, MediaFileRefSchema, MediaFileSchema, type MotionEvent, type MotionEventDraft, MotionEventSchema, type ObjectEvent, type ObjectEventDraft, ObjectEventSchema, occupancyScope, parseOccupancyScope, pipelineAnalyticsCapability, type RecentTracksPage, RecentTracksPageSchema, type RecentTracksQuery, RecentTracksQueryInput, type RetrainAnnotation, type RetrainAnnotationDraft, RetrainAnnotationDraftSchema, RetrainAnnotationKindSchema, RetrainAnnotationSchema, RetrainAnnotationSourceSchema, type RetrainAssistResult, RetrainAssistResultSchema, RetrainAssistSubjectSchema, RetrainCopyRefusalSchema, type RetrainFrame, type RetrainFrameCandidate, RetrainFrameCandidateSchema, type RetrainFrameList, RetrainFrameListSchema, RetrainFrameSchema, type RetrainFrameSelection, RetrainFrameSelectionSchema, type RetrainMacroClass, RetrainMacroClassSchema, type RetrainStatus, RetrainStatusSchema, type RetrainTrack, RetrainTrackSchema, type RetrainTransitionResult, RetrainTransitionResultSchema, type RebuildObjectEmbeddingsRefusal, RebuildObjectEmbeddingsRefusalSchema, type ScoredObjectEvent, ScoredObjectEventSchema, type SensorEvent, SensorEventSchema, type Track, type TrackCascadeCounts, TrackCascadeCountsSchema, type TrackEnvelope, TrackEnvelopeSchema, TrackedDetectionSchema, type TrackFlags, type TrackFlagsPatch, TrackFlagsPatchSchema, TrackFlagsSchema, type TrackProjection, TrackProjectionSchema, TrackSchema, type TrackSource, TrackSourceSchema, type TrackState, TrackStateSchema, type TrackZoneFilter, TrackZoneFilterSchema, type TrainingExportDeviceTotals, TrainingExportDeviceTotalsSchema, type TrainingExportSummary, TrainingExportSummarySchema, type ZoneCrossing, type ZoneCrossingDirection, ZoneCrossingDirectionSchema, ZoneCrossingSchema, } from './pipeline-analytics.cap.js';
89
89
  export type { EffectiveTuning, EffectiveTuningInput, NativeCropRef, PipelineStepInputOutput, PipelineValidationIssue, PipelineValidationResult, } from './pipeline-executor.cap.js';
90
90
  export { EffectiveTuningSchema, ModelSubstitutionSchema, NativeCropRefSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, pipelineExecutorCapability, } from './pipeline-executor.cap.js';
91
- export type { CameraAssignmentStatus, CameraAudioStatus, CameraBrokerProfile, CameraBrokerStatus, CameraDecoderShm, CameraDecoderStatus, CameraDetectionPhase, CameraDetectionProvisioning, CameraDetectionProvisioningState, CameraDetectionStatus, CameraMotionStatus, CameraRecordingMode, CameraRecordingStatus, CameraSourceStatus, CameraSourceStream, CameraStatus, CameraStatusDegradation, CameraStatusDegradationReason, CameraStatusStage, ClusterModelChoice, ClusterModelChoiceUnreadableReason, DiskReconcileJob, InferenceDeviceExclusionReason, IngestOwner, NodeInferenceDevice, NodeInferenceDevices, } from './pipeline-orchestrator.cap.js';
92
- export { AgentLoadSummarySchema, CLUSTER_MODEL_CHOICE_UNREADABLE_REASONS, ClusterModelChoiceSchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMotionStatusSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusDegradationReasonSchema, CameraStatusDegradationSchema, CameraStatusSchema, CameraStatusStageSchema, CapabilityBindingsSchema, DiskReconcileJobSchema, GlobalMetricsSchema, INFERENCE_DEVICE_EXCLUSION_REASONS, InferenceDeviceExclusionReasonSchema, IngestOwnerSchema, PipelineAssignmentSchema, pipelineOrchestratorCapability, } from './pipeline-orchestrator.cap.js';
91
+ export type { CameraAssignmentStatus, CameraAudioStatus, CameraBrokerProfile, CameraBrokerStatus, CameraDecoderShm, CameraDecoderStatus, CameraDetectionPhase, CameraDetectionProvisioning, CameraDetectionProvisioningState, CameraDetectionStatus, CameraMotionStatus, CameraRecordingMode, CameraRecordingStatus, CameraSourceStatus, CameraSourceStream, CameraStatus, CameraStatusDegradation, CameraStatusDegradationReason, CameraStatusStage, ClusterModelChoice, ClusterModelChoiceUnreadableReason, DiskReconcileJob, InferenceDeviceExclusionReason, IngestOwner, NodeInferenceDevice, NodeInferenceDevices, SetCameraSensorsInput, } from './pipeline-orchestrator.cap.js';
92
+ export { AgentLoadSummarySchema, CLUSTER_MODEL_CHOICE_UNREADABLE_REASONS, ClusterModelChoiceSchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMotionStatusSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusDegradationReasonSchema, CameraStatusDegradationSchema, CameraStatusSchema, CameraStatusStageSchema, CapabilityBindingsSchema, DiskReconcileJobSchema, GlobalMetricsSchema, INFERENCE_DEVICE_EXCLUSION_REASONS, InferenceDeviceExclusionReasonSchema, IngestOwnerSchema, PipelineAssignmentSchema, pipelineOrchestratorCapability, SetCameraSensorsInputSchema, } from './pipeline-orchestrator.cap.js';
93
93
  export type { DetailParent, DetailResult, MotionSource, MotionSources, OccupancyBurstRefusal, ParkedFrameKind, ParkedTrackFrame, ParkRefusal, ParkTrackFrameResult, ReportMotionInput, RunDetailSubtreeInput, RunDetailSubtreeResult, RunnerFrameSource, RunnerInferenceDevice, RunnerJumpStepProvisioning, RunStatelessStepInput, RunStatelessStepResult, StatelessStepRefusal, } from './pipeline-runner.cap.js';
94
94
  export { type DetectionSources, DetectionSourcesSchema, FrameLazyCountersSchema, FrameLazyMetricsSchema, MOTION_SOURCE_LABELS, MotionSourceEnum, MotionSourcesSchema, motionSourceLabel, type NativeCropBbox, NativeCropBboxSchema, NativeCropResultSchema, OccupancyBurstRefusalSchema, ParkedFrameKindSchema, ParkedTrackFrameSchema, ParkRefusalSchema, ParkTrackFrameResultSchema, pipelineRunnerCapability, ReportMotionInputSchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerFrameSourceSchema, RunnerInferenceDeviceSchema, RunnerJumpStepProvisioningSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, } from './pipeline-runner.cap.js';
95
95
  export { AUDIO_NOT_CLASSIFIED_REASONS, AudioChunkInputSchema, AudioClassificationLabelSchema, AudioClassifyOutcomeSchema, AudioLevelSchema, BoundingBoxSchema, FrameInputSchema, SpatialDetectionSchema, } from './schemas/detection-shared.js';
@@ -2251,13 +2251,13 @@ export type NcTestResult = z.infer<typeof NcTestResultSchema>;
2251
2251
  * (a stored system rule whose kinds span families, D637) and never authored. */
2252
2252
  export declare const NcRuleKindSchema: z.ZodEnum<{
2253
2253
  sensor: "sensor";
2254
+ mixed: "mixed";
2254
2255
  detection: "detection";
2255
2256
  system: "system";
2256
2257
  occupancy: "occupancy";
2257
2258
  sound: "sound";
2258
2259
  alarm: "alarm";
2259
2260
  "device-events": "device-events";
2260
- mixed: "mixed";
2261
2261
  }>;
2262
2262
  /**
2263
2263
  * The kinds a SERVED template-variable descriptor may name: the five that
@@ -2420,13 +2420,13 @@ export declare const NcTemplateVarContextSchema: z.ZodObject<{
2420
2420
  }>;
2421
2421
  kind: z.ZodOptional<z.ZodEnum<{
2422
2422
  sensor: "sensor";
2423
+ mixed: "mixed";
2423
2424
  detection: "detection";
2424
2425
  system: "system";
2425
2426
  occupancy: "occupancy";
2426
2427
  sound: "sound";
2427
2428
  alarm: "alarm";
2428
2429
  "device-events": "device-events";
2429
- mixed: "mixed";
2430
2430
  }>>;
2431
2431
  delivery: z.ZodOptional<z.ZodEnum<{
2432
2432
  "device-event": "device-event";
@@ -2497,13 +2497,13 @@ export declare const NcTemplatePreviewInputSchema: z.ZodObject<{
2497
2497
  }>;
2498
2498
  kind: z.ZodOptional<z.ZodEnum<{
2499
2499
  sensor: "sensor";
2500
+ mixed: "mixed";
2500
2501
  detection: "detection";
2501
2502
  system: "system";
2502
2503
  occupancy: "occupancy";
2503
2504
  sound: "sound";
2504
2505
  alarm: "alarm";
2505
2506
  "device-events": "device-events";
2506
- mixed: "mixed";
2507
2507
  }>>;
2508
2508
  delivery: z.ZodOptional<z.ZodEnum<{
2509
2509
  "device-event": "device-event";
@@ -6007,13 +6007,13 @@ export declare const notificationRulesCapability: {
6007
6007
  }>;
6008
6008
  kind: z.ZodOptional<z.ZodEnum<{
6009
6009
  sensor: "sensor";
6010
+ mixed: "mixed";
6010
6011
  detection: "detection";
6011
6012
  system: "system";
6012
6013
  occupancy: "occupancy";
6013
6014
  sound: "sound";
6014
6015
  alarm: "alarm";
6015
6016
  "device-events": "device-events";
6016
- mixed: "mixed";
6017
6017
  }>>;
6018
6018
  delivery: z.ZodOptional<z.ZodEnum<{
6019
6019
  "device-event": "device-event";
@@ -3002,6 +3002,141 @@ export declare const pipelineAnalyticsCapability: {
3002
3002
  trackClass: z.ZodNullable<z.ZodString>;
3003
3003
  trackLabel: z.ZodNullable<z.ZodString>;
3004
3004
  }, z.core.$strip>>>, "query">;
3005
+ /**
3006
+ * Tracking-bench ground truth (D681): "this track and that one are the
3007
+ * same subject" / "different subjects". One row per unordered pair —
3008
+ * re-marking replaces it — and a mark that contradicts an existing chain
3009
+ * is REFUSED with the chain named. Writing a mark also sets `debug` on
3010
+ * both tracks. `protected`, matching `setTrackFlags`: marking is done from
3011
+ * the viewer's track detail by an authenticated non-admin session.
3012
+ */
3013
+ readonly setTrackRelation: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
3014
+ deviceId: z.ZodNumber;
3015
+ trackId: z.ZodString;
3016
+ otherTrackId: z.ZodString;
3017
+ relation: z.ZodEnum<{
3018
+ "same-subject": "same-subject";
3019
+ "different-subjects": "different-subjects";
3020
+ }>;
3021
+ presence: z.ZodOptional<z.ZodLiteral<"continuous">>;
3022
+ trackSide: z.ZodOptional<z.ZodEnum<{
3023
+ before: "before";
3024
+ after: "after";
3025
+ }>>;
3026
+ otherSide: z.ZodOptional<z.ZodEnum<{
3027
+ before: "before";
3028
+ after: "after";
3029
+ }>>;
3030
+ }, z.core.$strip>, z.ZodObject<{
3031
+ id: z.ZodString;
3032
+ deviceId: z.ZodNumber;
3033
+ leftTrackId: z.ZodString;
3034
+ rightTrackId: z.ZodString;
3035
+ leftSide: z.ZodNullable<z.ZodEnum<{
3036
+ before: "before";
3037
+ after: "after";
3038
+ }>>;
3039
+ rightSide: z.ZodNullable<z.ZodEnum<{
3040
+ before: "before";
3041
+ after: "after";
3042
+ }>>;
3043
+ relation: z.ZodEnum<{
3044
+ "same-subject": "same-subject";
3045
+ "different-subjects": "different-subjects";
3046
+ }>;
3047
+ presence: z.ZodNullable<z.ZodLiteral<"continuous">>;
3048
+ leftStartedAt: z.ZodNullable<z.ZodNumber>;
3049
+ rightStartedAt: z.ZodNullable<z.ZodNumber>;
3050
+ createdAt: z.ZodNumber;
3051
+ updatedAt: z.ZodNumber;
3052
+ author: z.ZodNullable<z.ZodString>;
3053
+ }, z.core.$strip>, "mutation">;
3054
+ /** Remove the mark between two tracks. */
3055
+ readonly clearTrackRelation: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
3056
+ deviceId: z.ZodNumber;
3057
+ trackId: z.ZodString;
3058
+ otherTrackId: z.ZodString;
3059
+ }, z.core.$strip>, z.ZodObject<{
3060
+ cleared: z.ZodBoolean;
3061
+ }, z.core.$strip>, "mutation">;
3062
+ /**
3063
+ * A track that is not ONE subject: `mixed` (two subjects, optionally
3064
+ * switching at `switchAtMs`) or `not-a-subject`. `pure` clears the mark
3065
+ * and answers `{ purity: null }` (D681).
3066
+ */
3067
+ readonly setTrackPurity: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
3068
+ deviceId: z.ZodNumber;
3069
+ trackId: z.ZodString;
3070
+ purity: z.ZodEnum<{
3071
+ mixed: "mixed";
3072
+ "not-a-subject": "not-a-subject";
3073
+ pure: "pure";
3074
+ }>;
3075
+ switchAtMs: z.ZodOptional<z.ZodNumber>;
3076
+ }, z.core.$strip>, z.ZodObject<{
3077
+ purity: z.ZodNullable<z.ZodObject<{
3078
+ id: z.ZodString;
3079
+ deviceId: z.ZodNumber;
3080
+ sourceTrackId: z.ZodString;
3081
+ purity: z.ZodEnum<{
3082
+ mixed: "mixed";
3083
+ "not-a-subject": "not-a-subject";
3084
+ }>;
3085
+ switchAtMs: z.ZodNullable<z.ZodNumber>;
3086
+ startedAt: z.ZodNullable<z.ZodNumber>;
3087
+ createdAt: z.ZodNumber;
3088
+ updatedAt: z.ZodNumber;
3089
+ author: z.ZodNullable<z.ZodString>;
3090
+ }, z.core.$strip>>;
3091
+ }, z.core.$strip>, "mutation">;
3092
+ /** A camera's marks, optionally one track's, windowed by track start. */
3093
+ readonly listTrackRelations: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
3094
+ deviceId: z.ZodNumber;
3095
+ trackId: z.ZodOptional<z.ZodString>;
3096
+ since: z.ZodOptional<z.ZodNumber>;
3097
+ until: z.ZodOptional<z.ZodNumber>;
3098
+ limit: z.ZodOptional<z.ZodNumber>;
3099
+ }, z.core.$strip>, z.ZodObject<{
3100
+ relations: z.ZodReadonly<z.ZodArray<z.ZodObject<{
3101
+ id: z.ZodString;
3102
+ deviceId: z.ZodNumber;
3103
+ leftTrackId: z.ZodString;
3104
+ rightTrackId: z.ZodString;
3105
+ leftSide: z.ZodNullable<z.ZodEnum<{
3106
+ before: "before";
3107
+ after: "after";
3108
+ }>>;
3109
+ rightSide: z.ZodNullable<z.ZodEnum<{
3110
+ before: "before";
3111
+ after: "after";
3112
+ }>>;
3113
+ relation: z.ZodEnum<{
3114
+ "same-subject": "same-subject";
3115
+ "different-subjects": "different-subjects";
3116
+ }>;
3117
+ presence: z.ZodNullable<z.ZodLiteral<"continuous">>;
3118
+ leftStartedAt: z.ZodNullable<z.ZodNumber>;
3119
+ rightStartedAt: z.ZodNullable<z.ZodNumber>;
3120
+ createdAt: z.ZodNumber;
3121
+ updatedAt: z.ZodNumber;
3122
+ author: z.ZodNullable<z.ZodString>;
3123
+ }, z.core.$strip>>>;
3124
+ purities: z.ZodReadonly<z.ZodArray<z.ZodObject<{
3125
+ id: z.ZodString;
3126
+ deviceId: z.ZodNumber;
3127
+ sourceTrackId: z.ZodString;
3128
+ purity: z.ZodEnum<{
3129
+ mixed: "mixed";
3130
+ "not-a-subject": "not-a-subject";
3131
+ }>;
3132
+ switchAtMs: z.ZodNullable<z.ZodNumber>;
3133
+ startedAt: z.ZodNullable<z.ZodNumber>;
3134
+ createdAt: z.ZodNumber;
3135
+ updatedAt: z.ZodNumber;
3136
+ author: z.ZodNullable<z.ZodString>;
3137
+ }, z.core.$strip>>>;
3138
+ truncated: z.ZodBoolean;
3139
+ }, z.core.$strip>, "query">;
3005
3140
  /**
3006
3141
  * Birth decisions — one row per resolved confirmation-gate verdict (D409).
3007
3142
  *
@@ -314,16 +314,16 @@ declare const CameraAudioStatusSchema: z.ZodObject<{
314
314
  * and not this status block. */
315
315
  declare const CameraRecordingModeSchema: z.ZodEnum<{
316
316
  events: "events";
317
- off: "off";
318
317
  continuous: "continuous";
318
+ off: "off";
319
319
  "on-device-decision": "on-device-decision";
320
320
  }>;
321
321
  /** Recording block — null when no recording cap is active for this device. */
322
322
  declare const CameraRecordingStatusSchema: z.ZodObject<{
323
323
  mode: z.ZodEnum<{
324
324
  events: "events";
325
- off: "off";
326
325
  continuous: "continuous";
326
+ off: "off";
327
327
  "on-device-decision": "on-device-decision";
328
328
  }>;
329
329
  active: z.ZodBoolean;
@@ -492,8 +492,8 @@ declare const CameraStatusSchema: z.ZodObject<{
492
492
  recording: z.ZodNullable<z.ZodObject<{
493
493
  mode: z.ZodEnum<{
494
494
  events: "events";
495
- off: "off";
496
495
  continuous: "continuous";
496
+ off: "off";
497
497
  "on-device-decision": "on-device-decision";
498
498
  }>;
499
499
  active: z.ZodBoolean;
@@ -694,6 +694,24 @@ declare const NodeInferenceDevicesSchema: z.ZodObject<{
694
694
  * Strictly the control plane: never sees a frame, never calls inference,
695
695
  * never drains queues. The runner does that work locally on each agent.
696
696
  */
697
+ /**
698
+ * The input of `setCameraSensors` (G5, D676): the ONE typed write path of a
699
+ * camera's attached sensors (D672). `config: null` removes the attachment —
700
+ * the camera reads `not-configured` again, never `unreadable`.
701
+ */
702
+ export declare const SetCameraSensorsInputSchema: z.ZodObject<{
703
+ deviceId: z.ZodNumber;
704
+ config: z.ZodNullable<z.ZodObject<{
705
+ mode: z.ZodEnum<{
706
+ "in-addition": "in-addition";
707
+ }>;
708
+ sensors: z.ZodArray<z.ZodObject<{
709
+ addonId: z.ZodString;
710
+ stableId: z.ZodString;
711
+ }, z.core.$strip>>;
712
+ }, z.core.$strip>>;
713
+ }, z.core.$strip>;
714
+ export type SetCameraSensorsInput = z.infer<typeof SetCameraSensorsInputSchema>;
697
715
  export declare const pipelineOrchestratorCapability: {
698
716
  readonly name: "pipeline-orchestrator";
699
717
  readonly scope: "system";
@@ -1572,8 +1590,8 @@ export declare const pipelineOrchestratorCapability: {
1572
1590
  recording: z.ZodNullable<z.ZodObject<{
1573
1591
  mode: z.ZodEnum<{
1574
1592
  events: "events";
1575
- off: "off";
1576
1593
  continuous: "continuous";
1594
+ off: "off";
1577
1595
  "on-device-decision": "on-device-decision";
1578
1596
  }>;
1579
1597
  active: z.ZodBoolean;
@@ -1759,8 +1777,8 @@ export declare const pipelineOrchestratorCapability: {
1759
1777
  recording: z.ZodNullable<z.ZodObject<{
1760
1778
  mode: z.ZodEnum<{
1761
1779
  events: "events";
1762
- off: "off";
1763
1780
  continuous: "continuous";
1781
+ off: "off";
1764
1782
  "on-device-decision": "on-device-decision";
1765
1783
  }>;
1766
1784
  active: z.ZodBoolean;
@@ -1844,6 +1862,28 @@ export declare const pipelineOrchestratorCapability: {
1844
1862
  }, z.core.$strip>>>;
1845
1863
  fetchedAt: z.ZodNumber;
1846
1864
  }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
1865
+ /**
1866
+ * Attach sensors to a camera, or detach them with `config: null` (D672
1867
+ * configuration, G5/D676). Written to the orchestrator's per-device store
1868
+ * under the same key `applyDeviceSettingsPatch` writes, and announced as a
1869
+ * settings change so the camera-sensors bridge refreshes. Refused by name
1870
+ * — nothing written — for a device that cannot be read, does not exist,
1871
+ * is not a camera, or names itself as its own sensor.
1872
+ */
1873
+ readonly setCameraSensors: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
1874
+ deviceId: z.ZodNumber;
1875
+ config: z.ZodNullable<z.ZodObject<{
1876
+ mode: z.ZodEnum<{
1877
+ "in-addition": "in-addition";
1878
+ }>;
1879
+ sensors: z.ZodArray<z.ZodObject<{
1880
+ addonId: z.ZodString;
1881
+ stableId: z.ZodString;
1882
+ }, z.core.$strip>>;
1883
+ }, z.core.$strip>>;
1884
+ }, z.core.$strip>, z.ZodObject<{
1885
+ success: z.ZodLiteral<true>;
1886
+ }, z.core.$strip>, "mutation">;
1847
1887
  /**
1848
1888
  * Disk-wins fleet reconcile after a recordings wipe. Starts the walk in
1849
1889
  * the addon process and returns immediately with the job snapshot — the
@@ -53,8 +53,8 @@ export declare const RecordingStatusSchema: z.ZodObject<{
53
53
  enabled: z.ZodBoolean;
54
54
  activeMode: z.ZodEnum<{
55
55
  events: "events";
56
- off: "off";
57
56
  continuous: "continuous";
57
+ off: "off";
58
58
  "on-device-decision": "on-device-decision";
59
59
  }>;
60
60
  nodeId: z.ZodString;
@@ -380,8 +380,8 @@ export declare const recordingArchiveCapability: {
380
380
  enabled: z.ZodBoolean;
381
381
  activeMode: z.ZodEnum<{
382
382
  events: "events";
383
- off: "off";
384
383
  continuous: "continuous";
384
+ off: "off";
385
385
  "on-device-decision": "on-device-decision";
386
386
  }>;
387
387
  nodeId: z.ZodString;
@@ -506,8 +506,8 @@ export declare const recordingArchiveCapability: {
506
506
  enabled: z.ZodBoolean;
507
507
  mode: z.ZodOptional<z.ZodEnum<{
508
508
  events: "events";
509
- off: "off";
510
509
  continuous: "continuous";
510
+ off: "off";
511
511
  "on-device-decision": "on-device-decision";
512
512
  }>>;
513
513
  profiles: z.ZodOptional<z.ZodArray<z.ZodEnum<{
@@ -619,8 +619,8 @@ export declare const recordingArchiveCapability: {
619
619
  enabled: z.ZodBoolean;
620
620
  mode: z.ZodOptional<z.ZodEnum<{
621
621
  events: "events";
622
- off: "off";
623
622
  continuous: "continuous";
623
+ off: "off";
624
624
  "on-device-decision": "on-device-decision";
625
625
  }>>;
626
626
  profiles: z.ZodOptional<z.ZodArray<z.ZodEnum<{
@@ -664,8 +664,8 @@ export declare const recordingArchiveCapability: {
664
664
  enabled: z.ZodBoolean;
665
665
  mode: z.ZodOptional<z.ZodEnum<{
666
666
  events: "events";
667
- off: "off";
668
667
  continuous: "continuous";
668
+ off: "off";
669
669
  "on-device-decision": "on-device-decision";
670
670
  }>>;
671
671
  profiles: z.ZodOptional<z.ZodArray<z.ZodEnum<{
@@ -714,8 +714,8 @@ export declare const recordingArchiveCapability: {
714
714
  enabled: z.ZodBoolean;
715
715
  activeMode: z.ZodEnum<{
716
716
  events: "events";
717
- off: "off";
718
717
  continuous: "continuous";
718
+ off: "off";
719
719
  "on-device-decision": "on-device-decision";
720
720
  }>;
721
721
  nodeId: z.ZodString;