You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
689 B
22 lines
689 B
import { z } from "zod/v4";
|
|
|
|
export const MqttValidationMapReportSettingsSchema = z.object({
|
|
publishIntervalSecs: z.number().optional(),
|
|
positionPrecision: z.number().optional(),
|
|
});
|
|
|
|
export const MqttValidationSchema = z.object({
|
|
enabled: z.boolean(),
|
|
address: z.string().min(0).max(30),
|
|
username: z.string().min(0).max(30),
|
|
password: z.string().min(0).max(30),
|
|
encryptionEnabled: z.boolean(),
|
|
jsonEnabled: z.boolean(),
|
|
tlsEnabled: z.boolean(),
|
|
root: z.string(),
|
|
proxyToClientEnabled: z.boolean(),
|
|
mapReportingEnabled: z.boolean(),
|
|
mapReportSettings: MqttValidationMapReportSettingsSchema,
|
|
});
|
|
|
|
export type MqttValidation = z.infer<typeof MqttValidationSchema>;
|
|
|