| | |
| | | import type { TypeWithI18N } from '../header/account-setting/model-provider-page/declarations' |
| | | |
| | | export enum LOC { |
| | | tools = 'tools', |
| | | app = 'app', |
| | |
| | | } |
| | | |
| | | export type Credential = { |
| | | auth_type: AuthType |
| | | api_key_header?: string |
| | | api_key_value?: string |
| | | api_key_header_prefix?: AuthHeaderPrefix |
| | | 'auth_type': AuthType |
| | | 'api_key_header'?: string |
| | | 'api_key_value'?: string |
| | | 'api_key_header_prefix'?: AuthHeaderPrefix |
| | | } |
| | | |
| | | export enum CollectionType { |
| | |
| | | is_team_authorization: boolean |
| | | allow_delete: boolean |
| | | labels: string[] |
| | | plugin_id?: string |
| | | letter?: string |
| | | } |
| | | |
| | | export type ToolParameter = { |
| | |
| | | max?: number |
| | | } |
| | | |
| | | // Action |
| | | export type Tool = { |
| | | name: string |
| | | author: string |
| | |
| | | description: any |
| | | parameters: ToolParameter[] |
| | | labels: string[] |
| | | output_schema: Record<string, any> |
| | | } |
| | | |
| | | export type ToolCredential = { |
| | | name: string |
| | | label: TypeWithI18N |
| | | help: TypeWithI18N | null |
| | | help: TypeWithI18N |
| | | placeholder: TypeWithI18N |
| | | type: string |
| | | required: boolean |