plugins 2.0 update
This commit is contained in:
@@ -334,10 +334,14 @@ export type ScriptResult = {
|
||||
export type PluginManifest = {
|
||||
id: string;
|
||||
name: string;
|
||||
apiVersion?: number;
|
||||
runtime?: "native" | "wasm" | string;
|
||||
version?: string;
|
||||
description?: string;
|
||||
binary?: string;
|
||||
binaries?: Record<string, string>;
|
||||
wasm?: string;
|
||||
needs?: PluginNeeds;
|
||||
entry?: string;
|
||||
assets?: {
|
||||
html?: string;
|
||||
@@ -351,6 +355,16 @@ export type PluginManifest = {
|
||||
hasServer?: boolean;
|
||||
};
|
||||
|
||||
export type PluginFileNeed = {
|
||||
bucket: "home" | "desktop" | "documents" | "downloads" | "temp" | "appData" | "pluginData" | "fullDisk" | string;
|
||||
access: Array<"read" | "write" | "list" | "delete" | "mkdir" | string>;
|
||||
reason?: string;
|
||||
};
|
||||
|
||||
export type PluginNeeds = {
|
||||
files?: PluginFileNeed[];
|
||||
};
|
||||
|
||||
export type PluginSignatureInfo = {
|
||||
signed: boolean;
|
||||
trusted: boolean;
|
||||
|
||||
Reference in New Issue
Block a user