mirror of
https://github.com/penpot/penpot.git
synced 2026-11-07 10:30:40 +00:00
* ✨ Add new dashboard methods to the API * 🐛 Fix some issues with the new methods * 🐛 Fix problem with mcp test
32 lines
724 B
TypeScript
32 lines
724 B
TypeScript
import { z } from 'zod';
|
|
|
|
export const manifestSchema = z.object({
|
|
pluginId: z.string(),
|
|
name: z.string(),
|
|
host: z.string().url(),
|
|
code: z.string(),
|
|
icon: z.string().optional(),
|
|
version: z.number().optional(),
|
|
scope: z.enum(['workspace', 'global']).optional(),
|
|
description: z.string().max(200).optional(),
|
|
permissions: z.array(
|
|
z.enum([
|
|
'content:read',
|
|
'content:write',
|
|
'library:read',
|
|
'library:write',
|
|
'user:read',
|
|
'comment:read',
|
|
'comment:write',
|
|
'allow:downloads',
|
|
'allow:localstorage',
|
|
'allow:global',
|
|
'manage:projects',
|
|
'manage:teams',
|
|
'manage:delete',
|
|
'clipboard:read',
|
|
'clipboard:write',
|
|
]),
|
|
),
|
|
});
|