mirror of
https://github.com/penpot/penpot.git
synced 2026-03-11 21:06:48 +00:00
Ensure params are passed correctly to plugins declared to be version 2 and are prepared to run in a subpath.
25 lines
530 B
TypeScript
25 lines
530 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(),
|
|
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',
|
|
]),
|
|
),
|
|
});
|