const formSchema = type({
appId: 'string',
nodeId: 'string',
id: type('string | undefined').pipe((v) => v ?? nanoid()),
title: type('string.trim').pipe((title) => encryptWithUserKeys(title))
});
const formSchema = type({
appId: 'string',
nodeId: 'string',
id: type('string | undefined').pipe((v) => v ?? nanoid()),
title: type('string.trim').pipe((title) => encryptWithUserKeys(title))
});