feat(settings): Implement remaining preference types

This commit introduces support for all remaining preference types as specified in the API, including password, checkbox, appPicker, file, and directory. Eventually, we will probably have to somehow make the password preferences encrypted.
This commit is contained in:
ByteAtATime 2025-06-25 20:14:21 -07:00
parent f2191cbdb4
commit 1bdb0f534e
No known key found for this signature in database
4 changed files with 88 additions and 21 deletions

View file

@ -121,7 +121,7 @@ export const PreferenceSchema = z.object({
name: z.string(),
title: z.string().optional(),
description: z.string().optional(),
type: z.enum(['textfield', 'dropdown', 'checkbox', 'directory']),
type: z.enum(['textfield', 'password', 'checkbox', 'dropdown', 'appPicker', 'file', 'directory']),
required: z.boolean().optional(),
default: z.union([z.string(), z.boolean()]).optional(),
data: z