@camstack/types 1.1.33 → 1.1.35

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.
@@ -792,6 +792,8 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
792
792
  path: string;
793
793
  remoteName: string;
794
794
  bundle: string;
795
+ section?: string | undefined;
796
+ sectionLabel?: string | undefined;
795
797
  };
796
798
  bundleUrl: string;
797
799
  }[];
@@ -816,6 +818,8 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
816
818
  path: string;
817
819
  remoteName: string;
818
820
  bundle: string;
821
+ section?: string | undefined;
822
+ sectionLabel?: string | undefined;
819
823
  }[];
820
824
  meta: object;
821
825
  }>;
@@ -3231,6 +3235,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
3231
3235
  tier: string;
3232
3236
  precision?: "fp32" | "int8" | undefined;
3233
3237
  optimization?: "standard" | "fast" | undefined;
3238
+ resolution?: number | undefined;
3234
3239
  } | undefined;
3235
3240
  };
3236
3241
  }[];
@@ -7256,6 +7261,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
7256
7261
  tier: string;
7257
7262
  precision?: "fp32" | "int8" | undefined;
7258
7263
  optimization?: "standard" | "fast" | undefined;
7264
+ resolution?: number | undefined;
7259
7265
  } | undefined;
7260
7266
  };
7261
7267
  artifacts: readonly {
@@ -7353,6 +7359,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
7353
7359
  tier: string;
7354
7360
  precision?: "fp32" | "int8" | undefined;
7355
7361
  optimization?: "standard" | "fast" | undefined;
7362
+ resolution?: number | undefined;
7356
7363
  } | undefined;
7357
7364
  };
7358
7365
  };
@@ -9007,6 +9014,11 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
9007
9014
  };
9008
9015
  meta: object;
9009
9016
  }>;
9017
+ clearDeviceOverrides: import("@trpc/server").TRPCMutationProcedure<{
9018
+ input: any;
9019
+ output: any;
9020
+ meta: object;
9021
+ }>;
9010
9022
  getSchema: import("@trpc/server").TRPCQueryProcedure<{
9011
9023
  input: {
9012
9024
  nodeId?: string | undefined;
@@ -9056,6 +9068,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
9056
9068
  tier: string;
9057
9069
  precision?: "fp32" | "int8" | undefined;
9058
9070
  optimization?: "standard" | "fast" | undefined;
9071
+ resolution?: number | undefined;
9059
9072
  } | undefined;
9060
9073
  legacy?: boolean | undefined;
9061
9074
  }[];
@@ -9230,36 +9243,6 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
9230
9243
  };
9231
9244
  meta: object;
9232
9245
  }>;
9233
- detect: import("@trpc/server").TRPCQueryProcedure<{
9234
- input: {
9235
- [x: string]: unknown;
9236
- addonId: string;
9237
- frame: {
9238
- data: Uint8Array<ArrayBufferLike>;
9239
- format: "rgb" | "jpeg" | "bgr" | "yuv420" | "gray";
9240
- width: number;
9241
- height: number;
9242
- timestamp: number;
9243
- };
9244
- config?: Record<string, unknown> | undefined;
9245
- };
9246
- output: {
9247
- detections: readonly {
9248
- class: string;
9249
- originalClass: string;
9250
- score: number;
9251
- bbox: {
9252
- x: number;
9253
- y: number;
9254
- w: number;
9255
- h: number;
9256
- };
9257
- }[];
9258
- inferenceMs: number;
9259
- modelId: string;
9260
- };
9261
- meta: object;
9262
- }>;
9263
9246
  runPipeline: import("@trpc/server").TRPCMutationProcedure<{
9264
9247
  input: {
9265
9248
  [x: string]: unknown;
@@ -9717,35 +9700,6 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
9717
9700
  };
9718
9701
  meta: object;
9719
9702
  }>;
