chore: add endpoint types

This commit is contained in:
Joel 2024-10-08 15:44:52 +08:00
parent 36f8b5711d
commit cd03795f2c

View File

@ -1,30 +1,11 @@
import type { CredentialFormSchemaBase } from '../header/account-setting/model-provider-page/declarations'
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
@ -43,5 +24,8 @@ export type Plugin = {
'introduction': string
'repository': string
'category': string
'endpoint': Endpoint
'install_count': number
'endpoint': {
settings: CredentialFormSchemaBase[]
}
}