@camstack/types 1.2.316 → 1.2.318
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +11 -1
- package/dist/addon.mjs +11 -1
- package/dist/capabilities/composer.cap.d.ts +1 -1
- package/dist/capabilities/core-blocks.cap.d.ts +8 -8
- package/dist/capabilities/pipeline-executor.cap.d.ts +73 -0
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +556 -12
- package/dist/client.js +6 -1
- package/dist/client.mjs +6 -1
- package/dist/composition/composition-report.d.ts +3 -3
- package/dist/generated/addon-api.d.ts +42 -7
- 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 +2 -2
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1417 -63
- package/dist/index.mjs +1370 -64
- package/dist/pipeline/best-settings/demand.d.ts +75 -0
- package/dist/pipeline/best-settings/detector-performance.d.ts +34 -0
- package/dist/pipeline/best-settings/hardware-class.d.ts +40 -0
- package/dist/pipeline/best-settings/index.d.ts +10 -0
- package/dist/pipeline/best-settings/plan-schemas.d.ts +885 -0
- package/dist/pipeline/best-settings/recommend.d.ts +54 -0
- package/dist/pipeline/load-balancing/index.d.ts +6 -0
- package/dist/pipeline/load-balancing/schemas.d.ts +146 -0
- package/dist/pipeline/load-balancing/share-election.d.ts +54 -0
- package/dist/pipeline/model-bound-settings.d.ts +7 -0
- package/dist/types/agent-pipeline-settings.d.ts +0 -1
- package/dist/types/models.d.ts +45 -0
- package/package.json +1 -1
|
@@ -314,9 +314,9 @@ export declare const CompositionRunStatusSchema: z.ZodEnum<{
|
|
|
314
314
|
}>;
|
|
315
315
|
export type CompositionRunStatus = z.infer<typeof CompositionRunStatusSchema>;
|
|
316
316
|
export declare const CompositionFieldStateKindSchema: z.ZodEnum<{
|
|
317
|
+
stale: "stale";
|
|
317
318
|
unavailable: "unavailable";
|
|
318
319
|
fresh: "fresh";
|
|
319
|
-
stale: "stale";
|
|
320
320
|
}>;
|
|
321
321
|
export type CompositionFieldStateKind = z.infer<typeof CompositionFieldStateKindSchema>;
|
|
322
322
|
export declare const CompositionFieldStateSchema: z.ZodObject<{
|
|
@@ -328,9 +328,9 @@ export declare const CompositionFieldStateSchema: z.ZodObject<{
|
|
|
328
328
|
label: z.ZodString;
|
|
329
329
|
}, z.core.$strip>>;
|
|
330
330
|
state: z.ZodEnum<{
|
|
331
|
+
stale: "stale";
|
|
331
332
|
unavailable: "unavailable";
|
|
332
333
|
fresh: "fresh";
|
|
333
|
-
stale: "stale";
|
|
334
334
|
}>;
|
|
335
335
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
336
336
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -356,9 +356,9 @@ export declare const CompositionBlockStateSchema: z.ZodObject<{
|
|
|
356
356
|
label: z.ZodString;
|
|
357
357
|
}, z.core.$strip>>;
|
|
358
358
|
state: z.ZodEnum<{
|
|
359
|
+
stale: "stale";
|
|
359
360
|
unavailable: "unavailable";
|
|
360
361
|
fresh: "fresh";
|
|
361
|
-
stale: "stale";
|
|
362
362
|
}>;
|
|
363
363
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
364
364
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -6119,6 +6119,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
6119
6119
|
output: z.infer<typeof pipelineExecutorCapability.methods.clearDeviceOverrides.output>;
|
|
6120
6120
|
meta: object;
|
|
6121
6121
|
}>;
|
|
6122
|
+
clearModelBoundDeviceOverrides: TRPCMutationProcedure<{
|
|
6123
|
+
input: {
|
|
6124
|
+
[x: string]: unknown;
|
|
6125
|
+
} & z.input<typeof pipelineExecutorCapability.methods.clearModelBoundDeviceOverrides.input>;
|
|
6126
|
+
output: z.infer<typeof pipelineExecutorCapability.methods.clearModelBoundDeviceOverrides.output>;
|
|
6127
|
+
meta: object;
|
|
6128
|
+
}>;
|
|
6122
6129
|
getInferenceDeviceHealth: TRPCQueryProcedure<{
|
|
6123
6130
|
input: {
|
|
6124
6131
|
[x: string]: unknown;
|
|
@@ -6546,13 +6553,6 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
6546
6553
|
output: z.infer<typeof pipelineOrchestratorCapability.methods.setAgentMaxCameras.output>;
|
|
6547
6554
|
meta: object;
|
|
6548
6555
|
}>;
|
|
6549
|
-
setAgentDetectWeight: TRPCMutationProcedure<{
|
|
6550
|
-
input: {
|
|
6551
|
-
[x: string]: unknown;
|
|
6552
|
-
} & z.input<typeof pipelineOrchestratorCapability.methods.setAgentDetectWeight.input>;
|
|
6553
|
-
output: z.infer<typeof pipelineOrchestratorCapability.methods.setAgentDetectWeight.output>;
|
|
6554
|
-
meta: object;
|
|
6555
|
-
}>;
|
|
6556
6556
|
setAgentCapabilities: TRPCMutationProcedure<{
|
|
6557
6557
|
input: {
|
|
6558
6558
|
[x: string]: unknown;
|
|
@@ -6595,6 +6595,41 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
6595
6595
|
output: z.infer<typeof pipelineOrchestratorCapability.methods.resetNodePipelineDefaults.output>;
|
|
6596
6596
|
meta: object;
|
|
6597
6597
|
}>;
|
|
6598
|
+
planBestSettings: TRPCQueryProcedure<{
|
|
6599
|
+
input: {
|
|
6600
|
+
[x: string]: unknown;
|
|
6601
|
+
} & z.input<typeof pipelineOrchestratorCapability.methods.planBestSettings.input>;
|
|
6602
|
+
output: z.infer<typeof pipelineOrchestratorCapability.methods.planBestSettings.output>;
|
|
6603
|
+
meta: object;
|
|
6604
|
+
}>;
|
|
6605
|
+
applyBestSettings: TRPCMutationProcedure<{
|
|
6606
|
+
input: {
|
|
6607
|
+
[x: string]: unknown;
|
|
6608
|
+
} & z.input<typeof pipelineOrchestratorCapability.methods.applyBestSettings.input>;
|
|
6609
|
+
output: z.infer<typeof pipelineOrchestratorCapability.methods.applyBestSettings.output>;
|
|
6610
|
+
meta: object;
|
|
6611
|
+
}>;
|
|
6612
|
+
setLoadBalancingShares: TRPCMutationProcedure<{
|
|
6613
|
+
input: {
|
|
6614
|
+
[x: string]: unknown;
|
|
6615
|
+
} & z.input<typeof pipelineOrchestratorCapability.methods.setLoadBalancingShares.input>;
|
|
6616
|
+
output: z.infer<typeof pipelineOrchestratorCapability.methods.setLoadBalancingShares.output>;
|
|
6617
|
+
meta: object;
|
|
6618
|
+
}>;
|
|
6619
|
+
getPlacementStats: TRPCQueryProcedure<{
|
|
6620
|
+
input: {
|
|
6621
|
+
[x: string]: unknown;
|
|
6622
|
+
} & z.input<typeof pipelineOrchestratorCapability.methods.getPlacementStats.input>;
|
|
6623
|
+
output: z.infer<typeof pipelineOrchestratorCapability.methods.getPlacementStats.output>;
|
|
6624
|
+
meta: object;
|
|
6625
|
+
}>;
|
|
6626
|
+
suggestShares: TRPCQueryProcedure<{
|
|
6627
|
+
input: {
|
|
6628
|
+
[x: string]: unknown;
|
|
6629
|
+
} & z.input<typeof pipelineOrchestratorCapability.methods.suggestShares.input>;
|
|
6630
|
+
output: z.infer<typeof pipelineOrchestratorCapability.methods.suggestShares.output>;
|
|
6631
|
+
meta: object;
|
|
6632
|
+
}>;
|
|
6598
6633
|
getCameraSettings: TRPCQueryProcedure<{
|
|
6599
6634
|
input: {
|
|
6600
6635
|
[x: string]: unknown;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* Plain data, zero Zod: a forked runner must not import the schema barrel
|
|
12
12
|
* (~144MB RSS per runner — D28).
|
|
13
13
|
*
|
|
14
|
-
* Coverage:
|
|
14
|
+
* Coverage: 25 caps, 63 methods with defaults.
|
|
15
15
|
*/
|
|
16
16
|
export declare const CAP_INPUT_DEFAULTS: Readonly<Record<string, Readonly<Record<string, Readonly<Record<string, unknown>>>>>>;
|
|
17
17
|
/**
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* scope+access check inside `protectedProcedure` (see
|
|
7
7
|
* `server/backend/src/api/trpc/trpc.middleware.ts`).
|
|
8
8
|
*
|
|
9
|
-
* Coverage:
|
|
9
|
+
* Coverage: 1232 method paths across 165 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
12
12
|
export interface MethodAccessRecord {
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* system-scope cap that takes a deviceId was previously never device-filtered
|
|
7
7
|
* — see the generator header).
|
|
8
8
|
*
|
|
9
|
-
* Coverage:
|
|
10
|
-
*
|
|
9
|
+
* Coverage: 511 methods carry a device reference, of which
|
|
10
|
+
* 161 are on SYSTEM-scope caps.
|
|
11
11
|
*
|
|
12
12
|
* Top-level fields, number arrays, and one-level arrays of objects carrying
|
|
13
13
|
* a numeric device field (targets[].deviceId) are all mapped; the matcher
|
|
@@ -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' | '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' | '
|
|
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' | 'planBestSettings' | 'applyBestSettings' | 'setLoadBalancingShares' | 'getPlacementStats' | 'suggestShares' | 'getCameraStatuses' | 'setCameraSensors' | 'reconcileFromDisk' | 'getReconcileFromDiskStatus' | 'listTemplates' | 'saveTemplate' | 'updateTemplate' | 'deleteTemplate'>;
|
|
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
|
@@ -267,7 +267,9 @@ export { hubMotionNativeProvider, readHubMotionDetected, readHubMotionStatus, }
|
|
|
267
267
|
export { type ProviderMotionData, ProviderMotionDataSchema, providerMotionEvent, } from './pipeline/provider-motion.js';
|
|
268
268
|
export { type FormatRunnableModel, stepModelRunsOnFormat, } from './pipeline/step-format-runnable.js';
|
|
269
269
|
export { isRemovedModelId, REMOVED_MODEL_IDS } from './pipeline/removed-model-ids.js';
|
|
270
|
-
export { applyModelBoundSettings, clearModelBoundOverrides, clearModelBoundSetting, hasModelBoundOverrides, type InapplicableModelBoundOverride, modelBindingKey, type ModelBoundSettingsBag, type ModelBoundSettingSource, type ModelBoundSettingState, resolveModelBoundSetting, writeModelBoundSetting, } from './pipeline/model-bound-settings.js';
|
|
270
|
+
export { applyModelBoundSettings, clearModelBoundOverrides, clearModelBoundSetting, collectModelBoundKeys, hasModelBoundOverrides, type InapplicableModelBoundOverride, modelBindingKey, type ModelBoundSettingsBag, type ModelBoundSettingSource, type ModelBoundSettingState, resolveModelBoundSetting, writeModelBoundSetting, } from './pipeline/model-bound-settings.js';
|
|
271
|
+
export * from './pipeline/best-settings/index.js';
|
|
272
|
+
export * from './pipeline/load-balancing/index.js';
|
|
271
273
|
export { deriveRootFaceRefineRect, ROOT_FACE_REFINE_INPUT_PX, ROOT_FACE_REFINE_SCALE, } from './pipeline/root-face-crop.js';
|
|
272
274
|
export { DEFAULT_DETAIL_CROP_CONVENTION, DETAIL_CROP_PADDING_FIELD, DETAIL_CROP_PADDING_KEY, DETAIL_CROP_SECTION_ID, DETAIL_CROP_SQUARE_KEY, type DetailCropConvention, DetailCropConventionSchema, type DetailCropRect, deriveDetailCropRect, FULL_IMAGE_BBOX, type HydratedSettingsSection, type HydratedSettingsView, pickDetailCropConvention, readDetailCropConvention, } from './pipeline/detail-crop.js';
|
|
273
275
|
export { DEFAULT_NATIVE_LEASE_SETTINGS, NATIVE_LEASE_ACTIVITY_FIELD, NATIVE_LEASE_ACTIVITY_KEY, NATIVE_LEASE_ADMISSION_FIELD, NATIVE_LEASE_ADMISSION_KEY, NATIVE_LEASE_BUDGET_FIELD, NATIVE_LEASE_BUDGET_KEY, NATIVE_LEASE_HOLD_FIELD, NATIVE_LEASE_HOLD_KEY, NATIVE_LEASE_SCENE_BUDGET_FIELD, NATIVE_LEASE_SCENE_BUDGET_KEY, NATIVE_LEASE_SECTION_ID, NATIVE_LEASE_TILE_BUDGET_FIELD, NATIVE_LEASE_TILE_BUDGET_KEY, type NativeLeaseAdmission, NativeLeaseAdmissionSchema, type NativeLeaseKnob, type NativeLeaseNumberKnob, type NativeLeaseSettings, type NativeLeaseSettingsOverride, NativeLeaseSettingsSchema, pickNativeLeaseOverride, readNativeLeaseOverride, } from './pipeline/native-lease.js';
|