9720
- assignDecoder: import("@trpc/server").TRPCMutationProcedure<{
9721
- input: {
9722
- [x: string]: unknown;
9723
- deviceId: number;
9724
- nodeId: string;
9725
- };
9726
- output: void;
9727
- meta: object;
9728
- }>;
9729
- unassignDecoder: import("@trpc/server").TRPCMutationProcedure<{
9730
- input: {
9731
- [x: string]: unknown;
9732
- deviceId: number;
9733
- };
9734
- output: void;
9735
- meta: object;
9736
- }>;
9737
- getDecoderAssignments: import("@trpc/server").TRPCQueryProcedure<{
9738
- input: {
9739
- nodeId?: string | undefined;
9740
- } | undefined;
9741
- output: readonly {
9742
- deviceId: number;
9743
- decoderNodeId: string;
9744
- pinned: boolean;
9745
- reason: "manual" | "capacity" | "hardware-affinity" | "co-located";
9746
- }[];
9747
- meta: object;
9748
- }>;
9749
9703
  assignAudio: import("@trpc/server").TRPCMutationProcedure<{
9750
9704
  input: {
9751
9705
  [x: string]: unknown;
@@ -9801,20 +9755,6 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
9801
9755
  }[];
9802
9756
  meta: object;
9803
9757
  }>;
9804
- getDecoderAssignment: import("@trpc/server").TRPCQueryProcedure<{
9805
- input: {
9806
- [x: string]: unknown;
9807
- deviceId: number;
9808
- pipelineNodeId?: string | undefined;
9809
- };
9810
- output: {
9811
- deviceId: number;
9812
- decoderNodeId: string;
9813
- pinned: boolean;
9814
- reason: "manual" | "capacity" | "hardware-affinity" | "co-located";
9815
- };
9816
- meta: object;
9817
- }>;
9818
9758
  getAgentSettings: import("@trpc/server").TRPCQueryProcedure<{
9819
9759
  input: {
9820
9760
  [x: string]: unknown;
@@ -9932,6 +9872,11 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
9932
9872
  };
9933
9873
  meta: object;
9934
9874
  }>;
9875
+ resetNodePipelineDefaults: import("@trpc/server").TRPCMutationProcedure<{
9876
+ input: any;
9877
+ output: any;
9878
+ meta: object;
9879
+ }>;
9935
9880
  getCameraSettings: import("@trpc/server").TRPCQueryProcedure<{
9936
9881
  input: {
9937
9882
  [x: string]: unknown;
@@ -15359,6 +15304,8 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
15359
15304
  path: string;
15360
15305
  remoteName: string;
15361
15306
  bundle: string;
15307
+ section?: string | undefined;
15308
+ sectionLabel?: string | undefined;
15362
15309
  };
15363
15310
  bundleUrl: string;
15364
15311
  }[];
@@ -15383,6 +15330,8 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
15383
15330
  path: string;
15384
15331
  remoteName: string;
15385
15332
  bundle: string;
15333
+ section?: string | undefined;
15334
+ sectionLabel?: string | undefined;
15386
15335
  }[];
15387
15336
  meta: object;
15388
15337
  }>;
@@ -17798,6 +17747,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
17798
17747
  tier: string;
17799
17748
  precision?: "fp32" | "int8" | undefined;
17800
17749
  optimization?: "standard" | "fast" | undefined;
17750
+ resolution?: number | undefined;
17801
17751
  } | undefined;
17802
17752
  };
17803
17753
  }[];
@@ -21823,6 +21773,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
21823
21773
  tier: string;
21824
21774
  precision?: "fp32" | "int8" | undefined;
21825
21775
  optimization?: "standard" | "fast" | undefined;
21776
+ resolution?: number | undefined;
21826
21777
  } | undefined;
21827
21778
  };
21828
21779
  artifacts: readonly {
@@ -21920,6 +21871,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
21920
21871
  tier: string;
21921
21872
  precision?: "fp32" | "int8" | undefined;
21922
21873
  optimization?: "standard" | "fast" | undefined;
21874
+ resolution?: number | undefined;
21923
21875
  } | undefined;
21924
21876
  };
21925
21877
  };
@@ -23574,6 +23526,11 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
23574
23526
  };
23575
23527
  meta: object;
23576
23528
  }>;
23529
+ clearDeviceOverrides: import("@trpc/server").TRPCMutationProcedure<{
23530
+ input: any;
23531
+ output: any;
23532
+ meta: object;
23533
+ }>;
23577
23534
  getSchema: import("@trpc/server").TRPCQueryProcedure<{
23578
23535
  input: {
23579
23536
  nodeId?: string | undefined;
@@ -23623,6 +23580,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
23623
23580
  tier: string;
23624
23581
  precision?: "fp32" | "int8" | undefined;
23625
23582
  optimization?: "standard" | "fast" | undefined;
23583
+ resolution?: number | undefined;
23626
23584
  } | undefined;
23627
23585
  legacy?: boolean | undefined;
23628
23586
  }[];
