fix(settings): sync generated schemas

- entity.go: tighten SessionMaxAge validate tag gte=0 -> gte=1 to match the panel UI (min 60) and the hand-written setting.ts schema

- GeneralTab.tsx: add max bounds to sessionMaxAge (525600) and pageSize (1000), raise pageSize min to 1

- regenerate zod.ts/types.ts, picking up pending drift: panelProxy field, client group field, InboundFallback.dest, and dropping the stale hysteria2 protocol enum value
This commit is contained in:
MHSanaei
2026-05-31 19:00:26 +02:00
parent 982a78ecdd
commit b1c141a515
5 changed files with 17 additions and 7 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ export const AllSettingSchema = z.object({
webCertFile: z.string().optional(),
webKeyFile: z.string().optional(),
webBasePath: absolutePath.optional(),
sessionMaxAge: z.number().int().min(1).optional(),
sessionMaxAge: z.number().int().min(1).max(525600).optional(),
trustedProxyCIDRs: z.string().optional(),
panelProxy: z.string().optional(),
pageSize: z.number().int().min(1).max(1000).optional(),