@camstack/types 1.2.321 → 1.2.322

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.
@@ -87,8 +87,8 @@ export interface SystemProxy {
87
87
  readonly notificationOutput: Pick<InferProvider<typeof notificationOutputCapability>, 'listTargetKinds' | 'listTargets' | 'getTarget' | 'discoverTargets' | 'probeTargetConfig' | 'send' | 'testTarget' | 'upsertTarget' | 'deleteTarget' | 'setTargetEnabled'>;
88
88
  readonly notificationRules: Pick<InferProvider<typeof notificationRulesCapability>, 'listRules' | 'getRule' | 'createRule' | 'updateRule' | 'deleteRule' | 'setRuleEnabled' | 'listSequences' | 'getSequence' | 'createSequence' | 'updateSequence' | 'deleteSequence' | 'getClipRetentionAsks' | 'listDeviceMutes' | 'testRule' | 'previewStateSummary' | 'getConditionCatalog' | 'getTemplateCatalog' | 'previewTemplate' | 'getHistory' | 'getRuleLastRuns' | 'resolveArtifactUrl' | 'listSnoozes' | 'createSnooze' | 'cancelSnooze' | 'getAlarmConfig' | 'setAlarmConfig' | 'createAlarmProfile' | 'renameAlarmProfile' | 'deleteAlarmProfile' | 'activateAlarmProfile' | 'getAlarmSensors'>;
89
89
  readonly osdManager: Pick<InferProvider<typeof osdManagerCapability>, 'getConditionSupport' | 'copyDeviceConfiguration' | 'listTemplates' | 'upsertTemplate' | 'deleteTemplate'>;
90
- readonly pipelineExecutor: Pick<InferProvider<typeof pipelineExecutorCapability>, 'getAvailableEngines' | 'getSelectedEngine' | 'getDefaultSteps' | 'getEngineProvisioning' | 'getVideoPipelineSteps' | 'setVideoPipelineSteps' | 'clearDeviceOverrides' | 'clearModelBoundDeviceOverrides' | 'getInferenceDeviceHealth' | 'rearmInferenceDevice' | 'getSchema' | 'getGlobalSteps' | 'getGlobalPipelineConfig' | 'getOrchestratorConfigSchema' | 'validatePipeline' | 'listTemplates' | 'saveTemplate' | 'updateTemplate' | 'deleteTemplate' | 'getCapabilities' | 'getAddonModels' | 'downloadModel' | 'deleteModel' | 'cacheFrameInPool' | 'inferCached' | 'uncacheFrame' | 'getEffectiveTuning' | 'listLoadedEngines' | 'spinEngine' | 'killEngine' | 'listReferenceImages' | 'getReferenceImage' | 'getReferenceAudioFiles' | 'getReferenceAudio' | 'getAudioCapabilities' | 'runAudioTest' | 'getDetectionConfigSchema'>;
91
- readonly pipelineOrchestrator: Pick<InferProvider<typeof pipelineOrchestratorCapability>, 'requestOccupancyLook' | 'pauseForStorageMigration' | 'resumeForStorageMigration' | 'rebalance' | 'getPipelineAssignments' | 'getAgentLoad' | 'getClusterModelChoice' | 'getGlobalMetrics' | 'getCapabilityBindings' | 'setCapabilityBinding' | 'getIngestOwner' | 'getAudioNodeLoad' | 'getAudioAssignments' | 'getAgentSettings' | 'listAgentSettings' | 'removeAgentSettings' | 'setAgentMaxCameras' | 'setAgentCapabilities' | 'setAgentDecodeLimits' | 'setAgentReachableHost' | 'setAgentInferenceDevices' | 'getNodeInferenceDevices' | 'resetNodePipelineDefaults' | 'planAutoTune' | 'applyAutoTune' | 'setLoadBalancingShares' | 'getPlacementStats' | 'suggestShares' | 'getEffectiveShares' | 'setShareSource' | 'getCameraStatuses' | 'setCameraSensors' | 'reconcileFromDisk' | 'getReconcileFromDiskStatus' | 'listTemplates' | 'saveTemplate' | 'updateTemplate' | 'deleteTemplate'>;
90
+ readonly pipelineExecutor: Pick<InferProvider<typeof pipelineExecutorCapability>, 'getAvailableEngines' | 'getSelectedEngine' | 'getDefaultSteps' | 'getEngineProvisioning' | 'getVideoPipelineSteps' | 'setVideoPipelineSteps' | 'clearDeviceOverrides' | 'clearModelBoundDeviceOverrides' | 'getInferenceDeviceHealth' | 'rearmInferenceDevice' | 'getSchema' | 'getGlobalSteps' | 'getGlobalPipelineConfig' | 'getOrchestratorConfigSchema' | 'validatePipeline' | 'getCapabilities' | 'getAddonModels' | 'downloadModel' | 'deleteModel' | 'cacheFrameInPool' | 'inferCached' | 'uncacheFrame' | 'getEffectiveTuning' | 'listLoadedEngines' | 'spinEngine' | 'killEngine' | 'listReferenceImages' | 'getReferenceImage' | 'getReferenceAudioFiles' | 'getReferenceAudio' | 'getAudioCapabilities' | 'runAudioTest' | 'getDetectionConfigSchema'>;
91
+ readonly pipelineOrchestrator: Pick<InferProvider<typeof pipelineOrchestratorCapability>, 'requestOccupancyLook' | 'pauseForStorageMigration' | 'resumeForStorageMigration' | 'rebalance' | 'getPipelineAssignments' | 'getAgentLoad' | 'getClusterModelChoice' | 'getGlobalMetrics' | 'getCapabilityBindings' | 'setCapabilityBinding' | 'getIngestOwner' | 'getAudioNodeLoad' | 'getAudioAssignments' | 'getAgentSettings' | 'listAgentSettings' | 'removeAgentSettings' | 'setAgentMaxCameras' | 'setAgentCapabilities' | 'setAgentDecodeLimits' | 'setAgentReachableHost' | 'setAgentInferenceDevices' | 'getNodeInferenceDevices' | 'resetNodePipelineDefaults' | 'planAutoTune' | 'applyAutoTune' | 'setLoadBalancingShares' | 'getPlacementStats' | 'suggestShares' | 'getEffectiveShares' | 'setShareSource' | 'getCameraStatuses' | 'setCameraSensors' | 'reconcileFromDisk' | 'getReconcileFromDiskStatus'>;
92
92
  readonly pipelineRunner: Pick<InferProvider<typeof pipelineRunnerCapability>, 'attachCamera' | 'reportMotion' | 'getLocalLoad' | 'getLocalMetrics' | 'getAllCameraMetrics' | 'getLocalCameras' | 'getNativeCrop' | 'runStatelessStep'>;
93
93
  readonly plateGallery: Pick<InferProvider<typeof plateGalleryCapability>, 'getPlateMedia' | 'searchPlates' | 'suggestPlateClusters' | 'correctPlateText' | 'deletePlate' | 'listVehicles' | 'createVehicle' | 'renameVehicle' | 'deleteVehicle' | 'listVehicleSamples' | 'removeVehicleSample' | 'assignPlate' | 'unassignPlate' | 'assignPlates' | 'unassignPlates'>;
94
94
  readonly recordingArchive: Pick<InferProvider<typeof recordingArchiveCapability>, 'getAvailabilityBatch' | 'getDaysWithRecordingsBatch' | 'getStorageUsage' | 'listOpsLog' | 'pauseForStorageMigration' | 'resumeForStorageMigration' | 'refreshStorageLocationsForMigration' | 'startStorageMigrationMove' | 'getStorageMigrationMoveStatus' | 'cancelStorageMigrationMove' | 'relocateFootage' | 'listRelocateJobs' | 'getRelocateResidue' | 'reconcileLedgerAgainstDisk' | 'cancelRelocateJob' | 'planStorageRebalance' | 'startStorageRebalance' | 'getPlacement' | 'setDevicePlacement'>;
package/dist/index.d.ts CHANGED
@@ -125,7 +125,7 @@ export * from './stream-selection.js';
125
125
  export type { AgentAddonConfig, AgentPipelineSettings, CameraPipelineSettings, CameraStepOverridePatch, DeviceStepConfig, } from './types/agent-pipeline-settings.js';
126
126
  export * from './types/analytics.js';
127
127
  export * from './types/appearance.js';
128
- export type { CameraPipelineConfig, PipelineTemplate as CameraPipelineTemplate, } from './types/camera-pipeline.js';
128
+ export type { CameraPipelineConfig } from './types/camera-pipeline.js';
129
129
  export * from './types/config.js';
130
130
  export * from './types/detection.js';
131
131
  export * from './types/overlay-layer.js';
@@ -140,7 +140,7 @@ export * from './types/model-variant-groups.js';
140
140
  export * from './types/models.js';
141
141
  export * from './types/clip-model.js';
142
142
  export * from './types/pipeline.js';
143
- export type { AvailableEngine, PipelineAddonSchema, PipelineDefaultStep, PipelineModelOption, PipelineSchema, PipelineSlotSchema, PipelineTemplate, PipelineTemplateStep, TemplateValidationResult, } from './types/pipeline-schema.js';
143
+ export type { AvailableEngine, PipelineAddonSchema, PipelineDefaultStep, PipelineModelOption, PipelineSchema, PipelineSlotSchema, } from './types/pipeline-schema.js';
144
144
  export * from './types/pipeline-step.js';
145
145
  export * from './types/tracked.js';
146
146
  export { type BearerPayloadShape, type BearerPrincipal, classifyBearerPrincipal, methodAccessForHttpMethod, type PrincipalAddonReachInput, type PrincipalAddonReachVerdict, principalMayReachAddon, scopesAllowAddon, scopesAllowDeviceCap, } from './auth/principal-scope.js';
package/dist/index.js CHANGED
@@ -26637,21 +26637,6 @@ var PipelineDefaultStepSchema = zod.z.lazy(() => zod.z.object({
26637
26637
  group: zod.z.string().optional(),
26638
26638
  settings: zod.z.record(zod.z.string(), zod.z.unknown()).optional()
26639
26639
  }));
26640
- var PipelineTemplateStepSchema = zod.z.lazy(() => zod.z.object({
26641
- addonId: zod.z.string(),
26642
- enabled: zod.z.boolean(),
26643
- modelId: zod.z.string(),
26644
- children: zod.z.array(PipelineTemplateStepSchema).readonly(),
26645
- settings: zod.z.record(zod.z.string(), zod.z.unknown()).optional()
26646
- }));
26647
- var PipelineTemplateSchema$1 = zod.z.object({
26648
- id: zod.z.string(),
26649
- name: zod.z.string(),
26650
- createdAt: zod.z.string(),
26651
- updatedAt: zod.z.string(),
26652
- engine: PipelineEngineChoiceSchema,
26653
- steps: zod.z.array(PipelineTemplateStepSchema).readonly()
26654
- });
26655
26640
  var PipelineModelOptionSchema = zod.z.object({
26656
26641
  id: zod.z.string(),
26657
26642
  name: zod.z.string(),
@@ -26973,18 +26958,6 @@ var pipelineExecutorCapability = {
26973
26958
  steps: zod.z.array(PipelineStepInputSchema),
26974
26959
  deviceKey: zod.z.string().optional()
26975
26960
  }), PipelineValidationResultSchema),
26976
- listTemplates: require_sleep.method(zod.z.void(), zod.z.array(PipelineTemplateSchema$1).readonly()),
26977
- saveTemplate: require_sleep.method(zod.z.object({
26978
- name: zod.z.string(),
26979
- steps: zod.z.array(PipelineTemplateStepSchema).readonly(),
26980
- engine: PipelineEngineChoiceSchema
26981
- }), PipelineTemplateSchema$1, { kind: "mutation" }),
26982
- updateTemplate: require_sleep.method(zod.z.object({
26983
- id: zod.z.string(),
26984
- name: zod.z.string().optional(),
26985
- steps: zod.z.array(PipelineTemplateStepSchema).readonly().optional()
26986
- }), PipelineTemplateSchema$1, { kind: "mutation" }),
26987
- deleteTemplate: require_sleep.method(zod.z.object({ id: zod.z.string() }), zod.z.void(), { kind: "mutation" }),
26988
26961
  getCapabilities: require_sleep.method(zod.z.void(), InferenceCapabilitiesBridge),
26989
26962
  getAddonModels: require_sleep.method(zod.z.object({ addonId: zod.z.string() }), ModelAvailabilityListBridge),
26990
26963
  downloadModel: require_sleep.method(zod.z.object({
@@ -29178,14 +29151,6 @@ var CameraPipelineConfigSchema = zod.z.object({
29178
29151
  settings: zod.z.record(zod.z.string(), zod.z.unknown()).readonly().optional()
29179
29152
  }).nullable().optional()
29180
29153
  });
29181
- var PipelineTemplateSchema = zod.z.object({
29182
- id: zod.z.string(),
29183
- name: zod.z.string(),
29184
- description: zod.z.string().optional(),
29185
- config: CameraPipelineConfigSchema,
29186
- createdAt: zod.z.string(),
29187
- updatedAt: zod.z.string()
29188
- });
29189
29154
  var DeviceStepConfigSchema = zod.z.object({
29190
29155
  modelId: zod.z.string().optional(),
29191
29156
  settings: zod.z.record(zod.z.string(), zod.z.unknown()).optional(),
@@ -29394,20 +29359,15 @@ var CameraBrokerStatusSchema = zod.z.object({
29394
29359
  webrtcSessions: zod.z.number(),
29395
29360
  rtspRestream: zod.z.boolean()
29396
29361
  });
29397
- /** Shared-memory ring statistics within the decoder block. */
29398
- var CameraDecoderShmSchema = zod.z.object({
29399
- framesWritten: zod.z.number(),
29400
- getFrameHits: zod.z.number(),
29401
- getFrameMisses: zod.z.number(),
29402
- budgetMb: zod.z.number()
29403
- });
29404
- /** Decoder block — null when the decoder stage is unreachable or inactive. */
29405
- var CameraDecoderStatusSchema = zod.z.object({
29406
- nodeId: zod.z.string(),
29407
- formats: zod.z.array(zod.z.string()).readonly(),
29408
- sessionCount: zod.z.number(),
29409
- shm: CameraDecoderShmSchema
29410
- });
29362
+ /**
29363
+ * Decoder block — WHERE decode runs (co-located with the detection node by
29364
+ * construction); null when the camera has no detection node. It carries no
29365
+ * frame counter: the shared-memory plane whose counters it used to serve is
29366
+ * gone, and those fields read 0 forever. Whether frames actually flow is read
29367
+ * from `detection.actualFps` (frames delivered to and processed by the
29368
+ * detector), never from a counter nothing feeds.
29369
+ */
29370
+ var CameraDecoderStatusSchema = zod.z.object({ nodeId: zod.z.string() });
29411
29371
  /** Motion block — null when motion detection is not active for this device. */
29412
29372
  var CameraMotionStatusSchema = zod.z.object({
29413
29373
  enabled: zod.z.boolean(),
@@ -30303,33 +30263,7 @@ var pipelineOrchestratorCapability = {
30303
30263
  auth: "admin"
30304
30264
  }),
30305
30265
  /** Snapshot of the in-flight or last disk-wins fleet reconcile. */
30306
- getReconcileFromDiskStatus: require_sleep.method(zod.z.void(), DiskReconcileJobSchema, { auth: "admin" }),
30307
- /** List every template the operator has saved. */
30308
- listTemplates: require_sleep.method(zod.z.void(), zod.z.array(PipelineTemplateSchema).readonly()),
30309
- /** Create a new named preset from a given CameraPipelineConfig. */
30310
- saveTemplate: require_sleep.method(zod.z.object({
30311
- name: zod.z.string(),
30312
- description: zod.z.string().optional(),
30313
- config: CameraPipelineConfigSchema
30314
- }), PipelineTemplateSchema, {
30315
- kind: "mutation",
30316
- auth: "admin"
30317
- }),
30318
- /** Partial update of a template. Any omitted field is preserved. */
30319
- updateTemplate: require_sleep.method(zod.z.object({
30320
- id: zod.z.string(),
30321
- name: zod.z.string().optional(),
30322
- description: zod.z.string().optional(),
30323
- config: CameraPipelineConfigSchema.optional()
30324
- }), PipelineTemplateSchema, {
30325
- kind: "mutation",
30326
- auth: "admin"
30327
- }),
30328
- /** Remove a template. Camera configs that were seeded from it keep a copy. */
30329
- deleteTemplate: require_sleep.method(zod.z.object({ id: zod.z.string() }), zod.z.object({ success: zod.z.literal(true) }), {
30330
- kind: "mutation",
30331
- auth: "admin"
30332
- })
30266
+ getReconcileFromDiskStatus: require_sleep.method(zod.z.void(), DiskReconcileJobSchema, { auth: "admin" })
30333
30267
  }
30334
30268
  };
30335
30269
  //#endregion
@@ -56253,12 +56187,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
56253
56187
  addonId: null,
56254
56188
  access: "delete"
56255
56189
  },
56256
- "pipelineExecutor.deleteTemplate": {
56257
- capName: "pipeline-executor",
56258
- capScope: "system",
56259
- addonId: null,
56260
- access: "delete"
56261
- },
56262
56190
  "pipelineExecutor.downloadModel": {
56263
56191
  capName: "pipeline-executor",
56264
56192
  capScope: "system",
@@ -56397,12 +56325,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
56397
56325
  addonId: null,
56398
56326
  access: "view"
56399
56327
  },
56400
- "pipelineExecutor.listTemplates": {
56401
- capName: "pipeline-executor",
56402
- capScope: "system",
56403
- addonId: null,
56404
- access: "view"
56405
- },
56406
56328
  "pipelineExecutor.rearmInferenceDevice": {
56407
56329
  capName: "pipeline-executor",
56408
56330
  capScope: "system",
@@ -56427,12 +56349,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
56427
56349
  addonId: null,
56428
56350
  access: "create"
56429
56351
  },
56430
- "pipelineExecutor.saveTemplate": {
56431
- capName: "pipeline-executor",
56432
- capScope: "system",
56433
- addonId: null,
56434
- access: "create"
56435
- },
56436
56352
  "pipelineExecutor.setVideoPipelineSteps": {
56437
56353
  capName: "pipeline-executor",
56438
56354
  capScope: "system",
@@ -56451,12 +56367,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
56451
56367
  addonId: null,
56452
56368
  access: "create"
56453
56369
  },
56454
- "pipelineExecutor.updateTemplate": {
56455
- capName: "pipeline-executor",
56456
- capScope: "system",
56457
- addonId: null,
56458
- access: "create"
56459
- },
56460
56370
  "pipelineExecutor.validatePipeline": {
56461
56371
  capName: "pipeline-executor",
56462
56372
  capScope: "system",
@@ -56487,12 +56397,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
56487
56397
  addonId: null,
56488
56398
  access: "create"
56489
56399
  },
56490
- "pipelineOrchestrator.deleteTemplate": {
56491
- capName: "pipeline-orchestrator",
56492
- capScope: "system",
56493
- addonId: null,
56494
- access: "delete"
56495
- },
56496
56400
  "pipelineOrchestrator.getAgentLoad": {
56497
56401
  capName: "pipeline-orchestrator",
56498
56402
  capScope: "system",
@@ -56643,12 +56547,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
56643
56547
  addonId: null,
56644
56548
  access: "view"
56645
56549
  },
56646
- "pipelineOrchestrator.listTemplates": {
56647
- capName: "pipeline-orchestrator",
56648
- capScope: "system",
56649
- addonId: null,
56650
- access: "view"
56651
- },
56652
56550
  "pipelineOrchestrator.pauseForStorageMigration": {
56653
56551
  capName: "pipeline-orchestrator",
56654
56552
  capScope: "system",
@@ -56703,12 +56601,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
56703
56601
  addonId: null,
56704
56602
  access: "create"
56705
56603
  },
56706
- "pipelineOrchestrator.saveTemplate": {
56707
- capName: "pipeline-orchestrator",
56708
- capScope: "system",
56709
- addonId: null,
56710
- access: "create"
56711
- },
56712
56604
  "pipelineOrchestrator.setAgentCapabilities": {
56713
56605
  capName: "pipeline-orchestrator",
56714
56606
  capScope: "system",
@@ -56817,12 +56709,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
56817
56709
  addonId: null,
56818
56710
  access: "create"
56819
56711
  },
56820
- "pipelineOrchestrator.updateTemplate": {
56821
- capName: "pipeline-orchestrator",
56822
- capScope: "system",
56823
- addonId: null,
56824
- access: "create"
56825
- },
56826
56712
  "pipelineRunner.attachCamera": {
56827
56713
  capName: "pipeline-runner",
56828
56714
  capScope: "system",
@@ -67524,10 +67410,6 @@ function createSystemProxy(api) {
67524
67410
  getGlobalPipelineConfig: (input) => dispatch("pipelineExecutor", "getGlobalPipelineConfig", "query", input),
67525
67411
  getOrchestratorConfigSchema: (input) => dispatch("pipelineExecutor", "getOrchestratorConfigSchema", "query", input),
67526
67412
  validatePipeline: (input) => dispatch("pipelineExecutor", "validatePipeline", "query", input),
67527
- listTemplates: (input) => dispatch("pipelineExecutor", "listTemplates", "query", input),
67528
- saveTemplate: (input) => dispatch("pipelineExecutor", "saveTemplate", "mutation", input),
67529
- updateTemplate: (input) => dispatch("pipelineExecutor", "updateTemplate", "mutation", input),
67530
- deleteTemplate: (input) => dispatch("pipelineExecutor", "deleteTemplate", "mutation", input),
67531
67413
  getCapabilities: (input) => dispatch("pipelineExecutor", "getCapabilities", "query", input),
67532
67414
  getAddonModels: (input) => dispatch("pipelineExecutor", "getAddonModels", "query", input),
67533
67415
  downloadModel: (input) => dispatch("pipelineExecutor", "downloadModel", "mutation", input),
@@ -67581,11 +67463,7 @@ function createSystemProxy(api) {
67581
67463
  getCameraStatuses: (input) => dispatch("pipelineOrchestrator", "getCameraStatuses", "query", input),
67582
67464
  setCameraSensors: (input) => dispatch("pipelineOrchestrator", "setCameraSensors", "mutation", input),
67583
67465
  reconcileFromDisk: (input) => dispatch("pipelineOrchestrator", "reconcileFromDisk", "mutation", input),
67584
- getReconcileFromDiskStatus: (input) => dispatch("pipelineOrchestrator", "getReconcileFromDiskStatus", "query", input),
67585
- listTemplates: (input) => dispatch("pipelineOrchestrator", "listTemplates", "query", input),
67586
- saveTemplate: (input) => dispatch("pipelineOrchestrator", "saveTemplate", "mutation", input),
67587
- updateTemplate: (input) => dispatch("pipelineOrchestrator", "updateTemplate", "mutation", input),
67588
- deleteTemplate: (input) => dispatch("pipelineOrchestrator", "deleteTemplate", "mutation", input)
67466
+ getReconcileFromDiskStatus: (input) => dispatch("pipelineOrchestrator", "getReconcileFromDiskStatus", "query", input)
67589
67467
  },
67590
67468
  pipelineRunner: {
67591
67469
  attachCamera: (input) => dispatch("pipelineRunner", "attachCamera", "mutation", input),
@@ -75976,7 +75854,6 @@ exports.CameraBrokerProfileSchema = CameraBrokerProfileSchema;
75976
75854
  exports.CameraBrokerStatusSchema = CameraBrokerStatusSchema;
75977
75855
  exports.CameraCredentialsSchema = CameraCredentialsSchema;
75978
75856
  exports.CameraCredentialsStatusSchema = CameraCredentialsStatusSchema;
75979
- exports.CameraDecoderShmSchema = CameraDecoderShmSchema;
75980
75857
  exports.CameraDecoderStatusSchema = CameraDecoderStatusSchema;
75981
75858
  exports.CameraDetectionPhaseSchema = CameraDetectionPhaseSchema;
75982
75859
  exports.CameraDetectionProvisioningSchema = CameraDetectionProvisioningSchema;