@camstack/types 1.2.43 → 1.2.45
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/capabilities/index.d.ts +21 -3
- package/dist/capabilities/osd-manager.cap.d.ts +900 -0
- package/dist/capabilities/pipeline-analytics.cap.d.ts +1192 -74
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +10 -0
- package/dist/capabilities/pipeline-runner.cap.d.ts +6 -0
- package/dist/capabilities/schemas/streaming-shared.d.ts +2 -0
- package/dist/capabilities/server-management.cap.d.ts +3 -3
- package/dist/capabilities/stream-broker.cap.d.ts +32 -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 +4 -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 +162 -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 +3 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1114 -407
- package/dist/index.mjs +1075 -397
- package/dist/interfaces/camera-switches.d.ts +48 -0
- package/dist/interfaces/stream-broker.d.ts +19 -49
- 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/{sleep-Bx9IIoT0.js → sleep-BOI-sVEA.js} +37 -1
- package/dist/{sleep-DtstvzWm.mjs → sleep-Bf5fBs7u.mjs} +37 -1
- package/dist/types/detection.d.ts +31 -0
- package/dist/types/pipeline-step.d.ts +22 -1
- 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,97 @@ 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
|
+
}>;
|
|
4879
|
+
listRetrainStaging: TRPCQueryProcedure<{
|
|
4880
|
+
input: {
|
|
4881
|
+
[x: string]: unknown;
|
|
4882
|
+
} & z.input<typeof pipelineAnalyticsCapability.methods.listRetrainStaging.input>;
|
|
4883
|
+
output: z.infer<typeof pipelineAnalyticsCapability.methods.listRetrainStaging.output>;
|
|
4884
|
+
meta: object;
|
|
4885
|
+
}>;
|
|
4886
|
+
listRetrainFrames: TRPCQueryProcedure<{
|
|
4887
|
+
input: {
|
|
4888
|
+
[x: string]: unknown;
|
|
4889
|
+
} & z.input<typeof pipelineAnalyticsCapability.methods.listRetrainFrames.input>;
|
|
4890
|
+
output: z.infer<typeof pipelineAnalyticsCapability.methods.listRetrainFrames.output>;
|
|
4891
|
+
meta: object;
|
|
4892
|
+
}>;
|
|
4893
|
+
selectRetrainFrames: TRPCMutationProcedure<{
|
|
4894
|
+
input: {
|
|
4895
|
+
[x: string]: unknown;
|
|
4896
|
+
} & z.input<typeof pipelineAnalyticsCapability.methods.selectRetrainFrames.input>;
|
|
4897
|
+
output: z.infer<typeof pipelineAnalyticsCapability.methods.selectRetrainFrames.output>;
|
|
4898
|
+
meta: object;
|
|
4899
|
+
}>;
|
|
4900
|
+
deselectRetrainFrame: TRPCMutationProcedure<{
|
|
4901
|
+
input: {
|
|
4902
|
+
[x: string]: unknown;
|
|
4903
|
+
} & z.input<typeof pipelineAnalyticsCapability.methods.deselectRetrainFrame.input>;
|
|
4904
|
+
output: z.infer<typeof pipelineAnalyticsCapability.methods.deselectRetrainFrame.output>;
|
|
4905
|
+
meta: object;
|
|
4906
|
+
}>;
|
|
4907
|
+
getRetrainFrameImage: TRPCQueryProcedure<{
|
|
4908
|
+
input: {
|
|
4909
|
+
[x: string]: unknown;
|
|
4910
|
+
} & z.input<typeof pipelineAnalyticsCapability.methods.getRetrainFrameImage.input>;
|
|
4911
|
+
output: z.infer<typeof pipelineAnalyticsCapability.methods.getRetrainFrameImage.output>;
|
|
4912
|
+
meta: object;
|
|
4913
|
+
}>;
|
|
4914
|
+
proposeRetrainAnnotations: TRPCMutationProcedure<{
|
|
4915
|
+
input: {
|
|
4916
|
+
[x: string]: unknown;
|
|
4917
|
+
} & z.input<typeof pipelineAnalyticsCapability.methods.proposeRetrainAnnotations.input>;
|
|
4918
|
+
output: z.infer<typeof pipelineAnalyticsCapability.methods.proposeRetrainAnnotations.output>;
|
|
4919
|
+
meta: object;
|
|
4920
|
+
}>;
|
|
4921
|
+
listRetrainAnnotations: TRPCQueryProcedure<{
|
|
4922
|
+
input: {
|
|
4923
|
+
[x: string]: unknown;
|
|
4924
|
+
} & z.input<typeof pipelineAnalyticsCapability.methods.listRetrainAnnotations.input>;
|
|
4925
|
+
output: z.infer<typeof pipelineAnalyticsCapability.methods.listRetrainAnnotations.output>;
|
|
4926
|
+
meta: object;
|
|
4927
|
+
}>;
|
|
4928
|
+
saveRetrainAnnotations: TRPCMutationProcedure<{
|
|
4929
|
+
input: {
|
|
4930
|
+
[x: string]: unknown;
|
|
4931
|
+
} & z.input<typeof pipelineAnalyticsCapability.methods.saveRetrainAnnotations.input>;
|
|
4932
|
+
output: z.infer<typeof pipelineAnalyticsCapability.methods.saveRetrainAnnotations.output>;
|
|
4933
|
+
meta: object;
|
|
4934
|
+
}>;
|
|
4935
|
+
completeRetrainTrack: TRPCMutationProcedure<{
|
|
4936
|
+
input: {
|
|
4937
|
+
[x: string]: unknown;
|
|
4938
|
+
} & z.input<typeof pipelineAnalyticsCapability.methods.completeRetrainTrack.input>;
|
|
4939
|
+
output: z.infer<typeof pipelineAnalyticsCapability.methods.completeRetrainTrack.output>;
|
|
4940
|
+
meta: object;
|
|
4941
|
+
}>;
|
|
4942
|
+
restageRetrainTrack: TRPCMutationProcedure<{
|
|
4943
|
+
input: {
|
|
4944
|
+
[x: string]: unknown;
|
|
4945
|
+
} & z.input<typeof pipelineAnalyticsCapability.methods.restageRetrainTrack.input>;
|
|
4946
|
+
output: z.infer<typeof pipelineAnalyticsCapability.methods.restageRetrainTrack.output>;
|
|
4947
|
+
meta: object;
|
|
4948
|
+
}>;
|
|
4949
|
+
getRetrainExportUrl: TRPCQueryProcedure<{
|
|
4950
|
+
input: {
|
|
4951
|
+
[x: string]: unknown;
|
|
4952
|
+
} & z.input<typeof pipelineAnalyticsCapability.methods.getRetrainExportUrl.input>;
|
|
4953
|
+
output: z.infer<typeof pipelineAnalyticsCapability.methods.getRetrainExportUrl.output>;
|
|
4954
|
+
meta: object;
|
|
4955
|
+
}>;
|
|
4808
4956
|
getEventMedia: TRPCQueryProcedure<{
|
|
4809
4957
|
input: {
|
|
4810
4958
|
[x: string]: unknown;
|
|
@@ -6995,6 +7143,20 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
6995
7143
|
output: z.infer<typeof streamBrokerCapability.methods.isRtspEnabled.output>;
|
|
6996
7144
|
meta: object;
|
|
6997
7145
|
}>;
|
|
7146
|
+
getDeviceAudioMute: TRPCQueryProcedure<{
|
|
7147
|
+
input: {
|
|
7148
|
+
[x: string]: unknown;
|
|
7149
|
+
} & z.input<typeof streamBrokerCapability.methods.getDeviceAudioMute.input>;
|
|
7150
|
+
output: z.infer<typeof streamBrokerCapability.methods.getDeviceAudioMute.output>;
|
|
7151
|
+
meta: object;
|
|
7152
|
+
}>;
|
|
7153
|
+
setDeviceAudioMute: TRPCMutationProcedure<{
|
|
7154
|
+
input: {
|
|
7155
|
+
[x: string]: unknown;
|
|
7156
|
+
} & z.input<typeof streamBrokerCapability.methods.setDeviceAudioMute.input>;
|
|
7157
|
+
output: z.infer<typeof streamBrokerCapability.methods.setDeviceAudioMute.output>;
|
|
7158
|
+
meta: object;
|
|
7159
|
+
}>;
|
|
6998
7160
|
}>>;
|
|
6999
7161
|
streamCatalog: TRPCBuiltRouter<{
|
|
7000
7162
|
ctx: TrpcContext;
|
|
@@ -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
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: 898 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';
|