Skip to content

Commit e795600

Browse files
committed
✨ feat: add basic info to plugin manifest types
1 parent ddacc3c commit e795600

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

src/types/manifest.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { JSONSchema7 } from 'json-schema';
22

3+
import { Meta } from './market';
4+
35
export type LobePluginType = 'default' | 'standalone';
46
/**
57
* Plugin Schema
@@ -36,14 +38,36 @@ export interface LobeChatPluginApi {
3638
export interface LobeChatPluginManifest {
3739
$schema?: string;
3840
api: LobeChatPluginApi[];
41+
author?: string;
42+
/**
43+
* createAt
44+
* @desc Creation date of the plugin
45+
* @nameCN 创建时间
46+
* @descCN 插件的创建时间
47+
*/
48+
createdAt?: string;
3949
gateway?: string;
50+
/**
51+
* homepage
52+
* @desc Homepage of the plugin
53+
* @nameCN 主页
54+
* @descCN 插件的主页
55+
*/
56+
homepage?: string;
4057
/**
4158
* Plugin name
4259
* @desc The name of the plugin
4360
* @nameCN 插件名称
4461
* @descCN 插件的名称,需要和提交到 LobeChat Plugins 仓库的插件名称一致
4562
*/
4663
identifier: string;
64+
/**
65+
* metadata
66+
* @desc Meta data of the plugin
67+
* @nameCN 插件元数据
68+
* @descCN 包含图片与标签等
69+
*/
70+
meta: Meta;
4771
openapi?: string;
4872
settings?: PluginSchema;
4973
/**

src/types/market.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,17 @@ export interface LobeChatPluginsMarketIndex {
2929
*/
3030
export interface LobeChatPluginMeta {
3131
author: string;
32+
/**
33+
* @deprecated
34+
*/
35+
createAt?: string;
3236
/**
3337
* createAt
3438
* @desc Creation date of the plugin
3539
* @nameCN 创建时间
3640
* @descCN 插件的创建时间
3741
*/
38-
createAt: string;
42+
createdAt: string;
3943
/**
4044
* homepage
4145
* @desc Homepage of the plugin

0 commit comments

Comments
 (0)