@filo-cms/types
v0.3.2
Published
Shared TypeScript contracts for Filo CMS: content model, permissions, plugin manifests.
Readme
@filo-cms/types
Shared TypeScript contracts for the Filo CMS ecosystem. Zero runtime dependencies (a handful of constants, otherwise pure types).
Usually installed transitively by
@filo-cms/cms,@filo-cms/sdkor@filo-cms/plugin-kit. Install directly when you want the types without any of those.
Install
npm install @filo-cms/typesWhat's inside
| Area | Types |
|---|---|
| Content model | ContentTypeDefinition, ContentFieldDefinition, ContentFieldType, ContentEntry, ContentEntryStatus, DynamicZoneBlock, LocaleDefinition |
| Page builder | PageDefinition, SectionInstance, SectionTypeDefinition |
| Live preview | PreviewBridgeMessage, PreviewEntryPayload |
| Auth / RBAC | CORE_PERMISSIONS, PermissionKey, SYSTEM_ROLE_KEYS |
| Plugins | PluginManifest |
import type { ContentEntry, PluginManifest } from "@filo-cms/types";
import { CORE_PERMISSIONS } from "@filo-cms/types";PermissionKey is intentionally open (CorePermission | (string & {})) so plugins can register their own permission keys with autocomplete intact.
Links
- Filo CMS repository & documentation
- License: MIT
