mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-16 22:15:58 +08:00
chore: add endpoint types
This commit is contained in:
parent
36f8b5711d
commit
cd03795f2c
@ -1,30 +1,11 @@
|
|||||||
|
import type { CredentialFormSchemaBase } from '../header/account-setting/model-provider-page/declarations'
|
||||||
|
|
||||||
export enum PluginType {
|
export enum PluginType {
|
||||||
plugin = 'plugin',
|
plugin = 'plugin',
|
||||||
model = 'model',
|
model = 'model',
|
||||||
extension = 'Extension',
|
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 = {
|
export type Plugin = {
|
||||||
'type': PluginType
|
'type': PluginType
|
||||||
'org': string
|
'org': string
|
||||||
@ -43,5 +24,8 @@ export type Plugin = {
|
|||||||
'introduction': string
|
'introduction': string
|
||||||
'repository': string
|
'repository': string
|
||||||
'category': string
|
'category': string
|
||||||
'endpoint': Endpoint
|
'install_count': number
|
||||||
|
'endpoint': {
|
||||||
|
settings: CredentialFormSchemaBase[]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user