Plugin
Plugin protocol schemas
Source: packages/spec/src/kernel/plugin.zod.ts
TypeScript Usage
import { PluginSchema } from '@objectstack/spec/kernel';
// Validate data
const result = PluginSchema.parse(data);Plugin
Properties
| Property | Type | Required | Description |
|---|---|---|---|
| id | string | optional | Unique Plugin ID (e.g. com.example.crm) |
| type | Enum<'standard' | 'ui' | 'driver' | 'server' | 'app' | 'theme' | 'agent' | 'objectql'> | optional | Plugin Type categorization for runtime behavior |
| staticPath | string | optional | Absolute path to static assets (Required for type="ui-plugin") |
| slug | string | optional | URL path segment (Required for type="ui-plugin") |
| default | boolean | optional | Serve at root path (Only one "ui-plugin" can be default) |
| version | string | optional | Semantic Version |
| description | string | optional | |
| author | string | optional | |
| homepage | string | optional |