mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-15 23:05:52 +08:00
feat: plugin types
This commit is contained in:
parent
f9c48e9ea9
commit
36f8b5711d
47
web/app/components/plugins/types.ts
Normal file
47
web/app/components/plugins/types.ts
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
export enum PluginType {
|
||||||
|
plugin = 'plugin',
|
||||||
|
model = 'model',
|
||||||
|
extension = 'Extension',
|
||||||
|
}
|
||||||
|
|
||||||
|
export type Endpoint = {
|
||||||
|
'api_key': {
|
||||||
|
'default': null
|
||||||
|
'helper': null
|
||||||
|
'label': {
|
||||||
|
'en_US': string
|
||||||
|
'zh_Hans': string
|
||||||
|
}
|
||||||
|
'name': ''
|
||||||
|
'options': null
|
||||||
|
'placeholder': {
|
||||||
|
'en_US': string
|
||||||
|
'zh_Hans': string
|
||||||
|
}
|
||||||
|
'required': true
|
||||||
|
'scope': null
|
||||||
|
'type': string
|
||||||
|
'url': null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export type Plugin = {
|
||||||
|
'type': PluginType
|
||||||
|
'org': string
|
||||||
|
'name': string
|
||||||
|
'latest_version': string
|
||||||
|
'icon': string
|
||||||
|
'label': {
|
||||||
|
'en_US': string
|
||||||
|
'zh_Hans': string
|
||||||
|
}
|
||||||
|
'brief': {
|
||||||
|
'en_US': string
|
||||||
|
'zh_Hans': string
|
||||||
|
}
|
||||||
|
// Repo readme.md content
|
||||||
|
'introduction': string
|
||||||
|
'repository': string
|
||||||
|
'category': string
|
||||||
|
'endpoint': Endpoint
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user