@camstack/types 1.2.42 → 1.2.44
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 +8 -2
- package/dist/addon.mjs +8 -2
- package/dist/cap-call-context.d.ts +26 -0
- package/dist/capabilities/index.d.ts +8 -5
- package/dist/capabilities/osd-manager.cap.d.ts +900 -0
- package/dist/capabilities/pipeline-analytics.cap.d.ts +171 -4
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +36 -0
- package/dist/capabilities/privacy-mask.cap.d.ts +69 -9
- package/dist/capabilities/recording.cap.d.ts +27 -0
- package/dist/capabilities/schemas/streaming-shared.d.ts +2 -0
- package/dist/capabilities/server-management.cap.d.ts +3 -3
- package/dist/capabilities/snapshot.cap.d.ts +1 -1
- package/dist/capabilities/stream-broker.cap.d.ts +36 -0
- package/dist/capabilities/stream-params.cap.d.ts +8 -4
- package/dist/device/device-profile.d.ts +12 -4
- package/dist/device/system-mirror.d.ts +11 -0
- package/dist/ffmpeg/encode-defaults.d.ts +18 -0
- package/dist/ffmpeg/fmp4-box-splitter.d.ts +113 -0
- package/dist/ffmpeg/fmp4-fragment-child.d.ts +85 -0
- package/dist/ffmpeg/fmp4-fragment-plane.d.ts +142 -0
- package/dist/ffmpeg/invocation.d.ts +102 -2
- package/dist/ffmpeg/sharing-key.d.ts +54 -2
- package/dist/fmp4-box-splitter-B53u9-Nu.mjs +615 -0
- package/dist/fmp4-box-splitter-BkWH7O3L.js +686 -0
- package/dist/generated/addon-api.d.ts +117 -0
- package/dist/generated/cap-input-defaults.d.ts +1 -1
- package/dist/generated/capability-router-map.d.ts +5 -2
- package/dist/generated/device-proxy.d.ts +4 -2
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +2 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1264 -394
- package/dist/index.mjs +1217 -385
- package/dist/interfaces/camera-switches.d.ts +211 -5
- package/dist/interfaces/inference-engine.d.ts +24 -3
- package/dist/interfaces/stream-broker.d.ts +18 -0
- package/dist/node.d.ts +4 -0
- package/dist/node.js +509 -3
- package/dist/node.mjs +507 -3
- package/dist/notification/schedule.d.ts +20 -0
- package/dist/pipeline/native-lease.d.ts +150 -0
- package/dist/{sleep-BmNKsY7v.mjs → sleep-cC4Fuup8.mjs} +59 -3
- package/dist/{sleep-Cvi1JxZp.js → sleep-eiC10_cX.js} +64 -2
- package/dist/types/pipeline-step.d.ts +1 -1
- package/dist/utils/addon-id.d.ts +30 -0
- package/package.json +1 -1
- package/dist/canonical-hash-7nfBbEqR.mjs +0 -35
- package/dist/canonical-hash-BcZHRHIx.js +0 -40
|
@@ -74,6 +74,7 @@ import type { notificationOutputCapability } from '../capabilities/notification-
|
|
|
74
74
|
import type { notificationRulesCapability } from '../capabilities/notification-rules.cap.js';
|
|
75
75
|
import type { notifierCapability } from '../capabilities/notifier.cap.js';
|
|
76
76
|
import type { oauthIntegrationCapability } from '../capabilities/oauth-integration.cap.js';
|
|
77
|
+
import type { osdManagerCapability } from '../capabilities/osd-manager.cap.js';
|
|
77
78
|
import type { osdCapability } from '../capabilities/osd.cap.js';
|
|
78
79
|
import type { petFeederCapability } from '../capabilities/pet-feeder.cap.js';
|
|
79
80
|
import type { pipelineAnalyticsCapability } from '../capabilities/pipeline-analytics.cap.js';
|
|
@@ -4519,6 +4520,62 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
4519
4520
|
meta: object;
|
|
4520
4521
|
}>;
|
|
4521
4522
|
}>>;
|
|
4523
|
+
osdManager: TRPCBuiltRouter<{
|
|
4524
|
+
ctx: TrpcContext;
|
|
4525
|
+
meta: object;
|
|
4526
|
+
errorShape: AugmentedErrorShape;
|
|
4527
|
+
transformer: true;
|
|
4528
|
+
}, TRPCDecorateCreateRouterOptions<{
|
|
4529
|
+
getDeviceOsd: TRPCQueryProcedure<{
|
|
4530
|
+
input: {
|
|
4531
|
+
[x: string]: unknown;
|
|
4532
|
+
} & z.input<typeof osdManagerCapability.methods.getDeviceOsd.input>;
|
|
4533
|
+
output: z.infer<typeof osdManagerCapability.methods.getDeviceOsd.output>;
|
|
4534
|
+
meta: object;
|
|
4535
|
+
}>;
|
|
4536
|
+
getSourceCatalog: TRPCQueryProcedure<{
|
|
4537
|
+
input: {
|
|
4538
|
+
[x: string]: unknown;
|
|
4539
|
+
} & z.input<typeof osdManagerCapability.methods.getSourceCatalog.input>;
|
|
4540
|
+
output: z.infer<typeof osdManagerCapability.methods.getSourceCatalog.output>;
|
|
4541
|
+
meta: object;
|
|
4542
|
+
}>;
|
|
4543
|
+
getConditionSupport: TRPCQueryProcedure<{
|
|
4544
|
+
input: {
|
|
4545
|
+
[x: string]: unknown;
|
|
4546
|
+
} & z.input<typeof osdManagerCapability.methods.getConditionSupport.input>;
|
|
4547
|
+
output: z.infer<typeof osdManagerCapability.methods.getConditionSupport.output>;
|
|
4548
|
+
meta: object;
|
|
4549
|
+
}>;
|
|
4550
|
+
setSlotBinding: TRPCMutationProcedure<{
|
|
4551
|
+
input: {
|
|
4552
|
+
[x: string]: unknown;
|
|
4553
|
+
} & z.input<typeof osdManagerCapability.methods.setSlotBinding.input>;
|
|
4554
|
+
output: z.infer<typeof osdManagerCapability.methods.setSlotBinding.output>;
|
|
4555
|
+
meta: object;
|
|
4556
|
+
}>;
|
|
4557
|
+
clearSlotBinding: TRPCMutationProcedure<{
|
|
4558
|
+
input: {
|
|
4559
|
+
[x: string]: unknown;
|
|
4560
|
+
} & z.input<typeof osdManagerCapability.methods.clearSlotBinding.input>;
|
|
4561
|
+
output: z.infer<typeof osdManagerCapability.methods.clearSlotBinding.output>;
|
|
4562
|
+
meta: object;
|
|
4563
|
+
}>;
|
|
4564
|
+
previewSlot: TRPCMutationProcedure<{
|
|
4565
|
+
input: {
|
|
4566
|
+
[x: string]: unknown;
|
|
4567
|
+
} & z.input<typeof osdManagerCapability.methods.previewSlot.input>;
|
|
4568
|
+
output: z.infer<typeof osdManagerCapability.methods.previewSlot.output>;
|
|
4569
|
+
meta: object;
|
|
4570
|
+
}>;
|
|
4571
|
+
renderDevice: TRPCMutationProcedure<{
|
|
4572
|
+
input: {
|
|
4573
|
+
[x: string]: unknown;
|
|
4574
|
+
} & z.input<typeof osdManagerCapability.methods.renderDevice.input>;
|
|
4575
|
+
output: z.infer<typeof osdManagerCapability.methods.renderDevice.output>;
|
|
4576
|
+
meta: object;
|
|
4577
|
+
}>;
|
|
4578
|
+
}>>;
|
|
4522
4579
|
petFeeder: TRPCBuiltRouter<{
|
|
4523
4580
|
ctx: TrpcContext;
|
|
4524
4581
|
meta: object;
|
|
@@ -4805,6 +4862,20 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
4805
4862
|
output: z.infer<typeof pipelineAnalyticsCapability.methods.listOpsLog.output>;
|
|
4806
4863
|
meta: object;
|
|
4807
4864
|
}>;
|
|
4865
|
+
getTrainingExportSummary: TRPCQueryProcedure<{
|
|
4866
|
+
input: {
|
|
4867
|
+
[x: string]: unknown;
|
|
4868
|
+
} & z.input<typeof pipelineAnalyticsCapability.methods.getTrainingExportSummary.input>;
|
|
4869
|
+
output: z.infer<typeof pipelineAnalyticsCapability.methods.getTrainingExportSummary.output>;
|
|
4870
|
+
meta: object;
|
|
4871
|
+
}>;
|
|
4872
|
+
getTrainingExportUrl: TRPCQueryProcedure<{
|
|
4873
|
+
input: {
|
|
4874
|
+
[x: string]: unknown;
|
|
4875
|
+
} & z.input<typeof pipelineAnalyticsCapability.methods.getTrainingExportUrl.input>;
|
|
4876
|
+
output: z.infer<typeof pipelineAnalyticsCapability.methods.getTrainingExportUrl.output>;
|
|
4877
|
+
meta: object;
|
|
4878
|
+
}>;
|
|
4808
4879
|
getEventMedia: TRPCQueryProcedure<{
|
|
4809
4880
|
input: {
|
|
4810
4881
|
[x: string]: unknown;
|
|
@@ -5746,6 +5817,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
5746
5817
|
output: z.infer<typeof privacyMaskCapability.methods.setMask.output>;
|
|
5747
5818
|
meta: object;
|
|
5748
5819
|
}>;
|
|
5820
|
+
setAudioEnabled: TRPCMutationProcedure<{
|
|
5821
|
+
input: {
|
|
5822
|
+
[x: string]: unknown;
|
|
5823
|
+
} & z.input<typeof privacyMaskCapability.methods.setAudioEnabled.input>;
|
|
5824
|
+
output: z.infer<typeof privacyMaskCapability.methods.setAudioEnabled.output>;
|
|
5825
|
+
meta: object;
|
|
5826
|
+
}>;
|
|
5749
5827
|
}>>;
|
|
5750
5828
|
ptz: TRPCBuiltRouter<{
|
|
5751
5829
|
ctx: TrpcContext;
|
|
@@ -5970,6 +6048,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
5970
6048
|
output: z.infer<typeof recordingCapability.methods.readSegmentBytes.output>;
|
|
5971
6049
|
meta: object;
|
|
5972
6050
|
}>;
|
|
6051
|
+
readGopBytes: TRPCQueryProcedure<{
|
|
6052
|
+
input: {
|
|
6053
|
+
[x: string]: unknown;
|
|
6054
|
+
} & z.input<typeof recordingCapability.methods.readGopBytes.input>;
|
|
6055
|
+
output: z.infer<typeof recordingCapability.methods.readGopBytes.output>;
|
|
6056
|
+
meta: object;
|
|
6057
|
+
}>;
|
|
5973
6058
|
setDeviceConfig: TRPCMutationProcedure<{
|
|
5974
6059
|
input: {
|
|
5975
6060
|
[x: string]: unknown;
|
|
@@ -6981,6 +7066,20 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
6981
7066
|
output: z.infer<typeof streamBrokerCapability.methods.isRtspEnabled.output>;
|
|
6982
7067
|
meta: object;
|
|
6983
7068
|
}>;
|
|
7069
|
+
getDeviceAudioMute: TRPCQueryProcedure<{
|
|
7070
|
+
input: {
|
|
7071
|
+
[x: string]: unknown;
|
|
7072
|
+
} & z.input<typeof streamBrokerCapability.methods.getDeviceAudioMute.input>;
|
|
7073
|
+
output: z.infer<typeof streamBrokerCapability.methods.getDeviceAudioMute.output>;
|
|
7074
|
+
meta: object;
|
|
7075
|
+
}>;
|
|
7076
|
+
setDeviceAudioMute: TRPCMutationProcedure<{
|
|
7077
|
+
input: {
|
|
7078
|
+
[x: string]: unknown;
|
|
7079
|
+
} & z.input<typeof streamBrokerCapability.methods.setDeviceAudioMute.input>;
|
|
7080
|
+
output: z.infer<typeof streamBrokerCapability.methods.setDeviceAudioMute.output>;
|
|
7081
|
+
meta: object;
|
|
7082
|
+
}>;
|
|
6984
7083
|
}>>;
|
|
6985
7084
|
streamCatalog: TRPCBuiltRouter<{
|
|
6986
7085
|
ctx: TrpcContext;
|
|
@@ -8834,6 +8933,15 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
8834
8933
|
errorShape: AugmentedErrorShape;
|
|
8835
8934
|
transformer: true;
|
|
8836
8935
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
8936
|
+
repairNodeAddons: import("@trpc/server").TRPCMutationProcedure<{
|
|
8937
|
+
input: {
|
|
8938
|
+
nodeId: string;
|
|
8939
|
+
};
|
|
8940
|
+
output: {
|
|
8941
|
+
success: boolean;
|
|
8942
|
+
};
|
|
8943
|
+
meta: object;
|
|
8944
|
+
}>;
|
|
8837
8945
|
forgetNode: import("@trpc/server").TRPCMutationProcedure<{
|
|
8838
8946
|
input: {
|
|
8839
8947
|
nodeId: string;
|
|
@@ -8844,6 +8952,15 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
8844
8952
|
meta: object;
|
|
8845
8953
|
}>;
|
|
8846
8954
|
}>> & import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
8955
|
+
repairNodeAddons: import("@trpc/server").TRPCMutationProcedure<{
|
|
8956
|
+
input: {
|
|
8957
|
+
nodeId: string;
|
|
8958
|
+
};
|
|
8959
|
+
output: {
|
|
8960
|
+
success: boolean;
|
|
8961
|
+
};
|
|
8962
|
+
meta: object;
|
|
8963
|
+
}>;
|
|
8847
8964
|
forgetNode: import("@trpc/server").TRPCMutationProcedure<{
|
|
8848
8965
|
input: {
|
|
8849
8966
|
nodeId: string;
|
|
@@ -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: 23 caps, 50 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
|
/**
|
|
@@ -92,6 +92,7 @@ export { notifierCapability } from '../capabilities/notifier.cap.js';
|
|
|
92
92
|
export { numericSensorCapability } from '../capabilities/numeric-sensor.cap.js';
|
|
93
93
|
export { oauthIntegrationCapability } from '../capabilities/oauth-integration.cap.js';
|
|
94
94
|
export { osdCapability } from '../capabilities/osd.cap.js';
|
|
95
|
+
export { osdManagerCapability } from '../capabilities/osd-manager.cap.js';
|
|
95
96
|
export { petFeederCapability } from '../capabilities/pet-feeder.cap.js';
|
|
96
97
|
export { pipelineAnalyticsCapability } from '../capabilities/pipeline-analytics.cap.js';
|
|
97
98
|
export { pipelineExecutorCapability } from '../capabilities/pipeline-executor.cap.js';
|
|
@@ -239,6 +240,7 @@ export declare const CAPABILITY_NAMES: {
|
|
|
239
240
|
readonly numericSensor: "numeric-sensor";
|
|
240
241
|
readonly oauthIntegration: "oauth-integration";
|
|
241
242
|
readonly osd: "osd";
|
|
243
|
+
readonly osdManager: "osd-manager";
|
|
242
244
|
readonly petFeeder: "pet-feeder";
|
|
243
245
|
readonly pipelineAnalytics: "pipeline-analytics";
|
|
244
246
|
readonly pipelineExecutor: "pipeline-executor";
|
|
@@ -399,6 +401,7 @@ export interface CapabilityRouterMap<TRouter = unknown> {
|
|
|
399
401
|
readonly numericSensor: TRouter;
|
|
400
402
|
readonly oauthIntegration: TRouter;
|
|
401
403
|
readonly osd: TRouter;
|
|
404
|
+
readonly osdManager: TRouter;
|
|
402
405
|
readonly petFeeder: TRouter;
|
|
403
406
|
readonly pipelineAnalytics: TRouter;
|
|
404
407
|
readonly pipelineExecutor: TRouter;
|
|
@@ -452,8 +455,8 @@ export interface CapabilityRouterMap<TRouter = unknown> {
|
|
|
452
455
|
readonly zoneRules: TRouter;
|
|
453
456
|
readonly zones: TRouter;
|
|
454
457
|
}
|
|
455
|
-
/** Capability names whose mode is `singleton` (
|
|
456
|
-
export declare const SINGLETON_CAPABILITY_NAMES: readonly ["accessories", "addon-pages", "addon-settings", "addon-widgets", "addons", "admin-ui", "air-quality-sensor", "alarm-panel", "alerts", "ambient-light-sensor", "audio-analysis", "audio-analyzer", "audio-codec", "audio-metrics", "automation-control", "backup", "battery", "binary", "brightness", "button", "camera-credentials", "camera-pipeline-config", "camera-streams", "carbon-monoxide", "climate-control", "color", "connectivity", "consumables", "contact", "control", "core-blocks", "cover", "day-night", "decoder", "detection-pipeline", "device-adoption", "device-discovery", "device-manager", "device-ops", "device-state", "device-status", "doorbell", "enum-sensor", "event-emitter", "events", "face-gallery", "fan-control", "feature-probe", "filesystem-browse", "flood", "gas", "humidifier", "humidity-sensor", "image", "image-settings", "integrations", "intercom", "lawn-mower-control", "llm-runtime", "local-network", "lock-control", "media-player", "metrics-provider", "model-convert", "model-distributor", "motion", "motion-detection", "motion-trigger", "motion-zones", "native-object-detection", "network-quality", "nodes", "notification-rules", "notifier", "numeric-sensor", "osd", "pet-feeder", "pipeline-analytics", "pipeline-executor", "pipeline-orchestrator", "pipeline-runner", "plate-gallery", "platform-probe", "power-meter", "presence", "pressure-sensor", "privacy-mask", "ptz", "ptz-autotrack", "reboot", "recording", "recordingExport", "scene-monitor", "script-runner", "server-management", "settings-store", "smoke", "snapshot", "sso-bridge", "storage", "stream-broker", "stream-catalog", "stream-params", "switch", "system", "tamper", "temperature-sensor", "terminal-session", "toast", "update", "user-management", "vacuum-control", "valve", "vector-store", "vibration", "videoclips", "viewer-ui", "water-heater", "weather", "webrtc-session", "zone-analytics", "zone-rules", "zones"];
|
|
458
|
+
/** Capability names whose mode is `singleton` (124 caps). */
|
|
459
|
+
export declare const SINGLETON_CAPABILITY_NAMES: readonly ["accessories", "addon-pages", "addon-settings", "addon-widgets", "addons", "admin-ui", "air-quality-sensor", "alarm-panel", "alerts", "ambient-light-sensor", "audio-analysis", "audio-analyzer", "audio-codec", "audio-metrics", "automation-control", "backup", "battery", "binary", "brightness", "button", "camera-credentials", "camera-pipeline-config", "camera-streams", "carbon-monoxide", "climate-control", "color", "connectivity", "consumables", "contact", "control", "core-blocks", "cover", "day-night", "decoder", "detection-pipeline", "device-adoption", "device-discovery", "device-manager", "device-ops", "device-state", "device-status", "doorbell", "enum-sensor", "event-emitter", "events", "face-gallery", "fan-control", "feature-probe", "filesystem-browse", "flood", "gas", "humidifier", "humidity-sensor", "image", "image-settings", "integrations", "intercom", "lawn-mower-control", "llm-runtime", "local-network", "lock-control", "media-player", "metrics-provider", "model-convert", "model-distributor", "motion", "motion-detection", "motion-trigger", "motion-zones", "native-object-detection", "network-quality", "nodes", "notification-rules", "notifier", "numeric-sensor", "osd", "osd-manager", "pet-feeder", "pipeline-analytics", "pipeline-executor", "pipeline-orchestrator", "pipeline-runner", "plate-gallery", "platform-probe", "power-meter", "presence", "pressure-sensor", "privacy-mask", "ptz", "ptz-autotrack", "reboot", "recording", "recordingExport", "scene-monitor", "script-runner", "server-management", "settings-store", "smoke", "snapshot", "sso-bridge", "storage", "stream-broker", "stream-catalog", "stream-params", "switch", "system", "tamper", "temperature-sensor", "terminal-session", "toast", "update", "user-management", "vacuum-control", "valve", "vector-store", "vibration", "videoclips", "viewer-ui", "water-heater", "weather", "webrtc-session", "zone-analytics", "zone-rules", "zones"];
|
|
457
460
|
/** Union of singleton capability names (literal string union). */
|
|
458
461
|
export type SingletonCapabilityName = typeof SINGLETON_CAPABILITY_NAMES[number];
|
|
459
462
|
/** Capability names whose mode is `collection` (23 caps). */
|
|
@@ -90,6 +90,7 @@ import type { deviceManagerCapability } from '../capabilities/device-manager.cap
|
|
|
90
90
|
import type { deviceStateCapability } from '../capabilities/device-state.cap.js';
|
|
91
91
|
import type { faceGalleryCapability } from '../capabilities/face-gallery.cap.js';
|
|
92
92
|
import type { networkQualityCapability } from '../capabilities/network-quality.cap.js';
|
|
93
|
+
import type { osdManagerCapability } from '../capabilities/osd-manager.cap.js';
|
|
93
94
|
import type { pipelineExecutorCapability } from '../capabilities/pipeline-executor.cap.js';
|
|
94
95
|
import type { pipelineOrchestratorCapability } from '../capabilities/pipeline-orchestrator.cap.js';
|
|
95
96
|
import type { pipelineRunnerCapability } from '../capabilities/pipeline-runner.cap.js';
|
|
@@ -272,13 +273,14 @@ export interface DeviceProxy {
|
|
|
272
273
|
readonly deviceState: Pick<InferDeviceProxyCap<typeof deviceStateCapability>, 'getSnapshot' | 'getCapSlice' | 'setCapSlice'>;
|
|
273
274
|
readonly faceGallery: Pick<InferDeviceProxyCap<typeof faceGalleryCapability>, 'getFaceByTrack'>;
|
|
274
275
|
readonly networkQuality: Pick<InferDeviceProxyCap<typeof networkQualityCapability>, 'getDeviceStats' | 'reportClientStats'>;
|
|
276
|
+
readonly osdManager: Pick<InferDeviceProxyCap<typeof osdManagerCapability>, 'getDeviceOsd' | 'getSourceCatalog' | 'setSlotBinding' | 'clearSlotBinding' | 'previewSlot' | 'renderDevice'>;
|
|
275
277
|
readonly pipelineExecutor: Pick<InferDeviceProxyCap<typeof pipelineExecutorCapability>, 'runPipeline' | 'runPipelineBatch'>;
|
|
276
278
|
readonly pipelineOrchestrator: Pick<InferDeviceProxyCap<typeof pipelineOrchestratorCapability>, 'assignPipeline' | 'unassignPipeline' | 'setPipelineDevicePin' | 'getPipelineDevicePin' | 'getPipelineAssignment' | 'getCameraMetrics' | 'assignAudio' | 'unassignAudio' | 'getAudioAssignment' | 'getAudioAssignments' | 'getCameraSettings' | 'setCameraStepToggle' | 'getCameraStepOverrides' | 'setCameraStepOverride' | 'setCameraPipelineForAgent' | 'resolvePipeline' | 'getCameraSwitches' | 'setCameraSwitch' | 'getCameraStatus' | 'getDeviceSettingsContribution' | 'getDeviceLiveContribution' | 'applyDeviceSettingsPatch'>;
|
|
277
279
|
readonly pipelineRunner: Pick<InferDeviceProxyCap<typeof pipelineRunnerCapability>, 'detachCamera' | 'getCameraMetrics' | 'runDetailSubtree'>;
|
|
278
280
|
readonly plateGallery: Pick<InferDeviceProxyCap<typeof plateGalleryCapability>, 'listPlates' | 'getPlateByTrack'>;
|
|
279
|
-
readonly recording: Pick<InferDeviceProxyCap<typeof recordingCapability>, 'getAvailability' | 'getDaysWithRecordings' | 'getPlaybackManifest' | 'getDeviceConfig' | 'locateSegment' | 'readSegmentBytes' | 'setDeviceConfig' | 'rescanStorage' | 'pruneFootage' | 'deleteFootprint' | 'renderGif' | 'renderClip' | 'getStatus' | 'getDeviceSettingsContribution' | 'getDeviceLiveContribution' | 'applyDeviceSettingsPatch'>;
|
|
281
|
+
readonly recording: Pick<InferDeviceProxyCap<typeof recordingCapability>, 'getAvailability' | 'getDaysWithRecordings' | 'getPlaybackManifest' | 'getDeviceConfig' | 'locateSegment' | 'readSegmentBytes' | 'readGopBytes' | 'setDeviceConfig' | 'rescanStorage' | 'pruneFootage' | 'deleteFootprint' | 'renderGif' | 'renderClip' | 'getStatus' | 'getDeviceSettingsContribution' | 'getDeviceLiveContribution' | 'applyDeviceSettingsPatch'>;
|
|
280
282
|
readonly recordingExport: Pick<InferDeviceProxyCap<typeof recordingExportCapability>, 'createExport' | 'listExports'>;
|
|
281
|
-
readonly streamBroker: Pick<InferDeviceProxyCap<typeof streamBrokerCapability>, 'publishCameraStream' | 'retractCameraStream' | 'assignProfile' | 'unassignProfile' | 'renderPreBufferClip' | 'restartProfile' | 'getDeviceSettingsContribution' | 'getDeviceLiveContribution' | 'applyDeviceSettingsPatch'>;
|
|
283
|
+
readonly streamBroker: Pick<InferDeviceProxyCap<typeof streamBrokerCapability>, 'publishCameraStream' | 'retractCameraStream' | 'assignProfile' | 'unassignProfile' | 'renderPreBufferClip' | 'restartProfile' | 'getDeviceAudioMute' | 'setDeviceAudioMute' | 'getDeviceSettingsContribution' | 'getDeviceLiveContribution' | 'applyDeviceSettingsPatch'>;
|
|
282
284
|
}
|
|
283
285
|
/**
|
|
284
286
|
* Build a DeviceProxy that pre-binds deviceId + nodeId on every method call
|
|
@@ -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: 887 method paths across 121 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
12
12
|
export interface MethodAccessRecord {
|
|
@@ -27,6 +27,7 @@ import type { networkAccessCapability } from '../capabilities/network-access.cap
|
|
|
27
27
|
import type { networkQualityCapability } from '../capabilities/network-quality.cap.js';
|
|
28
28
|
import type { nodesCapability } from '../capabilities/nodes.cap.js';
|
|
29
29
|
import type { notificationOutputCapability } from '../capabilities/notification-output.cap.js';
|
|
30
|
+
import type { osdManagerCapability } from '../capabilities/osd-manager.cap.js';
|
|
30
31
|
import type { pipelineExecutorCapability } from '../capabilities/pipeline-executor.cap.js';
|
|
31
32
|
import type { pipelineOrchestratorCapability } from '../capabilities/pipeline-orchestrator.cap.js';
|
|
32
33
|
import type { pipelineRunnerCapability } from '../capabilities/pipeline-runner.cap.js';
|
|
@@ -78,6 +79,7 @@ export interface SystemProxy {
|
|
|
78
79
|
readonly networkQuality: Pick<InferProvider<typeof networkQualityCapability>, 'getAllStats'>;
|
|
79
80
|
readonly nodes: Pick<InferProvider<typeof nodesCapability>, 'topology' | 'deployAddon' | 'undeployAddon' | 'restartAddon' | 'restartProcess' | 'restartNode' | 'shutdownNode' | 'renameNode' | 'clusterAddonStatus' | 'getCapUsageGraph' | 'getNodeAddons' | 'setProcessLogLevel' | 'executeQuery'>;
|
|
80
81
|
readonly notificationOutput: Pick<InferProvider<typeof notificationOutputCapability>, 'listTargetKinds' | 'listTargets' | 'discoverTargets' | 'send' | 'testTarget' | 'upsertTarget' | 'deleteTarget' | 'setTargetEnabled'>;
|
|
82
|
+
readonly osdManager: Pick<InferProvider<typeof osdManagerCapability>, 'getConditionSupport'>;
|
|
81
83
|
readonly pipelineExecutor: Pick<InferProvider<typeof pipelineExecutorCapability>, 'getAvailableEngines' | 'getSelectedEngine' | 'getDefaultSteps' | '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'>;
|
|
82
84
|
readonly pipelineOrchestrator: Pick<InferProvider<typeof pipelineOrchestratorCapability>, 'rebalance' | 'getPipelineAssignments' | 'getAgentLoad' | 'getGlobalMetrics' | 'getCapabilityBindings' | 'setCapabilityBinding' | 'getIngestOwner' | 'getAudioNodeLoad' | 'getAgentSettings' | 'listAgentSettings' | 'removeAgentSettings' | 'setAgentMaxCameras' | 'setAgentDetectWeight' | 'setAgentCapabilities' | 'setAgentReachableHost' | 'setAgentInferenceDevices' | 'getNodeInferenceDevices' | 'resetNodePipelineDefaults' | 'getCameraStatuses' | 'listTemplates' | 'saveTemplate' | 'updateTemplate' | 'deleteTemplate'>;
|
|
83
85
|
readonly pipelineRunner: Pick<InferProvider<typeof pipelineRunnerCapability>, 'attachCamera' | 'reportMotion' | 'getLocalLoad' | 'getLocalMetrics' | 'getAllCameraMetrics' | 'getLocalCameras' | 'getNativeCrop' | 'runStatelessStep'>;
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from './ffmpeg/invocation.js';
|
|
|
12
12
|
export * from './ffmpeg/encode-defaults.js';
|
|
13
13
|
export * from './ffmpeg/hwaccel.js';
|
|
14
14
|
export * from './ffmpeg/sharing-key.js';
|
|
15
|
+
export * from './ffmpeg/fmp4-box-splitter.js';
|
|
15
16
|
export * from './health/wiring-health.js';
|
|
16
17
|
export type * from './interfaces/addon.js';
|
|
17
18
|
export { DEFAULT_ADDON_PLACEMENT, isAgentOnlyPlacement, isDeployableToAgent, resolveAddonExecution, resolveAddonGroup, resolveAddonPlacement, resolveRunnerId, } from './interfaces/addon.js';
|
|
@@ -181,6 +182,7 @@ export * from './lifecycle/index.js';
|
|
|
181
182
|
export { isBaseConditionKey, knownValues, NC_BASE_CONDITION_KEYS, type NcBaseConditionKey, pickerForCondition, type TaxonomyGroup, type TaxonomyOption, type TaxonomyPicker, } from './notification/condition-taxonomy.js';
|
|
182
183
|
export { type PreparedAction, type PreparedAttachment, type PreparedNotification, prepareNotification, type ResolvedLevel, } from './notification/degrade-engine.js';
|
|
183
184
|
export { htmlToText, markdownToHtmlLite, markdownToText, type NotificationFormat as NotificationBodyFormat, resolveFormat, textToHtml, transcodeBody, } from './notification/format-transcode.js';
|
|
185
|
+
export { isScheduleActive } from './notification/schedule.js';
|
|
184
186
|
export type { TimelapseRule, TimelapseRuleInput, TimelapseRulePatch, TimelapseTemplate, } from './notification/timelapse-rule.js';
|
|
185
187
|
export { TimelapseRuleInputSchema, TimelapseRulePatchSchema, TimelapseRuleSchema, TimelapseTemplateSchema, } from './notification/timelapse-rule.js';
|
|
186
188
|
export { type ApiKeyRecord, ApiKeyRecordSchema, type CapScope, CapScopeSchema, type MethodAccess, MethodAccessSchema, type ScopedToken, ScopedTokenSchema, type TokenScope, TokenScopeSchema, type UserRecord, UserRecordSchema, } from './schemas/auth-records.js';
|
|
@@ -188,6 +190,7 @@ export type { CameraDetectionCapabilities, CameraMotionConfig, CameraNativeDetec
|
|
|
188
190
|
export { DEVICE_TYPE_INFO, type DeviceTypeInfo } from './types/device-type.js';
|
|
189
191
|
export * from './units/index.js';
|
|
190
192
|
export { bestLocationMatch, locationSimilarity } from './util/location-match.js';
|
|
193
|
+
export { bareAddonId, isSameAddonId } from './utils/addon-id.js';
|
|
191
194
|
export { cosineSimilarity } from './utils/cosine-similarity.js';
|
|
192
195
|
export { ElementConfigStore } from './utils/element-config-store.js';
|
|
193
196
|
export { errMsg } from './utils/err-msg.js';
|
|
@@ -204,6 +207,7 @@ export { sleep, sleepCancellable } from './utils/sleep.js';
|
|
|
204
207
|
export { decodeVectorBase64, encodeVectorBase64, vectorDimFromBase64, } from './utils/vector-codec.js';
|
|
205
208
|
export { evaluateZoneRules, type ZoneRuleEvalResult } from './utils/zone-rule-eval.js';
|
|
206
209
|
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, type HydratedSettingsSection, type HydratedSettingsView, pickDetailCropConvention, readDetailCropConvention, } from './pipeline/detail-crop.js';
|
|
210
|
+
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_SECTION_ID, NATIVE_LEASE_TTL_FIELD, NATIVE_LEASE_TTL_KEY, type NativeLeaseAdmission, NativeLeaseAdmissionSchema, type NativeLeaseKnob, type NativeLeaseNumberKnob, type NativeLeaseSettings, NativeLeaseSettingsSchema, type NativeLeaseSettingsOverride, pickNativeLeaseOverride, readNativeLeaseOverride, } from './pipeline/native-lease.js';
|
|
207
211
|
export { bindAddonActions } from './helpers/bind-addon-actions.js';
|
|
208
212
|
export type { DeviceOption, InferenceDeviceDescriptor, RuntimeId, } from './inference/runtime-capabilities.js';
|
|
209
213
|
export { defaultDeviceFor, enumerateInferenceDevices, modelFormatForRuntime, runtimeDevices, scoreRuntimes, supportedRuntimes, } from './inference/runtime-capabilities.js';
|