File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 1
1
import { JSONSchema7 } from 'json-schema' ;
2
2
3
+ import { Meta } from './market' ;
4
+
3
5
export type LobePluginType = 'default' | 'standalone' ;
4
6
/**
5
7
* Plugin Schema
@@ -36,14 +38,36 @@ export interface LobeChatPluginApi {
36
38
export interface LobeChatPluginManifest {
37
39
$schema ?: string ;
38
40
api : LobeChatPluginApi [ ] ;
41
+ author ?: string ;
42
+ /**
43
+ * createAt
44
+ * @desc Creation date of the plugin
45
+ * @nameCN 创建时间
46
+ * @descCN 插件的创建时间
47
+ */
48
+ createdAt ?: string ;
39
49
gateway ?: string ;
50
+ /**
51
+ * homepage
52
+ * @desc Homepage of the plugin
53
+ * @nameCN 主页
54
+ * @descCN 插件的主页
55
+ */
56
+ homepage ?: string ;
40
57
/**
41
58
* Plugin name
42
59
* @desc The name of the plugin
43
60
* @nameCN 插件名称
44
61
* @descCN 插件的名称,需要和提交到 LobeChat Plugins 仓库的插件名称一致
45
62
*/
46
63
identifier : string ;
64
+ /**
65
+ * metadata
66
+ * @desc Meta data of the plugin
67
+ * @nameCN 插件元数据
68
+ * @descCN 包含图片与标签等
69
+ */
70
+ meta : Meta ;
47
71
openapi ?: string ;
48
72
settings ?: PluginSchema ;
49
73
/**
Original file line number Diff line number Diff line change @@ -29,13 +29,17 @@ export interface LobeChatPluginsMarketIndex {
29
29
*/
30
30
export interface LobeChatPluginMeta {
31
31
author : string ;
32
+ /**
33
+ * @deprecated
34
+ */
35
+ createAt ?: string ;
32
36
/**
33
37
* createAt
34
38
* @desc Creation date of the plugin
35
39
* @nameCN 创建时间
36
40
* @descCN 插件的创建时间
37
41
*/
38
- createAt : string ;
42
+ createdAt : string ;
39
43
/**
40
44
* homepage
41
45
* @desc Homepage of the plugin
You can’t perform that action at this time.
0 commit comments