@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 1.84 kB
JavaScript
import e from"zod";const t=e.union([e.literal(`latest`),e.literal(`revision`),e.string()]),n=e.object({id:e.number().meta({description:`The document version ID`,example:1}),versionType:e.union([e.literal(`latest`),e.literal(`revision`),e.string()]).meta({description:`The version type`,example:`latest`}),promotedFrom:e.number().nullable().meta({description:`ID of the version this was promoted from, if applicable`,example:122}),contentId:e.string().nullable().meta({description:`The content ID of the version`,example:`123e4567-e89b-12d3-a456-426614174000`}),createdAt:e.string().nullable().meta({description:`Timestamp when this version was created`,example:`2025-04-20T14:30:00Z`}),createdBy:e.number().nullable().meta({description:`User ID who created this version`,example:1}),document:e.object({id:e.number().nullable().meta({description:`The document's ID`,example:42}),collectionKey:e.string().nullable().meta({description:`The collection this document belongs to`,example:`pages`}),createdBy:e.number().nullable().meta({description:`User ID who created the document`,example:1}),createdAt:e.string().nullable().meta({description:`Timestamp when the document was created`,example:`2025-03-15T09:22:10Z`}),updatedAt:e.string().nullable().meta({description:`Timestamp when the document was last updated`,example:`2025-04-18T11:45:30Z`}),updatedBy:e.number().nullable().meta({description:`User ID who last updated the document`,example:2})}),bricks:e.object({fixed:e.array(e.object({brickKey:e.string().nullable().meta({description:`The identifier key for this brick`,example:`seo`})})),builder:e.array(e.object({brickKey:e.string().nullable().meta({description:`The identifier key for this brick`,example:`hero`})}))})});export{n as documentVersionResponseSchema,t as versionTypesSchema};
//# sourceMappingURL=document-versions.mjs.map