mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-15 02:06:01 +08:00
plugin detail type
This commit is contained in:
parent
63b333cdb1
commit
7c5c35600c
@ -7,6 +7,44 @@ export enum PluginType {
|
|||||||
extension = 'extension',
|
extension = 'extension',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum PluginSource {
|
||||||
|
marketplace = 'marketplace',
|
||||||
|
github = 'github',
|
||||||
|
local = 'package',
|
||||||
|
debugging = 'remote',
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PluginDeclaration = {
|
||||||
|
version: string
|
||||||
|
author: string
|
||||||
|
icon: string
|
||||||
|
name: string
|
||||||
|
label: Record<Locale, string>
|
||||||
|
created_at: string
|
||||||
|
resource: any // useless in frontend
|
||||||
|
plugins: any // useless in frontend
|
||||||
|
tool: any // TODO
|
||||||
|
endpoint: any // TODO
|
||||||
|
model: any // TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PluginDetail = {
|
||||||
|
id: string
|
||||||
|
created_at: string
|
||||||
|
updated_at: string
|
||||||
|
name: string
|
||||||
|
plugin_id: string
|
||||||
|
plugin_unique_identifier: string
|
||||||
|
declaration: PluginDeclaration
|
||||||
|
installation_id: string
|
||||||
|
tenant_id: string
|
||||||
|
endpoints_setups: number
|
||||||
|
endpoints_active: number
|
||||||
|
version: string
|
||||||
|
source: PluginSource
|
||||||
|
meta?: any
|
||||||
|
}
|
||||||
|
|
||||||
export type Plugin = {
|
export type Plugin = {
|
||||||
'type': PluginType
|
'type': PluginType
|
||||||
'org': string
|
'org': string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user