frontend types

This commit is contained in:
Josh Hawkins 2025-11-09 12:01:06 -06:00
parent c887e67c60
commit 56281685f9

View File

@ -107,6 +107,9 @@ export type WizardFormData = {
brandTemplate?: CameraBrand;
customUrl?: string;
streams?: StreamConfig[];
probeMode?: boolean; // true for probe, false for manual
onvifPort?: number;
probeResult?: OnvifProbeResponse;
};
// API Response Types
@ -167,3 +170,26 @@ export type ConfigSetBody = {
config_data: CameraConfigData;
update_topic?: string;
};
export type OnvifRtspCandidate = {
source: "GetStreamUri" | "pattern";
profile_token?: string;
uri: string;
};
export type OnvifProbeResponse = {
success: boolean;
host?: string;
port?: number;
manufacturer?: string;
model?: string;
firmware_version?: string;
profiles_count?: number;
ptz_supported?: boolean;
presets_count?: number;
autotrack_supported?: boolean;
move_status_supported?: boolean;
rtsp_candidates?: OnvifRtspCandidate[];
message?: string;
detail?: string;
};