You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailchat/shared/model/plugin.ts

57 lines
868 B
TypeScript

import { request } from '../api/request';
export interface PluginManifest {
/**
*
* @example
*/
label: string;
/**
* ,
* @example com.msgbyte.webview
*/
name: string;
/**
*
*/
url: string;
/**
*
* : 128x128
*/
icon?: string;
/**
*
* semver
*
* major.minor.patch
* @example 1.0.0
*/
version: string;
/**
*
*/
author: string;
/**
*
*/
description: string;
/**
*
*/
requireRestart: boolean;
}
export async function fetchRegistryPlugins(): Promise<PluginManifest[]> {
const { data } = await request.get('/api/plugin/registry/list');
return data;
}