@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 3.48 kB
JavaScript
import{queryString as e}from"./helpers/querystring.mjs";import t from"zod";const n=t.object({ai:t.object({enabled:t.boolean().meta({description:`Whether AI features are enabled in the Lucid CMS config`,example:!0}),features:t.object({imageGeneration:t.boolean().meta({description:`Whether AI image generation is enabled`,example:!0}),altGeneration:t.boolean().meta({description:`Whether AI alt text generation is enabled`,example:!0}),customFieldGeneration:t.boolean().meta({description:`Whether AI custom field generation is enabled`,example:!0})}).strict()}).strict().optional(),email:t.object({simulated:t.boolean().meta({description:`Whether emails are simulated`,example:!1}),templates:t.array(t.string()).meta({description:`The supported email templates`,example:[`reset-password`,`user-invite`]}),from:t.object({email:t.email().meta({description:`The default from address`,example:`admin@lucidcms.io`}),name:t.string().meta({description:`The default from name`,example:`Admin`})}).nullable()}).optional(),media:t.object({enabled:t.boolean().meta({description:`Whether media is supported. Based on if the media strategy has been set`,example:!0}),storage:t.object({total:t.number().nullable().meta({description:`The total available storage`,example:1024}),remaining:t.number().nullable().meta({description:`The remaining storage left`,example:136}),used:t.number().nullable().meta({description:`The total storage used so far`,example:888})}),processed:t.object({stored:t.boolean().meta({description:`Whether or not processed images are stored in you configured storage solution or not`,example:!0}),imageLimit:t.number().meta({description:`The number of processed images that can be stored. Once meta future images are generated on request`,example:10}),total:t.number().nullable().meta({description:`How many processed images exist`,example:100})})}).optional(),license:t.object({key:t.string().nullable().meta({description:`The stored display version of the license key`,example:`************************************************1A2B`})}).optional(),system:t.object({runtime:t.string().meta({description:`The runtime adapter key`,example:`node`}),database:t.string().meta({description:`The database adapter key`,example:`sqlite`}),kv:t.string().meta({description:`The KV adapter key`,example:`memory`}),queue:t.string().meta({description:`The queue adapter key`,example:`worker`}),media:t.string().nullable().meta({description:`The media adapter key`,example:`file-system`}),email:t.string().meta({description:`The email adapter key`,example:`smtp`}),imageProcessor:t.string().nullable().meta({description:`The image processor key`,example:`custom`}),alertEmail:t.email().nullable().meta({description:`The email address system alerts are sent to`,example:`alerts@example.com`})}).optional()}),r={getSettings:{body:void 0,query:{string:t.object({include:e.schema.include(`email,media,license,system,ai`)}).meta(e.meta),formatted:t.object({include:t.array(t.enum([`email`,`media`,`license`,`system`,`ai`])).optional()})},params:void 0,response:n},clearKV:{body:void 0,query:{string:void 0,formatted:void 0},params:void 0,response:void 0},updateSystemAlerts:{body:t.object({alertEmail:t.union([t.email(),t.literal(``),t.null()]).meta({description:`The email address system alerts are sent to`,example:`alerts@example.com`})}).strict(),query:{string:void 0,formatted:void 0},params:void 0,response:void 0}};export{r as controllerSchemas};
//# sourceMappingURL=settings.mjs.map