@@ -23797,36 +23755,6 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
23797
23755
  };
23798
23756
  meta: object;
23799
23757
  }>;
23800
- detect: import("@trpc/server").TRPCQueryProcedure<{
23801
- input: {
23802
- [x: string]: unknown;
23803
- addonId: string;
23804
- frame: {
23805
- data: Uint8Array<ArrayBufferLike>;
23806
- format: "rgb" | "jpeg" | "bgr" | "yuv420" | "gray";
23807
- width: number;
23808
- height: number;
23809
- timestamp: number;
23810
- };
23811
- config?: Record<string, unknown> | undefined;
23812
- };
23813
- output: {
23814
- detections: readonly {
23815
- class: string;
23816
- originalClass: string;
23817
- score: number;
23818
- bbox: {
23819
- x: number;
23820
- y: number;
23821
- w: number;
23822
- h: number;
23823
- };
23824
- }[];
23825
- inferenceMs: number;
23826
- modelId: string;
23827
- };
23828
- meta: object;
23829
- }>;
23830
23758
  runPipeline: import("@trpc/server").TRPCMutationProcedure<{
23831
23759
  input: {
23832
23760
  [x: string]: unknown;
@@ -24284,35 +24212,6 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
24284
24212
  };
24285
24213
  meta: object;
24286
24214
  }>;
24287
- assignDecoder: import("@trpc/server").TRPCMutationProcedure<{
24288
- input: {
24289
- [x: string]: unknown;
24290
- deviceId: number;
24291
- nodeId: string;
24292
- };
24293
- output: void;
24294
- meta: object;
24295
- }>;
24296
- unassignDecoder: import("@trpc/server").TRPCMutationProcedure<{
24297
- input: {
24298
- [x: string]: unknown;
24299
- deviceId: number;
24300
- };
24301
- output: void;
24302
- meta: object;
24303
- }>;
24304
- getDecoderAssignments: import("@trpc/server").TRPCQueryProcedure<{
24305
- input: {
24306
- nodeId?: string | undefined;
24307
- } | undefined;
24308
- output: readonly {
24309
- deviceId: number;
24310
- decoderNodeId: string;
24311
- pinned: boolean;
24312
- reason: "manual" | "capacity" | "hardware-affinity" | "co-located";
24313
- }[];
24314
- meta: object;
24315
- }>;
24316
24215
  assignAudio: import("@trpc/server").TRPCMutationProcedure<{
24317
24216
  input: {
24318
24217
  [x: string]: unknown;
@@ -24368,20 +24267,6 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
24368
24267
  }[];
24369
24268
  meta: object;
24370
24269
  }>;
24371
- getDecoderAssignment: import("@trpc/server").TRPCQueryProcedure<{
24372
- input: {
24373
- [x: string]: unknown;
24374
- deviceId: number;
24375
- pipelineNodeId?: string | undefined;
24376
- };
24377
- output: {
24378
- deviceId: number;
24379
- decoderNodeId: string;
24380
- pinned: boolean;
24381
- reason: "manual" | "capacity" | "hardware-affinity" | "co-located";
24382
- };
24383
- meta: object;
24384
- }>;
24385
24270
  getAgentSettings: import("@trpc/server").TRPCQueryProcedure<{
24386
24271
  input: {
24387
24272
  [x: string]: unknown;
@@ -24499,6 +24384,11 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
24499
24384
  };
24500
24385
  meta: object;
24501
24386
  }>;
24387
+ resetNodePipelineDefaults: import("@trpc/server").TRPCMutationProcedure<{
24388
+ input: any;
24389
+ output: any;
24390
+ meta: object;
24391
+ }>;
24502
24392
  getCameraSettings: import("@trpc/server").TRPCQueryProcedure<{
24503
24393
  input: {
24504
24394
  [x: string]: unknown;
@@ -267,7 +267,7 @@ export interface DeviceProxy {
267
267
  readonly faceGallery: Pick<InferDeviceProxyCap<typeof faceGalleryCapability>, 'getFaceByTrack'>;
268
268
  readonly networkQuality: Pick<InferDeviceProxyCap<typeof networkQualityCapability>, 'getDeviceStats' | 'reportClientStats'>;
269
269
  readonly pipelineExecutor: Pick<InferDeviceProxyCap<typeof pipelineExecutorCapability>, 'runPipeline' | 'runPipelineBatch'>;
270
- readonly pipelineOrchestrator: Pick<InferDeviceProxyCap<typeof pipelineOrchestratorCapability>, 'assignPipeline' | 'unassignPipeline' | 'getPipelineAssignment' | 'getCameraMetrics' | 'assignDecoder' | 'unassignDecoder' | 'assignAudio' | 'unassignAudio' | 'getAudioAssignment' | 'getAudioAssignments' | 'getDecoderAssignment' | 'getCameraSettings' | 'setCameraStepToggle' | 'getCameraStepOverrides' | 'setCameraStepOverride' | 'setCameraPipelineForAgent' | 'resolvePipeline' | 'getCameraStatus' | 'getDeviceSettingsContribution' | 'getDeviceLiveContribution' | 'applyDeviceSettingsPatch'>;
270
+ readonly pipelineOrchestrator: Pick<InferDeviceProxyCap<typeof pipelineOrchestratorCapability>, 'assignPipeline' | 'unassignPipeline' | 'getPipelineAssignment' | 'getCameraMetrics' | 'assignAudio' | 'unassignAudio' | 'getAudioAssignment' | 'getAudioAssignments' | 'getCameraSettings' | 'setCameraStepToggle' | 'getCameraStepOverrides' | 'setCameraStepOverride' | 'setCameraPipelineForAgent' | 'resolvePipeline' | 'getCameraStatus' | 'getDeviceSettingsContribution' | 'getDeviceLiveContribution' | 'applyDeviceSettingsPatch'>;
271
271
  readonly pipelineRunner: Pick<InferDeviceProxyCap<typeof pipelineRunnerCapability>, 'detachCamera' | 'getCameraMetrics'>;
272
272
  readonly plateGallery: Pick<InferDeviceProxyCap<typeof plateGalleryCapability>, 'listPlates' | 'getPlateByTrack'>;
273
273
  readonly recording: Pick<InferDeviceProxyCap<typeof recordingCapability>, 'getAvailability' | 'getDaysWithRecordings' | 'getPlaybackManifest' | 'getDeviceConfig' | 'locateSegment' | 'readSegmentBytes' | 'setDeviceConfig' | 'rescanStorage' | 'pruneFootage' | 'getStatus' | 'getDeviceSettingsContribution' | 'getDeviceLiveContribution' | 'applyDeviceSettingsPatch'>;
@@ -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: 725 method paths across 109 capabilities.
9
+ * Coverage: 722 method paths across 109 capabilities.
10
10
  */
11
11
  import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
12
12
  export interface MethodAccessRecord {
@@ -71,8 +71,8 @@ export interface SystemProxy {
71
71
  readonly networkQuality: Pick<InferProvider<typeof networkQualityCapability>, 'getAllStats'>;
72
72
  readonly nodes: Pick<InferProvider<typeof nodesCapability>, 'topology' | 'deployAddon' | 'undeployAddon' | 'restartAddon' | 'restartProcess' | 'restartNode' | 'shutdownNode' | 'renameNode' | 'clusterAddonStatus' | 'getCapUsageGraph' | 'getNodeAddons' | 'setProcessLogLevel' | 'executeQuery'>;
73
73
  readonly notificationOutput: Pick<InferProvider<typeof notificationOutputCapability>, 'listTargetKinds' | 'listTargets' | 'discoverTargets' | 'send' | 'testTarget' | 'upsertTarget' | 'deleteTarget' | 'setTargetEnabled'>;
74
- readonly pipelineExecutor: Pick<InferProvider<typeof pipelineExecutorCapability>, 'getAvailableEngines' | 'getSelectedEngine' | 'getDefaultSteps' | 'reprobeEngine' | 'getEngineProvisioning' | 'getVideoPipelineSteps' | 'setVideoPipelineSteps' | 'getSchema' | 'getGlobalSteps' | 'getGlobalPipelineConfig' | 'getOrchestratorConfigSchema' | 'validatePipeline' | 'listTemplates' | 'saveTemplate' | 'updateTemplate' | 'deleteTemplate' | 'getCapabilities' | 'getAddonModels' | 'downloadModel' | 'deleteModel' | 'detect' | 'cacheFrameInPool' | 'inferCached' | 'uncacheFrame' | 'getEffectiveTuning' | 'listLoadedEngines' | 'spinEngine' | 'killEngine' | 'listReferenceImages' | 'getReferenceImage' | 'getReferenceAudioFiles' | 'getReferenceAudio' | 'getAudioCapabilities' | 'runAudioTest' | 'getDetectionConfigSchema'>;
75
- readonly pipelineOrchestrator: Pick<InferProvider<typeof pipelineOrchestratorCapability>, 'rebalance' | 'getPipelineAssignments' | 'getAgentLoad' | 'getGlobalMetrics' | 'getCapabilityBindings' | 'setCapabilityBinding' | 'getIngestOwner' | 'getDecoderAssignments' | 'getAudioNodeLoad' | 'getAgentSettings' | 'listAgentSettings' | 'setAgentAddonDefaults' | 'removeAgentSettings' | 'setAgentMaxCameras' | 'setAgentDetectWeight' | 'setAgentCapabilities' | 'setAgentReachableHost' | 'getCameraStatuses' | 'listTemplates' | 'saveTemplate' | 'updateTemplate' | 'deleteTemplate'>;
74
+ readonly pipelineExecutor: Pick<InferProvider<typeof pipelineExecutorCapability>, 'getAvailableEngines' | 'getSelectedEngine' | 'getDefaultSteps' | 'reprobeEngine' | 'getEngineProvisioning' | 'getVideoPipelineSteps' | 'setVideoPipelineSteps' | 'clearDeviceOverrides' | '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'>;
75
+ readonly pipelineOrchestrator: Pick<InferProvider<typeof pipelineOrchestratorCapability>, 'rebalance' | 'getPipelineAssignments' | 'getAgentLoad' | 'getGlobalMetrics' | 'getCapabilityBindings' | 'setCapabilityBinding' | 'getIngestOwner' | 'getAudioNodeLoad' | 'getAgentSettings' | 'listAgentSettings' | 'setAgentAddonDefaults' | 'removeAgentSettings' | 'setAgentMaxCameras' | 'setAgentDetectWeight' | 'setAgentCapabilities' | 'setAgentReachableHost' | 'resetNodePipelineDefaults' | 'getCameraStatuses' | 'listTemplates' | 'saveTemplate' | 'updateTemplate' | 'deleteTemplate'>;
76
76
  readonly pipelineRunner: Pick<InferProvider<typeof pipelineRunnerCapability>, 'attachCamera' | 'reportMotion' | 'getLocalLoad' | 'getLocalMetrics' | 'getAllCameraMetrics' | 'getLocalCameras'>;
77
77
  readonly plateGallery: Pick<InferProvider<typeof plateGalleryCapability>, 'getPlateMedia' | 'searchPlates' | 'suggestPlateClusters' | 'correctPlateText' | 'deletePlate'>;
78
78
  readonly recording: Pick<InferProvider<typeof recordingCapability>, 'getStorageUsage'>;
package/dist/index.d.ts CHANGED
@@ -132,6 +132,8 @@ export { DeviceRuntimeState } from './device/device-runtime-state.js';
132
132
  export type { IDeviceRuntimeState } from './device/device-runtime-state.js';
133
133
  export { createRuntimeStateBridge } from './device/runtime-state-helpers.js';
134
134
  export type { RuntimeStateBridge } from './device/runtime-state-helpers.js';
135
+ export { startReachabilityPoll, REACHABILITY_POLL_INTERVAL_MS, REACHABILITY_FAILURES_TO_OFFLINE, REACHABILITY_PROBE_TIMEOUT_MS, } from './device/reachability-poll.js';
136
+ export type { ReachabilityPollOptions, ReachabilityPollHandle, ReachabilityPollLogger, } from './device/reachability-poll.js';
135
137
  export { prepareNotification, type PreparedAction, type PreparedAttachment, type PreparedNotification, type ResolvedLevel, } from './notification/degrade-engine.js';
136
138
  export { htmlToText, markdownToHtmlLite, markdownToText, type NotificationFormat as NotificationBodyFormat, resolveFormat, textToHtml, transcodeBody, } from './notification/format-transcode.js';
137
139
  export { BaseDevice } from './device/base-device.js';